From e2f9df6578e9540249156c64c22f6743f0ceb7ce Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Mon, 20 Apr 2026 22:03:37 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/stdlib_flags.h | 1 - stage0/stdlib/Lean/Elab/Do/InferControlInfo.c | 20262 ++++---- stage0/stdlib/Lean/Meta/WrapInstance.c | 35265 +++++++------ stage0/stdlib/Std/Internal/Async/Select.c | 8473 ++-- stage0/stdlib/Std/Internal/Http.c | 18 +- .../stdlib/Std/Internal/Http/Data/Body/Any.c | 264 +- .../Std/Internal/Http/Data/Body/Empty.c | 656 +- .../stdlib/Std/Internal/Http/Data/Body/Full.c | 1573 +- .../Std/Internal/Http/Data/Body/Stream.c | 12501 ++--- .../Std/Internal/Http/Data/Headers/Basic.c | 3440 +- stage0/stdlib/Std/Internal/Http/Protocol/H1.c | 41222 +++++++++------- .../Std/Internal/Http/Protocol/H1/Message.c | 4534 +- .../Std/Internal/Http/Protocol/H1/Writer.c | 6224 +-- stage0/stdlib/Std/Internal/Http/Server.c | 4929 ++ .../stdlib/Std/Internal/Http/Server/Config.c | 136 + .../Std/Internal/Http/Server/Connection.c | 14474 ++++++ .../stdlib/Std/Internal/Http/Server/Handler.c | 350 + .../stdlib/Std/Internal/Http/Test/Helpers.c | 19162 +++++++ stage0/stdlib/Std/Internal/Http/Transport.c | 3339 ++ stage0/stdlib/Std/Net/Addr.c | 744 +- stage0/stdlib/Std/Sync.c | 10 +- stage0/stdlib/Std/Sync/Semaphore.c | 638 + 22 files changed, 112926 insertions(+), 65289 deletions(-) create mode 100644 stage0/stdlib/Std/Internal/Http/Server.c create mode 100644 stage0/stdlib/Std/Internal/Http/Server/Config.c create mode 100644 stage0/stdlib/Std/Internal/Http/Server/Connection.c create mode 100644 stage0/stdlib/Std/Internal/Http/Server/Handler.c create mode 100644 stage0/stdlib/Std/Internal/Http/Test/Helpers.c create mode 100644 stage0/stdlib/Std/Internal/Http/Transport.c create mode 100644 stage0/stdlib/Std/Sync/Semaphore.c diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index 20ac9dcd4f..e444447049 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -22,7 +22,6 @@ options get_default_options() { opts = opts.update({"quotPrecheck"}, true); opts = opts.update({"pp", "rawOnError"}, true); - // bump stage0 to pick up `ControlInfo.sequence` aggregating past `numRegularExits == 0` // Temporary, core-only flags for editing (i.e. must be part of stage0/bin/lean). Must be synced // with `LEAN_EXTRA_MAKE_OPTS` build flags in src/CMakeLists.txt. diff --git a/stage0/stdlib/Lean/Elab/Do/InferControlInfo.c b/stage0/stdlib/Lean/Elab/Do/InferControlInfo.c index a9aa816f9d..a7bf4621e4 100644 --- a/stage0/stdlib/Lean/Elab/Do/InferControlInfo.c +++ b/stage0/stdlib/Lean/Elab/Do/InferControlInfo.c @@ -240,15 +240,15 @@ static const lean_string_object l___private_Lean_Elab_Do_InferControlInfo_0__Lea static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___closed__0 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___closed__0_value; LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1(); LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___boxed(lean_object*); -static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(70) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(72) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__0 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__0_value; -static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(78) << 1) | 1)),((lean_object*)(((size_t)(39) << 1) | 1))}}; +static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(80) << 1) | 1)),((lean_object*)(((size_t)(39) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__1 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__1_value; static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*4 + 0, .m_other = 4, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__0_value),((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__1_value),((lean_object*)(((size_t)(39) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__2 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__2_value; -static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(77) << 1) | 1)),((lean_object*)(((size_t)(19) << 1) | 1))}}; +static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(79) << 1) | 1)),((lean_object*)(((size_t)(19) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__3 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__3_value; -static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(77) << 1) | 1)),((lean_object*)(((size_t)(43) << 1) | 1))}}; +static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(79) << 1) | 1)),((lean_object*)(((size_t)(43) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__4 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__4_value; static const lean_ctor_object l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*4 + 0, .m_other = 4, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__3_value),((lean_object*)(((size_t)(19) << 1) | 1)),((lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__4_value),((lean_object*)(((size_t)(43) << 1) | 1))}}; static const lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__5 = (const lean_object*)&l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__5_value; @@ -895,82 +895,37 @@ return v___x_7_; LEAN_EXPORT lean_object* l_Lean_Elab_Do_ControlInfo_sequence(lean_object* v_a_8_, lean_object* v_b_9_){ _start: { -uint8_t v_breaks_10_; uint8_t v_continues_11_; uint8_t v_returnsEarly_12_; lean_object* v_numRegularExits_13_; lean_object* v_reassigns_14_; uint8_t v___y_16_; uint8_t v___y_17_; uint8_t v___y_18_; lean_object* v___x_29_; uint8_t v___x_30_; +uint8_t v_breaks_10_; uint8_t v_continues_11_; uint8_t v_returnsEarly_12_; lean_object* v_numRegularExits_13_; lean_object* v_reassigns_14_; uint8_t v___y_16_; uint8_t v___y_17_; uint8_t v___y_18_; lean_object* v___y_19_; uint8_t v___y_31_; uint8_t v___y_32_; uint8_t v___y_33_; uint8_t v___y_38_; uint8_t v___y_39_; uint8_t v___y_42_; v_breaks_10_ = lean_ctor_get_uint8(v_a_8_, sizeof(void*)*2); v_continues_11_ = lean_ctor_get_uint8(v_a_8_, sizeof(void*)*2 + 1); v_returnsEarly_12_ = lean_ctor_get_uint8(v_a_8_, sizeof(void*)*2 + 2); v_numRegularExits_13_ = lean_ctor_get(v_a_8_, 0); +lean_inc(v_numRegularExits_13_); v_reassigns_14_ = lean_ctor_get(v_a_8_, 1); -v___x_29_ = lean_unsigned_to_nat(0u); -v___x_30_ = lean_nat_dec_eq(v_numRegularExits_13_, v___x_29_); -if (v___x_30_ == 0) -{ -uint8_t v___x_31_; uint8_t v___y_33_; uint8_t v___y_34_; uint8_t v___y_37_; lean_inc(v_reassigns_14_); lean_dec_ref(v_a_8_); -v___x_31_ = 1; if (v_breaks_10_ == 0) { -uint8_t v_breaks_39_; -v_breaks_39_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2); -v___y_37_ = v_breaks_39_; -goto v___jp_36_; +uint8_t v_breaks_44_; +v_breaks_44_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2); +v___y_42_ = v_breaks_44_; +goto v___jp_41_; } else { -v___y_37_ = v___x_31_; -goto v___jp_36_; -} -v___jp_32_: -{ -if (v_returnsEarly_12_ == 0) -{ -uint8_t v_returnsEarly_35_; -v_returnsEarly_35_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2 + 2); -v___y_16_ = v___y_34_; -v___y_17_ = v___y_33_; -v___y_18_ = v_returnsEarly_35_; -goto v___jp_15_; -} -else -{ -v___y_16_ = v___y_34_; -v___y_17_ = v___y_33_; -v___y_18_ = v___x_31_; -goto v___jp_15_; -} -} -v___jp_36_: -{ -if (v_continues_11_ == 0) -{ -uint8_t v_continues_38_; -v_continues_38_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2 + 1); -v___y_33_ = v___y_37_; -v___y_34_ = v_continues_38_; -goto v___jp_32_; -} -else -{ -v___y_33_ = v___y_37_; -v___y_34_ = v___x_31_; -goto v___jp_32_; -} -} -} -else -{ -lean_dec_ref(v_b_9_); -return v_a_8_; +v___y_42_ = v_breaks_10_; +goto v___jp_41_; } v___jp_15_: { -lean_object* v_numRegularExits_19_; lean_object* v_reassigns_20_; lean_object* v___x_22_; uint8_t v_isShared_23_; uint8_t v_isSharedCheck_28_; -v_numRegularExits_19_ = lean_ctor_get(v_b_9_, 0); +lean_object* v_reassigns_20_; lean_object* v___x_22_; uint8_t v_isShared_23_; uint8_t v_isSharedCheck_28_; v_reassigns_20_ = lean_ctor_get(v_b_9_, 1); v_isSharedCheck_28_ = !lean_is_exclusive(v_b_9_); if (v_isSharedCheck_28_ == 0) { +lean_object* v_unused_29_; +v_unused_29_ = lean_ctor_get(v_b_9_, 0); +lean_dec(v_unused_29_); v___x_22_ = v_b_9_; v_isShared_23_ = v_isSharedCheck_28_; goto v_resetjp_21_; @@ -978,7 +933,6 @@ goto v_resetjp_21_; else { lean_inc(v_reassigns_20_); -lean_inc(v_numRegularExits_19_); lean_dec(v_b_9_); v___x_22_ = lean_box(0); v_isShared_23_ = v_isSharedCheck_28_; @@ -991,6 +945,7 @@ v___x_24_ = l_Lean_NameSet_append(v_reassigns_14_, v_reassigns_20_); if (v_isShared_23_ == 0) { lean_ctor_set(v___x_22_, 1, v___x_24_); +lean_ctor_set(v___x_22_, 0, v___y_19_); v___x_26_ = v___x_22_; goto v_reusejp_25_; } @@ -998,554 +953,616 @@ else { lean_object* v_reuseFailAlloc_27_; v_reuseFailAlloc_27_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v_reuseFailAlloc_27_, 0, v_numRegularExits_19_); +lean_ctor_set(v_reuseFailAlloc_27_, 0, v___y_19_); lean_ctor_set(v_reuseFailAlloc_27_, 1, v___x_24_); v___x_26_ = v_reuseFailAlloc_27_; goto v_reusejp_25_; } v_reusejp_25_: { -lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2, v___y_17_); -lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2 + 1, v___y_16_); -lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2 + 2, v___y_18_); +lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2, v___y_16_); +lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2 + 1, v___y_18_); +lean_ctor_set_uint8(v___x_26_, sizeof(void*)*2 + 2, v___y_17_); return v___x_26_; } } } +v___jp_30_: +{ +lean_object* v___x_34_; uint8_t v___x_35_; +v___x_34_ = lean_unsigned_to_nat(0u); +v___x_35_ = lean_nat_dec_eq(v_numRegularExits_13_, v___x_34_); +lean_dec(v_numRegularExits_13_); +if (v___x_35_ == 0) +{ +lean_object* v_numRegularExits_36_; +v_numRegularExits_36_ = lean_ctor_get(v_b_9_, 0); +lean_inc(v_numRegularExits_36_); +v___y_16_ = v___y_31_; +v___y_17_ = v___y_33_; +v___y_18_ = v___y_32_; +v___y_19_ = v_numRegularExits_36_; +goto v___jp_15_; +} +else +{ +v___y_16_ = v___y_31_; +v___y_17_ = v___y_33_; +v___y_18_ = v___y_32_; +v___y_19_ = v___x_34_; +goto v___jp_15_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_ControlInfo_alternative(lean_object* v_a_40_, lean_object* v_b_41_){ +v___jp_37_: +{ +if (v_returnsEarly_12_ == 0) +{ +uint8_t v_returnsEarly_40_; +v_returnsEarly_40_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2 + 2); +v___y_31_ = v___y_38_; +v___y_32_ = v___y_39_; +v___y_33_ = v_returnsEarly_40_; +goto v___jp_30_; +} +else +{ +v___y_31_ = v___y_38_; +v___y_32_ = v___y_39_; +v___y_33_ = v_returnsEarly_12_; +goto v___jp_30_; +} +} +v___jp_41_: +{ +if (v_continues_11_ == 0) +{ +uint8_t v_continues_43_; +v_continues_43_ = lean_ctor_get_uint8(v_b_9_, sizeof(void*)*2 + 1); +v___y_38_ = v___y_42_; +v___y_39_ = v_continues_43_; +goto v___jp_37_; +} +else +{ +v___y_38_ = v___y_42_; +v___y_39_ = v_continues_11_; +goto v___jp_37_; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Do_ControlInfo_alternative(lean_object* v_a_45_, lean_object* v_b_46_){ _start: { -uint8_t v_breaks_42_; uint8_t v_continues_43_; uint8_t v_returnsEarly_44_; lean_object* v_numRegularExits_45_; lean_object* v_reassigns_46_; uint8_t v___y_48_; uint8_t v___y_49_; uint8_t v___y_50_; uint8_t v___y_63_; uint8_t v___y_64_; uint8_t v___y_67_; -v_breaks_42_ = lean_ctor_get_uint8(v_a_40_, sizeof(void*)*2); -v_continues_43_ = lean_ctor_get_uint8(v_a_40_, sizeof(void*)*2 + 1); -v_returnsEarly_44_ = lean_ctor_get_uint8(v_a_40_, sizeof(void*)*2 + 2); -v_numRegularExits_45_ = lean_ctor_get(v_a_40_, 0); -lean_inc(v_numRegularExits_45_); -v_reassigns_46_ = lean_ctor_get(v_a_40_, 1); -lean_inc(v_reassigns_46_); -lean_dec_ref(v_a_40_); -if (v_breaks_42_ == 0) +uint8_t v_breaks_47_; uint8_t v_continues_48_; uint8_t v_returnsEarly_49_; lean_object* v_numRegularExits_50_; lean_object* v_reassigns_51_; uint8_t v___y_53_; uint8_t v___y_54_; uint8_t v___y_55_; uint8_t v___y_68_; uint8_t v___y_69_; uint8_t v___y_72_; +v_breaks_47_ = lean_ctor_get_uint8(v_a_45_, sizeof(void*)*2); +v_continues_48_ = lean_ctor_get_uint8(v_a_45_, sizeof(void*)*2 + 1); +v_returnsEarly_49_ = lean_ctor_get_uint8(v_a_45_, sizeof(void*)*2 + 2); +v_numRegularExits_50_ = lean_ctor_get(v_a_45_, 0); +lean_inc(v_numRegularExits_50_); +v_reassigns_51_ = lean_ctor_get(v_a_45_, 1); +lean_inc(v_reassigns_51_); +lean_dec_ref(v_a_45_); +if (v_breaks_47_ == 0) { -uint8_t v_breaks_69_; -v_breaks_69_ = lean_ctor_get_uint8(v_b_41_, sizeof(void*)*2); -v___y_67_ = v_breaks_69_; -goto v___jp_66_; +uint8_t v_breaks_74_; +v_breaks_74_ = lean_ctor_get_uint8(v_b_46_, sizeof(void*)*2); +v___y_72_ = v_breaks_74_; +goto v___jp_71_; } else { -v___y_67_ = v_breaks_42_; -goto v___jp_66_; +v___y_72_ = v_breaks_47_; +goto v___jp_71_; } -v___jp_47_: +v___jp_52_: { -lean_object* v_numRegularExits_51_; lean_object* v_reassigns_52_; lean_object* v___x_54_; uint8_t v_isShared_55_; uint8_t v_isSharedCheck_61_; -v_numRegularExits_51_ = lean_ctor_get(v_b_41_, 0); -v_reassigns_52_ = lean_ctor_get(v_b_41_, 1); -v_isSharedCheck_61_ = !lean_is_exclusive(v_b_41_); -if (v_isSharedCheck_61_ == 0) +lean_object* v_numRegularExits_56_; lean_object* v_reassigns_57_; lean_object* v___x_59_; uint8_t v_isShared_60_; uint8_t v_isSharedCheck_66_; +v_numRegularExits_56_ = lean_ctor_get(v_b_46_, 0); +v_reassigns_57_ = lean_ctor_get(v_b_46_, 1); +v_isSharedCheck_66_ = !lean_is_exclusive(v_b_46_); +if (v_isSharedCheck_66_ == 0) { -v___x_54_ = v_b_41_; -v_isShared_55_ = v_isSharedCheck_61_; -goto v_resetjp_53_; +v___x_59_ = v_b_46_; +v_isShared_60_ = v_isSharedCheck_66_; +goto v_resetjp_58_; } else { -lean_inc(v_reassigns_52_); -lean_inc(v_numRegularExits_51_); -lean_dec(v_b_41_); -v___x_54_ = lean_box(0); -v_isShared_55_ = v_isSharedCheck_61_; -goto v_resetjp_53_; +lean_inc(v_reassigns_57_); +lean_inc(v_numRegularExits_56_); +lean_dec(v_b_46_); +v___x_59_ = lean_box(0); +v_isShared_60_ = v_isSharedCheck_66_; +goto v_resetjp_58_; } -v_resetjp_53_: +v_resetjp_58_: { -lean_object* v___x_56_; lean_object* v___x_57_; lean_object* v___x_59_; -v___x_56_ = lean_nat_add(v_numRegularExits_45_, v_numRegularExits_51_); -lean_dec(v_numRegularExits_51_); -lean_dec(v_numRegularExits_45_); -v___x_57_ = l_Lean_NameSet_append(v_reassigns_46_, v_reassigns_52_); -if (v_isShared_55_ == 0) +lean_object* v___x_61_; lean_object* v___x_62_; lean_object* v___x_64_; +v___x_61_ = lean_nat_add(v_numRegularExits_50_, v_numRegularExits_56_); +lean_dec(v_numRegularExits_56_); +lean_dec(v_numRegularExits_50_); +v___x_62_ = l_Lean_NameSet_append(v_reassigns_51_, v_reassigns_57_); +if (v_isShared_60_ == 0) { -lean_ctor_set(v___x_54_, 1, v___x_57_); -lean_ctor_set(v___x_54_, 0, v___x_56_); -v___x_59_ = v___x_54_; -goto v_reusejp_58_; +lean_ctor_set(v___x_59_, 1, v___x_62_); +lean_ctor_set(v___x_59_, 0, v___x_61_); +v___x_64_ = v___x_59_; +goto v_reusejp_63_; } else { -lean_object* v_reuseFailAlloc_60_; -v_reuseFailAlloc_60_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v_reuseFailAlloc_60_, 0, v___x_56_); -lean_ctor_set(v_reuseFailAlloc_60_, 1, v___x_57_); -v___x_59_ = v_reuseFailAlloc_60_; -goto v_reusejp_58_; +lean_object* v_reuseFailAlloc_65_; +v_reuseFailAlloc_65_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v_reuseFailAlloc_65_, 0, v___x_61_); +lean_ctor_set(v_reuseFailAlloc_65_, 1, v___x_62_); +v___x_64_ = v_reuseFailAlloc_65_; +goto v_reusejp_63_; } -v_reusejp_58_: +v_reusejp_63_: { -lean_ctor_set_uint8(v___x_59_, sizeof(void*)*2, v___y_49_); -lean_ctor_set_uint8(v___x_59_, sizeof(void*)*2 + 1, v___y_48_); -lean_ctor_set_uint8(v___x_59_, sizeof(void*)*2 + 2, v___y_50_); -return v___x_59_; +lean_ctor_set_uint8(v___x_64_, sizeof(void*)*2, v___y_53_); +lean_ctor_set_uint8(v___x_64_, sizeof(void*)*2 + 1, v___y_54_); +lean_ctor_set_uint8(v___x_64_, sizeof(void*)*2 + 2, v___y_55_); +return v___x_64_; } } } -v___jp_62_: +v___jp_67_: { -if (v_returnsEarly_44_ == 0) +if (v_returnsEarly_49_ == 0) { -uint8_t v_returnsEarly_65_; -v_returnsEarly_65_ = lean_ctor_get_uint8(v_b_41_, sizeof(void*)*2 + 2); -v___y_48_ = v___y_64_; -v___y_49_ = v___y_63_; -v___y_50_ = v_returnsEarly_65_; -goto v___jp_47_; +uint8_t v_returnsEarly_70_; +v_returnsEarly_70_ = lean_ctor_get_uint8(v_b_46_, sizeof(void*)*2 + 2); +v___y_53_ = v___y_68_; +v___y_54_ = v___y_69_; +v___y_55_ = v_returnsEarly_70_; +goto v___jp_52_; } else { -v___y_48_ = v___y_64_; -v___y_49_ = v___y_63_; -v___y_50_ = v_returnsEarly_44_; -goto v___jp_47_; +v___y_53_ = v___y_68_; +v___y_54_ = v___y_69_; +v___y_55_ = v_returnsEarly_49_; +goto v___jp_52_; } } -v___jp_66_: +v___jp_71_: { -if (v_continues_43_ == 0) +if (v_continues_48_ == 0) { -uint8_t v_continues_68_; -v_continues_68_ = lean_ctor_get_uint8(v_b_41_, sizeof(void*)*2 + 1); -v___y_63_ = v___y_67_; -v___y_64_ = v_continues_68_; -goto v___jp_62_; +uint8_t v_continues_73_; +v_continues_73_ = lean_ctor_get_uint8(v_b_46_, sizeof(void*)*2 + 1); +v___y_68_ = v___y_72_; +v___y_69_ = v_continues_73_; +goto v___jp_67_; } else { -v___y_63_ = v___y_67_; -v___y_64_ = v_continues_43_; -goto v___jp_62_; +v___y_68_ = v___y_72_; +v___y_69_ = v_continues_48_; +goto v___jp_67_; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_instToMessageDataControlInfo___lam__0(lean_object* v_x1_70_, lean_object* v_x2_71_, lean_object* v_x3_72_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_instToMessageDataControlInfo___lam__0(lean_object* v_x1_75_, lean_object* v_x2_76_, lean_object* v_x3_77_){ _start: { -lean_object* v___x_73_; -v___x_73_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v___x_73_, 0, v_x1_70_); -lean_ctor_set(v___x_73_, 1, v_x3_72_); -return v___x_73_; +lean_object* v___x_78_; +v___x_78_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v___x_78_, 0, v_x1_75_); +lean_ctor_set(v___x_78_, 1, v_x3_77_); +return v___x_78_; } } static lean_object* _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1(void){ _start: { -lean_object* v___x_75_; lean_object* v___x_76_; -v___x_75_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__0)); -v___x_76_ = l_Lean_stringToMessageData(v___x_75_); -return v___x_76_; +lean_object* v___x_80_; lean_object* v___x_81_; +v___x_80_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__0)); +v___x_81_ = l_Lean_stringToMessageData(v___x_80_); +return v___x_81_; } } static lean_object* _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3(void){ _start: { -lean_object* v___x_78_; lean_object* v___x_79_; -v___x_78_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__2)); -v___x_79_ = l_Lean_stringToMessageData(v___x_78_); -return v___x_79_; +lean_object* v___x_83_; lean_object* v___x_84_; +v___x_83_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__2)); +v___x_84_ = l_Lean_stringToMessageData(v___x_83_); +return v___x_84_; } } static lean_object* _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16(void){ _start: { -lean_object* v___x_101_; lean_object* v___x_102_; -v___x_101_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__15)); -v___x_102_ = l_Lean_stringToMessageData(v___x_101_); -return v___x_102_; +lean_object* v___x_106_; lean_object* v___x_107_; +v___x_106_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__15)); +v___x_107_ = l_Lean_stringToMessageData(v___x_106_); +return v___x_107_; } } static lean_object* _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20(void){ _start: { -lean_object* v___x_106_; lean_object* v___x_107_; -v___x_106_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__19)); -v___x_107_ = l_Lean_stringToMessageData(v___x_106_); -return v___x_107_; +lean_object* v___x_111_; lean_object* v___x_112_; +v___x_111_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__19)); +v___x_112_ = l_Lean_stringToMessageData(v___x_111_); +return v___x_112_; } } static lean_object* _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22(void){ _start: { -lean_object* v___x_109_; lean_object* v___x_110_; -v___x_109_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__21)); -v___x_110_ = l_Lean_stringToMessageData(v___x_109_); -return v___x_110_; +lean_object* v___x_114_; lean_object* v___x_115_; +v___x_114_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__21)); +v___x_115_ = l_Lean_stringToMessageData(v___x_114_); +return v___x_115_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1(lean_object* v___f_111_, lean_object* v_info_112_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1(lean_object* v___f_116_, lean_object* v_info_117_){ _start: { -uint8_t v_breaks_113_; uint8_t v_continues_114_; uint8_t v_returnsEarly_115_; lean_object* v_numRegularExits_116_; lean_object* v_reassigns_117_; lean_object* v___y_119_; lean_object* v___y_120_; lean_object* v___y_140_; lean_object* v___y_141_; lean_object* v___x_149_; lean_object* v___y_151_; -v_breaks_113_ = lean_ctor_get_uint8(v_info_112_, sizeof(void*)*2); -v_continues_114_ = lean_ctor_get_uint8(v_info_112_, sizeof(void*)*2 + 1); -v_returnsEarly_115_ = lean_ctor_get_uint8(v_info_112_, sizeof(void*)*2 + 2); -v_numRegularExits_116_ = lean_ctor_get(v_info_112_, 0); -lean_inc(v_numRegularExits_116_); -v_reassigns_117_ = lean_ctor_get(v_info_112_, 1); -lean_inc(v_reassigns_117_); -lean_dec_ref(v_info_112_); -v___x_149_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20); -if (v_breaks_113_ == 0) +uint8_t v_breaks_118_; uint8_t v_continues_119_; uint8_t v_returnsEarly_120_; lean_object* v_numRegularExits_121_; lean_object* v_reassigns_122_; lean_object* v___y_124_; lean_object* v___y_125_; lean_object* v___y_145_; lean_object* v___y_146_; lean_object* v___x_154_; lean_object* v___y_156_; +v_breaks_118_ = lean_ctor_get_uint8(v_info_117_, sizeof(void*)*2); +v_continues_119_ = lean_ctor_get_uint8(v_info_117_, sizeof(void*)*2 + 1); +v_returnsEarly_120_ = lean_ctor_get_uint8(v_info_117_, sizeof(void*)*2 + 2); +v_numRegularExits_121_ = lean_ctor_get(v_info_117_, 0); +lean_inc(v_numRegularExits_121_); +v_reassigns_122_ = lean_ctor_get(v_info_117_, 1); +lean_inc(v_reassigns_122_); +lean_dec_ref(v_info_117_); +v___x_154_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__20); +if (v_breaks_118_ == 0) { -lean_object* v___x_159_; -v___x_159_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); -v___y_151_ = v___x_159_; -goto v___jp_150_; +lean_object* v___x_164_; +v___x_164_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); +v___y_156_ = v___x_164_; +goto v___jp_155_; } else { -lean_object* v___x_160_; -v___x_160_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); -v___y_151_ = v___x_160_; -goto v___jp_150_; +lean_object* v___x_165_; +v___x_165_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); +v___y_156_ = v___x_165_; +goto v___jp_155_; } -v___jp_118_: +v___jp_123_: { -lean_object* v___x_121_; lean_object* v___x_122_; lean_object* v___x_123_; lean_object* v___x_124_; lean_object* v___x_125_; lean_object* v___x_126_; lean_object* v___x_127_; lean_object* v___x_128_; lean_object* v___x_129_; lean_object* v___x_130_; lean_object* v___x_131_; lean_object* v___x_132_; lean_object* v___x_133_; lean_object* v___x_134_; lean_object* v___x_135_; lean_object* v___x_136_; lean_object* v___x_137_; lean_object* v___x_138_; -lean_inc_ref(v___y_120_); -v___x_121_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_121_, 0, v___y_120_); -v___x_122_ = l_Lean_MessageData_ofFormat(v___x_121_); -v___x_123_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_123_, 0, v___y_119_); -lean_ctor_set(v___x_123_, 1, v___x_122_); -v___x_124_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1); -v___x_125_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_125_, 0, v___x_123_); -lean_ctor_set(v___x_125_, 1, v___x_124_); -v___x_126_ = l_Nat_reprFast(v_numRegularExits_116_); -v___x_127_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_127_, 0, v___x_126_); -v___x_128_ = l_Lean_MessageData_ofFormat(v___x_127_); -v___x_129_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_129_, 0, v___x_125_); -lean_ctor_set(v___x_129_, 1, v___x_128_); -v___x_130_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3); -v___x_131_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_131_, 0, v___x_129_); -lean_ctor_set(v___x_131_, 1, v___x_130_); -v___x_132_ = lean_box(0); -v___x_133_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__13)); -v___x_134_ = l_Std_DTreeMap_Internal_Impl_foldrM___redArg(v___x_133_, v___f_111_, v___x_132_, v_reassigns_117_); -v___x_135_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__14)); -v___x_136_ = l_List_mapTR_loop___redArg(v___x_135_, v___x_134_, v___x_132_); -v___x_137_ = l_Lean_MessageData_ofList(v___x_136_); -v___x_138_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_138_, 0, v___x_131_); -lean_ctor_set(v___x_138_, 1, v___x_137_); -return v___x_138_; +lean_object* v___x_126_; lean_object* v___x_127_; lean_object* v___x_128_; lean_object* v___x_129_; lean_object* v___x_130_; lean_object* v___x_131_; lean_object* v___x_132_; lean_object* v___x_133_; lean_object* v___x_134_; lean_object* v___x_135_; lean_object* v___x_136_; lean_object* v___x_137_; lean_object* v___x_138_; lean_object* v___x_139_; lean_object* v___x_140_; lean_object* v___x_141_; lean_object* v___x_142_; lean_object* v___x_143_; +lean_inc_ref(v___y_125_); +v___x_126_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_126_, 0, v___y_125_); +v___x_127_ = l_Lean_MessageData_ofFormat(v___x_126_); +v___x_128_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_128_, 0, v___y_124_); +lean_ctor_set(v___x_128_, 1, v___x_127_); +v___x_129_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__1); +v___x_130_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_130_, 0, v___x_128_); +lean_ctor_set(v___x_130_, 1, v___x_129_); +v___x_131_ = l_Nat_reprFast(v_numRegularExits_121_); +v___x_132_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_132_, 0, v___x_131_); +v___x_133_ = l_Lean_MessageData_ofFormat(v___x_132_); +v___x_134_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_134_, 0, v___x_130_); +lean_ctor_set(v___x_134_, 1, v___x_133_); +v___x_135_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__3); +v___x_136_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_136_, 0, v___x_134_); +lean_ctor_set(v___x_136_, 1, v___x_135_); +v___x_137_ = lean_box(0); +v___x_138_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__13)); +v___x_139_ = l_Std_DTreeMap_Internal_Impl_foldrM___redArg(v___x_138_, v___f_116_, v___x_137_, v_reassigns_122_); +v___x_140_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__14)); +v___x_141_ = l_List_mapTR_loop___redArg(v___x_140_, v___x_139_, v___x_137_); +v___x_142_ = l_Lean_MessageData_ofList(v___x_141_); +v___x_143_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_143_, 0, v___x_136_); +lean_ctor_set(v___x_143_, 1, v___x_142_); +return v___x_143_; } -v___jp_139_: +v___jp_144_: { -lean_object* v___x_142_; lean_object* v___x_143_; lean_object* v___x_144_; lean_object* v___x_145_; lean_object* v___x_146_; -lean_inc_ref(v___y_141_); -v___x_142_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_142_, 0, v___y_141_); -v___x_143_ = l_Lean_MessageData_ofFormat(v___x_142_); -v___x_144_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_144_, 0, v___y_140_); -lean_ctor_set(v___x_144_, 1, v___x_143_); -v___x_145_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16); -v___x_146_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_146_, 0, v___x_144_); -lean_ctor_set(v___x_146_, 1, v___x_145_); -if (v_returnsEarly_115_ == 0) +lean_object* v___x_147_; lean_object* v___x_148_; lean_object* v___x_149_; lean_object* v___x_150_; lean_object* v___x_151_; +lean_inc_ref(v___y_146_); +v___x_147_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_147_, 0, v___y_146_); +v___x_148_ = l_Lean_MessageData_ofFormat(v___x_147_); +v___x_149_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_149_, 0, v___y_145_); +lean_ctor_set(v___x_149_, 1, v___x_148_); +v___x_150_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__16); +v___x_151_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_151_, 0, v___x_149_); +lean_ctor_set(v___x_151_, 1, v___x_150_); +if (v_returnsEarly_120_ == 0) { -lean_object* v___x_147_; -v___x_147_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); -v___y_119_ = v___x_146_; -v___y_120_ = v___x_147_; -goto v___jp_118_; +lean_object* v___x_152_; +v___x_152_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); +v___y_124_ = v___x_151_; +v___y_125_ = v___x_152_; +goto v___jp_123_; } else { -lean_object* v___x_148_; -v___x_148_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); -v___y_119_ = v___x_146_; -v___y_120_ = v___x_148_; -goto v___jp_118_; +lean_object* v___x_153_; +v___x_153_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); +v___y_124_ = v___x_151_; +v___y_125_ = v___x_153_; +goto v___jp_123_; } } -v___jp_150_: +v___jp_155_: { -lean_object* v___x_152_; lean_object* v___x_153_; lean_object* v___x_154_; lean_object* v___x_155_; lean_object* v___x_156_; -lean_inc_ref(v___y_151_); -v___x_152_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_152_, 0, v___y_151_); -v___x_153_ = l_Lean_MessageData_ofFormat(v___x_152_); -v___x_154_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_154_, 0, v___x_149_); -lean_ctor_set(v___x_154_, 1, v___x_153_); -v___x_155_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22); -v___x_156_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_156_, 0, v___x_154_); -lean_ctor_set(v___x_156_, 1, v___x_155_); -if (v_continues_114_ == 0) +lean_object* v___x_157_; lean_object* v___x_158_; lean_object* v___x_159_; lean_object* v___x_160_; lean_object* v___x_161_; +lean_inc_ref(v___y_156_); +v___x_157_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_157_, 0, v___y_156_); +v___x_158_ = l_Lean_MessageData_ofFormat(v___x_157_); +v___x_159_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_159_, 0, v___x_154_); +lean_ctor_set(v___x_159_, 1, v___x_158_); +v___x_160_ = lean_obj_once(&l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22, &l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22_once, _init_l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__22); +v___x_161_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_161_, 0, v___x_159_); +lean_ctor_set(v___x_161_, 1, v___x_160_); +if (v_continues_119_ == 0) { -lean_object* v___x_157_; -v___x_157_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); -v___y_140_ = v___x_156_; -v___y_141_ = v___x_157_; -goto v___jp_139_; +lean_object* v___x_162_; +v___x_162_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__17)); +v___y_145_ = v___x_161_; +v___y_146_ = v___x_162_; +goto v___jp_144_; } else { -lean_object* v___x_158_; -v___x_158_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); -v___y_140_ = v___x_156_; -v___y_141_ = v___x_158_; -goto v___jp_139_; +lean_object* v___x_163_; +v___x_163_ = ((lean_object*)(l_Lean_Elab_Do_instToMessageDataControlInfo___lam__1___closed__18)); +v___y_145_ = v___x_161_; +v___y_146_ = v___x_163_; +goto v___jp_144_; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(lean_object* v_ref_189_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(lean_object* v_ref_194_){ _start: { -lean_object* v___x_191_; lean_object* v___x_192_; lean_object* v___x_193_; lean_object* v___x_194_; lean_object* v___x_195_; lean_object* v___x_196_; -v___x_191_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__1)); -v___x_192_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__3)); -v___x_193_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__8)); -v___x_194_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__12)); -v___x_195_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__13)); -v___x_196_ = l_Lean_Elab_mkElabAttribute___redArg(v___x_191_, v___x_192_, v___x_193_, v___x_194_, v___x_195_, v_ref_189_); -return v___x_196_; +lean_object* v___x_196_; lean_object* v___x_197_; lean_object* v___x_198_; lean_object* v___x_199_; lean_object* v___x_200_; lean_object* v___x_201_; +v___x_196_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__1)); +v___x_197_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__3)); +v___x_198_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__8)); +v___x_199_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__12)); +v___x_200_ = ((lean_object*)(l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___closed__13)); +v___x_201_ = l_Lean_Elab_mkElabAttribute___redArg(v___x_196_, v___x_197_, v___x_198_, v___x_199_, v___x_200_, v_ref_194_); +return v___x_201_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___boxed(lean_object* v_ref_197_, lean_object* v_a_198_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe___boxed(lean_object* v_ref_202_, lean_object* v_a_203_){ _start: { -lean_object* v_res_199_; -v_res_199_ = l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(v_ref_197_); -return v_res_199_; +lean_object* v_res_204_; +v_res_204_ = l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(v_ref_202_); +return v_res_204_; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_(){ _start: { -lean_object* v___x_207_; lean_object* v___x_208_; -v___x_207_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); -v___x_208_ = l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(v___x_207_); -return v___x_208_; +lean_object* v___x_212_; lean_object* v___x_213_; +v___x_212_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); +v___x_213_ = l_Lean_Elab_Do_mkControlInfoElemAttributeUnsafe(v___x_212_); +return v___x_213_; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2____boxed(lean_object* v_a_209_){ +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2____boxed(lean_object* v_a_214_){ _start: { -lean_object* v_res_210_; -v_res_210_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_(); -return v_res_210_; +lean_object* v_res_215_; +v_res_215_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_(); +return v_res_215_; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1(){ _start: { -lean_object* v___x_213_; lean_object* v___x_214_; lean_object* v___x_215_; -v___x_213_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); -v___x_214_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___closed__0)); -v___x_215_ = l_Lean_addBuiltinDocString(v___x_213_, v___x_214_); -return v___x_215_; +lean_object* v___x_218_; lean_object* v___x_219_; lean_object* v___x_220_; +v___x_218_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); +v___x_219_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___closed__0)); +v___x_220_ = l_Lean_addBuiltinDocString(v___x_218_, v___x_219_); +return v___x_220_; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___boxed(lean_object* v_a_216_){ +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1___boxed(lean_object* v_a_221_){ _start: { -lean_object* v_res_217_; -v_res_217_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1(); -return v_res_217_; +lean_object* v_res_222_; +v_res_222_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_docString__1(); +return v_res_222_; } } LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3(){ _start: { -lean_object* v___x_244_; lean_object* v___x_245_; lean_object* v___x_246_; -v___x_244_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); -v___x_245_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__6)); -v___x_246_ = l_Lean_addBuiltinDeclarationRanges(v___x_244_, v___x_245_); -return v___x_246_; +lean_object* v___x_249_; lean_object* v___x_250_; lean_object* v___x_251_; +v___x_249_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_initFn___closed__1_00___x40_Lean_Elab_Do_InferControlInfo_39974866____hygCtx___hyg_2_)); +v___x_250_ = ((lean_object*)(l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___closed__6)); +v___x_251_ = l_Lean_addBuiltinDeclarationRanges(v___x_249_, v___x_250_); +return v___x_251_; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___boxed(lean_object* v_a_247_){ +LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3___boxed(lean_object* v_a_252_){ _start: { -lean_object* v_res_248_; -v_res_248_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3(); -return v_res_248_; +lean_object* v_res_253_; +v_res_253_ = l___private_Lean_Elab_Do_InferControlInfo_0__Lean_Elab_Do_controlInfoElemAttribute___regBuiltin_Lean_Elab_Do_controlInfoElemAttribute_declRange__3(); +return v_res_253_; } } -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(lean_object* v_msgData_249_, lean_object* v___y_250_, lean_object* v___y_251_, lean_object* v___y_252_, lean_object* v___y_253_){ +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(lean_object* v_msgData_254_, lean_object* v___y_255_, lean_object* v___y_256_, lean_object* v___y_257_, lean_object* v___y_258_){ _start: { -lean_object* v___x_255_; lean_object* v_env_256_; lean_object* v___x_257_; lean_object* v_mctx_258_; lean_object* v_lctx_259_; lean_object* v_options_260_; lean_object* v___x_261_; lean_object* v___x_262_; lean_object* v___x_263_; -v___x_255_ = lean_st_ref_get(v___y_253_); -v_env_256_ = lean_ctor_get(v___x_255_, 0); -lean_inc_ref(v_env_256_); -lean_dec(v___x_255_); -v___x_257_ = lean_st_ref_get(v___y_251_); -v_mctx_258_ = lean_ctor_get(v___x_257_, 0); -lean_inc_ref(v_mctx_258_); -lean_dec(v___x_257_); -v_lctx_259_ = lean_ctor_get(v___y_250_, 2); -v_options_260_ = lean_ctor_get(v___y_252_, 2); -lean_inc_ref(v_options_260_); -lean_inc_ref(v_lctx_259_); -v___x_261_ = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(v___x_261_, 0, v_env_256_); -lean_ctor_set(v___x_261_, 1, v_mctx_258_); -lean_ctor_set(v___x_261_, 2, v_lctx_259_); -lean_ctor_set(v___x_261_, 3, v_options_260_); -v___x_262_ = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(v___x_262_, 0, v___x_261_); -lean_ctor_set(v___x_262_, 1, v_msgData_249_); -v___x_263_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_263_, 0, v___x_262_); -return v___x_263_; +lean_object* v___x_260_; lean_object* v_env_261_; lean_object* v___x_262_; lean_object* v_mctx_263_; lean_object* v_lctx_264_; lean_object* v_options_265_; lean_object* v___x_266_; lean_object* v___x_267_; lean_object* v___x_268_; +v___x_260_ = lean_st_ref_get(v___y_258_); +v_env_261_ = lean_ctor_get(v___x_260_, 0); +lean_inc_ref(v_env_261_); +lean_dec(v___x_260_); +v___x_262_ = lean_st_ref_get(v___y_256_); +v_mctx_263_ = lean_ctor_get(v___x_262_, 0); +lean_inc_ref(v_mctx_263_); +lean_dec(v___x_262_); +v_lctx_264_ = lean_ctor_get(v___y_255_, 2); +v_options_265_ = lean_ctor_get(v___y_257_, 2); +lean_inc_ref(v_options_265_); +lean_inc_ref(v_lctx_264_); +v___x_266_ = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(v___x_266_, 0, v_env_261_); +lean_ctor_set(v___x_266_, 1, v_mctx_263_); +lean_ctor_set(v___x_266_, 2, v_lctx_264_); +lean_ctor_set(v___x_266_, 3, v_options_265_); +v___x_267_ = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(v___x_267_, 0, v___x_266_); +lean_ctor_set(v___x_267_, 1, v_msgData_254_); +v___x_268_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_268_, 0, v___x_267_); +return v___x_268_; } } -LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10___boxed(lean_object* v_msgData_264_, lean_object* v___y_265_, lean_object* v___y_266_, lean_object* v___y_267_, lean_object* v___y_268_, lean_object* v___y_269_){ +LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10___boxed(lean_object* v_msgData_269_, lean_object* v___y_270_, lean_object* v___y_271_, lean_object* v___y_272_, lean_object* v___y_273_, lean_object* v___y_274_){ _start: { -lean_object* v_res_270_; -v_res_270_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msgData_264_, v___y_265_, v___y_266_, v___y_267_, v___y_268_); -lean_dec(v___y_268_); -lean_dec_ref(v___y_267_); -lean_dec(v___y_266_); -lean_dec_ref(v___y_265_); -return v_res_270_; +lean_object* v_res_275_; +v_res_275_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msgData_269_, v___y_270_, v___y_271_, v___y_272_, v___y_273_); +lean_dec(v___y_273_); +lean_dec_ref(v___y_272_); +lean_dec(v___y_271_); +lean_dec_ref(v___y_270_); +return v_res_275_; } } static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0(void){ _start: { -lean_object* v___x_271_; lean_object* v___x_272_; -v___x_271_ = lean_box(1); -v___x_272_ = l_Lean_MessageData_ofFormat(v___x_271_); -return v___x_272_; +lean_object* v___x_276_; lean_object* v___x_277_; +v___x_276_ = lean_box(1); +v___x_277_ = l_Lean_MessageData_ofFormat(v___x_276_); +return v___x_277_; } } static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3(void){ _start: { -lean_object* v___x_276_; lean_object* v___x_277_; -v___x_276_ = ((lean_object*)(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__2)); -v___x_277_ = l_Lean_MessageData_ofFormat(v___x_276_); -return v___x_277_; +lean_object* v___x_281_; lean_object* v___x_282_; +v___x_281_ = ((lean_object*)(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__2)); +v___x_282_ = l_Lean_MessageData_ofFormat(v___x_281_); +return v___x_282_; } } -LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20(lean_object* v_x_278_, lean_object* v_x_279_){ +LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20(lean_object* v_x_283_, lean_object* v_x_284_){ _start: { -if (lean_obj_tag(v_x_279_) == 0) +if (lean_obj_tag(v_x_284_) == 0) { -return v_x_278_; +return v_x_283_; } else { -lean_object* v_head_280_; lean_object* v_tail_281_; lean_object* v___x_283_; uint8_t v_isShared_284_; uint8_t v_isSharedCheck_303_; -v_head_280_ = lean_ctor_get(v_x_279_, 0); -v_tail_281_ = lean_ctor_get(v_x_279_, 1); -v_isSharedCheck_303_ = !lean_is_exclusive(v_x_279_); -if (v_isSharedCheck_303_ == 0) +lean_object* v_head_285_; lean_object* v_tail_286_; lean_object* v___x_288_; uint8_t v_isShared_289_; uint8_t v_isSharedCheck_308_; +v_head_285_ = lean_ctor_get(v_x_284_, 0); +v_tail_286_ = lean_ctor_get(v_x_284_, 1); +v_isSharedCheck_308_ = !lean_is_exclusive(v_x_284_); +if (v_isSharedCheck_308_ == 0) { -v___x_283_ = v_x_279_; -v_isShared_284_ = v_isSharedCheck_303_; -goto v_resetjp_282_; +v___x_288_ = v_x_284_; +v_isShared_289_ = v_isSharedCheck_308_; +goto v_resetjp_287_; } else { -lean_inc(v_tail_281_); -lean_inc(v_head_280_); -lean_dec(v_x_279_); -v___x_283_ = lean_box(0); -v_isShared_284_ = v_isSharedCheck_303_; -goto v_resetjp_282_; +lean_inc(v_tail_286_); +lean_inc(v_head_285_); +lean_dec(v_x_284_); +v___x_288_ = lean_box(0); +v_isShared_289_ = v_isSharedCheck_308_; +goto v_resetjp_287_; } -v_resetjp_282_: +v_resetjp_287_: { -lean_object* v_before_285_; lean_object* v___x_287_; uint8_t v_isShared_288_; uint8_t v_isSharedCheck_301_; -v_before_285_ = lean_ctor_get(v_head_280_, 0); -v_isSharedCheck_301_ = !lean_is_exclusive(v_head_280_); -if (v_isSharedCheck_301_ == 0) +lean_object* v_before_290_; lean_object* v___x_292_; uint8_t v_isShared_293_; uint8_t v_isSharedCheck_306_; +v_before_290_ = lean_ctor_get(v_head_285_, 0); +v_isSharedCheck_306_ = !lean_is_exclusive(v_head_285_); +if (v_isSharedCheck_306_ == 0) { -lean_object* v_unused_302_; -v_unused_302_ = lean_ctor_get(v_head_280_, 1); -lean_dec(v_unused_302_); -v___x_287_ = v_head_280_; -v_isShared_288_ = v_isSharedCheck_301_; -goto v_resetjp_286_; +lean_object* v_unused_307_; +v_unused_307_ = lean_ctor_get(v_head_285_, 1); +lean_dec(v_unused_307_); +v___x_292_ = v_head_285_; +v_isShared_293_ = v_isSharedCheck_306_; +goto v_resetjp_291_; } else { -lean_inc(v_before_285_); -lean_dec(v_head_280_); -v___x_287_ = lean_box(0); -v_isShared_288_ = v_isSharedCheck_301_; -goto v_resetjp_286_; +lean_inc(v_before_290_); +lean_dec(v_head_285_); +v___x_292_ = lean_box(0); +v_isShared_293_ = v_isSharedCheck_306_; +goto v_resetjp_291_; } -v_resetjp_286_: +v_resetjp_291_: { -lean_object* v___x_289_; lean_object* v___x_291_; -v___x_289_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0); -if (v_isShared_288_ == 0) +lean_object* v___x_294_; lean_object* v___x_296_; +v___x_294_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0); +if (v_isShared_293_ == 0) { -lean_ctor_set_tag(v___x_287_, 7); -lean_ctor_set(v___x_287_, 1, v___x_289_); -lean_ctor_set(v___x_287_, 0, v_x_278_); -v___x_291_ = v___x_287_; -goto v_reusejp_290_; +lean_ctor_set_tag(v___x_292_, 7); +lean_ctor_set(v___x_292_, 1, v___x_294_); +lean_ctor_set(v___x_292_, 0, v_x_283_); +v___x_296_ = v___x_292_; +goto v_reusejp_295_; } else { -lean_object* v_reuseFailAlloc_300_; -v_reuseFailAlloc_300_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_300_, 0, v_x_278_); -lean_ctor_set(v_reuseFailAlloc_300_, 1, v___x_289_); -v___x_291_ = v_reuseFailAlloc_300_; -goto v_reusejp_290_; +lean_object* v_reuseFailAlloc_305_; +v_reuseFailAlloc_305_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_305_, 0, v_x_283_); +lean_ctor_set(v_reuseFailAlloc_305_, 1, v___x_294_); +v___x_296_ = v_reuseFailAlloc_305_; +goto v_reusejp_295_; } -v_reusejp_290_: +v_reusejp_295_: { -lean_object* v___x_292_; lean_object* v___x_294_; -v___x_292_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3); -if (v_isShared_284_ == 0) +lean_object* v___x_297_; lean_object* v___x_299_; +v___x_297_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__3); +if (v_isShared_289_ == 0) { -lean_ctor_set_tag(v___x_283_, 7); -lean_ctor_set(v___x_283_, 1, v___x_292_); -lean_ctor_set(v___x_283_, 0, v___x_291_); -v___x_294_ = v___x_283_; -goto v_reusejp_293_; +lean_ctor_set_tag(v___x_288_, 7); +lean_ctor_set(v___x_288_, 1, v___x_297_); +lean_ctor_set(v___x_288_, 0, v___x_296_); +v___x_299_ = v___x_288_; +goto v_reusejp_298_; } else { -lean_object* v_reuseFailAlloc_299_; -v_reuseFailAlloc_299_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_299_, 0, v___x_291_); -lean_ctor_set(v_reuseFailAlloc_299_, 1, v___x_292_); -v___x_294_ = v_reuseFailAlloc_299_; -goto v_reusejp_293_; +lean_object* v_reuseFailAlloc_304_; +v_reuseFailAlloc_304_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_304_, 0, v___x_296_); +lean_ctor_set(v_reuseFailAlloc_304_, 1, v___x_297_); +v___x_299_ = v_reuseFailAlloc_304_; +goto v_reusejp_298_; } -v_reusejp_293_: +v_reusejp_298_: { -lean_object* v___x_295_; lean_object* v___x_296_; lean_object* v___x_297_; -v___x_295_ = l_Lean_MessageData_ofSyntax(v_before_285_); -v___x_296_ = l_Lean_indentD(v___x_295_); -v___x_297_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_297_, 0, v___x_294_); -lean_ctor_set(v___x_297_, 1, v___x_296_); -v_x_278_ = v___x_297_; -v_x_279_ = v_tail_281_; +lean_object* v___x_300_; lean_object* v___x_301_; lean_object* v___x_302_; +v___x_300_ = l_Lean_MessageData_ofSyntax(v_before_290_); +v___x_301_ = l_Lean_indentD(v___x_300_); +v___x_302_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_302_, 0, v___x_299_); +lean_ctor_set(v___x_302_, 1, v___x_301_); +v_x_283_ = v___x_302_; +v_x_284_ = v_tail_286_; goto _start; } } @@ -1554,1146 +1571,1146 @@ goto _start; } } } -LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(lean_object* v_opts_304_, lean_object* v_opt_305_){ +LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(lean_object* v_opts_309_, lean_object* v_opt_310_){ _start: { -lean_object* v_name_306_; lean_object* v_defValue_307_; lean_object* v_map_308_; lean_object* v___x_309_; -v_name_306_ = lean_ctor_get(v_opt_305_, 0); -v_defValue_307_ = lean_ctor_get(v_opt_305_, 1); -v_map_308_ = lean_ctor_get(v_opts_304_, 0); -v___x_309_ = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(v_map_308_, v_name_306_); -if (lean_obj_tag(v___x_309_) == 0) +lean_object* v_name_311_; lean_object* v_defValue_312_; lean_object* v_map_313_; lean_object* v___x_314_; +v_name_311_ = lean_ctor_get(v_opt_310_, 0); +v_defValue_312_ = lean_ctor_get(v_opt_310_, 1); +v_map_313_ = lean_ctor_get(v_opts_309_, 0); +v___x_314_ = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(v_map_313_, v_name_311_); +if (lean_obj_tag(v___x_314_) == 0) { -uint8_t v___x_310_; -v___x_310_ = lean_unbox(v_defValue_307_); -return v___x_310_; +uint8_t v___x_315_; +v___x_315_ = lean_unbox(v_defValue_312_); +return v___x_315_; } else { -lean_object* v_val_311_; -v_val_311_ = lean_ctor_get(v___x_309_, 0); -lean_inc(v_val_311_); -lean_dec_ref(v___x_309_); -if (lean_obj_tag(v_val_311_) == 1) +lean_object* v_val_316_; +v_val_316_ = lean_ctor_get(v___x_314_, 0); +lean_inc(v_val_316_); +lean_dec_ref(v___x_314_); +if (lean_obj_tag(v_val_316_) == 1) { -uint8_t v_v_312_; -v_v_312_ = lean_ctor_get_uint8(v_val_311_, 0); -lean_dec_ref(v_val_311_); -return v_v_312_; +uint8_t v_v_317_; +v_v_317_ = lean_ctor_get_uint8(v_val_316_, 0); +lean_dec_ref(v_val_316_); +return v_v_317_; } else { -uint8_t v___x_313_; -lean_dec(v_val_311_); -v___x_313_ = lean_unbox(v_defValue_307_); -return v___x_313_; +uint8_t v___x_318_; +lean_dec(v_val_316_); +v___x_318_ = lean_unbox(v_defValue_312_); +return v___x_318_; } } } } -LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19___boxed(lean_object* v_opts_314_, lean_object* v_opt_315_){ +LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19___boxed(lean_object* v_opts_319_, lean_object* v_opt_320_){ _start: { -uint8_t v_res_316_; lean_object* v_r_317_; -v_res_316_ = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(v_opts_314_, v_opt_315_); -lean_dec_ref(v_opt_315_); -lean_dec_ref(v_opts_314_); -v_r_317_ = lean_box(v_res_316_); -return v_r_317_; +uint8_t v_res_321_; lean_object* v_r_322_; +v_res_321_ = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(v_opts_319_, v_opt_320_); +lean_dec_ref(v_opt_320_); +lean_dec_ref(v_opts_319_); +v_r_322_ = lean_box(v_res_321_); +return v_r_322_; } } static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2(void){ _start: { -lean_object* v___x_321_; lean_object* v___x_322_; -v___x_321_ = ((lean_object*)(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__1)); -v___x_322_ = l_Lean_MessageData_ofFormat(v___x_321_); -return v___x_322_; +lean_object* v___x_326_; lean_object* v___x_327_; +v___x_326_ = ((lean_object*)(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__1)); +v___x_327_ = l_Lean_MessageData_ofFormat(v___x_326_); +return v___x_327_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(lean_object* v_msgData_323_, lean_object* v_macroStack_324_, lean_object* v___y_325_){ +LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(lean_object* v_msgData_328_, lean_object* v_macroStack_329_, lean_object* v___y_330_){ _start: { -lean_object* v_options_327_; lean_object* v___x_328_; uint8_t v___x_329_; -v_options_327_ = lean_ctor_get(v___y_325_, 2); -v___x_328_ = l_Lean_Elab_pp_macroStack; -v___x_329_ = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(v_options_327_, v___x_328_); -if (v___x_329_ == 0) +lean_object* v_options_332_; lean_object* v___x_333_; uint8_t v___x_334_; +v_options_332_ = lean_ctor_get(v___y_330_, 2); +v___x_333_ = l_Lean_Elab_pp_macroStack; +v___x_334_ = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__19(v_options_332_, v___x_333_); +if (v___x_334_ == 0) { -lean_object* v___x_330_; -lean_dec(v_macroStack_324_); -v___x_330_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_330_, 0, v_msgData_323_); -return v___x_330_; +lean_object* v___x_335_; +lean_dec(v_macroStack_329_); +v___x_335_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_335_, 0, v_msgData_328_); +return v___x_335_; } else { -if (lean_obj_tag(v_macroStack_324_) == 0) +if (lean_obj_tag(v_macroStack_329_) == 0) { -lean_object* v___x_331_; -v___x_331_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_331_, 0, v_msgData_323_); -return v___x_331_; +lean_object* v___x_336_; +v___x_336_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_336_, 0, v_msgData_328_); +return v___x_336_; } else { -lean_object* v_head_332_; lean_object* v_after_333_; lean_object* v___x_335_; uint8_t v_isShared_336_; uint8_t v_isSharedCheck_348_; -v_head_332_ = lean_ctor_get(v_macroStack_324_, 0); -lean_inc(v_head_332_); -v_after_333_ = lean_ctor_get(v_head_332_, 1); -v_isSharedCheck_348_ = !lean_is_exclusive(v_head_332_); -if (v_isSharedCheck_348_ == 0) +lean_object* v_head_337_; lean_object* v_after_338_; lean_object* v___x_340_; uint8_t v_isShared_341_; uint8_t v_isSharedCheck_353_; +v_head_337_ = lean_ctor_get(v_macroStack_329_, 0); +lean_inc(v_head_337_); +v_after_338_ = lean_ctor_get(v_head_337_, 1); +v_isSharedCheck_353_ = !lean_is_exclusive(v_head_337_); +if (v_isSharedCheck_353_ == 0) { -lean_object* v_unused_349_; -v_unused_349_ = lean_ctor_get(v_head_332_, 0); -lean_dec(v_unused_349_); -v___x_335_ = v_head_332_; -v_isShared_336_ = v_isSharedCheck_348_; -goto v_resetjp_334_; +lean_object* v_unused_354_; +v_unused_354_ = lean_ctor_get(v_head_337_, 0); +lean_dec(v_unused_354_); +v___x_340_ = v_head_337_; +v_isShared_341_ = v_isSharedCheck_353_; +goto v_resetjp_339_; } else { -lean_inc(v_after_333_); -lean_dec(v_head_332_); -v___x_335_ = lean_box(0); -v_isShared_336_ = v_isSharedCheck_348_; -goto v_resetjp_334_; +lean_inc(v_after_338_); +lean_dec(v_head_337_); +v___x_340_ = lean_box(0); +v_isShared_341_ = v_isSharedCheck_353_; +goto v_resetjp_339_; } -v_resetjp_334_: +v_resetjp_339_: { -lean_object* v___x_337_; lean_object* v___x_339_; -v___x_337_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0); -if (v_isShared_336_ == 0) +lean_object* v___x_342_; lean_object* v___x_344_; +v___x_342_ = lean_obj_once(&l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0, &l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0_once, _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20___closed__0); +if (v_isShared_341_ == 0) { -lean_ctor_set_tag(v___x_335_, 7); -lean_ctor_set(v___x_335_, 1, v___x_337_); -lean_ctor_set(v___x_335_, 0, v_msgData_323_); -v___x_339_ = v___x_335_; -goto v_reusejp_338_; +lean_ctor_set_tag(v___x_340_, 7); +lean_ctor_set(v___x_340_, 1, v___x_342_); +lean_ctor_set(v___x_340_, 0, v_msgData_328_); +v___x_344_ = v___x_340_; +goto v_reusejp_343_; } else { -lean_object* v_reuseFailAlloc_347_; -v_reuseFailAlloc_347_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_347_, 0, v_msgData_323_); -lean_ctor_set(v_reuseFailAlloc_347_, 1, v___x_337_); -v___x_339_ = v_reuseFailAlloc_347_; -goto v_reusejp_338_; +lean_object* v_reuseFailAlloc_352_; +v_reuseFailAlloc_352_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_352_, 0, v_msgData_328_); +lean_ctor_set(v_reuseFailAlloc_352_, 1, v___x_342_); +v___x_344_ = v_reuseFailAlloc_352_; +goto v_reusejp_343_; } -v_reusejp_338_: +v_reusejp_343_: { -lean_object* v___x_340_; lean_object* v___x_341_; lean_object* v___x_342_; lean_object* v___x_343_; lean_object* v_msgData_344_; lean_object* v___x_345_; lean_object* v___x_346_; -v___x_340_ = lean_obj_once(&l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2, &l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2_once, _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2); -v___x_341_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_341_, 0, v___x_339_); -lean_ctor_set(v___x_341_, 1, v___x_340_); -v___x_342_ = l_Lean_MessageData_ofSyntax(v_after_333_); -v___x_343_ = l_Lean_indentD(v___x_342_); -v_msgData_344_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_msgData_344_, 0, v___x_341_); -lean_ctor_set(v_msgData_344_, 1, v___x_343_); -v___x_345_ = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20(v_msgData_344_, v_macroStack_324_); -v___x_346_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_346_, 0, v___x_345_); -return v___x_346_; +lean_object* v___x_345_; lean_object* v___x_346_; lean_object* v___x_347_; lean_object* v___x_348_; lean_object* v_msgData_349_; lean_object* v___x_350_; lean_object* v___x_351_; +v___x_345_ = lean_obj_once(&l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2, &l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2_once, _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___closed__2); +v___x_346_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_346_, 0, v___x_344_); +lean_ctor_set(v___x_346_, 1, v___x_345_); +v___x_347_ = l_Lean_MessageData_ofSyntax(v_after_338_); +v___x_348_ = l_Lean_indentD(v___x_347_); +v_msgData_349_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_msgData_349_, 0, v___x_346_); +lean_ctor_set(v_msgData_349_, 1, v___x_348_); +v___x_350_ = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11_spec__20(v_msgData_349_, v_macroStack_329_); +v___x_351_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_351_, 0, v___x_350_); +return v___x_351_; } } } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___boxed(lean_object* v_msgData_350_, lean_object* v_macroStack_351_, lean_object* v___y_352_, lean_object* v___y_353_){ +LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg___boxed(lean_object* v_msgData_355_, lean_object* v_macroStack_356_, lean_object* v___y_357_, lean_object* v___y_358_){ _start: { -lean_object* v_res_354_; -v_res_354_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_msgData_350_, v_macroStack_351_, v___y_352_); -lean_dec_ref(v___y_352_); -return v_res_354_; +lean_object* v_res_359_; +v_res_359_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_msgData_355_, v_macroStack_356_, v___y_357_); +lean_dec_ref(v___y_357_); +return v_res_359_; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(lean_object* v_msg_355_, lean_object* v___y_356_, lean_object* v___y_357_, lean_object* v___y_358_, lean_object* v___y_359_, lean_object* v___y_360_, lean_object* v___y_361_){ +LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(lean_object* v_msg_360_, lean_object* v___y_361_, lean_object* v___y_362_, lean_object* v___y_363_, lean_object* v___y_364_, lean_object* v___y_365_, lean_object* v___y_366_){ _start: { -lean_object* v_ref_363_; lean_object* v___x_364_; lean_object* v_a_365_; lean_object* v_macroStack_366_; lean_object* v___x_367_; lean_object* v___x_368_; lean_object* v_a_369_; lean_object* v___x_371_; uint8_t v_isShared_372_; uint8_t v_isSharedCheck_377_; -v_ref_363_ = lean_ctor_get(v___y_360_, 5); -v___x_364_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msg_355_, v___y_358_, v___y_359_, v___y_360_, v___y_361_); -v_a_365_ = lean_ctor_get(v___x_364_, 0); -lean_inc(v_a_365_); -lean_dec_ref(v___x_364_); -v_macroStack_366_ = lean_ctor_get(v___y_356_, 1); -v___x_367_ = l_Lean_Elab_getBetterRef(v_ref_363_, v_macroStack_366_); -lean_inc(v_macroStack_366_); -v___x_368_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_a_365_, v_macroStack_366_, v___y_360_); -v_a_369_ = lean_ctor_get(v___x_368_, 0); -v_isSharedCheck_377_ = !lean_is_exclusive(v___x_368_); -if (v_isSharedCheck_377_ == 0) +lean_object* v_ref_368_; lean_object* v___x_369_; lean_object* v_a_370_; lean_object* v_macroStack_371_; lean_object* v___x_372_; lean_object* v___x_373_; lean_object* v_a_374_; lean_object* v___x_376_; uint8_t v_isShared_377_; uint8_t v_isSharedCheck_382_; +v_ref_368_ = lean_ctor_get(v___y_365_, 5); +v___x_369_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msg_360_, v___y_363_, v___y_364_, v___y_365_, v___y_366_); +v_a_370_ = lean_ctor_get(v___x_369_, 0); +lean_inc(v_a_370_); +lean_dec_ref(v___x_369_); +v_macroStack_371_ = lean_ctor_get(v___y_361_, 1); +v___x_372_ = l_Lean_Elab_getBetterRef(v_ref_368_, v_macroStack_371_); +lean_inc(v_macroStack_371_); +v___x_373_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_a_370_, v_macroStack_371_, v___y_365_); +v_a_374_ = lean_ctor_get(v___x_373_, 0); +v_isSharedCheck_382_ = !lean_is_exclusive(v___x_373_); +if (v_isSharedCheck_382_ == 0) { -v___x_371_ = v___x_368_; -v_isShared_372_ = v_isSharedCheck_377_; -goto v_resetjp_370_; +v___x_376_ = v___x_373_; +v_isShared_377_ = v_isSharedCheck_382_; +goto v_resetjp_375_; } else { -lean_inc(v_a_369_); -lean_dec(v___x_368_); -v___x_371_ = lean_box(0); -v_isShared_372_ = v_isSharedCheck_377_; -goto v_resetjp_370_; +lean_inc(v_a_374_); +lean_dec(v___x_373_); +v___x_376_ = lean_box(0); +v_isShared_377_ = v_isSharedCheck_382_; +goto v_resetjp_375_; } -v_resetjp_370_: +v_resetjp_375_: { -lean_object* v___x_373_; lean_object* v___x_375_; -v___x_373_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_373_, 0, v___x_367_); -lean_ctor_set(v___x_373_, 1, v_a_369_); -if (v_isShared_372_ == 0) +lean_object* v___x_378_; lean_object* v___x_380_; +v___x_378_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_378_, 0, v___x_372_); +lean_ctor_set(v___x_378_, 1, v_a_374_); +if (v_isShared_377_ == 0) { -lean_ctor_set_tag(v___x_371_, 1); -lean_ctor_set(v___x_371_, 0, v___x_373_); -v___x_375_ = v___x_371_; -goto v_reusejp_374_; +lean_ctor_set_tag(v___x_376_, 1); +lean_ctor_set(v___x_376_, 0, v___x_378_); +v___x_380_ = v___x_376_; +goto v_reusejp_379_; } else { -lean_object* v_reuseFailAlloc_376_; -v_reuseFailAlloc_376_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_376_, 0, v___x_373_); -v___x_375_ = v_reuseFailAlloc_376_; -goto v_reusejp_374_; +lean_object* v_reuseFailAlloc_381_; +v_reuseFailAlloc_381_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_381_, 0, v___x_378_); +v___x_380_ = v_reuseFailAlloc_381_; +goto v_reusejp_379_; } -v_reusejp_374_: +v_reusejp_379_: { -return v___x_375_; +return v___x_380_; } } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg___boxed(lean_object* v_msg_378_, lean_object* v___y_379_, lean_object* v___y_380_, lean_object* v___y_381_, lean_object* v___y_382_, lean_object* v___y_383_, lean_object* v___y_384_, lean_object* v___y_385_){ +LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg___boxed(lean_object* v_msg_383_, lean_object* v___y_384_, lean_object* v___y_385_, lean_object* v___y_386_, lean_object* v___y_387_, lean_object* v___y_388_, lean_object* v___y_389_, lean_object* v___y_390_){ _start: { -lean_object* v_res_386_; -v_res_386_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_378_, v___y_379_, v___y_380_, v___y_381_, v___y_382_, v___y_383_, v___y_384_); -lean_dec(v___y_384_); -lean_dec_ref(v___y_383_); -lean_dec(v___y_382_); -lean_dec_ref(v___y_381_); -lean_dec(v___y_380_); -lean_dec_ref(v___y_379_); -return v_res_386_; +lean_object* v_res_391_; +v_res_391_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_383_, v___y_384_, v___y_385_, v___y_386_, v___y_387_, v___y_388_, v___y_389_); +lean_dec(v___y_389_); +lean_dec_ref(v___y_388_); +lean_dec(v___y_387_); +lean_dec_ref(v___y_386_); +lean_dec(v___y_385_); +lean_dec_ref(v___y_384_); +return v_res_391_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(lean_object* v_as_387_, size_t v_i_388_, size_t v_stop_389_, lean_object* v_b_390_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(lean_object* v_as_392_, size_t v_i_393_, size_t v_stop_394_, lean_object* v_b_395_){ _start: { -uint8_t v___x_391_; -v___x_391_ = lean_usize_dec_eq(v_i_388_, v_stop_389_); -if (v___x_391_ == 0) +uint8_t v___x_396_; +v___x_396_ = lean_usize_dec_eq(v_i_393_, v_stop_394_); +if (v___x_396_ == 0) { -lean_object* v___x_392_; lean_object* v___x_393_; size_t v___x_394_; size_t v___x_395_; -v___x_392_ = lean_array_uget_borrowed(v_as_387_, v_i_388_); -lean_inc(v___x_392_); -v___x_393_ = l_Lean_NameSet_insert(v_b_390_, v___x_392_); -v___x_394_ = ((size_t)1ULL); -v___x_395_ = lean_usize_add(v_i_388_, v___x_394_); -v_i_388_ = v___x_395_; -v_b_390_ = v___x_393_; +lean_object* v___x_397_; lean_object* v___x_398_; size_t v___x_399_; size_t v___x_400_; +v___x_397_ = lean_array_uget_borrowed(v_as_392_, v_i_393_); +lean_inc(v___x_397_); +v___x_398_ = l_Lean_NameSet_insert(v_b_395_, v___x_397_); +v___x_399_ = ((size_t)1ULL); +v___x_400_ = lean_usize_add(v_i_393_, v___x_399_); +v_i_393_ = v___x_400_; +v_b_395_ = v___x_398_; goto _start; } else { -return v_b_390_; +return v_b_395_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21___boxed(lean_object* v_as_397_, lean_object* v_i_398_, lean_object* v_stop_399_, lean_object* v_b_400_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21___boxed(lean_object* v_as_402_, lean_object* v_i_403_, lean_object* v_stop_404_, lean_object* v_b_405_){ _start: { -size_t v_i_boxed_401_; size_t v_stop_boxed_402_; lean_object* v_res_403_; -v_i_boxed_401_ = lean_unbox_usize(v_i_398_); -lean_dec(v_i_398_); -v_stop_boxed_402_ = lean_unbox_usize(v_stop_399_); -lean_dec(v_stop_399_); -v_res_403_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v_as_397_, v_i_boxed_401_, v_stop_boxed_402_, v_b_400_); -lean_dec_ref(v_as_397_); -return v_res_403_; +size_t v_i_boxed_406_; size_t v_stop_boxed_407_; lean_object* v_res_408_; +v_i_boxed_406_ = lean_unbox_usize(v_i_403_); +lean_dec(v_i_403_); +v_stop_boxed_407_ = lean_unbox_usize(v_stop_404_); +lean_dec(v_stop_404_); +v_res_408_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v_as_402_, v_i_boxed_406_, v_stop_boxed_407_, v_b_405_); +lean_dec_ref(v_as_402_); +return v_res_408_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(size_t v_sz_404_, size_t v_i_405_, lean_object* v_bs_406_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(size_t v_sz_409_, size_t v_i_410_, lean_object* v_bs_411_){ _start: { -uint8_t v___x_407_; -v___x_407_ = lean_usize_dec_lt(v_i_405_, v_sz_404_); -if (v___x_407_ == 0) +uint8_t v___x_412_; +v___x_412_ = lean_usize_dec_lt(v_i_410_, v_sz_409_); +if (v___x_412_ == 0) { -return v_bs_406_; +return v_bs_411_; } else { -lean_object* v_v_408_; lean_object* v___x_409_; lean_object* v_bs_x27_410_; lean_object* v___x_411_; size_t v___x_412_; size_t v___x_413_; lean_object* v___x_414_; -v_v_408_ = lean_array_uget(v_bs_406_, v_i_405_); -v___x_409_ = lean_unsigned_to_nat(0u); -v_bs_x27_410_ = lean_array_uset(v_bs_406_, v_i_405_, v___x_409_); -v___x_411_ = l_Lean_TSyntax_getId(v_v_408_); -lean_dec(v_v_408_); -v___x_412_ = ((size_t)1ULL); -v___x_413_ = lean_usize_add(v_i_405_, v___x_412_); -v___x_414_ = lean_array_uset(v_bs_x27_410_, v_i_405_, v___x_411_); -v_i_405_ = v___x_413_; -v_bs_406_ = v___x_414_; +lean_object* v_v_413_; lean_object* v___x_414_; lean_object* v_bs_x27_415_; lean_object* v___x_416_; size_t v___x_417_; size_t v___x_418_; lean_object* v___x_419_; +v_v_413_ = lean_array_uget(v_bs_411_, v_i_410_); +v___x_414_ = lean_unsigned_to_nat(0u); +v_bs_x27_415_ = lean_array_uset(v_bs_411_, v_i_410_, v___x_414_); +v___x_416_ = l_Lean_TSyntax_getId(v_v_413_); +lean_dec(v_v_413_); +v___x_417_ = ((size_t)1ULL); +v___x_418_ = lean_usize_add(v_i_410_, v___x_417_); +v___x_419_ = lean_array_uset(v_bs_x27_415_, v_i_410_, v___x_416_); +v_i_410_ = v___x_418_; +v_bs_411_ = v___x_419_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20___boxed(lean_object* v_sz_416_, lean_object* v_i_417_, lean_object* v_bs_418_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20___boxed(lean_object* v_sz_421_, lean_object* v_i_422_, lean_object* v_bs_423_){ _start: { -size_t v_sz_boxed_419_; size_t v_i_boxed_420_; lean_object* v_res_421_; -v_sz_boxed_419_ = lean_unbox_usize(v_sz_416_); -lean_dec(v_sz_416_); -v_i_boxed_420_ = lean_unbox_usize(v_i_417_); -lean_dec(v_i_417_); -v_res_421_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(v_sz_boxed_419_, v_i_boxed_420_, v_bs_418_); -return v_res_421_; +size_t v_sz_boxed_424_; size_t v_i_boxed_425_; lean_object* v_res_426_; +v_sz_boxed_424_ = lean_unbox_usize(v_sz_421_); +lean_dec(v_sz_421_); +v_i_boxed_425_ = lean_unbox_usize(v_i_422_); +lean_dec(v_i_422_); +v_res_426_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(v_sz_boxed_424_, v_i_boxed_425_, v_bs_423_); +return v_res_426_; } } static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0(void){ _start: { -lean_object* v___x_422_; lean_object* v___x_423_; lean_object* v___x_424_; -v___x_422_ = lean_box(0); -v___x_423_ = l_Lean_Elab_unsupportedSyntaxExceptionId; -v___x_424_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v___x_424_, 0, v___x_423_); -lean_ctor_set(v___x_424_, 1, v___x_422_); -return v___x_424_; +lean_object* v___x_427_; lean_object* v___x_428_; lean_object* v___x_429_; +v___x_427_ = lean_box(0); +v___x_428_ = l_Lean_Elab_unsupportedSyntaxExceptionId; +v___x_429_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v___x_429_, 0, v___x_428_); +lean_ctor_set(v___x_429_, 1, v___x_427_); +return v___x_429_; } } LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(){ _start: { -lean_object* v___x_426_; lean_object* v___x_427_; -v___x_426_ = lean_obj_once(&l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0, &l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0_once, _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0); -v___x_427_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_427_, 0, v___x_426_); -return v___x_427_; +lean_object* v___x_431_; lean_object* v___x_432_; +v___x_431_ = lean_obj_once(&l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0, &l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0_once, _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___closed__0); +v___x_432_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_432_, 0, v___x_431_); +return v___x_432_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___boxed(lean_object* v___y_428_){ +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg___boxed(lean_object* v___y_433_){ _start: { -lean_object* v_res_429_; -v_res_429_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -return v_res_429_; +lean_object* v_res_434_; +v_res_434_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +return v_res_434_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(size_t v_sz_430_, size_t v_i_431_, lean_object* v_bs_432_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(size_t v_sz_435_, size_t v_i_436_, lean_object* v_bs_437_){ _start: { -uint8_t v___x_433_; -v___x_433_ = lean_usize_dec_lt(v_i_431_, v_sz_430_); -if (v___x_433_ == 0) +uint8_t v___x_438_; +v___x_438_ = lean_usize_dec_lt(v_i_436_, v_sz_435_); +if (v___x_438_ == 0) { -lean_object* v___x_434_; -v___x_434_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_434_, 0, v_bs_432_); -return v___x_434_; +lean_object* v___x_439_; +v___x_439_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_439_, 0, v_bs_437_); +return v___x_439_; } else { -lean_object* v___x_435_; lean_object* v_bs_x27_436_; lean_object* v___x_437_; size_t v___x_438_; size_t v___x_439_; lean_object* v___x_440_; -v___x_435_ = lean_unsigned_to_nat(0u); -v_bs_x27_436_ = lean_array_uset(v_bs_432_, v_i_431_, v___x_435_); -v___x_437_ = lean_box(0); -v___x_438_ = ((size_t)1ULL); -v___x_439_ = lean_usize_add(v_i_431_, v___x_438_); -v___x_440_ = lean_array_uset(v_bs_x27_436_, v_i_431_, v___x_437_); -v_i_431_ = v___x_439_; -v_bs_432_ = v___x_440_; +lean_object* v___x_440_; lean_object* v_bs_x27_441_; lean_object* v___x_442_; size_t v___x_443_; size_t v___x_444_; lean_object* v___x_445_; +v___x_440_ = lean_unsigned_to_nat(0u); +v_bs_x27_441_ = lean_array_uset(v_bs_437_, v_i_436_, v___x_440_); +v___x_442_ = lean_box(0); +v___x_443_ = ((size_t)1ULL); +v___x_444_ = lean_usize_add(v_i_436_, v___x_443_); +v___x_445_ = lean_array_uset(v_bs_x27_441_, v_i_436_, v___x_442_); +v_i_436_ = v___x_444_; +v_bs_437_ = v___x_445_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8___boxed(lean_object* v_sz_442_, lean_object* v_i_443_, lean_object* v_bs_444_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8___boxed(lean_object* v_sz_447_, lean_object* v_i_448_, lean_object* v_bs_449_){ _start: { -size_t v_sz_boxed_445_; size_t v_i_boxed_446_; lean_object* v_res_447_; -v_sz_boxed_445_ = lean_unbox_usize(v_sz_442_); -lean_dec(v_sz_442_); -v_i_boxed_446_ = lean_unbox_usize(v_i_443_); -lean_dec(v_i_443_); -v_res_447_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_boxed_445_, v_i_boxed_446_, v_bs_444_); -return v_res_447_; +size_t v_sz_boxed_450_; size_t v_i_boxed_451_; lean_object* v_res_452_; +v_sz_boxed_450_ = lean_unbox_usize(v_sz_447_); +lean_dec(v_sz_447_); +v_i_boxed_451_ = lean_unbox_usize(v_i_448_); +lean_dec(v_i_448_); +v_res_452_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_boxed_450_, v_i_boxed_451_, v_bs_449_); +return v_res_452_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(uint8_t v___x_448_, uint8_t v___x_449_, lean_object* v_as_450_, size_t v_i_451_, size_t v_stop_452_, lean_object* v_b_453_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(uint8_t v___x_453_, uint8_t v___x_454_, lean_object* v_as_455_, size_t v_i_456_, size_t v_stop_457_, lean_object* v_b_458_){ _start: { -lean_object* v___y_455_; uint8_t v___x_459_; -v___x_459_ = lean_usize_dec_eq(v_i_451_, v_stop_452_); -if (v___x_459_ == 0) +lean_object* v___y_460_; uint8_t v___x_464_; +v___x_464_ = lean_usize_dec_eq(v_i_456_, v_stop_457_); +if (v___x_464_ == 0) { -lean_object* v_fst_460_; uint8_t v___x_461_; -v_fst_460_ = lean_ctor_get(v_b_453_, 0); -v___x_461_ = lean_unbox(v_fst_460_); -if (v___x_461_ == 0) +lean_object* v_fst_465_; uint8_t v___x_466_; +v_fst_465_ = lean_ctor_get(v_b_458_, 0); +v___x_466_ = lean_unbox(v_fst_465_); +if (v___x_466_ == 0) { -lean_object* v_snd_462_; lean_object* v___x_464_; uint8_t v_isShared_465_; uint8_t v_isSharedCheck_470_; -v_snd_462_ = lean_ctor_get(v_b_453_, 1); -v_isSharedCheck_470_ = !lean_is_exclusive(v_b_453_); -if (v_isSharedCheck_470_ == 0) +lean_object* v_snd_467_; lean_object* v___x_469_; uint8_t v_isShared_470_; uint8_t v_isSharedCheck_475_; +v_snd_467_ = lean_ctor_get(v_b_458_, 1); +v_isSharedCheck_475_ = !lean_is_exclusive(v_b_458_); +if (v_isSharedCheck_475_ == 0) { -lean_object* v_unused_471_; -v_unused_471_ = lean_ctor_get(v_b_453_, 0); -lean_dec(v_unused_471_); -v___x_464_ = v_b_453_; -v_isShared_465_ = v_isSharedCheck_470_; -goto v_resetjp_463_; +lean_object* v_unused_476_; +v_unused_476_ = lean_ctor_get(v_b_458_, 0); +lean_dec(v_unused_476_); +v___x_469_ = v_b_458_; +v_isShared_470_ = v_isSharedCheck_475_; +goto v_resetjp_468_; } else { -lean_inc(v_snd_462_); -lean_dec(v_b_453_); -v___x_464_ = lean_box(0); -v_isShared_465_ = v_isSharedCheck_470_; -goto v_resetjp_463_; +lean_inc(v_snd_467_); +lean_dec(v_b_458_); +v___x_469_ = lean_box(0); +v_isShared_470_ = v_isSharedCheck_475_; +goto v_resetjp_468_; } -v_resetjp_463_: +v_resetjp_468_: { -lean_object* v___x_466_; lean_object* v___x_468_; -v___x_466_ = lean_box(v___x_448_); -if (v_isShared_465_ == 0) +lean_object* v___x_471_; lean_object* v___x_473_; +v___x_471_ = lean_box(v___x_453_); +if (v_isShared_470_ == 0) { -lean_ctor_set(v___x_464_, 0, v___x_466_); -v___x_468_ = v___x_464_; -goto v_reusejp_467_; +lean_ctor_set(v___x_469_, 0, v___x_471_); +v___x_473_ = v___x_469_; +goto v_reusejp_472_; } else { -lean_object* v_reuseFailAlloc_469_; -v_reuseFailAlloc_469_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_469_, 0, v___x_466_); -lean_ctor_set(v_reuseFailAlloc_469_, 1, v_snd_462_); -v___x_468_ = v_reuseFailAlloc_469_; -goto v_reusejp_467_; +lean_object* v_reuseFailAlloc_474_; +v_reuseFailAlloc_474_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_474_, 0, v___x_471_); +lean_ctor_set(v_reuseFailAlloc_474_, 1, v_snd_467_); +v___x_473_ = v_reuseFailAlloc_474_; +goto v_reusejp_472_; } -v_reusejp_467_: +v_reusejp_472_: { -v___y_455_ = v___x_468_; -goto v___jp_454_; +v___y_460_ = v___x_473_; +goto v___jp_459_; } } } else { -lean_object* v_snd_472_; lean_object* v___x_474_; uint8_t v_isShared_475_; uint8_t v_isSharedCheck_482_; -v_snd_472_ = lean_ctor_get(v_b_453_, 1); -v_isSharedCheck_482_ = !lean_is_exclusive(v_b_453_); -if (v_isSharedCheck_482_ == 0) +lean_object* v_snd_477_; lean_object* v___x_479_; uint8_t v_isShared_480_; uint8_t v_isSharedCheck_487_; +v_snd_477_ = lean_ctor_get(v_b_458_, 1); +v_isSharedCheck_487_ = !lean_is_exclusive(v_b_458_); +if (v_isSharedCheck_487_ == 0) { -lean_object* v_unused_483_; -v_unused_483_ = lean_ctor_get(v_b_453_, 0); -lean_dec(v_unused_483_); -v___x_474_ = v_b_453_; -v_isShared_475_ = v_isSharedCheck_482_; -goto v_resetjp_473_; +lean_object* v_unused_488_; +v_unused_488_ = lean_ctor_get(v_b_458_, 0); +lean_dec(v_unused_488_); +v___x_479_ = v_b_458_; +v_isShared_480_ = v_isSharedCheck_487_; +goto v_resetjp_478_; } else { -lean_inc(v_snd_472_); -lean_dec(v_b_453_); -v___x_474_ = lean_box(0); -v_isShared_475_ = v_isSharedCheck_482_; -goto v_resetjp_473_; +lean_inc(v_snd_477_); +lean_dec(v_b_458_); +v___x_479_ = lean_box(0); +v_isShared_480_ = v_isSharedCheck_487_; +goto v_resetjp_478_; } -v_resetjp_473_: +v_resetjp_478_: { -lean_object* v___x_476_; lean_object* v___x_477_; lean_object* v___x_478_; lean_object* v___x_480_; -v___x_476_ = lean_array_uget_borrowed(v_as_450_, v_i_451_); -lean_inc(v___x_476_); -v___x_477_ = lean_array_push(v_snd_472_, v___x_476_); -v___x_478_ = lean_box(v___x_449_); -if (v_isShared_475_ == 0) +lean_object* v___x_481_; lean_object* v___x_482_; lean_object* v___x_483_; lean_object* v___x_485_; +v___x_481_ = lean_array_uget_borrowed(v_as_455_, v_i_456_); +lean_inc(v___x_481_); +v___x_482_ = lean_array_push(v_snd_477_, v___x_481_); +v___x_483_ = lean_box(v___x_454_); +if (v_isShared_480_ == 0) { -lean_ctor_set(v___x_474_, 1, v___x_477_); -lean_ctor_set(v___x_474_, 0, v___x_478_); -v___x_480_ = v___x_474_; -goto v_reusejp_479_; +lean_ctor_set(v___x_479_, 1, v___x_482_); +lean_ctor_set(v___x_479_, 0, v___x_483_); +v___x_485_ = v___x_479_; +goto v_reusejp_484_; } else { -lean_object* v_reuseFailAlloc_481_; -v_reuseFailAlloc_481_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_481_, 0, v___x_478_); -lean_ctor_set(v_reuseFailAlloc_481_, 1, v___x_477_); -v___x_480_ = v_reuseFailAlloc_481_; -goto v_reusejp_479_; +lean_object* v_reuseFailAlloc_486_; +v_reuseFailAlloc_486_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_486_, 0, v___x_483_); +lean_ctor_set(v_reuseFailAlloc_486_, 1, v___x_482_); +v___x_485_ = v_reuseFailAlloc_486_; +goto v_reusejp_484_; } -v_reusejp_479_: +v_reusejp_484_: { -v___y_455_ = v___x_480_; -goto v___jp_454_; +v___y_460_ = v___x_485_; +goto v___jp_459_; } } } } else { -return v_b_453_; +return v_b_458_; } -v___jp_454_: +v___jp_459_: { -size_t v___x_456_; size_t v___x_457_; -v___x_456_ = ((size_t)1ULL); -v___x_457_ = lean_usize_add(v_i_451_, v___x_456_); -v_i_451_ = v___x_457_; -v_b_453_ = v___y_455_; +size_t v___x_461_; size_t v___x_462_; +v___x_461_ = ((size_t)1ULL); +v___x_462_ = lean_usize_add(v_i_456_, v___x_461_); +v_i_456_ = v___x_462_; +v_b_458_ = v___y_460_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9___boxed(lean_object* v___x_484_, lean_object* v___x_485_, lean_object* v_as_486_, lean_object* v_i_487_, lean_object* v_stop_488_, lean_object* v_b_489_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9___boxed(lean_object* v___x_489_, lean_object* v___x_490_, lean_object* v_as_491_, lean_object* v_i_492_, lean_object* v_stop_493_, lean_object* v_b_494_){ _start: { -uint8_t v___x_286248__boxed_490_; uint8_t v___x_286249__boxed_491_; size_t v_i_boxed_492_; size_t v_stop_boxed_493_; lean_object* v_res_494_; -v___x_286248__boxed_490_ = lean_unbox(v___x_484_); -v___x_286249__boxed_491_ = lean_unbox(v___x_485_); -v_i_boxed_492_ = lean_unbox_usize(v_i_487_); -lean_dec(v_i_487_); -v_stop_boxed_493_ = lean_unbox_usize(v_stop_488_); -lean_dec(v_stop_488_); -v_res_494_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_286248__boxed_490_, v___x_286249__boxed_491_, v_as_486_, v_i_boxed_492_, v_stop_boxed_493_, v_b_489_); -lean_dec_ref(v_as_486_); -return v_res_494_; +uint8_t v___x_286225__boxed_495_; uint8_t v___x_286226__boxed_496_; size_t v_i_boxed_497_; size_t v_stop_boxed_498_; lean_object* v_res_499_; +v___x_286225__boxed_495_ = lean_unbox(v___x_489_); +v___x_286226__boxed_496_ = lean_unbox(v___x_490_); +v_i_boxed_497_ = lean_unbox_usize(v_i_492_); +lean_dec(v_i_492_); +v_stop_boxed_498_ = lean_unbox_usize(v_stop_493_); +lean_dec(v_stop_493_); +v_res_499_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_286225__boxed_495_, v___x_286226__boxed_496_, v_as_491_, v_i_boxed_497_, v_stop_boxed_498_, v_b_494_); +lean_dec_ref(v_as_491_); +return v_res_499_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1(lean_object* v_env_495_, lean_object* v_declName_496_, lean_object* v___y_497_, lean_object* v___y_498_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1(lean_object* v_env_500_, lean_object* v_declName_501_, lean_object* v___y_502_, lean_object* v___y_503_){ _start: { -uint8_t v___x_499_; lean_object* v_env_500_; lean_object* v___x_501_; uint8_t v___x_502_; uint8_t v___x_503_; -v___x_499_ = 0; -v_env_500_ = l_Lean_Environment_setExporting(v_env_495_, v___x_499_); -lean_inc(v_declName_496_); -v___x_501_ = l_Lean_mkPrivateName(v_env_500_, v_declName_496_); -v___x_502_ = 1; -lean_inc_ref(v_env_500_); -v___x_503_ = l_Lean_Environment_contains(v_env_500_, v___x_501_, v___x_502_); -if (v___x_503_ == 0) +uint8_t v___x_504_; lean_object* v_env_505_; lean_object* v___x_506_; uint8_t v___x_507_; uint8_t v___x_508_; +v___x_504_ = 0; +v_env_505_ = l_Lean_Environment_setExporting(v_env_500_, v___x_504_); +lean_inc(v_declName_501_); +v___x_506_ = l_Lean_mkPrivateName(v_env_505_, v_declName_501_); +v___x_507_ = 1; +lean_inc_ref(v_env_505_); +v___x_508_ = l_Lean_Environment_contains(v_env_505_, v___x_506_, v___x_507_); +if (v___x_508_ == 0) { -lean_object* v___x_504_; uint8_t v___x_505_; lean_object* v___x_506_; lean_object* v___x_507_; -v___x_504_ = l_Lean_privateToUserName(v_declName_496_); -v___x_505_ = l_Lean_Environment_contains(v_env_500_, v___x_504_, v___x_502_); -v___x_506_ = lean_box(v___x_505_); -v___x_507_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_507_, 0, v___x_506_); -lean_ctor_set(v___x_507_, 1, v___y_498_); -return v___x_507_; +lean_object* v___x_509_; uint8_t v___x_510_; lean_object* v___x_511_; lean_object* v___x_512_; +v___x_509_ = l_Lean_privateToUserName(v_declName_501_); +v___x_510_ = l_Lean_Environment_contains(v_env_505_, v___x_509_, v___x_507_); +v___x_511_ = lean_box(v___x_510_); +v___x_512_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_512_, 0, v___x_511_); +lean_ctor_set(v___x_512_, 1, v___y_503_); +return v___x_512_; } else { -lean_object* v___x_508_; lean_object* v___x_509_; -lean_dec_ref(v_env_500_); -lean_dec(v_declName_496_); -v___x_508_ = lean_box(v___x_503_); -v___x_509_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_509_, 0, v___x_508_); -lean_ctor_set(v___x_509_, 1, v___y_498_); -return v___x_509_; +lean_object* v___x_513_; lean_object* v___x_514_; +lean_dec_ref(v_env_505_); +lean_dec(v_declName_501_); +v___x_513_ = lean_box(v___x_508_); +v___x_514_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_514_, 0, v___x_513_); +lean_ctor_set(v___x_514_, 1, v___y_503_); +return v___x_514_; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1___boxed(lean_object* v_env_510_, lean_object* v_declName_511_, lean_object* v___y_512_, lean_object* v___y_513_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1___boxed(lean_object* v_env_515_, lean_object* v_declName_516_, lean_object* v___y_517_, lean_object* v___y_518_){ _start: { -lean_object* v_res_514_; -v_res_514_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1(v_env_510_, v_declName_511_, v___y_512_, v___y_513_); -lean_dec_ref(v___y_512_); -return v_res_514_; +lean_object* v_res_519_; +v_res_519_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1(v_env_515_, v_declName_516_, v___y_517_, v___y_518_); +lean_dec_ref(v___y_517_); +return v_res_519_; } } static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3(void){ _start: { -lean_object* v___x_520_; lean_object* v___x_521_; -v___x_520_ = l_Lean_maxRecDepthErrorMessage; -v___x_521_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_521_, 0, v___x_520_); -return v___x_521_; +lean_object* v___x_525_; lean_object* v___x_526_; +v___x_525_ = l_Lean_maxRecDepthErrorMessage; +v___x_526_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_526_, 0, v___x_525_); +return v___x_526_; } } static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4(void){ _start: { -lean_object* v___x_522_; lean_object* v___x_523_; -v___x_522_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3); -v___x_523_ = l_Lean_MessageData_ofFormat(v___x_522_); -return v___x_523_; +lean_object* v___x_527_; lean_object* v___x_528_; +v___x_527_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__3); +v___x_528_ = l_Lean_MessageData_ofFormat(v___x_527_); +return v___x_528_; } } static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5(void){ _start: { -lean_object* v___x_524_; lean_object* v___x_525_; lean_object* v___x_526_; -v___x_524_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4); -v___x_525_ = ((lean_object*)(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__2)); -v___x_526_ = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(v___x_526_, 0, v___x_525_); -lean_ctor_set(v___x_526_, 1, v___x_524_); -return v___x_526_; -} -} -LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(lean_object* v_ref_527_){ -_start: -{ lean_object* v___x_529_; lean_object* v___x_530_; lean_object* v___x_531_; -v___x_529_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5); -v___x_530_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_530_, 0, v_ref_527_); -lean_ctor_set(v___x_530_, 1, v___x_529_); -v___x_531_ = lean_alloc_ctor(1, 1, 0); +v___x_529_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__4); +v___x_530_ = ((lean_object*)(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__2)); +v___x_531_ = lean_alloc_ctor(8, 2, 0); lean_ctor_set(v___x_531_, 0, v___x_530_); +lean_ctor_set(v___x_531_, 1, v___x_529_); return v___x_531_; } } -LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___boxed(lean_object* v_ref_532_, lean_object* v___y_533_){ +LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(lean_object* v_ref_532_){ _start: { -lean_object* v_res_534_; -v_res_534_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_ref_532_); -return v_res_534_; +lean_object* v___x_534_; lean_object* v___x_535_; lean_object* v___x_536_; +v___x_534_ = lean_obj_once(&l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5, &l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5_once, _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___closed__5); +v___x_535_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_535_, 0, v_ref_532_); +lean_ctor_set(v___x_535_, 1, v___x_534_); +v___x_536_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_536_, 0, v___x_535_); +return v___x_536_; } } -LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(lean_object* v_x_535_, lean_object* v___y_536_){ +LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg___boxed(lean_object* v_ref_537_, lean_object* v___y_538_){ _start: { -if (lean_obj_tag(v_x_535_) == 0) -{ -lean_object* v_a_537_; lean_object* v___x_538_; -v_a_537_ = lean_ctor_get(v_x_535_, 0); -lean_inc(v_a_537_); -v___x_538_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v___x_538_, 0, v_a_537_); -lean_ctor_set(v___x_538_, 1, v___y_536_); -return v___x_538_; -} -else -{ -lean_object* v_a_539_; lean_object* v___x_540_; -v_a_539_ = lean_ctor_get(v_x_535_, 0); -lean_inc(v_a_539_); -v___x_540_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_540_, 0, v_a_539_); -lean_ctor_set(v___x_540_, 1, v___y_536_); -return v___x_540_; +lean_object* v_res_539_; +v_res_539_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_ref_537_); +return v_res_539_; } } -} -LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg___boxed(lean_object* v_x_541_, lean_object* v___y_542_){ +LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(lean_object* v_x_540_, lean_object* v___y_541_){ _start: { -lean_object* v_res_543_; -v_res_543_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v_x_541_, v___y_542_); -lean_dec_ref(v_x_541_); -return v_res_543_; +if (lean_obj_tag(v_x_540_) == 0) +{ +lean_object* v_a_542_; lean_object* v___x_543_; +v_a_542_ = lean_ctor_get(v_x_540_, 0); +lean_inc(v_a_542_); +v___x_543_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v___x_543_, 0, v_a_542_); +lean_ctor_set(v___x_543_, 1, v___y_541_); +return v___x_543_; +} +else +{ +lean_object* v_a_544_; lean_object* v___x_545_; +v_a_544_ = lean_ctor_get(v_x_540_, 0); +lean_inc(v_a_544_); +v___x_545_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_545_, 0, v_a_544_); +lean_ctor_set(v___x_545_, 1, v___y_541_); +return v___x_545_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0(lean_object* v_env_544_, lean_object* v_stx_545_, lean_object* v___y_546_, lean_object* v___y_547_){ +} +LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg___boxed(lean_object* v_x_546_, lean_object* v___y_547_){ _start: { -lean_object* v___x_548_; -v___x_548_ = l_Lean_Elab_expandMacroImpl_x3f(v_env_544_, v_stx_545_, v___y_546_, v___y_547_); -if (lean_obj_tag(v___x_548_) == 0) -{ -lean_object* v_a_549_; -v_a_549_ = lean_ctor_get(v___x_548_, 0); -lean_inc(v_a_549_); -if (lean_obj_tag(v_a_549_) == 0) -{ -lean_object* v_a_550_; lean_object* v___x_552_; uint8_t v_isShared_553_; uint8_t v_isSharedCheck_558_; -v_a_550_ = lean_ctor_get(v___x_548_, 1); -v_isSharedCheck_558_ = !lean_is_exclusive(v___x_548_); -if (v_isSharedCheck_558_ == 0) -{ -lean_object* v_unused_559_; -v_unused_559_ = lean_ctor_get(v___x_548_, 0); -lean_dec(v_unused_559_); -v___x_552_ = v___x_548_; -v_isShared_553_ = v_isSharedCheck_558_; -goto v_resetjp_551_; -} -else -{ -lean_inc(v_a_550_); -lean_dec(v___x_548_); -v___x_552_ = lean_box(0); -v_isShared_553_ = v_isSharedCheck_558_; -goto v_resetjp_551_; -} -v_resetjp_551_: -{ -lean_object* v___x_554_; lean_object* v___x_556_; -v___x_554_ = lean_box(0); -if (v_isShared_553_ == 0) -{ -lean_ctor_set(v___x_552_, 0, v___x_554_); -v___x_556_ = v___x_552_; -goto v_reusejp_555_; -} -else -{ -lean_object* v_reuseFailAlloc_557_; -v_reuseFailAlloc_557_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_557_, 0, v___x_554_); -lean_ctor_set(v_reuseFailAlloc_557_, 1, v_a_550_); -v___x_556_ = v_reuseFailAlloc_557_; -goto v_reusejp_555_; -} -v_reusejp_555_: -{ -return v___x_556_; +lean_object* v_res_548_; +v_res_548_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v_x_546_, v___y_547_); +lean_dec_ref(v_x_546_); +return v_res_548_; } } -} -else -{ -lean_object* v_val_560_; lean_object* v___x_562_; uint8_t v_isShared_563_; uint8_t v_isSharedCheck_588_; -v_val_560_ = lean_ctor_get(v_a_549_, 0); -v_isSharedCheck_588_ = !lean_is_exclusive(v_a_549_); -if (v_isSharedCheck_588_ == 0) -{ -v___x_562_ = v_a_549_; -v_isShared_563_ = v_isSharedCheck_588_; -goto v_resetjp_561_; -} -else -{ -lean_inc(v_val_560_); -lean_dec(v_a_549_); -v___x_562_ = lean_box(0); -v_isShared_563_ = v_isSharedCheck_588_; -goto v_resetjp_561_; -} -v_resetjp_561_: -{ -lean_object* v_snd_564_; -v_snd_564_ = lean_ctor_get(v_val_560_, 1); -lean_inc(v_snd_564_); -lean_dec(v_val_560_); -if (lean_obj_tag(v_snd_564_) == 0) -{ -lean_object* v_a_565_; lean_object* v_a_566_; lean_object* v___x_568_; uint8_t v_isShared_569_; uint8_t v_isSharedCheck_574_; -lean_del_object(v___x_562_); -v_a_565_ = lean_ctor_get(v___x_548_, 1); -lean_inc(v_a_565_); -lean_dec_ref(v___x_548_); -v_a_566_ = lean_ctor_get(v_snd_564_, 0); -v_isSharedCheck_574_ = !lean_is_exclusive(v_snd_564_); -if (v_isSharedCheck_574_ == 0) -{ -v___x_568_ = v_snd_564_; -v_isShared_569_ = v_isSharedCheck_574_; -goto v_resetjp_567_; -} -else -{ -lean_inc(v_a_566_); -lean_dec(v_snd_564_); -v___x_568_ = lean_box(0); -v_isShared_569_ = v_isSharedCheck_574_; -goto v_resetjp_567_; -} -v_resetjp_567_: -{ -lean_object* v___x_571_; -if (v_isShared_569_ == 0) -{ -v___x_571_ = v___x_568_; -goto v_reusejp_570_; -} -else -{ -lean_object* v_reuseFailAlloc_573_; -v_reuseFailAlloc_573_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_573_, 0, v_a_566_); -v___x_571_ = v_reuseFailAlloc_573_; -goto v_reusejp_570_; -} -v_reusejp_570_: -{ -lean_object* v___x_572_; -v___x_572_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v___x_571_, v_a_565_); -lean_dec_ref(v___x_571_); -return v___x_572_; -} -} -} -else -{ -lean_object* v_a_575_; lean_object* v_a_576_; lean_object* v___x_578_; uint8_t v_isShared_579_; uint8_t v_isSharedCheck_587_; -v_a_575_ = lean_ctor_get(v___x_548_, 1); -lean_inc(v_a_575_); -lean_dec_ref(v___x_548_); -v_a_576_ = lean_ctor_get(v_snd_564_, 0); -v_isSharedCheck_587_ = !lean_is_exclusive(v_snd_564_); -if (v_isSharedCheck_587_ == 0) -{ -v___x_578_ = v_snd_564_; -v_isShared_579_ = v_isSharedCheck_587_; -goto v_resetjp_577_; -} -else -{ -lean_inc(v_a_576_); -lean_dec(v_snd_564_); -v___x_578_ = lean_box(0); -v_isShared_579_ = v_isSharedCheck_587_; -goto v_resetjp_577_; -} -v_resetjp_577_: -{ -lean_object* v___x_581_; -if (v_isShared_563_ == 0) -{ -lean_ctor_set(v___x_562_, 0, v_a_576_); -v___x_581_ = v___x_562_; -goto v_reusejp_580_; -} -else -{ -lean_object* v_reuseFailAlloc_586_; -v_reuseFailAlloc_586_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_586_, 0, v_a_576_); -v___x_581_ = v_reuseFailAlloc_586_; -goto v_reusejp_580_; -} -v_reusejp_580_: -{ -lean_object* v___x_583_; -if (v_isShared_579_ == 0) -{ -lean_ctor_set(v___x_578_, 0, v___x_581_); -v___x_583_ = v___x_578_; -goto v_reusejp_582_; -} -else -{ -lean_object* v_reuseFailAlloc_585_; -v_reuseFailAlloc_585_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_585_, 0, v___x_581_); -v___x_583_ = v_reuseFailAlloc_585_; -goto v_reusejp_582_; -} -v_reusejp_582_: -{ -lean_object* v___x_584_; -v___x_584_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v___x_583_, v_a_575_); -lean_dec_ref(v___x_583_); -return v___x_584_; -} -} -} -} -} -} -} -else -{ -lean_object* v_a_589_; lean_object* v_a_590_; lean_object* v___x_592_; uint8_t v_isShared_593_; uint8_t v_isSharedCheck_597_; -v_a_589_ = lean_ctor_get(v___x_548_, 0); -v_a_590_ = lean_ctor_get(v___x_548_, 1); -v_isSharedCheck_597_ = !lean_is_exclusive(v___x_548_); -if (v_isSharedCheck_597_ == 0) -{ -v___x_592_ = v___x_548_; -v_isShared_593_ = v_isSharedCheck_597_; -goto v_resetjp_591_; -} -else -{ -lean_inc(v_a_590_); -lean_inc(v_a_589_); -lean_dec(v___x_548_); -v___x_592_ = lean_box(0); -v_isShared_593_ = v_isSharedCheck_597_; -goto v_resetjp_591_; -} -v_resetjp_591_: -{ -lean_object* v___x_595_; -if (v_isShared_593_ == 0) -{ -v___x_595_ = v___x_592_; -goto v_reusejp_594_; -} -else -{ -lean_object* v_reuseFailAlloc_596_; -v_reuseFailAlloc_596_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_596_, 0, v_a_589_); -lean_ctor_set(v_reuseFailAlloc_596_, 1, v_a_590_); -v___x_595_ = v_reuseFailAlloc_596_; -goto v_reusejp_594_; -} -v_reusejp_594_: -{ -return v___x_595_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0___boxed(lean_object* v_env_598_, lean_object* v_stx_599_, lean_object* v___y_600_, lean_object* v___y_601_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0(lean_object* v_env_549_, lean_object* v_stx_550_, lean_object* v___y_551_, lean_object* v___y_552_){ _start: { -lean_object* v_res_602_; -v_res_602_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0(v_env_598_, v_stx_599_, v___y_600_, v___y_601_); -lean_dec_ref(v___y_600_); -return v_res_602_; +lean_object* v___x_553_; +v___x_553_ = l_Lean_Elab_expandMacroImpl_x3f(v_env_549_, v_stx_550_, v___y_551_, v___y_552_); +if (lean_obj_tag(v___x_553_) == 0) +{ +lean_object* v_a_554_; +v_a_554_ = lean_ctor_get(v___x_553_, 0); +lean_inc(v_a_554_); +if (lean_obj_tag(v_a_554_) == 0) +{ +lean_object* v_a_555_; lean_object* v___x_557_; uint8_t v_isShared_558_; uint8_t v_isSharedCheck_563_; +v_a_555_ = lean_ctor_get(v___x_553_, 1); +v_isSharedCheck_563_ = !lean_is_exclusive(v___x_553_); +if (v_isSharedCheck_563_ == 0) +{ +lean_object* v_unused_564_; +v_unused_564_ = lean_ctor_get(v___x_553_, 0); +lean_dec(v_unused_564_); +v___x_557_ = v___x_553_; +v_isShared_558_ = v_isSharedCheck_563_; +goto v_resetjp_556_; +} +else +{ +lean_inc(v_a_555_); +lean_dec(v___x_553_); +v___x_557_ = lean_box(0); +v_isShared_558_ = v_isSharedCheck_563_; +goto v_resetjp_556_; +} +v_resetjp_556_: +{ +lean_object* v___x_559_; lean_object* v___x_561_; +v___x_559_ = lean_box(0); +if (v_isShared_558_ == 0) +{ +lean_ctor_set(v___x_557_, 0, v___x_559_); +v___x_561_ = v___x_557_; +goto v_reusejp_560_; +} +else +{ +lean_object* v_reuseFailAlloc_562_; +v_reuseFailAlloc_562_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_562_, 0, v___x_559_); +lean_ctor_set(v_reuseFailAlloc_562_, 1, v_a_555_); +v___x_561_ = v_reuseFailAlloc_562_; +goto v_reusejp_560_; +} +v_reusejp_560_: +{ +return v___x_561_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(lean_object* v_ref_603_, lean_object* v_msg_604_, lean_object* v___y_605_, lean_object* v___y_606_, lean_object* v___y_607_, lean_object* v___y_608_, lean_object* v___y_609_, lean_object* v___y_610_){ +} +else +{ +lean_object* v_val_565_; lean_object* v___x_567_; uint8_t v_isShared_568_; uint8_t v_isSharedCheck_593_; +v_val_565_ = lean_ctor_get(v_a_554_, 0); +v_isSharedCheck_593_ = !lean_is_exclusive(v_a_554_); +if (v_isSharedCheck_593_ == 0) +{ +v___x_567_ = v_a_554_; +v_isShared_568_ = v_isSharedCheck_593_; +goto v_resetjp_566_; +} +else +{ +lean_inc(v_val_565_); +lean_dec(v_a_554_); +v___x_567_ = lean_box(0); +v_isShared_568_ = v_isSharedCheck_593_; +goto v_resetjp_566_; +} +v_resetjp_566_: +{ +lean_object* v_snd_569_; +v_snd_569_ = lean_ctor_get(v_val_565_, 1); +lean_inc(v_snd_569_); +lean_dec(v_val_565_); +if (lean_obj_tag(v_snd_569_) == 0) +{ +lean_object* v_a_570_; lean_object* v_a_571_; lean_object* v___x_573_; uint8_t v_isShared_574_; uint8_t v_isSharedCheck_579_; +lean_del_object(v___x_567_); +v_a_570_ = lean_ctor_get(v___x_553_, 1); +lean_inc(v_a_570_); +lean_dec_ref(v___x_553_); +v_a_571_ = lean_ctor_get(v_snd_569_, 0); +v_isSharedCheck_579_ = !lean_is_exclusive(v_snd_569_); +if (v_isSharedCheck_579_ == 0) +{ +v___x_573_ = v_snd_569_; +v_isShared_574_ = v_isSharedCheck_579_; +goto v_resetjp_572_; +} +else +{ +lean_inc(v_a_571_); +lean_dec(v_snd_569_); +v___x_573_ = lean_box(0); +v_isShared_574_ = v_isSharedCheck_579_; +goto v_resetjp_572_; +} +v_resetjp_572_: +{ +lean_object* v___x_576_; +if (v_isShared_574_ == 0) +{ +v___x_576_ = v___x_573_; +goto v_reusejp_575_; +} +else +{ +lean_object* v_reuseFailAlloc_578_; +v_reuseFailAlloc_578_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_578_, 0, v_a_571_); +v___x_576_ = v_reuseFailAlloc_578_; +goto v_reusejp_575_; +} +v_reusejp_575_: +{ +lean_object* v___x_577_; +v___x_577_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v___x_576_, v_a_570_); +lean_dec_ref(v___x_576_); +return v___x_577_; +} +} +} +else +{ +lean_object* v_a_580_; lean_object* v_a_581_; lean_object* v___x_583_; uint8_t v_isShared_584_; uint8_t v_isSharedCheck_592_; +v_a_580_ = lean_ctor_get(v___x_553_, 1); +lean_inc(v_a_580_); +lean_dec_ref(v___x_553_); +v_a_581_ = lean_ctor_get(v_snd_569_, 0); +v_isSharedCheck_592_ = !lean_is_exclusive(v_snd_569_); +if (v_isSharedCheck_592_ == 0) +{ +v___x_583_ = v_snd_569_; +v_isShared_584_ = v_isSharedCheck_592_; +goto v_resetjp_582_; +} +else +{ +lean_inc(v_a_581_); +lean_dec(v_snd_569_); +v___x_583_ = lean_box(0); +v_isShared_584_ = v_isSharedCheck_592_; +goto v_resetjp_582_; +} +v_resetjp_582_: +{ +lean_object* v___x_586_; +if (v_isShared_568_ == 0) +{ +lean_ctor_set(v___x_567_, 0, v_a_581_); +v___x_586_ = v___x_567_; +goto v_reusejp_585_; +} +else +{ +lean_object* v_reuseFailAlloc_591_; +v_reuseFailAlloc_591_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_591_, 0, v_a_581_); +v___x_586_ = v_reuseFailAlloc_591_; +goto v_reusejp_585_; +} +v_reusejp_585_: +{ +lean_object* v___x_588_; +if (v_isShared_584_ == 0) +{ +lean_ctor_set(v___x_583_, 0, v___x_586_); +v___x_588_ = v___x_583_; +goto v_reusejp_587_; +} +else +{ +lean_object* v_reuseFailAlloc_590_; +v_reuseFailAlloc_590_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_590_, 0, v___x_586_); +v___x_588_ = v_reuseFailAlloc_590_; +goto v_reusejp_587_; +} +v_reusejp_587_: +{ +lean_object* v___x_589_; +v___x_589_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v___x_588_, v_a_580_); +lean_dec_ref(v___x_588_); +return v___x_589_; +} +} +} +} +} +} +} +else +{ +lean_object* v_a_594_; lean_object* v_a_595_; lean_object* v___x_597_; uint8_t v_isShared_598_; uint8_t v_isSharedCheck_602_; +v_a_594_ = lean_ctor_get(v___x_553_, 0); +v_a_595_ = lean_ctor_get(v___x_553_, 1); +v_isSharedCheck_602_ = !lean_is_exclusive(v___x_553_); +if (v_isSharedCheck_602_ == 0) +{ +v___x_597_ = v___x_553_; +v_isShared_598_ = v_isSharedCheck_602_; +goto v_resetjp_596_; +} +else +{ +lean_inc(v_a_595_); +lean_inc(v_a_594_); +lean_dec(v___x_553_); +v___x_597_ = lean_box(0); +v_isShared_598_ = v_isSharedCheck_602_; +goto v_resetjp_596_; +} +v_resetjp_596_: +{ +lean_object* v___x_600_; +if (v_isShared_598_ == 0) +{ +v___x_600_ = v___x_597_; +goto v_reusejp_599_; +} +else +{ +lean_object* v_reuseFailAlloc_601_; +v_reuseFailAlloc_601_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_601_, 0, v_a_594_); +lean_ctor_set(v_reuseFailAlloc_601_, 1, v_a_595_); +v___x_600_ = v_reuseFailAlloc_601_; +goto v_reusejp_599_; +} +v_reusejp_599_: +{ +return v___x_600_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0___boxed(lean_object* v_env_603_, lean_object* v_stx_604_, lean_object* v___y_605_, lean_object* v___y_606_){ _start: { -lean_object* v_fileName_612_; lean_object* v_fileMap_613_; lean_object* v_options_614_; lean_object* v_currRecDepth_615_; lean_object* v_maxRecDepth_616_; lean_object* v_ref_617_; lean_object* v_currNamespace_618_; lean_object* v_openDecls_619_; lean_object* v_initHeartbeats_620_; lean_object* v_maxHeartbeats_621_; lean_object* v_quotContext_622_; lean_object* v_currMacroScope_623_; uint8_t v_diag_624_; lean_object* v_cancelTk_x3f_625_; uint8_t v_suppressElabErrors_626_; lean_object* v_inheritedTraceOptions_627_; lean_object* v_ref_628_; lean_object* v___x_629_; lean_object* v___x_630_; -v_fileName_612_ = lean_ctor_get(v___y_609_, 0); -v_fileMap_613_ = lean_ctor_get(v___y_609_, 1); -v_options_614_ = lean_ctor_get(v___y_609_, 2); -v_currRecDepth_615_ = lean_ctor_get(v___y_609_, 3); -v_maxRecDepth_616_ = lean_ctor_get(v___y_609_, 4); -v_ref_617_ = lean_ctor_get(v___y_609_, 5); -v_currNamespace_618_ = lean_ctor_get(v___y_609_, 6); -v_openDecls_619_ = lean_ctor_get(v___y_609_, 7); -v_initHeartbeats_620_ = lean_ctor_get(v___y_609_, 8); -v_maxHeartbeats_621_ = lean_ctor_get(v___y_609_, 9); -v_quotContext_622_ = lean_ctor_get(v___y_609_, 10); -v_currMacroScope_623_ = lean_ctor_get(v___y_609_, 11); -v_diag_624_ = lean_ctor_get_uint8(v___y_609_, sizeof(void*)*14); -v_cancelTk_x3f_625_ = lean_ctor_get(v___y_609_, 12); -v_suppressElabErrors_626_ = lean_ctor_get_uint8(v___y_609_, sizeof(void*)*14 + 1); -v_inheritedTraceOptions_627_ = lean_ctor_get(v___y_609_, 13); -v_ref_628_ = l_Lean_replaceRef(v_ref_603_, v_ref_617_); -lean_inc_ref(v_inheritedTraceOptions_627_); -lean_inc(v_cancelTk_x3f_625_); -lean_inc(v_currMacroScope_623_); -lean_inc(v_quotContext_622_); -lean_inc(v_maxHeartbeats_621_); -lean_inc(v_initHeartbeats_620_); -lean_inc(v_openDecls_619_); -lean_inc(v_currNamespace_618_); -lean_inc(v_maxRecDepth_616_); -lean_inc(v_currRecDepth_615_); -lean_inc_ref(v_options_614_); -lean_inc_ref(v_fileMap_613_); -lean_inc_ref(v_fileName_612_); -v___x_629_ = lean_alloc_ctor(0, 14, 2); -lean_ctor_set(v___x_629_, 0, v_fileName_612_); -lean_ctor_set(v___x_629_, 1, v_fileMap_613_); -lean_ctor_set(v___x_629_, 2, v_options_614_); -lean_ctor_set(v___x_629_, 3, v_currRecDepth_615_); -lean_ctor_set(v___x_629_, 4, v_maxRecDepth_616_); -lean_ctor_set(v___x_629_, 5, v_ref_628_); -lean_ctor_set(v___x_629_, 6, v_currNamespace_618_); -lean_ctor_set(v___x_629_, 7, v_openDecls_619_); -lean_ctor_set(v___x_629_, 8, v_initHeartbeats_620_); -lean_ctor_set(v___x_629_, 9, v_maxHeartbeats_621_); -lean_ctor_set(v___x_629_, 10, v_quotContext_622_); -lean_ctor_set(v___x_629_, 11, v_currMacroScope_623_); -lean_ctor_set(v___x_629_, 12, v_cancelTk_x3f_625_); -lean_ctor_set(v___x_629_, 13, v_inheritedTraceOptions_627_); -lean_ctor_set_uint8(v___x_629_, sizeof(void*)*14, v_diag_624_); -lean_ctor_set_uint8(v___x_629_, sizeof(void*)*14 + 1, v_suppressElabErrors_626_); -v___x_630_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_604_, v___y_605_, v___y_606_, v___y_607_, v___y_608_, v___x_629_, v___y_610_); -lean_dec_ref(v___x_629_); -return v___x_630_; +lean_object* v_res_607_; +v_res_607_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0(v_env_603_, v_stx_604_, v___y_605_, v___y_606_); +lean_dec_ref(v___y_605_); +return v_res_607_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg___boxed(lean_object* v_ref_631_, lean_object* v_msg_632_, lean_object* v___y_633_, lean_object* v___y_634_, lean_object* v___y_635_, lean_object* v___y_636_, lean_object* v___y_637_, lean_object* v___y_638_, lean_object* v___y_639_){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(lean_object* v_ref_608_, lean_object* v_msg_609_, lean_object* v___y_610_, lean_object* v___y_611_, lean_object* v___y_612_, lean_object* v___y_613_, lean_object* v___y_614_, lean_object* v___y_615_){ _start: { -lean_object* v_res_640_; -v_res_640_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_ref_631_, v_msg_632_, v___y_633_, v___y_634_, v___y_635_, v___y_636_, v___y_637_, v___y_638_); -lean_dec(v___y_638_); -lean_dec_ref(v___y_637_); -lean_dec(v___y_636_); -lean_dec_ref(v___y_635_); -lean_dec(v___y_634_); -lean_dec_ref(v___y_633_); -lean_dec(v_ref_631_); -return v_res_640_; +lean_object* v_fileName_617_; lean_object* v_fileMap_618_; lean_object* v_options_619_; lean_object* v_currRecDepth_620_; lean_object* v_maxRecDepth_621_; lean_object* v_ref_622_; lean_object* v_currNamespace_623_; lean_object* v_openDecls_624_; lean_object* v_initHeartbeats_625_; lean_object* v_maxHeartbeats_626_; lean_object* v_quotContext_627_; lean_object* v_currMacroScope_628_; uint8_t v_diag_629_; lean_object* v_cancelTk_x3f_630_; uint8_t v_suppressElabErrors_631_; lean_object* v_inheritedTraceOptions_632_; lean_object* v_ref_633_; lean_object* v___x_634_; lean_object* v___x_635_; +v_fileName_617_ = lean_ctor_get(v___y_614_, 0); +v_fileMap_618_ = lean_ctor_get(v___y_614_, 1); +v_options_619_ = lean_ctor_get(v___y_614_, 2); +v_currRecDepth_620_ = lean_ctor_get(v___y_614_, 3); +v_maxRecDepth_621_ = lean_ctor_get(v___y_614_, 4); +v_ref_622_ = lean_ctor_get(v___y_614_, 5); +v_currNamespace_623_ = lean_ctor_get(v___y_614_, 6); +v_openDecls_624_ = lean_ctor_get(v___y_614_, 7); +v_initHeartbeats_625_ = lean_ctor_get(v___y_614_, 8); +v_maxHeartbeats_626_ = lean_ctor_get(v___y_614_, 9); +v_quotContext_627_ = lean_ctor_get(v___y_614_, 10); +v_currMacroScope_628_ = lean_ctor_get(v___y_614_, 11); +v_diag_629_ = lean_ctor_get_uint8(v___y_614_, sizeof(void*)*14); +v_cancelTk_x3f_630_ = lean_ctor_get(v___y_614_, 12); +v_suppressElabErrors_631_ = lean_ctor_get_uint8(v___y_614_, sizeof(void*)*14 + 1); +v_inheritedTraceOptions_632_ = lean_ctor_get(v___y_614_, 13); +v_ref_633_ = l_Lean_replaceRef(v_ref_608_, v_ref_622_); +lean_inc_ref(v_inheritedTraceOptions_632_); +lean_inc(v_cancelTk_x3f_630_); +lean_inc(v_currMacroScope_628_); +lean_inc(v_quotContext_627_); +lean_inc(v_maxHeartbeats_626_); +lean_inc(v_initHeartbeats_625_); +lean_inc(v_openDecls_624_); +lean_inc(v_currNamespace_623_); +lean_inc(v_maxRecDepth_621_); +lean_inc(v_currRecDepth_620_); +lean_inc_ref(v_options_619_); +lean_inc_ref(v_fileMap_618_); +lean_inc_ref(v_fileName_617_); +v___x_634_ = lean_alloc_ctor(0, 14, 2); +lean_ctor_set(v___x_634_, 0, v_fileName_617_); +lean_ctor_set(v___x_634_, 1, v_fileMap_618_); +lean_ctor_set(v___x_634_, 2, v_options_619_); +lean_ctor_set(v___x_634_, 3, v_currRecDepth_620_); +lean_ctor_set(v___x_634_, 4, v_maxRecDepth_621_); +lean_ctor_set(v___x_634_, 5, v_ref_633_); +lean_ctor_set(v___x_634_, 6, v_currNamespace_623_); +lean_ctor_set(v___x_634_, 7, v_openDecls_624_); +lean_ctor_set(v___x_634_, 8, v_initHeartbeats_625_); +lean_ctor_set(v___x_634_, 9, v_maxHeartbeats_626_); +lean_ctor_set(v___x_634_, 10, v_quotContext_627_); +lean_ctor_set(v___x_634_, 11, v_currMacroScope_628_); +lean_ctor_set(v___x_634_, 12, v_cancelTk_x3f_630_); +lean_ctor_set(v___x_634_, 13, v_inheritedTraceOptions_632_); +lean_ctor_set_uint8(v___x_634_, sizeof(void*)*14, v_diag_629_); +lean_ctor_set_uint8(v___x_634_, sizeof(void*)*14 + 1, v_suppressElabErrors_631_); +v___x_635_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_609_, v___y_610_, v___y_611_, v___y_612_, v___y_613_, v___x_634_, v___y_615_); +lean_dec_ref(v___x_634_); +return v___x_635_; +} +} +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg___boxed(lean_object* v_ref_636_, lean_object* v_msg_637_, lean_object* v___y_638_, lean_object* v___y_639_, lean_object* v___y_640_, lean_object* v___y_641_, lean_object* v___y_642_, lean_object* v___y_643_, lean_object* v___y_644_){ +_start: +{ +lean_object* v_res_645_; +v_res_645_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_ref_636_, v_msg_637_, v___y_638_, v___y_639_, v___y_640_, v___y_641_, v___y_642_, v___y_643_); +lean_dec(v___y_643_); +lean_dec_ref(v___y_642_); +lean_dec(v___y_641_); +lean_dec_ref(v___y_640_); +lean_dec(v___y_639_); +lean_dec_ref(v___y_638_); +lean_dec(v_ref_636_); +return v_res_645_; } } static double _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0(void){ _start: { -lean_object* v___x_641_; double v___x_642_; -v___x_641_ = lean_unsigned_to_nat(0u); -v___x_642_ = lean_float_of_nat(v___x_641_); -return v___x_642_; +lean_object* v___x_646_; double v___x_647_; +v___x_646_ = lean_unsigned_to_nat(0u); +v___x_647_ = lean_float_of_nat(v___x_646_); +return v___x_647_; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(lean_object* v_cls_646_, lean_object* v_msg_647_, lean_object* v___y_648_, lean_object* v___y_649_, lean_object* v___y_650_, lean_object* v___y_651_){ +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(lean_object* v_cls_651_, lean_object* v_msg_652_, lean_object* v___y_653_, lean_object* v___y_654_, lean_object* v___y_655_, lean_object* v___y_656_){ _start: { -lean_object* v_ref_653_; lean_object* v___x_654_; lean_object* v_a_655_; lean_object* v___x_657_; uint8_t v_isShared_658_; uint8_t v_isSharedCheck_699_; -v_ref_653_ = lean_ctor_get(v___y_650_, 5); -v___x_654_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msg_647_, v___y_648_, v___y_649_, v___y_650_, v___y_651_); -v_a_655_ = lean_ctor_get(v___x_654_, 0); -v_isSharedCheck_699_ = !lean_is_exclusive(v___x_654_); -if (v_isSharedCheck_699_ == 0) +lean_object* v_ref_658_; lean_object* v___x_659_; lean_object* v_a_660_; lean_object* v___x_662_; uint8_t v_isShared_663_; uint8_t v_isSharedCheck_704_; +v_ref_658_ = lean_ctor_get(v___y_655_, 5); +v___x_659_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__10(v_msg_652_, v___y_653_, v___y_654_, v___y_655_, v___y_656_); +v_a_660_ = lean_ctor_get(v___x_659_, 0); +v_isSharedCheck_704_ = !lean_is_exclusive(v___x_659_); +if (v_isSharedCheck_704_ == 0) { -v___x_657_ = v___x_654_; -v_isShared_658_ = v_isSharedCheck_699_; -goto v_resetjp_656_; +v___x_662_ = v___x_659_; +v_isShared_663_ = v_isSharedCheck_704_; +goto v_resetjp_661_; } else { -lean_inc(v_a_655_); -lean_dec(v___x_654_); -v___x_657_ = lean_box(0); -v_isShared_658_ = v_isSharedCheck_699_; -goto v_resetjp_656_; -} -v_resetjp_656_: -{ -lean_object* v___x_659_; lean_object* v_traceState_660_; lean_object* v_env_661_; lean_object* v_nextMacroScope_662_; lean_object* v_ngen_663_; lean_object* v_auxDeclNGen_664_; lean_object* v_cache_665_; lean_object* v_messages_666_; lean_object* v_infoState_667_; lean_object* v_snapshotTasks_668_; lean_object* v___x_670_; uint8_t v_isShared_671_; uint8_t v_isSharedCheck_698_; -v___x_659_ = lean_st_ref_take(v___y_651_); -v_traceState_660_ = lean_ctor_get(v___x_659_, 4); -v_env_661_ = lean_ctor_get(v___x_659_, 0); -v_nextMacroScope_662_ = lean_ctor_get(v___x_659_, 1); -v_ngen_663_ = lean_ctor_get(v___x_659_, 2); -v_auxDeclNGen_664_ = lean_ctor_get(v___x_659_, 3); -v_cache_665_ = lean_ctor_get(v___x_659_, 5); -v_messages_666_ = lean_ctor_get(v___x_659_, 6); -v_infoState_667_ = lean_ctor_get(v___x_659_, 7); -v_snapshotTasks_668_ = lean_ctor_get(v___x_659_, 8); -v_isSharedCheck_698_ = !lean_is_exclusive(v___x_659_); -if (v_isSharedCheck_698_ == 0) -{ -v___x_670_ = v___x_659_; -v_isShared_671_ = v_isSharedCheck_698_; -goto v_resetjp_669_; -} -else -{ -lean_inc(v_snapshotTasks_668_); -lean_inc(v_infoState_667_); -lean_inc(v_messages_666_); -lean_inc(v_cache_665_); -lean_inc(v_traceState_660_); -lean_inc(v_auxDeclNGen_664_); -lean_inc(v_ngen_663_); -lean_inc(v_nextMacroScope_662_); -lean_inc(v_env_661_); +lean_inc(v_a_660_); lean_dec(v___x_659_); -v___x_670_ = lean_box(0); -v_isShared_671_ = v_isSharedCheck_698_; -goto v_resetjp_669_; +v___x_662_ = lean_box(0); +v_isShared_663_ = v_isSharedCheck_704_; +goto v_resetjp_661_; } -v_resetjp_669_: +v_resetjp_661_: { -uint64_t v_tid_672_; lean_object* v_traces_673_; lean_object* v___x_675_; uint8_t v_isShared_676_; uint8_t v_isSharedCheck_697_; -v_tid_672_ = lean_ctor_get_uint64(v_traceState_660_, sizeof(void*)*1); -v_traces_673_ = lean_ctor_get(v_traceState_660_, 0); -v_isSharedCheck_697_ = !lean_is_exclusive(v_traceState_660_); -if (v_isSharedCheck_697_ == 0) +lean_object* v___x_664_; lean_object* v_traceState_665_; lean_object* v_env_666_; lean_object* v_nextMacroScope_667_; lean_object* v_ngen_668_; lean_object* v_auxDeclNGen_669_; lean_object* v_cache_670_; lean_object* v_messages_671_; lean_object* v_infoState_672_; lean_object* v_snapshotTasks_673_; lean_object* v___x_675_; uint8_t v_isShared_676_; uint8_t v_isSharedCheck_703_; +v___x_664_ = lean_st_ref_take(v___y_656_); +v_traceState_665_ = lean_ctor_get(v___x_664_, 4); +v_env_666_ = lean_ctor_get(v___x_664_, 0); +v_nextMacroScope_667_ = lean_ctor_get(v___x_664_, 1); +v_ngen_668_ = lean_ctor_get(v___x_664_, 2); +v_auxDeclNGen_669_ = lean_ctor_get(v___x_664_, 3); +v_cache_670_ = lean_ctor_get(v___x_664_, 5); +v_messages_671_ = lean_ctor_get(v___x_664_, 6); +v_infoState_672_ = lean_ctor_get(v___x_664_, 7); +v_snapshotTasks_673_ = lean_ctor_get(v___x_664_, 8); +v_isSharedCheck_703_ = !lean_is_exclusive(v___x_664_); +if (v_isSharedCheck_703_ == 0) { -v___x_675_ = v_traceState_660_; -v_isShared_676_ = v_isSharedCheck_697_; +v___x_675_ = v___x_664_; +v_isShared_676_ = v_isSharedCheck_703_; goto v_resetjp_674_; } else { -lean_inc(v_traces_673_); -lean_dec(v_traceState_660_); +lean_inc(v_snapshotTasks_673_); +lean_inc(v_infoState_672_); +lean_inc(v_messages_671_); +lean_inc(v_cache_670_); +lean_inc(v_traceState_665_); +lean_inc(v_auxDeclNGen_669_); +lean_inc(v_ngen_668_); +lean_inc(v_nextMacroScope_667_); +lean_inc(v_env_666_); +lean_dec(v___x_664_); v___x_675_ = lean_box(0); -v_isShared_676_ = v_isSharedCheck_697_; +v_isShared_676_ = v_isSharedCheck_703_; goto v_resetjp_674_; } v_resetjp_674_: { -lean_object* v___x_677_; double v___x_678_; uint8_t v___x_679_; lean_object* v___x_680_; lean_object* v___x_681_; lean_object* v___x_682_; lean_object* v___x_683_; lean_object* v___x_684_; lean_object* v___x_685_; lean_object* v___x_687_; -v___x_677_ = lean_box(0); -v___x_678_ = lean_float_once(&l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0, &l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0_once, _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0); -v___x_679_ = 0; -v___x_680_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__1)); -v___x_681_ = lean_alloc_ctor(0, 3, 17); -lean_ctor_set(v___x_681_, 0, v_cls_646_); -lean_ctor_set(v___x_681_, 1, v___x_677_); -lean_ctor_set(v___x_681_, 2, v___x_680_); -lean_ctor_set_float(v___x_681_, sizeof(void*)*3, v___x_678_); -lean_ctor_set_float(v___x_681_, sizeof(void*)*3 + 8, v___x_678_); -lean_ctor_set_uint8(v___x_681_, sizeof(void*)*3 + 16, v___x_679_); -v___x_682_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__2)); -v___x_683_ = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(v___x_683_, 0, v___x_681_); -lean_ctor_set(v___x_683_, 1, v_a_655_); -lean_ctor_set(v___x_683_, 2, v___x_682_); -lean_inc(v_ref_653_); -v___x_684_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_684_, 0, v_ref_653_); -lean_ctor_set(v___x_684_, 1, v___x_683_); -v___x_685_ = l_Lean_PersistentArray_push___redArg(v_traces_673_, v___x_684_); +uint64_t v_tid_677_; lean_object* v_traces_678_; lean_object* v___x_680_; uint8_t v_isShared_681_; uint8_t v_isSharedCheck_702_; +v_tid_677_ = lean_ctor_get_uint64(v_traceState_665_, sizeof(void*)*1); +v_traces_678_ = lean_ctor_get(v_traceState_665_, 0); +v_isSharedCheck_702_ = !lean_is_exclusive(v_traceState_665_); +if (v_isSharedCheck_702_ == 0) +{ +v___x_680_ = v_traceState_665_; +v_isShared_681_ = v_isSharedCheck_702_; +goto v_resetjp_679_; +} +else +{ +lean_inc(v_traces_678_); +lean_dec(v_traceState_665_); +v___x_680_ = lean_box(0); +v_isShared_681_ = v_isSharedCheck_702_; +goto v_resetjp_679_; +} +v_resetjp_679_: +{ +lean_object* v___x_682_; double v___x_683_; uint8_t v___x_684_; lean_object* v___x_685_; lean_object* v___x_686_; lean_object* v___x_687_; lean_object* v___x_688_; lean_object* v___x_689_; lean_object* v___x_690_; lean_object* v___x_692_; +v___x_682_ = lean_box(0); +v___x_683_ = lean_float_once(&l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0, &l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0_once, _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__0); +v___x_684_ = 0; +v___x_685_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__1)); +v___x_686_ = lean_alloc_ctor(0, 3, 17); +lean_ctor_set(v___x_686_, 0, v_cls_651_); +lean_ctor_set(v___x_686_, 1, v___x_682_); +lean_ctor_set(v___x_686_, 2, v___x_685_); +lean_ctor_set_float(v___x_686_, sizeof(void*)*3, v___x_683_); +lean_ctor_set_float(v___x_686_, sizeof(void*)*3 + 8, v___x_683_); +lean_ctor_set_uint8(v___x_686_, sizeof(void*)*3 + 16, v___x_684_); +v___x_687_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__2)); +v___x_688_ = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(v___x_688_, 0, v___x_686_); +lean_ctor_set(v___x_688_, 1, v_a_660_); +lean_ctor_set(v___x_688_, 2, v___x_687_); +lean_inc(v_ref_658_); +v___x_689_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_689_, 0, v_ref_658_); +lean_ctor_set(v___x_689_, 1, v___x_688_); +v___x_690_ = l_Lean_PersistentArray_push___redArg(v_traces_678_, v___x_689_); +if (v_isShared_681_ == 0) +{ +lean_ctor_set(v___x_680_, 0, v___x_690_); +v___x_692_ = v___x_680_; +goto v_reusejp_691_; +} +else +{ +lean_object* v_reuseFailAlloc_701_; +v_reuseFailAlloc_701_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v_reuseFailAlloc_701_, 0, v___x_690_); +lean_ctor_set_uint64(v_reuseFailAlloc_701_, sizeof(void*)*1, v_tid_677_); +v___x_692_ = v_reuseFailAlloc_701_; +goto v_reusejp_691_; +} +v_reusejp_691_: +{ +lean_object* v___x_694_; if (v_isShared_676_ == 0) { -lean_ctor_set(v___x_675_, 0, v___x_685_); -v___x_687_ = v___x_675_; -goto v_reusejp_686_; +lean_ctor_set(v___x_675_, 4, v___x_692_); +v___x_694_ = v___x_675_; +goto v_reusejp_693_; } else { -lean_object* v_reuseFailAlloc_696_; -v_reuseFailAlloc_696_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v_reuseFailAlloc_696_, 0, v___x_685_); -lean_ctor_set_uint64(v_reuseFailAlloc_696_, sizeof(void*)*1, v_tid_672_); -v___x_687_ = v_reuseFailAlloc_696_; -goto v_reusejp_686_; +lean_object* v_reuseFailAlloc_700_; +v_reuseFailAlloc_700_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_700_, 0, v_env_666_); +lean_ctor_set(v_reuseFailAlloc_700_, 1, v_nextMacroScope_667_); +lean_ctor_set(v_reuseFailAlloc_700_, 2, v_ngen_668_); +lean_ctor_set(v_reuseFailAlloc_700_, 3, v_auxDeclNGen_669_); +lean_ctor_set(v_reuseFailAlloc_700_, 4, v___x_692_); +lean_ctor_set(v_reuseFailAlloc_700_, 5, v_cache_670_); +lean_ctor_set(v_reuseFailAlloc_700_, 6, v_messages_671_); +lean_ctor_set(v_reuseFailAlloc_700_, 7, v_infoState_672_); +lean_ctor_set(v_reuseFailAlloc_700_, 8, v_snapshotTasks_673_); +v___x_694_ = v_reuseFailAlloc_700_; +goto v_reusejp_693_; } -v_reusejp_686_: +v_reusejp_693_: { -lean_object* v___x_689_; -if (v_isShared_671_ == 0) +lean_object* v___x_695_; lean_object* v___x_696_; lean_object* v___x_698_; +v___x_695_ = lean_st_ref_set(v___y_656_, v___x_694_); +v___x_696_ = lean_box(0); +if (v_isShared_663_ == 0) { -lean_ctor_set(v___x_670_, 4, v___x_687_); -v___x_689_ = v___x_670_; -goto v_reusejp_688_; +lean_ctor_set(v___x_662_, 0, v___x_696_); +v___x_698_ = v___x_662_; +goto v_reusejp_697_; } else { -lean_object* v_reuseFailAlloc_695_; -v_reuseFailAlloc_695_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_695_, 0, v_env_661_); -lean_ctor_set(v_reuseFailAlloc_695_, 1, v_nextMacroScope_662_); -lean_ctor_set(v_reuseFailAlloc_695_, 2, v_ngen_663_); -lean_ctor_set(v_reuseFailAlloc_695_, 3, v_auxDeclNGen_664_); -lean_ctor_set(v_reuseFailAlloc_695_, 4, v___x_687_); -lean_ctor_set(v_reuseFailAlloc_695_, 5, v_cache_665_); -lean_ctor_set(v_reuseFailAlloc_695_, 6, v_messages_666_); -lean_ctor_set(v_reuseFailAlloc_695_, 7, v_infoState_667_); -lean_ctor_set(v_reuseFailAlloc_695_, 8, v_snapshotTasks_668_); -v___x_689_ = v_reuseFailAlloc_695_; -goto v_reusejp_688_; +lean_object* v_reuseFailAlloc_699_; +v_reuseFailAlloc_699_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_699_, 0, v___x_696_); +v___x_698_ = v_reuseFailAlloc_699_; +goto v_reusejp_697_; } -v_reusejp_688_: +v_reusejp_697_: { -lean_object* v___x_690_; lean_object* v___x_691_; lean_object* v___x_693_; -v___x_690_ = lean_st_ref_set(v___y_651_, v___x_689_); -v___x_691_ = lean_box(0); -if (v_isShared_658_ == 0) -{ -lean_ctor_set(v___x_657_, 0, v___x_691_); -v___x_693_ = v___x_657_; -goto v_reusejp_692_; -} -else -{ -lean_object* v_reuseFailAlloc_694_; -v_reuseFailAlloc_694_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_694_, 0, v___x_691_); -v___x_693_ = v_reuseFailAlloc_694_; -goto v_reusejp_692_; -} -v_reusejp_692_: -{ -return v___x_693_; +return v___x_698_; } } } @@ -2702,764 +2719,764 @@ return v___x_693_; } } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___boxed(lean_object* v_cls_700_, lean_object* v_msg_701_, lean_object* v___y_702_, lean_object* v___y_703_, lean_object* v___y_704_, lean_object* v___y_705_, lean_object* v___y_706_){ +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___boxed(lean_object* v_cls_705_, lean_object* v_msg_706_, lean_object* v___y_707_, lean_object* v___y_708_, lean_object* v___y_709_, lean_object* v___y_710_, lean_object* v___y_711_){ _start: { -lean_object* v_res_707_; -v_res_707_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_700_, v_msg_701_, v___y_702_, v___y_703_, v___y_704_, v___y_705_); -lean_dec(v___y_705_); -lean_dec_ref(v___y_704_); -lean_dec(v___y_703_); -lean_dec_ref(v___y_702_); -return v_res_707_; +lean_object* v_res_712_; +v_res_712_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_705_, v_msg_706_, v___y_707_, v___y_708_, v___y_709_, v___y_710_); +lean_dec(v___y_710_); +lean_dec_ref(v___y_709_); +lean_dec(v___y_708_); +lean_dec_ref(v___y_707_); +return v_res_712_; } } -LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(lean_object* v_as_711_, lean_object* v___y_712_, lean_object* v___y_713_, lean_object* v___y_714_, lean_object* v___y_715_, lean_object* v___y_716_, lean_object* v___y_717_){ +LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(lean_object* v_as_716_, lean_object* v___y_717_, lean_object* v___y_718_, lean_object* v___y_719_, lean_object* v___y_720_, lean_object* v___y_721_, lean_object* v___y_722_){ _start: { -if (lean_obj_tag(v_as_711_) == 0) +if (lean_obj_tag(v_as_716_) == 0) { -lean_object* v___x_719_; lean_object* v___x_720_; -v___x_719_ = lean_box(0); -v___x_720_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_720_, 0, v___x_719_); -return v___x_720_; +lean_object* v___x_724_; lean_object* v___x_725_; +v___x_724_ = lean_box(0); +v___x_725_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_725_, 0, v___x_724_); +return v___x_725_; } else { -lean_object* v_options_721_; uint8_t v_hasTrace_722_; -v_options_721_ = lean_ctor_get(v___y_716_, 2); -v_hasTrace_722_ = lean_ctor_get_uint8(v_options_721_, sizeof(void*)*1); -if (v_hasTrace_722_ == 0) +lean_object* v_options_726_; uint8_t v_hasTrace_727_; +v_options_726_ = lean_ctor_get(v___y_721_, 2); +v_hasTrace_727_ = lean_ctor_get_uint8(v_options_726_, sizeof(void*)*1); +if (v_hasTrace_727_ == 0) { -lean_object* v_tail_723_; -v_tail_723_ = lean_ctor_get(v_as_711_, 1); -lean_inc(v_tail_723_); -lean_dec_ref(v_as_711_); -v_as_711_ = v_tail_723_; +lean_object* v_tail_728_; +v_tail_728_ = lean_ctor_get(v_as_716_, 1); +lean_inc(v_tail_728_); +lean_dec_ref(v_as_716_); +v_as_716_ = v_tail_728_; goto _start; } else { -lean_object* v_head_725_; lean_object* v_tail_726_; lean_object* v_fst_727_; lean_object* v_snd_728_; lean_object* v_inheritedTraceOptions_729_; lean_object* v___x_730_; lean_object* v___x_731_; uint8_t v___x_732_; -v_head_725_ = lean_ctor_get(v_as_711_, 0); -lean_inc(v_head_725_); -v_tail_726_ = lean_ctor_get(v_as_711_, 1); -lean_inc(v_tail_726_); -lean_dec_ref(v_as_711_); -v_fst_727_ = lean_ctor_get(v_head_725_, 0); -lean_inc_n(v_fst_727_, 2); -v_snd_728_ = lean_ctor_get(v_head_725_, 1); -lean_inc(v_snd_728_); -lean_dec(v_head_725_); -v_inheritedTraceOptions_729_ = lean_ctor_get(v___y_716_, 13); -v___x_730_ = ((lean_object*)(l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___closed__1)); -v___x_731_ = l_Lean_Name_append(v___x_730_, v_fst_727_); -v___x_732_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_729_, v_options_721_, v___x_731_); -lean_dec(v___x_731_); -if (v___x_732_ == 0) +lean_object* v_head_730_; lean_object* v_tail_731_; lean_object* v_fst_732_; lean_object* v_snd_733_; lean_object* v_inheritedTraceOptions_734_; lean_object* v___x_735_; lean_object* v___x_736_; uint8_t v___x_737_; +v_head_730_ = lean_ctor_get(v_as_716_, 0); +lean_inc(v_head_730_); +v_tail_731_ = lean_ctor_get(v_as_716_, 1); +lean_inc(v_tail_731_); +lean_dec_ref(v_as_716_); +v_fst_732_ = lean_ctor_get(v_head_730_, 0); +lean_inc_n(v_fst_732_, 2); +v_snd_733_ = lean_ctor_get(v_head_730_, 1); +lean_inc(v_snd_733_); +lean_dec(v_head_730_); +v_inheritedTraceOptions_734_ = lean_ctor_get(v___y_721_, 13); +v___x_735_ = ((lean_object*)(l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___closed__1)); +v___x_736_ = l_Lean_Name_append(v___x_735_, v_fst_732_); +v___x_737_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_734_, v_options_726_, v___x_736_); +lean_dec(v___x_736_); +if (v___x_737_ == 0) { -lean_dec(v_snd_728_); -lean_dec(v_fst_727_); -v_as_711_ = v_tail_726_; +lean_dec(v_snd_733_); +lean_dec(v_fst_732_); +v_as_716_ = v_tail_731_; goto _start; } else { -lean_object* v___x_734_; lean_object* v___x_735_; lean_object* v___x_736_; -v___x_734_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_734_, 0, v_snd_728_); -v___x_735_ = l_Lean_MessageData_ofFormat(v___x_734_); -v___x_736_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_fst_727_, v___x_735_, v___y_714_, v___y_715_, v___y_716_, v___y_717_); -if (lean_obj_tag(v___x_736_) == 0) +lean_object* v___x_739_; lean_object* v___x_740_; lean_object* v___x_741_; +v___x_739_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_739_, 0, v_snd_733_); +v___x_740_ = l_Lean_MessageData_ofFormat(v___x_739_); +v___x_741_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_fst_732_, v___x_740_, v___y_719_, v___y_720_, v___y_721_, v___y_722_); +if (lean_obj_tag(v___x_741_) == 0) { -lean_dec_ref(v___x_736_); -v_as_711_ = v_tail_726_; +lean_dec_ref(v___x_741_); +v_as_716_ = v_tail_731_; goto _start; } else { -lean_dec(v_tail_726_); -return v___x_736_; +lean_dec(v_tail_731_); +return v___x_741_; } } } } } } -LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___boxed(lean_object* v_as_738_, lean_object* v___y_739_, lean_object* v___y_740_, lean_object* v___y_741_, lean_object* v___y_742_, lean_object* v___y_743_, lean_object* v___y_744_, lean_object* v___y_745_){ +LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___boxed(lean_object* v_as_743_, lean_object* v___y_744_, lean_object* v___y_745_, lean_object* v___y_746_, lean_object* v___y_747_, lean_object* v___y_748_, lean_object* v___y_749_, lean_object* v___y_750_){ _start: { -lean_object* v_res_746_; -v_res_746_ = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(v_as_738_, v___y_739_, v___y_740_, v___y_741_, v___y_742_, v___y_743_, v___y_744_); -lean_dec(v___y_744_); -lean_dec_ref(v___y_743_); -lean_dec(v___y_742_); -lean_dec_ref(v___y_741_); -lean_dec(v___y_740_); -lean_dec_ref(v___y_739_); -return v_res_746_; +lean_object* v_res_751_; +v_res_751_ = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(v_as_743_, v___y_744_, v___y_745_, v___y_746_, v___y_747_, v___y_748_, v___y_749_); +lean_dec(v___y_749_); +lean_dec_ref(v___y_748_); +lean_dec(v___y_747_); +lean_dec_ref(v___y_746_); +lean_dec(v___y_745_); +lean_dec_ref(v___y_744_); +return v_res_751_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(lean_object* v_a_747_, lean_object* v_x_748_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(lean_object* v_a_752_, lean_object* v_x_753_){ _start: { -if (lean_obj_tag(v_x_748_) == 0) +if (lean_obj_tag(v_x_753_) == 0) { -lean_object* v___x_749_; -v___x_749_ = lean_box(0); -return v___x_749_; +lean_object* v___x_754_; +v___x_754_ = lean_box(0); +return v___x_754_; } else { -lean_object* v_key_750_; lean_object* v_value_751_; lean_object* v_tail_752_; uint8_t v___x_753_; -v_key_750_ = lean_ctor_get(v_x_748_, 0); -v_value_751_ = lean_ctor_get(v_x_748_, 1); -v_tail_752_ = lean_ctor_get(v_x_748_, 2); -v___x_753_ = lean_name_eq(v_key_750_, v_a_747_); -if (v___x_753_ == 0) +lean_object* v_key_755_; lean_object* v_value_756_; lean_object* v_tail_757_; uint8_t v___x_758_; +v_key_755_ = lean_ctor_get(v_x_753_, 0); +v_value_756_ = lean_ctor_get(v_x_753_, 1); +v_tail_757_ = lean_ctor_get(v_x_753_, 2); +v___x_758_ = lean_name_eq(v_key_755_, v_a_752_); +if (v___x_758_ == 0) { -v_x_748_ = v_tail_752_; +v_x_753_ = v_tail_757_; goto _start; } else { -lean_object* v___x_755_; -lean_inc(v_value_751_); -v___x_755_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_755_, 0, v_value_751_); -return v___x_755_; +lean_object* v___x_760_; +lean_inc(v_value_756_); +v___x_760_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_760_, 0, v_value_756_); +return v___x_760_; } } } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg___boxed(lean_object* v_a_756_, lean_object* v_x_757_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg___boxed(lean_object* v_a_761_, lean_object* v_x_762_){ _start: { -lean_object* v_res_758_; -v_res_758_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_756_, v_x_757_); -lean_dec(v_x_757_); -lean_dec(v_a_756_); -return v_res_758_; +lean_object* v_res_763_; +v_res_763_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_761_, v_x_762_); +lean_dec(v_x_762_); +lean_dec(v_a_761_); +return v_res_763_; } } static uint64_t _init_l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0(void){ _start: { -lean_object* v___x_759_; uint64_t v___x_760_; -v___x_759_ = lean_unsigned_to_nat(1723u); -v___x_760_ = lean_uint64_of_nat(v___x_759_); -return v___x_760_; +lean_object* v___x_764_; uint64_t v___x_765_; +v___x_764_ = lean_unsigned_to_nat(1723u); +v___x_765_ = lean_uint64_of_nat(v___x_764_); +return v___x_765_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(lean_object* v_m_761_, lean_object* v_a_762_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(lean_object* v_m_766_, lean_object* v_a_767_){ _start: { -lean_object* v_buckets_763_; lean_object* v___x_764_; uint64_t v___y_766_; -v_buckets_763_ = lean_ctor_get(v_m_761_, 1); -v___x_764_ = lean_array_get_size(v_buckets_763_); -if (lean_obj_tag(v_a_762_) == 0) +lean_object* v_buckets_768_; lean_object* v___x_769_; uint64_t v___y_771_; +v_buckets_768_ = lean_ctor_get(v_m_766_, 1); +v___x_769_ = lean_array_get_size(v_buckets_768_); +if (lean_obj_tag(v_a_767_) == 0) { -uint64_t v___x_780_; -v___x_780_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0); -v___y_766_ = v___x_780_; -goto v___jp_765_; +uint64_t v___x_785_; +v___x_785_ = lean_uint64_once(&l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0, &l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0_once, _init_l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___closed__0); +v___y_771_ = v___x_785_; +goto v___jp_770_; } else { -uint64_t v_hash_781_; -v_hash_781_ = lean_ctor_get_uint64(v_a_762_, sizeof(void*)*2); -v___y_766_ = v_hash_781_; -goto v___jp_765_; +uint64_t v_hash_786_; +v_hash_786_ = lean_ctor_get_uint64(v_a_767_, sizeof(void*)*2); +v___y_771_ = v_hash_786_; +goto v___jp_770_; } -v___jp_765_: +v___jp_770_: { -uint64_t v___x_767_; uint64_t v___x_768_; uint64_t v_fold_769_; uint64_t v___x_770_; uint64_t v___x_771_; uint64_t v___x_772_; size_t v___x_773_; size_t v___x_774_; size_t v___x_775_; size_t v___x_776_; size_t v___x_777_; lean_object* v___x_778_; lean_object* v___x_779_; -v___x_767_ = 32ULL; -v___x_768_ = lean_uint64_shift_right(v___y_766_, v___x_767_); -v_fold_769_ = lean_uint64_xor(v___y_766_, v___x_768_); -v___x_770_ = 16ULL; -v___x_771_ = lean_uint64_shift_right(v_fold_769_, v___x_770_); -v___x_772_ = lean_uint64_xor(v_fold_769_, v___x_771_); -v___x_773_ = lean_uint64_to_usize(v___x_772_); -v___x_774_ = lean_usize_of_nat(v___x_764_); -v___x_775_ = ((size_t)1ULL); -v___x_776_ = lean_usize_sub(v___x_774_, v___x_775_); -v___x_777_ = lean_usize_land(v___x_773_, v___x_776_); -v___x_778_ = lean_array_uget_borrowed(v_buckets_763_, v___x_777_); -v___x_779_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_762_, v___x_778_); -return v___x_779_; +uint64_t v___x_772_; uint64_t v___x_773_; uint64_t v_fold_774_; uint64_t v___x_775_; uint64_t v___x_776_; uint64_t v___x_777_; size_t v___x_778_; size_t v___x_779_; size_t v___x_780_; size_t v___x_781_; size_t v___x_782_; lean_object* v___x_783_; lean_object* v___x_784_; +v___x_772_ = 32ULL; +v___x_773_ = lean_uint64_shift_right(v___y_771_, v___x_772_); +v_fold_774_ = lean_uint64_xor(v___y_771_, v___x_773_); +v___x_775_ = 16ULL; +v___x_776_ = lean_uint64_shift_right(v_fold_774_, v___x_775_); +v___x_777_ = lean_uint64_xor(v_fold_774_, v___x_776_); +v___x_778_ = lean_uint64_to_usize(v___x_777_); +v___x_779_ = lean_usize_of_nat(v___x_769_); +v___x_780_ = ((size_t)1ULL); +v___x_781_ = lean_usize_sub(v___x_779_, v___x_780_); +v___x_782_ = lean_usize_land(v___x_778_, v___x_781_); +v___x_783_ = lean_array_uget_borrowed(v_buckets_768_, v___x_782_); +v___x_784_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_767_, v___x_783_); +return v___x_784_; } } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___boxed(lean_object* v_m_782_, lean_object* v_a_783_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg___boxed(lean_object* v_m_787_, lean_object* v_a_788_){ _start: { -lean_object* v_res_784_; -v_res_784_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v_m_782_, v_a_783_); -lean_dec(v_a_783_); -lean_dec_ref(v_m_782_); -return v_res_784_; +lean_object* v_res_789_; +v_res_789_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v_m_787_, v_a_788_); +lean_dec(v_a_788_); +lean_dec_ref(v_m_787_); +return v_res_789_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(lean_object* v_keys_785_, lean_object* v_i_786_, lean_object* v_k_787_){ +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(lean_object* v_keys_790_, lean_object* v_i_791_, lean_object* v_k_792_){ _start: { -lean_object* v___x_788_; uint8_t v___x_789_; -v___x_788_ = lean_array_get_size(v_keys_785_); -v___x_789_ = lean_nat_dec_lt(v_i_786_, v___x_788_); -if (v___x_789_ == 0) +lean_object* v___x_793_; uint8_t v___x_794_; +v___x_793_ = lean_array_get_size(v_keys_790_); +v___x_794_ = lean_nat_dec_lt(v_i_791_, v___x_793_); +if (v___x_794_ == 0) { -lean_dec(v_i_786_); -return v___x_789_; +lean_dec(v_i_791_); +return v___x_794_; } else { -lean_object* v_k_x27_790_; uint8_t v___x_791_; -v_k_x27_790_ = lean_array_fget_borrowed(v_keys_785_, v_i_786_); -v___x_791_ = l_Lean_instBEqExtraModUse_beq(v_k_787_, v_k_x27_790_); -if (v___x_791_ == 0) +lean_object* v_k_x27_795_; uint8_t v___x_796_; +v_k_x27_795_ = lean_array_fget_borrowed(v_keys_790_, v_i_791_); +v___x_796_ = l_Lean_instBEqExtraModUse_beq(v_k_792_, v_k_x27_795_); +if (v___x_796_ == 0) { -lean_object* v___x_792_; lean_object* v___x_793_; -v___x_792_ = lean_unsigned_to_nat(1u); -v___x_793_ = lean_nat_add(v_i_786_, v___x_792_); -lean_dec(v_i_786_); -v_i_786_ = v___x_793_; +lean_object* v___x_797_; lean_object* v___x_798_; +v___x_797_ = lean_unsigned_to_nat(1u); +v___x_798_ = lean_nat_add(v_i_791_, v___x_797_); +lean_dec(v_i_791_); +v_i_791_ = v___x_798_; goto _start; } else { -lean_dec(v_i_786_); -return v___x_791_; +lean_dec(v_i_791_); +return v___x_796_; } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg___boxed(lean_object* v_keys_795_, lean_object* v_i_796_, lean_object* v_k_797_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg___boxed(lean_object* v_keys_800_, lean_object* v_i_801_, lean_object* v_k_802_){ _start: { -uint8_t v_res_798_; lean_object* v_r_799_; -v_res_798_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_keys_795_, v_i_796_, v_k_797_); -lean_dec_ref(v_k_797_); -lean_dec_ref(v_keys_795_); -v_r_799_ = lean_box(v_res_798_); -return v_r_799_; +uint8_t v_res_803_; lean_object* v_r_804_; +v_res_803_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_keys_800_, v_i_801_, v_k_802_); +lean_dec_ref(v_k_802_); +lean_dec_ref(v_keys_800_); +v_r_804_ = lean_box(v_res_803_); +return v_r_804_; } } static size_t _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0(void){ _start: { -size_t v___x_800_; size_t v___x_801_; size_t v___x_802_; -v___x_800_ = ((size_t)5ULL); -v___x_801_ = ((size_t)1ULL); -v___x_802_ = lean_usize_shift_left(v___x_801_, v___x_800_); -return v___x_802_; +size_t v___x_805_; size_t v___x_806_; size_t v___x_807_; +v___x_805_ = ((size_t)5ULL); +v___x_806_ = ((size_t)1ULL); +v___x_807_ = lean_usize_shift_left(v___x_806_, v___x_805_); +return v___x_807_; } } static size_t _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1(void){ _start: { -size_t v___x_803_; size_t v___x_804_; size_t v___x_805_; -v___x_803_ = ((size_t)1ULL); -v___x_804_ = lean_usize_once(&l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0, &l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0_once, _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0); -v___x_805_ = lean_usize_sub(v___x_804_, v___x_803_); -return v___x_805_; +size_t v___x_808_; size_t v___x_809_; size_t v___x_810_; +v___x_808_ = ((size_t)1ULL); +v___x_809_ = lean_usize_once(&l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0, &l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0_once, _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__0); +v___x_810_ = lean_usize_sub(v___x_809_, v___x_808_); +return v___x_810_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(lean_object* v_x_806_, size_t v_x_807_, lean_object* v_x_808_){ +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(lean_object* v_x_811_, size_t v_x_812_, lean_object* v_x_813_){ _start: { -if (lean_obj_tag(v_x_806_) == 0) +if (lean_obj_tag(v_x_811_) == 0) { -lean_object* v_es_809_; lean_object* v___x_810_; size_t v___x_811_; size_t v___x_812_; size_t v___x_813_; lean_object* v_j_814_; lean_object* v___x_815_; -v_es_809_ = lean_ctor_get(v_x_806_, 0); -v___x_810_ = lean_box(2); -v___x_811_ = ((size_t)5ULL); -v___x_812_ = lean_usize_once(&l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1, &l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1_once, _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1); -v___x_813_ = lean_usize_land(v_x_807_, v___x_812_); -v_j_814_ = lean_usize_to_nat(v___x_813_); -v___x_815_ = lean_array_get_borrowed(v___x_810_, v_es_809_, v_j_814_); -lean_dec(v_j_814_); -switch(lean_obj_tag(v___x_815_)) +lean_object* v_es_814_; lean_object* v___x_815_; size_t v___x_816_; size_t v___x_817_; size_t v___x_818_; lean_object* v_j_819_; lean_object* v___x_820_; +v_es_814_ = lean_ctor_get(v_x_811_, 0); +v___x_815_ = lean_box(2); +v___x_816_ = ((size_t)5ULL); +v___x_817_ = lean_usize_once(&l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1, &l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1_once, _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___closed__1); +v___x_818_ = lean_usize_land(v_x_812_, v___x_817_); +v_j_819_ = lean_usize_to_nat(v___x_818_); +v___x_820_ = lean_array_get_borrowed(v___x_815_, v_es_814_, v_j_819_); +lean_dec(v_j_819_); +switch(lean_obj_tag(v___x_820_)) { case 0: { -lean_object* v_key_816_; uint8_t v___x_817_; -v_key_816_ = lean_ctor_get(v___x_815_, 0); -v___x_817_ = l_Lean_instBEqExtraModUse_beq(v_x_808_, v_key_816_); -return v___x_817_; +lean_object* v_key_821_; uint8_t v___x_822_; +v_key_821_ = lean_ctor_get(v___x_820_, 0); +v___x_822_ = l_Lean_instBEqExtraModUse_beq(v_x_813_, v_key_821_); +return v___x_822_; } case 1: { -lean_object* v_node_818_; size_t v___x_819_; -v_node_818_ = lean_ctor_get(v___x_815_, 0); -v___x_819_ = lean_usize_shift_right(v_x_807_, v___x_811_); -v_x_806_ = v_node_818_; -v_x_807_ = v___x_819_; +lean_object* v_node_823_; size_t v___x_824_; +v_node_823_ = lean_ctor_get(v___x_820_, 0); +v___x_824_ = lean_usize_shift_right(v_x_812_, v___x_816_); +v_x_811_ = v_node_823_; +v_x_812_ = v___x_824_; goto _start; } default: { -uint8_t v___x_821_; -v___x_821_ = 0; -return v___x_821_; +uint8_t v___x_826_; +v___x_826_ = 0; +return v___x_826_; } } } else { -lean_object* v_ks_822_; lean_object* v___x_823_; uint8_t v___x_824_; -v_ks_822_ = lean_ctor_get(v_x_806_, 0); -v___x_823_ = lean_unsigned_to_nat(0u); -v___x_824_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_ks_822_, v___x_823_, v_x_808_); -return v___x_824_; +lean_object* v_ks_827_; lean_object* v___x_828_; uint8_t v___x_829_; +v_ks_827_ = lean_ctor_get(v_x_811_, 0); +v___x_828_ = lean_unsigned_to_nat(0u); +v___x_829_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_ks_827_, v___x_828_, v_x_813_); +return v___x_829_; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___boxed(lean_object* v_x_825_, lean_object* v_x_826_, lean_object* v_x_827_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg___boxed(lean_object* v_x_830_, lean_object* v_x_831_, lean_object* v_x_832_){ _start: { -size_t v_x_286778__boxed_828_; uint8_t v_res_829_; lean_object* v_r_830_; -v_x_286778__boxed_828_ = lean_unbox_usize(v_x_826_); -lean_dec(v_x_826_); -v_res_829_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_825_, v_x_286778__boxed_828_, v_x_827_); -lean_dec_ref(v_x_827_); -lean_dec_ref(v_x_825_); -v_r_830_ = lean_box(v_res_829_); -return v_r_830_; +size_t v_x_286755__boxed_833_; uint8_t v_res_834_; lean_object* v_r_835_; +v_x_286755__boxed_833_ = lean_unbox_usize(v_x_831_); +lean_dec(v_x_831_); +v_res_834_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_830_, v_x_286755__boxed_833_, v_x_832_); +lean_dec_ref(v_x_832_); +lean_dec_ref(v_x_830_); +v_r_835_ = lean_box(v_res_834_); +return v_r_835_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(lean_object* v_x_831_, lean_object* v_x_832_){ +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(lean_object* v_x_836_, lean_object* v_x_837_){ _start: { -uint64_t v___x_833_; size_t v___x_834_; uint8_t v___x_835_; -v___x_833_ = l_Lean_instHashableExtraModUse_hash(v_x_832_); -v___x_834_ = lean_uint64_to_usize(v___x_833_); -v___x_835_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_831_, v___x_834_, v_x_832_); -return v___x_835_; +uint64_t v___x_838_; size_t v___x_839_; uint8_t v___x_840_; +v___x_838_ = l_Lean_instHashableExtraModUse_hash(v_x_837_); +v___x_839_ = lean_uint64_to_usize(v___x_838_); +v___x_840_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_836_, v___x_839_, v_x_837_); +return v___x_840_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg___boxed(lean_object* v_x_836_, lean_object* v_x_837_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg___boxed(lean_object* v_x_841_, lean_object* v_x_842_){ _start: { -uint8_t v_res_838_; lean_object* v_r_839_; -v_res_838_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v_x_836_, v_x_837_); -lean_dec_ref(v_x_837_); -lean_dec_ref(v_x_836_); -v_r_839_ = lean_box(v_res_838_); -return v_r_839_; +uint8_t v_res_843_; lean_object* v_r_844_; +v_res_843_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v_x_841_, v_x_842_); +lean_dec_ref(v_x_842_); +lean_dec_ref(v_x_841_); +v_r_844_ = lean_box(v_res_843_); +return v_r_844_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2(void){ _start: { -lean_object* v___x_842_; lean_object* v___x_843_; lean_object* v___x_844_; -v___x_842_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__1)); -v___x_843_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__0)); -v___x_844_ = l_Lean_PersistentHashMap_empty(lean_box(0), lean_box(0), v___x_843_, v___x_842_); -return v___x_844_; +lean_object* v___x_847_; lean_object* v___x_848_; lean_object* v___x_849_; +v___x_847_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__1)); +v___x_848_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__0)); +v___x_849_ = l_Lean_PersistentHashMap_empty(lean_box(0), lean_box(0), v___x_848_, v___x_847_); +return v___x_849_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3(void){ _start: { -lean_object* v___x_845_; -v___x_845_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); -return v___x_845_; +lean_object* v___x_850_; +v___x_850_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return v___x_850_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4(void){ _start: { -lean_object* v___x_846_; lean_object* v___x_847_; -v___x_846_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3); -v___x_847_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_847_, 0, v___x_846_); -return v___x_847_; +lean_object* v___x_851_; lean_object* v___x_852_; +v___x_851_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__3); +v___x_852_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_852_, 0, v___x_851_); +return v___x_852_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5(void){ _start: { -lean_object* v___x_848_; lean_object* v___x_849_; -v___x_848_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4); -v___x_849_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_849_, 0, v___x_848_); -lean_ctor_set(v___x_849_, 1, v___x_848_); -return v___x_849_; +lean_object* v___x_853_; lean_object* v___x_854_; +v___x_853_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4); +v___x_854_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_854_, 0, v___x_853_); +lean_ctor_set(v___x_854_, 1, v___x_853_); +return v___x_854_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6(void){ _start: { -lean_object* v___x_850_; lean_object* v___x_851_; -v___x_850_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4); -v___x_851_ = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(v___x_851_, 0, v___x_850_); -lean_ctor_set(v___x_851_, 1, v___x_850_); -lean_ctor_set(v___x_851_, 2, v___x_850_); -lean_ctor_set(v___x_851_, 3, v___x_850_); -lean_ctor_set(v___x_851_, 4, v___x_850_); -lean_ctor_set(v___x_851_, 5, v___x_850_); -return v___x_851_; +lean_object* v___x_855_; lean_object* v___x_856_; +v___x_855_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__4); +v___x_856_ = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(v___x_856_, 0, v___x_855_); +lean_ctor_set(v___x_856_, 1, v___x_855_); +lean_ctor_set(v___x_856_, 2, v___x_855_); +lean_ctor_set(v___x_856_, 3, v___x_855_); +lean_ctor_set(v___x_856_, 4, v___x_855_); +lean_ctor_set(v___x_856_, 5, v___x_855_); +return v___x_856_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10(void){ _start: { -lean_object* v___x_856_; lean_object* v___x_857_; -v___x_856_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__9)); -v___x_857_ = l_Lean_stringToMessageData(v___x_856_); -return v___x_857_; +lean_object* v___x_861_; lean_object* v___x_862_; +v___x_861_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__9)); +v___x_862_ = l_Lean_stringToMessageData(v___x_861_); +return v___x_862_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12(void){ _start: { -lean_object* v___x_859_; lean_object* v___x_860_; -v___x_859_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__11)); -v___x_860_ = l_Lean_stringToMessageData(v___x_859_); -return v___x_860_; +lean_object* v___x_864_; lean_object* v___x_865_; +v___x_864_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__11)); +v___x_865_ = l_Lean_stringToMessageData(v___x_864_); +return v___x_865_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13(void){ _start: { -lean_object* v___x_861_; lean_object* v___x_862_; -v___x_861_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__1)); -v___x_862_ = l_Lean_stringToMessageData(v___x_861_); -return v___x_862_; +lean_object* v___x_866_; lean_object* v___x_867_; +v___x_866_ = ((lean_object*)(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg___closed__1)); +v___x_867_ = l_Lean_stringToMessageData(v___x_866_); +return v___x_867_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14(void){ _start: { -lean_object* v_cls_863_; lean_object* v___x_864_; lean_object* v___x_865_; -v_cls_863_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__8)); -v___x_864_ = ((lean_object*)(l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___closed__1)); -v___x_865_ = l_Lean_Name_append(v___x_864_, v_cls_863_); -return v___x_865_; +lean_object* v_cls_868_; lean_object* v___x_869_; lean_object* v___x_870_; +v_cls_868_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__8)); +v___x_869_ = ((lean_object*)(l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4___closed__1)); +v___x_870_ = l_Lean_Name_append(v___x_869_, v_cls_868_); +return v___x_870_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16(void){ _start: { -lean_object* v___x_867_; lean_object* v___x_868_; -v___x_867_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__15)); -v___x_868_ = l_Lean_stringToMessageData(v___x_867_); -return v___x_868_; +lean_object* v___x_872_; lean_object* v___x_873_; +v___x_872_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__15)); +v___x_873_ = l_Lean_stringToMessageData(v___x_872_); +return v___x_873_; } } static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18(void){ _start: { -lean_object* v___x_870_; lean_object* v___x_871_; -v___x_870_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__17)); -v___x_871_ = l_Lean_stringToMessageData(v___x_870_); -return v___x_871_; +lean_object* v___x_875_; lean_object* v___x_876_; +v___x_875_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__17)); +v___x_876_ = l_Lean_stringToMessageData(v___x_875_); +return v___x_876_; } } -LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(lean_object* v_mod_876_, uint8_t v_isMeta_877_, lean_object* v_hint_878_, lean_object* v___y_879_, lean_object* v___y_880_, lean_object* v___y_881_, lean_object* v___y_882_, lean_object* v___y_883_, lean_object* v___y_884_){ +LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(lean_object* v_mod_881_, uint8_t v_isMeta_882_, lean_object* v_hint_883_, lean_object* v___y_884_, lean_object* v___y_885_, lean_object* v___y_886_, lean_object* v___y_887_, lean_object* v___y_888_, lean_object* v___y_889_){ _start: { -lean_object* v___x_886_; lean_object* v_env_887_; uint8_t v_isExporting_888_; lean_object* v___x_889_; lean_object* v_env_890_; lean_object* v___x_891_; lean_object* v_entry_892_; lean_object* v___x_893_; lean_object* v___x_894_; lean_object* v___x_895_; lean_object* v___y_897_; lean_object* v___y_898_; lean_object* v___x_938_; uint8_t v___x_939_; -v___x_886_ = lean_st_ref_get(v___y_884_); -v_env_887_ = lean_ctor_get(v___x_886_, 0); -lean_inc_ref(v_env_887_); -lean_dec(v___x_886_); -v_isExporting_888_ = lean_ctor_get_uint8(v_env_887_, sizeof(void*)*8); -lean_dec_ref(v_env_887_); -v___x_889_ = lean_st_ref_get(v___y_884_); -v_env_890_ = lean_ctor_get(v___x_889_, 0); -lean_inc_ref(v_env_890_); -lean_dec(v___x_889_); -v___x_891_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2); -lean_inc(v_mod_876_); -v_entry_892_ = lean_alloc_ctor(0, 1, 2); -lean_ctor_set(v_entry_892_, 0, v_mod_876_); -lean_ctor_set_uint8(v_entry_892_, sizeof(void*)*1, v_isExporting_888_); -lean_ctor_set_uint8(v_entry_892_, sizeof(void*)*1 + 1, v_isMeta_877_); -v___x_893_ = l___private_Lean_ExtraModUses_0__Lean_extraModUses; -v___x_894_ = lean_box(1); -v___x_895_ = lean_box(0); -v___x_938_ = l_Lean_SimplePersistentEnvExtension_getState___redArg(v___x_891_, v___x_893_, v_env_890_, v___x_894_, v___x_895_); -v___x_939_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v___x_938_, v_entry_892_); -lean_dec(v___x_938_); -if (v___x_939_ == 0) +lean_object* v___x_891_; lean_object* v_env_892_; uint8_t v_isExporting_893_; lean_object* v___x_894_; lean_object* v_env_895_; lean_object* v___x_896_; lean_object* v_entry_897_; lean_object* v___x_898_; lean_object* v___x_899_; lean_object* v___x_900_; lean_object* v___y_902_; lean_object* v___y_903_; lean_object* v___x_943_; uint8_t v___x_944_; +v___x_891_ = lean_st_ref_get(v___y_889_); +v_env_892_ = lean_ctor_get(v___x_891_, 0); +lean_inc_ref(v_env_892_); +lean_dec(v___x_891_); +v_isExporting_893_ = lean_ctor_get_uint8(v_env_892_, sizeof(void*)*8); +lean_dec_ref(v_env_892_); +v___x_894_ = lean_st_ref_get(v___y_889_); +v_env_895_ = lean_ctor_get(v___x_894_, 0); +lean_inc_ref(v_env_895_); +lean_dec(v___x_894_); +v___x_896_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__2); +lean_inc(v_mod_881_); +v_entry_897_ = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(v_entry_897_, 0, v_mod_881_); +lean_ctor_set_uint8(v_entry_897_, sizeof(void*)*1, v_isExporting_893_); +lean_ctor_set_uint8(v_entry_897_, sizeof(void*)*1 + 1, v_isMeta_882_); +v___x_898_ = l___private_Lean_ExtraModUses_0__Lean_extraModUses; +v___x_899_ = lean_box(1); +v___x_900_ = lean_box(0); +v___x_943_ = l_Lean_SimplePersistentEnvExtension_getState___redArg(v___x_896_, v___x_898_, v_env_895_, v___x_899_, v___x_900_); +v___x_944_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v___x_943_, v_entry_897_); +lean_dec(v___x_943_); +if (v___x_944_ == 0) { -lean_object* v_options_940_; uint8_t v_hasTrace_941_; -v_options_940_ = lean_ctor_get(v___y_883_, 2); -v_hasTrace_941_ = lean_ctor_get_uint8(v_options_940_, sizeof(void*)*1); -if (v_hasTrace_941_ == 0) +lean_object* v_options_945_; uint8_t v_hasTrace_946_; +v_options_945_ = lean_ctor_get(v___y_888_, 2); +v_hasTrace_946_ = lean_ctor_get_uint8(v_options_945_, sizeof(void*)*1); +if (v_hasTrace_946_ == 0) { -lean_dec(v_hint_878_); -lean_dec(v_mod_876_); -v___y_897_ = v___y_882_; -v___y_898_ = v___y_884_; -goto v___jp_896_; +lean_dec(v_hint_883_); +lean_dec(v_mod_881_); +v___y_902_ = v___y_887_; +v___y_903_ = v___y_889_; +goto v___jp_901_; } else { -lean_object* v_inheritedTraceOptions_942_; lean_object* v_cls_943_; lean_object* v___y_945_; lean_object* v___y_946_; lean_object* v___y_950_; lean_object* v___y_951_; lean_object* v___x_963_; uint8_t v___x_964_; -v_inheritedTraceOptions_942_ = lean_ctor_get(v___y_883_, 13); -v_cls_943_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__8)); -v___x_963_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14); -v___x_964_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_942_, v_options_940_, v___x_963_); -if (v___x_964_ == 0) +lean_object* v_inheritedTraceOptions_947_; lean_object* v_cls_948_; lean_object* v___y_950_; lean_object* v___y_951_; lean_object* v___y_955_; lean_object* v___y_956_; lean_object* v___x_968_; uint8_t v___x_969_; +v_inheritedTraceOptions_947_ = lean_ctor_get(v___y_888_, 13); +v_cls_948_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__8)); +v___x_968_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__14); +v___x_969_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_947_, v_options_945_, v___x_968_); +if (v___x_969_ == 0) { -lean_dec(v_hint_878_); -lean_dec(v_mod_876_); -v___y_897_ = v___y_882_; -v___y_898_ = v___y_884_; -goto v___jp_896_; +lean_dec(v_hint_883_); +lean_dec(v_mod_881_); +v___y_902_ = v___y_887_; +v___y_903_ = v___y_889_; +goto v___jp_901_; } else { -lean_object* v___x_965_; lean_object* v___y_967_; -v___x_965_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16); -if (v_isExporting_888_ == 0) +lean_object* v___x_970_; lean_object* v___y_972_; +v___x_970_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__16); +if (v_isExporting_893_ == 0) { -lean_object* v___x_974_; -v___x_974_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__21)); -v___y_967_ = v___x_974_; -goto v___jp_966_; +lean_object* v___x_979_; +v___x_979_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__21)); +v___y_972_ = v___x_979_; +goto v___jp_971_; } else { -lean_object* v___x_975_; -v___x_975_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__22)); -v___y_967_ = v___x_975_; -goto v___jp_966_; +lean_object* v___x_980_; +v___x_980_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__22)); +v___y_972_ = v___x_980_; +goto v___jp_971_; } -v___jp_966_: +v___jp_971_: { -lean_object* v___x_968_; lean_object* v___x_969_; lean_object* v___x_970_; lean_object* v___x_971_; -lean_inc_ref(v___y_967_); -v___x_968_ = l_Lean_stringToMessageData(v___y_967_); -v___x_969_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_969_, 0, v___x_965_); -lean_ctor_set(v___x_969_, 1, v___x_968_); -v___x_970_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18); -v___x_971_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_971_, 0, v___x_969_); -lean_ctor_set(v___x_971_, 1, v___x_970_); -if (v_isMeta_877_ == 0) +lean_object* v___x_973_; lean_object* v___x_974_; lean_object* v___x_975_; lean_object* v___x_976_; +lean_inc_ref(v___y_972_); +v___x_973_ = l_Lean_stringToMessageData(v___y_972_); +v___x_974_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_974_, 0, v___x_970_); +lean_ctor_set(v___x_974_, 1, v___x_973_); +v___x_975_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__18); +v___x_976_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_976_, 0, v___x_974_); +lean_ctor_set(v___x_976_, 1, v___x_975_); +if (v_isMeta_882_ == 0) { -lean_object* v___x_972_; -v___x_972_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__19)); -v___y_950_ = v___x_971_; -v___y_951_ = v___x_972_; -goto v___jp_949_; +lean_object* v___x_977_; +v___x_977_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__19)); +v___y_955_ = v___x_976_; +v___y_956_ = v___x_977_; +goto v___jp_954_; } else { -lean_object* v___x_973_; -v___x_973_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__20)); -v___y_950_ = v___x_971_; -v___y_951_ = v___x_973_; -goto v___jp_949_; +lean_object* v___x_978_; +v___x_978_ = ((lean_object*)(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__20)); +v___y_955_ = v___x_976_; +v___y_956_ = v___x_978_; +goto v___jp_954_; } } } -v___jp_944_: -{ -lean_object* v___x_947_; lean_object* v___x_948_; -v___x_947_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_947_, 0, v___y_945_); -lean_ctor_set(v___x_947_, 1, v___y_946_); -v___x_948_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_943_, v___x_947_, v___y_881_, v___y_882_, v___y_883_, v___y_884_); -if (lean_obj_tag(v___x_948_) == 0) -{ -lean_dec_ref(v___x_948_); -v___y_897_ = v___y_882_; -v___y_898_ = v___y_884_; -goto v___jp_896_; -} -else -{ -lean_dec_ref(v_entry_892_); -return v___x_948_; -} -} v___jp_949_: { -lean_object* v___x_952_; lean_object* v___x_953_; lean_object* v___x_954_; lean_object* v___x_955_; lean_object* v___x_956_; lean_object* v___x_957_; uint8_t v___x_958_; -lean_inc_ref(v___y_951_); -v___x_952_ = l_Lean_stringToMessageData(v___y_951_); -v___x_953_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_953_, 0, v___y_950_); -lean_ctor_set(v___x_953_, 1, v___x_952_); -v___x_954_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10); -v___x_955_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_955_, 0, v___x_953_); -lean_ctor_set(v___x_955_, 1, v___x_954_); -v___x_956_ = l_Lean_MessageData_ofName(v_mod_876_); -v___x_957_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_957_, 0, v___x_955_); -lean_ctor_set(v___x_957_, 1, v___x_956_); -v___x_958_ = l_Lean_Name_isAnonymous(v_hint_878_); -if (v___x_958_ == 0) +lean_object* v___x_952_; lean_object* v___x_953_; +v___x_952_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_952_, 0, v___y_950_); +lean_ctor_set(v___x_952_, 1, v___y_951_); +v___x_953_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_948_, v___x_952_, v___y_886_, v___y_887_, v___y_888_, v___y_889_); +if (lean_obj_tag(v___x_953_) == 0) { -lean_object* v___x_959_; lean_object* v___x_960_; lean_object* v___x_961_; -v___x_959_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12); -v___x_960_ = l_Lean_MessageData_ofName(v_hint_878_); -v___x_961_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_961_, 0, v___x_959_); -lean_ctor_set(v___x_961_, 1, v___x_960_); -v___y_945_ = v___x_957_; -v___y_946_ = v___x_961_; -goto v___jp_944_; +lean_dec_ref(v___x_953_); +v___y_902_ = v___y_887_; +v___y_903_ = v___y_889_; +goto v___jp_901_; } else { -lean_object* v___x_962_; -lean_dec(v_hint_878_); -v___x_962_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13); -v___y_945_ = v___x_957_; -v___y_946_ = v___x_962_; -goto v___jp_944_; +lean_dec_ref(v_entry_897_); +return v___x_953_; +} +} +v___jp_954_: +{ +lean_object* v___x_957_; lean_object* v___x_958_; lean_object* v___x_959_; lean_object* v___x_960_; lean_object* v___x_961_; lean_object* v___x_962_; uint8_t v___x_963_; +lean_inc_ref(v___y_956_); +v___x_957_ = l_Lean_stringToMessageData(v___y_956_); +v___x_958_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_958_, 0, v___y_955_); +lean_ctor_set(v___x_958_, 1, v___x_957_); +v___x_959_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__10); +v___x_960_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_960_, 0, v___x_958_); +lean_ctor_set(v___x_960_, 1, v___x_959_); +v___x_961_ = l_Lean_MessageData_ofName(v_mod_881_); +v___x_962_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_962_, 0, v___x_960_); +lean_ctor_set(v___x_962_, 1, v___x_961_); +v___x_963_ = l_Lean_Name_isAnonymous(v_hint_883_); +if (v___x_963_ == 0) +{ +lean_object* v___x_964_; lean_object* v___x_965_; lean_object* v___x_966_; +v___x_964_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__12); +v___x_965_ = l_Lean_MessageData_ofName(v_hint_883_); +v___x_966_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_966_, 0, v___x_964_); +lean_ctor_set(v___x_966_, 1, v___x_965_); +v___y_950_ = v___x_962_; +v___y_951_ = v___x_966_; +goto v___jp_949_; +} +else +{ +lean_object* v___x_967_; +lean_dec(v_hint_883_); +v___x_967_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__13); +v___y_950_ = v___x_962_; +v___y_951_ = v___x_967_; +goto v___jp_949_; } } } } else { -lean_object* v___x_976_; lean_object* v___x_977_; -lean_dec_ref(v_entry_892_); -lean_dec(v_hint_878_); -lean_dec(v_mod_876_); -v___x_976_ = lean_box(0); -v___x_977_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_977_, 0, v___x_976_); -return v___x_977_; +lean_object* v___x_981_; lean_object* v___x_982_; +lean_dec_ref(v_entry_897_); +lean_dec(v_hint_883_); +lean_dec(v_mod_881_); +v___x_981_ = lean_box(0); +v___x_982_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_982_, 0, v___x_981_); +return v___x_982_; } -v___jp_896_: +v___jp_901_: { -lean_object* v___x_899_; lean_object* v_toEnvExtension_900_; lean_object* v_env_901_; lean_object* v_nextMacroScope_902_; lean_object* v_ngen_903_; lean_object* v_auxDeclNGen_904_; lean_object* v_traceState_905_; lean_object* v_messages_906_; lean_object* v_infoState_907_; lean_object* v_snapshotTasks_908_; lean_object* v___x_910_; uint8_t v_isShared_911_; uint8_t v_isSharedCheck_936_; -v___x_899_ = lean_st_ref_take(v___y_898_); -v_toEnvExtension_900_ = lean_ctor_get(v___x_893_, 0); -v_env_901_ = lean_ctor_get(v___x_899_, 0); -v_nextMacroScope_902_ = lean_ctor_get(v___x_899_, 1); -v_ngen_903_ = lean_ctor_get(v___x_899_, 2); -v_auxDeclNGen_904_ = lean_ctor_get(v___x_899_, 3); -v_traceState_905_ = lean_ctor_get(v___x_899_, 4); -v_messages_906_ = lean_ctor_get(v___x_899_, 6); -v_infoState_907_ = lean_ctor_get(v___x_899_, 7); -v_snapshotTasks_908_ = lean_ctor_get(v___x_899_, 8); -v_isSharedCheck_936_ = !lean_is_exclusive(v___x_899_); -if (v_isSharedCheck_936_ == 0) +lean_object* v___x_904_; lean_object* v_toEnvExtension_905_; lean_object* v_env_906_; lean_object* v_nextMacroScope_907_; lean_object* v_ngen_908_; lean_object* v_auxDeclNGen_909_; lean_object* v_traceState_910_; lean_object* v_messages_911_; lean_object* v_infoState_912_; lean_object* v_snapshotTasks_913_; lean_object* v___x_915_; uint8_t v_isShared_916_; uint8_t v_isSharedCheck_941_; +v___x_904_ = lean_st_ref_take(v___y_903_); +v_toEnvExtension_905_ = lean_ctor_get(v___x_898_, 0); +v_env_906_ = lean_ctor_get(v___x_904_, 0); +v_nextMacroScope_907_ = lean_ctor_get(v___x_904_, 1); +v_ngen_908_ = lean_ctor_get(v___x_904_, 2); +v_auxDeclNGen_909_ = lean_ctor_get(v___x_904_, 3); +v_traceState_910_ = lean_ctor_get(v___x_904_, 4); +v_messages_911_ = lean_ctor_get(v___x_904_, 6); +v_infoState_912_ = lean_ctor_get(v___x_904_, 7); +v_snapshotTasks_913_ = lean_ctor_get(v___x_904_, 8); +v_isSharedCheck_941_ = !lean_is_exclusive(v___x_904_); +if (v_isSharedCheck_941_ == 0) { -lean_object* v_unused_937_; -v_unused_937_ = lean_ctor_get(v___x_899_, 5); -lean_dec(v_unused_937_); -v___x_910_ = v___x_899_; -v_isShared_911_ = v_isSharedCheck_936_; -goto v_resetjp_909_; +lean_object* v_unused_942_; +v_unused_942_ = lean_ctor_get(v___x_904_, 5); +lean_dec(v_unused_942_); +v___x_915_ = v___x_904_; +v_isShared_916_ = v_isSharedCheck_941_; +goto v_resetjp_914_; } else { -lean_inc(v_snapshotTasks_908_); -lean_inc(v_infoState_907_); -lean_inc(v_messages_906_); -lean_inc(v_traceState_905_); -lean_inc(v_auxDeclNGen_904_); -lean_inc(v_ngen_903_); -lean_inc(v_nextMacroScope_902_); -lean_inc(v_env_901_); -lean_dec(v___x_899_); -v___x_910_ = lean_box(0); -v_isShared_911_ = v_isSharedCheck_936_; -goto v_resetjp_909_; +lean_inc(v_snapshotTasks_913_); +lean_inc(v_infoState_912_); +lean_inc(v_messages_911_); +lean_inc(v_traceState_910_); +lean_inc(v_auxDeclNGen_909_); +lean_inc(v_ngen_908_); +lean_inc(v_nextMacroScope_907_); +lean_inc(v_env_906_); +lean_dec(v___x_904_); +v___x_915_ = lean_box(0); +v_isShared_916_ = v_isSharedCheck_941_; +goto v_resetjp_914_; } -v_resetjp_909_: +v_resetjp_914_: { -lean_object* v_asyncMode_912_; lean_object* v___x_913_; lean_object* v___x_914_; lean_object* v___x_916_; -v_asyncMode_912_ = lean_ctor_get(v_toEnvExtension_900_, 2); -v___x_913_ = l_Lean_PersistentEnvExtension_addEntry___redArg(v___x_893_, v_env_901_, v_entry_892_, v_asyncMode_912_, v___x_895_); -v___x_914_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5); -if (v_isShared_911_ == 0) +lean_object* v_asyncMode_917_; lean_object* v___x_918_; lean_object* v___x_919_; lean_object* v___x_921_; +v_asyncMode_917_ = lean_ctor_get(v_toEnvExtension_905_, 2); +v___x_918_ = l_Lean_PersistentEnvExtension_addEntry___redArg(v___x_898_, v_env_906_, v_entry_897_, v_asyncMode_917_, v___x_900_); +v___x_919_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__5); +if (v_isShared_916_ == 0) { -lean_ctor_set(v___x_910_, 5, v___x_914_); -lean_ctor_set(v___x_910_, 0, v___x_913_); -v___x_916_ = v___x_910_; -goto v_reusejp_915_; +lean_ctor_set(v___x_915_, 5, v___x_919_); +lean_ctor_set(v___x_915_, 0, v___x_918_); +v___x_921_ = v___x_915_; +goto v_reusejp_920_; } else { -lean_object* v_reuseFailAlloc_935_; -v_reuseFailAlloc_935_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_935_, 0, v___x_913_); -lean_ctor_set(v_reuseFailAlloc_935_, 1, v_nextMacroScope_902_); -lean_ctor_set(v_reuseFailAlloc_935_, 2, v_ngen_903_); -lean_ctor_set(v_reuseFailAlloc_935_, 3, v_auxDeclNGen_904_); -lean_ctor_set(v_reuseFailAlloc_935_, 4, v_traceState_905_); -lean_ctor_set(v_reuseFailAlloc_935_, 5, v___x_914_); -lean_ctor_set(v_reuseFailAlloc_935_, 6, v_messages_906_); -lean_ctor_set(v_reuseFailAlloc_935_, 7, v_infoState_907_); -lean_ctor_set(v_reuseFailAlloc_935_, 8, v_snapshotTasks_908_); -v___x_916_ = v_reuseFailAlloc_935_; -goto v_reusejp_915_; +lean_object* v_reuseFailAlloc_940_; +v_reuseFailAlloc_940_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_940_, 0, v___x_918_); +lean_ctor_set(v_reuseFailAlloc_940_, 1, v_nextMacroScope_907_); +lean_ctor_set(v_reuseFailAlloc_940_, 2, v_ngen_908_); +lean_ctor_set(v_reuseFailAlloc_940_, 3, v_auxDeclNGen_909_); +lean_ctor_set(v_reuseFailAlloc_940_, 4, v_traceState_910_); +lean_ctor_set(v_reuseFailAlloc_940_, 5, v___x_919_); +lean_ctor_set(v_reuseFailAlloc_940_, 6, v_messages_911_); +lean_ctor_set(v_reuseFailAlloc_940_, 7, v_infoState_912_); +lean_ctor_set(v_reuseFailAlloc_940_, 8, v_snapshotTasks_913_); +v___x_921_ = v_reuseFailAlloc_940_; +goto v_reusejp_920_; } -v_reusejp_915_: +v_reusejp_920_: { -lean_object* v___x_917_; lean_object* v___x_918_; lean_object* v_mctx_919_; lean_object* v_zetaDeltaFVarIds_920_; lean_object* v_postponed_921_; lean_object* v_diag_922_; lean_object* v___x_924_; uint8_t v_isShared_925_; uint8_t v_isSharedCheck_933_; -v___x_917_ = lean_st_ref_set(v___y_898_, v___x_916_); -v___x_918_ = lean_st_ref_take(v___y_897_); -v_mctx_919_ = lean_ctor_get(v___x_918_, 0); -v_zetaDeltaFVarIds_920_ = lean_ctor_get(v___x_918_, 2); -v_postponed_921_ = lean_ctor_get(v___x_918_, 3); -v_diag_922_ = lean_ctor_get(v___x_918_, 4); -v_isSharedCheck_933_ = !lean_is_exclusive(v___x_918_); -if (v_isSharedCheck_933_ == 0) +lean_object* v___x_922_; lean_object* v___x_923_; lean_object* v_mctx_924_; lean_object* v_zetaDeltaFVarIds_925_; lean_object* v_postponed_926_; lean_object* v_diag_927_; lean_object* v___x_929_; uint8_t v_isShared_930_; uint8_t v_isSharedCheck_938_; +v___x_922_ = lean_st_ref_set(v___y_903_, v___x_921_); +v___x_923_ = lean_st_ref_take(v___y_902_); +v_mctx_924_ = lean_ctor_get(v___x_923_, 0); +v_zetaDeltaFVarIds_925_ = lean_ctor_get(v___x_923_, 2); +v_postponed_926_ = lean_ctor_get(v___x_923_, 3); +v_diag_927_ = lean_ctor_get(v___x_923_, 4); +v_isSharedCheck_938_ = !lean_is_exclusive(v___x_923_); +if (v_isSharedCheck_938_ == 0) { -lean_object* v_unused_934_; -v_unused_934_ = lean_ctor_get(v___x_918_, 1); -lean_dec(v_unused_934_); -v___x_924_ = v___x_918_; -v_isShared_925_ = v_isSharedCheck_933_; -goto v_resetjp_923_; +lean_object* v_unused_939_; +v_unused_939_ = lean_ctor_get(v___x_923_, 1); +lean_dec(v_unused_939_); +v___x_929_ = v___x_923_; +v_isShared_930_ = v_isSharedCheck_938_; +goto v_resetjp_928_; } else { -lean_inc(v_diag_922_); -lean_inc(v_postponed_921_); -lean_inc(v_zetaDeltaFVarIds_920_); -lean_inc(v_mctx_919_); -lean_dec(v___x_918_); -v___x_924_ = lean_box(0); -v_isShared_925_ = v_isSharedCheck_933_; -goto v_resetjp_923_; +lean_inc(v_diag_927_); +lean_inc(v_postponed_926_); +lean_inc(v_zetaDeltaFVarIds_925_); +lean_inc(v_mctx_924_); +lean_dec(v___x_923_); +v___x_929_ = lean_box(0); +v_isShared_930_ = v_isSharedCheck_938_; +goto v_resetjp_928_; } -v_resetjp_923_: +v_resetjp_928_: { -lean_object* v___x_926_; lean_object* v___x_928_; -v___x_926_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6); -if (v_isShared_925_ == 0) +lean_object* v___x_931_; lean_object* v___x_933_; +v___x_931_ = lean_obj_once(&l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6, &l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6_once, _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___closed__6); +if (v_isShared_930_ == 0) { -lean_ctor_set(v___x_924_, 1, v___x_926_); -v___x_928_ = v___x_924_; -goto v_reusejp_927_; +lean_ctor_set(v___x_929_, 1, v___x_931_); +v___x_933_ = v___x_929_; +goto v_reusejp_932_; } else { -lean_object* v_reuseFailAlloc_932_; -v_reuseFailAlloc_932_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_932_, 0, v_mctx_919_); -lean_ctor_set(v_reuseFailAlloc_932_, 1, v___x_926_); -lean_ctor_set(v_reuseFailAlloc_932_, 2, v_zetaDeltaFVarIds_920_); -lean_ctor_set(v_reuseFailAlloc_932_, 3, v_postponed_921_); -lean_ctor_set(v_reuseFailAlloc_932_, 4, v_diag_922_); -v___x_928_ = v_reuseFailAlloc_932_; -goto v_reusejp_927_; +lean_object* v_reuseFailAlloc_937_; +v_reuseFailAlloc_937_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_937_, 0, v_mctx_924_); +lean_ctor_set(v_reuseFailAlloc_937_, 1, v___x_931_); +lean_ctor_set(v_reuseFailAlloc_937_, 2, v_zetaDeltaFVarIds_925_); +lean_ctor_set(v_reuseFailAlloc_937_, 3, v_postponed_926_); +lean_ctor_set(v_reuseFailAlloc_937_, 4, v_diag_927_); +v___x_933_ = v_reuseFailAlloc_937_; +goto v_reusejp_932_; } -v_reusejp_927_: +v_reusejp_932_: { -lean_object* v___x_929_; lean_object* v___x_930_; lean_object* v___x_931_; -v___x_929_ = lean_st_ref_set(v___y_897_, v___x_928_); -v___x_930_ = lean_box(0); -v___x_931_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_931_, 0, v___x_930_); -return v___x_931_; +lean_object* v___x_934_; lean_object* v___x_935_; lean_object* v___x_936_; +v___x_934_ = lean_st_ref_set(v___y_902_, v___x_933_); +v___x_935_ = lean_box(0); +v___x_936_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_936_, 0, v___x_935_); +return v___x_936_; } } } @@ -3467,643 +3484,643 @@ return v___x_931_; } } } -LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___boxed(lean_object* v_mod_978_, lean_object* v_isMeta_979_, lean_object* v_hint_980_, lean_object* v___y_981_, lean_object* v___y_982_, lean_object* v___y_983_, lean_object* v___y_984_, lean_object* v___y_985_, lean_object* v___y_986_, lean_object* v___y_987_){ +LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8___boxed(lean_object* v_mod_983_, lean_object* v_isMeta_984_, lean_object* v_hint_985_, lean_object* v___y_986_, lean_object* v___y_987_, lean_object* v___y_988_, lean_object* v___y_989_, lean_object* v___y_990_, lean_object* v___y_991_, lean_object* v___y_992_){ _start: { -uint8_t v_isMeta_boxed_988_; lean_object* v_res_989_; -v_isMeta_boxed_988_ = lean_unbox(v_isMeta_979_); -v_res_989_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_mod_978_, v_isMeta_boxed_988_, v_hint_980_, v___y_981_, v___y_982_, v___y_983_, v___y_984_, v___y_985_, v___y_986_); -lean_dec(v___y_986_); -lean_dec_ref(v___y_985_); -lean_dec(v___y_984_); -lean_dec_ref(v___y_983_); -lean_dec(v___y_982_); -lean_dec_ref(v___y_981_); -return v_res_989_; +uint8_t v_isMeta_boxed_993_; lean_object* v_res_994_; +v_isMeta_boxed_993_ = lean_unbox(v_isMeta_984_); +v_res_994_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_mod_983_, v_isMeta_boxed_993_, v_hint_985_, v___y_986_, v___y_987_, v___y_988_, v___y_989_, v___y_990_, v___y_991_); +lean_dec(v___y_991_); +lean_dec_ref(v___y_990_); +lean_dec(v___y_989_); +lean_dec_ref(v___y_988_); +lean_dec(v___y_987_); +lean_dec_ref(v___y_986_); +return v_res_994_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(lean_object* v___x_990_, lean_object* v_declName_991_, lean_object* v_as_992_, size_t v_sz_993_, size_t v_i_994_, lean_object* v_b_995_, lean_object* v___y_996_, lean_object* v___y_997_, lean_object* v___y_998_, lean_object* v___y_999_, lean_object* v___y_1000_, lean_object* v___y_1001_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(lean_object* v___x_995_, lean_object* v_declName_996_, lean_object* v_as_997_, size_t v_sz_998_, size_t v_i_999_, lean_object* v_b_1000_, lean_object* v___y_1001_, lean_object* v___y_1002_, lean_object* v___y_1003_, lean_object* v___y_1004_, lean_object* v___y_1005_, lean_object* v___y_1006_){ _start: { -uint8_t v___x_1003_; -v___x_1003_ = lean_usize_dec_lt(v_i_994_, v_sz_993_); -if (v___x_1003_ == 0) +uint8_t v___x_1008_; +v___x_1008_ = lean_usize_dec_lt(v_i_999_, v_sz_998_); +if (v___x_1008_ == 0) { -lean_object* v___x_1004_; -lean_dec(v_declName_991_); -v___x_1004_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1004_, 0, v_b_995_); -return v___x_1004_; +lean_object* v___x_1009_; +lean_dec(v_declName_996_); +v___x_1009_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1009_, 0, v_b_1000_); +return v___x_1009_; } else { -lean_object* v___x_1005_; lean_object* v_modules_1006_; lean_object* v___x_1007_; lean_object* v_a_1008_; lean_object* v___x_1009_; lean_object* v_toImport_1010_; lean_object* v_module_1011_; uint8_t v___x_1012_; lean_object* v___x_1013_; -v___x_1005_ = l_Lean_Environment_header(v___x_990_); -v_modules_1006_ = lean_ctor_get(v___x_1005_, 3); -lean_inc_ref(v_modules_1006_); -lean_dec_ref(v___x_1005_); -v___x_1007_ = l_Lean_instInhabitedEffectiveImport_default; -v_a_1008_ = lean_array_uget_borrowed(v_as_992_, v_i_994_); -v___x_1009_ = lean_array_get(v___x_1007_, v_modules_1006_, v_a_1008_); -lean_dec_ref(v_modules_1006_); -v_toImport_1010_ = lean_ctor_get(v___x_1009_, 0); -lean_inc_ref(v_toImport_1010_); -lean_dec(v___x_1009_); -v_module_1011_ = lean_ctor_get(v_toImport_1010_, 0); -lean_inc(v_module_1011_); -lean_dec_ref(v_toImport_1010_); -v___x_1012_ = 0; -lean_inc(v_declName_991_); -v___x_1013_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_module_1011_, v___x_1012_, v_declName_991_, v___y_996_, v___y_997_, v___y_998_, v___y_999_, v___y_1000_, v___y_1001_); -if (lean_obj_tag(v___x_1013_) == 0) +lean_object* v___x_1010_; lean_object* v_modules_1011_; lean_object* v___x_1012_; lean_object* v_a_1013_; lean_object* v___x_1014_; lean_object* v_toImport_1015_; lean_object* v_module_1016_; uint8_t v___x_1017_; lean_object* v___x_1018_; +v___x_1010_ = l_Lean_Environment_header(v___x_995_); +v_modules_1011_ = lean_ctor_get(v___x_1010_, 3); +lean_inc_ref(v_modules_1011_); +lean_dec_ref(v___x_1010_); +v___x_1012_ = l_Lean_instInhabitedEffectiveImport_default; +v_a_1013_ = lean_array_uget_borrowed(v_as_997_, v_i_999_); +v___x_1014_ = lean_array_get(v___x_1012_, v_modules_1011_, v_a_1013_); +lean_dec_ref(v_modules_1011_); +v_toImport_1015_ = lean_ctor_get(v___x_1014_, 0); +lean_inc_ref(v_toImport_1015_); +lean_dec(v___x_1014_); +v_module_1016_ = lean_ctor_get(v_toImport_1015_, 0); +lean_inc(v_module_1016_); +lean_dec_ref(v_toImport_1015_); +v___x_1017_ = 0; +lean_inc(v_declName_996_); +v___x_1018_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_module_1016_, v___x_1017_, v_declName_996_, v___y_1001_, v___y_1002_, v___y_1003_, v___y_1004_, v___y_1005_, v___y_1006_); +if (lean_obj_tag(v___x_1018_) == 0) { -lean_object* v___x_1014_; size_t v___x_1015_; size_t v___x_1016_; -lean_dec_ref(v___x_1013_); -v___x_1014_ = lean_box(0); -v___x_1015_ = ((size_t)1ULL); -v___x_1016_ = lean_usize_add(v_i_994_, v___x_1015_); -v_i_994_ = v___x_1016_; -v_b_995_ = v___x_1014_; +lean_object* v___x_1019_; size_t v___x_1020_; size_t v___x_1021_; +lean_dec_ref(v___x_1018_); +v___x_1019_ = lean_box(0); +v___x_1020_ = ((size_t)1ULL); +v___x_1021_ = lean_usize_add(v_i_999_, v___x_1020_); +v_i_999_ = v___x_1021_; +v_b_1000_ = v___x_1019_; goto _start; } else { -lean_dec(v_declName_991_); -return v___x_1013_; +lean_dec(v_declName_996_); +return v___x_1018_; } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9___boxed(lean_object* v___x_1018_, lean_object* v_declName_1019_, lean_object* v_as_1020_, lean_object* v_sz_1021_, lean_object* v_i_1022_, lean_object* v_b_1023_, lean_object* v___y_1024_, lean_object* v___y_1025_, lean_object* v___y_1026_, lean_object* v___y_1027_, lean_object* v___y_1028_, lean_object* v___y_1029_, lean_object* v___y_1030_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9___boxed(lean_object* v___x_1023_, lean_object* v_declName_1024_, lean_object* v_as_1025_, lean_object* v_sz_1026_, lean_object* v_i_1027_, lean_object* v_b_1028_, lean_object* v___y_1029_, lean_object* v___y_1030_, lean_object* v___y_1031_, lean_object* v___y_1032_, lean_object* v___y_1033_, lean_object* v___y_1034_, lean_object* v___y_1035_){ _start: { -size_t v_sz_boxed_1031_; size_t v_i_boxed_1032_; lean_object* v_res_1033_; -v_sz_boxed_1031_ = lean_unbox_usize(v_sz_1021_); -lean_dec(v_sz_1021_); -v_i_boxed_1032_ = lean_unbox_usize(v_i_1022_); -lean_dec(v_i_1022_); -v_res_1033_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(v___x_1018_, v_declName_1019_, v_as_1020_, v_sz_boxed_1031_, v_i_boxed_1032_, v_b_1023_, v___y_1024_, v___y_1025_, v___y_1026_, v___y_1027_, v___y_1028_, v___y_1029_); -lean_dec(v___y_1029_); -lean_dec_ref(v___y_1028_); -lean_dec(v___y_1027_); -lean_dec_ref(v___y_1026_); -lean_dec(v___y_1025_); -lean_dec_ref(v___y_1024_); -lean_dec_ref(v_as_1020_); -lean_dec_ref(v___x_1018_); -return v_res_1033_; +size_t v_sz_boxed_1036_; size_t v_i_boxed_1037_; lean_object* v_res_1038_; +v_sz_boxed_1036_ = lean_unbox_usize(v_sz_1026_); +lean_dec(v_sz_1026_); +v_i_boxed_1037_ = lean_unbox_usize(v_i_1027_); +lean_dec(v_i_1027_); +v_res_1038_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(v___x_1023_, v_declName_1024_, v_as_1025_, v_sz_boxed_1036_, v_i_boxed_1037_, v_b_1028_, v___y_1029_, v___y_1030_, v___y_1031_, v___y_1032_, v___y_1033_, v___y_1034_); +lean_dec(v___y_1034_); +lean_dec_ref(v___y_1033_); +lean_dec(v___y_1032_); +lean_dec_ref(v___y_1031_); +lean_dec(v___y_1030_); +lean_dec_ref(v___y_1029_); +lean_dec_ref(v_as_1025_); +lean_dec_ref(v___x_1023_); +return v_res_1038_; } } static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2(void){ _start: { -lean_object* v___x_1036_; lean_object* v___x_1037_; lean_object* v___x_1038_; -v___x_1036_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__1)); -v___x_1037_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__0)); -v___x_1038_ = l_Std_HashMap_instInhabited(lean_box(0), lean_box(0), v___x_1037_, v___x_1036_); -return v___x_1038_; +lean_object* v___x_1041_; lean_object* v___x_1042_; lean_object* v___x_1043_; +v___x_1041_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__1)); +v___x_1042_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__0)); +v___x_1043_ = l_Std_HashMap_instInhabited(lean_box(0), lean_box(0), v___x_1042_, v___x_1041_); +return v___x_1043_; } } -LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(lean_object* v_declName_1041_, uint8_t v_isMeta_1042_, lean_object* v___y_1043_, lean_object* v___y_1044_, lean_object* v___y_1045_, lean_object* v___y_1046_, lean_object* v___y_1047_, lean_object* v___y_1048_){ +LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(lean_object* v_declName_1046_, uint8_t v_isMeta_1047_, lean_object* v___y_1048_, lean_object* v___y_1049_, lean_object* v___y_1050_, lean_object* v___y_1051_, lean_object* v___y_1052_, lean_object* v___y_1053_){ _start: { -lean_object* v___x_1050_; lean_object* v_env_1054_; lean_object* v___y_1056_; lean_object* v___x_1069_; -v___x_1050_ = lean_st_ref_get(v___y_1048_); -v_env_1054_ = lean_ctor_get(v___x_1050_, 0); -lean_inc_ref(v_env_1054_); -lean_dec(v___x_1050_); -v___x_1069_ = l_Lean_Environment_getModuleIdxFor_x3f(v_env_1054_, v_declName_1041_); -if (lean_obj_tag(v___x_1069_) == 0) +lean_object* v___x_1055_; lean_object* v_env_1059_; lean_object* v___y_1061_; lean_object* v___x_1074_; +v___x_1055_ = lean_st_ref_get(v___y_1053_); +v_env_1059_ = lean_ctor_get(v___x_1055_, 0); +lean_inc_ref(v_env_1059_); +lean_dec(v___x_1055_); +v___x_1074_ = l_Lean_Environment_getModuleIdxFor_x3f(v_env_1059_, v_declName_1046_); +if (lean_obj_tag(v___x_1074_) == 0) { -lean_dec_ref(v_env_1054_); -lean_dec(v_declName_1041_); -goto v___jp_1051_; +lean_dec_ref(v_env_1059_); +lean_dec(v_declName_1046_); +goto v___jp_1056_; } else { -lean_object* v_val_1070_; lean_object* v___x_1071_; lean_object* v_modules_1072_; lean_object* v___x_1073_; uint8_t v___x_1074_; -v_val_1070_ = lean_ctor_get(v___x_1069_, 0); -lean_inc(v_val_1070_); -lean_dec_ref(v___x_1069_); -v___x_1071_ = l_Lean_Environment_header(v_env_1054_); -v_modules_1072_ = lean_ctor_get(v___x_1071_, 3); -lean_inc_ref(v_modules_1072_); -lean_dec_ref(v___x_1071_); -v___x_1073_ = lean_array_get_size(v_modules_1072_); -v___x_1074_ = lean_nat_dec_lt(v_val_1070_, v___x_1073_); -if (v___x_1074_ == 0) +lean_object* v_val_1075_; lean_object* v___x_1076_; lean_object* v_modules_1077_; lean_object* v___x_1078_; uint8_t v___x_1079_; +v_val_1075_ = lean_ctor_get(v___x_1074_, 0); +lean_inc(v_val_1075_); +lean_dec_ref(v___x_1074_); +v___x_1076_ = l_Lean_Environment_header(v_env_1059_); +v_modules_1077_ = lean_ctor_get(v___x_1076_, 3); +lean_inc_ref(v_modules_1077_); +lean_dec_ref(v___x_1076_); +v___x_1078_ = lean_array_get_size(v_modules_1077_); +v___x_1079_ = lean_nat_dec_lt(v_val_1075_, v___x_1078_); +if (v___x_1079_ == 0) { -lean_dec_ref(v_modules_1072_); -lean_dec(v_val_1070_); -lean_dec_ref(v_env_1054_); -lean_dec(v_declName_1041_); -goto v___jp_1051_; +lean_dec_ref(v_modules_1077_); +lean_dec(v_val_1075_); +lean_dec_ref(v_env_1059_); +lean_dec(v_declName_1046_); +goto v___jp_1056_; } else { -lean_object* v___x_1075_; lean_object* v_env_1076_; lean_object* v___x_1077_; lean_object* v___x_1078_; uint8_t v___y_1080_; -v___x_1075_ = lean_st_ref_get(v___y_1048_); -v_env_1076_ = lean_ctor_get(v___x_1075_, 0); -lean_inc_ref(v_env_1076_); -lean_dec(v___x_1075_); -v___x_1077_ = lean_obj_once(&l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2, &l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2_once, _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2); -v___x_1078_ = lean_array_fget(v_modules_1072_, v_val_1070_); -lean_dec(v_val_1070_); -lean_dec_ref(v_modules_1072_); -if (v_isMeta_1042_ == 0) +lean_object* v___x_1080_; lean_object* v_env_1081_; lean_object* v___x_1082_; lean_object* v___x_1083_; uint8_t v___y_1085_; +v___x_1080_ = lean_st_ref_get(v___y_1053_); +v_env_1081_ = lean_ctor_get(v___x_1080_, 0); +lean_inc_ref(v_env_1081_); +lean_dec(v___x_1080_); +v___x_1082_ = lean_obj_once(&l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2, &l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2_once, _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__2); +v___x_1083_ = lean_array_fget(v_modules_1077_, v_val_1075_); +lean_dec(v_val_1075_); +lean_dec_ref(v_modules_1077_); +if (v_isMeta_1047_ == 0) { -lean_dec_ref(v_env_1076_); -v___y_1080_ = v_isMeta_1042_; -goto v___jp_1079_; +lean_dec_ref(v_env_1081_); +v___y_1085_ = v_isMeta_1047_; +goto v___jp_1084_; } else { -uint8_t v___x_1091_; -lean_inc(v_declName_1041_); -v___x_1091_ = l_Lean_isMarkedMeta(v_env_1076_, v_declName_1041_); -if (v___x_1091_ == 0) +uint8_t v___x_1096_; +lean_inc(v_declName_1046_); +v___x_1096_ = l_Lean_isMarkedMeta(v_env_1081_, v_declName_1046_); +if (v___x_1096_ == 0) { -v___y_1080_ = v_isMeta_1042_; -goto v___jp_1079_; +v___y_1085_ = v_isMeta_1047_; +goto v___jp_1084_; } else { -uint8_t v___x_1092_; -v___x_1092_ = 0; -v___y_1080_ = v___x_1092_; -goto v___jp_1079_; +uint8_t v___x_1097_; +v___x_1097_ = 0; +v___y_1085_ = v___x_1097_; +goto v___jp_1084_; } } -v___jp_1079_: +v___jp_1084_: { -lean_object* v_toImport_1081_; lean_object* v_module_1082_; lean_object* v___x_1083_; -v_toImport_1081_ = lean_ctor_get(v___x_1078_, 0); -lean_inc_ref(v_toImport_1081_); -lean_dec(v___x_1078_); -v_module_1082_ = lean_ctor_get(v_toImport_1081_, 0); -lean_inc(v_module_1082_); -lean_dec_ref(v_toImport_1081_); -lean_inc(v_declName_1041_); -v___x_1083_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_module_1082_, v___y_1080_, v_declName_1041_, v___y_1043_, v___y_1044_, v___y_1045_, v___y_1046_, v___y_1047_, v___y_1048_); -if (lean_obj_tag(v___x_1083_) == 0) -{ -lean_object* v___x_1084_; lean_object* v___x_1085_; lean_object* v___x_1086_; lean_object* v___x_1087_; lean_object* v___x_1088_; -lean_dec_ref(v___x_1083_); -v___x_1084_ = l_Lean_indirectModUseExt; -v___x_1085_ = lean_box(1); -v___x_1086_ = lean_box(0); -lean_inc_ref(v_env_1054_); -v___x_1087_ = l_Lean_SimplePersistentEnvExtension_getState___redArg(v___x_1077_, v___x_1084_, v_env_1054_, v___x_1085_, v___x_1086_); -v___x_1088_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v___x_1087_, v_declName_1041_); -lean_dec(v___x_1087_); +lean_object* v_toImport_1086_; lean_object* v_module_1087_; lean_object* v___x_1088_; +v_toImport_1086_ = lean_ctor_get(v___x_1083_, 0); +lean_inc_ref(v_toImport_1086_); +lean_dec(v___x_1083_); +v_module_1087_ = lean_ctor_get(v_toImport_1086_, 0); +lean_inc(v_module_1087_); +lean_dec_ref(v_toImport_1086_); +lean_inc(v_declName_1046_); +v___x_1088_ = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8(v_module_1087_, v___y_1085_, v_declName_1046_, v___y_1048_, v___y_1049_, v___y_1050_, v___y_1051_, v___y_1052_, v___y_1053_); if (lean_obj_tag(v___x_1088_) == 0) { -lean_object* v___x_1089_; -v___x_1089_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__3)); -v___y_1056_ = v___x_1089_; -goto v___jp_1055_; -} -else -{ -lean_object* v_val_1090_; -v_val_1090_ = lean_ctor_get(v___x_1088_, 0); -lean_inc(v_val_1090_); +lean_object* v___x_1089_; lean_object* v___x_1090_; lean_object* v___x_1091_; lean_object* v___x_1092_; lean_object* v___x_1093_; lean_dec_ref(v___x_1088_); -v___y_1056_ = v_val_1090_; -goto v___jp_1055_; +v___x_1089_ = l_Lean_indirectModUseExt; +v___x_1090_ = lean_box(1); +v___x_1091_ = lean_box(0); +lean_inc_ref(v_env_1059_); +v___x_1092_ = l_Lean_SimplePersistentEnvExtension_getState___redArg(v___x_1082_, v___x_1089_, v_env_1059_, v___x_1090_, v___x_1091_); +v___x_1093_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v___x_1092_, v_declName_1046_); +lean_dec(v___x_1092_); +if (lean_obj_tag(v___x_1093_) == 0) +{ +lean_object* v___x_1094_; +v___x_1094_ = ((lean_object*)(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___closed__3)); +v___y_1061_ = v___x_1094_; +goto v___jp_1060_; +} +else +{ +lean_object* v_val_1095_; +v_val_1095_ = lean_ctor_get(v___x_1093_, 0); +lean_inc(v_val_1095_); +lean_dec_ref(v___x_1093_); +v___y_1061_ = v_val_1095_; +goto v___jp_1060_; } } else { -lean_dec_ref(v_env_1054_); -lean_dec(v_declName_1041_); -return v___x_1083_; +lean_dec_ref(v_env_1059_); +lean_dec(v_declName_1046_); +return v___x_1088_; } } } } -v___jp_1051_: +v___jp_1056_: { -lean_object* v___x_1052_; lean_object* v___x_1053_; -v___x_1052_ = lean_box(0); -v___x_1053_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1053_, 0, v___x_1052_); -return v___x_1053_; -} -v___jp_1055_: -{ -lean_object* v___x_1057_; size_t v_sz_1058_; size_t v___x_1059_; lean_object* v___x_1060_; +lean_object* v___x_1057_; lean_object* v___x_1058_; v___x_1057_ = lean_box(0); -v_sz_1058_ = lean_array_size(v___y_1056_); -v___x_1059_ = ((size_t)0ULL); -v___x_1060_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(v_env_1054_, v_declName_1041_, v___y_1056_, v_sz_1058_, v___x_1059_, v___x_1057_, v___y_1043_, v___y_1044_, v___y_1045_, v___y_1046_, v___y_1047_, v___y_1048_); -lean_dec_ref(v___y_1056_); -lean_dec_ref(v_env_1054_); -if (lean_obj_tag(v___x_1060_) == 0) -{ -lean_object* v___x_1062_; uint8_t v_isShared_1063_; uint8_t v_isSharedCheck_1067_; -v_isSharedCheck_1067_ = !lean_is_exclusive(v___x_1060_); -if (v_isSharedCheck_1067_ == 0) -{ -lean_object* v_unused_1068_; -v_unused_1068_ = lean_ctor_get(v___x_1060_, 0); -lean_dec(v_unused_1068_); -v___x_1062_ = v___x_1060_; -v_isShared_1063_ = v_isSharedCheck_1067_; -goto v_resetjp_1061_; +v___x_1058_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1058_, 0, v___x_1057_); +return v___x_1058_; } -else +v___jp_1060_: { -lean_dec(v___x_1060_); +lean_object* v___x_1062_; size_t v_sz_1063_; size_t v___x_1064_; lean_object* v___x_1065_; v___x_1062_ = lean_box(0); -v_isShared_1063_ = v_isSharedCheck_1067_; -goto v_resetjp_1061_; -} -v_resetjp_1061_: +v_sz_1063_ = lean_array_size(v___y_1061_); +v___x_1064_ = ((size_t)0ULL); +v___x_1065_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__9(v_env_1059_, v_declName_1046_, v___y_1061_, v_sz_1063_, v___x_1064_, v___x_1062_, v___y_1048_, v___y_1049_, v___y_1050_, v___y_1051_, v___y_1052_, v___y_1053_); +lean_dec_ref(v___y_1061_); +lean_dec_ref(v_env_1059_); +if (lean_obj_tag(v___x_1065_) == 0) { -lean_object* v___x_1065_; -if (v_isShared_1063_ == 0) +lean_object* v___x_1067_; uint8_t v_isShared_1068_; uint8_t v_isSharedCheck_1072_; +v_isSharedCheck_1072_ = !lean_is_exclusive(v___x_1065_); +if (v_isSharedCheck_1072_ == 0) { -lean_ctor_set(v___x_1062_, 0, v___x_1057_); -v___x_1065_ = v___x_1062_; -goto v_reusejp_1064_; +lean_object* v_unused_1073_; +v_unused_1073_ = lean_ctor_get(v___x_1065_, 0); +lean_dec(v_unused_1073_); +v___x_1067_ = v___x_1065_; +v_isShared_1068_ = v_isSharedCheck_1072_; +goto v_resetjp_1066_; } else { -lean_object* v_reuseFailAlloc_1066_; -v_reuseFailAlloc_1066_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1066_, 0, v___x_1057_); -v___x_1065_ = v_reuseFailAlloc_1066_; -goto v_reusejp_1064_; +lean_dec(v___x_1065_); +v___x_1067_ = lean_box(0); +v_isShared_1068_ = v_isSharedCheck_1072_; +goto v_resetjp_1066_; } -v_reusejp_1064_: +v_resetjp_1066_: +{ +lean_object* v___x_1070_; +if (v_isShared_1068_ == 0) +{ +lean_ctor_set(v___x_1067_, 0, v___x_1062_); +v___x_1070_ = v___x_1067_; +goto v_reusejp_1069_; +} +else +{ +lean_object* v_reuseFailAlloc_1071_; +v_reuseFailAlloc_1071_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1071_, 0, v___x_1062_); +v___x_1070_ = v_reuseFailAlloc_1071_; +goto v_reusejp_1069_; +} +v_reusejp_1069_: +{ +return v___x_1070_; +} +} +} +else { return v___x_1065_; } } } -else -{ -return v___x_1060_; } -} -} -} -LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___boxed(lean_object* v_declName_1093_, lean_object* v_isMeta_1094_, lean_object* v___y_1095_, lean_object* v___y_1096_, lean_object* v___y_1097_, lean_object* v___y_1098_, lean_object* v___y_1099_, lean_object* v___y_1100_, lean_object* v___y_1101_){ +LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2___boxed(lean_object* v_declName_1098_, lean_object* v_isMeta_1099_, lean_object* v___y_1100_, lean_object* v___y_1101_, lean_object* v___y_1102_, lean_object* v___y_1103_, lean_object* v___y_1104_, lean_object* v___y_1105_, lean_object* v___y_1106_){ _start: { -uint8_t v_isMeta_boxed_1102_; lean_object* v_res_1103_; -v_isMeta_boxed_1102_ = lean_unbox(v_isMeta_1094_); -v_res_1103_ = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(v_declName_1093_, v_isMeta_boxed_1102_, v___y_1095_, v___y_1096_, v___y_1097_, v___y_1098_, v___y_1099_, v___y_1100_); -lean_dec(v___y_1100_); -lean_dec_ref(v___y_1099_); -lean_dec(v___y_1098_); -lean_dec_ref(v___y_1097_); -lean_dec(v___y_1096_); -lean_dec_ref(v___y_1095_); -return v_res_1103_; +uint8_t v_isMeta_boxed_1107_; lean_object* v_res_1108_; +v_isMeta_boxed_1107_ = lean_unbox(v_isMeta_1099_); +v_res_1108_ = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(v_declName_1098_, v_isMeta_boxed_1107_, v___y_1100_, v___y_1101_, v___y_1102_, v___y_1103_, v___y_1104_, v___y_1105_); +lean_dec(v___y_1105_); +lean_dec_ref(v___y_1104_); +lean_dec(v___y_1103_); +lean_dec_ref(v___y_1102_); +lean_dec(v___y_1101_); +lean_dec_ref(v___y_1100_); +return v_res_1108_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(lean_object* v_as_x27_1104_, lean_object* v_b_1105_, lean_object* v___y_1106_, lean_object* v___y_1107_, lean_object* v___y_1108_, lean_object* v___y_1109_, lean_object* v___y_1110_, lean_object* v___y_1111_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(lean_object* v_as_x27_1109_, lean_object* v_b_1110_, lean_object* v___y_1111_, lean_object* v___y_1112_, lean_object* v___y_1113_, lean_object* v___y_1114_, lean_object* v___y_1115_, lean_object* v___y_1116_){ _start: { -if (lean_obj_tag(v_as_x27_1104_) == 0) -{ -lean_object* v___x_1113_; -v___x_1113_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1113_, 0, v_b_1105_); -return v___x_1113_; -} -else -{ -lean_object* v_head_1114_; lean_object* v_tail_1115_; uint8_t v___x_1116_; lean_object* v___x_1117_; -v_head_1114_ = lean_ctor_get(v_as_x27_1104_, 0); -v_tail_1115_ = lean_ctor_get(v_as_x27_1104_, 1); -v___x_1116_ = 1; -lean_inc(v_head_1114_); -v___x_1117_ = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(v_head_1114_, v___x_1116_, v___y_1106_, v___y_1107_, v___y_1108_, v___y_1109_, v___y_1110_, v___y_1111_); -if (lean_obj_tag(v___x_1117_) == 0) +if (lean_obj_tag(v_as_x27_1109_) == 0) { lean_object* v___x_1118_; -lean_dec_ref(v___x_1117_); -v___x_1118_ = lean_box(0); -v_as_x27_1104_ = v_tail_1115_; -v_b_1105_ = v___x_1118_; +v___x_1118_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1118_, 0, v_b_1110_); +return v___x_1118_; +} +else +{ +lean_object* v_head_1119_; lean_object* v_tail_1120_; uint8_t v___x_1121_; lean_object* v___x_1122_; +v_head_1119_ = lean_ctor_get(v_as_x27_1109_, 0); +v_tail_1120_ = lean_ctor_get(v_as_x27_1109_, 1); +v___x_1121_ = 1; +lean_inc(v_head_1119_); +v___x_1122_ = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2(v_head_1119_, v___x_1121_, v___y_1111_, v___y_1112_, v___y_1113_, v___y_1114_, v___y_1115_, v___y_1116_); +if (lean_obj_tag(v___x_1122_) == 0) +{ +lean_object* v___x_1123_; +lean_dec_ref(v___x_1122_); +v___x_1123_ = lean_box(0); +v_as_x27_1109_ = v_tail_1120_; +v_b_1110_ = v___x_1123_; goto _start; } else { -return v___x_1117_; +return v___x_1122_; } } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg___boxed(lean_object* v_as_x27_1120_, lean_object* v_b_1121_, lean_object* v___y_1122_, lean_object* v___y_1123_, lean_object* v___y_1124_, lean_object* v___y_1125_, lean_object* v___y_1126_, lean_object* v___y_1127_, lean_object* v___y_1128_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg___boxed(lean_object* v_as_x27_1125_, lean_object* v_b_1126_, lean_object* v___y_1127_, lean_object* v___y_1128_, lean_object* v___y_1129_, lean_object* v___y_1130_, lean_object* v___y_1131_, lean_object* v___y_1132_, lean_object* v___y_1133_){ _start: { -lean_object* v_res_1129_; -v_res_1129_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_as_x27_1120_, v_b_1121_, v___y_1122_, v___y_1123_, v___y_1124_, v___y_1125_, v___y_1126_, v___y_1127_); -lean_dec(v___y_1127_); -lean_dec_ref(v___y_1126_); -lean_dec(v___y_1125_); -lean_dec_ref(v___y_1124_); -lean_dec(v___y_1123_); -lean_dec_ref(v___y_1122_); -lean_dec(v_as_x27_1120_); -return v_res_1129_; +lean_object* v_res_1134_; +v_res_1134_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_as_x27_1125_, v_b_1126_, v___y_1127_, v___y_1128_, v___y_1129_, v___y_1130_, v___y_1131_, v___y_1132_); +lean_dec(v___y_1132_); +lean_dec_ref(v___y_1131_); +lean_dec(v___y_1130_); +lean_dec_ref(v___y_1129_); +lean_dec(v___y_1128_); +lean_dec_ref(v___y_1127_); +lean_dec(v_as_x27_1125_); +return v_res_1134_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2(lean_object* v_env_1130_, lean_object* v_currNamespace_1131_, lean_object* v_openDecls_1132_, lean_object* v_n_1133_, lean_object* v___y_1134_, lean_object* v___y_1135_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2(lean_object* v_env_1135_, lean_object* v_currNamespace_1136_, lean_object* v_openDecls_1137_, lean_object* v_n_1138_, lean_object* v___y_1139_, lean_object* v___y_1140_){ _start: { -lean_object* v___x_1136_; lean_object* v___x_1137_; -v___x_1136_ = l_Lean_ResolveName_resolveNamespace(v_env_1130_, v_currNamespace_1131_, v_openDecls_1132_, v_n_1133_); -v___x_1137_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1137_, 0, v___x_1136_); -lean_ctor_set(v___x_1137_, 1, v___y_1135_); -return v___x_1137_; +lean_object* v___x_1141_; lean_object* v___x_1142_; +v___x_1141_ = l_Lean_ResolveName_resolveNamespace(v_env_1135_, v_currNamespace_1136_, v_openDecls_1137_, v_n_1138_); +v___x_1142_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1142_, 0, v___x_1141_); +lean_ctor_set(v___x_1142_, 1, v___y_1140_); +return v___x_1142_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2___boxed(lean_object* v_env_1138_, lean_object* v_currNamespace_1139_, lean_object* v_openDecls_1140_, lean_object* v_n_1141_, lean_object* v___y_1142_, lean_object* v___y_1143_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2___boxed(lean_object* v_env_1143_, lean_object* v_currNamespace_1144_, lean_object* v_openDecls_1145_, lean_object* v_n_1146_, lean_object* v___y_1147_, lean_object* v___y_1148_){ _start: { -lean_object* v_res_1144_; -v_res_1144_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2(v_env_1138_, v_currNamespace_1139_, v_openDecls_1140_, v_n_1141_, v___y_1142_, v___y_1143_); -lean_dec_ref(v___y_1142_); -return v_res_1144_; +lean_object* v_res_1149_; +v_res_1149_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2(v_env_1143_, v_currNamespace_1144_, v_openDecls_1145_, v_n_1146_, v___y_1147_, v___y_1148_); +lean_dec_ref(v___y_1147_); +return v_res_1149_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3(lean_object* v_currNamespace_1145_, lean_object* v___y_1146_, lean_object* v___y_1147_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3(lean_object* v_currNamespace_1150_, lean_object* v___y_1151_, lean_object* v___y_1152_){ _start: { -lean_object* v___x_1148_; -v___x_1148_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1148_, 0, v_currNamespace_1145_); -lean_ctor_set(v___x_1148_, 1, v___y_1147_); -return v___x_1148_; +lean_object* v___x_1153_; +v___x_1153_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1153_, 0, v_currNamespace_1150_); +lean_ctor_set(v___x_1153_, 1, v___y_1152_); +return v___x_1153_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3___boxed(lean_object* v_currNamespace_1149_, lean_object* v___y_1150_, lean_object* v___y_1151_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3___boxed(lean_object* v_currNamespace_1154_, lean_object* v___y_1155_, lean_object* v___y_1156_){ _start: { -lean_object* v_res_1152_; -v_res_1152_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3(v_currNamespace_1149_, v___y_1150_, v___y_1151_); -lean_dec_ref(v___y_1150_); -return v_res_1152_; +lean_object* v_res_1157_; +v_res_1157_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3(v_currNamespace_1154_, v___y_1155_, v___y_1156_); +lean_dec_ref(v___y_1155_); +return v_res_1157_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4(lean_object* v_env_1153_, lean_object* v_options_1154_, lean_object* v_currNamespace_1155_, lean_object* v_openDecls_1156_, lean_object* v_n_1157_, lean_object* v___y_1158_, lean_object* v___y_1159_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4(lean_object* v_env_1158_, lean_object* v_options_1159_, lean_object* v_currNamespace_1160_, lean_object* v_openDecls_1161_, lean_object* v_n_1162_, lean_object* v___y_1163_, lean_object* v___y_1164_){ _start: { -lean_object* v___x_1160_; lean_object* v___x_1161_; -v___x_1160_ = l_Lean_ResolveName_resolveGlobalName(v_env_1153_, v_options_1154_, v_currNamespace_1155_, v_openDecls_1156_, v_n_1157_); -v___x_1161_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1161_, 0, v___x_1160_); -lean_ctor_set(v___x_1161_, 1, v___y_1159_); -return v___x_1161_; +lean_object* v___x_1165_; lean_object* v___x_1166_; +v___x_1165_ = l_Lean_ResolveName_resolveGlobalName(v_env_1158_, v_options_1159_, v_currNamespace_1160_, v_openDecls_1161_, v_n_1162_); +v___x_1166_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1166_, 0, v___x_1165_); +lean_ctor_set(v___x_1166_, 1, v___y_1164_); +return v___x_1166_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4___boxed(lean_object* v_env_1162_, lean_object* v_options_1163_, lean_object* v_currNamespace_1164_, lean_object* v_openDecls_1165_, lean_object* v_n_1166_, lean_object* v___y_1167_, lean_object* v___y_1168_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4___boxed(lean_object* v_env_1167_, lean_object* v_options_1168_, lean_object* v_currNamespace_1169_, lean_object* v_openDecls_1170_, lean_object* v_n_1171_, lean_object* v___y_1172_, lean_object* v___y_1173_){ _start: { -lean_object* v_res_1169_; -v_res_1169_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4(v_env_1162_, v_options_1163_, v_currNamespace_1164_, v_openDecls_1165_, v_n_1166_, v___y_1167_, v___y_1168_); -lean_dec_ref(v___y_1167_); -lean_dec_ref(v_options_1163_); -return v_res_1169_; +lean_object* v_res_1174_; +v_res_1174_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4(v_env_1167_, v_options_1168_, v_currNamespace_1169_, v_openDecls_1170_, v_n_1171_, v___y_1172_, v___y_1173_); +lean_dec_ref(v___y_1172_); +lean_dec_ref(v_options_1168_); +return v_res_1174_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(lean_object* v_x_1171_, lean_object* v___y_1172_, lean_object* v___y_1173_, lean_object* v___y_1174_, lean_object* v___y_1175_, lean_object* v___y_1176_, lean_object* v___y_1177_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(lean_object* v_x_1176_, lean_object* v___y_1177_, lean_object* v___y_1178_, lean_object* v___y_1179_, lean_object* v___y_1180_, lean_object* v___y_1181_, lean_object* v___y_1182_){ _start: { -lean_object* v___x_1179_; lean_object* v_env_1180_; lean_object* v_options_1181_; lean_object* v_currRecDepth_1182_; lean_object* v_maxRecDepth_1183_; lean_object* v_ref_1184_; lean_object* v_currNamespace_1185_; lean_object* v_openDecls_1186_; lean_object* v_quotContext_1187_; lean_object* v_currMacroScope_1188_; lean_object* v___x_1189_; lean_object* v_nextMacroScope_1190_; lean_object* v___f_1191_; lean_object* v___f_1192_; lean_object* v___f_1193_; lean_object* v___f_1194_; lean_object* v___f_1195_; lean_object* v_methods_1196_; lean_object* v___x_1197_; lean_object* v___x_1198_; lean_object* v___x_1199_; lean_object* v___x_1200_; -v___x_1179_ = lean_st_ref_get(v___y_1177_); -v_env_1180_ = lean_ctor_get(v___x_1179_, 0); -lean_inc_ref_n(v_env_1180_, 4); -lean_dec(v___x_1179_); -v_options_1181_ = lean_ctor_get(v___y_1176_, 2); -v_currRecDepth_1182_ = lean_ctor_get(v___y_1176_, 3); -v_maxRecDepth_1183_ = lean_ctor_get(v___y_1176_, 4); -v_ref_1184_ = lean_ctor_get(v___y_1176_, 5); -v_currNamespace_1185_ = lean_ctor_get(v___y_1176_, 6); -v_openDecls_1186_ = lean_ctor_get(v___y_1176_, 7); -v_quotContext_1187_ = lean_ctor_get(v___y_1176_, 10); -v_currMacroScope_1188_ = lean_ctor_get(v___y_1176_, 11); -v___x_1189_ = lean_st_ref_get(v___y_1177_); -v_nextMacroScope_1190_ = lean_ctor_get(v___x_1189_, 1); -lean_inc(v_nextMacroScope_1190_); -lean_dec(v___x_1189_); -v___f_1191_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0___boxed), 4, 1); -lean_closure_set(v___f_1191_, 0, v_env_1180_); -v___f_1192_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1___boxed), 4, 1); -lean_closure_set(v___f_1192_, 0, v_env_1180_); -lean_inc_n(v_openDecls_1186_, 2); -lean_inc_n(v_currNamespace_1185_, 3); -v___f_1193_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2___boxed), 6, 3); -lean_closure_set(v___f_1193_, 0, v_env_1180_); -lean_closure_set(v___f_1193_, 1, v_currNamespace_1185_); -lean_closure_set(v___f_1193_, 2, v_openDecls_1186_); -v___f_1194_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3___boxed), 3, 1); -lean_closure_set(v___f_1194_, 0, v_currNamespace_1185_); -lean_inc_ref(v_options_1181_); -v___f_1195_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4___boxed), 7, 4); -lean_closure_set(v___f_1195_, 0, v_env_1180_); -lean_closure_set(v___f_1195_, 1, v_options_1181_); -lean_closure_set(v___f_1195_, 2, v_currNamespace_1185_); -lean_closure_set(v___f_1195_, 3, v_openDecls_1186_); -v_methods_1196_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_methods_1196_, 0, v___f_1191_); -lean_ctor_set(v_methods_1196_, 1, v___f_1194_); -lean_ctor_set(v_methods_1196_, 2, v___f_1192_); -lean_ctor_set(v_methods_1196_, 3, v___f_1193_); -lean_ctor_set(v_methods_1196_, 4, v___f_1195_); -lean_inc(v_ref_1184_); -lean_inc(v_maxRecDepth_1183_); -lean_inc(v_currRecDepth_1182_); -lean_inc(v_currMacroScope_1188_); -lean_inc(v_quotContext_1187_); -v___x_1197_ = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(v___x_1197_, 0, v_methods_1196_); -lean_ctor_set(v___x_1197_, 1, v_quotContext_1187_); -lean_ctor_set(v___x_1197_, 2, v_currMacroScope_1188_); -lean_ctor_set(v___x_1197_, 3, v_currRecDepth_1182_); -lean_ctor_set(v___x_1197_, 4, v_maxRecDepth_1183_); -lean_ctor_set(v___x_1197_, 5, v_ref_1184_); -v___x_1198_ = lean_box(0); -v___x_1199_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_1199_, 0, v_nextMacroScope_1190_); -lean_ctor_set(v___x_1199_, 1, v___x_1198_); -lean_ctor_set(v___x_1199_, 2, v___x_1198_); -v___x_1200_ = lean_apply_2(v_x_1171_, v___x_1197_, v___x_1199_); -if (lean_obj_tag(v___x_1200_) == 0) +lean_object* v___x_1184_; lean_object* v_env_1185_; lean_object* v_options_1186_; lean_object* v_currRecDepth_1187_; lean_object* v_maxRecDepth_1188_; lean_object* v_ref_1189_; lean_object* v_currNamespace_1190_; lean_object* v_openDecls_1191_; lean_object* v_quotContext_1192_; lean_object* v_currMacroScope_1193_; lean_object* v___x_1194_; lean_object* v_nextMacroScope_1195_; lean_object* v___f_1196_; lean_object* v___f_1197_; lean_object* v___f_1198_; lean_object* v___f_1199_; lean_object* v___f_1200_; lean_object* v_methods_1201_; lean_object* v___x_1202_; lean_object* v___x_1203_; lean_object* v___x_1204_; lean_object* v___x_1205_; +v___x_1184_ = lean_st_ref_get(v___y_1182_); +v_env_1185_ = lean_ctor_get(v___x_1184_, 0); +lean_inc_ref_n(v_env_1185_, 4); +lean_dec(v___x_1184_); +v_options_1186_ = lean_ctor_get(v___y_1181_, 2); +v_currRecDepth_1187_ = lean_ctor_get(v___y_1181_, 3); +v_maxRecDepth_1188_ = lean_ctor_get(v___y_1181_, 4); +v_ref_1189_ = lean_ctor_get(v___y_1181_, 5); +v_currNamespace_1190_ = lean_ctor_get(v___y_1181_, 6); +v_openDecls_1191_ = lean_ctor_get(v___y_1181_, 7); +v_quotContext_1192_ = lean_ctor_get(v___y_1181_, 10); +v_currMacroScope_1193_ = lean_ctor_get(v___y_1181_, 11); +v___x_1194_ = lean_st_ref_get(v___y_1182_); +v_nextMacroScope_1195_ = lean_ctor_get(v___x_1194_, 1); +lean_inc(v_nextMacroScope_1195_); +lean_dec(v___x_1194_); +v___f_1196_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__0___boxed), 4, 1); +lean_closure_set(v___f_1196_, 0, v_env_1185_); +v___f_1197_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__1___boxed), 4, 1); +lean_closure_set(v___f_1197_, 0, v_env_1185_); +lean_inc_n(v_openDecls_1191_, 2); +lean_inc_n(v_currNamespace_1190_, 3); +v___f_1198_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__2___boxed), 6, 3); +lean_closure_set(v___f_1198_, 0, v_env_1185_); +lean_closure_set(v___f_1198_, 1, v_currNamespace_1190_); +lean_closure_set(v___f_1198_, 2, v_openDecls_1191_); +v___f_1199_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_1199_, 0, v_currNamespace_1190_); +lean_inc_ref(v_options_1186_); +v___f_1200_ = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___lam__4___boxed), 7, 4); +lean_closure_set(v___f_1200_, 0, v_env_1185_); +lean_closure_set(v___f_1200_, 1, v_options_1186_); +lean_closure_set(v___f_1200_, 2, v_currNamespace_1190_); +lean_closure_set(v___f_1200_, 3, v_openDecls_1191_); +v_methods_1201_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_methods_1201_, 0, v___f_1196_); +lean_ctor_set(v_methods_1201_, 1, v___f_1199_); +lean_ctor_set(v_methods_1201_, 2, v___f_1197_); +lean_ctor_set(v_methods_1201_, 3, v___f_1198_); +lean_ctor_set(v_methods_1201_, 4, v___f_1200_); +lean_inc(v_ref_1189_); +lean_inc(v_maxRecDepth_1188_); +lean_inc(v_currRecDepth_1187_); +lean_inc(v_currMacroScope_1193_); +lean_inc(v_quotContext_1192_); +v___x_1202_ = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(v___x_1202_, 0, v_methods_1201_); +lean_ctor_set(v___x_1202_, 1, v_quotContext_1192_); +lean_ctor_set(v___x_1202_, 2, v_currMacroScope_1193_); +lean_ctor_set(v___x_1202_, 3, v_currRecDepth_1187_); +lean_ctor_set(v___x_1202_, 4, v_maxRecDepth_1188_); +lean_ctor_set(v___x_1202_, 5, v_ref_1189_); +v___x_1203_ = lean_box(0); +v___x_1204_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_1204_, 0, v_nextMacroScope_1195_); +lean_ctor_set(v___x_1204_, 1, v___x_1203_); +lean_ctor_set(v___x_1204_, 2, v___x_1203_); +v___x_1205_ = lean_apply_2(v_x_1176_, v___x_1202_, v___x_1204_); +if (lean_obj_tag(v___x_1205_) == 0) { -lean_object* v_a_1201_; lean_object* v_a_1202_; lean_object* v_macroScope_1203_; lean_object* v_traceMsgs_1204_; lean_object* v_expandedMacroDecls_1205_; lean_object* v___x_1206_; lean_object* v___x_1207_; -v_a_1201_ = lean_ctor_get(v___x_1200_, 1); -lean_inc(v_a_1201_); -v_a_1202_ = lean_ctor_get(v___x_1200_, 0); -lean_inc(v_a_1202_); -lean_dec_ref(v___x_1200_); -v_macroScope_1203_ = lean_ctor_get(v_a_1201_, 0); -lean_inc(v_macroScope_1203_); -v_traceMsgs_1204_ = lean_ctor_get(v_a_1201_, 1); -lean_inc(v_traceMsgs_1204_); -v_expandedMacroDecls_1205_ = lean_ctor_get(v_a_1201_, 2); -lean_inc(v_expandedMacroDecls_1205_); -lean_dec(v_a_1201_); -v___x_1206_ = lean_box(0); -v___x_1207_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_expandedMacroDecls_1205_, v___x_1206_, v___y_1172_, v___y_1173_, v___y_1174_, v___y_1175_, v___y_1176_, v___y_1177_); -lean_dec(v_expandedMacroDecls_1205_); -if (lean_obj_tag(v___x_1207_) == 0) +lean_object* v_a_1206_; lean_object* v_a_1207_; lean_object* v_macroScope_1208_; lean_object* v_traceMsgs_1209_; lean_object* v_expandedMacroDecls_1210_; lean_object* v___x_1211_; lean_object* v___x_1212_; +v_a_1206_ = lean_ctor_get(v___x_1205_, 1); +lean_inc(v_a_1206_); +v_a_1207_ = lean_ctor_get(v___x_1205_, 0); +lean_inc(v_a_1207_); +lean_dec_ref(v___x_1205_); +v_macroScope_1208_ = lean_ctor_get(v_a_1206_, 0); +lean_inc(v_macroScope_1208_); +v_traceMsgs_1209_ = lean_ctor_get(v_a_1206_, 1); +lean_inc(v_traceMsgs_1209_); +v_expandedMacroDecls_1210_ = lean_ctor_get(v_a_1206_, 2); +lean_inc(v_expandedMacroDecls_1210_); +lean_dec(v_a_1206_); +v___x_1211_ = lean_box(0); +v___x_1212_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_expandedMacroDecls_1210_, v___x_1211_, v___y_1177_, v___y_1178_, v___y_1179_, v___y_1180_, v___y_1181_, v___y_1182_); +lean_dec(v_expandedMacroDecls_1210_); +if (lean_obj_tag(v___x_1212_) == 0) { -lean_object* v___x_1208_; lean_object* v_env_1209_; lean_object* v_ngen_1210_; lean_object* v_auxDeclNGen_1211_; lean_object* v_traceState_1212_; lean_object* v_cache_1213_; lean_object* v_messages_1214_; lean_object* v_infoState_1215_; lean_object* v_snapshotTasks_1216_; lean_object* v___x_1218_; uint8_t v_isShared_1219_; uint8_t v_isSharedCheck_1242_; -lean_dec_ref(v___x_1207_); -v___x_1208_ = lean_st_ref_take(v___y_1177_); -v_env_1209_ = lean_ctor_get(v___x_1208_, 0); -v_ngen_1210_ = lean_ctor_get(v___x_1208_, 2); -v_auxDeclNGen_1211_ = lean_ctor_get(v___x_1208_, 3); -v_traceState_1212_ = lean_ctor_get(v___x_1208_, 4); -v_cache_1213_ = lean_ctor_get(v___x_1208_, 5); -v_messages_1214_ = lean_ctor_get(v___x_1208_, 6); -v_infoState_1215_ = lean_ctor_get(v___x_1208_, 7); -v_snapshotTasks_1216_ = lean_ctor_get(v___x_1208_, 8); -v_isSharedCheck_1242_ = !lean_is_exclusive(v___x_1208_); -if (v_isSharedCheck_1242_ == 0) +lean_object* v___x_1213_; lean_object* v_env_1214_; lean_object* v_ngen_1215_; lean_object* v_auxDeclNGen_1216_; lean_object* v_traceState_1217_; lean_object* v_cache_1218_; lean_object* v_messages_1219_; lean_object* v_infoState_1220_; lean_object* v_snapshotTasks_1221_; lean_object* v___x_1223_; uint8_t v_isShared_1224_; uint8_t v_isSharedCheck_1247_; +lean_dec_ref(v___x_1212_); +v___x_1213_ = lean_st_ref_take(v___y_1182_); +v_env_1214_ = lean_ctor_get(v___x_1213_, 0); +v_ngen_1215_ = lean_ctor_get(v___x_1213_, 2); +v_auxDeclNGen_1216_ = lean_ctor_get(v___x_1213_, 3); +v_traceState_1217_ = lean_ctor_get(v___x_1213_, 4); +v_cache_1218_ = lean_ctor_get(v___x_1213_, 5); +v_messages_1219_ = lean_ctor_get(v___x_1213_, 6); +v_infoState_1220_ = lean_ctor_get(v___x_1213_, 7); +v_snapshotTasks_1221_ = lean_ctor_get(v___x_1213_, 8); +v_isSharedCheck_1247_ = !lean_is_exclusive(v___x_1213_); +if (v_isSharedCheck_1247_ == 0) { -lean_object* v_unused_1243_; -v_unused_1243_ = lean_ctor_get(v___x_1208_, 1); -lean_dec(v_unused_1243_); -v___x_1218_ = v___x_1208_; -v_isShared_1219_ = v_isSharedCheck_1242_; -goto v_resetjp_1217_; +lean_object* v_unused_1248_; +v_unused_1248_ = lean_ctor_get(v___x_1213_, 1); +lean_dec(v_unused_1248_); +v___x_1223_ = v___x_1213_; +v_isShared_1224_ = v_isSharedCheck_1247_; +goto v_resetjp_1222_; } else { -lean_inc(v_snapshotTasks_1216_); -lean_inc(v_infoState_1215_); -lean_inc(v_messages_1214_); -lean_inc(v_cache_1213_); -lean_inc(v_traceState_1212_); -lean_inc(v_auxDeclNGen_1211_); -lean_inc(v_ngen_1210_); -lean_inc(v_env_1209_); -lean_dec(v___x_1208_); -v___x_1218_ = lean_box(0); -v_isShared_1219_ = v_isSharedCheck_1242_; -goto v_resetjp_1217_; +lean_inc(v_snapshotTasks_1221_); +lean_inc(v_infoState_1220_); +lean_inc(v_messages_1219_); +lean_inc(v_cache_1218_); +lean_inc(v_traceState_1217_); +lean_inc(v_auxDeclNGen_1216_); +lean_inc(v_ngen_1215_); +lean_inc(v_env_1214_); +lean_dec(v___x_1213_); +v___x_1223_ = lean_box(0); +v_isShared_1224_ = v_isSharedCheck_1247_; +goto v_resetjp_1222_; } -v_resetjp_1217_: +v_resetjp_1222_: { -lean_object* v___x_1221_; -if (v_isShared_1219_ == 0) +lean_object* v___x_1226_; +if (v_isShared_1224_ == 0) { -lean_ctor_set(v___x_1218_, 1, v_macroScope_1203_); -v___x_1221_ = v___x_1218_; -goto v_reusejp_1220_; +lean_ctor_set(v___x_1223_, 1, v_macroScope_1208_); +v___x_1226_ = v___x_1223_; +goto v_reusejp_1225_; } else { -lean_object* v_reuseFailAlloc_1241_; -v_reuseFailAlloc_1241_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_1241_, 0, v_env_1209_); -lean_ctor_set(v_reuseFailAlloc_1241_, 1, v_macroScope_1203_); -lean_ctor_set(v_reuseFailAlloc_1241_, 2, v_ngen_1210_); -lean_ctor_set(v_reuseFailAlloc_1241_, 3, v_auxDeclNGen_1211_); -lean_ctor_set(v_reuseFailAlloc_1241_, 4, v_traceState_1212_); -lean_ctor_set(v_reuseFailAlloc_1241_, 5, v_cache_1213_); -lean_ctor_set(v_reuseFailAlloc_1241_, 6, v_messages_1214_); -lean_ctor_set(v_reuseFailAlloc_1241_, 7, v_infoState_1215_); -lean_ctor_set(v_reuseFailAlloc_1241_, 8, v_snapshotTasks_1216_); -v___x_1221_ = v_reuseFailAlloc_1241_; -goto v_reusejp_1220_; +lean_object* v_reuseFailAlloc_1246_; +v_reuseFailAlloc_1246_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_1246_, 0, v_env_1214_); +lean_ctor_set(v_reuseFailAlloc_1246_, 1, v_macroScope_1208_); +lean_ctor_set(v_reuseFailAlloc_1246_, 2, v_ngen_1215_); +lean_ctor_set(v_reuseFailAlloc_1246_, 3, v_auxDeclNGen_1216_); +lean_ctor_set(v_reuseFailAlloc_1246_, 4, v_traceState_1217_); +lean_ctor_set(v_reuseFailAlloc_1246_, 5, v_cache_1218_); +lean_ctor_set(v_reuseFailAlloc_1246_, 6, v_messages_1219_); +lean_ctor_set(v_reuseFailAlloc_1246_, 7, v_infoState_1220_); +lean_ctor_set(v_reuseFailAlloc_1246_, 8, v_snapshotTasks_1221_); +v___x_1226_ = v_reuseFailAlloc_1246_; +goto v_reusejp_1225_; } -v_reusejp_1220_: +v_reusejp_1225_: { -lean_object* v___x_1222_; lean_object* v___x_1223_; lean_object* v___x_1224_; -v___x_1222_ = lean_st_ref_set(v___y_1177_, v___x_1221_); -v___x_1223_ = l_List_reverse___redArg(v_traceMsgs_1204_); -v___x_1224_ = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(v___x_1223_, v___y_1172_, v___y_1173_, v___y_1174_, v___y_1175_, v___y_1176_, v___y_1177_); -if (lean_obj_tag(v___x_1224_) == 0) +lean_object* v___x_1227_; lean_object* v___x_1228_; lean_object* v___x_1229_; +v___x_1227_ = lean_st_ref_set(v___y_1182_, v___x_1226_); +v___x_1228_ = l_List_reverse___redArg(v_traceMsgs_1209_); +v___x_1229_ = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__4(v___x_1228_, v___y_1177_, v___y_1178_, v___y_1179_, v___y_1180_, v___y_1181_, v___y_1182_); +if (lean_obj_tag(v___x_1229_) == 0) { -lean_object* v___x_1226_; uint8_t v_isShared_1227_; uint8_t v_isSharedCheck_1231_; -v_isSharedCheck_1231_ = !lean_is_exclusive(v___x_1224_); -if (v_isSharedCheck_1231_ == 0) +lean_object* v___x_1231_; uint8_t v_isShared_1232_; uint8_t v_isSharedCheck_1236_; +v_isSharedCheck_1236_ = !lean_is_exclusive(v___x_1229_); +if (v_isSharedCheck_1236_ == 0) { -lean_object* v_unused_1232_; -v_unused_1232_ = lean_ctor_get(v___x_1224_, 0); -lean_dec(v_unused_1232_); -v___x_1226_ = v___x_1224_; -v_isShared_1227_ = v_isSharedCheck_1231_; -goto v_resetjp_1225_; +lean_object* v_unused_1237_; +v_unused_1237_ = lean_ctor_get(v___x_1229_, 0); +lean_dec(v_unused_1237_); +v___x_1231_ = v___x_1229_; +v_isShared_1232_ = v_isSharedCheck_1236_; +goto v_resetjp_1230_; } else { -lean_dec(v___x_1224_); -v___x_1226_ = lean_box(0); -v_isShared_1227_ = v_isSharedCheck_1231_; -goto v_resetjp_1225_; +lean_dec(v___x_1229_); +v___x_1231_ = lean_box(0); +v_isShared_1232_ = v_isSharedCheck_1236_; +goto v_resetjp_1230_; } -v_resetjp_1225_: +v_resetjp_1230_: { -lean_object* v___x_1229_; -if (v_isShared_1227_ == 0) +lean_object* v___x_1234_; +if (v_isShared_1232_ == 0) { -lean_ctor_set(v___x_1226_, 0, v_a_1202_); -v___x_1229_ = v___x_1226_; -goto v_reusejp_1228_; +lean_ctor_set(v___x_1231_, 0, v_a_1207_); +v___x_1234_ = v___x_1231_; +goto v_reusejp_1233_; } else { -lean_object* v_reuseFailAlloc_1230_; -v_reuseFailAlloc_1230_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1230_, 0, v_a_1202_); -v___x_1229_ = v_reuseFailAlloc_1230_; -goto v_reusejp_1228_; +lean_object* v_reuseFailAlloc_1235_; +v_reuseFailAlloc_1235_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1235_, 0, v_a_1207_); +v___x_1234_ = v_reuseFailAlloc_1235_; +goto v_reusejp_1233_; } -v_reusejp_1228_: +v_reusejp_1233_: { -return v___x_1229_; +return v___x_1234_; } } } else { -lean_object* v_a_1233_; lean_object* v___x_1235_; uint8_t v_isShared_1236_; uint8_t v_isSharedCheck_1240_; -lean_dec(v_a_1202_); -v_a_1233_ = lean_ctor_get(v___x_1224_, 0); -v_isSharedCheck_1240_ = !lean_is_exclusive(v___x_1224_); -if (v_isSharedCheck_1240_ == 0) +lean_object* v_a_1238_; lean_object* v___x_1240_; uint8_t v_isShared_1241_; uint8_t v_isSharedCheck_1245_; +lean_dec(v_a_1207_); +v_a_1238_ = lean_ctor_get(v___x_1229_, 0); +v_isSharedCheck_1245_ = !lean_is_exclusive(v___x_1229_); +if (v_isSharedCheck_1245_ == 0) { -v___x_1235_ = v___x_1224_; -v_isShared_1236_ = v_isSharedCheck_1240_; -goto v_resetjp_1234_; +v___x_1240_ = v___x_1229_; +v_isShared_1241_ = v_isSharedCheck_1245_; +goto v_resetjp_1239_; } else { -lean_inc(v_a_1233_); -lean_dec(v___x_1224_); -v___x_1235_ = lean_box(0); -v_isShared_1236_ = v_isSharedCheck_1240_; -goto v_resetjp_1234_; +lean_inc(v_a_1238_); +lean_dec(v___x_1229_); +v___x_1240_ = lean_box(0); +v_isShared_1241_ = v_isSharedCheck_1245_; +goto v_resetjp_1239_; } -v_resetjp_1234_: +v_resetjp_1239_: { -lean_object* v___x_1238_; -if (v_isShared_1236_ == 0) +lean_object* v___x_1243_; +if (v_isShared_1241_ == 0) { -v___x_1238_ = v___x_1235_; -goto v_reusejp_1237_; +v___x_1243_ = v___x_1240_; +goto v_reusejp_1242_; } else { -lean_object* v_reuseFailAlloc_1239_; -v_reuseFailAlloc_1239_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1239_, 0, v_a_1233_); -v___x_1238_ = v_reuseFailAlloc_1239_; -goto v_reusejp_1237_; +lean_object* v_reuseFailAlloc_1244_; +v_reuseFailAlloc_1244_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1244_, 0, v_a_1238_); +v___x_1243_ = v_reuseFailAlloc_1244_; +goto v_reusejp_1242_; } -v_reusejp_1237_: +v_reusejp_1242_: { -return v___x_1238_; +return v___x_1243_; } } } @@ -4112,550 +4129,523 @@ return v___x_1238_; } else { -lean_object* v_a_1244_; lean_object* v___x_1246_; uint8_t v_isShared_1247_; uint8_t v_isSharedCheck_1251_; -lean_dec(v_traceMsgs_1204_); -lean_dec(v_macroScope_1203_); -lean_dec(v_a_1202_); -v_a_1244_ = lean_ctor_get(v___x_1207_, 0); -v_isSharedCheck_1251_ = !lean_is_exclusive(v___x_1207_); -if (v_isSharedCheck_1251_ == 0) +lean_object* v_a_1249_; lean_object* v___x_1251_; uint8_t v_isShared_1252_; uint8_t v_isSharedCheck_1256_; +lean_dec(v_traceMsgs_1209_); +lean_dec(v_macroScope_1208_); +lean_dec(v_a_1207_); +v_a_1249_ = lean_ctor_get(v___x_1212_, 0); +v_isSharedCheck_1256_ = !lean_is_exclusive(v___x_1212_); +if (v_isSharedCheck_1256_ == 0) { -v___x_1246_ = v___x_1207_; -v_isShared_1247_ = v_isSharedCheck_1251_; -goto v_resetjp_1245_; +v___x_1251_ = v___x_1212_; +v_isShared_1252_ = v_isSharedCheck_1256_; +goto v_resetjp_1250_; } else { -lean_inc(v_a_1244_); -lean_dec(v___x_1207_); -v___x_1246_ = lean_box(0); -v_isShared_1247_ = v_isSharedCheck_1251_; -goto v_resetjp_1245_; +lean_inc(v_a_1249_); +lean_dec(v___x_1212_); +v___x_1251_ = lean_box(0); +v_isShared_1252_ = v_isSharedCheck_1256_; +goto v_resetjp_1250_; } -v_resetjp_1245_: +v_resetjp_1250_: { -lean_object* v___x_1249_; -if (v_isShared_1247_ == 0) +lean_object* v___x_1254_; +if (v_isShared_1252_ == 0) { -v___x_1249_ = v___x_1246_; -goto v_reusejp_1248_; +v___x_1254_ = v___x_1251_; +goto v_reusejp_1253_; } else { -lean_object* v_reuseFailAlloc_1250_; -v_reuseFailAlloc_1250_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1250_, 0, v_a_1244_); -v___x_1249_ = v_reuseFailAlloc_1250_; -goto v_reusejp_1248_; +lean_object* v_reuseFailAlloc_1255_; +v_reuseFailAlloc_1255_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1255_, 0, v_a_1249_); +v___x_1254_ = v_reuseFailAlloc_1255_; +goto v_reusejp_1253_; } -v_reusejp_1248_: +v_reusejp_1253_: { -return v___x_1249_; +return v___x_1254_; } } } } else { -lean_object* v_a_1252_; -v_a_1252_ = lean_ctor_get(v___x_1200_, 0); -lean_inc(v_a_1252_); -lean_dec_ref(v___x_1200_); -if (lean_obj_tag(v_a_1252_) == 0) +lean_object* v_a_1257_; +v_a_1257_ = lean_ctor_get(v___x_1205_, 0); +lean_inc(v_a_1257_); +lean_dec_ref(v___x_1205_); +if (lean_obj_tag(v_a_1257_) == 0) { -lean_object* v_a_1253_; lean_object* v_a_1254_; lean_object* v___x_1255_; uint8_t v___x_1256_; -v_a_1253_ = lean_ctor_get(v_a_1252_, 0); -lean_inc(v_a_1253_); -v_a_1254_ = lean_ctor_get(v_a_1252_, 1); -lean_inc_ref(v_a_1254_); -lean_dec_ref(v_a_1252_); -v___x_1255_ = ((lean_object*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___closed__0)); -v___x_1256_ = lean_string_dec_eq(v_a_1254_, v___x_1255_); -if (v___x_1256_ == 0) +lean_object* v_a_1258_; lean_object* v_a_1259_; lean_object* v___x_1260_; uint8_t v___x_1261_; +v_a_1258_ = lean_ctor_get(v_a_1257_, 0); +lean_inc(v_a_1258_); +v_a_1259_ = lean_ctor_get(v_a_1257_, 1); +lean_inc_ref(v_a_1259_); +lean_dec_ref(v_a_1257_); +v___x_1260_ = ((lean_object*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___closed__0)); +v___x_1261_ = lean_string_dec_eq(v_a_1259_, v___x_1260_); +if (v___x_1261_ == 0) { -lean_object* v___x_1257_; lean_object* v___x_1258_; lean_object* v___x_1259_; -v___x_1257_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_1257_, 0, v_a_1254_); -v___x_1258_ = l_Lean_MessageData_ofFormat(v___x_1257_); -v___x_1259_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_a_1253_, v___x_1258_, v___y_1172_, v___y_1173_, v___y_1174_, v___y_1175_, v___y_1176_, v___y_1177_); -lean_dec(v_a_1253_); -return v___x_1259_; +lean_object* v___x_1262_; lean_object* v___x_1263_; lean_object* v___x_1264_; +v___x_1262_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_1262_, 0, v_a_1259_); +v___x_1263_ = l_Lean_MessageData_ofFormat(v___x_1262_); +v___x_1264_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_a_1258_, v___x_1263_, v___y_1177_, v___y_1178_, v___y_1179_, v___y_1180_, v___y_1181_, v___y_1182_); +lean_dec(v_a_1258_); +return v___x_1264_; } else { -lean_object* v___x_1260_; -lean_dec_ref(v_a_1254_); -v___x_1260_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_a_1253_); -return v___x_1260_; +lean_object* v___x_1265_; +lean_dec_ref(v_a_1259_); +v___x_1265_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_a_1258_); +return v___x_1265_; } } else { -lean_object* v___x_1261_; -v___x_1261_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -return v___x_1261_; +lean_object* v___x_1266_; +v___x_1266_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +return v___x_1266_; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___boxed(lean_object* v_x_1262_, lean_object* v___y_1263_, lean_object* v___y_1264_, lean_object* v___y_1265_, lean_object* v___y_1266_, lean_object* v___y_1267_, lean_object* v___y_1268_, lean_object* v___y_1269_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg___boxed(lean_object* v_x_1267_, lean_object* v___y_1268_, lean_object* v___y_1269_, lean_object* v___y_1270_, lean_object* v___y_1271_, lean_object* v___y_1272_, lean_object* v___y_1273_, lean_object* v___y_1274_){ _start: { -lean_object* v_res_1270_; -v_res_1270_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v_x_1262_, v___y_1263_, v___y_1264_, v___y_1265_, v___y_1266_, v___y_1267_, v___y_1268_); -lean_dec(v___y_1268_); -lean_dec_ref(v___y_1267_); -lean_dec(v___y_1266_); -lean_dec_ref(v___y_1265_); -lean_dec(v___y_1264_); -lean_dec_ref(v___y_1263_); -return v_res_1270_; +lean_object* v_res_1275_; +v_res_1275_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v_x_1267_, v___y_1268_, v___y_1269_, v___y_1270_, v___y_1271_, v___y_1272_, v___y_1273_); +lean_dec(v___y_1273_); +lean_dec_ref(v___y_1272_); +lean_dec(v___y_1271_); +lean_dec_ref(v___y_1270_); +lean_dec(v___y_1269_); +lean_dec_ref(v___y_1268_); +return v_res_1275_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(size_t v_sz_1274_, size_t v_i_1275_, lean_object* v_bs_1276_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(size_t v_sz_1279_, size_t v_i_1280_, lean_object* v_bs_1281_){ _start: { -uint8_t v___x_1277_; -v___x_1277_ = lean_usize_dec_lt(v_i_1275_, v_sz_1274_); -if (v___x_1277_ == 0) +uint8_t v___x_1282_; +v___x_1282_ = lean_usize_dec_lt(v_i_1280_, v_sz_1279_); +if (v___x_1282_ == 0) { -lean_object* v___x_1278_; -v___x_1278_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1278_, 0, v_bs_1276_); -return v___x_1278_; +lean_object* v___x_1283_; +v___x_1283_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1283_, 0, v_bs_1281_); +return v___x_1283_; } else { -lean_object* v_v_1279_; lean_object* v___x_1280_; uint8_t v___x_1281_; -v_v_1279_ = lean_array_uget(v_bs_1276_, v_i_1275_); -v___x_1280_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___closed__1)); -lean_inc(v_v_1279_); -v___x_1281_ = l_Lean_Syntax_isOfKind(v_v_1279_, v___x_1280_); -if (v___x_1281_ == 0) +lean_object* v_v_1284_; lean_object* v___x_1285_; uint8_t v___x_1286_; +v_v_1284_ = lean_array_uget(v_bs_1281_, v_i_1280_); +v___x_1285_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___closed__1)); +lean_inc(v_v_1284_); +v___x_1286_ = l_Lean_Syntax_isOfKind(v_v_1284_, v___x_1285_); +if (v___x_1286_ == 0) { -lean_object* v___x_1282_; -lean_dec(v_v_1279_); -lean_dec_ref(v_bs_1276_); -v___x_1282_ = lean_box(0); -return v___x_1282_; +lean_object* v___x_1287_; +lean_dec(v_v_1284_); +lean_dec_ref(v_bs_1281_); +v___x_1287_ = lean_box(0); +return v___x_1287_; } else { -lean_object* v___x_1283_; lean_object* v___x_1284_; uint8_t v___x_1285_; -v___x_1283_ = lean_unsigned_to_nat(0u); -v___x_1284_ = l_Lean_Syntax_getArg(v_v_1279_, v___x_1283_); -v___x_1285_ = l_Lean_Syntax_isOfKind(v___x_1284_, v___x_1280_); -if (v___x_1285_ == 0) +lean_object* v___x_1288_; lean_object* v___x_1289_; uint8_t v___x_1290_; +v___x_1288_ = lean_unsigned_to_nat(0u); +v___x_1289_ = l_Lean_Syntax_getArg(v_v_1284_, v___x_1288_); +v___x_1290_ = l_Lean_Syntax_isOfKind(v___x_1289_, v___x_1285_); +if (v___x_1290_ == 0) { -lean_object* v___x_1286_; -lean_dec(v_v_1279_); -lean_dec_ref(v_bs_1276_); -v___x_1286_ = lean_box(0); -return v___x_1286_; +lean_object* v___x_1291_; +lean_dec(v_v_1284_); +lean_dec_ref(v_bs_1281_); +v___x_1291_ = lean_box(0); +return v___x_1291_; } else { -lean_object* v___x_1287_; lean_object* v_bs_x27_1288_; lean_object* v___x_1289_; size_t v___x_1290_; size_t v___x_1291_; lean_object* v___x_1292_; -v___x_1287_ = lean_unsigned_to_nat(3u); -v_bs_x27_1288_ = lean_array_uset(v_bs_1276_, v_i_1275_, v___x_1283_); -v___x_1289_ = l_Lean_Syntax_getArg(v_v_1279_, v___x_1287_); -lean_dec(v_v_1279_); -v___x_1290_ = ((size_t)1ULL); -v___x_1291_ = lean_usize_add(v_i_1275_, v___x_1290_); -v___x_1292_ = lean_array_uset(v_bs_x27_1288_, v_i_1275_, v___x_1289_); -v_i_1275_ = v___x_1291_; -v_bs_1276_ = v___x_1292_; +lean_object* v___x_1292_; lean_object* v_bs_x27_1293_; lean_object* v___x_1294_; size_t v___x_1295_; size_t v___x_1296_; lean_object* v___x_1297_; +v___x_1292_ = lean_unsigned_to_nat(3u); +v_bs_x27_1293_ = lean_array_uset(v_bs_1281_, v_i_1280_, v___x_1288_); +v___x_1294_ = l_Lean_Syntax_getArg(v_v_1284_, v___x_1292_); +lean_dec(v_v_1284_); +v___x_1295_ = ((size_t)1ULL); +v___x_1296_ = lean_usize_add(v_i_1280_, v___x_1295_); +v___x_1297_ = lean_array_uset(v_bs_x27_1293_, v_i_1280_, v___x_1294_); +v_i_1280_ = v___x_1296_; +v_bs_1281_ = v___x_1297_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___boxed(lean_object* v_sz_1294_, lean_object* v_i_1295_, lean_object* v_bs_1296_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___boxed(lean_object* v_sz_1299_, lean_object* v_i_1300_, lean_object* v_bs_1301_){ _start: { -size_t v_sz_boxed_1297_; size_t v_i_boxed_1298_; lean_object* v_res_1299_; -v_sz_boxed_1297_ = lean_unbox_usize(v_sz_1294_); -lean_dec(v_sz_1294_); -v_i_boxed_1298_ = lean_unbox_usize(v_i_1295_); -lean_dec(v_i_1295_); -v_res_1299_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(v_sz_boxed_1297_, v_i_boxed_1298_, v_bs_1296_); -return v_res_1299_; +size_t v_sz_boxed_1302_; size_t v_i_boxed_1303_; lean_object* v_res_1304_; +v_sz_boxed_1302_ = lean_unbox_usize(v_sz_1299_); +lean_dec(v_sz_1299_); +v_i_boxed_1303_ = lean_unbox_usize(v_i_1300_); +lean_dec(v_i_1300_); +v_res_1304_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(v_sz_boxed_1302_, v_i_boxed_1303_, v_bs_1301_); +return v_res_1304_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(size_t v_sz_1312_, size_t v_i_1313_, lean_object* v_bs_1314_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(size_t v_sz_1317_, size_t v_i_1318_, lean_object* v_bs_1319_){ _start: { -uint8_t v___x_1315_; -v___x_1315_ = lean_usize_dec_lt(v_i_1313_, v_sz_1312_); -if (v___x_1315_ == 0) +uint8_t v___x_1320_; +v___x_1320_ = lean_usize_dec_lt(v_i_1318_, v_sz_1317_); +if (v___x_1320_ == 0) { -lean_object* v___x_1316_; -v___x_1316_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1316_, 0, v_bs_1314_); -return v___x_1316_; +lean_object* v___x_1321_; +v___x_1321_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1321_, 0, v_bs_1319_); +return v___x_1321_; } else { -lean_object* v_v_1317_; lean_object* v___x_1318_; uint8_t v___x_1319_; -v_v_1317_ = lean_array_uget(v_bs_1314_, v_i_1313_); -v___x_1318_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___closed__1)); -lean_inc(v_v_1317_); -v___x_1319_ = l_Lean_Syntax_isOfKind(v_v_1317_, v___x_1318_); -if (v___x_1319_ == 0) -{ -lean_object* v___x_1320_; -lean_dec(v_v_1317_); -lean_dec_ref(v_bs_1314_); -v___x_1320_ = lean_box(0); -return v___x_1320_; -} -else -{ -lean_object* v___x_1321_; lean_object* v___x_1322_; lean_object* v___x_1323_; uint8_t v___x_1324_; -v___x_1321_ = lean_unsigned_to_nat(1u); -v___x_1322_ = l_Lean_Syntax_getArg(v_v_1317_, v___x_1321_); -v___x_1323_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___closed__3)); -v___x_1324_ = l_Lean_Syntax_isOfKind(v___x_1322_, v___x_1323_); +lean_object* v_v_1322_; lean_object* v___x_1323_; uint8_t v___x_1324_; +v_v_1322_ = lean_array_uget(v_bs_1319_, v_i_1318_); +v___x_1323_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___closed__1)); +lean_inc(v_v_1322_); +v___x_1324_ = l_Lean_Syntax_isOfKind(v_v_1322_, v___x_1323_); if (v___x_1324_ == 0) { lean_object* v___x_1325_; -lean_dec(v_v_1317_); -lean_dec_ref(v_bs_1314_); +lean_dec(v_v_1322_); +lean_dec_ref(v_bs_1319_); v___x_1325_ = lean_box(0); return v___x_1325_; } else { -lean_object* v___x_1326_; lean_object* v___x_1327_; lean_object* v_bs_x27_1328_; lean_object* v___x_1329_; size_t v___x_1330_; size_t v___x_1331_; lean_object* v___x_1332_; -v___x_1326_ = lean_unsigned_to_nat(3u); -v___x_1327_ = lean_unsigned_to_nat(0u); -v_bs_x27_1328_ = lean_array_uset(v_bs_1314_, v_i_1313_, v___x_1327_); -v___x_1329_ = l_Lean_Syntax_getArg(v_v_1317_, v___x_1326_); -lean_dec(v_v_1317_); -v___x_1330_ = ((size_t)1ULL); -v___x_1331_ = lean_usize_add(v_i_1313_, v___x_1330_); -v___x_1332_ = lean_array_uset(v_bs_x27_1328_, v_i_1313_, v___x_1329_); -v_i_1313_ = v___x_1331_; -v_bs_1314_ = v___x_1332_; +lean_object* v___x_1326_; lean_object* v___x_1327_; lean_object* v___x_1328_; uint8_t v___x_1329_; +v___x_1326_ = lean_unsigned_to_nat(1u); +v___x_1327_ = l_Lean_Syntax_getArg(v_v_1322_, v___x_1326_); +v___x_1328_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___closed__3)); +v___x_1329_ = l_Lean_Syntax_isOfKind(v___x_1327_, v___x_1328_); +if (v___x_1329_ == 0) +{ +lean_object* v___x_1330_; +lean_dec(v_v_1322_); +lean_dec_ref(v_bs_1319_); +v___x_1330_ = lean_box(0); +return v___x_1330_; +} +else +{ +lean_object* v___x_1331_; lean_object* v___x_1332_; lean_object* v_bs_x27_1333_; lean_object* v___x_1334_; size_t v___x_1335_; size_t v___x_1336_; lean_object* v___x_1337_; +v___x_1331_ = lean_unsigned_to_nat(3u); +v___x_1332_ = lean_unsigned_to_nat(0u); +v_bs_x27_1333_ = lean_array_uset(v_bs_1319_, v_i_1318_, v___x_1332_); +v___x_1334_ = l_Lean_Syntax_getArg(v_v_1322_, v___x_1331_); +lean_dec(v_v_1322_); +v___x_1335_ = ((size_t)1ULL); +v___x_1336_ = lean_usize_add(v_i_1318_, v___x_1335_); +v___x_1337_ = lean_array_uset(v_bs_x27_1333_, v_i_1318_, v___x_1334_); +v_i_1318_ = v___x_1336_; +v_bs_1319_ = v___x_1337_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___boxed(lean_object* v_sz_1334_, lean_object* v_i_1335_, lean_object* v_bs_1336_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4___boxed(lean_object* v_sz_1339_, lean_object* v_i_1340_, lean_object* v_bs_1341_){ _start: { -size_t v_sz_boxed_1337_; size_t v_i_boxed_1338_; lean_object* v_res_1339_; -v_sz_boxed_1337_ = lean_unbox_usize(v_sz_1334_); -lean_dec(v_sz_1334_); -v_i_boxed_1338_ = lean_unbox_usize(v_i_1335_); -lean_dec(v_i_1335_); -v_res_1339_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(v_sz_boxed_1337_, v_i_boxed_1338_, v_bs_1336_); -return v_res_1339_; +size_t v_sz_boxed_1342_; size_t v_i_boxed_1343_; lean_object* v_res_1344_; +v_sz_boxed_1342_ = lean_unbox_usize(v_sz_1339_); +lean_dec(v_sz_1339_); +v_i_boxed_1343_ = lean_unbox_usize(v_i_1340_); +lean_dec(v_i_1340_); +v_res_1344_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(v_sz_boxed_1342_, v_i_boxed_1343_, v_bs_1341_); +return v_res_1344_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(size_t v_sz_1346_, size_t v_i_1347_, lean_object* v_bs_1348_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(size_t v_sz_1351_, size_t v_i_1352_, lean_object* v_bs_1353_){ _start: { -uint8_t v___x_1349_; -v___x_1349_ = lean_usize_dec_lt(v_i_1347_, v_sz_1346_); -if (v___x_1349_ == 0) +uint8_t v___x_1354_; +v___x_1354_ = lean_usize_dec_lt(v_i_1352_, v_sz_1351_); +if (v___x_1354_ == 0) { -lean_object* v___x_1350_; -v___x_1350_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1350_, 0, v_bs_1348_); -return v___x_1350_; +lean_object* v___x_1355_; +v___x_1355_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1355_, 0, v_bs_1353_); +return v___x_1355_; } else { -lean_object* v_v_1351_; lean_object* v___x_1352_; uint8_t v___x_1353_; -v_v_1351_ = lean_array_uget(v_bs_1348_, v_i_1347_); -v___x_1352_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12___closed__1)); -lean_inc(v_v_1351_); -v___x_1353_ = l_Lean_Syntax_isOfKind(v_v_1351_, v___x_1352_); -if (v___x_1353_ == 0) +lean_object* v_v_1356_; lean_object* v___x_1357_; uint8_t v___x_1358_; +v_v_1356_ = lean_array_uget(v_bs_1353_, v_i_1352_); +v___x_1357_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12___closed__1)); +lean_inc(v_v_1356_); +v___x_1358_ = l_Lean_Syntax_isOfKind(v_v_1356_, v___x_1357_); +if (v___x_1358_ == 0) { -lean_object* v___x_1354_; -lean_dec(v_v_1351_); -lean_dec_ref(v_bs_1348_); -v___x_1354_ = lean_box(0); -return v___x_1354_; +lean_object* v___x_1359_; +lean_dec(v_v_1356_); +lean_dec_ref(v_bs_1353_); +v___x_1359_ = lean_box(0); +return v___x_1359_; } else { -lean_object* v___x_1355_; lean_object* v_bs_x27_1356_; lean_object* v___x_1363_; uint8_t v___x_1364_; -v___x_1355_ = lean_unsigned_to_nat(0u); -v_bs_x27_1356_ = lean_array_uset(v_bs_1348_, v_i_1347_, v___x_1355_); -v___x_1363_ = l_Lean_Syntax_getArg(v_v_1351_, v___x_1355_); -lean_dec(v_v_1351_); -v___x_1364_ = l_Lean_Syntax_isNone(v___x_1363_); -if (v___x_1364_ == 0) +lean_object* v___x_1360_; lean_object* v_bs_x27_1361_; lean_object* v___x_1368_; uint8_t v___x_1369_; +v___x_1360_ = lean_unsigned_to_nat(0u); +v_bs_x27_1361_ = lean_array_uset(v_bs_1353_, v_i_1352_, v___x_1360_); +v___x_1368_ = l_Lean_Syntax_getArg(v_v_1356_, v___x_1360_); +lean_dec(v_v_1356_); +v___x_1369_ = l_Lean_Syntax_isNone(v___x_1368_); +if (v___x_1369_ == 0) { -lean_object* v___x_1365_; uint8_t v___x_1366_; -v___x_1365_ = lean_unsigned_to_nat(2u); -v___x_1366_ = l_Lean_Syntax_matchesNull(v___x_1363_, v___x_1365_); -if (v___x_1366_ == 0) +lean_object* v___x_1370_; uint8_t v___x_1371_; +v___x_1370_ = lean_unsigned_to_nat(2u); +v___x_1371_ = l_Lean_Syntax_matchesNull(v___x_1368_, v___x_1370_); +if (v___x_1371_ == 0) { -lean_object* v___x_1367_; -lean_dec_ref(v_bs_x27_1356_); -v___x_1367_ = lean_box(0); -return v___x_1367_; +lean_object* v___x_1372_; +lean_dec_ref(v_bs_x27_1361_); +v___x_1372_ = lean_box(0); +return v___x_1372_; } else { -goto v___jp_1357_; +goto v___jp_1362_; } } else { -lean_dec(v___x_1363_); -goto v___jp_1357_; +lean_dec(v___x_1368_); +goto v___jp_1362_; } -v___jp_1357_: +v___jp_1362_: { -lean_object* v___x_1358_; size_t v___x_1359_; size_t v___x_1360_; lean_object* v___x_1361_; -v___x_1358_ = lean_box(0); -v___x_1359_ = ((size_t)1ULL); -v___x_1360_ = lean_usize_add(v_i_1347_, v___x_1359_); -v___x_1361_ = lean_array_uset(v_bs_x27_1356_, v_i_1347_, v___x_1358_); -v_i_1347_ = v___x_1360_; -v_bs_1348_ = v___x_1361_; +lean_object* v___x_1363_; size_t v___x_1364_; size_t v___x_1365_; lean_object* v___x_1366_; +v___x_1363_ = lean_box(0); +v___x_1364_ = ((size_t)1ULL); +v___x_1365_ = lean_usize_add(v_i_1352_, v___x_1364_); +v___x_1366_ = lean_array_uset(v_bs_x27_1361_, v_i_1352_, v___x_1363_); +v_i_1352_ = v___x_1365_; +v_bs_1353_ = v___x_1366_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12___boxed(lean_object* v_sz_1368_, lean_object* v_i_1369_, lean_object* v_bs_1370_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12___boxed(lean_object* v_sz_1373_, lean_object* v_i_1374_, lean_object* v_bs_1375_){ _start: { -size_t v_sz_boxed_1371_; size_t v_i_boxed_1372_; lean_object* v_res_1373_; -v_sz_boxed_1371_ = lean_unbox_usize(v_sz_1368_); -lean_dec(v_sz_1368_); -v_i_boxed_1372_ = lean_unbox_usize(v_i_1369_); -lean_dec(v_i_1369_); -v_res_1373_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(v_sz_boxed_1371_, v_i_boxed_1372_, v_bs_1370_); -return v_res_1373_; +size_t v_sz_boxed_1376_; size_t v_i_boxed_1377_; lean_object* v_res_1378_; +v_sz_boxed_1376_ = lean_unbox_usize(v_sz_1373_); +lean_dec(v_sz_1373_); +v_i_boxed_1377_ = lean_unbox_usize(v_i_1374_); +lean_dec(v_i_1374_); +v_res_1378_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(v_sz_boxed_1376_, v_i_boxed_1377_, v_bs_1375_); +return v_res_1378_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(size_t v_sz_1374_, size_t v_i_1375_, lean_object* v_bs_1376_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(size_t v_sz_1379_, size_t v_i_1380_, lean_object* v_bs_1381_){ _start: { -uint8_t v___x_1377_; -v___x_1377_ = lean_usize_dec_lt(v_i_1375_, v_sz_1374_); -if (v___x_1377_ == 0) +uint8_t v___x_1382_; +v___x_1382_ = lean_usize_dec_lt(v_i_1380_, v_sz_1379_); +if (v___x_1382_ == 0) { -lean_object* v___x_1378_; -v___x_1378_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1378_, 0, v_bs_1376_); -return v___x_1378_; +lean_object* v___x_1383_; +v___x_1383_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1383_, 0, v_bs_1381_); +return v___x_1383_; } else { -lean_object* v_v_1379_; lean_object* v___x_1380_; lean_object* v_bs_x27_1381_; size_t v___x_1382_; size_t v___x_1383_; lean_object* v___x_1384_; -v_v_1379_ = lean_array_uget(v_bs_1376_, v_i_1375_); -v___x_1380_ = lean_unsigned_to_nat(0u); -v_bs_x27_1381_ = lean_array_uset(v_bs_1376_, v_i_1375_, v___x_1380_); -v___x_1382_ = ((size_t)1ULL); -v___x_1383_ = lean_usize_add(v_i_1375_, v___x_1382_); -v___x_1384_ = lean_array_uset(v_bs_x27_1381_, v_i_1375_, v_v_1379_); -v_i_1375_ = v___x_1383_; -v_bs_1376_ = v___x_1384_; +lean_object* v_v_1384_; lean_object* v___x_1385_; lean_object* v_bs_x27_1386_; size_t v___x_1387_; size_t v___x_1388_; lean_object* v___x_1389_; +v_v_1384_ = lean_array_uget(v_bs_1381_, v_i_1380_); +v___x_1385_ = lean_unsigned_to_nat(0u); +v_bs_x27_1386_ = lean_array_uset(v_bs_1381_, v_i_1380_, v___x_1385_); +v___x_1387_ = ((size_t)1ULL); +v___x_1388_ = lean_usize_add(v_i_1380_, v___x_1387_); +v___x_1389_ = lean_array_uset(v_bs_x27_1386_, v_i_1380_, v_v_1384_); +v_i_1380_ = v___x_1388_; +v_bs_1381_ = v___x_1389_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6___boxed(lean_object* v_sz_1386_, lean_object* v_i_1387_, lean_object* v_bs_1388_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6___boxed(lean_object* v_sz_1391_, lean_object* v_i_1392_, lean_object* v_bs_1393_){ _start: { -size_t v_sz_boxed_1389_; size_t v_i_boxed_1390_; lean_object* v_res_1391_; -v_sz_boxed_1389_ = lean_unbox_usize(v_sz_1386_); -lean_dec(v_sz_1386_); -v_i_boxed_1390_ = lean_unbox_usize(v_i_1387_); -lean_dec(v_i_1387_); -v_res_1391_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(v_sz_boxed_1389_, v_i_boxed_1390_, v_bs_1388_); -return v_res_1391_; +size_t v_sz_boxed_1394_; size_t v_i_boxed_1395_; lean_object* v_res_1396_; +v_sz_boxed_1394_ = lean_unbox_usize(v_sz_1391_); +lean_dec(v_sz_1391_); +v_i_boxed_1395_ = lean_unbox_usize(v_i_1392_); +lean_dec(v_i_1392_); +v_res_1396_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(v_sz_boxed_1394_, v_i_boxed_1395_, v_bs_1393_); +return v_res_1396_; } } -LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1(lean_object* v_00_u03b1_1392_, lean_object* v_x_1393_, lean_object* v___y_1394_, lean_object* v___y_1395_){ +LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1(lean_object* v_00_u03b1_1397_, lean_object* v_x_1398_, lean_object* v___y_1399_, lean_object* v___y_1400_){ _start: { -lean_object* v___x_1396_; -v___x_1396_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v_x_1393_, v___y_1395_); -return v___x_1396_; +lean_object* v___x_1401_; +v___x_1401_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___redArg(v_x_1398_, v___y_1400_); +return v___x_1401_; } } -LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___boxed(lean_object* v_00_u03b1_1397_, lean_object* v_x_1398_, lean_object* v___y_1399_, lean_object* v___y_1400_){ +LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___boxed(lean_object* v_00_u03b1_1402_, lean_object* v_x_1403_, lean_object* v___y_1404_, lean_object* v___y_1405_){ _start: { -lean_object* v_res_1401_; -v_res_1401_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1(v_00_u03b1_1397_, v_x_1398_, v___y_1399_, v___y_1400_); -lean_dec_ref(v___y_1399_); -lean_dec_ref(v_x_1398_); -return v_res_1401_; +lean_object* v_res_1406_; +v_res_1406_ = l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1(v_00_u03b1_1402_, v_x_1403_, v___y_1404_, v___y_1405_); +lean_dec_ref(v___y_1404_); +lean_dec_ref(v_x_1403_); +return v_res_1406_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(lean_object* v_stx_1405_, lean_object* v_as_x27_1406_, lean_object* v_b_1407_, lean_object* v___y_1408_, lean_object* v___y_1409_, lean_object* v___y_1410_, lean_object* v___y_1411_, lean_object* v___y_1412_, lean_object* v___y_1413_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(lean_object* v_stx_1410_, lean_object* v_as_x27_1411_, lean_object* v_b_1412_, lean_object* v___y_1413_, lean_object* v___y_1414_, lean_object* v___y_1415_, lean_object* v___y_1416_, lean_object* v___y_1417_, lean_object* v___y_1418_){ _start: { -if (lean_obj_tag(v_as_x27_1406_) == 0) +if (lean_obj_tag(v_as_x27_1411_) == 0) { -lean_object* v___x_1415_; -lean_dec(v_stx_1405_); -v___x_1415_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1415_, 0, v_b_1407_); -return v___x_1415_; +lean_object* v___x_1420_; +lean_dec(v_stx_1410_); +v___x_1420_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1420_, 0, v_b_1412_); +return v___x_1420_; } else { -lean_object* v_head_1416_; lean_object* v_tail_1417_; lean_object* v_value_1418_; lean_object* v___x_1419_; lean_object* v___x_1420_; -lean_dec_ref(v_b_1407_); -v_head_1416_ = lean_ctor_get(v_as_x27_1406_, 0); -v_tail_1417_ = lean_ctor_get(v_as_x27_1406_, 1); -v_value_1418_ = lean_ctor_get(v_head_1416_, 1); -v___x_1419_ = lean_box(0); -lean_inc(v_value_1418_); -lean_inc(v___y_1413_); -lean_inc_ref(v___y_1412_); -lean_inc(v___y_1411_); -lean_inc_ref(v___y_1410_); -lean_inc(v___y_1409_); -lean_inc_ref(v___y_1408_); -lean_inc(v_stx_1405_); -v___x_1420_ = lean_apply_8(v_value_1418_, v_stx_1405_, v___y_1408_, v___y_1409_, v___y_1410_, v___y_1411_, v___y_1412_, v___y_1413_, lean_box(0)); -if (lean_obj_tag(v___x_1420_) == 0) +lean_object* v_head_1421_; lean_object* v_tail_1422_; lean_object* v_value_1423_; lean_object* v___x_1424_; lean_object* v___x_1425_; +lean_dec_ref(v_b_1412_); +v_head_1421_ = lean_ctor_get(v_as_x27_1411_, 0); +v_tail_1422_ = lean_ctor_get(v_as_x27_1411_, 1); +v_value_1423_ = lean_ctor_get(v_head_1421_, 1); +v___x_1424_ = lean_box(0); +lean_inc(v_value_1423_); +lean_inc(v___y_1418_); +lean_inc_ref(v___y_1417_); +lean_inc(v___y_1416_); +lean_inc_ref(v___y_1415_); +lean_inc(v___y_1414_); +lean_inc_ref(v___y_1413_); +lean_inc(v_stx_1410_); +v___x_1425_ = lean_apply_8(v_value_1423_, v_stx_1410_, v___y_1413_, v___y_1414_, v___y_1415_, v___y_1416_, v___y_1417_, v___y_1418_, lean_box(0)); +if (lean_obj_tag(v___x_1425_) == 0) { -lean_object* v_a_1421_; lean_object* v___x_1423_; uint8_t v_isShared_1424_; uint8_t v_isSharedCheck_1430_; -lean_dec(v_stx_1405_); -v_a_1421_ = lean_ctor_get(v___x_1420_, 0); -v_isSharedCheck_1430_ = !lean_is_exclusive(v___x_1420_); -if (v_isSharedCheck_1430_ == 0) +lean_object* v_a_1426_; lean_object* v___x_1428_; uint8_t v_isShared_1429_; uint8_t v_isSharedCheck_1435_; +lean_dec(v_stx_1410_); +v_a_1426_ = lean_ctor_get(v___x_1425_, 0); +v_isSharedCheck_1435_ = !lean_is_exclusive(v___x_1425_); +if (v_isSharedCheck_1435_ == 0) { -v___x_1423_ = v___x_1420_; -v_isShared_1424_ = v_isSharedCheck_1430_; -goto v_resetjp_1422_; +v___x_1428_ = v___x_1425_; +v_isShared_1429_ = v_isSharedCheck_1435_; +goto v_resetjp_1427_; } else { -lean_inc(v_a_1421_); -lean_dec(v___x_1420_); -v___x_1423_ = lean_box(0); -v_isShared_1424_ = v_isSharedCheck_1430_; -goto v_resetjp_1422_; +lean_inc(v_a_1426_); +lean_dec(v___x_1425_); +v___x_1428_ = lean_box(0); +v_isShared_1429_ = v_isSharedCheck_1435_; +goto v_resetjp_1427_; } -v_resetjp_1422_: +v_resetjp_1427_: { -lean_object* v___x_1425_; lean_object* v___x_1426_; lean_object* v___x_1428_; -v___x_1425_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1425_, 0, v_a_1421_); -v___x_1426_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1426_, 0, v___x_1425_); -lean_ctor_set(v___x_1426_, 1, v___x_1419_); -if (v_isShared_1424_ == 0) +lean_object* v___x_1430_; lean_object* v___x_1431_; lean_object* v___x_1433_; +v___x_1430_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1430_, 0, v_a_1426_); +v___x_1431_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1431_, 0, v___x_1430_); +lean_ctor_set(v___x_1431_, 1, v___x_1424_); +if (v_isShared_1429_ == 0) { -lean_ctor_set(v___x_1423_, 0, v___x_1426_); -v___x_1428_ = v___x_1423_; -goto v_reusejp_1427_; +lean_ctor_set(v___x_1428_, 0, v___x_1431_); +v___x_1433_ = v___x_1428_; +goto v_reusejp_1432_; } else { -lean_object* v_reuseFailAlloc_1429_; -v_reuseFailAlloc_1429_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1429_, 0, v___x_1426_); -v___x_1428_ = v_reuseFailAlloc_1429_; -goto v_reusejp_1427_; +lean_object* v_reuseFailAlloc_1434_; +v_reuseFailAlloc_1434_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1434_, 0, v___x_1431_); +v___x_1433_ = v_reuseFailAlloc_1434_; +goto v_reusejp_1432_; } -v_reusejp_1427_: +v_reusejp_1432_: { -return v___x_1428_; +return v___x_1433_; } } } else { -lean_object* v_a_1431_; lean_object* v___x_1433_; uint8_t v_isShared_1434_; uint8_t v_isSharedCheck_1453_; -v_a_1431_ = lean_ctor_get(v___x_1420_, 0); -v_isSharedCheck_1453_ = !lean_is_exclusive(v___x_1420_); -if (v_isSharedCheck_1453_ == 0) +lean_object* v_a_1436_; lean_object* v___x_1438_; uint8_t v_isShared_1439_; uint8_t v_isSharedCheck_1458_; +v_a_1436_ = lean_ctor_get(v___x_1425_, 0); +v_isSharedCheck_1458_ = !lean_is_exclusive(v___x_1425_); +if (v_isSharedCheck_1458_ == 0) { -v___x_1433_ = v___x_1420_; -v_isShared_1434_ = v_isSharedCheck_1453_; -goto v_resetjp_1432_; +v___x_1438_ = v___x_1425_; +v_isShared_1439_ = v_isSharedCheck_1458_; +goto v_resetjp_1437_; } else { -lean_inc(v_a_1431_); -lean_dec(v___x_1420_); -v___x_1433_ = lean_box(0); -v_isShared_1434_ = v_isSharedCheck_1453_; -goto v_resetjp_1432_; +lean_inc(v_a_1436_); +lean_dec(v___x_1425_); +v___x_1438_ = lean_box(0); +v_isShared_1439_ = v_isSharedCheck_1458_; +goto v_resetjp_1437_; } -v_resetjp_1432_: +v_resetjp_1437_: { -lean_object* v___x_1435_; lean_object* v___x_1436_; uint8_t v___y_1438_; uint8_t v___x_1451_; -v___x_1435_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_1436_ = l_Lean_Elab_unsupportedSyntaxExceptionId; -v___x_1451_ = l_Lean_Exception_isInterrupt(v_a_1431_); -if (v___x_1451_ == 0) +lean_object* v___x_1440_; lean_object* v___x_1441_; uint8_t v___y_1443_; uint8_t v___x_1456_; +v___x_1440_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_1441_ = l_Lean_Elab_unsupportedSyntaxExceptionId; +v___x_1456_ = l_Lean_Exception_isInterrupt(v_a_1436_); +if (v___x_1456_ == 0) { -uint8_t v___x_1452_; -lean_inc(v_a_1431_); -v___x_1452_ = l_Lean_Exception_isRuntime(v_a_1431_); -v___y_1438_ = v___x_1452_; -goto v___jp_1437_; +uint8_t v___x_1457_; +lean_inc(v_a_1436_); +v___x_1457_ = l_Lean_Exception_isRuntime(v_a_1436_); +v___y_1443_ = v___x_1457_; +goto v___jp_1442_; } else { -v___y_1438_ = v___x_1451_; -goto v___jp_1437_; +v___y_1443_ = v___x_1456_; +goto v___jp_1442_; } -v___jp_1437_: +v___jp_1442_: { -if (v___y_1438_ == 0) +if (v___y_1443_ == 0) { -if (lean_obj_tag(v_a_1431_) == 0) -{ -lean_object* v___x_1440_; -lean_dec(v_stx_1405_); -if (v_isShared_1434_ == 0) -{ -v___x_1440_ = v___x_1433_; -goto v_reusejp_1439_; -} -else -{ -lean_object* v_reuseFailAlloc_1441_; -v_reuseFailAlloc_1441_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1441_, 0, v_a_1431_); -v___x_1440_ = v_reuseFailAlloc_1441_; -goto v_reusejp_1439_; -} -v_reusejp_1439_: -{ -return v___x_1440_; -} -} -else -{ -lean_object* v_id_1442_; uint8_t v___x_1443_; -v_id_1442_ = lean_ctor_get(v_a_1431_, 0); -v___x_1443_ = l_Lean_instBEqInternalExceptionId_beq(v___x_1436_, v_id_1442_); -if (v___x_1443_ == 0) +if (lean_obj_tag(v_a_1436_) == 0) { lean_object* v___x_1445_; -lean_dec(v_stx_1405_); -if (v_isShared_1434_ == 0) +lean_dec(v_stx_1410_); +if (v_isShared_1439_ == 0) { -v___x_1445_ = v___x_1433_; +v___x_1445_ = v___x_1438_; goto v_reusejp_1444_; } else { lean_object* v_reuseFailAlloc_1446_; v_reuseFailAlloc_1446_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1446_, 0, v_a_1431_); +lean_ctor_set(v_reuseFailAlloc_1446_, 0, v_a_1436_); v___x_1445_ = v_reuseFailAlloc_1446_; goto v_reusejp_1444_; } @@ -4666,34 +4656,61 @@ return v___x_1445_; } else { -lean_dec_ref(v_a_1431_); -lean_del_object(v___x_1433_); -v_as_x27_1406_ = v_tail_1417_; -v_b_1407_ = v___x_1435_; +lean_object* v_id_1447_; uint8_t v___x_1448_; +v_id_1447_ = lean_ctor_get(v_a_1436_, 0); +v___x_1448_ = l_Lean_instBEqInternalExceptionId_beq(v___x_1441_, v_id_1447_); +if (v___x_1448_ == 0) +{ +lean_object* v___x_1450_; +lean_dec(v_stx_1410_); +if (v_isShared_1439_ == 0) +{ +v___x_1450_ = v___x_1438_; +goto v_reusejp_1449_; +} +else +{ +lean_object* v_reuseFailAlloc_1451_; +v_reuseFailAlloc_1451_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1451_, 0, v_a_1436_); +v___x_1450_ = v_reuseFailAlloc_1451_; +goto v_reusejp_1449_; +} +v_reusejp_1449_: +{ +return v___x_1450_; +} +} +else +{ +lean_dec_ref(v_a_1436_); +lean_del_object(v___x_1438_); +v_as_x27_1411_ = v_tail_1422_; +v_b_1412_ = v___x_1440_; goto _start; } } } else { -lean_object* v___x_1449_; -lean_dec(v_stx_1405_); -if (v_isShared_1434_ == 0) +lean_object* v___x_1454_; +lean_dec(v_stx_1410_); +if (v_isShared_1439_ == 0) { -v___x_1449_ = v___x_1433_; -goto v_reusejp_1448_; +v___x_1454_ = v___x_1438_; +goto v_reusejp_1453_; } else { -lean_object* v_reuseFailAlloc_1450_; -v_reuseFailAlloc_1450_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1450_, 0, v_a_1431_); -v___x_1449_ = v_reuseFailAlloc_1450_; -goto v_reusejp_1448_; +lean_object* v_reuseFailAlloc_1455_; +v_reuseFailAlloc_1455_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1455_, 0, v_a_1436_); +v___x_1454_ = v_reuseFailAlloc_1455_; +goto v_reusejp_1453_; } -v_reusejp_1448_: +v_reusejp_1453_: { -return v___x_1449_; +return v___x_1454_; } } } @@ -4702,238 +4719,238 @@ return v___x_1449_; } } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___boxed(lean_object* v_stx_1454_, lean_object* v_as_x27_1455_, lean_object* v_b_1456_, lean_object* v___y_1457_, lean_object* v___y_1458_, lean_object* v___y_1459_, lean_object* v___y_1460_, lean_object* v___y_1461_, lean_object* v___y_1462_, lean_object* v___y_1463_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___boxed(lean_object* v_stx_1459_, lean_object* v_as_x27_1460_, lean_object* v_b_1461_, lean_object* v___y_1462_, lean_object* v___y_1463_, lean_object* v___y_1464_, lean_object* v___y_1465_, lean_object* v___y_1466_, lean_object* v___y_1467_, lean_object* v___y_1468_){ _start: { -lean_object* v_res_1464_; -v_res_1464_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_1454_, v_as_x27_1455_, v_b_1456_, v___y_1457_, v___y_1458_, v___y_1459_, v___y_1460_, v___y_1461_, v___y_1462_); -lean_dec(v___y_1462_); -lean_dec_ref(v___y_1461_); -lean_dec(v___y_1460_); -lean_dec_ref(v___y_1459_); -lean_dec(v___y_1458_); -lean_dec_ref(v___y_1457_); -lean_dec(v_as_x27_1455_); -return v_res_1464_; +lean_object* v_res_1469_; +v_res_1469_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_1459_, v_as_x27_1460_, v_b_1461_, v___y_1462_, v___y_1463_, v___y_1464_, v___y_1465_, v___y_1466_, v___y_1467_); +lean_dec(v___y_1467_); +lean_dec_ref(v___y_1466_); +lean_dec(v___y_1465_); +lean_dec_ref(v___y_1464_); +lean_dec(v___y_1463_); +lean_dec_ref(v___y_1462_); +lean_dec(v_as_x27_1460_); +return v_res_1469_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(lean_object* v_reassigned_1467_, lean_object* v_rhs_x3f_1468_, lean_object* v_otherwise_x3f_1469_, lean_object* v_body_x3f_1470_, lean_object* v_a_1471_, lean_object* v_a_1472_, lean_object* v_a_1473_, lean_object* v_a_1474_, lean_object* v_a_1475_, lean_object* v_a_1476_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(lean_object* v_reassigned_1472_, lean_object* v_rhs_x3f_1473_, lean_object* v_otherwise_x3f_1474_, lean_object* v_body_x3f_1475_, lean_object* v_a_1476_, lean_object* v_a_1477_, lean_object* v_a_1478_, lean_object* v_a_1479_, lean_object* v_a_1480_, lean_object* v_a_1481_){ _start: { -lean_object* v___y_1479_; uint8_t v___y_1480_; uint8_t v___y_1481_; uint8_t v___y_1482_; lean_object* v___y_1483_; lean_object* v___y_1487_; lean_object* v___y_1488_; lean_object* v_body_1489_; lean_object* v___y_1509_; lean_object* v_otherwise_1510_; lean_object* v___y_1511_; lean_object* v___y_1512_; lean_object* v___y_1513_; lean_object* v___y_1514_; lean_object* v___y_1515_; lean_object* v___y_1516_; lean_object* v_rhs_1522_; lean_object* v___y_1523_; lean_object* v___y_1524_; lean_object* v___y_1525_; lean_object* v___y_1526_; lean_object* v___y_1527_; lean_object* v___y_1528_; -if (lean_obj_tag(v_rhs_x3f_1468_) == 0) +uint8_t v___y_1484_; uint8_t v___y_1485_; lean_object* v___y_1486_; uint8_t v___y_1487_; lean_object* v___y_1488_; lean_object* v___y_1492_; lean_object* v___y_1493_; lean_object* v_body_1494_; lean_object* v___y_1514_; lean_object* v_otherwise_1515_; lean_object* v___y_1516_; lean_object* v___y_1517_; lean_object* v___y_1518_; lean_object* v___y_1519_; lean_object* v___y_1520_; lean_object* v___y_1521_; lean_object* v_rhs_1527_; lean_object* v___y_1528_; lean_object* v___y_1529_; lean_object* v___y_1530_; lean_object* v___y_1531_; lean_object* v___y_1532_; lean_object* v___y_1533_; +if (lean_obj_tag(v_rhs_x3f_1473_) == 0) { -lean_object* v___x_1533_; -v___x_1533_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); -v_rhs_1522_ = v___x_1533_; -v___y_1523_ = v_a_1471_; -v___y_1524_ = v_a_1472_; -v___y_1525_ = v_a_1473_; -v___y_1526_ = v_a_1474_; -v___y_1527_ = v_a_1475_; +lean_object* v___x_1538_; +v___x_1538_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); +v_rhs_1527_ = v___x_1538_; v___y_1528_ = v_a_1476_; -goto v___jp_1521_; +v___y_1529_ = v_a_1477_; +v___y_1530_ = v_a_1478_; +v___y_1531_ = v_a_1479_; +v___y_1532_ = v_a_1480_; +v___y_1533_ = v_a_1481_; +goto v___jp_1526_; } else { -lean_object* v_val_1534_; lean_object* v___x_1535_; -v_val_1534_ = lean_ctor_get(v_rhs_x3f_1468_, 0); -lean_inc(v_val_1534_); -lean_dec_ref(v_rhs_x3f_1468_); -v___x_1535_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_val_1534_, v_a_1471_, v_a_1472_, v_a_1473_, v_a_1474_, v_a_1475_, v_a_1476_); -if (lean_obj_tag(v___x_1535_) == 0) +lean_object* v_val_1539_; lean_object* v___x_1540_; +v_val_1539_ = lean_ctor_get(v_rhs_x3f_1473_, 0); +lean_inc(v_val_1539_); +lean_dec_ref(v_rhs_x3f_1473_); +v___x_1540_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_val_1539_, v_a_1476_, v_a_1477_, v_a_1478_, v_a_1479_, v_a_1480_, v_a_1481_); +if (lean_obj_tag(v___x_1540_) == 0) { -lean_object* v_a_1536_; -v_a_1536_ = lean_ctor_get(v___x_1535_, 0); -lean_inc(v_a_1536_); -lean_dec_ref(v___x_1535_); -v_rhs_1522_ = v_a_1536_; -v___y_1523_ = v_a_1471_; -v___y_1524_ = v_a_1472_; -v___y_1525_ = v_a_1473_; -v___y_1526_ = v_a_1474_; -v___y_1527_ = v_a_1475_; +lean_object* v_a_1541_; +v_a_1541_ = lean_ctor_get(v___x_1540_, 0); +lean_inc(v_a_1541_); +lean_dec_ref(v___x_1540_); +v_rhs_1527_ = v_a_1541_; v___y_1528_ = v_a_1476_; -goto v___jp_1521_; +v___y_1529_ = v_a_1477_; +v___y_1530_ = v_a_1478_; +v___y_1531_ = v_a_1479_; +v___y_1532_ = v_a_1480_; +v___y_1533_ = v_a_1481_; +goto v___jp_1526_; } else { -lean_dec(v_body_x3f_1470_); -lean_dec(v_otherwise_x3f_1469_); -lean_dec_ref(v_reassigned_1467_); -return v___x_1535_; +lean_dec(v_body_x3f_1475_); +lean_dec(v_otherwise_x3f_1474_); +lean_dec_ref(v_reassigned_1472_); +return v___x_1540_; } } -v___jp_1478_: +v___jp_1483_: { -lean_object* v___x_1484_; lean_object* v___x_1485_; -v___x_1484_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_1484_, 0, v___y_1479_); -lean_ctor_set(v___x_1484_, 1, v___y_1483_); -lean_ctor_set_uint8(v___x_1484_, sizeof(void*)*2, v___y_1481_); -lean_ctor_set_uint8(v___x_1484_, sizeof(void*)*2 + 1, v___y_1482_); -lean_ctor_set_uint8(v___x_1484_, sizeof(void*)*2 + 2, v___y_1480_); -v___x_1485_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1485_, 0, v___x_1484_); -return v___x_1485_; +lean_object* v___x_1489_; lean_object* v___x_1490_; +v___x_1489_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_1489_, 0, v___y_1486_); +lean_ctor_set(v___x_1489_, 1, v___y_1488_); +lean_ctor_set_uint8(v___x_1489_, sizeof(void*)*2, v___y_1487_); +lean_ctor_set_uint8(v___x_1489_, sizeof(void*)*2 + 1, v___y_1485_); +lean_ctor_set_uint8(v___x_1489_, sizeof(void*)*2 + 2, v___y_1484_); +v___x_1490_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1490_, 0, v___x_1489_); +return v___x_1490_; } -v___jp_1486_: +v___jp_1491_: { -lean_object* v___x_1490_; lean_object* v_info_1491_; uint8_t v_breaks_1492_; uint8_t v_continues_1493_; uint8_t v_returnsEarly_1494_; lean_object* v_numRegularExits_1495_; lean_object* v_reassigns_1496_; size_t v_sz_1497_; size_t v___x_1498_; lean_object* v___x_1499_; lean_object* v___x_1500_; lean_object* v___x_1501_; uint8_t v___x_1502_; -v___x_1490_ = l_Lean_Elab_Do_ControlInfo_alternative(v_body_1489_, v___y_1487_); -v_info_1491_ = l_Lean_Elab_Do_ControlInfo_sequence(v___y_1488_, v___x_1490_); -v_breaks_1492_ = lean_ctor_get_uint8(v_info_1491_, sizeof(void*)*2); -v_continues_1493_ = lean_ctor_get_uint8(v_info_1491_, sizeof(void*)*2 + 1); -v_returnsEarly_1494_ = lean_ctor_get_uint8(v_info_1491_, sizeof(void*)*2 + 2); -v_numRegularExits_1495_ = lean_ctor_get(v_info_1491_, 0); -lean_inc(v_numRegularExits_1495_); -v_reassigns_1496_ = lean_ctor_get(v_info_1491_, 1); -lean_inc(v_reassigns_1496_); -lean_dec_ref(v_info_1491_); -v_sz_1497_ = lean_array_size(v_reassigned_1467_); -v___x_1498_ = ((size_t)0ULL); -v___x_1499_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(v_sz_1497_, v___x_1498_, v_reassigned_1467_); -v___x_1500_ = lean_unsigned_to_nat(0u); -v___x_1501_ = lean_array_get_size(v___x_1499_); -v___x_1502_ = lean_nat_dec_lt(v___x_1500_, v___x_1501_); -if (v___x_1502_ == 0) +lean_object* v___x_1495_; lean_object* v_info_1496_; uint8_t v_breaks_1497_; uint8_t v_continues_1498_; uint8_t v_returnsEarly_1499_; lean_object* v_numRegularExits_1500_; lean_object* v_reassigns_1501_; size_t v_sz_1502_; size_t v___x_1503_; lean_object* v___x_1504_; lean_object* v___x_1505_; lean_object* v___x_1506_; uint8_t v___x_1507_; +v___x_1495_ = l_Lean_Elab_Do_ControlInfo_alternative(v_body_1494_, v___y_1492_); +v_info_1496_ = l_Lean_Elab_Do_ControlInfo_sequence(v___y_1493_, v___x_1495_); +v_breaks_1497_ = lean_ctor_get_uint8(v_info_1496_, sizeof(void*)*2); +v_continues_1498_ = lean_ctor_get_uint8(v_info_1496_, sizeof(void*)*2 + 1); +v_returnsEarly_1499_ = lean_ctor_get_uint8(v_info_1496_, sizeof(void*)*2 + 2); +v_numRegularExits_1500_ = lean_ctor_get(v_info_1496_, 0); +lean_inc(v_numRegularExits_1500_); +v_reassigns_1501_ = lean_ctor_get(v_info_1496_, 1); +lean_inc(v_reassigns_1501_); +lean_dec_ref(v_info_1496_); +v_sz_1502_ = lean_array_size(v_reassigned_1472_); +v___x_1503_ = ((size_t)0ULL); +v___x_1504_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__20(v_sz_1502_, v___x_1503_, v_reassigned_1472_); +v___x_1505_ = lean_unsigned_to_nat(0u); +v___x_1506_ = lean_array_get_size(v___x_1504_); +v___x_1507_ = lean_nat_dec_lt(v___x_1505_, v___x_1506_); +if (v___x_1507_ == 0) { -lean_dec_ref(v___x_1499_); -v___y_1479_ = v_numRegularExits_1495_; -v___y_1480_ = v_returnsEarly_1494_; -v___y_1481_ = v_breaks_1492_; -v___y_1482_ = v_continues_1493_; -v___y_1483_ = v_reassigns_1496_; -goto v___jp_1478_; +lean_dec_ref(v___x_1504_); +v___y_1484_ = v_returnsEarly_1499_; +v___y_1485_ = v_continues_1498_; +v___y_1486_ = v_numRegularExits_1500_; +v___y_1487_ = v_breaks_1497_; +v___y_1488_ = v_reassigns_1501_; +goto v___jp_1483_; } else { -uint8_t v___x_1503_; -v___x_1503_ = lean_nat_dec_le(v___x_1501_, v___x_1501_); -if (v___x_1503_ == 0) +uint8_t v___x_1508_; +v___x_1508_ = lean_nat_dec_le(v___x_1506_, v___x_1506_); +if (v___x_1508_ == 0) { -if (v___x_1502_ == 0) +if (v___x_1507_ == 0) { -lean_dec_ref(v___x_1499_); -v___y_1479_ = v_numRegularExits_1495_; -v___y_1480_ = v_returnsEarly_1494_; -v___y_1481_ = v_breaks_1492_; -v___y_1482_ = v_continues_1493_; -v___y_1483_ = v_reassigns_1496_; -goto v___jp_1478_; +lean_dec_ref(v___x_1504_); +v___y_1484_ = v_returnsEarly_1499_; +v___y_1485_ = v_continues_1498_; +v___y_1486_ = v_numRegularExits_1500_; +v___y_1487_ = v_breaks_1497_; +v___y_1488_ = v_reassigns_1501_; +goto v___jp_1483_; } else { -size_t v___x_1504_; lean_object* v___x_1505_; -v___x_1504_ = lean_usize_of_nat(v___x_1501_); -v___x_1505_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v___x_1499_, v___x_1498_, v___x_1504_, v_reassigns_1496_); -lean_dec_ref(v___x_1499_); -v___y_1479_ = v_numRegularExits_1495_; -v___y_1480_ = v_returnsEarly_1494_; -v___y_1481_ = v_breaks_1492_; -v___y_1482_ = v_continues_1493_; -v___y_1483_ = v___x_1505_; -goto v___jp_1478_; +size_t v___x_1509_; lean_object* v___x_1510_; +v___x_1509_ = lean_usize_of_nat(v___x_1506_); +v___x_1510_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v___x_1504_, v___x_1503_, v___x_1509_, v_reassigns_1501_); +lean_dec_ref(v___x_1504_); +v___y_1484_ = v_returnsEarly_1499_; +v___y_1485_ = v_continues_1498_; +v___y_1486_ = v_numRegularExits_1500_; +v___y_1487_ = v_breaks_1497_; +v___y_1488_ = v___x_1510_; +goto v___jp_1483_; } } else { -size_t v___x_1506_; lean_object* v___x_1507_; -v___x_1506_ = lean_usize_of_nat(v___x_1501_); -v___x_1507_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v___x_1499_, v___x_1498_, v___x_1506_, v_reassigns_1496_); -lean_dec_ref(v___x_1499_); -v___y_1479_ = v_numRegularExits_1495_; -v___y_1480_ = v_returnsEarly_1494_; -v___y_1481_ = v_breaks_1492_; -v___y_1482_ = v_continues_1493_; -v___y_1483_ = v___x_1507_; -goto v___jp_1478_; +size_t v___x_1511_; lean_object* v___x_1512_; +v___x_1511_ = lean_usize_of_nat(v___x_1506_); +v___x_1512_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofLetOrReassign_spec__21(v___x_1504_, v___x_1503_, v___x_1511_, v_reassigns_1501_); +lean_dec_ref(v___x_1504_); +v___y_1484_ = v_returnsEarly_1499_; +v___y_1485_ = v_continues_1498_; +v___y_1486_ = v_numRegularExits_1500_; +v___y_1487_ = v_breaks_1497_; +v___y_1488_ = v___x_1512_; +goto v___jp_1483_; } } } -v___jp_1508_: +v___jp_1513_: { -if (lean_obj_tag(v_body_x3f_1470_) == 0) +if (lean_obj_tag(v_body_x3f_1475_) == 0) { -lean_object* v___x_1517_; -v___x_1517_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); -v___y_1487_ = v_otherwise_1510_; -v___y_1488_ = v___y_1509_; -v_body_1489_ = v___x_1517_; -goto v___jp_1486_; +lean_object* v___x_1522_; +v___x_1522_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); +v___y_1492_ = v_otherwise_1515_; +v___y_1493_ = v___y_1514_; +v_body_1494_ = v___x_1522_; +goto v___jp_1491_; } else { -lean_object* v_val_1518_; lean_object* v___x_1519_; -v_val_1518_ = lean_ctor_get(v_body_x3f_1470_, 0); -lean_inc(v_val_1518_); -lean_dec_ref(v_body_x3f_1470_); -v___x_1519_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_1518_, v___y_1511_, v___y_1512_, v___y_1513_, v___y_1514_, v___y_1515_, v___y_1516_); -if (lean_obj_tag(v___x_1519_) == 0) +lean_object* v_val_1523_; lean_object* v___x_1524_; +v_val_1523_ = lean_ctor_get(v_body_x3f_1475_, 0); +lean_inc(v_val_1523_); +lean_dec_ref(v_body_x3f_1475_); +v___x_1524_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_1523_, v___y_1516_, v___y_1517_, v___y_1518_, v___y_1519_, v___y_1520_, v___y_1521_); +if (lean_obj_tag(v___x_1524_) == 0) { -lean_object* v_a_1520_; -v_a_1520_ = lean_ctor_get(v___x_1519_, 0); -lean_inc(v_a_1520_); -lean_dec_ref(v___x_1519_); -v___y_1487_ = v_otherwise_1510_; -v___y_1488_ = v___y_1509_; -v_body_1489_ = v_a_1520_; -goto v___jp_1486_; +lean_object* v_a_1525_; +v_a_1525_ = lean_ctor_get(v___x_1524_, 0); +lean_inc(v_a_1525_); +lean_dec_ref(v___x_1524_); +v___y_1492_ = v_otherwise_1515_; +v___y_1493_ = v___y_1514_; +v_body_1494_ = v_a_1525_; +goto v___jp_1491_; } else { -lean_dec_ref(v_otherwise_1510_); -lean_dec_ref(v___y_1509_); -lean_dec_ref(v_reassigned_1467_); -return v___x_1519_; +lean_dec_ref(v_otherwise_1515_); +lean_dec_ref(v___y_1514_); +lean_dec_ref(v_reassigned_1472_); +return v___x_1524_; } } } -v___jp_1521_: +v___jp_1526_: { -if (lean_obj_tag(v_otherwise_x3f_1469_) == 0) +if (lean_obj_tag(v_otherwise_x3f_1474_) == 0) { -lean_object* v___x_1529_; -v___x_1529_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); -v___y_1509_ = v_rhs_1522_; -v_otherwise_1510_ = v___x_1529_; -v___y_1511_ = v___y_1523_; -v___y_1512_ = v___y_1524_; -v___y_1513_ = v___y_1525_; -v___y_1514_ = v___y_1526_; -v___y_1515_ = v___y_1527_; +lean_object* v___x_1534_; +v___x_1534_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); +v___y_1514_ = v_rhs_1527_; +v_otherwise_1515_ = v___x_1534_; v___y_1516_ = v___y_1528_; -goto v___jp_1508_; +v___y_1517_ = v___y_1529_; +v___y_1518_ = v___y_1530_; +v___y_1519_ = v___y_1531_; +v___y_1520_ = v___y_1532_; +v___y_1521_ = v___y_1533_; +goto v___jp_1513_; } else { -lean_object* v_val_1530_; lean_object* v___x_1531_; -v_val_1530_ = lean_ctor_get(v_otherwise_x3f_1469_, 0); -lean_inc(v_val_1530_); -lean_dec_ref(v_otherwise_x3f_1469_); -v___x_1531_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_1530_, v___y_1523_, v___y_1524_, v___y_1525_, v___y_1526_, v___y_1527_, v___y_1528_); -if (lean_obj_tag(v___x_1531_) == 0) +lean_object* v_val_1535_; lean_object* v___x_1536_; +v_val_1535_ = lean_ctor_get(v_otherwise_x3f_1474_, 0); +lean_inc(v_val_1535_); +lean_dec_ref(v_otherwise_x3f_1474_); +v___x_1536_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_1535_, v___y_1528_, v___y_1529_, v___y_1530_, v___y_1531_, v___y_1532_, v___y_1533_); +if (lean_obj_tag(v___x_1536_) == 0) { -lean_object* v_a_1532_; -v_a_1532_ = lean_ctor_get(v___x_1531_, 0); -lean_inc(v_a_1532_); -lean_dec_ref(v___x_1531_); -v___y_1509_ = v_rhs_1522_; -v_otherwise_1510_ = v_a_1532_; -v___y_1511_ = v___y_1523_; -v___y_1512_ = v___y_1524_; -v___y_1513_ = v___y_1525_; -v___y_1514_ = v___y_1526_; -v___y_1515_ = v___y_1527_; +lean_object* v_a_1537_; +v_a_1537_ = lean_ctor_get(v___x_1536_, 0); +lean_inc(v_a_1537_); +lean_dec_ref(v___x_1536_); +v___y_1514_ = v_rhs_1527_; +v_otherwise_1515_ = v_a_1537_; v___y_1516_ = v___y_1528_; -goto v___jp_1508_; +v___y_1517_ = v___y_1529_; +v___y_1518_ = v___y_1530_; +v___y_1519_ = v___y_1531_; +v___y_1520_ = v___y_1532_; +v___y_1521_ = v___y_1533_; +goto v___jp_1513_; } else { -lean_dec_ref(v_rhs_1522_); -lean_dec(v_body_x3f_1470_); -lean_dec_ref(v_reassigned_1467_); -return v___x_1531_; +lean_dec_ref(v_rhs_1527_); +lean_dec(v_body_x3f_1475_); +lean_dec_ref(v_reassigned_1472_); +return v___x_1536_; } } } @@ -4942,586 +4959,586 @@ return v___x_1531_; static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3(void){ _start: { -lean_object* v___x_1544_; lean_object* v___x_1545_; -v___x_1544_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__2)); -v___x_1545_ = l_Lean_stringToMessageData(v___x_1544_); -return v___x_1545_; +lean_object* v___x_1549_; lean_object* v___x_1550_; +v___x_1549_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__2)); +v___x_1550_ = l_Lean_stringToMessageData(v___x_1549_); +return v___x_1550_; } } static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5(void){ _start: { -lean_object* v___x_1547_; lean_object* v___x_1548_; -v___x_1547_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__4)); -v___x_1548_ = l_Lean_stringToMessageData(v___x_1547_); -return v___x_1548_; +lean_object* v___x_1552_; lean_object* v___x_1553_; +v___x_1552_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__4)); +v___x_1553_ = l_Lean_stringToMessageData(v___x_1552_); +return v___x_1553_; } } static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7(void){ _start: { -lean_object* v___x_1550_; lean_object* v___x_1551_; -v___x_1550_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__6)); -v___x_1551_ = l_Lean_stringToMessageData(v___x_1550_); -return v___x_1551_; +lean_object* v___x_1555_; lean_object* v___x_1556_; +v___x_1555_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__6)); +v___x_1556_ = l_Lean_stringToMessageData(v___x_1555_); +return v___x_1556_; } } static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9(void){ _start: { -lean_object* v___x_1553_; lean_object* v___x_1554_; -v___x_1553_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__8)); -v___x_1554_ = l_Lean_stringToMessageData(v___x_1553_); -return v___x_1554_; +lean_object* v___x_1558_; lean_object* v___x_1559_; +v___x_1558_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__8)); +v___x_1559_ = l_Lean_stringToMessageData(v___x_1558_); +return v___x_1559_; } } static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5(void){ _start: { -lean_object* v___x_1628_; lean_object* v___x_1629_; -v___x_1628_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__4)); -v___x_1629_ = l_Lean_stringToMessageData(v___x_1628_); -return v___x_1629_; +lean_object* v___x_1633_; lean_object* v___x_1634_; +v___x_1633_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__4)); +v___x_1634_ = l_Lean_stringToMessageData(v___x_1633_); +return v___x_1634_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(uint8_t v_reassignment_1639_, lean_object* v_decl_1640_, lean_object* v_a_1641_, lean_object* v_a_1642_, lean_object* v_a_1643_, lean_object* v_a_1644_, lean_object* v_a_1645_, lean_object* v_a_1646_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(uint8_t v_reassignment_1644_, lean_object* v_decl_1645_, lean_object* v_a_1646_, lean_object* v_a_1647_, lean_object* v_a_1648_, lean_object* v_a_1649_, lean_object* v_a_1650_, lean_object* v_a_1651_){ _start: { -lean_object* v___y_1649_; lean_object* v___y_1650_; lean_object* v___y_1651_; lean_object* v___y_1652_; lean_object* v___y_1653_; lean_object* v___y_1654_; lean_object* v___y_1655_; lean_object* v___y_1656_; lean_object* v___y_1661_; lean_object* v___y_1662_; lean_object* v___y_1663_; lean_object* v_reassigns_1664_; lean_object* v___y_1665_; lean_object* v___y_1666_; lean_object* v___y_1667_; lean_object* v___y_1668_; lean_object* v___y_1669_; lean_object* v___y_1670_; lean_object* v___x_1676_; uint8_t v___x_1677_; -v___x_1676_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__1)); -lean_inc(v_decl_1640_); -v___x_1677_ = l_Lean_Syntax_isOfKind(v_decl_1640_, v___x_1676_); -if (v___x_1677_ == 0) +lean_object* v___y_1654_; lean_object* v___y_1655_; lean_object* v___y_1656_; lean_object* v___y_1657_; lean_object* v___y_1658_; lean_object* v___y_1659_; lean_object* v___y_1660_; lean_object* v___y_1661_; lean_object* v___y_1666_; lean_object* v___y_1667_; lean_object* v___y_1668_; lean_object* v_reassigns_1669_; lean_object* v___y_1670_; lean_object* v___y_1671_; lean_object* v___y_1672_; lean_object* v___y_1673_; lean_object* v___y_1674_; lean_object* v___y_1675_; lean_object* v___x_1681_; uint8_t v___x_1682_; +v___x_1681_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__1)); +lean_inc(v_decl_1645_); +v___x_1682_ = l_Lean_Syntax_isOfKind(v_decl_1645_, v___x_1681_); +if (v___x_1682_ == 0) { -lean_object* v___x_1678_; uint8_t v___x_1679_; -v___x_1678_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__3)); -lean_inc(v_decl_1640_); -v___x_1679_ = l_Lean_Syntax_isOfKind(v_decl_1640_, v___x_1678_); -if (v___x_1679_ == 0) +lean_object* v___x_1683_; uint8_t v___x_1684_; +v___x_1683_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__3)); +lean_inc(v_decl_1645_); +v___x_1684_ = l_Lean_Syntax_isOfKind(v_decl_1645_, v___x_1683_); +if (v___x_1684_ == 0) { -lean_object* v___x_1680_; lean_object* v___x_1681_; lean_object* v___x_1682_; lean_object* v___x_1683_; lean_object* v___x_1684_; lean_object* v___x_1685_; lean_object* v___x_1686_; lean_object* v___x_1687_; lean_object* v___x_1688_; -v___x_1680_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1681_ = lean_box(0); -v___x_1682_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1681_, v___x_1679_); -v___x_1683_ = l_Std_Format_defWidth; -v___x_1684_ = lean_unsigned_to_nat(0u); -v___x_1685_ = l_Std_Format_pretty(v___x_1682_, v___x_1683_, v___x_1684_, v___x_1684_); -v___x_1686_ = l_Lean_stringToMessageData(v___x_1685_); -v___x_1687_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1687_, 0, v___x_1680_); -lean_ctor_set(v___x_1687_, 1, v___x_1686_); -v___x_1688_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1687_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1688_; -} -else -{ -lean_object* v___x_1689_; lean_object* v_pattern_1690_; lean_object* v___y_1692_; lean_object* v_otherwise_x3f_1693_; lean_object* v_body_x3f_x3f_1694_; lean_object* v___y_1695_; lean_object* v___y_1696_; lean_object* v___y_1697_; lean_object* v___y_1698_; lean_object* v___y_1699_; lean_object* v___y_1700_; lean_object* v___y_1713_; lean_object* v___y_1714_; lean_object* v_body_x3f_x3f_1715_; lean_object* v___y_1716_; lean_object* v___y_1717_; lean_object* v___y_1718_; lean_object* v___y_1719_; lean_object* v___y_1720_; lean_object* v___y_1721_; lean_object* v___x_1724_; lean_object* v___y_1726_; lean_object* v___y_1727_; lean_object* v___y_1728_; lean_object* v___y_1729_; lean_object* v___y_1730_; lean_object* v___y_1731_; lean_object* v___x_1763_; uint8_t v___x_1764_; +lean_object* v___x_1685_; lean_object* v___x_1686_; lean_object* v___x_1687_; lean_object* v___x_1688_; lean_object* v___x_1689_; lean_object* v___x_1690_; lean_object* v___x_1691_; lean_object* v___x_1692_; lean_object* v___x_1693_; +v___x_1685_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1686_ = lean_box(0); +v___x_1687_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1686_, v___x_1684_); +v___x_1688_ = l_Std_Format_defWidth; v___x_1689_ = lean_unsigned_to_nat(0u); -v_pattern_1690_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1689_); -v___x_1724_ = lean_unsigned_to_nat(1u); -v___x_1763_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1724_); -v___x_1764_ = l_Lean_Syntax_isNone(v___x_1763_); -if (v___x_1764_ == 0) -{ -uint8_t v___x_1765_; -lean_inc(v___x_1763_); -v___x_1765_ = l_Lean_Syntax_matchesNull(v___x_1763_, v___x_1724_); -if (v___x_1765_ == 0) -{ -lean_object* v___x_1766_; lean_object* v___x_1767_; lean_object* v___x_1768_; lean_object* v___x_1769_; lean_object* v___x_1770_; lean_object* v___x_1771_; lean_object* v___x_1772_; lean_object* v___x_1773_; -lean_dec(v___x_1763_); -lean_dec(v_pattern_1690_); -v___x_1766_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1767_ = lean_box(0); -v___x_1768_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1767_, v___x_1765_); -v___x_1769_ = l_Std_Format_defWidth; -v___x_1770_ = l_Std_Format_pretty(v___x_1768_, v___x_1769_, v___x_1689_, v___x_1689_); -v___x_1771_ = l_Lean_stringToMessageData(v___x_1770_); -v___x_1772_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1772_, 0, v___x_1766_); -lean_ctor_set(v___x_1772_, 1, v___x_1771_); -v___x_1773_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1772_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1773_; +v___x_1690_ = l_Std_Format_pretty(v___x_1687_, v___x_1688_, v___x_1689_, v___x_1689_); +v___x_1691_ = l_Lean_stringToMessageData(v___x_1690_); +v___x_1692_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1692_, 0, v___x_1685_); +lean_ctor_set(v___x_1692_, 1, v___x_1691_); +v___x_1693_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1692_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1693_; } else { -lean_object* v___x_1774_; lean_object* v___x_1775_; uint8_t v___x_1776_; -v___x_1774_ = l_Lean_Syntax_getArg(v___x_1763_, v___x_1689_); -lean_dec(v___x_1763_); -v___x_1775_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__8)); -v___x_1776_ = l_Lean_Syntax_isOfKind(v___x_1774_, v___x_1775_); -if (v___x_1776_ == 0) +lean_object* v___x_1694_; lean_object* v_pattern_1695_; lean_object* v___y_1697_; lean_object* v_otherwise_x3f_1698_; lean_object* v_body_x3f_x3f_1699_; lean_object* v___y_1700_; lean_object* v___y_1701_; lean_object* v___y_1702_; lean_object* v___y_1703_; lean_object* v___y_1704_; lean_object* v___y_1705_; lean_object* v___y_1718_; lean_object* v___y_1719_; lean_object* v_body_x3f_x3f_1720_; lean_object* v___y_1721_; lean_object* v___y_1722_; lean_object* v___y_1723_; lean_object* v___y_1724_; lean_object* v___y_1725_; lean_object* v___y_1726_; lean_object* v___x_1729_; lean_object* v___y_1731_; lean_object* v___y_1732_; lean_object* v___y_1733_; lean_object* v___y_1734_; lean_object* v___y_1735_; lean_object* v___y_1736_; lean_object* v___x_1768_; uint8_t v___x_1769_; +v___x_1694_ = lean_unsigned_to_nat(0u); +v_pattern_1695_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1694_); +v___x_1729_ = lean_unsigned_to_nat(1u); +v___x_1768_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1729_); +v___x_1769_ = l_Lean_Syntax_isNone(v___x_1768_); +if (v___x_1769_ == 0) { -lean_object* v___x_1777_; lean_object* v___x_1778_; lean_object* v___x_1779_; lean_object* v___x_1780_; lean_object* v___x_1781_; lean_object* v___x_1782_; lean_object* v___x_1783_; lean_object* v___x_1784_; -lean_dec(v_pattern_1690_); -v___x_1777_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1778_ = lean_box(0); -v___x_1779_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1778_, v___x_1776_); -v___x_1780_ = l_Std_Format_defWidth; -v___x_1781_ = l_Std_Format_pretty(v___x_1779_, v___x_1780_, v___x_1689_, v___x_1689_); -v___x_1782_ = l_Lean_stringToMessageData(v___x_1781_); -v___x_1783_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1783_, 0, v___x_1777_); -lean_ctor_set(v___x_1783_, 1, v___x_1782_); -v___x_1784_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1783_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1784_; +uint8_t v___x_1770_; +lean_inc(v___x_1768_); +v___x_1770_ = l_Lean_Syntax_matchesNull(v___x_1768_, v___x_1729_); +if (v___x_1770_ == 0) +{ +lean_object* v___x_1771_; lean_object* v___x_1772_; lean_object* v___x_1773_; lean_object* v___x_1774_; lean_object* v___x_1775_; lean_object* v___x_1776_; lean_object* v___x_1777_; lean_object* v___x_1778_; +lean_dec(v___x_1768_); +lean_dec(v_pattern_1695_); +v___x_1771_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1772_ = lean_box(0); +v___x_1773_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1772_, v___x_1770_); +v___x_1774_ = l_Std_Format_defWidth; +v___x_1775_ = l_Std_Format_pretty(v___x_1773_, v___x_1774_, v___x_1694_, v___x_1694_); +v___x_1776_ = l_Lean_stringToMessageData(v___x_1775_); +v___x_1777_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1777_, 0, v___x_1771_); +lean_ctor_set(v___x_1777_, 1, v___x_1776_); +v___x_1778_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1777_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1778_; +} +else +{ +lean_object* v___x_1779_; lean_object* v___x_1780_; uint8_t v___x_1781_; +v___x_1779_ = l_Lean_Syntax_getArg(v___x_1768_, v___x_1694_); +lean_dec(v___x_1768_); +v___x_1780_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__8)); +v___x_1781_ = l_Lean_Syntax_isOfKind(v___x_1779_, v___x_1780_); +if (v___x_1781_ == 0) +{ +lean_object* v___x_1782_; lean_object* v___x_1783_; lean_object* v___x_1784_; lean_object* v___x_1785_; lean_object* v___x_1786_; lean_object* v___x_1787_; lean_object* v___x_1788_; lean_object* v___x_1789_; +lean_dec(v_pattern_1695_); +v___x_1782_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1783_ = lean_box(0); +v___x_1784_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1783_, v___x_1781_); +v___x_1785_ = l_Std_Format_defWidth; +v___x_1786_ = l_Std_Format_pretty(v___x_1784_, v___x_1785_, v___x_1694_, v___x_1694_); +v___x_1787_ = l_Lean_stringToMessageData(v___x_1786_); +v___x_1788_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1788_, 0, v___x_1782_); +lean_ctor_set(v___x_1788_, 1, v___x_1787_); +v___x_1789_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1788_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1789_; } else { -v___y_1726_ = v_a_1641_; -v___y_1727_ = v_a_1642_; -v___y_1728_ = v_a_1643_; -v___y_1729_ = v_a_1644_; -v___y_1730_ = v_a_1645_; v___y_1731_ = v_a_1646_; -goto v___jp_1725_; +v___y_1732_ = v_a_1647_; +v___y_1733_ = v_a_1648_; +v___y_1734_ = v_a_1649_; +v___y_1735_ = v_a_1650_; +v___y_1736_ = v_a_1651_; +goto v___jp_1730_; } } } else { -lean_dec(v___x_1763_); -v___y_1726_ = v_a_1641_; -v___y_1727_ = v_a_1642_; -v___y_1728_ = v_a_1643_; -v___y_1729_ = v_a_1644_; -v___y_1730_ = v_a_1645_; +lean_dec(v___x_1768_); v___y_1731_ = v_a_1646_; -goto v___jp_1725_; +v___y_1732_ = v_a_1647_; +v___y_1733_ = v_a_1648_; +v___y_1734_ = v_a_1649_; +v___y_1735_ = v_a_1650_; +v___y_1736_ = v_a_1651_; +goto v___jp_1730_; } -v___jp_1691_: +v___jp_1696_: { -if (v_reassignment_1639_ == 0) +if (v_reassignment_1644_ == 0) { -lean_object* v___x_1701_; -lean_dec(v_pattern_1690_); -v___x_1701_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); -v___y_1661_ = v_body_x3f_x3f_1694_; -v___y_1662_ = v_otherwise_x3f_1693_; -v___y_1663_ = v___y_1692_; -v_reassigns_1664_ = v___x_1701_; -v___y_1665_ = v___y_1695_; -v___y_1666_ = v___y_1696_; +lean_object* v___x_1706_; +lean_dec(v_pattern_1695_); +v___x_1706_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); +v___y_1666_ = v_otherwise_x3f_1698_; v___y_1667_ = v___y_1697_; -v___y_1668_ = v___y_1698_; -v___y_1669_ = v___y_1699_; +v___y_1668_ = v_body_x3f_x3f_1699_; +v_reassigns_1669_ = v___x_1706_; v___y_1670_ = v___y_1700_; -goto v___jp_1660_; +v___y_1671_ = v___y_1701_; +v___y_1672_ = v___y_1702_; +v___y_1673_ = v___y_1703_; +v___y_1674_ = v___y_1704_; +v___y_1675_ = v___y_1705_; +goto v___jp_1665_; } else { -lean_object* v___x_1702_; -v___x_1702_ = l_Lean_Elab_Do_getPatternVarsEx(v_pattern_1690_, v___y_1695_, v___y_1696_, v___y_1697_, v___y_1698_, v___y_1699_, v___y_1700_); -if (lean_obj_tag(v___x_1702_) == 0) +lean_object* v___x_1707_; +v___x_1707_ = l_Lean_Elab_Do_getPatternVarsEx(v_pattern_1695_, v___y_1700_, v___y_1701_, v___y_1702_, v___y_1703_, v___y_1704_, v___y_1705_); +if (lean_obj_tag(v___x_1707_) == 0) { -lean_object* v_a_1703_; -v_a_1703_ = lean_ctor_get(v___x_1702_, 0); -lean_inc(v_a_1703_); -lean_dec_ref(v___x_1702_); -v___y_1661_ = v_body_x3f_x3f_1694_; -v___y_1662_ = v_otherwise_x3f_1693_; -v___y_1663_ = v___y_1692_; -v_reassigns_1664_ = v_a_1703_; -v___y_1665_ = v___y_1695_; -v___y_1666_ = v___y_1696_; +lean_object* v_a_1708_; +v_a_1708_ = lean_ctor_get(v___x_1707_, 0); +lean_inc(v_a_1708_); +lean_dec_ref(v___x_1707_); +v___y_1666_ = v_otherwise_x3f_1698_; v___y_1667_ = v___y_1697_; -v___y_1668_ = v___y_1698_; -v___y_1669_ = v___y_1699_; +v___y_1668_ = v_body_x3f_x3f_1699_; +v_reassigns_1669_ = v_a_1708_; v___y_1670_ = v___y_1700_; -goto v___jp_1660_; +v___y_1671_ = v___y_1701_; +v___y_1672_ = v___y_1702_; +v___y_1673_ = v___y_1703_; +v___y_1674_ = v___y_1704_; +v___y_1675_ = v___y_1705_; +goto v___jp_1665_; } else { -lean_object* v_a_1704_; lean_object* v___x_1706_; uint8_t v_isShared_1707_; uint8_t v_isSharedCheck_1711_; -lean_dec(v_body_x3f_x3f_1694_); -lean_dec(v_otherwise_x3f_1693_); -lean_dec(v___y_1692_); -v_a_1704_ = lean_ctor_get(v___x_1702_, 0); -v_isSharedCheck_1711_ = !lean_is_exclusive(v___x_1702_); -if (v_isSharedCheck_1711_ == 0) +lean_object* v_a_1709_; lean_object* v___x_1711_; uint8_t v_isShared_1712_; uint8_t v_isSharedCheck_1716_; +lean_dec(v_body_x3f_x3f_1699_); +lean_dec(v_otherwise_x3f_1698_); +lean_dec(v___y_1697_); +v_a_1709_ = lean_ctor_get(v___x_1707_, 0); +v_isSharedCheck_1716_ = !lean_is_exclusive(v___x_1707_); +if (v_isSharedCheck_1716_ == 0) { -v___x_1706_ = v___x_1702_; -v_isShared_1707_ = v_isSharedCheck_1711_; -goto v_resetjp_1705_; +v___x_1711_ = v___x_1707_; +v_isShared_1712_ = v_isSharedCheck_1716_; +goto v_resetjp_1710_; } else { -lean_inc(v_a_1704_); -lean_dec(v___x_1702_); -v___x_1706_ = lean_box(0); -v_isShared_1707_ = v_isSharedCheck_1711_; -goto v_resetjp_1705_; +lean_inc(v_a_1709_); +lean_dec(v___x_1707_); +v___x_1711_ = lean_box(0); +v_isShared_1712_ = v_isSharedCheck_1716_; +goto v_resetjp_1710_; } -v_resetjp_1705_: +v_resetjp_1710_: { -lean_object* v___x_1709_; -if (v_isShared_1707_ == 0) +lean_object* v___x_1714_; +if (v_isShared_1712_ == 0) { -v___x_1709_ = v___x_1706_; -goto v_reusejp_1708_; +v___x_1714_ = v___x_1711_; +goto v_reusejp_1713_; } else { -lean_object* v_reuseFailAlloc_1710_; -v_reuseFailAlloc_1710_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1710_, 0, v_a_1704_); -v___x_1709_ = v_reuseFailAlloc_1710_; -goto v_reusejp_1708_; +lean_object* v_reuseFailAlloc_1715_; +v_reuseFailAlloc_1715_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1715_, 0, v_a_1709_); +v___x_1714_ = v_reuseFailAlloc_1715_; +goto v_reusejp_1713_; } -v_reusejp_1708_: +v_reusejp_1713_: { -return v___x_1709_; +return v___x_1714_; } } } } } -v___jp_1712_: +v___jp_1717_: { -lean_object* v___x_1722_; lean_object* v___x_1723_; -v___x_1722_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1722_, 0, v___y_1713_); -v___x_1723_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1723_, 0, v_body_x3f_x3f_1715_); -v___y_1692_ = v___y_1714_; -v_otherwise_x3f_1693_ = v___x_1722_; -v_body_x3f_x3f_1694_ = v___x_1723_; -v___y_1695_ = v___y_1716_; -v___y_1696_ = v___y_1717_; +lean_object* v___x_1727_; lean_object* v___x_1728_; +v___x_1727_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1727_, 0, v___y_1719_); +v___x_1728_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1728_, 0, v_body_x3f_x3f_1720_); v___y_1697_ = v___y_1718_; -v___y_1698_ = v___y_1719_; -v___y_1699_ = v___y_1720_; +v_otherwise_x3f_1698_ = v___x_1727_; +v_body_x3f_x3f_1699_ = v___x_1728_; v___y_1700_ = v___y_1721_; -goto v___jp_1691_; +v___y_1701_ = v___y_1722_; +v___y_1702_ = v___y_1723_; +v___y_1703_ = v___y_1724_; +v___y_1704_ = v___y_1725_; +v___y_1705_ = v___y_1726_; +goto v___jp_1696_; } -v___jp_1725_: +v___jp_1730_: { -lean_object* v___x_1732_; lean_object* v_rhs_1733_; lean_object* v___x_1734_; lean_object* v___x_1735_; uint8_t v___x_1736_; -v___x_1732_ = lean_unsigned_to_nat(3u); -v_rhs_1733_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1732_); -v___x_1734_ = lean_unsigned_to_nat(4u); -v___x_1735_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1734_); -v___x_1736_ = l_Lean_Syntax_isNone(v___x_1735_); -if (v___x_1736_ == 0) +lean_object* v___x_1737_; lean_object* v_rhs_1738_; lean_object* v___x_1739_; lean_object* v___x_1740_; uint8_t v___x_1741_; +v___x_1737_ = lean_unsigned_to_nat(3u); +v_rhs_1738_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1737_); +v___x_1739_ = lean_unsigned_to_nat(4u); +v___x_1740_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1739_); +v___x_1741_ = l_Lean_Syntax_isNone(v___x_1740_); +if (v___x_1741_ == 0) { -uint8_t v___x_1737_; -lean_inc(v___x_1735_); -v___x_1737_ = l_Lean_Syntax_matchesNull(v___x_1735_, v___x_1732_); -if (v___x_1737_ == 0) +uint8_t v___x_1742_; +lean_inc(v___x_1740_); +v___x_1742_ = l_Lean_Syntax_matchesNull(v___x_1740_, v___x_1737_); +if (v___x_1742_ == 0) { -lean_object* v___x_1738_; lean_object* v___x_1739_; lean_object* v___x_1740_; lean_object* v___x_1741_; lean_object* v___x_1742_; lean_object* v___x_1743_; lean_object* v___x_1744_; lean_object* v___x_1745_; -lean_dec(v___x_1735_); -lean_dec(v_rhs_1733_); -lean_dec(v_pattern_1690_); -v___x_1738_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1739_ = lean_box(0); -v___x_1740_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1739_, v___x_1737_); -v___x_1741_ = l_Std_Format_defWidth; -v___x_1742_ = l_Std_Format_pretty(v___x_1740_, v___x_1741_, v___x_1689_, v___x_1689_); -v___x_1743_ = l_Lean_stringToMessageData(v___x_1742_); -v___x_1744_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1744_, 0, v___x_1738_); -lean_ctor_set(v___x_1744_, 1, v___x_1743_); -v___x_1745_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1744_, v___y_1726_, v___y_1727_, v___y_1728_, v___y_1729_, v___y_1730_, v___y_1731_); -return v___x_1745_; +lean_object* v___x_1743_; lean_object* v___x_1744_; lean_object* v___x_1745_; lean_object* v___x_1746_; lean_object* v___x_1747_; lean_object* v___x_1748_; lean_object* v___x_1749_; lean_object* v___x_1750_; +lean_dec(v___x_1740_); +lean_dec(v_rhs_1738_); +lean_dec(v_pattern_1695_); +v___x_1743_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1744_ = lean_box(0); +v___x_1745_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1744_, v___x_1742_); +v___x_1746_ = l_Std_Format_defWidth; +v___x_1747_ = l_Std_Format_pretty(v___x_1745_, v___x_1746_, v___x_1694_, v___x_1694_); +v___x_1748_ = l_Lean_stringToMessageData(v___x_1747_); +v___x_1749_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1749_, 0, v___x_1743_); +lean_ctor_set(v___x_1749_, 1, v___x_1748_); +v___x_1750_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1749_, v___y_1731_, v___y_1732_, v___y_1733_, v___y_1734_, v___y_1735_, v___y_1736_); +return v___x_1750_; } else { -lean_object* v___x_1746_; lean_object* v_otherwise_x3f_1747_; lean_object* v___x_1748_; uint8_t v___x_1749_; -v___x_1746_ = lean_unsigned_to_nat(2u); -v_otherwise_x3f_1747_ = l_Lean_Syntax_getArg(v___x_1735_, v___x_1724_); -v___x_1748_ = l_Lean_Syntax_getArg(v___x_1735_, v___x_1746_); -lean_dec(v___x_1735_); -v___x_1749_ = l_Lean_Syntax_isNone(v___x_1748_); -if (v___x_1749_ == 0) +lean_object* v___x_1751_; lean_object* v_otherwise_x3f_1752_; lean_object* v___x_1753_; uint8_t v___x_1754_; +v___x_1751_ = lean_unsigned_to_nat(2u); +v_otherwise_x3f_1752_ = l_Lean_Syntax_getArg(v___x_1740_, v___x_1729_); +v___x_1753_ = l_Lean_Syntax_getArg(v___x_1740_, v___x_1751_); +lean_dec(v___x_1740_); +v___x_1754_ = l_Lean_Syntax_isNone(v___x_1753_); +if (v___x_1754_ == 0) { -uint8_t v___x_1750_; -lean_inc(v___x_1748_); -v___x_1750_ = l_Lean_Syntax_matchesNull(v___x_1748_, v___x_1724_); -if (v___x_1750_ == 0) +uint8_t v___x_1755_; +lean_inc(v___x_1753_); +v___x_1755_ = l_Lean_Syntax_matchesNull(v___x_1753_, v___x_1729_); +if (v___x_1755_ == 0) { -lean_object* v___x_1751_; lean_object* v___x_1752_; lean_object* v___x_1753_; lean_object* v___x_1754_; lean_object* v___x_1755_; lean_object* v___x_1756_; lean_object* v___x_1757_; lean_object* v___x_1758_; -lean_dec(v___x_1748_); -lean_dec(v_otherwise_x3f_1747_); -lean_dec(v_rhs_1733_); -lean_dec(v_pattern_1690_); -v___x_1751_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1752_ = lean_box(0); -v___x_1753_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1752_, v___x_1750_); -v___x_1754_ = l_Std_Format_defWidth; -v___x_1755_ = l_Std_Format_pretty(v___x_1753_, v___x_1754_, v___x_1689_, v___x_1689_); -v___x_1756_ = l_Lean_stringToMessageData(v___x_1755_); -v___x_1757_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1757_, 0, v___x_1751_); -lean_ctor_set(v___x_1757_, 1, v___x_1756_); -v___x_1758_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1757_, v___y_1726_, v___y_1727_, v___y_1728_, v___y_1729_, v___y_1730_, v___y_1731_); -return v___x_1758_; +lean_object* v___x_1756_; lean_object* v___x_1757_; lean_object* v___x_1758_; lean_object* v___x_1759_; lean_object* v___x_1760_; lean_object* v___x_1761_; lean_object* v___x_1762_; lean_object* v___x_1763_; +lean_dec(v___x_1753_); +lean_dec(v_otherwise_x3f_1752_); +lean_dec(v_rhs_1738_); +lean_dec(v_pattern_1695_); +v___x_1756_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1757_ = lean_box(0); +v___x_1758_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1757_, v___x_1755_); +v___x_1759_ = l_Std_Format_defWidth; +v___x_1760_ = l_Std_Format_pretty(v___x_1758_, v___x_1759_, v___x_1694_, v___x_1694_); +v___x_1761_ = l_Lean_stringToMessageData(v___x_1760_); +v___x_1762_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1762_, 0, v___x_1756_); +lean_ctor_set(v___x_1762_, 1, v___x_1761_); +v___x_1763_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1762_, v___y_1731_, v___y_1732_, v___y_1733_, v___y_1734_, v___y_1735_, v___y_1736_); +return v___x_1763_; } else { -lean_object* v_body_x3f_x3f_1759_; lean_object* v___x_1760_; -lean_dec(v_decl_1640_); -v_body_x3f_x3f_1759_ = l_Lean_Syntax_getArg(v___x_1748_, v___x_1689_); -lean_dec(v___x_1748_); -v___x_1760_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1760_, 0, v_body_x3f_x3f_1759_); -v___y_1713_ = v_otherwise_x3f_1747_; -v___y_1714_ = v_rhs_1733_; -v_body_x3f_x3f_1715_ = v___x_1760_; -v___y_1716_ = v___y_1726_; -v___y_1717_ = v___y_1727_; -v___y_1718_ = v___y_1728_; -v___y_1719_ = v___y_1729_; -v___y_1720_ = v___y_1730_; +lean_object* v_body_x3f_x3f_1764_; lean_object* v___x_1765_; +lean_dec(v_decl_1645_); +v_body_x3f_x3f_1764_ = l_Lean_Syntax_getArg(v___x_1753_, v___x_1694_); +lean_dec(v___x_1753_); +v___x_1765_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1765_, 0, v_body_x3f_x3f_1764_); +v___y_1718_ = v_rhs_1738_; +v___y_1719_ = v_otherwise_x3f_1752_; +v_body_x3f_x3f_1720_ = v___x_1765_; v___y_1721_ = v___y_1731_; -goto v___jp_1712_; +v___y_1722_ = v___y_1732_; +v___y_1723_ = v___y_1733_; +v___y_1724_ = v___y_1734_; +v___y_1725_ = v___y_1735_; +v___y_1726_ = v___y_1736_; +goto v___jp_1717_; } } else { -lean_object* v___x_1761_; -lean_dec(v___x_1748_); -lean_dec(v_decl_1640_); -v___x_1761_ = lean_box(0); -v___y_1713_ = v_otherwise_x3f_1747_; -v___y_1714_ = v_rhs_1733_; -v_body_x3f_x3f_1715_ = v___x_1761_; -v___y_1716_ = v___y_1726_; -v___y_1717_ = v___y_1727_; -v___y_1718_ = v___y_1728_; -v___y_1719_ = v___y_1729_; -v___y_1720_ = v___y_1730_; +lean_object* v___x_1766_; +lean_dec(v___x_1753_); +lean_dec(v_decl_1645_); +v___x_1766_ = lean_box(0); +v___y_1718_ = v_rhs_1738_; +v___y_1719_ = v_otherwise_x3f_1752_; +v_body_x3f_x3f_1720_ = v___x_1766_; v___y_1721_ = v___y_1731_; -goto v___jp_1712_; +v___y_1722_ = v___y_1732_; +v___y_1723_ = v___y_1733_; +v___y_1724_ = v___y_1734_; +v___y_1725_ = v___y_1735_; +v___y_1726_ = v___y_1736_; +goto v___jp_1717_; } } } else { -lean_object* v___x_1762_; -lean_dec(v___x_1735_); -lean_dec(v_decl_1640_); -v___x_1762_ = lean_box(0); -v___y_1692_ = v_rhs_1733_; -v_otherwise_x3f_1693_ = v___x_1762_; -v_body_x3f_x3f_1694_ = v___x_1762_; -v___y_1695_ = v___y_1726_; -v___y_1696_ = v___y_1727_; -v___y_1697_ = v___y_1728_; -v___y_1698_ = v___y_1729_; -v___y_1699_ = v___y_1730_; +lean_object* v___x_1767_; +lean_dec(v___x_1740_); +lean_dec(v_decl_1645_); +v___x_1767_ = lean_box(0); +v___y_1697_ = v_rhs_1738_; +v_otherwise_x3f_1698_ = v___x_1767_; +v_body_x3f_x3f_1699_ = v___x_1767_; v___y_1700_ = v___y_1731_; -goto v___jp_1691_; +v___y_1701_ = v___y_1732_; +v___y_1702_ = v___y_1733_; +v___y_1703_ = v___y_1734_; +v___y_1704_ = v___y_1735_; +v___y_1705_ = v___y_1736_; +goto v___jp_1696_; } } } } else { -lean_object* v___x_1785_; lean_object* v_x_1786_; lean_object* v___y_1788_; lean_object* v___y_1789_; lean_object* v___y_1790_; lean_object* v___y_1791_; lean_object* v___y_1792_; lean_object* v___y_1793_; lean_object* v___x_1800_; uint8_t v___x_1801_; -v___x_1785_ = lean_unsigned_to_nat(0u); -v_x_1786_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1785_); -v___x_1800_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__10)); -lean_inc(v_x_1786_); -v___x_1801_ = l_Lean_Syntax_isOfKind(v_x_1786_, v___x_1800_); -if (v___x_1801_ == 0) +lean_object* v___x_1790_; lean_object* v_x_1791_; lean_object* v___y_1793_; lean_object* v___y_1794_; lean_object* v___y_1795_; lean_object* v___y_1796_; lean_object* v___y_1797_; lean_object* v___y_1798_; lean_object* v___x_1805_; uint8_t v___x_1806_; +v___x_1790_ = lean_unsigned_to_nat(0u); +v_x_1791_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1790_); +v___x_1805_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__10)); +lean_inc(v_x_1791_); +v___x_1806_ = l_Lean_Syntax_isOfKind(v_x_1791_, v___x_1805_); +if (v___x_1806_ == 0) { -lean_object* v___x_1802_; lean_object* v___x_1803_; lean_object* v___x_1804_; lean_object* v___x_1805_; lean_object* v___x_1806_; lean_object* v___x_1807_; lean_object* v___x_1808_; lean_object* v___x_1809_; -lean_dec(v_x_1786_); -v___x_1802_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1803_ = lean_box(0); -v___x_1804_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1803_, v___x_1801_); -v___x_1805_ = l_Std_Format_defWidth; -v___x_1806_ = l_Std_Format_pretty(v___x_1804_, v___x_1805_, v___x_1785_, v___x_1785_); -v___x_1807_ = l_Lean_stringToMessageData(v___x_1806_); -v___x_1808_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1808_, 0, v___x_1802_); -lean_ctor_set(v___x_1808_, 1, v___x_1807_); -v___x_1809_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1808_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1809_; +lean_object* v___x_1807_; lean_object* v___x_1808_; lean_object* v___x_1809_; lean_object* v___x_1810_; lean_object* v___x_1811_; lean_object* v___x_1812_; lean_object* v___x_1813_; lean_object* v___x_1814_; +lean_dec(v_x_1791_); +v___x_1807_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1808_ = lean_box(0); +v___x_1809_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1808_, v___x_1806_); +v___x_1810_ = l_Std_Format_defWidth; +v___x_1811_ = l_Std_Format_pretty(v___x_1809_, v___x_1810_, v___x_1790_, v___x_1790_); +v___x_1812_ = l_Lean_stringToMessageData(v___x_1811_); +v___x_1813_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1813_, 0, v___x_1807_); +lean_ctor_set(v___x_1813_, 1, v___x_1812_); +v___x_1814_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1813_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1814_; } else { -lean_object* v___x_1810_; lean_object* v___x_1811_; uint8_t v___x_1812_; -v___x_1810_ = lean_unsigned_to_nat(1u); -v___x_1811_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1810_); -v___x_1812_ = l_Lean_Syntax_isNone(v___x_1811_); -if (v___x_1812_ == 0) +lean_object* v___x_1815_; lean_object* v___x_1816_; uint8_t v___x_1817_; +v___x_1815_ = lean_unsigned_to_nat(1u); +v___x_1816_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1815_); +v___x_1817_ = l_Lean_Syntax_isNone(v___x_1816_); +if (v___x_1817_ == 0) { -uint8_t v___x_1813_; -lean_inc(v___x_1811_); -v___x_1813_ = l_Lean_Syntax_matchesNull(v___x_1811_, v___x_1810_); -if (v___x_1813_ == 0) +uint8_t v___x_1818_; +lean_inc(v___x_1816_); +v___x_1818_ = l_Lean_Syntax_matchesNull(v___x_1816_, v___x_1815_); +if (v___x_1818_ == 0) { -lean_object* v___x_1814_; lean_object* v___x_1815_; lean_object* v___x_1816_; lean_object* v___x_1817_; lean_object* v___x_1818_; lean_object* v___x_1819_; lean_object* v___x_1820_; lean_object* v___x_1821_; -lean_dec(v___x_1811_); -lean_dec(v_x_1786_); -v___x_1814_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1815_ = lean_box(0); -v___x_1816_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1815_, v___x_1813_); -v___x_1817_ = l_Std_Format_defWidth; -v___x_1818_ = l_Std_Format_pretty(v___x_1816_, v___x_1817_, v___x_1785_, v___x_1785_); -v___x_1819_ = l_Lean_stringToMessageData(v___x_1818_); -v___x_1820_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1820_, 0, v___x_1814_); -lean_ctor_set(v___x_1820_, 1, v___x_1819_); -v___x_1821_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1820_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1821_; +lean_object* v___x_1819_; lean_object* v___x_1820_; lean_object* v___x_1821_; lean_object* v___x_1822_; lean_object* v___x_1823_; lean_object* v___x_1824_; lean_object* v___x_1825_; lean_object* v___x_1826_; +lean_dec(v___x_1816_); +lean_dec(v_x_1791_); +v___x_1819_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1820_ = lean_box(0); +v___x_1821_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1820_, v___x_1818_); +v___x_1822_ = l_Std_Format_defWidth; +v___x_1823_ = l_Std_Format_pretty(v___x_1821_, v___x_1822_, v___x_1790_, v___x_1790_); +v___x_1824_ = l_Lean_stringToMessageData(v___x_1823_); +v___x_1825_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1825_, 0, v___x_1819_); +lean_ctor_set(v___x_1825_, 1, v___x_1824_); +v___x_1826_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1825_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1826_; } else { -lean_object* v___x_1822_; lean_object* v___x_1823_; uint8_t v___x_1824_; -v___x_1822_ = l_Lean_Syntax_getArg(v___x_1811_, v___x_1785_); -lean_dec(v___x_1811_); -v___x_1823_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__8)); -v___x_1824_ = l_Lean_Syntax_isOfKind(v___x_1822_, v___x_1823_); -if (v___x_1824_ == 0) +lean_object* v___x_1827_; lean_object* v___x_1828_; uint8_t v___x_1829_; +v___x_1827_ = l_Lean_Syntax_getArg(v___x_1816_, v___x_1790_); +lean_dec(v___x_1816_); +v___x_1828_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__8)); +v___x_1829_ = l_Lean_Syntax_isOfKind(v___x_1827_, v___x_1828_); +if (v___x_1829_ == 0) { -lean_object* v___x_1825_; lean_object* v___x_1826_; lean_object* v___x_1827_; lean_object* v___x_1828_; lean_object* v___x_1829_; lean_object* v___x_1830_; lean_object* v___x_1831_; lean_object* v___x_1832_; -lean_dec(v_x_1786_); -v___x_1825_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); -v___x_1826_ = lean_box(0); -v___x_1827_ = l_Lean_Syntax_formatStx(v_decl_1640_, v___x_1826_, v___x_1824_); -v___x_1828_ = l_Std_Format_defWidth; -v___x_1829_ = l_Std_Format_pretty(v___x_1827_, v___x_1828_, v___x_1785_, v___x_1785_); -v___x_1830_ = l_Lean_stringToMessageData(v___x_1829_); -v___x_1831_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1831_, 0, v___x_1825_); -lean_ctor_set(v___x_1831_, 1, v___x_1830_); -v___x_1832_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1831_, v_a_1641_, v_a_1642_, v_a_1643_, v_a_1644_, v_a_1645_, v_a_1646_); -return v___x_1832_; +lean_object* v___x_1830_; lean_object* v___x_1831_; lean_object* v___x_1832_; lean_object* v___x_1833_; lean_object* v___x_1834_; lean_object* v___x_1835_; lean_object* v___x_1836_; lean_object* v___x_1837_; +lean_dec(v_x_1791_); +v___x_1830_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__5); +v___x_1831_ = lean_box(0); +v___x_1832_ = l_Lean_Syntax_formatStx(v_decl_1645_, v___x_1831_, v___x_1829_); +v___x_1833_ = l_Std_Format_defWidth; +v___x_1834_ = l_Std_Format_pretty(v___x_1832_, v___x_1833_, v___x_1790_, v___x_1790_); +v___x_1835_ = l_Lean_stringToMessageData(v___x_1834_); +v___x_1836_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1836_, 0, v___x_1830_); +lean_ctor_set(v___x_1836_, 1, v___x_1835_); +v___x_1837_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_1836_, v_a_1646_, v_a_1647_, v_a_1648_, v_a_1649_, v_a_1650_, v_a_1651_); +return v___x_1837_; } else { -v___y_1788_ = v_a_1641_; -v___y_1789_ = v_a_1642_; -v___y_1790_ = v_a_1643_; -v___y_1791_ = v_a_1644_; -v___y_1792_ = v_a_1645_; v___y_1793_ = v_a_1646_; -goto v___jp_1787_; +v___y_1794_ = v_a_1647_; +v___y_1795_ = v_a_1648_; +v___y_1796_ = v_a_1649_; +v___y_1797_ = v_a_1650_; +v___y_1798_ = v_a_1651_; +goto v___jp_1792_; } } } else { -lean_dec(v___x_1811_); -v___y_1788_ = v_a_1641_; -v___y_1789_ = v_a_1642_; -v___y_1790_ = v_a_1643_; -v___y_1791_ = v_a_1644_; -v___y_1792_ = v_a_1645_; +lean_dec(v___x_1816_); v___y_1793_ = v_a_1646_; -goto v___jp_1787_; +v___y_1794_ = v_a_1647_; +v___y_1795_ = v_a_1648_; +v___y_1796_ = v_a_1649_; +v___y_1797_ = v_a_1650_; +v___y_1798_ = v_a_1651_; +goto v___jp_1792_; } } -v___jp_1787_: +v___jp_1792_: { -lean_object* v___x_1794_; lean_object* v_rhs_1795_; -v___x_1794_ = lean_unsigned_to_nat(3u); -v_rhs_1795_ = l_Lean_Syntax_getArg(v_decl_1640_, v___x_1794_); -lean_dec(v_decl_1640_); -if (v_reassignment_1639_ == 0) +lean_object* v___x_1799_; lean_object* v_rhs_1800_; +v___x_1799_ = lean_unsigned_to_nat(3u); +v_rhs_1800_ = l_Lean_Syntax_getArg(v_decl_1645_, v___x_1799_); +lean_dec(v_decl_1645_); +if (v_reassignment_1644_ == 0) { -lean_object* v___x_1796_; -lean_dec(v_x_1786_); -v___x_1796_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); -v___y_1649_ = v___y_1789_; -v___y_1650_ = v___y_1791_; -v___y_1651_ = v___y_1788_; -v___y_1652_ = v_rhs_1795_; -v___y_1653_ = v___y_1792_; -v___y_1654_ = v___y_1793_; -v___y_1655_ = v___y_1790_; -v___y_1656_ = v___x_1796_; -goto v___jp_1648_; +lean_object* v___x_1801_; +lean_dec(v_x_1791_); +v___x_1801_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); +v___y_1654_ = v___y_1798_; +v___y_1655_ = v___y_1795_; +v___y_1656_ = v___y_1796_; +v___y_1657_ = v___y_1793_; +v___y_1658_ = v_rhs_1800_; +v___y_1659_ = v___y_1797_; +v___y_1660_ = v___y_1794_; +v___y_1661_ = v___x_1801_; +goto v___jp_1653_; } else { -lean_object* v___x_1797_; lean_object* v___x_1798_; lean_object* v___x_1799_; -v___x_1797_ = lean_unsigned_to_nat(1u); -v___x_1798_ = lean_mk_empty_array_with_capacity(v___x_1797_); -v___x_1799_ = lean_array_push(v___x_1798_, v_x_1786_); -v___y_1649_ = v___y_1789_; -v___y_1650_ = v___y_1791_; -v___y_1651_ = v___y_1788_; -v___y_1652_ = v_rhs_1795_; -v___y_1653_ = v___y_1792_; -v___y_1654_ = v___y_1793_; -v___y_1655_ = v___y_1790_; -v___y_1656_ = v___x_1799_; -goto v___jp_1648_; +lean_object* v___x_1802_; lean_object* v___x_1803_; lean_object* v___x_1804_; +v___x_1802_ = lean_unsigned_to_nat(1u); +v___x_1803_ = lean_mk_empty_array_with_capacity(v___x_1802_); +v___x_1804_ = lean_array_push(v___x_1803_, v_x_1791_); +v___y_1654_ = v___y_1798_; +v___y_1655_ = v___y_1795_; +v___y_1656_ = v___y_1796_; +v___y_1657_ = v___y_1793_; +v___y_1658_ = v_rhs_1800_; +v___y_1659_ = v___y_1797_; +v___y_1660_ = v___y_1794_; +v___y_1661_ = v___x_1804_; +goto v___jp_1653_; } } } -v___jp_1648_: +v___jp_1653_: { -lean_object* v___x_1657_; lean_object* v___x_1658_; lean_object* v___x_1659_; -v___x_1657_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1657_, 0, v___y_1652_); -v___x_1658_ = lean_box(0); -v___x_1659_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v___y_1656_, v___x_1657_, v___x_1658_, v___x_1658_, v___y_1651_, v___y_1649_, v___y_1655_, v___y_1650_, v___y_1653_, v___y_1654_); -return v___x_1659_; +lean_object* v___x_1662_; lean_object* v___x_1663_; lean_object* v___x_1664_; +v___x_1662_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1662_, 0, v___y_1658_); +v___x_1663_ = lean_box(0); +v___x_1664_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v___y_1661_, v___x_1662_, v___x_1663_, v___x_1663_, v___y_1657_, v___y_1660_, v___y_1655_, v___y_1656_, v___y_1659_, v___y_1654_); +return v___x_1664_; } -v___jp_1660_: +v___jp_1665_: { -lean_object* v___x_1671_; -v___x_1671_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1671_, 0, v___y_1663_); -if (lean_obj_tag(v___y_1661_) == 0) +lean_object* v___x_1676_; +v___x_1676_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1676_, 0, v___y_1667_); +if (lean_obj_tag(v___y_1668_) == 0) { -lean_object* v___x_1672_; lean_object* v___x_1673_; -v___x_1672_ = lean_box(0); -v___x_1673_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigns_1664_, v___x_1671_, v___y_1662_, v___x_1672_, v___y_1665_, v___y_1666_, v___y_1667_, v___y_1668_, v___y_1669_, v___y_1670_); -return v___x_1673_; +lean_object* v___x_1677_; lean_object* v___x_1678_; +v___x_1677_ = lean_box(0); +v___x_1678_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigns_1669_, v___x_1676_, v___y_1666_, v___x_1677_, v___y_1670_, v___y_1671_, v___y_1672_, v___y_1673_, v___y_1674_, v___y_1675_); +return v___x_1678_; } else { -lean_object* v_val_1674_; lean_object* v___x_1675_; -v_val_1674_ = lean_ctor_get(v___y_1661_, 0); -lean_inc(v_val_1674_); -lean_dec_ref(v___y_1661_); -v___x_1675_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigns_1664_, v___x_1671_, v___y_1662_, v_val_1674_, v___y_1665_, v___y_1666_, v___y_1667_, v___y_1668_, v___y_1669_, v___y_1670_); -return v___x_1675_; +lean_object* v_val_1679_; lean_object* v___x_1680_; +v_val_1679_ = lean_ctor_get(v___y_1668_, 0); +lean_inc(v_val_1679_); +lean_dec_ref(v___y_1668_); +v___x_1680_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigns_1669_, v___x_1676_, v___y_1666_, v_val_1679_, v___y_1670_, v___y_1671_, v___y_1672_, v___y_1673_, v___y_1674_, v___y_1675_); +return v___x_1680_; } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(lean_object* v_as_1949_, size_t v_sz_1950_, size_t v_i_1951_, lean_object* v_b_1952_, lean_object* v___y_1953_, lean_object* v___y_1954_, lean_object* v___y_1955_, lean_object* v___y_1956_, lean_object* v___y_1957_, lean_object* v___y_1958_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(lean_object* v_as_1954_, size_t v_sz_1955_, size_t v_i_1956_, lean_object* v_b_1957_, lean_object* v___y_1958_, lean_object* v___y_1959_, lean_object* v___y_1960_, lean_object* v___y_1961_, lean_object* v___y_1962_, lean_object* v___y_1963_){ _start: { -uint8_t v___x_1960_; -v___x_1960_ = lean_usize_dec_lt(v_i_1951_, v_sz_1950_); -if (v___x_1960_ == 0) +uint8_t v___x_1965_; +v___x_1965_ = lean_usize_dec_lt(v_i_1956_, v_sz_1955_); +if (v___x_1965_ == 0) { -lean_object* v___x_1961_; -v___x_1961_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1961_, 0, v_b_1952_); -return v___x_1961_; +lean_object* v___x_1966_; +v___x_1966_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1966_, 0, v_b_1957_); +return v___x_1966_; } else { -lean_object* v_a_1962_; lean_object* v___x_1963_; -v_a_1962_ = lean_array_uget_borrowed(v_as_1949_, v_i_1951_); -lean_inc(v_a_1962_); -v___x_1963_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_a_1962_, v___y_1953_, v___y_1954_, v___y_1955_, v___y_1956_, v___y_1957_, v___y_1958_); -if (lean_obj_tag(v___x_1963_) == 0) +lean_object* v_a_1967_; lean_object* v___x_1968_; +v_a_1967_ = lean_array_uget_borrowed(v_as_1954_, v_i_1956_); +lean_inc(v_a_1967_); +v___x_1968_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_a_1967_, v___y_1958_, v___y_1959_, v___y_1960_, v___y_1961_, v___y_1962_, v___y_1963_); +if (lean_obj_tag(v___x_1968_) == 0) { -lean_object* v_a_1964_; lean_object* v___x_1965_; size_t v___x_1966_; size_t v___x_1967_; -v_a_1964_ = lean_ctor_get(v___x_1963_, 0); -lean_inc(v_a_1964_); -lean_dec_ref(v___x_1963_); -v___x_1965_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_1964_, v_b_1952_); -v___x_1966_ = ((size_t)1ULL); -v___x_1967_ = lean_usize_add(v_i_1951_, v___x_1966_); -v_i_1951_ = v___x_1967_; -v_b_1952_ = v___x_1965_; +lean_object* v_a_1969_; lean_object* v___x_1970_; size_t v___x_1971_; size_t v___x_1972_; +v_a_1969_ = lean_ctor_get(v___x_1968_, 0); +lean_inc(v_a_1969_); +lean_dec_ref(v___x_1968_); +v___x_1970_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_1969_, v_b_1957_); +v___x_1971_ = ((size_t)1ULL); +v___x_1972_ = lean_usize_add(v_i_1956_, v___x_1971_); +v_i_1956_ = v___x_1972_; +v_b_1957_ = v___x_1970_; goto _start; } else { -lean_dec_ref(v_b_1952_); -return v___x_1963_; +lean_dec_ref(v_b_1957_); +return v___x_1968_; } } } @@ -5529,808 +5546,808 @@ return v___x_1963_; static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5(void){ _start: { -lean_object* v___x_1982_; lean_object* v___x_1983_; -v___x_1982_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__4)); -v___x_1983_ = l_Lean_stringToMessageData(v___x_1982_); -return v___x_1983_; +lean_object* v___x_1987_; lean_object* v___x_1988_; +v___x_1987_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__4)); +v___x_1988_ = l_Lean_stringToMessageData(v___x_1987_); +return v___x_1988_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(uint8_t v___x_1998_, lean_object* v_as_1999_, size_t v_sz_2000_, size_t v_i_2001_, lean_object* v_b_2002_, lean_object* v___y_2003_, lean_object* v___y_2004_, lean_object* v___y_2005_, lean_object* v___y_2006_, lean_object* v___y_2007_, lean_object* v___y_2008_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(uint8_t v___x_2003_, lean_object* v_as_2004_, size_t v_sz_2005_, size_t v_i_2006_, lean_object* v_b_2007_, lean_object* v___y_2008_, lean_object* v___y_2009_, lean_object* v___y_2010_, lean_object* v___y_2011_, lean_object* v___y_2012_, lean_object* v___y_2013_){ _start: { -lean_object* v_a_2011_; uint8_t v___x_2015_; -v___x_2015_ = lean_usize_dec_lt(v_i_2001_, v_sz_2000_); -if (v___x_2015_ == 0) +lean_object* v_a_2016_; uint8_t v___x_2020_; +v___x_2020_ = lean_usize_dec_lt(v_i_2006_, v_sz_2005_); +if (v___x_2020_ == 0) { -lean_object* v___x_2016_; -v___x_2016_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2016_, 0, v_b_2002_); -return v___x_2016_; +lean_object* v___x_2021_; +v___x_2021_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2021_, 0, v_b_2007_); +return v___x_2021_; } else { -lean_object* v___x_2017_; lean_object* v_a_2018_; uint8_t v___x_2019_; -v___x_2017_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__1)); -v_a_2018_ = lean_array_uget_borrowed(v_as_1999_, v_i_2001_); -lean_inc(v_a_2018_); -v___x_2019_ = l_Lean_Syntax_isOfKind(v_a_2018_, v___x_2017_); -if (v___x_2019_ == 0) +lean_object* v___x_2022_; lean_object* v_a_2023_; uint8_t v___x_2024_; +v___x_2022_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__1)); +v_a_2023_ = lean_array_uget_borrowed(v_as_2004_, v_i_2006_); +lean_inc(v_a_2023_); +v___x_2024_ = l_Lean_Syntax_isOfKind(v_a_2023_, v___x_2022_); +if (v___x_2024_ == 0) { -lean_object* v___x_2020_; -v___x_2020_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -if (lean_obj_tag(v___x_2020_) == 0) +lean_object* v___x_2025_; +v___x_2025_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +if (lean_obj_tag(v___x_2025_) == 0) { -lean_dec_ref(v___x_2020_); -v_a_2011_ = v_b_2002_; -goto v___jp_2010_; +lean_dec_ref(v___x_2025_); +v_a_2016_ = v_b_2007_; +goto v___jp_2015_; } else { -lean_object* v_a_2021_; lean_object* v___x_2023_; uint8_t v_isShared_2024_; uint8_t v_isSharedCheck_2028_; -lean_dec_ref(v_b_2002_); -v_a_2021_ = lean_ctor_get(v___x_2020_, 0); -v_isSharedCheck_2028_ = !lean_is_exclusive(v___x_2020_); -if (v_isSharedCheck_2028_ == 0) +lean_object* v_a_2026_; lean_object* v___x_2028_; uint8_t v_isShared_2029_; uint8_t v_isSharedCheck_2033_; +lean_dec_ref(v_b_2007_); +v_a_2026_ = lean_ctor_get(v___x_2025_, 0); +v_isSharedCheck_2033_ = !lean_is_exclusive(v___x_2025_); +if (v_isSharedCheck_2033_ == 0) { -v___x_2023_ = v___x_2020_; -v_isShared_2024_ = v_isSharedCheck_2028_; -goto v_resetjp_2022_; +v___x_2028_ = v___x_2025_; +v_isShared_2029_ = v_isSharedCheck_2033_; +goto v_resetjp_2027_; } else { -lean_inc(v_a_2021_); -lean_dec(v___x_2020_); -v___x_2023_ = lean_box(0); -v_isShared_2024_ = v_isSharedCheck_2028_; -goto v_resetjp_2022_; +lean_inc(v_a_2026_); +lean_dec(v___x_2025_); +v___x_2028_ = lean_box(0); +v_isShared_2029_ = v_isSharedCheck_2033_; +goto v_resetjp_2027_; } -v_resetjp_2022_: +v_resetjp_2027_: { -lean_object* v___x_2026_; -if (v_isShared_2024_ == 0) +lean_object* v___x_2031_; +if (v_isShared_2029_ == 0) { -v___x_2026_ = v___x_2023_; -goto v_reusejp_2025_; +v___x_2031_ = v___x_2028_; +goto v_reusejp_2030_; } else { -lean_object* v_reuseFailAlloc_2027_; -v_reuseFailAlloc_2027_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2027_, 0, v_a_2021_); -v___x_2026_ = v_reuseFailAlloc_2027_; -goto v_reusejp_2025_; +lean_object* v_reuseFailAlloc_2032_; +v_reuseFailAlloc_2032_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2032_, 0, v_a_2026_); +v___x_2031_ = v_reuseFailAlloc_2032_; +goto v_reusejp_2030_; } -v_reusejp_2025_: +v_reusejp_2030_: { -return v___x_2026_; +return v___x_2031_; } } } } else { -lean_object* v___x_2029_; lean_object* v___x_2030_; lean_object* v___y_2032_; lean_object* v___x_2049_; lean_object* v___x_2050_; lean_object* v___x_2051_; lean_object* v___x_2052_; lean_object* v___x_2053_; uint8_t v___x_2054_; -v___x_2029_ = lean_unsigned_to_nat(1u); -v___x_2030_ = lean_unsigned_to_nat(3u); -v___x_2049_ = l_Lean_Syntax_getArg(v_a_2018_, v___x_2029_); -v___x_2050_ = l_Lean_Syntax_getArgs(v___x_2049_); -lean_dec(v___x_2049_); -v___x_2051_ = lean_unsigned_to_nat(0u); -v___x_2052_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); -v___x_2053_ = lean_array_get_size(v___x_2050_); -v___x_2054_ = lean_nat_dec_lt(v___x_2051_, v___x_2053_); -if (v___x_2054_ == 0) +lean_object* v___x_2034_; lean_object* v___x_2035_; lean_object* v___y_2037_; lean_object* v___x_2054_; lean_object* v___x_2055_; lean_object* v___x_2056_; lean_object* v___x_2057_; lean_object* v___x_2058_; uint8_t v___x_2059_; +v___x_2034_ = lean_unsigned_to_nat(1u); +v___x_2035_ = lean_unsigned_to_nat(3u); +v___x_2054_ = l_Lean_Syntax_getArg(v_a_2023_, v___x_2034_); +v___x_2055_ = l_Lean_Syntax_getArgs(v___x_2054_); +lean_dec(v___x_2054_); +v___x_2056_ = lean_unsigned_to_nat(0u); +v___x_2057_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); +v___x_2058_ = lean_array_get_size(v___x_2055_); +v___x_2059_ = lean_nat_dec_lt(v___x_2056_, v___x_2058_); +if (v___x_2059_ == 0) { -lean_dec_ref(v___x_2050_); -v___y_2032_ = v___x_2052_; -goto v___jp_2031_; +lean_dec_ref(v___x_2055_); +v___y_2037_ = v___x_2057_; +goto v___jp_2036_; } else { -lean_object* v___x_2055_; lean_object* v___x_2056_; uint8_t v___x_2057_; -v___x_2055_ = lean_box(v___x_2019_); -v___x_2056_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2056_, 0, v___x_2055_); -lean_ctor_set(v___x_2056_, 1, v___x_2052_); -v___x_2057_ = lean_nat_dec_le(v___x_2053_, v___x_2053_); -if (v___x_2057_ == 0) +lean_object* v___x_2060_; lean_object* v___x_2061_; uint8_t v___x_2062_; +v___x_2060_ = lean_box(v___x_2024_); +v___x_2061_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2061_, 0, v___x_2060_); +lean_ctor_set(v___x_2061_, 1, v___x_2057_); +v___x_2062_ = lean_nat_dec_le(v___x_2058_, v___x_2058_); +if (v___x_2062_ == 0) { -if (v___x_2054_ == 0) +if (v___x_2059_ == 0) { -lean_dec_ref(v___x_2056_); -lean_dec_ref(v___x_2050_); -v___y_2032_ = v___x_2052_; -goto v___jp_2031_; +lean_dec_ref(v___x_2061_); +lean_dec_ref(v___x_2055_); +v___y_2037_ = v___x_2057_; +goto v___jp_2036_; } else { -size_t v___x_2058_; size_t v___x_2059_; lean_object* v___x_2060_; lean_object* v_snd_2061_; -v___x_2058_ = ((size_t)0ULL); -v___x_2059_ = lean_usize_of_nat(v___x_2053_); -v___x_2060_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2019_, v___x_1998_, v___x_2050_, v___x_2058_, v___x_2059_, v___x_2056_); -lean_dec_ref(v___x_2050_); -v_snd_2061_ = lean_ctor_get(v___x_2060_, 1); -lean_inc(v_snd_2061_); -lean_dec_ref(v___x_2060_); -v___y_2032_ = v_snd_2061_; -goto v___jp_2031_; +size_t v___x_2063_; size_t v___x_2064_; lean_object* v___x_2065_; lean_object* v_snd_2066_; +v___x_2063_ = ((size_t)0ULL); +v___x_2064_ = lean_usize_of_nat(v___x_2058_); +v___x_2065_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2024_, v___x_2003_, v___x_2055_, v___x_2063_, v___x_2064_, v___x_2061_); +lean_dec_ref(v___x_2055_); +v_snd_2066_ = lean_ctor_get(v___x_2065_, 1); +lean_inc(v_snd_2066_); +lean_dec_ref(v___x_2065_); +v___y_2037_ = v_snd_2066_; +goto v___jp_2036_; } } else { -size_t v___x_2062_; size_t v___x_2063_; lean_object* v___x_2064_; lean_object* v_snd_2065_; -v___x_2062_ = ((size_t)0ULL); -v___x_2063_ = lean_usize_of_nat(v___x_2053_); -v___x_2064_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2019_, v___x_1998_, v___x_2050_, v___x_2062_, v___x_2063_, v___x_2056_); -lean_dec_ref(v___x_2050_); -v_snd_2065_ = lean_ctor_get(v___x_2064_, 1); -lean_inc(v_snd_2065_); -lean_dec_ref(v___x_2064_); -v___y_2032_ = v_snd_2065_; -goto v___jp_2031_; +size_t v___x_2067_; size_t v___x_2068_; lean_object* v___x_2069_; lean_object* v_snd_2070_; +v___x_2067_ = ((size_t)0ULL); +v___x_2068_ = lean_usize_of_nat(v___x_2058_); +v___x_2069_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2024_, v___x_2003_, v___x_2055_, v___x_2067_, v___x_2068_, v___x_2061_); +lean_dec_ref(v___x_2055_); +v_snd_2070_ = lean_ctor_get(v___x_2069_, 1); +lean_inc(v_snd_2070_); +lean_dec_ref(v___x_2069_); +v___y_2037_ = v_snd_2070_; +goto v___jp_2036_; } } -v___jp_2031_: +v___jp_2036_: { -size_t v_sz_2033_; size_t v___x_2034_; lean_object* v___x_2035_; -v_sz_2033_ = lean_array_size(v___y_2032_); -v___x_2034_ = ((size_t)0ULL); -v___x_2035_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_2033_, v___x_2034_, v___y_2032_); -if (lean_obj_tag(v___x_2035_) == 0) +size_t v_sz_2038_; size_t v___x_2039_; lean_object* v___x_2040_; +v_sz_2038_ = lean_array_size(v___y_2037_); +v___x_2039_ = ((size_t)0ULL); +v___x_2040_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_2038_, v___x_2039_, v___y_2037_); +if (lean_obj_tag(v___x_2040_) == 0) { -lean_object* v___x_2036_; -v___x_2036_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -if (lean_obj_tag(v___x_2036_) == 0) +lean_object* v___x_2041_; +v___x_2041_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +if (lean_obj_tag(v___x_2041_) == 0) { -lean_dec_ref(v___x_2036_); -v_a_2011_ = v_b_2002_; -goto v___jp_2010_; +lean_dec_ref(v___x_2041_); +v_a_2016_ = v_b_2007_; +goto v___jp_2015_; } else { -lean_object* v_a_2037_; lean_object* v___x_2039_; uint8_t v_isShared_2040_; uint8_t v_isSharedCheck_2044_; -lean_dec_ref(v_b_2002_); -v_a_2037_ = lean_ctor_get(v___x_2036_, 0); -v_isSharedCheck_2044_ = !lean_is_exclusive(v___x_2036_); -if (v_isSharedCheck_2044_ == 0) +lean_object* v_a_2042_; lean_object* v___x_2044_; uint8_t v_isShared_2045_; uint8_t v_isSharedCheck_2049_; +lean_dec_ref(v_b_2007_); +v_a_2042_ = lean_ctor_get(v___x_2041_, 0); +v_isSharedCheck_2049_ = !lean_is_exclusive(v___x_2041_); +if (v_isSharedCheck_2049_ == 0) { -v___x_2039_ = v___x_2036_; -v_isShared_2040_ = v_isSharedCheck_2044_; -goto v_resetjp_2038_; +v___x_2044_ = v___x_2041_; +v_isShared_2045_ = v_isSharedCheck_2049_; +goto v_resetjp_2043_; } else { -lean_inc(v_a_2037_); -lean_dec(v___x_2036_); -v___x_2039_ = lean_box(0); -v_isShared_2040_ = v_isSharedCheck_2044_; -goto v_resetjp_2038_; +lean_inc(v_a_2042_); +lean_dec(v___x_2041_); +v___x_2044_ = lean_box(0); +v_isShared_2045_ = v_isSharedCheck_2049_; +goto v_resetjp_2043_; } -v_resetjp_2038_: +v_resetjp_2043_: { -lean_object* v___x_2042_; -if (v_isShared_2040_ == 0) +lean_object* v___x_2047_; +if (v_isShared_2045_ == 0) { -v___x_2042_ = v___x_2039_; -goto v_reusejp_2041_; +v___x_2047_ = v___x_2044_; +goto v_reusejp_2046_; } else { -lean_object* v_reuseFailAlloc_2043_; -v_reuseFailAlloc_2043_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2043_, 0, v_a_2037_); -v___x_2042_ = v_reuseFailAlloc_2043_; -goto v_reusejp_2041_; +lean_object* v_reuseFailAlloc_2048_; +v_reuseFailAlloc_2048_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2048_, 0, v_a_2042_); +v___x_2047_ = v_reuseFailAlloc_2048_; +goto v_reusejp_2046_; } -v_reusejp_2041_: +v_reusejp_2046_: { -return v___x_2042_; +return v___x_2047_; } } } } else { -lean_object* v___x_2045_; lean_object* v___x_2046_; -lean_dec_ref(v___x_2035_); -v___x_2045_ = l_Lean_Syntax_getArg(v_a_2018_, v___x_2030_); -v___x_2046_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2045_, v___y_2003_, v___y_2004_, v___y_2005_, v___y_2006_, v___y_2007_, v___y_2008_); -if (lean_obj_tag(v___x_2046_) == 0) +lean_object* v___x_2050_; lean_object* v___x_2051_; +lean_dec_ref(v___x_2040_); +v___x_2050_ = l_Lean_Syntax_getArg(v_a_2023_, v___x_2035_); +v___x_2051_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2050_, v___y_2008_, v___y_2009_, v___y_2010_, v___y_2011_, v___y_2012_, v___y_2013_); +if (lean_obj_tag(v___x_2051_) == 0) { -lean_object* v_a_2047_; lean_object* v___x_2048_; -v_a_2047_ = lean_ctor_get(v___x_2046_, 0); -lean_inc(v_a_2047_); -lean_dec_ref(v___x_2046_); -v___x_2048_ = l_Lean_Elab_Do_ControlInfo_alternative(v_b_2002_, v_a_2047_); -v_a_2011_ = v___x_2048_; -goto v___jp_2010_; +lean_object* v_a_2052_; lean_object* v___x_2053_; +v_a_2052_ = lean_ctor_get(v___x_2051_, 0); +lean_inc(v_a_2052_); +lean_dec_ref(v___x_2051_); +v___x_2053_ = l_Lean_Elab_Do_ControlInfo_alternative(v_b_2007_, v_a_2052_); +v_a_2016_ = v___x_2053_; +goto v___jp_2015_; } else { -lean_dec_ref(v_b_2002_); -return v___x_2046_; +lean_dec_ref(v_b_2007_); +return v___x_2051_; } } } } } -v___jp_2010_: +v___jp_2015_: { -size_t v___x_2012_; size_t v___x_2013_; -v___x_2012_ = ((size_t)1ULL); -v___x_2013_ = lean_usize_add(v_i_2001_, v___x_2012_); -v_i_2001_ = v___x_2013_; -v_b_2002_ = v_a_2011_; +size_t v___x_2017_; size_t v___x_2018_; +v___x_2017_ = ((size_t)1ULL); +v___x_2018_ = lean_usize_add(v_i_2006_, v___x_2017_); +v_i_2006_ = v___x_2018_; +v_b_2007_ = v_a_2016_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(lean_object* v_as_2066_, size_t v_sz_2067_, size_t v_i_2068_, lean_object* v_b_2069_, lean_object* v___y_2070_, lean_object* v___y_2071_, lean_object* v___y_2072_, lean_object* v___y_2073_, lean_object* v___y_2074_, lean_object* v___y_2075_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(lean_object* v_as_2071_, size_t v_sz_2072_, size_t v_i_2073_, lean_object* v_b_2074_, lean_object* v___y_2075_, lean_object* v___y_2076_, lean_object* v___y_2077_, lean_object* v___y_2078_, lean_object* v___y_2079_, lean_object* v___y_2080_){ _start: { -lean_object* v_a_2078_; uint8_t v___x_2082_; -v___x_2082_ = lean_usize_dec_lt(v_i_2068_, v_sz_2067_); -if (v___x_2082_ == 0) +lean_object* v_a_2083_; uint8_t v___x_2087_; +v___x_2087_ = lean_usize_dec_lt(v_i_2073_, v_sz_2072_); +if (v___x_2087_ == 0) { -lean_object* v___x_2083_; -v___x_2083_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2083_, 0, v_b_2069_); -return v___x_2083_; +lean_object* v___x_2088_; +v___x_2088_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2088_, 0, v_b_2074_); +return v___x_2088_; } else { -lean_object* v___x_2084_; lean_object* v_a_2085_; lean_object* v___y_2087_; lean_object* v___y_2088_; lean_object* v___y_2089_; lean_object* v___y_2090_; lean_object* v___y_2091_; lean_object* v___y_2092_; lean_object* v___x_2098_; uint8_t v___x_2099_; -v___x_2084_ = lean_unsigned_to_nat(0u); -v_a_2085_ = lean_array_uget_borrowed(v_as_2066_, v_i_2068_); -v___x_2098_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__1)); -lean_inc(v_a_2085_); -v___x_2099_ = l_Lean_Syntax_isOfKind(v_a_2085_, v___x_2098_); -if (v___x_2099_ == 0) +lean_object* v___x_2089_; lean_object* v_a_2090_; lean_object* v___y_2092_; lean_object* v___y_2093_; lean_object* v___y_2094_; lean_object* v___y_2095_; lean_object* v___y_2096_; lean_object* v___y_2097_; lean_object* v___x_2103_; uint8_t v___x_2104_; +v___x_2089_ = lean_unsigned_to_nat(0u); +v_a_2090_ = lean_array_uget_borrowed(v_as_2071_, v_i_2073_); +v___x_2103_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__1)); +lean_inc(v_a_2090_); +v___x_2104_ = l_Lean_Syntax_isOfKind(v_a_2090_, v___x_2103_); +if (v___x_2104_ == 0) { -lean_object* v___x_2100_; uint8_t v___x_2101_; -v___x_2100_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__3)); -lean_inc(v_a_2085_); -v___x_2101_ = l_Lean_Syntax_isOfKind(v_a_2085_, v___x_2100_); -if (v___x_2101_ == 0) +lean_object* v___x_2105_; uint8_t v___x_2106_; +v___x_2105_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__3)); +lean_inc(v_a_2090_); +v___x_2106_ = l_Lean_Syntax_isOfKind(v_a_2090_, v___x_2105_); +if (v___x_2106_ == 0) { -lean_object* v___x_2102_; lean_object* v___x_2103_; lean_object* v___x_2104_; lean_object* v___x_2105_; lean_object* v___x_2106_; lean_object* v___x_2107_; lean_object* v___x_2108_; lean_object* v___x_2109_; -v___x_2102_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); -v___x_2103_ = lean_box(0); -lean_inc(v_a_2085_); -v___x_2104_ = l_Lean_Syntax_formatStx(v_a_2085_, v___x_2103_, v___x_2101_); -v___x_2105_ = l_Std_Format_defWidth; -v___x_2106_ = l_Std_Format_pretty(v___x_2104_, v___x_2105_, v___x_2084_, v___x_2084_); -v___x_2107_ = l_Lean_stringToMessageData(v___x_2106_); -v___x_2108_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2108_, 0, v___x_2102_); -lean_ctor_set(v___x_2108_, 1, v___x_2107_); -v___x_2109_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2108_, v___y_2070_, v___y_2071_, v___y_2072_, v___y_2073_, v___y_2074_, v___y_2075_); -if (lean_obj_tag(v___x_2109_) == 0) +lean_object* v___x_2107_; lean_object* v___x_2108_; lean_object* v___x_2109_; lean_object* v___x_2110_; lean_object* v___x_2111_; lean_object* v___x_2112_; lean_object* v___x_2113_; lean_object* v___x_2114_; +v___x_2107_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); +v___x_2108_ = lean_box(0); +lean_inc(v_a_2090_); +v___x_2109_ = l_Lean_Syntax_formatStx(v_a_2090_, v___x_2108_, v___x_2106_); +v___x_2110_ = l_Std_Format_defWidth; +v___x_2111_ = l_Std_Format_pretty(v___x_2109_, v___x_2110_, v___x_2089_, v___x_2089_); +v___x_2112_ = l_Lean_stringToMessageData(v___x_2111_); +v___x_2113_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2113_, 0, v___x_2107_); +lean_ctor_set(v___x_2113_, 1, v___x_2112_); +v___x_2114_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2113_, v___y_2075_, v___y_2076_, v___y_2077_, v___y_2078_, v___y_2079_, v___y_2080_); +if (lean_obj_tag(v___x_2114_) == 0) { -lean_dec_ref(v___x_2109_); -v_a_2078_ = v_b_2069_; -goto v___jp_2077_; +lean_dec_ref(v___x_2114_); +v_a_2083_ = v_b_2074_; +goto v___jp_2082_; } else { -lean_object* v_a_2110_; lean_object* v___x_2112_; uint8_t v_isShared_2113_; uint8_t v_isSharedCheck_2117_; -lean_dec_ref(v_b_2069_); -v_a_2110_ = lean_ctor_get(v___x_2109_, 0); -v_isSharedCheck_2117_ = !lean_is_exclusive(v___x_2109_); -if (v_isSharedCheck_2117_ == 0) +lean_object* v_a_2115_; lean_object* v___x_2117_; uint8_t v_isShared_2118_; uint8_t v_isSharedCheck_2122_; +lean_dec_ref(v_b_2074_); +v_a_2115_ = lean_ctor_get(v___x_2114_, 0); +v_isSharedCheck_2122_ = !lean_is_exclusive(v___x_2114_); +if (v_isSharedCheck_2122_ == 0) { -v___x_2112_ = v___x_2109_; -v_isShared_2113_ = v_isSharedCheck_2117_; -goto v_resetjp_2111_; +v___x_2117_ = v___x_2114_; +v_isShared_2118_ = v_isSharedCheck_2122_; +goto v_resetjp_2116_; } else { -lean_inc(v_a_2110_); -lean_dec(v___x_2109_); -v___x_2112_ = lean_box(0); -v_isShared_2113_ = v_isSharedCheck_2117_; -goto v_resetjp_2111_; +lean_inc(v_a_2115_); +lean_dec(v___x_2114_); +v___x_2117_ = lean_box(0); +v_isShared_2118_ = v_isSharedCheck_2122_; +goto v_resetjp_2116_; } -v_resetjp_2111_: +v_resetjp_2116_: { -lean_object* v___x_2115_; -if (v_isShared_2113_ == 0) +lean_object* v___x_2120_; +if (v_isShared_2118_ == 0) { -v___x_2115_ = v___x_2112_; -goto v_reusejp_2114_; +v___x_2120_ = v___x_2117_; +goto v_reusejp_2119_; } else { -lean_object* v_reuseFailAlloc_2116_; -v_reuseFailAlloc_2116_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2116_, 0, v_a_2110_); -v___x_2115_ = v_reuseFailAlloc_2116_; -goto v_reusejp_2114_; +lean_object* v_reuseFailAlloc_2121_; +v_reuseFailAlloc_2121_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2121_, 0, v_a_2115_); +v___x_2120_ = v_reuseFailAlloc_2121_; +goto v_reusejp_2119_; } -v_reusejp_2114_: +v_reusejp_2119_: { -return v___x_2115_; +return v___x_2120_; } } } } else { -lean_object* v___x_2118_; lean_object* v___x_2119_; lean_object* v___x_2120_; uint8_t v___x_2121_; -v___x_2118_ = lean_unsigned_to_nat(1u); -v___x_2119_ = l_Lean_Syntax_getArg(v_a_2085_, v___x_2118_); -v___x_2120_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__7)); -lean_inc(v___x_2119_); -v___x_2121_ = l_Lean_Syntax_isOfKind(v___x_2119_, v___x_2120_); -if (v___x_2121_ == 0) +lean_object* v___x_2123_; lean_object* v___x_2124_; lean_object* v___x_2125_; uint8_t v___x_2126_; +v___x_2123_ = lean_unsigned_to_nat(1u); +v___x_2124_ = l_Lean_Syntax_getArg(v_a_2090_, v___x_2123_); +v___x_2125_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__7)); +lean_inc(v___x_2124_); +v___x_2126_ = l_Lean_Syntax_isOfKind(v___x_2124_, v___x_2125_); +if (v___x_2126_ == 0) { -lean_object* v___x_2122_; lean_object* v___x_2123_; lean_object* v___x_2124_; lean_object* v___x_2125_; lean_object* v___x_2126_; lean_object* v___x_2127_; lean_object* v___x_2128_; lean_object* v___x_2129_; -lean_dec(v___x_2119_); -v___x_2122_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); -v___x_2123_ = lean_box(0); -lean_inc(v_a_2085_); -v___x_2124_ = l_Lean_Syntax_formatStx(v_a_2085_, v___x_2123_, v___x_2121_); -v___x_2125_ = l_Std_Format_defWidth; -v___x_2126_ = l_Std_Format_pretty(v___x_2124_, v___x_2125_, v___x_2084_, v___x_2084_); -v___x_2127_ = l_Lean_stringToMessageData(v___x_2126_); -v___x_2128_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2128_, 0, v___x_2122_); -lean_ctor_set(v___x_2128_, 1, v___x_2127_); -v___x_2129_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2128_, v___y_2070_, v___y_2071_, v___y_2072_, v___y_2073_, v___y_2074_, v___y_2075_); -if (lean_obj_tag(v___x_2129_) == 0) +lean_object* v___x_2127_; lean_object* v___x_2128_; lean_object* v___x_2129_; lean_object* v___x_2130_; lean_object* v___x_2131_; lean_object* v___x_2132_; lean_object* v___x_2133_; lean_object* v___x_2134_; +lean_dec(v___x_2124_); +v___x_2127_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); +v___x_2128_ = lean_box(0); +lean_inc(v_a_2090_); +v___x_2129_ = l_Lean_Syntax_formatStx(v_a_2090_, v___x_2128_, v___x_2126_); +v___x_2130_ = l_Std_Format_defWidth; +v___x_2131_ = l_Std_Format_pretty(v___x_2129_, v___x_2130_, v___x_2089_, v___x_2089_); +v___x_2132_ = l_Lean_stringToMessageData(v___x_2131_); +v___x_2133_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2133_, 0, v___x_2127_); +lean_ctor_set(v___x_2133_, 1, v___x_2132_); +v___x_2134_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2133_, v___y_2075_, v___y_2076_, v___y_2077_, v___y_2078_, v___y_2079_, v___y_2080_); +if (lean_obj_tag(v___x_2134_) == 0) { -lean_dec_ref(v___x_2129_); -v_a_2078_ = v_b_2069_; -goto v___jp_2077_; +lean_dec_ref(v___x_2134_); +v_a_2083_ = v_b_2074_; +goto v___jp_2082_; } else { -lean_object* v_a_2130_; lean_object* v___x_2132_; uint8_t v_isShared_2133_; uint8_t v_isSharedCheck_2137_; -lean_dec_ref(v_b_2069_); -v_a_2130_ = lean_ctor_get(v___x_2129_, 0); -v_isSharedCheck_2137_ = !lean_is_exclusive(v___x_2129_); -if (v_isSharedCheck_2137_ == 0) +lean_object* v_a_2135_; lean_object* v___x_2137_; uint8_t v_isShared_2138_; uint8_t v_isSharedCheck_2142_; +lean_dec_ref(v_b_2074_); +v_a_2135_ = lean_ctor_get(v___x_2134_, 0); +v_isSharedCheck_2142_ = !lean_is_exclusive(v___x_2134_); +if (v_isSharedCheck_2142_ == 0) { -v___x_2132_ = v___x_2129_; -v_isShared_2133_ = v_isSharedCheck_2137_; -goto v_resetjp_2131_; +v___x_2137_ = v___x_2134_; +v_isShared_2138_ = v_isSharedCheck_2142_; +goto v_resetjp_2136_; } else { -lean_inc(v_a_2130_); -lean_dec(v___x_2129_); -v___x_2132_ = lean_box(0); -v_isShared_2133_ = v_isSharedCheck_2137_; -goto v_resetjp_2131_; +lean_inc(v_a_2135_); +lean_dec(v___x_2134_); +v___x_2137_ = lean_box(0); +v_isShared_2138_ = v_isSharedCheck_2142_; +goto v_resetjp_2136_; } -v_resetjp_2131_: +v_resetjp_2136_: { -lean_object* v___x_2135_; -if (v_isShared_2133_ == 0) +lean_object* v___x_2140_; +if (v_isShared_2138_ == 0) { -v___x_2135_ = v___x_2132_; -goto v_reusejp_2134_; +v___x_2140_ = v___x_2137_; +goto v_reusejp_2139_; } else { -lean_object* v_reuseFailAlloc_2136_; -v_reuseFailAlloc_2136_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2136_, 0, v_a_2130_); -v___x_2135_ = v_reuseFailAlloc_2136_; -goto v_reusejp_2134_; +lean_object* v_reuseFailAlloc_2141_; +v_reuseFailAlloc_2141_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2141_, 0, v_a_2135_); +v___x_2140_ = v_reuseFailAlloc_2141_; +goto v_reusejp_2139_; } -v_reusejp_2134_: +v_reusejp_2139_: { -return v___x_2135_; +return v___x_2140_; } } } } else { -lean_object* v___x_2138_; lean_object* v___x_2139_; size_t v_sz_2140_; size_t v___x_2141_; lean_object* v___x_2142_; -v___x_2138_ = l_Lean_Syntax_getArg(v___x_2119_, v___x_2084_); -lean_dec(v___x_2119_); -v___x_2139_ = l_Lean_Syntax_getArgs(v___x_2138_); -lean_dec(v___x_2138_); -v_sz_2140_ = lean_array_size(v___x_2139_); -v___x_2141_ = ((size_t)0ULL); -v___x_2142_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(v___x_2099_, v___x_2139_, v_sz_2140_, v___x_2141_, v_b_2069_, v___y_2070_, v___y_2071_, v___y_2072_, v___y_2073_, v___y_2074_, v___y_2075_); -lean_dec_ref(v___x_2139_); -if (lean_obj_tag(v___x_2142_) == 0) +lean_object* v___x_2143_; lean_object* v___x_2144_; size_t v_sz_2145_; size_t v___x_2146_; lean_object* v___x_2147_; +v___x_2143_ = l_Lean_Syntax_getArg(v___x_2124_, v___x_2089_); +lean_dec(v___x_2124_); +v___x_2144_ = l_Lean_Syntax_getArgs(v___x_2143_); +lean_dec(v___x_2143_); +v_sz_2145_ = lean_array_size(v___x_2144_); +v___x_2146_ = ((size_t)0ULL); +v___x_2147_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(v___x_2104_, v___x_2144_, v_sz_2145_, v___x_2146_, v_b_2074_, v___y_2075_, v___y_2076_, v___y_2077_, v___y_2078_, v___y_2079_, v___y_2080_); +lean_dec_ref(v___x_2144_); +if (lean_obj_tag(v___x_2147_) == 0) { -lean_object* v_a_2143_; -v_a_2143_ = lean_ctor_get(v___x_2142_, 0); -lean_inc(v_a_2143_); -lean_dec_ref(v___x_2142_); -v_a_2078_ = v_a_2143_; -goto v___jp_2077_; +lean_object* v_a_2148_; +v_a_2148_ = lean_ctor_get(v___x_2147_, 0); +lean_inc(v_a_2148_); +lean_dec_ref(v___x_2147_); +v_a_2083_ = v_a_2148_; +goto v___jp_2082_; } else { -return v___x_2142_; +return v___x_2147_; } } } } else { -lean_object* v___x_2144_; lean_object* v___x_2145_; uint8_t v___x_2146_; -v___x_2144_ = lean_unsigned_to_nat(2u); -v___x_2145_ = l_Lean_Syntax_getArg(v_a_2085_, v___x_2144_); -v___x_2146_ = l_Lean_Syntax_isNone(v___x_2145_); -if (v___x_2146_ == 0) +lean_object* v___x_2149_; lean_object* v___x_2150_; uint8_t v___x_2151_; +v___x_2149_ = lean_unsigned_to_nat(2u); +v___x_2150_ = l_Lean_Syntax_getArg(v_a_2090_, v___x_2149_); +v___x_2151_ = l_Lean_Syntax_isNone(v___x_2150_); +if (v___x_2151_ == 0) { -uint8_t v___x_2147_; -v___x_2147_ = l_Lean_Syntax_matchesNull(v___x_2145_, v___x_2144_); -if (v___x_2147_ == 0) +uint8_t v___x_2152_; +v___x_2152_ = l_Lean_Syntax_matchesNull(v___x_2150_, v___x_2149_); +if (v___x_2152_ == 0) { -lean_object* v___x_2148_; lean_object* v___x_2149_; lean_object* v___x_2150_; lean_object* v___x_2151_; lean_object* v___x_2152_; lean_object* v___x_2153_; lean_object* v___x_2154_; lean_object* v___x_2155_; -v___x_2148_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); -v___x_2149_ = lean_box(0); -lean_inc(v_a_2085_); -v___x_2150_ = l_Lean_Syntax_formatStx(v_a_2085_, v___x_2149_, v___x_2147_); -v___x_2151_ = l_Std_Format_defWidth; -v___x_2152_ = l_Std_Format_pretty(v___x_2150_, v___x_2151_, v___x_2084_, v___x_2084_); -v___x_2153_ = l_Lean_stringToMessageData(v___x_2152_); -v___x_2154_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2154_, 0, v___x_2148_); -lean_ctor_set(v___x_2154_, 1, v___x_2153_); -v___x_2155_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2154_, v___y_2070_, v___y_2071_, v___y_2072_, v___y_2073_, v___y_2074_, v___y_2075_); -if (lean_obj_tag(v___x_2155_) == 0) +lean_object* v___x_2153_; lean_object* v___x_2154_; lean_object* v___x_2155_; lean_object* v___x_2156_; lean_object* v___x_2157_; lean_object* v___x_2158_; lean_object* v___x_2159_; lean_object* v___x_2160_; +v___x_2153_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5, &l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5_once, _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__5); +v___x_2154_ = lean_box(0); +lean_inc(v_a_2090_); +v___x_2155_ = l_Lean_Syntax_formatStx(v_a_2090_, v___x_2154_, v___x_2152_); +v___x_2156_ = l_Std_Format_defWidth; +v___x_2157_ = l_Std_Format_pretty(v___x_2155_, v___x_2156_, v___x_2089_, v___x_2089_); +v___x_2158_ = l_Lean_stringToMessageData(v___x_2157_); +v___x_2159_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2159_, 0, v___x_2153_); +lean_ctor_set(v___x_2159_, 1, v___x_2158_); +v___x_2160_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2159_, v___y_2075_, v___y_2076_, v___y_2077_, v___y_2078_, v___y_2079_, v___y_2080_); +if (lean_obj_tag(v___x_2160_) == 0) { -lean_dec_ref(v___x_2155_); -v_a_2078_ = v_b_2069_; -goto v___jp_2077_; +lean_dec_ref(v___x_2160_); +v_a_2083_ = v_b_2074_; +goto v___jp_2082_; } else { -lean_object* v_a_2156_; lean_object* v___x_2158_; uint8_t v_isShared_2159_; uint8_t v_isSharedCheck_2163_; -lean_dec_ref(v_b_2069_); -v_a_2156_ = lean_ctor_get(v___x_2155_, 0); -v_isSharedCheck_2163_ = !lean_is_exclusive(v___x_2155_); -if (v_isSharedCheck_2163_ == 0) +lean_object* v_a_2161_; lean_object* v___x_2163_; uint8_t v_isShared_2164_; uint8_t v_isSharedCheck_2168_; +lean_dec_ref(v_b_2074_); +v_a_2161_ = lean_ctor_get(v___x_2160_, 0); +v_isSharedCheck_2168_ = !lean_is_exclusive(v___x_2160_); +if (v_isSharedCheck_2168_ == 0) { -v___x_2158_ = v___x_2155_; -v_isShared_2159_ = v_isSharedCheck_2163_; -goto v_resetjp_2157_; +v___x_2163_ = v___x_2160_; +v_isShared_2164_ = v_isSharedCheck_2168_; +goto v_resetjp_2162_; } else { -lean_inc(v_a_2156_); -lean_dec(v___x_2155_); -v___x_2158_ = lean_box(0); -v_isShared_2159_ = v_isSharedCheck_2163_; -goto v_resetjp_2157_; +lean_inc(v_a_2161_); +lean_dec(v___x_2160_); +v___x_2163_ = lean_box(0); +v_isShared_2164_ = v_isSharedCheck_2168_; +goto v_resetjp_2162_; } -v_resetjp_2157_: +v_resetjp_2162_: { -lean_object* v___x_2161_; -if (v_isShared_2159_ == 0) +lean_object* v___x_2166_; +if (v_isShared_2164_ == 0) { -v___x_2161_ = v___x_2158_; -goto v_reusejp_2160_; +v___x_2166_ = v___x_2163_; +goto v_reusejp_2165_; } else { -lean_object* v_reuseFailAlloc_2162_; -v_reuseFailAlloc_2162_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2162_, 0, v_a_2156_); -v___x_2161_ = v_reuseFailAlloc_2162_; -goto v_reusejp_2160_; +lean_object* v_reuseFailAlloc_2167_; +v_reuseFailAlloc_2167_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2167_, 0, v_a_2161_); +v___x_2166_ = v_reuseFailAlloc_2167_; +goto v_reusejp_2165_; } -v_reusejp_2160_: +v_reusejp_2165_: { -return v___x_2161_; +return v___x_2166_; } } } } else { -v___y_2087_ = v___y_2070_; -v___y_2088_ = v___y_2071_; -v___y_2089_ = v___y_2072_; -v___y_2090_ = v___y_2073_; -v___y_2091_ = v___y_2074_; v___y_2092_ = v___y_2075_; -goto v___jp_2086_; +v___y_2093_ = v___y_2076_; +v___y_2094_ = v___y_2077_; +v___y_2095_ = v___y_2078_; +v___y_2096_ = v___y_2079_; +v___y_2097_ = v___y_2080_; +goto v___jp_2091_; } } else { -lean_dec(v___x_2145_); -v___y_2087_ = v___y_2070_; -v___y_2088_ = v___y_2071_; -v___y_2089_ = v___y_2072_; -v___y_2090_ = v___y_2073_; -v___y_2091_ = v___y_2074_; +lean_dec(v___x_2150_); v___y_2092_ = v___y_2075_; -goto v___jp_2086_; +v___y_2093_ = v___y_2076_; +v___y_2094_ = v___y_2077_; +v___y_2095_ = v___y_2078_; +v___y_2096_ = v___y_2079_; +v___y_2097_ = v___y_2080_; +goto v___jp_2091_; } } -v___jp_2086_: +v___jp_2091_: { -lean_object* v___x_2093_; lean_object* v___x_2094_; lean_object* v___x_2095_; -v___x_2093_ = lean_unsigned_to_nat(4u); -v___x_2094_ = l_Lean_Syntax_getArg(v_a_2085_, v___x_2093_); -v___x_2095_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2094_, v___y_2087_, v___y_2088_, v___y_2089_, v___y_2090_, v___y_2091_, v___y_2092_); -if (lean_obj_tag(v___x_2095_) == 0) +lean_object* v___x_2098_; lean_object* v___x_2099_; lean_object* v___x_2100_; +v___x_2098_ = lean_unsigned_to_nat(4u); +v___x_2099_ = l_Lean_Syntax_getArg(v_a_2090_, v___x_2098_); +v___x_2100_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2099_, v___y_2092_, v___y_2093_, v___y_2094_, v___y_2095_, v___y_2096_, v___y_2097_); +if (lean_obj_tag(v___x_2100_) == 0) { -lean_object* v_a_2096_; lean_object* v___x_2097_; -v_a_2096_ = lean_ctor_get(v___x_2095_, 0); -lean_inc(v_a_2096_); -lean_dec_ref(v___x_2095_); -v___x_2097_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_2096_, v_b_2069_); -v_a_2078_ = v___x_2097_; -goto v___jp_2077_; +lean_object* v_a_2101_; lean_object* v___x_2102_; +v_a_2101_ = lean_ctor_get(v___x_2100_, 0); +lean_inc(v_a_2101_); +lean_dec_ref(v___x_2100_); +v___x_2102_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_2101_, v_b_2074_); +v_a_2083_ = v___x_2102_; +goto v___jp_2082_; } else { -lean_dec_ref(v_b_2069_); -return v___x_2095_; +lean_dec_ref(v_b_2074_); +return v___x_2100_; } } } -v___jp_2077_: +v___jp_2082_: { -size_t v___x_2079_; size_t v___x_2080_; -v___x_2079_ = ((size_t)1ULL); -v___x_2080_ = lean_usize_add(v_i_2068_, v___x_2079_); -v_i_2068_ = v___x_2080_; -v_b_2069_ = v_a_2078_; +size_t v___x_2084_; size_t v___x_2085_; +v___x_2084_ = ((size_t)1ULL); +v___x_2085_ = lean_usize_add(v_i_2073_, v___x_2084_); +v_i_2073_ = v___x_2085_; +v_b_2074_ = v_a_2083_; goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(lean_object* v_stx_x3f_2164_, lean_object* v_a_2165_, lean_object* v_a_2166_, lean_object* v_a_2167_, lean_object* v_a_2168_, lean_object* v_a_2169_, lean_object* v_a_2170_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(lean_object* v_stx_x3f_2169_, lean_object* v_a_2170_, lean_object* v_a_2171_, lean_object* v_a_2172_, lean_object* v_a_2173_, lean_object* v_a_2174_, lean_object* v_a_2175_){ _start: { -if (lean_obj_tag(v_stx_x3f_2164_) == 0) +if (lean_obj_tag(v_stx_x3f_2169_) == 0) { -lean_object* v___x_2172_; lean_object* v___x_2173_; -v___x_2172_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); -v___x_2173_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2173_, 0, v___x_2172_); -return v___x_2173_; +lean_object* v___x_2177_; lean_object* v___x_2178_; +v___x_2177_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); +v___x_2178_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2178_, 0, v___x_2177_); +return v___x_2178_; } else { -lean_object* v_val_2174_; lean_object* v___x_2175_; -v_val_2174_ = lean_ctor_get(v_stx_x3f_2164_, 0); -lean_inc(v_val_2174_); -lean_dec_ref(v_stx_x3f_2164_); -v___x_2175_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2174_, v_a_2165_, v_a_2166_, v_a_2167_, v_a_2168_, v_a_2169_, v_a_2170_); -return v___x_2175_; +lean_object* v_val_2179_; lean_object* v___x_2180_; +v_val_2179_ = lean_ctor_get(v_stx_x3f_2169_, 0); +lean_inc(v_val_2179_); +lean_dec_ref(v_stx_x3f_2169_); +v___x_2180_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2179_, v_a_2170_, v_a_2171_, v_a_2172_, v_a_2173_, v_a_2174_, v_a_2175_); +return v___x_2180_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(uint8_t v___x_2182_, lean_object* v_as_2183_, size_t v_sz_2184_, size_t v_i_2185_, lean_object* v_b_2186_, lean_object* v___y_2187_, lean_object* v___y_2188_, lean_object* v___y_2189_, lean_object* v___y_2190_, lean_object* v___y_2191_, lean_object* v___y_2192_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(uint8_t v___x_2187_, lean_object* v_as_2188_, size_t v_sz_2189_, size_t v_i_2190_, lean_object* v_b_2191_, lean_object* v___y_2192_, lean_object* v___y_2193_, lean_object* v___y_2194_, lean_object* v___y_2195_, lean_object* v___y_2196_, lean_object* v___y_2197_){ _start: { -lean_object* v_a_2195_; uint8_t v___x_2199_; -v___x_2199_ = lean_usize_dec_lt(v_i_2185_, v_sz_2184_); -if (v___x_2199_ == 0) +lean_object* v_a_2200_; uint8_t v___x_2204_; +v___x_2204_ = lean_usize_dec_lt(v_i_2190_, v_sz_2189_); +if (v___x_2204_ == 0) { -lean_object* v___x_2200_; -v___x_2200_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2200_, 0, v_b_2186_); -return v___x_2200_; +lean_object* v___x_2205_; +v___x_2205_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2205_, 0, v_b_2191_); +return v___x_2205_; } else { -lean_object* v___x_2201_; lean_object* v_a_2202_; uint8_t v___x_2203_; -v___x_2201_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__1)); -v_a_2202_ = lean_array_uget_borrowed(v_as_2183_, v_i_2185_); -lean_inc(v_a_2202_); -v___x_2203_ = l_Lean_Syntax_isOfKind(v_a_2202_, v___x_2201_); -if (v___x_2203_ == 0) +lean_object* v___x_2206_; lean_object* v_a_2207_; uint8_t v___x_2208_; +v___x_2206_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__1)); +v_a_2207_ = lean_array_uget_borrowed(v_as_2188_, v_i_2190_); +lean_inc(v_a_2207_); +v___x_2208_ = l_Lean_Syntax_isOfKind(v_a_2207_, v___x_2206_); +if (v___x_2208_ == 0) { -lean_object* v___x_2204_; -v___x_2204_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -if (lean_obj_tag(v___x_2204_) == 0) +lean_object* v___x_2209_; +v___x_2209_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +if (lean_obj_tag(v___x_2209_) == 0) { -lean_dec_ref(v___x_2204_); -v_a_2195_ = v_b_2186_; -goto v___jp_2194_; +lean_dec_ref(v___x_2209_); +v_a_2200_ = v_b_2191_; +goto v___jp_2199_; } else { -lean_object* v_a_2205_; lean_object* v___x_2207_; uint8_t v_isShared_2208_; uint8_t v_isSharedCheck_2212_; -lean_dec_ref(v_b_2186_); -v_a_2205_ = lean_ctor_get(v___x_2204_, 0); -v_isSharedCheck_2212_ = !lean_is_exclusive(v___x_2204_); -if (v_isSharedCheck_2212_ == 0) +lean_object* v_a_2210_; lean_object* v___x_2212_; uint8_t v_isShared_2213_; uint8_t v_isSharedCheck_2217_; +lean_dec_ref(v_b_2191_); +v_a_2210_ = lean_ctor_get(v___x_2209_, 0); +v_isSharedCheck_2217_ = !lean_is_exclusive(v___x_2209_); +if (v_isSharedCheck_2217_ == 0) { -v___x_2207_ = v___x_2204_; -v_isShared_2208_ = v_isSharedCheck_2212_; -goto v_resetjp_2206_; +v___x_2212_ = v___x_2209_; +v_isShared_2213_ = v_isSharedCheck_2217_; +goto v_resetjp_2211_; } else { -lean_inc(v_a_2205_); -lean_dec(v___x_2204_); -v___x_2207_ = lean_box(0); -v_isShared_2208_ = v_isSharedCheck_2212_; -goto v_resetjp_2206_; +lean_inc(v_a_2210_); +lean_dec(v___x_2209_); +v___x_2212_ = lean_box(0); +v_isShared_2213_ = v_isSharedCheck_2217_; +goto v_resetjp_2211_; } -v_resetjp_2206_: +v_resetjp_2211_: { -lean_object* v___x_2210_; -if (v_isShared_2208_ == 0) +lean_object* v___x_2215_; +if (v_isShared_2213_ == 0) { -v___x_2210_ = v___x_2207_; -goto v_reusejp_2209_; +v___x_2215_ = v___x_2212_; +goto v_reusejp_2214_; } else { -lean_object* v_reuseFailAlloc_2211_; -v_reuseFailAlloc_2211_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2211_, 0, v_a_2205_); -v___x_2210_ = v_reuseFailAlloc_2211_; -goto v_reusejp_2209_; +lean_object* v_reuseFailAlloc_2216_; +v_reuseFailAlloc_2216_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2216_, 0, v_a_2210_); +v___x_2215_ = v_reuseFailAlloc_2216_; +goto v_reusejp_2214_; } -v_reusejp_2209_: +v_reusejp_2214_: { -return v___x_2210_; +return v___x_2215_; } } } } else { -lean_object* v___x_2213_; lean_object* v___x_2214_; lean_object* v___y_2216_; lean_object* v___x_2233_; lean_object* v___x_2234_; lean_object* v___x_2235_; lean_object* v___x_2236_; lean_object* v___x_2237_; uint8_t v___x_2238_; -v___x_2213_ = lean_unsigned_to_nat(1u); -v___x_2214_ = lean_unsigned_to_nat(3u); -v___x_2233_ = l_Lean_Syntax_getArg(v_a_2202_, v___x_2213_); -v___x_2234_ = l_Lean_Syntax_getArgs(v___x_2233_); -lean_dec(v___x_2233_); -v___x_2235_ = lean_unsigned_to_nat(0u); -v___x_2236_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); -v___x_2237_ = lean_array_get_size(v___x_2234_); -v___x_2238_ = lean_nat_dec_lt(v___x_2235_, v___x_2237_); -if (v___x_2238_ == 0) +lean_object* v___x_2218_; lean_object* v___x_2219_; lean_object* v___y_2221_; lean_object* v___x_2238_; lean_object* v___x_2239_; lean_object* v___x_2240_; lean_object* v___x_2241_; lean_object* v___x_2242_; uint8_t v___x_2243_; +v___x_2218_ = lean_unsigned_to_nat(1u); +v___x_2219_ = lean_unsigned_to_nat(3u); +v___x_2238_ = l_Lean_Syntax_getArg(v_a_2207_, v___x_2218_); +v___x_2239_ = l_Lean_Syntax_getArgs(v___x_2238_); +lean_dec(v___x_2238_); +v___x_2240_ = lean_unsigned_to_nat(0u); +v___x_2241_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); +v___x_2242_ = lean_array_get_size(v___x_2239_); +v___x_2243_ = lean_nat_dec_lt(v___x_2240_, v___x_2242_); +if (v___x_2243_ == 0) { -lean_dec_ref(v___x_2234_); -v___y_2216_ = v___x_2236_; -goto v___jp_2215_; +lean_dec_ref(v___x_2239_); +v___y_2221_ = v___x_2241_; +goto v___jp_2220_; } else { -lean_object* v___x_2239_; lean_object* v___x_2240_; uint8_t v___x_2241_; -v___x_2239_ = lean_box(v___x_2203_); -v___x_2240_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2240_, 0, v___x_2239_); -lean_ctor_set(v___x_2240_, 1, v___x_2236_); -v___x_2241_ = lean_nat_dec_le(v___x_2237_, v___x_2237_); -if (v___x_2241_ == 0) +lean_object* v___x_2244_; lean_object* v___x_2245_; uint8_t v___x_2246_; +v___x_2244_ = lean_box(v___x_2208_); +v___x_2245_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2245_, 0, v___x_2244_); +lean_ctor_set(v___x_2245_, 1, v___x_2241_); +v___x_2246_ = lean_nat_dec_le(v___x_2242_, v___x_2242_); +if (v___x_2246_ == 0) { -if (v___x_2238_ == 0) +if (v___x_2243_ == 0) { -lean_dec_ref(v___x_2240_); -lean_dec_ref(v___x_2234_); -v___y_2216_ = v___x_2236_; -goto v___jp_2215_; +lean_dec_ref(v___x_2245_); +lean_dec_ref(v___x_2239_); +v___y_2221_ = v___x_2241_; +goto v___jp_2220_; } else { -size_t v___x_2242_; size_t v___x_2243_; lean_object* v___x_2244_; lean_object* v_snd_2245_; -v___x_2242_ = ((size_t)0ULL); -v___x_2243_ = lean_usize_of_nat(v___x_2237_); -v___x_2244_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2203_, v___x_2182_, v___x_2234_, v___x_2242_, v___x_2243_, v___x_2240_); -lean_dec_ref(v___x_2234_); -v_snd_2245_ = lean_ctor_get(v___x_2244_, 1); -lean_inc(v_snd_2245_); -lean_dec_ref(v___x_2244_); -v___y_2216_ = v_snd_2245_; -goto v___jp_2215_; +size_t v___x_2247_; size_t v___x_2248_; lean_object* v___x_2249_; lean_object* v_snd_2250_; +v___x_2247_ = ((size_t)0ULL); +v___x_2248_ = lean_usize_of_nat(v___x_2242_); +v___x_2249_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2208_, v___x_2187_, v___x_2239_, v___x_2247_, v___x_2248_, v___x_2245_); +lean_dec_ref(v___x_2239_); +v_snd_2250_ = lean_ctor_get(v___x_2249_, 1); +lean_inc(v_snd_2250_); +lean_dec_ref(v___x_2249_); +v___y_2221_ = v_snd_2250_; +goto v___jp_2220_; } } else { -size_t v___x_2246_; size_t v___x_2247_; lean_object* v___x_2248_; lean_object* v_snd_2249_; -v___x_2246_ = ((size_t)0ULL); -v___x_2247_ = lean_usize_of_nat(v___x_2237_); -v___x_2248_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2203_, v___x_2182_, v___x_2234_, v___x_2246_, v___x_2247_, v___x_2240_); -lean_dec_ref(v___x_2234_); -v_snd_2249_ = lean_ctor_get(v___x_2248_, 1); -lean_inc(v_snd_2249_); -lean_dec_ref(v___x_2248_); -v___y_2216_ = v_snd_2249_; -goto v___jp_2215_; +size_t v___x_2251_; size_t v___x_2252_; lean_object* v___x_2253_; lean_object* v_snd_2254_; +v___x_2251_ = ((size_t)0ULL); +v___x_2252_ = lean_usize_of_nat(v___x_2242_); +v___x_2253_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2208_, v___x_2187_, v___x_2239_, v___x_2251_, v___x_2252_, v___x_2245_); +lean_dec_ref(v___x_2239_); +v_snd_2254_ = lean_ctor_get(v___x_2253_, 1); +lean_inc(v_snd_2254_); +lean_dec_ref(v___x_2253_); +v___y_2221_ = v_snd_2254_; +goto v___jp_2220_; } } -v___jp_2215_: +v___jp_2220_: { -size_t v_sz_2217_; size_t v___x_2218_; lean_object* v___x_2219_; -v_sz_2217_ = lean_array_size(v___y_2216_); -v___x_2218_ = ((size_t)0ULL); -v___x_2219_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_2217_, v___x_2218_, v___y_2216_); -if (lean_obj_tag(v___x_2219_) == 0) +size_t v_sz_2222_; size_t v___x_2223_; lean_object* v___x_2224_; +v_sz_2222_ = lean_array_size(v___y_2221_); +v___x_2223_ = ((size_t)0ULL); +v___x_2224_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__8(v_sz_2222_, v___x_2223_, v___y_2221_); +if (lean_obj_tag(v___x_2224_) == 0) { -lean_object* v___x_2220_; -v___x_2220_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -if (lean_obj_tag(v___x_2220_) == 0) +lean_object* v___x_2225_; +v___x_2225_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +if (lean_obj_tag(v___x_2225_) == 0) { -lean_dec_ref(v___x_2220_); -v_a_2195_ = v_b_2186_; -goto v___jp_2194_; +lean_dec_ref(v___x_2225_); +v_a_2200_ = v_b_2191_; +goto v___jp_2199_; } else { -lean_object* v_a_2221_; lean_object* v___x_2223_; uint8_t v_isShared_2224_; uint8_t v_isSharedCheck_2228_; -lean_dec_ref(v_b_2186_); -v_a_2221_ = lean_ctor_get(v___x_2220_, 0); -v_isSharedCheck_2228_ = !lean_is_exclusive(v___x_2220_); -if (v_isSharedCheck_2228_ == 0) +lean_object* v_a_2226_; lean_object* v___x_2228_; uint8_t v_isShared_2229_; uint8_t v_isSharedCheck_2233_; +lean_dec_ref(v_b_2191_); +v_a_2226_ = lean_ctor_get(v___x_2225_, 0); +v_isSharedCheck_2233_ = !lean_is_exclusive(v___x_2225_); +if (v_isSharedCheck_2233_ == 0) { -v___x_2223_ = v___x_2220_; -v_isShared_2224_ = v_isSharedCheck_2228_; -goto v_resetjp_2222_; +v___x_2228_ = v___x_2225_; +v_isShared_2229_ = v_isSharedCheck_2233_; +goto v_resetjp_2227_; } else { -lean_inc(v_a_2221_); -lean_dec(v___x_2220_); -v___x_2223_ = lean_box(0); -v_isShared_2224_ = v_isSharedCheck_2228_; -goto v_resetjp_2222_; +lean_inc(v_a_2226_); +lean_dec(v___x_2225_); +v___x_2228_ = lean_box(0); +v_isShared_2229_ = v_isSharedCheck_2233_; +goto v_resetjp_2227_; } -v_resetjp_2222_: +v_resetjp_2227_: { -lean_object* v___x_2226_; -if (v_isShared_2224_ == 0) +lean_object* v___x_2231_; +if (v_isShared_2229_ == 0) { -v___x_2226_ = v___x_2223_; -goto v_reusejp_2225_; +v___x_2231_ = v___x_2228_; +goto v_reusejp_2230_; } else { -lean_object* v_reuseFailAlloc_2227_; -v_reuseFailAlloc_2227_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2227_, 0, v_a_2221_); -v___x_2226_ = v_reuseFailAlloc_2227_; -goto v_reusejp_2225_; +lean_object* v_reuseFailAlloc_2232_; +v_reuseFailAlloc_2232_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2232_, 0, v_a_2226_); +v___x_2231_ = v_reuseFailAlloc_2232_; +goto v_reusejp_2230_; } -v_reusejp_2225_: +v_reusejp_2230_: { -return v___x_2226_; +return v___x_2231_; } } } } else { -lean_object* v___x_2229_; lean_object* v___x_2230_; -lean_dec_ref(v___x_2219_); -v___x_2229_ = l_Lean_Syntax_getArg(v_a_2202_, v___x_2214_); -v___x_2230_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2229_, v___y_2187_, v___y_2188_, v___y_2189_, v___y_2190_, v___y_2191_, v___y_2192_); -if (lean_obj_tag(v___x_2230_) == 0) +lean_object* v___x_2234_; lean_object* v___x_2235_; +lean_dec_ref(v___x_2224_); +v___x_2234_ = l_Lean_Syntax_getArg(v_a_2207_, v___x_2219_); +v___x_2235_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2234_, v___y_2192_, v___y_2193_, v___y_2194_, v___y_2195_, v___y_2196_, v___y_2197_); +if (lean_obj_tag(v___x_2235_) == 0) { -lean_object* v_a_2231_; lean_object* v___x_2232_; -v_a_2231_ = lean_ctor_get(v___x_2230_, 0); -lean_inc(v_a_2231_); -lean_dec_ref(v___x_2230_); -v___x_2232_ = l_Lean_Elab_Do_ControlInfo_alternative(v_b_2186_, v_a_2231_); -v_a_2195_ = v___x_2232_; -goto v___jp_2194_; +lean_object* v_a_2236_; lean_object* v___x_2237_; +v_a_2236_ = lean_ctor_get(v___x_2235_, 0); +lean_inc(v_a_2236_); +lean_dec_ref(v___x_2235_); +v___x_2237_ = l_Lean_Elab_Do_ControlInfo_alternative(v_b_2191_, v_a_2236_); +v_a_2200_ = v___x_2237_; +goto v___jp_2199_; } else { -lean_dec_ref(v_b_2186_); -return v___x_2230_; +lean_dec_ref(v_b_2191_); +return v___x_2235_; } } } } } -v___jp_2194_: +v___jp_2199_: { -size_t v___x_2196_; size_t v___x_2197_; -v___x_2196_ = ((size_t)1ULL); -v___x_2197_ = lean_usize_add(v_i_2185_, v___x_2196_); -v_i_2185_ = v___x_2197_; -v_b_2186_ = v_a_2195_; +size_t v___x_2201_; size_t v___x_2202_; +v___x_2201_ = ((size_t)1ULL); +v___x_2202_ = lean_usize_add(v_i_2190_, v___x_2201_); +v_i_2190_ = v___x_2202_; +v_b_2191_ = v_a_2200_; goto _start; } } @@ -6338,407 +6355,407 @@ goto _start; static lean_object* _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83(void){ _start: { -lean_object* v___x_2286_; lean_object* v___x_2287_; uint8_t v___x_2288_; uint8_t v___x_2289_; lean_object* v___x_2290_; -v___x_2286_ = l_Lean_NameSet_empty; -v___x_2287_ = lean_unsigned_to_nat(0u); -v___x_2288_ = 0; -v___x_2289_ = 1; -v___x_2290_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_2290_, 0, v___x_2287_); -lean_ctor_set(v___x_2290_, 1, v___x_2286_); -lean_ctor_set_uint8(v___x_2290_, sizeof(void*)*2, v___x_2289_); -lean_ctor_set_uint8(v___x_2290_, sizeof(void*)*2 + 1, v___x_2288_); -lean_ctor_set_uint8(v___x_2290_, sizeof(void*)*2 + 2, v___x_2288_); -return v___x_2290_; +lean_object* v___x_2291_; lean_object* v___x_2292_; uint8_t v___x_2293_; uint8_t v___x_2294_; lean_object* v___x_2295_; +v___x_2291_ = l_Lean_NameSet_empty; +v___x_2292_ = lean_unsigned_to_nat(0u); +v___x_2293_ = 0; +v___x_2294_ = 1; +v___x_2295_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_2295_, 0, v___x_2292_); +lean_ctor_set(v___x_2295_, 1, v___x_2291_); +lean_ctor_set_uint8(v___x_2295_, sizeof(void*)*2, v___x_2294_); +lean_ctor_set_uint8(v___x_2295_, sizeof(void*)*2 + 1, v___x_2293_); +lean_ctor_set_uint8(v___x_2295_, sizeof(void*)*2 + 2, v___x_2293_); +return v___x_2295_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofElem(lean_object* v_stx_2291_, lean_object* v_a_2292_, lean_object* v_a_2293_, lean_object* v_a_2294_, lean_object* v_a_2295_, lean_object* v_a_2296_, lean_object* v_a_2297_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofElem(lean_object* v_stx_2296_, lean_object* v_a_2297_, lean_object* v_a_2298_, lean_object* v_a_2299_, lean_object* v_a_2300_, lean_object* v_a_2301_, lean_object* v_a_2302_){ _start: { -lean_object* v___y_2300_; lean_object* v___y_2301_; lean_object* v___y_2302_; lean_object* v___y_2303_; lean_object* v___y_2304_; lean_object* v___y_2305_; lean_object* v___y_2306_; lean_object* v___y_2307_; lean_object* v___y_2313_; lean_object* v_bodyInfo_2314_; lean_object* v___y_2318_; lean_object* v_bodyInfo_2319_; lean_object* v___x_2322_; lean_object* v_env_2323_; lean_object* v___x_2324_; lean_object* v___x_2325_; -v___x_2322_ = lean_st_ref_get(v_a_2297_); -v_env_2323_ = lean_ctor_get(v___x_2322_, 0); -lean_inc_ref(v_env_2323_); -lean_dec(v___x_2322_); -lean_inc(v_stx_2291_); -v___x_2324_ = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); -lean_closure_set(v___x_2324_, 0, v_env_2323_); -lean_closure_set(v___x_2324_, 1, v_stx_2291_); -v___x_2325_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v___x_2324_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2325_) == 0) +lean_object* v___y_2305_; lean_object* v___y_2306_; lean_object* v___y_2307_; lean_object* v___y_2308_; lean_object* v___y_2309_; lean_object* v___y_2310_; lean_object* v___y_2311_; lean_object* v___y_2312_; lean_object* v___y_2318_; lean_object* v_bodyInfo_2319_; lean_object* v___y_2323_; lean_object* v_bodyInfo_2324_; lean_object* v___x_2327_; lean_object* v_env_2328_; lean_object* v___x_2329_; lean_object* v___x_2330_; +v___x_2327_ = lean_st_ref_get(v_a_2302_); +v_env_2328_ = lean_ctor_get(v___x_2327_, 0); +lean_inc_ref(v_env_2328_); +lean_dec(v___x_2327_); +lean_inc(v_stx_2296_); +v___x_2329_ = lean_alloc_closure((void*)(l_Lean_Elab_expandMacroImpl_x3f___boxed), 4, 2); +lean_closure_set(v___x_2329_, 0, v_env_2328_); +lean_closure_set(v___x_2329_, 1, v_stx_2296_); +v___x_2330_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v___x_2329_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2330_) == 0) { -lean_object* v_a_2326_; lean_object* v___x_2328_; uint8_t v_isShared_2329_; uint8_t v_isSharedCheck_4378_; -v_a_2326_ = lean_ctor_get(v___x_2325_, 0); -v_isSharedCheck_4378_ = !lean_is_exclusive(v___x_2325_); -if (v_isSharedCheck_4378_ == 0) +lean_object* v_a_2331_; lean_object* v___x_2333_; uint8_t v_isShared_2334_; uint8_t v_isSharedCheck_4387_; +v_a_2331_ = lean_ctor_get(v___x_2330_, 0); +v_isSharedCheck_4387_ = !lean_is_exclusive(v___x_2330_); +if (v_isSharedCheck_4387_ == 0) { -v___x_2328_ = v___x_2325_; -v_isShared_2329_ = v_isSharedCheck_4378_; -goto v_resetjp_2327_; +v___x_2333_ = v___x_2330_; +v_isShared_2334_ = v_isSharedCheck_4387_; +goto v_resetjp_2332_; } else { -lean_inc(v_a_2326_); -lean_dec(v___x_2325_); -v___x_2328_ = lean_box(0); -v_isShared_2329_ = v_isSharedCheck_4378_; -goto v_resetjp_2327_; +lean_inc(v_a_2331_); +lean_dec(v___x_2330_); +v___x_2333_ = lean_box(0); +v_isShared_2334_ = v_isSharedCheck_4387_; +goto v_resetjp_2332_; } -v_resetjp_2327_: +v_resetjp_2332_: { -if (lean_obj_tag(v_a_2326_) == 1) +if (lean_obj_tag(v_a_2331_) == 1) { -lean_object* v_val_2330_; lean_object* v_snd_2331_; lean_object* v___x_2332_; lean_object* v___x_2333_; -lean_del_object(v___x_2328_); -lean_dec(v_stx_2291_); -v_val_2330_ = lean_ctor_get(v_a_2326_, 0); -lean_inc(v_val_2330_); -lean_dec_ref(v_a_2326_); -v_snd_2331_ = lean_ctor_get(v_val_2330_, 1); -lean_inc(v_snd_2331_); -lean_dec(v_val_2330_); -v___x_2332_ = lean_alloc_closure((void*)(l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___boxed), 4, 2); -lean_closure_set(v___x_2332_, 0, lean_box(0)); -lean_closure_set(v___x_2332_, 1, v_snd_2331_); -v___x_2333_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v___x_2332_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2333_) == 0) +lean_object* v_val_2335_; lean_object* v_snd_2336_; lean_object* v___x_2337_; lean_object* v___x_2338_; +lean_del_object(v___x_2333_); +lean_dec(v_stx_2296_); +v_val_2335_ = lean_ctor_get(v_a_2331_, 0); +lean_inc(v_val_2335_); +lean_dec_ref(v_a_2331_); +v_snd_2336_ = lean_ctor_get(v_val_2335_, 1); +lean_inc(v_snd_2336_); +lean_dec(v_val_2335_); +v___x_2337_ = lean_alloc_closure((void*)(l_liftExcept___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__1___boxed), 4, 2); +lean_closure_set(v___x_2337_, 0, lean_box(0)); +lean_closure_set(v___x_2337_, 1, v_snd_2336_); +v___x_2338_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v___x_2337_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2338_) == 0) { -lean_object* v_a_2334_; -v_a_2334_ = lean_ctor_get(v___x_2333_, 0); -lean_inc(v_a_2334_); -lean_dec_ref(v___x_2333_); -v_stx_2291_ = v_a_2334_; +lean_object* v_a_2339_; +v_a_2339_ = lean_ctor_get(v___x_2338_, 0); +lean_inc(v_a_2339_); +lean_dec_ref(v___x_2338_); +v_stx_2296_ = v_a_2339_; goto _start; } else { -lean_object* v_a_2336_; lean_object* v___x_2338_; uint8_t v_isShared_2339_; uint8_t v_isSharedCheck_2343_; -v_a_2336_ = lean_ctor_get(v___x_2333_, 0); -v_isSharedCheck_2343_ = !lean_is_exclusive(v___x_2333_); -if (v_isSharedCheck_2343_ == 0) +lean_object* v_a_2341_; lean_object* v___x_2343_; uint8_t v_isShared_2344_; uint8_t v_isSharedCheck_2348_; +v_a_2341_ = lean_ctor_get(v___x_2338_, 0); +v_isSharedCheck_2348_ = !lean_is_exclusive(v___x_2338_); +if (v_isSharedCheck_2348_ == 0) { -v___x_2338_ = v___x_2333_; -v_isShared_2339_ = v_isSharedCheck_2343_; -goto v_resetjp_2337_; +v___x_2343_ = v___x_2338_; +v_isShared_2344_ = v_isSharedCheck_2348_; +goto v_resetjp_2342_; } else { -lean_inc(v_a_2336_); -lean_dec(v___x_2333_); -v___x_2338_ = lean_box(0); -v_isShared_2339_ = v_isSharedCheck_2343_; -goto v_resetjp_2337_; +lean_inc(v_a_2341_); +lean_dec(v___x_2338_); +v___x_2343_ = lean_box(0); +v_isShared_2344_ = v_isSharedCheck_2348_; +goto v_resetjp_2342_; } -v_resetjp_2337_: +v_resetjp_2342_: { -lean_object* v___x_2341_; -if (v_isShared_2339_ == 0) +lean_object* v___x_2346_; +if (v_isShared_2344_ == 0) { -v___x_2341_ = v___x_2338_; -goto v_reusejp_2340_; +v___x_2346_ = v___x_2343_; +goto v_reusejp_2345_; } else { -lean_object* v_reuseFailAlloc_2342_; -v_reuseFailAlloc_2342_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2342_, 0, v_a_2336_); -v___x_2341_ = v_reuseFailAlloc_2342_; -goto v_reusejp_2340_; +lean_object* v_reuseFailAlloc_2347_; +v_reuseFailAlloc_2347_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2347_, 0, v_a_2341_); +v___x_2346_ = v_reuseFailAlloc_2347_; +goto v_reusejp_2345_; } -v_reusejp_2340_: +v_reusejp_2345_: { -return v___x_2341_; +return v___x_2346_; } } } } else { -lean_object* v___y_2345_; lean_object* v___y_2346_; lean_object* v___y_2347_; lean_object* v___y_2348_; lean_object* v___y_2349_; lean_object* v___y_2350_; lean_object* v___y_2416_; lean_object* v___y_2417_; lean_object* v___y_2418_; lean_object* v___y_2419_; lean_object* v___y_2420_; lean_object* v___y_2421_; lean_object* v___x_2526_; uint8_t v___x_2527_; uint8_t v___x_2528_; -lean_dec(v_a_2326_); -v___x_2526_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__13)); -lean_inc(v_stx_2291_); -v___x_2527_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2526_); -v___x_2528_ = 1; -if (v___x_2527_ == 0) -{ -lean_object* v___x_2529_; uint8_t v___x_2530_; -v___x_2529_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__15)); -lean_inc(v_stx_2291_); -v___x_2530_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2529_); -if (v___x_2530_ == 0) -{ -lean_object* v___x_2531_; uint8_t v___x_2532_; -v___x_2531_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__17)); -lean_inc(v_stx_2291_); -v___x_2532_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2531_); +lean_object* v___y_2350_; lean_object* v___y_2351_; lean_object* v___y_2352_; lean_object* v___y_2353_; lean_object* v___y_2354_; lean_object* v___y_2355_; lean_object* v___y_2421_; lean_object* v___y_2422_; lean_object* v___y_2423_; lean_object* v___y_2424_; lean_object* v___y_2425_; lean_object* v___y_2426_; lean_object* v___x_2531_; uint8_t v___x_2532_; uint8_t v___x_2533_; +lean_dec(v_a_2331_); +v___x_2531_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__13)); +lean_inc(v_stx_2296_); +v___x_2532_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2531_); +v___x_2533_ = 1; if (v___x_2532_ == 0) { -lean_object* v___x_2533_; uint8_t v___x_2534_; -v___x_2533_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__19)); -lean_inc(v_stx_2291_); -v___x_2534_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2533_); -if (v___x_2534_ == 0) +lean_object* v___x_2534_; uint8_t v___x_2535_; +v___x_2534_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__15)); +lean_inc(v_stx_2296_); +v___x_2535_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2534_); +if (v___x_2535_ == 0) { -lean_object* v___x_2535_; uint8_t v___x_2536_; -v___x_2535_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__21)); -lean_inc(v_stx_2291_); -v___x_2536_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2535_); -if (v___x_2536_ == 0) +lean_object* v___x_2536_; uint8_t v___x_2537_; +v___x_2536_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__17)); +lean_inc(v_stx_2296_); +v___x_2537_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2536_); +if (v___x_2537_ == 0) { -lean_object* v___x_2537_; uint8_t v___x_2538_; -v___x_2537_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__23)); -lean_inc(v_stx_2291_); -v___x_2538_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2537_); -if (v___x_2538_ == 0) +lean_object* v___x_2538_; uint8_t v___x_2539_; +v___x_2538_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__19)); +lean_inc(v_stx_2296_); +v___x_2539_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2538_); +if (v___x_2539_ == 0) { -lean_object* v___x_2539_; uint8_t v___x_2540_; -lean_del_object(v___x_2328_); -v___x_2539_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__25)); -lean_inc(v_stx_2291_); -v___x_2540_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2539_); -if (v___x_2540_ == 0) +lean_object* v___x_2540_; uint8_t v___x_2541_; +v___x_2540_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__21)); +lean_inc(v_stx_2296_); +v___x_2541_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2540_); +if (v___x_2541_ == 0) { -lean_object* v___x_2541_; uint8_t v___x_2542_; -v___x_2541_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__27)); -lean_inc(v_stx_2291_); -v___x_2542_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2541_); -if (v___x_2542_ == 0) +lean_object* v___x_2542_; uint8_t v___x_2543_; +v___x_2542_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__23)); +lean_inc(v_stx_2296_); +v___x_2543_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2542_); +if (v___x_2543_ == 0) { -lean_object* v___x_2543_; uint8_t v___x_2544_; lean_object* v___y_2546_; lean_object* v___y_2547_; lean_object* v___y_2548_; lean_object* v___y_2549_; lean_object* v___y_2550_; lean_object* v___y_2551_; -v___x_2543_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__29)); -lean_inc(v_stx_2291_); -v___x_2544_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2543_); -if (v___x_2544_ == 0) +lean_object* v___x_2544_; uint8_t v___x_2545_; +lean_del_object(v___x_2333_); +v___x_2544_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__25)); +lean_inc(v_stx_2296_); +v___x_2545_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2544_); +if (v___x_2545_ == 0) { -lean_object* v___x_2605_; uint8_t v___x_2606_; -v___x_2605_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__31)); -lean_inc(v_stx_2291_); -v___x_2606_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2605_); -if (v___x_2606_ == 0) +lean_object* v___x_2546_; uint8_t v___x_2547_; +v___x_2546_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__27)); +lean_inc(v_stx_2296_); +v___x_2547_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2546_); +if (v___x_2547_ == 0) { -lean_object* v___x_2607_; uint8_t v___x_2608_; -v___x_2607_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__33)); -lean_inc(v_stx_2291_); -v___x_2608_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2607_); -if (v___x_2608_ == 0) +lean_object* v___x_2548_; uint8_t v___x_2549_; lean_object* v___y_2551_; lean_object* v___y_2552_; lean_object* v___y_2553_; lean_object* v___y_2554_; lean_object* v___y_2555_; lean_object* v___y_2556_; +v___x_2548_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__29)); +lean_inc(v_stx_2296_); +v___x_2549_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2548_); +if (v___x_2549_ == 0) { -lean_object* v___x_2609_; uint8_t v___x_2610_; -v___x_2609_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__35)); -lean_inc(v_stx_2291_); -v___x_2610_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2609_); -if (v___x_2610_ == 0) +lean_object* v___x_2610_; uint8_t v___x_2611_; +v___x_2610_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__31)); +lean_inc(v_stx_2296_); +v___x_2611_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2610_); +if (v___x_2611_ == 0) { -lean_object* v___x_2611_; uint8_t v___x_2612_; -v___x_2611_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__37)); -lean_inc(v_stx_2291_); -v___x_2612_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2611_); -if (v___x_2612_ == 0) +lean_object* v___x_2612_; uint8_t v___x_2613_; +v___x_2612_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__33)); +lean_inc(v_stx_2296_); +v___x_2613_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2612_); +if (v___x_2613_ == 0) { -lean_object* v___x_2613_; uint8_t v___x_2614_; -v___x_2613_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__39)); -lean_inc(v_stx_2291_); -v___x_2614_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2613_); -if (v___x_2614_ == 0) +lean_object* v___x_2614_; uint8_t v___x_2615_; +v___x_2614_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__35)); +lean_inc(v_stx_2296_); +v___x_2615_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2614_); +if (v___x_2615_ == 0) { -lean_object* v___x_2615_; uint8_t v___x_2616_; -v___x_2615_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__41)); -lean_inc(v_stx_2291_); -v___x_2616_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2615_); -if (v___x_2616_ == 0) +lean_object* v___x_2616_; uint8_t v___x_2617_; +v___x_2616_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__37)); +lean_inc(v_stx_2296_); +v___x_2617_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2616_); +if (v___x_2617_ == 0) { -lean_object* v___x_2617_; uint8_t v___x_2618_; -v___x_2617_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__43)); -lean_inc(v_stx_2291_); -v___x_2618_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2617_); -if (v___x_2618_ == 0) +lean_object* v___x_2618_; uint8_t v___x_2619_; +v___x_2618_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__39)); +lean_inc(v_stx_2296_); +v___x_2619_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2618_); +if (v___x_2619_ == 0) { -lean_object* v___x_2619_; uint8_t v___x_2620_; -v___x_2619_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__45)); -lean_inc(v_stx_2291_); -v___x_2620_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2619_); -if (v___x_2620_ == 0) +lean_object* v___x_2620_; uint8_t v___x_2621_; +v___x_2620_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__41)); +lean_inc(v_stx_2296_); +v___x_2621_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2620_); +if (v___x_2621_ == 0) { -lean_object* v___x_2621_; uint8_t v___x_2622_; -v___x_2621_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__47)); -lean_inc(v_stx_2291_); -v___x_2622_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2621_); -if (v___x_2622_ == 0) +lean_object* v___x_2622_; uint8_t v___x_2623_; +v___x_2622_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__43)); +lean_inc(v_stx_2296_); +v___x_2623_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2622_); +if (v___x_2623_ == 0) { -lean_object* v___x_2623_; uint8_t v___x_2624_; -v___x_2623_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__50)); -lean_inc(v_stx_2291_); -v___x_2624_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2623_); -if (v___x_2624_ == 0) +lean_object* v___x_2624_; uint8_t v___x_2625_; +v___x_2624_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__45)); +lean_inc(v_stx_2296_); +v___x_2625_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2624_); +if (v___x_2625_ == 0) { -lean_object* v___x_2625_; uint8_t v___x_2626_; -v___x_2625_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__52)); -lean_inc(v_stx_2291_); -v___x_2626_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2625_); -if (v___x_2626_ == 0) +lean_object* v___x_2626_; uint8_t v___x_2627_; +v___x_2626_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__47)); +lean_inc(v_stx_2296_); +v___x_2627_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2626_); +if (v___x_2627_ == 0) { -lean_object* v___x_2627_; uint8_t v___x_2628_; -v___x_2627_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__54)); -lean_inc(v_stx_2291_); -v___x_2628_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2627_); -if (v___x_2628_ == 0) +lean_object* v___x_2628_; uint8_t v___x_2629_; +v___x_2628_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__50)); +lean_inc(v_stx_2296_); +v___x_2629_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2628_); +if (v___x_2629_ == 0) { -lean_object* v___x_2629_; uint8_t v___x_2630_; -v___x_2629_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__56)); -lean_inc(v_stx_2291_); -v___x_2630_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2629_); -if (v___x_2630_ == 0) +lean_object* v___x_2630_; uint8_t v___x_2631_; +v___x_2630_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__52)); +lean_inc(v_stx_2296_); +v___x_2631_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2630_); +if (v___x_2631_ == 0) { -lean_object* v___x_2631_; uint8_t v___x_2632_; -v___x_2631_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__58)); -lean_inc(v_stx_2291_); -v___x_2632_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2631_); -if (v___x_2632_ == 0) +lean_object* v___x_2632_; uint8_t v___x_2633_; +v___x_2632_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__54)); +lean_inc(v_stx_2296_); +v___x_2633_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2632_); +if (v___x_2633_ == 0) { -lean_object* v___x_2633_; uint8_t v___x_2634_; -v___x_2633_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__60)); -lean_inc(v_stx_2291_); -v___x_2634_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2633_); -if (v___x_2634_ == 0) +lean_object* v___x_2634_; uint8_t v___x_2635_; +v___x_2634_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__56)); +lean_inc(v_stx_2296_); +v___x_2635_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2634_); +if (v___x_2635_ == 0) { -lean_object* v___x_2635_; uint8_t v___x_2636_; -v___x_2635_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__62)); -lean_inc(v_stx_2291_); -v___x_2636_ = l_Lean_Syntax_isOfKind(v_stx_2291_, v___x_2635_); -if (v___x_2636_ == 0) +lean_object* v___x_2636_; uint8_t v___x_2637_; +v___x_2636_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__58)); +lean_inc(v_stx_2296_); +v___x_2637_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2636_); +if (v___x_2637_ == 0) { -lean_object* v___x_2637_; lean_object* v_env_2638_; lean_object* v___x_2639_; lean_object* v___x_2640_; lean_object* v___x_2641_; lean_object* v___x_2642_; lean_object* v___x_2643_; -v___x_2637_ = lean_st_ref_get(v_a_2297_); -v_env_2638_ = lean_ctor_get(v___x_2637_, 0); -lean_inc_ref(v_env_2638_); -lean_dec(v___x_2637_); -lean_inc_n(v_stx_2291_, 2); -v___x_2639_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2640_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2641_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2640_, v_env_2638_, v___x_2639_); -v___x_2642_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2643_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2641_, v___x_2642_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_2641_); -if (lean_obj_tag(v___x_2643_) == 0) +lean_object* v___x_2638_; uint8_t v___x_2639_; +v___x_2638_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__60)); +lean_inc(v_stx_2296_); +v___x_2639_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2638_); +if (v___x_2639_ == 0) { -lean_object* v_a_2644_; lean_object* v___x_2646_; uint8_t v_isShared_2647_; uint8_t v_isSharedCheck_2674_; -v_a_2644_ = lean_ctor_get(v___x_2643_, 0); -v_isSharedCheck_2674_ = !lean_is_exclusive(v___x_2643_); -if (v_isSharedCheck_2674_ == 0) +lean_object* v___x_2640_; uint8_t v___x_2641_; +v___x_2640_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__62)); +lean_inc(v_stx_2296_); +v___x_2641_ = l_Lean_Syntax_isOfKind(v_stx_2296_, v___x_2640_); +if (v___x_2641_ == 0) { -v___x_2646_ = v___x_2643_; -v_isShared_2647_ = v_isSharedCheck_2674_; -goto v_resetjp_2645_; +lean_object* v___x_2642_; lean_object* v_env_2643_; lean_object* v___x_2644_; lean_object* v___x_2645_; lean_object* v___x_2646_; lean_object* v___x_2647_; lean_object* v___x_2648_; +v___x_2642_ = lean_st_ref_get(v_a_2302_); +v_env_2643_ = lean_ctor_get(v___x_2642_, 0); +lean_inc_ref(v_env_2643_); +lean_dec(v___x_2642_); +lean_inc_n(v_stx_2296_, 2); +v___x_2644_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2645_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2646_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2645_, v_env_2643_, v___x_2644_); +v___x_2647_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2648_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2646_, v___x_2647_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_2646_); +if (lean_obj_tag(v___x_2648_) == 0) +{ +lean_object* v_a_2649_; lean_object* v___x_2651_; uint8_t v_isShared_2652_; uint8_t v_isSharedCheck_2679_; +v_a_2649_ = lean_ctor_get(v___x_2648_, 0); +v_isSharedCheck_2679_ = !lean_is_exclusive(v___x_2648_); +if (v_isSharedCheck_2679_ == 0) +{ +v___x_2651_ = v___x_2648_; +v_isShared_2652_ = v_isSharedCheck_2679_; +goto v_resetjp_2650_; } else { -lean_inc(v_a_2644_); -lean_dec(v___x_2643_); -v___x_2646_ = lean_box(0); -v_isShared_2647_ = v_isSharedCheck_2674_; -goto v_resetjp_2645_; +lean_inc(v_a_2649_); +lean_dec(v___x_2648_); +v___x_2651_ = lean_box(0); +v_isShared_2652_ = v_isSharedCheck_2679_; +goto v_resetjp_2650_; } -v_resetjp_2645_: +v_resetjp_2650_: { -lean_object* v_fst_2648_; lean_object* v___x_2650_; uint8_t v_isShared_2651_; uint8_t v_isSharedCheck_2672_; -v_fst_2648_ = lean_ctor_get(v_a_2644_, 0); -v_isSharedCheck_2672_ = !lean_is_exclusive(v_a_2644_); -if (v_isSharedCheck_2672_ == 0) +lean_object* v_fst_2653_; lean_object* v___x_2655_; uint8_t v_isShared_2656_; uint8_t v_isSharedCheck_2677_; +v_fst_2653_ = lean_ctor_get(v_a_2649_, 0); +v_isSharedCheck_2677_ = !lean_is_exclusive(v_a_2649_); +if (v_isSharedCheck_2677_ == 0) { -lean_object* v_unused_2673_; -v_unused_2673_ = lean_ctor_get(v_a_2644_, 1); -lean_dec(v_unused_2673_); -v___x_2650_ = v_a_2644_; -v_isShared_2651_ = v_isSharedCheck_2672_; -goto v_resetjp_2649_; +lean_object* v_unused_2678_; +v_unused_2678_ = lean_ctor_get(v_a_2649_, 1); +lean_dec(v_unused_2678_); +v___x_2655_ = v_a_2649_; +v_isShared_2656_ = v_isSharedCheck_2677_; +goto v_resetjp_2654_; } else { -lean_inc(v_fst_2648_); -lean_dec(v_a_2644_); -v___x_2650_ = lean_box(0); -v_isShared_2651_ = v_isSharedCheck_2672_; -goto v_resetjp_2649_; +lean_inc(v_fst_2653_); +lean_dec(v_a_2649_); +v___x_2655_ = lean_box(0); +v_isShared_2656_ = v_isSharedCheck_2677_; +goto v_resetjp_2654_; } -v_resetjp_2649_: +v_resetjp_2654_: { -if (lean_obj_tag(v_fst_2648_) == 0) +if (lean_obj_tag(v_fst_2653_) == 0) { -lean_object* v___x_2652_; lean_object* v___x_2653_; lean_object* v___x_2655_; -lean_del_object(v___x_2646_); -v___x_2652_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2653_ = l_Lean_MessageData_ofName(v___x_2639_); -lean_inc_ref(v___x_2653_); -if (v_isShared_2651_ == 0) +lean_object* v___x_2657_; lean_object* v___x_2658_; lean_object* v___x_2660_; +lean_del_object(v___x_2651_); +v___x_2657_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2658_ = l_Lean_MessageData_ofName(v___x_2644_); +lean_inc_ref(v___x_2658_); +if (v_isShared_2656_ == 0) { -lean_ctor_set_tag(v___x_2650_, 7); -lean_ctor_set(v___x_2650_, 1, v___x_2653_); -lean_ctor_set(v___x_2650_, 0, v___x_2652_); -v___x_2655_ = v___x_2650_; -goto v_reusejp_2654_; +lean_ctor_set_tag(v___x_2655_, 7); +lean_ctor_set(v___x_2655_, 1, v___x_2658_); +lean_ctor_set(v___x_2655_, 0, v___x_2657_); +v___x_2660_ = v___x_2655_; +goto v_reusejp_2659_; } else { -lean_object* v_reuseFailAlloc_2667_; -v_reuseFailAlloc_2667_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2667_, 0, v___x_2652_); -lean_ctor_set(v_reuseFailAlloc_2667_, 1, v___x_2653_); -v___x_2655_ = v_reuseFailAlloc_2667_; -goto v_reusejp_2654_; +lean_object* v_reuseFailAlloc_2672_; +v_reuseFailAlloc_2672_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2672_, 0, v___x_2657_); +lean_ctor_set(v_reuseFailAlloc_2672_, 1, v___x_2658_); +v___x_2660_ = v_reuseFailAlloc_2672_; +goto v_reusejp_2659_; } -v_reusejp_2654_: +v_reusejp_2659_: { -lean_object* v___x_2656_; lean_object* v___x_2657_; lean_object* v___x_2658_; lean_object* v___x_2659_; lean_object* v___x_2660_; lean_object* v___x_2661_; lean_object* v___x_2662_; lean_object* v___x_2663_; lean_object* v___x_2664_; lean_object* v___x_2665_; lean_object* v___x_2666_; -v___x_2656_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2657_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2657_, 0, v___x_2655_); -lean_ctor_set(v___x_2657_, 1, v___x_2656_); -v___x_2658_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2659_ = l_Lean_indentD(v___x_2658_); -v___x_2660_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2660_, 0, v___x_2657_); -lean_ctor_set(v___x_2660_, 1, v___x_2659_); -v___x_2661_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2661_; lean_object* v___x_2662_; lean_object* v___x_2663_; lean_object* v___x_2664_; lean_object* v___x_2665_; lean_object* v___x_2666_; lean_object* v___x_2667_; lean_object* v___x_2668_; lean_object* v___x_2669_; lean_object* v___x_2670_; lean_object* v___x_2671_; +v___x_2661_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2662_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2662_, 0, v___x_2660_); lean_ctor_set(v___x_2662_, 1, v___x_2661_); -v___x_2663_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2663_, 0, v___x_2662_); -lean_ctor_set(v___x_2663_, 1, v___x_2653_); -v___x_2664_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2663_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2664_ = l_Lean_indentD(v___x_2663_); v___x_2665_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2665_, 0, v___x_2663_); +lean_ctor_set(v___x_2665_, 0, v___x_2662_); lean_ctor_set(v___x_2665_, 1, v___x_2664_); -v___x_2666_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2665_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_2666_; +v___x_2666_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2667_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2667_, 0, v___x_2665_); +lean_ctor_set(v___x_2667_, 1, v___x_2666_); +v___x_2668_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2668_, 0, v___x_2667_); +lean_ctor_set(v___x_2668_, 1, v___x_2658_); +v___x_2669_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2670_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2670_, 0, v___x_2668_); +lean_ctor_set(v___x_2670_, 1, v___x_2669_); +v___x_2671_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2670_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_2671_; } } else { -lean_object* v_val_2668_; lean_object* v___x_2670_; -lean_del_object(v___x_2650_); -lean_dec(v___x_2639_); -lean_dec(v_stx_2291_); -v_val_2668_ = lean_ctor_get(v_fst_2648_, 0); -lean_inc(v_val_2668_); -lean_dec_ref(v_fst_2648_); -if (v_isShared_2647_ == 0) +lean_object* v_val_2673_; lean_object* v___x_2675_; +lean_del_object(v___x_2655_); +lean_dec(v___x_2644_); +lean_dec(v_stx_2296_); +v_val_2673_ = lean_ctor_get(v_fst_2653_, 0); +lean_inc(v_val_2673_); +lean_dec_ref(v_fst_2653_); +if (v_isShared_2652_ == 0) { -lean_ctor_set(v___x_2646_, 0, v_val_2668_); -v___x_2670_ = v___x_2646_; -goto v_reusejp_2669_; +lean_ctor_set(v___x_2651_, 0, v_val_2673_); +v___x_2675_ = v___x_2651_; +goto v_reusejp_2674_; } else { -lean_object* v_reuseFailAlloc_2671_; -v_reuseFailAlloc_2671_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2671_, 0, v_val_2668_); -v___x_2670_ = v_reuseFailAlloc_2671_; -goto v_reusejp_2669_; +lean_object* v_reuseFailAlloc_2676_; +v_reuseFailAlloc_2676_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2676_, 0, v_val_2673_); +v___x_2675_ = v_reuseFailAlloc_2676_; +goto v_reusejp_2674_; } -v_reusejp_2669_: +v_reusejp_2674_: { -return v___x_2670_; +return v___x_2675_; } } } @@ -6746,430 +6763,430 @@ return v___x_2670_; } else { -lean_object* v_a_2675_; lean_object* v___x_2677_; uint8_t v_isShared_2678_; uint8_t v_isSharedCheck_2682_; -lean_dec(v___x_2639_); -lean_dec(v_stx_2291_); -v_a_2675_ = lean_ctor_get(v___x_2643_, 0); -v_isSharedCheck_2682_ = !lean_is_exclusive(v___x_2643_); -if (v_isSharedCheck_2682_ == 0) +lean_object* v_a_2680_; lean_object* v___x_2682_; uint8_t v_isShared_2683_; uint8_t v_isSharedCheck_2687_; +lean_dec(v___x_2644_); +lean_dec(v_stx_2296_); +v_a_2680_ = lean_ctor_get(v___x_2648_, 0); +v_isSharedCheck_2687_ = !lean_is_exclusive(v___x_2648_); +if (v_isSharedCheck_2687_ == 0) { -v___x_2677_ = v___x_2643_; -v_isShared_2678_ = v_isSharedCheck_2682_; -goto v_resetjp_2676_; +v___x_2682_ = v___x_2648_; +v_isShared_2683_ = v_isSharedCheck_2687_; +goto v_resetjp_2681_; } else { -lean_inc(v_a_2675_); -lean_dec(v___x_2643_); -v___x_2677_ = lean_box(0); -v_isShared_2678_ = v_isSharedCheck_2682_; -goto v_resetjp_2676_; +lean_inc(v_a_2680_); +lean_dec(v___x_2648_); +v___x_2682_ = lean_box(0); +v_isShared_2683_ = v_isSharedCheck_2687_; +goto v_resetjp_2681_; } -v_resetjp_2676_: +v_resetjp_2681_: { -lean_object* v___x_2680_; -if (v_isShared_2678_ == 0) +lean_object* v___x_2685_; +if (v_isShared_2683_ == 0) { -v___x_2680_ = v___x_2677_; -goto v_reusejp_2679_; +v___x_2685_ = v___x_2682_; +goto v_reusejp_2684_; } else { -lean_object* v_reuseFailAlloc_2681_; -v_reuseFailAlloc_2681_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2681_, 0, v_a_2675_); -v___x_2680_ = v_reuseFailAlloc_2681_; -goto v_reusejp_2679_; +lean_object* v_reuseFailAlloc_2686_; +v_reuseFailAlloc_2686_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2686_, 0, v_a_2680_); +v___x_2685_ = v_reuseFailAlloc_2686_; +goto v_reusejp_2684_; } -v_reusejp_2679_: +v_reusejp_2684_: { -return v___x_2680_; +return v___x_2685_; } } } } else { -lean_object* v___x_2683_; lean_object* v___x_2684_; lean_object* v___x_2685_; lean_object* v___y_2687_; lean_object* v___x_2696_; lean_object* v___x_2697_; lean_object* v___x_2698_; -v___x_2683_ = lean_unsigned_to_nat(1u); -v___x_2684_ = lean_unsigned_to_nat(5u); -v___x_2685_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2684_); -v___x_2696_ = lean_unsigned_to_nat(6u); -v___x_2697_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2696_); -lean_dec(v_stx_2291_); -v___x_2698_ = l_Lean_Syntax_getOptional_x3f(v___x_2697_); -lean_dec(v___x_2697_); -if (lean_obj_tag(v___x_2698_) == 0) +lean_object* v___x_2688_; lean_object* v___x_2689_; lean_object* v___x_2690_; lean_object* v___y_2692_; lean_object* v___x_2701_; lean_object* v___x_2702_; lean_object* v___x_2703_; +v___x_2688_ = lean_unsigned_to_nat(1u); +v___x_2689_ = lean_unsigned_to_nat(5u); +v___x_2690_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2689_); +v___x_2701_ = lean_unsigned_to_nat(6u); +v___x_2702_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2701_); +lean_dec(v_stx_2296_); +v___x_2703_ = l_Lean_Syntax_getOptional_x3f(v___x_2702_); +lean_dec(v___x_2702_); +if (lean_obj_tag(v___x_2703_) == 0) { -lean_object* v___x_2699_; -v___x_2699_ = lean_box(0); -v___y_2687_ = v___x_2699_; -goto v___jp_2686_; +lean_object* v___x_2704_; +v___x_2704_ = lean_box(0); +v___y_2692_ = v___x_2704_; +goto v___jp_2691_; } else { -lean_object* v_val_2700_; lean_object* v___x_2702_; uint8_t v_isShared_2703_; uint8_t v_isSharedCheck_2707_; -v_val_2700_ = lean_ctor_get(v___x_2698_, 0); -v_isSharedCheck_2707_ = !lean_is_exclusive(v___x_2698_); -if (v_isSharedCheck_2707_ == 0) +lean_object* v_val_2705_; lean_object* v___x_2707_; uint8_t v_isShared_2708_; uint8_t v_isSharedCheck_2712_; +v_val_2705_ = lean_ctor_get(v___x_2703_, 0); +v_isSharedCheck_2712_ = !lean_is_exclusive(v___x_2703_); +if (v_isSharedCheck_2712_ == 0) { -v___x_2702_ = v___x_2698_; -v_isShared_2703_ = v_isSharedCheck_2707_; -goto v_resetjp_2701_; +v___x_2707_ = v___x_2703_; +v_isShared_2708_ = v_isSharedCheck_2712_; +goto v_resetjp_2706_; } else { -lean_inc(v_val_2700_); -lean_dec(v___x_2698_); -v___x_2702_ = lean_box(0); -v_isShared_2703_ = v_isSharedCheck_2707_; -goto v_resetjp_2701_; +lean_inc(v_val_2705_); +lean_dec(v___x_2703_); +v___x_2707_ = lean_box(0); +v_isShared_2708_ = v_isSharedCheck_2712_; +goto v_resetjp_2706_; } -v_resetjp_2701_: +v_resetjp_2706_: { -lean_object* v___x_2705_; -if (v_isShared_2703_ == 0) +lean_object* v___x_2710_; +if (v_isShared_2708_ == 0) { -v___x_2705_ = v___x_2702_; -goto v_reusejp_2704_; +v___x_2710_ = v___x_2707_; +goto v_reusejp_2709_; } else { -lean_object* v_reuseFailAlloc_2706_; -v_reuseFailAlloc_2706_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2706_, 0, v_val_2700_); -v___x_2705_ = v_reuseFailAlloc_2706_; -goto v_reusejp_2704_; +lean_object* v_reuseFailAlloc_2711_; +v_reuseFailAlloc_2711_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2711_, 0, v_val_2705_); +v___x_2710_ = v_reuseFailAlloc_2711_; +goto v_reusejp_2709_; } -v_reusejp_2704_: +v_reusejp_2709_: { -v___y_2687_ = v___x_2705_; -goto v___jp_2686_; +v___y_2692_ = v___x_2710_; +goto v___jp_2691_; } } } -v___jp_2686_: +v___jp_2691_: { -lean_object* v___x_2688_; -v___x_2688_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2685_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2688_) == 0) +lean_object* v___x_2693_; +v___x_2693_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2690_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2693_) == 0) { -if (lean_obj_tag(v___y_2687_) == 0) +if (lean_obj_tag(v___y_2692_) == 0) { -lean_object* v_a_2689_; lean_object* v___x_2690_; lean_object* v___x_2691_; -v_a_2689_ = lean_ctor_get(v___x_2688_, 0); -lean_inc(v_a_2689_); -lean_dec_ref(v___x_2688_); -v___x_2690_ = l_Lean_NameSet_empty; -v___x_2691_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_2691_, 0, v___x_2683_); -lean_ctor_set(v___x_2691_, 1, v___x_2690_); -lean_ctor_set_uint8(v___x_2691_, sizeof(void*)*2, v___x_2634_); -lean_ctor_set_uint8(v___x_2691_, sizeof(void*)*2 + 1, v___x_2634_); -lean_ctor_set_uint8(v___x_2691_, sizeof(void*)*2 + 2, v___x_2634_); -v___y_2318_ = v_a_2689_; -v_bodyInfo_2319_ = v___x_2691_; +lean_object* v_a_2694_; lean_object* v___x_2695_; lean_object* v___x_2696_; +v_a_2694_ = lean_ctor_get(v___x_2693_, 0); +lean_inc(v_a_2694_); +lean_dec_ref(v___x_2693_); +v___x_2695_ = l_Lean_NameSet_empty; +v___x_2696_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_2696_, 0, v___x_2688_); +lean_ctor_set(v___x_2696_, 1, v___x_2695_); +lean_ctor_set_uint8(v___x_2696_, sizeof(void*)*2, v___x_2639_); +lean_ctor_set_uint8(v___x_2696_, sizeof(void*)*2 + 1, v___x_2639_); +lean_ctor_set_uint8(v___x_2696_, sizeof(void*)*2 + 2, v___x_2639_); +v___y_2318_ = v_a_2694_; +v_bodyInfo_2319_ = v___x_2696_; goto v___jp_2317_; } else { -lean_object* v_a_2692_; lean_object* v_val_2693_; lean_object* v___x_2694_; -v_a_2692_ = lean_ctor_get(v___x_2688_, 0); -lean_inc(v_a_2692_); -lean_dec_ref(v___x_2688_); -v_val_2693_ = lean_ctor_get(v___y_2687_, 0); -lean_inc(v_val_2693_); -lean_dec_ref(v___y_2687_); -v___x_2694_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2693_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2694_) == 0) +lean_object* v_a_2697_; lean_object* v_val_2698_; lean_object* v___x_2699_; +v_a_2697_ = lean_ctor_get(v___x_2693_, 0); +lean_inc(v_a_2697_); +lean_dec_ref(v___x_2693_); +v_val_2698_ = lean_ctor_get(v___y_2692_, 0); +lean_inc(v_val_2698_); +lean_dec_ref(v___y_2692_); +v___x_2699_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2698_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2699_) == 0) { -lean_object* v_a_2695_; -v_a_2695_ = lean_ctor_get(v___x_2694_, 0); -lean_inc(v_a_2695_); -lean_dec_ref(v___x_2694_); -v___y_2318_ = v_a_2692_; -v_bodyInfo_2319_ = v_a_2695_; +lean_object* v_a_2700_; +v_a_2700_ = lean_ctor_get(v___x_2699_, 0); +lean_inc(v_a_2700_); +lean_dec_ref(v___x_2699_); +v___y_2318_ = v_a_2697_; +v_bodyInfo_2319_ = v_a_2700_; goto v___jp_2317_; } else { -lean_dec(v_a_2692_); -return v___x_2694_; +lean_dec(v_a_2697_); +return v___x_2699_; } } } else { -lean_dec(v___y_2687_); -return v___x_2688_; +lean_dec(v___y_2692_); +return v___x_2693_; } } } } else { -lean_object* v___x_2708_; lean_object* v___x_2709_; lean_object* v___x_2710_; lean_object* v___y_2712_; lean_object* v___x_2721_; lean_object* v___x_2722_; lean_object* v___x_2723_; -v___x_2708_ = lean_unsigned_to_nat(1u); -v___x_2709_ = lean_unsigned_to_nat(5u); -v___x_2710_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2709_); -v___x_2721_ = lean_unsigned_to_nat(6u); -v___x_2722_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2721_); -lean_dec(v_stx_2291_); -v___x_2723_ = l_Lean_Syntax_getOptional_x3f(v___x_2722_); -lean_dec(v___x_2722_); -if (lean_obj_tag(v___x_2723_) == 0) +lean_object* v___x_2713_; lean_object* v___x_2714_; lean_object* v___x_2715_; lean_object* v___y_2717_; lean_object* v___x_2726_; lean_object* v___x_2727_; lean_object* v___x_2728_; +v___x_2713_ = lean_unsigned_to_nat(1u); +v___x_2714_ = lean_unsigned_to_nat(5u); +v___x_2715_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2714_); +v___x_2726_ = lean_unsigned_to_nat(6u); +v___x_2727_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2726_); +lean_dec(v_stx_2296_); +v___x_2728_ = l_Lean_Syntax_getOptional_x3f(v___x_2727_); +lean_dec(v___x_2727_); +if (lean_obj_tag(v___x_2728_) == 0) { -lean_object* v___x_2724_; -v___x_2724_ = lean_box(0); -v___y_2712_ = v___x_2724_; -goto v___jp_2711_; +lean_object* v___x_2729_; +v___x_2729_ = lean_box(0); +v___y_2717_ = v___x_2729_; +goto v___jp_2716_; } else { -lean_object* v_val_2725_; lean_object* v___x_2727_; uint8_t v_isShared_2728_; uint8_t v_isSharedCheck_2732_; -v_val_2725_ = lean_ctor_get(v___x_2723_, 0); -v_isSharedCheck_2732_ = !lean_is_exclusive(v___x_2723_); -if (v_isSharedCheck_2732_ == 0) +lean_object* v_val_2730_; lean_object* v___x_2732_; uint8_t v_isShared_2733_; uint8_t v_isSharedCheck_2737_; +v_val_2730_ = lean_ctor_get(v___x_2728_, 0); +v_isSharedCheck_2737_ = !lean_is_exclusive(v___x_2728_); +if (v_isSharedCheck_2737_ == 0) { -v___x_2727_ = v___x_2723_; -v_isShared_2728_ = v_isSharedCheck_2732_; -goto v_resetjp_2726_; +v___x_2732_ = v___x_2728_; +v_isShared_2733_ = v_isSharedCheck_2737_; +goto v_resetjp_2731_; } else { -lean_inc(v_val_2725_); -lean_dec(v___x_2723_); -v___x_2727_ = lean_box(0); -v_isShared_2728_ = v_isSharedCheck_2732_; -goto v_resetjp_2726_; +lean_inc(v_val_2730_); +lean_dec(v___x_2728_); +v___x_2732_ = lean_box(0); +v_isShared_2733_ = v_isSharedCheck_2737_; +goto v_resetjp_2731_; } -v_resetjp_2726_: +v_resetjp_2731_: { -lean_object* v___x_2730_; -if (v_isShared_2728_ == 0) +lean_object* v___x_2735_; +if (v_isShared_2733_ == 0) { -v___x_2730_ = v___x_2727_; -goto v_reusejp_2729_; +v___x_2735_ = v___x_2732_; +goto v_reusejp_2734_; } else { -lean_object* v_reuseFailAlloc_2731_; -v_reuseFailAlloc_2731_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2731_, 0, v_val_2725_); -v___x_2730_ = v_reuseFailAlloc_2731_; -goto v_reusejp_2729_; +lean_object* v_reuseFailAlloc_2736_; +v_reuseFailAlloc_2736_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2736_, 0, v_val_2730_); +v___x_2735_ = v_reuseFailAlloc_2736_; +goto v_reusejp_2734_; } -v_reusejp_2729_: +v_reusejp_2734_: { -v___y_2712_ = v___x_2730_; -goto v___jp_2711_; +v___y_2717_ = v___x_2735_; +goto v___jp_2716_; } } } -v___jp_2711_: +v___jp_2716_: { -lean_object* v___x_2713_; -v___x_2713_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2710_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2713_) == 0) +lean_object* v___x_2718_; +v___x_2718_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2715_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2718_) == 0) { -if (lean_obj_tag(v___y_2712_) == 0) +if (lean_obj_tag(v___y_2717_) == 0) { -lean_object* v_a_2714_; lean_object* v___x_2715_; lean_object* v___x_2716_; -v_a_2714_ = lean_ctor_get(v___x_2713_, 0); -lean_inc(v_a_2714_); -lean_dec_ref(v___x_2713_); -v___x_2715_ = l_Lean_NameSet_empty; -v___x_2716_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_2716_, 0, v___x_2708_); -lean_ctor_set(v___x_2716_, 1, v___x_2715_); -lean_ctor_set_uint8(v___x_2716_, sizeof(void*)*2, v___x_2632_); -lean_ctor_set_uint8(v___x_2716_, sizeof(void*)*2 + 1, v___x_2632_); -lean_ctor_set_uint8(v___x_2716_, sizeof(void*)*2 + 2, v___x_2632_); -v___y_2313_ = v_a_2714_; -v_bodyInfo_2314_ = v___x_2716_; -goto v___jp_2312_; +lean_object* v_a_2719_; lean_object* v___x_2720_; lean_object* v___x_2721_; +v_a_2719_ = lean_ctor_get(v___x_2718_, 0); +lean_inc(v_a_2719_); +lean_dec_ref(v___x_2718_); +v___x_2720_ = l_Lean_NameSet_empty; +v___x_2721_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_2721_, 0, v___x_2713_); +lean_ctor_set(v___x_2721_, 1, v___x_2720_); +lean_ctor_set_uint8(v___x_2721_, sizeof(void*)*2, v___x_2637_); +lean_ctor_set_uint8(v___x_2721_, sizeof(void*)*2 + 1, v___x_2637_); +lean_ctor_set_uint8(v___x_2721_, sizeof(void*)*2 + 2, v___x_2637_); +v___y_2323_ = v_a_2719_; +v_bodyInfo_2324_ = v___x_2721_; +goto v___jp_2322_; } else { -lean_object* v_a_2717_; lean_object* v_val_2718_; lean_object* v___x_2719_; -v_a_2717_ = lean_ctor_get(v___x_2713_, 0); -lean_inc(v_a_2717_); -lean_dec_ref(v___x_2713_); -v_val_2718_ = lean_ctor_get(v___y_2712_, 0); -lean_inc(v_val_2718_); -lean_dec_ref(v___y_2712_); -v___x_2719_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2718_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_2719_) == 0) +lean_object* v_a_2722_; lean_object* v_val_2723_; lean_object* v___x_2724_; +v_a_2722_ = lean_ctor_get(v___x_2718_, 0); +lean_inc(v_a_2722_); +lean_dec_ref(v___x_2718_); +v_val_2723_ = lean_ctor_get(v___y_2717_, 0); +lean_inc(v_val_2723_); +lean_dec_ref(v___y_2717_); +v___x_2724_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_val_2723_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_2724_) == 0) { -lean_object* v_a_2720_; -v_a_2720_ = lean_ctor_get(v___x_2719_, 0); -lean_inc(v_a_2720_); -lean_dec_ref(v___x_2719_); -v___y_2313_ = v_a_2717_; -v_bodyInfo_2314_ = v_a_2720_; -goto v___jp_2312_; +lean_object* v_a_2725_; +v_a_2725_ = lean_ctor_get(v___x_2724_, 0); +lean_inc(v_a_2725_); +lean_dec_ref(v___x_2724_); +v___y_2323_ = v_a_2722_; +v_bodyInfo_2324_ = v_a_2725_; +goto v___jp_2322_; } else { -lean_dec(v_a_2717_); -return v___x_2719_; +lean_dec(v_a_2722_); +return v___x_2724_; } } } else { -lean_dec(v___y_2712_); -return v___x_2713_; +lean_dec(v___y_2717_); +return v___x_2718_; } } } } else { -lean_object* v___x_2733_; lean_object* v___x_2734_; lean_object* v___y_2736_; lean_object* v___y_2737_; lean_object* v___y_2738_; lean_object* v___y_2739_; lean_object* v___y_2740_; lean_object* v___y_2741_; lean_object* v___x_2948_; uint8_t v___x_2949_; -v___x_2733_ = lean_unsigned_to_nat(0u); -v___x_2734_ = lean_unsigned_to_nat(1u); -v___x_2948_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2734_); -v___x_2949_ = l_Lean_Syntax_isNone(v___x_2948_); -if (v___x_2949_ == 0) +lean_object* v___x_2738_; lean_object* v___x_2739_; lean_object* v___y_2741_; lean_object* v___y_2742_; lean_object* v___y_2743_; lean_object* v___y_2744_; lean_object* v___y_2745_; lean_object* v___y_2746_; lean_object* v___x_2953_; uint8_t v___x_2954_; +v___x_2738_ = lean_unsigned_to_nat(0u); +v___x_2739_ = lean_unsigned_to_nat(1u); +v___x_2953_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2739_); +v___x_2954_ = l_Lean_Syntax_isNone(v___x_2953_); +if (v___x_2954_ == 0) { -lean_object* v___x_2950_; uint8_t v___x_2951_; -v___x_2950_ = lean_unsigned_to_nat(5u); -v___x_2951_ = l_Lean_Syntax_matchesNull(v___x_2948_, v___x_2950_); -if (v___x_2951_ == 0) +lean_object* v___x_2955_; uint8_t v___x_2956_; +v___x_2955_ = lean_unsigned_to_nat(5u); +v___x_2956_ = l_Lean_Syntax_matchesNull(v___x_2953_, v___x_2955_); +if (v___x_2956_ == 0) { -lean_object* v___x_2952_; lean_object* v_env_2953_; lean_object* v___x_2954_; lean_object* v___x_2955_; lean_object* v___x_2956_; lean_object* v___x_2957_; lean_object* v___x_2958_; -v___x_2952_ = lean_st_ref_get(v_a_2297_); -v_env_2953_ = lean_ctor_get(v___x_2952_, 0); -lean_inc_ref(v_env_2953_); -lean_dec(v___x_2952_); -lean_inc_n(v_stx_2291_, 2); -v___x_2954_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2955_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2956_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2955_, v_env_2953_, v___x_2954_); -v___x_2957_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2958_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2956_, v___x_2957_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_2956_); -if (lean_obj_tag(v___x_2958_) == 0) +lean_object* v___x_2957_; lean_object* v_env_2958_; lean_object* v___x_2959_; lean_object* v___x_2960_; lean_object* v___x_2961_; lean_object* v___x_2962_; lean_object* v___x_2963_; +v___x_2957_ = lean_st_ref_get(v_a_2302_); +v_env_2958_ = lean_ctor_get(v___x_2957_, 0); +lean_inc_ref(v_env_2958_); +lean_dec(v___x_2957_); +lean_inc_n(v_stx_2296_, 2); +v___x_2959_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2960_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2961_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2960_, v_env_2958_, v___x_2959_); +v___x_2962_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2963_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2961_, v___x_2962_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_2961_); +if (lean_obj_tag(v___x_2963_) == 0) { -lean_object* v_a_2959_; lean_object* v___x_2961_; uint8_t v_isShared_2962_; uint8_t v_isSharedCheck_2989_; -v_a_2959_ = lean_ctor_get(v___x_2958_, 0); -v_isSharedCheck_2989_ = !lean_is_exclusive(v___x_2958_); -if (v_isSharedCheck_2989_ == 0) +lean_object* v_a_2964_; lean_object* v___x_2966_; uint8_t v_isShared_2967_; uint8_t v_isSharedCheck_2994_; +v_a_2964_ = lean_ctor_get(v___x_2963_, 0); +v_isSharedCheck_2994_ = !lean_is_exclusive(v___x_2963_); +if (v_isSharedCheck_2994_ == 0) { -v___x_2961_ = v___x_2958_; -v_isShared_2962_ = v_isSharedCheck_2989_; -goto v_resetjp_2960_; +v___x_2966_ = v___x_2963_; +v_isShared_2967_ = v_isSharedCheck_2994_; +goto v_resetjp_2965_; } else { -lean_inc(v_a_2959_); -lean_dec(v___x_2958_); -v___x_2961_ = lean_box(0); -v_isShared_2962_ = v_isSharedCheck_2989_; -goto v_resetjp_2960_; +lean_inc(v_a_2964_); +lean_dec(v___x_2963_); +v___x_2966_ = lean_box(0); +v_isShared_2967_ = v_isSharedCheck_2994_; +goto v_resetjp_2965_; } -v_resetjp_2960_: +v_resetjp_2965_: { -lean_object* v_fst_2963_; lean_object* v___x_2965_; uint8_t v_isShared_2966_; uint8_t v_isSharedCheck_2987_; -v_fst_2963_ = lean_ctor_get(v_a_2959_, 0); -v_isSharedCheck_2987_ = !lean_is_exclusive(v_a_2959_); -if (v_isSharedCheck_2987_ == 0) +lean_object* v_fst_2968_; lean_object* v___x_2970_; uint8_t v_isShared_2971_; uint8_t v_isSharedCheck_2992_; +v_fst_2968_ = lean_ctor_get(v_a_2964_, 0); +v_isSharedCheck_2992_ = !lean_is_exclusive(v_a_2964_); +if (v_isSharedCheck_2992_ == 0) { -lean_object* v_unused_2988_; -v_unused_2988_ = lean_ctor_get(v_a_2959_, 1); -lean_dec(v_unused_2988_); -v___x_2965_ = v_a_2959_; -v_isShared_2966_ = v_isSharedCheck_2987_; -goto v_resetjp_2964_; +lean_object* v_unused_2993_; +v_unused_2993_ = lean_ctor_get(v_a_2964_, 1); +lean_dec(v_unused_2993_); +v___x_2970_ = v_a_2964_; +v_isShared_2971_ = v_isSharedCheck_2992_; +goto v_resetjp_2969_; } else { -lean_inc(v_fst_2963_); -lean_dec(v_a_2959_); -v___x_2965_ = lean_box(0); -v_isShared_2966_ = v_isSharedCheck_2987_; -goto v_resetjp_2964_; +lean_inc(v_fst_2968_); +lean_dec(v_a_2964_); +v___x_2970_ = lean_box(0); +v_isShared_2971_ = v_isSharedCheck_2992_; +goto v_resetjp_2969_; } -v_resetjp_2964_: +v_resetjp_2969_: { -if (lean_obj_tag(v_fst_2963_) == 0) +if (lean_obj_tag(v_fst_2968_) == 0) { -lean_object* v___x_2967_; lean_object* v___x_2968_; lean_object* v___x_2970_; -lean_del_object(v___x_2961_); -v___x_2967_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2968_ = l_Lean_MessageData_ofName(v___x_2954_); -lean_inc_ref(v___x_2968_); -if (v_isShared_2966_ == 0) +lean_object* v___x_2972_; lean_object* v___x_2973_; lean_object* v___x_2975_; +lean_del_object(v___x_2966_); +v___x_2972_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2973_ = l_Lean_MessageData_ofName(v___x_2959_); +lean_inc_ref(v___x_2973_); +if (v_isShared_2971_ == 0) { -lean_ctor_set_tag(v___x_2965_, 7); -lean_ctor_set(v___x_2965_, 1, v___x_2968_); -lean_ctor_set(v___x_2965_, 0, v___x_2967_); -v___x_2970_ = v___x_2965_; -goto v_reusejp_2969_; +lean_ctor_set_tag(v___x_2970_, 7); +lean_ctor_set(v___x_2970_, 1, v___x_2973_); +lean_ctor_set(v___x_2970_, 0, v___x_2972_); +v___x_2975_ = v___x_2970_; +goto v_reusejp_2974_; } else { -lean_object* v_reuseFailAlloc_2982_; -v_reuseFailAlloc_2982_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2982_, 0, v___x_2967_); -lean_ctor_set(v_reuseFailAlloc_2982_, 1, v___x_2968_); -v___x_2970_ = v_reuseFailAlloc_2982_; -goto v_reusejp_2969_; +lean_object* v_reuseFailAlloc_2987_; +v_reuseFailAlloc_2987_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2987_, 0, v___x_2972_); +lean_ctor_set(v_reuseFailAlloc_2987_, 1, v___x_2973_); +v___x_2975_ = v_reuseFailAlloc_2987_; +goto v_reusejp_2974_; } -v_reusejp_2969_: +v_reusejp_2974_: { -lean_object* v___x_2971_; lean_object* v___x_2972_; lean_object* v___x_2973_; lean_object* v___x_2974_; lean_object* v___x_2975_; lean_object* v___x_2976_; lean_object* v___x_2977_; lean_object* v___x_2978_; lean_object* v___x_2979_; lean_object* v___x_2980_; lean_object* v___x_2981_; -v___x_2971_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2972_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2972_, 0, v___x_2970_); -lean_ctor_set(v___x_2972_, 1, v___x_2971_); -v___x_2973_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2974_ = l_Lean_indentD(v___x_2973_); -v___x_2975_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2975_, 0, v___x_2972_); -lean_ctor_set(v___x_2975_, 1, v___x_2974_); -v___x_2976_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2976_; lean_object* v___x_2977_; lean_object* v___x_2978_; lean_object* v___x_2979_; lean_object* v___x_2980_; lean_object* v___x_2981_; lean_object* v___x_2982_; lean_object* v___x_2983_; lean_object* v___x_2984_; lean_object* v___x_2985_; lean_object* v___x_2986_; +v___x_2976_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2977_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2977_, 0, v___x_2975_); lean_ctor_set(v___x_2977_, 1, v___x_2976_); -v___x_2978_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2978_, 0, v___x_2977_); -lean_ctor_set(v___x_2978_, 1, v___x_2968_); -v___x_2979_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2978_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2979_ = l_Lean_indentD(v___x_2978_); v___x_2980_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2980_, 0, v___x_2978_); +lean_ctor_set(v___x_2980_, 0, v___x_2977_); lean_ctor_set(v___x_2980_, 1, v___x_2979_); -v___x_2981_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2980_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_2981_; +v___x_2981_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2982_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2982_, 0, v___x_2980_); +lean_ctor_set(v___x_2982_, 1, v___x_2981_); +v___x_2983_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2983_, 0, v___x_2982_); +lean_ctor_set(v___x_2983_, 1, v___x_2973_); +v___x_2984_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2985_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2985_, 0, v___x_2983_); +lean_ctor_set(v___x_2985_, 1, v___x_2984_); +v___x_2986_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2985_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_2986_; } } else { -lean_object* v_val_2983_; lean_object* v___x_2985_; -lean_del_object(v___x_2965_); -lean_dec(v___x_2954_); -lean_dec(v_stx_2291_); -v_val_2983_ = lean_ctor_get(v_fst_2963_, 0); -lean_inc(v_val_2983_); -lean_dec_ref(v_fst_2963_); -if (v_isShared_2962_ == 0) +lean_object* v_val_2988_; lean_object* v___x_2990_; +lean_del_object(v___x_2970_); +lean_dec(v___x_2959_); +lean_dec(v_stx_2296_); +v_val_2988_ = lean_ctor_get(v_fst_2968_, 0); +lean_inc(v_val_2988_); +lean_dec_ref(v_fst_2968_); +if (v_isShared_2967_ == 0) { -lean_ctor_set(v___x_2961_, 0, v_val_2983_); -v___x_2985_ = v___x_2961_; -goto v_reusejp_2984_; +lean_ctor_set(v___x_2966_, 0, v_val_2988_); +v___x_2990_ = v___x_2966_; +goto v_reusejp_2989_; } else { -lean_object* v_reuseFailAlloc_2986_; -v_reuseFailAlloc_2986_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2986_, 0, v_val_2983_); -v___x_2985_ = v_reuseFailAlloc_2986_; -goto v_reusejp_2984_; +lean_object* v_reuseFailAlloc_2991_; +v_reuseFailAlloc_2991_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2991_, 0, v_val_2988_); +v___x_2990_ = v_reuseFailAlloc_2991_; +goto v_reusejp_2989_; } -v_reusejp_2984_: +v_reusejp_2989_: { -return v___x_2985_; +return v___x_2990_; } } } @@ -7177,213 +7194,213 @@ return v___x_2985_; } else { -lean_object* v_a_2990_; lean_object* v___x_2992_; uint8_t v_isShared_2993_; uint8_t v_isSharedCheck_2997_; -lean_dec(v___x_2954_); -lean_dec(v_stx_2291_); -v_a_2990_ = lean_ctor_get(v___x_2958_, 0); -v_isSharedCheck_2997_ = !lean_is_exclusive(v___x_2958_); -if (v_isSharedCheck_2997_ == 0) +lean_object* v_a_2995_; lean_object* v___x_2997_; uint8_t v_isShared_2998_; uint8_t v_isSharedCheck_3002_; +lean_dec(v___x_2959_); +lean_dec(v_stx_2296_); +v_a_2995_ = lean_ctor_get(v___x_2963_, 0); +v_isSharedCheck_3002_ = !lean_is_exclusive(v___x_2963_); +if (v_isSharedCheck_3002_ == 0) { -v___x_2992_ = v___x_2958_; -v_isShared_2993_ = v_isSharedCheck_2997_; -goto v_resetjp_2991_; +v___x_2997_ = v___x_2963_; +v_isShared_2998_ = v_isSharedCheck_3002_; +goto v_resetjp_2996_; } else { -lean_inc(v_a_2990_); -lean_dec(v___x_2958_); -v___x_2992_ = lean_box(0); -v_isShared_2993_ = v_isSharedCheck_2997_; -goto v_resetjp_2991_; +lean_inc(v_a_2995_); +lean_dec(v___x_2963_); +v___x_2997_ = lean_box(0); +v_isShared_2998_ = v_isSharedCheck_3002_; +goto v_resetjp_2996_; } -v_resetjp_2991_: +v_resetjp_2996_: { -lean_object* v___x_2995_; -if (v_isShared_2993_ == 0) +lean_object* v___x_3000_; +if (v_isShared_2998_ == 0) { -v___x_2995_ = v___x_2992_; -goto v_reusejp_2994_; +v___x_3000_ = v___x_2997_; +goto v_reusejp_2999_; } else { -lean_object* v_reuseFailAlloc_2996_; -v_reuseFailAlloc_2996_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2996_, 0, v_a_2990_); -v___x_2995_ = v_reuseFailAlloc_2996_; -goto v_reusejp_2994_; +lean_object* v_reuseFailAlloc_3001_; +v_reuseFailAlloc_3001_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3001_, 0, v_a_2995_); +v___x_3000_ = v_reuseFailAlloc_3001_; +goto v_reusejp_2999_; } -v_reusejp_2994_: +v_reusejp_2999_: { -return v___x_2995_; +return v___x_3000_; } } } } else { -v___y_2736_ = v_a_2292_; -v___y_2737_ = v_a_2293_; -v___y_2738_ = v_a_2294_; -v___y_2739_ = v_a_2295_; -v___y_2740_ = v_a_2296_; v___y_2741_ = v_a_2297_; -goto v___jp_2735_; +v___y_2742_ = v_a_2298_; +v___y_2743_ = v_a_2299_; +v___y_2744_ = v_a_2300_; +v___y_2745_ = v_a_2301_; +v___y_2746_ = v_a_2302_; +goto v___jp_2740_; } } else { -lean_dec(v___x_2948_); -v___y_2736_ = v_a_2292_; -v___y_2737_ = v_a_2293_; -v___y_2738_ = v_a_2294_; -v___y_2739_ = v_a_2295_; -v___y_2740_ = v_a_2296_; +lean_dec(v___x_2953_); v___y_2741_ = v_a_2297_; -goto v___jp_2735_; +v___y_2742_ = v_a_2298_; +v___y_2743_ = v_a_2299_; +v___y_2744_ = v_a_2300_; +v___y_2745_ = v_a_2301_; +v___y_2746_ = v_a_2302_; +goto v___jp_2740_; } -v___jp_2735_: +v___jp_2740_: { -lean_object* v___x_2742_; lean_object* v___x_2743_; lean_object* v___x_2744_; uint8_t v___x_2745_; -v___x_2742_ = lean_unsigned_to_nat(4u); -v___x_2743_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2742_); -v___x_2744_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__64)); -lean_inc(v___x_2743_); -v___x_2745_ = l_Lean_Syntax_isOfKind(v___x_2743_, v___x_2744_); -if (v___x_2745_ == 0) +lean_object* v___x_2747_; lean_object* v___x_2748_; lean_object* v___x_2749_; uint8_t v___x_2750_; +v___x_2747_ = lean_unsigned_to_nat(4u); +v___x_2748_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2747_); +v___x_2749_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__64)); +lean_inc(v___x_2748_); +v___x_2750_ = l_Lean_Syntax_isOfKind(v___x_2748_, v___x_2749_); +if (v___x_2750_ == 0) { -lean_object* v___x_2746_; lean_object* v_env_2747_; lean_object* v___x_2748_; lean_object* v___x_2749_; lean_object* v___x_2750_; lean_object* v___x_2751_; lean_object* v___x_2752_; -lean_dec(v___x_2743_); -v___x_2746_ = lean_st_ref_get(v___y_2741_); -v_env_2747_ = lean_ctor_get(v___x_2746_, 0); -lean_inc_ref(v_env_2747_); -lean_dec(v___x_2746_); -lean_inc_n(v_stx_2291_, 2); -v___x_2748_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2749_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2750_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2749_, v_env_2747_, v___x_2748_); -v___x_2751_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2752_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2750_, v___x_2751_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v___x_2750_); -if (lean_obj_tag(v___x_2752_) == 0) +lean_object* v___x_2751_; lean_object* v_env_2752_; lean_object* v___x_2753_; lean_object* v___x_2754_; lean_object* v___x_2755_; lean_object* v___x_2756_; lean_object* v___x_2757_; +lean_dec(v___x_2748_); +v___x_2751_ = lean_st_ref_get(v___y_2746_); +v_env_2752_ = lean_ctor_get(v___x_2751_, 0); +lean_inc_ref(v_env_2752_); +lean_dec(v___x_2751_); +lean_inc_n(v_stx_2296_, 2); +v___x_2753_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2754_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2755_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2754_, v_env_2752_, v___x_2753_); +v___x_2756_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2757_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2755_, v___x_2756_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +lean_dec(v___x_2755_); +if (lean_obj_tag(v___x_2757_) == 0) { -lean_object* v_a_2753_; lean_object* v___x_2755_; uint8_t v_isShared_2756_; uint8_t v_isSharedCheck_2783_; -v_a_2753_ = lean_ctor_get(v___x_2752_, 0); -v_isSharedCheck_2783_ = !lean_is_exclusive(v___x_2752_); -if (v_isSharedCheck_2783_ == 0) +lean_object* v_a_2758_; lean_object* v___x_2760_; uint8_t v_isShared_2761_; uint8_t v_isSharedCheck_2788_; +v_a_2758_ = lean_ctor_get(v___x_2757_, 0); +v_isSharedCheck_2788_ = !lean_is_exclusive(v___x_2757_); +if (v_isSharedCheck_2788_ == 0) { -v___x_2755_ = v___x_2752_; -v_isShared_2756_ = v_isSharedCheck_2783_; -goto v_resetjp_2754_; +v___x_2760_ = v___x_2757_; +v_isShared_2761_ = v_isSharedCheck_2788_; +goto v_resetjp_2759_; } else { -lean_inc(v_a_2753_); -lean_dec(v___x_2752_); -v___x_2755_ = lean_box(0); -v_isShared_2756_ = v_isSharedCheck_2783_; -goto v_resetjp_2754_; +lean_inc(v_a_2758_); +lean_dec(v___x_2757_); +v___x_2760_ = lean_box(0); +v_isShared_2761_ = v_isSharedCheck_2788_; +goto v_resetjp_2759_; } -v_resetjp_2754_: +v_resetjp_2759_: { -lean_object* v_fst_2757_; lean_object* v___x_2759_; uint8_t v_isShared_2760_; uint8_t v_isSharedCheck_2781_; -v_fst_2757_ = lean_ctor_get(v_a_2753_, 0); -v_isSharedCheck_2781_ = !lean_is_exclusive(v_a_2753_); -if (v_isSharedCheck_2781_ == 0) +lean_object* v_fst_2762_; lean_object* v___x_2764_; uint8_t v_isShared_2765_; uint8_t v_isSharedCheck_2786_; +v_fst_2762_ = lean_ctor_get(v_a_2758_, 0); +v_isSharedCheck_2786_ = !lean_is_exclusive(v_a_2758_); +if (v_isSharedCheck_2786_ == 0) { -lean_object* v_unused_2782_; -v_unused_2782_ = lean_ctor_get(v_a_2753_, 1); -lean_dec(v_unused_2782_); -v___x_2759_ = v_a_2753_; -v_isShared_2760_ = v_isSharedCheck_2781_; -goto v_resetjp_2758_; +lean_object* v_unused_2787_; +v_unused_2787_ = lean_ctor_get(v_a_2758_, 1); +lean_dec(v_unused_2787_); +v___x_2764_ = v_a_2758_; +v_isShared_2765_ = v_isSharedCheck_2786_; +goto v_resetjp_2763_; } else { -lean_inc(v_fst_2757_); -lean_dec(v_a_2753_); -v___x_2759_ = lean_box(0); -v_isShared_2760_ = v_isSharedCheck_2781_; -goto v_resetjp_2758_; +lean_inc(v_fst_2762_); +lean_dec(v_a_2758_); +v___x_2764_ = lean_box(0); +v_isShared_2765_ = v_isSharedCheck_2786_; +goto v_resetjp_2763_; } -v_resetjp_2758_: +v_resetjp_2763_: { -if (lean_obj_tag(v_fst_2757_) == 0) +if (lean_obj_tag(v_fst_2762_) == 0) { -lean_object* v___x_2761_; lean_object* v___x_2762_; lean_object* v___x_2764_; -lean_del_object(v___x_2755_); -v___x_2761_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2762_ = l_Lean_MessageData_ofName(v___x_2748_); -lean_inc_ref(v___x_2762_); -if (v_isShared_2760_ == 0) +lean_object* v___x_2766_; lean_object* v___x_2767_; lean_object* v___x_2769_; +lean_del_object(v___x_2760_); +v___x_2766_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2767_ = l_Lean_MessageData_ofName(v___x_2753_); +lean_inc_ref(v___x_2767_); +if (v_isShared_2765_ == 0) { -lean_ctor_set_tag(v___x_2759_, 7); -lean_ctor_set(v___x_2759_, 1, v___x_2762_); -lean_ctor_set(v___x_2759_, 0, v___x_2761_); -v___x_2764_ = v___x_2759_; -goto v_reusejp_2763_; +lean_ctor_set_tag(v___x_2764_, 7); +lean_ctor_set(v___x_2764_, 1, v___x_2767_); +lean_ctor_set(v___x_2764_, 0, v___x_2766_); +v___x_2769_ = v___x_2764_; +goto v_reusejp_2768_; } else { -lean_object* v_reuseFailAlloc_2776_; -v_reuseFailAlloc_2776_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2776_, 0, v___x_2761_); -lean_ctor_set(v_reuseFailAlloc_2776_, 1, v___x_2762_); -v___x_2764_ = v_reuseFailAlloc_2776_; -goto v_reusejp_2763_; +lean_object* v_reuseFailAlloc_2781_; +v_reuseFailAlloc_2781_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2781_, 0, v___x_2766_); +lean_ctor_set(v_reuseFailAlloc_2781_, 1, v___x_2767_); +v___x_2769_ = v_reuseFailAlloc_2781_; +goto v_reusejp_2768_; } -v_reusejp_2763_: +v_reusejp_2768_: { -lean_object* v___x_2765_; lean_object* v___x_2766_; lean_object* v___x_2767_; lean_object* v___x_2768_; lean_object* v___x_2769_; lean_object* v___x_2770_; lean_object* v___x_2771_; lean_object* v___x_2772_; lean_object* v___x_2773_; lean_object* v___x_2774_; lean_object* v___x_2775_; -v___x_2765_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2766_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2766_, 0, v___x_2764_); -lean_ctor_set(v___x_2766_, 1, v___x_2765_); -v___x_2767_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2768_ = l_Lean_indentD(v___x_2767_); -v___x_2769_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2769_, 0, v___x_2766_); -lean_ctor_set(v___x_2769_, 1, v___x_2768_); -v___x_2770_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2770_; lean_object* v___x_2771_; lean_object* v___x_2772_; lean_object* v___x_2773_; lean_object* v___x_2774_; lean_object* v___x_2775_; lean_object* v___x_2776_; lean_object* v___x_2777_; lean_object* v___x_2778_; lean_object* v___x_2779_; lean_object* v___x_2780_; +v___x_2770_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2771_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2771_, 0, v___x_2769_); lean_ctor_set(v___x_2771_, 1, v___x_2770_); -v___x_2772_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2772_, 0, v___x_2771_); -lean_ctor_set(v___x_2772_, 1, v___x_2762_); -v___x_2773_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2772_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2773_ = l_Lean_indentD(v___x_2772_); v___x_2774_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2774_, 0, v___x_2772_); +lean_ctor_set(v___x_2774_, 0, v___x_2771_); lean_ctor_set(v___x_2774_, 1, v___x_2773_); -v___x_2775_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2774_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -return v___x_2775_; +v___x_2775_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2776_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2776_, 0, v___x_2774_); +lean_ctor_set(v___x_2776_, 1, v___x_2775_); +v___x_2777_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2777_, 0, v___x_2776_); +lean_ctor_set(v___x_2777_, 1, v___x_2767_); +v___x_2778_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2779_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2779_, 0, v___x_2777_); +lean_ctor_set(v___x_2779_, 1, v___x_2778_); +v___x_2780_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2779_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +return v___x_2780_; } } else { -lean_object* v_val_2777_; lean_object* v___x_2779_; -lean_del_object(v___x_2759_); -lean_dec(v___x_2748_); -lean_dec(v_stx_2291_); -v_val_2777_ = lean_ctor_get(v_fst_2757_, 0); -lean_inc(v_val_2777_); -lean_dec_ref(v_fst_2757_); -if (v_isShared_2756_ == 0) +lean_object* v_val_2782_; lean_object* v___x_2784_; +lean_del_object(v___x_2764_); +lean_dec(v___x_2753_); +lean_dec(v_stx_2296_); +v_val_2782_ = lean_ctor_get(v_fst_2762_, 0); +lean_inc(v_val_2782_); +lean_dec_ref(v_fst_2762_); +if (v_isShared_2761_ == 0) { -lean_ctor_set(v___x_2755_, 0, v_val_2777_); -v___x_2779_ = v___x_2755_; -goto v_reusejp_2778_; +lean_ctor_set(v___x_2760_, 0, v_val_2782_); +v___x_2784_ = v___x_2760_; +goto v_reusejp_2783_; } else { -lean_object* v_reuseFailAlloc_2780_; -v_reuseFailAlloc_2780_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2780_, 0, v_val_2777_); -v___x_2779_ = v_reuseFailAlloc_2780_; -goto v_reusejp_2778_; +lean_object* v_reuseFailAlloc_2785_; +v_reuseFailAlloc_2785_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2785_, 0, v_val_2782_); +v___x_2784_ = v_reuseFailAlloc_2785_; +goto v_reusejp_2783_; } -v_reusejp_2778_: +v_reusejp_2783_: { -return v___x_2779_; +return v___x_2784_; } } } @@ -7391,192 +7408,192 @@ return v___x_2779_; } else { -lean_object* v_a_2784_; lean_object* v___x_2786_; uint8_t v_isShared_2787_; uint8_t v_isSharedCheck_2791_; -lean_dec(v___x_2748_); -lean_dec(v_stx_2291_); -v_a_2784_ = lean_ctor_get(v___x_2752_, 0); -v_isSharedCheck_2791_ = !lean_is_exclusive(v___x_2752_); -if (v_isSharedCheck_2791_ == 0) +lean_object* v_a_2789_; lean_object* v___x_2791_; uint8_t v_isShared_2792_; uint8_t v_isSharedCheck_2796_; +lean_dec(v___x_2753_); +lean_dec(v_stx_2296_); +v_a_2789_ = lean_ctor_get(v___x_2757_, 0); +v_isSharedCheck_2796_ = !lean_is_exclusive(v___x_2757_); +if (v_isSharedCheck_2796_ == 0) { -v___x_2786_ = v___x_2752_; -v_isShared_2787_ = v_isSharedCheck_2791_; -goto v_resetjp_2785_; +v___x_2791_ = v___x_2757_; +v_isShared_2792_ = v_isSharedCheck_2796_; +goto v_resetjp_2790_; } else { -lean_inc(v_a_2784_); -lean_dec(v___x_2752_); -v___x_2786_ = lean_box(0); -v_isShared_2787_ = v_isSharedCheck_2791_; -goto v_resetjp_2785_; +lean_inc(v_a_2789_); +lean_dec(v___x_2757_); +v___x_2791_ = lean_box(0); +v_isShared_2792_ = v_isSharedCheck_2796_; +goto v_resetjp_2790_; } -v_resetjp_2785_: +v_resetjp_2790_: { -lean_object* v___x_2789_; -if (v_isShared_2787_ == 0) +lean_object* v___x_2794_; +if (v_isShared_2792_ == 0) { -v___x_2789_ = v___x_2786_; -goto v_reusejp_2788_; +v___x_2794_ = v___x_2791_; +goto v_reusejp_2793_; } else { -lean_object* v_reuseFailAlloc_2790_; -v_reuseFailAlloc_2790_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2790_, 0, v_a_2784_); -v___x_2789_ = v_reuseFailAlloc_2790_; -goto v_reusejp_2788_; +lean_object* v_reuseFailAlloc_2795_; +v_reuseFailAlloc_2795_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2795_, 0, v_a_2789_); +v___x_2794_ = v_reuseFailAlloc_2795_; +goto v_reusejp_2793_; } -v_reusejp_2788_: +v_reusejp_2793_: { -return v___x_2789_; +return v___x_2794_; } } } } else { -lean_object* v___x_2792_; lean_object* v___x_2793_; size_t v_sz_2794_; size_t v___x_2795_; lean_object* v___x_2796_; -v___x_2792_ = l_Lean_Syntax_getArg(v___x_2743_, v___x_2733_); -v___x_2793_ = l_Lean_Syntax_getArgs(v___x_2792_); -lean_dec(v___x_2792_); -v_sz_2794_ = lean_array_size(v___x_2793_); -v___x_2795_ = ((size_t)0ULL); -v___x_2796_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(v_sz_2794_, v___x_2795_, v___x_2793_); -if (lean_obj_tag(v___x_2796_) == 0) -{ -lean_object* v___x_2797_; lean_object* v_env_2798_; lean_object* v___x_2799_; lean_object* v___x_2800_; lean_object* v___x_2801_; lean_object* v___x_2802_; lean_object* v___x_2803_; -lean_dec(v___x_2743_); -v___x_2797_ = lean_st_ref_get(v___y_2741_); -v_env_2798_ = lean_ctor_get(v___x_2797_, 0); -lean_inc_ref(v_env_2798_); +lean_object* v___x_2797_; lean_object* v___x_2798_; size_t v_sz_2799_; size_t v___x_2800_; lean_object* v___x_2801_; +v___x_2797_ = l_Lean_Syntax_getArg(v___x_2748_, v___x_2738_); +v___x_2798_ = l_Lean_Syntax_getArgs(v___x_2797_); lean_dec(v___x_2797_); -lean_inc_n(v_stx_2291_, 2); -v___x_2799_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2800_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2801_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2800_, v_env_2798_, v___x_2799_); -v___x_2802_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2803_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2801_, v___x_2802_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v___x_2801_); -if (lean_obj_tag(v___x_2803_) == 0) +v_sz_2799_ = lean_array_size(v___x_2798_); +v___x_2800_ = ((size_t)0ULL); +v___x_2801_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__4(v_sz_2799_, v___x_2800_, v___x_2798_); +if (lean_obj_tag(v___x_2801_) == 0) { -lean_object* v_a_2804_; lean_object* v___x_2806_; uint8_t v_isShared_2807_; uint8_t v_isSharedCheck_2834_; -v_a_2804_ = lean_ctor_get(v___x_2803_, 0); -v_isSharedCheck_2834_ = !lean_is_exclusive(v___x_2803_); -if (v_isSharedCheck_2834_ == 0) +lean_object* v___x_2802_; lean_object* v_env_2803_; lean_object* v___x_2804_; lean_object* v___x_2805_; lean_object* v___x_2806_; lean_object* v___x_2807_; lean_object* v___x_2808_; +lean_dec(v___x_2748_); +v___x_2802_ = lean_st_ref_get(v___y_2746_); +v_env_2803_ = lean_ctor_get(v___x_2802_, 0); +lean_inc_ref(v_env_2803_); +lean_dec(v___x_2802_); +lean_inc_n(v_stx_2296_, 2); +v___x_2804_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2805_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2806_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2805_, v_env_2803_, v___x_2804_); +v___x_2807_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2808_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2806_, v___x_2807_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +lean_dec(v___x_2806_); +if (lean_obj_tag(v___x_2808_) == 0) { -v___x_2806_ = v___x_2803_; -v_isShared_2807_ = v_isSharedCheck_2834_; -goto v_resetjp_2805_; +lean_object* v_a_2809_; lean_object* v___x_2811_; uint8_t v_isShared_2812_; uint8_t v_isSharedCheck_2839_; +v_a_2809_ = lean_ctor_get(v___x_2808_, 0); +v_isSharedCheck_2839_ = !lean_is_exclusive(v___x_2808_); +if (v_isSharedCheck_2839_ == 0) +{ +v___x_2811_ = v___x_2808_; +v_isShared_2812_ = v_isSharedCheck_2839_; +goto v_resetjp_2810_; } else { -lean_inc(v_a_2804_); -lean_dec(v___x_2803_); -v___x_2806_ = lean_box(0); -v_isShared_2807_ = v_isSharedCheck_2834_; -goto v_resetjp_2805_; +lean_inc(v_a_2809_); +lean_dec(v___x_2808_); +v___x_2811_ = lean_box(0); +v_isShared_2812_ = v_isSharedCheck_2839_; +goto v_resetjp_2810_; } -v_resetjp_2805_: +v_resetjp_2810_: { -lean_object* v_fst_2808_; lean_object* v___x_2810_; uint8_t v_isShared_2811_; uint8_t v_isSharedCheck_2832_; -v_fst_2808_ = lean_ctor_get(v_a_2804_, 0); -v_isSharedCheck_2832_ = !lean_is_exclusive(v_a_2804_); -if (v_isSharedCheck_2832_ == 0) +lean_object* v_fst_2813_; lean_object* v___x_2815_; uint8_t v_isShared_2816_; uint8_t v_isSharedCheck_2837_; +v_fst_2813_ = lean_ctor_get(v_a_2809_, 0); +v_isSharedCheck_2837_ = !lean_is_exclusive(v_a_2809_); +if (v_isSharedCheck_2837_ == 0) { -lean_object* v_unused_2833_; -v_unused_2833_ = lean_ctor_get(v_a_2804_, 1); -lean_dec(v_unused_2833_); -v___x_2810_ = v_a_2804_; -v_isShared_2811_ = v_isSharedCheck_2832_; -goto v_resetjp_2809_; +lean_object* v_unused_2838_; +v_unused_2838_ = lean_ctor_get(v_a_2809_, 1); +lean_dec(v_unused_2838_); +v___x_2815_ = v_a_2809_; +v_isShared_2816_ = v_isSharedCheck_2837_; +goto v_resetjp_2814_; } else { -lean_inc(v_fst_2808_); -lean_dec(v_a_2804_); -v___x_2810_ = lean_box(0); -v_isShared_2811_ = v_isSharedCheck_2832_; -goto v_resetjp_2809_; +lean_inc(v_fst_2813_); +lean_dec(v_a_2809_); +v___x_2815_ = lean_box(0); +v_isShared_2816_ = v_isSharedCheck_2837_; +goto v_resetjp_2814_; } -v_resetjp_2809_: +v_resetjp_2814_: { -if (lean_obj_tag(v_fst_2808_) == 0) +if (lean_obj_tag(v_fst_2813_) == 0) { -lean_object* v___x_2812_; lean_object* v___x_2813_; lean_object* v___x_2815_; -lean_del_object(v___x_2806_); -v___x_2812_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2813_ = l_Lean_MessageData_ofName(v___x_2799_); -lean_inc_ref(v___x_2813_); -if (v_isShared_2811_ == 0) +lean_object* v___x_2817_; lean_object* v___x_2818_; lean_object* v___x_2820_; +lean_del_object(v___x_2811_); +v___x_2817_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2818_ = l_Lean_MessageData_ofName(v___x_2804_); +lean_inc_ref(v___x_2818_); +if (v_isShared_2816_ == 0) { -lean_ctor_set_tag(v___x_2810_, 7); -lean_ctor_set(v___x_2810_, 1, v___x_2813_); -lean_ctor_set(v___x_2810_, 0, v___x_2812_); -v___x_2815_ = v___x_2810_; -goto v_reusejp_2814_; +lean_ctor_set_tag(v___x_2815_, 7); +lean_ctor_set(v___x_2815_, 1, v___x_2818_); +lean_ctor_set(v___x_2815_, 0, v___x_2817_); +v___x_2820_ = v___x_2815_; +goto v_reusejp_2819_; } else { -lean_object* v_reuseFailAlloc_2827_; -v_reuseFailAlloc_2827_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2827_, 0, v___x_2812_); -lean_ctor_set(v_reuseFailAlloc_2827_, 1, v___x_2813_); -v___x_2815_ = v_reuseFailAlloc_2827_; -goto v_reusejp_2814_; +lean_object* v_reuseFailAlloc_2832_; +v_reuseFailAlloc_2832_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2832_, 0, v___x_2817_); +lean_ctor_set(v_reuseFailAlloc_2832_, 1, v___x_2818_); +v___x_2820_ = v_reuseFailAlloc_2832_; +goto v_reusejp_2819_; } -v_reusejp_2814_: +v_reusejp_2819_: { -lean_object* v___x_2816_; lean_object* v___x_2817_; lean_object* v___x_2818_; lean_object* v___x_2819_; lean_object* v___x_2820_; lean_object* v___x_2821_; lean_object* v___x_2822_; lean_object* v___x_2823_; lean_object* v___x_2824_; lean_object* v___x_2825_; lean_object* v___x_2826_; -v___x_2816_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2817_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2817_, 0, v___x_2815_); -lean_ctor_set(v___x_2817_, 1, v___x_2816_); -v___x_2818_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2819_ = l_Lean_indentD(v___x_2818_); -v___x_2820_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2820_, 0, v___x_2817_); -lean_ctor_set(v___x_2820_, 1, v___x_2819_); -v___x_2821_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2821_; lean_object* v___x_2822_; lean_object* v___x_2823_; lean_object* v___x_2824_; lean_object* v___x_2825_; lean_object* v___x_2826_; lean_object* v___x_2827_; lean_object* v___x_2828_; lean_object* v___x_2829_; lean_object* v___x_2830_; lean_object* v___x_2831_; +v___x_2821_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2822_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2822_, 0, v___x_2820_); lean_ctor_set(v___x_2822_, 1, v___x_2821_); -v___x_2823_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2823_, 0, v___x_2822_); -lean_ctor_set(v___x_2823_, 1, v___x_2813_); -v___x_2824_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2823_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2824_ = l_Lean_indentD(v___x_2823_); v___x_2825_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2825_, 0, v___x_2823_); +lean_ctor_set(v___x_2825_, 0, v___x_2822_); lean_ctor_set(v___x_2825_, 1, v___x_2824_); -v___x_2826_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2825_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -return v___x_2826_; +v___x_2826_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2827_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2827_, 0, v___x_2825_); +lean_ctor_set(v___x_2827_, 1, v___x_2826_); +v___x_2828_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2828_, 0, v___x_2827_); +lean_ctor_set(v___x_2828_, 1, v___x_2818_); +v___x_2829_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2830_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2830_, 0, v___x_2828_); +lean_ctor_set(v___x_2830_, 1, v___x_2829_); +v___x_2831_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2830_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +return v___x_2831_; } } else { -lean_object* v_val_2828_; lean_object* v___x_2830_; -lean_del_object(v___x_2810_); -lean_dec(v___x_2799_); -lean_dec(v_stx_2291_); -v_val_2828_ = lean_ctor_get(v_fst_2808_, 0); -lean_inc(v_val_2828_); -lean_dec_ref(v_fst_2808_); -if (v_isShared_2807_ == 0) +lean_object* v_val_2833_; lean_object* v___x_2835_; +lean_del_object(v___x_2815_); +lean_dec(v___x_2804_); +lean_dec(v_stx_2296_); +v_val_2833_ = lean_ctor_get(v_fst_2813_, 0); +lean_inc(v_val_2833_); +lean_dec_ref(v_fst_2813_); +if (v_isShared_2812_ == 0) { -lean_ctor_set(v___x_2806_, 0, v_val_2828_); -v___x_2830_ = v___x_2806_; -goto v_reusejp_2829_; +lean_ctor_set(v___x_2811_, 0, v_val_2833_); +v___x_2835_ = v___x_2811_; +goto v_reusejp_2834_; } else { -lean_object* v_reuseFailAlloc_2831_; -v_reuseFailAlloc_2831_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2831_, 0, v_val_2828_); -v___x_2830_ = v_reuseFailAlloc_2831_; -goto v_reusejp_2829_; +lean_object* v_reuseFailAlloc_2836_; +v_reuseFailAlloc_2836_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2836_, 0, v_val_2833_); +v___x_2835_ = v_reuseFailAlloc_2836_; +goto v_reusejp_2834_; } -v_reusejp_2829_: +v_reusejp_2834_: { -return v___x_2830_; +return v___x_2835_; } } } @@ -7584,386 +7601,386 @@ return v___x_2830_; } else { -lean_object* v_a_2835_; lean_object* v___x_2837_; uint8_t v_isShared_2838_; uint8_t v_isSharedCheck_2842_; -lean_dec(v___x_2799_); -lean_dec(v_stx_2291_); -v_a_2835_ = lean_ctor_get(v___x_2803_, 0); -v_isSharedCheck_2842_ = !lean_is_exclusive(v___x_2803_); -if (v_isSharedCheck_2842_ == 0) +lean_object* v_a_2840_; lean_object* v___x_2842_; uint8_t v_isShared_2843_; uint8_t v_isSharedCheck_2847_; +lean_dec(v___x_2804_); +lean_dec(v_stx_2296_); +v_a_2840_ = lean_ctor_get(v___x_2808_, 0); +v_isSharedCheck_2847_ = !lean_is_exclusive(v___x_2808_); +if (v_isSharedCheck_2847_ == 0) { -v___x_2837_ = v___x_2803_; -v_isShared_2838_ = v_isSharedCheck_2842_; -goto v_resetjp_2836_; +v___x_2842_ = v___x_2808_; +v_isShared_2843_ = v_isSharedCheck_2847_; +goto v_resetjp_2841_; } else { -lean_inc(v_a_2835_); -lean_dec(v___x_2803_); -v___x_2837_ = lean_box(0); -v_isShared_2838_ = v_isSharedCheck_2842_; -goto v_resetjp_2836_; +lean_inc(v_a_2840_); +lean_dec(v___x_2808_); +v___x_2842_ = lean_box(0); +v_isShared_2843_ = v_isSharedCheck_2847_; +goto v_resetjp_2841_; } -v_resetjp_2836_: +v_resetjp_2841_: { -lean_object* v___x_2840_; -if (v_isShared_2838_ == 0) +lean_object* v___x_2845_; +if (v_isShared_2843_ == 0) { -v___x_2840_ = v___x_2837_; -goto v_reusejp_2839_; +v___x_2845_ = v___x_2842_; +goto v_reusejp_2844_; } else { -lean_object* v_reuseFailAlloc_2841_; -v_reuseFailAlloc_2841_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2841_, 0, v_a_2835_); -v___x_2840_ = v_reuseFailAlloc_2841_; -goto v_reusejp_2839_; +lean_object* v_reuseFailAlloc_2846_; +v_reuseFailAlloc_2846_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2846_, 0, v_a_2840_); +v___x_2845_ = v_reuseFailAlloc_2846_; +goto v_reusejp_2844_; } -v_reusejp_2839_: +v_reusejp_2844_: { -return v___x_2840_; +return v___x_2845_; } } } } else { -lean_object* v_val_2843_; lean_object* v___x_2844_; lean_object* v___x_2845_; uint8_t v___x_2846_; -v_val_2843_ = lean_ctor_get(v___x_2796_, 0); -lean_inc(v_val_2843_); -lean_dec_ref(v___x_2796_); -v___x_2844_ = l_Lean_Syntax_getArg(v___x_2743_, v___x_2734_); -lean_dec(v___x_2743_); -v___x_2845_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__66)); -lean_inc(v___x_2844_); -v___x_2846_ = l_Lean_Syntax_isOfKind(v___x_2844_, v___x_2845_); -if (v___x_2846_ == 0) +lean_object* v_val_2848_; lean_object* v___x_2849_; lean_object* v___x_2850_; uint8_t v___x_2851_; +v_val_2848_ = lean_ctor_get(v___x_2801_, 0); +lean_inc(v_val_2848_); +lean_dec_ref(v___x_2801_); +v___x_2849_ = l_Lean_Syntax_getArg(v___x_2748_, v___x_2739_); +lean_dec(v___x_2748_); +v___x_2850_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__66)); +lean_inc(v___x_2849_); +v___x_2851_ = l_Lean_Syntax_isOfKind(v___x_2849_, v___x_2850_); +if (v___x_2851_ == 0) { -lean_object* v___x_2847_; lean_object* v_env_2848_; lean_object* v___x_2849_; lean_object* v___x_2850_; lean_object* v___x_2851_; lean_object* v___x_2852_; lean_object* v___x_2853_; -lean_dec(v___x_2844_); -lean_dec(v_val_2843_); -v___x_2847_ = lean_st_ref_get(v___y_2741_); -v_env_2848_ = lean_ctor_get(v___x_2847_, 0); -lean_inc_ref(v_env_2848_); -lean_dec(v___x_2847_); -lean_inc_n(v_stx_2291_, 2); -v___x_2849_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2850_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2851_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2850_, v_env_2848_, v___x_2849_); -v___x_2852_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2853_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2851_, v___x_2852_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v___x_2851_); -if (lean_obj_tag(v___x_2853_) == 0) +lean_object* v___x_2852_; lean_object* v_env_2853_; lean_object* v___x_2854_; lean_object* v___x_2855_; lean_object* v___x_2856_; lean_object* v___x_2857_; lean_object* v___x_2858_; +lean_dec(v___x_2849_); +lean_dec(v_val_2848_); +v___x_2852_ = lean_st_ref_get(v___y_2746_); +v_env_2853_ = lean_ctor_get(v___x_2852_, 0); +lean_inc_ref(v_env_2853_); +lean_dec(v___x_2852_); +lean_inc_n(v_stx_2296_, 2); +v___x_2854_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2855_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2856_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2855_, v_env_2853_, v___x_2854_); +v___x_2857_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2858_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2856_, v___x_2857_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +lean_dec(v___x_2856_); +if (lean_obj_tag(v___x_2858_) == 0) { -lean_object* v_a_2854_; lean_object* v___x_2856_; uint8_t v_isShared_2857_; uint8_t v_isSharedCheck_2884_; -v_a_2854_ = lean_ctor_get(v___x_2853_, 0); -v_isSharedCheck_2884_ = !lean_is_exclusive(v___x_2853_); -if (v_isSharedCheck_2884_ == 0) +lean_object* v_a_2859_; lean_object* v___x_2861_; uint8_t v_isShared_2862_; uint8_t v_isSharedCheck_2889_; +v_a_2859_ = lean_ctor_get(v___x_2858_, 0); +v_isSharedCheck_2889_ = !lean_is_exclusive(v___x_2858_); +if (v_isSharedCheck_2889_ == 0) { -v___x_2856_ = v___x_2853_; -v_isShared_2857_ = v_isSharedCheck_2884_; -goto v_resetjp_2855_; +v___x_2861_ = v___x_2858_; +v_isShared_2862_ = v_isSharedCheck_2889_; +goto v_resetjp_2860_; } else { -lean_inc(v_a_2854_); -lean_dec(v___x_2853_); -v___x_2856_ = lean_box(0); -v_isShared_2857_ = v_isSharedCheck_2884_; -goto v_resetjp_2855_; +lean_inc(v_a_2859_); +lean_dec(v___x_2858_); +v___x_2861_ = lean_box(0); +v_isShared_2862_ = v_isSharedCheck_2889_; +goto v_resetjp_2860_; } -v_resetjp_2855_: +v_resetjp_2860_: { -lean_object* v_fst_2858_; lean_object* v___x_2860_; uint8_t v_isShared_2861_; uint8_t v_isSharedCheck_2882_; -v_fst_2858_ = lean_ctor_get(v_a_2854_, 0); -v_isSharedCheck_2882_ = !lean_is_exclusive(v_a_2854_); -if (v_isSharedCheck_2882_ == 0) +lean_object* v_fst_2863_; lean_object* v___x_2865_; uint8_t v_isShared_2866_; uint8_t v_isSharedCheck_2887_; +v_fst_2863_ = lean_ctor_get(v_a_2859_, 0); +v_isSharedCheck_2887_ = !lean_is_exclusive(v_a_2859_); +if (v_isSharedCheck_2887_ == 0) { -lean_object* v_unused_2883_; -v_unused_2883_ = lean_ctor_get(v_a_2854_, 1); -lean_dec(v_unused_2883_); -v___x_2860_ = v_a_2854_; -v_isShared_2861_ = v_isSharedCheck_2882_; -goto v_resetjp_2859_; +lean_object* v_unused_2888_; +v_unused_2888_ = lean_ctor_get(v_a_2859_, 1); +lean_dec(v_unused_2888_); +v___x_2865_ = v_a_2859_; +v_isShared_2866_ = v_isSharedCheck_2887_; +goto v_resetjp_2864_; } else { -lean_inc(v_fst_2858_); -lean_dec(v_a_2854_); -v___x_2860_ = lean_box(0); -v_isShared_2861_ = v_isSharedCheck_2882_; -goto v_resetjp_2859_; +lean_inc(v_fst_2863_); +lean_dec(v_a_2859_); +v___x_2865_ = lean_box(0); +v_isShared_2866_ = v_isSharedCheck_2887_; +goto v_resetjp_2864_; } -v_resetjp_2859_: +v_resetjp_2864_: { -if (lean_obj_tag(v_fst_2858_) == 0) +if (lean_obj_tag(v_fst_2863_) == 0) { -lean_object* v___x_2862_; lean_object* v___x_2863_; lean_object* v___x_2865_; -lean_del_object(v___x_2856_); -v___x_2862_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2863_ = l_Lean_MessageData_ofName(v___x_2849_); -lean_inc_ref(v___x_2863_); -if (v_isShared_2861_ == 0) +lean_object* v___x_2867_; lean_object* v___x_2868_; lean_object* v___x_2870_; +lean_del_object(v___x_2861_); +v___x_2867_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2868_ = l_Lean_MessageData_ofName(v___x_2854_); +lean_inc_ref(v___x_2868_); +if (v_isShared_2866_ == 0) { -lean_ctor_set_tag(v___x_2860_, 7); -lean_ctor_set(v___x_2860_, 1, v___x_2863_); -lean_ctor_set(v___x_2860_, 0, v___x_2862_); -v___x_2865_ = v___x_2860_; -goto v_reusejp_2864_; +lean_ctor_set_tag(v___x_2865_, 7); +lean_ctor_set(v___x_2865_, 1, v___x_2868_); +lean_ctor_set(v___x_2865_, 0, v___x_2867_); +v___x_2870_ = v___x_2865_; +goto v_reusejp_2869_; } else { -lean_object* v_reuseFailAlloc_2877_; -v_reuseFailAlloc_2877_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2877_, 0, v___x_2862_); -lean_ctor_set(v_reuseFailAlloc_2877_, 1, v___x_2863_); -v___x_2865_ = v_reuseFailAlloc_2877_; -goto v_reusejp_2864_; +lean_object* v_reuseFailAlloc_2882_; +v_reuseFailAlloc_2882_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2882_, 0, v___x_2867_); +lean_ctor_set(v_reuseFailAlloc_2882_, 1, v___x_2868_); +v___x_2870_ = v_reuseFailAlloc_2882_; +goto v_reusejp_2869_; } -v_reusejp_2864_: +v_reusejp_2869_: { -lean_object* v___x_2866_; lean_object* v___x_2867_; lean_object* v___x_2868_; lean_object* v___x_2869_; lean_object* v___x_2870_; lean_object* v___x_2871_; lean_object* v___x_2872_; lean_object* v___x_2873_; lean_object* v___x_2874_; lean_object* v___x_2875_; lean_object* v___x_2876_; -v___x_2866_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2867_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2867_, 0, v___x_2865_); -lean_ctor_set(v___x_2867_, 1, v___x_2866_); -v___x_2868_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2869_ = l_Lean_indentD(v___x_2868_); -v___x_2870_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2870_, 0, v___x_2867_); -lean_ctor_set(v___x_2870_, 1, v___x_2869_); -v___x_2871_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2871_; lean_object* v___x_2872_; lean_object* v___x_2873_; lean_object* v___x_2874_; lean_object* v___x_2875_; lean_object* v___x_2876_; lean_object* v___x_2877_; lean_object* v___x_2878_; lean_object* v___x_2879_; lean_object* v___x_2880_; lean_object* v___x_2881_; +v___x_2871_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2872_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2872_, 0, v___x_2870_); lean_ctor_set(v___x_2872_, 1, v___x_2871_); -v___x_2873_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2873_, 0, v___x_2872_); -lean_ctor_set(v___x_2873_, 1, v___x_2863_); -v___x_2874_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2873_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2874_ = l_Lean_indentD(v___x_2873_); v___x_2875_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2875_, 0, v___x_2873_); +lean_ctor_set(v___x_2875_, 0, v___x_2872_); lean_ctor_set(v___x_2875_, 1, v___x_2874_); -v___x_2876_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2875_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -return v___x_2876_; +v___x_2876_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2877_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2877_, 0, v___x_2875_); +lean_ctor_set(v___x_2877_, 1, v___x_2876_); +v___x_2878_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2878_, 0, v___x_2877_); +lean_ctor_set(v___x_2878_, 1, v___x_2868_); +v___x_2879_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2880_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2880_, 0, v___x_2878_); +lean_ctor_set(v___x_2880_, 1, v___x_2879_); +v___x_2881_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2880_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +return v___x_2881_; } } else { -lean_object* v_val_2878_; lean_object* v___x_2880_; -lean_del_object(v___x_2860_); +lean_object* v_val_2883_; lean_object* v___x_2885_; +lean_del_object(v___x_2865_); +lean_dec(v___x_2854_); +lean_dec(v_stx_2296_); +v_val_2883_ = lean_ctor_get(v_fst_2863_, 0); +lean_inc(v_val_2883_); +lean_dec_ref(v_fst_2863_); +if (v_isShared_2862_ == 0) +{ +lean_ctor_set(v___x_2861_, 0, v_val_2883_); +v___x_2885_ = v___x_2861_; +goto v_reusejp_2884_; +} +else +{ +lean_object* v_reuseFailAlloc_2886_; +v_reuseFailAlloc_2886_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2886_, 0, v_val_2883_); +v___x_2885_ = v_reuseFailAlloc_2886_; +goto v_reusejp_2884_; +} +v_reusejp_2884_: +{ +return v___x_2885_; +} +} +} +} +} +else +{ +lean_object* v_a_2890_; lean_object* v___x_2892_; uint8_t v_isShared_2893_; uint8_t v_isSharedCheck_2897_; +lean_dec(v___x_2854_); +lean_dec(v_stx_2296_); +v_a_2890_ = lean_ctor_get(v___x_2858_, 0); +v_isSharedCheck_2897_ = !lean_is_exclusive(v___x_2858_); +if (v_isSharedCheck_2897_ == 0) +{ +v___x_2892_ = v___x_2858_; +v_isShared_2893_ = v_isSharedCheck_2897_; +goto v_resetjp_2891_; +} +else +{ +lean_inc(v_a_2890_); +lean_dec(v___x_2858_); +v___x_2892_ = lean_box(0); +v_isShared_2893_ = v_isSharedCheck_2897_; +goto v_resetjp_2891_; +} +v_resetjp_2891_: +{ +lean_object* v___x_2895_; +if (v_isShared_2893_ == 0) +{ +v___x_2895_ = v___x_2892_; +goto v_reusejp_2894_; +} +else +{ +lean_object* v_reuseFailAlloc_2896_; +v_reuseFailAlloc_2896_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2896_, 0, v_a_2890_); +v___x_2895_ = v_reuseFailAlloc_2896_; +goto v_reusejp_2894_; +} +v_reusejp_2894_: +{ +return v___x_2895_; +} +} +} +} +else +{ +lean_object* v___x_2898_; lean_object* v___x_2899_; uint8_t v___x_2900_; +v___x_2898_ = l_Lean_Syntax_getArg(v___x_2849_, v___x_2739_); +v___x_2899_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__68)); +v___x_2900_ = l_Lean_Syntax_isOfKind(v___x_2898_, v___x_2899_); +if (v___x_2900_ == 0) +{ +lean_object* v___x_2901_; lean_object* v_env_2902_; lean_object* v___x_2903_; lean_object* v___x_2904_; lean_object* v___x_2905_; lean_object* v___x_2906_; lean_object* v___x_2907_; lean_dec(v___x_2849_); -lean_dec(v_stx_2291_); -v_val_2878_ = lean_ctor_get(v_fst_2858_, 0); -lean_inc(v_val_2878_); -lean_dec_ref(v_fst_2858_); -if (v_isShared_2857_ == 0) +lean_dec(v_val_2848_); +v___x_2901_ = lean_st_ref_get(v___y_2746_); +v_env_2902_ = lean_ctor_get(v___x_2901_, 0); +lean_inc_ref(v_env_2902_); +lean_dec(v___x_2901_); +lean_inc_n(v_stx_2296_, 2); +v___x_2903_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2904_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2905_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2904_, v_env_2902_, v___x_2903_); +v___x_2906_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2907_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2905_, v___x_2906_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +lean_dec(v___x_2905_); +if (lean_obj_tag(v___x_2907_) == 0) { -lean_ctor_set(v___x_2856_, 0, v_val_2878_); -v___x_2880_ = v___x_2856_; -goto v_reusejp_2879_; +lean_object* v_a_2908_; lean_object* v___x_2910_; uint8_t v_isShared_2911_; uint8_t v_isSharedCheck_2938_; +v_a_2908_ = lean_ctor_get(v___x_2907_, 0); +v_isSharedCheck_2938_ = !lean_is_exclusive(v___x_2907_); +if (v_isSharedCheck_2938_ == 0) +{ +v___x_2910_ = v___x_2907_; +v_isShared_2911_ = v_isSharedCheck_2938_; +goto v_resetjp_2909_; } else { -lean_object* v_reuseFailAlloc_2881_; -v_reuseFailAlloc_2881_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2881_, 0, v_val_2878_); -v___x_2880_ = v_reuseFailAlloc_2881_; -goto v_reusejp_2879_; +lean_inc(v_a_2908_); +lean_dec(v___x_2907_); +v___x_2910_ = lean_box(0); +v_isShared_2911_ = v_isSharedCheck_2938_; +goto v_resetjp_2909_; } -v_reusejp_2879_: +v_resetjp_2909_: { -return v___x_2880_; -} -} -} -} +lean_object* v_fst_2912_; lean_object* v___x_2914_; uint8_t v_isShared_2915_; uint8_t v_isSharedCheck_2936_; +v_fst_2912_ = lean_ctor_get(v_a_2908_, 0); +v_isSharedCheck_2936_ = !lean_is_exclusive(v_a_2908_); +if (v_isSharedCheck_2936_ == 0) +{ +lean_object* v_unused_2937_; +v_unused_2937_ = lean_ctor_get(v_a_2908_, 1); +lean_dec(v_unused_2937_); +v___x_2914_ = v_a_2908_; +v_isShared_2915_ = v_isSharedCheck_2936_; +goto v_resetjp_2913_; } else { -lean_object* v_a_2885_; lean_object* v___x_2887_; uint8_t v_isShared_2888_; uint8_t v_isSharedCheck_2892_; -lean_dec(v___x_2849_); -lean_dec(v_stx_2291_); -v_a_2885_ = lean_ctor_get(v___x_2853_, 0); -v_isSharedCheck_2892_ = !lean_is_exclusive(v___x_2853_); -if (v_isSharedCheck_2892_ == 0) +lean_inc(v_fst_2912_); +lean_dec(v_a_2908_); +v___x_2914_ = lean_box(0); +v_isShared_2915_ = v_isSharedCheck_2936_; +goto v_resetjp_2913_; +} +v_resetjp_2913_: { -v___x_2887_ = v___x_2853_; -v_isShared_2888_ = v_isSharedCheck_2892_; -goto v_resetjp_2886_; +if (lean_obj_tag(v_fst_2912_) == 0) +{ +lean_object* v___x_2916_; lean_object* v___x_2917_; lean_object* v___x_2919_; +lean_del_object(v___x_2910_); +v___x_2916_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2917_ = l_Lean_MessageData_ofName(v___x_2903_); +lean_inc_ref(v___x_2917_); +if (v_isShared_2915_ == 0) +{ +lean_ctor_set_tag(v___x_2914_, 7); +lean_ctor_set(v___x_2914_, 1, v___x_2917_); +lean_ctor_set(v___x_2914_, 0, v___x_2916_); +v___x_2919_ = v___x_2914_; +goto v_reusejp_2918_; } else { -lean_inc(v_a_2885_); -lean_dec(v___x_2853_); -v___x_2887_ = lean_box(0); -v_isShared_2888_ = v_isSharedCheck_2892_; -goto v_resetjp_2886_; +lean_object* v_reuseFailAlloc_2931_; +v_reuseFailAlloc_2931_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2931_, 0, v___x_2916_); +lean_ctor_set(v_reuseFailAlloc_2931_, 1, v___x_2917_); +v___x_2919_ = v_reuseFailAlloc_2931_; +goto v_reusejp_2918_; } -v_resetjp_2886_: +v_reusejp_2918_: { -lean_object* v___x_2890_; -if (v_isShared_2888_ == 0) -{ -v___x_2890_ = v___x_2887_; -goto v_reusejp_2889_; -} -else -{ -lean_object* v_reuseFailAlloc_2891_; -v_reuseFailAlloc_2891_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2891_, 0, v_a_2885_); -v___x_2890_ = v_reuseFailAlloc_2891_; -goto v_reusejp_2889_; -} -v_reusejp_2889_: -{ -return v___x_2890_; -} -} -} -} -else -{ -lean_object* v___x_2893_; lean_object* v___x_2894_; uint8_t v___x_2895_; -v___x_2893_ = l_Lean_Syntax_getArg(v___x_2844_, v___x_2734_); -v___x_2894_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__68)); -v___x_2895_ = l_Lean_Syntax_isOfKind(v___x_2893_, v___x_2894_); -if (v___x_2895_ == 0) -{ -lean_object* v___x_2896_; lean_object* v_env_2897_; lean_object* v___x_2898_; lean_object* v___x_2899_; lean_object* v___x_2900_; lean_object* v___x_2901_; lean_object* v___x_2902_; -lean_dec(v___x_2844_); -lean_dec(v_val_2843_); -v___x_2896_ = lean_st_ref_get(v___y_2741_); -v_env_2897_ = lean_ctor_get(v___x_2896_, 0); -lean_inc_ref(v_env_2897_); -lean_dec(v___x_2896_); -lean_inc_n(v_stx_2291_, 2); -v___x_2898_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2899_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2900_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2899_, v_env_2897_, v___x_2898_); -v___x_2901_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2902_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2900_, v___x_2901_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v___x_2900_); -if (lean_obj_tag(v___x_2902_) == 0) -{ -lean_object* v_a_2903_; lean_object* v___x_2905_; uint8_t v_isShared_2906_; uint8_t v_isSharedCheck_2933_; -v_a_2903_ = lean_ctor_get(v___x_2902_, 0); -v_isSharedCheck_2933_ = !lean_is_exclusive(v___x_2902_); -if (v_isSharedCheck_2933_ == 0) -{ -v___x_2905_ = v___x_2902_; -v_isShared_2906_ = v_isSharedCheck_2933_; -goto v_resetjp_2904_; -} -else -{ -lean_inc(v_a_2903_); -lean_dec(v___x_2902_); -v___x_2905_ = lean_box(0); -v_isShared_2906_ = v_isSharedCheck_2933_; -goto v_resetjp_2904_; -} -v_resetjp_2904_: -{ -lean_object* v_fst_2907_; lean_object* v___x_2909_; uint8_t v_isShared_2910_; uint8_t v_isSharedCheck_2931_; -v_fst_2907_ = lean_ctor_get(v_a_2903_, 0); -v_isSharedCheck_2931_ = !lean_is_exclusive(v_a_2903_); -if (v_isSharedCheck_2931_ == 0) -{ -lean_object* v_unused_2932_; -v_unused_2932_ = lean_ctor_get(v_a_2903_, 1); -lean_dec(v_unused_2932_); -v___x_2909_ = v_a_2903_; -v_isShared_2910_ = v_isSharedCheck_2931_; -goto v_resetjp_2908_; -} -else -{ -lean_inc(v_fst_2907_); -lean_dec(v_a_2903_); -v___x_2909_ = lean_box(0); -v_isShared_2910_ = v_isSharedCheck_2931_; -goto v_resetjp_2908_; -} -v_resetjp_2908_: -{ -if (lean_obj_tag(v_fst_2907_) == 0) -{ -lean_object* v___x_2911_; lean_object* v___x_2912_; lean_object* v___x_2914_; -lean_del_object(v___x_2905_); -v___x_2911_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2912_ = l_Lean_MessageData_ofName(v___x_2898_); -lean_inc_ref(v___x_2912_); -if (v_isShared_2910_ == 0) -{ -lean_ctor_set_tag(v___x_2909_, 7); -lean_ctor_set(v___x_2909_, 1, v___x_2912_); -lean_ctor_set(v___x_2909_, 0, v___x_2911_); -v___x_2914_ = v___x_2909_; -goto v_reusejp_2913_; -} -else -{ -lean_object* v_reuseFailAlloc_2926_; -v_reuseFailAlloc_2926_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2926_, 0, v___x_2911_); -lean_ctor_set(v_reuseFailAlloc_2926_, 1, v___x_2912_); -v___x_2914_ = v_reuseFailAlloc_2926_; -goto v_reusejp_2913_; -} -v_reusejp_2913_: -{ -lean_object* v___x_2915_; lean_object* v___x_2916_; lean_object* v___x_2917_; lean_object* v___x_2918_; lean_object* v___x_2919_; lean_object* v___x_2920_; lean_object* v___x_2921_; lean_object* v___x_2922_; lean_object* v___x_2923_; lean_object* v___x_2924_; lean_object* v___x_2925_; -v___x_2915_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2916_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2916_, 0, v___x_2914_); -lean_ctor_set(v___x_2916_, 1, v___x_2915_); -v___x_2917_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2918_ = l_Lean_indentD(v___x_2917_); -v___x_2919_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2919_, 0, v___x_2916_); -lean_ctor_set(v___x_2919_, 1, v___x_2918_); -v___x_2920_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2920_; lean_object* v___x_2921_; lean_object* v___x_2922_; lean_object* v___x_2923_; lean_object* v___x_2924_; lean_object* v___x_2925_; lean_object* v___x_2926_; lean_object* v___x_2927_; lean_object* v___x_2928_; lean_object* v___x_2929_; lean_object* v___x_2930_; +v___x_2920_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2921_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2921_, 0, v___x_2919_); lean_ctor_set(v___x_2921_, 1, v___x_2920_); -v___x_2922_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2922_, 0, v___x_2921_); -lean_ctor_set(v___x_2922_, 1, v___x_2912_); -v___x_2923_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2922_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2923_ = l_Lean_indentD(v___x_2922_); v___x_2924_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2924_, 0, v___x_2922_); +lean_ctor_set(v___x_2924_, 0, v___x_2921_); lean_ctor_set(v___x_2924_, 1, v___x_2923_); -v___x_2925_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2924_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -return v___x_2925_; +v___x_2925_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2926_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2926_, 0, v___x_2924_); +lean_ctor_set(v___x_2926_, 1, v___x_2925_); +v___x_2927_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2927_, 0, v___x_2926_); +lean_ctor_set(v___x_2927_, 1, v___x_2917_); +v___x_2928_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2929_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2929_, 0, v___x_2927_); +lean_ctor_set(v___x_2929_, 1, v___x_2928_); +v___x_2930_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2929_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +return v___x_2930_; } } else { -lean_object* v_val_2927_; lean_object* v___x_2929_; -lean_del_object(v___x_2909_); -lean_dec(v___x_2898_); -lean_dec(v_stx_2291_); -v_val_2927_ = lean_ctor_get(v_fst_2907_, 0); -lean_inc(v_val_2927_); -lean_dec_ref(v_fst_2907_); -if (v_isShared_2906_ == 0) +lean_object* v_val_2932_; lean_object* v___x_2934_; +lean_del_object(v___x_2914_); +lean_dec(v___x_2903_); +lean_dec(v_stx_2296_); +v_val_2932_ = lean_ctor_get(v_fst_2912_, 0); +lean_inc(v_val_2932_); +lean_dec_ref(v_fst_2912_); +if (v_isShared_2911_ == 0) { -lean_ctor_set(v___x_2905_, 0, v_val_2927_); -v___x_2929_ = v___x_2905_; -goto v_reusejp_2928_; +lean_ctor_set(v___x_2910_, 0, v_val_2932_); +v___x_2934_ = v___x_2910_; +goto v_reusejp_2933_; } else { -lean_object* v_reuseFailAlloc_2930_; -v_reuseFailAlloc_2930_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2930_, 0, v_val_2927_); -v___x_2929_ = v_reuseFailAlloc_2930_; -goto v_reusejp_2928_; +lean_object* v_reuseFailAlloc_2935_; +v_reuseFailAlloc_2935_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2935_, 0, v_val_2932_); +v___x_2934_ = v_reuseFailAlloc_2935_; +goto v_reusejp_2933_; } -v_reusejp_2928_: +v_reusejp_2933_: { -return v___x_2929_; +return v___x_2934_; } } } @@ -7971,263 +7988,263 @@ return v___x_2929_; } else { -lean_object* v_a_2934_; lean_object* v___x_2936_; uint8_t v_isShared_2937_; uint8_t v_isSharedCheck_2941_; -lean_dec(v___x_2898_); -lean_dec(v_stx_2291_); -v_a_2934_ = lean_ctor_get(v___x_2902_, 0); -v_isSharedCheck_2941_ = !lean_is_exclusive(v___x_2902_); -if (v_isSharedCheck_2941_ == 0) +lean_object* v_a_2939_; lean_object* v___x_2941_; uint8_t v_isShared_2942_; uint8_t v_isSharedCheck_2946_; +lean_dec(v___x_2903_); +lean_dec(v_stx_2296_); +v_a_2939_ = lean_ctor_get(v___x_2907_, 0); +v_isSharedCheck_2946_ = !lean_is_exclusive(v___x_2907_); +if (v_isSharedCheck_2946_ == 0) { -v___x_2936_ = v___x_2902_; -v_isShared_2937_ = v_isSharedCheck_2941_; -goto v_resetjp_2935_; +v___x_2941_ = v___x_2907_; +v_isShared_2942_ = v_isSharedCheck_2946_; +goto v_resetjp_2940_; } else { -lean_inc(v_a_2934_); -lean_dec(v___x_2902_); -v___x_2936_ = lean_box(0); -v_isShared_2937_ = v_isSharedCheck_2941_; -goto v_resetjp_2935_; +lean_inc(v_a_2939_); +lean_dec(v___x_2907_); +v___x_2941_ = lean_box(0); +v_isShared_2942_ = v_isSharedCheck_2946_; +goto v_resetjp_2940_; } -v_resetjp_2935_: +v_resetjp_2940_: { -lean_object* v___x_2939_; -if (v_isShared_2937_ == 0) +lean_object* v___x_2944_; +if (v_isShared_2942_ == 0) { -v___x_2939_ = v___x_2936_; -goto v_reusejp_2938_; +v___x_2944_ = v___x_2941_; +goto v_reusejp_2943_; } else { -lean_object* v_reuseFailAlloc_2940_; -v_reuseFailAlloc_2940_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2940_, 0, v_a_2934_); -v___x_2939_ = v_reuseFailAlloc_2940_; -goto v_reusejp_2938_; +lean_object* v_reuseFailAlloc_2945_; +v_reuseFailAlloc_2945_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2945_, 0, v_a_2939_); +v___x_2944_ = v_reuseFailAlloc_2945_; +goto v_reusejp_2943_; } -v_reusejp_2938_: +v_reusejp_2943_: { -return v___x_2939_; -} -} -} -} -else -{ -lean_object* v___x_2942_; lean_object* v___x_2943_; lean_object* v___x_2944_; -lean_dec(v_stx_2291_); -v___x_2942_ = lean_unsigned_to_nat(3u); -v___x_2943_ = l_Lean_Syntax_getArg(v___x_2844_, v___x_2942_); -lean_dec(v___x_2844_); -v___x_2944_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2943_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -if (lean_obj_tag(v___x_2944_) == 0) -{ -lean_object* v_a_2945_; size_t v_sz_2946_; lean_object* v___x_2947_; -v_a_2945_ = lean_ctor_get(v___x_2944_, 0); -lean_inc(v_a_2945_); -lean_dec_ref(v___x_2944_); -v_sz_2946_ = lean_array_size(v_val_2843_); -v___x_2947_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v_val_2843_, v_sz_2946_, v___x_2795_, v_a_2945_, v___y_2736_, v___y_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v_val_2843_); -return v___x_2947_; -} -else -{ -lean_dec(v_val_2843_); return v___x_2944_; } } } } +else +{ +lean_object* v___x_2947_; lean_object* v___x_2948_; lean_object* v___x_2949_; +lean_dec(v_stx_2296_); +v___x_2947_ = lean_unsigned_to_nat(3u); +v___x_2948_ = l_Lean_Syntax_getArg(v___x_2849_, v___x_2947_); +lean_dec(v___x_2849_); +v___x_2949_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_2948_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +if (lean_obj_tag(v___x_2949_) == 0) +{ +lean_object* v_a_2950_; size_t v_sz_2951_; lean_object* v___x_2952_; +v_a_2950_ = lean_ctor_get(v___x_2949_, 0); +lean_inc(v_a_2950_); +lean_dec_ref(v___x_2949_); +v_sz_2951_ = lean_array_size(v_val_2848_); +v___x_2952_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v_val_2848_, v_sz_2951_, v___x_2800_, v_a_2950_, v___y_2741_, v___y_2742_, v___y_2743_, v___y_2744_, v___y_2745_, v___y_2746_); +lean_dec(v_val_2848_); +return v___x_2952_; +} +else +{ +lean_dec(v_val_2848_); +return v___x_2949_; +} +} +} +} } } } } else { -lean_object* v___x_2998_; lean_object* v___x_2999_; -lean_dec(v_stx_2291_); -v___x_2998_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_2999_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2999_, 0, v___x_2998_); -return v___x_2999_; +lean_object* v___x_3003_; lean_object* v___x_3004_; +lean_dec(v_stx_2296_); +v___x_3003_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_3004_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3004_, 0, v___x_3003_); +return v___x_3004_; } } else { -lean_object* v___x_3000_; lean_object* v___x_3001_; -lean_dec(v_stx_2291_); -v___x_3000_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_3001_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3001_, 0, v___x_3000_); -return v___x_3001_; +lean_object* v___x_3005_; lean_object* v___x_3006_; +lean_dec(v_stx_2296_); +v___x_3005_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_3006_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3006_, 0, v___x_3005_); +return v___x_3006_; } } else { -lean_object* v___x_3002_; lean_object* v___x_3003_; -lean_dec(v_stx_2291_); -v___x_3002_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_3003_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3003_, 0, v___x_3002_); -return v___x_3003_; +lean_object* v___x_3007_; lean_object* v___x_3008_; +lean_dec(v_stx_2296_); +v___x_3007_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_3008_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3008_, 0, v___x_3007_); +return v___x_3008_; } } else { -lean_object* v___x_3004_; lean_object* v___x_3005_; -lean_dec(v_stx_2291_); -v___x_3004_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_3005_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3005_, 0, v___x_3004_); -return v___x_3005_; +lean_object* v___x_3009_; lean_object* v___x_3010_; +lean_dec(v_stx_2296_); +v___x_3009_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_3010_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3010_, 0, v___x_3009_); +return v___x_3010_; } } else { -lean_object* v___x_3006_; lean_object* v___x_3007_; lean_object* v___x_3008_; size_t v_sz_3009_; size_t v___x_3010_; lean_object* v___x_3011_; -v___x_3006_ = lean_unsigned_to_nat(2u); -v___x_3007_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3006_); -v___x_3008_ = l_Lean_Syntax_getArgs(v___x_3007_); -lean_dec(v___x_3007_); -v_sz_3009_ = lean_array_size(v___x_3008_); -v___x_3010_ = ((size_t)0ULL); -v___x_3011_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(v_sz_3009_, v___x_3010_, v___x_3008_); -if (lean_obj_tag(v___x_3011_) == 0) -{ -lean_object* v___x_3012_; lean_object* v_env_3013_; lean_object* v___x_3014_; lean_object* v___x_3015_; lean_object* v___x_3016_; lean_object* v___x_3017_; lean_object* v___x_3018_; -v___x_3012_ = lean_st_ref_get(v_a_2297_); -v_env_3013_ = lean_ctor_get(v___x_3012_, 0); -lean_inc_ref(v_env_3013_); +lean_object* v___x_3011_; lean_object* v___x_3012_; lean_object* v___x_3013_; size_t v_sz_3014_; size_t v___x_3015_; lean_object* v___x_3016_; +v___x_3011_ = lean_unsigned_to_nat(2u); +v___x_3012_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3011_); +v___x_3013_ = l_Lean_Syntax_getArgs(v___x_3012_); lean_dec(v___x_3012_); -lean_inc_n(v_stx_2291_, 2); -v___x_3014_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3015_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3016_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3015_, v_env_3013_, v___x_3014_); -v___x_3017_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3018_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3016_, v___x_3017_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3016_); -if (lean_obj_tag(v___x_3018_) == 0) +v_sz_3014_ = lean_array_size(v___x_3013_); +v___x_3015_ = ((size_t)0ULL); +v___x_3016_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__6(v_sz_3014_, v___x_3015_, v___x_3013_); +if (lean_obj_tag(v___x_3016_) == 0) { -lean_object* v_a_3019_; lean_object* v___x_3021_; uint8_t v_isShared_3022_; uint8_t v_isSharedCheck_3049_; -v_a_3019_ = lean_ctor_get(v___x_3018_, 0); -v_isSharedCheck_3049_ = !lean_is_exclusive(v___x_3018_); -if (v_isSharedCheck_3049_ == 0) +lean_object* v___x_3017_; lean_object* v_env_3018_; lean_object* v___x_3019_; lean_object* v___x_3020_; lean_object* v___x_3021_; lean_object* v___x_3022_; lean_object* v___x_3023_; +v___x_3017_ = lean_st_ref_get(v_a_2302_); +v_env_3018_ = lean_ctor_get(v___x_3017_, 0); +lean_inc_ref(v_env_3018_); +lean_dec(v___x_3017_); +lean_inc_n(v_stx_2296_, 2); +v___x_3019_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3020_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3021_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3020_, v_env_3018_, v___x_3019_); +v___x_3022_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3023_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3021_, v___x_3022_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3021_); +if (lean_obj_tag(v___x_3023_) == 0) { -v___x_3021_ = v___x_3018_; -v_isShared_3022_ = v_isSharedCheck_3049_; -goto v_resetjp_3020_; +lean_object* v_a_3024_; lean_object* v___x_3026_; uint8_t v_isShared_3027_; uint8_t v_isSharedCheck_3054_; +v_a_3024_ = lean_ctor_get(v___x_3023_, 0); +v_isSharedCheck_3054_ = !lean_is_exclusive(v___x_3023_); +if (v_isSharedCheck_3054_ == 0) +{ +v___x_3026_ = v___x_3023_; +v_isShared_3027_ = v_isSharedCheck_3054_; +goto v_resetjp_3025_; } else { -lean_inc(v_a_3019_); -lean_dec(v___x_3018_); -v___x_3021_ = lean_box(0); -v_isShared_3022_ = v_isSharedCheck_3049_; -goto v_resetjp_3020_; +lean_inc(v_a_3024_); +lean_dec(v___x_3023_); +v___x_3026_ = lean_box(0); +v_isShared_3027_ = v_isSharedCheck_3054_; +goto v_resetjp_3025_; } -v_resetjp_3020_: +v_resetjp_3025_: { -lean_object* v_fst_3023_; lean_object* v___x_3025_; uint8_t v_isShared_3026_; uint8_t v_isSharedCheck_3047_; -v_fst_3023_ = lean_ctor_get(v_a_3019_, 0); -v_isSharedCheck_3047_ = !lean_is_exclusive(v_a_3019_); -if (v_isSharedCheck_3047_ == 0) +lean_object* v_fst_3028_; lean_object* v___x_3030_; uint8_t v_isShared_3031_; uint8_t v_isSharedCheck_3052_; +v_fst_3028_ = lean_ctor_get(v_a_3024_, 0); +v_isSharedCheck_3052_ = !lean_is_exclusive(v_a_3024_); +if (v_isSharedCheck_3052_ == 0) { -lean_object* v_unused_3048_; -v_unused_3048_ = lean_ctor_get(v_a_3019_, 1); -lean_dec(v_unused_3048_); -v___x_3025_ = v_a_3019_; -v_isShared_3026_ = v_isSharedCheck_3047_; -goto v_resetjp_3024_; +lean_object* v_unused_3053_; +v_unused_3053_ = lean_ctor_get(v_a_3024_, 1); +lean_dec(v_unused_3053_); +v___x_3030_ = v_a_3024_; +v_isShared_3031_ = v_isSharedCheck_3052_; +goto v_resetjp_3029_; } else { -lean_inc(v_fst_3023_); -lean_dec(v_a_3019_); -v___x_3025_ = lean_box(0); -v_isShared_3026_ = v_isSharedCheck_3047_; -goto v_resetjp_3024_; +lean_inc(v_fst_3028_); +lean_dec(v_a_3024_); +v___x_3030_ = lean_box(0); +v_isShared_3031_ = v_isSharedCheck_3052_; +goto v_resetjp_3029_; } -v_resetjp_3024_: +v_resetjp_3029_: { -if (lean_obj_tag(v_fst_3023_) == 0) +if (lean_obj_tag(v_fst_3028_) == 0) { -lean_object* v___x_3027_; lean_object* v___x_3028_; lean_object* v___x_3030_; -lean_del_object(v___x_3021_); -v___x_3027_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3028_ = l_Lean_MessageData_ofName(v___x_3014_); -lean_inc_ref(v___x_3028_); -if (v_isShared_3026_ == 0) +lean_object* v___x_3032_; lean_object* v___x_3033_; lean_object* v___x_3035_; +lean_del_object(v___x_3026_); +v___x_3032_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3033_ = l_Lean_MessageData_ofName(v___x_3019_); +lean_inc_ref(v___x_3033_); +if (v_isShared_3031_ == 0) { -lean_ctor_set_tag(v___x_3025_, 7); -lean_ctor_set(v___x_3025_, 1, v___x_3028_); -lean_ctor_set(v___x_3025_, 0, v___x_3027_); -v___x_3030_ = v___x_3025_; -goto v_reusejp_3029_; +lean_ctor_set_tag(v___x_3030_, 7); +lean_ctor_set(v___x_3030_, 1, v___x_3033_); +lean_ctor_set(v___x_3030_, 0, v___x_3032_); +v___x_3035_ = v___x_3030_; +goto v_reusejp_3034_; } else { -lean_object* v_reuseFailAlloc_3042_; -v_reuseFailAlloc_3042_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3042_, 0, v___x_3027_); -lean_ctor_set(v_reuseFailAlloc_3042_, 1, v___x_3028_); -v___x_3030_ = v_reuseFailAlloc_3042_; -goto v_reusejp_3029_; +lean_object* v_reuseFailAlloc_3047_; +v_reuseFailAlloc_3047_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3047_, 0, v___x_3032_); +lean_ctor_set(v_reuseFailAlloc_3047_, 1, v___x_3033_); +v___x_3035_ = v_reuseFailAlloc_3047_; +goto v_reusejp_3034_; } -v_reusejp_3029_: +v_reusejp_3034_: { -lean_object* v___x_3031_; lean_object* v___x_3032_; lean_object* v___x_3033_; lean_object* v___x_3034_; lean_object* v___x_3035_; lean_object* v___x_3036_; lean_object* v___x_3037_; lean_object* v___x_3038_; lean_object* v___x_3039_; lean_object* v___x_3040_; lean_object* v___x_3041_; -v___x_3031_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3032_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3032_, 0, v___x_3030_); -lean_ctor_set(v___x_3032_, 1, v___x_3031_); -v___x_3033_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3034_ = l_Lean_indentD(v___x_3033_); -v___x_3035_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3035_, 0, v___x_3032_); -lean_ctor_set(v___x_3035_, 1, v___x_3034_); -v___x_3036_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_3036_; lean_object* v___x_3037_; lean_object* v___x_3038_; lean_object* v___x_3039_; lean_object* v___x_3040_; lean_object* v___x_3041_; lean_object* v___x_3042_; lean_object* v___x_3043_; lean_object* v___x_3044_; lean_object* v___x_3045_; lean_object* v___x_3046_; +v___x_3036_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_3037_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_3037_, 0, v___x_3035_); lean_ctor_set(v___x_3037_, 1, v___x_3036_); -v___x_3038_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3038_, 0, v___x_3037_); -lean_ctor_set(v___x_3038_, 1, v___x_3028_); -v___x_3039_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3038_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3039_ = l_Lean_indentD(v___x_3038_); v___x_3040_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3040_, 0, v___x_3038_); +lean_ctor_set(v___x_3040_, 0, v___x_3037_); lean_ctor_set(v___x_3040_, 1, v___x_3039_); -v___x_3041_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3040_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3041_; +v___x_3041_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3042_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3042_, 0, v___x_3040_); +lean_ctor_set(v___x_3042_, 1, v___x_3041_); +v___x_3043_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3043_, 0, v___x_3042_); +lean_ctor_set(v___x_3043_, 1, v___x_3033_); +v___x_3044_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3045_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3045_, 0, v___x_3043_); +lean_ctor_set(v___x_3045_, 1, v___x_3044_); +v___x_3046_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3045_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3046_; } } else { -lean_object* v_val_3043_; lean_object* v___x_3045_; -lean_del_object(v___x_3025_); -lean_dec(v___x_3014_); -lean_dec(v_stx_2291_); -v_val_3043_ = lean_ctor_get(v_fst_3023_, 0); -lean_inc(v_val_3043_); -lean_dec_ref(v_fst_3023_); -if (v_isShared_3022_ == 0) +lean_object* v_val_3048_; lean_object* v___x_3050_; +lean_del_object(v___x_3030_); +lean_dec(v___x_3019_); +lean_dec(v_stx_2296_); +v_val_3048_ = lean_ctor_get(v_fst_3028_, 0); +lean_inc(v_val_3048_); +lean_dec_ref(v_fst_3028_); +if (v_isShared_3027_ == 0) { -lean_ctor_set(v___x_3021_, 0, v_val_3043_); -v___x_3045_ = v___x_3021_; -goto v_reusejp_3044_; +lean_ctor_set(v___x_3026_, 0, v_val_3048_); +v___x_3050_ = v___x_3026_; +goto v_reusejp_3049_; } else { -lean_object* v_reuseFailAlloc_3046_; -v_reuseFailAlloc_3046_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3046_, 0, v_val_3043_); -v___x_3045_ = v_reuseFailAlloc_3046_; -goto v_reusejp_3044_; +lean_object* v_reuseFailAlloc_3051_; +v_reuseFailAlloc_3051_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3051_, 0, v_val_3048_); +v___x_3050_ = v_reuseFailAlloc_3051_; +goto v_reusejp_3049_; } -v_reusejp_3044_: +v_reusejp_3049_: { -return v___x_3045_; +return v___x_3050_; } } } @@ -8235,414 +8252,414 @@ return v___x_3045_; } else { -lean_object* v_a_3050_; lean_object* v___x_3052_; uint8_t v_isShared_3053_; uint8_t v_isSharedCheck_3057_; -lean_dec(v___x_3014_); -lean_dec(v_stx_2291_); -v_a_3050_ = lean_ctor_get(v___x_3018_, 0); -v_isSharedCheck_3057_ = !lean_is_exclusive(v___x_3018_); -if (v_isSharedCheck_3057_ == 0) +lean_object* v_a_3055_; lean_object* v___x_3057_; uint8_t v_isShared_3058_; uint8_t v_isSharedCheck_3062_; +lean_dec(v___x_3019_); +lean_dec(v_stx_2296_); +v_a_3055_ = lean_ctor_get(v___x_3023_, 0); +v_isSharedCheck_3062_ = !lean_is_exclusive(v___x_3023_); +if (v_isSharedCheck_3062_ == 0) { -v___x_3052_ = v___x_3018_; -v_isShared_3053_ = v_isSharedCheck_3057_; -goto v_resetjp_3051_; +v___x_3057_ = v___x_3023_; +v_isShared_3058_ = v_isSharedCheck_3062_; +goto v_resetjp_3056_; } else { -lean_inc(v_a_3050_); -lean_dec(v___x_3018_); -v___x_3052_ = lean_box(0); -v_isShared_3053_ = v_isSharedCheck_3057_; -goto v_resetjp_3051_; +lean_inc(v_a_3055_); +lean_dec(v___x_3023_); +v___x_3057_ = lean_box(0); +v_isShared_3058_ = v_isSharedCheck_3062_; +goto v_resetjp_3056_; } -v_resetjp_3051_: +v_resetjp_3056_: { -lean_object* v___x_3055_; -if (v_isShared_3053_ == 0) +lean_object* v___x_3060_; +if (v_isShared_3058_ == 0) { -v___x_3055_ = v___x_3052_; -goto v_reusejp_3054_; +v___x_3060_ = v___x_3057_; +goto v_reusejp_3059_; } else { -lean_object* v_reuseFailAlloc_3056_; -v_reuseFailAlloc_3056_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3056_, 0, v_a_3050_); -v___x_3055_ = v_reuseFailAlloc_3056_; -goto v_reusejp_3054_; +lean_object* v_reuseFailAlloc_3061_; +v_reuseFailAlloc_3061_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3061_, 0, v_a_3055_); +v___x_3060_ = v_reuseFailAlloc_3061_; +goto v_reusejp_3059_; } -v_reusejp_3054_: +v_reusejp_3059_: { -return v___x_3055_; +return v___x_3060_; } } } } else { -lean_object* v_val_3058_; lean_object* v___x_3060_; uint8_t v_isShared_3061_; uint8_t v_isSharedCheck_3192_; -v_val_3058_ = lean_ctor_get(v___x_3011_, 0); -v_isSharedCheck_3192_ = !lean_is_exclusive(v___x_3011_); -if (v_isSharedCheck_3192_ == 0) +lean_object* v_val_3063_; lean_object* v___x_3065_; uint8_t v_isShared_3066_; uint8_t v_isSharedCheck_3197_; +v_val_3063_ = lean_ctor_get(v___x_3016_, 0); +v_isSharedCheck_3197_ = !lean_is_exclusive(v___x_3016_); +if (v_isSharedCheck_3197_ == 0) { -v___x_3060_ = v___x_3011_; -v_isShared_3061_ = v_isSharedCheck_3192_; -goto v_resetjp_3059_; +v___x_3065_ = v___x_3016_; +v_isShared_3066_ = v_isSharedCheck_3197_; +goto v_resetjp_3064_; } else { -lean_inc(v_val_3058_); -lean_dec(v___x_3011_); -v___x_3060_ = lean_box(0); -v_isShared_3061_ = v_isSharedCheck_3192_; -goto v_resetjp_3059_; +lean_inc(v_val_3063_); +lean_dec(v___x_3016_); +v___x_3065_ = lean_box(0); +v_isShared_3066_ = v_isSharedCheck_3197_; +goto v_resetjp_3064_; } -v_resetjp_3059_: +v_resetjp_3064_: { -lean_object* v___x_3062_; lean_object* v___x_3063_; lean_object* v_finSeq_x3f_3065_; lean_object* v___y_3066_; lean_object* v___y_3067_; lean_object* v___y_3068_; lean_object* v___y_3069_; lean_object* v___y_3070_; lean_object* v___y_3071_; lean_object* v___x_3087_; lean_object* v___x_3088_; uint8_t v___x_3089_; -v___x_3062_ = lean_unsigned_to_nat(1u); -v___x_3063_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3062_); -v___x_3087_ = lean_unsigned_to_nat(3u); -v___x_3088_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3087_); -v___x_3089_ = l_Lean_Syntax_isNone(v___x_3088_); -if (v___x_3089_ == 0) +lean_object* v___x_3067_; lean_object* v___x_3068_; lean_object* v_finSeq_x3f_3070_; lean_object* v___y_3071_; lean_object* v___y_3072_; lean_object* v___y_3073_; lean_object* v___y_3074_; lean_object* v___y_3075_; lean_object* v___y_3076_; lean_object* v___x_3092_; lean_object* v___x_3093_; uint8_t v___x_3094_; +v___x_3067_ = lean_unsigned_to_nat(1u); +v___x_3068_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3067_); +v___x_3092_ = lean_unsigned_to_nat(3u); +v___x_3093_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3092_); +v___x_3094_ = l_Lean_Syntax_isNone(v___x_3093_); +if (v___x_3094_ == 0) { -uint8_t v___x_3090_; -lean_inc(v___x_3088_); -v___x_3090_ = l_Lean_Syntax_matchesNull(v___x_3088_, v___x_3062_); -if (v___x_3090_ == 0) +uint8_t v___x_3095_; +lean_inc(v___x_3093_); +v___x_3095_ = l_Lean_Syntax_matchesNull(v___x_3093_, v___x_3067_); +if (v___x_3095_ == 0) { -lean_object* v___x_3091_; lean_object* v_env_3092_; lean_object* v___x_3093_; lean_object* v___x_3094_; lean_object* v___x_3095_; lean_object* v___x_3096_; lean_object* v___x_3097_; -lean_dec(v___x_3088_); -lean_dec(v___x_3063_); -lean_del_object(v___x_3060_); -lean_dec(v_val_3058_); -v___x_3091_ = lean_st_ref_get(v_a_2297_); -v_env_3092_ = lean_ctor_get(v___x_3091_, 0); -lean_inc_ref(v_env_3092_); -lean_dec(v___x_3091_); -lean_inc_n(v_stx_2291_, 2); -v___x_3093_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3094_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3095_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3094_, v_env_3092_, v___x_3093_); -v___x_3096_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3097_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3095_, v___x_3096_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3095_); -if (lean_obj_tag(v___x_3097_) == 0) +lean_object* v___x_3096_; lean_object* v_env_3097_; lean_object* v___x_3098_; lean_object* v___x_3099_; lean_object* v___x_3100_; lean_object* v___x_3101_; lean_object* v___x_3102_; +lean_dec(v___x_3093_); +lean_dec(v___x_3068_); +lean_del_object(v___x_3065_); +lean_dec(v_val_3063_); +v___x_3096_ = lean_st_ref_get(v_a_2302_); +v_env_3097_ = lean_ctor_get(v___x_3096_, 0); +lean_inc_ref(v_env_3097_); +lean_dec(v___x_3096_); +lean_inc_n(v_stx_2296_, 2); +v___x_3098_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3099_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3100_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3099_, v_env_3097_, v___x_3098_); +v___x_3101_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3102_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3100_, v___x_3101_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3100_); +if (lean_obj_tag(v___x_3102_) == 0) { -lean_object* v_a_3098_; lean_object* v___x_3100_; uint8_t v_isShared_3101_; uint8_t v_isSharedCheck_3128_; -v_a_3098_ = lean_ctor_get(v___x_3097_, 0); -v_isSharedCheck_3128_ = !lean_is_exclusive(v___x_3097_); -if (v_isSharedCheck_3128_ == 0) +lean_object* v_a_3103_; lean_object* v___x_3105_; uint8_t v_isShared_3106_; uint8_t v_isSharedCheck_3133_; +v_a_3103_ = lean_ctor_get(v___x_3102_, 0); +v_isSharedCheck_3133_ = !lean_is_exclusive(v___x_3102_); +if (v_isSharedCheck_3133_ == 0) { -v___x_3100_ = v___x_3097_; -v_isShared_3101_ = v_isSharedCheck_3128_; -goto v_resetjp_3099_; +v___x_3105_ = v___x_3102_; +v_isShared_3106_ = v_isSharedCheck_3133_; +goto v_resetjp_3104_; } else { -lean_inc(v_a_3098_); -lean_dec(v___x_3097_); -v___x_3100_ = lean_box(0); -v_isShared_3101_ = v_isSharedCheck_3128_; -goto v_resetjp_3099_; +lean_inc(v_a_3103_); +lean_dec(v___x_3102_); +v___x_3105_ = lean_box(0); +v_isShared_3106_ = v_isSharedCheck_3133_; +goto v_resetjp_3104_; } -v_resetjp_3099_: +v_resetjp_3104_: { -lean_object* v_fst_3102_; lean_object* v___x_3104_; uint8_t v_isShared_3105_; uint8_t v_isSharedCheck_3126_; -v_fst_3102_ = lean_ctor_get(v_a_3098_, 0); -v_isSharedCheck_3126_ = !lean_is_exclusive(v_a_3098_); -if (v_isSharedCheck_3126_ == 0) +lean_object* v_fst_3107_; lean_object* v___x_3109_; uint8_t v_isShared_3110_; uint8_t v_isSharedCheck_3131_; +v_fst_3107_ = lean_ctor_get(v_a_3103_, 0); +v_isSharedCheck_3131_ = !lean_is_exclusive(v_a_3103_); +if (v_isSharedCheck_3131_ == 0) { -lean_object* v_unused_3127_; -v_unused_3127_ = lean_ctor_get(v_a_3098_, 1); -lean_dec(v_unused_3127_); -v___x_3104_ = v_a_3098_; -v_isShared_3105_ = v_isSharedCheck_3126_; -goto v_resetjp_3103_; +lean_object* v_unused_3132_; +v_unused_3132_ = lean_ctor_get(v_a_3103_, 1); +lean_dec(v_unused_3132_); +v___x_3109_ = v_a_3103_; +v_isShared_3110_ = v_isSharedCheck_3131_; +goto v_resetjp_3108_; } else { -lean_inc(v_fst_3102_); -lean_dec(v_a_3098_); -v___x_3104_ = lean_box(0); -v_isShared_3105_ = v_isSharedCheck_3126_; -goto v_resetjp_3103_; +lean_inc(v_fst_3107_); +lean_dec(v_a_3103_); +v___x_3109_ = lean_box(0); +v_isShared_3110_ = v_isSharedCheck_3131_; +goto v_resetjp_3108_; } -v_resetjp_3103_: +v_resetjp_3108_: { -if (lean_obj_tag(v_fst_3102_) == 0) +if (lean_obj_tag(v_fst_3107_) == 0) { -lean_object* v___x_3106_; lean_object* v___x_3107_; lean_object* v___x_3109_; -lean_del_object(v___x_3100_); -v___x_3106_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3107_ = l_Lean_MessageData_ofName(v___x_3093_); -lean_inc_ref(v___x_3107_); -if (v_isShared_3105_ == 0) +lean_object* v___x_3111_; lean_object* v___x_3112_; lean_object* v___x_3114_; +lean_del_object(v___x_3105_); +v___x_3111_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3112_ = l_Lean_MessageData_ofName(v___x_3098_); +lean_inc_ref(v___x_3112_); +if (v_isShared_3110_ == 0) { -lean_ctor_set_tag(v___x_3104_, 7); -lean_ctor_set(v___x_3104_, 1, v___x_3107_); -lean_ctor_set(v___x_3104_, 0, v___x_3106_); -v___x_3109_ = v___x_3104_; -goto v_reusejp_3108_; +lean_ctor_set_tag(v___x_3109_, 7); +lean_ctor_set(v___x_3109_, 1, v___x_3112_); +lean_ctor_set(v___x_3109_, 0, v___x_3111_); +v___x_3114_ = v___x_3109_; +goto v_reusejp_3113_; } else { -lean_object* v_reuseFailAlloc_3121_; -v_reuseFailAlloc_3121_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3121_, 0, v___x_3106_); -lean_ctor_set(v_reuseFailAlloc_3121_, 1, v___x_3107_); -v___x_3109_ = v_reuseFailAlloc_3121_; -goto v_reusejp_3108_; +lean_object* v_reuseFailAlloc_3126_; +v_reuseFailAlloc_3126_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3126_, 0, v___x_3111_); +lean_ctor_set(v_reuseFailAlloc_3126_, 1, v___x_3112_); +v___x_3114_ = v_reuseFailAlloc_3126_; +goto v_reusejp_3113_; } -v_reusejp_3108_: +v_reusejp_3113_: { -lean_object* v___x_3110_; lean_object* v___x_3111_; lean_object* v___x_3112_; lean_object* v___x_3113_; lean_object* v___x_3114_; lean_object* v___x_3115_; lean_object* v___x_3116_; lean_object* v___x_3117_; lean_object* v___x_3118_; lean_object* v___x_3119_; lean_object* v___x_3120_; -v___x_3110_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3111_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3111_, 0, v___x_3109_); -lean_ctor_set(v___x_3111_, 1, v___x_3110_); -v___x_3112_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3113_ = l_Lean_indentD(v___x_3112_); -v___x_3114_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3114_, 0, v___x_3111_); -lean_ctor_set(v___x_3114_, 1, v___x_3113_); -v___x_3115_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_3115_; lean_object* v___x_3116_; lean_object* v___x_3117_; lean_object* v___x_3118_; lean_object* v___x_3119_; lean_object* v___x_3120_; lean_object* v___x_3121_; lean_object* v___x_3122_; lean_object* v___x_3123_; lean_object* v___x_3124_; lean_object* v___x_3125_; +v___x_3115_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_3116_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_3116_, 0, v___x_3114_); lean_ctor_set(v___x_3116_, 1, v___x_3115_); -v___x_3117_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3117_, 0, v___x_3116_); -lean_ctor_set(v___x_3117_, 1, v___x_3107_); -v___x_3118_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3117_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3118_ = l_Lean_indentD(v___x_3117_); v___x_3119_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3119_, 0, v___x_3117_); +lean_ctor_set(v___x_3119_, 0, v___x_3116_); lean_ctor_set(v___x_3119_, 1, v___x_3118_); -v___x_3120_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3119_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3120_; +v___x_3120_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3121_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3121_, 0, v___x_3119_); +lean_ctor_set(v___x_3121_, 1, v___x_3120_); +v___x_3122_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3122_, 0, v___x_3121_); +lean_ctor_set(v___x_3122_, 1, v___x_3112_); +v___x_3123_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3124_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3124_, 0, v___x_3122_); +lean_ctor_set(v___x_3124_, 1, v___x_3123_); +v___x_3125_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3124_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3125_; } } else { -lean_object* v_val_3122_; lean_object* v___x_3124_; -lean_del_object(v___x_3104_); +lean_object* v_val_3127_; lean_object* v___x_3129_; +lean_del_object(v___x_3109_); +lean_dec(v___x_3098_); +lean_dec(v_stx_2296_); +v_val_3127_ = lean_ctor_get(v_fst_3107_, 0); +lean_inc(v_val_3127_); +lean_dec_ref(v_fst_3107_); +if (v_isShared_3106_ == 0) +{ +lean_ctor_set(v___x_3105_, 0, v_val_3127_); +v___x_3129_ = v___x_3105_; +goto v_reusejp_3128_; +} +else +{ +lean_object* v_reuseFailAlloc_3130_; +v_reuseFailAlloc_3130_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3130_, 0, v_val_3127_); +v___x_3129_ = v_reuseFailAlloc_3130_; +goto v_reusejp_3128_; +} +v_reusejp_3128_: +{ +return v___x_3129_; +} +} +} +} +} +else +{ +lean_object* v_a_3134_; lean_object* v___x_3136_; uint8_t v_isShared_3137_; uint8_t v_isSharedCheck_3141_; +lean_dec(v___x_3098_); +lean_dec(v_stx_2296_); +v_a_3134_ = lean_ctor_get(v___x_3102_, 0); +v_isSharedCheck_3141_ = !lean_is_exclusive(v___x_3102_); +if (v_isSharedCheck_3141_ == 0) +{ +v___x_3136_ = v___x_3102_; +v_isShared_3137_ = v_isSharedCheck_3141_; +goto v_resetjp_3135_; +} +else +{ +lean_inc(v_a_3134_); +lean_dec(v___x_3102_); +v___x_3136_ = lean_box(0); +v_isShared_3137_ = v_isSharedCheck_3141_; +goto v_resetjp_3135_; +} +v_resetjp_3135_: +{ +lean_object* v___x_3139_; +if (v_isShared_3137_ == 0) +{ +v___x_3139_ = v___x_3136_; +goto v_reusejp_3138_; +} +else +{ +lean_object* v_reuseFailAlloc_3140_; +v_reuseFailAlloc_3140_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3140_, 0, v_a_3134_); +v___x_3139_ = v_reuseFailAlloc_3140_; +goto v_reusejp_3138_; +} +v_reusejp_3138_: +{ +return v___x_3139_; +} +} +} +} +else +{ +lean_object* v___x_3142_; lean_object* v___x_3143_; lean_object* v___x_3144_; uint8_t v___x_3145_; +v___x_3142_ = lean_unsigned_to_nat(0u); +v___x_3143_ = l_Lean_Syntax_getArg(v___x_3093_, v___x_3142_); lean_dec(v___x_3093_); -lean_dec(v_stx_2291_); -v_val_3122_ = lean_ctor_get(v_fst_3102_, 0); -lean_inc(v_val_3122_); -lean_dec_ref(v_fst_3102_); -if (v_isShared_3101_ == 0) +v___x_3144_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__70)); +lean_inc(v___x_3143_); +v___x_3145_ = l_Lean_Syntax_isOfKind(v___x_3143_, v___x_3144_); +if (v___x_3145_ == 0) { -lean_ctor_set(v___x_3100_, 0, v_val_3122_); -v___x_3124_ = v___x_3100_; -goto v_reusejp_3123_; +lean_object* v___x_3146_; lean_object* v_env_3147_; lean_object* v___x_3148_; lean_object* v___x_3149_; lean_object* v___x_3150_; lean_object* v___x_3151_; lean_object* v___x_3152_; +lean_dec(v___x_3143_); +lean_dec(v___x_3068_); +lean_del_object(v___x_3065_); +lean_dec(v_val_3063_); +v___x_3146_ = lean_st_ref_get(v_a_2302_); +v_env_3147_ = lean_ctor_get(v___x_3146_, 0); +lean_inc_ref(v_env_3147_); +lean_dec(v___x_3146_); +lean_inc_n(v_stx_2296_, 2); +v___x_3148_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3149_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3150_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3149_, v_env_3147_, v___x_3148_); +v___x_3151_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3152_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3150_, v___x_3151_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3150_); +if (lean_obj_tag(v___x_3152_) == 0) +{ +lean_object* v_a_3153_; lean_object* v___x_3155_; uint8_t v_isShared_3156_; uint8_t v_isSharedCheck_3183_; +v_a_3153_ = lean_ctor_get(v___x_3152_, 0); +v_isSharedCheck_3183_ = !lean_is_exclusive(v___x_3152_); +if (v_isSharedCheck_3183_ == 0) +{ +v___x_3155_ = v___x_3152_; +v_isShared_3156_ = v_isSharedCheck_3183_; +goto v_resetjp_3154_; } else { -lean_object* v_reuseFailAlloc_3125_; -v_reuseFailAlloc_3125_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3125_, 0, v_val_3122_); -v___x_3124_ = v_reuseFailAlloc_3125_; -goto v_reusejp_3123_; +lean_inc(v_a_3153_); +lean_dec(v___x_3152_); +v___x_3155_ = lean_box(0); +v_isShared_3156_ = v_isSharedCheck_3183_; +goto v_resetjp_3154_; } -v_reusejp_3123_: +v_resetjp_3154_: { -return v___x_3124_; -} -} -} -} +lean_object* v_fst_3157_; lean_object* v___x_3159_; uint8_t v_isShared_3160_; uint8_t v_isSharedCheck_3181_; +v_fst_3157_ = lean_ctor_get(v_a_3153_, 0); +v_isSharedCheck_3181_ = !lean_is_exclusive(v_a_3153_); +if (v_isSharedCheck_3181_ == 0) +{ +lean_object* v_unused_3182_; +v_unused_3182_ = lean_ctor_get(v_a_3153_, 1); +lean_dec(v_unused_3182_); +v___x_3159_ = v_a_3153_; +v_isShared_3160_ = v_isSharedCheck_3181_; +goto v_resetjp_3158_; } else { -lean_object* v_a_3129_; lean_object* v___x_3131_; uint8_t v_isShared_3132_; uint8_t v_isSharedCheck_3136_; -lean_dec(v___x_3093_); -lean_dec(v_stx_2291_); -v_a_3129_ = lean_ctor_get(v___x_3097_, 0); -v_isSharedCheck_3136_ = !lean_is_exclusive(v___x_3097_); -if (v_isSharedCheck_3136_ == 0) +lean_inc(v_fst_3157_); +lean_dec(v_a_3153_); +v___x_3159_ = lean_box(0); +v_isShared_3160_ = v_isSharedCheck_3181_; +goto v_resetjp_3158_; +} +v_resetjp_3158_: { -v___x_3131_ = v___x_3097_; -v_isShared_3132_ = v_isSharedCheck_3136_; -goto v_resetjp_3130_; +if (lean_obj_tag(v_fst_3157_) == 0) +{ +lean_object* v___x_3161_; lean_object* v___x_3162_; lean_object* v___x_3164_; +lean_del_object(v___x_3155_); +v___x_3161_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3162_ = l_Lean_MessageData_ofName(v___x_3148_); +lean_inc_ref(v___x_3162_); +if (v_isShared_3160_ == 0) +{ +lean_ctor_set_tag(v___x_3159_, 7); +lean_ctor_set(v___x_3159_, 1, v___x_3162_); +lean_ctor_set(v___x_3159_, 0, v___x_3161_); +v___x_3164_ = v___x_3159_; +goto v_reusejp_3163_; } else { -lean_inc(v_a_3129_); -lean_dec(v___x_3097_); -v___x_3131_ = lean_box(0); -v_isShared_3132_ = v_isSharedCheck_3136_; -goto v_resetjp_3130_; +lean_object* v_reuseFailAlloc_3176_; +v_reuseFailAlloc_3176_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3176_, 0, v___x_3161_); +lean_ctor_set(v_reuseFailAlloc_3176_, 1, v___x_3162_); +v___x_3164_ = v_reuseFailAlloc_3176_; +goto v_reusejp_3163_; } -v_resetjp_3130_: +v_reusejp_3163_: { -lean_object* v___x_3134_; -if (v_isShared_3132_ == 0) -{ -v___x_3134_ = v___x_3131_; -goto v_reusejp_3133_; -} -else -{ -lean_object* v_reuseFailAlloc_3135_; -v_reuseFailAlloc_3135_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3135_, 0, v_a_3129_); -v___x_3134_ = v_reuseFailAlloc_3135_; -goto v_reusejp_3133_; -} -v_reusejp_3133_: -{ -return v___x_3134_; -} -} -} -} -else -{ -lean_object* v___x_3137_; lean_object* v___x_3138_; lean_object* v___x_3139_; uint8_t v___x_3140_; -v___x_3137_ = lean_unsigned_to_nat(0u); -v___x_3138_ = l_Lean_Syntax_getArg(v___x_3088_, v___x_3137_); -lean_dec(v___x_3088_); -v___x_3139_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__70)); -lean_inc(v___x_3138_); -v___x_3140_ = l_Lean_Syntax_isOfKind(v___x_3138_, v___x_3139_); -if (v___x_3140_ == 0) -{ -lean_object* v___x_3141_; lean_object* v_env_3142_; lean_object* v___x_3143_; lean_object* v___x_3144_; lean_object* v___x_3145_; lean_object* v___x_3146_; lean_object* v___x_3147_; -lean_dec(v___x_3138_); -lean_dec(v___x_3063_); -lean_del_object(v___x_3060_); -lean_dec(v_val_3058_); -v___x_3141_ = lean_st_ref_get(v_a_2297_); -v_env_3142_ = lean_ctor_get(v___x_3141_, 0); -lean_inc_ref(v_env_3142_); -lean_dec(v___x_3141_); -lean_inc_n(v_stx_2291_, 2); -v___x_3143_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3144_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3145_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3144_, v_env_3142_, v___x_3143_); -v___x_3146_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3147_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3145_, v___x_3146_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3145_); -if (lean_obj_tag(v___x_3147_) == 0) -{ -lean_object* v_a_3148_; lean_object* v___x_3150_; uint8_t v_isShared_3151_; uint8_t v_isSharedCheck_3178_; -v_a_3148_ = lean_ctor_get(v___x_3147_, 0); -v_isSharedCheck_3178_ = !lean_is_exclusive(v___x_3147_); -if (v_isSharedCheck_3178_ == 0) -{ -v___x_3150_ = v___x_3147_; -v_isShared_3151_ = v_isSharedCheck_3178_; -goto v_resetjp_3149_; -} -else -{ -lean_inc(v_a_3148_); -lean_dec(v___x_3147_); -v___x_3150_ = lean_box(0); -v_isShared_3151_ = v_isSharedCheck_3178_; -goto v_resetjp_3149_; -} -v_resetjp_3149_: -{ -lean_object* v_fst_3152_; lean_object* v___x_3154_; uint8_t v_isShared_3155_; uint8_t v_isSharedCheck_3176_; -v_fst_3152_ = lean_ctor_get(v_a_3148_, 0); -v_isSharedCheck_3176_ = !lean_is_exclusive(v_a_3148_); -if (v_isSharedCheck_3176_ == 0) -{ -lean_object* v_unused_3177_; -v_unused_3177_ = lean_ctor_get(v_a_3148_, 1); -lean_dec(v_unused_3177_); -v___x_3154_ = v_a_3148_; -v_isShared_3155_ = v_isSharedCheck_3176_; -goto v_resetjp_3153_; -} -else -{ -lean_inc(v_fst_3152_); -lean_dec(v_a_3148_); -v___x_3154_ = lean_box(0); -v_isShared_3155_ = v_isSharedCheck_3176_; -goto v_resetjp_3153_; -} -v_resetjp_3153_: -{ -if (lean_obj_tag(v_fst_3152_) == 0) -{ -lean_object* v___x_3156_; lean_object* v___x_3157_; lean_object* v___x_3159_; -lean_del_object(v___x_3150_); -v___x_3156_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3157_ = l_Lean_MessageData_ofName(v___x_3143_); -lean_inc_ref(v___x_3157_); -if (v_isShared_3155_ == 0) -{ -lean_ctor_set_tag(v___x_3154_, 7); -lean_ctor_set(v___x_3154_, 1, v___x_3157_); -lean_ctor_set(v___x_3154_, 0, v___x_3156_); -v___x_3159_ = v___x_3154_; -goto v_reusejp_3158_; -} -else -{ -lean_object* v_reuseFailAlloc_3171_; -v_reuseFailAlloc_3171_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3171_, 0, v___x_3156_); -lean_ctor_set(v_reuseFailAlloc_3171_, 1, v___x_3157_); -v___x_3159_ = v_reuseFailAlloc_3171_; -goto v_reusejp_3158_; -} -v_reusejp_3158_: -{ -lean_object* v___x_3160_; lean_object* v___x_3161_; lean_object* v___x_3162_; lean_object* v___x_3163_; lean_object* v___x_3164_; lean_object* v___x_3165_; lean_object* v___x_3166_; lean_object* v___x_3167_; lean_object* v___x_3168_; lean_object* v___x_3169_; lean_object* v___x_3170_; -v___x_3160_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3161_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3161_, 0, v___x_3159_); -lean_ctor_set(v___x_3161_, 1, v___x_3160_); -v___x_3162_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3163_ = l_Lean_indentD(v___x_3162_); -v___x_3164_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3164_, 0, v___x_3161_); -lean_ctor_set(v___x_3164_, 1, v___x_3163_); -v___x_3165_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_3165_; lean_object* v___x_3166_; lean_object* v___x_3167_; lean_object* v___x_3168_; lean_object* v___x_3169_; lean_object* v___x_3170_; lean_object* v___x_3171_; lean_object* v___x_3172_; lean_object* v___x_3173_; lean_object* v___x_3174_; lean_object* v___x_3175_; +v___x_3165_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_3166_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_3166_, 0, v___x_3164_); lean_ctor_set(v___x_3166_, 1, v___x_3165_); -v___x_3167_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3167_, 0, v___x_3166_); -lean_ctor_set(v___x_3167_, 1, v___x_3157_); -v___x_3168_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3167_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3168_ = l_Lean_indentD(v___x_3167_); v___x_3169_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3169_, 0, v___x_3167_); +lean_ctor_set(v___x_3169_, 0, v___x_3166_); lean_ctor_set(v___x_3169_, 1, v___x_3168_); -v___x_3170_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3169_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3170_; +v___x_3170_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3171_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3171_, 0, v___x_3169_); +lean_ctor_set(v___x_3171_, 1, v___x_3170_); +v___x_3172_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3172_, 0, v___x_3171_); +lean_ctor_set(v___x_3172_, 1, v___x_3162_); +v___x_3173_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3174_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3174_, 0, v___x_3172_); +lean_ctor_set(v___x_3174_, 1, v___x_3173_); +v___x_3175_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3174_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3175_; } } else { -lean_object* v_val_3172_; lean_object* v___x_3174_; -lean_del_object(v___x_3154_); -lean_dec(v___x_3143_); -lean_dec(v_stx_2291_); -v_val_3172_ = lean_ctor_get(v_fst_3152_, 0); -lean_inc(v_val_3172_); -lean_dec_ref(v_fst_3152_); -if (v_isShared_3151_ == 0) +lean_object* v_val_3177_; lean_object* v___x_3179_; +lean_del_object(v___x_3159_); +lean_dec(v___x_3148_); +lean_dec(v_stx_2296_); +v_val_3177_ = lean_ctor_get(v_fst_3157_, 0); +lean_inc(v_val_3177_); +lean_dec_ref(v_fst_3157_); +if (v_isShared_3156_ == 0) { -lean_ctor_set(v___x_3150_, 0, v_val_3172_); -v___x_3174_ = v___x_3150_; -goto v_reusejp_3173_; +lean_ctor_set(v___x_3155_, 0, v_val_3177_); +v___x_3179_ = v___x_3155_; +goto v_reusejp_3178_; } else { -lean_object* v_reuseFailAlloc_3175_; -v_reuseFailAlloc_3175_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3175_, 0, v_val_3172_); -v___x_3174_ = v_reuseFailAlloc_3175_; -goto v_reusejp_3173_; +lean_object* v_reuseFailAlloc_3180_; +v_reuseFailAlloc_3180_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3180_, 0, v_val_3177_); +v___x_3179_ = v_reuseFailAlloc_3180_; +goto v_reusejp_3178_; } -v_reusejp_3173_: +v_reusejp_3178_: { -return v___x_3174_; +return v___x_3179_; } } } @@ -8650,274 +8667,291 @@ return v___x_3174_; } else { -lean_object* v_a_3179_; lean_object* v___x_3181_; uint8_t v_isShared_3182_; uint8_t v_isSharedCheck_3186_; -lean_dec(v___x_3143_); -lean_dec(v_stx_2291_); -v_a_3179_ = lean_ctor_get(v___x_3147_, 0); -v_isSharedCheck_3186_ = !lean_is_exclusive(v___x_3147_); -if (v_isSharedCheck_3186_ == 0) +lean_object* v_a_3184_; lean_object* v___x_3186_; uint8_t v_isShared_3187_; uint8_t v_isSharedCheck_3191_; +lean_dec(v___x_3148_); +lean_dec(v_stx_2296_); +v_a_3184_ = lean_ctor_get(v___x_3152_, 0); +v_isSharedCheck_3191_ = !lean_is_exclusive(v___x_3152_); +if (v_isSharedCheck_3191_ == 0) { -v___x_3181_ = v___x_3147_; -v_isShared_3182_ = v_isSharedCheck_3186_; -goto v_resetjp_3180_; +v___x_3186_ = v___x_3152_; +v_isShared_3187_ = v_isSharedCheck_3191_; +goto v_resetjp_3185_; } else { -lean_inc(v_a_3179_); -lean_dec(v___x_3147_); -v___x_3181_ = lean_box(0); -v_isShared_3182_ = v_isSharedCheck_3186_; -goto v_resetjp_3180_; +lean_inc(v_a_3184_); +lean_dec(v___x_3152_); +v___x_3186_ = lean_box(0); +v_isShared_3187_ = v_isSharedCheck_3191_; +goto v_resetjp_3185_; } -v_resetjp_3180_: +v_resetjp_3185_: { -lean_object* v___x_3184_; -if (v_isShared_3182_ == 0) +lean_object* v___x_3189_; +if (v_isShared_3187_ == 0) { -v___x_3184_ = v___x_3181_; -goto v_reusejp_3183_; -} -else -{ -lean_object* v_reuseFailAlloc_3185_; -v_reuseFailAlloc_3185_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3185_, 0, v_a_3179_); -v___x_3184_ = v_reuseFailAlloc_3185_; -goto v_reusejp_3183_; -} -v_reusejp_3183_: -{ -return v___x_3184_; -} -} -} -} -else -{ -lean_object* v___x_3187_; lean_object* v___x_3189_; -lean_dec(v_stx_2291_); -v___x_3187_ = l_Lean_Syntax_getArg(v___x_3138_, v___x_3062_); -lean_dec(v___x_3138_); -if (v_isShared_3061_ == 0) -{ -lean_ctor_set(v___x_3060_, 0, v___x_3187_); -v___x_3189_ = v___x_3060_; +v___x_3189_ = v___x_3186_; goto v_reusejp_3188_; } else { lean_object* v_reuseFailAlloc_3190_; v_reuseFailAlloc_3190_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3190_, 0, v___x_3187_); +lean_ctor_set(v_reuseFailAlloc_3190_, 0, v_a_3184_); v___x_3189_ = v_reuseFailAlloc_3190_; goto v_reusejp_3188_; } v_reusejp_3188_: { -v_finSeq_x3f_3065_ = v___x_3189_; -v___y_3066_ = v_a_2292_; -v___y_3067_ = v_a_2293_; -v___y_3068_ = v_a_2294_; -v___y_3069_ = v_a_2295_; -v___y_3070_ = v_a_2296_; -v___y_3071_ = v_a_2297_; -goto v___jp_3064_; +return v___x_3189_; } } } } else { -lean_object* v___x_3191_; -lean_dec(v___x_3088_); -lean_del_object(v___x_3060_); -lean_dec(v_stx_2291_); -v___x_3191_ = lean_box(0); -v_finSeq_x3f_3065_ = v___x_3191_; -v___y_3066_ = v_a_2292_; -v___y_3067_ = v_a_2293_; -v___y_3068_ = v_a_2294_; -v___y_3069_ = v_a_2295_; -v___y_3070_ = v_a_2296_; -v___y_3071_ = v_a_2297_; -goto v___jp_3064_; +lean_object* v___x_3192_; lean_object* v___x_3194_; +lean_dec(v_stx_2296_); +v___x_3192_ = l_Lean_Syntax_getArg(v___x_3143_, v___x_3067_); +lean_dec(v___x_3143_); +if (v_isShared_3066_ == 0) +{ +lean_ctor_set(v___x_3065_, 0, v___x_3192_); +v___x_3194_ = v___x_3065_; +goto v_reusejp_3193_; } -v___jp_3064_: +else { -lean_object* v___x_3072_; -v___x_3072_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3063_, v___y_3066_, v___y_3067_, v___y_3068_, v___y_3069_, v___y_3070_, v___y_3071_); -if (lean_obj_tag(v___x_3072_) == 0) +lean_object* v_reuseFailAlloc_3195_; +v_reuseFailAlloc_3195_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3195_, 0, v___x_3192_); +v___x_3194_ = v_reuseFailAlloc_3195_; +goto v_reusejp_3193_; +} +v_reusejp_3193_: { -lean_object* v_a_3073_; size_t v_sz_3074_; lean_object* v___x_3075_; -v_a_3073_ = lean_ctor_get(v___x_3072_, 0); -lean_inc(v_a_3073_); -lean_dec_ref(v___x_3072_); -v_sz_3074_ = lean_array_size(v_val_3058_); -v___x_3075_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(v_val_3058_, v_sz_3074_, v___x_3010_, v_a_3073_, v___y_3066_, v___y_3067_, v___y_3068_, v___y_3069_, v___y_3070_, v___y_3071_); -lean_dec(v_val_3058_); -if (lean_obj_tag(v___x_3075_) == 0) +v_finSeq_x3f_3070_ = v___x_3194_; +v___y_3071_ = v_a_2297_; +v___y_3072_ = v_a_2298_; +v___y_3073_ = v_a_2299_; +v___y_3074_ = v_a_2300_; +v___y_3075_ = v_a_2301_; +v___y_3076_ = v_a_2302_; +goto v___jp_3069_; +} +} +} +} +else { -lean_object* v_a_3076_; lean_object* v___x_3077_; -v_a_3076_ = lean_ctor_get(v___x_3075_, 0); -lean_inc(v_a_3076_); -lean_dec_ref(v___x_3075_); -v___x_3077_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_finSeq_x3f_3065_, v___y_3066_, v___y_3067_, v___y_3068_, v___y_3069_, v___y_3070_, v___y_3071_); +lean_object* v___x_3196_; +lean_dec(v___x_3093_); +lean_del_object(v___x_3065_); +lean_dec(v_stx_2296_); +v___x_3196_ = lean_box(0); +v_finSeq_x3f_3070_ = v___x_3196_; +v___y_3071_ = v_a_2297_; +v___y_3072_ = v_a_2298_; +v___y_3073_ = v_a_2299_; +v___y_3074_ = v_a_2300_; +v___y_3075_ = v_a_2301_; +v___y_3076_ = v_a_2302_; +goto v___jp_3069_; +} +v___jp_3069_: +{ +lean_object* v___x_3077_; +v___x_3077_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3068_, v___y_3071_, v___y_3072_, v___y_3073_, v___y_3074_, v___y_3075_, v___y_3076_); if (lean_obj_tag(v___x_3077_) == 0) { -lean_object* v_a_3078_; lean_object* v___x_3080_; uint8_t v_isShared_3081_; uint8_t v_isSharedCheck_3086_; +lean_object* v_a_3078_; size_t v_sz_3079_; lean_object* v___x_3080_; v_a_3078_ = lean_ctor_get(v___x_3077_, 0); -v_isSharedCheck_3086_ = !lean_is_exclusive(v___x_3077_); -if (v_isSharedCheck_3086_ == 0) -{ -v___x_3080_ = v___x_3077_; -v_isShared_3081_ = v_isSharedCheck_3086_; -goto v_resetjp_3079_; -} -else -{ lean_inc(v_a_3078_); -lean_dec(v___x_3077_); -v___x_3080_ = lean_box(0); -v_isShared_3081_ = v_isSharedCheck_3086_; -goto v_resetjp_3079_; -} -v_resetjp_3079_: +lean_dec_ref(v___x_3077_); +v_sz_3079_ = lean_array_size(v_val_3063_); +v___x_3080_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(v_val_3063_, v_sz_3079_, v___x_3015_, v_a_3078_, v___y_3071_, v___y_3072_, v___y_3073_, v___y_3074_, v___y_3075_, v___y_3076_); +lean_dec(v_val_3063_); +if (lean_obj_tag(v___x_3080_) == 0) { -lean_object* v___x_3082_; lean_object* v___x_3084_; -v___x_3082_ = l_Lean_Elab_Do_ControlInfo_sequence(v_a_3076_, v_a_3078_); -if (v_isShared_3081_ == 0) +lean_object* v_a_3081_; lean_object* v___x_3082_; +v_a_3081_ = lean_ctor_get(v___x_3080_, 0); +lean_inc(v_a_3081_); +lean_dec_ref(v___x_3080_); +v___x_3082_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_finSeq_x3f_3070_, v___y_3071_, v___y_3072_, v___y_3073_, v___y_3074_, v___y_3075_, v___y_3076_); +if (lean_obj_tag(v___x_3082_) == 0) { -lean_ctor_set(v___x_3080_, 0, v___x_3082_); -v___x_3084_ = v___x_3080_; -goto v_reusejp_3083_; +lean_object* v_a_3083_; lean_object* v___x_3085_; uint8_t v_isShared_3086_; uint8_t v_isSharedCheck_3091_; +v_a_3083_ = lean_ctor_get(v___x_3082_, 0); +v_isSharedCheck_3091_ = !lean_is_exclusive(v___x_3082_); +if (v_isSharedCheck_3091_ == 0) +{ +v___x_3085_ = v___x_3082_; +v_isShared_3086_ = v_isSharedCheck_3091_; +goto v_resetjp_3084_; } else { -lean_object* v_reuseFailAlloc_3085_; -v_reuseFailAlloc_3085_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3085_, 0, v___x_3082_); -v___x_3084_ = v_reuseFailAlloc_3085_; -goto v_reusejp_3083_; +lean_inc(v_a_3083_); +lean_dec(v___x_3082_); +v___x_3085_ = lean_box(0); +v_isShared_3086_ = v_isSharedCheck_3091_; +goto v_resetjp_3084_; } -v_reusejp_3083_: +v_resetjp_3084_: { -return v___x_3084_; +lean_object* v___x_3087_; lean_object* v___x_3089_; +v___x_3087_ = l_Lean_Elab_Do_ControlInfo_sequence(v_a_3081_, v_a_3083_); +if (v_isShared_3086_ == 0) +{ +lean_ctor_set(v___x_3085_, 0, v___x_3087_); +v___x_3089_ = v___x_3085_; +goto v_reusejp_3088_; +} +else +{ +lean_object* v_reuseFailAlloc_3090_; +v_reuseFailAlloc_3090_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3090_, 0, v___x_3087_); +v___x_3089_ = v_reuseFailAlloc_3090_; +goto v_reusejp_3088_; +} +v_reusejp_3088_: +{ +return v___x_3089_; } } } else { -lean_dec(v_a_3076_); +lean_dec(v_a_3081_); +return v___x_3082_; +} +} +else +{ +lean_dec(v_finSeq_x3f_3070_); +return v___x_3080_; +} +} +else +{ +lean_dec(v_finSeq_x3f_3070_); +lean_dec(v_val_3063_); return v___x_3077_; } } -else -{ -lean_dec(v_finSeq_x3f_3065_); -return v___x_3075_; -} -} -else -{ -lean_dec(v_finSeq_x3f_3065_); -lean_dec(v_val_3058_); -return v___x_3072_; -} -} } } } } else { -lean_object* v___x_3193_; lean_object* v___x_3194_; lean_object* v___x_3195_; -v___x_3193_ = lean_unsigned_to_nat(1u); -v___x_3194_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3193_); -lean_dec(v_stx_2291_); -v___x_3195_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3194_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_3195_) == 0) +lean_object* v___x_3198_; lean_object* v___x_3199_; lean_object* v___x_3200_; +v___x_3198_ = lean_unsigned_to_nat(1u); +v___x_3199_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3198_); +lean_dec(v_stx_2296_); +v___x_3200_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3199_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_3200_) == 0) { -lean_object* v_a_3196_; lean_object* v___x_3198_; uint8_t v_isShared_3199_; uint8_t v_isSharedCheck_3213_; -v_a_3196_ = lean_ctor_get(v___x_3195_, 0); -v_isSharedCheck_3213_ = !lean_is_exclusive(v___x_3195_); -if (v_isSharedCheck_3213_ == 0) +lean_object* v_a_3201_; lean_object* v___x_3203_; uint8_t v_isShared_3204_; uint8_t v_isSharedCheck_3222_; +v_a_3201_ = lean_ctor_get(v___x_3200_, 0); +v_isSharedCheck_3222_ = !lean_is_exclusive(v___x_3200_); +if (v_isSharedCheck_3222_ == 0) { -v___x_3198_ = v___x_3195_; -v_isShared_3199_ = v_isSharedCheck_3213_; -goto v_resetjp_3197_; -} -else -{ -lean_inc(v_a_3196_); -lean_dec(v___x_3195_); -v___x_3198_ = lean_box(0); -v_isShared_3199_ = v_isSharedCheck_3213_; -goto v_resetjp_3197_; -} -v_resetjp_3197_: -{ -uint8_t v_returnsEarly_3200_; lean_object* v_reassigns_3201_; lean_object* v___x_3203_; uint8_t v_isShared_3204_; uint8_t v_isSharedCheck_3211_; -v_returnsEarly_3200_ = lean_ctor_get_uint8(v_a_3196_, sizeof(void*)*2 + 2); -v_reassigns_3201_ = lean_ctor_get(v_a_3196_, 1); -v_isSharedCheck_3211_ = !lean_is_exclusive(v_a_3196_); -if (v_isSharedCheck_3211_ == 0) -{ -lean_object* v_unused_3212_; -v_unused_3212_ = lean_ctor_get(v_a_3196_, 0); -lean_dec(v_unused_3212_); -v___x_3203_ = v_a_3196_; -v_isShared_3204_ = v_isSharedCheck_3211_; +v___x_3203_ = v___x_3200_; +v_isShared_3204_ = v_isSharedCheck_3222_; goto v_resetjp_3202_; } else { -lean_inc(v_reassigns_3201_); -lean_dec(v_a_3196_); +lean_inc(v_a_3201_); +lean_dec(v___x_3200_); v___x_3203_ = lean_box(0); -v_isShared_3204_ = v_isSharedCheck_3211_; +v_isShared_3204_ = v_isSharedCheck_3222_; goto v_resetjp_3202_; } v_resetjp_3202_: { -lean_object* v___x_3206_; +uint8_t v_breaks_3205_; uint8_t v_returnsEarly_3206_; lean_object* v_reassigns_3207_; lean_object* v___x_3209_; uint8_t v_isShared_3210_; uint8_t v_isSharedCheck_3220_; +v_breaks_3205_ = lean_ctor_get_uint8(v_a_3201_, sizeof(void*)*2); +v_returnsEarly_3206_ = lean_ctor_get_uint8(v_a_3201_, sizeof(void*)*2 + 2); +v_reassigns_3207_ = lean_ctor_get(v_a_3201_, 1); +v_isSharedCheck_3220_ = !lean_is_exclusive(v_a_3201_); +if (v_isSharedCheck_3220_ == 0) +{ +lean_object* v_unused_3221_; +v_unused_3221_ = lean_ctor_get(v_a_3201_, 0); +lean_dec(v_unused_3221_); +v___x_3209_ = v_a_3201_; +v_isShared_3210_ = v_isSharedCheck_3220_; +goto v_resetjp_3208_; +} +else +{ +lean_inc(v_reassigns_3207_); +lean_dec(v_a_3201_); +v___x_3209_ = lean_box(0); +v_isShared_3210_ = v_isSharedCheck_3220_; +goto v_resetjp_3208_; +} +v_resetjp_3208_: +{ +lean_object* v___y_3212_; +if (v_breaks_3205_ == 0) +{ +lean_object* v___x_3219_; +v___x_3219_ = lean_unsigned_to_nat(0u); +v___y_3212_ = v___x_3219_; +goto v___jp_3211_; +} +else +{ +v___y_3212_ = v___x_3198_; +goto v___jp_3211_; +} +v___jp_3211_: +{ +lean_object* v___x_3214_; +if (v_isShared_3210_ == 0) +{ +lean_ctor_set(v___x_3209_, 0, v___y_3212_); +v___x_3214_ = v___x_3209_; +goto v_reusejp_3213_; +} +else +{ +lean_object* v_reuseFailAlloc_3218_; +v_reuseFailAlloc_3218_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v_reuseFailAlloc_3218_, 0, v___y_3212_); +lean_ctor_set(v_reuseFailAlloc_3218_, 1, v_reassigns_3207_); +lean_ctor_set_uint8(v_reuseFailAlloc_3218_, sizeof(void*)*2 + 2, v_returnsEarly_3206_); +v___x_3214_ = v_reuseFailAlloc_3218_; +goto v_reusejp_3213_; +} +v_reusejp_3213_: +{ +lean_object* v___x_3216_; +lean_ctor_set_uint8(v___x_3214_, sizeof(void*)*2, v___x_2623_); +lean_ctor_set_uint8(v___x_3214_, sizeof(void*)*2 + 1, v___x_2623_); if (v_isShared_3204_ == 0) { -lean_ctor_set(v___x_3203_, 0, v___x_3193_); -v___x_3206_ = v___x_3203_; -goto v_reusejp_3205_; +lean_ctor_set(v___x_3203_, 0, v___x_3214_); +v___x_3216_ = v___x_3203_; +goto v_reusejp_3215_; } else { -lean_object* v_reuseFailAlloc_3210_; -v_reuseFailAlloc_3210_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v_reuseFailAlloc_3210_, 0, v___x_3193_); -lean_ctor_set(v_reuseFailAlloc_3210_, 1, v_reassigns_3201_); -lean_ctor_set_uint8(v_reuseFailAlloc_3210_, sizeof(void*)*2 + 2, v_returnsEarly_3200_); -v___x_3206_ = v_reuseFailAlloc_3210_; -goto v_reusejp_3205_; +lean_object* v_reuseFailAlloc_3217_; +v_reuseFailAlloc_3217_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3217_, 0, v___x_3214_); +v___x_3216_ = v_reuseFailAlloc_3217_; +goto v_reusejp_3215_; } -v_reusejp_3205_: +v_reusejp_3215_: { -lean_object* v___x_3208_; -lean_ctor_set_uint8(v___x_3206_, sizeof(void*)*2, v___x_2618_); -lean_ctor_set_uint8(v___x_3206_, sizeof(void*)*2 + 1, v___x_2618_); -if (v_isShared_3199_ == 0) -{ -lean_ctor_set(v___x_3198_, 0, v___x_3206_); -v___x_3208_ = v___x_3198_; -goto v_reusejp_3207_; +return v___x_3216_; } -else -{ -lean_object* v_reuseFailAlloc_3209_; -v_reuseFailAlloc_3209_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3209_, 0, v___x_3206_); -v___x_3208_ = v_reuseFailAlloc_3209_; -goto v_reusejp_3207_; -} -v_reusejp_3207_: -{ -return v___x_3208_; } } } @@ -8925,212 +8959,212 @@ return v___x_3208_; } else { -return v___x_3195_; +return v___x_3200_; } } } else { -lean_object* v___x_3214_; lean_object* v___y_3216_; lean_object* v___x_3287_; lean_object* v___x_3288_; lean_object* v___x_3289_; lean_object* v___x_3290_; lean_object* v___x_3291_; uint8_t v___x_3292_; -v___x_3214_ = lean_unsigned_to_nat(1u); -v___x_3287_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3214_); -v___x_3288_ = l_Lean_Syntax_getArgs(v___x_3287_); -lean_dec(v___x_3287_); -v___x_3289_ = lean_unsigned_to_nat(0u); -v___x_3290_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); -v___x_3291_ = lean_array_get_size(v___x_3288_); -v___x_3292_ = lean_nat_dec_lt(v___x_3289_, v___x_3291_); -if (v___x_3292_ == 0) +lean_object* v___x_3223_; lean_object* v___y_3225_; lean_object* v___x_3296_; lean_object* v___x_3297_; lean_object* v___x_3298_; lean_object* v___x_3299_; lean_object* v___x_3300_; uint8_t v___x_3301_; +v___x_3223_ = lean_unsigned_to_nat(1u); +v___x_3296_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3223_); +v___x_3297_ = l_Lean_Syntax_getArgs(v___x_3296_); +lean_dec(v___x_3296_); +v___x_3298_ = lean_unsigned_to_nat(0u); +v___x_3299_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___closed__2)); +v___x_3300_ = lean_array_get_size(v___x_3297_); +v___x_3301_ = lean_nat_dec_lt(v___x_3298_, v___x_3300_); +if (v___x_3301_ == 0) { -lean_dec_ref(v___x_3288_); -v___y_3216_ = v___x_3290_; -goto v___jp_3215_; +lean_dec_ref(v___x_3297_); +v___y_3225_ = v___x_3299_; +goto v___jp_3224_; } else { -lean_object* v___x_3293_; lean_object* v___x_3294_; uint8_t v___x_3295_; -v___x_3293_ = lean_box(v___x_2618_); -v___x_3294_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3294_, 0, v___x_3293_); -lean_ctor_set(v___x_3294_, 1, v___x_3290_); -v___x_3295_ = lean_nat_dec_le(v___x_3291_, v___x_3291_); -if (v___x_3295_ == 0) +lean_object* v___x_3302_; lean_object* v___x_3303_; uint8_t v___x_3304_; +v___x_3302_ = lean_box(v___x_2623_); +v___x_3303_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3303_, 0, v___x_3302_); +lean_ctor_set(v___x_3303_, 1, v___x_3299_); +v___x_3304_ = lean_nat_dec_le(v___x_3300_, v___x_3300_); +if (v___x_3304_ == 0) { -if (v___x_3292_ == 0) +if (v___x_3301_ == 0) { -lean_dec_ref(v___x_3294_); -lean_dec_ref(v___x_3288_); -v___y_3216_ = v___x_3290_; -goto v___jp_3215_; +lean_dec_ref(v___x_3303_); +lean_dec_ref(v___x_3297_); +v___y_3225_ = v___x_3299_; +goto v___jp_3224_; } else { -size_t v___x_3296_; size_t v___x_3297_; lean_object* v___x_3298_; lean_object* v_snd_3299_; -v___x_3296_ = ((size_t)0ULL); -v___x_3297_ = lean_usize_of_nat(v___x_3291_); -v___x_3298_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2618_, v___x_2616_, v___x_3288_, v___x_3296_, v___x_3297_, v___x_3294_); -lean_dec_ref(v___x_3288_); -v_snd_3299_ = lean_ctor_get(v___x_3298_, 1); -lean_inc(v_snd_3299_); -lean_dec_ref(v___x_3298_); -v___y_3216_ = v_snd_3299_; -goto v___jp_3215_; +size_t v___x_3305_; size_t v___x_3306_; lean_object* v___x_3307_; lean_object* v_snd_3308_; +v___x_3305_ = ((size_t)0ULL); +v___x_3306_ = lean_usize_of_nat(v___x_3300_); +v___x_3307_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2623_, v___x_2621_, v___x_3297_, v___x_3305_, v___x_3306_, v___x_3303_); +lean_dec_ref(v___x_3297_); +v_snd_3308_ = lean_ctor_get(v___x_3307_, 1); +lean_inc(v_snd_3308_); +lean_dec_ref(v___x_3307_); +v___y_3225_ = v_snd_3308_; +goto v___jp_3224_; } } else { -size_t v___x_3300_; size_t v___x_3301_; lean_object* v___x_3302_; lean_object* v_snd_3303_; -v___x_3300_ = ((size_t)0ULL); -v___x_3301_ = lean_usize_of_nat(v___x_3291_); -v___x_3302_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2618_, v___x_2616_, v___x_3288_, v___x_3300_, v___x_3301_, v___x_3294_); -lean_dec_ref(v___x_3288_); -v_snd_3303_ = lean_ctor_get(v___x_3302_, 1); -lean_inc(v_snd_3303_); -lean_dec_ref(v___x_3302_); -v___y_3216_ = v_snd_3303_; -goto v___jp_3215_; +size_t v___x_3309_; size_t v___x_3310_; lean_object* v___x_3311_; lean_object* v_snd_3312_; +v___x_3309_ = ((size_t)0ULL); +v___x_3310_ = lean_usize_of_nat(v___x_3300_); +v___x_3311_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__9(v___x_2623_, v___x_2621_, v___x_3297_, v___x_3309_, v___x_3310_, v___x_3303_); +lean_dec_ref(v___x_3297_); +v_snd_3312_ = lean_ctor_get(v___x_3311_, 1); +lean_inc(v_snd_3312_); +lean_dec_ref(v___x_3311_); +v___y_3225_ = v_snd_3312_; +goto v___jp_3224_; } } -v___jp_3215_: +v___jp_3224_: { -size_t v_sz_3217_; size_t v___x_3218_; lean_object* v___x_3219_; -v_sz_3217_ = lean_array_size(v___y_3216_); -v___x_3218_ = ((size_t)0ULL); -v___x_3219_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(v_sz_3217_, v___x_3218_, v___y_3216_); -if (lean_obj_tag(v___x_3219_) == 0) +size_t v_sz_3226_; size_t v___x_3227_; lean_object* v___x_3228_; +v_sz_3226_ = lean_array_size(v___y_3225_); +v___x_3227_ = ((size_t)0ULL); +v___x_3228_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__12(v_sz_3226_, v___x_3227_, v___y_3225_); +if (lean_obj_tag(v___x_3228_) == 0) { -lean_object* v___x_3220_; lean_object* v_env_3221_; lean_object* v___x_3222_; lean_object* v___x_3223_; lean_object* v___x_3224_; lean_object* v___x_3225_; lean_object* v___x_3226_; -v___x_3220_ = lean_st_ref_get(v_a_2297_); -v_env_3221_ = lean_ctor_get(v___x_3220_, 0); -lean_inc_ref(v_env_3221_); -lean_dec(v___x_3220_); -lean_inc_n(v_stx_2291_, 2); -v___x_3222_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3223_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3224_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3223_, v_env_3221_, v___x_3222_); -v___x_3225_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3226_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3224_, v___x_3225_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3224_); -if (lean_obj_tag(v___x_3226_) == 0) +lean_object* v___x_3229_; lean_object* v_env_3230_; lean_object* v___x_3231_; lean_object* v___x_3232_; lean_object* v___x_3233_; lean_object* v___x_3234_; lean_object* v___x_3235_; +v___x_3229_ = lean_st_ref_get(v_a_2302_); +v_env_3230_ = lean_ctor_get(v___x_3229_, 0); +lean_inc_ref(v_env_3230_); +lean_dec(v___x_3229_); +lean_inc_n(v_stx_2296_, 2); +v___x_3231_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3232_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3233_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3232_, v_env_3230_, v___x_3231_); +v___x_3234_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3235_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3233_, v___x_3234_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3233_); +if (lean_obj_tag(v___x_3235_) == 0) { -lean_object* v_a_3227_; lean_object* v___x_3229_; uint8_t v_isShared_3230_; uint8_t v_isSharedCheck_3257_; -v_a_3227_ = lean_ctor_get(v___x_3226_, 0); -v_isSharedCheck_3257_ = !lean_is_exclusive(v___x_3226_); -if (v_isSharedCheck_3257_ == 0) +lean_object* v_a_3236_; lean_object* v___x_3238_; uint8_t v_isShared_3239_; uint8_t v_isSharedCheck_3266_; +v_a_3236_ = lean_ctor_get(v___x_3235_, 0); +v_isSharedCheck_3266_ = !lean_is_exclusive(v___x_3235_); +if (v_isSharedCheck_3266_ == 0) { -v___x_3229_ = v___x_3226_; -v_isShared_3230_ = v_isSharedCheck_3257_; -goto v_resetjp_3228_; +v___x_3238_ = v___x_3235_; +v_isShared_3239_ = v_isSharedCheck_3266_; +goto v_resetjp_3237_; } else { -lean_inc(v_a_3227_); -lean_dec(v___x_3226_); -v___x_3229_ = lean_box(0); -v_isShared_3230_ = v_isSharedCheck_3257_; -goto v_resetjp_3228_; +lean_inc(v_a_3236_); +lean_dec(v___x_3235_); +v___x_3238_ = lean_box(0); +v_isShared_3239_ = v_isSharedCheck_3266_; +goto v_resetjp_3237_; } -v_resetjp_3228_: +v_resetjp_3237_: { -lean_object* v_fst_3231_; lean_object* v___x_3233_; uint8_t v_isShared_3234_; uint8_t v_isSharedCheck_3255_; -v_fst_3231_ = lean_ctor_get(v_a_3227_, 0); -v_isSharedCheck_3255_ = !lean_is_exclusive(v_a_3227_); -if (v_isSharedCheck_3255_ == 0) +lean_object* v_fst_3240_; lean_object* v___x_3242_; uint8_t v_isShared_3243_; uint8_t v_isSharedCheck_3264_; +v_fst_3240_ = lean_ctor_get(v_a_3236_, 0); +v_isSharedCheck_3264_ = !lean_is_exclusive(v_a_3236_); +if (v_isSharedCheck_3264_ == 0) { -lean_object* v_unused_3256_; -v_unused_3256_ = lean_ctor_get(v_a_3227_, 1); -lean_dec(v_unused_3256_); -v___x_3233_ = v_a_3227_; -v_isShared_3234_ = v_isSharedCheck_3255_; -goto v_resetjp_3232_; +lean_object* v_unused_3265_; +v_unused_3265_ = lean_ctor_get(v_a_3236_, 1); +lean_dec(v_unused_3265_); +v___x_3242_ = v_a_3236_; +v_isShared_3243_ = v_isSharedCheck_3264_; +goto v_resetjp_3241_; } else { -lean_inc(v_fst_3231_); -lean_dec(v_a_3227_); -v___x_3233_ = lean_box(0); -v_isShared_3234_ = v_isSharedCheck_3255_; -goto v_resetjp_3232_; +lean_inc(v_fst_3240_); +lean_dec(v_a_3236_); +v___x_3242_ = lean_box(0); +v_isShared_3243_ = v_isSharedCheck_3264_; +goto v_resetjp_3241_; } -v_resetjp_3232_: +v_resetjp_3241_: { -if (lean_obj_tag(v_fst_3231_) == 0) +if (lean_obj_tag(v_fst_3240_) == 0) { -lean_object* v___x_3235_; lean_object* v___x_3236_; lean_object* v___x_3238_; -lean_del_object(v___x_3229_); -v___x_3235_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3236_ = l_Lean_MessageData_ofName(v___x_3222_); -lean_inc_ref(v___x_3236_); -if (v_isShared_3234_ == 0) +lean_object* v___x_3244_; lean_object* v___x_3245_; lean_object* v___x_3247_; +lean_del_object(v___x_3238_); +v___x_3244_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3245_ = l_Lean_MessageData_ofName(v___x_3231_); +lean_inc_ref(v___x_3245_); +if (v_isShared_3243_ == 0) { -lean_ctor_set_tag(v___x_3233_, 7); -lean_ctor_set(v___x_3233_, 1, v___x_3236_); -lean_ctor_set(v___x_3233_, 0, v___x_3235_); -v___x_3238_ = v___x_3233_; -goto v_reusejp_3237_; +lean_ctor_set_tag(v___x_3242_, 7); +lean_ctor_set(v___x_3242_, 1, v___x_3245_); +lean_ctor_set(v___x_3242_, 0, v___x_3244_); +v___x_3247_ = v___x_3242_; +goto v_reusejp_3246_; } else { -lean_object* v_reuseFailAlloc_3250_; -v_reuseFailAlloc_3250_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3250_, 0, v___x_3235_); -lean_ctor_set(v_reuseFailAlloc_3250_, 1, v___x_3236_); -v___x_3238_ = v_reuseFailAlloc_3250_; -goto v_reusejp_3237_; +lean_object* v_reuseFailAlloc_3259_; +v_reuseFailAlloc_3259_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3259_, 0, v___x_3244_); +lean_ctor_set(v_reuseFailAlloc_3259_, 1, v___x_3245_); +v___x_3247_ = v_reuseFailAlloc_3259_; +goto v_reusejp_3246_; } -v_reusejp_3237_: +v_reusejp_3246_: { -lean_object* v___x_3239_; lean_object* v___x_3240_; lean_object* v___x_3241_; lean_object* v___x_3242_; lean_object* v___x_3243_; lean_object* v___x_3244_; lean_object* v___x_3245_; lean_object* v___x_3246_; lean_object* v___x_3247_; lean_object* v___x_3248_; lean_object* v___x_3249_; -v___x_3239_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3240_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3240_, 0, v___x_3238_); -lean_ctor_set(v___x_3240_, 1, v___x_3239_); -v___x_3241_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3242_ = l_Lean_indentD(v___x_3241_); -v___x_3243_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3243_, 0, v___x_3240_); -lean_ctor_set(v___x_3243_, 1, v___x_3242_); -v___x_3244_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3245_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3245_, 0, v___x_3243_); -lean_ctor_set(v___x_3245_, 1, v___x_3244_); -v___x_3246_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3246_, 0, v___x_3245_); -lean_ctor_set(v___x_3246_, 1, v___x_3236_); -v___x_3247_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3248_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3248_, 0, v___x_3246_); -lean_ctor_set(v___x_3248_, 1, v___x_3247_); -v___x_3249_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3248_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3249_; +lean_object* v___x_3248_; lean_object* v___x_3249_; lean_object* v___x_3250_; lean_object* v___x_3251_; lean_object* v___x_3252_; lean_object* v___x_3253_; lean_object* v___x_3254_; lean_object* v___x_3255_; lean_object* v___x_3256_; lean_object* v___x_3257_; lean_object* v___x_3258_; +v___x_3248_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3249_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3249_, 0, v___x_3247_); +lean_ctor_set(v___x_3249_, 1, v___x_3248_); +v___x_3250_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3251_ = l_Lean_indentD(v___x_3250_); +v___x_3252_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3252_, 0, v___x_3249_); +lean_ctor_set(v___x_3252_, 1, v___x_3251_); +v___x_3253_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3254_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3254_, 0, v___x_3252_); +lean_ctor_set(v___x_3254_, 1, v___x_3253_); +v___x_3255_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3255_, 0, v___x_3254_); +lean_ctor_set(v___x_3255_, 1, v___x_3245_); +v___x_3256_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3257_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3257_, 0, v___x_3255_); +lean_ctor_set(v___x_3257_, 1, v___x_3256_); +v___x_3258_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3257_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3258_; } } else { -lean_object* v_val_3251_; lean_object* v___x_3253_; -lean_del_object(v___x_3233_); -lean_dec(v___x_3222_); -lean_dec(v_stx_2291_); -v_val_3251_ = lean_ctor_get(v_fst_3231_, 0); -lean_inc(v_val_3251_); -lean_dec_ref(v_fst_3231_); -if (v_isShared_3230_ == 0) +lean_object* v_val_3260_; lean_object* v___x_3262_; +lean_del_object(v___x_3242_); +lean_dec(v___x_3231_); +lean_dec(v_stx_2296_); +v_val_3260_ = lean_ctor_get(v_fst_3240_, 0); +lean_inc(v_val_3260_); +lean_dec_ref(v_fst_3240_); +if (v_isShared_3239_ == 0) { -lean_ctor_set(v___x_3229_, 0, v_val_3251_); -v___x_3253_ = v___x_3229_; -goto v_reusejp_3252_; +lean_ctor_set(v___x_3238_, 0, v_val_3260_); +v___x_3262_ = v___x_3238_; +goto v_reusejp_3261_; } else { -lean_object* v_reuseFailAlloc_3254_; -v_reuseFailAlloc_3254_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3254_, 0, v_val_3251_); -v___x_3253_ = v_reuseFailAlloc_3254_; -goto v_reusejp_3252_; +lean_object* v_reuseFailAlloc_3263_; +v_reuseFailAlloc_3263_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3263_, 0, v_val_3260_); +v___x_3262_ = v_reuseFailAlloc_3263_; +goto v_reusejp_3261_; } -v_reusejp_3252_: +v_reusejp_3261_: { -return v___x_3253_; +return v___x_3262_; } } } @@ -9138,139 +9172,139 @@ return v___x_3253_; } else { -lean_object* v_a_3258_; lean_object* v___x_3260_; uint8_t v_isShared_3261_; uint8_t v_isSharedCheck_3265_; -lean_dec(v___x_3222_); -lean_dec(v_stx_2291_); -v_a_3258_ = lean_ctor_get(v___x_3226_, 0); -v_isSharedCheck_3265_ = !lean_is_exclusive(v___x_3226_); -if (v_isSharedCheck_3265_ == 0) +lean_object* v_a_3267_; lean_object* v___x_3269_; uint8_t v_isShared_3270_; uint8_t v_isSharedCheck_3274_; +lean_dec(v___x_3231_); +lean_dec(v_stx_2296_); +v_a_3267_ = lean_ctor_get(v___x_3235_, 0); +v_isSharedCheck_3274_ = !lean_is_exclusive(v___x_3235_); +if (v_isSharedCheck_3274_ == 0) { -v___x_3260_ = v___x_3226_; -v_isShared_3261_ = v_isSharedCheck_3265_; -goto v_resetjp_3259_; +v___x_3269_ = v___x_3235_; +v_isShared_3270_ = v_isSharedCheck_3274_; +goto v_resetjp_3268_; } else { -lean_inc(v_a_3258_); -lean_dec(v___x_3226_); -v___x_3260_ = lean_box(0); -v_isShared_3261_ = v_isSharedCheck_3265_; -goto v_resetjp_3259_; +lean_inc(v_a_3267_); +lean_dec(v___x_3235_); +v___x_3269_ = lean_box(0); +v_isShared_3270_ = v_isSharedCheck_3274_; +goto v_resetjp_3268_; } -v_resetjp_3259_: +v_resetjp_3268_: { -lean_object* v___x_3263_; -if (v_isShared_3261_ == 0) +lean_object* v___x_3272_; +if (v_isShared_3270_ == 0) { -v___x_3263_ = v___x_3260_; -goto v_reusejp_3262_; +v___x_3272_ = v___x_3269_; +goto v_reusejp_3271_; } else { -lean_object* v_reuseFailAlloc_3264_; -v_reuseFailAlloc_3264_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3264_, 0, v_a_3258_); -v___x_3263_ = v_reuseFailAlloc_3264_; -goto v_reusejp_3262_; +lean_object* v_reuseFailAlloc_3273_; +v_reuseFailAlloc_3273_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3273_, 0, v_a_3267_); +v___x_3272_ = v_reuseFailAlloc_3273_; +goto v_reusejp_3271_; } -v_reusejp_3262_: +v_reusejp_3271_: { -return v___x_3263_; +return v___x_3272_; } } } } else { -lean_object* v___x_3266_; lean_object* v___x_3267_; lean_object* v___x_3268_; -lean_dec_ref(v___x_3219_); -v___x_3266_ = lean_unsigned_to_nat(3u); -v___x_3267_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3266_); -lean_dec(v_stx_2291_); -v___x_3268_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3267_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_3268_) == 0) +lean_object* v___x_3275_; lean_object* v___x_3276_; lean_object* v___x_3277_; +lean_dec_ref(v___x_3228_); +v___x_3275_ = lean_unsigned_to_nat(3u); +v___x_3276_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3275_); +lean_dec(v_stx_2296_); +v___x_3277_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3276_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_3277_) == 0) { -lean_object* v_a_3269_; lean_object* v___x_3271_; uint8_t v_isShared_3272_; uint8_t v_isSharedCheck_3286_; -v_a_3269_ = lean_ctor_get(v___x_3268_, 0); -v_isSharedCheck_3286_ = !lean_is_exclusive(v___x_3268_); -if (v_isSharedCheck_3286_ == 0) +lean_object* v_a_3278_; lean_object* v___x_3280_; uint8_t v_isShared_3281_; uint8_t v_isSharedCheck_3295_; +v_a_3278_ = lean_ctor_get(v___x_3277_, 0); +v_isSharedCheck_3295_ = !lean_is_exclusive(v___x_3277_); +if (v_isSharedCheck_3295_ == 0) { -v___x_3271_ = v___x_3268_; -v_isShared_3272_ = v_isSharedCheck_3286_; -goto v_resetjp_3270_; +v___x_3280_ = v___x_3277_; +v_isShared_3281_ = v_isSharedCheck_3295_; +goto v_resetjp_3279_; } else { -lean_inc(v_a_3269_); -lean_dec(v___x_3268_); -v___x_3271_ = lean_box(0); -v_isShared_3272_ = v_isSharedCheck_3286_; -goto v_resetjp_3270_; +lean_inc(v_a_3278_); +lean_dec(v___x_3277_); +v___x_3280_ = lean_box(0); +v_isShared_3281_ = v_isSharedCheck_3295_; +goto v_resetjp_3279_; } -v_resetjp_3270_: +v_resetjp_3279_: { -uint8_t v_returnsEarly_3273_; lean_object* v_reassigns_3274_; lean_object* v___x_3276_; uint8_t v_isShared_3277_; uint8_t v_isSharedCheck_3284_; -v_returnsEarly_3273_ = lean_ctor_get_uint8(v_a_3269_, sizeof(void*)*2 + 2); -v_reassigns_3274_ = lean_ctor_get(v_a_3269_, 1); -v_isSharedCheck_3284_ = !lean_is_exclusive(v_a_3269_); -if (v_isSharedCheck_3284_ == 0) +uint8_t v_returnsEarly_3282_; lean_object* v_reassigns_3283_; lean_object* v___x_3285_; uint8_t v_isShared_3286_; uint8_t v_isSharedCheck_3293_; +v_returnsEarly_3282_ = lean_ctor_get_uint8(v_a_3278_, sizeof(void*)*2 + 2); +v_reassigns_3283_ = lean_ctor_get(v_a_3278_, 1); +v_isSharedCheck_3293_ = !lean_is_exclusive(v_a_3278_); +if (v_isSharedCheck_3293_ == 0) { -lean_object* v_unused_3285_; -v_unused_3285_ = lean_ctor_get(v_a_3269_, 0); -lean_dec(v_unused_3285_); -v___x_3276_ = v_a_3269_; -v_isShared_3277_ = v_isSharedCheck_3284_; -goto v_resetjp_3275_; +lean_object* v_unused_3294_; +v_unused_3294_ = lean_ctor_get(v_a_3278_, 0); +lean_dec(v_unused_3294_); +v___x_3285_ = v_a_3278_; +v_isShared_3286_ = v_isSharedCheck_3293_; +goto v_resetjp_3284_; } else { -lean_inc(v_reassigns_3274_); -lean_dec(v_a_3269_); -v___x_3276_ = lean_box(0); -v_isShared_3277_ = v_isSharedCheck_3284_; -goto v_resetjp_3275_; +lean_inc(v_reassigns_3283_); +lean_dec(v_a_3278_); +v___x_3285_ = lean_box(0); +v_isShared_3286_ = v_isSharedCheck_3293_; +goto v_resetjp_3284_; } -v_resetjp_3275_: +v_resetjp_3284_: { -lean_object* v___x_3279_; -if (v_isShared_3277_ == 0) +lean_object* v___x_3288_; +if (v_isShared_3286_ == 0) { -lean_ctor_set(v___x_3276_, 0, v___x_3214_); -v___x_3279_ = v___x_3276_; -goto v_reusejp_3278_; +lean_ctor_set(v___x_3285_, 0, v___x_3223_); +v___x_3288_ = v___x_3285_; +goto v_reusejp_3287_; } else { -lean_object* v_reuseFailAlloc_3283_; -v_reuseFailAlloc_3283_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v_reuseFailAlloc_3283_, 0, v___x_3214_); -lean_ctor_set(v_reuseFailAlloc_3283_, 1, v_reassigns_3274_); -lean_ctor_set_uint8(v_reuseFailAlloc_3283_, sizeof(void*)*2 + 2, v_returnsEarly_3273_); -v___x_3279_ = v_reuseFailAlloc_3283_; -goto v_reusejp_3278_; +lean_object* v_reuseFailAlloc_3292_; +v_reuseFailAlloc_3292_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v_reuseFailAlloc_3292_, 0, v___x_3223_); +lean_ctor_set(v_reuseFailAlloc_3292_, 1, v_reassigns_3283_); +lean_ctor_set_uint8(v_reuseFailAlloc_3292_, sizeof(void*)*2 + 2, v_returnsEarly_3282_); +v___x_3288_ = v_reuseFailAlloc_3292_; +goto v_reusejp_3287_; } -v_reusejp_3278_: +v_reusejp_3287_: { -lean_object* v___x_3281_; -lean_ctor_set_uint8(v___x_3279_, sizeof(void*)*2, v___x_2616_); -lean_ctor_set_uint8(v___x_3279_, sizeof(void*)*2 + 1, v___x_2616_); -if (v_isShared_3272_ == 0) +lean_object* v___x_3290_; +lean_ctor_set_uint8(v___x_3288_, sizeof(void*)*2, v___x_2621_); +lean_ctor_set_uint8(v___x_3288_, sizeof(void*)*2 + 1, v___x_2621_); +if (v_isShared_3281_ == 0) { -lean_ctor_set(v___x_3271_, 0, v___x_3279_); -v___x_3281_ = v___x_3271_; -goto v_reusejp_3280_; +lean_ctor_set(v___x_3280_, 0, v___x_3288_); +v___x_3290_ = v___x_3280_; +goto v_reusejp_3289_; } else { -lean_object* v_reuseFailAlloc_3282_; -v_reuseFailAlloc_3282_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3282_, 0, v___x_3279_); -v___x_3281_ = v_reuseFailAlloc_3282_; -goto v_reusejp_3280_; +lean_object* v_reuseFailAlloc_3291_; +v_reuseFailAlloc_3291_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3291_, 0, v___x_3288_); +v___x_3290_ = v_reuseFailAlloc_3291_; +goto v_reusejp_3289_; } -v_reusejp_3280_: +v_reusejp_3289_: { -return v___x_3281_; +return v___x_3290_; } } } @@ -9278,7 +9312,7 @@ return v___x_3281_; } else { -return v___x_3268_; +return v___x_3277_; } } } @@ -9286,213 +9320,213 @@ return v___x_3268_; } else { -lean_object* v___x_3304_; lean_object* v___x_3305_; lean_object* v___x_3306_; lean_object* v___x_3307_; lean_object* v___x_3308_; lean_object* v___x_3309_; -v___x_3304_ = lean_unsigned_to_nat(1u); -v___x_3305_ = lean_unsigned_to_nat(3u); -v___x_3306_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3305_); -lean_dec(v_stx_2291_); -v___x_3307_ = l_Lean_NameSet_empty; -v___x_3308_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_3308_, 0, v___x_3304_); -lean_ctor_set(v___x_3308_, 1, v___x_3307_); -lean_ctor_set_uint8(v___x_3308_, sizeof(void*)*2, v___x_2614_); -lean_ctor_set_uint8(v___x_3308_, sizeof(void*)*2 + 1, v___x_2614_); -lean_ctor_set_uint8(v___x_3308_, sizeof(void*)*2 + 2, v___x_2614_); -v___x_3309_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3306_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -if (lean_obj_tag(v___x_3309_) == 0) +lean_object* v___x_3313_; lean_object* v___x_3314_; lean_object* v___x_3315_; lean_object* v___x_3316_; lean_object* v___x_3317_; lean_object* v___x_3318_; +v___x_3313_ = lean_unsigned_to_nat(1u); +v___x_3314_ = lean_unsigned_to_nat(3u); +v___x_3315_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3314_); +lean_dec(v_stx_2296_); +v___x_3316_ = l_Lean_NameSet_empty; +v___x_3317_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_3317_, 0, v___x_3313_); +lean_ctor_set(v___x_3317_, 1, v___x_3316_); +lean_ctor_set_uint8(v___x_3317_, sizeof(void*)*2, v___x_2619_); +lean_ctor_set_uint8(v___x_3317_, sizeof(void*)*2 + 1, v___x_2619_); +lean_ctor_set_uint8(v___x_3317_, sizeof(void*)*2 + 2, v___x_2619_); +v___x_3318_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3315_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +if (lean_obj_tag(v___x_3318_) == 0) { -lean_object* v_a_3310_; lean_object* v___x_3312_; uint8_t v_isShared_3313_; uint8_t v_isSharedCheck_3318_; -v_a_3310_ = lean_ctor_get(v___x_3309_, 0); -v_isSharedCheck_3318_ = !lean_is_exclusive(v___x_3309_); -if (v_isSharedCheck_3318_ == 0) +lean_object* v_a_3319_; lean_object* v___x_3321_; uint8_t v_isShared_3322_; uint8_t v_isSharedCheck_3327_; +v_a_3319_ = lean_ctor_get(v___x_3318_, 0); +v_isSharedCheck_3327_ = !lean_is_exclusive(v___x_3318_); +if (v_isSharedCheck_3327_ == 0) { -v___x_3312_ = v___x_3309_; -v_isShared_3313_ = v_isSharedCheck_3318_; -goto v_resetjp_3311_; +v___x_3321_ = v___x_3318_; +v_isShared_3322_ = v_isSharedCheck_3327_; +goto v_resetjp_3320_; } else { -lean_inc(v_a_3310_); -lean_dec(v___x_3309_); -v___x_3312_ = lean_box(0); -v_isShared_3313_ = v_isSharedCheck_3318_; -goto v_resetjp_3311_; +lean_inc(v_a_3319_); +lean_dec(v___x_3318_); +v___x_3321_ = lean_box(0); +v_isShared_3322_ = v_isSharedCheck_3327_; +goto v_resetjp_3320_; } -v_resetjp_3311_: +v_resetjp_3320_: { -lean_object* v___x_3314_; lean_object* v___x_3316_; -v___x_3314_ = l_Lean_Elab_Do_ControlInfo_alternative(v___x_3308_, v_a_3310_); -if (v_isShared_3313_ == 0) +lean_object* v___x_3323_; lean_object* v___x_3325_; +v___x_3323_ = l_Lean_Elab_Do_ControlInfo_alternative(v___x_3317_, v_a_3319_); +if (v_isShared_3322_ == 0) { -lean_ctor_set(v___x_3312_, 0, v___x_3314_); -v___x_3316_ = v___x_3312_; -goto v_reusejp_3315_; +lean_ctor_set(v___x_3321_, 0, v___x_3323_); +v___x_3325_ = v___x_3321_; +goto v_reusejp_3324_; } else { -lean_object* v_reuseFailAlloc_3317_; -v_reuseFailAlloc_3317_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3317_, 0, v___x_3314_); -v___x_3316_ = v_reuseFailAlloc_3317_; -goto v_reusejp_3315_; +lean_object* v_reuseFailAlloc_3326_; +v_reuseFailAlloc_3326_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3326_, 0, v___x_3323_); +v___x_3325_ = v_reuseFailAlloc_3326_; +goto v_reusejp_3324_; } -v_reusejp_3315_: +v_reusejp_3324_: { -return v___x_3316_; +return v___x_3325_; } } } else { -lean_dec_ref(v___x_3308_); -return v___x_3309_; +lean_dec_ref(v___x_3317_); +return v___x_3318_; } } } else { -lean_object* v___x_3319_; lean_object* v___x_3320_; lean_object* v___x_3321_; size_t v_sz_3322_; size_t v___x_3323_; lean_object* v___x_3324_; -v___x_3319_ = lean_unsigned_to_nat(4u); -v___x_3320_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3319_); -v___x_3321_ = l_Lean_Syntax_getArgs(v___x_3320_); -lean_dec(v___x_3320_); -v_sz_3322_ = lean_array_size(v___x_3321_); -v___x_3323_ = ((size_t)0ULL); -v___x_3324_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(v_sz_3322_, v___x_3323_, v___x_3321_); -if (lean_obj_tag(v___x_3324_) == 0) -{ -lean_object* v___x_3325_; lean_object* v_env_3326_; lean_object* v___x_3327_; lean_object* v___x_3328_; lean_object* v___x_3329_; lean_object* v___x_3330_; lean_object* v___x_3331_; -v___x_3325_ = lean_st_ref_get(v_a_2297_); -v_env_3326_ = lean_ctor_get(v___x_3325_, 0); -lean_inc_ref(v_env_3326_); -lean_dec(v___x_3325_); -lean_inc_n(v_stx_2291_, 2); -v___x_3327_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3328_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3329_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3328_, v_env_3326_, v___x_3327_); -v___x_3330_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3331_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3329_, v___x_3330_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); +lean_object* v___x_3328_; lean_object* v___x_3329_; lean_object* v___x_3330_; size_t v_sz_3331_; size_t v___x_3332_; lean_object* v___x_3333_; +v___x_3328_ = lean_unsigned_to_nat(4u); +v___x_3329_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3328_); +v___x_3330_ = l_Lean_Syntax_getArgs(v___x_3329_); lean_dec(v___x_3329_); -if (lean_obj_tag(v___x_3331_) == 0) +v_sz_3331_ = lean_array_size(v___x_3330_); +v___x_3332_ = ((size_t)0ULL); +v___x_3333_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13(v_sz_3331_, v___x_3332_, v___x_3330_); +if (lean_obj_tag(v___x_3333_) == 0) { -lean_object* v_a_3332_; lean_object* v___x_3334_; uint8_t v_isShared_3335_; uint8_t v_isSharedCheck_3362_; -v_a_3332_ = lean_ctor_get(v___x_3331_, 0); -v_isSharedCheck_3362_ = !lean_is_exclusive(v___x_3331_); -if (v_isSharedCheck_3362_ == 0) +lean_object* v___x_3334_; lean_object* v_env_3335_; lean_object* v___x_3336_; lean_object* v___x_3337_; lean_object* v___x_3338_; lean_object* v___x_3339_; lean_object* v___x_3340_; +v___x_3334_ = lean_st_ref_get(v_a_2302_); +v_env_3335_ = lean_ctor_get(v___x_3334_, 0); +lean_inc_ref(v_env_3335_); +lean_dec(v___x_3334_); +lean_inc_n(v_stx_2296_, 2); +v___x_3336_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3337_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3338_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3337_, v_env_3335_, v___x_3336_); +v___x_3339_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3340_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3338_, v___x_3339_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3338_); +if (lean_obj_tag(v___x_3340_) == 0) { -v___x_3334_ = v___x_3331_; -v_isShared_3335_ = v_isSharedCheck_3362_; -goto v_resetjp_3333_; +lean_object* v_a_3341_; lean_object* v___x_3343_; uint8_t v_isShared_3344_; uint8_t v_isSharedCheck_3371_; +v_a_3341_ = lean_ctor_get(v___x_3340_, 0); +v_isSharedCheck_3371_ = !lean_is_exclusive(v___x_3340_); +if (v_isSharedCheck_3371_ == 0) +{ +v___x_3343_ = v___x_3340_; +v_isShared_3344_ = v_isSharedCheck_3371_; +goto v_resetjp_3342_; } else { -lean_inc(v_a_3332_); -lean_dec(v___x_3331_); -v___x_3334_ = lean_box(0); -v_isShared_3335_ = v_isSharedCheck_3362_; -goto v_resetjp_3333_; +lean_inc(v_a_3341_); +lean_dec(v___x_3340_); +v___x_3343_ = lean_box(0); +v_isShared_3344_ = v_isSharedCheck_3371_; +goto v_resetjp_3342_; } -v_resetjp_3333_: +v_resetjp_3342_: { -lean_object* v_fst_3336_; lean_object* v___x_3338_; uint8_t v_isShared_3339_; uint8_t v_isSharedCheck_3360_; -v_fst_3336_ = lean_ctor_get(v_a_3332_, 0); -v_isSharedCheck_3360_ = !lean_is_exclusive(v_a_3332_); -if (v_isSharedCheck_3360_ == 0) +lean_object* v_fst_3345_; lean_object* v___x_3347_; uint8_t v_isShared_3348_; uint8_t v_isSharedCheck_3369_; +v_fst_3345_ = lean_ctor_get(v_a_3341_, 0); +v_isSharedCheck_3369_ = !lean_is_exclusive(v_a_3341_); +if (v_isSharedCheck_3369_ == 0) { -lean_object* v_unused_3361_; -v_unused_3361_ = lean_ctor_get(v_a_3332_, 1); -lean_dec(v_unused_3361_); -v___x_3338_ = v_a_3332_; -v_isShared_3339_ = v_isSharedCheck_3360_; -goto v_resetjp_3337_; +lean_object* v_unused_3370_; +v_unused_3370_ = lean_ctor_get(v_a_3341_, 1); +lean_dec(v_unused_3370_); +v___x_3347_ = v_a_3341_; +v_isShared_3348_ = v_isSharedCheck_3369_; +goto v_resetjp_3346_; } else { -lean_inc(v_fst_3336_); -lean_dec(v_a_3332_); -v___x_3338_ = lean_box(0); -v_isShared_3339_ = v_isSharedCheck_3360_; -goto v_resetjp_3337_; +lean_inc(v_fst_3345_); +lean_dec(v_a_3341_); +v___x_3347_ = lean_box(0); +v_isShared_3348_ = v_isSharedCheck_3369_; +goto v_resetjp_3346_; } -v_resetjp_3337_: +v_resetjp_3346_: { -if (lean_obj_tag(v_fst_3336_) == 0) +if (lean_obj_tag(v_fst_3345_) == 0) { -lean_object* v___x_3340_; lean_object* v___x_3341_; lean_object* v___x_3343_; -lean_del_object(v___x_3334_); -v___x_3340_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3341_ = l_Lean_MessageData_ofName(v___x_3327_); -lean_inc_ref(v___x_3341_); -if (v_isShared_3339_ == 0) +lean_object* v___x_3349_; lean_object* v___x_3350_; lean_object* v___x_3352_; +lean_del_object(v___x_3343_); +v___x_3349_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3350_ = l_Lean_MessageData_ofName(v___x_3336_); +lean_inc_ref(v___x_3350_); +if (v_isShared_3348_ == 0) { -lean_ctor_set_tag(v___x_3338_, 7); -lean_ctor_set(v___x_3338_, 1, v___x_3341_); -lean_ctor_set(v___x_3338_, 0, v___x_3340_); -v___x_3343_ = v___x_3338_; -goto v_reusejp_3342_; +lean_ctor_set_tag(v___x_3347_, 7); +lean_ctor_set(v___x_3347_, 1, v___x_3350_); +lean_ctor_set(v___x_3347_, 0, v___x_3349_); +v___x_3352_ = v___x_3347_; +goto v_reusejp_3351_; } else { -lean_object* v_reuseFailAlloc_3355_; -v_reuseFailAlloc_3355_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3355_, 0, v___x_3340_); -lean_ctor_set(v_reuseFailAlloc_3355_, 1, v___x_3341_); -v___x_3343_ = v_reuseFailAlloc_3355_; -goto v_reusejp_3342_; +lean_object* v_reuseFailAlloc_3364_; +v_reuseFailAlloc_3364_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3364_, 0, v___x_3349_); +lean_ctor_set(v_reuseFailAlloc_3364_, 1, v___x_3350_); +v___x_3352_ = v_reuseFailAlloc_3364_; +goto v_reusejp_3351_; } -v_reusejp_3342_: +v_reusejp_3351_: { -lean_object* v___x_3344_; lean_object* v___x_3345_; lean_object* v___x_3346_; lean_object* v___x_3347_; lean_object* v___x_3348_; lean_object* v___x_3349_; lean_object* v___x_3350_; lean_object* v___x_3351_; lean_object* v___x_3352_; lean_object* v___x_3353_; lean_object* v___x_3354_; -v___x_3344_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3345_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3345_, 0, v___x_3343_); -lean_ctor_set(v___x_3345_, 1, v___x_3344_); -v___x_3346_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3347_ = l_Lean_indentD(v___x_3346_); -v___x_3348_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3348_, 0, v___x_3345_); -lean_ctor_set(v___x_3348_, 1, v___x_3347_); -v___x_3349_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3350_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3350_, 0, v___x_3348_); -lean_ctor_set(v___x_3350_, 1, v___x_3349_); -v___x_3351_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3351_, 0, v___x_3350_); -lean_ctor_set(v___x_3351_, 1, v___x_3341_); -v___x_3352_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3353_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3353_, 0, v___x_3351_); -lean_ctor_set(v___x_3353_, 1, v___x_3352_); -v___x_3354_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3353_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3354_; +lean_object* v___x_3353_; lean_object* v___x_3354_; lean_object* v___x_3355_; lean_object* v___x_3356_; lean_object* v___x_3357_; lean_object* v___x_3358_; lean_object* v___x_3359_; lean_object* v___x_3360_; lean_object* v___x_3361_; lean_object* v___x_3362_; lean_object* v___x_3363_; +v___x_3353_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3354_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3354_, 0, v___x_3352_); +lean_ctor_set(v___x_3354_, 1, v___x_3353_); +v___x_3355_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3356_ = l_Lean_indentD(v___x_3355_); +v___x_3357_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3357_, 0, v___x_3354_); +lean_ctor_set(v___x_3357_, 1, v___x_3356_); +v___x_3358_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3359_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3359_, 0, v___x_3357_); +lean_ctor_set(v___x_3359_, 1, v___x_3358_); +v___x_3360_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3360_, 0, v___x_3359_); +lean_ctor_set(v___x_3360_, 1, v___x_3350_); +v___x_3361_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3362_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3362_, 0, v___x_3360_); +lean_ctor_set(v___x_3362_, 1, v___x_3361_); +v___x_3363_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3362_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3363_; } } else { -lean_object* v_val_3356_; lean_object* v___x_3358_; -lean_del_object(v___x_3338_); -lean_dec(v___x_3327_); -lean_dec(v_stx_2291_); -v_val_3356_ = lean_ctor_get(v_fst_3336_, 0); -lean_inc(v_val_3356_); -lean_dec_ref(v_fst_3336_); -if (v_isShared_3335_ == 0) +lean_object* v_val_3365_; lean_object* v___x_3367_; +lean_del_object(v___x_3347_); +lean_dec(v___x_3336_); +lean_dec(v_stx_2296_); +v_val_3365_ = lean_ctor_get(v_fst_3345_, 0); +lean_inc(v_val_3365_); +lean_dec_ref(v_fst_3345_); +if (v_isShared_3344_ == 0) { -lean_ctor_set(v___x_3334_, 0, v_val_3356_); -v___x_3358_ = v___x_3334_; -goto v_reusejp_3357_; +lean_ctor_set(v___x_3343_, 0, v_val_3365_); +v___x_3367_ = v___x_3343_; +goto v_reusejp_3366_; } else { -lean_object* v_reuseFailAlloc_3359_; -v_reuseFailAlloc_3359_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3359_, 0, v_val_3356_); -v___x_3358_ = v_reuseFailAlloc_3359_; -goto v_reusejp_3357_; +lean_object* v_reuseFailAlloc_3368_; +v_reuseFailAlloc_3368_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3368_, 0, v_val_3365_); +v___x_3367_ = v_reuseFailAlloc_3368_; +goto v_reusejp_3366_; } -v_reusejp_3357_: +v_reusejp_3366_: { -return v___x_3358_; +return v___x_3367_; } } } @@ -9500,219 +9534,219 @@ return v___x_3358_; } else { -lean_object* v_a_3363_; lean_object* v___x_3365_; uint8_t v_isShared_3366_; uint8_t v_isSharedCheck_3370_; -lean_dec(v___x_3327_); -lean_dec(v_stx_2291_); -v_a_3363_ = lean_ctor_get(v___x_3331_, 0); -v_isSharedCheck_3370_ = !lean_is_exclusive(v___x_3331_); -if (v_isSharedCheck_3370_ == 0) +lean_object* v_a_3372_; lean_object* v___x_3374_; uint8_t v_isShared_3375_; uint8_t v_isSharedCheck_3379_; +lean_dec(v___x_3336_); +lean_dec(v_stx_2296_); +v_a_3372_ = lean_ctor_get(v___x_3340_, 0); +v_isSharedCheck_3379_ = !lean_is_exclusive(v___x_3340_); +if (v_isSharedCheck_3379_ == 0) { -v___x_3365_ = v___x_3331_; -v_isShared_3366_ = v_isSharedCheck_3370_; -goto v_resetjp_3364_; +v___x_3374_ = v___x_3340_; +v_isShared_3375_ = v_isSharedCheck_3379_; +goto v_resetjp_3373_; } else { -lean_inc(v_a_3363_); -lean_dec(v___x_3331_); -v___x_3365_ = lean_box(0); -v_isShared_3366_ = v_isSharedCheck_3370_; -goto v_resetjp_3364_; +lean_inc(v_a_3372_); +lean_dec(v___x_3340_); +v___x_3374_ = lean_box(0); +v_isShared_3375_ = v_isSharedCheck_3379_; +goto v_resetjp_3373_; } -v_resetjp_3364_: +v_resetjp_3373_: { -lean_object* v___x_3368_; -if (v_isShared_3366_ == 0) +lean_object* v___x_3377_; +if (v_isShared_3375_ == 0) { -v___x_3368_ = v___x_3365_; -goto v_reusejp_3367_; +v___x_3377_ = v___x_3374_; +goto v_reusejp_3376_; } else { -lean_object* v_reuseFailAlloc_3369_; -v_reuseFailAlloc_3369_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3369_, 0, v_a_3363_); -v___x_3368_ = v_reuseFailAlloc_3369_; -goto v_reusejp_3367_; +lean_object* v_reuseFailAlloc_3378_; +v_reuseFailAlloc_3378_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3378_, 0, v_a_3372_); +v___x_3377_ = v_reuseFailAlloc_3378_; +goto v_reusejp_3376_; } -v_reusejp_3367_: +v_reusejp_3376_: { -return v___x_3368_; +return v___x_3377_; } } } } else { -lean_object* v_val_3371_; lean_object* v___x_3373_; uint8_t v_isShared_3374_; uint8_t v_isSharedCheck_3458_; -v_val_3371_ = lean_ctor_get(v___x_3324_, 0); -v_isSharedCheck_3458_ = !lean_is_exclusive(v___x_3324_); -if (v_isSharedCheck_3458_ == 0) +lean_object* v_val_3380_; lean_object* v___x_3382_; uint8_t v_isShared_3383_; uint8_t v_isSharedCheck_3467_; +v_val_3380_ = lean_ctor_get(v___x_3333_, 0); +v_isSharedCheck_3467_ = !lean_is_exclusive(v___x_3333_); +if (v_isSharedCheck_3467_ == 0) { -v___x_3373_ = v___x_3324_; -v_isShared_3374_ = v_isSharedCheck_3458_; -goto v_resetjp_3372_; +v___x_3382_ = v___x_3333_; +v_isShared_3383_ = v_isSharedCheck_3467_; +goto v_resetjp_3381_; } else { -lean_inc(v_val_3371_); -lean_dec(v___x_3324_); -v___x_3373_ = lean_box(0); -v_isShared_3374_ = v_isSharedCheck_3458_; -goto v_resetjp_3372_; +lean_inc(v_val_3380_); +lean_dec(v___x_3333_); +v___x_3382_ = lean_box(0); +v_isShared_3383_ = v_isSharedCheck_3467_; +goto v_resetjp_3381_; } -v_resetjp_3372_: +v_resetjp_3381_: { -lean_object* v___x_3375_; lean_object* v___x_3376_; lean_object* v_elseSeq_x3f_3378_; lean_object* v___y_3379_; lean_object* v___y_3380_; lean_object* v___y_3381_; lean_object* v___y_3382_; lean_object* v___y_3383_; lean_object* v___y_3384_; lean_object* v___x_3401_; lean_object* v___x_3402_; uint8_t v___x_3403_; -v___x_3375_ = lean_unsigned_to_nat(3u); -v___x_3376_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3375_); -v___x_3401_ = lean_unsigned_to_nat(5u); -v___x_3402_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3401_); -v___x_3403_ = l_Lean_Syntax_isNone(v___x_3402_); -if (v___x_3403_ == 0) +lean_object* v___x_3384_; lean_object* v___x_3385_; lean_object* v_elseSeq_x3f_3387_; lean_object* v___y_3388_; lean_object* v___y_3389_; lean_object* v___y_3390_; lean_object* v___y_3391_; lean_object* v___y_3392_; lean_object* v___y_3393_; lean_object* v___x_3410_; lean_object* v___x_3411_; uint8_t v___x_3412_; +v___x_3384_ = lean_unsigned_to_nat(3u); +v___x_3385_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3384_); +v___x_3410_ = lean_unsigned_to_nat(5u); +v___x_3411_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3410_); +v___x_3412_ = l_Lean_Syntax_isNone(v___x_3411_); +if (v___x_3412_ == 0) { -lean_object* v___x_3404_; uint8_t v___x_3405_; -v___x_3404_ = lean_unsigned_to_nat(2u); -lean_inc(v___x_3402_); -v___x_3405_ = l_Lean_Syntax_matchesNull(v___x_3402_, v___x_3404_); -if (v___x_3405_ == 0) +lean_object* v___x_3413_; uint8_t v___x_3414_; +v___x_3413_ = lean_unsigned_to_nat(2u); +lean_inc(v___x_3411_); +v___x_3414_ = l_Lean_Syntax_matchesNull(v___x_3411_, v___x_3413_); +if (v___x_3414_ == 0) { -lean_object* v___x_3406_; lean_object* v_env_3407_; lean_object* v___x_3408_; lean_object* v___x_3409_; lean_object* v___x_3410_; lean_object* v___x_3411_; lean_object* v___x_3412_; -lean_dec(v___x_3402_); -lean_dec(v___x_3376_); -lean_del_object(v___x_3373_); -lean_dec(v_val_3371_); -v___x_3406_ = lean_st_ref_get(v_a_2297_); -v_env_3407_ = lean_ctor_get(v___x_3406_, 0); -lean_inc_ref(v_env_3407_); -lean_dec(v___x_3406_); -lean_inc_n(v_stx_2291_, 2); -v___x_3408_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3409_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3410_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3409_, v_env_3407_, v___x_3408_); -v___x_3411_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3412_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3410_, v___x_3411_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3410_); -if (lean_obj_tag(v___x_3412_) == 0) +lean_object* v___x_3415_; lean_object* v_env_3416_; lean_object* v___x_3417_; lean_object* v___x_3418_; lean_object* v___x_3419_; lean_object* v___x_3420_; lean_object* v___x_3421_; +lean_dec(v___x_3411_); +lean_dec(v___x_3385_); +lean_del_object(v___x_3382_); +lean_dec(v_val_3380_); +v___x_3415_ = lean_st_ref_get(v_a_2302_); +v_env_3416_ = lean_ctor_get(v___x_3415_, 0); +lean_inc_ref(v_env_3416_); +lean_dec(v___x_3415_); +lean_inc_n(v_stx_2296_, 2); +v___x_3417_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3418_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3419_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3418_, v_env_3416_, v___x_3417_); +v___x_3420_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3421_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3419_, v___x_3420_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3419_); +if (lean_obj_tag(v___x_3421_) == 0) { -lean_object* v_a_3413_; lean_object* v___x_3415_; uint8_t v_isShared_3416_; uint8_t v_isSharedCheck_3443_; -v_a_3413_ = lean_ctor_get(v___x_3412_, 0); -v_isSharedCheck_3443_ = !lean_is_exclusive(v___x_3412_); -if (v_isSharedCheck_3443_ == 0) +lean_object* v_a_3422_; lean_object* v___x_3424_; uint8_t v_isShared_3425_; uint8_t v_isSharedCheck_3452_; +v_a_3422_ = lean_ctor_get(v___x_3421_, 0); +v_isSharedCheck_3452_ = !lean_is_exclusive(v___x_3421_); +if (v_isSharedCheck_3452_ == 0) { -v___x_3415_ = v___x_3412_; -v_isShared_3416_ = v_isSharedCheck_3443_; -goto v_resetjp_3414_; +v___x_3424_ = v___x_3421_; +v_isShared_3425_ = v_isSharedCheck_3452_; +goto v_resetjp_3423_; } else { -lean_inc(v_a_3413_); -lean_dec(v___x_3412_); -v___x_3415_ = lean_box(0); -v_isShared_3416_ = v_isSharedCheck_3443_; -goto v_resetjp_3414_; +lean_inc(v_a_3422_); +lean_dec(v___x_3421_); +v___x_3424_ = lean_box(0); +v_isShared_3425_ = v_isSharedCheck_3452_; +goto v_resetjp_3423_; } -v_resetjp_3414_: +v_resetjp_3423_: { -lean_object* v_fst_3417_; lean_object* v___x_3419_; uint8_t v_isShared_3420_; uint8_t v_isSharedCheck_3441_; -v_fst_3417_ = lean_ctor_get(v_a_3413_, 0); -v_isSharedCheck_3441_ = !lean_is_exclusive(v_a_3413_); -if (v_isSharedCheck_3441_ == 0) +lean_object* v_fst_3426_; lean_object* v___x_3428_; uint8_t v_isShared_3429_; uint8_t v_isSharedCheck_3450_; +v_fst_3426_ = lean_ctor_get(v_a_3422_, 0); +v_isSharedCheck_3450_ = !lean_is_exclusive(v_a_3422_); +if (v_isSharedCheck_3450_ == 0) { -lean_object* v_unused_3442_; -v_unused_3442_ = lean_ctor_get(v_a_3413_, 1); -lean_dec(v_unused_3442_); -v___x_3419_ = v_a_3413_; -v_isShared_3420_ = v_isSharedCheck_3441_; -goto v_resetjp_3418_; +lean_object* v_unused_3451_; +v_unused_3451_ = lean_ctor_get(v_a_3422_, 1); +lean_dec(v_unused_3451_); +v___x_3428_ = v_a_3422_; +v_isShared_3429_ = v_isSharedCheck_3450_; +goto v_resetjp_3427_; } else { -lean_inc(v_fst_3417_); -lean_dec(v_a_3413_); -v___x_3419_ = lean_box(0); -v_isShared_3420_ = v_isSharedCheck_3441_; -goto v_resetjp_3418_; +lean_inc(v_fst_3426_); +lean_dec(v_a_3422_); +v___x_3428_ = lean_box(0); +v_isShared_3429_ = v_isSharedCheck_3450_; +goto v_resetjp_3427_; } -v_resetjp_3418_: +v_resetjp_3427_: { -if (lean_obj_tag(v_fst_3417_) == 0) +if (lean_obj_tag(v_fst_3426_) == 0) { -lean_object* v___x_3421_; lean_object* v___x_3422_; lean_object* v___x_3424_; -lean_del_object(v___x_3415_); -v___x_3421_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3422_ = l_Lean_MessageData_ofName(v___x_3408_); -lean_inc_ref(v___x_3422_); -if (v_isShared_3420_ == 0) +lean_object* v___x_3430_; lean_object* v___x_3431_; lean_object* v___x_3433_; +lean_del_object(v___x_3424_); +v___x_3430_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3431_ = l_Lean_MessageData_ofName(v___x_3417_); +lean_inc_ref(v___x_3431_); +if (v_isShared_3429_ == 0) { -lean_ctor_set_tag(v___x_3419_, 7); -lean_ctor_set(v___x_3419_, 1, v___x_3422_); -lean_ctor_set(v___x_3419_, 0, v___x_3421_); -v___x_3424_ = v___x_3419_; -goto v_reusejp_3423_; +lean_ctor_set_tag(v___x_3428_, 7); +lean_ctor_set(v___x_3428_, 1, v___x_3431_); +lean_ctor_set(v___x_3428_, 0, v___x_3430_); +v___x_3433_ = v___x_3428_; +goto v_reusejp_3432_; } else { -lean_object* v_reuseFailAlloc_3436_; -v_reuseFailAlloc_3436_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3436_, 0, v___x_3421_); -lean_ctor_set(v_reuseFailAlloc_3436_, 1, v___x_3422_); -v___x_3424_ = v_reuseFailAlloc_3436_; -goto v_reusejp_3423_; +lean_object* v_reuseFailAlloc_3445_; +v_reuseFailAlloc_3445_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3445_, 0, v___x_3430_); +lean_ctor_set(v_reuseFailAlloc_3445_, 1, v___x_3431_); +v___x_3433_ = v_reuseFailAlloc_3445_; +goto v_reusejp_3432_; } -v_reusejp_3423_: +v_reusejp_3432_: { -lean_object* v___x_3425_; lean_object* v___x_3426_; lean_object* v___x_3427_; lean_object* v___x_3428_; lean_object* v___x_3429_; lean_object* v___x_3430_; lean_object* v___x_3431_; lean_object* v___x_3432_; lean_object* v___x_3433_; lean_object* v___x_3434_; lean_object* v___x_3435_; -v___x_3425_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3426_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3426_, 0, v___x_3424_); -lean_ctor_set(v___x_3426_, 1, v___x_3425_); -v___x_3427_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3428_ = l_Lean_indentD(v___x_3427_); -v___x_3429_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3429_, 0, v___x_3426_); -lean_ctor_set(v___x_3429_, 1, v___x_3428_); -v___x_3430_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3431_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3431_, 0, v___x_3429_); -lean_ctor_set(v___x_3431_, 1, v___x_3430_); -v___x_3432_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3432_, 0, v___x_3431_); -lean_ctor_set(v___x_3432_, 1, v___x_3422_); -v___x_3433_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3434_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3434_, 0, v___x_3432_); -lean_ctor_set(v___x_3434_, 1, v___x_3433_); -v___x_3435_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3434_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3435_; +lean_object* v___x_3434_; lean_object* v___x_3435_; lean_object* v___x_3436_; lean_object* v___x_3437_; lean_object* v___x_3438_; lean_object* v___x_3439_; lean_object* v___x_3440_; lean_object* v___x_3441_; lean_object* v___x_3442_; lean_object* v___x_3443_; lean_object* v___x_3444_; +v___x_3434_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3435_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3435_, 0, v___x_3433_); +lean_ctor_set(v___x_3435_, 1, v___x_3434_); +v___x_3436_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3437_ = l_Lean_indentD(v___x_3436_); +v___x_3438_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3438_, 0, v___x_3435_); +lean_ctor_set(v___x_3438_, 1, v___x_3437_); +v___x_3439_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3440_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3440_, 0, v___x_3438_); +lean_ctor_set(v___x_3440_, 1, v___x_3439_); +v___x_3441_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3441_, 0, v___x_3440_); +lean_ctor_set(v___x_3441_, 1, v___x_3431_); +v___x_3442_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3443_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3443_, 0, v___x_3441_); +lean_ctor_set(v___x_3443_, 1, v___x_3442_); +v___x_3444_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3443_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3444_; } } else { -lean_object* v_val_3437_; lean_object* v___x_3439_; -lean_del_object(v___x_3419_); -lean_dec(v___x_3408_); -lean_dec(v_stx_2291_); -v_val_3437_ = lean_ctor_get(v_fst_3417_, 0); -lean_inc(v_val_3437_); -lean_dec_ref(v_fst_3417_); -if (v_isShared_3416_ == 0) +lean_object* v_val_3446_; lean_object* v___x_3448_; +lean_del_object(v___x_3428_); +lean_dec(v___x_3417_); +lean_dec(v_stx_2296_); +v_val_3446_ = lean_ctor_get(v_fst_3426_, 0); +lean_inc(v_val_3446_); +lean_dec_ref(v_fst_3426_); +if (v_isShared_3425_ == 0) { -lean_ctor_set(v___x_3415_, 0, v_val_3437_); -v___x_3439_ = v___x_3415_; -goto v_reusejp_3438_; +lean_ctor_set(v___x_3424_, 0, v_val_3446_); +v___x_3448_ = v___x_3424_; +goto v_reusejp_3447_; } else { -lean_object* v_reuseFailAlloc_3440_; -v_reuseFailAlloc_3440_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3440_, 0, v_val_3437_); -v___x_3439_ = v_reuseFailAlloc_3440_; -goto v_reusejp_3438_; +lean_object* v_reuseFailAlloc_3449_; +v_reuseFailAlloc_3449_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3449_, 0, v_val_3446_); +v___x_3448_ = v_reuseFailAlloc_3449_; +goto v_reusejp_3447_; } -v_reusejp_3438_: +v_reusejp_3447_: { -return v___x_3439_; +return v___x_3448_; } } } @@ -9720,179 +9754,179 @@ return v___x_3439_; } else { -lean_object* v_a_3444_; lean_object* v___x_3446_; uint8_t v_isShared_3447_; uint8_t v_isSharedCheck_3451_; -lean_dec(v___x_3408_); -lean_dec(v_stx_2291_); -v_a_3444_ = lean_ctor_get(v___x_3412_, 0); -v_isSharedCheck_3451_ = !lean_is_exclusive(v___x_3412_); -if (v_isSharedCheck_3451_ == 0) +lean_object* v_a_3453_; lean_object* v___x_3455_; uint8_t v_isShared_3456_; uint8_t v_isSharedCheck_3460_; +lean_dec(v___x_3417_); +lean_dec(v_stx_2296_); +v_a_3453_ = lean_ctor_get(v___x_3421_, 0); +v_isSharedCheck_3460_ = !lean_is_exclusive(v___x_3421_); +if (v_isSharedCheck_3460_ == 0) { -v___x_3446_ = v___x_3412_; -v_isShared_3447_ = v_isSharedCheck_3451_; -goto v_resetjp_3445_; +v___x_3455_ = v___x_3421_; +v_isShared_3456_ = v_isSharedCheck_3460_; +goto v_resetjp_3454_; } else { -lean_inc(v_a_3444_); -lean_dec(v___x_3412_); -v___x_3446_ = lean_box(0); -v_isShared_3447_ = v_isSharedCheck_3451_; -goto v_resetjp_3445_; +lean_inc(v_a_3453_); +lean_dec(v___x_3421_); +v___x_3455_ = lean_box(0); +v_isShared_3456_ = v_isSharedCheck_3460_; +goto v_resetjp_3454_; } -v_resetjp_3445_: +v_resetjp_3454_: { -lean_object* v___x_3449_; -if (v_isShared_3447_ == 0) +lean_object* v___x_3458_; +if (v_isShared_3456_ == 0) { -v___x_3449_ = v___x_3446_; -goto v_reusejp_3448_; +v___x_3458_ = v___x_3455_; +goto v_reusejp_3457_; } else { -lean_object* v_reuseFailAlloc_3450_; -v_reuseFailAlloc_3450_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3450_, 0, v_a_3444_); -v___x_3449_ = v_reuseFailAlloc_3450_; -goto v_reusejp_3448_; +lean_object* v_reuseFailAlloc_3459_; +v_reuseFailAlloc_3459_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3459_, 0, v_a_3453_); +v___x_3458_ = v_reuseFailAlloc_3459_; +goto v_reusejp_3457_; } -v_reusejp_3448_: +v_reusejp_3457_: { -return v___x_3449_; +return v___x_3458_; } } } } else { -lean_object* v___x_3452_; lean_object* v___x_3453_; lean_object* v___x_3455_; -lean_dec(v_stx_2291_); -v___x_3452_ = lean_unsigned_to_nat(1u); -v___x_3453_ = l_Lean_Syntax_getArg(v___x_3402_, v___x_3452_); -lean_dec(v___x_3402_); -if (v_isShared_3374_ == 0) +lean_object* v___x_3461_; lean_object* v___x_3462_; lean_object* v___x_3464_; +lean_dec(v_stx_2296_); +v___x_3461_ = lean_unsigned_to_nat(1u); +v___x_3462_ = l_Lean_Syntax_getArg(v___x_3411_, v___x_3461_); +lean_dec(v___x_3411_); +if (v_isShared_3383_ == 0) { -lean_ctor_set(v___x_3373_, 0, v___x_3453_); -v___x_3455_ = v___x_3373_; -goto v_reusejp_3454_; +lean_ctor_set(v___x_3382_, 0, v___x_3462_); +v___x_3464_ = v___x_3382_; +goto v_reusejp_3463_; } else { -lean_object* v_reuseFailAlloc_3456_; -v_reuseFailAlloc_3456_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3456_, 0, v___x_3453_); -v___x_3455_ = v_reuseFailAlloc_3456_; -goto v_reusejp_3454_; +lean_object* v_reuseFailAlloc_3465_; +v_reuseFailAlloc_3465_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3465_, 0, v___x_3462_); +v___x_3464_ = v_reuseFailAlloc_3465_; +goto v_reusejp_3463_; } -v_reusejp_3454_: +v_reusejp_3463_: { -v_elseSeq_x3f_3378_ = v___x_3455_; -v___y_3379_ = v_a_2292_; -v___y_3380_ = v_a_2293_; -v___y_3381_ = v_a_2294_; -v___y_3382_ = v_a_2295_; -v___y_3383_ = v_a_2296_; -v___y_3384_ = v_a_2297_; -goto v___jp_3377_; +v_elseSeq_x3f_3387_ = v___x_3464_; +v___y_3388_ = v_a_2297_; +v___y_3389_ = v_a_2298_; +v___y_3390_ = v_a_2299_; +v___y_3391_ = v_a_2300_; +v___y_3392_ = v_a_2301_; +v___y_3393_ = v_a_2302_; +goto v___jp_3386_; } } } else { -lean_object* v___x_3457_; -lean_dec(v___x_3402_); -lean_del_object(v___x_3373_); -lean_dec(v_stx_2291_); -v___x_3457_ = lean_box(0); -v_elseSeq_x3f_3378_ = v___x_3457_; -v___y_3379_ = v_a_2292_; -v___y_3380_ = v_a_2293_; -v___y_3381_ = v_a_2294_; -v___y_3382_ = v_a_2295_; -v___y_3383_ = v_a_2296_; -v___y_3384_ = v_a_2297_; -goto v___jp_3377_; +lean_object* v___x_3466_; +lean_dec(v___x_3411_); +lean_del_object(v___x_3382_); +lean_dec(v_stx_2296_); +v___x_3466_ = lean_box(0); +v_elseSeq_x3f_3387_ = v___x_3466_; +v___y_3388_ = v_a_2297_; +v___y_3389_ = v_a_2298_; +v___y_3390_ = v_a_2299_; +v___y_3391_ = v_a_2300_; +v___y_3392_ = v_a_2301_; +v___y_3393_ = v_a_2302_; +goto v___jp_3386_; } -v___jp_3377_: +v___jp_3386_: { -lean_object* v___x_3385_; -v___x_3385_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_elseSeq_x3f_3378_, v___y_3379_, v___y_3380_, v___y_3381_, v___y_3382_, v___y_3383_, v___y_3384_); -if (lean_obj_tag(v___x_3385_) == 0) +lean_object* v___x_3394_; +v___x_3394_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_elseSeq_x3f_3387_, v___y_3388_, v___y_3389_, v___y_3390_, v___y_3391_, v___y_3392_, v___y_3393_); +if (lean_obj_tag(v___x_3394_) == 0) { -lean_object* v_a_3386_; lean_object* v___x_3387_; size_t v_sz_3388_; lean_object* v___x_3389_; -v_a_3386_ = lean_ctor_get(v___x_3385_, 0); -lean_inc(v_a_3386_); -lean_dec_ref(v___x_3385_); -v___x_3387_ = l_Array_reverse___redArg(v_val_3371_); -v_sz_3388_ = lean_array_size(v___x_3387_); -v___x_3389_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v___x_3387_, v_sz_3388_, v___x_3323_, v_a_3386_, v___y_3379_, v___y_3380_, v___y_3381_, v___y_3382_, v___y_3383_, v___y_3384_); -lean_dec_ref(v___x_3387_); -if (lean_obj_tag(v___x_3389_) == 0) +lean_object* v_a_3395_; lean_object* v___x_3396_; size_t v_sz_3397_; lean_object* v___x_3398_; +v_a_3395_ = lean_ctor_get(v___x_3394_, 0); +lean_inc(v_a_3395_); +lean_dec_ref(v___x_3394_); +v___x_3396_ = l_Array_reverse___redArg(v_val_3380_); +v_sz_3397_ = lean_array_size(v___x_3396_); +v___x_3398_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v___x_3396_, v_sz_3397_, v___x_3332_, v_a_3395_, v___y_3388_, v___y_3389_, v___y_3390_, v___y_3391_, v___y_3392_, v___y_3393_); +lean_dec_ref(v___x_3396_); +if (lean_obj_tag(v___x_3398_) == 0) { -lean_object* v_a_3390_; lean_object* v___x_3391_; -v_a_3390_ = lean_ctor_get(v___x_3389_, 0); -lean_inc(v_a_3390_); -lean_dec_ref(v___x_3389_); -v___x_3391_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3376_, v___y_3379_, v___y_3380_, v___y_3381_, v___y_3382_, v___y_3383_, v___y_3384_); -if (lean_obj_tag(v___x_3391_) == 0) +lean_object* v_a_3399_; lean_object* v___x_3400_; +v_a_3399_ = lean_ctor_get(v___x_3398_, 0); +lean_inc(v_a_3399_); +lean_dec_ref(v___x_3398_); +v___x_3400_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_3385_, v___y_3388_, v___y_3389_, v___y_3390_, v___y_3391_, v___y_3392_, v___y_3393_); +if (lean_obj_tag(v___x_3400_) == 0) { -lean_object* v_a_3392_; lean_object* v___x_3394_; uint8_t v_isShared_3395_; uint8_t v_isSharedCheck_3400_; -v_a_3392_ = lean_ctor_get(v___x_3391_, 0); -v_isSharedCheck_3400_ = !lean_is_exclusive(v___x_3391_); -if (v_isSharedCheck_3400_ == 0) +lean_object* v_a_3401_; lean_object* v___x_3403_; uint8_t v_isShared_3404_; uint8_t v_isSharedCheck_3409_; +v_a_3401_ = lean_ctor_get(v___x_3400_, 0); +v_isSharedCheck_3409_ = !lean_is_exclusive(v___x_3400_); +if (v_isSharedCheck_3409_ == 0) { -v___x_3394_ = v___x_3391_; -v_isShared_3395_ = v_isSharedCheck_3400_; -goto v_resetjp_3393_; +v___x_3403_ = v___x_3400_; +v_isShared_3404_ = v_isSharedCheck_3409_; +goto v_resetjp_3402_; } else { -lean_inc(v_a_3392_); -lean_dec(v___x_3391_); -v___x_3394_ = lean_box(0); -v_isShared_3395_ = v_isSharedCheck_3400_; -goto v_resetjp_3393_; +lean_inc(v_a_3401_); +lean_dec(v___x_3400_); +v___x_3403_ = lean_box(0); +v_isShared_3404_ = v_isSharedCheck_3409_; +goto v_resetjp_3402_; } -v_resetjp_3393_: +v_resetjp_3402_: { -lean_object* v___x_3396_; lean_object* v___x_3398_; -v___x_3396_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_3392_, v_a_3390_); -if (v_isShared_3395_ == 0) +lean_object* v___x_3405_; lean_object* v___x_3407_; +v___x_3405_ = l_Lean_Elab_Do_ControlInfo_alternative(v_a_3401_, v_a_3399_); +if (v_isShared_3404_ == 0) { -lean_ctor_set(v___x_3394_, 0, v___x_3396_); -v___x_3398_ = v___x_3394_; -goto v_reusejp_3397_; +lean_ctor_set(v___x_3403_, 0, v___x_3405_); +v___x_3407_ = v___x_3403_; +goto v_reusejp_3406_; } else { -lean_object* v_reuseFailAlloc_3399_; -v_reuseFailAlloc_3399_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3399_, 0, v___x_3396_); -v___x_3398_ = v_reuseFailAlloc_3399_; -goto v_reusejp_3397_; +lean_object* v_reuseFailAlloc_3408_; +v_reuseFailAlloc_3408_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3408_, 0, v___x_3405_); +v___x_3407_ = v_reuseFailAlloc_3408_; +goto v_reusejp_3406_; } -v_reusejp_3397_: +v_reusejp_3406_: { +return v___x_3407_; +} +} +} +else +{ +lean_dec(v_a_3399_); +return v___x_3400_; +} +} +else +{ +lean_dec(v___x_3385_); return v___x_3398_; } } -} else { -lean_dec(v_a_3390_); -return v___x_3391_; -} -} -else -{ -lean_dec(v___x_3376_); -return v___x_3389_; -} -} -else -{ -lean_dec(v___x_3376_); -lean_dec(v_val_3371_); -return v___x_3385_; +lean_dec(v___x_3385_); +lean_dec(v_val_3380_); +return v___x_3394_; } } } @@ -9901,151 +9935,151 @@ return v___x_3385_; } else { -lean_object* v___x_3459_; lean_object* v___x_3460_; lean_object* v___y_3462_; lean_object* v___y_3463_; lean_object* v___y_3464_; lean_object* v___y_3465_; lean_object* v___y_3466_; lean_object* v___y_3467_; lean_object* v___y_3526_; lean_object* v___y_3527_; lean_object* v___y_3528_; lean_object* v___y_3529_; lean_object* v___y_3530_; lean_object* v___y_3531_; lean_object* v___x_3631_; uint8_t v___x_3632_; -v___x_3459_ = lean_unsigned_to_nat(0u); -v___x_3460_ = lean_unsigned_to_nat(1u); -v___x_3631_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3460_); -v___x_3632_ = l_Lean_Syntax_isNone(v___x_3631_); -if (v___x_3632_ == 0) +lean_object* v___x_3468_; lean_object* v___x_3469_; lean_object* v___y_3471_; lean_object* v___y_3472_; lean_object* v___y_3473_; lean_object* v___y_3474_; lean_object* v___y_3475_; lean_object* v___y_3476_; lean_object* v___y_3535_; lean_object* v___y_3536_; lean_object* v___y_3537_; lean_object* v___y_3538_; lean_object* v___y_3539_; lean_object* v___y_3540_; lean_object* v___x_3640_; uint8_t v___x_3641_; +v___x_3468_ = lean_unsigned_to_nat(0u); +v___x_3469_ = lean_unsigned_to_nat(1u); +v___x_3640_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3469_); +v___x_3641_ = l_Lean_Syntax_isNone(v___x_3640_); +if (v___x_3641_ == 0) { -uint8_t v___x_3633_; -lean_inc(v___x_3631_); -v___x_3633_ = l_Lean_Syntax_matchesNull(v___x_3631_, v___x_3460_); -if (v___x_3633_ == 0) +uint8_t v___x_3642_; +lean_inc(v___x_3640_); +v___x_3642_ = l_Lean_Syntax_matchesNull(v___x_3640_, v___x_3469_); +if (v___x_3642_ == 0) { -lean_object* v___x_3634_; lean_object* v_env_3635_; lean_object* v___x_3636_; lean_object* v___x_3637_; lean_object* v___x_3638_; lean_object* v___x_3639_; lean_object* v___x_3640_; -lean_dec(v___x_3631_); -v___x_3634_ = lean_st_ref_get(v_a_2297_); -v_env_3635_ = lean_ctor_get(v___x_3634_, 0); -lean_inc_ref(v_env_3635_); -lean_dec(v___x_3634_); -lean_inc_n(v_stx_2291_, 2); -v___x_3636_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3637_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3638_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3637_, v_env_3635_, v___x_3636_); -v___x_3639_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3640_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3638_, v___x_3639_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3638_); -if (lean_obj_tag(v___x_3640_) == 0) -{ -lean_object* v_a_3641_; lean_object* v___x_3643_; uint8_t v_isShared_3644_; uint8_t v_isSharedCheck_3671_; -v_a_3641_ = lean_ctor_get(v___x_3640_, 0); -v_isSharedCheck_3671_ = !lean_is_exclusive(v___x_3640_); -if (v_isSharedCheck_3671_ == 0) -{ -v___x_3643_ = v___x_3640_; -v_isShared_3644_ = v_isSharedCheck_3671_; -goto v_resetjp_3642_; -} -else -{ -lean_inc(v_a_3641_); +lean_object* v___x_3643_; lean_object* v_env_3644_; lean_object* v___x_3645_; lean_object* v___x_3646_; lean_object* v___x_3647_; lean_object* v___x_3648_; lean_object* v___x_3649_; lean_dec(v___x_3640_); -v___x_3643_ = lean_box(0); -v_isShared_3644_ = v_isSharedCheck_3671_; -goto v_resetjp_3642_; -} -v_resetjp_3642_: +v___x_3643_ = lean_st_ref_get(v_a_2302_); +v_env_3644_ = lean_ctor_get(v___x_3643_, 0); +lean_inc_ref(v_env_3644_); +lean_dec(v___x_3643_); +lean_inc_n(v_stx_2296_, 2); +v___x_3645_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3646_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3647_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3646_, v_env_3644_, v___x_3645_); +v___x_3648_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3649_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3647_, v___x_3648_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3647_); +if (lean_obj_tag(v___x_3649_) == 0) { -lean_object* v_fst_3645_; lean_object* v___x_3647_; uint8_t v_isShared_3648_; uint8_t v_isSharedCheck_3669_; -v_fst_3645_ = lean_ctor_get(v_a_3641_, 0); -v_isSharedCheck_3669_ = !lean_is_exclusive(v_a_3641_); -if (v_isSharedCheck_3669_ == 0) +lean_object* v_a_3650_; lean_object* v___x_3652_; uint8_t v_isShared_3653_; uint8_t v_isSharedCheck_3680_; +v_a_3650_ = lean_ctor_get(v___x_3649_, 0); +v_isSharedCheck_3680_ = !lean_is_exclusive(v___x_3649_); +if (v_isSharedCheck_3680_ == 0) { -lean_object* v_unused_3670_; -v_unused_3670_ = lean_ctor_get(v_a_3641_, 1); -lean_dec(v_unused_3670_); -v___x_3647_ = v_a_3641_; -v_isShared_3648_ = v_isSharedCheck_3669_; -goto v_resetjp_3646_; +v___x_3652_ = v___x_3649_; +v_isShared_3653_ = v_isSharedCheck_3680_; +goto v_resetjp_3651_; } else { -lean_inc(v_fst_3645_); -lean_dec(v_a_3641_); -v___x_3647_ = lean_box(0); -v_isShared_3648_ = v_isSharedCheck_3669_; -goto v_resetjp_3646_; +lean_inc(v_a_3650_); +lean_dec(v___x_3649_); +v___x_3652_ = lean_box(0); +v_isShared_3653_ = v_isSharedCheck_3680_; +goto v_resetjp_3651_; } -v_resetjp_3646_: +v_resetjp_3651_: { -if (lean_obj_tag(v_fst_3645_) == 0) +lean_object* v_fst_3654_; lean_object* v___x_3656_; uint8_t v_isShared_3657_; uint8_t v_isSharedCheck_3678_; +v_fst_3654_ = lean_ctor_get(v_a_3650_, 0); +v_isSharedCheck_3678_ = !lean_is_exclusive(v_a_3650_); +if (v_isSharedCheck_3678_ == 0) { -lean_object* v___x_3649_; lean_object* v___x_3650_; lean_object* v___x_3652_; -lean_del_object(v___x_3643_); -v___x_3649_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3650_ = l_Lean_MessageData_ofName(v___x_3636_); -lean_inc_ref(v___x_3650_); -if (v_isShared_3648_ == 0) -{ -lean_ctor_set_tag(v___x_3647_, 7); -lean_ctor_set(v___x_3647_, 1, v___x_3650_); -lean_ctor_set(v___x_3647_, 0, v___x_3649_); -v___x_3652_ = v___x_3647_; -goto v_reusejp_3651_; +lean_object* v_unused_3679_; +v_unused_3679_ = lean_ctor_get(v_a_3650_, 1); +lean_dec(v_unused_3679_); +v___x_3656_ = v_a_3650_; +v_isShared_3657_ = v_isSharedCheck_3678_; +goto v_resetjp_3655_; } else { -lean_object* v_reuseFailAlloc_3664_; -v_reuseFailAlloc_3664_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3664_, 0, v___x_3649_); -lean_ctor_set(v_reuseFailAlloc_3664_, 1, v___x_3650_); -v___x_3652_ = v_reuseFailAlloc_3664_; -goto v_reusejp_3651_; +lean_inc(v_fst_3654_); +lean_dec(v_a_3650_); +v___x_3656_ = lean_box(0); +v_isShared_3657_ = v_isSharedCheck_3678_; +goto v_resetjp_3655_; } -v_reusejp_3651_: +v_resetjp_3655_: { -lean_object* v___x_3653_; lean_object* v___x_3654_; lean_object* v___x_3655_; lean_object* v___x_3656_; lean_object* v___x_3657_; lean_object* v___x_3658_; lean_object* v___x_3659_; lean_object* v___x_3660_; lean_object* v___x_3661_; lean_object* v___x_3662_; lean_object* v___x_3663_; -v___x_3653_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3654_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3654_, 0, v___x_3652_); -lean_ctor_set(v___x_3654_, 1, v___x_3653_); -v___x_3655_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3656_ = l_Lean_indentD(v___x_3655_); -v___x_3657_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3657_, 0, v___x_3654_); -lean_ctor_set(v___x_3657_, 1, v___x_3656_); -v___x_3658_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3659_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3659_, 0, v___x_3657_); -lean_ctor_set(v___x_3659_, 1, v___x_3658_); -v___x_3660_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3660_, 0, v___x_3659_); -lean_ctor_set(v___x_3660_, 1, v___x_3650_); -v___x_3661_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3662_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3662_, 0, v___x_3660_); -lean_ctor_set(v___x_3662_, 1, v___x_3661_); -v___x_3663_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3662_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3663_; +if (lean_obj_tag(v_fst_3654_) == 0) +{ +lean_object* v___x_3658_; lean_object* v___x_3659_; lean_object* v___x_3661_; +lean_del_object(v___x_3652_); +v___x_3658_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3659_ = l_Lean_MessageData_ofName(v___x_3645_); +lean_inc_ref(v___x_3659_); +if (v_isShared_3657_ == 0) +{ +lean_ctor_set_tag(v___x_3656_, 7); +lean_ctor_set(v___x_3656_, 1, v___x_3659_); +lean_ctor_set(v___x_3656_, 0, v___x_3658_); +v___x_3661_ = v___x_3656_; +goto v_reusejp_3660_; +} +else +{ +lean_object* v_reuseFailAlloc_3673_; +v_reuseFailAlloc_3673_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3673_, 0, v___x_3658_); +lean_ctor_set(v_reuseFailAlloc_3673_, 1, v___x_3659_); +v___x_3661_ = v_reuseFailAlloc_3673_; +goto v_reusejp_3660_; +} +v_reusejp_3660_: +{ +lean_object* v___x_3662_; lean_object* v___x_3663_; lean_object* v___x_3664_; lean_object* v___x_3665_; lean_object* v___x_3666_; lean_object* v___x_3667_; lean_object* v___x_3668_; lean_object* v___x_3669_; lean_object* v___x_3670_; lean_object* v___x_3671_; lean_object* v___x_3672_; +v___x_3662_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3663_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3663_, 0, v___x_3661_); +lean_ctor_set(v___x_3663_, 1, v___x_3662_); +v___x_3664_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3665_ = l_Lean_indentD(v___x_3664_); +v___x_3666_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3666_, 0, v___x_3663_); +lean_ctor_set(v___x_3666_, 1, v___x_3665_); +v___x_3667_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3668_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3668_, 0, v___x_3666_); +lean_ctor_set(v___x_3668_, 1, v___x_3667_); +v___x_3669_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3669_, 0, v___x_3668_); +lean_ctor_set(v___x_3669_, 1, v___x_3659_); +v___x_3670_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3671_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3671_, 0, v___x_3669_); +lean_ctor_set(v___x_3671_, 1, v___x_3670_); +v___x_3672_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3671_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3672_; } } else { -lean_object* v_val_3665_; lean_object* v___x_3667_; -lean_del_object(v___x_3647_); -lean_dec(v___x_3636_); -lean_dec(v_stx_2291_); -v_val_3665_ = lean_ctor_get(v_fst_3645_, 0); -lean_inc(v_val_3665_); -lean_dec_ref(v_fst_3645_); -if (v_isShared_3644_ == 0) +lean_object* v_val_3674_; lean_object* v___x_3676_; +lean_del_object(v___x_3656_); +lean_dec(v___x_3645_); +lean_dec(v_stx_2296_); +v_val_3674_ = lean_ctor_get(v_fst_3654_, 0); +lean_inc(v_val_3674_); +lean_dec_ref(v_fst_3654_); +if (v_isShared_3653_ == 0) { -lean_ctor_set(v___x_3643_, 0, v_val_3665_); -v___x_3667_ = v___x_3643_; -goto v_reusejp_3666_; +lean_ctor_set(v___x_3652_, 0, v_val_3674_); +v___x_3676_ = v___x_3652_; +goto v_reusejp_3675_; } else { -lean_object* v_reuseFailAlloc_3668_; -v_reuseFailAlloc_3668_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3668_, 0, v_val_3665_); -v___x_3667_ = v_reuseFailAlloc_3668_; -goto v_reusejp_3666_; +lean_object* v_reuseFailAlloc_3677_; +v_reuseFailAlloc_3677_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3677_, 0, v_val_3674_); +v___x_3676_ = v_reuseFailAlloc_3677_; +goto v_reusejp_3675_; } -v_reusejp_3666_: +v_reusejp_3675_: { -return v___x_3667_; +return v___x_3676_; } } } @@ -10053,189 +10087,189 @@ return v___x_3667_; } else { -lean_object* v_a_3672_; lean_object* v___x_3674_; uint8_t v_isShared_3675_; uint8_t v_isSharedCheck_3679_; -lean_dec(v___x_3636_); -lean_dec(v_stx_2291_); -v_a_3672_ = lean_ctor_get(v___x_3640_, 0); -v_isSharedCheck_3679_ = !lean_is_exclusive(v___x_3640_); -if (v_isSharedCheck_3679_ == 0) +lean_object* v_a_3681_; lean_object* v___x_3683_; uint8_t v_isShared_3684_; uint8_t v_isSharedCheck_3688_; +lean_dec(v___x_3645_); +lean_dec(v_stx_2296_); +v_a_3681_ = lean_ctor_get(v___x_3649_, 0); +v_isSharedCheck_3688_ = !lean_is_exclusive(v___x_3649_); +if (v_isSharedCheck_3688_ == 0) { -v___x_3674_ = v___x_3640_; -v_isShared_3675_ = v_isSharedCheck_3679_; -goto v_resetjp_3673_; +v___x_3683_ = v___x_3649_; +v_isShared_3684_ = v_isSharedCheck_3688_; +goto v_resetjp_3682_; } else { -lean_inc(v_a_3672_); +lean_inc(v_a_3681_); +lean_dec(v___x_3649_); +v___x_3683_ = lean_box(0); +v_isShared_3684_ = v_isSharedCheck_3688_; +goto v_resetjp_3682_; +} +v_resetjp_3682_: +{ +lean_object* v___x_3686_; +if (v_isShared_3684_ == 0) +{ +v___x_3686_ = v___x_3683_; +goto v_reusejp_3685_; +} +else +{ +lean_object* v_reuseFailAlloc_3687_; +v_reuseFailAlloc_3687_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3687_, 0, v_a_3681_); +v___x_3686_ = v_reuseFailAlloc_3687_; +goto v_reusejp_3685_; +} +v_reusejp_3685_: +{ +return v___x_3686_; +} +} +} +} +else +{ +lean_object* v___x_3689_; lean_object* v___x_3690_; uint8_t v___x_3691_; +v___x_3689_ = l_Lean_Syntax_getArg(v___x_3640_, v___x_3468_); lean_dec(v___x_3640_); -v___x_3674_ = lean_box(0); -v_isShared_3675_ = v_isSharedCheck_3679_; -goto v_resetjp_3673_; -} -v_resetjp_3673_: +v___x_3690_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__74)); +v___x_3691_ = l_Lean_Syntax_isOfKind(v___x_3689_, v___x_3690_); +if (v___x_3691_ == 0) { -lean_object* v___x_3677_; -if (v_isShared_3675_ == 0) +lean_object* v___x_3692_; lean_object* v_env_3693_; lean_object* v___x_3694_; lean_object* v___x_3695_; lean_object* v___x_3696_; lean_object* v___x_3697_; lean_object* v___x_3698_; +v___x_3692_ = lean_st_ref_get(v_a_2302_); +v_env_3693_ = lean_ctor_get(v___x_3692_, 0); +lean_inc_ref(v_env_3693_); +lean_dec(v___x_3692_); +lean_inc_n(v_stx_2296_, 2); +v___x_3694_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3695_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3696_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3695_, v_env_3693_, v___x_3694_); +v___x_3697_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3698_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3696_, v___x_3697_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3696_); +if (lean_obj_tag(v___x_3698_) == 0) { -v___x_3677_ = v___x_3674_; -goto v_reusejp_3676_; +lean_object* v_a_3699_; lean_object* v___x_3701_; uint8_t v_isShared_3702_; uint8_t v_isSharedCheck_3729_; +v_a_3699_ = lean_ctor_get(v___x_3698_, 0); +v_isSharedCheck_3729_ = !lean_is_exclusive(v___x_3698_); +if (v_isSharedCheck_3729_ == 0) +{ +v___x_3701_ = v___x_3698_; +v_isShared_3702_ = v_isSharedCheck_3729_; +goto v_resetjp_3700_; } else { -lean_object* v_reuseFailAlloc_3678_; -v_reuseFailAlloc_3678_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3678_, 0, v_a_3672_); -v___x_3677_ = v_reuseFailAlloc_3678_; -goto v_reusejp_3676_; +lean_inc(v_a_3699_); +lean_dec(v___x_3698_); +v___x_3701_ = lean_box(0); +v_isShared_3702_ = v_isSharedCheck_3729_; +goto v_resetjp_3700_; } -v_reusejp_3676_: +v_resetjp_3700_: { -return v___x_3677_; +lean_object* v_fst_3703_; lean_object* v___x_3705_; uint8_t v_isShared_3706_; uint8_t v_isSharedCheck_3727_; +v_fst_3703_ = lean_ctor_get(v_a_3699_, 0); +v_isSharedCheck_3727_ = !lean_is_exclusive(v_a_3699_); +if (v_isSharedCheck_3727_ == 0) +{ +lean_object* v_unused_3728_; +v_unused_3728_ = lean_ctor_get(v_a_3699_, 1); +lean_dec(v_unused_3728_); +v___x_3705_ = v_a_3699_; +v_isShared_3706_ = v_isSharedCheck_3727_; +goto v_resetjp_3704_; } +else +{ +lean_inc(v_fst_3703_); +lean_dec(v_a_3699_); +v___x_3705_ = lean_box(0); +v_isShared_3706_ = v_isSharedCheck_3727_; +goto v_resetjp_3704_; } +v_resetjp_3704_: +{ +if (lean_obj_tag(v_fst_3703_) == 0) +{ +lean_object* v___x_3707_; lean_object* v___x_3708_; lean_object* v___x_3710_; +lean_del_object(v___x_3701_); +v___x_3707_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3708_ = l_Lean_MessageData_ofName(v___x_3694_); +lean_inc_ref(v___x_3708_); +if (v_isShared_3706_ == 0) +{ +lean_ctor_set_tag(v___x_3705_, 7); +lean_ctor_set(v___x_3705_, 1, v___x_3708_); +lean_ctor_set(v___x_3705_, 0, v___x_3707_); +v___x_3710_ = v___x_3705_; +goto v_reusejp_3709_; +} +else +{ +lean_object* v_reuseFailAlloc_3722_; +v_reuseFailAlloc_3722_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3722_, 0, v___x_3707_); +lean_ctor_set(v_reuseFailAlloc_3722_, 1, v___x_3708_); +v___x_3710_ = v_reuseFailAlloc_3722_; +goto v_reusejp_3709_; +} +v_reusejp_3709_: +{ +lean_object* v___x_3711_; lean_object* v___x_3712_; lean_object* v___x_3713_; lean_object* v___x_3714_; lean_object* v___x_3715_; lean_object* v___x_3716_; lean_object* v___x_3717_; lean_object* v___x_3718_; lean_object* v___x_3719_; lean_object* v___x_3720_; lean_object* v___x_3721_; +v___x_3711_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3712_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3712_, 0, v___x_3710_); +lean_ctor_set(v___x_3712_, 1, v___x_3711_); +v___x_3713_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3714_ = l_Lean_indentD(v___x_3713_); +v___x_3715_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3715_, 0, v___x_3712_); +lean_ctor_set(v___x_3715_, 1, v___x_3714_); +v___x_3716_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3717_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3717_, 0, v___x_3715_); +lean_ctor_set(v___x_3717_, 1, v___x_3716_); +v___x_3718_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3718_, 0, v___x_3717_); +lean_ctor_set(v___x_3718_, 1, v___x_3708_); +v___x_3719_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3720_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3720_, 0, v___x_3718_); +lean_ctor_set(v___x_3720_, 1, v___x_3719_); +v___x_3721_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3720_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3721_; } } else { -lean_object* v___x_3680_; lean_object* v___x_3681_; uint8_t v___x_3682_; -v___x_3680_ = l_Lean_Syntax_getArg(v___x_3631_, v___x_3459_); -lean_dec(v___x_3631_); -v___x_3681_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__74)); -v___x_3682_ = l_Lean_Syntax_isOfKind(v___x_3680_, v___x_3681_); -if (v___x_3682_ == 0) +lean_object* v_val_3723_; lean_object* v___x_3725_; +lean_del_object(v___x_3705_); +lean_dec(v___x_3694_); +lean_dec(v_stx_2296_); +v_val_3723_ = lean_ctor_get(v_fst_3703_, 0); +lean_inc(v_val_3723_); +lean_dec_ref(v_fst_3703_); +if (v_isShared_3702_ == 0) { -lean_object* v___x_3683_; lean_object* v_env_3684_; lean_object* v___x_3685_; lean_object* v___x_3686_; lean_object* v___x_3687_; lean_object* v___x_3688_; lean_object* v___x_3689_; -v___x_3683_ = lean_st_ref_get(v_a_2297_); -v_env_3684_ = lean_ctor_get(v___x_3683_, 0); -lean_inc_ref(v_env_3684_); -lean_dec(v___x_3683_); -lean_inc_n(v_stx_2291_, 2); -v___x_3685_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3686_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3687_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3686_, v_env_3684_, v___x_3685_); -v___x_3688_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3689_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3687_, v___x_3688_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3687_); -if (lean_obj_tag(v___x_3689_) == 0) -{ -lean_object* v_a_3690_; lean_object* v___x_3692_; uint8_t v_isShared_3693_; uint8_t v_isSharedCheck_3720_; -v_a_3690_ = lean_ctor_get(v___x_3689_, 0); -v_isSharedCheck_3720_ = !lean_is_exclusive(v___x_3689_); -if (v_isSharedCheck_3720_ == 0) -{ -v___x_3692_ = v___x_3689_; -v_isShared_3693_ = v_isSharedCheck_3720_; -goto v_resetjp_3691_; +lean_ctor_set(v___x_3701_, 0, v_val_3723_); +v___x_3725_ = v___x_3701_; +goto v_reusejp_3724_; } else { -lean_inc(v_a_3690_); -lean_dec(v___x_3689_); -v___x_3692_ = lean_box(0); -v_isShared_3693_ = v_isSharedCheck_3720_; -goto v_resetjp_3691_; +lean_object* v_reuseFailAlloc_3726_; +v_reuseFailAlloc_3726_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3726_, 0, v_val_3723_); +v___x_3725_ = v_reuseFailAlloc_3726_; +goto v_reusejp_3724_; } -v_resetjp_3691_: +v_reusejp_3724_: { -lean_object* v_fst_3694_; lean_object* v___x_3696_; uint8_t v_isShared_3697_; uint8_t v_isSharedCheck_3718_; -v_fst_3694_ = lean_ctor_get(v_a_3690_, 0); -v_isSharedCheck_3718_ = !lean_is_exclusive(v_a_3690_); -if (v_isSharedCheck_3718_ == 0) -{ -lean_object* v_unused_3719_; -v_unused_3719_ = lean_ctor_get(v_a_3690_, 1); -lean_dec(v_unused_3719_); -v___x_3696_ = v_a_3690_; -v_isShared_3697_ = v_isSharedCheck_3718_; -goto v_resetjp_3695_; -} -else -{ -lean_inc(v_fst_3694_); -lean_dec(v_a_3690_); -v___x_3696_ = lean_box(0); -v_isShared_3697_ = v_isSharedCheck_3718_; -goto v_resetjp_3695_; -} -v_resetjp_3695_: -{ -if (lean_obj_tag(v_fst_3694_) == 0) -{ -lean_object* v___x_3698_; lean_object* v___x_3699_; lean_object* v___x_3701_; -lean_del_object(v___x_3692_); -v___x_3698_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3699_ = l_Lean_MessageData_ofName(v___x_3685_); -lean_inc_ref(v___x_3699_); -if (v_isShared_3697_ == 0) -{ -lean_ctor_set_tag(v___x_3696_, 7); -lean_ctor_set(v___x_3696_, 1, v___x_3699_); -lean_ctor_set(v___x_3696_, 0, v___x_3698_); -v___x_3701_ = v___x_3696_; -goto v_reusejp_3700_; -} -else -{ -lean_object* v_reuseFailAlloc_3713_; -v_reuseFailAlloc_3713_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3713_, 0, v___x_3698_); -lean_ctor_set(v_reuseFailAlloc_3713_, 1, v___x_3699_); -v___x_3701_ = v_reuseFailAlloc_3713_; -goto v_reusejp_3700_; -} -v_reusejp_3700_: -{ -lean_object* v___x_3702_; lean_object* v___x_3703_; lean_object* v___x_3704_; lean_object* v___x_3705_; lean_object* v___x_3706_; lean_object* v___x_3707_; lean_object* v___x_3708_; lean_object* v___x_3709_; lean_object* v___x_3710_; lean_object* v___x_3711_; lean_object* v___x_3712_; -v___x_3702_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3703_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3703_, 0, v___x_3701_); -lean_ctor_set(v___x_3703_, 1, v___x_3702_); -v___x_3704_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3705_ = l_Lean_indentD(v___x_3704_); -v___x_3706_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3706_, 0, v___x_3703_); -lean_ctor_set(v___x_3706_, 1, v___x_3705_); -v___x_3707_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3708_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3708_, 0, v___x_3706_); -lean_ctor_set(v___x_3708_, 1, v___x_3707_); -v___x_3709_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3709_, 0, v___x_3708_); -lean_ctor_set(v___x_3709_, 1, v___x_3699_); -v___x_3710_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3711_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3711_, 0, v___x_3709_); -lean_ctor_set(v___x_3711_, 1, v___x_3710_); -v___x_3712_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3711_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3712_; -} -} -else -{ -lean_object* v_val_3714_; lean_object* v___x_3716_; -lean_del_object(v___x_3696_); -lean_dec(v___x_3685_); -lean_dec(v_stx_2291_); -v_val_3714_ = lean_ctor_get(v_fst_3694_, 0); -lean_inc(v_val_3714_); -lean_dec_ref(v_fst_3694_); -if (v_isShared_3693_ == 0) -{ -lean_ctor_set(v___x_3692_, 0, v_val_3714_); -v___x_3716_ = v___x_3692_; -goto v_reusejp_3715_; -} -else -{ -lean_object* v_reuseFailAlloc_3717_; -v_reuseFailAlloc_3717_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3717_, 0, v_val_3714_); -v___x_3716_ = v_reuseFailAlloc_3717_; -goto v_reusejp_3715_; -} -v_reusejp_3715_: -{ -return v___x_3716_; +return v___x_3725_; } } } @@ -10243,214 +10277,214 @@ return v___x_3716_; } else { -lean_object* v_a_3721_; lean_object* v___x_3723_; uint8_t v_isShared_3724_; uint8_t v_isSharedCheck_3728_; -lean_dec(v___x_3685_); -lean_dec(v_stx_2291_); -v_a_3721_ = lean_ctor_get(v___x_3689_, 0); -v_isSharedCheck_3728_ = !lean_is_exclusive(v___x_3689_); -if (v_isSharedCheck_3728_ == 0) +lean_object* v_a_3730_; lean_object* v___x_3732_; uint8_t v_isShared_3733_; uint8_t v_isSharedCheck_3737_; +lean_dec(v___x_3694_); +lean_dec(v_stx_2296_); +v_a_3730_ = lean_ctor_get(v___x_3698_, 0); +v_isSharedCheck_3737_ = !lean_is_exclusive(v___x_3698_); +if (v_isSharedCheck_3737_ == 0) { -v___x_3723_ = v___x_3689_; -v_isShared_3724_ = v_isSharedCheck_3728_; -goto v_resetjp_3722_; +v___x_3732_ = v___x_3698_; +v_isShared_3733_ = v_isSharedCheck_3737_; +goto v_resetjp_3731_; } else { -lean_inc(v_a_3721_); -lean_dec(v___x_3689_); -v___x_3723_ = lean_box(0); -v_isShared_3724_ = v_isSharedCheck_3728_; -goto v_resetjp_3722_; +lean_inc(v_a_3730_); +lean_dec(v___x_3698_); +v___x_3732_ = lean_box(0); +v_isShared_3733_ = v_isSharedCheck_3737_; +goto v_resetjp_3731_; } -v_resetjp_3722_: +v_resetjp_3731_: { -lean_object* v___x_3726_; -if (v_isShared_3724_ == 0) +lean_object* v___x_3735_; +if (v_isShared_3733_ == 0) { -v___x_3726_ = v___x_3723_; -goto v_reusejp_3725_; +v___x_3735_ = v___x_3732_; +goto v_reusejp_3734_; } else { -lean_object* v_reuseFailAlloc_3727_; -v_reuseFailAlloc_3727_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3727_, 0, v_a_3721_); -v___x_3726_ = v_reuseFailAlloc_3727_; -goto v_reusejp_3725_; +lean_object* v_reuseFailAlloc_3736_; +v_reuseFailAlloc_3736_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3736_, 0, v_a_3730_); +v___x_3735_ = v_reuseFailAlloc_3736_; +goto v_reusejp_3734_; } -v_reusejp_3725_: +v_reusejp_3734_: { -return v___x_3726_; +return v___x_3735_; } } } } else { -v___y_3526_ = v_a_2292_; -v___y_3527_ = v_a_2293_; -v___y_3528_ = v_a_2294_; -v___y_3529_ = v_a_2295_; -v___y_3530_ = v_a_2296_; -v___y_3531_ = v_a_2297_; -goto v___jp_3525_; +v___y_3535_ = v_a_2297_; +v___y_3536_ = v_a_2298_; +v___y_3537_ = v_a_2299_; +v___y_3538_ = v_a_2300_; +v___y_3539_ = v_a_2301_; +v___y_3540_ = v_a_2302_; +goto v___jp_3534_; } } } else { -lean_dec(v___x_3631_); -v___y_3526_ = v_a_2292_; -v___y_3527_ = v_a_2293_; -v___y_3528_ = v_a_2294_; -v___y_3529_ = v_a_2295_; -v___y_3530_ = v_a_2296_; -v___y_3531_ = v_a_2297_; -goto v___jp_3525_; +lean_dec(v___x_3640_); +v___y_3535_ = v_a_2297_; +v___y_3536_ = v_a_2298_; +v___y_3537_ = v_a_2299_; +v___y_3538_ = v_a_2300_; +v___y_3539_ = v_a_2301_; +v___y_3540_ = v_a_2302_; +goto v___jp_3534_; } -v___jp_3461_: +v___jp_3470_: { -lean_object* v___x_3468_; lean_object* v___x_3469_; lean_object* v___x_3470_; uint8_t v___x_3471_; -v___x_3468_ = lean_unsigned_to_nat(6u); -v___x_3469_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3468_); -v___x_3470_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__7)); -lean_inc(v___x_3469_); -v___x_3471_ = l_Lean_Syntax_isOfKind(v___x_3469_, v___x_3470_); -if (v___x_3471_ == 0) +lean_object* v___x_3477_; lean_object* v___x_3478_; lean_object* v___x_3479_; uint8_t v___x_3480_; +v___x_3477_ = lean_unsigned_to_nat(6u); +v___x_3478_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3477_); +v___x_3479_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___closed__7)); +lean_inc(v___x_3478_); +v___x_3480_ = l_Lean_Syntax_isOfKind(v___x_3478_, v___x_3479_); +if (v___x_3480_ == 0) { -lean_object* v___x_3472_; lean_object* v_env_3473_; lean_object* v___x_3474_; lean_object* v___x_3475_; lean_object* v___x_3476_; lean_object* v___x_3477_; lean_object* v___x_3478_; -lean_dec(v___x_3469_); -v___x_3472_ = lean_st_ref_get(v___y_3467_); -v_env_3473_ = lean_ctor_get(v___x_3472_, 0); -lean_inc_ref(v_env_3473_); -lean_dec(v___x_3472_); -lean_inc_n(v_stx_2291_, 2); -v___x_3474_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3475_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3476_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3475_, v_env_3473_, v___x_3474_); -v___x_3477_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3478_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3476_, v___x_3477_, v___y_3462_, v___y_3463_, v___y_3464_, v___y_3465_, v___y_3466_, v___y_3467_); -lean_dec(v___x_3476_); -if (lean_obj_tag(v___x_3478_) == 0) -{ -lean_object* v_a_3479_; lean_object* v___x_3481_; uint8_t v_isShared_3482_; uint8_t v_isSharedCheck_3509_; -v_a_3479_ = lean_ctor_get(v___x_3478_, 0); -v_isSharedCheck_3509_ = !lean_is_exclusive(v___x_3478_); -if (v_isSharedCheck_3509_ == 0) -{ -v___x_3481_ = v___x_3478_; -v_isShared_3482_ = v_isSharedCheck_3509_; -goto v_resetjp_3480_; -} -else -{ -lean_inc(v_a_3479_); +lean_object* v___x_3481_; lean_object* v_env_3482_; lean_object* v___x_3483_; lean_object* v___x_3484_; lean_object* v___x_3485_; lean_object* v___x_3486_; lean_object* v___x_3487_; lean_dec(v___x_3478_); -v___x_3481_ = lean_box(0); -v_isShared_3482_ = v_isSharedCheck_3509_; -goto v_resetjp_3480_; -} -v_resetjp_3480_: +v___x_3481_ = lean_st_ref_get(v___y_3476_); +v_env_3482_ = lean_ctor_get(v___x_3481_, 0); +lean_inc_ref(v_env_3482_); +lean_dec(v___x_3481_); +lean_inc_n(v_stx_2296_, 2); +v___x_3483_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3484_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3485_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3484_, v_env_3482_, v___x_3483_); +v___x_3486_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3487_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3485_, v___x_3486_, v___y_3471_, v___y_3472_, v___y_3473_, v___y_3474_, v___y_3475_, v___y_3476_); +lean_dec(v___x_3485_); +if (lean_obj_tag(v___x_3487_) == 0) { -lean_object* v_fst_3483_; lean_object* v___x_3485_; uint8_t v_isShared_3486_; uint8_t v_isSharedCheck_3507_; -v_fst_3483_ = lean_ctor_get(v_a_3479_, 0); -v_isSharedCheck_3507_ = !lean_is_exclusive(v_a_3479_); -if (v_isSharedCheck_3507_ == 0) +lean_object* v_a_3488_; lean_object* v___x_3490_; uint8_t v_isShared_3491_; uint8_t v_isSharedCheck_3518_; +v_a_3488_ = lean_ctor_get(v___x_3487_, 0); +v_isSharedCheck_3518_ = !lean_is_exclusive(v___x_3487_); +if (v_isSharedCheck_3518_ == 0) { -lean_object* v_unused_3508_; -v_unused_3508_ = lean_ctor_get(v_a_3479_, 1); -lean_dec(v_unused_3508_); -v___x_3485_ = v_a_3479_; -v_isShared_3486_ = v_isSharedCheck_3507_; -goto v_resetjp_3484_; +v___x_3490_ = v___x_3487_; +v_isShared_3491_ = v_isSharedCheck_3518_; +goto v_resetjp_3489_; } else { -lean_inc(v_fst_3483_); -lean_dec(v_a_3479_); -v___x_3485_ = lean_box(0); -v_isShared_3486_ = v_isSharedCheck_3507_; -goto v_resetjp_3484_; +lean_inc(v_a_3488_); +lean_dec(v___x_3487_); +v___x_3490_ = lean_box(0); +v_isShared_3491_ = v_isSharedCheck_3518_; +goto v_resetjp_3489_; } -v_resetjp_3484_: +v_resetjp_3489_: { -if (lean_obj_tag(v_fst_3483_) == 0) +lean_object* v_fst_3492_; lean_object* v___x_3494_; uint8_t v_isShared_3495_; uint8_t v_isSharedCheck_3516_; +v_fst_3492_ = lean_ctor_get(v_a_3488_, 0); +v_isSharedCheck_3516_ = !lean_is_exclusive(v_a_3488_); +if (v_isSharedCheck_3516_ == 0) { -lean_object* v___x_3487_; lean_object* v___x_3488_; lean_object* v___x_3490_; -lean_del_object(v___x_3481_); -v___x_3487_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3488_ = l_Lean_MessageData_ofName(v___x_3474_); -lean_inc_ref(v___x_3488_); -if (v_isShared_3486_ == 0) -{ -lean_ctor_set_tag(v___x_3485_, 7); -lean_ctor_set(v___x_3485_, 1, v___x_3488_); -lean_ctor_set(v___x_3485_, 0, v___x_3487_); -v___x_3490_ = v___x_3485_; -goto v_reusejp_3489_; +lean_object* v_unused_3517_; +v_unused_3517_ = lean_ctor_get(v_a_3488_, 1); +lean_dec(v_unused_3517_); +v___x_3494_ = v_a_3488_; +v_isShared_3495_ = v_isSharedCheck_3516_; +goto v_resetjp_3493_; } else { -lean_object* v_reuseFailAlloc_3502_; -v_reuseFailAlloc_3502_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3502_, 0, v___x_3487_); -lean_ctor_set(v_reuseFailAlloc_3502_, 1, v___x_3488_); -v___x_3490_ = v_reuseFailAlloc_3502_; -goto v_reusejp_3489_; +lean_inc(v_fst_3492_); +lean_dec(v_a_3488_); +v___x_3494_ = lean_box(0); +v_isShared_3495_ = v_isSharedCheck_3516_; +goto v_resetjp_3493_; } -v_reusejp_3489_: +v_resetjp_3493_: { -lean_object* v___x_3491_; lean_object* v___x_3492_; lean_object* v___x_3493_; lean_object* v___x_3494_; lean_object* v___x_3495_; lean_object* v___x_3496_; lean_object* v___x_3497_; lean_object* v___x_3498_; lean_object* v___x_3499_; lean_object* v___x_3500_; lean_object* v___x_3501_; -v___x_3491_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3492_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3492_, 0, v___x_3490_); -lean_ctor_set(v___x_3492_, 1, v___x_3491_); -v___x_3493_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3494_ = l_Lean_indentD(v___x_3493_); -v___x_3495_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3495_, 0, v___x_3492_); -lean_ctor_set(v___x_3495_, 1, v___x_3494_); -v___x_3496_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3497_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3497_, 0, v___x_3495_); -lean_ctor_set(v___x_3497_, 1, v___x_3496_); -v___x_3498_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3498_, 0, v___x_3497_); -lean_ctor_set(v___x_3498_, 1, v___x_3488_); -v___x_3499_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3500_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3500_, 0, v___x_3498_); -lean_ctor_set(v___x_3500_, 1, v___x_3499_); -v___x_3501_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3500_, v___y_3462_, v___y_3463_, v___y_3464_, v___y_3465_, v___y_3466_, v___y_3467_); -return v___x_3501_; +if (lean_obj_tag(v_fst_3492_) == 0) +{ +lean_object* v___x_3496_; lean_object* v___x_3497_; lean_object* v___x_3499_; +lean_del_object(v___x_3490_); +v___x_3496_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3497_ = l_Lean_MessageData_ofName(v___x_3483_); +lean_inc_ref(v___x_3497_); +if (v_isShared_3495_ == 0) +{ +lean_ctor_set_tag(v___x_3494_, 7); +lean_ctor_set(v___x_3494_, 1, v___x_3497_); +lean_ctor_set(v___x_3494_, 0, v___x_3496_); +v___x_3499_ = v___x_3494_; +goto v_reusejp_3498_; +} +else +{ +lean_object* v_reuseFailAlloc_3511_; +v_reuseFailAlloc_3511_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3511_, 0, v___x_3496_); +lean_ctor_set(v_reuseFailAlloc_3511_, 1, v___x_3497_); +v___x_3499_ = v_reuseFailAlloc_3511_; +goto v_reusejp_3498_; +} +v_reusejp_3498_: +{ +lean_object* v___x_3500_; lean_object* v___x_3501_; lean_object* v___x_3502_; lean_object* v___x_3503_; lean_object* v___x_3504_; lean_object* v___x_3505_; lean_object* v___x_3506_; lean_object* v___x_3507_; lean_object* v___x_3508_; lean_object* v___x_3509_; lean_object* v___x_3510_; +v___x_3500_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3501_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3501_, 0, v___x_3499_); +lean_ctor_set(v___x_3501_, 1, v___x_3500_); +v___x_3502_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3503_ = l_Lean_indentD(v___x_3502_); +v___x_3504_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3504_, 0, v___x_3501_); +lean_ctor_set(v___x_3504_, 1, v___x_3503_); +v___x_3505_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3506_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3506_, 0, v___x_3504_); +lean_ctor_set(v___x_3506_, 1, v___x_3505_); +v___x_3507_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3507_, 0, v___x_3506_); +lean_ctor_set(v___x_3507_, 1, v___x_3497_); +v___x_3508_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3509_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3509_, 0, v___x_3507_); +lean_ctor_set(v___x_3509_, 1, v___x_3508_); +v___x_3510_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3509_, v___y_3471_, v___y_3472_, v___y_3473_, v___y_3474_, v___y_3475_, v___y_3476_); +return v___x_3510_; } } else { -lean_object* v_val_3503_; lean_object* v___x_3505_; -lean_del_object(v___x_3485_); -lean_dec(v___x_3474_); -lean_dec(v_stx_2291_); -v_val_3503_ = lean_ctor_get(v_fst_3483_, 0); -lean_inc(v_val_3503_); -lean_dec_ref(v_fst_3483_); -if (v_isShared_3482_ == 0) +lean_object* v_val_3512_; lean_object* v___x_3514_; +lean_del_object(v___x_3494_); +lean_dec(v___x_3483_); +lean_dec(v_stx_2296_); +v_val_3512_ = lean_ctor_get(v_fst_3492_, 0); +lean_inc(v_val_3512_); +lean_dec_ref(v_fst_3492_); +if (v_isShared_3491_ == 0) { -lean_ctor_set(v___x_3481_, 0, v_val_3503_); -v___x_3505_ = v___x_3481_; -goto v_reusejp_3504_; +lean_ctor_set(v___x_3490_, 0, v_val_3512_); +v___x_3514_ = v___x_3490_; +goto v_reusejp_3513_; } else { -lean_object* v_reuseFailAlloc_3506_; -v_reuseFailAlloc_3506_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3506_, 0, v_val_3503_); -v___x_3505_ = v_reuseFailAlloc_3506_; -goto v_reusejp_3504_; +lean_object* v_reuseFailAlloc_3515_; +v_reuseFailAlloc_3515_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3515_, 0, v_val_3512_); +v___x_3514_ = v_reuseFailAlloc_3515_; +goto v_reusejp_3513_; } -v_reusejp_3504_: +v_reusejp_3513_: { -return v___x_3505_; +return v___x_3514_; } } } @@ -10458,216 +10492,216 @@ return v___x_3505_; } else { -lean_object* v_a_3510_; lean_object* v___x_3512_; uint8_t v_isShared_3513_; uint8_t v_isSharedCheck_3517_; -lean_dec(v___x_3474_); -lean_dec(v_stx_2291_); -v_a_3510_ = lean_ctor_get(v___x_3478_, 0); -v_isSharedCheck_3517_ = !lean_is_exclusive(v___x_3478_); -if (v_isSharedCheck_3517_ == 0) +lean_object* v_a_3519_; lean_object* v___x_3521_; uint8_t v_isShared_3522_; uint8_t v_isSharedCheck_3526_; +lean_dec(v___x_3483_); +lean_dec(v_stx_2296_); +v_a_3519_ = lean_ctor_get(v___x_3487_, 0); +v_isSharedCheck_3526_ = !lean_is_exclusive(v___x_3487_); +if (v_isSharedCheck_3526_ == 0) { -v___x_3512_ = v___x_3478_; -v_isShared_3513_ = v_isSharedCheck_3517_; -goto v_resetjp_3511_; +v___x_3521_ = v___x_3487_; +v_isShared_3522_ = v_isSharedCheck_3526_; +goto v_resetjp_3520_; } else { -lean_inc(v_a_3510_); -lean_dec(v___x_3478_); -v___x_3512_ = lean_box(0); -v_isShared_3513_ = v_isSharedCheck_3517_; -goto v_resetjp_3511_; +lean_inc(v_a_3519_); +lean_dec(v___x_3487_); +v___x_3521_ = lean_box(0); +v_isShared_3522_ = v_isSharedCheck_3526_; +goto v_resetjp_3520_; } -v_resetjp_3511_: +v_resetjp_3520_: { -lean_object* v___x_3515_; -if (v_isShared_3513_ == 0) +lean_object* v___x_3524_; +if (v_isShared_3522_ == 0) { -v___x_3515_ = v___x_3512_; -goto v_reusejp_3514_; +v___x_3524_ = v___x_3521_; +goto v_reusejp_3523_; } else { -lean_object* v_reuseFailAlloc_3516_; -v_reuseFailAlloc_3516_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3516_, 0, v_a_3510_); -v___x_3515_ = v_reuseFailAlloc_3516_; -goto v_reusejp_3514_; +lean_object* v_reuseFailAlloc_3525_; +v_reuseFailAlloc_3525_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3525_, 0, v_a_3519_); +v___x_3524_ = v_reuseFailAlloc_3525_; +goto v_reusejp_3523_; } -v_reusejp_3514_: +v_reusejp_3523_: { -return v___x_3515_; -} -} -} -} -else -{ -lean_object* v___x_3518_; lean_object* v___x_3519_; lean_object* v___x_3520_; lean_object* v___x_3521_; size_t v_sz_3522_; size_t v___x_3523_; lean_object* v___x_3524_; -lean_dec(v_stx_2291_); -v___x_3518_ = l_Lean_Syntax_getArg(v___x_3469_, v___x_3459_); -lean_dec(v___x_3469_); -v___x_3519_ = l_Lean_Syntax_getArgs(v___x_3518_); -lean_dec(v___x_3518_); -v___x_3520_ = l_Lean_NameSet_empty; -v___x_3521_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_3521_, 0, v___x_3460_); -lean_ctor_set(v___x_3521_, 1, v___x_3520_); -lean_ctor_set_uint8(v___x_3521_, sizeof(void*)*2, v___x_2610_); -lean_ctor_set_uint8(v___x_3521_, sizeof(void*)*2 + 1, v___x_2610_); -lean_ctor_set_uint8(v___x_3521_, sizeof(void*)*2 + 2, v___x_2610_); -v_sz_3522_ = lean_array_size(v___x_3519_); -v___x_3523_ = ((size_t)0ULL); -v___x_3524_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(v___x_2610_, v___x_3519_, v_sz_3522_, v___x_3523_, v___x_3521_, v___y_3462_, v___y_3463_, v___y_3464_, v___y_3465_, v___y_3466_, v___y_3467_); -lean_dec_ref(v___x_3519_); return v___x_3524_; } } -v___jp_3525_: -{ -lean_object* v___x_3532_; lean_object* v___x_3533_; uint8_t v___x_3534_; -v___x_3532_ = lean_unsigned_to_nat(2u); -v___x_3533_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3532_); -v___x_3534_ = l_Lean_Syntax_isNone(v___x_3533_); -if (v___x_3534_ == 0) -{ -uint8_t v___x_3535_; -lean_inc(v___x_3533_); -v___x_3535_ = l_Lean_Syntax_matchesNull(v___x_3533_, v___x_3460_); -if (v___x_3535_ == 0) -{ -lean_object* v___x_3536_; lean_object* v_env_3537_; lean_object* v___x_3538_; lean_object* v___x_3539_; lean_object* v___x_3540_; lean_object* v___x_3541_; lean_object* v___x_3542_; -lean_dec(v___x_3533_); -v___x_3536_ = lean_st_ref_get(v___y_3531_); -v_env_3537_ = lean_ctor_get(v___x_3536_, 0); -lean_inc_ref(v_env_3537_); -lean_dec(v___x_3536_); -lean_inc_n(v_stx_2291_, 2); -v___x_3538_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3539_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3540_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3539_, v_env_3537_, v___x_3538_); -v___x_3541_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3542_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3540_, v___x_3541_, v___y_3526_, v___y_3527_, v___y_3528_, v___y_3529_, v___y_3530_, v___y_3531_); -lean_dec(v___x_3540_); -if (lean_obj_tag(v___x_3542_) == 0) -{ -lean_object* v_a_3543_; lean_object* v___x_3545_; uint8_t v_isShared_3546_; uint8_t v_isSharedCheck_3573_; -v_a_3543_ = lean_ctor_get(v___x_3542_, 0); -v_isSharedCheck_3573_ = !lean_is_exclusive(v___x_3542_); -if (v_isSharedCheck_3573_ == 0) -{ -v___x_3545_ = v___x_3542_; -v_isShared_3546_ = v_isSharedCheck_3573_; -goto v_resetjp_3544_; +} } else { -lean_inc(v_a_3543_); +lean_object* v___x_3527_; lean_object* v___x_3528_; lean_object* v___x_3529_; lean_object* v___x_3530_; size_t v_sz_3531_; size_t v___x_3532_; lean_object* v___x_3533_; +lean_dec(v_stx_2296_); +v___x_3527_ = l_Lean_Syntax_getArg(v___x_3478_, v___x_3468_); +lean_dec(v___x_3478_); +v___x_3528_ = l_Lean_Syntax_getArgs(v___x_3527_); +lean_dec(v___x_3527_); +v___x_3529_ = l_Lean_NameSet_empty; +v___x_3530_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_3530_, 0, v___x_3469_); +lean_ctor_set(v___x_3530_, 1, v___x_3529_); +lean_ctor_set_uint8(v___x_3530_, sizeof(void*)*2, v___x_2615_); +lean_ctor_set_uint8(v___x_3530_, sizeof(void*)*2 + 1, v___x_2615_); +lean_ctor_set_uint8(v___x_3530_, sizeof(void*)*2 + 2, v___x_2615_); +v_sz_3531_ = lean_array_size(v___x_3528_); +v___x_3532_ = ((size_t)0ULL); +v___x_3533_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(v___x_2615_, v___x_3528_, v_sz_3531_, v___x_3532_, v___x_3530_, v___y_3471_, v___y_3472_, v___y_3473_, v___y_3474_, v___y_3475_, v___y_3476_); +lean_dec_ref(v___x_3528_); +return v___x_3533_; +} +} +v___jp_3534_: +{ +lean_object* v___x_3541_; lean_object* v___x_3542_; uint8_t v___x_3543_; +v___x_3541_ = lean_unsigned_to_nat(2u); +v___x_3542_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3541_); +v___x_3543_ = l_Lean_Syntax_isNone(v___x_3542_); +if (v___x_3543_ == 0) +{ +uint8_t v___x_3544_; +lean_inc(v___x_3542_); +v___x_3544_ = l_Lean_Syntax_matchesNull(v___x_3542_, v___x_3469_); +if (v___x_3544_ == 0) +{ +lean_object* v___x_3545_; lean_object* v_env_3546_; lean_object* v___x_3547_; lean_object* v___x_3548_; lean_object* v___x_3549_; lean_object* v___x_3550_; lean_object* v___x_3551_; lean_dec(v___x_3542_); -v___x_3545_ = lean_box(0); -v_isShared_3546_ = v_isSharedCheck_3573_; -goto v_resetjp_3544_; -} -v_resetjp_3544_: +v___x_3545_ = lean_st_ref_get(v___y_3540_); +v_env_3546_ = lean_ctor_get(v___x_3545_, 0); +lean_inc_ref(v_env_3546_); +lean_dec(v___x_3545_); +lean_inc_n(v_stx_2296_, 2); +v___x_3547_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3548_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3549_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3548_, v_env_3546_, v___x_3547_); +v___x_3550_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3551_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3549_, v___x_3550_, v___y_3535_, v___y_3536_, v___y_3537_, v___y_3538_, v___y_3539_, v___y_3540_); +lean_dec(v___x_3549_); +if (lean_obj_tag(v___x_3551_) == 0) { -lean_object* v_fst_3547_; lean_object* v___x_3549_; uint8_t v_isShared_3550_; uint8_t v_isSharedCheck_3571_; -v_fst_3547_ = lean_ctor_get(v_a_3543_, 0); -v_isSharedCheck_3571_ = !lean_is_exclusive(v_a_3543_); -if (v_isSharedCheck_3571_ == 0) +lean_object* v_a_3552_; lean_object* v___x_3554_; uint8_t v_isShared_3555_; uint8_t v_isSharedCheck_3582_; +v_a_3552_ = lean_ctor_get(v___x_3551_, 0); +v_isSharedCheck_3582_ = !lean_is_exclusive(v___x_3551_); +if (v_isSharedCheck_3582_ == 0) { -lean_object* v_unused_3572_; -v_unused_3572_ = lean_ctor_get(v_a_3543_, 1); -lean_dec(v_unused_3572_); -v___x_3549_ = v_a_3543_; -v_isShared_3550_ = v_isSharedCheck_3571_; -goto v_resetjp_3548_; +v___x_3554_ = v___x_3551_; +v_isShared_3555_ = v_isSharedCheck_3582_; +goto v_resetjp_3553_; } else { -lean_inc(v_fst_3547_); -lean_dec(v_a_3543_); -v___x_3549_ = lean_box(0); -v_isShared_3550_ = v_isSharedCheck_3571_; -goto v_resetjp_3548_; +lean_inc(v_a_3552_); +lean_dec(v___x_3551_); +v___x_3554_ = lean_box(0); +v_isShared_3555_ = v_isSharedCheck_3582_; +goto v_resetjp_3553_; } -v_resetjp_3548_: +v_resetjp_3553_: { -if (lean_obj_tag(v_fst_3547_) == 0) +lean_object* v_fst_3556_; lean_object* v___x_3558_; uint8_t v_isShared_3559_; uint8_t v_isSharedCheck_3580_; +v_fst_3556_ = lean_ctor_get(v_a_3552_, 0); +v_isSharedCheck_3580_ = !lean_is_exclusive(v_a_3552_); +if (v_isSharedCheck_3580_ == 0) { -lean_object* v___x_3551_; lean_object* v___x_3552_; lean_object* v___x_3554_; -lean_del_object(v___x_3545_); -v___x_3551_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3552_ = l_Lean_MessageData_ofName(v___x_3538_); -lean_inc_ref(v___x_3552_); -if (v_isShared_3550_ == 0) -{ -lean_ctor_set_tag(v___x_3549_, 7); -lean_ctor_set(v___x_3549_, 1, v___x_3552_); -lean_ctor_set(v___x_3549_, 0, v___x_3551_); -v___x_3554_ = v___x_3549_; -goto v_reusejp_3553_; +lean_object* v_unused_3581_; +v_unused_3581_ = lean_ctor_get(v_a_3552_, 1); +lean_dec(v_unused_3581_); +v___x_3558_ = v_a_3552_; +v_isShared_3559_ = v_isSharedCheck_3580_; +goto v_resetjp_3557_; } else { -lean_object* v_reuseFailAlloc_3566_; -v_reuseFailAlloc_3566_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3566_, 0, v___x_3551_); -lean_ctor_set(v_reuseFailAlloc_3566_, 1, v___x_3552_); -v___x_3554_ = v_reuseFailAlloc_3566_; -goto v_reusejp_3553_; +lean_inc(v_fst_3556_); +lean_dec(v_a_3552_); +v___x_3558_ = lean_box(0); +v_isShared_3559_ = v_isSharedCheck_3580_; +goto v_resetjp_3557_; } -v_reusejp_3553_: +v_resetjp_3557_: { -lean_object* v___x_3555_; lean_object* v___x_3556_; lean_object* v___x_3557_; lean_object* v___x_3558_; lean_object* v___x_3559_; lean_object* v___x_3560_; lean_object* v___x_3561_; lean_object* v___x_3562_; lean_object* v___x_3563_; lean_object* v___x_3564_; lean_object* v___x_3565_; -v___x_3555_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3556_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3556_, 0, v___x_3554_); -lean_ctor_set(v___x_3556_, 1, v___x_3555_); -v___x_3557_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3558_ = l_Lean_indentD(v___x_3557_); -v___x_3559_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3559_, 0, v___x_3556_); -lean_ctor_set(v___x_3559_, 1, v___x_3558_); -v___x_3560_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3561_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3561_, 0, v___x_3559_); -lean_ctor_set(v___x_3561_, 1, v___x_3560_); -v___x_3562_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3562_, 0, v___x_3561_); -lean_ctor_set(v___x_3562_, 1, v___x_3552_); -v___x_3563_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3564_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3564_, 0, v___x_3562_); -lean_ctor_set(v___x_3564_, 1, v___x_3563_); -v___x_3565_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3564_, v___y_3526_, v___y_3527_, v___y_3528_, v___y_3529_, v___y_3530_, v___y_3531_); -return v___x_3565_; +if (lean_obj_tag(v_fst_3556_) == 0) +{ +lean_object* v___x_3560_; lean_object* v___x_3561_; lean_object* v___x_3563_; +lean_del_object(v___x_3554_); +v___x_3560_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3561_ = l_Lean_MessageData_ofName(v___x_3547_); +lean_inc_ref(v___x_3561_); +if (v_isShared_3559_ == 0) +{ +lean_ctor_set_tag(v___x_3558_, 7); +lean_ctor_set(v___x_3558_, 1, v___x_3561_); +lean_ctor_set(v___x_3558_, 0, v___x_3560_); +v___x_3563_ = v___x_3558_; +goto v_reusejp_3562_; +} +else +{ +lean_object* v_reuseFailAlloc_3575_; +v_reuseFailAlloc_3575_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3575_, 0, v___x_3560_); +lean_ctor_set(v_reuseFailAlloc_3575_, 1, v___x_3561_); +v___x_3563_ = v_reuseFailAlloc_3575_; +goto v_reusejp_3562_; +} +v_reusejp_3562_: +{ +lean_object* v___x_3564_; lean_object* v___x_3565_; lean_object* v___x_3566_; lean_object* v___x_3567_; lean_object* v___x_3568_; lean_object* v___x_3569_; lean_object* v___x_3570_; lean_object* v___x_3571_; lean_object* v___x_3572_; lean_object* v___x_3573_; lean_object* v___x_3574_; +v___x_3564_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3565_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3565_, 0, v___x_3563_); +lean_ctor_set(v___x_3565_, 1, v___x_3564_); +v___x_3566_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3567_ = l_Lean_indentD(v___x_3566_); +v___x_3568_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3568_, 0, v___x_3565_); +lean_ctor_set(v___x_3568_, 1, v___x_3567_); +v___x_3569_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3570_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3570_, 0, v___x_3568_); +lean_ctor_set(v___x_3570_, 1, v___x_3569_); +v___x_3571_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3571_, 0, v___x_3570_); +lean_ctor_set(v___x_3571_, 1, v___x_3561_); +v___x_3572_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3573_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3573_, 0, v___x_3571_); +lean_ctor_set(v___x_3573_, 1, v___x_3572_); +v___x_3574_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3573_, v___y_3535_, v___y_3536_, v___y_3537_, v___y_3538_, v___y_3539_, v___y_3540_); +return v___x_3574_; } } else { -lean_object* v_val_3567_; lean_object* v___x_3569_; -lean_del_object(v___x_3549_); -lean_dec(v___x_3538_); -lean_dec(v_stx_2291_); -v_val_3567_ = lean_ctor_get(v_fst_3547_, 0); -lean_inc(v_val_3567_); -lean_dec_ref(v_fst_3547_); -if (v_isShared_3546_ == 0) +lean_object* v_val_3576_; lean_object* v___x_3578_; +lean_del_object(v___x_3558_); +lean_dec(v___x_3547_); +lean_dec(v_stx_2296_); +v_val_3576_ = lean_ctor_get(v_fst_3556_, 0); +lean_inc(v_val_3576_); +lean_dec_ref(v_fst_3556_); +if (v_isShared_3555_ == 0) { -lean_ctor_set(v___x_3545_, 0, v_val_3567_); -v___x_3569_ = v___x_3545_; -goto v_reusejp_3568_; +lean_ctor_set(v___x_3554_, 0, v_val_3576_); +v___x_3578_ = v___x_3554_; +goto v_reusejp_3577_; } else { -lean_object* v_reuseFailAlloc_3570_; -v_reuseFailAlloc_3570_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3570_, 0, v_val_3567_); -v___x_3569_ = v_reuseFailAlloc_3570_; -goto v_reusejp_3568_; +lean_object* v_reuseFailAlloc_3579_; +v_reuseFailAlloc_3579_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3579_, 0, v_val_3576_); +v___x_3578_ = v_reuseFailAlloc_3579_; +goto v_reusejp_3577_; } -v_reusejp_3568_: +v_reusejp_3577_: { -return v___x_3569_; +return v___x_3578_; } } } @@ -10675,189 +10709,189 @@ return v___x_3569_; } else { -lean_object* v_a_3574_; lean_object* v___x_3576_; uint8_t v_isShared_3577_; uint8_t v_isSharedCheck_3581_; -lean_dec(v___x_3538_); -lean_dec(v_stx_2291_); -v_a_3574_ = lean_ctor_get(v___x_3542_, 0); -v_isSharedCheck_3581_ = !lean_is_exclusive(v___x_3542_); -if (v_isSharedCheck_3581_ == 0) +lean_object* v_a_3583_; lean_object* v___x_3585_; uint8_t v_isShared_3586_; uint8_t v_isSharedCheck_3590_; +lean_dec(v___x_3547_); +lean_dec(v_stx_2296_); +v_a_3583_ = lean_ctor_get(v___x_3551_, 0); +v_isSharedCheck_3590_ = !lean_is_exclusive(v___x_3551_); +if (v_isSharedCheck_3590_ == 0) { -v___x_3576_ = v___x_3542_; -v_isShared_3577_ = v_isSharedCheck_3581_; -goto v_resetjp_3575_; +v___x_3585_ = v___x_3551_; +v_isShared_3586_ = v_isSharedCheck_3590_; +goto v_resetjp_3584_; } else { -lean_inc(v_a_3574_); +lean_inc(v_a_3583_); +lean_dec(v___x_3551_); +v___x_3585_ = lean_box(0); +v_isShared_3586_ = v_isSharedCheck_3590_; +goto v_resetjp_3584_; +} +v_resetjp_3584_: +{ +lean_object* v___x_3588_; +if (v_isShared_3586_ == 0) +{ +v___x_3588_ = v___x_3585_; +goto v_reusejp_3587_; +} +else +{ +lean_object* v_reuseFailAlloc_3589_; +v_reuseFailAlloc_3589_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3589_, 0, v_a_3583_); +v___x_3588_ = v_reuseFailAlloc_3589_; +goto v_reusejp_3587_; +} +v_reusejp_3587_: +{ +return v___x_3588_; +} +} +} +} +else +{ +lean_object* v___x_3591_; lean_object* v___x_3592_; uint8_t v___x_3593_; +v___x_3591_ = l_Lean_Syntax_getArg(v___x_3542_, v___x_3468_); lean_dec(v___x_3542_); -v___x_3576_ = lean_box(0); -v_isShared_3577_ = v_isSharedCheck_3581_; -goto v_resetjp_3575_; -} -v_resetjp_3575_: +v___x_3592_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__72)); +v___x_3593_ = l_Lean_Syntax_isOfKind(v___x_3591_, v___x_3592_); +if (v___x_3593_ == 0) { -lean_object* v___x_3579_; -if (v_isShared_3577_ == 0) +lean_object* v___x_3594_; lean_object* v_env_3595_; lean_object* v___x_3596_; lean_object* v___x_3597_; lean_object* v___x_3598_; lean_object* v___x_3599_; lean_object* v___x_3600_; +v___x_3594_ = lean_st_ref_get(v___y_3540_); +v_env_3595_ = lean_ctor_get(v___x_3594_, 0); +lean_inc_ref(v_env_3595_); +lean_dec(v___x_3594_); +lean_inc_n(v_stx_2296_, 2); +v___x_3596_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3597_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3598_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3597_, v_env_3595_, v___x_3596_); +v___x_3599_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3600_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3598_, v___x_3599_, v___y_3535_, v___y_3536_, v___y_3537_, v___y_3538_, v___y_3539_, v___y_3540_); +lean_dec(v___x_3598_); +if (lean_obj_tag(v___x_3600_) == 0) { -v___x_3579_ = v___x_3576_; -goto v_reusejp_3578_; +lean_object* v_a_3601_; lean_object* v___x_3603_; uint8_t v_isShared_3604_; uint8_t v_isSharedCheck_3631_; +v_a_3601_ = lean_ctor_get(v___x_3600_, 0); +v_isSharedCheck_3631_ = !lean_is_exclusive(v___x_3600_); +if (v_isSharedCheck_3631_ == 0) +{ +v___x_3603_ = v___x_3600_; +v_isShared_3604_ = v_isSharedCheck_3631_; +goto v_resetjp_3602_; } else { -lean_object* v_reuseFailAlloc_3580_; -v_reuseFailAlloc_3580_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3580_, 0, v_a_3574_); -v___x_3579_ = v_reuseFailAlloc_3580_; -goto v_reusejp_3578_; +lean_inc(v_a_3601_); +lean_dec(v___x_3600_); +v___x_3603_ = lean_box(0); +v_isShared_3604_ = v_isSharedCheck_3631_; +goto v_resetjp_3602_; } -v_reusejp_3578_: +v_resetjp_3602_: { -return v___x_3579_; +lean_object* v_fst_3605_; lean_object* v___x_3607_; uint8_t v_isShared_3608_; uint8_t v_isSharedCheck_3629_; +v_fst_3605_ = lean_ctor_get(v_a_3601_, 0); +v_isSharedCheck_3629_ = !lean_is_exclusive(v_a_3601_); +if (v_isSharedCheck_3629_ == 0) +{ +lean_object* v_unused_3630_; +v_unused_3630_ = lean_ctor_get(v_a_3601_, 1); +lean_dec(v_unused_3630_); +v___x_3607_ = v_a_3601_; +v_isShared_3608_ = v_isSharedCheck_3629_; +goto v_resetjp_3606_; } +else +{ +lean_inc(v_fst_3605_); +lean_dec(v_a_3601_); +v___x_3607_ = lean_box(0); +v_isShared_3608_ = v_isSharedCheck_3629_; +goto v_resetjp_3606_; } +v_resetjp_3606_: +{ +if (lean_obj_tag(v_fst_3605_) == 0) +{ +lean_object* v___x_3609_; lean_object* v___x_3610_; lean_object* v___x_3612_; +lean_del_object(v___x_3603_); +v___x_3609_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3610_ = l_Lean_MessageData_ofName(v___x_3596_); +lean_inc_ref(v___x_3610_); +if (v_isShared_3608_ == 0) +{ +lean_ctor_set_tag(v___x_3607_, 7); +lean_ctor_set(v___x_3607_, 1, v___x_3610_); +lean_ctor_set(v___x_3607_, 0, v___x_3609_); +v___x_3612_ = v___x_3607_; +goto v_reusejp_3611_; +} +else +{ +lean_object* v_reuseFailAlloc_3624_; +v_reuseFailAlloc_3624_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3624_, 0, v___x_3609_); +lean_ctor_set(v_reuseFailAlloc_3624_, 1, v___x_3610_); +v___x_3612_ = v_reuseFailAlloc_3624_; +goto v_reusejp_3611_; +} +v_reusejp_3611_: +{ +lean_object* v___x_3613_; lean_object* v___x_3614_; lean_object* v___x_3615_; lean_object* v___x_3616_; lean_object* v___x_3617_; lean_object* v___x_3618_; lean_object* v___x_3619_; lean_object* v___x_3620_; lean_object* v___x_3621_; lean_object* v___x_3622_; lean_object* v___x_3623_; +v___x_3613_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3614_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3614_, 0, v___x_3612_); +lean_ctor_set(v___x_3614_, 1, v___x_3613_); +v___x_3615_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3616_ = l_Lean_indentD(v___x_3615_); +v___x_3617_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3617_, 0, v___x_3614_); +lean_ctor_set(v___x_3617_, 1, v___x_3616_); +v___x_3618_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3619_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3619_, 0, v___x_3617_); +lean_ctor_set(v___x_3619_, 1, v___x_3618_); +v___x_3620_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3620_, 0, v___x_3619_); +lean_ctor_set(v___x_3620_, 1, v___x_3610_); +v___x_3621_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3622_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3622_, 0, v___x_3620_); +lean_ctor_set(v___x_3622_, 1, v___x_3621_); +v___x_3623_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3622_, v___y_3535_, v___y_3536_, v___y_3537_, v___y_3538_, v___y_3539_, v___y_3540_); +return v___x_3623_; } } else { -lean_object* v___x_3582_; lean_object* v___x_3583_; uint8_t v___x_3584_; -v___x_3582_ = l_Lean_Syntax_getArg(v___x_3533_, v___x_3459_); -lean_dec(v___x_3533_); -v___x_3583_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__72)); -v___x_3584_ = l_Lean_Syntax_isOfKind(v___x_3582_, v___x_3583_); -if (v___x_3584_ == 0) +lean_object* v_val_3625_; lean_object* v___x_3627_; +lean_del_object(v___x_3607_); +lean_dec(v___x_3596_); +lean_dec(v_stx_2296_); +v_val_3625_ = lean_ctor_get(v_fst_3605_, 0); +lean_inc(v_val_3625_); +lean_dec_ref(v_fst_3605_); +if (v_isShared_3604_ == 0) { -lean_object* v___x_3585_; lean_object* v_env_3586_; lean_object* v___x_3587_; lean_object* v___x_3588_; lean_object* v___x_3589_; lean_object* v___x_3590_; lean_object* v___x_3591_; -v___x_3585_ = lean_st_ref_get(v___y_3531_); -v_env_3586_ = lean_ctor_get(v___x_3585_, 0); -lean_inc_ref(v_env_3586_); -lean_dec(v___x_3585_); -lean_inc_n(v_stx_2291_, 2); -v___x_3587_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3588_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3589_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3588_, v_env_3586_, v___x_3587_); -v___x_3590_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3591_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3589_, v___x_3590_, v___y_3526_, v___y_3527_, v___y_3528_, v___y_3529_, v___y_3530_, v___y_3531_); -lean_dec(v___x_3589_); -if (lean_obj_tag(v___x_3591_) == 0) -{ -lean_object* v_a_3592_; lean_object* v___x_3594_; uint8_t v_isShared_3595_; uint8_t v_isSharedCheck_3622_; -v_a_3592_ = lean_ctor_get(v___x_3591_, 0); -v_isSharedCheck_3622_ = !lean_is_exclusive(v___x_3591_); -if (v_isSharedCheck_3622_ == 0) -{ -v___x_3594_ = v___x_3591_; -v_isShared_3595_ = v_isSharedCheck_3622_; -goto v_resetjp_3593_; +lean_ctor_set(v___x_3603_, 0, v_val_3625_); +v___x_3627_ = v___x_3603_; +goto v_reusejp_3626_; } else { -lean_inc(v_a_3592_); -lean_dec(v___x_3591_); -v___x_3594_ = lean_box(0); -v_isShared_3595_ = v_isSharedCheck_3622_; -goto v_resetjp_3593_; +lean_object* v_reuseFailAlloc_3628_; +v_reuseFailAlloc_3628_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3628_, 0, v_val_3625_); +v___x_3627_ = v_reuseFailAlloc_3628_; +goto v_reusejp_3626_; } -v_resetjp_3593_: +v_reusejp_3626_: { -lean_object* v_fst_3596_; lean_object* v___x_3598_; uint8_t v_isShared_3599_; uint8_t v_isSharedCheck_3620_; -v_fst_3596_ = lean_ctor_get(v_a_3592_, 0); -v_isSharedCheck_3620_ = !lean_is_exclusive(v_a_3592_); -if (v_isSharedCheck_3620_ == 0) -{ -lean_object* v_unused_3621_; -v_unused_3621_ = lean_ctor_get(v_a_3592_, 1); -lean_dec(v_unused_3621_); -v___x_3598_ = v_a_3592_; -v_isShared_3599_ = v_isSharedCheck_3620_; -goto v_resetjp_3597_; -} -else -{ -lean_inc(v_fst_3596_); -lean_dec(v_a_3592_); -v___x_3598_ = lean_box(0); -v_isShared_3599_ = v_isSharedCheck_3620_; -goto v_resetjp_3597_; -} -v_resetjp_3597_: -{ -if (lean_obj_tag(v_fst_3596_) == 0) -{ -lean_object* v___x_3600_; lean_object* v___x_3601_; lean_object* v___x_3603_; -lean_del_object(v___x_3594_); -v___x_3600_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3601_ = l_Lean_MessageData_ofName(v___x_3587_); -lean_inc_ref(v___x_3601_); -if (v_isShared_3599_ == 0) -{ -lean_ctor_set_tag(v___x_3598_, 7); -lean_ctor_set(v___x_3598_, 1, v___x_3601_); -lean_ctor_set(v___x_3598_, 0, v___x_3600_); -v___x_3603_ = v___x_3598_; -goto v_reusejp_3602_; -} -else -{ -lean_object* v_reuseFailAlloc_3615_; -v_reuseFailAlloc_3615_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3615_, 0, v___x_3600_); -lean_ctor_set(v_reuseFailAlloc_3615_, 1, v___x_3601_); -v___x_3603_ = v_reuseFailAlloc_3615_; -goto v_reusejp_3602_; -} -v_reusejp_3602_: -{ -lean_object* v___x_3604_; lean_object* v___x_3605_; lean_object* v___x_3606_; lean_object* v___x_3607_; lean_object* v___x_3608_; lean_object* v___x_3609_; lean_object* v___x_3610_; lean_object* v___x_3611_; lean_object* v___x_3612_; lean_object* v___x_3613_; lean_object* v___x_3614_; -v___x_3604_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3605_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3605_, 0, v___x_3603_); -lean_ctor_set(v___x_3605_, 1, v___x_3604_); -v___x_3606_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3607_ = l_Lean_indentD(v___x_3606_); -v___x_3608_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3608_, 0, v___x_3605_); -lean_ctor_set(v___x_3608_, 1, v___x_3607_); -v___x_3609_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3610_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3610_, 0, v___x_3608_); -lean_ctor_set(v___x_3610_, 1, v___x_3609_); -v___x_3611_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3611_, 0, v___x_3610_); -lean_ctor_set(v___x_3611_, 1, v___x_3601_); -v___x_3612_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3613_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3613_, 0, v___x_3611_); -lean_ctor_set(v___x_3613_, 1, v___x_3612_); -v___x_3614_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3613_, v___y_3526_, v___y_3527_, v___y_3528_, v___y_3529_, v___y_3530_, v___y_3531_); -return v___x_3614_; -} -} -else -{ -lean_object* v_val_3616_; lean_object* v___x_3618_; -lean_del_object(v___x_3598_); -lean_dec(v___x_3587_); -lean_dec(v_stx_2291_); -v_val_3616_ = lean_ctor_get(v_fst_3596_, 0); -lean_inc(v_val_3616_); -lean_dec_ref(v_fst_3596_); -if (v_isShared_3595_ == 0) -{ -lean_ctor_set(v___x_3594_, 0, v_val_3616_); -v___x_3618_ = v___x_3594_; -goto v_reusejp_3617_; -} -else -{ -lean_object* v_reuseFailAlloc_3619_; -v_reuseFailAlloc_3619_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3619_, 0, v_val_3616_); -v___x_3618_ = v_reuseFailAlloc_3619_; -goto v_reusejp_3617_; -} -v_reusejp_3617_: -{ -return v___x_3618_; +return v___x_3627_; } } } @@ -10865,223 +10899,223 @@ return v___x_3618_; } else { -lean_object* v_a_3623_; lean_object* v___x_3625_; uint8_t v_isShared_3626_; uint8_t v_isSharedCheck_3630_; -lean_dec(v___x_3587_); -lean_dec(v_stx_2291_); -v_a_3623_ = lean_ctor_get(v___x_3591_, 0); -v_isSharedCheck_3630_ = !lean_is_exclusive(v___x_3591_); -if (v_isSharedCheck_3630_ == 0) +lean_object* v_a_3632_; lean_object* v___x_3634_; uint8_t v_isShared_3635_; uint8_t v_isSharedCheck_3639_; +lean_dec(v___x_3596_); +lean_dec(v_stx_2296_); +v_a_3632_ = lean_ctor_get(v___x_3600_, 0); +v_isSharedCheck_3639_ = !lean_is_exclusive(v___x_3600_); +if (v_isSharedCheck_3639_ == 0) { -v___x_3625_ = v___x_3591_; -v_isShared_3626_ = v_isSharedCheck_3630_; -goto v_resetjp_3624_; +v___x_3634_ = v___x_3600_; +v_isShared_3635_ = v_isSharedCheck_3639_; +goto v_resetjp_3633_; } else { -lean_inc(v_a_3623_); -lean_dec(v___x_3591_); -v___x_3625_ = lean_box(0); -v_isShared_3626_ = v_isSharedCheck_3630_; -goto v_resetjp_3624_; +lean_inc(v_a_3632_); +lean_dec(v___x_3600_); +v___x_3634_ = lean_box(0); +v_isShared_3635_ = v_isSharedCheck_3639_; +goto v_resetjp_3633_; } -v_resetjp_3624_: +v_resetjp_3633_: { -lean_object* v___x_3628_; -if (v_isShared_3626_ == 0) +lean_object* v___x_3637_; +if (v_isShared_3635_ == 0) { -v___x_3628_ = v___x_3625_; -goto v_reusejp_3627_; +v___x_3637_ = v___x_3634_; +goto v_reusejp_3636_; } else { -lean_object* v_reuseFailAlloc_3629_; -v_reuseFailAlloc_3629_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3629_, 0, v_a_3623_); -v___x_3628_ = v_reuseFailAlloc_3629_; -goto v_reusejp_3627_; +lean_object* v_reuseFailAlloc_3638_; +v_reuseFailAlloc_3638_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3638_, 0, v_a_3632_); +v___x_3637_ = v_reuseFailAlloc_3638_; +goto v_reusejp_3636_; } -v_reusejp_3627_: +v_reusejp_3636_: { -return v___x_3628_; +return v___x_3637_; } } } } else { -v___y_3462_ = v___y_3526_; -v___y_3463_ = v___y_3527_; -v___y_3464_ = v___y_3528_; -v___y_3465_ = v___y_3529_; -v___y_3466_ = v___y_3530_; -v___y_3467_ = v___y_3531_; -goto v___jp_3461_; +v___y_3471_ = v___y_3535_; +v___y_3472_ = v___y_3536_; +v___y_3473_ = v___y_3537_; +v___y_3474_ = v___y_3538_; +v___y_3475_ = v___y_3539_; +v___y_3476_ = v___y_3540_; +goto v___jp_3470_; } } } else { -lean_dec(v___x_3533_); -v___y_3462_ = v___y_3526_; -v___y_3463_ = v___y_3527_; -v___y_3464_ = v___y_3528_; -v___y_3465_ = v___y_3529_; -v___y_3466_ = v___y_3530_; -v___y_3467_ = v___y_3531_; -goto v___jp_3461_; +lean_dec(v___x_3542_); +v___y_3471_ = v___y_3535_; +v___y_3472_ = v___y_3536_; +v___y_3473_ = v___y_3537_; +v___y_3474_ = v___y_3538_; +v___y_3475_ = v___y_3539_; +v___y_3476_ = v___y_3540_; +goto v___jp_3470_; } } } } else { -lean_object* v___x_3729_; lean_object* v___x_3730_; lean_object* v___x_3731_; uint8_t v___x_3732_; -v___x_3729_ = lean_unsigned_to_nat(0u); -v___x_3730_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3729_); -v___x_3731_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__1)); -lean_inc(v___x_3730_); -v___x_3732_ = l_Lean_Syntax_isOfKind(v___x_3730_, v___x_3731_); -if (v___x_3732_ == 0) +lean_object* v___x_3738_; lean_object* v___x_3739_; lean_object* v___x_3740_; uint8_t v___x_3741_; +v___x_3738_ = lean_unsigned_to_nat(0u); +v___x_3739_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3738_); +v___x_3740_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__1)); +lean_inc(v___x_3739_); +v___x_3741_ = l_Lean_Syntax_isOfKind(v___x_3739_, v___x_3740_); +if (v___x_3741_ == 0) { -lean_object* v___x_3733_; uint8_t v___x_3734_; -v___x_3733_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__3)); -lean_inc(v___x_3730_); -v___x_3734_ = l_Lean_Syntax_isOfKind(v___x_3730_, v___x_3733_); -if (v___x_3734_ == 0) +lean_object* v___x_3742_; uint8_t v___x_3743_; +v___x_3742_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__3)); +lean_inc(v___x_3739_); +v___x_3743_ = l_Lean_Syntax_isOfKind(v___x_3739_, v___x_3742_); +if (v___x_3743_ == 0) { -lean_object* v___x_3735_; lean_object* v_env_3736_; lean_object* v___x_3737_; lean_object* v___x_3738_; lean_object* v___x_3739_; lean_object* v___x_3740_; lean_object* v___x_3741_; -lean_dec(v___x_3730_); -v___x_3735_ = lean_st_ref_get(v_a_2297_); -v_env_3736_ = lean_ctor_get(v___x_3735_, 0); -lean_inc_ref(v_env_3736_); -lean_dec(v___x_3735_); -lean_inc_n(v_stx_2291_, 2); -v___x_3737_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3738_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3739_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3738_, v_env_3736_, v___x_3737_); -v___x_3740_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3741_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3739_, v___x_3740_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); +lean_object* v___x_3744_; lean_object* v_env_3745_; lean_object* v___x_3746_; lean_object* v___x_3747_; lean_object* v___x_3748_; lean_object* v___x_3749_; lean_object* v___x_3750_; lean_dec(v___x_3739_); -if (lean_obj_tag(v___x_3741_) == 0) +v___x_3744_ = lean_st_ref_get(v_a_2302_); +v_env_3745_ = lean_ctor_get(v___x_3744_, 0); +lean_inc_ref(v_env_3745_); +lean_dec(v___x_3744_); +lean_inc_n(v_stx_2296_, 2); +v___x_3746_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3747_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3748_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3747_, v_env_3745_, v___x_3746_); +v___x_3749_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3750_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3748_, v___x_3749_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3748_); +if (lean_obj_tag(v___x_3750_) == 0) { -lean_object* v_a_3742_; lean_object* v___x_3744_; uint8_t v_isShared_3745_; uint8_t v_isSharedCheck_3772_; -v_a_3742_ = lean_ctor_get(v___x_3741_, 0); -v_isSharedCheck_3772_ = !lean_is_exclusive(v___x_3741_); -if (v_isSharedCheck_3772_ == 0) +lean_object* v_a_3751_; lean_object* v___x_3753_; uint8_t v_isShared_3754_; uint8_t v_isSharedCheck_3781_; +v_a_3751_ = lean_ctor_get(v___x_3750_, 0); +v_isSharedCheck_3781_ = !lean_is_exclusive(v___x_3750_); +if (v_isSharedCheck_3781_ == 0) { -v___x_3744_ = v___x_3741_; -v_isShared_3745_ = v_isSharedCheck_3772_; -goto v_resetjp_3743_; +v___x_3753_ = v___x_3750_; +v_isShared_3754_ = v_isSharedCheck_3781_; +goto v_resetjp_3752_; } else { -lean_inc(v_a_3742_); -lean_dec(v___x_3741_); -v___x_3744_ = lean_box(0); -v_isShared_3745_ = v_isSharedCheck_3772_; -goto v_resetjp_3743_; +lean_inc(v_a_3751_); +lean_dec(v___x_3750_); +v___x_3753_ = lean_box(0); +v_isShared_3754_ = v_isSharedCheck_3781_; +goto v_resetjp_3752_; } -v_resetjp_3743_: +v_resetjp_3752_: { -lean_object* v_fst_3746_; lean_object* v___x_3748_; uint8_t v_isShared_3749_; uint8_t v_isSharedCheck_3770_; -v_fst_3746_ = lean_ctor_get(v_a_3742_, 0); -v_isSharedCheck_3770_ = !lean_is_exclusive(v_a_3742_); -if (v_isSharedCheck_3770_ == 0) +lean_object* v_fst_3755_; lean_object* v___x_3757_; uint8_t v_isShared_3758_; uint8_t v_isSharedCheck_3779_; +v_fst_3755_ = lean_ctor_get(v_a_3751_, 0); +v_isSharedCheck_3779_ = !lean_is_exclusive(v_a_3751_); +if (v_isSharedCheck_3779_ == 0) { -lean_object* v_unused_3771_; -v_unused_3771_ = lean_ctor_get(v_a_3742_, 1); -lean_dec(v_unused_3771_); -v___x_3748_ = v_a_3742_; -v_isShared_3749_ = v_isSharedCheck_3770_; -goto v_resetjp_3747_; +lean_object* v_unused_3780_; +v_unused_3780_ = lean_ctor_get(v_a_3751_, 1); +lean_dec(v_unused_3780_); +v___x_3757_ = v_a_3751_; +v_isShared_3758_ = v_isSharedCheck_3779_; +goto v_resetjp_3756_; } else { -lean_inc(v_fst_3746_); -lean_dec(v_a_3742_); -v___x_3748_ = lean_box(0); -v_isShared_3749_ = v_isSharedCheck_3770_; -goto v_resetjp_3747_; +lean_inc(v_fst_3755_); +lean_dec(v_a_3751_); +v___x_3757_ = lean_box(0); +v_isShared_3758_ = v_isSharedCheck_3779_; +goto v_resetjp_3756_; } -v_resetjp_3747_: +v_resetjp_3756_: { -if (lean_obj_tag(v_fst_3746_) == 0) +if (lean_obj_tag(v_fst_3755_) == 0) { -lean_object* v___x_3750_; lean_object* v___x_3751_; lean_object* v___x_3753_; -lean_del_object(v___x_3744_); -v___x_3750_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3751_ = l_Lean_MessageData_ofName(v___x_3737_); -lean_inc_ref(v___x_3751_); -if (v_isShared_3749_ == 0) +lean_object* v___x_3759_; lean_object* v___x_3760_; lean_object* v___x_3762_; +lean_del_object(v___x_3753_); +v___x_3759_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3760_ = l_Lean_MessageData_ofName(v___x_3746_); +lean_inc_ref(v___x_3760_); +if (v_isShared_3758_ == 0) { -lean_ctor_set_tag(v___x_3748_, 7); -lean_ctor_set(v___x_3748_, 1, v___x_3751_); -lean_ctor_set(v___x_3748_, 0, v___x_3750_); -v___x_3753_ = v___x_3748_; -goto v_reusejp_3752_; +lean_ctor_set_tag(v___x_3757_, 7); +lean_ctor_set(v___x_3757_, 1, v___x_3760_); +lean_ctor_set(v___x_3757_, 0, v___x_3759_); +v___x_3762_ = v___x_3757_; +goto v_reusejp_3761_; } else { -lean_object* v_reuseFailAlloc_3765_; -v_reuseFailAlloc_3765_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3765_, 0, v___x_3750_); -lean_ctor_set(v_reuseFailAlloc_3765_, 1, v___x_3751_); -v___x_3753_ = v_reuseFailAlloc_3765_; -goto v_reusejp_3752_; +lean_object* v_reuseFailAlloc_3774_; +v_reuseFailAlloc_3774_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3774_, 0, v___x_3759_); +lean_ctor_set(v_reuseFailAlloc_3774_, 1, v___x_3760_); +v___x_3762_ = v_reuseFailAlloc_3774_; +goto v_reusejp_3761_; } -v_reusejp_3752_: +v_reusejp_3761_: { -lean_object* v___x_3754_; lean_object* v___x_3755_; lean_object* v___x_3756_; lean_object* v___x_3757_; lean_object* v___x_3758_; lean_object* v___x_3759_; lean_object* v___x_3760_; lean_object* v___x_3761_; lean_object* v___x_3762_; lean_object* v___x_3763_; lean_object* v___x_3764_; -v___x_3754_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3755_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3755_, 0, v___x_3753_); -lean_ctor_set(v___x_3755_, 1, v___x_3754_); -v___x_3756_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3757_ = l_Lean_indentD(v___x_3756_); -v___x_3758_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3758_, 0, v___x_3755_); -lean_ctor_set(v___x_3758_, 1, v___x_3757_); -v___x_3759_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3760_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3760_, 0, v___x_3758_); -lean_ctor_set(v___x_3760_, 1, v___x_3759_); -v___x_3761_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3761_, 0, v___x_3760_); -lean_ctor_set(v___x_3761_, 1, v___x_3751_); -v___x_3762_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3763_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3763_, 0, v___x_3761_); -lean_ctor_set(v___x_3763_, 1, v___x_3762_); -v___x_3764_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3763_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3764_; +lean_object* v___x_3763_; lean_object* v___x_3764_; lean_object* v___x_3765_; lean_object* v___x_3766_; lean_object* v___x_3767_; lean_object* v___x_3768_; lean_object* v___x_3769_; lean_object* v___x_3770_; lean_object* v___x_3771_; lean_object* v___x_3772_; lean_object* v___x_3773_; +v___x_3763_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3764_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3764_, 0, v___x_3762_); +lean_ctor_set(v___x_3764_, 1, v___x_3763_); +v___x_3765_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3766_ = l_Lean_indentD(v___x_3765_); +v___x_3767_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3767_, 0, v___x_3764_); +lean_ctor_set(v___x_3767_, 1, v___x_3766_); +v___x_3768_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3769_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3769_, 0, v___x_3767_); +lean_ctor_set(v___x_3769_, 1, v___x_3768_); +v___x_3770_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3770_, 0, v___x_3769_); +lean_ctor_set(v___x_3770_, 1, v___x_3760_); +v___x_3771_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3772_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3772_, 0, v___x_3770_); +lean_ctor_set(v___x_3772_, 1, v___x_3771_); +v___x_3773_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3772_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3773_; } } else { -lean_object* v_val_3766_; lean_object* v___x_3768_; -lean_del_object(v___x_3748_); -lean_dec(v___x_3737_); -lean_dec(v_stx_2291_); -v_val_3766_ = lean_ctor_get(v_fst_3746_, 0); -lean_inc(v_val_3766_); -lean_dec_ref(v_fst_3746_); -if (v_isShared_3745_ == 0) +lean_object* v_val_3775_; lean_object* v___x_3777_; +lean_del_object(v___x_3757_); +lean_dec(v___x_3746_); +lean_dec(v_stx_2296_); +v_val_3775_ = lean_ctor_get(v_fst_3755_, 0); +lean_inc(v_val_3775_); +lean_dec_ref(v_fst_3755_); +if (v_isShared_3754_ == 0) { -lean_ctor_set(v___x_3744_, 0, v_val_3766_); -v___x_3768_ = v___x_3744_; -goto v_reusejp_3767_; +lean_ctor_set(v___x_3753_, 0, v_val_3775_); +v___x_3777_ = v___x_3753_; +goto v_reusejp_3776_; } else { -lean_object* v_reuseFailAlloc_3769_; -v_reuseFailAlloc_3769_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3769_, 0, v_val_3766_); -v___x_3768_ = v_reuseFailAlloc_3769_; -goto v_reusejp_3767_; +lean_object* v_reuseFailAlloc_3778_; +v_reuseFailAlloc_3778_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3778_, 0, v_val_3775_); +v___x_3777_ = v_reuseFailAlloc_3778_; +goto v_reusejp_3776_; } -v_reusejp_3767_: +v_reusejp_3776_: { -return v___x_3768_; +return v___x_3777_; } } } @@ -11089,214 +11123,214 @@ return v___x_3768_; } else { -lean_object* v_a_3773_; lean_object* v___x_3775_; uint8_t v_isShared_3776_; uint8_t v_isSharedCheck_3780_; -lean_dec(v___x_3737_); -lean_dec(v_stx_2291_); -v_a_3773_ = lean_ctor_get(v___x_3741_, 0); -v_isSharedCheck_3780_ = !lean_is_exclusive(v___x_3741_); -if (v_isSharedCheck_3780_ == 0) +lean_object* v_a_3782_; lean_object* v___x_3784_; uint8_t v_isShared_3785_; uint8_t v_isSharedCheck_3789_; +lean_dec(v___x_3746_); +lean_dec(v_stx_2296_); +v_a_3782_ = lean_ctor_get(v___x_3750_, 0); +v_isSharedCheck_3789_ = !lean_is_exclusive(v___x_3750_); +if (v_isSharedCheck_3789_ == 0) { -v___x_3775_ = v___x_3741_; -v_isShared_3776_ = v_isSharedCheck_3780_; -goto v_resetjp_3774_; +v___x_3784_ = v___x_3750_; +v_isShared_3785_ = v_isSharedCheck_3789_; +goto v_resetjp_3783_; } else { -lean_inc(v_a_3773_); -lean_dec(v___x_3741_); -v___x_3775_ = lean_box(0); -v_isShared_3776_ = v_isSharedCheck_3780_; -goto v_resetjp_3774_; +lean_inc(v_a_3782_); +lean_dec(v___x_3750_); +v___x_3784_ = lean_box(0); +v_isShared_3785_ = v_isSharedCheck_3789_; +goto v_resetjp_3783_; } -v_resetjp_3774_: +v_resetjp_3783_: { -lean_object* v___x_3778_; -if (v_isShared_3776_ == 0) +lean_object* v___x_3787_; +if (v_isShared_3785_ == 0) { -v___x_3778_ = v___x_3775_; -goto v_reusejp_3777_; +v___x_3787_ = v___x_3784_; +goto v_reusejp_3786_; } else { -lean_object* v_reuseFailAlloc_3779_; -v_reuseFailAlloc_3779_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3779_, 0, v_a_3773_); -v___x_3778_ = v_reuseFailAlloc_3779_; -goto v_reusejp_3777_; +lean_object* v_reuseFailAlloc_3788_; +v_reuseFailAlloc_3788_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3788_, 0, v_a_3782_); +v___x_3787_ = v_reuseFailAlloc_3788_; +goto v_reusejp_3786_; } -v_reusejp_3777_: +v_reusejp_3786_: { -return v___x_3778_; +return v___x_3787_; } } } } else { -lean_object* v___x_3781_; -lean_dec(v_stx_2291_); -v___x_3781_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2528_, v___x_3730_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3781_; +lean_object* v___x_3790_; +lean_dec(v_stx_2296_); +v___x_3790_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2533_, v___x_3739_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3790_; } } else { -lean_object* v___x_3782_; -lean_dec(v_stx_2291_); -v___x_3782_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2528_, v___x_3730_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3782_; +lean_object* v___x_3791_; +lean_dec(v_stx_2296_); +v___x_3791_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2533_, v___x_3739_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3791_; } } } else { -lean_object* v___x_3783_; lean_object* v___x_3784_; lean_object* v___x_3785_; uint8_t v___x_3786_; -v___x_3783_ = lean_unsigned_to_nat(0u); -v___x_3784_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3783_); -v___x_3785_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__76)); -lean_inc(v___x_3784_); -v___x_3786_ = l_Lean_Syntax_isOfKind(v___x_3784_, v___x_3785_); -if (v___x_3786_ == 0) +lean_object* v___x_3792_; lean_object* v___x_3793_; lean_object* v___x_3794_; uint8_t v___x_3795_; +v___x_3792_ = lean_unsigned_to_nat(0u); +v___x_3793_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3792_); +v___x_3794_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__76)); +lean_inc(v___x_3793_); +v___x_3795_ = l_Lean_Syntax_isOfKind(v___x_3793_, v___x_3794_); +if (v___x_3795_ == 0) { -lean_object* v___x_3787_; uint8_t v___x_3788_; -v___x_3787_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__78)); -lean_inc(v___x_3784_); -v___x_3788_ = l_Lean_Syntax_isOfKind(v___x_3784_, v___x_3787_); -if (v___x_3788_ == 0) +lean_object* v___x_3796_; uint8_t v___x_3797_; +v___x_3796_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__78)); +lean_inc(v___x_3793_); +v___x_3797_ = l_Lean_Syntax_isOfKind(v___x_3793_, v___x_3796_); +if (v___x_3797_ == 0) { -lean_object* v___x_3789_; lean_object* v_env_3790_; lean_object* v___x_3791_; lean_object* v___x_3792_; lean_object* v___x_3793_; lean_object* v___x_3794_; lean_object* v___x_3795_; -lean_dec(v___x_3784_); -v___x_3789_ = lean_st_ref_get(v_a_2297_); -v_env_3790_ = lean_ctor_get(v___x_3789_, 0); -lean_inc_ref(v_env_3790_); -lean_dec(v___x_3789_); -lean_inc_n(v_stx_2291_, 2); -v___x_3791_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3792_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3793_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3792_, v_env_3790_, v___x_3791_); -v___x_3794_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3795_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3793_, v___x_3794_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); +lean_object* v___x_3798_; lean_object* v_env_3799_; lean_object* v___x_3800_; lean_object* v___x_3801_; lean_object* v___x_3802_; lean_object* v___x_3803_; lean_object* v___x_3804_; lean_dec(v___x_3793_); -if (lean_obj_tag(v___x_3795_) == 0) +v___x_3798_ = lean_st_ref_get(v_a_2302_); +v_env_3799_ = lean_ctor_get(v___x_3798_, 0); +lean_inc_ref(v_env_3799_); +lean_dec(v___x_3798_); +lean_inc_n(v_stx_2296_, 2); +v___x_3800_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3801_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3802_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3801_, v_env_3799_, v___x_3800_); +v___x_3803_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3804_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3802_, v___x_3803_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3802_); +if (lean_obj_tag(v___x_3804_) == 0) { -lean_object* v_a_3796_; lean_object* v___x_3798_; uint8_t v_isShared_3799_; uint8_t v_isSharedCheck_3826_; -v_a_3796_ = lean_ctor_get(v___x_3795_, 0); -v_isSharedCheck_3826_ = !lean_is_exclusive(v___x_3795_); -if (v_isSharedCheck_3826_ == 0) +lean_object* v_a_3805_; lean_object* v___x_3807_; uint8_t v_isShared_3808_; uint8_t v_isSharedCheck_3835_; +v_a_3805_ = lean_ctor_get(v___x_3804_, 0); +v_isSharedCheck_3835_ = !lean_is_exclusive(v___x_3804_); +if (v_isSharedCheck_3835_ == 0) { -v___x_3798_ = v___x_3795_; -v_isShared_3799_ = v_isSharedCheck_3826_; -goto v_resetjp_3797_; +v___x_3807_ = v___x_3804_; +v_isShared_3808_ = v_isSharedCheck_3835_; +goto v_resetjp_3806_; } else { -lean_inc(v_a_3796_); -lean_dec(v___x_3795_); -v___x_3798_ = lean_box(0); -v_isShared_3799_ = v_isSharedCheck_3826_; -goto v_resetjp_3797_; +lean_inc(v_a_3805_); +lean_dec(v___x_3804_); +v___x_3807_ = lean_box(0); +v_isShared_3808_ = v_isSharedCheck_3835_; +goto v_resetjp_3806_; } -v_resetjp_3797_: +v_resetjp_3806_: { -lean_object* v_fst_3800_; lean_object* v___x_3802_; uint8_t v_isShared_3803_; uint8_t v_isSharedCheck_3824_; -v_fst_3800_ = lean_ctor_get(v_a_3796_, 0); -v_isSharedCheck_3824_ = !lean_is_exclusive(v_a_3796_); -if (v_isSharedCheck_3824_ == 0) +lean_object* v_fst_3809_; lean_object* v___x_3811_; uint8_t v_isShared_3812_; uint8_t v_isSharedCheck_3833_; +v_fst_3809_ = lean_ctor_get(v_a_3805_, 0); +v_isSharedCheck_3833_ = !lean_is_exclusive(v_a_3805_); +if (v_isSharedCheck_3833_ == 0) { -lean_object* v_unused_3825_; -v_unused_3825_ = lean_ctor_get(v_a_3796_, 1); -lean_dec(v_unused_3825_); -v___x_3802_ = v_a_3796_; -v_isShared_3803_ = v_isSharedCheck_3824_; -goto v_resetjp_3801_; +lean_object* v_unused_3834_; +v_unused_3834_ = lean_ctor_get(v_a_3805_, 1); +lean_dec(v_unused_3834_); +v___x_3811_ = v_a_3805_; +v_isShared_3812_ = v_isSharedCheck_3833_; +goto v_resetjp_3810_; } else { -lean_inc(v_fst_3800_); -lean_dec(v_a_3796_); -v___x_3802_ = lean_box(0); -v_isShared_3803_ = v_isSharedCheck_3824_; -goto v_resetjp_3801_; +lean_inc(v_fst_3809_); +lean_dec(v_a_3805_); +v___x_3811_ = lean_box(0); +v_isShared_3812_ = v_isSharedCheck_3833_; +goto v_resetjp_3810_; } -v_resetjp_3801_: +v_resetjp_3810_: { -if (lean_obj_tag(v_fst_3800_) == 0) +if (lean_obj_tag(v_fst_3809_) == 0) { -lean_object* v___x_3804_; lean_object* v___x_3805_; lean_object* v___x_3807_; -lean_del_object(v___x_3798_); -v___x_3804_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3805_ = l_Lean_MessageData_ofName(v___x_3791_); -lean_inc_ref(v___x_3805_); -if (v_isShared_3803_ == 0) +lean_object* v___x_3813_; lean_object* v___x_3814_; lean_object* v___x_3816_; +lean_del_object(v___x_3807_); +v___x_3813_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3814_ = l_Lean_MessageData_ofName(v___x_3800_); +lean_inc_ref(v___x_3814_); +if (v_isShared_3812_ == 0) { -lean_ctor_set_tag(v___x_3802_, 7); -lean_ctor_set(v___x_3802_, 1, v___x_3805_); -lean_ctor_set(v___x_3802_, 0, v___x_3804_); -v___x_3807_ = v___x_3802_; -goto v_reusejp_3806_; +lean_ctor_set_tag(v___x_3811_, 7); +lean_ctor_set(v___x_3811_, 1, v___x_3814_); +lean_ctor_set(v___x_3811_, 0, v___x_3813_); +v___x_3816_ = v___x_3811_; +goto v_reusejp_3815_; } else { -lean_object* v_reuseFailAlloc_3819_; -v_reuseFailAlloc_3819_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3819_, 0, v___x_3804_); -lean_ctor_set(v_reuseFailAlloc_3819_, 1, v___x_3805_); -v___x_3807_ = v_reuseFailAlloc_3819_; -goto v_reusejp_3806_; +lean_object* v_reuseFailAlloc_3828_; +v_reuseFailAlloc_3828_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3828_, 0, v___x_3813_); +lean_ctor_set(v_reuseFailAlloc_3828_, 1, v___x_3814_); +v___x_3816_ = v_reuseFailAlloc_3828_; +goto v_reusejp_3815_; } -v_reusejp_3806_: +v_reusejp_3815_: { -lean_object* v___x_3808_; lean_object* v___x_3809_; lean_object* v___x_3810_; lean_object* v___x_3811_; lean_object* v___x_3812_; lean_object* v___x_3813_; lean_object* v___x_3814_; lean_object* v___x_3815_; lean_object* v___x_3816_; lean_object* v___x_3817_; lean_object* v___x_3818_; -v___x_3808_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3809_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3809_, 0, v___x_3807_); -lean_ctor_set(v___x_3809_, 1, v___x_3808_); -v___x_3810_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3811_ = l_Lean_indentD(v___x_3810_); -v___x_3812_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3812_, 0, v___x_3809_); -lean_ctor_set(v___x_3812_, 1, v___x_3811_); -v___x_3813_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3814_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3814_, 0, v___x_3812_); -lean_ctor_set(v___x_3814_, 1, v___x_3813_); -v___x_3815_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3815_, 0, v___x_3814_); -lean_ctor_set(v___x_3815_, 1, v___x_3805_); -v___x_3816_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3817_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3817_, 0, v___x_3815_); -lean_ctor_set(v___x_3817_, 1, v___x_3816_); -v___x_3818_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3817_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3818_; +lean_object* v___x_3817_; lean_object* v___x_3818_; lean_object* v___x_3819_; lean_object* v___x_3820_; lean_object* v___x_3821_; lean_object* v___x_3822_; lean_object* v___x_3823_; lean_object* v___x_3824_; lean_object* v___x_3825_; lean_object* v___x_3826_; lean_object* v___x_3827_; +v___x_3817_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3818_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3818_, 0, v___x_3816_); +lean_ctor_set(v___x_3818_, 1, v___x_3817_); +v___x_3819_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3820_ = l_Lean_indentD(v___x_3819_); +v___x_3821_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3821_, 0, v___x_3818_); +lean_ctor_set(v___x_3821_, 1, v___x_3820_); +v___x_3822_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3823_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3823_, 0, v___x_3821_); +lean_ctor_set(v___x_3823_, 1, v___x_3822_); +v___x_3824_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3824_, 0, v___x_3823_); +lean_ctor_set(v___x_3824_, 1, v___x_3814_); +v___x_3825_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3826_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3826_, 0, v___x_3824_); +lean_ctor_set(v___x_3826_, 1, v___x_3825_); +v___x_3827_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3826_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3827_; } } else { -lean_object* v_val_3820_; lean_object* v___x_3822_; -lean_del_object(v___x_3802_); -lean_dec(v___x_3791_); -lean_dec(v_stx_2291_); -v_val_3820_ = lean_ctor_get(v_fst_3800_, 0); -lean_inc(v_val_3820_); -lean_dec_ref(v_fst_3800_); -if (v_isShared_3799_ == 0) +lean_object* v_val_3829_; lean_object* v___x_3831_; +lean_del_object(v___x_3811_); +lean_dec(v___x_3800_); +lean_dec(v_stx_2296_); +v_val_3829_ = lean_ctor_get(v_fst_3809_, 0); +lean_inc(v_val_3829_); +lean_dec_ref(v_fst_3809_); +if (v_isShared_3808_ == 0) { -lean_ctor_set(v___x_3798_, 0, v_val_3820_); -v___x_3822_ = v___x_3798_; -goto v_reusejp_3821_; +lean_ctor_set(v___x_3807_, 0, v_val_3829_); +v___x_3831_ = v___x_3807_; +goto v_reusejp_3830_; } else { -lean_object* v_reuseFailAlloc_3823_; -v_reuseFailAlloc_3823_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3823_, 0, v_val_3820_); -v___x_3822_ = v_reuseFailAlloc_3823_; -goto v_reusejp_3821_; +lean_object* v_reuseFailAlloc_3832_; +v_reuseFailAlloc_3832_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3832_, 0, v_val_3829_); +v___x_3831_ = v_reuseFailAlloc_3832_; +goto v_reusejp_3830_; } -v_reusejp_3821_: +v_reusejp_3830_: { -return v___x_3822_; +return v___x_3831_; } } } @@ -11304,161 +11338,161 @@ return v___x_3822_; } else { -lean_object* v_a_3827_; lean_object* v___x_3829_; uint8_t v_isShared_3830_; uint8_t v_isSharedCheck_3834_; -lean_dec(v___x_3791_); -lean_dec(v_stx_2291_); -v_a_3827_ = lean_ctor_get(v___x_3795_, 0); -v_isSharedCheck_3834_ = !lean_is_exclusive(v___x_3795_); -if (v_isSharedCheck_3834_ == 0) +lean_object* v_a_3836_; lean_object* v___x_3838_; uint8_t v_isShared_3839_; uint8_t v_isSharedCheck_3843_; +lean_dec(v___x_3800_); +lean_dec(v_stx_2296_); +v_a_3836_ = lean_ctor_get(v___x_3804_, 0); +v_isSharedCheck_3843_ = !lean_is_exclusive(v___x_3804_); +if (v_isSharedCheck_3843_ == 0) { -v___x_3829_ = v___x_3795_; -v_isShared_3830_ = v_isSharedCheck_3834_; -goto v_resetjp_3828_; +v___x_3838_ = v___x_3804_; +v_isShared_3839_ = v_isSharedCheck_3843_; +goto v_resetjp_3837_; } else { -lean_inc(v_a_3827_); -lean_dec(v___x_3795_); -v___x_3829_ = lean_box(0); -v_isShared_3830_ = v_isSharedCheck_3834_; -goto v_resetjp_3828_; -} -v_resetjp_3828_: -{ -lean_object* v___x_3832_; -if (v_isShared_3830_ == 0) -{ -v___x_3832_ = v___x_3829_; -goto v_reusejp_3831_; -} -else -{ -lean_object* v_reuseFailAlloc_3833_; -v_reuseFailAlloc_3833_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3833_, 0, v_a_3827_); -v___x_3832_ = v_reuseFailAlloc_3833_; -goto v_reusejp_3831_; -} -v_reusejp_3831_: -{ -return v___x_3832_; -} -} -} -} -else -{ -lean_object* v___x_3835_; -lean_dec(v_stx_2291_); -v___x_3835_ = l_Lean_Elab_Do_getLetPatDeclVars(v___x_3784_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3784_); -if (lean_obj_tag(v___x_3835_) == 0) -{ -lean_object* v_a_3836_; lean_object* v___x_3837_; lean_object* v___x_3838_; -v_a_3836_ = lean_ctor_get(v___x_3835_, 0); lean_inc(v_a_3836_); -lean_dec_ref(v___x_3835_); -v___x_3837_ = lean_box(0); -v___x_3838_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_a_3836_, v___x_3837_, v___x_3837_, v___x_3837_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3838_; +lean_dec(v___x_3804_); +v___x_3838_ = lean_box(0); +v_isShared_3839_ = v_isSharedCheck_3843_; +goto v_resetjp_3837_; +} +v_resetjp_3837_: +{ +lean_object* v___x_3841_; +if (v_isShared_3839_ == 0) +{ +v___x_3841_ = v___x_3838_; +goto v_reusejp_3840_; } else { -lean_object* v_a_3839_; lean_object* v___x_3841_; uint8_t v_isShared_3842_; uint8_t v_isSharedCheck_3846_; -v_a_3839_ = lean_ctor_get(v___x_3835_, 0); -v_isSharedCheck_3846_ = !lean_is_exclusive(v___x_3835_); -if (v_isSharedCheck_3846_ == 0) +lean_object* v_reuseFailAlloc_3842_; +v_reuseFailAlloc_3842_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3842_, 0, v_a_3836_); +v___x_3841_ = v_reuseFailAlloc_3842_; +goto v_reusejp_3840_; +} +v_reusejp_3840_: { -v___x_3841_ = v___x_3835_; -v_isShared_3842_ = v_isSharedCheck_3846_; -goto v_resetjp_3840_; +return v___x_3841_; +} +} +} } else { -lean_inc(v_a_3839_); -lean_dec(v___x_3835_); -v___x_3841_ = lean_box(0); -v_isShared_3842_ = v_isSharedCheck_3846_; -goto v_resetjp_3840_; -} -v_resetjp_3840_: -{ lean_object* v___x_3844_; -if (v_isShared_3842_ == 0) +lean_dec(v_stx_2296_); +v___x_3844_ = l_Lean_Elab_Do_getLetPatDeclVars(v___x_3793_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3793_); +if (lean_obj_tag(v___x_3844_) == 0) { -v___x_3844_ = v___x_3841_; -goto v_reusejp_3843_; +lean_object* v_a_3845_; lean_object* v___x_3846_; lean_object* v___x_3847_; +v_a_3845_ = lean_ctor_get(v___x_3844_, 0); +lean_inc(v_a_3845_); +lean_dec_ref(v___x_3844_); +v___x_3846_ = lean_box(0); +v___x_3847_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_a_3845_, v___x_3846_, v___x_3846_, v___x_3846_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3847_; } else { -lean_object* v_reuseFailAlloc_3845_; -v_reuseFailAlloc_3845_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3845_, 0, v_a_3839_); -v___x_3844_ = v_reuseFailAlloc_3845_; -goto v_reusejp_3843_; -} -v_reusejp_3843_: +lean_object* v_a_3848_; lean_object* v___x_3850_; uint8_t v_isShared_3851_; uint8_t v_isSharedCheck_3855_; +v_a_3848_ = lean_ctor_get(v___x_3844_, 0); +v_isSharedCheck_3855_ = !lean_is_exclusive(v___x_3844_); +if (v_isSharedCheck_3855_ == 0) { -return v___x_3844_; -} -} -} -} +v___x_3850_ = v___x_3844_; +v_isShared_3851_ = v_isSharedCheck_3855_; +goto v_resetjp_3849_; } else { -lean_object* v___x_3847_; -lean_dec(v_stx_2291_); -v___x_3847_ = l_Lean_Elab_Do_getLetIdDeclVars(v___x_3784_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3784_); -if (lean_obj_tag(v___x_3847_) == 0) -{ -lean_object* v_a_3848_; lean_object* v___x_3849_; lean_object* v___x_3850_; -v_a_3848_ = lean_ctor_get(v___x_3847_, 0); lean_inc(v_a_3848_); -lean_dec_ref(v___x_3847_); -v___x_3849_ = lean_box(0); -v___x_3850_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_a_3848_, v___x_3849_, v___x_3849_, v___x_3849_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3850_; +lean_dec(v___x_3844_); +v___x_3850_ = lean_box(0); +v_isShared_3851_ = v_isSharedCheck_3855_; +goto v_resetjp_3849_; +} +v_resetjp_3849_: +{ +lean_object* v___x_3853_; +if (v_isShared_3851_ == 0) +{ +v___x_3853_ = v___x_3850_; +goto v_reusejp_3852_; } else { -lean_object* v_a_3851_; lean_object* v___x_3853_; uint8_t v_isShared_3854_; uint8_t v_isSharedCheck_3858_; -v_a_3851_ = lean_ctor_get(v___x_3847_, 0); -v_isSharedCheck_3858_ = !lean_is_exclusive(v___x_3847_); -if (v_isSharedCheck_3858_ == 0) +lean_object* v_reuseFailAlloc_3854_; +v_reuseFailAlloc_3854_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3854_, 0, v_a_3848_); +v___x_3853_ = v_reuseFailAlloc_3854_; +goto v_reusejp_3852_; +} +v_reusejp_3852_: { -v___x_3853_ = v___x_3847_; -v_isShared_3854_ = v_isSharedCheck_3858_; -goto v_resetjp_3852_; +return v___x_3853_; +} +} +} +} } else { -lean_inc(v_a_3851_); -lean_dec(v___x_3847_); -v___x_3853_ = lean_box(0); -v_isShared_3854_ = v_isSharedCheck_3858_; -goto v_resetjp_3852_; -} -v_resetjp_3852_: -{ lean_object* v___x_3856_; -if (v_isShared_3854_ == 0) +lean_dec(v_stx_2296_); +v___x_3856_ = l_Lean_Elab_Do_getLetIdDeclVars(v___x_3793_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3793_); +if (lean_obj_tag(v___x_3856_) == 0) { -v___x_3856_ = v___x_3853_; -goto v_reusejp_3855_; +lean_object* v_a_3857_; lean_object* v___x_3858_; lean_object* v___x_3859_; +v_a_3857_ = lean_ctor_get(v___x_3856_, 0); +lean_inc(v_a_3857_); +lean_dec_ref(v___x_3856_); +v___x_3858_ = lean_box(0); +v___x_3859_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_a_3857_, v___x_3858_, v___x_3858_, v___x_3858_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3859_; } else { -lean_object* v_reuseFailAlloc_3857_; -v_reuseFailAlloc_3857_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3857_, 0, v_a_3851_); -v___x_3856_ = v_reuseFailAlloc_3857_; -goto v_reusejp_3855_; -} -v_reusejp_3855_: +lean_object* v_a_3860_; lean_object* v___x_3862_; uint8_t v_isShared_3863_; uint8_t v_isSharedCheck_3867_; +v_a_3860_ = lean_ctor_get(v___x_3856_, 0); +v_isSharedCheck_3867_ = !lean_is_exclusive(v___x_3856_); +if (v_isSharedCheck_3867_ == 0) { -return v___x_3856_; +v___x_3862_ = v___x_3856_; +v_isShared_3863_ = v_isSharedCheck_3867_; +goto v_resetjp_3861_; +} +else +{ +lean_inc(v_a_3860_); +lean_dec(v___x_3856_); +v___x_3862_ = lean_box(0); +v_isShared_3863_ = v_isSharedCheck_3867_; +goto v_resetjp_3861_; +} +v_resetjp_3861_: +{ +lean_object* v___x_3865_; +if (v_isShared_3863_ == 0) +{ +v___x_3865_ = v___x_3862_; +goto v_reusejp_3864_; +} +else +{ +lean_object* v_reuseFailAlloc_3866_; +v_reuseFailAlloc_3866_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3866_, 0, v_a_3860_); +v___x_3865_ = v_reuseFailAlloc_3866_; +goto v_reusejp_3864_; +} +v_reusejp_3864_: +{ +return v___x_3865_; } } } @@ -11467,148 +11501,148 @@ return v___x_3856_; } else { -lean_object* v___x_3859_; lean_object* v___x_3860_; uint8_t v___x_3861_; -v___x_3859_ = lean_unsigned_to_nat(1u); -v___x_3860_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3859_); -v___x_3861_ = l_Lean_Syntax_isNone(v___x_3860_); -if (v___x_3861_ == 0) +lean_object* v___x_3868_; lean_object* v___x_3869_; uint8_t v___x_3870_; +v___x_3868_ = lean_unsigned_to_nat(1u); +v___x_3869_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3868_); +v___x_3870_ = l_Lean_Syntax_isNone(v___x_3869_); +if (v___x_3870_ == 0) { -uint8_t v___x_3862_; -v___x_3862_ = l_Lean_Syntax_matchesNull(v___x_3860_, v___x_3859_); -if (v___x_3862_ == 0) +uint8_t v___x_3871_; +v___x_3871_ = l_Lean_Syntax_matchesNull(v___x_3869_, v___x_3868_); +if (v___x_3871_ == 0) { -lean_object* v___x_3863_; lean_object* v_env_3864_; lean_object* v___x_3865_; lean_object* v___x_3866_; lean_object* v___x_3867_; lean_object* v___x_3868_; lean_object* v___x_3869_; -v___x_3863_ = lean_st_ref_get(v_a_2297_); -v_env_3864_ = lean_ctor_get(v___x_3863_, 0); -lean_inc_ref(v_env_3864_); -lean_dec(v___x_3863_); -lean_inc_n(v_stx_2291_, 2); -v___x_3865_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3866_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3867_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3866_, v_env_3864_, v___x_3865_); -v___x_3868_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3869_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3867_, v___x_3868_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3867_); -if (lean_obj_tag(v___x_3869_) == 0) +lean_object* v___x_3872_; lean_object* v_env_3873_; lean_object* v___x_3874_; lean_object* v___x_3875_; lean_object* v___x_3876_; lean_object* v___x_3877_; lean_object* v___x_3878_; +v___x_3872_ = lean_st_ref_get(v_a_2302_); +v_env_3873_ = lean_ctor_get(v___x_3872_, 0); +lean_inc_ref(v_env_3873_); +lean_dec(v___x_3872_); +lean_inc_n(v_stx_2296_, 2); +v___x_3874_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3875_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3876_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3875_, v_env_3873_, v___x_3874_); +v___x_3877_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3878_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3876_, v___x_3877_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3876_); +if (lean_obj_tag(v___x_3878_) == 0) { -lean_object* v_a_3870_; lean_object* v___x_3872_; uint8_t v_isShared_3873_; uint8_t v_isSharedCheck_3900_; -v_a_3870_ = lean_ctor_get(v___x_3869_, 0); -v_isSharedCheck_3900_ = !lean_is_exclusive(v___x_3869_); -if (v_isSharedCheck_3900_ == 0) +lean_object* v_a_3879_; lean_object* v___x_3881_; uint8_t v_isShared_3882_; uint8_t v_isSharedCheck_3909_; +v_a_3879_ = lean_ctor_get(v___x_3878_, 0); +v_isSharedCheck_3909_ = !lean_is_exclusive(v___x_3878_); +if (v_isSharedCheck_3909_ == 0) { -v___x_3872_ = v___x_3869_; -v_isShared_3873_ = v_isSharedCheck_3900_; -goto v_resetjp_3871_; +v___x_3881_ = v___x_3878_; +v_isShared_3882_ = v_isSharedCheck_3909_; +goto v_resetjp_3880_; } else { -lean_inc(v_a_3870_); -lean_dec(v___x_3869_); -v___x_3872_ = lean_box(0); -v_isShared_3873_ = v_isSharedCheck_3900_; -goto v_resetjp_3871_; +lean_inc(v_a_3879_); +lean_dec(v___x_3878_); +v___x_3881_ = lean_box(0); +v_isShared_3882_ = v_isSharedCheck_3909_; +goto v_resetjp_3880_; } -v_resetjp_3871_: +v_resetjp_3880_: { -lean_object* v_fst_3874_; lean_object* v___x_3876_; uint8_t v_isShared_3877_; uint8_t v_isSharedCheck_3898_; -v_fst_3874_ = lean_ctor_get(v_a_3870_, 0); -v_isSharedCheck_3898_ = !lean_is_exclusive(v_a_3870_); -if (v_isSharedCheck_3898_ == 0) +lean_object* v_fst_3883_; lean_object* v___x_3885_; uint8_t v_isShared_3886_; uint8_t v_isSharedCheck_3907_; +v_fst_3883_ = lean_ctor_get(v_a_3879_, 0); +v_isSharedCheck_3907_ = !lean_is_exclusive(v_a_3879_); +if (v_isSharedCheck_3907_ == 0) { -lean_object* v_unused_3899_; -v_unused_3899_ = lean_ctor_get(v_a_3870_, 1); -lean_dec(v_unused_3899_); -v___x_3876_ = v_a_3870_; -v_isShared_3877_ = v_isSharedCheck_3898_; -goto v_resetjp_3875_; +lean_object* v_unused_3908_; +v_unused_3908_ = lean_ctor_get(v_a_3879_, 1); +lean_dec(v_unused_3908_); +v___x_3885_ = v_a_3879_; +v_isShared_3886_ = v_isSharedCheck_3907_; +goto v_resetjp_3884_; } else { -lean_inc(v_fst_3874_); -lean_dec(v_a_3870_); -v___x_3876_ = lean_box(0); -v_isShared_3877_ = v_isSharedCheck_3898_; -goto v_resetjp_3875_; +lean_inc(v_fst_3883_); +lean_dec(v_a_3879_); +v___x_3885_ = lean_box(0); +v_isShared_3886_ = v_isSharedCheck_3907_; +goto v_resetjp_3884_; } -v_resetjp_3875_: +v_resetjp_3884_: { -if (lean_obj_tag(v_fst_3874_) == 0) +if (lean_obj_tag(v_fst_3883_) == 0) { -lean_object* v___x_3878_; lean_object* v___x_3879_; lean_object* v___x_3881_; -lean_del_object(v___x_3872_); -v___x_3878_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3879_ = l_Lean_MessageData_ofName(v___x_3865_); -lean_inc_ref(v___x_3879_); -if (v_isShared_3877_ == 0) +lean_object* v___x_3887_; lean_object* v___x_3888_; lean_object* v___x_3890_; +lean_del_object(v___x_3881_); +v___x_3887_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3888_ = l_Lean_MessageData_ofName(v___x_3874_); +lean_inc_ref(v___x_3888_); +if (v_isShared_3886_ == 0) { -lean_ctor_set_tag(v___x_3876_, 7); -lean_ctor_set(v___x_3876_, 1, v___x_3879_); -lean_ctor_set(v___x_3876_, 0, v___x_3878_); -v___x_3881_ = v___x_3876_; -goto v_reusejp_3880_; +lean_ctor_set_tag(v___x_3885_, 7); +lean_ctor_set(v___x_3885_, 1, v___x_3888_); +lean_ctor_set(v___x_3885_, 0, v___x_3887_); +v___x_3890_ = v___x_3885_; +goto v_reusejp_3889_; } else { -lean_object* v_reuseFailAlloc_3893_; -v_reuseFailAlloc_3893_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3893_, 0, v___x_3878_); -lean_ctor_set(v_reuseFailAlloc_3893_, 1, v___x_3879_); -v___x_3881_ = v_reuseFailAlloc_3893_; -goto v_reusejp_3880_; +lean_object* v_reuseFailAlloc_3902_; +v_reuseFailAlloc_3902_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3902_, 0, v___x_3887_); +lean_ctor_set(v_reuseFailAlloc_3902_, 1, v___x_3888_); +v___x_3890_ = v_reuseFailAlloc_3902_; +goto v_reusejp_3889_; } -v_reusejp_3880_: +v_reusejp_3889_: { -lean_object* v___x_3882_; lean_object* v___x_3883_; lean_object* v___x_3884_; lean_object* v___x_3885_; lean_object* v___x_3886_; lean_object* v___x_3887_; lean_object* v___x_3888_; lean_object* v___x_3889_; lean_object* v___x_3890_; lean_object* v___x_3891_; lean_object* v___x_3892_; -v___x_3882_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3883_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3883_, 0, v___x_3881_); -lean_ctor_set(v___x_3883_, 1, v___x_3882_); -v___x_3884_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3885_ = l_Lean_indentD(v___x_3884_); -v___x_3886_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3886_, 0, v___x_3883_); -lean_ctor_set(v___x_3886_, 1, v___x_3885_); -v___x_3887_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3888_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3888_, 0, v___x_3886_); -lean_ctor_set(v___x_3888_, 1, v___x_3887_); -v___x_3889_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3889_, 0, v___x_3888_); -lean_ctor_set(v___x_3889_, 1, v___x_3879_); -v___x_3890_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3891_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3891_, 0, v___x_3889_); -lean_ctor_set(v___x_3891_, 1, v___x_3890_); -v___x_3892_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3891_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3892_; +lean_object* v___x_3891_; lean_object* v___x_3892_; lean_object* v___x_3893_; lean_object* v___x_3894_; lean_object* v___x_3895_; lean_object* v___x_3896_; lean_object* v___x_3897_; lean_object* v___x_3898_; lean_object* v___x_3899_; lean_object* v___x_3900_; lean_object* v___x_3901_; +v___x_3891_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3892_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3892_, 0, v___x_3890_); +lean_ctor_set(v___x_3892_, 1, v___x_3891_); +v___x_3893_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3894_ = l_Lean_indentD(v___x_3893_); +v___x_3895_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3895_, 0, v___x_3892_); +lean_ctor_set(v___x_3895_, 1, v___x_3894_); +v___x_3896_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3897_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3897_, 0, v___x_3895_); +lean_ctor_set(v___x_3897_, 1, v___x_3896_); +v___x_3898_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3898_, 0, v___x_3897_); +lean_ctor_set(v___x_3898_, 1, v___x_3888_); +v___x_3899_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3900_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3900_, 0, v___x_3898_); +lean_ctor_set(v___x_3900_, 1, v___x_3899_); +v___x_3901_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3900_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3901_; } } else { -lean_object* v_val_3894_; lean_object* v___x_3896_; -lean_del_object(v___x_3876_); -lean_dec(v___x_3865_); -lean_dec(v_stx_2291_); -v_val_3894_ = lean_ctor_get(v_fst_3874_, 0); -lean_inc(v_val_3894_); -lean_dec_ref(v_fst_3874_); -if (v_isShared_3873_ == 0) +lean_object* v_val_3903_; lean_object* v___x_3905_; +lean_del_object(v___x_3885_); +lean_dec(v___x_3874_); +lean_dec(v_stx_2296_); +v_val_3903_ = lean_ctor_get(v_fst_3883_, 0); +lean_inc(v_val_3903_); +lean_dec_ref(v_fst_3883_); +if (v_isShared_3882_ == 0) { -lean_ctor_set(v___x_3872_, 0, v_val_3894_); -v___x_3896_ = v___x_3872_; -goto v_reusejp_3895_; +lean_ctor_set(v___x_3881_, 0, v_val_3903_); +v___x_3905_ = v___x_3881_; +goto v_reusejp_3904_; } else { -lean_object* v_reuseFailAlloc_3897_; -v_reuseFailAlloc_3897_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3897_, 0, v_val_3894_); -v___x_3896_ = v_reuseFailAlloc_3897_; -goto v_reusejp_3895_; +lean_object* v_reuseFailAlloc_3906_; +v_reuseFailAlloc_3906_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3906_, 0, v_val_3903_); +v___x_3905_ = v_reuseFailAlloc_3906_; +goto v_reusejp_3904_; } -v_reusejp_3895_: +v_reusejp_3904_: { -return v___x_3896_; +return v___x_3905_; } } } @@ -11616,216 +11650,216 @@ return v___x_3896_; } else { -lean_object* v_a_3901_; lean_object* v___x_3903_; uint8_t v_isShared_3904_; uint8_t v_isSharedCheck_3908_; -lean_dec(v___x_3865_); -lean_dec(v_stx_2291_); -v_a_3901_ = lean_ctor_get(v___x_3869_, 0); -v_isSharedCheck_3908_ = !lean_is_exclusive(v___x_3869_); -if (v_isSharedCheck_3908_ == 0) +lean_object* v_a_3910_; lean_object* v___x_3912_; uint8_t v_isShared_3913_; uint8_t v_isSharedCheck_3917_; +lean_dec(v___x_3874_); +lean_dec(v_stx_2296_); +v_a_3910_ = lean_ctor_get(v___x_3878_, 0); +v_isSharedCheck_3917_ = !lean_is_exclusive(v___x_3878_); +if (v_isSharedCheck_3917_ == 0) { -v___x_3903_ = v___x_3869_; -v_isShared_3904_ = v_isSharedCheck_3908_; -goto v_resetjp_3902_; +v___x_3912_ = v___x_3878_; +v_isShared_3913_ = v_isSharedCheck_3917_; +goto v_resetjp_3911_; } else { -lean_inc(v_a_3901_); -lean_dec(v___x_3869_); -v___x_3903_ = lean_box(0); -v_isShared_3904_ = v_isSharedCheck_3908_; -goto v_resetjp_3902_; +lean_inc(v_a_3910_); +lean_dec(v___x_3878_); +v___x_3912_ = lean_box(0); +v_isShared_3913_ = v_isSharedCheck_3917_; +goto v_resetjp_3911_; } -v_resetjp_3902_: +v_resetjp_3911_: { -lean_object* v___x_3906_; -if (v_isShared_3904_ == 0) +lean_object* v___x_3915_; +if (v_isShared_3913_ == 0) { -v___x_3906_ = v___x_3903_; -goto v_reusejp_3905_; +v___x_3915_ = v___x_3912_; +goto v_reusejp_3914_; } else { -lean_object* v_reuseFailAlloc_3907_; -v_reuseFailAlloc_3907_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3907_, 0, v_a_3901_); -v___x_3906_ = v_reuseFailAlloc_3907_; -goto v_reusejp_3905_; +lean_object* v_reuseFailAlloc_3916_; +v_reuseFailAlloc_3916_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3916_, 0, v_a_3910_); +v___x_3915_ = v_reuseFailAlloc_3916_; +goto v_reusejp_3914_; } -v_reusejp_3905_: +v_reusejp_3914_: { -return v___x_3906_; +return v___x_3915_; } } } } else { -v___y_2546_ = v_a_2292_; -v___y_2547_ = v_a_2293_; -v___y_2548_ = v_a_2294_; -v___y_2549_ = v_a_2295_; -v___y_2550_ = v_a_2296_; v___y_2551_ = v_a_2297_; -goto v___jp_2545_; +v___y_2552_ = v_a_2298_; +v___y_2553_ = v_a_2299_; +v___y_2554_ = v_a_2300_; +v___y_2555_ = v_a_2301_; +v___y_2556_ = v_a_2302_; +goto v___jp_2550_; } } else { -lean_dec(v___x_3860_); -v___y_2546_ = v_a_2292_; -v___y_2547_ = v_a_2293_; -v___y_2548_ = v_a_2294_; -v___y_2549_ = v_a_2295_; -v___y_2550_ = v_a_2296_; +lean_dec(v___x_3869_); v___y_2551_ = v_a_2297_; -goto v___jp_2545_; +v___y_2552_ = v_a_2298_; +v___y_2553_ = v_a_2299_; +v___y_2554_ = v_a_2300_; +v___y_2555_ = v_a_2301_; +v___y_2556_ = v_a_2302_; +goto v___jp_2550_; } } } else { -lean_object* v___x_3909_; lean_object* v___x_3910_; uint8_t v___x_3911_; -v___x_3909_ = lean_unsigned_to_nat(1u); -v___x_3910_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3909_); -v___x_3911_ = l_Lean_Syntax_isNone(v___x_3910_); -if (v___x_3911_ == 0) +lean_object* v___x_3918_; lean_object* v___x_3919_; uint8_t v___x_3920_; +v___x_3918_ = lean_unsigned_to_nat(1u); +v___x_3919_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3918_); +v___x_3920_ = l_Lean_Syntax_isNone(v___x_3919_); +if (v___x_3920_ == 0) { -uint8_t v___x_3912_; -v___x_3912_ = l_Lean_Syntax_matchesNull(v___x_3910_, v___x_3909_); -if (v___x_3912_ == 0) +uint8_t v___x_3921_; +v___x_3921_ = l_Lean_Syntax_matchesNull(v___x_3919_, v___x_3918_); +if (v___x_3921_ == 0) { -lean_object* v___x_3913_; lean_object* v_env_3914_; lean_object* v___x_3915_; lean_object* v___x_3916_; lean_object* v___x_3917_; lean_object* v___x_3918_; lean_object* v___x_3919_; -v___x_3913_ = lean_st_ref_get(v_a_2297_); -v_env_3914_ = lean_ctor_get(v___x_3913_, 0); -lean_inc_ref(v_env_3914_); -lean_dec(v___x_3913_); -lean_inc_n(v_stx_2291_, 2); -v___x_3915_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3916_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3917_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3916_, v_env_3914_, v___x_3915_); -v___x_3918_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3919_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3917_, v___x_3918_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3917_); -if (lean_obj_tag(v___x_3919_) == 0) +lean_object* v___x_3922_; lean_object* v_env_3923_; lean_object* v___x_3924_; lean_object* v___x_3925_; lean_object* v___x_3926_; lean_object* v___x_3927_; lean_object* v___x_3928_; +v___x_3922_ = lean_st_ref_get(v_a_2302_); +v_env_3923_ = lean_ctor_get(v___x_3922_, 0); +lean_inc_ref(v_env_3923_); +lean_dec(v___x_3922_); +lean_inc_n(v_stx_2296_, 2); +v___x_3924_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3925_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3926_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3925_, v_env_3923_, v___x_3924_); +v___x_3927_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3928_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3926_, v___x_3927_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3926_); +if (lean_obj_tag(v___x_3928_) == 0) { -lean_object* v_a_3920_; lean_object* v___x_3922_; uint8_t v_isShared_3923_; uint8_t v_isSharedCheck_3950_; -v_a_3920_ = lean_ctor_get(v___x_3919_, 0); -v_isSharedCheck_3950_ = !lean_is_exclusive(v___x_3919_); -if (v_isSharedCheck_3950_ == 0) +lean_object* v_a_3929_; lean_object* v___x_3931_; uint8_t v_isShared_3932_; uint8_t v_isSharedCheck_3959_; +v_a_3929_ = lean_ctor_get(v___x_3928_, 0); +v_isSharedCheck_3959_ = !lean_is_exclusive(v___x_3928_); +if (v_isSharedCheck_3959_ == 0) { -v___x_3922_ = v___x_3919_; -v_isShared_3923_ = v_isSharedCheck_3950_; -goto v_resetjp_3921_; +v___x_3931_ = v___x_3928_; +v_isShared_3932_ = v_isSharedCheck_3959_; +goto v_resetjp_3930_; } else { -lean_inc(v_a_3920_); -lean_dec(v___x_3919_); -v___x_3922_ = lean_box(0); -v_isShared_3923_ = v_isSharedCheck_3950_; -goto v_resetjp_3921_; +lean_inc(v_a_3929_); +lean_dec(v___x_3928_); +v___x_3931_ = lean_box(0); +v_isShared_3932_ = v_isSharedCheck_3959_; +goto v_resetjp_3930_; } -v_resetjp_3921_: +v_resetjp_3930_: { -lean_object* v_fst_3924_; lean_object* v___x_3926_; uint8_t v_isShared_3927_; uint8_t v_isSharedCheck_3948_; -v_fst_3924_ = lean_ctor_get(v_a_3920_, 0); -v_isSharedCheck_3948_ = !lean_is_exclusive(v_a_3920_); -if (v_isSharedCheck_3948_ == 0) +lean_object* v_fst_3933_; lean_object* v___x_3935_; uint8_t v_isShared_3936_; uint8_t v_isSharedCheck_3957_; +v_fst_3933_ = lean_ctor_get(v_a_3929_, 0); +v_isSharedCheck_3957_ = !lean_is_exclusive(v_a_3929_); +if (v_isSharedCheck_3957_ == 0) { -lean_object* v_unused_3949_; -v_unused_3949_ = lean_ctor_get(v_a_3920_, 1); -lean_dec(v_unused_3949_); -v___x_3926_ = v_a_3920_; -v_isShared_3927_ = v_isSharedCheck_3948_; -goto v_resetjp_3925_; +lean_object* v_unused_3958_; +v_unused_3958_ = lean_ctor_get(v_a_3929_, 1); +lean_dec(v_unused_3958_); +v___x_3935_ = v_a_3929_; +v_isShared_3936_ = v_isSharedCheck_3957_; +goto v_resetjp_3934_; } else { -lean_inc(v_fst_3924_); -lean_dec(v_a_3920_); -v___x_3926_ = lean_box(0); -v_isShared_3927_ = v_isSharedCheck_3948_; -goto v_resetjp_3925_; +lean_inc(v_fst_3933_); +lean_dec(v_a_3929_); +v___x_3935_ = lean_box(0); +v_isShared_3936_ = v_isSharedCheck_3957_; +goto v_resetjp_3934_; } -v_resetjp_3925_: +v_resetjp_3934_: { -if (lean_obj_tag(v_fst_3924_) == 0) +if (lean_obj_tag(v_fst_3933_) == 0) { -lean_object* v___x_3928_; lean_object* v___x_3929_; lean_object* v___x_3931_; -lean_del_object(v___x_3922_); -v___x_3928_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3929_ = l_Lean_MessageData_ofName(v___x_3915_); -lean_inc_ref(v___x_3929_); -if (v_isShared_3927_ == 0) +lean_object* v___x_3937_; lean_object* v___x_3938_; lean_object* v___x_3940_; +lean_del_object(v___x_3931_); +v___x_3937_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3938_ = l_Lean_MessageData_ofName(v___x_3924_); +lean_inc_ref(v___x_3938_); +if (v_isShared_3936_ == 0) { -lean_ctor_set_tag(v___x_3926_, 7); -lean_ctor_set(v___x_3926_, 1, v___x_3929_); -lean_ctor_set(v___x_3926_, 0, v___x_3928_); -v___x_3931_ = v___x_3926_; -goto v_reusejp_3930_; +lean_ctor_set_tag(v___x_3935_, 7); +lean_ctor_set(v___x_3935_, 1, v___x_3938_); +lean_ctor_set(v___x_3935_, 0, v___x_3937_); +v___x_3940_ = v___x_3935_; +goto v_reusejp_3939_; } else { -lean_object* v_reuseFailAlloc_3943_; -v_reuseFailAlloc_3943_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3943_, 0, v___x_3928_); -lean_ctor_set(v_reuseFailAlloc_3943_, 1, v___x_3929_); -v___x_3931_ = v_reuseFailAlloc_3943_; -goto v_reusejp_3930_; +lean_object* v_reuseFailAlloc_3952_; +v_reuseFailAlloc_3952_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3952_, 0, v___x_3937_); +lean_ctor_set(v_reuseFailAlloc_3952_, 1, v___x_3938_); +v___x_3940_ = v_reuseFailAlloc_3952_; +goto v_reusejp_3939_; } -v_reusejp_3930_: +v_reusejp_3939_: { -lean_object* v___x_3932_; lean_object* v___x_3933_; lean_object* v___x_3934_; lean_object* v___x_3935_; lean_object* v___x_3936_; lean_object* v___x_3937_; lean_object* v___x_3938_; lean_object* v___x_3939_; lean_object* v___x_3940_; lean_object* v___x_3941_; lean_object* v___x_3942_; -v___x_3932_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3933_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3933_, 0, v___x_3931_); -lean_ctor_set(v___x_3933_, 1, v___x_3932_); -v___x_3934_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3935_ = l_Lean_indentD(v___x_3934_); -v___x_3936_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3936_, 0, v___x_3933_); -lean_ctor_set(v___x_3936_, 1, v___x_3935_); -v___x_3937_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3938_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3938_, 0, v___x_3936_); -lean_ctor_set(v___x_3938_, 1, v___x_3937_); -v___x_3939_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3939_, 0, v___x_3938_); -lean_ctor_set(v___x_3939_, 1, v___x_3929_); -v___x_3940_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3941_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3941_, 0, v___x_3939_); -lean_ctor_set(v___x_3941_, 1, v___x_3940_); -v___x_3942_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3941_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3942_; +lean_object* v___x_3941_; lean_object* v___x_3942_; lean_object* v___x_3943_; lean_object* v___x_3944_; lean_object* v___x_3945_; lean_object* v___x_3946_; lean_object* v___x_3947_; lean_object* v___x_3948_; lean_object* v___x_3949_; lean_object* v___x_3950_; lean_object* v___x_3951_; +v___x_3941_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3942_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3942_, 0, v___x_3940_); +lean_ctor_set(v___x_3942_, 1, v___x_3941_); +v___x_3943_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3944_ = l_Lean_indentD(v___x_3943_); +v___x_3945_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3945_, 0, v___x_3942_); +lean_ctor_set(v___x_3945_, 1, v___x_3944_); +v___x_3946_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3947_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3947_, 0, v___x_3945_); +lean_ctor_set(v___x_3947_, 1, v___x_3946_); +v___x_3948_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3948_, 0, v___x_3947_); +lean_ctor_set(v___x_3948_, 1, v___x_3938_); +v___x_3949_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_3950_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3950_, 0, v___x_3948_); +lean_ctor_set(v___x_3950_, 1, v___x_3949_); +v___x_3951_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3950_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_3951_; } } else { -lean_object* v_val_3944_; lean_object* v___x_3946_; -lean_del_object(v___x_3926_); -lean_dec(v___x_3915_); -lean_dec(v_stx_2291_); -v_val_3944_ = lean_ctor_get(v_fst_3924_, 0); -lean_inc(v_val_3944_); -lean_dec_ref(v_fst_3924_); -if (v_isShared_3923_ == 0) +lean_object* v_val_3953_; lean_object* v___x_3955_; +lean_del_object(v___x_3935_); +lean_dec(v___x_3924_); +lean_dec(v_stx_2296_); +v_val_3953_ = lean_ctor_get(v_fst_3933_, 0); +lean_inc(v_val_3953_); +lean_dec_ref(v_fst_3933_); +if (v_isShared_3932_ == 0) { -lean_ctor_set(v___x_3922_, 0, v_val_3944_); -v___x_3946_ = v___x_3922_; -goto v_reusejp_3945_; +lean_ctor_set(v___x_3931_, 0, v_val_3953_); +v___x_3955_ = v___x_3931_; +goto v_reusejp_3954_; } else { -lean_object* v_reuseFailAlloc_3947_; -v_reuseFailAlloc_3947_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3947_, 0, v_val_3944_); -v___x_3946_ = v_reuseFailAlloc_3947_; -goto v_reusejp_3945_; +lean_object* v_reuseFailAlloc_3956_; +v_reuseFailAlloc_3956_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3956_, 0, v_val_3953_); +v___x_3955_ = v_reuseFailAlloc_3956_; +goto v_reusejp_3954_; } -v_reusejp_3945_: +v_reusejp_3954_: { -return v___x_3946_; +return v___x_3955_; } } } @@ -11833,212 +11867,212 @@ return v___x_3946_; } else { -lean_object* v_a_3951_; lean_object* v___x_3953_; uint8_t v_isShared_3954_; uint8_t v_isSharedCheck_3958_; -lean_dec(v___x_3915_); -lean_dec(v_stx_2291_); -v_a_3951_ = lean_ctor_get(v___x_3919_, 0); -v_isSharedCheck_3958_ = !lean_is_exclusive(v___x_3919_); -if (v_isSharedCheck_3958_ == 0) +lean_object* v_a_3960_; lean_object* v___x_3962_; uint8_t v_isShared_3963_; uint8_t v_isSharedCheck_3967_; +lean_dec(v___x_3924_); +lean_dec(v_stx_2296_); +v_a_3960_ = lean_ctor_get(v___x_3928_, 0); +v_isSharedCheck_3967_ = !lean_is_exclusive(v___x_3928_); +if (v_isSharedCheck_3967_ == 0) { -v___x_3953_ = v___x_3919_; -v_isShared_3954_ = v_isSharedCheck_3958_; -goto v_resetjp_3952_; +v___x_3962_ = v___x_3928_; +v_isShared_3963_ = v_isSharedCheck_3967_; +goto v_resetjp_3961_; } else { -lean_inc(v_a_3951_); -lean_dec(v___x_3919_); -v___x_3953_ = lean_box(0); -v_isShared_3954_ = v_isSharedCheck_3958_; -goto v_resetjp_3952_; +lean_inc(v_a_3960_); +lean_dec(v___x_3928_); +v___x_3962_ = lean_box(0); +v_isShared_3963_ = v_isSharedCheck_3967_; +goto v_resetjp_3961_; } -v_resetjp_3952_: +v_resetjp_3961_: { -lean_object* v___x_3956_; -if (v_isShared_3954_ == 0) +lean_object* v___x_3965_; +if (v_isShared_3963_ == 0) { -v___x_3956_ = v___x_3953_; -goto v_reusejp_3955_; +v___x_3965_ = v___x_3962_; +goto v_reusejp_3964_; } else { -lean_object* v_reuseFailAlloc_3957_; -v_reuseFailAlloc_3957_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3957_, 0, v_a_3951_); -v___x_3956_ = v_reuseFailAlloc_3957_; -goto v_reusejp_3955_; +lean_object* v_reuseFailAlloc_3966_; +v_reuseFailAlloc_3966_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3966_, 0, v_a_3960_); +v___x_3965_ = v_reuseFailAlloc_3966_; +goto v_reusejp_3964_; } -v_reusejp_3955_: +v_reusejp_3964_: { -return v___x_3956_; +return v___x_3965_; } } } } else { -v___y_2345_ = v_a_2292_; -v___y_2346_ = v_a_2293_; -v___y_2347_ = v_a_2294_; -v___y_2348_ = v_a_2295_; -v___y_2349_ = v_a_2296_; v___y_2350_ = v_a_2297_; -goto v___jp_2344_; +v___y_2351_ = v_a_2298_; +v___y_2352_ = v_a_2299_; +v___y_2353_ = v_a_2300_; +v___y_2354_ = v_a_2301_; +v___y_2355_ = v_a_2302_; +goto v___jp_2349_; } } else { -lean_dec(v___x_3910_); -v___y_2345_ = v_a_2292_; -v___y_2346_ = v_a_2293_; -v___y_2347_ = v_a_2294_; -v___y_2348_ = v_a_2295_; -v___y_2349_ = v_a_2296_; +lean_dec(v___x_3919_); v___y_2350_ = v_a_2297_; -goto v___jp_2344_; +v___y_2351_ = v_a_2298_; +v___y_2352_ = v_a_2299_; +v___y_2353_ = v_a_2300_; +v___y_2354_ = v_a_2301_; +v___y_2355_ = v_a_2302_; +goto v___jp_2349_; } } -v___jp_2545_: +v___jp_2550_: { -lean_object* v___x_2552_; lean_object* v___x_2553_; lean_object* v___x_2554_; uint8_t v___x_2555_; -v___x_2552_ = lean_unsigned_to_nat(2u); -v___x_2553_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2552_); -v___x_2554_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); -v___x_2555_ = l_Lean_Syntax_isOfKind(v___x_2553_, v___x_2554_); -if (v___x_2555_ == 0) +lean_object* v___x_2557_; lean_object* v___x_2558_; lean_object* v___x_2559_; uint8_t v___x_2560_; +v___x_2557_ = lean_unsigned_to_nat(2u); +v___x_2558_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2557_); +v___x_2559_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); +v___x_2560_ = l_Lean_Syntax_isOfKind(v___x_2558_, v___x_2559_); +if (v___x_2560_ == 0) { -lean_object* v___x_2556_; lean_object* v_env_2557_; lean_object* v___x_2558_; lean_object* v___x_2559_; lean_object* v___x_2560_; lean_object* v___x_2561_; lean_object* v___x_2562_; -v___x_2556_ = lean_st_ref_get(v___y_2551_); -v_env_2557_ = lean_ctor_get(v___x_2556_, 0); -lean_inc_ref(v_env_2557_); -lean_dec(v___x_2556_); -lean_inc_n(v_stx_2291_, 2); -v___x_2558_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2559_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2560_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2559_, v_env_2557_, v___x_2558_); -v___x_2561_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2562_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2560_, v___x_2561_, v___y_2546_, v___y_2547_, v___y_2548_, v___y_2549_, v___y_2550_, v___y_2551_); -lean_dec(v___x_2560_); -if (lean_obj_tag(v___x_2562_) == 0) +lean_object* v___x_2561_; lean_object* v_env_2562_; lean_object* v___x_2563_; lean_object* v___x_2564_; lean_object* v___x_2565_; lean_object* v___x_2566_; lean_object* v___x_2567_; +v___x_2561_ = lean_st_ref_get(v___y_2556_); +v_env_2562_ = lean_ctor_get(v___x_2561_, 0); +lean_inc_ref(v_env_2562_); +lean_dec(v___x_2561_); +lean_inc_n(v_stx_2296_, 2); +v___x_2563_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2564_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2565_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2564_, v_env_2562_, v___x_2563_); +v___x_2566_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2567_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2565_, v___x_2566_, v___y_2551_, v___y_2552_, v___y_2553_, v___y_2554_, v___y_2555_, v___y_2556_); +lean_dec(v___x_2565_); +if (lean_obj_tag(v___x_2567_) == 0) { -lean_object* v_a_2563_; lean_object* v___x_2565_; uint8_t v_isShared_2566_; uint8_t v_isSharedCheck_2593_; -v_a_2563_ = lean_ctor_get(v___x_2562_, 0); -v_isSharedCheck_2593_ = !lean_is_exclusive(v___x_2562_); -if (v_isSharedCheck_2593_ == 0) +lean_object* v_a_2568_; lean_object* v___x_2570_; uint8_t v_isShared_2571_; uint8_t v_isSharedCheck_2598_; +v_a_2568_ = lean_ctor_get(v___x_2567_, 0); +v_isSharedCheck_2598_ = !lean_is_exclusive(v___x_2567_); +if (v_isSharedCheck_2598_ == 0) { -v___x_2565_ = v___x_2562_; -v_isShared_2566_ = v_isSharedCheck_2593_; -goto v_resetjp_2564_; +v___x_2570_ = v___x_2567_; +v_isShared_2571_ = v_isSharedCheck_2598_; +goto v_resetjp_2569_; } else { -lean_inc(v_a_2563_); -lean_dec(v___x_2562_); -v___x_2565_ = lean_box(0); -v_isShared_2566_ = v_isSharedCheck_2593_; -goto v_resetjp_2564_; +lean_inc(v_a_2568_); +lean_dec(v___x_2567_); +v___x_2570_ = lean_box(0); +v_isShared_2571_ = v_isSharedCheck_2598_; +goto v_resetjp_2569_; } -v_resetjp_2564_: +v_resetjp_2569_: { -lean_object* v_fst_2567_; lean_object* v___x_2569_; uint8_t v_isShared_2570_; uint8_t v_isSharedCheck_2591_; -v_fst_2567_ = lean_ctor_get(v_a_2563_, 0); -v_isSharedCheck_2591_ = !lean_is_exclusive(v_a_2563_); -if (v_isSharedCheck_2591_ == 0) +lean_object* v_fst_2572_; lean_object* v___x_2574_; uint8_t v_isShared_2575_; uint8_t v_isSharedCheck_2596_; +v_fst_2572_ = lean_ctor_get(v_a_2568_, 0); +v_isSharedCheck_2596_ = !lean_is_exclusive(v_a_2568_); +if (v_isSharedCheck_2596_ == 0) { -lean_object* v_unused_2592_; -v_unused_2592_ = lean_ctor_get(v_a_2563_, 1); -lean_dec(v_unused_2592_); -v___x_2569_ = v_a_2563_; -v_isShared_2570_ = v_isSharedCheck_2591_; -goto v_resetjp_2568_; +lean_object* v_unused_2597_; +v_unused_2597_ = lean_ctor_get(v_a_2568_, 1); +lean_dec(v_unused_2597_); +v___x_2574_ = v_a_2568_; +v_isShared_2575_ = v_isSharedCheck_2596_; +goto v_resetjp_2573_; } else { -lean_inc(v_fst_2567_); -lean_dec(v_a_2563_); -v___x_2569_ = lean_box(0); -v_isShared_2570_ = v_isSharedCheck_2591_; -goto v_resetjp_2568_; +lean_inc(v_fst_2572_); +lean_dec(v_a_2568_); +v___x_2574_ = lean_box(0); +v_isShared_2575_ = v_isSharedCheck_2596_; +goto v_resetjp_2573_; } -v_resetjp_2568_: +v_resetjp_2573_: { -if (lean_obj_tag(v_fst_2567_) == 0) +if (lean_obj_tag(v_fst_2572_) == 0) { -lean_object* v___x_2571_; lean_object* v___x_2572_; lean_object* v___x_2574_; -lean_del_object(v___x_2565_); -v___x_2571_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2572_ = l_Lean_MessageData_ofName(v___x_2558_); -lean_inc_ref(v___x_2572_); -if (v_isShared_2570_ == 0) +lean_object* v___x_2576_; lean_object* v___x_2577_; lean_object* v___x_2579_; +lean_del_object(v___x_2570_); +v___x_2576_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2577_ = l_Lean_MessageData_ofName(v___x_2563_); +lean_inc_ref(v___x_2577_); +if (v_isShared_2575_ == 0) { -lean_ctor_set_tag(v___x_2569_, 7); -lean_ctor_set(v___x_2569_, 1, v___x_2572_); -lean_ctor_set(v___x_2569_, 0, v___x_2571_); -v___x_2574_ = v___x_2569_; -goto v_reusejp_2573_; +lean_ctor_set_tag(v___x_2574_, 7); +lean_ctor_set(v___x_2574_, 1, v___x_2577_); +lean_ctor_set(v___x_2574_, 0, v___x_2576_); +v___x_2579_ = v___x_2574_; +goto v_reusejp_2578_; } else { -lean_object* v_reuseFailAlloc_2586_; -v_reuseFailAlloc_2586_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2586_, 0, v___x_2571_); -lean_ctor_set(v_reuseFailAlloc_2586_, 1, v___x_2572_); -v___x_2574_ = v_reuseFailAlloc_2586_; -goto v_reusejp_2573_; +lean_object* v_reuseFailAlloc_2591_; +v_reuseFailAlloc_2591_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2591_, 0, v___x_2576_); +lean_ctor_set(v_reuseFailAlloc_2591_, 1, v___x_2577_); +v___x_2579_ = v_reuseFailAlloc_2591_; +goto v_reusejp_2578_; } -v_reusejp_2573_: +v_reusejp_2578_: { -lean_object* v___x_2575_; lean_object* v___x_2576_; lean_object* v___x_2577_; lean_object* v___x_2578_; lean_object* v___x_2579_; lean_object* v___x_2580_; lean_object* v___x_2581_; lean_object* v___x_2582_; lean_object* v___x_2583_; lean_object* v___x_2584_; lean_object* v___x_2585_; -v___x_2575_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2576_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2576_, 0, v___x_2574_); -lean_ctor_set(v___x_2576_, 1, v___x_2575_); -v___x_2577_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2578_ = l_Lean_indentD(v___x_2577_); -v___x_2579_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2579_, 0, v___x_2576_); -lean_ctor_set(v___x_2579_, 1, v___x_2578_); -v___x_2580_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2580_; lean_object* v___x_2581_; lean_object* v___x_2582_; lean_object* v___x_2583_; lean_object* v___x_2584_; lean_object* v___x_2585_; lean_object* v___x_2586_; lean_object* v___x_2587_; lean_object* v___x_2588_; lean_object* v___x_2589_; lean_object* v___x_2590_; +v___x_2580_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2581_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2581_, 0, v___x_2579_); lean_ctor_set(v___x_2581_, 1, v___x_2580_); -v___x_2582_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2582_, 0, v___x_2581_); -lean_ctor_set(v___x_2582_, 1, v___x_2572_); -v___x_2583_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2582_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2583_ = l_Lean_indentD(v___x_2582_); v___x_2584_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2584_, 0, v___x_2582_); +lean_ctor_set(v___x_2584_, 0, v___x_2581_); lean_ctor_set(v___x_2584_, 1, v___x_2583_); -v___x_2585_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2584_, v___y_2546_, v___y_2547_, v___y_2548_, v___y_2549_, v___y_2550_, v___y_2551_); -return v___x_2585_; +v___x_2585_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2586_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2586_, 0, v___x_2584_); +lean_ctor_set(v___x_2586_, 1, v___x_2585_); +v___x_2587_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2587_, 0, v___x_2586_); +lean_ctor_set(v___x_2587_, 1, v___x_2577_); +v___x_2588_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2589_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2589_, 0, v___x_2587_); +lean_ctor_set(v___x_2589_, 1, v___x_2588_); +v___x_2590_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2589_, v___y_2551_, v___y_2552_, v___y_2553_, v___y_2554_, v___y_2555_, v___y_2556_); +return v___x_2590_; } } else { -lean_object* v_val_2587_; lean_object* v___x_2589_; -lean_del_object(v___x_2569_); -lean_dec(v___x_2558_); -lean_dec(v_stx_2291_); -v_val_2587_ = lean_ctor_get(v_fst_2567_, 0); -lean_inc(v_val_2587_); -lean_dec_ref(v_fst_2567_); -if (v_isShared_2566_ == 0) +lean_object* v_val_2592_; lean_object* v___x_2594_; +lean_del_object(v___x_2574_); +lean_dec(v___x_2563_); +lean_dec(v_stx_2296_); +v_val_2592_ = lean_ctor_get(v_fst_2572_, 0); +lean_inc(v_val_2592_); +lean_dec_ref(v_fst_2572_); +if (v_isShared_2571_ == 0) { -lean_ctor_set(v___x_2565_, 0, v_val_2587_); -v___x_2589_ = v___x_2565_; -goto v_reusejp_2588_; +lean_ctor_set(v___x_2570_, 0, v_val_2592_); +v___x_2594_ = v___x_2570_; +goto v_reusejp_2593_; } else { -lean_object* v_reuseFailAlloc_2590_; -v_reuseFailAlloc_2590_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2590_, 0, v_val_2587_); -v___x_2589_ = v_reuseFailAlloc_2590_; -goto v_reusejp_2588_; +lean_object* v_reuseFailAlloc_2595_; +v_reuseFailAlloc_2595_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2595_, 0, v_val_2592_); +v___x_2594_ = v_reuseFailAlloc_2595_; +goto v_reusejp_2593_; } -v_reusejp_2588_: +v_reusejp_2593_: { -return v___x_2589_; +return v___x_2594_; } } } @@ -12046,200 +12080,200 @@ return v___x_2589_; } else { -lean_object* v_a_2594_; lean_object* v___x_2596_; uint8_t v_isShared_2597_; uint8_t v_isSharedCheck_2601_; -lean_dec(v___x_2558_); -lean_dec(v_stx_2291_); -v_a_2594_ = lean_ctor_get(v___x_2562_, 0); -v_isSharedCheck_2601_ = !lean_is_exclusive(v___x_2562_); -if (v_isSharedCheck_2601_ == 0) +lean_object* v_a_2599_; lean_object* v___x_2601_; uint8_t v_isShared_2602_; uint8_t v_isSharedCheck_2606_; +lean_dec(v___x_2563_); +lean_dec(v_stx_2296_); +v_a_2599_ = lean_ctor_get(v___x_2567_, 0); +v_isSharedCheck_2606_ = !lean_is_exclusive(v___x_2567_); +if (v_isSharedCheck_2606_ == 0) { -v___x_2596_ = v___x_2562_; -v_isShared_2597_ = v_isSharedCheck_2601_; -goto v_resetjp_2595_; +v___x_2601_ = v___x_2567_; +v_isShared_2602_ = v_isSharedCheck_2606_; +goto v_resetjp_2600_; } else { -lean_inc(v_a_2594_); -lean_dec(v___x_2562_); -v___x_2596_ = lean_box(0); -v_isShared_2597_ = v_isSharedCheck_2601_; -goto v_resetjp_2595_; +lean_inc(v_a_2599_); +lean_dec(v___x_2567_); +v___x_2601_ = lean_box(0); +v_isShared_2602_ = v_isSharedCheck_2606_; +goto v_resetjp_2600_; } -v_resetjp_2595_: +v_resetjp_2600_: { -lean_object* v___x_2599_; -if (v_isShared_2597_ == 0) +lean_object* v___x_2604_; +if (v_isShared_2602_ == 0) { -v___x_2599_ = v___x_2596_; -goto v_reusejp_2598_; +v___x_2604_ = v___x_2601_; +goto v_reusejp_2603_; } else { -lean_object* v_reuseFailAlloc_2600_; -v_reuseFailAlloc_2600_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2600_, 0, v_a_2594_); -v___x_2599_ = v_reuseFailAlloc_2600_; -goto v_reusejp_2598_; +lean_object* v_reuseFailAlloc_2605_; +v_reuseFailAlloc_2605_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2605_, 0, v_a_2599_); +v___x_2604_ = v_reuseFailAlloc_2605_; +goto v_reusejp_2603_; } -v_reusejp_2598_: +v_reusejp_2603_: { -return v___x_2599_; -} -} -} -} -else -{ -lean_object* v___x_2602_; lean_object* v___x_2603_; lean_object* v___x_2604_; -v___x_2602_ = lean_unsigned_to_nat(3u); -v___x_2603_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2602_); -lean_dec(v_stx_2291_); -v___x_2604_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2544_, v___x_2603_, v___y_2546_, v___y_2547_, v___y_2548_, v___y_2549_, v___y_2550_, v___y_2551_); return v___x_2604_; } } } -else -{ -lean_object* v___x_3959_; lean_object* v___x_3960_; lean_object* v___x_3961_; uint8_t v___x_3962_; -v___x_3959_ = lean_unsigned_to_nat(0u); -v___x_3960_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_3959_); -v___x_3961_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___closed__1)); -v___x_3962_ = l_Lean_Syntax_isOfKind(v___x_3960_, v___x_3961_); -if (v___x_3962_ == 0) -{ -lean_object* v___x_3963_; lean_object* v_env_3964_; lean_object* v___x_3965_; lean_object* v___x_3966_; lean_object* v___x_3967_; lean_object* v___x_3968_; lean_object* v___x_3969_; -v___x_3963_ = lean_st_ref_get(v_a_2297_); -v_env_3964_ = lean_ctor_get(v___x_3963_, 0); -lean_inc_ref(v_env_3964_); -lean_dec(v___x_3963_); -lean_inc_n(v_stx_2291_, 2); -v___x_3965_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_3966_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_3967_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3966_, v_env_3964_, v___x_3965_); -v___x_3968_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_3969_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_3967_, v___x_3968_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_3967_); -if (lean_obj_tag(v___x_3969_) == 0) -{ -lean_object* v_a_3970_; lean_object* v___x_3972_; uint8_t v_isShared_3973_; uint8_t v_isSharedCheck_4000_; -v_a_3970_ = lean_ctor_get(v___x_3969_, 0); -v_isSharedCheck_4000_ = !lean_is_exclusive(v___x_3969_); -if (v_isSharedCheck_4000_ == 0) -{ -v___x_3972_ = v___x_3969_; -v_isShared_3973_ = v_isSharedCheck_4000_; -goto v_resetjp_3971_; } else { -lean_inc(v_a_3970_); -lean_dec(v___x_3969_); -v___x_3972_ = lean_box(0); -v_isShared_3973_ = v_isSharedCheck_4000_; -goto v_resetjp_3971_; +lean_object* v___x_2607_; lean_object* v___x_2608_; lean_object* v___x_2609_; +v___x_2607_ = lean_unsigned_to_nat(3u); +v___x_2608_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2607_); +lean_dec(v_stx_2296_); +v___x_2609_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v___x_2549_, v___x_2608_, v___y_2551_, v___y_2552_, v___y_2553_, v___y_2554_, v___y_2555_, v___y_2556_); +return v___x_2609_; } -v_resetjp_3971_: -{ -lean_object* v_fst_3974_; lean_object* v___x_3976_; uint8_t v_isShared_3977_; uint8_t v_isSharedCheck_3998_; -v_fst_3974_ = lean_ctor_get(v_a_3970_, 0); -v_isSharedCheck_3998_ = !lean_is_exclusive(v_a_3970_); -if (v_isSharedCheck_3998_ == 0) -{ -lean_object* v_unused_3999_; -v_unused_3999_ = lean_ctor_get(v_a_3970_, 1); -lean_dec(v_unused_3999_); -v___x_3976_ = v_a_3970_; -v_isShared_3977_ = v_isSharedCheck_3998_; -goto v_resetjp_3975_; -} -else -{ -lean_inc(v_fst_3974_); -lean_dec(v_a_3970_); -v___x_3976_ = lean_box(0); -v_isShared_3977_ = v_isSharedCheck_3998_; -goto v_resetjp_3975_; -} -v_resetjp_3975_: -{ -if (lean_obj_tag(v_fst_3974_) == 0) -{ -lean_object* v___x_3978_; lean_object* v___x_3979_; lean_object* v___x_3981_; -lean_del_object(v___x_3972_); -v___x_3978_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_3979_ = l_Lean_MessageData_ofName(v___x_3965_); -lean_inc_ref(v___x_3979_); -if (v_isShared_3977_ == 0) -{ -lean_ctor_set_tag(v___x_3976_, 7); -lean_ctor_set(v___x_3976_, 1, v___x_3979_); -lean_ctor_set(v___x_3976_, 0, v___x_3978_); -v___x_3981_ = v___x_3976_; -goto v_reusejp_3980_; -} -else -{ -lean_object* v_reuseFailAlloc_3993_; -v_reuseFailAlloc_3993_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3993_, 0, v___x_3978_); -lean_ctor_set(v_reuseFailAlloc_3993_, 1, v___x_3979_); -v___x_3981_ = v_reuseFailAlloc_3993_; -goto v_reusejp_3980_; -} -v_reusejp_3980_: -{ -lean_object* v___x_3982_; lean_object* v___x_3983_; lean_object* v___x_3984_; lean_object* v___x_3985_; lean_object* v___x_3986_; lean_object* v___x_3987_; lean_object* v___x_3988_; lean_object* v___x_3989_; lean_object* v___x_3990_; lean_object* v___x_3991_; lean_object* v___x_3992_; -v___x_3982_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_3983_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3983_, 0, v___x_3981_); -lean_ctor_set(v___x_3983_, 1, v___x_3982_); -v___x_3984_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_3985_ = l_Lean_indentD(v___x_3984_); -v___x_3986_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3986_, 0, v___x_3983_); -lean_ctor_set(v___x_3986_, 1, v___x_3985_); -v___x_3987_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_3988_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3988_, 0, v___x_3986_); -lean_ctor_set(v___x_3988_, 1, v___x_3987_); -v___x_3989_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3989_, 0, v___x_3988_); -lean_ctor_set(v___x_3989_, 1, v___x_3979_); -v___x_3990_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_3991_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3991_, 0, v___x_3989_); -lean_ctor_set(v___x_3991_, 1, v___x_3990_); -v___x_3992_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_3991_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_3992_; } } else { -lean_object* v_val_3994_; lean_object* v___x_3996_; -lean_del_object(v___x_3976_); -lean_dec(v___x_3965_); -lean_dec(v_stx_2291_); -v_val_3994_ = lean_ctor_get(v_fst_3974_, 0); -lean_inc(v_val_3994_); -lean_dec_ref(v_fst_3974_); -if (v_isShared_3973_ == 0) +lean_object* v___x_3968_; lean_object* v___x_3969_; lean_object* v___x_3970_; uint8_t v___x_3971_; +v___x_3968_ = lean_unsigned_to_nat(0u); +v___x_3969_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_3968_); +v___x_3970_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__13___closed__1)); +v___x_3971_ = l_Lean_Syntax_isOfKind(v___x_3969_, v___x_3970_); +if (v___x_3971_ == 0) { -lean_ctor_set(v___x_3972_, 0, v_val_3994_); -v___x_3996_ = v___x_3972_; -goto v_reusejp_3995_; +lean_object* v___x_3972_; lean_object* v_env_3973_; lean_object* v___x_3974_; lean_object* v___x_3975_; lean_object* v___x_3976_; lean_object* v___x_3977_; lean_object* v___x_3978_; +v___x_3972_ = lean_st_ref_get(v_a_2302_); +v_env_3973_ = lean_ctor_get(v___x_3972_, 0); +lean_inc_ref(v_env_3973_); +lean_dec(v___x_3972_); +lean_inc_n(v_stx_2296_, 2); +v___x_3974_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_3975_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_3976_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_3975_, v_env_3973_, v___x_3974_); +v___x_3977_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_3978_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_3976_, v___x_3977_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_3976_); +if (lean_obj_tag(v___x_3978_) == 0) +{ +lean_object* v_a_3979_; lean_object* v___x_3981_; uint8_t v_isShared_3982_; uint8_t v_isSharedCheck_4009_; +v_a_3979_ = lean_ctor_get(v___x_3978_, 0); +v_isSharedCheck_4009_ = !lean_is_exclusive(v___x_3978_); +if (v_isSharedCheck_4009_ == 0) +{ +v___x_3981_ = v___x_3978_; +v_isShared_3982_ = v_isSharedCheck_4009_; +goto v_resetjp_3980_; } else { -lean_object* v_reuseFailAlloc_3997_; -v_reuseFailAlloc_3997_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3997_, 0, v_val_3994_); -v___x_3996_ = v_reuseFailAlloc_3997_; -goto v_reusejp_3995_; +lean_inc(v_a_3979_); +lean_dec(v___x_3978_); +v___x_3981_ = lean_box(0); +v_isShared_3982_ = v_isSharedCheck_4009_; +goto v_resetjp_3980_; } -v_reusejp_3995_: +v_resetjp_3980_: { -return v___x_3996_; +lean_object* v_fst_3983_; lean_object* v___x_3985_; uint8_t v_isShared_3986_; uint8_t v_isSharedCheck_4007_; +v_fst_3983_ = lean_ctor_get(v_a_3979_, 0); +v_isSharedCheck_4007_ = !lean_is_exclusive(v_a_3979_); +if (v_isSharedCheck_4007_ == 0) +{ +lean_object* v_unused_4008_; +v_unused_4008_ = lean_ctor_get(v_a_3979_, 1); +lean_dec(v_unused_4008_); +v___x_3985_ = v_a_3979_; +v_isShared_3986_ = v_isSharedCheck_4007_; +goto v_resetjp_3984_; +} +else +{ +lean_inc(v_fst_3983_); +lean_dec(v_a_3979_); +v___x_3985_ = lean_box(0); +v_isShared_3986_ = v_isSharedCheck_4007_; +goto v_resetjp_3984_; +} +v_resetjp_3984_: +{ +if (lean_obj_tag(v_fst_3983_) == 0) +{ +lean_object* v___x_3987_; lean_object* v___x_3988_; lean_object* v___x_3990_; +lean_del_object(v___x_3981_); +v___x_3987_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_3988_ = l_Lean_MessageData_ofName(v___x_3974_); +lean_inc_ref(v___x_3988_); +if (v_isShared_3986_ == 0) +{ +lean_ctor_set_tag(v___x_3985_, 7); +lean_ctor_set(v___x_3985_, 1, v___x_3988_); +lean_ctor_set(v___x_3985_, 0, v___x_3987_); +v___x_3990_ = v___x_3985_; +goto v_reusejp_3989_; +} +else +{ +lean_object* v_reuseFailAlloc_4002_; +v_reuseFailAlloc_4002_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4002_, 0, v___x_3987_); +lean_ctor_set(v_reuseFailAlloc_4002_, 1, v___x_3988_); +v___x_3990_ = v_reuseFailAlloc_4002_; +goto v_reusejp_3989_; +} +v_reusejp_3989_: +{ +lean_object* v___x_3991_; lean_object* v___x_3992_; lean_object* v___x_3993_; lean_object* v___x_3994_; lean_object* v___x_3995_; lean_object* v___x_3996_; lean_object* v___x_3997_; lean_object* v___x_3998_; lean_object* v___x_3999_; lean_object* v___x_4000_; lean_object* v___x_4001_; +v___x_3991_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_3992_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3992_, 0, v___x_3990_); +lean_ctor_set(v___x_3992_, 1, v___x_3991_); +v___x_3993_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_3994_ = l_Lean_indentD(v___x_3993_); +v___x_3995_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3995_, 0, v___x_3992_); +lean_ctor_set(v___x_3995_, 1, v___x_3994_); +v___x_3996_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_3997_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3997_, 0, v___x_3995_); +lean_ctor_set(v___x_3997_, 1, v___x_3996_); +v___x_3998_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3998_, 0, v___x_3997_); +lean_ctor_set(v___x_3998_, 1, v___x_3988_); +v___x_3999_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4000_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4000_, 0, v___x_3998_); +lean_ctor_set(v___x_4000_, 1, v___x_3999_); +v___x_4001_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4000_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4001_; +} +} +else +{ +lean_object* v_val_4003_; lean_object* v___x_4005_; +lean_del_object(v___x_3985_); +lean_dec(v___x_3974_); +lean_dec(v_stx_2296_); +v_val_4003_ = lean_ctor_get(v_fst_3983_, 0); +lean_inc(v_val_4003_); +lean_dec_ref(v_fst_3983_); +if (v_isShared_3982_ == 0) +{ +lean_ctor_set(v___x_3981_, 0, v_val_4003_); +v___x_4005_ = v___x_3981_; +goto v_reusejp_4004_; +} +else +{ +lean_object* v_reuseFailAlloc_4006_; +v_reuseFailAlloc_4006_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4006_, 0, v_val_4003_); +v___x_4005_ = v_reuseFailAlloc_4006_; +goto v_reusejp_4004_; +} +v_reusejp_4004_: +{ +return v___x_4005_; } } } @@ -12247,191 +12281,191 @@ return v___x_3996_; } else { -lean_object* v_a_4001_; lean_object* v___x_4003_; uint8_t v_isShared_4004_; uint8_t v_isSharedCheck_4008_; -lean_dec(v___x_3965_); -lean_dec(v_stx_2291_); -v_a_4001_ = lean_ctor_get(v___x_3969_, 0); -v_isSharedCheck_4008_ = !lean_is_exclusive(v___x_3969_); -if (v_isSharedCheck_4008_ == 0) +lean_object* v_a_4010_; lean_object* v___x_4012_; uint8_t v_isShared_4013_; uint8_t v_isSharedCheck_4017_; +lean_dec(v___x_3974_); +lean_dec(v_stx_2296_); +v_a_4010_ = lean_ctor_get(v___x_3978_, 0); +v_isSharedCheck_4017_ = !lean_is_exclusive(v___x_3978_); +if (v_isSharedCheck_4017_ == 0) { -v___x_4003_ = v___x_3969_; -v_isShared_4004_ = v_isSharedCheck_4008_; -goto v_resetjp_4002_; +v___x_4012_ = v___x_3978_; +v_isShared_4013_ = v_isSharedCheck_4017_; +goto v_resetjp_4011_; } else { -lean_inc(v_a_4001_); -lean_dec(v___x_3969_); -v___x_4003_ = lean_box(0); -v_isShared_4004_ = v_isSharedCheck_4008_; -goto v_resetjp_4002_; +lean_inc(v_a_4010_); +lean_dec(v___x_3978_); +v___x_4012_ = lean_box(0); +v_isShared_4013_ = v_isSharedCheck_4017_; +goto v_resetjp_4011_; } -v_resetjp_4002_: +v_resetjp_4011_: { -lean_object* v___x_4006_; -if (v_isShared_4004_ == 0) +lean_object* v___x_4015_; +if (v_isShared_4013_ == 0) { -v___x_4006_ = v___x_4003_; -goto v_reusejp_4005_; +v___x_4015_ = v___x_4012_; +goto v_reusejp_4014_; } else { -lean_object* v_reuseFailAlloc_4007_; -v_reuseFailAlloc_4007_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4007_, 0, v_a_4001_); -v___x_4006_ = v_reuseFailAlloc_4007_; -goto v_reusejp_4005_; +lean_object* v_reuseFailAlloc_4016_; +v_reuseFailAlloc_4016_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4016_, 0, v_a_4010_); +v___x_4015_ = v_reuseFailAlloc_4016_; +goto v_reusejp_4014_; } -v_reusejp_4005_: +v_reusejp_4014_: { -return v___x_4006_; +return v___x_4015_; } } } } else { -lean_object* v___x_4009_; lean_object* v___x_4010_; lean_object* v___x_4011_; uint8_t v___x_4012_; -v___x_4009_ = lean_unsigned_to_nat(1u); -v___x_4010_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4009_); -v___x_4011_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__80)); -lean_inc(v___x_4010_); -v___x_4012_ = l_Lean_Syntax_isOfKind(v___x_4010_, v___x_4011_); -if (v___x_4012_ == 0) +lean_object* v___x_4018_; lean_object* v___x_4019_; lean_object* v___x_4020_; uint8_t v___x_4021_; +v___x_4018_ = lean_unsigned_to_nat(1u); +v___x_4019_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4018_); +v___x_4020_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__80)); +lean_inc(v___x_4019_); +v___x_4021_ = l_Lean_Syntax_isOfKind(v___x_4019_, v___x_4020_); +if (v___x_4021_ == 0) { -lean_object* v___x_4013_; lean_object* v_env_4014_; lean_object* v___x_4015_; lean_object* v___x_4016_; lean_object* v___x_4017_; lean_object* v___x_4018_; lean_object* v___x_4019_; -lean_dec(v___x_4010_); -v___x_4013_ = lean_st_ref_get(v_a_2297_); -v_env_4014_ = lean_ctor_get(v___x_4013_, 0); -lean_inc_ref(v_env_4014_); -lean_dec(v___x_4013_); -lean_inc_n(v_stx_2291_, 2); -v___x_4015_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4016_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4017_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4016_, v_env_4014_, v___x_4015_); -v___x_4018_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4019_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4017_, v___x_4018_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4017_); -if (lean_obj_tag(v___x_4019_) == 0) -{ -lean_object* v_a_4020_; lean_object* v___x_4022_; uint8_t v_isShared_4023_; uint8_t v_isSharedCheck_4050_; -v_a_4020_ = lean_ctor_get(v___x_4019_, 0); -v_isSharedCheck_4050_ = !lean_is_exclusive(v___x_4019_); -if (v_isSharedCheck_4050_ == 0) -{ -v___x_4022_ = v___x_4019_; -v_isShared_4023_ = v_isSharedCheck_4050_; -goto v_resetjp_4021_; -} -else -{ -lean_inc(v_a_4020_); +lean_object* v___x_4022_; lean_object* v_env_4023_; lean_object* v___x_4024_; lean_object* v___x_4025_; lean_object* v___x_4026_; lean_object* v___x_4027_; lean_object* v___x_4028_; lean_dec(v___x_4019_); -v___x_4022_ = lean_box(0); -v_isShared_4023_ = v_isSharedCheck_4050_; -goto v_resetjp_4021_; -} -v_resetjp_4021_: +v___x_4022_ = lean_st_ref_get(v_a_2302_); +v_env_4023_ = lean_ctor_get(v___x_4022_, 0); +lean_inc_ref(v_env_4023_); +lean_dec(v___x_4022_); +lean_inc_n(v_stx_2296_, 2); +v___x_4024_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4025_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4026_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4025_, v_env_4023_, v___x_4024_); +v___x_4027_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4028_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4026_, v___x_4027_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4026_); +if (lean_obj_tag(v___x_4028_) == 0) { -lean_object* v_fst_4024_; lean_object* v___x_4026_; uint8_t v_isShared_4027_; uint8_t v_isSharedCheck_4048_; -v_fst_4024_ = lean_ctor_get(v_a_4020_, 0); -v_isSharedCheck_4048_ = !lean_is_exclusive(v_a_4020_); -if (v_isSharedCheck_4048_ == 0) +lean_object* v_a_4029_; lean_object* v___x_4031_; uint8_t v_isShared_4032_; uint8_t v_isSharedCheck_4059_; +v_a_4029_ = lean_ctor_get(v___x_4028_, 0); +v_isSharedCheck_4059_ = !lean_is_exclusive(v___x_4028_); +if (v_isSharedCheck_4059_ == 0) { -lean_object* v_unused_4049_; -v_unused_4049_ = lean_ctor_get(v_a_4020_, 1); -lean_dec(v_unused_4049_); -v___x_4026_ = v_a_4020_; -v_isShared_4027_ = v_isSharedCheck_4048_; -goto v_resetjp_4025_; +v___x_4031_ = v___x_4028_; +v_isShared_4032_ = v_isSharedCheck_4059_; +goto v_resetjp_4030_; } else { -lean_inc(v_fst_4024_); -lean_dec(v_a_4020_); -v___x_4026_ = lean_box(0); -v_isShared_4027_ = v_isSharedCheck_4048_; -goto v_resetjp_4025_; +lean_inc(v_a_4029_); +lean_dec(v___x_4028_); +v___x_4031_ = lean_box(0); +v_isShared_4032_ = v_isSharedCheck_4059_; +goto v_resetjp_4030_; } -v_resetjp_4025_: +v_resetjp_4030_: { -if (lean_obj_tag(v_fst_4024_) == 0) +lean_object* v_fst_4033_; lean_object* v___x_4035_; uint8_t v_isShared_4036_; uint8_t v_isSharedCheck_4057_; +v_fst_4033_ = lean_ctor_get(v_a_4029_, 0); +v_isSharedCheck_4057_ = !lean_is_exclusive(v_a_4029_); +if (v_isSharedCheck_4057_ == 0) { -lean_object* v___x_4028_; lean_object* v___x_4029_; lean_object* v___x_4031_; -lean_del_object(v___x_4022_); -v___x_4028_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4029_ = l_Lean_MessageData_ofName(v___x_4015_); -lean_inc_ref(v___x_4029_); -if (v_isShared_4027_ == 0) -{ -lean_ctor_set_tag(v___x_4026_, 7); -lean_ctor_set(v___x_4026_, 1, v___x_4029_); -lean_ctor_set(v___x_4026_, 0, v___x_4028_); -v___x_4031_ = v___x_4026_; -goto v_reusejp_4030_; +lean_object* v_unused_4058_; +v_unused_4058_ = lean_ctor_get(v_a_4029_, 1); +lean_dec(v_unused_4058_); +v___x_4035_ = v_a_4029_; +v_isShared_4036_ = v_isSharedCheck_4057_; +goto v_resetjp_4034_; } else { -lean_object* v_reuseFailAlloc_4043_; -v_reuseFailAlloc_4043_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4043_, 0, v___x_4028_); -lean_ctor_set(v_reuseFailAlloc_4043_, 1, v___x_4029_); -v___x_4031_ = v_reuseFailAlloc_4043_; -goto v_reusejp_4030_; +lean_inc(v_fst_4033_); +lean_dec(v_a_4029_); +v___x_4035_ = lean_box(0); +v_isShared_4036_ = v_isSharedCheck_4057_; +goto v_resetjp_4034_; } -v_reusejp_4030_: +v_resetjp_4034_: { -lean_object* v___x_4032_; lean_object* v___x_4033_; lean_object* v___x_4034_; lean_object* v___x_4035_; lean_object* v___x_4036_; lean_object* v___x_4037_; lean_object* v___x_4038_; lean_object* v___x_4039_; lean_object* v___x_4040_; lean_object* v___x_4041_; lean_object* v___x_4042_; -v___x_4032_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4033_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4033_, 0, v___x_4031_); -lean_ctor_set(v___x_4033_, 1, v___x_4032_); -v___x_4034_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4035_ = l_Lean_indentD(v___x_4034_); -v___x_4036_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4036_, 0, v___x_4033_); -lean_ctor_set(v___x_4036_, 1, v___x_4035_); -v___x_4037_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4038_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4038_, 0, v___x_4036_); -lean_ctor_set(v___x_4038_, 1, v___x_4037_); -v___x_4039_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4039_, 0, v___x_4038_); -lean_ctor_set(v___x_4039_, 1, v___x_4029_); -v___x_4040_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4041_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4041_, 0, v___x_4039_); -lean_ctor_set(v___x_4041_, 1, v___x_4040_); -v___x_4042_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4041_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4042_; +if (lean_obj_tag(v_fst_4033_) == 0) +{ +lean_object* v___x_4037_; lean_object* v___x_4038_; lean_object* v___x_4040_; +lean_del_object(v___x_4031_); +v___x_4037_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4038_ = l_Lean_MessageData_ofName(v___x_4024_); +lean_inc_ref(v___x_4038_); +if (v_isShared_4036_ == 0) +{ +lean_ctor_set_tag(v___x_4035_, 7); +lean_ctor_set(v___x_4035_, 1, v___x_4038_); +lean_ctor_set(v___x_4035_, 0, v___x_4037_); +v___x_4040_ = v___x_4035_; +goto v_reusejp_4039_; +} +else +{ +lean_object* v_reuseFailAlloc_4052_; +v_reuseFailAlloc_4052_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4052_, 0, v___x_4037_); +lean_ctor_set(v_reuseFailAlloc_4052_, 1, v___x_4038_); +v___x_4040_ = v_reuseFailAlloc_4052_; +goto v_reusejp_4039_; +} +v_reusejp_4039_: +{ +lean_object* v___x_4041_; lean_object* v___x_4042_; lean_object* v___x_4043_; lean_object* v___x_4044_; lean_object* v___x_4045_; lean_object* v___x_4046_; lean_object* v___x_4047_; lean_object* v___x_4048_; lean_object* v___x_4049_; lean_object* v___x_4050_; lean_object* v___x_4051_; +v___x_4041_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4042_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4042_, 0, v___x_4040_); +lean_ctor_set(v___x_4042_, 1, v___x_4041_); +v___x_4043_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4044_ = l_Lean_indentD(v___x_4043_); +v___x_4045_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4045_, 0, v___x_4042_); +lean_ctor_set(v___x_4045_, 1, v___x_4044_); +v___x_4046_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4047_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4047_, 0, v___x_4045_); +lean_ctor_set(v___x_4047_, 1, v___x_4046_); +v___x_4048_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4048_, 0, v___x_4047_); +lean_ctor_set(v___x_4048_, 1, v___x_4038_); +v___x_4049_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4050_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4050_, 0, v___x_4048_); +lean_ctor_set(v___x_4050_, 1, v___x_4049_); +v___x_4051_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4050_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4051_; } } else { -lean_object* v_val_4044_; lean_object* v___x_4046_; -lean_del_object(v___x_4026_); -lean_dec(v___x_4015_); -lean_dec(v_stx_2291_); -v_val_4044_ = lean_ctor_get(v_fst_4024_, 0); -lean_inc(v_val_4044_); -lean_dec_ref(v_fst_4024_); -if (v_isShared_4023_ == 0) +lean_object* v_val_4053_; lean_object* v___x_4055_; +lean_del_object(v___x_4035_); +lean_dec(v___x_4024_); +lean_dec(v_stx_2296_); +v_val_4053_ = lean_ctor_get(v_fst_4033_, 0); +lean_inc(v_val_4053_); +lean_dec_ref(v_fst_4033_); +if (v_isShared_4032_ == 0) { -lean_ctor_set(v___x_4022_, 0, v_val_4044_); -v___x_4046_ = v___x_4022_; -goto v_reusejp_4045_; +lean_ctor_set(v___x_4031_, 0, v_val_4053_); +v___x_4055_ = v___x_4031_; +goto v_reusejp_4054_; } else { -lean_object* v_reuseFailAlloc_4047_; -v_reuseFailAlloc_4047_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4047_, 0, v_val_4044_); -v___x_4046_ = v_reuseFailAlloc_4047_; -goto v_reusejp_4045_; +lean_object* v_reuseFailAlloc_4056_; +v_reuseFailAlloc_4056_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4056_, 0, v_val_4053_); +v___x_4055_ = v_reuseFailAlloc_4056_; +goto v_reusejp_4054_; } -v_reusejp_4045_: +v_reusejp_4054_: { -return v___x_4046_; +return v___x_4055_; } } } @@ -12439,190 +12473,190 @@ return v___x_4046_; } else { -lean_object* v_a_4051_; lean_object* v___x_4053_; uint8_t v_isShared_4054_; uint8_t v_isSharedCheck_4058_; -lean_dec(v___x_4015_); -lean_dec(v_stx_2291_); -v_a_4051_ = lean_ctor_get(v___x_4019_, 0); -v_isSharedCheck_4058_ = !lean_is_exclusive(v___x_4019_); -if (v_isSharedCheck_4058_ == 0) +lean_object* v_a_4060_; lean_object* v___x_4062_; uint8_t v_isShared_4063_; uint8_t v_isSharedCheck_4067_; +lean_dec(v___x_4024_); +lean_dec(v_stx_2296_); +v_a_4060_ = lean_ctor_get(v___x_4028_, 0); +v_isSharedCheck_4067_ = !lean_is_exclusive(v___x_4028_); +if (v_isSharedCheck_4067_ == 0) { -v___x_4053_ = v___x_4019_; -v_isShared_4054_ = v_isSharedCheck_4058_; -goto v_resetjp_4052_; +v___x_4062_ = v___x_4028_; +v_isShared_4063_ = v_isSharedCheck_4067_; +goto v_resetjp_4061_; } else { -lean_inc(v_a_4051_); +lean_inc(v_a_4060_); +lean_dec(v___x_4028_); +v___x_4062_ = lean_box(0); +v_isShared_4063_ = v_isSharedCheck_4067_; +goto v_resetjp_4061_; +} +v_resetjp_4061_: +{ +lean_object* v___x_4065_; +if (v_isShared_4063_ == 0) +{ +v___x_4065_ = v___x_4062_; +goto v_reusejp_4064_; +} +else +{ +lean_object* v_reuseFailAlloc_4066_; +v_reuseFailAlloc_4066_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4066_, 0, v_a_4060_); +v___x_4065_ = v_reuseFailAlloc_4066_; +goto v_reusejp_4064_; +} +v_reusejp_4064_: +{ +return v___x_4065_; +} +} +} +} +else +{ +lean_object* v___x_4068_; uint8_t v___x_4069_; +v___x_4068_ = l_Lean_Syntax_getArg(v___x_4019_, v___x_3968_); lean_dec(v___x_4019_); -v___x_4053_ = lean_box(0); -v_isShared_4054_ = v_isSharedCheck_4058_; -goto v_resetjp_4052_; -} -v_resetjp_4052_: +lean_inc(v___x_4068_); +v___x_4069_ = l_Lean_Syntax_matchesNull(v___x_4068_, v___x_4018_); +if (v___x_4069_ == 0) { -lean_object* v___x_4056_; -if (v_isShared_4054_ == 0) +lean_object* v___x_4070_; lean_object* v_env_4071_; lean_object* v___x_4072_; lean_object* v___x_4073_; lean_object* v___x_4074_; lean_object* v___x_4075_; lean_object* v___x_4076_; +lean_dec(v___x_4068_); +v___x_4070_ = lean_st_ref_get(v_a_2302_); +v_env_4071_ = lean_ctor_get(v___x_4070_, 0); +lean_inc_ref(v_env_4071_); +lean_dec(v___x_4070_); +lean_inc_n(v_stx_2296_, 2); +v___x_4072_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4073_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4074_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4073_, v_env_4071_, v___x_4072_); +v___x_4075_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4076_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4074_, v___x_4075_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4074_); +if (lean_obj_tag(v___x_4076_) == 0) { -v___x_4056_ = v___x_4053_; -goto v_reusejp_4055_; +lean_object* v_a_4077_; lean_object* v___x_4079_; uint8_t v_isShared_4080_; uint8_t v_isSharedCheck_4107_; +v_a_4077_ = lean_ctor_get(v___x_4076_, 0); +v_isSharedCheck_4107_ = !lean_is_exclusive(v___x_4076_); +if (v_isSharedCheck_4107_ == 0) +{ +v___x_4079_ = v___x_4076_; +v_isShared_4080_ = v_isSharedCheck_4107_; +goto v_resetjp_4078_; } else { -lean_object* v_reuseFailAlloc_4057_; -v_reuseFailAlloc_4057_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4057_, 0, v_a_4051_); -v___x_4056_ = v_reuseFailAlloc_4057_; -goto v_reusejp_4055_; +lean_inc(v_a_4077_); +lean_dec(v___x_4076_); +v___x_4079_ = lean_box(0); +v_isShared_4080_ = v_isSharedCheck_4107_; +goto v_resetjp_4078_; } -v_reusejp_4055_: +v_resetjp_4078_: { -return v___x_4056_; +lean_object* v_fst_4081_; lean_object* v___x_4083_; uint8_t v_isShared_4084_; uint8_t v_isSharedCheck_4105_; +v_fst_4081_ = lean_ctor_get(v_a_4077_, 0); +v_isSharedCheck_4105_ = !lean_is_exclusive(v_a_4077_); +if (v_isSharedCheck_4105_ == 0) +{ +lean_object* v_unused_4106_; +v_unused_4106_ = lean_ctor_get(v_a_4077_, 1); +lean_dec(v_unused_4106_); +v___x_4083_ = v_a_4077_; +v_isShared_4084_ = v_isSharedCheck_4105_; +goto v_resetjp_4082_; } +else +{ +lean_inc(v_fst_4081_); +lean_dec(v_a_4077_); +v___x_4083_ = lean_box(0); +v_isShared_4084_ = v_isSharedCheck_4105_; +goto v_resetjp_4082_; } +v_resetjp_4082_: +{ +if (lean_obj_tag(v_fst_4081_) == 0) +{ +lean_object* v___x_4085_; lean_object* v___x_4086_; lean_object* v___x_4088_; +lean_del_object(v___x_4079_); +v___x_4085_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4086_ = l_Lean_MessageData_ofName(v___x_4072_); +lean_inc_ref(v___x_4086_); +if (v_isShared_4084_ == 0) +{ +lean_ctor_set_tag(v___x_4083_, 7); +lean_ctor_set(v___x_4083_, 1, v___x_4086_); +lean_ctor_set(v___x_4083_, 0, v___x_4085_); +v___x_4088_ = v___x_4083_; +goto v_reusejp_4087_; +} +else +{ +lean_object* v_reuseFailAlloc_4100_; +v_reuseFailAlloc_4100_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4100_, 0, v___x_4085_); +lean_ctor_set(v_reuseFailAlloc_4100_, 1, v___x_4086_); +v___x_4088_ = v_reuseFailAlloc_4100_; +goto v_reusejp_4087_; +} +v_reusejp_4087_: +{ +lean_object* v___x_4089_; lean_object* v___x_4090_; lean_object* v___x_4091_; lean_object* v___x_4092_; lean_object* v___x_4093_; lean_object* v___x_4094_; lean_object* v___x_4095_; lean_object* v___x_4096_; lean_object* v___x_4097_; lean_object* v___x_4098_; lean_object* v___x_4099_; +v___x_4089_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4090_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4090_, 0, v___x_4088_); +lean_ctor_set(v___x_4090_, 1, v___x_4089_); +v___x_4091_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4092_ = l_Lean_indentD(v___x_4091_); +v___x_4093_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4093_, 0, v___x_4090_); +lean_ctor_set(v___x_4093_, 1, v___x_4092_); +v___x_4094_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4095_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4095_, 0, v___x_4093_); +lean_ctor_set(v___x_4095_, 1, v___x_4094_); +v___x_4096_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4096_, 0, v___x_4095_); +lean_ctor_set(v___x_4096_, 1, v___x_4086_); +v___x_4097_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4098_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4098_, 0, v___x_4096_); +lean_ctor_set(v___x_4098_, 1, v___x_4097_); +v___x_4099_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4098_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4099_; } } else { -lean_object* v___x_4059_; uint8_t v___x_4060_; -v___x_4059_ = l_Lean_Syntax_getArg(v___x_4010_, v___x_3959_); -lean_dec(v___x_4010_); -lean_inc(v___x_4059_); -v___x_4060_ = l_Lean_Syntax_matchesNull(v___x_4059_, v___x_4009_); -if (v___x_4060_ == 0) +lean_object* v_val_4101_; lean_object* v___x_4103_; +lean_del_object(v___x_4083_); +lean_dec(v___x_4072_); +lean_dec(v_stx_2296_); +v_val_4101_ = lean_ctor_get(v_fst_4081_, 0); +lean_inc(v_val_4101_); +lean_dec_ref(v_fst_4081_); +if (v_isShared_4080_ == 0) { -lean_object* v___x_4061_; lean_object* v_env_4062_; lean_object* v___x_4063_; lean_object* v___x_4064_; lean_object* v___x_4065_; lean_object* v___x_4066_; lean_object* v___x_4067_; -lean_dec(v___x_4059_); -v___x_4061_ = lean_st_ref_get(v_a_2297_); -v_env_4062_ = lean_ctor_get(v___x_4061_, 0); -lean_inc_ref(v_env_4062_); -lean_dec(v___x_4061_); -lean_inc_n(v_stx_2291_, 2); -v___x_4063_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4064_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4065_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4064_, v_env_4062_, v___x_4063_); -v___x_4066_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4067_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4065_, v___x_4066_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4065_); -if (lean_obj_tag(v___x_4067_) == 0) -{ -lean_object* v_a_4068_; lean_object* v___x_4070_; uint8_t v_isShared_4071_; uint8_t v_isSharedCheck_4098_; -v_a_4068_ = lean_ctor_get(v___x_4067_, 0); -v_isSharedCheck_4098_ = !lean_is_exclusive(v___x_4067_); -if (v_isSharedCheck_4098_ == 0) -{ -v___x_4070_ = v___x_4067_; -v_isShared_4071_ = v_isSharedCheck_4098_; -goto v_resetjp_4069_; +lean_ctor_set(v___x_4079_, 0, v_val_4101_); +v___x_4103_ = v___x_4079_; +goto v_reusejp_4102_; } else { -lean_inc(v_a_4068_); -lean_dec(v___x_4067_); -v___x_4070_ = lean_box(0); -v_isShared_4071_ = v_isSharedCheck_4098_; -goto v_resetjp_4069_; +lean_object* v_reuseFailAlloc_4104_; +v_reuseFailAlloc_4104_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4104_, 0, v_val_4101_); +v___x_4103_ = v_reuseFailAlloc_4104_; +goto v_reusejp_4102_; } -v_resetjp_4069_: +v_reusejp_4102_: { -lean_object* v_fst_4072_; lean_object* v___x_4074_; uint8_t v_isShared_4075_; uint8_t v_isSharedCheck_4096_; -v_fst_4072_ = lean_ctor_get(v_a_4068_, 0); -v_isSharedCheck_4096_ = !lean_is_exclusive(v_a_4068_); -if (v_isSharedCheck_4096_ == 0) -{ -lean_object* v_unused_4097_; -v_unused_4097_ = lean_ctor_get(v_a_4068_, 1); -lean_dec(v_unused_4097_); -v___x_4074_ = v_a_4068_; -v_isShared_4075_ = v_isSharedCheck_4096_; -goto v_resetjp_4073_; -} -else -{ -lean_inc(v_fst_4072_); -lean_dec(v_a_4068_); -v___x_4074_ = lean_box(0); -v_isShared_4075_ = v_isSharedCheck_4096_; -goto v_resetjp_4073_; -} -v_resetjp_4073_: -{ -if (lean_obj_tag(v_fst_4072_) == 0) -{ -lean_object* v___x_4076_; lean_object* v___x_4077_; lean_object* v___x_4079_; -lean_del_object(v___x_4070_); -v___x_4076_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4077_ = l_Lean_MessageData_ofName(v___x_4063_); -lean_inc_ref(v___x_4077_); -if (v_isShared_4075_ == 0) -{ -lean_ctor_set_tag(v___x_4074_, 7); -lean_ctor_set(v___x_4074_, 1, v___x_4077_); -lean_ctor_set(v___x_4074_, 0, v___x_4076_); -v___x_4079_ = v___x_4074_; -goto v_reusejp_4078_; -} -else -{ -lean_object* v_reuseFailAlloc_4091_; -v_reuseFailAlloc_4091_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4091_, 0, v___x_4076_); -lean_ctor_set(v_reuseFailAlloc_4091_, 1, v___x_4077_); -v___x_4079_ = v_reuseFailAlloc_4091_; -goto v_reusejp_4078_; -} -v_reusejp_4078_: -{ -lean_object* v___x_4080_; lean_object* v___x_4081_; lean_object* v___x_4082_; lean_object* v___x_4083_; lean_object* v___x_4084_; lean_object* v___x_4085_; lean_object* v___x_4086_; lean_object* v___x_4087_; lean_object* v___x_4088_; lean_object* v___x_4089_; lean_object* v___x_4090_; -v___x_4080_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4081_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4081_, 0, v___x_4079_); -lean_ctor_set(v___x_4081_, 1, v___x_4080_); -v___x_4082_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4083_ = l_Lean_indentD(v___x_4082_); -v___x_4084_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4084_, 0, v___x_4081_); -lean_ctor_set(v___x_4084_, 1, v___x_4083_); -v___x_4085_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4086_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4086_, 0, v___x_4084_); -lean_ctor_set(v___x_4086_, 1, v___x_4085_); -v___x_4087_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4087_, 0, v___x_4086_); -lean_ctor_set(v___x_4087_, 1, v___x_4077_); -v___x_4088_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4089_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4089_, 0, v___x_4087_); -lean_ctor_set(v___x_4089_, 1, v___x_4088_); -v___x_4090_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4089_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4090_; -} -} -else -{ -lean_object* v_val_4092_; lean_object* v___x_4094_; -lean_del_object(v___x_4074_); -lean_dec(v___x_4063_); -lean_dec(v_stx_2291_); -v_val_4092_ = lean_ctor_get(v_fst_4072_, 0); -lean_inc(v_val_4092_); -lean_dec_ref(v_fst_4072_); -if (v_isShared_4071_ == 0) -{ -lean_ctor_set(v___x_4070_, 0, v_val_4092_); -v___x_4094_ = v___x_4070_; -goto v_reusejp_4093_; -} -else -{ -lean_object* v_reuseFailAlloc_4095_; -v_reuseFailAlloc_4095_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4095_, 0, v_val_4092_); -v___x_4094_ = v_reuseFailAlloc_4095_; -goto v_reusejp_4093_; -} -v_reusejp_4093_: -{ -return v___x_4094_; +return v___x_4103_; } } } @@ -12630,189 +12664,189 @@ return v___x_4094_; } else { -lean_object* v_a_4099_; lean_object* v___x_4101_; uint8_t v_isShared_4102_; uint8_t v_isSharedCheck_4106_; -lean_dec(v___x_4063_); -lean_dec(v_stx_2291_); -v_a_4099_ = lean_ctor_get(v___x_4067_, 0); -v_isSharedCheck_4106_ = !lean_is_exclusive(v___x_4067_); -if (v_isSharedCheck_4106_ == 0) +lean_object* v_a_4108_; lean_object* v___x_4110_; uint8_t v_isShared_4111_; uint8_t v_isSharedCheck_4115_; +lean_dec(v___x_4072_); +lean_dec(v_stx_2296_); +v_a_4108_ = lean_ctor_get(v___x_4076_, 0); +v_isSharedCheck_4115_ = !lean_is_exclusive(v___x_4076_); +if (v_isSharedCheck_4115_ == 0) { -v___x_4101_ = v___x_4067_; -v_isShared_4102_ = v_isSharedCheck_4106_; -goto v_resetjp_4100_; +v___x_4110_ = v___x_4076_; +v_isShared_4111_ = v_isSharedCheck_4115_; +goto v_resetjp_4109_; } else { -lean_inc(v_a_4099_); -lean_dec(v___x_4067_); -v___x_4101_ = lean_box(0); -v_isShared_4102_ = v_isSharedCheck_4106_; -goto v_resetjp_4100_; +lean_inc(v_a_4108_); +lean_dec(v___x_4076_); +v___x_4110_ = lean_box(0); +v_isShared_4111_ = v_isSharedCheck_4115_; +goto v_resetjp_4109_; } -v_resetjp_4100_: +v_resetjp_4109_: { -lean_object* v___x_4104_; -if (v_isShared_4102_ == 0) +lean_object* v___x_4113_; +if (v_isShared_4111_ == 0) { -v___x_4104_ = v___x_4101_; -goto v_reusejp_4103_; +v___x_4113_ = v___x_4110_; +goto v_reusejp_4112_; } else { -lean_object* v_reuseFailAlloc_4105_; -v_reuseFailAlloc_4105_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4105_, 0, v_a_4099_); -v___x_4104_ = v_reuseFailAlloc_4105_; -goto v_reusejp_4103_; +lean_object* v_reuseFailAlloc_4114_; +v_reuseFailAlloc_4114_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4114_, 0, v_a_4108_); +v___x_4113_ = v_reuseFailAlloc_4114_; +goto v_reusejp_4112_; } -v_reusejp_4103_: +v_reusejp_4112_: { -return v___x_4104_; +return v___x_4113_; } } } } else { -lean_object* v___x_4107_; lean_object* v___x_4108_; uint8_t v___x_4109_; -v___x_4107_ = l_Lean_Syntax_getArg(v___x_4059_, v___x_3959_); -lean_dec(v___x_4059_); -v___x_4108_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__82)); -v___x_4109_ = l_Lean_Syntax_isOfKind(v___x_4107_, v___x_4108_); -if (v___x_4109_ == 0) +lean_object* v___x_4116_; lean_object* v___x_4117_; uint8_t v___x_4118_; +v___x_4116_ = l_Lean_Syntax_getArg(v___x_4068_, v___x_3968_); +lean_dec(v___x_4068_); +v___x_4117_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__82)); +v___x_4118_ = l_Lean_Syntax_isOfKind(v___x_4116_, v___x_4117_); +if (v___x_4118_ == 0) { -lean_object* v___x_4110_; lean_object* v_env_4111_; lean_object* v___x_4112_; lean_object* v___x_4113_; lean_object* v___x_4114_; lean_object* v___x_4115_; lean_object* v___x_4116_; -v___x_4110_ = lean_st_ref_get(v_a_2297_); -v_env_4111_ = lean_ctor_get(v___x_4110_, 0); -lean_inc_ref(v_env_4111_); -lean_dec(v___x_4110_); -lean_inc_n(v_stx_2291_, 2); -v___x_4112_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4113_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4114_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4113_, v_env_4111_, v___x_4112_); -v___x_4115_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4116_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4114_, v___x_4115_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4114_); -if (lean_obj_tag(v___x_4116_) == 0) +lean_object* v___x_4119_; lean_object* v_env_4120_; lean_object* v___x_4121_; lean_object* v___x_4122_; lean_object* v___x_4123_; lean_object* v___x_4124_; lean_object* v___x_4125_; +v___x_4119_ = lean_st_ref_get(v_a_2302_); +v_env_4120_ = lean_ctor_get(v___x_4119_, 0); +lean_inc_ref(v_env_4120_); +lean_dec(v___x_4119_); +lean_inc_n(v_stx_2296_, 2); +v___x_4121_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4122_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4123_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4122_, v_env_4120_, v___x_4121_); +v___x_4124_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4125_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4123_, v___x_4124_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4123_); +if (lean_obj_tag(v___x_4125_) == 0) { -lean_object* v_a_4117_; lean_object* v___x_4119_; uint8_t v_isShared_4120_; uint8_t v_isSharedCheck_4147_; -v_a_4117_ = lean_ctor_get(v___x_4116_, 0); -v_isSharedCheck_4147_ = !lean_is_exclusive(v___x_4116_); -if (v_isSharedCheck_4147_ == 0) +lean_object* v_a_4126_; lean_object* v___x_4128_; uint8_t v_isShared_4129_; uint8_t v_isSharedCheck_4156_; +v_a_4126_ = lean_ctor_get(v___x_4125_, 0); +v_isSharedCheck_4156_ = !lean_is_exclusive(v___x_4125_); +if (v_isSharedCheck_4156_ == 0) { -v___x_4119_ = v___x_4116_; -v_isShared_4120_ = v_isSharedCheck_4147_; -goto v_resetjp_4118_; +v___x_4128_ = v___x_4125_; +v_isShared_4129_ = v_isSharedCheck_4156_; +goto v_resetjp_4127_; } else { -lean_inc(v_a_4117_); -lean_dec(v___x_4116_); -v___x_4119_ = lean_box(0); -v_isShared_4120_ = v_isSharedCheck_4147_; -goto v_resetjp_4118_; +lean_inc(v_a_4126_); +lean_dec(v___x_4125_); +v___x_4128_ = lean_box(0); +v_isShared_4129_ = v_isSharedCheck_4156_; +goto v_resetjp_4127_; } -v_resetjp_4118_: +v_resetjp_4127_: { -lean_object* v_fst_4121_; lean_object* v___x_4123_; uint8_t v_isShared_4124_; uint8_t v_isSharedCheck_4145_; -v_fst_4121_ = lean_ctor_get(v_a_4117_, 0); -v_isSharedCheck_4145_ = !lean_is_exclusive(v_a_4117_); -if (v_isSharedCheck_4145_ == 0) +lean_object* v_fst_4130_; lean_object* v___x_4132_; uint8_t v_isShared_4133_; uint8_t v_isSharedCheck_4154_; +v_fst_4130_ = lean_ctor_get(v_a_4126_, 0); +v_isSharedCheck_4154_ = !lean_is_exclusive(v_a_4126_); +if (v_isSharedCheck_4154_ == 0) { -lean_object* v_unused_4146_; -v_unused_4146_ = lean_ctor_get(v_a_4117_, 1); -lean_dec(v_unused_4146_); -v___x_4123_ = v_a_4117_; -v_isShared_4124_ = v_isSharedCheck_4145_; -goto v_resetjp_4122_; +lean_object* v_unused_4155_; +v_unused_4155_ = lean_ctor_get(v_a_4126_, 1); +lean_dec(v_unused_4155_); +v___x_4132_ = v_a_4126_; +v_isShared_4133_ = v_isSharedCheck_4154_; +goto v_resetjp_4131_; } else { -lean_inc(v_fst_4121_); -lean_dec(v_a_4117_); -v___x_4123_ = lean_box(0); -v_isShared_4124_ = v_isSharedCheck_4145_; -goto v_resetjp_4122_; +lean_inc(v_fst_4130_); +lean_dec(v_a_4126_); +v___x_4132_ = lean_box(0); +v_isShared_4133_ = v_isSharedCheck_4154_; +goto v_resetjp_4131_; } -v_resetjp_4122_: +v_resetjp_4131_: { -if (lean_obj_tag(v_fst_4121_) == 0) +if (lean_obj_tag(v_fst_4130_) == 0) { -lean_object* v___x_4125_; lean_object* v___x_4126_; lean_object* v___x_4128_; -lean_del_object(v___x_4119_); -v___x_4125_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4126_ = l_Lean_MessageData_ofName(v___x_4112_); -lean_inc_ref(v___x_4126_); -if (v_isShared_4124_ == 0) +lean_object* v___x_4134_; lean_object* v___x_4135_; lean_object* v___x_4137_; +lean_del_object(v___x_4128_); +v___x_4134_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4135_ = l_Lean_MessageData_ofName(v___x_4121_); +lean_inc_ref(v___x_4135_); +if (v_isShared_4133_ == 0) { -lean_ctor_set_tag(v___x_4123_, 7); -lean_ctor_set(v___x_4123_, 1, v___x_4126_); -lean_ctor_set(v___x_4123_, 0, v___x_4125_); -v___x_4128_ = v___x_4123_; -goto v_reusejp_4127_; +lean_ctor_set_tag(v___x_4132_, 7); +lean_ctor_set(v___x_4132_, 1, v___x_4135_); +lean_ctor_set(v___x_4132_, 0, v___x_4134_); +v___x_4137_ = v___x_4132_; +goto v_reusejp_4136_; } else { -lean_object* v_reuseFailAlloc_4140_; -v_reuseFailAlloc_4140_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4140_, 0, v___x_4125_); -lean_ctor_set(v_reuseFailAlloc_4140_, 1, v___x_4126_); -v___x_4128_ = v_reuseFailAlloc_4140_; -goto v_reusejp_4127_; +lean_object* v_reuseFailAlloc_4149_; +v_reuseFailAlloc_4149_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4149_, 0, v___x_4134_); +lean_ctor_set(v_reuseFailAlloc_4149_, 1, v___x_4135_); +v___x_4137_ = v_reuseFailAlloc_4149_; +goto v_reusejp_4136_; } -v_reusejp_4127_: +v_reusejp_4136_: { -lean_object* v___x_4129_; lean_object* v___x_4130_; lean_object* v___x_4131_; lean_object* v___x_4132_; lean_object* v___x_4133_; lean_object* v___x_4134_; lean_object* v___x_4135_; lean_object* v___x_4136_; lean_object* v___x_4137_; lean_object* v___x_4138_; lean_object* v___x_4139_; -v___x_4129_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4130_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4130_, 0, v___x_4128_); -lean_ctor_set(v___x_4130_, 1, v___x_4129_); -v___x_4131_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4132_ = l_Lean_indentD(v___x_4131_); -v___x_4133_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4133_, 0, v___x_4130_); -lean_ctor_set(v___x_4133_, 1, v___x_4132_); -v___x_4134_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4135_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4135_, 0, v___x_4133_); -lean_ctor_set(v___x_4135_, 1, v___x_4134_); -v___x_4136_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4136_, 0, v___x_4135_); -lean_ctor_set(v___x_4136_, 1, v___x_4126_); -v___x_4137_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4138_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4138_, 0, v___x_4136_); -lean_ctor_set(v___x_4138_, 1, v___x_4137_); -v___x_4139_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4138_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4139_; +lean_object* v___x_4138_; lean_object* v___x_4139_; lean_object* v___x_4140_; lean_object* v___x_4141_; lean_object* v___x_4142_; lean_object* v___x_4143_; lean_object* v___x_4144_; lean_object* v___x_4145_; lean_object* v___x_4146_; lean_object* v___x_4147_; lean_object* v___x_4148_; +v___x_4138_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4139_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4139_, 0, v___x_4137_); +lean_ctor_set(v___x_4139_, 1, v___x_4138_); +v___x_4140_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4141_ = l_Lean_indentD(v___x_4140_); +v___x_4142_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4142_, 0, v___x_4139_); +lean_ctor_set(v___x_4142_, 1, v___x_4141_); +v___x_4143_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4144_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4144_, 0, v___x_4142_); +lean_ctor_set(v___x_4144_, 1, v___x_4143_); +v___x_4145_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4145_, 0, v___x_4144_); +lean_ctor_set(v___x_4145_, 1, v___x_4135_); +v___x_4146_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4147_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4147_, 0, v___x_4145_); +lean_ctor_set(v___x_4147_, 1, v___x_4146_); +v___x_4148_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4147_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4148_; } } else { -lean_object* v_val_4141_; lean_object* v___x_4143_; -lean_del_object(v___x_4123_); -lean_dec(v___x_4112_); -lean_dec(v_stx_2291_); -v_val_4141_ = lean_ctor_get(v_fst_4121_, 0); -lean_inc(v_val_4141_); -lean_dec_ref(v_fst_4121_); -if (v_isShared_4120_ == 0) +lean_object* v_val_4150_; lean_object* v___x_4152_; +lean_del_object(v___x_4132_); +lean_dec(v___x_4121_); +lean_dec(v_stx_2296_); +v_val_4150_ = lean_ctor_get(v_fst_4130_, 0); +lean_inc(v_val_4150_); +lean_dec_ref(v_fst_4130_); +if (v_isShared_4129_ == 0) { -lean_ctor_set(v___x_4119_, 0, v_val_4141_); -v___x_4143_ = v___x_4119_; -goto v_reusejp_4142_; +lean_ctor_set(v___x_4128_, 0, v_val_4150_); +v___x_4152_ = v___x_4128_; +goto v_reusejp_4151_; } else { -lean_object* v_reuseFailAlloc_4144_; -v_reuseFailAlloc_4144_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4144_, 0, v_val_4141_); -v___x_4143_ = v_reuseFailAlloc_4144_; -goto v_reusejp_4142_; +lean_object* v_reuseFailAlloc_4153_; +v_reuseFailAlloc_4153_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4153_, 0, v_val_4150_); +v___x_4152_ = v_reuseFailAlloc_4153_; +goto v_reusejp_4151_; } -v_reusejp_4142_: +v_reusejp_4151_: { -return v___x_4143_; +return v___x_4152_; } } } @@ -12820,56 +12854,56 @@ return v___x_4143_; } else { -lean_object* v_a_4148_; lean_object* v___x_4150_; uint8_t v_isShared_4151_; uint8_t v_isSharedCheck_4155_; -lean_dec(v___x_4112_); -lean_dec(v_stx_2291_); -v_a_4148_ = lean_ctor_get(v___x_4116_, 0); -v_isSharedCheck_4155_ = !lean_is_exclusive(v___x_4116_); -if (v_isSharedCheck_4155_ == 0) +lean_object* v_a_4157_; lean_object* v___x_4159_; uint8_t v_isShared_4160_; uint8_t v_isSharedCheck_4164_; +lean_dec(v___x_4121_); +lean_dec(v_stx_2296_); +v_a_4157_ = lean_ctor_get(v___x_4125_, 0); +v_isSharedCheck_4164_ = !lean_is_exclusive(v___x_4125_); +if (v_isSharedCheck_4164_ == 0) { -v___x_4150_ = v___x_4116_; -v_isShared_4151_ = v_isSharedCheck_4155_; -goto v_resetjp_4149_; +v___x_4159_ = v___x_4125_; +v_isShared_4160_ = v_isSharedCheck_4164_; +goto v_resetjp_4158_; } else { -lean_inc(v_a_4148_); -lean_dec(v___x_4116_); -v___x_4150_ = lean_box(0); -v_isShared_4151_ = v_isSharedCheck_4155_; -goto v_resetjp_4149_; +lean_inc(v_a_4157_); +lean_dec(v___x_4125_); +v___x_4159_ = lean_box(0); +v_isShared_4160_ = v_isSharedCheck_4164_; +goto v_resetjp_4158_; } -v_resetjp_4149_: +v_resetjp_4158_: { -lean_object* v___x_4153_; -if (v_isShared_4151_ == 0) +lean_object* v___x_4162_; +if (v_isShared_4160_ == 0) { -v___x_4153_ = v___x_4150_; -goto v_reusejp_4152_; +v___x_4162_ = v___x_4159_; +goto v_reusejp_4161_; } else { -lean_object* v_reuseFailAlloc_4154_; -v_reuseFailAlloc_4154_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4154_, 0, v_a_4148_); -v___x_4153_ = v_reuseFailAlloc_4154_; -goto v_reusejp_4152_; +lean_object* v_reuseFailAlloc_4163_; +v_reuseFailAlloc_4163_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4163_, 0, v_a_4157_); +v___x_4162_ = v_reuseFailAlloc_4163_; +goto v_reusejp_4161_; } -v_reusejp_4152_: +v_reusejp_4161_: { -return v___x_4153_; +return v___x_4162_; } } } } else { -lean_object* v___x_4156_; lean_object* v___x_4157_; -lean_dec(v_stx_2291_); -v___x_4156_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_4157_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4157_, 0, v___x_4156_); -return v___x_4157_; +lean_object* v___x_4165_; lean_object* v___x_4166_; +lean_dec(v_stx_2296_); +v___x_4165_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_4166_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4166_, 0, v___x_4165_); +return v___x_4166_; } } } @@ -12878,145 +12912,145 @@ return v___x_4157_; } else { -lean_object* v___x_4158_; lean_object* v___x_4159_; lean_object* v___x_4160_; uint8_t v___x_4161_; -v___x_4158_ = lean_unsigned_to_nat(1u); -v___x_4159_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4158_); -v___x_4160_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); -v___x_4161_ = l_Lean_Syntax_isOfKind(v___x_4159_, v___x_4160_); -if (v___x_4161_ == 0) +lean_object* v___x_4167_; lean_object* v___x_4168_; lean_object* v___x_4169_; uint8_t v___x_4170_; +v___x_4167_ = lean_unsigned_to_nat(1u); +v___x_4168_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4167_); +v___x_4169_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); +v___x_4170_ = l_Lean_Syntax_isOfKind(v___x_4168_, v___x_4169_); +if (v___x_4170_ == 0) { -lean_object* v___x_4162_; lean_object* v_env_4163_; lean_object* v___x_4164_; lean_object* v___x_4165_; lean_object* v___x_4166_; lean_object* v___x_4167_; lean_object* v___x_4168_; -v___x_4162_ = lean_st_ref_get(v_a_2297_); -v_env_4163_ = lean_ctor_get(v___x_4162_, 0); -lean_inc_ref(v_env_4163_); -lean_dec(v___x_4162_); -lean_inc_n(v_stx_2291_, 2); -v___x_4164_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4165_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4166_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4165_, v_env_4163_, v___x_4164_); -v___x_4167_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4168_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4166_, v___x_4167_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4166_); -if (lean_obj_tag(v___x_4168_) == 0) +lean_object* v___x_4171_; lean_object* v_env_4172_; lean_object* v___x_4173_; lean_object* v___x_4174_; lean_object* v___x_4175_; lean_object* v___x_4176_; lean_object* v___x_4177_; +v___x_4171_ = lean_st_ref_get(v_a_2302_); +v_env_4172_ = lean_ctor_get(v___x_4171_, 0); +lean_inc_ref(v_env_4172_); +lean_dec(v___x_4171_); +lean_inc_n(v_stx_2296_, 2); +v___x_4173_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4174_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4175_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4174_, v_env_4172_, v___x_4173_); +v___x_4176_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4177_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4175_, v___x_4176_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4175_); +if (lean_obj_tag(v___x_4177_) == 0) { -lean_object* v_a_4169_; lean_object* v___x_4171_; uint8_t v_isShared_4172_; uint8_t v_isSharedCheck_4199_; -v_a_4169_ = lean_ctor_get(v___x_4168_, 0); -v_isSharedCheck_4199_ = !lean_is_exclusive(v___x_4168_); -if (v_isSharedCheck_4199_ == 0) +lean_object* v_a_4178_; lean_object* v___x_4180_; uint8_t v_isShared_4181_; uint8_t v_isSharedCheck_4208_; +v_a_4178_ = lean_ctor_get(v___x_4177_, 0); +v_isSharedCheck_4208_ = !lean_is_exclusive(v___x_4177_); +if (v_isSharedCheck_4208_ == 0) { -v___x_4171_ = v___x_4168_; -v_isShared_4172_ = v_isSharedCheck_4199_; -goto v_resetjp_4170_; +v___x_4180_ = v___x_4177_; +v_isShared_4181_ = v_isSharedCheck_4208_; +goto v_resetjp_4179_; } else { -lean_inc(v_a_4169_); -lean_dec(v___x_4168_); -v___x_4171_ = lean_box(0); -v_isShared_4172_ = v_isSharedCheck_4199_; -goto v_resetjp_4170_; +lean_inc(v_a_4178_); +lean_dec(v___x_4177_); +v___x_4180_ = lean_box(0); +v_isShared_4181_ = v_isSharedCheck_4208_; +goto v_resetjp_4179_; } -v_resetjp_4170_: +v_resetjp_4179_: { -lean_object* v_fst_4173_; lean_object* v___x_4175_; uint8_t v_isShared_4176_; uint8_t v_isSharedCheck_4197_; -v_fst_4173_ = lean_ctor_get(v_a_4169_, 0); -v_isSharedCheck_4197_ = !lean_is_exclusive(v_a_4169_); -if (v_isSharedCheck_4197_ == 0) +lean_object* v_fst_4182_; lean_object* v___x_4184_; uint8_t v_isShared_4185_; uint8_t v_isSharedCheck_4206_; +v_fst_4182_ = lean_ctor_get(v_a_4178_, 0); +v_isSharedCheck_4206_ = !lean_is_exclusive(v_a_4178_); +if (v_isSharedCheck_4206_ == 0) { -lean_object* v_unused_4198_; -v_unused_4198_ = lean_ctor_get(v_a_4169_, 1); -lean_dec(v_unused_4198_); -v___x_4175_ = v_a_4169_; -v_isShared_4176_ = v_isSharedCheck_4197_; -goto v_resetjp_4174_; +lean_object* v_unused_4207_; +v_unused_4207_ = lean_ctor_get(v_a_4178_, 1); +lean_dec(v_unused_4207_); +v___x_4184_ = v_a_4178_; +v_isShared_4185_ = v_isSharedCheck_4206_; +goto v_resetjp_4183_; } else { -lean_inc(v_fst_4173_); -lean_dec(v_a_4169_); -v___x_4175_ = lean_box(0); -v_isShared_4176_ = v_isSharedCheck_4197_; -goto v_resetjp_4174_; +lean_inc(v_fst_4182_); +lean_dec(v_a_4178_); +v___x_4184_ = lean_box(0); +v_isShared_4185_ = v_isSharedCheck_4206_; +goto v_resetjp_4183_; } -v_resetjp_4174_: +v_resetjp_4183_: { -if (lean_obj_tag(v_fst_4173_) == 0) +if (lean_obj_tag(v_fst_4182_) == 0) { -lean_object* v___x_4177_; lean_object* v___x_4178_; lean_object* v___x_4180_; -lean_del_object(v___x_4171_); -v___x_4177_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4178_ = l_Lean_MessageData_ofName(v___x_4164_); -lean_inc_ref(v___x_4178_); -if (v_isShared_4176_ == 0) +lean_object* v___x_4186_; lean_object* v___x_4187_; lean_object* v___x_4189_; +lean_del_object(v___x_4180_); +v___x_4186_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4187_ = l_Lean_MessageData_ofName(v___x_4173_); +lean_inc_ref(v___x_4187_); +if (v_isShared_4185_ == 0) { -lean_ctor_set_tag(v___x_4175_, 7); -lean_ctor_set(v___x_4175_, 1, v___x_4178_); -lean_ctor_set(v___x_4175_, 0, v___x_4177_); -v___x_4180_ = v___x_4175_; -goto v_reusejp_4179_; +lean_ctor_set_tag(v___x_4184_, 7); +lean_ctor_set(v___x_4184_, 1, v___x_4187_); +lean_ctor_set(v___x_4184_, 0, v___x_4186_); +v___x_4189_ = v___x_4184_; +goto v_reusejp_4188_; } else { -lean_object* v_reuseFailAlloc_4192_; -v_reuseFailAlloc_4192_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4192_, 0, v___x_4177_); -lean_ctor_set(v_reuseFailAlloc_4192_, 1, v___x_4178_); -v___x_4180_ = v_reuseFailAlloc_4192_; -goto v_reusejp_4179_; +lean_object* v_reuseFailAlloc_4201_; +v_reuseFailAlloc_4201_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4201_, 0, v___x_4186_); +lean_ctor_set(v_reuseFailAlloc_4201_, 1, v___x_4187_); +v___x_4189_ = v_reuseFailAlloc_4201_; +goto v_reusejp_4188_; } -v_reusejp_4179_: +v_reusejp_4188_: { -lean_object* v___x_4181_; lean_object* v___x_4182_; lean_object* v___x_4183_; lean_object* v___x_4184_; lean_object* v___x_4185_; lean_object* v___x_4186_; lean_object* v___x_4187_; lean_object* v___x_4188_; lean_object* v___x_4189_; lean_object* v___x_4190_; lean_object* v___x_4191_; -v___x_4181_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4182_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4182_, 0, v___x_4180_); -lean_ctor_set(v___x_4182_, 1, v___x_4181_); -v___x_4183_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4184_ = l_Lean_indentD(v___x_4183_); -v___x_4185_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4185_, 0, v___x_4182_); -lean_ctor_set(v___x_4185_, 1, v___x_4184_); -v___x_4186_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4187_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4187_, 0, v___x_4185_); -lean_ctor_set(v___x_4187_, 1, v___x_4186_); -v___x_4188_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4188_, 0, v___x_4187_); -lean_ctor_set(v___x_4188_, 1, v___x_4178_); -v___x_4189_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4190_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4190_, 0, v___x_4188_); -lean_ctor_set(v___x_4190_, 1, v___x_4189_); -v___x_4191_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4190_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4191_; +lean_object* v___x_4190_; lean_object* v___x_4191_; lean_object* v___x_4192_; lean_object* v___x_4193_; lean_object* v___x_4194_; lean_object* v___x_4195_; lean_object* v___x_4196_; lean_object* v___x_4197_; lean_object* v___x_4198_; lean_object* v___x_4199_; lean_object* v___x_4200_; +v___x_4190_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4191_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4191_, 0, v___x_4189_); +lean_ctor_set(v___x_4191_, 1, v___x_4190_); +v___x_4192_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4193_ = l_Lean_indentD(v___x_4192_); +v___x_4194_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4194_, 0, v___x_4191_); +lean_ctor_set(v___x_4194_, 1, v___x_4193_); +v___x_4195_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4196_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4196_, 0, v___x_4194_); +lean_ctor_set(v___x_4196_, 1, v___x_4195_); +v___x_4197_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4197_, 0, v___x_4196_); +lean_ctor_set(v___x_4197_, 1, v___x_4187_); +v___x_4198_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4199_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4199_, 0, v___x_4197_); +lean_ctor_set(v___x_4199_, 1, v___x_4198_); +v___x_4200_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4199_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4200_; } } else { -lean_object* v_val_4193_; lean_object* v___x_4195_; -lean_del_object(v___x_4175_); -lean_dec(v___x_4164_); -lean_dec(v_stx_2291_); -v_val_4193_ = lean_ctor_get(v_fst_4173_, 0); -lean_inc(v_val_4193_); -lean_dec_ref(v_fst_4173_); -if (v_isShared_4172_ == 0) +lean_object* v_val_4202_; lean_object* v___x_4204_; +lean_del_object(v___x_4184_); +lean_dec(v___x_4173_); +lean_dec(v_stx_2296_); +v_val_4202_ = lean_ctor_get(v_fst_4182_, 0); +lean_inc(v_val_4202_); +lean_dec_ref(v_fst_4182_); +if (v_isShared_4181_ == 0) { -lean_ctor_set(v___x_4171_, 0, v_val_4193_); -v___x_4195_ = v___x_4171_; -goto v_reusejp_4194_; +lean_ctor_set(v___x_4180_, 0, v_val_4202_); +v___x_4204_ = v___x_4180_; +goto v_reusejp_4203_; } else { -lean_object* v_reuseFailAlloc_4196_; -v_reuseFailAlloc_4196_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4196_, 0, v_val_4193_); -v___x_4195_ = v_reuseFailAlloc_4196_; -goto v_reusejp_4194_; +lean_object* v_reuseFailAlloc_4205_; +v_reuseFailAlloc_4205_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4205_, 0, v_val_4202_); +v___x_4204_ = v_reuseFailAlloc_4205_; +goto v_reusejp_4203_; } -v_reusejp_4194_: +v_reusejp_4203_: { -return v___x_4195_; +return v___x_4204_; } } } @@ -13024,189 +13058,189 @@ return v___x_4195_; } else { -lean_object* v_a_4200_; lean_object* v___x_4202_; uint8_t v_isShared_4203_; uint8_t v_isSharedCheck_4207_; -lean_dec(v___x_4164_); -lean_dec(v_stx_2291_); -v_a_4200_ = lean_ctor_get(v___x_4168_, 0); -v_isSharedCheck_4207_ = !lean_is_exclusive(v___x_4168_); -if (v_isSharedCheck_4207_ == 0) +lean_object* v_a_4209_; lean_object* v___x_4211_; uint8_t v_isShared_4212_; uint8_t v_isSharedCheck_4216_; +lean_dec(v___x_4173_); +lean_dec(v_stx_2296_); +v_a_4209_ = lean_ctor_get(v___x_4177_, 0); +v_isSharedCheck_4216_ = !lean_is_exclusive(v___x_4177_); +if (v_isSharedCheck_4216_ == 0) { -v___x_4202_ = v___x_4168_; -v_isShared_4203_ = v_isSharedCheck_4207_; -goto v_resetjp_4201_; +v___x_4211_ = v___x_4177_; +v_isShared_4212_ = v_isSharedCheck_4216_; +goto v_resetjp_4210_; } else { -lean_inc(v_a_4200_); -lean_dec(v___x_4168_); -v___x_4202_ = lean_box(0); -v_isShared_4203_ = v_isSharedCheck_4207_; -goto v_resetjp_4201_; +lean_inc(v_a_4209_); +lean_dec(v___x_4177_); +v___x_4211_ = lean_box(0); +v_isShared_4212_ = v_isSharedCheck_4216_; +goto v_resetjp_4210_; } -v_resetjp_4201_: +v_resetjp_4210_: { -lean_object* v___x_4205_; -if (v_isShared_4203_ == 0) +lean_object* v___x_4214_; +if (v_isShared_4212_ == 0) { -v___x_4205_ = v___x_4202_; -goto v_reusejp_4204_; +v___x_4214_ = v___x_4211_; +goto v_reusejp_4213_; } else { -lean_object* v_reuseFailAlloc_4206_; -v_reuseFailAlloc_4206_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4206_, 0, v_a_4200_); -v___x_4205_ = v_reuseFailAlloc_4206_; -goto v_reusejp_4204_; +lean_object* v_reuseFailAlloc_4215_; +v_reuseFailAlloc_4215_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4215_, 0, v_a_4209_); +v___x_4214_ = v_reuseFailAlloc_4215_; +goto v_reusejp_4213_; } -v_reusejp_4204_: +v_reusejp_4213_: { -return v___x_4205_; +return v___x_4214_; } } } } else { -lean_object* v___x_4208_; lean_object* v___x_4209_; lean_object* v___x_4210_; uint8_t v___x_4211_; -v___x_4208_ = lean_unsigned_to_nat(2u); -v___x_4209_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4208_); -v___x_4210_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__11)); -v___x_4211_ = l_Lean_Syntax_isOfKind(v___x_4209_, v___x_4210_); -if (v___x_4211_ == 0) +lean_object* v___x_4217_; lean_object* v___x_4218_; lean_object* v___x_4219_; uint8_t v___x_4220_; +v___x_4217_ = lean_unsigned_to_nat(2u); +v___x_4218_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4217_); +v___x_4219_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__11)); +v___x_4220_ = l_Lean_Syntax_isOfKind(v___x_4218_, v___x_4219_); +if (v___x_4220_ == 0) { -lean_object* v___x_4212_; lean_object* v_env_4213_; lean_object* v___x_4214_; lean_object* v___x_4215_; lean_object* v___x_4216_; lean_object* v___x_4217_; lean_object* v___x_4218_; -v___x_4212_ = lean_st_ref_get(v_a_2297_); -v_env_4213_ = lean_ctor_get(v___x_4212_, 0); -lean_inc_ref(v_env_4213_); -lean_dec(v___x_4212_); -lean_inc_n(v_stx_2291_, 2); -v___x_4214_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4215_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4216_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4215_, v_env_4213_, v___x_4214_); -v___x_4217_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4218_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4216_, v___x_4217_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4216_); -if (lean_obj_tag(v___x_4218_) == 0) +lean_object* v___x_4221_; lean_object* v_env_4222_; lean_object* v___x_4223_; lean_object* v___x_4224_; lean_object* v___x_4225_; lean_object* v___x_4226_; lean_object* v___x_4227_; +v___x_4221_ = lean_st_ref_get(v_a_2302_); +v_env_4222_ = lean_ctor_get(v___x_4221_, 0); +lean_inc_ref(v_env_4222_); +lean_dec(v___x_4221_); +lean_inc_n(v_stx_2296_, 2); +v___x_4223_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4224_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4225_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4224_, v_env_4222_, v___x_4223_); +v___x_4226_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4227_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4225_, v___x_4226_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4225_); +if (lean_obj_tag(v___x_4227_) == 0) { -lean_object* v_a_4219_; lean_object* v___x_4221_; uint8_t v_isShared_4222_; uint8_t v_isSharedCheck_4249_; -v_a_4219_ = lean_ctor_get(v___x_4218_, 0); -v_isSharedCheck_4249_ = !lean_is_exclusive(v___x_4218_); -if (v_isSharedCheck_4249_ == 0) +lean_object* v_a_4228_; lean_object* v___x_4230_; uint8_t v_isShared_4231_; uint8_t v_isSharedCheck_4258_; +v_a_4228_ = lean_ctor_get(v___x_4227_, 0); +v_isSharedCheck_4258_ = !lean_is_exclusive(v___x_4227_); +if (v_isSharedCheck_4258_ == 0) { -v___x_4221_ = v___x_4218_; -v_isShared_4222_ = v_isSharedCheck_4249_; -goto v_resetjp_4220_; +v___x_4230_ = v___x_4227_; +v_isShared_4231_ = v_isSharedCheck_4258_; +goto v_resetjp_4229_; } else { -lean_inc(v_a_4219_); -lean_dec(v___x_4218_); -v___x_4221_ = lean_box(0); -v_isShared_4222_ = v_isSharedCheck_4249_; -goto v_resetjp_4220_; +lean_inc(v_a_4228_); +lean_dec(v___x_4227_); +v___x_4230_ = lean_box(0); +v_isShared_4231_ = v_isSharedCheck_4258_; +goto v_resetjp_4229_; } -v_resetjp_4220_: +v_resetjp_4229_: { -lean_object* v_fst_4223_; lean_object* v___x_4225_; uint8_t v_isShared_4226_; uint8_t v_isSharedCheck_4247_; -v_fst_4223_ = lean_ctor_get(v_a_4219_, 0); -v_isSharedCheck_4247_ = !lean_is_exclusive(v_a_4219_); -if (v_isSharedCheck_4247_ == 0) +lean_object* v_fst_4232_; lean_object* v___x_4234_; uint8_t v_isShared_4235_; uint8_t v_isSharedCheck_4256_; +v_fst_4232_ = lean_ctor_get(v_a_4228_, 0); +v_isSharedCheck_4256_ = !lean_is_exclusive(v_a_4228_); +if (v_isSharedCheck_4256_ == 0) { -lean_object* v_unused_4248_; -v_unused_4248_ = lean_ctor_get(v_a_4219_, 1); -lean_dec(v_unused_4248_); -v___x_4225_ = v_a_4219_; -v_isShared_4226_ = v_isSharedCheck_4247_; -goto v_resetjp_4224_; +lean_object* v_unused_4257_; +v_unused_4257_ = lean_ctor_get(v_a_4228_, 1); +lean_dec(v_unused_4257_); +v___x_4234_ = v_a_4228_; +v_isShared_4235_ = v_isSharedCheck_4256_; +goto v_resetjp_4233_; } else { -lean_inc(v_fst_4223_); -lean_dec(v_a_4219_); -v___x_4225_ = lean_box(0); -v_isShared_4226_ = v_isSharedCheck_4247_; -goto v_resetjp_4224_; +lean_inc(v_fst_4232_); +lean_dec(v_a_4228_); +v___x_4234_ = lean_box(0); +v_isShared_4235_ = v_isSharedCheck_4256_; +goto v_resetjp_4233_; } -v_resetjp_4224_: +v_resetjp_4233_: { -if (lean_obj_tag(v_fst_4223_) == 0) +if (lean_obj_tag(v_fst_4232_) == 0) { -lean_object* v___x_4227_; lean_object* v___x_4228_; lean_object* v___x_4230_; -lean_del_object(v___x_4221_); -v___x_4227_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4228_ = l_Lean_MessageData_ofName(v___x_4214_); -lean_inc_ref(v___x_4228_); -if (v_isShared_4226_ == 0) +lean_object* v___x_4236_; lean_object* v___x_4237_; lean_object* v___x_4239_; +lean_del_object(v___x_4230_); +v___x_4236_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4237_ = l_Lean_MessageData_ofName(v___x_4223_); +lean_inc_ref(v___x_4237_); +if (v_isShared_4235_ == 0) { -lean_ctor_set_tag(v___x_4225_, 7); -lean_ctor_set(v___x_4225_, 1, v___x_4228_); -lean_ctor_set(v___x_4225_, 0, v___x_4227_); -v___x_4230_ = v___x_4225_; -goto v_reusejp_4229_; +lean_ctor_set_tag(v___x_4234_, 7); +lean_ctor_set(v___x_4234_, 1, v___x_4237_); +lean_ctor_set(v___x_4234_, 0, v___x_4236_); +v___x_4239_ = v___x_4234_; +goto v_reusejp_4238_; } else { -lean_object* v_reuseFailAlloc_4242_; -v_reuseFailAlloc_4242_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4242_, 0, v___x_4227_); -lean_ctor_set(v_reuseFailAlloc_4242_, 1, v___x_4228_); -v___x_4230_ = v_reuseFailAlloc_4242_; -goto v_reusejp_4229_; +lean_object* v_reuseFailAlloc_4251_; +v_reuseFailAlloc_4251_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4251_, 0, v___x_4236_); +lean_ctor_set(v_reuseFailAlloc_4251_, 1, v___x_4237_); +v___x_4239_ = v_reuseFailAlloc_4251_; +goto v_reusejp_4238_; } -v_reusejp_4229_: +v_reusejp_4238_: { -lean_object* v___x_4231_; lean_object* v___x_4232_; lean_object* v___x_4233_; lean_object* v___x_4234_; lean_object* v___x_4235_; lean_object* v___x_4236_; lean_object* v___x_4237_; lean_object* v___x_4238_; lean_object* v___x_4239_; lean_object* v___x_4240_; lean_object* v___x_4241_; -v___x_4231_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4232_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4232_, 0, v___x_4230_); -lean_ctor_set(v___x_4232_, 1, v___x_4231_); -v___x_4233_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4234_ = l_Lean_indentD(v___x_4233_); -v___x_4235_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4235_, 0, v___x_4232_); -lean_ctor_set(v___x_4235_, 1, v___x_4234_); -v___x_4236_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4237_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4237_, 0, v___x_4235_); -lean_ctor_set(v___x_4237_, 1, v___x_4236_); -v___x_4238_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4238_, 0, v___x_4237_); -lean_ctor_set(v___x_4238_, 1, v___x_4228_); -v___x_4239_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4240_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4240_, 0, v___x_4238_); -lean_ctor_set(v___x_4240_, 1, v___x_4239_); -v___x_4241_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4240_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4241_; +lean_object* v___x_4240_; lean_object* v___x_4241_; lean_object* v___x_4242_; lean_object* v___x_4243_; lean_object* v___x_4244_; lean_object* v___x_4245_; lean_object* v___x_4246_; lean_object* v___x_4247_; lean_object* v___x_4248_; lean_object* v___x_4249_; lean_object* v___x_4250_; +v___x_4240_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4241_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4241_, 0, v___x_4239_); +lean_ctor_set(v___x_4241_, 1, v___x_4240_); +v___x_4242_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4243_ = l_Lean_indentD(v___x_4242_); +v___x_4244_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4244_, 0, v___x_4241_); +lean_ctor_set(v___x_4244_, 1, v___x_4243_); +v___x_4245_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4246_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4246_, 0, v___x_4244_); +lean_ctor_set(v___x_4246_, 1, v___x_4245_); +v___x_4247_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4247_, 0, v___x_4246_); +lean_ctor_set(v___x_4247_, 1, v___x_4237_); +v___x_4248_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4249_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4249_, 0, v___x_4247_); +lean_ctor_set(v___x_4249_, 1, v___x_4248_); +v___x_4250_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4249_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4250_; } } else { -lean_object* v_val_4243_; lean_object* v___x_4245_; -lean_del_object(v___x_4225_); -lean_dec(v___x_4214_); -lean_dec(v_stx_2291_); -v_val_4243_ = lean_ctor_get(v_fst_4223_, 0); -lean_inc(v_val_4243_); -lean_dec_ref(v_fst_4223_); -if (v_isShared_4222_ == 0) +lean_object* v_val_4252_; lean_object* v___x_4254_; +lean_del_object(v___x_4234_); +lean_dec(v___x_4223_); +lean_dec(v_stx_2296_); +v_val_4252_ = lean_ctor_get(v_fst_4232_, 0); +lean_inc(v_val_4252_); +lean_dec_ref(v_fst_4232_); +if (v_isShared_4231_ == 0) { -lean_ctor_set(v___x_4221_, 0, v_val_4243_); -v___x_4245_ = v___x_4221_; -goto v_reusejp_4244_; +lean_ctor_set(v___x_4230_, 0, v_val_4252_); +v___x_4254_ = v___x_4230_; +goto v_reusejp_4253_; } else { -lean_object* v_reuseFailAlloc_4246_; -v_reuseFailAlloc_4246_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4246_, 0, v_val_4243_); -v___x_4245_ = v_reuseFailAlloc_4246_; -goto v_reusejp_4244_; +lean_object* v_reuseFailAlloc_4255_; +v_reuseFailAlloc_4255_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4255_, 0, v_val_4252_); +v___x_4254_ = v_reuseFailAlloc_4255_; +goto v_reusejp_4253_; } -v_reusejp_4244_: +v_reusejp_4253_: { -return v___x_4245_; +return v___x_4254_; } } } @@ -13214,205 +13248,205 @@ return v___x_4245_; } else { -lean_object* v_a_4250_; lean_object* v___x_4252_; uint8_t v_isShared_4253_; uint8_t v_isSharedCheck_4257_; -lean_dec(v___x_4214_); -lean_dec(v_stx_2291_); -v_a_4250_ = lean_ctor_get(v___x_4218_, 0); -v_isSharedCheck_4257_ = !lean_is_exclusive(v___x_4218_); -if (v_isSharedCheck_4257_ == 0) +lean_object* v_a_4259_; lean_object* v___x_4261_; uint8_t v_isShared_4262_; uint8_t v_isSharedCheck_4266_; +lean_dec(v___x_4223_); +lean_dec(v_stx_2296_); +v_a_4259_ = lean_ctor_get(v___x_4227_, 0); +v_isSharedCheck_4266_ = !lean_is_exclusive(v___x_4227_); +if (v_isSharedCheck_4266_ == 0) { -v___x_4252_ = v___x_4218_; -v_isShared_4253_ = v_isSharedCheck_4257_; -goto v_resetjp_4251_; +v___x_4261_ = v___x_4227_; +v_isShared_4262_ = v_isSharedCheck_4266_; +goto v_resetjp_4260_; } else { -lean_inc(v_a_4250_); -lean_dec(v___x_4218_); -v___x_4252_ = lean_box(0); -v_isShared_4253_ = v_isSharedCheck_4257_; -goto v_resetjp_4251_; +lean_inc(v_a_4259_); +lean_dec(v___x_4227_); +v___x_4261_ = lean_box(0); +v_isShared_4262_ = v_isSharedCheck_4266_; +goto v_resetjp_4260_; } -v_resetjp_4251_: +v_resetjp_4260_: { -lean_object* v___x_4255_; -if (v_isShared_4253_ == 0) +lean_object* v___x_4264_; +if (v_isShared_4262_ == 0) { -v___x_4255_ = v___x_4252_; -goto v_reusejp_4254_; +v___x_4264_ = v___x_4261_; +goto v_reusejp_4263_; } else { -lean_object* v_reuseFailAlloc_4256_; -v_reuseFailAlloc_4256_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4256_, 0, v_a_4250_); -v___x_4255_ = v_reuseFailAlloc_4256_; -goto v_reusejp_4254_; +lean_object* v_reuseFailAlloc_4265_; +v_reuseFailAlloc_4265_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4265_, 0, v_a_4259_); +v___x_4264_ = v_reuseFailAlloc_4265_; +goto v_reusejp_4263_; } -v_reusejp_4254_: +v_reusejp_4263_: { -return v___x_4255_; +return v___x_4264_; } } } } else { -lean_object* v___x_4258_; lean_object* v___x_4259_; -lean_dec(v_stx_2291_); -v___x_4258_ = l_Lean_Elab_Do_ControlInfo_pure; -v___x_4259_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4259_, 0, v___x_4258_); -return v___x_4259_; +lean_object* v___x_4267_; lean_object* v___x_4268_; +lean_dec(v_stx_2296_); +v___x_4267_ = l_Lean_Elab_Do_ControlInfo_pure; +v___x_4268_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4268_, 0, v___x_4267_); +return v___x_4268_; } } } } else { -lean_object* v___x_4260_; lean_object* v___x_4261_; uint8_t v___x_4262_; -v___x_4260_ = lean_unsigned_to_nat(1u); -v___x_4261_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4260_); -v___x_4262_ = l_Lean_Syntax_isNone(v___x_4261_); -if (v___x_4262_ == 0) +lean_object* v___x_4269_; lean_object* v___x_4270_; uint8_t v___x_4271_; +v___x_4269_ = lean_unsigned_to_nat(1u); +v___x_4270_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4269_); +v___x_4271_ = l_Lean_Syntax_isNone(v___x_4270_); +if (v___x_4271_ == 0) { -uint8_t v___x_4263_; -v___x_4263_ = l_Lean_Syntax_matchesNull(v___x_4261_, v___x_4260_); -if (v___x_4263_ == 0) +uint8_t v___x_4272_; +v___x_4272_ = l_Lean_Syntax_matchesNull(v___x_4270_, v___x_4269_); +if (v___x_4272_ == 0) { -lean_object* v___x_4264_; lean_object* v_env_4265_; lean_object* v___x_4266_; lean_object* v___x_4267_; lean_object* v___x_4268_; lean_object* v___x_4269_; lean_object* v___x_4270_; -lean_del_object(v___x_2328_); -v___x_4264_ = lean_st_ref_get(v_a_2297_); -v_env_4265_ = lean_ctor_get(v___x_4264_, 0); -lean_inc_ref(v_env_4265_); -lean_dec(v___x_4264_); -lean_inc_n(v_stx_2291_, 2); -v___x_4266_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4267_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4268_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4267_, v_env_4265_, v___x_4266_); -v___x_4269_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4270_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4268_, v___x_4269_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4268_); -if (lean_obj_tag(v___x_4270_) == 0) +lean_object* v___x_4273_; lean_object* v_env_4274_; lean_object* v___x_4275_; lean_object* v___x_4276_; lean_object* v___x_4277_; lean_object* v___x_4278_; lean_object* v___x_4279_; +lean_del_object(v___x_2333_); +v___x_4273_ = lean_st_ref_get(v_a_2302_); +v_env_4274_ = lean_ctor_get(v___x_4273_, 0); +lean_inc_ref(v_env_4274_); +lean_dec(v___x_4273_); +lean_inc_n(v_stx_2296_, 2); +v___x_4275_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4276_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4277_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4276_, v_env_4274_, v___x_4275_); +v___x_4278_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4279_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4277_, v___x_4278_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4277_); +if (lean_obj_tag(v___x_4279_) == 0) { -lean_object* v_a_4271_; lean_object* v___x_4273_; uint8_t v_isShared_4274_; uint8_t v_isSharedCheck_4301_; -v_a_4271_ = lean_ctor_get(v___x_4270_, 0); -v_isSharedCheck_4301_ = !lean_is_exclusive(v___x_4270_); -if (v_isSharedCheck_4301_ == 0) +lean_object* v_a_4280_; lean_object* v___x_4282_; uint8_t v_isShared_4283_; uint8_t v_isSharedCheck_4310_; +v_a_4280_ = lean_ctor_get(v___x_4279_, 0); +v_isSharedCheck_4310_ = !lean_is_exclusive(v___x_4279_); +if (v_isSharedCheck_4310_ == 0) { -v___x_4273_ = v___x_4270_; -v_isShared_4274_ = v_isSharedCheck_4301_; -goto v_resetjp_4272_; +v___x_4282_ = v___x_4279_; +v_isShared_4283_ = v_isSharedCheck_4310_; +goto v_resetjp_4281_; } else { -lean_inc(v_a_4271_); -lean_dec(v___x_4270_); -v___x_4273_ = lean_box(0); -v_isShared_4274_ = v_isSharedCheck_4301_; -goto v_resetjp_4272_; +lean_inc(v_a_4280_); +lean_dec(v___x_4279_); +v___x_4282_ = lean_box(0); +v_isShared_4283_ = v_isSharedCheck_4310_; +goto v_resetjp_4281_; } -v_resetjp_4272_: +v_resetjp_4281_: { -lean_object* v_fst_4275_; lean_object* v___x_4277_; uint8_t v_isShared_4278_; uint8_t v_isSharedCheck_4299_; -v_fst_4275_ = lean_ctor_get(v_a_4271_, 0); -v_isSharedCheck_4299_ = !lean_is_exclusive(v_a_4271_); -if (v_isSharedCheck_4299_ == 0) +lean_object* v_fst_4284_; lean_object* v___x_4286_; uint8_t v_isShared_4287_; uint8_t v_isSharedCheck_4308_; +v_fst_4284_ = lean_ctor_get(v_a_4280_, 0); +v_isSharedCheck_4308_ = !lean_is_exclusive(v_a_4280_); +if (v_isSharedCheck_4308_ == 0) { -lean_object* v_unused_4300_; -v_unused_4300_ = lean_ctor_get(v_a_4271_, 1); -lean_dec(v_unused_4300_); -v___x_4277_ = v_a_4271_; -v_isShared_4278_ = v_isSharedCheck_4299_; -goto v_resetjp_4276_; +lean_object* v_unused_4309_; +v_unused_4309_ = lean_ctor_get(v_a_4280_, 1); +lean_dec(v_unused_4309_); +v___x_4286_ = v_a_4280_; +v_isShared_4287_ = v_isSharedCheck_4308_; +goto v_resetjp_4285_; } else { -lean_inc(v_fst_4275_); -lean_dec(v_a_4271_); -v___x_4277_ = lean_box(0); -v_isShared_4278_ = v_isSharedCheck_4299_; -goto v_resetjp_4276_; +lean_inc(v_fst_4284_); +lean_dec(v_a_4280_); +v___x_4286_ = lean_box(0); +v_isShared_4287_ = v_isSharedCheck_4308_; +goto v_resetjp_4285_; } -v_resetjp_4276_: +v_resetjp_4285_: { -if (lean_obj_tag(v_fst_4275_) == 0) +if (lean_obj_tag(v_fst_4284_) == 0) { -lean_object* v___x_4279_; lean_object* v___x_4280_; lean_object* v___x_4282_; -lean_del_object(v___x_4273_); -v___x_4279_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4280_ = l_Lean_MessageData_ofName(v___x_4266_); -lean_inc_ref(v___x_4280_); -if (v_isShared_4278_ == 0) +lean_object* v___x_4288_; lean_object* v___x_4289_; lean_object* v___x_4291_; +lean_del_object(v___x_4282_); +v___x_4288_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4289_ = l_Lean_MessageData_ofName(v___x_4275_); +lean_inc_ref(v___x_4289_); +if (v_isShared_4287_ == 0) { -lean_ctor_set_tag(v___x_4277_, 7); -lean_ctor_set(v___x_4277_, 1, v___x_4280_); -lean_ctor_set(v___x_4277_, 0, v___x_4279_); -v___x_4282_ = v___x_4277_; -goto v_reusejp_4281_; +lean_ctor_set_tag(v___x_4286_, 7); +lean_ctor_set(v___x_4286_, 1, v___x_4289_); +lean_ctor_set(v___x_4286_, 0, v___x_4288_); +v___x_4291_ = v___x_4286_; +goto v_reusejp_4290_; } else { -lean_object* v_reuseFailAlloc_4294_; -v_reuseFailAlloc_4294_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4294_, 0, v___x_4279_); -lean_ctor_set(v_reuseFailAlloc_4294_, 1, v___x_4280_); -v___x_4282_ = v_reuseFailAlloc_4294_; -goto v_reusejp_4281_; +lean_object* v_reuseFailAlloc_4303_; +v_reuseFailAlloc_4303_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4303_, 0, v___x_4288_); +lean_ctor_set(v_reuseFailAlloc_4303_, 1, v___x_4289_); +v___x_4291_ = v_reuseFailAlloc_4303_; +goto v_reusejp_4290_; } -v_reusejp_4281_: +v_reusejp_4290_: { -lean_object* v___x_4283_; lean_object* v___x_4284_; lean_object* v___x_4285_; lean_object* v___x_4286_; lean_object* v___x_4287_; lean_object* v___x_4288_; lean_object* v___x_4289_; lean_object* v___x_4290_; lean_object* v___x_4291_; lean_object* v___x_4292_; lean_object* v___x_4293_; -v___x_4283_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4284_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4284_, 0, v___x_4282_); -lean_ctor_set(v___x_4284_, 1, v___x_4283_); -v___x_4285_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4286_ = l_Lean_indentD(v___x_4285_); -v___x_4287_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4287_, 0, v___x_4284_); -lean_ctor_set(v___x_4287_, 1, v___x_4286_); -v___x_4288_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4289_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4289_, 0, v___x_4287_); -lean_ctor_set(v___x_4289_, 1, v___x_4288_); -v___x_4290_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4290_, 0, v___x_4289_); -lean_ctor_set(v___x_4290_, 1, v___x_4280_); -v___x_4291_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4292_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4292_, 0, v___x_4290_); -lean_ctor_set(v___x_4292_, 1, v___x_4291_); -v___x_4293_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4292_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4293_; +lean_object* v___x_4292_; lean_object* v___x_4293_; lean_object* v___x_4294_; lean_object* v___x_4295_; lean_object* v___x_4296_; lean_object* v___x_4297_; lean_object* v___x_4298_; lean_object* v___x_4299_; lean_object* v___x_4300_; lean_object* v___x_4301_; lean_object* v___x_4302_; +v___x_4292_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4293_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4293_, 0, v___x_4291_); +lean_ctor_set(v___x_4293_, 1, v___x_4292_); +v___x_4294_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4295_ = l_Lean_indentD(v___x_4294_); +v___x_4296_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4296_, 0, v___x_4293_); +lean_ctor_set(v___x_4296_, 1, v___x_4295_); +v___x_4297_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4298_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4298_, 0, v___x_4296_); +lean_ctor_set(v___x_4298_, 1, v___x_4297_); +v___x_4299_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4299_, 0, v___x_4298_); +lean_ctor_set(v___x_4299_, 1, v___x_4289_); +v___x_4300_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4301_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4301_, 0, v___x_4299_); +lean_ctor_set(v___x_4301_, 1, v___x_4300_); +v___x_4302_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4301_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4302_; } } else { -lean_object* v_val_4295_; lean_object* v___x_4297_; -lean_del_object(v___x_4277_); -lean_dec(v___x_4266_); -lean_dec(v_stx_2291_); -v_val_4295_ = lean_ctor_get(v_fst_4275_, 0); -lean_inc(v_val_4295_); -lean_dec_ref(v_fst_4275_); -if (v_isShared_4274_ == 0) +lean_object* v_val_4304_; lean_object* v___x_4306_; +lean_del_object(v___x_4286_); +lean_dec(v___x_4275_); +lean_dec(v_stx_2296_); +v_val_4304_ = lean_ctor_get(v_fst_4284_, 0); +lean_inc(v_val_4304_); +lean_dec_ref(v_fst_4284_); +if (v_isShared_4283_ == 0) { -lean_ctor_set(v___x_4273_, 0, v_val_4295_); -v___x_4297_ = v___x_4273_; -goto v_reusejp_4296_; +lean_ctor_set(v___x_4282_, 0, v_val_4304_); +v___x_4306_ = v___x_4282_; +goto v_reusejp_4305_; } else { -lean_object* v_reuseFailAlloc_4298_; -v_reuseFailAlloc_4298_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4298_, 0, v_val_4295_); -v___x_4297_ = v_reuseFailAlloc_4298_; -goto v_reusejp_4296_; +lean_object* v_reuseFailAlloc_4307_; +v_reuseFailAlloc_4307_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4307_, 0, v_val_4304_); +v___x_4306_ = v_reuseFailAlloc_4307_; +goto v_reusejp_4305_; } -v_reusejp_4296_: +v_reusejp_4305_: { -return v___x_4297_; +return v___x_4306_; } } } @@ -13420,493 +13454,493 @@ return v___x_4297_; } else { -lean_object* v_a_4302_; lean_object* v___x_4304_; uint8_t v_isShared_4305_; uint8_t v_isSharedCheck_4309_; -lean_dec(v___x_4266_); -lean_dec(v_stx_2291_); -v_a_4302_ = lean_ctor_get(v___x_4270_, 0); -v_isSharedCheck_4309_ = !lean_is_exclusive(v___x_4270_); -if (v_isSharedCheck_4309_ == 0) +lean_object* v_a_4311_; lean_object* v___x_4313_; uint8_t v_isShared_4314_; uint8_t v_isSharedCheck_4318_; +lean_dec(v___x_4275_); +lean_dec(v_stx_2296_); +v_a_4311_ = lean_ctor_get(v___x_4279_, 0); +v_isSharedCheck_4318_ = !lean_is_exclusive(v___x_4279_); +if (v_isSharedCheck_4318_ == 0) { -v___x_4304_ = v___x_4270_; -v_isShared_4305_ = v_isSharedCheck_4309_; -goto v_resetjp_4303_; +v___x_4313_ = v___x_4279_; +v_isShared_4314_ = v_isSharedCheck_4318_; +goto v_resetjp_4312_; } else { -lean_inc(v_a_4302_); -lean_dec(v___x_4270_); -v___x_4304_ = lean_box(0); -v_isShared_4305_ = v_isSharedCheck_4309_; -goto v_resetjp_4303_; +lean_inc(v_a_4311_); +lean_dec(v___x_4279_); +v___x_4313_ = lean_box(0); +v_isShared_4314_ = v_isSharedCheck_4318_; +goto v_resetjp_4312_; } -v_resetjp_4303_: +v_resetjp_4312_: { -lean_object* v___x_4307_; -if (v_isShared_4305_ == 0) +lean_object* v___x_4316_; +if (v_isShared_4314_ == 0) { -v___x_4307_ = v___x_4304_; -goto v_reusejp_4306_; +v___x_4316_ = v___x_4313_; +goto v_reusejp_4315_; } else { -lean_object* v_reuseFailAlloc_4308_; -v_reuseFailAlloc_4308_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4308_, 0, v_a_4302_); -v___x_4307_ = v_reuseFailAlloc_4308_; -goto v_reusejp_4306_; +lean_object* v_reuseFailAlloc_4317_; +v_reuseFailAlloc_4317_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4317_, 0, v_a_4311_); +v___x_4316_ = v_reuseFailAlloc_4317_; +goto v_reusejp_4315_; } -v_reusejp_4306_: +v_reusejp_4315_: { -return v___x_4307_; -} -} -} -} -else -{ -v___y_2416_ = v_a_2292_; -v___y_2417_ = v_a_2293_; -v___y_2418_ = v_a_2294_; -v___y_2419_ = v_a_2295_; -v___y_2420_ = v_a_2296_; -v___y_2421_ = v_a_2297_; -goto v___jp_2415_; -} -} -else -{ -lean_dec(v___x_4261_); -v___y_2416_ = v_a_2292_; -v___y_2417_ = v_a_2293_; -v___y_2418_ = v_a_2294_; -v___y_2419_ = v_a_2295_; -v___y_2420_ = v_a_2296_; -v___y_2421_ = v_a_2297_; -goto v___jp_2415_; -} -} -} -else -{ -lean_object* v___x_4310_; lean_object* v___x_4311_; lean_object* v___x_4312_; -lean_del_object(v___x_2328_); -v___x_4310_ = lean_unsigned_to_nat(1u); -v___x_4311_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4310_); -lean_dec(v_stx_2291_); -v___x_4312_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_4311_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4312_; -} -} -else -{ -lean_object* v___x_4313_; lean_object* v___x_4314_; lean_object* v___x_4315_; lean_object* v___x_4316_; -lean_del_object(v___x_2328_); -lean_dec(v_stx_2291_); -v___x_4313_ = lean_unsigned_to_nat(1u); -v___x_4314_ = l_Lean_NameSet_empty; -v___x_4315_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_4315_, 0, v___x_4313_); -lean_ctor_set(v___x_4315_, 1, v___x_4314_); -lean_ctor_set_uint8(v___x_4315_, sizeof(void*)*2, v___x_2532_); -lean_ctor_set_uint8(v___x_4315_, sizeof(void*)*2 + 1, v___x_2532_); -lean_ctor_set_uint8(v___x_4315_, sizeof(void*)*2 + 2, v___x_2532_); -v___x_4316_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4316_, 0, v___x_4315_); return v___x_4316_; } } -else -{ -lean_object* v___x_4317_; lean_object* v___x_4322_; lean_object* v___x_4323_; uint8_t v___x_4324_; -lean_del_object(v___x_2328_); -v___x_4317_ = lean_unsigned_to_nat(0u); -v___x_4322_ = lean_unsigned_to_nat(1u); -v___x_4323_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_4322_); -v___x_4324_ = l_Lean_Syntax_isNone(v___x_4323_); -if (v___x_4324_ == 0) -{ -uint8_t v___x_4325_; -v___x_4325_ = l_Lean_Syntax_matchesNull(v___x_4323_, v___x_4322_); -if (v___x_4325_ == 0) -{ -lean_object* v___x_4326_; lean_object* v_env_4327_; lean_object* v___x_4328_; lean_object* v___x_4329_; lean_object* v___x_4330_; lean_object* v___x_4331_; lean_object* v___x_4332_; -v___x_4326_ = lean_st_ref_get(v_a_2297_); -v_env_4327_ = lean_ctor_get(v___x_4326_, 0); -lean_inc_ref(v_env_4327_); -lean_dec(v___x_4326_); -lean_inc_n(v_stx_2291_, 2); -v___x_4328_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_4329_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_4330_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4329_, v_env_4327_, v___x_4328_); -v___x_4331_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_4332_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_4330_, v___x_4331_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -lean_dec(v___x_4330_); -if (lean_obj_tag(v___x_4332_) == 0) -{ -lean_object* v_a_4333_; lean_object* v___x_4335_; uint8_t v_isShared_4336_; uint8_t v_isSharedCheck_4363_; -v_a_4333_ = lean_ctor_get(v___x_4332_, 0); -v_isSharedCheck_4363_ = !lean_is_exclusive(v___x_4332_); -if (v_isSharedCheck_4363_ == 0) -{ -v___x_4335_ = v___x_4332_; -v_isShared_4336_ = v_isSharedCheck_4363_; -goto v_resetjp_4334_; -} -else -{ -lean_inc(v_a_4333_); -lean_dec(v___x_4332_); -v___x_4335_ = lean_box(0); -v_isShared_4336_ = v_isSharedCheck_4363_; -goto v_resetjp_4334_; -} -v_resetjp_4334_: -{ -lean_object* v_fst_4337_; lean_object* v___x_4339_; uint8_t v_isShared_4340_; uint8_t v_isSharedCheck_4361_; -v_fst_4337_ = lean_ctor_get(v_a_4333_, 0); -v_isSharedCheck_4361_ = !lean_is_exclusive(v_a_4333_); -if (v_isSharedCheck_4361_ == 0) -{ -lean_object* v_unused_4362_; -v_unused_4362_ = lean_ctor_get(v_a_4333_, 1); -lean_dec(v_unused_4362_); -v___x_4339_ = v_a_4333_; -v_isShared_4340_ = v_isSharedCheck_4361_; -goto v_resetjp_4338_; -} -else -{ -lean_inc(v_fst_4337_); -lean_dec(v_a_4333_); -v___x_4339_ = lean_box(0); -v_isShared_4340_ = v_isSharedCheck_4361_; -goto v_resetjp_4338_; -} -v_resetjp_4338_: -{ -if (lean_obj_tag(v_fst_4337_) == 0) -{ -lean_object* v___x_4341_; lean_object* v___x_4342_; lean_object* v___x_4344_; -lean_del_object(v___x_4335_); -v___x_4341_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_4342_ = l_Lean_MessageData_ofName(v___x_4328_); -lean_inc_ref(v___x_4342_); -if (v_isShared_4340_ == 0) -{ -lean_ctor_set_tag(v___x_4339_, 7); -lean_ctor_set(v___x_4339_, 1, v___x_4342_); -lean_ctor_set(v___x_4339_, 0, v___x_4341_); -v___x_4344_ = v___x_4339_; -goto v_reusejp_4343_; -} -else -{ -lean_object* v_reuseFailAlloc_4356_; -v_reuseFailAlloc_4356_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4356_, 0, v___x_4341_); -lean_ctor_set(v_reuseFailAlloc_4356_, 1, v___x_4342_); -v___x_4344_ = v_reuseFailAlloc_4356_; -goto v_reusejp_4343_; -} -v_reusejp_4343_: -{ -lean_object* v___x_4345_; lean_object* v___x_4346_; lean_object* v___x_4347_; lean_object* v___x_4348_; lean_object* v___x_4349_; lean_object* v___x_4350_; lean_object* v___x_4351_; lean_object* v___x_4352_; lean_object* v___x_4353_; lean_object* v___x_4354_; lean_object* v___x_4355_; -v___x_4345_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_4346_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4346_, 0, v___x_4344_); -lean_ctor_set(v___x_4346_, 1, v___x_4345_); -v___x_4347_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_4348_ = l_Lean_indentD(v___x_4347_); -v___x_4349_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4349_, 0, v___x_4346_); -lean_ctor_set(v___x_4349_, 1, v___x_4348_); -v___x_4350_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); -v___x_4351_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4351_, 0, v___x_4349_); -lean_ctor_set(v___x_4351_, 1, v___x_4350_); -v___x_4352_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4352_, 0, v___x_4351_); -lean_ctor_set(v___x_4352_, 1, v___x_4342_); -v___x_4353_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); -v___x_4354_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4354_, 0, v___x_4352_); -lean_ctor_set(v___x_4354_, 1, v___x_4353_); -v___x_4355_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4354_, v_a_2292_, v_a_2293_, v_a_2294_, v_a_2295_, v_a_2296_, v_a_2297_); -return v___x_4355_; } } else { -lean_object* v_val_4357_; lean_object* v___x_4359_; -lean_del_object(v___x_4339_); -lean_dec(v___x_4328_); -lean_dec(v_stx_2291_); -v_val_4357_ = lean_ctor_get(v_fst_4337_, 0); -lean_inc(v_val_4357_); -lean_dec_ref(v_fst_4337_); -if (v_isShared_4336_ == 0) -{ -lean_ctor_set(v___x_4335_, 0, v_val_4357_); -v___x_4359_ = v___x_4335_; -goto v_reusejp_4358_; -} -else -{ -lean_object* v_reuseFailAlloc_4360_; -v_reuseFailAlloc_4360_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4360_, 0, v_val_4357_); -v___x_4359_ = v_reuseFailAlloc_4360_; -goto v_reusejp_4358_; -} -v_reusejp_4358_: -{ -return v___x_4359_; -} -} -} -} -} -else -{ -lean_object* v_a_4364_; lean_object* v___x_4366_; uint8_t v_isShared_4367_; uint8_t v_isSharedCheck_4371_; -lean_dec(v___x_4328_); -lean_dec(v_stx_2291_); -v_a_4364_ = lean_ctor_get(v___x_4332_, 0); -v_isSharedCheck_4371_ = !lean_is_exclusive(v___x_4332_); -if (v_isSharedCheck_4371_ == 0) -{ -v___x_4366_ = v___x_4332_; -v_isShared_4367_ = v_isSharedCheck_4371_; -goto v_resetjp_4365_; -} -else -{ -lean_inc(v_a_4364_); -lean_dec(v___x_4332_); -v___x_4366_ = lean_box(0); -v_isShared_4367_ = v_isSharedCheck_4371_; -goto v_resetjp_4365_; -} -v_resetjp_4365_: -{ -lean_object* v___x_4369_; -if (v_isShared_4367_ == 0) -{ -v___x_4369_ = v___x_4366_; -goto v_reusejp_4368_; -} -else -{ -lean_object* v_reuseFailAlloc_4370_; -v_reuseFailAlloc_4370_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4370_, 0, v_a_4364_); -v___x_4369_ = v_reuseFailAlloc_4370_; -goto v_reusejp_4368_; -} -v_reusejp_4368_: -{ -return v___x_4369_; -} -} +v___y_2421_ = v_a_2297_; +v___y_2422_ = v_a_2298_; +v___y_2423_ = v_a_2299_; +v___y_2424_ = v_a_2300_; +v___y_2425_ = v_a_2301_; +v___y_2426_ = v_a_2302_; +goto v___jp_2420_; } } else { -lean_dec(v_stx_2291_); -goto v___jp_4318_; +lean_dec(v___x_4270_); +v___y_2421_ = v_a_2297_; +v___y_2422_ = v_a_2298_; +v___y_2423_ = v_a_2299_; +v___y_2424_ = v_a_2300_; +v___y_2425_ = v_a_2301_; +v___y_2426_ = v_a_2302_; +goto v___jp_2420_; +} } } else { -lean_dec(v___x_4323_); -lean_dec(v_stx_2291_); -goto v___jp_4318_; -} -v___jp_4318_: -{ lean_object* v___x_4319_; lean_object* v___x_4320_; lean_object* v___x_4321_; -v___x_4319_ = l_Lean_NameSet_empty; -v___x_4320_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_4320_, 0, v___x_4317_); -lean_ctor_set(v___x_4320_, 1, v___x_4319_); -lean_ctor_set_uint8(v___x_4320_, sizeof(void*)*2, v___x_2530_); -lean_ctor_set_uint8(v___x_4320_, sizeof(void*)*2 + 1, v___x_2530_); -lean_ctor_set_uint8(v___x_4320_, sizeof(void*)*2 + 2, v___x_2528_); -v___x_4321_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4321_, 0, v___x_4320_); +lean_del_object(v___x_2333_); +v___x_4319_ = lean_unsigned_to_nat(1u); +v___x_4320_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4319_); +lean_dec(v_stx_2296_); +v___x_4321_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v___x_4320_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); return v___x_4321_; } } -} else { -lean_object* v___x_4372_; lean_object* v___x_4373_; lean_object* v___x_4374_; lean_object* v___x_4375_; -lean_del_object(v___x_2328_); -lean_dec(v_stx_2291_); -v___x_4372_ = lean_unsigned_to_nat(0u); -v___x_4373_ = l_Lean_NameSet_empty; -v___x_4374_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v___x_4374_, 0, v___x_4372_); -lean_ctor_set(v___x_4374_, 1, v___x_4373_); -lean_ctor_set_uint8(v___x_4374_, sizeof(void*)*2, v___x_2527_); -lean_ctor_set_uint8(v___x_4374_, sizeof(void*)*2 + 1, v___x_2528_); -lean_ctor_set_uint8(v___x_4374_, sizeof(void*)*2 + 2, v___x_2527_); -v___x_4375_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4375_, 0, v___x_4374_); -return v___x_4375_; +lean_object* v___x_4322_; lean_object* v___x_4323_; lean_object* v___x_4324_; lean_object* v___x_4325_; +lean_del_object(v___x_2333_); +lean_dec(v_stx_2296_); +v___x_4322_ = lean_unsigned_to_nat(1u); +v___x_4323_ = l_Lean_NameSet_empty; +v___x_4324_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_4324_, 0, v___x_4322_); +lean_ctor_set(v___x_4324_, 1, v___x_4323_); +lean_ctor_set_uint8(v___x_4324_, sizeof(void*)*2, v___x_2537_); +lean_ctor_set_uint8(v___x_4324_, sizeof(void*)*2 + 1, v___x_2537_); +lean_ctor_set_uint8(v___x_4324_, sizeof(void*)*2 + 2, v___x_2537_); +v___x_4325_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4325_, 0, v___x_4324_); +return v___x_4325_; } } else { -lean_object* v___x_4376_; lean_object* v___x_4377_; -lean_del_object(v___x_2328_); -lean_dec(v_stx_2291_); -v___x_4376_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83); -v___x_4377_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4377_, 0, v___x_4376_); -return v___x_4377_; -} -v___jp_2344_: +lean_object* v___x_4326_; lean_object* v___x_4331_; lean_object* v___x_4332_; uint8_t v___x_4333_; +lean_del_object(v___x_2333_); +v___x_4326_ = lean_unsigned_to_nat(0u); +v___x_4331_ = lean_unsigned_to_nat(1u); +v___x_4332_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_4331_); +v___x_4333_ = l_Lean_Syntax_isNone(v___x_4332_); +if (v___x_4333_ == 0) { -lean_object* v___x_2351_; lean_object* v___x_2352_; lean_object* v___x_2353_; uint8_t v___x_2354_; -v___x_2351_ = lean_unsigned_to_nat(2u); -v___x_2352_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2351_); -v___x_2353_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); -v___x_2354_ = l_Lean_Syntax_isOfKind(v___x_2352_, v___x_2353_); -if (v___x_2354_ == 0) +uint8_t v___x_4334_; +v___x_4334_ = l_Lean_Syntax_matchesNull(v___x_4332_, v___x_4331_); +if (v___x_4334_ == 0) { -lean_object* v___x_2355_; lean_object* v_env_2356_; lean_object* v___x_2357_; lean_object* v___x_2358_; lean_object* v___x_2359_; lean_object* v___x_2360_; lean_object* v___x_2361_; -v___x_2355_ = lean_st_ref_get(v___y_2350_); -v_env_2356_ = lean_ctor_get(v___x_2355_, 0); -lean_inc_ref(v_env_2356_); -lean_dec(v___x_2355_); -lean_inc_n(v_stx_2291_, 2); -v___x_2357_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2358_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2359_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2358_, v_env_2356_, v___x_2357_); -v___x_2360_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2361_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2359_, v___x_2360_, v___y_2345_, v___y_2346_, v___y_2347_, v___y_2348_, v___y_2349_, v___y_2350_); -lean_dec(v___x_2359_); -if (lean_obj_tag(v___x_2361_) == 0) +lean_object* v___x_4335_; lean_object* v_env_4336_; lean_object* v___x_4337_; lean_object* v___x_4338_; lean_object* v___x_4339_; lean_object* v___x_4340_; lean_object* v___x_4341_; +v___x_4335_ = lean_st_ref_get(v_a_2302_); +v_env_4336_ = lean_ctor_get(v___x_4335_, 0); +lean_inc_ref(v_env_4336_); +lean_dec(v___x_4335_); +lean_inc_n(v_stx_2296_, 2); +v___x_4337_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_4338_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_4339_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_4338_, v_env_4336_, v___x_4337_); +v___x_4340_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_4341_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_4339_, v___x_4340_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +lean_dec(v___x_4339_); +if (lean_obj_tag(v___x_4341_) == 0) { -lean_object* v_a_2362_; lean_object* v___x_2364_; uint8_t v_isShared_2365_; uint8_t v_isSharedCheck_2392_; -v_a_2362_ = lean_ctor_get(v___x_2361_, 0); -v_isSharedCheck_2392_ = !lean_is_exclusive(v___x_2361_); -if (v_isSharedCheck_2392_ == 0) +lean_object* v_a_4342_; lean_object* v___x_4344_; uint8_t v_isShared_4345_; uint8_t v_isSharedCheck_4372_; +v_a_4342_ = lean_ctor_get(v___x_4341_, 0); +v_isSharedCheck_4372_ = !lean_is_exclusive(v___x_4341_); +if (v_isSharedCheck_4372_ == 0) { -v___x_2364_ = v___x_2361_; -v_isShared_2365_ = v_isSharedCheck_2392_; -goto v_resetjp_2363_; +v___x_4344_ = v___x_4341_; +v_isShared_4345_ = v_isSharedCheck_4372_; +goto v_resetjp_4343_; } else { -lean_inc(v_a_2362_); -lean_dec(v___x_2361_); -v___x_2364_ = lean_box(0); -v_isShared_2365_ = v_isSharedCheck_2392_; -goto v_resetjp_2363_; +lean_inc(v_a_4342_); +lean_dec(v___x_4341_); +v___x_4344_ = lean_box(0); +v_isShared_4345_ = v_isSharedCheck_4372_; +goto v_resetjp_4343_; } -v_resetjp_2363_: +v_resetjp_4343_: { -lean_object* v_fst_2366_; lean_object* v___x_2368_; uint8_t v_isShared_2369_; uint8_t v_isSharedCheck_2390_; -v_fst_2366_ = lean_ctor_get(v_a_2362_, 0); -v_isSharedCheck_2390_ = !lean_is_exclusive(v_a_2362_); -if (v_isSharedCheck_2390_ == 0) +lean_object* v_fst_4346_; lean_object* v___x_4348_; uint8_t v_isShared_4349_; uint8_t v_isSharedCheck_4370_; +v_fst_4346_ = lean_ctor_get(v_a_4342_, 0); +v_isSharedCheck_4370_ = !lean_is_exclusive(v_a_4342_); +if (v_isSharedCheck_4370_ == 0) { -lean_object* v_unused_2391_; -v_unused_2391_ = lean_ctor_get(v_a_2362_, 1); -lean_dec(v_unused_2391_); -v___x_2368_ = v_a_2362_; -v_isShared_2369_ = v_isSharedCheck_2390_; -goto v_resetjp_2367_; +lean_object* v_unused_4371_; +v_unused_4371_ = lean_ctor_get(v_a_4342_, 1); +lean_dec(v_unused_4371_); +v___x_4348_ = v_a_4342_; +v_isShared_4349_ = v_isSharedCheck_4370_; +goto v_resetjp_4347_; } else { -lean_inc(v_fst_2366_); -lean_dec(v_a_2362_); -v___x_2368_ = lean_box(0); -v_isShared_2369_ = v_isSharedCheck_2390_; -goto v_resetjp_2367_; +lean_inc(v_fst_4346_); +lean_dec(v_a_4342_); +v___x_4348_ = lean_box(0); +v_isShared_4349_ = v_isSharedCheck_4370_; +goto v_resetjp_4347_; } -v_resetjp_2367_: +v_resetjp_4347_: { -if (lean_obj_tag(v_fst_2366_) == 0) +if (lean_obj_tag(v_fst_4346_) == 0) { -lean_object* v___x_2370_; lean_object* v___x_2371_; lean_object* v___x_2373_; -lean_del_object(v___x_2364_); -v___x_2370_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2371_ = l_Lean_MessageData_ofName(v___x_2357_); -lean_inc_ref(v___x_2371_); -if (v_isShared_2369_ == 0) +lean_object* v___x_4350_; lean_object* v___x_4351_; lean_object* v___x_4353_; +lean_del_object(v___x_4344_); +v___x_4350_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_4351_ = l_Lean_MessageData_ofName(v___x_4337_); +lean_inc_ref(v___x_4351_); +if (v_isShared_4349_ == 0) { -lean_ctor_set_tag(v___x_2368_, 7); -lean_ctor_set(v___x_2368_, 1, v___x_2371_); -lean_ctor_set(v___x_2368_, 0, v___x_2370_); -v___x_2373_ = v___x_2368_; -goto v_reusejp_2372_; +lean_ctor_set_tag(v___x_4348_, 7); +lean_ctor_set(v___x_4348_, 1, v___x_4351_); +lean_ctor_set(v___x_4348_, 0, v___x_4350_); +v___x_4353_ = v___x_4348_; +goto v_reusejp_4352_; } else { -lean_object* v_reuseFailAlloc_2385_; -v_reuseFailAlloc_2385_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2385_, 0, v___x_2370_); -lean_ctor_set(v_reuseFailAlloc_2385_, 1, v___x_2371_); -v___x_2373_ = v_reuseFailAlloc_2385_; -goto v_reusejp_2372_; +lean_object* v_reuseFailAlloc_4365_; +v_reuseFailAlloc_4365_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4365_, 0, v___x_4350_); +lean_ctor_set(v_reuseFailAlloc_4365_, 1, v___x_4351_); +v___x_4353_ = v_reuseFailAlloc_4365_; +goto v_reusejp_4352_; } -v_reusejp_2372_: +v_reusejp_4352_: { -lean_object* v___x_2374_; lean_object* v___x_2375_; lean_object* v___x_2376_; lean_object* v___x_2377_; lean_object* v___x_2378_; lean_object* v___x_2379_; lean_object* v___x_2380_; lean_object* v___x_2381_; lean_object* v___x_2382_; lean_object* v___x_2383_; lean_object* v___x_2384_; -v___x_2374_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2375_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2375_, 0, v___x_2373_); -lean_ctor_set(v___x_2375_, 1, v___x_2374_); -v___x_2376_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2377_ = l_Lean_indentD(v___x_2376_); -v___x_2378_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2378_, 0, v___x_2375_); -lean_ctor_set(v___x_2378_, 1, v___x_2377_); -v___x_2379_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_4354_; lean_object* v___x_4355_; lean_object* v___x_4356_; lean_object* v___x_4357_; lean_object* v___x_4358_; lean_object* v___x_4359_; lean_object* v___x_4360_; lean_object* v___x_4361_; lean_object* v___x_4362_; lean_object* v___x_4363_; lean_object* v___x_4364_; +v___x_4354_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); +v___x_4355_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4355_, 0, v___x_4353_); +lean_ctor_set(v___x_4355_, 1, v___x_4354_); +v___x_4356_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_4357_ = l_Lean_indentD(v___x_4356_); +v___x_4358_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4358_, 0, v___x_4355_); +lean_ctor_set(v___x_4358_, 1, v___x_4357_); +v___x_4359_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_4360_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4360_, 0, v___x_4358_); +lean_ctor_set(v___x_4360_, 1, v___x_4359_); +v___x_4361_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4361_, 0, v___x_4360_); +lean_ctor_set(v___x_4361_, 1, v___x_4351_); +v___x_4362_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_4363_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4363_, 0, v___x_4361_); +lean_ctor_set(v___x_4363_, 1, v___x_4362_); +v___x_4364_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_4363_, v_a_2297_, v_a_2298_, v_a_2299_, v_a_2300_, v_a_2301_, v_a_2302_); +return v___x_4364_; +} +} +else +{ +lean_object* v_val_4366_; lean_object* v___x_4368_; +lean_del_object(v___x_4348_); +lean_dec(v___x_4337_); +lean_dec(v_stx_2296_); +v_val_4366_ = lean_ctor_get(v_fst_4346_, 0); +lean_inc(v_val_4366_); +lean_dec_ref(v_fst_4346_); +if (v_isShared_4345_ == 0) +{ +lean_ctor_set(v___x_4344_, 0, v_val_4366_); +v___x_4368_ = v___x_4344_; +goto v_reusejp_4367_; +} +else +{ +lean_object* v_reuseFailAlloc_4369_; +v_reuseFailAlloc_4369_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4369_, 0, v_val_4366_); +v___x_4368_ = v_reuseFailAlloc_4369_; +goto v_reusejp_4367_; +} +v_reusejp_4367_: +{ +return v___x_4368_; +} +} +} +} +} +else +{ +lean_object* v_a_4373_; lean_object* v___x_4375_; uint8_t v_isShared_4376_; uint8_t v_isSharedCheck_4380_; +lean_dec(v___x_4337_); +lean_dec(v_stx_2296_); +v_a_4373_ = lean_ctor_get(v___x_4341_, 0); +v_isSharedCheck_4380_ = !lean_is_exclusive(v___x_4341_); +if (v_isSharedCheck_4380_ == 0) +{ +v___x_4375_ = v___x_4341_; +v_isShared_4376_ = v_isSharedCheck_4380_; +goto v_resetjp_4374_; +} +else +{ +lean_inc(v_a_4373_); +lean_dec(v___x_4341_); +v___x_4375_ = lean_box(0); +v_isShared_4376_ = v_isSharedCheck_4380_; +goto v_resetjp_4374_; +} +v_resetjp_4374_: +{ +lean_object* v___x_4378_; +if (v_isShared_4376_ == 0) +{ +v___x_4378_ = v___x_4375_; +goto v_reusejp_4377_; +} +else +{ +lean_object* v_reuseFailAlloc_4379_; +v_reuseFailAlloc_4379_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4379_, 0, v_a_4373_); +v___x_4378_ = v_reuseFailAlloc_4379_; +goto v_reusejp_4377_; +} +v_reusejp_4377_: +{ +return v___x_4378_; +} +} +} +} +else +{ +lean_dec(v_stx_2296_); +goto v___jp_4327_; +} +} +else +{ +lean_dec(v___x_4332_); +lean_dec(v_stx_2296_); +goto v___jp_4327_; +} +v___jp_4327_: +{ +lean_object* v___x_4328_; lean_object* v___x_4329_; lean_object* v___x_4330_; +v___x_4328_ = l_Lean_NameSet_empty; +v___x_4329_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_4329_, 0, v___x_4326_); +lean_ctor_set(v___x_4329_, 1, v___x_4328_); +lean_ctor_set_uint8(v___x_4329_, sizeof(void*)*2, v___x_2535_); +lean_ctor_set_uint8(v___x_4329_, sizeof(void*)*2 + 1, v___x_2535_); +lean_ctor_set_uint8(v___x_4329_, sizeof(void*)*2 + 2, v___x_2533_); +v___x_4330_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4330_, 0, v___x_4329_); +return v___x_4330_; +} +} +} +else +{ +lean_object* v___x_4381_; lean_object* v___x_4382_; lean_object* v___x_4383_; lean_object* v___x_4384_; +lean_del_object(v___x_2333_); +lean_dec(v_stx_2296_); +v___x_4381_ = lean_unsigned_to_nat(0u); +v___x_4382_ = l_Lean_NameSet_empty; +v___x_4383_ = lean_alloc_ctor(0, 2, 3); +lean_ctor_set(v___x_4383_, 0, v___x_4381_); +lean_ctor_set(v___x_4383_, 1, v___x_4382_); +lean_ctor_set_uint8(v___x_4383_, sizeof(void*)*2, v___x_2532_); +lean_ctor_set_uint8(v___x_4383_, sizeof(void*)*2 + 1, v___x_2533_); +lean_ctor_set_uint8(v___x_4383_, sizeof(void*)*2 + 2, v___x_2532_); +v___x_4384_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4384_, 0, v___x_4383_); +return v___x_4384_; +} +} +else +{ +lean_object* v___x_4385_; lean_object* v___x_4386_; +lean_del_object(v___x_2333_); +lean_dec(v_stx_2296_); +v___x_4385_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__83); +v___x_4386_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4386_, 0, v___x_4385_); +return v___x_4386_; +} +v___jp_2349_: +{ +lean_object* v___x_2356_; lean_object* v___x_2357_; lean_object* v___x_2358_; uint8_t v___x_2359_; +v___x_2356_ = lean_unsigned_to_nat(2u); +v___x_2357_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2356_); +v___x_2358_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); +v___x_2359_ = l_Lean_Syntax_isOfKind(v___x_2357_, v___x_2358_); +if (v___x_2359_ == 0) +{ +lean_object* v___x_2360_; lean_object* v_env_2361_; lean_object* v___x_2362_; lean_object* v___x_2363_; lean_object* v___x_2364_; lean_object* v___x_2365_; lean_object* v___x_2366_; +v___x_2360_ = lean_st_ref_get(v___y_2355_); +v_env_2361_ = lean_ctor_get(v___x_2360_, 0); +lean_inc_ref(v_env_2361_); +lean_dec(v___x_2360_); +lean_inc_n(v_stx_2296_, 2); +v___x_2362_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2363_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2364_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2363_, v_env_2361_, v___x_2362_); +v___x_2365_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2366_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2364_, v___x_2365_, v___y_2350_, v___y_2351_, v___y_2352_, v___y_2353_, v___y_2354_, v___y_2355_); +lean_dec(v___x_2364_); +if (lean_obj_tag(v___x_2366_) == 0) +{ +lean_object* v_a_2367_; lean_object* v___x_2369_; uint8_t v_isShared_2370_; uint8_t v_isSharedCheck_2397_; +v_a_2367_ = lean_ctor_get(v___x_2366_, 0); +v_isSharedCheck_2397_ = !lean_is_exclusive(v___x_2366_); +if (v_isSharedCheck_2397_ == 0) +{ +v___x_2369_ = v___x_2366_; +v_isShared_2370_ = v_isSharedCheck_2397_; +goto v_resetjp_2368_; +} +else +{ +lean_inc(v_a_2367_); +lean_dec(v___x_2366_); +v___x_2369_ = lean_box(0); +v_isShared_2370_ = v_isSharedCheck_2397_; +goto v_resetjp_2368_; +} +v_resetjp_2368_: +{ +lean_object* v_fst_2371_; lean_object* v___x_2373_; uint8_t v_isShared_2374_; uint8_t v_isSharedCheck_2395_; +v_fst_2371_ = lean_ctor_get(v_a_2367_, 0); +v_isSharedCheck_2395_ = !lean_is_exclusive(v_a_2367_); +if (v_isSharedCheck_2395_ == 0) +{ +lean_object* v_unused_2396_; +v_unused_2396_ = lean_ctor_get(v_a_2367_, 1); +lean_dec(v_unused_2396_); +v___x_2373_ = v_a_2367_; +v_isShared_2374_ = v_isSharedCheck_2395_; +goto v_resetjp_2372_; +} +else +{ +lean_inc(v_fst_2371_); +lean_dec(v_a_2367_); +v___x_2373_ = lean_box(0); +v_isShared_2374_ = v_isSharedCheck_2395_; +goto v_resetjp_2372_; +} +v_resetjp_2372_: +{ +if (lean_obj_tag(v_fst_2371_) == 0) +{ +lean_object* v___x_2375_; lean_object* v___x_2376_; lean_object* v___x_2378_; +lean_del_object(v___x_2369_); +v___x_2375_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2376_ = l_Lean_MessageData_ofName(v___x_2362_); +lean_inc_ref(v___x_2376_); +if (v_isShared_2374_ == 0) +{ +lean_ctor_set_tag(v___x_2373_, 7); +lean_ctor_set(v___x_2373_, 1, v___x_2376_); +lean_ctor_set(v___x_2373_, 0, v___x_2375_); +v___x_2378_ = v___x_2373_; +goto v_reusejp_2377_; +} +else +{ +lean_object* v_reuseFailAlloc_2390_; +v_reuseFailAlloc_2390_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2390_, 0, v___x_2375_); +lean_ctor_set(v_reuseFailAlloc_2390_, 1, v___x_2376_); +v___x_2378_ = v_reuseFailAlloc_2390_; +goto v_reusejp_2377_; +} +v_reusejp_2377_: +{ +lean_object* v___x_2379_; lean_object* v___x_2380_; lean_object* v___x_2381_; lean_object* v___x_2382_; lean_object* v___x_2383_; lean_object* v___x_2384_; lean_object* v___x_2385_; lean_object* v___x_2386_; lean_object* v___x_2387_; lean_object* v___x_2388_; lean_object* v___x_2389_; +v___x_2379_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2380_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2380_, 0, v___x_2378_); lean_ctor_set(v___x_2380_, 1, v___x_2379_); -v___x_2381_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2381_, 0, v___x_2380_); -lean_ctor_set(v___x_2381_, 1, v___x_2371_); -v___x_2382_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2381_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2382_ = l_Lean_indentD(v___x_2381_); v___x_2383_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2383_, 0, v___x_2381_); +lean_ctor_set(v___x_2383_, 0, v___x_2380_); lean_ctor_set(v___x_2383_, 1, v___x_2382_); -v___x_2384_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2383_, v___y_2345_, v___y_2346_, v___y_2347_, v___y_2348_, v___y_2349_, v___y_2350_); -return v___x_2384_; +v___x_2384_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2385_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2385_, 0, v___x_2383_); +lean_ctor_set(v___x_2385_, 1, v___x_2384_); +v___x_2386_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2386_, 0, v___x_2385_); +lean_ctor_set(v___x_2386_, 1, v___x_2376_); +v___x_2387_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2388_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2388_, 0, v___x_2386_); +lean_ctor_set(v___x_2388_, 1, v___x_2387_); +v___x_2389_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2388_, v___y_2350_, v___y_2351_, v___y_2352_, v___y_2353_, v___y_2354_, v___y_2355_); +return v___x_2389_; } } else { -lean_object* v_val_2386_; lean_object* v___x_2388_; -lean_del_object(v___x_2368_); -lean_dec(v___x_2357_); -lean_dec(v_stx_2291_); -v_val_2386_ = lean_ctor_get(v_fst_2366_, 0); -lean_inc(v_val_2386_); -lean_dec_ref(v_fst_2366_); -if (v_isShared_2365_ == 0) +lean_object* v_val_2391_; lean_object* v___x_2393_; +lean_del_object(v___x_2373_); +lean_dec(v___x_2362_); +lean_dec(v_stx_2296_); +v_val_2391_ = lean_ctor_get(v_fst_2371_, 0); +lean_inc(v_val_2391_); +lean_dec_ref(v_fst_2371_); +if (v_isShared_2370_ == 0) { -lean_ctor_set(v___x_2364_, 0, v_val_2386_); -v___x_2388_ = v___x_2364_; -goto v_reusejp_2387_; +lean_ctor_set(v___x_2369_, 0, v_val_2391_); +v___x_2393_ = v___x_2369_; +goto v_reusejp_2392_; } else { -lean_object* v_reuseFailAlloc_2389_; -v_reuseFailAlloc_2389_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2389_, 0, v_val_2386_); -v___x_2388_ = v_reuseFailAlloc_2389_; -goto v_reusejp_2387_; +lean_object* v_reuseFailAlloc_2394_; +v_reuseFailAlloc_2394_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2394_, 0, v_val_2391_); +v___x_2393_ = v_reuseFailAlloc_2394_; +goto v_reusejp_2392_; } -v_reusejp_2387_: +v_reusejp_2392_: { -return v___x_2388_; +return v___x_2393_; } } } @@ -13914,265 +13948,265 @@ return v___x_2388_; } else { -lean_object* v_a_2393_; lean_object* v___x_2395_; uint8_t v_isShared_2396_; uint8_t v_isSharedCheck_2400_; -lean_dec(v___x_2357_); -lean_dec(v_stx_2291_); -v_a_2393_ = lean_ctor_get(v___x_2361_, 0); -v_isSharedCheck_2400_ = !lean_is_exclusive(v___x_2361_); -if (v_isSharedCheck_2400_ == 0) +lean_object* v_a_2398_; lean_object* v___x_2400_; uint8_t v_isShared_2401_; uint8_t v_isSharedCheck_2405_; +lean_dec(v___x_2362_); +lean_dec(v_stx_2296_); +v_a_2398_ = lean_ctor_get(v___x_2366_, 0); +v_isSharedCheck_2405_ = !lean_is_exclusive(v___x_2366_); +if (v_isSharedCheck_2405_ == 0) { -v___x_2395_ = v___x_2361_; -v_isShared_2396_ = v_isSharedCheck_2400_; -goto v_resetjp_2394_; +v___x_2400_ = v___x_2366_; +v_isShared_2401_ = v_isSharedCheck_2405_; +goto v_resetjp_2399_; } else { -lean_inc(v_a_2393_); -lean_dec(v___x_2361_); -v___x_2395_ = lean_box(0); -v_isShared_2396_ = v_isSharedCheck_2400_; -goto v_resetjp_2394_; +lean_inc(v_a_2398_); +lean_dec(v___x_2366_); +v___x_2400_ = lean_box(0); +v_isShared_2401_ = v_isSharedCheck_2405_; +goto v_resetjp_2399_; } -v_resetjp_2394_: +v_resetjp_2399_: { -lean_object* v___x_2398_; -if (v_isShared_2396_ == 0) +lean_object* v___x_2403_; +if (v_isShared_2401_ == 0) { -v___x_2398_ = v___x_2395_; -goto v_reusejp_2397_; +v___x_2403_ = v___x_2400_; +goto v_reusejp_2402_; } else { -lean_object* v_reuseFailAlloc_2399_; -v_reuseFailAlloc_2399_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2399_, 0, v_a_2393_); -v___x_2398_ = v_reuseFailAlloc_2399_; -goto v_reusejp_2397_; +lean_object* v_reuseFailAlloc_2404_; +v_reuseFailAlloc_2404_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2404_, 0, v_a_2398_); +v___x_2403_ = v_reuseFailAlloc_2404_; +goto v_reusejp_2402_; } -v_reusejp_2397_: +v_reusejp_2402_: { -return v___x_2398_; +return v___x_2403_; } } } } else { -lean_object* v___x_2401_; lean_object* v___x_2402_; lean_object* v___x_2403_; lean_object* v___x_2404_; lean_object* v___x_2405_; -v___x_2401_ = lean_unsigned_to_nat(7u); -v___x_2402_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2401_); -v___x_2403_ = lean_unsigned_to_nat(8u); -v___x_2404_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2403_); -lean_dec(v_stx_2291_); -v___x_2405_ = l_Lean_Syntax_getOptional_x3f(v___x_2404_); -lean_dec(v___x_2404_); -if (lean_obj_tag(v___x_2405_) == 0) +lean_object* v___x_2406_; lean_object* v___x_2407_; lean_object* v___x_2408_; lean_object* v___x_2409_; lean_object* v___x_2410_; +v___x_2406_ = lean_unsigned_to_nat(7u); +v___x_2407_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2406_); +v___x_2408_ = lean_unsigned_to_nat(8u); +v___x_2409_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2408_); +lean_dec(v_stx_2296_); +v___x_2410_ = l_Lean_Syntax_getOptional_x3f(v___x_2409_); +lean_dec(v___x_2409_); +if (lean_obj_tag(v___x_2410_) == 0) { -lean_object* v___x_2406_; -v___x_2406_ = lean_box(0); -v___y_2300_ = v___y_2348_; -v___y_2301_ = v___y_2347_; -v___y_2302_ = v___y_2346_; -v___y_2303_ = v___y_2350_; -v___y_2304_ = v___y_2349_; -v___y_2305_ = v___y_2345_; -v___y_2306_ = v___x_2402_; -v___y_2307_ = v___x_2406_; -goto v___jp_2299_; +lean_object* v___x_2411_; +v___x_2411_ = lean_box(0); +v___y_2305_ = v___y_2354_; +v___y_2306_ = v___x_2407_; +v___y_2307_ = v___y_2350_; +v___y_2308_ = v___y_2351_; +v___y_2309_ = v___y_2355_; +v___y_2310_ = v___y_2353_; +v___y_2311_ = v___y_2352_; +v___y_2312_ = v___x_2411_; +goto v___jp_2304_; } else { -lean_object* v_val_2407_; lean_object* v___x_2409_; uint8_t v_isShared_2410_; uint8_t v_isSharedCheck_2414_; -v_val_2407_ = lean_ctor_get(v___x_2405_, 0); -v_isSharedCheck_2414_ = !lean_is_exclusive(v___x_2405_); -if (v_isSharedCheck_2414_ == 0) +lean_object* v_val_2412_; lean_object* v___x_2414_; uint8_t v_isShared_2415_; uint8_t v_isSharedCheck_2419_; +v_val_2412_ = lean_ctor_get(v___x_2410_, 0); +v_isSharedCheck_2419_ = !lean_is_exclusive(v___x_2410_); +if (v_isSharedCheck_2419_ == 0) { -v___x_2409_ = v___x_2405_; -v_isShared_2410_ = v_isSharedCheck_2414_; -goto v_resetjp_2408_; +v___x_2414_ = v___x_2410_; +v_isShared_2415_ = v_isSharedCheck_2419_; +goto v_resetjp_2413_; } else { -lean_inc(v_val_2407_); -lean_dec(v___x_2405_); -v___x_2409_ = lean_box(0); -v_isShared_2410_ = v_isSharedCheck_2414_; -goto v_resetjp_2408_; +lean_inc(v_val_2412_); +lean_dec(v___x_2410_); +v___x_2414_ = lean_box(0); +v_isShared_2415_ = v_isSharedCheck_2419_; +goto v_resetjp_2413_; } -v_resetjp_2408_: +v_resetjp_2413_: { -lean_object* v___x_2412_; -if (v_isShared_2410_ == 0) +lean_object* v___x_2417_; +if (v_isShared_2415_ == 0) { -v___x_2412_ = v___x_2409_; -goto v_reusejp_2411_; +v___x_2417_ = v___x_2414_; +goto v_reusejp_2416_; } else { -lean_object* v_reuseFailAlloc_2413_; -v_reuseFailAlloc_2413_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2413_, 0, v_val_2407_); -v___x_2412_ = v_reuseFailAlloc_2413_; -goto v_reusejp_2411_; +lean_object* v_reuseFailAlloc_2418_; +v_reuseFailAlloc_2418_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2418_, 0, v_val_2412_); +v___x_2417_ = v_reuseFailAlloc_2418_; +goto v_reusejp_2416_; } -v_reusejp_2411_: +v_reusejp_2416_: { -v___y_2300_ = v___y_2348_; -v___y_2301_ = v___y_2347_; -v___y_2302_ = v___y_2346_; -v___y_2303_ = v___y_2350_; -v___y_2304_ = v___y_2349_; -v___y_2305_ = v___y_2345_; -v___y_2306_ = v___x_2402_; -v___y_2307_ = v___x_2412_; -goto v___jp_2299_; +v___y_2305_ = v___y_2354_; +v___y_2306_ = v___x_2407_; +v___y_2307_ = v___y_2350_; +v___y_2308_ = v___y_2351_; +v___y_2309_ = v___y_2355_; +v___y_2310_ = v___y_2353_; +v___y_2311_ = v___y_2352_; +v___y_2312_ = v___x_2417_; +goto v___jp_2304_; } } } } } -v___jp_2415_: +v___jp_2420_: { -lean_object* v___x_2422_; lean_object* v___x_2423_; lean_object* v___x_2424_; uint8_t v___x_2425_; -v___x_2422_ = lean_unsigned_to_nat(2u); -v___x_2423_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2422_); -v___x_2424_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); -v___x_2425_ = l_Lean_Syntax_isOfKind(v___x_2423_, v___x_2424_); -if (v___x_2425_ == 0) +lean_object* v___x_2427_; lean_object* v___x_2428_; lean_object* v___x_2429_; uint8_t v___x_2430_; +v___x_2427_ = lean_unsigned_to_nat(2u); +v___x_2428_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2427_); +v___x_2429_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__1)); +v___x_2430_ = l_Lean_Syntax_isOfKind(v___x_2428_, v___x_2429_); +if (v___x_2430_ == 0) { -lean_object* v___x_2426_; lean_object* v_env_2427_; lean_object* v___x_2428_; lean_object* v___x_2429_; lean_object* v___x_2430_; lean_object* v___x_2431_; lean_object* v___x_2432_; -lean_del_object(v___x_2328_); -v___x_2426_ = lean_st_ref_get(v___y_2421_); -v_env_2427_ = lean_ctor_get(v___x_2426_, 0); -lean_inc_ref(v_env_2427_); -lean_dec(v___x_2426_); -lean_inc_n(v_stx_2291_, 2); -v___x_2428_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2429_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2430_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2429_, v_env_2427_, v___x_2428_); -v___x_2431_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2432_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2430_, v___x_2431_, v___y_2416_, v___y_2417_, v___y_2418_, v___y_2419_, v___y_2420_, v___y_2421_); -lean_dec(v___x_2430_); -if (lean_obj_tag(v___x_2432_) == 0) +lean_object* v___x_2431_; lean_object* v_env_2432_; lean_object* v___x_2433_; lean_object* v___x_2434_; lean_object* v___x_2435_; lean_object* v___x_2436_; lean_object* v___x_2437_; +lean_del_object(v___x_2333_); +v___x_2431_ = lean_st_ref_get(v___y_2426_); +v_env_2432_ = lean_ctor_get(v___x_2431_, 0); +lean_inc_ref(v_env_2432_); +lean_dec(v___x_2431_); +lean_inc_n(v_stx_2296_, 2); +v___x_2433_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2434_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2435_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2434_, v_env_2432_, v___x_2433_); +v___x_2436_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2437_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2435_, v___x_2436_, v___y_2421_, v___y_2422_, v___y_2423_, v___y_2424_, v___y_2425_, v___y_2426_); +lean_dec(v___x_2435_); +if (lean_obj_tag(v___x_2437_) == 0) { -lean_object* v_a_2433_; lean_object* v___x_2435_; uint8_t v_isShared_2436_; uint8_t v_isSharedCheck_2463_; -v_a_2433_ = lean_ctor_get(v___x_2432_, 0); -v_isSharedCheck_2463_ = !lean_is_exclusive(v___x_2432_); -if (v_isSharedCheck_2463_ == 0) +lean_object* v_a_2438_; lean_object* v___x_2440_; uint8_t v_isShared_2441_; uint8_t v_isSharedCheck_2468_; +v_a_2438_ = lean_ctor_get(v___x_2437_, 0); +v_isSharedCheck_2468_ = !lean_is_exclusive(v___x_2437_); +if (v_isSharedCheck_2468_ == 0) { -v___x_2435_ = v___x_2432_; -v_isShared_2436_ = v_isSharedCheck_2463_; -goto v_resetjp_2434_; +v___x_2440_ = v___x_2437_; +v_isShared_2441_ = v_isSharedCheck_2468_; +goto v_resetjp_2439_; } else { -lean_inc(v_a_2433_); -lean_dec(v___x_2432_); -v___x_2435_ = lean_box(0); -v_isShared_2436_ = v_isSharedCheck_2463_; -goto v_resetjp_2434_; +lean_inc(v_a_2438_); +lean_dec(v___x_2437_); +v___x_2440_ = lean_box(0); +v_isShared_2441_ = v_isSharedCheck_2468_; +goto v_resetjp_2439_; } -v_resetjp_2434_: +v_resetjp_2439_: { -lean_object* v_fst_2437_; lean_object* v___x_2439_; uint8_t v_isShared_2440_; uint8_t v_isSharedCheck_2461_; -v_fst_2437_ = lean_ctor_get(v_a_2433_, 0); -v_isSharedCheck_2461_ = !lean_is_exclusive(v_a_2433_); -if (v_isSharedCheck_2461_ == 0) +lean_object* v_fst_2442_; lean_object* v___x_2444_; uint8_t v_isShared_2445_; uint8_t v_isSharedCheck_2466_; +v_fst_2442_ = lean_ctor_get(v_a_2438_, 0); +v_isSharedCheck_2466_ = !lean_is_exclusive(v_a_2438_); +if (v_isSharedCheck_2466_ == 0) { -lean_object* v_unused_2462_; -v_unused_2462_ = lean_ctor_get(v_a_2433_, 1); -lean_dec(v_unused_2462_); -v___x_2439_ = v_a_2433_; -v_isShared_2440_ = v_isSharedCheck_2461_; -goto v_resetjp_2438_; +lean_object* v_unused_2467_; +v_unused_2467_ = lean_ctor_get(v_a_2438_, 1); +lean_dec(v_unused_2467_); +v___x_2444_ = v_a_2438_; +v_isShared_2445_ = v_isSharedCheck_2466_; +goto v_resetjp_2443_; } else { -lean_inc(v_fst_2437_); -lean_dec(v_a_2433_); -v___x_2439_ = lean_box(0); -v_isShared_2440_ = v_isSharedCheck_2461_; -goto v_resetjp_2438_; +lean_inc(v_fst_2442_); +lean_dec(v_a_2438_); +v___x_2444_ = lean_box(0); +v_isShared_2445_ = v_isSharedCheck_2466_; +goto v_resetjp_2443_; } -v_resetjp_2438_: +v_resetjp_2443_: { -if (lean_obj_tag(v_fst_2437_) == 0) +if (lean_obj_tag(v_fst_2442_) == 0) { -lean_object* v___x_2441_; lean_object* v___x_2442_; lean_object* v___x_2444_; -lean_del_object(v___x_2435_); -v___x_2441_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2442_ = l_Lean_MessageData_ofName(v___x_2428_); -lean_inc_ref(v___x_2442_); -if (v_isShared_2440_ == 0) +lean_object* v___x_2446_; lean_object* v___x_2447_; lean_object* v___x_2449_; +lean_del_object(v___x_2440_); +v___x_2446_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2447_ = l_Lean_MessageData_ofName(v___x_2433_); +lean_inc_ref(v___x_2447_); +if (v_isShared_2445_ == 0) { -lean_ctor_set_tag(v___x_2439_, 7); -lean_ctor_set(v___x_2439_, 1, v___x_2442_); -lean_ctor_set(v___x_2439_, 0, v___x_2441_); -v___x_2444_ = v___x_2439_; -goto v_reusejp_2443_; +lean_ctor_set_tag(v___x_2444_, 7); +lean_ctor_set(v___x_2444_, 1, v___x_2447_); +lean_ctor_set(v___x_2444_, 0, v___x_2446_); +v___x_2449_ = v___x_2444_; +goto v_reusejp_2448_; } else { -lean_object* v_reuseFailAlloc_2456_; -v_reuseFailAlloc_2456_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2456_, 0, v___x_2441_); -lean_ctor_set(v_reuseFailAlloc_2456_, 1, v___x_2442_); -v___x_2444_ = v_reuseFailAlloc_2456_; -goto v_reusejp_2443_; +lean_object* v_reuseFailAlloc_2461_; +v_reuseFailAlloc_2461_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2461_, 0, v___x_2446_); +lean_ctor_set(v_reuseFailAlloc_2461_, 1, v___x_2447_); +v___x_2449_ = v_reuseFailAlloc_2461_; +goto v_reusejp_2448_; } -v_reusejp_2443_: +v_reusejp_2448_: { -lean_object* v___x_2445_; lean_object* v___x_2446_; lean_object* v___x_2447_; lean_object* v___x_2448_; lean_object* v___x_2449_; lean_object* v___x_2450_; lean_object* v___x_2451_; lean_object* v___x_2452_; lean_object* v___x_2453_; lean_object* v___x_2454_; lean_object* v___x_2455_; -v___x_2445_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2446_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2446_, 0, v___x_2444_); -lean_ctor_set(v___x_2446_, 1, v___x_2445_); -v___x_2447_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2448_ = l_Lean_indentD(v___x_2447_); -v___x_2449_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2449_, 0, v___x_2446_); -lean_ctor_set(v___x_2449_, 1, v___x_2448_); -v___x_2450_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2450_; lean_object* v___x_2451_; lean_object* v___x_2452_; lean_object* v___x_2453_; lean_object* v___x_2454_; lean_object* v___x_2455_; lean_object* v___x_2456_; lean_object* v___x_2457_; lean_object* v___x_2458_; lean_object* v___x_2459_; lean_object* v___x_2460_; +v___x_2450_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2451_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2451_, 0, v___x_2449_); lean_ctor_set(v___x_2451_, 1, v___x_2450_); -v___x_2452_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2452_, 0, v___x_2451_); -lean_ctor_set(v___x_2452_, 1, v___x_2442_); -v___x_2453_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2452_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2453_ = l_Lean_indentD(v___x_2452_); v___x_2454_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2454_, 0, v___x_2452_); +lean_ctor_set(v___x_2454_, 0, v___x_2451_); lean_ctor_set(v___x_2454_, 1, v___x_2453_); -v___x_2455_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2454_, v___y_2416_, v___y_2417_, v___y_2418_, v___y_2419_, v___y_2420_, v___y_2421_); -return v___x_2455_; +v___x_2455_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2456_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2456_, 0, v___x_2454_); +lean_ctor_set(v___x_2456_, 1, v___x_2455_); +v___x_2457_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2457_, 0, v___x_2456_); +lean_ctor_set(v___x_2457_, 1, v___x_2447_); +v___x_2458_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2459_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2459_, 0, v___x_2457_); +lean_ctor_set(v___x_2459_, 1, v___x_2458_); +v___x_2460_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2459_, v___y_2421_, v___y_2422_, v___y_2423_, v___y_2424_, v___y_2425_, v___y_2426_); +return v___x_2460_; } } else { -lean_object* v_val_2457_; lean_object* v___x_2459_; -lean_del_object(v___x_2439_); -lean_dec(v___x_2428_); -lean_dec(v_stx_2291_); -v_val_2457_ = lean_ctor_get(v_fst_2437_, 0); -lean_inc(v_val_2457_); -lean_dec_ref(v_fst_2437_); -if (v_isShared_2436_ == 0) +lean_object* v_val_2462_; lean_object* v___x_2464_; +lean_del_object(v___x_2444_); +lean_dec(v___x_2433_); +lean_dec(v_stx_2296_); +v_val_2462_ = lean_ctor_get(v_fst_2442_, 0); +lean_inc(v_val_2462_); +lean_dec_ref(v_fst_2442_); +if (v_isShared_2441_ == 0) { -lean_ctor_set(v___x_2435_, 0, v_val_2457_); -v___x_2459_ = v___x_2435_; -goto v_reusejp_2458_; +lean_ctor_set(v___x_2440_, 0, v_val_2462_); +v___x_2464_ = v___x_2440_; +goto v_reusejp_2463_; } else { -lean_object* v_reuseFailAlloc_2460_; -v_reuseFailAlloc_2460_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2460_, 0, v_val_2457_); -v___x_2459_ = v_reuseFailAlloc_2460_; -goto v_reusejp_2458_; +lean_object* v_reuseFailAlloc_2465_; +v_reuseFailAlloc_2465_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2465_, 0, v_val_2462_); +v___x_2464_ = v_reuseFailAlloc_2465_; +goto v_reusejp_2463_; } -v_reusejp_2458_: +v_reusejp_2463_: { -return v___x_2459_; +return v___x_2464_; } } } @@ -14180,190 +14214,190 @@ return v___x_2459_; } else { -lean_object* v_a_2464_; lean_object* v___x_2466_; uint8_t v_isShared_2467_; uint8_t v_isSharedCheck_2471_; -lean_dec(v___x_2428_); -lean_dec(v_stx_2291_); -v_a_2464_ = lean_ctor_get(v___x_2432_, 0); -v_isSharedCheck_2471_ = !lean_is_exclusive(v___x_2432_); -if (v_isSharedCheck_2471_ == 0) +lean_object* v_a_2469_; lean_object* v___x_2471_; uint8_t v_isShared_2472_; uint8_t v_isSharedCheck_2476_; +lean_dec(v___x_2433_); +lean_dec(v_stx_2296_); +v_a_2469_ = lean_ctor_get(v___x_2437_, 0); +v_isSharedCheck_2476_ = !lean_is_exclusive(v___x_2437_); +if (v_isSharedCheck_2476_ == 0) { -v___x_2466_ = v___x_2432_; -v_isShared_2467_ = v_isSharedCheck_2471_; -goto v_resetjp_2465_; +v___x_2471_ = v___x_2437_; +v_isShared_2472_ = v_isSharedCheck_2476_; +goto v_resetjp_2470_; } else { -lean_inc(v_a_2464_); -lean_dec(v___x_2432_); -v___x_2466_ = lean_box(0); -v_isShared_2467_ = v_isSharedCheck_2471_; -goto v_resetjp_2465_; +lean_inc(v_a_2469_); +lean_dec(v___x_2437_); +v___x_2471_ = lean_box(0); +v_isShared_2472_ = v_isSharedCheck_2476_; +goto v_resetjp_2470_; } -v_resetjp_2465_: +v_resetjp_2470_: { -lean_object* v___x_2469_; -if (v_isShared_2467_ == 0) +lean_object* v___x_2474_; +if (v_isShared_2472_ == 0) { -v___x_2469_ = v___x_2466_; -goto v_reusejp_2468_; +v___x_2474_ = v___x_2471_; +goto v_reusejp_2473_; } else { -lean_object* v_reuseFailAlloc_2470_; -v_reuseFailAlloc_2470_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2470_, 0, v_a_2464_); -v___x_2469_ = v_reuseFailAlloc_2470_; -goto v_reusejp_2468_; +lean_object* v_reuseFailAlloc_2475_; +v_reuseFailAlloc_2475_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2475_, 0, v_a_2469_); +v___x_2474_ = v_reuseFailAlloc_2475_; +goto v_reusejp_2473_; } -v_reusejp_2468_: +v_reusejp_2473_: { -return v___x_2469_; +return v___x_2474_; } } } } else { -lean_object* v___x_2472_; lean_object* v___x_2473_; lean_object* v___x_2474_; uint8_t v___x_2475_; -v___x_2472_ = lean_unsigned_to_nat(3u); -v___x_2473_ = l_Lean_Syntax_getArg(v_stx_2291_, v___x_2472_); -v___x_2474_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__11)); -v___x_2475_ = l_Lean_Syntax_isOfKind(v___x_2473_, v___x_2474_); -if (v___x_2475_ == 0) +lean_object* v___x_2477_; lean_object* v___x_2478_; lean_object* v___x_2479_; uint8_t v___x_2480_; +v___x_2477_ = lean_unsigned_to_nat(3u); +v___x_2478_ = l_Lean_Syntax_getArg(v_stx_2296_, v___x_2477_); +v___x_2479_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofElem___closed__11)); +v___x_2480_ = l_Lean_Syntax_isOfKind(v___x_2478_, v___x_2479_); +if (v___x_2480_ == 0) { -lean_object* v___x_2476_; lean_object* v_env_2477_; lean_object* v___x_2478_; lean_object* v___x_2479_; lean_object* v___x_2480_; lean_object* v___x_2481_; lean_object* v___x_2482_; -lean_del_object(v___x_2328_); -v___x_2476_ = lean_st_ref_get(v___y_2421_); -v_env_2477_ = lean_ctor_get(v___x_2476_, 0); -lean_inc_ref(v_env_2477_); -lean_dec(v___x_2476_); -lean_inc_n(v_stx_2291_, 2); -v___x_2478_ = l_Lean_Syntax_getKind(v_stx_2291_); -v___x_2479_ = l_Lean_Elab_Do_controlInfoElemAttribute; -v___x_2480_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2479_, v_env_2477_, v___x_2478_); -v___x_2481_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); -v___x_2482_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2291_, v___x_2480_, v___x_2481_, v___y_2416_, v___y_2417_, v___y_2418_, v___y_2419_, v___y_2420_, v___y_2421_); -lean_dec(v___x_2480_); -if (lean_obj_tag(v___x_2482_) == 0) +lean_object* v___x_2481_; lean_object* v_env_2482_; lean_object* v___x_2483_; lean_object* v___x_2484_; lean_object* v___x_2485_; lean_object* v___x_2486_; lean_object* v___x_2487_; +lean_del_object(v___x_2333_); +v___x_2481_ = lean_st_ref_get(v___y_2426_); +v_env_2482_ = lean_ctor_get(v___x_2481_, 0); +lean_inc_ref(v_env_2482_); +lean_dec(v___x_2481_); +lean_inc_n(v_stx_2296_, 2); +v___x_2483_ = l_Lean_Syntax_getKind(v_stx_2296_); +v___x_2484_ = l_Lean_Elab_Do_controlInfoElemAttribute; +v___x_2485_ = l_Lean_KeyedDeclsAttribute_getEntries___redArg(v___x_2484_, v_env_2482_, v___x_2483_); +v___x_2486_ = ((lean_object*)(l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg___closed__0)); +v___x_2487_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_2296_, v___x_2485_, v___x_2486_, v___y_2421_, v___y_2422_, v___y_2423_, v___y_2424_, v___y_2425_, v___y_2426_); +lean_dec(v___x_2485_); +if (lean_obj_tag(v___x_2487_) == 0) { -lean_object* v_a_2483_; lean_object* v___x_2485_; uint8_t v_isShared_2486_; uint8_t v_isSharedCheck_2513_; -v_a_2483_ = lean_ctor_get(v___x_2482_, 0); -v_isSharedCheck_2513_ = !lean_is_exclusive(v___x_2482_); -if (v_isSharedCheck_2513_ == 0) +lean_object* v_a_2488_; lean_object* v___x_2490_; uint8_t v_isShared_2491_; uint8_t v_isSharedCheck_2518_; +v_a_2488_ = lean_ctor_get(v___x_2487_, 0); +v_isSharedCheck_2518_ = !lean_is_exclusive(v___x_2487_); +if (v_isSharedCheck_2518_ == 0) { -v___x_2485_ = v___x_2482_; -v_isShared_2486_ = v_isSharedCheck_2513_; -goto v_resetjp_2484_; +v___x_2490_ = v___x_2487_; +v_isShared_2491_ = v_isSharedCheck_2518_; +goto v_resetjp_2489_; } else { -lean_inc(v_a_2483_); -lean_dec(v___x_2482_); -v___x_2485_ = lean_box(0); -v_isShared_2486_ = v_isSharedCheck_2513_; -goto v_resetjp_2484_; +lean_inc(v_a_2488_); +lean_dec(v___x_2487_); +v___x_2490_ = lean_box(0); +v_isShared_2491_ = v_isSharedCheck_2518_; +goto v_resetjp_2489_; } -v_resetjp_2484_: +v_resetjp_2489_: { -lean_object* v_fst_2487_; lean_object* v___x_2489_; uint8_t v_isShared_2490_; uint8_t v_isSharedCheck_2511_; -v_fst_2487_ = lean_ctor_get(v_a_2483_, 0); -v_isSharedCheck_2511_ = !lean_is_exclusive(v_a_2483_); -if (v_isSharedCheck_2511_ == 0) +lean_object* v_fst_2492_; lean_object* v___x_2494_; uint8_t v_isShared_2495_; uint8_t v_isSharedCheck_2516_; +v_fst_2492_ = lean_ctor_get(v_a_2488_, 0); +v_isSharedCheck_2516_ = !lean_is_exclusive(v_a_2488_); +if (v_isSharedCheck_2516_ == 0) { -lean_object* v_unused_2512_; -v_unused_2512_ = lean_ctor_get(v_a_2483_, 1); -lean_dec(v_unused_2512_); -v___x_2489_ = v_a_2483_; -v_isShared_2490_ = v_isSharedCheck_2511_; -goto v_resetjp_2488_; +lean_object* v_unused_2517_; +v_unused_2517_ = lean_ctor_get(v_a_2488_, 1); +lean_dec(v_unused_2517_); +v___x_2494_ = v_a_2488_; +v_isShared_2495_ = v_isSharedCheck_2516_; +goto v_resetjp_2493_; } else { -lean_inc(v_fst_2487_); -lean_dec(v_a_2483_); -v___x_2489_ = lean_box(0); -v_isShared_2490_ = v_isSharedCheck_2511_; -goto v_resetjp_2488_; +lean_inc(v_fst_2492_); +lean_dec(v_a_2488_); +v___x_2494_ = lean_box(0); +v_isShared_2495_ = v_isSharedCheck_2516_; +goto v_resetjp_2493_; } -v_resetjp_2488_: +v_resetjp_2493_: { -if (lean_obj_tag(v_fst_2487_) == 0) +if (lean_obj_tag(v_fst_2492_) == 0) { -lean_object* v___x_2491_; lean_object* v___x_2492_; lean_object* v___x_2494_; -lean_del_object(v___x_2485_); -v___x_2491_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); -v___x_2492_ = l_Lean_MessageData_ofName(v___x_2478_); -lean_inc_ref(v___x_2492_); -if (v_isShared_2490_ == 0) +lean_object* v___x_2496_; lean_object* v___x_2497_; lean_object* v___x_2499_; +lean_del_object(v___x_2490_); +v___x_2496_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__3); +v___x_2497_ = l_Lean_MessageData_ofName(v___x_2483_); +lean_inc_ref(v___x_2497_); +if (v_isShared_2495_ == 0) { -lean_ctor_set_tag(v___x_2489_, 7); -lean_ctor_set(v___x_2489_, 1, v___x_2492_); -lean_ctor_set(v___x_2489_, 0, v___x_2491_); -v___x_2494_ = v___x_2489_; -goto v_reusejp_2493_; +lean_ctor_set_tag(v___x_2494_, 7); +lean_ctor_set(v___x_2494_, 1, v___x_2497_); +lean_ctor_set(v___x_2494_, 0, v___x_2496_); +v___x_2499_ = v___x_2494_; +goto v_reusejp_2498_; } else { -lean_object* v_reuseFailAlloc_2506_; -v_reuseFailAlloc_2506_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2506_, 0, v___x_2491_); -lean_ctor_set(v_reuseFailAlloc_2506_, 1, v___x_2492_); -v___x_2494_ = v_reuseFailAlloc_2506_; -goto v_reusejp_2493_; +lean_object* v_reuseFailAlloc_2511_; +v_reuseFailAlloc_2511_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2511_, 0, v___x_2496_); +lean_ctor_set(v_reuseFailAlloc_2511_, 1, v___x_2497_); +v___x_2499_ = v_reuseFailAlloc_2511_; +goto v_reusejp_2498_; } -v_reusejp_2493_: +v_reusejp_2498_: { -lean_object* v___x_2495_; lean_object* v___x_2496_; lean_object* v___x_2497_; lean_object* v___x_2498_; lean_object* v___x_2499_; lean_object* v___x_2500_; lean_object* v___x_2501_; lean_object* v___x_2502_; lean_object* v___x_2503_; lean_object* v___x_2504_; lean_object* v___x_2505_; -v___x_2495_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); -v___x_2496_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2496_, 0, v___x_2494_); -lean_ctor_set(v___x_2496_, 1, v___x_2495_); -v___x_2497_ = l_Lean_MessageData_ofSyntax(v_stx_2291_); -v___x_2498_ = l_Lean_indentD(v___x_2497_); -v___x_2499_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2499_, 0, v___x_2496_); -lean_ctor_set(v___x_2499_, 1, v___x_2498_); -v___x_2500_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +lean_object* v___x_2500_; lean_object* v___x_2501_; lean_object* v___x_2502_; lean_object* v___x_2503_; lean_object* v___x_2504_; lean_object* v___x_2505_; lean_object* v___x_2506_; lean_object* v___x_2507_; lean_object* v___x_2508_; lean_object* v___x_2509_; lean_object* v___x_2510_; +v___x_2500_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__5); v___x_2501_ = lean_alloc_ctor(7, 2, 0); lean_ctor_set(v___x_2501_, 0, v___x_2499_); lean_ctor_set(v___x_2501_, 1, v___x_2500_); -v___x_2502_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2502_, 0, v___x_2501_); -lean_ctor_set(v___x_2502_, 1, v___x_2492_); -v___x_2503_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2502_ = l_Lean_MessageData_ofSyntax(v_stx_2296_); +v___x_2503_ = l_Lean_indentD(v___x_2502_); v___x_2504_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2504_, 0, v___x_2502_); +lean_ctor_set(v___x_2504_, 0, v___x_2501_); lean_ctor_set(v___x_2504_, 1, v___x_2503_); -v___x_2505_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2504_, v___y_2416_, v___y_2417_, v___y_2418_, v___y_2419_, v___y_2420_, v___y_2421_); -return v___x_2505_; +v___x_2505_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__7); +v___x_2506_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2506_, 0, v___x_2504_); +lean_ctor_set(v___x_2506_, 1, v___x_2505_); +v___x_2507_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2507_, 0, v___x_2506_); +lean_ctor_set(v___x_2507_, 1, v___x_2497_); +v___x_2508_ = lean_obj_once(&l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9, &l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9_once, _init_l_Lean_Elab_Do_InferControlInfo_ofElem___closed__9); +v___x_2509_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2509_, 0, v___x_2507_); +lean_ctor_set(v___x_2509_, 1, v___x_2508_); +v___x_2510_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v___x_2509_, v___y_2421_, v___y_2422_, v___y_2423_, v___y_2424_, v___y_2425_, v___y_2426_); +return v___x_2510_; } } else { -lean_object* v_val_2507_; lean_object* v___x_2509_; -lean_del_object(v___x_2489_); -lean_dec(v___x_2478_); -lean_dec(v_stx_2291_); -v_val_2507_ = lean_ctor_get(v_fst_2487_, 0); -lean_inc(v_val_2507_); -lean_dec_ref(v_fst_2487_); -if (v_isShared_2486_ == 0) +lean_object* v_val_2512_; lean_object* v___x_2514_; +lean_del_object(v___x_2494_); +lean_dec(v___x_2483_); +lean_dec(v_stx_2296_); +v_val_2512_ = lean_ctor_get(v_fst_2492_, 0); +lean_inc(v_val_2512_); +lean_dec_ref(v_fst_2492_); +if (v_isShared_2491_ == 0) { -lean_ctor_set(v___x_2485_, 0, v_val_2507_); -v___x_2509_ = v___x_2485_; -goto v_reusejp_2508_; +lean_ctor_set(v___x_2490_, 0, v_val_2512_); +v___x_2514_ = v___x_2490_; +goto v_reusejp_2513_; } else { -lean_object* v_reuseFailAlloc_2510_; -v_reuseFailAlloc_2510_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2510_, 0, v_val_2507_); -v___x_2509_ = v_reuseFailAlloc_2510_; -goto v_reusejp_2508_; +lean_object* v_reuseFailAlloc_2515_; +v_reuseFailAlloc_2515_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2515_, 0, v_val_2512_); +v___x_2514_ = v_reuseFailAlloc_2515_; +goto v_reusejp_2513_; } -v_reusejp_2508_: +v_reusejp_2513_: { -return v___x_2509_; +return v___x_2514_; } } } @@ -14371,64 +14405,38 @@ return v___x_2509_; } else { -lean_object* v_a_2514_; lean_object* v___x_2516_; uint8_t v_isShared_2517_; uint8_t v_isSharedCheck_2521_; -lean_dec(v___x_2478_); -lean_dec(v_stx_2291_); -v_a_2514_ = lean_ctor_get(v___x_2482_, 0); -v_isSharedCheck_2521_ = !lean_is_exclusive(v___x_2482_); -if (v_isSharedCheck_2521_ == 0) +lean_object* v_a_2519_; lean_object* v___x_2521_; uint8_t v_isShared_2522_; uint8_t v_isSharedCheck_2526_; +lean_dec(v___x_2483_); +lean_dec(v_stx_2296_); +v_a_2519_ = lean_ctor_get(v___x_2487_, 0); +v_isSharedCheck_2526_ = !lean_is_exclusive(v___x_2487_); +if (v_isSharedCheck_2526_ == 0) { -v___x_2516_ = v___x_2482_; -v_isShared_2517_ = v_isSharedCheck_2521_; -goto v_resetjp_2515_; +v___x_2521_ = v___x_2487_; +v_isShared_2522_ = v_isSharedCheck_2526_; +goto v_resetjp_2520_; } else { -lean_inc(v_a_2514_); -lean_dec(v___x_2482_); -v___x_2516_ = lean_box(0); -v_isShared_2517_ = v_isSharedCheck_2521_; -goto v_resetjp_2515_; +lean_inc(v_a_2519_); +lean_dec(v___x_2487_); +v___x_2521_ = lean_box(0); +v_isShared_2522_ = v_isSharedCheck_2526_; +goto v_resetjp_2520_; } -v_resetjp_2515_: +v_resetjp_2520_: { -lean_object* v___x_2519_; -if (v_isShared_2517_ == 0) +lean_object* v___x_2524_; +if (v_isShared_2522_ == 0) { -v___x_2519_ = v___x_2516_; -goto v_reusejp_2518_; -} -else -{ -lean_object* v_reuseFailAlloc_2520_; -v_reuseFailAlloc_2520_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2520_, 0, v_a_2514_); -v___x_2519_ = v_reuseFailAlloc_2520_; -goto v_reusejp_2518_; -} -v_reusejp_2518_: -{ -return v___x_2519_; -} -} -} -} -else -{ -lean_object* v___x_2522_; lean_object* v___x_2524_; -lean_dec(v_stx_2291_); -v___x_2522_ = l_Lean_Elab_Do_ControlInfo_pure; -if (v_isShared_2329_ == 0) -{ -lean_ctor_set(v___x_2328_, 0, v___x_2522_); -v___x_2524_ = v___x_2328_; +v___x_2524_ = v___x_2521_; goto v_reusejp_2523_; } else { lean_object* v_reuseFailAlloc_2525_; -v_reuseFailAlloc_2525_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2525_, 0, v___x_2522_); +v_reuseFailAlloc_2525_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2525_, 0, v_a_2519_); v___x_2524_ = v_reuseFailAlloc_2525_; goto v_reusejp_2523_; } @@ -14439,67 +14447,85 @@ return v___x_2524_; } } } +else +{ +lean_object* v___x_2527_; lean_object* v___x_2529_; +lean_dec(v_stx_2296_); +v___x_2527_ = l_Lean_Elab_Do_ControlInfo_pure; +if (v_isShared_2334_ == 0) +{ +lean_ctor_set(v___x_2333_, 0, v___x_2527_); +v___x_2529_ = v___x_2333_; +goto v_reusejp_2528_; +} +else +{ +lean_object* v_reuseFailAlloc_2530_; +v_reuseFailAlloc_2530_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2530_, 0, v___x_2527_); +v___x_2529_ = v_reuseFailAlloc_2530_; +goto v_reusejp_2528_; +} +v_reusejp_2528_: +{ +return v___x_2529_; +} +} +} +} } } } else { -lean_object* v_a_4379_; lean_object* v___x_4381_; uint8_t v_isShared_4382_; uint8_t v_isSharedCheck_4386_; -lean_dec(v_stx_2291_); -v_a_4379_ = lean_ctor_get(v___x_2325_, 0); -v_isSharedCheck_4386_ = !lean_is_exclusive(v___x_2325_); -if (v_isSharedCheck_4386_ == 0) +lean_object* v_a_4388_; lean_object* v___x_4390_; uint8_t v_isShared_4391_; uint8_t v_isSharedCheck_4395_; +lean_dec(v_stx_2296_); +v_a_4388_ = lean_ctor_get(v___x_2330_, 0); +v_isSharedCheck_4395_ = !lean_is_exclusive(v___x_2330_); +if (v_isSharedCheck_4395_ == 0) { -v___x_4381_ = v___x_2325_; -v_isShared_4382_ = v_isSharedCheck_4386_; -goto v_resetjp_4380_; +v___x_4390_ = v___x_2330_; +v_isShared_4391_ = v_isSharedCheck_4395_; +goto v_resetjp_4389_; } else { -lean_inc(v_a_4379_); -lean_dec(v___x_2325_); -v___x_4381_ = lean_box(0); -v_isShared_4382_ = v_isSharedCheck_4386_; -goto v_resetjp_4380_; +lean_inc(v_a_4388_); +lean_dec(v___x_2330_); +v___x_4390_ = lean_box(0); +v_isShared_4391_ = v_isSharedCheck_4395_; +goto v_resetjp_4389_; } -v_resetjp_4380_: +v_resetjp_4389_: { -lean_object* v___x_4384_; -if (v_isShared_4382_ == 0) +lean_object* v___x_4393_; +if (v_isShared_4391_ == 0) { -v___x_4384_ = v___x_4381_; -goto v_reusejp_4383_; +v___x_4393_ = v___x_4390_; +goto v_reusejp_4392_; } else { -lean_object* v_reuseFailAlloc_4385_; -v_reuseFailAlloc_4385_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4385_, 0, v_a_4379_); -v___x_4384_ = v_reuseFailAlloc_4385_; -goto v_reusejp_4383_; +lean_object* v_reuseFailAlloc_4394_; +v_reuseFailAlloc_4394_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4394_, 0, v_a_4388_); +v___x_4393_ = v_reuseFailAlloc_4394_; +goto v_reusejp_4392_; } -v_reusejp_4383_: +v_reusejp_4392_: { -return v___x_4384_; +return v___x_4393_; } } } -v___jp_2299_: +v___jp_2304_: { -lean_object* v___x_2308_; lean_object* v___x_2309_; lean_object* v___x_2310_; lean_object* v___x_2311_; -v___x_2308_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); -v___x_2309_ = lean_box(0); -v___x_2310_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2310_, 0, v___y_2306_); -v___x_2311_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v___x_2308_, v___x_2309_, v___x_2310_, v___y_2307_, v___y_2305_, v___y_2302_, v___y_2301_, v___y_2300_, v___y_2304_, v___y_2303_); -return v___x_2311_; -} -v___jp_2312_: -{ -lean_object* v___x_2315_; lean_object* v___x_2316_; -v___x_2315_ = l_Lean_Elab_Do_ControlInfo_alternative(v___y_2313_, v_bodyInfo_2314_); -v___x_2316_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2316_, 0, v___x_2315_); +lean_object* v___x_2313_; lean_object* v___x_2314_; lean_object* v___x_2315_; lean_object* v___x_2316_; +v___x_2313_ = ((lean_object*)(l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___closed__6)); +v___x_2314_ = lean_box(0); +v___x_2315_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2315_, 0, v___y_2306_); +v___x_2316_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v___x_2313_, v___x_2314_, v___x_2315_, v___y_2312_, v___y_2307_, v___y_2308_, v___y_2311_, v___y_2310_, v___y_2305_, v___y_2309_); return v___x_2316_; } v___jp_2317_: @@ -14510,357 +14536,271 @@ v___x_2321_ = lean_alloc_ctor(0, 1, 0); lean_ctor_set(v___x_2321_, 0, v___x_2320_); return v___x_2321_; } +v___jp_2322_: +{ +lean_object* v___x_2325_; lean_object* v___x_2326_; +v___x_2325_ = l_Lean_Elab_Do_ControlInfo_alternative(v___y_2323_, v_bodyInfo_2324_); +v___x_2326_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2326_, 0, v___x_2325_); +return v___x_2326_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(lean_object* v_as_4387_, size_t v_sz_4388_, size_t v_i_4389_, lean_object* v_b_4390_, lean_object* v___y_4391_, lean_object* v___y_4392_, lean_object* v___y_4393_, lean_object* v___y_4394_, lean_object* v___y_4395_, lean_object* v___y_4396_){ +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(lean_object* v_as_4396_, size_t v_sz_4397_, size_t v_i_4398_, lean_object* v_b_4399_, lean_object* v___y_4400_, lean_object* v___y_4401_, lean_object* v___y_4402_, lean_object* v___y_4403_, lean_object* v___y_4404_, lean_object* v___y_4405_){ _start: { -uint8_t v___x_4398_; -v___x_4398_ = lean_usize_dec_lt(v_i_4389_, v_sz_4388_); -if (v___x_4398_ == 0) +uint8_t v___x_4407_; +v___x_4407_ = lean_usize_dec_lt(v_i_4398_, v_sz_4397_); +if (v___x_4407_ == 0) { -lean_object* v___x_4399_; -v___x_4399_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4399_, 0, v_b_4390_); -return v___x_4399_; -} -else -{ -uint8_t v_breaks_4400_; uint8_t v_continues_4401_; uint8_t v_returnsEarly_4402_; lean_object* v_numRegularExits_4403_; lean_object* v_reassigns_4404_; lean_object* v___x_4405_; uint8_t v___x_4406_; -v_breaks_4400_ = lean_ctor_get_uint8(v_b_4390_, sizeof(void*)*2); -v_continues_4401_ = lean_ctor_get_uint8(v_b_4390_, sizeof(void*)*2 + 1); -v_returnsEarly_4402_ = lean_ctor_get_uint8(v_b_4390_, sizeof(void*)*2 + 2); -v_numRegularExits_4403_ = lean_ctor_get(v_b_4390_, 0); -v_reassigns_4404_ = lean_ctor_get(v_b_4390_, 1); -v___x_4405_ = lean_unsigned_to_nat(0u); -v___x_4406_ = lean_nat_dec_eq(v_numRegularExits_4403_, v___x_4405_); -if (v___x_4406_ == 0) -{ -lean_object* v_a_4407_; lean_object* v___x_4408_; -lean_inc(v_reassigns_4404_); -lean_dec_ref(v_b_4390_); -v_a_4407_ = lean_array_uget_borrowed(v_as_4387_, v_i_4389_); -lean_inc(v_a_4407_); -v___x_4408_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_a_4407_, v___y_4391_, v___y_4392_, v___y_4393_, v___y_4394_, v___y_4395_, v___y_4396_); -if (lean_obj_tag(v___x_4408_) == 0) -{ -lean_object* v_a_4409_; uint8_t v___y_4411_; uint8_t v___y_4412_; uint8_t v___y_4413_; uint8_t v___y_4428_; uint8_t v___y_4429_; uint8_t v___y_4432_; -v_a_4409_ = lean_ctor_get(v___x_4408_, 0); -lean_inc(v_a_4409_); -lean_dec_ref(v___x_4408_); -if (v_breaks_4400_ == 0) -{ -uint8_t v_breaks_4434_; -v_breaks_4434_ = lean_ctor_get_uint8(v_a_4409_, sizeof(void*)*2); -v___y_4432_ = v_breaks_4434_; -goto v___jp_4431_; -} -else -{ -v___y_4432_ = v___x_4398_; -goto v___jp_4431_; -} -v___jp_4410_: -{ -lean_object* v_numRegularExits_4414_; lean_object* v_reassigns_4415_; lean_object* v___x_4417_; uint8_t v_isShared_4418_; uint8_t v_isSharedCheck_4426_; -v_numRegularExits_4414_ = lean_ctor_get(v_a_4409_, 0); -v_reassigns_4415_ = lean_ctor_get(v_a_4409_, 1); -v_isSharedCheck_4426_ = !lean_is_exclusive(v_a_4409_); -if (v_isSharedCheck_4426_ == 0) -{ -v___x_4417_ = v_a_4409_; -v_isShared_4418_ = v_isSharedCheck_4426_; -goto v_resetjp_4416_; -} -else -{ -lean_inc(v_reassigns_4415_); -lean_inc(v_numRegularExits_4414_); -lean_dec(v_a_4409_); -v___x_4417_ = lean_box(0); -v_isShared_4418_ = v_isSharedCheck_4426_; -goto v_resetjp_4416_; -} -v_resetjp_4416_: -{ -lean_object* v___x_4419_; lean_object* v___x_4421_; -v___x_4419_ = l_Lean_NameSet_append(v_reassigns_4404_, v_reassigns_4415_); -if (v_isShared_4418_ == 0) -{ -lean_ctor_set(v___x_4417_, 1, v___x_4419_); -v___x_4421_ = v___x_4417_; -goto v_reusejp_4420_; -} -else -{ -lean_object* v_reuseFailAlloc_4425_; -v_reuseFailAlloc_4425_ = lean_alloc_ctor(0, 2, 3); -lean_ctor_set(v_reuseFailAlloc_4425_, 0, v_numRegularExits_4414_); -lean_ctor_set(v_reuseFailAlloc_4425_, 1, v___x_4419_); -v___x_4421_ = v_reuseFailAlloc_4425_; -goto v_reusejp_4420_; -} -v_reusejp_4420_: -{ -size_t v___x_4422_; size_t v___x_4423_; -lean_ctor_set_uint8(v___x_4421_, sizeof(void*)*2, v___y_4411_); -lean_ctor_set_uint8(v___x_4421_, sizeof(void*)*2 + 1, v___y_4412_); -lean_ctor_set_uint8(v___x_4421_, sizeof(void*)*2 + 2, v___y_4413_); -v___x_4422_ = ((size_t)1ULL); -v___x_4423_ = lean_usize_add(v_i_4389_, v___x_4422_); -v_i_4389_ = v___x_4423_; -v_b_4390_ = v___x_4421_; -goto _start; -} -} -} -v___jp_4427_: -{ -if (v_returnsEarly_4402_ == 0) -{ -uint8_t v_returnsEarly_4430_; -v_returnsEarly_4430_ = lean_ctor_get_uint8(v_a_4409_, sizeof(void*)*2 + 2); -v___y_4411_ = v___y_4428_; -v___y_4412_ = v___y_4429_; -v___y_4413_ = v_returnsEarly_4430_; -goto v___jp_4410_; -} -else -{ -v___y_4411_ = v___y_4428_; -v___y_4412_ = v___y_4429_; -v___y_4413_ = v___x_4398_; -goto v___jp_4410_; -} -} -v___jp_4431_: -{ -if (v_continues_4401_ == 0) -{ -uint8_t v_continues_4433_; -v_continues_4433_ = lean_ctor_get_uint8(v_a_4409_, sizeof(void*)*2 + 1); -v___y_4428_ = v___y_4432_; -v___y_4429_ = v_continues_4433_; -goto v___jp_4427_; -} -else -{ -v___y_4428_ = v___y_4432_; -v___y_4429_ = v___x_4398_; -goto v___jp_4427_; -} -} -} -else -{ -lean_dec(v_reassigns_4404_); +lean_object* v___x_4408_; +v___x_4408_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4408_, 0, v_b_4399_); return v___x_4408_; } +else +{ +lean_object* v_a_4409_; lean_object* v___x_4410_; +v_a_4409_ = lean_array_uget_borrowed(v_as_4396_, v_i_4398_); +lean_inc(v_a_4409_); +v___x_4410_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_a_4409_, v___y_4400_, v___y_4401_, v___y_4402_, v___y_4403_, v___y_4404_, v___y_4405_); +if (lean_obj_tag(v___x_4410_) == 0) +{ +lean_object* v_a_4411_; lean_object* v___x_4412_; size_t v___x_4413_; size_t v___x_4414_; +v_a_4411_ = lean_ctor_get(v___x_4410_, 0); +lean_inc(v_a_4411_); +lean_dec_ref(v___x_4410_); +v___x_4412_ = l_Lean_Elab_Do_ControlInfo_sequence(v_b_4399_, v_a_4411_); +v___x_4413_ = ((size_t)1ULL); +v___x_4414_ = lean_usize_add(v_i_4398_, v___x_4413_); +v_i_4398_ = v___x_4414_; +v_b_4399_ = v___x_4412_; +goto _start; } else { -lean_object* v___x_4435_; -v___x_4435_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4435_, 0, v_b_4390_); -return v___x_4435_; +lean_dec_ref(v_b_4399_); +return v___x_4410_; } } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofSeq(lean_object* v_stx_4436_, lean_object* v_a_4437_, lean_object* v_a_4438_, lean_object* v_a_4439_, lean_object* v_a_4440_, lean_object* v_a_4441_, lean_object* v_a_4442_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofSeq(lean_object* v_stx_4416_, lean_object* v_a_4417_, lean_object* v_a_4418_, lean_object* v_a_4419_, lean_object* v_a_4420_, lean_object* v_a_4421_, lean_object* v_a_4422_){ _start: { -lean_object* v_info_4444_; lean_object* v___x_4445_; size_t v_sz_4446_; size_t v___x_4447_; lean_object* v___x_4448_; -v_info_4444_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); -v___x_4445_ = l_Lean_Parser_Term_getDoElems(v_stx_4436_); -v_sz_4446_ = lean_array_size(v___x_4445_); -v___x_4447_ = ((size_t)0ULL); -v___x_4448_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(v___x_4445_, v_sz_4446_, v___x_4447_, v_info_4444_, v_a_4437_, v_a_4438_, v_a_4439_, v_a_4440_, v_a_4441_, v_a_4442_); -lean_dec_ref(v___x_4445_); -return v___x_4448_; +lean_object* v_info_4424_; lean_object* v___x_4425_; size_t v_sz_4426_; size_t v___x_4427_; lean_object* v___x_4428_; +v_info_4424_ = lean_obj_once(&l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0, &l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0_once, _init_l_Lean_Elab_Do_instInhabitedControlInfo_default___closed__0); +v___x_4425_ = l_Lean_Parser_Term_getDoElems(v_stx_4416_); +v_sz_4426_ = lean_array_size(v___x_4425_); +v___x_4427_ = ((size_t)0ULL); +v___x_4428_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(v___x_4425_, v_sz_4426_, v___x_4427_, v_info_4424_, v_a_4417_, v_a_4418_, v_a_4419_, v_a_4420_, v_a_4421_, v_a_4422_); +lean_dec_ref(v___x_4425_); +return v___x_4428_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofSeq___boxed(lean_object* v_stx_4449_, lean_object* v_a_4450_, lean_object* v_a_4451_, lean_object* v_a_4452_, lean_object* v_a_4453_, lean_object* v_a_4454_, lean_object* v_a_4455_, lean_object* v_a_4456_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofSeq___boxed(lean_object* v_stx_4429_, lean_object* v_a_4430_, lean_object* v_a_4431_, lean_object* v_a_4432_, lean_object* v_a_4433_, lean_object* v_a_4434_, lean_object* v_a_4435_, lean_object* v_a_4436_){ _start: { -lean_object* v_res_4457_; -v_res_4457_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_stx_4449_, v_a_4450_, v_a_4451_, v_a_4452_, v_a_4453_, v_a_4454_, v_a_4455_); -lean_dec(v_a_4455_); -lean_dec_ref(v_a_4454_); -lean_dec(v_a_4453_); -lean_dec_ref(v_a_4452_); -lean_dec(v_a_4451_); -lean_dec_ref(v_a_4450_); -return v_res_4457_; +lean_object* v_res_4437_; +v_res_4437_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_stx_4429_, v_a_4430_, v_a_4431_, v_a_4432_, v_a_4433_, v_a_4434_, v_a_4435_); +lean_dec(v_a_4435_); +lean_dec_ref(v_a_4434_); +lean_dec(v_a_4433_); +lean_dec_ref(v_a_4432_); +lean_dec(v_a_4431_); +lean_dec_ref(v_a_4430_); +return v_res_4437_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofOptionSeq___boxed(lean_object* v_stx_x3f_4458_, lean_object* v_a_4459_, lean_object* v_a_4460_, lean_object* v_a_4461_, lean_object* v_a_4462_, lean_object* v_a_4463_, lean_object* v_a_4464_, lean_object* v_a_4465_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofOptionSeq___boxed(lean_object* v_stx_x3f_4438_, lean_object* v_a_4439_, lean_object* v_a_4440_, lean_object* v_a_4441_, lean_object* v_a_4442_, lean_object* v_a_4443_, lean_object* v_a_4444_, lean_object* v_a_4445_){ _start: { -lean_object* v_res_4466_; -v_res_4466_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_stx_x3f_4458_, v_a_4459_, v_a_4460_, v_a_4461_, v_a_4462_, v_a_4463_, v_a_4464_); -lean_dec(v_a_4464_); -lean_dec_ref(v_a_4463_); -lean_dec(v_a_4462_); -lean_dec_ref(v_a_4461_); -lean_dec(v_a_4460_); -lean_dec_ref(v_a_4459_); -return v_res_4466_; +lean_object* v_res_4446_; +v_res_4446_ = l_Lean_Elab_Do_InferControlInfo_ofOptionSeq(v_stx_x3f_4438_, v_a_4439_, v_a_4440_, v_a_4441_, v_a_4442_, v_a_4443_, v_a_4444_); +lean_dec(v_a_4444_); +lean_dec_ref(v_a_4443_); +lean_dec(v_a_4442_); +lean_dec_ref(v_a_4441_); +lean_dec(v_a_4440_); +lean_dec_ref(v_a_4439_); +return v_res_4446_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5___boxed(lean_object* v_as_4467_, lean_object* v_sz_4468_, lean_object* v_i_4469_, lean_object* v_b_4470_, lean_object* v___y_4471_, lean_object* v___y_4472_, lean_object* v___y_4473_, lean_object* v___y_4474_, lean_object* v___y_4475_, lean_object* v___y_4476_, lean_object* v___y_4477_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5___boxed(lean_object* v_as_4447_, lean_object* v_sz_4448_, lean_object* v_i_4449_, lean_object* v_b_4450_, lean_object* v___y_4451_, lean_object* v___y_4452_, lean_object* v___y_4453_, lean_object* v___y_4454_, lean_object* v___y_4455_, lean_object* v___y_4456_, lean_object* v___y_4457_){ _start: { -size_t v_sz_boxed_4478_; size_t v_i_boxed_4479_; lean_object* v_res_4480_; -v_sz_boxed_4478_ = lean_unbox_usize(v_sz_4468_); -lean_dec(v_sz_4468_); -v_i_boxed_4479_ = lean_unbox_usize(v_i_4469_); -lean_dec(v_i_4469_); -v_res_4480_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v_as_4467_, v_sz_boxed_4478_, v_i_boxed_4479_, v_b_4470_, v___y_4471_, v___y_4472_, v___y_4473_, v___y_4474_, v___y_4475_, v___y_4476_); -lean_dec(v___y_4476_); -lean_dec_ref(v___y_4475_); -lean_dec(v___y_4474_); -lean_dec_ref(v___y_4473_); -lean_dec(v___y_4472_); -lean_dec_ref(v___y_4471_); -lean_dec_ref(v_as_4467_); -return v_res_4480_; +size_t v_sz_boxed_4458_; size_t v_i_boxed_4459_; lean_object* v_res_4460_; +v_sz_boxed_4458_ = lean_unbox_usize(v_sz_4448_); +lean_dec(v_sz_4448_); +v_i_boxed_4459_ = lean_unbox_usize(v_i_4449_); +lean_dec(v_i_4449_); +v_res_4460_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__5(v_as_4447_, v_sz_boxed_4458_, v_i_boxed_4459_, v_b_4450_, v___y_4451_, v___y_4452_, v___y_4453_, v___y_4454_, v___y_4455_, v___y_4456_); +lean_dec(v___y_4456_); +lean_dec_ref(v___y_4455_); +lean_dec(v___y_4454_); +lean_dec_ref(v___y_4453_); +lean_dec(v___y_4452_); +lean_dec_ref(v___y_4451_); +lean_dec_ref(v_as_4447_); +return v_res_4460_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17___boxed(lean_object* v_as_4481_, lean_object* v_sz_4482_, lean_object* v_i_4483_, lean_object* v_b_4484_, lean_object* v___y_4485_, lean_object* v___y_4486_, lean_object* v___y_4487_, lean_object* v___y_4488_, lean_object* v___y_4489_, lean_object* v___y_4490_, lean_object* v___y_4491_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17___boxed(lean_object* v_as_4461_, lean_object* v_sz_4462_, lean_object* v_i_4463_, lean_object* v_b_4464_, lean_object* v___y_4465_, lean_object* v___y_4466_, lean_object* v___y_4467_, lean_object* v___y_4468_, lean_object* v___y_4469_, lean_object* v___y_4470_, lean_object* v___y_4471_){ _start: { -size_t v_sz_boxed_4492_; size_t v_i_boxed_4493_; lean_object* v_res_4494_; -v_sz_boxed_4492_ = lean_unbox_usize(v_sz_4482_); -lean_dec(v_sz_4482_); -v_i_boxed_4493_ = lean_unbox_usize(v_i_4483_); -lean_dec(v_i_4483_); -v_res_4494_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(v_as_4481_, v_sz_boxed_4492_, v_i_boxed_4493_, v_b_4484_, v___y_4485_, v___y_4486_, v___y_4487_, v___y_4488_, v___y_4489_, v___y_4490_); -lean_dec(v___y_4490_); -lean_dec_ref(v___y_4489_); -lean_dec(v___y_4488_); -lean_dec_ref(v___y_4487_); -lean_dec(v___y_4486_); -lean_dec_ref(v___y_4485_); -lean_dec_ref(v_as_4481_); -return v_res_4494_; +size_t v_sz_boxed_4472_; size_t v_i_boxed_4473_; lean_object* v_res_4474_; +v_sz_boxed_4472_ = lean_unbox_usize(v_sz_4462_); +lean_dec(v_sz_4462_); +v_i_boxed_4473_ = lean_unbox_usize(v_i_4463_); +lean_dec(v_i_4463_); +v_res_4474_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofSeq_spec__17(v_as_4461_, v_sz_boxed_4472_, v_i_boxed_4473_, v_b_4464_, v___y_4465_, v___y_4466_, v___y_4467_, v___y_4468_, v___y_4469_, v___y_4470_); +lean_dec(v___y_4470_); +lean_dec_ref(v___y_4469_); +lean_dec(v___y_4468_); +lean_dec_ref(v___y_4467_); +lean_dec(v___y_4466_); +lean_dec_ref(v___y_4465_); +lean_dec_ref(v_as_4461_); +return v_res_4474_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign___boxed(lean_object* v_reassigned_4495_, lean_object* v_rhs_x3f_4496_, lean_object* v_otherwise_x3f_4497_, lean_object* v_body_x3f_4498_, lean_object* v_a_4499_, lean_object* v_a_4500_, lean_object* v_a_4501_, lean_object* v_a_4502_, lean_object* v_a_4503_, lean_object* v_a_4504_, lean_object* v_a_4505_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign___boxed(lean_object* v_reassigned_4475_, lean_object* v_rhs_x3f_4476_, lean_object* v_otherwise_x3f_4477_, lean_object* v_body_x3f_4478_, lean_object* v_a_4479_, lean_object* v_a_4480_, lean_object* v_a_4481_, lean_object* v_a_4482_, lean_object* v_a_4483_, lean_object* v_a_4484_, lean_object* v_a_4485_){ _start: { -lean_object* v_res_4506_; -v_res_4506_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigned_4495_, v_rhs_x3f_4496_, v_otherwise_x3f_4497_, v_body_x3f_4498_, v_a_4499_, v_a_4500_, v_a_4501_, v_a_4502_, v_a_4503_, v_a_4504_); -lean_dec(v_a_4504_); -lean_dec_ref(v_a_4503_); -lean_dec(v_a_4502_); -lean_dec_ref(v_a_4501_); -lean_dec(v_a_4500_); -lean_dec_ref(v_a_4499_); -return v_res_4506_; +lean_object* v_res_4486_; +v_res_4486_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassign(v_reassigned_4475_, v_rhs_x3f_4476_, v_otherwise_x3f_4477_, v_body_x3f_4478_, v_a_4479_, v_a_4480_, v_a_4481_, v_a_4482_, v_a_4483_, v_a_4484_); +lean_dec(v_a_4484_); +lean_dec_ref(v_a_4483_); +lean_dec(v_a_4482_); +lean_dec_ref(v_a_4481_); +lean_dec(v_a_4480_); +lean_dec_ref(v_a_4479_); +return v_res_4486_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___boxed(lean_object* v___x_4507_, lean_object* v_as_4508_, lean_object* v_sz_4509_, lean_object* v_i_4510_, lean_object* v_b_4511_, lean_object* v___y_4512_, lean_object* v___y_4513_, lean_object* v___y_4514_, lean_object* v___y_4515_, lean_object* v___y_4516_, lean_object* v___y_4517_, lean_object* v___y_4518_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10___boxed(lean_object* v___x_4487_, lean_object* v_as_4488_, lean_object* v_sz_4489_, lean_object* v_i_4490_, lean_object* v_b_4491_, lean_object* v___y_4492_, lean_object* v___y_4493_, lean_object* v___y_4494_, lean_object* v___y_4495_, lean_object* v___y_4496_, lean_object* v___y_4497_, lean_object* v___y_4498_){ _start: { -uint8_t v___x_288853__boxed_4519_; size_t v_sz_boxed_4520_; size_t v_i_boxed_4521_; lean_object* v_res_4522_; -v___x_288853__boxed_4519_ = lean_unbox(v___x_4507_); -v_sz_boxed_4520_ = lean_unbox_usize(v_sz_4509_); -lean_dec(v_sz_4509_); -v_i_boxed_4521_ = lean_unbox_usize(v_i_4510_); -lean_dec(v_i_4510_); -v_res_4522_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(v___x_288853__boxed_4519_, v_as_4508_, v_sz_boxed_4520_, v_i_boxed_4521_, v_b_4511_, v___y_4512_, v___y_4513_, v___y_4514_, v___y_4515_, v___y_4516_, v___y_4517_); -lean_dec(v___y_4517_); -lean_dec_ref(v___y_4516_); -lean_dec(v___y_4515_); -lean_dec_ref(v___y_4514_); +uint8_t v___x_288817__boxed_4499_; size_t v_sz_boxed_4500_; size_t v_i_boxed_4501_; lean_object* v_res_4502_; +v___x_288817__boxed_4499_ = lean_unbox(v___x_4487_); +v_sz_boxed_4500_ = lean_unbox_usize(v_sz_4489_); +lean_dec(v_sz_4489_); +v_i_boxed_4501_ = lean_unbox_usize(v_i_4490_); +lean_dec(v_i_4490_); +v_res_4502_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__10(v___x_288817__boxed_4499_, v_as_4488_, v_sz_boxed_4500_, v_i_boxed_4501_, v_b_4491_, v___y_4492_, v___y_4493_, v___y_4494_, v___y_4495_, v___y_4496_, v___y_4497_); +lean_dec(v___y_4497_); +lean_dec_ref(v___y_4496_); +lean_dec(v___y_4495_); +lean_dec_ref(v___y_4494_); +lean_dec(v___y_4493_); +lean_dec_ref(v___y_4492_); +lean_dec_ref(v_as_4488_); +return v_res_4502_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14___boxed(lean_object* v___x_4503_, lean_object* v_as_4504_, lean_object* v_sz_4505_, lean_object* v_i_4506_, lean_object* v_b_4507_, lean_object* v___y_4508_, lean_object* v___y_4509_, lean_object* v___y_4510_, lean_object* v___y_4511_, lean_object* v___y_4512_, lean_object* v___y_4513_, lean_object* v___y_4514_){ +_start: +{ +uint8_t v___x_288868__boxed_4515_; size_t v_sz_boxed_4516_; size_t v_i_boxed_4517_; lean_object* v_res_4518_; +v___x_288868__boxed_4515_ = lean_unbox(v___x_4503_); +v_sz_boxed_4516_ = lean_unbox_usize(v_sz_4505_); +lean_dec(v_sz_4505_); +v_i_boxed_4517_ = lean_unbox_usize(v_i_4506_); +lean_dec(v_i_4506_); +v_res_4518_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(v___x_288868__boxed_4515_, v_as_4504_, v_sz_boxed_4516_, v_i_boxed_4517_, v_b_4507_, v___y_4508_, v___y_4509_, v___y_4510_, v___y_4511_, v___y_4512_, v___y_4513_); lean_dec(v___y_4513_); lean_dec_ref(v___y_4512_); -lean_dec_ref(v_as_4508_); -return v_res_4522_; +lean_dec(v___y_4511_); +lean_dec_ref(v___y_4510_); +lean_dec(v___y_4509_); +lean_dec_ref(v___y_4508_); +lean_dec_ref(v_as_4504_); +return v_res_4518_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14___boxed(lean_object* v___x_4523_, lean_object* v_as_4524_, lean_object* v_sz_4525_, lean_object* v_i_4526_, lean_object* v_b_4527_, lean_object* v___y_4528_, lean_object* v___y_4529_, lean_object* v___y_4530_, lean_object* v___y_4531_, lean_object* v___y_4532_, lean_object* v___y_4533_, lean_object* v___y_4534_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___boxed(lean_object* v_as_4519_, lean_object* v_sz_4520_, lean_object* v_i_4521_, lean_object* v_b_4522_, lean_object* v___y_4523_, lean_object* v___y_4524_, lean_object* v___y_4525_, lean_object* v___y_4526_, lean_object* v___y_4527_, lean_object* v___y_4528_, lean_object* v___y_4529_){ _start: { -uint8_t v___x_288904__boxed_4535_; size_t v_sz_boxed_4536_; size_t v_i_boxed_4537_; lean_object* v_res_4538_; -v___x_288904__boxed_4535_ = lean_unbox(v___x_4523_); -v_sz_boxed_4536_ = lean_unbox_usize(v_sz_4525_); -lean_dec(v_sz_4525_); -v_i_boxed_4537_ = lean_unbox_usize(v_i_4526_); -lean_dec(v_i_4526_); -v_res_4538_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__14(v___x_288904__boxed_4535_, v_as_4524_, v_sz_boxed_4536_, v_i_boxed_4537_, v_b_4527_, v___y_4528_, v___y_4529_, v___y_4530_, v___y_4531_, v___y_4532_, v___y_4533_); -lean_dec(v___y_4533_); -lean_dec_ref(v___y_4532_); -lean_dec(v___y_4531_); -lean_dec_ref(v___y_4530_); -lean_dec(v___y_4529_); -lean_dec_ref(v___y_4528_); -lean_dec_ref(v_as_4524_); -return v_res_4538_; +size_t v_sz_boxed_4530_; size_t v_i_boxed_4531_; lean_object* v_res_4532_; +v_sz_boxed_4530_ = lean_unbox_usize(v_sz_4520_); +lean_dec(v_sz_4520_); +v_i_boxed_4531_ = lean_unbox_usize(v_i_4521_); +lean_dec(v_i_4521_); +v_res_4532_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(v_as_4519_, v_sz_boxed_4530_, v_i_boxed_4531_, v_b_4522_, v___y_4523_, v___y_4524_, v___y_4525_, v___y_4526_, v___y_4527_, v___y_4528_); +lean_dec(v___y_4528_); +lean_dec_ref(v___y_4527_); +lean_dec(v___y_4526_); +lean_dec_ref(v___y_4525_); +lean_dec(v___y_4524_); +lean_dec_ref(v___y_4523_); +lean_dec_ref(v_as_4519_); +return v_res_4532_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11___boxed(lean_object* v_as_4539_, lean_object* v_sz_4540_, lean_object* v_i_4541_, lean_object* v_b_4542_, lean_object* v___y_4543_, lean_object* v___y_4544_, lean_object* v___y_4545_, lean_object* v___y_4546_, lean_object* v___y_4547_, lean_object* v___y_4548_, lean_object* v___y_4549_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___boxed(lean_object* v_reassignment_4533_, lean_object* v_decl_4534_, lean_object* v_a_4535_, lean_object* v_a_4536_, lean_object* v_a_4537_, lean_object* v_a_4538_, lean_object* v_a_4539_, lean_object* v_a_4540_, lean_object* v_a_4541_){ _start: { -size_t v_sz_boxed_4550_; size_t v_i_boxed_4551_; lean_object* v_res_4552_; -v_sz_boxed_4550_ = lean_unbox_usize(v_sz_4540_); -lean_dec(v_sz_4540_); -v_i_boxed_4551_ = lean_unbox_usize(v_i_4541_); -lean_dec(v_i_4541_); -v_res_4552_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__11(v_as_4539_, v_sz_boxed_4550_, v_i_boxed_4551_, v_b_4542_, v___y_4543_, v___y_4544_, v___y_4545_, v___y_4546_, v___y_4547_, v___y_4548_); -lean_dec(v___y_4548_); -lean_dec_ref(v___y_4547_); -lean_dec(v___y_4546_); -lean_dec_ref(v___y_4545_); -lean_dec(v___y_4544_); -lean_dec_ref(v___y_4543_); -lean_dec_ref(v_as_4539_); +uint8_t v_reassignment_boxed_4542_; lean_object* v_res_4543_; +v_reassignment_boxed_4542_ = lean_unbox(v_reassignment_4533_); +v_res_4543_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v_reassignment_boxed_4542_, v_decl_4534_, v_a_4535_, v_a_4536_, v_a_4537_, v_a_4538_, v_a_4539_, v_a_4540_); +lean_dec(v_a_4540_); +lean_dec_ref(v_a_4539_); +lean_dec(v_a_4538_); +lean_dec_ref(v_a_4537_); +lean_dec(v_a_4536_); +lean_dec_ref(v_a_4535_); +return v_res_4543_; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofElem___boxed(lean_object* v_stx_4544_, lean_object* v_a_4545_, lean_object* v_a_4546_, lean_object* v_a_4547_, lean_object* v_a_4548_, lean_object* v_a_4549_, lean_object* v_a_4550_, lean_object* v_a_4551_){ +_start: +{ +lean_object* v_res_4552_; +v_res_4552_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_stx_4544_, v_a_4545_, v_a_4546_, v_a_4547_, v_a_4548_, v_a_4549_, v_a_4550_); +lean_dec(v_a_4550_); +lean_dec_ref(v_a_4549_); +lean_dec(v_a_4548_); +lean_dec_ref(v_a_4547_); +lean_dec(v_a_4546_); +lean_dec_ref(v_a_4545_); return v_res_4552_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow___boxed(lean_object* v_reassignment_4553_, lean_object* v_decl_4554_, lean_object* v_a_4555_, lean_object* v_a_4556_, lean_object* v_a_4557_, lean_object* v_a_4558_, lean_object* v_a_4559_, lean_object* v_a_4560_, lean_object* v_a_4561_){ +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7(lean_object* v_00_u03b1_4553_, lean_object* v___y_4554_, lean_object* v___y_4555_, lean_object* v___y_4556_, lean_object* v___y_4557_, lean_object* v___y_4558_, lean_object* v___y_4559_){ _start: { -uint8_t v_reassignment_boxed_4562_; lean_object* v_res_4563_; -v_reassignment_boxed_4562_ = lean_unbox(v_reassignment_4553_); -v_res_4563_ = l_Lean_Elab_Do_InferControlInfo_ofLetOrReassignArrow(v_reassignment_boxed_4562_, v_decl_4554_, v_a_4555_, v_a_4556_, v_a_4557_, v_a_4558_, v_a_4559_, v_a_4560_); -lean_dec(v_a_4560_); -lean_dec_ref(v_a_4559_); -lean_dec(v_a_4558_); -lean_dec_ref(v_a_4557_); -lean_dec(v_a_4556_); -lean_dec_ref(v_a_4555_); -return v_res_4563_; +lean_object* v___x_4561_; +v___x_4561_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); +return v___x_4561_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Do_InferControlInfo_ofElem___boxed(lean_object* v_stx_4564_, lean_object* v_a_4565_, lean_object* v_a_4566_, lean_object* v_a_4567_, lean_object* v_a_4568_, lean_object* v_a_4569_, lean_object* v_a_4570_, lean_object* v_a_4571_){ +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___boxed(lean_object* v_00_u03b1_4562_, lean_object* v___y_4563_, lean_object* v___y_4564_, lean_object* v___y_4565_, lean_object* v___y_4566_, lean_object* v___y_4567_, lean_object* v___y_4568_, lean_object* v___y_4569_){ _start: { -lean_object* v_res_4572_; -v_res_4572_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_stx_4564_, v_a_4565_, v_a_4566_, v_a_4567_, v_a_4568_, v_a_4569_, v_a_4570_); -lean_dec(v_a_4570_); -lean_dec_ref(v_a_4569_); -lean_dec(v_a_4568_); -lean_dec_ref(v_a_4567_); -lean_dec(v_a_4566_); -lean_dec_ref(v_a_4565_); -return v_res_4572_; +lean_object* v_res_4570_; +v_res_4570_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7(v_00_u03b1_4562_, v___y_4563_, v___y_4564_, v___y_4565_, v___y_4566_, v___y_4567_, v___y_4568_); +lean_dec(v___y_4568_); +lean_dec_ref(v___y_4567_); +lean_dec(v___y_4566_); +lean_dec_ref(v___y_4565_); +lean_dec(v___y_4564_); +lean_dec_ref(v___y_4563_); +return v_res_4570_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7(lean_object* v_00_u03b1_4573_, lean_object* v___y_4574_, lean_object* v___y_4575_, lean_object* v___y_4576_, lean_object* v___y_4577_, lean_object* v___y_4578_, lean_object* v___y_4579_){ +LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6(lean_object* v_00_u03b1_4571_, lean_object* v_ref_4572_, lean_object* v___y_4573_, lean_object* v___y_4574_, lean_object* v___y_4575_, lean_object* v___y_4576_, lean_object* v___y_4577_, lean_object* v___y_4578_){ _start: { -lean_object* v___x_4581_; -v___x_4581_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___redArg(); -return v___x_4581_; +lean_object* v___x_4580_; +v___x_4580_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_ref_4572_); +return v___x_4580_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7___boxed(lean_object* v_00_u03b1_4582_, lean_object* v___y_4583_, lean_object* v___y_4584_, lean_object* v___y_4585_, lean_object* v___y_4586_, lean_object* v___y_4587_, lean_object* v___y_4588_, lean_object* v___y_4589_){ +LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___boxed(lean_object* v_00_u03b1_4581_, lean_object* v_ref_4582_, lean_object* v___y_4583_, lean_object* v___y_4584_, lean_object* v___y_4585_, lean_object* v___y_4586_, lean_object* v___y_4587_, lean_object* v___y_4588_, lean_object* v___y_4589_){ _start: { lean_object* v_res_4590_; -v_res_4590_ = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__7(v_00_u03b1_4582_, v___y_4583_, v___y_4584_, v___y_4585_, v___y_4586_, v___y_4587_, v___y_4588_); +v_res_4590_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6(v_00_u03b1_4581_, v_ref_4582_, v___y_4583_, v___y_4584_, v___y_4585_, v___y_4586_, v___y_4587_, v___y_4588_); lean_dec(v___y_4588_); lean_dec_ref(v___y_4587_); lean_dec(v___y_4586_); @@ -14870,19 +14810,19 @@ lean_dec_ref(v___y_4583_); return v_res_4590_; } } -LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6(lean_object* v_00_u03b1_4591_, lean_object* v_ref_4592_, lean_object* v___y_4593_, lean_object* v___y_4594_, lean_object* v___y_4595_, lean_object* v___y_4596_, lean_object* v___y_4597_, lean_object* v___y_4598_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0(lean_object* v_00_u03b1_4591_, lean_object* v_x_4592_, lean_object* v___y_4593_, lean_object* v___y_4594_, lean_object* v___y_4595_, lean_object* v___y_4596_, lean_object* v___y_4597_, lean_object* v___y_4598_){ _start: { lean_object* v___x_4600_; -v___x_4600_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___redArg(v_ref_4592_); +v___x_4600_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v_x_4592_, v___y_4593_, v___y_4594_, v___y_4595_, v___y_4596_, v___y_4597_, v___y_4598_); return v___x_4600_; } } -LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6___boxed(lean_object* v_00_u03b1_4601_, lean_object* v_ref_4602_, lean_object* v___y_4603_, lean_object* v___y_4604_, lean_object* v___y_4605_, lean_object* v___y_4606_, lean_object* v___y_4607_, lean_object* v___y_4608_, lean_object* v___y_4609_){ +LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___boxed(lean_object* v_00_u03b1_4601_, lean_object* v_x_4602_, lean_object* v___y_4603_, lean_object* v___y_4604_, lean_object* v___y_4605_, lean_object* v___y_4606_, lean_object* v___y_4607_, lean_object* v___y_4608_, lean_object* v___y_4609_){ _start: { lean_object* v_res_4610_; -v_res_4610_ = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__6(v_00_u03b1_4601_, v_ref_4602_, v___y_4603_, v___y_4604_, v___y_4605_, v___y_4606_, v___y_4607_, v___y_4608_); +v_res_4610_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0(v_00_u03b1_4601_, v_x_4602_, v___y_4603_, v___y_4604_, v___y_4605_, v___y_4606_, v___y_4607_, v___y_4608_); lean_dec(v___y_4608_); lean_dec_ref(v___y_4607_); lean_dec(v___y_4606_); @@ -14892,65 +14832,65 @@ lean_dec_ref(v___y_4603_); return v_res_4610_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0(lean_object* v_00_u03b1_4611_, lean_object* v_x_4612_, lean_object* v___y_4613_, lean_object* v___y_4614_, lean_object* v___y_4615_, lean_object* v___y_4616_, lean_object* v___y_4617_, lean_object* v___y_4618_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2(lean_object* v_stx_4611_, lean_object* v_as_4612_, lean_object* v_as_x27_4613_, lean_object* v_b_4614_, lean_object* v_a_4615_, lean_object* v___y_4616_, lean_object* v___y_4617_, lean_object* v___y_4618_, lean_object* v___y_4619_, lean_object* v___y_4620_, lean_object* v___y_4621_){ _start: { -lean_object* v___x_4620_; -v___x_4620_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___redArg(v_x_4612_, v___y_4613_, v___y_4614_, v___y_4615_, v___y_4616_, v___y_4617_, v___y_4618_); -return v___x_4620_; +lean_object* v___x_4623_; +v___x_4623_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_4611_, v_as_x27_4613_, v_b_4614_, v___y_4616_, v___y_4617_, v___y_4618_, v___y_4619_, v___y_4620_, v___y_4621_); +return v___x_4623_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0___boxed(lean_object* v_00_u03b1_4621_, lean_object* v_x_4622_, lean_object* v___y_4623_, lean_object* v___y_4624_, lean_object* v___y_4625_, lean_object* v___y_4626_, lean_object* v___y_4627_, lean_object* v___y_4628_, lean_object* v___y_4629_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___boxed(lean_object* v_stx_4624_, lean_object* v_as_4625_, lean_object* v_as_x27_4626_, lean_object* v_b_4627_, lean_object* v_a_4628_, lean_object* v___y_4629_, lean_object* v___y_4630_, lean_object* v___y_4631_, lean_object* v___y_4632_, lean_object* v___y_4633_, lean_object* v___y_4634_, lean_object* v___y_4635_){ _start: { -lean_object* v_res_4630_; -v_res_4630_ = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0(v_00_u03b1_4621_, v_x_4622_, v___y_4623_, v___y_4624_, v___y_4625_, v___y_4626_, v___y_4627_, v___y_4628_); -lean_dec(v___y_4628_); -lean_dec_ref(v___y_4627_); -lean_dec(v___y_4626_); -lean_dec_ref(v___y_4625_); -lean_dec(v___y_4624_); -lean_dec_ref(v___y_4623_); -return v_res_4630_; +lean_object* v_res_4636_; +v_res_4636_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2(v_stx_4624_, v_as_4625_, v_as_x27_4626_, v_b_4627_, v_a_4628_, v___y_4629_, v___y_4630_, v___y_4631_, v___y_4632_, v___y_4633_, v___y_4634_); +lean_dec(v___y_4634_); +lean_dec_ref(v___y_4633_); +lean_dec(v___y_4632_); +lean_dec_ref(v___y_4631_); +lean_dec(v___y_4630_); +lean_dec_ref(v___y_4629_); +lean_dec(v_as_x27_4626_); +lean_dec(v_as_4625_); +return v_res_4636_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2(lean_object* v_stx_4631_, lean_object* v_as_4632_, lean_object* v_as_x27_4633_, lean_object* v_b_4634_, lean_object* v_a_4635_, lean_object* v___y_4636_, lean_object* v___y_4637_, lean_object* v___y_4638_, lean_object* v___y_4639_, lean_object* v___y_4640_, lean_object* v___y_4641_){ +LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3(lean_object* v_00_u03b1_4637_, lean_object* v_msg_4638_, lean_object* v___y_4639_, lean_object* v___y_4640_, lean_object* v___y_4641_, lean_object* v___y_4642_, lean_object* v___y_4643_, lean_object* v___y_4644_){ _start: { -lean_object* v___x_4643_; -v___x_4643_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___redArg(v_stx_4631_, v_as_x27_4633_, v_b_4634_, v___y_4636_, v___y_4637_, v___y_4638_, v___y_4639_, v___y_4640_, v___y_4641_); -return v___x_4643_; +lean_object* v___x_4646_; +v___x_4646_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_4638_, v___y_4639_, v___y_4640_, v___y_4641_, v___y_4642_, v___y_4643_, v___y_4644_); +return v___x_4646_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2___boxed(lean_object* v_stx_4644_, lean_object* v_as_4645_, lean_object* v_as_x27_4646_, lean_object* v_b_4647_, lean_object* v_a_4648_, lean_object* v___y_4649_, lean_object* v___y_4650_, lean_object* v___y_4651_, lean_object* v___y_4652_, lean_object* v___y_4653_, lean_object* v___y_4654_, lean_object* v___y_4655_){ +LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___boxed(lean_object* v_00_u03b1_4647_, lean_object* v_msg_4648_, lean_object* v___y_4649_, lean_object* v___y_4650_, lean_object* v___y_4651_, lean_object* v___y_4652_, lean_object* v___y_4653_, lean_object* v___y_4654_, lean_object* v___y_4655_){ _start: { lean_object* v_res_4656_; -v_res_4656_ = l_List_forIn_x27_loop___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__2(v_stx_4644_, v_as_4645_, v_as_x27_4646_, v_b_4647_, v_a_4648_, v___y_4649_, v___y_4650_, v___y_4651_, v___y_4652_, v___y_4653_, v___y_4654_); +v_res_4656_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3(v_00_u03b1_4647_, v_msg_4648_, v___y_4649_, v___y_4650_, v___y_4651_, v___y_4652_, v___y_4653_, v___y_4654_); lean_dec(v___y_4654_); lean_dec_ref(v___y_4653_); lean_dec(v___y_4652_); lean_dec_ref(v___y_4651_); lean_dec(v___y_4650_); lean_dec_ref(v___y_4649_); -lean_dec(v_as_x27_4646_); -lean_dec(v_as_4645_); return v_res_4656_; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3(lean_object* v_00_u03b1_4657_, lean_object* v_msg_4658_, lean_object* v___y_4659_, lean_object* v___y_4660_, lean_object* v___y_4661_, lean_object* v___y_4662_, lean_object* v___y_4663_, lean_object* v___y_4664_){ +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1(lean_object* v_cls_4657_, lean_object* v_msg_4658_, lean_object* v___y_4659_, lean_object* v___y_4660_, lean_object* v___y_4661_, lean_object* v___y_4662_, lean_object* v___y_4663_, lean_object* v___y_4664_){ _start: { lean_object* v___x_4666_; -v___x_4666_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___redArg(v_msg_4658_, v___y_4659_, v___y_4660_, v___y_4661_, v___y_4662_, v___y_4663_, v___y_4664_); +v___x_4666_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_4657_, v_msg_4658_, v___y_4661_, v___y_4662_, v___y_4663_, v___y_4664_); return v___x_4666_; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3___boxed(lean_object* v_00_u03b1_4667_, lean_object* v_msg_4668_, lean_object* v___y_4669_, lean_object* v___y_4670_, lean_object* v___y_4671_, lean_object* v___y_4672_, lean_object* v___y_4673_, lean_object* v___y_4674_, lean_object* v___y_4675_){ +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___boxed(lean_object* v_cls_4667_, lean_object* v_msg_4668_, lean_object* v___y_4669_, lean_object* v___y_4670_, lean_object* v___y_4671_, lean_object* v___y_4672_, lean_object* v___y_4673_, lean_object* v___y_4674_, lean_object* v___y_4675_){ _start: { lean_object* v_res_4676_; -v_res_4676_ = l_Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3(v_00_u03b1_4667_, v_msg_4668_, v___y_4669_, v___y_4670_, v___y_4671_, v___y_4672_, v___y_4673_, v___y_4674_); +v_res_4676_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1(v_cls_4667_, v_msg_4668_, v___y_4669_, v___y_4670_, v___y_4671_, v___y_4672_, v___y_4673_, v___y_4674_); lean_dec(v___y_4674_); lean_dec_ref(v___y_4673_); lean_dec(v___y_4672_); @@ -14960,235 +14900,213 @@ lean_dec_ref(v___y_4669_); return v_res_4676_; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1(lean_object* v_cls_4677_, lean_object* v_msg_4678_, lean_object* v___y_4679_, lean_object* v___y_4680_, lean_object* v___y_4681_, lean_object* v___y_4682_, lean_object* v___y_4683_, lean_object* v___y_4684_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3(lean_object* v_as_4677_, lean_object* v_as_x27_4678_, lean_object* v_b_4679_, lean_object* v_a_4680_, lean_object* v___y_4681_, lean_object* v___y_4682_, lean_object* v___y_4683_, lean_object* v___y_4684_, lean_object* v___y_4685_, lean_object* v___y_4686_){ _start: { -lean_object* v___x_4686_; -v___x_4686_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___redArg(v_cls_4677_, v_msg_4678_, v___y_4681_, v___y_4682_, v___y_4683_, v___y_4684_); -return v___x_4686_; +lean_object* v___x_4688_; +v___x_4688_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_as_x27_4678_, v_b_4679_, v___y_4681_, v___y_4682_, v___y_4683_, v___y_4684_, v___y_4685_, v___y_4686_); +return v___x_4688_; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1___boxed(lean_object* v_cls_4687_, lean_object* v_msg_4688_, lean_object* v___y_4689_, lean_object* v___y_4690_, lean_object* v___y_4691_, lean_object* v___y_4692_, lean_object* v___y_4693_, lean_object* v___y_4694_, lean_object* v___y_4695_){ +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___boxed(lean_object* v_as_4689_, lean_object* v_as_x27_4690_, lean_object* v_b_4691_, lean_object* v_a_4692_, lean_object* v___y_4693_, lean_object* v___y_4694_, lean_object* v___y_4695_, lean_object* v___y_4696_, lean_object* v___y_4697_, lean_object* v___y_4698_, lean_object* v___y_4699_){ _start: { -lean_object* v_res_4696_; -v_res_4696_ = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__1(v_cls_4687_, v_msg_4688_, v___y_4689_, v___y_4690_, v___y_4691_, v___y_4692_, v___y_4693_, v___y_4694_); +lean_object* v_res_4700_; +v_res_4700_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3(v_as_4689_, v_as_x27_4690_, v_b_4691_, v_a_4692_, v___y_4693_, v___y_4694_, v___y_4695_, v___y_4696_, v___y_4697_, v___y_4698_); +lean_dec(v___y_4698_); +lean_dec_ref(v___y_4697_); +lean_dec(v___y_4696_); +lean_dec_ref(v___y_4695_); lean_dec(v___y_4694_); lean_dec_ref(v___y_4693_); -lean_dec(v___y_4692_); -lean_dec_ref(v___y_4691_); -lean_dec(v___y_4690_); -lean_dec_ref(v___y_4689_); -return v_res_4696_; +lean_dec(v_as_x27_4690_); +lean_dec(v_as_4689_); +return v_res_4700_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3(lean_object* v_as_4697_, lean_object* v_as_x27_4698_, lean_object* v_b_4699_, lean_object* v_a_4700_, lean_object* v___y_4701_, lean_object* v___y_4702_, lean_object* v___y_4703_, lean_object* v___y_4704_, lean_object* v___y_4705_, lean_object* v___y_4706_){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5(lean_object* v_00_u03b1_4701_, lean_object* v_ref_4702_, lean_object* v_msg_4703_, lean_object* v___y_4704_, lean_object* v___y_4705_, lean_object* v___y_4706_, lean_object* v___y_4707_, lean_object* v___y_4708_, lean_object* v___y_4709_){ _start: { -lean_object* v___x_4708_; -v___x_4708_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___redArg(v_as_x27_4698_, v_b_4699_, v___y_4701_, v___y_4702_, v___y_4703_, v___y_4704_, v___y_4705_, v___y_4706_); -return v___x_4708_; +lean_object* v___x_4711_; +v___x_4711_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_ref_4702_, v_msg_4703_, v___y_4704_, v___y_4705_, v___y_4706_, v___y_4707_, v___y_4708_, v___y_4709_); +return v___x_4711_; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3___boxed(lean_object* v_as_4709_, lean_object* v_as_x27_4710_, lean_object* v_b_4711_, lean_object* v_a_4712_, lean_object* v___y_4713_, lean_object* v___y_4714_, lean_object* v___y_4715_, lean_object* v___y_4716_, lean_object* v___y_4717_, lean_object* v___y_4718_, lean_object* v___y_4719_){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___boxed(lean_object* v_00_u03b1_4712_, lean_object* v_ref_4713_, lean_object* v_msg_4714_, lean_object* v___y_4715_, lean_object* v___y_4716_, lean_object* v___y_4717_, lean_object* v___y_4718_, lean_object* v___y_4719_, lean_object* v___y_4720_, lean_object* v___y_4721_){ _start: { -lean_object* v_res_4720_; -v_res_4720_ = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__3(v_as_4709_, v_as_x27_4710_, v_b_4711_, v_a_4712_, v___y_4713_, v___y_4714_, v___y_4715_, v___y_4716_, v___y_4717_, v___y_4718_); +lean_object* v_res_4722_; +v_res_4722_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5(v_00_u03b1_4712_, v_ref_4713_, v_msg_4714_, v___y_4715_, v___y_4716_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); +lean_dec(v___y_4720_); +lean_dec_ref(v___y_4719_); lean_dec(v___y_4718_); lean_dec_ref(v___y_4717_); lean_dec(v___y_4716_); lean_dec_ref(v___y_4715_); -lean_dec(v___y_4714_); -lean_dec_ref(v___y_4713_); -lean_dec(v_as_x27_4710_); -lean_dec(v_as_4709_); -return v_res_4720_; +lean_dec(v_ref_4713_); +return v_res_4722_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5(lean_object* v_00_u03b1_4721_, lean_object* v_ref_4722_, lean_object* v_msg_4723_, lean_object* v___y_4724_, lean_object* v___y_4725_, lean_object* v___y_4726_, lean_object* v___y_4727_, lean_object* v___y_4728_, lean_object* v___y_4729_){ +LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11(lean_object* v_msgData_4723_, lean_object* v_macroStack_4724_, lean_object* v___y_4725_, lean_object* v___y_4726_, lean_object* v___y_4727_, lean_object* v___y_4728_, lean_object* v___y_4729_, lean_object* v___y_4730_){ _start: { -lean_object* v___x_4731_; -v___x_4731_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___redArg(v_ref_4722_, v_msg_4723_, v___y_4724_, v___y_4725_, v___y_4726_, v___y_4727_, v___y_4728_, v___y_4729_); -return v___x_4731_; +lean_object* v___x_4732_; +v___x_4732_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_msgData_4723_, v_macroStack_4724_, v___y_4729_); +return v___x_4732_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5___boxed(lean_object* v_00_u03b1_4732_, lean_object* v_ref_4733_, lean_object* v_msg_4734_, lean_object* v___y_4735_, lean_object* v___y_4736_, lean_object* v___y_4737_, lean_object* v___y_4738_, lean_object* v___y_4739_, lean_object* v___y_4740_, lean_object* v___y_4741_){ +LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___boxed(lean_object* v_msgData_4733_, lean_object* v_macroStack_4734_, lean_object* v___y_4735_, lean_object* v___y_4736_, lean_object* v___y_4737_, lean_object* v___y_4738_, lean_object* v___y_4739_, lean_object* v___y_4740_, lean_object* v___y_4741_){ _start: { lean_object* v_res_4742_; -v_res_4742_ = l_Lean_throwErrorAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__5(v_00_u03b1_4732_, v_ref_4733_, v_msg_4734_, v___y_4735_, v___y_4736_, v___y_4737_, v___y_4738_, v___y_4739_, v___y_4740_); +v_res_4742_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11(v_msgData_4733_, v_macroStack_4734_, v___y_4735_, v___y_4736_, v___y_4737_, v___y_4738_, v___y_4739_, v___y_4740_); lean_dec(v___y_4740_); lean_dec_ref(v___y_4739_); lean_dec(v___y_4738_); lean_dec_ref(v___y_4737_); lean_dec(v___y_4736_); lean_dec_ref(v___y_4735_); -lean_dec(v_ref_4733_); return v_res_4742_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11(lean_object* v_msgData_4743_, lean_object* v_macroStack_4744_, lean_object* v___y_4745_, lean_object* v___y_4746_, lean_object* v___y_4747_, lean_object* v___y_4748_, lean_object* v___y_4749_, lean_object* v___y_4750_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10(lean_object* v_00_u03b2_4743_, lean_object* v_m_4744_, lean_object* v_a_4745_){ _start: { -lean_object* v___x_4752_; -v___x_4752_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___redArg(v_msgData_4743_, v_macroStack_4744_, v___y_4749_); -return v___x_4752_; +lean_object* v___x_4746_; +v___x_4746_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v_m_4744_, v_a_4745_); +return v___x_4746_; } } -LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11___boxed(lean_object* v_msgData_4753_, lean_object* v_macroStack_4754_, lean_object* v___y_4755_, lean_object* v___y_4756_, lean_object* v___y_4757_, lean_object* v___y_4758_, lean_object* v___y_4759_, lean_object* v___y_4760_, lean_object* v___y_4761_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___boxed(lean_object* v_00_u03b2_4747_, lean_object* v_m_4748_, lean_object* v_a_4749_){ _start: { -lean_object* v_res_4762_; -v_res_4762_ = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__3_spec__11(v_msgData_4753_, v_macroStack_4754_, v___y_4755_, v___y_4756_, v___y_4757_, v___y_4758_, v___y_4759_, v___y_4760_); -lean_dec(v___y_4760_); -lean_dec_ref(v___y_4759_); -lean_dec(v___y_4758_); -lean_dec_ref(v___y_4757_); -lean_dec(v___y_4756_); -lean_dec_ref(v___y_4755_); -return v_res_4762_; +lean_object* v_res_4750_; +v_res_4750_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10(v_00_u03b2_4747_, v_m_4748_, v_a_4749_); +lean_dec(v_a_4749_); +lean_dec_ref(v_m_4748_); +return v_res_4750_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10(lean_object* v_00_u03b2_4763_, lean_object* v_m_4764_, lean_object* v_a_4765_){ +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26(lean_object* v_00_u03b2_4751_, lean_object* v_x_4752_, lean_object* v_x_4753_){ _start: { -lean_object* v___x_4766_; -v___x_4766_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___redArg(v_m_4764_, v_a_4765_); -return v___x_4766_; +uint8_t v___x_4754_; +v___x_4754_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v_x_4752_, v_x_4753_); +return v___x_4754_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10___boxed(lean_object* v_00_u03b2_4767_, lean_object* v_m_4768_, lean_object* v_a_4769_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___boxed(lean_object* v_00_u03b2_4755_, lean_object* v_x_4756_, lean_object* v_x_4757_){ _start: { -lean_object* v_res_4770_; -v_res_4770_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10(v_00_u03b2_4767_, v_m_4768_, v_a_4769_); -lean_dec(v_a_4769_); -lean_dec_ref(v_m_4768_); -return v_res_4770_; +uint8_t v_res_4758_; lean_object* v_r_4759_; +v_res_4758_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26(v_00_u03b2_4755_, v_x_4756_, v_x_4757_); +lean_dec_ref(v_x_4757_); +lean_dec_ref(v_x_4756_); +v_r_4759_ = lean_box(v_res_4758_); +return v_r_4759_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26(lean_object* v_00_u03b2_4771_, lean_object* v_x_4772_, lean_object* v_x_4773_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29(lean_object* v_00_u03b2_4760_, lean_object* v_a_4761_, lean_object* v_x_4762_){ _start: { -uint8_t v___x_4774_; -v___x_4774_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___redArg(v_x_4772_, v_x_4773_); -return v___x_4774_; +lean_object* v___x_4763_; +v___x_4763_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_4761_, v_x_4762_); +return v___x_4763_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26___boxed(lean_object* v_00_u03b2_4775_, lean_object* v_x_4776_, lean_object* v_x_4777_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___boxed(lean_object* v_00_u03b2_4764_, lean_object* v_a_4765_, lean_object* v_x_4766_){ _start: { -uint8_t v_res_4778_; lean_object* v_r_4779_; -v_res_4778_ = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26(v_00_u03b2_4775_, v_x_4776_, v_x_4777_); -lean_dec_ref(v_x_4777_); +lean_object* v_res_4767_; +v_res_4767_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29(v_00_u03b2_4764_, v_a_4765_, v_x_4766_); +lean_dec(v_x_4766_); +lean_dec(v_a_4765_); +return v_res_4767_; +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32(lean_object* v_00_u03b2_4768_, lean_object* v_x_4769_, size_t v_x_4770_, lean_object* v_x_4771_){ +_start: +{ +uint8_t v___x_4772_; +v___x_4772_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_4769_, v_x_4770_, v_x_4771_); +return v___x_4772_; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___boxed(lean_object* v_00_u03b2_4773_, lean_object* v_x_4774_, lean_object* v_x_4775_, lean_object* v_x_4776_){ +_start: +{ +size_t v_x_294585__boxed_4777_; uint8_t v_res_4778_; lean_object* v_r_4779_; +v_x_294585__boxed_4777_ = lean_unbox_usize(v_x_4775_); +lean_dec(v_x_4775_); +v_res_4778_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32(v_00_u03b2_4773_, v_x_4774_, v_x_294585__boxed_4777_, v_x_4776_); lean_dec_ref(v_x_4776_); +lean_dec_ref(v_x_4774_); v_r_4779_ = lean_box(v_res_4778_); return v_r_4779_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29(lean_object* v_00_u03b2_4780_, lean_object* v_a_4781_, lean_object* v_x_4782_){ +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36(lean_object* v_00_u03b2_4780_, lean_object* v_keys_4781_, lean_object* v_vals_4782_, lean_object* v_heq_4783_, lean_object* v_i_4784_, lean_object* v_k_4785_){ _start: { -lean_object* v___x_4783_; -v___x_4783_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___redArg(v_a_4781_, v_x_4782_); -return v___x_4783_; +uint8_t v___x_4786_; +v___x_4786_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_keys_4781_, v_i_4784_, v_k_4785_); +return v___x_4786_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29___boxed(lean_object* v_00_u03b2_4784_, lean_object* v_a_4785_, lean_object* v_x_4786_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___boxed(lean_object* v_00_u03b2_4787_, lean_object* v_keys_4788_, lean_object* v_vals_4789_, lean_object* v_heq_4790_, lean_object* v_i_4791_, lean_object* v_k_4792_){ _start: { -lean_object* v_res_4787_; -v_res_4787_ = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__10_spec__29(v_00_u03b2_4784_, v_a_4785_, v_x_4786_); -lean_dec(v_x_4786_); -lean_dec(v_a_4785_); -return v_res_4787_; +uint8_t v_res_4793_; lean_object* v_r_4794_; +v_res_4793_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36(v_00_u03b2_4787_, v_keys_4788_, v_vals_4789_, v_heq_4790_, v_i_4791_, v_k_4792_); +lean_dec_ref(v_k_4792_); +lean_dec_ref(v_vals_4789_); +lean_dec_ref(v_keys_4788_); +v_r_4794_ = lean_box(v_res_4793_); +return v_r_4794_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32(lean_object* v_00_u03b2_4788_, lean_object* v_x_4789_, size_t v_x_4790_, lean_object* v_x_4791_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoSeq(lean_object* v_doSeq_4795_, lean_object* v_a_4796_, lean_object* v_a_4797_, lean_object* v_a_4798_, lean_object* v_a_4799_, lean_object* v_a_4800_, lean_object* v_a_4801_){ _start: { -uint8_t v___x_4792_; -v___x_4792_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___redArg(v_x_4789_, v_x_4790_, v_x_4791_); -return v___x_4792_; +lean_object* v___x_4803_; +v___x_4803_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_doSeq_4795_, v_a_4796_, v_a_4797_, v_a_4798_, v_a_4799_, v_a_4800_, v_a_4801_); +return v___x_4803_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32___boxed(lean_object* v_00_u03b2_4793_, lean_object* v_x_4794_, lean_object* v_x_4795_, lean_object* v_x_4796_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoSeq___boxed(lean_object* v_doSeq_4804_, lean_object* v_a_4805_, lean_object* v_a_4806_, lean_object* v_a_4807_, lean_object* v_a_4808_, lean_object* v_a_4809_, lean_object* v_a_4810_, lean_object* v_a_4811_){ _start: { -size_t v_x_294640__boxed_4797_; uint8_t v_res_4798_; lean_object* v_r_4799_; -v_x_294640__boxed_4797_ = lean_unbox_usize(v_x_4795_); -lean_dec(v_x_4795_); -v_res_4798_ = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32(v_00_u03b2_4793_, v_x_4794_, v_x_294640__boxed_4797_, v_x_4796_); -lean_dec_ref(v_x_4796_); -lean_dec_ref(v_x_4794_); -v_r_4799_ = lean_box(v_res_4798_); -return v_r_4799_; +lean_object* v_res_4812_; +v_res_4812_ = l_Lean_Elab_Do_inferControlInfoSeq(v_doSeq_4804_, v_a_4805_, v_a_4806_, v_a_4807_, v_a_4808_, v_a_4809_, v_a_4810_); +lean_dec(v_a_4810_); +lean_dec_ref(v_a_4809_); +lean_dec(v_a_4808_); +lean_dec_ref(v_a_4807_); +lean_dec(v_a_4806_); +lean_dec_ref(v_a_4805_); +return v_res_4812_; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36(lean_object* v_00_u03b2_4800_, lean_object* v_keys_4801_, lean_object* v_vals_4802_, lean_object* v_heq_4803_, lean_object* v_i_4804_, lean_object* v_k_4805_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoElem(lean_object* v_doElem_4813_, lean_object* v_a_4814_, lean_object* v_a_4815_, lean_object* v_a_4816_, lean_object* v_a_4817_, lean_object* v_a_4818_, lean_object* v_a_4819_){ _start: { -uint8_t v___x_4806_; -v___x_4806_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___redArg(v_keys_4801_, v_i_4804_, v_k_4805_); -return v___x_4806_; +lean_object* v___x_4821_; +v___x_4821_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_doElem_4813_, v_a_4814_, v_a_4815_, v_a_4816_, v_a_4817_, v_a_4818_, v_a_4819_); +return v___x_4821_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36___boxed(lean_object* v_00_u03b2_4807_, lean_object* v_keys_4808_, lean_object* v_vals_4809_, lean_object* v_heq_4810_, lean_object* v_i_4811_, lean_object* v_k_4812_){ +LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoElem___boxed(lean_object* v_doElem_4822_, lean_object* v_a_4823_, lean_object* v_a_4824_, lean_object* v_a_4825_, lean_object* v_a_4826_, lean_object* v_a_4827_, lean_object* v_a_4828_, lean_object* v_a_4829_){ _start: { -uint8_t v_res_4813_; lean_object* v_r_4814_; -v_res_4813_ = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Do_InferControlInfo_ofElem_spec__0_spec__2_spec__8_spec__26_spec__32_spec__36(v_00_u03b2_4807_, v_keys_4808_, v_vals_4809_, v_heq_4810_, v_i_4811_, v_k_4812_); -lean_dec_ref(v_k_4812_); -lean_dec_ref(v_vals_4809_); -lean_dec_ref(v_keys_4808_); -v_r_4814_ = lean_box(v_res_4813_); -return v_r_4814_; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoSeq(lean_object* v_doSeq_4815_, lean_object* v_a_4816_, lean_object* v_a_4817_, lean_object* v_a_4818_, lean_object* v_a_4819_, lean_object* v_a_4820_, lean_object* v_a_4821_){ -_start: -{ -lean_object* v___x_4823_; -v___x_4823_ = l_Lean_Elab_Do_InferControlInfo_ofSeq(v_doSeq_4815_, v_a_4816_, v_a_4817_, v_a_4818_, v_a_4819_, v_a_4820_, v_a_4821_); -return v___x_4823_; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoSeq___boxed(lean_object* v_doSeq_4824_, lean_object* v_a_4825_, lean_object* v_a_4826_, lean_object* v_a_4827_, lean_object* v_a_4828_, lean_object* v_a_4829_, lean_object* v_a_4830_, lean_object* v_a_4831_){ -_start: -{ -lean_object* v_res_4832_; -v_res_4832_ = l_Lean_Elab_Do_inferControlInfoSeq(v_doSeq_4824_, v_a_4825_, v_a_4826_, v_a_4827_, v_a_4828_, v_a_4829_, v_a_4830_); -lean_dec(v_a_4830_); -lean_dec_ref(v_a_4829_); +lean_object* v_res_4830_; +v_res_4830_ = l_Lean_Elab_Do_inferControlInfoElem(v_doElem_4822_, v_a_4823_, v_a_4824_, v_a_4825_, v_a_4826_, v_a_4827_, v_a_4828_); lean_dec(v_a_4828_); lean_dec_ref(v_a_4827_); lean_dec(v_a_4826_); lean_dec_ref(v_a_4825_); -return v_res_4832_; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoElem(lean_object* v_doElem_4833_, lean_object* v_a_4834_, lean_object* v_a_4835_, lean_object* v_a_4836_, lean_object* v_a_4837_, lean_object* v_a_4838_, lean_object* v_a_4839_){ -_start: -{ -lean_object* v___x_4841_; -v___x_4841_ = l_Lean_Elab_Do_InferControlInfo_ofElem(v_doElem_4833_, v_a_4834_, v_a_4835_, v_a_4836_, v_a_4837_, v_a_4838_, v_a_4839_); -return v___x_4841_; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Do_inferControlInfoElem___boxed(lean_object* v_doElem_4842_, lean_object* v_a_4843_, lean_object* v_a_4844_, lean_object* v_a_4845_, lean_object* v_a_4846_, lean_object* v_a_4847_, lean_object* v_a_4848_, lean_object* v_a_4849_){ -_start: -{ -lean_object* v_res_4850_; -v_res_4850_ = l_Lean_Elab_Do_inferControlInfoElem(v_doElem_4842_, v_a_4843_, v_a_4844_, v_a_4845_, v_a_4846_, v_a_4847_, v_a_4848_); -lean_dec(v_a_4848_); -lean_dec_ref(v_a_4847_); -lean_dec(v_a_4846_); -lean_dec_ref(v_a_4845_); -lean_dec(v_a_4844_); -lean_dec_ref(v_a_4843_); -return v_res_4850_; +lean_dec(v_a_4824_); +lean_dec_ref(v_a_4823_); +return v_res_4830_; } } lean_object* runtime_initialize_Lean_Elab_Term(uint8_t builtin); diff --git a/stage0/stdlib/Lean/Meta/WrapInstance.c b/stage0/stdlib/Lean/Meta/WrapInstance.c index bef45fdea1..9c9fe2e0c9 100644 --- a/stage0/stdlib/Lean/Meta/WrapInstance.c +++ b/stage0/stdlib/Lean/Meta/WrapInstance.c @@ -13,6 +13,17 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* lean_st_ref_get(lean_object*); +lean_object* lean_st_ref_take(lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); +uint8_t l_Lean_instBEqMVarId_beq(lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* lean_array_fset(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_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); @@ -20,8 +31,6 @@ lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_enableRealizationsForConst(lean_object*, lean_object*, lean_object*); -lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_compileDecls(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -30,14 +39,10 @@ lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_fi lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); -lean_object* lean_st_ref_get(lean_object*); lean_object* l_Lean_DeclNameGenerator_mkUniqueName(lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_take(lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAuxDefinition(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_ReducibilityAttrs_0__Lean_setReducibilityStatusCore(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_markMeta(lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); @@ -63,10 +68,6 @@ lean_object* l_Lean_MessageData_ofName(lean_object*); extern lean_object* l_Lean_unknownIdentifierMessageTag; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallMetaTelescope(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_get_size(lean_object*); -lean_object* lean_nat_add(lean_object*, lean_object*); -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_MVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); @@ -85,8 +86,6 @@ size_t lean_usize_sub(size_t, size_t); size_t lean_usize_land(size_t, size_t); lean_object* lean_usize_to_nat(size_t); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_instBEqMVarId_beq(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___redArg(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); size_t lean_usize_add(size_t, size_t); @@ -360,287 +359,283 @@ LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_sp LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_once_cell_t l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0; -static lean_once_cell_t l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1; -static lean_once_cell_t l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2; -static lean_once_cell_t l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3; -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0; -static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1; -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0; +static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static const lean_string_object l_Lean_Meta_wrapInstance___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = "type: "}; static const lean_object* l_Lean_Meta_wrapInstance___lam__0___closed__0 = (const lean_object*)&l_Lean_Meta_wrapInstance___lam__0___closed__0_value; static lean_once_cell_t l_Lean_Meta_wrapInstance___lam__0___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; static lean_object* l_Lean_Meta_wrapInstance___lam__0___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(lean_object*, lean_object*); -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 24, .m_capacity = 24, .m_length = 23, .m_data = "A private declaration `"}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__6 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__6_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 79, .m_capacity = 79, .m_length = 78, .m_data = "` (from the current module) exists but would need to be public to access here."}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__8 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__8_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 23, .m_capacity = 23, .m_length = 22, .m_data = "A public declaration `"}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__10 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__10_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 68, .m_capacity = 68, .m_length = 67, .m_data = "` exists but is imported privately; consider adding `public import "}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__12 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__12_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "`."}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__14 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__14_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__16_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "` (from `"}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__16 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__16_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17; -static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__18_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 54, .m_capacity = 54, .m_length = 53, .m_data = "`) exists but would need to be public to access here."}; -static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__18 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__18_value; -static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19; -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_string_object l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 19, .m_capacity = 19, .m_length = 18, .m_data = "Unknown constant `"}; -static const lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__0 = (const lean_object*)&l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__0_value; -static lean_once_cell_t l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24___redArg(lean_object*, lean_object*, lean_object*); -static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; -static size_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0; -static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static size_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1; -static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 55, .m_capacity = 55, .m_length = 54, .m_data = "error when attempting to reuse existing instance for `"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__0_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "`: "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__2 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__2_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 40, .m_capacity = 40, .m_length = 39, .m_data = "using projection of existing instance `"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__4 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__4_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 37, .m_capacity = 37, .m_length = 36, .m_data = "did not find existing instance for `"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__6 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__6_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7; -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "_aux"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__0_value; -static const lean_ctor_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__0_value),LEAN_SCALAR_PTR_LITERAL(239, 43, 245, 0, 252, 151, 26, 151)}}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1_value; -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__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_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__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_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(lean_object*); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16(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___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15(lean_object*); -LEAN_EXPORT lean_object* l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15___boxed(lean_object*); -static const lean_string_object l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = " "}; -static const lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__0 = (const lean_object*)&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__0_value; -static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1; -static const lean_string_object l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 54, .m_capacity = 54, .m_length = 53, .m_data = ""}; -static const lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__2 = (const lean_object*)&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__2_value; -static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3; -static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; -static double l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4; -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12(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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 24, .m_capacity = 24, .m_length = 23, .m_data = "A private declaration `"}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__6 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__6_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 79, .m_capacity = 79, .m_length = 78, .m_data = "` (from the current module) exists but would need to be public to access here."}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__8 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__8_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 23, .m_capacity = 23, .m_length = 22, .m_data = "A public declaration `"}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__10 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__10_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 68, .m_capacity = 68, .m_length = 67, .m_data = "` exists but is imported privately; consider adding `public import "}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__12 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__12_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "`."}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__14 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__14_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__16_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "` (from `"}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__16 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__16_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17; +static const lean_string_object l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__18_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 54, .m_capacity = 54, .m_length = 53, .m_data = "`) exists but would need to be public to access here."}; +static const lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__18 = (const lean_object*)&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__18_value; +static lean_once_cell_t l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19; +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 19, .m_capacity = 19, .m_length = 18, .m_data = "Unknown constant `"}; +static const lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__0 = (const lean_object*)&l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__0_value; +static lean_once_cell_t l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23___redArg(lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static size_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0; +static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static size_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1; +static lean_once_cell_t l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg(size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 55, .m_capacity = 55, .m_length = 54, .m_data = "error when attempting to reuse existing instance for `"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__0_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "`: "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__2 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__2_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 40, .m_capacity = 40, .m_length = 39, .m_data = "using projection of existing instance `"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__4 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__4_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 37, .m_capacity = 37, .m_length = 36, .m_data = "did not find existing instance for `"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__6 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__6_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "_aux"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__0_value; +static const lean_ctor_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__0_value),LEAN_SCALAR_PTR_LITERAL(239, 43, 245, 0, 252, 151, 26, 151)}}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__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_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__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_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__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_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14(lean_object*); +LEAN_EXPORT lean_object* l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14___boxed(lean_object*); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(lean_object*); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15(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___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = " "}; +static const lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__0 = (const lean_object*)&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__0_value; +static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1; +static const lean_string_object l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 54, .m_capacity = 54, .m_length = 53, .m_data = ""}; +static const lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__2 = (const lean_object*)&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__2_value; +static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3; +static lean_once_cell_t l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; +static double l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11(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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_once_cell_t l_Lean_Meta_wrapInstance___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; static uint64_t l_Lean_Meta_wrapInstance___closed__0; -static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 70, .m_capacity = 70, .m_length = 69, .m_data = "did not reduce to constructor application, returning/wrapping as is: "}; -static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__0 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__0_value; -static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1; -static const lean_closure_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0___boxed, .m_arity = 6, .m_num_fixed = 1, .m_objs = {((lean_object*)&l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2__value)} }; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0_value; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 24, .m_capacity = 24, .m_length = 23, .m_data = "found inherited field `"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__3 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__3_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 16, .m_capacity = 16, .m_length = 15, .m_data = "` from parent `"}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__5 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__5_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 25, .m_capacity = 25, .m_length = 24, .m_data = "using existing instance "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__1 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__1_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2; -static const lean_closure_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6___boxed, .m_arity = 7, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7_value; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "proof field "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__8 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__8_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 30, .m_capacity = 30, .m_length = 29, .m_data = " does not have expected type "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__10 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__10_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = " but "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__12 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__12_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13; -static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 34, .m_capacity = 34, .m_length = 33, .m_data = ", wrapping in auxiliary theorem: "}; -static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__14 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__14_value; -static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15; -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 74, .m_capacity = 74, .m_length = 73, .m_data = "wrapInstance: incorrect number of arguments for constructor application `"}; -static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__2 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__2_value; -static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3; -static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 16, .m_capacity = 16, .m_length = 15, .m_data = "wrapInstance: `"}; -static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__4 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__4_value; -static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5; -static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 42, .m_capacity = 42, .m_length = 41, .m_data = "` does not unify with the conclusion of `"}; -static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__6 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__6_value; -static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7; -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 70, .m_capacity = 70, .m_length = 69, .m_data = "did not reduce to constructor application, returning/wrapping as is: "}; +static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__0 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__0_value; +static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1; +static const lean_closure_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0___boxed, .m_arity = 6, .m_num_fixed = 1, .m_objs = {((lean_object*)&l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2__value)} }; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0_value; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 24, .m_capacity = 24, .m_length = 23, .m_data = "found inherited field `"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__3 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__3_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 16, .m_capacity = 16, .m_length = 15, .m_data = "` from parent `"}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__5 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__5_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 25, .m_capacity = 25, .m_length = 24, .m_data = "using existing instance "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__1 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__1_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2; +static const lean_closure_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6___boxed, .m_arity = 7, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7_value; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "proof field "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__8 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__8_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 30, .m_capacity = 30, .m_length = 29, .m_data = " does not have expected type "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__10 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__10_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = " but "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__12 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__12_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13; +static const lean_string_object l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 34, .m_capacity = 34, .m_length = 33, .m_data = ", wrapping in auxiliary theorem: "}; +static const lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__14 = (const lean_object*)&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__14_value; +static lean_once_cell_t l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 74, .m_capacity = 74, .m_length = 73, .m_data = "wrapInstance: incorrect number of arguments for constructor application `"}; +static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__2 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__2_value; +static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3; +static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 16, .m_capacity = 16, .m_length = 15, .m_data = "wrapInstance: `"}; +static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__4 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__4_value; +static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5; +static const lean_string_object l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 42, .m_capacity = 42, .m_length = 41, .m_data = "` does not unify with the conclusion of `"}; +static const lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__6 = (const lean_object*)&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__6_value; +static lean_once_cell_t l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_once_cell_t l_Lean_Meta_wrapInstance___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; static double l_Lean_Meta_wrapInstance___closed__1; -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__1(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static const lean_string_object l_Lean_Meta_wrapInstance___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "class is "}; static const lean_object* l_Lean_Meta_wrapInstance___closed__2 = (const lean_object*)&l_Lean_Meta_wrapInstance___closed__2_value; static lean_once_cell_t l_Lean_Meta_wrapInstance___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; static lean_object* l_Lean_Meta_wrapInstance___closed__3; -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_spec__25(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__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_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__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_Meta_wrapInstance___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_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*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_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*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___boxed(lean_object**); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg___boxed(lean_object**); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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___00Lean_Meta_wrapInstance_spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___boxed(lean_object**); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg___boxed(lean_object**); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_wrapInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___boxed(lean_object**); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___boxed(lean_object**); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___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_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___boxed(lean_object**); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___boxed(lean_object**); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___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_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_register___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn_00___x40_Lean_Meta_WrapInstance_700393601____hygCtx___hyg_4__spec__0(lean_object* v_name_1_, lean_object* v_decl_2_, lean_object* v_ref_3_){ _start: { @@ -2684,942 +2679,925 @@ lean_dec_ref(v___y_838_); return v_res_843_; } } -static lean_object* _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0(void){ +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(lean_object* v_e_844_, lean_object* v___y_845_){ _start: { -lean_object* v___x_844_; -v___x_844_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); -return v___x_844_; -} -} -static lean_object* _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1(void){ -_start: +uint8_t v___x_847_; +v___x_847_ = l_Lean_Expr_hasMVar(v_e_844_); +if (v___x_847_ == 0) { -lean_object* v___x_845_; lean_object* v___x_846_; -v___x_845_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__0); -v___x_846_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_846_, 0, v___x_845_); -return v___x_846_; -} -} -static lean_object* _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2(void){ -_start: -{ -lean_object* v___x_847_; lean_object* v___x_848_; -v___x_847_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1); -v___x_848_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_848_, 0, v___x_847_); -lean_ctor_set(v___x_848_, 1, v___x_847_); +lean_object* v___x_848_; +v___x_848_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_848_, 0, v_e_844_); return v___x_848_; } -} -static lean_object* _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3(void){ -_start: +else { -lean_object* v___x_849_; lean_object* v___x_850_; -v___x_849_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__1); -v___x_850_ = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(v___x_850_, 0, v___x_849_); -lean_ctor_set(v___x_850_, 1, v___x_849_); -lean_ctor_set(v___x_850_, 2, v___x_849_); -lean_ctor_set(v___x_850_, 3, v___x_849_); -lean_ctor_set(v___x_850_, 4, v___x_849_); -lean_ctor_set(v___x_850_, 5, v___x_849_); -return v___x_850_; -} -} -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(lean_object* v_declName_851_, uint8_t v_s_852_, lean_object* v___y_853_, lean_object* v___y_854_){ -_start: +lean_object* v___x_849_; lean_object* v_mctx_850_; lean_object* v___x_851_; lean_object* v_fst_852_; lean_object* v_snd_853_; lean_object* v___x_854_; lean_object* v_cache_855_; lean_object* v_zetaDeltaFVarIds_856_; lean_object* v_postponed_857_; lean_object* v_diag_858_; lean_object* v___x_860_; uint8_t v_isShared_861_; uint8_t v_isSharedCheck_867_; +v___x_849_ = lean_st_ref_get(v___y_845_); +v_mctx_850_ = lean_ctor_get(v___x_849_, 0); +lean_inc_ref(v_mctx_850_); +lean_dec(v___x_849_); +v___x_851_ = l_Lean_instantiateMVarsCore(v_mctx_850_, v_e_844_); +v_fst_852_ = lean_ctor_get(v___x_851_, 0); +lean_inc(v_fst_852_); +v_snd_853_ = lean_ctor_get(v___x_851_, 1); +lean_inc(v_snd_853_); +lean_dec_ref(v___x_851_); +v___x_854_ = lean_st_ref_take(v___y_845_); +v_cache_855_ = lean_ctor_get(v___x_854_, 1); +v_zetaDeltaFVarIds_856_ = lean_ctor_get(v___x_854_, 2); +v_postponed_857_ = lean_ctor_get(v___x_854_, 3); +v_diag_858_ = lean_ctor_get(v___x_854_, 4); +v_isSharedCheck_867_ = !lean_is_exclusive(v___x_854_); +if (v_isSharedCheck_867_ == 0) { -lean_object* v___x_856_; lean_object* v_env_857_; lean_object* v_nextMacroScope_858_; lean_object* v_ngen_859_; lean_object* v_auxDeclNGen_860_; lean_object* v_traceState_861_; lean_object* v_messages_862_; lean_object* v_infoState_863_; lean_object* v_snapshotTasks_864_; lean_object* v___x_866_; uint8_t v_isShared_867_; uint8_t v_isSharedCheck_893_; -v___x_856_ = lean_st_ref_take(v___y_854_); -v_env_857_ = lean_ctor_get(v___x_856_, 0); -v_nextMacroScope_858_ = lean_ctor_get(v___x_856_, 1); -v_ngen_859_ = lean_ctor_get(v___x_856_, 2); -v_auxDeclNGen_860_ = lean_ctor_get(v___x_856_, 3); -v_traceState_861_ = lean_ctor_get(v___x_856_, 4); -v_messages_862_ = lean_ctor_get(v___x_856_, 6); -v_infoState_863_ = lean_ctor_get(v___x_856_, 7); -v_snapshotTasks_864_ = lean_ctor_get(v___x_856_, 8); -v_isSharedCheck_893_ = !lean_is_exclusive(v___x_856_); -if (v_isSharedCheck_893_ == 0) -{ -lean_object* v_unused_894_; -v_unused_894_ = lean_ctor_get(v___x_856_, 5); -lean_dec(v_unused_894_); -v___x_866_ = v___x_856_; -v_isShared_867_ = v_isSharedCheck_893_; -goto v_resetjp_865_; +lean_object* v_unused_868_; +v_unused_868_ = lean_ctor_get(v___x_854_, 0); +lean_dec(v_unused_868_); +v___x_860_ = v___x_854_; +v_isShared_861_ = v_isSharedCheck_867_; +goto v_resetjp_859_; } else { -lean_inc(v_snapshotTasks_864_); -lean_inc(v_infoState_863_); -lean_inc(v_messages_862_); -lean_inc(v_traceState_861_); -lean_inc(v_auxDeclNGen_860_); -lean_inc(v_ngen_859_); -lean_inc(v_nextMacroScope_858_); -lean_inc(v_env_857_); -lean_dec(v___x_856_); -v___x_866_ = lean_box(0); -v_isShared_867_ = v_isSharedCheck_893_; -goto v_resetjp_865_; +lean_inc(v_diag_858_); +lean_inc(v_postponed_857_); +lean_inc(v_zetaDeltaFVarIds_856_); +lean_inc(v_cache_855_); +lean_dec(v___x_854_); +v___x_860_ = lean_box(0); +v_isShared_861_ = v_isSharedCheck_867_; +goto v_resetjp_859_; } -v_resetjp_865_: +v_resetjp_859_: { -uint8_t v___x_868_; lean_object* v___x_869_; lean_object* v___x_870_; lean_object* v___x_871_; lean_object* v___x_873_; -v___x_868_ = 0; -v___x_869_ = lean_box(0); -v___x_870_ = l___private_Lean_ReducibilityAttrs_0__Lean_setReducibilityStatusCore(v_env_857_, v_declName_851_, v_s_852_, v___x_868_, v___x_869_); -v___x_871_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_867_ == 0) +lean_object* v___x_863_; +if (v_isShared_861_ == 0) { -lean_ctor_set(v___x_866_, 5, v___x_871_); -lean_ctor_set(v___x_866_, 0, v___x_870_); -v___x_873_ = v___x_866_; -goto v_reusejp_872_; +lean_ctor_set(v___x_860_, 0, v_snd_853_); +v___x_863_ = v___x_860_; +goto v_reusejp_862_; } else { -lean_object* v_reuseFailAlloc_892_; -v_reuseFailAlloc_892_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_892_, 0, v___x_870_); -lean_ctor_set(v_reuseFailAlloc_892_, 1, v_nextMacroScope_858_); -lean_ctor_set(v_reuseFailAlloc_892_, 2, v_ngen_859_); -lean_ctor_set(v_reuseFailAlloc_892_, 3, v_auxDeclNGen_860_); -lean_ctor_set(v_reuseFailAlloc_892_, 4, v_traceState_861_); -lean_ctor_set(v_reuseFailAlloc_892_, 5, v___x_871_); -lean_ctor_set(v_reuseFailAlloc_892_, 6, v_messages_862_); -lean_ctor_set(v_reuseFailAlloc_892_, 7, v_infoState_863_); -lean_ctor_set(v_reuseFailAlloc_892_, 8, v_snapshotTasks_864_); -v___x_873_ = v_reuseFailAlloc_892_; -goto v_reusejp_872_; +lean_object* v_reuseFailAlloc_866_; +v_reuseFailAlloc_866_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_866_, 0, v_snd_853_); +lean_ctor_set(v_reuseFailAlloc_866_, 1, v_cache_855_); +lean_ctor_set(v_reuseFailAlloc_866_, 2, v_zetaDeltaFVarIds_856_); +lean_ctor_set(v_reuseFailAlloc_866_, 3, v_postponed_857_); +lean_ctor_set(v_reuseFailAlloc_866_, 4, v_diag_858_); +v___x_863_ = v_reuseFailAlloc_866_; +goto v_reusejp_862_; } -v_reusejp_872_: +v_reusejp_862_: { -lean_object* v___x_874_; lean_object* v___x_875_; lean_object* v_mctx_876_; lean_object* v_zetaDeltaFVarIds_877_; lean_object* v_postponed_878_; lean_object* v_diag_879_; lean_object* v___x_881_; uint8_t v_isShared_882_; uint8_t v_isSharedCheck_890_; -v___x_874_ = lean_st_ref_set(v___y_854_, v___x_873_); -v___x_875_ = lean_st_ref_take(v___y_853_); -v_mctx_876_ = lean_ctor_get(v___x_875_, 0); -v_zetaDeltaFVarIds_877_ = lean_ctor_get(v___x_875_, 2); -v_postponed_878_ = lean_ctor_get(v___x_875_, 3); -v_diag_879_ = lean_ctor_get(v___x_875_, 4); -v_isSharedCheck_890_ = !lean_is_exclusive(v___x_875_); -if (v_isSharedCheck_890_ == 0) -{ -lean_object* v_unused_891_; -v_unused_891_ = lean_ctor_get(v___x_875_, 1); -lean_dec(v_unused_891_); -v___x_881_ = v___x_875_; -v_isShared_882_ = v_isSharedCheck_890_; -goto v_resetjp_880_; -} -else -{ -lean_inc(v_diag_879_); -lean_inc(v_postponed_878_); -lean_inc(v_zetaDeltaFVarIds_877_); -lean_inc(v_mctx_876_); -lean_dec(v___x_875_); -v___x_881_ = lean_box(0); -v_isShared_882_ = v_isSharedCheck_890_; -goto v_resetjp_880_; -} -v_resetjp_880_: -{ -lean_object* v___x_883_; lean_object* v___x_885_; -v___x_883_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_882_ == 0) -{ -lean_ctor_set(v___x_881_, 1, v___x_883_); -v___x_885_ = v___x_881_; -goto v_reusejp_884_; -} -else -{ -lean_object* v_reuseFailAlloc_889_; -v_reuseFailAlloc_889_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_889_, 0, v_mctx_876_); -lean_ctor_set(v_reuseFailAlloc_889_, 1, v___x_883_); -lean_ctor_set(v_reuseFailAlloc_889_, 2, v_zetaDeltaFVarIds_877_); -lean_ctor_set(v_reuseFailAlloc_889_, 3, v_postponed_878_); -lean_ctor_set(v_reuseFailAlloc_889_, 4, v_diag_879_); -v___x_885_ = v_reuseFailAlloc_889_; -goto v_reusejp_884_; -} -v_reusejp_884_: -{ -lean_object* v___x_886_; lean_object* v___x_887_; lean_object* v___x_888_; -v___x_886_ = lean_st_ref_set(v___y_853_, v___x_885_); -v___x_887_ = lean_box(0); -v___x_888_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_888_, 0, v___x_887_); -return v___x_888_; +lean_object* v___x_864_; lean_object* v___x_865_; +v___x_864_ = lean_st_ref_set(v___y_845_, v___x_863_); +v___x_865_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_865_, 0, v_fst_852_); +return v___x_865_; } } } } } -} -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___boxed(lean_object* v_declName_895_, lean_object* v_s_896_, lean_object* v___y_897_, lean_object* v___y_898_, lean_object* v___y_899_){ +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg___boxed(lean_object* v_e_869_, lean_object* v___y_870_, lean_object* v___y_871_){ _start: { -uint8_t v_s_boxed_900_; lean_object* v_res_901_; -v_s_boxed_900_ = lean_unbox(v_s_896_); -v_res_901_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_declName_895_, v_s_boxed_900_, v___y_897_, v___y_898_); -lean_dec(v___y_898_); -lean_dec(v___y_897_); -return v_res_901_; +lean_object* v_res_872_; +v_res_872_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_e_869_, v___y_870_); +lean_dec(v___y_870_); +return v_res_872_; } } -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2(lean_object* v_declName_902_, uint8_t v_s_903_, lean_object* v___y_904_, lean_object* v___y_905_, lean_object* v___y_906_, lean_object* v___y_907_){ +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4(lean_object* v_e_873_, lean_object* v___y_874_, lean_object* v___y_875_, lean_object* v___y_876_, lean_object* v___y_877_){ _start: { -lean_object* v___x_909_; -v___x_909_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_declName_902_, v_s_903_, v___y_905_, v___y_907_); -return v___x_909_; +lean_object* v___x_879_; +v___x_879_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_e_873_, v___y_875_); +return v___x_879_; } } -LEAN_EXPORT lean_object* l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___boxed(lean_object* v_declName_910_, lean_object* v_s_911_, lean_object* v___y_912_, lean_object* v___y_913_, lean_object* v___y_914_, lean_object* v___y_915_, lean_object* v___y_916_){ +LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___boxed(lean_object* v_e_880_, lean_object* v___y_881_, lean_object* v___y_882_, lean_object* v___y_883_, lean_object* v___y_884_, lean_object* v___y_885_){ _start: { -uint8_t v_s_boxed_917_; lean_object* v_res_918_; -v_s_boxed_917_ = lean_unbox(v_s_911_); -v_res_918_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2(v_declName_910_, v_s_boxed_917_, v___y_912_, v___y_913_, v___y_914_, v___y_915_); -lean_dec(v___y_915_); -lean_dec_ref(v___y_914_); -lean_dec(v___y_913_); -lean_dec_ref(v___y_912_); -return v_res_918_; +lean_object* v_res_886_; +v_res_886_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4(v_e_880_, v___y_881_, v___y_882_, v___y_883_, v___y_884_); +lean_dec(v___y_884_); +lean_dec_ref(v___y_883_); +lean_dec(v___y_882_); +lean_dec_ref(v___y_881_); +return v_res_886_; } } -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(lean_object* v_e_919_, lean_object* v___y_920_){ +static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0(void){ _start: { -uint8_t v___x_922_; -v___x_922_ = l_Lean_Expr_hasMVar(v_e_919_); -if (v___x_922_ == 0) +lean_object* v___x_887_; lean_object* v___x_888_; lean_object* v___x_889_; +v___x_887_ = lean_unsigned_to_nat(32u); +v___x_888_ = lean_mk_empty_array_with_capacity(v___x_887_); +v___x_889_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_889_, 0, v___x_888_); +return v___x_889_; +} +} +static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1(void){ +_start: { -lean_object* v___x_923_; -v___x_923_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_923_, 0, v_e_919_); -return v___x_923_; +size_t v___x_890_; lean_object* v___x_891_; lean_object* v___x_892_; lean_object* v___x_893_; lean_object* v___x_894_; lean_object* v___x_895_; +v___x_890_ = ((size_t)5ULL); +v___x_891_ = lean_unsigned_to_nat(0u); +v___x_892_ = lean_unsigned_to_nat(32u); +v___x_893_ = lean_mk_empty_array_with_capacity(v___x_892_); +v___x_894_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0, &l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0_once, _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__0); +v___x_895_ = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(v___x_895_, 0, v___x_894_); +lean_ctor_set(v___x_895_, 1, v___x_893_); +lean_ctor_set(v___x_895_, 2, v___x_891_); +lean_ctor_set(v___x_895_, 3, v___x_891_); +lean_ctor_set_usize(v___x_895_, 4, v___x_890_); +return v___x_895_; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg(lean_object* v___y_896_){ +_start: +{ +lean_object* v___x_898_; lean_object* v_traceState_899_; lean_object* v_traces_900_; lean_object* v___x_901_; lean_object* v_traceState_902_; lean_object* v_env_903_; lean_object* v_nextMacroScope_904_; lean_object* v_ngen_905_; lean_object* v_auxDeclNGen_906_; lean_object* v_cache_907_; lean_object* v_messages_908_; lean_object* v_infoState_909_; lean_object* v_snapshotTasks_910_; lean_object* v___x_912_; uint8_t v_isShared_913_; uint8_t v_isSharedCheck_929_; +v___x_898_ = lean_st_ref_get(v___y_896_); +v_traceState_899_ = lean_ctor_get(v___x_898_, 4); +lean_inc_ref(v_traceState_899_); +lean_dec(v___x_898_); +v_traces_900_ = lean_ctor_get(v_traceState_899_, 0); +lean_inc_ref(v_traces_900_); +lean_dec_ref(v_traceState_899_); +v___x_901_ = lean_st_ref_take(v___y_896_); +v_traceState_902_ = lean_ctor_get(v___x_901_, 4); +v_env_903_ = lean_ctor_get(v___x_901_, 0); +v_nextMacroScope_904_ = lean_ctor_get(v___x_901_, 1); +v_ngen_905_ = lean_ctor_get(v___x_901_, 2); +v_auxDeclNGen_906_ = lean_ctor_get(v___x_901_, 3); +v_cache_907_ = lean_ctor_get(v___x_901_, 5); +v_messages_908_ = lean_ctor_get(v___x_901_, 6); +v_infoState_909_ = lean_ctor_get(v___x_901_, 7); +v_snapshotTasks_910_ = lean_ctor_get(v___x_901_, 8); +v_isSharedCheck_929_ = !lean_is_exclusive(v___x_901_); +if (v_isSharedCheck_929_ == 0) +{ +v___x_912_ = v___x_901_; +v_isShared_913_ = v_isSharedCheck_929_; +goto v_resetjp_911_; } else { -lean_object* v___x_924_; lean_object* v_mctx_925_; lean_object* v___x_926_; lean_object* v_fst_927_; lean_object* v_snd_928_; lean_object* v___x_929_; lean_object* v_cache_930_; lean_object* v_zetaDeltaFVarIds_931_; lean_object* v_postponed_932_; lean_object* v_diag_933_; lean_object* v___x_935_; uint8_t v_isShared_936_; uint8_t v_isSharedCheck_942_; -v___x_924_ = lean_st_ref_get(v___y_920_); -v_mctx_925_ = lean_ctor_get(v___x_924_, 0); -lean_inc_ref(v_mctx_925_); -lean_dec(v___x_924_); -v___x_926_ = l_Lean_instantiateMVarsCore(v_mctx_925_, v_e_919_); -v_fst_927_ = lean_ctor_get(v___x_926_, 0); -lean_inc(v_fst_927_); -v_snd_928_ = lean_ctor_get(v___x_926_, 1); -lean_inc(v_snd_928_); -lean_dec_ref(v___x_926_); -v___x_929_ = lean_st_ref_take(v___y_920_); -v_cache_930_ = lean_ctor_get(v___x_929_, 1); -v_zetaDeltaFVarIds_931_ = lean_ctor_get(v___x_929_, 2); -v_postponed_932_ = lean_ctor_get(v___x_929_, 3); -v_diag_933_ = lean_ctor_get(v___x_929_, 4); -v_isSharedCheck_942_ = !lean_is_exclusive(v___x_929_); -if (v_isSharedCheck_942_ == 0) +lean_inc(v_snapshotTasks_910_); +lean_inc(v_infoState_909_); +lean_inc(v_messages_908_); +lean_inc(v_cache_907_); +lean_inc(v_traceState_902_); +lean_inc(v_auxDeclNGen_906_); +lean_inc(v_ngen_905_); +lean_inc(v_nextMacroScope_904_); +lean_inc(v_env_903_); +lean_dec(v___x_901_); +v___x_912_ = lean_box(0); +v_isShared_913_ = v_isSharedCheck_929_; +goto v_resetjp_911_; +} +v_resetjp_911_: { -lean_object* v_unused_943_; -v_unused_943_ = lean_ctor_get(v___x_929_, 0); -lean_dec(v_unused_943_); -v___x_935_ = v___x_929_; -v_isShared_936_ = v_isSharedCheck_942_; -goto v_resetjp_934_; +uint64_t v_tid_914_; lean_object* v___x_916_; uint8_t v_isShared_917_; uint8_t v_isSharedCheck_927_; +v_tid_914_ = lean_ctor_get_uint64(v_traceState_902_, sizeof(void*)*1); +v_isSharedCheck_927_ = !lean_is_exclusive(v_traceState_902_); +if (v_isSharedCheck_927_ == 0) +{ +lean_object* v_unused_928_; +v_unused_928_ = lean_ctor_get(v_traceState_902_, 0); +lean_dec(v_unused_928_); +v___x_916_ = v_traceState_902_; +v_isShared_917_ = v_isSharedCheck_927_; +goto v_resetjp_915_; } else { -lean_inc(v_diag_933_); -lean_inc(v_postponed_932_); -lean_inc(v_zetaDeltaFVarIds_931_); -lean_inc(v_cache_930_); -lean_dec(v___x_929_); -v___x_935_ = lean_box(0); -v_isShared_936_ = v_isSharedCheck_942_; -goto v_resetjp_934_; +lean_dec(v_traceState_902_); +v___x_916_ = lean_box(0); +v_isShared_917_ = v_isSharedCheck_927_; +goto v_resetjp_915_; } -v_resetjp_934_: +v_resetjp_915_: +{ +lean_object* v___x_918_; lean_object* v___x_920_; +v___x_918_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1, &l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1_once, _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___closed__1); +if (v_isShared_917_ == 0) +{ +lean_ctor_set(v___x_916_, 0, v___x_918_); +v___x_920_ = v___x_916_; +goto v_reusejp_919_; +} +else +{ +lean_object* v_reuseFailAlloc_926_; +v_reuseFailAlloc_926_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v_reuseFailAlloc_926_, 0, v___x_918_); +lean_ctor_set_uint64(v_reuseFailAlloc_926_, sizeof(void*)*1, v_tid_914_); +v___x_920_ = v_reuseFailAlloc_926_; +goto v_reusejp_919_; +} +v_reusejp_919_: +{ +lean_object* v___x_922_; +if (v_isShared_913_ == 0) +{ +lean_ctor_set(v___x_912_, 4, v___x_920_); +v___x_922_ = v___x_912_; +goto v_reusejp_921_; +} +else +{ +lean_object* v_reuseFailAlloc_925_; +v_reuseFailAlloc_925_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_925_, 0, v_env_903_); +lean_ctor_set(v_reuseFailAlloc_925_, 1, v_nextMacroScope_904_); +lean_ctor_set(v_reuseFailAlloc_925_, 2, v_ngen_905_); +lean_ctor_set(v_reuseFailAlloc_925_, 3, v_auxDeclNGen_906_); +lean_ctor_set(v_reuseFailAlloc_925_, 4, v___x_920_); +lean_ctor_set(v_reuseFailAlloc_925_, 5, v_cache_907_); +lean_ctor_set(v_reuseFailAlloc_925_, 6, v_messages_908_); +lean_ctor_set(v_reuseFailAlloc_925_, 7, v_infoState_909_); +lean_ctor_set(v_reuseFailAlloc_925_, 8, v_snapshotTasks_910_); +v___x_922_ = v_reuseFailAlloc_925_; +goto v_reusejp_921_; +} +v_reusejp_921_: +{ +lean_object* v___x_923_; lean_object* v___x_924_; +v___x_923_ = lean_st_ref_set(v___y_896_, v___x_922_); +v___x_924_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_924_, 0, v_traces_900_); +return v___x_924_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg___boxed(lean_object* v___y_930_, lean_object* v___y_931_){ +_start: +{ +lean_object* v_res_932_; +v_res_932_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg(v___y_930_); +lean_dec(v___y_930_); +return v_res_932_; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10(lean_object* v___y_933_, lean_object* v___y_934_, lean_object* v___y_935_, lean_object* v___y_936_){ +_start: { lean_object* v___x_938_; -if (v_isShared_936_ == 0) -{ -lean_ctor_set(v___x_935_, 0, v_snd_928_); -v___x_938_ = v___x_935_; -goto v_reusejp_937_; -} -else -{ -lean_object* v_reuseFailAlloc_941_; -v_reuseFailAlloc_941_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_941_, 0, v_snd_928_); -lean_ctor_set(v_reuseFailAlloc_941_, 1, v_cache_930_); -lean_ctor_set(v_reuseFailAlloc_941_, 2, v_zetaDeltaFVarIds_931_); -lean_ctor_set(v_reuseFailAlloc_941_, 3, v_postponed_932_); -lean_ctor_set(v_reuseFailAlloc_941_, 4, v_diag_933_); -v___x_938_ = v_reuseFailAlloc_941_; -goto v_reusejp_937_; -} -v_reusejp_937_: -{ -lean_object* v___x_939_; lean_object* v___x_940_; -v___x_939_ = lean_st_ref_set(v___y_920_, v___x_938_); -v___x_940_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_940_, 0, v_fst_927_); -return v___x_940_; +v___x_938_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg(v___y_936_); +return v___x_938_; } } -} -} -} -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg___boxed(lean_object* v_e_944_, lean_object* v___y_945_, lean_object* v___y_946_){ +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___boxed(lean_object* v___y_939_, lean_object* v___y_940_, lean_object* v___y_941_, lean_object* v___y_942_, lean_object* v___y_943_){ _start: { -lean_object* v_res_947_; -v_res_947_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_e_944_, v___y_945_); -lean_dec(v___y_945_); -return v_res_947_; -} -} -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5(lean_object* v_e_948_, lean_object* v___y_949_, lean_object* v___y_950_, lean_object* v___y_951_, lean_object* v___y_952_){ -_start: -{ -lean_object* v___x_954_; -v___x_954_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_e_948_, v___y_950_); -return v___x_954_; -} -} -LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___boxed(lean_object* v_e_955_, lean_object* v___y_956_, lean_object* v___y_957_, lean_object* v___y_958_, lean_object* v___y_959_, lean_object* v___y_960_){ -_start: -{ -lean_object* v_res_961_; -v_res_961_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5(v_e_955_, v___y_956_, v___y_957_, v___y_958_, v___y_959_); -lean_dec(v___y_959_); -lean_dec_ref(v___y_958_); -lean_dec(v___y_957_); -lean_dec_ref(v___y_956_); -return v_res_961_; -} -} -static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0(void){ -_start: -{ -lean_object* v___x_962_; lean_object* v___x_963_; lean_object* v___x_964_; -v___x_962_ = lean_unsigned_to_nat(32u); -v___x_963_ = lean_mk_empty_array_with_capacity(v___x_962_); -v___x_964_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_964_, 0, v___x_963_); -return v___x_964_; -} -} -static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1(void){ -_start: -{ -size_t v___x_965_; lean_object* v___x_966_; lean_object* v___x_967_; lean_object* v___x_968_; lean_object* v___x_969_; lean_object* v___x_970_; -v___x_965_ = ((size_t)5ULL); -v___x_966_ = lean_unsigned_to_nat(0u); -v___x_967_ = lean_unsigned_to_nat(32u); -v___x_968_ = lean_mk_empty_array_with_capacity(v___x_967_); -v___x_969_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0, &l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0_once, _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__0); -v___x_970_ = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(v___x_970_, 0, v___x_969_); -lean_ctor_set(v___x_970_, 1, v___x_968_); -lean_ctor_set(v___x_970_, 2, v___x_966_); -lean_ctor_set(v___x_970_, 3, v___x_966_); -lean_ctor_set_usize(v___x_970_, 4, v___x_965_); -return v___x_970_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg(lean_object* v___y_971_){ -_start: -{ -lean_object* v___x_973_; lean_object* v_traceState_974_; lean_object* v_traces_975_; lean_object* v___x_976_; lean_object* v_traceState_977_; lean_object* v_env_978_; lean_object* v_nextMacroScope_979_; lean_object* v_ngen_980_; lean_object* v_auxDeclNGen_981_; lean_object* v_cache_982_; lean_object* v_messages_983_; lean_object* v_infoState_984_; lean_object* v_snapshotTasks_985_; lean_object* v___x_987_; uint8_t v_isShared_988_; uint8_t v_isSharedCheck_1004_; -v___x_973_ = lean_st_ref_get(v___y_971_); -v_traceState_974_ = lean_ctor_get(v___x_973_, 4); -lean_inc_ref(v_traceState_974_); -lean_dec(v___x_973_); -v_traces_975_ = lean_ctor_get(v_traceState_974_, 0); -lean_inc_ref(v_traces_975_); -lean_dec_ref(v_traceState_974_); -v___x_976_ = lean_st_ref_take(v___y_971_); -v_traceState_977_ = lean_ctor_get(v___x_976_, 4); -v_env_978_ = lean_ctor_get(v___x_976_, 0); -v_nextMacroScope_979_ = lean_ctor_get(v___x_976_, 1); -v_ngen_980_ = lean_ctor_get(v___x_976_, 2); -v_auxDeclNGen_981_ = lean_ctor_get(v___x_976_, 3); -v_cache_982_ = lean_ctor_get(v___x_976_, 5); -v_messages_983_ = lean_ctor_get(v___x_976_, 6); -v_infoState_984_ = lean_ctor_get(v___x_976_, 7); -v_snapshotTasks_985_ = lean_ctor_get(v___x_976_, 8); -v_isSharedCheck_1004_ = !lean_is_exclusive(v___x_976_); -if (v_isSharedCheck_1004_ == 0) -{ -v___x_987_ = v___x_976_; -v_isShared_988_ = v_isSharedCheck_1004_; -goto v_resetjp_986_; -} -else -{ -lean_inc(v_snapshotTasks_985_); -lean_inc(v_infoState_984_); -lean_inc(v_messages_983_); -lean_inc(v_cache_982_); -lean_inc(v_traceState_977_); -lean_inc(v_auxDeclNGen_981_); -lean_inc(v_ngen_980_); -lean_inc(v_nextMacroScope_979_); -lean_inc(v_env_978_); -lean_dec(v___x_976_); -v___x_987_ = lean_box(0); -v_isShared_988_ = v_isSharedCheck_1004_; -goto v_resetjp_986_; -} -v_resetjp_986_: -{ -uint64_t v_tid_989_; lean_object* v___x_991_; uint8_t v_isShared_992_; uint8_t v_isSharedCheck_1002_; -v_tid_989_ = lean_ctor_get_uint64(v_traceState_977_, sizeof(void*)*1); -v_isSharedCheck_1002_ = !lean_is_exclusive(v_traceState_977_); -if (v_isSharedCheck_1002_ == 0) -{ -lean_object* v_unused_1003_; -v_unused_1003_ = lean_ctor_get(v_traceState_977_, 0); -lean_dec(v_unused_1003_); -v___x_991_ = v_traceState_977_; -v_isShared_992_ = v_isSharedCheck_1002_; -goto v_resetjp_990_; -} -else -{ -lean_dec(v_traceState_977_); -v___x_991_ = lean_box(0); -v_isShared_992_ = v_isSharedCheck_1002_; -goto v_resetjp_990_; -} -v_resetjp_990_: -{ -lean_object* v___x_993_; lean_object* v___x_995_; -v___x_993_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1, &l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1_once, _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___closed__1); -if (v_isShared_992_ == 0) -{ -lean_ctor_set(v___x_991_, 0, v___x_993_); -v___x_995_ = v___x_991_; -goto v_reusejp_994_; -} -else -{ -lean_object* v_reuseFailAlloc_1001_; -v_reuseFailAlloc_1001_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v_reuseFailAlloc_1001_, 0, v___x_993_); -lean_ctor_set_uint64(v_reuseFailAlloc_1001_, sizeof(void*)*1, v_tid_989_); -v___x_995_ = v_reuseFailAlloc_1001_; -goto v_reusejp_994_; -} -v_reusejp_994_: -{ -lean_object* v___x_997_; -if (v_isShared_988_ == 0) -{ -lean_ctor_set(v___x_987_, 4, v___x_995_); -v___x_997_ = v___x_987_; -goto v_reusejp_996_; -} -else -{ -lean_object* v_reuseFailAlloc_1000_; -v_reuseFailAlloc_1000_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_1000_, 0, v_env_978_); -lean_ctor_set(v_reuseFailAlloc_1000_, 1, v_nextMacroScope_979_); -lean_ctor_set(v_reuseFailAlloc_1000_, 2, v_ngen_980_); -lean_ctor_set(v_reuseFailAlloc_1000_, 3, v_auxDeclNGen_981_); -lean_ctor_set(v_reuseFailAlloc_1000_, 4, v___x_995_); -lean_ctor_set(v_reuseFailAlloc_1000_, 5, v_cache_982_); -lean_ctor_set(v_reuseFailAlloc_1000_, 6, v_messages_983_); -lean_ctor_set(v_reuseFailAlloc_1000_, 7, v_infoState_984_); -lean_ctor_set(v_reuseFailAlloc_1000_, 8, v_snapshotTasks_985_); -v___x_997_ = v_reuseFailAlloc_1000_; -goto v_reusejp_996_; -} -v_reusejp_996_: -{ -lean_object* v___x_998_; lean_object* v___x_999_; -v___x_998_ = lean_st_ref_set(v___y_971_, v___x_997_); -v___x_999_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_999_, 0, v_traces_975_); -return v___x_999_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg___boxed(lean_object* v___y_1005_, lean_object* v___y_1006_){ -_start: -{ -lean_object* v_res_1007_; -v_res_1007_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg(v___y_1005_); -lean_dec(v___y_1005_); -return v_res_1007_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11(lean_object* v___y_1008_, lean_object* v___y_1009_, lean_object* v___y_1010_, lean_object* v___y_1011_){ -_start: -{ -lean_object* v___x_1013_; -v___x_1013_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg(v___y_1011_); -return v___x_1013_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___boxed(lean_object* v___y_1014_, lean_object* v___y_1015_, lean_object* v___y_1016_, lean_object* v___y_1017_, lean_object* v___y_1018_){ -_start: -{ -lean_object* v_res_1019_; -v_res_1019_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11(v___y_1014_, v___y_1015_, v___y_1016_, v___y_1017_); -lean_dec(v___y_1017_); -lean_dec_ref(v___y_1016_); -lean_dec(v___y_1015_); -lean_dec_ref(v___y_1014_); -return v_res_1019_; +lean_object* v_res_944_; +v_res_944_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10(v___y_939_, v___y_940_, v___y_941_, v___y_942_); +lean_dec(v___y_942_); +lean_dec_ref(v___y_941_); +lean_dec(v___y_940_); +lean_dec_ref(v___y_939_); +return v_res_944_; } } static lean_object* _init_l_Lean_Meta_wrapInstance___lam__0___closed__1(void){ _start: { -lean_object* v___x_1021_; lean_object* v___x_1022_; -v___x_1021_ = ((lean_object*)(l_Lean_Meta_wrapInstance___lam__0___closed__0)); -v___x_1022_ = l_Lean_stringToMessageData(v___x_1021_); -return v___x_1022_; +lean_object* v___x_946_; lean_object* v___x_947_; +v___x_946_ = ((lean_object*)(l_Lean_Meta_wrapInstance___lam__0___closed__0)); +v___x_947_ = l_Lean_stringToMessageData(v___x_946_); +return v___x_947_; } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0(lean_object* v_expectedType_1023_, lean_object* v_x_1024_, lean_object* v___y_1025_, lean_object* v___y_1026_, lean_object* v___y_1027_, lean_object* v___y_1028_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0(lean_object* v_expectedType_948_, lean_object* v_x_949_, lean_object* v___y_950_, lean_object* v___y_951_, lean_object* v___y_952_, lean_object* v___y_953_){ _start: { -lean_object* v___x_1030_; lean_object* v___x_1031_; lean_object* v___x_1032_; lean_object* v___x_1033_; -v___x_1030_ = lean_obj_once(&l_Lean_Meta_wrapInstance___lam__0___closed__1, &l_Lean_Meta_wrapInstance___lam__0___closed__1_once, _init_l_Lean_Meta_wrapInstance___lam__0___closed__1); -v___x_1031_ = l_Lean_MessageData_ofExpr(v_expectedType_1023_); -v___x_1032_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1032_, 0, v___x_1030_); -lean_ctor_set(v___x_1032_, 1, v___x_1031_); -v___x_1033_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1033_, 0, v___x_1032_); -return v___x_1033_; +lean_object* v___x_955_; lean_object* v___x_956_; lean_object* v___x_957_; lean_object* v___x_958_; +v___x_955_ = lean_obj_once(&l_Lean_Meta_wrapInstance___lam__0___closed__1, &l_Lean_Meta_wrapInstance___lam__0___closed__1_once, _init_l_Lean_Meta_wrapInstance___lam__0___closed__1); +v___x_956_ = l_Lean_MessageData_ofExpr(v_expectedType_948_); +v___x_957_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_957_, 0, v___x_955_); +lean_ctor_set(v___x_957_, 1, v___x_956_); +v___x_958_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_958_, 0, v___x_957_); +return v___x_958_; } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0___boxed(lean_object* v_expectedType_1034_, lean_object* v_x_1035_, lean_object* v___y_1036_, lean_object* v___y_1037_, lean_object* v___y_1038_, lean_object* v___y_1039_, lean_object* v___y_1040_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__0___boxed(lean_object* v_expectedType_959_, lean_object* v_x_960_, lean_object* v___y_961_, lean_object* v___y_962_, lean_object* v___y_963_, lean_object* v___y_964_, lean_object* v___y_965_){ _start: { -lean_object* v_res_1041_; -v_res_1041_ = l_Lean_Meta_wrapInstance___lam__0(v_expectedType_1034_, v_x_1035_, v___y_1036_, v___y_1037_, v___y_1038_, v___y_1039_); -lean_dec(v___y_1039_); -lean_dec_ref(v___y_1038_); -lean_dec(v___y_1037_); -lean_dec_ref(v___y_1036_); -lean_dec_ref(v_x_1035_); -return v_res_1041_; +lean_object* v_res_966_; +v_res_966_ = l_Lean_Meta_wrapInstance___lam__0(v_expectedType_959_, v_x_960_, v___y_961_, v___y_962_, v___y_963_, v___y_964_); +lean_dec(v___y_964_); +lean_dec_ref(v___y_963_); +lean_dec(v___y_962_); +lean_dec_ref(v___y_961_); +lean_dec_ref(v_x_960_); +return v_res_966_; } } -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(lean_object* v_a_1042_, lean_object* v_a_1043_){ +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(lean_object* v_cls_967_, lean_object* v_msg_968_, lean_object* v___y_969_, lean_object* v___y_970_, lean_object* v___y_971_, lean_object* v___y_972_){ _start: { -if (lean_obj_tag(v_a_1042_) == 0) +lean_object* v_ref_974_; lean_object* v___x_975_; lean_object* v_a_976_; lean_object* v___x_978_; uint8_t v_isShared_979_; uint8_t v_isSharedCheck_1020_; +v_ref_974_ = lean_ctor_get(v___y_971_, 5); +v___x_975_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1_spec__1(v_msg_968_, v___y_969_, v___y_970_, v___y_971_, v___y_972_); +v_a_976_ = lean_ctor_get(v___x_975_, 0); +v_isSharedCheck_1020_ = !lean_is_exclusive(v___x_975_); +if (v_isSharedCheck_1020_ == 0) { -lean_object* v___x_1044_; -v___x_1044_ = l_List_reverse___redArg(v_a_1043_); -return v___x_1044_; +v___x_978_ = v___x_975_; +v_isShared_979_ = v_isSharedCheck_1020_; +goto v_resetjp_977_; } else { -lean_object* v_head_1045_; lean_object* v_tail_1046_; lean_object* v___x_1048_; uint8_t v_isShared_1049_; uint8_t v_isSharedCheck_1055_; -v_head_1045_ = lean_ctor_get(v_a_1042_, 0); -v_tail_1046_ = lean_ctor_get(v_a_1042_, 1); -v_isSharedCheck_1055_ = !lean_is_exclusive(v_a_1042_); -if (v_isSharedCheck_1055_ == 0) +lean_inc(v_a_976_); +lean_dec(v___x_975_); +v___x_978_ = lean_box(0); +v_isShared_979_ = v_isSharedCheck_1020_; +goto v_resetjp_977_; +} +v_resetjp_977_: { -v___x_1048_ = v_a_1042_; -v_isShared_1049_ = v_isSharedCheck_1055_; -goto v_resetjp_1047_; +lean_object* v___x_980_; lean_object* v_traceState_981_; lean_object* v_env_982_; lean_object* v_nextMacroScope_983_; lean_object* v_ngen_984_; lean_object* v_auxDeclNGen_985_; lean_object* v_cache_986_; lean_object* v_messages_987_; lean_object* v_infoState_988_; lean_object* v_snapshotTasks_989_; lean_object* v___x_991_; uint8_t v_isShared_992_; uint8_t v_isSharedCheck_1019_; +v___x_980_ = lean_st_ref_take(v___y_972_); +v_traceState_981_ = lean_ctor_get(v___x_980_, 4); +v_env_982_ = lean_ctor_get(v___x_980_, 0); +v_nextMacroScope_983_ = lean_ctor_get(v___x_980_, 1); +v_ngen_984_ = lean_ctor_get(v___x_980_, 2); +v_auxDeclNGen_985_ = lean_ctor_get(v___x_980_, 3); +v_cache_986_ = lean_ctor_get(v___x_980_, 5); +v_messages_987_ = lean_ctor_get(v___x_980_, 6); +v_infoState_988_ = lean_ctor_get(v___x_980_, 7); +v_snapshotTasks_989_ = lean_ctor_get(v___x_980_, 8); +v_isSharedCheck_1019_ = !lean_is_exclusive(v___x_980_); +if (v_isSharedCheck_1019_ == 0) +{ +v___x_991_ = v___x_980_; +v_isShared_992_ = v_isSharedCheck_1019_; +goto v_resetjp_990_; } else { -lean_inc(v_tail_1046_); -lean_inc(v_head_1045_); -lean_dec(v_a_1042_); -v___x_1048_ = lean_box(0); -v_isShared_1049_ = v_isSharedCheck_1055_; -goto v_resetjp_1047_; +lean_inc(v_snapshotTasks_989_); +lean_inc(v_infoState_988_); +lean_inc(v_messages_987_); +lean_inc(v_cache_986_); +lean_inc(v_traceState_981_); +lean_inc(v_auxDeclNGen_985_); +lean_inc(v_ngen_984_); +lean_inc(v_nextMacroScope_983_); +lean_inc(v_env_982_); +lean_dec(v___x_980_); +v___x_991_ = lean_box(0); +v_isShared_992_ = v_isSharedCheck_1019_; +goto v_resetjp_990_; } -v_resetjp_1047_: +v_resetjp_990_: { -lean_object* v___x_1050_; lean_object* v___x_1052_; -v___x_1050_ = l_Lean_MessageData_ofExpr(v_head_1045_); -if (v_isShared_1049_ == 0) +uint64_t v_tid_993_; lean_object* v_traces_994_; lean_object* v___x_996_; uint8_t v_isShared_997_; uint8_t v_isSharedCheck_1018_; +v_tid_993_ = lean_ctor_get_uint64(v_traceState_981_, sizeof(void*)*1); +v_traces_994_ = lean_ctor_get(v_traceState_981_, 0); +v_isSharedCheck_1018_ = !lean_is_exclusive(v_traceState_981_); +if (v_isSharedCheck_1018_ == 0) { -lean_ctor_set(v___x_1048_, 1, v_a_1043_); -lean_ctor_set(v___x_1048_, 0, v___x_1050_); -v___x_1052_ = v___x_1048_; -goto v_reusejp_1051_; +v___x_996_ = v_traceState_981_; +v_isShared_997_ = v_isSharedCheck_1018_; +goto v_resetjp_995_; } else { -lean_object* v_reuseFailAlloc_1054_; -v_reuseFailAlloc_1054_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1054_, 0, v___x_1050_); -lean_ctor_set(v_reuseFailAlloc_1054_, 1, v_a_1043_); -v___x_1052_ = v_reuseFailAlloc_1054_; -goto v_reusejp_1051_; +lean_inc(v_traces_994_); +lean_dec(v_traceState_981_); +v___x_996_ = lean_box(0); +v_isShared_997_ = v_isSharedCheck_1018_; +goto v_resetjp_995_; } -v_reusejp_1051_: +v_resetjp_995_: { -v_a_1042_ = v_tail_1046_; -v_a_1043_ = v___x_1052_; -goto _start; +lean_object* v___x_998_; double v___x_999_; uint8_t v___x_1000_; lean_object* v___x_1001_; lean_object* v___x_1002_; lean_object* v___x_1003_; lean_object* v___x_1004_; lean_object* v___x_1005_; lean_object* v___x_1006_; lean_object* v___x_1008_; +v___x_998_ = lean_box(0); +v___x_999_ = lean_float_once(&l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0, &l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0_once, _init_l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0); +v___x_1000_ = 0; +v___x_1001_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__1)); +v___x_1002_ = lean_alloc_ctor(0, 3, 17); +lean_ctor_set(v___x_1002_, 0, v_cls_967_); +lean_ctor_set(v___x_1002_, 1, v___x_998_); +lean_ctor_set(v___x_1002_, 2, v___x_1001_); +lean_ctor_set_float(v___x_1002_, sizeof(void*)*3, v___x_999_); +lean_ctor_set_float(v___x_1002_, sizeof(void*)*3 + 8, v___x_999_); +lean_ctor_set_uint8(v___x_1002_, sizeof(void*)*3 + 16, v___x_1000_); +v___x_1003_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__2)); +v___x_1004_ = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(v___x_1004_, 0, v___x_1002_); +lean_ctor_set(v___x_1004_, 1, v_a_976_); +lean_ctor_set(v___x_1004_, 2, v___x_1003_); +lean_inc(v_ref_974_); +v___x_1005_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1005_, 0, v_ref_974_); +lean_ctor_set(v___x_1005_, 1, v___x_1004_); +v___x_1006_ = l_Lean_PersistentArray_push___redArg(v_traces_994_, v___x_1005_); +if (v_isShared_997_ == 0) +{ +lean_ctor_set(v___x_996_, 0, v___x_1006_); +v___x_1008_ = v___x_996_; +goto v_reusejp_1007_; +} +else +{ +lean_object* v_reuseFailAlloc_1017_; +v_reuseFailAlloc_1017_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v_reuseFailAlloc_1017_, 0, v___x_1006_); +lean_ctor_set_uint64(v_reuseFailAlloc_1017_, sizeof(void*)*1, v_tid_993_); +v___x_1008_ = v_reuseFailAlloc_1017_; +goto v_reusejp_1007_; +} +v_reusejp_1007_: +{ +lean_object* v___x_1010_; +if (v_isShared_992_ == 0) +{ +lean_ctor_set(v___x_991_, 4, v___x_1008_); +v___x_1010_ = v___x_991_; +goto v_reusejp_1009_; +} +else +{ +lean_object* v_reuseFailAlloc_1016_; +v_reuseFailAlloc_1016_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_1016_, 0, v_env_982_); +lean_ctor_set(v_reuseFailAlloc_1016_, 1, v_nextMacroScope_983_); +lean_ctor_set(v_reuseFailAlloc_1016_, 2, v_ngen_984_); +lean_ctor_set(v_reuseFailAlloc_1016_, 3, v_auxDeclNGen_985_); +lean_ctor_set(v_reuseFailAlloc_1016_, 4, v___x_1008_); +lean_ctor_set(v_reuseFailAlloc_1016_, 5, v_cache_986_); +lean_ctor_set(v_reuseFailAlloc_1016_, 6, v_messages_987_); +lean_ctor_set(v_reuseFailAlloc_1016_, 7, v_infoState_988_); +lean_ctor_set(v_reuseFailAlloc_1016_, 8, v_snapshotTasks_989_); +v___x_1010_ = v_reuseFailAlloc_1016_; +goto v_reusejp_1009_; +} +v_reusejp_1009_: +{ +lean_object* v___x_1011_; lean_object* v___x_1012_; lean_object* v___x_1014_; +v___x_1011_ = lean_st_ref_set(v___y_972_, v___x_1010_); +v___x_1012_ = lean_box(0); +if (v_isShared_979_ == 0) +{ +lean_ctor_set(v___x_978_, 0, v___x_1012_); +v___x_1014_ = v___x_978_; +goto v_reusejp_1013_; +} +else +{ +lean_object* v_reuseFailAlloc_1015_; +v_reuseFailAlloc_1015_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1015_, 0, v___x_1012_); +v___x_1014_ = v_reuseFailAlloc_1015_; +goto v_reusejp_1013_; +} +v_reusejp_1013_: +{ +return v___x_1014_; } } } } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0(void){ +} +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2___boxed(lean_object* v_cls_1021_, lean_object* v_msg_1022_, lean_object* v___y_1023_, lean_object* v___y_1024_, lean_object* v___y_1025_, lean_object* v___y_1026_, lean_object* v___y_1027_){ _start: { -lean_object* v___x_1056_; -v___x_1056_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); -return v___x_1056_; +lean_object* v_res_1028_; +v_res_1028_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_1021_, v_msg_1022_, v___y_1023_, v___y_1024_, v___y_1025_, v___y_1026_); +lean_dec(v___y_1026_); +lean_dec_ref(v___y_1025_); +lean_dec(v___y_1024_); +lean_dec_ref(v___y_1023_); +return v_res_1028_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1(void){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg(lean_object* v_ref_1029_, lean_object* v_msg_1030_, lean_object* v___y_1031_, lean_object* v___y_1032_, lean_object* v___y_1033_, lean_object* v___y_1034_){ _start: { -lean_object* v___x_1057_; lean_object* v___x_1058_; -v___x_1057_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__0); -v___x_1058_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1058_, 0, v___x_1057_); -return v___x_1058_; +lean_object* v_fileName_1036_; lean_object* v_fileMap_1037_; lean_object* v_options_1038_; lean_object* v_currRecDepth_1039_; lean_object* v_maxRecDepth_1040_; lean_object* v_ref_1041_; lean_object* v_currNamespace_1042_; lean_object* v_openDecls_1043_; lean_object* v_initHeartbeats_1044_; lean_object* v_maxHeartbeats_1045_; lean_object* v_quotContext_1046_; lean_object* v_currMacroScope_1047_; uint8_t v_diag_1048_; lean_object* v_cancelTk_x3f_1049_; uint8_t v_suppressElabErrors_1050_; lean_object* v_inheritedTraceOptions_1051_; lean_object* v_ref_1052_; lean_object* v___x_1053_; lean_object* v___x_1054_; +v_fileName_1036_ = lean_ctor_get(v___y_1033_, 0); +v_fileMap_1037_ = lean_ctor_get(v___y_1033_, 1); +v_options_1038_ = lean_ctor_get(v___y_1033_, 2); +v_currRecDepth_1039_ = lean_ctor_get(v___y_1033_, 3); +v_maxRecDepth_1040_ = lean_ctor_get(v___y_1033_, 4); +v_ref_1041_ = lean_ctor_get(v___y_1033_, 5); +v_currNamespace_1042_ = lean_ctor_get(v___y_1033_, 6); +v_openDecls_1043_ = lean_ctor_get(v___y_1033_, 7); +v_initHeartbeats_1044_ = lean_ctor_get(v___y_1033_, 8); +v_maxHeartbeats_1045_ = lean_ctor_get(v___y_1033_, 9); +v_quotContext_1046_ = lean_ctor_get(v___y_1033_, 10); +v_currMacroScope_1047_ = lean_ctor_get(v___y_1033_, 11); +v_diag_1048_ = lean_ctor_get_uint8(v___y_1033_, sizeof(void*)*14); +v_cancelTk_x3f_1049_ = lean_ctor_get(v___y_1033_, 12); +v_suppressElabErrors_1050_ = lean_ctor_get_uint8(v___y_1033_, sizeof(void*)*14 + 1); +v_inheritedTraceOptions_1051_ = lean_ctor_get(v___y_1033_, 13); +v_ref_1052_ = l_Lean_replaceRef(v_ref_1029_, v_ref_1041_); +lean_inc_ref(v_inheritedTraceOptions_1051_); +lean_inc(v_cancelTk_x3f_1049_); +lean_inc(v_currMacroScope_1047_); +lean_inc(v_quotContext_1046_); +lean_inc(v_maxHeartbeats_1045_); +lean_inc(v_initHeartbeats_1044_); +lean_inc(v_openDecls_1043_); +lean_inc(v_currNamespace_1042_); +lean_inc(v_maxRecDepth_1040_); +lean_inc(v_currRecDepth_1039_); +lean_inc_ref(v_options_1038_); +lean_inc_ref(v_fileMap_1037_); +lean_inc_ref(v_fileName_1036_); +v___x_1053_ = lean_alloc_ctor(0, 14, 2); +lean_ctor_set(v___x_1053_, 0, v_fileName_1036_); +lean_ctor_set(v___x_1053_, 1, v_fileMap_1037_); +lean_ctor_set(v___x_1053_, 2, v_options_1038_); +lean_ctor_set(v___x_1053_, 3, v_currRecDepth_1039_); +lean_ctor_set(v___x_1053_, 4, v_maxRecDepth_1040_); +lean_ctor_set(v___x_1053_, 5, v_ref_1052_); +lean_ctor_set(v___x_1053_, 6, v_currNamespace_1042_); +lean_ctor_set(v___x_1053_, 7, v_openDecls_1043_); +lean_ctor_set(v___x_1053_, 8, v_initHeartbeats_1044_); +lean_ctor_set(v___x_1053_, 9, v_maxHeartbeats_1045_); +lean_ctor_set(v___x_1053_, 10, v_quotContext_1046_); +lean_ctor_set(v___x_1053_, 11, v_currMacroScope_1047_); +lean_ctor_set(v___x_1053_, 12, v_cancelTk_x3f_1049_); +lean_ctor_set(v___x_1053_, 13, v_inheritedTraceOptions_1051_); +lean_ctor_set_uint8(v___x_1053_, sizeof(void*)*14, v_diag_1048_); +lean_ctor_set_uint8(v___x_1053_, sizeof(void*)*14 + 1, v_suppressElabErrors_1050_); +v___x_1054_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v_msg_1030_, v___y_1031_, v___y_1032_, v___x_1053_, v___y_1034_); +lean_dec_ref(v___x_1053_); +return v___x_1054_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2(void){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg___boxed(lean_object* v_ref_1055_, lean_object* v_msg_1056_, lean_object* v___y_1057_, lean_object* v___y_1058_, lean_object* v___y_1059_, lean_object* v___y_1060_, lean_object* v___y_1061_){ _start: { -lean_object* v___x_1059_; lean_object* v___x_1060_; lean_object* v___x_1061_; -v___x_1059_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1); -v___x_1060_ = lean_unsigned_to_nat(0u); -v___x_1061_ = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(v___x_1061_, 0, v___x_1060_); -lean_ctor_set(v___x_1061_, 1, v___x_1060_); -lean_ctor_set(v___x_1061_, 2, v___x_1060_); -lean_ctor_set(v___x_1061_, 3, v___x_1060_); -lean_ctor_set(v___x_1061_, 4, v___x_1059_); -lean_ctor_set(v___x_1061_, 5, v___x_1059_); -lean_ctor_set(v___x_1061_, 6, v___x_1059_); -lean_ctor_set(v___x_1061_, 7, v___x_1059_); -lean_ctor_set(v___x_1061_, 8, v___x_1059_); -lean_ctor_set(v___x_1061_, 9, v___x_1059_); -return v___x_1061_; +lean_object* v_res_1062_; +v_res_1062_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg(v_ref_1055_, v_msg_1056_, v___y_1057_, v___y_1058_, v___y_1059_, v___y_1060_); +lean_dec(v___y_1060_); +lean_dec_ref(v___y_1059_); +lean_dec(v___y_1058_); +lean_dec_ref(v___y_1057_); +lean_dec(v_ref_1055_); +return v_res_1062_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0(void){ _start: { -lean_object* v___x_1062_; lean_object* v___x_1063_; lean_object* v___x_1064_; -v___x_1062_ = lean_unsigned_to_nat(32u); -v___x_1063_ = lean_mk_empty_array_with_capacity(v___x_1062_); -v___x_1064_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1064_, 0, v___x_1063_); -return v___x_1064_; +lean_object* v___x_1063_; +v___x_1063_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return v___x_1063_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1(void){ _start: { -size_t v___x_1065_; lean_object* v___x_1066_; lean_object* v___x_1067_; lean_object* v___x_1068_; lean_object* v___x_1069_; lean_object* v___x_1070_; -v___x_1065_ = ((size_t)5ULL); -v___x_1066_ = lean_unsigned_to_nat(0u); -v___x_1067_ = lean_unsigned_to_nat(32u); -v___x_1068_ = lean_mk_empty_array_with_capacity(v___x_1067_); -v___x_1069_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__3); -v___x_1070_ = lean_alloc_ctor(0, 4, sizeof(size_t)*1); -lean_ctor_set(v___x_1070_, 0, v___x_1069_); -lean_ctor_set(v___x_1070_, 1, v___x_1068_); -lean_ctor_set(v___x_1070_, 2, v___x_1066_); -lean_ctor_set(v___x_1070_, 3, v___x_1066_); -lean_ctor_set_usize(v___x_1070_, 4, v___x_1065_); -return v___x_1070_; +lean_object* v___x_1064_; lean_object* v___x_1065_; +v___x_1064_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__0); +v___x_1065_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1065_, 0, v___x_1064_); +return v___x_1065_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2(void){ _start: { -lean_object* v___x_1071_; lean_object* v___x_1072_; lean_object* v___x_1073_; lean_object* v___x_1074_; -v___x_1071_ = lean_box(1); -v___x_1072_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__4); -v___x_1073_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__1); -v___x_1074_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_1074_, 0, v___x_1073_); -lean_ctor_set(v___x_1074_, 1, v___x_1072_); -lean_ctor_set(v___x_1074_, 2, v___x_1071_); -return v___x_1074_; +lean_object* v___x_1066_; lean_object* v___x_1067_; lean_object* v___x_1068_; +v___x_1066_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1); +v___x_1067_ = lean_unsigned_to_nat(0u); +v___x_1068_ = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(v___x_1068_, 0, v___x_1067_); +lean_ctor_set(v___x_1068_, 1, v___x_1067_); +lean_ctor_set(v___x_1068_, 2, v___x_1067_); +lean_ctor_set(v___x_1068_, 3, v___x_1067_); +lean_ctor_set(v___x_1068_, 4, v___x_1066_); +lean_ctor_set(v___x_1068_, 5, v___x_1066_); +lean_ctor_set(v___x_1068_, 6, v___x_1066_); +lean_ctor_set(v___x_1068_, 7, v___x_1066_); +lean_ctor_set(v___x_1068_, 8, v___x_1066_); +lean_ctor_set(v___x_1068_, 9, v___x_1066_); +return v___x_1068_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3(void){ _start: { -lean_object* v___x_1076_; lean_object* v___x_1077_; -v___x_1076_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__6)); -v___x_1077_ = l_Lean_stringToMessageData(v___x_1076_); +lean_object* v___x_1069_; lean_object* v___x_1070_; lean_object* v___x_1071_; +v___x_1069_ = lean_unsigned_to_nat(32u); +v___x_1070_ = lean_mk_empty_array_with_capacity(v___x_1069_); +v___x_1071_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1071_, 0, v___x_1070_); +return v___x_1071_; +} +} +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4(void){ +_start: +{ +size_t v___x_1072_; lean_object* v___x_1073_; lean_object* v___x_1074_; lean_object* v___x_1075_; lean_object* v___x_1076_; lean_object* v___x_1077_; +v___x_1072_ = ((size_t)5ULL); +v___x_1073_ = lean_unsigned_to_nat(0u); +v___x_1074_ = lean_unsigned_to_nat(32u); +v___x_1075_ = lean_mk_empty_array_with_capacity(v___x_1074_); +v___x_1076_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__3); +v___x_1077_ = lean_alloc_ctor(0, 4, sizeof(size_t)*1); +lean_ctor_set(v___x_1077_, 0, v___x_1076_); +lean_ctor_set(v___x_1077_, 1, v___x_1075_); +lean_ctor_set(v___x_1077_, 2, v___x_1073_); +lean_ctor_set(v___x_1077_, 3, v___x_1073_); +lean_ctor_set_usize(v___x_1077_, 4, v___x_1072_); return v___x_1077_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5(void){ _start: { -lean_object* v___x_1079_; lean_object* v___x_1080_; -v___x_1079_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__8)); -v___x_1080_ = l_Lean_stringToMessageData(v___x_1079_); -return v___x_1080_; +lean_object* v___x_1078_; lean_object* v___x_1079_; lean_object* v___x_1080_; lean_object* v___x_1081_; +v___x_1078_ = lean_box(1); +v___x_1079_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__4); +v___x_1080_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__1); +v___x_1081_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_1081_, 0, v___x_1080_); +lean_ctor_set(v___x_1081_, 1, v___x_1079_); +lean_ctor_set(v___x_1081_, 2, v___x_1078_); +return v___x_1081_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7(void){ _start: { -lean_object* v___x_1082_; lean_object* v___x_1083_; -v___x_1082_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__10)); -v___x_1083_ = l_Lean_stringToMessageData(v___x_1082_); -return v___x_1083_; +lean_object* v___x_1083_; lean_object* v___x_1084_; +v___x_1083_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__6)); +v___x_1084_ = l_Lean_stringToMessageData(v___x_1083_); +return v___x_1084_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9(void){ _start: { -lean_object* v___x_1085_; lean_object* v___x_1086_; -v___x_1085_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__12)); -v___x_1086_ = l_Lean_stringToMessageData(v___x_1085_); -return v___x_1086_; +lean_object* v___x_1086_; lean_object* v___x_1087_; +v___x_1086_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__8)); +v___x_1087_ = l_Lean_stringToMessageData(v___x_1086_); +return v___x_1087_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11(void){ _start: { -lean_object* v___x_1088_; lean_object* v___x_1089_; -v___x_1088_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__14)); -v___x_1089_ = l_Lean_stringToMessageData(v___x_1088_); -return v___x_1089_; +lean_object* v___x_1089_; lean_object* v___x_1090_; +v___x_1089_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__10)); +v___x_1090_ = l_Lean_stringToMessageData(v___x_1089_); +return v___x_1090_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13(void){ _start: { -lean_object* v___x_1091_; lean_object* v___x_1092_; -v___x_1091_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__16)); -v___x_1092_ = l_Lean_stringToMessageData(v___x_1091_); -return v___x_1092_; +lean_object* v___x_1092_; lean_object* v___x_1093_; +v___x_1092_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__12)); +v___x_1093_ = l_Lean_stringToMessageData(v___x_1092_); +return v___x_1093_; } } -static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19(void){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15(void){ _start: { -lean_object* v___x_1094_; lean_object* v___x_1095_; -v___x_1094_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__18)); -v___x_1095_ = l_Lean_stringToMessageData(v___x_1094_); -return v___x_1095_; +lean_object* v___x_1095_; lean_object* v___x_1096_; +v___x_1095_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__14)); +v___x_1096_ = l_Lean_stringToMessageData(v___x_1095_); +return v___x_1096_; } } -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg(lean_object* v_msg_1096_, lean_object* v_declHint_1097_, lean_object* v___y_1098_){ +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17(void){ _start: { -lean_object* v___x_1100_; lean_object* v_env_1101_; uint8_t v___x_1102_; -v___x_1100_ = lean_st_ref_get(v___y_1098_); -v_env_1101_ = lean_ctor_get(v___x_1100_, 0); -lean_inc_ref(v_env_1101_); -lean_dec(v___x_1100_); -v___x_1102_ = l_Lean_Name_isAnonymous(v_declHint_1097_); -if (v___x_1102_ == 0) +lean_object* v___x_1098_; lean_object* v___x_1099_; +v___x_1098_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__16)); +v___x_1099_ = l_Lean_stringToMessageData(v___x_1098_); +return v___x_1099_; +} +} +static lean_object* _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19(void){ +_start: { -uint8_t v_isExporting_1103_; -v_isExporting_1103_ = lean_ctor_get_uint8(v_env_1101_, sizeof(void*)*8); -if (v_isExporting_1103_ == 0) +lean_object* v___x_1101_; lean_object* v___x_1102_; +v___x_1101_ = ((lean_object*)(l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__18)); +v___x_1102_ = l_Lean_stringToMessageData(v___x_1101_); +return v___x_1102_; +} +} +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg(lean_object* v_msg_1103_, lean_object* v_declHint_1104_, lean_object* v___y_1105_){ +_start: { -lean_object* v___x_1104_; -lean_dec_ref(v_env_1101_); -lean_dec(v_declHint_1097_); -v___x_1104_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1104_, 0, v_msg_1096_); -return v___x_1104_; +lean_object* v___x_1107_; lean_object* v_env_1108_; uint8_t v___x_1109_; +v___x_1107_ = lean_st_ref_get(v___y_1105_); +v_env_1108_ = lean_ctor_get(v___x_1107_, 0); +lean_inc_ref(v_env_1108_); +lean_dec(v___x_1107_); +v___x_1109_ = l_Lean_Name_isAnonymous(v_declHint_1104_); +if (v___x_1109_ == 0) +{ +uint8_t v_isExporting_1110_; +v_isExporting_1110_ = lean_ctor_get_uint8(v_env_1108_, sizeof(void*)*8); +if (v_isExporting_1110_ == 0) +{ +lean_object* v___x_1111_; +lean_dec_ref(v_env_1108_); +lean_dec(v_declHint_1104_); +v___x_1111_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1111_, 0, v_msg_1103_); +return v___x_1111_; } else { -lean_object* v___x_1105_; uint8_t v___x_1106_; -lean_inc_ref(v_env_1101_); -v___x_1105_ = l_Lean_Environment_setExporting(v_env_1101_, v___x_1102_); -lean_inc(v_declHint_1097_); -lean_inc_ref(v___x_1105_); -v___x_1106_ = l_Lean_Environment_contains(v___x_1105_, v_declHint_1097_, v_isExporting_1103_); -if (v___x_1106_ == 0) +lean_object* v___x_1112_; uint8_t v___x_1113_; +lean_inc_ref(v_env_1108_); +v___x_1112_ = l_Lean_Environment_setExporting(v_env_1108_, v___x_1109_); +lean_inc(v_declHint_1104_); +lean_inc_ref(v___x_1112_); +v___x_1113_ = l_Lean_Environment_contains(v___x_1112_, v_declHint_1104_, v_isExporting_1110_); +if (v___x_1113_ == 0) { -lean_object* v___x_1107_; -lean_dec_ref(v___x_1105_); -lean_dec_ref(v_env_1101_); -lean_dec(v_declHint_1097_); -v___x_1107_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1107_, 0, v_msg_1096_); -return v___x_1107_; +lean_object* v___x_1114_; +lean_dec_ref(v___x_1112_); +lean_dec_ref(v_env_1108_); +lean_dec(v_declHint_1104_); +v___x_1114_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1114_, 0, v_msg_1103_); +return v___x_1114_; } else { -lean_object* v___x_1108_; lean_object* v___x_1109_; lean_object* v___x_1110_; lean_object* v___x_1111_; lean_object* v___x_1112_; lean_object* v_c_1113_; lean_object* v___x_1114_; -v___x_1108_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__2); -v___x_1109_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__5); -v___x_1110_ = l_Lean_Options_empty; -v___x_1111_ = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(v___x_1111_, 0, v___x_1105_); -lean_ctor_set(v___x_1111_, 1, v___x_1108_); -lean_ctor_set(v___x_1111_, 2, v___x_1109_); -lean_ctor_set(v___x_1111_, 3, v___x_1110_); -lean_inc(v_declHint_1097_); -v___x_1112_ = l_Lean_MessageData_ofConstName(v_declHint_1097_, v___x_1102_); -v_c_1113_ = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(v_c_1113_, 0, v___x_1111_); -lean_ctor_set(v_c_1113_, 1, v___x_1112_); -v___x_1114_ = l_Lean_Environment_getModuleIdxFor_x3f(v_env_1101_, v_declHint_1097_); -if (lean_obj_tag(v___x_1114_) == 0) +lean_object* v___x_1115_; lean_object* v___x_1116_; lean_object* v___x_1117_; lean_object* v___x_1118_; lean_object* v___x_1119_; lean_object* v_c_1120_; lean_object* v___x_1121_; +v___x_1115_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__2); +v___x_1116_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__5); +v___x_1117_ = l_Lean_Options_empty; +v___x_1118_ = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(v___x_1118_, 0, v___x_1112_); +lean_ctor_set(v___x_1118_, 1, v___x_1115_); +lean_ctor_set(v___x_1118_, 2, v___x_1116_); +lean_ctor_set(v___x_1118_, 3, v___x_1117_); +lean_inc(v_declHint_1104_); +v___x_1119_ = l_Lean_MessageData_ofConstName(v_declHint_1104_, v___x_1109_); +v_c_1120_ = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(v_c_1120_, 0, v___x_1118_); +lean_ctor_set(v_c_1120_, 1, v___x_1119_); +v___x_1121_ = l_Lean_Environment_getModuleIdxFor_x3f(v_env_1108_, v_declHint_1104_); +if (lean_obj_tag(v___x_1121_) == 0) { -lean_object* v___x_1115_; lean_object* v___x_1116_; lean_object* v___x_1117_; lean_object* v___x_1118_; lean_object* v___x_1119_; lean_object* v___x_1120_; lean_object* v___x_1121_; -lean_dec_ref(v_env_1101_); -lean_dec(v_declHint_1097_); -v___x_1115_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7); -v___x_1116_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1116_, 0, v___x_1115_); -lean_ctor_set(v___x_1116_, 1, v_c_1113_); -v___x_1117_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__9); -v___x_1118_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1118_, 0, v___x_1116_); -lean_ctor_set(v___x_1118_, 1, v___x_1117_); -v___x_1119_ = l_Lean_MessageData_note(v___x_1118_); -v___x_1120_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1120_, 0, v_msg_1096_); -lean_ctor_set(v___x_1120_, 1, v___x_1119_); -v___x_1121_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1121_, 0, v___x_1120_); -return v___x_1121_; +lean_object* v___x_1122_; lean_object* v___x_1123_; lean_object* v___x_1124_; lean_object* v___x_1125_; lean_object* v___x_1126_; lean_object* v___x_1127_; lean_object* v___x_1128_; +lean_dec_ref(v_env_1108_); +lean_dec(v_declHint_1104_); +v___x_1122_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7); +v___x_1123_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1123_, 0, v___x_1122_); +lean_ctor_set(v___x_1123_, 1, v_c_1120_); +v___x_1124_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__9); +v___x_1125_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1125_, 0, v___x_1123_); +lean_ctor_set(v___x_1125_, 1, v___x_1124_); +v___x_1126_ = l_Lean_MessageData_note(v___x_1125_); +v___x_1127_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1127_, 0, v_msg_1103_); +lean_ctor_set(v___x_1127_, 1, v___x_1126_); +v___x_1128_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1128_, 0, v___x_1127_); +return v___x_1128_; } else { -lean_object* v_val_1122_; lean_object* v___x_1124_; uint8_t v_isShared_1125_; uint8_t v_isSharedCheck_1157_; -v_val_1122_ = lean_ctor_get(v___x_1114_, 0); -v_isSharedCheck_1157_ = !lean_is_exclusive(v___x_1114_); -if (v_isSharedCheck_1157_ == 0) +lean_object* v_val_1129_; lean_object* v___x_1131_; uint8_t v_isShared_1132_; uint8_t v_isSharedCheck_1164_; +v_val_1129_ = lean_ctor_get(v___x_1121_, 0); +v_isSharedCheck_1164_ = !lean_is_exclusive(v___x_1121_); +if (v_isSharedCheck_1164_ == 0) { -v___x_1124_ = v___x_1114_; -v_isShared_1125_ = v_isSharedCheck_1157_; -goto v_resetjp_1123_; +v___x_1131_ = v___x_1121_; +v_isShared_1132_ = v_isSharedCheck_1164_; +goto v_resetjp_1130_; } else { -lean_inc(v_val_1122_); -lean_dec(v___x_1114_); -v___x_1124_ = lean_box(0); -v_isShared_1125_ = v_isSharedCheck_1157_; -goto v_resetjp_1123_; +lean_inc(v_val_1129_); +lean_dec(v___x_1121_); +v___x_1131_ = lean_box(0); +v_isShared_1132_ = v_isSharedCheck_1164_; +goto v_resetjp_1130_; } -v_resetjp_1123_: +v_resetjp_1130_: { -lean_object* v___x_1126_; lean_object* v___x_1127_; lean_object* v___x_1128_; lean_object* v_mod_1129_; uint8_t v___x_1130_; -v___x_1126_ = lean_box(0); -v___x_1127_ = l_Lean_Environment_header(v_env_1101_); -lean_dec_ref(v_env_1101_); -v___x_1128_ = l_Lean_EnvironmentHeader_moduleNames(v___x_1127_); -v_mod_1129_ = lean_array_get(v___x_1126_, v___x_1128_, v_val_1122_); -lean_dec(v_val_1122_); -lean_dec_ref(v___x_1128_); -v___x_1130_ = l_Lean_isPrivateName(v_declHint_1097_); -lean_dec(v_declHint_1097_); -if (v___x_1130_ == 0) +lean_object* v___x_1133_; lean_object* v___x_1134_; lean_object* v___x_1135_; lean_object* v_mod_1136_; uint8_t v___x_1137_; +v___x_1133_ = lean_box(0); +v___x_1134_ = l_Lean_Environment_header(v_env_1108_); +lean_dec_ref(v_env_1108_); +v___x_1135_ = l_Lean_EnvironmentHeader_moduleNames(v___x_1134_); +v_mod_1136_ = lean_array_get(v___x_1133_, v___x_1135_, v_val_1129_); +lean_dec(v_val_1129_); +lean_dec_ref(v___x_1135_); +v___x_1137_ = l_Lean_isPrivateName(v_declHint_1104_); +lean_dec(v_declHint_1104_); +if (v___x_1137_ == 0) { -lean_object* v___x_1131_; lean_object* v___x_1132_; lean_object* v___x_1133_; lean_object* v___x_1134_; lean_object* v___x_1135_; lean_object* v___x_1136_; lean_object* v___x_1137_; lean_object* v___x_1138_; lean_object* v___x_1139_; lean_object* v___x_1140_; lean_object* v___x_1142_; -v___x_1131_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__11); -v___x_1132_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1132_, 0, v___x_1131_); -lean_ctor_set(v___x_1132_, 1, v_c_1113_); -v___x_1133_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__13); -v___x_1134_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1134_, 0, v___x_1132_); -lean_ctor_set(v___x_1134_, 1, v___x_1133_); -v___x_1135_ = l_Lean_MessageData_ofName(v_mod_1129_); -v___x_1136_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1136_, 0, v___x_1134_); -lean_ctor_set(v___x_1136_, 1, v___x_1135_); -v___x_1137_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__15); -v___x_1138_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1138_, 0, v___x_1136_); -lean_ctor_set(v___x_1138_, 1, v___x_1137_); -v___x_1139_ = l_Lean_MessageData_note(v___x_1138_); -v___x_1140_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1140_, 0, v_msg_1096_); -lean_ctor_set(v___x_1140_, 1, v___x_1139_); -if (v_isShared_1125_ == 0) -{ -lean_ctor_set_tag(v___x_1124_, 0); -lean_ctor_set(v___x_1124_, 0, v___x_1140_); -v___x_1142_ = v___x_1124_; -goto v_reusejp_1141_; -} -else -{ -lean_object* v_reuseFailAlloc_1143_; -v_reuseFailAlloc_1143_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1143_, 0, v___x_1140_); -v___x_1142_ = v_reuseFailAlloc_1143_; -goto v_reusejp_1141_; -} -v_reusejp_1141_: -{ -return v___x_1142_; -} -} -else -{ -lean_object* v___x_1144_; lean_object* v___x_1145_; lean_object* v___x_1146_; lean_object* v___x_1147_; lean_object* v___x_1148_; lean_object* v___x_1149_; lean_object* v___x_1150_; lean_object* v___x_1151_; lean_object* v___x_1152_; lean_object* v___x_1153_; lean_object* v___x_1155_; -v___x_1144_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__7); +lean_object* v___x_1138_; lean_object* v___x_1139_; lean_object* v___x_1140_; lean_object* v___x_1141_; lean_object* v___x_1142_; lean_object* v___x_1143_; lean_object* v___x_1144_; lean_object* v___x_1145_; lean_object* v___x_1146_; lean_object* v___x_1147_; lean_object* v___x_1149_; +v___x_1138_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__11); +v___x_1139_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1139_, 0, v___x_1138_); +lean_ctor_set(v___x_1139_, 1, v_c_1120_); +v___x_1140_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__13); +v___x_1141_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1141_, 0, v___x_1139_); +lean_ctor_set(v___x_1141_, 1, v___x_1140_); +v___x_1142_ = l_Lean_MessageData_ofName(v_mod_1136_); +v___x_1143_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1143_, 0, v___x_1141_); +lean_ctor_set(v___x_1143_, 1, v___x_1142_); +v___x_1144_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__15); v___x_1145_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1145_, 0, v___x_1144_); -lean_ctor_set(v___x_1145_, 1, v_c_1113_); -v___x_1146_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__17); +lean_ctor_set(v___x_1145_, 0, v___x_1143_); +lean_ctor_set(v___x_1145_, 1, v___x_1144_); +v___x_1146_ = l_Lean_MessageData_note(v___x_1145_); v___x_1147_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1147_, 0, v___x_1145_); +lean_ctor_set(v___x_1147_, 0, v_msg_1103_); lean_ctor_set(v___x_1147_, 1, v___x_1146_); -v___x_1148_ = l_Lean_MessageData_ofName(v_mod_1129_); -v___x_1149_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1149_, 0, v___x_1147_); -lean_ctor_set(v___x_1149_, 1, v___x_1148_); -v___x_1150_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___closed__19); -v___x_1151_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1151_, 0, v___x_1149_); -lean_ctor_set(v___x_1151_, 1, v___x_1150_); -v___x_1152_ = l_Lean_MessageData_note(v___x_1151_); -v___x_1153_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1153_, 0, v_msg_1096_); -lean_ctor_set(v___x_1153_, 1, v___x_1152_); -if (v_isShared_1125_ == 0) +if (v_isShared_1132_ == 0) { -lean_ctor_set_tag(v___x_1124_, 0); -lean_ctor_set(v___x_1124_, 0, v___x_1153_); -v___x_1155_ = v___x_1124_; -goto v_reusejp_1154_; +lean_ctor_set_tag(v___x_1131_, 0); +lean_ctor_set(v___x_1131_, 0, v___x_1147_); +v___x_1149_ = v___x_1131_; +goto v_reusejp_1148_; } else { -lean_object* v_reuseFailAlloc_1156_; -v_reuseFailAlloc_1156_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1156_, 0, v___x_1153_); -v___x_1155_ = v_reuseFailAlloc_1156_; -goto v_reusejp_1154_; +lean_object* v_reuseFailAlloc_1150_; +v_reuseFailAlloc_1150_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1150_, 0, v___x_1147_); +v___x_1149_ = v_reuseFailAlloc_1150_; +goto v_reusejp_1148_; } -v_reusejp_1154_: +v_reusejp_1148_: { -return v___x_1155_; +return v___x_1149_; +} +} +else +{ +lean_object* v___x_1151_; lean_object* v___x_1152_; lean_object* v___x_1153_; lean_object* v___x_1154_; lean_object* v___x_1155_; lean_object* v___x_1156_; lean_object* v___x_1157_; lean_object* v___x_1158_; lean_object* v___x_1159_; lean_object* v___x_1160_; lean_object* v___x_1162_; +v___x_1151_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__7); +v___x_1152_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1152_, 0, v___x_1151_); +lean_ctor_set(v___x_1152_, 1, v_c_1120_); +v___x_1153_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__17); +v___x_1154_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1154_, 0, v___x_1152_); +lean_ctor_set(v___x_1154_, 1, v___x_1153_); +v___x_1155_ = l_Lean_MessageData_ofName(v_mod_1136_); +v___x_1156_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1156_, 0, v___x_1154_); +lean_ctor_set(v___x_1156_, 1, v___x_1155_); +v___x_1157_ = lean_obj_once(&l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19, &l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19_once, _init_l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___closed__19); +v___x_1158_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1158_, 0, v___x_1156_); +lean_ctor_set(v___x_1158_, 1, v___x_1157_); +v___x_1159_ = l_Lean_MessageData_note(v___x_1158_); +v___x_1160_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1160_, 0, v_msg_1103_); +lean_ctor_set(v___x_1160_, 1, v___x_1159_); +if (v_isShared_1132_ == 0) +{ +lean_ctor_set_tag(v___x_1131_, 0); +lean_ctor_set(v___x_1131_, 0, v___x_1160_); +v___x_1162_ = v___x_1131_; +goto v_reusejp_1161_; +} +else +{ +lean_object* v_reuseFailAlloc_1163_; +v_reuseFailAlloc_1163_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1163_, 0, v___x_1160_); +v___x_1162_ = v_reuseFailAlloc_1163_; +goto v_reusejp_1161_; +} +v_reusejp_1161_: +{ +return v___x_1162_; } } } @@ -3629,940 +3607,593 @@ return v___x_1155_; } else { -lean_object* v___x_1158_; -lean_dec_ref(v_env_1101_); -lean_dec(v_declHint_1097_); -v___x_1158_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1158_, 0, v_msg_1096_); -return v___x_1158_; +lean_object* v___x_1165_; +lean_dec_ref(v_env_1108_); +lean_dec(v_declHint_1104_); +v___x_1165_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1165_, 0, v_msg_1103_); +return v___x_1165_; } } } -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg___boxed(lean_object* v_msg_1159_, lean_object* v_declHint_1160_, lean_object* v___y_1161_, lean_object* v___y_1162_){ +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg___boxed(lean_object* v_msg_1166_, lean_object* v_declHint_1167_, lean_object* v___y_1168_, lean_object* v___y_1169_){ _start: { -lean_object* v_res_1163_; -v_res_1163_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg(v_msg_1159_, v_declHint_1160_, v___y_1161_); -lean_dec(v___y_1161_); -return v_res_1163_; +lean_object* v_res_1170_; +v_res_1170_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg(v_msg_1166_, v_declHint_1167_, v___y_1168_); +lean_dec(v___y_1168_); +return v_res_1170_; } } -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28(lean_object* v_msg_1164_, lean_object* v_declHint_1165_, lean_object* v___y_1166_, lean_object* v___y_1167_, lean_object* v___y_1168_, lean_object* v___y_1169_){ +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27(lean_object* v_msg_1171_, lean_object* v_declHint_1172_, lean_object* v___y_1173_, lean_object* v___y_1174_, lean_object* v___y_1175_, lean_object* v___y_1176_){ _start: { -lean_object* v___x_1171_; lean_object* v_a_1172_; lean_object* v___x_1174_; uint8_t v_isShared_1175_; uint8_t v_isSharedCheck_1181_; -v___x_1171_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg(v_msg_1164_, v_declHint_1165_, v___y_1169_); -v_a_1172_ = lean_ctor_get(v___x_1171_, 0); -v_isSharedCheck_1181_ = !lean_is_exclusive(v___x_1171_); -if (v_isSharedCheck_1181_ == 0) +lean_object* v___x_1178_; lean_object* v_a_1179_; lean_object* v___x_1181_; uint8_t v_isShared_1182_; uint8_t v_isSharedCheck_1188_; +v___x_1178_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg(v_msg_1171_, v_declHint_1172_, v___y_1176_); +v_a_1179_ = lean_ctor_get(v___x_1178_, 0); +v_isSharedCheck_1188_ = !lean_is_exclusive(v___x_1178_); +if (v_isSharedCheck_1188_ == 0) { -v___x_1174_ = v___x_1171_; -v_isShared_1175_ = v_isSharedCheck_1181_; -goto v_resetjp_1173_; +v___x_1181_ = v___x_1178_; +v_isShared_1182_ = v_isSharedCheck_1188_; +goto v_resetjp_1180_; } else { -lean_inc(v_a_1172_); -lean_dec(v___x_1171_); -v___x_1174_ = lean_box(0); -v_isShared_1175_ = v_isSharedCheck_1181_; -goto v_resetjp_1173_; +lean_inc(v_a_1179_); +lean_dec(v___x_1178_); +v___x_1181_ = lean_box(0); +v_isShared_1182_ = v_isSharedCheck_1188_; +goto v_resetjp_1180_; } -v_resetjp_1173_: +v_resetjp_1180_: { -lean_object* v___x_1176_; lean_object* v___x_1177_; lean_object* v___x_1179_; -v___x_1176_ = l_Lean_unknownIdentifierMessageTag; -v___x_1177_ = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(v___x_1177_, 0, v___x_1176_); -lean_ctor_set(v___x_1177_, 1, v_a_1172_); -if (v_isShared_1175_ == 0) +lean_object* v___x_1183_; lean_object* v___x_1184_; lean_object* v___x_1186_; +v___x_1183_ = l_Lean_unknownIdentifierMessageTag; +v___x_1184_ = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(v___x_1184_, 0, v___x_1183_); +lean_ctor_set(v___x_1184_, 1, v_a_1179_); +if (v_isShared_1182_ == 0) { -lean_ctor_set(v___x_1174_, 0, v___x_1177_); -v___x_1179_ = v___x_1174_; -goto v_reusejp_1178_; +lean_ctor_set(v___x_1181_, 0, v___x_1184_); +v___x_1186_ = v___x_1181_; +goto v_reusejp_1185_; } else { -lean_object* v_reuseFailAlloc_1180_; -v_reuseFailAlloc_1180_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1180_, 0, v___x_1177_); -v___x_1179_ = v_reuseFailAlloc_1180_; -goto v_reusejp_1178_; +lean_object* v_reuseFailAlloc_1187_; +v_reuseFailAlloc_1187_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1187_, 0, v___x_1184_); +v___x_1186_ = v_reuseFailAlloc_1187_; +goto v_reusejp_1185_; } -v_reusejp_1178_: +v_reusejp_1185_: { -return v___x_1179_; +return v___x_1186_; } } } } -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28___boxed(lean_object* v_msg_1182_, lean_object* v_declHint_1183_, lean_object* v___y_1184_, lean_object* v___y_1185_, lean_object* v___y_1186_, lean_object* v___y_1187_, lean_object* v___y_1188_){ +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27___boxed(lean_object* v_msg_1189_, lean_object* v_declHint_1190_, lean_object* v___y_1191_, lean_object* v___y_1192_, lean_object* v___y_1193_, lean_object* v___y_1194_, lean_object* v___y_1195_){ _start: { -lean_object* v_res_1189_; -v_res_1189_ = l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28(v_msg_1182_, v_declHint_1183_, v___y_1184_, v___y_1185_, v___y_1186_, v___y_1187_); -lean_dec(v___y_1187_); -lean_dec_ref(v___y_1186_); -lean_dec(v___y_1185_); -lean_dec_ref(v___y_1184_); -return v_res_1189_; +lean_object* v_res_1196_; +v_res_1196_ = l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27(v_msg_1189_, v_declHint_1190_, v___y_1191_, v___y_1192_, v___y_1193_, v___y_1194_); +lean_dec(v___y_1194_); +lean_dec_ref(v___y_1193_); +lean_dec(v___y_1192_); +lean_dec_ref(v___y_1191_); +return v_res_1196_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg(lean_object* v_ref_1190_, lean_object* v_msg_1191_, lean_object* v___y_1192_, lean_object* v___y_1193_, lean_object* v___y_1194_, lean_object* v___y_1195_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg(lean_object* v_ref_1197_, lean_object* v_msg_1198_, lean_object* v_declHint_1199_, lean_object* v___y_1200_, lean_object* v___y_1201_, lean_object* v___y_1202_, lean_object* v___y_1203_){ _start: { -lean_object* v_fileName_1197_; lean_object* v_fileMap_1198_; lean_object* v_options_1199_; lean_object* v_currRecDepth_1200_; lean_object* v_maxRecDepth_1201_; lean_object* v_ref_1202_; lean_object* v_currNamespace_1203_; lean_object* v_openDecls_1204_; lean_object* v_initHeartbeats_1205_; lean_object* v_maxHeartbeats_1206_; lean_object* v_quotContext_1207_; lean_object* v_currMacroScope_1208_; uint8_t v_diag_1209_; lean_object* v_cancelTk_x3f_1210_; uint8_t v_suppressElabErrors_1211_; lean_object* v_inheritedTraceOptions_1212_; lean_object* v_ref_1213_; lean_object* v___x_1214_; lean_object* v___x_1215_; -v_fileName_1197_ = lean_ctor_get(v___y_1194_, 0); -v_fileMap_1198_ = lean_ctor_get(v___y_1194_, 1); -v_options_1199_ = lean_ctor_get(v___y_1194_, 2); -v_currRecDepth_1200_ = lean_ctor_get(v___y_1194_, 3); -v_maxRecDepth_1201_ = lean_ctor_get(v___y_1194_, 4); -v_ref_1202_ = lean_ctor_get(v___y_1194_, 5); -v_currNamespace_1203_ = lean_ctor_get(v___y_1194_, 6); -v_openDecls_1204_ = lean_ctor_get(v___y_1194_, 7); -v_initHeartbeats_1205_ = lean_ctor_get(v___y_1194_, 8); -v_maxHeartbeats_1206_ = lean_ctor_get(v___y_1194_, 9); -v_quotContext_1207_ = lean_ctor_get(v___y_1194_, 10); -v_currMacroScope_1208_ = lean_ctor_get(v___y_1194_, 11); -v_diag_1209_ = lean_ctor_get_uint8(v___y_1194_, sizeof(void*)*14); -v_cancelTk_x3f_1210_ = lean_ctor_get(v___y_1194_, 12); -v_suppressElabErrors_1211_ = lean_ctor_get_uint8(v___y_1194_, sizeof(void*)*14 + 1); -v_inheritedTraceOptions_1212_ = lean_ctor_get(v___y_1194_, 13); -v_ref_1213_ = l_Lean_replaceRef(v_ref_1190_, v_ref_1202_); -lean_inc_ref(v_inheritedTraceOptions_1212_); -lean_inc(v_cancelTk_x3f_1210_); -lean_inc(v_currMacroScope_1208_); -lean_inc(v_quotContext_1207_); -lean_inc(v_maxHeartbeats_1206_); -lean_inc(v_initHeartbeats_1205_); -lean_inc(v_openDecls_1204_); -lean_inc(v_currNamespace_1203_); -lean_inc(v_maxRecDepth_1201_); -lean_inc(v_currRecDepth_1200_); -lean_inc_ref(v_options_1199_); -lean_inc_ref(v_fileMap_1198_); -lean_inc_ref(v_fileName_1197_); -v___x_1214_ = lean_alloc_ctor(0, 14, 2); -lean_ctor_set(v___x_1214_, 0, v_fileName_1197_); -lean_ctor_set(v___x_1214_, 1, v_fileMap_1198_); -lean_ctor_set(v___x_1214_, 2, v_options_1199_); -lean_ctor_set(v___x_1214_, 3, v_currRecDepth_1200_); -lean_ctor_set(v___x_1214_, 4, v_maxRecDepth_1201_); -lean_ctor_set(v___x_1214_, 5, v_ref_1213_); -lean_ctor_set(v___x_1214_, 6, v_currNamespace_1203_); -lean_ctor_set(v___x_1214_, 7, v_openDecls_1204_); -lean_ctor_set(v___x_1214_, 8, v_initHeartbeats_1205_); -lean_ctor_set(v___x_1214_, 9, v_maxHeartbeats_1206_); -lean_ctor_set(v___x_1214_, 10, v_quotContext_1207_); -lean_ctor_set(v___x_1214_, 11, v_currMacroScope_1208_); -lean_ctor_set(v___x_1214_, 12, v_cancelTk_x3f_1210_); -lean_ctor_set(v___x_1214_, 13, v_inheritedTraceOptions_1212_); -lean_ctor_set_uint8(v___x_1214_, sizeof(void*)*14, v_diag_1209_); -lean_ctor_set_uint8(v___x_1214_, sizeof(void*)*14 + 1, v_suppressElabErrors_1211_); -v___x_1215_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v_msg_1191_, v___y_1192_, v___y_1193_, v___x_1214_, v___y_1195_); -lean_dec_ref(v___x_1214_); -return v___x_1215_; +lean_object* v___x_1205_; lean_object* v_a_1206_; lean_object* v___x_1207_; +v___x_1205_ = l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27(v_msg_1198_, v_declHint_1199_, v___y_1200_, v___y_1201_, v___y_1202_, v___y_1203_); +v_a_1206_ = lean_ctor_get(v___x_1205_, 0); +lean_inc(v_a_1206_); +lean_dec_ref(v___x_1205_); +v___x_1207_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg(v_ref_1197_, v_a_1206_, v___y_1200_, v___y_1201_, v___y_1202_, v___y_1203_); +return v___x_1207_; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg___boxed(lean_object* v_ref_1216_, lean_object* v_msg_1217_, lean_object* v___y_1218_, lean_object* v___y_1219_, lean_object* v___y_1220_, lean_object* v___y_1221_, lean_object* v___y_1222_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg___boxed(lean_object* v_ref_1208_, lean_object* v_msg_1209_, lean_object* v_declHint_1210_, lean_object* v___y_1211_, lean_object* v___y_1212_, lean_object* v___y_1213_, lean_object* v___y_1214_, lean_object* v___y_1215_){ _start: { -lean_object* v_res_1223_; -v_res_1223_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg(v_ref_1216_, v_msg_1217_, v___y_1218_, v___y_1219_, v___y_1220_, v___y_1221_); -lean_dec(v___y_1221_); -lean_dec_ref(v___y_1220_); -lean_dec(v___y_1219_); -lean_dec_ref(v___y_1218_); -lean_dec(v_ref_1216_); -return v_res_1223_; +lean_object* v_res_1216_; +v_res_1216_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg(v_ref_1208_, v_msg_1209_, v_declHint_1210_, v___y_1211_, v___y_1212_, v___y_1213_, v___y_1214_); +lean_dec(v___y_1214_); +lean_dec_ref(v___y_1213_); +lean_dec(v___y_1212_); +lean_dec_ref(v___y_1211_); +lean_dec(v_ref_1208_); +return v_res_1216_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg(lean_object* v_ref_1224_, lean_object* v_msg_1225_, lean_object* v_declHint_1226_, lean_object* v___y_1227_, lean_object* v___y_1228_, lean_object* v___y_1229_, lean_object* v___y_1230_){ +static lean_object* _init_l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1(void){ _start: { -lean_object* v___x_1232_; lean_object* v_a_1233_; lean_object* v___x_1234_; -v___x_1232_ = l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28(v_msg_1225_, v_declHint_1226_, v___y_1227_, v___y_1228_, v___y_1229_, v___y_1230_); -v_a_1233_ = lean_ctor_get(v___x_1232_, 0); -lean_inc(v_a_1233_); -lean_dec_ref(v___x_1232_); -v___x_1234_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg(v_ref_1224_, v_a_1233_, v___y_1227_, v___y_1228_, v___y_1229_, v___y_1230_); -return v___x_1234_; +lean_object* v___x_1218_; lean_object* v___x_1219_; +v___x_1218_ = ((lean_object*)(l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__0)); +v___x_1219_ = l_Lean_stringToMessageData(v___x_1218_); +return v___x_1219_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg___boxed(lean_object* v_ref_1235_, lean_object* v_msg_1236_, lean_object* v_declHint_1237_, lean_object* v___y_1238_, lean_object* v___y_1239_, lean_object* v___y_1240_, lean_object* v___y_1241_, lean_object* v___y_1242_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg(lean_object* v_ref_1220_, lean_object* v_constName_1221_, lean_object* v___y_1222_, lean_object* v___y_1223_, lean_object* v___y_1224_, lean_object* v___y_1225_){ _start: { -lean_object* v_res_1243_; -v_res_1243_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg(v_ref_1235_, v_msg_1236_, v_declHint_1237_, v___y_1238_, v___y_1239_, v___y_1240_, v___y_1241_); -lean_dec(v___y_1241_); -lean_dec_ref(v___y_1240_); +lean_object* v___x_1227_; uint8_t v___x_1228_; lean_object* v___x_1229_; lean_object* v___x_1230_; lean_object* v___x_1231_; lean_object* v___x_1232_; lean_object* v___x_1233_; +v___x_1227_ = lean_obj_once(&l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1, &l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1_once, _init_l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___closed__1); +v___x_1228_ = 0; +lean_inc(v_constName_1221_); +v___x_1229_ = l_Lean_MessageData_ofConstName(v_constName_1221_, v___x_1228_); +v___x_1230_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1230_, 0, v___x_1227_); +lean_ctor_set(v___x_1230_, 1, v___x_1229_); +v___x_1231_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_1232_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1232_, 0, v___x_1230_); +lean_ctor_set(v___x_1232_, 1, v___x_1231_); +v___x_1233_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg(v_ref_1220_, v___x_1232_, v_constName_1221_, v___y_1222_, v___y_1223_, v___y_1224_, v___y_1225_); +return v___x_1233_; +} +} +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg___boxed(lean_object* v_ref_1234_, lean_object* v_constName_1235_, lean_object* v___y_1236_, lean_object* v___y_1237_, lean_object* v___y_1238_, lean_object* v___y_1239_, lean_object* v___y_1240_){ +_start: +{ +lean_object* v_res_1241_; +v_res_1241_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg(v_ref_1234_, v_constName_1235_, v___y_1236_, v___y_1237_, v___y_1238_, v___y_1239_); lean_dec(v___y_1239_); lean_dec_ref(v___y_1238_); -lean_dec(v_ref_1235_); -return v_res_1243_; +lean_dec(v___y_1237_); +lean_dec_ref(v___y_1236_); +lean_dec(v_ref_1234_); +return v_res_1241_; } } -static lean_object* _init_l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1(void){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg(lean_object* v_constName_1242_, lean_object* v___y_1243_, lean_object* v___y_1244_, lean_object* v___y_1245_, lean_object* v___y_1246_){ _start: { -lean_object* v___x_1245_; lean_object* v___x_1246_; -v___x_1245_ = ((lean_object*)(l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__0)); -v___x_1246_ = l_Lean_stringToMessageData(v___x_1245_); -return v___x_1246_; +lean_object* v_ref_1248_; lean_object* v___x_1249_; +v_ref_1248_ = lean_ctor_get(v___y_1245_, 5); +v___x_1249_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg(v_ref_1248_, v_constName_1242_, v___y_1243_, v___y_1244_, v___y_1245_, v___y_1246_); +return v___x_1249_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg(lean_object* v_ref_1247_, lean_object* v_constName_1248_, lean_object* v___y_1249_, lean_object* v___y_1250_, lean_object* v___y_1251_, lean_object* v___y_1252_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg___boxed(lean_object* v_constName_1250_, lean_object* v___y_1251_, lean_object* v___y_1252_, lean_object* v___y_1253_, lean_object* v___y_1254_, lean_object* v___y_1255_){ _start: { -lean_object* v___x_1254_; uint8_t v___x_1255_; lean_object* v___x_1256_; lean_object* v___x_1257_; lean_object* v___x_1258_; lean_object* v___x_1259_; lean_object* v___x_1260_; -v___x_1254_ = lean_obj_once(&l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1, &l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1_once, _init_l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___closed__1); -v___x_1255_ = 0; -lean_inc(v_constName_1248_); -v___x_1256_ = l_Lean_MessageData_ofConstName(v_constName_1248_, v___x_1255_); -v___x_1257_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1257_, 0, v___x_1254_); -lean_ctor_set(v___x_1257_, 1, v___x_1256_); -v___x_1258_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_1259_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1259_, 0, v___x_1257_); -lean_ctor_set(v___x_1259_, 1, v___x_1258_); -v___x_1260_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg(v_ref_1247_, v___x_1259_, v_constName_1248_, v___y_1249_, v___y_1250_, v___y_1251_, v___y_1252_); -return v___x_1260_; +lean_object* v_res_1256_; +v_res_1256_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg(v_constName_1250_, v___y_1251_, v___y_1252_, v___y_1253_, v___y_1254_); +lean_dec(v___y_1254_); +lean_dec_ref(v___y_1253_); +lean_dec(v___y_1252_); +lean_dec_ref(v___y_1251_); +return v_res_1256_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg___boxed(lean_object* v_ref_1261_, lean_object* v_constName_1262_, lean_object* v___y_1263_, lean_object* v___y_1264_, lean_object* v___y_1265_, lean_object* v___y_1266_, lean_object* v___y_1267_){ +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(lean_object* v_constName_1257_, lean_object* v___y_1258_, lean_object* v___y_1259_, lean_object* v___y_1260_, lean_object* v___y_1261_){ _start: { -lean_object* v_res_1268_; -v_res_1268_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg(v_ref_1261_, v_constName_1262_, v___y_1263_, v___y_1264_, v___y_1265_, v___y_1266_); -lean_dec(v___y_1266_); -lean_dec_ref(v___y_1265_); -lean_dec(v___y_1264_); -lean_dec_ref(v___y_1263_); -lean_dec(v_ref_1261_); -return v_res_1268_; +lean_object* v___x_1263_; lean_object* v_env_1264_; uint8_t v___x_1265_; lean_object* v___x_1266_; +v___x_1263_ = lean_st_ref_get(v___y_1261_); +v_env_1264_ = lean_ctor_get(v___x_1263_, 0); +lean_inc_ref(v_env_1264_); +lean_dec(v___x_1263_); +v___x_1265_ = 0; +lean_inc(v_constName_1257_); +v___x_1266_ = l_Lean_Environment_find_x3f(v_env_1264_, v_constName_1257_, v___x_1265_); +if (lean_obj_tag(v___x_1266_) == 0) +{ +lean_object* v___x_1267_; +v___x_1267_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg(v_constName_1257_, v___y_1258_, v___y_1259_, v___y_1260_, v___y_1261_); +return v___x_1267_; +} +else +{ +lean_object* v_val_1268_; lean_object* v___x_1270_; uint8_t v_isShared_1271_; uint8_t v_isSharedCheck_1275_; +lean_dec(v_constName_1257_); +v_val_1268_ = lean_ctor_get(v___x_1266_, 0); +v_isSharedCheck_1275_ = !lean_is_exclusive(v___x_1266_); +if (v_isSharedCheck_1275_ == 0) +{ +v___x_1270_ = v___x_1266_; +v_isShared_1271_ = v_isSharedCheck_1275_; +goto v_resetjp_1269_; +} +else +{ +lean_inc(v_val_1268_); +lean_dec(v___x_1266_); +v___x_1270_ = lean_box(0); +v_isShared_1271_ = v_isSharedCheck_1275_; +goto v_resetjp_1269_; +} +v_resetjp_1269_: +{ +lean_object* v___x_1273_; +if (v_isShared_1271_ == 0) +{ +lean_ctor_set_tag(v___x_1270_, 0); +v___x_1273_ = v___x_1270_; +goto v_reusejp_1272_; +} +else +{ +lean_object* v_reuseFailAlloc_1274_; +v_reuseFailAlloc_1274_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1274_, 0, v_val_1268_); +v___x_1273_ = v_reuseFailAlloc_1274_; +goto v_reusejp_1272_; +} +v_reusejp_1272_: +{ +return v___x_1273_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg(lean_object* v_constName_1269_, lean_object* v___y_1270_, lean_object* v___y_1271_, lean_object* v___y_1272_, lean_object* v___y_1273_){ +} +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3___boxed(lean_object* v_constName_1276_, lean_object* v___y_1277_, lean_object* v___y_1278_, lean_object* v___y_1279_, lean_object* v___y_1280_, lean_object* v___y_1281_){ _start: { -lean_object* v_ref_1275_; lean_object* v___x_1276_; -v_ref_1275_ = lean_ctor_get(v___y_1272_, 5); -v___x_1276_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg(v_ref_1275_, v_constName_1269_, v___y_1270_, v___y_1271_, v___y_1272_, v___y_1273_); -return v___x_1276_; +lean_object* v_res_1282_; +v_res_1282_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_constName_1276_, v___y_1277_, v___y_1278_, v___y_1279_, v___y_1280_); +lean_dec(v___y_1280_); +lean_dec_ref(v___y_1279_); +lean_dec(v___y_1278_); +lean_dec_ref(v___y_1277_); +return v_res_1282_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg___boxed(lean_object* v_constName_1277_, lean_object* v___y_1278_, lean_object* v___y_1279_, lean_object* v___y_1280_, lean_object* v___y_1281_, lean_object* v___y_1282_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31___redArg(lean_object* v_x_1283_, lean_object* v_x_1284_, lean_object* v_x_1285_, lean_object* v_x_1286_){ _start: { -lean_object* v_res_1283_; -v_res_1283_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg(v_constName_1277_, v___y_1278_, v___y_1279_, v___y_1280_, v___y_1281_); -lean_dec(v___y_1281_); -lean_dec_ref(v___y_1280_); -lean_dec(v___y_1279_); -lean_dec_ref(v___y_1278_); -return v_res_1283_; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(lean_object* v_constName_1284_, lean_object* v___y_1285_, lean_object* v___y_1286_, lean_object* v___y_1287_, lean_object* v___y_1288_){ -_start: +lean_object* v_ks_1287_; lean_object* v_vs_1288_; lean_object* v___x_1290_; uint8_t v_isShared_1291_; uint8_t v_isSharedCheck_1312_; +v_ks_1287_ = lean_ctor_get(v_x_1283_, 0); +v_vs_1288_ = lean_ctor_get(v_x_1283_, 1); +v_isSharedCheck_1312_ = !lean_is_exclusive(v_x_1283_); +if (v_isSharedCheck_1312_ == 0) { -lean_object* v___x_1290_; lean_object* v_env_1291_; uint8_t v___x_1292_; lean_object* v___x_1293_; -v___x_1290_ = lean_st_ref_get(v___y_1288_); -v_env_1291_ = lean_ctor_get(v___x_1290_, 0); -lean_inc_ref(v_env_1291_); -lean_dec(v___x_1290_); -v___x_1292_ = 0; -lean_inc(v_constName_1284_); -v___x_1293_ = l_Lean_Environment_find_x3f(v_env_1291_, v_constName_1284_, v___x_1292_); -if (lean_obj_tag(v___x_1293_) == 0) -{ -lean_object* v___x_1294_; -v___x_1294_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg(v_constName_1284_, v___y_1285_, v___y_1286_, v___y_1287_, v___y_1288_); -return v___x_1294_; +v___x_1290_ = v_x_1283_; +v_isShared_1291_ = v_isSharedCheck_1312_; +goto v_resetjp_1289_; } else { -lean_object* v_val_1295_; lean_object* v___x_1297_; uint8_t v_isShared_1298_; uint8_t v_isSharedCheck_1302_; -lean_dec(v_constName_1284_); -v_val_1295_ = lean_ctor_get(v___x_1293_, 0); -v_isSharedCheck_1302_ = !lean_is_exclusive(v___x_1293_); -if (v_isSharedCheck_1302_ == 0) +lean_inc(v_vs_1288_); +lean_inc(v_ks_1287_); +lean_dec(v_x_1283_); +v___x_1290_ = lean_box(0); +v_isShared_1291_ = v_isSharedCheck_1312_; +goto v_resetjp_1289_; +} +v_resetjp_1289_: { -v___x_1297_ = v___x_1293_; -v_isShared_1298_ = v_isSharedCheck_1302_; -goto v_resetjp_1296_; +lean_object* v___x_1292_; uint8_t v___x_1293_; +v___x_1292_ = lean_array_get_size(v_ks_1287_); +v___x_1293_ = lean_nat_dec_lt(v_x_1284_, v___x_1292_); +if (v___x_1293_ == 0) +{ +lean_object* v___x_1294_; lean_object* v___x_1295_; lean_object* v___x_1297_; +lean_dec(v_x_1284_); +v___x_1294_ = lean_array_push(v_ks_1287_, v_x_1285_); +v___x_1295_ = lean_array_push(v_vs_1288_, v_x_1286_); +if (v_isShared_1291_ == 0) +{ +lean_ctor_set(v___x_1290_, 1, v___x_1295_); +lean_ctor_set(v___x_1290_, 0, v___x_1294_); +v___x_1297_ = v___x_1290_; +goto v_reusejp_1296_; } else { -lean_inc(v_val_1295_); -lean_dec(v___x_1293_); -v___x_1297_ = lean_box(0); -v_isShared_1298_ = v_isSharedCheck_1302_; -goto v_resetjp_1296_; +lean_object* v_reuseFailAlloc_1298_; +v_reuseFailAlloc_1298_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1298_, 0, v___x_1294_); +lean_ctor_set(v_reuseFailAlloc_1298_, 1, v___x_1295_); +v___x_1297_ = v_reuseFailAlloc_1298_; +goto v_reusejp_1296_; } -v_resetjp_1296_: +v_reusejp_1296_: { -lean_object* v___x_1300_; -if (v_isShared_1298_ == 0) -{ -lean_ctor_set_tag(v___x_1297_, 0); -v___x_1300_ = v___x_1297_; -goto v_reusejp_1299_; -} -else -{ -lean_object* v_reuseFailAlloc_1301_; -v_reuseFailAlloc_1301_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1301_, 0, v_val_1295_); -v___x_1300_ = v_reuseFailAlloc_1301_; -goto v_reusejp_1299_; -} -v_reusejp_1299_: -{ -return v___x_1300_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4___boxed(lean_object* v_constName_1303_, lean_object* v___y_1304_, lean_object* v___y_1305_, lean_object* v___y_1306_, lean_object* v___y_1307_, lean_object* v___y_1308_){ -_start: -{ -lean_object* v_res_1309_; -v_res_1309_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_constName_1303_, v___y_1304_, v___y_1305_, v___y_1306_, v___y_1307_); -lean_dec(v___y_1307_); -lean_dec_ref(v___y_1306_); -lean_dec(v___y_1305_); -lean_dec_ref(v___y_1304_); -return v_res_1309_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(size_t v_sz_1310_, size_t v_i_1311_, lean_object* v_bs_1312_, lean_object* v___y_1313_, lean_object* v___y_1314_, lean_object* v___y_1315_, lean_object* v___y_1316_){ -_start: -{ -uint8_t v___x_1318_; -v___x_1318_ = lean_usize_dec_lt(v_i_1311_, v_sz_1310_); -if (v___x_1318_ == 0) -{ -lean_object* v___x_1319_; -v___x_1319_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1319_, 0, v_bs_1312_); -return v___x_1319_; -} -else -{ -lean_object* v_v_1320_; lean_object* v___x_1321_; -v_v_1320_ = lean_array_uget_borrowed(v_bs_1312_, v_i_1311_); -lean_inc(v_v_1320_); -v___x_1321_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_v_1320_, v___y_1314_); -if (lean_obj_tag(v___x_1321_) == 0) -{ -lean_object* v_a_1322_; lean_object* v___x_1323_; lean_object* v_bs_x27_1324_; size_t v___x_1325_; size_t v___x_1326_; lean_object* v___x_1327_; -v_a_1322_ = lean_ctor_get(v___x_1321_, 0); -lean_inc(v_a_1322_); -lean_dec_ref(v___x_1321_); -v___x_1323_ = lean_unsigned_to_nat(0u); -v_bs_x27_1324_ = lean_array_uset(v_bs_1312_, v_i_1311_, v___x_1323_); -v___x_1325_ = ((size_t)1ULL); -v___x_1326_ = lean_usize_add(v_i_1311_, v___x_1325_); -v___x_1327_ = lean_array_uset(v_bs_x27_1324_, v_i_1311_, v_a_1322_); -v_i_1311_ = v___x_1326_; -v_bs_1312_ = v___x_1327_; -goto _start; -} -else -{ -lean_object* v_a_1329_; lean_object* v___x_1331_; uint8_t v_isShared_1332_; uint8_t v_isSharedCheck_1336_; -lean_dec_ref(v_bs_1312_); -v_a_1329_ = lean_ctor_get(v___x_1321_, 0); -v_isSharedCheck_1336_ = !lean_is_exclusive(v___x_1321_); -if (v_isSharedCheck_1336_ == 0) -{ -v___x_1331_ = v___x_1321_; -v_isShared_1332_ = v_isSharedCheck_1336_; -goto v_resetjp_1330_; -} -else -{ -lean_inc(v_a_1329_); -lean_dec(v___x_1321_); -v___x_1331_ = lean_box(0); -v_isShared_1332_ = v_isSharedCheck_1336_; -goto v_resetjp_1330_; -} -v_resetjp_1330_: -{ -lean_object* v___x_1334_; -if (v_isShared_1332_ == 0) -{ -v___x_1334_ = v___x_1331_; -goto v_reusejp_1333_; -} -else -{ -lean_object* v_reuseFailAlloc_1335_; -v_reuseFailAlloc_1335_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1335_, 0, v_a_1329_); -v___x_1334_ = v_reuseFailAlloc_1335_; -goto v_reusejp_1333_; -} -v_reusejp_1333_: -{ -return v___x_1334_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6___boxed(lean_object* v_sz_1337_, lean_object* v_i_1338_, lean_object* v_bs_1339_, lean_object* v___y_1340_, lean_object* v___y_1341_, lean_object* v___y_1342_, lean_object* v___y_1343_, lean_object* v___y_1344_){ -_start: -{ -size_t v_sz_boxed_1345_; size_t v_i_boxed_1346_; lean_object* v_res_1347_; -v_sz_boxed_1345_ = lean_unbox_usize(v_sz_1337_); -lean_dec(v_sz_1337_); -v_i_boxed_1346_ = lean_unbox_usize(v_i_1338_); -lean_dec(v_i_1338_); -v_res_1347_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_boxed_1345_, v_i_boxed_1346_, v_bs_1339_, v___y_1340_, v___y_1341_, v___y_1342_, v___y_1343_); -lean_dec(v___y_1343_); -lean_dec_ref(v___y_1342_); -lean_dec(v___y_1341_); -lean_dec_ref(v___y_1340_); -return v_res_1347_; -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(lean_object* v_cls_1348_, lean_object* v_msg_1349_, lean_object* v___y_1350_, lean_object* v___y_1351_, lean_object* v___y_1352_, lean_object* v___y_1353_){ -_start: -{ -lean_object* v_ref_1355_; lean_object* v___x_1356_; lean_object* v_a_1357_; lean_object* v___x_1359_; uint8_t v_isShared_1360_; uint8_t v_isSharedCheck_1401_; -v_ref_1355_ = lean_ctor_get(v___y_1352_, 5); -v___x_1356_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1_spec__1(v_msg_1349_, v___y_1350_, v___y_1351_, v___y_1352_, v___y_1353_); -v_a_1357_ = lean_ctor_get(v___x_1356_, 0); -v_isSharedCheck_1401_ = !lean_is_exclusive(v___x_1356_); -if (v_isSharedCheck_1401_ == 0) -{ -v___x_1359_ = v___x_1356_; -v_isShared_1360_ = v_isSharedCheck_1401_; -goto v_resetjp_1358_; -} -else -{ -lean_inc(v_a_1357_); -lean_dec(v___x_1356_); -v___x_1359_ = lean_box(0); -v_isShared_1360_ = v_isSharedCheck_1401_; -goto v_resetjp_1358_; -} -v_resetjp_1358_: -{ -lean_object* v___x_1361_; lean_object* v_traceState_1362_; lean_object* v_env_1363_; lean_object* v_nextMacroScope_1364_; lean_object* v_ngen_1365_; lean_object* v_auxDeclNGen_1366_; lean_object* v_cache_1367_; lean_object* v_messages_1368_; lean_object* v_infoState_1369_; lean_object* v_snapshotTasks_1370_; lean_object* v___x_1372_; uint8_t v_isShared_1373_; uint8_t v_isSharedCheck_1400_; -v___x_1361_ = lean_st_ref_take(v___y_1353_); -v_traceState_1362_ = lean_ctor_get(v___x_1361_, 4); -v_env_1363_ = lean_ctor_get(v___x_1361_, 0); -v_nextMacroScope_1364_ = lean_ctor_get(v___x_1361_, 1); -v_ngen_1365_ = lean_ctor_get(v___x_1361_, 2); -v_auxDeclNGen_1366_ = lean_ctor_get(v___x_1361_, 3); -v_cache_1367_ = lean_ctor_get(v___x_1361_, 5); -v_messages_1368_ = lean_ctor_get(v___x_1361_, 6); -v_infoState_1369_ = lean_ctor_get(v___x_1361_, 7); -v_snapshotTasks_1370_ = lean_ctor_get(v___x_1361_, 8); -v_isSharedCheck_1400_ = !lean_is_exclusive(v___x_1361_); -if (v_isSharedCheck_1400_ == 0) -{ -v___x_1372_ = v___x_1361_; -v_isShared_1373_ = v_isSharedCheck_1400_; -goto v_resetjp_1371_; -} -else -{ -lean_inc(v_snapshotTasks_1370_); -lean_inc(v_infoState_1369_); -lean_inc(v_messages_1368_); -lean_inc(v_cache_1367_); -lean_inc(v_traceState_1362_); -lean_inc(v_auxDeclNGen_1366_); -lean_inc(v_ngen_1365_); -lean_inc(v_nextMacroScope_1364_); -lean_inc(v_env_1363_); -lean_dec(v___x_1361_); -v___x_1372_ = lean_box(0); -v_isShared_1373_ = v_isSharedCheck_1400_; -goto v_resetjp_1371_; -} -v_resetjp_1371_: -{ -uint64_t v_tid_1374_; lean_object* v_traces_1375_; lean_object* v___x_1377_; uint8_t v_isShared_1378_; uint8_t v_isSharedCheck_1399_; -v_tid_1374_ = lean_ctor_get_uint64(v_traceState_1362_, sizeof(void*)*1); -v_traces_1375_ = lean_ctor_get(v_traceState_1362_, 0); -v_isSharedCheck_1399_ = !lean_is_exclusive(v_traceState_1362_); -if (v_isSharedCheck_1399_ == 0) -{ -v___x_1377_ = v_traceState_1362_; -v_isShared_1378_ = v_isSharedCheck_1399_; -goto v_resetjp_1376_; -} -else -{ -lean_inc(v_traces_1375_); -lean_dec(v_traceState_1362_); -v___x_1377_ = lean_box(0); -v_isShared_1378_ = v_isSharedCheck_1399_; -goto v_resetjp_1376_; -} -v_resetjp_1376_: -{ -lean_object* v___x_1379_; double v___x_1380_; uint8_t v___x_1381_; lean_object* v___x_1382_; lean_object* v___x_1383_; lean_object* v___x_1384_; lean_object* v___x_1385_; lean_object* v___x_1386_; lean_object* v___x_1387_; lean_object* v___x_1389_; -v___x_1379_ = lean_box(0); -v___x_1380_ = lean_float_once(&l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0, &l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0_once, _init_l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0); -v___x_1381_ = 0; -v___x_1382_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__1)); -v___x_1383_ = lean_alloc_ctor(0, 3, 17); -lean_ctor_set(v___x_1383_, 0, v_cls_1348_); -lean_ctor_set(v___x_1383_, 1, v___x_1379_); -lean_ctor_set(v___x_1383_, 2, v___x_1382_); -lean_ctor_set_float(v___x_1383_, sizeof(void*)*3, v___x_1380_); -lean_ctor_set_float(v___x_1383_, sizeof(void*)*3 + 8, v___x_1380_); -lean_ctor_set_uint8(v___x_1383_, sizeof(void*)*3 + 16, v___x_1381_); -v___x_1384_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__2)); -v___x_1385_ = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(v___x_1385_, 0, v___x_1383_); -lean_ctor_set(v___x_1385_, 1, v_a_1357_); -lean_ctor_set(v___x_1385_, 2, v___x_1384_); -lean_inc(v_ref_1355_); -v___x_1386_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1386_, 0, v_ref_1355_); -lean_ctor_set(v___x_1386_, 1, v___x_1385_); -v___x_1387_ = l_Lean_PersistentArray_push___redArg(v_traces_1375_, v___x_1386_); -if (v_isShared_1378_ == 0) -{ -lean_ctor_set(v___x_1377_, 0, v___x_1387_); -v___x_1389_ = v___x_1377_; -goto v_reusejp_1388_; -} -else -{ -lean_object* v_reuseFailAlloc_1398_; -v_reuseFailAlloc_1398_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v_reuseFailAlloc_1398_, 0, v___x_1387_); -lean_ctor_set_uint64(v_reuseFailAlloc_1398_, sizeof(void*)*1, v_tid_1374_); -v___x_1389_ = v_reuseFailAlloc_1398_; -goto v_reusejp_1388_; -} -v_reusejp_1388_: -{ -lean_object* v___x_1391_; -if (v_isShared_1373_ == 0) -{ -lean_ctor_set(v___x_1372_, 4, v___x_1389_); -v___x_1391_ = v___x_1372_; -goto v_reusejp_1390_; -} -else -{ -lean_object* v_reuseFailAlloc_1397_; -v_reuseFailAlloc_1397_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_1397_, 0, v_env_1363_); -lean_ctor_set(v_reuseFailAlloc_1397_, 1, v_nextMacroScope_1364_); -lean_ctor_set(v_reuseFailAlloc_1397_, 2, v_ngen_1365_); -lean_ctor_set(v_reuseFailAlloc_1397_, 3, v_auxDeclNGen_1366_); -lean_ctor_set(v_reuseFailAlloc_1397_, 4, v___x_1389_); -lean_ctor_set(v_reuseFailAlloc_1397_, 5, v_cache_1367_); -lean_ctor_set(v_reuseFailAlloc_1397_, 6, v_messages_1368_); -lean_ctor_set(v_reuseFailAlloc_1397_, 7, v_infoState_1369_); -lean_ctor_set(v_reuseFailAlloc_1397_, 8, v_snapshotTasks_1370_); -v___x_1391_ = v_reuseFailAlloc_1397_; -goto v_reusejp_1390_; -} -v_reusejp_1390_: -{ -lean_object* v___x_1392_; lean_object* v___x_1393_; lean_object* v___x_1395_; -v___x_1392_ = lean_st_ref_set(v___y_1353_, v___x_1391_); -v___x_1393_ = lean_box(0); -if (v_isShared_1360_ == 0) -{ -lean_ctor_set(v___x_1359_, 0, v___x_1393_); -v___x_1395_ = v___x_1359_; -goto v_reusejp_1394_; -} -else -{ -lean_object* v_reuseFailAlloc_1396_; -v_reuseFailAlloc_1396_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1396_, 0, v___x_1393_); -v___x_1395_ = v_reuseFailAlloc_1396_; -goto v_reusejp_1394_; -} -v_reusejp_1394_: -{ -return v___x_1395_; -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3___boxed(lean_object* v_cls_1402_, lean_object* v_msg_1403_, lean_object* v___y_1404_, lean_object* v___y_1405_, lean_object* v___y_1406_, lean_object* v___y_1407_, lean_object* v___y_1408_){ -_start: -{ -lean_object* v_res_1409_; -v_res_1409_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_1402_, v_msg_1403_, v___y_1404_, v___y_1405_, v___y_1406_, v___y_1407_); -lean_dec(v___y_1407_); -lean_dec_ref(v___y_1406_); -lean_dec(v___y_1405_); -lean_dec_ref(v___y_1404_); -return v_res_1409_; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32___redArg(lean_object* v_x_1410_, lean_object* v_x_1411_, lean_object* v_x_1412_, lean_object* v_x_1413_){ -_start: -{ -lean_object* v_ks_1414_; lean_object* v_vs_1415_; lean_object* v___x_1417_; uint8_t v_isShared_1418_; uint8_t v_isSharedCheck_1439_; -v_ks_1414_ = lean_ctor_get(v_x_1410_, 0); -v_vs_1415_ = lean_ctor_get(v_x_1410_, 1); -v_isSharedCheck_1439_ = !lean_is_exclusive(v_x_1410_); -if (v_isSharedCheck_1439_ == 0) -{ -v___x_1417_ = v_x_1410_; -v_isShared_1418_ = v_isSharedCheck_1439_; -goto v_resetjp_1416_; -} -else -{ -lean_inc(v_vs_1415_); -lean_inc(v_ks_1414_); -lean_dec(v_x_1410_); -v___x_1417_ = lean_box(0); -v_isShared_1418_ = v_isSharedCheck_1439_; -goto v_resetjp_1416_; -} -v_resetjp_1416_: -{ -lean_object* v___x_1419_; uint8_t v___x_1420_; -v___x_1419_ = lean_array_get_size(v_ks_1414_); -v___x_1420_ = lean_nat_dec_lt(v_x_1411_, v___x_1419_); -if (v___x_1420_ == 0) -{ -lean_object* v___x_1421_; lean_object* v___x_1422_; lean_object* v___x_1424_; -lean_dec(v_x_1411_); -v___x_1421_ = lean_array_push(v_ks_1414_, v_x_1412_); -v___x_1422_ = lean_array_push(v_vs_1415_, v_x_1413_); -if (v_isShared_1418_ == 0) -{ -lean_ctor_set(v___x_1417_, 1, v___x_1422_); -lean_ctor_set(v___x_1417_, 0, v___x_1421_); -v___x_1424_ = v___x_1417_; -goto v_reusejp_1423_; -} -else -{ -lean_object* v_reuseFailAlloc_1425_; -v_reuseFailAlloc_1425_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1425_, 0, v___x_1421_); -lean_ctor_set(v_reuseFailAlloc_1425_, 1, v___x_1422_); -v___x_1424_ = v_reuseFailAlloc_1425_; -goto v_reusejp_1423_; -} -v_reusejp_1423_: -{ -return v___x_1424_; +return v___x_1297_; } } else { -lean_object* v_k_x27_1426_; uint8_t v___x_1427_; -v_k_x27_1426_ = lean_array_fget_borrowed(v_ks_1414_, v_x_1411_); -v___x_1427_ = l_Lean_instBEqMVarId_beq(v_x_1412_, v_k_x27_1426_); -if (v___x_1427_ == 0) +lean_object* v_k_x27_1299_; uint8_t v___x_1300_; +v_k_x27_1299_ = lean_array_fget_borrowed(v_ks_1287_, v_x_1284_); +v___x_1300_ = l_Lean_instBEqMVarId_beq(v_x_1285_, v_k_x27_1299_); +if (v___x_1300_ == 0) { -lean_object* v___x_1429_; -if (v_isShared_1418_ == 0) +lean_object* v___x_1302_; +if (v_isShared_1291_ == 0) { -v___x_1429_ = v___x_1417_; -goto v_reusejp_1428_; +v___x_1302_ = v___x_1290_; +goto v_reusejp_1301_; } else { -lean_object* v_reuseFailAlloc_1433_; -v_reuseFailAlloc_1433_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1433_, 0, v_ks_1414_); -lean_ctor_set(v_reuseFailAlloc_1433_, 1, v_vs_1415_); -v___x_1429_ = v_reuseFailAlloc_1433_; -goto v_reusejp_1428_; +lean_object* v_reuseFailAlloc_1306_; +v_reuseFailAlloc_1306_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1306_, 0, v_ks_1287_); +lean_ctor_set(v_reuseFailAlloc_1306_, 1, v_vs_1288_); +v___x_1302_ = v_reuseFailAlloc_1306_; +goto v_reusejp_1301_; } -v_reusejp_1428_: +v_reusejp_1301_: { -lean_object* v___x_1430_; lean_object* v___x_1431_; -v___x_1430_ = lean_unsigned_to_nat(1u); -v___x_1431_ = lean_nat_add(v_x_1411_, v___x_1430_); -lean_dec(v_x_1411_); -v_x_1410_ = v___x_1429_; -v_x_1411_ = v___x_1431_; +lean_object* v___x_1303_; lean_object* v___x_1304_; +v___x_1303_ = lean_unsigned_to_nat(1u); +v___x_1304_ = lean_nat_add(v_x_1284_, v___x_1303_); +lean_dec(v_x_1284_); +v_x_1283_ = v___x_1302_; +v_x_1284_ = v___x_1304_; goto _start; } } else { -lean_object* v___x_1434_; lean_object* v___x_1435_; lean_object* v___x_1437_; -v___x_1434_ = lean_array_fset(v_ks_1414_, v_x_1411_, v_x_1412_); -v___x_1435_ = lean_array_fset(v_vs_1415_, v_x_1411_, v_x_1413_); -lean_dec(v_x_1411_); -if (v_isShared_1418_ == 0) +lean_object* v___x_1307_; lean_object* v___x_1308_; lean_object* v___x_1310_; +v___x_1307_ = lean_array_fset(v_ks_1287_, v_x_1284_, v_x_1285_); +v___x_1308_ = lean_array_fset(v_vs_1288_, v_x_1284_, v_x_1286_); +lean_dec(v_x_1284_); +if (v_isShared_1291_ == 0) { -lean_ctor_set(v___x_1417_, 1, v___x_1435_); -lean_ctor_set(v___x_1417_, 0, v___x_1434_); -v___x_1437_ = v___x_1417_; -goto v_reusejp_1436_; +lean_ctor_set(v___x_1290_, 1, v___x_1308_); +lean_ctor_set(v___x_1290_, 0, v___x_1307_); +v___x_1310_ = v___x_1290_; +goto v_reusejp_1309_; } else { -lean_object* v_reuseFailAlloc_1438_; -v_reuseFailAlloc_1438_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1438_, 0, v___x_1434_); -lean_ctor_set(v_reuseFailAlloc_1438_, 1, v___x_1435_); -v___x_1437_ = v_reuseFailAlloc_1438_; -goto v_reusejp_1436_; +lean_object* v_reuseFailAlloc_1311_; +v_reuseFailAlloc_1311_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1311_, 0, v___x_1307_); +lean_ctor_set(v_reuseFailAlloc_1311_, 1, v___x_1308_); +v___x_1310_ = v_reuseFailAlloc_1311_; +goto v_reusejp_1309_; } -v_reusejp_1436_: +v_reusejp_1309_: { -return v___x_1437_; +return v___x_1310_; } } } } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24___redArg(lean_object* v_n_1440_, lean_object* v_k_1441_, lean_object* v_v_1442_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23___redArg(lean_object* v_n_1313_, lean_object* v_k_1314_, lean_object* v_v_1315_){ _start: { -lean_object* v___x_1443_; lean_object* v___x_1444_; -v___x_1443_ = lean_unsigned_to_nat(0u); -v___x_1444_ = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32___redArg(v_n_1440_, v___x_1443_, v_k_1441_, v_v_1442_); -return v___x_1444_; +lean_object* v___x_1316_; lean_object* v___x_1317_; +v___x_1316_ = lean_unsigned_to_nat(0u); +v___x_1317_ = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31___redArg(v_n_1313_, v___x_1316_, v_k_1314_, v_v_1315_); +return v___x_1317_; } } -static size_t _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0(void){ +static size_t _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0(void){ _start: { -size_t v___x_1445_; size_t v___x_1446_; size_t v___x_1447_; -v___x_1445_ = ((size_t)5ULL); -v___x_1446_ = ((size_t)1ULL); -v___x_1447_ = lean_usize_shift_left(v___x_1446_, v___x_1445_); -return v___x_1447_; +size_t v___x_1318_; size_t v___x_1319_; size_t v___x_1320_; +v___x_1318_ = ((size_t)5ULL); +v___x_1319_ = ((size_t)1ULL); +v___x_1320_ = lean_usize_shift_left(v___x_1319_, v___x_1318_); +return v___x_1320_; } } -static size_t _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1(void){ +static size_t _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1(void){ _start: { -size_t v___x_1448_; size_t v___x_1449_; size_t v___x_1450_; -v___x_1448_ = ((size_t)1ULL); -v___x_1449_ = lean_usize_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__0); -v___x_1450_ = lean_usize_sub(v___x_1449_, v___x_1448_); -return v___x_1450_; +size_t v___x_1321_; size_t v___x_1322_; size_t v___x_1323_; +v___x_1321_ = ((size_t)1ULL); +v___x_1322_ = lean_usize_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__0); +v___x_1323_ = lean_usize_sub(v___x_1322_, v___x_1321_); +return v___x_1323_; } } -static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2(void){ +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2(void){ _start: { -lean_object* v___x_1451_; -v___x_1451_ = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); -return v___x_1451_; +lean_object* v___x_1324_; +v___x_1324_ = l_Lean_PersistentHashMap_mkEmptyEntries(lean_box(0), lean_box(0)); +return v___x_1324_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(lean_object* v_x_1452_, size_t v_x_1453_, size_t v_x_1454_, lean_object* v_x_1455_, lean_object* v_x_1456_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(lean_object* v_x_1325_, size_t v_x_1326_, size_t v_x_1327_, lean_object* v_x_1328_, lean_object* v_x_1329_){ _start: { -if (lean_obj_tag(v_x_1452_) == 0) +if (lean_obj_tag(v_x_1325_) == 0) { -lean_object* v_es_1457_; size_t v___x_1458_; size_t v___x_1459_; size_t v___x_1460_; size_t v___x_1461_; lean_object* v_j_1462_; lean_object* v___x_1463_; uint8_t v___x_1464_; -v_es_1457_ = lean_ctor_get(v_x_1452_, 0); -v___x_1458_ = ((size_t)5ULL); -v___x_1459_ = ((size_t)1ULL); -v___x_1460_ = lean_usize_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__1); -v___x_1461_ = lean_usize_land(v_x_1453_, v___x_1460_); -v_j_1462_ = lean_usize_to_nat(v___x_1461_); -v___x_1463_ = lean_array_get_size(v_es_1457_); -v___x_1464_ = lean_nat_dec_lt(v_j_1462_, v___x_1463_); -if (v___x_1464_ == 0) +lean_object* v_es_1330_; size_t v___x_1331_; size_t v___x_1332_; size_t v___x_1333_; size_t v___x_1334_; lean_object* v_j_1335_; lean_object* v___x_1336_; uint8_t v___x_1337_; +v_es_1330_ = lean_ctor_get(v_x_1325_, 0); +v___x_1331_ = ((size_t)5ULL); +v___x_1332_ = ((size_t)1ULL); +v___x_1333_ = lean_usize_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__1); +v___x_1334_ = lean_usize_land(v_x_1326_, v___x_1333_); +v_j_1335_ = lean_usize_to_nat(v___x_1334_); +v___x_1336_ = lean_array_get_size(v_es_1330_); +v___x_1337_ = lean_nat_dec_lt(v_j_1335_, v___x_1336_); +if (v___x_1337_ == 0) { -lean_dec(v_j_1462_); -lean_dec(v_x_1456_); -lean_dec(v_x_1455_); -return v_x_1452_; +lean_dec(v_j_1335_); +lean_dec(v_x_1329_); +lean_dec(v_x_1328_); +return v_x_1325_; } else { -lean_object* v___x_1466_; uint8_t v_isShared_1467_; uint8_t v_isSharedCheck_1501_; -lean_inc_ref(v_es_1457_); -v_isSharedCheck_1501_ = !lean_is_exclusive(v_x_1452_); -if (v_isSharedCheck_1501_ == 0) +lean_object* v___x_1339_; uint8_t v_isShared_1340_; uint8_t v_isSharedCheck_1374_; +lean_inc_ref(v_es_1330_); +v_isSharedCheck_1374_ = !lean_is_exclusive(v_x_1325_); +if (v_isSharedCheck_1374_ == 0) { -lean_object* v_unused_1502_; -v_unused_1502_ = lean_ctor_get(v_x_1452_, 0); -lean_dec(v_unused_1502_); -v___x_1466_ = v_x_1452_; -v_isShared_1467_ = v_isSharedCheck_1501_; -goto v_resetjp_1465_; +lean_object* v_unused_1375_; +v_unused_1375_ = lean_ctor_get(v_x_1325_, 0); +lean_dec(v_unused_1375_); +v___x_1339_ = v_x_1325_; +v_isShared_1340_ = v_isSharedCheck_1374_; +goto v_resetjp_1338_; } else { -lean_dec(v_x_1452_); -v___x_1466_ = lean_box(0); -v_isShared_1467_ = v_isSharedCheck_1501_; -goto v_resetjp_1465_; +lean_dec(v_x_1325_); +v___x_1339_ = lean_box(0); +v_isShared_1340_ = v_isSharedCheck_1374_; +goto v_resetjp_1338_; } -v_resetjp_1465_: +v_resetjp_1338_: { -lean_object* v_v_1468_; lean_object* v___x_1469_; lean_object* v_xs_x27_1470_; lean_object* v___y_1472_; -v_v_1468_ = lean_array_fget(v_es_1457_, v_j_1462_); -v___x_1469_ = lean_box(0); -v_xs_x27_1470_ = lean_array_fset(v_es_1457_, v_j_1462_, v___x_1469_); -switch(lean_obj_tag(v_v_1468_)) +lean_object* v_v_1341_; lean_object* v___x_1342_; lean_object* v_xs_x27_1343_; lean_object* v___y_1345_; +v_v_1341_ = lean_array_fget(v_es_1330_, v_j_1335_); +v___x_1342_ = lean_box(0); +v_xs_x27_1343_ = lean_array_fset(v_es_1330_, v_j_1335_, v___x_1342_); +switch(lean_obj_tag(v_v_1341_)) { case 0: { -lean_object* v_key_1477_; lean_object* v_val_1478_; lean_object* v___x_1480_; uint8_t v_isShared_1481_; uint8_t v_isSharedCheck_1488_; -v_key_1477_ = lean_ctor_get(v_v_1468_, 0); -v_val_1478_ = lean_ctor_get(v_v_1468_, 1); -v_isSharedCheck_1488_ = !lean_is_exclusive(v_v_1468_); -if (v_isSharedCheck_1488_ == 0) +lean_object* v_key_1350_; lean_object* v_val_1351_; lean_object* v___x_1353_; uint8_t v_isShared_1354_; uint8_t v_isSharedCheck_1361_; +v_key_1350_ = lean_ctor_get(v_v_1341_, 0); +v_val_1351_ = lean_ctor_get(v_v_1341_, 1); +v_isSharedCheck_1361_ = !lean_is_exclusive(v_v_1341_); +if (v_isSharedCheck_1361_ == 0) { -v___x_1480_ = v_v_1468_; -v_isShared_1481_ = v_isSharedCheck_1488_; -goto v_resetjp_1479_; +v___x_1353_ = v_v_1341_; +v_isShared_1354_ = v_isSharedCheck_1361_; +goto v_resetjp_1352_; } else { -lean_inc(v_val_1478_); -lean_inc(v_key_1477_); -lean_dec(v_v_1468_); -v___x_1480_ = lean_box(0); -v_isShared_1481_ = v_isSharedCheck_1488_; -goto v_resetjp_1479_; +lean_inc(v_val_1351_); +lean_inc(v_key_1350_); +lean_dec(v_v_1341_); +v___x_1353_ = lean_box(0); +v_isShared_1354_ = v_isSharedCheck_1361_; +goto v_resetjp_1352_; } -v_resetjp_1479_: +v_resetjp_1352_: { -uint8_t v___x_1482_; -v___x_1482_ = l_Lean_instBEqMVarId_beq(v_x_1455_, v_key_1477_); -if (v___x_1482_ == 0) +uint8_t v___x_1355_; +v___x_1355_ = l_Lean_instBEqMVarId_beq(v_x_1328_, v_key_1350_); +if (v___x_1355_ == 0) { -lean_object* v___x_1483_; lean_object* v___x_1484_; -lean_del_object(v___x_1480_); -v___x_1483_ = l_Lean_PersistentHashMap_mkCollisionNode___redArg(v_key_1477_, v_val_1478_, v_x_1455_, v_x_1456_); -v___x_1484_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1484_, 0, v___x_1483_); -v___y_1472_ = v___x_1484_; -goto v___jp_1471_; +lean_object* v___x_1356_; lean_object* v___x_1357_; +lean_del_object(v___x_1353_); +v___x_1356_ = l_Lean_PersistentHashMap_mkCollisionNode___redArg(v_key_1350_, v_val_1351_, v_x_1328_, v_x_1329_); +v___x_1357_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1357_, 0, v___x_1356_); +v___y_1345_ = v___x_1357_; +goto v___jp_1344_; } else { -lean_object* v___x_1486_; -lean_dec(v_val_1478_); -lean_dec(v_key_1477_); -if (v_isShared_1481_ == 0) +lean_object* v___x_1359_; +lean_dec(v_val_1351_); +lean_dec(v_key_1350_); +if (v_isShared_1354_ == 0) { -lean_ctor_set(v___x_1480_, 1, v_x_1456_); -lean_ctor_set(v___x_1480_, 0, v_x_1455_); -v___x_1486_ = v___x_1480_; -goto v_reusejp_1485_; +lean_ctor_set(v___x_1353_, 1, v_x_1329_); +lean_ctor_set(v___x_1353_, 0, v_x_1328_); +v___x_1359_ = v___x_1353_; +goto v_reusejp_1358_; } else { -lean_object* v_reuseFailAlloc_1487_; -v_reuseFailAlloc_1487_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1487_, 0, v_x_1455_); -lean_ctor_set(v_reuseFailAlloc_1487_, 1, v_x_1456_); -v___x_1486_ = v_reuseFailAlloc_1487_; -goto v_reusejp_1485_; +lean_object* v_reuseFailAlloc_1360_; +v_reuseFailAlloc_1360_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1360_, 0, v_x_1328_); +lean_ctor_set(v_reuseFailAlloc_1360_, 1, v_x_1329_); +v___x_1359_ = v_reuseFailAlloc_1360_; +goto v_reusejp_1358_; } -v_reusejp_1485_: +v_reusejp_1358_: { -v___y_1472_ = v___x_1486_; -goto v___jp_1471_; +v___y_1345_ = v___x_1359_; +goto v___jp_1344_; } } } } case 1: { -lean_object* v_node_1489_; lean_object* v___x_1491_; uint8_t v_isShared_1492_; uint8_t v_isSharedCheck_1499_; -v_node_1489_ = lean_ctor_get(v_v_1468_, 0); -v_isSharedCheck_1499_ = !lean_is_exclusive(v_v_1468_); -if (v_isSharedCheck_1499_ == 0) +lean_object* v_node_1362_; lean_object* v___x_1364_; uint8_t v_isShared_1365_; uint8_t v_isSharedCheck_1372_; +v_node_1362_ = lean_ctor_get(v_v_1341_, 0); +v_isSharedCheck_1372_ = !lean_is_exclusive(v_v_1341_); +if (v_isSharedCheck_1372_ == 0) { -v___x_1491_ = v_v_1468_; -v_isShared_1492_ = v_isSharedCheck_1499_; -goto v_resetjp_1490_; +v___x_1364_ = v_v_1341_; +v_isShared_1365_ = v_isSharedCheck_1372_; +goto v_resetjp_1363_; } else { -lean_inc(v_node_1489_); -lean_dec(v_v_1468_); -v___x_1491_ = lean_box(0); -v_isShared_1492_ = v_isSharedCheck_1499_; -goto v_resetjp_1490_; +lean_inc(v_node_1362_); +lean_dec(v_v_1341_); +v___x_1364_ = lean_box(0); +v_isShared_1365_ = v_isSharedCheck_1372_; +goto v_resetjp_1363_; } -v_resetjp_1490_: +v_resetjp_1363_: { -size_t v___x_1493_; size_t v___x_1494_; lean_object* v___x_1495_; lean_object* v___x_1497_; -v___x_1493_ = lean_usize_shift_right(v_x_1453_, v___x_1458_); -v___x_1494_ = lean_usize_add(v_x_1454_, v___x_1459_); -v___x_1495_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(v_node_1489_, v___x_1493_, v___x_1494_, v_x_1455_, v_x_1456_); -if (v_isShared_1492_ == 0) +size_t v___x_1366_; size_t v___x_1367_; lean_object* v___x_1368_; lean_object* v___x_1370_; +v___x_1366_ = lean_usize_shift_right(v_x_1326_, v___x_1331_); +v___x_1367_ = lean_usize_add(v_x_1327_, v___x_1332_); +v___x_1368_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(v_node_1362_, v___x_1366_, v___x_1367_, v_x_1328_, v_x_1329_); +if (v_isShared_1365_ == 0) { -lean_ctor_set(v___x_1491_, 0, v___x_1495_); -v___x_1497_ = v___x_1491_; -goto v_reusejp_1496_; +lean_ctor_set(v___x_1364_, 0, v___x_1368_); +v___x_1370_ = v___x_1364_; +goto v_reusejp_1369_; } else { -lean_object* v_reuseFailAlloc_1498_; -v_reuseFailAlloc_1498_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1498_, 0, v___x_1495_); -v___x_1497_ = v_reuseFailAlloc_1498_; -goto v_reusejp_1496_; +lean_object* v_reuseFailAlloc_1371_; +v_reuseFailAlloc_1371_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1371_, 0, v___x_1368_); +v___x_1370_ = v_reuseFailAlloc_1371_; +goto v_reusejp_1369_; } -v_reusejp_1496_: +v_reusejp_1369_: { -v___y_1472_ = v___x_1497_; -goto v___jp_1471_; +v___y_1345_ = v___x_1370_; +goto v___jp_1344_; } } } default: { -lean_object* v___x_1500_; -v___x_1500_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1500_, 0, v_x_1455_); -lean_ctor_set(v___x_1500_, 1, v_x_1456_); -v___y_1472_ = v___x_1500_; -goto v___jp_1471_; +lean_object* v___x_1373_; +v___x_1373_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1373_, 0, v_x_1328_); +lean_ctor_set(v___x_1373_, 1, v_x_1329_); +v___y_1345_ = v___x_1373_; +goto v___jp_1344_; } } -v___jp_1471_: +v___jp_1344_: { -lean_object* v___x_1473_; lean_object* v___x_1475_; -v___x_1473_ = lean_array_fset(v_xs_x27_1470_, v_j_1462_, v___y_1472_); -lean_dec(v_j_1462_); -if (v_isShared_1467_ == 0) +lean_object* v___x_1346_; lean_object* v___x_1348_; +v___x_1346_ = lean_array_fset(v_xs_x27_1343_, v_j_1335_, v___y_1345_); +lean_dec(v_j_1335_); +if (v_isShared_1340_ == 0) { -lean_ctor_set(v___x_1466_, 0, v___x_1473_); -v___x_1475_ = v___x_1466_; -goto v_reusejp_1474_; +lean_ctor_set(v___x_1339_, 0, v___x_1346_); +v___x_1348_ = v___x_1339_; +goto v_reusejp_1347_; } else { -lean_object* v_reuseFailAlloc_1476_; -v_reuseFailAlloc_1476_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1476_, 0, v___x_1473_); -v___x_1475_ = v_reuseFailAlloc_1476_; -goto v_reusejp_1474_; +lean_object* v_reuseFailAlloc_1349_; +v_reuseFailAlloc_1349_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1349_, 0, v___x_1346_); +v___x_1348_ = v_reuseFailAlloc_1349_; +goto v_reusejp_1347_; } -v_reusejp_1474_: +v_reusejp_1347_: { -return v___x_1475_; +return v___x_1348_; } } } @@ -4570,83 +4201,83 @@ return v___x_1475_; } else { -lean_object* v_ks_1503_; lean_object* v_vs_1504_; lean_object* v___x_1506_; uint8_t v_isShared_1507_; uint8_t v_isSharedCheck_1524_; -v_ks_1503_ = lean_ctor_get(v_x_1452_, 0); -v_vs_1504_ = lean_ctor_get(v_x_1452_, 1); -v_isSharedCheck_1524_ = !lean_is_exclusive(v_x_1452_); -if (v_isSharedCheck_1524_ == 0) +lean_object* v_ks_1376_; lean_object* v_vs_1377_; lean_object* v___x_1379_; uint8_t v_isShared_1380_; uint8_t v_isSharedCheck_1397_; +v_ks_1376_ = lean_ctor_get(v_x_1325_, 0); +v_vs_1377_ = lean_ctor_get(v_x_1325_, 1); +v_isSharedCheck_1397_ = !lean_is_exclusive(v_x_1325_); +if (v_isSharedCheck_1397_ == 0) { -v___x_1506_ = v_x_1452_; -v_isShared_1507_ = v_isSharedCheck_1524_; -goto v_resetjp_1505_; +v___x_1379_ = v_x_1325_; +v_isShared_1380_ = v_isSharedCheck_1397_; +goto v_resetjp_1378_; } else { -lean_inc(v_vs_1504_); -lean_inc(v_ks_1503_); -lean_dec(v_x_1452_); -v___x_1506_ = lean_box(0); -v_isShared_1507_ = v_isSharedCheck_1524_; -goto v_resetjp_1505_; +lean_inc(v_vs_1377_); +lean_inc(v_ks_1376_); +lean_dec(v_x_1325_); +v___x_1379_ = lean_box(0); +v_isShared_1380_ = v_isSharedCheck_1397_; +goto v_resetjp_1378_; } -v_resetjp_1505_: +v_resetjp_1378_: { -lean_object* v___x_1509_; -if (v_isShared_1507_ == 0) +lean_object* v___x_1382_; +if (v_isShared_1380_ == 0) { -v___x_1509_ = v___x_1506_; -goto v_reusejp_1508_; +v___x_1382_ = v___x_1379_; +goto v_reusejp_1381_; } else { -lean_object* v_reuseFailAlloc_1523_; -v_reuseFailAlloc_1523_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1523_, 0, v_ks_1503_); -lean_ctor_set(v_reuseFailAlloc_1523_, 1, v_vs_1504_); -v___x_1509_ = v_reuseFailAlloc_1523_; -goto v_reusejp_1508_; +lean_object* v_reuseFailAlloc_1396_; +v_reuseFailAlloc_1396_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1396_, 0, v_ks_1376_); +lean_ctor_set(v_reuseFailAlloc_1396_, 1, v_vs_1377_); +v___x_1382_ = v_reuseFailAlloc_1396_; +goto v_reusejp_1381_; } -v_reusejp_1508_: +v_reusejp_1381_: { -lean_object* v_newNode_1510_; uint8_t v___y_1512_; size_t v___x_1518_; uint8_t v___x_1519_; -v_newNode_1510_ = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24___redArg(v___x_1509_, v_x_1455_, v_x_1456_); -v___x_1518_ = ((size_t)7ULL); -v___x_1519_ = lean_usize_dec_le(v___x_1518_, v_x_1454_); -if (v___x_1519_ == 0) +lean_object* v_newNode_1383_; uint8_t v___y_1385_; size_t v___x_1391_; uint8_t v___x_1392_; +v_newNode_1383_ = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23___redArg(v___x_1382_, v_x_1328_, v_x_1329_); +v___x_1391_ = ((size_t)7ULL); +v___x_1392_ = lean_usize_dec_le(v___x_1391_, v_x_1327_); +if (v___x_1392_ == 0) { -lean_object* v___x_1520_; lean_object* v___x_1521_; uint8_t v___x_1522_; -v___x_1520_ = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(v_newNode_1510_); -v___x_1521_ = lean_unsigned_to_nat(4u); -v___x_1522_ = lean_nat_dec_lt(v___x_1520_, v___x_1521_); -lean_dec(v___x_1520_); -v___y_1512_ = v___x_1522_; -goto v___jp_1511_; +lean_object* v___x_1393_; lean_object* v___x_1394_; uint8_t v___x_1395_; +v___x_1393_ = l_Lean_PersistentHashMap_getCollisionNodeSize___redArg(v_newNode_1383_); +v___x_1394_ = lean_unsigned_to_nat(4u); +v___x_1395_ = lean_nat_dec_lt(v___x_1393_, v___x_1394_); +lean_dec(v___x_1393_); +v___y_1385_ = v___x_1395_; +goto v___jp_1384_; } else { -v___y_1512_ = v___x_1519_; -goto v___jp_1511_; +v___y_1385_ = v___x_1392_; +goto v___jp_1384_; } -v___jp_1511_: +v___jp_1384_: { -if (v___y_1512_ == 0) +if (v___y_1385_ == 0) { -lean_object* v_ks_1513_; lean_object* v_vs_1514_; lean_object* v___x_1515_; lean_object* v___x_1516_; lean_object* v___x_1517_; -v_ks_1513_ = lean_ctor_get(v_newNode_1510_, 0); -lean_inc_ref(v_ks_1513_); -v_vs_1514_ = lean_ctor_get(v_newNode_1510_, 1); -lean_inc_ref(v_vs_1514_); -lean_dec_ref(v_newNode_1510_); -v___x_1515_ = lean_unsigned_to_nat(0u); -v___x_1516_ = lean_obj_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___closed__2); -v___x_1517_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg(v_x_1454_, v_ks_1513_, v_vs_1514_, v___x_1515_, v___x_1516_); -lean_dec_ref(v_vs_1514_); -lean_dec_ref(v_ks_1513_); -return v___x_1517_; +lean_object* v_ks_1386_; lean_object* v_vs_1387_; lean_object* v___x_1388_; lean_object* v___x_1389_; lean_object* v___x_1390_; +v_ks_1386_ = lean_ctor_get(v_newNode_1383_, 0); +lean_inc_ref(v_ks_1386_); +v_vs_1387_ = lean_ctor_get(v_newNode_1383_, 1); +lean_inc_ref(v_vs_1387_); +lean_dec_ref(v_newNode_1383_); +v___x_1388_ = lean_unsigned_to_nat(0u); +v___x_1389_ = lean_obj_once(&l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2, &l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2_once, _init_l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___closed__2); +v___x_1390_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg(v_x_1327_, v_ks_1386_, v_vs_1387_, v___x_1388_, v___x_1389_); +lean_dec_ref(v_vs_1387_); +lean_dec_ref(v_ks_1386_); +return v___x_1390_; } else { -return v_newNode_1510_; +return v_newNode_1383_; } } } @@ -4654,942 +4285,1445 @@ return v_newNode_1510_; } } } -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg(size_t v_depth_1525_, lean_object* v_keys_1526_, lean_object* v_vals_1527_, lean_object* v_i_1528_, lean_object* v_entries_1529_){ +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg(size_t v_depth_1398_, lean_object* v_keys_1399_, lean_object* v_vals_1400_, lean_object* v_i_1401_, lean_object* v_entries_1402_){ _start: { -lean_object* v___x_1530_; uint8_t v___x_1531_; -v___x_1530_ = lean_array_get_size(v_keys_1526_); -v___x_1531_ = lean_nat_dec_lt(v_i_1528_, v___x_1530_); -if (v___x_1531_ == 0) +lean_object* v___x_1403_; uint8_t v___x_1404_; +v___x_1403_ = lean_array_get_size(v_keys_1399_); +v___x_1404_ = lean_nat_dec_lt(v_i_1401_, v___x_1403_); +if (v___x_1404_ == 0) { -lean_dec(v_i_1528_); -return v_entries_1529_; +lean_dec(v_i_1401_); +return v_entries_1402_; } else { -lean_object* v_k_1532_; lean_object* v_v_1533_; uint64_t v___x_1534_; size_t v_h_1535_; size_t v___x_1536_; lean_object* v___x_1537_; size_t v___x_1538_; size_t v___x_1539_; size_t v___x_1540_; size_t v_h_1541_; lean_object* v___x_1542_; lean_object* v___x_1543_; -v_k_1532_ = lean_array_fget_borrowed(v_keys_1526_, v_i_1528_); -v_v_1533_ = lean_array_fget_borrowed(v_vals_1527_, v_i_1528_); -v___x_1534_ = l_Lean_instHashableMVarId_hash(v_k_1532_); -v_h_1535_ = lean_uint64_to_usize(v___x_1534_); -v___x_1536_ = ((size_t)5ULL); -v___x_1537_ = lean_unsigned_to_nat(1u); -v___x_1538_ = ((size_t)1ULL); -v___x_1539_ = lean_usize_sub(v_depth_1525_, v___x_1538_); -v___x_1540_ = lean_usize_mul(v___x_1536_, v___x_1539_); -v_h_1541_ = lean_usize_shift_right(v_h_1535_, v___x_1540_); -v___x_1542_ = lean_nat_add(v_i_1528_, v___x_1537_); -lean_dec(v_i_1528_); -lean_inc(v_v_1533_); -lean_inc(v_k_1532_); -v___x_1543_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(v_entries_1529_, v_h_1541_, v_depth_1525_, v_k_1532_, v_v_1533_); -v_i_1528_ = v___x_1542_; -v_entries_1529_ = v___x_1543_; +lean_object* v_k_1405_; lean_object* v_v_1406_; uint64_t v___x_1407_; size_t v_h_1408_; size_t v___x_1409_; lean_object* v___x_1410_; size_t v___x_1411_; size_t v___x_1412_; size_t v___x_1413_; size_t v_h_1414_; lean_object* v___x_1415_; lean_object* v___x_1416_; +v_k_1405_ = lean_array_fget_borrowed(v_keys_1399_, v_i_1401_); +v_v_1406_ = lean_array_fget_borrowed(v_vals_1400_, v_i_1401_); +v___x_1407_ = l_Lean_instHashableMVarId_hash(v_k_1405_); +v_h_1408_ = lean_uint64_to_usize(v___x_1407_); +v___x_1409_ = ((size_t)5ULL); +v___x_1410_ = lean_unsigned_to_nat(1u); +v___x_1411_ = ((size_t)1ULL); +v___x_1412_ = lean_usize_sub(v_depth_1398_, v___x_1411_); +v___x_1413_ = lean_usize_mul(v___x_1409_, v___x_1412_); +v_h_1414_ = lean_usize_shift_right(v_h_1408_, v___x_1413_); +v___x_1415_ = lean_nat_add(v_i_1401_, v___x_1410_); +lean_dec(v_i_1401_); +lean_inc(v_v_1406_); +lean_inc(v_k_1405_); +v___x_1416_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(v_entries_1402_, v_h_1414_, v_depth_1398_, v_k_1405_, v_v_1406_); +v_i_1401_ = v___x_1415_; +v_entries_1402_ = v___x_1416_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg___boxed(lean_object* v_depth_1545_, lean_object* v_keys_1546_, lean_object* v_vals_1547_, lean_object* v_i_1548_, lean_object* v_entries_1549_){ +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg___boxed(lean_object* v_depth_1418_, lean_object* v_keys_1419_, lean_object* v_vals_1420_, lean_object* v_i_1421_, lean_object* v_entries_1422_){ _start: { -size_t v_depth_boxed_1550_; lean_object* v_res_1551_; -v_depth_boxed_1550_ = lean_unbox_usize(v_depth_1545_); -lean_dec(v_depth_1545_); -v_res_1551_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg(v_depth_boxed_1550_, v_keys_1546_, v_vals_1547_, v_i_1548_, v_entries_1549_); -lean_dec_ref(v_vals_1547_); -lean_dec_ref(v_keys_1546_); +size_t v_depth_boxed_1423_; lean_object* v_res_1424_; +v_depth_boxed_1423_ = lean_unbox_usize(v_depth_1418_); +lean_dec(v_depth_1418_); +v_res_1424_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg(v_depth_boxed_1423_, v_keys_1419_, v_vals_1420_, v_i_1421_, v_entries_1422_); +lean_dec_ref(v_vals_1420_); +lean_dec_ref(v_keys_1419_); +return v_res_1424_; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg___boxed(lean_object* v_x_1425_, lean_object* v_x_1426_, lean_object* v_x_1427_, lean_object* v_x_1428_, lean_object* v_x_1429_){ +_start: +{ +size_t v_x_158828__boxed_1430_; size_t v_x_158829__boxed_1431_; lean_object* v_res_1432_; +v_x_158828__boxed_1430_ = lean_unbox_usize(v_x_1426_); +lean_dec(v_x_1426_); +v_x_158829__boxed_1431_ = lean_unbox_usize(v_x_1427_); +lean_dec(v_x_1427_); +v_res_1432_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(v_x_1425_, v_x_158828__boxed_1430_, v_x_158829__boxed_1431_, v_x_1428_, v_x_1429_); +return v_res_1432_; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7___redArg(lean_object* v_x_1433_, lean_object* v_x_1434_, lean_object* v_x_1435_){ +_start: +{ +uint64_t v___x_1436_; size_t v___x_1437_; size_t v___x_1438_; lean_object* v___x_1439_; +v___x_1436_ = l_Lean_instHashableMVarId_hash(v_x_1434_); +v___x_1437_ = lean_uint64_to_usize(v___x_1436_); +v___x_1438_ = ((size_t)1ULL); +v___x_1439_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(v_x_1433_, v___x_1437_, v___x_1438_, v_x_1434_, v_x_1435_); +return v___x_1439_; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(lean_object* v_mvarId_1440_, lean_object* v_val_1441_, lean_object* v___y_1442_){ +_start: +{ +lean_object* v___x_1444_; lean_object* v_mctx_1445_; lean_object* v_cache_1446_; lean_object* v_zetaDeltaFVarIds_1447_; lean_object* v_postponed_1448_; lean_object* v_diag_1449_; lean_object* v___x_1451_; uint8_t v_isShared_1452_; uint8_t v_isSharedCheck_1477_; +v___x_1444_ = lean_st_ref_take(v___y_1442_); +v_mctx_1445_ = lean_ctor_get(v___x_1444_, 0); +v_cache_1446_ = lean_ctor_get(v___x_1444_, 1); +v_zetaDeltaFVarIds_1447_ = lean_ctor_get(v___x_1444_, 2); +v_postponed_1448_ = lean_ctor_get(v___x_1444_, 3); +v_diag_1449_ = lean_ctor_get(v___x_1444_, 4); +v_isSharedCheck_1477_ = !lean_is_exclusive(v___x_1444_); +if (v_isSharedCheck_1477_ == 0) +{ +v___x_1451_ = v___x_1444_; +v_isShared_1452_ = v_isSharedCheck_1477_; +goto v_resetjp_1450_; +} +else +{ +lean_inc(v_diag_1449_); +lean_inc(v_postponed_1448_); +lean_inc(v_zetaDeltaFVarIds_1447_); +lean_inc(v_cache_1446_); +lean_inc(v_mctx_1445_); +lean_dec(v___x_1444_); +v___x_1451_ = lean_box(0); +v_isShared_1452_ = v_isSharedCheck_1477_; +goto v_resetjp_1450_; +} +v_resetjp_1450_: +{ +lean_object* v_depth_1453_; lean_object* v_levelAssignDepth_1454_; lean_object* v_lmvarCounter_1455_; lean_object* v_mvarCounter_1456_; lean_object* v_lDecls_1457_; lean_object* v_decls_1458_; lean_object* v_userNames_1459_; lean_object* v_lAssignment_1460_; lean_object* v_eAssignment_1461_; lean_object* v_dAssignment_1462_; lean_object* v___x_1464_; uint8_t v_isShared_1465_; uint8_t v_isSharedCheck_1476_; +v_depth_1453_ = lean_ctor_get(v_mctx_1445_, 0); +v_levelAssignDepth_1454_ = lean_ctor_get(v_mctx_1445_, 1); +v_lmvarCounter_1455_ = lean_ctor_get(v_mctx_1445_, 2); +v_mvarCounter_1456_ = lean_ctor_get(v_mctx_1445_, 3); +v_lDecls_1457_ = lean_ctor_get(v_mctx_1445_, 4); +v_decls_1458_ = lean_ctor_get(v_mctx_1445_, 5); +v_userNames_1459_ = lean_ctor_get(v_mctx_1445_, 6); +v_lAssignment_1460_ = lean_ctor_get(v_mctx_1445_, 7); +v_eAssignment_1461_ = lean_ctor_get(v_mctx_1445_, 8); +v_dAssignment_1462_ = lean_ctor_get(v_mctx_1445_, 9); +v_isSharedCheck_1476_ = !lean_is_exclusive(v_mctx_1445_); +if (v_isSharedCheck_1476_ == 0) +{ +v___x_1464_ = v_mctx_1445_; +v_isShared_1465_ = v_isSharedCheck_1476_; +goto v_resetjp_1463_; +} +else +{ +lean_inc(v_dAssignment_1462_); +lean_inc(v_eAssignment_1461_); +lean_inc(v_lAssignment_1460_); +lean_inc(v_userNames_1459_); +lean_inc(v_decls_1458_); +lean_inc(v_lDecls_1457_); +lean_inc(v_mvarCounter_1456_); +lean_inc(v_lmvarCounter_1455_); +lean_inc(v_levelAssignDepth_1454_); +lean_inc(v_depth_1453_); +lean_dec(v_mctx_1445_); +v___x_1464_ = lean_box(0); +v_isShared_1465_ = v_isSharedCheck_1476_; +goto v_resetjp_1463_; +} +v_resetjp_1463_: +{ +lean_object* v___x_1466_; lean_object* v___x_1468_; +v___x_1466_ = l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7___redArg(v_eAssignment_1461_, v_mvarId_1440_, v_val_1441_); +if (v_isShared_1465_ == 0) +{ +lean_ctor_set(v___x_1464_, 8, v___x_1466_); +v___x_1468_ = v___x_1464_; +goto v_reusejp_1467_; +} +else +{ +lean_object* v_reuseFailAlloc_1475_; +v_reuseFailAlloc_1475_ = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(v_reuseFailAlloc_1475_, 0, v_depth_1453_); +lean_ctor_set(v_reuseFailAlloc_1475_, 1, v_levelAssignDepth_1454_); +lean_ctor_set(v_reuseFailAlloc_1475_, 2, v_lmvarCounter_1455_); +lean_ctor_set(v_reuseFailAlloc_1475_, 3, v_mvarCounter_1456_); +lean_ctor_set(v_reuseFailAlloc_1475_, 4, v_lDecls_1457_); +lean_ctor_set(v_reuseFailAlloc_1475_, 5, v_decls_1458_); +lean_ctor_set(v_reuseFailAlloc_1475_, 6, v_userNames_1459_); +lean_ctor_set(v_reuseFailAlloc_1475_, 7, v_lAssignment_1460_); +lean_ctor_set(v_reuseFailAlloc_1475_, 8, v___x_1466_); +lean_ctor_set(v_reuseFailAlloc_1475_, 9, v_dAssignment_1462_); +v___x_1468_ = v_reuseFailAlloc_1475_; +goto v_reusejp_1467_; +} +v_reusejp_1467_: +{ +lean_object* v___x_1470_; +if (v_isShared_1452_ == 0) +{ +lean_ctor_set(v___x_1451_, 0, v___x_1468_); +v___x_1470_ = v___x_1451_; +goto v_reusejp_1469_; +} +else +{ +lean_object* v_reuseFailAlloc_1474_; +v_reuseFailAlloc_1474_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_1474_, 0, v___x_1468_); +lean_ctor_set(v_reuseFailAlloc_1474_, 1, v_cache_1446_); +lean_ctor_set(v_reuseFailAlloc_1474_, 2, v_zetaDeltaFVarIds_1447_); +lean_ctor_set(v_reuseFailAlloc_1474_, 3, v_postponed_1448_); +lean_ctor_set(v_reuseFailAlloc_1474_, 4, v_diag_1449_); +v___x_1470_ = v_reuseFailAlloc_1474_; +goto v_reusejp_1469_; +} +v_reusejp_1469_: +{ +lean_object* v___x_1471_; lean_object* v___x_1472_; lean_object* v___x_1473_; +v___x_1471_ = lean_st_ref_set(v___y_1442_, v___x_1470_); +v___x_1472_ = lean_box(0); +v___x_1473_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1473_, 0, v___x_1472_); +return v___x_1473_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg___boxed(lean_object* v_mvarId_1478_, lean_object* v_val_1479_, lean_object* v___y_1480_, lean_object* v___y_1481_){ +_start: +{ +lean_object* v_res_1482_; +v_res_1482_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v_mvarId_1478_, v_val_1479_, v___y_1480_); +lean_dec(v___y_1480_); +return v_res_1482_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(lean_object* v_a_1483_, lean_object* v___x_1484_, uint8_t v___x_1485_, lean_object* v___x_1486_, lean_object* v___f_1487_, lean_object* v_____r_1488_, lean_object* v___y_1489_, lean_object* v___y_1490_, lean_object* v___y_1491_, lean_object* v___y_1492_){ +_start: +{ +lean_object* v___x_1494_; lean_object* v___x_1495_; +v___x_1494_ = lean_box(0); +v___x_1495_ = l_Lean_Meta_mkAuxTheorem(v_a_1483_, v___x_1484_, v___x_1485_, v___x_1494_, v___x_1485_, v___y_1489_, v___y_1490_, v___y_1491_, v___y_1492_); +if (lean_obj_tag(v___x_1495_) == 0) +{ +lean_object* v_a_1496_; lean_object* v___x_1497_; +v_a_1496_ = lean_ctor_get(v___x_1495_, 0); +lean_inc(v_a_1496_); +lean_dec_ref(v___x_1495_); +v___x_1497_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1486_, v_a_1496_, v___y_1490_); +if (lean_obj_tag(v___x_1497_) == 0) +{ +lean_object* v_a_1498_; lean_object* v___x_1499_; +v_a_1498_ = lean_ctor_get(v___x_1497_, 0); +lean_inc(v_a_1498_); +lean_dec_ref(v___x_1497_); +lean_inc(v___y_1492_); +lean_inc_ref(v___y_1491_); +lean_inc(v___y_1490_); +lean_inc_ref(v___y_1489_); +v___x_1499_ = lean_apply_6(v___f_1487_, v_a_1498_, v___y_1489_, v___y_1490_, v___y_1491_, v___y_1492_, lean_box(0)); +return v___x_1499_; +} +else +{ +lean_object* v_a_1500_; lean_object* v___x_1502_; uint8_t v_isShared_1503_; uint8_t v_isSharedCheck_1507_; +lean_dec_ref(v___f_1487_); +v_a_1500_ = lean_ctor_get(v___x_1497_, 0); +v_isSharedCheck_1507_ = !lean_is_exclusive(v___x_1497_); +if (v_isSharedCheck_1507_ == 0) +{ +v___x_1502_ = v___x_1497_; +v_isShared_1503_ = v_isSharedCheck_1507_; +goto v_resetjp_1501_; +} +else +{ +lean_inc(v_a_1500_); +lean_dec(v___x_1497_); +v___x_1502_ = lean_box(0); +v_isShared_1503_ = v_isSharedCheck_1507_; +goto v_resetjp_1501_; +} +v_resetjp_1501_: +{ +lean_object* v___x_1505_; +if (v_isShared_1503_ == 0) +{ +v___x_1505_ = v___x_1502_; +goto v_reusejp_1504_; +} +else +{ +lean_object* v_reuseFailAlloc_1506_; +v_reuseFailAlloc_1506_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1506_, 0, v_a_1500_); +v___x_1505_ = v_reuseFailAlloc_1506_; +goto v_reusejp_1504_; +} +v_reusejp_1504_: +{ +return v___x_1505_; +} +} +} +} +else +{ +lean_object* v_a_1508_; lean_object* v___x_1510_; uint8_t v_isShared_1511_; uint8_t v_isSharedCheck_1515_; +lean_dec_ref(v___f_1487_); +lean_dec(v___x_1486_); +v_a_1508_ = lean_ctor_get(v___x_1495_, 0); +v_isSharedCheck_1515_ = !lean_is_exclusive(v___x_1495_); +if (v_isSharedCheck_1515_ == 0) +{ +v___x_1510_ = v___x_1495_; +v_isShared_1511_ = v_isSharedCheck_1515_; +goto v_resetjp_1509_; +} +else +{ +lean_inc(v_a_1508_); +lean_dec(v___x_1495_); +v___x_1510_ = lean_box(0); +v_isShared_1511_ = v_isSharedCheck_1515_; +goto v_resetjp_1509_; +} +v_resetjp_1509_: +{ +lean_object* v___x_1513_; +if (v_isShared_1511_ == 0) +{ +v___x_1513_ = v___x_1510_; +goto v_reusejp_1512_; +} +else +{ +lean_object* v_reuseFailAlloc_1514_; +v_reuseFailAlloc_1514_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1514_, 0, v_a_1508_); +v___x_1513_ = v_reuseFailAlloc_1514_; +goto v_reusejp_1512_; +} +v_reusejp_1512_: +{ +return v___x_1513_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7___boxed(lean_object* v_a_1516_, lean_object* v___x_1517_, lean_object* v___x_1518_, lean_object* v___x_1519_, lean_object* v___f_1520_, lean_object* v_____r_1521_, lean_object* v___y_1522_, lean_object* v___y_1523_, lean_object* v___y_1524_, lean_object* v___y_1525_, lean_object* v___y_1526_){ +_start: +{ +uint8_t v___x_159049__boxed_1527_; lean_object* v_res_1528_; +v___x_159049__boxed_1527_ = lean_unbox(v___x_1518_); +v_res_1528_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_1516_, v___x_1517_, v___x_159049__boxed_1527_, v___x_1519_, v___f_1520_, v_____r_1521_, v___y_1522_, v___y_1523_, v___y_1524_, v___y_1525_); +lean_dec(v___y_1525_); +lean_dec_ref(v___y_1524_); +lean_dec(v___y_1523_); +lean_dec_ref(v___y_1522_); +return v_res_1528_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(lean_object* v_cls_1529_, lean_object* v___y_1530_, lean_object* v___y_1531_, lean_object* v___y_1532_, lean_object* v___y_1533_){ +_start: +{ +lean_object* v_options_1535_; uint8_t v_hasTrace_1536_; +v_options_1535_ = lean_ctor_get(v___y_1532_, 2); +v_hasTrace_1536_ = lean_ctor_get_uint8(v_options_1535_, sizeof(void*)*1); +if (v_hasTrace_1536_ == 0) +{ +lean_object* v___x_1537_; lean_object* v___x_1538_; +lean_dec(v_cls_1529_); +v___x_1537_ = lean_box(v_hasTrace_1536_); +v___x_1538_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1538_, 0, v___x_1537_); +return v___x_1538_; +} +else +{ +lean_object* v_inheritedTraceOptions_1539_; lean_object* v___x_1540_; lean_object* v___x_1541_; uint8_t v___x_1542_; lean_object* v___x_1543_; lean_object* v___x_1544_; +v_inheritedTraceOptions_1539_ = lean_ctor_get(v___y_1532_, 13); +v___x_1540_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); +v___x_1541_ = l_Lean_Name_append(v___x_1540_, v_cls_1529_); +v___x_1542_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_1539_, v_options_1535_, v___x_1541_); +lean_dec(v___x_1541_); +v___x_1543_ = lean_box(v___x_1542_); +v___x_1544_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1544_, 0, v___x_1543_); +return v___x_1544_; +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0___boxed(lean_object* v_cls_1545_, lean_object* v___y_1546_, lean_object* v___y_1547_, lean_object* v___y_1548_, lean_object* v___y_1549_, lean_object* v___y_1550_){ +_start: +{ +lean_object* v_res_1551_; +v_res_1551_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_1545_, v___y_1546_, v___y_1547_, v___y_1548_, v___y_1549_); +lean_dec(v___y_1549_); +lean_dec_ref(v___y_1548_); +lean_dec(v___y_1547_); +lean_dec_ref(v___y_1546_); return v_res_1551_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg___boxed(lean_object* v_x_1552_, lean_object* v_x_1553_, lean_object* v_x_1554_, lean_object* v_x_1555_, lean_object* v_x_1556_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(lean_object* v_snd_1552_, lean_object* v_a_1553_, lean_object* v___x_1554_, lean_object* v_____r_1555_, lean_object* v___y_1556_, lean_object* v___y_1557_, lean_object* v___y_1558_, lean_object* v___y_1559_){ _start: { -size_t v_x_160244__boxed_1557_; size_t v_x_160245__boxed_1558_; lean_object* v_res_1559_; -v_x_160244__boxed_1557_ = lean_unbox_usize(v_x_1553_); -lean_dec(v_x_1553_); -v_x_160245__boxed_1558_ = lean_unbox_usize(v_x_1554_); -lean_dec(v_x_1554_); -v_res_1559_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(v_x_1552_, v_x_160244__boxed_1557_, v_x_160245__boxed_1558_, v_x_1555_, v_x_1556_); -return v_res_1559_; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8___redArg(lean_object* v_x_1560_, lean_object* v_x_1561_, lean_object* v_x_1562_){ -_start: +lean_object* v_fieldName_1561_; lean_object* v___x_1562_; +v_fieldName_1561_ = lean_ctor_get(v_snd_1552_, 0); +lean_inc(v_fieldName_1561_); +lean_dec_ref(v_snd_1552_); +v___x_1562_ = l_Lean_Meta_mkProjection(v_a_1553_, v_fieldName_1561_, v___y_1556_, v___y_1557_, v___y_1558_, v___y_1559_); +if (lean_obj_tag(v___x_1562_) == 0) { -uint64_t v___x_1563_; size_t v___x_1564_; size_t v___x_1565_; lean_object* v___x_1566_; -v___x_1563_ = l_Lean_instHashableMVarId_hash(v_x_1561_); -v___x_1564_ = lean_uint64_to_usize(v___x_1563_); -v___x_1565_ = ((size_t)1ULL); -v___x_1566_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(v_x_1560_, v___x_1564_, v___x_1565_, v_x_1561_, v_x_1562_); -return v___x_1566_; -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(lean_object* v_mvarId_1567_, lean_object* v_val_1568_, lean_object* v___y_1569_){ -_start: +lean_object* v_a_1563_; lean_object* v___x_1564_; +v_a_1563_ = lean_ctor_get(v___x_1562_, 0); +lean_inc(v_a_1563_); +lean_dec_ref(v___x_1562_); +v___x_1564_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1554_, v_a_1563_, v___y_1557_); +if (lean_obj_tag(v___x_1564_) == 0) { -lean_object* v___x_1571_; lean_object* v_mctx_1572_; lean_object* v_cache_1573_; lean_object* v_zetaDeltaFVarIds_1574_; lean_object* v_postponed_1575_; lean_object* v_diag_1576_; lean_object* v___x_1578_; uint8_t v_isShared_1579_; uint8_t v_isSharedCheck_1604_; -v___x_1571_ = lean_st_ref_take(v___y_1569_); -v_mctx_1572_ = lean_ctor_get(v___x_1571_, 0); -v_cache_1573_ = lean_ctor_get(v___x_1571_, 1); -v_zetaDeltaFVarIds_1574_ = lean_ctor_get(v___x_1571_, 2); -v_postponed_1575_ = lean_ctor_get(v___x_1571_, 3); -v_diag_1576_ = lean_ctor_get(v___x_1571_, 4); -v_isSharedCheck_1604_ = !lean_is_exclusive(v___x_1571_); -if (v_isSharedCheck_1604_ == 0) +lean_object* v___x_1566_; uint8_t v_isShared_1567_; uint8_t v_isSharedCheck_1572_; +v_isSharedCheck_1572_ = !lean_is_exclusive(v___x_1564_); +if (v_isSharedCheck_1572_ == 0) { -v___x_1578_ = v___x_1571_; -v_isShared_1579_ = v_isSharedCheck_1604_; -goto v_resetjp_1577_; +lean_object* v_unused_1573_; +v_unused_1573_ = lean_ctor_get(v___x_1564_, 0); +lean_dec(v_unused_1573_); +v___x_1566_ = v___x_1564_; +v_isShared_1567_ = v_isSharedCheck_1572_; +goto v_resetjp_1565_; } else { -lean_inc(v_diag_1576_); -lean_inc(v_postponed_1575_); -lean_inc(v_zetaDeltaFVarIds_1574_); -lean_inc(v_cache_1573_); -lean_inc(v_mctx_1572_); -lean_dec(v___x_1571_); -v___x_1578_ = lean_box(0); -v_isShared_1579_ = v_isSharedCheck_1604_; -goto v_resetjp_1577_; +lean_dec(v___x_1564_); +v___x_1566_ = lean_box(0); +v_isShared_1567_ = v_isSharedCheck_1572_; +goto v_resetjp_1565_; } -v_resetjp_1577_: +v_resetjp_1565_: { -lean_object* v_depth_1580_; lean_object* v_levelAssignDepth_1581_; lean_object* v_lmvarCounter_1582_; lean_object* v_mvarCounter_1583_; lean_object* v_lDecls_1584_; lean_object* v_decls_1585_; lean_object* v_userNames_1586_; lean_object* v_lAssignment_1587_; lean_object* v_eAssignment_1588_; lean_object* v_dAssignment_1589_; lean_object* v___x_1591_; uint8_t v_isShared_1592_; uint8_t v_isSharedCheck_1603_; -v_depth_1580_ = lean_ctor_get(v_mctx_1572_, 0); -v_levelAssignDepth_1581_ = lean_ctor_get(v_mctx_1572_, 1); -v_lmvarCounter_1582_ = lean_ctor_get(v_mctx_1572_, 2); -v_mvarCounter_1583_ = lean_ctor_get(v_mctx_1572_, 3); -v_lDecls_1584_ = lean_ctor_get(v_mctx_1572_, 4); -v_decls_1585_ = lean_ctor_get(v_mctx_1572_, 5); -v_userNames_1586_ = lean_ctor_get(v_mctx_1572_, 6); -v_lAssignment_1587_ = lean_ctor_get(v_mctx_1572_, 7); -v_eAssignment_1588_ = lean_ctor_get(v_mctx_1572_, 8); -v_dAssignment_1589_ = lean_ctor_get(v_mctx_1572_, 9); -v_isSharedCheck_1603_ = !lean_is_exclusive(v_mctx_1572_); -if (v_isSharedCheck_1603_ == 0) +lean_object* v___x_1568_; lean_object* v___x_1570_; +v___x_1568_ = lean_box(0); +if (v_isShared_1567_ == 0) { -v___x_1591_ = v_mctx_1572_; -v_isShared_1592_ = v_isSharedCheck_1603_; -goto v_resetjp_1590_; +lean_ctor_set(v___x_1566_, 0, v___x_1568_); +v___x_1570_ = v___x_1566_; +goto v_reusejp_1569_; } else { -lean_inc(v_dAssignment_1589_); -lean_inc(v_eAssignment_1588_); -lean_inc(v_lAssignment_1587_); -lean_inc(v_userNames_1586_); -lean_inc(v_decls_1585_); -lean_inc(v_lDecls_1584_); -lean_inc(v_mvarCounter_1583_); -lean_inc(v_lmvarCounter_1582_); -lean_inc(v_levelAssignDepth_1581_); -lean_inc(v_depth_1580_); -lean_dec(v_mctx_1572_); -v___x_1591_ = lean_box(0); -v_isShared_1592_ = v_isSharedCheck_1603_; -goto v_resetjp_1590_; +lean_object* v_reuseFailAlloc_1571_; +v_reuseFailAlloc_1571_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1571_, 0, v___x_1568_); +v___x_1570_ = v_reuseFailAlloc_1571_; +goto v_reusejp_1569_; } -v_resetjp_1590_: +v_reusejp_1569_: { -lean_object* v___x_1593_; lean_object* v___x_1595_; -v___x_1593_ = l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8___redArg(v_eAssignment_1588_, v_mvarId_1567_, v_val_1568_); -if (v_isShared_1592_ == 0) -{ -lean_ctor_set(v___x_1591_, 8, v___x_1593_); -v___x_1595_ = v___x_1591_; -goto v_reusejp_1594_; +return v___x_1570_; +} +} } else { -lean_object* v_reuseFailAlloc_1602_; -v_reuseFailAlloc_1602_ = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(v_reuseFailAlloc_1602_, 0, v_depth_1580_); -lean_ctor_set(v_reuseFailAlloc_1602_, 1, v_levelAssignDepth_1581_); -lean_ctor_set(v_reuseFailAlloc_1602_, 2, v_lmvarCounter_1582_); -lean_ctor_set(v_reuseFailAlloc_1602_, 3, v_mvarCounter_1583_); -lean_ctor_set(v_reuseFailAlloc_1602_, 4, v_lDecls_1584_); -lean_ctor_set(v_reuseFailAlloc_1602_, 5, v_decls_1585_); -lean_ctor_set(v_reuseFailAlloc_1602_, 6, v_userNames_1586_); -lean_ctor_set(v_reuseFailAlloc_1602_, 7, v_lAssignment_1587_); -lean_ctor_set(v_reuseFailAlloc_1602_, 8, v___x_1593_); -lean_ctor_set(v_reuseFailAlloc_1602_, 9, v_dAssignment_1589_); -v___x_1595_ = v_reuseFailAlloc_1602_; -goto v_reusejp_1594_; -} -v_reusejp_1594_: +lean_object* v_a_1574_; lean_object* v___x_1576_; uint8_t v_isShared_1577_; uint8_t v_isSharedCheck_1581_; +v_a_1574_ = lean_ctor_get(v___x_1564_, 0); +v_isSharedCheck_1581_ = !lean_is_exclusive(v___x_1564_); +if (v_isSharedCheck_1581_ == 0) { -lean_object* v___x_1597_; -if (v_isShared_1579_ == 0) -{ -lean_ctor_set(v___x_1578_, 0, v___x_1595_); -v___x_1597_ = v___x_1578_; -goto v_reusejp_1596_; +v___x_1576_ = v___x_1564_; +v_isShared_1577_ = v_isSharedCheck_1581_; +goto v_resetjp_1575_; } else { -lean_object* v_reuseFailAlloc_1601_; -v_reuseFailAlloc_1601_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_1601_, 0, v___x_1595_); -lean_ctor_set(v_reuseFailAlloc_1601_, 1, v_cache_1573_); -lean_ctor_set(v_reuseFailAlloc_1601_, 2, v_zetaDeltaFVarIds_1574_); -lean_ctor_set(v_reuseFailAlloc_1601_, 3, v_postponed_1575_); -lean_ctor_set(v_reuseFailAlloc_1601_, 4, v_diag_1576_); -v___x_1597_ = v_reuseFailAlloc_1601_; -goto v_reusejp_1596_; +lean_inc(v_a_1574_); +lean_dec(v___x_1564_); +v___x_1576_ = lean_box(0); +v_isShared_1577_ = v_isSharedCheck_1581_; +goto v_resetjp_1575_; } -v_reusejp_1596_: +v_resetjp_1575_: { -lean_object* v___x_1598_; lean_object* v___x_1599_; lean_object* v___x_1600_; -v___x_1598_ = lean_st_ref_set(v___y_1569_, v___x_1597_); -v___x_1599_ = lean_box(0); -v___x_1600_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1600_, 0, v___x_1599_); -return v___x_1600_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg___boxed(lean_object* v_mvarId_1605_, lean_object* v_val_1606_, lean_object* v___y_1607_, lean_object* v___y_1608_){ -_start: +lean_object* v___x_1579_; +if (v_isShared_1577_ == 0) { -lean_object* v_res_1609_; -v_res_1609_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v_mvarId_1605_, v_val_1606_, v___y_1607_); -lean_dec(v___y_1607_); -return v_res_1609_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(lean_object* v_cls_1610_, lean_object* v___y_1611_, lean_object* v___y_1612_, lean_object* v___y_1613_, lean_object* v___y_1614_){ -_start: -{ -lean_object* v_options_1616_; uint8_t v_hasTrace_1617_; -v_options_1616_ = lean_ctor_get(v___y_1613_, 2); -v_hasTrace_1617_ = lean_ctor_get_uint8(v_options_1616_, sizeof(void*)*1); -if (v_hasTrace_1617_ == 0) -{ -lean_object* v___x_1618_; lean_object* v___x_1619_; -lean_dec(v_cls_1610_); -v___x_1618_ = lean_box(v_hasTrace_1617_); -v___x_1619_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1619_, 0, v___x_1618_); -return v___x_1619_; +v___x_1579_ = v___x_1576_; +goto v_reusejp_1578_; } else { -lean_object* v_inheritedTraceOptions_1620_; lean_object* v___x_1621_; lean_object* v___x_1622_; uint8_t v___x_1623_; lean_object* v___x_1624_; lean_object* v___x_1625_; -v_inheritedTraceOptions_1620_ = lean_ctor_get(v___y_1613_, 13); -v___x_1621_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); -v___x_1622_ = l_Lean_Name_append(v___x_1621_, v_cls_1610_); -v___x_1623_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_1620_, v_options_1616_, v___x_1622_); -lean_dec(v___x_1622_); -v___x_1624_ = lean_box(v___x_1623_); -v___x_1625_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1625_, 0, v___x_1624_); -return v___x_1625_; +lean_object* v_reuseFailAlloc_1580_; +v_reuseFailAlloc_1580_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1580_, 0, v_a_1574_); +v___x_1579_ = v_reuseFailAlloc_1580_; +goto v_reusejp_1578_; +} +v_reusejp_1578_: +{ +return v___x_1579_; } } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0___boxed(lean_object* v_cls_1626_, lean_object* v___y_1627_, lean_object* v___y_1628_, lean_object* v___y_1629_, lean_object* v___y_1630_, lean_object* v___y_1631_){ +} +else +{ +lean_object* v_a_1582_; lean_object* v___x_1584_; uint8_t v_isShared_1585_; uint8_t v_isSharedCheck_1589_; +lean_dec(v___x_1554_); +v_a_1582_ = lean_ctor_get(v___x_1562_, 0); +v_isSharedCheck_1589_ = !lean_is_exclusive(v___x_1562_); +if (v_isSharedCheck_1589_ == 0) +{ +v___x_1584_ = v___x_1562_; +v_isShared_1585_ = v_isSharedCheck_1589_; +goto v_resetjp_1583_; +} +else +{ +lean_inc(v_a_1582_); +lean_dec(v___x_1562_); +v___x_1584_ = lean_box(0); +v_isShared_1585_ = v_isSharedCheck_1589_; +goto v_resetjp_1583_; +} +v_resetjp_1583_: +{ +lean_object* v___x_1587_; +if (v_isShared_1585_ == 0) +{ +v___x_1587_ = v___x_1584_; +goto v_reusejp_1586_; +} +else +{ +lean_object* v_reuseFailAlloc_1588_; +v_reuseFailAlloc_1588_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1588_, 0, v_a_1582_); +v___x_1587_ = v_reuseFailAlloc_1588_; +goto v_reusejp_1586_; +} +v_reusejp_1586_: +{ +return v___x_1587_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2___boxed(lean_object* v_snd_1590_, lean_object* v_a_1591_, lean_object* v___x_1592_, lean_object* v_____r_1593_, lean_object* v___y_1594_, lean_object* v___y_1595_, lean_object* v___y_1596_, lean_object* v___y_1597_, lean_object* v___y_1598_){ _start: { -lean_object* v_res_1632_; -v_res_1632_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_1626_, v___y_1627_, v___y_1628_, v___y_1629_, v___y_1630_); -lean_dec(v___y_1630_); -lean_dec_ref(v___y_1629_); -lean_dec(v___y_1628_); -lean_dec_ref(v___y_1627_); -return v_res_1632_; +lean_object* v_res_1599_; +v_res_1599_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(v_snd_1590_, v_a_1591_, v___x_1592_, v_____r_1593_, v___y_1594_, v___y_1595_, v___y_1596_, v___y_1597_); +lean_dec(v___y_1597_); +lean_dec_ref(v___y_1596_); +lean_dec(v___y_1595_); +lean_dec_ref(v___y_1594_); +return v_res_1599_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(lean_object* v_a_1633_, lean_object* v___x_1634_, uint8_t v___x_1635_, lean_object* v___x_1636_, lean_object* v___f_1637_, lean_object* v_____r_1638_, lean_object* v___y_1639_, lean_object* v___y_1640_, lean_object* v___y_1641_, lean_object* v___y_1642_){ +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1(void){ _start: { -lean_object* v___x_1644_; lean_object* v___x_1645_; -v___x_1644_ = lean_box(0); -v___x_1645_ = l_Lean_Meta_mkAuxTheorem(v_a_1633_, v___x_1634_, v___x_1635_, v___x_1644_, v___x_1635_, v___y_1639_, v___y_1640_, v___y_1641_, v___y_1642_); -if (lean_obj_tag(v___x_1645_) == 0) +lean_object* v___x_1601_; lean_object* v___x_1602_; +v___x_1601_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__0)); +v___x_1602_ = l_Lean_stringToMessageData(v___x_1601_); +return v___x_1602_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3(void){ +_start: { -lean_object* v_a_1646_; lean_object* v___x_1647_; -v_a_1646_ = lean_ctor_get(v___x_1645_, 0); -lean_inc(v_a_1646_); -lean_dec_ref(v___x_1645_); -v___x_1647_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_1636_, v_a_1646_, v___y_1640_); -if (lean_obj_tag(v___x_1647_) == 0) +lean_object* v___x_1604_; lean_object* v___x_1605_; +v___x_1604_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__2)); +v___x_1605_ = l_Lean_stringToMessageData(v___x_1604_); +return v___x_1605_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5(void){ +_start: +{ +lean_object* v___x_1607_; lean_object* v___x_1608_; +v___x_1607_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__4)); +v___x_1608_ = l_Lean_stringToMessageData(v___x_1607_); +return v___x_1608_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7(void){ +_start: +{ +lean_object* v___x_1610_; lean_object* v___x_1611_; +v___x_1610_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__6)); +v___x_1611_ = l_Lean_stringToMessageData(v___x_1610_); +return v___x_1611_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(lean_object* v_val_1612_, lean_object* v_fst_1613_, lean_object* v_expectedType_1614_, lean_object* v___f_1615_, lean_object* v___f_1616_, lean_object* v___x_1617_, lean_object* v_cls_1618_, lean_object* v_snd_1619_, lean_object* v___x_1620_, lean_object* v_____r_1621_, lean_object* v___y_1622_, lean_object* v___y_1623_, lean_object* v___y_1624_, lean_object* v___y_1625_){ +_start: +{ +lean_object* v___y_1628_; uint8_t v___y_1629_; lean_object* v_a_1662_; lean_object* v___y_1666_; lean_object* v___x_1679_; +v___x_1679_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f(v_val_1612_, v_fst_1613_, v_expectedType_1614_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +if (lean_obj_tag(v___x_1679_) == 0) +{ +lean_object* v_a_1680_; +v_a_1680_ = lean_ctor_get(v___x_1679_, 0); +lean_inc(v_a_1680_); +lean_dec_ref(v___x_1679_); +if (lean_obj_tag(v_a_1680_) == 1) +{ +lean_object* v_val_1681_; lean_object* v___x_1682_; lean_object* v___x_1683_; +v_val_1681_ = lean_ctor_get(v_a_1680_, 0); +lean_inc(v_val_1681_); +lean_dec_ref(v_a_1680_); +v___x_1682_ = lean_box(0); +v___x_1683_ = l_Lean_Meta_trySynthInstance(v_val_1681_, v___x_1682_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +if (lean_obj_tag(v___x_1683_) == 0) +{ +lean_object* v_a_1684_; +v_a_1684_ = lean_ctor_get(v___x_1683_, 0); +lean_inc(v_a_1684_); +lean_dec_ref(v___x_1683_); +if (lean_obj_tag(v_a_1684_) == 1) +{ +lean_object* v_a_1685_; lean_object* v___x_1686_; +v_a_1685_ = lean_ctor_get(v_a_1684_, 0); +lean_inc(v_a_1685_); +lean_dec_ref(v_a_1684_); +lean_inc_ref(v___f_1615_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1686_ = lean_apply_5(v___f_1615_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +if (lean_obj_tag(v___x_1686_) == 0) +{ +lean_object* v_a_1687_; uint8_t v___x_1688_; +v_a_1687_ = lean_ctor_get(v___x_1686_, 0); +lean_inc(v_a_1687_); +lean_dec_ref(v___x_1686_); +v___x_1688_ = lean_unbox(v_a_1687_); +lean_dec(v_a_1687_); +if (v___x_1688_ == 0) +{ +lean_object* v___x_1689_; +v___x_1689_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(v_snd_1619_, v_a_1685_, v___x_1620_, v___x_1617_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +v___y_1666_ = v___x_1689_; +goto v___jp_1665_; +} +else +{ +lean_object* v___x_1690_; lean_object* v___x_1691_; lean_object* v___x_1692_; lean_object* v___x_1693_; lean_object* v___x_1694_; lean_object* v___x_1695_; +v___x_1690_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5); +lean_inc(v_a_1685_); +v___x_1691_ = l_Lean_MessageData_ofExpr(v_a_1685_); +v___x_1692_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1692_, 0, v___x_1690_); +lean_ctor_set(v___x_1692_, 1, v___x_1691_); +v___x_1693_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_1694_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1694_, 0, v___x_1692_); +lean_ctor_set(v___x_1694_, 1, v___x_1693_); +lean_inc(v_cls_1618_); +v___x_1695_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_1618_, v___x_1694_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +if (lean_obj_tag(v___x_1695_) == 0) +{ +lean_object* v_a_1696_; lean_object* v___x_1697_; +v_a_1696_ = lean_ctor_get(v___x_1695_, 0); +lean_inc(v_a_1696_); +lean_dec_ref(v___x_1695_); +v___x_1697_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(v_snd_1619_, v_a_1685_, v___x_1620_, v_a_1696_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +v___y_1666_ = v___x_1697_; +goto v___jp_1665_; +} +else +{ +lean_object* v_a_1698_; +lean_dec(v_a_1685_); +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +v_a_1698_ = lean_ctor_get(v___x_1695_, 0); +lean_inc(v_a_1698_); +lean_dec_ref(v___x_1695_); +v_a_1662_ = v_a_1698_; +goto v___jp_1661_; +} +} +} +else +{ +lean_object* v_a_1699_; +lean_dec(v_a_1685_); +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +v_a_1699_ = lean_ctor_get(v___x_1686_, 0); +lean_inc(v_a_1699_); +lean_dec_ref(v___x_1686_); +v_a_1662_ = v_a_1699_; +goto v___jp_1661_; +} +} +else +{ +lean_object* v_options_1700_; uint8_t v_hasTrace_1701_; +lean_dec(v_a_1684_); +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +v_options_1700_ = lean_ctor_get(v___y_1624_, 2); +v_hasTrace_1701_ = lean_ctor_get_uint8(v_options_1700_, sizeof(void*)*1); +if (v_hasTrace_1701_ == 0) +{ +lean_object* v___x_1702_; +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1702_ = lean_apply_6(v___f_1616_, v___x_1617_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1702_; +} +else +{ +lean_object* v_inheritedTraceOptions_1703_; lean_object* v___x_1704_; lean_object* v___x_1705_; uint8_t v___x_1706_; +v_inheritedTraceOptions_1703_ = lean_ctor_get(v___y_1624_, 13); +v___x_1704_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); +lean_inc(v_cls_1618_); +v___x_1705_ = l_Lean_Name_append(v___x_1704_, v_cls_1618_); +v___x_1706_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_1703_, v_options_1700_, v___x_1705_); +lean_dec(v___x_1705_); +if (v___x_1706_ == 0) +{ +lean_object* v___x_1707_; +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1707_ = lean_apply_6(v___f_1616_, v___x_1617_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1707_; +} +else +{ +lean_object* v___x_1708_; lean_object* v___x_1709_; lean_object* v___x_1710_; lean_object* v___x_1711_; lean_object* v___x_1712_; lean_object* v___x_1713_; +v___x_1708_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7); +lean_inc(v_fst_1613_); +v___x_1709_ = l_Lean_MessageData_ofName(v_fst_1613_); +v___x_1710_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1710_, 0, v___x_1708_); +lean_ctor_set(v___x_1710_, 1, v___x_1709_); +v___x_1711_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_1712_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1712_, 0, v___x_1710_); +lean_ctor_set(v___x_1712_, 1, v___x_1711_); +lean_inc(v_cls_1618_); +v___x_1713_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_1618_, v___x_1712_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +if (lean_obj_tag(v___x_1713_) == 0) +{ +lean_object* v_a_1714_; lean_object* v___x_1715_; +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +v_a_1714_ = lean_ctor_get(v___x_1713_, 0); +lean_inc(v_a_1714_); +lean_dec_ref(v___x_1713_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1715_ = lean_apply_6(v___f_1616_, v_a_1714_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1715_; +} +else +{ +lean_object* v_a_1716_; +v_a_1716_ = lean_ctor_get(v___x_1713_, 0); +lean_inc(v_a_1716_); +lean_dec_ref(v___x_1713_); +v_a_1662_ = v_a_1716_; +goto v___jp_1661_; +} +} +} +} +} +else +{ +lean_object* v_a_1717_; +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +v_a_1717_ = lean_ctor_get(v___x_1683_, 0); +lean_inc(v_a_1717_); +lean_dec_ref(v___x_1683_); +v_a_1662_ = v_a_1717_; +goto v___jp_1661_; +} +} +else +{ +lean_object* v___x_1718_; +lean_dec(v_a_1680_); +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1718_ = lean_apply_6(v___f_1616_, v___x_1617_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1718_; +} +} +else +{ +lean_object* v_a_1719_; lean_object* v___x_1721_; uint8_t v_isShared_1722_; uint8_t v_isSharedCheck_1726_; +lean_dec(v___x_1620_); +lean_dec_ref(v_snd_1619_); +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1616_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +v_a_1719_ = lean_ctor_get(v___x_1679_, 0); +v_isSharedCheck_1726_ = !lean_is_exclusive(v___x_1679_); +if (v_isSharedCheck_1726_ == 0) +{ +v___x_1721_ = v___x_1679_; +v_isShared_1722_ = v_isSharedCheck_1726_; +goto v_resetjp_1720_; +} +else +{ +lean_inc(v_a_1719_); +lean_dec(v___x_1679_); +v___x_1721_ = lean_box(0); +v_isShared_1722_ = v_isSharedCheck_1726_; +goto v_resetjp_1720_; +} +v_resetjp_1720_: +{ +lean_object* v___x_1724_; +if (v_isShared_1722_ == 0) +{ +v___x_1724_ = v___x_1721_; +goto v_reusejp_1723_; +} +else +{ +lean_object* v_reuseFailAlloc_1725_; +v_reuseFailAlloc_1725_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1725_, 0, v_a_1719_); +v___x_1724_ = v_reuseFailAlloc_1725_; +goto v_reusejp_1723_; +} +v_reusejp_1723_: +{ +return v___x_1724_; +} +} +} +v___jp_1627_: +{ +if (v___y_1629_ == 0) +{ +lean_object* v___x_1630_; +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1630_ = lean_apply_5(v___f_1615_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +if (lean_obj_tag(v___x_1630_) == 0) +{ +lean_object* v_a_1631_; uint8_t v___x_1632_; +v_a_1631_ = lean_ctor_get(v___x_1630_, 0); +lean_inc(v_a_1631_); +lean_dec_ref(v___x_1630_); +v___x_1632_ = lean_unbox(v_a_1631_); +lean_dec(v_a_1631_); +if (v___x_1632_ == 0) +{ +lean_object* v___x_1633_; +lean_dec_ref(v___y_1628_); +lean_dec(v_cls_1618_); +lean_dec(v_fst_1613_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1633_ = lean_apply_6(v___f_1616_, v___x_1617_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1633_; +} +else +{ +lean_object* v___x_1634_; lean_object* v___x_1635_; lean_object* v___x_1636_; lean_object* v___x_1637_; lean_object* v___x_1638_; lean_object* v___x_1639_; lean_object* v___x_1640_; lean_object* v___x_1641_; +v___x_1634_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1); +v___x_1635_ = l_Lean_MessageData_ofName(v_fst_1613_); +v___x_1636_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1636_, 0, v___x_1634_); +lean_ctor_set(v___x_1636_, 1, v___x_1635_); +v___x_1637_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +v___x_1638_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1638_, 0, v___x_1636_); +lean_ctor_set(v___x_1638_, 1, v___x_1637_); +v___x_1639_ = l_Lean_Exception_toMessageData(v___y_1628_); +v___x_1640_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_1640_, 0, v___x_1638_); +lean_ctor_set(v___x_1640_, 1, v___x_1639_); +v___x_1641_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_1618_, v___x_1640_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_); +if (lean_obj_tag(v___x_1641_) == 0) +{ +lean_object* v_a_1642_; lean_object* v___x_1643_; +v_a_1642_ = lean_ctor_get(v___x_1641_, 0); +lean_inc(v_a_1642_); +lean_dec_ref(v___x_1641_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1643_ = lean_apply_6(v___f_1616_, v_a_1642_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1643_; +} +else +{ +lean_object* v_a_1644_; lean_object* v___x_1646_; uint8_t v_isShared_1647_; uint8_t v_isSharedCheck_1651_; +lean_dec_ref(v___f_1616_); +v_a_1644_ = lean_ctor_get(v___x_1641_, 0); +v_isSharedCheck_1651_ = !lean_is_exclusive(v___x_1641_); +if (v_isSharedCheck_1651_ == 0) +{ +v___x_1646_ = v___x_1641_; +v_isShared_1647_ = v_isSharedCheck_1651_; +goto v_resetjp_1645_; +} +else +{ +lean_inc(v_a_1644_); +lean_dec(v___x_1641_); +v___x_1646_ = lean_box(0); +v_isShared_1647_ = v_isSharedCheck_1651_; +goto v_resetjp_1645_; +} +v_resetjp_1645_: +{ +lean_object* v___x_1649_; +if (v_isShared_1647_ == 0) +{ +v___x_1649_ = v___x_1646_; +goto v_reusejp_1648_; +} +else +{ +lean_object* v_reuseFailAlloc_1650_; +v_reuseFailAlloc_1650_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1650_, 0, v_a_1644_); +v___x_1649_ = v_reuseFailAlloc_1650_; +goto v_reusejp_1648_; +} +v_reusejp_1648_: { -lean_object* v_a_1648_; lean_object* v___x_1649_; -v_a_1648_ = lean_ctor_get(v___x_1647_, 0); -lean_inc(v_a_1648_); -lean_dec_ref(v___x_1647_); -lean_inc(v___y_1642_); -lean_inc_ref(v___y_1641_); -lean_inc(v___y_1640_); -lean_inc_ref(v___y_1639_); -v___x_1649_ = lean_apply_6(v___f_1637_, v_a_1648_, v___y_1639_, v___y_1640_, v___y_1641_, v___y_1642_, lean_box(0)); return v___x_1649_; } -else -{ -lean_object* v_a_1650_; lean_object* v___x_1652_; uint8_t v_isShared_1653_; uint8_t v_isSharedCheck_1657_; -lean_dec_ref(v___f_1637_); -v_a_1650_ = lean_ctor_get(v___x_1647_, 0); -v_isSharedCheck_1657_ = !lean_is_exclusive(v___x_1647_); -if (v_isSharedCheck_1657_ == 0) -{ -v___x_1652_ = v___x_1647_; -v_isShared_1653_ = v_isSharedCheck_1657_; -goto v_resetjp_1651_; -} -else -{ -lean_inc(v_a_1650_); -lean_dec(v___x_1647_); -v___x_1652_ = lean_box(0); -v_isShared_1653_ = v_isSharedCheck_1657_; -goto v_resetjp_1651_; -} -v_resetjp_1651_: -{ -lean_object* v___x_1655_; -if (v_isShared_1653_ == 0) -{ -v___x_1655_ = v___x_1652_; -goto v_reusejp_1654_; -} -else -{ -lean_object* v_reuseFailAlloc_1656_; -v_reuseFailAlloc_1656_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1656_, 0, v_a_1650_); -v___x_1655_ = v_reuseFailAlloc_1656_; -goto v_reusejp_1654_; -} -v_reusejp_1654_: -{ -return v___x_1655_; } } } } else { -lean_object* v_a_1658_; lean_object* v___x_1660_; uint8_t v_isShared_1661_; uint8_t v_isSharedCheck_1665_; -lean_dec_ref(v___f_1637_); -lean_dec(v___x_1636_); -v_a_1658_ = lean_ctor_get(v___x_1645_, 0); -v_isSharedCheck_1665_ = !lean_is_exclusive(v___x_1645_); -if (v_isSharedCheck_1665_ == 0) +lean_object* v_a_1652_; lean_object* v___x_1654_; uint8_t v_isShared_1655_; uint8_t v_isSharedCheck_1659_; +lean_dec_ref(v___y_1628_); +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1616_); +lean_dec(v_fst_1613_); +v_a_1652_ = lean_ctor_get(v___x_1630_, 0); +v_isSharedCheck_1659_ = !lean_is_exclusive(v___x_1630_); +if (v_isSharedCheck_1659_ == 0) { -v___x_1660_ = v___x_1645_; -v_isShared_1661_ = v_isSharedCheck_1665_; -goto v_resetjp_1659_; +v___x_1654_ = v___x_1630_; +v_isShared_1655_ = v_isSharedCheck_1659_; +goto v_resetjp_1653_; } else { -lean_inc(v_a_1658_); -lean_dec(v___x_1645_); -v___x_1660_ = lean_box(0); -v_isShared_1661_ = v_isSharedCheck_1665_; -goto v_resetjp_1659_; +lean_inc(v_a_1652_); +lean_dec(v___x_1630_); +v___x_1654_ = lean_box(0); +v_isShared_1655_ = v_isSharedCheck_1659_; +goto v_resetjp_1653_; } -v_resetjp_1659_: +v_resetjp_1653_: { -lean_object* v___x_1663_; -if (v_isShared_1661_ == 0) +lean_object* v___x_1657_; +if (v_isShared_1655_ == 0) { -v___x_1663_ = v___x_1660_; -goto v_reusejp_1662_; +v___x_1657_ = v___x_1654_; +goto v_reusejp_1656_; } else { -lean_object* v_reuseFailAlloc_1664_; -v_reuseFailAlloc_1664_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1664_, 0, v_a_1658_); -v___x_1663_ = v_reuseFailAlloc_1664_; -goto v_reusejp_1662_; +lean_object* v_reuseFailAlloc_1658_; +v_reuseFailAlloc_1658_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1658_, 0, v_a_1652_); +v___x_1657_ = v_reuseFailAlloc_1658_; +goto v_reusejp_1656_; } -v_reusejp_1662_: +v_reusejp_1656_: { -return v___x_1663_; +return v___x_1657_; } } } } +else +{ +lean_object* v___x_1660_; +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1616_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +v___x_1660_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1660_, 0, v___y_1628_); +return v___x_1660_; } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7___boxed(lean_object* v_a_1666_, lean_object* v___x_1667_, lean_object* v___x_1668_, lean_object* v___x_1669_, lean_object* v___f_1670_, lean_object* v_____r_1671_, lean_object* v___y_1672_, lean_object* v___y_1673_, lean_object* v___y_1674_, lean_object* v___y_1675_, lean_object* v___y_1676_){ +} +v___jp_1661_: +{ +uint8_t v___x_1663_; +v___x_1663_ = l_Lean_Exception_isInterrupt(v_a_1662_); +if (v___x_1663_ == 0) +{ +uint8_t v___x_1664_; +lean_inc_ref(v_a_1662_); +v___x_1664_ = l_Lean_Exception_isRuntime(v_a_1662_); +v___y_1628_ = v_a_1662_; +v___y_1629_ = v___x_1664_; +goto v___jp_1627_; +} +else +{ +v___y_1628_ = v_a_1662_; +v___y_1629_ = v___x_1663_; +goto v___jp_1627_; +} +} +v___jp_1665_: +{ +if (lean_obj_tag(v___y_1666_) == 0) +{ +lean_object* v_a_1667_; lean_object* v___x_1669_; uint8_t v_isShared_1670_; uint8_t v_isSharedCheck_1677_; +lean_dec(v_cls_1618_); +lean_dec_ref(v___f_1615_); +lean_dec(v_fst_1613_); +v_a_1667_ = lean_ctor_get(v___y_1666_, 0); +v_isSharedCheck_1677_ = !lean_is_exclusive(v___y_1666_); +if (v_isSharedCheck_1677_ == 0) +{ +v___x_1669_ = v___y_1666_; +v_isShared_1670_ = v_isSharedCheck_1677_; +goto v_resetjp_1668_; +} +else +{ +lean_inc(v_a_1667_); +lean_dec(v___y_1666_); +v___x_1669_ = lean_box(0); +v_isShared_1670_ = v_isSharedCheck_1677_; +goto v_resetjp_1668_; +} +v_resetjp_1668_: +{ +if (lean_obj_tag(v_a_1667_) == 0) +{ +lean_object* v___x_1671_; lean_object* v___x_1673_; +lean_dec_ref(v___f_1616_); +v___x_1671_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1671_, 0, v___x_1617_); +if (v_isShared_1670_ == 0) +{ +lean_ctor_set(v___x_1669_, 0, v___x_1671_); +v___x_1673_ = v___x_1669_; +goto v_reusejp_1672_; +} +else +{ +lean_object* v_reuseFailAlloc_1674_; +v_reuseFailAlloc_1674_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1674_, 0, v___x_1671_); +v___x_1673_ = v_reuseFailAlloc_1674_; +goto v_reusejp_1672_; +} +v_reusejp_1672_: +{ +return v___x_1673_; +} +} +else +{ +lean_object* v_a_1675_; lean_object* v___x_1676_; +lean_del_object(v___x_1669_); +v_a_1675_ = lean_ctor_get(v_a_1667_, 0); +lean_inc(v_a_1675_); +lean_dec_ref(v_a_1667_); +lean_inc(v___y_1625_); +lean_inc_ref(v___y_1624_); +lean_inc(v___y_1623_); +lean_inc_ref(v___y_1622_); +v___x_1676_ = lean_apply_6(v___f_1616_, v_a_1675_, v___y_1622_, v___y_1623_, v___y_1624_, v___y_1625_, lean_box(0)); +return v___x_1676_; +} +} +} +else +{ +lean_object* v_a_1678_; +v_a_1678_ = lean_ctor_get(v___y_1666_, 0); +lean_inc(v_a_1678_); +lean_dec_ref(v___y_1666_); +v_a_1662_ = v_a_1678_; +goto v___jp_1661_; +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___boxed(lean_object* v_val_1727_, lean_object* v_fst_1728_, lean_object* v_expectedType_1729_, lean_object* v___f_1730_, lean_object* v___f_1731_, lean_object* v___x_1732_, lean_object* v_cls_1733_, lean_object* v_snd_1734_, lean_object* v___x_1735_, lean_object* v_____r_1736_, lean_object* v___y_1737_, lean_object* v___y_1738_, lean_object* v___y_1739_, lean_object* v___y_1740_, lean_object* v___y_1741_){ _start: { -uint8_t v___x_160501__boxed_1677_; lean_object* v_res_1678_; -v___x_160501__boxed_1677_ = lean_unbox(v___x_1668_); -v_res_1678_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_1666_, v___x_1667_, v___x_160501__boxed_1677_, v___x_1669_, v___f_1670_, v_____r_1671_, v___y_1672_, v___y_1673_, v___y_1674_, v___y_1675_); -lean_dec(v___y_1675_); -lean_dec_ref(v___y_1674_); -lean_dec(v___y_1673_); -lean_dec_ref(v___y_1672_); -return v_res_1678_; +lean_object* v_res_1742_; +v_res_1742_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(v_val_1727_, v_fst_1728_, v_expectedType_1729_, v___f_1730_, v___f_1731_, v___x_1732_, v_cls_1733_, v_snd_1734_, v___x_1735_, v_____r_1736_, v___y_1737_, v___y_1738_, v___y_1739_, v___y_1740_); +lean_dec(v___y_1740_); +lean_dec_ref(v___y_1739_); +lean_dec(v___y_1738_); +lean_dec_ref(v___y_1737_); +return v_res_1742_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(lean_object* v_snd_1679_, lean_object* v_a_1680_, lean_object* v___x_1681_, lean_object* v_____r_1682_, lean_object* v___y_1683_, lean_object* v___y_1684_, lean_object* v___y_1685_, lean_object* v___y_1686_){ +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2(void){ _start: { -lean_object* v_fieldName_1688_; lean_object* v___x_1689_; -v_fieldName_1688_ = lean_ctor_get(v_snd_1679_, 0); -lean_inc(v_fieldName_1688_); -lean_dec_ref(v_snd_1679_); -v___x_1689_ = l_Lean_Meta_mkProjection(v_a_1680_, v_fieldName_1688_, v___y_1683_, v___y_1684_, v___y_1685_, v___y_1686_); -if (lean_obj_tag(v___x_1689_) == 0) -{ -lean_object* v_a_1690_; lean_object* v___x_1691_; -v_a_1690_ = lean_ctor_get(v___x_1689_, 0); -lean_inc(v_a_1690_); -lean_dec_ref(v___x_1689_); -v___x_1691_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_1681_, v_a_1690_, v___y_1684_); -if (lean_obj_tag(v___x_1691_) == 0) -{ -lean_object* v___x_1693_; uint8_t v_isShared_1694_; uint8_t v_isSharedCheck_1699_; -v_isSharedCheck_1699_ = !lean_is_exclusive(v___x_1691_); -if (v_isSharedCheck_1699_ == 0) -{ -lean_object* v_unused_1700_; -v_unused_1700_ = lean_ctor_get(v___x_1691_, 0); -lean_dec(v_unused_1700_); -v___x_1693_ = v___x_1691_; -v_isShared_1694_ = v_isSharedCheck_1699_; -goto v_resetjp_1692_; -} -else -{ -lean_dec(v___x_1691_); -v___x_1693_ = lean_box(0); -v_isShared_1694_ = v_isSharedCheck_1699_; -goto v_resetjp_1692_; -} -v_resetjp_1692_: -{ -lean_object* v___x_1695_; lean_object* v___x_1697_; -v___x_1695_ = lean_box(0); -if (v_isShared_1694_ == 0) -{ -lean_ctor_set(v___x_1693_, 0, v___x_1695_); -v___x_1697_ = v___x_1693_; -goto v_reusejp_1696_; -} -else -{ -lean_object* v_reuseFailAlloc_1698_; -v_reuseFailAlloc_1698_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1698_, 0, v___x_1695_); -v___x_1697_ = v_reuseFailAlloc_1698_; -goto v_reusejp_1696_; -} -v_reusejp_1696_: -{ -return v___x_1697_; +lean_object* v___x_1746_; +v___x_1746_ = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return v___x_1746_; } } -} -else -{ -lean_object* v_a_1701_; lean_object* v___x_1703_; uint8_t v_isShared_1704_; uint8_t v_isSharedCheck_1708_; -v_a_1701_ = lean_ctor_get(v___x_1691_, 0); -v_isSharedCheck_1708_ = !lean_is_exclusive(v___x_1691_); -if (v_isSharedCheck_1708_ == 0) -{ -v___x_1703_ = v___x_1691_; -v_isShared_1704_ = v_isSharedCheck_1708_; -goto v_resetjp_1702_; -} -else -{ -lean_inc(v_a_1701_); -lean_dec(v___x_1691_); -v___x_1703_ = lean_box(0); -v_isShared_1704_ = v_isSharedCheck_1708_; -goto v_resetjp_1702_; -} -v_resetjp_1702_: -{ -lean_object* v___x_1706_; -if (v_isShared_1704_ == 0) -{ -v___x_1706_ = v___x_1703_; -goto v_reusejp_1705_; -} -else -{ -lean_object* v_reuseFailAlloc_1707_; -v_reuseFailAlloc_1707_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1707_, 0, v_a_1701_); -v___x_1706_ = v_reuseFailAlloc_1707_; -goto v_reusejp_1705_; -} -v_reusejp_1705_: -{ -return v___x_1706_; -} -} -} -} -else -{ -lean_object* v_a_1709_; lean_object* v___x_1711_; uint8_t v_isShared_1712_; uint8_t v_isSharedCheck_1716_; -lean_dec(v___x_1681_); -v_a_1709_ = lean_ctor_get(v___x_1689_, 0); -v_isSharedCheck_1716_ = !lean_is_exclusive(v___x_1689_); -if (v_isSharedCheck_1716_ == 0) -{ -v___x_1711_ = v___x_1689_; -v_isShared_1712_ = v_isSharedCheck_1716_; -goto v_resetjp_1710_; -} -else -{ -lean_inc(v_a_1709_); -lean_dec(v___x_1689_); -v___x_1711_ = lean_box(0); -v_isShared_1712_ = v_isSharedCheck_1716_; -goto v_resetjp_1710_; -} -v_resetjp_1710_: -{ -lean_object* v___x_1714_; -if (v_isShared_1712_ == 0) -{ -v___x_1714_ = v___x_1711_; -goto v_reusejp_1713_; -} -else -{ -lean_object* v_reuseFailAlloc_1715_; -v_reuseFailAlloc_1715_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1715_, 0, v_a_1709_); -v___x_1714_ = v_reuseFailAlloc_1715_; -goto v_reusejp_1713_; -} -v_reusejp_1713_: -{ -return v___x_1714_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2___boxed(lean_object* v_snd_1717_, lean_object* v_a_1718_, lean_object* v___x_1719_, lean_object* v_____r_1720_, lean_object* v___y_1721_, lean_object* v___y_1722_, lean_object* v___y_1723_, lean_object* v___y_1724_, lean_object* v___y_1725_){ +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3(void){ _start: { -lean_object* v_res_1726_; -v_res_1726_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(v_snd_1717_, v_a_1718_, v___x_1719_, v_____r_1720_, v___y_1721_, v___y_1722_, v___y_1723_, v___y_1724_); -lean_dec(v___y_1724_); -lean_dec_ref(v___y_1723_); -lean_dec(v___y_1722_); -lean_dec_ref(v___y_1721_); -return v_res_1726_; +lean_object* v___x_1747_; lean_object* v___x_1748_; +v___x_1747_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__2); +v___x_1748_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1748_, 0, v___x_1747_); +return v___x_1748_; } } -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1(void){ +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4(void){ _start: { -lean_object* v___x_1728_; lean_object* v___x_1729_; -v___x_1728_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__0)); -v___x_1729_ = l_Lean_stringToMessageData(v___x_1728_); -return v___x_1729_; +lean_object* v___x_1749_; lean_object* v___x_1750_; +v___x_1749_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3); +v___x_1750_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1750_, 0, v___x_1749_); +lean_ctor_set(v___x_1750_, 1, v___x_1749_); +return v___x_1750_; } } -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3(void){ +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5(void){ _start: { -lean_object* v___x_1731_; lean_object* v___x_1732_; -v___x_1731_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__2)); -v___x_1732_ = l_Lean_stringToMessageData(v___x_1731_); -return v___x_1732_; +lean_object* v___x_1751_; lean_object* v___x_1752_; +v___x_1751_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__3); +v___x_1752_ = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(v___x_1752_, 0, v___x_1751_); +lean_ctor_set(v___x_1752_, 1, v___x_1751_); +lean_ctor_set(v___x_1752_, 2, v___x_1751_); +lean_ctor_set(v___x_1752_, 3, v___x_1751_); +lean_ctor_set(v___x_1752_, 4, v___x_1751_); +lean_ctor_set(v___x_1752_, 5, v___x_1751_); +return v___x_1752_; } } -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5(void){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(lean_object* v___x_1753_, lean_object* v___x_1754_, lean_object* v___x_1755_, lean_object* v_a_1756_, uint8_t v___x_1757_, uint8_t v___x_1758_, uint8_t v_compile_1759_, uint8_t v_logCompileErrors_1760_, uint8_t v_isMeta_1761_, lean_object* v_____r_1762_, lean_object* v___y_1763_, lean_object* v___y_1764_, lean_object* v___y_1765_, lean_object* v___y_1766_){ _start: { -lean_object* v___x_1734_; lean_object* v___x_1735_; -v___x_1734_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__4)); -v___x_1735_ = l_Lean_stringToMessageData(v___x_1734_); -return v___x_1735_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7(void){ -_start: +lean_object* v_options_1768_; lean_object* v___x_1769_; uint8_t v___x_1770_; +v_options_1768_ = lean_ctor_get(v___y_1765_, 2); +v___x_1769_ = l_Lean_Meta_backward_inferInstanceAs_wrap_data; +v___x_1770_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_1768_, v___x_1769_); +if (v___x_1770_ == 0) { -lean_object* v___x_1737_; lean_object* v___x_1738_; -v___x_1737_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__6)); -v___x_1738_ = l_Lean_stringToMessageData(v___x_1737_); -return v___x_1738_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(lean_object* v_val_1739_, lean_object* v_fst_1740_, lean_object* v_expectedType_1741_, lean_object* v___f_1742_, lean_object* v___f_1743_, lean_object* v___x_1744_, lean_object* v_cls_1745_, lean_object* v_snd_1746_, lean_object* v___x_1747_, lean_object* v_____r_1748_, lean_object* v___y_1749_, lean_object* v___y_1750_, lean_object* v___y_1751_, lean_object* v___y_1752_){ -_start: +lean_object* v___x_1771_; +lean_dec_ref(v_a_1756_); +v___x_1771_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1753_, v___x_1754_, v___y_1764_); +if (lean_obj_tag(v___x_1771_) == 0) { -lean_object* v___y_1755_; uint8_t v___y_1756_; lean_object* v_a_1789_; lean_object* v___y_1793_; lean_object* v___x_1806_; -v___x_1806_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f(v_val_1739_, v_fst_1740_, v_expectedType_1741_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -if (lean_obj_tag(v___x_1806_) == 0) +lean_object* v___x_1773_; uint8_t v_isShared_1774_; uint8_t v_isSharedCheck_1779_; +v_isSharedCheck_1779_ = !lean_is_exclusive(v___x_1771_); +if (v_isSharedCheck_1779_ == 0) { -lean_object* v_a_1807_; -v_a_1807_ = lean_ctor_get(v___x_1806_, 0); -lean_inc(v_a_1807_); -lean_dec_ref(v___x_1806_); -if (lean_obj_tag(v_a_1807_) == 1) -{ -lean_object* v_val_1808_; lean_object* v___x_1809_; lean_object* v___x_1810_; -v_val_1808_ = lean_ctor_get(v_a_1807_, 0); -lean_inc(v_val_1808_); -lean_dec_ref(v_a_1807_); -v___x_1809_ = lean_box(0); -v___x_1810_ = l_Lean_Meta_trySynthInstance(v_val_1808_, v___x_1809_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -if (lean_obj_tag(v___x_1810_) == 0) -{ -lean_object* v_a_1811_; -v_a_1811_ = lean_ctor_get(v___x_1810_, 0); -lean_inc(v_a_1811_); -lean_dec_ref(v___x_1810_); -if (lean_obj_tag(v_a_1811_) == 1) -{ -lean_object* v_a_1812_; lean_object* v___x_1813_; -v_a_1812_ = lean_ctor_get(v_a_1811_, 0); -lean_inc(v_a_1812_); -lean_dec_ref(v_a_1811_); -lean_inc_ref(v___f_1742_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1813_ = lean_apply_5(v___f_1742_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -if (lean_obj_tag(v___x_1813_) == 0) -{ -lean_object* v_a_1814_; uint8_t v___x_1815_; -v_a_1814_ = lean_ctor_get(v___x_1813_, 0); -lean_inc(v_a_1814_); -lean_dec_ref(v___x_1813_); -v___x_1815_ = lean_unbox(v_a_1814_); -lean_dec(v_a_1814_); -if (v___x_1815_ == 0) -{ -lean_object* v___x_1816_; -v___x_1816_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(v_snd_1746_, v_a_1812_, v___x_1747_, v___x_1744_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -v___y_1793_ = v___x_1816_; -goto v___jp_1792_; -} -else -{ -lean_object* v___x_1817_; lean_object* v___x_1818_; lean_object* v___x_1819_; lean_object* v___x_1820_; lean_object* v___x_1821_; lean_object* v___x_1822_; -v___x_1817_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5); -lean_inc(v_a_1812_); -v___x_1818_ = l_Lean_MessageData_ofExpr(v_a_1812_); -v___x_1819_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1819_, 0, v___x_1817_); -lean_ctor_set(v___x_1819_, 1, v___x_1818_); -v___x_1820_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_1821_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1821_, 0, v___x_1819_); -lean_ctor_set(v___x_1821_, 1, v___x_1820_); -lean_inc(v_cls_1745_); -v___x_1822_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_1745_, v___x_1821_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -if (lean_obj_tag(v___x_1822_) == 0) -{ -lean_object* v_a_1823_; lean_object* v___x_1824_; -v_a_1823_ = lean_ctor_get(v___x_1822_, 0); -lean_inc(v_a_1823_); -lean_dec_ref(v___x_1822_); -v___x_1824_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(v_snd_1746_, v_a_1812_, v___x_1747_, v_a_1823_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -v___y_1793_ = v___x_1824_; -goto v___jp_1792_; -} -else -{ -lean_object* v_a_1825_; -lean_dec(v_a_1812_); -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -v_a_1825_ = lean_ctor_get(v___x_1822_, 0); -lean_inc(v_a_1825_); -lean_dec_ref(v___x_1822_); -v_a_1789_ = v_a_1825_; -goto v___jp_1788_; -} -} -} -else -{ -lean_object* v_a_1826_; -lean_dec(v_a_1812_); -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -v_a_1826_ = lean_ctor_get(v___x_1813_, 0); -lean_inc(v_a_1826_); -lean_dec_ref(v___x_1813_); -v_a_1789_ = v_a_1826_; -goto v___jp_1788_; -} -} -else -{ -lean_object* v_options_1827_; uint8_t v_hasTrace_1828_; -lean_dec(v_a_1811_); -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -v_options_1827_ = lean_ctor_get(v___y_1751_, 2); -v_hasTrace_1828_ = lean_ctor_get_uint8(v_options_1827_, sizeof(void*)*1); -if (v_hasTrace_1828_ == 0) -{ -lean_object* v___x_1829_; -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1829_ = lean_apply_6(v___f_1743_, v___x_1744_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1829_; -} -else -{ -lean_object* v_inheritedTraceOptions_1830_; lean_object* v___x_1831_; lean_object* v___x_1832_; uint8_t v___x_1833_; -v_inheritedTraceOptions_1830_ = lean_ctor_get(v___y_1751_, 13); -v___x_1831_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); -lean_inc(v_cls_1745_); -v___x_1832_ = l_Lean_Name_append(v___x_1831_, v_cls_1745_); -v___x_1833_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_1830_, v_options_1827_, v___x_1832_); -lean_dec(v___x_1832_); -if (v___x_1833_ == 0) -{ -lean_object* v___x_1834_; -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1834_ = lean_apply_6(v___f_1743_, v___x_1744_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1834_; -} -else -{ -lean_object* v___x_1835_; lean_object* v___x_1836_; lean_object* v___x_1837_; lean_object* v___x_1838_; lean_object* v___x_1839_; lean_object* v___x_1840_; -v___x_1835_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7); -lean_inc(v_fst_1740_); -v___x_1836_ = l_Lean_MessageData_ofName(v_fst_1740_); -v___x_1837_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1837_, 0, v___x_1835_); -lean_ctor_set(v___x_1837_, 1, v___x_1836_); -v___x_1838_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_1839_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1839_, 0, v___x_1837_); -lean_ctor_set(v___x_1839_, 1, v___x_1838_); -lean_inc(v_cls_1745_); -v___x_1840_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_1745_, v___x_1839_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -if (lean_obj_tag(v___x_1840_) == 0) -{ -lean_object* v_a_1841_; lean_object* v___x_1842_; -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -v_a_1841_ = lean_ctor_get(v___x_1840_, 0); -lean_inc(v_a_1841_); -lean_dec_ref(v___x_1840_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1842_ = lean_apply_6(v___f_1743_, v_a_1841_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1842_; -} -else -{ -lean_object* v_a_1843_; -v_a_1843_ = lean_ctor_get(v___x_1840_, 0); -lean_inc(v_a_1843_); -lean_dec_ref(v___x_1840_); -v_a_1789_ = v_a_1843_; -goto v___jp_1788_; -} -} -} -} -} -else -{ -lean_object* v_a_1844_; -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -v_a_1844_ = lean_ctor_get(v___x_1810_, 0); -lean_inc(v_a_1844_); -lean_dec_ref(v___x_1810_); -v_a_1789_ = v_a_1844_; -goto v___jp_1788_; -} -} -else -{ -lean_object* v___x_1845_; -lean_dec(v_a_1807_); -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1845_ = lean_apply_6(v___f_1743_, v___x_1744_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1845_; -} -} -else -{ -lean_object* v_a_1846_; lean_object* v___x_1848_; uint8_t v_isShared_1849_; uint8_t v_isSharedCheck_1853_; -lean_dec(v___x_1747_); -lean_dec_ref(v_snd_1746_); -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1743_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -v_a_1846_ = lean_ctor_get(v___x_1806_, 0); -v_isSharedCheck_1853_ = !lean_is_exclusive(v___x_1806_); -if (v_isSharedCheck_1853_ == 0) -{ -v___x_1848_ = v___x_1806_; -v_isShared_1849_ = v_isSharedCheck_1853_; -goto v_resetjp_1847_; -} -else -{ -lean_inc(v_a_1846_); -lean_dec(v___x_1806_); -v___x_1848_ = lean_box(0); -v_isShared_1849_ = v_isSharedCheck_1853_; -goto v_resetjp_1847_; -} -v_resetjp_1847_: -{ -lean_object* v___x_1851_; -if (v_isShared_1849_ == 0) -{ -v___x_1851_ = v___x_1848_; -goto v_reusejp_1850_; -} -else -{ -lean_object* v_reuseFailAlloc_1852_; -v_reuseFailAlloc_1852_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1852_, 0, v_a_1846_); -v___x_1851_ = v_reuseFailAlloc_1852_; -goto v_reusejp_1850_; -} -v_reusejp_1850_: -{ -return v___x_1851_; -} -} -} -v___jp_1754_: -{ -if (v___y_1756_ == 0) -{ -lean_object* v___x_1757_; -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1757_ = lean_apply_5(v___f_1742_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -if (lean_obj_tag(v___x_1757_) == 0) -{ -lean_object* v_a_1758_; uint8_t v___x_1759_; -v_a_1758_ = lean_ctor_get(v___x_1757_, 0); -lean_inc(v_a_1758_); -lean_dec_ref(v___x_1757_); -v___x_1759_ = lean_unbox(v_a_1758_); -lean_dec(v_a_1758_); -if (v___x_1759_ == 0) -{ -lean_object* v___x_1760_; -lean_dec_ref(v___y_1755_); -lean_dec(v_cls_1745_); -lean_dec(v_fst_1740_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1760_ = lean_apply_6(v___f_1743_, v___x_1744_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1760_; -} -else -{ -lean_object* v___x_1761_; lean_object* v___x_1762_; lean_object* v___x_1763_; lean_object* v___x_1764_; lean_object* v___x_1765_; lean_object* v___x_1766_; lean_object* v___x_1767_; lean_object* v___x_1768_; -v___x_1761_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1); -v___x_1762_ = l_Lean_MessageData_ofName(v_fst_1740_); -v___x_1763_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1763_, 0, v___x_1761_); -lean_ctor_set(v___x_1763_, 1, v___x_1762_); -v___x_1764_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -v___x_1765_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1765_, 0, v___x_1763_); -lean_ctor_set(v___x_1765_, 1, v___x_1764_); -v___x_1766_ = l_Lean_Exception_toMessageData(v___y_1755_); -v___x_1767_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_1767_, 0, v___x_1765_); -lean_ctor_set(v___x_1767_, 1, v___x_1766_); -v___x_1768_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_1745_, v___x_1767_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_); -if (lean_obj_tag(v___x_1768_) == 0) -{ -lean_object* v_a_1769_; lean_object* v___x_1770_; -v_a_1769_ = lean_ctor_get(v___x_1768_, 0); -lean_inc(v_a_1769_); -lean_dec_ref(v___x_1768_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1770_ = lean_apply_6(v___f_1743_, v_a_1769_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1770_; -} -else -{ -lean_object* v_a_1771_; lean_object* v___x_1773_; uint8_t v_isShared_1774_; uint8_t v_isSharedCheck_1778_; -lean_dec_ref(v___f_1743_); -v_a_1771_ = lean_ctor_get(v___x_1768_, 0); -v_isSharedCheck_1778_ = !lean_is_exclusive(v___x_1768_); -if (v_isSharedCheck_1778_ == 0) -{ -v___x_1773_ = v___x_1768_; -v_isShared_1774_ = v_isSharedCheck_1778_; +lean_object* v_unused_1780_; +v_unused_1780_ = lean_ctor_get(v___x_1771_, 0); +lean_dec(v_unused_1780_); +v___x_1773_ = v___x_1771_; +v_isShared_1774_ = v_isSharedCheck_1779_; goto v_resetjp_1772_; } else { -lean_inc(v_a_1771_); -lean_dec(v___x_1768_); +lean_dec(v___x_1771_); v___x_1773_ = lean_box(0); -v_isShared_1774_ = v_isSharedCheck_1778_; +v_isShared_1774_ = v_isSharedCheck_1779_; goto v_resetjp_1772_; } v_resetjp_1772_: { -lean_object* v___x_1776_; +lean_object* v___x_1775_; lean_object* v___x_1777_; +v___x_1775_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1775_, 0, v___x_1755_); if (v_isShared_1774_ == 0) { -v___x_1776_ = v___x_1773_; -goto v_reusejp_1775_; +lean_ctor_set(v___x_1773_, 0, v___x_1775_); +v___x_1777_ = v___x_1773_; +goto v_reusejp_1776_; } else { -lean_object* v_reuseFailAlloc_1777_; -v_reuseFailAlloc_1777_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1777_, 0, v_a_1771_); -v___x_1776_ = v_reuseFailAlloc_1777_; -goto v_reusejp_1775_; +lean_object* v_reuseFailAlloc_1778_; +v_reuseFailAlloc_1778_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1778_, 0, v___x_1775_); +v___x_1777_ = v_reuseFailAlloc_1778_; +goto v_reusejp_1776_; } -v_reusejp_1775_: +v_reusejp_1776_: { -return v___x_1776_; +return v___x_1777_; +} +} +} +else +{ +lean_object* v_a_1781_; lean_object* v___x_1783_; uint8_t v_isShared_1784_; uint8_t v_isSharedCheck_1788_; +v_a_1781_ = lean_ctor_get(v___x_1771_, 0); +v_isSharedCheck_1788_ = !lean_is_exclusive(v___x_1771_); +if (v_isSharedCheck_1788_ == 0) +{ +v___x_1783_ = v___x_1771_; +v_isShared_1784_ = v_isSharedCheck_1788_; +goto v_resetjp_1782_; +} +else +{ +lean_inc(v_a_1781_); +lean_dec(v___x_1771_); +v___x_1783_ = lean_box(0); +v_isShared_1784_ = v_isSharedCheck_1788_; +goto v_resetjp_1782_; +} +v_resetjp_1782_: +{ +lean_object* v___x_1786_; +if (v_isShared_1784_ == 0) +{ +v___x_1786_ = v___x_1783_; +goto v_reusejp_1785_; +} +else +{ +lean_object* v_reuseFailAlloc_1787_; +v_reuseFailAlloc_1787_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1787_, 0, v_a_1781_); +v___x_1786_ = v_reuseFailAlloc_1787_; +goto v_reusejp_1785_; +} +v_reusejp_1785_: +{ +return v___x_1786_; +} +} +} +} +else +{ +lean_object* v___x_1789_; +lean_inc(v___y_1766_); +lean_inc_ref(v___y_1765_); +lean_inc(v___y_1764_); +lean_inc_ref(v___y_1763_); +lean_inc_ref(v___x_1754_); +v___x_1789_ = lean_infer_type(v___x_1754_, v___y_1763_, v___y_1764_, v___y_1765_, v___y_1766_); +if (lean_obj_tag(v___x_1789_) == 0) +{ +lean_object* v_a_1790_; lean_object* v___x_1791_; +v_a_1790_ = lean_ctor_get(v___x_1789_, 0); +lean_inc(v_a_1790_); +lean_dec_ref(v___x_1789_); +lean_inc_ref(v_a_1756_); +v___x_1791_ = l_Lean_Meta_isExprDefEq(v_a_1756_, v_a_1790_, v___y_1763_, v___y_1764_, v___y_1765_, v___y_1766_); +if (lean_obj_tag(v___x_1791_) == 0) +{ +lean_object* v_a_1792_; uint8_t v___x_1793_; +v_a_1792_ = lean_ctor_get(v___x_1791_, 0); +lean_inc(v_a_1792_); +lean_dec_ref(v___x_1791_); +v___x_1793_ = lean_unbox(v_a_1792_); +lean_dec(v_a_1792_); +if (v___x_1793_ == 0) +{ +lean_object* v___x_1794_; lean_object* v___x_1795_; +v___x_1794_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_1795_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_1794_, v___y_1766_); +if (lean_obj_tag(v___x_1795_) == 0) +{ +lean_object* v_a_1796_; lean_object* v___y_1798_; lean_object* v___y_1799_; lean_object* v___y_1819_; lean_object* v___y_1820_; lean_object* v___x_1833_; +v_a_1796_ = lean_ctor_get(v___x_1795_, 0); +lean_inc_n(v_a_1796_, 2); +lean_dec_ref(v___x_1795_); +v___x_1833_ = l_Lean_Meta_mkAuxDefinition(v_a_1796_, v_a_1756_, v___x_1754_, v___x_1757_, v___x_1757_, v___x_1758_, v___y_1763_, v___y_1764_, v___y_1765_, v___y_1766_); +if (lean_obj_tag(v___x_1833_) == 0) +{ +lean_object* v_a_1834_; lean_object* v___x_1835_; +v_a_1834_ = lean_ctor_get(v___x_1833_, 0); +lean_inc(v_a_1834_); +lean_dec_ref(v___x_1833_); +v___x_1835_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1753_, v_a_1834_, v___y_1764_); +if (lean_obj_tag(v___x_1835_) == 0) +{ +uint8_t v___x_1836_; lean_object* v___x_1837_; +lean_dec_ref(v___x_1835_); +v___x_1836_ = 0; +lean_inc(v_a_1796_); +v___x_1837_ = l_Lean_Meta_setInlineAttribute(v_a_1796_, v___x_1836_, v___y_1763_, v___y_1764_, v___y_1765_, v___y_1766_); +if (lean_obj_tag(v___x_1837_) == 0) +{ +lean_dec_ref(v___x_1837_); +if (v_isMeta_1761_ == 0) +{ +v___y_1819_ = v___y_1765_; +v___y_1820_ = v___y_1766_; +goto v___jp_1818_; +} +else +{ +lean_object* v___x_1838_; lean_object* v_env_1839_; lean_object* v_nextMacroScope_1840_; lean_object* v_ngen_1841_; lean_object* v_auxDeclNGen_1842_; lean_object* v_traceState_1843_; lean_object* v_messages_1844_; lean_object* v_infoState_1845_; lean_object* v_snapshotTasks_1846_; lean_object* v___x_1848_; uint8_t v_isShared_1849_; uint8_t v_isSharedCheck_1871_; +v___x_1838_ = lean_st_ref_take(v___y_1766_); +v_env_1839_ = lean_ctor_get(v___x_1838_, 0); +v_nextMacroScope_1840_ = lean_ctor_get(v___x_1838_, 1); +v_ngen_1841_ = lean_ctor_get(v___x_1838_, 2); +v_auxDeclNGen_1842_ = lean_ctor_get(v___x_1838_, 3); +v_traceState_1843_ = lean_ctor_get(v___x_1838_, 4); +v_messages_1844_ = lean_ctor_get(v___x_1838_, 6); +v_infoState_1845_ = lean_ctor_get(v___x_1838_, 7); +v_snapshotTasks_1846_ = lean_ctor_get(v___x_1838_, 8); +v_isSharedCheck_1871_ = !lean_is_exclusive(v___x_1838_); +if (v_isSharedCheck_1871_ == 0) +{ +lean_object* v_unused_1872_; +v_unused_1872_ = lean_ctor_get(v___x_1838_, 5); +lean_dec(v_unused_1872_); +v___x_1848_ = v___x_1838_; +v_isShared_1849_ = v_isSharedCheck_1871_; +goto v_resetjp_1847_; +} +else +{ +lean_inc(v_snapshotTasks_1846_); +lean_inc(v_infoState_1845_); +lean_inc(v_messages_1844_); +lean_inc(v_traceState_1843_); +lean_inc(v_auxDeclNGen_1842_); +lean_inc(v_ngen_1841_); +lean_inc(v_nextMacroScope_1840_); +lean_inc(v_env_1839_); +lean_dec(v___x_1838_); +v___x_1848_ = lean_box(0); +v_isShared_1849_ = v_isSharedCheck_1871_; +goto v_resetjp_1847_; +} +v_resetjp_1847_: +{ +lean_object* v___x_1850_; lean_object* v___x_1851_; lean_object* v___x_1853_; +lean_inc(v_a_1796_); +v___x_1850_ = l_Lean_markMeta(v_env_1839_, v_a_1796_); +v___x_1851_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_1849_ == 0) +{ +lean_ctor_set(v___x_1848_, 5, v___x_1851_); +lean_ctor_set(v___x_1848_, 0, v___x_1850_); +v___x_1853_ = v___x_1848_; +goto v_reusejp_1852_; +} +else +{ +lean_object* v_reuseFailAlloc_1870_; +v_reuseFailAlloc_1870_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_1870_, 0, v___x_1850_); +lean_ctor_set(v_reuseFailAlloc_1870_, 1, v_nextMacroScope_1840_); +lean_ctor_set(v_reuseFailAlloc_1870_, 2, v_ngen_1841_); +lean_ctor_set(v_reuseFailAlloc_1870_, 3, v_auxDeclNGen_1842_); +lean_ctor_set(v_reuseFailAlloc_1870_, 4, v_traceState_1843_); +lean_ctor_set(v_reuseFailAlloc_1870_, 5, v___x_1851_); +lean_ctor_set(v_reuseFailAlloc_1870_, 6, v_messages_1844_); +lean_ctor_set(v_reuseFailAlloc_1870_, 7, v_infoState_1845_); +lean_ctor_set(v_reuseFailAlloc_1870_, 8, v_snapshotTasks_1846_); +v___x_1853_ = v_reuseFailAlloc_1870_; +goto v_reusejp_1852_; +} +v_reusejp_1852_: +{ +lean_object* v___x_1854_; lean_object* v___x_1855_; lean_object* v_mctx_1856_; lean_object* v_zetaDeltaFVarIds_1857_; lean_object* v_postponed_1858_; lean_object* v_diag_1859_; lean_object* v___x_1861_; uint8_t v_isShared_1862_; uint8_t v_isSharedCheck_1868_; +v___x_1854_ = lean_st_ref_set(v___y_1766_, v___x_1853_); +v___x_1855_ = lean_st_ref_take(v___y_1764_); +v_mctx_1856_ = lean_ctor_get(v___x_1855_, 0); +v_zetaDeltaFVarIds_1857_ = lean_ctor_get(v___x_1855_, 2); +v_postponed_1858_ = lean_ctor_get(v___x_1855_, 3); +v_diag_1859_ = lean_ctor_get(v___x_1855_, 4); +v_isSharedCheck_1868_ = !lean_is_exclusive(v___x_1855_); +if (v_isSharedCheck_1868_ == 0) +{ +lean_object* v_unused_1869_; +v_unused_1869_ = lean_ctor_get(v___x_1855_, 1); +lean_dec(v_unused_1869_); +v___x_1861_ = v___x_1855_; +v_isShared_1862_ = v_isSharedCheck_1868_; +goto v_resetjp_1860_; +} +else +{ +lean_inc(v_diag_1859_); +lean_inc(v_postponed_1858_); +lean_inc(v_zetaDeltaFVarIds_1857_); +lean_inc(v_mctx_1856_); +lean_dec(v___x_1855_); +v___x_1861_ = lean_box(0); +v_isShared_1862_ = v_isSharedCheck_1868_; +goto v_resetjp_1860_; +} +v_resetjp_1860_: +{ +lean_object* v___x_1863_; lean_object* v___x_1865_; +v___x_1863_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_1862_ == 0) +{ +lean_ctor_set(v___x_1861_, 1, v___x_1863_); +v___x_1865_ = v___x_1861_; +goto v_reusejp_1864_; +} +else +{ +lean_object* v_reuseFailAlloc_1867_; +v_reuseFailAlloc_1867_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_1867_, 0, v_mctx_1856_); +lean_ctor_set(v_reuseFailAlloc_1867_, 1, v___x_1863_); +lean_ctor_set(v_reuseFailAlloc_1867_, 2, v_zetaDeltaFVarIds_1857_); +lean_ctor_set(v_reuseFailAlloc_1867_, 3, v_postponed_1858_); +lean_ctor_set(v_reuseFailAlloc_1867_, 4, v_diag_1859_); +v___x_1865_ = v_reuseFailAlloc_1867_; +goto v_reusejp_1864_; +} +v_reusejp_1864_: +{ +lean_object* v___x_1866_; +v___x_1866_ = lean_st_ref_set(v___y_1764_, v___x_1865_); +v___y_1819_ = v___y_1765_; +v___y_1820_ = v___y_1766_; +goto v___jp_1818_; +} } } } @@ -5597,481 +5731,852 @@ return v___x_1776_; } else { -lean_object* v_a_1779_; lean_object* v___x_1781_; uint8_t v_isShared_1782_; uint8_t v_isSharedCheck_1786_; -lean_dec_ref(v___y_1755_); -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1743_); -lean_dec(v_fst_1740_); -v_a_1779_ = lean_ctor_get(v___x_1757_, 0); -v_isSharedCheck_1786_ = !lean_is_exclusive(v___x_1757_); -if (v_isSharedCheck_1786_ == 0) +lean_object* v_a_1873_; lean_object* v___x_1875_; uint8_t v_isShared_1876_; uint8_t v_isSharedCheck_1880_; +lean_dec(v_a_1796_); +v_a_1873_ = lean_ctor_get(v___x_1837_, 0); +v_isSharedCheck_1880_ = !lean_is_exclusive(v___x_1837_); +if (v_isSharedCheck_1880_ == 0) { -v___x_1781_ = v___x_1757_; -v_isShared_1782_ = v_isSharedCheck_1786_; -goto v_resetjp_1780_; +v___x_1875_ = v___x_1837_; +v_isShared_1876_ = v_isSharedCheck_1880_; +goto v_resetjp_1874_; } else { -lean_inc(v_a_1779_); -lean_dec(v___x_1757_); -v___x_1781_ = lean_box(0); -v_isShared_1782_ = v_isSharedCheck_1786_; -goto v_resetjp_1780_; +lean_inc(v_a_1873_); +lean_dec(v___x_1837_); +v___x_1875_ = lean_box(0); +v_isShared_1876_ = v_isSharedCheck_1880_; +goto v_resetjp_1874_; } -v_resetjp_1780_: +v_resetjp_1874_: { -lean_object* v___x_1784_; -if (v_isShared_1782_ == 0) +lean_object* v___x_1878_; +if (v_isShared_1876_ == 0) { -v___x_1784_ = v___x_1781_; -goto v_reusejp_1783_; +v___x_1878_ = v___x_1875_; +goto v_reusejp_1877_; } else { -lean_object* v_reuseFailAlloc_1785_; -v_reuseFailAlloc_1785_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1785_, 0, v_a_1779_); -v___x_1784_ = v_reuseFailAlloc_1785_; -goto v_reusejp_1783_; +lean_object* v_reuseFailAlloc_1879_; +v_reuseFailAlloc_1879_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1879_, 0, v_a_1873_); +v___x_1878_ = v_reuseFailAlloc_1879_; +goto v_reusejp_1877_; } -v_reusejp_1783_: +v_reusejp_1877_: { -return v___x_1784_; -} -} -} -} -else -{ -lean_object* v___x_1787_; -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1743_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -v___x_1787_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1787_, 0, v___y_1755_); -return v___x_1787_; -} -} -v___jp_1788_: -{ -uint8_t v___x_1790_; -v___x_1790_ = l_Lean_Exception_isInterrupt(v_a_1789_); -if (v___x_1790_ == 0) -{ -uint8_t v___x_1791_; -lean_inc_ref(v_a_1789_); -v___x_1791_ = l_Lean_Exception_isRuntime(v_a_1789_); -v___y_1755_ = v_a_1789_; -v___y_1756_ = v___x_1791_; -goto v___jp_1754_; -} -else -{ -v___y_1755_ = v_a_1789_; -v___y_1756_ = v___x_1790_; -goto v___jp_1754_; -} -} -v___jp_1792_: -{ -if (lean_obj_tag(v___y_1793_) == 0) -{ -lean_object* v_a_1794_; lean_object* v___x_1796_; uint8_t v_isShared_1797_; uint8_t v_isSharedCheck_1804_; -lean_dec(v_cls_1745_); -lean_dec_ref(v___f_1742_); -lean_dec(v_fst_1740_); -v_a_1794_ = lean_ctor_get(v___y_1793_, 0); -v_isSharedCheck_1804_ = !lean_is_exclusive(v___y_1793_); -if (v_isSharedCheck_1804_ == 0) -{ -v___x_1796_ = v___y_1793_; -v_isShared_1797_ = v_isSharedCheck_1804_; -goto v_resetjp_1795_; -} -else -{ -lean_inc(v_a_1794_); -lean_dec(v___y_1793_); -v___x_1796_ = lean_box(0); -v_isShared_1797_ = v_isSharedCheck_1804_; -goto v_resetjp_1795_; -} -v_resetjp_1795_: -{ -if (lean_obj_tag(v_a_1794_) == 0) -{ -lean_object* v___x_1798_; lean_object* v___x_1800_; -lean_dec_ref(v___f_1743_); -v___x_1798_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1798_, 0, v___x_1744_); -if (v_isShared_1797_ == 0) -{ -lean_ctor_set(v___x_1796_, 0, v___x_1798_); -v___x_1800_ = v___x_1796_; -goto v_reusejp_1799_; -} -else -{ -lean_object* v_reuseFailAlloc_1801_; -v_reuseFailAlloc_1801_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1801_, 0, v___x_1798_); -v___x_1800_ = v_reuseFailAlloc_1801_; -goto v_reusejp_1799_; -} -v_reusejp_1799_: -{ -return v___x_1800_; -} -} -else -{ -lean_object* v_a_1802_; lean_object* v___x_1803_; -lean_del_object(v___x_1796_); -v_a_1802_ = lean_ctor_get(v_a_1794_, 0); -lean_inc(v_a_1802_); -lean_dec_ref(v_a_1794_); -lean_inc(v___y_1752_); -lean_inc_ref(v___y_1751_); -lean_inc(v___y_1750_); -lean_inc_ref(v___y_1749_); -v___x_1803_ = lean_apply_6(v___f_1743_, v_a_1802_, v___y_1749_, v___y_1750_, v___y_1751_, v___y_1752_, lean_box(0)); -return v___x_1803_; -} -} -} -else -{ -lean_object* v_a_1805_; -v_a_1805_ = lean_ctor_get(v___y_1793_, 0); -lean_inc(v_a_1805_); -lean_dec_ref(v___y_1793_); -v_a_1789_ = v_a_1805_; -goto v___jp_1788_; -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___boxed(lean_object* v_val_1854_, lean_object* v_fst_1855_, lean_object* v_expectedType_1856_, lean_object* v___f_1857_, lean_object* v___f_1858_, lean_object* v___x_1859_, lean_object* v_cls_1860_, lean_object* v_snd_1861_, lean_object* v___x_1862_, lean_object* v_____r_1863_, lean_object* v___y_1864_, lean_object* v___y_1865_, lean_object* v___y_1866_, lean_object* v___y_1867_, lean_object* v___y_1868_){ -_start: -{ -lean_object* v_res_1869_; -v_res_1869_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(v_val_1854_, v_fst_1855_, v_expectedType_1856_, v___f_1857_, v___f_1858_, v___x_1859_, v_cls_1860_, v_snd_1861_, v___x_1862_, v_____r_1863_, v___y_1864_, v___y_1865_, v___y_1866_, v___y_1867_); -lean_dec(v___y_1867_); -lean_dec_ref(v___y_1866_); -lean_dec(v___y_1865_); -lean_dec_ref(v___y_1864_); -return v_res_1869_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(lean_object* v___x_1870_, lean_object* v_____r_1871_, lean_object* v___y_1872_, lean_object* v___y_1873_, lean_object* v___y_1874_, lean_object* v___y_1875_){ -_start: -{ -lean_object* v___x_1877_; lean_object* v___x_1878_; -v___x_1877_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1877_, 0, v___x_1870_); -v___x_1878_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1878_, 0, v___x_1877_); return v___x_1878_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6___boxed(lean_object* v___x_1879_, lean_object* v_____r_1880_, lean_object* v___y_1881_, lean_object* v___y_1882_, lean_object* v___y_1883_, lean_object* v___y_1884_, lean_object* v___y_1885_){ +} +} +else +{ +lean_object* v_a_1881_; lean_object* v___x_1883_; uint8_t v_isShared_1884_; uint8_t v_isSharedCheck_1888_; +lean_dec(v_a_1796_); +v_a_1881_ = lean_ctor_get(v___x_1835_, 0); +v_isSharedCheck_1888_ = !lean_is_exclusive(v___x_1835_); +if (v_isSharedCheck_1888_ == 0) +{ +v___x_1883_ = v___x_1835_; +v_isShared_1884_ = v_isSharedCheck_1888_; +goto v_resetjp_1882_; +} +else +{ +lean_inc(v_a_1881_); +lean_dec(v___x_1835_); +v___x_1883_ = lean_box(0); +v_isShared_1884_ = v_isSharedCheck_1888_; +goto v_resetjp_1882_; +} +v_resetjp_1882_: +{ +lean_object* v___x_1886_; +if (v_isShared_1884_ == 0) +{ +v___x_1886_ = v___x_1883_; +goto v_reusejp_1885_; +} +else +{ +lean_object* v_reuseFailAlloc_1887_; +v_reuseFailAlloc_1887_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1887_, 0, v_a_1881_); +v___x_1886_ = v_reuseFailAlloc_1887_; +goto v_reusejp_1885_; +} +v_reusejp_1885_: +{ +return v___x_1886_; +} +} +} +} +else +{ +lean_object* v_a_1889_; lean_object* v___x_1891_; uint8_t v_isShared_1892_; uint8_t v_isSharedCheck_1896_; +lean_dec(v_a_1796_); +lean_dec(v___x_1753_); +v_a_1889_ = lean_ctor_get(v___x_1833_, 0); +v_isSharedCheck_1896_ = !lean_is_exclusive(v___x_1833_); +if (v_isSharedCheck_1896_ == 0) +{ +v___x_1891_ = v___x_1833_; +v_isShared_1892_ = v_isSharedCheck_1896_; +goto v_resetjp_1890_; +} +else +{ +lean_inc(v_a_1889_); +lean_dec(v___x_1833_); +v___x_1891_ = lean_box(0); +v_isShared_1892_ = v_isSharedCheck_1896_; +goto v_resetjp_1890_; +} +v_resetjp_1890_: +{ +lean_object* v___x_1894_; +if (v_isShared_1892_ == 0) +{ +v___x_1894_ = v___x_1891_; +goto v_reusejp_1893_; +} +else +{ +lean_object* v_reuseFailAlloc_1895_; +v_reuseFailAlloc_1895_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1895_, 0, v_a_1889_); +v___x_1894_ = v_reuseFailAlloc_1895_; +goto v_reusejp_1893_; +} +v_reusejp_1893_: +{ +return v___x_1894_; +} +} +} +v___jp_1797_: +{ +lean_object* v___x_1800_; +v___x_1800_ = l_Lean_enableRealizationsForConst(v_a_1796_, v___y_1798_, v___y_1799_); +if (lean_obj_tag(v___x_1800_) == 0) +{ +lean_object* v___x_1802_; uint8_t v_isShared_1803_; uint8_t v_isSharedCheck_1808_; +v_isSharedCheck_1808_ = !lean_is_exclusive(v___x_1800_); +if (v_isSharedCheck_1808_ == 0) +{ +lean_object* v_unused_1809_; +v_unused_1809_ = lean_ctor_get(v___x_1800_, 0); +lean_dec(v_unused_1809_); +v___x_1802_ = v___x_1800_; +v_isShared_1803_ = v_isSharedCheck_1808_; +goto v_resetjp_1801_; +} +else +{ +lean_dec(v___x_1800_); +v___x_1802_ = lean_box(0); +v_isShared_1803_ = v_isSharedCheck_1808_; +goto v_resetjp_1801_; +} +v_resetjp_1801_: +{ +lean_object* v___x_1804_; lean_object* v___x_1806_; +v___x_1804_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1804_, 0, v___x_1755_); +if (v_isShared_1803_ == 0) +{ +lean_ctor_set(v___x_1802_, 0, v___x_1804_); +v___x_1806_ = v___x_1802_; +goto v_reusejp_1805_; +} +else +{ +lean_object* v_reuseFailAlloc_1807_; +v_reuseFailAlloc_1807_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1807_, 0, v___x_1804_); +v___x_1806_ = v_reuseFailAlloc_1807_; +goto v_reusejp_1805_; +} +v_reusejp_1805_: +{ +return v___x_1806_; +} +} +} +else +{ +lean_object* v_a_1810_; lean_object* v___x_1812_; uint8_t v_isShared_1813_; uint8_t v_isSharedCheck_1817_; +v_a_1810_ = lean_ctor_get(v___x_1800_, 0); +v_isSharedCheck_1817_ = !lean_is_exclusive(v___x_1800_); +if (v_isSharedCheck_1817_ == 0) +{ +v___x_1812_ = v___x_1800_; +v_isShared_1813_ = v_isSharedCheck_1817_; +goto v_resetjp_1811_; +} +else +{ +lean_inc(v_a_1810_); +lean_dec(v___x_1800_); +v___x_1812_ = lean_box(0); +v_isShared_1813_ = v_isSharedCheck_1817_; +goto v_resetjp_1811_; +} +v_resetjp_1811_: +{ +lean_object* v___x_1815_; +if (v_isShared_1813_ == 0) +{ +v___x_1815_ = v___x_1812_; +goto v_reusejp_1814_; +} +else +{ +lean_object* v_reuseFailAlloc_1816_; +v_reuseFailAlloc_1816_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1816_, 0, v_a_1810_); +v___x_1815_ = v_reuseFailAlloc_1816_; +goto v_reusejp_1814_; +} +v_reusejp_1814_: +{ +return v___x_1815_; +} +} +} +} +v___jp_1818_: +{ +if (v_compile_1759_ == 0) +{ +v___y_1798_ = v___y_1819_; +v___y_1799_ = v___y_1820_; +goto v___jp_1797_; +} +else +{ +lean_object* v___x_1821_; lean_object* v___x_1822_; lean_object* v___x_1823_; lean_object* v___x_1824_; +v___x_1821_ = lean_unsigned_to_nat(1u); +v___x_1822_ = lean_mk_empty_array_with_capacity(v___x_1821_); +lean_inc(v_a_1796_); +v___x_1823_ = lean_array_push(v___x_1822_, v_a_1796_); +v___x_1824_ = l_Lean_compileDecls(v___x_1823_, v_logCompileErrors_1760_, v___y_1819_, v___y_1820_); +if (lean_obj_tag(v___x_1824_) == 0) +{ +lean_dec_ref(v___x_1824_); +v___y_1798_ = v___y_1819_; +v___y_1799_ = v___y_1820_; +goto v___jp_1797_; +} +else +{ +lean_object* v_a_1825_; lean_object* v___x_1827_; uint8_t v_isShared_1828_; uint8_t v_isSharedCheck_1832_; +lean_dec(v_a_1796_); +v_a_1825_ = lean_ctor_get(v___x_1824_, 0); +v_isSharedCheck_1832_ = !lean_is_exclusive(v___x_1824_); +if (v_isSharedCheck_1832_ == 0) +{ +v___x_1827_ = v___x_1824_; +v_isShared_1828_ = v_isSharedCheck_1832_; +goto v_resetjp_1826_; +} +else +{ +lean_inc(v_a_1825_); +lean_dec(v___x_1824_); +v___x_1827_ = lean_box(0); +v_isShared_1828_ = v_isSharedCheck_1832_; +goto v_resetjp_1826_; +} +v_resetjp_1826_: +{ +lean_object* v___x_1830_; +if (v_isShared_1828_ == 0) +{ +v___x_1830_ = v___x_1827_; +goto v_reusejp_1829_; +} +else +{ +lean_object* v_reuseFailAlloc_1831_; +v_reuseFailAlloc_1831_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1831_, 0, v_a_1825_); +v___x_1830_ = v_reuseFailAlloc_1831_; +goto v_reusejp_1829_; +} +v_reusejp_1829_: +{ +return v___x_1830_; +} +} +} +} +} +} +else +{ +lean_object* v_a_1897_; lean_object* v___x_1899_; uint8_t v_isShared_1900_; uint8_t v_isSharedCheck_1904_; +lean_dec_ref(v_a_1756_); +lean_dec_ref(v___x_1754_); +lean_dec(v___x_1753_); +v_a_1897_ = lean_ctor_get(v___x_1795_, 0); +v_isSharedCheck_1904_ = !lean_is_exclusive(v___x_1795_); +if (v_isSharedCheck_1904_ == 0) +{ +v___x_1899_ = v___x_1795_; +v_isShared_1900_ = v_isSharedCheck_1904_; +goto v_resetjp_1898_; +} +else +{ +lean_inc(v_a_1897_); +lean_dec(v___x_1795_); +v___x_1899_ = lean_box(0); +v_isShared_1900_ = v_isSharedCheck_1904_; +goto v_resetjp_1898_; +} +v_resetjp_1898_: +{ +lean_object* v___x_1902_; +if (v_isShared_1900_ == 0) +{ +v___x_1902_ = v___x_1899_; +goto v_reusejp_1901_; +} +else +{ +lean_object* v_reuseFailAlloc_1903_; +v_reuseFailAlloc_1903_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1903_, 0, v_a_1897_); +v___x_1902_ = v_reuseFailAlloc_1903_; +goto v_reusejp_1901_; +} +v_reusejp_1901_: +{ +return v___x_1902_; +} +} +} +} +else +{ +lean_object* v___x_1905_; +lean_dec_ref(v_a_1756_); +v___x_1905_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1753_, v___x_1754_, v___y_1764_); +if (lean_obj_tag(v___x_1905_) == 0) +{ +lean_object* v___x_1907_; uint8_t v_isShared_1908_; uint8_t v_isSharedCheck_1913_; +v_isSharedCheck_1913_ = !lean_is_exclusive(v___x_1905_); +if (v_isSharedCheck_1913_ == 0) +{ +lean_object* v_unused_1914_; +v_unused_1914_ = lean_ctor_get(v___x_1905_, 0); +lean_dec(v_unused_1914_); +v___x_1907_ = v___x_1905_; +v_isShared_1908_ = v_isSharedCheck_1913_; +goto v_resetjp_1906_; +} +else +{ +lean_dec(v___x_1905_); +v___x_1907_ = lean_box(0); +v_isShared_1908_ = v_isSharedCheck_1913_; +goto v_resetjp_1906_; +} +v_resetjp_1906_: +{ +lean_object* v___x_1909_; lean_object* v___x_1911_; +v___x_1909_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1909_, 0, v___x_1755_); +if (v_isShared_1908_ == 0) +{ +lean_ctor_set(v___x_1907_, 0, v___x_1909_); +v___x_1911_ = v___x_1907_; +goto v_reusejp_1910_; +} +else +{ +lean_object* v_reuseFailAlloc_1912_; +v_reuseFailAlloc_1912_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1912_, 0, v___x_1909_); +v___x_1911_ = v_reuseFailAlloc_1912_; +goto v_reusejp_1910_; +} +v_reusejp_1910_: +{ +return v___x_1911_; +} +} +} +else +{ +lean_object* v_a_1915_; lean_object* v___x_1917_; uint8_t v_isShared_1918_; uint8_t v_isSharedCheck_1922_; +v_a_1915_ = lean_ctor_get(v___x_1905_, 0); +v_isSharedCheck_1922_ = !lean_is_exclusive(v___x_1905_); +if (v_isSharedCheck_1922_ == 0) +{ +v___x_1917_ = v___x_1905_; +v_isShared_1918_ = v_isSharedCheck_1922_; +goto v_resetjp_1916_; +} +else +{ +lean_inc(v_a_1915_); +lean_dec(v___x_1905_); +v___x_1917_ = lean_box(0); +v_isShared_1918_ = v_isSharedCheck_1922_; +goto v_resetjp_1916_; +} +v_resetjp_1916_: +{ +lean_object* v___x_1920_; +if (v_isShared_1918_ == 0) +{ +v___x_1920_ = v___x_1917_; +goto v_reusejp_1919_; +} +else +{ +lean_object* v_reuseFailAlloc_1921_; +v_reuseFailAlloc_1921_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1921_, 0, v_a_1915_); +v___x_1920_ = v_reuseFailAlloc_1921_; +goto v_reusejp_1919_; +} +v_reusejp_1919_: +{ +return v___x_1920_; +} +} +} +} +} +else +{ +lean_object* v_a_1923_; lean_object* v___x_1925_; uint8_t v_isShared_1926_; uint8_t v_isSharedCheck_1930_; +lean_dec_ref(v_a_1756_); +lean_dec_ref(v___x_1754_); +lean_dec(v___x_1753_); +v_a_1923_ = lean_ctor_get(v___x_1791_, 0); +v_isSharedCheck_1930_ = !lean_is_exclusive(v___x_1791_); +if (v_isSharedCheck_1930_ == 0) +{ +v___x_1925_ = v___x_1791_; +v_isShared_1926_ = v_isSharedCheck_1930_; +goto v_resetjp_1924_; +} +else +{ +lean_inc(v_a_1923_); +lean_dec(v___x_1791_); +v___x_1925_ = lean_box(0); +v_isShared_1926_ = v_isSharedCheck_1930_; +goto v_resetjp_1924_; +} +v_resetjp_1924_: +{ +lean_object* v___x_1928_; +if (v_isShared_1926_ == 0) +{ +v___x_1928_ = v___x_1925_; +goto v_reusejp_1927_; +} +else +{ +lean_object* v_reuseFailAlloc_1929_; +v_reuseFailAlloc_1929_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1929_, 0, v_a_1923_); +v___x_1928_ = v_reuseFailAlloc_1929_; +goto v_reusejp_1927_; +} +v_reusejp_1927_: +{ +return v___x_1928_; +} +} +} +} +else +{ +lean_object* v_a_1931_; lean_object* v___x_1933_; uint8_t v_isShared_1934_; uint8_t v_isSharedCheck_1938_; +lean_dec_ref(v_a_1756_); +lean_dec_ref(v___x_1754_); +lean_dec(v___x_1753_); +v_a_1931_ = lean_ctor_get(v___x_1789_, 0); +v_isSharedCheck_1938_ = !lean_is_exclusive(v___x_1789_); +if (v_isSharedCheck_1938_ == 0) +{ +v___x_1933_ = v___x_1789_; +v_isShared_1934_ = v_isSharedCheck_1938_; +goto v_resetjp_1932_; +} +else +{ +lean_inc(v_a_1931_); +lean_dec(v___x_1789_); +v___x_1933_ = lean_box(0); +v_isShared_1934_ = v_isSharedCheck_1938_; +goto v_resetjp_1932_; +} +v_resetjp_1932_: +{ +lean_object* v___x_1936_; +if (v_isShared_1934_ == 0) +{ +v___x_1936_ = v___x_1933_; +goto v_reusejp_1935_; +} +else +{ +lean_object* v_reuseFailAlloc_1937_; +v_reuseFailAlloc_1937_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1937_, 0, v_a_1931_); +v___x_1936_ = v_reuseFailAlloc_1937_; +goto v_reusejp_1935_; +} +v_reusejp_1935_: +{ +return v___x_1936_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___boxed(lean_object* v___x_1939_, lean_object* v___x_1940_, lean_object* v___x_1941_, lean_object* v_a_1942_, lean_object* v___x_1943_, lean_object* v___x_1944_, lean_object* v_compile_1945_, lean_object* v_logCompileErrors_1946_, lean_object* v_isMeta_1947_, lean_object* v_____r_1948_, lean_object* v___y_1949_, lean_object* v___y_1950_, lean_object* v___y_1951_, lean_object* v___y_1952_, lean_object* v___y_1953_){ _start: { -lean_object* v_res_1886_; -v_res_1886_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(v___x_1879_, v_____r_1880_, v___y_1881_, v___y_1882_, v___y_1883_, v___y_1884_); -lean_dec(v___y_1884_); -lean_dec_ref(v___y_1883_); -lean_dec(v___y_1882_); -lean_dec_ref(v___y_1881_); -return v_res_1886_; +uint8_t v___x_159559__boxed_1954_; uint8_t v___x_159560__boxed_1955_; uint8_t v_compile_boxed_1956_; uint8_t v_logCompileErrors_boxed_1957_; uint8_t v_isMeta_boxed_1958_; lean_object* v_res_1959_; +v___x_159559__boxed_1954_ = lean_unbox(v___x_1943_); +v___x_159560__boxed_1955_ = lean_unbox(v___x_1944_); +v_compile_boxed_1956_ = lean_unbox(v_compile_1945_); +v_logCompileErrors_boxed_1957_ = lean_unbox(v_logCompileErrors_1946_); +v_isMeta_boxed_1958_ = lean_unbox(v_isMeta_1947_); +v_res_1959_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_1939_, v___x_1940_, v___x_1941_, v_a_1942_, v___x_159559__boxed_1954_, v___x_159560__boxed_1955_, v_compile_boxed_1956_, v_logCompileErrors_boxed_1957_, v_isMeta_boxed_1958_, v_____r_1948_, v___y_1949_, v___y_1950_, v___y_1951_, v___y_1952_); +lean_dec(v___y_1952_); +lean_dec_ref(v___y_1951_); +lean_dec(v___y_1950_); +lean_dec_ref(v___y_1949_); +return v_res_1959_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(lean_object* v___x_1890_, lean_object* v___x_1891_, lean_object* v___x_1892_, lean_object* v_a_1893_, uint8_t v___x_1894_, uint8_t v___x_1895_, uint8_t v_compile_1896_, uint8_t v_logCompileErrors_1897_, uint8_t v_isMeta_1898_, lean_object* v_____r_1899_, lean_object* v___y_1900_, lean_object* v___y_1901_, lean_object* v___y_1902_, lean_object* v___y_1903_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(lean_object* v___x_1960_, lean_object* v_a_1961_, lean_object* v_____r_1962_, lean_object* v___y_1963_, lean_object* v___y_1964_, lean_object* v___y_1965_, lean_object* v___y_1966_){ _start: { -lean_object* v_options_1905_; lean_object* v___x_1906_; uint8_t v___x_1907_; -v_options_1905_ = lean_ctor_get(v___y_1902_, 2); -v___x_1906_ = l_Lean_Meta_backward_inferInstanceAs_wrap_data; -v___x_1907_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_1905_, v___x_1906_); -if (v___x_1907_ == 0) +lean_object* v___x_1968_; +v___x_1968_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_1960_, v_a_1961_, v___y_1964_); +if (lean_obj_tag(v___x_1968_) == 0) { -lean_object* v___x_1908_; -lean_dec_ref(v_a_1893_); -v___x_1908_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_1890_, v___x_1891_, v___y_1901_); -if (lean_obj_tag(v___x_1908_) == 0) +lean_object* v___x_1970_; uint8_t v_isShared_1971_; uint8_t v_isSharedCheck_1976_; +v_isSharedCheck_1976_ = !lean_is_exclusive(v___x_1968_); +if (v_isSharedCheck_1976_ == 0) { -lean_object* v___x_1910_; uint8_t v_isShared_1911_; uint8_t v_isSharedCheck_1916_; -v_isSharedCheck_1916_ = !lean_is_exclusive(v___x_1908_); -if (v_isSharedCheck_1916_ == 0) -{ -lean_object* v_unused_1917_; -v_unused_1917_ = lean_ctor_get(v___x_1908_, 0); -lean_dec(v_unused_1917_); -v___x_1910_ = v___x_1908_; -v_isShared_1911_ = v_isSharedCheck_1916_; -goto v_resetjp_1909_; +lean_object* v_unused_1977_; +v_unused_1977_ = lean_ctor_get(v___x_1968_, 0); +lean_dec(v_unused_1977_); +v___x_1970_ = v___x_1968_; +v_isShared_1971_ = v_isSharedCheck_1976_; +goto v_resetjp_1969_; } else { -lean_dec(v___x_1908_); -v___x_1910_ = lean_box(0); -v_isShared_1911_ = v_isSharedCheck_1916_; -goto v_resetjp_1909_; +lean_dec(v___x_1968_); +v___x_1970_ = lean_box(0); +v_isShared_1971_ = v_isSharedCheck_1976_; +goto v_resetjp_1969_; } -v_resetjp_1909_: +v_resetjp_1969_: { -lean_object* v___x_1912_; lean_object* v___x_1914_; -v___x_1912_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1912_, 0, v___x_1892_); -if (v_isShared_1911_ == 0) +lean_object* v___x_1972_; lean_object* v___x_1974_; +v___x_1972_ = lean_box(0); +if (v_isShared_1971_ == 0) { -lean_ctor_set(v___x_1910_, 0, v___x_1912_); -v___x_1914_ = v___x_1910_; -goto v_reusejp_1913_; +lean_ctor_set(v___x_1970_, 0, v___x_1972_); +v___x_1974_ = v___x_1970_; +goto v_reusejp_1973_; } else { -lean_object* v_reuseFailAlloc_1915_; -v_reuseFailAlloc_1915_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1915_, 0, v___x_1912_); -v___x_1914_ = v_reuseFailAlloc_1915_; -goto v_reusejp_1913_; +lean_object* v_reuseFailAlloc_1975_; +v_reuseFailAlloc_1975_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1975_, 0, v___x_1972_); +v___x_1974_ = v_reuseFailAlloc_1975_; +goto v_reusejp_1973_; } -v_reusejp_1913_: +v_reusejp_1973_: { -return v___x_1914_; +return v___x_1974_; } } } else { -lean_object* v_a_1918_; lean_object* v___x_1920_; uint8_t v_isShared_1921_; uint8_t v_isSharedCheck_1925_; -v_a_1918_ = lean_ctor_get(v___x_1908_, 0); -v_isSharedCheck_1925_ = !lean_is_exclusive(v___x_1908_); -if (v_isSharedCheck_1925_ == 0) +lean_object* v_a_1978_; lean_object* v___x_1980_; uint8_t v_isShared_1981_; uint8_t v_isSharedCheck_1985_; +v_a_1978_ = lean_ctor_get(v___x_1968_, 0); +v_isSharedCheck_1985_ = !lean_is_exclusive(v___x_1968_); +if (v_isSharedCheck_1985_ == 0) { -v___x_1920_ = v___x_1908_; -v_isShared_1921_ = v_isSharedCheck_1925_; -goto v_resetjp_1919_; +v___x_1980_ = v___x_1968_; +v_isShared_1981_ = v_isSharedCheck_1985_; +goto v_resetjp_1979_; } else { -lean_inc(v_a_1918_); -lean_dec(v___x_1908_); -v___x_1920_ = lean_box(0); -v_isShared_1921_ = v_isSharedCheck_1925_; -goto v_resetjp_1919_; +lean_inc(v_a_1978_); +lean_dec(v___x_1968_); +v___x_1980_ = lean_box(0); +v_isShared_1981_ = v_isSharedCheck_1985_; +goto v_resetjp_1979_; } -v_resetjp_1919_: +v_resetjp_1979_: { -lean_object* v___x_1923_; -if (v_isShared_1921_ == 0) +lean_object* v___x_1983_; +if (v_isShared_1981_ == 0) { -v___x_1923_ = v___x_1920_; -goto v_reusejp_1922_; +v___x_1983_ = v___x_1980_; +goto v_reusejp_1982_; } else { -lean_object* v_reuseFailAlloc_1924_; -v_reuseFailAlloc_1924_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1924_, 0, v_a_1918_); -v___x_1923_ = v_reuseFailAlloc_1924_; -goto v_reusejp_1922_; +lean_object* v_reuseFailAlloc_1984_; +v_reuseFailAlloc_1984_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1984_, 0, v_a_1978_); +v___x_1983_ = v_reuseFailAlloc_1984_; +goto v_reusejp_1982_; } -v_reusejp_1922_: +v_reusejp_1982_: { -return v___x_1923_; +return v___x_1983_; } } } } +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5___boxed(lean_object* v___x_1986_, lean_object* v_a_1987_, lean_object* v_____r_1988_, lean_object* v___y_1989_, lean_object* v___y_1990_, lean_object* v___y_1991_, lean_object* v___y_1992_, lean_object* v___y_1993_){ +_start: +{ +lean_object* v_res_1994_; +v_res_1994_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_1986_, v_a_1987_, v_____r_1988_, v___y_1989_, v___y_1990_, v___y_1991_, v___y_1992_); +lean_dec(v___y_1992_); +lean_dec_ref(v___y_1991_); +lean_dec(v___y_1990_); +lean_dec_ref(v___y_1989_); +return v_res_1994_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(lean_object* v___x_1995_, lean_object* v_____r_1996_, lean_object* v___y_1997_, lean_object* v___y_1998_, lean_object* v___y_1999_, lean_object* v___y_2000_){ +_start: +{ +lean_object* v___x_2002_; lean_object* v___x_2003_; +v___x_2002_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2002_, 0, v___x_1995_); +v___x_2003_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2003_, 0, v___x_2002_); +return v___x_2003_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6___boxed(lean_object* v___x_2004_, lean_object* v_____r_2005_, lean_object* v___y_2006_, lean_object* v___y_2007_, lean_object* v___y_2008_, lean_object* v___y_2009_, lean_object* v___y_2010_){ +_start: +{ +lean_object* v_res_2011_; +v_res_2011_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(v___x_2004_, v_____r_2005_, v___y_2006_, v___y_2007_, v___y_2008_, v___y_2009_); +lean_dec(v___y_2009_); +lean_dec_ref(v___y_2008_); +lean_dec(v___y_2007_); +lean_dec_ref(v___y_2006_); +return v_res_2011_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(lean_object* v_val_2012_, lean_object* v_fst_2013_, lean_object* v_expectedType_2014_, lean_object* v___f_2015_, lean_object* v___f_2016_, lean_object* v___x_2017_, lean_object* v_cls_2018_, lean_object* v_snd_2019_, lean_object* v___x_2020_, lean_object* v_____r_2021_, lean_object* v___y_2022_, lean_object* v___y_2023_, lean_object* v___y_2024_, lean_object* v___y_2025_){ +_start: +{ +lean_object* v___y_2028_; uint8_t v___y_2029_; lean_object* v_a_2062_; lean_object* v___y_2066_; lean_object* v___x_2079_; +v___x_2079_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f(v_val_2012_, v_fst_2013_, v_expectedType_2014_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +if (lean_obj_tag(v___x_2079_) == 0) +{ +lean_object* v_a_2080_; +v_a_2080_ = lean_ctor_get(v___x_2079_, 0); +lean_inc(v_a_2080_); +lean_dec_ref(v___x_2079_); +if (lean_obj_tag(v_a_2080_) == 1) +{ +lean_object* v_val_2081_; lean_object* v___x_2082_; lean_object* v___x_2083_; +v_val_2081_ = lean_ctor_get(v_a_2080_, 0); +lean_inc(v_val_2081_); +lean_dec_ref(v_a_2080_); +v___x_2082_ = lean_box(0); +v___x_2083_ = l_Lean_Meta_trySynthInstance(v_val_2081_, v___x_2082_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +if (lean_obj_tag(v___x_2083_) == 0) +{ +lean_object* v_a_2084_; +v_a_2084_ = lean_ctor_get(v___x_2083_, 0); +lean_inc(v_a_2084_); +lean_dec_ref(v___x_2083_); +if (lean_obj_tag(v_a_2084_) == 1) +{ +lean_object* v_a_2085_; lean_object* v___x_2086_; +v_a_2085_ = lean_ctor_get(v_a_2084_, 0); +lean_inc(v_a_2085_); +lean_dec_ref(v_a_2084_); +lean_inc_ref(v___f_2015_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2086_ = lean_apply_5(v___f_2015_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +if (lean_obj_tag(v___x_2086_) == 0) +{ +lean_object* v_a_2087_; uint8_t v___x_2088_; +v_a_2087_ = lean_ctor_get(v___x_2086_, 0); +lean_inc(v_a_2087_); +lean_dec_ref(v___x_2086_); +v___x_2088_ = lean_unbox(v_a_2087_); +lean_dec(v_a_2087_); +if (v___x_2088_ == 0) +{ +lean_object* v___x_2089_; +v___x_2089_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(v_snd_2019_, v_a_2085_, v___x_2020_, v___x_2017_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +v___y_2066_ = v___x_2089_; +goto v___jp_2065_; +} +else +{ +lean_object* v___x_2090_; lean_object* v___x_2091_; lean_object* v___x_2092_; lean_object* v___x_2093_; lean_object* v___x_2094_; lean_object* v___x_2095_; +v___x_2090_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__5); +lean_inc(v_a_2085_); +v___x_2091_ = l_Lean_MessageData_ofExpr(v_a_2085_); +v___x_2092_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2092_, 0, v___x_2090_); +lean_ctor_set(v___x_2092_, 1, v___x_2091_); +v___x_2093_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_2094_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2094_, 0, v___x_2092_); +lean_ctor_set(v___x_2094_, 1, v___x_2093_); +lean_inc(v_cls_2018_); +v___x_2095_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2018_, v___x_2094_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +if (lean_obj_tag(v___x_2095_) == 0) +{ +lean_object* v_a_2096_; lean_object* v___x_2097_; +v_a_2096_ = lean_ctor_get(v___x_2095_, 0); +lean_inc(v_a_2096_); +lean_dec_ref(v___x_2095_); +v___x_2097_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__2(v_snd_2019_, v_a_2085_, v___x_2020_, v_a_2096_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +v___y_2066_ = v___x_2097_; +goto v___jp_2065_; +} +else +{ +lean_object* v_a_2098_; +lean_dec(v_a_2085_); +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +v_a_2098_ = lean_ctor_get(v___x_2095_, 0); +lean_inc(v_a_2098_); +lean_dec_ref(v___x_2095_); +v_a_2062_ = v_a_2098_; +goto v___jp_2061_; +} +} +} else { -lean_object* v___x_1926_; -lean_inc(v___y_1903_); -lean_inc_ref(v___y_1902_); -lean_inc(v___y_1901_); -lean_inc_ref(v___y_1900_); -lean_inc_ref(v___x_1891_); -v___x_1926_ = lean_infer_type(v___x_1891_, v___y_1900_, v___y_1901_, v___y_1902_, v___y_1903_); -if (lean_obj_tag(v___x_1926_) == 0) -{ -lean_object* v_a_1927_; lean_object* v___x_1928_; -v_a_1927_ = lean_ctor_get(v___x_1926_, 0); -lean_inc(v_a_1927_); -lean_dec_ref(v___x_1926_); -lean_inc_ref(v_a_1893_); -v___x_1928_ = l_Lean_Meta_isExprDefEq(v_a_1893_, v_a_1927_, v___y_1900_, v___y_1901_, v___y_1902_, v___y_1903_); -if (lean_obj_tag(v___x_1928_) == 0) -{ -lean_object* v_a_1929_; uint8_t v___x_1930_; -v_a_1929_ = lean_ctor_get(v___x_1928_, 0); -lean_inc(v_a_1929_); -lean_dec_ref(v___x_1928_); -v___x_1930_ = lean_unbox(v_a_1929_); -lean_dec(v_a_1929_); -if (v___x_1930_ == 0) -{ -lean_object* v___x_1931_; lean_object* v___x_1932_; -v___x_1931_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_1932_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_1931_, v___y_1903_); -if (lean_obj_tag(v___x_1932_) == 0) -{ -lean_object* v_a_1933_; lean_object* v___y_1935_; lean_object* v___y_1936_; lean_object* v___y_1956_; lean_object* v___y_1957_; lean_object* v___x_1970_; -v_a_1933_ = lean_ctor_get(v___x_1932_, 0); -lean_inc_n(v_a_1933_, 2); -lean_dec_ref(v___x_1932_); -v___x_1970_ = l_Lean_Meta_mkAuxDefinition(v_a_1933_, v_a_1893_, v___x_1891_, v___x_1894_, v___x_1894_, v___x_1895_, v___y_1900_, v___y_1901_, v___y_1902_, v___y_1903_); -if (lean_obj_tag(v___x_1970_) == 0) -{ -lean_object* v_a_1971_; lean_object* v___x_1972_; -v_a_1971_ = lean_ctor_get(v___x_1970_, 0); -lean_inc(v_a_1971_); -lean_dec_ref(v___x_1970_); -v___x_1972_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_1890_, v_a_1971_, v___y_1901_); -if (lean_obj_tag(v___x_1972_) == 0) -{ -uint8_t v___x_1973_; lean_object* v___x_1974_; -lean_dec_ref(v___x_1972_); -v___x_1973_ = 0; -lean_inc(v_a_1933_); -v___x_1974_ = l_Lean_Meta_setInlineAttribute(v_a_1933_, v___x_1973_, v___y_1900_, v___y_1901_, v___y_1902_, v___y_1903_); -if (lean_obj_tag(v___x_1974_) == 0) -{ -lean_dec_ref(v___x_1974_); -if (v_isMeta_1898_ == 0) -{ -v___y_1956_ = v___y_1902_; -v___y_1957_ = v___y_1903_; -goto v___jp_1955_; +lean_object* v_a_2099_; +lean_dec(v_a_2085_); +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +v_a_2099_ = lean_ctor_get(v___x_2086_, 0); +lean_inc(v_a_2099_); +lean_dec_ref(v___x_2086_); +v_a_2062_ = v_a_2099_; +goto v___jp_2061_; +} } else { -lean_object* v___x_1975_; lean_object* v_env_1976_; lean_object* v_nextMacroScope_1977_; lean_object* v_ngen_1978_; lean_object* v_auxDeclNGen_1979_; lean_object* v_traceState_1980_; lean_object* v_messages_1981_; lean_object* v_infoState_1982_; lean_object* v_snapshotTasks_1983_; lean_object* v___x_1985_; uint8_t v_isShared_1986_; uint8_t v_isSharedCheck_2008_; -v___x_1975_ = lean_st_ref_take(v___y_1903_); -v_env_1976_ = lean_ctor_get(v___x_1975_, 0); -v_nextMacroScope_1977_ = lean_ctor_get(v___x_1975_, 1); -v_ngen_1978_ = lean_ctor_get(v___x_1975_, 2); -v_auxDeclNGen_1979_ = lean_ctor_get(v___x_1975_, 3); -v_traceState_1980_ = lean_ctor_get(v___x_1975_, 4); -v_messages_1981_ = lean_ctor_get(v___x_1975_, 6); -v_infoState_1982_ = lean_ctor_get(v___x_1975_, 7); -v_snapshotTasks_1983_ = lean_ctor_get(v___x_1975_, 8); -v_isSharedCheck_2008_ = !lean_is_exclusive(v___x_1975_); -if (v_isSharedCheck_2008_ == 0) +lean_object* v_options_2100_; uint8_t v_hasTrace_2101_; +lean_dec(v_a_2084_); +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +v_options_2100_ = lean_ctor_get(v___y_2024_, 2); +v_hasTrace_2101_ = lean_ctor_get_uint8(v_options_2100_, sizeof(void*)*1); +if (v_hasTrace_2101_ == 0) { -lean_object* v_unused_2009_; -v_unused_2009_ = lean_ctor_get(v___x_1975_, 5); -lean_dec(v_unused_2009_); -v___x_1985_ = v___x_1975_; -v_isShared_1986_ = v_isSharedCheck_2008_; -goto v_resetjp_1984_; +lean_object* v___x_2102_; +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2102_ = lean_apply_6(v___f_2016_, v___x_2017_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2102_; } else { -lean_inc(v_snapshotTasks_1983_); -lean_inc(v_infoState_1982_); -lean_inc(v_messages_1981_); -lean_inc(v_traceState_1980_); -lean_inc(v_auxDeclNGen_1979_); -lean_inc(v_ngen_1978_); -lean_inc(v_nextMacroScope_1977_); -lean_inc(v_env_1976_); -lean_dec(v___x_1975_); -v___x_1985_ = lean_box(0); -v_isShared_1986_ = v_isSharedCheck_2008_; -goto v_resetjp_1984_; -} -v_resetjp_1984_: +lean_object* v_inheritedTraceOptions_2103_; lean_object* v___x_2104_; lean_object* v___x_2105_; uint8_t v___x_2106_; +v_inheritedTraceOptions_2103_ = lean_ctor_get(v___y_2024_, 13); +v___x_2104_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); +lean_inc(v_cls_2018_); +v___x_2105_ = l_Lean_Name_append(v___x_2104_, v_cls_2018_); +v___x_2106_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_2103_, v_options_2100_, v___x_2105_); +lean_dec(v___x_2105_); +if (v___x_2106_ == 0) { -lean_object* v___x_1987_; lean_object* v___x_1988_; lean_object* v___x_1990_; -lean_inc(v_a_1933_); -v___x_1987_ = l_Lean_markMeta(v_env_1976_, v_a_1933_); -v___x_1988_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_1986_ == 0) -{ -lean_ctor_set(v___x_1985_, 5, v___x_1988_); -lean_ctor_set(v___x_1985_, 0, v___x_1987_); -v___x_1990_ = v___x_1985_; -goto v_reusejp_1989_; +lean_object* v___x_2107_; +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2107_ = lean_apply_6(v___f_2016_, v___x_2017_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2107_; } else { -lean_object* v_reuseFailAlloc_2007_; -v_reuseFailAlloc_2007_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_2007_, 0, v___x_1987_); -lean_ctor_set(v_reuseFailAlloc_2007_, 1, v_nextMacroScope_1977_); -lean_ctor_set(v_reuseFailAlloc_2007_, 2, v_ngen_1978_); -lean_ctor_set(v_reuseFailAlloc_2007_, 3, v_auxDeclNGen_1979_); -lean_ctor_set(v_reuseFailAlloc_2007_, 4, v_traceState_1980_); -lean_ctor_set(v_reuseFailAlloc_2007_, 5, v___x_1988_); -lean_ctor_set(v_reuseFailAlloc_2007_, 6, v_messages_1981_); -lean_ctor_set(v_reuseFailAlloc_2007_, 7, v_infoState_1982_); -lean_ctor_set(v_reuseFailAlloc_2007_, 8, v_snapshotTasks_1983_); -v___x_1990_ = v_reuseFailAlloc_2007_; -goto v_reusejp_1989_; -} -v_reusejp_1989_: +lean_object* v___x_2108_; lean_object* v___x_2109_; lean_object* v___x_2110_; lean_object* v___x_2111_; lean_object* v___x_2112_; lean_object* v___x_2113_; +v___x_2108_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__7); +lean_inc(v_fst_2013_); +v___x_2109_ = l_Lean_MessageData_ofName(v_fst_2013_); +v___x_2110_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2110_, 0, v___x_2108_); +lean_ctor_set(v___x_2110_, 1, v___x_2109_); +v___x_2111_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_2112_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2112_, 0, v___x_2110_); +lean_ctor_set(v___x_2112_, 1, v___x_2111_); +lean_inc(v_cls_2018_); +v___x_2113_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2018_, v___x_2112_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +if (lean_obj_tag(v___x_2113_) == 0) { -lean_object* v___x_1991_; lean_object* v___x_1992_; lean_object* v_mctx_1993_; lean_object* v_zetaDeltaFVarIds_1994_; lean_object* v_postponed_1995_; lean_object* v_diag_1996_; lean_object* v___x_1998_; uint8_t v_isShared_1999_; uint8_t v_isSharedCheck_2005_; -v___x_1991_ = lean_st_ref_set(v___y_1903_, v___x_1990_); -v___x_1992_ = lean_st_ref_take(v___y_1901_); -v_mctx_1993_ = lean_ctor_get(v___x_1992_, 0); -v_zetaDeltaFVarIds_1994_ = lean_ctor_get(v___x_1992_, 2); -v_postponed_1995_ = lean_ctor_get(v___x_1992_, 3); -v_diag_1996_ = lean_ctor_get(v___x_1992_, 4); -v_isSharedCheck_2005_ = !lean_is_exclusive(v___x_1992_); -if (v_isSharedCheck_2005_ == 0) -{ -lean_object* v_unused_2006_; -v_unused_2006_ = lean_ctor_get(v___x_1992_, 1); -lean_dec(v_unused_2006_); -v___x_1998_ = v___x_1992_; -v_isShared_1999_ = v_isSharedCheck_2005_; -goto v_resetjp_1997_; +lean_object* v_a_2114_; lean_object* v___x_2115_; +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +v_a_2114_ = lean_ctor_get(v___x_2113_, 0); +lean_inc(v_a_2114_); +lean_dec_ref(v___x_2113_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2115_ = lean_apply_6(v___f_2016_, v_a_2114_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2115_; } else { -lean_inc(v_diag_1996_); -lean_inc(v_postponed_1995_); -lean_inc(v_zetaDeltaFVarIds_1994_); -lean_inc(v_mctx_1993_); -lean_dec(v___x_1992_); -v___x_1998_ = lean_box(0); -v_isShared_1999_ = v_isSharedCheck_2005_; -goto v_resetjp_1997_; -} -v_resetjp_1997_: -{ -lean_object* v___x_2000_; lean_object* v___x_2002_; -v___x_2000_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_1999_ == 0) -{ -lean_ctor_set(v___x_1998_, 1, v___x_2000_); -v___x_2002_ = v___x_1998_; -goto v_reusejp_2001_; -} -else -{ -lean_object* v_reuseFailAlloc_2004_; -v_reuseFailAlloc_2004_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_2004_, 0, v_mctx_1993_); -lean_ctor_set(v_reuseFailAlloc_2004_, 1, v___x_2000_); -lean_ctor_set(v_reuseFailAlloc_2004_, 2, v_zetaDeltaFVarIds_1994_); -lean_ctor_set(v_reuseFailAlloc_2004_, 3, v_postponed_1995_); -lean_ctor_set(v_reuseFailAlloc_2004_, 4, v_diag_1996_); -v___x_2002_ = v_reuseFailAlloc_2004_; -goto v_reusejp_2001_; -} -v_reusejp_2001_: -{ -lean_object* v___x_2003_; -v___x_2003_ = lean_st_ref_set(v___y_1901_, v___x_2002_); -v___y_1956_ = v___y_1902_; -v___y_1957_ = v___y_1903_; -goto v___jp_1955_; -} +lean_object* v_a_2116_; +v_a_2116_ = lean_ctor_get(v___x_2113_, 0); +lean_inc(v_a_2116_); +lean_dec_ref(v___x_2113_); +v_a_2062_ = v_a_2116_; +goto v___jp_2061_; } } } @@ -6079,402 +6584,204 @@ goto v___jp_1955_; } else { -lean_object* v_a_2010_; lean_object* v___x_2012_; uint8_t v_isShared_2013_; uint8_t v_isSharedCheck_2017_; -lean_dec(v_a_1933_); -v_a_2010_ = lean_ctor_get(v___x_1974_, 0); -v_isSharedCheck_2017_ = !lean_is_exclusive(v___x_1974_); -if (v_isSharedCheck_2017_ == 0) -{ -v___x_2012_ = v___x_1974_; -v_isShared_2013_ = v_isSharedCheck_2017_; -goto v_resetjp_2011_; -} -else -{ -lean_inc(v_a_2010_); -lean_dec(v___x_1974_); -v___x_2012_ = lean_box(0); -v_isShared_2013_ = v_isSharedCheck_2017_; -goto v_resetjp_2011_; -} -v_resetjp_2011_: -{ -lean_object* v___x_2015_; -if (v_isShared_2013_ == 0) -{ -v___x_2015_ = v___x_2012_; -goto v_reusejp_2014_; -} -else -{ -lean_object* v_reuseFailAlloc_2016_; -v_reuseFailAlloc_2016_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2016_, 0, v_a_2010_); -v___x_2015_ = v_reuseFailAlloc_2016_; -goto v_reusejp_2014_; -} -v_reusejp_2014_: -{ -return v___x_2015_; -} -} +lean_object* v_a_2117_; +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +v_a_2117_ = lean_ctor_get(v___x_2083_, 0); +lean_inc(v_a_2117_); +lean_dec_ref(v___x_2083_); +v_a_2062_ = v_a_2117_; +goto v___jp_2061_; } } else { -lean_object* v_a_2018_; lean_object* v___x_2020_; uint8_t v_isShared_2021_; uint8_t v_isSharedCheck_2025_; -lean_dec(v_a_1933_); -v_a_2018_ = lean_ctor_get(v___x_1972_, 0); -v_isSharedCheck_2025_ = !lean_is_exclusive(v___x_1972_); -if (v_isSharedCheck_2025_ == 0) -{ -v___x_2020_ = v___x_1972_; -v_isShared_2021_ = v_isSharedCheck_2025_; -goto v_resetjp_2019_; -} -else -{ -lean_inc(v_a_2018_); -lean_dec(v___x_1972_); -v___x_2020_ = lean_box(0); -v_isShared_2021_ = v_isSharedCheck_2025_; -goto v_resetjp_2019_; -} -v_resetjp_2019_: -{ -lean_object* v___x_2023_; -if (v_isShared_2021_ == 0) -{ -v___x_2023_ = v___x_2020_; -goto v_reusejp_2022_; -} -else -{ -lean_object* v_reuseFailAlloc_2024_; -v_reuseFailAlloc_2024_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2024_, 0, v_a_2018_); -v___x_2023_ = v_reuseFailAlloc_2024_; -goto v_reusejp_2022_; -} -v_reusejp_2022_: -{ -return v___x_2023_; -} -} +lean_object* v___x_2118_; +lean_dec(v_a_2080_); +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2118_ = lean_apply_6(v___f_2016_, v___x_2017_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2118_; } } else { -lean_object* v_a_2026_; lean_object* v___x_2028_; uint8_t v_isShared_2029_; uint8_t v_isSharedCheck_2033_; -lean_dec(v_a_1933_); -lean_dec(v___x_1890_); -v_a_2026_ = lean_ctor_get(v___x_1970_, 0); -v_isSharedCheck_2033_ = !lean_is_exclusive(v___x_1970_); -if (v_isSharedCheck_2033_ == 0) +lean_object* v_a_2119_; lean_object* v___x_2121_; uint8_t v_isShared_2122_; uint8_t v_isSharedCheck_2126_; +lean_dec(v___x_2020_); +lean_dec_ref(v_snd_2019_); +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2016_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +v_a_2119_ = lean_ctor_get(v___x_2079_, 0); +v_isSharedCheck_2126_ = !lean_is_exclusive(v___x_2079_); +if (v_isSharedCheck_2126_ == 0) { -v___x_2028_ = v___x_1970_; -v_isShared_2029_ = v_isSharedCheck_2033_; -goto v_resetjp_2027_; +v___x_2121_ = v___x_2079_; +v_isShared_2122_ = v_isSharedCheck_2126_; +goto v_resetjp_2120_; } else { -lean_inc(v_a_2026_); -lean_dec(v___x_1970_); -v___x_2028_ = lean_box(0); -v_isShared_2029_ = v_isSharedCheck_2033_; -goto v_resetjp_2027_; +lean_inc(v_a_2119_); +lean_dec(v___x_2079_); +v___x_2121_ = lean_box(0); +v_isShared_2122_ = v_isSharedCheck_2126_; +goto v_resetjp_2120_; } -v_resetjp_2027_: +v_resetjp_2120_: { -lean_object* v___x_2031_; -if (v_isShared_2029_ == 0) +lean_object* v___x_2124_; +if (v_isShared_2122_ == 0) { -v___x_2031_ = v___x_2028_; -goto v_reusejp_2030_; +v___x_2124_ = v___x_2121_; +goto v_reusejp_2123_; } else { -lean_object* v_reuseFailAlloc_2032_; -v_reuseFailAlloc_2032_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2032_, 0, v_a_2026_); -v___x_2031_ = v_reuseFailAlloc_2032_; -goto v_reusejp_2030_; +lean_object* v_reuseFailAlloc_2125_; +v_reuseFailAlloc_2125_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2125_, 0, v_a_2119_); +v___x_2124_ = v_reuseFailAlloc_2125_; +goto v_reusejp_2123_; } -v_reusejp_2030_: +v_reusejp_2123_: { -return v___x_2031_; +return v___x_2124_; } } } -v___jp_1934_: +v___jp_2027_: { -lean_object* v___x_1937_; -v___x_1937_ = l_Lean_enableRealizationsForConst(v_a_1933_, v___y_1935_, v___y_1936_); -if (lean_obj_tag(v___x_1937_) == 0) +if (v___y_2029_ == 0) { -lean_object* v___x_1939_; uint8_t v_isShared_1940_; uint8_t v_isSharedCheck_1945_; -v_isSharedCheck_1945_ = !lean_is_exclusive(v___x_1937_); -if (v_isSharedCheck_1945_ == 0) +lean_object* v___x_2030_; +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2030_ = lean_apply_5(v___f_2015_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +if (lean_obj_tag(v___x_2030_) == 0) { -lean_object* v_unused_1946_; -v_unused_1946_ = lean_ctor_get(v___x_1937_, 0); -lean_dec(v_unused_1946_); -v___x_1939_ = v___x_1937_; -v_isShared_1940_ = v_isSharedCheck_1945_; -goto v_resetjp_1938_; +lean_object* v_a_2031_; uint8_t v___x_2032_; +v_a_2031_ = lean_ctor_get(v___x_2030_, 0); +lean_inc(v_a_2031_); +lean_dec_ref(v___x_2030_); +v___x_2032_ = lean_unbox(v_a_2031_); +lean_dec(v_a_2031_); +if (v___x_2032_ == 0) +{ +lean_object* v___x_2033_; +lean_dec_ref(v___y_2028_); +lean_dec(v_cls_2018_); +lean_dec(v_fst_2013_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2033_ = lean_apply_6(v___f_2016_, v___x_2017_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2033_; } else { -lean_dec(v___x_1937_); -v___x_1939_ = lean_box(0); -v_isShared_1940_ = v_isSharedCheck_1945_; -goto v_resetjp_1938_; -} -v_resetjp_1938_: +lean_object* v___x_2034_; lean_object* v___x_2035_; lean_object* v___x_2036_; lean_object* v___x_2037_; lean_object* v___x_2038_; lean_object* v___x_2039_; lean_object* v___x_2040_; lean_object* v___x_2041_; +v___x_2034_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__1); +v___x_2035_ = l_Lean_MessageData_ofName(v_fst_2013_); +v___x_2036_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2036_, 0, v___x_2034_); +lean_ctor_set(v___x_2036_, 1, v___x_2035_); +v___x_2037_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +v___x_2038_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2038_, 0, v___x_2036_); +lean_ctor_set(v___x_2038_, 1, v___x_2037_); +v___x_2039_ = l_Lean_Exception_toMessageData(v___y_2028_); +v___x_2040_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2040_, 0, v___x_2038_); +lean_ctor_set(v___x_2040_, 1, v___x_2039_); +v___x_2041_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2018_, v___x_2040_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_); +if (lean_obj_tag(v___x_2041_) == 0) { -lean_object* v___x_1941_; lean_object* v___x_1943_; -v___x_1941_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1941_, 0, v___x_1892_); -if (v_isShared_1940_ == 0) -{ -lean_ctor_set(v___x_1939_, 0, v___x_1941_); -v___x_1943_ = v___x_1939_; -goto v_reusejp_1942_; +lean_object* v_a_2042_; lean_object* v___x_2043_; +v_a_2042_ = lean_ctor_get(v___x_2041_, 0); +lean_inc(v_a_2042_); +lean_dec_ref(v___x_2041_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2043_ = lean_apply_6(v___f_2016_, v_a_2042_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2043_; } else { -lean_object* v_reuseFailAlloc_1944_; -v_reuseFailAlloc_1944_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1944_, 0, v___x_1941_); -v___x_1943_ = v_reuseFailAlloc_1944_; -goto v_reusejp_1942_; -} -v_reusejp_1942_: +lean_object* v_a_2044_; lean_object* v___x_2046_; uint8_t v_isShared_2047_; uint8_t v_isSharedCheck_2051_; +lean_dec_ref(v___f_2016_); +v_a_2044_ = lean_ctor_get(v___x_2041_, 0); +v_isSharedCheck_2051_ = !lean_is_exclusive(v___x_2041_); +if (v_isSharedCheck_2051_ == 0) { -return v___x_1943_; -} -} +v___x_2046_ = v___x_2041_; +v_isShared_2047_ = v_isSharedCheck_2051_; +goto v_resetjp_2045_; } else { -lean_object* v_a_1947_; lean_object* v___x_1949_; uint8_t v_isShared_1950_; uint8_t v_isSharedCheck_1954_; -v_a_1947_ = lean_ctor_get(v___x_1937_, 0); -v_isSharedCheck_1954_ = !lean_is_exclusive(v___x_1937_); -if (v_isSharedCheck_1954_ == 0) +lean_inc(v_a_2044_); +lean_dec(v___x_2041_); +v___x_2046_ = lean_box(0); +v_isShared_2047_ = v_isSharedCheck_2051_; +goto v_resetjp_2045_; +} +v_resetjp_2045_: { -v___x_1949_ = v___x_1937_; -v_isShared_1950_ = v_isSharedCheck_1954_; -goto v_resetjp_1948_; +lean_object* v___x_2049_; +if (v_isShared_2047_ == 0) +{ +v___x_2049_ = v___x_2046_; +goto v_reusejp_2048_; } else { -lean_inc(v_a_1947_); -lean_dec(v___x_1937_); -v___x_1949_ = lean_box(0); -v_isShared_1950_ = v_isSharedCheck_1954_; -goto v_resetjp_1948_; +lean_object* v_reuseFailAlloc_2050_; +v_reuseFailAlloc_2050_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2050_, 0, v_a_2044_); +v___x_2049_ = v_reuseFailAlloc_2050_; +goto v_reusejp_2048_; } -v_resetjp_1948_: +v_reusejp_2048_: { -lean_object* v___x_1952_; -if (v_isShared_1950_ == 0) -{ -v___x_1952_ = v___x_1949_; -goto v_reusejp_1951_; -} -else -{ -lean_object* v_reuseFailAlloc_1953_; -v_reuseFailAlloc_1953_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1953_, 0, v_a_1947_); -v___x_1952_ = v_reuseFailAlloc_1953_; -goto v_reusejp_1951_; -} -v_reusejp_1951_: -{ -return v___x_1952_; +return v___x_2049_; } } } } -v___jp_1955_: -{ -if (v_compile_1896_ == 0) -{ -v___y_1935_ = v___y_1956_; -v___y_1936_ = v___y_1957_; -goto v___jp_1934_; -} -else -{ -lean_object* v___x_1958_; lean_object* v___x_1959_; lean_object* v___x_1960_; lean_object* v___x_1961_; -v___x_1958_ = lean_unsigned_to_nat(1u); -v___x_1959_ = lean_mk_empty_array_with_capacity(v___x_1958_); -lean_inc(v_a_1933_); -v___x_1960_ = lean_array_push(v___x_1959_, v_a_1933_); -v___x_1961_ = l_Lean_compileDecls(v___x_1960_, v_logCompileErrors_1897_, v___y_1956_, v___y_1957_); -if (lean_obj_tag(v___x_1961_) == 0) -{ -lean_dec_ref(v___x_1961_); -v___y_1935_ = v___y_1956_; -v___y_1936_ = v___y_1957_; -goto v___jp_1934_; -} -else -{ -lean_object* v_a_1962_; lean_object* v___x_1964_; uint8_t v_isShared_1965_; uint8_t v_isSharedCheck_1969_; -lean_dec(v_a_1933_); -v_a_1962_ = lean_ctor_get(v___x_1961_, 0); -v_isSharedCheck_1969_ = !lean_is_exclusive(v___x_1961_); -if (v_isSharedCheck_1969_ == 0) -{ -v___x_1964_ = v___x_1961_; -v_isShared_1965_ = v_isSharedCheck_1969_; -goto v_resetjp_1963_; -} -else -{ -lean_inc(v_a_1962_); -lean_dec(v___x_1961_); -v___x_1964_ = lean_box(0); -v_isShared_1965_ = v_isSharedCheck_1969_; -goto v_resetjp_1963_; -} -v_resetjp_1963_: -{ -lean_object* v___x_1967_; -if (v_isShared_1965_ == 0) -{ -v___x_1967_ = v___x_1964_; -goto v_reusejp_1966_; -} -else -{ -lean_object* v_reuseFailAlloc_1968_; -v_reuseFailAlloc_1968_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1968_, 0, v_a_1962_); -v___x_1967_ = v_reuseFailAlloc_1968_; -goto v_reusejp_1966_; -} -v_reusejp_1966_: -{ -return v___x_1967_; -} -} -} -} -} -} -else -{ -lean_object* v_a_2034_; lean_object* v___x_2036_; uint8_t v_isShared_2037_; uint8_t v_isSharedCheck_2041_; -lean_dec_ref(v_a_1893_); -lean_dec_ref(v___x_1891_); -lean_dec(v___x_1890_); -v_a_2034_ = lean_ctor_get(v___x_1932_, 0); -v_isSharedCheck_2041_ = !lean_is_exclusive(v___x_1932_); -if (v_isSharedCheck_2041_ == 0) -{ -v___x_2036_ = v___x_1932_; -v_isShared_2037_ = v_isSharedCheck_2041_; -goto v_resetjp_2035_; -} -else -{ -lean_inc(v_a_2034_); -lean_dec(v___x_1932_); -v___x_2036_ = lean_box(0); -v_isShared_2037_ = v_isSharedCheck_2041_; -goto v_resetjp_2035_; -} -v_resetjp_2035_: -{ -lean_object* v___x_2039_; -if (v_isShared_2037_ == 0) -{ -v___x_2039_ = v___x_2036_; -goto v_reusejp_2038_; -} -else -{ -lean_object* v_reuseFailAlloc_2040_; -v_reuseFailAlloc_2040_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2040_, 0, v_a_2034_); -v___x_2039_ = v_reuseFailAlloc_2040_; -goto v_reusejp_2038_; -} -v_reusejp_2038_: -{ -return v___x_2039_; -} -} -} -} -else -{ -lean_object* v___x_2042_; -lean_dec_ref(v_a_1893_); -v___x_2042_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_1890_, v___x_1891_, v___y_1901_); -if (lean_obj_tag(v___x_2042_) == 0) -{ -lean_object* v___x_2044_; uint8_t v_isShared_2045_; uint8_t v_isSharedCheck_2050_; -v_isSharedCheck_2050_ = !lean_is_exclusive(v___x_2042_); -if (v_isSharedCheck_2050_ == 0) -{ -lean_object* v_unused_2051_; -v_unused_2051_ = lean_ctor_get(v___x_2042_, 0); -lean_dec(v_unused_2051_); -v___x_2044_ = v___x_2042_; -v_isShared_2045_ = v_isSharedCheck_2050_; -goto v_resetjp_2043_; -} -else -{ -lean_dec(v___x_2042_); -v___x_2044_ = lean_box(0); -v_isShared_2045_ = v_isSharedCheck_2050_; -goto v_resetjp_2043_; -} -v_resetjp_2043_: -{ -lean_object* v___x_2046_; lean_object* v___x_2048_; -v___x_2046_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2046_, 0, v___x_1892_); -if (v_isShared_2045_ == 0) -{ -lean_ctor_set(v___x_2044_, 0, v___x_2046_); -v___x_2048_ = v___x_2044_; -goto v_reusejp_2047_; -} -else -{ -lean_object* v_reuseFailAlloc_2049_; -v_reuseFailAlloc_2049_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2049_, 0, v___x_2046_); -v___x_2048_ = v_reuseFailAlloc_2049_; -goto v_reusejp_2047_; -} -v_reusejp_2047_: -{ -return v___x_2048_; -} -} } else { lean_object* v_a_2052_; lean_object* v___x_2054_; uint8_t v_isShared_2055_; uint8_t v_isSharedCheck_2059_; -v_a_2052_ = lean_ctor_get(v___x_2042_, 0); -v_isSharedCheck_2059_ = !lean_is_exclusive(v___x_2042_); +lean_dec_ref(v___y_2028_); +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2016_); +lean_dec(v_fst_2013_); +v_a_2052_ = lean_ctor_get(v___x_2030_, 0); +v_isSharedCheck_2059_ = !lean_is_exclusive(v___x_2030_); if (v_isSharedCheck_2059_ == 0) { -v___x_2054_ = v___x_2042_; +v___x_2054_ = v___x_2030_; v_isShared_2055_ = v_isSharedCheck_2059_; goto v_resetjp_2053_; } else { lean_inc(v_a_2052_); -lean_dec(v___x_2042_); +lean_dec(v___x_2030_); v___x_2054_ = lean_box(0); v_isShared_2055_ = v_isSharedCheck_2059_; goto v_resetjp_2053_; @@ -6502,87 +6809,81 @@ return v___x_2057_; } } } +else +{ +lean_object* v___x_2060_; +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2016_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +v___x_2060_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2060_, 0, v___y_2028_); +return v___x_2060_; +} +} +v___jp_2061_: +{ +uint8_t v___x_2063_; +v___x_2063_ = l_Lean_Exception_isInterrupt(v_a_2062_); +if (v___x_2063_ == 0) +{ +uint8_t v___x_2064_; +lean_inc_ref(v_a_2062_); +v___x_2064_ = l_Lean_Exception_isRuntime(v_a_2062_); +v___y_2028_ = v_a_2062_; +v___y_2029_ = v___x_2064_; +goto v___jp_2027_; } else { -lean_object* v_a_2060_; lean_object* v___x_2062_; uint8_t v_isShared_2063_; uint8_t v_isSharedCheck_2067_; -lean_dec_ref(v_a_1893_); -lean_dec_ref(v___x_1891_); -lean_dec(v___x_1890_); -v_a_2060_ = lean_ctor_get(v___x_1928_, 0); -v_isSharedCheck_2067_ = !lean_is_exclusive(v___x_1928_); -if (v_isSharedCheck_2067_ == 0) +v___y_2028_ = v_a_2062_; +v___y_2029_ = v___x_2063_; +goto v___jp_2027_; +} +} +v___jp_2065_: { -v___x_2062_ = v___x_1928_; -v_isShared_2063_ = v_isSharedCheck_2067_; -goto v_resetjp_2061_; +if (lean_obj_tag(v___y_2066_) == 0) +{ +lean_object* v_a_2067_; lean_object* v___x_2069_; uint8_t v_isShared_2070_; uint8_t v_isSharedCheck_2077_; +lean_dec(v_cls_2018_); +lean_dec_ref(v___f_2015_); +lean_dec(v_fst_2013_); +v_a_2067_ = lean_ctor_get(v___y_2066_, 0); +v_isSharedCheck_2077_ = !lean_is_exclusive(v___y_2066_); +if (v_isSharedCheck_2077_ == 0) +{ +v___x_2069_ = v___y_2066_; +v_isShared_2070_ = v_isSharedCheck_2077_; +goto v_resetjp_2068_; } else { -lean_inc(v_a_2060_); -lean_dec(v___x_1928_); -v___x_2062_ = lean_box(0); -v_isShared_2063_ = v_isSharedCheck_2067_; -goto v_resetjp_2061_; +lean_inc(v_a_2067_); +lean_dec(v___y_2066_); +v___x_2069_ = lean_box(0); +v_isShared_2070_ = v_isSharedCheck_2077_; +goto v_resetjp_2068_; } -v_resetjp_2061_: +v_resetjp_2068_: { -lean_object* v___x_2065_; -if (v_isShared_2063_ == 0) +if (lean_obj_tag(v_a_2067_) == 0) { -v___x_2065_ = v___x_2062_; -goto v_reusejp_2064_; -} -else +lean_object* v___x_2071_; lean_object* v___x_2073_; +lean_dec_ref(v___f_2016_); +v___x_2071_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2071_, 0, v___x_2017_); +if (v_isShared_2070_ == 0) { -lean_object* v_reuseFailAlloc_2066_; -v_reuseFailAlloc_2066_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2066_, 0, v_a_2060_); -v___x_2065_ = v_reuseFailAlloc_2066_; -goto v_reusejp_2064_; -} -v_reusejp_2064_: -{ -return v___x_2065_; -} -} -} -} -else -{ -lean_object* v_a_2068_; lean_object* v___x_2070_; uint8_t v_isShared_2071_; uint8_t v_isSharedCheck_2075_; -lean_dec_ref(v_a_1893_); -lean_dec_ref(v___x_1891_); -lean_dec(v___x_1890_); -v_a_2068_ = lean_ctor_get(v___x_1926_, 0); -v_isSharedCheck_2075_ = !lean_is_exclusive(v___x_1926_); -if (v_isSharedCheck_2075_ == 0) -{ -v___x_2070_ = v___x_1926_; -v_isShared_2071_ = v_isSharedCheck_2075_; -goto v_resetjp_2069_; -} -else -{ -lean_inc(v_a_2068_); -lean_dec(v___x_1926_); -v___x_2070_ = lean_box(0); -v_isShared_2071_ = v_isSharedCheck_2075_; -goto v_resetjp_2069_; -} -v_resetjp_2069_: -{ -lean_object* v___x_2073_; -if (v_isShared_2071_ == 0) -{ -v___x_2073_ = v___x_2070_; +lean_ctor_set(v___x_2069_, 0, v___x_2071_); +v___x_2073_ = v___x_2069_; goto v_reusejp_2072_; } else { lean_object* v_reuseFailAlloc_2074_; -v_reuseFailAlloc_2074_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2074_, 0, v_a_2068_); +v_reuseFailAlloc_2074_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2074_, 0, v___x_2071_); v___x_2073_ = v_reuseFailAlloc_2074_; goto v_reusejp_2072_; } @@ -6591,1236 +6892,1000 @@ v_reusejp_2072_: return v___x_2073_; } } +else +{ +lean_object* v_a_2075_; lean_object* v___x_2076_; +lean_del_object(v___x_2069_); +v_a_2075_ = lean_ctor_get(v_a_2067_, 0); +lean_inc(v_a_2075_); +lean_dec_ref(v_a_2067_); +lean_inc(v___y_2025_); +lean_inc_ref(v___y_2024_); +lean_inc(v___y_2023_); +lean_inc_ref(v___y_2022_); +v___x_2076_ = lean_apply_6(v___f_2016_, v_a_2075_, v___y_2022_, v___y_2023_, v___y_2024_, v___y_2025_, lean_box(0)); +return v___x_2076_; } } } -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___boxed(lean_object* v___x_2076_, lean_object* v___x_2077_, lean_object* v___x_2078_, lean_object* v_a_2079_, lean_object* v___x_2080_, lean_object* v___x_2081_, lean_object* v_compile_2082_, lean_object* v_logCompileErrors_2083_, lean_object* v_isMeta_2084_, lean_object* v_____r_2085_, lean_object* v___y_2086_, lean_object* v___y_2087_, lean_object* v___y_2088_, lean_object* v___y_2089_, lean_object* v___y_2090_){ -_start: -{ -uint8_t v___x_160987__boxed_2091_; uint8_t v___x_160988__boxed_2092_; uint8_t v_compile_boxed_2093_; uint8_t v_logCompileErrors_boxed_2094_; uint8_t v_isMeta_boxed_2095_; lean_object* v_res_2096_; -v___x_160987__boxed_2091_ = lean_unbox(v___x_2080_); -v___x_160988__boxed_2092_ = lean_unbox(v___x_2081_); -v_compile_boxed_2093_ = lean_unbox(v_compile_2082_); -v_logCompileErrors_boxed_2094_ = lean_unbox(v_logCompileErrors_2083_); -v_isMeta_boxed_2095_ = lean_unbox(v_isMeta_2084_); -v_res_2096_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_2076_, v___x_2077_, v___x_2078_, v_a_2079_, v___x_160987__boxed_2091_, v___x_160988__boxed_2092_, v_compile_boxed_2093_, v_logCompileErrors_boxed_2094_, v_isMeta_boxed_2095_, v_____r_2085_, v___y_2086_, v___y_2087_, v___y_2088_, v___y_2089_); -lean_dec(v___y_2089_); -lean_dec_ref(v___y_2088_); -lean_dec(v___y_2087_); -lean_dec_ref(v___y_2086_); -return v_res_2096_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(lean_object* v_val_2097_, lean_object* v_fst_2098_, lean_object* v_expectedType_2099_, lean_object* v___f_2100_, lean_object* v___f_2101_, lean_object* v___x_2102_, lean_object* v_cls_2103_, lean_object* v_snd_2104_, lean_object* v___x_2105_, lean_object* v_____r_2106_, lean_object* v___y_2107_, lean_object* v___y_2108_, lean_object* v___y_2109_, lean_object* v___y_2110_){ -_start: -{ -lean_object* v___y_2113_; uint8_t v___y_2114_; lean_object* v_a_2147_; lean_object* v___y_2151_; lean_object* v___x_2164_; -v___x_2164_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f(v_val_2097_, v_fst_2098_, v_expectedType_2099_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -if (lean_obj_tag(v___x_2164_) == 0) -{ -lean_object* v_a_2165_; -v_a_2165_ = lean_ctor_get(v___x_2164_, 0); -lean_inc(v_a_2165_); -lean_dec_ref(v___x_2164_); -if (lean_obj_tag(v_a_2165_) == 1) -{ -lean_object* v_val_2166_; lean_object* v___x_2167_; lean_object* v___x_2168_; -v_val_2166_ = lean_ctor_get(v_a_2165_, 0); -lean_inc(v_val_2166_); -lean_dec_ref(v_a_2165_); -v___x_2167_ = lean_box(0); -v___x_2168_ = l_Lean_Meta_trySynthInstance(v_val_2166_, v___x_2167_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -if (lean_obj_tag(v___x_2168_) == 0) -{ -lean_object* v_a_2169_; -v_a_2169_ = lean_ctor_get(v___x_2168_, 0); -lean_inc(v_a_2169_); -lean_dec_ref(v___x_2168_); -if (lean_obj_tag(v_a_2169_) == 1) -{ -lean_object* v_a_2170_; lean_object* v___x_2171_; -v_a_2170_ = lean_ctor_get(v_a_2169_, 0); -lean_inc(v_a_2170_); -lean_dec_ref(v_a_2169_); -lean_inc_ref(v___f_2100_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2171_ = lean_apply_5(v___f_2100_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -if (lean_obj_tag(v___x_2171_) == 0) -{ -lean_object* v_a_2172_; uint8_t v___x_2173_; -v_a_2172_ = lean_ctor_get(v___x_2171_, 0); -lean_inc(v_a_2172_); -lean_dec_ref(v___x_2171_); -v___x_2173_ = lean_unbox(v_a_2172_); -lean_dec(v_a_2172_); -if (v___x_2173_ == 0) -{ -lean_object* v___x_2174_; -v___x_2174_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(v_snd_2104_, v_a_2170_, v___x_2105_, v___x_2102_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -v___y_2151_ = v___x_2174_; -goto v___jp_2150_; -} else { -lean_object* v___x_2175_; lean_object* v___x_2176_; lean_object* v___x_2177_; lean_object* v___x_2178_; lean_object* v___x_2179_; lean_object* v___x_2180_; -v___x_2175_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__5); +lean_object* v_a_2078_; +v_a_2078_ = lean_ctor_get(v___y_2066_, 0); +lean_inc(v_a_2078_); +lean_dec_ref(v___y_2066_); +v_a_2062_ = v_a_2078_; +goto v___jp_2061_; +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3___boxed(lean_object* v_val_2127_, lean_object* v_fst_2128_, lean_object* v_expectedType_2129_, lean_object* v___f_2130_, lean_object* v___f_2131_, lean_object* v___x_2132_, lean_object* v_cls_2133_, lean_object* v_snd_2134_, lean_object* v___x_2135_, lean_object* v_____r_2136_, lean_object* v___y_2137_, lean_object* v___y_2138_, lean_object* v___y_2139_, lean_object* v___y_2140_, lean_object* v___y_2141_){ +_start: +{ +lean_object* v_res_2142_; +v_res_2142_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(v_val_2127_, v_fst_2128_, v_expectedType_2129_, v___f_2130_, v___f_2131_, v___x_2132_, v_cls_2133_, v_snd_2134_, v___x_2135_, v_____r_2136_, v___y_2137_, v___y_2138_, v___y_2139_, v___y_2140_); +lean_dec(v___y_2140_); +lean_dec_ref(v___y_2139_); +lean_dec(v___y_2138_); +lean_dec_ref(v___y_2137_); +return v_res_2142_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1(lean_object* v___x_2143_, lean_object* v___x_2144_, lean_object* v___x_2145_, lean_object* v_a_2146_, uint8_t v___x_2147_, uint8_t v_compile_2148_, uint8_t v_logCompileErrors_2149_, uint8_t v_isMeta_2150_, lean_object* v_____r_2151_, lean_object* v___y_2152_, lean_object* v___y_2153_, lean_object* v___y_2154_, lean_object* v___y_2155_){ +_start: +{ +lean_object* v_options_2157_; lean_object* v___x_2158_; uint8_t v___x_2159_; +v_options_2157_ = lean_ctor_get(v___y_2154_, 2); +v___x_2158_ = l_Lean_Meta_backward_inferInstanceAs_wrap_data; +v___x_2159_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2157_, v___x_2158_); +if (v___x_2159_ == 0) +{ +lean_object* v___x_2160_; +lean_dec_ref(v_a_2146_); +v___x_2160_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_2143_, v___x_2144_, v___y_2153_); +if (lean_obj_tag(v___x_2160_) == 0) +{ +lean_object* v___x_2162_; uint8_t v_isShared_2163_; uint8_t v_isSharedCheck_2168_; +v_isSharedCheck_2168_ = !lean_is_exclusive(v___x_2160_); +if (v_isSharedCheck_2168_ == 0) +{ +lean_object* v_unused_2169_; +v_unused_2169_ = lean_ctor_get(v___x_2160_, 0); +lean_dec(v_unused_2169_); +v___x_2162_ = v___x_2160_; +v_isShared_2163_ = v_isSharedCheck_2168_; +goto v_resetjp_2161_; +} +else +{ +lean_dec(v___x_2160_); +v___x_2162_ = lean_box(0); +v_isShared_2163_ = v_isSharedCheck_2168_; +goto v_resetjp_2161_; +} +v_resetjp_2161_: +{ +lean_object* v___x_2164_; lean_object* v___x_2166_; +v___x_2164_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2164_, 0, v___x_2145_); +if (v_isShared_2163_ == 0) +{ +lean_ctor_set(v___x_2162_, 0, v___x_2164_); +v___x_2166_ = v___x_2162_; +goto v_reusejp_2165_; +} +else +{ +lean_object* v_reuseFailAlloc_2167_; +v_reuseFailAlloc_2167_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2167_, 0, v___x_2164_); +v___x_2166_ = v_reuseFailAlloc_2167_; +goto v_reusejp_2165_; +} +v_reusejp_2165_: +{ +return v___x_2166_; +} +} +} +else +{ +lean_object* v_a_2170_; lean_object* v___x_2172_; uint8_t v_isShared_2173_; uint8_t v_isSharedCheck_2177_; +v_a_2170_ = lean_ctor_get(v___x_2160_, 0); +v_isSharedCheck_2177_ = !lean_is_exclusive(v___x_2160_); +if (v_isSharedCheck_2177_ == 0) +{ +v___x_2172_ = v___x_2160_; +v_isShared_2173_ = v_isSharedCheck_2177_; +goto v_resetjp_2171_; +} +else +{ lean_inc(v_a_2170_); -v___x_2176_ = l_Lean_MessageData_ofExpr(v_a_2170_); -v___x_2177_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2177_, 0, v___x_2175_); -lean_ctor_set(v___x_2177_, 1, v___x_2176_); -v___x_2178_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_2179_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2179_, 0, v___x_2177_); -lean_ctor_set(v___x_2179_, 1, v___x_2178_); -lean_inc(v_cls_2103_); -v___x_2180_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2103_, v___x_2179_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); +lean_dec(v___x_2160_); +v___x_2172_ = lean_box(0); +v_isShared_2173_ = v_isSharedCheck_2177_; +goto v_resetjp_2171_; +} +v_resetjp_2171_: +{ +lean_object* v___x_2175_; +if (v_isShared_2173_ == 0) +{ +v___x_2175_ = v___x_2172_; +goto v_reusejp_2174_; +} +else +{ +lean_object* v_reuseFailAlloc_2176_; +v_reuseFailAlloc_2176_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2176_, 0, v_a_2170_); +v___x_2175_ = v_reuseFailAlloc_2176_; +goto v_reusejp_2174_; +} +v_reusejp_2174_: +{ +return v___x_2175_; +} +} +} +} +else +{ +lean_object* v___x_2178_; +lean_inc(v___y_2155_); +lean_inc_ref(v___y_2154_); +lean_inc(v___y_2153_); +lean_inc_ref(v___y_2152_); +lean_inc_ref(v___x_2144_); +v___x_2178_ = lean_infer_type(v___x_2144_, v___y_2152_, v___y_2153_, v___y_2154_, v___y_2155_); +if (lean_obj_tag(v___x_2178_) == 0) +{ +lean_object* v_a_2179_; lean_object* v___x_2180_; +v_a_2179_ = lean_ctor_get(v___x_2178_, 0); +lean_inc(v_a_2179_); +lean_dec_ref(v___x_2178_); +lean_inc_ref(v_a_2146_); +v___x_2180_ = l_Lean_Meta_isExprDefEq(v_a_2146_, v_a_2179_, v___y_2152_, v___y_2153_, v___y_2154_, v___y_2155_); if (lean_obj_tag(v___x_2180_) == 0) { -lean_object* v_a_2181_; lean_object* v___x_2182_; +lean_object* v_a_2181_; uint8_t v___x_2182_; v_a_2181_ = lean_ctor_get(v___x_2180_, 0); lean_inc(v_a_2181_); lean_dec_ref(v___x_2180_); -v___x_2182_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__2(v_snd_2104_, v_a_2170_, v___x_2105_, v_a_2181_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -v___y_2151_ = v___x_2182_; -goto v___jp_2150_; +v___x_2182_ = lean_unbox(v_a_2181_); +if (v___x_2182_ == 0) +{ +lean_object* v___x_2183_; lean_object* v___x_2184_; +v___x_2183_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_2184_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_2183_, v___y_2155_); +if (lean_obj_tag(v___x_2184_) == 0) +{ +lean_object* v_a_2185_; lean_object* v___y_2187_; lean_object* v___y_2188_; lean_object* v___y_2208_; lean_object* v___y_2209_; uint8_t v___x_2222_; uint8_t v___x_2223_; lean_object* v___x_2224_; +v_a_2185_ = lean_ctor_get(v___x_2184_, 0); +lean_inc_n(v_a_2185_, 2); +lean_dec_ref(v___x_2184_); +v___x_2222_ = lean_unbox(v_a_2181_); +v___x_2223_ = lean_unbox(v_a_2181_); +lean_dec(v_a_2181_); +v___x_2224_ = l_Lean_Meta_mkAuxDefinition(v_a_2185_, v_a_2146_, v___x_2144_, v___x_2222_, v___x_2223_, v___x_2147_, v___y_2152_, v___y_2153_, v___y_2154_, v___y_2155_); +if (lean_obj_tag(v___x_2224_) == 0) +{ +lean_object* v_a_2225_; lean_object* v___x_2226_; +v_a_2225_ = lean_ctor_get(v___x_2224_, 0); +lean_inc(v_a_2225_); +lean_dec_ref(v___x_2224_); +v___x_2226_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_2143_, v_a_2225_, v___y_2153_); +if (lean_obj_tag(v___x_2226_) == 0) +{ +uint8_t v___x_2227_; lean_object* v___x_2228_; +lean_dec_ref(v___x_2226_); +v___x_2227_ = 0; +lean_inc(v_a_2185_); +v___x_2228_ = l_Lean_Meta_setInlineAttribute(v_a_2185_, v___x_2227_, v___y_2152_, v___y_2153_, v___y_2154_, v___y_2155_); +if (lean_obj_tag(v___x_2228_) == 0) +{ +lean_dec_ref(v___x_2228_); +if (v_isMeta_2150_ == 0) +{ +v___y_2208_ = v___y_2154_; +v___y_2209_ = v___y_2155_; +goto v___jp_2207_; } else { -lean_object* v_a_2183_; -lean_dec(v_a_2170_); -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -v_a_2183_ = lean_ctor_get(v___x_2180_, 0); -lean_inc(v_a_2183_); -lean_dec_ref(v___x_2180_); -v_a_2147_ = v_a_2183_; -goto v___jp_2146_; -} -} -} -else -{ -lean_object* v_a_2184_; -lean_dec(v_a_2170_); -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -v_a_2184_ = lean_ctor_get(v___x_2171_, 0); -lean_inc(v_a_2184_); -lean_dec_ref(v___x_2171_); -v_a_2147_ = v_a_2184_; -goto v___jp_2146_; -} -} -else -{ -lean_object* v_options_2185_; uint8_t v_hasTrace_2186_; -lean_dec(v_a_2169_); -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -v_options_2185_ = lean_ctor_get(v___y_2109_, 2); -v_hasTrace_2186_ = lean_ctor_get_uint8(v_options_2185_, sizeof(void*)*1); -if (v_hasTrace_2186_ == 0) -{ -lean_object* v___x_2187_; -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2187_ = lean_apply_6(v___f_2101_, v___x_2102_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2187_; -} -else -{ -lean_object* v_inheritedTraceOptions_2188_; lean_object* v___x_2189_; lean_object* v___x_2190_; uint8_t v___x_2191_; -v_inheritedTraceOptions_2188_ = lean_ctor_get(v___y_2109_, 13); -v___x_2189_ = ((lean_object*)(l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__2)); -lean_inc(v_cls_2103_); -v___x_2190_ = l_Lean_Name_append(v___x_2189_, v_cls_2103_); -v___x_2191_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_2188_, v_options_2185_, v___x_2190_); -lean_dec(v___x_2190_); -if (v___x_2191_ == 0) -{ -lean_object* v___x_2192_; -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2192_ = lean_apply_6(v___f_2101_, v___x_2102_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2192_; -} -else -{ -lean_object* v___x_2193_; lean_object* v___x_2194_; lean_object* v___x_2195_; lean_object* v___x_2196_; lean_object* v___x_2197_; lean_object* v___x_2198_; -v___x_2193_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__7); -lean_inc(v_fst_2098_); -v___x_2194_ = l_Lean_MessageData_ofName(v_fst_2098_); -v___x_2195_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2195_, 0, v___x_2193_); -lean_ctor_set(v___x_2195_, 1, v___x_2194_); -v___x_2196_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_2197_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2197_, 0, v___x_2195_); -lean_ctor_set(v___x_2197_, 1, v___x_2196_); -lean_inc(v_cls_2103_); -v___x_2198_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2103_, v___x_2197_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -if (lean_obj_tag(v___x_2198_) == 0) -{ -lean_object* v_a_2199_; lean_object* v___x_2200_; -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -v_a_2199_ = lean_ctor_get(v___x_2198_, 0); -lean_inc(v_a_2199_); -lean_dec_ref(v___x_2198_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2200_ = lean_apply_6(v___f_2101_, v_a_2199_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2200_; -} -else -{ -lean_object* v_a_2201_; -v_a_2201_ = lean_ctor_get(v___x_2198_, 0); -lean_inc(v_a_2201_); -lean_dec_ref(v___x_2198_); -v_a_2147_ = v_a_2201_; -goto v___jp_2146_; -} -} -} -} -} -else -{ -lean_object* v_a_2202_; -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -v_a_2202_ = lean_ctor_get(v___x_2168_, 0); -lean_inc(v_a_2202_); -lean_dec_ref(v___x_2168_); -v_a_2147_ = v_a_2202_; -goto v___jp_2146_; -} -} -else -{ -lean_object* v___x_2203_; -lean_dec(v_a_2165_); -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2203_ = lean_apply_6(v___f_2101_, v___x_2102_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2203_; -} -} -else -{ -lean_object* v_a_2204_; lean_object* v___x_2206_; uint8_t v_isShared_2207_; uint8_t v_isSharedCheck_2211_; -lean_dec(v___x_2105_); -lean_dec_ref(v_snd_2104_); -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2101_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -v_a_2204_ = lean_ctor_get(v___x_2164_, 0); -v_isSharedCheck_2211_ = !lean_is_exclusive(v___x_2164_); -if (v_isSharedCheck_2211_ == 0) -{ -v___x_2206_ = v___x_2164_; -v_isShared_2207_ = v_isSharedCheck_2211_; -goto v_resetjp_2205_; -} -else -{ -lean_inc(v_a_2204_); -lean_dec(v___x_2164_); -v___x_2206_ = lean_box(0); -v_isShared_2207_ = v_isSharedCheck_2211_; -goto v_resetjp_2205_; -} -v_resetjp_2205_: -{ -lean_object* v___x_2209_; -if (v_isShared_2207_ == 0) -{ -v___x_2209_ = v___x_2206_; -goto v_reusejp_2208_; -} -else -{ -lean_object* v_reuseFailAlloc_2210_; -v_reuseFailAlloc_2210_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2210_, 0, v_a_2204_); -v___x_2209_ = v_reuseFailAlloc_2210_; -goto v_reusejp_2208_; -} -v_reusejp_2208_: -{ -return v___x_2209_; -} -} -} -v___jp_2112_: -{ -if (v___y_2114_ == 0) -{ -lean_object* v___x_2115_; -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2115_ = lean_apply_5(v___f_2100_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -if (lean_obj_tag(v___x_2115_) == 0) -{ -lean_object* v_a_2116_; uint8_t v___x_2117_; -v_a_2116_ = lean_ctor_get(v___x_2115_, 0); -lean_inc(v_a_2116_); -lean_dec_ref(v___x_2115_); -v___x_2117_ = lean_unbox(v_a_2116_); -lean_dec(v_a_2116_); -if (v___x_2117_ == 0) -{ -lean_object* v___x_2118_; -lean_dec_ref(v___y_2113_); -lean_dec(v_cls_2103_); -lean_dec(v_fst_2098_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2118_ = lean_apply_6(v___f_2101_, v___x_2102_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2118_; -} -else -{ -lean_object* v___x_2119_; lean_object* v___x_2120_; lean_object* v___x_2121_; lean_object* v___x_2122_; lean_object* v___x_2123_; lean_object* v___x_2124_; lean_object* v___x_2125_; lean_object* v___x_2126_; -v___x_2119_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__1); -v___x_2120_ = l_Lean_MessageData_ofName(v_fst_2098_); -v___x_2121_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2121_, 0, v___x_2119_); -lean_ctor_set(v___x_2121_, 1, v___x_2120_); -v___x_2122_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -v___x_2123_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2123_, 0, v___x_2121_); -lean_ctor_set(v___x_2123_, 1, v___x_2122_); -v___x_2124_ = l_Lean_Exception_toMessageData(v___y_2113_); -v___x_2125_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2125_, 0, v___x_2123_); -lean_ctor_set(v___x_2125_, 1, v___x_2124_); -v___x_2126_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2103_, v___x_2125_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_); -if (lean_obj_tag(v___x_2126_) == 0) -{ -lean_object* v_a_2127_; lean_object* v___x_2128_; -v_a_2127_ = lean_ctor_get(v___x_2126_, 0); -lean_inc(v_a_2127_); -lean_dec_ref(v___x_2126_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2128_ = lean_apply_6(v___f_2101_, v_a_2127_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2128_; -} -else -{ -lean_object* v_a_2129_; lean_object* v___x_2131_; uint8_t v_isShared_2132_; uint8_t v_isSharedCheck_2136_; -lean_dec_ref(v___f_2101_); -v_a_2129_ = lean_ctor_get(v___x_2126_, 0); -v_isSharedCheck_2136_ = !lean_is_exclusive(v___x_2126_); -if (v_isSharedCheck_2136_ == 0) -{ -v___x_2131_ = v___x_2126_; -v_isShared_2132_ = v_isSharedCheck_2136_; -goto v_resetjp_2130_; -} -else -{ -lean_inc(v_a_2129_); -lean_dec(v___x_2126_); -v___x_2131_ = lean_box(0); -v_isShared_2132_ = v_isSharedCheck_2136_; -goto v_resetjp_2130_; -} -v_resetjp_2130_: -{ -lean_object* v___x_2134_; -if (v_isShared_2132_ == 0) -{ -v___x_2134_ = v___x_2131_; -goto v_reusejp_2133_; -} -else -{ -lean_object* v_reuseFailAlloc_2135_; -v_reuseFailAlloc_2135_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2135_, 0, v_a_2129_); -v___x_2134_ = v_reuseFailAlloc_2135_; -goto v_reusejp_2133_; -} -v_reusejp_2133_: -{ -return v___x_2134_; -} -} -} -} -} -else -{ -lean_object* v_a_2137_; lean_object* v___x_2139_; uint8_t v_isShared_2140_; uint8_t v_isSharedCheck_2144_; -lean_dec_ref(v___y_2113_); -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2101_); -lean_dec(v_fst_2098_); -v_a_2137_ = lean_ctor_get(v___x_2115_, 0); -v_isSharedCheck_2144_ = !lean_is_exclusive(v___x_2115_); -if (v_isSharedCheck_2144_ == 0) -{ -v___x_2139_ = v___x_2115_; -v_isShared_2140_ = v_isSharedCheck_2144_; -goto v_resetjp_2138_; -} -else -{ -lean_inc(v_a_2137_); -lean_dec(v___x_2115_); -v___x_2139_ = lean_box(0); -v_isShared_2140_ = v_isSharedCheck_2144_; -goto v_resetjp_2138_; -} -v_resetjp_2138_: -{ -lean_object* v___x_2142_; -if (v_isShared_2140_ == 0) -{ -v___x_2142_ = v___x_2139_; -goto v_reusejp_2141_; -} -else -{ -lean_object* v_reuseFailAlloc_2143_; -v_reuseFailAlloc_2143_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2143_, 0, v_a_2137_); -v___x_2142_ = v_reuseFailAlloc_2143_; -goto v_reusejp_2141_; -} -v_reusejp_2141_: -{ -return v___x_2142_; -} -} -} -} -else -{ -lean_object* v___x_2145_; -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2101_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -v___x_2145_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2145_, 0, v___y_2113_); -return v___x_2145_; -} -} -v___jp_2146_: -{ -uint8_t v___x_2148_; -v___x_2148_ = l_Lean_Exception_isInterrupt(v_a_2147_); -if (v___x_2148_ == 0) -{ -uint8_t v___x_2149_; -lean_inc_ref(v_a_2147_); -v___x_2149_ = l_Lean_Exception_isRuntime(v_a_2147_); -v___y_2113_ = v_a_2147_; -v___y_2114_ = v___x_2149_; -goto v___jp_2112_; -} -else -{ -v___y_2113_ = v_a_2147_; -v___y_2114_ = v___x_2148_; -goto v___jp_2112_; -} -} -v___jp_2150_: -{ -if (lean_obj_tag(v___y_2151_) == 0) -{ -lean_object* v_a_2152_; lean_object* v___x_2154_; uint8_t v_isShared_2155_; uint8_t v_isSharedCheck_2162_; -lean_dec(v_cls_2103_); -lean_dec_ref(v___f_2100_); -lean_dec(v_fst_2098_); -v_a_2152_ = lean_ctor_get(v___y_2151_, 0); -v_isSharedCheck_2162_ = !lean_is_exclusive(v___y_2151_); -if (v_isSharedCheck_2162_ == 0) -{ -v___x_2154_ = v___y_2151_; -v_isShared_2155_ = v_isSharedCheck_2162_; -goto v_resetjp_2153_; -} -else -{ -lean_inc(v_a_2152_); -lean_dec(v___y_2151_); -v___x_2154_ = lean_box(0); -v_isShared_2155_ = v_isSharedCheck_2162_; -goto v_resetjp_2153_; -} -v_resetjp_2153_: -{ -if (lean_obj_tag(v_a_2152_) == 0) -{ -lean_object* v___x_2156_; lean_object* v___x_2158_; -lean_dec_ref(v___f_2101_); -v___x_2156_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2156_, 0, v___x_2102_); -if (v_isShared_2155_ == 0) -{ -lean_ctor_set(v___x_2154_, 0, v___x_2156_); -v___x_2158_ = v___x_2154_; -goto v_reusejp_2157_; -} -else -{ -lean_object* v_reuseFailAlloc_2159_; -v_reuseFailAlloc_2159_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2159_, 0, v___x_2156_); -v___x_2158_ = v_reuseFailAlloc_2159_; -goto v_reusejp_2157_; -} -v_reusejp_2157_: -{ -return v___x_2158_; -} -} -else -{ -lean_object* v_a_2160_; lean_object* v___x_2161_; -lean_del_object(v___x_2154_); -v_a_2160_ = lean_ctor_get(v_a_2152_, 0); -lean_inc(v_a_2160_); -lean_dec_ref(v_a_2152_); -lean_inc(v___y_2110_); -lean_inc_ref(v___y_2109_); -lean_inc(v___y_2108_); -lean_inc_ref(v___y_2107_); -v___x_2161_ = lean_apply_6(v___f_2101_, v_a_2160_, v___y_2107_, v___y_2108_, v___y_2109_, v___y_2110_, lean_box(0)); -return v___x_2161_; -} -} -} -else -{ -lean_object* v_a_2163_; -v_a_2163_ = lean_ctor_get(v___y_2151_, 0); -lean_inc(v_a_2163_); -lean_dec_ref(v___y_2151_); -v_a_2147_ = v_a_2163_; -goto v___jp_2146_; -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3___boxed(lean_object* v_val_2212_, lean_object* v_fst_2213_, lean_object* v_expectedType_2214_, lean_object* v___f_2215_, lean_object* v___f_2216_, lean_object* v___x_2217_, lean_object* v_cls_2218_, lean_object* v_snd_2219_, lean_object* v___x_2220_, lean_object* v_____r_2221_, lean_object* v___y_2222_, lean_object* v___y_2223_, lean_object* v___y_2224_, lean_object* v___y_2225_, lean_object* v___y_2226_){ -_start: -{ -lean_object* v_res_2227_; -v_res_2227_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(v_val_2212_, v_fst_2213_, v_expectedType_2214_, v___f_2215_, v___f_2216_, v___x_2217_, v_cls_2218_, v_snd_2219_, v___x_2220_, v_____r_2221_, v___y_2222_, v___y_2223_, v___y_2224_, v___y_2225_); -lean_dec(v___y_2225_); -lean_dec_ref(v___y_2224_); -lean_dec(v___y_2223_); -lean_dec_ref(v___y_2222_); -return v_res_2227_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1(lean_object* v___x_2228_, lean_object* v___x_2229_, lean_object* v___x_2230_, lean_object* v_a_2231_, uint8_t v___x_2232_, uint8_t v_compile_2233_, uint8_t v_logCompileErrors_2234_, uint8_t v_isMeta_2235_, lean_object* v_____r_2236_, lean_object* v___y_2237_, lean_object* v___y_2238_, lean_object* v___y_2239_, lean_object* v___y_2240_){ -_start: -{ -lean_object* v_options_2242_; lean_object* v___x_2243_; uint8_t v___x_2244_; -v_options_2242_ = lean_ctor_get(v___y_2239_, 2); -v___x_2243_ = l_Lean_Meta_backward_inferInstanceAs_wrap_data; -v___x_2244_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2242_, v___x_2243_); -if (v___x_2244_ == 0) -{ -lean_object* v___x_2245_; -lean_dec_ref(v_a_2231_); -v___x_2245_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_2228_, v___x_2229_, v___y_2238_); -if (lean_obj_tag(v___x_2245_) == 0) -{ -lean_object* v___x_2247_; uint8_t v_isShared_2248_; uint8_t v_isSharedCheck_2253_; -v_isSharedCheck_2253_ = !lean_is_exclusive(v___x_2245_); -if (v_isSharedCheck_2253_ == 0) -{ -lean_object* v_unused_2254_; -v_unused_2254_ = lean_ctor_get(v___x_2245_, 0); -lean_dec(v_unused_2254_); -v___x_2247_ = v___x_2245_; -v_isShared_2248_ = v_isSharedCheck_2253_; -goto v_resetjp_2246_; -} -else -{ -lean_dec(v___x_2245_); -v___x_2247_ = lean_box(0); -v_isShared_2248_ = v_isSharedCheck_2253_; -goto v_resetjp_2246_; -} -v_resetjp_2246_: -{ -lean_object* v___x_2249_; lean_object* v___x_2251_; -v___x_2249_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2249_, 0, v___x_2230_); -if (v_isShared_2248_ == 0) -{ -lean_ctor_set(v___x_2247_, 0, v___x_2249_); -v___x_2251_ = v___x_2247_; -goto v_reusejp_2250_; -} -else -{ -lean_object* v_reuseFailAlloc_2252_; -v_reuseFailAlloc_2252_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2252_, 0, v___x_2249_); -v___x_2251_ = v_reuseFailAlloc_2252_; -goto v_reusejp_2250_; -} -v_reusejp_2250_: -{ -return v___x_2251_; -} -} -} -else -{ -lean_object* v_a_2255_; lean_object* v___x_2257_; uint8_t v_isShared_2258_; uint8_t v_isSharedCheck_2262_; -v_a_2255_ = lean_ctor_get(v___x_2245_, 0); -v_isSharedCheck_2262_ = !lean_is_exclusive(v___x_2245_); +lean_object* v___x_2229_; lean_object* v_env_2230_; lean_object* v_nextMacroScope_2231_; lean_object* v_ngen_2232_; lean_object* v_auxDeclNGen_2233_; lean_object* v_traceState_2234_; lean_object* v_messages_2235_; lean_object* v_infoState_2236_; lean_object* v_snapshotTasks_2237_; lean_object* v___x_2239_; uint8_t v_isShared_2240_; uint8_t v_isSharedCheck_2262_; +v___x_2229_ = lean_st_ref_take(v___y_2155_); +v_env_2230_ = lean_ctor_get(v___x_2229_, 0); +v_nextMacroScope_2231_ = lean_ctor_get(v___x_2229_, 1); +v_ngen_2232_ = lean_ctor_get(v___x_2229_, 2); +v_auxDeclNGen_2233_ = lean_ctor_get(v___x_2229_, 3); +v_traceState_2234_ = lean_ctor_get(v___x_2229_, 4); +v_messages_2235_ = lean_ctor_get(v___x_2229_, 6); +v_infoState_2236_ = lean_ctor_get(v___x_2229_, 7); +v_snapshotTasks_2237_ = lean_ctor_get(v___x_2229_, 8); +v_isSharedCheck_2262_ = !lean_is_exclusive(v___x_2229_); if (v_isSharedCheck_2262_ == 0) { -v___x_2257_ = v___x_2245_; -v_isShared_2258_ = v_isSharedCheck_2262_; -goto v_resetjp_2256_; +lean_object* v_unused_2263_; +v_unused_2263_ = lean_ctor_get(v___x_2229_, 5); +lean_dec(v_unused_2263_); +v___x_2239_ = v___x_2229_; +v_isShared_2240_ = v_isSharedCheck_2262_; +goto v_resetjp_2238_; } else { -lean_inc(v_a_2255_); -lean_dec(v___x_2245_); -v___x_2257_ = lean_box(0); -v_isShared_2258_ = v_isSharedCheck_2262_; -goto v_resetjp_2256_; +lean_inc(v_snapshotTasks_2237_); +lean_inc(v_infoState_2236_); +lean_inc(v_messages_2235_); +lean_inc(v_traceState_2234_); +lean_inc(v_auxDeclNGen_2233_); +lean_inc(v_ngen_2232_); +lean_inc(v_nextMacroScope_2231_); +lean_inc(v_env_2230_); +lean_dec(v___x_2229_); +v___x_2239_ = lean_box(0); +v_isShared_2240_ = v_isSharedCheck_2262_; +goto v_resetjp_2238_; } -v_resetjp_2256_: +v_resetjp_2238_: { -lean_object* v___x_2260_; -if (v_isShared_2258_ == 0) +lean_object* v___x_2241_; lean_object* v___x_2242_; lean_object* v___x_2244_; +lean_inc(v_a_2185_); +v___x_2241_ = l_Lean_markMeta(v_env_2230_, v_a_2185_); +v___x_2242_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_2240_ == 0) { -v___x_2260_ = v___x_2257_; -goto v_reusejp_2259_; +lean_ctor_set(v___x_2239_, 5, v___x_2242_); +lean_ctor_set(v___x_2239_, 0, v___x_2241_); +v___x_2244_ = v___x_2239_; +goto v_reusejp_2243_; } else { lean_object* v_reuseFailAlloc_2261_; -v_reuseFailAlloc_2261_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2261_, 0, v_a_2255_); -v___x_2260_ = v_reuseFailAlloc_2261_; -goto v_reusejp_2259_; +v_reuseFailAlloc_2261_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_2261_, 0, v___x_2241_); +lean_ctor_set(v_reuseFailAlloc_2261_, 1, v_nextMacroScope_2231_); +lean_ctor_set(v_reuseFailAlloc_2261_, 2, v_ngen_2232_); +lean_ctor_set(v_reuseFailAlloc_2261_, 3, v_auxDeclNGen_2233_); +lean_ctor_set(v_reuseFailAlloc_2261_, 4, v_traceState_2234_); +lean_ctor_set(v_reuseFailAlloc_2261_, 5, v___x_2242_); +lean_ctor_set(v_reuseFailAlloc_2261_, 6, v_messages_2235_); +lean_ctor_set(v_reuseFailAlloc_2261_, 7, v_infoState_2236_); +lean_ctor_set(v_reuseFailAlloc_2261_, 8, v_snapshotTasks_2237_); +v___x_2244_ = v_reuseFailAlloc_2261_; +goto v_reusejp_2243_; } -v_reusejp_2259_: +v_reusejp_2243_: { -return v___x_2260_; +lean_object* v___x_2245_; lean_object* v___x_2246_; lean_object* v_mctx_2247_; lean_object* v_zetaDeltaFVarIds_2248_; lean_object* v_postponed_2249_; lean_object* v_diag_2250_; lean_object* v___x_2252_; uint8_t v_isShared_2253_; uint8_t v_isSharedCheck_2259_; +v___x_2245_ = lean_st_ref_set(v___y_2155_, v___x_2244_); +v___x_2246_ = lean_st_ref_take(v___y_2153_); +v_mctx_2247_ = lean_ctor_get(v___x_2246_, 0); +v_zetaDeltaFVarIds_2248_ = lean_ctor_get(v___x_2246_, 2); +v_postponed_2249_ = lean_ctor_get(v___x_2246_, 3); +v_diag_2250_ = lean_ctor_get(v___x_2246_, 4); +v_isSharedCheck_2259_ = !lean_is_exclusive(v___x_2246_); +if (v_isSharedCheck_2259_ == 0) +{ +lean_object* v_unused_2260_; +v_unused_2260_ = lean_ctor_get(v___x_2246_, 1); +lean_dec(v_unused_2260_); +v___x_2252_ = v___x_2246_; +v_isShared_2253_ = v_isSharedCheck_2259_; +goto v_resetjp_2251_; +} +else +{ +lean_inc(v_diag_2250_); +lean_inc(v_postponed_2249_); +lean_inc(v_zetaDeltaFVarIds_2248_); +lean_inc(v_mctx_2247_); +lean_dec(v___x_2246_); +v___x_2252_ = lean_box(0); +v_isShared_2253_ = v_isSharedCheck_2259_; +goto v_resetjp_2251_; +} +v_resetjp_2251_: +{ +lean_object* v___x_2254_; lean_object* v___x_2256_; +v___x_2254_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_2253_ == 0) +{ +lean_ctor_set(v___x_2252_, 1, v___x_2254_); +v___x_2256_ = v___x_2252_; +goto v_reusejp_2255_; +} +else +{ +lean_object* v_reuseFailAlloc_2258_; +v_reuseFailAlloc_2258_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_2258_, 0, v_mctx_2247_); +lean_ctor_set(v_reuseFailAlloc_2258_, 1, v___x_2254_); +lean_ctor_set(v_reuseFailAlloc_2258_, 2, v_zetaDeltaFVarIds_2248_); +lean_ctor_set(v_reuseFailAlloc_2258_, 3, v_postponed_2249_); +lean_ctor_set(v_reuseFailAlloc_2258_, 4, v_diag_2250_); +v___x_2256_ = v_reuseFailAlloc_2258_; +goto v_reusejp_2255_; +} +v_reusejp_2255_: +{ +lean_object* v___x_2257_; +v___x_2257_ = lean_st_ref_set(v___y_2153_, v___x_2256_); +v___y_2208_ = v___y_2154_; +v___y_2209_ = v___y_2155_; +goto v___jp_2207_; +} +} } } } } else { -lean_object* v___x_2263_; -lean_inc(v___y_2240_); -lean_inc_ref(v___y_2239_); -lean_inc(v___y_2238_); -lean_inc_ref(v___y_2237_); -lean_inc_ref(v___x_2229_); -v___x_2263_ = lean_infer_type(v___x_2229_, v___y_2237_, v___y_2238_, v___y_2239_, v___y_2240_); -if (lean_obj_tag(v___x_2263_) == 0) +lean_object* v_a_2264_; lean_object* v___x_2266_; uint8_t v_isShared_2267_; uint8_t v_isSharedCheck_2271_; +lean_dec(v_a_2185_); +v_a_2264_ = lean_ctor_get(v___x_2228_, 0); +v_isSharedCheck_2271_ = !lean_is_exclusive(v___x_2228_); +if (v_isSharedCheck_2271_ == 0) +{ +v___x_2266_ = v___x_2228_; +v_isShared_2267_ = v_isSharedCheck_2271_; +goto v_resetjp_2265_; +} +else { -lean_object* v_a_2264_; lean_object* v___x_2265_; -v_a_2264_ = lean_ctor_get(v___x_2263_, 0); lean_inc(v_a_2264_); -lean_dec_ref(v___x_2263_); -lean_inc_ref(v_a_2231_); -v___x_2265_ = l_Lean_Meta_isExprDefEq(v_a_2231_, v_a_2264_, v___y_2237_, v___y_2238_, v___y_2239_, v___y_2240_); -if (lean_obj_tag(v___x_2265_) == 0) +lean_dec(v___x_2228_); +v___x_2266_ = lean_box(0); +v_isShared_2267_ = v_isSharedCheck_2271_; +goto v_resetjp_2265_; +} +v_resetjp_2265_: { -lean_object* v_a_2266_; uint8_t v___x_2267_; -v_a_2266_ = lean_ctor_get(v___x_2265_, 0); -lean_inc(v_a_2266_); -lean_dec_ref(v___x_2265_); -v___x_2267_ = lean_unbox(v_a_2266_); -if (v___x_2267_ == 0) +lean_object* v___x_2269_; +if (v_isShared_2267_ == 0) { -lean_object* v___x_2268_; lean_object* v___x_2269_; -v___x_2268_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_2269_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_2268_, v___y_2240_); -if (lean_obj_tag(v___x_2269_) == 0) -{ -lean_object* v_a_2270_; lean_object* v___y_2272_; lean_object* v___y_2273_; lean_object* v___y_2293_; lean_object* v___y_2294_; uint8_t v___x_2307_; uint8_t v___x_2308_; lean_object* v___x_2309_; -v_a_2270_ = lean_ctor_get(v___x_2269_, 0); -lean_inc_n(v_a_2270_, 2); -lean_dec_ref(v___x_2269_); -v___x_2307_ = lean_unbox(v_a_2266_); -v___x_2308_ = lean_unbox(v_a_2266_); -lean_dec(v_a_2266_); -v___x_2309_ = l_Lean_Meta_mkAuxDefinition(v_a_2270_, v_a_2231_, v___x_2229_, v___x_2307_, v___x_2308_, v___x_2232_, v___y_2237_, v___y_2238_, v___y_2239_, v___y_2240_); -if (lean_obj_tag(v___x_2309_) == 0) -{ -lean_object* v_a_2310_; lean_object* v___x_2311_; -v_a_2310_ = lean_ctor_get(v___x_2309_, 0); -lean_inc(v_a_2310_); -lean_dec_ref(v___x_2309_); -v___x_2311_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_2228_, v_a_2310_, v___y_2238_); -if (lean_obj_tag(v___x_2311_) == 0) -{ -uint8_t v___x_2312_; lean_object* v___x_2313_; -lean_dec_ref(v___x_2311_); -v___x_2312_ = 0; -lean_inc(v_a_2270_); -v___x_2313_ = l_Lean_Meta_setInlineAttribute(v_a_2270_, v___x_2312_, v___y_2237_, v___y_2238_, v___y_2239_, v___y_2240_); -if (lean_obj_tag(v___x_2313_) == 0) -{ -lean_dec_ref(v___x_2313_); -if (v_isMeta_2235_ == 0) -{ -v___y_2293_ = v___y_2239_; -v___y_2294_ = v___y_2240_; -goto v___jp_2292_; +v___x_2269_ = v___x_2266_; +goto v_reusejp_2268_; } else { -lean_object* v___x_2314_; lean_object* v_env_2315_; lean_object* v_nextMacroScope_2316_; lean_object* v_ngen_2317_; lean_object* v_auxDeclNGen_2318_; lean_object* v_traceState_2319_; lean_object* v_messages_2320_; lean_object* v_infoState_2321_; lean_object* v_snapshotTasks_2322_; lean_object* v___x_2324_; uint8_t v_isShared_2325_; uint8_t v_isSharedCheck_2347_; -v___x_2314_ = lean_st_ref_take(v___y_2240_); -v_env_2315_ = lean_ctor_get(v___x_2314_, 0); -v_nextMacroScope_2316_ = lean_ctor_get(v___x_2314_, 1); -v_ngen_2317_ = lean_ctor_get(v___x_2314_, 2); -v_auxDeclNGen_2318_ = lean_ctor_get(v___x_2314_, 3); -v_traceState_2319_ = lean_ctor_get(v___x_2314_, 4); -v_messages_2320_ = lean_ctor_get(v___x_2314_, 6); -v_infoState_2321_ = lean_ctor_get(v___x_2314_, 7); -v_snapshotTasks_2322_ = lean_ctor_get(v___x_2314_, 8); -v_isSharedCheck_2347_ = !lean_is_exclusive(v___x_2314_); -if (v_isSharedCheck_2347_ == 0) +lean_object* v_reuseFailAlloc_2270_; +v_reuseFailAlloc_2270_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2270_, 0, v_a_2264_); +v___x_2269_ = v_reuseFailAlloc_2270_; +goto v_reusejp_2268_; +} +v_reusejp_2268_: { -lean_object* v_unused_2348_; -v_unused_2348_ = lean_ctor_get(v___x_2314_, 5); -lean_dec(v_unused_2348_); -v___x_2324_ = v___x_2314_; -v_isShared_2325_ = v_isSharedCheck_2347_; +return v___x_2269_; +} +} +} +} +else +{ +lean_object* v_a_2272_; lean_object* v___x_2274_; uint8_t v_isShared_2275_; uint8_t v_isSharedCheck_2279_; +lean_dec(v_a_2185_); +v_a_2272_ = lean_ctor_get(v___x_2226_, 0); +v_isSharedCheck_2279_ = !lean_is_exclusive(v___x_2226_); +if (v_isSharedCheck_2279_ == 0) +{ +v___x_2274_ = v___x_2226_; +v_isShared_2275_ = v_isSharedCheck_2279_; +goto v_resetjp_2273_; +} +else +{ +lean_inc(v_a_2272_); +lean_dec(v___x_2226_); +v___x_2274_ = lean_box(0); +v_isShared_2275_ = v_isSharedCheck_2279_; +goto v_resetjp_2273_; +} +v_resetjp_2273_: +{ +lean_object* v___x_2277_; +if (v_isShared_2275_ == 0) +{ +v___x_2277_ = v___x_2274_; +goto v_reusejp_2276_; +} +else +{ +lean_object* v_reuseFailAlloc_2278_; +v_reuseFailAlloc_2278_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2278_, 0, v_a_2272_); +v___x_2277_ = v_reuseFailAlloc_2278_; +goto v_reusejp_2276_; +} +v_reusejp_2276_: +{ +return v___x_2277_; +} +} +} +} +else +{ +lean_object* v_a_2280_; lean_object* v___x_2282_; uint8_t v_isShared_2283_; uint8_t v_isSharedCheck_2287_; +lean_dec(v_a_2185_); +lean_dec(v___x_2143_); +v_a_2280_ = lean_ctor_get(v___x_2224_, 0); +v_isSharedCheck_2287_ = !lean_is_exclusive(v___x_2224_); +if (v_isSharedCheck_2287_ == 0) +{ +v___x_2282_ = v___x_2224_; +v_isShared_2283_ = v_isSharedCheck_2287_; +goto v_resetjp_2281_; +} +else +{ +lean_inc(v_a_2280_); +lean_dec(v___x_2224_); +v___x_2282_ = lean_box(0); +v_isShared_2283_ = v_isSharedCheck_2287_; +goto v_resetjp_2281_; +} +v_resetjp_2281_: +{ +lean_object* v___x_2285_; +if (v_isShared_2283_ == 0) +{ +v___x_2285_ = v___x_2282_; +goto v_reusejp_2284_; +} +else +{ +lean_object* v_reuseFailAlloc_2286_; +v_reuseFailAlloc_2286_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2286_, 0, v_a_2280_); +v___x_2285_ = v_reuseFailAlloc_2286_; +goto v_reusejp_2284_; +} +v_reusejp_2284_: +{ +return v___x_2285_; +} +} +} +v___jp_2186_: +{ +lean_object* v___x_2189_; +v___x_2189_ = l_Lean_enableRealizationsForConst(v_a_2185_, v___y_2187_, v___y_2188_); +if (lean_obj_tag(v___x_2189_) == 0) +{ +lean_object* v___x_2191_; uint8_t v_isShared_2192_; uint8_t v_isSharedCheck_2197_; +v_isSharedCheck_2197_ = !lean_is_exclusive(v___x_2189_); +if (v_isSharedCheck_2197_ == 0) +{ +lean_object* v_unused_2198_; +v_unused_2198_ = lean_ctor_get(v___x_2189_, 0); +lean_dec(v_unused_2198_); +v___x_2191_ = v___x_2189_; +v_isShared_2192_ = v_isSharedCheck_2197_; +goto v_resetjp_2190_; +} +else +{ +lean_dec(v___x_2189_); +v___x_2191_ = lean_box(0); +v_isShared_2192_ = v_isSharedCheck_2197_; +goto v_resetjp_2190_; +} +v_resetjp_2190_: +{ +lean_object* v___x_2193_; lean_object* v___x_2195_; +v___x_2193_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2193_, 0, v___x_2145_); +if (v_isShared_2192_ == 0) +{ +lean_ctor_set(v___x_2191_, 0, v___x_2193_); +v___x_2195_ = v___x_2191_; +goto v_reusejp_2194_; +} +else +{ +lean_object* v_reuseFailAlloc_2196_; +v_reuseFailAlloc_2196_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2196_, 0, v___x_2193_); +v___x_2195_ = v_reuseFailAlloc_2196_; +goto v_reusejp_2194_; +} +v_reusejp_2194_: +{ +return v___x_2195_; +} +} +} +else +{ +lean_object* v_a_2199_; lean_object* v___x_2201_; uint8_t v_isShared_2202_; uint8_t v_isSharedCheck_2206_; +v_a_2199_ = lean_ctor_get(v___x_2189_, 0); +v_isSharedCheck_2206_ = !lean_is_exclusive(v___x_2189_); +if (v_isSharedCheck_2206_ == 0) +{ +v___x_2201_ = v___x_2189_; +v_isShared_2202_ = v_isSharedCheck_2206_; +goto v_resetjp_2200_; +} +else +{ +lean_inc(v_a_2199_); +lean_dec(v___x_2189_); +v___x_2201_ = lean_box(0); +v_isShared_2202_ = v_isSharedCheck_2206_; +goto v_resetjp_2200_; +} +v_resetjp_2200_: +{ +lean_object* v___x_2204_; +if (v_isShared_2202_ == 0) +{ +v___x_2204_ = v___x_2201_; +goto v_reusejp_2203_; +} +else +{ +lean_object* v_reuseFailAlloc_2205_; +v_reuseFailAlloc_2205_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2205_, 0, v_a_2199_); +v___x_2204_ = v_reuseFailAlloc_2205_; +goto v_reusejp_2203_; +} +v_reusejp_2203_: +{ +return v___x_2204_; +} +} +} +} +v___jp_2207_: +{ +if (v_compile_2148_ == 0) +{ +v___y_2187_ = v___y_2208_; +v___y_2188_ = v___y_2209_; +goto v___jp_2186_; +} +else +{ +lean_object* v___x_2210_; lean_object* v___x_2211_; lean_object* v___x_2212_; lean_object* v___x_2213_; +v___x_2210_ = lean_unsigned_to_nat(1u); +v___x_2211_ = lean_mk_empty_array_with_capacity(v___x_2210_); +lean_inc(v_a_2185_); +v___x_2212_ = lean_array_push(v___x_2211_, v_a_2185_); +v___x_2213_ = l_Lean_compileDecls(v___x_2212_, v_logCompileErrors_2149_, v___y_2208_, v___y_2209_); +if (lean_obj_tag(v___x_2213_) == 0) +{ +lean_dec_ref(v___x_2213_); +v___y_2187_ = v___y_2208_; +v___y_2188_ = v___y_2209_; +goto v___jp_2186_; +} +else +{ +lean_object* v_a_2214_; lean_object* v___x_2216_; uint8_t v_isShared_2217_; uint8_t v_isSharedCheck_2221_; +lean_dec(v_a_2185_); +v_a_2214_ = lean_ctor_get(v___x_2213_, 0); +v_isSharedCheck_2221_ = !lean_is_exclusive(v___x_2213_); +if (v_isSharedCheck_2221_ == 0) +{ +v___x_2216_ = v___x_2213_; +v_isShared_2217_ = v_isSharedCheck_2221_; +goto v_resetjp_2215_; +} +else +{ +lean_inc(v_a_2214_); +lean_dec(v___x_2213_); +v___x_2216_ = lean_box(0); +v_isShared_2217_ = v_isSharedCheck_2221_; +goto v_resetjp_2215_; +} +v_resetjp_2215_: +{ +lean_object* v___x_2219_; +if (v_isShared_2217_ == 0) +{ +v___x_2219_ = v___x_2216_; +goto v_reusejp_2218_; +} +else +{ +lean_object* v_reuseFailAlloc_2220_; +v_reuseFailAlloc_2220_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2220_, 0, v_a_2214_); +v___x_2219_ = v_reuseFailAlloc_2220_; +goto v_reusejp_2218_; +} +v_reusejp_2218_: +{ +return v___x_2219_; +} +} +} +} +} +} +else +{ +lean_object* v_a_2288_; lean_object* v___x_2290_; uint8_t v_isShared_2291_; uint8_t v_isSharedCheck_2295_; +lean_dec(v_a_2181_); +lean_dec_ref(v_a_2146_); +lean_dec_ref(v___x_2144_); +lean_dec(v___x_2143_); +v_a_2288_ = lean_ctor_get(v___x_2184_, 0); +v_isSharedCheck_2295_ = !lean_is_exclusive(v___x_2184_); +if (v_isSharedCheck_2295_ == 0) +{ +v___x_2290_ = v___x_2184_; +v_isShared_2291_ = v_isSharedCheck_2295_; +goto v_resetjp_2289_; +} +else +{ +lean_inc(v_a_2288_); +lean_dec(v___x_2184_); +v___x_2290_ = lean_box(0); +v_isShared_2291_ = v_isSharedCheck_2295_; +goto v_resetjp_2289_; +} +v_resetjp_2289_: +{ +lean_object* v___x_2293_; +if (v_isShared_2291_ == 0) +{ +v___x_2293_ = v___x_2290_; +goto v_reusejp_2292_; +} +else +{ +lean_object* v_reuseFailAlloc_2294_; +v_reuseFailAlloc_2294_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2294_, 0, v_a_2288_); +v___x_2293_ = v_reuseFailAlloc_2294_; +goto v_reusejp_2292_; +} +v_reusejp_2292_: +{ +return v___x_2293_; +} +} +} +} +else +{ +lean_object* v___x_2296_; +lean_dec(v_a_2181_); +lean_dec_ref(v_a_2146_); +v___x_2296_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_2143_, v___x_2144_, v___y_2153_); +if (lean_obj_tag(v___x_2296_) == 0) +{ +lean_object* v___x_2298_; uint8_t v_isShared_2299_; uint8_t v_isSharedCheck_2304_; +v_isSharedCheck_2304_ = !lean_is_exclusive(v___x_2296_); +if (v_isSharedCheck_2304_ == 0) +{ +lean_object* v_unused_2305_; +v_unused_2305_ = lean_ctor_get(v___x_2296_, 0); +lean_dec(v_unused_2305_); +v___x_2298_ = v___x_2296_; +v_isShared_2299_ = v_isSharedCheck_2304_; +goto v_resetjp_2297_; +} +else +{ +lean_dec(v___x_2296_); +v___x_2298_ = lean_box(0); +v_isShared_2299_ = v_isSharedCheck_2304_; +goto v_resetjp_2297_; +} +v_resetjp_2297_: +{ +lean_object* v___x_2300_; lean_object* v___x_2302_; +v___x_2300_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2300_, 0, v___x_2145_); +if (v_isShared_2299_ == 0) +{ +lean_ctor_set(v___x_2298_, 0, v___x_2300_); +v___x_2302_ = v___x_2298_; +goto v_reusejp_2301_; +} +else +{ +lean_object* v_reuseFailAlloc_2303_; +v_reuseFailAlloc_2303_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2303_, 0, v___x_2300_); +v___x_2302_ = v_reuseFailAlloc_2303_; +goto v_reusejp_2301_; +} +v_reusejp_2301_: +{ +return v___x_2302_; +} +} +} +else +{ +lean_object* v_a_2306_; lean_object* v___x_2308_; uint8_t v_isShared_2309_; uint8_t v_isSharedCheck_2313_; +v_a_2306_ = lean_ctor_get(v___x_2296_, 0); +v_isSharedCheck_2313_ = !lean_is_exclusive(v___x_2296_); +if (v_isSharedCheck_2313_ == 0) +{ +v___x_2308_ = v___x_2296_; +v_isShared_2309_ = v_isSharedCheck_2313_; +goto v_resetjp_2307_; +} +else +{ +lean_inc(v_a_2306_); +lean_dec(v___x_2296_); +v___x_2308_ = lean_box(0); +v_isShared_2309_ = v_isSharedCheck_2313_; +goto v_resetjp_2307_; +} +v_resetjp_2307_: +{ +lean_object* v___x_2311_; +if (v_isShared_2309_ == 0) +{ +v___x_2311_ = v___x_2308_; +goto v_reusejp_2310_; +} +else +{ +lean_object* v_reuseFailAlloc_2312_; +v_reuseFailAlloc_2312_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2312_, 0, v_a_2306_); +v___x_2311_ = v_reuseFailAlloc_2312_; +goto v_reusejp_2310_; +} +v_reusejp_2310_: +{ +return v___x_2311_; +} +} +} +} +} +else +{ +lean_object* v_a_2314_; lean_object* v___x_2316_; uint8_t v_isShared_2317_; uint8_t v_isSharedCheck_2321_; +lean_dec_ref(v_a_2146_); +lean_dec_ref(v___x_2144_); +lean_dec(v___x_2143_); +v_a_2314_ = lean_ctor_get(v___x_2180_, 0); +v_isSharedCheck_2321_ = !lean_is_exclusive(v___x_2180_); +if (v_isSharedCheck_2321_ == 0) +{ +v___x_2316_ = v___x_2180_; +v_isShared_2317_ = v_isSharedCheck_2321_; +goto v_resetjp_2315_; +} +else +{ +lean_inc(v_a_2314_); +lean_dec(v___x_2180_); +v___x_2316_ = lean_box(0); +v_isShared_2317_ = v_isSharedCheck_2321_; +goto v_resetjp_2315_; +} +v_resetjp_2315_: +{ +lean_object* v___x_2319_; +if (v_isShared_2317_ == 0) +{ +v___x_2319_ = v___x_2316_; +goto v_reusejp_2318_; +} +else +{ +lean_object* v_reuseFailAlloc_2320_; +v_reuseFailAlloc_2320_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2320_, 0, v_a_2314_); +v___x_2319_ = v_reuseFailAlloc_2320_; +goto v_reusejp_2318_; +} +v_reusejp_2318_: +{ +return v___x_2319_; +} +} +} +} +else +{ +lean_object* v_a_2322_; lean_object* v___x_2324_; uint8_t v_isShared_2325_; uint8_t v_isSharedCheck_2329_; +lean_dec_ref(v_a_2146_); +lean_dec_ref(v___x_2144_); +lean_dec(v___x_2143_); +v_a_2322_ = lean_ctor_get(v___x_2178_, 0); +v_isSharedCheck_2329_ = !lean_is_exclusive(v___x_2178_); +if (v_isSharedCheck_2329_ == 0) +{ +v___x_2324_ = v___x_2178_; +v_isShared_2325_ = v_isSharedCheck_2329_; goto v_resetjp_2323_; } else { -lean_inc(v_snapshotTasks_2322_); -lean_inc(v_infoState_2321_); -lean_inc(v_messages_2320_); -lean_inc(v_traceState_2319_); -lean_inc(v_auxDeclNGen_2318_); -lean_inc(v_ngen_2317_); -lean_inc(v_nextMacroScope_2316_); -lean_inc(v_env_2315_); -lean_dec(v___x_2314_); +lean_inc(v_a_2322_); +lean_dec(v___x_2178_); v___x_2324_ = lean_box(0); -v_isShared_2325_ = v_isSharedCheck_2347_; +v_isShared_2325_ = v_isSharedCheck_2329_; goto v_resetjp_2323_; } v_resetjp_2323_: { -lean_object* v___x_2326_; lean_object* v___x_2327_; lean_object* v___x_2329_; -lean_inc(v_a_2270_); -v___x_2326_ = l_Lean_markMeta(v_env_2315_, v_a_2270_); -v___x_2327_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); +lean_object* v___x_2327_; if (v_isShared_2325_ == 0) { -lean_ctor_set(v___x_2324_, 5, v___x_2327_); -lean_ctor_set(v___x_2324_, 0, v___x_2326_); -v___x_2329_ = v___x_2324_; -goto v_reusejp_2328_; +v___x_2327_ = v___x_2324_; +goto v_reusejp_2326_; } else { -lean_object* v_reuseFailAlloc_2346_; -v_reuseFailAlloc_2346_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_2346_, 0, v___x_2326_); -lean_ctor_set(v_reuseFailAlloc_2346_, 1, v_nextMacroScope_2316_); -lean_ctor_set(v_reuseFailAlloc_2346_, 2, v_ngen_2317_); -lean_ctor_set(v_reuseFailAlloc_2346_, 3, v_auxDeclNGen_2318_); -lean_ctor_set(v_reuseFailAlloc_2346_, 4, v_traceState_2319_); -lean_ctor_set(v_reuseFailAlloc_2346_, 5, v___x_2327_); -lean_ctor_set(v_reuseFailAlloc_2346_, 6, v_messages_2320_); -lean_ctor_set(v_reuseFailAlloc_2346_, 7, v_infoState_2321_); -lean_ctor_set(v_reuseFailAlloc_2346_, 8, v_snapshotTasks_2322_); -v___x_2329_ = v_reuseFailAlloc_2346_; -goto v_reusejp_2328_; +lean_object* v_reuseFailAlloc_2328_; +v_reuseFailAlloc_2328_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2328_, 0, v_a_2322_); +v___x_2327_ = v_reuseFailAlloc_2328_; +goto v_reusejp_2326_; } -v_reusejp_2328_: +v_reusejp_2326_: { -lean_object* v___x_2330_; lean_object* v___x_2331_; lean_object* v_mctx_2332_; lean_object* v_zetaDeltaFVarIds_2333_; lean_object* v_postponed_2334_; lean_object* v_diag_2335_; lean_object* v___x_2337_; uint8_t v_isShared_2338_; uint8_t v_isSharedCheck_2344_; -v___x_2330_ = lean_st_ref_set(v___y_2240_, v___x_2329_); -v___x_2331_ = lean_st_ref_take(v___y_2238_); -v_mctx_2332_ = lean_ctor_get(v___x_2331_, 0); -v_zetaDeltaFVarIds_2333_ = lean_ctor_get(v___x_2331_, 2); -v_postponed_2334_ = lean_ctor_get(v___x_2331_, 3); -v_diag_2335_ = lean_ctor_get(v___x_2331_, 4); -v_isSharedCheck_2344_ = !lean_is_exclusive(v___x_2331_); -if (v_isSharedCheck_2344_ == 0) +return v___x_2327_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1___boxed(lean_object* v___x_2330_, lean_object* v___x_2331_, lean_object* v___x_2332_, lean_object* v_a_2333_, lean_object* v___x_2334_, lean_object* v_compile_2335_, lean_object* v_logCompileErrors_2336_, lean_object* v_isMeta_2337_, lean_object* v_____r_2338_, lean_object* v___y_2339_, lean_object* v___y_2340_, lean_object* v___y_2341_, lean_object* v___y_2342_, lean_object* v___y_2343_){ +_start: { -lean_object* v_unused_2345_; -v_unused_2345_ = lean_ctor_get(v___x_2331_, 1); -lean_dec(v_unused_2345_); -v___x_2337_ = v___x_2331_; -v_isShared_2338_ = v_isSharedCheck_2344_; -goto v_resetjp_2336_; +uint8_t v___x_160290__boxed_2344_; uint8_t v_compile_boxed_2345_; uint8_t v_logCompileErrors_boxed_2346_; uint8_t v_isMeta_boxed_2347_; lean_object* v_res_2348_; +v___x_160290__boxed_2344_ = lean_unbox(v___x_2334_); +v_compile_boxed_2345_ = lean_unbox(v_compile_2335_); +v_logCompileErrors_boxed_2346_ = lean_unbox(v_logCompileErrors_2336_); +v_isMeta_boxed_2347_ = lean_unbox(v_isMeta_2337_); +v_res_2348_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1(v___x_2330_, v___x_2331_, v___x_2332_, v_a_2333_, v___x_160290__boxed_2344_, v_compile_boxed_2345_, v_logCompileErrors_boxed_2346_, v_isMeta_boxed_2347_, v_____r_2338_, v___y_2339_, v___y_2340_, v___y_2341_, v___y_2342_); +lean_dec(v___y_2342_); +lean_dec_ref(v___y_2341_); +lean_dec(v___y_2340_); +lean_dec_ref(v___y_2339_); +return v_res_2348_; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(lean_object* v_a_2349_, lean_object* v_a_2350_){ +_start: +{ +if (lean_obj_tag(v_a_2349_) == 0) +{ +lean_object* v___x_2351_; +v___x_2351_ = l_List_reverse___redArg(v_a_2350_); +return v___x_2351_; } else { -lean_inc(v_diag_2335_); -lean_inc(v_postponed_2334_); -lean_inc(v_zetaDeltaFVarIds_2333_); -lean_inc(v_mctx_2332_); -lean_dec(v___x_2331_); -v___x_2337_ = lean_box(0); -v_isShared_2338_ = v_isSharedCheck_2344_; -goto v_resetjp_2336_; -} -v_resetjp_2336_: +lean_object* v_head_2352_; lean_object* v_tail_2353_; lean_object* v___x_2355_; uint8_t v_isShared_2356_; uint8_t v_isSharedCheck_2362_; +v_head_2352_ = lean_ctor_get(v_a_2349_, 0); +v_tail_2353_ = lean_ctor_get(v_a_2349_, 1); +v_isSharedCheck_2362_ = !lean_is_exclusive(v_a_2349_); +if (v_isSharedCheck_2362_ == 0) { -lean_object* v___x_2339_; lean_object* v___x_2341_; -v___x_2339_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_2338_ == 0) -{ -lean_ctor_set(v___x_2337_, 1, v___x_2339_); -v___x_2341_ = v___x_2337_; -goto v_reusejp_2340_; +v___x_2355_ = v_a_2349_; +v_isShared_2356_ = v_isSharedCheck_2362_; +goto v_resetjp_2354_; } else { -lean_object* v_reuseFailAlloc_2343_; -v_reuseFailAlloc_2343_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_2343_, 0, v_mctx_2332_); -lean_ctor_set(v_reuseFailAlloc_2343_, 1, v___x_2339_); -lean_ctor_set(v_reuseFailAlloc_2343_, 2, v_zetaDeltaFVarIds_2333_); -lean_ctor_set(v_reuseFailAlloc_2343_, 3, v_postponed_2334_); -lean_ctor_set(v_reuseFailAlloc_2343_, 4, v_diag_2335_); -v___x_2341_ = v_reuseFailAlloc_2343_; -goto v_reusejp_2340_; +lean_inc(v_tail_2353_); +lean_inc(v_head_2352_); +lean_dec(v_a_2349_); +v___x_2355_ = lean_box(0); +v_isShared_2356_ = v_isSharedCheck_2362_; +goto v_resetjp_2354_; } -v_reusejp_2340_: +v_resetjp_2354_: { -lean_object* v___x_2342_; -v___x_2342_ = lean_st_ref_set(v___y_2238_, v___x_2341_); -v___y_2293_ = v___y_2239_; -v___y_2294_ = v___y_2240_; -goto v___jp_2292_; -} -} -} -} -} +lean_object* v___x_2357_; lean_object* v___x_2359_; +v___x_2357_ = l_Lean_MessageData_ofExpr(v_head_2352_); +if (v_isShared_2356_ == 0) +{ +lean_ctor_set(v___x_2355_, 1, v_a_2350_); +lean_ctor_set(v___x_2355_, 0, v___x_2357_); +v___x_2359_ = v___x_2355_; +goto v_reusejp_2358_; } else { -lean_object* v_a_2349_; lean_object* v___x_2351_; uint8_t v_isShared_2352_; uint8_t v_isSharedCheck_2356_; -lean_dec(v_a_2270_); -v_a_2349_ = lean_ctor_get(v___x_2313_, 0); -v_isSharedCheck_2356_ = !lean_is_exclusive(v___x_2313_); -if (v_isSharedCheck_2356_ == 0) +lean_object* v_reuseFailAlloc_2361_; +v_reuseFailAlloc_2361_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2361_, 0, v___x_2357_); +lean_ctor_set(v_reuseFailAlloc_2361_, 1, v_a_2350_); +v___x_2359_ = v_reuseFailAlloc_2361_; +goto v_reusejp_2358_; +} +v_reusejp_2358_: { -v___x_2351_ = v___x_2313_; -v_isShared_2352_ = v_isSharedCheck_2356_; -goto v_resetjp_2350_; +v_a_2349_ = v_tail_2353_; +v_a_2350_ = v___x_2359_; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(size_t v_sz_2363_, size_t v_i_2364_, lean_object* v_bs_2365_, lean_object* v___y_2366_, lean_object* v___y_2367_, lean_object* v___y_2368_, lean_object* v___y_2369_){ +_start: +{ +uint8_t v___x_2371_; +v___x_2371_ = lean_usize_dec_lt(v_i_2364_, v_sz_2363_); +if (v___x_2371_ == 0) +{ +lean_object* v___x_2372_; +v___x_2372_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2372_, 0, v_bs_2365_); +return v___x_2372_; } else { -lean_inc(v_a_2349_); -lean_dec(v___x_2313_); -v___x_2351_ = lean_box(0); -v_isShared_2352_ = v_isSharedCheck_2356_; -goto v_resetjp_2350_; -} -v_resetjp_2350_: +lean_object* v_v_2373_; lean_object* v___x_2374_; +v_v_2373_ = lean_array_uget_borrowed(v_bs_2365_, v_i_2364_); +lean_inc(v_v_2373_); +v___x_2374_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_v_2373_, v___y_2367_); +if (lean_obj_tag(v___x_2374_) == 0) { -lean_object* v___x_2354_; -if (v_isShared_2352_ == 0) -{ -v___x_2354_ = v___x_2351_; -goto v_reusejp_2353_; +lean_object* v_a_2375_; lean_object* v___x_2376_; lean_object* v_bs_x27_2377_; size_t v___x_2378_; size_t v___x_2379_; lean_object* v___x_2380_; +v_a_2375_ = lean_ctor_get(v___x_2374_, 0); +lean_inc(v_a_2375_); +lean_dec_ref(v___x_2374_); +v___x_2376_ = lean_unsigned_to_nat(0u); +v_bs_x27_2377_ = lean_array_uset(v_bs_2365_, v_i_2364_, v___x_2376_); +v___x_2378_ = ((size_t)1ULL); +v___x_2379_ = lean_usize_add(v_i_2364_, v___x_2378_); +v___x_2380_ = lean_array_uset(v_bs_x27_2377_, v_i_2364_, v_a_2375_); +v_i_2364_ = v___x_2379_; +v_bs_2365_ = v___x_2380_; +goto _start; } else { -lean_object* v_reuseFailAlloc_2355_; -v_reuseFailAlloc_2355_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2355_, 0, v_a_2349_); -v___x_2354_ = v_reuseFailAlloc_2355_; -goto v_reusejp_2353_; -} -v_reusejp_2353_: -{ -return v___x_2354_; -} -} -} -} -else -{ -lean_object* v_a_2357_; lean_object* v___x_2359_; uint8_t v_isShared_2360_; uint8_t v_isSharedCheck_2364_; -lean_dec(v_a_2270_); -v_a_2357_ = lean_ctor_get(v___x_2311_, 0); -v_isSharedCheck_2364_ = !lean_is_exclusive(v___x_2311_); -if (v_isSharedCheck_2364_ == 0) -{ -v___x_2359_ = v___x_2311_; -v_isShared_2360_ = v_isSharedCheck_2364_; -goto v_resetjp_2358_; -} -else -{ -lean_inc(v_a_2357_); -lean_dec(v___x_2311_); -v___x_2359_ = lean_box(0); -v_isShared_2360_ = v_isSharedCheck_2364_; -goto v_resetjp_2358_; -} -v_resetjp_2358_: -{ -lean_object* v___x_2362_; -if (v_isShared_2360_ == 0) -{ -v___x_2362_ = v___x_2359_; -goto v_reusejp_2361_; -} -else -{ -lean_object* v_reuseFailAlloc_2363_; -v_reuseFailAlloc_2363_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2363_, 0, v_a_2357_); -v___x_2362_ = v_reuseFailAlloc_2363_; -goto v_reusejp_2361_; -} -v_reusejp_2361_: -{ -return v___x_2362_; -} -} -} -} -else -{ -lean_object* v_a_2365_; lean_object* v___x_2367_; uint8_t v_isShared_2368_; uint8_t v_isSharedCheck_2372_; -lean_dec(v_a_2270_); -lean_dec(v___x_2228_); -v_a_2365_ = lean_ctor_get(v___x_2309_, 0); -v_isSharedCheck_2372_ = !lean_is_exclusive(v___x_2309_); -if (v_isSharedCheck_2372_ == 0) -{ -v___x_2367_ = v___x_2309_; -v_isShared_2368_ = v_isSharedCheck_2372_; -goto v_resetjp_2366_; -} -else -{ -lean_inc(v_a_2365_); -lean_dec(v___x_2309_); -v___x_2367_ = lean_box(0); -v_isShared_2368_ = v_isSharedCheck_2372_; -goto v_resetjp_2366_; -} -v_resetjp_2366_: -{ -lean_object* v___x_2370_; -if (v_isShared_2368_ == 0) -{ -v___x_2370_ = v___x_2367_; -goto v_reusejp_2369_; -} -else -{ -lean_object* v_reuseFailAlloc_2371_; -v_reuseFailAlloc_2371_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2371_, 0, v_a_2365_); -v___x_2370_ = v_reuseFailAlloc_2371_; -goto v_reusejp_2369_; -} -v_reusejp_2369_: -{ -return v___x_2370_; -} -} -} -v___jp_2271_: -{ -lean_object* v___x_2274_; -v___x_2274_ = l_Lean_enableRealizationsForConst(v_a_2270_, v___y_2272_, v___y_2273_); -if (lean_obj_tag(v___x_2274_) == 0) -{ -lean_object* v___x_2276_; uint8_t v_isShared_2277_; uint8_t v_isSharedCheck_2282_; -v_isSharedCheck_2282_ = !lean_is_exclusive(v___x_2274_); -if (v_isSharedCheck_2282_ == 0) -{ -lean_object* v_unused_2283_; -v_unused_2283_ = lean_ctor_get(v___x_2274_, 0); -lean_dec(v_unused_2283_); -v___x_2276_ = v___x_2274_; -v_isShared_2277_ = v_isSharedCheck_2282_; -goto v_resetjp_2275_; -} -else -{ -lean_dec(v___x_2274_); -v___x_2276_ = lean_box(0); -v_isShared_2277_ = v_isSharedCheck_2282_; -goto v_resetjp_2275_; -} -v_resetjp_2275_: -{ -lean_object* v___x_2278_; lean_object* v___x_2280_; -v___x_2278_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2278_, 0, v___x_2230_); -if (v_isShared_2277_ == 0) -{ -lean_ctor_set(v___x_2276_, 0, v___x_2278_); -v___x_2280_ = v___x_2276_; -goto v_reusejp_2279_; -} -else -{ -lean_object* v_reuseFailAlloc_2281_; -v_reuseFailAlloc_2281_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2281_, 0, v___x_2278_); -v___x_2280_ = v_reuseFailAlloc_2281_; -goto v_reusejp_2279_; -} -v_reusejp_2279_: -{ -return v___x_2280_; -} -} -} -else -{ -lean_object* v_a_2284_; lean_object* v___x_2286_; uint8_t v_isShared_2287_; uint8_t v_isSharedCheck_2291_; -v_a_2284_ = lean_ctor_get(v___x_2274_, 0); -v_isSharedCheck_2291_ = !lean_is_exclusive(v___x_2274_); -if (v_isSharedCheck_2291_ == 0) -{ -v___x_2286_ = v___x_2274_; -v_isShared_2287_ = v_isSharedCheck_2291_; -goto v_resetjp_2285_; -} -else -{ -lean_inc(v_a_2284_); -lean_dec(v___x_2274_); -v___x_2286_ = lean_box(0); -v_isShared_2287_ = v_isSharedCheck_2291_; -goto v_resetjp_2285_; -} -v_resetjp_2285_: -{ -lean_object* v___x_2289_; -if (v_isShared_2287_ == 0) -{ -v___x_2289_ = v___x_2286_; -goto v_reusejp_2288_; -} -else -{ -lean_object* v_reuseFailAlloc_2290_; -v_reuseFailAlloc_2290_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2290_, 0, v_a_2284_); -v___x_2289_ = v_reuseFailAlloc_2290_; -goto v_reusejp_2288_; -} -v_reusejp_2288_: -{ -return v___x_2289_; -} -} -} -} -v___jp_2292_: -{ -if (v_compile_2233_ == 0) -{ -v___y_2272_ = v___y_2293_; -v___y_2273_ = v___y_2294_; -goto v___jp_2271_; -} -else -{ -lean_object* v___x_2295_; lean_object* v___x_2296_; lean_object* v___x_2297_; lean_object* v___x_2298_; -v___x_2295_ = lean_unsigned_to_nat(1u); -v___x_2296_ = lean_mk_empty_array_with_capacity(v___x_2295_); -lean_inc(v_a_2270_); -v___x_2297_ = lean_array_push(v___x_2296_, v_a_2270_); -v___x_2298_ = l_Lean_compileDecls(v___x_2297_, v_logCompileErrors_2234_, v___y_2293_, v___y_2294_); -if (lean_obj_tag(v___x_2298_) == 0) -{ -lean_dec_ref(v___x_2298_); -v___y_2272_ = v___y_2293_; -v___y_2273_ = v___y_2294_; -goto v___jp_2271_; -} -else -{ -lean_object* v_a_2299_; lean_object* v___x_2301_; uint8_t v_isShared_2302_; uint8_t v_isSharedCheck_2306_; -lean_dec(v_a_2270_); -v_a_2299_ = lean_ctor_get(v___x_2298_, 0); -v_isSharedCheck_2306_ = !lean_is_exclusive(v___x_2298_); -if (v_isSharedCheck_2306_ == 0) -{ -v___x_2301_ = v___x_2298_; -v_isShared_2302_ = v_isSharedCheck_2306_; -goto v_resetjp_2300_; -} -else -{ -lean_inc(v_a_2299_); -lean_dec(v___x_2298_); -v___x_2301_ = lean_box(0); -v_isShared_2302_ = v_isSharedCheck_2306_; -goto v_resetjp_2300_; -} -v_resetjp_2300_: -{ -lean_object* v___x_2304_; -if (v_isShared_2302_ == 0) -{ -v___x_2304_ = v___x_2301_; -goto v_reusejp_2303_; -} -else -{ -lean_object* v_reuseFailAlloc_2305_; -v_reuseFailAlloc_2305_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2305_, 0, v_a_2299_); -v___x_2304_ = v_reuseFailAlloc_2305_; -goto v_reusejp_2303_; -} -v_reusejp_2303_: -{ -return v___x_2304_; -} -} -} -} -} -} -else -{ -lean_object* v_a_2373_; lean_object* v___x_2375_; uint8_t v_isShared_2376_; uint8_t v_isSharedCheck_2380_; -lean_dec(v_a_2266_); -lean_dec_ref(v_a_2231_); -lean_dec_ref(v___x_2229_); -lean_dec(v___x_2228_); -v_a_2373_ = lean_ctor_get(v___x_2269_, 0); -v_isSharedCheck_2380_ = !lean_is_exclusive(v___x_2269_); -if (v_isSharedCheck_2380_ == 0) -{ -v___x_2375_ = v___x_2269_; -v_isShared_2376_ = v_isSharedCheck_2380_; -goto v_resetjp_2374_; -} -else -{ -lean_inc(v_a_2373_); -lean_dec(v___x_2269_); -v___x_2375_ = lean_box(0); -v_isShared_2376_ = v_isSharedCheck_2380_; -goto v_resetjp_2374_; -} -v_resetjp_2374_: -{ -lean_object* v___x_2378_; -if (v_isShared_2376_ == 0) -{ -v___x_2378_ = v___x_2375_; -goto v_reusejp_2377_; -} -else -{ -lean_object* v_reuseFailAlloc_2379_; -v_reuseFailAlloc_2379_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2379_, 0, v_a_2373_); -v___x_2378_ = v_reuseFailAlloc_2379_; -goto v_reusejp_2377_; -} -v_reusejp_2377_: -{ -return v___x_2378_; -} -} -} -} -else -{ -lean_object* v___x_2381_; -lean_dec(v_a_2266_); -lean_dec_ref(v_a_2231_); -v___x_2381_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_2228_, v___x_2229_, v___y_2238_); -if (lean_obj_tag(v___x_2381_) == 0) -{ -lean_object* v___x_2383_; uint8_t v_isShared_2384_; uint8_t v_isSharedCheck_2389_; -v_isSharedCheck_2389_ = !lean_is_exclusive(v___x_2381_); +lean_object* v_a_2382_; lean_object* v___x_2384_; uint8_t v_isShared_2385_; uint8_t v_isSharedCheck_2389_; +lean_dec_ref(v_bs_2365_); +v_a_2382_ = lean_ctor_get(v___x_2374_, 0); +v_isSharedCheck_2389_ = !lean_is_exclusive(v___x_2374_); if (v_isSharedCheck_2389_ == 0) { -lean_object* v_unused_2390_; -v_unused_2390_ = lean_ctor_get(v___x_2381_, 0); -lean_dec(v_unused_2390_); -v___x_2383_ = v___x_2381_; -v_isShared_2384_ = v_isSharedCheck_2389_; -goto v_resetjp_2382_; +v___x_2384_ = v___x_2374_; +v_isShared_2385_ = v_isSharedCheck_2389_; +goto v_resetjp_2383_; } else { -lean_dec(v___x_2381_); -v___x_2383_ = lean_box(0); -v_isShared_2384_ = v_isSharedCheck_2389_; -goto v_resetjp_2382_; +lean_inc(v_a_2382_); +lean_dec(v___x_2374_); +v___x_2384_ = lean_box(0); +v_isShared_2385_ = v_isSharedCheck_2389_; +goto v_resetjp_2383_; } -v_resetjp_2382_: +v_resetjp_2383_: { -lean_object* v___x_2385_; lean_object* v___x_2387_; -v___x_2385_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2385_, 0, v___x_2230_); -if (v_isShared_2384_ == 0) +lean_object* v___x_2387_; +if (v_isShared_2385_ == 0) { -lean_ctor_set(v___x_2383_, 0, v___x_2385_); -v___x_2387_ = v___x_2383_; +v___x_2387_ = v___x_2384_; goto v_reusejp_2386_; } else { lean_object* v_reuseFailAlloc_2388_; -v_reuseFailAlloc_2388_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2388_, 0, v___x_2385_); +v_reuseFailAlloc_2388_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2388_, 0, v_a_2382_); v___x_2387_ = v_reuseFailAlloc_2388_; goto v_reusejp_2386_; } @@ -7830,653 +7895,444 @@ return v___x_2387_; } } } -else -{ -lean_object* v_a_2391_; lean_object* v___x_2393_; uint8_t v_isShared_2394_; uint8_t v_isSharedCheck_2398_; -v_a_2391_ = lean_ctor_get(v___x_2381_, 0); -v_isSharedCheck_2398_ = !lean_is_exclusive(v___x_2381_); -if (v_isSharedCheck_2398_ == 0) -{ -v___x_2393_ = v___x_2381_; -v_isShared_2394_ = v_isSharedCheck_2398_; -goto v_resetjp_2392_; -} -else -{ -lean_inc(v_a_2391_); -lean_dec(v___x_2381_); -v___x_2393_ = lean_box(0); -v_isShared_2394_ = v_isSharedCheck_2398_; -goto v_resetjp_2392_; -} -v_resetjp_2392_: -{ -lean_object* v___x_2396_; -if (v_isShared_2394_ == 0) -{ -v___x_2396_ = v___x_2393_; -goto v_reusejp_2395_; -} -else -{ -lean_object* v_reuseFailAlloc_2397_; -v_reuseFailAlloc_2397_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2397_, 0, v_a_2391_); -v___x_2396_ = v_reuseFailAlloc_2397_; -goto v_reusejp_2395_; -} -v_reusejp_2395_: -{ -return v___x_2396_; } } } -} -} -else -{ -lean_object* v_a_2399_; lean_object* v___x_2401_; uint8_t v_isShared_2402_; uint8_t v_isSharedCheck_2406_; -lean_dec_ref(v_a_2231_); -lean_dec_ref(v___x_2229_); -lean_dec(v___x_2228_); -v_a_2399_ = lean_ctor_get(v___x_2265_, 0); -v_isSharedCheck_2406_ = !lean_is_exclusive(v___x_2265_); -if (v_isSharedCheck_2406_ == 0) -{ -v___x_2401_ = v___x_2265_; -v_isShared_2402_ = v_isSharedCheck_2406_; -goto v_resetjp_2400_; -} -else -{ -lean_inc(v_a_2399_); -lean_dec(v___x_2265_); -v___x_2401_ = lean_box(0); -v_isShared_2402_ = v_isSharedCheck_2406_; -goto v_resetjp_2400_; -} -v_resetjp_2400_: -{ -lean_object* v___x_2404_; -if (v_isShared_2402_ == 0) -{ -v___x_2404_ = v___x_2401_; -goto v_reusejp_2403_; -} -else -{ -lean_object* v_reuseFailAlloc_2405_; -v_reuseFailAlloc_2405_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2405_, 0, v_a_2399_); -v___x_2404_ = v_reuseFailAlloc_2405_; -goto v_reusejp_2403_; -} -v_reusejp_2403_: -{ -return v___x_2404_; -} -} -} -} -else -{ -lean_object* v_a_2407_; lean_object* v___x_2409_; uint8_t v_isShared_2410_; uint8_t v_isSharedCheck_2414_; -lean_dec_ref(v_a_2231_); -lean_dec_ref(v___x_2229_); -lean_dec(v___x_2228_); -v_a_2407_ = lean_ctor_get(v___x_2263_, 0); -v_isSharedCheck_2414_ = !lean_is_exclusive(v___x_2263_); -if (v_isSharedCheck_2414_ == 0) -{ -v___x_2409_ = v___x_2263_; -v_isShared_2410_ = v_isSharedCheck_2414_; -goto v_resetjp_2408_; -} -else -{ -lean_inc(v_a_2407_); -lean_dec(v___x_2263_); -v___x_2409_ = lean_box(0); -v_isShared_2410_ = v_isSharedCheck_2414_; -goto v_resetjp_2408_; -} -v_resetjp_2408_: -{ -lean_object* v___x_2412_; -if (v_isShared_2410_ == 0) -{ -v___x_2412_ = v___x_2409_; -goto v_reusejp_2411_; -} -else -{ -lean_object* v_reuseFailAlloc_2413_; -v_reuseFailAlloc_2413_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2413_, 0, v_a_2407_); -v___x_2412_ = v_reuseFailAlloc_2413_; -goto v_reusejp_2411_; -} -v_reusejp_2411_: -{ -return v___x_2412_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1___boxed(lean_object* v___x_2415_, lean_object* v___x_2416_, lean_object* v___x_2417_, lean_object* v_a_2418_, lean_object* v___x_2419_, lean_object* v_compile_2420_, lean_object* v_logCompileErrors_2421_, lean_object* v_isMeta_2422_, lean_object* v_____r_2423_, lean_object* v___y_2424_, lean_object* v___y_2425_, lean_object* v___y_2426_, lean_object* v___y_2427_, lean_object* v___y_2428_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5___boxed(lean_object* v_sz_2390_, lean_object* v_i_2391_, lean_object* v_bs_2392_, lean_object* v___y_2393_, lean_object* v___y_2394_, lean_object* v___y_2395_, lean_object* v___y_2396_, lean_object* v___y_2397_){ _start: { -uint8_t v___x_161625__boxed_2429_; uint8_t v_compile_boxed_2430_; uint8_t v_logCompileErrors_boxed_2431_; uint8_t v_isMeta_boxed_2432_; lean_object* v_res_2433_; -v___x_161625__boxed_2429_ = lean_unbox(v___x_2419_); -v_compile_boxed_2430_ = lean_unbox(v_compile_2420_); -v_logCompileErrors_boxed_2431_ = lean_unbox(v_logCompileErrors_2421_); -v_isMeta_boxed_2432_ = lean_unbox(v_isMeta_2422_); -v_res_2433_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1(v___x_2415_, v___x_2416_, v___x_2417_, v_a_2418_, v___x_161625__boxed_2429_, v_compile_boxed_2430_, v_logCompileErrors_boxed_2431_, v_isMeta_boxed_2432_, v_____r_2423_, v___y_2424_, v___y_2425_, v___y_2426_, v___y_2427_); -lean_dec(v___y_2427_); -lean_dec_ref(v___y_2426_); -lean_dec(v___y_2425_); -lean_dec_ref(v___y_2424_); -return v_res_2433_; +size_t v_sz_boxed_2398_; size_t v_i_boxed_2399_; lean_object* v_res_2400_; +v_sz_boxed_2398_ = lean_unbox_usize(v_sz_2390_); +lean_dec(v_sz_2390_); +v_i_boxed_2399_ = lean_unbox_usize(v_i_2391_); +lean_dec(v_i_2391_); +v_res_2400_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_boxed_2398_, v_i_boxed_2399_, v_bs_2392_, v___y_2393_, v___y_2394_, v___y_2395_, v___y_2396_); +lean_dec(v___y_2396_); +lean_dec_ref(v___y_2395_); +lean_dec(v___y_2394_); +lean_dec_ref(v___y_2393_); +return v_res_2400_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(lean_object* v___x_2434_, lean_object* v_a_2435_, lean_object* v_____r_2436_, lean_object* v___y_2437_, lean_object* v___y_2438_, lean_object* v___y_2439_, lean_object* v___y_2440_){ +LEAN_EXPORT uint8_t l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14(lean_object* v_e_2401_){ _start: { -lean_object* v___x_2442_; -v___x_2442_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_2434_, v_a_2435_, v___y_2438_); -if (lean_obj_tag(v___x_2442_) == 0) +if (lean_obj_tag(v_e_2401_) == 0) { -lean_object* v___x_2444_; uint8_t v_isShared_2445_; uint8_t v_isSharedCheck_2450_; -v_isSharedCheck_2450_ = !lean_is_exclusive(v___x_2442_); -if (v_isSharedCheck_2450_ == 0) -{ -lean_object* v_unused_2451_; -v_unused_2451_ = lean_ctor_get(v___x_2442_, 0); -lean_dec(v_unused_2451_); -v___x_2444_ = v___x_2442_; -v_isShared_2445_ = v_isSharedCheck_2450_; -goto v_resetjp_2443_; +uint8_t v___x_2402_; +v___x_2402_ = 2; +return v___x_2402_; } else { -lean_dec(v___x_2442_); -v___x_2444_ = lean_box(0); -v_isShared_2445_ = v_isSharedCheck_2450_; -goto v_resetjp_2443_; -} -v_resetjp_2443_: -{ -lean_object* v___x_2446_; lean_object* v___x_2448_; -v___x_2446_ = lean_box(0); -if (v_isShared_2445_ == 0) -{ -lean_ctor_set(v___x_2444_, 0, v___x_2446_); -v___x_2448_ = v___x_2444_; -goto v_reusejp_2447_; -} -else -{ -lean_object* v_reuseFailAlloc_2449_; -v_reuseFailAlloc_2449_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2449_, 0, v___x_2446_); -v___x_2448_ = v_reuseFailAlloc_2449_; -goto v_reusejp_2447_; -} -v_reusejp_2447_: -{ -return v___x_2448_; +uint8_t v___x_2403_; +v___x_2403_ = 0; +return v___x_2403_; } } } -else -{ -lean_object* v_a_2452_; lean_object* v___x_2454_; uint8_t v_isShared_2455_; uint8_t v_isSharedCheck_2459_; -v_a_2452_ = lean_ctor_get(v___x_2442_, 0); -v_isSharedCheck_2459_ = !lean_is_exclusive(v___x_2442_); -if (v_isSharedCheck_2459_ == 0) -{ -v___x_2454_ = v___x_2442_; -v_isShared_2455_ = v_isSharedCheck_2459_; -goto v_resetjp_2453_; -} -else -{ -lean_inc(v_a_2452_); -lean_dec(v___x_2442_); -v___x_2454_ = lean_box(0); -v_isShared_2455_ = v_isSharedCheck_2459_; -goto v_resetjp_2453_; -} -v_resetjp_2453_: -{ -lean_object* v___x_2457_; -if (v_isShared_2455_ == 0) -{ -v___x_2457_ = v___x_2454_; -goto v_reusejp_2456_; -} -else -{ -lean_object* v_reuseFailAlloc_2458_; -v_reuseFailAlloc_2458_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2458_, 0, v_a_2452_); -v___x_2457_ = v_reuseFailAlloc_2458_; -goto v_reusejp_2456_; -} -v_reusejp_2456_: -{ -return v___x_2457_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5___boxed(lean_object* v___x_2460_, lean_object* v_a_2461_, lean_object* v_____r_2462_, lean_object* v___y_2463_, lean_object* v___y_2464_, lean_object* v___y_2465_, lean_object* v___y_2466_, lean_object* v___y_2467_){ +LEAN_EXPORT lean_object* l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14___boxed(lean_object* v_e_2404_){ _start: { -lean_object* v_res_2468_; -v_res_2468_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_2460_, v_a_2461_, v_____r_2462_, v___y_2463_, v___y_2464_, v___y_2465_, v___y_2466_); -lean_dec(v___y_2466_); -lean_dec_ref(v___y_2465_); -lean_dec(v___y_2464_); -lean_dec_ref(v___y_2463_); -return v_res_2468_; +uint8_t v_res_2405_; lean_object* v_r_2406_; +v_res_2405_ = l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14(v_e_2404_); +lean_dec_ref(v_e_2404_); +v_r_2406_ = lean_box(v_res_2405_); +return v_r_2406_; } } -LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18(lean_object* v_opts_2469_, lean_object* v_opt_2470_){ +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(lean_object* v_x_2407_){ _start: { -lean_object* v_name_2471_; lean_object* v_defValue_2472_; lean_object* v_map_2473_; lean_object* v___x_2474_; -v_name_2471_ = lean_ctor_get(v_opt_2470_, 0); -v_defValue_2472_ = lean_ctor_get(v_opt_2470_, 1); -v_map_2473_ = lean_ctor_get(v_opts_2469_, 0); -v___x_2474_ = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(v_map_2473_, v_name_2471_); -if (lean_obj_tag(v___x_2474_) == 0) +if (lean_obj_tag(v_x_2407_) == 0) { -lean_inc(v_defValue_2472_); -return v_defValue_2472_; +lean_object* v_a_2409_; lean_object* v___x_2411_; uint8_t v_isShared_2412_; uint8_t v_isSharedCheck_2416_; +v_a_2409_ = lean_ctor_get(v_x_2407_, 0); +v_isSharedCheck_2416_ = !lean_is_exclusive(v_x_2407_); +if (v_isSharedCheck_2416_ == 0) +{ +v___x_2411_ = v_x_2407_; +v_isShared_2412_ = v_isSharedCheck_2416_; +goto v_resetjp_2410_; } else { -lean_object* v_val_2475_; -v_val_2475_ = lean_ctor_get(v___x_2474_, 0); -lean_inc(v_val_2475_); -lean_dec_ref(v___x_2474_); -if (lean_obj_tag(v_val_2475_) == 3) +lean_inc(v_a_2409_); +lean_dec(v_x_2407_); +v___x_2411_ = lean_box(0); +v_isShared_2412_ = v_isSharedCheck_2416_; +goto v_resetjp_2410_; +} +v_resetjp_2410_: { -lean_object* v_v_2476_; -v_v_2476_ = lean_ctor_get(v_val_2475_, 0); -lean_inc(v_v_2476_); -lean_dec_ref(v_val_2475_); -return v_v_2476_; +lean_object* v___x_2414_; +if (v_isShared_2412_ == 0) +{ +lean_ctor_set_tag(v___x_2411_, 1); +v___x_2414_ = v___x_2411_; +goto v_reusejp_2413_; } else { -lean_dec(v_val_2475_); -lean_inc(v_defValue_2472_); -return v_defValue_2472_; +lean_object* v_reuseFailAlloc_2415_; +v_reuseFailAlloc_2415_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2415_, 0, v_a_2409_); +v___x_2414_ = v_reuseFailAlloc_2415_; +goto v_reusejp_2413_; +} +v_reusejp_2413_: +{ +return v___x_2414_; +} +} +} +else +{ +lean_object* v_a_2417_; lean_object* v___x_2419_; uint8_t v_isShared_2420_; uint8_t v_isSharedCheck_2424_; +v_a_2417_ = lean_ctor_get(v_x_2407_, 0); +v_isSharedCheck_2424_ = !lean_is_exclusive(v_x_2407_); +if (v_isSharedCheck_2424_ == 0) +{ +v___x_2419_ = v_x_2407_; +v_isShared_2420_ = v_isSharedCheck_2424_; +goto v_resetjp_2418_; +} +else +{ +lean_inc(v_a_2417_); +lean_dec(v_x_2407_); +v___x_2419_ = lean_box(0); +v_isShared_2420_ = v_isSharedCheck_2424_; +goto v_resetjp_2418_; +} +v_resetjp_2418_: +{ +lean_object* v___x_2422_; +if (v_isShared_2420_ == 0) +{ +lean_ctor_set_tag(v___x_2419_, 0); +v___x_2422_ = v___x_2419_; +goto v_reusejp_2421_; +} +else +{ +lean_object* v_reuseFailAlloc_2423_; +v_reuseFailAlloc_2423_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2423_, 0, v_a_2417_); +v___x_2422_ = v_reuseFailAlloc_2423_; +goto v_reusejp_2421_; +} +v_reusejp_2421_: +{ +return v___x_2422_; } } } } -LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18___boxed(lean_object* v_opts_2477_, lean_object* v_opt_2478_){ +} +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg___boxed(lean_object* v_x_2425_, lean_object* v___y_2426_){ _start: { -lean_object* v_res_2479_; -v_res_2479_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18(v_opts_2477_, v_opt_2478_); -lean_dec_ref(v_opt_2478_); -lean_dec_ref(v_opts_2477_); -return v_res_2479_; +lean_object* v_res_2427_; +v_res_2427_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(v_x_2425_); +return v_res_2427_; } } -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(lean_object* v_x_2480_){ +LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17(lean_object* v_opts_2428_, lean_object* v_opt_2429_){ _start: { -if (lean_obj_tag(v_x_2480_) == 0) +lean_object* v_name_2430_; lean_object* v_defValue_2431_; lean_object* v_map_2432_; lean_object* v___x_2433_; +v_name_2430_ = lean_ctor_get(v_opt_2429_, 0); +v_defValue_2431_ = lean_ctor_get(v_opt_2429_, 1); +v_map_2432_ = lean_ctor_get(v_opts_2428_, 0); +v___x_2433_ = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(v_map_2432_, v_name_2430_); +if (lean_obj_tag(v___x_2433_) == 0) { -lean_object* v_a_2482_; lean_object* v___x_2484_; uint8_t v_isShared_2485_; uint8_t v_isSharedCheck_2489_; -v_a_2482_ = lean_ctor_get(v_x_2480_, 0); -v_isSharedCheck_2489_ = !lean_is_exclusive(v_x_2480_); -if (v_isSharedCheck_2489_ == 0) -{ -v___x_2484_ = v_x_2480_; -v_isShared_2485_ = v_isSharedCheck_2489_; -goto v_resetjp_2483_; +lean_inc(v_defValue_2431_); +return v_defValue_2431_; } else { -lean_inc(v_a_2482_); -lean_dec(v_x_2480_); -v___x_2484_ = lean_box(0); -v_isShared_2485_ = v_isSharedCheck_2489_; -goto v_resetjp_2483_; -} -v_resetjp_2483_: +lean_object* v_val_2434_; +v_val_2434_ = lean_ctor_get(v___x_2433_, 0); +lean_inc(v_val_2434_); +lean_dec_ref(v___x_2433_); +if (lean_obj_tag(v_val_2434_) == 3) { -lean_object* v___x_2487_; -if (v_isShared_2485_ == 0) -{ -lean_ctor_set_tag(v___x_2484_, 1); -v___x_2487_ = v___x_2484_; -goto v_reusejp_2486_; +lean_object* v_v_2435_; +v_v_2435_ = lean_ctor_get(v_val_2434_, 0); +lean_inc(v_v_2435_); +lean_dec_ref(v_val_2434_); +return v_v_2435_; } else { -lean_object* v_reuseFailAlloc_2488_; -v_reuseFailAlloc_2488_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2488_, 0, v_a_2482_); -v___x_2487_ = v_reuseFailAlloc_2488_; -goto v_reusejp_2486_; -} -v_reusejp_2486_: -{ -return v___x_2487_; -} -} -} -else -{ -lean_object* v_a_2490_; lean_object* v___x_2492_; uint8_t v_isShared_2493_; uint8_t v_isSharedCheck_2497_; -v_a_2490_ = lean_ctor_get(v_x_2480_, 0); -v_isSharedCheck_2497_ = !lean_is_exclusive(v_x_2480_); -if (v_isSharedCheck_2497_ == 0) -{ -v___x_2492_ = v_x_2480_; -v_isShared_2493_ = v_isSharedCheck_2497_; -goto v_resetjp_2491_; -} -else -{ -lean_inc(v_a_2490_); -lean_dec(v_x_2480_); -v___x_2492_ = lean_box(0); -v_isShared_2493_ = v_isSharedCheck_2497_; -goto v_resetjp_2491_; -} -v_resetjp_2491_: -{ -lean_object* v___x_2495_; -if (v_isShared_2493_ == 0) -{ -lean_ctor_set_tag(v___x_2492_, 0); -v___x_2495_ = v___x_2492_; -goto v_reusejp_2494_; -} -else -{ -lean_object* v_reuseFailAlloc_2496_; -v_reuseFailAlloc_2496_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2496_, 0, v_a_2490_); -v___x_2495_ = v_reuseFailAlloc_2496_; -goto v_reusejp_2494_; -} -v_reusejp_2494_: -{ -return v___x_2495_; +lean_dec(v_val_2434_); +lean_inc(v_defValue_2431_); +return v_defValue_2431_; } } } } -} -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg___boxed(lean_object* v_x_2498_, lean_object* v___y_2499_){ +LEAN_EXPORT lean_object* l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17___boxed(lean_object* v_opts_2436_, lean_object* v_opt_2437_){ _start: { -lean_object* v_res_2500_; -v_res_2500_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(v_x_2498_); -return v_res_2500_; +lean_object* v_res_2438_; +v_res_2438_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17(v_opts_2436_, v_opt_2437_); +lean_dec_ref(v_opt_2437_); +lean_dec_ref(v_opts_2436_); +return v_res_2438_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19(size_t v_sz_2501_, size_t v_i_2502_, lean_object* v_bs_2503_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18(size_t v_sz_2439_, size_t v_i_2440_, lean_object* v_bs_2441_){ _start: { -uint8_t v___x_2504_; -v___x_2504_ = lean_usize_dec_lt(v_i_2502_, v_sz_2501_); -if (v___x_2504_ == 0) +uint8_t v___x_2442_; +v___x_2442_ = lean_usize_dec_lt(v_i_2440_, v_sz_2439_); +if (v___x_2442_ == 0) { -return v_bs_2503_; +return v_bs_2441_; } else { -lean_object* v_v_2505_; lean_object* v_msg_2506_; lean_object* v___x_2507_; lean_object* v_bs_x27_2508_; size_t v___x_2509_; size_t v___x_2510_; lean_object* v___x_2511_; -v_v_2505_ = lean_array_uget_borrowed(v_bs_2503_, v_i_2502_); -v_msg_2506_ = lean_ctor_get(v_v_2505_, 1); -lean_inc_ref(v_msg_2506_); -v___x_2507_ = lean_unsigned_to_nat(0u); -v_bs_x27_2508_ = lean_array_uset(v_bs_2503_, v_i_2502_, v___x_2507_); -v___x_2509_ = ((size_t)1ULL); -v___x_2510_ = lean_usize_add(v_i_2502_, v___x_2509_); -v___x_2511_ = lean_array_uset(v_bs_x27_2508_, v_i_2502_, v_msg_2506_); -v_i_2502_ = v___x_2510_; -v_bs_2503_ = v___x_2511_; +lean_object* v_v_2443_; lean_object* v_msg_2444_; lean_object* v___x_2445_; lean_object* v_bs_x27_2446_; size_t v___x_2447_; size_t v___x_2448_; lean_object* v___x_2449_; +v_v_2443_ = lean_array_uget_borrowed(v_bs_2441_, v_i_2440_); +v_msg_2444_ = lean_ctor_get(v_v_2443_, 1); +lean_inc_ref(v_msg_2444_); +v___x_2445_ = lean_unsigned_to_nat(0u); +v_bs_x27_2446_ = lean_array_uset(v_bs_2441_, v_i_2440_, v___x_2445_); +v___x_2447_ = ((size_t)1ULL); +v___x_2448_ = lean_usize_add(v_i_2440_, v___x_2447_); +v___x_2449_ = lean_array_uset(v_bs_x27_2446_, v_i_2440_, v_msg_2444_); +v_i_2440_ = v___x_2448_; +v_bs_2441_ = v___x_2449_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19___boxed(lean_object* v_sz_2513_, lean_object* v_i_2514_, lean_object* v_bs_2515_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18___boxed(lean_object* v_sz_2451_, lean_object* v_i_2452_, lean_object* v_bs_2453_){ _start: { -size_t v_sz_boxed_2516_; size_t v_i_boxed_2517_; lean_object* v_res_2518_; -v_sz_boxed_2516_ = lean_unbox_usize(v_sz_2513_); -lean_dec(v_sz_2513_); -v_i_boxed_2517_ = lean_unbox_usize(v_i_2514_); -lean_dec(v_i_2514_); -v_res_2518_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19(v_sz_boxed_2516_, v_i_boxed_2517_, v_bs_2515_); -return v_res_2518_; +size_t v_sz_boxed_2454_; size_t v_i_boxed_2455_; lean_object* v_res_2456_; +v_sz_boxed_2454_ = lean_unbox_usize(v_sz_2451_); +lean_dec(v_sz_2451_); +v_i_boxed_2455_ = lean_unbox_usize(v_i_2452_); +lean_dec(v_i_2452_); +v_res_2456_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18(v_sz_boxed_2454_, v_i_boxed_2455_, v_bs_2453_); +return v_res_2456_; } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16(lean_object* v_oldTraces_2519_, lean_object* v_data_2520_, lean_object* v_ref_2521_, lean_object* v_msg_2522_, lean_object* v___y_2523_, lean_object* v___y_2524_, lean_object* v___y_2525_, lean_object* v___y_2526_){ +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15(lean_object* v_oldTraces_2457_, lean_object* v_data_2458_, lean_object* v_ref_2459_, lean_object* v_msg_2460_, lean_object* v___y_2461_, lean_object* v___y_2462_, lean_object* v___y_2463_, lean_object* v___y_2464_){ _start: { -lean_object* v_fileName_2528_; lean_object* v_fileMap_2529_; lean_object* v_options_2530_; lean_object* v_currRecDepth_2531_; lean_object* v_maxRecDepth_2532_; lean_object* v_ref_2533_; lean_object* v_currNamespace_2534_; lean_object* v_openDecls_2535_; lean_object* v_initHeartbeats_2536_; lean_object* v_maxHeartbeats_2537_; lean_object* v_quotContext_2538_; lean_object* v_currMacroScope_2539_; uint8_t v_diag_2540_; lean_object* v_cancelTk_x3f_2541_; uint8_t v_suppressElabErrors_2542_; lean_object* v_inheritedTraceOptions_2543_; lean_object* v___x_2544_; lean_object* v_traceState_2545_; lean_object* v_traces_2546_; lean_object* v_ref_2547_; lean_object* v___x_2548_; lean_object* v___x_2549_; size_t v_sz_2550_; size_t v___x_2551_; lean_object* v___x_2552_; lean_object* v_msg_2553_; lean_object* v___x_2554_; lean_object* v_a_2555_; lean_object* v___x_2557_; uint8_t v_isShared_2558_; uint8_t v_isSharedCheck_2592_; -v_fileName_2528_ = lean_ctor_get(v___y_2525_, 0); -v_fileMap_2529_ = lean_ctor_get(v___y_2525_, 1); -v_options_2530_ = lean_ctor_get(v___y_2525_, 2); -v_currRecDepth_2531_ = lean_ctor_get(v___y_2525_, 3); -v_maxRecDepth_2532_ = lean_ctor_get(v___y_2525_, 4); -v_ref_2533_ = lean_ctor_get(v___y_2525_, 5); -v_currNamespace_2534_ = lean_ctor_get(v___y_2525_, 6); -v_openDecls_2535_ = lean_ctor_get(v___y_2525_, 7); -v_initHeartbeats_2536_ = lean_ctor_get(v___y_2525_, 8); -v_maxHeartbeats_2537_ = lean_ctor_get(v___y_2525_, 9); -v_quotContext_2538_ = lean_ctor_get(v___y_2525_, 10); -v_currMacroScope_2539_ = lean_ctor_get(v___y_2525_, 11); -v_diag_2540_ = lean_ctor_get_uint8(v___y_2525_, sizeof(void*)*14); -v_cancelTk_x3f_2541_ = lean_ctor_get(v___y_2525_, 12); -v_suppressElabErrors_2542_ = lean_ctor_get_uint8(v___y_2525_, sizeof(void*)*14 + 1); -v_inheritedTraceOptions_2543_ = lean_ctor_get(v___y_2525_, 13); -v___x_2544_ = lean_st_ref_get(v___y_2526_); -v_traceState_2545_ = lean_ctor_get(v___x_2544_, 4); -lean_inc_ref(v_traceState_2545_); -lean_dec(v___x_2544_); -v_traces_2546_ = lean_ctor_get(v_traceState_2545_, 0); -lean_inc_ref(v_traces_2546_); -lean_dec_ref(v_traceState_2545_); -v_ref_2547_ = l_Lean_replaceRef(v_ref_2521_, v_ref_2533_); -lean_inc_ref(v_inheritedTraceOptions_2543_); -lean_inc(v_cancelTk_x3f_2541_); -lean_inc(v_currMacroScope_2539_); -lean_inc(v_quotContext_2538_); -lean_inc(v_maxHeartbeats_2537_); -lean_inc(v_initHeartbeats_2536_); -lean_inc(v_openDecls_2535_); -lean_inc(v_currNamespace_2534_); -lean_inc(v_maxRecDepth_2532_); -lean_inc(v_currRecDepth_2531_); -lean_inc_ref(v_options_2530_); -lean_inc_ref(v_fileMap_2529_); -lean_inc_ref(v_fileName_2528_); -v___x_2548_ = lean_alloc_ctor(0, 14, 2); -lean_ctor_set(v___x_2548_, 0, v_fileName_2528_); -lean_ctor_set(v___x_2548_, 1, v_fileMap_2529_); -lean_ctor_set(v___x_2548_, 2, v_options_2530_); -lean_ctor_set(v___x_2548_, 3, v_currRecDepth_2531_); -lean_ctor_set(v___x_2548_, 4, v_maxRecDepth_2532_); -lean_ctor_set(v___x_2548_, 5, v_ref_2547_); -lean_ctor_set(v___x_2548_, 6, v_currNamespace_2534_); -lean_ctor_set(v___x_2548_, 7, v_openDecls_2535_); -lean_ctor_set(v___x_2548_, 8, v_initHeartbeats_2536_); -lean_ctor_set(v___x_2548_, 9, v_maxHeartbeats_2537_); -lean_ctor_set(v___x_2548_, 10, v_quotContext_2538_); -lean_ctor_set(v___x_2548_, 11, v_currMacroScope_2539_); -lean_ctor_set(v___x_2548_, 12, v_cancelTk_x3f_2541_); -lean_ctor_set(v___x_2548_, 13, v_inheritedTraceOptions_2543_); -lean_ctor_set_uint8(v___x_2548_, sizeof(void*)*14, v_diag_2540_); -lean_ctor_set_uint8(v___x_2548_, sizeof(void*)*14 + 1, v_suppressElabErrors_2542_); -v___x_2549_ = l_Lean_PersistentArray_toArray___redArg(v_traces_2546_); -lean_dec_ref(v_traces_2546_); -v_sz_2550_ = lean_array_size(v___x_2549_); -v___x_2551_ = ((size_t)0ULL); -v___x_2552_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16_spec__19(v_sz_2550_, v___x_2551_, v___x_2549_); -v_msg_2553_ = lean_alloc_ctor(9, 3, 0); -lean_ctor_set(v_msg_2553_, 0, v_data_2520_); -lean_ctor_set(v_msg_2553_, 1, v_msg_2522_); -lean_ctor_set(v_msg_2553_, 2, v___x_2552_); -v___x_2554_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1_spec__1(v_msg_2553_, v___y_2523_, v___y_2524_, v___x_2548_, v___y_2526_); -lean_dec_ref(v___x_2548_); -v_a_2555_ = lean_ctor_get(v___x_2554_, 0); -v_isSharedCheck_2592_ = !lean_is_exclusive(v___x_2554_); -if (v_isSharedCheck_2592_ == 0) +lean_object* v_fileName_2466_; lean_object* v_fileMap_2467_; lean_object* v_options_2468_; lean_object* v_currRecDepth_2469_; lean_object* v_maxRecDepth_2470_; lean_object* v_ref_2471_; lean_object* v_currNamespace_2472_; lean_object* v_openDecls_2473_; lean_object* v_initHeartbeats_2474_; lean_object* v_maxHeartbeats_2475_; lean_object* v_quotContext_2476_; lean_object* v_currMacroScope_2477_; uint8_t v_diag_2478_; lean_object* v_cancelTk_x3f_2479_; uint8_t v_suppressElabErrors_2480_; lean_object* v_inheritedTraceOptions_2481_; lean_object* v___x_2482_; lean_object* v_traceState_2483_; lean_object* v_traces_2484_; lean_object* v_ref_2485_; lean_object* v___x_2486_; lean_object* v___x_2487_; size_t v_sz_2488_; size_t v___x_2489_; lean_object* v___x_2490_; lean_object* v_msg_2491_; lean_object* v___x_2492_; lean_object* v_a_2493_; lean_object* v___x_2495_; uint8_t v_isShared_2496_; uint8_t v_isSharedCheck_2530_; +v_fileName_2466_ = lean_ctor_get(v___y_2463_, 0); +v_fileMap_2467_ = lean_ctor_get(v___y_2463_, 1); +v_options_2468_ = lean_ctor_get(v___y_2463_, 2); +v_currRecDepth_2469_ = lean_ctor_get(v___y_2463_, 3); +v_maxRecDepth_2470_ = lean_ctor_get(v___y_2463_, 4); +v_ref_2471_ = lean_ctor_get(v___y_2463_, 5); +v_currNamespace_2472_ = lean_ctor_get(v___y_2463_, 6); +v_openDecls_2473_ = lean_ctor_get(v___y_2463_, 7); +v_initHeartbeats_2474_ = lean_ctor_get(v___y_2463_, 8); +v_maxHeartbeats_2475_ = lean_ctor_get(v___y_2463_, 9); +v_quotContext_2476_ = lean_ctor_get(v___y_2463_, 10); +v_currMacroScope_2477_ = lean_ctor_get(v___y_2463_, 11); +v_diag_2478_ = lean_ctor_get_uint8(v___y_2463_, sizeof(void*)*14); +v_cancelTk_x3f_2479_ = lean_ctor_get(v___y_2463_, 12); +v_suppressElabErrors_2480_ = lean_ctor_get_uint8(v___y_2463_, sizeof(void*)*14 + 1); +v_inheritedTraceOptions_2481_ = lean_ctor_get(v___y_2463_, 13); +v___x_2482_ = lean_st_ref_get(v___y_2464_); +v_traceState_2483_ = lean_ctor_get(v___x_2482_, 4); +lean_inc_ref(v_traceState_2483_); +lean_dec(v___x_2482_); +v_traces_2484_ = lean_ctor_get(v_traceState_2483_, 0); +lean_inc_ref(v_traces_2484_); +lean_dec_ref(v_traceState_2483_); +v_ref_2485_ = l_Lean_replaceRef(v_ref_2459_, v_ref_2471_); +lean_inc_ref(v_inheritedTraceOptions_2481_); +lean_inc(v_cancelTk_x3f_2479_); +lean_inc(v_currMacroScope_2477_); +lean_inc(v_quotContext_2476_); +lean_inc(v_maxHeartbeats_2475_); +lean_inc(v_initHeartbeats_2474_); +lean_inc(v_openDecls_2473_); +lean_inc(v_currNamespace_2472_); +lean_inc(v_maxRecDepth_2470_); +lean_inc(v_currRecDepth_2469_); +lean_inc_ref(v_options_2468_); +lean_inc_ref(v_fileMap_2467_); +lean_inc_ref(v_fileName_2466_); +v___x_2486_ = lean_alloc_ctor(0, 14, 2); +lean_ctor_set(v___x_2486_, 0, v_fileName_2466_); +lean_ctor_set(v___x_2486_, 1, v_fileMap_2467_); +lean_ctor_set(v___x_2486_, 2, v_options_2468_); +lean_ctor_set(v___x_2486_, 3, v_currRecDepth_2469_); +lean_ctor_set(v___x_2486_, 4, v_maxRecDepth_2470_); +lean_ctor_set(v___x_2486_, 5, v_ref_2485_); +lean_ctor_set(v___x_2486_, 6, v_currNamespace_2472_); +lean_ctor_set(v___x_2486_, 7, v_openDecls_2473_); +lean_ctor_set(v___x_2486_, 8, v_initHeartbeats_2474_); +lean_ctor_set(v___x_2486_, 9, v_maxHeartbeats_2475_); +lean_ctor_set(v___x_2486_, 10, v_quotContext_2476_); +lean_ctor_set(v___x_2486_, 11, v_currMacroScope_2477_); +lean_ctor_set(v___x_2486_, 12, v_cancelTk_x3f_2479_); +lean_ctor_set(v___x_2486_, 13, v_inheritedTraceOptions_2481_); +lean_ctor_set_uint8(v___x_2486_, sizeof(void*)*14, v_diag_2478_); +lean_ctor_set_uint8(v___x_2486_, sizeof(void*)*14 + 1, v_suppressElabErrors_2480_); +v___x_2487_ = l_Lean_PersistentArray_toArray___redArg(v_traces_2484_); +lean_dec_ref(v_traces_2484_); +v_sz_2488_ = lean_array_size(v___x_2487_); +v___x_2489_ = ((size_t)0ULL); +v___x_2490_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15_spec__18(v_sz_2488_, v___x_2489_, v___x_2487_); +v_msg_2491_ = lean_alloc_ctor(9, 3, 0); +lean_ctor_set(v_msg_2491_, 0, v_data_2458_); +lean_ctor_set(v_msg_2491_, 1, v_msg_2460_); +lean_ctor_set(v_msg_2491_, 2, v___x_2490_); +v___x_2492_ = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1_spec__1(v_msg_2491_, v___y_2461_, v___y_2462_, v___x_2486_, v___y_2464_); +lean_dec_ref(v___x_2486_); +v_a_2493_ = lean_ctor_get(v___x_2492_, 0); +v_isSharedCheck_2530_ = !lean_is_exclusive(v___x_2492_); +if (v_isSharedCheck_2530_ == 0) { -v___x_2557_ = v___x_2554_; -v_isShared_2558_ = v_isSharedCheck_2592_; -goto v_resetjp_2556_; +v___x_2495_ = v___x_2492_; +v_isShared_2496_ = v_isSharedCheck_2530_; +goto v_resetjp_2494_; } else { -lean_inc(v_a_2555_); -lean_dec(v___x_2554_); -v___x_2557_ = lean_box(0); -v_isShared_2558_ = v_isSharedCheck_2592_; -goto v_resetjp_2556_; +lean_inc(v_a_2493_); +lean_dec(v___x_2492_); +v___x_2495_ = lean_box(0); +v_isShared_2496_ = v_isSharedCheck_2530_; +goto v_resetjp_2494_; } -v_resetjp_2556_: +v_resetjp_2494_: { -lean_object* v___x_2559_; lean_object* v_traceState_2560_; lean_object* v_env_2561_; lean_object* v_nextMacroScope_2562_; lean_object* v_ngen_2563_; lean_object* v_auxDeclNGen_2564_; lean_object* v_cache_2565_; lean_object* v_messages_2566_; lean_object* v_infoState_2567_; lean_object* v_snapshotTasks_2568_; lean_object* v___x_2570_; uint8_t v_isShared_2571_; uint8_t v_isSharedCheck_2591_; -v___x_2559_ = lean_st_ref_take(v___y_2526_); -v_traceState_2560_ = lean_ctor_get(v___x_2559_, 4); -v_env_2561_ = lean_ctor_get(v___x_2559_, 0); -v_nextMacroScope_2562_ = lean_ctor_get(v___x_2559_, 1); -v_ngen_2563_ = lean_ctor_get(v___x_2559_, 2); -v_auxDeclNGen_2564_ = lean_ctor_get(v___x_2559_, 3); -v_cache_2565_ = lean_ctor_get(v___x_2559_, 5); -v_messages_2566_ = lean_ctor_get(v___x_2559_, 6); -v_infoState_2567_ = lean_ctor_get(v___x_2559_, 7); -v_snapshotTasks_2568_ = lean_ctor_get(v___x_2559_, 8); -v_isSharedCheck_2591_ = !lean_is_exclusive(v___x_2559_); -if (v_isSharedCheck_2591_ == 0) +lean_object* v___x_2497_; lean_object* v_traceState_2498_; lean_object* v_env_2499_; lean_object* v_nextMacroScope_2500_; lean_object* v_ngen_2501_; lean_object* v_auxDeclNGen_2502_; lean_object* v_cache_2503_; lean_object* v_messages_2504_; lean_object* v_infoState_2505_; lean_object* v_snapshotTasks_2506_; lean_object* v___x_2508_; uint8_t v_isShared_2509_; uint8_t v_isSharedCheck_2529_; +v___x_2497_ = lean_st_ref_take(v___y_2464_); +v_traceState_2498_ = lean_ctor_get(v___x_2497_, 4); +v_env_2499_ = lean_ctor_get(v___x_2497_, 0); +v_nextMacroScope_2500_ = lean_ctor_get(v___x_2497_, 1); +v_ngen_2501_ = lean_ctor_get(v___x_2497_, 2); +v_auxDeclNGen_2502_ = lean_ctor_get(v___x_2497_, 3); +v_cache_2503_ = lean_ctor_get(v___x_2497_, 5); +v_messages_2504_ = lean_ctor_get(v___x_2497_, 6); +v_infoState_2505_ = lean_ctor_get(v___x_2497_, 7); +v_snapshotTasks_2506_ = lean_ctor_get(v___x_2497_, 8); +v_isSharedCheck_2529_ = !lean_is_exclusive(v___x_2497_); +if (v_isSharedCheck_2529_ == 0) { -v___x_2570_ = v___x_2559_; -v_isShared_2571_ = v_isSharedCheck_2591_; -goto v_resetjp_2569_; +v___x_2508_ = v___x_2497_; +v_isShared_2509_ = v_isSharedCheck_2529_; +goto v_resetjp_2507_; } else { -lean_inc(v_snapshotTasks_2568_); -lean_inc(v_infoState_2567_); -lean_inc(v_messages_2566_); -lean_inc(v_cache_2565_); -lean_inc(v_traceState_2560_); -lean_inc(v_auxDeclNGen_2564_); -lean_inc(v_ngen_2563_); -lean_inc(v_nextMacroScope_2562_); -lean_inc(v_env_2561_); -lean_dec(v___x_2559_); -v___x_2570_ = lean_box(0); -v_isShared_2571_ = v_isSharedCheck_2591_; -goto v_resetjp_2569_; +lean_inc(v_snapshotTasks_2506_); +lean_inc(v_infoState_2505_); +lean_inc(v_messages_2504_); +lean_inc(v_cache_2503_); +lean_inc(v_traceState_2498_); +lean_inc(v_auxDeclNGen_2502_); +lean_inc(v_ngen_2501_); +lean_inc(v_nextMacroScope_2500_); +lean_inc(v_env_2499_); +lean_dec(v___x_2497_); +v___x_2508_ = lean_box(0); +v_isShared_2509_ = v_isSharedCheck_2529_; +goto v_resetjp_2507_; } -v_resetjp_2569_: +v_resetjp_2507_: { -uint64_t v_tid_2572_; lean_object* v___x_2574_; uint8_t v_isShared_2575_; uint8_t v_isSharedCheck_2589_; -v_tid_2572_ = lean_ctor_get_uint64(v_traceState_2560_, sizeof(void*)*1); -v_isSharedCheck_2589_ = !lean_is_exclusive(v_traceState_2560_); -if (v_isSharedCheck_2589_ == 0) +uint64_t v_tid_2510_; lean_object* v___x_2512_; uint8_t v_isShared_2513_; uint8_t v_isSharedCheck_2527_; +v_tid_2510_ = lean_ctor_get_uint64(v_traceState_2498_, sizeof(void*)*1); +v_isSharedCheck_2527_ = !lean_is_exclusive(v_traceState_2498_); +if (v_isSharedCheck_2527_ == 0) { -lean_object* v_unused_2590_; -v_unused_2590_ = lean_ctor_get(v_traceState_2560_, 0); -lean_dec(v_unused_2590_); -v___x_2574_ = v_traceState_2560_; -v_isShared_2575_ = v_isSharedCheck_2589_; -goto v_resetjp_2573_; +lean_object* v_unused_2528_; +v_unused_2528_ = lean_ctor_get(v_traceState_2498_, 0); +lean_dec(v_unused_2528_); +v___x_2512_ = v_traceState_2498_; +v_isShared_2513_ = v_isSharedCheck_2527_; +goto v_resetjp_2511_; } else { -lean_dec(v_traceState_2560_); -v___x_2574_ = lean_box(0); -v_isShared_2575_ = v_isSharedCheck_2589_; -goto v_resetjp_2573_; +lean_dec(v_traceState_2498_); +v___x_2512_ = lean_box(0); +v_isShared_2513_ = v_isSharedCheck_2527_; +goto v_resetjp_2511_; } -v_resetjp_2573_: +v_resetjp_2511_: { -lean_object* v___x_2576_; lean_object* v___x_2577_; lean_object* v___x_2579_; -v___x_2576_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2576_, 0, v_ref_2521_); -lean_ctor_set(v___x_2576_, 1, v_a_2555_); -v___x_2577_ = l_Lean_PersistentArray_push___redArg(v_oldTraces_2519_, v___x_2576_); -if (v_isShared_2575_ == 0) +lean_object* v___x_2514_; lean_object* v___x_2515_; lean_object* v___x_2517_; +v___x_2514_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2514_, 0, v_ref_2459_); +lean_ctor_set(v___x_2514_, 1, v_a_2493_); +v___x_2515_ = l_Lean_PersistentArray_push___redArg(v_oldTraces_2457_, v___x_2514_); +if (v_isShared_2513_ == 0) { -lean_ctor_set(v___x_2574_, 0, v___x_2577_); -v___x_2579_ = v___x_2574_; -goto v_reusejp_2578_; +lean_ctor_set(v___x_2512_, 0, v___x_2515_); +v___x_2517_ = v___x_2512_; +goto v_reusejp_2516_; } else { -lean_object* v_reuseFailAlloc_2588_; -v_reuseFailAlloc_2588_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v_reuseFailAlloc_2588_, 0, v___x_2577_); -lean_ctor_set_uint64(v_reuseFailAlloc_2588_, sizeof(void*)*1, v_tid_2572_); -v___x_2579_ = v_reuseFailAlloc_2588_; -goto v_reusejp_2578_; +lean_object* v_reuseFailAlloc_2526_; +v_reuseFailAlloc_2526_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v_reuseFailAlloc_2526_, 0, v___x_2515_); +lean_ctor_set_uint64(v_reuseFailAlloc_2526_, sizeof(void*)*1, v_tid_2510_); +v___x_2517_ = v_reuseFailAlloc_2526_; +goto v_reusejp_2516_; } -v_reusejp_2578_: +v_reusejp_2516_: { -lean_object* v___x_2581_; -if (v_isShared_2571_ == 0) +lean_object* v___x_2519_; +if (v_isShared_2509_ == 0) { -lean_ctor_set(v___x_2570_, 4, v___x_2579_); -v___x_2581_ = v___x_2570_; -goto v_reusejp_2580_; +lean_ctor_set(v___x_2508_, 4, v___x_2517_); +v___x_2519_ = v___x_2508_; +goto v_reusejp_2518_; } else { -lean_object* v_reuseFailAlloc_2587_; -v_reuseFailAlloc_2587_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_2587_, 0, v_env_2561_); -lean_ctor_set(v_reuseFailAlloc_2587_, 1, v_nextMacroScope_2562_); -lean_ctor_set(v_reuseFailAlloc_2587_, 2, v_ngen_2563_); -lean_ctor_set(v_reuseFailAlloc_2587_, 3, v_auxDeclNGen_2564_); -lean_ctor_set(v_reuseFailAlloc_2587_, 4, v___x_2579_); -lean_ctor_set(v_reuseFailAlloc_2587_, 5, v_cache_2565_); -lean_ctor_set(v_reuseFailAlloc_2587_, 6, v_messages_2566_); -lean_ctor_set(v_reuseFailAlloc_2587_, 7, v_infoState_2567_); -lean_ctor_set(v_reuseFailAlloc_2587_, 8, v_snapshotTasks_2568_); -v___x_2581_ = v_reuseFailAlloc_2587_; -goto v_reusejp_2580_; +lean_object* v_reuseFailAlloc_2525_; +v_reuseFailAlloc_2525_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_2525_, 0, v_env_2499_); +lean_ctor_set(v_reuseFailAlloc_2525_, 1, v_nextMacroScope_2500_); +lean_ctor_set(v_reuseFailAlloc_2525_, 2, v_ngen_2501_); +lean_ctor_set(v_reuseFailAlloc_2525_, 3, v_auxDeclNGen_2502_); +lean_ctor_set(v_reuseFailAlloc_2525_, 4, v___x_2517_); +lean_ctor_set(v_reuseFailAlloc_2525_, 5, v_cache_2503_); +lean_ctor_set(v_reuseFailAlloc_2525_, 6, v_messages_2504_); +lean_ctor_set(v_reuseFailAlloc_2525_, 7, v_infoState_2505_); +lean_ctor_set(v_reuseFailAlloc_2525_, 8, v_snapshotTasks_2506_); +v___x_2519_ = v_reuseFailAlloc_2525_; +goto v_reusejp_2518_; } -v_reusejp_2580_: +v_reusejp_2518_: { -lean_object* v___x_2582_; lean_object* v___x_2583_; lean_object* v___x_2585_; -v___x_2582_ = lean_st_ref_set(v___y_2526_, v___x_2581_); -v___x_2583_ = lean_box(0); -if (v_isShared_2558_ == 0) +lean_object* v___x_2520_; lean_object* v___x_2521_; lean_object* v___x_2523_; +v___x_2520_ = lean_st_ref_set(v___y_2464_, v___x_2519_); +v___x_2521_ = lean_box(0); +if (v_isShared_2496_ == 0) { -lean_ctor_set(v___x_2557_, 0, v___x_2583_); -v___x_2585_ = v___x_2557_; -goto v_reusejp_2584_; +lean_ctor_set(v___x_2495_, 0, v___x_2521_); +v___x_2523_ = v___x_2495_; +goto v_reusejp_2522_; } else { -lean_object* v_reuseFailAlloc_2586_; -v_reuseFailAlloc_2586_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2586_, 0, v___x_2583_); -v___x_2585_ = v_reuseFailAlloc_2586_; -goto v_reusejp_2584_; +lean_object* v_reuseFailAlloc_2524_; +v_reuseFailAlloc_2524_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2524_, 0, v___x_2521_); +v___x_2523_ = v_reuseFailAlloc_2524_; +goto v_reusejp_2522_; } -v_reusejp_2584_: +v_reusejp_2522_: { -return v___x_2585_; +return v___x_2523_; } } } @@ -8485,1722 +8341,828 @@ return v___x_2585_; } } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16___boxed(lean_object* v_oldTraces_2593_, lean_object* v_data_2594_, lean_object* v_ref_2595_, lean_object* v_msg_2596_, lean_object* v___y_2597_, lean_object* v___y_2598_, lean_object* v___y_2599_, lean_object* v___y_2600_, lean_object* v___y_2601_){ +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15___boxed(lean_object* v_oldTraces_2531_, lean_object* v_data_2532_, lean_object* v_ref_2533_, lean_object* v_msg_2534_, lean_object* v___y_2535_, lean_object* v___y_2536_, lean_object* v___y_2537_, lean_object* v___y_2538_, lean_object* v___y_2539_){ _start: { -lean_object* v_res_2602_; -v_res_2602_ = l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16(v_oldTraces_2593_, v_data_2594_, v_ref_2595_, v_msg_2596_, v___y_2597_, v___y_2598_, v___y_2599_, v___y_2600_); -lean_dec(v___y_2600_); -lean_dec_ref(v___y_2599_); -lean_dec(v___y_2598_); -lean_dec_ref(v___y_2597_); -return v_res_2602_; +lean_object* v_res_2540_; +v_res_2540_ = l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15(v_oldTraces_2531_, v_data_2532_, v_ref_2533_, v_msg_2534_, v___y_2535_, v___y_2536_, v___y_2537_, v___y_2538_); +lean_dec(v___y_2538_); +lean_dec_ref(v___y_2537_); +lean_dec(v___y_2536_); +lean_dec_ref(v___y_2535_); +return v_res_2540_; } } -LEAN_EXPORT uint8_t l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15(lean_object* v_e_2603_){ +static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1(void){ _start: { -if (lean_obj_tag(v_e_2603_) == 0) -{ -uint8_t v___x_2604_; -v___x_2604_ = 2; -return v___x_2604_; -} -else -{ -uint8_t v___x_2605_; -v___x_2605_ = 0; -return v___x_2605_; +lean_object* v___x_2542_; lean_object* v___x_2543_; +v___x_2542_ = ((lean_object*)(l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__0)); +v___x_2543_ = l_Lean_stringToMessageData(v___x_2542_); +return v___x_2543_; } } -} -LEAN_EXPORT lean_object* l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15___boxed(lean_object* v_e_2606_){ +static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3(void){ _start: { -uint8_t v_res_2607_; lean_object* v_r_2608_; -v_res_2607_ = l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15(v_e_2606_); -lean_dec_ref(v_e_2606_); -v_r_2608_ = lean_box(v_res_2607_); -return v_r_2608_; +lean_object* v___x_2545_; lean_object* v___x_2546_; +v___x_2545_ = ((lean_object*)(l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__2)); +v___x_2546_ = l_Lean_stringToMessageData(v___x_2545_); +return v___x_2546_; } } -static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1(void){ +static double _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4(void){ _start: { -lean_object* v___x_2610_; lean_object* v___x_2611_; -v___x_2610_ = ((lean_object*)(l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__0)); -v___x_2611_ = l_Lean_stringToMessageData(v___x_2610_); -return v___x_2611_; +lean_object* v___x_2547_; double v___x_2548_; +v___x_2547_ = lean_unsigned_to_nat(1000u); +v___x_2548_ = lean_float_of_nat(v___x_2547_); +return v___x_2548_; } } -static lean_object* _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3(void){ +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11(lean_object* v_cls_2549_, uint8_t v_collapsed_2550_, lean_object* v_tag_2551_, lean_object* v_opts_2552_, uint8_t v_clsEnabled_2553_, lean_object* v_oldTraces_2554_, lean_object* v_msg_2555_, lean_object* v_resStartStop_2556_, lean_object* v___y_2557_, lean_object* v___y_2558_, lean_object* v___y_2559_, lean_object* v___y_2560_){ _start: { -lean_object* v___x_2613_; lean_object* v___x_2614_; -v___x_2613_ = ((lean_object*)(l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__2)); -v___x_2614_ = l_Lean_stringToMessageData(v___x_2613_); -return v___x_2614_; +lean_object* v_fst_2562_; lean_object* v_snd_2563_; lean_object* v___x_2565_; uint8_t v_isShared_2566_; uint8_t v_isSharedCheck_2661_; +v_fst_2562_ = lean_ctor_get(v_resStartStop_2556_, 0); +v_snd_2563_ = lean_ctor_get(v_resStartStop_2556_, 1); +v_isSharedCheck_2661_ = !lean_is_exclusive(v_resStartStop_2556_); +if (v_isSharedCheck_2661_ == 0) +{ +v___x_2565_ = v_resStartStop_2556_; +v_isShared_2566_ = v_isSharedCheck_2661_; +goto v_resetjp_2564_; +} +else +{ +lean_inc(v_snd_2563_); +lean_inc(v_fst_2562_); +lean_dec(v_resStartStop_2556_); +v___x_2565_ = lean_box(0); +v_isShared_2566_ = v_isSharedCheck_2661_; +goto v_resetjp_2564_; +} +v_resetjp_2564_: +{ +lean_object* v___y_2568_; lean_object* v___y_2569_; lean_object* v_data_2570_; lean_object* v_fst_2581_; lean_object* v_snd_2582_; lean_object* v___x_2584_; uint8_t v_isShared_2585_; uint8_t v_isSharedCheck_2660_; +v_fst_2581_ = lean_ctor_get(v_snd_2563_, 0); +v_snd_2582_ = lean_ctor_get(v_snd_2563_, 1); +v_isSharedCheck_2660_ = !lean_is_exclusive(v_snd_2563_); +if (v_isSharedCheck_2660_ == 0) +{ +v___x_2584_ = v_snd_2563_; +v_isShared_2585_ = v_isSharedCheck_2660_; +goto v_resetjp_2583_; +} +else +{ +lean_inc(v_snd_2582_); +lean_inc(v_fst_2581_); +lean_dec(v_snd_2563_); +v___x_2584_ = lean_box(0); +v_isShared_2585_ = v_isSharedCheck_2660_; +goto v_resetjp_2583_; +} +v___jp_2567_: +{ +lean_object* v___x_2571_; +lean_inc(v___y_2569_); +v___x_2571_ = l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__15(v_oldTraces_2554_, v_data_2570_, v___y_2569_, v___y_2568_, v___y_2557_, v___y_2558_, v___y_2559_, v___y_2560_); +if (lean_obj_tag(v___x_2571_) == 0) +{ +lean_object* v___x_2572_; +lean_dec_ref(v___x_2571_); +v___x_2572_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(v_fst_2562_); +return v___x_2572_; +} +else +{ +lean_object* v_a_2573_; lean_object* v___x_2575_; uint8_t v_isShared_2576_; uint8_t v_isSharedCheck_2580_; +lean_dec(v_fst_2562_); +v_a_2573_ = lean_ctor_get(v___x_2571_, 0); +v_isSharedCheck_2580_ = !lean_is_exclusive(v___x_2571_); +if (v_isSharedCheck_2580_ == 0) +{ +v___x_2575_ = v___x_2571_; +v_isShared_2576_ = v_isSharedCheck_2580_; +goto v_resetjp_2574_; +} +else +{ +lean_inc(v_a_2573_); +lean_dec(v___x_2571_); +v___x_2575_ = lean_box(0); +v_isShared_2576_ = v_isSharedCheck_2580_; +goto v_resetjp_2574_; +} +v_resetjp_2574_: +{ +lean_object* v___x_2578_; +if (v_isShared_2576_ == 0) +{ +v___x_2578_ = v___x_2575_; +goto v_reusejp_2577_; +} +else +{ +lean_object* v_reuseFailAlloc_2579_; +v_reuseFailAlloc_2579_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2579_, 0, v_a_2573_); +v___x_2578_ = v_reuseFailAlloc_2579_; +goto v_reusejp_2577_; +} +v_reusejp_2577_: +{ +return v___x_2578_; } } -static double _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4(void){ +} +} +v_resetjp_2583_: +{ +lean_object* v___x_2586_; uint8_t v___x_2587_; lean_object* v___y_2589_; lean_object* v_a_2590_; uint8_t v___y_2614_; double v___y_2645_; +v___x_2586_ = l_Lean_trace_profiler; +v___x_2587_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_opts_2552_, v___x_2586_); +if (v___x_2587_ == 0) +{ +v___y_2614_ = v___x_2587_; +goto v___jp_2613_; +} +else +{ +lean_object* v___x_2650_; uint8_t v___x_2651_; +v___x_2650_ = l_Lean_trace_profiler_useHeartbeats; +v___x_2651_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_opts_2552_, v___x_2650_); +if (v___x_2651_ == 0) +{ +lean_object* v___x_2652_; lean_object* v___x_2653_; double v___x_2654_; double v___x_2655_; double v___x_2656_; +v___x_2652_ = l_Lean_trace_profiler_threshold; +v___x_2653_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17(v_opts_2552_, v___x_2652_); +v___x_2654_ = lean_float_of_nat(v___x_2653_); +v___x_2655_ = lean_float_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__4); +v___x_2656_ = lean_float_div(v___x_2654_, v___x_2655_); +v___y_2645_ = v___x_2656_; +goto v___jp_2644_; +} +else +{ +lean_object* v___x_2657_; lean_object* v___x_2658_; double v___x_2659_; +v___x_2657_ = l_Lean_trace_profiler_threshold; +v___x_2658_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__17(v_opts_2552_, v___x_2657_); +v___x_2659_ = lean_float_of_nat(v___x_2658_); +v___y_2645_ = v___x_2659_; +goto v___jp_2644_; +} +} +v___jp_2588_: +{ +uint8_t v_result_2591_; lean_object* v___x_2592_; lean_object* v___x_2593_; lean_object* v___x_2594_; lean_object* v___x_2596_; +v_result_2591_ = l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__14(v_fst_2562_); +v___x_2592_ = l_Lean_TraceResult_toEmoji(v_result_2591_); +v___x_2593_ = l_Lean_stringToMessageData(v___x_2592_); +v___x_2594_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__1); +if (v_isShared_2585_ == 0) +{ +lean_ctor_set_tag(v___x_2584_, 7); +lean_ctor_set(v___x_2584_, 1, v___x_2594_); +lean_ctor_set(v___x_2584_, 0, v___x_2593_); +v___x_2596_ = v___x_2584_; +goto v_reusejp_2595_; +} +else +{ +lean_object* v_reuseFailAlloc_2607_; +v_reuseFailAlloc_2607_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2607_, 0, v___x_2593_); +lean_ctor_set(v_reuseFailAlloc_2607_, 1, v___x_2594_); +v___x_2596_ = v_reuseFailAlloc_2607_; +goto v_reusejp_2595_; +} +v_reusejp_2595_: +{ +lean_object* v_m_2598_; +if (v_isShared_2566_ == 0) +{ +lean_ctor_set_tag(v___x_2565_, 7); +lean_ctor_set(v___x_2565_, 1, v_a_2590_); +lean_ctor_set(v___x_2565_, 0, v___x_2596_); +v_m_2598_ = v___x_2565_; +goto v_reusejp_2597_; +} +else +{ +lean_object* v_reuseFailAlloc_2606_; +v_reuseFailAlloc_2606_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2606_, 0, v___x_2596_); +lean_ctor_set(v_reuseFailAlloc_2606_, 1, v_a_2590_); +v_m_2598_ = v_reuseFailAlloc_2606_; +goto v_reusejp_2597_; +} +v_reusejp_2597_: +{ +lean_object* v___x_2599_; lean_object* v___x_2600_; double v___x_2601_; lean_object* v_data_2602_; +v___x_2599_ = lean_box(v_result_2591_); +v___x_2600_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2600_, 0, v___x_2599_); +v___x_2601_ = lean_float_once(&l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0, &l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0_once, _init_l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0); +lean_inc_ref(v_tag_2551_); +lean_inc_ref(v___x_2600_); +lean_inc(v_cls_2549_); +v_data_2602_ = lean_alloc_ctor(0, 3, 17); +lean_ctor_set(v_data_2602_, 0, v_cls_2549_); +lean_ctor_set(v_data_2602_, 1, v___x_2600_); +lean_ctor_set(v_data_2602_, 2, v_tag_2551_); +lean_ctor_set_float(v_data_2602_, sizeof(void*)*3, v___x_2601_); +lean_ctor_set_float(v_data_2602_, sizeof(void*)*3 + 8, v___x_2601_); +lean_ctor_set_uint8(v_data_2602_, sizeof(void*)*3 + 16, v_collapsed_2550_); +if (v___x_2587_ == 0) +{ +lean_dec_ref(v___x_2600_); +lean_dec(v_snd_2582_); +lean_dec(v_fst_2581_); +lean_dec_ref(v_tag_2551_); +lean_dec(v_cls_2549_); +v___y_2568_ = v_m_2598_; +v___y_2569_ = v___y_2589_; +v_data_2570_ = v_data_2602_; +goto v___jp_2567_; +} +else +{ +lean_object* v_data_2603_; double v___x_2604_; double v___x_2605_; +lean_dec_ref(v_data_2602_); +v_data_2603_ = lean_alloc_ctor(0, 3, 17); +lean_ctor_set(v_data_2603_, 0, v_cls_2549_); +lean_ctor_set(v_data_2603_, 1, v___x_2600_); +lean_ctor_set(v_data_2603_, 2, v_tag_2551_); +v___x_2604_ = lean_unbox_float(v_fst_2581_); +lean_dec(v_fst_2581_); +lean_ctor_set_float(v_data_2603_, sizeof(void*)*3, v___x_2604_); +v___x_2605_ = lean_unbox_float(v_snd_2582_); +lean_dec(v_snd_2582_); +lean_ctor_set_float(v_data_2603_, sizeof(void*)*3 + 8, v___x_2605_); +lean_ctor_set_uint8(v_data_2603_, sizeof(void*)*3 + 16, v_collapsed_2550_); +v___y_2568_ = v_m_2598_; +v___y_2569_ = v___y_2589_; +v_data_2570_ = v_data_2603_; +goto v___jp_2567_; +} +} +} +} +v___jp_2608_: +{ +lean_object* v_ref_2609_; lean_object* v___x_2610_; +v_ref_2609_ = lean_ctor_get(v___y_2559_, 5); +lean_inc(v___y_2560_); +lean_inc_ref(v___y_2559_); +lean_inc(v___y_2558_); +lean_inc_ref(v___y_2557_); +lean_inc(v_fst_2562_); +v___x_2610_ = lean_apply_6(v_msg_2555_, v_fst_2562_, v___y_2557_, v___y_2558_, v___y_2559_, v___y_2560_, lean_box(0)); +if (lean_obj_tag(v___x_2610_) == 0) +{ +lean_object* v_a_2611_; +v_a_2611_ = lean_ctor_get(v___x_2610_, 0); +lean_inc(v_a_2611_); +lean_dec_ref(v___x_2610_); +v___y_2589_ = v_ref_2609_; +v_a_2590_ = v_a_2611_; +goto v___jp_2588_; +} +else +{ +lean_object* v___x_2612_; +lean_dec_ref(v___x_2610_); +v___x_2612_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___closed__3); +v___y_2589_ = v_ref_2609_; +v_a_2590_ = v___x_2612_; +goto v___jp_2588_; +} +} +v___jp_2613_: +{ +if (v_clsEnabled_2553_ == 0) +{ +if (v___y_2614_ == 0) +{ +lean_object* v___x_2615_; lean_object* v_traceState_2616_; lean_object* v_env_2617_; lean_object* v_nextMacroScope_2618_; lean_object* v_ngen_2619_; lean_object* v_auxDeclNGen_2620_; lean_object* v_cache_2621_; lean_object* v_messages_2622_; lean_object* v_infoState_2623_; lean_object* v_snapshotTasks_2624_; lean_object* v___x_2626_; uint8_t v_isShared_2627_; uint8_t v_isSharedCheck_2643_; +lean_del_object(v___x_2584_); +lean_dec(v_snd_2582_); +lean_dec(v_fst_2581_); +lean_del_object(v___x_2565_); +lean_dec_ref(v_msg_2555_); +lean_dec_ref(v_tag_2551_); +lean_dec(v_cls_2549_); +v___x_2615_ = lean_st_ref_take(v___y_2560_); +v_traceState_2616_ = lean_ctor_get(v___x_2615_, 4); +v_env_2617_ = lean_ctor_get(v___x_2615_, 0); +v_nextMacroScope_2618_ = lean_ctor_get(v___x_2615_, 1); +v_ngen_2619_ = lean_ctor_get(v___x_2615_, 2); +v_auxDeclNGen_2620_ = lean_ctor_get(v___x_2615_, 3); +v_cache_2621_ = lean_ctor_get(v___x_2615_, 5); +v_messages_2622_ = lean_ctor_get(v___x_2615_, 6); +v_infoState_2623_ = lean_ctor_get(v___x_2615_, 7); +v_snapshotTasks_2624_ = lean_ctor_get(v___x_2615_, 8); +v_isSharedCheck_2643_ = !lean_is_exclusive(v___x_2615_); +if (v_isSharedCheck_2643_ == 0) +{ +v___x_2626_ = v___x_2615_; +v_isShared_2627_ = v_isSharedCheck_2643_; +goto v_resetjp_2625_; +} +else +{ +lean_inc(v_snapshotTasks_2624_); +lean_inc(v_infoState_2623_); +lean_inc(v_messages_2622_); +lean_inc(v_cache_2621_); +lean_inc(v_traceState_2616_); +lean_inc(v_auxDeclNGen_2620_); +lean_inc(v_ngen_2619_); +lean_inc(v_nextMacroScope_2618_); +lean_inc(v_env_2617_); +lean_dec(v___x_2615_); +v___x_2626_ = lean_box(0); +v_isShared_2627_ = v_isSharedCheck_2643_; +goto v_resetjp_2625_; +} +v_resetjp_2625_: +{ +uint64_t v_tid_2628_; lean_object* v_traces_2629_; lean_object* v___x_2631_; uint8_t v_isShared_2632_; uint8_t v_isSharedCheck_2642_; +v_tid_2628_ = lean_ctor_get_uint64(v_traceState_2616_, sizeof(void*)*1); +v_traces_2629_ = lean_ctor_get(v_traceState_2616_, 0); +v_isSharedCheck_2642_ = !lean_is_exclusive(v_traceState_2616_); +if (v_isSharedCheck_2642_ == 0) +{ +v___x_2631_ = v_traceState_2616_; +v_isShared_2632_ = v_isSharedCheck_2642_; +goto v_resetjp_2630_; +} +else +{ +lean_inc(v_traces_2629_); +lean_dec(v_traceState_2616_); +v___x_2631_ = lean_box(0); +v_isShared_2632_ = v_isSharedCheck_2642_; +goto v_resetjp_2630_; +} +v_resetjp_2630_: +{ +lean_object* v___x_2633_; lean_object* v___x_2635_; +v___x_2633_ = l_Lean_PersistentArray_append___redArg(v_oldTraces_2554_, v_traces_2629_); +lean_dec_ref(v_traces_2629_); +if (v_isShared_2632_ == 0) +{ +lean_ctor_set(v___x_2631_, 0, v___x_2633_); +v___x_2635_ = v___x_2631_; +goto v_reusejp_2634_; +} +else +{ +lean_object* v_reuseFailAlloc_2641_; +v_reuseFailAlloc_2641_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v_reuseFailAlloc_2641_, 0, v___x_2633_); +lean_ctor_set_uint64(v_reuseFailAlloc_2641_, sizeof(void*)*1, v_tid_2628_); +v___x_2635_ = v_reuseFailAlloc_2641_; +goto v_reusejp_2634_; +} +v_reusejp_2634_: +{ +lean_object* v___x_2637_; +if (v_isShared_2627_ == 0) +{ +lean_ctor_set(v___x_2626_, 4, v___x_2635_); +v___x_2637_ = v___x_2626_; +goto v_reusejp_2636_; +} +else +{ +lean_object* v_reuseFailAlloc_2640_; +v_reuseFailAlloc_2640_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_2640_, 0, v_env_2617_); +lean_ctor_set(v_reuseFailAlloc_2640_, 1, v_nextMacroScope_2618_); +lean_ctor_set(v_reuseFailAlloc_2640_, 2, v_ngen_2619_); +lean_ctor_set(v_reuseFailAlloc_2640_, 3, v_auxDeclNGen_2620_); +lean_ctor_set(v_reuseFailAlloc_2640_, 4, v___x_2635_); +lean_ctor_set(v_reuseFailAlloc_2640_, 5, v_cache_2621_); +lean_ctor_set(v_reuseFailAlloc_2640_, 6, v_messages_2622_); +lean_ctor_set(v_reuseFailAlloc_2640_, 7, v_infoState_2623_); +lean_ctor_set(v_reuseFailAlloc_2640_, 8, v_snapshotTasks_2624_); +v___x_2637_ = v_reuseFailAlloc_2640_; +goto v_reusejp_2636_; +} +v_reusejp_2636_: +{ +lean_object* v___x_2638_; lean_object* v___x_2639_; +v___x_2638_ = lean_st_ref_set(v___y_2560_, v___x_2637_); +v___x_2639_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(v_fst_2562_); +return v___x_2639_; +} +} +} +} +} +else +{ +goto v___jp_2608_; +} +} +else +{ +goto v___jp_2608_; +} +} +v___jp_2644_: +{ +double v___x_2646_; double v___x_2647_; double v___x_2648_; uint8_t v___x_2649_; +v___x_2646_ = lean_unbox_float(v_snd_2582_); +v___x_2647_ = lean_unbox_float(v_fst_2581_); +v___x_2648_ = lean_float_sub(v___x_2646_, v___x_2647_); +v___x_2649_ = lean_float_decLt(v___y_2645_, v___x_2648_); +v___y_2614_ = v___x_2649_; +goto v___jp_2613_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11___boxed(lean_object* v_cls_2662_, lean_object* v_collapsed_2663_, lean_object* v_tag_2664_, lean_object* v_opts_2665_, lean_object* v_clsEnabled_2666_, lean_object* v_oldTraces_2667_, lean_object* v_msg_2668_, lean_object* v_resStartStop_2669_, lean_object* v___y_2670_, lean_object* v___y_2671_, lean_object* v___y_2672_, lean_object* v___y_2673_, lean_object* v___y_2674_){ _start: { -lean_object* v___x_2615_; double v___x_2616_; -v___x_2615_ = lean_unsigned_to_nat(1000u); -v___x_2616_ = lean_float_of_nat(v___x_2615_); -return v___x_2616_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12(lean_object* v_cls_2617_, uint8_t v_collapsed_2618_, lean_object* v_tag_2619_, lean_object* v_opts_2620_, uint8_t v_clsEnabled_2621_, lean_object* v_oldTraces_2622_, lean_object* v_msg_2623_, lean_object* v_resStartStop_2624_, lean_object* v___y_2625_, lean_object* v___y_2626_, lean_object* v___y_2627_, lean_object* v___y_2628_){ -_start: -{ -lean_object* v_fst_2630_; lean_object* v_snd_2631_; lean_object* v___x_2633_; uint8_t v_isShared_2634_; uint8_t v_isSharedCheck_2729_; -v_fst_2630_ = lean_ctor_get(v_resStartStop_2624_, 0); -v_snd_2631_ = lean_ctor_get(v_resStartStop_2624_, 1); -v_isSharedCheck_2729_ = !lean_is_exclusive(v_resStartStop_2624_); -if (v_isSharedCheck_2729_ == 0) -{ -v___x_2633_ = v_resStartStop_2624_; -v_isShared_2634_ = v_isSharedCheck_2729_; -goto v_resetjp_2632_; -} -else -{ -lean_inc(v_snd_2631_); -lean_inc(v_fst_2630_); -lean_dec(v_resStartStop_2624_); -v___x_2633_ = lean_box(0); -v_isShared_2634_ = v_isSharedCheck_2729_; -goto v_resetjp_2632_; -} -v_resetjp_2632_: -{ -lean_object* v___y_2636_; lean_object* v___y_2637_; lean_object* v_data_2638_; lean_object* v_fst_2649_; lean_object* v_snd_2650_; lean_object* v___x_2652_; uint8_t v_isShared_2653_; uint8_t v_isSharedCheck_2728_; -v_fst_2649_ = lean_ctor_get(v_snd_2631_, 0); -v_snd_2650_ = lean_ctor_get(v_snd_2631_, 1); -v_isSharedCheck_2728_ = !lean_is_exclusive(v_snd_2631_); -if (v_isSharedCheck_2728_ == 0) -{ -v___x_2652_ = v_snd_2631_; -v_isShared_2653_ = v_isSharedCheck_2728_; -goto v_resetjp_2651_; -} -else -{ -lean_inc(v_snd_2650_); -lean_inc(v_fst_2649_); -lean_dec(v_snd_2631_); -v___x_2652_ = lean_box(0); -v_isShared_2653_ = v_isSharedCheck_2728_; -goto v_resetjp_2651_; -} -v___jp_2635_: -{ -lean_object* v___x_2639_; -lean_inc(v___y_2637_); -v___x_2639_ = l___private_Lean_Util_Trace_0__Lean_addTraceNode___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__16(v_oldTraces_2622_, v_data_2638_, v___y_2637_, v___y_2636_, v___y_2625_, v___y_2626_, v___y_2627_, v___y_2628_); -if (lean_obj_tag(v___x_2639_) == 0) -{ -lean_object* v___x_2640_; -lean_dec_ref(v___x_2639_); -v___x_2640_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(v_fst_2630_); -return v___x_2640_; -} -else -{ -lean_object* v_a_2641_; lean_object* v___x_2643_; uint8_t v_isShared_2644_; uint8_t v_isSharedCheck_2648_; -lean_dec(v_fst_2630_); -v_a_2641_ = lean_ctor_get(v___x_2639_, 0); -v_isSharedCheck_2648_ = !lean_is_exclusive(v___x_2639_); -if (v_isSharedCheck_2648_ == 0) -{ -v___x_2643_ = v___x_2639_; -v_isShared_2644_ = v_isSharedCheck_2648_; -goto v_resetjp_2642_; -} -else -{ -lean_inc(v_a_2641_); -lean_dec(v___x_2639_); -v___x_2643_ = lean_box(0); -v_isShared_2644_ = v_isSharedCheck_2648_; -goto v_resetjp_2642_; -} -v_resetjp_2642_: -{ -lean_object* v___x_2646_; -if (v_isShared_2644_ == 0) -{ -v___x_2646_ = v___x_2643_; -goto v_reusejp_2645_; -} -else -{ -lean_object* v_reuseFailAlloc_2647_; -v_reuseFailAlloc_2647_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2647_, 0, v_a_2641_); -v___x_2646_ = v_reuseFailAlloc_2647_; -goto v_reusejp_2645_; -} -v_reusejp_2645_: -{ -return v___x_2646_; -} -} -} -} -v_resetjp_2651_: -{ -lean_object* v___x_2654_; uint8_t v___x_2655_; lean_object* v___y_2657_; lean_object* v_a_2658_; uint8_t v___y_2682_; double v___y_2713_; -v___x_2654_ = l_Lean_trace_profiler; -v___x_2655_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_opts_2620_, v___x_2654_); -if (v___x_2655_ == 0) -{ -v___y_2682_ = v___x_2655_; -goto v___jp_2681_; -} -else -{ -lean_object* v___x_2718_; uint8_t v___x_2719_; -v___x_2718_ = l_Lean_trace_profiler_useHeartbeats; -v___x_2719_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_opts_2620_, v___x_2718_); -if (v___x_2719_ == 0) -{ -lean_object* v___x_2720_; lean_object* v___x_2721_; double v___x_2722_; double v___x_2723_; double v___x_2724_; -v___x_2720_ = l_Lean_trace_profiler_threshold; -v___x_2721_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18(v_opts_2620_, v___x_2720_); -v___x_2722_ = lean_float_of_nat(v___x_2721_); -v___x_2723_ = lean_float_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__4); -v___x_2724_ = lean_float_div(v___x_2722_, v___x_2723_); -v___y_2713_ = v___x_2724_; -goto v___jp_2712_; -} -else -{ -lean_object* v___x_2725_; lean_object* v___x_2726_; double v___x_2727_; -v___x_2725_ = l_Lean_trace_profiler_threshold; -v___x_2726_ = l_Lean_Option_get___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__18(v_opts_2620_, v___x_2725_); -v___x_2727_ = lean_float_of_nat(v___x_2726_); -v___y_2713_ = v___x_2727_; -goto v___jp_2712_; -} -} -v___jp_2656_: -{ -uint8_t v_result_2659_; lean_object* v___x_2660_; lean_object* v___x_2661_; lean_object* v___x_2662_; lean_object* v___x_2664_; -v_result_2659_ = l_Except_toTraceResult___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__15(v_fst_2630_); -v___x_2660_ = l_Lean_TraceResult_toEmoji(v_result_2659_); -v___x_2661_ = l_Lean_stringToMessageData(v___x_2660_); -v___x_2662_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__1); -if (v_isShared_2653_ == 0) -{ -lean_ctor_set_tag(v___x_2652_, 7); -lean_ctor_set(v___x_2652_, 1, v___x_2662_); -lean_ctor_set(v___x_2652_, 0, v___x_2661_); -v___x_2664_ = v___x_2652_; -goto v_reusejp_2663_; -} -else -{ -lean_object* v_reuseFailAlloc_2675_; -v_reuseFailAlloc_2675_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2675_, 0, v___x_2661_); -lean_ctor_set(v_reuseFailAlloc_2675_, 1, v___x_2662_); -v___x_2664_ = v_reuseFailAlloc_2675_; -goto v_reusejp_2663_; -} -v_reusejp_2663_: -{ -lean_object* v_m_2666_; -if (v_isShared_2634_ == 0) -{ -lean_ctor_set_tag(v___x_2633_, 7); -lean_ctor_set(v___x_2633_, 1, v_a_2658_); -lean_ctor_set(v___x_2633_, 0, v___x_2664_); -v_m_2666_ = v___x_2633_; -goto v_reusejp_2665_; -} -else -{ -lean_object* v_reuseFailAlloc_2674_; -v_reuseFailAlloc_2674_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2674_, 0, v___x_2664_); -lean_ctor_set(v_reuseFailAlloc_2674_, 1, v_a_2658_); -v_m_2666_ = v_reuseFailAlloc_2674_; -goto v_reusejp_2665_; -} -v_reusejp_2665_: -{ -lean_object* v___x_2667_; lean_object* v___x_2668_; double v___x_2669_; lean_object* v_data_2670_; -v___x_2667_ = lean_box(v_result_2659_); -v___x_2668_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2668_, 0, v___x_2667_); -v___x_2669_ = lean_float_once(&l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0, &l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0_once, _init_l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__0); -lean_inc_ref(v_tag_2619_); -lean_inc_ref(v___x_2668_); -lean_inc(v_cls_2617_); -v_data_2670_ = lean_alloc_ctor(0, 3, 17); -lean_ctor_set(v_data_2670_, 0, v_cls_2617_); -lean_ctor_set(v_data_2670_, 1, v___x_2668_); -lean_ctor_set(v_data_2670_, 2, v_tag_2619_); -lean_ctor_set_float(v_data_2670_, sizeof(void*)*3, v___x_2669_); -lean_ctor_set_float(v_data_2670_, sizeof(void*)*3 + 8, v___x_2669_); -lean_ctor_set_uint8(v_data_2670_, sizeof(void*)*3 + 16, v_collapsed_2618_); -if (v___x_2655_ == 0) -{ -lean_dec_ref(v___x_2668_); -lean_dec(v_snd_2650_); -lean_dec(v_fst_2649_); -lean_dec_ref(v_tag_2619_); -lean_dec(v_cls_2617_); -v___y_2636_ = v_m_2666_; -v___y_2637_ = v___y_2657_; -v_data_2638_ = v_data_2670_; -goto v___jp_2635_; -} -else -{ -lean_object* v_data_2671_; double v___x_2672_; double v___x_2673_; -lean_dec_ref(v_data_2670_); -v_data_2671_ = lean_alloc_ctor(0, 3, 17); -lean_ctor_set(v_data_2671_, 0, v_cls_2617_); -lean_ctor_set(v_data_2671_, 1, v___x_2668_); -lean_ctor_set(v_data_2671_, 2, v_tag_2619_); -v___x_2672_ = lean_unbox_float(v_fst_2649_); -lean_dec(v_fst_2649_); -lean_ctor_set_float(v_data_2671_, sizeof(void*)*3, v___x_2672_); -v___x_2673_ = lean_unbox_float(v_snd_2650_); -lean_dec(v_snd_2650_); -lean_ctor_set_float(v_data_2671_, sizeof(void*)*3 + 8, v___x_2673_); -lean_ctor_set_uint8(v_data_2671_, sizeof(void*)*3 + 16, v_collapsed_2618_); -v___y_2636_ = v_m_2666_; -v___y_2637_ = v___y_2657_; -v_data_2638_ = v_data_2671_; -goto v___jp_2635_; -} -} -} -} -v___jp_2676_: -{ -lean_object* v_ref_2677_; lean_object* v___x_2678_; -v_ref_2677_ = lean_ctor_get(v___y_2627_, 5); -lean_inc(v___y_2628_); -lean_inc_ref(v___y_2627_); -lean_inc(v___y_2626_); -lean_inc_ref(v___y_2625_); -lean_inc(v_fst_2630_); -v___x_2678_ = lean_apply_6(v_msg_2623_, v_fst_2630_, v___y_2625_, v___y_2626_, v___y_2627_, v___y_2628_, lean_box(0)); -if (lean_obj_tag(v___x_2678_) == 0) -{ -lean_object* v_a_2679_; -v_a_2679_ = lean_ctor_get(v___x_2678_, 0); -lean_inc(v_a_2679_); -lean_dec_ref(v___x_2678_); -v___y_2657_ = v_ref_2677_; -v_a_2658_ = v_a_2679_; -goto v___jp_2656_; -} -else -{ -lean_object* v___x_2680_; -lean_dec_ref(v___x_2678_); -v___x_2680_ = lean_obj_once(&l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3, &l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3_once, _init_l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___closed__3); -v___y_2657_ = v_ref_2677_; -v_a_2658_ = v___x_2680_; -goto v___jp_2656_; -} -} -v___jp_2681_: -{ -if (v_clsEnabled_2621_ == 0) -{ -if (v___y_2682_ == 0) -{ -lean_object* v___x_2683_; lean_object* v_traceState_2684_; lean_object* v_env_2685_; lean_object* v_nextMacroScope_2686_; lean_object* v_ngen_2687_; lean_object* v_auxDeclNGen_2688_; lean_object* v_cache_2689_; lean_object* v_messages_2690_; lean_object* v_infoState_2691_; lean_object* v_snapshotTasks_2692_; lean_object* v___x_2694_; uint8_t v_isShared_2695_; uint8_t v_isSharedCheck_2711_; -lean_del_object(v___x_2652_); -lean_dec(v_snd_2650_); -lean_dec(v_fst_2649_); -lean_del_object(v___x_2633_); -lean_dec_ref(v_msg_2623_); -lean_dec_ref(v_tag_2619_); -lean_dec(v_cls_2617_); -v___x_2683_ = lean_st_ref_take(v___y_2628_); -v_traceState_2684_ = lean_ctor_get(v___x_2683_, 4); -v_env_2685_ = lean_ctor_get(v___x_2683_, 0); -v_nextMacroScope_2686_ = lean_ctor_get(v___x_2683_, 1); -v_ngen_2687_ = lean_ctor_get(v___x_2683_, 2); -v_auxDeclNGen_2688_ = lean_ctor_get(v___x_2683_, 3); -v_cache_2689_ = lean_ctor_get(v___x_2683_, 5); -v_messages_2690_ = lean_ctor_get(v___x_2683_, 6); -v_infoState_2691_ = lean_ctor_get(v___x_2683_, 7); -v_snapshotTasks_2692_ = lean_ctor_get(v___x_2683_, 8); -v_isSharedCheck_2711_ = !lean_is_exclusive(v___x_2683_); -if (v_isSharedCheck_2711_ == 0) -{ -v___x_2694_ = v___x_2683_; -v_isShared_2695_ = v_isSharedCheck_2711_; -goto v_resetjp_2693_; -} -else -{ -lean_inc(v_snapshotTasks_2692_); -lean_inc(v_infoState_2691_); -lean_inc(v_messages_2690_); -lean_inc(v_cache_2689_); -lean_inc(v_traceState_2684_); -lean_inc(v_auxDeclNGen_2688_); -lean_inc(v_ngen_2687_); -lean_inc(v_nextMacroScope_2686_); -lean_inc(v_env_2685_); -lean_dec(v___x_2683_); -v___x_2694_ = lean_box(0); -v_isShared_2695_ = v_isSharedCheck_2711_; -goto v_resetjp_2693_; -} -v_resetjp_2693_: -{ -uint64_t v_tid_2696_; lean_object* v_traces_2697_; lean_object* v___x_2699_; uint8_t v_isShared_2700_; uint8_t v_isSharedCheck_2710_; -v_tid_2696_ = lean_ctor_get_uint64(v_traceState_2684_, sizeof(void*)*1); -v_traces_2697_ = lean_ctor_get(v_traceState_2684_, 0); -v_isSharedCheck_2710_ = !lean_is_exclusive(v_traceState_2684_); -if (v_isSharedCheck_2710_ == 0) -{ -v___x_2699_ = v_traceState_2684_; -v_isShared_2700_ = v_isSharedCheck_2710_; -goto v_resetjp_2698_; -} -else -{ -lean_inc(v_traces_2697_); -lean_dec(v_traceState_2684_); -v___x_2699_ = lean_box(0); -v_isShared_2700_ = v_isSharedCheck_2710_; -goto v_resetjp_2698_; -} -v_resetjp_2698_: -{ -lean_object* v___x_2701_; lean_object* v___x_2703_; -v___x_2701_ = l_Lean_PersistentArray_append___redArg(v_oldTraces_2622_, v_traces_2697_); -lean_dec_ref(v_traces_2697_); -if (v_isShared_2700_ == 0) -{ -lean_ctor_set(v___x_2699_, 0, v___x_2701_); -v___x_2703_ = v___x_2699_; -goto v_reusejp_2702_; -} -else -{ -lean_object* v_reuseFailAlloc_2709_; -v_reuseFailAlloc_2709_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v_reuseFailAlloc_2709_, 0, v___x_2701_); -lean_ctor_set_uint64(v_reuseFailAlloc_2709_, sizeof(void*)*1, v_tid_2696_); -v___x_2703_ = v_reuseFailAlloc_2709_; -goto v_reusejp_2702_; -} -v_reusejp_2702_: -{ -lean_object* v___x_2705_; -if (v_isShared_2695_ == 0) -{ -lean_ctor_set(v___x_2694_, 4, v___x_2703_); -v___x_2705_ = v___x_2694_; -goto v_reusejp_2704_; -} -else -{ -lean_object* v_reuseFailAlloc_2708_; -v_reuseFailAlloc_2708_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_2708_, 0, v_env_2685_); -lean_ctor_set(v_reuseFailAlloc_2708_, 1, v_nextMacroScope_2686_); -lean_ctor_set(v_reuseFailAlloc_2708_, 2, v_ngen_2687_); -lean_ctor_set(v_reuseFailAlloc_2708_, 3, v_auxDeclNGen_2688_); -lean_ctor_set(v_reuseFailAlloc_2708_, 4, v___x_2703_); -lean_ctor_set(v_reuseFailAlloc_2708_, 5, v_cache_2689_); -lean_ctor_set(v_reuseFailAlloc_2708_, 6, v_messages_2690_); -lean_ctor_set(v_reuseFailAlloc_2708_, 7, v_infoState_2691_); -lean_ctor_set(v_reuseFailAlloc_2708_, 8, v_snapshotTasks_2692_); -v___x_2705_ = v_reuseFailAlloc_2708_; -goto v_reusejp_2704_; -} -v_reusejp_2704_: -{ -lean_object* v___x_2706_; lean_object* v___x_2707_; -v___x_2706_ = lean_st_ref_set(v___y_2628_, v___x_2705_); -v___x_2707_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(v_fst_2630_); -return v___x_2707_; -} -} -} -} -} -else -{ -goto v___jp_2676_; -} -} -else -{ -goto v___jp_2676_; -} -} -v___jp_2712_: -{ -double v___x_2714_; double v___x_2715_; double v___x_2716_; uint8_t v___x_2717_; -v___x_2714_ = lean_unbox_float(v_snd_2650_); -v___x_2715_ = lean_unbox_float(v_fst_2649_); -v___x_2716_ = lean_float_sub(v___x_2714_, v___x_2715_); -v___x_2717_ = lean_float_decLt(v___y_2713_, v___x_2716_); -v___y_2682_ = v___x_2717_; -goto v___jp_2681_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12___boxed(lean_object* v_cls_2730_, lean_object* v_collapsed_2731_, lean_object* v_tag_2732_, lean_object* v_opts_2733_, lean_object* v_clsEnabled_2734_, lean_object* v_oldTraces_2735_, lean_object* v_msg_2736_, lean_object* v_resStartStop_2737_, lean_object* v___y_2738_, lean_object* v___y_2739_, lean_object* v___y_2740_, lean_object* v___y_2741_, lean_object* v___y_2742_){ -_start: -{ -uint8_t v_collapsed_boxed_2743_; uint8_t v_clsEnabled_boxed_2744_; lean_object* v_res_2745_; -v_collapsed_boxed_2743_ = lean_unbox(v_collapsed_2731_); -v_clsEnabled_boxed_2744_ = lean_unbox(v_clsEnabled_2734_); -v_res_2745_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12(v_cls_2730_, v_collapsed_boxed_2743_, v_tag_2732_, v_opts_2733_, v_clsEnabled_boxed_2744_, v_oldTraces_2735_, v_msg_2736_, v_resStartStop_2737_, v___y_2738_, v___y_2739_, v___y_2740_, v___y_2741_); -lean_dec(v___y_2741_); -lean_dec_ref(v___y_2740_); -lean_dec(v___y_2739_); -lean_dec_ref(v___y_2738_); -lean_dec_ref(v_opts_2733_); -return v_res_2745_; +uint8_t v_collapsed_boxed_2675_; uint8_t v_clsEnabled_boxed_2676_; lean_object* v_res_2677_; +v_collapsed_boxed_2675_ = lean_unbox(v_collapsed_2663_); +v_clsEnabled_boxed_2676_ = lean_unbox(v_clsEnabled_2666_); +v_res_2677_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11(v_cls_2662_, v_collapsed_boxed_2675_, v_tag_2664_, v_opts_2665_, v_clsEnabled_boxed_2676_, v_oldTraces_2667_, v_msg_2668_, v_resStartStop_2669_, v___y_2670_, v___y_2671_, v___y_2672_, v___y_2673_); +lean_dec(v___y_2673_); +lean_dec_ref(v___y_2672_); +lean_dec(v___y_2671_); +lean_dec_ref(v___y_2670_); +lean_dec_ref(v_opts_2665_); +return v_res_2677_; } } static uint64_t _init_l_Lean_Meta_wrapInstance___closed__0(void){ _start: { -uint8_t v___x_2746_; uint64_t v___x_2747_; -v___x_2746_ = 3; -v___x_2747_ = l_Lean_Meta_TransparencyMode_toUInt64(v___x_2746_); -return v___x_2747_; +uint8_t v___x_2678_; uint64_t v___x_2679_; +v___x_2678_ = 3; +v___x_2679_ = l_Lean_Meta_TransparencyMode_toUInt64(v___x_2678_); +return v___x_2679_; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1(void){ +static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1(void){ _start: { -lean_object* v___x_2749_; lean_object* v___x_2750_; -v___x_2749_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__0)); -v___x_2750_ = l_Lean_stringToMessageData(v___x_2749_); +lean_object* v___x_2681_; lean_object* v___x_2682_; +v___x_2681_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__0)); +v___x_2682_ = l_Lean_stringToMessageData(v___x_2681_); +return v___x_2682_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4(void){ +_start: +{ +lean_object* v___x_2686_; lean_object* v___x_2687_; +v___x_2686_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__3)); +v___x_2687_ = l_Lean_stringToMessageData(v___x_2686_); +return v___x_2687_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6(void){ +_start: +{ +lean_object* v___x_2689_; lean_object* v___x_2690_; +v___x_2689_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__5)); +v___x_2690_ = l_Lean_stringToMessageData(v___x_2689_); +return v___x_2690_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2(void){ +_start: +{ +lean_object* v___x_2692_; lean_object* v___x_2693_; +v___x_2692_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__1)); +v___x_2693_ = l_Lean_stringToMessageData(v___x_2692_); +return v___x_2693_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9(void){ +_start: +{ +lean_object* v___x_2697_; lean_object* v___x_2698_; +v___x_2697_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__8)); +v___x_2698_ = l_Lean_stringToMessageData(v___x_2697_); +return v___x_2698_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11(void){ +_start: +{ +lean_object* v___x_2700_; lean_object* v___x_2701_; +v___x_2700_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__10)); +v___x_2701_ = l_Lean_stringToMessageData(v___x_2700_); +return v___x_2701_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13(void){ +_start: +{ +lean_object* v___x_2703_; lean_object* v___x_2704_; +v___x_2703_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__12)); +v___x_2704_ = l_Lean_stringToMessageData(v___x_2703_); +return v___x_2704_; +} +} +static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15(void){ +_start: +{ +lean_object* v___x_2706_; lean_object* v___x_2707_; +v___x_2706_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__14)); +v___x_2707_ = l_Lean_stringToMessageData(v___x_2706_); +return v___x_2707_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(lean_object* v_upperBound_2708_, lean_object* v_fst_2709_, lean_object* v_args_2710_, uint8_t v_compile_2711_, uint8_t v_logCompileErrors_2712_, uint8_t v___x_2713_, uint8_t v_isMeta_2714_, lean_object* v_val_2715_, lean_object* v_expectedType_2716_, lean_object* v_a_2717_, lean_object* v_b_2718_, lean_object* v___y_2719_, lean_object* v___y_2720_, lean_object* v___y_2721_, lean_object* v___y_2722_){ +_start: +{ +lean_object* v_a_2725_; lean_object* v___y_2730_; uint8_t v___x_2749_; +v___x_2749_ = lean_nat_dec_lt(v_a_2717_, v_upperBound_2708_); +if (v___x_2749_ == 0) +{ +lean_object* v___x_2750_; +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v___x_2750_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2750_, 0, v_b_2718_); return v___x_2750_; } -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4(void){ -_start: +else { -lean_object* v___x_2754_; lean_object* v___x_2755_; -v___x_2754_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__3)); -v___x_2755_ = l_Lean_stringToMessageData(v___x_2754_); -return v___x_2755_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6(void){ -_start: +lean_object* v___x_2751_; lean_object* v___x_2752_; lean_object* v___x_2753_; +v___x_2751_ = lean_array_fget_borrowed(v_fst_2709_, v_a_2717_); +v___x_2752_ = l_Lean_Expr_mvarId_x21(v___x_2751_); +lean_inc(v___x_2752_); +v___x_2753_ = l_Lean_MVarId_getDecl(v___x_2752_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2753_) == 0) { -lean_object* v___x_2757_; lean_object* v___x_2758_; -v___x_2757_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__5)); -v___x_2758_ = l_Lean_stringToMessageData(v___x_2757_); -return v___x_2758_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2(void){ -_start: +lean_object* v_a_2754_; lean_object* v_userName_2755_; lean_object* v_type_2756_; lean_object* v___x_2757_; +v_a_2754_ = lean_ctor_get(v___x_2753_, 0); +lean_inc(v_a_2754_); +lean_dec_ref(v___x_2753_); +v_userName_2755_ = lean_ctor_get(v_a_2754_, 0); +lean_inc(v_userName_2755_); +v_type_2756_ = lean_ctor_get(v_a_2754_, 2); +lean_inc_ref(v_type_2756_); +lean_dec(v_a_2754_); +v___x_2757_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_type_2756_, v___y_2720_); +if (lean_obj_tag(v___x_2757_) == 0) { -lean_object* v___x_2760_; lean_object* v___x_2761_; -v___x_2760_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__1)); -v___x_2761_ = l_Lean_stringToMessageData(v___x_2760_); -return v___x_2761_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9(void){ -_start: +lean_object* v_a_2758_; lean_object* v___x_2759_; +v_a_2758_ = lean_ctor_get(v___x_2757_, 0); +lean_inc_n(v_a_2758_, 2); +lean_dec_ref(v___x_2757_); +v___x_2759_ = l_Lean_Meta_isProp(v_a_2758_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2759_) == 0) { -lean_object* v___x_2765_; lean_object* v___x_2766_; -v___x_2765_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__8)); -v___x_2766_ = l_Lean_stringToMessageData(v___x_2765_); -return v___x_2766_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11(void){ -_start: +lean_object* v_a_2760_; lean_object* v___x_2761_; lean_object* v_cls_2762_; lean_object* v___f_2763_; lean_object* v___x_2764_; uint8_t v___x_2765_; +v_a_2760_ = lean_ctor_get(v___x_2759_, 0); +lean_inc(v_a_2760_); +lean_dec_ref(v___x_2759_); +v___x_2761_ = lean_box(0); +v_cls_2762_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___f_2763_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0)); +v___x_2764_ = lean_array_fget_borrowed(v_args_2710_, v_a_2717_); +v___x_2765_ = lean_unbox(v_a_2760_); +lean_dec(v_a_2760_); +if (v___x_2765_ == 0) { -lean_object* v___x_2768_; lean_object* v___x_2769_; -v___x_2768_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__10)); -v___x_2769_ = l_Lean_stringToMessageData(v___x_2768_); -return v___x_2769_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13(void){ -_start: +lean_object* v___x_2766_; +lean_inc(v_a_2758_); +v___x_2766_ = l_Lean_Meta_isClass_x3f(v_a_2758_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2766_) == 0) { -lean_object* v___x_2771_; lean_object* v___x_2772_; -v___x_2771_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__12)); -v___x_2772_ = l_Lean_stringToMessageData(v___x_2771_); -return v___x_2772_; -} -} -static lean_object* _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15(void){ -_start: +lean_object* v_a_2767_; lean_object* v___x_2769_; uint8_t v_isShared_2770_; uint8_t v_isSharedCheck_2865_; +v_a_2767_ = lean_ctor_get(v___x_2766_, 0); +v_isSharedCheck_2865_ = !lean_is_exclusive(v___x_2766_); +if (v_isSharedCheck_2865_ == 0) { -lean_object* v___x_2774_; lean_object* v___x_2775_; -v___x_2774_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__14)); -v___x_2775_ = l_Lean_stringToMessageData(v___x_2774_); -return v___x_2775_; -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(lean_object* v_upperBound_2776_, lean_object* v_fst_2777_, lean_object* v_args_2778_, uint8_t v_compile_2779_, uint8_t v_logCompileErrors_2780_, uint8_t v___x_2781_, uint8_t v_isMeta_2782_, lean_object* v_val_2783_, lean_object* v_expectedType_2784_, lean_object* v_a_2785_, lean_object* v_b_2786_, lean_object* v___y_2787_, lean_object* v___y_2788_, lean_object* v___y_2789_, lean_object* v___y_2790_){ -_start: -{ -lean_object* v_a_2793_; lean_object* v___y_2798_; uint8_t v___x_2817_; -v___x_2817_ = lean_nat_dec_lt(v_a_2785_, v_upperBound_2776_); -if (v___x_2817_ == 0) -{ -lean_object* v___x_2818_; -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v___x_2818_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2818_, 0, v_b_2786_); -return v___x_2818_; +v___x_2769_ = v___x_2766_; +v_isShared_2770_ = v_isSharedCheck_2865_; +goto v_resetjp_2768_; } else { -lean_object* v___x_2819_; lean_object* v___x_2820_; lean_object* v___x_2821_; -v___x_2819_ = lean_array_fget_borrowed(v_fst_2777_, v_a_2785_); -v___x_2820_ = l_Lean_Expr_mvarId_x21(v___x_2819_); -lean_inc(v___x_2820_); -v___x_2821_ = l_Lean_MVarId_getDecl(v___x_2820_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2821_) == 0) +lean_inc(v_a_2767_); +lean_dec(v___x_2766_); +v___x_2769_ = lean_box(0); +v_isShared_2770_ = v_isSharedCheck_2865_; +goto v_resetjp_2768_; +} +v_resetjp_2768_: { -lean_object* v_a_2822_; lean_object* v_userName_2823_; lean_object* v_type_2824_; lean_object* v___x_2825_; -v_a_2822_ = lean_ctor_get(v___x_2821_, 0); -lean_inc(v_a_2822_); -lean_dec_ref(v___x_2821_); -v_userName_2823_ = lean_ctor_get(v_a_2822_, 0); -lean_inc(v_userName_2823_); -v_type_2824_ = lean_ctor_get(v_a_2822_, 2); -lean_inc_ref(v_type_2824_); -lean_dec(v_a_2822_); -v___x_2825_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_type_2824_, v___y_2788_); -if (lean_obj_tag(v___x_2825_) == 0) +if (lean_obj_tag(v_a_2767_) == 0) { -lean_object* v_a_2826_; lean_object* v___x_2827_; -v_a_2826_ = lean_ctor_get(v___x_2825_, 0); -lean_inc_n(v_a_2826_, 2); -lean_dec_ref(v___x_2825_); -v___x_2827_ = l_Lean_Meta_isProp(v_a_2826_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2827_) == 0) +lean_object* v_options_2771_; lean_object* v___x_2772_; lean_object* v___x_2773_; lean_object* v___x_2774_; lean_object* v___x_2775_; lean_object* v___x_2776_; lean_object* v___f_2777_; lean_object* v___x_2778_; uint8_t v___x_2779_; +lean_del_object(v___x_2769_); +v_options_2771_ = lean_ctor_get(v___y_2721_, 2); +v___x_2772_ = lean_box(v___x_2713_); +v___x_2773_ = lean_box(v___x_2749_); +v___x_2774_ = lean_box(v_compile_2711_); +v___x_2775_ = lean_box(v_logCompileErrors_2712_); +v___x_2776_ = lean_box(v_isMeta_2714_); +lean_inc(v_a_2758_); +lean_inc(v___x_2764_); +lean_inc(v___x_2752_); +v___f_2777_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___boxed), 15, 9); +lean_closure_set(v___f_2777_, 0, v___x_2752_); +lean_closure_set(v___f_2777_, 1, v___x_2764_); +lean_closure_set(v___f_2777_, 2, v___x_2761_); +lean_closure_set(v___f_2777_, 3, v_a_2758_); +lean_closure_set(v___f_2777_, 4, v___x_2772_); +lean_closure_set(v___f_2777_, 5, v___x_2773_); +lean_closure_set(v___f_2777_, 6, v___x_2774_); +lean_closure_set(v___f_2777_, 7, v___x_2775_); +lean_closure_set(v___f_2777_, 8, v___x_2776_); +v___x_2778_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_2779_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2771_, v___x_2778_); +if (v___x_2779_ == 0) { -lean_object* v_a_2828_; lean_object* v___x_2829_; lean_object* v_cls_2830_; lean_object* v___f_2831_; lean_object* v___x_2832_; uint8_t v___x_2833_; -v_a_2828_ = lean_ctor_get(v___x_2827_, 0); -lean_inc(v_a_2828_); -lean_dec_ref(v___x_2827_); -v___x_2829_ = lean_box(0); -v_cls_2830_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___f_2831_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0)); -v___x_2832_ = lean_array_fget_borrowed(v_args_2778_, v_a_2785_); -v___x_2833_ = lean_unbox(v_a_2828_); -lean_dec(v_a_2828_); -if (v___x_2833_ == 0) -{ -lean_object* v___x_2834_; -lean_inc(v_a_2826_); -v___x_2834_ = l_Lean_Meta_isClass_x3f(v_a_2826_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2834_) == 0) -{ -lean_object* v_a_2835_; lean_object* v___x_2837_; uint8_t v_isShared_2838_; uint8_t v_isSharedCheck_2933_; -v_a_2835_ = lean_ctor_get(v___x_2834_, 0); -v_isSharedCheck_2933_ = !lean_is_exclusive(v___x_2834_); -if (v_isSharedCheck_2933_ == 0) -{ -v___x_2837_ = v___x_2834_; -v_isShared_2838_ = v_isSharedCheck_2933_; -goto v_resetjp_2836_; +lean_object* v___x_2780_; +lean_dec_ref(v___f_2777_); +lean_dec(v_userName_2755_); +lean_inc(v___x_2764_); +v___x_2780_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_2752_, v___x_2764_, v___x_2761_, v_a_2758_, v___x_2713_, v___x_2749_, v_compile_2711_, v_logCompileErrors_2712_, v_isMeta_2714_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2780_; +goto v___jp_2729_; } else { -lean_inc(v_a_2835_); -lean_dec(v___x_2834_); -v___x_2837_ = lean_box(0); -v_isShared_2838_ = v_isSharedCheck_2933_; -goto v_resetjp_2836_; -} -v_resetjp_2836_: +lean_object* v___x_2781_; +lean_inc(v_userName_2755_); +lean_inc(v_val_2715_); +v___x_2781_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_2715_, v_userName_2755_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2781_) == 0) { -if (lean_obj_tag(v_a_2835_) == 0) +lean_object* v_a_2782_; lean_object* v_fst_2785_; lean_object* v_snd_2786_; lean_object* v___x_2788_; uint8_t v_isShared_2789_; uint8_t v_isSharedCheck_2817_; +v_a_2782_ = lean_ctor_get(v___x_2781_, 0); +lean_inc(v_a_2782_); +lean_dec_ref(v___x_2781_); +v_fst_2785_ = lean_ctor_get(v_a_2782_, 0); +v_snd_2786_ = lean_ctor_get(v_a_2782_, 1); +v_isSharedCheck_2817_ = !lean_is_exclusive(v_a_2782_); +if (v_isSharedCheck_2817_ == 0) { -lean_object* v_options_2839_; lean_object* v___x_2840_; lean_object* v___x_2841_; lean_object* v___x_2842_; lean_object* v___x_2843_; lean_object* v___x_2844_; lean_object* v___f_2845_; lean_object* v___x_2846_; uint8_t v___x_2847_; -lean_del_object(v___x_2837_); -v_options_2839_ = lean_ctor_get(v___y_2789_, 2); -v___x_2840_ = lean_box(v___x_2781_); -v___x_2841_ = lean_box(v___x_2817_); -v___x_2842_ = lean_box(v_compile_2779_); -v___x_2843_ = lean_box(v_logCompileErrors_2780_); -v___x_2844_ = lean_box(v_isMeta_2782_); -lean_inc(v_a_2826_); -lean_inc(v___x_2832_); -lean_inc(v___x_2820_); -v___f_2845_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___boxed), 15, 9); -lean_closure_set(v___f_2845_, 0, v___x_2820_); -lean_closure_set(v___f_2845_, 1, v___x_2832_); -lean_closure_set(v___f_2845_, 2, v___x_2829_); -lean_closure_set(v___f_2845_, 3, v_a_2826_); -lean_closure_set(v___f_2845_, 4, v___x_2840_); -lean_closure_set(v___f_2845_, 5, v___x_2841_); -lean_closure_set(v___f_2845_, 6, v___x_2842_); -lean_closure_set(v___f_2845_, 7, v___x_2843_); -lean_closure_set(v___f_2845_, 8, v___x_2844_); -v___x_2846_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_2847_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2839_, v___x_2846_); -if (v___x_2847_ == 0) -{ -lean_object* v___x_2848_; -lean_dec_ref(v___f_2845_); -lean_dec(v_userName_2823_); -lean_inc(v___x_2832_); -v___x_2848_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_2820_, v___x_2832_, v___x_2829_, v_a_2826_, v___x_2781_, v___x_2817_, v_compile_2779_, v_logCompileErrors_2780_, v_isMeta_2782_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2848_; -goto v___jp_2797_; +v___x_2788_ = v_a_2782_; +v_isShared_2789_ = v_isSharedCheck_2817_; +goto v_resetjp_2787_; } else { -lean_object* v___x_2849_; -lean_inc(v_userName_2823_); -lean_inc(v_val_2783_); -v___x_2849_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_2783_, v_userName_2823_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2849_) == 0) +lean_inc(v_snd_2786_); +lean_inc(v_fst_2785_); +lean_dec(v_a_2782_); +v___x_2788_ = lean_box(0); +v_isShared_2789_ = v_isSharedCheck_2817_; +goto v_resetjp_2787_; +} +v___jp_2783_: { -lean_object* v_a_2850_; lean_object* v_fst_2853_; lean_object* v_snd_2854_; lean_object* v___x_2856_; uint8_t v_isShared_2857_; uint8_t v_isSharedCheck_2885_; -v_a_2850_ = lean_ctor_get(v___x_2849_, 0); -lean_inc(v_a_2850_); -lean_dec_ref(v___x_2849_); -v_fst_2853_ = lean_ctor_get(v_a_2850_, 0); -v_snd_2854_ = lean_ctor_get(v_a_2850_, 1); -v_isSharedCheck_2885_ = !lean_is_exclusive(v_a_2850_); -if (v_isSharedCheck_2885_ == 0) +lean_object* v___x_2784_; +lean_inc(v___x_2764_); +v___x_2784_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_2752_, v___x_2764_, v___x_2761_, v_a_2758_, v___x_2713_, v___x_2749_, v_compile_2711_, v_logCompileErrors_2712_, v_isMeta_2714_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2784_; +goto v___jp_2729_; +} +v_resetjp_2787_: { -v___x_2856_ = v_a_2850_; -v_isShared_2857_ = v_isSharedCheck_2885_; -goto v_resetjp_2855_; +uint8_t v___x_2790_; +v___x_2790_ = lean_name_eq(v_fst_2785_, v_val_2715_); +if (v___x_2790_ == 0) +{ +if (v___x_2779_ == 0) +{ +lean_del_object(v___x_2788_); +lean_dec(v_snd_2786_); +lean_dec(v_fst_2785_); +lean_dec_ref(v___f_2777_); +lean_dec(v_userName_2755_); +goto v___jp_2783_; } else { -lean_inc(v_snd_2854_); -lean_inc(v_fst_2853_); -lean_dec(v_a_2850_); -v___x_2856_ = lean_box(0); -v_isShared_2857_ = v_isSharedCheck_2885_; -goto v_resetjp_2855_; -} -v___jp_2851_: +lean_object* v___x_2791_; +lean_dec(v_a_2758_); +v___x_2791_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_2762_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2791_) == 0) { -lean_object* v___x_2852_; -lean_inc(v___x_2832_); -v___x_2852_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_2820_, v___x_2832_, v___x_2829_, v_a_2826_, v___x_2781_, v___x_2817_, v_compile_2779_, v_logCompileErrors_2780_, v_isMeta_2782_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2852_; -goto v___jp_2797_; -} -v_resetjp_2855_: +lean_object* v_a_2792_; uint8_t v___x_2793_; +v_a_2792_ = lean_ctor_get(v___x_2791_, 0); +lean_inc(v_a_2792_); +lean_dec_ref(v___x_2791_); +v___x_2793_ = lean_unbox(v_a_2792_); +lean_dec(v_a_2792_); +if (v___x_2793_ == 0) { -uint8_t v___x_2858_; -v___x_2858_ = lean_name_eq(v_fst_2853_, v_val_2783_); -if (v___x_2858_ == 0) -{ -if (v___x_2847_ == 0) -{ -lean_del_object(v___x_2856_); -lean_dec(v_snd_2854_); -lean_dec(v_fst_2853_); -lean_dec_ref(v___f_2845_); -lean_dec(v_userName_2823_); -goto v___jp_2851_; +lean_object* v___x_2794_; +lean_del_object(v___x_2788_); +lean_dec(v_userName_2755_); +lean_inc_ref(v_expectedType_2716_); +lean_inc(v_val_2715_); +v___x_2794_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(v_val_2715_, v_fst_2785_, v_expectedType_2716_, v___f_2763_, v___f_2777_, v___x_2761_, v_cls_2762_, v_snd_2786_, v___x_2752_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2794_; +goto v___jp_2729_; } else { -lean_object* v___x_2859_; -lean_dec(v_a_2826_); -v___x_2859_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_2830_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2859_) == 0) +lean_object* v___x_2795_; lean_object* v___x_2796_; lean_object* v___x_2798_; +v___x_2795_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4); +v___x_2796_ = l_Lean_MessageData_ofName(v_userName_2755_); +if (v_isShared_2789_ == 0) { -lean_object* v_a_2860_; uint8_t v___x_2861_; -v_a_2860_ = lean_ctor_get(v___x_2859_, 0); -lean_inc(v_a_2860_); -lean_dec_ref(v___x_2859_); -v___x_2861_ = lean_unbox(v_a_2860_); -lean_dec(v_a_2860_); -if (v___x_2861_ == 0) -{ -lean_object* v___x_2862_; -lean_del_object(v___x_2856_); -lean_dec(v_userName_2823_); -lean_inc_ref(v_expectedType_2784_); -lean_inc(v_val_2783_); -v___x_2862_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(v_val_2783_, v_fst_2853_, v_expectedType_2784_, v___f_2831_, v___f_2845_, v___x_2829_, v_cls_2830_, v_snd_2854_, v___x_2820_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2862_; -goto v___jp_2797_; +lean_ctor_set_tag(v___x_2788_, 7); +lean_ctor_set(v___x_2788_, 1, v___x_2796_); +lean_ctor_set(v___x_2788_, 0, v___x_2795_); +v___x_2798_ = v___x_2788_; +goto v_reusejp_2797_; } else { -lean_object* v___x_2863_; lean_object* v___x_2864_; lean_object* v___x_2866_; -v___x_2863_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4); -v___x_2864_ = l_Lean_MessageData_ofName(v_userName_2823_); -if (v_isShared_2857_ == 0) +lean_object* v_reuseFailAlloc_2808_; +v_reuseFailAlloc_2808_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2808_, 0, v___x_2795_); +lean_ctor_set(v_reuseFailAlloc_2808_, 1, v___x_2796_); +v___x_2798_ = v_reuseFailAlloc_2808_; +goto v_reusejp_2797_; +} +v_reusejp_2797_: { -lean_ctor_set_tag(v___x_2856_, 7); -lean_ctor_set(v___x_2856_, 1, v___x_2864_); -lean_ctor_set(v___x_2856_, 0, v___x_2863_); -v___x_2866_ = v___x_2856_; -goto v_reusejp_2865_; +lean_object* v___x_2799_; lean_object* v___x_2800_; lean_object* v___x_2801_; lean_object* v___x_2802_; lean_object* v___x_2803_; lean_object* v___x_2804_; lean_object* v___x_2805_; +v___x_2799_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6); +v___x_2800_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2800_, 0, v___x_2798_); +lean_ctor_set(v___x_2800_, 1, v___x_2799_); +lean_inc(v_fst_2785_); +v___x_2801_ = l_Lean_MessageData_ofName(v_fst_2785_); +v___x_2802_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2802_, 0, v___x_2800_); +lean_ctor_set(v___x_2802_, 1, v___x_2801_); +v___x_2803_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_2804_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2804_, 0, v___x_2802_); +lean_ctor_set(v___x_2804_, 1, v___x_2803_); +v___x_2805_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2762_, v___x_2804_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2805_) == 0) +{ +lean_object* v_a_2806_; lean_object* v___x_2807_; +v_a_2806_ = lean_ctor_get(v___x_2805_, 0); +lean_inc(v_a_2806_); +lean_dec_ref(v___x_2805_); +lean_inc_ref(v_expectedType_2716_); +lean_inc(v_val_2715_); +v___x_2807_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(v_val_2715_, v_fst_2785_, v_expectedType_2716_, v___f_2763_, v___f_2777_, v___x_2761_, v_cls_2762_, v_snd_2786_, v___x_2752_, v_a_2806_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2807_; +goto v___jp_2729_; } else { -lean_object* v_reuseFailAlloc_2876_; -v_reuseFailAlloc_2876_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2876_, 0, v___x_2863_); -lean_ctor_set(v_reuseFailAlloc_2876_, 1, v___x_2864_); -v___x_2866_ = v_reuseFailAlloc_2876_; -goto v_reusejp_2865_; -} -v_reusejp_2865_: -{ -lean_object* v___x_2867_; lean_object* v___x_2868_; lean_object* v___x_2869_; lean_object* v___x_2870_; lean_object* v___x_2871_; lean_object* v___x_2872_; lean_object* v___x_2873_; -v___x_2867_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6); -v___x_2868_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2868_, 0, v___x_2866_); -lean_ctor_set(v___x_2868_, 1, v___x_2867_); -lean_inc(v_fst_2853_); -v___x_2869_ = l_Lean_MessageData_ofName(v_fst_2853_); -v___x_2870_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2870_, 0, v___x_2868_); -lean_ctor_set(v___x_2870_, 1, v___x_2869_); -v___x_2871_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_2872_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2872_, 0, v___x_2870_); -lean_ctor_set(v___x_2872_, 1, v___x_2871_); -v___x_2873_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2830_, v___x_2872_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2873_) == 0) -{ -lean_object* v_a_2874_; lean_object* v___x_2875_; -v_a_2874_ = lean_ctor_get(v___x_2873_, 0); -lean_inc(v_a_2874_); -lean_dec_ref(v___x_2873_); -lean_inc_ref(v_expectedType_2784_); -lean_inc(v_val_2783_); -v___x_2875_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(v_val_2783_, v_fst_2853_, v_expectedType_2784_, v___f_2831_, v___f_2845_, v___x_2829_, v_cls_2830_, v_snd_2854_, v___x_2820_, v_a_2874_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2875_; -goto v___jp_2797_; -} -else -{ -lean_dec(v_snd_2854_); -lean_dec(v_fst_2853_); -lean_dec_ref(v___f_2845_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -return v___x_2873_; -} -} -} -} -else -{ -lean_object* v_a_2877_; lean_object* v___x_2879_; uint8_t v_isShared_2880_; uint8_t v_isSharedCheck_2884_; -lean_del_object(v___x_2856_); -lean_dec(v_snd_2854_); -lean_dec(v_fst_2853_); -lean_dec_ref(v___f_2845_); -lean_dec(v_userName_2823_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2877_ = lean_ctor_get(v___x_2859_, 0); -v_isSharedCheck_2884_ = !lean_is_exclusive(v___x_2859_); -if (v_isSharedCheck_2884_ == 0) -{ -v___x_2879_ = v___x_2859_; -v_isShared_2880_ = v_isSharedCheck_2884_; -goto v_resetjp_2878_; -} -else -{ -lean_inc(v_a_2877_); -lean_dec(v___x_2859_); -v___x_2879_ = lean_box(0); -v_isShared_2880_ = v_isSharedCheck_2884_; -goto v_resetjp_2878_; -} -v_resetjp_2878_: -{ -lean_object* v___x_2882_; -if (v_isShared_2880_ == 0) -{ -v___x_2882_ = v___x_2879_; -goto v_reusejp_2881_; -} -else -{ -lean_object* v_reuseFailAlloc_2883_; -v_reuseFailAlloc_2883_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2883_, 0, v_a_2877_); -v___x_2882_ = v_reuseFailAlloc_2883_; -goto v_reusejp_2881_; -} -v_reusejp_2881_: -{ -return v___x_2882_; -} -} -} -} -} -else -{ -lean_del_object(v___x_2856_); -lean_dec(v_snd_2854_); -lean_dec(v_fst_2853_); -lean_dec_ref(v___f_2845_); -lean_dec(v_userName_2823_); -goto v___jp_2851_; -} -} -} -else -{ -lean_object* v_a_2886_; lean_object* v___x_2888_; uint8_t v_isShared_2889_; uint8_t v_isSharedCheck_2893_; -lean_dec_ref(v___f_2845_); -lean_dec(v_a_2826_); -lean_dec(v_userName_2823_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2886_ = lean_ctor_get(v___x_2849_, 0); -v_isSharedCheck_2893_ = !lean_is_exclusive(v___x_2849_); -if (v_isSharedCheck_2893_ == 0) -{ -v___x_2888_ = v___x_2849_; -v_isShared_2889_ = v_isSharedCheck_2893_; -goto v_resetjp_2887_; -} -else -{ -lean_inc(v_a_2886_); -lean_dec(v___x_2849_); -v___x_2888_ = lean_box(0); -v_isShared_2889_ = v_isSharedCheck_2893_; -goto v_resetjp_2887_; -} -v_resetjp_2887_: -{ -lean_object* v___x_2891_; -if (v_isShared_2889_ == 0) -{ -v___x_2891_ = v___x_2888_; -goto v_reusejp_2890_; -} -else -{ -lean_object* v_reuseFailAlloc_2892_; -v_reuseFailAlloc_2892_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2892_, 0, v_a_2886_); -v___x_2891_ = v_reuseFailAlloc_2892_; -goto v_reusejp_2890_; -} -v_reusejp_2890_: -{ -return v___x_2891_; -} -} -} -} -} -else -{ -lean_object* v_options_2894_; lean_object* v_a_2896_; lean_object* v___y_2899_; uint8_t v___y_2900_; lean_object* v_a_2905_; lean_object* v___y_2909_; lean_object* v___x_2913_; uint8_t v___x_2914_; -lean_dec_ref(v_a_2835_); -lean_dec(v_userName_2823_); -v_options_2894_ = lean_ctor_get(v___y_2789_, 2); -v___x_2913_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_2914_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2894_, v___x_2913_); -if (v___x_2914_ == 0) -{ -lean_object* v___x_2915_; -lean_del_object(v___x_2837_); -lean_inc(v___x_2832_); -v___x_2915_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_2832_, v_a_2826_, v_compile_2779_, v_logCompileErrors_2780_, v_isMeta_2782_, v___x_2820_, v___x_2829_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2915_; -goto v___jp_2797_; -} -else -{ -lean_object* v___x_2916_; lean_object* v___x_2917_; -v___x_2916_ = lean_box(0); -lean_inc(v_a_2826_); -v___x_2917_ = l_Lean_Meta_trySynthInstance(v_a_2826_, v___x_2916_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2917_) == 0) -{ -lean_object* v_a_2918_; -v_a_2918_ = lean_ctor_get(v___x_2917_, 0); -lean_inc(v_a_2918_); -lean_dec_ref(v___x_2917_); -if (lean_obj_tag(v_a_2918_) == 1) -{ -lean_object* v_a_2919_; lean_object* v___x_2920_; -v_a_2919_ = lean_ctor_get(v_a_2918_, 0); -lean_inc(v_a_2919_); -lean_dec_ref(v_a_2918_); -v___x_2920_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_2830_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2920_) == 0) -{ -lean_object* v_a_2921_; uint8_t v___x_2922_; -v_a_2921_ = lean_ctor_get(v___x_2920_, 0); -lean_inc(v_a_2921_); -lean_dec_ref(v___x_2920_); -v___x_2922_ = lean_unbox(v_a_2921_); -lean_dec(v_a_2921_); -if (v___x_2922_ == 0) -{ -lean_object* v___x_2923_; -lean_inc(v___x_2820_); -v___x_2923_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_2820_, v_a_2919_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2909_ = v___x_2923_; -goto v___jp_2908_; -} -else -{ -lean_object* v___x_2924_; lean_object* v___x_2925_; lean_object* v___x_2926_; lean_object* v___x_2927_; -v___x_2924_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2); -lean_inc(v_a_2919_); -v___x_2925_ = l_Lean_MessageData_ofExpr(v_a_2919_); -v___x_2926_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2926_, 0, v___x_2924_); -lean_ctor_set(v___x_2926_, 1, v___x_2925_); -v___x_2927_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2830_, v___x_2926_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2927_) == 0) -{ -lean_object* v_a_2928_; lean_object* v___x_2929_; -v_a_2928_ = lean_ctor_get(v___x_2927_, 0); -lean_inc(v_a_2928_); -lean_dec_ref(v___x_2927_); -lean_inc(v___x_2820_); -v___x_2929_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_2820_, v_a_2919_, v_a_2928_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2909_ = v___x_2929_; -goto v___jp_2908_; -} -else -{ -lean_object* v_a_2930_; -lean_dec(v_a_2919_); -v_a_2930_ = lean_ctor_get(v___x_2927_, 0); -lean_inc(v_a_2930_); -lean_dec_ref(v___x_2927_); -v_a_2905_ = v_a_2930_; -goto v___jp_2904_; -} -} -} -else -{ -lean_object* v_a_2931_; -lean_dec(v_a_2919_); -v_a_2931_ = lean_ctor_get(v___x_2920_, 0); -lean_inc(v_a_2931_); -lean_dec_ref(v___x_2920_); -v_a_2905_ = v_a_2931_; -goto v___jp_2904_; -} -} -else -{ -lean_dec(v_a_2918_); -lean_del_object(v___x_2837_); -v_a_2896_ = v___x_2829_; -goto v___jp_2895_; -} -} -else -{ -lean_object* v_a_2932_; -v_a_2932_ = lean_ctor_get(v___x_2917_, 0); -lean_inc(v_a_2932_); -lean_dec_ref(v___x_2917_); -v_a_2905_ = v_a_2932_; -goto v___jp_2904_; -} -} -v___jp_2895_: -{ -lean_object* v___x_2897_; -lean_inc(v___x_2832_); -v___x_2897_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_2832_, v_a_2826_, v_compile_2779_, v_logCompileErrors_2780_, v_isMeta_2782_, v___x_2820_, v___x_2829_, v_a_2896_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2897_; -goto v___jp_2797_; -} -v___jp_2898_: -{ -if (v___y_2900_ == 0) -{ -lean_dec_ref(v___y_2899_); -lean_del_object(v___x_2837_); -v_a_2896_ = v___x_2829_; -goto v___jp_2895_; -} -else -{ -lean_object* v___x_2902_; -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -if (v_isShared_2838_ == 0) -{ -lean_ctor_set_tag(v___x_2837_, 1); -lean_ctor_set(v___x_2837_, 0, v___y_2899_); -v___x_2902_ = v___x_2837_; -goto v_reusejp_2901_; -} -else -{ -lean_object* v_reuseFailAlloc_2903_; -v_reuseFailAlloc_2903_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2903_, 0, v___y_2899_); -v___x_2902_ = v_reuseFailAlloc_2903_; -goto v_reusejp_2901_; -} -v_reusejp_2901_: -{ -return v___x_2902_; -} -} -} -v___jp_2904_: -{ -uint8_t v___x_2906_; -v___x_2906_ = l_Lean_Exception_isInterrupt(v_a_2905_); -if (v___x_2906_ == 0) -{ -uint8_t v___x_2907_; -lean_inc_ref(v_a_2905_); -v___x_2907_ = l_Lean_Exception_isRuntime(v_a_2905_); -v___y_2899_ = v_a_2905_; -v___y_2900_ = v___x_2907_; -goto v___jp_2898_; -} -else -{ -v___y_2899_ = v_a_2905_; -v___y_2900_ = v___x_2906_; -goto v___jp_2898_; -} -} -v___jp_2908_: -{ -if (lean_obj_tag(v___y_2909_) == 0) -{ -lean_object* v_a_2910_; -lean_del_object(v___x_2837_); -v_a_2910_ = lean_ctor_get(v___y_2909_, 0); -lean_inc(v_a_2910_); -lean_dec_ref(v___y_2909_); -if (lean_obj_tag(v_a_2910_) == 0) -{ -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -v_a_2793_ = v___x_2829_; -goto v___jp_2792_; -} -else -{ -lean_object* v_a_2911_; -v_a_2911_ = lean_ctor_get(v_a_2910_, 0); -lean_inc(v_a_2911_); -lean_dec_ref(v_a_2910_); -v_a_2896_ = v_a_2911_; -goto v___jp_2895_; -} -} -else -{ -lean_object* v_a_2912_; -v_a_2912_ = lean_ctor_get(v___y_2909_, 0); -lean_inc(v_a_2912_); -lean_dec_ref(v___y_2909_); -v_a_2905_ = v_a_2912_; -goto v___jp_2904_; -} -} -} -} -} -else -{ -lean_object* v_a_2934_; lean_object* v___x_2936_; uint8_t v_isShared_2937_; uint8_t v_isSharedCheck_2941_; -lean_dec(v_a_2826_); -lean_dec(v_userName_2823_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2934_ = lean_ctor_get(v___x_2834_, 0); -v_isSharedCheck_2941_ = !lean_is_exclusive(v___x_2834_); -if (v_isSharedCheck_2941_ == 0) -{ -v___x_2936_ = v___x_2834_; -v_isShared_2937_ = v_isSharedCheck_2941_; -goto v_resetjp_2935_; -} -else -{ -lean_inc(v_a_2934_); -lean_dec(v___x_2834_); -v___x_2936_ = lean_box(0); -v_isShared_2937_ = v_isSharedCheck_2941_; -goto v_resetjp_2935_; -} -v_resetjp_2935_: -{ -lean_object* v___x_2939_; -if (v_isShared_2937_ == 0) -{ -v___x_2939_ = v___x_2936_; -goto v_reusejp_2938_; -} -else -{ -lean_object* v_reuseFailAlloc_2940_; -v_reuseFailAlloc_2940_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2940_, 0, v_a_2934_); -v___x_2939_ = v_reuseFailAlloc_2940_; -goto v_reusejp_2938_; -} -v_reusejp_2938_: -{ -return v___x_2939_; -} -} -} -} -else -{ -lean_object* v___x_2942_; -lean_dec(v_userName_2823_); -lean_inc(v___y_2790_); -lean_inc_ref(v___y_2789_); -lean_inc(v___y_2788_); -lean_inc_ref(v___y_2787_); -lean_inc(v___x_2832_); -v___x_2942_ = lean_infer_type(v___x_2832_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2942_) == 0) -{ -lean_object* v_a_2943_; lean_object* v___x_2944_; -v_a_2943_ = lean_ctor_get(v___x_2942_, 0); -lean_inc_n(v_a_2943_, 2); -lean_dec_ref(v___x_2942_); -lean_inc(v_a_2826_); -v___x_2944_ = l_Lean_Meta_isExprDefEq(v_a_2826_, v_a_2943_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2944_) == 0) -{ -lean_object* v_a_2945_; lean_object* v___f_2946_; uint8_t v___x_2947_; -v_a_2945_ = lean_ctor_get(v___x_2944_, 0); -lean_inc(v_a_2945_); -lean_dec_ref(v___x_2944_); -v___f_2946_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7)); -v___x_2947_ = lean_unbox(v_a_2945_); -lean_dec(v_a_2945_); -if (v___x_2947_ == 0) -{ -lean_object* v___x_2948_; -v___x_2948_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_2830_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2948_) == 0) -{ -lean_object* v_a_2949_; uint8_t v___x_2950_; -v_a_2949_ = lean_ctor_get(v___x_2948_, 0); -lean_inc(v_a_2949_); -lean_dec_ref(v___x_2948_); -v___x_2950_ = lean_unbox(v_a_2949_); -lean_dec(v_a_2949_); -if (v___x_2950_ == 0) -{ -lean_object* v___x_2951_; -lean_dec(v_a_2943_); -lean_inc(v___x_2832_); -v___x_2951_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_2826_, v___x_2832_, v___x_2817_, v___x_2820_, v___f_2946_, v___x_2829_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2951_; -goto v___jp_2797_; -} -else -{ -lean_object* v___x_2952_; lean_object* v___x_2953_; lean_object* v___x_2954_; lean_object* v___x_2955_; lean_object* v___x_2956_; lean_object* v___x_2957_; lean_object* v___x_2958_; lean_object* v___x_2959_; lean_object* v___x_2960_; lean_object* v___x_2961_; lean_object* v___x_2962_; lean_object* v___x_2963_; lean_object* v___x_2964_; lean_object* v___x_2965_; lean_object* v___x_2966_; lean_object* v___x_2967_; lean_object* v___x_2968_; lean_object* v___x_2969_; -v___x_2952_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9); -lean_inc(v_a_2785_); -v___x_2953_ = l_Nat_reprFast(v_a_2785_); -v___x_2954_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_2954_, 0, v___x_2953_); -v___x_2955_ = l_Lean_MessageData_ofFormat(v___x_2954_); -v___x_2956_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2956_, 0, v___x_2952_); -lean_ctor_set(v___x_2956_, 1, v___x_2955_); -v___x_2957_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11); -v___x_2958_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2958_, 0, v___x_2956_); -lean_ctor_set(v___x_2958_, 1, v___x_2957_); -lean_inc(v_a_2826_); -v___x_2959_ = l_Lean_MessageData_ofExpr(v_a_2826_); -v___x_2960_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2960_, 0, v___x_2958_); -lean_ctor_set(v___x_2960_, 1, v___x_2959_); -v___x_2961_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13); -v___x_2962_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2962_, 0, v___x_2960_); -lean_ctor_set(v___x_2962_, 1, v___x_2961_); -v___x_2963_ = l_Lean_MessageData_ofExpr(v_a_2943_); -v___x_2964_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2964_, 0, v___x_2962_); -lean_ctor_set(v___x_2964_, 1, v___x_2963_); -v___x_2965_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15); -v___x_2966_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2966_, 0, v___x_2964_); -lean_ctor_set(v___x_2966_, 1, v___x_2965_); -lean_inc(v___x_2832_); -v___x_2967_ = l_Lean_MessageData_ofExpr(v___x_2832_); -v___x_2968_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_2968_, 0, v___x_2966_); -lean_ctor_set(v___x_2968_, 1, v___x_2967_); -v___x_2969_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_2830_, v___x_2968_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -if (lean_obj_tag(v___x_2969_) == 0) -{ -lean_object* v_a_2970_; lean_object* v___x_2971_; -v_a_2970_ = lean_ctor_get(v___x_2969_, 0); -lean_inc(v_a_2970_); -lean_dec_ref(v___x_2969_); -lean_inc(v___x_2832_); -v___x_2971_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_2826_, v___x_2832_, v___x_2817_, v___x_2820_, v___f_2946_, v_a_2970_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2971_; -goto v___jp_2797_; -} -else -{ -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -return v___x_2969_; -} -} -} -else -{ -lean_object* v_a_2972_; lean_object* v___x_2974_; uint8_t v_isShared_2975_; uint8_t v_isSharedCheck_2979_; -lean_dec(v_a_2943_); -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2972_ = lean_ctor_get(v___x_2948_, 0); -v_isSharedCheck_2979_ = !lean_is_exclusive(v___x_2948_); -if (v_isSharedCheck_2979_ == 0) -{ -v___x_2974_ = v___x_2948_; -v_isShared_2975_ = v_isSharedCheck_2979_; -goto v_resetjp_2973_; -} -else -{ -lean_inc(v_a_2972_); -lean_dec(v___x_2948_); -v___x_2974_ = lean_box(0); -v_isShared_2975_ = v_isSharedCheck_2979_; -goto v_resetjp_2973_; -} -v_resetjp_2973_: -{ -lean_object* v___x_2977_; -if (v_isShared_2975_ == 0) -{ -v___x_2977_ = v___x_2974_; -goto v_reusejp_2976_; -} -else -{ -lean_object* v_reuseFailAlloc_2978_; -v_reuseFailAlloc_2978_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2978_, 0, v_a_2972_); -v___x_2977_ = v_reuseFailAlloc_2978_; -goto v_reusejp_2976_; -} -v_reusejp_2976_: -{ -return v___x_2977_; -} -} -} -} -else -{ -lean_object* v___x_2980_; -lean_dec(v_a_2943_); -lean_dec(v_a_2826_); -lean_inc(v___x_2832_); -v___x_2980_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_2820_, v___x_2832_, v___y_2788_); -if (lean_obj_tag(v___x_2980_) == 0) -{ -lean_object* v_a_2981_; lean_object* v___x_2982_; -v_a_2981_ = lean_ctor_get(v___x_2980_, 0); -lean_inc(v_a_2981_); -lean_dec_ref(v___x_2980_); -v___x_2982_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(v___x_2829_, v_a_2981_, v___y_2787_, v___y_2788_, v___y_2789_, v___y_2790_); -v___y_2798_ = v___x_2982_; -goto v___jp_2797_; -} -else -{ -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -return v___x_2980_; -} -} -} -else -{ -lean_object* v_a_2983_; lean_object* v___x_2985_; uint8_t v_isShared_2986_; uint8_t v_isSharedCheck_2990_; -lean_dec(v_a_2943_); -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2983_ = lean_ctor_get(v___x_2944_, 0); -v_isSharedCheck_2990_ = !lean_is_exclusive(v___x_2944_); -if (v_isSharedCheck_2990_ == 0) -{ -v___x_2985_ = v___x_2944_; -v_isShared_2986_ = v_isSharedCheck_2990_; -goto v_resetjp_2984_; -} -else -{ -lean_inc(v_a_2983_); -lean_dec(v___x_2944_); -v___x_2985_ = lean_box(0); -v_isShared_2986_ = v_isSharedCheck_2990_; -goto v_resetjp_2984_; -} -v_resetjp_2984_: -{ -lean_object* v___x_2988_; -if (v_isShared_2986_ == 0) -{ -v___x_2988_ = v___x_2985_; -goto v_reusejp_2987_; -} -else -{ -lean_object* v_reuseFailAlloc_2989_; -v_reuseFailAlloc_2989_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2989_, 0, v_a_2983_); -v___x_2988_ = v_reuseFailAlloc_2989_; -goto v_reusejp_2987_; -} -v_reusejp_2987_: -{ -return v___x_2988_; -} -} -} -} -else -{ -lean_object* v_a_2991_; lean_object* v___x_2993_; uint8_t v_isShared_2994_; uint8_t v_isSharedCheck_2998_; -lean_dec(v_a_2826_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2991_ = lean_ctor_get(v___x_2942_, 0); -v_isSharedCheck_2998_ = !lean_is_exclusive(v___x_2942_); -if (v_isSharedCheck_2998_ == 0) -{ -v___x_2993_ = v___x_2942_; -v_isShared_2994_ = v_isSharedCheck_2998_; -goto v_resetjp_2992_; -} -else -{ -lean_inc(v_a_2991_); -lean_dec(v___x_2942_); -v___x_2993_ = lean_box(0); -v_isShared_2994_ = v_isSharedCheck_2998_; -goto v_resetjp_2992_; -} -v_resetjp_2992_: -{ -lean_object* v___x_2996_; -if (v_isShared_2994_ == 0) -{ -v___x_2996_ = v___x_2993_; -goto v_reusejp_2995_; -} -else -{ -lean_object* v_reuseFailAlloc_2997_; -v_reuseFailAlloc_2997_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2997_, 0, v_a_2991_); -v___x_2996_ = v_reuseFailAlloc_2997_; -goto v_reusejp_2995_; -} -v_reusejp_2995_: -{ -return v___x_2996_; -} -} -} -} -} -else -{ -lean_object* v_a_2999_; lean_object* v___x_3001_; uint8_t v_isShared_3002_; uint8_t v_isSharedCheck_3006_; -lean_dec(v_a_2826_); -lean_dec(v_userName_2823_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2999_ = lean_ctor_get(v___x_2827_, 0); -v_isSharedCheck_3006_ = !lean_is_exclusive(v___x_2827_); -if (v_isSharedCheck_3006_ == 0) -{ -v___x_3001_ = v___x_2827_; -v_isShared_3002_ = v_isSharedCheck_3006_; -goto v_resetjp_3000_; -} -else -{ -lean_inc(v_a_2999_); -lean_dec(v___x_2827_); -v___x_3001_ = lean_box(0); -v_isShared_3002_ = v_isSharedCheck_3006_; -goto v_resetjp_3000_; -} -v_resetjp_3000_: -{ -lean_object* v___x_3004_; -if (v_isShared_3002_ == 0) -{ -v___x_3004_ = v___x_3001_; -goto v_reusejp_3003_; -} -else -{ -lean_object* v_reuseFailAlloc_3005_; -v_reuseFailAlloc_3005_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3005_, 0, v_a_2999_); -v___x_3004_ = v_reuseFailAlloc_3005_; -goto v_reusejp_3003_; -} -v_reusejp_3003_: -{ -return v___x_3004_; -} -} -} -} -else -{ -lean_object* v_a_3007_; lean_object* v___x_3009_; uint8_t v_isShared_3010_; uint8_t v_isSharedCheck_3014_; -lean_dec(v_userName_2823_); -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_3007_ = lean_ctor_get(v___x_2825_, 0); -v_isSharedCheck_3014_ = !lean_is_exclusive(v___x_2825_); -if (v_isSharedCheck_3014_ == 0) -{ -v___x_3009_ = v___x_2825_; -v_isShared_3010_ = v_isSharedCheck_3014_; -goto v_resetjp_3008_; -} -else -{ -lean_inc(v_a_3007_); -lean_dec(v___x_2825_); -v___x_3009_ = lean_box(0); -v_isShared_3010_ = v_isSharedCheck_3014_; -goto v_resetjp_3008_; -} -v_resetjp_3008_: -{ -lean_object* v___x_3012_; -if (v_isShared_3010_ == 0) -{ -v___x_3012_ = v___x_3009_; -goto v_reusejp_3011_; -} -else -{ -lean_object* v_reuseFailAlloc_3013_; -v_reuseFailAlloc_3013_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3013_, 0, v_a_3007_); -v___x_3012_ = v_reuseFailAlloc_3013_; -goto v_reusejp_3011_; -} -v_reusejp_3011_: -{ -return v___x_3012_; -} -} -} -} -else -{ -lean_object* v_a_3015_; lean_object* v___x_3017_; uint8_t v_isShared_3018_; uint8_t v_isSharedCheck_3022_; -lean_dec(v___x_2820_); -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_3015_ = lean_ctor_get(v___x_2821_, 0); -v_isSharedCheck_3022_ = !lean_is_exclusive(v___x_2821_); -if (v_isSharedCheck_3022_ == 0) -{ -v___x_3017_ = v___x_2821_; -v_isShared_3018_ = v_isSharedCheck_3022_; -goto v_resetjp_3016_; -} -else -{ -lean_inc(v_a_3015_); -lean_dec(v___x_2821_); -v___x_3017_ = lean_box(0); -v_isShared_3018_ = v_isSharedCheck_3022_; -goto v_resetjp_3016_; -} -v_resetjp_3016_: -{ -lean_object* v___x_3020_; -if (v_isShared_3018_ == 0) -{ -v___x_3020_ = v___x_3017_; -goto v_reusejp_3019_; -} -else -{ -lean_object* v_reuseFailAlloc_3021_; -v_reuseFailAlloc_3021_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3021_, 0, v_a_3015_); -v___x_3020_ = v_reuseFailAlloc_3021_; -goto v_reusejp_3019_; -} -v_reusejp_3019_: -{ -return v___x_3020_; -} -} -} -} -v___jp_2792_: -{ -lean_object* v___x_2794_; lean_object* v___x_2795_; -v___x_2794_ = lean_unsigned_to_nat(1u); -v___x_2795_ = lean_nat_add(v_a_2785_, v___x_2794_); -lean_dec(v_a_2785_); -v_a_2785_ = v___x_2795_; -v_b_2786_ = v_a_2793_; -goto _start; -} -v___jp_2797_: -{ -if (lean_obj_tag(v___y_2798_) == 0) -{ -lean_object* v_a_2799_; lean_object* v___x_2801_; uint8_t v_isShared_2802_; uint8_t v_isSharedCheck_2808_; -v_a_2799_ = lean_ctor_get(v___y_2798_, 0); -v_isSharedCheck_2808_ = !lean_is_exclusive(v___y_2798_); -if (v_isSharedCheck_2808_ == 0) -{ -v___x_2801_ = v___y_2798_; -v_isShared_2802_ = v_isSharedCheck_2808_; -goto v_resetjp_2800_; -} -else -{ -lean_inc(v_a_2799_); -lean_dec(v___y_2798_); -v___x_2801_ = lean_box(0); -v_isShared_2802_ = v_isSharedCheck_2808_; -goto v_resetjp_2800_; -} -v_resetjp_2800_: -{ -if (lean_obj_tag(v_a_2799_) == 0) -{ -lean_object* v_a_2803_; lean_object* v___x_2805_; -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2803_ = lean_ctor_get(v_a_2799_, 0); -lean_inc(v_a_2803_); -lean_dec_ref(v_a_2799_); -if (v_isShared_2802_ == 0) -{ -lean_ctor_set(v___x_2801_, 0, v_a_2803_); -v___x_2805_ = v___x_2801_; -goto v_reusejp_2804_; -} -else -{ -lean_object* v_reuseFailAlloc_2806_; -v_reuseFailAlloc_2806_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2806_, 0, v_a_2803_); -v___x_2805_ = v_reuseFailAlloc_2806_; -goto v_reusejp_2804_; -} -v_reusejp_2804_: -{ +lean_dec(v_snd_2786_); +lean_dec(v_fst_2785_); +lean_dec_ref(v___f_2777_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); return v___x_2805_; } } -else -{ -lean_object* v_a_2807_; -lean_del_object(v___x_2801_); -v_a_2807_ = lean_ctor_get(v_a_2799_, 0); -lean_inc(v_a_2807_); -lean_dec_ref(v_a_2799_); -v_a_2793_ = v_a_2807_; -goto v___jp_2792_; -} } } else { lean_object* v_a_2809_; lean_object* v___x_2811_; uint8_t v_isShared_2812_; uint8_t v_isSharedCheck_2816_; -lean_dec(v_a_2785_); -lean_dec_ref(v_expectedType_2784_); -lean_dec(v_val_2783_); -v_a_2809_ = lean_ctor_get(v___y_2798_, 0); -v_isSharedCheck_2816_ = !lean_is_exclusive(v___y_2798_); +lean_del_object(v___x_2788_); +lean_dec(v_snd_2786_); +lean_dec(v_fst_2785_); +lean_dec_ref(v___f_2777_); +lean_dec(v_userName_2755_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2809_ = lean_ctor_get(v___x_2791_, 0); +v_isSharedCheck_2816_ = !lean_is_exclusive(v___x_2791_); if (v_isSharedCheck_2816_ == 0) { -v___x_2811_ = v___y_2798_; +v___x_2811_ = v___x_2791_; v_isShared_2812_ = v_isSharedCheck_2816_; goto v_resetjp_2810_; } else { lean_inc(v_a_2809_); -lean_dec(v___y_2798_); +lean_dec(v___x_2791_); v___x_2811_ = lean_box(0); v_isShared_2812_ = v_isSharedCheck_2816_; goto v_resetjp_2810_; @@ -10229,544 +9191,1411 @@ return v___x_2814_; } } } +else +{ +lean_del_object(v___x_2788_); +lean_dec(v_snd_2786_); +lean_dec(v_fst_2785_); +lean_dec_ref(v___f_2777_); +lean_dec(v_userName_2755_); +goto v___jp_2783_; } -static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3(void){ +} +} +else +{ +lean_object* v_a_2818_; lean_object* v___x_2820_; uint8_t v_isShared_2821_; uint8_t v_isSharedCheck_2825_; +lean_dec_ref(v___f_2777_); +lean_dec(v_a_2758_); +lean_dec(v_userName_2755_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2818_ = lean_ctor_get(v___x_2781_, 0); +v_isSharedCheck_2825_ = !lean_is_exclusive(v___x_2781_); +if (v_isSharedCheck_2825_ == 0) +{ +v___x_2820_ = v___x_2781_; +v_isShared_2821_ = v_isSharedCheck_2825_; +goto v_resetjp_2819_; +} +else +{ +lean_inc(v_a_2818_); +lean_dec(v___x_2781_); +v___x_2820_ = lean_box(0); +v_isShared_2821_ = v_isSharedCheck_2825_; +goto v_resetjp_2819_; +} +v_resetjp_2819_: +{ +lean_object* v___x_2823_; +if (v_isShared_2821_ == 0) +{ +v___x_2823_ = v___x_2820_; +goto v_reusejp_2822_; +} +else +{ +lean_object* v_reuseFailAlloc_2824_; +v_reuseFailAlloc_2824_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2824_, 0, v_a_2818_); +v___x_2823_ = v_reuseFailAlloc_2824_; +goto v_reusejp_2822_; +} +v_reusejp_2822_: +{ +return v___x_2823_; +} +} +} +} +} +else +{ +lean_object* v_options_2826_; lean_object* v_a_2828_; lean_object* v___y_2831_; uint8_t v___y_2832_; lean_object* v_a_2837_; lean_object* v___y_2841_; lean_object* v___x_2845_; uint8_t v___x_2846_; +lean_dec_ref(v_a_2767_); +lean_dec(v_userName_2755_); +v_options_2826_ = lean_ctor_get(v___y_2721_, 2); +v___x_2845_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_2846_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_2826_, v___x_2845_); +if (v___x_2846_ == 0) +{ +lean_object* v___x_2847_; +lean_del_object(v___x_2769_); +lean_inc(v___x_2764_); +v___x_2847_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_2764_, v_a_2758_, v_compile_2711_, v_logCompileErrors_2712_, v_isMeta_2714_, v___x_2752_, v___x_2761_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2847_; +goto v___jp_2729_; +} +else +{ +lean_object* v___x_2848_; lean_object* v___x_2849_; +v___x_2848_ = lean_box(0); +lean_inc(v_a_2758_); +v___x_2849_ = l_Lean_Meta_trySynthInstance(v_a_2758_, v___x_2848_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2849_) == 0) +{ +lean_object* v_a_2850_; +v_a_2850_ = lean_ctor_get(v___x_2849_, 0); +lean_inc(v_a_2850_); +lean_dec_ref(v___x_2849_); +if (lean_obj_tag(v_a_2850_) == 1) +{ +lean_object* v_a_2851_; lean_object* v___x_2852_; +v_a_2851_ = lean_ctor_get(v_a_2850_, 0); +lean_inc(v_a_2851_); +lean_dec_ref(v_a_2850_); +v___x_2852_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_2762_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2852_) == 0) +{ +lean_object* v_a_2853_; uint8_t v___x_2854_; +v_a_2853_ = lean_ctor_get(v___x_2852_, 0); +lean_inc(v_a_2853_); +lean_dec_ref(v___x_2852_); +v___x_2854_ = lean_unbox(v_a_2853_); +lean_dec(v_a_2853_); +if (v___x_2854_ == 0) +{ +lean_object* v___x_2855_; +lean_inc(v___x_2752_); +v___x_2855_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_2752_, v_a_2851_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2841_ = v___x_2855_; +goto v___jp_2840_; +} +else +{ +lean_object* v___x_2856_; lean_object* v___x_2857_; lean_object* v___x_2858_; lean_object* v___x_2859_; +v___x_2856_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2); +lean_inc(v_a_2851_); +v___x_2857_ = l_Lean_MessageData_ofExpr(v_a_2851_); +v___x_2858_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2858_, 0, v___x_2856_); +lean_ctor_set(v___x_2858_, 1, v___x_2857_); +v___x_2859_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2762_, v___x_2858_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2859_) == 0) +{ +lean_object* v_a_2860_; lean_object* v___x_2861_; +v_a_2860_ = lean_ctor_get(v___x_2859_, 0); +lean_inc(v_a_2860_); +lean_dec_ref(v___x_2859_); +lean_inc(v___x_2752_); +v___x_2861_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_2752_, v_a_2851_, v_a_2860_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2841_ = v___x_2861_; +goto v___jp_2840_; +} +else +{ +lean_object* v_a_2862_; +lean_dec(v_a_2851_); +v_a_2862_ = lean_ctor_get(v___x_2859_, 0); +lean_inc(v_a_2862_); +lean_dec_ref(v___x_2859_); +v_a_2837_ = v_a_2862_; +goto v___jp_2836_; +} +} +} +else +{ +lean_object* v_a_2863_; +lean_dec(v_a_2851_); +v_a_2863_ = lean_ctor_get(v___x_2852_, 0); +lean_inc(v_a_2863_); +lean_dec_ref(v___x_2852_); +v_a_2837_ = v_a_2863_; +goto v___jp_2836_; +} +} +else +{ +lean_dec(v_a_2850_); +lean_del_object(v___x_2769_); +v_a_2828_ = v___x_2761_; +goto v___jp_2827_; +} +} +else +{ +lean_object* v_a_2864_; +v_a_2864_ = lean_ctor_get(v___x_2849_, 0); +lean_inc(v_a_2864_); +lean_dec_ref(v___x_2849_); +v_a_2837_ = v_a_2864_; +goto v___jp_2836_; +} +} +v___jp_2827_: +{ +lean_object* v___x_2829_; +lean_inc(v___x_2764_); +v___x_2829_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_2764_, v_a_2758_, v_compile_2711_, v_logCompileErrors_2712_, v_isMeta_2714_, v___x_2752_, v___x_2761_, v_a_2828_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2829_; +goto v___jp_2729_; +} +v___jp_2830_: +{ +if (v___y_2832_ == 0) +{ +lean_dec_ref(v___y_2831_); +lean_del_object(v___x_2769_); +v_a_2828_ = v___x_2761_; +goto v___jp_2827_; +} +else +{ +lean_object* v___x_2834_; +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +if (v_isShared_2770_ == 0) +{ +lean_ctor_set_tag(v___x_2769_, 1); +lean_ctor_set(v___x_2769_, 0, v___y_2831_); +v___x_2834_ = v___x_2769_; +goto v_reusejp_2833_; +} +else +{ +lean_object* v_reuseFailAlloc_2835_; +v_reuseFailAlloc_2835_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2835_, 0, v___y_2831_); +v___x_2834_ = v_reuseFailAlloc_2835_; +goto v_reusejp_2833_; +} +v_reusejp_2833_: +{ +return v___x_2834_; +} +} +} +v___jp_2836_: +{ +uint8_t v___x_2838_; +v___x_2838_ = l_Lean_Exception_isInterrupt(v_a_2837_); +if (v___x_2838_ == 0) +{ +uint8_t v___x_2839_; +lean_inc_ref(v_a_2837_); +v___x_2839_ = l_Lean_Exception_isRuntime(v_a_2837_); +v___y_2831_ = v_a_2837_; +v___y_2832_ = v___x_2839_; +goto v___jp_2830_; +} +else +{ +v___y_2831_ = v_a_2837_; +v___y_2832_ = v___x_2838_; +goto v___jp_2830_; +} +} +v___jp_2840_: +{ +if (lean_obj_tag(v___y_2841_) == 0) +{ +lean_object* v_a_2842_; +lean_del_object(v___x_2769_); +v_a_2842_ = lean_ctor_get(v___y_2841_, 0); +lean_inc(v_a_2842_); +lean_dec_ref(v___y_2841_); +if (lean_obj_tag(v_a_2842_) == 0) +{ +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +v_a_2725_ = v___x_2761_; +goto v___jp_2724_; +} +else +{ +lean_object* v_a_2843_; +v_a_2843_ = lean_ctor_get(v_a_2842_, 0); +lean_inc(v_a_2843_); +lean_dec_ref(v_a_2842_); +v_a_2828_ = v_a_2843_; +goto v___jp_2827_; +} +} +else +{ +lean_object* v_a_2844_; +v_a_2844_ = lean_ctor_get(v___y_2841_, 0); +lean_inc(v_a_2844_); +lean_dec_ref(v___y_2841_); +v_a_2837_ = v_a_2844_; +goto v___jp_2836_; +} +} +} +} +} +else +{ +lean_object* v_a_2866_; lean_object* v___x_2868_; uint8_t v_isShared_2869_; uint8_t v_isSharedCheck_2873_; +lean_dec(v_a_2758_); +lean_dec(v_userName_2755_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2866_ = lean_ctor_get(v___x_2766_, 0); +v_isSharedCheck_2873_ = !lean_is_exclusive(v___x_2766_); +if (v_isSharedCheck_2873_ == 0) +{ +v___x_2868_ = v___x_2766_; +v_isShared_2869_ = v_isSharedCheck_2873_; +goto v_resetjp_2867_; +} +else +{ +lean_inc(v_a_2866_); +lean_dec(v___x_2766_); +v___x_2868_ = lean_box(0); +v_isShared_2869_ = v_isSharedCheck_2873_; +goto v_resetjp_2867_; +} +v_resetjp_2867_: +{ +lean_object* v___x_2871_; +if (v_isShared_2869_ == 0) +{ +v___x_2871_ = v___x_2868_; +goto v_reusejp_2870_; +} +else +{ +lean_object* v_reuseFailAlloc_2872_; +v_reuseFailAlloc_2872_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2872_, 0, v_a_2866_); +v___x_2871_ = v_reuseFailAlloc_2872_; +goto v_reusejp_2870_; +} +v_reusejp_2870_: +{ +return v___x_2871_; +} +} +} +} +else +{ +lean_object* v___x_2874_; +lean_dec(v_userName_2755_); +lean_inc(v___y_2722_); +lean_inc_ref(v___y_2721_); +lean_inc(v___y_2720_); +lean_inc_ref(v___y_2719_); +lean_inc(v___x_2764_); +v___x_2874_ = lean_infer_type(v___x_2764_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2874_) == 0) +{ +lean_object* v_a_2875_; lean_object* v___x_2876_; +v_a_2875_ = lean_ctor_get(v___x_2874_, 0); +lean_inc_n(v_a_2875_, 2); +lean_dec_ref(v___x_2874_); +lean_inc(v_a_2758_); +v___x_2876_ = l_Lean_Meta_isExprDefEq(v_a_2758_, v_a_2875_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2876_) == 0) +{ +lean_object* v_a_2877_; lean_object* v___f_2878_; uint8_t v___x_2879_; +v_a_2877_ = lean_ctor_get(v___x_2876_, 0); +lean_inc(v_a_2877_); +lean_dec_ref(v___x_2876_); +v___f_2878_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7)); +v___x_2879_ = lean_unbox(v_a_2877_); +lean_dec(v_a_2877_); +if (v___x_2879_ == 0) +{ +lean_object* v___x_2880_; +v___x_2880_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_2762_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2880_) == 0) +{ +lean_object* v_a_2881_; uint8_t v___x_2882_; +v_a_2881_ = lean_ctor_get(v___x_2880_, 0); +lean_inc(v_a_2881_); +lean_dec_ref(v___x_2880_); +v___x_2882_ = lean_unbox(v_a_2881_); +lean_dec(v_a_2881_); +if (v___x_2882_ == 0) +{ +lean_object* v___x_2883_; +lean_dec(v_a_2875_); +lean_inc(v___x_2764_); +v___x_2883_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_2758_, v___x_2764_, v___x_2749_, v___x_2752_, v___f_2878_, v___x_2761_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2883_; +goto v___jp_2729_; +} +else +{ +lean_object* v___x_2884_; lean_object* v___x_2885_; lean_object* v___x_2886_; lean_object* v___x_2887_; lean_object* v___x_2888_; lean_object* v___x_2889_; lean_object* v___x_2890_; lean_object* v___x_2891_; lean_object* v___x_2892_; lean_object* v___x_2893_; lean_object* v___x_2894_; lean_object* v___x_2895_; lean_object* v___x_2896_; lean_object* v___x_2897_; lean_object* v___x_2898_; lean_object* v___x_2899_; lean_object* v___x_2900_; lean_object* v___x_2901_; +v___x_2884_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9); +lean_inc(v_a_2717_); +v___x_2885_ = l_Nat_reprFast(v_a_2717_); +v___x_2886_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_2886_, 0, v___x_2885_); +v___x_2887_ = l_Lean_MessageData_ofFormat(v___x_2886_); +v___x_2888_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2888_, 0, v___x_2884_); +lean_ctor_set(v___x_2888_, 1, v___x_2887_); +v___x_2889_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11); +v___x_2890_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2890_, 0, v___x_2888_); +lean_ctor_set(v___x_2890_, 1, v___x_2889_); +lean_inc(v_a_2758_); +v___x_2891_ = l_Lean_MessageData_ofExpr(v_a_2758_); +v___x_2892_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2892_, 0, v___x_2890_); +lean_ctor_set(v___x_2892_, 1, v___x_2891_); +v___x_2893_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13); +v___x_2894_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2894_, 0, v___x_2892_); +lean_ctor_set(v___x_2894_, 1, v___x_2893_); +v___x_2895_ = l_Lean_MessageData_ofExpr(v_a_2875_); +v___x_2896_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2896_, 0, v___x_2894_); +lean_ctor_set(v___x_2896_, 1, v___x_2895_); +v___x_2897_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15); +v___x_2898_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2898_, 0, v___x_2896_); +lean_ctor_set(v___x_2898_, 1, v___x_2897_); +lean_inc(v___x_2764_); +v___x_2899_ = l_Lean_MessageData_ofExpr(v___x_2764_); +v___x_2900_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_2900_, 0, v___x_2898_); +lean_ctor_set(v___x_2900_, 1, v___x_2899_); +v___x_2901_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_2762_, v___x_2900_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +if (lean_obj_tag(v___x_2901_) == 0) +{ +lean_object* v_a_2902_; lean_object* v___x_2903_; +v_a_2902_ = lean_ctor_get(v___x_2901_, 0); +lean_inc(v_a_2902_); +lean_dec_ref(v___x_2901_); +lean_inc(v___x_2764_); +v___x_2903_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_2758_, v___x_2764_, v___x_2749_, v___x_2752_, v___f_2878_, v_a_2902_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2903_; +goto v___jp_2729_; +} +else +{ +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +return v___x_2901_; +} +} +} +else +{ +lean_object* v_a_2904_; lean_object* v___x_2906_; uint8_t v_isShared_2907_; uint8_t v_isSharedCheck_2911_; +lean_dec(v_a_2875_); +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2904_ = lean_ctor_get(v___x_2880_, 0); +v_isSharedCheck_2911_ = !lean_is_exclusive(v___x_2880_); +if (v_isSharedCheck_2911_ == 0) +{ +v___x_2906_ = v___x_2880_; +v_isShared_2907_ = v_isSharedCheck_2911_; +goto v_resetjp_2905_; +} +else +{ +lean_inc(v_a_2904_); +lean_dec(v___x_2880_); +v___x_2906_ = lean_box(0); +v_isShared_2907_ = v_isSharedCheck_2911_; +goto v_resetjp_2905_; +} +v_resetjp_2905_: +{ +lean_object* v___x_2909_; +if (v_isShared_2907_ == 0) +{ +v___x_2909_ = v___x_2906_; +goto v_reusejp_2908_; +} +else +{ +lean_object* v_reuseFailAlloc_2910_; +v_reuseFailAlloc_2910_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2910_, 0, v_a_2904_); +v___x_2909_ = v_reuseFailAlloc_2910_; +goto v_reusejp_2908_; +} +v_reusejp_2908_: +{ +return v___x_2909_; +} +} +} +} +else +{ +lean_object* v___x_2912_; +lean_dec(v_a_2875_); +lean_dec(v_a_2758_); +lean_inc(v___x_2764_); +v___x_2912_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_2752_, v___x_2764_, v___y_2720_); +if (lean_obj_tag(v___x_2912_) == 0) +{ +lean_object* v_a_2913_; lean_object* v___x_2914_; +v_a_2913_ = lean_ctor_get(v___x_2912_, 0); +lean_inc(v_a_2913_); +lean_dec_ref(v___x_2912_); +v___x_2914_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(v___x_2761_, v_a_2913_, v___y_2719_, v___y_2720_, v___y_2721_, v___y_2722_); +v___y_2730_ = v___x_2914_; +goto v___jp_2729_; +} +else +{ +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +return v___x_2912_; +} +} +} +else +{ +lean_object* v_a_2915_; lean_object* v___x_2917_; uint8_t v_isShared_2918_; uint8_t v_isSharedCheck_2922_; +lean_dec(v_a_2875_); +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2915_ = lean_ctor_get(v___x_2876_, 0); +v_isSharedCheck_2922_ = !lean_is_exclusive(v___x_2876_); +if (v_isSharedCheck_2922_ == 0) +{ +v___x_2917_ = v___x_2876_; +v_isShared_2918_ = v_isSharedCheck_2922_; +goto v_resetjp_2916_; +} +else +{ +lean_inc(v_a_2915_); +lean_dec(v___x_2876_); +v___x_2917_ = lean_box(0); +v_isShared_2918_ = v_isSharedCheck_2922_; +goto v_resetjp_2916_; +} +v_resetjp_2916_: +{ +lean_object* v___x_2920_; +if (v_isShared_2918_ == 0) +{ +v___x_2920_ = v___x_2917_; +goto v_reusejp_2919_; +} +else +{ +lean_object* v_reuseFailAlloc_2921_; +v_reuseFailAlloc_2921_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2921_, 0, v_a_2915_); +v___x_2920_ = v_reuseFailAlloc_2921_; +goto v_reusejp_2919_; +} +v_reusejp_2919_: +{ +return v___x_2920_; +} +} +} +} +else +{ +lean_object* v_a_2923_; lean_object* v___x_2925_; uint8_t v_isShared_2926_; uint8_t v_isSharedCheck_2930_; +lean_dec(v_a_2758_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2923_ = lean_ctor_get(v___x_2874_, 0); +v_isSharedCheck_2930_ = !lean_is_exclusive(v___x_2874_); +if (v_isSharedCheck_2930_ == 0) +{ +v___x_2925_ = v___x_2874_; +v_isShared_2926_ = v_isSharedCheck_2930_; +goto v_resetjp_2924_; +} +else +{ +lean_inc(v_a_2923_); +lean_dec(v___x_2874_); +v___x_2925_ = lean_box(0); +v_isShared_2926_ = v_isSharedCheck_2930_; +goto v_resetjp_2924_; +} +v_resetjp_2924_: +{ +lean_object* v___x_2928_; +if (v_isShared_2926_ == 0) +{ +v___x_2928_ = v___x_2925_; +goto v_reusejp_2927_; +} +else +{ +lean_object* v_reuseFailAlloc_2929_; +v_reuseFailAlloc_2929_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2929_, 0, v_a_2923_); +v___x_2928_ = v_reuseFailAlloc_2929_; +goto v_reusejp_2927_; +} +v_reusejp_2927_: +{ +return v___x_2928_; +} +} +} +} +} +else +{ +lean_object* v_a_2931_; lean_object* v___x_2933_; uint8_t v_isShared_2934_; uint8_t v_isSharedCheck_2938_; +lean_dec(v_a_2758_); +lean_dec(v_userName_2755_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2931_ = lean_ctor_get(v___x_2759_, 0); +v_isSharedCheck_2938_ = !lean_is_exclusive(v___x_2759_); +if (v_isSharedCheck_2938_ == 0) +{ +v___x_2933_ = v___x_2759_; +v_isShared_2934_ = v_isSharedCheck_2938_; +goto v_resetjp_2932_; +} +else +{ +lean_inc(v_a_2931_); +lean_dec(v___x_2759_); +v___x_2933_ = lean_box(0); +v_isShared_2934_ = v_isSharedCheck_2938_; +goto v_resetjp_2932_; +} +v_resetjp_2932_: +{ +lean_object* v___x_2936_; +if (v_isShared_2934_ == 0) +{ +v___x_2936_ = v___x_2933_; +goto v_reusejp_2935_; +} +else +{ +lean_object* v_reuseFailAlloc_2937_; +v_reuseFailAlloc_2937_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2937_, 0, v_a_2931_); +v___x_2936_ = v_reuseFailAlloc_2937_; +goto v_reusejp_2935_; +} +v_reusejp_2935_: +{ +return v___x_2936_; +} +} +} +} +else +{ +lean_object* v_a_2939_; lean_object* v___x_2941_; uint8_t v_isShared_2942_; uint8_t v_isSharedCheck_2946_; +lean_dec(v_userName_2755_); +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2939_ = lean_ctor_get(v___x_2757_, 0); +v_isSharedCheck_2946_ = !lean_is_exclusive(v___x_2757_); +if (v_isSharedCheck_2946_ == 0) +{ +v___x_2941_ = v___x_2757_; +v_isShared_2942_ = v_isSharedCheck_2946_; +goto v_resetjp_2940_; +} +else +{ +lean_inc(v_a_2939_); +lean_dec(v___x_2757_); +v___x_2941_ = lean_box(0); +v_isShared_2942_ = v_isSharedCheck_2946_; +goto v_resetjp_2940_; +} +v_resetjp_2940_: +{ +lean_object* v___x_2944_; +if (v_isShared_2942_ == 0) +{ +v___x_2944_ = v___x_2941_; +goto v_reusejp_2943_; +} +else +{ +lean_object* v_reuseFailAlloc_2945_; +v_reuseFailAlloc_2945_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2945_, 0, v_a_2939_); +v___x_2944_ = v_reuseFailAlloc_2945_; +goto v_reusejp_2943_; +} +v_reusejp_2943_: +{ +return v___x_2944_; +} +} +} +} +else +{ +lean_object* v_a_2947_; lean_object* v___x_2949_; uint8_t v_isShared_2950_; uint8_t v_isSharedCheck_2954_; +lean_dec(v___x_2752_); +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2947_ = lean_ctor_get(v___x_2753_, 0); +v_isSharedCheck_2954_ = !lean_is_exclusive(v___x_2753_); +if (v_isSharedCheck_2954_ == 0) +{ +v___x_2949_ = v___x_2753_; +v_isShared_2950_ = v_isSharedCheck_2954_; +goto v_resetjp_2948_; +} +else +{ +lean_inc(v_a_2947_); +lean_dec(v___x_2753_); +v___x_2949_ = lean_box(0); +v_isShared_2950_ = v_isSharedCheck_2954_; +goto v_resetjp_2948_; +} +v_resetjp_2948_: +{ +lean_object* v___x_2952_; +if (v_isShared_2950_ == 0) +{ +v___x_2952_ = v___x_2949_; +goto v_reusejp_2951_; +} +else +{ +lean_object* v_reuseFailAlloc_2953_; +v_reuseFailAlloc_2953_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2953_, 0, v_a_2947_); +v___x_2952_ = v_reuseFailAlloc_2953_; +goto v_reusejp_2951_; +} +v_reusejp_2951_: +{ +return v___x_2952_; +} +} +} +} +v___jp_2724_: +{ +lean_object* v___x_2726_; lean_object* v___x_2727_; +v___x_2726_ = lean_unsigned_to_nat(1u); +v___x_2727_ = lean_nat_add(v_a_2717_, v___x_2726_); +lean_dec(v_a_2717_); +v_a_2717_ = v___x_2727_; +v_b_2718_ = v_a_2725_; +goto _start; +} +v___jp_2729_: +{ +if (lean_obj_tag(v___y_2730_) == 0) +{ +lean_object* v_a_2731_; lean_object* v___x_2733_; uint8_t v_isShared_2734_; uint8_t v_isSharedCheck_2740_; +v_a_2731_ = lean_ctor_get(v___y_2730_, 0); +v_isSharedCheck_2740_ = !lean_is_exclusive(v___y_2730_); +if (v_isSharedCheck_2740_ == 0) +{ +v___x_2733_ = v___y_2730_; +v_isShared_2734_ = v_isSharedCheck_2740_; +goto v_resetjp_2732_; +} +else +{ +lean_inc(v_a_2731_); +lean_dec(v___y_2730_); +v___x_2733_ = lean_box(0); +v_isShared_2734_ = v_isSharedCheck_2740_; +goto v_resetjp_2732_; +} +v_resetjp_2732_: +{ +if (lean_obj_tag(v_a_2731_) == 0) +{ +lean_object* v_a_2735_; lean_object* v___x_2737_; +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2735_ = lean_ctor_get(v_a_2731_, 0); +lean_inc(v_a_2735_); +lean_dec_ref(v_a_2731_); +if (v_isShared_2734_ == 0) +{ +lean_ctor_set(v___x_2733_, 0, v_a_2735_); +v___x_2737_ = v___x_2733_; +goto v_reusejp_2736_; +} +else +{ +lean_object* v_reuseFailAlloc_2738_; +v_reuseFailAlloc_2738_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2738_, 0, v_a_2735_); +v___x_2737_ = v_reuseFailAlloc_2738_; +goto v_reusejp_2736_; +} +v_reusejp_2736_: +{ +return v___x_2737_; +} +} +else +{ +lean_object* v_a_2739_; +lean_del_object(v___x_2733_); +v_a_2739_ = lean_ctor_get(v_a_2731_, 0); +lean_inc(v_a_2739_); +lean_dec_ref(v_a_2731_); +v_a_2725_ = v_a_2739_; +goto v___jp_2724_; +} +} +} +else +{ +lean_object* v_a_2741_; lean_object* v___x_2743_; uint8_t v_isShared_2744_; uint8_t v_isSharedCheck_2748_; +lean_dec(v_a_2717_); +lean_dec_ref(v_expectedType_2716_); +lean_dec(v_val_2715_); +v_a_2741_ = lean_ctor_get(v___y_2730_, 0); +v_isSharedCheck_2748_ = !lean_is_exclusive(v___y_2730_); +if (v_isSharedCheck_2748_ == 0) +{ +v___x_2743_ = v___y_2730_; +v_isShared_2744_ = v_isSharedCheck_2748_; +goto v_resetjp_2742_; +} +else +{ +lean_inc(v_a_2741_); +lean_dec(v___y_2730_); +v___x_2743_ = lean_box(0); +v_isShared_2744_ = v_isSharedCheck_2748_; +goto v_resetjp_2742_; +} +v_resetjp_2742_: +{ +lean_object* v___x_2746_; +if (v_isShared_2744_ == 0) +{ +v___x_2746_ = v___x_2743_; +goto v_reusejp_2745_; +} +else +{ +lean_object* v_reuseFailAlloc_2747_; +v_reuseFailAlloc_2747_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2747_, 0, v_a_2741_); +v___x_2746_ = v_reuseFailAlloc_2747_; +goto v_reusejp_2745_; +} +v_reusejp_2745_: +{ +return v___x_2746_; +} +} +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3(void){ _start: { -lean_object* v___x_3024_; lean_object* v___x_3025_; -v___x_3024_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__2)); -v___x_3025_ = l_Lean_stringToMessageData(v___x_3024_); -return v___x_3025_; +lean_object* v___x_2956_; lean_object* v___x_2957_; +v___x_2956_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__2)); +v___x_2957_ = l_Lean_stringToMessageData(v___x_2956_); +return v___x_2957_; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5(void){ +static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5(void){ _start: { -lean_object* v___x_3027_; lean_object* v___x_3028_; -v___x_3027_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__4)); -v___x_3028_ = l_Lean_stringToMessageData(v___x_3027_); -return v___x_3028_; +lean_object* v___x_2959_; lean_object* v___x_2960_; +v___x_2959_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__4)); +v___x_2960_ = l_Lean_stringToMessageData(v___x_2959_); +return v___x_2960_; } } -static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7(void){ +static lean_object* _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7(void){ _start: { -lean_object* v___x_3030_; lean_object* v___x_3031_; -v___x_3030_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__6)); -v___x_3031_ = l_Lean_stringToMessageData(v___x_3030_); -return v___x_3031_; +lean_object* v___x_2962_; lean_object* v___x_2963_; +v___x_2962_ = ((lean_object*)(l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__6)); +v___x_2963_ = l_Lean_stringToMessageData(v___x_2962_); +return v___x_2963_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12(lean_object* v_inst_3032_, lean_object* v_expectedType_3033_, uint8_t v___x_3034_, uint8_t v_compile_3035_, uint8_t v_logCompileErrors_3036_, uint8_t v_isMeta_3037_, lean_object* v_val_3038_, lean_object* v_x_3039_, lean_object* v_x_3040_, lean_object* v_x_3041_, lean_object* v___y_3042_, lean_object* v___y_3043_, lean_object* v___y_3044_, lean_object* v___y_3045_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11(lean_object* v_inst_2964_, lean_object* v_expectedType_2965_, uint8_t v___x_2966_, uint8_t v_compile_2967_, uint8_t v_logCompileErrors_2968_, uint8_t v_isMeta_2969_, lean_object* v_val_2970_, lean_object* v_x_2971_, lean_object* v_x_2972_, lean_object* v_x_2973_, lean_object* v___y_2974_, lean_object* v___y_2975_, lean_object* v___y_2976_, lean_object* v___y_2977_){ _start: { -lean_object* v___y_3048_; lean_object* v___y_3049_; lean_object* v___y_3050_; lean_object* v___y_3051_; lean_object* v___y_3070_; lean_object* v___y_3071_; lean_object* v___y_3072_; lean_object* v___y_3073_; -if (lean_obj_tag(v_x_3039_) == 5) +lean_object* v___y_2980_; lean_object* v___y_2981_; lean_object* v___y_2982_; lean_object* v___y_2983_; lean_object* v___y_3002_; lean_object* v___y_3003_; lean_object* v___y_3004_; lean_object* v___y_3005_; +if (lean_obj_tag(v_x_2971_) == 5) { -lean_object* v_fn_3086_; lean_object* v_arg_3087_; lean_object* v___x_3088_; lean_object* v___x_3089_; lean_object* v___x_3090_; -v_fn_3086_ = lean_ctor_get(v_x_3039_, 0); -lean_inc_ref(v_fn_3086_); -v_arg_3087_ = lean_ctor_get(v_x_3039_, 1); -lean_inc_ref(v_arg_3087_); -lean_dec_ref(v_x_3039_); -v___x_3088_ = lean_array_set(v_x_3040_, v_x_3041_, v_arg_3087_); -v___x_3089_ = lean_unsigned_to_nat(1u); -v___x_3090_ = lean_nat_sub(v_x_3041_, v___x_3089_); -lean_dec(v_x_3041_); -v_x_3039_ = v_fn_3086_; -v_x_3040_ = v___x_3088_; -v_x_3041_ = v___x_3090_; +lean_object* v_fn_3018_; lean_object* v_arg_3019_; lean_object* v___x_3020_; lean_object* v___x_3021_; lean_object* v___x_3022_; +v_fn_3018_ = lean_ctor_get(v_x_2971_, 0); +lean_inc_ref(v_fn_3018_); +v_arg_3019_ = lean_ctor_get(v_x_2971_, 1); +lean_inc_ref(v_arg_3019_); +lean_dec_ref(v_x_2971_); +v___x_3020_ = lean_array_set(v_x_2972_, v_x_2973_, v_arg_3019_); +v___x_3021_ = lean_unsigned_to_nat(1u); +v___x_3022_ = lean_nat_sub(v_x_2973_, v___x_3021_); +lean_dec(v_x_2973_); +v_x_2971_ = v_fn_3018_; +v_x_2972_ = v___x_3020_; +v_x_2973_ = v___x_3022_; goto _start; } else { -uint8_t v___x_3092_; lean_object* v___y_3094_; lean_object* v___y_3095_; lean_object* v___y_3096_; lean_object* v_options_3097_; lean_object* v___y_3098_; lean_object* v_cls_3164_; lean_object* v___y_3166_; lean_object* v___y_3167_; lean_object* v___y_3168_; lean_object* v___y_3169_; lean_object* v___x_3187_; -lean_dec(v_x_3041_); -v___x_3092_ = 1; -v_cls_3164_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_3187_ = l_Lean_Expr_constName_x3f(v_x_3039_); -if (lean_obj_tag(v___x_3187_) == 0) +uint8_t v___x_3024_; lean_object* v___y_3026_; lean_object* v___y_3027_; lean_object* v___y_3028_; lean_object* v_options_3029_; lean_object* v___y_3030_; lean_object* v_cls_3095_; lean_object* v___y_3097_; lean_object* v___y_3098_; lean_object* v___y_3099_; lean_object* v___y_3100_; lean_object* v___x_3118_; +lean_dec(v_x_2973_); +v___x_3024_ = 1; +v_cls_3095_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_3118_ = l_Lean_Expr_constName_x3f(v_x_2971_); +if (lean_obj_tag(v___x_3118_) == 0) { -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -v___y_3166_ = v___y_3042_; -v___y_3167_ = v___y_3043_; -v___y_3168_ = v___y_3044_; -v___y_3169_ = v___y_3045_; -goto v___jp_3165_; +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +v___y_3097_ = v___y_2974_; +v___y_3098_ = v___y_2975_; +v___y_3099_ = v___y_2976_; +v___y_3100_ = v___y_2977_; +goto v___jp_3096_; } else { -lean_object* v_val_3188_; lean_object* v___x_3189_; -v_val_3188_ = lean_ctor_get(v___x_3187_, 0); -lean_inc(v_val_3188_); -lean_dec_ref(v___x_3187_); -v___x_3189_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_3188_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -if (lean_obj_tag(v___x_3189_) == 0) +lean_object* v_val_3119_; lean_object* v___x_3120_; +v_val_3119_ = lean_ctor_get(v___x_3118_, 0); +lean_inc(v_val_3119_); +lean_dec_ref(v___x_3118_); +v___x_3120_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_3119_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +if (lean_obj_tag(v___x_3120_) == 0) { -lean_object* v_a_3190_; -v_a_3190_ = lean_ctor_get(v___x_3189_, 0); -lean_inc(v_a_3190_); -lean_dec_ref(v___x_3189_); -if (lean_obj_tag(v_a_3190_) == 6) +lean_object* v_a_3121_; +v_a_3121_ = lean_ctor_get(v___x_3120_, 0); +lean_inc(v_a_3121_); +lean_dec_ref(v___x_3120_); +if (lean_obj_tag(v_a_3121_) == 6) { -lean_object* v_val_3191_; lean_object* v___x_3192_; -lean_dec_ref(v_inst_3032_); -v_val_3191_ = lean_ctor_get(v_a_3190_, 0); -lean_inc_ref(v_val_3191_); -lean_dec_ref(v_a_3190_); -lean_inc(v___y_3045_); -lean_inc_ref(v___y_3044_); -lean_inc(v___y_3043_); -lean_inc_ref(v___y_3042_); -lean_inc_ref(v_x_3039_); -v___x_3192_ = lean_infer_type(v_x_3039_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -if (lean_obj_tag(v___x_3192_) == 0) +lean_object* v_val_3122_; lean_object* v___x_3123_; +lean_dec_ref(v_inst_2964_); +v_val_3122_ = lean_ctor_get(v_a_3121_, 0); +lean_inc_ref(v_val_3122_); +lean_dec_ref(v_a_3121_); +lean_inc(v___y_2977_); +lean_inc_ref(v___y_2976_); +lean_inc(v___y_2975_); +lean_inc_ref(v___y_2974_); +lean_inc_ref(v_x_2971_); +v___x_3123_ = lean_infer_type(v_x_2971_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +if (lean_obj_tag(v___x_3123_) == 0) { -lean_object* v_a_3193_; uint8_t v___x_3194_; lean_object* v___x_3195_; -v_a_3193_ = lean_ctor_get(v___x_3192_, 0); -lean_inc(v_a_3193_); -lean_dec_ref(v___x_3192_); -v___x_3194_ = 0; -v___x_3195_ = l_Lean_Meta_forallMetaTelescope(v_a_3193_, v___x_3194_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -if (lean_obj_tag(v___x_3195_) == 0) +lean_object* v_a_3124_; uint8_t v___x_3125_; lean_object* v___x_3126_; +v_a_3124_ = lean_ctor_get(v___x_3123_, 0); +lean_inc(v_a_3124_); +lean_dec_ref(v___x_3123_); +v___x_3125_ = 0; +v___x_3126_ = l_Lean_Meta_forallMetaTelescope(v_a_3124_, v___x_3125_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +if (lean_obj_tag(v___x_3126_) == 0) { -lean_object* v_a_3196_; lean_object* v_snd_3197_; lean_object* v_fst_3198_; lean_object* v___x_3200_; uint8_t v_isShared_3201_; uint8_t v_isSharedCheck_3297_; -v_a_3196_ = lean_ctor_get(v___x_3195_, 0); -lean_inc(v_a_3196_); -lean_dec_ref(v___x_3195_); -v_snd_3197_ = lean_ctor_get(v_a_3196_, 1); -v_fst_3198_ = lean_ctor_get(v_a_3196_, 0); -v_isSharedCheck_3297_ = !lean_is_exclusive(v_a_3196_); -if (v_isSharedCheck_3297_ == 0) +lean_object* v_a_3127_; lean_object* v_snd_3128_; lean_object* v_fst_3129_; lean_object* v___x_3131_; uint8_t v_isShared_3132_; uint8_t v_isSharedCheck_3228_; +v_a_3127_ = lean_ctor_get(v___x_3126_, 0); +lean_inc(v_a_3127_); +lean_dec_ref(v___x_3126_); +v_snd_3128_ = lean_ctor_get(v_a_3127_, 1); +v_fst_3129_ = lean_ctor_get(v_a_3127_, 0); +v_isSharedCheck_3228_ = !lean_is_exclusive(v_a_3127_); +if (v_isSharedCheck_3228_ == 0) { -v___x_3200_ = v_a_3196_; -v_isShared_3201_ = v_isSharedCheck_3297_; -goto v_resetjp_3199_; +v___x_3131_ = v_a_3127_; +v_isShared_3132_ = v_isSharedCheck_3228_; +goto v_resetjp_3130_; } else { -lean_inc(v_snd_3197_); -lean_inc(v_fst_3198_); -lean_dec(v_a_3196_); -v___x_3200_ = lean_box(0); -v_isShared_3201_ = v_isSharedCheck_3297_; -goto v_resetjp_3199_; +lean_inc(v_snd_3128_); +lean_inc(v_fst_3129_); +lean_dec(v_a_3127_); +v___x_3131_ = lean_box(0); +v_isShared_3132_ = v_isSharedCheck_3228_; +goto v_resetjp_3130_; } -v_resetjp_3199_: +v_resetjp_3130_: { -lean_object* v_snd_3202_; lean_object* v___x_3204_; uint8_t v_isShared_3205_; uint8_t v_isSharedCheck_3295_; -v_snd_3202_ = lean_ctor_get(v_snd_3197_, 1); -v_isSharedCheck_3295_ = !lean_is_exclusive(v_snd_3197_); -if (v_isSharedCheck_3295_ == 0) -{ -lean_object* v_unused_3296_; -v_unused_3296_ = lean_ctor_get(v_snd_3197_, 0); -lean_dec(v_unused_3296_); -v___x_3204_ = v_snd_3197_; -v_isShared_3205_ = v_isSharedCheck_3295_; -goto v_resetjp_3203_; -} -else -{ -lean_inc(v_snd_3202_); -lean_dec(v_snd_3197_); -v___x_3204_ = lean_box(0); -v_isShared_3205_ = v_isSharedCheck_3295_; -goto v_resetjp_3203_; -} -v_resetjp_3203_: -{ -lean_object* v___x_3206_; lean_object* v___y_3208_; lean_object* v___y_3209_; lean_object* v___y_3210_; lean_object* v___y_3211_; lean_object* v___x_3243_; uint8_t v___x_3244_; -v___x_3206_ = lean_array_get_size(v_x_3040_); -v___x_3243_ = lean_array_get_size(v_fst_3198_); -v___x_3244_ = lean_nat_dec_eq(v___x_3206_, v___x_3243_); -if (v___x_3244_ == 0) -{ -lean_object* v___x_3245_; lean_object* v___x_3246_; lean_object* v___x_3248_; -lean_dec(v_snd_3202_); -lean_dec(v_fst_3198_); -lean_dec_ref(v_val_3191_); -lean_dec(v_val_3038_); -lean_dec_ref(v_expectedType_3033_); -v___x_3245_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_3246_ = l_Lean_MessageData_ofExpr(v_x_3039_); -if (v_isShared_3205_ == 0) -{ -lean_ctor_set_tag(v___x_3204_, 7); -lean_ctor_set(v___x_3204_, 1, v___x_3246_); -lean_ctor_set(v___x_3204_, 0, v___x_3245_); -v___x_3248_ = v___x_3204_; -goto v_reusejp_3247_; -} -else -{ -lean_object* v_reuseFailAlloc_3259_; -v_reuseFailAlloc_3259_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3259_, 0, v___x_3245_); -lean_ctor_set(v_reuseFailAlloc_3259_, 1, v___x_3246_); -v___x_3248_ = v_reuseFailAlloc_3259_; -goto v_reusejp_3247_; -} -v_reusejp_3247_: -{ -lean_object* v___x_3249_; lean_object* v___x_3251_; -v___x_3249_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_3201_ == 0) -{ -lean_ctor_set_tag(v___x_3200_, 7); -lean_ctor_set(v___x_3200_, 1, v___x_3249_); -lean_ctor_set(v___x_3200_, 0, v___x_3248_); -v___x_3251_ = v___x_3200_; -goto v_reusejp_3250_; -} -else -{ -lean_object* v_reuseFailAlloc_3258_; -v_reuseFailAlloc_3258_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3258_, 0, v___x_3248_); -lean_ctor_set(v_reuseFailAlloc_3258_, 1, v___x_3249_); -v___x_3251_ = v_reuseFailAlloc_3258_; -goto v_reusejp_3250_; -} -v_reusejp_3250_: -{ -lean_object* v___x_3252_; lean_object* v___x_3253_; lean_object* v___x_3254_; lean_object* v___x_3255_; lean_object* v___x_3256_; lean_object* v___x_3257_; -v___x_3252_ = lean_array_to_list(v_x_3040_); -v___x_3253_ = lean_box(0); -v___x_3254_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_3252_, v___x_3253_); -v___x_3255_ = l_Lean_MessageData_ofList(v___x_3254_); -v___x_3256_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3256_, 0, v___x_3251_); -lean_ctor_set(v___x_3256_, 1, v___x_3255_); -v___x_3257_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3256_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -return v___x_3257_; -} -} -} -else -{ -lean_object* v___x_3260_; -lean_inc_ref(v_expectedType_3033_); -v___x_3260_ = l_Lean_Meta_isExprDefEq(v_expectedType_3033_, v_snd_3202_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -if (lean_obj_tag(v___x_3260_) == 0) -{ -lean_object* v_a_3261_; uint8_t v___x_3262_; -v_a_3261_ = lean_ctor_get(v___x_3260_, 0); -lean_inc(v_a_3261_); -lean_dec_ref(v___x_3260_); -v___x_3262_ = lean_unbox(v_a_3261_); -lean_dec(v_a_3261_); -if (v___x_3262_ == 0) -{ -lean_object* v_toConstantVal_3263_; lean_object* v_name_3264_; lean_object* v___x_3265_; lean_object* v___x_3266_; lean_object* v___x_3268_; -lean_dec(v_fst_3198_); -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -v_toConstantVal_3263_ = lean_ctor_get(v_val_3191_, 0); -lean_inc_ref(v_toConstantVal_3263_); -lean_dec_ref(v_val_3191_); -v_name_3264_ = lean_ctor_get(v_toConstantVal_3263_, 0); -lean_inc(v_name_3264_); -lean_dec_ref(v_toConstantVal_3263_); -v___x_3265_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_3266_ = l_Lean_MessageData_ofExpr(v_expectedType_3033_); -if (v_isShared_3205_ == 0) -{ -lean_ctor_set_tag(v___x_3204_, 7); -lean_ctor_set(v___x_3204_, 1, v___x_3266_); -lean_ctor_set(v___x_3204_, 0, v___x_3265_); -v___x_3268_ = v___x_3204_; -goto v_reusejp_3267_; -} -else -{ -lean_object* v_reuseFailAlloc_3286_; -v_reuseFailAlloc_3286_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3286_, 0, v___x_3265_); -lean_ctor_set(v_reuseFailAlloc_3286_, 1, v___x_3266_); -v___x_3268_ = v_reuseFailAlloc_3286_; -goto v_reusejp_3267_; -} -v_reusejp_3267_: -{ -lean_object* v___x_3269_; lean_object* v___x_3271_; -v___x_3269_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_3201_ == 0) -{ -lean_ctor_set_tag(v___x_3200_, 7); -lean_ctor_set(v___x_3200_, 1, v___x_3269_); -lean_ctor_set(v___x_3200_, 0, v___x_3268_); -v___x_3271_ = v___x_3200_; -goto v_reusejp_3270_; -} -else -{ -lean_object* v_reuseFailAlloc_3285_; -v_reuseFailAlloc_3285_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3285_, 0, v___x_3268_); -lean_ctor_set(v_reuseFailAlloc_3285_, 1, v___x_3269_); -v___x_3271_ = v_reuseFailAlloc_3285_; -goto v_reusejp_3270_; -} -v_reusejp_3270_: -{ -lean_object* v___x_3272_; lean_object* v___x_3273_; lean_object* v___x_3274_; lean_object* v___x_3275_; lean_object* v___x_3276_; lean_object* v_a_3277_; lean_object* v___x_3279_; uint8_t v_isShared_3280_; uint8_t v_isSharedCheck_3284_; -v___x_3272_ = l_Lean_MessageData_ofConstName(v_name_3264_, v___x_3034_); -v___x_3273_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3273_, 0, v___x_3271_); -lean_ctor_set(v___x_3273_, 1, v___x_3272_); -v___x_3274_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_3275_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3275_, 0, v___x_3273_); -lean_ctor_set(v___x_3275_, 1, v___x_3274_); -v___x_3276_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3275_, v___y_3042_, v___y_3043_, v___y_3044_, v___y_3045_); -v_a_3277_ = lean_ctor_get(v___x_3276_, 0); -v_isSharedCheck_3284_ = !lean_is_exclusive(v___x_3276_); -if (v_isSharedCheck_3284_ == 0) -{ -v___x_3279_ = v___x_3276_; -v_isShared_3280_ = v_isSharedCheck_3284_; -goto v_resetjp_3278_; -} -else -{ -lean_inc(v_a_3277_); -lean_dec(v___x_3276_); -v___x_3279_ = lean_box(0); -v_isShared_3280_ = v_isSharedCheck_3284_; -goto v_resetjp_3278_; -} -v_resetjp_3278_: -{ -lean_object* v___x_3282_; -if (v_isShared_3280_ == 0) -{ -v___x_3282_ = v___x_3279_; -goto v_reusejp_3281_; -} -else -{ -lean_object* v_reuseFailAlloc_3283_; -v_reuseFailAlloc_3283_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3283_, 0, v_a_3277_); -v___x_3282_ = v_reuseFailAlloc_3283_; -goto v_reusejp_3281_; -} -v_reusejp_3281_: -{ -return v___x_3282_; -} -} -} -} -} -else -{ -lean_del_object(v___x_3204_); -lean_del_object(v___x_3200_); -v___y_3208_ = v___y_3042_; -v___y_3209_ = v___y_3043_; -v___y_3210_ = v___y_3044_; -v___y_3211_ = v___y_3045_; -goto v___jp_3207_; -} -} -else -{ -lean_object* v_a_3287_; lean_object* v___x_3289_; uint8_t v_isShared_3290_; uint8_t v_isSharedCheck_3294_; -lean_del_object(v___x_3204_); -lean_del_object(v___x_3200_); -lean_dec(v_fst_3198_); -lean_dec_ref(v_val_3191_); -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -lean_dec_ref(v_expectedType_3033_); -v_a_3287_ = lean_ctor_get(v___x_3260_, 0); -v_isSharedCheck_3294_ = !lean_is_exclusive(v___x_3260_); -if (v_isSharedCheck_3294_ == 0) -{ -v___x_3289_ = v___x_3260_; -v_isShared_3290_ = v_isSharedCheck_3294_; -goto v_resetjp_3288_; -} -else -{ -lean_inc(v_a_3287_); -lean_dec(v___x_3260_); -v___x_3289_ = lean_box(0); -v_isShared_3290_ = v_isSharedCheck_3294_; -goto v_resetjp_3288_; -} -v_resetjp_3288_: -{ -lean_object* v___x_3292_; -if (v_isShared_3290_ == 0) -{ -v___x_3292_ = v___x_3289_; -goto v_reusejp_3291_; -} -else -{ -lean_object* v_reuseFailAlloc_3293_; -v_reuseFailAlloc_3293_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3293_, 0, v_a_3287_); -v___x_3292_ = v_reuseFailAlloc_3293_; -goto v_reusejp_3291_; -} -v_reusejp_3291_: -{ -return v___x_3292_; -} -} -} -} -v___jp_3207_: -{ -lean_object* v_numParams_3212_; lean_object* v___x_3213_; lean_object* v___x_3214_; -v_numParams_3212_ = lean_ctor_get(v_val_3191_, 3); -lean_inc(v_numParams_3212_); -lean_dec_ref(v_val_3191_); -v___x_3213_ = lean_box(0); -v___x_3214_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(v___x_3206_, v_fst_3198_, v_x_3040_, v_compile_3035_, v_logCompileErrors_3036_, v___x_3034_, v_isMeta_3037_, v_val_3038_, v_expectedType_3033_, v_numParams_3212_, v___x_3213_, v___y_3208_, v___y_3209_, v___y_3210_, v___y_3211_); -lean_dec_ref(v_x_3040_); -if (lean_obj_tag(v___x_3214_) == 0) -{ -size_t v_sz_3215_; size_t v___x_3216_; lean_object* v___x_3217_; -lean_dec_ref(v___x_3214_); -v_sz_3215_ = lean_array_size(v_fst_3198_); -v___x_3216_ = ((size_t)0ULL); -v___x_3217_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_3215_, v___x_3216_, v_fst_3198_, v___y_3208_, v___y_3209_, v___y_3210_, v___y_3211_); -if (lean_obj_tag(v___x_3217_) == 0) -{ -lean_object* v_a_3218_; lean_object* v___x_3220_; uint8_t v_isShared_3221_; uint8_t v_isSharedCheck_3226_; -v_a_3218_ = lean_ctor_get(v___x_3217_, 0); -v_isSharedCheck_3226_ = !lean_is_exclusive(v___x_3217_); +lean_object* v_snd_3133_; lean_object* v___x_3135_; uint8_t v_isShared_3136_; uint8_t v_isSharedCheck_3226_; +v_snd_3133_ = lean_ctor_get(v_snd_3128_, 1); +v_isSharedCheck_3226_ = !lean_is_exclusive(v_snd_3128_); if (v_isSharedCheck_3226_ == 0) { -v___x_3220_ = v___x_3217_; -v_isShared_3221_ = v_isSharedCheck_3226_; +lean_object* v_unused_3227_; +v_unused_3227_ = lean_ctor_get(v_snd_3128_, 0); +lean_dec(v_unused_3227_); +v___x_3135_ = v_snd_3128_; +v_isShared_3136_ = v_isSharedCheck_3226_; +goto v_resetjp_3134_; +} +else +{ +lean_inc(v_snd_3133_); +lean_dec(v_snd_3128_); +v___x_3135_ = lean_box(0); +v_isShared_3136_ = v_isSharedCheck_3226_; +goto v_resetjp_3134_; +} +v_resetjp_3134_: +{ +lean_object* v___x_3137_; lean_object* v___y_3139_; lean_object* v___y_3140_; lean_object* v___y_3141_; lean_object* v___y_3142_; lean_object* v___x_3174_; uint8_t v___x_3175_; +v___x_3137_ = lean_array_get_size(v_x_2972_); +v___x_3174_ = lean_array_get_size(v_fst_3129_); +v___x_3175_ = lean_nat_dec_eq(v___x_3137_, v___x_3174_); +if (v___x_3175_ == 0) +{ +lean_object* v___x_3176_; lean_object* v___x_3177_; lean_object* v___x_3179_; +lean_dec(v_snd_3133_); +lean_dec(v_fst_3129_); +lean_dec_ref(v_val_3122_); +lean_dec(v_val_2970_); +lean_dec_ref(v_expectedType_2965_); +v___x_3176_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_3177_ = l_Lean_MessageData_ofExpr(v_x_2971_); +if (v_isShared_3136_ == 0) +{ +lean_ctor_set_tag(v___x_3135_, 7); +lean_ctor_set(v___x_3135_, 1, v___x_3177_); +lean_ctor_set(v___x_3135_, 0, v___x_3176_); +v___x_3179_ = v___x_3135_; +goto v_reusejp_3178_; +} +else +{ +lean_object* v_reuseFailAlloc_3190_; +v_reuseFailAlloc_3190_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3190_, 0, v___x_3176_); +lean_ctor_set(v_reuseFailAlloc_3190_, 1, v___x_3177_); +v___x_3179_ = v_reuseFailAlloc_3190_; +goto v_reusejp_3178_; +} +v_reusejp_3178_: +{ +lean_object* v___x_3180_; lean_object* v___x_3182_; +v___x_3180_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_3132_ == 0) +{ +lean_ctor_set_tag(v___x_3131_, 7); +lean_ctor_set(v___x_3131_, 1, v___x_3180_); +lean_ctor_set(v___x_3131_, 0, v___x_3179_); +v___x_3182_ = v___x_3131_; +goto v_reusejp_3181_; +} +else +{ +lean_object* v_reuseFailAlloc_3189_; +v_reuseFailAlloc_3189_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3189_, 0, v___x_3179_); +lean_ctor_set(v_reuseFailAlloc_3189_, 1, v___x_3180_); +v___x_3182_ = v_reuseFailAlloc_3189_; +goto v_reusejp_3181_; +} +v_reusejp_3181_: +{ +lean_object* v___x_3183_; lean_object* v___x_3184_; lean_object* v___x_3185_; lean_object* v___x_3186_; lean_object* v___x_3187_; lean_object* v___x_3188_; +v___x_3183_ = lean_array_to_list(v_x_2972_); +v___x_3184_ = lean_box(0); +v___x_3185_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_3183_, v___x_3184_); +v___x_3186_ = l_Lean_MessageData_ofList(v___x_3185_); +v___x_3187_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3187_, 0, v___x_3182_); +lean_ctor_set(v___x_3187_, 1, v___x_3186_); +v___x_3188_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3187_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +return v___x_3188_; +} +} +} +else +{ +lean_object* v___x_3191_; +lean_inc_ref(v_expectedType_2965_); +v___x_3191_ = l_Lean_Meta_isExprDefEq(v_expectedType_2965_, v_snd_3133_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +if (lean_obj_tag(v___x_3191_) == 0) +{ +lean_object* v_a_3192_; uint8_t v___x_3193_; +v_a_3192_ = lean_ctor_get(v___x_3191_, 0); +lean_inc(v_a_3192_); +lean_dec_ref(v___x_3191_); +v___x_3193_ = lean_unbox(v_a_3192_); +lean_dec(v_a_3192_); +if (v___x_3193_ == 0) +{ +lean_object* v_toConstantVal_3194_; lean_object* v_name_3195_; lean_object* v___x_3196_; lean_object* v___x_3197_; lean_object* v___x_3199_; +lean_dec(v_fst_3129_); +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +v_toConstantVal_3194_ = lean_ctor_get(v_val_3122_, 0); +lean_inc_ref(v_toConstantVal_3194_); +lean_dec_ref(v_val_3122_); +v_name_3195_ = lean_ctor_get(v_toConstantVal_3194_, 0); +lean_inc(v_name_3195_); +lean_dec_ref(v_toConstantVal_3194_); +v___x_3196_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_3197_ = l_Lean_MessageData_ofExpr(v_expectedType_2965_); +if (v_isShared_3136_ == 0) +{ +lean_ctor_set_tag(v___x_3135_, 7); +lean_ctor_set(v___x_3135_, 1, v___x_3197_); +lean_ctor_set(v___x_3135_, 0, v___x_3196_); +v___x_3199_ = v___x_3135_; +goto v_reusejp_3198_; +} +else +{ +lean_object* v_reuseFailAlloc_3217_; +v_reuseFailAlloc_3217_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3217_, 0, v___x_3196_); +lean_ctor_set(v_reuseFailAlloc_3217_, 1, v___x_3197_); +v___x_3199_ = v_reuseFailAlloc_3217_; +goto v_reusejp_3198_; +} +v_reusejp_3198_: +{ +lean_object* v___x_3200_; lean_object* v___x_3202_; +v___x_3200_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_3132_ == 0) +{ +lean_ctor_set_tag(v___x_3131_, 7); +lean_ctor_set(v___x_3131_, 1, v___x_3200_); +lean_ctor_set(v___x_3131_, 0, v___x_3199_); +v___x_3202_ = v___x_3131_; +goto v_reusejp_3201_; +} +else +{ +lean_object* v_reuseFailAlloc_3216_; +v_reuseFailAlloc_3216_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3216_, 0, v___x_3199_); +lean_ctor_set(v_reuseFailAlloc_3216_, 1, v___x_3200_); +v___x_3202_ = v_reuseFailAlloc_3216_; +goto v_reusejp_3201_; +} +v_reusejp_3201_: +{ +lean_object* v___x_3203_; lean_object* v___x_3204_; lean_object* v___x_3205_; lean_object* v___x_3206_; lean_object* v___x_3207_; lean_object* v_a_3208_; lean_object* v___x_3210_; uint8_t v_isShared_3211_; uint8_t v_isSharedCheck_3215_; +v___x_3203_ = l_Lean_MessageData_ofConstName(v_name_3195_, v___x_2966_); +v___x_3204_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3204_, 0, v___x_3202_); +lean_ctor_set(v___x_3204_, 1, v___x_3203_); +v___x_3205_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_3206_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3206_, 0, v___x_3204_); +lean_ctor_set(v___x_3206_, 1, v___x_3205_); +v___x_3207_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3206_, v___y_2974_, v___y_2975_, v___y_2976_, v___y_2977_); +v_a_3208_ = lean_ctor_get(v___x_3207_, 0); +v_isSharedCheck_3215_ = !lean_is_exclusive(v___x_3207_); +if (v_isSharedCheck_3215_ == 0) +{ +v___x_3210_ = v___x_3207_; +v_isShared_3211_ = v_isSharedCheck_3215_; +goto v_resetjp_3209_; +} +else +{ +lean_inc(v_a_3208_); +lean_dec(v___x_3207_); +v___x_3210_ = lean_box(0); +v_isShared_3211_ = v_isSharedCheck_3215_; +goto v_resetjp_3209_; +} +v_resetjp_3209_: +{ +lean_object* v___x_3213_; +if (v_isShared_3211_ == 0) +{ +v___x_3213_ = v___x_3210_; +goto v_reusejp_3212_; +} +else +{ +lean_object* v_reuseFailAlloc_3214_; +v_reuseFailAlloc_3214_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3214_, 0, v_a_3208_); +v___x_3213_ = v_reuseFailAlloc_3214_; +goto v_reusejp_3212_; +} +v_reusejp_3212_: +{ +return v___x_3213_; +} +} +} +} +} +else +{ +lean_del_object(v___x_3135_); +lean_del_object(v___x_3131_); +v___y_3139_ = v___y_2974_; +v___y_3140_ = v___y_2975_; +v___y_3141_ = v___y_2976_; +v___y_3142_ = v___y_2977_; +goto v___jp_3138_; +} +} +else +{ +lean_object* v_a_3218_; lean_object* v___x_3220_; uint8_t v_isShared_3221_; uint8_t v_isSharedCheck_3225_; +lean_del_object(v___x_3135_); +lean_del_object(v___x_3131_); +lean_dec(v_fst_3129_); +lean_dec_ref(v_val_3122_); +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +lean_dec_ref(v_expectedType_2965_); +v_a_3218_ = lean_ctor_get(v___x_3191_, 0); +v_isSharedCheck_3225_ = !lean_is_exclusive(v___x_3191_); +if (v_isSharedCheck_3225_ == 0) +{ +v___x_3220_ = v___x_3191_; +v_isShared_3221_ = v_isSharedCheck_3225_; goto v_resetjp_3219_; } else { lean_inc(v_a_3218_); -lean_dec(v___x_3217_); +lean_dec(v___x_3191_); v___x_3220_ = lean_box(0); -v_isShared_3221_ = v_isSharedCheck_3226_; +v_isShared_3221_ = v_isSharedCheck_3225_; goto v_resetjp_3219_; } v_resetjp_3219_: { -lean_object* v___x_3222_; lean_object* v___x_3224_; -v___x_3222_ = l_Lean_mkAppN(v_x_3039_, v_a_3218_); -lean_dec(v_a_3218_); +lean_object* v___x_3223_; if (v_isShared_3221_ == 0) { -lean_ctor_set(v___x_3220_, 0, v___x_3222_); -v___x_3224_ = v___x_3220_; -goto v_reusejp_3223_; +v___x_3223_ = v___x_3220_; +goto v_reusejp_3222_; } else { -lean_object* v_reuseFailAlloc_3225_; -v_reuseFailAlloc_3225_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3225_, 0, v___x_3222_); -v___x_3224_ = v_reuseFailAlloc_3225_; -goto v_reusejp_3223_; +lean_object* v_reuseFailAlloc_3224_; +v_reuseFailAlloc_3224_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3224_, 0, v_a_3218_); +v___x_3223_ = v_reuseFailAlloc_3224_; +goto v_reusejp_3222_; } -v_reusejp_3223_: +v_reusejp_3222_: { -return v___x_3224_; +return v___x_3223_; +} +} +} +} +v___jp_3138_: +{ +lean_object* v_numParams_3143_; lean_object* v___x_3144_; lean_object* v___x_3145_; +v_numParams_3143_ = lean_ctor_get(v_val_3122_, 3); +lean_inc(v_numParams_3143_); +lean_dec_ref(v_val_3122_); +v___x_3144_ = lean_box(0); +v___x_3145_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_3137_, v_fst_3129_, v_x_2972_, v_compile_2967_, v_logCompileErrors_2968_, v___x_2966_, v_isMeta_2969_, v_val_2970_, v_expectedType_2965_, v_numParams_3143_, v___x_3144_, v___y_3139_, v___y_3140_, v___y_3141_, v___y_3142_); +lean_dec_ref(v_x_2972_); +if (lean_obj_tag(v___x_3145_) == 0) +{ +size_t v_sz_3146_; size_t v___x_3147_; lean_object* v___x_3148_; +lean_dec_ref(v___x_3145_); +v_sz_3146_ = lean_array_size(v_fst_3129_); +v___x_3147_ = ((size_t)0ULL); +v___x_3148_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_3146_, v___x_3147_, v_fst_3129_, v___y_3139_, v___y_3140_, v___y_3141_, v___y_3142_); +if (lean_obj_tag(v___x_3148_) == 0) +{ +lean_object* v_a_3149_; lean_object* v___x_3151_; uint8_t v_isShared_3152_; uint8_t v_isSharedCheck_3157_; +v_a_3149_ = lean_ctor_get(v___x_3148_, 0); +v_isSharedCheck_3157_ = !lean_is_exclusive(v___x_3148_); +if (v_isSharedCheck_3157_ == 0) +{ +v___x_3151_ = v___x_3148_; +v_isShared_3152_ = v_isSharedCheck_3157_; +goto v_resetjp_3150_; +} +else +{ +lean_inc(v_a_3149_); +lean_dec(v___x_3148_); +v___x_3151_ = lean_box(0); +v_isShared_3152_ = v_isSharedCheck_3157_; +goto v_resetjp_3150_; +} +v_resetjp_3150_: +{ +lean_object* v___x_3153_; lean_object* v___x_3155_; +v___x_3153_ = l_Lean_mkAppN(v_x_2971_, v_a_3149_); +lean_dec(v_a_3149_); +if (v_isShared_3152_ == 0) +{ +lean_ctor_set(v___x_3151_, 0, v___x_3153_); +v___x_3155_ = v___x_3151_; +goto v_reusejp_3154_; +} +else +{ +lean_object* v_reuseFailAlloc_3156_; +v_reuseFailAlloc_3156_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3156_, 0, v___x_3153_); +v___x_3155_ = v_reuseFailAlloc_3156_; +goto v_reusejp_3154_; +} +v_reusejp_3154_: +{ +return v___x_3155_; } } } else { -lean_object* v_a_3227_; lean_object* v___x_3229_; uint8_t v_isShared_3230_; uint8_t v_isSharedCheck_3234_; -lean_dec_ref(v_x_3039_); -v_a_3227_ = lean_ctor_get(v___x_3217_, 0); -v_isSharedCheck_3234_ = !lean_is_exclusive(v___x_3217_); -if (v_isSharedCheck_3234_ == 0) +lean_object* v_a_3158_; lean_object* v___x_3160_; uint8_t v_isShared_3161_; uint8_t v_isSharedCheck_3165_; +lean_dec_ref(v_x_2971_); +v_a_3158_ = lean_ctor_get(v___x_3148_, 0); +v_isSharedCheck_3165_ = !lean_is_exclusive(v___x_3148_); +if (v_isSharedCheck_3165_ == 0) { -v___x_3229_ = v___x_3217_; -v_isShared_3230_ = v_isSharedCheck_3234_; -goto v_resetjp_3228_; +v___x_3160_ = v___x_3148_; +v_isShared_3161_ = v_isSharedCheck_3165_; +goto v_resetjp_3159_; } else { -lean_inc(v_a_3227_); -lean_dec(v___x_3217_); -v___x_3229_ = lean_box(0); -v_isShared_3230_ = v_isSharedCheck_3234_; -goto v_resetjp_3228_; +lean_inc(v_a_3158_); +lean_dec(v___x_3148_); +v___x_3160_ = lean_box(0); +v_isShared_3161_ = v_isSharedCheck_3165_; +goto v_resetjp_3159_; } -v_resetjp_3228_: +v_resetjp_3159_: { -lean_object* v___x_3232_; -if (v_isShared_3230_ == 0) +lean_object* v___x_3163_; +if (v_isShared_3161_ == 0) { -v___x_3232_ = v___x_3229_; -goto v_reusejp_3231_; +v___x_3163_ = v___x_3160_; +goto v_reusejp_3162_; } else { -lean_object* v_reuseFailAlloc_3233_; -v_reuseFailAlloc_3233_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3233_, 0, v_a_3227_); -v___x_3232_ = v_reuseFailAlloc_3233_; -goto v_reusejp_3231_; +lean_object* v_reuseFailAlloc_3164_; +v_reuseFailAlloc_3164_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3164_, 0, v_a_3158_); +v___x_3163_ = v_reuseFailAlloc_3164_; +goto v_reusejp_3162_; } -v_reusejp_3231_: +v_reusejp_3162_: { -return v___x_3232_; +return v___x_3163_; } } } } else { -lean_object* v_a_3235_; lean_object* v___x_3237_; uint8_t v_isShared_3238_; uint8_t v_isSharedCheck_3242_; -lean_dec(v_fst_3198_); -lean_dec_ref(v_x_3039_); -v_a_3235_ = lean_ctor_get(v___x_3214_, 0); -v_isSharedCheck_3242_ = !lean_is_exclusive(v___x_3214_); -if (v_isSharedCheck_3242_ == 0) +lean_object* v_a_3166_; lean_object* v___x_3168_; uint8_t v_isShared_3169_; uint8_t v_isSharedCheck_3173_; +lean_dec(v_fst_3129_); +lean_dec_ref(v_x_2971_); +v_a_3166_ = lean_ctor_get(v___x_3145_, 0); +v_isSharedCheck_3173_ = !lean_is_exclusive(v___x_3145_); +if (v_isSharedCheck_3173_ == 0) { -v___x_3237_ = v___x_3214_; -v_isShared_3238_ = v_isSharedCheck_3242_; -goto v_resetjp_3236_; +v___x_3168_ = v___x_3145_; +v_isShared_3169_ = v_isSharedCheck_3173_; +goto v_resetjp_3167_; } else { -lean_inc(v_a_3235_); -lean_dec(v___x_3214_); -v___x_3237_ = lean_box(0); -v_isShared_3238_ = v_isSharedCheck_3242_; -goto v_resetjp_3236_; +lean_inc(v_a_3166_); +lean_dec(v___x_3145_); +v___x_3168_ = lean_box(0); +v_isShared_3169_ = v_isSharedCheck_3173_; +goto v_resetjp_3167_; } -v_resetjp_3236_: +v_resetjp_3167_: { -lean_object* v___x_3240_; -if (v_isShared_3238_ == 0) +lean_object* v___x_3171_; +if (v_isShared_3169_ == 0) { -v___x_3240_ = v___x_3237_; -goto v_reusejp_3239_; +v___x_3171_ = v___x_3168_; +goto v_reusejp_3170_; } else { -lean_object* v_reuseFailAlloc_3241_; -v_reuseFailAlloc_3241_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3241_, 0, v_a_3235_); -v___x_3240_ = v_reuseFailAlloc_3241_; -goto v_reusejp_3239_; +lean_object* v_reuseFailAlloc_3172_; +v_reuseFailAlloc_3172_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3172_, 0, v_a_3166_); +v___x_3171_ = v_reuseFailAlloc_3172_; +goto v_reusejp_3170_; } -v_reusejp_3239_: +v_reusejp_3170_: { -return v___x_3240_; +return v___x_3171_; } } } @@ -10776,330 +10605,329 @@ return v___x_3240_; } else { -lean_object* v_a_3298_; lean_object* v___x_3300_; uint8_t v_isShared_3301_; uint8_t v_isSharedCheck_3305_; -lean_dec_ref(v_val_3191_); -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -lean_dec_ref(v_expectedType_3033_); -v_a_3298_ = lean_ctor_get(v___x_3195_, 0); -v_isSharedCheck_3305_ = !lean_is_exclusive(v___x_3195_); -if (v_isSharedCheck_3305_ == 0) +lean_object* v_a_3229_; lean_object* v___x_3231_; uint8_t v_isShared_3232_; uint8_t v_isSharedCheck_3236_; +lean_dec_ref(v_val_3122_); +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +lean_dec_ref(v_expectedType_2965_); +v_a_3229_ = lean_ctor_get(v___x_3126_, 0); +v_isSharedCheck_3236_ = !lean_is_exclusive(v___x_3126_); +if (v_isSharedCheck_3236_ == 0) { -v___x_3300_ = v___x_3195_; -v_isShared_3301_ = v_isSharedCheck_3305_; -goto v_resetjp_3299_; +v___x_3231_ = v___x_3126_; +v_isShared_3232_ = v_isSharedCheck_3236_; +goto v_resetjp_3230_; } else { -lean_inc(v_a_3298_); -lean_dec(v___x_3195_); -v___x_3300_ = lean_box(0); -v_isShared_3301_ = v_isSharedCheck_3305_; -goto v_resetjp_3299_; +lean_inc(v_a_3229_); +lean_dec(v___x_3126_); +v___x_3231_ = lean_box(0); +v_isShared_3232_ = v_isSharedCheck_3236_; +goto v_resetjp_3230_; } -v_resetjp_3299_: +v_resetjp_3230_: { -lean_object* v___x_3303_; -if (v_isShared_3301_ == 0) +lean_object* v___x_3234_; +if (v_isShared_3232_ == 0) { -v___x_3303_ = v___x_3300_; -goto v_reusejp_3302_; +v___x_3234_ = v___x_3231_; +goto v_reusejp_3233_; } else { -lean_object* v_reuseFailAlloc_3304_; -v_reuseFailAlloc_3304_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3304_, 0, v_a_3298_); -v___x_3303_ = v_reuseFailAlloc_3304_; -goto v_reusejp_3302_; +lean_object* v_reuseFailAlloc_3235_; +v_reuseFailAlloc_3235_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3235_, 0, v_a_3229_); +v___x_3234_ = v_reuseFailAlloc_3235_; +goto v_reusejp_3233_; } -v_reusejp_3302_: +v_reusejp_3233_: { -return v___x_3303_; +return v___x_3234_; } } } } else { -lean_dec_ref(v_val_3191_); -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -lean_dec_ref(v_expectedType_3033_); -return v___x_3192_; +lean_dec_ref(v_val_3122_); +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +lean_dec_ref(v_expectedType_2965_); +return v___x_3123_; } } else { -lean_dec(v_a_3190_); -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -v___y_3166_ = v___y_3042_; -v___y_3167_ = v___y_3043_; -v___y_3168_ = v___y_3044_; -v___y_3169_ = v___y_3045_; -goto v___jp_3165_; +lean_dec(v_a_3121_); +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +v___y_3097_ = v___y_2974_; +v___y_3098_ = v___y_2975_; +v___y_3099_ = v___y_2976_; +v___y_3100_ = v___y_2977_; +goto v___jp_3096_; } } else { -lean_object* v_a_3306_; lean_object* v___x_3308_; uint8_t v_isShared_3309_; uint8_t v_isSharedCheck_3313_; -lean_dec_ref(v_x_3040_); -lean_dec_ref(v_x_3039_); -lean_dec(v_val_3038_); -lean_dec_ref(v_expectedType_3033_); -lean_dec_ref(v_inst_3032_); -v_a_3306_ = lean_ctor_get(v___x_3189_, 0); -v_isSharedCheck_3313_ = !lean_is_exclusive(v___x_3189_); -if (v_isSharedCheck_3313_ == 0) +lean_object* v_a_3237_; lean_object* v___x_3239_; uint8_t v_isShared_3240_; uint8_t v_isSharedCheck_3244_; +lean_dec_ref(v_x_2972_); +lean_dec_ref(v_x_2971_); +lean_dec(v_val_2970_); +lean_dec_ref(v_expectedType_2965_); +lean_dec_ref(v_inst_2964_); +v_a_3237_ = lean_ctor_get(v___x_3120_, 0); +v_isSharedCheck_3244_ = !lean_is_exclusive(v___x_3120_); +if (v_isSharedCheck_3244_ == 0) { -v___x_3308_ = v___x_3189_; -v_isShared_3309_ = v_isSharedCheck_3313_; -goto v_resetjp_3307_; +v___x_3239_ = v___x_3120_; +v_isShared_3240_ = v_isSharedCheck_3244_; +goto v_resetjp_3238_; } else { -lean_inc(v_a_3306_); -lean_dec(v___x_3189_); -v___x_3308_ = lean_box(0); -v_isShared_3309_ = v_isSharedCheck_3313_; -goto v_resetjp_3307_; +lean_inc(v_a_3237_); +lean_dec(v___x_3120_); +v___x_3239_ = lean_box(0); +v_isShared_3240_ = v_isSharedCheck_3244_; +goto v_resetjp_3238_; } -v_resetjp_3307_: +v_resetjp_3238_: { -lean_object* v___x_3311_; -if (v_isShared_3309_ == 0) +lean_object* v___x_3242_; +if (v_isShared_3240_ == 0) { -v___x_3311_ = v___x_3308_; -goto v_reusejp_3310_; +v___x_3242_ = v___x_3239_; +goto v_reusejp_3241_; } else { -lean_object* v_reuseFailAlloc_3312_; -v_reuseFailAlloc_3312_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3312_, 0, v_a_3306_); -v___x_3311_ = v_reuseFailAlloc_3312_; -goto v_reusejp_3310_; +lean_object* v_reuseFailAlloc_3243_; +v_reuseFailAlloc_3243_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3243_, 0, v_a_3237_); +v___x_3242_ = v_reuseFailAlloc_3243_; +goto v_reusejp_3241_; } -v_reusejp_3310_: +v_reusejp_3241_: { -return v___x_3311_; +return v___x_3242_; } } } } -v___jp_3093_: +v___jp_3025_: { -lean_object* v___x_3099_; uint8_t v___x_3100_; -v___x_3099_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_3100_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3097_, v___x_3099_); -if (v___x_3100_ == 0) +lean_object* v___x_3031_; uint8_t v___x_3032_; +v___x_3031_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_3032_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3029_, v___x_3031_); +if (v___x_3032_ == 0) { -lean_object* v___x_3101_; -lean_dec_ref(v_expectedType_3033_); -v___x_3101_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3101_, 0, v_inst_3032_); -return v___x_3101_; +lean_object* v___x_3033_; +lean_dec_ref(v_expectedType_2965_); +v___x_3033_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3033_, 0, v_inst_2964_); +return v___x_3033_; } else { -lean_object* v___x_3102_; -lean_inc(v___y_3098_); -lean_inc_ref(v___y_3096_); -lean_inc(v___y_3095_); -lean_inc_ref(v___y_3094_); -lean_inc_ref(v_inst_3032_); -v___x_3102_ = lean_infer_type(v_inst_3032_, v___y_3094_, v___y_3095_, v___y_3096_, v___y_3098_); -if (lean_obj_tag(v___x_3102_) == 0) +lean_object* v___x_3034_; +lean_inc(v___y_3030_); +lean_inc_ref(v___y_3028_); +lean_inc(v___y_3027_); +lean_inc_ref(v___y_3026_); +lean_inc_ref(v_inst_2964_); +v___x_3034_ = lean_infer_type(v_inst_2964_, v___y_3026_, v___y_3027_, v___y_3028_, v___y_3030_); +if (lean_obj_tag(v___x_3034_) == 0) { -lean_object* v_a_3103_; lean_object* v___x_3104_; -v_a_3103_ = lean_ctor_get(v___x_3102_, 0); -lean_inc(v_a_3103_); -lean_dec_ref(v___x_3102_); -lean_inc_ref(v_expectedType_3033_); -v___x_3104_ = l_Lean_Meta_isExprDefEq(v_expectedType_3033_, v_a_3103_, v___y_3094_, v___y_3095_, v___y_3096_, v___y_3098_); -if (lean_obj_tag(v___x_3104_) == 0) +lean_object* v_a_3035_; lean_object* v___x_3036_; +v_a_3035_ = lean_ctor_get(v___x_3034_, 0); +lean_inc(v_a_3035_); +lean_dec_ref(v___x_3034_); +lean_inc_ref(v_expectedType_2965_); +v___x_3036_ = l_Lean_Meta_isExprDefEq(v_expectedType_2965_, v_a_3035_, v___y_3026_, v___y_3027_, v___y_3028_, v___y_3030_); +if (lean_obj_tag(v___x_3036_) == 0) { -lean_object* v_a_3105_; lean_object* v___x_3107_; uint8_t v_isShared_3108_; uint8_t v_isSharedCheck_3155_; -v_a_3105_ = lean_ctor_get(v___x_3104_, 0); -v_isSharedCheck_3155_ = !lean_is_exclusive(v___x_3104_); -if (v_isSharedCheck_3155_ == 0) +lean_object* v_a_3037_; lean_object* v___x_3039_; uint8_t v_isShared_3040_; uint8_t v_isSharedCheck_3086_; +v_a_3037_ = lean_ctor_get(v___x_3036_, 0); +v_isSharedCheck_3086_ = !lean_is_exclusive(v___x_3036_); +if (v_isSharedCheck_3086_ == 0) { -v___x_3107_ = v___x_3104_; -v_isShared_3108_ = v_isSharedCheck_3155_; -goto v_resetjp_3106_; +v___x_3039_ = v___x_3036_; +v_isShared_3040_ = v_isSharedCheck_3086_; +goto v_resetjp_3038_; } else { -lean_inc(v_a_3105_); -lean_dec(v___x_3104_); -v___x_3107_ = lean_box(0); -v_isShared_3108_ = v_isSharedCheck_3155_; -goto v_resetjp_3106_; +lean_inc(v_a_3037_); +lean_dec(v___x_3036_); +v___x_3039_ = lean_box(0); +v_isShared_3040_ = v_isSharedCheck_3086_; +goto v_resetjp_3038_; } -v_resetjp_3106_: +v_resetjp_3038_: { -uint8_t v___x_3109_; -v___x_3109_ = lean_unbox(v_a_3105_); -lean_dec(v_a_3105_); -if (v___x_3109_ == 0) +uint8_t v___x_3041_; +v___x_3041_ = lean_unbox(v_a_3037_); +lean_dec(v_a_3037_); +if (v___x_3041_ == 0) { -lean_object* v___x_3110_; lean_object* v___x_3111_; lean_object* v_a_3112_; lean_object* v___x_3113_; -lean_del_object(v___x_3107_); -v___x_3110_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_3111_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_3110_, v___y_3098_); -v_a_3112_ = lean_ctor_get(v___x_3111_, 0); -lean_inc_n(v_a_3112_, 2); -lean_dec_ref(v___x_3111_); -v___x_3113_ = l_Lean_Meta_mkAuxDefinition(v_a_3112_, v_expectedType_3033_, v_inst_3032_, v___x_3034_, v___x_3034_, v___x_3092_, v___y_3094_, v___y_3095_, v___y_3096_, v___y_3098_); -if (lean_obj_tag(v___x_3113_) == 0) +lean_object* v___x_3042_; lean_object* v___x_3043_; lean_object* v_a_3044_; lean_object* v___x_3045_; +lean_del_object(v___x_3039_); +v___x_3042_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_3043_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_3042_, v___y_3030_); +v_a_3044_ = lean_ctor_get(v___x_3043_, 0); +lean_inc_n(v_a_3044_, 2); +lean_dec_ref(v___x_3043_); +v___x_3045_ = l_Lean_Meta_mkAuxDefinition(v_a_3044_, v_expectedType_2965_, v_inst_2964_, v___x_2966_, v___x_2966_, v___x_3024_, v___y_3026_, v___y_3027_, v___y_3028_, v___y_3030_); +if (lean_obj_tag(v___x_3045_) == 0) { -lean_object* v_a_3114_; uint8_t v___x_3115_; lean_object* v___x_3116_; -v_a_3114_ = lean_ctor_get(v___x_3113_, 0); -lean_inc(v_a_3114_); -lean_dec_ref(v___x_3113_); -v___x_3115_ = 3; -lean_inc(v_a_3112_); -v___x_3116_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_3112_, v___x_3115_, v___y_3095_, v___y_3098_); -lean_dec_ref(v___x_3116_); -if (v_isMeta_3037_ == 0) +if (v_isMeta_2969_ == 0) { -v___y_3070_ = v_a_3114_; -v___y_3071_ = v_a_3112_; -v___y_3072_ = v___y_3096_; -v___y_3073_ = v___y_3098_; -goto v___jp_3069_; +lean_object* v_a_3046_; +v_a_3046_ = lean_ctor_get(v___x_3045_, 0); +lean_inc(v_a_3046_); +lean_dec_ref(v___x_3045_); +v___y_3002_ = v_a_3046_; +v___y_3003_ = v_a_3044_; +v___y_3004_ = v___y_3028_; +v___y_3005_ = v___y_3030_; +goto v___jp_3001_; } else { -lean_object* v___x_3117_; lean_object* v_env_3118_; lean_object* v_nextMacroScope_3119_; lean_object* v_ngen_3120_; lean_object* v_auxDeclNGen_3121_; lean_object* v_traceState_3122_; lean_object* v_messages_3123_; lean_object* v_infoState_3124_; lean_object* v_snapshotTasks_3125_; lean_object* v___x_3127_; uint8_t v_isShared_3128_; uint8_t v_isSharedCheck_3150_; -v___x_3117_ = lean_st_ref_take(v___y_3098_); -v_env_3118_ = lean_ctor_get(v___x_3117_, 0); -v_nextMacroScope_3119_ = lean_ctor_get(v___x_3117_, 1); -v_ngen_3120_ = lean_ctor_get(v___x_3117_, 2); -v_auxDeclNGen_3121_ = lean_ctor_get(v___x_3117_, 3); -v_traceState_3122_ = lean_ctor_get(v___x_3117_, 4); -v_messages_3123_ = lean_ctor_get(v___x_3117_, 6); -v_infoState_3124_ = lean_ctor_get(v___x_3117_, 7); -v_snapshotTasks_3125_ = lean_ctor_get(v___x_3117_, 8); -v_isSharedCheck_3150_ = !lean_is_exclusive(v___x_3117_); -if (v_isSharedCheck_3150_ == 0) +lean_object* v_a_3047_; lean_object* v___x_3048_; lean_object* v_env_3049_; lean_object* v_nextMacroScope_3050_; lean_object* v_ngen_3051_; lean_object* v_auxDeclNGen_3052_; lean_object* v_traceState_3053_; lean_object* v_messages_3054_; lean_object* v_infoState_3055_; lean_object* v_snapshotTasks_3056_; lean_object* v___x_3058_; uint8_t v_isShared_3059_; uint8_t v_isSharedCheck_3081_; +v_a_3047_ = lean_ctor_get(v___x_3045_, 0); +lean_inc(v_a_3047_); +lean_dec_ref(v___x_3045_); +v___x_3048_ = lean_st_ref_take(v___y_3030_); +v_env_3049_ = lean_ctor_get(v___x_3048_, 0); +v_nextMacroScope_3050_ = lean_ctor_get(v___x_3048_, 1); +v_ngen_3051_ = lean_ctor_get(v___x_3048_, 2); +v_auxDeclNGen_3052_ = lean_ctor_get(v___x_3048_, 3); +v_traceState_3053_ = lean_ctor_get(v___x_3048_, 4); +v_messages_3054_ = lean_ctor_get(v___x_3048_, 6); +v_infoState_3055_ = lean_ctor_get(v___x_3048_, 7); +v_snapshotTasks_3056_ = lean_ctor_get(v___x_3048_, 8); +v_isSharedCheck_3081_ = !lean_is_exclusive(v___x_3048_); +if (v_isSharedCheck_3081_ == 0) { -lean_object* v_unused_3151_; -v_unused_3151_ = lean_ctor_get(v___x_3117_, 5); -lean_dec(v_unused_3151_); -v___x_3127_ = v___x_3117_; -v_isShared_3128_ = v_isSharedCheck_3150_; -goto v_resetjp_3126_; +lean_object* v_unused_3082_; +v_unused_3082_ = lean_ctor_get(v___x_3048_, 5); +lean_dec(v_unused_3082_); +v___x_3058_ = v___x_3048_; +v_isShared_3059_ = v_isSharedCheck_3081_; +goto v_resetjp_3057_; } else { -lean_inc(v_snapshotTasks_3125_); -lean_inc(v_infoState_3124_); -lean_inc(v_messages_3123_); -lean_inc(v_traceState_3122_); -lean_inc(v_auxDeclNGen_3121_); -lean_inc(v_ngen_3120_); -lean_inc(v_nextMacroScope_3119_); -lean_inc(v_env_3118_); -lean_dec(v___x_3117_); -v___x_3127_ = lean_box(0); -v_isShared_3128_ = v_isSharedCheck_3150_; -goto v_resetjp_3126_; +lean_inc(v_snapshotTasks_3056_); +lean_inc(v_infoState_3055_); +lean_inc(v_messages_3054_); +lean_inc(v_traceState_3053_); +lean_inc(v_auxDeclNGen_3052_); +lean_inc(v_ngen_3051_); +lean_inc(v_nextMacroScope_3050_); +lean_inc(v_env_3049_); +lean_dec(v___x_3048_); +v___x_3058_ = lean_box(0); +v_isShared_3059_ = v_isSharedCheck_3081_; +goto v_resetjp_3057_; } -v_resetjp_3126_: +v_resetjp_3057_: { -lean_object* v___x_3129_; lean_object* v___x_3130_; lean_object* v___x_3132_; -lean_inc(v_a_3112_); -v___x_3129_ = l_Lean_markMeta(v_env_3118_, v_a_3112_); -v___x_3130_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_3128_ == 0) +lean_object* v___x_3060_; lean_object* v___x_3061_; lean_object* v___x_3063_; +lean_inc(v_a_3044_); +v___x_3060_ = l_Lean_markMeta(v_env_3049_, v_a_3044_); +v___x_3061_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_3059_ == 0) { -lean_ctor_set(v___x_3127_, 5, v___x_3130_); -lean_ctor_set(v___x_3127_, 0, v___x_3129_); -v___x_3132_ = v___x_3127_; -goto v_reusejp_3131_; +lean_ctor_set(v___x_3058_, 5, v___x_3061_); +lean_ctor_set(v___x_3058_, 0, v___x_3060_); +v___x_3063_ = v___x_3058_; +goto v_reusejp_3062_; } else { -lean_object* v_reuseFailAlloc_3149_; -v_reuseFailAlloc_3149_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_3149_, 0, v___x_3129_); -lean_ctor_set(v_reuseFailAlloc_3149_, 1, v_nextMacroScope_3119_); -lean_ctor_set(v_reuseFailAlloc_3149_, 2, v_ngen_3120_); -lean_ctor_set(v_reuseFailAlloc_3149_, 3, v_auxDeclNGen_3121_); -lean_ctor_set(v_reuseFailAlloc_3149_, 4, v_traceState_3122_); -lean_ctor_set(v_reuseFailAlloc_3149_, 5, v___x_3130_); -lean_ctor_set(v_reuseFailAlloc_3149_, 6, v_messages_3123_); -lean_ctor_set(v_reuseFailAlloc_3149_, 7, v_infoState_3124_); -lean_ctor_set(v_reuseFailAlloc_3149_, 8, v_snapshotTasks_3125_); -v___x_3132_ = v_reuseFailAlloc_3149_; -goto v_reusejp_3131_; +lean_object* v_reuseFailAlloc_3080_; +v_reuseFailAlloc_3080_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_3080_, 0, v___x_3060_); +lean_ctor_set(v_reuseFailAlloc_3080_, 1, v_nextMacroScope_3050_); +lean_ctor_set(v_reuseFailAlloc_3080_, 2, v_ngen_3051_); +lean_ctor_set(v_reuseFailAlloc_3080_, 3, v_auxDeclNGen_3052_); +lean_ctor_set(v_reuseFailAlloc_3080_, 4, v_traceState_3053_); +lean_ctor_set(v_reuseFailAlloc_3080_, 5, v___x_3061_); +lean_ctor_set(v_reuseFailAlloc_3080_, 6, v_messages_3054_); +lean_ctor_set(v_reuseFailAlloc_3080_, 7, v_infoState_3055_); +lean_ctor_set(v_reuseFailAlloc_3080_, 8, v_snapshotTasks_3056_); +v___x_3063_ = v_reuseFailAlloc_3080_; +goto v_reusejp_3062_; } -v_reusejp_3131_: +v_reusejp_3062_: { -lean_object* v___x_3133_; lean_object* v___x_3134_; lean_object* v_mctx_3135_; lean_object* v_zetaDeltaFVarIds_3136_; lean_object* v_postponed_3137_; lean_object* v_diag_3138_; lean_object* v___x_3140_; uint8_t v_isShared_3141_; uint8_t v_isSharedCheck_3147_; -v___x_3133_ = lean_st_ref_set(v___y_3098_, v___x_3132_); -v___x_3134_ = lean_st_ref_take(v___y_3095_); -v_mctx_3135_ = lean_ctor_get(v___x_3134_, 0); -v_zetaDeltaFVarIds_3136_ = lean_ctor_get(v___x_3134_, 2); -v_postponed_3137_ = lean_ctor_get(v___x_3134_, 3); -v_diag_3138_ = lean_ctor_get(v___x_3134_, 4); -v_isSharedCheck_3147_ = !lean_is_exclusive(v___x_3134_); -if (v_isSharedCheck_3147_ == 0) +lean_object* v___x_3064_; lean_object* v___x_3065_; lean_object* v_mctx_3066_; lean_object* v_zetaDeltaFVarIds_3067_; lean_object* v_postponed_3068_; lean_object* v_diag_3069_; lean_object* v___x_3071_; uint8_t v_isShared_3072_; uint8_t v_isSharedCheck_3078_; +v___x_3064_ = lean_st_ref_set(v___y_3030_, v___x_3063_); +v___x_3065_ = lean_st_ref_take(v___y_3027_); +v_mctx_3066_ = lean_ctor_get(v___x_3065_, 0); +v_zetaDeltaFVarIds_3067_ = lean_ctor_get(v___x_3065_, 2); +v_postponed_3068_ = lean_ctor_get(v___x_3065_, 3); +v_diag_3069_ = lean_ctor_get(v___x_3065_, 4); +v_isSharedCheck_3078_ = !lean_is_exclusive(v___x_3065_); +if (v_isSharedCheck_3078_ == 0) { -lean_object* v_unused_3148_; -v_unused_3148_ = lean_ctor_get(v___x_3134_, 1); -lean_dec(v_unused_3148_); -v___x_3140_ = v___x_3134_; -v_isShared_3141_ = v_isSharedCheck_3147_; -goto v_resetjp_3139_; +lean_object* v_unused_3079_; +v_unused_3079_ = lean_ctor_get(v___x_3065_, 1); +lean_dec(v_unused_3079_); +v___x_3071_ = v___x_3065_; +v_isShared_3072_ = v_isSharedCheck_3078_; +goto v_resetjp_3070_; } else { -lean_inc(v_diag_3138_); -lean_inc(v_postponed_3137_); -lean_inc(v_zetaDeltaFVarIds_3136_); -lean_inc(v_mctx_3135_); -lean_dec(v___x_3134_); -v___x_3140_ = lean_box(0); -v_isShared_3141_ = v_isSharedCheck_3147_; -goto v_resetjp_3139_; +lean_inc(v_diag_3069_); +lean_inc(v_postponed_3068_); +lean_inc(v_zetaDeltaFVarIds_3067_); +lean_inc(v_mctx_3066_); +lean_dec(v___x_3065_); +v___x_3071_ = lean_box(0); +v_isShared_3072_ = v_isSharedCheck_3078_; +goto v_resetjp_3070_; } -v_resetjp_3139_: +v_resetjp_3070_: { -lean_object* v___x_3142_; lean_object* v___x_3144_; -v___x_3142_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_3141_ == 0) +lean_object* v___x_3073_; lean_object* v___x_3075_; +v___x_3073_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_3072_ == 0) { -lean_ctor_set(v___x_3140_, 1, v___x_3142_); -v___x_3144_ = v___x_3140_; -goto v_reusejp_3143_; +lean_ctor_set(v___x_3071_, 1, v___x_3073_); +v___x_3075_ = v___x_3071_; +goto v_reusejp_3074_; } else { -lean_object* v_reuseFailAlloc_3146_; -v_reuseFailAlloc_3146_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_3146_, 0, v_mctx_3135_); -lean_ctor_set(v_reuseFailAlloc_3146_, 1, v___x_3142_); -lean_ctor_set(v_reuseFailAlloc_3146_, 2, v_zetaDeltaFVarIds_3136_); -lean_ctor_set(v_reuseFailAlloc_3146_, 3, v_postponed_3137_); -lean_ctor_set(v_reuseFailAlloc_3146_, 4, v_diag_3138_); -v___x_3144_ = v_reuseFailAlloc_3146_; -goto v_reusejp_3143_; +lean_object* v_reuseFailAlloc_3077_; +v_reuseFailAlloc_3077_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_3077_, 0, v_mctx_3066_); +lean_ctor_set(v_reuseFailAlloc_3077_, 1, v___x_3073_); +lean_ctor_set(v_reuseFailAlloc_3077_, 2, v_zetaDeltaFVarIds_3067_); +lean_ctor_set(v_reuseFailAlloc_3077_, 3, v_postponed_3068_); +lean_ctor_set(v_reuseFailAlloc_3077_, 4, v_diag_3069_); +v___x_3075_ = v_reuseFailAlloc_3077_; +goto v_reusejp_3074_; } -v_reusejp_3143_: +v_reusejp_3074_: { -lean_object* v___x_3145_; -v___x_3145_ = lean_st_ref_set(v___y_3095_, v___x_3144_); -v___y_3070_ = v_a_3114_; -v___y_3071_ = v_a_3112_; -v___y_3072_ = v___y_3096_; -v___y_3073_ = v___y_3098_; -goto v___jp_3069_; +lean_object* v___x_3076_; +v___x_3076_ = lean_st_ref_set(v___y_3027_, v___x_3075_); +v___y_3002_ = v_a_3047_; +v___y_3003_ = v_a_3044_; +v___y_3004_ = v___y_3028_; +v___y_3005_ = v___y_3030_; +goto v___jp_3001_; } } } @@ -11108,176 +10936,176 @@ goto v___jp_3069_; } else { -lean_dec(v_a_3112_); -return v___x_3113_; +lean_dec(v_a_3044_); +return v___x_3045_; } } else { -lean_object* v___x_3153_; -lean_dec_ref(v_expectedType_3033_); -if (v_isShared_3108_ == 0) +lean_object* v___x_3084_; +lean_dec_ref(v_expectedType_2965_); +if (v_isShared_3040_ == 0) { -lean_ctor_set(v___x_3107_, 0, v_inst_3032_); -v___x_3153_ = v___x_3107_; -goto v_reusejp_3152_; +lean_ctor_set(v___x_3039_, 0, v_inst_2964_); +v___x_3084_ = v___x_3039_; +goto v_reusejp_3083_; } else { -lean_object* v_reuseFailAlloc_3154_; -v_reuseFailAlloc_3154_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3154_, 0, v_inst_3032_); -v___x_3153_ = v_reuseFailAlloc_3154_; -goto v_reusejp_3152_; +lean_object* v_reuseFailAlloc_3085_; +v_reuseFailAlloc_3085_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3085_, 0, v_inst_2964_); +v___x_3084_ = v_reuseFailAlloc_3085_; +goto v_reusejp_3083_; } -v_reusejp_3152_: +v_reusejp_3083_: { -return v___x_3153_; +return v___x_3084_; } } } } else { -lean_object* v_a_3156_; lean_object* v___x_3158_; uint8_t v_isShared_3159_; uint8_t v_isSharedCheck_3163_; -lean_dec_ref(v_expectedType_3033_); -lean_dec_ref(v_inst_3032_); -v_a_3156_ = lean_ctor_get(v___x_3104_, 0); -v_isSharedCheck_3163_ = !lean_is_exclusive(v___x_3104_); -if (v_isSharedCheck_3163_ == 0) +lean_object* v_a_3087_; lean_object* v___x_3089_; uint8_t v_isShared_3090_; uint8_t v_isSharedCheck_3094_; +lean_dec_ref(v_expectedType_2965_); +lean_dec_ref(v_inst_2964_); +v_a_3087_ = lean_ctor_get(v___x_3036_, 0); +v_isSharedCheck_3094_ = !lean_is_exclusive(v___x_3036_); +if (v_isSharedCheck_3094_ == 0) { -v___x_3158_ = v___x_3104_; -v_isShared_3159_ = v_isSharedCheck_3163_; -goto v_resetjp_3157_; +v___x_3089_ = v___x_3036_; +v_isShared_3090_ = v_isSharedCheck_3094_; +goto v_resetjp_3088_; } else { -lean_inc(v_a_3156_); -lean_dec(v___x_3104_); -v___x_3158_ = lean_box(0); -v_isShared_3159_ = v_isSharedCheck_3163_; -goto v_resetjp_3157_; +lean_inc(v_a_3087_); +lean_dec(v___x_3036_); +v___x_3089_ = lean_box(0); +v_isShared_3090_ = v_isSharedCheck_3094_; +goto v_resetjp_3088_; } -v_resetjp_3157_: +v_resetjp_3088_: { -lean_object* v___x_3161_; -if (v_isShared_3159_ == 0) +lean_object* v___x_3092_; +if (v_isShared_3090_ == 0) { -v___x_3161_ = v___x_3158_; -goto v_reusejp_3160_; +v___x_3092_ = v___x_3089_; +goto v_reusejp_3091_; } else { -lean_object* v_reuseFailAlloc_3162_; -v_reuseFailAlloc_3162_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3162_, 0, v_a_3156_); -v___x_3161_ = v_reuseFailAlloc_3162_; -goto v_reusejp_3160_; +lean_object* v_reuseFailAlloc_3093_; +v_reuseFailAlloc_3093_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3093_, 0, v_a_3087_); +v___x_3092_ = v_reuseFailAlloc_3093_; +goto v_reusejp_3091_; } -v_reusejp_3160_: +v_reusejp_3091_: { -return v___x_3161_; +return v___x_3092_; } } } } else { -lean_dec_ref(v_expectedType_3033_); -lean_dec_ref(v_inst_3032_); -return v___x_3102_; +lean_dec_ref(v_expectedType_2965_); +lean_dec_ref(v_inst_2964_); +return v___x_3034_; } } } -v___jp_3165_: +v___jp_3096_: { -lean_object* v_options_3170_; uint8_t v_hasTrace_3171_; -v_options_3170_ = lean_ctor_get(v___y_3168_, 2); -v_hasTrace_3171_ = lean_ctor_get_uint8(v_options_3170_, sizeof(void*)*1); -if (v_hasTrace_3171_ == 0) +lean_object* v_options_3101_; uint8_t v_hasTrace_3102_; +v_options_3101_ = lean_ctor_get(v___y_3099_, 2); +v_hasTrace_3102_ = lean_ctor_get_uint8(v_options_3101_, sizeof(void*)*1); +if (v_hasTrace_3102_ == 0) { -v___y_3094_ = v___y_3166_; -v___y_3095_ = v___y_3167_; -v___y_3096_ = v___y_3168_; -v_options_3097_ = v_options_3170_; -v___y_3098_ = v___y_3169_; -goto v___jp_3093_; +v___y_3026_ = v___y_3097_; +v___y_3027_ = v___y_3098_; +v___y_3028_ = v___y_3099_; +v_options_3029_ = v_options_3101_; +v___y_3030_ = v___y_3100_; +goto v___jp_3025_; } else { -lean_object* v_inheritedTraceOptions_3172_; lean_object* v___x_3173_; uint8_t v___x_3174_; -v_inheritedTraceOptions_3172_ = lean_ctor_get(v___y_3168_, 13); -v___x_3173_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_3174_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_3172_, v_options_3170_, v___x_3173_); -if (v___x_3174_ == 0) +lean_object* v_inheritedTraceOptions_3103_; lean_object* v___x_3104_; uint8_t v___x_3105_; +v_inheritedTraceOptions_3103_ = lean_ctor_get(v___y_3099_, 13); +v___x_3104_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_3105_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_3103_, v_options_3101_, v___x_3104_); +if (v___x_3105_ == 0) { -v___y_3094_ = v___y_3166_; -v___y_3095_ = v___y_3167_; -v___y_3096_ = v___y_3168_; -v_options_3097_ = v_options_3170_; -v___y_3098_ = v___y_3169_; -goto v___jp_3093_; +v___y_3026_ = v___y_3097_; +v___y_3027_ = v___y_3098_; +v___y_3028_ = v___y_3099_; +v_options_3029_ = v_options_3101_; +v___y_3030_ = v___y_3100_; +goto v___jp_3025_; } else { -lean_object* v___x_3175_; lean_object* v___x_3176_; lean_object* v___x_3177_; lean_object* v___x_3178_; -v___x_3175_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_3032_); -v___x_3176_ = l_Lean_MessageData_ofExpr(v_inst_3032_); -v___x_3177_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3177_, 0, v___x_3175_); -lean_ctor_set(v___x_3177_, 1, v___x_3176_); -v___x_3178_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3164_, v___x_3177_, v___y_3166_, v___y_3167_, v___y_3168_, v___y_3169_); -if (lean_obj_tag(v___x_3178_) == 0) +lean_object* v___x_3106_; lean_object* v___x_3107_; lean_object* v___x_3108_; lean_object* v___x_3109_; +v___x_3106_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_2964_); +v___x_3107_ = l_Lean_MessageData_ofExpr(v_inst_2964_); +v___x_3108_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3108_, 0, v___x_3106_); +lean_ctor_set(v___x_3108_, 1, v___x_3107_); +v___x_3109_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3095_, v___x_3108_, v___y_3097_, v___y_3098_, v___y_3099_, v___y_3100_); +if (lean_obj_tag(v___x_3109_) == 0) { -lean_dec_ref(v___x_3178_); -v___y_3094_ = v___y_3166_; -v___y_3095_ = v___y_3167_; -v___y_3096_ = v___y_3168_; -v_options_3097_ = v_options_3170_; -v___y_3098_ = v___y_3169_; -goto v___jp_3093_; +lean_dec_ref(v___x_3109_); +v___y_3026_ = v___y_3097_; +v___y_3027_ = v___y_3098_; +v___y_3028_ = v___y_3099_; +v_options_3029_ = v_options_3101_; +v___y_3030_ = v___y_3100_; +goto v___jp_3025_; } else { -lean_object* v_a_3179_; lean_object* v___x_3181_; uint8_t v_isShared_3182_; uint8_t v_isSharedCheck_3186_; -lean_dec_ref(v_expectedType_3033_); -lean_dec_ref(v_inst_3032_); -v_a_3179_ = lean_ctor_get(v___x_3178_, 0); -v_isSharedCheck_3186_ = !lean_is_exclusive(v___x_3178_); -if (v_isSharedCheck_3186_ == 0) +lean_object* v_a_3110_; lean_object* v___x_3112_; uint8_t v_isShared_3113_; uint8_t v_isSharedCheck_3117_; +lean_dec_ref(v_expectedType_2965_); +lean_dec_ref(v_inst_2964_); +v_a_3110_ = lean_ctor_get(v___x_3109_, 0); +v_isSharedCheck_3117_ = !lean_is_exclusive(v___x_3109_); +if (v_isSharedCheck_3117_ == 0) { -v___x_3181_ = v___x_3178_; -v_isShared_3182_ = v_isSharedCheck_3186_; -goto v_resetjp_3180_; +v___x_3112_ = v___x_3109_; +v_isShared_3113_ = v_isSharedCheck_3117_; +goto v_resetjp_3111_; } else { -lean_inc(v_a_3179_); -lean_dec(v___x_3178_); -v___x_3181_ = lean_box(0); -v_isShared_3182_ = v_isSharedCheck_3186_; -goto v_resetjp_3180_; +lean_inc(v_a_3110_); +lean_dec(v___x_3109_); +v___x_3112_ = lean_box(0); +v_isShared_3113_ = v_isSharedCheck_3117_; +goto v_resetjp_3111_; } -v_resetjp_3180_: +v_resetjp_3111_: { -lean_object* v___x_3184_; -if (v_isShared_3182_ == 0) +lean_object* v___x_3115_; +if (v_isShared_3113_ == 0) { -v___x_3184_ = v___x_3181_; -goto v_reusejp_3183_; +v___x_3115_ = v___x_3112_; +goto v_reusejp_3114_; } else { -lean_object* v_reuseFailAlloc_3185_; -v_reuseFailAlloc_3185_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3185_, 0, v_a_3179_); -v___x_3184_ = v_reuseFailAlloc_3185_; -goto v_reusejp_3183_; +lean_object* v_reuseFailAlloc_3116_; +v_reuseFailAlloc_3116_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3116_, 0, v_a_3110_); +v___x_3115_ = v_reuseFailAlloc_3116_; +goto v_reusejp_3114_; } -v_reusejp_3183_: +v_reusejp_3114_: { -return v___x_3184_; +return v___x_3115_; } } } @@ -11285,163 +11113,163 @@ return v___x_3184_; } } } -v___jp_3047_: +v___jp_2979_: { -lean_object* v___x_3052_; -v___x_3052_ = l_Lean_enableRealizationsForConst(v___y_3049_, v___y_3050_, v___y_3051_); -if (lean_obj_tag(v___x_3052_) == 0) +lean_object* v___x_2984_; +v___x_2984_ = l_Lean_enableRealizationsForConst(v___y_2981_, v___y_2982_, v___y_2983_); +if (lean_obj_tag(v___x_2984_) == 0) { -lean_object* v___x_3054_; uint8_t v_isShared_3055_; uint8_t v_isSharedCheck_3059_; -v_isSharedCheck_3059_ = !lean_is_exclusive(v___x_3052_); -if (v_isSharedCheck_3059_ == 0) +lean_object* v___x_2986_; uint8_t v_isShared_2987_; uint8_t v_isSharedCheck_2991_; +v_isSharedCheck_2991_ = !lean_is_exclusive(v___x_2984_); +if (v_isSharedCheck_2991_ == 0) { -lean_object* v_unused_3060_; -v_unused_3060_ = lean_ctor_get(v___x_3052_, 0); -lean_dec(v_unused_3060_); -v___x_3054_ = v___x_3052_; -v_isShared_3055_ = v_isSharedCheck_3059_; -goto v_resetjp_3053_; +lean_object* v_unused_2992_; +v_unused_2992_ = lean_ctor_get(v___x_2984_, 0); +lean_dec(v_unused_2992_); +v___x_2986_ = v___x_2984_; +v_isShared_2987_ = v_isSharedCheck_2991_; +goto v_resetjp_2985_; } else { -lean_dec(v___x_3052_); -v___x_3054_ = lean_box(0); -v_isShared_3055_ = v_isSharedCheck_3059_; -goto v_resetjp_3053_; +lean_dec(v___x_2984_); +v___x_2986_ = lean_box(0); +v_isShared_2987_ = v_isSharedCheck_2991_; +goto v_resetjp_2985_; } -v_resetjp_3053_: +v_resetjp_2985_: { -lean_object* v___x_3057_; -if (v_isShared_3055_ == 0) +lean_object* v___x_2989_; +if (v_isShared_2987_ == 0) { -lean_ctor_set(v___x_3054_, 0, v___y_3048_); -v___x_3057_ = v___x_3054_; -goto v_reusejp_3056_; +lean_ctor_set(v___x_2986_, 0, v___y_2980_); +v___x_2989_ = v___x_2986_; +goto v_reusejp_2988_; } else { -lean_object* v_reuseFailAlloc_3058_; -v_reuseFailAlloc_3058_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3058_, 0, v___y_3048_); -v___x_3057_ = v_reuseFailAlloc_3058_; -goto v_reusejp_3056_; +lean_object* v_reuseFailAlloc_2990_; +v_reuseFailAlloc_2990_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2990_, 0, v___y_2980_); +v___x_2989_ = v_reuseFailAlloc_2990_; +goto v_reusejp_2988_; } -v_reusejp_3056_: +v_reusejp_2988_: { -return v___x_3057_; +return v___x_2989_; } } } else { -lean_object* v_a_3061_; lean_object* v___x_3063_; uint8_t v_isShared_3064_; uint8_t v_isSharedCheck_3068_; -lean_dec_ref(v___y_3048_); -v_a_3061_ = lean_ctor_get(v___x_3052_, 0); -v_isSharedCheck_3068_ = !lean_is_exclusive(v___x_3052_); -if (v_isSharedCheck_3068_ == 0) +lean_object* v_a_2993_; lean_object* v___x_2995_; uint8_t v_isShared_2996_; uint8_t v_isSharedCheck_3000_; +lean_dec_ref(v___y_2980_); +v_a_2993_ = lean_ctor_get(v___x_2984_, 0); +v_isSharedCheck_3000_ = !lean_is_exclusive(v___x_2984_); +if (v_isSharedCheck_3000_ == 0) { -v___x_3063_ = v___x_3052_; -v_isShared_3064_ = v_isSharedCheck_3068_; -goto v_resetjp_3062_; +v___x_2995_ = v___x_2984_; +v_isShared_2996_ = v_isSharedCheck_3000_; +goto v_resetjp_2994_; } else { -lean_inc(v_a_3061_); -lean_dec(v___x_3052_); -v___x_3063_ = lean_box(0); -v_isShared_3064_ = v_isSharedCheck_3068_; -goto v_resetjp_3062_; +lean_inc(v_a_2993_); +lean_dec(v___x_2984_); +v___x_2995_ = lean_box(0); +v_isShared_2996_ = v_isSharedCheck_3000_; +goto v_resetjp_2994_; } -v_resetjp_3062_: +v_resetjp_2994_: { -lean_object* v___x_3066_; -if (v_isShared_3064_ == 0) +lean_object* v___x_2998_; +if (v_isShared_2996_ == 0) { -v___x_3066_ = v___x_3063_; -goto v_reusejp_3065_; +v___x_2998_ = v___x_2995_; +goto v_reusejp_2997_; } else { -lean_object* v_reuseFailAlloc_3067_; -v_reuseFailAlloc_3067_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3067_, 0, v_a_3061_); -v___x_3066_ = v_reuseFailAlloc_3067_; -goto v_reusejp_3065_; +lean_object* v_reuseFailAlloc_2999_; +v_reuseFailAlloc_2999_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2999_, 0, v_a_2993_); +v___x_2998_ = v_reuseFailAlloc_2999_; +goto v_reusejp_2997_; } -v_reusejp_3065_: +v_reusejp_2997_: { -return v___x_3066_; +return v___x_2998_; } } } } -v___jp_3069_: +v___jp_3001_: { -if (v_compile_3035_ == 0) +if (v_compile_2967_ == 0) { -v___y_3048_ = v___y_3070_; -v___y_3049_ = v___y_3071_; -v___y_3050_ = v___y_3072_; -v___y_3051_ = v___y_3073_; -goto v___jp_3047_; +v___y_2980_ = v___y_3002_; +v___y_2981_ = v___y_3003_; +v___y_2982_ = v___y_3004_; +v___y_2983_ = v___y_3005_; +goto v___jp_2979_; } else { -lean_object* v___x_3074_; lean_object* v___x_3075_; lean_object* v___x_3076_; lean_object* v___x_3077_; -v___x_3074_ = lean_unsigned_to_nat(1u); -v___x_3075_ = lean_mk_empty_array_with_capacity(v___x_3074_); -lean_inc(v___y_3071_); -v___x_3076_ = lean_array_push(v___x_3075_, v___y_3071_); -v___x_3077_ = l_Lean_compileDecls(v___x_3076_, v_logCompileErrors_3036_, v___y_3072_, v___y_3073_); -if (lean_obj_tag(v___x_3077_) == 0) +lean_object* v___x_3006_; lean_object* v___x_3007_; lean_object* v___x_3008_; lean_object* v___x_3009_; +v___x_3006_ = lean_unsigned_to_nat(1u); +v___x_3007_ = lean_mk_empty_array_with_capacity(v___x_3006_); +lean_inc(v___y_3003_); +v___x_3008_ = lean_array_push(v___x_3007_, v___y_3003_); +v___x_3009_ = l_Lean_compileDecls(v___x_3008_, v_logCompileErrors_2968_, v___y_3004_, v___y_3005_); +if (lean_obj_tag(v___x_3009_) == 0) { -lean_dec_ref(v___x_3077_); -v___y_3048_ = v___y_3070_; -v___y_3049_ = v___y_3071_; -v___y_3050_ = v___y_3072_; -v___y_3051_ = v___y_3073_; -goto v___jp_3047_; +lean_dec_ref(v___x_3009_); +v___y_2980_ = v___y_3002_; +v___y_2981_ = v___y_3003_; +v___y_2982_ = v___y_3004_; +v___y_2983_ = v___y_3005_; +goto v___jp_2979_; } else { -lean_object* v_a_3078_; lean_object* v___x_3080_; uint8_t v_isShared_3081_; uint8_t v_isSharedCheck_3085_; -lean_dec(v___y_3071_); -lean_dec_ref(v___y_3070_); -v_a_3078_ = lean_ctor_get(v___x_3077_, 0); -v_isSharedCheck_3085_ = !lean_is_exclusive(v___x_3077_); -if (v_isSharedCheck_3085_ == 0) +lean_object* v_a_3010_; lean_object* v___x_3012_; uint8_t v_isShared_3013_; uint8_t v_isSharedCheck_3017_; +lean_dec(v___y_3003_); +lean_dec_ref(v___y_3002_); +v_a_3010_ = lean_ctor_get(v___x_3009_, 0); +v_isSharedCheck_3017_ = !lean_is_exclusive(v___x_3009_); +if (v_isSharedCheck_3017_ == 0) { -v___x_3080_ = v___x_3077_; -v_isShared_3081_ = v_isSharedCheck_3085_; -goto v_resetjp_3079_; +v___x_3012_ = v___x_3009_; +v_isShared_3013_ = v_isSharedCheck_3017_; +goto v_resetjp_3011_; } else { -lean_inc(v_a_3078_); -lean_dec(v___x_3077_); -v___x_3080_ = lean_box(0); -v_isShared_3081_ = v_isSharedCheck_3085_; -goto v_resetjp_3079_; +lean_inc(v_a_3010_); +lean_dec(v___x_3009_); +v___x_3012_ = lean_box(0); +v_isShared_3013_ = v_isSharedCheck_3017_; +goto v_resetjp_3011_; } -v_resetjp_3079_: +v_resetjp_3011_: { -lean_object* v___x_3083_; -if (v_isShared_3081_ == 0) +lean_object* v___x_3015_; +if (v_isShared_3013_ == 0) { -v___x_3083_ = v___x_3080_; -goto v_reusejp_3082_; +v___x_3015_ = v___x_3012_; +goto v_reusejp_3014_; } else { -lean_object* v_reuseFailAlloc_3084_; -v_reuseFailAlloc_3084_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3084_, 0, v_a_3078_); -v___x_3083_ = v_reuseFailAlloc_3084_; -goto v_reusejp_3082_; +lean_object* v_reuseFailAlloc_3016_; +v_reuseFailAlloc_3016_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3016_, 0, v_a_3010_); +v___x_3015_ = v_reuseFailAlloc_3016_; +goto v_reusejp_3014_; } -v_reusejp_3082_: +v_reusejp_3014_: { -return v___x_3083_; +return v___x_3015_; } } } @@ -11449,1181 +11277,871 @@ return v___x_3083_; } } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10(lean_object* v_inst_3314_, lean_object* v_expectedType_3315_, uint8_t v___x_3316_, uint8_t v_compile_3317_, uint8_t v_logCompileErrors_3318_, uint8_t v_isMeta_3319_, lean_object* v_val_3320_, lean_object* v_x_3321_, lean_object* v_x_3322_, lean_object* v_x_3323_, lean_object* v___y_3324_, lean_object* v___y_3325_, lean_object* v___y_3326_, lean_object* v___y_3327_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9(lean_object* v_inst_3245_, lean_object* v_expectedType_3246_, uint8_t v___x_3247_, uint8_t v_compile_3248_, uint8_t v_logCompileErrors_3249_, uint8_t v_isMeta_3250_, lean_object* v_val_3251_, lean_object* v_x_3252_, lean_object* v_x_3253_, lean_object* v_x_3254_, lean_object* v___y_3255_, lean_object* v___y_3256_, lean_object* v___y_3257_, lean_object* v___y_3258_){ _start: { -lean_object* v___y_3330_; lean_object* v___y_3331_; lean_object* v___y_3332_; lean_object* v___y_3333_; lean_object* v___y_3352_; lean_object* v___y_3353_; lean_object* v___y_3354_; lean_object* v___y_3355_; -if (lean_obj_tag(v_x_3321_) == 5) +lean_object* v___y_3261_; lean_object* v___y_3262_; lean_object* v___y_3263_; lean_object* v___y_3264_; lean_object* v___y_3283_; lean_object* v___y_3284_; lean_object* v___y_3285_; lean_object* v___y_3286_; +if (lean_obj_tag(v_x_3252_) == 5) { -lean_object* v_fn_3368_; lean_object* v_arg_3369_; lean_object* v___x_3370_; lean_object* v___x_3371_; lean_object* v___x_3372_; lean_object* v___x_3373_; -v_fn_3368_ = lean_ctor_get(v_x_3321_, 0); -lean_inc_ref(v_fn_3368_); -v_arg_3369_ = lean_ctor_get(v_x_3321_, 1); -lean_inc_ref(v_arg_3369_); -lean_dec_ref(v_x_3321_); -v___x_3370_ = lean_array_set(v_x_3322_, v_x_3323_, v_arg_3369_); -v___x_3371_ = lean_unsigned_to_nat(1u); -v___x_3372_ = lean_nat_sub(v_x_3323_, v___x_3371_); -v___x_3373_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12(v_inst_3314_, v_expectedType_3315_, v___x_3316_, v_compile_3317_, v_logCompileErrors_3318_, v_isMeta_3319_, v_val_3320_, v_fn_3368_, v___x_3370_, v___x_3372_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -return v___x_3373_; +lean_object* v_fn_3299_; lean_object* v_arg_3300_; lean_object* v___x_3301_; lean_object* v___x_3302_; lean_object* v___x_3303_; lean_object* v___x_3304_; +v_fn_3299_ = lean_ctor_get(v_x_3252_, 0); +lean_inc_ref(v_fn_3299_); +v_arg_3300_ = lean_ctor_get(v_x_3252_, 1); +lean_inc_ref(v_arg_3300_); +lean_dec_ref(v_x_3252_); +v___x_3301_ = lean_array_set(v_x_3253_, v_x_3254_, v_arg_3300_); +v___x_3302_ = lean_unsigned_to_nat(1u); +v___x_3303_ = lean_nat_sub(v_x_3254_, v___x_3302_); +v___x_3304_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11(v_inst_3245_, v_expectedType_3246_, v___x_3247_, v_compile_3248_, v_logCompileErrors_3249_, v_isMeta_3250_, v_val_3251_, v_fn_3299_, v___x_3301_, v___x_3303_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +return v___x_3304_; } else { -uint8_t v___x_3374_; lean_object* v___y_3376_; lean_object* v___y_3377_; lean_object* v___y_3378_; lean_object* v_options_3379_; lean_object* v___y_3380_; lean_object* v_cls_3446_; lean_object* v___y_3448_; lean_object* v___y_3449_; lean_object* v___y_3450_; lean_object* v___y_3451_; lean_object* v___x_3469_; -v___x_3374_ = 1; -v_cls_3446_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_3469_ = l_Lean_Expr_constName_x3f(v_x_3321_); -if (lean_obj_tag(v___x_3469_) == 0) +uint8_t v___x_3305_; lean_object* v___y_3307_; lean_object* v___y_3308_; lean_object* v___y_3309_; lean_object* v_options_3310_; lean_object* v___y_3311_; lean_object* v_cls_3376_; lean_object* v___y_3378_; lean_object* v___y_3379_; lean_object* v___y_3380_; lean_object* v___y_3381_; lean_object* v___x_3399_; +v___x_3305_ = 1; +v_cls_3376_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_3399_ = l_Lean_Expr_constName_x3f(v_x_3252_); +if (lean_obj_tag(v___x_3399_) == 0) { -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -v___y_3448_ = v___y_3324_; -v___y_3449_ = v___y_3325_; -v___y_3450_ = v___y_3326_; -v___y_3451_ = v___y_3327_; -goto v___jp_3447_; +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +v___y_3378_ = v___y_3255_; +v___y_3379_ = v___y_3256_; +v___y_3380_ = v___y_3257_; +v___y_3381_ = v___y_3258_; +goto v___jp_3377_; } else { -lean_object* v_val_3470_; lean_object* v___x_3471_; -v_val_3470_ = lean_ctor_get(v___x_3469_, 0); -lean_inc(v_val_3470_); -lean_dec_ref(v___x_3469_); -v___x_3471_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_3470_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -if (lean_obj_tag(v___x_3471_) == 0) +lean_object* v_val_3400_; lean_object* v___x_3401_; +v_val_3400_ = lean_ctor_get(v___x_3399_, 0); +lean_inc(v_val_3400_); +lean_dec_ref(v___x_3399_); +v___x_3401_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_3400_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +if (lean_obj_tag(v___x_3401_) == 0) { -lean_object* v_a_3472_; -v_a_3472_ = lean_ctor_get(v___x_3471_, 0); -lean_inc(v_a_3472_); -lean_dec_ref(v___x_3471_); -if (lean_obj_tag(v_a_3472_) == 6) +lean_object* v_a_3402_; +v_a_3402_ = lean_ctor_get(v___x_3401_, 0); +lean_inc(v_a_3402_); +lean_dec_ref(v___x_3401_); +if (lean_obj_tag(v_a_3402_) == 6) { -lean_object* v_val_3473_; lean_object* v___x_3474_; -lean_dec_ref(v_inst_3314_); -v_val_3473_ = lean_ctor_get(v_a_3472_, 0); -lean_inc_ref(v_val_3473_); -lean_dec_ref(v_a_3472_); -lean_inc(v___y_3327_); -lean_inc_ref(v___y_3326_); -lean_inc(v___y_3325_); -lean_inc_ref(v___y_3324_); -lean_inc_ref(v_x_3321_); -v___x_3474_ = lean_infer_type(v_x_3321_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -if (lean_obj_tag(v___x_3474_) == 0) +lean_object* v_val_3403_; lean_object* v___x_3404_; +lean_dec_ref(v_inst_3245_); +v_val_3403_ = lean_ctor_get(v_a_3402_, 0); +lean_inc_ref(v_val_3403_); +lean_dec_ref(v_a_3402_); +lean_inc(v___y_3258_); +lean_inc_ref(v___y_3257_); +lean_inc(v___y_3256_); +lean_inc_ref(v___y_3255_); +lean_inc_ref(v_x_3252_); +v___x_3404_ = lean_infer_type(v_x_3252_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +if (lean_obj_tag(v___x_3404_) == 0) { -lean_object* v_a_3475_; uint8_t v___x_3476_; lean_object* v___x_3477_; -v_a_3475_ = lean_ctor_get(v___x_3474_, 0); -lean_inc(v_a_3475_); -lean_dec_ref(v___x_3474_); -v___x_3476_ = 0; -v___x_3477_ = l_Lean_Meta_forallMetaTelescope(v_a_3475_, v___x_3476_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -if (lean_obj_tag(v___x_3477_) == 0) +lean_object* v_a_3405_; uint8_t v___x_3406_; lean_object* v___x_3407_; +v_a_3405_ = lean_ctor_get(v___x_3404_, 0); +lean_inc(v_a_3405_); +lean_dec_ref(v___x_3404_); +v___x_3406_ = 0; +v___x_3407_ = l_Lean_Meta_forallMetaTelescope(v_a_3405_, v___x_3406_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +if (lean_obj_tag(v___x_3407_) == 0) { -lean_object* v_a_3478_; lean_object* v_snd_3479_; lean_object* v_fst_3480_; lean_object* v___x_3482_; uint8_t v_isShared_3483_; uint8_t v_isSharedCheck_3579_; -v_a_3478_ = lean_ctor_get(v___x_3477_, 0); -lean_inc(v_a_3478_); -lean_dec_ref(v___x_3477_); -v_snd_3479_ = lean_ctor_get(v_a_3478_, 1); -v_fst_3480_ = lean_ctor_get(v_a_3478_, 0); -v_isSharedCheck_3579_ = !lean_is_exclusive(v_a_3478_); -if (v_isSharedCheck_3579_ == 0) +lean_object* v_a_3408_; lean_object* v_snd_3409_; lean_object* v_fst_3410_; lean_object* v___x_3412_; uint8_t v_isShared_3413_; uint8_t v_isSharedCheck_3509_; +v_a_3408_ = lean_ctor_get(v___x_3407_, 0); +lean_inc(v_a_3408_); +lean_dec_ref(v___x_3407_); +v_snd_3409_ = lean_ctor_get(v_a_3408_, 1); +v_fst_3410_ = lean_ctor_get(v_a_3408_, 0); +v_isSharedCheck_3509_ = !lean_is_exclusive(v_a_3408_); +if (v_isSharedCheck_3509_ == 0) { -v___x_3482_ = v_a_3478_; -v_isShared_3483_ = v_isSharedCheck_3579_; -goto v_resetjp_3481_; +v___x_3412_ = v_a_3408_; +v_isShared_3413_ = v_isSharedCheck_3509_; +goto v_resetjp_3411_; } else { -lean_inc(v_snd_3479_); -lean_inc(v_fst_3480_); -lean_dec(v_a_3478_); -v___x_3482_ = lean_box(0); -v_isShared_3483_ = v_isSharedCheck_3579_; -goto v_resetjp_3481_; +lean_inc(v_snd_3409_); +lean_inc(v_fst_3410_); +lean_dec(v_a_3408_); +v___x_3412_ = lean_box(0); +v_isShared_3413_ = v_isSharedCheck_3509_; +goto v_resetjp_3411_; } -v_resetjp_3481_: +v_resetjp_3411_: { -lean_object* v_snd_3484_; lean_object* v___x_3486_; uint8_t v_isShared_3487_; uint8_t v_isSharedCheck_3577_; -v_snd_3484_ = lean_ctor_get(v_snd_3479_, 1); -v_isSharedCheck_3577_ = !lean_is_exclusive(v_snd_3479_); -if (v_isSharedCheck_3577_ == 0) +lean_object* v_snd_3414_; lean_object* v___x_3416_; uint8_t v_isShared_3417_; uint8_t v_isSharedCheck_3507_; +v_snd_3414_ = lean_ctor_get(v_snd_3409_, 1); +v_isSharedCheck_3507_ = !lean_is_exclusive(v_snd_3409_); +if (v_isSharedCheck_3507_ == 0) { -lean_object* v_unused_3578_; -v_unused_3578_ = lean_ctor_get(v_snd_3479_, 0); -lean_dec(v_unused_3578_); -v___x_3486_ = v_snd_3479_; -v_isShared_3487_ = v_isSharedCheck_3577_; -goto v_resetjp_3485_; +lean_object* v_unused_3508_; +v_unused_3508_ = lean_ctor_get(v_snd_3409_, 0); +lean_dec(v_unused_3508_); +v___x_3416_ = v_snd_3409_; +v_isShared_3417_ = v_isSharedCheck_3507_; +goto v_resetjp_3415_; } else { -lean_inc(v_snd_3484_); -lean_dec(v_snd_3479_); -v___x_3486_ = lean_box(0); -v_isShared_3487_ = v_isSharedCheck_3577_; -goto v_resetjp_3485_; -} -v_resetjp_3485_: -{ -lean_object* v___x_3488_; lean_object* v___y_3490_; lean_object* v___y_3491_; lean_object* v___y_3492_; lean_object* v___y_3493_; lean_object* v___x_3525_; uint8_t v___x_3526_; -v___x_3488_ = lean_array_get_size(v_x_3322_); -v___x_3525_ = lean_array_get_size(v_fst_3480_); -v___x_3526_ = lean_nat_dec_eq(v___x_3488_, v___x_3525_); -if (v___x_3526_ == 0) -{ -lean_object* v___x_3527_; lean_object* v___x_3528_; lean_object* v___x_3530_; -lean_dec(v_snd_3484_); -lean_dec(v_fst_3480_); -lean_dec_ref(v_val_3473_); -lean_dec(v_val_3320_); -lean_dec_ref(v_expectedType_3315_); -v___x_3527_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_3528_ = l_Lean_MessageData_ofExpr(v_x_3321_); -if (v_isShared_3487_ == 0) -{ -lean_ctor_set_tag(v___x_3486_, 7); -lean_ctor_set(v___x_3486_, 1, v___x_3528_); -lean_ctor_set(v___x_3486_, 0, v___x_3527_); -v___x_3530_ = v___x_3486_; -goto v_reusejp_3529_; -} -else -{ -lean_object* v_reuseFailAlloc_3541_; -v_reuseFailAlloc_3541_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3541_, 0, v___x_3527_); -lean_ctor_set(v_reuseFailAlloc_3541_, 1, v___x_3528_); -v___x_3530_ = v_reuseFailAlloc_3541_; -goto v_reusejp_3529_; -} -v_reusejp_3529_: -{ -lean_object* v___x_3531_; lean_object* v___x_3533_; -v___x_3531_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_3483_ == 0) -{ -lean_ctor_set_tag(v___x_3482_, 7); -lean_ctor_set(v___x_3482_, 1, v___x_3531_); -lean_ctor_set(v___x_3482_, 0, v___x_3530_); -v___x_3533_ = v___x_3482_; -goto v_reusejp_3532_; -} -else -{ -lean_object* v_reuseFailAlloc_3540_; -v_reuseFailAlloc_3540_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3540_, 0, v___x_3530_); -lean_ctor_set(v_reuseFailAlloc_3540_, 1, v___x_3531_); -v___x_3533_ = v_reuseFailAlloc_3540_; -goto v_reusejp_3532_; -} -v_reusejp_3532_: -{ -lean_object* v___x_3534_; lean_object* v___x_3535_; lean_object* v___x_3536_; lean_object* v___x_3537_; lean_object* v___x_3538_; lean_object* v___x_3539_; -v___x_3534_ = lean_array_to_list(v_x_3322_); -v___x_3535_ = lean_box(0); -v___x_3536_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_3534_, v___x_3535_); -v___x_3537_ = l_Lean_MessageData_ofList(v___x_3536_); -v___x_3538_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3538_, 0, v___x_3533_); -lean_ctor_set(v___x_3538_, 1, v___x_3537_); -v___x_3539_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3538_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -return v___x_3539_; -} -} -} -else -{ -lean_object* v___x_3542_; -lean_inc_ref(v_expectedType_3315_); -v___x_3542_ = l_Lean_Meta_isExprDefEq(v_expectedType_3315_, v_snd_3484_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -if (lean_obj_tag(v___x_3542_) == 0) -{ -lean_object* v_a_3543_; uint8_t v___x_3544_; -v_a_3543_ = lean_ctor_get(v___x_3542_, 0); -lean_inc(v_a_3543_); -lean_dec_ref(v___x_3542_); -v___x_3544_ = lean_unbox(v_a_3543_); -lean_dec(v_a_3543_); -if (v___x_3544_ == 0) -{ -lean_object* v_toConstantVal_3545_; lean_object* v_name_3546_; lean_object* v___x_3547_; lean_object* v___x_3548_; lean_object* v___x_3550_; -lean_dec(v_fst_3480_); -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -v_toConstantVal_3545_ = lean_ctor_get(v_val_3473_, 0); -lean_inc_ref(v_toConstantVal_3545_); -lean_dec_ref(v_val_3473_); -v_name_3546_ = lean_ctor_get(v_toConstantVal_3545_, 0); -lean_inc(v_name_3546_); -lean_dec_ref(v_toConstantVal_3545_); -v___x_3547_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_3548_ = l_Lean_MessageData_ofExpr(v_expectedType_3315_); -if (v_isShared_3487_ == 0) -{ -lean_ctor_set_tag(v___x_3486_, 7); -lean_ctor_set(v___x_3486_, 1, v___x_3548_); -lean_ctor_set(v___x_3486_, 0, v___x_3547_); -v___x_3550_ = v___x_3486_; -goto v_reusejp_3549_; -} -else -{ -lean_object* v_reuseFailAlloc_3568_; -v_reuseFailAlloc_3568_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3568_, 0, v___x_3547_); -lean_ctor_set(v_reuseFailAlloc_3568_, 1, v___x_3548_); -v___x_3550_ = v_reuseFailAlloc_3568_; -goto v_reusejp_3549_; -} -v_reusejp_3549_: -{ -lean_object* v___x_3551_; lean_object* v___x_3553_; -v___x_3551_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_3483_ == 0) -{ -lean_ctor_set_tag(v___x_3482_, 7); -lean_ctor_set(v___x_3482_, 1, v___x_3551_); -lean_ctor_set(v___x_3482_, 0, v___x_3550_); -v___x_3553_ = v___x_3482_; -goto v_reusejp_3552_; -} -else -{ -lean_object* v_reuseFailAlloc_3567_; -v_reuseFailAlloc_3567_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3567_, 0, v___x_3550_); -lean_ctor_set(v_reuseFailAlloc_3567_, 1, v___x_3551_); -v___x_3553_ = v_reuseFailAlloc_3567_; -goto v_reusejp_3552_; -} -v_reusejp_3552_: -{ -lean_object* v___x_3554_; lean_object* v___x_3555_; lean_object* v___x_3556_; lean_object* v___x_3557_; lean_object* v___x_3558_; lean_object* v_a_3559_; lean_object* v___x_3561_; uint8_t v_isShared_3562_; uint8_t v_isSharedCheck_3566_; -v___x_3554_ = l_Lean_MessageData_ofConstName(v_name_3546_, v___x_3316_); -v___x_3555_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3555_, 0, v___x_3553_); -lean_ctor_set(v___x_3555_, 1, v___x_3554_); -v___x_3556_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_3557_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3557_, 0, v___x_3555_); -lean_ctor_set(v___x_3557_, 1, v___x_3556_); -v___x_3558_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3557_, v___y_3324_, v___y_3325_, v___y_3326_, v___y_3327_); -v_a_3559_ = lean_ctor_get(v___x_3558_, 0); -v_isSharedCheck_3566_ = !lean_is_exclusive(v___x_3558_); -if (v_isSharedCheck_3566_ == 0) -{ -v___x_3561_ = v___x_3558_; -v_isShared_3562_ = v_isSharedCheck_3566_; -goto v_resetjp_3560_; -} -else -{ -lean_inc(v_a_3559_); -lean_dec(v___x_3558_); -v___x_3561_ = lean_box(0); -v_isShared_3562_ = v_isSharedCheck_3566_; -goto v_resetjp_3560_; -} -v_resetjp_3560_: -{ -lean_object* v___x_3564_; -if (v_isShared_3562_ == 0) -{ -v___x_3564_ = v___x_3561_; -goto v_reusejp_3563_; -} -else -{ -lean_object* v_reuseFailAlloc_3565_; -v_reuseFailAlloc_3565_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3565_, 0, v_a_3559_); -v___x_3564_ = v_reuseFailAlloc_3565_; -goto v_reusejp_3563_; -} -v_reusejp_3563_: -{ -return v___x_3564_; -} -} -} -} -} -else -{ -lean_del_object(v___x_3486_); -lean_del_object(v___x_3482_); -v___y_3490_ = v___y_3324_; -v___y_3491_ = v___y_3325_; -v___y_3492_ = v___y_3326_; -v___y_3493_ = v___y_3327_; -goto v___jp_3489_; -} -} -else -{ -lean_object* v_a_3569_; lean_object* v___x_3571_; uint8_t v_isShared_3572_; uint8_t v_isSharedCheck_3576_; -lean_del_object(v___x_3486_); -lean_del_object(v___x_3482_); -lean_dec(v_fst_3480_); -lean_dec_ref(v_val_3473_); -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -lean_dec_ref(v_expectedType_3315_); -v_a_3569_ = lean_ctor_get(v___x_3542_, 0); -v_isSharedCheck_3576_ = !lean_is_exclusive(v___x_3542_); -if (v_isSharedCheck_3576_ == 0) -{ -v___x_3571_ = v___x_3542_; -v_isShared_3572_ = v_isSharedCheck_3576_; -goto v_resetjp_3570_; -} -else -{ -lean_inc(v_a_3569_); -lean_dec(v___x_3542_); -v___x_3571_ = lean_box(0); -v_isShared_3572_ = v_isSharedCheck_3576_; -goto v_resetjp_3570_; -} -v_resetjp_3570_: -{ -lean_object* v___x_3574_; -if (v_isShared_3572_ == 0) -{ -v___x_3574_ = v___x_3571_; -goto v_reusejp_3573_; -} -else -{ -lean_object* v_reuseFailAlloc_3575_; -v_reuseFailAlloc_3575_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3575_, 0, v_a_3569_); -v___x_3574_ = v_reuseFailAlloc_3575_; -goto v_reusejp_3573_; -} -v_reusejp_3573_: -{ -return v___x_3574_; -} -} -} -} -v___jp_3489_: -{ -lean_object* v_numParams_3494_; lean_object* v___x_3495_; lean_object* v___x_3496_; -v_numParams_3494_ = lean_ctor_get(v_val_3473_, 3); -lean_inc(v_numParams_3494_); -lean_dec_ref(v_val_3473_); -v___x_3495_ = lean_box(0); -v___x_3496_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(v___x_3488_, v_fst_3480_, v_x_3322_, v_compile_3317_, v_logCompileErrors_3318_, v___x_3316_, v_isMeta_3319_, v_val_3320_, v_expectedType_3315_, v_numParams_3494_, v___x_3495_, v___y_3490_, v___y_3491_, v___y_3492_, v___y_3493_); -lean_dec_ref(v_x_3322_); -if (lean_obj_tag(v___x_3496_) == 0) -{ -size_t v_sz_3497_; size_t v___x_3498_; lean_object* v___x_3499_; -lean_dec_ref(v___x_3496_); -v_sz_3497_ = lean_array_size(v_fst_3480_); -v___x_3498_ = ((size_t)0ULL); -v___x_3499_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_3497_, v___x_3498_, v_fst_3480_, v___y_3490_, v___y_3491_, v___y_3492_, v___y_3493_); -if (lean_obj_tag(v___x_3499_) == 0) -{ -lean_object* v_a_3500_; lean_object* v___x_3502_; uint8_t v_isShared_3503_; uint8_t v_isSharedCheck_3508_; -v_a_3500_ = lean_ctor_get(v___x_3499_, 0); -v_isSharedCheck_3508_ = !lean_is_exclusive(v___x_3499_); -if (v_isSharedCheck_3508_ == 0) -{ -v___x_3502_ = v___x_3499_; -v_isShared_3503_ = v_isSharedCheck_3508_; -goto v_resetjp_3501_; -} -else -{ -lean_inc(v_a_3500_); -lean_dec(v___x_3499_); -v___x_3502_ = lean_box(0); -v_isShared_3503_ = v_isSharedCheck_3508_; -goto v_resetjp_3501_; -} -v_resetjp_3501_: -{ -lean_object* v___x_3504_; lean_object* v___x_3506_; -v___x_3504_ = l_Lean_mkAppN(v_x_3321_, v_a_3500_); -lean_dec(v_a_3500_); -if (v_isShared_3503_ == 0) -{ -lean_ctor_set(v___x_3502_, 0, v___x_3504_); -v___x_3506_ = v___x_3502_; -goto v_reusejp_3505_; -} -else -{ -lean_object* v_reuseFailAlloc_3507_; -v_reuseFailAlloc_3507_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3507_, 0, v___x_3504_); -v___x_3506_ = v_reuseFailAlloc_3507_; -goto v_reusejp_3505_; -} -v_reusejp_3505_: -{ -return v___x_3506_; -} -} -} -else -{ -lean_object* v_a_3509_; lean_object* v___x_3511_; uint8_t v_isShared_3512_; uint8_t v_isSharedCheck_3516_; -lean_dec_ref(v_x_3321_); -v_a_3509_ = lean_ctor_get(v___x_3499_, 0); -v_isSharedCheck_3516_ = !lean_is_exclusive(v___x_3499_); -if (v_isSharedCheck_3516_ == 0) -{ -v___x_3511_ = v___x_3499_; -v_isShared_3512_ = v_isSharedCheck_3516_; -goto v_resetjp_3510_; -} -else -{ -lean_inc(v_a_3509_); -lean_dec(v___x_3499_); -v___x_3511_ = lean_box(0); -v_isShared_3512_ = v_isSharedCheck_3516_; -goto v_resetjp_3510_; -} -v_resetjp_3510_: -{ -lean_object* v___x_3514_; -if (v_isShared_3512_ == 0) -{ -v___x_3514_ = v___x_3511_; -goto v_reusejp_3513_; -} -else -{ -lean_object* v_reuseFailAlloc_3515_; -v_reuseFailAlloc_3515_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3515_, 0, v_a_3509_); -v___x_3514_ = v_reuseFailAlloc_3515_; -goto v_reusejp_3513_; -} -v_reusejp_3513_: -{ -return v___x_3514_; -} -} -} -} -else -{ -lean_object* v_a_3517_; lean_object* v___x_3519_; uint8_t v_isShared_3520_; uint8_t v_isSharedCheck_3524_; -lean_dec(v_fst_3480_); -lean_dec_ref(v_x_3321_); -v_a_3517_ = lean_ctor_get(v___x_3496_, 0); -v_isSharedCheck_3524_ = !lean_is_exclusive(v___x_3496_); -if (v_isSharedCheck_3524_ == 0) -{ -v___x_3519_ = v___x_3496_; -v_isShared_3520_ = v_isSharedCheck_3524_; -goto v_resetjp_3518_; -} -else -{ -lean_inc(v_a_3517_); -lean_dec(v___x_3496_); -v___x_3519_ = lean_box(0); -v_isShared_3520_ = v_isSharedCheck_3524_; -goto v_resetjp_3518_; -} -v_resetjp_3518_: -{ -lean_object* v___x_3522_; -if (v_isShared_3520_ == 0) -{ -v___x_3522_ = v___x_3519_; -goto v_reusejp_3521_; -} -else -{ -lean_object* v_reuseFailAlloc_3523_; -v_reuseFailAlloc_3523_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3523_, 0, v_a_3517_); -v___x_3522_ = v_reuseFailAlloc_3523_; -goto v_reusejp_3521_; -} -v_reusejp_3521_: -{ -return v___x_3522_; -} -} -} -} -} -} -} -else -{ -lean_object* v_a_3580_; lean_object* v___x_3582_; uint8_t v_isShared_3583_; uint8_t v_isSharedCheck_3587_; -lean_dec_ref(v_val_3473_); -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -lean_dec_ref(v_expectedType_3315_); -v_a_3580_ = lean_ctor_get(v___x_3477_, 0); -v_isSharedCheck_3587_ = !lean_is_exclusive(v___x_3477_); -if (v_isSharedCheck_3587_ == 0) -{ -v___x_3582_ = v___x_3477_; -v_isShared_3583_ = v_isSharedCheck_3587_; -goto v_resetjp_3581_; -} -else -{ -lean_inc(v_a_3580_); -lean_dec(v___x_3477_); -v___x_3582_ = lean_box(0); -v_isShared_3583_ = v_isSharedCheck_3587_; -goto v_resetjp_3581_; -} -v_resetjp_3581_: -{ -lean_object* v___x_3585_; -if (v_isShared_3583_ == 0) -{ -v___x_3585_ = v___x_3582_; -goto v_reusejp_3584_; -} -else -{ -lean_object* v_reuseFailAlloc_3586_; -v_reuseFailAlloc_3586_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3586_, 0, v_a_3580_); -v___x_3585_ = v_reuseFailAlloc_3586_; -goto v_reusejp_3584_; -} -v_reusejp_3584_: -{ -return v___x_3585_; -} -} -} -} -else -{ -lean_dec_ref(v_val_3473_); -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -lean_dec_ref(v_expectedType_3315_); -return v___x_3474_; -} -} -else -{ -lean_dec(v_a_3472_); -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -v___y_3448_ = v___y_3324_; -v___y_3449_ = v___y_3325_; -v___y_3450_ = v___y_3326_; -v___y_3451_ = v___y_3327_; -goto v___jp_3447_; -} -} -else -{ -lean_object* v_a_3588_; lean_object* v___x_3590_; uint8_t v_isShared_3591_; uint8_t v_isSharedCheck_3595_; -lean_dec_ref(v_x_3322_); -lean_dec_ref(v_x_3321_); -lean_dec(v_val_3320_); -lean_dec_ref(v_expectedType_3315_); -lean_dec_ref(v_inst_3314_); -v_a_3588_ = lean_ctor_get(v___x_3471_, 0); -v_isSharedCheck_3595_ = !lean_is_exclusive(v___x_3471_); -if (v_isSharedCheck_3595_ == 0) -{ -v___x_3590_ = v___x_3471_; -v_isShared_3591_ = v_isSharedCheck_3595_; -goto v_resetjp_3589_; -} -else -{ -lean_inc(v_a_3588_); -lean_dec(v___x_3471_); -v___x_3590_ = lean_box(0); -v_isShared_3591_ = v_isSharedCheck_3595_; -goto v_resetjp_3589_; -} -v_resetjp_3589_: -{ -lean_object* v___x_3593_; -if (v_isShared_3591_ == 0) -{ -v___x_3593_ = v___x_3590_; -goto v_reusejp_3592_; -} -else -{ -lean_object* v_reuseFailAlloc_3594_; -v_reuseFailAlloc_3594_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3594_, 0, v_a_3588_); -v___x_3593_ = v_reuseFailAlloc_3594_; -goto v_reusejp_3592_; -} -v_reusejp_3592_: -{ -return v___x_3593_; -} -} -} -} -v___jp_3375_: -{ -lean_object* v___x_3381_; uint8_t v___x_3382_; -v___x_3381_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_3382_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3379_, v___x_3381_); -if (v___x_3382_ == 0) -{ -lean_object* v___x_3383_; -lean_dec_ref(v_expectedType_3315_); -v___x_3383_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3383_, 0, v_inst_3314_); -return v___x_3383_; -} -else -{ -lean_object* v___x_3384_; -lean_inc(v___y_3380_); -lean_inc_ref(v___y_3378_); -lean_inc(v___y_3377_); -lean_inc_ref(v___y_3376_); -lean_inc_ref(v_inst_3314_); -v___x_3384_ = lean_infer_type(v_inst_3314_, v___y_3376_, v___y_3377_, v___y_3378_, v___y_3380_); -if (lean_obj_tag(v___x_3384_) == 0) -{ -lean_object* v_a_3385_; lean_object* v___x_3386_; -v_a_3385_ = lean_ctor_get(v___x_3384_, 0); -lean_inc(v_a_3385_); -lean_dec_ref(v___x_3384_); -lean_inc_ref(v_expectedType_3315_); -v___x_3386_ = l_Lean_Meta_isExprDefEq(v_expectedType_3315_, v_a_3385_, v___y_3376_, v___y_3377_, v___y_3378_, v___y_3380_); -if (lean_obj_tag(v___x_3386_) == 0) -{ -lean_object* v_a_3387_; lean_object* v___x_3389_; uint8_t v_isShared_3390_; uint8_t v_isSharedCheck_3437_; -v_a_3387_ = lean_ctor_get(v___x_3386_, 0); -v_isSharedCheck_3437_ = !lean_is_exclusive(v___x_3386_); -if (v_isSharedCheck_3437_ == 0) -{ -v___x_3389_ = v___x_3386_; -v_isShared_3390_ = v_isSharedCheck_3437_; -goto v_resetjp_3388_; -} -else -{ -lean_inc(v_a_3387_); -lean_dec(v___x_3386_); -v___x_3389_ = lean_box(0); -v_isShared_3390_ = v_isSharedCheck_3437_; -goto v_resetjp_3388_; -} -v_resetjp_3388_: -{ -uint8_t v___x_3391_; -v___x_3391_ = lean_unbox(v_a_3387_); -lean_dec(v_a_3387_); -if (v___x_3391_ == 0) -{ -lean_object* v___x_3392_; lean_object* v___x_3393_; lean_object* v_a_3394_; lean_object* v___x_3395_; -lean_del_object(v___x_3389_); -v___x_3392_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_3393_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_3392_, v___y_3380_); -v_a_3394_ = lean_ctor_get(v___x_3393_, 0); -lean_inc_n(v_a_3394_, 2); -lean_dec_ref(v___x_3393_); -v___x_3395_ = l_Lean_Meta_mkAuxDefinition(v_a_3394_, v_expectedType_3315_, v_inst_3314_, v___x_3316_, v___x_3316_, v___x_3374_, v___y_3376_, v___y_3377_, v___y_3378_, v___y_3380_); -if (lean_obj_tag(v___x_3395_) == 0) -{ -lean_object* v_a_3396_; uint8_t v___x_3397_; lean_object* v___x_3398_; -v_a_3396_ = lean_ctor_get(v___x_3395_, 0); -lean_inc(v_a_3396_); -lean_dec_ref(v___x_3395_); -v___x_3397_ = 3; -lean_inc(v_a_3394_); -v___x_3398_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_3394_, v___x_3397_, v___y_3377_, v___y_3380_); -lean_dec_ref(v___x_3398_); -if (v_isMeta_3319_ == 0) -{ -v___y_3352_ = v_a_3396_; -v___y_3353_ = v_a_3394_; -v___y_3354_ = v___y_3378_; -v___y_3355_ = v___y_3380_; -goto v___jp_3351_; -} -else -{ -lean_object* v___x_3399_; lean_object* v_env_3400_; lean_object* v_nextMacroScope_3401_; lean_object* v_ngen_3402_; lean_object* v_auxDeclNGen_3403_; lean_object* v_traceState_3404_; lean_object* v_messages_3405_; lean_object* v_infoState_3406_; lean_object* v_snapshotTasks_3407_; lean_object* v___x_3409_; uint8_t v_isShared_3410_; uint8_t v_isSharedCheck_3432_; -v___x_3399_ = lean_st_ref_take(v___y_3380_); -v_env_3400_ = lean_ctor_get(v___x_3399_, 0); -v_nextMacroScope_3401_ = lean_ctor_get(v___x_3399_, 1); -v_ngen_3402_ = lean_ctor_get(v___x_3399_, 2); -v_auxDeclNGen_3403_ = lean_ctor_get(v___x_3399_, 3); -v_traceState_3404_ = lean_ctor_get(v___x_3399_, 4); -v_messages_3405_ = lean_ctor_get(v___x_3399_, 6); -v_infoState_3406_ = lean_ctor_get(v___x_3399_, 7); -v_snapshotTasks_3407_ = lean_ctor_get(v___x_3399_, 8); -v_isSharedCheck_3432_ = !lean_is_exclusive(v___x_3399_); -if (v_isSharedCheck_3432_ == 0) -{ -lean_object* v_unused_3433_; -v_unused_3433_ = lean_ctor_get(v___x_3399_, 5); -lean_dec(v_unused_3433_); -v___x_3409_ = v___x_3399_; -v_isShared_3410_ = v_isSharedCheck_3432_; -goto v_resetjp_3408_; -} -else -{ -lean_inc(v_snapshotTasks_3407_); -lean_inc(v_infoState_3406_); -lean_inc(v_messages_3405_); -lean_inc(v_traceState_3404_); -lean_inc(v_auxDeclNGen_3403_); -lean_inc(v_ngen_3402_); -lean_inc(v_nextMacroScope_3401_); -lean_inc(v_env_3400_); -lean_dec(v___x_3399_); -v___x_3409_ = lean_box(0); -v_isShared_3410_ = v_isSharedCheck_3432_; -goto v_resetjp_3408_; -} -v_resetjp_3408_: -{ -lean_object* v___x_3411_; lean_object* v___x_3412_; lean_object* v___x_3414_; -lean_inc(v_a_3394_); -v___x_3411_ = l_Lean_markMeta(v_env_3400_, v_a_3394_); -v___x_3412_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_3410_ == 0) -{ -lean_ctor_set(v___x_3409_, 5, v___x_3412_); -lean_ctor_set(v___x_3409_, 0, v___x_3411_); -v___x_3414_ = v___x_3409_; -goto v_reusejp_3413_; -} -else -{ -lean_object* v_reuseFailAlloc_3431_; -v_reuseFailAlloc_3431_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_3431_, 0, v___x_3411_); -lean_ctor_set(v_reuseFailAlloc_3431_, 1, v_nextMacroScope_3401_); -lean_ctor_set(v_reuseFailAlloc_3431_, 2, v_ngen_3402_); -lean_ctor_set(v_reuseFailAlloc_3431_, 3, v_auxDeclNGen_3403_); -lean_ctor_set(v_reuseFailAlloc_3431_, 4, v_traceState_3404_); -lean_ctor_set(v_reuseFailAlloc_3431_, 5, v___x_3412_); -lean_ctor_set(v_reuseFailAlloc_3431_, 6, v_messages_3405_); -lean_ctor_set(v_reuseFailAlloc_3431_, 7, v_infoState_3406_); -lean_ctor_set(v_reuseFailAlloc_3431_, 8, v_snapshotTasks_3407_); -v___x_3414_ = v_reuseFailAlloc_3431_; -goto v_reusejp_3413_; -} -v_reusejp_3413_: -{ -lean_object* v___x_3415_; lean_object* v___x_3416_; lean_object* v_mctx_3417_; lean_object* v_zetaDeltaFVarIds_3418_; lean_object* v_postponed_3419_; lean_object* v_diag_3420_; lean_object* v___x_3422_; uint8_t v_isShared_3423_; uint8_t v_isSharedCheck_3429_; -v___x_3415_ = lean_st_ref_set(v___y_3380_, v___x_3414_); -v___x_3416_ = lean_st_ref_take(v___y_3377_); -v_mctx_3417_ = lean_ctor_get(v___x_3416_, 0); -v_zetaDeltaFVarIds_3418_ = lean_ctor_get(v___x_3416_, 2); -v_postponed_3419_ = lean_ctor_get(v___x_3416_, 3); -v_diag_3420_ = lean_ctor_get(v___x_3416_, 4); -v_isSharedCheck_3429_ = !lean_is_exclusive(v___x_3416_); -if (v_isSharedCheck_3429_ == 0) -{ -lean_object* v_unused_3430_; -v_unused_3430_ = lean_ctor_get(v___x_3416_, 1); -lean_dec(v_unused_3430_); -v___x_3422_ = v___x_3416_; -v_isShared_3423_ = v_isSharedCheck_3429_; -goto v_resetjp_3421_; -} -else -{ -lean_inc(v_diag_3420_); -lean_inc(v_postponed_3419_); -lean_inc(v_zetaDeltaFVarIds_3418_); -lean_inc(v_mctx_3417_); -lean_dec(v___x_3416_); -v___x_3422_ = lean_box(0); -v_isShared_3423_ = v_isSharedCheck_3429_; -goto v_resetjp_3421_; -} -v_resetjp_3421_: -{ -lean_object* v___x_3424_; lean_object* v___x_3426_; -v___x_3424_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_3423_ == 0) -{ -lean_ctor_set(v___x_3422_, 1, v___x_3424_); -v___x_3426_ = v___x_3422_; -goto v_reusejp_3425_; -} -else -{ -lean_object* v_reuseFailAlloc_3428_; -v_reuseFailAlloc_3428_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_3428_, 0, v_mctx_3417_); -lean_ctor_set(v_reuseFailAlloc_3428_, 1, v___x_3424_); -lean_ctor_set(v_reuseFailAlloc_3428_, 2, v_zetaDeltaFVarIds_3418_); -lean_ctor_set(v_reuseFailAlloc_3428_, 3, v_postponed_3419_); -lean_ctor_set(v_reuseFailAlloc_3428_, 4, v_diag_3420_); -v___x_3426_ = v_reuseFailAlloc_3428_; -goto v_reusejp_3425_; -} -v_reusejp_3425_: -{ -lean_object* v___x_3427_; -v___x_3427_ = lean_st_ref_set(v___y_3377_, v___x_3426_); -v___y_3352_ = v_a_3396_; -v___y_3353_ = v_a_3394_; -v___y_3354_ = v___y_3378_; -v___y_3355_ = v___y_3380_; -goto v___jp_3351_; -} -} -} -} -} -} -else -{ -lean_dec(v_a_3394_); -return v___x_3395_; -} -} -else -{ -lean_object* v___x_3435_; -lean_dec_ref(v_expectedType_3315_); -if (v_isShared_3390_ == 0) -{ -lean_ctor_set(v___x_3389_, 0, v_inst_3314_); -v___x_3435_ = v___x_3389_; -goto v_reusejp_3434_; -} -else -{ -lean_object* v_reuseFailAlloc_3436_; -v_reuseFailAlloc_3436_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3436_, 0, v_inst_3314_); -v___x_3435_ = v_reuseFailAlloc_3436_; -goto v_reusejp_3434_; -} -v_reusejp_3434_: -{ -return v___x_3435_; -} -} -} -} -else -{ -lean_object* v_a_3438_; lean_object* v___x_3440_; uint8_t v_isShared_3441_; uint8_t v_isSharedCheck_3445_; -lean_dec_ref(v_expectedType_3315_); -lean_dec_ref(v_inst_3314_); -v_a_3438_ = lean_ctor_get(v___x_3386_, 0); -v_isSharedCheck_3445_ = !lean_is_exclusive(v___x_3386_); -if (v_isSharedCheck_3445_ == 0) -{ -v___x_3440_ = v___x_3386_; -v_isShared_3441_ = v_isSharedCheck_3445_; -goto v_resetjp_3439_; -} -else -{ -lean_inc(v_a_3438_); -lean_dec(v___x_3386_); -v___x_3440_ = lean_box(0); -v_isShared_3441_ = v_isSharedCheck_3445_; -goto v_resetjp_3439_; -} -v_resetjp_3439_: -{ -lean_object* v___x_3443_; -if (v_isShared_3441_ == 0) -{ -v___x_3443_ = v___x_3440_; -goto v_reusejp_3442_; -} -else -{ -lean_object* v_reuseFailAlloc_3444_; -v_reuseFailAlloc_3444_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3444_, 0, v_a_3438_); -v___x_3443_ = v_reuseFailAlloc_3444_; -goto v_reusejp_3442_; -} -v_reusejp_3442_: -{ -return v___x_3443_; -} -} -} -} -else -{ -lean_dec_ref(v_expectedType_3315_); -lean_dec_ref(v_inst_3314_); -return v___x_3384_; -} -} -} -v___jp_3447_: -{ -lean_object* v_options_3452_; uint8_t v_hasTrace_3453_; -v_options_3452_ = lean_ctor_get(v___y_3450_, 2); -v_hasTrace_3453_ = lean_ctor_get_uint8(v_options_3452_, sizeof(void*)*1); -if (v_hasTrace_3453_ == 0) -{ -v___y_3376_ = v___y_3448_; -v___y_3377_ = v___y_3449_; -v___y_3378_ = v___y_3450_; -v_options_3379_ = v_options_3452_; -v___y_3380_ = v___y_3451_; -goto v___jp_3375_; -} -else -{ -lean_object* v_inheritedTraceOptions_3454_; lean_object* v___x_3455_; uint8_t v___x_3456_; -v_inheritedTraceOptions_3454_ = lean_ctor_get(v___y_3450_, 13); -v___x_3455_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_3456_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_3454_, v_options_3452_, v___x_3455_); +lean_inc(v_snd_3414_); +lean_dec(v_snd_3409_); +v___x_3416_ = lean_box(0); +v_isShared_3417_ = v_isSharedCheck_3507_; +goto v_resetjp_3415_; +} +v_resetjp_3415_: +{ +lean_object* v___x_3418_; lean_object* v___y_3420_; lean_object* v___y_3421_; lean_object* v___y_3422_; lean_object* v___y_3423_; lean_object* v___x_3455_; uint8_t v___x_3456_; +v___x_3418_ = lean_array_get_size(v_x_3253_); +v___x_3455_ = lean_array_get_size(v_fst_3410_); +v___x_3456_ = lean_nat_dec_eq(v___x_3418_, v___x_3455_); if (v___x_3456_ == 0) { -v___y_3376_ = v___y_3448_; -v___y_3377_ = v___y_3449_; -v___y_3378_ = v___y_3450_; -v_options_3379_ = v_options_3452_; -v___y_3380_ = v___y_3451_; -goto v___jp_3375_; +lean_object* v___x_3457_; lean_object* v___x_3458_; lean_object* v___x_3460_; +lean_dec(v_snd_3414_); +lean_dec(v_fst_3410_); +lean_dec_ref(v_val_3403_); +lean_dec(v_val_3251_); +lean_dec_ref(v_expectedType_3246_); +v___x_3457_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_3458_ = l_Lean_MessageData_ofExpr(v_x_3252_); +if (v_isShared_3417_ == 0) +{ +lean_ctor_set_tag(v___x_3416_, 7); +lean_ctor_set(v___x_3416_, 1, v___x_3458_); +lean_ctor_set(v___x_3416_, 0, v___x_3457_); +v___x_3460_ = v___x_3416_; +goto v_reusejp_3459_; } else { -lean_object* v___x_3457_; lean_object* v___x_3458_; lean_object* v___x_3459_; lean_object* v___x_3460_; -v___x_3457_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_3314_); -v___x_3458_ = l_Lean_MessageData_ofExpr(v_inst_3314_); -v___x_3459_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3459_, 0, v___x_3457_); -lean_ctor_set(v___x_3459_, 1, v___x_3458_); -v___x_3460_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3446_, v___x_3459_, v___y_3448_, v___y_3449_, v___y_3450_, v___y_3451_); -if (lean_obj_tag(v___x_3460_) == 0) +lean_object* v_reuseFailAlloc_3471_; +v_reuseFailAlloc_3471_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3471_, 0, v___x_3457_); +lean_ctor_set(v_reuseFailAlloc_3471_, 1, v___x_3458_); +v___x_3460_ = v_reuseFailAlloc_3471_; +goto v_reusejp_3459_; +} +v_reusejp_3459_: { -lean_dec_ref(v___x_3460_); -v___y_3376_ = v___y_3448_; -v___y_3377_ = v___y_3449_; -v___y_3378_ = v___y_3450_; -v_options_3379_ = v_options_3452_; -v___y_3380_ = v___y_3451_; -goto v___jp_3375_; +lean_object* v___x_3461_; lean_object* v___x_3463_; +v___x_3461_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_3413_ == 0) +{ +lean_ctor_set_tag(v___x_3412_, 7); +lean_ctor_set(v___x_3412_, 1, v___x_3461_); +lean_ctor_set(v___x_3412_, 0, v___x_3460_); +v___x_3463_ = v___x_3412_; +goto v_reusejp_3462_; } else { -lean_object* v_a_3461_; lean_object* v___x_3463_; uint8_t v_isShared_3464_; uint8_t v_isSharedCheck_3468_; -lean_dec_ref(v_expectedType_3315_); -lean_dec_ref(v_inst_3314_); -v_a_3461_ = lean_ctor_get(v___x_3460_, 0); -v_isSharedCheck_3468_ = !lean_is_exclusive(v___x_3460_); -if (v_isSharedCheck_3468_ == 0) +lean_object* v_reuseFailAlloc_3470_; +v_reuseFailAlloc_3470_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3470_, 0, v___x_3460_); +lean_ctor_set(v_reuseFailAlloc_3470_, 1, v___x_3461_); +v___x_3463_ = v_reuseFailAlloc_3470_; +goto v_reusejp_3462_; +} +v_reusejp_3462_: { -v___x_3463_ = v___x_3460_; -v_isShared_3464_ = v_isSharedCheck_3468_; -goto v_resetjp_3462_; -} -else -{ -lean_inc(v_a_3461_); -lean_dec(v___x_3460_); -v___x_3463_ = lean_box(0); -v_isShared_3464_ = v_isSharedCheck_3468_; -goto v_resetjp_3462_; -} -v_resetjp_3462_: -{ -lean_object* v___x_3466_; -if (v_isShared_3464_ == 0) -{ -v___x_3466_ = v___x_3463_; -goto v_reusejp_3465_; -} -else -{ -lean_object* v_reuseFailAlloc_3467_; -v_reuseFailAlloc_3467_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3467_, 0, v_a_3461_); -v___x_3466_ = v_reuseFailAlloc_3467_; -goto v_reusejp_3465_; -} -v_reusejp_3465_: -{ -return v___x_3466_; -} -} -} -} -} -} -} -v___jp_3329_: -{ -lean_object* v___x_3334_; -v___x_3334_ = l_Lean_enableRealizationsForConst(v___y_3331_, v___y_3332_, v___y_3333_); -if (lean_obj_tag(v___x_3334_) == 0) -{ -lean_object* v___x_3336_; uint8_t v_isShared_3337_; uint8_t v_isSharedCheck_3341_; -v_isSharedCheck_3341_ = !lean_is_exclusive(v___x_3334_); -if (v_isSharedCheck_3341_ == 0) -{ -lean_object* v_unused_3342_; -v_unused_3342_ = lean_ctor_get(v___x_3334_, 0); -lean_dec(v_unused_3342_); -v___x_3336_ = v___x_3334_; -v_isShared_3337_ = v_isSharedCheck_3341_; -goto v_resetjp_3335_; -} -else -{ -lean_dec(v___x_3334_); -v___x_3336_ = lean_box(0); -v_isShared_3337_ = v_isSharedCheck_3341_; -goto v_resetjp_3335_; -} -v_resetjp_3335_: -{ -lean_object* v___x_3339_; -if (v_isShared_3337_ == 0) -{ -lean_ctor_set(v___x_3336_, 0, v___y_3330_); -v___x_3339_ = v___x_3336_; -goto v_reusejp_3338_; -} -else -{ -lean_object* v_reuseFailAlloc_3340_; -v_reuseFailAlloc_3340_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3340_, 0, v___y_3330_); -v___x_3339_ = v_reuseFailAlloc_3340_; -goto v_reusejp_3338_; -} -v_reusejp_3338_: -{ -return v___x_3339_; +lean_object* v___x_3464_; lean_object* v___x_3465_; lean_object* v___x_3466_; lean_object* v___x_3467_; lean_object* v___x_3468_; lean_object* v___x_3469_; +v___x_3464_ = lean_array_to_list(v_x_3253_); +v___x_3465_ = lean_box(0); +v___x_3466_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_3464_, v___x_3465_); +v___x_3467_ = l_Lean_MessageData_ofList(v___x_3466_); +v___x_3468_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3468_, 0, v___x_3463_); +lean_ctor_set(v___x_3468_, 1, v___x_3467_); +v___x_3469_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3468_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +return v___x_3469_; } } } else { -lean_object* v_a_3343_; lean_object* v___x_3345_; uint8_t v_isShared_3346_; uint8_t v_isSharedCheck_3350_; -lean_dec_ref(v___y_3330_); -v_a_3343_ = lean_ctor_get(v___x_3334_, 0); -v_isSharedCheck_3350_ = !lean_is_exclusive(v___x_3334_); -if (v_isSharedCheck_3350_ == 0) +lean_object* v___x_3472_; +lean_inc_ref(v_expectedType_3246_); +v___x_3472_ = l_Lean_Meta_isExprDefEq(v_expectedType_3246_, v_snd_3414_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +if (lean_obj_tag(v___x_3472_) == 0) { -v___x_3345_ = v___x_3334_; -v_isShared_3346_ = v_isSharedCheck_3350_; -goto v_resetjp_3344_; +lean_object* v_a_3473_; uint8_t v___x_3474_; +v_a_3473_ = lean_ctor_get(v___x_3472_, 0); +lean_inc(v_a_3473_); +lean_dec_ref(v___x_3472_); +v___x_3474_ = lean_unbox(v_a_3473_); +lean_dec(v_a_3473_); +if (v___x_3474_ == 0) +{ +lean_object* v_toConstantVal_3475_; lean_object* v_name_3476_; lean_object* v___x_3477_; lean_object* v___x_3478_; lean_object* v___x_3480_; +lean_dec(v_fst_3410_); +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +v_toConstantVal_3475_ = lean_ctor_get(v_val_3403_, 0); +lean_inc_ref(v_toConstantVal_3475_); +lean_dec_ref(v_val_3403_); +v_name_3476_ = lean_ctor_get(v_toConstantVal_3475_, 0); +lean_inc(v_name_3476_); +lean_dec_ref(v_toConstantVal_3475_); +v___x_3477_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_3478_ = l_Lean_MessageData_ofExpr(v_expectedType_3246_); +if (v_isShared_3417_ == 0) +{ +lean_ctor_set_tag(v___x_3416_, 7); +lean_ctor_set(v___x_3416_, 1, v___x_3478_); +lean_ctor_set(v___x_3416_, 0, v___x_3477_); +v___x_3480_ = v___x_3416_; +goto v_reusejp_3479_; } else { -lean_inc(v_a_3343_); -lean_dec(v___x_3334_); -v___x_3345_ = lean_box(0); -v_isShared_3346_ = v_isSharedCheck_3350_; -goto v_resetjp_3344_; +lean_object* v_reuseFailAlloc_3498_; +v_reuseFailAlloc_3498_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3498_, 0, v___x_3477_); +lean_ctor_set(v_reuseFailAlloc_3498_, 1, v___x_3478_); +v___x_3480_ = v_reuseFailAlloc_3498_; +goto v_reusejp_3479_; } -v_resetjp_3344_: +v_reusejp_3479_: { -lean_object* v___x_3348_; -if (v_isShared_3346_ == 0) +lean_object* v___x_3481_; lean_object* v___x_3483_; +v___x_3481_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_3413_ == 0) { -v___x_3348_ = v___x_3345_; -goto v_reusejp_3347_; +lean_ctor_set_tag(v___x_3412_, 7); +lean_ctor_set(v___x_3412_, 1, v___x_3481_); +lean_ctor_set(v___x_3412_, 0, v___x_3480_); +v___x_3483_ = v___x_3412_; +goto v_reusejp_3482_; } else { -lean_object* v_reuseFailAlloc_3349_; -v_reuseFailAlloc_3349_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3349_, 0, v_a_3343_); -v___x_3348_ = v_reuseFailAlloc_3349_; -goto v_reusejp_3347_; +lean_object* v_reuseFailAlloc_3497_; +v_reuseFailAlloc_3497_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3497_, 0, v___x_3480_); +lean_ctor_set(v_reuseFailAlloc_3497_, 1, v___x_3481_); +v___x_3483_ = v_reuseFailAlloc_3497_; +goto v_reusejp_3482_; } -v_reusejp_3347_: +v_reusejp_3482_: { -return v___x_3348_; -} -} -} -} -v___jp_3351_: +lean_object* v___x_3484_; lean_object* v___x_3485_; lean_object* v___x_3486_; lean_object* v___x_3487_; lean_object* v___x_3488_; lean_object* v_a_3489_; lean_object* v___x_3491_; uint8_t v_isShared_3492_; uint8_t v_isSharedCheck_3496_; +v___x_3484_ = l_Lean_MessageData_ofConstName(v_name_3476_, v___x_3247_); +v___x_3485_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3485_, 0, v___x_3483_); +lean_ctor_set(v___x_3485_, 1, v___x_3484_); +v___x_3486_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_3487_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3487_, 0, v___x_3485_); +lean_ctor_set(v___x_3487_, 1, v___x_3486_); +v___x_3488_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_3487_, v___y_3255_, v___y_3256_, v___y_3257_, v___y_3258_); +v_a_3489_ = lean_ctor_get(v___x_3488_, 0); +v_isSharedCheck_3496_ = !lean_is_exclusive(v___x_3488_); +if (v_isSharedCheck_3496_ == 0) { -if (v_compile_3317_ == 0) -{ -v___y_3330_ = v___y_3352_; -v___y_3331_ = v___y_3353_; -v___y_3332_ = v___y_3354_; -v___y_3333_ = v___y_3355_; -goto v___jp_3329_; +v___x_3491_ = v___x_3488_; +v_isShared_3492_ = v_isSharedCheck_3496_; +goto v_resetjp_3490_; } else { -lean_object* v___x_3356_; lean_object* v___x_3357_; lean_object* v___x_3358_; lean_object* v___x_3359_; -v___x_3356_ = lean_unsigned_to_nat(1u); -v___x_3357_ = lean_mk_empty_array_with_capacity(v___x_3356_); -lean_inc(v___y_3353_); -v___x_3358_ = lean_array_push(v___x_3357_, v___y_3353_); -v___x_3359_ = l_Lean_compileDecls(v___x_3358_, v_logCompileErrors_3318_, v___y_3354_, v___y_3355_); -if (lean_obj_tag(v___x_3359_) == 0) +lean_inc(v_a_3489_); +lean_dec(v___x_3488_); +v___x_3491_ = lean_box(0); +v_isShared_3492_ = v_isSharedCheck_3496_; +goto v_resetjp_3490_; +} +v_resetjp_3490_: { -lean_dec_ref(v___x_3359_); -v___y_3330_ = v___y_3352_; -v___y_3331_ = v___y_3353_; -v___y_3332_ = v___y_3354_; -v___y_3333_ = v___y_3355_; -goto v___jp_3329_; +lean_object* v___x_3494_; +if (v_isShared_3492_ == 0) +{ +v___x_3494_ = v___x_3491_; +goto v_reusejp_3493_; } else { -lean_object* v_a_3360_; lean_object* v___x_3362_; uint8_t v_isShared_3363_; uint8_t v_isSharedCheck_3367_; -lean_dec(v___y_3353_); -lean_dec_ref(v___y_3352_); -v_a_3360_ = lean_ctor_get(v___x_3359_, 0); -v_isSharedCheck_3367_ = !lean_is_exclusive(v___x_3359_); +lean_object* v_reuseFailAlloc_3495_; +v_reuseFailAlloc_3495_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3495_, 0, v_a_3489_); +v___x_3494_ = v_reuseFailAlloc_3495_; +goto v_reusejp_3493_; +} +v_reusejp_3493_: +{ +return v___x_3494_; +} +} +} +} +} +else +{ +lean_del_object(v___x_3416_); +lean_del_object(v___x_3412_); +v___y_3420_ = v___y_3255_; +v___y_3421_ = v___y_3256_; +v___y_3422_ = v___y_3257_; +v___y_3423_ = v___y_3258_; +goto v___jp_3419_; +} +} +else +{ +lean_object* v_a_3499_; lean_object* v___x_3501_; uint8_t v_isShared_3502_; uint8_t v_isSharedCheck_3506_; +lean_del_object(v___x_3416_); +lean_del_object(v___x_3412_); +lean_dec(v_fst_3410_); +lean_dec_ref(v_val_3403_); +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +lean_dec_ref(v_expectedType_3246_); +v_a_3499_ = lean_ctor_get(v___x_3472_, 0); +v_isSharedCheck_3506_ = !lean_is_exclusive(v___x_3472_); +if (v_isSharedCheck_3506_ == 0) +{ +v___x_3501_ = v___x_3472_; +v_isShared_3502_ = v_isSharedCheck_3506_; +goto v_resetjp_3500_; +} +else +{ +lean_inc(v_a_3499_); +lean_dec(v___x_3472_); +v___x_3501_ = lean_box(0); +v_isShared_3502_ = v_isSharedCheck_3506_; +goto v_resetjp_3500_; +} +v_resetjp_3500_: +{ +lean_object* v___x_3504_; +if (v_isShared_3502_ == 0) +{ +v___x_3504_ = v___x_3501_; +goto v_reusejp_3503_; +} +else +{ +lean_object* v_reuseFailAlloc_3505_; +v_reuseFailAlloc_3505_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3505_, 0, v_a_3499_); +v___x_3504_ = v_reuseFailAlloc_3505_; +goto v_reusejp_3503_; +} +v_reusejp_3503_: +{ +return v___x_3504_; +} +} +} +} +v___jp_3419_: +{ +lean_object* v_numParams_3424_; lean_object* v___x_3425_; lean_object* v___x_3426_; +v_numParams_3424_ = lean_ctor_get(v_val_3403_, 3); +lean_inc(v_numParams_3424_); +lean_dec_ref(v_val_3403_); +v___x_3425_ = lean_box(0); +v___x_3426_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_3418_, v_fst_3410_, v_x_3253_, v_compile_3248_, v_logCompileErrors_3249_, v___x_3247_, v_isMeta_3250_, v_val_3251_, v_expectedType_3246_, v_numParams_3424_, v___x_3425_, v___y_3420_, v___y_3421_, v___y_3422_, v___y_3423_); +lean_dec_ref(v_x_3253_); +if (lean_obj_tag(v___x_3426_) == 0) +{ +size_t v_sz_3427_; size_t v___x_3428_; lean_object* v___x_3429_; +lean_dec_ref(v___x_3426_); +v_sz_3427_ = lean_array_size(v_fst_3410_); +v___x_3428_ = ((size_t)0ULL); +v___x_3429_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_3427_, v___x_3428_, v_fst_3410_, v___y_3420_, v___y_3421_, v___y_3422_, v___y_3423_); +if (lean_obj_tag(v___x_3429_) == 0) +{ +lean_object* v_a_3430_; lean_object* v___x_3432_; uint8_t v_isShared_3433_; uint8_t v_isSharedCheck_3438_; +v_a_3430_ = lean_ctor_get(v___x_3429_, 0); +v_isSharedCheck_3438_ = !lean_is_exclusive(v___x_3429_); +if (v_isSharedCheck_3438_ == 0) +{ +v___x_3432_ = v___x_3429_; +v_isShared_3433_ = v_isSharedCheck_3438_; +goto v_resetjp_3431_; +} +else +{ +lean_inc(v_a_3430_); +lean_dec(v___x_3429_); +v___x_3432_ = lean_box(0); +v_isShared_3433_ = v_isSharedCheck_3438_; +goto v_resetjp_3431_; +} +v_resetjp_3431_: +{ +lean_object* v___x_3434_; lean_object* v___x_3436_; +v___x_3434_ = l_Lean_mkAppN(v_x_3252_, v_a_3430_); +lean_dec(v_a_3430_); +if (v_isShared_3433_ == 0) +{ +lean_ctor_set(v___x_3432_, 0, v___x_3434_); +v___x_3436_ = v___x_3432_; +goto v_reusejp_3435_; +} +else +{ +lean_object* v_reuseFailAlloc_3437_; +v_reuseFailAlloc_3437_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3437_, 0, v___x_3434_); +v___x_3436_ = v_reuseFailAlloc_3437_; +goto v_reusejp_3435_; +} +v_reusejp_3435_: +{ +return v___x_3436_; +} +} +} +else +{ +lean_object* v_a_3439_; lean_object* v___x_3441_; uint8_t v_isShared_3442_; uint8_t v_isSharedCheck_3446_; +lean_dec_ref(v_x_3252_); +v_a_3439_ = lean_ctor_get(v___x_3429_, 0); +v_isSharedCheck_3446_ = !lean_is_exclusive(v___x_3429_); +if (v_isSharedCheck_3446_ == 0) +{ +v___x_3441_ = v___x_3429_; +v_isShared_3442_ = v_isSharedCheck_3446_; +goto v_resetjp_3440_; +} +else +{ +lean_inc(v_a_3439_); +lean_dec(v___x_3429_); +v___x_3441_ = lean_box(0); +v_isShared_3442_ = v_isSharedCheck_3446_; +goto v_resetjp_3440_; +} +v_resetjp_3440_: +{ +lean_object* v___x_3444_; +if (v_isShared_3442_ == 0) +{ +v___x_3444_ = v___x_3441_; +goto v_reusejp_3443_; +} +else +{ +lean_object* v_reuseFailAlloc_3445_; +v_reuseFailAlloc_3445_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3445_, 0, v_a_3439_); +v___x_3444_ = v_reuseFailAlloc_3445_; +goto v_reusejp_3443_; +} +v_reusejp_3443_: +{ +return v___x_3444_; +} +} +} +} +else +{ +lean_object* v_a_3447_; lean_object* v___x_3449_; uint8_t v_isShared_3450_; uint8_t v_isSharedCheck_3454_; +lean_dec(v_fst_3410_); +lean_dec_ref(v_x_3252_); +v_a_3447_ = lean_ctor_get(v___x_3426_, 0); +v_isSharedCheck_3454_ = !lean_is_exclusive(v___x_3426_); +if (v_isSharedCheck_3454_ == 0) +{ +v___x_3449_ = v___x_3426_; +v_isShared_3450_ = v_isSharedCheck_3454_; +goto v_resetjp_3448_; +} +else +{ +lean_inc(v_a_3447_); +lean_dec(v___x_3426_); +v___x_3449_ = lean_box(0); +v_isShared_3450_ = v_isSharedCheck_3454_; +goto v_resetjp_3448_; +} +v_resetjp_3448_: +{ +lean_object* v___x_3452_; +if (v_isShared_3450_ == 0) +{ +v___x_3452_ = v___x_3449_; +goto v_reusejp_3451_; +} +else +{ +lean_object* v_reuseFailAlloc_3453_; +v_reuseFailAlloc_3453_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3453_, 0, v_a_3447_); +v___x_3452_ = v_reuseFailAlloc_3453_; +goto v_reusejp_3451_; +} +v_reusejp_3451_: +{ +return v___x_3452_; +} +} +} +} +} +} +} +else +{ +lean_object* v_a_3510_; lean_object* v___x_3512_; uint8_t v_isShared_3513_; uint8_t v_isSharedCheck_3517_; +lean_dec_ref(v_val_3403_); +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +lean_dec_ref(v_expectedType_3246_); +v_a_3510_ = lean_ctor_get(v___x_3407_, 0); +v_isSharedCheck_3517_ = !lean_is_exclusive(v___x_3407_); +if (v_isSharedCheck_3517_ == 0) +{ +v___x_3512_ = v___x_3407_; +v_isShared_3513_ = v_isSharedCheck_3517_; +goto v_resetjp_3511_; +} +else +{ +lean_inc(v_a_3510_); +lean_dec(v___x_3407_); +v___x_3512_ = lean_box(0); +v_isShared_3513_ = v_isSharedCheck_3517_; +goto v_resetjp_3511_; +} +v_resetjp_3511_: +{ +lean_object* v___x_3515_; +if (v_isShared_3513_ == 0) +{ +v___x_3515_ = v___x_3512_; +goto v_reusejp_3514_; +} +else +{ +lean_object* v_reuseFailAlloc_3516_; +v_reuseFailAlloc_3516_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3516_, 0, v_a_3510_); +v___x_3515_ = v_reuseFailAlloc_3516_; +goto v_reusejp_3514_; +} +v_reusejp_3514_: +{ +return v___x_3515_; +} +} +} +} +else +{ +lean_dec_ref(v_val_3403_); +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +lean_dec_ref(v_expectedType_3246_); +return v___x_3404_; +} +} +else +{ +lean_dec(v_a_3402_); +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +v___y_3378_ = v___y_3255_; +v___y_3379_ = v___y_3256_; +v___y_3380_ = v___y_3257_; +v___y_3381_ = v___y_3258_; +goto v___jp_3377_; +} +} +else +{ +lean_object* v_a_3518_; lean_object* v___x_3520_; uint8_t v_isShared_3521_; uint8_t v_isSharedCheck_3525_; +lean_dec_ref(v_x_3253_); +lean_dec_ref(v_x_3252_); +lean_dec(v_val_3251_); +lean_dec_ref(v_expectedType_3246_); +lean_dec_ref(v_inst_3245_); +v_a_3518_ = lean_ctor_get(v___x_3401_, 0); +v_isSharedCheck_3525_ = !lean_is_exclusive(v___x_3401_); +if (v_isSharedCheck_3525_ == 0) +{ +v___x_3520_ = v___x_3401_; +v_isShared_3521_ = v_isSharedCheck_3525_; +goto v_resetjp_3519_; +} +else +{ +lean_inc(v_a_3518_); +lean_dec(v___x_3401_); +v___x_3520_ = lean_box(0); +v_isShared_3521_ = v_isSharedCheck_3525_; +goto v_resetjp_3519_; +} +v_resetjp_3519_: +{ +lean_object* v___x_3523_; +if (v_isShared_3521_ == 0) +{ +v___x_3523_ = v___x_3520_; +goto v_reusejp_3522_; +} +else +{ +lean_object* v_reuseFailAlloc_3524_; +v_reuseFailAlloc_3524_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3524_, 0, v_a_3518_); +v___x_3523_ = v_reuseFailAlloc_3524_; +goto v_reusejp_3522_; +} +v_reusejp_3522_: +{ +return v___x_3523_; +} +} +} +} +v___jp_3306_: +{ +lean_object* v___x_3312_; uint8_t v___x_3313_; +v___x_3312_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_3313_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3310_, v___x_3312_); +if (v___x_3313_ == 0) +{ +lean_object* v___x_3314_; +lean_dec_ref(v_expectedType_3246_); +v___x_3314_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3314_, 0, v_inst_3245_); +return v___x_3314_; +} +else +{ +lean_object* v___x_3315_; +lean_inc(v___y_3311_); +lean_inc_ref(v___y_3309_); +lean_inc(v___y_3308_); +lean_inc_ref(v___y_3307_); +lean_inc_ref(v_inst_3245_); +v___x_3315_ = lean_infer_type(v_inst_3245_, v___y_3307_, v___y_3308_, v___y_3309_, v___y_3311_); +if (lean_obj_tag(v___x_3315_) == 0) +{ +lean_object* v_a_3316_; lean_object* v___x_3317_; +v_a_3316_ = lean_ctor_get(v___x_3315_, 0); +lean_inc(v_a_3316_); +lean_dec_ref(v___x_3315_); +lean_inc_ref(v_expectedType_3246_); +v___x_3317_ = l_Lean_Meta_isExprDefEq(v_expectedType_3246_, v_a_3316_, v___y_3307_, v___y_3308_, v___y_3309_, v___y_3311_); +if (lean_obj_tag(v___x_3317_) == 0) +{ +lean_object* v_a_3318_; lean_object* v___x_3320_; uint8_t v_isShared_3321_; uint8_t v_isSharedCheck_3367_; +v_a_3318_ = lean_ctor_get(v___x_3317_, 0); +v_isSharedCheck_3367_ = !lean_is_exclusive(v___x_3317_); if (v_isSharedCheck_3367_ == 0) { -v___x_3362_ = v___x_3359_; -v_isShared_3363_ = v_isSharedCheck_3367_; -goto v_resetjp_3361_; +v___x_3320_ = v___x_3317_; +v_isShared_3321_ = v_isSharedCheck_3367_; +goto v_resetjp_3319_; } else { -lean_inc(v_a_3360_); -lean_dec(v___x_3359_); -v___x_3362_ = lean_box(0); -v_isShared_3363_ = v_isSharedCheck_3367_; -goto v_resetjp_3361_; +lean_inc(v_a_3318_); +lean_dec(v___x_3317_); +v___x_3320_ = lean_box(0); +v_isShared_3321_ = v_isSharedCheck_3367_; +goto v_resetjp_3319_; } -v_resetjp_3361_: +v_resetjp_3319_: +{ +uint8_t v___x_3322_; +v___x_3322_ = lean_unbox(v_a_3318_); +lean_dec(v_a_3318_); +if (v___x_3322_ == 0) +{ +lean_object* v___x_3323_; lean_object* v___x_3324_; lean_object* v_a_3325_; lean_object* v___x_3326_; +lean_del_object(v___x_3320_); +v___x_3323_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_3324_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_3323_, v___y_3311_); +v_a_3325_ = lean_ctor_get(v___x_3324_, 0); +lean_inc_n(v_a_3325_, 2); +lean_dec_ref(v___x_3324_); +v___x_3326_ = l_Lean_Meta_mkAuxDefinition(v_a_3325_, v_expectedType_3246_, v_inst_3245_, v___x_3247_, v___x_3247_, v___x_3305_, v___y_3307_, v___y_3308_, v___y_3309_, v___y_3311_); +if (lean_obj_tag(v___x_3326_) == 0) +{ +if (v_isMeta_3250_ == 0) +{ +lean_object* v_a_3327_; +v_a_3327_ = lean_ctor_get(v___x_3326_, 0); +lean_inc(v_a_3327_); +lean_dec_ref(v___x_3326_); +v___y_3283_ = v_a_3325_; +v___y_3284_ = v_a_3327_; +v___y_3285_ = v___y_3309_; +v___y_3286_ = v___y_3311_; +goto v___jp_3282_; +} +else +{ +lean_object* v_a_3328_; lean_object* v___x_3329_; lean_object* v_env_3330_; lean_object* v_nextMacroScope_3331_; lean_object* v_ngen_3332_; lean_object* v_auxDeclNGen_3333_; lean_object* v_traceState_3334_; lean_object* v_messages_3335_; lean_object* v_infoState_3336_; lean_object* v_snapshotTasks_3337_; lean_object* v___x_3339_; uint8_t v_isShared_3340_; uint8_t v_isSharedCheck_3362_; +v_a_3328_ = lean_ctor_get(v___x_3326_, 0); +lean_inc(v_a_3328_); +lean_dec_ref(v___x_3326_); +v___x_3329_ = lean_st_ref_take(v___y_3311_); +v_env_3330_ = lean_ctor_get(v___x_3329_, 0); +v_nextMacroScope_3331_ = lean_ctor_get(v___x_3329_, 1); +v_ngen_3332_ = lean_ctor_get(v___x_3329_, 2); +v_auxDeclNGen_3333_ = lean_ctor_get(v___x_3329_, 3); +v_traceState_3334_ = lean_ctor_get(v___x_3329_, 4); +v_messages_3335_ = lean_ctor_get(v___x_3329_, 6); +v_infoState_3336_ = lean_ctor_get(v___x_3329_, 7); +v_snapshotTasks_3337_ = lean_ctor_get(v___x_3329_, 8); +v_isSharedCheck_3362_ = !lean_is_exclusive(v___x_3329_); +if (v_isSharedCheck_3362_ == 0) +{ +lean_object* v_unused_3363_; +v_unused_3363_ = lean_ctor_get(v___x_3329_, 5); +lean_dec(v_unused_3363_); +v___x_3339_ = v___x_3329_; +v_isShared_3340_ = v_isSharedCheck_3362_; +goto v_resetjp_3338_; +} +else +{ +lean_inc(v_snapshotTasks_3337_); +lean_inc(v_infoState_3336_); +lean_inc(v_messages_3335_); +lean_inc(v_traceState_3334_); +lean_inc(v_auxDeclNGen_3333_); +lean_inc(v_ngen_3332_); +lean_inc(v_nextMacroScope_3331_); +lean_inc(v_env_3330_); +lean_dec(v___x_3329_); +v___x_3339_ = lean_box(0); +v_isShared_3340_ = v_isSharedCheck_3362_; +goto v_resetjp_3338_; +} +v_resetjp_3338_: +{ +lean_object* v___x_3341_; lean_object* v___x_3342_; lean_object* v___x_3344_; +lean_inc(v_a_3325_); +v___x_3341_ = l_Lean_markMeta(v_env_3330_, v_a_3325_); +v___x_3342_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_3340_ == 0) +{ +lean_ctor_set(v___x_3339_, 5, v___x_3342_); +lean_ctor_set(v___x_3339_, 0, v___x_3341_); +v___x_3344_ = v___x_3339_; +goto v_reusejp_3343_; +} +else +{ +lean_object* v_reuseFailAlloc_3361_; +v_reuseFailAlloc_3361_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_3361_, 0, v___x_3341_); +lean_ctor_set(v_reuseFailAlloc_3361_, 1, v_nextMacroScope_3331_); +lean_ctor_set(v_reuseFailAlloc_3361_, 2, v_ngen_3332_); +lean_ctor_set(v_reuseFailAlloc_3361_, 3, v_auxDeclNGen_3333_); +lean_ctor_set(v_reuseFailAlloc_3361_, 4, v_traceState_3334_); +lean_ctor_set(v_reuseFailAlloc_3361_, 5, v___x_3342_); +lean_ctor_set(v_reuseFailAlloc_3361_, 6, v_messages_3335_); +lean_ctor_set(v_reuseFailAlloc_3361_, 7, v_infoState_3336_); +lean_ctor_set(v_reuseFailAlloc_3361_, 8, v_snapshotTasks_3337_); +v___x_3344_ = v_reuseFailAlloc_3361_; +goto v_reusejp_3343_; +} +v_reusejp_3343_: +{ +lean_object* v___x_3345_; lean_object* v___x_3346_; lean_object* v_mctx_3347_; lean_object* v_zetaDeltaFVarIds_3348_; lean_object* v_postponed_3349_; lean_object* v_diag_3350_; lean_object* v___x_3352_; uint8_t v_isShared_3353_; uint8_t v_isSharedCheck_3359_; +v___x_3345_ = lean_st_ref_set(v___y_3311_, v___x_3344_); +v___x_3346_ = lean_st_ref_take(v___y_3308_); +v_mctx_3347_ = lean_ctor_get(v___x_3346_, 0); +v_zetaDeltaFVarIds_3348_ = lean_ctor_get(v___x_3346_, 2); +v_postponed_3349_ = lean_ctor_get(v___x_3346_, 3); +v_diag_3350_ = lean_ctor_get(v___x_3346_, 4); +v_isSharedCheck_3359_ = !lean_is_exclusive(v___x_3346_); +if (v_isSharedCheck_3359_ == 0) +{ +lean_object* v_unused_3360_; +v_unused_3360_ = lean_ctor_get(v___x_3346_, 1); +lean_dec(v_unused_3360_); +v___x_3352_ = v___x_3346_; +v_isShared_3353_ = v_isSharedCheck_3359_; +goto v_resetjp_3351_; +} +else +{ +lean_inc(v_diag_3350_); +lean_inc(v_postponed_3349_); +lean_inc(v_zetaDeltaFVarIds_3348_); +lean_inc(v_mctx_3347_); +lean_dec(v___x_3346_); +v___x_3352_ = lean_box(0); +v_isShared_3353_ = v_isSharedCheck_3359_; +goto v_resetjp_3351_; +} +v_resetjp_3351_: +{ +lean_object* v___x_3354_; lean_object* v___x_3356_; +v___x_3354_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_3353_ == 0) +{ +lean_ctor_set(v___x_3352_, 1, v___x_3354_); +v___x_3356_ = v___x_3352_; +goto v_reusejp_3355_; +} +else +{ +lean_object* v_reuseFailAlloc_3358_; +v_reuseFailAlloc_3358_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_3358_, 0, v_mctx_3347_); +lean_ctor_set(v_reuseFailAlloc_3358_, 1, v___x_3354_); +lean_ctor_set(v_reuseFailAlloc_3358_, 2, v_zetaDeltaFVarIds_3348_); +lean_ctor_set(v_reuseFailAlloc_3358_, 3, v_postponed_3349_); +lean_ctor_set(v_reuseFailAlloc_3358_, 4, v_diag_3350_); +v___x_3356_ = v_reuseFailAlloc_3358_; +goto v_reusejp_3355_; +} +v_reusejp_3355_: +{ +lean_object* v___x_3357_; +v___x_3357_ = lean_st_ref_set(v___y_3308_, v___x_3356_); +v___y_3283_ = v_a_3325_; +v___y_3284_ = v_a_3328_; +v___y_3285_ = v___y_3309_; +v___y_3286_ = v___y_3311_; +goto v___jp_3282_; +} +} +} +} +} +} +else +{ +lean_dec(v_a_3325_); +return v___x_3326_; +} +} +else { lean_object* v___x_3365_; -if (v_isShared_3363_ == 0) +lean_dec_ref(v_expectedType_3246_); +if (v_isShared_3321_ == 0) { -v___x_3365_ = v___x_3362_; +lean_ctor_set(v___x_3320_, 0, v_inst_3245_); +v___x_3365_ = v___x_3320_; goto v_reusejp_3364_; } else { lean_object* v_reuseFailAlloc_3366_; -v_reuseFailAlloc_3366_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3366_, 0, v_a_3360_); +v_reuseFailAlloc_3366_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3366_, 0, v_inst_3245_); v___x_3365_ = v_reuseFailAlloc_3366_; goto v_reusejp_3364_; } @@ -12634,2663 +12152,2972 @@ return v___x_3365_; } } } +else +{ +lean_object* v_a_3368_; lean_object* v___x_3370_; uint8_t v_isShared_3371_; uint8_t v_isSharedCheck_3375_; +lean_dec_ref(v_expectedType_3246_); +lean_dec_ref(v_inst_3245_); +v_a_3368_ = lean_ctor_get(v___x_3317_, 0); +v_isSharedCheck_3375_ = !lean_is_exclusive(v___x_3317_); +if (v_isSharedCheck_3375_ == 0) +{ +v___x_3370_ = v___x_3317_; +v_isShared_3371_ = v_isSharedCheck_3375_; +goto v_resetjp_3369_; +} +else +{ +lean_inc(v_a_3368_); +lean_dec(v___x_3317_); +v___x_3370_ = lean_box(0); +v_isShared_3371_ = v_isSharedCheck_3375_; +goto v_resetjp_3369_; +} +v_resetjp_3369_: +{ +lean_object* v___x_3373_; +if (v_isShared_3371_ == 0) +{ +v___x_3373_ = v___x_3370_; +goto v_reusejp_3372_; +} +else +{ +lean_object* v_reuseFailAlloc_3374_; +v_reuseFailAlloc_3374_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3374_, 0, v_a_3368_); +v___x_3373_ = v_reuseFailAlloc_3374_; +goto v_reusejp_3372_; +} +v_reusejp_3372_: +{ +return v___x_3373_; +} +} +} +} +else +{ +lean_dec_ref(v_expectedType_3246_); +lean_dec_ref(v_inst_3245_); +return v___x_3315_; +} +} +} +v___jp_3377_: +{ +lean_object* v_options_3382_; uint8_t v_hasTrace_3383_; +v_options_3382_ = lean_ctor_get(v___y_3380_, 2); +v_hasTrace_3383_ = lean_ctor_get_uint8(v_options_3382_, sizeof(void*)*1); +if (v_hasTrace_3383_ == 0) +{ +v___y_3307_ = v___y_3378_; +v___y_3308_ = v___y_3379_; +v___y_3309_ = v___y_3380_; +v_options_3310_ = v_options_3382_; +v___y_3311_ = v___y_3381_; +goto v___jp_3306_; +} +else +{ +lean_object* v_inheritedTraceOptions_3384_; lean_object* v___x_3385_; uint8_t v___x_3386_; +v_inheritedTraceOptions_3384_ = lean_ctor_get(v___y_3380_, 13); +v___x_3385_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_3386_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_3384_, v_options_3382_, v___x_3385_); +if (v___x_3386_ == 0) +{ +v___y_3307_ = v___y_3378_; +v___y_3308_ = v___y_3379_; +v___y_3309_ = v___y_3380_; +v_options_3310_ = v_options_3382_; +v___y_3311_ = v___y_3381_; +goto v___jp_3306_; +} +else +{ +lean_object* v___x_3387_; lean_object* v___x_3388_; lean_object* v___x_3389_; lean_object* v___x_3390_; +v___x_3387_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_3245_); +v___x_3388_ = l_Lean_MessageData_ofExpr(v_inst_3245_); +v___x_3389_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3389_, 0, v___x_3387_); +lean_ctor_set(v___x_3389_, 1, v___x_3388_); +v___x_3390_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3376_, v___x_3389_, v___y_3378_, v___y_3379_, v___y_3380_, v___y_3381_); +if (lean_obj_tag(v___x_3390_) == 0) +{ +lean_dec_ref(v___x_3390_); +v___y_3307_ = v___y_3378_; +v___y_3308_ = v___y_3379_; +v___y_3309_ = v___y_3380_; +v_options_3310_ = v_options_3382_; +v___y_3311_ = v___y_3381_; +goto v___jp_3306_; +} +else +{ +lean_object* v_a_3391_; lean_object* v___x_3393_; uint8_t v_isShared_3394_; uint8_t v_isSharedCheck_3398_; +lean_dec_ref(v_expectedType_3246_); +lean_dec_ref(v_inst_3245_); +v_a_3391_ = lean_ctor_get(v___x_3390_, 0); +v_isSharedCheck_3398_ = !lean_is_exclusive(v___x_3390_); +if (v_isSharedCheck_3398_ == 0) +{ +v___x_3393_ = v___x_3390_; +v_isShared_3394_ = v_isSharedCheck_3398_; +goto v_resetjp_3392_; +} +else +{ +lean_inc(v_a_3391_); +lean_dec(v___x_3390_); +v___x_3393_ = lean_box(0); +v_isShared_3394_ = v_isSharedCheck_3398_; +goto v_resetjp_3392_; +} +v_resetjp_3392_: +{ +lean_object* v___x_3396_; +if (v_isShared_3394_ == 0) +{ +v___x_3396_ = v___x_3393_; +goto v_reusejp_3395_; +} +else +{ +lean_object* v_reuseFailAlloc_3397_; +v_reuseFailAlloc_3397_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3397_, 0, v_a_3391_); +v___x_3396_ = v_reuseFailAlloc_3397_; +goto v_reusejp_3395_; +} +v_reusejp_3395_: +{ +return v___x_3396_; +} +} +} +} +} +} +} +v___jp_3260_: +{ +lean_object* v___x_3265_; +v___x_3265_ = l_Lean_enableRealizationsForConst(v___y_3261_, v___y_3263_, v___y_3264_); +if (lean_obj_tag(v___x_3265_) == 0) +{ +lean_object* v___x_3267_; uint8_t v_isShared_3268_; uint8_t v_isSharedCheck_3272_; +v_isSharedCheck_3272_ = !lean_is_exclusive(v___x_3265_); +if (v_isSharedCheck_3272_ == 0) +{ +lean_object* v_unused_3273_; +v_unused_3273_ = lean_ctor_get(v___x_3265_, 0); +lean_dec(v_unused_3273_); +v___x_3267_ = v___x_3265_; +v_isShared_3268_ = v_isSharedCheck_3272_; +goto v_resetjp_3266_; +} +else +{ +lean_dec(v___x_3265_); +v___x_3267_ = lean_box(0); +v_isShared_3268_ = v_isSharedCheck_3272_; +goto v_resetjp_3266_; +} +v_resetjp_3266_: +{ +lean_object* v___x_3270_; +if (v_isShared_3268_ == 0) +{ +lean_ctor_set(v___x_3267_, 0, v___y_3262_); +v___x_3270_ = v___x_3267_; +goto v_reusejp_3269_; +} +else +{ +lean_object* v_reuseFailAlloc_3271_; +v_reuseFailAlloc_3271_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3271_, 0, v___y_3262_); +v___x_3270_ = v_reuseFailAlloc_3271_; +goto v_reusejp_3269_; +} +v_reusejp_3269_: +{ +return v___x_3270_; +} +} +} +else +{ +lean_object* v_a_3274_; lean_object* v___x_3276_; uint8_t v_isShared_3277_; uint8_t v_isSharedCheck_3281_; +lean_dec_ref(v___y_3262_); +v_a_3274_ = lean_ctor_get(v___x_3265_, 0); +v_isSharedCheck_3281_ = !lean_is_exclusive(v___x_3265_); +if (v_isSharedCheck_3281_ == 0) +{ +v___x_3276_ = v___x_3265_; +v_isShared_3277_ = v_isSharedCheck_3281_; +goto v_resetjp_3275_; +} +else +{ +lean_inc(v_a_3274_); +lean_dec(v___x_3265_); +v___x_3276_ = lean_box(0); +v_isShared_3277_ = v_isSharedCheck_3281_; +goto v_resetjp_3275_; +} +v_resetjp_3275_: +{ +lean_object* v___x_3279_; +if (v_isShared_3277_ == 0) +{ +v___x_3279_ = v___x_3276_; +goto v_reusejp_3278_; +} +else +{ +lean_object* v_reuseFailAlloc_3280_; +v_reuseFailAlloc_3280_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3280_, 0, v_a_3274_); +v___x_3279_ = v_reuseFailAlloc_3280_; +goto v_reusejp_3278_; +} +v_reusejp_3278_: +{ +return v___x_3279_; +} +} +} +} +v___jp_3282_: +{ +if (v_compile_3248_ == 0) +{ +v___y_3261_ = v___y_3283_; +v___y_3262_ = v___y_3284_; +v___y_3263_ = v___y_3285_; +v___y_3264_ = v___y_3286_; +goto v___jp_3260_; +} +else +{ +lean_object* v___x_3287_; lean_object* v___x_3288_; lean_object* v___x_3289_; lean_object* v___x_3290_; +v___x_3287_ = lean_unsigned_to_nat(1u); +v___x_3288_ = lean_mk_empty_array_with_capacity(v___x_3287_); +lean_inc(v___y_3283_); +v___x_3289_ = lean_array_push(v___x_3288_, v___y_3283_); +v___x_3290_ = l_Lean_compileDecls(v___x_3289_, v_logCompileErrors_3249_, v___y_3285_, v___y_3286_); +if (lean_obj_tag(v___x_3290_) == 0) +{ +lean_dec_ref(v___x_3290_); +v___y_3261_ = v___y_3283_; +v___y_3262_ = v___y_3284_; +v___y_3263_ = v___y_3285_; +v___y_3264_ = v___y_3286_; +goto v___jp_3260_; +} +else +{ +lean_object* v_a_3291_; lean_object* v___x_3293_; uint8_t v_isShared_3294_; uint8_t v_isSharedCheck_3298_; +lean_dec_ref(v___y_3284_); +lean_dec(v___y_3283_); +v_a_3291_ = lean_ctor_get(v___x_3290_, 0); +v_isSharedCheck_3298_ = !lean_is_exclusive(v___x_3290_); +if (v_isSharedCheck_3298_ == 0) +{ +v___x_3293_ = v___x_3290_; +v_isShared_3294_ = v_isSharedCheck_3298_; +goto v_resetjp_3292_; +} +else +{ +lean_inc(v_a_3291_); +lean_dec(v___x_3290_); +v___x_3293_ = lean_box(0); +v_isShared_3294_ = v_isSharedCheck_3298_; +goto v_resetjp_3292_; +} +v_resetjp_3292_: +{ +lean_object* v___x_3296_; +if (v_isShared_3294_ == 0) +{ +v___x_3296_ = v___x_3293_; +goto v_reusejp_3295_; +} +else +{ +lean_object* v_reuseFailAlloc_3297_; +v_reuseFailAlloc_3297_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3297_, 0, v_a_3291_); +v___x_3296_ = v_reuseFailAlloc_3297_; +goto v_reusejp_3295_; +} +v_reusejp_3295_: +{ +return v___x_3296_; +} +} +} +} } } } static double _init_l_Lean_Meta_wrapInstance___closed__1(void){ _start: { -lean_object* v___x_3596_; double v___x_3597_; -v___x_3596_ = lean_unsigned_to_nat(1000000000u); -v___x_3597_ = lean_float_of_nat(v___x_3596_); -return v___x_3597_; +lean_object* v___x_3526_; double v___x_3527_; +v___x_3526_ = lean_unsigned_to_nat(1000000000u); +v___x_3527_ = lean_float_of_nat(v___x_3526_); +return v___x_3527_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg(lean_object* v_upperBound_3598_, lean_object* v_fst_3599_, lean_object* v_args_3600_, uint8_t v___x_3601_, uint8_t v_compile_3602_, uint8_t v_logCompileErrors_3603_, uint8_t v___x_3604_, uint8_t v_isMeta_3605_, lean_object* v_val_3606_, lean_object* v_expectedType_3607_, lean_object* v_a_3608_, lean_object* v_b_3609_, lean_object* v___y_3610_, lean_object* v___y_3611_, lean_object* v___y_3612_, lean_object* v___y_3613_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg(lean_object* v_upperBound_3528_, lean_object* v_fst_3529_, lean_object* v_args_3530_, uint8_t v___x_3531_, uint8_t v_compile_3532_, uint8_t v_logCompileErrors_3533_, uint8_t v___x_3534_, uint8_t v_isMeta_3535_, lean_object* v_val_3536_, lean_object* v_expectedType_3537_, lean_object* v_a_3538_, lean_object* v_b_3539_, lean_object* v___y_3540_, lean_object* v___y_3541_, lean_object* v___y_3542_, lean_object* v___y_3543_){ _start: { -lean_object* v_a_3616_; lean_object* v___y_3621_; uint8_t v___x_3640_; -v___x_3640_ = lean_nat_dec_lt(v_a_3608_, v_upperBound_3598_); +lean_object* v_a_3546_; lean_object* v___y_3551_; uint8_t v___x_3570_; +v___x_3570_ = lean_nat_dec_lt(v_a_3538_, v_upperBound_3528_); +if (v___x_3570_ == 0) +{ +lean_object* v___x_3571_; +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v___x_3571_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3571_, 0, v_b_3539_); +return v___x_3571_; +} +else +{ +lean_object* v___x_3572_; lean_object* v___x_3573_; lean_object* v___x_3574_; +v___x_3572_ = lean_array_fget_borrowed(v_fst_3529_, v_a_3538_); +v___x_3573_ = l_Lean_Expr_mvarId_x21(v___x_3572_); +lean_inc(v___x_3573_); +v___x_3574_ = l_Lean_MVarId_getDecl(v___x_3573_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3574_) == 0) +{ +lean_object* v_a_3575_; lean_object* v_userName_3576_; lean_object* v_type_3577_; lean_object* v___x_3578_; +v_a_3575_ = lean_ctor_get(v___x_3574_, 0); +lean_inc(v_a_3575_); +lean_dec_ref(v___x_3574_); +v_userName_3576_ = lean_ctor_get(v_a_3575_, 0); +lean_inc(v_userName_3576_); +v_type_3577_ = lean_ctor_get(v_a_3575_, 2); +lean_inc_ref(v_type_3577_); +lean_dec(v_a_3575_); +v___x_3578_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_type_3577_, v___y_3541_); +if (lean_obj_tag(v___x_3578_) == 0) +{ +lean_object* v_a_3579_; lean_object* v___x_3580_; +v_a_3579_ = lean_ctor_get(v___x_3578_, 0); +lean_inc_n(v_a_3579_, 2); +lean_dec_ref(v___x_3578_); +v___x_3580_ = l_Lean_Meta_isProp(v_a_3579_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3580_) == 0) +{ +lean_object* v_a_3581_; lean_object* v___x_3582_; lean_object* v_cls_3583_; lean_object* v___f_3584_; lean_object* v___x_3585_; uint8_t v___x_3586_; +v_a_3581_ = lean_ctor_get(v___x_3580_, 0); +lean_inc(v_a_3581_); +lean_dec_ref(v___x_3580_); +v___x_3582_ = lean_box(0); +v_cls_3583_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___f_3584_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0)); +v___x_3585_ = lean_array_fget_borrowed(v_args_3530_, v_a_3538_); +v___x_3586_ = lean_unbox(v_a_3581_); +lean_dec(v_a_3581_); +if (v___x_3586_ == 0) +{ +lean_object* v___x_3587_; +lean_inc(v_a_3579_); +v___x_3587_ = l_Lean_Meta_isClass_x3f(v_a_3579_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3587_) == 0) +{ +lean_object* v_a_3588_; lean_object* v___x_3590_; uint8_t v_isShared_3591_; uint8_t v_isSharedCheck_3686_; +v_a_3588_ = lean_ctor_get(v___x_3587_, 0); +v_isSharedCheck_3686_ = !lean_is_exclusive(v___x_3587_); +if (v_isSharedCheck_3686_ == 0) +{ +v___x_3590_ = v___x_3587_; +v_isShared_3591_ = v_isSharedCheck_3686_; +goto v_resetjp_3589_; +} +else +{ +lean_inc(v_a_3588_); +lean_dec(v___x_3587_); +v___x_3590_ = lean_box(0); +v_isShared_3591_ = v_isSharedCheck_3686_; +goto v_resetjp_3589_; +} +v_resetjp_3589_: +{ +lean_object* v_a_3593_; lean_object* v___y_3596_; uint8_t v___y_3597_; lean_object* v_a_3602_; lean_object* v___y_3606_; +if (lean_obj_tag(v_a_3588_) == 0) +{ +if (v___x_3534_ == 0) +{ +lean_object* v_options_3632_; lean_object* v___x_3633_; lean_object* v___x_3634_; lean_object* v___x_3635_; lean_object* v___x_3636_; lean_object* v___x_3637_; lean_object* v___f_3638_; lean_object* v___x_3639_; uint8_t v___x_3640_; +lean_del_object(v___x_3590_); +v_options_3632_ = lean_ctor_get(v___y_3542_, 2); +v___x_3633_ = lean_box(v___x_3534_); +v___x_3634_ = lean_box(v___x_3531_); +v___x_3635_ = lean_box(v_compile_3532_); +v___x_3636_ = lean_box(v_logCompileErrors_3533_); +v___x_3637_ = lean_box(v_isMeta_3535_); +lean_inc(v_a_3579_); +lean_inc(v___x_3585_); +lean_inc(v___x_3573_); +v___f_3638_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___boxed), 15, 9); +lean_closure_set(v___f_3638_, 0, v___x_3573_); +lean_closure_set(v___f_3638_, 1, v___x_3585_); +lean_closure_set(v___f_3638_, 2, v___x_3582_); +lean_closure_set(v___f_3638_, 3, v_a_3579_); +lean_closure_set(v___f_3638_, 4, v___x_3633_); +lean_closure_set(v___f_3638_, 5, v___x_3634_); +lean_closure_set(v___f_3638_, 6, v___x_3635_); +lean_closure_set(v___f_3638_, 7, v___x_3636_); +lean_closure_set(v___f_3638_, 8, v___x_3637_); +v___x_3639_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_3640_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3632_, v___x_3639_); if (v___x_3640_ == 0) { lean_object* v___x_3641_; -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v___x_3641_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3641_, 0, v_b_3609_); -return v___x_3641_; +lean_dec_ref(v___f_3638_); +lean_dec(v_userName_3576_); +lean_inc(v___x_3585_); +v___x_3641_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_3573_, v___x_3585_, v___x_3582_, v_a_3579_, v___x_3534_, v___x_3531_, v_compile_3532_, v_logCompileErrors_3533_, v_isMeta_3535_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3641_; +goto v___jp_3550_; } else { -lean_object* v___x_3642_; lean_object* v___x_3643_; lean_object* v___x_3644_; -v___x_3642_ = lean_array_fget_borrowed(v_fst_3599_, v_a_3608_); -v___x_3643_ = l_Lean_Expr_mvarId_x21(v___x_3642_); -lean_inc(v___x_3643_); -v___x_3644_ = l_Lean_MVarId_getDecl(v___x_3643_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3644_) == 0) +lean_object* v___x_3642_; +lean_inc(v_userName_3576_); +lean_inc(v_val_3536_); +v___x_3642_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_3536_, v_userName_3576_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3642_) == 0) { -lean_object* v_a_3645_; lean_object* v_userName_3646_; lean_object* v_type_3647_; lean_object* v___x_3648_; -v_a_3645_ = lean_ctor_get(v___x_3644_, 0); -lean_inc(v_a_3645_); -lean_dec_ref(v___x_3644_); -v_userName_3646_ = lean_ctor_get(v_a_3645_, 0); -lean_inc(v_userName_3646_); -v_type_3647_ = lean_ctor_get(v_a_3645_, 2); -lean_inc_ref(v_type_3647_); -lean_dec(v_a_3645_); -v___x_3648_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_type_3647_, v___y_3611_); -if (lean_obj_tag(v___x_3648_) == 0) +lean_object* v_a_3643_; lean_object* v_fst_3644_; lean_object* v_snd_3645_; lean_object* v___x_3647_; uint8_t v_isShared_3648_; uint8_t v_isSharedCheck_3677_; +v_a_3643_ = lean_ctor_get(v___x_3642_, 0); +lean_inc(v_a_3643_); +lean_dec_ref(v___x_3642_); +v_fst_3644_ = lean_ctor_get(v_a_3643_, 0); +v_snd_3645_ = lean_ctor_get(v_a_3643_, 1); +v_isSharedCheck_3677_ = !lean_is_exclusive(v_a_3643_); +if (v_isSharedCheck_3677_ == 0) { -lean_object* v_a_3649_; lean_object* v___x_3650_; -v_a_3649_ = lean_ctor_get(v___x_3648_, 0); -lean_inc_n(v_a_3649_, 2); -lean_dec_ref(v___x_3648_); -v___x_3650_ = l_Lean_Meta_isProp(v_a_3649_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); +v___x_3647_ = v_a_3643_; +v_isShared_3648_ = v_isSharedCheck_3677_; +goto v_resetjp_3646_; +} +else +{ +lean_inc(v_snd_3645_); +lean_inc(v_fst_3644_); +lean_dec(v_a_3643_); +v___x_3647_ = lean_box(0); +v_isShared_3648_ = v_isSharedCheck_3677_; +goto v_resetjp_3646_; +} +v_resetjp_3646_: +{ +uint8_t v___x_3649_; +v___x_3649_ = lean_name_eq(v_fst_3644_, v_val_3536_); +if (v___x_3649_ == 0) +{ +lean_object* v___x_3650_; +lean_dec(v_a_3579_); +v___x_3650_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3583_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); if (lean_obj_tag(v___x_3650_) == 0) { -lean_object* v_a_3651_; lean_object* v___x_3652_; lean_object* v_cls_3653_; lean_object* v___f_3654_; lean_object* v___x_3655_; uint8_t v___x_3656_; +lean_object* v_a_3651_; uint8_t v___x_3652_; v_a_3651_ = lean_ctor_get(v___x_3650_, 0); lean_inc(v_a_3651_); lean_dec_ref(v___x_3650_); -v___x_3652_ = lean_box(0); -v_cls_3653_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___f_3654_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0)); -v___x_3655_ = lean_array_fget_borrowed(v_args_3600_, v_a_3608_); -v___x_3656_ = lean_unbox(v_a_3651_); +v___x_3652_ = lean_unbox(v_a_3651_); lean_dec(v_a_3651_); -if (v___x_3656_ == 0) +if (v___x_3652_ == 0) { -lean_object* v___x_3657_; -lean_inc(v_a_3649_); -v___x_3657_ = l_Lean_Meta_isClass_x3f(v_a_3649_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3657_) == 0) -{ -lean_object* v_a_3658_; lean_object* v___x_3660_; uint8_t v_isShared_3661_; uint8_t v_isSharedCheck_3756_; -v_a_3658_ = lean_ctor_get(v___x_3657_, 0); -v_isSharedCheck_3756_ = !lean_is_exclusive(v___x_3657_); -if (v_isSharedCheck_3756_ == 0) -{ -v___x_3660_ = v___x_3657_; -v_isShared_3661_ = v_isSharedCheck_3756_; -goto v_resetjp_3659_; +lean_object* v___x_3653_; +lean_del_object(v___x_3647_); +lean_dec(v_userName_3576_); +lean_inc_ref(v_expectedType_3537_); +lean_inc(v_val_3536_); +v___x_3653_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(v_val_3536_, v_fst_3644_, v_expectedType_3537_, v___f_3584_, v___f_3638_, v___x_3582_, v_cls_3583_, v_snd_3645_, v___x_3573_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3653_; +goto v___jp_3550_; } else { -lean_inc(v_a_3658_); -lean_dec(v___x_3657_); -v___x_3660_ = lean_box(0); -v_isShared_3661_ = v_isSharedCheck_3756_; -goto v_resetjp_3659_; -} -v_resetjp_3659_: +lean_object* v___x_3654_; lean_object* v___x_3655_; lean_object* v___x_3657_; +v___x_3654_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4); +v___x_3655_ = l_Lean_MessageData_ofName(v_userName_3576_); +if (v_isShared_3648_ == 0) { -lean_object* v_a_3663_; lean_object* v___y_3666_; uint8_t v___y_3667_; lean_object* v_a_3672_; lean_object* v___y_3676_; -if (lean_obj_tag(v_a_3658_) == 0) -{ -if (v___x_3604_ == 0) -{ -lean_object* v_options_3702_; lean_object* v___x_3703_; lean_object* v___x_3704_; lean_object* v___x_3705_; lean_object* v___x_3706_; lean_object* v___x_3707_; lean_object* v___f_3708_; lean_object* v___x_3709_; uint8_t v___x_3710_; -lean_del_object(v___x_3660_); -v_options_3702_ = lean_ctor_get(v___y_3612_, 2); -v___x_3703_ = lean_box(v___x_3604_); -v___x_3704_ = lean_box(v___x_3601_); -v___x_3705_ = lean_box(v_compile_3602_); -v___x_3706_ = lean_box(v_logCompileErrors_3603_); -v___x_3707_ = lean_box(v_isMeta_3605_); -lean_inc(v_a_3649_); -lean_inc(v___x_3655_); -lean_inc(v___x_3643_); -v___f_3708_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___boxed), 15, 9); -lean_closure_set(v___f_3708_, 0, v___x_3643_); -lean_closure_set(v___f_3708_, 1, v___x_3655_); -lean_closure_set(v___f_3708_, 2, v___x_3652_); -lean_closure_set(v___f_3708_, 3, v_a_3649_); -lean_closure_set(v___f_3708_, 4, v___x_3703_); -lean_closure_set(v___f_3708_, 5, v___x_3704_); -lean_closure_set(v___f_3708_, 6, v___x_3705_); -lean_closure_set(v___f_3708_, 7, v___x_3706_); -lean_closure_set(v___f_3708_, 8, v___x_3707_); -v___x_3709_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_3710_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3702_, v___x_3709_); -if (v___x_3710_ == 0) -{ -lean_object* v___x_3711_; -lean_dec_ref(v___f_3708_); -lean_dec(v_userName_3646_); -lean_inc(v___x_3655_); -v___x_3711_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_3643_, v___x_3655_, v___x_3652_, v_a_3649_, v___x_3604_, v___x_3601_, v_compile_3602_, v_logCompileErrors_3603_, v_isMeta_3605_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3711_; -goto v___jp_3620_; +lean_ctor_set_tag(v___x_3647_, 7); +lean_ctor_set(v___x_3647_, 1, v___x_3655_); +lean_ctor_set(v___x_3647_, 0, v___x_3654_); +v___x_3657_ = v___x_3647_; +goto v_reusejp_3656_; } else { -lean_object* v___x_3712_; -lean_inc(v_userName_3646_); -lean_inc(v_val_3606_); -v___x_3712_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_3606_, v_userName_3646_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3712_) == 0) +lean_object* v_reuseFailAlloc_3667_; +v_reuseFailAlloc_3667_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3667_, 0, v___x_3654_); +lean_ctor_set(v_reuseFailAlloc_3667_, 1, v___x_3655_); +v___x_3657_ = v_reuseFailAlloc_3667_; +goto v_reusejp_3656_; +} +v_reusejp_3656_: { -lean_object* v_a_3713_; lean_object* v_fst_3714_; lean_object* v_snd_3715_; lean_object* v___x_3717_; uint8_t v_isShared_3718_; uint8_t v_isSharedCheck_3747_; -v_a_3713_ = lean_ctor_get(v___x_3712_, 0); -lean_inc(v_a_3713_); -lean_dec_ref(v___x_3712_); -v_fst_3714_ = lean_ctor_get(v_a_3713_, 0); -v_snd_3715_ = lean_ctor_get(v_a_3713_, 1); -v_isSharedCheck_3747_ = !lean_is_exclusive(v_a_3713_); -if (v_isSharedCheck_3747_ == 0) +lean_object* v___x_3658_; lean_object* v___x_3659_; lean_object* v___x_3660_; lean_object* v___x_3661_; lean_object* v___x_3662_; lean_object* v___x_3663_; lean_object* v___x_3664_; +v___x_3658_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6); +v___x_3659_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3659_, 0, v___x_3657_); +lean_ctor_set(v___x_3659_, 1, v___x_3658_); +lean_inc(v_fst_3644_); +v___x_3660_ = l_Lean_MessageData_ofName(v_fst_3644_); +v___x_3661_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3661_, 0, v___x_3659_); +lean_ctor_set(v___x_3661_, 1, v___x_3660_); +v___x_3662_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_3663_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3663_, 0, v___x_3661_); +lean_ctor_set(v___x_3663_, 1, v___x_3662_); +v___x_3664_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3583_, v___x_3663_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3664_) == 0) { -v___x_3717_ = v_a_3713_; -v_isShared_3718_ = v_isSharedCheck_3747_; -goto v_resetjp_3716_; +lean_object* v_a_3665_; lean_object* v___x_3666_; +v_a_3665_ = lean_ctor_get(v___x_3664_, 0); +lean_inc(v_a_3665_); +lean_dec_ref(v___x_3664_); +lean_inc_ref(v_expectedType_3537_); +lean_inc(v_val_3536_); +v___x_3666_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(v_val_3536_, v_fst_3644_, v_expectedType_3537_, v___f_3584_, v___f_3638_, v___x_3582_, v_cls_3583_, v_snd_3645_, v___x_3573_, v_a_3665_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3666_; +goto v___jp_3550_; } else { -lean_inc(v_snd_3715_); -lean_inc(v_fst_3714_); -lean_dec(v_a_3713_); -v___x_3717_ = lean_box(0); -v_isShared_3718_ = v_isSharedCheck_3747_; -goto v_resetjp_3716_; -} -v_resetjp_3716_: -{ -uint8_t v___x_3719_; -v___x_3719_ = lean_name_eq(v_fst_3714_, v_val_3606_); -if (v___x_3719_ == 0) -{ -lean_object* v___x_3720_; -lean_dec(v_a_3649_); -v___x_3720_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3653_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3720_) == 0) -{ -lean_object* v_a_3721_; uint8_t v___x_3722_; -v_a_3721_ = lean_ctor_get(v___x_3720_, 0); -lean_inc(v_a_3721_); -lean_dec_ref(v___x_3720_); -v___x_3722_ = lean_unbox(v_a_3721_); -lean_dec(v_a_3721_); -if (v___x_3722_ == 0) -{ -lean_object* v___x_3723_; -lean_del_object(v___x_3717_); -lean_dec(v_userName_3646_); -lean_inc_ref(v_expectedType_3607_); -lean_inc(v_val_3606_); -v___x_3723_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(v_val_3606_, v_fst_3714_, v_expectedType_3607_, v___f_3654_, v___f_3708_, v___x_3652_, v_cls_3653_, v_snd_3715_, v___x_3643_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3723_; -goto v___jp_3620_; -} -else -{ -lean_object* v___x_3724_; lean_object* v___x_3725_; lean_object* v___x_3727_; -v___x_3724_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4); -v___x_3725_ = l_Lean_MessageData_ofName(v_userName_3646_); -if (v_isShared_3718_ == 0) -{ -lean_ctor_set_tag(v___x_3717_, 7); -lean_ctor_set(v___x_3717_, 1, v___x_3725_); -lean_ctor_set(v___x_3717_, 0, v___x_3724_); -v___x_3727_ = v___x_3717_; -goto v_reusejp_3726_; -} -else -{ -lean_object* v_reuseFailAlloc_3737_; -v_reuseFailAlloc_3737_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3737_, 0, v___x_3724_); -lean_ctor_set(v_reuseFailAlloc_3737_, 1, v___x_3725_); -v___x_3727_ = v_reuseFailAlloc_3737_; -goto v_reusejp_3726_; -} -v_reusejp_3726_: -{ -lean_object* v___x_3728_; lean_object* v___x_3729_; lean_object* v___x_3730_; lean_object* v___x_3731_; lean_object* v___x_3732_; lean_object* v___x_3733_; lean_object* v___x_3734_; -v___x_3728_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6); -v___x_3729_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3729_, 0, v___x_3727_); -lean_ctor_set(v___x_3729_, 1, v___x_3728_); -lean_inc(v_fst_3714_); -v___x_3730_ = l_Lean_MessageData_ofName(v_fst_3714_); -v___x_3731_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3731_, 0, v___x_3729_); -lean_ctor_set(v___x_3731_, 1, v___x_3730_); -v___x_3732_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_3733_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3733_, 0, v___x_3731_); -lean_ctor_set(v___x_3733_, 1, v___x_3732_); -v___x_3734_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3653_, v___x_3733_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3734_) == 0) -{ -lean_object* v_a_3735_; lean_object* v___x_3736_; -v_a_3735_ = lean_ctor_get(v___x_3734_, 0); -lean_inc(v_a_3735_); -lean_dec_ref(v___x_3734_); -lean_inc_ref(v_expectedType_3607_); -lean_inc(v_val_3606_); -v___x_3736_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__3(v_val_3606_, v_fst_3714_, v_expectedType_3607_, v___f_3654_, v___f_3708_, v___x_3652_, v_cls_3653_, v_snd_3715_, v___x_3643_, v_a_3735_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3736_; -goto v___jp_3620_; -} -else -{ -lean_dec(v_snd_3715_); -lean_dec(v_fst_3714_); -lean_dec_ref(v___f_3708_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -return v___x_3734_; +lean_dec(v_snd_3645_); +lean_dec(v_fst_3644_); +lean_dec_ref(v___f_3638_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +return v___x_3664_; } } } } else { -lean_object* v_a_3738_; lean_object* v___x_3740_; uint8_t v_isShared_3741_; uint8_t v_isSharedCheck_3745_; -lean_del_object(v___x_3717_); -lean_dec(v_snd_3715_); -lean_dec(v_fst_3714_); -lean_dec_ref(v___f_3708_); -lean_dec(v_userName_3646_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3738_ = lean_ctor_get(v___x_3720_, 0); -v_isSharedCheck_3745_ = !lean_is_exclusive(v___x_3720_); -if (v_isSharedCheck_3745_ == 0) +lean_object* v_a_3668_; lean_object* v___x_3670_; uint8_t v_isShared_3671_; uint8_t v_isSharedCheck_3675_; +lean_del_object(v___x_3647_); +lean_dec(v_snd_3645_); +lean_dec(v_fst_3644_); +lean_dec_ref(v___f_3638_); +lean_dec(v_userName_3576_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3668_ = lean_ctor_get(v___x_3650_, 0); +v_isSharedCheck_3675_ = !lean_is_exclusive(v___x_3650_); +if (v_isSharedCheck_3675_ == 0) { -v___x_3740_ = v___x_3720_; -v_isShared_3741_ = v_isSharedCheck_3745_; -goto v_resetjp_3739_; +v___x_3670_ = v___x_3650_; +v_isShared_3671_ = v_isSharedCheck_3675_; +goto v_resetjp_3669_; } else { -lean_inc(v_a_3738_); -lean_dec(v___x_3720_); -v___x_3740_ = lean_box(0); -v_isShared_3741_ = v_isSharedCheck_3745_; -goto v_resetjp_3739_; -} -v_resetjp_3739_: -{ -lean_object* v___x_3743_; -if (v_isShared_3741_ == 0) -{ -v___x_3743_ = v___x_3740_; -goto v_reusejp_3742_; -} -else -{ -lean_object* v_reuseFailAlloc_3744_; -v_reuseFailAlloc_3744_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3744_, 0, v_a_3738_); -v___x_3743_ = v_reuseFailAlloc_3744_; -goto v_reusejp_3742_; -} -v_reusejp_3742_: -{ -return v___x_3743_; -} -} -} -} -else -{ -lean_object* v___x_3746_; -lean_del_object(v___x_3717_); -lean_dec(v_snd_3715_); -lean_dec(v_fst_3714_); -lean_dec_ref(v___f_3708_); -lean_dec(v_userName_3646_); -lean_inc(v___x_3655_); -v___x_3746_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_3643_, v___x_3655_, v___x_3652_, v_a_3649_, v___x_3604_, v___x_3601_, v_compile_3602_, v_logCompileErrors_3603_, v_isMeta_3605_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3746_; -goto v___jp_3620_; -} -} -} -else -{ -lean_object* v_a_3748_; lean_object* v___x_3750_; uint8_t v_isShared_3751_; uint8_t v_isSharedCheck_3755_; -lean_dec_ref(v___f_3708_); -lean_dec(v_a_3649_); -lean_dec(v_userName_3646_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3748_ = lean_ctor_get(v___x_3712_, 0); -v_isSharedCheck_3755_ = !lean_is_exclusive(v___x_3712_); -if (v_isSharedCheck_3755_ == 0) -{ -v___x_3750_ = v___x_3712_; -v_isShared_3751_ = v_isSharedCheck_3755_; -goto v_resetjp_3749_; -} -else -{ -lean_inc(v_a_3748_); -lean_dec(v___x_3712_); -v___x_3750_ = lean_box(0); -v_isShared_3751_ = v_isSharedCheck_3755_; -goto v_resetjp_3749_; -} -v_resetjp_3749_: -{ -lean_object* v___x_3753_; -if (v_isShared_3751_ == 0) -{ -v___x_3753_ = v___x_3750_; -goto v_reusejp_3752_; -} -else -{ -lean_object* v_reuseFailAlloc_3754_; -v_reuseFailAlloc_3754_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3754_, 0, v_a_3748_); -v___x_3753_ = v_reuseFailAlloc_3754_; -goto v_reusejp_3752_; -} -v_reusejp_3752_: -{ -return v___x_3753_; -} -} -} -} -} -else -{ -lean_dec(v_userName_3646_); -goto v___jp_3680_; -} -} -else -{ -lean_dec_ref(v_a_3658_); -lean_dec(v_userName_3646_); -goto v___jp_3680_; -} -v___jp_3662_: -{ -lean_object* v___x_3664_; -lean_inc(v___x_3655_); -v___x_3664_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_3655_, v_a_3649_, v_compile_3602_, v_logCompileErrors_3603_, v_isMeta_3605_, v___x_3643_, v___x_3652_, v_a_3663_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3664_; -goto v___jp_3620_; -} -v___jp_3665_: -{ -if (v___y_3667_ == 0) -{ -lean_dec_ref(v___y_3666_); -lean_del_object(v___x_3660_); -v_a_3663_ = v___x_3652_; -goto v___jp_3662_; -} -else -{ -lean_object* v___x_3669_; -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -if (v_isShared_3661_ == 0) -{ -lean_ctor_set_tag(v___x_3660_, 1); -lean_ctor_set(v___x_3660_, 0, v___y_3666_); -v___x_3669_ = v___x_3660_; -goto v_reusejp_3668_; -} -else -{ -lean_object* v_reuseFailAlloc_3670_; -v_reuseFailAlloc_3670_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3670_, 0, v___y_3666_); -v___x_3669_ = v_reuseFailAlloc_3670_; -goto v_reusejp_3668_; -} -v_reusejp_3668_: -{ -return v___x_3669_; -} -} -} -v___jp_3671_: -{ -uint8_t v___x_3673_; -v___x_3673_ = l_Lean_Exception_isInterrupt(v_a_3672_); -if (v___x_3673_ == 0) -{ -uint8_t v___x_3674_; -lean_inc_ref(v_a_3672_); -v___x_3674_ = l_Lean_Exception_isRuntime(v_a_3672_); -v___y_3666_ = v_a_3672_; -v___y_3667_ = v___x_3674_; -goto v___jp_3665_; -} -else -{ -v___y_3666_ = v_a_3672_; -v___y_3667_ = v___x_3673_; -goto v___jp_3665_; -} -} -v___jp_3675_: -{ -if (lean_obj_tag(v___y_3676_) == 0) -{ -lean_object* v_a_3677_; -lean_del_object(v___x_3660_); -v_a_3677_ = lean_ctor_get(v___y_3676_, 0); -lean_inc(v_a_3677_); -lean_dec_ref(v___y_3676_); -if (lean_obj_tag(v_a_3677_) == 0) -{ -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -v_a_3616_ = v___x_3652_; -goto v___jp_3615_; -} -else -{ -lean_object* v_a_3678_; -v_a_3678_ = lean_ctor_get(v_a_3677_, 0); -lean_inc(v_a_3678_); -lean_dec_ref(v_a_3677_); -v_a_3663_ = v_a_3678_; -goto v___jp_3662_; -} -} -else -{ -lean_object* v_a_3679_; -v_a_3679_ = lean_ctor_get(v___y_3676_, 0); -lean_inc(v_a_3679_); -lean_dec_ref(v___y_3676_); -v_a_3672_ = v_a_3679_; -goto v___jp_3671_; -} -} -v___jp_3680_: -{ -lean_object* v_options_3681_; lean_object* v___x_3682_; uint8_t v___x_3683_; -v_options_3681_ = lean_ctor_get(v___y_3612_, 2); -v___x_3682_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_3683_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3681_, v___x_3682_); -if (v___x_3683_ == 0) -{ -lean_object* v___x_3684_; -lean_del_object(v___x_3660_); -lean_inc(v___x_3655_); -v___x_3684_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_3655_, v_a_3649_, v_compile_3602_, v_logCompileErrors_3603_, v_isMeta_3605_, v___x_3643_, v___x_3652_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3684_; -goto v___jp_3620_; -} -else -{ -lean_object* v___x_3685_; lean_object* v___x_3686_; -v___x_3685_ = lean_box(0); -lean_inc(v_a_3649_); -v___x_3686_ = l_Lean_Meta_trySynthInstance(v_a_3649_, v___x_3685_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3686_) == 0) -{ -lean_object* v_a_3687_; -v_a_3687_ = lean_ctor_get(v___x_3686_, 0); -lean_inc(v_a_3687_); -lean_dec_ref(v___x_3686_); -if (lean_obj_tag(v_a_3687_) == 1) -{ -lean_object* v_a_3688_; lean_object* v___x_3689_; -v_a_3688_ = lean_ctor_get(v_a_3687_, 0); -lean_inc(v_a_3688_); -lean_dec_ref(v_a_3687_); -v___x_3689_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3653_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3689_) == 0) -{ -lean_object* v_a_3690_; uint8_t v___x_3691_; -v_a_3690_ = lean_ctor_get(v___x_3689_, 0); -lean_inc(v_a_3690_); -lean_dec_ref(v___x_3689_); -v___x_3691_ = lean_unbox(v_a_3690_); -lean_dec(v_a_3690_); -if (v___x_3691_ == 0) -{ -lean_object* v___x_3692_; -lean_inc(v___x_3643_); -v___x_3692_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_3643_, v_a_3688_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3676_ = v___x_3692_; -goto v___jp_3675_; -} -else -{ -lean_object* v___x_3693_; lean_object* v___x_3694_; lean_object* v___x_3695_; lean_object* v___x_3696_; -v___x_3693_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2); -lean_inc(v_a_3688_); -v___x_3694_ = l_Lean_MessageData_ofExpr(v_a_3688_); -v___x_3695_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3695_, 0, v___x_3693_); -lean_ctor_set(v___x_3695_, 1, v___x_3694_); -v___x_3696_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3653_, v___x_3695_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3696_) == 0) -{ -lean_object* v_a_3697_; lean_object* v___x_3698_; -v_a_3697_ = lean_ctor_get(v___x_3696_, 0); -lean_inc(v_a_3697_); -lean_dec_ref(v___x_3696_); -lean_inc(v___x_3643_); -v___x_3698_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_3643_, v_a_3688_, v_a_3697_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3676_ = v___x_3698_; -goto v___jp_3675_; -} -else -{ -lean_object* v_a_3699_; -lean_dec(v_a_3688_); -v_a_3699_ = lean_ctor_get(v___x_3696_, 0); -lean_inc(v_a_3699_); -lean_dec_ref(v___x_3696_); -v_a_3672_ = v_a_3699_; -goto v___jp_3671_; -} -} -} -else -{ -lean_object* v_a_3700_; -lean_dec(v_a_3688_); -v_a_3700_ = lean_ctor_get(v___x_3689_, 0); -lean_inc(v_a_3700_); -lean_dec_ref(v___x_3689_); -v_a_3672_ = v_a_3700_; -goto v___jp_3671_; -} -} -else -{ -lean_dec(v_a_3687_); -lean_del_object(v___x_3660_); -v_a_3663_ = v___x_3652_; -goto v___jp_3662_; -} -} -else -{ -lean_object* v_a_3701_; -v_a_3701_ = lean_ctor_get(v___x_3686_, 0); -lean_inc(v_a_3701_); -lean_dec_ref(v___x_3686_); -v_a_3672_ = v_a_3701_; -goto v___jp_3671_; -} -} -} -} -} -else -{ -lean_object* v_a_3757_; lean_object* v___x_3759_; uint8_t v_isShared_3760_; uint8_t v_isSharedCheck_3764_; -lean_dec(v_a_3649_); -lean_dec(v_userName_3646_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3757_ = lean_ctor_get(v___x_3657_, 0); -v_isSharedCheck_3764_ = !lean_is_exclusive(v___x_3657_); -if (v_isSharedCheck_3764_ == 0) -{ -v___x_3759_ = v___x_3657_; -v_isShared_3760_ = v_isSharedCheck_3764_; -goto v_resetjp_3758_; -} -else -{ -lean_inc(v_a_3757_); -lean_dec(v___x_3657_); -v___x_3759_ = lean_box(0); -v_isShared_3760_ = v_isSharedCheck_3764_; -goto v_resetjp_3758_; -} -v_resetjp_3758_: -{ -lean_object* v___x_3762_; -if (v_isShared_3760_ == 0) -{ -v___x_3762_ = v___x_3759_; -goto v_reusejp_3761_; -} -else -{ -lean_object* v_reuseFailAlloc_3763_; -v_reuseFailAlloc_3763_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3763_, 0, v_a_3757_); -v___x_3762_ = v_reuseFailAlloc_3763_; -goto v_reusejp_3761_; -} -v_reusejp_3761_: -{ -return v___x_3762_; -} -} -} -} -else -{ -lean_object* v___x_3765_; -lean_dec(v_userName_3646_); -lean_inc(v___y_3613_); -lean_inc_ref(v___y_3612_); -lean_inc(v___y_3611_); -lean_inc_ref(v___y_3610_); -lean_inc(v___x_3655_); -v___x_3765_ = lean_infer_type(v___x_3655_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3765_) == 0) -{ -lean_object* v_a_3766_; lean_object* v___x_3767_; -v_a_3766_ = lean_ctor_get(v___x_3765_, 0); -lean_inc_n(v_a_3766_, 2); -lean_dec_ref(v___x_3765_); -lean_inc(v_a_3649_); -v___x_3767_ = l_Lean_Meta_isExprDefEq(v_a_3649_, v_a_3766_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3767_) == 0) -{ -lean_object* v_a_3768_; lean_object* v___f_3769_; uint8_t v___x_3770_; -v_a_3768_ = lean_ctor_get(v___x_3767_, 0); -lean_inc(v_a_3768_); -lean_dec_ref(v___x_3767_); -v___f_3769_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7)); -v___x_3770_ = lean_unbox(v_a_3768_); -lean_dec(v_a_3768_); -if (v___x_3770_ == 0) -{ -lean_object* v___x_3771_; -v___x_3771_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3653_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3771_) == 0) -{ -lean_object* v_a_3772_; uint8_t v___x_3773_; -v_a_3772_ = lean_ctor_get(v___x_3771_, 0); -lean_inc(v_a_3772_); -lean_dec_ref(v___x_3771_); -v___x_3773_ = lean_unbox(v_a_3772_); -lean_dec(v_a_3772_); -if (v___x_3773_ == 0) -{ -lean_object* v___x_3774_; -lean_dec(v_a_3766_); -lean_inc(v___x_3655_); -v___x_3774_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_3649_, v___x_3655_, v___x_3601_, v___x_3643_, v___f_3769_, v___x_3652_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3774_; -goto v___jp_3620_; -} -else -{ -lean_object* v___x_3775_; lean_object* v___x_3776_; lean_object* v___x_3777_; lean_object* v___x_3778_; lean_object* v___x_3779_; lean_object* v___x_3780_; lean_object* v___x_3781_; lean_object* v___x_3782_; lean_object* v___x_3783_; lean_object* v___x_3784_; lean_object* v___x_3785_; lean_object* v___x_3786_; lean_object* v___x_3787_; lean_object* v___x_3788_; lean_object* v___x_3789_; lean_object* v___x_3790_; lean_object* v___x_3791_; lean_object* v___x_3792_; -v___x_3775_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9); -lean_inc(v_a_3608_); -v___x_3776_ = l_Nat_reprFast(v_a_3608_); -v___x_3777_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_3777_, 0, v___x_3776_); -v___x_3778_ = l_Lean_MessageData_ofFormat(v___x_3777_); -v___x_3779_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3779_, 0, v___x_3775_); -lean_ctor_set(v___x_3779_, 1, v___x_3778_); -v___x_3780_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11); -v___x_3781_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3781_, 0, v___x_3779_); -lean_ctor_set(v___x_3781_, 1, v___x_3780_); -lean_inc(v_a_3649_); -v___x_3782_ = l_Lean_MessageData_ofExpr(v_a_3649_); -v___x_3783_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3783_, 0, v___x_3781_); -lean_ctor_set(v___x_3783_, 1, v___x_3782_); -v___x_3784_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13); -v___x_3785_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3785_, 0, v___x_3783_); -lean_ctor_set(v___x_3785_, 1, v___x_3784_); -v___x_3786_ = l_Lean_MessageData_ofExpr(v_a_3766_); -v___x_3787_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3787_, 0, v___x_3785_); -lean_ctor_set(v___x_3787_, 1, v___x_3786_); -v___x_3788_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15); -v___x_3789_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3789_, 0, v___x_3787_); -lean_ctor_set(v___x_3789_, 1, v___x_3788_); -lean_inc(v___x_3655_); -v___x_3790_ = l_Lean_MessageData_ofExpr(v___x_3655_); -v___x_3791_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3791_, 0, v___x_3789_); -lean_ctor_set(v___x_3791_, 1, v___x_3790_); -v___x_3792_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3653_, v___x_3791_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -if (lean_obj_tag(v___x_3792_) == 0) -{ -lean_object* v_a_3793_; lean_object* v___x_3794_; -v_a_3793_ = lean_ctor_get(v___x_3792_, 0); -lean_inc(v_a_3793_); -lean_dec_ref(v___x_3792_); -lean_inc(v___x_3655_); -v___x_3794_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_3649_, v___x_3655_, v___x_3601_, v___x_3643_, v___f_3769_, v_a_3793_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3794_; -goto v___jp_3620_; -} -else -{ -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -return v___x_3792_; -} -} -} -else -{ -lean_object* v_a_3795_; lean_object* v___x_3797_; uint8_t v_isShared_3798_; uint8_t v_isSharedCheck_3802_; -lean_dec(v_a_3766_); -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3795_ = lean_ctor_get(v___x_3771_, 0); -v_isSharedCheck_3802_ = !lean_is_exclusive(v___x_3771_); -if (v_isSharedCheck_3802_ == 0) -{ -v___x_3797_ = v___x_3771_; -v_isShared_3798_ = v_isSharedCheck_3802_; -goto v_resetjp_3796_; -} -else -{ -lean_inc(v_a_3795_); -lean_dec(v___x_3771_); -v___x_3797_ = lean_box(0); -v_isShared_3798_ = v_isSharedCheck_3802_; -goto v_resetjp_3796_; -} -v_resetjp_3796_: -{ -lean_object* v___x_3800_; -if (v_isShared_3798_ == 0) -{ -v___x_3800_ = v___x_3797_; -goto v_reusejp_3799_; -} -else -{ -lean_object* v_reuseFailAlloc_3801_; -v_reuseFailAlloc_3801_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3801_, 0, v_a_3795_); -v___x_3800_ = v_reuseFailAlloc_3801_; -goto v_reusejp_3799_; -} -v_reusejp_3799_: -{ -return v___x_3800_; -} -} -} -} -else -{ -lean_object* v___x_3803_; -lean_dec(v_a_3766_); -lean_dec(v_a_3649_); -lean_inc(v___x_3655_); -v___x_3803_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_3643_, v___x_3655_, v___y_3611_); -if (lean_obj_tag(v___x_3803_) == 0) -{ -lean_object* v_a_3804_; lean_object* v___x_3805_; -v_a_3804_ = lean_ctor_get(v___x_3803_, 0); -lean_inc(v_a_3804_); -lean_dec_ref(v___x_3803_); -v___x_3805_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(v___x_3652_, v_a_3804_, v___y_3610_, v___y_3611_, v___y_3612_, v___y_3613_); -v___y_3621_ = v___x_3805_; -goto v___jp_3620_; -} -else -{ -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -return v___x_3803_; -} -} -} -else -{ -lean_object* v_a_3806_; lean_object* v___x_3808_; uint8_t v_isShared_3809_; uint8_t v_isSharedCheck_3813_; -lean_dec(v_a_3766_); -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3806_ = lean_ctor_get(v___x_3767_, 0); -v_isSharedCheck_3813_ = !lean_is_exclusive(v___x_3767_); -if (v_isSharedCheck_3813_ == 0) -{ -v___x_3808_ = v___x_3767_; -v_isShared_3809_ = v_isSharedCheck_3813_; -goto v_resetjp_3807_; -} -else -{ -lean_inc(v_a_3806_); -lean_dec(v___x_3767_); -v___x_3808_ = lean_box(0); -v_isShared_3809_ = v_isSharedCheck_3813_; -goto v_resetjp_3807_; -} -v_resetjp_3807_: -{ -lean_object* v___x_3811_; -if (v_isShared_3809_ == 0) -{ -v___x_3811_ = v___x_3808_; -goto v_reusejp_3810_; -} -else -{ -lean_object* v_reuseFailAlloc_3812_; -v_reuseFailAlloc_3812_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3812_, 0, v_a_3806_); -v___x_3811_ = v_reuseFailAlloc_3812_; -goto v_reusejp_3810_; -} -v_reusejp_3810_: -{ -return v___x_3811_; -} -} -} -} -else -{ -lean_object* v_a_3814_; lean_object* v___x_3816_; uint8_t v_isShared_3817_; uint8_t v_isSharedCheck_3821_; -lean_dec(v_a_3649_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3814_ = lean_ctor_get(v___x_3765_, 0); -v_isSharedCheck_3821_ = !lean_is_exclusive(v___x_3765_); -if (v_isSharedCheck_3821_ == 0) -{ -v___x_3816_ = v___x_3765_; -v_isShared_3817_ = v_isSharedCheck_3821_; -goto v_resetjp_3815_; -} -else -{ -lean_inc(v_a_3814_); -lean_dec(v___x_3765_); -v___x_3816_ = lean_box(0); -v_isShared_3817_ = v_isSharedCheck_3821_; -goto v_resetjp_3815_; -} -v_resetjp_3815_: -{ -lean_object* v___x_3819_; -if (v_isShared_3817_ == 0) -{ -v___x_3819_ = v___x_3816_; -goto v_reusejp_3818_; -} -else -{ -lean_object* v_reuseFailAlloc_3820_; -v_reuseFailAlloc_3820_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3820_, 0, v_a_3814_); -v___x_3819_ = v_reuseFailAlloc_3820_; -goto v_reusejp_3818_; -} -v_reusejp_3818_: -{ -return v___x_3819_; -} -} -} -} -} -else -{ -lean_object* v_a_3822_; lean_object* v___x_3824_; uint8_t v_isShared_3825_; uint8_t v_isSharedCheck_3829_; -lean_dec(v_a_3649_); -lean_dec(v_userName_3646_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3822_ = lean_ctor_get(v___x_3650_, 0); -v_isSharedCheck_3829_ = !lean_is_exclusive(v___x_3650_); -if (v_isSharedCheck_3829_ == 0) -{ -v___x_3824_ = v___x_3650_; -v_isShared_3825_ = v_isSharedCheck_3829_; -goto v_resetjp_3823_; -} -else -{ -lean_inc(v_a_3822_); +lean_inc(v_a_3668_); lean_dec(v___x_3650_); -v___x_3824_ = lean_box(0); -v_isShared_3825_ = v_isSharedCheck_3829_; -goto v_resetjp_3823_; +v___x_3670_ = lean_box(0); +v_isShared_3671_ = v_isSharedCheck_3675_; +goto v_resetjp_3669_; } -v_resetjp_3823_: +v_resetjp_3669_: { -lean_object* v___x_3827_; -if (v_isShared_3825_ == 0) +lean_object* v___x_3673_; +if (v_isShared_3671_ == 0) { -v___x_3827_ = v___x_3824_; -goto v_reusejp_3826_; +v___x_3673_ = v___x_3670_; +goto v_reusejp_3672_; } else { -lean_object* v_reuseFailAlloc_3828_; -v_reuseFailAlloc_3828_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3828_, 0, v_a_3822_); -v___x_3827_ = v_reuseFailAlloc_3828_; -goto v_reusejp_3826_; +lean_object* v_reuseFailAlloc_3674_; +v_reuseFailAlloc_3674_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3674_, 0, v_a_3668_); +v___x_3673_ = v_reuseFailAlloc_3674_; +goto v_reusejp_3672_; } -v_reusejp_3826_: +v_reusejp_3672_: { -return v___x_3827_; +return v___x_3673_; } } } } else { -lean_object* v_a_3830_; lean_object* v___x_3832_; uint8_t v_isShared_3833_; uint8_t v_isSharedCheck_3837_; -lean_dec(v_userName_3646_); -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3830_ = lean_ctor_get(v___x_3648_, 0); -v_isSharedCheck_3837_ = !lean_is_exclusive(v___x_3648_); -if (v_isSharedCheck_3837_ == 0) -{ -v___x_3832_ = v___x_3648_; -v_isShared_3833_ = v_isSharedCheck_3837_; -goto v_resetjp_3831_; +lean_object* v___x_3676_; +lean_del_object(v___x_3647_); +lean_dec(v_snd_3645_); +lean_dec(v_fst_3644_); +lean_dec_ref(v___f_3638_); +lean_dec(v_userName_3576_); +lean_inc(v___x_3585_); +v___x_3676_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_3573_, v___x_3585_, v___x_3582_, v_a_3579_, v___x_3534_, v___x_3531_, v_compile_3532_, v_logCompileErrors_3533_, v_isMeta_3535_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3676_; +goto v___jp_3550_; +} +} } else { -lean_inc(v_a_3830_); -lean_dec(v___x_3648_); -v___x_3832_ = lean_box(0); -v_isShared_3833_ = v_isSharedCheck_3837_; -goto v_resetjp_3831_; -} -v_resetjp_3831_: +lean_object* v_a_3678_; lean_object* v___x_3680_; uint8_t v_isShared_3681_; uint8_t v_isSharedCheck_3685_; +lean_dec_ref(v___f_3638_); +lean_dec(v_a_3579_); +lean_dec(v_userName_3576_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3678_ = lean_ctor_get(v___x_3642_, 0); +v_isSharedCheck_3685_ = !lean_is_exclusive(v___x_3642_); +if (v_isSharedCheck_3685_ == 0) { -lean_object* v___x_3835_; -if (v_isShared_3833_ == 0) -{ -v___x_3835_ = v___x_3832_; -goto v_reusejp_3834_; +v___x_3680_ = v___x_3642_; +v_isShared_3681_ = v_isSharedCheck_3685_; +goto v_resetjp_3679_; } else { -lean_object* v_reuseFailAlloc_3836_; -v_reuseFailAlloc_3836_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3836_, 0, v_a_3830_); -v___x_3835_ = v_reuseFailAlloc_3836_; -goto v_reusejp_3834_; +lean_inc(v_a_3678_); +lean_dec(v___x_3642_); +v___x_3680_ = lean_box(0); +v_isShared_3681_ = v_isSharedCheck_3685_; +goto v_resetjp_3679_; } -v_reusejp_3834_: +v_resetjp_3679_: { -return v___x_3835_; +lean_object* v___x_3683_; +if (v_isShared_3681_ == 0) +{ +v___x_3683_ = v___x_3680_; +goto v_reusejp_3682_; +} +else +{ +lean_object* v_reuseFailAlloc_3684_; +v_reuseFailAlloc_3684_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3684_, 0, v_a_3678_); +v___x_3683_ = v_reuseFailAlloc_3684_; +goto v_reusejp_3682_; +} +v_reusejp_3682_: +{ +return v___x_3683_; +} } } } } else { -lean_object* v_a_3838_; lean_object* v___x_3840_; uint8_t v_isShared_3841_; uint8_t v_isSharedCheck_3845_; -lean_dec(v___x_3643_); -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3838_ = lean_ctor_get(v___x_3644_, 0); -v_isSharedCheck_3845_ = !lean_is_exclusive(v___x_3644_); -if (v_isSharedCheck_3845_ == 0) -{ -v___x_3840_ = v___x_3644_; -v_isShared_3841_ = v_isSharedCheck_3845_; -goto v_resetjp_3839_; +lean_dec(v_userName_3576_); +goto v___jp_3610_; +} } else { -lean_inc(v_a_3838_); -lean_dec(v___x_3644_); -v___x_3840_ = lean_box(0); -v_isShared_3841_ = v_isSharedCheck_3845_; -goto v_resetjp_3839_; +lean_dec_ref(v_a_3588_); +lean_dec(v_userName_3576_); +goto v___jp_3610_; } -v_resetjp_3839_: +v___jp_3592_: { -lean_object* v___x_3843_; -if (v_isShared_3841_ == 0) +lean_object* v___x_3594_; +lean_inc(v___x_3585_); +v___x_3594_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_3585_, v_a_3579_, v_compile_3532_, v_logCompileErrors_3533_, v_isMeta_3535_, v___x_3573_, v___x_3582_, v_a_3593_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3594_; +goto v___jp_3550_; +} +v___jp_3595_: { -v___x_3843_ = v___x_3840_; -goto v_reusejp_3842_; +if (v___y_3597_ == 0) +{ +lean_dec_ref(v___y_3596_); +lean_del_object(v___x_3590_); +v_a_3593_ = v___x_3582_; +goto v___jp_3592_; } else { -lean_object* v_reuseFailAlloc_3844_; -v_reuseFailAlloc_3844_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3844_, 0, v_a_3838_); -v___x_3843_ = v_reuseFailAlloc_3844_; -goto v_reusejp_3842_; -} -v_reusejp_3842_: +lean_object* v___x_3599_; +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +if (v_isShared_3591_ == 0) { -return v___x_3843_; -} -} -} -} -v___jp_3615_: -{ -lean_object* v___x_3617_; lean_object* v___x_3618_; -v___x_3617_ = lean_unsigned_to_nat(1u); -v___x_3618_ = lean_nat_add(v_a_3608_, v___x_3617_); -lean_dec(v_a_3608_); -v_a_3608_ = v___x_3618_; -v_b_3609_ = v_a_3616_; -goto _start; -} -v___jp_3620_: -{ -if (lean_obj_tag(v___y_3621_) == 0) -{ -lean_object* v_a_3622_; lean_object* v___x_3624_; uint8_t v_isShared_3625_; uint8_t v_isSharedCheck_3631_; -v_a_3622_ = lean_ctor_get(v___y_3621_, 0); -v_isSharedCheck_3631_ = !lean_is_exclusive(v___y_3621_); -if (v_isSharedCheck_3631_ == 0) -{ -v___x_3624_ = v___y_3621_; -v_isShared_3625_ = v_isSharedCheck_3631_; -goto v_resetjp_3623_; +lean_ctor_set_tag(v___x_3590_, 1); +lean_ctor_set(v___x_3590_, 0, v___y_3596_); +v___x_3599_ = v___x_3590_; +goto v_reusejp_3598_; } else { -lean_inc(v_a_3622_); -lean_dec(v___y_3621_); -v___x_3624_ = lean_box(0); -v_isShared_3625_ = v_isSharedCheck_3631_; -goto v_resetjp_3623_; +lean_object* v_reuseFailAlloc_3600_; +v_reuseFailAlloc_3600_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3600_, 0, v___y_3596_); +v___x_3599_ = v_reuseFailAlloc_3600_; +goto v_reusejp_3598_; } -v_resetjp_3623_: +v_reusejp_3598_: { -if (lean_obj_tag(v_a_3622_) == 0) +return v___x_3599_; +} +} +} +v___jp_3601_: { -lean_object* v_a_3626_; lean_object* v___x_3628_; -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3626_ = lean_ctor_get(v_a_3622_, 0); -lean_inc(v_a_3626_); -lean_dec_ref(v_a_3622_); -if (v_isShared_3625_ == 0) +uint8_t v___x_3603_; +v___x_3603_ = l_Lean_Exception_isInterrupt(v_a_3602_); +if (v___x_3603_ == 0) { -lean_ctor_set(v___x_3624_, 0, v_a_3626_); -v___x_3628_ = v___x_3624_; -goto v_reusejp_3627_; +uint8_t v___x_3604_; +lean_inc_ref(v_a_3602_); +v___x_3604_ = l_Lean_Exception_isRuntime(v_a_3602_); +v___y_3596_ = v_a_3602_; +v___y_3597_ = v___x_3604_; +goto v___jp_3595_; } else { -lean_object* v_reuseFailAlloc_3629_; -v_reuseFailAlloc_3629_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3629_, 0, v_a_3626_); -v___x_3628_ = v_reuseFailAlloc_3629_; -goto v_reusejp_3627_; +v___y_3596_ = v_a_3602_; +v___y_3597_ = v___x_3603_; +goto v___jp_3595_; } -v_reusejp_3627_: +} +v___jp_3605_: { -return v___x_3628_; +if (lean_obj_tag(v___y_3606_) == 0) +{ +lean_object* v_a_3607_; +lean_del_object(v___x_3590_); +v_a_3607_ = lean_ctor_get(v___y_3606_, 0); +lean_inc(v_a_3607_); +lean_dec_ref(v___y_3606_); +if (lean_obj_tag(v_a_3607_) == 0) +{ +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +v_a_3546_ = v___x_3582_; +goto v___jp_3545_; +} +else +{ +lean_object* v_a_3608_; +v_a_3608_ = lean_ctor_get(v_a_3607_, 0); +lean_inc(v_a_3608_); +lean_dec_ref(v_a_3607_); +v_a_3593_ = v_a_3608_; +goto v___jp_3592_; +} +} +else +{ +lean_object* v_a_3609_; +v_a_3609_ = lean_ctor_get(v___y_3606_, 0); +lean_inc(v_a_3609_); +lean_dec_ref(v___y_3606_); +v_a_3602_ = v_a_3609_; +goto v___jp_3601_; +} +} +v___jp_3610_: +{ +lean_object* v_options_3611_; lean_object* v___x_3612_; uint8_t v___x_3613_; +v_options_3611_ = lean_ctor_get(v___y_3542_, 2); +v___x_3612_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_3613_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3611_, v___x_3612_); +if (v___x_3613_ == 0) +{ +lean_object* v___x_3614_; +lean_del_object(v___x_3590_); +lean_inc(v___x_3585_); +v___x_3614_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_3585_, v_a_3579_, v_compile_3532_, v_logCompileErrors_3533_, v_isMeta_3535_, v___x_3573_, v___x_3582_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3614_; +goto v___jp_3550_; +} +else +{ +lean_object* v___x_3615_; lean_object* v___x_3616_; +v___x_3615_ = lean_box(0); +lean_inc(v_a_3579_); +v___x_3616_ = l_Lean_Meta_trySynthInstance(v_a_3579_, v___x_3615_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3616_) == 0) +{ +lean_object* v_a_3617_; +v_a_3617_ = lean_ctor_get(v___x_3616_, 0); +lean_inc(v_a_3617_); +lean_dec_ref(v___x_3616_); +if (lean_obj_tag(v_a_3617_) == 1) +{ +lean_object* v_a_3618_; lean_object* v___x_3619_; +v_a_3618_ = lean_ctor_get(v_a_3617_, 0); +lean_inc(v_a_3618_); +lean_dec_ref(v_a_3617_); +v___x_3619_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3583_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3619_) == 0) +{ +lean_object* v_a_3620_; uint8_t v___x_3621_; +v_a_3620_ = lean_ctor_get(v___x_3619_, 0); +lean_inc(v_a_3620_); +lean_dec_ref(v___x_3619_); +v___x_3621_ = lean_unbox(v_a_3620_); +lean_dec(v_a_3620_); +if (v___x_3621_ == 0) +{ +lean_object* v___x_3622_; +lean_inc(v___x_3573_); +v___x_3622_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_3573_, v_a_3618_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3606_ = v___x_3622_; +goto v___jp_3605_; +} +else +{ +lean_object* v___x_3623_; lean_object* v___x_3624_; lean_object* v___x_3625_; lean_object* v___x_3626_; +v___x_3623_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2); +lean_inc(v_a_3618_); +v___x_3624_ = l_Lean_MessageData_ofExpr(v_a_3618_); +v___x_3625_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3625_, 0, v___x_3623_); +lean_ctor_set(v___x_3625_, 1, v___x_3624_); +v___x_3626_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3583_, v___x_3625_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3626_) == 0) +{ +lean_object* v_a_3627_; lean_object* v___x_3628_; +v_a_3627_ = lean_ctor_get(v___x_3626_, 0); +lean_inc(v_a_3627_); +lean_dec_ref(v___x_3626_); +lean_inc(v___x_3573_); +v___x_3628_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_3573_, v_a_3618_, v_a_3627_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3606_ = v___x_3628_; +goto v___jp_3605_; +} +else +{ +lean_object* v_a_3629_; +lean_dec(v_a_3618_); +v_a_3629_ = lean_ctor_get(v___x_3626_, 0); +lean_inc(v_a_3629_); +lean_dec_ref(v___x_3626_); +v_a_3602_ = v_a_3629_; +goto v___jp_3601_; +} } } else { lean_object* v_a_3630_; -lean_del_object(v___x_3624_); -v_a_3630_ = lean_ctor_get(v_a_3622_, 0); +lean_dec(v_a_3618_); +v_a_3630_ = lean_ctor_get(v___x_3619_, 0); lean_inc(v_a_3630_); -lean_dec_ref(v_a_3622_); -v_a_3616_ = v_a_3630_; -goto v___jp_3615_; +lean_dec_ref(v___x_3619_); +v_a_3602_ = v_a_3630_; +goto v___jp_3601_; +} +} +else +{ +lean_dec(v_a_3617_); +lean_del_object(v___x_3590_); +v_a_3593_ = v___x_3582_; +goto v___jp_3592_; +} +} +else +{ +lean_object* v_a_3631_; +v_a_3631_ = lean_ctor_get(v___x_3616_, 0); +lean_inc(v_a_3631_); +lean_dec_ref(v___x_3616_); +v_a_3602_ = v_a_3631_; +goto v___jp_3601_; +} +} } } } else { -lean_object* v_a_3632_; lean_object* v___x_3634_; uint8_t v_isShared_3635_; uint8_t v_isSharedCheck_3639_; -lean_dec(v_a_3608_); -lean_dec_ref(v_expectedType_3607_); -lean_dec(v_val_3606_); -v_a_3632_ = lean_ctor_get(v___y_3621_, 0); -v_isSharedCheck_3639_ = !lean_is_exclusive(v___y_3621_); -if (v_isSharedCheck_3639_ == 0) +lean_object* v_a_3687_; lean_object* v___x_3689_; uint8_t v_isShared_3690_; uint8_t v_isSharedCheck_3694_; +lean_dec(v_a_3579_); +lean_dec(v_userName_3576_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3687_ = lean_ctor_get(v___x_3587_, 0); +v_isSharedCheck_3694_ = !lean_is_exclusive(v___x_3587_); +if (v_isSharedCheck_3694_ == 0) { -v___x_3634_ = v___y_3621_; -v_isShared_3635_ = v_isSharedCheck_3639_; -goto v_resetjp_3633_; +v___x_3689_ = v___x_3587_; +v_isShared_3690_ = v_isSharedCheck_3694_; +goto v_resetjp_3688_; } else { -lean_inc(v_a_3632_); -lean_dec(v___y_3621_); -v___x_3634_ = lean_box(0); -v_isShared_3635_ = v_isSharedCheck_3639_; -goto v_resetjp_3633_; +lean_inc(v_a_3687_); +lean_dec(v___x_3587_); +v___x_3689_ = lean_box(0); +v_isShared_3690_ = v_isSharedCheck_3694_; +goto v_resetjp_3688_; } -v_resetjp_3633_: +v_resetjp_3688_: { -lean_object* v___x_3637_; -if (v_isShared_3635_ == 0) +lean_object* v___x_3692_; +if (v_isShared_3690_ == 0) { -v___x_3637_ = v___x_3634_; -goto v_reusejp_3636_; +v___x_3692_ = v___x_3689_; +goto v_reusejp_3691_; } else { -lean_object* v_reuseFailAlloc_3638_; -v_reuseFailAlloc_3638_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3638_, 0, v_a_3632_); -v___x_3637_ = v_reuseFailAlloc_3638_; -goto v_reusejp_3636_; +lean_object* v_reuseFailAlloc_3693_; +v_reuseFailAlloc_3693_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3693_, 0, v_a_3687_); +v___x_3692_ = v_reuseFailAlloc_3693_; +goto v_reusejp_3691_; } -v_reusejp_3636_: +v_reusejp_3691_: { -return v___x_3637_; +return v___x_3692_; +} +} +} +} +else +{ +lean_object* v___x_3695_; +lean_dec(v_userName_3576_); +lean_inc(v___y_3543_); +lean_inc_ref(v___y_3542_); +lean_inc(v___y_3541_); +lean_inc_ref(v___y_3540_); +lean_inc(v___x_3585_); +v___x_3695_ = lean_infer_type(v___x_3585_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3695_) == 0) +{ +lean_object* v_a_3696_; lean_object* v___x_3697_; +v_a_3696_ = lean_ctor_get(v___x_3695_, 0); +lean_inc_n(v_a_3696_, 2); +lean_dec_ref(v___x_3695_); +lean_inc(v_a_3579_); +v___x_3697_ = l_Lean_Meta_isExprDefEq(v_a_3579_, v_a_3696_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3697_) == 0) +{ +lean_object* v_a_3698_; lean_object* v___f_3699_; uint8_t v___x_3700_; +v_a_3698_ = lean_ctor_get(v___x_3697_, 0); +lean_inc(v_a_3698_); +lean_dec_ref(v___x_3697_); +v___f_3699_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7)); +v___x_3700_ = lean_unbox(v_a_3698_); +lean_dec(v_a_3698_); +if (v___x_3700_ == 0) +{ +lean_object* v___x_3701_; +v___x_3701_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3583_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3701_) == 0) +{ +lean_object* v_a_3702_; uint8_t v___x_3703_; +v_a_3702_ = lean_ctor_get(v___x_3701_, 0); +lean_inc(v_a_3702_); +lean_dec_ref(v___x_3701_); +v___x_3703_ = lean_unbox(v_a_3702_); +lean_dec(v_a_3702_); +if (v___x_3703_ == 0) +{ +lean_object* v___x_3704_; +lean_dec(v_a_3696_); +lean_inc(v___x_3585_); +v___x_3704_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_3579_, v___x_3585_, v___x_3531_, v___x_3573_, v___f_3699_, v___x_3582_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3704_; +goto v___jp_3550_; +} +else +{ +lean_object* v___x_3705_; lean_object* v___x_3706_; lean_object* v___x_3707_; lean_object* v___x_3708_; lean_object* v___x_3709_; lean_object* v___x_3710_; lean_object* v___x_3711_; lean_object* v___x_3712_; lean_object* v___x_3713_; lean_object* v___x_3714_; lean_object* v___x_3715_; lean_object* v___x_3716_; lean_object* v___x_3717_; lean_object* v___x_3718_; lean_object* v___x_3719_; lean_object* v___x_3720_; lean_object* v___x_3721_; lean_object* v___x_3722_; +v___x_3705_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9); +lean_inc(v_a_3538_); +v___x_3706_ = l_Nat_reprFast(v_a_3538_); +v___x_3707_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_3707_, 0, v___x_3706_); +v___x_3708_ = l_Lean_MessageData_ofFormat(v___x_3707_); +v___x_3709_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3709_, 0, v___x_3705_); +lean_ctor_set(v___x_3709_, 1, v___x_3708_); +v___x_3710_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11); +v___x_3711_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3711_, 0, v___x_3709_); +lean_ctor_set(v___x_3711_, 1, v___x_3710_); +lean_inc(v_a_3579_); +v___x_3712_ = l_Lean_MessageData_ofExpr(v_a_3579_); +v___x_3713_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3713_, 0, v___x_3711_); +lean_ctor_set(v___x_3713_, 1, v___x_3712_); +v___x_3714_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13); +v___x_3715_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3715_, 0, v___x_3713_); +lean_ctor_set(v___x_3715_, 1, v___x_3714_); +v___x_3716_ = l_Lean_MessageData_ofExpr(v_a_3696_); +v___x_3717_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3717_, 0, v___x_3715_); +lean_ctor_set(v___x_3717_, 1, v___x_3716_); +v___x_3718_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15); +v___x_3719_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3719_, 0, v___x_3717_); +lean_ctor_set(v___x_3719_, 1, v___x_3718_); +lean_inc(v___x_3585_); +v___x_3720_ = l_Lean_MessageData_ofExpr(v___x_3585_); +v___x_3721_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3721_, 0, v___x_3719_); +lean_ctor_set(v___x_3721_, 1, v___x_3720_); +v___x_3722_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3583_, v___x_3721_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +if (lean_obj_tag(v___x_3722_) == 0) +{ +lean_object* v_a_3723_; lean_object* v___x_3724_; +v_a_3723_ = lean_ctor_get(v___x_3722_, 0); +lean_inc(v_a_3723_); +lean_dec_ref(v___x_3722_); +lean_inc(v___x_3585_); +v___x_3724_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_3579_, v___x_3585_, v___x_3531_, v___x_3573_, v___f_3699_, v_a_3723_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3724_; +goto v___jp_3550_; +} +else +{ +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +return v___x_3722_; +} +} +} +else +{ +lean_object* v_a_3725_; lean_object* v___x_3727_; uint8_t v_isShared_3728_; uint8_t v_isSharedCheck_3732_; +lean_dec(v_a_3696_); +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3725_ = lean_ctor_get(v___x_3701_, 0); +v_isSharedCheck_3732_ = !lean_is_exclusive(v___x_3701_); +if (v_isSharedCheck_3732_ == 0) +{ +v___x_3727_ = v___x_3701_; +v_isShared_3728_ = v_isSharedCheck_3732_; +goto v_resetjp_3726_; +} +else +{ +lean_inc(v_a_3725_); +lean_dec(v___x_3701_); +v___x_3727_ = lean_box(0); +v_isShared_3728_ = v_isSharedCheck_3732_; +goto v_resetjp_3726_; +} +v_resetjp_3726_: +{ +lean_object* v___x_3730_; +if (v_isShared_3728_ == 0) +{ +v___x_3730_ = v___x_3727_; +goto v_reusejp_3729_; +} +else +{ +lean_object* v_reuseFailAlloc_3731_; +v_reuseFailAlloc_3731_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3731_, 0, v_a_3725_); +v___x_3730_ = v_reuseFailAlloc_3731_; +goto v_reusejp_3729_; +} +v_reusejp_3729_: +{ +return v___x_3730_; +} +} +} +} +else +{ +lean_object* v___x_3733_; +lean_dec(v_a_3696_); +lean_dec(v_a_3579_); +lean_inc(v___x_3585_); +v___x_3733_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_3573_, v___x_3585_, v___y_3541_); +if (lean_obj_tag(v___x_3733_) == 0) +{ +lean_object* v_a_3734_; lean_object* v___x_3735_; +v_a_3734_ = lean_ctor_get(v___x_3733_, 0); +lean_inc(v_a_3734_); +lean_dec_ref(v___x_3733_); +v___x_3735_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(v___x_3582_, v_a_3734_, v___y_3540_, v___y_3541_, v___y_3542_, v___y_3543_); +v___y_3551_ = v___x_3735_; +goto v___jp_3550_; +} +else +{ +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +return v___x_3733_; +} +} +} +else +{ +lean_object* v_a_3736_; lean_object* v___x_3738_; uint8_t v_isShared_3739_; uint8_t v_isSharedCheck_3743_; +lean_dec(v_a_3696_); +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3736_ = lean_ctor_get(v___x_3697_, 0); +v_isSharedCheck_3743_ = !lean_is_exclusive(v___x_3697_); +if (v_isSharedCheck_3743_ == 0) +{ +v___x_3738_ = v___x_3697_; +v_isShared_3739_ = v_isSharedCheck_3743_; +goto v_resetjp_3737_; +} +else +{ +lean_inc(v_a_3736_); +lean_dec(v___x_3697_); +v___x_3738_ = lean_box(0); +v_isShared_3739_ = v_isSharedCheck_3743_; +goto v_resetjp_3737_; +} +v_resetjp_3737_: +{ +lean_object* v___x_3741_; +if (v_isShared_3739_ == 0) +{ +v___x_3741_ = v___x_3738_; +goto v_reusejp_3740_; +} +else +{ +lean_object* v_reuseFailAlloc_3742_; +v_reuseFailAlloc_3742_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3742_, 0, v_a_3736_); +v___x_3741_ = v_reuseFailAlloc_3742_; +goto v_reusejp_3740_; +} +v_reusejp_3740_: +{ +return v___x_3741_; +} +} +} +} +else +{ +lean_object* v_a_3744_; lean_object* v___x_3746_; uint8_t v_isShared_3747_; uint8_t v_isSharedCheck_3751_; +lean_dec(v_a_3579_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3744_ = lean_ctor_get(v___x_3695_, 0); +v_isSharedCheck_3751_ = !lean_is_exclusive(v___x_3695_); +if (v_isSharedCheck_3751_ == 0) +{ +v___x_3746_ = v___x_3695_; +v_isShared_3747_ = v_isSharedCheck_3751_; +goto v_resetjp_3745_; +} +else +{ +lean_inc(v_a_3744_); +lean_dec(v___x_3695_); +v___x_3746_ = lean_box(0); +v_isShared_3747_ = v_isSharedCheck_3751_; +goto v_resetjp_3745_; +} +v_resetjp_3745_: +{ +lean_object* v___x_3749_; +if (v_isShared_3747_ == 0) +{ +v___x_3749_ = v___x_3746_; +goto v_reusejp_3748_; +} +else +{ +lean_object* v_reuseFailAlloc_3750_; +v_reuseFailAlloc_3750_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3750_, 0, v_a_3744_); +v___x_3749_ = v_reuseFailAlloc_3750_; +goto v_reusejp_3748_; +} +v_reusejp_3748_: +{ +return v___x_3749_; +} +} +} +} +} +else +{ +lean_object* v_a_3752_; lean_object* v___x_3754_; uint8_t v_isShared_3755_; uint8_t v_isSharedCheck_3759_; +lean_dec(v_a_3579_); +lean_dec(v_userName_3576_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3752_ = lean_ctor_get(v___x_3580_, 0); +v_isSharedCheck_3759_ = !lean_is_exclusive(v___x_3580_); +if (v_isSharedCheck_3759_ == 0) +{ +v___x_3754_ = v___x_3580_; +v_isShared_3755_ = v_isSharedCheck_3759_; +goto v_resetjp_3753_; +} +else +{ +lean_inc(v_a_3752_); +lean_dec(v___x_3580_); +v___x_3754_ = lean_box(0); +v_isShared_3755_ = v_isSharedCheck_3759_; +goto v_resetjp_3753_; +} +v_resetjp_3753_: +{ +lean_object* v___x_3757_; +if (v_isShared_3755_ == 0) +{ +v___x_3757_ = v___x_3754_; +goto v_reusejp_3756_; +} +else +{ +lean_object* v_reuseFailAlloc_3758_; +v_reuseFailAlloc_3758_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3758_, 0, v_a_3752_); +v___x_3757_ = v_reuseFailAlloc_3758_; +goto v_reusejp_3756_; +} +v_reusejp_3756_: +{ +return v___x_3757_; +} +} +} +} +else +{ +lean_object* v_a_3760_; lean_object* v___x_3762_; uint8_t v_isShared_3763_; uint8_t v_isSharedCheck_3767_; +lean_dec(v_userName_3576_); +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3760_ = lean_ctor_get(v___x_3578_, 0); +v_isSharedCheck_3767_ = !lean_is_exclusive(v___x_3578_); +if (v_isSharedCheck_3767_ == 0) +{ +v___x_3762_ = v___x_3578_; +v_isShared_3763_ = v_isSharedCheck_3767_; +goto v_resetjp_3761_; +} +else +{ +lean_inc(v_a_3760_); +lean_dec(v___x_3578_); +v___x_3762_ = lean_box(0); +v_isShared_3763_ = v_isSharedCheck_3767_; +goto v_resetjp_3761_; +} +v_resetjp_3761_: +{ +lean_object* v___x_3765_; +if (v_isShared_3763_ == 0) +{ +v___x_3765_ = v___x_3762_; +goto v_reusejp_3764_; +} +else +{ +lean_object* v_reuseFailAlloc_3766_; +v_reuseFailAlloc_3766_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3766_, 0, v_a_3760_); +v___x_3765_ = v_reuseFailAlloc_3766_; +goto v_reusejp_3764_; +} +v_reusejp_3764_: +{ +return v___x_3765_; +} +} +} +} +else +{ +lean_object* v_a_3768_; lean_object* v___x_3770_; uint8_t v_isShared_3771_; uint8_t v_isSharedCheck_3775_; +lean_dec(v___x_3573_); +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3768_ = lean_ctor_get(v___x_3574_, 0); +v_isSharedCheck_3775_ = !lean_is_exclusive(v___x_3574_); +if (v_isSharedCheck_3775_ == 0) +{ +v___x_3770_ = v___x_3574_; +v_isShared_3771_ = v_isSharedCheck_3775_; +goto v_resetjp_3769_; +} +else +{ +lean_inc(v_a_3768_); +lean_dec(v___x_3574_); +v___x_3770_ = lean_box(0); +v_isShared_3771_ = v_isSharedCheck_3775_; +goto v_resetjp_3769_; +} +v_resetjp_3769_: +{ +lean_object* v___x_3773_; +if (v_isShared_3771_ == 0) +{ +v___x_3773_ = v___x_3770_; +goto v_reusejp_3772_; +} +else +{ +lean_object* v_reuseFailAlloc_3774_; +v_reuseFailAlloc_3774_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3774_, 0, v_a_3768_); +v___x_3773_ = v_reuseFailAlloc_3774_; +goto v_reusejp_3772_; +} +v_reusejp_3772_: +{ +return v___x_3773_; +} +} +} +} +v___jp_3545_: +{ +lean_object* v___x_3547_; lean_object* v___x_3548_; +v___x_3547_ = lean_unsigned_to_nat(1u); +v___x_3548_ = lean_nat_add(v_a_3538_, v___x_3547_); +lean_dec(v_a_3538_); +v_a_3538_ = v___x_3548_; +v_b_3539_ = v_a_3546_; +goto _start; +} +v___jp_3550_: +{ +if (lean_obj_tag(v___y_3551_) == 0) +{ +lean_object* v_a_3552_; lean_object* v___x_3554_; uint8_t v_isShared_3555_; uint8_t v_isSharedCheck_3561_; +v_a_3552_ = lean_ctor_get(v___y_3551_, 0); +v_isSharedCheck_3561_ = !lean_is_exclusive(v___y_3551_); +if (v_isSharedCheck_3561_ == 0) +{ +v___x_3554_ = v___y_3551_; +v_isShared_3555_ = v_isSharedCheck_3561_; +goto v_resetjp_3553_; +} +else +{ +lean_inc(v_a_3552_); +lean_dec(v___y_3551_); +v___x_3554_ = lean_box(0); +v_isShared_3555_ = v_isSharedCheck_3561_; +goto v_resetjp_3553_; +} +v_resetjp_3553_: +{ +if (lean_obj_tag(v_a_3552_) == 0) +{ +lean_object* v_a_3556_; lean_object* v___x_3558_; +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3556_ = lean_ctor_get(v_a_3552_, 0); +lean_inc(v_a_3556_); +lean_dec_ref(v_a_3552_); +if (v_isShared_3555_ == 0) +{ +lean_ctor_set(v___x_3554_, 0, v_a_3556_); +v___x_3558_ = v___x_3554_; +goto v_reusejp_3557_; +} +else +{ +lean_object* v_reuseFailAlloc_3559_; +v_reuseFailAlloc_3559_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3559_, 0, v_a_3556_); +v___x_3558_ = v_reuseFailAlloc_3559_; +goto v_reusejp_3557_; +} +v_reusejp_3557_: +{ +return v___x_3558_; +} +} +else +{ +lean_object* v_a_3560_; +lean_del_object(v___x_3554_); +v_a_3560_ = lean_ctor_get(v_a_3552_, 0); +lean_inc(v_a_3560_); +lean_dec_ref(v_a_3552_); +v_a_3546_ = v_a_3560_; +goto v___jp_3545_; +} +} +} +else +{ +lean_object* v_a_3562_; lean_object* v___x_3564_; uint8_t v_isShared_3565_; uint8_t v_isSharedCheck_3569_; +lean_dec(v_a_3538_); +lean_dec_ref(v_expectedType_3537_); +lean_dec(v_val_3536_); +v_a_3562_ = lean_ctor_get(v___y_3551_, 0); +v_isSharedCheck_3569_ = !lean_is_exclusive(v___y_3551_); +if (v_isSharedCheck_3569_ == 0) +{ +v___x_3564_ = v___y_3551_; +v_isShared_3565_ = v_isSharedCheck_3569_; +goto v_resetjp_3563_; +} +else +{ +lean_inc(v_a_3562_); +lean_dec(v___y_3551_); +v___x_3564_ = lean_box(0); +v_isShared_3565_ = v_isSharedCheck_3569_; +goto v_resetjp_3563_; +} +v_resetjp_3563_: +{ +lean_object* v___x_3567_; +if (v_isShared_3565_ == 0) +{ +v___x_3567_ = v___x_3564_; +goto v_reusejp_3566_; +} +else +{ +lean_object* v_reuseFailAlloc_3568_; +v_reuseFailAlloc_3568_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3568_, 0, v_a_3562_); +v___x_3567_ = v_reuseFailAlloc_3568_; +goto v_reusejp_3566_; +} +v_reusejp_3566_: +{ +return v___x_3567_; } } } } } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(lean_object* v_upperBound_3846_, lean_object* v_fst_3847_, lean_object* v_args_3848_, uint8_t v___x_3849_, uint8_t v_compile_3850_, uint8_t v_logCompileErrors_3851_, uint8_t v___x_3852_, uint8_t v_isMeta_3853_, lean_object* v_val_3854_, lean_object* v_expectedType_3855_, lean_object* v_a_3856_, lean_object* v_b_3857_, lean_object* v___y_3858_, lean_object* v___y_3859_, lean_object* v___y_3860_, lean_object* v___y_3861_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(lean_object* v_upperBound_3776_, lean_object* v_fst_3777_, lean_object* v_args_3778_, uint8_t v___x_3779_, uint8_t v_compile_3780_, uint8_t v_logCompileErrors_3781_, uint8_t v___x_3782_, uint8_t v_isMeta_3783_, lean_object* v_val_3784_, lean_object* v_expectedType_3785_, lean_object* v_a_3786_, lean_object* v_b_3787_, lean_object* v___y_3788_, lean_object* v___y_3789_, lean_object* v___y_3790_, lean_object* v___y_3791_){ _start: { -lean_object* v_a_3864_; lean_object* v___y_3869_; uint8_t v___x_3888_; -v___x_3888_ = lean_nat_dec_lt(v_a_3856_, v_upperBound_3846_); +lean_object* v_a_3794_; lean_object* v___y_3799_; uint8_t v___x_3818_; +v___x_3818_ = lean_nat_dec_lt(v_a_3786_, v_upperBound_3776_); +if (v___x_3818_ == 0) +{ +lean_object* v___x_3819_; +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v___x_3819_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3819_, 0, v_b_3787_); +return v___x_3819_; +} +else +{ +lean_object* v___x_3820_; lean_object* v___x_3821_; lean_object* v___x_3822_; +v___x_3820_ = lean_array_fget_borrowed(v_fst_3777_, v_a_3786_); +v___x_3821_ = l_Lean_Expr_mvarId_x21(v___x_3820_); +lean_inc(v___x_3821_); +v___x_3822_ = l_Lean_MVarId_getDecl(v___x_3821_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3822_) == 0) +{ +lean_object* v_a_3823_; lean_object* v_userName_3824_; lean_object* v_type_3825_; lean_object* v___x_3826_; +v_a_3823_ = lean_ctor_get(v___x_3822_, 0); +lean_inc(v_a_3823_); +lean_dec_ref(v___x_3822_); +v_userName_3824_ = lean_ctor_get(v_a_3823_, 0); +lean_inc(v_userName_3824_); +v_type_3825_ = lean_ctor_get(v_a_3823_, 2); +lean_inc_ref(v_type_3825_); +lean_dec(v_a_3823_); +v___x_3826_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_type_3825_, v___y_3789_); +if (lean_obj_tag(v___x_3826_) == 0) +{ +lean_object* v_a_3827_; lean_object* v___x_3828_; +v_a_3827_ = lean_ctor_get(v___x_3826_, 0); +lean_inc_n(v_a_3827_, 2); +lean_dec_ref(v___x_3826_); +v___x_3828_ = l_Lean_Meta_isProp(v_a_3827_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3828_) == 0) +{ +lean_object* v_a_3829_; lean_object* v___x_3830_; lean_object* v_cls_3831_; lean_object* v___f_3832_; lean_object* v___x_3833_; uint8_t v___x_3834_; +v_a_3829_ = lean_ctor_get(v___x_3828_, 0); +lean_inc(v_a_3829_); +lean_dec_ref(v___x_3828_); +v___x_3830_ = lean_box(0); +v_cls_3831_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___f_3832_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0)); +v___x_3833_ = lean_array_fget_borrowed(v_args_3778_, v_a_3786_); +v___x_3834_ = lean_unbox(v_a_3829_); +lean_dec(v_a_3829_); +if (v___x_3834_ == 0) +{ +lean_object* v___x_3835_; +lean_inc(v_a_3827_); +v___x_3835_ = l_Lean_Meta_isClass_x3f(v_a_3827_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3835_) == 0) +{ +lean_object* v_a_3836_; lean_object* v___x_3838_; uint8_t v_isShared_3839_; uint8_t v_isSharedCheck_3934_; +v_a_3836_ = lean_ctor_get(v___x_3835_, 0); +v_isSharedCheck_3934_ = !lean_is_exclusive(v___x_3835_); +if (v_isSharedCheck_3934_ == 0) +{ +v___x_3838_ = v___x_3835_; +v_isShared_3839_ = v_isSharedCheck_3934_; +goto v_resetjp_3837_; +} +else +{ +lean_inc(v_a_3836_); +lean_dec(v___x_3835_); +v___x_3838_ = lean_box(0); +v_isShared_3839_ = v_isSharedCheck_3934_; +goto v_resetjp_3837_; +} +v_resetjp_3837_: +{ +lean_object* v_a_3841_; lean_object* v___y_3844_; uint8_t v___y_3845_; lean_object* v_a_3850_; lean_object* v___y_3854_; +if (lean_obj_tag(v_a_3836_) == 0) +{ +if (v___x_3782_ == 0) +{ +lean_object* v_options_3880_; lean_object* v___x_3881_; lean_object* v___x_3882_; lean_object* v___x_3883_; lean_object* v___x_3884_; lean_object* v___x_3885_; lean_object* v___f_3886_; lean_object* v___x_3887_; uint8_t v___x_3888_; +lean_del_object(v___x_3838_); +v_options_3880_ = lean_ctor_get(v___y_3790_, 2); +v___x_3881_ = lean_box(v___x_3782_); +v___x_3882_ = lean_box(v___x_3779_); +v___x_3883_ = lean_box(v_compile_3780_); +v___x_3884_ = lean_box(v_logCompileErrors_3781_); +v___x_3885_ = lean_box(v_isMeta_3783_); +lean_inc(v_a_3827_); +lean_inc(v___x_3833_); +lean_inc(v___x_3821_); +v___f_3886_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___boxed), 15, 9); +lean_closure_set(v___f_3886_, 0, v___x_3821_); +lean_closure_set(v___f_3886_, 1, v___x_3833_); +lean_closure_set(v___f_3886_, 2, v___x_3830_); +lean_closure_set(v___f_3886_, 3, v_a_3827_); +lean_closure_set(v___f_3886_, 4, v___x_3881_); +lean_closure_set(v___f_3886_, 5, v___x_3882_); +lean_closure_set(v___f_3886_, 6, v___x_3883_); +lean_closure_set(v___f_3886_, 7, v___x_3884_); +lean_closure_set(v___f_3886_, 8, v___x_3885_); +v___x_3887_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_3888_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3880_, v___x_3887_); if (v___x_3888_ == 0) { lean_object* v___x_3889_; -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v___x_3889_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3889_, 0, v_b_3857_); -return v___x_3889_; +lean_dec_ref(v___f_3886_); +lean_dec(v_userName_3824_); +lean_inc(v___x_3833_); +v___x_3889_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_3821_, v___x_3833_, v___x_3830_, v_a_3827_, v___x_3782_, v___x_3779_, v_compile_3780_, v_logCompileErrors_3781_, v_isMeta_3783_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3889_; +goto v___jp_3798_; } else { -lean_object* v___x_3890_; lean_object* v___x_3891_; lean_object* v___x_3892_; -v___x_3890_ = lean_array_fget_borrowed(v_fst_3847_, v_a_3856_); -v___x_3891_ = l_Lean_Expr_mvarId_x21(v___x_3890_); -lean_inc(v___x_3891_); -v___x_3892_ = l_Lean_MVarId_getDecl(v___x_3891_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3892_) == 0) +lean_object* v___x_3890_; +lean_inc(v_userName_3824_); +lean_inc(v_val_3784_); +v___x_3890_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_3784_, v_userName_3824_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3890_) == 0) { -lean_object* v_a_3893_; lean_object* v_userName_3894_; lean_object* v_type_3895_; lean_object* v___x_3896_; -v_a_3893_ = lean_ctor_get(v___x_3892_, 0); -lean_inc(v_a_3893_); -lean_dec_ref(v___x_3892_); -v_userName_3894_ = lean_ctor_get(v_a_3893_, 0); -lean_inc(v_userName_3894_); -v_type_3895_ = lean_ctor_get(v_a_3893_, 2); -lean_inc_ref(v_type_3895_); -lean_dec(v_a_3893_); -v___x_3896_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_type_3895_, v___y_3859_); -if (lean_obj_tag(v___x_3896_) == 0) +lean_object* v_a_3891_; lean_object* v_fst_3892_; lean_object* v_snd_3893_; lean_object* v___x_3895_; uint8_t v_isShared_3896_; uint8_t v_isSharedCheck_3925_; +v_a_3891_ = lean_ctor_get(v___x_3890_, 0); +lean_inc(v_a_3891_); +lean_dec_ref(v___x_3890_); +v_fst_3892_ = lean_ctor_get(v_a_3891_, 0); +v_snd_3893_ = lean_ctor_get(v_a_3891_, 1); +v_isSharedCheck_3925_ = !lean_is_exclusive(v_a_3891_); +if (v_isSharedCheck_3925_ == 0) { -lean_object* v_a_3897_; lean_object* v___x_3898_; -v_a_3897_ = lean_ctor_get(v___x_3896_, 0); -lean_inc_n(v_a_3897_, 2); -lean_dec_ref(v___x_3896_); -v___x_3898_ = l_Lean_Meta_isProp(v_a_3897_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); +v___x_3895_ = v_a_3891_; +v_isShared_3896_ = v_isSharedCheck_3925_; +goto v_resetjp_3894_; +} +else +{ +lean_inc(v_snd_3893_); +lean_inc(v_fst_3892_); +lean_dec(v_a_3891_); +v___x_3895_ = lean_box(0); +v_isShared_3896_ = v_isSharedCheck_3925_; +goto v_resetjp_3894_; +} +v_resetjp_3894_: +{ +uint8_t v___x_3897_; +v___x_3897_ = lean_name_eq(v_fst_3892_, v_val_3784_); +if (v___x_3897_ == 0) +{ +lean_object* v___x_3898_; +lean_dec(v_a_3827_); +v___x_3898_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3831_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); if (lean_obj_tag(v___x_3898_) == 0) { -lean_object* v_a_3899_; lean_object* v___x_3900_; lean_object* v_cls_3901_; lean_object* v___f_3902_; lean_object* v___x_3903_; uint8_t v___x_3904_; +lean_object* v_a_3899_; uint8_t v___x_3900_; v_a_3899_ = lean_ctor_get(v___x_3898_, 0); lean_inc(v_a_3899_); lean_dec_ref(v___x_3898_); -v___x_3900_ = lean_box(0); -v_cls_3901_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___f_3902_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0)); -v___x_3903_ = lean_array_fget_borrowed(v_args_3848_, v_a_3856_); -v___x_3904_ = lean_unbox(v_a_3899_); +v___x_3900_ = lean_unbox(v_a_3899_); lean_dec(v_a_3899_); -if (v___x_3904_ == 0) +if (v___x_3900_ == 0) { -lean_object* v___x_3905_; -lean_inc(v_a_3897_); -v___x_3905_ = l_Lean_Meta_isClass_x3f(v_a_3897_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3905_) == 0) -{ -lean_object* v_a_3906_; lean_object* v___x_3908_; uint8_t v_isShared_3909_; uint8_t v_isSharedCheck_4004_; -v_a_3906_ = lean_ctor_get(v___x_3905_, 0); -v_isSharedCheck_4004_ = !lean_is_exclusive(v___x_3905_); -if (v_isSharedCheck_4004_ == 0) -{ -v___x_3908_ = v___x_3905_; -v_isShared_3909_ = v_isSharedCheck_4004_; -goto v_resetjp_3907_; +lean_object* v___x_3901_; +lean_del_object(v___x_3895_); +lean_dec(v_userName_3824_); +lean_inc_ref(v_expectedType_3785_); +lean_inc(v_val_3784_); +v___x_3901_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(v_val_3784_, v_fst_3892_, v_expectedType_3785_, v___f_3832_, v___f_3886_, v___x_3830_, v_cls_3831_, v_snd_3893_, v___x_3821_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3901_; +goto v___jp_3798_; } else { -lean_inc(v_a_3906_); -lean_dec(v___x_3905_); -v___x_3908_ = lean_box(0); -v_isShared_3909_ = v_isSharedCheck_4004_; -goto v_resetjp_3907_; -} -v_resetjp_3907_: +lean_object* v___x_3902_; lean_object* v___x_3903_; lean_object* v___x_3905_; +v___x_3902_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4); +v___x_3903_ = l_Lean_MessageData_ofName(v_userName_3824_); +if (v_isShared_3896_ == 0) { -lean_object* v_a_3911_; lean_object* v___y_3914_; uint8_t v___y_3915_; lean_object* v_a_3920_; lean_object* v___y_3924_; -if (lean_obj_tag(v_a_3906_) == 0) -{ -if (v___x_3852_ == 0) -{ -lean_object* v_options_3950_; lean_object* v___x_3951_; lean_object* v___x_3952_; lean_object* v___x_3953_; lean_object* v___x_3954_; lean_object* v___x_3955_; lean_object* v___f_3956_; lean_object* v___x_3957_; uint8_t v___x_3958_; -lean_del_object(v___x_3908_); -v_options_3950_ = lean_ctor_get(v___y_3860_, 2); -v___x_3951_ = lean_box(v___x_3852_); -v___x_3952_ = lean_box(v___x_3849_); -v___x_3953_ = lean_box(v_compile_3850_); -v___x_3954_ = lean_box(v_logCompileErrors_3851_); -v___x_3955_ = lean_box(v_isMeta_3853_); -lean_inc(v_a_3897_); -lean_inc(v___x_3903_); -lean_inc(v___x_3891_); -v___f_3956_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___boxed), 15, 9); -lean_closure_set(v___f_3956_, 0, v___x_3891_); -lean_closure_set(v___f_3956_, 1, v___x_3903_); -lean_closure_set(v___f_3956_, 2, v___x_3900_); -lean_closure_set(v___f_3956_, 3, v_a_3897_); -lean_closure_set(v___f_3956_, 4, v___x_3951_); -lean_closure_set(v___f_3956_, 5, v___x_3952_); -lean_closure_set(v___f_3956_, 6, v___x_3953_); -lean_closure_set(v___f_3956_, 7, v___x_3954_); -lean_closure_set(v___f_3956_, 8, v___x_3955_); -v___x_3957_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_3958_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3950_, v___x_3957_); -if (v___x_3958_ == 0) -{ -lean_object* v___x_3959_; -lean_dec_ref(v___f_3956_); -lean_dec(v_userName_3894_); -lean_inc(v___x_3903_); -v___x_3959_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_3891_, v___x_3903_, v___x_3900_, v_a_3897_, v___x_3852_, v___x_3849_, v_compile_3850_, v_logCompileErrors_3851_, v_isMeta_3853_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3959_; -goto v___jp_3868_; +lean_ctor_set_tag(v___x_3895_, 7); +lean_ctor_set(v___x_3895_, 1, v___x_3903_); +lean_ctor_set(v___x_3895_, 0, v___x_3902_); +v___x_3905_ = v___x_3895_; +goto v_reusejp_3904_; } else { -lean_object* v___x_3960_; -lean_inc(v_userName_3894_); -lean_inc(v_val_3854_); -v___x_3960_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_3854_, v_userName_3894_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3960_) == 0) +lean_object* v_reuseFailAlloc_3915_; +v_reuseFailAlloc_3915_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3915_, 0, v___x_3902_); +lean_ctor_set(v_reuseFailAlloc_3915_, 1, v___x_3903_); +v___x_3905_ = v_reuseFailAlloc_3915_; +goto v_reusejp_3904_; +} +v_reusejp_3904_: { -lean_object* v_a_3961_; lean_object* v_fst_3962_; lean_object* v_snd_3963_; lean_object* v___x_3965_; uint8_t v_isShared_3966_; uint8_t v_isSharedCheck_3995_; -v_a_3961_ = lean_ctor_get(v___x_3960_, 0); -lean_inc(v_a_3961_); -lean_dec_ref(v___x_3960_); -v_fst_3962_ = lean_ctor_get(v_a_3961_, 0); -v_snd_3963_ = lean_ctor_get(v_a_3961_, 1); -v_isSharedCheck_3995_ = !lean_is_exclusive(v_a_3961_); -if (v_isSharedCheck_3995_ == 0) +lean_object* v___x_3906_; lean_object* v___x_3907_; lean_object* v___x_3908_; lean_object* v___x_3909_; lean_object* v___x_3910_; lean_object* v___x_3911_; lean_object* v___x_3912_; +v___x_3906_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6); +v___x_3907_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3907_, 0, v___x_3905_); +lean_ctor_set(v___x_3907_, 1, v___x_3906_); +lean_inc(v_fst_3892_); +v___x_3908_ = l_Lean_MessageData_ofName(v_fst_3892_); +v___x_3909_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3909_, 0, v___x_3907_); +lean_ctor_set(v___x_3909_, 1, v___x_3908_); +v___x_3910_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_3911_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3911_, 0, v___x_3909_); +lean_ctor_set(v___x_3911_, 1, v___x_3910_); +v___x_3912_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3831_, v___x_3911_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3912_) == 0) { -v___x_3965_ = v_a_3961_; -v_isShared_3966_ = v_isSharedCheck_3995_; -goto v_resetjp_3964_; +lean_object* v_a_3913_; lean_object* v___x_3914_; +v_a_3913_ = lean_ctor_get(v___x_3912_, 0); +lean_inc(v_a_3913_); +lean_dec_ref(v___x_3912_); +lean_inc_ref(v_expectedType_3785_); +lean_inc(v_val_3784_); +v___x_3914_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5(v_val_3784_, v_fst_3892_, v_expectedType_3785_, v___f_3832_, v___f_3886_, v___x_3830_, v_cls_3831_, v_snd_3893_, v___x_3821_, v_a_3913_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3914_; +goto v___jp_3798_; } else { -lean_inc(v_snd_3963_); -lean_inc(v_fst_3962_); -lean_dec(v_a_3961_); -v___x_3965_ = lean_box(0); -v_isShared_3966_ = v_isSharedCheck_3995_; -goto v_resetjp_3964_; -} -v_resetjp_3964_: -{ -uint8_t v___x_3967_; -v___x_3967_ = lean_name_eq(v_fst_3962_, v_val_3854_); -if (v___x_3967_ == 0) -{ -lean_object* v___x_3968_; -lean_dec(v_a_3897_); -v___x_3968_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3901_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3968_) == 0) -{ -lean_object* v_a_3969_; uint8_t v___x_3970_; -v_a_3969_ = lean_ctor_get(v___x_3968_, 0); -lean_inc(v_a_3969_); -lean_dec_ref(v___x_3968_); -v___x_3970_ = lean_unbox(v_a_3969_); -lean_dec(v_a_3969_); -if (v___x_3970_ == 0) -{ -lean_object* v___x_3971_; -lean_del_object(v___x_3965_); -lean_dec(v_userName_3894_); -lean_inc_ref(v_expectedType_3855_); -lean_inc(v_val_3854_); -v___x_3971_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(v_val_3854_, v_fst_3962_, v_expectedType_3855_, v___f_3902_, v___f_3956_, v___x_3900_, v_cls_3901_, v_snd_3963_, v___x_3891_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3971_; -goto v___jp_3868_; -} -else -{ -lean_object* v___x_3972_; lean_object* v___x_3973_; lean_object* v___x_3975_; -v___x_3972_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4); -v___x_3973_ = l_Lean_MessageData_ofName(v_userName_3894_); -if (v_isShared_3966_ == 0) -{ -lean_ctor_set_tag(v___x_3965_, 7); -lean_ctor_set(v___x_3965_, 1, v___x_3973_); -lean_ctor_set(v___x_3965_, 0, v___x_3972_); -v___x_3975_ = v___x_3965_; -goto v_reusejp_3974_; -} -else -{ -lean_object* v_reuseFailAlloc_3985_; -v_reuseFailAlloc_3985_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3985_, 0, v___x_3972_); -lean_ctor_set(v_reuseFailAlloc_3985_, 1, v___x_3973_); -v___x_3975_ = v_reuseFailAlloc_3985_; -goto v_reusejp_3974_; -} -v_reusejp_3974_: -{ -lean_object* v___x_3976_; lean_object* v___x_3977_; lean_object* v___x_3978_; lean_object* v___x_3979_; lean_object* v___x_3980_; lean_object* v___x_3981_; lean_object* v___x_3982_; -v___x_3976_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6); -v___x_3977_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3977_, 0, v___x_3975_); -lean_ctor_set(v___x_3977_, 1, v___x_3976_); -lean_inc(v_fst_3962_); -v___x_3978_ = l_Lean_MessageData_ofName(v_fst_3962_); -v___x_3979_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3979_, 0, v___x_3977_); -lean_ctor_set(v___x_3979_, 1, v___x_3978_); -v___x_3980_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_3981_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3981_, 0, v___x_3979_); -lean_ctor_set(v___x_3981_, 1, v___x_3980_); -v___x_3982_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3901_, v___x_3981_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3982_) == 0) -{ -lean_object* v_a_3983_; lean_object* v___x_3984_; -v_a_3983_ = lean_ctor_get(v___x_3982_, 0); -lean_inc(v_a_3983_); -lean_dec_ref(v___x_3982_); -lean_inc_ref(v_expectedType_3855_); -lean_inc(v_val_3854_); -v___x_3984_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(v_val_3854_, v_fst_3962_, v_expectedType_3855_, v___f_3902_, v___f_3956_, v___x_3900_, v_cls_3901_, v_snd_3963_, v___x_3891_, v_a_3983_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3984_; -goto v___jp_3868_; -} -else -{ -lean_dec(v_snd_3963_); -lean_dec(v_fst_3962_); -lean_dec_ref(v___f_3956_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -return v___x_3982_; +lean_dec(v_snd_3893_); +lean_dec(v_fst_3892_); +lean_dec_ref(v___f_3886_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +return v___x_3912_; } } } } else { -lean_object* v_a_3986_; lean_object* v___x_3988_; uint8_t v_isShared_3989_; uint8_t v_isSharedCheck_3993_; -lean_del_object(v___x_3965_); -lean_dec(v_snd_3963_); -lean_dec(v_fst_3962_); -lean_dec_ref(v___f_3956_); -lean_dec(v_userName_3894_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_3986_ = lean_ctor_get(v___x_3968_, 0); -v_isSharedCheck_3993_ = !lean_is_exclusive(v___x_3968_); -if (v_isSharedCheck_3993_ == 0) +lean_object* v_a_3916_; lean_object* v___x_3918_; uint8_t v_isShared_3919_; uint8_t v_isSharedCheck_3923_; +lean_del_object(v___x_3895_); +lean_dec(v_snd_3893_); +lean_dec(v_fst_3892_); +lean_dec_ref(v___f_3886_); +lean_dec(v_userName_3824_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3916_ = lean_ctor_get(v___x_3898_, 0); +v_isSharedCheck_3923_ = !lean_is_exclusive(v___x_3898_); +if (v_isSharedCheck_3923_ == 0) { -v___x_3988_ = v___x_3968_; -v_isShared_3989_ = v_isSharedCheck_3993_; -goto v_resetjp_3987_; +v___x_3918_ = v___x_3898_; +v_isShared_3919_ = v_isSharedCheck_3923_; +goto v_resetjp_3917_; } else { -lean_inc(v_a_3986_); -lean_dec(v___x_3968_); -v___x_3988_ = lean_box(0); -v_isShared_3989_ = v_isSharedCheck_3993_; -goto v_resetjp_3987_; -} -v_resetjp_3987_: -{ -lean_object* v___x_3991_; -if (v_isShared_3989_ == 0) -{ -v___x_3991_ = v___x_3988_; -goto v_reusejp_3990_; -} -else -{ -lean_object* v_reuseFailAlloc_3992_; -v_reuseFailAlloc_3992_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3992_, 0, v_a_3986_); -v___x_3991_ = v_reuseFailAlloc_3992_; -goto v_reusejp_3990_; -} -v_reusejp_3990_: -{ -return v___x_3991_; -} -} -} -} -else -{ -lean_object* v___x_3994_; -lean_del_object(v___x_3965_); -lean_dec(v_snd_3963_); -lean_dec(v_fst_3962_); -lean_dec_ref(v___f_3956_); -lean_dec(v_userName_3894_); -lean_inc(v___x_3903_); -v___x_3994_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1(v___x_3891_, v___x_3903_, v___x_3900_, v_a_3897_, v___x_3852_, v___x_3849_, v_compile_3850_, v_logCompileErrors_3851_, v_isMeta_3853_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3994_; -goto v___jp_3868_; -} -} -} -else -{ -lean_object* v_a_3996_; lean_object* v___x_3998_; uint8_t v_isShared_3999_; uint8_t v_isSharedCheck_4003_; -lean_dec_ref(v___f_3956_); -lean_dec(v_a_3897_); -lean_dec(v_userName_3894_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_3996_ = lean_ctor_get(v___x_3960_, 0); -v_isSharedCheck_4003_ = !lean_is_exclusive(v___x_3960_); -if (v_isSharedCheck_4003_ == 0) -{ -v___x_3998_ = v___x_3960_; -v_isShared_3999_ = v_isSharedCheck_4003_; -goto v_resetjp_3997_; -} -else -{ -lean_inc(v_a_3996_); -lean_dec(v___x_3960_); -v___x_3998_ = lean_box(0); -v_isShared_3999_ = v_isSharedCheck_4003_; -goto v_resetjp_3997_; -} -v_resetjp_3997_: -{ -lean_object* v___x_4001_; -if (v_isShared_3999_ == 0) -{ -v___x_4001_ = v___x_3998_; -goto v_reusejp_4000_; -} -else -{ -lean_object* v_reuseFailAlloc_4002_; -v_reuseFailAlloc_4002_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4002_, 0, v_a_3996_); -v___x_4001_ = v_reuseFailAlloc_4002_; -goto v_reusejp_4000_; -} -v_reusejp_4000_: -{ -return v___x_4001_; -} -} -} -} -} -else -{ -lean_dec(v_userName_3894_); -goto v___jp_3928_; -} -} -else -{ -lean_dec_ref(v_a_3906_); -lean_dec(v_userName_3894_); -goto v___jp_3928_; -} -v___jp_3910_: -{ -lean_object* v___x_3912_; -lean_inc(v___x_3903_); -v___x_3912_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_3903_, v_a_3897_, v_compile_3850_, v_logCompileErrors_3851_, v_isMeta_3853_, v___x_3891_, v___x_3900_, v_a_3911_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3912_; -goto v___jp_3868_; -} -v___jp_3913_: -{ -if (v___y_3915_ == 0) -{ -lean_dec_ref(v___y_3914_); -lean_del_object(v___x_3908_); -v_a_3911_ = v___x_3900_; -goto v___jp_3910_; -} -else -{ -lean_object* v___x_3917_; -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -if (v_isShared_3909_ == 0) -{ -lean_ctor_set_tag(v___x_3908_, 1); -lean_ctor_set(v___x_3908_, 0, v___y_3914_); -v___x_3917_ = v___x_3908_; -goto v_reusejp_3916_; -} -else -{ -lean_object* v_reuseFailAlloc_3918_; -v_reuseFailAlloc_3918_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3918_, 0, v___y_3914_); -v___x_3917_ = v_reuseFailAlloc_3918_; -goto v_reusejp_3916_; -} -v_reusejp_3916_: -{ -return v___x_3917_; -} -} -} -v___jp_3919_: -{ -uint8_t v___x_3921_; -v___x_3921_ = l_Lean_Exception_isInterrupt(v_a_3920_); -if (v___x_3921_ == 0) -{ -uint8_t v___x_3922_; -lean_inc_ref(v_a_3920_); -v___x_3922_ = l_Lean_Exception_isRuntime(v_a_3920_); -v___y_3914_ = v_a_3920_; -v___y_3915_ = v___x_3922_; -goto v___jp_3913_; -} -else -{ -v___y_3914_ = v_a_3920_; -v___y_3915_ = v___x_3921_; -goto v___jp_3913_; -} -} -v___jp_3923_: -{ -if (lean_obj_tag(v___y_3924_) == 0) -{ -lean_object* v_a_3925_; -lean_del_object(v___x_3908_); -v_a_3925_ = lean_ctor_get(v___y_3924_, 0); -lean_inc(v_a_3925_); -lean_dec_ref(v___y_3924_); -if (lean_obj_tag(v_a_3925_) == 0) -{ -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -v_a_3864_ = v___x_3900_; -goto v___jp_3863_; -} -else -{ -lean_object* v_a_3926_; -v_a_3926_ = lean_ctor_get(v_a_3925_, 0); -lean_inc(v_a_3926_); -lean_dec_ref(v_a_3925_); -v_a_3911_ = v_a_3926_; -goto v___jp_3910_; -} -} -else -{ -lean_object* v_a_3927_; -v_a_3927_ = lean_ctor_get(v___y_3924_, 0); -lean_inc(v_a_3927_); -lean_dec_ref(v___y_3924_); -v_a_3920_ = v_a_3927_; -goto v___jp_3919_; -} -} -v___jp_3928_: -{ -lean_object* v_options_3929_; lean_object* v___x_3930_; uint8_t v___x_3931_; -v_options_3929_ = lean_ctor_get(v___y_3860_, 2); -v___x_3930_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_3931_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3929_, v___x_3930_); -if (v___x_3931_ == 0) -{ -lean_object* v___x_3932_; -lean_del_object(v___x_3908_); -lean_inc(v___x_3903_); -v___x_3932_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_3903_, v_a_3897_, v_compile_3850_, v_logCompileErrors_3851_, v_isMeta_3853_, v___x_3891_, v___x_3900_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_3932_; -goto v___jp_3868_; -} -else -{ -lean_object* v___x_3933_; lean_object* v___x_3934_; -v___x_3933_ = lean_box(0); -lean_inc(v_a_3897_); -v___x_3934_ = l_Lean_Meta_trySynthInstance(v_a_3897_, v___x_3933_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3934_) == 0) -{ -lean_object* v_a_3935_; -v_a_3935_ = lean_ctor_get(v___x_3934_, 0); -lean_inc(v_a_3935_); -lean_dec_ref(v___x_3934_); -if (lean_obj_tag(v_a_3935_) == 1) -{ -lean_object* v_a_3936_; lean_object* v___x_3937_; -v_a_3936_ = lean_ctor_get(v_a_3935_, 0); -lean_inc(v_a_3936_); -lean_dec_ref(v_a_3935_); -v___x_3937_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3901_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3937_) == 0) -{ -lean_object* v_a_3938_; uint8_t v___x_3939_; -v_a_3938_ = lean_ctor_get(v___x_3937_, 0); -lean_inc(v_a_3938_); -lean_dec_ref(v___x_3937_); -v___x_3939_ = lean_unbox(v_a_3938_); -lean_dec(v_a_3938_); -if (v___x_3939_ == 0) -{ -lean_object* v___x_3940_; -lean_inc(v___x_3891_); -v___x_3940_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_3891_, v_a_3936_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3924_ = v___x_3940_; -goto v___jp_3923_; -} -else -{ -lean_object* v___x_3941_; lean_object* v___x_3942_; lean_object* v___x_3943_; lean_object* v___x_3944_; -v___x_3941_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2); -lean_inc(v_a_3936_); -v___x_3942_ = l_Lean_MessageData_ofExpr(v_a_3936_); -v___x_3943_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_3943_, 0, v___x_3941_); -lean_ctor_set(v___x_3943_, 1, v___x_3942_); -v___x_3944_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3901_, v___x_3943_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_3944_) == 0) -{ -lean_object* v_a_3945_; lean_object* v___x_3946_; -v_a_3945_ = lean_ctor_get(v___x_3944_, 0); -lean_inc(v_a_3945_); -lean_dec_ref(v___x_3944_); -lean_inc(v___x_3891_); -v___x_3946_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_3891_, v_a_3936_, v_a_3945_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3924_ = v___x_3946_; -goto v___jp_3923_; -} -else -{ -lean_object* v_a_3947_; -lean_dec(v_a_3936_); -v_a_3947_ = lean_ctor_get(v___x_3944_, 0); -lean_inc(v_a_3947_); -lean_dec_ref(v___x_3944_); -v_a_3920_ = v_a_3947_; -goto v___jp_3919_; -} -} -} -else -{ -lean_object* v_a_3948_; -lean_dec(v_a_3936_); -v_a_3948_ = lean_ctor_get(v___x_3937_, 0); -lean_inc(v_a_3948_); -lean_dec_ref(v___x_3937_); -v_a_3920_ = v_a_3948_; -goto v___jp_3919_; -} -} -else -{ -lean_dec(v_a_3935_); -lean_del_object(v___x_3908_); -v_a_3911_ = v___x_3900_; -goto v___jp_3910_; -} -} -else -{ -lean_object* v_a_3949_; -v_a_3949_ = lean_ctor_get(v___x_3934_, 0); -lean_inc(v_a_3949_); -lean_dec_ref(v___x_3934_); -v_a_3920_ = v_a_3949_; -goto v___jp_3919_; -} -} -} -} -} -else -{ -lean_object* v_a_4005_; lean_object* v___x_4007_; uint8_t v_isShared_4008_; uint8_t v_isSharedCheck_4012_; -lean_dec(v_a_3897_); -lean_dec(v_userName_3894_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4005_ = lean_ctor_get(v___x_3905_, 0); -v_isSharedCheck_4012_ = !lean_is_exclusive(v___x_3905_); -if (v_isSharedCheck_4012_ == 0) -{ -v___x_4007_ = v___x_3905_; -v_isShared_4008_ = v_isSharedCheck_4012_; -goto v_resetjp_4006_; -} -else -{ -lean_inc(v_a_4005_); -lean_dec(v___x_3905_); -v___x_4007_ = lean_box(0); -v_isShared_4008_ = v_isSharedCheck_4012_; -goto v_resetjp_4006_; -} -v_resetjp_4006_: -{ -lean_object* v___x_4010_; -if (v_isShared_4008_ == 0) -{ -v___x_4010_ = v___x_4007_; -goto v_reusejp_4009_; -} -else -{ -lean_object* v_reuseFailAlloc_4011_; -v_reuseFailAlloc_4011_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4011_, 0, v_a_4005_); -v___x_4010_ = v_reuseFailAlloc_4011_; -goto v_reusejp_4009_; -} -v_reusejp_4009_: -{ -return v___x_4010_; -} -} -} -} -else -{ -lean_object* v___x_4013_; -lean_dec(v_userName_3894_); -lean_inc(v___y_3861_); -lean_inc_ref(v___y_3860_); -lean_inc(v___y_3859_); -lean_inc_ref(v___y_3858_); -lean_inc(v___x_3903_); -v___x_4013_ = lean_infer_type(v___x_3903_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_4013_) == 0) -{ -lean_object* v_a_4014_; lean_object* v___x_4015_; -v_a_4014_ = lean_ctor_get(v___x_4013_, 0); -lean_inc_n(v_a_4014_, 2); -lean_dec_ref(v___x_4013_); -lean_inc(v_a_3897_); -v___x_4015_ = l_Lean_Meta_isExprDefEq(v_a_3897_, v_a_4014_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_4015_) == 0) -{ -lean_object* v_a_4016_; lean_object* v___f_4017_; uint8_t v___x_4018_; -v_a_4016_ = lean_ctor_get(v___x_4015_, 0); -lean_inc(v_a_4016_); -lean_dec_ref(v___x_4015_); -v___f_4017_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7)); -v___x_4018_ = lean_unbox(v_a_4016_); -lean_dec(v_a_4016_); -if (v___x_4018_ == 0) -{ -lean_object* v___x_4019_; -v___x_4019_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_3901_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_4019_) == 0) -{ -lean_object* v_a_4020_; uint8_t v___x_4021_; -v_a_4020_ = lean_ctor_get(v___x_4019_, 0); -lean_inc(v_a_4020_); -lean_dec_ref(v___x_4019_); -v___x_4021_ = lean_unbox(v_a_4020_); -lean_dec(v_a_4020_); -if (v___x_4021_ == 0) -{ -lean_object* v___x_4022_; -lean_dec(v_a_4014_); -lean_inc(v___x_3903_); -v___x_4022_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_3897_, v___x_3903_, v___x_3849_, v___x_3891_, v___f_4017_, v___x_3900_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_4022_; -goto v___jp_3868_; -} -else -{ -lean_object* v___x_4023_; lean_object* v___x_4024_; lean_object* v___x_4025_; lean_object* v___x_4026_; lean_object* v___x_4027_; lean_object* v___x_4028_; lean_object* v___x_4029_; lean_object* v___x_4030_; lean_object* v___x_4031_; lean_object* v___x_4032_; lean_object* v___x_4033_; lean_object* v___x_4034_; lean_object* v___x_4035_; lean_object* v___x_4036_; lean_object* v___x_4037_; lean_object* v___x_4038_; lean_object* v___x_4039_; lean_object* v___x_4040_; -v___x_4023_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9); -lean_inc(v_a_3856_); -v___x_4024_ = l_Nat_reprFast(v_a_3856_); -v___x_4025_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_4025_, 0, v___x_4024_); -v___x_4026_ = l_Lean_MessageData_ofFormat(v___x_4025_); -v___x_4027_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4027_, 0, v___x_4023_); -lean_ctor_set(v___x_4027_, 1, v___x_4026_); -v___x_4028_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11); -v___x_4029_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4029_, 0, v___x_4027_); -lean_ctor_set(v___x_4029_, 1, v___x_4028_); -lean_inc(v_a_3897_); -v___x_4030_ = l_Lean_MessageData_ofExpr(v_a_3897_); -v___x_4031_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4031_, 0, v___x_4029_); -lean_ctor_set(v___x_4031_, 1, v___x_4030_); -v___x_4032_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13); -v___x_4033_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4033_, 0, v___x_4031_); -lean_ctor_set(v___x_4033_, 1, v___x_4032_); -v___x_4034_ = l_Lean_MessageData_ofExpr(v_a_4014_); -v___x_4035_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4035_, 0, v___x_4033_); -lean_ctor_set(v___x_4035_, 1, v___x_4034_); -v___x_4036_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15); -v___x_4037_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4037_, 0, v___x_4035_); -lean_ctor_set(v___x_4037_, 1, v___x_4036_); -lean_inc(v___x_3903_); -v___x_4038_ = l_Lean_MessageData_ofExpr(v___x_3903_); -v___x_4039_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4039_, 0, v___x_4037_); -lean_ctor_set(v___x_4039_, 1, v___x_4038_); -v___x_4040_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_3901_, v___x_4039_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -if (lean_obj_tag(v___x_4040_) == 0) -{ -lean_object* v_a_4041_; lean_object* v___x_4042_; -v_a_4041_ = lean_ctor_get(v___x_4040_, 0); -lean_inc(v_a_4041_); -lean_dec_ref(v___x_4040_); -lean_inc(v___x_3903_); -v___x_4042_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_3897_, v___x_3903_, v___x_3849_, v___x_3891_, v___f_4017_, v_a_4041_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_4042_; -goto v___jp_3868_; -} -else -{ -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -return v___x_4040_; -} -} -} -else -{ -lean_object* v_a_4043_; lean_object* v___x_4045_; uint8_t v_isShared_4046_; uint8_t v_isSharedCheck_4050_; -lean_dec(v_a_4014_); -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4043_ = lean_ctor_get(v___x_4019_, 0); -v_isSharedCheck_4050_ = !lean_is_exclusive(v___x_4019_); -if (v_isSharedCheck_4050_ == 0) -{ -v___x_4045_ = v___x_4019_; -v_isShared_4046_ = v_isSharedCheck_4050_; -goto v_resetjp_4044_; -} -else -{ -lean_inc(v_a_4043_); -lean_dec(v___x_4019_); -v___x_4045_ = lean_box(0); -v_isShared_4046_ = v_isSharedCheck_4050_; -goto v_resetjp_4044_; -} -v_resetjp_4044_: -{ -lean_object* v___x_4048_; -if (v_isShared_4046_ == 0) -{ -v___x_4048_ = v___x_4045_; -goto v_reusejp_4047_; -} -else -{ -lean_object* v_reuseFailAlloc_4049_; -v_reuseFailAlloc_4049_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4049_, 0, v_a_4043_); -v___x_4048_ = v_reuseFailAlloc_4049_; -goto v_reusejp_4047_; -} -v_reusejp_4047_: -{ -return v___x_4048_; -} -} -} -} -else -{ -lean_object* v___x_4051_; -lean_dec(v_a_4014_); -lean_dec(v_a_3897_); -lean_inc(v___x_3903_); -v___x_4051_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_3891_, v___x_3903_, v___y_3859_); -if (lean_obj_tag(v___x_4051_) == 0) -{ -lean_object* v_a_4052_; lean_object* v___x_4053_; -v_a_4052_ = lean_ctor_get(v___x_4051_, 0); -lean_inc(v_a_4052_); -lean_dec_ref(v___x_4051_); -v___x_4053_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(v___x_3900_, v_a_4052_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -v___y_3869_ = v___x_4053_; -goto v___jp_3868_; -} -else -{ -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -return v___x_4051_; -} -} -} -else -{ -lean_object* v_a_4054_; lean_object* v___x_4056_; uint8_t v_isShared_4057_; uint8_t v_isSharedCheck_4061_; -lean_dec(v_a_4014_); -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4054_ = lean_ctor_get(v___x_4015_, 0); -v_isSharedCheck_4061_ = !lean_is_exclusive(v___x_4015_); -if (v_isSharedCheck_4061_ == 0) -{ -v___x_4056_ = v___x_4015_; -v_isShared_4057_ = v_isSharedCheck_4061_; -goto v_resetjp_4055_; -} -else -{ -lean_inc(v_a_4054_); -lean_dec(v___x_4015_); -v___x_4056_ = lean_box(0); -v_isShared_4057_ = v_isSharedCheck_4061_; -goto v_resetjp_4055_; -} -v_resetjp_4055_: -{ -lean_object* v___x_4059_; -if (v_isShared_4057_ == 0) -{ -v___x_4059_ = v___x_4056_; -goto v_reusejp_4058_; -} -else -{ -lean_object* v_reuseFailAlloc_4060_; -v_reuseFailAlloc_4060_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4060_, 0, v_a_4054_); -v___x_4059_ = v_reuseFailAlloc_4060_; -goto v_reusejp_4058_; -} -v_reusejp_4058_: -{ -return v___x_4059_; -} -} -} -} -else -{ -lean_object* v_a_4062_; lean_object* v___x_4064_; uint8_t v_isShared_4065_; uint8_t v_isSharedCheck_4069_; -lean_dec(v_a_3897_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4062_ = lean_ctor_get(v___x_4013_, 0); -v_isSharedCheck_4069_ = !lean_is_exclusive(v___x_4013_); -if (v_isSharedCheck_4069_ == 0) -{ -v___x_4064_ = v___x_4013_; -v_isShared_4065_ = v_isSharedCheck_4069_; -goto v_resetjp_4063_; -} -else -{ -lean_inc(v_a_4062_); -lean_dec(v___x_4013_); -v___x_4064_ = lean_box(0); -v_isShared_4065_ = v_isSharedCheck_4069_; -goto v_resetjp_4063_; -} -v_resetjp_4063_: -{ -lean_object* v___x_4067_; -if (v_isShared_4065_ == 0) -{ -v___x_4067_ = v___x_4064_; -goto v_reusejp_4066_; -} -else -{ -lean_object* v_reuseFailAlloc_4068_; -v_reuseFailAlloc_4068_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4068_, 0, v_a_4062_); -v___x_4067_ = v_reuseFailAlloc_4068_; -goto v_reusejp_4066_; -} -v_reusejp_4066_: -{ -return v___x_4067_; -} -} -} -} -} -else -{ -lean_object* v_a_4070_; lean_object* v___x_4072_; uint8_t v_isShared_4073_; uint8_t v_isSharedCheck_4077_; -lean_dec(v_a_3897_); -lean_dec(v_userName_3894_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4070_ = lean_ctor_get(v___x_3898_, 0); -v_isSharedCheck_4077_ = !lean_is_exclusive(v___x_3898_); -if (v_isSharedCheck_4077_ == 0) -{ -v___x_4072_ = v___x_3898_; -v_isShared_4073_ = v_isSharedCheck_4077_; -goto v_resetjp_4071_; -} -else -{ -lean_inc(v_a_4070_); +lean_inc(v_a_3916_); lean_dec(v___x_3898_); -v___x_4072_ = lean_box(0); -v_isShared_4073_ = v_isSharedCheck_4077_; -goto v_resetjp_4071_; +v___x_3918_ = lean_box(0); +v_isShared_3919_ = v_isSharedCheck_3923_; +goto v_resetjp_3917_; } -v_resetjp_4071_: +v_resetjp_3917_: { -lean_object* v___x_4075_; -if (v_isShared_4073_ == 0) +lean_object* v___x_3921_; +if (v_isShared_3919_ == 0) { -v___x_4075_ = v___x_4072_; -goto v_reusejp_4074_; +v___x_3921_ = v___x_3918_; +goto v_reusejp_3920_; } else { -lean_object* v_reuseFailAlloc_4076_; -v_reuseFailAlloc_4076_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4076_, 0, v_a_4070_); -v___x_4075_ = v_reuseFailAlloc_4076_; -goto v_reusejp_4074_; +lean_object* v_reuseFailAlloc_3922_; +v_reuseFailAlloc_3922_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3922_, 0, v_a_3916_); +v___x_3921_ = v_reuseFailAlloc_3922_; +goto v_reusejp_3920_; } -v_reusejp_4074_: +v_reusejp_3920_: { -return v___x_4075_; +return v___x_3921_; } } } } else { -lean_object* v_a_4078_; lean_object* v___x_4080_; uint8_t v_isShared_4081_; uint8_t v_isSharedCheck_4085_; -lean_dec(v_userName_3894_); -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4078_ = lean_ctor_get(v___x_3896_, 0); -v_isSharedCheck_4085_ = !lean_is_exclusive(v___x_3896_); -if (v_isSharedCheck_4085_ == 0) -{ -v___x_4080_ = v___x_3896_; -v_isShared_4081_ = v_isSharedCheck_4085_; -goto v_resetjp_4079_; +lean_object* v___x_3924_; +lean_del_object(v___x_3895_); +lean_dec(v_snd_3893_); +lean_dec(v_fst_3892_); +lean_dec_ref(v___f_3886_); +lean_dec(v_userName_3824_); +lean_inc(v___x_3833_); +v___x_3924_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1(v___x_3821_, v___x_3833_, v___x_3830_, v_a_3827_, v___x_3782_, v___x_3779_, v_compile_3780_, v_logCompileErrors_3781_, v_isMeta_3783_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3924_; +goto v___jp_3798_; +} +} } else { -lean_inc(v_a_4078_); -lean_dec(v___x_3896_); -v___x_4080_ = lean_box(0); -v_isShared_4081_ = v_isSharedCheck_4085_; -goto v_resetjp_4079_; -} -v_resetjp_4079_: +lean_object* v_a_3926_; lean_object* v___x_3928_; uint8_t v_isShared_3929_; uint8_t v_isSharedCheck_3933_; +lean_dec_ref(v___f_3886_); +lean_dec(v_a_3827_); +lean_dec(v_userName_3824_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3926_ = lean_ctor_get(v___x_3890_, 0); +v_isSharedCheck_3933_ = !lean_is_exclusive(v___x_3890_); +if (v_isSharedCheck_3933_ == 0) { -lean_object* v___x_4083_; -if (v_isShared_4081_ == 0) -{ -v___x_4083_ = v___x_4080_; -goto v_reusejp_4082_; +v___x_3928_ = v___x_3890_; +v_isShared_3929_ = v_isSharedCheck_3933_; +goto v_resetjp_3927_; } else { -lean_object* v_reuseFailAlloc_4084_; -v_reuseFailAlloc_4084_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4084_, 0, v_a_4078_); -v___x_4083_ = v_reuseFailAlloc_4084_; -goto v_reusejp_4082_; +lean_inc(v_a_3926_); +lean_dec(v___x_3890_); +v___x_3928_ = lean_box(0); +v_isShared_3929_ = v_isSharedCheck_3933_; +goto v_resetjp_3927_; } -v_reusejp_4082_: +v_resetjp_3927_: { -return v___x_4083_; +lean_object* v___x_3931_; +if (v_isShared_3929_ == 0) +{ +v___x_3931_ = v___x_3928_; +goto v_reusejp_3930_; +} +else +{ +lean_object* v_reuseFailAlloc_3932_; +v_reuseFailAlloc_3932_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3932_, 0, v_a_3926_); +v___x_3931_ = v_reuseFailAlloc_3932_; +goto v_reusejp_3930_; +} +v_reusejp_3930_: +{ +return v___x_3931_; +} } } } } else { -lean_object* v_a_4086_; lean_object* v___x_4088_; uint8_t v_isShared_4089_; uint8_t v_isSharedCheck_4093_; -lean_dec(v___x_3891_); -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_4086_ = lean_ctor_get(v___x_3892_, 0); -v_isSharedCheck_4093_ = !lean_is_exclusive(v___x_3892_); -if (v_isSharedCheck_4093_ == 0) -{ -v___x_4088_ = v___x_3892_; -v_isShared_4089_ = v_isSharedCheck_4093_; -goto v_resetjp_4087_; +lean_dec(v_userName_3824_); +goto v___jp_3858_; +} } else { -lean_inc(v_a_4086_); -lean_dec(v___x_3892_); -v___x_4088_ = lean_box(0); -v_isShared_4089_ = v_isSharedCheck_4093_; -goto v_resetjp_4087_; +lean_dec_ref(v_a_3836_); +lean_dec(v_userName_3824_); +goto v___jp_3858_; } -v_resetjp_4087_: +v___jp_3840_: { -lean_object* v___x_4091_; -if (v_isShared_4089_ == 0) +lean_object* v___x_3842_; +lean_inc(v___x_3833_); +v___x_3842_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_3833_, v_a_3827_, v_compile_3780_, v_logCompileErrors_3781_, v_isMeta_3783_, v___x_3821_, v___x_3830_, v_a_3841_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3842_; +goto v___jp_3798_; +} +v___jp_3843_: { -v___x_4091_ = v___x_4088_; -goto v_reusejp_4090_; +if (v___y_3845_ == 0) +{ +lean_dec_ref(v___y_3844_); +lean_del_object(v___x_3838_); +v_a_3841_ = v___x_3830_; +goto v___jp_3840_; } else { -lean_object* v_reuseFailAlloc_4092_; -v_reuseFailAlloc_4092_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4092_, 0, v_a_4086_); -v___x_4091_ = v_reuseFailAlloc_4092_; -goto v_reusejp_4090_; -} -v_reusejp_4090_: +lean_object* v___x_3847_; +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +if (v_isShared_3839_ == 0) { -return v___x_4091_; -} -} -} -} -v___jp_3863_: -{ -lean_object* v___x_3865_; lean_object* v___x_3866_; lean_object* v___x_3867_; -v___x_3865_ = lean_unsigned_to_nat(1u); -v___x_3866_ = lean_nat_add(v_a_3856_, v___x_3865_); -lean_dec(v_a_3856_); -v___x_3867_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg(v_upperBound_3846_, v_fst_3847_, v_args_3848_, v___x_3849_, v_compile_3850_, v_logCompileErrors_3851_, v___x_3852_, v_isMeta_3853_, v_val_3854_, v_expectedType_3855_, v___x_3866_, v_a_3864_, v___y_3858_, v___y_3859_, v___y_3860_, v___y_3861_); -return v___x_3867_; -} -v___jp_3868_: -{ -if (lean_obj_tag(v___y_3869_) == 0) -{ -lean_object* v_a_3870_; lean_object* v___x_3872_; uint8_t v_isShared_3873_; uint8_t v_isSharedCheck_3879_; -v_a_3870_ = lean_ctor_get(v___y_3869_, 0); -v_isSharedCheck_3879_ = !lean_is_exclusive(v___y_3869_); -if (v_isSharedCheck_3879_ == 0) -{ -v___x_3872_ = v___y_3869_; -v_isShared_3873_ = v_isSharedCheck_3879_; -goto v_resetjp_3871_; +lean_ctor_set_tag(v___x_3838_, 1); +lean_ctor_set(v___x_3838_, 0, v___y_3844_); +v___x_3847_ = v___x_3838_; +goto v_reusejp_3846_; } else { -lean_inc(v_a_3870_); -lean_dec(v___y_3869_); -v___x_3872_ = lean_box(0); -v_isShared_3873_ = v_isSharedCheck_3879_; -goto v_resetjp_3871_; +lean_object* v_reuseFailAlloc_3848_; +v_reuseFailAlloc_3848_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3848_, 0, v___y_3844_); +v___x_3847_ = v_reuseFailAlloc_3848_; +goto v_reusejp_3846_; } -v_resetjp_3871_: +v_reusejp_3846_: { -if (lean_obj_tag(v_a_3870_) == 0) +return v___x_3847_; +} +} +} +v___jp_3849_: { -lean_object* v_a_3874_; lean_object* v___x_3876_; -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_3874_ = lean_ctor_get(v_a_3870_, 0); -lean_inc(v_a_3874_); -lean_dec_ref(v_a_3870_); -if (v_isShared_3873_ == 0) +uint8_t v___x_3851_; +v___x_3851_ = l_Lean_Exception_isInterrupt(v_a_3850_); +if (v___x_3851_ == 0) { -lean_ctor_set(v___x_3872_, 0, v_a_3874_); -v___x_3876_ = v___x_3872_; -goto v_reusejp_3875_; +uint8_t v___x_3852_; +lean_inc_ref(v_a_3850_); +v___x_3852_ = l_Lean_Exception_isRuntime(v_a_3850_); +v___y_3844_ = v_a_3850_; +v___y_3845_ = v___x_3852_; +goto v___jp_3843_; } else { -lean_object* v_reuseFailAlloc_3877_; -v_reuseFailAlloc_3877_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3877_, 0, v_a_3874_); -v___x_3876_ = v_reuseFailAlloc_3877_; -goto v_reusejp_3875_; +v___y_3844_ = v_a_3850_; +v___y_3845_ = v___x_3851_; +goto v___jp_3843_; } -v_reusejp_3875_: +} +v___jp_3853_: { -return v___x_3876_; +if (lean_obj_tag(v___y_3854_) == 0) +{ +lean_object* v_a_3855_; +lean_del_object(v___x_3838_); +v_a_3855_ = lean_ctor_get(v___y_3854_, 0); +lean_inc(v_a_3855_); +lean_dec_ref(v___y_3854_); +if (lean_obj_tag(v_a_3855_) == 0) +{ +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +v_a_3794_ = v___x_3830_; +goto v___jp_3793_; +} +else +{ +lean_object* v_a_3856_; +v_a_3856_ = lean_ctor_get(v_a_3855_, 0); +lean_inc(v_a_3856_); +lean_dec_ref(v_a_3855_); +v_a_3841_ = v_a_3856_; +goto v___jp_3840_; +} +} +else +{ +lean_object* v_a_3857_; +v_a_3857_ = lean_ctor_get(v___y_3854_, 0); +lean_inc(v_a_3857_); +lean_dec_ref(v___y_3854_); +v_a_3850_ = v_a_3857_; +goto v___jp_3849_; +} +} +v___jp_3858_: +{ +lean_object* v_options_3859_; lean_object* v___x_3860_; uint8_t v___x_3861_; +v_options_3859_ = lean_ctor_get(v___y_3790_, 2); +v___x_3860_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_3861_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_3859_, v___x_3860_); +if (v___x_3861_ == 0) +{ +lean_object* v___x_3862_; +lean_del_object(v___x_3838_); +lean_inc(v___x_3833_); +v___x_3862_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_3833_, v_a_3827_, v_compile_3780_, v_logCompileErrors_3781_, v_isMeta_3783_, v___x_3821_, v___x_3830_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3862_; +goto v___jp_3798_; +} +else +{ +lean_object* v___x_3863_; lean_object* v___x_3864_; +v___x_3863_ = lean_box(0); +lean_inc(v_a_3827_); +v___x_3864_ = l_Lean_Meta_trySynthInstance(v_a_3827_, v___x_3863_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3864_) == 0) +{ +lean_object* v_a_3865_; +v_a_3865_ = lean_ctor_get(v___x_3864_, 0); +lean_inc(v_a_3865_); +lean_dec_ref(v___x_3864_); +if (lean_obj_tag(v_a_3865_) == 1) +{ +lean_object* v_a_3866_; lean_object* v___x_3867_; +v_a_3866_ = lean_ctor_get(v_a_3865_, 0); +lean_inc(v_a_3866_); +lean_dec_ref(v_a_3865_); +v___x_3867_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3831_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3867_) == 0) +{ +lean_object* v_a_3868_; uint8_t v___x_3869_; +v_a_3868_ = lean_ctor_get(v___x_3867_, 0); +lean_inc(v_a_3868_); +lean_dec_ref(v___x_3867_); +v___x_3869_ = lean_unbox(v_a_3868_); +lean_dec(v_a_3868_); +if (v___x_3869_ == 0) +{ +lean_object* v___x_3870_; +lean_inc(v___x_3821_); +v___x_3870_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_3821_, v_a_3866_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3854_ = v___x_3870_; +goto v___jp_3853_; +} +else +{ +lean_object* v___x_3871_; lean_object* v___x_3872_; lean_object* v___x_3873_; lean_object* v___x_3874_; +v___x_3871_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2); +lean_inc(v_a_3866_); +v___x_3872_ = l_Lean_MessageData_ofExpr(v_a_3866_); +v___x_3873_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3873_, 0, v___x_3871_); +lean_ctor_set(v___x_3873_, 1, v___x_3872_); +v___x_3874_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3831_, v___x_3873_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3874_) == 0) +{ +lean_object* v_a_3875_; lean_object* v___x_3876_; +v_a_3875_ = lean_ctor_get(v___x_3874_, 0); +lean_inc(v_a_3875_); +lean_dec_ref(v___x_3874_); +lean_inc(v___x_3821_); +v___x_3876_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_3821_, v_a_3866_, v_a_3875_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3854_ = v___x_3876_; +goto v___jp_3853_; +} +else +{ +lean_object* v_a_3877_; +lean_dec(v_a_3866_); +v_a_3877_ = lean_ctor_get(v___x_3874_, 0); +lean_inc(v_a_3877_); +lean_dec_ref(v___x_3874_); +v_a_3850_ = v_a_3877_; +goto v___jp_3849_; +} } } else { lean_object* v_a_3878_; -lean_del_object(v___x_3872_); -v_a_3878_ = lean_ctor_get(v_a_3870_, 0); +lean_dec(v_a_3866_); +v_a_3878_ = lean_ctor_get(v___x_3867_, 0); lean_inc(v_a_3878_); -lean_dec_ref(v_a_3870_); -v_a_3864_ = v_a_3878_; -goto v___jp_3863_; +lean_dec_ref(v___x_3867_); +v_a_3850_ = v_a_3878_; +goto v___jp_3849_; +} +} +else +{ +lean_dec(v_a_3865_); +lean_del_object(v___x_3838_); +v_a_3841_ = v___x_3830_; +goto v___jp_3840_; +} +} +else +{ +lean_object* v_a_3879_; +v_a_3879_ = lean_ctor_get(v___x_3864_, 0); +lean_inc(v_a_3879_); +lean_dec_ref(v___x_3864_); +v_a_3850_ = v_a_3879_; +goto v___jp_3849_; +} +} } } } else { -lean_object* v_a_3880_; lean_object* v___x_3882_; uint8_t v_isShared_3883_; uint8_t v_isSharedCheck_3887_; -lean_dec(v_a_3856_); -lean_dec_ref(v_expectedType_3855_); -lean_dec(v_val_3854_); -v_a_3880_ = lean_ctor_get(v___y_3869_, 0); -v_isSharedCheck_3887_ = !lean_is_exclusive(v___y_3869_); -if (v_isSharedCheck_3887_ == 0) +lean_object* v_a_3935_; lean_object* v___x_3937_; uint8_t v_isShared_3938_; uint8_t v_isSharedCheck_3942_; +lean_dec(v_a_3827_); +lean_dec(v_userName_3824_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3935_ = lean_ctor_get(v___x_3835_, 0); +v_isSharedCheck_3942_ = !lean_is_exclusive(v___x_3835_); +if (v_isSharedCheck_3942_ == 0) { -v___x_3882_ = v___y_3869_; -v_isShared_3883_ = v_isSharedCheck_3887_; -goto v_resetjp_3881_; +v___x_3937_ = v___x_3835_; +v_isShared_3938_ = v_isSharedCheck_3942_; +goto v_resetjp_3936_; } else { -lean_inc(v_a_3880_); -lean_dec(v___y_3869_); -v___x_3882_ = lean_box(0); -v_isShared_3883_ = v_isSharedCheck_3887_; -goto v_resetjp_3881_; +lean_inc(v_a_3935_); +lean_dec(v___x_3835_); +v___x_3937_ = lean_box(0); +v_isShared_3938_ = v_isSharedCheck_3942_; +goto v_resetjp_3936_; } -v_resetjp_3881_: +v_resetjp_3936_: { -lean_object* v___x_3885_; -if (v_isShared_3883_ == 0) +lean_object* v___x_3940_; +if (v_isShared_3938_ == 0) { -v___x_3885_ = v___x_3882_; -goto v_reusejp_3884_; +v___x_3940_ = v___x_3937_; +goto v_reusejp_3939_; } else { -lean_object* v_reuseFailAlloc_3886_; -v_reuseFailAlloc_3886_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3886_, 0, v_a_3880_); -v___x_3885_ = v_reuseFailAlloc_3886_; -goto v_reusejp_3884_; +lean_object* v_reuseFailAlloc_3941_; +v_reuseFailAlloc_3941_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3941_, 0, v_a_3935_); +v___x_3940_ = v_reuseFailAlloc_3941_; +goto v_reusejp_3939_; } -v_reusejp_3884_: +v_reusejp_3939_: { -return v___x_3885_; +return v___x_3940_; +} +} +} +} +else +{ +lean_object* v___x_3943_; +lean_dec(v_userName_3824_); +lean_inc(v___y_3791_); +lean_inc_ref(v___y_3790_); +lean_inc(v___y_3789_); +lean_inc_ref(v___y_3788_); +lean_inc(v___x_3833_); +v___x_3943_ = lean_infer_type(v___x_3833_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3943_) == 0) +{ +lean_object* v_a_3944_; lean_object* v___x_3945_; +v_a_3944_ = lean_ctor_get(v___x_3943_, 0); +lean_inc_n(v_a_3944_, 2); +lean_dec_ref(v___x_3943_); +lean_inc(v_a_3827_); +v___x_3945_ = l_Lean_Meta_isExprDefEq(v_a_3827_, v_a_3944_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3945_) == 0) +{ +lean_object* v_a_3946_; lean_object* v___f_3947_; uint8_t v___x_3948_; +v_a_3946_ = lean_ctor_get(v___x_3945_, 0); +lean_inc(v_a_3946_); +lean_dec_ref(v___x_3945_); +v___f_3947_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7)); +v___x_3948_ = lean_unbox(v_a_3946_); +lean_dec(v_a_3946_); +if (v___x_3948_ == 0) +{ +lean_object* v___x_3949_; +v___x_3949_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_3831_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3949_) == 0) +{ +lean_object* v_a_3950_; uint8_t v___x_3951_; +v_a_3950_ = lean_ctor_get(v___x_3949_, 0); +lean_inc(v_a_3950_); +lean_dec_ref(v___x_3949_); +v___x_3951_ = lean_unbox(v_a_3950_); +lean_dec(v_a_3950_); +if (v___x_3951_ == 0) +{ +lean_object* v___x_3952_; +lean_dec(v_a_3944_); +lean_inc(v___x_3833_); +v___x_3952_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_3827_, v___x_3833_, v___x_3779_, v___x_3821_, v___f_3947_, v___x_3830_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3952_; +goto v___jp_3798_; +} +else +{ +lean_object* v___x_3953_; lean_object* v___x_3954_; lean_object* v___x_3955_; lean_object* v___x_3956_; lean_object* v___x_3957_; lean_object* v___x_3958_; lean_object* v___x_3959_; lean_object* v___x_3960_; lean_object* v___x_3961_; lean_object* v___x_3962_; lean_object* v___x_3963_; lean_object* v___x_3964_; lean_object* v___x_3965_; lean_object* v___x_3966_; lean_object* v___x_3967_; lean_object* v___x_3968_; lean_object* v___x_3969_; lean_object* v___x_3970_; +v___x_3953_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9); +lean_inc(v_a_3786_); +v___x_3954_ = l_Nat_reprFast(v_a_3786_); +v___x_3955_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_3955_, 0, v___x_3954_); +v___x_3956_ = l_Lean_MessageData_ofFormat(v___x_3955_); +v___x_3957_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3957_, 0, v___x_3953_); +lean_ctor_set(v___x_3957_, 1, v___x_3956_); +v___x_3958_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11); +v___x_3959_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3959_, 0, v___x_3957_); +lean_ctor_set(v___x_3959_, 1, v___x_3958_); +lean_inc(v_a_3827_); +v___x_3960_ = l_Lean_MessageData_ofExpr(v_a_3827_); +v___x_3961_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3961_, 0, v___x_3959_); +lean_ctor_set(v___x_3961_, 1, v___x_3960_); +v___x_3962_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13); +v___x_3963_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3963_, 0, v___x_3961_); +lean_ctor_set(v___x_3963_, 1, v___x_3962_); +v___x_3964_ = l_Lean_MessageData_ofExpr(v_a_3944_); +v___x_3965_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3965_, 0, v___x_3963_); +lean_ctor_set(v___x_3965_, 1, v___x_3964_); +v___x_3966_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15); +v___x_3967_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3967_, 0, v___x_3965_); +lean_ctor_set(v___x_3967_, 1, v___x_3966_); +lean_inc(v___x_3833_); +v___x_3968_ = l_Lean_MessageData_ofExpr(v___x_3833_); +v___x_3969_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_3969_, 0, v___x_3967_); +lean_ctor_set(v___x_3969_, 1, v___x_3968_); +v___x_3970_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_3831_, v___x_3969_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +if (lean_obj_tag(v___x_3970_) == 0) +{ +lean_object* v_a_3971_; lean_object* v___x_3972_; +v_a_3971_ = lean_ctor_get(v___x_3970_, 0); +lean_inc(v_a_3971_); +lean_dec_ref(v___x_3970_); +lean_inc(v___x_3833_); +v___x_3972_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_3827_, v___x_3833_, v___x_3779_, v___x_3821_, v___f_3947_, v_a_3971_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3972_; +goto v___jp_3798_; +} +else +{ +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +return v___x_3970_; +} +} +} +else +{ +lean_object* v_a_3973_; lean_object* v___x_3975_; uint8_t v_isShared_3976_; uint8_t v_isSharedCheck_3980_; +lean_dec(v_a_3944_); +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3973_ = lean_ctor_get(v___x_3949_, 0); +v_isSharedCheck_3980_ = !lean_is_exclusive(v___x_3949_); +if (v_isSharedCheck_3980_ == 0) +{ +v___x_3975_ = v___x_3949_; +v_isShared_3976_ = v_isSharedCheck_3980_; +goto v_resetjp_3974_; +} +else +{ +lean_inc(v_a_3973_); +lean_dec(v___x_3949_); +v___x_3975_ = lean_box(0); +v_isShared_3976_ = v_isSharedCheck_3980_; +goto v_resetjp_3974_; +} +v_resetjp_3974_: +{ +lean_object* v___x_3978_; +if (v_isShared_3976_ == 0) +{ +v___x_3978_ = v___x_3975_; +goto v_reusejp_3977_; +} +else +{ +lean_object* v_reuseFailAlloc_3979_; +v_reuseFailAlloc_3979_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3979_, 0, v_a_3973_); +v___x_3978_ = v_reuseFailAlloc_3979_; +goto v_reusejp_3977_; +} +v_reusejp_3977_: +{ +return v___x_3978_; +} +} +} +} +else +{ +lean_object* v___x_3981_; +lean_dec(v_a_3944_); +lean_dec(v_a_3827_); +lean_inc(v___x_3833_); +v___x_3981_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_3821_, v___x_3833_, v___y_3789_); +if (lean_obj_tag(v___x_3981_) == 0) +{ +lean_object* v_a_3982_; lean_object* v___x_3983_; +v_a_3982_ = lean_ctor_get(v___x_3981_, 0); +lean_inc(v_a_3982_); +lean_dec_ref(v___x_3981_); +v___x_3983_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(v___x_3830_, v_a_3982_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +v___y_3799_ = v___x_3983_; +goto v___jp_3798_; +} +else +{ +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +return v___x_3981_; +} +} +} +else +{ +lean_object* v_a_3984_; lean_object* v___x_3986_; uint8_t v_isShared_3987_; uint8_t v_isSharedCheck_3991_; +lean_dec(v_a_3944_); +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3984_ = lean_ctor_get(v___x_3945_, 0); +v_isSharedCheck_3991_ = !lean_is_exclusive(v___x_3945_); +if (v_isSharedCheck_3991_ == 0) +{ +v___x_3986_ = v___x_3945_; +v_isShared_3987_ = v_isSharedCheck_3991_; +goto v_resetjp_3985_; +} +else +{ +lean_inc(v_a_3984_); +lean_dec(v___x_3945_); +v___x_3986_ = lean_box(0); +v_isShared_3987_ = v_isSharedCheck_3991_; +goto v_resetjp_3985_; +} +v_resetjp_3985_: +{ +lean_object* v___x_3989_; +if (v_isShared_3987_ == 0) +{ +v___x_3989_ = v___x_3986_; +goto v_reusejp_3988_; +} +else +{ +lean_object* v_reuseFailAlloc_3990_; +v_reuseFailAlloc_3990_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3990_, 0, v_a_3984_); +v___x_3989_ = v_reuseFailAlloc_3990_; +goto v_reusejp_3988_; +} +v_reusejp_3988_: +{ +return v___x_3989_; +} +} +} +} +else +{ +lean_object* v_a_3992_; lean_object* v___x_3994_; uint8_t v_isShared_3995_; uint8_t v_isSharedCheck_3999_; +lean_dec(v_a_3827_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3992_ = lean_ctor_get(v___x_3943_, 0); +v_isSharedCheck_3999_ = !lean_is_exclusive(v___x_3943_); +if (v_isSharedCheck_3999_ == 0) +{ +v___x_3994_ = v___x_3943_; +v_isShared_3995_ = v_isSharedCheck_3999_; +goto v_resetjp_3993_; +} +else +{ +lean_inc(v_a_3992_); +lean_dec(v___x_3943_); +v___x_3994_ = lean_box(0); +v_isShared_3995_ = v_isSharedCheck_3999_; +goto v_resetjp_3993_; +} +v_resetjp_3993_: +{ +lean_object* v___x_3997_; +if (v_isShared_3995_ == 0) +{ +v___x_3997_ = v___x_3994_; +goto v_reusejp_3996_; +} +else +{ +lean_object* v_reuseFailAlloc_3998_; +v_reuseFailAlloc_3998_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3998_, 0, v_a_3992_); +v___x_3997_ = v_reuseFailAlloc_3998_; +goto v_reusejp_3996_; +} +v_reusejp_3996_: +{ +return v___x_3997_; +} +} +} +} +} +else +{ +lean_object* v_a_4000_; lean_object* v___x_4002_; uint8_t v_isShared_4003_; uint8_t v_isSharedCheck_4007_; +lean_dec(v_a_3827_); +lean_dec(v_userName_3824_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_4000_ = lean_ctor_get(v___x_3828_, 0); +v_isSharedCheck_4007_ = !lean_is_exclusive(v___x_3828_); +if (v_isSharedCheck_4007_ == 0) +{ +v___x_4002_ = v___x_3828_; +v_isShared_4003_ = v_isSharedCheck_4007_; +goto v_resetjp_4001_; +} +else +{ +lean_inc(v_a_4000_); +lean_dec(v___x_3828_); +v___x_4002_ = lean_box(0); +v_isShared_4003_ = v_isSharedCheck_4007_; +goto v_resetjp_4001_; +} +v_resetjp_4001_: +{ +lean_object* v___x_4005_; +if (v_isShared_4003_ == 0) +{ +v___x_4005_ = v___x_4002_; +goto v_reusejp_4004_; +} +else +{ +lean_object* v_reuseFailAlloc_4006_; +v_reuseFailAlloc_4006_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4006_, 0, v_a_4000_); +v___x_4005_ = v_reuseFailAlloc_4006_; +goto v_reusejp_4004_; +} +v_reusejp_4004_: +{ +return v___x_4005_; +} +} +} +} +else +{ +lean_object* v_a_4008_; lean_object* v___x_4010_; uint8_t v_isShared_4011_; uint8_t v_isSharedCheck_4015_; +lean_dec(v_userName_3824_); +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_4008_ = lean_ctor_get(v___x_3826_, 0); +v_isSharedCheck_4015_ = !lean_is_exclusive(v___x_3826_); +if (v_isSharedCheck_4015_ == 0) +{ +v___x_4010_ = v___x_3826_; +v_isShared_4011_ = v_isSharedCheck_4015_; +goto v_resetjp_4009_; +} +else +{ +lean_inc(v_a_4008_); +lean_dec(v___x_3826_); +v___x_4010_ = lean_box(0); +v_isShared_4011_ = v_isSharedCheck_4015_; +goto v_resetjp_4009_; +} +v_resetjp_4009_: +{ +lean_object* v___x_4013_; +if (v_isShared_4011_ == 0) +{ +v___x_4013_ = v___x_4010_; +goto v_reusejp_4012_; +} +else +{ +lean_object* v_reuseFailAlloc_4014_; +v_reuseFailAlloc_4014_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4014_, 0, v_a_4008_); +v___x_4013_ = v_reuseFailAlloc_4014_; +goto v_reusejp_4012_; +} +v_reusejp_4012_: +{ +return v___x_4013_; +} +} +} +} +else +{ +lean_object* v_a_4016_; lean_object* v___x_4018_; uint8_t v_isShared_4019_; uint8_t v_isSharedCheck_4023_; +lean_dec(v___x_3821_); +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_4016_ = lean_ctor_get(v___x_3822_, 0); +v_isSharedCheck_4023_ = !lean_is_exclusive(v___x_3822_); +if (v_isSharedCheck_4023_ == 0) +{ +v___x_4018_ = v___x_3822_; +v_isShared_4019_ = v_isSharedCheck_4023_; +goto v_resetjp_4017_; +} +else +{ +lean_inc(v_a_4016_); +lean_dec(v___x_3822_); +v___x_4018_ = lean_box(0); +v_isShared_4019_ = v_isSharedCheck_4023_; +goto v_resetjp_4017_; +} +v_resetjp_4017_: +{ +lean_object* v___x_4021_; +if (v_isShared_4019_ == 0) +{ +v___x_4021_ = v___x_4018_; +goto v_reusejp_4020_; +} +else +{ +lean_object* v_reuseFailAlloc_4022_; +v_reuseFailAlloc_4022_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4022_, 0, v_a_4016_); +v___x_4021_ = v_reuseFailAlloc_4022_; +goto v_reusejp_4020_; +} +v_reusejp_4020_: +{ +return v___x_4021_; +} +} +} +} +v___jp_3793_: +{ +lean_object* v___x_3795_; lean_object* v___x_3796_; lean_object* v___x_3797_; +v___x_3795_ = lean_unsigned_to_nat(1u); +v___x_3796_ = lean_nat_add(v_a_3786_, v___x_3795_); +lean_dec(v_a_3786_); +v___x_3797_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg(v_upperBound_3776_, v_fst_3777_, v_args_3778_, v___x_3779_, v_compile_3780_, v_logCompileErrors_3781_, v___x_3782_, v_isMeta_3783_, v_val_3784_, v_expectedType_3785_, v___x_3796_, v_a_3794_, v___y_3788_, v___y_3789_, v___y_3790_, v___y_3791_); +return v___x_3797_; +} +v___jp_3798_: +{ +if (lean_obj_tag(v___y_3799_) == 0) +{ +lean_object* v_a_3800_; lean_object* v___x_3802_; uint8_t v_isShared_3803_; uint8_t v_isSharedCheck_3809_; +v_a_3800_ = lean_ctor_get(v___y_3799_, 0); +v_isSharedCheck_3809_ = !lean_is_exclusive(v___y_3799_); +if (v_isSharedCheck_3809_ == 0) +{ +v___x_3802_ = v___y_3799_; +v_isShared_3803_ = v_isSharedCheck_3809_; +goto v_resetjp_3801_; +} +else +{ +lean_inc(v_a_3800_); +lean_dec(v___y_3799_); +v___x_3802_ = lean_box(0); +v_isShared_3803_ = v_isSharedCheck_3809_; +goto v_resetjp_3801_; +} +v_resetjp_3801_: +{ +if (lean_obj_tag(v_a_3800_) == 0) +{ +lean_object* v_a_3804_; lean_object* v___x_3806_; +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3804_ = lean_ctor_get(v_a_3800_, 0); +lean_inc(v_a_3804_); +lean_dec_ref(v_a_3800_); +if (v_isShared_3803_ == 0) +{ +lean_ctor_set(v___x_3802_, 0, v_a_3804_); +v___x_3806_ = v___x_3802_; +goto v_reusejp_3805_; +} +else +{ +lean_object* v_reuseFailAlloc_3807_; +v_reuseFailAlloc_3807_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3807_, 0, v_a_3804_); +v___x_3806_ = v_reuseFailAlloc_3807_; +goto v_reusejp_3805_; +} +v_reusejp_3805_: +{ +return v___x_3806_; +} +} +else +{ +lean_object* v_a_3808_; +lean_del_object(v___x_3802_); +v_a_3808_ = lean_ctor_get(v_a_3800_, 0); +lean_inc(v_a_3808_); +lean_dec_ref(v_a_3800_); +v_a_3794_ = v_a_3808_; +goto v___jp_3793_; +} +} +} +else +{ +lean_object* v_a_3810_; lean_object* v___x_3812_; uint8_t v_isShared_3813_; uint8_t v_isSharedCheck_3817_; +lean_dec(v_a_3786_); +lean_dec_ref(v_expectedType_3785_); +lean_dec(v_val_3784_); +v_a_3810_ = lean_ctor_get(v___y_3799_, 0); +v_isSharedCheck_3817_ = !lean_is_exclusive(v___y_3799_); +if (v_isSharedCheck_3817_ == 0) +{ +v___x_3812_ = v___y_3799_; +v_isShared_3813_ = v_isSharedCheck_3817_; +goto v_resetjp_3811_; +} +else +{ +lean_inc(v_a_3810_); +lean_dec(v___y_3799_); +v___x_3812_ = lean_box(0); +v_isShared_3813_ = v_isSharedCheck_3817_; +goto v_resetjp_3811_; +} +v_resetjp_3811_: +{ +lean_object* v___x_3815_; +if (v_isShared_3813_ == 0) +{ +v___x_3815_ = v___x_3812_; +goto v_reusejp_3814_; +} +else +{ +lean_object* v_reuseFailAlloc_3816_; +v_reuseFailAlloc_3816_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3816_, 0, v_a_3810_); +v___x_3815_ = v_reuseFailAlloc_3816_; +goto v_reusejp_3814_; +} +v_reusejp_3814_: +{ +return v___x_3815_; } } } } } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22(lean_object* v_inst_4094_, lean_object* v_expectedType_4095_, uint8_t v___x_4096_, uint8_t v___x_4097_, uint8_t v_compile_4098_, uint8_t v_logCompileErrors_4099_, uint8_t v_isMeta_4100_, lean_object* v_val_4101_, lean_object* v_x_4102_, lean_object* v_x_4103_, lean_object* v_x_4104_, lean_object* v___y_4105_, lean_object* v___y_4106_, lean_object* v___y_4107_, lean_object* v___y_4108_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21(lean_object* v_inst_4024_, lean_object* v_expectedType_4025_, uint8_t v___x_4026_, uint8_t v___x_4027_, uint8_t v_compile_4028_, uint8_t v_logCompileErrors_4029_, uint8_t v_isMeta_4030_, lean_object* v_val_4031_, lean_object* v_x_4032_, lean_object* v_x_4033_, lean_object* v_x_4034_, lean_object* v___y_4035_, lean_object* v___y_4036_, lean_object* v___y_4037_, lean_object* v___y_4038_){ _start: { -lean_object* v___y_4111_; lean_object* v___y_4112_; lean_object* v___y_4113_; lean_object* v___y_4114_; lean_object* v___y_4133_; lean_object* v___y_4134_; lean_object* v___y_4135_; lean_object* v___y_4136_; lean_object* v___y_4150_; lean_object* v___y_4151_; lean_object* v___y_4152_; lean_object* v_options_4153_; lean_object* v___y_4154_; -if (lean_obj_tag(v_x_4102_) == 5) +lean_object* v___y_4041_; lean_object* v___y_4042_; lean_object* v___y_4043_; lean_object* v___y_4044_; lean_object* v___y_4063_; lean_object* v___y_4064_; lean_object* v___y_4065_; lean_object* v___y_4066_; lean_object* v___y_4080_; lean_object* v___y_4081_; lean_object* v___y_4082_; lean_object* v_options_4083_; lean_object* v___y_4084_; +if (lean_obj_tag(v_x_4032_) == 5) { -lean_object* v_fn_4220_; lean_object* v_arg_4221_; lean_object* v___x_4222_; lean_object* v___x_4223_; lean_object* v___x_4224_; -v_fn_4220_ = lean_ctor_get(v_x_4102_, 0); -lean_inc_ref(v_fn_4220_); -v_arg_4221_ = lean_ctor_get(v_x_4102_, 1); -lean_inc_ref(v_arg_4221_); -lean_dec_ref(v_x_4102_); -v___x_4222_ = lean_array_set(v_x_4103_, v_x_4104_, v_arg_4221_); -v___x_4223_ = lean_unsigned_to_nat(1u); -v___x_4224_ = lean_nat_sub(v_x_4104_, v___x_4223_); -lean_dec(v_x_4104_); -v_x_4102_ = v_fn_4220_; -v_x_4103_ = v___x_4222_; -v_x_4104_ = v___x_4224_; +lean_object* v_fn_4149_; lean_object* v_arg_4150_; lean_object* v___x_4151_; lean_object* v___x_4152_; lean_object* v___x_4153_; +v_fn_4149_ = lean_ctor_get(v_x_4032_, 0); +lean_inc_ref(v_fn_4149_); +v_arg_4150_ = lean_ctor_get(v_x_4032_, 1); +lean_inc_ref(v_arg_4150_); +lean_dec_ref(v_x_4032_); +v___x_4151_ = lean_array_set(v_x_4033_, v_x_4034_, v_arg_4150_); +v___x_4152_ = lean_unsigned_to_nat(1u); +v___x_4153_ = lean_nat_sub(v_x_4034_, v___x_4152_); +lean_dec(v_x_4034_); +v_x_4032_ = v_fn_4149_; +v_x_4033_ = v___x_4151_; +v_x_4034_ = v___x_4153_; goto _start; } else { -lean_object* v_cls_4226_; lean_object* v___y_4228_; lean_object* v___y_4229_; lean_object* v___y_4230_; lean_object* v___y_4231_; lean_object* v___x_4249_; -lean_dec(v_x_4104_); -v_cls_4226_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_4249_ = l_Lean_Expr_constName_x3f(v_x_4102_); -if (lean_obj_tag(v___x_4249_) == 0) +lean_object* v_cls_4155_; lean_object* v___y_4157_; lean_object* v___y_4158_; lean_object* v___y_4159_; lean_object* v___y_4160_; lean_object* v___x_4178_; +lean_dec(v_x_4034_); +v_cls_4155_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_4178_ = l_Lean_Expr_constName_x3f(v_x_4032_); +if (lean_obj_tag(v___x_4178_) == 0) { -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -v___y_4228_ = v___y_4105_; -v___y_4229_ = v___y_4106_; -v___y_4230_ = v___y_4107_; -v___y_4231_ = v___y_4108_; -goto v___jp_4227_; +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +v___y_4157_ = v___y_4035_; +v___y_4158_ = v___y_4036_; +v___y_4159_ = v___y_4037_; +v___y_4160_ = v___y_4038_; +goto v___jp_4156_; } else { -lean_object* v_val_4250_; lean_object* v___x_4251_; -v_val_4250_ = lean_ctor_get(v___x_4249_, 0); -lean_inc(v_val_4250_); -lean_dec_ref(v___x_4249_); -v___x_4251_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_4250_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); +lean_object* v_val_4179_; lean_object* v___x_4180_; +v_val_4179_ = lean_ctor_get(v___x_4178_, 0); +lean_inc(v_val_4179_); +lean_dec_ref(v___x_4178_); +v___x_4180_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_4179_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); +if (lean_obj_tag(v___x_4180_) == 0) +{ +lean_object* v_a_4181_; +v_a_4181_ = lean_ctor_get(v___x_4180_, 0); +lean_inc(v_a_4181_); +lean_dec_ref(v___x_4180_); +if (lean_obj_tag(v_a_4181_) == 6) +{ +lean_object* v_val_4182_; lean_object* v___x_4183_; +lean_dec_ref(v_inst_4024_); +v_val_4182_ = lean_ctor_get(v_a_4181_, 0); +lean_inc_ref(v_val_4182_); +lean_dec_ref(v_a_4181_); +lean_inc(v___y_4038_); +lean_inc_ref(v___y_4037_); +lean_inc(v___y_4036_); +lean_inc_ref(v___y_4035_); +lean_inc_ref(v_x_4032_); +v___x_4183_ = lean_infer_type(v_x_4032_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); +if (lean_obj_tag(v___x_4183_) == 0) +{ +lean_object* v_a_4184_; uint8_t v___x_4185_; lean_object* v___x_4186_; +v_a_4184_ = lean_ctor_get(v___x_4183_, 0); +lean_inc(v_a_4184_); +lean_dec_ref(v___x_4183_); +v___x_4185_ = 0; +v___x_4186_ = l_Lean_Meta_forallMetaTelescope(v_a_4184_, v___x_4185_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); +if (lean_obj_tag(v___x_4186_) == 0) +{ +lean_object* v_a_4187_; lean_object* v_snd_4188_; lean_object* v_fst_4189_; lean_object* v___x_4191_; uint8_t v_isShared_4192_; uint8_t v_isSharedCheck_4288_; +v_a_4187_ = lean_ctor_get(v___x_4186_, 0); +lean_inc(v_a_4187_); +lean_dec_ref(v___x_4186_); +v_snd_4188_ = lean_ctor_get(v_a_4187_, 1); +v_fst_4189_ = lean_ctor_get(v_a_4187_, 0); +v_isSharedCheck_4288_ = !lean_is_exclusive(v_a_4187_); +if (v_isSharedCheck_4288_ == 0) +{ +v___x_4191_ = v_a_4187_; +v_isShared_4192_ = v_isSharedCheck_4288_; +goto v_resetjp_4190_; +} +else +{ +lean_inc(v_snd_4188_); +lean_inc(v_fst_4189_); +lean_dec(v_a_4187_); +v___x_4191_ = lean_box(0); +v_isShared_4192_ = v_isSharedCheck_4288_; +goto v_resetjp_4190_; +} +v_resetjp_4190_: +{ +lean_object* v_snd_4193_; lean_object* v___x_4195_; uint8_t v_isShared_4196_; uint8_t v_isSharedCheck_4286_; +v_snd_4193_ = lean_ctor_get(v_snd_4188_, 1); +v_isSharedCheck_4286_ = !lean_is_exclusive(v_snd_4188_); +if (v_isSharedCheck_4286_ == 0) +{ +lean_object* v_unused_4287_; +v_unused_4287_ = lean_ctor_get(v_snd_4188_, 0); +lean_dec(v_unused_4287_); +v___x_4195_ = v_snd_4188_; +v_isShared_4196_ = v_isSharedCheck_4286_; +goto v_resetjp_4194_; +} +else +{ +lean_inc(v_snd_4193_); +lean_dec(v_snd_4188_); +v___x_4195_ = lean_box(0); +v_isShared_4196_ = v_isSharedCheck_4286_; +goto v_resetjp_4194_; +} +v_resetjp_4194_: +{ +lean_object* v___x_4197_; lean_object* v___y_4199_; lean_object* v___y_4200_; lean_object* v___y_4201_; lean_object* v___y_4202_; lean_object* v___x_4234_; uint8_t v___x_4235_; +v___x_4197_ = lean_array_get_size(v_x_4033_); +v___x_4234_ = lean_array_get_size(v_fst_4189_); +v___x_4235_ = lean_nat_dec_eq(v___x_4197_, v___x_4234_); +if (v___x_4235_ == 0) +{ +lean_object* v___x_4236_; lean_object* v___x_4237_; lean_object* v___x_4239_; +lean_dec(v_snd_4193_); +lean_dec(v_fst_4189_); +lean_dec_ref(v_val_4182_); +lean_dec(v_val_4031_); +lean_dec_ref(v_expectedType_4025_); +v___x_4236_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_4237_ = l_Lean_MessageData_ofExpr(v_x_4032_); +if (v_isShared_4196_ == 0) +{ +lean_ctor_set_tag(v___x_4195_, 7); +lean_ctor_set(v___x_4195_, 1, v___x_4237_); +lean_ctor_set(v___x_4195_, 0, v___x_4236_); +v___x_4239_ = v___x_4195_; +goto v_reusejp_4238_; +} +else +{ +lean_object* v_reuseFailAlloc_4250_; +v_reuseFailAlloc_4250_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4250_, 0, v___x_4236_); +lean_ctor_set(v_reuseFailAlloc_4250_, 1, v___x_4237_); +v___x_4239_ = v_reuseFailAlloc_4250_; +goto v_reusejp_4238_; +} +v_reusejp_4238_: +{ +lean_object* v___x_4240_; lean_object* v___x_4242_; +v___x_4240_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_4192_ == 0) +{ +lean_ctor_set_tag(v___x_4191_, 7); +lean_ctor_set(v___x_4191_, 1, v___x_4240_); +lean_ctor_set(v___x_4191_, 0, v___x_4239_); +v___x_4242_ = v___x_4191_; +goto v_reusejp_4241_; +} +else +{ +lean_object* v_reuseFailAlloc_4249_; +v_reuseFailAlloc_4249_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4249_, 0, v___x_4239_); +lean_ctor_set(v_reuseFailAlloc_4249_, 1, v___x_4240_); +v___x_4242_ = v_reuseFailAlloc_4249_; +goto v_reusejp_4241_; +} +v_reusejp_4241_: +{ +lean_object* v___x_4243_; lean_object* v___x_4244_; lean_object* v___x_4245_; lean_object* v___x_4246_; lean_object* v___x_4247_; lean_object* v___x_4248_; +v___x_4243_ = lean_array_to_list(v_x_4033_); +v___x_4244_ = lean_box(0); +v___x_4245_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_4243_, v___x_4244_); +v___x_4246_ = l_Lean_MessageData_ofList(v___x_4245_); +v___x_4247_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4247_, 0, v___x_4242_); +lean_ctor_set(v___x_4247_, 1, v___x_4246_); +v___x_4248_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4247_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); +return v___x_4248_; +} +} +} +else +{ +lean_object* v___x_4251_; +lean_inc_ref(v_expectedType_4025_); +v___x_4251_ = l_Lean_Meta_isExprDefEq(v_expectedType_4025_, v_snd_4193_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); if (lean_obj_tag(v___x_4251_) == 0) { -lean_object* v_a_4252_; +lean_object* v_a_4252_; uint8_t v___x_4253_; v_a_4252_ = lean_ctor_get(v___x_4251_, 0); lean_inc(v_a_4252_); lean_dec_ref(v___x_4251_); -if (lean_obj_tag(v_a_4252_) == 6) +v___x_4253_ = lean_unbox(v_a_4252_); +lean_dec(v_a_4252_); +if (v___x_4253_ == 0) { -lean_object* v_val_4253_; lean_object* v___x_4254_; -lean_dec_ref(v_inst_4094_); -v_val_4253_ = lean_ctor_get(v_a_4252_, 0); -lean_inc_ref(v_val_4253_); -lean_dec_ref(v_a_4252_); -lean_inc(v___y_4108_); -lean_inc_ref(v___y_4107_); -lean_inc(v___y_4106_); -lean_inc_ref(v___y_4105_); -lean_inc_ref(v_x_4102_); -v___x_4254_ = lean_infer_type(v_x_4102_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); -if (lean_obj_tag(v___x_4254_) == 0) +lean_object* v_toConstantVal_4254_; lean_object* v_name_4255_; lean_object* v___x_4256_; lean_object* v___x_4257_; lean_object* v___x_4259_; +lean_dec(v_fst_4189_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +v_toConstantVal_4254_ = lean_ctor_get(v_val_4182_, 0); +lean_inc_ref(v_toConstantVal_4254_); +lean_dec_ref(v_val_4182_); +v_name_4255_ = lean_ctor_get(v_toConstantVal_4254_, 0); +lean_inc(v_name_4255_); +lean_dec_ref(v_toConstantVal_4254_); +v___x_4256_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_4257_ = l_Lean_MessageData_ofExpr(v_expectedType_4025_); +if (v_isShared_4196_ == 0) { -lean_object* v_a_4255_; uint8_t v___x_4256_; lean_object* v___x_4257_; -v_a_4255_ = lean_ctor_get(v___x_4254_, 0); -lean_inc(v_a_4255_); -lean_dec_ref(v___x_4254_); -v___x_4256_ = 0; -v___x_4257_ = l_Lean_Meta_forallMetaTelescope(v_a_4255_, v___x_4256_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); -if (lean_obj_tag(v___x_4257_) == 0) -{ -lean_object* v_a_4258_; lean_object* v_snd_4259_; lean_object* v_fst_4260_; lean_object* v___x_4262_; uint8_t v_isShared_4263_; uint8_t v_isSharedCheck_4359_; -v_a_4258_ = lean_ctor_get(v___x_4257_, 0); -lean_inc(v_a_4258_); -lean_dec_ref(v___x_4257_); -v_snd_4259_ = lean_ctor_get(v_a_4258_, 1); -v_fst_4260_ = lean_ctor_get(v_a_4258_, 0); -v_isSharedCheck_4359_ = !lean_is_exclusive(v_a_4258_); -if (v_isSharedCheck_4359_ == 0) -{ -v___x_4262_ = v_a_4258_; -v_isShared_4263_ = v_isSharedCheck_4359_; -goto v_resetjp_4261_; +lean_ctor_set_tag(v___x_4195_, 7); +lean_ctor_set(v___x_4195_, 1, v___x_4257_); +lean_ctor_set(v___x_4195_, 0, v___x_4256_); +v___x_4259_ = v___x_4195_; +goto v_reusejp_4258_; } else { -lean_inc(v_snd_4259_); -lean_inc(v_fst_4260_); -lean_dec(v_a_4258_); -v___x_4262_ = lean_box(0); -v_isShared_4263_ = v_isSharedCheck_4359_; -goto v_resetjp_4261_; +lean_object* v_reuseFailAlloc_4277_; +v_reuseFailAlloc_4277_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4277_, 0, v___x_4256_); +lean_ctor_set(v_reuseFailAlloc_4277_, 1, v___x_4257_); +v___x_4259_ = v_reuseFailAlloc_4277_; +goto v_reusejp_4258_; } -v_resetjp_4261_: +v_reusejp_4258_: { -lean_object* v_snd_4264_; lean_object* v___x_4266_; uint8_t v_isShared_4267_; uint8_t v_isSharedCheck_4357_; -v_snd_4264_ = lean_ctor_get(v_snd_4259_, 1); -v_isSharedCheck_4357_ = !lean_is_exclusive(v_snd_4259_); -if (v_isSharedCheck_4357_ == 0) +lean_object* v___x_4260_; lean_object* v___x_4262_; +v___x_4260_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_4192_ == 0) { -lean_object* v_unused_4358_; -v_unused_4358_ = lean_ctor_get(v_snd_4259_, 0); -lean_dec(v_unused_4358_); -v___x_4266_ = v_snd_4259_; -v_isShared_4267_ = v_isSharedCheck_4357_; -goto v_resetjp_4265_; +lean_ctor_set_tag(v___x_4191_, 7); +lean_ctor_set(v___x_4191_, 1, v___x_4260_); +lean_ctor_set(v___x_4191_, 0, v___x_4259_); +v___x_4262_ = v___x_4191_; +goto v_reusejp_4261_; } else { -lean_inc(v_snd_4264_); -lean_dec(v_snd_4259_); -v___x_4266_ = lean_box(0); -v_isShared_4267_ = v_isSharedCheck_4357_; -goto v_resetjp_4265_; +lean_object* v_reuseFailAlloc_4276_; +v_reuseFailAlloc_4276_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4276_, 0, v___x_4259_); +lean_ctor_set(v_reuseFailAlloc_4276_, 1, v___x_4260_); +v___x_4262_ = v_reuseFailAlloc_4276_; +goto v_reusejp_4261_; } -v_resetjp_4265_: +v_reusejp_4261_: { -lean_object* v___x_4268_; lean_object* v___y_4270_; lean_object* v___y_4271_; lean_object* v___y_4272_; lean_object* v___y_4273_; lean_object* v___x_4305_; uint8_t v___x_4306_; -v___x_4268_ = lean_array_get_size(v_x_4103_); -v___x_4305_ = lean_array_get_size(v_fst_4260_); -v___x_4306_ = lean_nat_dec_eq(v___x_4268_, v___x_4305_); -if (v___x_4306_ == 0) +lean_object* v___x_4263_; lean_object* v___x_4264_; lean_object* v___x_4265_; lean_object* v___x_4266_; lean_object* v___x_4267_; lean_object* v_a_4268_; lean_object* v___x_4270_; uint8_t v_isShared_4271_; uint8_t v_isSharedCheck_4275_; +v___x_4263_ = l_Lean_MessageData_ofConstName(v_name_4255_, v___x_4026_); +v___x_4264_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4264_, 0, v___x_4262_); +lean_ctor_set(v___x_4264_, 1, v___x_4263_); +v___x_4265_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_4266_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4266_, 0, v___x_4264_); +lean_ctor_set(v___x_4266_, 1, v___x_4265_); +v___x_4267_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4266_, v___y_4035_, v___y_4036_, v___y_4037_, v___y_4038_); +v_a_4268_ = lean_ctor_get(v___x_4267_, 0); +v_isSharedCheck_4275_ = !lean_is_exclusive(v___x_4267_); +if (v_isSharedCheck_4275_ == 0) { -lean_object* v___x_4307_; lean_object* v___x_4308_; lean_object* v___x_4310_; -lean_dec(v_snd_4264_); -lean_dec(v_fst_4260_); -lean_dec_ref(v_val_4253_); -lean_dec(v_val_4101_); -lean_dec_ref(v_expectedType_4095_); -v___x_4307_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_4308_ = l_Lean_MessageData_ofExpr(v_x_4102_); -if (v_isShared_4267_ == 0) -{ -lean_ctor_set_tag(v___x_4266_, 7); -lean_ctor_set(v___x_4266_, 1, v___x_4308_); -lean_ctor_set(v___x_4266_, 0, v___x_4307_); -v___x_4310_ = v___x_4266_; -goto v_reusejp_4309_; +v___x_4270_ = v___x_4267_; +v_isShared_4271_ = v_isSharedCheck_4275_; +goto v_resetjp_4269_; } else { -lean_object* v_reuseFailAlloc_4321_; -v_reuseFailAlloc_4321_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4321_, 0, v___x_4307_); -lean_ctor_set(v_reuseFailAlloc_4321_, 1, v___x_4308_); -v___x_4310_ = v_reuseFailAlloc_4321_; -goto v_reusejp_4309_; +lean_inc(v_a_4268_); +lean_dec(v___x_4267_); +v___x_4270_ = lean_box(0); +v_isShared_4271_ = v_isSharedCheck_4275_; +goto v_resetjp_4269_; } -v_reusejp_4309_: +v_resetjp_4269_: { -lean_object* v___x_4311_; lean_object* v___x_4313_; -v___x_4311_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_4263_ == 0) +lean_object* v___x_4273_; +if (v_isShared_4271_ == 0) { -lean_ctor_set_tag(v___x_4262_, 7); -lean_ctor_set(v___x_4262_, 1, v___x_4311_); -lean_ctor_set(v___x_4262_, 0, v___x_4310_); -v___x_4313_ = v___x_4262_; -goto v_reusejp_4312_; +v___x_4273_ = v___x_4270_; +goto v_reusejp_4272_; } else { -lean_object* v_reuseFailAlloc_4320_; -v_reuseFailAlloc_4320_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4320_, 0, v___x_4310_); -lean_ctor_set(v_reuseFailAlloc_4320_, 1, v___x_4311_); -v___x_4313_ = v_reuseFailAlloc_4320_; -goto v_reusejp_4312_; +lean_object* v_reuseFailAlloc_4274_; +v_reuseFailAlloc_4274_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4274_, 0, v_a_4268_); +v___x_4273_ = v_reuseFailAlloc_4274_; +goto v_reusejp_4272_; } -v_reusejp_4312_: +v_reusejp_4272_: { -lean_object* v___x_4314_; lean_object* v___x_4315_; lean_object* v___x_4316_; lean_object* v___x_4317_; lean_object* v___x_4318_; lean_object* v___x_4319_; -v___x_4314_ = lean_array_to_list(v_x_4103_); -v___x_4315_ = lean_box(0); -v___x_4316_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_4314_, v___x_4315_); -v___x_4317_ = l_Lean_MessageData_ofList(v___x_4316_); -v___x_4318_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4318_, 0, v___x_4313_); -lean_ctor_set(v___x_4318_, 1, v___x_4317_); -v___x_4319_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4318_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); -return v___x_4319_; -} -} -} -else -{ -lean_object* v___x_4322_; -lean_inc_ref(v_expectedType_4095_); -v___x_4322_ = l_Lean_Meta_isExprDefEq(v_expectedType_4095_, v_snd_4264_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); -if (lean_obj_tag(v___x_4322_) == 0) -{ -lean_object* v_a_4323_; uint8_t v___x_4324_; -v_a_4323_ = lean_ctor_get(v___x_4322_, 0); -lean_inc(v_a_4323_); -lean_dec_ref(v___x_4322_); -v___x_4324_ = lean_unbox(v_a_4323_); -lean_dec(v_a_4323_); -if (v___x_4324_ == 0) -{ -lean_object* v_toConstantVal_4325_; lean_object* v_name_4326_; lean_object* v___x_4327_; lean_object* v___x_4328_; lean_object* v___x_4330_; -lean_dec(v_fst_4260_); -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -v_toConstantVal_4325_ = lean_ctor_get(v_val_4253_, 0); -lean_inc_ref(v_toConstantVal_4325_); -lean_dec_ref(v_val_4253_); -v_name_4326_ = lean_ctor_get(v_toConstantVal_4325_, 0); -lean_inc(v_name_4326_); -lean_dec_ref(v_toConstantVal_4325_); -v___x_4327_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_4328_ = l_Lean_MessageData_ofExpr(v_expectedType_4095_); -if (v_isShared_4267_ == 0) -{ -lean_ctor_set_tag(v___x_4266_, 7); -lean_ctor_set(v___x_4266_, 1, v___x_4328_); -lean_ctor_set(v___x_4266_, 0, v___x_4327_); -v___x_4330_ = v___x_4266_; -goto v_reusejp_4329_; -} -else -{ -lean_object* v_reuseFailAlloc_4348_; -v_reuseFailAlloc_4348_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4348_, 0, v___x_4327_); -lean_ctor_set(v_reuseFailAlloc_4348_, 1, v___x_4328_); -v___x_4330_ = v_reuseFailAlloc_4348_; -goto v_reusejp_4329_; -} -v_reusejp_4329_: -{ -lean_object* v___x_4331_; lean_object* v___x_4333_; -v___x_4331_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_4263_ == 0) -{ -lean_ctor_set_tag(v___x_4262_, 7); -lean_ctor_set(v___x_4262_, 1, v___x_4331_); -lean_ctor_set(v___x_4262_, 0, v___x_4330_); -v___x_4333_ = v___x_4262_; -goto v_reusejp_4332_; -} -else -{ -lean_object* v_reuseFailAlloc_4347_; -v_reuseFailAlloc_4347_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4347_, 0, v___x_4330_); -lean_ctor_set(v_reuseFailAlloc_4347_, 1, v___x_4331_); -v___x_4333_ = v_reuseFailAlloc_4347_; -goto v_reusejp_4332_; -} -v_reusejp_4332_: -{ -lean_object* v___x_4334_; lean_object* v___x_4335_; lean_object* v___x_4336_; lean_object* v___x_4337_; lean_object* v___x_4338_; lean_object* v_a_4339_; lean_object* v___x_4341_; uint8_t v_isShared_4342_; uint8_t v_isSharedCheck_4346_; -v___x_4334_ = l_Lean_MessageData_ofConstName(v_name_4326_, v___x_4096_); -v___x_4335_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4335_, 0, v___x_4333_); -lean_ctor_set(v___x_4335_, 1, v___x_4334_); -v___x_4336_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_4337_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4337_, 0, v___x_4335_); -lean_ctor_set(v___x_4337_, 1, v___x_4336_); -v___x_4338_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4337_, v___y_4105_, v___y_4106_, v___y_4107_, v___y_4108_); -v_a_4339_ = lean_ctor_get(v___x_4338_, 0); -v_isSharedCheck_4346_ = !lean_is_exclusive(v___x_4338_); -if (v_isSharedCheck_4346_ == 0) -{ -v___x_4341_ = v___x_4338_; -v_isShared_4342_ = v_isSharedCheck_4346_; -goto v_resetjp_4340_; -} -else -{ -lean_inc(v_a_4339_); -lean_dec(v___x_4338_); -v___x_4341_ = lean_box(0); -v_isShared_4342_ = v_isSharedCheck_4346_; -goto v_resetjp_4340_; -} -v_resetjp_4340_: -{ -lean_object* v___x_4344_; -if (v_isShared_4342_ == 0) -{ -v___x_4344_ = v___x_4341_; -goto v_reusejp_4343_; -} -else -{ -lean_object* v_reuseFailAlloc_4345_; -v_reuseFailAlloc_4345_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4345_, 0, v_a_4339_); -v___x_4344_ = v_reuseFailAlloc_4345_; -goto v_reusejp_4343_; -} -v_reusejp_4343_: -{ -return v___x_4344_; +return v___x_4273_; } } } @@ -15298,141 +15125,235 @@ return v___x_4344_; } else { -lean_del_object(v___x_4266_); -lean_del_object(v___x_4262_); -v___y_4270_ = v___y_4105_; -v___y_4271_ = v___y_4106_; -v___y_4272_ = v___y_4107_; -v___y_4273_ = v___y_4108_; -goto v___jp_4269_; +lean_del_object(v___x_4195_); +lean_del_object(v___x_4191_); +v___y_4199_ = v___y_4035_; +v___y_4200_ = v___y_4036_; +v___y_4201_ = v___y_4037_; +v___y_4202_ = v___y_4038_; +goto v___jp_4198_; } } else { -lean_object* v_a_4349_; lean_object* v___x_4351_; uint8_t v_isShared_4352_; uint8_t v_isSharedCheck_4356_; -lean_del_object(v___x_4266_); -lean_del_object(v___x_4262_); -lean_dec(v_fst_4260_); -lean_dec_ref(v_val_4253_); -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -lean_dec_ref(v_expectedType_4095_); -v_a_4349_ = lean_ctor_get(v___x_4322_, 0); -v_isSharedCheck_4356_ = !lean_is_exclusive(v___x_4322_); -if (v_isSharedCheck_4356_ == 0) +lean_object* v_a_4278_; lean_object* v___x_4280_; uint8_t v_isShared_4281_; uint8_t v_isSharedCheck_4285_; +lean_del_object(v___x_4195_); +lean_del_object(v___x_4191_); +lean_dec(v_fst_4189_); +lean_dec_ref(v_val_4182_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +lean_dec_ref(v_expectedType_4025_); +v_a_4278_ = lean_ctor_get(v___x_4251_, 0); +v_isSharedCheck_4285_ = !lean_is_exclusive(v___x_4251_); +if (v_isSharedCheck_4285_ == 0) { -v___x_4351_ = v___x_4322_; -v_isShared_4352_ = v_isSharedCheck_4356_; -goto v_resetjp_4350_; +v___x_4280_ = v___x_4251_; +v_isShared_4281_ = v_isSharedCheck_4285_; +goto v_resetjp_4279_; } else { -lean_inc(v_a_4349_); -lean_dec(v___x_4322_); -v___x_4351_ = lean_box(0); -v_isShared_4352_ = v_isSharedCheck_4356_; -goto v_resetjp_4350_; +lean_inc(v_a_4278_); +lean_dec(v___x_4251_); +v___x_4280_ = lean_box(0); +v_isShared_4281_ = v_isSharedCheck_4285_; +goto v_resetjp_4279_; } -v_resetjp_4350_: +v_resetjp_4279_: { -lean_object* v___x_4354_; -if (v_isShared_4352_ == 0) +lean_object* v___x_4283_; +if (v_isShared_4281_ == 0) { -v___x_4354_ = v___x_4351_; -goto v_reusejp_4353_; +v___x_4283_ = v___x_4280_; +goto v_reusejp_4282_; } else { -lean_object* v_reuseFailAlloc_4355_; -v_reuseFailAlloc_4355_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4355_, 0, v_a_4349_); -v___x_4354_ = v_reuseFailAlloc_4355_; -goto v_reusejp_4353_; +lean_object* v_reuseFailAlloc_4284_; +v_reuseFailAlloc_4284_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4284_, 0, v_a_4278_); +v___x_4283_ = v_reuseFailAlloc_4284_; +goto v_reusejp_4282_; } -v_reusejp_4353_: +v_reusejp_4282_: { -return v___x_4354_; +return v___x_4283_; } } } } -v___jp_4269_: +v___jp_4198_: { -lean_object* v_numParams_4274_; lean_object* v___x_4275_; lean_object* v___x_4276_; -v_numParams_4274_ = lean_ctor_get(v_val_4253_, 3); -lean_inc(v_numParams_4274_); -lean_dec_ref(v_val_4253_); -v___x_4275_ = lean_box(0); -v___x_4276_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(v___x_4268_, v_fst_4260_, v_x_4103_, v___x_4097_, v_compile_4098_, v_logCompileErrors_4099_, v___x_4096_, v_isMeta_4100_, v_val_4101_, v_expectedType_4095_, v_numParams_4274_, v___x_4275_, v___y_4270_, v___y_4271_, v___y_4272_, v___y_4273_); -lean_dec_ref(v_x_4103_); -if (lean_obj_tag(v___x_4276_) == 0) +lean_object* v_numParams_4203_; lean_object* v___x_4204_; lean_object* v___x_4205_; +v_numParams_4203_ = lean_ctor_get(v_val_4182_, 3); +lean_inc(v_numParams_4203_); +lean_dec_ref(v_val_4182_); +v___x_4204_ = lean_box(0); +v___x_4205_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(v___x_4197_, v_fst_4189_, v_x_4033_, v___x_4027_, v_compile_4028_, v_logCompileErrors_4029_, v___x_4026_, v_isMeta_4030_, v_val_4031_, v_expectedType_4025_, v_numParams_4203_, v___x_4204_, v___y_4199_, v___y_4200_, v___y_4201_, v___y_4202_); +lean_dec_ref(v_x_4033_); +if (lean_obj_tag(v___x_4205_) == 0) { -size_t v_sz_4277_; size_t v___x_4278_; lean_object* v___x_4279_; -lean_dec_ref(v___x_4276_); -v_sz_4277_ = lean_array_size(v_fst_4260_); -v___x_4278_ = ((size_t)0ULL); -v___x_4279_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_4277_, v___x_4278_, v_fst_4260_, v___y_4270_, v___y_4271_, v___y_4272_, v___y_4273_); -if (lean_obj_tag(v___x_4279_) == 0) +size_t v_sz_4206_; size_t v___x_4207_; lean_object* v___x_4208_; +lean_dec_ref(v___x_4205_); +v_sz_4206_ = lean_array_size(v_fst_4189_); +v___x_4207_ = ((size_t)0ULL); +v___x_4208_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_4206_, v___x_4207_, v_fst_4189_, v___y_4199_, v___y_4200_, v___y_4201_, v___y_4202_); +if (lean_obj_tag(v___x_4208_) == 0) { -lean_object* v_a_4280_; lean_object* v___x_4282_; uint8_t v_isShared_4283_; uint8_t v_isSharedCheck_4288_; -v_a_4280_ = lean_ctor_get(v___x_4279_, 0); -v_isSharedCheck_4288_ = !lean_is_exclusive(v___x_4279_); -if (v_isSharedCheck_4288_ == 0) +lean_object* v_a_4209_; lean_object* v___x_4211_; uint8_t v_isShared_4212_; uint8_t v_isSharedCheck_4217_; +v_a_4209_ = lean_ctor_get(v___x_4208_, 0); +v_isSharedCheck_4217_ = !lean_is_exclusive(v___x_4208_); +if (v_isSharedCheck_4217_ == 0) { -v___x_4282_ = v___x_4279_; -v_isShared_4283_ = v_isSharedCheck_4288_; -goto v_resetjp_4281_; +v___x_4211_ = v___x_4208_; +v_isShared_4212_ = v_isSharedCheck_4217_; +goto v_resetjp_4210_; } else { -lean_inc(v_a_4280_); -lean_dec(v___x_4279_); -v___x_4282_ = lean_box(0); -v_isShared_4283_ = v_isSharedCheck_4288_; -goto v_resetjp_4281_; +lean_inc(v_a_4209_); +lean_dec(v___x_4208_); +v___x_4211_ = lean_box(0); +v_isShared_4212_ = v_isSharedCheck_4217_; +goto v_resetjp_4210_; } -v_resetjp_4281_: +v_resetjp_4210_: { -lean_object* v___x_4284_; lean_object* v___x_4286_; -v___x_4284_ = l_Lean_mkAppN(v_x_4102_, v_a_4280_); -lean_dec(v_a_4280_); -if (v_isShared_4283_ == 0) +lean_object* v___x_4213_; lean_object* v___x_4215_; +v___x_4213_ = l_Lean_mkAppN(v_x_4032_, v_a_4209_); +lean_dec(v_a_4209_); +if (v_isShared_4212_ == 0) { -lean_ctor_set(v___x_4282_, 0, v___x_4284_); -v___x_4286_ = v___x_4282_; -goto v_reusejp_4285_; +lean_ctor_set(v___x_4211_, 0, v___x_4213_); +v___x_4215_ = v___x_4211_; +goto v_reusejp_4214_; } else { -lean_object* v_reuseFailAlloc_4287_; -v_reuseFailAlloc_4287_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4287_, 0, v___x_4284_); -v___x_4286_ = v_reuseFailAlloc_4287_; -goto v_reusejp_4285_; +lean_object* v_reuseFailAlloc_4216_; +v_reuseFailAlloc_4216_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4216_, 0, v___x_4213_); +v___x_4215_ = v_reuseFailAlloc_4216_; +goto v_reusejp_4214_; } -v_reusejp_4285_: +v_reusejp_4214_: { -return v___x_4286_; +return v___x_4215_; +} +} +} +else +{ +lean_object* v_a_4218_; lean_object* v___x_4220_; uint8_t v_isShared_4221_; uint8_t v_isSharedCheck_4225_; +lean_dec_ref(v_x_4032_); +v_a_4218_ = lean_ctor_get(v___x_4208_, 0); +v_isSharedCheck_4225_ = !lean_is_exclusive(v___x_4208_); +if (v_isSharedCheck_4225_ == 0) +{ +v___x_4220_ = v___x_4208_; +v_isShared_4221_ = v_isSharedCheck_4225_; +goto v_resetjp_4219_; +} +else +{ +lean_inc(v_a_4218_); +lean_dec(v___x_4208_); +v___x_4220_ = lean_box(0); +v_isShared_4221_ = v_isSharedCheck_4225_; +goto v_resetjp_4219_; +} +v_resetjp_4219_: +{ +lean_object* v___x_4223_; +if (v_isShared_4221_ == 0) +{ +v___x_4223_ = v___x_4220_; +goto v_reusejp_4222_; +} +else +{ +lean_object* v_reuseFailAlloc_4224_; +v_reuseFailAlloc_4224_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4224_, 0, v_a_4218_); +v___x_4223_ = v_reuseFailAlloc_4224_; +goto v_reusejp_4222_; +} +v_reusejp_4222_: +{ +return v___x_4223_; +} +} +} +} +else +{ +lean_object* v_a_4226_; lean_object* v___x_4228_; uint8_t v_isShared_4229_; uint8_t v_isSharedCheck_4233_; +lean_dec(v_fst_4189_); +lean_dec_ref(v_x_4032_); +v_a_4226_ = lean_ctor_get(v___x_4205_, 0); +v_isSharedCheck_4233_ = !lean_is_exclusive(v___x_4205_); +if (v_isSharedCheck_4233_ == 0) +{ +v___x_4228_ = v___x_4205_; +v_isShared_4229_ = v_isSharedCheck_4233_; +goto v_resetjp_4227_; +} +else +{ +lean_inc(v_a_4226_); +lean_dec(v___x_4205_); +v___x_4228_ = lean_box(0); +v_isShared_4229_ = v_isSharedCheck_4233_; +goto v_resetjp_4227_; +} +v_resetjp_4227_: +{ +lean_object* v___x_4231_; +if (v_isShared_4229_ == 0) +{ +v___x_4231_ = v___x_4228_; +goto v_reusejp_4230_; +} +else +{ +lean_object* v_reuseFailAlloc_4232_; +v_reuseFailAlloc_4232_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4232_, 0, v_a_4226_); +v___x_4231_ = v_reuseFailAlloc_4232_; +goto v_reusejp_4230_; +} +v_reusejp_4230_: +{ +return v___x_4231_; +} +} +} +} } } } else { lean_object* v_a_4289_; lean_object* v___x_4291_; uint8_t v_isShared_4292_; uint8_t v_isSharedCheck_4296_; -lean_dec_ref(v_x_4102_); -v_a_4289_ = lean_ctor_get(v___x_4279_, 0); -v_isSharedCheck_4296_ = !lean_is_exclusive(v___x_4279_); +lean_dec_ref(v_val_4182_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +lean_dec_ref(v_expectedType_4025_); +v_a_4289_ = lean_ctor_get(v___x_4186_, 0); +v_isSharedCheck_4296_ = !lean_is_exclusive(v___x_4186_); if (v_isSharedCheck_4296_ == 0) { -v___x_4291_ = v___x_4279_; +v___x_4291_ = v___x_4186_; v_isShared_4292_ = v_isSharedCheck_4296_; goto v_resetjp_4290_; } else { lean_inc(v_a_4289_); -lean_dec(v___x_4279_); +lean_dec(v___x_4186_); v___x_4291_ = lean_box(0); v_isShared_4292_ = v_isSharedCheck_4296_; goto v_resetjp_4290_; @@ -15462,21 +15383,47 @@ return v___x_4294_; } else { +lean_dec_ref(v_val_4182_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +lean_dec_ref(v_expectedType_4025_); +return v___x_4183_; +} +} +else +{ +lean_dec(v_a_4181_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +v___y_4157_ = v___y_4035_; +v___y_4158_ = v___y_4036_; +v___y_4159_ = v___y_4037_; +v___y_4160_ = v___y_4038_; +goto v___jp_4156_; +} +} +else +{ lean_object* v_a_4297_; lean_object* v___x_4299_; uint8_t v_isShared_4300_; uint8_t v_isSharedCheck_4304_; -lean_dec(v_fst_4260_); -lean_dec_ref(v_x_4102_); -v_a_4297_ = lean_ctor_get(v___x_4276_, 0); -v_isSharedCheck_4304_ = !lean_is_exclusive(v___x_4276_); +lean_dec_ref(v_x_4033_); +lean_dec_ref(v_x_4032_); +lean_dec(v_val_4031_); +lean_dec_ref(v_expectedType_4025_); +lean_dec_ref(v_inst_4024_); +v_a_4297_ = lean_ctor_get(v___x_4180_, 0); +v_isSharedCheck_4304_ = !lean_is_exclusive(v___x_4180_); if (v_isSharedCheck_4304_ == 0) { -v___x_4299_ = v___x_4276_; +v___x_4299_ = v___x_4180_; v_isShared_4300_ = v_isSharedCheck_4304_; goto v_resetjp_4298_; } else { lean_inc(v_a_4297_); -lean_dec(v___x_4276_); +lean_dec(v___x_4180_); v___x_4299_ = lean_box(0); v_isShared_4300_ = v_isSharedCheck_4304_; goto v_resetjp_4298_; @@ -15504,356 +15451,526 @@ return v___x_4302_; } } } +v___jp_4156_: +{ +lean_object* v_options_4161_; uint8_t v_hasTrace_4162_; +v_options_4161_ = lean_ctor_get(v___y_4159_, 2); +v_hasTrace_4162_ = lean_ctor_get_uint8(v_options_4161_, sizeof(void*)*1); +if (v_hasTrace_4162_ == 0) +{ +v___y_4080_ = v___y_4157_; +v___y_4081_ = v___y_4158_; +v___y_4082_ = v___y_4159_; +v_options_4083_ = v_options_4161_; +v___y_4084_ = v___y_4160_; +goto v___jp_4079_; +} +else +{ +lean_object* v_inheritedTraceOptions_4163_; lean_object* v___x_4164_; uint8_t v___x_4165_; +v_inheritedTraceOptions_4163_ = lean_ctor_get(v___y_4159_, 13); +v___x_4164_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_4165_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_4163_, v_options_4161_, v___x_4164_); +if (v___x_4165_ == 0) +{ +v___y_4080_ = v___y_4157_; +v___y_4081_ = v___y_4158_; +v___y_4082_ = v___y_4159_; +v_options_4083_ = v_options_4161_; +v___y_4084_ = v___y_4160_; +goto v___jp_4079_; +} +else +{ +lean_object* v___x_4166_; lean_object* v___x_4167_; lean_object* v___x_4168_; lean_object* v___x_4169_; +v___x_4166_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_4024_); +v___x_4167_ = l_Lean_MessageData_ofExpr(v_inst_4024_); +v___x_4168_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4168_, 0, v___x_4166_); +lean_ctor_set(v___x_4168_, 1, v___x_4167_); +v___x_4169_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_4155_, v___x_4168_, v___y_4157_, v___y_4158_, v___y_4159_, v___y_4160_); +if (lean_obj_tag(v___x_4169_) == 0) +{ +lean_dec_ref(v___x_4169_); +v___y_4080_ = v___y_4157_; +v___y_4081_ = v___y_4158_; +v___y_4082_ = v___y_4159_; +v_options_4083_ = v_options_4161_; +v___y_4084_ = v___y_4160_; +goto v___jp_4079_; +} +else +{ +lean_object* v_a_4170_; lean_object* v___x_4172_; uint8_t v_isShared_4173_; uint8_t v_isSharedCheck_4177_; +lean_dec_ref(v_expectedType_4025_); +lean_dec_ref(v_inst_4024_); +v_a_4170_ = lean_ctor_get(v___x_4169_, 0); +v_isSharedCheck_4177_ = !lean_is_exclusive(v___x_4169_); +if (v_isSharedCheck_4177_ == 0) +{ +v___x_4172_ = v___x_4169_; +v_isShared_4173_ = v_isSharedCheck_4177_; +goto v_resetjp_4171_; +} +else +{ +lean_inc(v_a_4170_); +lean_dec(v___x_4169_); +v___x_4172_ = lean_box(0); +v_isShared_4173_ = v_isSharedCheck_4177_; +goto v_resetjp_4171_; +} +v_resetjp_4171_: +{ +lean_object* v___x_4175_; +if (v_isShared_4173_ == 0) +{ +v___x_4175_ = v___x_4172_; +goto v_reusejp_4174_; +} +else +{ +lean_object* v_reuseFailAlloc_4176_; +v_reuseFailAlloc_4176_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4176_, 0, v_a_4170_); +v___x_4175_ = v_reuseFailAlloc_4176_; +goto v_reusejp_4174_; +} +v_reusejp_4174_: +{ +return v___x_4175_; +} +} +} +} +} +} +} +v___jp_4040_: +{ +lean_object* v___x_4045_; +v___x_4045_ = l_Lean_enableRealizationsForConst(v___y_4041_, v___y_4043_, v___y_4044_); +if (lean_obj_tag(v___x_4045_) == 0) +{ +lean_object* v___x_4047_; uint8_t v_isShared_4048_; uint8_t v_isSharedCheck_4052_; +v_isSharedCheck_4052_ = !lean_is_exclusive(v___x_4045_); +if (v_isSharedCheck_4052_ == 0) +{ +lean_object* v_unused_4053_; +v_unused_4053_ = lean_ctor_get(v___x_4045_, 0); +lean_dec(v_unused_4053_); +v___x_4047_ = v___x_4045_; +v_isShared_4048_ = v_isSharedCheck_4052_; +goto v_resetjp_4046_; +} +else +{ +lean_dec(v___x_4045_); +v___x_4047_ = lean_box(0); +v_isShared_4048_ = v_isSharedCheck_4052_; +goto v_resetjp_4046_; +} +v_resetjp_4046_: +{ +lean_object* v___x_4050_; +if (v_isShared_4048_ == 0) +{ +lean_ctor_set(v___x_4047_, 0, v___y_4042_); +v___x_4050_ = v___x_4047_; +goto v_reusejp_4049_; +} +else +{ +lean_object* v_reuseFailAlloc_4051_; +v_reuseFailAlloc_4051_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4051_, 0, v___y_4042_); +v___x_4050_ = v_reuseFailAlloc_4051_; +goto v_reusejp_4049_; +} +v_reusejp_4049_: +{ +return v___x_4050_; } } } else { -lean_object* v_a_4360_; lean_object* v___x_4362_; uint8_t v_isShared_4363_; uint8_t v_isSharedCheck_4367_; -lean_dec_ref(v_val_4253_); -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -lean_dec_ref(v_expectedType_4095_); -v_a_4360_ = lean_ctor_get(v___x_4257_, 0); -v_isSharedCheck_4367_ = !lean_is_exclusive(v___x_4257_); -if (v_isSharedCheck_4367_ == 0) +lean_object* v_a_4054_; lean_object* v___x_4056_; uint8_t v_isShared_4057_; uint8_t v_isSharedCheck_4061_; +lean_dec_ref(v___y_4042_); +v_a_4054_ = lean_ctor_get(v___x_4045_, 0); +v_isSharedCheck_4061_ = !lean_is_exclusive(v___x_4045_); +if (v_isSharedCheck_4061_ == 0) { -v___x_4362_ = v___x_4257_; -v_isShared_4363_ = v_isSharedCheck_4367_; -goto v_resetjp_4361_; +v___x_4056_ = v___x_4045_; +v_isShared_4057_ = v_isSharedCheck_4061_; +goto v_resetjp_4055_; } else { -lean_inc(v_a_4360_); -lean_dec(v___x_4257_); -v___x_4362_ = lean_box(0); -v_isShared_4363_ = v_isSharedCheck_4367_; -goto v_resetjp_4361_; +lean_inc(v_a_4054_); +lean_dec(v___x_4045_); +v___x_4056_ = lean_box(0); +v_isShared_4057_ = v_isSharedCheck_4061_; +goto v_resetjp_4055_; } -v_resetjp_4361_: +v_resetjp_4055_: { -lean_object* v___x_4365_; -if (v_isShared_4363_ == 0) +lean_object* v___x_4059_; +if (v_isShared_4057_ == 0) { -v___x_4365_ = v___x_4362_; -goto v_reusejp_4364_; +v___x_4059_ = v___x_4056_; +goto v_reusejp_4058_; } else { -lean_object* v_reuseFailAlloc_4366_; -v_reuseFailAlloc_4366_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4366_, 0, v_a_4360_); -v___x_4365_ = v_reuseFailAlloc_4366_; -goto v_reusejp_4364_; +lean_object* v_reuseFailAlloc_4060_; +v_reuseFailAlloc_4060_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4060_, 0, v_a_4054_); +v___x_4059_ = v_reuseFailAlloc_4060_; +goto v_reusejp_4058_; } -v_reusejp_4364_: +v_reusejp_4058_: { -return v___x_4365_; +return v___x_4059_; } } } } +v___jp_4062_: +{ +if (v_compile_4028_ == 0) +{ +v___y_4041_ = v___y_4063_; +v___y_4042_ = v___y_4064_; +v___y_4043_ = v___y_4065_; +v___y_4044_ = v___y_4066_; +goto v___jp_4040_; +} else { -lean_dec_ref(v_val_4253_); -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -lean_dec_ref(v_expectedType_4095_); -return v___x_4254_; -} +lean_object* v___x_4067_; lean_object* v___x_4068_; lean_object* v___x_4069_; lean_object* v___x_4070_; +v___x_4067_ = lean_unsigned_to_nat(1u); +v___x_4068_ = lean_mk_empty_array_with_capacity(v___x_4067_); +lean_inc(v___y_4063_); +v___x_4069_ = lean_array_push(v___x_4068_, v___y_4063_); +v___x_4070_ = l_Lean_compileDecls(v___x_4069_, v_logCompileErrors_4029_, v___y_4065_, v___y_4066_); +if (lean_obj_tag(v___x_4070_) == 0) +{ +lean_dec_ref(v___x_4070_); +v___y_4041_ = v___y_4063_; +v___y_4042_ = v___y_4064_; +v___y_4043_ = v___y_4065_; +v___y_4044_ = v___y_4066_; +goto v___jp_4040_; } else { -lean_dec(v_a_4252_); -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -v___y_4228_ = v___y_4105_; -v___y_4229_ = v___y_4106_; -v___y_4230_ = v___y_4107_; -v___y_4231_ = v___y_4108_; -goto v___jp_4227_; -} +lean_object* v_a_4071_; lean_object* v___x_4073_; uint8_t v_isShared_4074_; uint8_t v_isSharedCheck_4078_; +lean_dec_ref(v___y_4064_); +lean_dec(v___y_4063_); +v_a_4071_ = lean_ctor_get(v___x_4070_, 0); +v_isSharedCheck_4078_ = !lean_is_exclusive(v___x_4070_); +if (v_isSharedCheck_4078_ == 0) +{ +v___x_4073_ = v___x_4070_; +v_isShared_4074_ = v_isSharedCheck_4078_; +goto v_resetjp_4072_; } else { -lean_object* v_a_4368_; lean_object* v___x_4370_; uint8_t v_isShared_4371_; uint8_t v_isSharedCheck_4375_; -lean_dec_ref(v_x_4103_); -lean_dec_ref(v_x_4102_); -lean_dec(v_val_4101_); -lean_dec_ref(v_expectedType_4095_); -lean_dec_ref(v_inst_4094_); -v_a_4368_ = lean_ctor_get(v___x_4251_, 0); -v_isSharedCheck_4375_ = !lean_is_exclusive(v___x_4251_); -if (v_isSharedCheck_4375_ == 0) +lean_inc(v_a_4071_); +lean_dec(v___x_4070_); +v___x_4073_ = lean_box(0); +v_isShared_4074_ = v_isSharedCheck_4078_; +goto v_resetjp_4072_; +} +v_resetjp_4072_: { -v___x_4370_ = v___x_4251_; -v_isShared_4371_ = v_isSharedCheck_4375_; -goto v_resetjp_4369_; +lean_object* v___x_4076_; +if (v_isShared_4074_ == 0) +{ +v___x_4076_ = v___x_4073_; +goto v_reusejp_4075_; } else { -lean_inc(v_a_4368_); -lean_dec(v___x_4251_); -v___x_4370_ = lean_box(0); -v_isShared_4371_ = v_isSharedCheck_4375_; -goto v_resetjp_4369_; +lean_object* v_reuseFailAlloc_4077_; +v_reuseFailAlloc_4077_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4077_, 0, v_a_4071_); +v___x_4076_ = v_reuseFailAlloc_4077_; +goto v_reusejp_4075_; } -v_resetjp_4369_: +v_reusejp_4075_: { -lean_object* v___x_4373_; -if (v_isShared_4371_ == 0) +return v___x_4076_; +} +} +} +} +} +v___jp_4079_: { -v___x_4373_ = v___x_4370_; -goto v_reusejp_4372_; +lean_object* v___x_4085_; uint8_t v___x_4086_; +v___x_4085_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_4086_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4083_, v___x_4085_); +if (v___x_4086_ == 0) +{ +lean_object* v___x_4087_; +lean_dec_ref(v_expectedType_4025_); +v___x_4087_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4087_, 0, v_inst_4024_); +return v___x_4087_; } else { -lean_object* v_reuseFailAlloc_4374_; -v_reuseFailAlloc_4374_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4374_, 0, v_a_4368_); -v___x_4373_ = v_reuseFailAlloc_4374_; -goto v_reusejp_4372_; -} -v_reusejp_4372_: +lean_object* v___x_4088_; +lean_inc(v___y_4084_); +lean_inc_ref(v___y_4082_); +lean_inc(v___y_4081_); +lean_inc_ref(v___y_4080_); +lean_inc_ref(v_inst_4024_); +v___x_4088_ = lean_infer_type(v_inst_4024_, v___y_4080_, v___y_4081_, v___y_4082_, v___y_4084_); +if (lean_obj_tag(v___x_4088_) == 0) { -return v___x_4373_; -} -} -} -} -v___jp_4227_: +lean_object* v_a_4089_; lean_object* v___x_4090_; +v_a_4089_ = lean_ctor_get(v___x_4088_, 0); +lean_inc(v_a_4089_); +lean_dec_ref(v___x_4088_); +lean_inc_ref(v_expectedType_4025_); +v___x_4090_ = l_Lean_Meta_isExprDefEq(v_expectedType_4025_, v_a_4089_, v___y_4080_, v___y_4081_, v___y_4082_, v___y_4084_); +if (lean_obj_tag(v___x_4090_) == 0) { -lean_object* v_options_4232_; uint8_t v_hasTrace_4233_; -v_options_4232_ = lean_ctor_get(v___y_4230_, 2); -v_hasTrace_4233_ = lean_ctor_get_uint8(v_options_4232_, sizeof(void*)*1); -if (v_hasTrace_4233_ == 0) +lean_object* v_a_4091_; lean_object* v___x_4093_; uint8_t v_isShared_4094_; uint8_t v_isSharedCheck_4140_; +v_a_4091_ = lean_ctor_get(v___x_4090_, 0); +v_isSharedCheck_4140_ = !lean_is_exclusive(v___x_4090_); +if (v_isSharedCheck_4140_ == 0) { -v___y_4150_ = v___y_4228_; -v___y_4151_ = v___y_4229_; -v___y_4152_ = v___y_4230_; -v_options_4153_ = v_options_4232_; -v___y_4154_ = v___y_4231_; -goto v___jp_4149_; +v___x_4093_ = v___x_4090_; +v_isShared_4094_ = v_isSharedCheck_4140_; +goto v_resetjp_4092_; } else { -lean_object* v_inheritedTraceOptions_4234_; lean_object* v___x_4235_; uint8_t v___x_4236_; -v_inheritedTraceOptions_4234_ = lean_ctor_get(v___y_4230_, 13); -v___x_4235_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_4236_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_4234_, v_options_4232_, v___x_4235_); -if (v___x_4236_ == 0) +lean_inc(v_a_4091_); +lean_dec(v___x_4090_); +v___x_4093_ = lean_box(0); +v_isShared_4094_ = v_isSharedCheck_4140_; +goto v_resetjp_4092_; +} +v_resetjp_4092_: { -v___y_4150_ = v___y_4228_; -v___y_4151_ = v___y_4229_; -v___y_4152_ = v___y_4230_; -v_options_4153_ = v_options_4232_; -v___y_4154_ = v___y_4231_; -goto v___jp_4149_; +uint8_t v___x_4095_; +v___x_4095_ = lean_unbox(v_a_4091_); +lean_dec(v_a_4091_); +if (v___x_4095_ == 0) +{ +lean_object* v___x_4096_; lean_object* v___x_4097_; lean_object* v_a_4098_; lean_object* v___x_4099_; +lean_del_object(v___x_4093_); +v___x_4096_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_4097_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_4096_, v___y_4084_); +v_a_4098_ = lean_ctor_get(v___x_4097_, 0); +lean_inc_n(v_a_4098_, 2); +lean_dec_ref(v___x_4097_); +v___x_4099_ = l_Lean_Meta_mkAuxDefinition(v_a_4098_, v_expectedType_4025_, v_inst_4024_, v___x_4026_, v___x_4026_, v___x_4027_, v___y_4080_, v___y_4081_, v___y_4082_, v___y_4084_); +if (lean_obj_tag(v___x_4099_) == 0) +{ +if (v_isMeta_4030_ == 0) +{ +lean_object* v_a_4100_; +v_a_4100_ = lean_ctor_get(v___x_4099_, 0); +lean_inc(v_a_4100_); +lean_dec_ref(v___x_4099_); +v___y_4063_ = v_a_4098_; +v___y_4064_ = v_a_4100_; +v___y_4065_ = v___y_4082_; +v___y_4066_ = v___y_4084_; +goto v___jp_4062_; } else { -lean_object* v___x_4237_; lean_object* v___x_4238_; lean_object* v___x_4239_; lean_object* v___x_4240_; -v___x_4237_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_4094_); -v___x_4238_ = l_Lean_MessageData_ofExpr(v_inst_4094_); -v___x_4239_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4239_, 0, v___x_4237_); -lean_ctor_set(v___x_4239_, 1, v___x_4238_); -v___x_4240_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_4226_, v___x_4239_, v___y_4228_, v___y_4229_, v___y_4230_, v___y_4231_); -if (lean_obj_tag(v___x_4240_) == 0) +lean_object* v_a_4101_; lean_object* v___x_4102_; lean_object* v_env_4103_; lean_object* v_nextMacroScope_4104_; lean_object* v_ngen_4105_; lean_object* v_auxDeclNGen_4106_; lean_object* v_traceState_4107_; lean_object* v_messages_4108_; lean_object* v_infoState_4109_; lean_object* v_snapshotTasks_4110_; lean_object* v___x_4112_; uint8_t v_isShared_4113_; uint8_t v_isSharedCheck_4135_; +v_a_4101_ = lean_ctor_get(v___x_4099_, 0); +lean_inc(v_a_4101_); +lean_dec_ref(v___x_4099_); +v___x_4102_ = lean_st_ref_take(v___y_4084_); +v_env_4103_ = lean_ctor_get(v___x_4102_, 0); +v_nextMacroScope_4104_ = lean_ctor_get(v___x_4102_, 1); +v_ngen_4105_ = lean_ctor_get(v___x_4102_, 2); +v_auxDeclNGen_4106_ = lean_ctor_get(v___x_4102_, 3); +v_traceState_4107_ = lean_ctor_get(v___x_4102_, 4); +v_messages_4108_ = lean_ctor_get(v___x_4102_, 6); +v_infoState_4109_ = lean_ctor_get(v___x_4102_, 7); +v_snapshotTasks_4110_ = lean_ctor_get(v___x_4102_, 8); +v_isSharedCheck_4135_ = !lean_is_exclusive(v___x_4102_); +if (v_isSharedCheck_4135_ == 0) { -lean_dec_ref(v___x_4240_); -v___y_4150_ = v___y_4228_; -v___y_4151_ = v___y_4229_; -v___y_4152_ = v___y_4230_; -v_options_4153_ = v_options_4232_; -v___y_4154_ = v___y_4231_; -goto v___jp_4149_; +lean_object* v_unused_4136_; +v_unused_4136_ = lean_ctor_get(v___x_4102_, 5); +lean_dec(v_unused_4136_); +v___x_4112_ = v___x_4102_; +v_isShared_4113_ = v_isSharedCheck_4135_; +goto v_resetjp_4111_; } else { -lean_object* v_a_4241_; lean_object* v___x_4243_; uint8_t v_isShared_4244_; uint8_t v_isSharedCheck_4248_; -lean_dec_ref(v_expectedType_4095_); -lean_dec_ref(v_inst_4094_); -v_a_4241_ = lean_ctor_get(v___x_4240_, 0); -v_isSharedCheck_4248_ = !lean_is_exclusive(v___x_4240_); -if (v_isSharedCheck_4248_ == 0) +lean_inc(v_snapshotTasks_4110_); +lean_inc(v_infoState_4109_); +lean_inc(v_messages_4108_); +lean_inc(v_traceState_4107_); +lean_inc(v_auxDeclNGen_4106_); +lean_inc(v_ngen_4105_); +lean_inc(v_nextMacroScope_4104_); +lean_inc(v_env_4103_); +lean_dec(v___x_4102_); +v___x_4112_ = lean_box(0); +v_isShared_4113_ = v_isSharedCheck_4135_; +goto v_resetjp_4111_; +} +v_resetjp_4111_: { -v___x_4243_ = v___x_4240_; -v_isShared_4244_ = v_isSharedCheck_4248_; -goto v_resetjp_4242_; +lean_object* v___x_4114_; lean_object* v___x_4115_; lean_object* v___x_4117_; +lean_inc(v_a_4098_); +v___x_4114_ = l_Lean_markMeta(v_env_4103_, v_a_4098_); +v___x_4115_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_4113_ == 0) +{ +lean_ctor_set(v___x_4112_, 5, v___x_4115_); +lean_ctor_set(v___x_4112_, 0, v___x_4114_); +v___x_4117_ = v___x_4112_; +goto v_reusejp_4116_; } else { -lean_inc(v_a_4241_); -lean_dec(v___x_4240_); -v___x_4243_ = lean_box(0); -v_isShared_4244_ = v_isSharedCheck_4248_; -goto v_resetjp_4242_; +lean_object* v_reuseFailAlloc_4134_; +v_reuseFailAlloc_4134_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_4134_, 0, v___x_4114_); +lean_ctor_set(v_reuseFailAlloc_4134_, 1, v_nextMacroScope_4104_); +lean_ctor_set(v_reuseFailAlloc_4134_, 2, v_ngen_4105_); +lean_ctor_set(v_reuseFailAlloc_4134_, 3, v_auxDeclNGen_4106_); +lean_ctor_set(v_reuseFailAlloc_4134_, 4, v_traceState_4107_); +lean_ctor_set(v_reuseFailAlloc_4134_, 5, v___x_4115_); +lean_ctor_set(v_reuseFailAlloc_4134_, 6, v_messages_4108_); +lean_ctor_set(v_reuseFailAlloc_4134_, 7, v_infoState_4109_); +lean_ctor_set(v_reuseFailAlloc_4134_, 8, v_snapshotTasks_4110_); +v___x_4117_ = v_reuseFailAlloc_4134_; +goto v_reusejp_4116_; } -v_resetjp_4242_: +v_reusejp_4116_: { -lean_object* v___x_4246_; -if (v_isShared_4244_ == 0) +lean_object* v___x_4118_; lean_object* v___x_4119_; lean_object* v_mctx_4120_; lean_object* v_zetaDeltaFVarIds_4121_; lean_object* v_postponed_4122_; lean_object* v_diag_4123_; lean_object* v___x_4125_; uint8_t v_isShared_4126_; uint8_t v_isSharedCheck_4132_; +v___x_4118_ = lean_st_ref_set(v___y_4084_, v___x_4117_); +v___x_4119_ = lean_st_ref_take(v___y_4081_); +v_mctx_4120_ = lean_ctor_get(v___x_4119_, 0); +v_zetaDeltaFVarIds_4121_ = lean_ctor_get(v___x_4119_, 2); +v_postponed_4122_ = lean_ctor_get(v___x_4119_, 3); +v_diag_4123_ = lean_ctor_get(v___x_4119_, 4); +v_isSharedCheck_4132_ = !lean_is_exclusive(v___x_4119_); +if (v_isSharedCheck_4132_ == 0) { -v___x_4246_ = v___x_4243_; -goto v_reusejp_4245_; +lean_object* v_unused_4133_; +v_unused_4133_ = lean_ctor_get(v___x_4119_, 1); +lean_dec(v_unused_4133_); +v___x_4125_ = v___x_4119_; +v_isShared_4126_ = v_isSharedCheck_4132_; +goto v_resetjp_4124_; } else { -lean_object* v_reuseFailAlloc_4247_; -v_reuseFailAlloc_4247_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4247_, 0, v_a_4241_); -v___x_4246_ = v_reuseFailAlloc_4247_; -goto v_reusejp_4245_; +lean_inc(v_diag_4123_); +lean_inc(v_postponed_4122_); +lean_inc(v_zetaDeltaFVarIds_4121_); +lean_inc(v_mctx_4120_); +lean_dec(v___x_4119_); +v___x_4125_ = lean_box(0); +v_isShared_4126_ = v_isSharedCheck_4132_; +goto v_resetjp_4124_; } -v_reusejp_4245_: +v_resetjp_4124_: { -return v___x_4246_; -} -} -} -} -} -} -} -v___jp_4110_: +lean_object* v___x_4127_; lean_object* v___x_4129_; +v___x_4127_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_4126_ == 0) { -lean_object* v___x_4115_; -v___x_4115_ = l_Lean_enableRealizationsForConst(v___y_4112_, v___y_4113_, v___y_4114_); -if (lean_obj_tag(v___x_4115_) == 0) -{ -lean_object* v___x_4117_; uint8_t v_isShared_4118_; uint8_t v_isSharedCheck_4122_; -v_isSharedCheck_4122_ = !lean_is_exclusive(v___x_4115_); -if (v_isSharedCheck_4122_ == 0) -{ -lean_object* v_unused_4123_; -v_unused_4123_ = lean_ctor_get(v___x_4115_, 0); -lean_dec(v_unused_4123_); -v___x_4117_ = v___x_4115_; -v_isShared_4118_ = v_isSharedCheck_4122_; -goto v_resetjp_4116_; -} -else -{ -lean_dec(v___x_4115_); -v___x_4117_ = lean_box(0); -v_isShared_4118_ = v_isSharedCheck_4122_; -goto v_resetjp_4116_; -} -v_resetjp_4116_: -{ -lean_object* v___x_4120_; -if (v_isShared_4118_ == 0) -{ -lean_ctor_set(v___x_4117_, 0, v___y_4111_); -v___x_4120_ = v___x_4117_; -goto v_reusejp_4119_; -} -else -{ -lean_object* v_reuseFailAlloc_4121_; -v_reuseFailAlloc_4121_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4121_, 0, v___y_4111_); -v___x_4120_ = v_reuseFailAlloc_4121_; -goto v_reusejp_4119_; -} -v_reusejp_4119_: -{ -return v___x_4120_; -} -} -} -else -{ -lean_object* v_a_4124_; lean_object* v___x_4126_; uint8_t v_isShared_4127_; uint8_t v_isSharedCheck_4131_; -lean_dec_ref(v___y_4111_); -v_a_4124_ = lean_ctor_get(v___x_4115_, 0); -v_isSharedCheck_4131_ = !lean_is_exclusive(v___x_4115_); -if (v_isSharedCheck_4131_ == 0) -{ -v___x_4126_ = v___x_4115_; -v_isShared_4127_ = v_isSharedCheck_4131_; -goto v_resetjp_4125_; -} -else -{ -lean_inc(v_a_4124_); -lean_dec(v___x_4115_); -v___x_4126_ = lean_box(0); -v_isShared_4127_ = v_isSharedCheck_4131_; -goto v_resetjp_4125_; -} -v_resetjp_4125_: -{ -lean_object* v___x_4129_; -if (v_isShared_4127_ == 0) -{ -v___x_4129_ = v___x_4126_; +lean_ctor_set(v___x_4125_, 1, v___x_4127_); +v___x_4129_ = v___x_4125_; goto v_reusejp_4128_; } else { -lean_object* v_reuseFailAlloc_4130_; -v_reuseFailAlloc_4130_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4130_, 0, v_a_4124_); -v___x_4129_ = v_reuseFailAlloc_4130_; +lean_object* v_reuseFailAlloc_4131_; +v_reuseFailAlloc_4131_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_4131_, 0, v_mctx_4120_); +lean_ctor_set(v_reuseFailAlloc_4131_, 1, v___x_4127_); +lean_ctor_set(v_reuseFailAlloc_4131_, 2, v_zetaDeltaFVarIds_4121_); +lean_ctor_set(v_reuseFailAlloc_4131_, 3, v_postponed_4122_); +lean_ctor_set(v_reuseFailAlloc_4131_, 4, v_diag_4123_); +v___x_4129_ = v_reuseFailAlloc_4131_; goto v_reusejp_4128_; } v_reusejp_4128_: { -return v___x_4129_; +lean_object* v___x_4130_; +v___x_4130_ = lean_st_ref_set(v___y_4081_, v___x_4129_); +v___y_4063_ = v_a_4098_; +v___y_4064_ = v_a_4101_; +v___y_4065_ = v___y_4082_; +v___y_4066_ = v___y_4084_; +goto v___jp_4062_; +} } } } } -v___jp_4132_: -{ -if (v_compile_4098_ == 0) -{ -v___y_4111_ = v___y_4133_; -v___y_4112_ = v___y_4134_; -v___y_4113_ = v___y_4135_; -v___y_4114_ = v___y_4136_; -goto v___jp_4110_; } else { -lean_object* v___x_4137_; lean_object* v___x_4138_; lean_object* v___x_4139_; lean_object* v___x_4140_; -v___x_4137_ = lean_unsigned_to_nat(1u); -v___x_4138_ = lean_mk_empty_array_with_capacity(v___x_4137_); -lean_inc(v___y_4134_); -v___x_4139_ = lean_array_push(v___x_4138_, v___y_4134_); -v___x_4140_ = l_Lean_compileDecls(v___x_4139_, v_logCompileErrors_4099_, v___y_4135_, v___y_4136_); -if (lean_obj_tag(v___x_4140_) == 0) +lean_dec(v_a_4098_); +return v___x_4099_; +} +} +else { -lean_dec_ref(v___x_4140_); -v___y_4111_ = v___y_4133_; -v___y_4112_ = v___y_4134_; -v___y_4113_ = v___y_4135_; -v___y_4114_ = v___y_4136_; -goto v___jp_4110_; +lean_object* v___x_4138_; +lean_dec_ref(v_expectedType_4025_); +if (v_isShared_4094_ == 0) +{ +lean_ctor_set(v___x_4093_, 0, v_inst_4024_); +v___x_4138_ = v___x_4093_; +goto v_reusejp_4137_; +} +else +{ +lean_object* v_reuseFailAlloc_4139_; +v_reuseFailAlloc_4139_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4139_, 0, v_inst_4024_); +v___x_4138_ = v_reuseFailAlloc_4139_; +goto v_reusejp_4137_; +} +v_reusejp_4137_: +{ +return v___x_4138_; +} +} +} } else { lean_object* v_a_4141_; lean_object* v___x_4143_; uint8_t v_isShared_4144_; uint8_t v_isSharedCheck_4148_; -lean_dec(v___y_4134_); -lean_dec_ref(v___y_4133_); -v_a_4141_ = lean_ctor_get(v___x_4140_, 0); -v_isSharedCheck_4148_ = !lean_is_exclusive(v___x_4140_); +lean_dec_ref(v_expectedType_4025_); +lean_dec_ref(v_inst_4024_); +v_a_4141_ = lean_ctor_get(v___x_4090_, 0); +v_isSharedCheck_4148_ = !lean_is_exclusive(v___x_4090_); if (v_isSharedCheck_4148_ == 0) { -v___x_4143_ = v___x_4140_; +v___x_4143_ = v___x_4090_; v_isShared_4144_ = v_isSharedCheck_4148_; goto v_resetjp_4142_; } else { lean_inc(v_a_4141_); -lean_dec(v___x_4140_); +lean_dec(v___x_4090_); v___x_4143_ = lean_box(0); v_isShared_4144_ = v_isSharedCheck_4148_; goto v_resetjp_4142_; @@ -15881,603 +15998,312 @@ return v___x_4146_; } } } -} -v___jp_4149_: -{ -lean_object* v___x_4155_; uint8_t v___x_4156_; -v___x_4155_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_4156_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4153_, v___x_4155_); -if (v___x_4156_ == 0) -{ -lean_object* v___x_4157_; -lean_dec_ref(v_expectedType_4095_); -v___x_4157_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4157_, 0, v_inst_4094_); -return v___x_4157_; -} else { -lean_object* v___x_4158_; -lean_inc(v___y_4154_); -lean_inc_ref(v___y_4152_); -lean_inc(v___y_4151_); -lean_inc_ref(v___y_4150_); -lean_inc_ref(v_inst_4094_); -v___x_4158_ = lean_infer_type(v_inst_4094_, v___y_4150_, v___y_4151_, v___y_4152_, v___y_4154_); -if (lean_obj_tag(v___x_4158_) == 0) -{ -lean_object* v_a_4159_; lean_object* v___x_4160_; -v_a_4159_ = lean_ctor_get(v___x_4158_, 0); -lean_inc(v_a_4159_); -lean_dec_ref(v___x_4158_); -lean_inc_ref(v_expectedType_4095_); -v___x_4160_ = l_Lean_Meta_isExprDefEq(v_expectedType_4095_, v_a_4159_, v___y_4150_, v___y_4151_, v___y_4152_, v___y_4154_); -if (lean_obj_tag(v___x_4160_) == 0) -{ -lean_object* v_a_4161_; lean_object* v___x_4163_; uint8_t v_isShared_4164_; uint8_t v_isSharedCheck_4211_; -v_a_4161_ = lean_ctor_get(v___x_4160_, 0); -v_isSharedCheck_4211_ = !lean_is_exclusive(v___x_4160_); -if (v_isSharedCheck_4211_ == 0) -{ -v___x_4163_ = v___x_4160_; -v_isShared_4164_ = v_isSharedCheck_4211_; -goto v_resetjp_4162_; -} -else -{ -lean_inc(v_a_4161_); -lean_dec(v___x_4160_); -v___x_4163_ = lean_box(0); -v_isShared_4164_ = v_isSharedCheck_4211_; -goto v_resetjp_4162_; -} -v_resetjp_4162_: -{ -uint8_t v___x_4165_; -v___x_4165_ = lean_unbox(v_a_4161_); -lean_dec(v_a_4161_); -if (v___x_4165_ == 0) -{ -lean_object* v___x_4166_; lean_object* v___x_4167_; lean_object* v_a_4168_; lean_object* v___x_4169_; -lean_del_object(v___x_4163_); -v___x_4166_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_4167_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_4166_, v___y_4154_); -v_a_4168_ = lean_ctor_get(v___x_4167_, 0); -lean_inc_n(v_a_4168_, 2); -lean_dec_ref(v___x_4167_); -v___x_4169_ = l_Lean_Meta_mkAuxDefinition(v_a_4168_, v_expectedType_4095_, v_inst_4094_, v___x_4096_, v___x_4096_, v___x_4097_, v___y_4150_, v___y_4151_, v___y_4152_, v___y_4154_); -if (lean_obj_tag(v___x_4169_) == 0) -{ -lean_object* v_a_4170_; uint8_t v___x_4171_; lean_object* v___x_4172_; -v_a_4170_ = lean_ctor_get(v___x_4169_, 0); -lean_inc(v_a_4170_); -lean_dec_ref(v___x_4169_); -v___x_4171_ = 3; -lean_inc(v_a_4168_); -v___x_4172_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_4168_, v___x_4171_, v___y_4151_, v___y_4154_); -lean_dec_ref(v___x_4172_); -if (v_isMeta_4100_ == 0) -{ -v___y_4133_ = v_a_4170_; -v___y_4134_ = v_a_4168_; -v___y_4135_ = v___y_4152_; -v___y_4136_ = v___y_4154_; -goto v___jp_4132_; -} -else -{ -lean_object* v___x_4173_; lean_object* v_env_4174_; lean_object* v_nextMacroScope_4175_; lean_object* v_ngen_4176_; lean_object* v_auxDeclNGen_4177_; lean_object* v_traceState_4178_; lean_object* v_messages_4179_; lean_object* v_infoState_4180_; lean_object* v_snapshotTasks_4181_; lean_object* v___x_4183_; uint8_t v_isShared_4184_; uint8_t v_isSharedCheck_4206_; -v___x_4173_ = lean_st_ref_take(v___y_4154_); -v_env_4174_ = lean_ctor_get(v___x_4173_, 0); -v_nextMacroScope_4175_ = lean_ctor_get(v___x_4173_, 1); -v_ngen_4176_ = lean_ctor_get(v___x_4173_, 2); -v_auxDeclNGen_4177_ = lean_ctor_get(v___x_4173_, 3); -v_traceState_4178_ = lean_ctor_get(v___x_4173_, 4); -v_messages_4179_ = lean_ctor_get(v___x_4173_, 6); -v_infoState_4180_ = lean_ctor_get(v___x_4173_, 7); -v_snapshotTasks_4181_ = lean_ctor_get(v___x_4173_, 8); -v_isSharedCheck_4206_ = !lean_is_exclusive(v___x_4173_); -if (v_isSharedCheck_4206_ == 0) -{ -lean_object* v_unused_4207_; -v_unused_4207_ = lean_ctor_get(v___x_4173_, 5); -lean_dec(v_unused_4207_); -v___x_4183_ = v___x_4173_; -v_isShared_4184_ = v_isSharedCheck_4206_; -goto v_resetjp_4182_; -} -else -{ -lean_inc(v_snapshotTasks_4181_); -lean_inc(v_infoState_4180_); -lean_inc(v_messages_4179_); -lean_inc(v_traceState_4178_); -lean_inc(v_auxDeclNGen_4177_); -lean_inc(v_ngen_4176_); -lean_inc(v_nextMacroScope_4175_); -lean_inc(v_env_4174_); -lean_dec(v___x_4173_); -v___x_4183_ = lean_box(0); -v_isShared_4184_ = v_isSharedCheck_4206_; -goto v_resetjp_4182_; -} -v_resetjp_4182_: -{ -lean_object* v___x_4185_; lean_object* v___x_4186_; lean_object* v___x_4188_; -lean_inc(v_a_4168_); -v___x_4185_ = l_Lean_markMeta(v_env_4174_, v_a_4168_); -v___x_4186_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_4184_ == 0) -{ -lean_ctor_set(v___x_4183_, 5, v___x_4186_); -lean_ctor_set(v___x_4183_, 0, v___x_4185_); -v___x_4188_ = v___x_4183_; -goto v_reusejp_4187_; -} -else -{ -lean_object* v_reuseFailAlloc_4205_; -v_reuseFailAlloc_4205_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_4205_, 0, v___x_4185_); -lean_ctor_set(v_reuseFailAlloc_4205_, 1, v_nextMacroScope_4175_); -lean_ctor_set(v_reuseFailAlloc_4205_, 2, v_ngen_4176_); -lean_ctor_set(v_reuseFailAlloc_4205_, 3, v_auxDeclNGen_4177_); -lean_ctor_set(v_reuseFailAlloc_4205_, 4, v_traceState_4178_); -lean_ctor_set(v_reuseFailAlloc_4205_, 5, v___x_4186_); -lean_ctor_set(v_reuseFailAlloc_4205_, 6, v_messages_4179_); -lean_ctor_set(v_reuseFailAlloc_4205_, 7, v_infoState_4180_); -lean_ctor_set(v_reuseFailAlloc_4205_, 8, v_snapshotTasks_4181_); -v___x_4188_ = v_reuseFailAlloc_4205_; -goto v_reusejp_4187_; -} -v_reusejp_4187_: -{ -lean_object* v___x_4189_; lean_object* v___x_4190_; lean_object* v_mctx_4191_; lean_object* v_zetaDeltaFVarIds_4192_; lean_object* v_postponed_4193_; lean_object* v_diag_4194_; lean_object* v___x_4196_; uint8_t v_isShared_4197_; uint8_t v_isSharedCheck_4203_; -v___x_4189_ = lean_st_ref_set(v___y_4154_, v___x_4188_); -v___x_4190_ = lean_st_ref_take(v___y_4151_); -v_mctx_4191_ = lean_ctor_get(v___x_4190_, 0); -v_zetaDeltaFVarIds_4192_ = lean_ctor_get(v___x_4190_, 2); -v_postponed_4193_ = lean_ctor_get(v___x_4190_, 3); -v_diag_4194_ = lean_ctor_get(v___x_4190_, 4); -v_isSharedCheck_4203_ = !lean_is_exclusive(v___x_4190_); -if (v_isSharedCheck_4203_ == 0) -{ -lean_object* v_unused_4204_; -v_unused_4204_ = lean_ctor_get(v___x_4190_, 1); -lean_dec(v_unused_4204_); -v___x_4196_ = v___x_4190_; -v_isShared_4197_ = v_isSharedCheck_4203_; -goto v_resetjp_4195_; -} -else -{ -lean_inc(v_diag_4194_); -lean_inc(v_postponed_4193_); -lean_inc(v_zetaDeltaFVarIds_4192_); -lean_inc(v_mctx_4191_); -lean_dec(v___x_4190_); -v___x_4196_ = lean_box(0); -v_isShared_4197_ = v_isSharedCheck_4203_; -goto v_resetjp_4195_; -} -v_resetjp_4195_: -{ -lean_object* v___x_4198_; lean_object* v___x_4200_; -v___x_4198_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_4197_ == 0) -{ -lean_ctor_set(v___x_4196_, 1, v___x_4198_); -v___x_4200_ = v___x_4196_; -goto v_reusejp_4199_; -} -else -{ -lean_object* v_reuseFailAlloc_4202_; -v_reuseFailAlloc_4202_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_4202_, 0, v_mctx_4191_); -lean_ctor_set(v_reuseFailAlloc_4202_, 1, v___x_4198_); -lean_ctor_set(v_reuseFailAlloc_4202_, 2, v_zetaDeltaFVarIds_4192_); -lean_ctor_set(v_reuseFailAlloc_4202_, 3, v_postponed_4193_); -lean_ctor_set(v_reuseFailAlloc_4202_, 4, v_diag_4194_); -v___x_4200_ = v_reuseFailAlloc_4202_; -goto v_reusejp_4199_; -} -v_reusejp_4199_: -{ -lean_object* v___x_4201_; -v___x_4201_ = lean_st_ref_set(v___y_4151_, v___x_4200_); -v___y_4133_ = v_a_4170_; -v___y_4134_ = v_a_4168_; -v___y_4135_ = v___y_4152_; -v___y_4136_ = v___y_4154_; -goto v___jp_4132_; +lean_dec_ref(v_expectedType_4025_); +lean_dec_ref(v_inst_4024_); +return v___x_4088_; } } } } } -} -else -{ -lean_dec(v_a_4168_); -return v___x_4169_; -} -} -else -{ -lean_object* v___x_4209_; -lean_dec_ref(v_expectedType_4095_); -if (v_isShared_4164_ == 0) -{ -lean_ctor_set(v___x_4163_, 0, v_inst_4094_); -v___x_4209_ = v___x_4163_; -goto v_reusejp_4208_; -} -else -{ -lean_object* v_reuseFailAlloc_4210_; -v_reuseFailAlloc_4210_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4210_, 0, v_inst_4094_); -v___x_4209_ = v_reuseFailAlloc_4210_; -goto v_reusejp_4208_; -} -v_reusejp_4208_: -{ -return v___x_4209_; -} -} -} -} -else -{ -lean_object* v_a_4212_; lean_object* v___x_4214_; uint8_t v_isShared_4215_; uint8_t v_isSharedCheck_4219_; -lean_dec_ref(v_expectedType_4095_); -lean_dec_ref(v_inst_4094_); -v_a_4212_ = lean_ctor_get(v___x_4160_, 0); -v_isSharedCheck_4219_ = !lean_is_exclusive(v___x_4160_); -if (v_isSharedCheck_4219_ == 0) -{ -v___x_4214_ = v___x_4160_; -v_isShared_4215_ = v_isSharedCheck_4219_; -goto v_resetjp_4213_; -} -else -{ -lean_inc(v_a_4212_); -lean_dec(v___x_4160_); -v___x_4214_ = lean_box(0); -v_isShared_4215_ = v_isSharedCheck_4219_; -goto v_resetjp_4213_; -} -v_resetjp_4213_: -{ -lean_object* v___x_4217_; -if (v_isShared_4215_ == 0) -{ -v___x_4217_ = v___x_4214_; -goto v_reusejp_4216_; -} -else -{ -lean_object* v_reuseFailAlloc_4218_; -v_reuseFailAlloc_4218_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4218_, 0, v_a_4212_); -v___x_4217_ = v_reuseFailAlloc_4218_; -goto v_reusejp_4216_; -} -v_reusejp_4216_: -{ -return v___x_4217_; -} -} -} -} -else -{ -lean_dec_ref(v_expectedType_4095_); -lean_dec_ref(v_inst_4094_); -return v___x_4158_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14(lean_object* v_inst_4376_, lean_object* v_expectedType_4377_, uint8_t v___x_4378_, uint8_t v___x_4379_, uint8_t v_compile_4380_, uint8_t v_logCompileErrors_4381_, uint8_t v_isMeta_4382_, lean_object* v_val_4383_, lean_object* v_x_4384_, lean_object* v_x_4385_, lean_object* v_x_4386_, lean_object* v___y_4387_, lean_object* v___y_4388_, lean_object* v___y_4389_, lean_object* v___y_4390_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13(lean_object* v_inst_4305_, lean_object* v_expectedType_4306_, uint8_t v___x_4307_, uint8_t v___x_4308_, uint8_t v_compile_4309_, uint8_t v_logCompileErrors_4310_, uint8_t v_isMeta_4311_, lean_object* v_val_4312_, lean_object* v_x_4313_, lean_object* v_x_4314_, lean_object* v_x_4315_, lean_object* v___y_4316_, lean_object* v___y_4317_, lean_object* v___y_4318_, lean_object* v___y_4319_){ _start: { -lean_object* v___y_4393_; lean_object* v___y_4394_; lean_object* v___y_4395_; lean_object* v___y_4396_; lean_object* v___y_4415_; lean_object* v___y_4416_; lean_object* v___y_4417_; lean_object* v___y_4418_; lean_object* v___y_4432_; lean_object* v___y_4433_; lean_object* v___y_4434_; lean_object* v_options_4435_; lean_object* v___y_4436_; -if (lean_obj_tag(v_x_4384_) == 5) +lean_object* v___y_4322_; lean_object* v___y_4323_; lean_object* v___y_4324_; lean_object* v___y_4325_; lean_object* v___y_4344_; lean_object* v___y_4345_; lean_object* v___y_4346_; lean_object* v___y_4347_; lean_object* v___y_4361_; lean_object* v___y_4362_; lean_object* v___y_4363_; lean_object* v_options_4364_; lean_object* v___y_4365_; +if (lean_obj_tag(v_x_4313_) == 5) { -lean_object* v_fn_4502_; lean_object* v_arg_4503_; lean_object* v___x_4504_; lean_object* v___x_4505_; lean_object* v___x_4506_; lean_object* v___x_4507_; -v_fn_4502_ = lean_ctor_get(v_x_4384_, 0); -lean_inc_ref(v_fn_4502_); -v_arg_4503_ = lean_ctor_get(v_x_4384_, 1); -lean_inc_ref(v_arg_4503_); -lean_dec_ref(v_x_4384_); -v___x_4504_ = lean_array_set(v_x_4385_, v_x_4386_, v_arg_4503_); -v___x_4505_ = lean_unsigned_to_nat(1u); -v___x_4506_ = lean_nat_sub(v_x_4386_, v___x_4505_); -v___x_4507_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22(v_inst_4376_, v_expectedType_4377_, v___x_4378_, v___x_4379_, v_compile_4380_, v_logCompileErrors_4381_, v_isMeta_4382_, v_val_4383_, v_fn_4502_, v___x_4504_, v___x_4506_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -return v___x_4507_; +lean_object* v_fn_4430_; lean_object* v_arg_4431_; lean_object* v___x_4432_; lean_object* v___x_4433_; lean_object* v___x_4434_; lean_object* v___x_4435_; +v_fn_4430_ = lean_ctor_get(v_x_4313_, 0); +lean_inc_ref(v_fn_4430_); +v_arg_4431_ = lean_ctor_get(v_x_4313_, 1); +lean_inc_ref(v_arg_4431_); +lean_dec_ref(v_x_4313_); +v___x_4432_ = lean_array_set(v_x_4314_, v_x_4315_, v_arg_4431_); +v___x_4433_ = lean_unsigned_to_nat(1u); +v___x_4434_ = lean_nat_sub(v_x_4315_, v___x_4433_); +v___x_4435_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21(v_inst_4305_, v_expectedType_4306_, v___x_4307_, v___x_4308_, v_compile_4309_, v_logCompileErrors_4310_, v_isMeta_4311_, v_val_4312_, v_fn_4430_, v___x_4432_, v___x_4434_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +return v___x_4435_; } else { -lean_object* v_cls_4508_; lean_object* v___y_4510_; lean_object* v___y_4511_; lean_object* v___y_4512_; lean_object* v___y_4513_; lean_object* v___x_4531_; -v_cls_4508_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_4531_ = l_Lean_Expr_constName_x3f(v_x_4384_); -if (lean_obj_tag(v___x_4531_) == 0) +lean_object* v_cls_4436_; lean_object* v___y_4438_; lean_object* v___y_4439_; lean_object* v___y_4440_; lean_object* v___y_4441_; lean_object* v___x_4459_; +v_cls_4436_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_4459_ = l_Lean_Expr_constName_x3f(v_x_4313_); +if (lean_obj_tag(v___x_4459_) == 0) { -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -v___y_4510_ = v___y_4387_; -v___y_4511_ = v___y_4388_; -v___y_4512_ = v___y_4389_; -v___y_4513_ = v___y_4390_; -goto v___jp_4509_; +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +v___y_4438_ = v___y_4316_; +v___y_4439_ = v___y_4317_; +v___y_4440_ = v___y_4318_; +v___y_4441_ = v___y_4319_; +goto v___jp_4437_; } else { -lean_object* v_val_4532_; lean_object* v___x_4533_; -v_val_4532_ = lean_ctor_get(v___x_4531_, 0); -lean_inc(v_val_4532_); -lean_dec_ref(v___x_4531_); -v___x_4533_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_4532_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -if (lean_obj_tag(v___x_4533_) == 0) +lean_object* v_val_4460_; lean_object* v___x_4461_; +v_val_4460_ = lean_ctor_get(v___x_4459_, 0); +lean_inc(v_val_4460_); +lean_dec_ref(v___x_4459_); +v___x_4461_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_4460_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +if (lean_obj_tag(v___x_4461_) == 0) { -lean_object* v_a_4534_; -v_a_4534_ = lean_ctor_get(v___x_4533_, 0); -lean_inc(v_a_4534_); -lean_dec_ref(v___x_4533_); -if (lean_obj_tag(v_a_4534_) == 6) +lean_object* v_a_4462_; +v_a_4462_ = lean_ctor_get(v___x_4461_, 0); +lean_inc(v_a_4462_); +lean_dec_ref(v___x_4461_); +if (lean_obj_tag(v_a_4462_) == 6) { -lean_object* v_val_4535_; lean_object* v___x_4536_; -lean_dec_ref(v_inst_4376_); -v_val_4535_ = lean_ctor_get(v_a_4534_, 0); -lean_inc_ref(v_val_4535_); -lean_dec_ref(v_a_4534_); -lean_inc(v___y_4390_); -lean_inc_ref(v___y_4389_); -lean_inc(v___y_4388_); -lean_inc_ref(v___y_4387_); -lean_inc_ref(v_x_4384_); -v___x_4536_ = lean_infer_type(v_x_4384_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -if (lean_obj_tag(v___x_4536_) == 0) +lean_object* v_val_4463_; lean_object* v___x_4464_; +lean_dec_ref(v_inst_4305_); +v_val_4463_ = lean_ctor_get(v_a_4462_, 0); +lean_inc_ref(v_val_4463_); +lean_dec_ref(v_a_4462_); +lean_inc(v___y_4319_); +lean_inc_ref(v___y_4318_); +lean_inc(v___y_4317_); +lean_inc_ref(v___y_4316_); +lean_inc_ref(v_x_4313_); +v___x_4464_ = lean_infer_type(v_x_4313_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +if (lean_obj_tag(v___x_4464_) == 0) { -lean_object* v_a_4537_; uint8_t v___x_4538_; lean_object* v___x_4539_; -v_a_4537_ = lean_ctor_get(v___x_4536_, 0); -lean_inc(v_a_4537_); -lean_dec_ref(v___x_4536_); -v___x_4538_ = 0; -v___x_4539_ = l_Lean_Meta_forallMetaTelescope(v_a_4537_, v___x_4538_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -if (lean_obj_tag(v___x_4539_) == 0) +lean_object* v_a_4465_; uint8_t v___x_4466_; lean_object* v___x_4467_; +v_a_4465_ = lean_ctor_get(v___x_4464_, 0); +lean_inc(v_a_4465_); +lean_dec_ref(v___x_4464_); +v___x_4466_ = 0; +v___x_4467_ = l_Lean_Meta_forallMetaTelescope(v_a_4465_, v___x_4466_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +if (lean_obj_tag(v___x_4467_) == 0) { -lean_object* v_a_4540_; lean_object* v_snd_4541_; lean_object* v_fst_4542_; lean_object* v___x_4544_; uint8_t v_isShared_4545_; uint8_t v_isSharedCheck_4641_; -v_a_4540_ = lean_ctor_get(v___x_4539_, 0); -lean_inc(v_a_4540_); -lean_dec_ref(v___x_4539_); -v_snd_4541_ = lean_ctor_get(v_a_4540_, 1); -v_fst_4542_ = lean_ctor_get(v_a_4540_, 0); -v_isSharedCheck_4641_ = !lean_is_exclusive(v_a_4540_); -if (v_isSharedCheck_4641_ == 0) +lean_object* v_a_4468_; lean_object* v_snd_4469_; lean_object* v_fst_4470_; lean_object* v___x_4472_; uint8_t v_isShared_4473_; uint8_t v_isSharedCheck_4569_; +v_a_4468_ = lean_ctor_get(v___x_4467_, 0); +lean_inc(v_a_4468_); +lean_dec_ref(v___x_4467_); +v_snd_4469_ = lean_ctor_get(v_a_4468_, 1); +v_fst_4470_ = lean_ctor_get(v_a_4468_, 0); +v_isSharedCheck_4569_ = !lean_is_exclusive(v_a_4468_); +if (v_isSharedCheck_4569_ == 0) { -v___x_4544_ = v_a_4540_; -v_isShared_4545_ = v_isSharedCheck_4641_; -goto v_resetjp_4543_; +v___x_4472_ = v_a_4468_; +v_isShared_4473_ = v_isSharedCheck_4569_; +goto v_resetjp_4471_; } else { -lean_inc(v_snd_4541_); -lean_inc(v_fst_4542_); -lean_dec(v_a_4540_); -v___x_4544_ = lean_box(0); -v_isShared_4545_ = v_isSharedCheck_4641_; -goto v_resetjp_4543_; +lean_inc(v_snd_4469_); +lean_inc(v_fst_4470_); +lean_dec(v_a_4468_); +v___x_4472_ = lean_box(0); +v_isShared_4473_ = v_isSharedCheck_4569_; +goto v_resetjp_4471_; } -v_resetjp_4543_: +v_resetjp_4471_: { -lean_object* v_snd_4546_; lean_object* v___x_4548_; uint8_t v_isShared_4549_; uint8_t v_isSharedCheck_4639_; -v_snd_4546_ = lean_ctor_get(v_snd_4541_, 1); -v_isSharedCheck_4639_ = !lean_is_exclusive(v_snd_4541_); -if (v_isSharedCheck_4639_ == 0) +lean_object* v_snd_4474_; lean_object* v___x_4476_; uint8_t v_isShared_4477_; uint8_t v_isSharedCheck_4567_; +v_snd_4474_ = lean_ctor_get(v_snd_4469_, 1); +v_isSharedCheck_4567_ = !lean_is_exclusive(v_snd_4469_); +if (v_isSharedCheck_4567_ == 0) { -lean_object* v_unused_4640_; -v_unused_4640_ = lean_ctor_get(v_snd_4541_, 0); -lean_dec(v_unused_4640_); -v___x_4548_ = v_snd_4541_; -v_isShared_4549_ = v_isSharedCheck_4639_; -goto v_resetjp_4547_; +lean_object* v_unused_4568_; +v_unused_4568_ = lean_ctor_get(v_snd_4469_, 0); +lean_dec(v_unused_4568_); +v___x_4476_ = v_snd_4469_; +v_isShared_4477_ = v_isSharedCheck_4567_; +goto v_resetjp_4475_; } else { -lean_inc(v_snd_4546_); -lean_dec(v_snd_4541_); -v___x_4548_ = lean_box(0); -v_isShared_4549_ = v_isSharedCheck_4639_; -goto v_resetjp_4547_; +lean_inc(v_snd_4474_); +lean_dec(v_snd_4469_); +v___x_4476_ = lean_box(0); +v_isShared_4477_ = v_isSharedCheck_4567_; +goto v_resetjp_4475_; } -v_resetjp_4547_: +v_resetjp_4475_: { -lean_object* v___x_4550_; lean_object* v___y_4552_; lean_object* v___y_4553_; lean_object* v___y_4554_; lean_object* v___y_4555_; lean_object* v___x_4587_; uint8_t v___x_4588_; -v___x_4550_ = lean_array_get_size(v_x_4385_); -v___x_4587_ = lean_array_get_size(v_fst_4542_); -v___x_4588_ = lean_nat_dec_eq(v___x_4550_, v___x_4587_); -if (v___x_4588_ == 0) +lean_object* v___x_4478_; lean_object* v___y_4480_; lean_object* v___y_4481_; lean_object* v___y_4482_; lean_object* v___y_4483_; lean_object* v___x_4515_; uint8_t v___x_4516_; +v___x_4478_ = lean_array_get_size(v_x_4314_); +v___x_4515_ = lean_array_get_size(v_fst_4470_); +v___x_4516_ = lean_nat_dec_eq(v___x_4478_, v___x_4515_); +if (v___x_4516_ == 0) { -lean_object* v___x_4589_; lean_object* v___x_4590_; lean_object* v___x_4592_; -lean_dec(v_snd_4546_); -lean_dec(v_fst_4542_); -lean_dec_ref(v_val_4535_); -lean_dec(v_val_4383_); -lean_dec_ref(v_expectedType_4377_); -v___x_4589_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_4590_ = l_Lean_MessageData_ofExpr(v_x_4384_); -if (v_isShared_4549_ == 0) +lean_object* v___x_4517_; lean_object* v___x_4518_; lean_object* v___x_4520_; +lean_dec(v_snd_4474_); +lean_dec(v_fst_4470_); +lean_dec_ref(v_val_4463_); +lean_dec(v_val_4312_); +lean_dec_ref(v_expectedType_4306_); +v___x_4517_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_4518_ = l_Lean_MessageData_ofExpr(v_x_4313_); +if (v_isShared_4477_ == 0) { -lean_ctor_set_tag(v___x_4548_, 7); -lean_ctor_set(v___x_4548_, 1, v___x_4590_); -lean_ctor_set(v___x_4548_, 0, v___x_4589_); -v___x_4592_ = v___x_4548_; -goto v_reusejp_4591_; +lean_ctor_set_tag(v___x_4476_, 7); +lean_ctor_set(v___x_4476_, 1, v___x_4518_); +lean_ctor_set(v___x_4476_, 0, v___x_4517_); +v___x_4520_ = v___x_4476_; +goto v_reusejp_4519_; } else { -lean_object* v_reuseFailAlloc_4603_; -v_reuseFailAlloc_4603_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4603_, 0, v___x_4589_); -lean_ctor_set(v_reuseFailAlloc_4603_, 1, v___x_4590_); -v___x_4592_ = v_reuseFailAlloc_4603_; -goto v_reusejp_4591_; +lean_object* v_reuseFailAlloc_4531_; +v_reuseFailAlloc_4531_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4531_, 0, v___x_4517_); +lean_ctor_set(v_reuseFailAlloc_4531_, 1, v___x_4518_); +v___x_4520_ = v_reuseFailAlloc_4531_; +goto v_reusejp_4519_; } -v_reusejp_4591_: +v_reusejp_4519_: { -lean_object* v___x_4593_; lean_object* v___x_4595_; -v___x_4593_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_4545_ == 0) +lean_object* v___x_4521_; lean_object* v___x_4523_; +v___x_4521_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_4473_ == 0) { -lean_ctor_set_tag(v___x_4544_, 7); -lean_ctor_set(v___x_4544_, 1, v___x_4593_); -lean_ctor_set(v___x_4544_, 0, v___x_4592_); -v___x_4595_ = v___x_4544_; -goto v_reusejp_4594_; +lean_ctor_set_tag(v___x_4472_, 7); +lean_ctor_set(v___x_4472_, 1, v___x_4521_); +lean_ctor_set(v___x_4472_, 0, v___x_4520_); +v___x_4523_ = v___x_4472_; +goto v_reusejp_4522_; } else { -lean_object* v_reuseFailAlloc_4602_; -v_reuseFailAlloc_4602_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4602_, 0, v___x_4592_); -lean_ctor_set(v_reuseFailAlloc_4602_, 1, v___x_4593_); -v___x_4595_ = v_reuseFailAlloc_4602_; -goto v_reusejp_4594_; +lean_object* v_reuseFailAlloc_4530_; +v_reuseFailAlloc_4530_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4530_, 0, v___x_4520_); +lean_ctor_set(v_reuseFailAlloc_4530_, 1, v___x_4521_); +v___x_4523_ = v_reuseFailAlloc_4530_; +goto v_reusejp_4522_; } -v_reusejp_4594_: +v_reusejp_4522_: { -lean_object* v___x_4596_; lean_object* v___x_4597_; lean_object* v___x_4598_; lean_object* v___x_4599_; lean_object* v___x_4600_; lean_object* v___x_4601_; -v___x_4596_ = lean_array_to_list(v_x_4385_); -v___x_4597_ = lean_box(0); -v___x_4598_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_4596_, v___x_4597_); -v___x_4599_ = l_Lean_MessageData_ofList(v___x_4598_); -v___x_4600_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4600_, 0, v___x_4595_); -lean_ctor_set(v___x_4600_, 1, v___x_4599_); -v___x_4601_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4600_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -return v___x_4601_; +lean_object* v___x_4524_; lean_object* v___x_4525_; lean_object* v___x_4526_; lean_object* v___x_4527_; lean_object* v___x_4528_; lean_object* v___x_4529_; +v___x_4524_ = lean_array_to_list(v_x_4314_); +v___x_4525_ = lean_box(0); +v___x_4526_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_4524_, v___x_4525_); +v___x_4527_ = l_Lean_MessageData_ofList(v___x_4526_); +v___x_4528_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4528_, 0, v___x_4523_); +lean_ctor_set(v___x_4528_, 1, v___x_4527_); +v___x_4529_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4528_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +return v___x_4529_; } } } else { -lean_object* v___x_4604_; -lean_inc_ref(v_expectedType_4377_); -v___x_4604_ = l_Lean_Meta_isExprDefEq(v_expectedType_4377_, v_snd_4546_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -if (lean_obj_tag(v___x_4604_) == 0) +lean_object* v___x_4532_; +lean_inc_ref(v_expectedType_4306_); +v___x_4532_ = l_Lean_Meta_isExprDefEq(v_expectedType_4306_, v_snd_4474_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +if (lean_obj_tag(v___x_4532_) == 0) { -lean_object* v_a_4605_; uint8_t v___x_4606_; -v_a_4605_ = lean_ctor_get(v___x_4604_, 0); -lean_inc(v_a_4605_); -lean_dec_ref(v___x_4604_); -v___x_4606_ = lean_unbox(v_a_4605_); -lean_dec(v_a_4605_); -if (v___x_4606_ == 0) +lean_object* v_a_4533_; uint8_t v___x_4534_; +v_a_4533_ = lean_ctor_get(v___x_4532_, 0); +lean_inc(v_a_4533_); +lean_dec_ref(v___x_4532_); +v___x_4534_ = lean_unbox(v_a_4533_); +lean_dec(v_a_4533_); +if (v___x_4534_ == 0) { -lean_object* v_toConstantVal_4607_; lean_object* v_name_4608_; lean_object* v___x_4609_; lean_object* v___x_4610_; lean_object* v___x_4612_; -lean_dec(v_fst_4542_); -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -v_toConstantVal_4607_ = lean_ctor_get(v_val_4535_, 0); -lean_inc_ref(v_toConstantVal_4607_); -lean_dec_ref(v_val_4535_); -v_name_4608_ = lean_ctor_get(v_toConstantVal_4607_, 0); -lean_inc(v_name_4608_); -lean_dec_ref(v_toConstantVal_4607_); -v___x_4609_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_4610_ = l_Lean_MessageData_ofExpr(v_expectedType_4377_); -if (v_isShared_4549_ == 0) +lean_object* v_toConstantVal_4535_; lean_object* v_name_4536_; lean_object* v___x_4537_; lean_object* v___x_4538_; lean_object* v___x_4540_; +lean_dec(v_fst_4470_); +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +v_toConstantVal_4535_ = lean_ctor_get(v_val_4463_, 0); +lean_inc_ref(v_toConstantVal_4535_); +lean_dec_ref(v_val_4463_); +v_name_4536_ = lean_ctor_get(v_toConstantVal_4535_, 0); +lean_inc(v_name_4536_); +lean_dec_ref(v_toConstantVal_4535_); +v___x_4537_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_4538_ = l_Lean_MessageData_ofExpr(v_expectedType_4306_); +if (v_isShared_4477_ == 0) { -lean_ctor_set_tag(v___x_4548_, 7); -lean_ctor_set(v___x_4548_, 1, v___x_4610_); -lean_ctor_set(v___x_4548_, 0, v___x_4609_); -v___x_4612_ = v___x_4548_; -goto v_reusejp_4611_; +lean_ctor_set_tag(v___x_4476_, 7); +lean_ctor_set(v___x_4476_, 1, v___x_4538_); +lean_ctor_set(v___x_4476_, 0, v___x_4537_); +v___x_4540_ = v___x_4476_; +goto v_reusejp_4539_; } else { -lean_object* v_reuseFailAlloc_4630_; -v_reuseFailAlloc_4630_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4630_, 0, v___x_4609_); -lean_ctor_set(v_reuseFailAlloc_4630_, 1, v___x_4610_); -v___x_4612_ = v_reuseFailAlloc_4630_; -goto v_reusejp_4611_; +lean_object* v_reuseFailAlloc_4558_; +v_reuseFailAlloc_4558_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4558_, 0, v___x_4537_); +lean_ctor_set(v_reuseFailAlloc_4558_, 1, v___x_4538_); +v___x_4540_ = v_reuseFailAlloc_4558_; +goto v_reusejp_4539_; } -v_reusejp_4611_: +v_reusejp_4539_: { -lean_object* v___x_4613_; lean_object* v___x_4615_; -v___x_4613_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_4545_ == 0) +lean_object* v___x_4541_; lean_object* v___x_4543_; +v___x_4541_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_4473_ == 0) { -lean_ctor_set_tag(v___x_4544_, 7); -lean_ctor_set(v___x_4544_, 1, v___x_4613_); -lean_ctor_set(v___x_4544_, 0, v___x_4612_); -v___x_4615_ = v___x_4544_; -goto v_reusejp_4614_; +lean_ctor_set_tag(v___x_4472_, 7); +lean_ctor_set(v___x_4472_, 1, v___x_4541_); +lean_ctor_set(v___x_4472_, 0, v___x_4540_); +v___x_4543_ = v___x_4472_; +goto v_reusejp_4542_; } else { -lean_object* v_reuseFailAlloc_4629_; -v_reuseFailAlloc_4629_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4629_, 0, v___x_4612_); -lean_ctor_set(v_reuseFailAlloc_4629_, 1, v___x_4613_); -v___x_4615_ = v_reuseFailAlloc_4629_; -goto v_reusejp_4614_; +lean_object* v_reuseFailAlloc_4557_; +v_reuseFailAlloc_4557_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4557_, 0, v___x_4540_); +lean_ctor_set(v_reuseFailAlloc_4557_, 1, v___x_4541_); +v___x_4543_ = v_reuseFailAlloc_4557_; +goto v_reusejp_4542_; } -v_reusejp_4614_: +v_reusejp_4542_: { -lean_object* v___x_4616_; lean_object* v___x_4617_; lean_object* v___x_4618_; lean_object* v___x_4619_; lean_object* v___x_4620_; lean_object* v_a_4621_; lean_object* v___x_4623_; uint8_t v_isShared_4624_; uint8_t v_isSharedCheck_4628_; -v___x_4616_ = l_Lean_MessageData_ofConstName(v_name_4608_, v___x_4378_); -v___x_4617_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4617_, 0, v___x_4615_); -lean_ctor_set(v___x_4617_, 1, v___x_4616_); -v___x_4618_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_4619_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4619_, 0, v___x_4617_); -lean_ctor_set(v___x_4619_, 1, v___x_4618_); -v___x_4620_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4619_, v___y_4387_, v___y_4388_, v___y_4389_, v___y_4390_); -v_a_4621_ = lean_ctor_get(v___x_4620_, 0); -v_isSharedCheck_4628_ = !lean_is_exclusive(v___x_4620_); -if (v_isSharedCheck_4628_ == 0) +lean_object* v___x_4544_; lean_object* v___x_4545_; lean_object* v___x_4546_; lean_object* v___x_4547_; lean_object* v___x_4548_; lean_object* v_a_4549_; lean_object* v___x_4551_; uint8_t v_isShared_4552_; uint8_t v_isSharedCheck_4556_; +v___x_4544_ = l_Lean_MessageData_ofConstName(v_name_4536_, v___x_4307_); +v___x_4545_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4545_, 0, v___x_4543_); +lean_ctor_set(v___x_4545_, 1, v___x_4544_); +v___x_4546_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_4547_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4547_, 0, v___x_4545_); +lean_ctor_set(v___x_4547_, 1, v___x_4546_); +v___x_4548_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_4547_, v___y_4316_, v___y_4317_, v___y_4318_, v___y_4319_); +v_a_4549_ = lean_ctor_get(v___x_4548_, 0); +v_isSharedCheck_4556_ = !lean_is_exclusive(v___x_4548_); +if (v_isSharedCheck_4556_ == 0) { -v___x_4623_ = v___x_4620_; -v_isShared_4624_ = v_isSharedCheck_4628_; -goto v_resetjp_4622_; +v___x_4551_ = v___x_4548_; +v_isShared_4552_ = v_isSharedCheck_4556_; +goto v_resetjp_4550_; } else { -lean_inc(v_a_4621_); -lean_dec(v___x_4620_); -v___x_4623_ = lean_box(0); -v_isShared_4624_ = v_isSharedCheck_4628_; -goto v_resetjp_4622_; +lean_inc(v_a_4549_); +lean_dec(v___x_4548_); +v___x_4551_ = lean_box(0); +v_isShared_4552_ = v_isSharedCheck_4556_; +goto v_resetjp_4550_; } -v_resetjp_4622_: +v_resetjp_4550_: { -lean_object* v___x_4626_; -if (v_isShared_4624_ == 0) +lean_object* v___x_4554_; +if (v_isShared_4552_ == 0) { -v___x_4626_ = v___x_4623_; -goto v_reusejp_4625_; +v___x_4554_ = v___x_4551_; +goto v_reusejp_4553_; } else { -lean_object* v_reuseFailAlloc_4627_; -v_reuseFailAlloc_4627_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4627_, 0, v_a_4621_); -v___x_4626_ = v_reuseFailAlloc_4627_; -goto v_reusejp_4625_; +lean_object* v_reuseFailAlloc_4555_; +v_reuseFailAlloc_4555_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4555_, 0, v_a_4549_); +v___x_4554_ = v_reuseFailAlloc_4555_; +goto v_reusejp_4553_; } -v_reusejp_4625_: +v_reusejp_4553_: { -return v___x_4626_; +return v___x_4554_; } } } @@ -16485,208 +16311,208 @@ return v___x_4626_; } else { -lean_del_object(v___x_4548_); -lean_del_object(v___x_4544_); -v___y_4552_ = v___y_4387_; -v___y_4553_ = v___y_4388_; -v___y_4554_ = v___y_4389_; -v___y_4555_ = v___y_4390_; -goto v___jp_4551_; +lean_del_object(v___x_4476_); +lean_del_object(v___x_4472_); +v___y_4480_ = v___y_4316_; +v___y_4481_ = v___y_4317_; +v___y_4482_ = v___y_4318_; +v___y_4483_ = v___y_4319_; +goto v___jp_4479_; } } else { -lean_object* v_a_4631_; lean_object* v___x_4633_; uint8_t v_isShared_4634_; uint8_t v_isSharedCheck_4638_; -lean_del_object(v___x_4548_); -lean_del_object(v___x_4544_); -lean_dec(v_fst_4542_); -lean_dec_ref(v_val_4535_); -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -lean_dec_ref(v_expectedType_4377_); -v_a_4631_ = lean_ctor_get(v___x_4604_, 0); -v_isSharedCheck_4638_ = !lean_is_exclusive(v___x_4604_); -if (v_isSharedCheck_4638_ == 0) +lean_object* v_a_4559_; lean_object* v___x_4561_; uint8_t v_isShared_4562_; uint8_t v_isSharedCheck_4566_; +lean_del_object(v___x_4476_); +lean_del_object(v___x_4472_); +lean_dec(v_fst_4470_); +lean_dec_ref(v_val_4463_); +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +lean_dec_ref(v_expectedType_4306_); +v_a_4559_ = lean_ctor_get(v___x_4532_, 0); +v_isSharedCheck_4566_ = !lean_is_exclusive(v___x_4532_); +if (v_isSharedCheck_4566_ == 0) { -v___x_4633_ = v___x_4604_; -v_isShared_4634_ = v_isSharedCheck_4638_; -goto v_resetjp_4632_; +v___x_4561_ = v___x_4532_; +v_isShared_4562_ = v_isSharedCheck_4566_; +goto v_resetjp_4560_; } else { -lean_inc(v_a_4631_); -lean_dec(v___x_4604_); -v___x_4633_ = lean_box(0); -v_isShared_4634_ = v_isSharedCheck_4638_; -goto v_resetjp_4632_; +lean_inc(v_a_4559_); +lean_dec(v___x_4532_); +v___x_4561_ = lean_box(0); +v_isShared_4562_ = v_isSharedCheck_4566_; +goto v_resetjp_4560_; } -v_resetjp_4632_: +v_resetjp_4560_: { -lean_object* v___x_4636_; -if (v_isShared_4634_ == 0) -{ -v___x_4636_ = v___x_4633_; -goto v_reusejp_4635_; -} -else -{ -lean_object* v_reuseFailAlloc_4637_; -v_reuseFailAlloc_4637_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4637_, 0, v_a_4631_); -v___x_4636_ = v_reuseFailAlloc_4637_; -goto v_reusejp_4635_; -} -v_reusejp_4635_: -{ -return v___x_4636_; -} -} -} -} -v___jp_4551_: -{ -lean_object* v_numParams_4556_; lean_object* v___x_4557_; lean_object* v___x_4558_; -v_numParams_4556_ = lean_ctor_get(v_val_4535_, 3); -lean_inc(v_numParams_4556_); -lean_dec_ref(v_val_4535_); -v___x_4557_ = lean_box(0); -v___x_4558_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(v___x_4550_, v_fst_4542_, v_x_4385_, v___x_4379_, v_compile_4380_, v_logCompileErrors_4381_, v___x_4378_, v_isMeta_4382_, v_val_4383_, v_expectedType_4377_, v_numParams_4556_, v___x_4557_, v___y_4552_, v___y_4553_, v___y_4554_, v___y_4555_); -lean_dec_ref(v_x_4385_); -if (lean_obj_tag(v___x_4558_) == 0) -{ -size_t v_sz_4559_; size_t v___x_4560_; lean_object* v___x_4561_; -lean_dec_ref(v___x_4558_); -v_sz_4559_ = lean_array_size(v_fst_4542_); -v___x_4560_ = ((size_t)0ULL); -v___x_4561_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_4559_, v___x_4560_, v_fst_4542_, v___y_4552_, v___y_4553_, v___y_4554_, v___y_4555_); -if (lean_obj_tag(v___x_4561_) == 0) -{ -lean_object* v_a_4562_; lean_object* v___x_4564_; uint8_t v_isShared_4565_; uint8_t v_isSharedCheck_4570_; -v_a_4562_ = lean_ctor_get(v___x_4561_, 0); -v_isSharedCheck_4570_ = !lean_is_exclusive(v___x_4561_); -if (v_isSharedCheck_4570_ == 0) +lean_object* v___x_4564_; +if (v_isShared_4562_ == 0) { v___x_4564_ = v___x_4561_; -v_isShared_4565_ = v_isSharedCheck_4570_; -goto v_resetjp_4563_; +goto v_reusejp_4563_; } else { -lean_inc(v_a_4562_); -lean_dec(v___x_4561_); -v___x_4564_ = lean_box(0); -v_isShared_4565_ = v_isSharedCheck_4570_; -goto v_resetjp_4563_; +lean_object* v_reuseFailAlloc_4565_; +v_reuseFailAlloc_4565_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4565_, 0, v_a_4559_); +v___x_4564_ = v_reuseFailAlloc_4565_; +goto v_reusejp_4563_; } -v_resetjp_4563_: +v_reusejp_4563_: { -lean_object* v___x_4566_; lean_object* v___x_4568_; -v___x_4566_ = l_Lean_mkAppN(v_x_4384_, v_a_4562_); -lean_dec(v_a_4562_); -if (v_isShared_4565_ == 0) +return v___x_4564_; +} +} +} +} +v___jp_4479_: { -lean_ctor_set(v___x_4564_, 0, v___x_4566_); -v___x_4568_ = v___x_4564_; -goto v_reusejp_4567_; +lean_object* v_numParams_4484_; lean_object* v___x_4485_; lean_object* v___x_4486_; +v_numParams_4484_ = lean_ctor_get(v_val_4463_, 3); +lean_inc(v_numParams_4484_); +lean_dec_ref(v_val_4463_); +v___x_4485_ = lean_box(0); +v___x_4486_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(v___x_4478_, v_fst_4470_, v_x_4314_, v___x_4308_, v_compile_4309_, v_logCompileErrors_4310_, v___x_4307_, v_isMeta_4311_, v_val_4312_, v_expectedType_4306_, v_numParams_4484_, v___x_4485_, v___y_4480_, v___y_4481_, v___y_4482_, v___y_4483_); +lean_dec_ref(v_x_4314_); +if (lean_obj_tag(v___x_4486_) == 0) +{ +size_t v_sz_4487_; size_t v___x_4488_; lean_object* v___x_4489_; +lean_dec_ref(v___x_4486_); +v_sz_4487_ = lean_array_size(v_fst_4470_); +v___x_4488_ = ((size_t)0ULL); +v___x_4489_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_4487_, v___x_4488_, v_fst_4470_, v___y_4480_, v___y_4481_, v___y_4482_, v___y_4483_); +if (lean_obj_tag(v___x_4489_) == 0) +{ +lean_object* v_a_4490_; lean_object* v___x_4492_; uint8_t v_isShared_4493_; uint8_t v_isSharedCheck_4498_; +v_a_4490_ = lean_ctor_get(v___x_4489_, 0); +v_isSharedCheck_4498_ = !lean_is_exclusive(v___x_4489_); +if (v_isSharedCheck_4498_ == 0) +{ +v___x_4492_ = v___x_4489_; +v_isShared_4493_ = v_isSharedCheck_4498_; +goto v_resetjp_4491_; } else { -lean_object* v_reuseFailAlloc_4569_; -v_reuseFailAlloc_4569_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4569_, 0, v___x_4566_); -v___x_4568_ = v_reuseFailAlloc_4569_; -goto v_reusejp_4567_; +lean_inc(v_a_4490_); +lean_dec(v___x_4489_); +v___x_4492_ = lean_box(0); +v_isShared_4493_ = v_isSharedCheck_4498_; +goto v_resetjp_4491_; } -v_reusejp_4567_: +v_resetjp_4491_: { -return v___x_4568_; +lean_object* v___x_4494_; lean_object* v___x_4496_; +v___x_4494_ = l_Lean_mkAppN(v_x_4313_, v_a_4490_); +lean_dec(v_a_4490_); +if (v_isShared_4493_ == 0) +{ +lean_ctor_set(v___x_4492_, 0, v___x_4494_); +v___x_4496_ = v___x_4492_; +goto v_reusejp_4495_; +} +else +{ +lean_object* v_reuseFailAlloc_4497_; +v_reuseFailAlloc_4497_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4497_, 0, v___x_4494_); +v___x_4496_ = v_reuseFailAlloc_4497_; +goto v_reusejp_4495_; +} +v_reusejp_4495_: +{ +return v___x_4496_; } } } else { -lean_object* v_a_4571_; lean_object* v___x_4573_; uint8_t v_isShared_4574_; uint8_t v_isSharedCheck_4578_; -lean_dec_ref(v_x_4384_); -v_a_4571_ = lean_ctor_get(v___x_4561_, 0); -v_isSharedCheck_4578_ = !lean_is_exclusive(v___x_4561_); -if (v_isSharedCheck_4578_ == 0) +lean_object* v_a_4499_; lean_object* v___x_4501_; uint8_t v_isShared_4502_; uint8_t v_isSharedCheck_4506_; +lean_dec_ref(v_x_4313_); +v_a_4499_ = lean_ctor_get(v___x_4489_, 0); +v_isSharedCheck_4506_ = !lean_is_exclusive(v___x_4489_); +if (v_isSharedCheck_4506_ == 0) { -v___x_4573_ = v___x_4561_; -v_isShared_4574_ = v_isSharedCheck_4578_; -goto v_resetjp_4572_; +v___x_4501_ = v___x_4489_; +v_isShared_4502_ = v_isSharedCheck_4506_; +goto v_resetjp_4500_; } else { -lean_inc(v_a_4571_); -lean_dec(v___x_4561_); -v___x_4573_ = lean_box(0); -v_isShared_4574_ = v_isSharedCheck_4578_; -goto v_resetjp_4572_; +lean_inc(v_a_4499_); +lean_dec(v___x_4489_); +v___x_4501_ = lean_box(0); +v_isShared_4502_ = v_isSharedCheck_4506_; +goto v_resetjp_4500_; } -v_resetjp_4572_: +v_resetjp_4500_: { -lean_object* v___x_4576_; -if (v_isShared_4574_ == 0) +lean_object* v___x_4504_; +if (v_isShared_4502_ == 0) { -v___x_4576_ = v___x_4573_; -goto v_reusejp_4575_; +v___x_4504_ = v___x_4501_; +goto v_reusejp_4503_; } else { -lean_object* v_reuseFailAlloc_4577_; -v_reuseFailAlloc_4577_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4577_, 0, v_a_4571_); -v___x_4576_ = v_reuseFailAlloc_4577_; -goto v_reusejp_4575_; +lean_object* v_reuseFailAlloc_4505_; +v_reuseFailAlloc_4505_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4505_, 0, v_a_4499_); +v___x_4504_ = v_reuseFailAlloc_4505_; +goto v_reusejp_4503_; } -v_reusejp_4575_: +v_reusejp_4503_: { -return v___x_4576_; +return v___x_4504_; } } } } else { -lean_object* v_a_4579_; lean_object* v___x_4581_; uint8_t v_isShared_4582_; uint8_t v_isSharedCheck_4586_; -lean_dec(v_fst_4542_); -lean_dec_ref(v_x_4384_); -v_a_4579_ = lean_ctor_get(v___x_4558_, 0); -v_isSharedCheck_4586_ = !lean_is_exclusive(v___x_4558_); -if (v_isSharedCheck_4586_ == 0) +lean_object* v_a_4507_; lean_object* v___x_4509_; uint8_t v_isShared_4510_; uint8_t v_isSharedCheck_4514_; +lean_dec(v_fst_4470_); +lean_dec_ref(v_x_4313_); +v_a_4507_ = lean_ctor_get(v___x_4486_, 0); +v_isSharedCheck_4514_ = !lean_is_exclusive(v___x_4486_); +if (v_isSharedCheck_4514_ == 0) { -v___x_4581_ = v___x_4558_; -v_isShared_4582_ = v_isSharedCheck_4586_; -goto v_resetjp_4580_; +v___x_4509_ = v___x_4486_; +v_isShared_4510_ = v_isSharedCheck_4514_; +goto v_resetjp_4508_; } else { -lean_inc(v_a_4579_); -lean_dec(v___x_4558_); -v___x_4581_ = lean_box(0); -v_isShared_4582_ = v_isSharedCheck_4586_; -goto v_resetjp_4580_; +lean_inc(v_a_4507_); +lean_dec(v___x_4486_); +v___x_4509_ = lean_box(0); +v_isShared_4510_ = v_isSharedCheck_4514_; +goto v_resetjp_4508_; } -v_resetjp_4580_: +v_resetjp_4508_: { -lean_object* v___x_4584_; -if (v_isShared_4582_ == 0) +lean_object* v___x_4512_; +if (v_isShared_4510_ == 0) { -v___x_4584_ = v___x_4581_; -goto v_reusejp_4583_; +v___x_4512_ = v___x_4509_; +goto v_reusejp_4511_; } else { -lean_object* v_reuseFailAlloc_4585_; -v_reuseFailAlloc_4585_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4585_, 0, v_a_4579_); -v___x_4584_ = v_reuseFailAlloc_4585_; -goto v_reusejp_4583_; +lean_object* v_reuseFailAlloc_4513_; +v_reuseFailAlloc_4513_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4513_, 0, v_a_4507_); +v___x_4512_ = v_reuseFailAlloc_4513_; +goto v_reusejp_4511_; } -v_reusejp_4583_: +v_reusejp_4511_: { -return v___x_4584_; +return v___x_4512_; } } } @@ -16696,210 +16522,210 @@ return v___x_4584_; } else { -lean_object* v_a_4642_; lean_object* v___x_4644_; uint8_t v_isShared_4645_; uint8_t v_isSharedCheck_4649_; -lean_dec_ref(v_val_4535_); -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -lean_dec_ref(v_expectedType_4377_); -v_a_4642_ = lean_ctor_get(v___x_4539_, 0); -v_isSharedCheck_4649_ = !lean_is_exclusive(v___x_4539_); -if (v_isSharedCheck_4649_ == 0) +lean_object* v_a_4570_; lean_object* v___x_4572_; uint8_t v_isShared_4573_; uint8_t v_isSharedCheck_4577_; +lean_dec_ref(v_val_4463_); +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +lean_dec_ref(v_expectedType_4306_); +v_a_4570_ = lean_ctor_get(v___x_4467_, 0); +v_isSharedCheck_4577_ = !lean_is_exclusive(v___x_4467_); +if (v_isSharedCheck_4577_ == 0) { -v___x_4644_ = v___x_4539_; -v_isShared_4645_ = v_isSharedCheck_4649_; -goto v_resetjp_4643_; +v___x_4572_ = v___x_4467_; +v_isShared_4573_ = v_isSharedCheck_4577_; +goto v_resetjp_4571_; } else { -lean_inc(v_a_4642_); -lean_dec(v___x_4539_); -v___x_4644_ = lean_box(0); -v_isShared_4645_ = v_isSharedCheck_4649_; -goto v_resetjp_4643_; +lean_inc(v_a_4570_); +lean_dec(v___x_4467_); +v___x_4572_ = lean_box(0); +v_isShared_4573_ = v_isSharedCheck_4577_; +goto v_resetjp_4571_; } -v_resetjp_4643_: +v_resetjp_4571_: { -lean_object* v___x_4647_; -if (v_isShared_4645_ == 0) +lean_object* v___x_4575_; +if (v_isShared_4573_ == 0) { -v___x_4647_ = v___x_4644_; -goto v_reusejp_4646_; +v___x_4575_ = v___x_4572_; +goto v_reusejp_4574_; } else { -lean_object* v_reuseFailAlloc_4648_; -v_reuseFailAlloc_4648_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4648_, 0, v_a_4642_); -v___x_4647_ = v_reuseFailAlloc_4648_; -goto v_reusejp_4646_; +lean_object* v_reuseFailAlloc_4576_; +v_reuseFailAlloc_4576_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4576_, 0, v_a_4570_); +v___x_4575_ = v_reuseFailAlloc_4576_; +goto v_reusejp_4574_; } -v_reusejp_4646_: +v_reusejp_4574_: { -return v___x_4647_; +return v___x_4575_; } } } } else { -lean_dec_ref(v_val_4535_); -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -lean_dec_ref(v_expectedType_4377_); -return v___x_4536_; +lean_dec_ref(v_val_4463_); +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +lean_dec_ref(v_expectedType_4306_); +return v___x_4464_; } } else { -lean_dec(v_a_4534_); -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -v___y_4510_ = v___y_4387_; -v___y_4511_ = v___y_4388_; -v___y_4512_ = v___y_4389_; -v___y_4513_ = v___y_4390_; -goto v___jp_4509_; +lean_dec(v_a_4462_); +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +v___y_4438_ = v___y_4316_; +v___y_4439_ = v___y_4317_; +v___y_4440_ = v___y_4318_; +v___y_4441_ = v___y_4319_; +goto v___jp_4437_; } } else { -lean_object* v_a_4650_; lean_object* v___x_4652_; uint8_t v_isShared_4653_; uint8_t v_isSharedCheck_4657_; -lean_dec_ref(v_x_4385_); -lean_dec_ref(v_x_4384_); -lean_dec(v_val_4383_); -lean_dec_ref(v_expectedType_4377_); -lean_dec_ref(v_inst_4376_); -v_a_4650_ = lean_ctor_get(v___x_4533_, 0); -v_isSharedCheck_4657_ = !lean_is_exclusive(v___x_4533_); -if (v_isSharedCheck_4657_ == 0) +lean_object* v_a_4578_; lean_object* v___x_4580_; uint8_t v_isShared_4581_; uint8_t v_isSharedCheck_4585_; +lean_dec_ref(v_x_4314_); +lean_dec_ref(v_x_4313_); +lean_dec(v_val_4312_); +lean_dec_ref(v_expectedType_4306_); +lean_dec_ref(v_inst_4305_); +v_a_4578_ = lean_ctor_get(v___x_4461_, 0); +v_isSharedCheck_4585_ = !lean_is_exclusive(v___x_4461_); +if (v_isSharedCheck_4585_ == 0) { -v___x_4652_ = v___x_4533_; -v_isShared_4653_ = v_isSharedCheck_4657_; -goto v_resetjp_4651_; +v___x_4580_ = v___x_4461_; +v_isShared_4581_ = v_isSharedCheck_4585_; +goto v_resetjp_4579_; } else { -lean_inc(v_a_4650_); -lean_dec(v___x_4533_); -v___x_4652_ = lean_box(0); -v_isShared_4653_ = v_isSharedCheck_4657_; -goto v_resetjp_4651_; +lean_inc(v_a_4578_); +lean_dec(v___x_4461_); +v___x_4580_ = lean_box(0); +v_isShared_4581_ = v_isSharedCheck_4585_; +goto v_resetjp_4579_; } -v_resetjp_4651_: +v_resetjp_4579_: { -lean_object* v___x_4655_; -if (v_isShared_4653_ == 0) +lean_object* v___x_4583_; +if (v_isShared_4581_ == 0) { -v___x_4655_ = v___x_4652_; -goto v_reusejp_4654_; +v___x_4583_ = v___x_4580_; +goto v_reusejp_4582_; } else { -lean_object* v_reuseFailAlloc_4656_; -v_reuseFailAlloc_4656_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4656_, 0, v_a_4650_); -v___x_4655_ = v_reuseFailAlloc_4656_; -goto v_reusejp_4654_; +lean_object* v_reuseFailAlloc_4584_; +v_reuseFailAlloc_4584_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4584_, 0, v_a_4578_); +v___x_4583_ = v_reuseFailAlloc_4584_; +goto v_reusejp_4582_; } -v_reusejp_4654_: +v_reusejp_4582_: { -return v___x_4655_; +return v___x_4583_; } } } } -v___jp_4509_: +v___jp_4437_: { -lean_object* v_options_4514_; uint8_t v_hasTrace_4515_; -v_options_4514_ = lean_ctor_get(v___y_4512_, 2); -v_hasTrace_4515_ = lean_ctor_get_uint8(v_options_4514_, sizeof(void*)*1); -if (v_hasTrace_4515_ == 0) +lean_object* v_options_4442_; uint8_t v_hasTrace_4443_; +v_options_4442_ = lean_ctor_get(v___y_4440_, 2); +v_hasTrace_4443_ = lean_ctor_get_uint8(v_options_4442_, sizeof(void*)*1); +if (v_hasTrace_4443_ == 0) { -v___y_4432_ = v___y_4510_; -v___y_4433_ = v___y_4511_; -v___y_4434_ = v___y_4512_; -v_options_4435_ = v_options_4514_; -v___y_4436_ = v___y_4513_; -goto v___jp_4431_; +v___y_4361_ = v___y_4438_; +v___y_4362_ = v___y_4439_; +v___y_4363_ = v___y_4440_; +v_options_4364_ = v_options_4442_; +v___y_4365_ = v___y_4441_; +goto v___jp_4360_; } else { -lean_object* v_inheritedTraceOptions_4516_; lean_object* v___x_4517_; uint8_t v___x_4518_; -v_inheritedTraceOptions_4516_ = lean_ctor_get(v___y_4512_, 13); -v___x_4517_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_4518_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_4516_, v_options_4514_, v___x_4517_); -if (v___x_4518_ == 0) +lean_object* v_inheritedTraceOptions_4444_; lean_object* v___x_4445_; uint8_t v___x_4446_; +v_inheritedTraceOptions_4444_ = lean_ctor_get(v___y_4440_, 13); +v___x_4445_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_4446_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_4444_, v_options_4442_, v___x_4445_); +if (v___x_4446_ == 0) { -v___y_4432_ = v___y_4510_; -v___y_4433_ = v___y_4511_; -v___y_4434_ = v___y_4512_; -v_options_4435_ = v_options_4514_; -v___y_4436_ = v___y_4513_; -goto v___jp_4431_; +v___y_4361_ = v___y_4438_; +v___y_4362_ = v___y_4439_; +v___y_4363_ = v___y_4440_; +v_options_4364_ = v_options_4442_; +v___y_4365_ = v___y_4441_; +goto v___jp_4360_; } else { -lean_object* v___x_4519_; lean_object* v___x_4520_; lean_object* v___x_4521_; lean_object* v___x_4522_; -v___x_4519_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_4376_); -v___x_4520_ = l_Lean_MessageData_ofExpr(v_inst_4376_); -v___x_4521_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4521_, 0, v___x_4519_); -lean_ctor_set(v___x_4521_, 1, v___x_4520_); -v___x_4522_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_4508_, v___x_4521_, v___y_4510_, v___y_4511_, v___y_4512_, v___y_4513_); -if (lean_obj_tag(v___x_4522_) == 0) +lean_object* v___x_4447_; lean_object* v___x_4448_; lean_object* v___x_4449_; lean_object* v___x_4450_; +v___x_4447_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_4305_); +v___x_4448_ = l_Lean_MessageData_ofExpr(v_inst_4305_); +v___x_4449_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4449_, 0, v___x_4447_); +lean_ctor_set(v___x_4449_, 1, v___x_4448_); +v___x_4450_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_4436_, v___x_4449_, v___y_4438_, v___y_4439_, v___y_4440_, v___y_4441_); +if (lean_obj_tag(v___x_4450_) == 0) { -lean_dec_ref(v___x_4522_); -v___y_4432_ = v___y_4510_; -v___y_4433_ = v___y_4511_; -v___y_4434_ = v___y_4512_; -v_options_4435_ = v_options_4514_; -v___y_4436_ = v___y_4513_; -goto v___jp_4431_; +lean_dec_ref(v___x_4450_); +v___y_4361_ = v___y_4438_; +v___y_4362_ = v___y_4439_; +v___y_4363_ = v___y_4440_; +v_options_4364_ = v_options_4442_; +v___y_4365_ = v___y_4441_; +goto v___jp_4360_; } else { -lean_object* v_a_4523_; lean_object* v___x_4525_; uint8_t v_isShared_4526_; uint8_t v_isSharedCheck_4530_; -lean_dec_ref(v_expectedType_4377_); -lean_dec_ref(v_inst_4376_); -v_a_4523_ = lean_ctor_get(v___x_4522_, 0); -v_isSharedCheck_4530_ = !lean_is_exclusive(v___x_4522_); -if (v_isSharedCheck_4530_ == 0) +lean_object* v_a_4451_; lean_object* v___x_4453_; uint8_t v_isShared_4454_; uint8_t v_isSharedCheck_4458_; +lean_dec_ref(v_expectedType_4306_); +lean_dec_ref(v_inst_4305_); +v_a_4451_ = lean_ctor_get(v___x_4450_, 0); +v_isSharedCheck_4458_ = !lean_is_exclusive(v___x_4450_); +if (v_isSharedCheck_4458_ == 0) { -v___x_4525_ = v___x_4522_; -v_isShared_4526_ = v_isSharedCheck_4530_; -goto v_resetjp_4524_; +v___x_4453_ = v___x_4450_; +v_isShared_4454_ = v_isSharedCheck_4458_; +goto v_resetjp_4452_; } else { -lean_inc(v_a_4523_); -lean_dec(v___x_4522_); -v___x_4525_ = lean_box(0); -v_isShared_4526_ = v_isSharedCheck_4530_; -goto v_resetjp_4524_; +lean_inc(v_a_4451_); +lean_dec(v___x_4450_); +v___x_4453_ = lean_box(0); +v_isShared_4454_ = v_isSharedCheck_4458_; +goto v_resetjp_4452_; } -v_resetjp_4524_: +v_resetjp_4452_: { -lean_object* v___x_4528_; -if (v_isShared_4526_ == 0) +lean_object* v___x_4456_; +if (v_isShared_4454_ == 0) { -v___x_4528_ = v___x_4525_; -goto v_reusejp_4527_; +v___x_4456_ = v___x_4453_; +goto v_reusejp_4455_; } else { -lean_object* v_reuseFailAlloc_4529_; -v_reuseFailAlloc_4529_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4529_, 0, v_a_4523_); -v___x_4528_ = v_reuseFailAlloc_4529_; -goto v_reusejp_4527_; +lean_object* v_reuseFailAlloc_4457_; +v_reuseFailAlloc_4457_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4457_, 0, v_a_4451_); +v___x_4456_ = v_reuseFailAlloc_4457_; +goto v_reusejp_4455_; } -v_reusejp_4527_: +v_reusejp_4455_: { -return v___x_4528_; +return v___x_4456_; } } } @@ -16907,377 +16733,376 @@ return v___x_4528_; } } } -v___jp_4392_: +v___jp_4321_: { -lean_object* v___x_4397_; -v___x_4397_ = l_Lean_enableRealizationsForConst(v___y_4393_, v___y_4395_, v___y_4396_); -if (lean_obj_tag(v___x_4397_) == 0) +lean_object* v___x_4326_; +v___x_4326_ = l_Lean_enableRealizationsForConst(v___y_4323_, v___y_4324_, v___y_4325_); +if (lean_obj_tag(v___x_4326_) == 0) { -lean_object* v___x_4399_; uint8_t v_isShared_4400_; uint8_t v_isSharedCheck_4404_; -v_isSharedCheck_4404_ = !lean_is_exclusive(v___x_4397_); -if (v_isSharedCheck_4404_ == 0) +lean_object* v___x_4328_; uint8_t v_isShared_4329_; uint8_t v_isSharedCheck_4333_; +v_isSharedCheck_4333_ = !lean_is_exclusive(v___x_4326_); +if (v_isSharedCheck_4333_ == 0) { -lean_object* v_unused_4405_; -v_unused_4405_ = lean_ctor_get(v___x_4397_, 0); -lean_dec(v_unused_4405_); -v___x_4399_ = v___x_4397_; -v_isShared_4400_ = v_isSharedCheck_4404_; -goto v_resetjp_4398_; +lean_object* v_unused_4334_; +v_unused_4334_ = lean_ctor_get(v___x_4326_, 0); +lean_dec(v_unused_4334_); +v___x_4328_ = v___x_4326_; +v_isShared_4329_ = v_isSharedCheck_4333_; +goto v_resetjp_4327_; } else { -lean_dec(v___x_4397_); -v___x_4399_ = lean_box(0); -v_isShared_4400_ = v_isSharedCheck_4404_; -goto v_resetjp_4398_; +lean_dec(v___x_4326_); +v___x_4328_ = lean_box(0); +v_isShared_4329_ = v_isSharedCheck_4333_; +goto v_resetjp_4327_; } -v_resetjp_4398_: +v_resetjp_4327_: { -lean_object* v___x_4402_; -if (v_isShared_4400_ == 0) +lean_object* v___x_4331_; +if (v_isShared_4329_ == 0) { -lean_ctor_set(v___x_4399_, 0, v___y_4394_); -v___x_4402_ = v___x_4399_; -goto v_reusejp_4401_; +lean_ctor_set(v___x_4328_, 0, v___y_4322_); +v___x_4331_ = v___x_4328_; +goto v_reusejp_4330_; } else { -lean_object* v_reuseFailAlloc_4403_; -v_reuseFailAlloc_4403_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4403_, 0, v___y_4394_); -v___x_4402_ = v_reuseFailAlloc_4403_; -goto v_reusejp_4401_; +lean_object* v_reuseFailAlloc_4332_; +v_reuseFailAlloc_4332_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4332_, 0, v___y_4322_); +v___x_4331_ = v_reuseFailAlloc_4332_; +goto v_reusejp_4330_; } -v_reusejp_4401_: +v_reusejp_4330_: { -return v___x_4402_; +return v___x_4331_; } } } else { -lean_object* v_a_4406_; lean_object* v___x_4408_; uint8_t v_isShared_4409_; uint8_t v_isSharedCheck_4413_; -lean_dec_ref(v___y_4394_); -v_a_4406_ = lean_ctor_get(v___x_4397_, 0); -v_isSharedCheck_4413_ = !lean_is_exclusive(v___x_4397_); +lean_object* v_a_4335_; lean_object* v___x_4337_; uint8_t v_isShared_4338_; uint8_t v_isSharedCheck_4342_; +lean_dec_ref(v___y_4322_); +v_a_4335_ = lean_ctor_get(v___x_4326_, 0); +v_isSharedCheck_4342_ = !lean_is_exclusive(v___x_4326_); +if (v_isSharedCheck_4342_ == 0) +{ +v___x_4337_ = v___x_4326_; +v_isShared_4338_ = v_isSharedCheck_4342_; +goto v_resetjp_4336_; +} +else +{ +lean_inc(v_a_4335_); +lean_dec(v___x_4326_); +v___x_4337_ = lean_box(0); +v_isShared_4338_ = v_isSharedCheck_4342_; +goto v_resetjp_4336_; +} +v_resetjp_4336_: +{ +lean_object* v___x_4340_; +if (v_isShared_4338_ == 0) +{ +v___x_4340_ = v___x_4337_; +goto v_reusejp_4339_; +} +else +{ +lean_object* v_reuseFailAlloc_4341_; +v_reuseFailAlloc_4341_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4341_, 0, v_a_4335_); +v___x_4340_ = v_reuseFailAlloc_4341_; +goto v_reusejp_4339_; +} +v_reusejp_4339_: +{ +return v___x_4340_; +} +} +} +} +v___jp_4343_: +{ +if (v_compile_4309_ == 0) +{ +v___y_4322_ = v___y_4344_; +v___y_4323_ = v___y_4345_; +v___y_4324_ = v___y_4346_; +v___y_4325_ = v___y_4347_; +goto v___jp_4321_; +} +else +{ +lean_object* v___x_4348_; lean_object* v___x_4349_; lean_object* v___x_4350_; lean_object* v___x_4351_; +v___x_4348_ = lean_unsigned_to_nat(1u); +v___x_4349_ = lean_mk_empty_array_with_capacity(v___x_4348_); +lean_inc(v___y_4345_); +v___x_4350_ = lean_array_push(v___x_4349_, v___y_4345_); +v___x_4351_ = l_Lean_compileDecls(v___x_4350_, v_logCompileErrors_4310_, v___y_4346_, v___y_4347_); +if (lean_obj_tag(v___x_4351_) == 0) +{ +lean_dec_ref(v___x_4351_); +v___y_4322_ = v___y_4344_; +v___y_4323_ = v___y_4345_; +v___y_4324_ = v___y_4346_; +v___y_4325_ = v___y_4347_; +goto v___jp_4321_; +} +else +{ +lean_object* v_a_4352_; lean_object* v___x_4354_; uint8_t v_isShared_4355_; uint8_t v_isSharedCheck_4359_; +lean_dec(v___y_4345_); +lean_dec_ref(v___y_4344_); +v_a_4352_ = lean_ctor_get(v___x_4351_, 0); +v_isSharedCheck_4359_ = !lean_is_exclusive(v___x_4351_); +if (v_isSharedCheck_4359_ == 0) +{ +v___x_4354_ = v___x_4351_; +v_isShared_4355_ = v_isSharedCheck_4359_; +goto v_resetjp_4353_; +} +else +{ +lean_inc(v_a_4352_); +lean_dec(v___x_4351_); +v___x_4354_ = lean_box(0); +v_isShared_4355_ = v_isSharedCheck_4359_; +goto v_resetjp_4353_; +} +v_resetjp_4353_: +{ +lean_object* v___x_4357_; +if (v_isShared_4355_ == 0) +{ +v___x_4357_ = v___x_4354_; +goto v_reusejp_4356_; +} +else +{ +lean_object* v_reuseFailAlloc_4358_; +v_reuseFailAlloc_4358_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4358_, 0, v_a_4352_); +v___x_4357_ = v_reuseFailAlloc_4358_; +goto v_reusejp_4356_; +} +v_reusejp_4356_: +{ +return v___x_4357_; +} +} +} +} +} +v___jp_4360_: +{ +lean_object* v___x_4366_; uint8_t v___x_4367_; +v___x_4366_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_4367_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4364_, v___x_4366_); +if (v___x_4367_ == 0) +{ +lean_object* v___x_4368_; +lean_dec_ref(v_expectedType_4306_); +v___x_4368_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4368_, 0, v_inst_4305_); +return v___x_4368_; +} +else +{ +lean_object* v___x_4369_; +lean_inc(v___y_4365_); +lean_inc_ref(v___y_4363_); +lean_inc(v___y_4362_); +lean_inc_ref(v___y_4361_); +lean_inc_ref(v_inst_4305_); +v___x_4369_ = lean_infer_type(v_inst_4305_, v___y_4361_, v___y_4362_, v___y_4363_, v___y_4365_); +if (lean_obj_tag(v___x_4369_) == 0) +{ +lean_object* v_a_4370_; lean_object* v___x_4371_; +v_a_4370_ = lean_ctor_get(v___x_4369_, 0); +lean_inc(v_a_4370_); +lean_dec_ref(v___x_4369_); +lean_inc_ref(v_expectedType_4306_); +v___x_4371_ = l_Lean_Meta_isExprDefEq(v_expectedType_4306_, v_a_4370_, v___y_4361_, v___y_4362_, v___y_4363_, v___y_4365_); +if (lean_obj_tag(v___x_4371_) == 0) +{ +lean_object* v_a_4372_; lean_object* v___x_4374_; uint8_t v_isShared_4375_; uint8_t v_isSharedCheck_4421_; +v_a_4372_ = lean_ctor_get(v___x_4371_, 0); +v_isSharedCheck_4421_ = !lean_is_exclusive(v___x_4371_); +if (v_isSharedCheck_4421_ == 0) +{ +v___x_4374_ = v___x_4371_; +v_isShared_4375_ = v_isSharedCheck_4421_; +goto v_resetjp_4373_; +} +else +{ +lean_inc(v_a_4372_); +lean_dec(v___x_4371_); +v___x_4374_ = lean_box(0); +v_isShared_4375_ = v_isSharedCheck_4421_; +goto v_resetjp_4373_; +} +v_resetjp_4373_: +{ +uint8_t v___x_4376_; +v___x_4376_ = lean_unbox(v_a_4372_); +lean_dec(v_a_4372_); +if (v___x_4376_ == 0) +{ +lean_object* v___x_4377_; lean_object* v___x_4378_; lean_object* v_a_4379_; lean_object* v___x_4380_; +lean_del_object(v___x_4374_); +v___x_4377_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_4378_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_4377_, v___y_4365_); +v_a_4379_ = lean_ctor_get(v___x_4378_, 0); +lean_inc_n(v_a_4379_, 2); +lean_dec_ref(v___x_4378_); +v___x_4380_ = l_Lean_Meta_mkAuxDefinition(v_a_4379_, v_expectedType_4306_, v_inst_4305_, v___x_4307_, v___x_4307_, v___x_4308_, v___y_4361_, v___y_4362_, v___y_4363_, v___y_4365_); +if (lean_obj_tag(v___x_4380_) == 0) +{ +if (v_isMeta_4311_ == 0) +{ +lean_object* v_a_4381_; +v_a_4381_ = lean_ctor_get(v___x_4380_, 0); +lean_inc(v_a_4381_); +lean_dec_ref(v___x_4380_); +v___y_4344_ = v_a_4381_; +v___y_4345_ = v_a_4379_; +v___y_4346_ = v___y_4363_; +v___y_4347_ = v___y_4365_; +goto v___jp_4343_; +} +else +{ +lean_object* v_a_4382_; lean_object* v___x_4383_; lean_object* v_env_4384_; lean_object* v_nextMacroScope_4385_; lean_object* v_ngen_4386_; lean_object* v_auxDeclNGen_4387_; lean_object* v_traceState_4388_; lean_object* v_messages_4389_; lean_object* v_infoState_4390_; lean_object* v_snapshotTasks_4391_; lean_object* v___x_4393_; uint8_t v_isShared_4394_; uint8_t v_isSharedCheck_4416_; +v_a_4382_ = lean_ctor_get(v___x_4380_, 0); +lean_inc(v_a_4382_); +lean_dec_ref(v___x_4380_); +v___x_4383_ = lean_st_ref_take(v___y_4365_); +v_env_4384_ = lean_ctor_get(v___x_4383_, 0); +v_nextMacroScope_4385_ = lean_ctor_get(v___x_4383_, 1); +v_ngen_4386_ = lean_ctor_get(v___x_4383_, 2); +v_auxDeclNGen_4387_ = lean_ctor_get(v___x_4383_, 3); +v_traceState_4388_ = lean_ctor_get(v___x_4383_, 4); +v_messages_4389_ = lean_ctor_get(v___x_4383_, 6); +v_infoState_4390_ = lean_ctor_get(v___x_4383_, 7); +v_snapshotTasks_4391_ = lean_ctor_get(v___x_4383_, 8); +v_isSharedCheck_4416_ = !lean_is_exclusive(v___x_4383_); +if (v_isSharedCheck_4416_ == 0) +{ +lean_object* v_unused_4417_; +v_unused_4417_ = lean_ctor_get(v___x_4383_, 5); +lean_dec(v_unused_4417_); +v___x_4393_ = v___x_4383_; +v_isShared_4394_ = v_isSharedCheck_4416_; +goto v_resetjp_4392_; +} +else +{ +lean_inc(v_snapshotTasks_4391_); +lean_inc(v_infoState_4390_); +lean_inc(v_messages_4389_); +lean_inc(v_traceState_4388_); +lean_inc(v_auxDeclNGen_4387_); +lean_inc(v_ngen_4386_); +lean_inc(v_nextMacroScope_4385_); +lean_inc(v_env_4384_); +lean_dec(v___x_4383_); +v___x_4393_ = lean_box(0); +v_isShared_4394_ = v_isSharedCheck_4416_; +goto v_resetjp_4392_; +} +v_resetjp_4392_: +{ +lean_object* v___x_4395_; lean_object* v___x_4396_; lean_object* v___x_4398_; +lean_inc(v_a_4379_); +v___x_4395_ = l_Lean_markMeta(v_env_4384_, v_a_4379_); +v___x_4396_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_4394_ == 0) +{ +lean_ctor_set(v___x_4393_, 5, v___x_4396_); +lean_ctor_set(v___x_4393_, 0, v___x_4395_); +v___x_4398_ = v___x_4393_; +goto v_reusejp_4397_; +} +else +{ +lean_object* v_reuseFailAlloc_4415_; +v_reuseFailAlloc_4415_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_4415_, 0, v___x_4395_); +lean_ctor_set(v_reuseFailAlloc_4415_, 1, v_nextMacroScope_4385_); +lean_ctor_set(v_reuseFailAlloc_4415_, 2, v_ngen_4386_); +lean_ctor_set(v_reuseFailAlloc_4415_, 3, v_auxDeclNGen_4387_); +lean_ctor_set(v_reuseFailAlloc_4415_, 4, v_traceState_4388_); +lean_ctor_set(v_reuseFailAlloc_4415_, 5, v___x_4396_); +lean_ctor_set(v_reuseFailAlloc_4415_, 6, v_messages_4389_); +lean_ctor_set(v_reuseFailAlloc_4415_, 7, v_infoState_4390_); +lean_ctor_set(v_reuseFailAlloc_4415_, 8, v_snapshotTasks_4391_); +v___x_4398_ = v_reuseFailAlloc_4415_; +goto v_reusejp_4397_; +} +v_reusejp_4397_: +{ +lean_object* v___x_4399_; lean_object* v___x_4400_; lean_object* v_mctx_4401_; lean_object* v_zetaDeltaFVarIds_4402_; lean_object* v_postponed_4403_; lean_object* v_diag_4404_; lean_object* v___x_4406_; uint8_t v_isShared_4407_; uint8_t v_isSharedCheck_4413_; +v___x_4399_ = lean_st_ref_set(v___y_4365_, v___x_4398_); +v___x_4400_ = lean_st_ref_take(v___y_4362_); +v_mctx_4401_ = lean_ctor_get(v___x_4400_, 0); +v_zetaDeltaFVarIds_4402_ = lean_ctor_get(v___x_4400_, 2); +v_postponed_4403_ = lean_ctor_get(v___x_4400_, 3); +v_diag_4404_ = lean_ctor_get(v___x_4400_, 4); +v_isSharedCheck_4413_ = !lean_is_exclusive(v___x_4400_); if (v_isSharedCheck_4413_ == 0) { -v___x_4408_ = v___x_4397_; -v_isShared_4409_ = v_isSharedCheck_4413_; -goto v_resetjp_4407_; +lean_object* v_unused_4414_; +v_unused_4414_ = lean_ctor_get(v___x_4400_, 1); +lean_dec(v_unused_4414_); +v___x_4406_ = v___x_4400_; +v_isShared_4407_ = v_isSharedCheck_4413_; +goto v_resetjp_4405_; } else { -lean_inc(v_a_4406_); -lean_dec(v___x_4397_); -v___x_4408_ = lean_box(0); -v_isShared_4409_ = v_isSharedCheck_4413_; -goto v_resetjp_4407_; +lean_inc(v_diag_4404_); +lean_inc(v_postponed_4403_); +lean_inc(v_zetaDeltaFVarIds_4402_); +lean_inc(v_mctx_4401_); +lean_dec(v___x_4400_); +v___x_4406_ = lean_box(0); +v_isShared_4407_ = v_isSharedCheck_4413_; +goto v_resetjp_4405_; } -v_resetjp_4407_: +v_resetjp_4405_: { -lean_object* v___x_4411_; -if (v_isShared_4409_ == 0) +lean_object* v___x_4408_; lean_object* v___x_4410_; +v___x_4408_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_4407_ == 0) { -v___x_4411_ = v___x_4408_; -goto v_reusejp_4410_; +lean_ctor_set(v___x_4406_, 1, v___x_4408_); +v___x_4410_ = v___x_4406_; +goto v_reusejp_4409_; } else { lean_object* v_reuseFailAlloc_4412_; -v_reuseFailAlloc_4412_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4412_, 0, v_a_4406_); -v___x_4411_ = v_reuseFailAlloc_4412_; -goto v_reusejp_4410_; +v_reuseFailAlloc_4412_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_4412_, 0, v_mctx_4401_); +lean_ctor_set(v_reuseFailAlloc_4412_, 1, v___x_4408_); +lean_ctor_set(v_reuseFailAlloc_4412_, 2, v_zetaDeltaFVarIds_4402_); +lean_ctor_set(v_reuseFailAlloc_4412_, 3, v_postponed_4403_); +lean_ctor_set(v_reuseFailAlloc_4412_, 4, v_diag_4404_); +v___x_4410_ = v_reuseFailAlloc_4412_; +goto v_reusejp_4409_; } -v_reusejp_4410_: +v_reusejp_4409_: { -return v___x_4411_; -} -} -} -} -v___jp_4414_: -{ -if (v_compile_4380_ == 0) -{ -v___y_4393_ = v___y_4415_; -v___y_4394_ = v___y_4416_; -v___y_4395_ = v___y_4417_; -v___y_4396_ = v___y_4418_; -goto v___jp_4392_; -} -else -{ -lean_object* v___x_4419_; lean_object* v___x_4420_; lean_object* v___x_4421_; lean_object* v___x_4422_; -v___x_4419_ = lean_unsigned_to_nat(1u); -v___x_4420_ = lean_mk_empty_array_with_capacity(v___x_4419_); -lean_inc(v___y_4415_); -v___x_4421_ = lean_array_push(v___x_4420_, v___y_4415_); -v___x_4422_ = l_Lean_compileDecls(v___x_4421_, v_logCompileErrors_4381_, v___y_4417_, v___y_4418_); -if (lean_obj_tag(v___x_4422_) == 0) -{ -lean_dec_ref(v___x_4422_); -v___y_4393_ = v___y_4415_; -v___y_4394_ = v___y_4416_; -v___y_4395_ = v___y_4417_; -v___y_4396_ = v___y_4418_; -goto v___jp_4392_; -} -else -{ -lean_object* v_a_4423_; lean_object* v___x_4425_; uint8_t v_isShared_4426_; uint8_t v_isSharedCheck_4430_; -lean_dec_ref(v___y_4416_); -lean_dec(v___y_4415_); -v_a_4423_ = lean_ctor_get(v___x_4422_, 0); -v_isSharedCheck_4430_ = !lean_is_exclusive(v___x_4422_); -if (v_isSharedCheck_4430_ == 0) -{ -v___x_4425_ = v___x_4422_; -v_isShared_4426_ = v_isSharedCheck_4430_; -goto v_resetjp_4424_; -} -else -{ -lean_inc(v_a_4423_); -lean_dec(v___x_4422_); -v___x_4425_ = lean_box(0); -v_isShared_4426_ = v_isSharedCheck_4430_; -goto v_resetjp_4424_; -} -v_resetjp_4424_: -{ -lean_object* v___x_4428_; -if (v_isShared_4426_ == 0) -{ -v___x_4428_ = v___x_4425_; -goto v_reusejp_4427_; -} -else -{ -lean_object* v_reuseFailAlloc_4429_; -v_reuseFailAlloc_4429_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4429_, 0, v_a_4423_); -v___x_4428_ = v_reuseFailAlloc_4429_; -goto v_reusejp_4427_; -} -v_reusejp_4427_: -{ -return v___x_4428_; -} -} -} -} -} -v___jp_4431_: -{ -lean_object* v___x_4437_; uint8_t v___x_4438_; -v___x_4437_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_4438_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4435_, v___x_4437_); -if (v___x_4438_ == 0) -{ -lean_object* v___x_4439_; -lean_dec_ref(v_expectedType_4377_); -v___x_4439_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4439_, 0, v_inst_4376_); -return v___x_4439_; -} -else -{ -lean_object* v___x_4440_; -lean_inc(v___y_4436_); -lean_inc_ref(v___y_4434_); -lean_inc(v___y_4433_); -lean_inc_ref(v___y_4432_); -lean_inc_ref(v_inst_4376_); -v___x_4440_ = lean_infer_type(v_inst_4376_, v___y_4432_, v___y_4433_, v___y_4434_, v___y_4436_); -if (lean_obj_tag(v___x_4440_) == 0) -{ -lean_object* v_a_4441_; lean_object* v___x_4442_; -v_a_4441_ = lean_ctor_get(v___x_4440_, 0); -lean_inc(v_a_4441_); -lean_dec_ref(v___x_4440_); -lean_inc_ref(v_expectedType_4377_); -v___x_4442_ = l_Lean_Meta_isExprDefEq(v_expectedType_4377_, v_a_4441_, v___y_4432_, v___y_4433_, v___y_4434_, v___y_4436_); -if (lean_obj_tag(v___x_4442_) == 0) -{ -lean_object* v_a_4443_; lean_object* v___x_4445_; uint8_t v_isShared_4446_; uint8_t v_isSharedCheck_4493_; -v_a_4443_ = lean_ctor_get(v___x_4442_, 0); -v_isSharedCheck_4493_ = !lean_is_exclusive(v___x_4442_); -if (v_isSharedCheck_4493_ == 0) -{ -v___x_4445_ = v___x_4442_; -v_isShared_4446_ = v_isSharedCheck_4493_; -goto v_resetjp_4444_; -} -else -{ -lean_inc(v_a_4443_); -lean_dec(v___x_4442_); -v___x_4445_ = lean_box(0); -v_isShared_4446_ = v_isSharedCheck_4493_; -goto v_resetjp_4444_; -} -v_resetjp_4444_: -{ -uint8_t v___x_4447_; -v___x_4447_ = lean_unbox(v_a_4443_); -lean_dec(v_a_4443_); -if (v___x_4447_ == 0) -{ -lean_object* v___x_4448_; lean_object* v___x_4449_; lean_object* v_a_4450_; lean_object* v___x_4451_; -lean_del_object(v___x_4445_); -v___x_4448_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_4449_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_4448_, v___y_4436_); -v_a_4450_ = lean_ctor_get(v___x_4449_, 0); -lean_inc_n(v_a_4450_, 2); -lean_dec_ref(v___x_4449_); -v___x_4451_ = l_Lean_Meta_mkAuxDefinition(v_a_4450_, v_expectedType_4377_, v_inst_4376_, v___x_4378_, v___x_4378_, v___x_4379_, v___y_4432_, v___y_4433_, v___y_4434_, v___y_4436_); -if (lean_obj_tag(v___x_4451_) == 0) -{ -lean_object* v_a_4452_; uint8_t v___x_4453_; lean_object* v___x_4454_; -v_a_4452_ = lean_ctor_get(v___x_4451_, 0); -lean_inc(v_a_4452_); -lean_dec_ref(v___x_4451_); -v___x_4453_ = 3; -lean_inc(v_a_4450_); -v___x_4454_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_4450_, v___x_4453_, v___y_4433_, v___y_4436_); -lean_dec_ref(v___x_4454_); -if (v_isMeta_4382_ == 0) -{ -v___y_4415_ = v_a_4450_; -v___y_4416_ = v_a_4452_; -v___y_4417_ = v___y_4434_; -v___y_4418_ = v___y_4436_; -goto v___jp_4414_; -} -else -{ -lean_object* v___x_4455_; lean_object* v_env_4456_; lean_object* v_nextMacroScope_4457_; lean_object* v_ngen_4458_; lean_object* v_auxDeclNGen_4459_; lean_object* v_traceState_4460_; lean_object* v_messages_4461_; lean_object* v_infoState_4462_; lean_object* v_snapshotTasks_4463_; lean_object* v___x_4465_; uint8_t v_isShared_4466_; uint8_t v_isSharedCheck_4488_; -v___x_4455_ = lean_st_ref_take(v___y_4436_); -v_env_4456_ = lean_ctor_get(v___x_4455_, 0); -v_nextMacroScope_4457_ = lean_ctor_get(v___x_4455_, 1); -v_ngen_4458_ = lean_ctor_get(v___x_4455_, 2); -v_auxDeclNGen_4459_ = lean_ctor_get(v___x_4455_, 3); -v_traceState_4460_ = lean_ctor_get(v___x_4455_, 4); -v_messages_4461_ = lean_ctor_get(v___x_4455_, 6); -v_infoState_4462_ = lean_ctor_get(v___x_4455_, 7); -v_snapshotTasks_4463_ = lean_ctor_get(v___x_4455_, 8); -v_isSharedCheck_4488_ = !lean_is_exclusive(v___x_4455_); -if (v_isSharedCheck_4488_ == 0) -{ -lean_object* v_unused_4489_; -v_unused_4489_ = lean_ctor_get(v___x_4455_, 5); -lean_dec(v_unused_4489_); -v___x_4465_ = v___x_4455_; -v_isShared_4466_ = v_isSharedCheck_4488_; -goto v_resetjp_4464_; -} -else -{ -lean_inc(v_snapshotTasks_4463_); -lean_inc(v_infoState_4462_); -lean_inc(v_messages_4461_); -lean_inc(v_traceState_4460_); -lean_inc(v_auxDeclNGen_4459_); -lean_inc(v_ngen_4458_); -lean_inc(v_nextMacroScope_4457_); -lean_inc(v_env_4456_); -lean_dec(v___x_4455_); -v___x_4465_ = lean_box(0); -v_isShared_4466_ = v_isSharedCheck_4488_; -goto v_resetjp_4464_; -} -v_resetjp_4464_: -{ -lean_object* v___x_4467_; lean_object* v___x_4468_; lean_object* v___x_4470_; -lean_inc(v_a_4450_); -v___x_4467_ = l_Lean_markMeta(v_env_4456_, v_a_4450_); -v___x_4468_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_4466_ == 0) -{ -lean_ctor_set(v___x_4465_, 5, v___x_4468_); -lean_ctor_set(v___x_4465_, 0, v___x_4467_); -v___x_4470_ = v___x_4465_; -goto v_reusejp_4469_; -} -else -{ -lean_object* v_reuseFailAlloc_4487_; -v_reuseFailAlloc_4487_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_4487_, 0, v___x_4467_); -lean_ctor_set(v_reuseFailAlloc_4487_, 1, v_nextMacroScope_4457_); -lean_ctor_set(v_reuseFailAlloc_4487_, 2, v_ngen_4458_); -lean_ctor_set(v_reuseFailAlloc_4487_, 3, v_auxDeclNGen_4459_); -lean_ctor_set(v_reuseFailAlloc_4487_, 4, v_traceState_4460_); -lean_ctor_set(v_reuseFailAlloc_4487_, 5, v___x_4468_); -lean_ctor_set(v_reuseFailAlloc_4487_, 6, v_messages_4461_); -lean_ctor_set(v_reuseFailAlloc_4487_, 7, v_infoState_4462_); -lean_ctor_set(v_reuseFailAlloc_4487_, 8, v_snapshotTasks_4463_); -v___x_4470_ = v_reuseFailAlloc_4487_; -goto v_reusejp_4469_; -} -v_reusejp_4469_: -{ -lean_object* v___x_4471_; lean_object* v___x_4472_; lean_object* v_mctx_4473_; lean_object* v_zetaDeltaFVarIds_4474_; lean_object* v_postponed_4475_; lean_object* v_diag_4476_; lean_object* v___x_4478_; uint8_t v_isShared_4479_; uint8_t v_isSharedCheck_4485_; -v___x_4471_ = lean_st_ref_set(v___y_4436_, v___x_4470_); -v___x_4472_ = lean_st_ref_take(v___y_4433_); -v_mctx_4473_ = lean_ctor_get(v___x_4472_, 0); -v_zetaDeltaFVarIds_4474_ = lean_ctor_get(v___x_4472_, 2); -v_postponed_4475_ = lean_ctor_get(v___x_4472_, 3); -v_diag_4476_ = lean_ctor_get(v___x_4472_, 4); -v_isSharedCheck_4485_ = !lean_is_exclusive(v___x_4472_); -if (v_isSharedCheck_4485_ == 0) -{ -lean_object* v_unused_4486_; -v_unused_4486_ = lean_ctor_get(v___x_4472_, 1); -lean_dec(v_unused_4486_); -v___x_4478_ = v___x_4472_; -v_isShared_4479_ = v_isSharedCheck_4485_; -goto v_resetjp_4477_; -} -else -{ -lean_inc(v_diag_4476_); -lean_inc(v_postponed_4475_); -lean_inc(v_zetaDeltaFVarIds_4474_); -lean_inc(v_mctx_4473_); -lean_dec(v___x_4472_); -v___x_4478_ = lean_box(0); -v_isShared_4479_ = v_isSharedCheck_4485_; -goto v_resetjp_4477_; -} -v_resetjp_4477_: -{ -lean_object* v___x_4480_; lean_object* v___x_4482_; -v___x_4480_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_4479_ == 0) -{ -lean_ctor_set(v___x_4478_, 1, v___x_4480_); -v___x_4482_ = v___x_4478_; -goto v_reusejp_4481_; -} -else -{ -lean_object* v_reuseFailAlloc_4484_; -v_reuseFailAlloc_4484_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_4484_, 0, v_mctx_4473_); -lean_ctor_set(v_reuseFailAlloc_4484_, 1, v___x_4480_); -lean_ctor_set(v_reuseFailAlloc_4484_, 2, v_zetaDeltaFVarIds_4474_); -lean_ctor_set(v_reuseFailAlloc_4484_, 3, v_postponed_4475_); -lean_ctor_set(v_reuseFailAlloc_4484_, 4, v_diag_4476_); -v___x_4482_ = v_reuseFailAlloc_4484_; -goto v_reusejp_4481_; -} -v_reusejp_4481_: -{ -lean_object* v___x_4483_; -v___x_4483_ = lean_st_ref_set(v___y_4433_, v___x_4482_); -v___y_4415_ = v_a_4450_; -v___y_4416_ = v_a_4452_; -v___y_4417_ = v___y_4434_; -v___y_4418_ = v___y_4436_; -goto v___jp_4414_; +lean_object* v___x_4411_; +v___x_4411_ = lean_st_ref_set(v___y_4362_, v___x_4410_); +v___y_4344_ = v_a_4382_; +v___y_4345_ = v_a_4379_; +v___y_4346_ = v___y_4363_; +v___y_4347_ = v___y_4365_; +goto v___jp_4343_; } } } @@ -17286,236 +17111,236 @@ goto v___jp_4414_; } else { -lean_dec(v_a_4450_); -return v___x_4451_; +lean_dec(v_a_4379_); +return v___x_4380_; } } else { -lean_object* v___x_4491_; -lean_dec_ref(v_expectedType_4377_); -if (v_isShared_4446_ == 0) +lean_object* v___x_4419_; +lean_dec_ref(v_expectedType_4306_); +if (v_isShared_4375_ == 0) { -lean_ctor_set(v___x_4445_, 0, v_inst_4376_); -v___x_4491_ = v___x_4445_; -goto v_reusejp_4490_; +lean_ctor_set(v___x_4374_, 0, v_inst_4305_); +v___x_4419_ = v___x_4374_; +goto v_reusejp_4418_; } else { -lean_object* v_reuseFailAlloc_4492_; -v_reuseFailAlloc_4492_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4492_, 0, v_inst_4376_); -v___x_4491_ = v_reuseFailAlloc_4492_; -goto v_reusejp_4490_; +lean_object* v_reuseFailAlloc_4420_; +v_reuseFailAlloc_4420_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4420_, 0, v_inst_4305_); +v___x_4419_ = v_reuseFailAlloc_4420_; +goto v_reusejp_4418_; } -v_reusejp_4490_: +v_reusejp_4418_: { -return v___x_4491_; +return v___x_4419_; } } } } else { -lean_object* v_a_4494_; lean_object* v___x_4496_; uint8_t v_isShared_4497_; uint8_t v_isSharedCheck_4501_; -lean_dec_ref(v_expectedType_4377_); -lean_dec_ref(v_inst_4376_); -v_a_4494_ = lean_ctor_get(v___x_4442_, 0); -v_isSharedCheck_4501_ = !lean_is_exclusive(v___x_4442_); -if (v_isSharedCheck_4501_ == 0) +lean_object* v_a_4422_; lean_object* v___x_4424_; uint8_t v_isShared_4425_; uint8_t v_isSharedCheck_4429_; +lean_dec_ref(v_expectedType_4306_); +lean_dec_ref(v_inst_4305_); +v_a_4422_ = lean_ctor_get(v___x_4371_, 0); +v_isSharedCheck_4429_ = !lean_is_exclusive(v___x_4371_); +if (v_isSharedCheck_4429_ == 0) { -v___x_4496_ = v___x_4442_; -v_isShared_4497_ = v_isSharedCheck_4501_; -goto v_resetjp_4495_; +v___x_4424_ = v___x_4371_; +v_isShared_4425_ = v_isSharedCheck_4429_; +goto v_resetjp_4423_; } else { -lean_inc(v_a_4494_); -lean_dec(v___x_4442_); -v___x_4496_ = lean_box(0); -v_isShared_4497_ = v_isSharedCheck_4501_; -goto v_resetjp_4495_; +lean_inc(v_a_4422_); +lean_dec(v___x_4371_); +v___x_4424_ = lean_box(0); +v_isShared_4425_ = v_isSharedCheck_4429_; +goto v_resetjp_4423_; } -v_resetjp_4495_: +v_resetjp_4423_: { -lean_object* v___x_4499_; -if (v_isShared_4497_ == 0) +lean_object* v___x_4427_; +if (v_isShared_4425_ == 0) { -v___x_4499_ = v___x_4496_; -goto v_reusejp_4498_; +v___x_4427_ = v___x_4424_; +goto v_reusejp_4426_; } else { -lean_object* v_reuseFailAlloc_4500_; -v_reuseFailAlloc_4500_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4500_, 0, v_a_4494_); -v___x_4499_ = v_reuseFailAlloc_4500_; -goto v_reusejp_4498_; +lean_object* v_reuseFailAlloc_4428_; +v_reuseFailAlloc_4428_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4428_, 0, v_a_4422_); +v___x_4427_ = v_reuseFailAlloc_4428_; +goto v_reusejp_4426_; } -v_reusejp_4498_: +v_reusejp_4426_: { -return v___x_4499_; +return v___x_4427_; } } } } else { -lean_dec_ref(v_expectedType_4377_); -lean_dec_ref(v_inst_4376_); -return v___x_4440_; +lean_dec_ref(v_expectedType_4306_); +lean_dec_ref(v_inst_4305_); +return v___x_4369_; } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__1(lean_object* v_expectedType_4658_, lean_object* v_inst_4659_, uint8_t v___x_4660_, uint8_t v_hasTrace_4661_, uint8_t v_compile_4662_, uint8_t v_logCompileErrors_4663_, uint8_t v_isMeta_4664_, lean_object* v_val_4665_, lean_object* v_____r_4666_, lean_object* v___y_4667_, lean_object* v___y_4668_, lean_object* v___y_4669_, lean_object* v___y_4670_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__1(lean_object* v_expectedType_4586_, lean_object* v_inst_4587_, uint8_t v___x_4588_, uint8_t v_hasTrace_4589_, uint8_t v_compile_4590_, uint8_t v_logCompileErrors_4591_, uint8_t v_isMeta_4592_, lean_object* v_val_4593_, lean_object* v_____r_4594_, lean_object* v___y_4595_, lean_object* v___y_4596_, lean_object* v___y_4597_, lean_object* v___y_4598_){ _start: { -lean_object* v___x_4672_; -lean_inc_ref(v_expectedType_4658_); -v___x_4672_ = l_Lean_Meta_isProp(v_expectedType_4658_, v___y_4667_, v___y_4668_, v___y_4669_, v___y_4670_); -if (lean_obj_tag(v___x_4672_) == 0) +lean_object* v___x_4600_; +lean_inc_ref(v_expectedType_4586_); +v___x_4600_ = l_Lean_Meta_isProp(v_expectedType_4586_, v___y_4595_, v___y_4596_, v___y_4597_, v___y_4598_); +if (lean_obj_tag(v___x_4600_) == 0) { -lean_object* v_a_4673_; lean_object* v___x_4675_; uint8_t v_isShared_4676_; uint8_t v_isSharedCheck_4694_; -v_a_4673_ = lean_ctor_get(v___x_4672_, 0); -v_isSharedCheck_4694_ = !lean_is_exclusive(v___x_4672_); -if (v_isSharedCheck_4694_ == 0) +lean_object* v_a_4601_; lean_object* v___x_4603_; uint8_t v_isShared_4604_; uint8_t v_isSharedCheck_4622_; +v_a_4601_ = lean_ctor_get(v___x_4600_, 0); +v_isSharedCheck_4622_ = !lean_is_exclusive(v___x_4600_); +if (v_isSharedCheck_4622_ == 0) { -v___x_4675_ = v___x_4672_; -v_isShared_4676_ = v_isSharedCheck_4694_; -goto v_resetjp_4674_; +v___x_4603_ = v___x_4600_; +v_isShared_4604_ = v_isSharedCheck_4622_; +goto v_resetjp_4602_; } else { -lean_inc(v_a_4673_); -lean_dec(v___x_4672_); -v___x_4675_ = lean_box(0); -v_isShared_4676_ = v_isSharedCheck_4694_; -goto v_resetjp_4674_; +lean_inc(v_a_4601_); +lean_dec(v___x_4600_); +v___x_4603_ = lean_box(0); +v_isShared_4604_ = v_isSharedCheck_4622_; +goto v_resetjp_4602_; } -v_resetjp_4674_: +v_resetjp_4602_: { -uint8_t v___x_4677_; -v___x_4677_ = lean_unbox(v_a_4673_); -lean_dec(v_a_4673_); -if (v___x_4677_ == 0) +uint8_t v___x_4605_; +v___x_4605_ = lean_unbox(v_a_4601_); +lean_dec(v_a_4601_); +if (v___x_4605_ == 0) { -lean_object* v___x_4678_; -lean_del_object(v___x_4675_); -lean_inc(v___y_4670_); -lean_inc_ref(v___y_4669_); -lean_inc(v___y_4668_); -lean_inc_ref(v___y_4667_); -lean_inc_ref(v_inst_4659_); -v___x_4678_ = lean_whnf(v_inst_4659_, v___y_4667_, v___y_4668_, v___y_4669_, v___y_4670_); -if (lean_obj_tag(v___x_4678_) == 0) +lean_object* v___x_4606_; +lean_del_object(v___x_4603_); +lean_inc(v___y_4598_); +lean_inc_ref(v___y_4597_); +lean_inc(v___y_4596_); +lean_inc_ref(v___y_4595_); +lean_inc_ref(v_inst_4587_); +v___x_4606_ = lean_whnf(v_inst_4587_, v___y_4595_, v___y_4596_, v___y_4597_, v___y_4598_); +if (lean_obj_tag(v___x_4606_) == 0) { -lean_object* v_a_4679_; lean_object* v_dummy_4680_; lean_object* v_nargs_4681_; lean_object* v___x_4682_; lean_object* v___x_4683_; lean_object* v___x_4684_; lean_object* v___x_4685_; -v_a_4679_ = lean_ctor_get(v___x_4678_, 0); -lean_inc(v_a_4679_); -lean_dec_ref(v___x_4678_); -v_dummy_4680_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); -v_nargs_4681_ = l_Lean_Expr_getAppNumArgs(v_a_4679_); -lean_inc(v_nargs_4681_); -v___x_4682_ = lean_mk_array(v_nargs_4681_, v_dummy_4680_); -v___x_4683_ = lean_unsigned_to_nat(1u); -v___x_4684_ = lean_nat_sub(v_nargs_4681_, v___x_4683_); -lean_dec(v_nargs_4681_); -v___x_4685_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14(v_inst_4659_, v_expectedType_4658_, v___x_4660_, v_hasTrace_4661_, v_compile_4662_, v_logCompileErrors_4663_, v_isMeta_4664_, v_val_4665_, v_a_4679_, v___x_4682_, v___x_4684_, v___y_4667_, v___y_4668_, v___y_4669_, v___y_4670_); -lean_dec(v___x_4684_); -return v___x_4685_; +lean_object* v_a_4607_; lean_object* v_dummy_4608_; lean_object* v_nargs_4609_; lean_object* v___x_4610_; lean_object* v___x_4611_; lean_object* v___x_4612_; lean_object* v___x_4613_; +v_a_4607_ = lean_ctor_get(v___x_4606_, 0); +lean_inc(v_a_4607_); +lean_dec_ref(v___x_4606_); +v_dummy_4608_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); +v_nargs_4609_ = l_Lean_Expr_getAppNumArgs(v_a_4607_); +lean_inc(v_nargs_4609_); +v___x_4610_ = lean_mk_array(v_nargs_4609_, v_dummy_4608_); +v___x_4611_ = lean_unsigned_to_nat(1u); +v___x_4612_ = lean_nat_sub(v_nargs_4609_, v___x_4611_); +lean_dec(v_nargs_4609_); +v___x_4613_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13(v_inst_4587_, v_expectedType_4586_, v___x_4588_, v_hasTrace_4589_, v_compile_4590_, v_logCompileErrors_4591_, v_isMeta_4592_, v_val_4593_, v_a_4607_, v___x_4610_, v___x_4612_, v___y_4595_, v___y_4596_, v___y_4597_, v___y_4598_); +lean_dec(v___x_4612_); +return v___x_4613_; } else { -lean_dec(v_val_4665_); -lean_dec_ref(v_inst_4659_); -lean_dec_ref(v_expectedType_4658_); -return v___x_4678_; +lean_dec(v_val_4593_); +lean_dec_ref(v_inst_4587_); +lean_dec_ref(v_expectedType_4586_); +return v___x_4606_; } } else { -lean_object* v_options_4686_; lean_object* v___x_4687_; uint8_t v___x_4688_; -lean_dec(v_val_4665_); -v_options_4686_ = lean_ctor_get(v___y_4669_, 2); -v___x_4687_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_4688_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4686_, v___x_4687_); -if (v___x_4688_ == 0) +lean_object* v_options_4614_; lean_object* v___x_4615_; uint8_t v___x_4616_; +lean_dec(v_val_4593_); +v_options_4614_ = lean_ctor_get(v___y_4597_, 2); +v___x_4615_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_4616_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4614_, v___x_4615_); +if (v___x_4616_ == 0) { -lean_object* v___x_4690_; -lean_dec_ref(v_expectedType_4658_); -if (v_isShared_4676_ == 0) +lean_object* v___x_4618_; +lean_dec_ref(v_expectedType_4586_); +if (v_isShared_4604_ == 0) { -lean_ctor_set(v___x_4675_, 0, v_inst_4659_); -v___x_4690_ = v___x_4675_; -goto v_reusejp_4689_; +lean_ctor_set(v___x_4603_, 0, v_inst_4587_); +v___x_4618_ = v___x_4603_; +goto v_reusejp_4617_; } else { -lean_object* v_reuseFailAlloc_4691_; -v_reuseFailAlloc_4691_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4691_, 0, v_inst_4659_); -v___x_4690_ = v_reuseFailAlloc_4691_; -goto v_reusejp_4689_; +lean_object* v_reuseFailAlloc_4619_; +v_reuseFailAlloc_4619_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4619_, 0, v_inst_4587_); +v___x_4618_ = v_reuseFailAlloc_4619_; +goto v_reusejp_4617_; } -v_reusejp_4689_: +v_reusejp_4617_: { -return v___x_4690_; +return v___x_4618_; } } else { -lean_object* v___x_4692_; lean_object* v___x_4693_; -lean_del_object(v___x_4675_); -v___x_4692_ = lean_box(0); -v___x_4693_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_4658_, v_inst_4659_, v_hasTrace_4661_, v___x_4692_, v_hasTrace_4661_, v___y_4667_, v___y_4668_, v___y_4669_, v___y_4670_); -return v___x_4693_; +lean_object* v___x_4620_; lean_object* v___x_4621_; +lean_del_object(v___x_4603_); +v___x_4620_ = lean_box(0); +v___x_4621_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_4586_, v_inst_4587_, v_hasTrace_4589_, v___x_4620_, v_hasTrace_4589_, v___y_4595_, v___y_4596_, v___y_4597_, v___y_4598_); +return v___x_4621_; } } } } else { -lean_object* v_a_4695_; lean_object* v___x_4697_; uint8_t v_isShared_4698_; uint8_t v_isSharedCheck_4702_; -lean_dec(v_val_4665_); -lean_dec_ref(v_inst_4659_); -lean_dec_ref(v_expectedType_4658_); -v_a_4695_ = lean_ctor_get(v___x_4672_, 0); -v_isSharedCheck_4702_ = !lean_is_exclusive(v___x_4672_); -if (v_isSharedCheck_4702_ == 0) +lean_object* v_a_4623_; lean_object* v___x_4625_; uint8_t v_isShared_4626_; uint8_t v_isSharedCheck_4630_; +lean_dec(v_val_4593_); +lean_dec_ref(v_inst_4587_); +lean_dec_ref(v_expectedType_4586_); +v_a_4623_ = lean_ctor_get(v___x_4600_, 0); +v_isSharedCheck_4630_ = !lean_is_exclusive(v___x_4600_); +if (v_isSharedCheck_4630_ == 0) { -v___x_4697_ = v___x_4672_; -v_isShared_4698_ = v_isSharedCheck_4702_; -goto v_resetjp_4696_; +v___x_4625_ = v___x_4600_; +v_isShared_4626_ = v_isSharedCheck_4630_; +goto v_resetjp_4624_; } else { -lean_inc(v_a_4695_); -lean_dec(v___x_4672_); -v___x_4697_ = lean_box(0); -v_isShared_4698_ = v_isSharedCheck_4702_; -goto v_resetjp_4696_; +lean_inc(v_a_4623_); +lean_dec(v___x_4600_); +v___x_4625_ = lean_box(0); +v_isShared_4626_ = v_isSharedCheck_4630_; +goto v_resetjp_4624_; } -v_resetjp_4696_: +v_resetjp_4624_: { -lean_object* v___x_4700_; -if (v_isShared_4698_ == 0) +lean_object* v___x_4628_; +if (v_isShared_4626_ == 0) { -v___x_4700_ = v___x_4697_; -goto v_reusejp_4699_; +v___x_4628_ = v___x_4625_; +goto v_reusejp_4627_; } else { -lean_object* v_reuseFailAlloc_4701_; -v_reuseFailAlloc_4701_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4701_, 0, v_a_4695_); -v___x_4700_ = v_reuseFailAlloc_4701_; -goto v_reusejp_4699_; +lean_object* v_reuseFailAlloc_4629_; +v_reuseFailAlloc_4629_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4629_, 0, v_a_4623_); +v___x_4628_ = v_reuseFailAlloc_4629_; +goto v_reusejp_4627_; } -v_reusejp_4699_: +v_reusejp_4627_: { -return v___x_4700_; +return v___x_4628_; } } } @@ -17524,544 +17349,934 @@ return v___x_4700_; static lean_object* _init_l_Lean_Meta_wrapInstance___closed__3(void){ _start: { -lean_object* v___x_4704_; lean_object* v___x_4705_; -v___x_4704_ = ((lean_object*)(l_Lean_Meta_wrapInstance___closed__2)); -v___x_4705_ = l_Lean_stringToMessageData(v___x_4704_); -return v___x_4705_; +lean_object* v___x_4632_; lean_object* v___x_4633_; +v___x_4632_ = ((lean_object*)(l_Lean_Meta_wrapInstance___closed__2)); +v___x_4633_ = l_Lean_stringToMessageData(v___x_4632_); +return v___x_4633_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(lean_object* v_upperBound_4706_, lean_object* v_fst_4707_, lean_object* v_args_4708_, uint8_t v___x_4709_, uint8_t v_compile_4710_, uint8_t v_logCompileErrors_4711_, uint8_t v_isMeta_4712_, lean_object* v_val_4713_, lean_object* v_expectedType_4714_, lean_object* v_a_4715_, lean_object* v_b_4716_, lean_object* v___y_4717_, lean_object* v___y_4718_, lean_object* v___y_4719_, lean_object* v___y_4720_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(lean_object* v_upperBound_4634_, lean_object* v_fst_4635_, lean_object* v_args_4636_, uint8_t v___x_4637_, uint8_t v_compile_4638_, uint8_t v_logCompileErrors_4639_, uint8_t v_isMeta_4640_, lean_object* v_val_4641_, lean_object* v_expectedType_4642_, lean_object* v_a_4643_, lean_object* v_b_4644_, lean_object* v___y_4645_, lean_object* v___y_4646_, lean_object* v___y_4647_, lean_object* v___y_4648_){ _start: { -lean_object* v_a_4723_; lean_object* v___y_4728_; uint8_t v___x_4747_; -v___x_4747_ = lean_nat_dec_lt(v_a_4715_, v_upperBound_4706_); -if (v___x_4747_ == 0) +lean_object* v_a_4651_; lean_object* v___y_4656_; uint8_t v___x_4675_; +v___x_4675_ = lean_nat_dec_lt(v_a_4643_, v_upperBound_4634_); +if (v___x_4675_ == 0) { -lean_object* v___x_4748_; -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v___x_4748_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4748_, 0, v_b_4716_); -return v___x_4748_; +lean_object* v___x_4676_; +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v___x_4676_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4676_, 0, v_b_4644_); +return v___x_4676_; } else { -lean_object* v___x_4749_; lean_object* v___x_4750_; lean_object* v___x_4751_; -v___x_4749_ = lean_array_fget_borrowed(v_fst_4707_, v_a_4715_); -v___x_4750_ = l_Lean_Expr_mvarId_x21(v___x_4749_); -lean_inc(v___x_4750_); -v___x_4751_ = l_Lean_MVarId_getDecl(v___x_4750_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4751_) == 0) +lean_object* v___x_4677_; lean_object* v___x_4678_; lean_object* v___x_4679_; +v___x_4677_ = lean_array_fget_borrowed(v_fst_4635_, v_a_4643_); +v___x_4678_ = l_Lean_Expr_mvarId_x21(v___x_4677_); +lean_inc(v___x_4678_); +v___x_4679_ = l_Lean_MVarId_getDecl(v___x_4678_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4679_) == 0) { -lean_object* v_a_4752_; lean_object* v_userName_4753_; lean_object* v_type_4754_; lean_object* v___x_4755_; -v_a_4752_ = lean_ctor_get(v___x_4751_, 0); -lean_inc(v_a_4752_); -lean_dec_ref(v___x_4751_); -v_userName_4753_ = lean_ctor_get(v_a_4752_, 0); -lean_inc(v_userName_4753_); -v_type_4754_ = lean_ctor_get(v_a_4752_, 2); -lean_inc_ref(v_type_4754_); -lean_dec(v_a_4752_); -v___x_4755_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__5___redArg(v_type_4754_, v___y_4718_); -if (lean_obj_tag(v___x_4755_) == 0) +lean_object* v_a_4680_; lean_object* v_userName_4681_; lean_object* v_type_4682_; lean_object* v___x_4683_; +v_a_4680_ = lean_ctor_get(v___x_4679_, 0); +lean_inc(v_a_4680_); +lean_dec_ref(v___x_4679_); +v_userName_4681_ = lean_ctor_get(v_a_4680_, 0); +lean_inc(v_userName_4681_); +v_type_4682_ = lean_ctor_get(v_a_4680_, 2); +lean_inc_ref(v_type_4682_); +lean_dec(v_a_4680_); +v___x_4683_ = l_Lean_instantiateMVars___at___00Lean_Meta_wrapInstance_spec__4___redArg(v_type_4682_, v___y_4646_); +if (lean_obj_tag(v___x_4683_) == 0) { -lean_object* v_a_4756_; lean_object* v___x_4757_; -v_a_4756_ = lean_ctor_get(v___x_4755_, 0); -lean_inc_n(v_a_4756_, 2); -lean_dec_ref(v___x_4755_); -v___x_4757_ = l_Lean_Meta_isProp(v_a_4756_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4757_) == 0) +lean_object* v_a_4684_; lean_object* v___x_4685_; +v_a_4684_ = lean_ctor_get(v___x_4683_, 0); +lean_inc_n(v_a_4684_, 2); +lean_dec_ref(v___x_4683_); +v___x_4685_ = l_Lean_Meta_isProp(v_a_4684_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4685_) == 0) { -lean_object* v_a_4758_; lean_object* v___x_4759_; lean_object* v_cls_4760_; lean_object* v___f_4761_; lean_object* v___x_4762_; uint8_t v___x_4763_; -v_a_4758_ = lean_ctor_get(v___x_4757_, 0); -lean_inc(v_a_4758_); -lean_dec_ref(v___x_4757_); -v___x_4759_ = lean_box(0); -v_cls_4760_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___f_4761_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__0)); -v___x_4762_ = lean_array_fget_borrowed(v_args_4708_, v_a_4715_); -v___x_4763_ = lean_unbox(v_a_4758_); -lean_dec(v_a_4758_); -if (v___x_4763_ == 0) +lean_object* v_a_4686_; lean_object* v___x_4687_; lean_object* v_cls_4688_; lean_object* v___f_4689_; lean_object* v___x_4690_; uint8_t v___x_4691_; +v_a_4686_ = lean_ctor_get(v___x_4685_, 0); +lean_inc(v_a_4686_); +lean_dec_ref(v___x_4685_); +v___x_4687_ = lean_box(0); +v_cls_4688_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___f_4689_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__0)); +v___x_4690_ = lean_array_fget_borrowed(v_args_4636_, v_a_4643_); +v___x_4691_ = lean_unbox(v_a_4686_); +lean_dec(v_a_4686_); +if (v___x_4691_ == 0) { -lean_object* v___x_4764_; -lean_inc(v_a_4756_); -v___x_4764_ = l_Lean_Meta_isClass_x3f(v_a_4756_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4764_) == 0) +lean_object* v___x_4692_; +lean_inc(v_a_4684_); +v___x_4692_ = l_Lean_Meta_isClass_x3f(v_a_4684_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4692_) == 0) { -lean_object* v_a_4765_; lean_object* v___x_4767_; uint8_t v_isShared_4768_; uint8_t v_isSharedCheck_4863_; -v_a_4765_ = lean_ctor_get(v___x_4764_, 0); -v_isSharedCheck_4863_ = !lean_is_exclusive(v___x_4764_); -if (v_isSharedCheck_4863_ == 0) +lean_object* v_a_4693_; lean_object* v___x_4695_; uint8_t v_isShared_4696_; uint8_t v_isSharedCheck_4791_; +v_a_4693_ = lean_ctor_get(v___x_4692_, 0); +v_isSharedCheck_4791_ = !lean_is_exclusive(v___x_4692_); +if (v_isSharedCheck_4791_ == 0) { -v___x_4767_ = v___x_4764_; -v_isShared_4768_ = v_isSharedCheck_4863_; -goto v_resetjp_4766_; +v___x_4695_ = v___x_4692_; +v_isShared_4696_ = v_isSharedCheck_4791_; +goto v_resetjp_4694_; } else { -lean_inc(v_a_4765_); -lean_dec(v___x_4764_); -v___x_4767_ = lean_box(0); -v_isShared_4768_ = v_isSharedCheck_4863_; -goto v_resetjp_4766_; +lean_inc(v_a_4693_); +lean_dec(v___x_4692_); +v___x_4695_ = lean_box(0); +v_isShared_4696_ = v_isSharedCheck_4791_; +goto v_resetjp_4694_; } -v_resetjp_4766_: +v_resetjp_4694_: { -lean_object* v___x_4769_; lean_object* v___x_4770_; lean_object* v___x_4771_; lean_object* v___x_4772_; lean_object* v___f_4773_; -v___x_4769_ = lean_box(v___x_4709_); -v___x_4770_ = lean_box(v_compile_4710_); -v___x_4771_ = lean_box(v_logCompileErrors_4711_); -v___x_4772_ = lean_box(v_isMeta_4712_); -lean_inc(v_a_4756_); -lean_inc(v___x_4762_); -lean_inc(v___x_4750_); -v___f_4773_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1___boxed), 14, 8); -lean_closure_set(v___f_4773_, 0, v___x_4750_); -lean_closure_set(v___f_4773_, 1, v___x_4762_); -lean_closure_set(v___f_4773_, 2, v___x_4759_); -lean_closure_set(v___f_4773_, 3, v_a_4756_); -lean_closure_set(v___f_4773_, 4, v___x_4769_); -lean_closure_set(v___f_4773_, 5, v___x_4770_); -lean_closure_set(v___f_4773_, 6, v___x_4771_); -lean_closure_set(v___f_4773_, 7, v___x_4772_); -if (lean_obj_tag(v_a_4765_) == 0) +lean_object* v___x_4697_; lean_object* v___x_4698_; lean_object* v___x_4699_; lean_object* v___x_4700_; lean_object* v___f_4701_; +v___x_4697_ = lean_box(v___x_4637_); +v___x_4698_ = lean_box(v_compile_4638_); +v___x_4699_ = lean_box(v_logCompileErrors_4639_); +v___x_4700_ = lean_box(v_isMeta_4640_); +lean_inc(v_a_4684_); +lean_inc(v___x_4690_); +lean_inc(v___x_4678_); +v___f_4701_ = lean_alloc_closure((void*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1___boxed), 14, 8); +lean_closure_set(v___f_4701_, 0, v___x_4678_); +lean_closure_set(v___f_4701_, 1, v___x_4690_); +lean_closure_set(v___f_4701_, 2, v___x_4687_); +lean_closure_set(v___f_4701_, 3, v_a_4684_); +lean_closure_set(v___f_4701_, 4, v___x_4697_); +lean_closure_set(v___f_4701_, 5, v___x_4698_); +lean_closure_set(v___f_4701_, 6, v___x_4699_); +lean_closure_set(v___f_4701_, 7, v___x_4700_); +if (lean_obj_tag(v_a_4693_) == 0) { -lean_del_object(v___x_4767_); -goto v___jp_4776_; +lean_del_object(v___x_4695_); +goto v___jp_4704_; } else { -lean_dec_ref(v_a_4765_); -if (v___x_4709_ == 0) +lean_dec_ref(v_a_4693_); +if (v___x_4637_ == 0) { -lean_del_object(v___x_4767_); -goto v___jp_4776_; +lean_del_object(v___x_4695_); +goto v___jp_4704_; } else { -lean_object* v_options_4824_; lean_object* v_a_4826_; lean_object* v___y_4829_; uint8_t v___y_4830_; lean_object* v_a_4835_; lean_object* v___y_4839_; lean_object* v___x_4843_; uint8_t v___x_4844_; -lean_dec_ref(v___f_4773_); -lean_dec(v_userName_4753_); -v_options_4824_ = lean_ctor_get(v___y_4719_, 2); -v___x_4843_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_4844_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4824_, v___x_4843_); -if (v___x_4844_ == 0) +lean_object* v_options_4752_; lean_object* v_a_4754_; lean_object* v___y_4757_; uint8_t v___y_4758_; lean_object* v_a_4763_; lean_object* v___y_4767_; lean_object* v___x_4771_; uint8_t v___x_4772_; +lean_dec_ref(v___f_4701_); +lean_dec(v_userName_4681_); +v_options_4752_ = lean_ctor_get(v___y_4647_, 2); +v___x_4771_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_4772_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4752_, v___x_4771_); +if (v___x_4772_ == 0) { -lean_object* v___x_4845_; -lean_del_object(v___x_4767_); -lean_inc(v___x_4762_); -v___x_4845_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_4762_, v_a_4756_, v_compile_4710_, v_logCompileErrors_4711_, v_isMeta_4712_, v___x_4750_, v___x_4759_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4845_; -goto v___jp_4727_; +lean_object* v___x_4773_; +lean_del_object(v___x_4695_); +lean_inc(v___x_4690_); +v___x_4773_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_4690_, v_a_4684_, v_compile_4638_, v_logCompileErrors_4639_, v_isMeta_4640_, v___x_4678_, v___x_4687_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4773_; +goto v___jp_4655_; } else { -lean_object* v___x_4846_; lean_object* v___x_4847_; -v___x_4846_ = lean_box(0); -lean_inc(v_a_4756_); -v___x_4847_ = l_Lean_Meta_trySynthInstance(v_a_4756_, v___x_4846_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4847_) == 0) +lean_object* v___x_4774_; lean_object* v___x_4775_; +v___x_4774_ = lean_box(0); +lean_inc(v_a_4684_); +v___x_4775_ = l_Lean_Meta_trySynthInstance(v_a_4684_, v___x_4774_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4775_) == 0) { -lean_object* v_a_4848_; -v_a_4848_ = lean_ctor_get(v___x_4847_, 0); -lean_inc(v_a_4848_); -lean_dec_ref(v___x_4847_); -if (lean_obj_tag(v_a_4848_) == 1) +lean_object* v_a_4776_; +v_a_4776_ = lean_ctor_get(v___x_4775_, 0); +lean_inc(v_a_4776_); +lean_dec_ref(v___x_4775_); +if (lean_obj_tag(v_a_4776_) == 1) { -lean_object* v_a_4849_; lean_object* v___x_4850_; -v_a_4849_ = lean_ctor_get(v_a_4848_, 0); -lean_inc(v_a_4849_); -lean_dec_ref(v_a_4848_); -v___x_4850_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_4760_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4850_) == 0) +lean_object* v_a_4777_; lean_object* v___x_4778_; +v_a_4777_ = lean_ctor_get(v_a_4776_, 0); +lean_inc(v_a_4777_); +lean_dec_ref(v_a_4776_); +v___x_4778_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_4688_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4778_) == 0) { -lean_object* v_a_4851_; uint8_t v___x_4852_; -v_a_4851_ = lean_ctor_get(v___x_4850_, 0); -lean_inc(v_a_4851_); -lean_dec_ref(v___x_4850_); -v___x_4852_ = lean_unbox(v_a_4851_); -lean_dec(v_a_4851_); -if (v___x_4852_ == 0) -{ -lean_object* v___x_4853_; -lean_inc(v___x_4750_); -v___x_4853_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_4750_, v_a_4849_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4839_ = v___x_4853_; -goto v___jp_4838_; -} -else -{ -lean_object* v___x_4854_; lean_object* v___x_4855_; lean_object* v___x_4856_; lean_object* v___x_4857_; -v___x_4854_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__2); -lean_inc(v_a_4849_); -v___x_4855_ = l_Lean_MessageData_ofExpr(v_a_4849_); -v___x_4856_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4856_, 0, v___x_4854_); -lean_ctor_set(v___x_4856_, 1, v___x_4855_); -v___x_4857_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_4760_, v___x_4856_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4857_) == 0) -{ -lean_object* v_a_4858_; lean_object* v___x_4859_; -v_a_4858_ = lean_ctor_get(v___x_4857_, 0); -lean_inc(v_a_4858_); -lean_dec_ref(v___x_4857_); -lean_inc(v___x_4750_); -v___x_4859_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__5(v___x_4750_, v_a_4849_, v_a_4858_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4839_ = v___x_4859_; -goto v___jp_4838_; -} -else -{ -lean_object* v_a_4860_; -lean_dec(v_a_4849_); -v_a_4860_ = lean_ctor_get(v___x_4857_, 0); -lean_inc(v_a_4860_); -lean_dec_ref(v___x_4857_); -v_a_4835_ = v_a_4860_; -goto v___jp_4834_; -} -} -} -else -{ -lean_object* v_a_4861_; -lean_dec(v_a_4849_); -v_a_4861_ = lean_ctor_get(v___x_4850_, 0); -lean_inc(v_a_4861_); -lean_dec_ref(v___x_4850_); -v_a_4835_ = v_a_4861_; -goto v___jp_4834_; -} -} -else -{ -lean_dec(v_a_4848_); -lean_del_object(v___x_4767_); -v_a_4826_ = v___x_4759_; -goto v___jp_4825_; -} -} -else -{ -lean_object* v_a_4862_; -v_a_4862_ = lean_ctor_get(v___x_4847_, 0); -lean_inc(v_a_4862_); -lean_dec_ref(v___x_4847_); -v_a_4835_ = v_a_4862_; -goto v___jp_4834_; -} -} -v___jp_4825_: -{ -lean_object* v___x_4827_; -lean_inc(v___x_4762_); -v___x_4827_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_4762_, v_a_4756_, v_compile_4710_, v_logCompileErrors_4711_, v_isMeta_4712_, v___x_4750_, v___x_4759_, v_a_4826_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4827_; -goto v___jp_4727_; -} -v___jp_4828_: -{ -if (v___y_4830_ == 0) -{ -lean_dec_ref(v___y_4829_); -lean_del_object(v___x_4767_); -v_a_4826_ = v___x_4759_; -goto v___jp_4825_; -} -else -{ -lean_object* v___x_4832_; -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -if (v_isShared_4768_ == 0) -{ -lean_ctor_set_tag(v___x_4767_, 1); -lean_ctor_set(v___x_4767_, 0, v___y_4829_); -v___x_4832_ = v___x_4767_; -goto v_reusejp_4831_; -} -else -{ -lean_object* v_reuseFailAlloc_4833_; -v_reuseFailAlloc_4833_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4833_, 0, v___y_4829_); -v___x_4832_ = v_reuseFailAlloc_4833_; -goto v_reusejp_4831_; -} -v_reusejp_4831_: -{ -return v___x_4832_; -} -} -} -v___jp_4834_: -{ -uint8_t v___x_4836_; -v___x_4836_ = l_Lean_Exception_isInterrupt(v_a_4835_); -if (v___x_4836_ == 0) -{ -uint8_t v___x_4837_; -lean_inc_ref(v_a_4835_); -v___x_4837_ = l_Lean_Exception_isRuntime(v_a_4835_); -v___y_4829_ = v_a_4835_; -v___y_4830_ = v___x_4837_; -goto v___jp_4828_; -} -else -{ -v___y_4829_ = v_a_4835_; -v___y_4830_ = v___x_4836_; -goto v___jp_4828_; -} -} -v___jp_4838_: -{ -if (lean_obj_tag(v___y_4839_) == 0) -{ -lean_object* v_a_4840_; -lean_del_object(v___x_4767_); -v_a_4840_ = lean_ctor_get(v___y_4839_, 0); -lean_inc(v_a_4840_); -lean_dec_ref(v___y_4839_); -if (lean_obj_tag(v_a_4840_) == 0) -{ -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -v_a_4723_ = v___x_4759_; -goto v___jp_4722_; -} -else -{ -lean_object* v_a_4841_; -v_a_4841_ = lean_ctor_get(v_a_4840_, 0); -lean_inc(v_a_4841_); -lean_dec_ref(v_a_4840_); -v_a_4826_ = v_a_4841_; -goto v___jp_4825_; -} -} -else -{ -lean_object* v_a_4842_; -v_a_4842_ = lean_ctor_get(v___y_4839_, 0); -lean_inc(v_a_4842_); -lean_dec_ref(v___y_4839_); -v_a_4835_ = v_a_4842_; -goto v___jp_4834_; -} -} -} -} -v___jp_4774_: -{ -lean_object* v___x_4775_; -lean_inc(v___x_4762_); -v___x_4775_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1(v___x_4750_, v___x_4762_, v___x_4759_, v_a_4756_, v___x_4709_, v_compile_4710_, v_logCompileErrors_4711_, v_isMeta_4712_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4775_; -goto v___jp_4727_; -} -v___jp_4776_: -{ -lean_object* v_options_4777_; lean_object* v___x_4778_; uint8_t v___x_4779_; -v_options_4777_ = lean_ctor_get(v___y_4719_, 2); -v___x_4778_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; -v___x_4779_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4777_, v___x_4778_); -if (v___x_4779_ == 0) -{ -lean_object* v___x_4780_; -lean_dec_ref(v___f_4773_); -lean_dec(v_userName_4753_); -lean_inc(v___x_4762_); -v___x_4780_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___lam__1(v___x_4750_, v___x_4762_, v___x_4759_, v_a_4756_, v___x_4709_, v_compile_4710_, v_logCompileErrors_4711_, v_isMeta_4712_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4780_; -goto v___jp_4727_; -} -else +lean_object* v_a_4779_; uint8_t v___x_4780_; +v_a_4779_ = lean_ctor_get(v___x_4778_, 0); +lean_inc(v_a_4779_); +lean_dec_ref(v___x_4778_); +v___x_4780_ = lean_unbox(v_a_4779_); +lean_dec(v_a_4779_); +if (v___x_4780_ == 0) { lean_object* v___x_4781_; -lean_inc(v_userName_4753_); -lean_inc(v_val_4713_); -v___x_4781_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_4713_, v_userName_4753_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4781_) == 0) -{ -lean_object* v_a_4782_; lean_object* v_fst_4783_; lean_object* v_snd_4784_; lean_object* v___x_4786_; uint8_t v_isShared_4787_; uint8_t v_isSharedCheck_4815_; -v_a_4782_ = lean_ctor_get(v___x_4781_, 0); -lean_inc(v_a_4782_); -lean_dec_ref(v___x_4781_); -v_fst_4783_ = lean_ctor_get(v_a_4782_, 0); -v_snd_4784_ = lean_ctor_get(v_a_4782_, 1); -v_isSharedCheck_4815_ = !lean_is_exclusive(v_a_4782_); -if (v_isSharedCheck_4815_ == 0) -{ -v___x_4786_ = v_a_4782_; -v_isShared_4787_ = v_isSharedCheck_4815_; -goto v_resetjp_4785_; +lean_inc(v___x_4678_); +v___x_4781_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_4678_, v_a_4777_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4767_ = v___x_4781_; +goto v___jp_4766_; } else { -lean_inc(v_snd_4784_); -lean_inc(v_fst_4783_); -lean_dec(v_a_4782_); -v___x_4786_ = lean_box(0); -v_isShared_4787_ = v_isSharedCheck_4815_; -goto v_resetjp_4785_; -} -v_resetjp_4785_: +lean_object* v___x_4782_; lean_object* v___x_4783_; lean_object* v___x_4784_; lean_object* v___x_4785_; +v___x_4782_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__2); +lean_inc(v_a_4777_); +v___x_4783_ = l_Lean_MessageData_ofExpr(v_a_4777_); +v___x_4784_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4784_, 0, v___x_4782_); +lean_ctor_set(v___x_4784_, 1, v___x_4783_); +v___x_4785_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_4688_, v___x_4784_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4785_) == 0) { -uint8_t v___x_4788_; -v___x_4788_ = lean_name_eq(v_fst_4783_, v_val_4713_); -if (v___x_4788_ == 0) -{ -if (v___x_4709_ == 0) -{ -lean_del_object(v___x_4786_); -lean_dec(v_snd_4784_); -lean_dec(v_fst_4783_); -lean_dec_ref(v___f_4773_); -lean_dec(v_userName_4753_); -goto v___jp_4774_; +lean_object* v_a_4786_; lean_object* v___x_4787_; +v_a_4786_ = lean_ctor_get(v___x_4785_, 0); +lean_inc(v_a_4786_); +lean_dec_ref(v___x_4785_); +lean_inc(v___x_4678_); +v___x_4787_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__5(v___x_4678_, v_a_4777_, v_a_4786_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4767_ = v___x_4787_; +goto v___jp_4766_; } else { -lean_object* v___x_4789_; -lean_dec(v_a_4756_); -v___x_4789_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_4760_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4789_) == 0) +lean_object* v_a_4788_; +lean_dec(v_a_4777_); +v_a_4788_ = lean_ctor_get(v___x_4785_, 0); +lean_inc(v_a_4788_); +lean_dec_ref(v___x_4785_); +v_a_4763_ = v_a_4788_; +goto v___jp_4762_; +} +} +} +else { -lean_object* v_a_4790_; uint8_t v___x_4791_; -v_a_4790_ = lean_ctor_get(v___x_4789_, 0); +lean_object* v_a_4789_; +lean_dec(v_a_4777_); +v_a_4789_ = lean_ctor_get(v___x_4778_, 0); +lean_inc(v_a_4789_); +lean_dec_ref(v___x_4778_); +v_a_4763_ = v_a_4789_; +goto v___jp_4762_; +} +} +else +{ +lean_dec(v_a_4776_); +lean_del_object(v___x_4695_); +v_a_4754_ = v___x_4687_; +goto v___jp_4753_; +} +} +else +{ +lean_object* v_a_4790_; +v_a_4790_ = lean_ctor_get(v___x_4775_, 0); lean_inc(v_a_4790_); -lean_dec_ref(v___x_4789_); -v___x_4791_ = lean_unbox(v_a_4790_); -lean_dec(v_a_4790_); -if (v___x_4791_ == 0) +lean_dec_ref(v___x_4775_); +v_a_4763_ = v_a_4790_; +goto v___jp_4762_; +} +} +v___jp_4753_: { -lean_object* v___x_4792_; -lean_del_object(v___x_4786_); -lean_dec(v_userName_4753_); -lean_inc_ref(v_expectedType_4714_); -lean_inc(v_val_4713_); -v___x_4792_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(v_val_4713_, v_fst_4783_, v_expectedType_4714_, v___f_4761_, v___f_4773_, v___x_4759_, v_cls_4760_, v_snd_4784_, v___x_4750_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4792_; -goto v___jp_4727_; +lean_object* v___x_4755_; +lean_inc(v___x_4690_); +v___x_4755_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_4690_, v_a_4684_, v_compile_4638_, v_logCompileErrors_4639_, v_isMeta_4640_, v___x_4678_, v___x_4687_, v_a_4754_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4755_; +goto v___jp_4655_; +} +v___jp_4756_: +{ +if (v___y_4758_ == 0) +{ +lean_dec_ref(v___y_4757_); +lean_del_object(v___x_4695_); +v_a_4754_ = v___x_4687_; +goto v___jp_4753_; } else { -lean_object* v___x_4793_; lean_object* v___x_4794_; lean_object* v___x_4796_; -v___x_4793_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__4); -v___x_4794_ = l_Lean_MessageData_ofName(v_userName_4753_); -if (v_isShared_4787_ == 0) +lean_object* v___x_4760_; +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +if (v_isShared_4696_ == 0) { -lean_ctor_set_tag(v___x_4786_, 7); -lean_ctor_set(v___x_4786_, 1, v___x_4794_); -lean_ctor_set(v___x_4786_, 0, v___x_4793_); -v___x_4796_ = v___x_4786_; -goto v_reusejp_4795_; +lean_ctor_set_tag(v___x_4695_, 1); +lean_ctor_set(v___x_4695_, 0, v___y_4757_); +v___x_4760_ = v___x_4695_; +goto v_reusejp_4759_; } else { -lean_object* v_reuseFailAlloc_4806_; -v_reuseFailAlloc_4806_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4806_, 0, v___x_4793_); -lean_ctor_set(v_reuseFailAlloc_4806_, 1, v___x_4794_); -v___x_4796_ = v_reuseFailAlloc_4806_; -goto v_reusejp_4795_; +lean_object* v_reuseFailAlloc_4761_; +v_reuseFailAlloc_4761_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4761_, 0, v___y_4757_); +v___x_4760_ = v_reuseFailAlloc_4761_; +goto v_reusejp_4759_; } -v_reusejp_4795_: +v_reusejp_4759_: { -lean_object* v___x_4797_; lean_object* v___x_4798_; lean_object* v___x_4799_; lean_object* v___x_4800_; lean_object* v___x_4801_; lean_object* v___x_4802_; lean_object* v___x_4803_; -v___x_4797_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__6); -v___x_4798_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4798_, 0, v___x_4796_); -lean_ctor_set(v___x_4798_, 1, v___x_4797_); -lean_inc(v_fst_4783_); -v___x_4799_ = l_Lean_MessageData_ofName(v_fst_4783_); -v___x_4800_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4800_, 0, v___x_4798_); -lean_ctor_set(v___x_4800_, 1, v___x_4799_); -v___x_4801_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_4802_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4802_, 0, v___x_4800_); -lean_ctor_set(v___x_4802_, 1, v___x_4801_); -v___x_4803_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_4760_, v___x_4802_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4803_) == 0) +return v___x_4760_; +} +} +} +v___jp_4762_: { -lean_object* v_a_4804_; lean_object* v___x_4805_; -v_a_4804_ = lean_ctor_get(v___x_4803_, 0); -lean_inc(v_a_4804_); -lean_dec_ref(v___x_4803_); -lean_inc_ref(v_expectedType_4714_); -lean_inc(v_val_4713_); -v___x_4805_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5(v_val_4713_, v_fst_4783_, v_expectedType_4714_, v___f_4761_, v___f_4773_, v___x_4759_, v_cls_4760_, v_snd_4784_, v___x_4750_, v_a_4804_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4805_; -goto v___jp_4727_; +uint8_t v___x_4764_; +v___x_4764_ = l_Lean_Exception_isInterrupt(v_a_4763_); +if (v___x_4764_ == 0) +{ +uint8_t v___x_4765_; +lean_inc_ref(v_a_4763_); +v___x_4765_ = l_Lean_Exception_isRuntime(v_a_4763_); +v___y_4757_ = v_a_4763_; +v___y_4758_ = v___x_4765_; +goto v___jp_4756_; } else { -lean_dec(v_snd_4784_); -lean_dec(v_fst_4783_); -lean_dec_ref(v___f_4773_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -return v___x_4803_; +v___y_4757_ = v_a_4763_; +v___y_4758_ = v___x_4764_; +goto v___jp_4756_; +} +} +v___jp_4766_: +{ +if (lean_obj_tag(v___y_4767_) == 0) +{ +lean_object* v_a_4768_; +lean_del_object(v___x_4695_); +v_a_4768_ = lean_ctor_get(v___y_4767_, 0); +lean_inc(v_a_4768_); +lean_dec_ref(v___y_4767_); +if (lean_obj_tag(v_a_4768_) == 0) +{ +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +v_a_4651_ = v___x_4687_; +goto v___jp_4650_; +} +else +{ +lean_object* v_a_4769_; +v_a_4769_ = lean_ctor_get(v_a_4768_, 0); +lean_inc(v_a_4769_); +lean_dec_ref(v_a_4768_); +v_a_4754_ = v_a_4769_; +goto v___jp_4753_; +} +} +else +{ +lean_object* v_a_4770_; +v_a_4770_ = lean_ctor_get(v___y_4767_, 0); +lean_inc(v_a_4770_); +lean_dec_ref(v___y_4767_); +v_a_4763_ = v_a_4770_; +goto v___jp_4762_; +} +} +} +} +v___jp_4702_: +{ +lean_object* v___x_4703_; +lean_inc(v___x_4690_); +v___x_4703_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1(v___x_4678_, v___x_4690_, v___x_4687_, v_a_4684_, v___x_4637_, v_compile_4638_, v_logCompileErrors_4639_, v_isMeta_4640_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4703_; +goto v___jp_4655_; +} +v___jp_4704_: +{ +lean_object* v_options_4705_; lean_object* v___x_4706_; uint8_t v___x_4707_; +v_options_4705_ = lean_ctor_get(v___y_4647_, 2); +v___x_4706_ = l_Lean_Meta_backward_inferInstanceAs_wrap_reuseSubInstances; +v___x_4707_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4705_, v___x_4706_); +if (v___x_4707_ == 0) +{ +lean_object* v___x_4708_; +lean_dec_ref(v___f_4701_); +lean_dec(v_userName_4681_); +lean_inc(v___x_4690_); +v___x_4708_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___lam__1(v___x_4678_, v___x_4690_, v___x_4687_, v_a_4684_, v___x_4637_, v_compile_4638_, v_logCompileErrors_4639_, v_isMeta_4640_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4708_; +goto v___jp_4655_; +} +else +{ +lean_object* v___x_4709_; +lean_inc(v_userName_4681_); +lean_inc(v_val_4641_); +v___x_4709_ = l___private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin(v_val_4641_, v_userName_4681_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4709_) == 0) +{ +lean_object* v_a_4710_; lean_object* v_fst_4711_; lean_object* v_snd_4712_; lean_object* v___x_4714_; uint8_t v_isShared_4715_; uint8_t v_isSharedCheck_4743_; +v_a_4710_ = lean_ctor_get(v___x_4709_, 0); +lean_inc(v_a_4710_); +lean_dec_ref(v___x_4709_); +v_fst_4711_ = lean_ctor_get(v_a_4710_, 0); +v_snd_4712_ = lean_ctor_get(v_a_4710_, 1); +v_isSharedCheck_4743_ = !lean_is_exclusive(v_a_4710_); +if (v_isSharedCheck_4743_ == 0) +{ +v___x_4714_ = v_a_4710_; +v_isShared_4715_ = v_isSharedCheck_4743_; +goto v_resetjp_4713_; +} +else +{ +lean_inc(v_snd_4712_); +lean_inc(v_fst_4711_); +lean_dec(v_a_4710_); +v___x_4714_ = lean_box(0); +v_isShared_4715_ = v_isSharedCheck_4743_; +goto v_resetjp_4713_; +} +v_resetjp_4713_: +{ +uint8_t v___x_4716_; +v___x_4716_ = lean_name_eq(v_fst_4711_, v_val_4641_); +if (v___x_4716_ == 0) +{ +if (v___x_4637_ == 0) +{ +lean_del_object(v___x_4714_); +lean_dec(v_snd_4712_); +lean_dec(v_fst_4711_); +lean_dec_ref(v___f_4701_); +lean_dec(v_userName_4681_); +goto v___jp_4702_; +} +else +{ +lean_object* v___x_4717_; +lean_dec(v_a_4684_); +v___x_4717_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_4688_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4717_) == 0) +{ +lean_object* v_a_4718_; uint8_t v___x_4719_; +v_a_4718_ = lean_ctor_get(v___x_4717_, 0); +lean_inc(v_a_4718_); +lean_dec_ref(v___x_4717_); +v___x_4719_ = lean_unbox(v_a_4718_); +lean_dec(v_a_4718_); +if (v___x_4719_ == 0) +{ +lean_object* v___x_4720_; +lean_del_object(v___x_4714_); +lean_dec(v_userName_4681_); +lean_inc_ref(v_expectedType_4642_); +lean_inc(v_val_4641_); +v___x_4720_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(v_val_4641_, v_fst_4711_, v_expectedType_4642_, v___f_4689_, v___f_4701_, v___x_4687_, v_cls_4688_, v_snd_4712_, v___x_4678_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4720_; +goto v___jp_4655_; +} +else +{ +lean_object* v___x_4721_; lean_object* v___x_4722_; lean_object* v___x_4724_; +v___x_4721_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__4); +v___x_4722_ = l_Lean_MessageData_ofName(v_userName_4681_); +if (v_isShared_4715_ == 0) +{ +lean_ctor_set_tag(v___x_4714_, 7); +lean_ctor_set(v___x_4714_, 1, v___x_4722_); +lean_ctor_set(v___x_4714_, 0, v___x_4721_); +v___x_4724_ = v___x_4714_; +goto v_reusejp_4723_; +} +else +{ +lean_object* v_reuseFailAlloc_4734_; +v_reuseFailAlloc_4734_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4734_, 0, v___x_4721_); +lean_ctor_set(v_reuseFailAlloc_4734_, 1, v___x_4722_); +v___x_4724_ = v_reuseFailAlloc_4734_; +goto v_reusejp_4723_; +} +v_reusejp_4723_: +{ +lean_object* v___x_4725_; lean_object* v___x_4726_; lean_object* v___x_4727_; lean_object* v___x_4728_; lean_object* v___x_4729_; lean_object* v___x_4730_; lean_object* v___x_4731_; +v___x_4725_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__6); +v___x_4726_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4726_, 0, v___x_4724_); +lean_ctor_set(v___x_4726_, 1, v___x_4725_); +lean_inc(v_fst_4711_); +v___x_4727_ = l_Lean_MessageData_ofName(v_fst_4711_); +v___x_4728_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4728_, 0, v___x_4726_); +lean_ctor_set(v___x_4728_, 1, v___x_4727_); +v___x_4729_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_4730_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4730_, 0, v___x_4728_); +lean_ctor_set(v___x_4730_, 1, v___x_4729_); +v___x_4731_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_4688_, v___x_4730_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4731_) == 0) +{ +lean_object* v_a_4732_; lean_object* v___x_4733_; +v_a_4732_ = lean_ctor_get(v___x_4731_, 0); +lean_inc(v_a_4732_); +lean_dec_ref(v___x_4731_); +lean_inc_ref(v_expectedType_4642_); +lean_inc(v_val_4641_); +v___x_4733_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__3(v_val_4641_, v_fst_4711_, v_expectedType_4642_, v___f_4689_, v___f_4701_, v___x_4687_, v_cls_4688_, v_snd_4712_, v___x_4678_, v_a_4732_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4733_; +goto v___jp_4655_; +} +else +{ +lean_dec(v_snd_4712_); +lean_dec(v_fst_4711_); +lean_dec_ref(v___f_4701_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +return v___x_4731_; } } } } else { -lean_object* v_a_4807_; lean_object* v___x_4809_; uint8_t v_isShared_4810_; uint8_t v_isSharedCheck_4814_; -lean_del_object(v___x_4786_); -lean_dec(v_snd_4784_); -lean_dec(v_fst_4783_); -lean_dec_ref(v___f_4773_); -lean_dec(v_userName_4753_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4807_ = lean_ctor_get(v___x_4789_, 0); -v_isSharedCheck_4814_ = !lean_is_exclusive(v___x_4789_); -if (v_isSharedCheck_4814_ == 0) +lean_object* v_a_4735_; lean_object* v___x_4737_; uint8_t v_isShared_4738_; uint8_t v_isSharedCheck_4742_; +lean_del_object(v___x_4714_); +lean_dec(v_snd_4712_); +lean_dec(v_fst_4711_); +lean_dec_ref(v___f_4701_); +lean_dec(v_userName_4681_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4735_ = lean_ctor_get(v___x_4717_, 0); +v_isSharedCheck_4742_ = !lean_is_exclusive(v___x_4717_); +if (v_isSharedCheck_4742_ == 0) { -v___x_4809_ = v___x_4789_; -v_isShared_4810_ = v_isSharedCheck_4814_; -goto v_resetjp_4808_; +v___x_4737_ = v___x_4717_; +v_isShared_4738_ = v_isSharedCheck_4742_; +goto v_resetjp_4736_; } else { +lean_inc(v_a_4735_); +lean_dec(v___x_4717_); +v___x_4737_ = lean_box(0); +v_isShared_4738_ = v_isSharedCheck_4742_; +goto v_resetjp_4736_; +} +v_resetjp_4736_: +{ +lean_object* v___x_4740_; +if (v_isShared_4738_ == 0) +{ +v___x_4740_ = v___x_4737_; +goto v_reusejp_4739_; +} +else +{ +lean_object* v_reuseFailAlloc_4741_; +v_reuseFailAlloc_4741_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4741_, 0, v_a_4735_); +v___x_4740_ = v_reuseFailAlloc_4741_; +goto v_reusejp_4739_; +} +v_reusejp_4739_: +{ +return v___x_4740_; +} +} +} +} +} +else +{ +lean_del_object(v___x_4714_); +lean_dec(v_snd_4712_); +lean_dec(v_fst_4711_); +lean_dec_ref(v___f_4701_); +lean_dec(v_userName_4681_); +goto v___jp_4702_; +} +} +} +else +{ +lean_object* v_a_4744_; lean_object* v___x_4746_; uint8_t v_isShared_4747_; uint8_t v_isSharedCheck_4751_; +lean_dec_ref(v___f_4701_); +lean_dec(v_a_4684_); +lean_dec(v_userName_4681_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4744_ = lean_ctor_get(v___x_4709_, 0); +v_isSharedCheck_4751_ = !lean_is_exclusive(v___x_4709_); +if (v_isSharedCheck_4751_ == 0) +{ +v___x_4746_ = v___x_4709_; +v_isShared_4747_ = v_isSharedCheck_4751_; +goto v_resetjp_4745_; +} +else +{ +lean_inc(v_a_4744_); +lean_dec(v___x_4709_); +v___x_4746_ = lean_box(0); +v_isShared_4747_ = v_isSharedCheck_4751_; +goto v_resetjp_4745_; +} +v_resetjp_4745_: +{ +lean_object* v___x_4749_; +if (v_isShared_4747_ == 0) +{ +v___x_4749_ = v___x_4746_; +goto v_reusejp_4748_; +} +else +{ +lean_object* v_reuseFailAlloc_4750_; +v_reuseFailAlloc_4750_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4750_, 0, v_a_4744_); +v___x_4749_ = v_reuseFailAlloc_4750_; +goto v_reusejp_4748_; +} +v_reusejp_4748_: +{ +return v___x_4749_; +} +} +} +} +} +} +} +else +{ +lean_object* v_a_4792_; lean_object* v___x_4794_; uint8_t v_isShared_4795_; uint8_t v_isSharedCheck_4799_; +lean_dec(v_a_4684_); +lean_dec(v_userName_4681_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4792_ = lean_ctor_get(v___x_4692_, 0); +v_isSharedCheck_4799_ = !lean_is_exclusive(v___x_4692_); +if (v_isSharedCheck_4799_ == 0) +{ +v___x_4794_ = v___x_4692_; +v_isShared_4795_ = v_isSharedCheck_4799_; +goto v_resetjp_4793_; +} +else +{ +lean_inc(v_a_4792_); +lean_dec(v___x_4692_); +v___x_4794_ = lean_box(0); +v_isShared_4795_ = v_isSharedCheck_4799_; +goto v_resetjp_4793_; +} +v_resetjp_4793_: +{ +lean_object* v___x_4797_; +if (v_isShared_4795_ == 0) +{ +v___x_4797_ = v___x_4794_; +goto v_reusejp_4796_; +} +else +{ +lean_object* v_reuseFailAlloc_4798_; +v_reuseFailAlloc_4798_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4798_, 0, v_a_4792_); +v___x_4797_ = v_reuseFailAlloc_4798_; +goto v_reusejp_4796_; +} +v_reusejp_4796_: +{ +return v___x_4797_; +} +} +} +} +else +{ +lean_object* v___x_4800_; +lean_dec(v_userName_4681_); +lean_inc(v___y_4648_); +lean_inc_ref(v___y_4647_); +lean_inc(v___y_4646_); +lean_inc_ref(v___y_4645_); +lean_inc(v___x_4690_); +v___x_4800_ = lean_infer_type(v___x_4690_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4800_) == 0) +{ +lean_object* v_a_4801_; lean_object* v___x_4802_; +v_a_4801_ = lean_ctor_get(v___x_4800_, 0); +lean_inc_n(v_a_4801_, 2); +lean_dec_ref(v___x_4800_); +lean_inc(v_a_4684_); +v___x_4802_ = l_Lean_Meta_isExprDefEq(v_a_4684_, v_a_4801_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4802_) == 0) +{ +lean_object* v_a_4803_; lean_object* v___f_4804_; uint8_t v___x_4805_; +v_a_4803_ = lean_ctor_get(v___x_4802_, 0); +lean_inc(v_a_4803_); +lean_dec_ref(v___x_4802_); +v___f_4804_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__7)); +v___x_4805_ = lean_unbox(v_a_4803_); +lean_dec(v_a_4803_); +if (v___x_4805_ == 0) +{ +lean_object* v___x_4806_; +v___x_4806_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__0(v_cls_4688_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4806_) == 0) +{ +lean_object* v_a_4807_; uint8_t v___x_4808_; +v_a_4807_ = lean_ctor_get(v___x_4806_, 0); lean_inc(v_a_4807_); -lean_dec(v___x_4789_); -v___x_4809_ = lean_box(0); -v_isShared_4810_ = v_isSharedCheck_4814_; -goto v_resetjp_4808_; -} -v_resetjp_4808_: +lean_dec_ref(v___x_4806_); +v___x_4808_ = lean_unbox(v_a_4807_); +lean_dec(v_a_4807_); +if (v___x_4808_ == 0) { -lean_object* v___x_4812_; -if (v_isShared_4810_ == 0) -{ -v___x_4812_ = v___x_4809_; -goto v_reusejp_4811_; +lean_object* v___x_4809_; +lean_dec(v_a_4801_); +lean_inc(v___x_4690_); +v___x_4809_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_4684_, v___x_4690_, v___x_4637_, v___x_4678_, v___f_4804_, v___x_4687_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4809_; +goto v___jp_4655_; } else { -lean_object* v_reuseFailAlloc_4813_; -v_reuseFailAlloc_4813_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4813_, 0, v_a_4807_); -v___x_4812_ = v_reuseFailAlloc_4813_; -goto v_reusejp_4811_; -} -v_reusejp_4811_: +lean_object* v___x_4810_; lean_object* v___x_4811_; lean_object* v___x_4812_; lean_object* v___x_4813_; lean_object* v___x_4814_; lean_object* v___x_4815_; lean_object* v___x_4816_; lean_object* v___x_4817_; lean_object* v___x_4818_; lean_object* v___x_4819_; lean_object* v___x_4820_; lean_object* v___x_4821_; lean_object* v___x_4822_; lean_object* v___x_4823_; lean_object* v___x_4824_; lean_object* v___x_4825_; lean_object* v___x_4826_; lean_object* v___x_4827_; +v___x_4810_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__9); +lean_inc(v_a_4643_); +v___x_4811_ = l_Nat_reprFast(v_a_4643_); +v___x_4812_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_4812_, 0, v___x_4811_); +v___x_4813_ = l_Lean_MessageData_ofFormat(v___x_4812_); +v___x_4814_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4814_, 0, v___x_4810_); +lean_ctor_set(v___x_4814_, 1, v___x_4813_); +v___x_4815_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__11); +v___x_4816_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4816_, 0, v___x_4814_); +lean_ctor_set(v___x_4816_, 1, v___x_4815_); +lean_inc(v_a_4684_); +v___x_4817_ = l_Lean_MessageData_ofExpr(v_a_4684_); +v___x_4818_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4818_, 0, v___x_4816_); +lean_ctor_set(v___x_4818_, 1, v___x_4817_); +v___x_4819_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__13); +v___x_4820_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4820_, 0, v___x_4818_); +lean_ctor_set(v___x_4820_, 1, v___x_4819_); +v___x_4821_ = l_Lean_MessageData_ofExpr(v_a_4801_); +v___x_4822_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4822_, 0, v___x_4820_); +lean_ctor_set(v___x_4822_, 1, v___x_4821_); +v___x_4823_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___closed__15); +v___x_4824_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4824_, 0, v___x_4822_); +lean_ctor_set(v___x_4824_, 1, v___x_4823_); +lean_inc(v___x_4690_); +v___x_4825_ = l_Lean_MessageData_ofExpr(v___x_4690_); +v___x_4826_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_4826_, 0, v___x_4824_); +lean_ctor_set(v___x_4826_, 1, v___x_4825_); +v___x_4827_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_4688_, v___x_4826_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +if (lean_obj_tag(v___x_4827_) == 0) { -return v___x_4812_; +lean_object* v_a_4828_; lean_object* v___x_4829_; +v_a_4828_ = lean_ctor_get(v___x_4827_, 0); +lean_inc(v_a_4828_); +lean_dec_ref(v___x_4827_); +lean_inc(v___x_4690_); +v___x_4829_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__7(v_a_4684_, v___x_4690_, v___x_4637_, v___x_4678_, v___f_4804_, v_a_4828_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4829_; +goto v___jp_4655_; +} +else +{ +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +return v___x_4827_; +} +} +} +else +{ +lean_object* v_a_4830_; lean_object* v___x_4832_; uint8_t v_isShared_4833_; uint8_t v_isSharedCheck_4837_; +lean_dec(v_a_4801_); +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4830_ = lean_ctor_get(v___x_4806_, 0); +v_isSharedCheck_4837_ = !lean_is_exclusive(v___x_4806_); +if (v_isSharedCheck_4837_ == 0) +{ +v___x_4832_ = v___x_4806_; +v_isShared_4833_ = v_isSharedCheck_4837_; +goto v_resetjp_4831_; +} +else +{ +lean_inc(v_a_4830_); +lean_dec(v___x_4806_); +v___x_4832_ = lean_box(0); +v_isShared_4833_ = v_isSharedCheck_4837_; +goto v_resetjp_4831_; +} +v_resetjp_4831_: +{ +lean_object* v___x_4835_; +if (v_isShared_4833_ == 0) +{ +v___x_4835_ = v___x_4832_; +goto v_reusejp_4834_; +} +else +{ +lean_object* v_reuseFailAlloc_4836_; +v_reuseFailAlloc_4836_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4836_, 0, v_a_4830_); +v___x_4835_ = v_reuseFailAlloc_4836_; +goto v_reusejp_4834_; +} +v_reusejp_4834_: +{ +return v___x_4835_; +} +} +} +} +else +{ +lean_object* v___x_4838_; +lean_dec(v_a_4801_); +lean_dec(v_a_4684_); +lean_inc(v___x_4690_); +v___x_4838_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_4678_, v___x_4690_, v___y_4646_); +if (lean_obj_tag(v___x_4838_) == 0) +{ +lean_object* v_a_4839_; lean_object* v___x_4840_; +v_a_4839_ = lean_ctor_get(v___x_4838_, 0); +lean_inc(v_a_4839_); +lean_dec_ref(v___x_4838_); +v___x_4840_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__6(v___x_4687_, v_a_4839_, v___y_4645_, v___y_4646_, v___y_4647_, v___y_4648_); +v___y_4656_ = v___x_4840_; +goto v___jp_4655_; +} +else +{ +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +return v___x_4838_; +} +} +} +else +{ +lean_object* v_a_4841_; lean_object* v___x_4843_; uint8_t v_isShared_4844_; uint8_t v_isSharedCheck_4848_; +lean_dec(v_a_4801_); +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4841_ = lean_ctor_get(v___x_4802_, 0); +v_isSharedCheck_4848_ = !lean_is_exclusive(v___x_4802_); +if (v_isSharedCheck_4848_ == 0) +{ +v___x_4843_ = v___x_4802_; +v_isShared_4844_ = v_isSharedCheck_4848_; +goto v_resetjp_4842_; +} +else +{ +lean_inc(v_a_4841_); +lean_dec(v___x_4802_); +v___x_4843_ = lean_box(0); +v_isShared_4844_ = v_isSharedCheck_4848_; +goto v_resetjp_4842_; +} +v_resetjp_4842_: +{ +lean_object* v___x_4846_; +if (v_isShared_4844_ == 0) +{ +v___x_4846_ = v___x_4843_; +goto v_reusejp_4845_; +} +else +{ +lean_object* v_reuseFailAlloc_4847_; +v_reuseFailAlloc_4847_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4847_, 0, v_a_4841_); +v___x_4846_ = v_reuseFailAlloc_4847_; +goto v_reusejp_4845_; +} +v_reusejp_4845_: +{ +return v___x_4846_; +} +} +} +} +else +{ +lean_object* v_a_4849_; lean_object* v___x_4851_; uint8_t v_isShared_4852_; uint8_t v_isSharedCheck_4856_; +lean_dec(v_a_4684_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4849_ = lean_ctor_get(v___x_4800_, 0); +v_isSharedCheck_4856_ = !lean_is_exclusive(v___x_4800_); +if (v_isSharedCheck_4856_ == 0) +{ +v___x_4851_ = v___x_4800_; +v_isShared_4852_ = v_isSharedCheck_4856_; +goto v_resetjp_4850_; +} +else +{ +lean_inc(v_a_4849_); +lean_dec(v___x_4800_); +v___x_4851_ = lean_box(0); +v_isShared_4852_ = v_isSharedCheck_4856_; +goto v_resetjp_4850_; +} +v_resetjp_4850_: +{ +lean_object* v___x_4854_; +if (v_isShared_4852_ == 0) +{ +v___x_4854_ = v___x_4851_; +goto v_reusejp_4853_; +} +else +{ +lean_object* v_reuseFailAlloc_4855_; +v_reuseFailAlloc_4855_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4855_, 0, v_a_4849_); +v___x_4854_ = v_reuseFailAlloc_4855_; +goto v_reusejp_4853_; +} +v_reusejp_4853_: +{ +return v___x_4854_; } } } @@ -18069,1520 +18284,1423 @@ return v___x_4812_; } else { -lean_del_object(v___x_4786_); -lean_dec(v_snd_4784_); -lean_dec(v_fst_4783_); -lean_dec_ref(v___f_4773_); -lean_dec(v_userName_4753_); -goto v___jp_4774_; -} -} +lean_object* v_a_4857_; lean_object* v___x_4859_; uint8_t v_isShared_4860_; uint8_t v_isSharedCheck_4864_; +lean_dec(v_a_4684_); +lean_dec(v_userName_4681_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4857_ = lean_ctor_get(v___x_4685_, 0); +v_isSharedCheck_4864_ = !lean_is_exclusive(v___x_4685_); +if (v_isSharedCheck_4864_ == 0) +{ +v___x_4859_ = v___x_4685_; +v_isShared_4860_ = v_isSharedCheck_4864_; +goto v_resetjp_4858_; } else { -lean_object* v_a_4816_; lean_object* v___x_4818_; uint8_t v_isShared_4819_; uint8_t v_isSharedCheck_4823_; -lean_dec_ref(v___f_4773_); -lean_dec(v_a_4756_); -lean_dec(v_userName_4753_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4816_ = lean_ctor_get(v___x_4781_, 0); -v_isSharedCheck_4823_ = !lean_is_exclusive(v___x_4781_); -if (v_isSharedCheck_4823_ == 0) +lean_inc(v_a_4857_); +lean_dec(v___x_4685_); +v___x_4859_ = lean_box(0); +v_isShared_4860_ = v_isSharedCheck_4864_; +goto v_resetjp_4858_; +} +v_resetjp_4858_: { -v___x_4818_ = v___x_4781_; -v_isShared_4819_ = v_isSharedCheck_4823_; -goto v_resetjp_4817_; +lean_object* v___x_4862_; +if (v_isShared_4860_ == 0) +{ +v___x_4862_ = v___x_4859_; +goto v_reusejp_4861_; } else { -lean_inc(v_a_4816_); -lean_dec(v___x_4781_); -v___x_4818_ = lean_box(0); -v_isShared_4819_ = v_isSharedCheck_4823_; -goto v_resetjp_4817_; +lean_object* v_reuseFailAlloc_4863_; +v_reuseFailAlloc_4863_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4863_, 0, v_a_4857_); +v___x_4862_ = v_reuseFailAlloc_4863_; +goto v_reusejp_4861_; } -v_resetjp_4817_: +v_reusejp_4861_: { -lean_object* v___x_4821_; -if (v_isShared_4819_ == 0) -{ -v___x_4821_ = v___x_4818_; -goto v_reusejp_4820_; -} -else -{ -lean_object* v_reuseFailAlloc_4822_; -v_reuseFailAlloc_4822_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4822_, 0, v_a_4816_); -v___x_4821_ = v_reuseFailAlloc_4822_; -goto v_reusejp_4820_; -} -v_reusejp_4820_: -{ -return v___x_4821_; -} -} -} +return v___x_4862_; } } } } else { -lean_object* v_a_4864_; lean_object* v___x_4866_; uint8_t v_isShared_4867_; uint8_t v_isSharedCheck_4871_; -lean_dec(v_a_4756_); -lean_dec(v_userName_4753_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4864_ = lean_ctor_get(v___x_4764_, 0); -v_isSharedCheck_4871_ = !lean_is_exclusive(v___x_4764_); -if (v_isSharedCheck_4871_ == 0) +lean_object* v_a_4865_; lean_object* v___x_4867_; uint8_t v_isShared_4868_; uint8_t v_isSharedCheck_4872_; +lean_dec(v_userName_4681_); +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4865_ = lean_ctor_get(v___x_4683_, 0); +v_isSharedCheck_4872_ = !lean_is_exclusive(v___x_4683_); +if (v_isSharedCheck_4872_ == 0) { -v___x_4866_ = v___x_4764_; -v_isShared_4867_ = v_isSharedCheck_4871_; -goto v_resetjp_4865_; +v___x_4867_ = v___x_4683_; +v_isShared_4868_ = v_isSharedCheck_4872_; +goto v_resetjp_4866_; } else { -lean_inc(v_a_4864_); -lean_dec(v___x_4764_); -v___x_4866_ = lean_box(0); -v_isShared_4867_ = v_isSharedCheck_4871_; -goto v_resetjp_4865_; +lean_inc(v_a_4865_); +lean_dec(v___x_4683_); +v___x_4867_ = lean_box(0); +v_isShared_4868_ = v_isSharedCheck_4872_; +goto v_resetjp_4866_; } -v_resetjp_4865_: +v_resetjp_4866_: { -lean_object* v___x_4869_; -if (v_isShared_4867_ == 0) +lean_object* v___x_4870_; +if (v_isShared_4868_ == 0) { -v___x_4869_ = v___x_4866_; -goto v_reusejp_4868_; +v___x_4870_ = v___x_4867_; +goto v_reusejp_4869_; } else { -lean_object* v_reuseFailAlloc_4870_; -v_reuseFailAlloc_4870_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4870_, 0, v_a_4864_); -v___x_4869_ = v_reuseFailAlloc_4870_; -goto v_reusejp_4868_; +lean_object* v_reuseFailAlloc_4871_; +v_reuseFailAlloc_4871_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4871_, 0, v_a_4865_); +v___x_4870_ = v_reuseFailAlloc_4871_; +goto v_reusejp_4869_; } -v_reusejp_4868_: +v_reusejp_4869_: { -return v___x_4869_; +return v___x_4870_; } } } } else { -lean_object* v___x_4872_; -lean_dec(v_userName_4753_); -lean_inc(v___y_4720_); -lean_inc_ref(v___y_4719_); -lean_inc(v___y_4718_); -lean_inc_ref(v___y_4717_); -lean_inc(v___x_4762_); -v___x_4872_ = lean_infer_type(v___x_4762_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4872_) == 0) +lean_object* v_a_4873_; lean_object* v___x_4875_; uint8_t v_isShared_4876_; uint8_t v_isSharedCheck_4880_; +lean_dec(v___x_4678_); +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4873_ = lean_ctor_get(v___x_4679_, 0); +v_isSharedCheck_4880_ = !lean_is_exclusive(v___x_4679_); +if (v_isSharedCheck_4880_ == 0) { -lean_object* v_a_4873_; lean_object* v___x_4874_; -v_a_4873_ = lean_ctor_get(v___x_4872_, 0); -lean_inc_n(v_a_4873_, 2); -lean_dec_ref(v___x_4872_); -lean_inc(v_a_4756_); -v___x_4874_ = l_Lean_Meta_isExprDefEq(v_a_4756_, v_a_4873_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4874_) == 0) +v___x_4875_ = v___x_4679_; +v_isShared_4876_ = v_isSharedCheck_4880_; +goto v_resetjp_4874_; +} +else { -lean_object* v_a_4875_; lean_object* v___f_4876_; uint8_t v___x_4877_; -v_a_4875_ = lean_ctor_get(v___x_4874_, 0); -lean_inc(v_a_4875_); -lean_dec_ref(v___x_4874_); -v___f_4876_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__7)); -v___x_4877_ = lean_unbox(v_a_4875_); -lean_dec(v_a_4875_); -if (v___x_4877_ == 0) +lean_inc(v_a_4873_); +lean_dec(v___x_4679_); +v___x_4875_ = lean_box(0); +v_isShared_4876_ = v_isSharedCheck_4880_; +goto v_resetjp_4874_; +} +v_resetjp_4874_: { lean_object* v___x_4878_; -v___x_4878_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__0(v_cls_4760_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4878_) == 0) +if (v_isShared_4876_ == 0) { -lean_object* v_a_4879_; uint8_t v___x_4880_; -v_a_4879_ = lean_ctor_get(v___x_4878_, 0); -lean_inc(v_a_4879_); -lean_dec_ref(v___x_4878_); -v___x_4880_ = lean_unbox(v_a_4879_); -lean_dec(v_a_4879_); -if (v___x_4880_ == 0) -{ -lean_object* v___x_4881_; -lean_dec(v_a_4873_); -lean_inc(v___x_4762_); -v___x_4881_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_4756_, v___x_4762_, v___x_4709_, v___x_4750_, v___f_4876_, v___x_4759_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4881_; -goto v___jp_4727_; +v___x_4878_ = v___x_4875_; +goto v_reusejp_4877_; } else { -lean_object* v___x_4882_; lean_object* v___x_4883_; lean_object* v___x_4884_; lean_object* v___x_4885_; lean_object* v___x_4886_; lean_object* v___x_4887_; lean_object* v___x_4888_; lean_object* v___x_4889_; lean_object* v___x_4890_; lean_object* v___x_4891_; lean_object* v___x_4892_; lean_object* v___x_4893_; lean_object* v___x_4894_; lean_object* v___x_4895_; lean_object* v___x_4896_; lean_object* v___x_4897_; lean_object* v___x_4898_; lean_object* v___x_4899_; -v___x_4882_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__9); -lean_inc(v_a_4715_); -v___x_4883_ = l_Nat_reprFast(v_a_4715_); -v___x_4884_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_4884_, 0, v___x_4883_); -v___x_4885_ = l_Lean_MessageData_ofFormat(v___x_4884_); -v___x_4886_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4886_, 0, v___x_4882_); -lean_ctor_set(v___x_4886_, 1, v___x_4885_); -v___x_4887_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__11); -v___x_4888_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4888_, 0, v___x_4886_); -lean_ctor_set(v___x_4888_, 1, v___x_4887_); -lean_inc(v_a_4756_); -v___x_4889_ = l_Lean_MessageData_ofExpr(v_a_4756_); -v___x_4890_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4890_, 0, v___x_4888_); -lean_ctor_set(v___x_4890_, 1, v___x_4889_); -v___x_4891_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__13); -v___x_4892_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4892_, 0, v___x_4890_); -lean_ctor_set(v___x_4892_, 1, v___x_4891_); -v___x_4893_ = l_Lean_MessageData_ofExpr(v_a_4873_); -v___x_4894_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4894_, 0, v___x_4892_); -lean_ctor_set(v___x_4894_, 1, v___x_4893_); -v___x_4895_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___closed__15); -v___x_4896_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4896_, 0, v___x_4894_); -lean_ctor_set(v___x_4896_, 1, v___x_4895_); -lean_inc(v___x_4762_); -v___x_4897_ = l_Lean_MessageData_ofExpr(v___x_4762_); -v___x_4898_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_4898_, 0, v___x_4896_); -lean_ctor_set(v___x_4898_, 1, v___x_4897_); -v___x_4899_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_4760_, v___x_4898_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -if (lean_obj_tag(v___x_4899_) == 0) +lean_object* v_reuseFailAlloc_4879_; +v_reuseFailAlloc_4879_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4879_, 0, v_a_4873_); +v___x_4878_ = v_reuseFailAlloc_4879_; +goto v_reusejp_4877_; +} +v_reusejp_4877_: { -lean_object* v_a_4900_; lean_object* v___x_4901_; -v_a_4900_ = lean_ctor_get(v___x_4899_, 0); -lean_inc(v_a_4900_); -lean_dec_ref(v___x_4899_); -lean_inc(v___x_4762_); -v___x_4901_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__7(v_a_4756_, v___x_4762_, v___x_4709_, v___x_4750_, v___f_4876_, v_a_4900_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4901_; -goto v___jp_4727_; +return v___x_4878_; } -else +} +} +} +v___jp_4650_: { -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -return v___x_4899_; -} -} -} -else -{ -lean_object* v_a_4902_; lean_object* v___x_4904_; uint8_t v_isShared_4905_; uint8_t v_isSharedCheck_4909_; -lean_dec(v_a_4873_); -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4902_ = lean_ctor_get(v___x_4878_, 0); -v_isSharedCheck_4909_ = !lean_is_exclusive(v___x_4878_); -if (v_isSharedCheck_4909_ == 0) -{ -v___x_4904_ = v___x_4878_; -v_isShared_4905_ = v_isSharedCheck_4909_; -goto v_resetjp_4903_; -} -else -{ -lean_inc(v_a_4902_); -lean_dec(v___x_4878_); -v___x_4904_ = lean_box(0); -v_isShared_4905_ = v_isSharedCheck_4909_; -goto v_resetjp_4903_; -} -v_resetjp_4903_: -{ -lean_object* v___x_4907_; -if (v_isShared_4905_ == 0) -{ -v___x_4907_ = v___x_4904_; -goto v_reusejp_4906_; -} -else -{ -lean_object* v_reuseFailAlloc_4908_; -v_reuseFailAlloc_4908_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4908_, 0, v_a_4902_); -v___x_4907_ = v_reuseFailAlloc_4908_; -goto v_reusejp_4906_; -} -v_reusejp_4906_: -{ -return v___x_4907_; -} -} -} -} -else -{ -lean_object* v___x_4910_; -lean_dec(v_a_4873_); -lean_dec(v_a_4756_); -lean_inc(v___x_4762_); -v___x_4910_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_4750_, v___x_4762_, v___y_4718_); -if (lean_obj_tag(v___x_4910_) == 0) -{ -lean_object* v_a_4911_; lean_object* v___x_4912_; -v_a_4911_ = lean_ctor_get(v___x_4910_, 0); -lean_inc(v_a_4911_); -lean_dec_ref(v___x_4910_); -v___x_4912_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__6(v___x_4759_, v_a_4911_, v___y_4717_, v___y_4718_, v___y_4719_, v___y_4720_); -v___y_4728_ = v___x_4912_; -goto v___jp_4727_; -} -else -{ -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -return v___x_4910_; -} -} -} -else -{ -lean_object* v_a_4913_; lean_object* v___x_4915_; uint8_t v_isShared_4916_; uint8_t v_isSharedCheck_4920_; -lean_dec(v_a_4873_); -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4913_ = lean_ctor_get(v___x_4874_, 0); -v_isSharedCheck_4920_ = !lean_is_exclusive(v___x_4874_); -if (v_isSharedCheck_4920_ == 0) -{ -v___x_4915_ = v___x_4874_; -v_isShared_4916_ = v_isSharedCheck_4920_; -goto v_resetjp_4914_; -} -else -{ -lean_inc(v_a_4913_); -lean_dec(v___x_4874_); -v___x_4915_ = lean_box(0); -v_isShared_4916_ = v_isSharedCheck_4920_; -goto v_resetjp_4914_; -} -v_resetjp_4914_: -{ -lean_object* v___x_4918_; -if (v_isShared_4916_ == 0) -{ -v___x_4918_ = v___x_4915_; -goto v_reusejp_4917_; -} -else -{ -lean_object* v_reuseFailAlloc_4919_; -v_reuseFailAlloc_4919_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4919_, 0, v_a_4913_); -v___x_4918_ = v_reuseFailAlloc_4919_; -goto v_reusejp_4917_; -} -v_reusejp_4917_: -{ -return v___x_4918_; -} -} -} -} -else -{ -lean_object* v_a_4921_; lean_object* v___x_4923_; uint8_t v_isShared_4924_; uint8_t v_isSharedCheck_4928_; -lean_dec(v_a_4756_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4921_ = lean_ctor_get(v___x_4872_, 0); -v_isSharedCheck_4928_ = !lean_is_exclusive(v___x_4872_); -if (v_isSharedCheck_4928_ == 0) -{ -v___x_4923_ = v___x_4872_; -v_isShared_4924_ = v_isSharedCheck_4928_; -goto v_resetjp_4922_; -} -else -{ -lean_inc(v_a_4921_); -lean_dec(v___x_4872_); -v___x_4923_ = lean_box(0); -v_isShared_4924_ = v_isSharedCheck_4928_; -goto v_resetjp_4922_; -} -v_resetjp_4922_: -{ -lean_object* v___x_4926_; -if (v_isShared_4924_ == 0) -{ -v___x_4926_ = v___x_4923_; -goto v_reusejp_4925_; -} -else -{ -lean_object* v_reuseFailAlloc_4927_; -v_reuseFailAlloc_4927_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4927_, 0, v_a_4921_); -v___x_4926_ = v_reuseFailAlloc_4927_; -goto v_reusejp_4925_; -} -v_reusejp_4925_: -{ -return v___x_4926_; -} -} -} -} -} -else -{ -lean_object* v_a_4929_; lean_object* v___x_4931_; uint8_t v_isShared_4932_; uint8_t v_isSharedCheck_4936_; -lean_dec(v_a_4756_); -lean_dec(v_userName_4753_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4929_ = lean_ctor_get(v___x_4757_, 0); -v_isSharedCheck_4936_ = !lean_is_exclusive(v___x_4757_); -if (v_isSharedCheck_4936_ == 0) -{ -v___x_4931_ = v___x_4757_; -v_isShared_4932_ = v_isSharedCheck_4936_; -goto v_resetjp_4930_; -} -else -{ -lean_inc(v_a_4929_); -lean_dec(v___x_4757_); -v___x_4931_ = lean_box(0); -v_isShared_4932_ = v_isSharedCheck_4936_; -goto v_resetjp_4930_; -} -v_resetjp_4930_: -{ -lean_object* v___x_4934_; -if (v_isShared_4932_ == 0) -{ -v___x_4934_ = v___x_4931_; -goto v_reusejp_4933_; -} -else -{ -lean_object* v_reuseFailAlloc_4935_; -v_reuseFailAlloc_4935_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4935_, 0, v_a_4929_); -v___x_4934_ = v_reuseFailAlloc_4935_; -goto v_reusejp_4933_; -} -v_reusejp_4933_: -{ -return v___x_4934_; -} -} -} -} -else -{ -lean_object* v_a_4937_; lean_object* v___x_4939_; uint8_t v_isShared_4940_; uint8_t v_isSharedCheck_4944_; -lean_dec(v_userName_4753_); -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4937_ = lean_ctor_get(v___x_4755_, 0); -v_isSharedCheck_4944_ = !lean_is_exclusive(v___x_4755_); -if (v_isSharedCheck_4944_ == 0) -{ -v___x_4939_ = v___x_4755_; -v_isShared_4940_ = v_isSharedCheck_4944_; -goto v_resetjp_4938_; -} -else -{ -lean_inc(v_a_4937_); -lean_dec(v___x_4755_); -v___x_4939_ = lean_box(0); -v_isShared_4940_ = v_isSharedCheck_4944_; -goto v_resetjp_4938_; -} -v_resetjp_4938_: -{ -lean_object* v___x_4942_; -if (v_isShared_4940_ == 0) -{ -v___x_4942_ = v___x_4939_; -goto v_reusejp_4941_; -} -else -{ -lean_object* v_reuseFailAlloc_4943_; -v_reuseFailAlloc_4943_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4943_, 0, v_a_4937_); -v___x_4942_ = v_reuseFailAlloc_4943_; -goto v_reusejp_4941_; -} -v_reusejp_4941_: -{ -return v___x_4942_; -} -} -} -} -else -{ -lean_object* v_a_4945_; lean_object* v___x_4947_; uint8_t v_isShared_4948_; uint8_t v_isSharedCheck_4952_; -lean_dec(v___x_4750_); -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4945_ = lean_ctor_get(v___x_4751_, 0); -v_isSharedCheck_4952_ = !lean_is_exclusive(v___x_4751_); -if (v_isSharedCheck_4952_ == 0) -{ -v___x_4947_ = v___x_4751_; -v_isShared_4948_ = v_isSharedCheck_4952_; -goto v_resetjp_4946_; -} -else -{ -lean_inc(v_a_4945_); -lean_dec(v___x_4751_); -v___x_4947_ = lean_box(0); -v_isShared_4948_ = v_isSharedCheck_4952_; -goto v_resetjp_4946_; -} -v_resetjp_4946_: -{ -lean_object* v___x_4950_; -if (v_isShared_4948_ == 0) -{ -v___x_4950_ = v___x_4947_; -goto v_reusejp_4949_; -} -else -{ -lean_object* v_reuseFailAlloc_4951_; -v_reuseFailAlloc_4951_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4951_, 0, v_a_4945_); -v___x_4950_ = v_reuseFailAlloc_4951_; -goto v_reusejp_4949_; -} -v_reusejp_4949_: -{ -return v___x_4950_; -} -} -} -} -v___jp_4722_: -{ -lean_object* v___x_4724_; lean_object* v___x_4725_; -v___x_4724_ = lean_unsigned_to_nat(1u); -v___x_4725_ = lean_nat_add(v_a_4715_, v___x_4724_); -lean_dec(v_a_4715_); -v_a_4715_ = v___x_4725_; -v_b_4716_ = v_a_4723_; +lean_object* v___x_4652_; lean_object* v___x_4653_; +v___x_4652_ = lean_unsigned_to_nat(1u); +v___x_4653_ = lean_nat_add(v_a_4643_, v___x_4652_); +lean_dec(v_a_4643_); +v_a_4643_ = v___x_4653_; +v_b_4644_ = v_a_4651_; goto _start; } -v___jp_4727_: +v___jp_4655_: { -if (lean_obj_tag(v___y_4728_) == 0) +if (lean_obj_tag(v___y_4656_) == 0) { -lean_object* v_a_4729_; lean_object* v___x_4731_; uint8_t v_isShared_4732_; uint8_t v_isSharedCheck_4738_; -v_a_4729_ = lean_ctor_get(v___y_4728_, 0); -v_isSharedCheck_4738_ = !lean_is_exclusive(v___y_4728_); -if (v_isSharedCheck_4738_ == 0) +lean_object* v_a_4657_; lean_object* v___x_4659_; uint8_t v_isShared_4660_; uint8_t v_isSharedCheck_4666_; +v_a_4657_ = lean_ctor_get(v___y_4656_, 0); +v_isSharedCheck_4666_ = !lean_is_exclusive(v___y_4656_); +if (v_isSharedCheck_4666_ == 0) { -v___x_4731_ = v___y_4728_; -v_isShared_4732_ = v_isSharedCheck_4738_; -goto v_resetjp_4730_; +v___x_4659_ = v___y_4656_; +v_isShared_4660_ = v_isSharedCheck_4666_; +goto v_resetjp_4658_; } else { -lean_inc(v_a_4729_); -lean_dec(v___y_4728_); -v___x_4731_ = lean_box(0); -v_isShared_4732_ = v_isSharedCheck_4738_; -goto v_resetjp_4730_; +lean_inc(v_a_4657_); +lean_dec(v___y_4656_); +v___x_4659_ = lean_box(0); +v_isShared_4660_ = v_isSharedCheck_4666_; +goto v_resetjp_4658_; } -v_resetjp_4730_: +v_resetjp_4658_: { -if (lean_obj_tag(v_a_4729_) == 0) +if (lean_obj_tag(v_a_4657_) == 0) { -lean_object* v_a_4733_; lean_object* v___x_4735_; -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4733_ = lean_ctor_get(v_a_4729_, 0); -lean_inc(v_a_4733_); -lean_dec_ref(v_a_4729_); -if (v_isShared_4732_ == 0) +lean_object* v_a_4661_; lean_object* v___x_4663_; +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4661_ = lean_ctor_get(v_a_4657_, 0); +lean_inc(v_a_4661_); +lean_dec_ref(v_a_4657_); +if (v_isShared_4660_ == 0) { -lean_ctor_set(v___x_4731_, 0, v_a_4733_); -v___x_4735_ = v___x_4731_; -goto v_reusejp_4734_; +lean_ctor_set(v___x_4659_, 0, v_a_4661_); +v___x_4663_ = v___x_4659_; +goto v_reusejp_4662_; } else { -lean_object* v_reuseFailAlloc_4736_; -v_reuseFailAlloc_4736_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4736_, 0, v_a_4733_); -v___x_4735_ = v_reuseFailAlloc_4736_; -goto v_reusejp_4734_; +lean_object* v_reuseFailAlloc_4664_; +v_reuseFailAlloc_4664_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4664_, 0, v_a_4661_); +v___x_4663_ = v_reuseFailAlloc_4664_; +goto v_reusejp_4662_; } -v_reusejp_4734_: +v_reusejp_4662_: { -return v___x_4735_; +return v___x_4663_; } } else { -lean_object* v_a_4737_; -lean_del_object(v___x_4731_); -v_a_4737_ = lean_ctor_get(v_a_4729_, 0); -lean_inc(v_a_4737_); -lean_dec_ref(v_a_4729_); -v_a_4723_ = v_a_4737_; -goto v___jp_4722_; +lean_object* v_a_4665_; +lean_del_object(v___x_4659_); +v_a_4665_ = lean_ctor_get(v_a_4657_, 0); +lean_inc(v_a_4665_); +lean_dec_ref(v_a_4657_); +v_a_4651_ = v_a_4665_; +goto v___jp_4650_; } } } else { -lean_object* v_a_4739_; lean_object* v___x_4741_; uint8_t v_isShared_4742_; uint8_t v_isSharedCheck_4746_; -lean_dec(v_a_4715_); -lean_dec_ref(v_expectedType_4714_); -lean_dec(v_val_4713_); -v_a_4739_ = lean_ctor_get(v___y_4728_, 0); -v_isSharedCheck_4746_ = !lean_is_exclusive(v___y_4728_); -if (v_isSharedCheck_4746_ == 0) +lean_object* v_a_4667_; lean_object* v___x_4669_; uint8_t v_isShared_4670_; uint8_t v_isSharedCheck_4674_; +lean_dec(v_a_4643_); +lean_dec_ref(v_expectedType_4642_); +lean_dec(v_val_4641_); +v_a_4667_ = lean_ctor_get(v___y_4656_, 0); +v_isSharedCheck_4674_ = !lean_is_exclusive(v___y_4656_); +if (v_isSharedCheck_4674_ == 0) { -v___x_4741_ = v___y_4728_; -v_isShared_4742_ = v_isSharedCheck_4746_; -goto v_resetjp_4740_; +v___x_4669_ = v___y_4656_; +v_isShared_4670_ = v_isSharedCheck_4674_; +goto v_resetjp_4668_; } else { -lean_inc(v_a_4739_); -lean_dec(v___y_4728_); -v___x_4741_ = lean_box(0); -v_isShared_4742_ = v_isSharedCheck_4746_; -goto v_resetjp_4740_; +lean_inc(v_a_4667_); +lean_dec(v___y_4656_); +v___x_4669_ = lean_box(0); +v_isShared_4670_ = v_isSharedCheck_4674_; +goto v_resetjp_4668_; } -v_resetjp_4740_: +v_resetjp_4668_: { -lean_object* v___x_4744_; -if (v_isShared_4742_ == 0) +lean_object* v___x_4672_; +if (v_isShared_4670_ == 0) { -v___x_4744_ = v___x_4741_; -goto v_reusejp_4743_; +v___x_4672_ = v___x_4669_; +goto v_reusejp_4671_; } else { -lean_object* v_reuseFailAlloc_4745_; -v_reuseFailAlloc_4745_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4745_, 0, v_a_4739_); -v___x_4744_ = v_reuseFailAlloc_4745_; -goto v_reusejp_4743_; +lean_object* v_reuseFailAlloc_4673_; +v_reuseFailAlloc_4673_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4673_, 0, v_a_4667_); +v___x_4672_ = v_reuseFailAlloc_4673_; +goto v_reusejp_4671_; } -v_reusejp_4743_: +v_reusejp_4671_: { -return v___x_4744_; +return v___x_4672_; } } } } } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_spec__25(lean_object* v_inst_4953_, lean_object* v_expectedType_4954_, uint8_t v___x_4955_, uint8_t v_compile_4956_, uint8_t v_logCompileErrors_4957_, uint8_t v_isMeta_4958_, lean_object* v_val_4959_, lean_object* v_x_4960_, lean_object* v_x_4961_, lean_object* v_x_4962_, lean_object* v___y_4963_, lean_object* v___y_4964_, lean_object* v___y_4965_, lean_object* v___y_4966_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24(lean_object* v_inst_4881_, lean_object* v_expectedType_4882_, uint8_t v___x_4883_, uint8_t v_compile_4884_, uint8_t v_logCompileErrors_4885_, uint8_t v_isMeta_4886_, lean_object* v_val_4887_, lean_object* v_x_4888_, lean_object* v_x_4889_, lean_object* v_x_4890_, lean_object* v___y_4891_, lean_object* v___y_4892_, lean_object* v___y_4893_, lean_object* v___y_4894_){ _start: { -lean_object* v___y_4969_; lean_object* v___y_4970_; lean_object* v___y_4971_; lean_object* v___y_4972_; lean_object* v___y_4991_; lean_object* v___y_4992_; lean_object* v___y_4993_; lean_object* v___y_4994_; lean_object* v___y_5008_; lean_object* v___y_5009_; lean_object* v___y_5010_; lean_object* v_options_5011_; lean_object* v___y_5012_; -if (lean_obj_tag(v_x_4960_) == 5) +lean_object* v___y_4897_; lean_object* v___y_4898_; lean_object* v___y_4899_; lean_object* v___y_4900_; lean_object* v___y_4919_; lean_object* v___y_4920_; lean_object* v___y_4921_; lean_object* v___y_4922_; lean_object* v___y_4936_; lean_object* v___y_4937_; lean_object* v___y_4938_; lean_object* v_options_4939_; lean_object* v___y_4940_; +if (lean_obj_tag(v_x_4888_) == 5) { -lean_object* v_fn_5080_; lean_object* v_arg_5081_; lean_object* v___x_5082_; lean_object* v___x_5083_; lean_object* v___x_5084_; -v_fn_5080_ = lean_ctor_get(v_x_4960_, 0); -lean_inc_ref(v_fn_5080_); -v_arg_5081_ = lean_ctor_get(v_x_4960_, 1); -lean_inc_ref(v_arg_5081_); -lean_dec_ref(v_x_4960_); -v___x_5082_ = lean_array_set(v_x_4961_, v_x_4962_, v_arg_5081_); -v___x_5083_ = lean_unsigned_to_nat(1u); -v___x_5084_ = lean_nat_sub(v_x_4962_, v___x_5083_); -lean_dec(v_x_4962_); -v_x_4960_ = v_fn_5080_; -v_x_4961_ = v___x_5082_; -v_x_4962_ = v___x_5084_; +lean_object* v_fn_5007_; lean_object* v_arg_5008_; lean_object* v___x_5009_; lean_object* v___x_5010_; lean_object* v___x_5011_; +v_fn_5007_ = lean_ctor_get(v_x_4888_, 0); +lean_inc_ref(v_fn_5007_); +v_arg_5008_ = lean_ctor_get(v_x_4888_, 1); +lean_inc_ref(v_arg_5008_); +lean_dec_ref(v_x_4888_); +v___x_5009_ = lean_array_set(v_x_4889_, v_x_4890_, v_arg_5008_); +v___x_5010_ = lean_unsigned_to_nat(1u); +v___x_5011_ = lean_nat_sub(v_x_4890_, v___x_5010_); +lean_dec(v_x_4890_); +v_x_4888_ = v_fn_5007_; +v_x_4889_ = v___x_5009_; +v_x_4890_ = v___x_5011_; goto _start; } else { -lean_object* v_cls_5086_; lean_object* v___y_5088_; lean_object* v___y_5089_; lean_object* v___y_5090_; lean_object* v___y_5091_; lean_object* v___x_5109_; -lean_dec(v_x_4962_); -v_cls_5086_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_5109_ = l_Lean_Expr_constName_x3f(v_x_4960_); -if (lean_obj_tag(v___x_5109_) == 0) +lean_object* v_cls_5013_; lean_object* v___y_5015_; lean_object* v___y_5016_; lean_object* v___y_5017_; lean_object* v___y_5018_; lean_object* v___x_5036_; +lean_dec(v_x_4890_); +v_cls_5013_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_5036_ = l_Lean_Expr_constName_x3f(v_x_4888_); +if (lean_obj_tag(v___x_5036_) == 0) { -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -v___y_5088_ = v___y_4963_; -v___y_5089_ = v___y_4964_; -v___y_5090_ = v___y_4965_; -v___y_5091_ = v___y_4966_; -goto v___jp_5087_; +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +v___y_5015_ = v___y_4891_; +v___y_5016_ = v___y_4892_; +v___y_5017_ = v___y_4893_; +v___y_5018_ = v___y_4894_; +goto v___jp_5014_; } else { -lean_object* v_val_5110_; lean_object* v___x_5111_; -v_val_5110_ = lean_ctor_get(v___x_5109_, 0); -lean_inc(v_val_5110_); -lean_dec_ref(v___x_5109_); -v___x_5111_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_5110_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -if (lean_obj_tag(v___x_5111_) == 0) +lean_object* v_val_5037_; lean_object* v___x_5038_; +v_val_5037_ = lean_ctor_get(v___x_5036_, 0); +lean_inc(v_val_5037_); +lean_dec_ref(v___x_5036_); +v___x_5038_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_5037_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); +if (lean_obj_tag(v___x_5038_) == 0) { -lean_object* v_a_5112_; -v_a_5112_ = lean_ctor_get(v___x_5111_, 0); -lean_inc(v_a_5112_); -lean_dec_ref(v___x_5111_); -if (lean_obj_tag(v_a_5112_) == 6) +lean_object* v_a_5039_; +v_a_5039_ = lean_ctor_get(v___x_5038_, 0); +lean_inc(v_a_5039_); +lean_dec_ref(v___x_5038_); +if (lean_obj_tag(v_a_5039_) == 6) { -lean_object* v_val_5113_; lean_object* v___x_5114_; -lean_dec_ref(v_inst_4953_); -v_val_5113_ = lean_ctor_get(v_a_5112_, 0); -lean_inc_ref(v_val_5113_); -lean_dec_ref(v_a_5112_); -lean_inc(v___y_4966_); -lean_inc_ref(v___y_4965_); -lean_inc(v___y_4964_); -lean_inc_ref(v___y_4963_); -lean_inc_ref(v_x_4960_); -v___x_5114_ = lean_infer_type(v_x_4960_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -if (lean_obj_tag(v___x_5114_) == 0) +lean_object* v_val_5040_; lean_object* v___x_5041_; +lean_dec_ref(v_inst_4881_); +v_val_5040_ = lean_ctor_get(v_a_5039_, 0); +lean_inc_ref(v_val_5040_); +lean_dec_ref(v_a_5039_); +lean_inc(v___y_4894_); +lean_inc_ref(v___y_4893_); +lean_inc(v___y_4892_); +lean_inc_ref(v___y_4891_); +lean_inc_ref(v_x_4888_); +v___x_5041_ = lean_infer_type(v_x_4888_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); +if (lean_obj_tag(v___x_5041_) == 0) { -lean_object* v_a_5115_; uint8_t v___x_5116_; lean_object* v___x_5117_; -v_a_5115_ = lean_ctor_get(v___x_5114_, 0); -lean_inc(v_a_5115_); -lean_dec_ref(v___x_5114_); -v___x_5116_ = 0; -v___x_5117_ = l_Lean_Meta_forallMetaTelescope(v_a_5115_, v___x_5116_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -if (lean_obj_tag(v___x_5117_) == 0) +lean_object* v_a_5042_; uint8_t v___x_5043_; lean_object* v___x_5044_; +v_a_5042_ = lean_ctor_get(v___x_5041_, 0); +lean_inc(v_a_5042_); +lean_dec_ref(v___x_5041_); +v___x_5043_ = 0; +v___x_5044_ = l_Lean_Meta_forallMetaTelescope(v_a_5042_, v___x_5043_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); +if (lean_obj_tag(v___x_5044_) == 0) { -lean_object* v_a_5118_; lean_object* v_snd_5119_; lean_object* v_fst_5120_; lean_object* v___x_5122_; uint8_t v_isShared_5123_; uint8_t v_isSharedCheck_5220_; -v_a_5118_ = lean_ctor_get(v___x_5117_, 0); -lean_inc(v_a_5118_); -lean_dec_ref(v___x_5117_); -v_snd_5119_ = lean_ctor_get(v_a_5118_, 1); -v_fst_5120_ = lean_ctor_get(v_a_5118_, 0); -v_isSharedCheck_5220_ = !lean_is_exclusive(v_a_5118_); -if (v_isSharedCheck_5220_ == 0) +lean_object* v_a_5045_; lean_object* v_snd_5046_; lean_object* v_fst_5047_; lean_object* v___x_5049_; uint8_t v_isShared_5050_; uint8_t v_isSharedCheck_5147_; +v_a_5045_ = lean_ctor_get(v___x_5044_, 0); +lean_inc(v_a_5045_); +lean_dec_ref(v___x_5044_); +v_snd_5046_ = lean_ctor_get(v_a_5045_, 1); +v_fst_5047_ = lean_ctor_get(v_a_5045_, 0); +v_isSharedCheck_5147_ = !lean_is_exclusive(v_a_5045_); +if (v_isSharedCheck_5147_ == 0) { -v___x_5122_ = v_a_5118_; -v_isShared_5123_ = v_isSharedCheck_5220_; -goto v_resetjp_5121_; +v___x_5049_ = v_a_5045_; +v_isShared_5050_ = v_isSharedCheck_5147_; +goto v_resetjp_5048_; } else { -lean_inc(v_snd_5119_); -lean_inc(v_fst_5120_); -lean_dec(v_a_5118_); -v___x_5122_ = lean_box(0); -v_isShared_5123_ = v_isSharedCheck_5220_; -goto v_resetjp_5121_; +lean_inc(v_snd_5046_); +lean_inc(v_fst_5047_); +lean_dec(v_a_5045_); +v___x_5049_ = lean_box(0); +v_isShared_5050_ = v_isSharedCheck_5147_; +goto v_resetjp_5048_; } -v_resetjp_5121_: +v_resetjp_5048_: { -lean_object* v_snd_5124_; lean_object* v___x_5126_; uint8_t v_isShared_5127_; uint8_t v_isSharedCheck_5218_; -v_snd_5124_ = lean_ctor_get(v_snd_5119_, 1); -v_isSharedCheck_5218_ = !lean_is_exclusive(v_snd_5119_); -if (v_isSharedCheck_5218_ == 0) +lean_object* v_snd_5051_; lean_object* v___x_5053_; uint8_t v_isShared_5054_; uint8_t v_isSharedCheck_5145_; +v_snd_5051_ = lean_ctor_get(v_snd_5046_, 1); +v_isSharedCheck_5145_ = !lean_is_exclusive(v_snd_5046_); +if (v_isSharedCheck_5145_ == 0) { -lean_object* v_unused_5219_; -v_unused_5219_ = lean_ctor_get(v_snd_5119_, 0); -lean_dec(v_unused_5219_); -v___x_5126_ = v_snd_5119_; -v_isShared_5127_ = v_isSharedCheck_5218_; -goto v_resetjp_5125_; +lean_object* v_unused_5146_; +v_unused_5146_ = lean_ctor_get(v_snd_5046_, 0); +lean_dec(v_unused_5146_); +v___x_5053_ = v_snd_5046_; +v_isShared_5054_ = v_isSharedCheck_5145_; +goto v_resetjp_5052_; } else { -lean_inc(v_snd_5124_); -lean_dec(v_snd_5119_); -v___x_5126_ = lean_box(0); -v_isShared_5127_ = v_isSharedCheck_5218_; -goto v_resetjp_5125_; +lean_inc(v_snd_5051_); +lean_dec(v_snd_5046_); +v___x_5053_ = lean_box(0); +v_isShared_5054_ = v_isSharedCheck_5145_; +goto v_resetjp_5052_; } -v_resetjp_5125_: +v_resetjp_5052_: { -lean_object* v___x_5128_; lean_object* v___y_5130_; lean_object* v___y_5131_; lean_object* v___y_5132_; lean_object* v___y_5133_; lean_object* v___x_5165_; uint8_t v___x_5166_; -v___x_5128_ = lean_array_get_size(v_x_4961_); -v___x_5165_ = lean_array_get_size(v_fst_5120_); -v___x_5166_ = lean_nat_dec_eq(v___x_5128_, v___x_5165_); -if (v___x_5166_ == 0) +lean_object* v___x_5055_; lean_object* v___y_5057_; lean_object* v___y_5058_; lean_object* v___y_5059_; lean_object* v___y_5060_; lean_object* v___x_5092_; uint8_t v___x_5093_; +v___x_5055_ = lean_array_get_size(v_x_4889_); +v___x_5092_ = lean_array_get_size(v_fst_5047_); +v___x_5093_ = lean_nat_dec_eq(v___x_5055_, v___x_5092_); +if (v___x_5093_ == 0) { -lean_object* v___x_5167_; lean_object* v___x_5168_; lean_object* v___x_5170_; -lean_dec(v_snd_5124_); -lean_dec(v_fst_5120_); -lean_dec_ref(v_val_5113_); -lean_dec(v_val_4959_); -lean_dec_ref(v_expectedType_4954_); -v___x_5167_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_5168_ = l_Lean_MessageData_ofExpr(v_x_4960_); -if (v_isShared_5127_ == 0) +lean_object* v___x_5094_; lean_object* v___x_5095_; lean_object* v___x_5097_; +lean_dec(v_snd_5051_); +lean_dec(v_fst_5047_); +lean_dec_ref(v_val_5040_); +lean_dec(v_val_4887_); +lean_dec_ref(v_expectedType_4882_); +v___x_5094_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_5095_ = l_Lean_MessageData_ofExpr(v_x_4888_); +if (v_isShared_5054_ == 0) { -lean_ctor_set_tag(v___x_5126_, 7); -lean_ctor_set(v___x_5126_, 1, v___x_5168_); -lean_ctor_set(v___x_5126_, 0, v___x_5167_); -v___x_5170_ = v___x_5126_; -goto v_reusejp_5169_; +lean_ctor_set_tag(v___x_5053_, 7); +lean_ctor_set(v___x_5053_, 1, v___x_5095_); +lean_ctor_set(v___x_5053_, 0, v___x_5094_); +v___x_5097_ = v___x_5053_; +goto v_reusejp_5096_; } else { -lean_object* v_reuseFailAlloc_5181_; -v_reuseFailAlloc_5181_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5181_, 0, v___x_5167_); -lean_ctor_set(v_reuseFailAlloc_5181_, 1, v___x_5168_); -v___x_5170_ = v_reuseFailAlloc_5181_; -goto v_reusejp_5169_; -} -v_reusejp_5169_: -{ -lean_object* v___x_5171_; lean_object* v___x_5173_; -v___x_5171_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_5123_ == 0) -{ -lean_ctor_set_tag(v___x_5122_, 7); -lean_ctor_set(v___x_5122_, 1, v___x_5171_); -lean_ctor_set(v___x_5122_, 0, v___x_5170_); -v___x_5173_ = v___x_5122_; -goto v_reusejp_5172_; -} -else -{ -lean_object* v_reuseFailAlloc_5180_; -v_reuseFailAlloc_5180_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5180_, 0, v___x_5170_); -lean_ctor_set(v_reuseFailAlloc_5180_, 1, v___x_5171_); -v___x_5173_ = v_reuseFailAlloc_5180_; -goto v_reusejp_5172_; -} -v_reusejp_5172_: -{ -lean_object* v___x_5174_; lean_object* v___x_5175_; lean_object* v___x_5176_; lean_object* v___x_5177_; lean_object* v___x_5178_; lean_object* v___x_5179_; -v___x_5174_ = lean_array_to_list(v_x_4961_); -v___x_5175_ = lean_box(0); -v___x_5176_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_5174_, v___x_5175_); -v___x_5177_ = l_Lean_MessageData_ofList(v___x_5176_); -v___x_5178_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5178_, 0, v___x_5173_); -lean_ctor_set(v___x_5178_, 1, v___x_5177_); -v___x_5179_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5178_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -return v___x_5179_; -} -} -} -else -{ -lean_object* v___x_5182_; -lean_inc_ref(v_expectedType_4954_); -v___x_5182_ = l_Lean_Meta_isExprDefEq(v_expectedType_4954_, v_snd_5124_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -if (lean_obj_tag(v___x_5182_) == 0) -{ -lean_object* v_a_5183_; uint8_t v___x_5184_; -v_a_5183_ = lean_ctor_get(v___x_5182_, 0); -lean_inc(v_a_5183_); -lean_dec_ref(v___x_5182_); -v___x_5184_ = lean_unbox(v_a_5183_); -if (v___x_5184_ == 0) -{ -lean_object* v_toConstantVal_5185_; lean_object* v_name_5186_; lean_object* v___x_5187_; lean_object* v___x_5188_; lean_object* v___x_5190_; -lean_dec(v_fst_5120_); -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -v_toConstantVal_5185_ = lean_ctor_get(v_val_5113_, 0); -lean_inc_ref(v_toConstantVal_5185_); -lean_dec_ref(v_val_5113_); -v_name_5186_ = lean_ctor_get(v_toConstantVal_5185_, 0); -lean_inc(v_name_5186_); -lean_dec_ref(v_toConstantVal_5185_); -v___x_5187_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_5188_ = l_Lean_MessageData_ofExpr(v_expectedType_4954_); -if (v_isShared_5127_ == 0) -{ -lean_ctor_set_tag(v___x_5126_, 7); -lean_ctor_set(v___x_5126_, 1, v___x_5188_); -lean_ctor_set(v___x_5126_, 0, v___x_5187_); -v___x_5190_ = v___x_5126_; -goto v_reusejp_5189_; -} -else -{ -lean_object* v_reuseFailAlloc_5209_; -v_reuseFailAlloc_5209_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5209_, 0, v___x_5187_); -lean_ctor_set(v_reuseFailAlloc_5209_, 1, v___x_5188_); -v___x_5190_ = v_reuseFailAlloc_5209_; -goto v_reusejp_5189_; -} -v_reusejp_5189_: -{ -lean_object* v___x_5191_; lean_object* v___x_5193_; -v___x_5191_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_5123_ == 0) -{ -lean_ctor_set_tag(v___x_5122_, 7); -lean_ctor_set(v___x_5122_, 1, v___x_5191_); -lean_ctor_set(v___x_5122_, 0, v___x_5190_); -v___x_5193_ = v___x_5122_; -goto v_reusejp_5192_; -} -else -{ -lean_object* v_reuseFailAlloc_5208_; -v_reuseFailAlloc_5208_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5208_, 0, v___x_5190_); -lean_ctor_set(v_reuseFailAlloc_5208_, 1, v___x_5191_); -v___x_5193_ = v_reuseFailAlloc_5208_; -goto v_reusejp_5192_; -} -v_reusejp_5192_: -{ -uint8_t v___x_5194_; lean_object* v___x_5195_; lean_object* v___x_5196_; lean_object* v___x_5197_; lean_object* v___x_5198_; lean_object* v___x_5199_; lean_object* v_a_5200_; lean_object* v___x_5202_; uint8_t v_isShared_5203_; uint8_t v_isSharedCheck_5207_; -v___x_5194_ = lean_unbox(v_a_5183_); -lean_dec(v_a_5183_); -v___x_5195_ = l_Lean_MessageData_ofConstName(v_name_5186_, v___x_5194_); -v___x_5196_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5196_, 0, v___x_5193_); -lean_ctor_set(v___x_5196_, 1, v___x_5195_); -v___x_5197_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_5198_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5198_, 0, v___x_5196_); -lean_ctor_set(v___x_5198_, 1, v___x_5197_); -v___x_5199_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5198_, v___y_4963_, v___y_4964_, v___y_4965_, v___y_4966_); -v_a_5200_ = lean_ctor_get(v___x_5199_, 0); -v_isSharedCheck_5207_ = !lean_is_exclusive(v___x_5199_); -if (v_isSharedCheck_5207_ == 0) -{ -v___x_5202_ = v___x_5199_; -v_isShared_5203_ = v_isSharedCheck_5207_; -goto v_resetjp_5201_; -} -else -{ -lean_inc(v_a_5200_); -lean_dec(v___x_5199_); -v___x_5202_ = lean_box(0); -v_isShared_5203_ = v_isSharedCheck_5207_; -goto v_resetjp_5201_; -} -v_resetjp_5201_: -{ -lean_object* v___x_5205_; -if (v_isShared_5203_ == 0) -{ -v___x_5205_ = v___x_5202_; -goto v_reusejp_5204_; -} -else -{ -lean_object* v_reuseFailAlloc_5206_; -v_reuseFailAlloc_5206_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5206_, 0, v_a_5200_); -v___x_5205_ = v_reuseFailAlloc_5206_; -goto v_reusejp_5204_; -} -v_reusejp_5204_: -{ -return v___x_5205_; -} -} -} -} -} -else -{ -lean_dec(v_a_5183_); -lean_del_object(v___x_5126_); -lean_del_object(v___x_5122_); -v___y_5130_ = v___y_4963_; -v___y_5131_ = v___y_4964_; -v___y_5132_ = v___y_4965_; -v___y_5133_ = v___y_4966_; -goto v___jp_5129_; -} -} -else -{ -lean_object* v_a_5210_; lean_object* v___x_5212_; uint8_t v_isShared_5213_; uint8_t v_isSharedCheck_5217_; -lean_del_object(v___x_5126_); -lean_del_object(v___x_5122_); -lean_dec(v_fst_5120_); -lean_dec_ref(v_val_5113_); -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -lean_dec_ref(v_expectedType_4954_); -v_a_5210_ = lean_ctor_get(v___x_5182_, 0); -v_isSharedCheck_5217_ = !lean_is_exclusive(v___x_5182_); -if (v_isSharedCheck_5217_ == 0) -{ -v___x_5212_ = v___x_5182_; -v_isShared_5213_ = v_isSharedCheck_5217_; -goto v_resetjp_5211_; -} -else -{ -lean_inc(v_a_5210_); -lean_dec(v___x_5182_); -v___x_5212_ = lean_box(0); -v_isShared_5213_ = v_isSharedCheck_5217_; -goto v_resetjp_5211_; -} -v_resetjp_5211_: -{ -lean_object* v___x_5215_; -if (v_isShared_5213_ == 0) -{ -v___x_5215_ = v___x_5212_; -goto v_reusejp_5214_; -} -else -{ -lean_object* v_reuseFailAlloc_5216_; -v_reuseFailAlloc_5216_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5216_, 0, v_a_5210_); -v___x_5215_ = v_reuseFailAlloc_5216_; -goto v_reusejp_5214_; -} -v_reusejp_5214_: -{ -return v___x_5215_; -} -} -} -} -v___jp_5129_: -{ -lean_object* v_numParams_5134_; lean_object* v___x_5135_; lean_object* v___x_5136_; -v_numParams_5134_ = lean_ctor_get(v_val_5113_, 3); -lean_inc(v_numParams_5134_); -lean_dec_ref(v_val_5113_); -v___x_5135_ = lean_box(0); -v___x_5136_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(v___x_5128_, v_fst_5120_, v_x_4961_, v___x_4955_, v_compile_4956_, v_logCompileErrors_4957_, v_isMeta_4958_, v_val_4959_, v_expectedType_4954_, v_numParams_5134_, v___x_5135_, v___y_5130_, v___y_5131_, v___y_5132_, v___y_5133_); -lean_dec_ref(v_x_4961_); -if (lean_obj_tag(v___x_5136_) == 0) -{ -size_t v_sz_5137_; size_t v___x_5138_; lean_object* v___x_5139_; -lean_dec_ref(v___x_5136_); -v_sz_5137_ = lean_array_size(v_fst_5120_); -v___x_5138_ = ((size_t)0ULL); -v___x_5139_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_5137_, v___x_5138_, v_fst_5120_, v___y_5130_, v___y_5131_, v___y_5132_, v___y_5133_); -if (lean_obj_tag(v___x_5139_) == 0) -{ -lean_object* v_a_5140_; lean_object* v___x_5142_; uint8_t v_isShared_5143_; uint8_t v_isSharedCheck_5148_; -v_a_5140_ = lean_ctor_get(v___x_5139_, 0); -v_isSharedCheck_5148_ = !lean_is_exclusive(v___x_5139_); -if (v_isSharedCheck_5148_ == 0) -{ -v___x_5142_ = v___x_5139_; -v_isShared_5143_ = v_isSharedCheck_5148_; -goto v_resetjp_5141_; -} -else -{ -lean_inc(v_a_5140_); -lean_dec(v___x_5139_); -v___x_5142_ = lean_box(0); -v_isShared_5143_ = v_isSharedCheck_5148_; -goto v_resetjp_5141_; -} -v_resetjp_5141_: -{ -lean_object* v___x_5144_; lean_object* v___x_5146_; -v___x_5144_ = l_Lean_mkAppN(v_x_4960_, v_a_5140_); -lean_dec(v_a_5140_); -if (v_isShared_5143_ == 0) -{ -lean_ctor_set(v___x_5142_, 0, v___x_5144_); -v___x_5146_ = v___x_5142_; -goto v_reusejp_5145_; -} -else -{ -lean_object* v_reuseFailAlloc_5147_; -v_reuseFailAlloc_5147_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5147_, 0, v___x_5144_); -v___x_5146_ = v_reuseFailAlloc_5147_; -goto v_reusejp_5145_; -} -v_reusejp_5145_: -{ -return v___x_5146_; -} -} -} -else -{ -lean_object* v_a_5149_; lean_object* v___x_5151_; uint8_t v_isShared_5152_; uint8_t v_isSharedCheck_5156_; -lean_dec_ref(v_x_4960_); -v_a_5149_ = lean_ctor_get(v___x_5139_, 0); -v_isSharedCheck_5156_ = !lean_is_exclusive(v___x_5139_); -if (v_isSharedCheck_5156_ == 0) -{ -v___x_5151_ = v___x_5139_; -v_isShared_5152_ = v_isSharedCheck_5156_; -goto v_resetjp_5150_; -} -else -{ -lean_inc(v_a_5149_); -lean_dec(v___x_5139_); -v___x_5151_ = lean_box(0); -v_isShared_5152_ = v_isSharedCheck_5156_; -goto v_resetjp_5150_; -} -v_resetjp_5150_: -{ -lean_object* v___x_5154_; -if (v_isShared_5152_ == 0) -{ -v___x_5154_ = v___x_5151_; -goto v_reusejp_5153_; -} -else -{ -lean_object* v_reuseFailAlloc_5155_; -v_reuseFailAlloc_5155_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5155_, 0, v_a_5149_); -v___x_5154_ = v_reuseFailAlloc_5155_; -goto v_reusejp_5153_; -} -v_reusejp_5153_: -{ -return v___x_5154_; -} -} -} -} -else -{ -lean_object* v_a_5157_; lean_object* v___x_5159_; uint8_t v_isShared_5160_; uint8_t v_isSharedCheck_5164_; -lean_dec(v_fst_5120_); -lean_dec_ref(v_x_4960_); -v_a_5157_ = lean_ctor_get(v___x_5136_, 0); -v_isSharedCheck_5164_ = !lean_is_exclusive(v___x_5136_); -if (v_isSharedCheck_5164_ == 0) -{ -v___x_5159_ = v___x_5136_; -v_isShared_5160_ = v_isSharedCheck_5164_; -goto v_resetjp_5158_; -} -else -{ -lean_inc(v_a_5157_); -lean_dec(v___x_5136_); -v___x_5159_ = lean_box(0); -v_isShared_5160_ = v_isSharedCheck_5164_; -goto v_resetjp_5158_; -} -v_resetjp_5158_: -{ -lean_object* v___x_5162_; -if (v_isShared_5160_ == 0) -{ -v___x_5162_ = v___x_5159_; -goto v_reusejp_5161_; -} -else -{ -lean_object* v_reuseFailAlloc_5163_; -v_reuseFailAlloc_5163_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5163_, 0, v_a_5157_); -v___x_5162_ = v_reuseFailAlloc_5163_; -goto v_reusejp_5161_; -} -v_reusejp_5161_: -{ -return v___x_5162_; -} -} -} -} -} -} -} -else -{ -lean_object* v_a_5221_; lean_object* v___x_5223_; uint8_t v_isShared_5224_; uint8_t v_isSharedCheck_5228_; -lean_dec_ref(v_val_5113_); -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -lean_dec_ref(v_expectedType_4954_); -v_a_5221_ = lean_ctor_get(v___x_5117_, 0); -v_isSharedCheck_5228_ = !lean_is_exclusive(v___x_5117_); -if (v_isSharedCheck_5228_ == 0) -{ -v___x_5223_ = v___x_5117_; -v_isShared_5224_ = v_isSharedCheck_5228_; -goto v_resetjp_5222_; -} -else -{ -lean_inc(v_a_5221_); -lean_dec(v___x_5117_); -v___x_5223_ = lean_box(0); -v_isShared_5224_ = v_isSharedCheck_5228_; -goto v_resetjp_5222_; -} -v_resetjp_5222_: -{ -lean_object* v___x_5226_; -if (v_isShared_5224_ == 0) -{ -v___x_5226_ = v___x_5223_; -goto v_reusejp_5225_; -} -else -{ -lean_object* v_reuseFailAlloc_5227_; -v_reuseFailAlloc_5227_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5227_, 0, v_a_5221_); -v___x_5226_ = v_reuseFailAlloc_5227_; -goto v_reusejp_5225_; -} -v_reusejp_5225_: -{ -return v___x_5226_; -} -} -} -} -else -{ -lean_dec_ref(v_val_5113_); -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -lean_dec_ref(v_expectedType_4954_); -return v___x_5114_; -} -} -else -{ -lean_dec(v_a_5112_); -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -v___y_5088_ = v___y_4963_; -v___y_5089_ = v___y_4964_; -v___y_5090_ = v___y_4965_; -v___y_5091_ = v___y_4966_; -goto v___jp_5087_; -} -} -else -{ -lean_object* v_a_5229_; lean_object* v___x_5231_; uint8_t v_isShared_5232_; uint8_t v_isSharedCheck_5236_; -lean_dec_ref(v_x_4961_); -lean_dec_ref(v_x_4960_); -lean_dec(v_val_4959_); -lean_dec_ref(v_expectedType_4954_); -lean_dec_ref(v_inst_4953_); -v_a_5229_ = lean_ctor_get(v___x_5111_, 0); -v_isSharedCheck_5236_ = !lean_is_exclusive(v___x_5111_); -if (v_isSharedCheck_5236_ == 0) -{ -v___x_5231_ = v___x_5111_; -v_isShared_5232_ = v_isSharedCheck_5236_; -goto v_resetjp_5230_; -} -else -{ -lean_inc(v_a_5229_); -lean_dec(v___x_5111_); -v___x_5231_ = lean_box(0); -v_isShared_5232_ = v_isSharedCheck_5236_; -goto v_resetjp_5230_; -} -v_resetjp_5230_: -{ -lean_object* v___x_5234_; -if (v_isShared_5232_ == 0) -{ -v___x_5234_ = v___x_5231_; -goto v_reusejp_5233_; -} -else -{ -lean_object* v_reuseFailAlloc_5235_; -v_reuseFailAlloc_5235_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5235_, 0, v_a_5229_); -v___x_5234_ = v_reuseFailAlloc_5235_; -goto v_reusejp_5233_; -} -v_reusejp_5233_: -{ -return v___x_5234_; -} -} -} -} -v___jp_5087_: -{ -lean_object* v_options_5092_; uint8_t v_hasTrace_5093_; -v_options_5092_ = lean_ctor_get(v___y_5090_, 2); -v_hasTrace_5093_ = lean_ctor_get_uint8(v_options_5092_, sizeof(void*)*1); -if (v_hasTrace_5093_ == 0) -{ -v___y_5008_ = v___y_5088_; -v___y_5009_ = v___y_5089_; -v___y_5010_ = v___y_5090_; -v_options_5011_ = v_options_5092_; -v___y_5012_ = v___y_5091_; -goto v___jp_5007_; -} -else -{ -lean_object* v_inheritedTraceOptions_5094_; lean_object* v___x_5095_; uint8_t v___x_5096_; -v_inheritedTraceOptions_5094_ = lean_ctor_get(v___y_5090_, 13); -v___x_5095_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_5096_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5094_, v_options_5092_, v___x_5095_); -if (v___x_5096_ == 0) -{ -v___y_5008_ = v___y_5088_; -v___y_5009_ = v___y_5089_; -v___y_5010_ = v___y_5090_; -v_options_5011_ = v_options_5092_; -v___y_5012_ = v___y_5091_; -goto v___jp_5007_; -} -else -{ -lean_object* v___x_5097_; lean_object* v___x_5098_; lean_object* v___x_5099_; lean_object* v___x_5100_; -v___x_5097_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_4953_); -v___x_5098_ = l_Lean_MessageData_ofExpr(v_inst_4953_); -v___x_5099_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5099_, 0, v___x_5097_); -lean_ctor_set(v___x_5099_, 1, v___x_5098_); -v___x_5100_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_5086_, v___x_5099_, v___y_5088_, v___y_5089_, v___y_5090_, v___y_5091_); -if (lean_obj_tag(v___x_5100_) == 0) -{ -lean_dec_ref(v___x_5100_); -v___y_5008_ = v___y_5088_; -v___y_5009_ = v___y_5089_; -v___y_5010_ = v___y_5090_; -v_options_5011_ = v_options_5092_; -v___y_5012_ = v___y_5091_; -goto v___jp_5007_; -} -else -{ -lean_object* v_a_5101_; lean_object* v___x_5103_; uint8_t v_isShared_5104_; uint8_t v_isSharedCheck_5108_; -lean_dec_ref(v_expectedType_4954_); -lean_dec_ref(v_inst_4953_); -v_a_5101_ = lean_ctor_get(v___x_5100_, 0); -v_isSharedCheck_5108_ = !lean_is_exclusive(v___x_5100_); -if (v_isSharedCheck_5108_ == 0) -{ -v___x_5103_ = v___x_5100_; -v_isShared_5104_ = v_isSharedCheck_5108_; -goto v_resetjp_5102_; -} -else -{ -lean_inc(v_a_5101_); -lean_dec(v___x_5100_); -v___x_5103_ = lean_box(0); -v_isShared_5104_ = v_isSharedCheck_5108_; -goto v_resetjp_5102_; -} -v_resetjp_5102_: -{ -lean_object* v___x_5106_; -if (v_isShared_5104_ == 0) -{ -v___x_5106_ = v___x_5103_; -goto v_reusejp_5105_; +lean_object* v_reuseFailAlloc_5108_; +v_reuseFailAlloc_5108_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5108_, 0, v___x_5094_); +lean_ctor_set(v_reuseFailAlloc_5108_, 1, v___x_5095_); +v___x_5097_ = v_reuseFailAlloc_5108_; +goto v_reusejp_5096_; +} +v_reusejp_5096_: +{ +lean_object* v___x_5098_; lean_object* v___x_5100_; +v___x_5098_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_5050_ == 0) +{ +lean_ctor_set_tag(v___x_5049_, 7); +lean_ctor_set(v___x_5049_, 1, v___x_5098_); +lean_ctor_set(v___x_5049_, 0, v___x_5097_); +v___x_5100_ = v___x_5049_; +goto v_reusejp_5099_; } else { lean_object* v_reuseFailAlloc_5107_; -v_reuseFailAlloc_5107_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5107_, 0, v_a_5101_); -v___x_5106_ = v_reuseFailAlloc_5107_; -goto v_reusejp_5105_; +v_reuseFailAlloc_5107_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5107_, 0, v___x_5097_); +lean_ctor_set(v_reuseFailAlloc_5107_, 1, v___x_5098_); +v___x_5100_ = v_reuseFailAlloc_5107_; +goto v_reusejp_5099_; } -v_reusejp_5105_: +v_reusejp_5099_: { +lean_object* v___x_5101_; lean_object* v___x_5102_; lean_object* v___x_5103_; lean_object* v___x_5104_; lean_object* v___x_5105_; lean_object* v___x_5106_; +v___x_5101_ = lean_array_to_list(v_x_4889_); +v___x_5102_ = lean_box(0); +v___x_5103_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_5101_, v___x_5102_); +v___x_5104_ = l_Lean_MessageData_ofList(v___x_5103_); +v___x_5105_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5105_, 0, v___x_5100_); +lean_ctor_set(v___x_5105_, 1, v___x_5104_); +v___x_5106_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5105_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); return v___x_5106_; } } } -} -} -} -} -v___jp_4968_: +else { -lean_object* v___x_4973_; -v___x_4973_ = l_Lean_enableRealizationsForConst(v___y_4970_, v___y_4971_, v___y_4972_); -if (lean_obj_tag(v___x_4973_) == 0) +lean_object* v___x_5109_; +lean_inc_ref(v_expectedType_4882_); +v___x_5109_ = l_Lean_Meta_isExprDefEq(v_expectedType_4882_, v_snd_5051_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); +if (lean_obj_tag(v___x_5109_) == 0) { -lean_object* v___x_4975_; uint8_t v_isShared_4976_; uint8_t v_isSharedCheck_4980_; -v_isSharedCheck_4980_ = !lean_is_exclusive(v___x_4973_); -if (v_isSharedCheck_4980_ == 0) +lean_object* v_a_5110_; uint8_t v___x_5111_; +v_a_5110_ = lean_ctor_get(v___x_5109_, 0); +lean_inc(v_a_5110_); +lean_dec_ref(v___x_5109_); +v___x_5111_ = lean_unbox(v_a_5110_); +if (v___x_5111_ == 0) { -lean_object* v_unused_4981_; -v_unused_4981_ = lean_ctor_get(v___x_4973_, 0); -lean_dec(v_unused_4981_); -v___x_4975_ = v___x_4973_; -v_isShared_4976_ = v_isSharedCheck_4980_; -goto v_resetjp_4974_; +lean_object* v_toConstantVal_5112_; lean_object* v_name_5113_; lean_object* v___x_5114_; lean_object* v___x_5115_; lean_object* v___x_5117_; +lean_dec(v_fst_5047_); +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +v_toConstantVal_5112_ = lean_ctor_get(v_val_5040_, 0); +lean_inc_ref(v_toConstantVal_5112_); +lean_dec_ref(v_val_5040_); +v_name_5113_ = lean_ctor_get(v_toConstantVal_5112_, 0); +lean_inc(v_name_5113_); +lean_dec_ref(v_toConstantVal_5112_); +v___x_5114_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_5115_ = l_Lean_MessageData_ofExpr(v_expectedType_4882_); +if (v_isShared_5054_ == 0) +{ +lean_ctor_set_tag(v___x_5053_, 7); +lean_ctor_set(v___x_5053_, 1, v___x_5115_); +lean_ctor_set(v___x_5053_, 0, v___x_5114_); +v___x_5117_ = v___x_5053_; +goto v_reusejp_5116_; } else { -lean_dec(v___x_4973_); -v___x_4975_ = lean_box(0); -v_isShared_4976_ = v_isSharedCheck_4980_; -goto v_resetjp_4974_; +lean_object* v_reuseFailAlloc_5136_; +v_reuseFailAlloc_5136_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5136_, 0, v___x_5114_); +lean_ctor_set(v_reuseFailAlloc_5136_, 1, v___x_5115_); +v___x_5117_ = v_reuseFailAlloc_5136_; +goto v_reusejp_5116_; } -v_resetjp_4974_: +v_reusejp_5116_: { -lean_object* v___x_4978_; -if (v_isShared_4976_ == 0) +lean_object* v___x_5118_; lean_object* v___x_5120_; +v___x_5118_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_5050_ == 0) { -lean_ctor_set(v___x_4975_, 0, v___y_4969_); -v___x_4978_ = v___x_4975_; -goto v_reusejp_4977_; +lean_ctor_set_tag(v___x_5049_, 7); +lean_ctor_set(v___x_5049_, 1, v___x_5118_); +lean_ctor_set(v___x_5049_, 0, v___x_5117_); +v___x_5120_ = v___x_5049_; +goto v_reusejp_5119_; } else { -lean_object* v_reuseFailAlloc_4979_; -v_reuseFailAlloc_4979_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4979_, 0, v___y_4969_); -v___x_4978_ = v_reuseFailAlloc_4979_; -goto v_reusejp_4977_; +lean_object* v_reuseFailAlloc_5135_; +v_reuseFailAlloc_5135_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5135_, 0, v___x_5117_); +lean_ctor_set(v_reuseFailAlloc_5135_, 1, v___x_5118_); +v___x_5120_ = v_reuseFailAlloc_5135_; +goto v_reusejp_5119_; } -v_reusejp_4977_: +v_reusejp_5119_: { -return v___x_4978_; +uint8_t v___x_5121_; lean_object* v___x_5122_; lean_object* v___x_5123_; lean_object* v___x_5124_; lean_object* v___x_5125_; lean_object* v___x_5126_; lean_object* v_a_5127_; lean_object* v___x_5129_; uint8_t v_isShared_5130_; uint8_t v_isSharedCheck_5134_; +v___x_5121_ = lean_unbox(v_a_5110_); +lean_dec(v_a_5110_); +v___x_5122_ = l_Lean_MessageData_ofConstName(v_name_5113_, v___x_5121_); +v___x_5123_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5123_, 0, v___x_5120_); +lean_ctor_set(v___x_5123_, 1, v___x_5122_); +v___x_5124_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_5125_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5125_, 0, v___x_5123_); +lean_ctor_set(v___x_5125_, 1, v___x_5124_); +v___x_5126_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5125_, v___y_4891_, v___y_4892_, v___y_4893_, v___y_4894_); +v_a_5127_ = lean_ctor_get(v___x_5126_, 0); +v_isSharedCheck_5134_ = !lean_is_exclusive(v___x_5126_); +if (v_isSharedCheck_5134_ == 0) +{ +v___x_5129_ = v___x_5126_; +v_isShared_5130_ = v_isSharedCheck_5134_; +goto v_resetjp_5128_; +} +else +{ +lean_inc(v_a_5127_); +lean_dec(v___x_5126_); +v___x_5129_ = lean_box(0); +v_isShared_5130_ = v_isSharedCheck_5134_; +goto v_resetjp_5128_; +} +v_resetjp_5128_: +{ +lean_object* v___x_5132_; +if (v_isShared_5130_ == 0) +{ +v___x_5132_ = v___x_5129_; +goto v_reusejp_5131_; +} +else +{ +lean_object* v_reuseFailAlloc_5133_; +v_reuseFailAlloc_5133_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5133_, 0, v_a_5127_); +v___x_5132_ = v_reuseFailAlloc_5133_; +goto v_reusejp_5131_; +} +v_reusejp_5131_: +{ +return v___x_5132_; +} +} } } } else { -lean_object* v_a_4982_; lean_object* v___x_4984_; uint8_t v_isShared_4985_; uint8_t v_isSharedCheck_4989_; -lean_dec_ref(v___y_4969_); -v_a_4982_ = lean_ctor_get(v___x_4973_, 0); -v_isSharedCheck_4989_ = !lean_is_exclusive(v___x_4973_); -if (v_isSharedCheck_4989_ == 0) -{ -v___x_4984_ = v___x_4973_; -v_isShared_4985_ = v_isSharedCheck_4989_; -goto v_resetjp_4983_; +lean_dec(v_a_5110_); +lean_del_object(v___x_5053_); +lean_del_object(v___x_5049_); +v___y_5057_ = v___y_4891_; +v___y_5058_ = v___y_4892_; +v___y_5059_ = v___y_4893_; +v___y_5060_ = v___y_4894_; +goto v___jp_5056_; +} } else { -lean_inc(v_a_4982_); -lean_dec(v___x_4973_); -v___x_4984_ = lean_box(0); -v_isShared_4985_ = v_isSharedCheck_4989_; -goto v_resetjp_4983_; +lean_object* v_a_5137_; lean_object* v___x_5139_; uint8_t v_isShared_5140_; uint8_t v_isSharedCheck_5144_; +lean_del_object(v___x_5053_); +lean_del_object(v___x_5049_); +lean_dec(v_fst_5047_); +lean_dec_ref(v_val_5040_); +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +lean_dec_ref(v_expectedType_4882_); +v_a_5137_ = lean_ctor_get(v___x_5109_, 0); +v_isSharedCheck_5144_ = !lean_is_exclusive(v___x_5109_); +if (v_isSharedCheck_5144_ == 0) +{ +v___x_5139_ = v___x_5109_; +v_isShared_5140_ = v_isSharedCheck_5144_; +goto v_resetjp_5138_; } -v_resetjp_4983_: +else { -lean_object* v___x_4987_; -if (v_isShared_4985_ == 0) +lean_inc(v_a_5137_); +lean_dec(v___x_5109_); +v___x_5139_ = lean_box(0); +v_isShared_5140_ = v_isSharedCheck_5144_; +goto v_resetjp_5138_; +} +v_resetjp_5138_: { -v___x_4987_ = v___x_4984_; +lean_object* v___x_5142_; +if (v_isShared_5140_ == 0) +{ +v___x_5142_ = v___x_5139_; +goto v_reusejp_5141_; +} +else +{ +lean_object* v_reuseFailAlloc_5143_; +v_reuseFailAlloc_5143_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5143_, 0, v_a_5137_); +v___x_5142_ = v_reuseFailAlloc_5143_; +goto v_reusejp_5141_; +} +v_reusejp_5141_: +{ +return v___x_5142_; +} +} +} +} +v___jp_5056_: +{ +lean_object* v_numParams_5061_; lean_object* v___x_5062_; lean_object* v___x_5063_; +v_numParams_5061_ = lean_ctor_get(v_val_5040_, 3); +lean_inc(v_numParams_5061_); +lean_dec_ref(v_val_5040_); +v___x_5062_ = lean_box(0); +v___x_5063_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(v___x_5055_, v_fst_5047_, v_x_4889_, v___x_4883_, v_compile_4884_, v_logCompileErrors_4885_, v_isMeta_4886_, v_val_4887_, v_expectedType_4882_, v_numParams_5061_, v___x_5062_, v___y_5057_, v___y_5058_, v___y_5059_, v___y_5060_); +lean_dec_ref(v_x_4889_); +if (lean_obj_tag(v___x_5063_) == 0) +{ +size_t v_sz_5064_; size_t v___x_5065_; lean_object* v___x_5066_; +lean_dec_ref(v___x_5063_); +v_sz_5064_ = lean_array_size(v_fst_5047_); +v___x_5065_ = ((size_t)0ULL); +v___x_5066_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_5064_, v___x_5065_, v_fst_5047_, v___y_5057_, v___y_5058_, v___y_5059_, v___y_5060_); +if (lean_obj_tag(v___x_5066_) == 0) +{ +lean_object* v_a_5067_; lean_object* v___x_5069_; uint8_t v_isShared_5070_; uint8_t v_isSharedCheck_5075_; +v_a_5067_ = lean_ctor_get(v___x_5066_, 0); +v_isSharedCheck_5075_ = !lean_is_exclusive(v___x_5066_); +if (v_isSharedCheck_5075_ == 0) +{ +v___x_5069_ = v___x_5066_; +v_isShared_5070_ = v_isSharedCheck_5075_; +goto v_resetjp_5068_; +} +else +{ +lean_inc(v_a_5067_); +lean_dec(v___x_5066_); +v___x_5069_ = lean_box(0); +v_isShared_5070_ = v_isSharedCheck_5075_; +goto v_resetjp_5068_; +} +v_resetjp_5068_: +{ +lean_object* v___x_5071_; lean_object* v___x_5073_; +v___x_5071_ = l_Lean_mkAppN(v_x_4888_, v_a_5067_); +lean_dec(v_a_5067_); +if (v_isShared_5070_ == 0) +{ +lean_ctor_set(v___x_5069_, 0, v___x_5071_); +v___x_5073_ = v___x_5069_; +goto v_reusejp_5072_; +} +else +{ +lean_object* v_reuseFailAlloc_5074_; +v_reuseFailAlloc_5074_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5074_, 0, v___x_5071_); +v___x_5073_ = v_reuseFailAlloc_5074_; +goto v_reusejp_5072_; +} +v_reusejp_5072_: +{ +return v___x_5073_; +} +} +} +else +{ +lean_object* v_a_5076_; lean_object* v___x_5078_; uint8_t v_isShared_5079_; uint8_t v_isSharedCheck_5083_; +lean_dec_ref(v_x_4888_); +v_a_5076_ = lean_ctor_get(v___x_5066_, 0); +v_isSharedCheck_5083_ = !lean_is_exclusive(v___x_5066_); +if (v_isSharedCheck_5083_ == 0) +{ +v___x_5078_ = v___x_5066_; +v_isShared_5079_ = v_isSharedCheck_5083_; +goto v_resetjp_5077_; +} +else +{ +lean_inc(v_a_5076_); +lean_dec(v___x_5066_); +v___x_5078_ = lean_box(0); +v_isShared_5079_ = v_isSharedCheck_5083_; +goto v_resetjp_5077_; +} +v_resetjp_5077_: +{ +lean_object* v___x_5081_; +if (v_isShared_5079_ == 0) +{ +v___x_5081_ = v___x_5078_; +goto v_reusejp_5080_; +} +else +{ +lean_object* v_reuseFailAlloc_5082_; +v_reuseFailAlloc_5082_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5082_, 0, v_a_5076_); +v___x_5081_ = v_reuseFailAlloc_5082_; +goto v_reusejp_5080_; +} +v_reusejp_5080_: +{ +return v___x_5081_; +} +} +} +} +else +{ +lean_object* v_a_5084_; lean_object* v___x_5086_; uint8_t v_isShared_5087_; uint8_t v_isSharedCheck_5091_; +lean_dec(v_fst_5047_); +lean_dec_ref(v_x_4888_); +v_a_5084_ = lean_ctor_get(v___x_5063_, 0); +v_isSharedCheck_5091_ = !lean_is_exclusive(v___x_5063_); +if (v_isSharedCheck_5091_ == 0) +{ +v___x_5086_ = v___x_5063_; +v_isShared_5087_ = v_isSharedCheck_5091_; +goto v_resetjp_5085_; +} +else +{ +lean_inc(v_a_5084_); +lean_dec(v___x_5063_); +v___x_5086_ = lean_box(0); +v_isShared_5087_ = v_isSharedCheck_5091_; +goto v_resetjp_5085_; +} +v_resetjp_5085_: +{ +lean_object* v___x_5089_; +if (v_isShared_5087_ == 0) +{ +v___x_5089_ = v___x_5086_; +goto v_reusejp_5088_; +} +else +{ +lean_object* v_reuseFailAlloc_5090_; +v_reuseFailAlloc_5090_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5090_, 0, v_a_5084_); +v___x_5089_ = v_reuseFailAlloc_5090_; +goto v_reusejp_5088_; +} +v_reusejp_5088_: +{ +return v___x_5089_; +} +} +} +} +} +} +} +else +{ +lean_object* v_a_5148_; lean_object* v___x_5150_; uint8_t v_isShared_5151_; uint8_t v_isSharedCheck_5155_; +lean_dec_ref(v_val_5040_); +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +lean_dec_ref(v_expectedType_4882_); +v_a_5148_ = lean_ctor_get(v___x_5044_, 0); +v_isSharedCheck_5155_ = !lean_is_exclusive(v___x_5044_); +if (v_isSharedCheck_5155_ == 0) +{ +v___x_5150_ = v___x_5044_; +v_isShared_5151_ = v_isSharedCheck_5155_; +goto v_resetjp_5149_; +} +else +{ +lean_inc(v_a_5148_); +lean_dec(v___x_5044_); +v___x_5150_ = lean_box(0); +v_isShared_5151_ = v_isSharedCheck_5155_; +goto v_resetjp_5149_; +} +v_resetjp_5149_: +{ +lean_object* v___x_5153_; +if (v_isShared_5151_ == 0) +{ +v___x_5153_ = v___x_5150_; +goto v_reusejp_5152_; +} +else +{ +lean_object* v_reuseFailAlloc_5154_; +v_reuseFailAlloc_5154_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5154_, 0, v_a_5148_); +v___x_5153_ = v_reuseFailAlloc_5154_; +goto v_reusejp_5152_; +} +v_reusejp_5152_: +{ +return v___x_5153_; +} +} +} +} +else +{ +lean_dec_ref(v_val_5040_); +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +lean_dec_ref(v_expectedType_4882_); +return v___x_5041_; +} +} +else +{ +lean_dec(v_a_5039_); +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +v___y_5015_ = v___y_4891_; +v___y_5016_ = v___y_4892_; +v___y_5017_ = v___y_4893_; +v___y_5018_ = v___y_4894_; +goto v___jp_5014_; +} +} +else +{ +lean_object* v_a_5156_; lean_object* v___x_5158_; uint8_t v_isShared_5159_; uint8_t v_isSharedCheck_5163_; +lean_dec_ref(v_x_4889_); +lean_dec_ref(v_x_4888_); +lean_dec(v_val_4887_); +lean_dec_ref(v_expectedType_4882_); +lean_dec_ref(v_inst_4881_); +v_a_5156_ = lean_ctor_get(v___x_5038_, 0); +v_isSharedCheck_5163_ = !lean_is_exclusive(v___x_5038_); +if (v_isSharedCheck_5163_ == 0) +{ +v___x_5158_ = v___x_5038_; +v_isShared_5159_ = v_isSharedCheck_5163_; +goto v_resetjp_5157_; +} +else +{ +lean_inc(v_a_5156_); +lean_dec(v___x_5038_); +v___x_5158_ = lean_box(0); +v_isShared_5159_ = v_isSharedCheck_5163_; +goto v_resetjp_5157_; +} +v_resetjp_5157_: +{ +lean_object* v___x_5161_; +if (v_isShared_5159_ == 0) +{ +v___x_5161_ = v___x_5158_; +goto v_reusejp_5160_; +} +else +{ +lean_object* v_reuseFailAlloc_5162_; +v_reuseFailAlloc_5162_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5162_, 0, v_a_5156_); +v___x_5161_ = v_reuseFailAlloc_5162_; +goto v_reusejp_5160_; +} +v_reusejp_5160_: +{ +return v___x_5161_; +} +} +} +} +v___jp_5014_: +{ +lean_object* v_options_5019_; uint8_t v_hasTrace_5020_; +v_options_5019_ = lean_ctor_get(v___y_5017_, 2); +v_hasTrace_5020_ = lean_ctor_get_uint8(v_options_5019_, sizeof(void*)*1); +if (v_hasTrace_5020_ == 0) +{ +v___y_4936_ = v___y_5015_; +v___y_4937_ = v___y_5016_; +v___y_4938_ = v___y_5017_; +v_options_4939_ = v_options_5019_; +v___y_4940_ = v___y_5018_; +goto v___jp_4935_; +} +else +{ +lean_object* v_inheritedTraceOptions_5021_; lean_object* v___x_5022_; uint8_t v___x_5023_; +v_inheritedTraceOptions_5021_ = lean_ctor_get(v___y_5017_, 13); +v___x_5022_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_5023_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5021_, v_options_5019_, v___x_5022_); +if (v___x_5023_ == 0) +{ +v___y_4936_ = v___y_5015_; +v___y_4937_ = v___y_5016_; +v___y_4938_ = v___y_5017_; +v_options_4939_ = v_options_5019_; +v___y_4940_ = v___y_5018_; +goto v___jp_4935_; +} +else +{ +lean_object* v___x_5024_; lean_object* v___x_5025_; lean_object* v___x_5026_; lean_object* v___x_5027_; +v___x_5024_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_4881_); +v___x_5025_ = l_Lean_MessageData_ofExpr(v_inst_4881_); +v___x_5026_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5026_, 0, v___x_5024_); +lean_ctor_set(v___x_5026_, 1, v___x_5025_); +v___x_5027_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_5013_, v___x_5026_, v___y_5015_, v___y_5016_, v___y_5017_, v___y_5018_); +if (lean_obj_tag(v___x_5027_) == 0) +{ +lean_dec_ref(v___x_5027_); +v___y_4936_ = v___y_5015_; +v___y_4937_ = v___y_5016_; +v___y_4938_ = v___y_5017_; +v_options_4939_ = v_options_5019_; +v___y_4940_ = v___y_5018_; +goto v___jp_4935_; +} +else +{ +lean_object* v_a_5028_; lean_object* v___x_5030_; uint8_t v_isShared_5031_; uint8_t v_isSharedCheck_5035_; +lean_dec_ref(v_expectedType_4882_); +lean_dec_ref(v_inst_4881_); +v_a_5028_ = lean_ctor_get(v___x_5027_, 0); +v_isSharedCheck_5035_ = !lean_is_exclusive(v___x_5027_); +if (v_isSharedCheck_5035_ == 0) +{ +v___x_5030_ = v___x_5027_; +v_isShared_5031_ = v_isSharedCheck_5035_; +goto v_resetjp_5029_; +} +else +{ +lean_inc(v_a_5028_); +lean_dec(v___x_5027_); +v___x_5030_ = lean_box(0); +v_isShared_5031_ = v_isSharedCheck_5035_; +goto v_resetjp_5029_; +} +v_resetjp_5029_: +{ +lean_object* v___x_5033_; +if (v_isShared_5031_ == 0) +{ +v___x_5033_ = v___x_5030_; +goto v_reusejp_5032_; +} +else +{ +lean_object* v_reuseFailAlloc_5034_; +v_reuseFailAlloc_5034_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5034_, 0, v_a_5028_); +v___x_5033_ = v_reuseFailAlloc_5034_; +goto v_reusejp_5032_; +} +v_reusejp_5032_: +{ +return v___x_5033_; +} +} +} +} +} +} +} +v___jp_4896_: +{ +lean_object* v___x_4901_; +v___x_4901_ = l_Lean_enableRealizationsForConst(v___y_4898_, v___y_4899_, v___y_4900_); +if (lean_obj_tag(v___x_4901_) == 0) +{ +lean_object* v___x_4903_; uint8_t v_isShared_4904_; uint8_t v_isSharedCheck_4908_; +v_isSharedCheck_4908_ = !lean_is_exclusive(v___x_4901_); +if (v_isSharedCheck_4908_ == 0) +{ +lean_object* v_unused_4909_; +v_unused_4909_ = lean_ctor_get(v___x_4901_, 0); +lean_dec(v_unused_4909_); +v___x_4903_ = v___x_4901_; +v_isShared_4904_ = v_isSharedCheck_4908_; +goto v_resetjp_4902_; +} +else +{ +lean_dec(v___x_4901_); +v___x_4903_ = lean_box(0); +v_isShared_4904_ = v_isSharedCheck_4908_; +goto v_resetjp_4902_; +} +v_resetjp_4902_: +{ +lean_object* v___x_4906_; +if (v_isShared_4904_ == 0) +{ +lean_ctor_set(v___x_4903_, 0, v___y_4897_); +v___x_4906_ = v___x_4903_; +goto v_reusejp_4905_; +} +else +{ +lean_object* v_reuseFailAlloc_4907_; +v_reuseFailAlloc_4907_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4907_, 0, v___y_4897_); +v___x_4906_ = v_reuseFailAlloc_4907_; +goto v_reusejp_4905_; +} +v_reusejp_4905_: +{ +return v___x_4906_; +} +} +} +else +{ +lean_object* v_a_4910_; lean_object* v___x_4912_; uint8_t v_isShared_4913_; uint8_t v_isSharedCheck_4917_; +lean_dec_ref(v___y_4897_); +v_a_4910_ = lean_ctor_get(v___x_4901_, 0); +v_isSharedCheck_4917_ = !lean_is_exclusive(v___x_4901_); +if (v_isSharedCheck_4917_ == 0) +{ +v___x_4912_ = v___x_4901_; +v_isShared_4913_ = v_isSharedCheck_4917_; +goto v_resetjp_4911_; +} +else +{ +lean_inc(v_a_4910_); +lean_dec(v___x_4901_); +v___x_4912_ = lean_box(0); +v_isShared_4913_ = v_isSharedCheck_4917_; +goto v_resetjp_4911_; +} +v_resetjp_4911_: +{ +lean_object* v___x_4915_; +if (v_isShared_4913_ == 0) +{ +v___x_4915_ = v___x_4912_; +goto v_reusejp_4914_; +} +else +{ +lean_object* v_reuseFailAlloc_4916_; +v_reuseFailAlloc_4916_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4916_, 0, v_a_4910_); +v___x_4915_ = v_reuseFailAlloc_4916_; +goto v_reusejp_4914_; +} +v_reusejp_4914_: +{ +return v___x_4915_; +} +} +} +} +v___jp_4918_: +{ +if (v_compile_4884_ == 0) +{ +v___y_4897_ = v___y_4919_; +v___y_4898_ = v___y_4920_; +v___y_4899_ = v___y_4921_; +v___y_4900_ = v___y_4922_; +goto v___jp_4896_; +} +else +{ +lean_object* v___x_4923_; lean_object* v___x_4924_; lean_object* v___x_4925_; lean_object* v___x_4926_; +v___x_4923_ = lean_unsigned_to_nat(1u); +v___x_4924_ = lean_mk_empty_array_with_capacity(v___x_4923_); +lean_inc(v___y_4920_); +v___x_4925_ = lean_array_push(v___x_4924_, v___y_4920_); +v___x_4926_ = l_Lean_compileDecls(v___x_4925_, v_logCompileErrors_4885_, v___y_4921_, v___y_4922_); +if (lean_obj_tag(v___x_4926_) == 0) +{ +lean_dec_ref(v___x_4926_); +v___y_4897_ = v___y_4919_; +v___y_4898_ = v___y_4920_; +v___y_4899_ = v___y_4921_; +v___y_4900_ = v___y_4922_; +goto v___jp_4896_; +} +else +{ +lean_object* v_a_4927_; lean_object* v___x_4929_; uint8_t v_isShared_4930_; uint8_t v_isSharedCheck_4934_; +lean_dec(v___y_4920_); +lean_dec_ref(v___y_4919_); +v_a_4927_ = lean_ctor_get(v___x_4926_, 0); +v_isSharedCheck_4934_ = !lean_is_exclusive(v___x_4926_); +if (v_isSharedCheck_4934_ == 0) +{ +v___x_4929_ = v___x_4926_; +v_isShared_4930_ = v_isSharedCheck_4934_; +goto v_resetjp_4928_; +} +else +{ +lean_inc(v_a_4927_); +lean_dec(v___x_4926_); +v___x_4929_ = lean_box(0); +v_isShared_4930_ = v_isSharedCheck_4934_; +goto v_resetjp_4928_; +} +v_resetjp_4928_: +{ +lean_object* v___x_4932_; +if (v_isShared_4930_ == 0) +{ +v___x_4932_ = v___x_4929_; +goto v_reusejp_4931_; +} +else +{ +lean_object* v_reuseFailAlloc_4933_; +v_reuseFailAlloc_4933_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4933_, 0, v_a_4927_); +v___x_4932_ = v_reuseFailAlloc_4933_; +goto v_reusejp_4931_; +} +v_reusejp_4931_: +{ +return v___x_4932_; +} +} +} +} +} +v___jp_4935_: +{ +lean_object* v___x_4941_; uint8_t v___x_4942_; +v___x_4941_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_4942_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_4939_, v___x_4941_); +if (v___x_4942_ == 0) +{ +lean_object* v___x_4943_; +lean_dec_ref(v_expectedType_4882_); +v___x_4943_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4943_, 0, v_inst_4881_); +return v___x_4943_; +} +else +{ +lean_object* v___x_4944_; +lean_inc(v___y_4940_); +lean_inc_ref(v___y_4938_); +lean_inc(v___y_4937_); +lean_inc_ref(v___y_4936_); +lean_inc_ref(v_inst_4881_); +v___x_4944_ = lean_infer_type(v_inst_4881_, v___y_4936_, v___y_4937_, v___y_4938_, v___y_4940_); +if (lean_obj_tag(v___x_4944_) == 0) +{ +lean_object* v_a_4945_; lean_object* v___x_4946_; +v_a_4945_ = lean_ctor_get(v___x_4944_, 0); +lean_inc(v_a_4945_); +lean_dec_ref(v___x_4944_); +lean_inc_ref(v_expectedType_4882_); +v___x_4946_ = l_Lean_Meta_isExprDefEq(v_expectedType_4882_, v_a_4945_, v___y_4936_, v___y_4937_, v___y_4938_, v___y_4940_); +if (lean_obj_tag(v___x_4946_) == 0) +{ +lean_object* v_a_4947_; lean_object* v___x_4949_; uint8_t v_isShared_4950_; uint8_t v_isSharedCheck_4998_; +v_a_4947_ = lean_ctor_get(v___x_4946_, 0); +v_isSharedCheck_4998_ = !lean_is_exclusive(v___x_4946_); +if (v_isSharedCheck_4998_ == 0) +{ +v___x_4949_ = v___x_4946_; +v_isShared_4950_ = v_isSharedCheck_4998_; +goto v_resetjp_4948_; +} +else +{ +lean_inc(v_a_4947_); +lean_dec(v___x_4946_); +v___x_4949_ = lean_box(0); +v_isShared_4950_ = v_isSharedCheck_4998_; +goto v_resetjp_4948_; +} +v_resetjp_4948_: +{ +uint8_t v___x_4951_; +v___x_4951_ = lean_unbox(v_a_4947_); +if (v___x_4951_ == 0) +{ +lean_object* v___x_4952_; lean_object* v___x_4953_; lean_object* v_a_4954_; uint8_t v___x_4955_; uint8_t v___x_4956_; lean_object* v___x_4957_; +lean_del_object(v___x_4949_); +v___x_4952_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_4953_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_4952_, v___y_4940_); +v_a_4954_ = lean_ctor_get(v___x_4953_, 0); +lean_inc_n(v_a_4954_, 2); +lean_dec_ref(v___x_4953_); +v___x_4955_ = lean_unbox(v_a_4947_); +v___x_4956_ = lean_unbox(v_a_4947_); +lean_dec(v_a_4947_); +v___x_4957_ = l_Lean_Meta_mkAuxDefinition(v_a_4954_, v_expectedType_4882_, v_inst_4881_, v___x_4955_, v___x_4956_, v___x_4883_, v___y_4936_, v___y_4937_, v___y_4938_, v___y_4940_); +if (lean_obj_tag(v___x_4957_) == 0) +{ +if (v_isMeta_4886_ == 0) +{ +lean_object* v_a_4958_; +v_a_4958_ = lean_ctor_get(v___x_4957_, 0); +lean_inc(v_a_4958_); +lean_dec_ref(v___x_4957_); +v___y_4919_ = v_a_4958_; +v___y_4920_ = v_a_4954_; +v___y_4921_ = v___y_4938_; +v___y_4922_ = v___y_4940_; +goto v___jp_4918_; +} +else +{ +lean_object* v_a_4959_; lean_object* v___x_4960_; lean_object* v_env_4961_; lean_object* v_nextMacroScope_4962_; lean_object* v_ngen_4963_; lean_object* v_auxDeclNGen_4964_; lean_object* v_traceState_4965_; lean_object* v_messages_4966_; lean_object* v_infoState_4967_; lean_object* v_snapshotTasks_4968_; lean_object* v___x_4970_; uint8_t v_isShared_4971_; uint8_t v_isSharedCheck_4993_; +v_a_4959_ = lean_ctor_get(v___x_4957_, 0); +lean_inc(v_a_4959_); +lean_dec_ref(v___x_4957_); +v___x_4960_ = lean_st_ref_take(v___y_4940_); +v_env_4961_ = lean_ctor_get(v___x_4960_, 0); +v_nextMacroScope_4962_ = lean_ctor_get(v___x_4960_, 1); +v_ngen_4963_ = lean_ctor_get(v___x_4960_, 2); +v_auxDeclNGen_4964_ = lean_ctor_get(v___x_4960_, 3); +v_traceState_4965_ = lean_ctor_get(v___x_4960_, 4); +v_messages_4966_ = lean_ctor_get(v___x_4960_, 6); +v_infoState_4967_ = lean_ctor_get(v___x_4960_, 7); +v_snapshotTasks_4968_ = lean_ctor_get(v___x_4960_, 8); +v_isSharedCheck_4993_ = !lean_is_exclusive(v___x_4960_); +if (v_isSharedCheck_4993_ == 0) +{ +lean_object* v_unused_4994_; +v_unused_4994_ = lean_ctor_get(v___x_4960_, 5); +lean_dec(v_unused_4994_); +v___x_4970_ = v___x_4960_; +v_isShared_4971_ = v_isSharedCheck_4993_; +goto v_resetjp_4969_; +} +else +{ +lean_inc(v_snapshotTasks_4968_); +lean_inc(v_infoState_4967_); +lean_inc(v_messages_4966_); +lean_inc(v_traceState_4965_); +lean_inc(v_auxDeclNGen_4964_); +lean_inc(v_ngen_4963_); +lean_inc(v_nextMacroScope_4962_); +lean_inc(v_env_4961_); +lean_dec(v___x_4960_); +v___x_4970_ = lean_box(0); +v_isShared_4971_ = v_isSharedCheck_4993_; +goto v_resetjp_4969_; +} +v_resetjp_4969_: +{ +lean_object* v___x_4972_; lean_object* v___x_4973_; lean_object* v___x_4975_; +lean_inc(v_a_4954_); +v___x_4972_ = l_Lean_markMeta(v_env_4961_, v_a_4954_); +v___x_4973_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_4971_ == 0) +{ +lean_ctor_set(v___x_4970_, 5, v___x_4973_); +lean_ctor_set(v___x_4970_, 0, v___x_4972_); +v___x_4975_ = v___x_4970_; +goto v_reusejp_4974_; +} +else +{ +lean_object* v_reuseFailAlloc_4992_; +v_reuseFailAlloc_4992_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_4992_, 0, v___x_4972_); +lean_ctor_set(v_reuseFailAlloc_4992_, 1, v_nextMacroScope_4962_); +lean_ctor_set(v_reuseFailAlloc_4992_, 2, v_ngen_4963_); +lean_ctor_set(v_reuseFailAlloc_4992_, 3, v_auxDeclNGen_4964_); +lean_ctor_set(v_reuseFailAlloc_4992_, 4, v_traceState_4965_); +lean_ctor_set(v_reuseFailAlloc_4992_, 5, v___x_4973_); +lean_ctor_set(v_reuseFailAlloc_4992_, 6, v_messages_4966_); +lean_ctor_set(v_reuseFailAlloc_4992_, 7, v_infoState_4967_); +lean_ctor_set(v_reuseFailAlloc_4992_, 8, v_snapshotTasks_4968_); +v___x_4975_ = v_reuseFailAlloc_4992_; +goto v_reusejp_4974_; +} +v_reusejp_4974_: +{ +lean_object* v___x_4976_; lean_object* v___x_4977_; lean_object* v_mctx_4978_; lean_object* v_zetaDeltaFVarIds_4979_; lean_object* v_postponed_4980_; lean_object* v_diag_4981_; lean_object* v___x_4983_; uint8_t v_isShared_4984_; uint8_t v_isSharedCheck_4990_; +v___x_4976_ = lean_st_ref_set(v___y_4940_, v___x_4975_); +v___x_4977_ = lean_st_ref_take(v___y_4937_); +v_mctx_4978_ = lean_ctor_get(v___x_4977_, 0); +v_zetaDeltaFVarIds_4979_ = lean_ctor_get(v___x_4977_, 2); +v_postponed_4980_ = lean_ctor_get(v___x_4977_, 3); +v_diag_4981_ = lean_ctor_get(v___x_4977_, 4); +v_isSharedCheck_4990_ = !lean_is_exclusive(v___x_4977_); +if (v_isSharedCheck_4990_ == 0) +{ +lean_object* v_unused_4991_; +v_unused_4991_ = lean_ctor_get(v___x_4977_, 1); +lean_dec(v_unused_4991_); +v___x_4983_ = v___x_4977_; +v_isShared_4984_ = v_isSharedCheck_4990_; +goto v_resetjp_4982_; +} +else +{ +lean_inc(v_diag_4981_); +lean_inc(v_postponed_4980_); +lean_inc(v_zetaDeltaFVarIds_4979_); +lean_inc(v_mctx_4978_); +lean_dec(v___x_4977_); +v___x_4983_ = lean_box(0); +v_isShared_4984_ = v_isSharedCheck_4990_; +goto v_resetjp_4982_; +} +v_resetjp_4982_: +{ +lean_object* v___x_4985_; lean_object* v___x_4987_; +v___x_4985_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_4984_ == 0) +{ +lean_ctor_set(v___x_4983_, 1, v___x_4985_); +v___x_4987_ = v___x_4983_; goto v_reusejp_4986_; } else { -lean_object* v_reuseFailAlloc_4988_; -v_reuseFailAlloc_4988_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4988_, 0, v_a_4982_); -v___x_4987_ = v_reuseFailAlloc_4988_; +lean_object* v_reuseFailAlloc_4989_; +v_reuseFailAlloc_4989_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_4989_, 0, v_mctx_4978_); +lean_ctor_set(v_reuseFailAlloc_4989_, 1, v___x_4985_); +lean_ctor_set(v_reuseFailAlloc_4989_, 2, v_zetaDeltaFVarIds_4979_); +lean_ctor_set(v_reuseFailAlloc_4989_, 3, v_postponed_4980_); +lean_ctor_set(v_reuseFailAlloc_4989_, 4, v_diag_4981_); +v___x_4987_ = v_reuseFailAlloc_4989_; goto v_reusejp_4986_; } v_reusejp_4986_: { -return v___x_4987_; +lean_object* v___x_4988_; +v___x_4988_ = lean_st_ref_set(v___y_4937_, v___x_4987_); +v___y_4919_ = v_a_4959_; +v___y_4920_ = v_a_4954_; +v___y_4921_ = v___y_4938_; +v___y_4922_ = v___y_4940_; +goto v___jp_4918_; +} } } } } -v___jp_4990_: -{ -if (v_compile_4956_ == 0) -{ -v___y_4969_ = v___y_4991_; -v___y_4970_ = v___y_4992_; -v___y_4971_ = v___y_4993_; -v___y_4972_ = v___y_4994_; -goto v___jp_4968_; } else { -lean_object* v___x_4995_; lean_object* v___x_4996_; lean_object* v___x_4997_; lean_object* v___x_4998_; -v___x_4995_ = lean_unsigned_to_nat(1u); -v___x_4996_ = lean_mk_empty_array_with_capacity(v___x_4995_); -lean_inc(v___y_4992_); -v___x_4997_ = lean_array_push(v___x_4996_, v___y_4992_); -v___x_4998_ = l_Lean_compileDecls(v___x_4997_, v_logCompileErrors_4957_, v___y_4993_, v___y_4994_); -if (lean_obj_tag(v___x_4998_) == 0) +lean_dec(v_a_4954_); +return v___x_4957_; +} +} +else { -lean_dec_ref(v___x_4998_); -v___y_4969_ = v___y_4991_; -v___y_4970_ = v___y_4992_; -v___y_4971_ = v___y_4993_; -v___y_4972_ = v___y_4994_; -goto v___jp_4968_; +lean_object* v___x_4996_; +lean_dec(v_a_4947_); +lean_dec_ref(v_expectedType_4882_); +if (v_isShared_4950_ == 0) +{ +lean_ctor_set(v___x_4949_, 0, v_inst_4881_); +v___x_4996_ = v___x_4949_; +goto v_reusejp_4995_; +} +else +{ +lean_object* v_reuseFailAlloc_4997_; +v_reuseFailAlloc_4997_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4997_, 0, v_inst_4881_); +v___x_4996_ = v_reuseFailAlloc_4997_; +goto v_reusejp_4995_; +} +v_reusejp_4995_: +{ +return v___x_4996_; +} +} +} } else { lean_object* v_a_4999_; lean_object* v___x_5001_; uint8_t v_isShared_5002_; uint8_t v_isSharedCheck_5006_; -lean_dec(v___y_4992_); -lean_dec_ref(v___y_4991_); -v_a_4999_ = lean_ctor_get(v___x_4998_, 0); -v_isSharedCheck_5006_ = !lean_is_exclusive(v___x_4998_); +lean_dec_ref(v_expectedType_4882_); +lean_dec_ref(v_inst_4881_); +v_a_4999_ = lean_ctor_get(v___x_4946_, 0); +v_isSharedCheck_5006_ = !lean_is_exclusive(v___x_4946_); if (v_isSharedCheck_5006_ == 0) { -v___x_5001_ = v___x_4998_; +v___x_5001_ = v___x_4946_; v_isShared_5002_ = v_isSharedCheck_5006_; goto v_resetjp_5000_; } else { lean_inc(v_a_4999_); -lean_dec(v___x_4998_); +lean_dec(v___x_4946_); v___x_5001_ = lean_box(0); v_isShared_5002_ = v_isSharedCheck_5006_; goto v_resetjp_5000_; @@ -19610,1410 +19728,1115 @@ return v___x_5004_; } } } -} -v___jp_5007_: -{ -lean_object* v___x_5013_; uint8_t v___x_5014_; -v___x_5013_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_5014_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5011_, v___x_5013_); -if (v___x_5014_ == 0) -{ -lean_object* v___x_5015_; -lean_dec_ref(v_expectedType_4954_); -v___x_5015_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_5015_, 0, v_inst_4953_); -return v___x_5015_; -} else { -lean_object* v___x_5016_; -lean_inc(v___y_5012_); -lean_inc_ref(v___y_5010_); -lean_inc(v___y_5009_); -lean_inc_ref(v___y_5008_); -lean_inc_ref(v_inst_4953_); -v___x_5016_ = lean_infer_type(v_inst_4953_, v___y_5008_, v___y_5009_, v___y_5010_, v___y_5012_); -if (lean_obj_tag(v___x_5016_) == 0) -{ -lean_object* v_a_5017_; lean_object* v___x_5018_; -v_a_5017_ = lean_ctor_get(v___x_5016_, 0); -lean_inc(v_a_5017_); -lean_dec_ref(v___x_5016_); -lean_inc_ref(v_expectedType_4954_); -v___x_5018_ = l_Lean_Meta_isExprDefEq(v_expectedType_4954_, v_a_5017_, v___y_5008_, v___y_5009_, v___y_5010_, v___y_5012_); -if (lean_obj_tag(v___x_5018_) == 0) -{ -lean_object* v_a_5019_; lean_object* v___x_5021_; uint8_t v_isShared_5022_; uint8_t v_isSharedCheck_5071_; -v_a_5019_ = lean_ctor_get(v___x_5018_, 0); -v_isSharedCheck_5071_ = !lean_is_exclusive(v___x_5018_); -if (v_isSharedCheck_5071_ == 0) -{ -v___x_5021_ = v___x_5018_; -v_isShared_5022_ = v_isSharedCheck_5071_; -goto v_resetjp_5020_; -} -else -{ -lean_inc(v_a_5019_); -lean_dec(v___x_5018_); -v___x_5021_ = lean_box(0); -v_isShared_5022_ = v_isSharedCheck_5071_; -goto v_resetjp_5020_; -} -v_resetjp_5020_: -{ -uint8_t v___x_5023_; -v___x_5023_ = lean_unbox(v_a_5019_); -if (v___x_5023_ == 0) -{ -lean_object* v___x_5024_; lean_object* v___x_5025_; lean_object* v_a_5026_; uint8_t v___x_5027_; uint8_t v___x_5028_; lean_object* v___x_5029_; -lean_del_object(v___x_5021_); -v___x_5024_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_5025_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_5024_, v___y_5012_); -v_a_5026_ = lean_ctor_get(v___x_5025_, 0); -lean_inc_n(v_a_5026_, 2); -lean_dec_ref(v___x_5025_); -v___x_5027_ = lean_unbox(v_a_5019_); -v___x_5028_ = lean_unbox(v_a_5019_); -lean_dec(v_a_5019_); -v___x_5029_ = l_Lean_Meta_mkAuxDefinition(v_a_5026_, v_expectedType_4954_, v_inst_4953_, v___x_5027_, v___x_5028_, v___x_4955_, v___y_5008_, v___y_5009_, v___y_5010_, v___y_5012_); -if (lean_obj_tag(v___x_5029_) == 0) -{ -lean_object* v_a_5030_; uint8_t v___x_5031_; lean_object* v___x_5032_; -v_a_5030_ = lean_ctor_get(v___x_5029_, 0); -lean_inc(v_a_5030_); -lean_dec_ref(v___x_5029_); -v___x_5031_ = 3; -lean_inc(v_a_5026_); -v___x_5032_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_5026_, v___x_5031_, v___y_5009_, v___y_5012_); -lean_dec_ref(v___x_5032_); -if (v_isMeta_4958_ == 0) -{ -v___y_4991_ = v_a_5030_; -v___y_4992_ = v_a_5026_; -v___y_4993_ = v___y_5010_; -v___y_4994_ = v___y_5012_; -goto v___jp_4990_; -} -else -{ -lean_object* v___x_5033_; lean_object* v_env_5034_; lean_object* v_nextMacroScope_5035_; lean_object* v_ngen_5036_; lean_object* v_auxDeclNGen_5037_; lean_object* v_traceState_5038_; lean_object* v_messages_5039_; lean_object* v_infoState_5040_; lean_object* v_snapshotTasks_5041_; lean_object* v___x_5043_; uint8_t v_isShared_5044_; uint8_t v_isSharedCheck_5066_; -v___x_5033_ = lean_st_ref_take(v___y_5012_); -v_env_5034_ = lean_ctor_get(v___x_5033_, 0); -v_nextMacroScope_5035_ = lean_ctor_get(v___x_5033_, 1); -v_ngen_5036_ = lean_ctor_get(v___x_5033_, 2); -v_auxDeclNGen_5037_ = lean_ctor_get(v___x_5033_, 3); -v_traceState_5038_ = lean_ctor_get(v___x_5033_, 4); -v_messages_5039_ = lean_ctor_get(v___x_5033_, 6); -v_infoState_5040_ = lean_ctor_get(v___x_5033_, 7); -v_snapshotTasks_5041_ = lean_ctor_get(v___x_5033_, 8); -v_isSharedCheck_5066_ = !lean_is_exclusive(v___x_5033_); -if (v_isSharedCheck_5066_ == 0) -{ -lean_object* v_unused_5067_; -v_unused_5067_ = lean_ctor_get(v___x_5033_, 5); -lean_dec(v_unused_5067_); -v___x_5043_ = v___x_5033_; -v_isShared_5044_ = v_isSharedCheck_5066_; -goto v_resetjp_5042_; -} -else -{ -lean_inc(v_snapshotTasks_5041_); -lean_inc(v_infoState_5040_); -lean_inc(v_messages_5039_); -lean_inc(v_traceState_5038_); -lean_inc(v_auxDeclNGen_5037_); -lean_inc(v_ngen_5036_); -lean_inc(v_nextMacroScope_5035_); -lean_inc(v_env_5034_); -lean_dec(v___x_5033_); -v___x_5043_ = lean_box(0); -v_isShared_5044_ = v_isSharedCheck_5066_; -goto v_resetjp_5042_; -} -v_resetjp_5042_: -{ -lean_object* v___x_5045_; lean_object* v___x_5046_; lean_object* v___x_5048_; -lean_inc(v_a_5026_); -v___x_5045_ = l_Lean_markMeta(v_env_5034_, v_a_5026_); -v___x_5046_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_5044_ == 0) -{ -lean_ctor_set(v___x_5043_, 5, v___x_5046_); -lean_ctor_set(v___x_5043_, 0, v___x_5045_); -v___x_5048_ = v___x_5043_; -goto v_reusejp_5047_; -} -else -{ -lean_object* v_reuseFailAlloc_5065_; -v_reuseFailAlloc_5065_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_5065_, 0, v___x_5045_); -lean_ctor_set(v_reuseFailAlloc_5065_, 1, v_nextMacroScope_5035_); -lean_ctor_set(v_reuseFailAlloc_5065_, 2, v_ngen_5036_); -lean_ctor_set(v_reuseFailAlloc_5065_, 3, v_auxDeclNGen_5037_); -lean_ctor_set(v_reuseFailAlloc_5065_, 4, v_traceState_5038_); -lean_ctor_set(v_reuseFailAlloc_5065_, 5, v___x_5046_); -lean_ctor_set(v_reuseFailAlloc_5065_, 6, v_messages_5039_); -lean_ctor_set(v_reuseFailAlloc_5065_, 7, v_infoState_5040_); -lean_ctor_set(v_reuseFailAlloc_5065_, 8, v_snapshotTasks_5041_); -v___x_5048_ = v_reuseFailAlloc_5065_; -goto v_reusejp_5047_; -} -v_reusejp_5047_: -{ -lean_object* v___x_5049_; lean_object* v___x_5050_; lean_object* v_mctx_5051_; lean_object* v_zetaDeltaFVarIds_5052_; lean_object* v_postponed_5053_; lean_object* v_diag_5054_; lean_object* v___x_5056_; uint8_t v_isShared_5057_; uint8_t v_isSharedCheck_5063_; -v___x_5049_ = lean_st_ref_set(v___y_5012_, v___x_5048_); -v___x_5050_ = lean_st_ref_take(v___y_5009_); -v_mctx_5051_ = lean_ctor_get(v___x_5050_, 0); -v_zetaDeltaFVarIds_5052_ = lean_ctor_get(v___x_5050_, 2); -v_postponed_5053_ = lean_ctor_get(v___x_5050_, 3); -v_diag_5054_ = lean_ctor_get(v___x_5050_, 4); -v_isSharedCheck_5063_ = !lean_is_exclusive(v___x_5050_); -if (v_isSharedCheck_5063_ == 0) -{ -lean_object* v_unused_5064_; -v_unused_5064_ = lean_ctor_get(v___x_5050_, 1); -lean_dec(v_unused_5064_); -v___x_5056_ = v___x_5050_; -v_isShared_5057_ = v_isSharedCheck_5063_; -goto v_resetjp_5055_; -} -else -{ -lean_inc(v_diag_5054_); -lean_inc(v_postponed_5053_); -lean_inc(v_zetaDeltaFVarIds_5052_); -lean_inc(v_mctx_5051_); -lean_dec(v___x_5050_); -v___x_5056_ = lean_box(0); -v_isShared_5057_ = v_isSharedCheck_5063_; -goto v_resetjp_5055_; -} -v_resetjp_5055_: -{ -lean_object* v___x_5058_; lean_object* v___x_5060_; -v___x_5058_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_5057_ == 0) -{ -lean_ctor_set(v___x_5056_, 1, v___x_5058_); -v___x_5060_ = v___x_5056_; -goto v_reusejp_5059_; -} -else -{ -lean_object* v_reuseFailAlloc_5062_; -v_reuseFailAlloc_5062_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_5062_, 0, v_mctx_5051_); -lean_ctor_set(v_reuseFailAlloc_5062_, 1, v___x_5058_); -lean_ctor_set(v_reuseFailAlloc_5062_, 2, v_zetaDeltaFVarIds_5052_); -lean_ctor_set(v_reuseFailAlloc_5062_, 3, v_postponed_5053_); -lean_ctor_set(v_reuseFailAlloc_5062_, 4, v_diag_5054_); -v___x_5060_ = v_reuseFailAlloc_5062_; -goto v_reusejp_5059_; -} -v_reusejp_5059_: -{ -lean_object* v___x_5061_; -v___x_5061_ = lean_st_ref_set(v___y_5009_, v___x_5060_); -v___y_4991_ = v_a_5030_; -v___y_4992_ = v_a_5026_; -v___y_4993_ = v___y_5010_; -v___y_4994_ = v___y_5012_; -goto v___jp_4990_; +lean_dec_ref(v_expectedType_4882_); +lean_dec_ref(v_inst_4881_); +return v___x_4944_; } } } } } -} -else -{ -lean_dec(v_a_5026_); -return v___x_5029_; -} -} -else -{ -lean_object* v___x_5069_; -lean_dec(v_a_5019_); -lean_dec_ref(v_expectedType_4954_); -if (v_isShared_5022_ == 0) -{ -lean_ctor_set(v___x_5021_, 0, v_inst_4953_); -v___x_5069_ = v___x_5021_; -goto v_reusejp_5068_; -} -else -{ -lean_object* v_reuseFailAlloc_5070_; -v_reuseFailAlloc_5070_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5070_, 0, v_inst_4953_); -v___x_5069_ = v_reuseFailAlloc_5070_; -goto v_reusejp_5068_; -} -v_reusejp_5068_: -{ -return v___x_5069_; -} -} -} -} -else -{ -lean_object* v_a_5072_; lean_object* v___x_5074_; uint8_t v_isShared_5075_; uint8_t v_isSharedCheck_5079_; -lean_dec_ref(v_expectedType_4954_); -lean_dec_ref(v_inst_4953_); -v_a_5072_ = lean_ctor_get(v___x_5018_, 0); -v_isSharedCheck_5079_ = !lean_is_exclusive(v___x_5018_); -if (v_isSharedCheck_5079_ == 0) -{ -v___x_5074_ = v___x_5018_; -v_isShared_5075_ = v_isSharedCheck_5079_; -goto v_resetjp_5073_; -} -else -{ -lean_inc(v_a_5072_); -lean_dec(v___x_5018_); -v___x_5074_ = lean_box(0); -v_isShared_5075_ = v_isSharedCheck_5079_; -goto v_resetjp_5073_; -} -v_resetjp_5073_: -{ -lean_object* v___x_5077_; -if (v_isShared_5075_ == 0) -{ -v___x_5077_ = v___x_5074_; -goto v_reusejp_5076_; -} -else -{ -lean_object* v_reuseFailAlloc_5078_; -v_reuseFailAlloc_5078_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5078_, 0, v_a_5072_); -v___x_5077_ = v_reuseFailAlloc_5078_; -goto v_reusejp_5076_; -} -v_reusejp_5076_: -{ -return v___x_5077_; -} -} -} -} -else -{ -lean_dec_ref(v_expectedType_4954_); -lean_dec_ref(v_inst_4953_); -return v___x_5016_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16(lean_object* v_inst_5237_, lean_object* v_expectedType_5238_, uint8_t v___x_5239_, uint8_t v_compile_5240_, uint8_t v_logCompileErrors_5241_, uint8_t v_isMeta_5242_, lean_object* v_val_5243_, lean_object* v_x_5244_, lean_object* v_x_5245_, lean_object* v_x_5246_, lean_object* v___y_5247_, lean_object* v___y_5248_, lean_object* v___y_5249_, lean_object* v___y_5250_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15(lean_object* v_inst_5164_, lean_object* v_expectedType_5165_, uint8_t v___x_5166_, uint8_t v_compile_5167_, uint8_t v_logCompileErrors_5168_, uint8_t v_isMeta_5169_, lean_object* v_val_5170_, lean_object* v_x_5171_, lean_object* v_x_5172_, lean_object* v_x_5173_, lean_object* v___y_5174_, lean_object* v___y_5175_, lean_object* v___y_5176_, lean_object* v___y_5177_){ _start: { -lean_object* v___y_5253_; lean_object* v___y_5254_; lean_object* v___y_5255_; lean_object* v___y_5256_; lean_object* v___y_5275_; lean_object* v___y_5276_; lean_object* v___y_5277_; lean_object* v___y_5278_; lean_object* v___y_5292_; lean_object* v___y_5293_; lean_object* v___y_5294_; lean_object* v_options_5295_; lean_object* v___y_5296_; -if (lean_obj_tag(v_x_5244_) == 5) +lean_object* v___y_5180_; lean_object* v___y_5181_; lean_object* v___y_5182_; lean_object* v___y_5183_; lean_object* v___y_5202_; lean_object* v___y_5203_; lean_object* v___y_5204_; lean_object* v___y_5205_; lean_object* v___y_5219_; lean_object* v___y_5220_; lean_object* v___y_5221_; lean_object* v_options_5222_; lean_object* v___y_5223_; +if (lean_obj_tag(v_x_5171_) == 5) { -lean_object* v_fn_5364_; lean_object* v_arg_5365_; lean_object* v___x_5366_; lean_object* v___x_5367_; lean_object* v___x_5368_; lean_object* v___x_5369_; -v_fn_5364_ = lean_ctor_get(v_x_5244_, 0); -lean_inc_ref(v_fn_5364_); -v_arg_5365_ = lean_ctor_get(v_x_5244_, 1); -lean_inc_ref(v_arg_5365_); -lean_dec_ref(v_x_5244_); -v___x_5366_ = lean_array_set(v_x_5245_, v_x_5246_, v_arg_5365_); -v___x_5367_ = lean_unsigned_to_nat(1u); -v___x_5368_ = lean_nat_sub(v_x_5246_, v___x_5367_); -v___x_5369_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_spec__25(v_inst_5237_, v_expectedType_5238_, v___x_5239_, v_compile_5240_, v_logCompileErrors_5241_, v_isMeta_5242_, v_val_5243_, v_fn_5364_, v___x_5366_, v___x_5368_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -return v___x_5369_; +lean_object* v_fn_5290_; lean_object* v_arg_5291_; lean_object* v___x_5292_; lean_object* v___x_5293_; lean_object* v___x_5294_; lean_object* v___x_5295_; +v_fn_5290_ = lean_ctor_get(v_x_5171_, 0); +lean_inc_ref(v_fn_5290_); +v_arg_5291_ = lean_ctor_get(v_x_5171_, 1); +lean_inc_ref(v_arg_5291_); +lean_dec_ref(v_x_5171_); +v___x_5292_ = lean_array_set(v_x_5172_, v_x_5173_, v_arg_5291_); +v___x_5293_ = lean_unsigned_to_nat(1u); +v___x_5294_ = lean_nat_sub(v_x_5173_, v___x_5293_); +v___x_5295_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24(v_inst_5164_, v_expectedType_5165_, v___x_5166_, v_compile_5167_, v_logCompileErrors_5168_, v_isMeta_5169_, v_val_5170_, v_fn_5290_, v___x_5292_, v___x_5294_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +return v___x_5295_; } else { -lean_object* v_cls_5370_; lean_object* v___y_5372_; lean_object* v___y_5373_; lean_object* v___y_5374_; lean_object* v___y_5375_; lean_object* v___x_5393_; -v_cls_5370_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_5393_ = l_Lean_Expr_constName_x3f(v_x_5244_); -if (lean_obj_tag(v___x_5393_) == 0) +lean_object* v_cls_5296_; lean_object* v___y_5298_; lean_object* v___y_5299_; lean_object* v___y_5300_; lean_object* v___y_5301_; lean_object* v___x_5319_; +v_cls_5296_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_5319_ = l_Lean_Expr_constName_x3f(v_x_5171_); +if (lean_obj_tag(v___x_5319_) == 0) { -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -v___y_5372_ = v___y_5247_; -v___y_5373_ = v___y_5248_; -v___y_5374_ = v___y_5249_; -v___y_5375_ = v___y_5250_; -goto v___jp_5371_; +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +v___y_5298_ = v___y_5174_; +v___y_5299_ = v___y_5175_; +v___y_5300_ = v___y_5176_; +v___y_5301_ = v___y_5177_; +goto v___jp_5297_; } else { -lean_object* v_val_5394_; lean_object* v___x_5395_; -v_val_5394_ = lean_ctor_get(v___x_5393_, 0); -lean_inc(v_val_5394_); -lean_dec_ref(v___x_5393_); -v___x_5395_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4(v_val_5394_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -if (lean_obj_tag(v___x_5395_) == 0) +lean_object* v_val_5320_; lean_object* v___x_5321_; +v_val_5320_ = lean_ctor_get(v___x_5319_, 0); +lean_inc(v_val_5320_); +lean_dec_ref(v___x_5319_); +v___x_5321_ = l_Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3(v_val_5320_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +if (lean_obj_tag(v___x_5321_) == 0) { -lean_object* v_a_5396_; -v_a_5396_ = lean_ctor_get(v___x_5395_, 0); -lean_inc(v_a_5396_); -lean_dec_ref(v___x_5395_); -if (lean_obj_tag(v_a_5396_) == 6) +lean_object* v_a_5322_; +v_a_5322_ = lean_ctor_get(v___x_5321_, 0); +lean_inc(v_a_5322_); +lean_dec_ref(v___x_5321_); +if (lean_obj_tag(v_a_5322_) == 6) { -lean_object* v_val_5397_; lean_object* v___x_5398_; -lean_dec_ref(v_inst_5237_); -v_val_5397_ = lean_ctor_get(v_a_5396_, 0); -lean_inc_ref(v_val_5397_); -lean_dec_ref(v_a_5396_); -lean_inc(v___y_5250_); -lean_inc_ref(v___y_5249_); -lean_inc(v___y_5248_); -lean_inc_ref(v___y_5247_); -lean_inc_ref(v_x_5244_); -v___x_5398_ = lean_infer_type(v_x_5244_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -if (lean_obj_tag(v___x_5398_) == 0) +lean_object* v_val_5323_; lean_object* v___x_5324_; +lean_dec_ref(v_inst_5164_); +v_val_5323_ = lean_ctor_get(v_a_5322_, 0); +lean_inc_ref(v_val_5323_); +lean_dec_ref(v_a_5322_); +lean_inc(v___y_5177_); +lean_inc_ref(v___y_5176_); +lean_inc(v___y_5175_); +lean_inc_ref(v___y_5174_); +lean_inc_ref(v_x_5171_); +v___x_5324_ = lean_infer_type(v_x_5171_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +if (lean_obj_tag(v___x_5324_) == 0) { -lean_object* v_a_5399_; uint8_t v___x_5400_; lean_object* v___x_5401_; -v_a_5399_ = lean_ctor_get(v___x_5398_, 0); -lean_inc(v_a_5399_); -lean_dec_ref(v___x_5398_); -v___x_5400_ = 0; -v___x_5401_ = l_Lean_Meta_forallMetaTelescope(v_a_5399_, v___x_5400_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -if (lean_obj_tag(v___x_5401_) == 0) +lean_object* v_a_5325_; uint8_t v___x_5326_; lean_object* v___x_5327_; +v_a_5325_ = lean_ctor_get(v___x_5324_, 0); +lean_inc(v_a_5325_); +lean_dec_ref(v___x_5324_); +v___x_5326_ = 0; +v___x_5327_ = l_Lean_Meta_forallMetaTelescope(v_a_5325_, v___x_5326_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +if (lean_obj_tag(v___x_5327_) == 0) { -lean_object* v_a_5402_; lean_object* v_snd_5403_; lean_object* v_fst_5404_; lean_object* v___x_5406_; uint8_t v_isShared_5407_; uint8_t v_isSharedCheck_5504_; -v_a_5402_ = lean_ctor_get(v___x_5401_, 0); -lean_inc(v_a_5402_); -lean_dec_ref(v___x_5401_); -v_snd_5403_ = lean_ctor_get(v_a_5402_, 1); -v_fst_5404_ = lean_ctor_get(v_a_5402_, 0); -v_isSharedCheck_5504_ = !lean_is_exclusive(v_a_5402_); -if (v_isSharedCheck_5504_ == 0) +lean_object* v_a_5328_; lean_object* v_snd_5329_; lean_object* v_fst_5330_; lean_object* v___x_5332_; uint8_t v_isShared_5333_; uint8_t v_isSharedCheck_5430_; +v_a_5328_ = lean_ctor_get(v___x_5327_, 0); +lean_inc(v_a_5328_); +lean_dec_ref(v___x_5327_); +v_snd_5329_ = lean_ctor_get(v_a_5328_, 1); +v_fst_5330_ = lean_ctor_get(v_a_5328_, 0); +v_isSharedCheck_5430_ = !lean_is_exclusive(v_a_5328_); +if (v_isSharedCheck_5430_ == 0) { -v___x_5406_ = v_a_5402_; -v_isShared_5407_ = v_isSharedCheck_5504_; -goto v_resetjp_5405_; +v___x_5332_ = v_a_5328_; +v_isShared_5333_ = v_isSharedCheck_5430_; +goto v_resetjp_5331_; } else { -lean_inc(v_snd_5403_); -lean_inc(v_fst_5404_); -lean_dec(v_a_5402_); -v___x_5406_ = lean_box(0); -v_isShared_5407_ = v_isSharedCheck_5504_; -goto v_resetjp_5405_; +lean_inc(v_snd_5329_); +lean_inc(v_fst_5330_); +lean_dec(v_a_5328_); +v___x_5332_ = lean_box(0); +v_isShared_5333_ = v_isSharedCheck_5430_; +goto v_resetjp_5331_; } -v_resetjp_5405_: +v_resetjp_5331_: { -lean_object* v_snd_5408_; lean_object* v___x_5410_; uint8_t v_isShared_5411_; uint8_t v_isSharedCheck_5502_; -v_snd_5408_ = lean_ctor_get(v_snd_5403_, 1); -v_isSharedCheck_5502_ = !lean_is_exclusive(v_snd_5403_); -if (v_isSharedCheck_5502_ == 0) +lean_object* v_snd_5334_; lean_object* v___x_5336_; uint8_t v_isShared_5337_; uint8_t v_isSharedCheck_5428_; +v_snd_5334_ = lean_ctor_get(v_snd_5329_, 1); +v_isSharedCheck_5428_ = !lean_is_exclusive(v_snd_5329_); +if (v_isSharedCheck_5428_ == 0) { -lean_object* v_unused_5503_; -v_unused_5503_ = lean_ctor_get(v_snd_5403_, 0); -lean_dec(v_unused_5503_); -v___x_5410_ = v_snd_5403_; -v_isShared_5411_ = v_isSharedCheck_5502_; -goto v_resetjp_5409_; +lean_object* v_unused_5429_; +v_unused_5429_ = lean_ctor_get(v_snd_5329_, 0); +lean_dec(v_unused_5429_); +v___x_5336_ = v_snd_5329_; +v_isShared_5337_ = v_isSharedCheck_5428_; +goto v_resetjp_5335_; } else { -lean_inc(v_snd_5408_); -lean_dec(v_snd_5403_); -v___x_5410_ = lean_box(0); -v_isShared_5411_ = v_isSharedCheck_5502_; -goto v_resetjp_5409_; -} -v_resetjp_5409_: -{ -lean_object* v___x_5412_; lean_object* v___y_5414_; lean_object* v___y_5415_; lean_object* v___y_5416_; lean_object* v___y_5417_; lean_object* v___x_5449_; uint8_t v___x_5450_; -v___x_5412_ = lean_array_get_size(v_x_5245_); -v___x_5449_ = lean_array_get_size(v_fst_5404_); -v___x_5450_ = lean_nat_dec_eq(v___x_5412_, v___x_5449_); -if (v___x_5450_ == 0) -{ -lean_object* v___x_5451_; lean_object* v___x_5452_; lean_object* v___x_5454_; -lean_dec(v_snd_5408_); -lean_dec(v_fst_5404_); -lean_dec_ref(v_val_5397_); -lean_dec(v_val_5243_); -lean_dec_ref(v_expectedType_5238_); -v___x_5451_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__3); -v___x_5452_ = l_Lean_MessageData_ofExpr(v_x_5244_); -if (v_isShared_5411_ == 0) -{ -lean_ctor_set_tag(v___x_5410_, 7); -lean_ctor_set(v___x_5410_, 1, v___x_5452_); -lean_ctor_set(v___x_5410_, 0, v___x_5451_); -v___x_5454_ = v___x_5410_; -goto v_reusejp_5453_; -} -else -{ -lean_object* v_reuseFailAlloc_5465_; -v_reuseFailAlloc_5465_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5465_, 0, v___x_5451_); -lean_ctor_set(v_reuseFailAlloc_5465_, 1, v___x_5452_); -v___x_5454_ = v_reuseFailAlloc_5465_; -goto v_reusejp_5453_; -} -v_reusejp_5453_: -{ -lean_object* v___x_5455_; lean_object* v___x_5457_; -v___x_5455_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___lam__5___closed__3); -if (v_isShared_5407_ == 0) -{ -lean_ctor_set_tag(v___x_5406_, 7); -lean_ctor_set(v___x_5406_, 1, v___x_5455_); -lean_ctor_set(v___x_5406_, 0, v___x_5454_); -v___x_5457_ = v___x_5406_; -goto v_reusejp_5456_; -} -else -{ -lean_object* v_reuseFailAlloc_5464_; -v_reuseFailAlloc_5464_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5464_, 0, v___x_5454_); -lean_ctor_set(v_reuseFailAlloc_5464_, 1, v___x_5455_); -v___x_5457_ = v_reuseFailAlloc_5464_; -goto v_reusejp_5456_; -} -v_reusejp_5456_: -{ -lean_object* v___x_5458_; lean_object* v___x_5459_; lean_object* v___x_5460_; lean_object* v___x_5461_; lean_object* v___x_5462_; lean_object* v___x_5463_; -v___x_5458_ = lean_array_to_list(v_x_5245_); -v___x_5459_ = lean_box(0); -v___x_5460_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__9(v___x_5458_, v___x_5459_); -v___x_5461_ = l_Lean_MessageData_ofList(v___x_5460_); -v___x_5462_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5462_, 0, v___x_5457_); -lean_ctor_set(v___x_5462_, 1, v___x_5461_); -v___x_5463_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5462_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -return v___x_5463_; -} -} -} -else -{ -lean_object* v___x_5466_; -lean_inc_ref(v_expectedType_5238_); -v___x_5466_ = l_Lean_Meta_isExprDefEq(v_expectedType_5238_, v_snd_5408_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -if (lean_obj_tag(v___x_5466_) == 0) -{ -lean_object* v_a_5467_; uint8_t v___x_5468_; -v_a_5467_ = lean_ctor_get(v___x_5466_, 0); -lean_inc(v_a_5467_); -lean_dec_ref(v___x_5466_); -v___x_5468_ = lean_unbox(v_a_5467_); -if (v___x_5468_ == 0) -{ -lean_object* v_toConstantVal_5469_; lean_object* v_name_5470_; lean_object* v___x_5471_; lean_object* v___x_5472_; lean_object* v___x_5474_; -lean_dec(v_fst_5404_); -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -v_toConstantVal_5469_ = lean_ctor_get(v_val_5397_, 0); -lean_inc_ref(v_toConstantVal_5469_); -lean_dec_ref(v_val_5397_); -v_name_5470_ = lean_ctor_get(v_toConstantVal_5469_, 0); -lean_inc(v_name_5470_); -lean_dec_ref(v_toConstantVal_5469_); -v___x_5471_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__5); -v___x_5472_ = l_Lean_MessageData_ofExpr(v_expectedType_5238_); -if (v_isShared_5411_ == 0) -{ -lean_ctor_set_tag(v___x_5410_, 7); -lean_ctor_set(v___x_5410_, 1, v___x_5472_); -lean_ctor_set(v___x_5410_, 0, v___x_5471_); -v___x_5474_ = v___x_5410_; -goto v_reusejp_5473_; -} -else -{ -lean_object* v_reuseFailAlloc_5493_; -v_reuseFailAlloc_5493_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5493_, 0, v___x_5471_); -lean_ctor_set(v_reuseFailAlloc_5493_, 1, v___x_5472_); -v___x_5474_ = v_reuseFailAlloc_5493_; -goto v_reusejp_5473_; -} -v_reusejp_5473_: -{ -lean_object* v___x_5475_; lean_object* v___x_5477_; -v___x_5475_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__7); -if (v_isShared_5407_ == 0) -{ -lean_ctor_set_tag(v___x_5406_, 7); -lean_ctor_set(v___x_5406_, 1, v___x_5475_); -lean_ctor_set(v___x_5406_, 0, v___x_5474_); -v___x_5477_ = v___x_5406_; -goto v_reusejp_5476_; -} -else -{ -lean_object* v_reuseFailAlloc_5492_; -v_reuseFailAlloc_5492_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5492_, 0, v___x_5474_); -lean_ctor_set(v_reuseFailAlloc_5492_, 1, v___x_5475_); -v___x_5477_ = v_reuseFailAlloc_5492_; -goto v_reusejp_5476_; -} -v_reusejp_5476_: -{ -uint8_t v___x_5478_; lean_object* v___x_5479_; lean_object* v___x_5480_; lean_object* v___x_5481_; lean_object* v___x_5482_; lean_object* v___x_5483_; lean_object* v_a_5484_; lean_object* v___x_5486_; uint8_t v_isShared_5487_; uint8_t v_isSharedCheck_5491_; -v___x_5478_ = lean_unbox(v_a_5467_); -lean_dec(v_a_5467_); -v___x_5479_ = l_Lean_MessageData_ofConstName(v_name_5470_, v___x_5478_); -v___x_5480_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5480_, 0, v___x_5477_); -lean_ctor_set(v___x_5480_, 1, v___x_5479_); -v___x_5481_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); -v___x_5482_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5482_, 0, v___x_5480_); -lean_ctor_set(v___x_5482_, 1, v___x_5481_); -v___x_5483_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5482_, v___y_5247_, v___y_5248_, v___y_5249_, v___y_5250_); -v_a_5484_ = lean_ctor_get(v___x_5483_, 0); -v_isSharedCheck_5491_ = !lean_is_exclusive(v___x_5483_); -if (v_isSharedCheck_5491_ == 0) -{ -v___x_5486_ = v___x_5483_; -v_isShared_5487_ = v_isSharedCheck_5491_; -goto v_resetjp_5485_; -} -else -{ -lean_inc(v_a_5484_); -lean_dec(v___x_5483_); -v___x_5486_ = lean_box(0); -v_isShared_5487_ = v_isSharedCheck_5491_; -goto v_resetjp_5485_; -} -v_resetjp_5485_: -{ -lean_object* v___x_5489_; -if (v_isShared_5487_ == 0) -{ -v___x_5489_ = v___x_5486_; -goto v_reusejp_5488_; -} -else -{ -lean_object* v_reuseFailAlloc_5490_; -v_reuseFailAlloc_5490_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5490_, 0, v_a_5484_); -v___x_5489_ = v_reuseFailAlloc_5490_; -goto v_reusejp_5488_; -} -v_reusejp_5488_: -{ -return v___x_5489_; -} -} -} -} -} -else -{ -lean_dec(v_a_5467_); -lean_del_object(v___x_5410_); -lean_del_object(v___x_5406_); -v___y_5414_ = v___y_5247_; -v___y_5415_ = v___y_5248_; -v___y_5416_ = v___y_5249_; -v___y_5417_ = v___y_5250_; -goto v___jp_5413_; -} -} -else -{ -lean_object* v_a_5494_; lean_object* v___x_5496_; uint8_t v_isShared_5497_; uint8_t v_isSharedCheck_5501_; -lean_del_object(v___x_5410_); -lean_del_object(v___x_5406_); -lean_dec(v_fst_5404_); -lean_dec_ref(v_val_5397_); -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -lean_dec_ref(v_expectedType_5238_); -v_a_5494_ = lean_ctor_get(v___x_5466_, 0); -v_isSharedCheck_5501_ = !lean_is_exclusive(v___x_5466_); -if (v_isSharedCheck_5501_ == 0) -{ -v___x_5496_ = v___x_5466_; -v_isShared_5497_ = v_isSharedCheck_5501_; -goto v_resetjp_5495_; -} -else -{ -lean_inc(v_a_5494_); -lean_dec(v___x_5466_); -v___x_5496_ = lean_box(0); -v_isShared_5497_ = v_isSharedCheck_5501_; -goto v_resetjp_5495_; -} -v_resetjp_5495_: -{ -lean_object* v___x_5499_; -if (v_isShared_5497_ == 0) -{ -v___x_5499_ = v___x_5496_; -goto v_reusejp_5498_; -} -else -{ -lean_object* v_reuseFailAlloc_5500_; -v_reuseFailAlloc_5500_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5500_, 0, v_a_5494_); -v___x_5499_ = v_reuseFailAlloc_5500_; -goto v_reusejp_5498_; -} -v_reusejp_5498_: -{ -return v___x_5499_; -} -} -} -} -v___jp_5413_: -{ -lean_object* v_numParams_5418_; lean_object* v___x_5419_; lean_object* v___x_5420_; -v_numParams_5418_ = lean_ctor_get(v_val_5397_, 3); -lean_inc(v_numParams_5418_); -lean_dec_ref(v_val_5397_); -v___x_5419_ = lean_box(0); -v___x_5420_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(v___x_5412_, v_fst_5404_, v_x_5245_, v___x_5239_, v_compile_5240_, v_logCompileErrors_5241_, v_isMeta_5242_, v_val_5243_, v_expectedType_5238_, v_numParams_5418_, v___x_5419_, v___y_5414_, v___y_5415_, v___y_5416_, v___y_5417_); -lean_dec_ref(v_x_5245_); -if (lean_obj_tag(v___x_5420_) == 0) -{ -size_t v_sz_5421_; size_t v___x_5422_; lean_object* v___x_5423_; -lean_dec_ref(v___x_5420_); -v_sz_5421_ = lean_array_size(v_fst_5404_); -v___x_5422_ = ((size_t)0ULL); -v___x_5423_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__6(v_sz_5421_, v___x_5422_, v_fst_5404_, v___y_5414_, v___y_5415_, v___y_5416_, v___y_5417_); -if (lean_obj_tag(v___x_5423_) == 0) -{ -lean_object* v_a_5424_; lean_object* v___x_5426_; uint8_t v_isShared_5427_; uint8_t v_isSharedCheck_5432_; -v_a_5424_ = lean_ctor_get(v___x_5423_, 0); -v_isSharedCheck_5432_ = !lean_is_exclusive(v___x_5423_); -if (v_isSharedCheck_5432_ == 0) -{ -v___x_5426_ = v___x_5423_; -v_isShared_5427_ = v_isSharedCheck_5432_; -goto v_resetjp_5425_; -} -else -{ -lean_inc(v_a_5424_); -lean_dec(v___x_5423_); -v___x_5426_ = lean_box(0); -v_isShared_5427_ = v_isSharedCheck_5432_; -goto v_resetjp_5425_; -} -v_resetjp_5425_: -{ -lean_object* v___x_5428_; lean_object* v___x_5430_; -v___x_5428_ = l_Lean_mkAppN(v_x_5244_, v_a_5424_); -lean_dec(v_a_5424_); -if (v_isShared_5427_ == 0) -{ -lean_ctor_set(v___x_5426_, 0, v___x_5428_); -v___x_5430_ = v___x_5426_; -goto v_reusejp_5429_; -} -else -{ -lean_object* v_reuseFailAlloc_5431_; -v_reuseFailAlloc_5431_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5431_, 0, v___x_5428_); -v___x_5430_ = v_reuseFailAlloc_5431_; -goto v_reusejp_5429_; -} -v_reusejp_5429_: -{ -return v___x_5430_; -} -} -} -else -{ -lean_object* v_a_5433_; lean_object* v___x_5435_; uint8_t v_isShared_5436_; uint8_t v_isSharedCheck_5440_; -lean_dec_ref(v_x_5244_); -v_a_5433_ = lean_ctor_get(v___x_5423_, 0); -v_isSharedCheck_5440_ = !lean_is_exclusive(v___x_5423_); -if (v_isSharedCheck_5440_ == 0) -{ -v___x_5435_ = v___x_5423_; -v_isShared_5436_ = v_isSharedCheck_5440_; -goto v_resetjp_5434_; -} -else -{ -lean_inc(v_a_5433_); -lean_dec(v___x_5423_); -v___x_5435_ = lean_box(0); -v_isShared_5436_ = v_isSharedCheck_5440_; -goto v_resetjp_5434_; -} -v_resetjp_5434_: -{ -lean_object* v___x_5438_; -if (v_isShared_5436_ == 0) -{ -v___x_5438_ = v___x_5435_; -goto v_reusejp_5437_; -} -else -{ -lean_object* v_reuseFailAlloc_5439_; -v_reuseFailAlloc_5439_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5439_, 0, v_a_5433_); -v___x_5438_ = v_reuseFailAlloc_5439_; -goto v_reusejp_5437_; -} -v_reusejp_5437_: -{ -return v___x_5438_; -} -} -} -} -else -{ -lean_object* v_a_5441_; lean_object* v___x_5443_; uint8_t v_isShared_5444_; uint8_t v_isSharedCheck_5448_; -lean_dec(v_fst_5404_); -lean_dec_ref(v_x_5244_); -v_a_5441_ = lean_ctor_get(v___x_5420_, 0); -v_isSharedCheck_5448_ = !lean_is_exclusive(v___x_5420_); -if (v_isSharedCheck_5448_ == 0) -{ -v___x_5443_ = v___x_5420_; -v_isShared_5444_ = v_isSharedCheck_5448_; -goto v_resetjp_5442_; -} -else -{ -lean_inc(v_a_5441_); -lean_dec(v___x_5420_); -v___x_5443_ = lean_box(0); -v_isShared_5444_ = v_isSharedCheck_5448_; -goto v_resetjp_5442_; -} -v_resetjp_5442_: -{ -lean_object* v___x_5446_; -if (v_isShared_5444_ == 0) -{ -v___x_5446_ = v___x_5443_; -goto v_reusejp_5445_; -} -else -{ -lean_object* v_reuseFailAlloc_5447_; -v_reuseFailAlloc_5447_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5447_, 0, v_a_5441_); -v___x_5446_ = v_reuseFailAlloc_5447_; -goto v_reusejp_5445_; -} -v_reusejp_5445_: -{ -return v___x_5446_; -} -} -} -} -} -} -} -else -{ -lean_object* v_a_5505_; lean_object* v___x_5507_; uint8_t v_isShared_5508_; uint8_t v_isSharedCheck_5512_; -lean_dec_ref(v_val_5397_); -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -lean_dec_ref(v_expectedType_5238_); -v_a_5505_ = lean_ctor_get(v___x_5401_, 0); -v_isSharedCheck_5512_ = !lean_is_exclusive(v___x_5401_); -if (v_isSharedCheck_5512_ == 0) -{ -v___x_5507_ = v___x_5401_; -v_isShared_5508_ = v_isSharedCheck_5512_; -goto v_resetjp_5506_; -} -else -{ -lean_inc(v_a_5505_); -lean_dec(v___x_5401_); -v___x_5507_ = lean_box(0); -v_isShared_5508_ = v_isSharedCheck_5512_; -goto v_resetjp_5506_; -} -v_resetjp_5506_: -{ -lean_object* v___x_5510_; -if (v_isShared_5508_ == 0) -{ -v___x_5510_ = v___x_5507_; -goto v_reusejp_5509_; -} -else -{ -lean_object* v_reuseFailAlloc_5511_; -v_reuseFailAlloc_5511_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5511_, 0, v_a_5505_); -v___x_5510_ = v_reuseFailAlloc_5511_; -goto v_reusejp_5509_; -} -v_reusejp_5509_: -{ -return v___x_5510_; -} -} -} -} -else -{ -lean_dec_ref(v_val_5397_); -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -lean_dec_ref(v_expectedType_5238_); -return v___x_5398_; -} -} -else -{ -lean_dec(v_a_5396_); -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -v___y_5372_ = v___y_5247_; -v___y_5373_ = v___y_5248_; -v___y_5374_ = v___y_5249_; -v___y_5375_ = v___y_5250_; -goto v___jp_5371_; -} -} -else -{ -lean_object* v_a_5513_; lean_object* v___x_5515_; uint8_t v_isShared_5516_; uint8_t v_isSharedCheck_5520_; -lean_dec_ref(v_x_5245_); -lean_dec_ref(v_x_5244_); -lean_dec(v_val_5243_); -lean_dec_ref(v_expectedType_5238_); -lean_dec_ref(v_inst_5237_); -v_a_5513_ = lean_ctor_get(v___x_5395_, 0); -v_isSharedCheck_5520_ = !lean_is_exclusive(v___x_5395_); -if (v_isSharedCheck_5520_ == 0) -{ -v___x_5515_ = v___x_5395_; -v_isShared_5516_ = v_isSharedCheck_5520_; -goto v_resetjp_5514_; -} -else -{ -lean_inc(v_a_5513_); -lean_dec(v___x_5395_); -v___x_5515_ = lean_box(0); -v_isShared_5516_ = v_isSharedCheck_5520_; -goto v_resetjp_5514_; -} -v_resetjp_5514_: -{ -lean_object* v___x_5518_; -if (v_isShared_5516_ == 0) -{ -v___x_5518_ = v___x_5515_; -goto v_reusejp_5517_; -} -else -{ -lean_object* v_reuseFailAlloc_5519_; -v_reuseFailAlloc_5519_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5519_, 0, v_a_5513_); -v___x_5518_ = v_reuseFailAlloc_5519_; -goto v_reusejp_5517_; -} -v_reusejp_5517_: -{ -return v___x_5518_; -} -} -} -} -v___jp_5371_: -{ -lean_object* v_options_5376_; uint8_t v_hasTrace_5377_; -v_options_5376_ = lean_ctor_get(v___y_5374_, 2); -v_hasTrace_5377_ = lean_ctor_get_uint8(v_options_5376_, sizeof(void*)*1); -if (v_hasTrace_5377_ == 0) -{ -v___y_5292_ = v___y_5372_; -v___y_5293_ = v___y_5373_; -v___y_5294_ = v___y_5374_; -v_options_5295_ = v_options_5376_; -v___y_5296_ = v___y_5375_; -goto v___jp_5291_; -} -else -{ -lean_object* v_inheritedTraceOptions_5378_; lean_object* v___x_5379_; uint8_t v___x_5380_; -v_inheritedTraceOptions_5378_ = lean_ctor_get(v___y_5374_, 13); -v___x_5379_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_5380_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5378_, v_options_5376_, v___x_5379_); -if (v___x_5380_ == 0) -{ -v___y_5292_ = v___y_5372_; -v___y_5293_ = v___y_5373_; -v___y_5294_ = v___y_5374_; -v_options_5295_ = v_options_5376_; -v___y_5296_ = v___y_5375_; -goto v___jp_5291_; -} -else -{ -lean_object* v___x_5381_; lean_object* v___x_5382_; lean_object* v___x_5383_; lean_object* v___x_5384_; -v___x_5381_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___closed__1); -lean_inc_ref(v_inst_5237_); -v___x_5382_ = l_Lean_MessageData_ofExpr(v_inst_5237_); -v___x_5383_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5383_, 0, v___x_5381_); -lean_ctor_set(v___x_5383_, 1, v___x_5382_); -v___x_5384_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_5370_, v___x_5383_, v___y_5372_, v___y_5373_, v___y_5374_, v___y_5375_); -if (lean_obj_tag(v___x_5384_) == 0) -{ -lean_dec_ref(v___x_5384_); -v___y_5292_ = v___y_5372_; -v___y_5293_ = v___y_5373_; -v___y_5294_ = v___y_5374_; -v_options_5295_ = v_options_5376_; -v___y_5296_ = v___y_5375_; -goto v___jp_5291_; -} -else -{ -lean_object* v_a_5385_; lean_object* v___x_5387_; uint8_t v_isShared_5388_; uint8_t v_isSharedCheck_5392_; -lean_dec_ref(v_expectedType_5238_); -lean_dec_ref(v_inst_5237_); -v_a_5385_ = lean_ctor_get(v___x_5384_, 0); -v_isSharedCheck_5392_ = !lean_is_exclusive(v___x_5384_); -if (v_isSharedCheck_5392_ == 0) -{ -v___x_5387_ = v___x_5384_; -v_isShared_5388_ = v_isSharedCheck_5392_; -goto v_resetjp_5386_; -} -else -{ -lean_inc(v_a_5385_); -lean_dec(v___x_5384_); -v___x_5387_ = lean_box(0); -v_isShared_5388_ = v_isSharedCheck_5392_; -goto v_resetjp_5386_; -} -v_resetjp_5386_: -{ -lean_object* v___x_5390_; -if (v_isShared_5388_ == 0) -{ -v___x_5390_ = v___x_5387_; -goto v_reusejp_5389_; +lean_inc(v_snd_5334_); +lean_dec(v_snd_5329_); +v___x_5336_ = lean_box(0); +v_isShared_5337_ = v_isSharedCheck_5428_; +goto v_resetjp_5335_; +} +v_resetjp_5335_: +{ +lean_object* v___x_5338_; lean_object* v___y_5340_; lean_object* v___y_5341_; lean_object* v___y_5342_; lean_object* v___y_5343_; lean_object* v___x_5375_; uint8_t v___x_5376_; +v___x_5338_ = lean_array_get_size(v_x_5172_); +v___x_5375_ = lean_array_get_size(v_fst_5330_); +v___x_5376_ = lean_nat_dec_eq(v___x_5338_, v___x_5375_); +if (v___x_5376_ == 0) +{ +lean_object* v___x_5377_; lean_object* v___x_5378_; lean_object* v___x_5380_; +lean_dec(v_snd_5334_); +lean_dec(v_fst_5330_); +lean_dec_ref(v_val_5323_); +lean_dec(v_val_5170_); +lean_dec_ref(v_expectedType_5165_); +v___x_5377_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__3); +v___x_5378_ = l_Lean_MessageData_ofExpr(v_x_5171_); +if (v_isShared_5337_ == 0) +{ +lean_ctor_set_tag(v___x_5336_, 7); +lean_ctor_set(v___x_5336_, 1, v___x_5378_); +lean_ctor_set(v___x_5336_, 0, v___x_5377_); +v___x_5380_ = v___x_5336_; +goto v_reusejp_5379_; } else { lean_object* v_reuseFailAlloc_5391_; -v_reuseFailAlloc_5391_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5391_, 0, v_a_5385_); -v___x_5390_ = v_reuseFailAlloc_5391_; -goto v_reusejp_5389_; +v_reuseFailAlloc_5391_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5391_, 0, v___x_5377_); +lean_ctor_set(v_reuseFailAlloc_5391_, 1, v___x_5378_); +v___x_5380_ = v_reuseFailAlloc_5391_; +goto v_reusejp_5379_; } -v_reusejp_5389_: +v_reusejp_5379_: { -return v___x_5390_; -} -} -} -} -} -} -} -v___jp_5252_: +lean_object* v___x_5381_; lean_object* v___x_5383_; +v___x_5381_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___lam__5___closed__3); +if (v_isShared_5333_ == 0) { -lean_object* v___x_5257_; -v___x_5257_ = l_Lean_enableRealizationsForConst(v___y_5253_, v___y_5255_, v___y_5256_); -if (lean_obj_tag(v___x_5257_) == 0) -{ -lean_object* v___x_5259_; uint8_t v_isShared_5260_; uint8_t v_isSharedCheck_5264_; -v_isSharedCheck_5264_ = !lean_is_exclusive(v___x_5257_); -if (v_isSharedCheck_5264_ == 0) -{ -lean_object* v_unused_5265_; -v_unused_5265_ = lean_ctor_get(v___x_5257_, 0); -lean_dec(v_unused_5265_); -v___x_5259_ = v___x_5257_; -v_isShared_5260_ = v_isSharedCheck_5264_; -goto v_resetjp_5258_; +lean_ctor_set_tag(v___x_5332_, 7); +lean_ctor_set(v___x_5332_, 1, v___x_5381_); +lean_ctor_set(v___x_5332_, 0, v___x_5380_); +v___x_5383_ = v___x_5332_; +goto v_reusejp_5382_; } else { -lean_dec(v___x_5257_); -v___x_5259_ = lean_box(0); -v_isShared_5260_ = v_isSharedCheck_5264_; -goto v_resetjp_5258_; +lean_object* v_reuseFailAlloc_5390_; +v_reuseFailAlloc_5390_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5390_, 0, v___x_5380_); +lean_ctor_set(v_reuseFailAlloc_5390_, 1, v___x_5381_); +v___x_5383_ = v_reuseFailAlloc_5390_; +goto v_reusejp_5382_; } -v_resetjp_5258_: +v_reusejp_5382_: { -lean_object* v___x_5262_; -if (v_isShared_5260_ == 0) -{ -lean_ctor_set(v___x_5259_, 0, v___y_5254_); -v___x_5262_ = v___x_5259_; -goto v_reusejp_5261_; -} -else -{ -lean_object* v_reuseFailAlloc_5263_; -v_reuseFailAlloc_5263_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5263_, 0, v___y_5254_); -v___x_5262_ = v_reuseFailAlloc_5263_; -goto v_reusejp_5261_; -} -v_reusejp_5261_: -{ -return v___x_5262_; +lean_object* v___x_5384_; lean_object* v___x_5385_; lean_object* v___x_5386_; lean_object* v___x_5387_; lean_object* v___x_5388_; lean_object* v___x_5389_; +v___x_5384_ = lean_array_to_list(v_x_5172_); +v___x_5385_ = lean_box(0); +v___x_5386_ = l_List_mapTR_loop___at___00Lean_Meta_wrapInstance_spec__8(v___x_5384_, v___x_5385_); +v___x_5387_ = l_Lean_MessageData_ofList(v___x_5386_); +v___x_5388_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5388_, 0, v___x_5383_); +lean_ctor_set(v___x_5388_, 1, v___x_5387_); +v___x_5389_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5388_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +return v___x_5389_; } } } else { -lean_object* v_a_5266_; lean_object* v___x_5268_; uint8_t v_isShared_5269_; uint8_t v_isSharedCheck_5273_; -lean_dec_ref(v___y_5254_); -v_a_5266_ = lean_ctor_get(v___x_5257_, 0); -v_isSharedCheck_5273_ = !lean_is_exclusive(v___x_5257_); +lean_object* v___x_5392_; +lean_inc_ref(v_expectedType_5165_); +v___x_5392_ = l_Lean_Meta_isExprDefEq(v_expectedType_5165_, v_snd_5334_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +if (lean_obj_tag(v___x_5392_) == 0) +{ +lean_object* v_a_5393_; uint8_t v___x_5394_; +v_a_5393_ = lean_ctor_get(v___x_5392_, 0); +lean_inc(v_a_5393_); +lean_dec_ref(v___x_5392_); +v___x_5394_ = lean_unbox(v_a_5393_); +if (v___x_5394_ == 0) +{ +lean_object* v_toConstantVal_5395_; lean_object* v_name_5396_; lean_object* v___x_5397_; lean_object* v___x_5398_; lean_object* v___x_5400_; +lean_dec(v_fst_5330_); +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +v_toConstantVal_5395_ = lean_ctor_get(v_val_5323_, 0); +lean_inc_ref(v_toConstantVal_5395_); +lean_dec_ref(v_val_5323_); +v_name_5396_ = lean_ctor_get(v_toConstantVal_5395_, 0); +lean_inc(v_name_5396_); +lean_dec_ref(v_toConstantVal_5395_); +v___x_5397_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__5); +v___x_5398_ = l_Lean_MessageData_ofExpr(v_expectedType_5165_); +if (v_isShared_5337_ == 0) +{ +lean_ctor_set_tag(v___x_5336_, 7); +lean_ctor_set(v___x_5336_, 1, v___x_5398_); +lean_ctor_set(v___x_5336_, 0, v___x_5397_); +v___x_5400_ = v___x_5336_; +goto v_reusejp_5399_; +} +else +{ +lean_object* v_reuseFailAlloc_5419_; +v_reuseFailAlloc_5419_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5419_, 0, v___x_5397_); +lean_ctor_set(v_reuseFailAlloc_5419_, 1, v___x_5398_); +v___x_5400_ = v_reuseFailAlloc_5419_; +goto v_reusejp_5399_; +} +v_reusejp_5399_: +{ +lean_object* v___x_5401_; lean_object* v___x_5403_; +v___x_5401_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__7); +if (v_isShared_5333_ == 0) +{ +lean_ctor_set_tag(v___x_5332_, 7); +lean_ctor_set(v___x_5332_, 1, v___x_5401_); +lean_ctor_set(v___x_5332_, 0, v___x_5400_); +v___x_5403_ = v___x_5332_; +goto v_reusejp_5402_; +} +else +{ +lean_object* v_reuseFailAlloc_5418_; +v_reuseFailAlloc_5418_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5418_, 0, v___x_5400_); +lean_ctor_set(v_reuseFailAlloc_5418_, 1, v___x_5401_); +v___x_5403_ = v_reuseFailAlloc_5418_; +goto v_reusejp_5402_; +} +v_reusejp_5402_: +{ +uint8_t v___x_5404_; lean_object* v___x_5405_; lean_object* v___x_5406_; lean_object* v___x_5407_; lean_object* v___x_5408_; lean_object* v___x_5409_; lean_object* v_a_5410_; lean_object* v___x_5412_; uint8_t v_isShared_5413_; uint8_t v_isSharedCheck_5417_; +v___x_5404_ = lean_unbox(v_a_5393_); +lean_dec(v_a_5393_); +v___x_5405_ = l_Lean_MessageData_ofConstName(v_name_5396_, v___x_5404_); +v___x_5406_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5406_, 0, v___x_5403_); +lean_ctor_set(v___x_5406_, 1, v___x_5405_); +v___x_5407_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__7); +v___x_5408_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5408_, 0, v___x_5406_); +lean_ctor_set(v___x_5408_, 1, v___x_5407_); +v___x_5409_ = l_Lean_throwError___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getFieldOrigin_spec__1___redArg(v___x_5408_, v___y_5174_, v___y_5175_, v___y_5176_, v___y_5177_); +v_a_5410_ = lean_ctor_get(v___x_5409_, 0); +v_isSharedCheck_5417_ = !lean_is_exclusive(v___x_5409_); +if (v_isSharedCheck_5417_ == 0) +{ +v___x_5412_ = v___x_5409_; +v_isShared_5413_ = v_isSharedCheck_5417_; +goto v_resetjp_5411_; +} +else +{ +lean_inc(v_a_5410_); +lean_dec(v___x_5409_); +v___x_5412_ = lean_box(0); +v_isShared_5413_ = v_isSharedCheck_5417_; +goto v_resetjp_5411_; +} +v_resetjp_5411_: +{ +lean_object* v___x_5415_; +if (v_isShared_5413_ == 0) +{ +v___x_5415_ = v___x_5412_; +goto v_reusejp_5414_; +} +else +{ +lean_object* v_reuseFailAlloc_5416_; +v_reuseFailAlloc_5416_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5416_, 0, v_a_5410_); +v___x_5415_ = v_reuseFailAlloc_5416_; +goto v_reusejp_5414_; +} +v_reusejp_5414_: +{ +return v___x_5415_; +} +} +} +} +} +else +{ +lean_dec(v_a_5393_); +lean_del_object(v___x_5336_); +lean_del_object(v___x_5332_); +v___y_5340_ = v___y_5174_; +v___y_5341_ = v___y_5175_; +v___y_5342_ = v___y_5176_; +v___y_5343_ = v___y_5177_; +goto v___jp_5339_; +} +} +else +{ +lean_object* v_a_5420_; lean_object* v___x_5422_; uint8_t v_isShared_5423_; uint8_t v_isSharedCheck_5427_; +lean_del_object(v___x_5336_); +lean_del_object(v___x_5332_); +lean_dec(v_fst_5330_); +lean_dec_ref(v_val_5323_); +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +lean_dec_ref(v_expectedType_5165_); +v_a_5420_ = lean_ctor_get(v___x_5392_, 0); +v_isSharedCheck_5427_ = !lean_is_exclusive(v___x_5392_); +if (v_isSharedCheck_5427_ == 0) +{ +v___x_5422_ = v___x_5392_; +v_isShared_5423_ = v_isSharedCheck_5427_; +goto v_resetjp_5421_; +} +else +{ +lean_inc(v_a_5420_); +lean_dec(v___x_5392_); +v___x_5422_ = lean_box(0); +v_isShared_5423_ = v_isSharedCheck_5427_; +goto v_resetjp_5421_; +} +v_resetjp_5421_: +{ +lean_object* v___x_5425_; +if (v_isShared_5423_ == 0) +{ +v___x_5425_ = v___x_5422_; +goto v_reusejp_5424_; +} +else +{ +lean_object* v_reuseFailAlloc_5426_; +v_reuseFailAlloc_5426_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5426_, 0, v_a_5420_); +v___x_5425_ = v_reuseFailAlloc_5426_; +goto v_reusejp_5424_; +} +v_reusejp_5424_: +{ +return v___x_5425_; +} +} +} +} +v___jp_5339_: +{ +lean_object* v_numParams_5344_; lean_object* v___x_5345_; lean_object* v___x_5346_; +v_numParams_5344_ = lean_ctor_get(v_val_5323_, 3); +lean_inc(v_numParams_5344_); +lean_dec_ref(v_val_5323_); +v___x_5345_ = lean_box(0); +v___x_5346_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(v___x_5338_, v_fst_5330_, v_x_5172_, v___x_5166_, v_compile_5167_, v_logCompileErrors_5168_, v_isMeta_5169_, v_val_5170_, v_expectedType_5165_, v_numParams_5344_, v___x_5345_, v___y_5340_, v___y_5341_, v___y_5342_, v___y_5343_); +lean_dec_ref(v_x_5172_); +if (lean_obj_tag(v___x_5346_) == 0) +{ +size_t v_sz_5347_; size_t v___x_5348_; lean_object* v___x_5349_; +lean_dec_ref(v___x_5346_); +v_sz_5347_ = lean_array_size(v_fst_5330_); +v___x_5348_ = ((size_t)0ULL); +v___x_5349_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Meta_wrapInstance_spec__5(v_sz_5347_, v___x_5348_, v_fst_5330_, v___y_5340_, v___y_5341_, v___y_5342_, v___y_5343_); +if (lean_obj_tag(v___x_5349_) == 0) +{ +lean_object* v_a_5350_; lean_object* v___x_5352_; uint8_t v_isShared_5353_; uint8_t v_isSharedCheck_5358_; +v_a_5350_ = lean_ctor_get(v___x_5349_, 0); +v_isSharedCheck_5358_ = !lean_is_exclusive(v___x_5349_); +if (v_isSharedCheck_5358_ == 0) +{ +v___x_5352_ = v___x_5349_; +v_isShared_5353_ = v_isSharedCheck_5358_; +goto v_resetjp_5351_; +} +else +{ +lean_inc(v_a_5350_); +lean_dec(v___x_5349_); +v___x_5352_ = lean_box(0); +v_isShared_5353_ = v_isSharedCheck_5358_; +goto v_resetjp_5351_; +} +v_resetjp_5351_: +{ +lean_object* v___x_5354_; lean_object* v___x_5356_; +v___x_5354_ = l_Lean_mkAppN(v_x_5171_, v_a_5350_); +lean_dec(v_a_5350_); +if (v_isShared_5353_ == 0) +{ +lean_ctor_set(v___x_5352_, 0, v___x_5354_); +v___x_5356_ = v___x_5352_; +goto v_reusejp_5355_; +} +else +{ +lean_object* v_reuseFailAlloc_5357_; +v_reuseFailAlloc_5357_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5357_, 0, v___x_5354_); +v___x_5356_ = v_reuseFailAlloc_5357_; +goto v_reusejp_5355_; +} +v_reusejp_5355_: +{ +return v___x_5356_; +} +} +} +else +{ +lean_object* v_a_5359_; lean_object* v___x_5361_; uint8_t v_isShared_5362_; uint8_t v_isSharedCheck_5366_; +lean_dec_ref(v_x_5171_); +v_a_5359_ = lean_ctor_get(v___x_5349_, 0); +v_isSharedCheck_5366_ = !lean_is_exclusive(v___x_5349_); +if (v_isSharedCheck_5366_ == 0) +{ +v___x_5361_ = v___x_5349_; +v_isShared_5362_ = v_isSharedCheck_5366_; +goto v_resetjp_5360_; +} +else +{ +lean_inc(v_a_5359_); +lean_dec(v___x_5349_); +v___x_5361_ = lean_box(0); +v_isShared_5362_ = v_isSharedCheck_5366_; +goto v_resetjp_5360_; +} +v_resetjp_5360_: +{ +lean_object* v___x_5364_; +if (v_isShared_5362_ == 0) +{ +v___x_5364_ = v___x_5361_; +goto v_reusejp_5363_; +} +else +{ +lean_object* v_reuseFailAlloc_5365_; +v_reuseFailAlloc_5365_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5365_, 0, v_a_5359_); +v___x_5364_ = v_reuseFailAlloc_5365_; +goto v_reusejp_5363_; +} +v_reusejp_5363_: +{ +return v___x_5364_; +} +} +} +} +else +{ +lean_object* v_a_5367_; lean_object* v___x_5369_; uint8_t v_isShared_5370_; uint8_t v_isSharedCheck_5374_; +lean_dec(v_fst_5330_); +lean_dec_ref(v_x_5171_); +v_a_5367_ = lean_ctor_get(v___x_5346_, 0); +v_isSharedCheck_5374_ = !lean_is_exclusive(v___x_5346_); +if (v_isSharedCheck_5374_ == 0) +{ +v___x_5369_ = v___x_5346_; +v_isShared_5370_ = v_isSharedCheck_5374_; +goto v_resetjp_5368_; +} +else +{ +lean_inc(v_a_5367_); +lean_dec(v___x_5346_); +v___x_5369_ = lean_box(0); +v_isShared_5370_ = v_isSharedCheck_5374_; +goto v_resetjp_5368_; +} +v_resetjp_5368_: +{ +lean_object* v___x_5372_; +if (v_isShared_5370_ == 0) +{ +v___x_5372_ = v___x_5369_; +goto v_reusejp_5371_; +} +else +{ +lean_object* v_reuseFailAlloc_5373_; +v_reuseFailAlloc_5373_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5373_, 0, v_a_5367_); +v___x_5372_ = v_reuseFailAlloc_5373_; +goto v_reusejp_5371_; +} +v_reusejp_5371_: +{ +return v___x_5372_; +} +} +} +} +} +} +} +else +{ +lean_object* v_a_5431_; lean_object* v___x_5433_; uint8_t v_isShared_5434_; uint8_t v_isSharedCheck_5438_; +lean_dec_ref(v_val_5323_); +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +lean_dec_ref(v_expectedType_5165_); +v_a_5431_ = lean_ctor_get(v___x_5327_, 0); +v_isSharedCheck_5438_ = !lean_is_exclusive(v___x_5327_); +if (v_isSharedCheck_5438_ == 0) +{ +v___x_5433_ = v___x_5327_; +v_isShared_5434_ = v_isSharedCheck_5438_; +goto v_resetjp_5432_; +} +else +{ +lean_inc(v_a_5431_); +lean_dec(v___x_5327_); +v___x_5433_ = lean_box(0); +v_isShared_5434_ = v_isSharedCheck_5438_; +goto v_resetjp_5432_; +} +v_resetjp_5432_: +{ +lean_object* v___x_5436_; +if (v_isShared_5434_ == 0) +{ +v___x_5436_ = v___x_5433_; +goto v_reusejp_5435_; +} +else +{ +lean_object* v_reuseFailAlloc_5437_; +v_reuseFailAlloc_5437_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5437_, 0, v_a_5431_); +v___x_5436_ = v_reuseFailAlloc_5437_; +goto v_reusejp_5435_; +} +v_reusejp_5435_: +{ +return v___x_5436_; +} +} +} +} +else +{ +lean_dec_ref(v_val_5323_); +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +lean_dec_ref(v_expectedType_5165_); +return v___x_5324_; +} +} +else +{ +lean_dec(v_a_5322_); +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +v___y_5298_ = v___y_5174_; +v___y_5299_ = v___y_5175_; +v___y_5300_ = v___y_5176_; +v___y_5301_ = v___y_5177_; +goto v___jp_5297_; +} +} +else +{ +lean_object* v_a_5439_; lean_object* v___x_5441_; uint8_t v_isShared_5442_; uint8_t v_isSharedCheck_5446_; +lean_dec_ref(v_x_5172_); +lean_dec_ref(v_x_5171_); +lean_dec(v_val_5170_); +lean_dec_ref(v_expectedType_5165_); +lean_dec_ref(v_inst_5164_); +v_a_5439_ = lean_ctor_get(v___x_5321_, 0); +v_isSharedCheck_5446_ = !lean_is_exclusive(v___x_5321_); +if (v_isSharedCheck_5446_ == 0) +{ +v___x_5441_ = v___x_5321_; +v_isShared_5442_ = v_isSharedCheck_5446_; +goto v_resetjp_5440_; +} +else +{ +lean_inc(v_a_5439_); +lean_dec(v___x_5321_); +v___x_5441_ = lean_box(0); +v_isShared_5442_ = v_isSharedCheck_5446_; +goto v_resetjp_5440_; +} +v_resetjp_5440_: +{ +lean_object* v___x_5444_; +if (v_isShared_5442_ == 0) +{ +v___x_5444_ = v___x_5441_; +goto v_reusejp_5443_; +} +else +{ +lean_object* v_reuseFailAlloc_5445_; +v_reuseFailAlloc_5445_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5445_, 0, v_a_5439_); +v___x_5444_ = v_reuseFailAlloc_5445_; +goto v_reusejp_5443_; +} +v_reusejp_5443_: +{ +return v___x_5444_; +} +} +} +} +v___jp_5297_: +{ +lean_object* v_options_5302_; uint8_t v_hasTrace_5303_; +v_options_5302_ = lean_ctor_get(v___y_5300_, 2); +v_hasTrace_5303_ = lean_ctor_get_uint8(v_options_5302_, sizeof(void*)*1); +if (v_hasTrace_5303_ == 0) +{ +v___y_5219_ = v___y_5298_; +v___y_5220_ = v___y_5299_; +v___y_5221_ = v___y_5300_; +v_options_5222_ = v_options_5302_; +v___y_5223_ = v___y_5301_; +goto v___jp_5218_; +} +else +{ +lean_object* v_inheritedTraceOptions_5304_; lean_object* v___x_5305_; uint8_t v___x_5306_; +v_inheritedTraceOptions_5304_ = lean_ctor_get(v___y_5300_, 13); +v___x_5305_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_5306_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5304_, v_options_5302_, v___x_5305_); +if (v___x_5306_ == 0) +{ +v___y_5219_ = v___y_5298_; +v___y_5220_ = v___y_5299_; +v___y_5221_ = v___y_5300_; +v_options_5222_ = v_options_5302_; +v___y_5223_ = v___y_5301_; +goto v___jp_5218_; +} +else +{ +lean_object* v___x_5307_; lean_object* v___x_5308_; lean_object* v___x_5309_; lean_object* v___x_5310_; +v___x_5307_ = lean_obj_once(&l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1, &l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1_once, _init_l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___closed__1); +lean_inc_ref(v_inst_5164_); +v___x_5308_ = l_Lean_MessageData_ofExpr(v_inst_5164_); +v___x_5309_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5309_, 0, v___x_5307_); +lean_ctor_set(v___x_5309_, 1, v___x_5308_); +v___x_5310_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_5296_, v___x_5309_, v___y_5298_, v___y_5299_, v___y_5300_, v___y_5301_); +if (lean_obj_tag(v___x_5310_) == 0) +{ +lean_dec_ref(v___x_5310_); +v___y_5219_ = v___y_5298_; +v___y_5220_ = v___y_5299_; +v___y_5221_ = v___y_5300_; +v_options_5222_ = v_options_5302_; +v___y_5223_ = v___y_5301_; +goto v___jp_5218_; +} +else +{ +lean_object* v_a_5311_; lean_object* v___x_5313_; uint8_t v_isShared_5314_; uint8_t v_isSharedCheck_5318_; +lean_dec_ref(v_expectedType_5165_); +lean_dec_ref(v_inst_5164_); +v_a_5311_ = lean_ctor_get(v___x_5310_, 0); +v_isSharedCheck_5318_ = !lean_is_exclusive(v___x_5310_); +if (v_isSharedCheck_5318_ == 0) +{ +v___x_5313_ = v___x_5310_; +v_isShared_5314_ = v_isSharedCheck_5318_; +goto v_resetjp_5312_; +} +else +{ +lean_inc(v_a_5311_); +lean_dec(v___x_5310_); +v___x_5313_ = lean_box(0); +v_isShared_5314_ = v_isSharedCheck_5318_; +goto v_resetjp_5312_; +} +v_resetjp_5312_: +{ +lean_object* v___x_5316_; +if (v_isShared_5314_ == 0) +{ +v___x_5316_ = v___x_5313_; +goto v_reusejp_5315_; +} +else +{ +lean_object* v_reuseFailAlloc_5317_; +v_reuseFailAlloc_5317_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5317_, 0, v_a_5311_); +v___x_5316_ = v_reuseFailAlloc_5317_; +goto v_reusejp_5315_; +} +v_reusejp_5315_: +{ +return v___x_5316_; +} +} +} +} +} +} +} +v___jp_5179_: +{ +lean_object* v___x_5184_; +v___x_5184_ = l_Lean_enableRealizationsForConst(v___y_5181_, v___y_5182_, v___y_5183_); +if (lean_obj_tag(v___x_5184_) == 0) +{ +lean_object* v___x_5186_; uint8_t v_isShared_5187_; uint8_t v_isSharedCheck_5191_; +v_isSharedCheck_5191_ = !lean_is_exclusive(v___x_5184_); +if (v_isSharedCheck_5191_ == 0) +{ +lean_object* v_unused_5192_; +v_unused_5192_ = lean_ctor_get(v___x_5184_, 0); +lean_dec(v_unused_5192_); +v___x_5186_ = v___x_5184_; +v_isShared_5187_ = v_isSharedCheck_5191_; +goto v_resetjp_5185_; +} +else +{ +lean_dec(v___x_5184_); +v___x_5186_ = lean_box(0); +v_isShared_5187_ = v_isSharedCheck_5191_; +goto v_resetjp_5185_; +} +v_resetjp_5185_: +{ +lean_object* v___x_5189_; +if (v_isShared_5187_ == 0) +{ +lean_ctor_set(v___x_5186_, 0, v___y_5180_); +v___x_5189_ = v___x_5186_; +goto v_reusejp_5188_; +} +else +{ +lean_object* v_reuseFailAlloc_5190_; +v_reuseFailAlloc_5190_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5190_, 0, v___y_5180_); +v___x_5189_ = v_reuseFailAlloc_5190_; +goto v_reusejp_5188_; +} +v_reusejp_5188_: +{ +return v___x_5189_; +} +} +} +else +{ +lean_object* v_a_5193_; lean_object* v___x_5195_; uint8_t v_isShared_5196_; uint8_t v_isSharedCheck_5200_; +lean_dec_ref(v___y_5180_); +v_a_5193_ = lean_ctor_get(v___x_5184_, 0); +v_isSharedCheck_5200_ = !lean_is_exclusive(v___x_5184_); +if (v_isSharedCheck_5200_ == 0) +{ +v___x_5195_ = v___x_5184_; +v_isShared_5196_ = v_isSharedCheck_5200_; +goto v_resetjp_5194_; +} +else +{ +lean_inc(v_a_5193_); +lean_dec(v___x_5184_); +v___x_5195_ = lean_box(0); +v_isShared_5196_ = v_isSharedCheck_5200_; +goto v_resetjp_5194_; +} +v_resetjp_5194_: +{ +lean_object* v___x_5198_; +if (v_isShared_5196_ == 0) +{ +v___x_5198_ = v___x_5195_; +goto v_reusejp_5197_; +} +else +{ +lean_object* v_reuseFailAlloc_5199_; +v_reuseFailAlloc_5199_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5199_, 0, v_a_5193_); +v___x_5198_ = v_reuseFailAlloc_5199_; +goto v_reusejp_5197_; +} +v_reusejp_5197_: +{ +return v___x_5198_; +} +} +} +} +v___jp_5201_: +{ +if (v_compile_5167_ == 0) +{ +v___y_5180_ = v___y_5202_; +v___y_5181_ = v___y_5203_; +v___y_5182_ = v___y_5204_; +v___y_5183_ = v___y_5205_; +goto v___jp_5179_; +} +else +{ +lean_object* v___x_5206_; lean_object* v___x_5207_; lean_object* v___x_5208_; lean_object* v___x_5209_; +v___x_5206_ = lean_unsigned_to_nat(1u); +v___x_5207_ = lean_mk_empty_array_with_capacity(v___x_5206_); +lean_inc(v___y_5203_); +v___x_5208_ = lean_array_push(v___x_5207_, v___y_5203_); +v___x_5209_ = l_Lean_compileDecls(v___x_5208_, v_logCompileErrors_5168_, v___y_5204_, v___y_5205_); +if (lean_obj_tag(v___x_5209_) == 0) +{ +lean_dec_ref(v___x_5209_); +v___y_5180_ = v___y_5202_; +v___y_5181_ = v___y_5203_; +v___y_5182_ = v___y_5204_; +v___y_5183_ = v___y_5205_; +goto v___jp_5179_; +} +else +{ +lean_object* v_a_5210_; lean_object* v___x_5212_; uint8_t v_isShared_5213_; uint8_t v_isSharedCheck_5217_; +lean_dec(v___y_5203_); +lean_dec_ref(v___y_5202_); +v_a_5210_ = lean_ctor_get(v___x_5209_, 0); +v_isSharedCheck_5217_ = !lean_is_exclusive(v___x_5209_); +if (v_isSharedCheck_5217_ == 0) +{ +v___x_5212_ = v___x_5209_; +v_isShared_5213_ = v_isSharedCheck_5217_; +goto v_resetjp_5211_; +} +else +{ +lean_inc(v_a_5210_); +lean_dec(v___x_5209_); +v___x_5212_ = lean_box(0); +v_isShared_5213_ = v_isSharedCheck_5217_; +goto v_resetjp_5211_; +} +v_resetjp_5211_: +{ +lean_object* v___x_5215_; +if (v_isShared_5213_ == 0) +{ +v___x_5215_ = v___x_5212_; +goto v_reusejp_5214_; +} +else +{ +lean_object* v_reuseFailAlloc_5216_; +v_reuseFailAlloc_5216_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5216_, 0, v_a_5210_); +v___x_5215_ = v_reuseFailAlloc_5216_; +goto v_reusejp_5214_; +} +v_reusejp_5214_: +{ +return v___x_5215_; +} +} +} +} +} +v___jp_5218_: +{ +lean_object* v___x_5224_; uint8_t v___x_5225_; +v___x_5224_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_5225_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5222_, v___x_5224_); +if (v___x_5225_ == 0) +{ +lean_object* v___x_5226_; +lean_dec_ref(v_expectedType_5165_); +v___x_5226_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5226_, 0, v_inst_5164_); +return v___x_5226_; +} +else +{ +lean_object* v___x_5227_; +lean_inc(v___y_5223_); +lean_inc_ref(v___y_5221_); +lean_inc(v___y_5220_); +lean_inc_ref(v___y_5219_); +lean_inc_ref(v_inst_5164_); +v___x_5227_ = lean_infer_type(v_inst_5164_, v___y_5219_, v___y_5220_, v___y_5221_, v___y_5223_); +if (lean_obj_tag(v___x_5227_) == 0) +{ +lean_object* v_a_5228_; lean_object* v___x_5229_; +v_a_5228_ = lean_ctor_get(v___x_5227_, 0); +lean_inc(v_a_5228_); +lean_dec_ref(v___x_5227_); +lean_inc_ref(v_expectedType_5165_); +v___x_5229_ = l_Lean_Meta_isExprDefEq(v_expectedType_5165_, v_a_5228_, v___y_5219_, v___y_5220_, v___y_5221_, v___y_5223_); +if (lean_obj_tag(v___x_5229_) == 0) +{ +lean_object* v_a_5230_; lean_object* v___x_5232_; uint8_t v_isShared_5233_; uint8_t v_isSharedCheck_5281_; +v_a_5230_ = lean_ctor_get(v___x_5229_, 0); +v_isSharedCheck_5281_ = !lean_is_exclusive(v___x_5229_); +if (v_isSharedCheck_5281_ == 0) +{ +v___x_5232_ = v___x_5229_; +v_isShared_5233_ = v_isSharedCheck_5281_; +goto v_resetjp_5231_; +} +else +{ +lean_inc(v_a_5230_); +lean_dec(v___x_5229_); +v___x_5232_ = lean_box(0); +v_isShared_5233_ = v_isSharedCheck_5281_; +goto v_resetjp_5231_; +} +v_resetjp_5231_: +{ +uint8_t v___x_5234_; +v___x_5234_ = lean_unbox(v_a_5230_); +if (v___x_5234_ == 0) +{ +lean_object* v___x_5235_; lean_object* v___x_5236_; lean_object* v_a_5237_; uint8_t v___x_5238_; uint8_t v___x_5239_; lean_object* v___x_5240_; +lean_del_object(v___x_5232_); +v___x_5235_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__1)); +v___x_5236_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_5235_, v___y_5223_); +v_a_5237_ = lean_ctor_get(v___x_5236_, 0); +lean_inc_n(v_a_5237_, 2); +lean_dec_ref(v___x_5236_); +v___x_5238_ = lean_unbox(v_a_5230_); +v___x_5239_ = lean_unbox(v_a_5230_); +lean_dec(v_a_5230_); +v___x_5240_ = l_Lean_Meta_mkAuxDefinition(v_a_5237_, v_expectedType_5165_, v_inst_5164_, v___x_5238_, v___x_5239_, v___x_5166_, v___y_5219_, v___y_5220_, v___y_5221_, v___y_5223_); +if (lean_obj_tag(v___x_5240_) == 0) +{ +if (v_isMeta_5169_ == 0) +{ +lean_object* v_a_5241_; +v_a_5241_ = lean_ctor_get(v___x_5240_, 0); +lean_inc(v_a_5241_); +lean_dec_ref(v___x_5240_); +v___y_5202_ = v_a_5241_; +v___y_5203_ = v_a_5237_; +v___y_5204_ = v___y_5221_; +v___y_5205_ = v___y_5223_; +goto v___jp_5201_; +} +else +{ +lean_object* v_a_5242_; lean_object* v___x_5243_; lean_object* v_env_5244_; lean_object* v_nextMacroScope_5245_; lean_object* v_ngen_5246_; lean_object* v_auxDeclNGen_5247_; lean_object* v_traceState_5248_; lean_object* v_messages_5249_; lean_object* v_infoState_5250_; lean_object* v_snapshotTasks_5251_; lean_object* v___x_5253_; uint8_t v_isShared_5254_; uint8_t v_isSharedCheck_5276_; +v_a_5242_ = lean_ctor_get(v___x_5240_, 0); +lean_inc(v_a_5242_); +lean_dec_ref(v___x_5240_); +v___x_5243_ = lean_st_ref_take(v___y_5223_); +v_env_5244_ = lean_ctor_get(v___x_5243_, 0); +v_nextMacroScope_5245_ = lean_ctor_get(v___x_5243_, 1); +v_ngen_5246_ = lean_ctor_get(v___x_5243_, 2); +v_auxDeclNGen_5247_ = lean_ctor_get(v___x_5243_, 3); +v_traceState_5248_ = lean_ctor_get(v___x_5243_, 4); +v_messages_5249_ = lean_ctor_get(v___x_5243_, 6); +v_infoState_5250_ = lean_ctor_get(v___x_5243_, 7); +v_snapshotTasks_5251_ = lean_ctor_get(v___x_5243_, 8); +v_isSharedCheck_5276_ = !lean_is_exclusive(v___x_5243_); +if (v_isSharedCheck_5276_ == 0) +{ +lean_object* v_unused_5277_; +v_unused_5277_ = lean_ctor_get(v___x_5243_, 5); +lean_dec(v_unused_5277_); +v___x_5253_ = v___x_5243_; +v_isShared_5254_ = v_isSharedCheck_5276_; +goto v_resetjp_5252_; +} +else +{ +lean_inc(v_snapshotTasks_5251_); +lean_inc(v_infoState_5250_); +lean_inc(v_messages_5249_); +lean_inc(v_traceState_5248_); +lean_inc(v_auxDeclNGen_5247_); +lean_inc(v_ngen_5246_); +lean_inc(v_nextMacroScope_5245_); +lean_inc(v_env_5244_); +lean_dec(v___x_5243_); +v___x_5253_ = lean_box(0); +v_isShared_5254_ = v_isSharedCheck_5276_; +goto v_resetjp_5252_; +} +v_resetjp_5252_: +{ +lean_object* v___x_5255_; lean_object* v___x_5256_; lean_object* v___x_5258_; +lean_inc(v_a_5237_); +v___x_5255_ = l_Lean_markMeta(v_env_5244_, v_a_5237_); +v___x_5256_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__4); +if (v_isShared_5254_ == 0) +{ +lean_ctor_set(v___x_5253_, 5, v___x_5256_); +lean_ctor_set(v___x_5253_, 0, v___x_5255_); +v___x_5258_ = v___x_5253_; +goto v_reusejp_5257_; +} +else +{ +lean_object* v_reuseFailAlloc_5275_; +v_reuseFailAlloc_5275_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v_reuseFailAlloc_5275_, 0, v___x_5255_); +lean_ctor_set(v_reuseFailAlloc_5275_, 1, v_nextMacroScope_5245_); +lean_ctor_set(v_reuseFailAlloc_5275_, 2, v_ngen_5246_); +lean_ctor_set(v_reuseFailAlloc_5275_, 3, v_auxDeclNGen_5247_); +lean_ctor_set(v_reuseFailAlloc_5275_, 4, v_traceState_5248_); +lean_ctor_set(v_reuseFailAlloc_5275_, 5, v___x_5256_); +lean_ctor_set(v_reuseFailAlloc_5275_, 6, v_messages_5249_); +lean_ctor_set(v_reuseFailAlloc_5275_, 7, v_infoState_5250_); +lean_ctor_set(v_reuseFailAlloc_5275_, 8, v_snapshotTasks_5251_); +v___x_5258_ = v_reuseFailAlloc_5275_; +goto v_reusejp_5257_; +} +v_reusejp_5257_: +{ +lean_object* v___x_5259_; lean_object* v___x_5260_; lean_object* v_mctx_5261_; lean_object* v_zetaDeltaFVarIds_5262_; lean_object* v_postponed_5263_; lean_object* v_diag_5264_; lean_object* v___x_5266_; uint8_t v_isShared_5267_; uint8_t v_isSharedCheck_5273_; +v___x_5259_ = lean_st_ref_set(v___y_5223_, v___x_5258_); +v___x_5260_ = lean_st_ref_take(v___y_5220_); +v_mctx_5261_ = lean_ctor_get(v___x_5260_, 0); +v_zetaDeltaFVarIds_5262_ = lean_ctor_get(v___x_5260_, 2); +v_postponed_5263_ = lean_ctor_get(v___x_5260_, 3); +v_diag_5264_ = lean_ctor_get(v___x_5260_, 4); +v_isSharedCheck_5273_ = !lean_is_exclusive(v___x_5260_); if (v_isSharedCheck_5273_ == 0) { -v___x_5268_ = v___x_5257_; -v_isShared_5269_ = v_isSharedCheck_5273_; -goto v_resetjp_5267_; +lean_object* v_unused_5274_; +v_unused_5274_ = lean_ctor_get(v___x_5260_, 1); +lean_dec(v_unused_5274_); +v___x_5266_ = v___x_5260_; +v_isShared_5267_ = v_isSharedCheck_5273_; +goto v_resetjp_5265_; } else { -lean_inc(v_a_5266_); -lean_dec(v___x_5257_); -v___x_5268_ = lean_box(0); -v_isShared_5269_ = v_isSharedCheck_5273_; -goto v_resetjp_5267_; +lean_inc(v_diag_5264_); +lean_inc(v_postponed_5263_); +lean_inc(v_zetaDeltaFVarIds_5262_); +lean_inc(v_mctx_5261_); +lean_dec(v___x_5260_); +v___x_5266_ = lean_box(0); +v_isShared_5267_ = v_isSharedCheck_5273_; +goto v_resetjp_5265_; } -v_resetjp_5267_: +v_resetjp_5265_: { -lean_object* v___x_5271_; -if (v_isShared_5269_ == 0) +lean_object* v___x_5268_; lean_object* v___x_5270_; +v___x_5268_ = lean_obj_once(&l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5, &l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5_once, _init_l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__1___closed__5); +if (v_isShared_5267_ == 0) { -v___x_5271_ = v___x_5268_; -goto v_reusejp_5270_; +lean_ctor_set(v___x_5266_, 1, v___x_5268_); +v___x_5270_ = v___x_5266_; +goto v_reusejp_5269_; } else { lean_object* v_reuseFailAlloc_5272_; -v_reuseFailAlloc_5272_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5272_, 0, v_a_5266_); -v___x_5271_ = v_reuseFailAlloc_5272_; -goto v_reusejp_5270_; +v_reuseFailAlloc_5272_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v_reuseFailAlloc_5272_, 0, v_mctx_5261_); +lean_ctor_set(v_reuseFailAlloc_5272_, 1, v___x_5268_); +lean_ctor_set(v_reuseFailAlloc_5272_, 2, v_zetaDeltaFVarIds_5262_); +lean_ctor_set(v_reuseFailAlloc_5272_, 3, v_postponed_5263_); +lean_ctor_set(v_reuseFailAlloc_5272_, 4, v_diag_5264_); +v___x_5270_ = v_reuseFailAlloc_5272_; +goto v_reusejp_5269_; } -v_reusejp_5270_: +v_reusejp_5269_: { -return v___x_5271_; -} -} -} -} -v___jp_5274_: -{ -if (v_compile_5240_ == 0) -{ -v___y_5253_ = v___y_5275_; -v___y_5254_ = v___y_5276_; -v___y_5255_ = v___y_5277_; -v___y_5256_ = v___y_5278_; -goto v___jp_5252_; -} -else -{ -lean_object* v___x_5279_; lean_object* v___x_5280_; lean_object* v___x_5281_; lean_object* v___x_5282_; -v___x_5279_ = lean_unsigned_to_nat(1u); -v___x_5280_ = lean_mk_empty_array_with_capacity(v___x_5279_); -lean_inc(v___y_5275_); -v___x_5281_ = lean_array_push(v___x_5280_, v___y_5275_); -v___x_5282_ = l_Lean_compileDecls(v___x_5281_, v_logCompileErrors_5241_, v___y_5277_, v___y_5278_); -if (lean_obj_tag(v___x_5282_) == 0) -{ -lean_dec_ref(v___x_5282_); -v___y_5253_ = v___y_5275_; -v___y_5254_ = v___y_5276_; -v___y_5255_ = v___y_5277_; -v___y_5256_ = v___y_5278_; -goto v___jp_5252_; -} -else -{ -lean_object* v_a_5283_; lean_object* v___x_5285_; uint8_t v_isShared_5286_; uint8_t v_isSharedCheck_5290_; -lean_dec_ref(v___y_5276_); -lean_dec(v___y_5275_); -v_a_5283_ = lean_ctor_get(v___x_5282_, 0); -v_isSharedCheck_5290_ = !lean_is_exclusive(v___x_5282_); -if (v_isSharedCheck_5290_ == 0) -{ -v___x_5285_ = v___x_5282_; -v_isShared_5286_ = v_isSharedCheck_5290_; -goto v_resetjp_5284_; -} -else -{ -lean_inc(v_a_5283_); -lean_dec(v___x_5282_); -v___x_5285_ = lean_box(0); -v_isShared_5286_ = v_isSharedCheck_5290_; -goto v_resetjp_5284_; -} -v_resetjp_5284_: -{ -lean_object* v___x_5288_; -if (v_isShared_5286_ == 0) -{ -v___x_5288_ = v___x_5285_; -goto v_reusejp_5287_; -} -else -{ -lean_object* v_reuseFailAlloc_5289_; -v_reuseFailAlloc_5289_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5289_, 0, v_a_5283_); -v___x_5288_ = v_reuseFailAlloc_5289_; -goto v_reusejp_5287_; -} -v_reusejp_5287_: -{ -return v___x_5288_; -} -} -} -} -} -v___jp_5291_: -{ -lean_object* v___x_5297_; uint8_t v___x_5298_; -v___x_5297_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_5298_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5295_, v___x_5297_); -if (v___x_5298_ == 0) -{ -lean_object* v___x_5299_; -lean_dec_ref(v_expectedType_5238_); -v___x_5299_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_5299_, 0, v_inst_5237_); -return v___x_5299_; -} -else -{ -lean_object* v___x_5300_; -lean_inc(v___y_5296_); -lean_inc_ref(v___y_5294_); -lean_inc(v___y_5293_); -lean_inc_ref(v___y_5292_); -lean_inc_ref(v_inst_5237_); -v___x_5300_ = lean_infer_type(v_inst_5237_, v___y_5292_, v___y_5293_, v___y_5294_, v___y_5296_); -if (lean_obj_tag(v___x_5300_) == 0) -{ -lean_object* v_a_5301_; lean_object* v___x_5302_; -v_a_5301_ = lean_ctor_get(v___x_5300_, 0); -lean_inc(v_a_5301_); -lean_dec_ref(v___x_5300_); -lean_inc_ref(v_expectedType_5238_); -v___x_5302_ = l_Lean_Meta_isExprDefEq(v_expectedType_5238_, v_a_5301_, v___y_5292_, v___y_5293_, v___y_5294_, v___y_5296_); -if (lean_obj_tag(v___x_5302_) == 0) -{ -lean_object* v_a_5303_; lean_object* v___x_5305_; uint8_t v_isShared_5306_; uint8_t v_isSharedCheck_5355_; -v_a_5303_ = lean_ctor_get(v___x_5302_, 0); -v_isSharedCheck_5355_ = !lean_is_exclusive(v___x_5302_); -if (v_isSharedCheck_5355_ == 0) -{ -v___x_5305_ = v___x_5302_; -v_isShared_5306_ = v_isSharedCheck_5355_; -goto v_resetjp_5304_; -} -else -{ -lean_inc(v_a_5303_); -lean_dec(v___x_5302_); -v___x_5305_ = lean_box(0); -v_isShared_5306_ = v_isSharedCheck_5355_; -goto v_resetjp_5304_; -} -v_resetjp_5304_: -{ -uint8_t v___x_5307_; -v___x_5307_ = lean_unbox(v_a_5303_); -if (v___x_5307_ == 0) -{ -lean_object* v___x_5308_; lean_object* v___x_5309_; lean_object* v_a_5310_; uint8_t v___x_5311_; uint8_t v___x_5312_; lean_object* v___x_5313_; -lean_del_object(v___x_5305_); -v___x_5308_ = ((lean_object*)(l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__1___closed__1)); -v___x_5309_ = l_Lean_mkAuxDeclName___at___00Lean_Meta_wrapInstance_spec__1___redArg(v___x_5308_, v___y_5296_); -v_a_5310_ = lean_ctor_get(v___x_5309_, 0); -lean_inc_n(v_a_5310_, 2); -lean_dec_ref(v___x_5309_); -v___x_5311_ = lean_unbox(v_a_5303_); -v___x_5312_ = lean_unbox(v_a_5303_); -lean_dec(v_a_5303_); -v___x_5313_ = l_Lean_Meta_mkAuxDefinition(v_a_5310_, v_expectedType_5238_, v_inst_5237_, v___x_5311_, v___x_5312_, v___x_5239_, v___y_5292_, v___y_5293_, v___y_5294_, v___y_5296_); -if (lean_obj_tag(v___x_5313_) == 0) -{ -lean_object* v_a_5314_; uint8_t v___x_5315_; lean_object* v___x_5316_; -v_a_5314_ = lean_ctor_get(v___x_5313_, 0); -lean_inc(v_a_5314_); -lean_dec_ref(v___x_5313_); -v___x_5315_ = 3; -lean_inc(v_a_5310_); -v___x_5316_ = l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg(v_a_5310_, v___x_5315_, v___y_5293_, v___y_5296_); -lean_dec_ref(v___x_5316_); -if (v_isMeta_5242_ == 0) -{ -v___y_5275_ = v_a_5310_; -v___y_5276_ = v_a_5314_; -v___y_5277_ = v___y_5294_; -v___y_5278_ = v___y_5296_; -goto v___jp_5274_; -} -else -{ -lean_object* v___x_5317_; lean_object* v_env_5318_; lean_object* v_nextMacroScope_5319_; lean_object* v_ngen_5320_; lean_object* v_auxDeclNGen_5321_; lean_object* v_traceState_5322_; lean_object* v_messages_5323_; lean_object* v_infoState_5324_; lean_object* v_snapshotTasks_5325_; lean_object* v___x_5327_; uint8_t v_isShared_5328_; uint8_t v_isSharedCheck_5350_; -v___x_5317_ = lean_st_ref_take(v___y_5296_); -v_env_5318_ = lean_ctor_get(v___x_5317_, 0); -v_nextMacroScope_5319_ = lean_ctor_get(v___x_5317_, 1); -v_ngen_5320_ = lean_ctor_get(v___x_5317_, 2); -v_auxDeclNGen_5321_ = lean_ctor_get(v___x_5317_, 3); -v_traceState_5322_ = lean_ctor_get(v___x_5317_, 4); -v_messages_5323_ = lean_ctor_get(v___x_5317_, 6); -v_infoState_5324_ = lean_ctor_get(v___x_5317_, 7); -v_snapshotTasks_5325_ = lean_ctor_get(v___x_5317_, 8); -v_isSharedCheck_5350_ = !lean_is_exclusive(v___x_5317_); -if (v_isSharedCheck_5350_ == 0) -{ -lean_object* v_unused_5351_; -v_unused_5351_ = lean_ctor_get(v___x_5317_, 5); -lean_dec(v_unused_5351_); -v___x_5327_ = v___x_5317_; -v_isShared_5328_ = v_isSharedCheck_5350_; -goto v_resetjp_5326_; -} -else -{ -lean_inc(v_snapshotTasks_5325_); -lean_inc(v_infoState_5324_); -lean_inc(v_messages_5323_); -lean_inc(v_traceState_5322_); -lean_inc(v_auxDeclNGen_5321_); -lean_inc(v_ngen_5320_); -lean_inc(v_nextMacroScope_5319_); -lean_inc(v_env_5318_); -lean_dec(v___x_5317_); -v___x_5327_ = lean_box(0); -v_isShared_5328_ = v_isSharedCheck_5350_; -goto v_resetjp_5326_; -} -v_resetjp_5326_: -{ -lean_object* v___x_5329_; lean_object* v___x_5330_; lean_object* v___x_5332_; -lean_inc(v_a_5310_); -v___x_5329_ = l_Lean_markMeta(v_env_5318_, v_a_5310_); -v___x_5330_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__2); -if (v_isShared_5328_ == 0) -{ -lean_ctor_set(v___x_5327_, 5, v___x_5330_); -lean_ctor_set(v___x_5327_, 0, v___x_5329_); -v___x_5332_ = v___x_5327_; -goto v_reusejp_5331_; -} -else -{ -lean_object* v_reuseFailAlloc_5349_; -v_reuseFailAlloc_5349_ = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(v_reuseFailAlloc_5349_, 0, v___x_5329_); -lean_ctor_set(v_reuseFailAlloc_5349_, 1, v_nextMacroScope_5319_); -lean_ctor_set(v_reuseFailAlloc_5349_, 2, v_ngen_5320_); -lean_ctor_set(v_reuseFailAlloc_5349_, 3, v_auxDeclNGen_5321_); -lean_ctor_set(v_reuseFailAlloc_5349_, 4, v_traceState_5322_); -lean_ctor_set(v_reuseFailAlloc_5349_, 5, v___x_5330_); -lean_ctor_set(v_reuseFailAlloc_5349_, 6, v_messages_5323_); -lean_ctor_set(v_reuseFailAlloc_5349_, 7, v_infoState_5324_); -lean_ctor_set(v_reuseFailAlloc_5349_, 8, v_snapshotTasks_5325_); -v___x_5332_ = v_reuseFailAlloc_5349_; -goto v_reusejp_5331_; -} -v_reusejp_5331_: -{ -lean_object* v___x_5333_; lean_object* v___x_5334_; lean_object* v_mctx_5335_; lean_object* v_zetaDeltaFVarIds_5336_; lean_object* v_postponed_5337_; lean_object* v_diag_5338_; lean_object* v___x_5340_; uint8_t v_isShared_5341_; uint8_t v_isSharedCheck_5347_; -v___x_5333_ = lean_st_ref_set(v___y_5296_, v___x_5332_); -v___x_5334_ = lean_st_ref_take(v___y_5293_); -v_mctx_5335_ = lean_ctor_get(v___x_5334_, 0); -v_zetaDeltaFVarIds_5336_ = lean_ctor_get(v___x_5334_, 2); -v_postponed_5337_ = lean_ctor_get(v___x_5334_, 3); -v_diag_5338_ = lean_ctor_get(v___x_5334_, 4); -v_isSharedCheck_5347_ = !lean_is_exclusive(v___x_5334_); -if (v_isSharedCheck_5347_ == 0) -{ -lean_object* v_unused_5348_; -v_unused_5348_ = lean_ctor_get(v___x_5334_, 1); -lean_dec(v_unused_5348_); -v___x_5340_ = v___x_5334_; -v_isShared_5341_ = v_isSharedCheck_5347_; -goto v_resetjp_5339_; -} -else -{ -lean_inc(v_diag_5338_); -lean_inc(v_postponed_5337_); -lean_inc(v_zetaDeltaFVarIds_5336_); -lean_inc(v_mctx_5335_); -lean_dec(v___x_5334_); -v___x_5340_ = lean_box(0); -v_isShared_5341_ = v_isSharedCheck_5347_; -goto v_resetjp_5339_; -} -v_resetjp_5339_: -{ -lean_object* v___x_5342_; lean_object* v___x_5344_; -v___x_5342_ = lean_obj_once(&l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3, &l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3_once, _init_l_Lean_setReducibilityStatus___at___00Lean_Meta_wrapInstance_spec__2___redArg___closed__3); -if (v_isShared_5341_ == 0) -{ -lean_ctor_set(v___x_5340_, 1, v___x_5342_); -v___x_5344_ = v___x_5340_; -goto v_reusejp_5343_; -} -else -{ -lean_object* v_reuseFailAlloc_5346_; -v_reuseFailAlloc_5346_ = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(v_reuseFailAlloc_5346_, 0, v_mctx_5335_); -lean_ctor_set(v_reuseFailAlloc_5346_, 1, v___x_5342_); -lean_ctor_set(v_reuseFailAlloc_5346_, 2, v_zetaDeltaFVarIds_5336_); -lean_ctor_set(v_reuseFailAlloc_5346_, 3, v_postponed_5337_); -lean_ctor_set(v_reuseFailAlloc_5346_, 4, v_diag_5338_); -v___x_5344_ = v_reuseFailAlloc_5346_; -goto v_reusejp_5343_; -} -v_reusejp_5343_: -{ -lean_object* v___x_5345_; -v___x_5345_ = lean_st_ref_set(v___y_5293_, v___x_5344_); -v___y_5275_ = v_a_5310_; -v___y_5276_ = v_a_5314_; -v___y_5277_ = v___y_5294_; -v___y_5278_ = v___y_5296_; -goto v___jp_5274_; +lean_object* v___x_5271_; +v___x_5271_ = lean_st_ref_set(v___y_5220_, v___x_5270_); +v___y_5202_ = v_a_5242_; +v___y_5203_ = v_a_5237_; +v___y_5204_ = v___y_5221_; +v___y_5205_ = v___y_5223_; +goto v___jp_5201_; } } } @@ -21022,2159 +20845,2159 @@ goto v___jp_5274_; } else { -lean_dec(v_a_5310_); -return v___x_5313_; +lean_dec(v_a_5237_); +return v___x_5240_; } } else { -lean_object* v___x_5353_; -lean_dec(v_a_5303_); -lean_dec_ref(v_expectedType_5238_); -if (v_isShared_5306_ == 0) +lean_object* v___x_5279_; +lean_dec(v_a_5230_); +lean_dec_ref(v_expectedType_5165_); +if (v_isShared_5233_ == 0) { -lean_ctor_set(v___x_5305_, 0, v_inst_5237_); -v___x_5353_ = v___x_5305_; -goto v_reusejp_5352_; +lean_ctor_set(v___x_5232_, 0, v_inst_5164_); +v___x_5279_ = v___x_5232_; +goto v_reusejp_5278_; } else { -lean_object* v_reuseFailAlloc_5354_; -v_reuseFailAlloc_5354_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5354_, 0, v_inst_5237_); -v___x_5353_ = v_reuseFailAlloc_5354_; -goto v_reusejp_5352_; +lean_object* v_reuseFailAlloc_5280_; +v_reuseFailAlloc_5280_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5280_, 0, v_inst_5164_); +v___x_5279_ = v_reuseFailAlloc_5280_; +goto v_reusejp_5278_; } -v_reusejp_5352_: +v_reusejp_5278_: { -return v___x_5353_; +return v___x_5279_; } } } } else { -lean_object* v_a_5356_; lean_object* v___x_5358_; uint8_t v_isShared_5359_; uint8_t v_isSharedCheck_5363_; -lean_dec_ref(v_expectedType_5238_); -lean_dec_ref(v_inst_5237_); -v_a_5356_ = lean_ctor_get(v___x_5302_, 0); -v_isSharedCheck_5363_ = !lean_is_exclusive(v___x_5302_); -if (v_isSharedCheck_5363_ == 0) +lean_object* v_a_5282_; lean_object* v___x_5284_; uint8_t v_isShared_5285_; uint8_t v_isSharedCheck_5289_; +lean_dec_ref(v_expectedType_5165_); +lean_dec_ref(v_inst_5164_); +v_a_5282_ = lean_ctor_get(v___x_5229_, 0); +v_isSharedCheck_5289_ = !lean_is_exclusive(v___x_5229_); +if (v_isSharedCheck_5289_ == 0) { -v___x_5358_ = v___x_5302_; -v_isShared_5359_ = v_isSharedCheck_5363_; -goto v_resetjp_5357_; +v___x_5284_ = v___x_5229_; +v_isShared_5285_ = v_isSharedCheck_5289_; +goto v_resetjp_5283_; } else { -lean_inc(v_a_5356_); -lean_dec(v___x_5302_); -v___x_5358_ = lean_box(0); -v_isShared_5359_ = v_isSharedCheck_5363_; -goto v_resetjp_5357_; +lean_inc(v_a_5282_); +lean_dec(v___x_5229_); +v___x_5284_ = lean_box(0); +v_isShared_5285_ = v_isSharedCheck_5289_; +goto v_resetjp_5283_; } -v_resetjp_5357_: +v_resetjp_5283_: { -lean_object* v___x_5361_; -if (v_isShared_5359_ == 0) +lean_object* v___x_5287_; +if (v_isShared_5285_ == 0) { -v___x_5361_ = v___x_5358_; -goto v_reusejp_5360_; +v___x_5287_ = v___x_5284_; +goto v_reusejp_5286_; } else { -lean_object* v_reuseFailAlloc_5362_; -v_reuseFailAlloc_5362_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5362_, 0, v_a_5356_); -v___x_5361_ = v_reuseFailAlloc_5362_; -goto v_reusejp_5360_; +lean_object* v_reuseFailAlloc_5288_; +v_reuseFailAlloc_5288_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5288_, 0, v_a_5282_); +v___x_5287_ = v_reuseFailAlloc_5288_; +goto v_reusejp_5286_; } -v_reusejp_5360_: +v_reusejp_5286_: { -return v___x_5361_; +return v___x_5287_; } } } } else { -lean_dec_ref(v_expectedType_5238_); -lean_dec_ref(v_inst_5237_); -return v___x_5300_; +lean_dec_ref(v_expectedType_5165_); +lean_dec_ref(v_inst_5164_); +return v___x_5227_; } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2(lean_object* v_expectedType_5521_, lean_object* v_inst_5522_, uint8_t v___x_5523_, uint8_t v_compile_5524_, uint8_t v_logCompileErrors_5525_, uint8_t v_isMeta_5526_, lean_object* v_val_5527_, lean_object* v_____r_5528_, lean_object* v___y_5529_, lean_object* v___y_5530_, lean_object* v___y_5531_, lean_object* v___y_5532_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2(lean_object* v_expectedType_5447_, lean_object* v_inst_5448_, uint8_t v___x_5449_, uint8_t v_compile_5450_, uint8_t v_logCompileErrors_5451_, uint8_t v_isMeta_5452_, lean_object* v_val_5453_, lean_object* v_____r_5454_, lean_object* v___y_5455_, lean_object* v___y_5456_, lean_object* v___y_5457_, lean_object* v___y_5458_){ _start: { -lean_object* v___x_5534_; -lean_inc_ref(v_expectedType_5521_); -v___x_5534_ = l_Lean_Meta_isProp(v_expectedType_5521_, v___y_5529_, v___y_5530_, v___y_5531_, v___y_5532_); -if (lean_obj_tag(v___x_5534_) == 0) +lean_object* v___x_5460_; +lean_inc_ref(v_expectedType_5447_); +v___x_5460_ = l_Lean_Meta_isProp(v_expectedType_5447_, v___y_5455_, v___y_5456_, v___y_5457_, v___y_5458_); +if (lean_obj_tag(v___x_5460_) == 0) { -lean_object* v_a_5535_; lean_object* v___x_5537_; uint8_t v_isShared_5538_; uint8_t v_isSharedCheck_5556_; -v_a_5535_ = lean_ctor_get(v___x_5534_, 0); -v_isSharedCheck_5556_ = !lean_is_exclusive(v___x_5534_); -if (v_isSharedCheck_5556_ == 0) +lean_object* v_a_5461_; lean_object* v___x_5463_; uint8_t v_isShared_5464_; uint8_t v_isSharedCheck_5482_; +v_a_5461_ = lean_ctor_get(v___x_5460_, 0); +v_isSharedCheck_5482_ = !lean_is_exclusive(v___x_5460_); +if (v_isSharedCheck_5482_ == 0) { -v___x_5537_ = v___x_5534_; -v_isShared_5538_ = v_isSharedCheck_5556_; -goto v_resetjp_5536_; +v___x_5463_ = v___x_5460_; +v_isShared_5464_ = v_isSharedCheck_5482_; +goto v_resetjp_5462_; } else { -lean_inc(v_a_5535_); -lean_dec(v___x_5534_); -v___x_5537_ = lean_box(0); -v_isShared_5538_ = v_isSharedCheck_5556_; -goto v_resetjp_5536_; +lean_inc(v_a_5461_); +lean_dec(v___x_5460_); +v___x_5463_ = lean_box(0); +v_isShared_5464_ = v_isSharedCheck_5482_; +goto v_resetjp_5462_; } -v_resetjp_5536_: +v_resetjp_5462_: { -uint8_t v___x_5539_; -v___x_5539_ = lean_unbox(v_a_5535_); -lean_dec(v_a_5535_); -if (v___x_5539_ == 0) +uint8_t v___x_5465_; +v___x_5465_ = lean_unbox(v_a_5461_); +lean_dec(v_a_5461_); +if (v___x_5465_ == 0) { -lean_object* v___x_5540_; -lean_del_object(v___x_5537_); -lean_inc(v___y_5532_); -lean_inc_ref(v___y_5531_); -lean_inc(v___y_5530_); -lean_inc_ref(v___y_5529_); -lean_inc_ref(v_inst_5522_); -v___x_5540_ = lean_whnf(v_inst_5522_, v___y_5529_, v___y_5530_, v___y_5531_, v___y_5532_); -if (lean_obj_tag(v___x_5540_) == 0) +lean_object* v___x_5466_; +lean_del_object(v___x_5463_); +lean_inc(v___y_5458_); +lean_inc_ref(v___y_5457_); +lean_inc(v___y_5456_); +lean_inc_ref(v___y_5455_); +lean_inc_ref(v_inst_5448_); +v___x_5466_ = lean_whnf(v_inst_5448_, v___y_5455_, v___y_5456_, v___y_5457_, v___y_5458_); +if (lean_obj_tag(v___x_5466_) == 0) { -lean_object* v_a_5541_; lean_object* v_dummy_5542_; lean_object* v_nargs_5543_; lean_object* v___x_5544_; lean_object* v___x_5545_; lean_object* v___x_5546_; lean_object* v___x_5547_; -v_a_5541_ = lean_ctor_get(v___x_5540_, 0); -lean_inc(v_a_5541_); -lean_dec_ref(v___x_5540_); -v_dummy_5542_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); -v_nargs_5543_ = l_Lean_Expr_getAppNumArgs(v_a_5541_); -lean_inc(v_nargs_5543_); -v___x_5544_ = lean_mk_array(v_nargs_5543_, v_dummy_5542_); -v___x_5545_ = lean_unsigned_to_nat(1u); -v___x_5546_ = lean_nat_sub(v_nargs_5543_, v___x_5545_); -lean_dec(v_nargs_5543_); -v___x_5547_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16(v_inst_5522_, v_expectedType_5521_, v___x_5523_, v_compile_5524_, v_logCompileErrors_5525_, v_isMeta_5526_, v_val_5527_, v_a_5541_, v___x_5544_, v___x_5546_, v___y_5529_, v___y_5530_, v___y_5531_, v___y_5532_); -lean_dec(v___x_5546_); -return v___x_5547_; +lean_object* v_a_5467_; lean_object* v_dummy_5468_; lean_object* v_nargs_5469_; lean_object* v___x_5470_; lean_object* v___x_5471_; lean_object* v___x_5472_; lean_object* v___x_5473_; +v_a_5467_ = lean_ctor_get(v___x_5466_, 0); +lean_inc(v_a_5467_); +lean_dec_ref(v___x_5466_); +v_dummy_5468_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); +v_nargs_5469_ = l_Lean_Expr_getAppNumArgs(v_a_5467_); +lean_inc(v_nargs_5469_); +v___x_5470_ = lean_mk_array(v_nargs_5469_, v_dummy_5468_); +v___x_5471_ = lean_unsigned_to_nat(1u); +v___x_5472_ = lean_nat_sub(v_nargs_5469_, v___x_5471_); +lean_dec(v_nargs_5469_); +v___x_5473_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15(v_inst_5448_, v_expectedType_5447_, v___x_5449_, v_compile_5450_, v_logCompileErrors_5451_, v_isMeta_5452_, v_val_5453_, v_a_5467_, v___x_5470_, v___x_5472_, v___y_5455_, v___y_5456_, v___y_5457_, v___y_5458_); +lean_dec(v___x_5472_); +return v___x_5473_; } else { -lean_dec(v_val_5527_); -lean_dec_ref(v_inst_5522_); -lean_dec_ref(v_expectedType_5521_); -return v___x_5540_; +lean_dec(v_val_5453_); +lean_dec_ref(v_inst_5448_); +lean_dec_ref(v_expectedType_5447_); +return v___x_5466_; } } else { -lean_object* v_options_5548_; lean_object* v___x_5549_; uint8_t v___x_5550_; -lean_dec(v_val_5527_); -v_options_5548_ = lean_ctor_get(v___y_5531_, 2); -v___x_5549_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_5550_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5548_, v___x_5549_); -if (v___x_5550_ == 0) +lean_object* v_options_5474_; lean_object* v___x_5475_; uint8_t v___x_5476_; +lean_dec(v_val_5453_); +v_options_5474_ = lean_ctor_get(v___y_5457_, 2); +v___x_5475_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_5476_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5474_, v___x_5475_); +if (v___x_5476_ == 0) { -lean_object* v___x_5552_; -lean_dec_ref(v_expectedType_5521_); -if (v_isShared_5538_ == 0) +lean_object* v___x_5478_; +lean_dec_ref(v_expectedType_5447_); +if (v_isShared_5464_ == 0) { -lean_ctor_set(v___x_5537_, 0, v_inst_5522_); -v___x_5552_ = v___x_5537_; -goto v_reusejp_5551_; +lean_ctor_set(v___x_5463_, 0, v_inst_5448_); +v___x_5478_ = v___x_5463_; +goto v_reusejp_5477_; } else { -lean_object* v_reuseFailAlloc_5553_; -v_reuseFailAlloc_5553_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5553_, 0, v_inst_5522_); -v___x_5552_ = v_reuseFailAlloc_5553_; -goto v_reusejp_5551_; +lean_object* v_reuseFailAlloc_5479_; +v_reuseFailAlloc_5479_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5479_, 0, v_inst_5448_); +v___x_5478_ = v_reuseFailAlloc_5479_; +goto v_reusejp_5477_; } -v_reusejp_5551_: +v_reusejp_5477_: { -return v___x_5552_; +return v___x_5478_; } } else { -lean_object* v___x_5554_; lean_object* v___x_5555_; -lean_del_object(v___x_5537_); -v___x_5554_ = lean_box(0); -v___x_5555_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5521_, v_inst_5522_, v___x_5523_, v___x_5554_, v___x_5523_, v___y_5529_, v___y_5530_, v___y_5531_, v___y_5532_); -return v___x_5555_; +lean_object* v___x_5480_; lean_object* v___x_5481_; +lean_del_object(v___x_5463_); +v___x_5480_ = lean_box(0); +v___x_5481_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5447_, v_inst_5448_, v___x_5449_, v___x_5480_, v___x_5449_, v___y_5455_, v___y_5456_, v___y_5457_, v___y_5458_); +return v___x_5481_; } } } } else { -lean_object* v_a_5557_; lean_object* v___x_5559_; uint8_t v_isShared_5560_; uint8_t v_isSharedCheck_5564_; -lean_dec(v_val_5527_); -lean_dec_ref(v_inst_5522_); -lean_dec_ref(v_expectedType_5521_); -v_a_5557_ = lean_ctor_get(v___x_5534_, 0); -v_isSharedCheck_5564_ = !lean_is_exclusive(v___x_5534_); -if (v_isSharedCheck_5564_ == 0) +lean_object* v_a_5483_; lean_object* v___x_5485_; uint8_t v_isShared_5486_; uint8_t v_isSharedCheck_5490_; +lean_dec(v_val_5453_); +lean_dec_ref(v_inst_5448_); +lean_dec_ref(v_expectedType_5447_); +v_a_5483_ = lean_ctor_get(v___x_5460_, 0); +v_isSharedCheck_5490_ = !lean_is_exclusive(v___x_5460_); +if (v_isSharedCheck_5490_ == 0) { -v___x_5559_ = v___x_5534_; -v_isShared_5560_ = v_isSharedCheck_5564_; -goto v_resetjp_5558_; +v___x_5485_ = v___x_5460_; +v_isShared_5486_ = v_isSharedCheck_5490_; +goto v_resetjp_5484_; } else { -lean_inc(v_a_5557_); -lean_dec(v___x_5534_); -v___x_5559_ = lean_box(0); -v_isShared_5560_ = v_isSharedCheck_5564_; -goto v_resetjp_5558_; +lean_inc(v_a_5483_); +lean_dec(v___x_5460_); +v___x_5485_ = lean_box(0); +v_isShared_5486_ = v_isSharedCheck_5490_; +goto v_resetjp_5484_; } -v_resetjp_5558_: +v_resetjp_5484_: { -lean_object* v___x_5562_; -if (v_isShared_5560_ == 0) +lean_object* v___x_5488_; +if (v_isShared_5486_ == 0) { -v___x_5562_ = v___x_5559_; -goto v_reusejp_5561_; +v___x_5488_ = v___x_5485_; +goto v_reusejp_5487_; } else { -lean_object* v_reuseFailAlloc_5563_; -v_reuseFailAlloc_5563_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5563_, 0, v_a_5557_); -v___x_5562_ = v_reuseFailAlloc_5563_; -goto v_reusejp_5561_; +lean_object* v_reuseFailAlloc_5489_; +v_reuseFailAlloc_5489_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5489_, 0, v_a_5483_); +v___x_5488_ = v_reuseFailAlloc_5489_; +goto v_reusejp_5487_; } -v_reusejp_5561_: +v_reusejp_5487_: { -return v___x_5562_; +return v___x_5488_; } } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance(lean_object* v_inst_5565_, lean_object* v_expectedType_5566_, uint8_t v_compile_5567_, uint8_t v_logCompileErrors_5568_, uint8_t v_isMeta_5569_, lean_object* v_a_5570_, lean_object* v_a_5571_, lean_object* v_a_5572_, lean_object* v_a_5573_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance(lean_object* v_inst_5491_, lean_object* v_expectedType_5492_, uint8_t v_compile_5493_, uint8_t v_logCompileErrors_5494_, uint8_t v_isMeta_5495_, lean_object* v_a_5496_, lean_object* v_a_5497_, lean_object* v_a_5498_, lean_object* v_a_5499_){ _start: { -lean_object* v___x_5575_; lean_object* v_options_5576_; uint8_t v_foApprox_5577_; uint8_t v_ctxApprox_5578_; uint8_t v_quasiPatternApprox_5579_; uint8_t v_constApprox_5580_; uint8_t v_isDefEqStuckEx_5581_; uint8_t v_unificationHints_5582_; uint8_t v_proofIrrelevance_5583_; uint8_t v_assignSyntheticOpaque_5584_; uint8_t v_offsetCnstrs_5585_; uint8_t v_etaStruct_5586_; uint8_t v_univApprox_5587_; uint8_t v_iota_5588_; uint8_t v_beta_5589_; uint8_t v_proj_5590_; uint8_t v_zeta_5591_; uint8_t v_zetaDelta_5592_; uint8_t v_zetaUnused_5593_; uint8_t v_zetaHave_5594_; lean_object* v___x_5596_; uint8_t v_isShared_5597_; uint8_t v_isSharedCheck_5845_; -v___x_5575_ = l_Lean_Meta_Context_config(v_a_5570_); -v_options_5576_ = lean_ctor_get(v_a_5572_, 2); -v_foApprox_5577_ = lean_ctor_get_uint8(v___x_5575_, 0); -v_ctxApprox_5578_ = lean_ctor_get_uint8(v___x_5575_, 1); -v_quasiPatternApprox_5579_ = lean_ctor_get_uint8(v___x_5575_, 2); -v_constApprox_5580_ = lean_ctor_get_uint8(v___x_5575_, 3); -v_isDefEqStuckEx_5581_ = lean_ctor_get_uint8(v___x_5575_, 4); -v_unificationHints_5582_ = lean_ctor_get_uint8(v___x_5575_, 5); -v_proofIrrelevance_5583_ = lean_ctor_get_uint8(v___x_5575_, 6); -v_assignSyntheticOpaque_5584_ = lean_ctor_get_uint8(v___x_5575_, 7); -v_offsetCnstrs_5585_ = lean_ctor_get_uint8(v___x_5575_, 8); -v_etaStruct_5586_ = lean_ctor_get_uint8(v___x_5575_, 10); -v_univApprox_5587_ = lean_ctor_get_uint8(v___x_5575_, 11); -v_iota_5588_ = lean_ctor_get_uint8(v___x_5575_, 12); -v_beta_5589_ = lean_ctor_get_uint8(v___x_5575_, 13); -v_proj_5590_ = lean_ctor_get_uint8(v___x_5575_, 14); -v_zeta_5591_ = lean_ctor_get_uint8(v___x_5575_, 15); -v_zetaDelta_5592_ = lean_ctor_get_uint8(v___x_5575_, 16); -v_zetaUnused_5593_ = lean_ctor_get_uint8(v___x_5575_, 17); -v_zetaHave_5594_ = lean_ctor_get_uint8(v___x_5575_, 18); -v_isSharedCheck_5845_ = !lean_is_exclusive(v___x_5575_); -if (v_isSharedCheck_5845_ == 0) +lean_object* v___x_5501_; lean_object* v_options_5502_; uint8_t v_foApprox_5503_; uint8_t v_ctxApprox_5504_; uint8_t v_quasiPatternApprox_5505_; uint8_t v_constApprox_5506_; uint8_t v_isDefEqStuckEx_5507_; uint8_t v_unificationHints_5508_; uint8_t v_proofIrrelevance_5509_; uint8_t v_assignSyntheticOpaque_5510_; uint8_t v_offsetCnstrs_5511_; uint8_t v_etaStruct_5512_; uint8_t v_univApprox_5513_; uint8_t v_iota_5514_; uint8_t v_beta_5515_; uint8_t v_proj_5516_; uint8_t v_zeta_5517_; uint8_t v_zetaDelta_5518_; uint8_t v_zetaUnused_5519_; uint8_t v_zetaHave_5520_; lean_object* v___x_5522_; uint8_t v_isShared_5523_; uint8_t v_isSharedCheck_5771_; +v___x_5501_ = l_Lean_Meta_Context_config(v_a_5496_); +v_options_5502_ = lean_ctor_get(v_a_5498_, 2); +v_foApprox_5503_ = lean_ctor_get_uint8(v___x_5501_, 0); +v_ctxApprox_5504_ = lean_ctor_get_uint8(v___x_5501_, 1); +v_quasiPatternApprox_5505_ = lean_ctor_get_uint8(v___x_5501_, 2); +v_constApprox_5506_ = lean_ctor_get_uint8(v___x_5501_, 3); +v_isDefEqStuckEx_5507_ = lean_ctor_get_uint8(v___x_5501_, 4); +v_unificationHints_5508_ = lean_ctor_get_uint8(v___x_5501_, 5); +v_proofIrrelevance_5509_ = lean_ctor_get_uint8(v___x_5501_, 6); +v_assignSyntheticOpaque_5510_ = lean_ctor_get_uint8(v___x_5501_, 7); +v_offsetCnstrs_5511_ = lean_ctor_get_uint8(v___x_5501_, 8); +v_etaStruct_5512_ = lean_ctor_get_uint8(v___x_5501_, 10); +v_univApprox_5513_ = lean_ctor_get_uint8(v___x_5501_, 11); +v_iota_5514_ = lean_ctor_get_uint8(v___x_5501_, 12); +v_beta_5515_ = lean_ctor_get_uint8(v___x_5501_, 13); +v_proj_5516_ = lean_ctor_get_uint8(v___x_5501_, 14); +v_zeta_5517_ = lean_ctor_get_uint8(v___x_5501_, 15); +v_zetaDelta_5518_ = lean_ctor_get_uint8(v___x_5501_, 16); +v_zetaUnused_5519_ = lean_ctor_get_uint8(v___x_5501_, 17); +v_zetaHave_5520_ = lean_ctor_get_uint8(v___x_5501_, 18); +v_isSharedCheck_5771_ = !lean_is_exclusive(v___x_5501_); +if (v_isSharedCheck_5771_ == 0) { -v___x_5596_ = v___x_5575_; -v_isShared_5597_ = v_isSharedCheck_5845_; -goto v_resetjp_5595_; +v___x_5522_ = v___x_5501_; +v_isShared_5523_ = v_isSharedCheck_5771_; +goto v_resetjp_5521_; } else { -lean_dec(v___x_5575_); -v___x_5596_ = lean_box(0); -v_isShared_5597_ = v_isSharedCheck_5845_; -goto v_resetjp_5595_; +lean_dec(v___x_5501_); +v___x_5522_ = lean_box(0); +v_isShared_5523_ = v_isSharedCheck_5771_; +goto v_resetjp_5521_; } -v_resetjp_5595_: +v_resetjp_5521_: { -uint8_t v_trackZetaDelta_5598_; lean_object* v_zetaDeltaSet_5599_; lean_object* v_lctx_5600_; lean_object* v_localInstances_5601_; lean_object* v_defEqCtx_x3f_5602_; lean_object* v_synthPendingDepth_5603_; lean_object* v_canUnfold_x3f_5604_; uint8_t v_univApprox_5605_; uint8_t v_inTypeClassResolution_5606_; uint8_t v_cacheInferType_5607_; lean_object* v_inheritedTraceOptions_5608_; uint8_t v_hasTrace_5609_; uint8_t v___x_5610_; lean_object* v_config_5612_; -v_trackZetaDelta_5598_ = lean_ctor_get_uint8(v_a_5570_, sizeof(void*)*7); -v_zetaDeltaSet_5599_ = lean_ctor_get(v_a_5570_, 1); -v_lctx_5600_ = lean_ctor_get(v_a_5570_, 2); -v_localInstances_5601_ = lean_ctor_get(v_a_5570_, 3); -v_defEqCtx_x3f_5602_ = lean_ctor_get(v_a_5570_, 4); -v_synthPendingDepth_5603_ = lean_ctor_get(v_a_5570_, 5); -v_canUnfold_x3f_5604_ = lean_ctor_get(v_a_5570_, 6); -v_univApprox_5605_ = lean_ctor_get_uint8(v_a_5570_, sizeof(void*)*7 + 1); -v_inTypeClassResolution_5606_ = lean_ctor_get_uint8(v_a_5570_, sizeof(void*)*7 + 2); -v_cacheInferType_5607_ = lean_ctor_get_uint8(v_a_5570_, sizeof(void*)*7 + 3); -v_inheritedTraceOptions_5608_ = lean_ctor_get(v_a_5572_, 13); -v_hasTrace_5609_ = lean_ctor_get_uint8(v_options_5576_, sizeof(void*)*1); -v___x_5610_ = 3; -if (v_isShared_5597_ == 0) +uint8_t v_trackZetaDelta_5524_; lean_object* v_zetaDeltaSet_5525_; lean_object* v_lctx_5526_; lean_object* v_localInstances_5527_; lean_object* v_defEqCtx_x3f_5528_; lean_object* v_synthPendingDepth_5529_; lean_object* v_canUnfold_x3f_5530_; uint8_t v_univApprox_5531_; uint8_t v_inTypeClassResolution_5532_; uint8_t v_cacheInferType_5533_; lean_object* v_inheritedTraceOptions_5534_; uint8_t v_hasTrace_5535_; uint8_t v___x_5536_; lean_object* v_config_5538_; +v_trackZetaDelta_5524_ = lean_ctor_get_uint8(v_a_5496_, sizeof(void*)*7); +v_zetaDeltaSet_5525_ = lean_ctor_get(v_a_5496_, 1); +v_lctx_5526_ = lean_ctor_get(v_a_5496_, 2); +v_localInstances_5527_ = lean_ctor_get(v_a_5496_, 3); +v_defEqCtx_x3f_5528_ = lean_ctor_get(v_a_5496_, 4); +v_synthPendingDepth_5529_ = lean_ctor_get(v_a_5496_, 5); +v_canUnfold_x3f_5530_ = lean_ctor_get(v_a_5496_, 6); +v_univApprox_5531_ = lean_ctor_get_uint8(v_a_5496_, sizeof(void*)*7 + 1); +v_inTypeClassResolution_5532_ = lean_ctor_get_uint8(v_a_5496_, sizeof(void*)*7 + 2); +v_cacheInferType_5533_ = lean_ctor_get_uint8(v_a_5496_, sizeof(void*)*7 + 3); +v_inheritedTraceOptions_5534_ = lean_ctor_get(v_a_5498_, 13); +v_hasTrace_5535_ = lean_ctor_get_uint8(v_options_5502_, sizeof(void*)*1); +v___x_5536_ = 3; +if (v_isShared_5523_ == 0) { -v_config_5612_ = v___x_5596_; -goto v_reusejp_5611_; +v_config_5538_ = v___x_5522_; +goto v_reusejp_5537_; } else { -lean_object* v_reuseFailAlloc_5844_; -v_reuseFailAlloc_5844_ = lean_alloc_ctor(0, 0, 19); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 0, v_foApprox_5577_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 1, v_ctxApprox_5578_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 2, v_quasiPatternApprox_5579_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 3, v_constApprox_5580_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 4, v_isDefEqStuckEx_5581_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 5, v_unificationHints_5582_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 6, v_proofIrrelevance_5583_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 7, v_assignSyntheticOpaque_5584_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 8, v_offsetCnstrs_5585_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 10, v_etaStruct_5586_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 11, v_univApprox_5587_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 12, v_iota_5588_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 13, v_beta_5589_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 14, v_proj_5590_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 15, v_zeta_5591_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 16, v_zetaDelta_5592_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 17, v_zetaUnused_5593_); -lean_ctor_set_uint8(v_reuseFailAlloc_5844_, 18, v_zetaHave_5594_); -v_config_5612_ = v_reuseFailAlloc_5844_; -goto v_reusejp_5611_; +lean_object* v_reuseFailAlloc_5770_; +v_reuseFailAlloc_5770_ = lean_alloc_ctor(0, 0, 19); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 0, v_foApprox_5503_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 1, v_ctxApprox_5504_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 2, v_quasiPatternApprox_5505_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 3, v_constApprox_5506_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 4, v_isDefEqStuckEx_5507_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 5, v_unificationHints_5508_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 6, v_proofIrrelevance_5509_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 7, v_assignSyntheticOpaque_5510_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 8, v_offsetCnstrs_5511_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 10, v_etaStruct_5512_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 11, v_univApprox_5513_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 12, v_iota_5514_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 13, v_beta_5515_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 14, v_proj_5516_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 15, v_zeta_5517_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 16, v_zetaDelta_5518_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 17, v_zetaUnused_5519_); +lean_ctor_set_uint8(v_reuseFailAlloc_5770_, 18, v_zetaHave_5520_); +v_config_5538_ = v_reuseFailAlloc_5770_; +goto v_reusejp_5537_; } -v_reusejp_5611_: +v_reusejp_5537_: { -uint64_t v___x_5613_; uint64_t v___x_5614_; uint64_t v___x_5615_; uint64_t v___x_5616_; uint64_t v___x_5617_; uint64_t v_key_5618_; lean_object* v___x_5619_; lean_object* v___x_5620_; -lean_ctor_set_uint8(v_config_5612_, 9, v___x_5610_); -v___x_5613_ = l_Lean_Meta_Context_configKey(v_a_5570_); -v___x_5614_ = 2ULL; -v___x_5615_ = lean_uint64_shift_right(v___x_5613_, v___x_5614_); -v___x_5616_ = lean_uint64_shift_left(v___x_5615_, v___x_5614_); -v___x_5617_ = lean_uint64_once(&l_Lean_Meta_wrapInstance___closed__0, &l_Lean_Meta_wrapInstance___closed__0_once, _init_l_Lean_Meta_wrapInstance___closed__0); -v_key_5618_ = lean_uint64_lor(v___x_5616_, v___x_5617_); -v___x_5619_ = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(v___x_5619_, 0, v_config_5612_); -lean_ctor_set_uint64(v___x_5619_, sizeof(void*)*1, v_key_5618_); -lean_inc(v_canUnfold_x3f_5604_); -lean_inc(v_synthPendingDepth_5603_); -lean_inc(v_defEqCtx_x3f_5602_); -lean_inc_ref(v_localInstances_5601_); -lean_inc_ref(v_lctx_5600_); -lean_inc(v_zetaDeltaSet_5599_); -v___x_5620_ = lean_alloc_ctor(0, 7, 4); -lean_ctor_set(v___x_5620_, 0, v___x_5619_); -lean_ctor_set(v___x_5620_, 1, v_zetaDeltaSet_5599_); -lean_ctor_set(v___x_5620_, 2, v_lctx_5600_); -lean_ctor_set(v___x_5620_, 3, v_localInstances_5601_); -lean_ctor_set(v___x_5620_, 4, v_defEqCtx_x3f_5602_); -lean_ctor_set(v___x_5620_, 5, v_synthPendingDepth_5603_); -lean_ctor_set(v___x_5620_, 6, v_canUnfold_x3f_5604_); -lean_ctor_set_uint8(v___x_5620_, sizeof(void*)*7, v_trackZetaDelta_5598_); -lean_ctor_set_uint8(v___x_5620_, sizeof(void*)*7 + 1, v_univApprox_5605_); -lean_ctor_set_uint8(v___x_5620_, sizeof(void*)*7 + 2, v_inTypeClassResolution_5606_); -lean_ctor_set_uint8(v___x_5620_, sizeof(void*)*7 + 3, v_cacheInferType_5607_); -if (v_hasTrace_5609_ == 0) +uint64_t v___x_5539_; uint64_t v___x_5540_; uint64_t v___x_5541_; uint64_t v___x_5542_; uint64_t v___x_5543_; uint64_t v_key_5544_; lean_object* v___x_5545_; lean_object* v___x_5546_; +lean_ctor_set_uint8(v_config_5538_, 9, v___x_5536_); +v___x_5539_ = l_Lean_Meta_Context_configKey(v_a_5496_); +v___x_5540_ = 2ULL; +v___x_5541_ = lean_uint64_shift_right(v___x_5539_, v___x_5540_); +v___x_5542_ = lean_uint64_shift_left(v___x_5541_, v___x_5540_); +v___x_5543_ = lean_uint64_once(&l_Lean_Meta_wrapInstance___closed__0, &l_Lean_Meta_wrapInstance___closed__0_once, _init_l_Lean_Meta_wrapInstance___closed__0); +v_key_5544_ = lean_uint64_lor(v___x_5542_, v___x_5543_); +v___x_5545_ = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(v___x_5545_, 0, v_config_5538_); +lean_ctor_set_uint64(v___x_5545_, sizeof(void*)*1, v_key_5544_); +lean_inc(v_canUnfold_x3f_5530_); +lean_inc(v_synthPendingDepth_5529_); +lean_inc(v_defEqCtx_x3f_5528_); +lean_inc_ref(v_localInstances_5527_); +lean_inc_ref(v_lctx_5526_); +lean_inc(v_zetaDeltaSet_5525_); +v___x_5546_ = lean_alloc_ctor(0, 7, 4); +lean_ctor_set(v___x_5546_, 0, v___x_5545_); +lean_ctor_set(v___x_5546_, 1, v_zetaDeltaSet_5525_); +lean_ctor_set(v___x_5546_, 2, v_lctx_5526_); +lean_ctor_set(v___x_5546_, 3, v_localInstances_5527_); +lean_ctor_set(v___x_5546_, 4, v_defEqCtx_x3f_5528_); +lean_ctor_set(v___x_5546_, 5, v_synthPendingDepth_5529_); +lean_ctor_set(v___x_5546_, 6, v_canUnfold_x3f_5530_); +lean_ctor_set_uint8(v___x_5546_, sizeof(void*)*7, v_trackZetaDelta_5524_); +lean_ctor_set_uint8(v___x_5546_, sizeof(void*)*7 + 1, v_univApprox_5531_); +lean_ctor_set_uint8(v___x_5546_, sizeof(void*)*7 + 2, v_inTypeClassResolution_5532_); +lean_ctor_set_uint8(v___x_5546_, sizeof(void*)*7 + 3, v_cacheInferType_5533_); +if (v_hasTrace_5535_ == 0) +{ +lean_object* v___x_5547_; +lean_inc_ref(v_expectedType_5492_); +v___x_5547_ = l_Lean_Meta_isClass_x3f(v_expectedType_5492_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5547_) == 0) +{ +lean_object* v_a_5548_; lean_object* v___x_5550_; uint8_t v_isShared_5551_; uint8_t v_isSharedCheck_5586_; +v_a_5548_ = lean_ctor_get(v___x_5547_, 0); +v_isSharedCheck_5586_ = !lean_is_exclusive(v___x_5547_); +if (v_isSharedCheck_5586_ == 0) +{ +v___x_5550_ = v___x_5547_; +v_isShared_5551_ = v_isSharedCheck_5586_; +goto v_resetjp_5549_; +} +else +{ +lean_inc(v_a_5548_); +lean_dec(v___x_5547_); +v___x_5550_ = lean_box(0); +v_isShared_5551_ = v_isSharedCheck_5586_; +goto v_resetjp_5549_; +} +v_resetjp_5549_: +{ +if (lean_obj_tag(v_a_5548_) == 1) +{ +lean_object* v_val_5552_; lean_object* v___x_5553_; +lean_del_object(v___x_5550_); +v_val_5552_ = lean_ctor_get(v_a_5548_, 0); +lean_inc(v_val_5552_); +lean_dec_ref(v_a_5548_); +lean_inc_ref(v_expectedType_5492_); +v___x_5553_ = l_Lean_Meta_isProp(v_expectedType_5492_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5553_) == 0) +{ +lean_object* v_a_5554_; lean_object* v___x_5556_; uint8_t v_isShared_5557_; uint8_t v_isSharedCheck_5574_; +v_a_5554_ = lean_ctor_get(v___x_5553_, 0); +v_isSharedCheck_5574_ = !lean_is_exclusive(v___x_5553_); +if (v_isSharedCheck_5574_ == 0) +{ +v___x_5556_ = v___x_5553_; +v_isShared_5557_ = v_isSharedCheck_5574_; +goto v_resetjp_5555_; +} +else +{ +lean_inc(v_a_5554_); +lean_dec(v___x_5553_); +v___x_5556_ = lean_box(0); +v_isShared_5557_ = v_isSharedCheck_5574_; +goto v_resetjp_5555_; +} +v_resetjp_5555_: +{ +uint8_t v___x_5558_; +v___x_5558_ = lean_unbox(v_a_5554_); +lean_dec(v_a_5554_); +if (v___x_5558_ == 0) +{ +lean_object* v___x_5559_; +lean_del_object(v___x_5556_); +lean_inc(v_a_5499_); +lean_inc_ref(v_a_5498_); +lean_inc(v_a_5497_); +lean_inc_ref(v___x_5546_); +lean_inc_ref(v_inst_5491_); +v___x_5559_ = lean_whnf(v_inst_5491_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5559_) == 0) +{ +lean_object* v_a_5560_; lean_object* v_dummy_5561_; lean_object* v_nargs_5562_; lean_object* v___x_5563_; lean_object* v___x_5564_; lean_object* v___x_5565_; lean_object* v___x_5566_; +v_a_5560_ = lean_ctor_get(v___x_5559_, 0); +lean_inc(v_a_5560_); +lean_dec_ref(v___x_5559_); +v_dummy_5561_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); +v_nargs_5562_ = l_Lean_Expr_getAppNumArgs(v_a_5560_); +lean_inc(v_nargs_5562_); +v___x_5563_ = lean_mk_array(v_nargs_5562_, v_dummy_5561_); +v___x_5564_ = lean_unsigned_to_nat(1u); +v___x_5565_ = lean_nat_sub(v_nargs_5562_, v___x_5564_); +lean_dec(v_nargs_5562_); +v___x_5566_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9(v_inst_5491_, v_expectedType_5492_, v_hasTrace_5535_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5552_, v_a_5560_, v___x_5563_, v___x_5565_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +lean_dec_ref(v___x_5546_); +lean_dec(v___x_5565_); +return v___x_5566_; +} +else +{ +lean_dec(v_val_5552_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +return v___x_5559_; +} +} +else +{ +lean_object* v___x_5567_; uint8_t v___x_5568_; +lean_dec(v_val_5552_); +v___x_5567_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_5568_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5502_, v___x_5567_); +if (v___x_5568_ == 0) +{ +lean_object* v___x_5570_; +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +if (v_isShared_5557_ == 0) +{ +lean_ctor_set(v___x_5556_, 0, v_inst_5491_); +v___x_5570_ = v___x_5556_; +goto v_reusejp_5569_; +} +else +{ +lean_object* v_reuseFailAlloc_5571_; +v_reuseFailAlloc_5571_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5571_, 0, v_inst_5491_); +v___x_5570_ = v_reuseFailAlloc_5571_; +goto v_reusejp_5569_; +} +v_reusejp_5569_: +{ +return v___x_5570_; +} +} +else +{ +lean_object* v___x_5572_; lean_object* v___x_5573_; +lean_del_object(v___x_5556_); +v___x_5572_ = lean_box(0); +v___x_5573_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5492_, v_inst_5491_, v___x_5568_, v___x_5572_, v___x_5568_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +lean_dec_ref(v___x_5546_); +return v___x_5573_; +} +} +} +} +else +{ +lean_object* v_a_5575_; lean_object* v___x_5577_; uint8_t v_isShared_5578_; uint8_t v_isSharedCheck_5582_; +lean_dec(v_val_5552_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5575_ = lean_ctor_get(v___x_5553_, 0); +v_isSharedCheck_5582_ = !lean_is_exclusive(v___x_5553_); +if (v_isSharedCheck_5582_ == 0) +{ +v___x_5577_ = v___x_5553_; +v_isShared_5578_ = v_isSharedCheck_5582_; +goto v_resetjp_5576_; +} +else +{ +lean_inc(v_a_5575_); +lean_dec(v___x_5553_); +v___x_5577_ = lean_box(0); +v_isShared_5578_ = v_isSharedCheck_5582_; +goto v_resetjp_5576_; +} +v_resetjp_5576_: +{ +lean_object* v___x_5580_; +if (v_isShared_5578_ == 0) +{ +v___x_5580_ = v___x_5577_; +goto v_reusejp_5579_; +} +else +{ +lean_object* v_reuseFailAlloc_5581_; +v_reuseFailAlloc_5581_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5581_, 0, v_a_5575_); +v___x_5580_ = v_reuseFailAlloc_5581_; +goto v_reusejp_5579_; +} +v_reusejp_5579_: +{ +return v___x_5580_; +} +} +} +} +else +{ +lean_object* v___x_5584_; +lean_dec(v_a_5548_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +if (v_isShared_5551_ == 0) +{ +lean_ctor_set(v___x_5550_, 0, v_inst_5491_); +v___x_5584_ = v___x_5550_; +goto v_reusejp_5583_; +} +else +{ +lean_object* v_reuseFailAlloc_5585_; +v_reuseFailAlloc_5585_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5585_, 0, v_inst_5491_); +v___x_5584_ = v_reuseFailAlloc_5585_; +goto v_reusejp_5583_; +} +v_reusejp_5583_: +{ +return v___x_5584_; +} +} +} +} +else +{ +lean_object* v_a_5587_; lean_object* v___x_5589_; uint8_t v_isShared_5590_; uint8_t v_isSharedCheck_5594_; +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5587_ = lean_ctor_get(v___x_5547_, 0); +v_isSharedCheck_5594_ = !lean_is_exclusive(v___x_5547_); +if (v_isSharedCheck_5594_ == 0) +{ +v___x_5589_ = v___x_5547_; +v_isShared_5590_ = v_isSharedCheck_5594_; +goto v_resetjp_5588_; +} +else +{ +lean_inc(v_a_5587_); +lean_dec(v___x_5547_); +v___x_5589_ = lean_box(0); +v_isShared_5590_ = v_isSharedCheck_5594_; +goto v_resetjp_5588_; +} +v_resetjp_5588_: +{ +lean_object* v___x_5592_; +if (v_isShared_5590_ == 0) +{ +v___x_5592_ = v___x_5589_; +goto v_reusejp_5591_; +} +else +{ +lean_object* v_reuseFailAlloc_5593_; +v_reuseFailAlloc_5593_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5593_, 0, v_a_5587_); +v___x_5592_ = v_reuseFailAlloc_5593_; +goto v_reusejp_5591_; +} +v_reusejp_5591_: +{ +return v___x_5592_; +} +} +} +} +else +{ +lean_object* v___f_5595_; lean_object* v_cls_5596_; lean_object* v___x_5597_; lean_object* v___x_5598_; uint8_t v___x_5599_; lean_object* v___y_5601_; lean_object* v___y_5602_; lean_object* v_a_5603_; lean_object* v___y_5613_; lean_object* v___y_5614_; lean_object* v_a_5615_; lean_object* v___y_5618_; lean_object* v___y_5619_; lean_object* v_a_5620_; lean_object* v___y_5623_; lean_object* v___y_5624_; lean_object* v___y_5625_; lean_object* v___y_5629_; lean_object* v___y_5630_; lean_object* v_a_5631_; lean_object* v___y_5644_; lean_object* v___y_5645_; lean_object* v_a_5646_; lean_object* v___y_5649_; lean_object* v___y_5650_; lean_object* v_a_5651_; lean_object* v___y_5654_; lean_object* v___y_5655_; lean_object* v___y_5656_; +lean_inc_ref(v_expectedType_5492_); +v___f_5595_ = lean_alloc_closure((void*)(l_Lean_Meta_wrapInstance___lam__0___boxed), 7, 1); +lean_closure_set(v___f_5595_, 0, v_expectedType_5492_); +v_cls_5596_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); +v___x_5597_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__1)); +v___x_5598_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); +v___x_5599_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5534_, v_options_5502_, v___x_5598_); +if (v___x_5599_ == 0) +{ +lean_object* v___x_5702_; uint8_t v___x_5703_; +v___x_5702_ = l_Lean_trace_profiler; +v___x_5703_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5502_, v___x_5702_); +if (v___x_5703_ == 0) +{ +lean_object* v___x_5704_; +lean_dec_ref(v___f_5595_); +lean_inc_ref(v_expectedType_5492_); +v___x_5704_ = l_Lean_Meta_isClass_x3f(v_expectedType_5492_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5704_) == 0) +{ +lean_object* v_a_5705_; lean_object* v___x_5707_; uint8_t v_isShared_5708_; uint8_t v_isSharedCheck_5761_; +v_a_5705_ = lean_ctor_get(v___x_5704_, 0); +v_isSharedCheck_5761_ = !lean_is_exclusive(v___x_5704_); +if (v_isSharedCheck_5761_ == 0) +{ +v___x_5707_ = v___x_5704_; +v_isShared_5708_ = v_isSharedCheck_5761_; +goto v_resetjp_5706_; +} +else +{ +lean_inc(v_a_5705_); +lean_dec(v___x_5704_); +v___x_5707_ = lean_box(0); +v_isShared_5708_ = v_isSharedCheck_5761_; +goto v_resetjp_5706_; +} +v_resetjp_5706_: +{ +if (lean_obj_tag(v_a_5705_) == 1) +{ +lean_object* v_val_5709_; lean_object* v___y_5711_; lean_object* v___y_5712_; lean_object* v___y_5713_; lean_object* v___y_5714_; +lean_del_object(v___x_5707_); +v_val_5709_ = lean_ctor_get(v_a_5705_, 0); +lean_inc(v_val_5709_); +lean_dec_ref(v_a_5705_); +if (v___x_5599_ == 0) +{ +v___y_5711_ = v___x_5546_; +v___y_5712_ = v_a_5497_; +v___y_5713_ = v_a_5498_; +v___y_5714_ = v_a_5499_; +goto v___jp_5710_; +} +else +{ +lean_object* v___x_5746_; lean_object* v___x_5747_; lean_object* v___x_5748_; lean_object* v___x_5749_; +v___x_5746_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); +lean_inc(v_val_5709_); +v___x_5747_ = l_Lean_MessageData_ofName(v_val_5709_); +v___x_5748_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5748_, 0, v___x_5746_); +lean_ctor_set(v___x_5748_, 1, v___x_5747_); +v___x_5749_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_5596_, v___x_5748_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5749_) == 0) +{ +lean_dec_ref(v___x_5749_); +v___y_5711_ = v___x_5546_; +v___y_5712_ = v_a_5497_; +v___y_5713_ = v_a_5498_; +v___y_5714_ = v_a_5499_; +goto v___jp_5710_; +} +else +{ +lean_object* v_a_5750_; lean_object* v___x_5752_; uint8_t v_isShared_5753_; uint8_t v_isSharedCheck_5757_; +lean_dec(v_val_5709_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5750_ = lean_ctor_get(v___x_5749_, 0); +v_isSharedCheck_5757_ = !lean_is_exclusive(v___x_5749_); +if (v_isSharedCheck_5757_ == 0) +{ +v___x_5752_ = v___x_5749_; +v_isShared_5753_ = v_isSharedCheck_5757_; +goto v_resetjp_5751_; +} +else +{ +lean_inc(v_a_5750_); +lean_dec(v___x_5749_); +v___x_5752_ = lean_box(0); +v_isShared_5753_ = v_isSharedCheck_5757_; +goto v_resetjp_5751_; +} +v_resetjp_5751_: +{ +lean_object* v___x_5755_; +if (v_isShared_5753_ == 0) +{ +v___x_5755_ = v___x_5752_; +goto v_reusejp_5754_; +} +else +{ +lean_object* v_reuseFailAlloc_5756_; +v_reuseFailAlloc_5756_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5756_, 0, v_a_5750_); +v___x_5755_ = v_reuseFailAlloc_5756_; +goto v_reusejp_5754_; +} +v_reusejp_5754_: +{ +return v___x_5755_; +} +} +} +} +v___jp_5710_: +{ +lean_object* v___x_5715_; +lean_inc_ref(v_expectedType_5492_); +v___x_5715_ = l_Lean_Meta_isProp(v_expectedType_5492_, v___y_5711_, v___y_5712_, v___y_5713_, v___y_5714_); +if (lean_obj_tag(v___x_5715_) == 0) +{ +lean_object* v_a_5716_; lean_object* v___x_5718_; uint8_t v_isShared_5719_; uint8_t v_isSharedCheck_5737_; +v_a_5716_ = lean_ctor_get(v___x_5715_, 0); +v_isSharedCheck_5737_ = !lean_is_exclusive(v___x_5715_); +if (v_isSharedCheck_5737_ == 0) +{ +v___x_5718_ = v___x_5715_; +v_isShared_5719_ = v_isSharedCheck_5737_; +goto v_resetjp_5717_; +} +else +{ +lean_inc(v_a_5716_); +lean_dec(v___x_5715_); +v___x_5718_ = lean_box(0); +v_isShared_5719_ = v_isSharedCheck_5737_; +goto v_resetjp_5717_; +} +v_resetjp_5717_: +{ +uint8_t v___x_5720_; +v___x_5720_ = lean_unbox(v_a_5716_); +lean_dec(v_a_5716_); +if (v___x_5720_ == 0) +{ +lean_object* v___x_5721_; +lean_del_object(v___x_5718_); +lean_inc(v___y_5714_); +lean_inc_ref(v___y_5713_); +lean_inc(v___y_5712_); +lean_inc_ref(v___y_5711_); +lean_inc_ref(v_inst_5491_); +v___x_5721_ = lean_whnf(v_inst_5491_, v___y_5711_, v___y_5712_, v___y_5713_, v___y_5714_); +if (lean_obj_tag(v___x_5721_) == 0) +{ +lean_object* v_a_5722_; lean_object* v_dummy_5723_; lean_object* v_nargs_5724_; lean_object* v___x_5725_; lean_object* v___x_5726_; lean_object* v___x_5727_; lean_object* v___x_5728_; +v_a_5722_ = lean_ctor_get(v___x_5721_, 0); +lean_inc(v_a_5722_); +lean_dec_ref(v___x_5721_); +v_dummy_5723_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); +v_nargs_5724_ = l_Lean_Expr_getAppNumArgs(v_a_5722_); +lean_inc(v_nargs_5724_); +v___x_5725_ = lean_mk_array(v_nargs_5724_, v_dummy_5723_); +v___x_5726_ = lean_unsigned_to_nat(1u); +v___x_5727_ = lean_nat_sub(v_nargs_5724_, v___x_5726_); +lean_dec(v_nargs_5724_); +v___x_5728_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13(v_inst_5491_, v_expectedType_5492_, v___x_5703_, v_hasTrace_5535_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5709_, v_a_5722_, v___x_5725_, v___x_5727_, v___y_5711_, v___y_5712_, v___y_5713_, v___y_5714_); +lean_dec_ref(v___y_5711_); +lean_dec(v___x_5727_); +return v___x_5728_; +} +else +{ +lean_dec_ref(v___y_5711_); +lean_dec(v_val_5709_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +return v___x_5721_; +} +} +else +{ +lean_object* v_options_5729_; lean_object* v___x_5730_; uint8_t v___x_5731_; +lean_dec(v_val_5709_); +v_options_5729_ = lean_ctor_get(v___y_5713_, 2); +v___x_5730_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; +v___x_5731_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5729_, v___x_5730_); +if (v___x_5731_ == 0) +{ +lean_object* v___x_5733_; +lean_dec_ref(v___y_5711_); +lean_dec_ref(v_expectedType_5492_); +if (v_isShared_5719_ == 0) +{ +lean_ctor_set(v___x_5718_, 0, v_inst_5491_); +v___x_5733_ = v___x_5718_; +goto v_reusejp_5732_; +} +else +{ +lean_object* v_reuseFailAlloc_5734_; +v_reuseFailAlloc_5734_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5734_, 0, v_inst_5491_); +v___x_5733_ = v_reuseFailAlloc_5734_; +goto v_reusejp_5732_; +} +v_reusejp_5732_: +{ +return v___x_5733_; +} +} +else +{ +lean_object* v___x_5735_; lean_object* v___x_5736_; +lean_del_object(v___x_5718_); +v___x_5735_ = lean_box(0); +v___x_5736_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5492_, v_inst_5491_, v_hasTrace_5535_, v___x_5735_, v_hasTrace_5535_, v___y_5711_, v___y_5712_, v___y_5713_, v___y_5714_); +lean_dec_ref(v___y_5711_); +return v___x_5736_; +} +} +} +} +else +{ +lean_object* v_a_5738_; lean_object* v___x_5740_; uint8_t v_isShared_5741_; uint8_t v_isSharedCheck_5745_; +lean_dec_ref(v___y_5711_); +lean_dec(v_val_5709_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5738_ = lean_ctor_get(v___x_5715_, 0); +v_isSharedCheck_5745_ = !lean_is_exclusive(v___x_5715_); +if (v_isSharedCheck_5745_ == 0) +{ +v___x_5740_ = v___x_5715_; +v_isShared_5741_ = v_isSharedCheck_5745_; +goto v_resetjp_5739_; +} +else +{ +lean_inc(v_a_5738_); +lean_dec(v___x_5715_); +v___x_5740_ = lean_box(0); +v_isShared_5741_ = v_isSharedCheck_5745_; +goto v_resetjp_5739_; +} +v_resetjp_5739_: +{ +lean_object* v___x_5743_; +if (v_isShared_5741_ == 0) +{ +v___x_5743_ = v___x_5740_; +goto v_reusejp_5742_; +} +else +{ +lean_object* v_reuseFailAlloc_5744_; +v_reuseFailAlloc_5744_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5744_, 0, v_a_5738_); +v___x_5743_ = v_reuseFailAlloc_5744_; +goto v_reusejp_5742_; +} +v_reusejp_5742_: +{ +return v___x_5743_; +} +} +} +} +} +else +{ +lean_object* v___x_5759_; +lean_dec(v_a_5705_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +if (v_isShared_5708_ == 0) +{ +lean_ctor_set(v___x_5707_, 0, v_inst_5491_); +v___x_5759_ = v___x_5707_; +goto v_reusejp_5758_; +} +else +{ +lean_object* v_reuseFailAlloc_5760_; +v_reuseFailAlloc_5760_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5760_, 0, v_inst_5491_); +v___x_5759_ = v_reuseFailAlloc_5760_; +goto v_reusejp_5758_; +} +v_reusejp_5758_: +{ +return v___x_5759_; +} +} +} +} +else +{ +lean_object* v_a_5762_; lean_object* v___x_5764_; uint8_t v_isShared_5765_; uint8_t v_isSharedCheck_5769_; +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5762_ = lean_ctor_get(v___x_5704_, 0); +v_isSharedCheck_5769_ = !lean_is_exclusive(v___x_5704_); +if (v_isSharedCheck_5769_ == 0) +{ +v___x_5764_ = v___x_5704_; +v_isShared_5765_ = v_isSharedCheck_5769_; +goto v_resetjp_5763_; +} +else +{ +lean_inc(v_a_5762_); +lean_dec(v___x_5704_); +v___x_5764_ = lean_box(0); +v_isShared_5765_ = v_isSharedCheck_5769_; +goto v_resetjp_5763_; +} +v_resetjp_5763_: +{ +lean_object* v___x_5767_; +if (v_isShared_5765_ == 0) +{ +v___x_5767_ = v___x_5764_; +goto v_reusejp_5766_; +} +else +{ +lean_object* v_reuseFailAlloc_5768_; +v_reuseFailAlloc_5768_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5768_, 0, v_a_5762_); +v___x_5767_ = v_reuseFailAlloc_5768_; +goto v_reusejp_5766_; +} +v_reusejp_5766_: +{ +return v___x_5767_; +} +} +} +} +else +{ +goto v___jp_5659_; +} +} +else +{ +goto v___jp_5659_; +} +v___jp_5600_: +{ +lean_object* v___x_5604_; double v___x_5605_; double v___x_5606_; lean_object* v___x_5607_; lean_object* v___x_5608_; lean_object* v___x_5609_; lean_object* v___x_5610_; lean_object* v___x_5611_; +v___x_5604_ = lean_io_get_num_heartbeats(); +v___x_5605_ = lean_float_of_nat(v___y_5602_); +v___x_5606_ = lean_float_of_nat(v___x_5604_); +v___x_5607_ = lean_box_float(v___x_5605_); +v___x_5608_ = lean_box_float(v___x_5606_); +v___x_5609_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5609_, 0, v___x_5607_); +lean_ctor_set(v___x_5609_, 1, v___x_5608_); +v___x_5610_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5610_, 0, v_a_5603_); +lean_ctor_set(v___x_5610_, 1, v___x_5609_); +v___x_5611_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11(v_cls_5596_, v_hasTrace_5535_, v___x_5597_, v_options_5502_, v___x_5599_, v___y_5601_, v___f_5595_, v___x_5610_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +lean_dec_ref(v___x_5546_); +return v___x_5611_; +} +v___jp_5612_: +{ +lean_object* v___x_5616_; +v___x_5616_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5616_, 0, v_a_5615_); +v___y_5601_ = v___y_5613_; +v___y_5602_ = v___y_5614_; +v_a_5603_ = v___x_5616_; +goto v___jp_5600_; +} +v___jp_5617_: { lean_object* v___x_5621_; -lean_inc_ref(v_expectedType_5566_); -v___x_5621_ = l_Lean_Meta_isClass_x3f(v_expectedType_5566_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5621_) == 0) +v___x_5621_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5621_, 0, v_a_5620_); +v___y_5601_ = v___y_5618_; +v___y_5602_ = v___y_5619_; +v_a_5603_ = v___x_5621_; +goto v___jp_5600_; +} +v___jp_5622_: { -lean_object* v_a_5622_; lean_object* v___x_5624_; uint8_t v_isShared_5625_; uint8_t v_isSharedCheck_5660_; -v_a_5622_ = lean_ctor_get(v___x_5621_, 0); -v_isSharedCheck_5660_ = !lean_is_exclusive(v___x_5621_); -if (v_isSharedCheck_5660_ == 0) +if (lean_obj_tag(v___y_5625_) == 0) { -v___x_5624_ = v___x_5621_; -v_isShared_5625_ = v_isSharedCheck_5660_; -goto v_resetjp_5623_; +lean_object* v_a_5626_; +v_a_5626_ = lean_ctor_get(v___y_5625_, 0); +lean_inc(v_a_5626_); +lean_dec_ref(v___y_5625_); +v___y_5613_ = v___y_5623_; +v___y_5614_ = v___y_5624_; +v_a_5615_ = v_a_5626_; +goto v___jp_5612_; } else { -lean_inc(v_a_5622_); -lean_dec(v___x_5621_); -v___x_5624_ = lean_box(0); -v_isShared_5625_ = v_isSharedCheck_5660_; -goto v_resetjp_5623_; +lean_object* v_a_5627_; +v_a_5627_ = lean_ctor_get(v___y_5625_, 0); +lean_inc(v_a_5627_); +lean_dec_ref(v___y_5625_); +v___y_5618_ = v___y_5623_; +v___y_5619_ = v___y_5624_; +v_a_5620_ = v_a_5627_; +goto v___jp_5617_; } -v_resetjp_5623_: +} +v___jp_5628_: { -if (lean_obj_tag(v_a_5622_) == 1) +lean_object* v___x_5632_; double v___x_5633_; double v___x_5634_; double v___x_5635_; double v___x_5636_; double v___x_5637_; lean_object* v___x_5638_; lean_object* v___x_5639_; lean_object* v___x_5640_; lean_object* v___x_5641_; lean_object* v___x_5642_; +v___x_5632_ = lean_io_mono_nanos_now(); +v___x_5633_ = lean_float_of_nat(v___y_5630_); +v___x_5634_ = lean_float_once(&l_Lean_Meta_wrapInstance___closed__1, &l_Lean_Meta_wrapInstance___closed__1_once, _init_l_Lean_Meta_wrapInstance___closed__1); +v___x_5635_ = lean_float_div(v___x_5633_, v___x_5634_); +v___x_5636_ = lean_float_of_nat(v___x_5632_); +v___x_5637_ = lean_float_div(v___x_5636_, v___x_5634_); +v___x_5638_ = lean_box_float(v___x_5635_); +v___x_5639_ = lean_box_float(v___x_5637_); +v___x_5640_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5640_, 0, v___x_5638_); +lean_ctor_set(v___x_5640_, 1, v___x_5639_); +v___x_5641_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5641_, 0, v_a_5631_); +lean_ctor_set(v___x_5641_, 1, v___x_5640_); +v___x_5642_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11(v_cls_5596_, v_hasTrace_5535_, v___x_5597_, v_options_5502_, v___x_5599_, v___y_5629_, v___f_5595_, v___x_5641_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +lean_dec_ref(v___x_5546_); +return v___x_5642_; +} +v___jp_5643_: { -lean_object* v_val_5626_; lean_object* v___x_5627_; -lean_del_object(v___x_5624_); -v_val_5626_ = lean_ctor_get(v_a_5622_, 0); -lean_inc(v_val_5626_); -lean_dec_ref(v_a_5622_); -lean_inc_ref(v_expectedType_5566_); -v___x_5627_ = l_Lean_Meta_isProp(v_expectedType_5566_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5627_) == 0) +lean_object* v___x_5647_; +v___x_5647_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5647_, 0, v_a_5646_); +v___y_5629_ = v___y_5644_; +v___y_5630_ = v___y_5645_; +v_a_5631_ = v___x_5647_; +goto v___jp_5628_; +} +v___jp_5648_: { -lean_object* v_a_5628_; lean_object* v___x_5630_; uint8_t v_isShared_5631_; uint8_t v_isSharedCheck_5648_; -v_a_5628_ = lean_ctor_get(v___x_5627_, 0); -v_isSharedCheck_5648_ = !lean_is_exclusive(v___x_5627_); -if (v_isSharedCheck_5648_ == 0) +lean_object* v___x_5652_; +v___x_5652_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5652_, 0, v_a_5651_); +v___y_5629_ = v___y_5649_; +v___y_5630_ = v___y_5650_; +v_a_5631_ = v___x_5652_; +goto v___jp_5628_; +} +v___jp_5653_: { -v___x_5630_ = v___x_5627_; -v_isShared_5631_ = v_isSharedCheck_5648_; -goto v_resetjp_5629_; +if (lean_obj_tag(v___y_5656_) == 0) +{ +lean_object* v_a_5657_; +v_a_5657_ = lean_ctor_get(v___y_5656_, 0); +lean_inc(v_a_5657_); +lean_dec_ref(v___y_5656_); +v___y_5649_ = v___y_5654_; +v___y_5650_ = v___y_5655_; +v_a_5651_ = v_a_5657_; +goto v___jp_5648_; } else { -lean_inc(v_a_5628_); -lean_dec(v___x_5627_); -v___x_5630_ = lean_box(0); -v_isShared_5631_ = v_isSharedCheck_5648_; -goto v_resetjp_5629_; +lean_object* v_a_5658_; +v_a_5658_ = lean_ctor_get(v___y_5656_, 0); +lean_inc(v_a_5658_); +lean_dec_ref(v___y_5656_); +v___y_5644_ = v___y_5654_; +v___y_5645_ = v___y_5655_; +v_a_5646_ = v_a_5658_; +goto v___jp_5643_; } -v_resetjp_5629_: +} +v___jp_5659_: { -uint8_t v___x_5632_; -v___x_5632_ = lean_unbox(v_a_5628_); -lean_dec(v_a_5628_); -if (v___x_5632_ == 0) -{ -lean_object* v___x_5633_; -lean_del_object(v___x_5630_); -lean_inc(v_a_5573_); -lean_inc_ref(v_a_5572_); -lean_inc(v_a_5571_); -lean_inc_ref(v___x_5620_); -lean_inc_ref(v_inst_5565_); -v___x_5633_ = lean_whnf(v_inst_5565_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5633_) == 0) -{ -lean_object* v_a_5634_; lean_object* v_dummy_5635_; lean_object* v_nargs_5636_; lean_object* v___x_5637_; lean_object* v___x_5638_; lean_object* v___x_5639_; lean_object* v___x_5640_; -v_a_5634_ = lean_ctor_get(v___x_5633_, 0); -lean_inc(v_a_5634_); -lean_dec_ref(v___x_5633_); -v_dummy_5635_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); -v_nargs_5636_ = l_Lean_Expr_getAppNumArgs(v_a_5634_); -lean_inc(v_nargs_5636_); -v___x_5637_ = lean_mk_array(v_nargs_5636_, v_dummy_5635_); -v___x_5638_ = lean_unsigned_to_nat(1u); -v___x_5639_ = lean_nat_sub(v_nargs_5636_, v___x_5638_); -lean_dec(v_nargs_5636_); -v___x_5640_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10(v_inst_5565_, v_expectedType_5566_, v_hasTrace_5609_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5626_, v_a_5634_, v___x_5637_, v___x_5639_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -lean_dec_ref(v___x_5620_); -lean_dec(v___x_5639_); -return v___x_5640_; -} -else -{ -lean_dec(v_val_5626_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -return v___x_5633_; -} -} -else -{ -lean_object* v___x_5641_; uint8_t v___x_5642_; -lean_dec(v_val_5626_); -v___x_5641_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_5642_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5576_, v___x_5641_); -if (v___x_5642_ == 0) -{ -lean_object* v___x_5644_; -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -if (v_isShared_5631_ == 0) -{ -lean_ctor_set(v___x_5630_, 0, v_inst_5565_); -v___x_5644_ = v___x_5630_; -goto v_reusejp_5643_; -} -else -{ -lean_object* v_reuseFailAlloc_5645_; -v_reuseFailAlloc_5645_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5645_, 0, v_inst_5565_); -v___x_5644_ = v_reuseFailAlloc_5645_; -goto v_reusejp_5643_; -} -v_reusejp_5643_: -{ -return v___x_5644_; -} -} -else -{ -lean_object* v___x_5646_; lean_object* v___x_5647_; -lean_del_object(v___x_5630_); -v___x_5646_ = lean_box(0); -v___x_5647_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5566_, v_inst_5565_, v___x_5642_, v___x_5646_, v___x_5642_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -lean_dec_ref(v___x_5620_); -return v___x_5647_; -} -} -} -} -else -{ -lean_object* v_a_5649_; lean_object* v___x_5651_; uint8_t v_isShared_5652_; uint8_t v_isSharedCheck_5656_; -lean_dec(v_val_5626_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5649_ = lean_ctor_get(v___x_5627_, 0); -v_isSharedCheck_5656_ = !lean_is_exclusive(v___x_5627_); -if (v_isSharedCheck_5656_ == 0) -{ -v___x_5651_ = v___x_5627_; -v_isShared_5652_ = v_isSharedCheck_5656_; -goto v_resetjp_5650_; -} -else -{ -lean_inc(v_a_5649_); -lean_dec(v___x_5627_); -v___x_5651_ = lean_box(0); -v_isShared_5652_ = v_isSharedCheck_5656_; -goto v_resetjp_5650_; -} -v_resetjp_5650_: -{ -lean_object* v___x_5654_; -if (v_isShared_5652_ == 0) -{ -v___x_5654_ = v___x_5651_; -goto v_reusejp_5653_; -} -else -{ -lean_object* v_reuseFailAlloc_5655_; -v_reuseFailAlloc_5655_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5655_, 0, v_a_5649_); -v___x_5654_ = v_reuseFailAlloc_5655_; -goto v_reusejp_5653_; -} -v_reusejp_5653_: -{ -return v___x_5654_; -} -} -} -} -else -{ -lean_object* v___x_5658_; -lean_dec(v_a_5622_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -if (v_isShared_5625_ == 0) -{ -lean_ctor_set(v___x_5624_, 0, v_inst_5565_); -v___x_5658_ = v___x_5624_; -goto v_reusejp_5657_; -} -else -{ -lean_object* v_reuseFailAlloc_5659_; -v_reuseFailAlloc_5659_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5659_, 0, v_inst_5565_); -v___x_5658_ = v_reuseFailAlloc_5659_; -goto v_reusejp_5657_; -} -v_reusejp_5657_: -{ -return v___x_5658_; -} -} -} -} -else -{ -lean_object* v_a_5661_; lean_object* v___x_5663_; uint8_t v_isShared_5664_; uint8_t v_isSharedCheck_5668_; -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5661_ = lean_ctor_get(v___x_5621_, 0); -v_isSharedCheck_5668_ = !lean_is_exclusive(v___x_5621_); -if (v_isSharedCheck_5668_ == 0) -{ -v___x_5663_ = v___x_5621_; -v_isShared_5664_ = v_isSharedCheck_5668_; -goto v_resetjp_5662_; -} -else +lean_object* v___x_5660_; +v___x_5660_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__10___redArg(v_a_5499_); +if (lean_obj_tag(v___x_5660_) == 0) { +lean_object* v_a_5661_; lean_object* v___x_5662_; uint8_t v___x_5663_; +v_a_5661_ = lean_ctor_get(v___x_5660_, 0); lean_inc(v_a_5661_); -lean_dec(v___x_5621_); -v___x_5663_ = lean_box(0); -v_isShared_5664_ = v_isSharedCheck_5668_; -goto v_resetjp_5662_; -} -v_resetjp_5662_: +lean_dec_ref(v___x_5660_); +v___x_5662_ = l_Lean_trace_profiler_useHeartbeats; +v___x_5663_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5502_, v___x_5662_); +if (v___x_5663_ == 0) { -lean_object* v___x_5666_; -if (v_isShared_5664_ == 0) +lean_object* v___x_5664_; lean_object* v___x_5665_; +v___x_5664_ = lean_io_mono_nanos_now(); +lean_inc_ref(v_expectedType_5492_); +v___x_5665_ = l_Lean_Meta_isClass_x3f(v_expectedType_5492_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5665_) == 0) { -v___x_5666_ = v___x_5663_; -goto v_reusejp_5665_; +lean_object* v_a_5666_; +v_a_5666_ = lean_ctor_get(v___x_5665_, 0); +lean_inc(v_a_5666_); +lean_dec_ref(v___x_5665_); +if (lean_obj_tag(v_a_5666_) == 1) +{ +if (v___x_5599_ == 0) +{ +lean_object* v_val_5667_; lean_object* v___x_5668_; lean_object* v___x_5669_; +v_val_5667_ = lean_ctor_get(v_a_5666_, 0); +lean_inc(v_val_5667_); +lean_dec_ref(v_a_5666_); +v___x_5668_ = lean_box(0); +v___x_5669_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5492_, v_inst_5491_, v___x_5663_, v_hasTrace_5535_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5667_, v___x_5668_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +v___y_5654_ = v_a_5661_; +v___y_5655_ = v___x_5664_; +v___y_5656_ = v___x_5669_; +goto v___jp_5653_; } else { -lean_object* v_reuseFailAlloc_5667_; -v_reuseFailAlloc_5667_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5667_, 0, v_a_5661_); -v___x_5666_ = v_reuseFailAlloc_5667_; -goto v_reusejp_5665_; -} -v_reusejp_5665_: +lean_object* v_val_5670_; lean_object* v___x_5671_; lean_object* v___x_5672_; lean_object* v___x_5673_; lean_object* v___x_5674_; +v_val_5670_ = lean_ctor_get(v_a_5666_, 0); +lean_inc_n(v_val_5670_, 2); +lean_dec_ref(v_a_5666_); +v___x_5671_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); +v___x_5672_ = l_Lean_MessageData_ofName(v_val_5670_); +v___x_5673_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5673_, 0, v___x_5671_); +lean_ctor_set(v___x_5673_, 1, v___x_5672_); +v___x_5674_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_5596_, v___x_5673_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5674_) == 0) { -return v___x_5666_; +lean_object* v_a_5675_; lean_object* v___x_5676_; +v_a_5675_ = lean_ctor_get(v___x_5674_, 0); +lean_inc(v_a_5675_); +lean_dec_ref(v___x_5674_); +v___x_5676_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5492_, v_inst_5491_, v___x_5663_, v_hasTrace_5535_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5670_, v_a_5675_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +v___y_5654_ = v_a_5661_; +v___y_5655_ = v___x_5664_; +v___y_5656_ = v___x_5676_; +goto v___jp_5653_; } +else +{ +lean_object* v_a_5677_; +lean_dec(v_val_5670_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5677_ = lean_ctor_get(v___x_5674_, 0); +lean_inc(v_a_5677_); +lean_dec_ref(v___x_5674_); +v___y_5644_ = v_a_5661_; +v___y_5645_ = v___x_5664_; +v_a_5646_ = v_a_5677_; +goto v___jp_5643_; } } } else { -lean_object* v___f_5669_; lean_object* v_cls_5670_; lean_object* v___x_5671_; lean_object* v___x_5672_; uint8_t v___x_5673_; lean_object* v___y_5675_; lean_object* v___y_5676_; lean_object* v_a_5677_; lean_object* v___y_5687_; lean_object* v___y_5688_; lean_object* v_a_5689_; lean_object* v___y_5692_; lean_object* v___y_5693_; lean_object* v_a_5694_; lean_object* v___y_5697_; lean_object* v___y_5698_; lean_object* v___y_5699_; lean_object* v___y_5703_; lean_object* v___y_5704_; lean_object* v_a_5705_; lean_object* v___y_5718_; lean_object* v___y_5719_; lean_object* v_a_5720_; lean_object* v___y_5723_; lean_object* v___y_5724_; lean_object* v_a_5725_; lean_object* v___y_5728_; lean_object* v___y_5729_; lean_object* v___y_5730_; -lean_inc_ref(v_expectedType_5566_); -v___f_5669_ = lean_alloc_closure((void*)(l_Lean_Meta_wrapInstance___lam__0___boxed), 7, 1); -lean_closure_set(v___f_5669_, 0, v_expectedType_5566_); -v_cls_5670_ = ((lean_object*)(l___private_Lean_Meta_WrapInstance_0__Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_WrapInstance_3246864463____hygCtx___hyg_2_)); -v___x_5671_ = ((lean_object*)(l_Lean_addTrace___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__0___closed__1)); -v___x_5672_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__3); -v___x_5673_ = l___private_Lean_Util_Trace_0__Lean_checkTraceOption_go(v_inheritedTraceOptions_5608_, v_options_5576_, v___x_5672_); -if (v___x_5673_ == 0) -{ -lean_object* v___x_5776_; uint8_t v___x_5777_; -v___x_5776_ = l_Lean_trace_profiler; -v___x_5777_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5576_, v___x_5776_); -if (v___x_5777_ == 0) -{ -lean_object* v___x_5778_; -lean_dec_ref(v___f_5669_); -lean_inc_ref(v_expectedType_5566_); -v___x_5778_ = l_Lean_Meta_isClass_x3f(v_expectedType_5566_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5778_) == 0) -{ -lean_object* v_a_5779_; lean_object* v___x_5781_; uint8_t v_isShared_5782_; uint8_t v_isSharedCheck_5835_; -v_a_5779_ = lean_ctor_get(v___x_5778_, 0); -v_isSharedCheck_5835_ = !lean_is_exclusive(v___x_5778_); -if (v_isSharedCheck_5835_ == 0) -{ -v___x_5781_ = v___x_5778_; -v_isShared_5782_ = v_isSharedCheck_5835_; -goto v_resetjp_5780_; +lean_dec(v_a_5666_); +lean_dec_ref(v_expectedType_5492_); +v___y_5649_ = v_a_5661_; +v___y_5650_ = v___x_5664_; +v_a_5651_ = v_inst_5491_; +goto v___jp_5648_; +} } else { -lean_inc(v_a_5779_); -lean_dec(v___x_5778_); -v___x_5781_ = lean_box(0); -v_isShared_5782_ = v_isSharedCheck_5835_; -goto v_resetjp_5780_; +lean_object* v_a_5678_; +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5678_ = lean_ctor_get(v___x_5665_, 0); +lean_inc(v_a_5678_); +lean_dec_ref(v___x_5665_); +v___y_5644_ = v_a_5661_; +v___y_5645_ = v___x_5664_; +v_a_5646_ = v_a_5678_; +goto v___jp_5643_; } -v_resetjp_5780_: -{ -if (lean_obj_tag(v_a_5779_) == 1) -{ -lean_object* v_val_5783_; lean_object* v___y_5785_; lean_object* v___y_5786_; lean_object* v___y_5787_; lean_object* v___y_5788_; -lean_del_object(v___x_5781_); -v_val_5783_ = lean_ctor_get(v_a_5779_, 0); -lean_inc(v_val_5783_); -lean_dec_ref(v_a_5779_); -if (v___x_5673_ == 0) -{ -v___y_5785_ = v___x_5620_; -v___y_5786_ = v_a_5571_; -v___y_5787_ = v_a_5572_; -v___y_5788_ = v_a_5573_; -goto v___jp_5784_; } else { -lean_object* v___x_5820_; lean_object* v___x_5821_; lean_object* v___x_5822_; lean_object* v___x_5823_; -v___x_5820_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); -lean_inc(v_val_5783_); -v___x_5821_ = l_Lean_MessageData_ofName(v_val_5783_); -v___x_5822_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5822_, 0, v___x_5820_); -lean_ctor_set(v___x_5822_, 1, v___x_5821_); -v___x_5823_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_5670_, v___x_5822_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5823_) == 0) +lean_object* v___x_5679_; lean_object* v___x_5680_; +v___x_5679_ = lean_io_get_num_heartbeats(); +lean_inc_ref(v_expectedType_5492_); +v___x_5680_ = l_Lean_Meta_isClass_x3f(v_expectedType_5492_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5680_) == 0) { -lean_dec_ref(v___x_5823_); -v___y_5785_ = v___x_5620_; -v___y_5786_ = v_a_5571_; -v___y_5787_ = v_a_5572_; -v___y_5788_ = v_a_5573_; -goto v___jp_5784_; +lean_object* v_a_5681_; +v_a_5681_ = lean_ctor_get(v___x_5680_, 0); +lean_inc(v_a_5681_); +lean_dec_ref(v___x_5680_); +if (lean_obj_tag(v_a_5681_) == 1) +{ +if (v___x_5599_ == 0) +{ +lean_object* v_val_5682_; lean_object* v___x_5683_; lean_object* v___x_5684_; +v_val_5682_ = lean_ctor_get(v_a_5681_, 0); +lean_inc(v_val_5682_); +lean_dec_ref(v_a_5681_); +v___x_5683_ = lean_box(0); +v___x_5684_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5492_, v_inst_5491_, v___x_5663_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5682_, v___x_5683_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +v___y_5623_ = v_a_5661_; +v___y_5624_ = v___x_5679_; +v___y_5625_ = v___x_5684_; +goto v___jp_5622_; } else { -lean_object* v_a_5824_; lean_object* v___x_5826_; uint8_t v_isShared_5827_; uint8_t v_isSharedCheck_5831_; -lean_dec(v_val_5783_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5824_ = lean_ctor_get(v___x_5823_, 0); -v_isSharedCheck_5831_ = !lean_is_exclusive(v___x_5823_); -if (v_isSharedCheck_5831_ == 0) +lean_object* v_val_5685_; lean_object* v___x_5686_; lean_object* v___x_5687_; lean_object* v___x_5688_; lean_object* v___x_5689_; +v_val_5685_ = lean_ctor_get(v_a_5681_, 0); +lean_inc_n(v_val_5685_, 2); +lean_dec_ref(v_a_5681_); +v___x_5686_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); +v___x_5687_ = l_Lean_MessageData_ofName(v_val_5685_); +v___x_5688_ = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(v___x_5688_, 0, v___x_5686_); +lean_ctor_set(v___x_5688_, 1, v___x_5687_); +v___x_5689_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__2(v_cls_5596_, v___x_5688_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +if (lean_obj_tag(v___x_5689_) == 0) { -v___x_5826_ = v___x_5823_; -v_isShared_5827_ = v_isSharedCheck_5831_; -goto v_resetjp_5825_; +lean_object* v_a_5690_; lean_object* v___x_5691_; +v_a_5690_ = lean_ctor_get(v___x_5689_, 0); +lean_inc(v_a_5690_); +lean_dec_ref(v___x_5689_); +v___x_5691_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5492_, v_inst_5491_, v___x_5663_, v_compile_5493_, v_logCompileErrors_5494_, v_isMeta_5495_, v_val_5685_, v_a_5690_, v___x_5546_, v_a_5497_, v_a_5498_, v_a_5499_); +v___y_5623_ = v_a_5661_; +v___y_5624_ = v___x_5679_; +v___y_5625_ = v___x_5691_; +goto v___jp_5622_; } else { -lean_inc(v_a_5824_); -lean_dec(v___x_5823_); -v___x_5826_ = lean_box(0); -v_isShared_5827_ = v_isSharedCheck_5831_; -goto v_resetjp_5825_; +lean_object* v_a_5692_; +lean_dec(v_val_5685_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5692_ = lean_ctor_get(v___x_5689_, 0); +lean_inc(v_a_5692_); +lean_dec_ref(v___x_5689_); +v___y_5618_ = v_a_5661_; +v___y_5619_ = v___x_5679_; +v_a_5620_ = v_a_5692_; +goto v___jp_5617_; +} } -v_resetjp_5825_: -{ -lean_object* v___x_5829_; -if (v_isShared_5827_ == 0) -{ -v___x_5829_ = v___x_5826_; -goto v_reusejp_5828_; } else { -lean_object* v_reuseFailAlloc_5830_; -v_reuseFailAlloc_5830_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5830_, 0, v_a_5824_); -v___x_5829_ = v_reuseFailAlloc_5830_; -goto v_reusejp_5828_; +lean_dec(v_a_5681_); +lean_dec_ref(v_expectedType_5492_); +v___y_5613_ = v_a_5661_; +v___y_5614_ = v___x_5679_; +v_a_5615_ = v_inst_5491_; +goto v___jp_5612_; } -v_reusejp_5828_: -{ -return v___x_5829_; -} -} -} -} -v___jp_5784_: -{ -lean_object* v___x_5789_; -lean_inc_ref(v_expectedType_5566_); -v___x_5789_ = l_Lean_Meta_isProp(v_expectedType_5566_, v___y_5785_, v___y_5786_, v___y_5787_, v___y_5788_); -if (lean_obj_tag(v___x_5789_) == 0) -{ -lean_object* v_a_5790_; lean_object* v___x_5792_; uint8_t v_isShared_5793_; uint8_t v_isSharedCheck_5811_; -v_a_5790_ = lean_ctor_get(v___x_5789_, 0); -v_isSharedCheck_5811_ = !lean_is_exclusive(v___x_5789_); -if (v_isSharedCheck_5811_ == 0) -{ -v___x_5792_ = v___x_5789_; -v_isShared_5793_ = v_isSharedCheck_5811_; -goto v_resetjp_5791_; } else { -lean_inc(v_a_5790_); -lean_dec(v___x_5789_); -v___x_5792_ = lean_box(0); -v_isShared_5793_ = v_isSharedCheck_5811_; -goto v_resetjp_5791_; +lean_object* v_a_5693_; +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5693_ = lean_ctor_get(v___x_5680_, 0); +lean_inc(v_a_5693_); +lean_dec_ref(v___x_5680_); +v___y_5618_ = v_a_5661_; +v___y_5619_ = v___x_5679_; +v_a_5620_ = v_a_5693_; +goto v___jp_5617_; } -v_resetjp_5791_: +} +} +else { -uint8_t v___x_5794_; -v___x_5794_ = lean_unbox(v_a_5790_); -lean_dec(v_a_5790_); -if (v___x_5794_ == 0) +lean_object* v_a_5694_; lean_object* v___x_5696_; uint8_t v_isShared_5697_; uint8_t v_isSharedCheck_5701_; +lean_dec_ref(v___f_5595_); +lean_dec_ref(v___x_5546_); +lean_dec_ref(v_expectedType_5492_); +lean_dec_ref(v_inst_5491_); +v_a_5694_ = lean_ctor_get(v___x_5660_, 0); +v_isSharedCheck_5701_ = !lean_is_exclusive(v___x_5660_); +if (v_isSharedCheck_5701_ == 0) { -lean_object* v___x_5795_; -lean_del_object(v___x_5792_); -lean_inc(v___y_5788_); -lean_inc_ref(v___y_5787_); -lean_inc(v___y_5786_); -lean_inc_ref(v___y_5785_); -lean_inc_ref(v_inst_5565_); -v___x_5795_ = lean_whnf(v_inst_5565_, v___y_5785_, v___y_5786_, v___y_5787_, v___y_5788_); -if (lean_obj_tag(v___x_5795_) == 0) +v___x_5696_ = v___x_5660_; +v_isShared_5697_ = v_isSharedCheck_5701_; +goto v_resetjp_5695_; +} +else +{ +lean_inc(v_a_5694_); +lean_dec(v___x_5660_); +v___x_5696_ = lean_box(0); +v_isShared_5697_ = v_isSharedCheck_5701_; +goto v_resetjp_5695_; +} +v_resetjp_5695_: +{ +lean_object* v___x_5699_; +if (v_isShared_5697_ == 0) +{ +v___x_5699_ = v___x_5696_; +goto v_reusejp_5698_; +} +else +{ +lean_object* v_reuseFailAlloc_5700_; +v_reuseFailAlloc_5700_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5700_, 0, v_a_5694_); +v___x_5699_ = v_reuseFailAlloc_5700_; +goto v_reusejp_5698_; +} +v_reusejp_5698_: +{ +return v___x_5699_; +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(lean_object* v___x_5772_, lean_object* v_a_5773_, uint8_t v_compile_5774_, uint8_t v_logCompileErrors_5775_, uint8_t v_isMeta_5776_, lean_object* v___x_5777_, lean_object* v___x_5778_, lean_object* v_____r_5779_, lean_object* v___y_5780_, lean_object* v___y_5781_, lean_object* v___y_5782_, lean_object* v___y_5783_){ +_start: +{ +lean_object* v___x_5785_; +v___x_5785_ = l_Lean_Meta_wrapInstance(v___x_5772_, v_a_5773_, v_compile_5774_, v_logCompileErrors_5775_, v_isMeta_5776_, v___y_5780_, v___y_5781_, v___y_5782_, v___y_5783_); +if (lean_obj_tag(v___x_5785_) == 0) +{ +lean_object* v_a_5786_; lean_object* v___x_5787_; +v_a_5786_ = lean_ctor_get(v___x_5785_, 0); +lean_inc(v_a_5786_); +lean_dec_ref(v___x_5785_); +v___x_5787_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v___x_5777_, v_a_5786_, v___y_5781_); +if (lean_obj_tag(v___x_5787_) == 0) +{ +lean_object* v___x_5789_; uint8_t v_isShared_5790_; uint8_t v_isSharedCheck_5795_; +v_isSharedCheck_5795_ = !lean_is_exclusive(v___x_5787_); +if (v_isSharedCheck_5795_ == 0) +{ +lean_object* v_unused_5796_; +v_unused_5796_ = lean_ctor_get(v___x_5787_, 0); +lean_dec(v_unused_5796_); +v___x_5789_ = v___x_5787_; +v_isShared_5790_ = v_isSharedCheck_5795_; +goto v_resetjp_5788_; +} +else +{ +lean_dec(v___x_5787_); +v___x_5789_ = lean_box(0); +v_isShared_5790_ = v_isSharedCheck_5795_; +goto v_resetjp_5788_; +} +v_resetjp_5788_: +{ +lean_object* v___x_5791_; lean_object* v___x_5793_; +v___x_5791_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5791_, 0, v___x_5778_); +if (v_isShared_5790_ == 0) +{ +lean_ctor_set(v___x_5789_, 0, v___x_5791_); +v___x_5793_ = v___x_5789_; +goto v_reusejp_5792_; +} +else +{ +lean_object* v_reuseFailAlloc_5794_; +v_reuseFailAlloc_5794_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5794_, 0, v___x_5791_); +v___x_5793_ = v_reuseFailAlloc_5794_; +goto v_reusejp_5792_; +} +v_reusejp_5792_: +{ +return v___x_5793_; +} +} +} +else +{ +lean_object* v_a_5797_; lean_object* v___x_5799_; uint8_t v_isShared_5800_; uint8_t v_isSharedCheck_5804_; +v_a_5797_ = lean_ctor_get(v___x_5787_, 0); +v_isSharedCheck_5804_ = !lean_is_exclusive(v___x_5787_); +if (v_isSharedCheck_5804_ == 0) +{ +v___x_5799_ = v___x_5787_; +v_isShared_5800_ = v_isSharedCheck_5804_; +goto v_resetjp_5798_; +} +else +{ +lean_inc(v_a_5797_); +lean_dec(v___x_5787_); +v___x_5799_ = lean_box(0); +v_isShared_5800_ = v_isSharedCheck_5804_; +goto v_resetjp_5798_; +} +v_resetjp_5798_: +{ +lean_object* v___x_5802_; +if (v_isShared_5800_ == 0) +{ +v___x_5802_ = v___x_5799_; +goto v_reusejp_5801_; +} +else +{ +lean_object* v_reuseFailAlloc_5803_; +v_reuseFailAlloc_5803_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5803_, 0, v_a_5797_); +v___x_5802_ = v_reuseFailAlloc_5803_; +goto v_reusejp_5801_; +} +v_reusejp_5801_: { -lean_object* v_a_5796_; lean_object* v_dummy_5797_; lean_object* v_nargs_5798_; lean_object* v___x_5799_; lean_object* v___x_5800_; lean_object* v___x_5801_; lean_object* v___x_5802_; -v_a_5796_ = lean_ctor_get(v___x_5795_, 0); -lean_inc(v_a_5796_); -lean_dec_ref(v___x_5795_); -v_dummy_5797_ = lean_obj_once(&l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0, &l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0_once, _init_l_List_foldlM___at___00__private_Lean_Meta_WrapInstance_0__Lean_Meta_getParentStructType_x3f_spec__1___closed__0); -v_nargs_5798_ = l_Lean_Expr_getAppNumArgs(v_a_5796_); -lean_inc(v_nargs_5798_); -v___x_5799_ = lean_mk_array(v_nargs_5798_, v_dummy_5797_); -v___x_5800_ = lean_unsigned_to_nat(1u); -v___x_5801_ = lean_nat_sub(v_nargs_5798_, v___x_5800_); -lean_dec(v_nargs_5798_); -v___x_5802_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14(v_inst_5565_, v_expectedType_5566_, v___x_5777_, v_hasTrace_5609_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5783_, v_a_5796_, v___x_5799_, v___x_5801_, v___y_5785_, v___y_5786_, v___y_5787_, v___y_5788_); -lean_dec_ref(v___y_5785_); -lean_dec(v___x_5801_); return v___x_5802_; } -else -{ -lean_dec_ref(v___y_5785_); -lean_dec(v_val_5783_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -return v___x_5795_; +} } } else { -lean_object* v_options_5803_; lean_object* v___x_5804_; uint8_t v___x_5805_; -lean_dec(v_val_5783_); -v_options_5803_ = lean_ctor_get(v___y_5787_, 2); -v___x_5804_ = l_Lean_Meta_backward_inferInstanceAs_wrap_instances; -v___x_5805_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5803_, v___x_5804_); -if (v___x_5805_ == 0) +lean_object* v_a_5805_; lean_object* v___x_5807_; uint8_t v_isShared_5808_; uint8_t v_isSharedCheck_5812_; +lean_dec(v___x_5777_); +v_a_5805_ = lean_ctor_get(v___x_5785_, 0); +v_isSharedCheck_5812_ = !lean_is_exclusive(v___x_5785_); +if (v_isSharedCheck_5812_ == 0) { -lean_object* v___x_5807_; -lean_dec_ref(v___y_5785_); -lean_dec_ref(v_expectedType_5566_); -if (v_isShared_5793_ == 0) -{ -lean_ctor_set(v___x_5792_, 0, v_inst_5565_); -v___x_5807_ = v___x_5792_; -goto v_reusejp_5806_; +v___x_5807_ = v___x_5785_; +v_isShared_5808_ = v_isSharedCheck_5812_; +goto v_resetjp_5806_; } else { -lean_object* v_reuseFailAlloc_5808_; -v_reuseFailAlloc_5808_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5808_, 0, v_inst_5565_); -v___x_5807_ = v_reuseFailAlloc_5808_; -goto v_reusejp_5806_; +lean_inc(v_a_5805_); +lean_dec(v___x_5785_); +v___x_5807_ = lean_box(0); +v_isShared_5808_ = v_isSharedCheck_5812_; +goto v_resetjp_5806_; } -v_reusejp_5806_: +v_resetjp_5806_: { -return v___x_5807_; -} +lean_object* v___x_5810_; +if (v_isShared_5808_ == 0) +{ +v___x_5810_ = v___x_5807_; +goto v_reusejp_5809_; } else { -lean_object* v___x_5809_; lean_object* v___x_5810_; -lean_del_object(v___x_5792_); -v___x_5809_ = lean_box(0); -v___x_5810_ = l_Lean_Meta_mkAuxTheorem(v_expectedType_5566_, v_inst_5565_, v_hasTrace_5609_, v___x_5809_, v_hasTrace_5609_, v___y_5785_, v___y_5786_, v___y_5787_, v___y_5788_); -lean_dec_ref(v___y_5785_); +lean_object* v_reuseFailAlloc_5811_; +v_reuseFailAlloc_5811_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5811_, 0, v_a_5805_); +v___x_5810_ = v_reuseFailAlloc_5811_; +goto v_reusejp_5809_; +} +v_reusejp_5809_: +{ return v___x_5810_; } } } } -else -{ -lean_object* v_a_5812_; lean_object* v___x_5814_; uint8_t v_isShared_5815_; uint8_t v_isSharedCheck_5819_; -lean_dec_ref(v___y_5785_); -lean_dec(v_val_5783_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5812_ = lean_ctor_get(v___x_5789_, 0); -v_isSharedCheck_5819_ = !lean_is_exclusive(v___x_5789_); -if (v_isSharedCheck_5819_ == 0) -{ -v___x_5814_ = v___x_5789_; -v_isShared_5815_ = v_isSharedCheck_5819_; -goto v_resetjp_5813_; } -else -{ -lean_inc(v_a_5812_); -lean_dec(v___x_5789_); -v___x_5814_ = lean_box(0); -v_isShared_5815_ = v_isSharedCheck_5819_; -goto v_resetjp_5813_; -} -v_resetjp_5813_: -{ -lean_object* v___x_5817_; -if (v_isShared_5815_ == 0) -{ -v___x_5817_ = v___x_5814_; -goto v_reusejp_5816_; -} -else -{ -lean_object* v_reuseFailAlloc_5818_; -v_reuseFailAlloc_5818_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5818_, 0, v_a_5812_); -v___x_5817_ = v_reuseFailAlloc_5818_; -goto v_reusejp_5816_; -} -v_reusejp_5816_: -{ -return v___x_5817_; -} -} -} -} -} -else -{ -lean_object* v___x_5833_; -lean_dec(v_a_5779_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -if (v_isShared_5782_ == 0) -{ -lean_ctor_set(v___x_5781_, 0, v_inst_5565_); -v___x_5833_ = v___x_5781_; -goto v_reusejp_5832_; -} -else -{ -lean_object* v_reuseFailAlloc_5834_; -v_reuseFailAlloc_5834_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5834_, 0, v_inst_5565_); -v___x_5833_ = v_reuseFailAlloc_5834_; -goto v_reusejp_5832_; -} -v_reusejp_5832_: -{ -return v___x_5833_; -} -} -} -} -else -{ -lean_object* v_a_5836_; lean_object* v___x_5838_; uint8_t v_isShared_5839_; uint8_t v_isSharedCheck_5843_; -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5836_ = lean_ctor_get(v___x_5778_, 0); -v_isSharedCheck_5843_ = !lean_is_exclusive(v___x_5778_); -if (v_isSharedCheck_5843_ == 0) -{ -v___x_5838_ = v___x_5778_; -v_isShared_5839_ = v_isSharedCheck_5843_; -goto v_resetjp_5837_; -} -else -{ -lean_inc(v_a_5836_); -lean_dec(v___x_5778_); -v___x_5838_ = lean_box(0); -v_isShared_5839_ = v_isSharedCheck_5843_; -goto v_resetjp_5837_; -} -v_resetjp_5837_: -{ -lean_object* v___x_5841_; -if (v_isShared_5839_ == 0) -{ -v___x_5841_ = v___x_5838_; -goto v_reusejp_5840_; -} -else -{ -lean_object* v_reuseFailAlloc_5842_; -v_reuseFailAlloc_5842_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5842_, 0, v_a_5836_); -v___x_5841_ = v_reuseFailAlloc_5842_; -goto v_reusejp_5840_; -} -v_reusejp_5840_: -{ -return v___x_5841_; -} -} -} -} -else -{ -goto v___jp_5733_; -} -} -else -{ -goto v___jp_5733_; -} -v___jp_5674_: -{ -lean_object* v___x_5678_; double v___x_5679_; double v___x_5680_; lean_object* v___x_5681_; lean_object* v___x_5682_; lean_object* v___x_5683_; lean_object* v___x_5684_; lean_object* v___x_5685_; -v___x_5678_ = lean_io_get_num_heartbeats(); -v___x_5679_ = lean_float_of_nat(v___y_5675_); -v___x_5680_ = lean_float_of_nat(v___x_5678_); -v___x_5681_ = lean_box_float(v___x_5679_); -v___x_5682_ = lean_box_float(v___x_5680_); -v___x_5683_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5683_, 0, v___x_5681_); -lean_ctor_set(v___x_5683_, 1, v___x_5682_); -v___x_5684_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5684_, 0, v_a_5677_); -lean_ctor_set(v___x_5684_, 1, v___x_5683_); -v___x_5685_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12(v_cls_5670_, v_hasTrace_5609_, v___x_5671_, v_options_5576_, v___x_5673_, v___y_5676_, v___f_5669_, v___x_5684_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -lean_dec_ref(v___x_5620_); -return v___x_5685_; -} -v___jp_5686_: -{ -lean_object* v___x_5690_; -v___x_5690_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_5690_, 0, v_a_5689_); -v___y_5675_ = v___y_5687_; -v___y_5676_ = v___y_5688_; -v_a_5677_ = v___x_5690_; -goto v___jp_5674_; -} -v___jp_5691_: -{ -lean_object* v___x_5695_; -v___x_5695_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_5695_, 0, v_a_5694_); -v___y_5675_ = v___y_5692_; -v___y_5676_ = v___y_5693_; -v_a_5677_ = v___x_5695_; -goto v___jp_5674_; -} -v___jp_5696_: -{ -if (lean_obj_tag(v___y_5699_) == 0) -{ -lean_object* v_a_5700_; -v_a_5700_ = lean_ctor_get(v___y_5699_, 0); -lean_inc(v_a_5700_); -lean_dec_ref(v___y_5699_); -v___y_5687_ = v___y_5697_; -v___y_5688_ = v___y_5698_; -v_a_5689_ = v_a_5700_; -goto v___jp_5686_; -} -else -{ -lean_object* v_a_5701_; -v_a_5701_ = lean_ctor_get(v___y_5699_, 0); -lean_inc(v_a_5701_); -lean_dec_ref(v___y_5699_); -v___y_5692_ = v___y_5697_; -v___y_5693_ = v___y_5698_; -v_a_5694_ = v_a_5701_; -goto v___jp_5691_; -} -} -v___jp_5702_: -{ -lean_object* v___x_5706_; double v___x_5707_; double v___x_5708_; double v___x_5709_; double v___x_5710_; double v___x_5711_; lean_object* v___x_5712_; lean_object* v___x_5713_; lean_object* v___x_5714_; lean_object* v___x_5715_; lean_object* v___x_5716_; -v___x_5706_ = lean_io_mono_nanos_now(); -v___x_5707_ = lean_float_of_nat(v___y_5703_); -v___x_5708_ = lean_float_once(&l_Lean_Meta_wrapInstance___closed__1, &l_Lean_Meta_wrapInstance___closed__1_once, _init_l_Lean_Meta_wrapInstance___closed__1); -v___x_5709_ = lean_float_div(v___x_5707_, v___x_5708_); -v___x_5710_ = lean_float_of_nat(v___x_5706_); -v___x_5711_ = lean_float_div(v___x_5710_, v___x_5708_); -v___x_5712_ = lean_box_float(v___x_5709_); -v___x_5713_ = lean_box_float(v___x_5711_); -v___x_5714_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5714_, 0, v___x_5712_); -lean_ctor_set(v___x_5714_, 1, v___x_5713_); -v___x_5715_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5715_, 0, v_a_5705_); -lean_ctor_set(v___x_5715_, 1, v___x_5714_); -v___x_5716_ = l___private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12(v_cls_5670_, v_hasTrace_5609_, v___x_5671_, v_options_5576_, v___x_5673_, v___y_5704_, v___f_5669_, v___x_5715_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -lean_dec_ref(v___x_5620_); -return v___x_5716_; -} -v___jp_5717_: -{ -lean_object* v___x_5721_; -v___x_5721_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_5721_, 0, v_a_5720_); -v___y_5703_ = v___y_5718_; -v___y_5704_ = v___y_5719_; -v_a_5705_ = v___x_5721_; -goto v___jp_5702_; -} -v___jp_5722_: -{ -lean_object* v___x_5726_; -v___x_5726_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_5726_, 0, v_a_5725_); -v___y_5703_ = v___y_5723_; -v___y_5704_ = v___y_5724_; -v_a_5705_ = v___x_5726_; -goto v___jp_5702_; -} -v___jp_5727_: -{ -if (lean_obj_tag(v___y_5730_) == 0) -{ -lean_object* v_a_5731_; -v_a_5731_ = lean_ctor_get(v___y_5730_, 0); -lean_inc(v_a_5731_); -lean_dec_ref(v___y_5730_); -v___y_5723_ = v___y_5728_; -v___y_5724_ = v___y_5729_; -v_a_5725_ = v_a_5731_; -goto v___jp_5722_; -} -else -{ -lean_object* v_a_5732_; -v_a_5732_ = lean_ctor_get(v___y_5730_, 0); -lean_inc(v_a_5732_); -lean_dec_ref(v___y_5730_); -v___y_5718_ = v___y_5728_; -v___y_5719_ = v___y_5729_; -v_a_5720_ = v_a_5732_; -goto v___jp_5717_; -} -} -v___jp_5733_: -{ -lean_object* v___x_5734_; -v___x_5734_ = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___00Lean_Meta_wrapInstance_spec__11___redArg(v_a_5573_); -if (lean_obj_tag(v___x_5734_) == 0) -{ -lean_object* v_a_5735_; lean_object* v___x_5736_; uint8_t v___x_5737_; -v_a_5735_ = lean_ctor_get(v___x_5734_, 0); -lean_inc(v_a_5735_); -lean_dec_ref(v___x_5734_); -v___x_5736_ = l_Lean_trace_profiler_useHeartbeats; -v___x_5737_ = l_Lean_Option_get___at___00Lean_Meta_wrapInstance_spec__0(v_options_5576_, v___x_5736_); -if (v___x_5737_ == 0) -{ -lean_object* v___x_5738_; lean_object* v___x_5739_; -v___x_5738_ = lean_io_mono_nanos_now(); -lean_inc_ref(v_expectedType_5566_); -v___x_5739_ = l_Lean_Meta_isClass_x3f(v_expectedType_5566_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5739_) == 0) -{ -lean_object* v_a_5740_; -v_a_5740_ = lean_ctor_get(v___x_5739_, 0); -lean_inc(v_a_5740_); -lean_dec_ref(v___x_5739_); -if (lean_obj_tag(v_a_5740_) == 1) -{ -if (v___x_5673_ == 0) -{ -lean_object* v_val_5741_; lean_object* v___x_5742_; lean_object* v___x_5743_; -v_val_5741_ = lean_ctor_get(v_a_5740_, 0); -lean_inc(v_val_5741_); -lean_dec_ref(v_a_5740_); -v___x_5742_ = lean_box(0); -v___x_5743_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5566_, v_inst_5565_, v___x_5737_, v_hasTrace_5609_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5741_, v___x_5742_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -v___y_5728_ = v___x_5738_; -v___y_5729_ = v_a_5735_; -v___y_5730_ = v___x_5743_; -goto v___jp_5727_; -} -else -{ -lean_object* v_val_5744_; lean_object* v___x_5745_; lean_object* v___x_5746_; lean_object* v___x_5747_; lean_object* v___x_5748_; -v_val_5744_ = lean_ctor_get(v_a_5740_, 0); -lean_inc_n(v_val_5744_, 2); -lean_dec_ref(v_a_5740_); -v___x_5745_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); -v___x_5746_ = l_Lean_MessageData_ofName(v_val_5744_); -v___x_5747_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5747_, 0, v___x_5745_); -lean_ctor_set(v___x_5747_, 1, v___x_5746_); -v___x_5748_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_5670_, v___x_5747_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5748_) == 0) -{ -lean_object* v_a_5749_; lean_object* v___x_5750_; -v_a_5749_ = lean_ctor_get(v___x_5748_, 0); -lean_inc(v_a_5749_); -lean_dec_ref(v___x_5748_); -v___x_5750_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5566_, v_inst_5565_, v___x_5737_, v_hasTrace_5609_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5744_, v_a_5749_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -v___y_5728_ = v___x_5738_; -v___y_5729_ = v_a_5735_; -v___y_5730_ = v___x_5750_; -goto v___jp_5727_; -} -else -{ -lean_object* v_a_5751_; -lean_dec(v_val_5744_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5751_ = lean_ctor_get(v___x_5748_, 0); -lean_inc(v_a_5751_); -lean_dec_ref(v___x_5748_); -v___y_5718_ = v___x_5738_; -v___y_5719_ = v_a_5735_; -v_a_5720_ = v_a_5751_; -goto v___jp_5717_; -} -} -} -else -{ -lean_dec(v_a_5740_); -lean_dec_ref(v_expectedType_5566_); -v___y_5723_ = v___x_5738_; -v___y_5724_ = v_a_5735_; -v_a_5725_ = v_inst_5565_; -goto v___jp_5722_; -} -} -else -{ -lean_object* v_a_5752_; -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5752_ = lean_ctor_get(v___x_5739_, 0); -lean_inc(v_a_5752_); -lean_dec_ref(v___x_5739_); -v___y_5718_ = v___x_5738_; -v___y_5719_ = v_a_5735_; -v_a_5720_ = v_a_5752_; -goto v___jp_5717_; -} -} -else -{ -lean_object* v___x_5753_; lean_object* v___x_5754_; -v___x_5753_ = lean_io_get_num_heartbeats(); -lean_inc_ref(v_expectedType_5566_); -v___x_5754_ = l_Lean_Meta_isClass_x3f(v_expectedType_5566_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5754_) == 0) -{ -lean_object* v_a_5755_; -v_a_5755_ = lean_ctor_get(v___x_5754_, 0); -lean_inc(v_a_5755_); -lean_dec_ref(v___x_5754_); -if (lean_obj_tag(v_a_5755_) == 1) -{ -if (v___x_5673_ == 0) -{ -lean_object* v_val_5756_; lean_object* v___x_5757_; lean_object* v___x_5758_; -v_val_5756_ = lean_ctor_get(v_a_5755_, 0); -lean_inc(v_val_5756_); -lean_dec_ref(v_a_5755_); -v___x_5757_ = lean_box(0); -v___x_5758_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5566_, v_inst_5565_, v___x_5737_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5756_, v___x_5757_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -v___y_5697_ = v___x_5753_; -v___y_5698_ = v_a_5735_; -v___y_5699_ = v___x_5758_; -goto v___jp_5696_; -} -else -{ -lean_object* v_val_5759_; lean_object* v___x_5760_; lean_object* v___x_5761_; lean_object* v___x_5762_; lean_object* v___x_5763_; -v_val_5759_ = lean_ctor_get(v_a_5755_, 0); -lean_inc_n(v_val_5759_, 2); -lean_dec_ref(v_a_5755_); -v___x_5760_ = lean_obj_once(&l_Lean_Meta_wrapInstance___closed__3, &l_Lean_Meta_wrapInstance___closed__3_once, _init_l_Lean_Meta_wrapInstance___closed__3); -v___x_5761_ = l_Lean_MessageData_ofName(v_val_5759_); -v___x_5762_ = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(v___x_5762_, 0, v___x_5760_); -lean_ctor_set(v___x_5762_, 1, v___x_5761_); -v___x_5763_ = l_Lean_addTrace___at___00Lean_Meta_wrapInstance_spec__3(v_cls_5670_, v___x_5762_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -if (lean_obj_tag(v___x_5763_) == 0) -{ -lean_object* v_a_5764_; lean_object* v___x_5765_; -v_a_5764_ = lean_ctor_get(v___x_5763_, 0); -lean_inc(v_a_5764_); -lean_dec_ref(v___x_5763_); -v___x_5765_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5566_, v_inst_5565_, v___x_5737_, v_compile_5567_, v_logCompileErrors_5568_, v_isMeta_5569_, v_val_5759_, v_a_5764_, v___x_5620_, v_a_5571_, v_a_5572_, v_a_5573_); -v___y_5697_ = v___x_5753_; -v___y_5698_ = v_a_5735_; -v___y_5699_ = v___x_5765_; -goto v___jp_5696_; -} -else -{ -lean_object* v_a_5766_; -lean_dec(v_val_5759_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5766_ = lean_ctor_get(v___x_5763_, 0); -lean_inc(v_a_5766_); -lean_dec_ref(v___x_5763_); -v___y_5692_ = v___x_5753_; -v___y_5693_ = v_a_5735_; -v_a_5694_ = v_a_5766_; -goto v___jp_5691_; -} -} -} -else -{ -lean_dec(v_a_5755_); -lean_dec_ref(v_expectedType_5566_); -v___y_5687_ = v___x_5753_; -v___y_5688_ = v_a_5735_; -v_a_5689_ = v_inst_5565_; -goto v___jp_5686_; -} -} -else -{ -lean_object* v_a_5767_; -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5767_ = lean_ctor_get(v___x_5754_, 0); -lean_inc(v_a_5767_); -lean_dec_ref(v___x_5754_); -v___y_5692_ = v___x_5753_; -v___y_5693_ = v_a_5735_; -v_a_5694_ = v_a_5767_; -goto v___jp_5691_; -} -} -} -else -{ -lean_object* v_a_5768_; lean_object* v___x_5770_; uint8_t v_isShared_5771_; uint8_t v_isSharedCheck_5775_; -lean_dec_ref(v___f_5669_); -lean_dec_ref(v___x_5620_); -lean_dec_ref(v_expectedType_5566_); -lean_dec_ref(v_inst_5565_); -v_a_5768_ = lean_ctor_get(v___x_5734_, 0); -v_isSharedCheck_5775_ = !lean_is_exclusive(v___x_5734_); -if (v_isSharedCheck_5775_ == 0) -{ -v___x_5770_ = v___x_5734_; -v_isShared_5771_ = v_isSharedCheck_5775_; -goto v_resetjp_5769_; -} -else -{ -lean_inc(v_a_5768_); -lean_dec(v___x_5734_); -v___x_5770_ = lean_box(0); -v_isShared_5771_ = v_isSharedCheck_5775_; -goto v_resetjp_5769_; -} -v_resetjp_5769_: -{ -lean_object* v___x_5773_; -if (v_isShared_5771_ == 0) -{ -v___x_5773_ = v___x_5770_; -goto v_reusejp_5772_; -} -else -{ -lean_object* v_reuseFailAlloc_5774_; -v_reuseFailAlloc_5774_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5774_, 0, v_a_5768_); -v___x_5773_ = v_reuseFailAlloc_5774_; -goto v_reusejp_5772_; -} -v_reusejp_5772_: -{ -return v___x_5773_; -} -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(lean_object* v___x_5846_, lean_object* v_a_5847_, uint8_t v_compile_5848_, uint8_t v_logCompileErrors_5849_, uint8_t v_isMeta_5850_, lean_object* v___x_5851_, lean_object* v___x_5852_, lean_object* v_____r_5853_, lean_object* v___y_5854_, lean_object* v___y_5855_, lean_object* v___y_5856_, lean_object* v___y_5857_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4___boxed(lean_object* v___x_5813_, lean_object* v_a_5814_, lean_object* v_compile_5815_, lean_object* v_logCompileErrors_5816_, lean_object* v_isMeta_5817_, lean_object* v___x_5818_, lean_object* v___x_5819_, lean_object* v_____r_5820_, lean_object* v___y_5821_, lean_object* v___y_5822_, lean_object* v___y_5823_, lean_object* v___y_5824_, lean_object* v___y_5825_){ _start: { -lean_object* v___x_5859_; -v___x_5859_ = l_Lean_Meta_wrapInstance(v___x_5846_, v_a_5847_, v_compile_5848_, v_logCompileErrors_5849_, v_isMeta_5850_, v___y_5854_, v___y_5855_, v___y_5856_, v___y_5857_); -if (lean_obj_tag(v___x_5859_) == 0) -{ -lean_object* v_a_5860_; lean_object* v___x_5861_; -v_a_5860_ = lean_ctor_get(v___x_5859_, 0); -lean_inc(v_a_5860_); -lean_dec_ref(v___x_5859_); -v___x_5861_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v___x_5851_, v_a_5860_, v___y_5855_); -if (lean_obj_tag(v___x_5861_) == 0) -{ -lean_object* v___x_5863_; uint8_t v_isShared_5864_; uint8_t v_isSharedCheck_5869_; -v_isSharedCheck_5869_ = !lean_is_exclusive(v___x_5861_); -if (v_isSharedCheck_5869_ == 0) -{ -lean_object* v_unused_5870_; -v_unused_5870_ = lean_ctor_get(v___x_5861_, 0); -lean_dec(v_unused_5870_); -v___x_5863_ = v___x_5861_; -v_isShared_5864_ = v_isSharedCheck_5869_; -goto v_resetjp_5862_; -} -else -{ -lean_dec(v___x_5861_); -v___x_5863_ = lean_box(0); -v_isShared_5864_ = v_isSharedCheck_5869_; -goto v_resetjp_5862_; -} -v_resetjp_5862_: -{ -lean_object* v___x_5865_; lean_object* v___x_5867_; -v___x_5865_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_5865_, 0, v___x_5852_); -if (v_isShared_5864_ == 0) -{ -lean_ctor_set(v___x_5863_, 0, v___x_5865_); -v___x_5867_ = v___x_5863_; -goto v_reusejp_5866_; -} -else -{ -lean_object* v_reuseFailAlloc_5868_; -v_reuseFailAlloc_5868_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5868_, 0, v___x_5865_); -v___x_5867_ = v_reuseFailAlloc_5868_; -goto v_reusejp_5866_; -} -v_reusejp_5866_: -{ -return v___x_5867_; +uint8_t v_compile_boxed_5826_; uint8_t v_logCompileErrors_boxed_5827_; uint8_t v_isMeta_boxed_5828_; lean_object* v_res_5829_; +v_compile_boxed_5826_ = lean_unbox(v_compile_5815_); +v_logCompileErrors_boxed_5827_ = lean_unbox(v_logCompileErrors_5816_); +v_isMeta_boxed_5828_ = lean_unbox(v_isMeta_5817_); +v_res_5829_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___lam__4(v___x_5813_, v_a_5814_, v_compile_boxed_5826_, v_logCompileErrors_boxed_5827_, v_isMeta_boxed_5828_, v___x_5818_, v___x_5819_, v_____r_5820_, v___y_5821_, v___y_5822_, v___y_5823_, v___y_5824_); +lean_dec(v___y_5824_); +lean_dec_ref(v___y_5823_); +lean_dec(v___y_5822_); +lean_dec_ref(v___y_5821_); +return v_res_5829_; } } -} -else -{ -lean_object* v_a_5871_; lean_object* v___x_5873_; uint8_t v_isShared_5874_; uint8_t v_isSharedCheck_5878_; -v_a_5871_ = lean_ctor_get(v___x_5861_, 0); -v_isSharedCheck_5878_ = !lean_is_exclusive(v___x_5861_); -if (v_isSharedCheck_5878_ == 0) -{ -v___x_5873_ = v___x_5861_; -v_isShared_5874_ = v_isSharedCheck_5878_; -goto v_resetjp_5872_; -} -else -{ -lean_inc(v_a_5871_); -lean_dec(v___x_5861_); -v___x_5873_ = lean_box(0); -v_isShared_5874_ = v_isSharedCheck_5878_; -goto v_resetjp_5872_; -} -v_resetjp_5872_: -{ -lean_object* v___x_5876_; -if (v_isShared_5874_ == 0) -{ -v___x_5876_ = v___x_5873_; -goto v_reusejp_5875_; -} -else -{ -lean_object* v_reuseFailAlloc_5877_; -v_reuseFailAlloc_5877_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5877_, 0, v_a_5871_); -v___x_5876_ = v_reuseFailAlloc_5877_; -goto v_reusejp_5875_; -} -v_reusejp_5875_: -{ -return v___x_5876_; -} -} -} -} -else -{ -lean_object* v_a_5879_; lean_object* v___x_5881_; uint8_t v_isShared_5882_; uint8_t v_isSharedCheck_5886_; -lean_dec(v___x_5851_); -v_a_5879_ = lean_ctor_get(v___x_5859_, 0); -v_isSharedCheck_5886_ = !lean_is_exclusive(v___x_5859_); -if (v_isSharedCheck_5886_ == 0) -{ -v___x_5881_ = v___x_5859_; -v_isShared_5882_ = v_isSharedCheck_5886_; -goto v_resetjp_5880_; -} -else -{ -lean_inc(v_a_5879_); -lean_dec(v___x_5859_); -v___x_5881_ = lean_box(0); -v_isShared_5882_ = v_isSharedCheck_5886_; -goto v_resetjp_5880_; -} -v_resetjp_5880_: -{ -lean_object* v___x_5884_; -if (v_isShared_5882_ == 0) -{ -v___x_5884_ = v___x_5881_; -goto v_reusejp_5883_; -} -else -{ -lean_object* v_reuseFailAlloc_5885_; -v_reuseFailAlloc_5885_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_5885_, 0, v_a_5879_); -v___x_5884_ = v_reuseFailAlloc_5885_; -goto v_reusejp_5883_; -} -v_reusejp_5883_: -{ -return v___x_5884_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4___boxed(lean_object* v___x_5887_, lean_object* v_a_5888_, lean_object* v_compile_5889_, lean_object* v_logCompileErrors_5890_, lean_object* v_isMeta_5891_, lean_object* v___x_5892_, lean_object* v___x_5893_, lean_object* v_____r_5894_, lean_object* v___y_5895_, lean_object* v___y_5896_, lean_object* v___y_5897_, lean_object* v___y_5898_, lean_object* v___y_5899_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__1___boxed(lean_object* v_expectedType_5830_, lean_object* v_inst_5831_, lean_object* v___x_5832_, lean_object* v_hasTrace_5833_, lean_object* v_compile_5834_, lean_object* v_logCompileErrors_5835_, lean_object* v_isMeta_5836_, lean_object* v_val_5837_, lean_object* v_____r_5838_, lean_object* v___y_5839_, lean_object* v___y_5840_, lean_object* v___y_5841_, lean_object* v___y_5842_, lean_object* v___y_5843_){ _start: { -uint8_t v_compile_boxed_5900_; uint8_t v_logCompileErrors_boxed_5901_; uint8_t v_isMeta_boxed_5902_; lean_object* v_res_5903_; -v_compile_boxed_5900_ = lean_unbox(v_compile_5889_); -v_logCompileErrors_boxed_5901_ = lean_unbox(v_logCompileErrors_5890_); -v_isMeta_boxed_5902_ = lean_unbox(v_isMeta_5891_); -v_res_5903_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___lam__4(v___x_5887_, v_a_5888_, v_compile_boxed_5900_, v_logCompileErrors_boxed_5901_, v_isMeta_boxed_5902_, v___x_5892_, v___x_5893_, v_____r_5894_, v___y_5895_, v___y_5896_, v___y_5897_, v___y_5898_); -lean_dec(v___y_5898_); -lean_dec_ref(v___y_5897_); -lean_dec(v___y_5896_); -lean_dec_ref(v___y_5895_); -return v_res_5903_; +uint8_t v___x_161530__boxed_5844_; uint8_t v_hasTrace_boxed_5845_; uint8_t v_compile_boxed_5846_; uint8_t v_logCompileErrors_boxed_5847_; uint8_t v_isMeta_boxed_5848_; lean_object* v_res_5849_; +v___x_161530__boxed_5844_ = lean_unbox(v___x_5832_); +v_hasTrace_boxed_5845_ = lean_unbox(v_hasTrace_5833_); +v_compile_boxed_5846_ = lean_unbox(v_compile_5834_); +v_logCompileErrors_boxed_5847_ = lean_unbox(v_logCompileErrors_5835_); +v_isMeta_boxed_5848_ = lean_unbox(v_isMeta_5836_); +v_res_5849_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5830_, v_inst_5831_, v___x_161530__boxed_5844_, v_hasTrace_boxed_5845_, v_compile_boxed_5846_, v_logCompileErrors_boxed_5847_, v_isMeta_boxed_5848_, v_val_5837_, v_____r_5838_, v___y_5839_, v___y_5840_, v___y_5841_, v___y_5842_); +lean_dec(v___y_5842_); +lean_dec_ref(v___y_5841_); +lean_dec(v___y_5840_); +lean_dec_ref(v___y_5839_); +return v_res_5849_; } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__1___boxed(lean_object* v_expectedType_5904_, lean_object* v_inst_5905_, lean_object* v___x_5906_, lean_object* v_hasTrace_5907_, lean_object* v_compile_5908_, lean_object* v_logCompileErrors_5909_, lean_object* v_isMeta_5910_, lean_object* v_val_5911_, lean_object* v_____r_5912_, lean_object* v___y_5913_, lean_object* v___y_5914_, lean_object* v___y_5915_, lean_object* v___y_5916_, lean_object* v___y_5917_){ +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2___boxed(lean_object* v_expectedType_5850_, lean_object* v_inst_5851_, lean_object* v___x_5852_, lean_object* v_compile_5853_, lean_object* v_logCompileErrors_5854_, lean_object* v_isMeta_5855_, lean_object* v_val_5856_, lean_object* v_____r_5857_, lean_object* v___y_5858_, lean_object* v___y_5859_, lean_object* v___y_5860_, lean_object* v___y_5861_, lean_object* v___y_5862_){ _start: { -uint8_t v___x_162849__boxed_5918_; uint8_t v_hasTrace_boxed_5919_; uint8_t v_compile_boxed_5920_; uint8_t v_logCompileErrors_boxed_5921_; uint8_t v_isMeta_boxed_5922_; lean_object* v_res_5923_; -v___x_162849__boxed_5918_ = lean_unbox(v___x_5906_); -v_hasTrace_boxed_5919_ = lean_unbox(v_hasTrace_5907_); -v_compile_boxed_5920_ = lean_unbox(v_compile_5908_); -v_logCompileErrors_boxed_5921_ = lean_unbox(v_logCompileErrors_5909_); -v_isMeta_boxed_5922_ = lean_unbox(v_isMeta_5910_); -v_res_5923_ = l_Lean_Meta_wrapInstance___lam__1(v_expectedType_5904_, v_inst_5905_, v___x_162849__boxed_5918_, v_hasTrace_boxed_5919_, v_compile_boxed_5920_, v_logCompileErrors_boxed_5921_, v_isMeta_boxed_5922_, v_val_5911_, v_____r_5912_, v___y_5913_, v___y_5914_, v___y_5915_, v___y_5916_); -lean_dec(v___y_5916_); -lean_dec_ref(v___y_5915_); -lean_dec(v___y_5914_); -lean_dec_ref(v___y_5913_); -return v_res_5923_; +uint8_t v___x_161555__boxed_5863_; uint8_t v_compile_boxed_5864_; uint8_t v_logCompileErrors_boxed_5865_; uint8_t v_isMeta_boxed_5866_; lean_object* v_res_5867_; +v___x_161555__boxed_5863_ = lean_unbox(v___x_5852_); +v_compile_boxed_5864_ = lean_unbox(v_compile_5853_); +v_logCompileErrors_boxed_5865_ = lean_unbox(v_logCompileErrors_5854_); +v_isMeta_boxed_5866_ = lean_unbox(v_isMeta_5855_); +v_res_5867_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5850_, v_inst_5851_, v___x_161555__boxed_5863_, v_compile_boxed_5864_, v_logCompileErrors_boxed_5865_, v_isMeta_boxed_5866_, v_val_5856_, v_____r_5857_, v___y_5858_, v___y_5859_, v___y_5860_, v___y_5861_); +lean_dec(v___y_5861_); +lean_dec_ref(v___y_5860_); +lean_dec(v___y_5859_); +lean_dec_ref(v___y_5858_); +return v_res_5867_; } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___lam__2___boxed(lean_object* v_expectedType_5924_, lean_object* v_inst_5925_, lean_object* v___x_5926_, lean_object* v_compile_5927_, lean_object* v_logCompileErrors_5928_, lean_object* v_isMeta_5929_, lean_object* v_val_5930_, lean_object* v_____r_5931_, lean_object* v___y_5932_, lean_object* v___y_5933_, lean_object* v___y_5934_, lean_object* v___y_5935_, lean_object* v___y_5936_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21___boxed(lean_object* v_inst_5868_, lean_object* v_expectedType_5869_, lean_object* v___x_5870_, lean_object* v___x_5871_, lean_object* v_compile_5872_, lean_object* v_logCompileErrors_5873_, lean_object* v_isMeta_5874_, lean_object* v_val_5875_, lean_object* v_x_5876_, lean_object* v_x_5877_, lean_object* v_x_5878_, lean_object* v___y_5879_, lean_object* v___y_5880_, lean_object* v___y_5881_, lean_object* v___y_5882_, lean_object* v___y_5883_){ _start: { -uint8_t v___x_162874__boxed_5937_; uint8_t v_compile_boxed_5938_; uint8_t v_logCompileErrors_boxed_5939_; uint8_t v_isMeta_boxed_5940_; lean_object* v_res_5941_; -v___x_162874__boxed_5937_ = lean_unbox(v___x_5926_); -v_compile_boxed_5938_ = lean_unbox(v_compile_5927_); -v_logCompileErrors_boxed_5939_ = lean_unbox(v_logCompileErrors_5928_); -v_isMeta_boxed_5940_ = lean_unbox(v_isMeta_5929_); -v_res_5941_ = l_Lean_Meta_wrapInstance___lam__2(v_expectedType_5924_, v_inst_5925_, v___x_162874__boxed_5937_, v_compile_boxed_5938_, v_logCompileErrors_boxed_5939_, v_isMeta_boxed_5940_, v_val_5930_, v_____r_5931_, v___y_5932_, v___y_5933_, v___y_5934_, v___y_5935_); -lean_dec(v___y_5935_); -lean_dec_ref(v___y_5934_); -lean_dec(v___y_5933_); -lean_dec_ref(v___y_5932_); -return v_res_5941_; +uint8_t v___x_161592__boxed_5884_; uint8_t v___x_161593__boxed_5885_; uint8_t v_compile_boxed_5886_; uint8_t v_logCompileErrors_boxed_5887_; uint8_t v_isMeta_boxed_5888_; lean_object* v_res_5889_; +v___x_161592__boxed_5884_ = lean_unbox(v___x_5870_); +v___x_161593__boxed_5885_ = lean_unbox(v___x_5871_); +v_compile_boxed_5886_ = lean_unbox(v_compile_5872_); +v_logCompileErrors_boxed_5887_ = lean_unbox(v_logCompileErrors_5873_); +v_isMeta_boxed_5888_ = lean_unbox(v_isMeta_5874_); +v_res_5889_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13_spec__21(v_inst_5868_, v_expectedType_5869_, v___x_161592__boxed_5884_, v___x_161593__boxed_5885_, v_compile_boxed_5886_, v_logCompileErrors_boxed_5887_, v_isMeta_boxed_5888_, v_val_5875_, v_x_5876_, v_x_5877_, v_x_5878_, v___y_5879_, v___y_5880_, v___y_5881_, v___y_5882_); +lean_dec(v___y_5882_); +lean_dec_ref(v___y_5881_); +lean_dec(v___y_5880_); +lean_dec_ref(v___y_5879_); +return v_res_5889_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22___boxed(lean_object* v_inst_5942_, lean_object* v_expectedType_5943_, lean_object* v___x_5944_, lean_object* v___x_5945_, lean_object* v_compile_5946_, lean_object* v_logCompileErrors_5947_, lean_object* v_isMeta_5948_, lean_object* v_val_5949_, lean_object* v_x_5950_, lean_object* v_x_5951_, lean_object* v_x_5952_, lean_object* v___y_5953_, lean_object* v___y_5954_, lean_object* v___y_5955_, lean_object* v___y_5956_, lean_object* v___y_5957_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24___boxed(lean_object* v_inst_5890_, lean_object* v_expectedType_5891_, lean_object* v___x_5892_, lean_object* v_compile_5893_, lean_object* v_logCompileErrors_5894_, lean_object* v_isMeta_5895_, lean_object* v_val_5896_, lean_object* v_x_5897_, lean_object* v_x_5898_, lean_object* v_x_5899_, lean_object* v___y_5900_, lean_object* v___y_5901_, lean_object* v___y_5902_, lean_object* v___y_5903_, lean_object* v___y_5904_){ _start: { -uint8_t v___x_162911__boxed_5958_; uint8_t v___x_162912__boxed_5959_; uint8_t v_compile_boxed_5960_; uint8_t v_logCompileErrors_boxed_5961_; uint8_t v_isMeta_boxed_5962_; lean_object* v_res_5963_; -v___x_162911__boxed_5958_ = lean_unbox(v___x_5944_); -v___x_162912__boxed_5959_ = lean_unbox(v___x_5945_); -v_compile_boxed_5960_ = lean_unbox(v_compile_5946_); -v_logCompileErrors_boxed_5961_ = lean_unbox(v_logCompileErrors_5947_); -v_isMeta_boxed_5962_ = lean_unbox(v_isMeta_5948_); -v_res_5963_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14_spec__22(v_inst_5942_, v_expectedType_5943_, v___x_162911__boxed_5958_, v___x_162912__boxed_5959_, v_compile_boxed_5960_, v_logCompileErrors_boxed_5961_, v_isMeta_boxed_5962_, v_val_5949_, v_x_5950_, v_x_5951_, v_x_5952_, v___y_5953_, v___y_5954_, v___y_5955_, v___y_5956_); -lean_dec(v___y_5956_); -lean_dec_ref(v___y_5955_); -lean_dec(v___y_5954_); -lean_dec_ref(v___y_5953_); -return v_res_5963_; +uint8_t v___x_161746__boxed_5905_; uint8_t v_compile_boxed_5906_; uint8_t v_logCompileErrors_boxed_5907_; uint8_t v_isMeta_boxed_5908_; lean_object* v_res_5909_; +v___x_161746__boxed_5905_ = lean_unbox(v___x_5892_); +v_compile_boxed_5906_ = lean_unbox(v_compile_5893_); +v_logCompileErrors_boxed_5907_ = lean_unbox(v_logCompileErrors_5894_); +v_isMeta_boxed_5908_ = lean_unbox(v_isMeta_5895_); +v_res_5909_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15_spec__24(v_inst_5890_, v_expectedType_5891_, v___x_161746__boxed_5905_, v_compile_boxed_5906_, v_logCompileErrors_boxed_5907_, v_isMeta_boxed_5908_, v_val_5896_, v_x_5897_, v_x_5898_, v_x_5899_, v___y_5900_, v___y_5901_, v___y_5902_, v___y_5903_); +lean_dec(v___y_5903_); +lean_dec_ref(v___y_5902_); +lean_dec(v___y_5901_); +lean_dec_ref(v___y_5900_); +return v_res_5909_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_spec__25___boxed(lean_object* v_inst_5964_, lean_object* v_expectedType_5965_, lean_object* v___x_5966_, lean_object* v_compile_5967_, lean_object* v_logCompileErrors_5968_, lean_object* v_isMeta_5969_, lean_object* v_val_5970_, lean_object* v_x_5971_, lean_object* v_x_5972_, lean_object* v_x_5973_, lean_object* v___y_5974_, lean_object* v___y_5975_, lean_object* v___y_5976_, lean_object* v___y_5977_, lean_object* v___y_5978_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13___boxed(lean_object* v_inst_5910_, lean_object* v_expectedType_5911_, lean_object* v___x_5912_, lean_object* v___x_5913_, lean_object* v_compile_5914_, lean_object* v_logCompileErrors_5915_, lean_object* v_isMeta_5916_, lean_object* v_val_5917_, lean_object* v_x_5918_, lean_object* v_x_5919_, lean_object* v_x_5920_, lean_object* v___y_5921_, lean_object* v___y_5922_, lean_object* v___y_5923_, lean_object* v___y_5924_, lean_object* v___y_5925_){ _start: { -uint8_t v___x_163067__boxed_5979_; uint8_t v_compile_boxed_5980_; uint8_t v_logCompileErrors_boxed_5981_; uint8_t v_isMeta_boxed_5982_; lean_object* v_res_5983_; -v___x_163067__boxed_5979_ = lean_unbox(v___x_5966_); -v_compile_boxed_5980_ = lean_unbox(v_compile_5967_); -v_logCompileErrors_boxed_5981_ = lean_unbox(v_logCompileErrors_5968_); -v_isMeta_boxed_5982_ = lean_unbox(v_isMeta_5969_); -v_res_5983_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16_spec__25(v_inst_5964_, v_expectedType_5965_, v___x_163067__boxed_5979_, v_compile_boxed_5980_, v_logCompileErrors_boxed_5981_, v_isMeta_boxed_5982_, v_val_5970_, v_x_5971_, v_x_5972_, v_x_5973_, v___y_5974_, v___y_5975_, v___y_5976_, v___y_5977_); -lean_dec(v___y_5977_); -lean_dec_ref(v___y_5976_); -lean_dec(v___y_5975_); -lean_dec_ref(v___y_5974_); -return v_res_5983_; +uint8_t v___x_161912__boxed_5926_; uint8_t v___x_161913__boxed_5927_; uint8_t v_compile_boxed_5928_; uint8_t v_logCompileErrors_boxed_5929_; uint8_t v_isMeta_boxed_5930_; lean_object* v_res_5931_; +v___x_161912__boxed_5926_ = lean_unbox(v___x_5912_); +v___x_161913__boxed_5927_ = lean_unbox(v___x_5913_); +v_compile_boxed_5928_ = lean_unbox(v_compile_5914_); +v_logCompileErrors_boxed_5929_ = lean_unbox(v_logCompileErrors_5915_); +v_isMeta_boxed_5930_ = lean_unbox(v_isMeta_5916_); +v_res_5931_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__13(v_inst_5910_, v_expectedType_5911_, v___x_161912__boxed_5926_, v___x_161913__boxed_5927_, v_compile_boxed_5928_, v_logCompileErrors_boxed_5929_, v_isMeta_boxed_5930_, v_val_5917_, v_x_5918_, v_x_5919_, v_x_5920_, v___y_5921_, v___y_5922_, v___y_5923_, v___y_5924_); +lean_dec(v___y_5924_); +lean_dec_ref(v___y_5923_); +lean_dec(v___y_5922_); +lean_dec_ref(v___y_5921_); +lean_dec(v_x_5920_); +return v_res_5931_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14___boxed(lean_object* v_inst_5984_, lean_object* v_expectedType_5985_, lean_object* v___x_5986_, lean_object* v___x_5987_, lean_object* v_compile_5988_, lean_object* v_logCompileErrors_5989_, lean_object* v_isMeta_5990_, lean_object* v_val_5991_, lean_object* v_x_5992_, lean_object* v_x_5993_, lean_object* v_x_5994_, lean_object* v___y_5995_, lean_object* v___y_5996_, lean_object* v___y_5997_, lean_object* v___y_5998_, lean_object* v___y_5999_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15___boxed(lean_object* v_inst_5932_, lean_object* v_expectedType_5933_, lean_object* v___x_5934_, lean_object* v_compile_5935_, lean_object* v_logCompileErrors_5936_, lean_object* v_isMeta_5937_, lean_object* v_val_5938_, lean_object* v_x_5939_, lean_object* v_x_5940_, lean_object* v_x_5941_, lean_object* v___y_5942_, lean_object* v___y_5943_, lean_object* v___y_5944_, lean_object* v___y_5945_, lean_object* v___y_5946_){ _start: { -uint8_t v___x_163235__boxed_6000_; uint8_t v___x_163236__boxed_6001_; uint8_t v_compile_boxed_6002_; uint8_t v_logCompileErrors_boxed_6003_; uint8_t v_isMeta_boxed_6004_; lean_object* v_res_6005_; -v___x_163235__boxed_6000_ = lean_unbox(v___x_5986_); -v___x_163236__boxed_6001_ = lean_unbox(v___x_5987_); -v_compile_boxed_6002_ = lean_unbox(v_compile_5988_); -v_logCompileErrors_boxed_6003_ = lean_unbox(v_logCompileErrors_5989_); -v_isMeta_boxed_6004_ = lean_unbox(v_isMeta_5990_); -v_res_6005_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__14(v_inst_5984_, v_expectedType_5985_, v___x_163235__boxed_6000_, v___x_163236__boxed_6001_, v_compile_boxed_6002_, v_logCompileErrors_boxed_6003_, v_isMeta_boxed_6004_, v_val_5991_, v_x_5992_, v_x_5993_, v_x_5994_, v___y_5995_, v___y_5996_, v___y_5997_, v___y_5998_); -lean_dec(v___y_5998_); -lean_dec_ref(v___y_5997_); -lean_dec(v___y_5996_); -lean_dec_ref(v___y_5995_); -lean_dec(v_x_5994_); -return v_res_6005_; +uint8_t v___x_162079__boxed_5947_; uint8_t v_compile_boxed_5948_; uint8_t v_logCompileErrors_boxed_5949_; uint8_t v_isMeta_boxed_5950_; lean_object* v_res_5951_; +v___x_162079__boxed_5947_ = lean_unbox(v___x_5934_); +v_compile_boxed_5948_ = lean_unbox(v_compile_5935_); +v_logCompileErrors_boxed_5949_ = lean_unbox(v_logCompileErrors_5936_); +v_isMeta_boxed_5950_ = lean_unbox(v_isMeta_5937_); +v_res_5951_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__15(v_inst_5932_, v_expectedType_5933_, v___x_162079__boxed_5947_, v_compile_boxed_5948_, v_logCompileErrors_boxed_5949_, v_isMeta_boxed_5950_, v_val_5938_, v_x_5939_, v_x_5940_, v_x_5941_, v___y_5942_, v___y_5943_, v___y_5944_, v___y_5945_); +lean_dec(v___y_5945_); +lean_dec_ref(v___y_5944_); +lean_dec(v___y_5943_); +lean_dec_ref(v___y_5942_); +lean_dec(v_x_5941_); +return v_res_5951_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16___boxed(lean_object* v_inst_6006_, lean_object* v_expectedType_6007_, lean_object* v___x_6008_, lean_object* v_compile_6009_, lean_object* v_logCompileErrors_6010_, lean_object* v_isMeta_6011_, lean_object* v_val_6012_, lean_object* v_x_6013_, lean_object* v_x_6014_, lean_object* v_x_6015_, lean_object* v___y_6016_, lean_object* v___y_6017_, lean_object* v___y_6018_, lean_object* v___y_6019_, lean_object* v___y_6020_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11___boxed(lean_object* v_inst_5952_, lean_object* v_expectedType_5953_, lean_object* v___x_5954_, lean_object* v_compile_5955_, lean_object* v_logCompileErrors_5956_, lean_object* v_isMeta_5957_, lean_object* v_val_5958_, lean_object* v_x_5959_, lean_object* v_x_5960_, lean_object* v_x_5961_, lean_object* v___y_5962_, lean_object* v___y_5963_, lean_object* v___y_5964_, lean_object* v___y_5965_, lean_object* v___y_5966_){ _start: { -uint8_t v___x_163404__boxed_6021_; uint8_t v_compile_boxed_6022_; uint8_t v_logCompileErrors_boxed_6023_; uint8_t v_isMeta_boxed_6024_; lean_object* v_res_6025_; -v___x_163404__boxed_6021_ = lean_unbox(v___x_6008_); -v_compile_boxed_6022_ = lean_unbox(v_compile_6009_); -v_logCompileErrors_boxed_6023_ = lean_unbox(v_logCompileErrors_6010_); -v_isMeta_boxed_6024_ = lean_unbox(v_isMeta_6011_); -v_res_6025_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__16(v_inst_6006_, v_expectedType_6007_, v___x_163404__boxed_6021_, v_compile_boxed_6022_, v_logCompileErrors_boxed_6023_, v_isMeta_boxed_6024_, v_val_6012_, v_x_6013_, v_x_6014_, v_x_6015_, v___y_6016_, v___y_6017_, v___y_6018_, v___y_6019_); -lean_dec(v___y_6019_); -lean_dec_ref(v___y_6018_); -lean_dec(v___y_6017_); -lean_dec_ref(v___y_6016_); -lean_dec(v_x_6015_); -return v_res_6025_; +uint8_t v___x_162245__boxed_5967_; uint8_t v_compile_boxed_5968_; uint8_t v_logCompileErrors_boxed_5969_; uint8_t v_isMeta_boxed_5970_; lean_object* v_res_5971_; +v___x_162245__boxed_5967_ = lean_unbox(v___x_5954_); +v_compile_boxed_5968_ = lean_unbox(v_compile_5955_); +v_logCompileErrors_boxed_5969_ = lean_unbox(v_logCompileErrors_5956_); +v_isMeta_boxed_5970_ = lean_unbox(v_isMeta_5957_); +v_res_5971_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9_spec__11(v_inst_5952_, v_expectedType_5953_, v___x_162245__boxed_5967_, v_compile_boxed_5968_, v_logCompileErrors_boxed_5969_, v_isMeta_boxed_5970_, v_val_5958_, v_x_5959_, v_x_5960_, v_x_5961_, v___y_5962_, v___y_5963_, v___y_5964_, v___y_5965_); +lean_dec(v___y_5965_); +lean_dec_ref(v___y_5964_); +lean_dec(v___y_5963_); +lean_dec_ref(v___y_5962_); +return v_res_5971_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12___boxed(lean_object* v_inst_6026_, lean_object* v_expectedType_6027_, lean_object* v___x_6028_, lean_object* v_compile_6029_, lean_object* v_logCompileErrors_6030_, lean_object* v_isMeta_6031_, lean_object* v_val_6032_, lean_object* v_x_6033_, lean_object* v_x_6034_, lean_object* v_x_6035_, lean_object* v___y_6036_, lean_object* v___y_6037_, lean_object* v___y_6038_, lean_object* v___y_6039_, lean_object* v___y_6040_){ +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9___boxed(lean_object* v_inst_5972_, lean_object* v_expectedType_5973_, lean_object* v___x_5974_, lean_object* v_compile_5975_, lean_object* v_logCompileErrors_5976_, lean_object* v_isMeta_5977_, lean_object* v_val_5978_, lean_object* v_x_5979_, lean_object* v_x_5980_, lean_object* v_x_5981_, lean_object* v___y_5982_, lean_object* v___y_5983_, lean_object* v___y_5984_, lean_object* v___y_5985_, lean_object* v___y_5986_){ _start: { -uint8_t v___x_163572__boxed_6041_; uint8_t v_compile_boxed_6042_; uint8_t v_logCompileErrors_boxed_6043_; uint8_t v_isMeta_boxed_6044_; lean_object* v_res_6045_; -v___x_163572__boxed_6041_ = lean_unbox(v___x_6028_); -v_compile_boxed_6042_ = lean_unbox(v_compile_6029_); -v_logCompileErrors_boxed_6043_ = lean_unbox(v_logCompileErrors_6030_); -v_isMeta_boxed_6044_ = lean_unbox(v_isMeta_6031_); -v_res_6045_ = l_Lean_Expr_withAppAux___at___00Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10_spec__12(v_inst_6026_, v_expectedType_6027_, v___x_163572__boxed_6041_, v_compile_boxed_6042_, v_logCompileErrors_boxed_6043_, v_isMeta_boxed_6044_, v_val_6032_, v_x_6033_, v_x_6034_, v_x_6035_, v___y_6036_, v___y_6037_, v___y_6038_, v___y_6039_); -lean_dec(v___y_6039_); -lean_dec_ref(v___y_6038_); -lean_dec(v___y_6037_); -lean_dec_ref(v___y_6036_); -return v_res_6045_; +uint8_t v___x_162412__boxed_5987_; uint8_t v_compile_boxed_5988_; uint8_t v_logCompileErrors_boxed_5989_; uint8_t v_isMeta_boxed_5990_; lean_object* v_res_5991_; +v___x_162412__boxed_5987_ = lean_unbox(v___x_5974_); +v_compile_boxed_5988_ = lean_unbox(v_compile_5975_); +v_logCompileErrors_boxed_5989_ = lean_unbox(v_logCompileErrors_5976_); +v_isMeta_boxed_5990_ = lean_unbox(v_isMeta_5977_); +v_res_5991_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__9(v_inst_5972_, v_expectedType_5973_, v___x_162412__boxed_5987_, v_compile_boxed_5988_, v_logCompileErrors_boxed_5989_, v_isMeta_boxed_5990_, v_val_5978_, v_x_5979_, v_x_5980_, v_x_5981_, v___y_5982_, v___y_5983_, v___y_5984_, v___y_5985_); +lean_dec(v___y_5985_); +lean_dec_ref(v___y_5984_); +lean_dec(v___y_5983_); +lean_dec_ref(v___y_5982_); +lean_dec(v_x_5981_); +return v_res_5991_; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10___boxed(lean_object* v_inst_6046_, lean_object* v_expectedType_6047_, lean_object* v___x_6048_, lean_object* v_compile_6049_, lean_object* v_logCompileErrors_6050_, lean_object* v_isMeta_6051_, lean_object* v_val_6052_, lean_object* v_x_6053_, lean_object* v_x_6054_, lean_object* v_x_6055_, lean_object* v___y_6056_, lean_object* v___y_6057_, lean_object* v___y_6058_, lean_object* v___y_6059_, lean_object* v___y_6060_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg___boxed(lean_object** _args){ +lean_object* v_upperBound_5992_ = _args[0]; +lean_object* v_fst_5993_ = _args[1]; +lean_object* v_args_5994_ = _args[2]; +lean_object* v___x_5995_ = _args[3]; +lean_object* v_compile_5996_ = _args[4]; +lean_object* v_logCompileErrors_5997_ = _args[5]; +lean_object* v___x_5998_ = _args[6]; +lean_object* v_isMeta_5999_ = _args[7]; +lean_object* v_val_6000_ = _args[8]; +lean_object* v_expectedType_6001_ = _args[9]; +lean_object* v_a_6002_ = _args[10]; +lean_object* v_b_6003_ = _args[11]; +lean_object* v___y_6004_ = _args[12]; +lean_object* v___y_6005_ = _args[13]; +lean_object* v___y_6006_ = _args[14]; +lean_object* v___y_6007_ = _args[15]; +lean_object* v___y_6008_ = _args[16]; _start: { -uint8_t v___x_163741__boxed_6061_; uint8_t v_compile_boxed_6062_; uint8_t v_logCompileErrors_boxed_6063_; uint8_t v_isMeta_boxed_6064_; lean_object* v_res_6065_; -v___x_163741__boxed_6061_ = lean_unbox(v___x_6048_); -v_compile_boxed_6062_ = lean_unbox(v_compile_6049_); -v_logCompileErrors_boxed_6063_ = lean_unbox(v_logCompileErrors_6050_); -v_isMeta_boxed_6064_ = lean_unbox(v_isMeta_6051_); -v_res_6065_ = l_Lean_Expr_withAppAux___at___00Lean_Meta_wrapInstance_spec__10(v_inst_6046_, v_expectedType_6047_, v___x_163741__boxed_6061_, v_compile_boxed_6062_, v_logCompileErrors_boxed_6063_, v_isMeta_boxed_6064_, v_val_6052_, v_x_6053_, v_x_6054_, v_x_6055_, v___y_6056_, v___y_6057_, v___y_6058_, v___y_6059_); -lean_dec(v___y_6059_); -lean_dec_ref(v___y_6058_); -lean_dec(v___y_6057_); -lean_dec_ref(v___y_6056_); -lean_dec(v_x_6055_); -return v_res_6065_; +uint8_t v___x_162606__boxed_6009_; uint8_t v_compile_boxed_6010_; uint8_t v_logCompileErrors_boxed_6011_; uint8_t v___x_162607__boxed_6012_; uint8_t v_isMeta_boxed_6013_; lean_object* v_res_6014_; +v___x_162606__boxed_6009_ = lean_unbox(v___x_5995_); +v_compile_boxed_6010_ = lean_unbox(v_compile_5996_); +v_logCompileErrors_boxed_6011_ = lean_unbox(v_logCompileErrors_5997_); +v___x_162607__boxed_6012_ = lean_unbox(v___x_5998_); +v_isMeta_boxed_6013_ = lean_unbox(v_isMeta_5999_); +v_res_6014_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(v_upperBound_5992_, v_fst_5993_, v_args_5994_, v___x_162606__boxed_6009_, v_compile_boxed_6010_, v_logCompileErrors_boxed_6011_, v___x_162607__boxed_6012_, v_isMeta_boxed_6013_, v_val_6000_, v_expectedType_6001_, v_a_6002_, v_b_6003_, v___y_6004_, v___y_6005_, v___y_6006_, v___y_6007_); +lean_dec(v___y_6007_); +lean_dec_ref(v___y_6006_); +lean_dec(v___y_6005_); +lean_dec_ref(v___y_6004_); +lean_dec_ref(v_args_5994_); +lean_dec_ref(v_fst_5993_); +lean_dec(v_upperBound_5992_); +return v_res_6014_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg___boxed(lean_object** _args){ -lean_object* v_upperBound_6066_ = _args[0]; -lean_object* v_fst_6067_ = _args[1]; -lean_object* v_args_6068_ = _args[2]; -lean_object* v___x_6069_ = _args[3]; -lean_object* v_compile_6070_ = _args[4]; -lean_object* v_logCompileErrors_6071_ = _args[5]; -lean_object* v___x_6072_ = _args[6]; -lean_object* v_isMeta_6073_ = _args[7]; -lean_object* v_val_6074_ = _args[8]; -lean_object* v_expectedType_6075_ = _args[9]; -lean_object* v_a_6076_ = _args[10]; -lean_object* v_b_6077_ = _args[11]; -lean_object* v___y_6078_ = _args[12]; -lean_object* v___y_6079_ = _args[13]; -lean_object* v___y_6080_ = _args[14]; -lean_object* v___y_6081_ = _args[15]; -lean_object* v___y_6082_ = _args[16]; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg___boxed(lean_object* v_upperBound_6015_, lean_object* v_fst_6016_, lean_object* v_args_6017_, lean_object* v_compile_6018_, lean_object* v_logCompileErrors_6019_, lean_object* v___x_6020_, lean_object* v_isMeta_6021_, lean_object* v_val_6022_, lean_object* v_expectedType_6023_, lean_object* v_a_6024_, lean_object* v_b_6025_, lean_object* v___y_6026_, lean_object* v___y_6027_, lean_object* v___y_6028_, lean_object* v___y_6029_, lean_object* v___y_6030_){ _start: { -uint8_t v___x_163937__boxed_6083_; uint8_t v_compile_boxed_6084_; uint8_t v_logCompileErrors_boxed_6085_; uint8_t v___x_163938__boxed_6086_; uint8_t v_isMeta_boxed_6087_; lean_object* v_res_6088_; -v___x_163937__boxed_6083_ = lean_unbox(v___x_6069_); -v_compile_boxed_6084_ = lean_unbox(v_compile_6070_); -v_logCompileErrors_boxed_6085_ = lean_unbox(v_logCompileErrors_6071_); -v___x_163938__boxed_6086_ = lean_unbox(v___x_6072_); -v_isMeta_boxed_6087_ = lean_unbox(v_isMeta_6073_); -v_res_6088_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(v_upperBound_6066_, v_fst_6067_, v_args_6068_, v___x_163937__boxed_6083_, v_compile_boxed_6084_, v_logCompileErrors_boxed_6085_, v___x_163938__boxed_6086_, v_isMeta_boxed_6087_, v_val_6074_, v_expectedType_6075_, v_a_6076_, v_b_6077_, v___y_6078_, v___y_6079_, v___y_6080_, v___y_6081_); -lean_dec(v___y_6081_); -lean_dec_ref(v___y_6080_); -lean_dec(v___y_6079_); -lean_dec_ref(v___y_6078_); -lean_dec_ref(v_args_6068_); -lean_dec_ref(v_fst_6067_); -lean_dec(v_upperBound_6066_); -return v_res_6088_; +uint8_t v_compile_boxed_6031_; uint8_t v_logCompileErrors_boxed_6032_; uint8_t v___x_162757__boxed_6033_; uint8_t v_isMeta_boxed_6034_; lean_object* v_res_6035_; +v_compile_boxed_6031_ = lean_unbox(v_compile_6018_); +v_logCompileErrors_boxed_6032_ = lean_unbox(v_logCompileErrors_6019_); +v___x_162757__boxed_6033_ = lean_unbox(v___x_6020_); +v_isMeta_boxed_6034_ = lean_unbox(v_isMeta_6021_); +v_res_6035_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(v_upperBound_6015_, v_fst_6016_, v_args_6017_, v_compile_boxed_6031_, v_logCompileErrors_boxed_6032_, v___x_162757__boxed_6033_, v_isMeta_boxed_6034_, v_val_6022_, v_expectedType_6023_, v_a_6024_, v_b_6025_, v___y_6026_, v___y_6027_, v___y_6028_, v___y_6029_); +lean_dec(v___y_6029_); +lean_dec_ref(v___y_6028_); +lean_dec(v___y_6027_); +lean_dec_ref(v___y_6026_); +lean_dec_ref(v_args_6017_); +lean_dec_ref(v_fst_6016_); +lean_dec(v_upperBound_6015_); +return v_res_6035_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg___boxed(lean_object* v_upperBound_6089_, lean_object* v_fst_6090_, lean_object* v_args_6091_, lean_object* v_compile_6092_, lean_object* v_logCompileErrors_6093_, lean_object* v___x_6094_, lean_object* v_isMeta_6095_, lean_object* v_val_6096_, lean_object* v_expectedType_6097_, lean_object* v_a_6098_, lean_object* v_b_6099_, lean_object* v___y_6100_, lean_object* v___y_6101_, lean_object* v___y_6102_, lean_object* v___y_6103_, lean_object* v___y_6104_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg___boxed(lean_object** _args){ +lean_object* v_upperBound_6036_ = _args[0]; +lean_object* v_fst_6037_ = _args[1]; +lean_object* v_args_6038_ = _args[2]; +lean_object* v___x_6039_ = _args[3]; +lean_object* v_compile_6040_ = _args[4]; +lean_object* v_logCompileErrors_6041_ = _args[5]; +lean_object* v___x_6042_ = _args[6]; +lean_object* v_isMeta_6043_ = _args[7]; +lean_object* v_val_6044_ = _args[8]; +lean_object* v_expectedType_6045_ = _args[9]; +lean_object* v_a_6046_ = _args[10]; +lean_object* v_b_6047_ = _args[11]; +lean_object* v___y_6048_ = _args[12]; +lean_object* v___y_6049_ = _args[13]; +lean_object* v___y_6050_ = _args[14]; +lean_object* v___y_6051_ = _args[15]; +lean_object* v___y_6052_ = _args[16]; _start: { -uint8_t v_compile_boxed_6105_; uint8_t v_logCompileErrors_boxed_6106_; uint8_t v___x_164088__boxed_6107_; uint8_t v_isMeta_boxed_6108_; lean_object* v_res_6109_; -v_compile_boxed_6105_ = lean_unbox(v_compile_6092_); -v_logCompileErrors_boxed_6106_ = lean_unbox(v_logCompileErrors_6093_); -v___x_164088__boxed_6107_ = lean_unbox(v___x_6094_); -v_isMeta_boxed_6108_ = lean_unbox(v_isMeta_6095_); -v_res_6109_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(v_upperBound_6089_, v_fst_6090_, v_args_6091_, v_compile_boxed_6105_, v_logCompileErrors_boxed_6106_, v___x_164088__boxed_6107_, v_isMeta_boxed_6108_, v_val_6096_, v_expectedType_6097_, v_a_6098_, v_b_6099_, v___y_6100_, v___y_6101_, v___y_6102_, v___y_6103_); -lean_dec(v___y_6103_); -lean_dec_ref(v___y_6102_); -lean_dec(v___y_6101_); -lean_dec_ref(v___y_6100_); -lean_dec_ref(v_args_6091_); -lean_dec_ref(v_fst_6090_); -lean_dec(v_upperBound_6089_); +uint8_t v___x_162916__boxed_6053_; uint8_t v_compile_boxed_6054_; uint8_t v_logCompileErrors_boxed_6055_; uint8_t v___x_162917__boxed_6056_; uint8_t v_isMeta_boxed_6057_; lean_object* v_res_6058_; +v___x_162916__boxed_6053_ = lean_unbox(v___x_6039_); +v_compile_boxed_6054_ = lean_unbox(v_compile_6040_); +v_logCompileErrors_boxed_6055_ = lean_unbox(v_logCompileErrors_6041_); +v___x_162917__boxed_6056_ = lean_unbox(v___x_6042_); +v_isMeta_boxed_6057_ = lean_unbox(v_isMeta_6043_); +v_res_6058_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg(v_upperBound_6036_, v_fst_6037_, v_args_6038_, v___x_162916__boxed_6053_, v_compile_boxed_6054_, v_logCompileErrors_boxed_6055_, v___x_162917__boxed_6056_, v_isMeta_boxed_6057_, v_val_6044_, v_expectedType_6045_, v_a_6046_, v_b_6047_, v___y_6048_, v___y_6049_, v___y_6050_, v___y_6051_); +lean_dec(v___y_6051_); +lean_dec_ref(v___y_6050_); +lean_dec(v___y_6049_); +lean_dec_ref(v___y_6048_); +lean_dec_ref(v_args_6038_); +lean_dec_ref(v_fst_6037_); +lean_dec(v_upperBound_6036_); +return v_res_6058_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg___boxed(lean_object* v_upperBound_6059_, lean_object* v_fst_6060_, lean_object* v_args_6061_, lean_object* v___x_6062_, lean_object* v_compile_6063_, lean_object* v_logCompileErrors_6064_, lean_object* v_isMeta_6065_, lean_object* v_val_6066_, lean_object* v_expectedType_6067_, lean_object* v_a_6068_, lean_object* v_b_6069_, lean_object* v___y_6070_, lean_object* v___y_6071_, lean_object* v___y_6072_, lean_object* v___y_6073_, lean_object* v___y_6074_){ +_start: +{ +uint8_t v___x_163077__boxed_6075_; uint8_t v_compile_boxed_6076_; uint8_t v_logCompileErrors_boxed_6077_; uint8_t v_isMeta_boxed_6078_; lean_object* v_res_6079_; +v___x_163077__boxed_6075_ = lean_unbox(v___x_6062_); +v_compile_boxed_6076_ = lean_unbox(v_compile_6063_); +v_logCompileErrors_boxed_6077_ = lean_unbox(v_logCompileErrors_6064_); +v_isMeta_boxed_6078_ = lean_unbox(v_isMeta_6065_); +v_res_6079_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(v_upperBound_6059_, v_fst_6060_, v_args_6061_, v___x_163077__boxed_6075_, v_compile_boxed_6076_, v_logCompileErrors_boxed_6077_, v_isMeta_boxed_6078_, v_val_6066_, v_expectedType_6067_, v_a_6068_, v_b_6069_, v___y_6070_, v___y_6071_, v___y_6072_, v___y_6073_); +lean_dec(v___y_6073_); +lean_dec_ref(v___y_6072_); +lean_dec(v___y_6071_); +lean_dec_ref(v___y_6070_); +lean_dec_ref(v_args_6061_); +lean_dec_ref(v_fst_6060_); +lean_dec(v_upperBound_6059_); +return v_res_6079_; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___boxed(lean_object* v_inst_6080_, lean_object* v_expectedType_6081_, lean_object* v_compile_6082_, lean_object* v_logCompileErrors_6083_, lean_object* v_isMeta_6084_, lean_object* v_a_6085_, lean_object* v_a_6086_, lean_object* v_a_6087_, lean_object* v_a_6088_, lean_object* v_a_6089_){ +_start: +{ +uint8_t v_compile_boxed_6090_; uint8_t v_logCompileErrors_boxed_6091_; uint8_t v_isMeta_boxed_6092_; lean_object* v_res_6093_; +v_compile_boxed_6090_ = lean_unbox(v_compile_6082_); +v_logCompileErrors_boxed_6091_ = lean_unbox(v_logCompileErrors_6083_); +v_isMeta_boxed_6092_ = lean_unbox(v_isMeta_6084_); +v_res_6093_ = l_Lean_Meta_wrapInstance(v_inst_6080_, v_expectedType_6081_, v_compile_boxed_6090_, v_logCompileErrors_boxed_6091_, v_isMeta_boxed_6092_, v_a_6085_, v_a_6086_, v_a_6087_, v_a_6088_); +lean_dec(v_a_6088_); +lean_dec_ref(v_a_6087_); +lean_dec(v_a_6086_); +lean_dec_ref(v_a_6085_); +return v_res_6093_; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6(lean_object* v_mvarId_6094_, lean_object* v_val_6095_, lean_object* v___y_6096_, lean_object* v___y_6097_, lean_object* v___y_6098_, lean_object* v___y_6099_){ +_start: +{ +lean_object* v___x_6101_; +v___x_6101_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___redArg(v_mvarId_6094_, v_val_6095_, v___y_6097_); +return v___x_6101_; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6___boxed(lean_object* v_mvarId_6102_, lean_object* v_val_6103_, lean_object* v___y_6104_, lean_object* v___y_6105_, lean_object* v___y_6106_, lean_object* v___y_6107_, lean_object* v___y_6108_){ +_start: +{ +lean_object* v_res_6109_; +v_res_6109_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6(v_mvarId_6102_, v_val_6103_, v___y_6104_, v___y_6105_, v___y_6106_, v___y_6107_); +lean_dec(v___y_6107_); +lean_dec_ref(v___y_6106_); +lean_dec(v___y_6105_); +lean_dec_ref(v___y_6104_); return v_res_6109_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg___boxed(lean_object** _args){ -lean_object* v_upperBound_6110_ = _args[0]; -lean_object* v_fst_6111_ = _args[1]; -lean_object* v_args_6112_ = _args[2]; -lean_object* v___x_6113_ = _args[3]; -lean_object* v_compile_6114_ = _args[4]; -lean_object* v_logCompileErrors_6115_ = _args[5]; -lean_object* v___x_6116_ = _args[6]; -lean_object* v_isMeta_6117_ = _args[7]; -lean_object* v_val_6118_ = _args[8]; -lean_object* v_expectedType_6119_ = _args[9]; -lean_object* v_a_6120_ = _args[10]; -lean_object* v_b_6121_ = _args[11]; -lean_object* v___y_6122_ = _args[12]; -lean_object* v___y_6123_ = _args[13]; -lean_object* v___y_6124_ = _args[14]; -lean_object* v___y_6125_ = _args[15]; -lean_object* v___y_6126_ = _args[16]; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7(lean_object* v_upperBound_6110_, lean_object* v_fst_6111_, lean_object* v_args_6112_, uint8_t v_compile_6113_, uint8_t v_logCompileErrors_6114_, uint8_t v___x_6115_, uint8_t v_isMeta_6116_, lean_object* v_val_6117_, lean_object* v_expectedType_6118_, lean_object* v_inst_6119_, lean_object* v_R_6120_, lean_object* v_a_6121_, lean_object* v_b_6122_, lean_object* v_c_6123_, lean_object* v___y_6124_, lean_object* v___y_6125_, lean_object* v___y_6126_, lean_object* v___y_6127_){ _start: { -uint8_t v___x_164247__boxed_6127_; uint8_t v_compile_boxed_6128_; uint8_t v_logCompileErrors_boxed_6129_; uint8_t v___x_164248__boxed_6130_; uint8_t v_isMeta_boxed_6131_; lean_object* v_res_6132_; -v___x_164247__boxed_6127_ = lean_unbox(v___x_6113_); -v_compile_boxed_6128_ = lean_unbox(v_compile_6114_); -v_logCompileErrors_boxed_6129_ = lean_unbox(v_logCompileErrors_6115_); -v___x_164248__boxed_6130_ = lean_unbox(v___x_6116_); -v_isMeta_boxed_6131_ = lean_unbox(v_isMeta_6117_); -v_res_6132_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg(v_upperBound_6110_, v_fst_6111_, v_args_6112_, v___x_164247__boxed_6127_, v_compile_boxed_6128_, v_logCompileErrors_boxed_6129_, v___x_164248__boxed_6130_, v_isMeta_boxed_6131_, v_val_6118_, v_expectedType_6119_, v_a_6120_, v_b_6121_, v___y_6122_, v___y_6123_, v___y_6124_, v___y_6125_); -lean_dec(v___y_6125_); -lean_dec_ref(v___y_6124_); -lean_dec(v___y_6123_); -lean_dec_ref(v___y_6122_); -lean_dec_ref(v_args_6112_); -lean_dec_ref(v_fst_6111_); -lean_dec(v_upperBound_6110_); -return v_res_6132_; +lean_object* v___x_6129_; +v___x_6129_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___redArg(v_upperBound_6110_, v_fst_6111_, v_args_6112_, v_compile_6113_, v_logCompileErrors_6114_, v___x_6115_, v_isMeta_6116_, v_val_6117_, v_expectedType_6118_, v_a_6121_, v_b_6122_, v___y_6124_, v___y_6125_, v___y_6126_, v___y_6127_); +return v___x_6129_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg___boxed(lean_object* v_upperBound_6133_, lean_object* v_fst_6134_, lean_object* v_args_6135_, lean_object* v___x_6136_, lean_object* v_compile_6137_, lean_object* v_logCompileErrors_6138_, lean_object* v_isMeta_6139_, lean_object* v_val_6140_, lean_object* v_expectedType_6141_, lean_object* v_a_6142_, lean_object* v_b_6143_, lean_object* v___y_6144_, lean_object* v___y_6145_, lean_object* v___y_6146_, lean_object* v___y_6147_, lean_object* v___y_6148_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7___boxed(lean_object** _args){ +lean_object* v_upperBound_6130_ = _args[0]; +lean_object* v_fst_6131_ = _args[1]; +lean_object* v_args_6132_ = _args[2]; +lean_object* v_compile_6133_ = _args[3]; +lean_object* v_logCompileErrors_6134_ = _args[4]; +lean_object* v___x_6135_ = _args[5]; +lean_object* v_isMeta_6136_ = _args[6]; +lean_object* v_val_6137_ = _args[7]; +lean_object* v_expectedType_6138_ = _args[8]; +lean_object* v_inst_6139_ = _args[9]; +lean_object* v_R_6140_ = _args[10]; +lean_object* v_a_6141_ = _args[11]; +lean_object* v_b_6142_ = _args[12]; +lean_object* v_c_6143_ = _args[13]; +lean_object* v___y_6144_ = _args[14]; +lean_object* v___y_6145_ = _args[15]; +lean_object* v___y_6146_ = _args[16]; +lean_object* v___y_6147_ = _args[17]; +lean_object* v___y_6148_ = _args[18]; _start: { -uint8_t v___x_164408__boxed_6149_; uint8_t v_compile_boxed_6150_; uint8_t v_logCompileErrors_boxed_6151_; uint8_t v_isMeta_boxed_6152_; lean_object* v_res_6153_; -v___x_164408__boxed_6149_ = lean_unbox(v___x_6136_); -v_compile_boxed_6150_ = lean_unbox(v_compile_6137_); -v_logCompileErrors_boxed_6151_ = lean_unbox(v_logCompileErrors_6138_); -v_isMeta_boxed_6152_ = lean_unbox(v_isMeta_6139_); -v_res_6153_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(v_upperBound_6133_, v_fst_6134_, v_args_6135_, v___x_164408__boxed_6149_, v_compile_boxed_6150_, v_logCompileErrors_boxed_6151_, v_isMeta_boxed_6152_, v_val_6140_, v_expectedType_6141_, v_a_6142_, v_b_6143_, v___y_6144_, v___y_6145_, v___y_6146_, v___y_6147_); +uint8_t v_compile_boxed_6149_; uint8_t v_logCompileErrors_boxed_6150_; uint8_t v___x_167565__boxed_6151_; uint8_t v_isMeta_boxed_6152_; lean_object* v_res_6153_; +v_compile_boxed_6149_ = lean_unbox(v_compile_6133_); +v_logCompileErrors_boxed_6150_ = lean_unbox(v_logCompileErrors_6134_); +v___x_167565__boxed_6151_ = lean_unbox(v___x_6135_); +v_isMeta_boxed_6152_ = lean_unbox(v_isMeta_6136_); +v_res_6153_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__7(v_upperBound_6130_, v_fst_6131_, v_args_6132_, v_compile_boxed_6149_, v_logCompileErrors_boxed_6150_, v___x_167565__boxed_6151_, v_isMeta_boxed_6152_, v_val_6137_, v_expectedType_6138_, v_inst_6139_, v_R_6140_, v_a_6141_, v_b_6142_, v_c_6143_, v___y_6144_, v___y_6145_, v___y_6146_, v___y_6147_); lean_dec(v___y_6147_); lean_dec_ref(v___y_6146_); lean_dec(v___y_6145_); lean_dec_ref(v___y_6144_); -lean_dec_ref(v_args_6135_); -lean_dec_ref(v_fst_6134_); -lean_dec(v_upperBound_6133_); +lean_dec_ref(v_args_6132_); +lean_dec_ref(v_fst_6131_); +lean_dec(v_upperBound_6130_); return v_res_6153_; } } -LEAN_EXPORT lean_object* l_Lean_Meta_wrapInstance___boxed(lean_object* v_inst_6154_, lean_object* v_expectedType_6155_, lean_object* v_compile_6156_, lean_object* v_logCompileErrors_6157_, lean_object* v_isMeta_6158_, lean_object* v_a_6159_, lean_object* v_a_6160_, lean_object* v_a_6161_, lean_object* v_a_6162_, lean_object* v_a_6163_){ +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16(lean_object* v_00_u03b1_6154_, lean_object* v_x_6155_, lean_object* v___y_6156_, lean_object* v___y_6157_, lean_object* v___y_6158_, lean_object* v___y_6159_){ _start: { -uint8_t v_compile_boxed_6164_; uint8_t v_logCompileErrors_boxed_6165_; uint8_t v_isMeta_boxed_6166_; lean_object* v_res_6167_; -v_compile_boxed_6164_ = lean_unbox(v_compile_6156_); -v_logCompileErrors_boxed_6165_ = lean_unbox(v_logCompileErrors_6157_); -v_isMeta_boxed_6166_ = lean_unbox(v_isMeta_6158_); -v_res_6167_ = l_Lean_Meta_wrapInstance(v_inst_6154_, v_expectedType_6155_, v_compile_boxed_6164_, v_logCompileErrors_boxed_6165_, v_isMeta_boxed_6166_, v_a_6159_, v_a_6160_, v_a_6161_, v_a_6162_); -lean_dec(v_a_6162_); -lean_dec_ref(v_a_6161_); -lean_dec(v_a_6160_); -lean_dec_ref(v_a_6159_); -return v_res_6167_; +lean_object* v___x_6161_; +v___x_6161_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___redArg(v_x_6155_); +return v___x_6161_; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7(lean_object* v_mvarId_6168_, lean_object* v_val_6169_, lean_object* v___y_6170_, lean_object* v___y_6171_, lean_object* v___y_6172_, lean_object* v___y_6173_){ +LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16___boxed(lean_object* v_00_u03b1_6162_, lean_object* v_x_6163_, lean_object* v___y_6164_, lean_object* v___y_6165_, lean_object* v___y_6166_, lean_object* v___y_6167_, lean_object* v___y_6168_){ _start: { -lean_object* v___x_6175_; -v___x_6175_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___redArg(v_mvarId_6168_, v_val_6169_, v___y_6171_); -return v___x_6175_; +lean_object* v_res_6169_; +v_res_6169_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__11_spec__16(v_00_u03b1_6162_, v_x_6163_, v___y_6164_, v___y_6165_, v___y_6166_, v___y_6167_); +lean_dec(v___y_6167_); +lean_dec_ref(v___y_6166_); +lean_dec(v___y_6165_); +lean_dec_ref(v___y_6164_); +return v_res_6169_; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7___boxed(lean_object* v_mvarId_6176_, lean_object* v_val_6177_, lean_object* v___y_6178_, lean_object* v___y_6179_, lean_object* v___y_6180_, lean_object* v___y_6181_, lean_object* v___y_6182_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12(lean_object* v_upperBound_6170_, lean_object* v_fst_6171_, lean_object* v_args_6172_, uint8_t v___x_6173_, uint8_t v_compile_6174_, uint8_t v_logCompileErrors_6175_, uint8_t v___x_6176_, uint8_t v_isMeta_6177_, lean_object* v_val_6178_, lean_object* v_expectedType_6179_, lean_object* v_inst_6180_, lean_object* v_R_6181_, lean_object* v_a_6182_, lean_object* v_b_6183_, lean_object* v_c_6184_, lean_object* v___y_6185_, lean_object* v___y_6186_, lean_object* v___y_6187_, lean_object* v___y_6188_){ _start: { -lean_object* v_res_6183_; -v_res_6183_ = l_Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7(v_mvarId_6176_, v_val_6177_, v___y_6178_, v___y_6179_, v___y_6180_, v___y_6181_); -lean_dec(v___y_6181_); -lean_dec_ref(v___y_6180_); -lean_dec(v___y_6179_); -lean_dec_ref(v___y_6178_); -return v_res_6183_; +lean_object* v___x_6190_; +v___x_6190_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___redArg(v_upperBound_6170_, v_fst_6171_, v_args_6172_, v___x_6173_, v_compile_6174_, v_logCompileErrors_6175_, v___x_6176_, v_isMeta_6177_, v_val_6178_, v_expectedType_6179_, v_a_6182_, v_b_6183_, v___y_6185_, v___y_6186_, v___y_6187_, v___y_6188_); +return v___x_6190_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8(lean_object* v_upperBound_6184_, lean_object* v_fst_6185_, lean_object* v_args_6186_, uint8_t v_compile_6187_, uint8_t v_logCompileErrors_6188_, uint8_t v___x_6189_, uint8_t v_isMeta_6190_, lean_object* v_val_6191_, lean_object* v_expectedType_6192_, lean_object* v_inst_6193_, lean_object* v_R_6194_, lean_object* v_a_6195_, lean_object* v_b_6196_, lean_object* v_c_6197_, lean_object* v___y_6198_, lean_object* v___y_6199_, lean_object* v___y_6200_, lean_object* v___y_6201_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12___boxed(lean_object** _args){ +lean_object* v_upperBound_6191_ = _args[0]; +lean_object* v_fst_6192_ = _args[1]; +lean_object* v_args_6193_ = _args[2]; +lean_object* v___x_6194_ = _args[3]; +lean_object* v_compile_6195_ = _args[4]; +lean_object* v_logCompileErrors_6196_ = _args[5]; +lean_object* v___x_6197_ = _args[6]; +lean_object* v_isMeta_6198_ = _args[7]; +lean_object* v_val_6199_ = _args[8]; +lean_object* v_expectedType_6200_ = _args[9]; +lean_object* v_inst_6201_ = _args[10]; +lean_object* v_R_6202_ = _args[11]; +lean_object* v_a_6203_ = _args[12]; +lean_object* v_b_6204_ = _args[13]; +lean_object* v_c_6205_ = _args[14]; +lean_object* v___y_6206_ = _args[15]; +lean_object* v___y_6207_ = _args[16]; +lean_object* v___y_6208_ = _args[17]; +lean_object* v___y_6209_ = _args[18]; +lean_object* v___y_6210_ = _args[19]; _start: { -lean_object* v___x_6203_; -v___x_6203_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___redArg(v_upperBound_6184_, v_fst_6185_, v_args_6186_, v_compile_6187_, v_logCompileErrors_6188_, v___x_6189_, v_isMeta_6190_, v_val_6191_, v_expectedType_6192_, v_a_6195_, v_b_6196_, v___y_6198_, v___y_6199_, v___y_6200_, v___y_6201_); -return v___x_6203_; +uint8_t v___x_167617__boxed_6211_; uint8_t v_compile_boxed_6212_; uint8_t v_logCompileErrors_boxed_6213_; uint8_t v___x_167618__boxed_6214_; uint8_t v_isMeta_boxed_6215_; lean_object* v_res_6216_; +v___x_167617__boxed_6211_ = lean_unbox(v___x_6194_); +v_compile_boxed_6212_ = lean_unbox(v_compile_6195_); +v_logCompileErrors_boxed_6213_ = lean_unbox(v_logCompileErrors_6196_); +v___x_167618__boxed_6214_ = lean_unbox(v___x_6197_); +v_isMeta_boxed_6215_ = lean_unbox(v_isMeta_6198_); +v_res_6216_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12(v_upperBound_6191_, v_fst_6192_, v_args_6193_, v___x_167617__boxed_6211_, v_compile_boxed_6212_, v_logCompileErrors_boxed_6213_, v___x_167618__boxed_6214_, v_isMeta_boxed_6215_, v_val_6199_, v_expectedType_6200_, v_inst_6201_, v_R_6202_, v_a_6203_, v_b_6204_, v_c_6205_, v___y_6206_, v___y_6207_, v___y_6208_, v___y_6209_); +lean_dec(v___y_6209_); +lean_dec_ref(v___y_6208_); +lean_dec(v___y_6207_); +lean_dec_ref(v___y_6206_); +lean_dec_ref(v_args_6193_); +lean_dec_ref(v_fst_6192_); +lean_dec(v_upperBound_6191_); +return v_res_6216_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8___boxed(lean_object** _args){ -lean_object* v_upperBound_6204_ = _args[0]; -lean_object* v_fst_6205_ = _args[1]; -lean_object* v_args_6206_ = _args[2]; -lean_object* v_compile_6207_ = _args[3]; -lean_object* v_logCompileErrors_6208_ = _args[4]; -lean_object* v___x_6209_ = _args[5]; -lean_object* v_isMeta_6210_ = _args[6]; -lean_object* v_val_6211_ = _args[7]; -lean_object* v_expectedType_6212_ = _args[8]; -lean_object* v_inst_6213_ = _args[9]; -lean_object* v_R_6214_ = _args[10]; -lean_object* v_a_6215_ = _args[11]; -lean_object* v_b_6216_ = _args[12]; -lean_object* v_c_6217_ = _args[13]; -lean_object* v___y_6218_ = _args[14]; -lean_object* v___y_6219_ = _args[15]; -lean_object* v___y_6220_ = _args[16]; -lean_object* v___y_6221_ = _args[17]; -lean_object* v___y_6222_ = _args[18]; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14(lean_object* v_upperBound_6217_, lean_object* v_fst_6218_, lean_object* v_args_6219_, uint8_t v___x_6220_, uint8_t v_compile_6221_, uint8_t v_logCompileErrors_6222_, uint8_t v_isMeta_6223_, lean_object* v_val_6224_, lean_object* v_expectedType_6225_, lean_object* v_inst_6226_, lean_object* v_R_6227_, lean_object* v_a_6228_, lean_object* v_b_6229_, lean_object* v_c_6230_, lean_object* v___y_6231_, lean_object* v___y_6232_, lean_object* v___y_6233_, lean_object* v___y_6234_){ _start: { -uint8_t v_compile_boxed_6223_; uint8_t v_logCompileErrors_boxed_6224_; uint8_t v___x_168902__boxed_6225_; uint8_t v_isMeta_boxed_6226_; lean_object* v_res_6227_; -v_compile_boxed_6223_ = lean_unbox(v_compile_6207_); -v_logCompileErrors_boxed_6224_ = lean_unbox(v_logCompileErrors_6208_); -v___x_168902__boxed_6225_ = lean_unbox(v___x_6209_); -v_isMeta_boxed_6226_ = lean_unbox(v_isMeta_6210_); -v_res_6227_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__8(v_upperBound_6204_, v_fst_6205_, v_args_6206_, v_compile_boxed_6223_, v_logCompileErrors_boxed_6224_, v___x_168902__boxed_6225_, v_isMeta_boxed_6226_, v_val_6211_, v_expectedType_6212_, v_inst_6213_, v_R_6214_, v_a_6215_, v_b_6216_, v_c_6217_, v___y_6218_, v___y_6219_, v___y_6220_, v___y_6221_); -lean_dec(v___y_6221_); -lean_dec_ref(v___y_6220_); -lean_dec(v___y_6219_); -lean_dec_ref(v___y_6218_); -lean_dec_ref(v_args_6206_); -lean_dec_ref(v_fst_6205_); -lean_dec(v_upperBound_6204_); -return v_res_6227_; +lean_object* v___x_6236_; +v___x_6236_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___redArg(v_upperBound_6217_, v_fst_6218_, v_args_6219_, v___x_6220_, v_compile_6221_, v_logCompileErrors_6222_, v_isMeta_6223_, v_val_6224_, v_expectedType_6225_, v_a_6228_, v_b_6229_, v___y_6231_, v___y_6232_, v___y_6233_, v___y_6234_); +return v___x_6236_; } } -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17(lean_object* v_00_u03b1_6228_, lean_object* v_x_6229_, lean_object* v___y_6230_, lean_object* v___y_6231_, lean_object* v___y_6232_, lean_object* v___y_6233_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14___boxed(lean_object** _args){ +lean_object* v_upperBound_6237_ = _args[0]; +lean_object* v_fst_6238_ = _args[1]; +lean_object* v_args_6239_ = _args[2]; +lean_object* v___x_6240_ = _args[3]; +lean_object* v_compile_6241_ = _args[4]; +lean_object* v_logCompileErrors_6242_ = _args[5]; +lean_object* v_isMeta_6243_ = _args[6]; +lean_object* v_val_6244_ = _args[7]; +lean_object* v_expectedType_6245_ = _args[8]; +lean_object* v_inst_6246_ = _args[9]; +lean_object* v_R_6247_ = _args[10]; +lean_object* v_a_6248_ = _args[11]; +lean_object* v_b_6249_ = _args[12]; +lean_object* v_c_6250_ = _args[13]; +lean_object* v___y_6251_ = _args[14]; +lean_object* v___y_6252_ = _args[15]; +lean_object* v___y_6253_ = _args[16]; +lean_object* v___y_6254_ = _args[17]; +lean_object* v___y_6255_ = _args[18]; _start: { -lean_object* v___x_6235_; -v___x_6235_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___redArg(v_x_6229_); -return v___x_6235_; +uint8_t v___x_167652__boxed_6256_; uint8_t v_compile_boxed_6257_; uint8_t v_logCompileErrors_boxed_6258_; uint8_t v_isMeta_boxed_6259_; lean_object* v_res_6260_; +v___x_167652__boxed_6256_ = lean_unbox(v___x_6240_); +v_compile_boxed_6257_ = lean_unbox(v_compile_6241_); +v_logCompileErrors_boxed_6258_ = lean_unbox(v_logCompileErrors_6242_); +v_isMeta_boxed_6259_ = lean_unbox(v_isMeta_6243_); +v_res_6260_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__14(v_upperBound_6237_, v_fst_6238_, v_args_6239_, v___x_167652__boxed_6256_, v_compile_boxed_6257_, v_logCompileErrors_boxed_6258_, v_isMeta_boxed_6259_, v_val_6244_, v_expectedType_6245_, v_inst_6246_, v_R_6247_, v_a_6248_, v_b_6249_, v_c_6250_, v___y_6251_, v___y_6252_, v___y_6253_, v___y_6254_); +lean_dec(v___y_6254_); +lean_dec_ref(v___y_6253_); +lean_dec(v___y_6252_); +lean_dec_ref(v___y_6251_); +lean_dec_ref(v_args_6239_); +lean_dec_ref(v_fst_6238_); +lean_dec(v_upperBound_6237_); +return v_res_6260_; } } -LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17___boxed(lean_object* v_00_u03b1_6236_, lean_object* v_x_6237_, lean_object* v___y_6238_, lean_object* v___y_6239_, lean_object* v___y_6240_, lean_object* v___y_6241_, lean_object* v___y_6242_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3(lean_object* v_00_u03b1_6261_, lean_object* v_constName_6262_, lean_object* v___y_6263_, lean_object* v___y_6264_, lean_object* v___y_6265_, lean_object* v___y_6266_){ _start: { -lean_object* v_res_6243_; -v_res_6243_ = l_MonadExcept_ofExcept___at___00__private_Lean_Util_Trace_0__Lean_withTraceNode_postCallback___at___00Lean_Meta_wrapInstance_spec__12_spec__17(v_00_u03b1_6236_, v_x_6237_, v___y_6238_, v___y_6239_, v___y_6240_, v___y_6241_); -lean_dec(v___y_6241_); -lean_dec_ref(v___y_6240_); -lean_dec(v___y_6239_); -lean_dec_ref(v___y_6238_); -return v_res_6243_; +lean_object* v___x_6268_; +v___x_6268_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___redArg(v_constName_6262_, v___y_6263_, v___y_6264_, v___y_6265_, v___y_6266_); +return v___x_6268_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13(lean_object* v_upperBound_6244_, lean_object* v_fst_6245_, lean_object* v_args_6246_, uint8_t v___x_6247_, uint8_t v_compile_6248_, uint8_t v_logCompileErrors_6249_, uint8_t v___x_6250_, uint8_t v_isMeta_6251_, lean_object* v_val_6252_, lean_object* v_expectedType_6253_, lean_object* v_inst_6254_, lean_object* v_R_6255_, lean_object* v_a_6256_, lean_object* v_b_6257_, lean_object* v_c_6258_, lean_object* v___y_6259_, lean_object* v___y_6260_, lean_object* v___y_6261_, lean_object* v___y_6262_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3___boxed(lean_object* v_00_u03b1_6269_, lean_object* v_constName_6270_, lean_object* v___y_6271_, lean_object* v___y_6272_, lean_object* v___y_6273_, lean_object* v___y_6274_, lean_object* v___y_6275_){ _start: { -lean_object* v___x_6264_; -v___x_6264_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___redArg(v_upperBound_6244_, v_fst_6245_, v_args_6246_, v___x_6247_, v_compile_6248_, v_logCompileErrors_6249_, v___x_6250_, v_isMeta_6251_, v_val_6252_, v_expectedType_6253_, v_a_6256_, v_b_6257_, v___y_6259_, v___y_6260_, v___y_6261_, v___y_6262_); -return v___x_6264_; +lean_object* v_res_6276_; +v_res_6276_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3(v_00_u03b1_6269_, v_constName_6270_, v___y_6271_, v___y_6272_, v___y_6273_, v___y_6274_); +lean_dec(v___y_6274_); +lean_dec_ref(v___y_6273_); +lean_dec(v___y_6272_); +lean_dec_ref(v___y_6271_); +return v_res_6276_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13___boxed(lean_object** _args){ -lean_object* v_upperBound_6265_ = _args[0]; -lean_object* v_fst_6266_ = _args[1]; -lean_object* v_args_6267_ = _args[2]; -lean_object* v___x_6268_ = _args[3]; -lean_object* v_compile_6269_ = _args[4]; -lean_object* v_logCompileErrors_6270_ = _args[5]; -lean_object* v___x_6271_ = _args[6]; -lean_object* v_isMeta_6272_ = _args[7]; -lean_object* v_val_6273_ = _args[8]; -lean_object* v_expectedType_6274_ = _args[9]; -lean_object* v_inst_6275_ = _args[10]; -lean_object* v_R_6276_ = _args[11]; -lean_object* v_a_6277_ = _args[12]; -lean_object* v_b_6278_ = _args[13]; -lean_object* v_c_6279_ = _args[14]; -lean_object* v___y_6280_ = _args[15]; -lean_object* v___y_6281_ = _args[16]; -lean_object* v___y_6282_ = _args[17]; -lean_object* v___y_6283_ = _args[18]; -lean_object* v___y_6284_ = _args[19]; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7(lean_object* v_00_u03b2_6277_, lean_object* v_x_6278_, lean_object* v_x_6279_, lean_object* v_x_6280_){ _start: { -uint8_t v___x_168954__boxed_6285_; uint8_t v_compile_boxed_6286_; uint8_t v_logCompileErrors_boxed_6287_; uint8_t v___x_168955__boxed_6288_; uint8_t v_isMeta_boxed_6289_; lean_object* v_res_6290_; -v___x_168954__boxed_6285_ = lean_unbox(v___x_6268_); -v_compile_boxed_6286_ = lean_unbox(v_compile_6269_); -v_logCompileErrors_boxed_6287_ = lean_unbox(v_logCompileErrors_6270_); -v___x_168955__boxed_6288_ = lean_unbox(v___x_6271_); -v_isMeta_boxed_6289_ = lean_unbox(v_isMeta_6272_); -v_res_6290_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13(v_upperBound_6265_, v_fst_6266_, v_args_6267_, v___x_168954__boxed_6285_, v_compile_boxed_6286_, v_logCompileErrors_boxed_6287_, v___x_168955__boxed_6288_, v_isMeta_boxed_6289_, v_val_6273_, v_expectedType_6274_, v_inst_6275_, v_R_6276_, v_a_6277_, v_b_6278_, v_c_6279_, v___y_6280_, v___y_6281_, v___y_6282_, v___y_6283_); -lean_dec(v___y_6283_); -lean_dec_ref(v___y_6282_); -lean_dec(v___y_6281_); -lean_dec_ref(v___y_6280_); -lean_dec_ref(v_args_6267_); -lean_dec_ref(v_fst_6266_); -lean_dec(v_upperBound_6265_); -return v_res_6290_; +lean_object* v___x_6281_; +v___x_6281_ = l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7___redArg(v_x_6278_, v_x_6279_, v_x_6280_); +return v___x_6281_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15(lean_object* v_upperBound_6291_, lean_object* v_fst_6292_, lean_object* v_args_6293_, uint8_t v___x_6294_, uint8_t v_compile_6295_, uint8_t v_logCompileErrors_6296_, uint8_t v_isMeta_6297_, lean_object* v_val_6298_, lean_object* v_expectedType_6299_, lean_object* v_inst_6300_, lean_object* v_R_6301_, lean_object* v_a_6302_, lean_object* v_b_6303_, lean_object* v_c_6304_, lean_object* v___y_6305_, lean_object* v___y_6306_, lean_object* v___y_6307_, lean_object* v___y_6308_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19(lean_object* v_upperBound_6282_, lean_object* v_fst_6283_, lean_object* v_args_6284_, uint8_t v___x_6285_, uint8_t v_compile_6286_, uint8_t v_logCompileErrors_6287_, uint8_t v___x_6288_, uint8_t v_isMeta_6289_, lean_object* v_val_6290_, lean_object* v_expectedType_6291_, lean_object* v_inst_6292_, lean_object* v_R_6293_, lean_object* v_a_6294_, lean_object* v_b_6295_, lean_object* v_c_6296_, lean_object* v___y_6297_, lean_object* v___y_6298_, lean_object* v___y_6299_, lean_object* v___y_6300_){ _start: { -lean_object* v___x_6310_; -v___x_6310_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___redArg(v_upperBound_6291_, v_fst_6292_, v_args_6293_, v___x_6294_, v_compile_6295_, v_logCompileErrors_6296_, v_isMeta_6297_, v_val_6298_, v_expectedType_6299_, v_a_6302_, v_b_6303_, v___y_6305_, v___y_6306_, v___y_6307_, v___y_6308_); -return v___x_6310_; +lean_object* v___x_6302_; +v___x_6302_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___redArg(v_upperBound_6282_, v_fst_6283_, v_args_6284_, v___x_6285_, v_compile_6286_, v_logCompileErrors_6287_, v___x_6288_, v_isMeta_6289_, v_val_6290_, v_expectedType_6291_, v_a_6294_, v_b_6295_, v___y_6297_, v___y_6298_, v___y_6299_, v___y_6300_); +return v___x_6302_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15___boxed(lean_object** _args){ -lean_object* v_upperBound_6311_ = _args[0]; -lean_object* v_fst_6312_ = _args[1]; -lean_object* v_args_6313_ = _args[2]; -lean_object* v___x_6314_ = _args[3]; -lean_object* v_compile_6315_ = _args[4]; -lean_object* v_logCompileErrors_6316_ = _args[5]; -lean_object* v_isMeta_6317_ = _args[6]; -lean_object* v_val_6318_ = _args[7]; -lean_object* v_expectedType_6319_ = _args[8]; -lean_object* v_inst_6320_ = _args[9]; -lean_object* v_R_6321_ = _args[10]; -lean_object* v_a_6322_ = _args[11]; -lean_object* v_b_6323_ = _args[12]; -lean_object* v_c_6324_ = _args[13]; -lean_object* v___y_6325_ = _args[14]; -lean_object* v___y_6326_ = _args[15]; -lean_object* v___y_6327_ = _args[16]; -lean_object* v___y_6328_ = _args[17]; -lean_object* v___y_6329_ = _args[18]; +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19___boxed(lean_object** _args){ +lean_object* v_upperBound_6303_ = _args[0]; +lean_object* v_fst_6304_ = _args[1]; +lean_object* v_args_6305_ = _args[2]; +lean_object* v___x_6306_ = _args[3]; +lean_object* v_compile_6307_ = _args[4]; +lean_object* v_logCompileErrors_6308_ = _args[5]; +lean_object* v___x_6309_ = _args[6]; +lean_object* v_isMeta_6310_ = _args[7]; +lean_object* v_val_6311_ = _args[8]; +lean_object* v_expectedType_6312_ = _args[9]; +lean_object* v_inst_6313_ = _args[10]; +lean_object* v_R_6314_ = _args[11]; +lean_object* v_a_6315_ = _args[12]; +lean_object* v_b_6316_ = _args[13]; +lean_object* v_c_6317_ = _args[14]; +lean_object* v___y_6318_ = _args[15]; +lean_object* v___y_6319_ = _args[16]; +lean_object* v___y_6320_ = _args[17]; +lean_object* v___y_6321_ = _args[18]; +lean_object* v___y_6322_ = _args[19]; _start: { -uint8_t v___x_168989__boxed_6330_; uint8_t v_compile_boxed_6331_; uint8_t v_logCompileErrors_boxed_6332_; uint8_t v_isMeta_boxed_6333_; lean_object* v_res_6334_; -v___x_168989__boxed_6330_ = lean_unbox(v___x_6314_); -v_compile_boxed_6331_ = lean_unbox(v_compile_6315_); -v_logCompileErrors_boxed_6332_ = lean_unbox(v_logCompileErrors_6316_); -v_isMeta_boxed_6333_ = lean_unbox(v_isMeta_6317_); -v_res_6334_ = l_WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__15(v_upperBound_6311_, v_fst_6312_, v_args_6313_, v___x_168989__boxed_6330_, v_compile_boxed_6331_, v_logCompileErrors_boxed_6332_, v_isMeta_boxed_6333_, v_val_6318_, v_expectedType_6319_, v_inst_6320_, v_R_6321_, v_a_6322_, v_b_6323_, v_c_6324_, v___y_6325_, v___y_6326_, v___y_6327_, v___y_6328_); -lean_dec(v___y_6328_); -lean_dec_ref(v___y_6327_); -lean_dec(v___y_6326_); -lean_dec_ref(v___y_6325_); -lean_dec_ref(v_args_6313_); -lean_dec_ref(v_fst_6312_); -lean_dec(v_upperBound_6311_); -return v_res_6334_; +uint8_t v___x_167709__boxed_6323_; uint8_t v_compile_boxed_6324_; uint8_t v_logCompileErrors_boxed_6325_; uint8_t v___x_167710__boxed_6326_; uint8_t v_isMeta_boxed_6327_; lean_object* v_res_6328_; +v___x_167709__boxed_6323_ = lean_unbox(v___x_6306_); +v_compile_boxed_6324_ = lean_unbox(v_compile_6307_); +v_logCompileErrors_boxed_6325_ = lean_unbox(v_logCompileErrors_6308_); +v___x_167710__boxed_6326_ = lean_unbox(v___x_6309_); +v_isMeta_boxed_6327_ = lean_unbox(v_isMeta_6310_); +v_res_6328_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__12_spec__19(v_upperBound_6303_, v_fst_6304_, v_args_6305_, v___x_167709__boxed_6323_, v_compile_boxed_6324_, v_logCompileErrors_boxed_6325_, v___x_167710__boxed_6326_, v_isMeta_boxed_6327_, v_val_6311_, v_expectedType_6312_, v_inst_6313_, v_R_6314_, v_a_6315_, v_b_6316_, v_c_6317_, v___y_6318_, v___y_6319_, v___y_6320_, v___y_6321_); +lean_dec(v___y_6321_); +lean_dec_ref(v___y_6320_); +lean_dec(v___y_6319_); +lean_dec_ref(v___y_6318_); +lean_dec_ref(v_args_6305_); +lean_dec_ref(v_fst_6304_); +lean_dec(v_upperBound_6303_); +return v_res_6328_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4(lean_object* v_00_u03b1_6335_, lean_object* v_constName_6336_, lean_object* v___y_6337_, lean_object* v___y_6338_, lean_object* v___y_6339_, lean_object* v___y_6340_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6(lean_object* v_00_u03b1_6329_, lean_object* v_ref_6330_, lean_object* v_constName_6331_, lean_object* v___y_6332_, lean_object* v___y_6333_, lean_object* v___y_6334_, lean_object* v___y_6335_){ _start: { -lean_object* v___x_6342_; -v___x_6342_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___redArg(v_constName_6336_, v___y_6337_, v___y_6338_, v___y_6339_, v___y_6340_); -return v___x_6342_; +lean_object* v___x_6337_; +v___x_6337_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___redArg(v_ref_6330_, v_constName_6331_, v___y_6332_, v___y_6333_, v___y_6334_, v___y_6335_); +return v___x_6337_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4___boxed(lean_object* v_00_u03b1_6343_, lean_object* v_constName_6344_, lean_object* v___y_6345_, lean_object* v___y_6346_, lean_object* v___y_6347_, lean_object* v___y_6348_, lean_object* v___y_6349_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6___boxed(lean_object* v_00_u03b1_6338_, lean_object* v_ref_6339_, lean_object* v_constName_6340_, lean_object* v___y_6341_, lean_object* v___y_6342_, lean_object* v___y_6343_, lean_object* v___y_6344_, lean_object* v___y_6345_){ _start: { -lean_object* v_res_6350_; -v_res_6350_ = l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4(v_00_u03b1_6343_, v_constName_6344_, v___y_6345_, v___y_6346_, v___y_6347_, v___y_6348_); -lean_dec(v___y_6348_); -lean_dec_ref(v___y_6347_); -lean_dec(v___y_6346_); -lean_dec_ref(v___y_6345_); -return v_res_6350_; +lean_object* v_res_6346_; +v_res_6346_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6(v_00_u03b1_6338_, v_ref_6339_, v_constName_6340_, v___y_6341_, v___y_6342_, v___y_6343_, v___y_6344_); +lean_dec(v___y_6344_); +lean_dec_ref(v___y_6343_); +lean_dec(v___y_6342_); +lean_dec_ref(v___y_6341_); +lean_dec(v_ref_6339_); +return v_res_6346_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8(lean_object* v_00_u03b2_6351_, lean_object* v_x_6352_, lean_object* v_x_6353_, lean_object* v_x_6354_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10(lean_object* v_00_u03b2_6347_, lean_object* v_x_6348_, size_t v_x_6349_, size_t v_x_6350_, lean_object* v_x_6351_, lean_object* v_x_6352_){ _start: { -lean_object* v___x_6355_; -v___x_6355_ = l_Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8___redArg(v_x_6352_, v_x_6353_, v_x_6354_); -return v___x_6355_; +lean_object* v___x_6353_; +v___x_6353_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___redArg(v_x_6348_, v_x_6349_, v_x_6350_, v_x_6351_, v_x_6352_); +return v___x_6353_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20(lean_object* v_upperBound_6356_, lean_object* v_fst_6357_, lean_object* v_args_6358_, uint8_t v___x_6359_, uint8_t v_compile_6360_, uint8_t v_logCompileErrors_6361_, uint8_t v___x_6362_, uint8_t v_isMeta_6363_, lean_object* v_val_6364_, lean_object* v_expectedType_6365_, lean_object* v_inst_6366_, lean_object* v_R_6367_, lean_object* v_a_6368_, lean_object* v_b_6369_, lean_object* v_c_6370_, lean_object* v___y_6371_, lean_object* v___y_6372_, lean_object* v___y_6373_, lean_object* v___y_6374_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10___boxed(lean_object* v_00_u03b2_6354_, lean_object* v_x_6355_, lean_object* v_x_6356_, lean_object* v_x_6357_, lean_object* v_x_6358_, lean_object* v_x_6359_){ _start: { -lean_object* v___x_6376_; -v___x_6376_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___redArg(v_upperBound_6356_, v_fst_6357_, v_args_6358_, v___x_6359_, v_compile_6360_, v_logCompileErrors_6361_, v___x_6362_, v_isMeta_6363_, v_val_6364_, v_expectedType_6365_, v_a_6368_, v_b_6369_, v___y_6371_, v___y_6372_, v___y_6373_, v___y_6374_); -return v___x_6376_; +size_t v_x_167760__boxed_6360_; size_t v_x_167761__boxed_6361_; lean_object* v_res_6362_; +v_x_167760__boxed_6360_ = lean_unbox_usize(v_x_6356_); +lean_dec(v_x_6356_); +v_x_167761__boxed_6361_ = lean_unbox_usize(v_x_6357_); +lean_dec(v_x_6357_); +v_res_6362_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10(v_00_u03b2_6354_, v_x_6355_, v_x_167760__boxed_6360_, v_x_167761__boxed_6361_, v_x_6358_, v_x_6359_); +return v_res_6362_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20___boxed(lean_object** _args){ -lean_object* v_upperBound_6377_ = _args[0]; -lean_object* v_fst_6378_ = _args[1]; -lean_object* v_args_6379_ = _args[2]; -lean_object* v___x_6380_ = _args[3]; -lean_object* v_compile_6381_ = _args[4]; -lean_object* v_logCompileErrors_6382_ = _args[5]; -lean_object* v___x_6383_ = _args[6]; -lean_object* v_isMeta_6384_ = _args[7]; -lean_object* v_val_6385_ = _args[8]; -lean_object* v_expectedType_6386_ = _args[9]; -lean_object* v_inst_6387_ = _args[10]; -lean_object* v_R_6388_ = _args[11]; -lean_object* v_a_6389_ = _args[12]; -lean_object* v_b_6390_ = _args[13]; -lean_object* v_c_6391_ = _args[14]; -lean_object* v___y_6392_ = _args[15]; -lean_object* v___y_6393_ = _args[16]; -lean_object* v___y_6394_ = _args[17]; -lean_object* v___y_6395_ = _args[18]; -lean_object* v___y_6396_ = _args[19]; +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20(lean_object* v_00_u03b1_6363_, lean_object* v_ref_6364_, lean_object* v_msg_6365_, lean_object* v_declHint_6366_, lean_object* v___y_6367_, lean_object* v___y_6368_, lean_object* v___y_6369_, lean_object* v___y_6370_){ _start: { -uint8_t v___x_169046__boxed_6397_; uint8_t v_compile_boxed_6398_; uint8_t v_logCompileErrors_boxed_6399_; uint8_t v___x_169047__boxed_6400_; uint8_t v_isMeta_boxed_6401_; lean_object* v_res_6402_; -v___x_169046__boxed_6397_ = lean_unbox(v___x_6380_); -v_compile_boxed_6398_ = lean_unbox(v_compile_6381_); -v_logCompileErrors_boxed_6399_ = lean_unbox(v_logCompileErrors_6382_); -v___x_169047__boxed_6400_ = lean_unbox(v___x_6383_); -v_isMeta_boxed_6401_ = lean_unbox(v_isMeta_6384_); -v_res_6402_ = l_WellFounded_opaqueFix_u2083___at___00WellFounded_opaqueFix_u2083___at___00Lean_Meta_wrapInstance_spec__13_spec__20(v_upperBound_6377_, v_fst_6378_, v_args_6379_, v___x_169046__boxed_6397_, v_compile_boxed_6398_, v_logCompileErrors_boxed_6399_, v___x_169047__boxed_6400_, v_isMeta_boxed_6401_, v_val_6385_, v_expectedType_6386_, v_inst_6387_, v_R_6388_, v_a_6389_, v_b_6390_, v_c_6391_, v___y_6392_, v___y_6393_, v___y_6394_, v___y_6395_); -lean_dec(v___y_6395_); -lean_dec_ref(v___y_6394_); -lean_dec(v___y_6393_); -lean_dec_ref(v___y_6392_); -lean_dec_ref(v_args_6379_); -lean_dec_ref(v_fst_6378_); -lean_dec(v_upperBound_6377_); -return v_res_6402_; +lean_object* v___x_6372_; +v___x_6372_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___redArg(v_ref_6364_, v_msg_6365_, v_declHint_6366_, v___y_6367_, v___y_6368_, v___y_6369_, v___y_6370_); +return v___x_6372_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7(lean_object* v_00_u03b1_6403_, lean_object* v_ref_6404_, lean_object* v_constName_6405_, lean_object* v___y_6406_, lean_object* v___y_6407_, lean_object* v___y_6408_, lean_object* v___y_6409_){ +LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20___boxed(lean_object* v_00_u03b1_6373_, lean_object* v_ref_6374_, lean_object* v_msg_6375_, lean_object* v_declHint_6376_, lean_object* v___y_6377_, lean_object* v___y_6378_, lean_object* v___y_6379_, lean_object* v___y_6380_, lean_object* v___y_6381_){ _start: { -lean_object* v___x_6411_; -v___x_6411_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___redArg(v_ref_6404_, v_constName_6405_, v___y_6406_, v___y_6407_, v___y_6408_, v___y_6409_); -return v___x_6411_; +lean_object* v_res_6382_; +v_res_6382_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20(v_00_u03b1_6373_, v_ref_6374_, v_msg_6375_, v_declHint_6376_, v___y_6377_, v___y_6378_, v___y_6379_, v___y_6380_); +lean_dec(v___y_6380_); +lean_dec_ref(v___y_6379_); +lean_dec(v___y_6378_); +lean_dec_ref(v___y_6377_); +lean_dec(v_ref_6374_); +return v_res_6382_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7___boxed(lean_object* v_00_u03b1_6412_, lean_object* v_ref_6413_, lean_object* v_constName_6414_, lean_object* v___y_6415_, lean_object* v___y_6416_, lean_object* v___y_6417_, lean_object* v___y_6418_, lean_object* v___y_6419_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23(lean_object* v_00_u03b2_6383_, lean_object* v_n_6384_, lean_object* v_k_6385_, lean_object* v_v_6386_){ +_start: +{ +lean_object* v___x_6387_; +v___x_6387_ = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23___redArg(v_n_6384_, v_k_6385_, v_v_6386_); +return v___x_6387_; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24(lean_object* v_00_u03b2_6388_, size_t v_depth_6389_, lean_object* v_keys_6390_, lean_object* v_vals_6391_, lean_object* v_heq_6392_, lean_object* v_i_6393_, lean_object* v_entries_6394_){ +_start: +{ +lean_object* v___x_6395_; +v___x_6395_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___redArg(v_depth_6389_, v_keys_6390_, v_vals_6391_, v_i_6393_, v_entries_6394_); +return v___x_6395_; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24___boxed(lean_object* v_00_u03b2_6396_, lean_object* v_depth_6397_, lean_object* v_keys_6398_, lean_object* v_vals_6399_, lean_object* v_heq_6400_, lean_object* v_i_6401_, lean_object* v_entries_6402_){ +_start: +{ +size_t v_depth_boxed_6403_; lean_object* v_res_6404_; +v_depth_boxed_6403_ = lean_unbox_usize(v_depth_6397_); +lean_dec(v_depth_6397_); +v_res_6404_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__24(v_00_u03b2_6396_, v_depth_boxed_6403_, v_keys_6398_, v_vals_6399_, v_heq_6400_, v_i_6401_, v_entries_6402_); +lean_dec_ref(v_vals_6399_); +lean_dec_ref(v_keys_6398_); +return v_res_6404_; +} +} +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30(lean_object* v_msg_6405_, lean_object* v_declHint_6406_, lean_object* v___y_6407_, lean_object* v___y_6408_, lean_object* v___y_6409_, lean_object* v___y_6410_){ +_start: +{ +lean_object* v___x_6412_; +v___x_6412_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___redArg(v_msg_6405_, v_declHint_6406_, v___y_6410_); +return v___x_6412_; +} +} +LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30___boxed(lean_object* v_msg_6413_, lean_object* v_declHint_6414_, lean_object* v___y_6415_, lean_object* v___y_6416_, lean_object* v___y_6417_, lean_object* v___y_6418_, lean_object* v___y_6419_){ _start: { lean_object* v_res_6420_; -v_res_6420_ = l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7(v_00_u03b1_6412_, v_ref_6413_, v_constName_6414_, v___y_6415_, v___y_6416_, v___y_6417_, v___y_6418_); +v_res_6420_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__27_spec__30(v_msg_6413_, v_declHint_6414_, v___y_6415_, v___y_6416_, v___y_6417_, v___y_6418_); lean_dec(v___y_6418_); lean_dec_ref(v___y_6417_); lean_dec(v___y_6416_); lean_dec_ref(v___y_6415_); -lean_dec(v_ref_6413_); return v_res_6420_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11(lean_object* v_00_u03b2_6421_, lean_object* v_x_6422_, size_t v_x_6423_, size_t v_x_6424_, lean_object* v_x_6425_, lean_object* v_x_6426_){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28(lean_object* v_00_u03b1_6421_, lean_object* v_ref_6422_, lean_object* v_msg_6423_, lean_object* v___y_6424_, lean_object* v___y_6425_, lean_object* v___y_6426_, lean_object* v___y_6427_){ _start: { -lean_object* v___x_6427_; -v___x_6427_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___redArg(v_x_6422_, v_x_6423_, v_x_6424_, v_x_6425_, v_x_6426_); -return v___x_6427_; +lean_object* v___x_6429_; +v___x_6429_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___redArg(v_ref_6422_, v_msg_6423_, v___y_6424_, v___y_6425_, v___y_6426_, v___y_6427_); +return v___x_6429_; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11___boxed(lean_object* v_00_u03b2_6428_, lean_object* v_x_6429_, lean_object* v_x_6430_, lean_object* v_x_6431_, lean_object* v_x_6432_, lean_object* v_x_6433_){ +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28___boxed(lean_object* v_00_u03b1_6430_, lean_object* v_ref_6431_, lean_object* v_msg_6432_, lean_object* v___y_6433_, lean_object* v___y_6434_, lean_object* v___y_6435_, lean_object* v___y_6436_, lean_object* v___y_6437_){ _start: { -size_t v_x_169097__boxed_6434_; size_t v_x_169098__boxed_6435_; lean_object* v_res_6436_; -v_x_169097__boxed_6434_ = lean_unbox_usize(v_x_6430_); -lean_dec(v_x_6430_); -v_x_169098__boxed_6435_ = lean_unbox_usize(v_x_6431_); -lean_dec(v_x_6431_); -v_res_6436_ = l_Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11(v_00_u03b2_6428_, v_x_6429_, v_x_169097__boxed_6434_, v_x_169098__boxed_6435_, v_x_6432_, v_x_6433_); -return v_res_6436_; +lean_object* v_res_6438_; +v_res_6438_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__3_spec__3_spec__6_spec__20_spec__28(v_00_u03b1_6430_, v_ref_6431_, v_msg_6432_, v___y_6433_, v___y_6434_, v___y_6435_, v___y_6436_); +lean_dec(v___y_6436_); +lean_dec_ref(v___y_6435_); +lean_dec(v___y_6434_); +lean_dec_ref(v___y_6433_); +lean_dec(v_ref_6431_); +return v_res_6438_; } } -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21(lean_object* v_00_u03b1_6437_, lean_object* v_ref_6438_, lean_object* v_msg_6439_, lean_object* v_declHint_6440_, lean_object* v___y_6441_, lean_object* v___y_6442_, lean_object* v___y_6443_, lean_object* v___y_6444_){ +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31(lean_object* v_00_u03b2_6439_, lean_object* v_x_6440_, lean_object* v_x_6441_, lean_object* v_x_6442_, lean_object* v_x_6443_){ _start: { -lean_object* v___x_6446_; -v___x_6446_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___redArg(v_ref_6438_, v_msg_6439_, v_declHint_6440_, v___y_6441_, v___y_6442_, v___y_6443_, v___y_6444_); -return v___x_6446_; -} -} -LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21___boxed(lean_object* v_00_u03b1_6447_, lean_object* v_ref_6448_, lean_object* v_msg_6449_, lean_object* v_declHint_6450_, lean_object* v___y_6451_, lean_object* v___y_6452_, lean_object* v___y_6453_, lean_object* v___y_6454_, lean_object* v___y_6455_){ -_start: -{ -lean_object* v_res_6456_; -v_res_6456_ = l_Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21(v_00_u03b1_6447_, v_ref_6448_, v_msg_6449_, v_declHint_6450_, v___y_6451_, v___y_6452_, v___y_6453_, v___y_6454_); -lean_dec(v___y_6454_); -lean_dec_ref(v___y_6453_); -lean_dec(v___y_6452_); -lean_dec_ref(v___y_6451_); -lean_dec(v_ref_6448_); -return v_res_6456_; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24(lean_object* v_00_u03b2_6457_, lean_object* v_n_6458_, lean_object* v_k_6459_, lean_object* v_v_6460_){ -_start: -{ -lean_object* v___x_6461_; -v___x_6461_ = l_Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24___redArg(v_n_6458_, v_k_6459_, v_v_6460_); -return v___x_6461_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25(lean_object* v_00_u03b2_6462_, size_t v_depth_6463_, lean_object* v_keys_6464_, lean_object* v_vals_6465_, lean_object* v_heq_6466_, lean_object* v_i_6467_, lean_object* v_entries_6468_){ -_start: -{ -lean_object* v___x_6469_; -v___x_6469_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___redArg(v_depth_6463_, v_keys_6464_, v_vals_6465_, v_i_6467_, v_entries_6468_); -return v___x_6469_; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25___boxed(lean_object* v_00_u03b2_6470_, lean_object* v_depth_6471_, lean_object* v_keys_6472_, lean_object* v_vals_6473_, lean_object* v_heq_6474_, lean_object* v_i_6475_, lean_object* v_entries_6476_){ -_start: -{ -size_t v_depth_boxed_6477_; lean_object* v_res_6478_; -v_depth_boxed_6477_ = lean_unbox_usize(v_depth_6471_); -lean_dec(v_depth_6471_); -v_res_6478_ = l___private_Lean_Data_PersistentHashMap_0__Lean_PersistentHashMap_insertAux_traverse___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__25(v_00_u03b2_6470_, v_depth_boxed_6477_, v_keys_6472_, v_vals_6473_, v_heq_6474_, v_i_6475_, v_entries_6476_); -lean_dec_ref(v_vals_6473_); -lean_dec_ref(v_keys_6472_); -return v_res_6478_; -} -} -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31(lean_object* v_msg_6479_, lean_object* v_declHint_6480_, lean_object* v___y_6481_, lean_object* v___y_6482_, lean_object* v___y_6483_, lean_object* v___y_6484_){ -_start: -{ -lean_object* v___x_6486_; -v___x_6486_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___redArg(v_msg_6479_, v_declHint_6480_, v___y_6484_); -return v___x_6486_; -} -} -LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31___boxed(lean_object* v_msg_6487_, lean_object* v_declHint_6488_, lean_object* v___y_6489_, lean_object* v___y_6490_, lean_object* v___y_6491_, lean_object* v___y_6492_, lean_object* v___y_6493_){ -_start: -{ -lean_object* v_res_6494_; -v_res_6494_ = l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__28_spec__31(v_msg_6487_, v_declHint_6488_, v___y_6489_, v___y_6490_, v___y_6491_, v___y_6492_); -lean_dec(v___y_6492_); -lean_dec_ref(v___y_6491_); -lean_dec(v___y_6490_); -lean_dec_ref(v___y_6489_); -return v_res_6494_; -} -} -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29(lean_object* v_00_u03b1_6495_, lean_object* v_ref_6496_, lean_object* v_msg_6497_, lean_object* v___y_6498_, lean_object* v___y_6499_, lean_object* v___y_6500_, lean_object* v___y_6501_){ -_start: -{ -lean_object* v___x_6503_; -v___x_6503_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___redArg(v_ref_6496_, v_msg_6497_, v___y_6498_, v___y_6499_, v___y_6500_, v___y_6501_); -return v___x_6503_; -} -} -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29___boxed(lean_object* v_00_u03b1_6504_, lean_object* v_ref_6505_, lean_object* v_msg_6506_, lean_object* v___y_6507_, lean_object* v___y_6508_, lean_object* v___y_6509_, lean_object* v___y_6510_, lean_object* v___y_6511_){ -_start: -{ -lean_object* v_res_6512_; -v_res_6512_ = l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00Lean_Meta_wrapInstance_spec__4_spec__4_spec__7_spec__21_spec__29(v_00_u03b1_6504_, v_ref_6505_, v_msg_6506_, v___y_6507_, v___y_6508_, v___y_6509_, v___y_6510_); -lean_dec(v___y_6510_); -lean_dec_ref(v___y_6509_); -lean_dec(v___y_6508_); -lean_dec_ref(v___y_6507_); -lean_dec(v_ref_6505_); -return v_res_6512_; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32(lean_object* v_00_u03b2_6513_, lean_object* v_x_6514_, lean_object* v_x_6515_, lean_object* v_x_6516_, lean_object* v_x_6517_){ -_start: -{ -lean_object* v___x_6518_; -v___x_6518_ = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__7_spec__8_spec__11_spec__24_spec__32___redArg(v_x_6514_, v_x_6515_, v_x_6516_, v_x_6517_); -return v___x_6518_; +lean_object* v___x_6444_; +v___x_6444_ = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___00Lean_PersistentHashMap_insertAtCollisionNode___at___00Lean_PersistentHashMap_insertAux___at___00Lean_PersistentHashMap_insert___at___00Lean_MVarId_assign___at___00Lean_Meta_wrapInstance_spec__6_spec__7_spec__10_spec__23_spec__31___redArg(v_x_6440_, v_x_6441_, v_x_6442_, v_x_6443_); +return v___x_6444_; } } lean_object* runtime_initialize_Lean_Meta_Closure(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Async/Select.c b/stage0/stdlib/Std/Internal/Async/Select.c index ec304da675..46ab80de0a 100644 --- a/stage0/stdlib/Std/Internal/Async/Select.c +++ b/stage0/stdlib/Std/Internal/Async/Select.c @@ -25,23 +25,25 @@ lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -lean_object* lean_io_promise_new(); +lean_object* lean_st_ref_get(lean_object*); lean_object* lean_io_promise_resolve(lean_object*, lean_object*); lean_object* lean_array_uget_borrowed(lean_object*, size_t); -size_t lean_array_size(lean_object*); +lean_object* lean_io_promise_new(); lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +size_t lean_array_size(lean_object*); size_t lean_usize_add(size_t, size_t); +lean_object* lean_io_promise_result_opt(lean_object*); +lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_task_pure(lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* lean_mk_io_user_error(lean_object*); -lean_object* lean_io_promise_result_opt(lean_object*); lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_IO_Promise_result_x21___redArg(lean_object*); uint64_t l_ByteArray_toUInt64LE_x21(lean_object*); lean_object* lean_uint64_to_nat(uint64_t); lean_object* l_mkStdGen(lean_object*); lean_object* lean_io_get_random_bytes(size_t); lean_object* lean_st_mk_ref(lean_object*); -lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_modifyGetUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_withPromise___redArg(lean_object*, lean_object*); @@ -73,46 +75,60 @@ LEAN_EXPORT lean_object* l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable LEAN_EXPORT lean_object* l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable_one_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__0___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); static const lean_string_object l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 44, .m_capacity = 44, .m_length = 43, .m_data = "the promise linked to the Async was dropped"}; static const lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__0 = (const lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__0_value; static const lean_closure_object l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_Selectable_one___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__0_value)} }; static const lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__1 = (const lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__1_value; -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__1_value)} }; +static const lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__2 = (const lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0_value; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(size_t, lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4(lean_object*, lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(uint8_t, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(size_t, uint8_t, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__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___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__0_value; +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__1_value; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11___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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___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_Internal_IO_Async_Selectable_one___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -125,12 +141,14 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2(size_t, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*); static const lean_string_object l_Std_Internal_IO_Async_Selectable_one___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 48, .m_capacity = 48, .m_length = 47, .m_data = "Selectable.one requires at least one Selectable"}; static const lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___closed__0 = (const lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___closed__0_value; static const lean_ctor_object l_Std_Internal_IO_Async_Selectable_one___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l_Std_Internal_IO_Async_Selectable_one___redArg___closed__0_value)}}; @@ -143,10 +161,10 @@ LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_ob LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static const lean_ctor_object l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; @@ -179,27 +197,34 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Uns LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1(size_t, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___closed__0_value; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10(size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -889,115 +914,116 @@ lean_dec(v_x_231_); return v_res_232_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(lean_object* v___f_233_, uint8_t v___x_234_, lean_object* v_x_235_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(lean_object* v___f_233_, lean_object* v_x_234_){ _start: { -if (lean_obj_tag(v_x_235_) == 0) +if (lean_obj_tag(v_x_234_) == 0) { -lean_object* v_a_237_; lean_object* v___x_239_; uint8_t v_isShared_240_; uint8_t v_isSharedCheck_245_; +lean_object* v_a_236_; lean_object* v___x_238_; uint8_t v_isShared_239_; uint8_t v_isSharedCheck_244_; lean_dec_ref(v___f_233_); -v_a_237_ = lean_ctor_get(v_x_235_, 0); -v_isSharedCheck_245_ = !lean_is_exclusive(v_x_235_); -if (v_isSharedCheck_245_ == 0) +v_a_236_ = lean_ctor_get(v_x_234_, 0); +v_isSharedCheck_244_ = !lean_is_exclusive(v_x_234_); +if (v_isSharedCheck_244_ == 0) { -v___x_239_ = v_x_235_; -v_isShared_240_ = v_isSharedCheck_245_; -goto v_resetjp_238_; +v___x_238_ = v_x_234_; +v_isShared_239_ = v_isSharedCheck_244_; +goto v_resetjp_237_; } else { -lean_inc(v_a_237_); -lean_dec(v_x_235_); -v___x_239_ = lean_box(0); -v_isShared_240_ = v_isSharedCheck_245_; -goto v_resetjp_238_; +lean_inc(v_a_236_); +lean_dec(v_x_234_); +v___x_238_ = lean_box(0); +v_isShared_239_ = v_isSharedCheck_244_; +goto v_resetjp_237_; } -v_resetjp_238_: +v_resetjp_237_: +{ +lean_object* v___x_241_; +if (v_isShared_239_ == 0) +{ +v___x_241_ = v___x_238_; +goto v_reusejp_240_; +} +else +{ +lean_object* v_reuseFailAlloc_243_; +v_reuseFailAlloc_243_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_243_, 0, v_a_236_); +v___x_241_ = v_reuseFailAlloc_243_; +goto v_reusejp_240_; +} +v_reusejp_240_: { lean_object* v___x_242_; -if (v_isShared_240_ == 0) -{ -v___x_242_ = v___x_239_; -goto v_reusejp_241_; -} -else -{ -lean_object* v_reuseFailAlloc_244_; -v_reuseFailAlloc_244_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_244_, 0, v_a_237_); -v___x_242_ = v_reuseFailAlloc_244_; -goto v_reusejp_241_; -} -v_reusejp_241_: -{ -lean_object* v___x_243_; -v___x_243_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_243_, 0, v___x_242_); -return v___x_243_; +v___x_242_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_242_, 0, v___x_241_); +return v___x_242_; } } } else { -lean_object* v_a_246_; -v_a_246_ = lean_ctor_get(v_x_235_, 0); -lean_inc(v_a_246_); -lean_dec_ref(v_x_235_); -if (lean_obj_tag(v_a_246_) == 0) +lean_object* v_a_245_; +v_a_245_ = lean_ctor_get(v_x_234_, 0); +lean_inc(v_a_245_); +lean_dec_ref(v_x_234_); +if (lean_obj_tag(v_a_245_) == 0) { -lean_object* v_a_247_; lean_object* v___x_249_; uint8_t v_isShared_250_; uint8_t v_isSharedCheck_255_; +lean_object* v_a_246_; lean_object* v___x_248_; uint8_t v_isShared_249_; uint8_t v_isSharedCheck_254_; lean_dec_ref(v___f_233_); -v_a_247_ = lean_ctor_get(v_a_246_, 0); -v_isSharedCheck_255_ = !lean_is_exclusive(v_a_246_); -if (v_isSharedCheck_255_ == 0) +v_a_246_ = lean_ctor_get(v_a_245_, 0); +v_isSharedCheck_254_ = !lean_is_exclusive(v_a_245_); +if (v_isSharedCheck_254_ == 0) { -v___x_249_ = v_a_246_; -v_isShared_250_ = v_isSharedCheck_255_; -goto v_resetjp_248_; +v___x_248_ = v_a_245_; +v_isShared_249_ = v_isSharedCheck_254_; +goto v_resetjp_247_; } else { -lean_inc(v_a_247_); -lean_dec(v_a_246_); -v___x_249_ = lean_box(0); -v_isShared_250_ = v_isSharedCheck_255_; -goto v_resetjp_248_; +lean_inc(v_a_246_); +lean_dec(v_a_245_); +v___x_248_ = lean_box(0); +v_isShared_249_ = v_isSharedCheck_254_; +goto v_resetjp_247_; } -v_resetjp_248_: +v_resetjp_247_: +{ +lean_object* v___x_251_; +if (v_isShared_249_ == 0) +{ +v___x_251_ = v___x_248_; +goto v_reusejp_250_; +} +else +{ +lean_object* v_reuseFailAlloc_253_; +v_reuseFailAlloc_253_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_253_, 0, v_a_246_); +v___x_251_ = v_reuseFailAlloc_253_; +goto v_reusejp_250_; +} +v_reusejp_250_: { lean_object* v___x_252_; -if (v_isShared_250_ == 0) -{ -v___x_252_ = v___x_249_; -goto v_reusejp_251_; -} -else -{ -lean_object* v_reuseFailAlloc_254_; -v_reuseFailAlloc_254_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_254_, 0, v_a_247_); -v___x_252_ = v_reuseFailAlloc_254_; -goto v_reusejp_251_; -} -v_reusejp_251_: -{ -lean_object* v___x_253_; -v___x_253_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_253_, 0, v___x_252_); -return v___x_253_; +v___x_252_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_252_, 0, v___x_251_); +return v___x_252_; } } } else { -lean_object* v_a_256_; lean_object* v___x_257_; lean_object* v___x_258_; lean_object* v___x_259_; lean_object* v___x_260_; -v_a_256_ = lean_ctor_get(v_a_246_, 0); -lean_inc(v_a_256_); -lean_dec_ref(v_a_246_); -v___x_257_ = lean_io_promise_result_opt(v_a_256_); -lean_dec(v_a_256_); -v___x_258_ = lean_unsigned_to_nat(0u); -v___x_259_ = lean_task_map(v___f_233_, v___x_257_, v___x_258_, v___x_234_); +lean_object* v_a_255_; lean_object* v___x_256_; lean_object* v___x_257_; uint8_t v___x_258_; lean_object* v___x_259_; lean_object* v___x_260_; +v_a_255_ = lean_ctor_get(v_a_245_, 0); +lean_inc(v_a_255_); +lean_dec_ref(v_a_245_); +v___x_256_ = lean_io_promise_result_opt(v_a_255_); +lean_dec(v_a_255_); +v___x_257_ = lean_unsigned_to_nat(0u); +v___x_258_ = 0; +v___x_259_ = lean_task_map(v___f_233_, v___x_256_, v___x_257_, v___x_258_); v___x_260_ = lean_alloc_ctor(1, 1, 0); lean_ctor_set(v___x_260_, 0, v___x_259_); return v___x_260_; @@ -1005,3161 +1031,3090 @@ return v___x_260_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed(lean_object* v___f_261_, lean_object* v___x_262_, lean_object* v_x_263_, lean_object* v___y_264_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed(lean_object* v___f_261_, lean_object* v_x_262_, lean_object* v___y_263_){ _start: { -uint8_t v___x_7541__boxed_265_; lean_object* v_res_266_; -v___x_7541__boxed_265_ = lean_unbox(v___x_262_); -v_res_266_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(v___f_261_, v___x_7541__boxed_265_, v_x_263_); -return v_res_266_; +lean_object* v_res_264_; +v_res_264_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1(v___f_261_, v_x_262_); +return v_res_264_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(uint8_t v___x_270_, lean_object* v_x_271_, lean_object* v_x_272_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(lean_object* v_x_270_, lean_object* v_x_271_){ _start: { -if (lean_obj_tag(v_x_272_) == 0) +if (lean_obj_tag(v_x_271_) == 0) { -lean_object* v_a_274_; lean_object* v___x_276_; uint8_t v_isShared_277_; uint8_t v_isSharedCheck_282_; -lean_dec_ref(v_x_271_); -v_a_274_ = lean_ctor_get(v_x_272_, 0); -v_isSharedCheck_282_ = !lean_is_exclusive(v_x_272_); -if (v_isSharedCheck_282_ == 0) +lean_object* v_a_273_; lean_object* v___x_275_; uint8_t v_isShared_276_; uint8_t v_isSharedCheck_281_; +lean_dec_ref(v_x_270_); +v_a_273_ = lean_ctor_get(v_x_271_, 0); +v_isSharedCheck_281_ = !lean_is_exclusive(v_x_271_); +if (v_isSharedCheck_281_ == 0) { -v___x_276_ = v_x_272_; -v_isShared_277_ = v_isSharedCheck_282_; -goto v_resetjp_275_; +v___x_275_ = v_x_271_; +v_isShared_276_ = v_isSharedCheck_281_; +goto v_resetjp_274_; } else { -lean_inc(v_a_274_); -lean_dec(v_x_272_); -v___x_276_ = lean_box(0); -v_isShared_277_ = v_isSharedCheck_282_; -goto v_resetjp_275_; +lean_inc(v_a_273_); +lean_dec(v_x_271_); +v___x_275_ = lean_box(0); +v_isShared_276_ = v_isSharedCheck_281_; +goto v_resetjp_274_; } -v_resetjp_275_: +v_resetjp_274_: +{ +lean_object* v___x_278_; +if (v_isShared_276_ == 0) +{ +v___x_278_ = v___x_275_; +goto v_reusejp_277_; +} +else +{ +lean_object* v_reuseFailAlloc_280_; +v_reuseFailAlloc_280_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_280_, 0, v_a_273_); +v___x_278_ = v_reuseFailAlloc_280_; +goto v_reusejp_277_; +} +v_reusejp_277_: { lean_object* v___x_279_; -if (v_isShared_277_ == 0) -{ -v___x_279_ = v___x_276_; -goto v_reusejp_278_; -} -else -{ -lean_object* v_reuseFailAlloc_281_; -v_reuseFailAlloc_281_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_281_, 0, v_a_274_); -v___x_279_ = v_reuseFailAlloc_281_; -goto v_reusejp_278_; -} -v_reusejp_278_: -{ -lean_object* v___x_280_; -v___x_280_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_280_, 0, v___x_279_); -return v___x_280_; +v___x_279_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_279_, 0, v___x_278_); +return v___x_279_; } } } else { -lean_object* v___x_284_; uint8_t v_isShared_285_; uint8_t v_isSharedCheck_295_; -v_isSharedCheck_295_ = !lean_is_exclusive(v_x_272_); -if (v_isSharedCheck_295_ == 0) +lean_object* v___x_283_; uint8_t v_isShared_284_; uint8_t v_isSharedCheck_293_; +v_isSharedCheck_293_ = !lean_is_exclusive(v_x_271_); +if (v_isSharedCheck_293_ == 0) { -lean_object* v_unused_296_; -v_unused_296_ = lean_ctor_get(v_x_272_, 0); -lean_dec(v_unused_296_); -v___x_284_ = v_x_272_; -v_isShared_285_ = v_isSharedCheck_295_; -goto v_resetjp_283_; +lean_object* v_unused_294_; +v_unused_294_ = lean_ctor_get(v_x_271_, 0); +lean_dec(v_unused_294_); +v___x_283_ = v_x_271_; +v_isShared_284_ = v_isSharedCheck_293_; +goto v_resetjp_282_; } else { -lean_dec(v_x_272_); -v___x_284_ = lean_box(0); -v_isShared_285_ = v_isSharedCheck_295_; -goto v_resetjp_283_; +lean_dec(v_x_271_); +v___x_283_ = lean_box(0); +v_isShared_284_ = v_isSharedCheck_293_; +goto v_resetjp_282_; } -v_resetjp_283_: +v_resetjp_282_: { -lean_object* v___f_286_; lean_object* v___x_287_; lean_object* v___f_288_; lean_object* v___x_290_; -v___f_286_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__1)); -v___x_287_ = lean_box(v___x_270_); -v___f_288_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__1___boxed), 4, 2); -lean_closure_set(v___f_288_, 0, v___f_286_); -lean_closure_set(v___f_288_, 1, v___x_287_); -if (v_isShared_285_ == 0) +lean_object* v___f_285_; lean_object* v___x_287_; +v___f_285_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___closed__2)); +if (v_isShared_284_ == 0) { -lean_ctor_set(v___x_284_, 0, v_x_271_); -v___x_290_ = v___x_284_; -goto v_reusejp_289_; +lean_ctor_set(v___x_283_, 0, v_x_270_); +v___x_287_ = v___x_283_; +goto v_reusejp_286_; } else { -lean_object* v_reuseFailAlloc_294_; -v_reuseFailAlloc_294_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_294_, 0, v_x_271_); -v___x_290_ = v_reuseFailAlloc_294_; -goto v_reusejp_289_; +lean_object* v_reuseFailAlloc_292_; +v_reuseFailAlloc_292_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_292_, 0, v_x_270_); +v___x_287_ = v_reuseFailAlloc_292_; +goto v_reusejp_286_; } -v_reusejp_289_: +v_reusejp_286_: { -lean_object* v___x_291_; lean_object* v___x_292_; lean_object* v___x_293_; -v___x_291_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_291_, 0, v___x_290_); -v___x_292_ = lean_unsigned_to_nat(0u); -v___x_293_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_292_, v___x_270_, v___x_291_, v___f_288_); -return v___x_293_; +lean_object* v___x_288_; lean_object* v___x_289_; uint8_t v___x_290_; lean_object* v___x_291_; +v___x_288_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_288_, 0, v___x_287_); +v___x_289_ = lean_unsigned_to_nat(0u); +v___x_290_ = 0; +v___x_291_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_289_, v___x_290_, v___x_288_, v___f_285_); +return v___x_291_; } } } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed(lean_object* v___x_297_, lean_object* v_x_298_, lean_object* v_x_299_, lean_object* v___y_300_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed(lean_object* v_x_295_, lean_object* v_x_296_, lean_object* v___y_297_){ _start: { -uint8_t v___x_7606__boxed_301_; lean_object* v_res_302_; -v___x_7606__boxed_301_ = lean_unbox(v___x_297_); -v_res_302_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(v___x_7606__boxed_301_, v_x_298_, v_x_299_); -return v_res_302_; +lean_object* v_res_298_; +v_res_298_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2(v_x_295_, v_x_296_); +return v_res_298_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4(lean_object* v___x_303_, uint8_t v___x_304_, lean_object* v___f_305_, lean_object* v___f_306_, lean_object* v_a_307_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(lean_object* v___x_299_, lean_object* v_a_300_, lean_object* v___f_301_, lean_object* v_x_302_){ _start: { -lean_object* v_val_310_; -if (lean_obj_tag(v_a_307_) == 0) +if (lean_obj_tag(v_x_302_) == 0) { -lean_object* v___x_318_; lean_object* v___x_319_; -lean_dec_ref(v___f_306_); -lean_dec_ref(v___f_305_); -v___x_318_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_318_, 0, v___x_303_); -v___x_319_ = lean_task_pure(v___x_318_); -return v___x_319_; +lean_object* v_a_304_; lean_object* v___x_306_; uint8_t v_isShared_307_; uint8_t v_isSharedCheck_312_; +lean_dec_ref(v___f_301_); +v_a_304_ = lean_ctor_get(v_x_302_, 0); +v_isSharedCheck_312_ = !lean_is_exclusive(v_x_302_); +if (v_isSharedCheck_312_ == 0) +{ +v___x_306_ = v_x_302_; +v_isShared_307_ = v_isSharedCheck_312_; +goto v_resetjp_305_; } else { -lean_object* v_val_320_; lean_object* v___x_321_; -v_val_320_ = lean_ctor_get(v_a_307_, 0); -lean_inc(v_val_320_); -lean_dec_ref(v_a_307_); -v___x_321_ = l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable_one_spec__1___redArg(v_val_320_); -if (lean_obj_tag(v___x_321_) == 0) +lean_inc(v_a_304_); +lean_dec(v_x_302_); +v___x_306_ = lean_box(0); +v_isShared_307_ = v_isSharedCheck_312_; +goto v_resetjp_305_; +} +v_resetjp_305_: { -lean_object* v_a_322_; lean_object* v___x_324_; uint8_t v_isShared_325_; uint8_t v_isSharedCheck_329_; -v_a_322_ = lean_ctor_get(v___x_321_, 0); -v_isSharedCheck_329_ = !lean_is_exclusive(v___x_321_); -if (v_isSharedCheck_329_ == 0) +lean_object* v___x_309_; +if (v_isShared_307_ == 0) { -v___x_324_ = v___x_321_; -v_isShared_325_ = v_isSharedCheck_329_; -goto v_resetjp_323_; +v___x_309_ = v___x_306_; +goto v_reusejp_308_; } else { -lean_inc(v_a_322_); -lean_dec(v___x_321_); -v___x_324_ = lean_box(0); -v_isShared_325_ = v_isSharedCheck_329_; -goto v_resetjp_323_; +lean_object* v_reuseFailAlloc_311_; +v_reuseFailAlloc_311_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_311_, 0, v_a_304_); +v___x_309_ = v_reuseFailAlloc_311_; +goto v_reusejp_308_; } -v_resetjp_323_: +v_reusejp_308_: { -lean_object* v___x_327_; -if (v_isShared_325_ == 0) -{ -lean_ctor_set_tag(v___x_324_, 1); -v___x_327_ = v___x_324_; -goto v_reusejp_326_; -} -else -{ -lean_object* v_reuseFailAlloc_328_; -v_reuseFailAlloc_328_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_328_, 0, v_a_322_); -v___x_327_ = v_reuseFailAlloc_328_; -goto v_reusejp_326_; -} -v_reusejp_326_: -{ -v_val_310_ = v___x_327_; -goto v___jp_309_; +lean_object* v___x_310_; +v___x_310_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_310_, 0, v___x_309_); +return v___x_310_; } } } else { -lean_object* v_a_330_; lean_object* v___x_332_; uint8_t v_isShared_333_; uint8_t v_isSharedCheck_337_; -v_a_330_ = lean_ctor_get(v___x_321_, 0); -v_isSharedCheck_337_ = !lean_is_exclusive(v___x_321_); -if (v_isSharedCheck_337_ == 0) +lean_object* v___x_314_; uint8_t v_isShared_315_; uint8_t v_isSharedCheck_324_; +v_isSharedCheck_324_ = !lean_is_exclusive(v_x_302_); +if (v_isSharedCheck_324_ == 0) { -v___x_332_ = v___x_321_; -v_isShared_333_ = v_isSharedCheck_337_; -goto v_resetjp_331_; +lean_object* v_unused_325_; +v_unused_325_ = lean_ctor_get(v_x_302_, 0); +lean_dec(v_unused_325_); +v___x_314_ = v_x_302_; +v_isShared_315_ = v_isSharedCheck_324_; +goto v_resetjp_313_; } else { -lean_inc(v_a_330_); -lean_dec(v___x_321_); -v___x_332_ = lean_box(0); -v_isShared_333_ = v_isSharedCheck_337_; -goto v_resetjp_331_; +lean_dec(v_x_302_); +v___x_314_ = lean_box(0); +v_isShared_315_ = v_isSharedCheck_324_; +goto v_resetjp_313_; } -v_resetjp_331_: +v_resetjp_313_: { -lean_object* v___x_335_; -if (v_isShared_333_ == 0) +lean_object* v___x_316_; lean_object* v___x_318_; +v___x_316_ = lean_io_promise_resolve(v___x_299_, v_a_300_); +if (v_isShared_315_ == 0) { -lean_ctor_set_tag(v___x_332_, 0); -v___x_335_ = v___x_332_; -goto v_reusejp_334_; +lean_ctor_set(v___x_314_, 0, v___x_316_); +v___x_318_ = v___x_314_; +goto v_reusejp_317_; } else { -lean_object* v_reuseFailAlloc_336_; -v_reuseFailAlloc_336_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_336_, 0, v_a_330_); -v___x_335_ = v_reuseFailAlloc_336_; -goto v_reusejp_334_; +lean_object* v_reuseFailAlloc_323_; +v_reuseFailAlloc_323_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_323_, 0, v___x_316_); +v___x_318_ = v_reuseFailAlloc_323_; +goto v_reusejp_317_; } -v_reusejp_334_: +v_reusejp_317_: { -v_val_310_ = v___x_335_; -goto v___jp_309_; +lean_object* v___x_319_; lean_object* v___x_320_; uint8_t v___x_321_; lean_object* v___x_322_; +v___x_319_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_319_, 0, v___x_318_); +v___x_320_ = lean_unsigned_to_nat(0u); +v___x_321_ = 0; +v___x_322_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_320_, v___x_321_, v___x_319_, v___f_301_); +return v___x_322_; } } } } -v___jp_309_: -{ -lean_object* v___x_311_; lean_object* v___x_312_; lean_object* v___x_313_; lean_object* v___x_314_; -v___x_311_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_311_, 0, v_val_310_); -v___x_312_ = lean_unsigned_to_nat(0u); -v___x_313_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_312_, v___x_304_, v___x_311_, v___f_305_); -v___x_314_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_312_, v___x_304_, v___x_313_, v___f_306_); -if (lean_obj_tag(v___x_314_) == 0) -{ -lean_object* v_a_315_; lean_object* v___x_316_; -v_a_315_ = lean_ctor_get(v___x_314_, 0); -lean_inc(v_a_315_); -lean_dec_ref(v___x_314_); -v___x_316_ = lean_task_pure(v_a_315_); -return v___x_316_; } -else -{ -lean_object* v_a_317_; -v_a_317_ = lean_ctor_get(v___x_314_, 0); -lean_inc_ref(v_a_317_); -lean_dec_ref(v___x_314_); -return v_a_317_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4___boxed(lean_object* v___x_338_, lean_object* v___x_339_, lean_object* v___f_340_, lean_object* v___f_341_, lean_object* v_a_342_, lean_object* v___y_343_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed(lean_object* v___x_326_, lean_object* v_a_327_, lean_object* v___f_328_, lean_object* v_x_329_, lean_object* v___y_330_){ _start: { -uint8_t v___x_7669__boxed_344_; lean_object* v_res_345_; -v___x_7669__boxed_344_ = lean_unbox(v___x_339_); -v_res_345_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4(v___x_338_, v___x_7669__boxed_344_, v___f_340_, v___f_341_, v_a_342_); -return v_res_345_; +lean_object* v_res_331_; +v_res_331_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(v___x_326_, v_a_327_, v___f_328_, v_x_329_); +lean_dec(v_a_327_); +return v_res_331_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0(lean_object* v_a_346_, lean_object* v_x_347_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4(lean_object* v___x_332_, lean_object* v___y_333_){ _start: { -if (lean_obj_tag(v_x_347_) == 0) +if (lean_obj_tag(v___y_333_) == 0) { -lean_object* v_a_349_; lean_object* v___x_351_; uint8_t v_isShared_352_; uint8_t v_isSharedCheck_359_; -v_a_349_ = lean_ctor_get(v_x_347_, 0); -v_isSharedCheck_359_ = !lean_is_exclusive(v_x_347_); -if (v_isSharedCheck_359_ == 0) +lean_object* v_a_334_; lean_object* v___x_336_; uint8_t v_isShared_337_; uint8_t v_isSharedCheck_341_; +v_a_334_ = lean_ctor_get(v___y_333_, 0); +v_isSharedCheck_341_ = !lean_is_exclusive(v___y_333_); +if (v_isSharedCheck_341_ == 0) { -v___x_351_ = v_x_347_; -v_isShared_352_ = v_isSharedCheck_359_; -goto v_resetjp_350_; +v___x_336_ = v___y_333_; +v_isShared_337_ = v_isSharedCheck_341_; +goto v_resetjp_335_; } else { -lean_inc(v_a_349_); -lean_dec(v_x_347_); -v___x_351_ = lean_box(0); -v_isShared_352_ = v_isSharedCheck_359_; -goto v_resetjp_350_; +lean_inc(v_a_334_); +lean_dec(v___y_333_); +v___x_336_ = lean_box(0); +v_isShared_337_ = v_isSharedCheck_341_; +goto v_resetjp_335_; } -v_resetjp_350_: +v_resetjp_335_: { -lean_object* v___x_354_; -if (v_isShared_352_ == 0) +lean_object* v___x_339_; +if (v_isShared_337_ == 0) { -v___x_354_ = v___x_351_; -goto v_reusejp_353_; +v___x_339_ = v___x_336_; +goto v_reusejp_338_; } else { -lean_object* v_reuseFailAlloc_358_; -v_reuseFailAlloc_358_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_358_, 0, v_a_349_); -v___x_354_ = v_reuseFailAlloc_358_; -goto v_reusejp_353_; +lean_object* v_reuseFailAlloc_340_; +v_reuseFailAlloc_340_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_340_, 0, v_a_334_); +v___x_339_ = v_reuseFailAlloc_340_; +goto v_reusejp_338_; } -v_reusejp_353_: +v_reusejp_338_: { -lean_object* v___x_355_; lean_object* v___x_356_; lean_object* v___x_357_; -v___x_355_ = lean_io_promise_resolve(v___x_354_, v_a_346_); -v___x_356_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_356_, 0, v___x_355_); -v___x_357_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_357_, 0, v___x_356_); -return v___x_357_; +return v___x_339_; } } } else { -lean_object* v___x_360_; -v___x_360_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_360_, 0, v_x_347_); -return v___x_360_; +lean_object* v___x_343_; uint8_t v_isShared_344_; uint8_t v_isSharedCheck_348_; +v_isSharedCheck_348_ = !lean_is_exclusive(v___y_333_); +if (v_isSharedCheck_348_ == 0) +{ +lean_object* v_unused_349_; +v_unused_349_ = lean_ctor_get(v___y_333_, 0); +lean_dec(v_unused_349_); +v___x_343_ = v___y_333_; +v_isShared_344_ = v_isSharedCheck_348_; +goto v_resetjp_342_; +} +else +{ +lean_dec(v___y_333_); +v___x_343_ = lean_box(0); +v_isShared_344_ = v_isSharedCheck_348_; +goto v_resetjp_342_; +} +v_resetjp_342_: +{ +lean_object* v___x_346_; +if (v_isShared_344_ == 0) +{ +lean_ctor_set(v___x_343_, 0, v___x_332_); +v___x_346_ = v___x_343_; +goto v_reusejp_345_; +} +else +{ +lean_object* v_reuseFailAlloc_347_; +v_reuseFailAlloc_347_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_347_, 0, v___x_332_); +v___x_346_ = v_reuseFailAlloc_347_; +goto v_reusejp_345_; +} +v_reusejp_345_: +{ +return v___x_346_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0___boxed(lean_object* v_a_361_, lean_object* v_x_362_, lean_object* v___y_363_){ +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0(lean_object* v_a_350_, lean_object* v_x_351_){ _start: { -lean_object* v_res_364_; -v_res_364_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0(v_a_361_, v_x_362_); -lean_dec(v_a_361_); -return v_res_364_; +if (lean_obj_tag(v_x_351_) == 0) +{ +lean_object* v_a_353_; lean_object* v___x_355_; uint8_t v_isShared_356_; uint8_t v_isSharedCheck_361_; +v_a_353_ = lean_ctor_get(v_x_351_, 0); +v_isSharedCheck_361_ = !lean_is_exclusive(v_x_351_); +if (v_isSharedCheck_361_ == 0) +{ +v___x_355_ = v_x_351_; +v_isShared_356_ = v_isSharedCheck_361_; +goto v_resetjp_354_; +} +else +{ +lean_inc(v_a_353_); +lean_dec(v_x_351_); +v___x_355_ = lean_box(0); +v_isShared_356_ = v_isSharedCheck_361_; +goto v_resetjp_354_; +} +v_resetjp_354_: +{ +lean_object* v___x_358_; +if (v_isShared_356_ == 0) +{ +v___x_358_ = v___x_355_; +goto v_reusejp_357_; +} +else +{ +lean_object* v_reuseFailAlloc_360_; +v_reuseFailAlloc_360_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_360_, 0, v_a_353_); +v___x_358_ = v_reuseFailAlloc_360_; +goto v_reusejp_357_; +} +v_reusejp_357_: +{ +lean_object* v___x_359_; +v___x_359_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_359_, 0, v___x_358_); +return v___x_359_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0(lean_object* v___x_365_, lean_object* v_x_366_){ +} +else +{ +lean_object* v___x_362_; lean_object* v___x_363_; lean_object* v___x_364_; +v___x_362_ = lean_io_promise_resolve(v_x_351_, v_a_350_); +v___x_363_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_363_, 0, v___x_362_); +v___x_364_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_364_, 0, v___x_363_); +return v___x_364_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0___boxed(lean_object* v_a_365_, lean_object* v_x_366_, lean_object* v___y_367_){ _start: { -if (lean_obj_tag(v_x_366_) == 0) -{ -lean_object* v_a_368_; lean_object* v___x_370_; uint8_t v_isShared_371_; uint8_t v_isSharedCheck_376_; -v_a_368_ = lean_ctor_get(v_x_366_, 0); -v_isSharedCheck_376_ = !lean_is_exclusive(v_x_366_); -if (v_isSharedCheck_376_ == 0) -{ -v___x_370_ = v_x_366_; -v_isShared_371_ = v_isSharedCheck_376_; -goto v_resetjp_369_; -} -else -{ -lean_inc(v_a_368_); -lean_dec(v_x_366_); -v___x_370_ = lean_box(0); -v_isShared_371_ = v_isSharedCheck_376_; -goto v_resetjp_369_; -} -v_resetjp_369_: -{ -lean_object* v___x_373_; -if (v_isShared_371_ == 0) -{ -v___x_373_ = v___x_370_; -goto v_reusejp_372_; -} -else -{ -lean_object* v_reuseFailAlloc_375_; -v_reuseFailAlloc_375_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_375_, 0, v_a_368_); -v___x_373_ = v_reuseFailAlloc_375_; -goto v_reusejp_372_; -} -v_reusejp_372_: -{ -lean_object* v___x_374_; -v___x_374_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_374_, 0, v___x_373_); -return v___x_374_; +lean_object* v_res_368_; +v_res_368_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0(v_a_365_, v_x_366_); +lean_dec(v_a_365_); +return v_res_368_; } } -} -else -{ -lean_object* v___x_378_; uint8_t v_isShared_379_; uint8_t v_isSharedCheck_385_; -v_isSharedCheck_385_ = !lean_is_exclusive(v_x_366_); -if (v_isSharedCheck_385_ == 0) -{ -lean_object* v_unused_386_; -v_unused_386_ = lean_ctor_get(v_x_366_, 0); -lean_dec(v_unused_386_); -v___x_378_ = v_x_366_; -v_isShared_379_ = v_isSharedCheck_385_; -goto v_resetjp_377_; -} -else -{ -lean_dec(v_x_366_); -v___x_378_ = lean_box(0); -v_isShared_379_ = v_isSharedCheck_385_; -goto v_resetjp_377_; -} -v_resetjp_377_: -{ -lean_object* v___x_380_; lean_object* v___x_382_; -v___x_380_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_380_, 0, v___x_365_); -if (v_isShared_379_ == 0) -{ -lean_ctor_set(v___x_378_, 0, v___x_380_); -v___x_382_ = v___x_378_; -goto v_reusejp_381_; -} -else -{ -lean_object* v_reuseFailAlloc_384_; -v_reuseFailAlloc_384_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_384_, 0, v___x_380_); -v___x_382_ = v_reuseFailAlloc_384_; -goto v_reusejp_381_; -} -v_reusejp_381_: -{ -lean_object* v___x_383_; -v___x_383_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_383_, 0, v___x_382_); -return v___x_383_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0___boxed(lean_object* v___x_387_, lean_object* v_x_388_, lean_object* v___y_389_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0(lean_object* v___x_369_, lean_object* v_x_370_){ _start: { -lean_object* v_res_390_; -v_res_390_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0(v___x_387_, v_x_388_); -return v_res_390_; +if (lean_obj_tag(v_x_370_) == 0) +{ +lean_object* v_a_372_; lean_object* v___x_374_; uint8_t v_isShared_375_; uint8_t v_isSharedCheck_380_; +v_a_372_ = lean_ctor_get(v_x_370_, 0); +v_isSharedCheck_380_ = !lean_is_exclusive(v_x_370_); +if (v_isSharedCheck_380_ == 0) +{ +v___x_374_ = v_x_370_; +v_isShared_375_ = v_isSharedCheck_380_; +goto v_resetjp_373_; +} +else +{ +lean_inc(v_a_372_); +lean_dec(v_x_370_); +v___x_374_ = lean_box(0); +v_isShared_375_ = v_isSharedCheck_380_; +goto v_resetjp_373_; +} +v_resetjp_373_: +{ +lean_object* v___x_377_; +if (v_isShared_375_ == 0) +{ +v___x_377_ = v___x_374_; +goto v_reusejp_376_; +} +else +{ +lean_object* v_reuseFailAlloc_379_; +v_reuseFailAlloc_379_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_379_, 0, v_a_372_); +v___x_377_ = v_reuseFailAlloc_379_; +goto v_reusejp_376_; +} +v_reusejp_376_: +{ +lean_object* v___x_378_; +v___x_378_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_378_, 0, v___x_377_); +return v___x_378_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(lean_object* v_a_391_, lean_object* v_a_392_, uint8_t v___x_393_, lean_object* v___f_394_, lean_object* v_x_395_){ +} +else +{ +lean_object* v___x_382_; uint8_t v_isShared_383_; uint8_t v_isSharedCheck_389_; +v_isSharedCheck_389_ = !lean_is_exclusive(v_x_370_); +if (v_isSharedCheck_389_ == 0) +{ +lean_object* v_unused_390_; +v_unused_390_ = lean_ctor_get(v_x_370_, 0); +lean_dec(v_unused_390_); +v___x_382_ = v_x_370_; +v_isShared_383_ = v_isSharedCheck_389_; +goto v_resetjp_381_; +} +else +{ +lean_dec(v_x_370_); +v___x_382_ = lean_box(0); +v_isShared_383_ = v_isSharedCheck_389_; +goto v_resetjp_381_; +} +v_resetjp_381_: +{ +lean_object* v___x_384_; lean_object* v___x_386_; +v___x_384_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_384_, 0, v___x_369_); +if (v_isShared_383_ == 0) +{ +lean_ctor_set(v___x_382_, 0, v___x_384_); +v___x_386_ = v___x_382_; +goto v_reusejp_385_; +} +else +{ +lean_object* v_reuseFailAlloc_388_; +v_reuseFailAlloc_388_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_388_, 0, v___x_384_); +v___x_386_ = v_reuseFailAlloc_388_; +goto v_reusejp_385_; +} +v_reusejp_385_: +{ +lean_object* v___x_387_; +v___x_387_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_387_, 0, v___x_386_); +return v___x_387_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0___boxed(lean_object* v___x_391_, lean_object* v_x_392_, lean_object* v___y_393_){ _start: { -if (lean_obj_tag(v_x_395_) == 0) -{ -lean_object* v___x_397_; -lean_dec_ref(v___f_394_); -lean_dec(v_a_392_); -lean_dec_ref(v_a_391_); -v___x_397_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_397_, 0, v_x_395_); -return v___x_397_; -} -else -{ -lean_object* v_cont_398_; lean_object* v___x_399_; lean_object* v___x_400_; lean_object* v___x_401_; -lean_dec_ref(v_x_395_); -v_cont_398_ = lean_ctor_get(v_a_391_, 1); -lean_inc_ref(v_cont_398_); -lean_dec_ref(v_a_391_); -v___x_399_ = lean_apply_2(v_cont_398_, v_a_392_, lean_box(0)); -v___x_400_ = lean_unsigned_to_nat(0u); -v___x_401_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_400_, v___x_393_, v___x_399_, v___f_394_); -return v___x_401_; +lean_object* v_res_394_; +v_res_394_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__0(v___x_391_, v_x_392_); +return v_res_394_; } } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed(lean_object* v_a_402_, lean_object* v_a_403_, lean_object* v___x_404_, lean_object* v___f_405_, lean_object* v_x_406_, lean_object* v___y_407_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(lean_object* v_a_395_, lean_object* v_x_396_){ _start: { -uint8_t v___x_7824__boxed_408_; lean_object* v_res_409_; -v___x_7824__boxed_408_ = lean_unbox(v___x_404_); -v_res_409_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(v_a_402_, v_a_403_, v___x_7824__boxed_408_, v___f_405_, v_x_406_); -return v_res_409_; +if (lean_obj_tag(v_x_396_) == 0) +{ +lean_object* v_a_398_; lean_object* v___x_400_; uint8_t v_isShared_401_; uint8_t v_isSharedCheck_408_; +v_a_398_ = lean_ctor_get(v_x_396_, 0); +v_isSharedCheck_408_ = !lean_is_exclusive(v_x_396_); +if (v_isSharedCheck_408_ == 0) +{ +v___x_400_ = v_x_396_; +v_isShared_401_ = v_isSharedCheck_408_; +goto v_resetjp_399_; +} +else +{ +lean_inc(v_a_398_); +lean_dec(v_x_396_); +v___x_400_ = lean_box(0); +v_isShared_401_ = v_isSharedCheck_408_; +goto v_resetjp_399_; +} +v_resetjp_399_: +{ +lean_object* v___x_403_; +if (v_isShared_401_ == 0) +{ +v___x_403_ = v___x_400_; +goto v_reusejp_402_; +} +else +{ +lean_object* v_reuseFailAlloc_407_; +v_reuseFailAlloc_407_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_407_, 0, v_a_398_); +v___x_403_ = v_reuseFailAlloc_407_; +goto v_reusejp_402_; +} +v_reusejp_402_: +{ +lean_object* v___x_404_; lean_object* v___x_405_; lean_object* v___x_406_; +v___x_404_ = lean_io_promise_resolve(v___x_403_, v_a_395_); +v___x_405_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_405_, 0, v___x_404_); +v___x_406_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_406_, 0, v___x_405_); +return v___x_406_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed(lean_object* v_i_412_, lean_object* v_as_413_, lean_object* v_sz_414_, lean_object* v_x_415_, lean_object* v___y_416_){ +} +else +{ +lean_object* v___x_409_; +v___x_409_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_409_, 0, v_x_396_); +return v___x_409_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed(lean_object* v_a_410_, lean_object* v_x_411_, lean_object* v___y_412_){ _start: { -size_t v_i_boxed_417_; size_t v_sz_boxed_418_; lean_object* v_res_419_; -v_i_boxed_417_ = lean_unbox_usize(v_i_412_); -lean_dec(v_i_412_); -v_sz_boxed_418_ = lean_unbox_usize(v_sz_414_); -lean_dec(v_sz_414_); -v_res_419_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(v_i_boxed_417_, v_as_413_, v_sz_boxed_418_, v_x_415_); -return v_res_419_; +lean_object* v_res_413_; +v_res_413_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(v_a_410_, v_x_411_); +lean_dec(v_a_410_); +return v_res_413_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(lean_object* v_as_420_, size_t v_sz_421_, size_t v_i_422_, lean_object* v_b_423_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1(lean_object* v_a_414_){ _start: { -uint8_t v___x_425_; -v___x_425_ = lean_usize_dec_lt(v_i_422_, v_sz_421_); -if (v___x_425_ == 0) -{ -lean_object* v___x_426_; lean_object* v___x_427_; -lean_dec_ref(v_as_420_); -v___x_426_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_426_, 0, v_b_423_); -v___x_427_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_427_, 0, v___x_426_); -return v___x_427_; -} -else -{ -lean_object* v_a_428_; lean_object* v_selector_429_; lean_object* v_unregisterFn_430_; lean_object* v___x_431_; lean_object* v___f_432_; lean_object* v___x_433_; uint8_t v___x_434_; lean_object* v___x_435_; lean_object* v___x_436_; lean_object* v___x_437_; lean_object* v___f_438_; lean_object* v___x_439_; -v_a_428_ = lean_array_uget_borrowed(v_as_420_, v_i_422_); -v_selector_429_ = lean_ctor_get(v_a_428_, 0); -v_unregisterFn_430_ = lean_ctor_get(v_selector_429_, 2); -lean_inc_ref(v_unregisterFn_430_); -v___x_431_ = lean_apply_1(v_unregisterFn_430_, lean_box(0)); -v___f_432_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); -v___x_433_ = lean_unsigned_to_nat(0u); -v___x_434_ = 0; -v___x_435_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_433_, v___x_434_, v___x_431_, v___f_432_); -v___x_436_ = lean_box_usize(v_i_422_); -v___x_437_ = lean_box_usize(v_sz_421_); -v___f_438_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed), 5, 3); -lean_closure_set(v___f_438_, 0, v___x_436_); -lean_closure_set(v___f_438_, 1, v_as_420_); -lean_closure_set(v___f_438_, 2, v___x_437_); -v___x_439_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_433_, v___x_434_, v___x_435_, v___f_438_); -return v___x_439_; +lean_object* v___x_415_; +v___x_415_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_415_, 0, v_a_414_); +return v___x_415_; } } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(size_t v_i_440_, lean_object* v_as_441_, size_t v_sz_442_, lean_object* v_x_443_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(lean_object* v___x_416_, uint8_t v_a_417_, lean_object* v___f_418_, lean_object* v___f_419_, lean_object* v_a_420_){ _start: { -if (lean_obj_tag(v_x_443_) == 0) +lean_object* v_val_423_; +if (lean_obj_tag(v_a_420_) == 0) { -lean_object* v_a_445_; lean_object* v___x_447_; uint8_t v_isShared_448_; uint8_t v_isSharedCheck_453_; -lean_dec_ref(v_as_441_); -v_a_445_ = lean_ctor_get(v_x_443_, 0); -v_isSharedCheck_453_ = !lean_is_exclusive(v_x_443_); -if (v_isSharedCheck_453_ == 0) -{ -v___x_447_ = v_x_443_; -v_isShared_448_ = v_isSharedCheck_453_; -goto v_resetjp_446_; +lean_object* v___x_431_; lean_object* v___x_432_; +lean_dec_ref(v___f_419_); +lean_dec_ref(v___f_418_); +v___x_431_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_431_, 0, v___x_416_); +v___x_432_ = lean_task_pure(v___x_431_); +return v___x_432_; } else { -lean_inc(v_a_445_); -lean_dec(v_x_443_); -v___x_447_ = lean_box(0); -v_isShared_448_ = v_isSharedCheck_453_; -goto v_resetjp_446_; -} -v_resetjp_446_: +lean_object* v_val_433_; lean_object* v___x_434_; +v_val_433_ = lean_ctor_get(v_a_420_, 0); +lean_inc(v_val_433_); +lean_dec_ref(v_a_420_); +v___x_434_ = l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable_one_spec__1___redArg(v_val_433_); +if (lean_obj_tag(v___x_434_) == 0) { -lean_object* v___x_450_; -if (v_isShared_448_ == 0) +lean_object* v_a_435_; lean_object* v___x_437_; uint8_t v_isShared_438_; uint8_t v_isSharedCheck_442_; +v_a_435_ = lean_ctor_get(v___x_434_, 0); +v_isSharedCheck_442_ = !lean_is_exclusive(v___x_434_); +if (v_isSharedCheck_442_ == 0) { -v___x_450_ = v___x_447_; -goto v_reusejp_449_; +v___x_437_ = v___x_434_; +v_isShared_438_ = v_isSharedCheck_442_; +goto v_resetjp_436_; } else { -lean_object* v_reuseFailAlloc_452_; -v_reuseFailAlloc_452_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_452_, 0, v_a_445_); -v___x_450_ = v_reuseFailAlloc_452_; -goto v_reusejp_449_; +lean_inc(v_a_435_); +lean_dec(v___x_434_); +v___x_437_ = lean_box(0); +v_isShared_438_ = v_isSharedCheck_442_; +goto v_resetjp_436_; } -v_reusejp_449_: +v_resetjp_436_: { -lean_object* v___x_451_; -v___x_451_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_451_, 0, v___x_450_); -return v___x_451_; +lean_object* v___x_440_; +if (v_isShared_438_ == 0) +{ +lean_ctor_set_tag(v___x_437_, 1); +v___x_440_ = v___x_437_; +goto v_reusejp_439_; +} +else +{ +lean_object* v_reuseFailAlloc_441_; +v_reuseFailAlloc_441_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_441_, 0, v_a_435_); +v___x_440_ = v_reuseFailAlloc_441_; +goto v_reusejp_439_; +} +v_reusejp_439_: +{ +v_val_423_ = v___x_440_; +goto v___jp_422_; } } } else { -lean_object* v_a_454_; lean_object* v___x_456_; uint8_t v_isShared_457_; uint8_t v_isSharedCheck_473_; -v_a_454_ = lean_ctor_get(v_x_443_, 0); -v_isSharedCheck_473_ = !lean_is_exclusive(v_x_443_); -if (v_isSharedCheck_473_ == 0) +lean_object* v_a_443_; lean_object* v___x_445_; uint8_t v_isShared_446_; uint8_t v_isSharedCheck_450_; +v_a_443_ = lean_ctor_get(v___x_434_, 0); +v_isSharedCheck_450_ = !lean_is_exclusive(v___x_434_); +if (v_isSharedCheck_450_ == 0) { -v___x_456_ = v_x_443_; -v_isShared_457_ = v_isSharedCheck_473_; -goto v_resetjp_455_; +v___x_445_ = v___x_434_; +v_isShared_446_ = v_isSharedCheck_450_; +goto v_resetjp_444_; } else { -lean_inc(v_a_454_); -lean_dec(v_x_443_); -v___x_456_ = lean_box(0); -v_isShared_457_ = v_isSharedCheck_473_; -goto v_resetjp_455_; +lean_inc(v_a_443_); +lean_dec(v___x_434_); +v___x_445_ = lean_box(0); +v_isShared_446_ = v_isSharedCheck_450_; +goto v_resetjp_444_; } -v_resetjp_455_: +v_resetjp_444_: { -if (lean_obj_tag(v_a_454_) == 0) +lean_object* v___x_448_; +if (v_isShared_446_ == 0) { -lean_object* v_a_458_; lean_object* v___x_460_; uint8_t v_isShared_461_; uint8_t v_isSharedCheck_468_; -lean_dec_ref(v_as_441_); -v_a_458_ = lean_ctor_get(v_a_454_, 0); -v_isSharedCheck_468_ = !lean_is_exclusive(v_a_454_); -if (v_isSharedCheck_468_ == 0) -{ -v___x_460_ = v_a_454_; -v_isShared_461_ = v_isSharedCheck_468_; -goto v_resetjp_459_; +lean_ctor_set_tag(v___x_445_, 0); +v___x_448_ = v___x_445_; +goto v_reusejp_447_; } else { -lean_inc(v_a_458_); -lean_dec(v_a_454_); -v___x_460_ = lean_box(0); -v_isShared_461_ = v_isSharedCheck_468_; -goto v_resetjp_459_; +lean_object* v_reuseFailAlloc_449_; +v_reuseFailAlloc_449_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_449_, 0, v_a_443_); +v___x_448_ = v_reuseFailAlloc_449_; +goto v_reusejp_447_; } -v_resetjp_459_: +v_reusejp_447_: { -lean_object* v___x_463_; -if (v_isShared_457_ == 0) +v_val_423_ = v___x_448_; +goto v___jp_422_; +} +} +} +} +v___jp_422_: { -lean_ctor_set(v___x_456_, 0, v_a_458_); -v___x_463_ = v___x_456_; -goto v_reusejp_462_; +lean_object* v___x_424_; lean_object* v___x_425_; lean_object* v___x_426_; lean_object* v___x_427_; +v___x_424_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_424_, 0, v_val_423_); +v___x_425_ = lean_unsigned_to_nat(0u); +v___x_426_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_425_, v_a_417_, v___x_424_, v___f_418_); +v___x_427_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_425_, v_a_417_, v___x_426_, v___f_419_); +if (lean_obj_tag(v___x_427_) == 0) +{ +lean_object* v_a_428_; lean_object* v___x_429_; +v_a_428_ = lean_ctor_get(v___x_427_, 0); +lean_inc(v_a_428_); +lean_dec_ref(v___x_427_); +v___x_429_ = lean_task_pure(v_a_428_); +return v___x_429_; } else { -lean_object* v_reuseFailAlloc_467_; -v_reuseFailAlloc_467_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_467_, 0, v_a_458_); -v___x_463_ = v_reuseFailAlloc_467_; -goto v_reusejp_462_; -} -v_reusejp_462_: -{ -lean_object* v___x_465_; -if (v_isShared_461_ == 0) -{ -lean_ctor_set(v___x_460_, 0, v___x_463_); -v___x_465_ = v___x_460_; -goto v_reusejp_464_; -} -else -{ -lean_object* v_reuseFailAlloc_466_; -v_reuseFailAlloc_466_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_466_, 0, v___x_463_); -v___x_465_ = v_reuseFailAlloc_466_; -goto v_reusejp_464_; -} -v_reusejp_464_: -{ -return v___x_465_; +lean_object* v_a_430_; +v_a_430_ = lean_ctor_get(v___x_427_, 0); +lean_inc_ref(v_a_430_); +lean_dec_ref(v___x_427_); +return v_a_430_; } } } } -else -{ -lean_object* v_a_469_; size_t v___x_470_; size_t v___x_471_; lean_object* v___x_472_; -lean_del_object(v___x_456_); -v_a_469_ = lean_ctor_get(v_a_454_, 0); -lean_inc(v_a_469_); -lean_dec_ref(v_a_454_); -v___x_470_ = ((size_t)1ULL); -v___x_471_ = lean_usize_add(v_i_440_, v___x_470_); -v___x_472_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_as_441_, v_sz_442_, v___x_471_, v_a_469_); -return v___x_472_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___boxed(lean_object* v_as_474_, lean_object* v_sz_475_, lean_object* v_i_476_, lean_object* v_b_477_, lean_object* v___y_478_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed(lean_object* v___x_451_, lean_object* v_a_452_, lean_object* v___f_453_, lean_object* v___f_454_, lean_object* v_a_455_, lean_object* v___y_456_){ _start: { -size_t v_sz_boxed_479_; size_t v_i_boxed_480_; lean_object* v_res_481_; -v_sz_boxed_479_ = lean_unbox_usize(v_sz_475_); -lean_dec(v_sz_475_); -v_i_boxed_480_ = lean_unbox_usize(v_i_476_); -lean_dec(v_i_476_); -v_res_481_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_as_474_, v_sz_boxed_479_, v_i_boxed_480_, v_b_477_); -return v_res_481_; +uint8_t v_a_10583__boxed_457_; lean_object* v_res_458_; +v_a_10583__boxed_457_ = lean_unbox(v_a_452_); +v_res_458_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(v___x_451_, v_a_10583__boxed_457_, v___f_453_, v___f_454_, v_a_455_); +return v_res_458_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(lean_object* v___x_482_, lean_object* v___x_483_, lean_object* v_a_484_, uint8_t v___x_485_, lean_object* v___f_486_, lean_object* v_x_487_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8(lean_object* v_a_459_, lean_object* v___f_460_, uint8_t v___x_461_, lean_object* v___x_462_, uint8_t v_a_463_, lean_object* v___f_464_, lean_object* v_x_465_){ _start: { -if (lean_obj_tag(v_x_487_) == 0) +if (lean_obj_tag(v_x_465_) == 0) { -lean_object* v_a_489_; lean_object* v___x_491_; uint8_t v_isShared_492_; uint8_t v_isSharedCheck_497_; -lean_dec_ref(v___f_486_); -lean_dec_ref(v_a_484_); -lean_dec_ref(v___x_482_); -v_a_489_ = lean_ctor_get(v_x_487_, 0); -v_isSharedCheck_497_ = !lean_is_exclusive(v_x_487_); -if (v_isSharedCheck_497_ == 0) +lean_object* v_a_467_; lean_object* v___x_469_; uint8_t v_isShared_470_; uint8_t v_isSharedCheck_475_; +lean_dec_ref(v___f_464_); +lean_dec_ref(v___f_460_); +v_a_467_ = lean_ctor_get(v_x_465_, 0); +v_isSharedCheck_475_ = !lean_is_exclusive(v_x_465_); +if (v_isSharedCheck_475_ == 0) { -v___x_491_ = v_x_487_; -v_isShared_492_ = v_isSharedCheck_497_; -goto v_resetjp_490_; +v___x_469_ = v_x_465_; +v_isShared_470_ = v_isSharedCheck_475_; +goto v_resetjp_468_; } else { -lean_inc(v_a_489_); -lean_dec(v_x_487_); -v___x_491_ = lean_box(0); -v_isShared_492_ = v_isSharedCheck_497_; -goto v_resetjp_490_; +lean_inc(v_a_467_); +lean_dec(v_x_465_); +v___x_469_ = lean_box(0); +v_isShared_470_ = v_isSharedCheck_475_; +goto v_resetjp_468_; } -v_resetjp_490_: +v_resetjp_468_: { -lean_object* v___x_494_; -if (v_isShared_492_ == 0) +lean_object* v___x_472_; +if (v_isShared_470_ == 0) { -v___x_494_ = v___x_491_; -goto v_reusejp_493_; +v___x_472_ = v___x_469_; +goto v_reusejp_471_; } else { -lean_object* v_reuseFailAlloc_496_; -v_reuseFailAlloc_496_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_496_, 0, v_a_489_); -v___x_494_ = v_reuseFailAlloc_496_; -goto v_reusejp_493_; +lean_object* v_reuseFailAlloc_474_; +v_reuseFailAlloc_474_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_474_, 0, v_a_467_); +v___x_472_ = v_reuseFailAlloc_474_; +goto v_reusejp_471_; } -v_reusejp_493_: +v_reusejp_471_: { -lean_object* v___x_495_; -v___x_495_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_495_, 0, v___x_494_); -return v___x_495_; +lean_object* v___x_473_; +v___x_473_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_473_, 0, v___x_472_); +return v___x_473_; } } } else { -lean_object* v_a_498_; size_t v_sz_499_; size_t v___x_500_; lean_object* v___x_501_; lean_object* v___x_502_; lean_object* v___f_503_; lean_object* v___x_504_; lean_object* v___x_505_; -v_a_498_ = lean_ctor_get(v_x_487_, 0); -lean_inc(v_a_498_); -lean_dec_ref(v_x_487_); -v_sz_499_ = lean_array_size(v___x_482_); -v___x_500_ = ((size_t)0ULL); -v___x_501_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v___x_482_, v_sz_499_, v___x_500_, v___x_483_); -v___x_502_ = lean_box(v___x_485_); -v___f_503_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed), 6, 4); -lean_closure_set(v___f_503_, 0, v_a_484_); -lean_closure_set(v___f_503_, 1, v_a_498_); -lean_closure_set(v___f_503_, 2, v___x_502_); -lean_closure_set(v___f_503_, 3, v___f_486_); -v___x_504_ = lean_unsigned_to_nat(0u); -v___x_505_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_504_, v___x_485_, v___x_501_, v___f_503_); -return v___x_505_; +lean_object* v___x_477_; uint8_t v_isShared_478_; uint8_t v_isSharedCheck_487_; +v_isSharedCheck_487_ = !lean_is_exclusive(v_x_465_); +if (v_isSharedCheck_487_ == 0) +{ +lean_object* v_unused_488_; +v_unused_488_ = lean_ctor_get(v_x_465_, 0); +lean_dec(v_unused_488_); +v___x_477_ = v_x_465_; +v_isShared_478_ = v_isSharedCheck_487_; +goto v_resetjp_476_; +} +else +{ +lean_dec(v_x_465_); +v___x_477_ = lean_box(0); +v_isShared_478_ = v_isSharedCheck_487_; +goto v_resetjp_476_; +} +v_resetjp_476_: +{ +lean_object* v___x_479_; lean_object* v___x_480_; lean_object* v___x_481_; lean_object* v___x_483_; +v___x_479_ = lean_io_promise_result_opt(v_a_459_); +v___x_480_ = lean_unsigned_to_nat(0u); +v___x_481_ = lean_io_bind_task(v___x_479_, v___f_460_, v___x_480_, v___x_461_); +lean_dec_ref(v___x_481_); +if (v_isShared_478_ == 0) +{ +lean_ctor_set(v___x_477_, 0, v___x_462_); +v___x_483_ = v___x_477_; +goto v_reusejp_482_; +} +else +{ +lean_object* v_reuseFailAlloc_486_; +v_reuseFailAlloc_486_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_486_, 0, v___x_462_); +v___x_483_ = v_reuseFailAlloc_486_; +goto v_reusejp_482_; +} +v_reusejp_482_: +{ +lean_object* v___x_484_; lean_object* v___x_485_; +v___x_484_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_484_, 0, v___x_483_); +v___x_485_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_480_, v_a_463_, v___x_484_, v___f_464_); +return v___x_485_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed(lean_object* v___x_506_, lean_object* v___x_507_, lean_object* v_a_508_, lean_object* v___x_509_, lean_object* v___f_510_, lean_object* v_x_511_, lean_object* v___y_512_){ +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8___boxed(lean_object* v_a_489_, lean_object* v___f_490_, lean_object* v___x_491_, lean_object* v___x_492_, lean_object* v_a_493_, lean_object* v___f_494_, lean_object* v_x_495_, lean_object* v___y_496_){ _start: { -uint8_t v___x_7946__boxed_513_; lean_object* v_res_514_; -v___x_7946__boxed_513_ = lean_unbox(v___x_509_); -v_res_514_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2(v___x_506_, v___x_507_, v_a_508_, v___x_7946__boxed_513_, v___f_510_, v_x_511_); -return v_res_514_; +uint8_t v___x_10657__boxed_497_; uint8_t v_a_10659__boxed_498_; lean_object* v_res_499_; +v___x_10657__boxed_497_ = lean_unbox(v___x_491_); +v_a_10659__boxed_498_ = lean_unbox(v_a_493_); +v_res_499_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8(v_a_489_, v___f_490_, v___x_10657__boxed_497_, v___x_492_, v_a_10659__boxed_498_, v___f_494_, v_x_495_); +lean_dec(v_a_489_); +return v_res_499_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1(lean_object* v_a_515_, lean_object* v_x_516_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9(lean_object* v_a_500_, lean_object* v_a_501_, lean_object* v___f_502_, uint8_t v___x_503_, lean_object* v___x_504_, uint8_t v_a_505_, lean_object* v___f_506_, lean_object* v_x_507_){ _start: { -if (lean_obj_tag(v_x_516_) == 0) +if (lean_obj_tag(v_x_507_) == 0) { -lean_object* v_a_518_; lean_object* v___x_520_; uint8_t v_isShared_521_; uint8_t v_isSharedCheck_526_; -v_a_518_ = lean_ctor_get(v_x_516_, 0); -v_isSharedCheck_526_ = !lean_is_exclusive(v_x_516_); -if (v_isSharedCheck_526_ == 0) +lean_object* v_a_509_; lean_object* v___x_511_; uint8_t v_isShared_512_; uint8_t v_isSharedCheck_517_; +lean_dec_ref(v___f_506_); +lean_dec_ref(v___f_502_); +lean_dec(v_a_501_); +lean_dec_ref(v_a_500_); +v_a_509_ = lean_ctor_get(v_x_507_, 0); +v_isSharedCheck_517_ = !lean_is_exclusive(v_x_507_); +if (v_isSharedCheck_517_ == 0) { -v___x_520_ = v_x_516_; -v_isShared_521_ = v_isSharedCheck_526_; +v___x_511_ = v_x_507_; +v_isShared_512_ = v_isSharedCheck_517_; +goto v_resetjp_510_; +} +else +{ +lean_inc(v_a_509_); +lean_dec(v_x_507_); +v___x_511_ = lean_box(0); +v_isShared_512_ = v_isSharedCheck_517_; +goto v_resetjp_510_; +} +v_resetjp_510_: +{ +lean_object* v___x_514_; +if (v_isShared_512_ == 0) +{ +v___x_514_ = v___x_511_; +goto v_reusejp_513_; +} +else +{ +lean_object* v_reuseFailAlloc_516_; +v_reuseFailAlloc_516_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_516_, 0, v_a_509_); +v___x_514_ = v_reuseFailAlloc_516_; +goto v_reusejp_513_; +} +v_reusejp_513_: +{ +lean_object* v___x_515_; +v___x_515_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_515_, 0, v___x_514_); +return v___x_515_; +} +} +} +else +{ +lean_object* v_selector_518_; lean_object* v___x_520_; uint8_t v_isShared_521_; uint8_t v_isSharedCheck_533_; +v_selector_518_ = lean_ctor_get(v_a_500_, 0); +v_isSharedCheck_533_ = !lean_is_exclusive(v_a_500_); +if (v_isSharedCheck_533_ == 0) +{ +lean_object* v_unused_534_; +v_unused_534_ = lean_ctor_get(v_a_500_, 1); +lean_dec(v_unused_534_); +v___x_520_ = v_a_500_; +v_isShared_521_ = v_isSharedCheck_533_; goto v_resetjp_519_; } else { -lean_inc(v_a_518_); -lean_dec(v_x_516_); +lean_inc(v_selector_518_); +lean_dec(v_a_500_); v___x_520_ = lean_box(0); -v_isShared_521_ = v_isSharedCheck_526_; +v_isShared_521_ = v_isSharedCheck_533_; goto v_resetjp_519_; } v_resetjp_519_: { -lean_object* v___x_523_; +lean_object* v_a_522_; lean_object* v_registerFn_523_; lean_object* v___x_525_; +v_a_522_ = lean_ctor_get(v_x_507_, 0); +lean_inc_n(v_a_522_, 2); +lean_dec_ref(v_x_507_); +v_registerFn_523_ = lean_ctor_get(v_selector_518_, 1); +lean_inc_ref(v_registerFn_523_); +lean_dec_ref(v_selector_518_); if (v_isShared_521_ == 0) { -v___x_523_ = v___x_520_; -goto v_reusejp_522_; +lean_ctor_set(v___x_520_, 1, v_a_522_); +lean_ctor_set(v___x_520_, 0, v_a_501_); +v___x_525_ = v___x_520_; +goto v_reusejp_524_; } else { -lean_object* v_reuseFailAlloc_525_; -v_reuseFailAlloc_525_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_525_, 0, v_a_518_); -v___x_523_ = v_reuseFailAlloc_525_; -goto v_reusejp_522_; +lean_object* v_reuseFailAlloc_532_; +v_reuseFailAlloc_532_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_532_, 0, v_a_501_); +lean_ctor_set(v_reuseFailAlloc_532_, 1, v_a_522_); +v___x_525_ = v_reuseFailAlloc_532_; +goto v_reusejp_524_; } -v_reusejp_522_: +v_reusejp_524_: { -lean_object* v___x_524_; -v___x_524_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_524_, 0, v___x_523_); -return v___x_524_; +lean_object* v___x_526_; lean_object* v___x_527_; lean_object* v___x_528_; lean_object* v___f_529_; lean_object* v___x_530_; lean_object* v___x_531_; +v___x_526_ = lean_apply_2(v_registerFn_523_, v___x_525_, lean_box(0)); +v___x_527_ = lean_box(v___x_503_); +v___x_528_ = lean_box(v_a_505_); +v___f_529_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__8___boxed), 8, 6); +lean_closure_set(v___f_529_, 0, v_a_522_); +lean_closure_set(v___f_529_, 1, v___f_502_); +lean_closure_set(v___f_529_, 2, v___x_527_); +lean_closure_set(v___f_529_, 3, v___x_504_); +lean_closure_set(v___f_529_, 4, v___x_528_); +lean_closure_set(v___f_529_, 5, v___f_506_); +v___x_530_ = lean_unsigned_to_nat(0u); +v___x_531_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_530_, v_a_505_, v___x_526_, v___f_529_); +return v___x_531_; } } } -else -{ -lean_object* v___x_527_; lean_object* v___x_528_; lean_object* v___x_529_; -v___x_527_ = lean_io_promise_resolve(v_x_516_, v_a_515_); -v___x_528_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_528_, 0, v___x_527_); -v___x_529_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_529_, 0, v___x_528_); -return v___x_529_; } } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1___boxed(lean_object* v_a_530_, lean_object* v_x_531_, lean_object* v___y_532_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9___boxed(lean_object* v_a_535_, lean_object* v_a_536_, lean_object* v___f_537_, lean_object* v___x_538_, lean_object* v___x_539_, lean_object* v_a_540_, lean_object* v___f_541_, lean_object* v_x_542_, lean_object* v___y_543_){ _start: { -lean_object* v_res_533_; -v_res_533_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1(v_a_530_, v_x_531_); -lean_dec(v_a_530_); -return v_res_533_; +uint8_t v___x_10726__boxed_544_; uint8_t v_a_10728__boxed_545_; lean_object* v_res_546_; +v___x_10726__boxed_544_ = lean_unbox(v___x_538_); +v_a_10728__boxed_545_ = lean_unbox(v_a_540_); +v_res_546_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9(v_a_535_, v_a_536_, v___f_537_, v___x_10726__boxed_544_, v___x_539_, v_a_10728__boxed_545_, v___f_541_, v_x_542_); +return v_res_546_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(lean_object* v_a_534_, lean_object* v___f_535_, uint8_t v___x_536_, lean_object* v___x_537_, lean_object* v___f_538_, lean_object* v_x_539_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed(lean_object* v_i_549_, lean_object* v_a_550_, lean_object* v_as_551_, lean_object* v_sz_552_, lean_object* v_x_553_, lean_object* v___y_554_){ _start: { -if (lean_obj_tag(v_x_539_) == 0) -{ -lean_object* v_a_541_; lean_object* v___x_543_; uint8_t v_isShared_544_; uint8_t v_isSharedCheck_549_; -lean_dec_ref(v___f_538_); -lean_dec_ref(v___f_535_); -v_a_541_ = lean_ctor_get(v_x_539_, 0); -v_isSharedCheck_549_ = !lean_is_exclusive(v_x_539_); -if (v_isSharedCheck_549_ == 0) -{ -v___x_543_ = v_x_539_; -v_isShared_544_ = v_isSharedCheck_549_; -goto v_resetjp_542_; -} -else -{ -lean_inc(v_a_541_); -lean_dec(v_x_539_); -v___x_543_ = lean_box(0); -v_isShared_544_ = v_isSharedCheck_549_; -goto v_resetjp_542_; -} -v_resetjp_542_: -{ -lean_object* v___x_546_; -if (v_isShared_544_ == 0) -{ -v___x_546_ = v___x_543_; -goto v_reusejp_545_; -} -else -{ -lean_object* v_reuseFailAlloc_548_; -v_reuseFailAlloc_548_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_548_, 0, v_a_541_); -v___x_546_ = v_reuseFailAlloc_548_; -goto v_reusejp_545_; -} -v_reusejp_545_: -{ -lean_object* v___x_547_; -v___x_547_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_547_, 0, v___x_546_); -return v___x_547_; +size_t v_i_boxed_555_; uint8_t v_a_10798__boxed_556_; size_t v_sz_boxed_557_; lean_object* v_res_558_; +v_i_boxed_555_ = lean_unbox_usize(v_i_549_); +lean_dec(v_i_549_); +v_a_10798__boxed_556_ = lean_unbox(v_a_550_); +v_sz_boxed_557_ = lean_unbox_usize(v_sz_552_); +lean_dec(v_sz_552_); +v_res_558_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(v_i_boxed_555_, v_a_10798__boxed_556_, v_as_551_, v_sz_boxed_557_, v_x_553_); +return v_res_558_; } } -} -else -{ -lean_object* v___x_551_; uint8_t v_isShared_552_; uint8_t v_isSharedCheck_561_; -v_isSharedCheck_561_ = !lean_is_exclusive(v_x_539_); -if (v_isSharedCheck_561_ == 0) -{ -lean_object* v_unused_562_; -v_unused_562_ = lean_ctor_get(v_x_539_, 0); -lean_dec(v_unused_562_); -v___x_551_ = v_x_539_; -v_isShared_552_ = v_isSharedCheck_561_; -goto v_resetjp_550_; -} -else -{ -lean_dec(v_x_539_); -v___x_551_ = lean_box(0); -v_isShared_552_ = v_isSharedCheck_561_; -goto v_resetjp_550_; -} -v_resetjp_550_: -{ -lean_object* v___x_553_; lean_object* v___x_554_; lean_object* v___x_555_; lean_object* v___x_557_; -v___x_553_ = lean_io_promise_result_opt(v_a_534_); -v___x_554_ = lean_unsigned_to_nat(0u); -v___x_555_ = lean_io_bind_task(v___x_553_, v___f_535_, v___x_554_, v___x_536_); -lean_dec_ref(v___x_555_); -if (v_isShared_552_ == 0) -{ -lean_ctor_set(v___x_551_, 0, v___x_537_); -v___x_557_ = v___x_551_; -goto v_reusejp_556_; -} -else -{ -lean_object* v_reuseFailAlloc_560_; -v_reuseFailAlloc_560_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_560_, 0, v___x_537_); -v___x_557_ = v_reuseFailAlloc_560_; -goto v_reusejp_556_; -} -v_reusejp_556_: -{ -lean_object* v___x_558_; lean_object* v___x_559_; -v___x_558_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_558_, 0, v___x_557_); -v___x_559_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_554_, v___x_536_, v___x_558_, v___f_538_); -return v___x_559_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed(lean_object* v_a_563_, lean_object* v___f_564_, lean_object* v___x_565_, lean_object* v___x_566_, lean_object* v___f_567_, lean_object* v_x_568_, lean_object* v___y_569_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(uint8_t v_a_559_, lean_object* v_as_560_, size_t v_sz_561_, size_t v_i_562_, lean_object* v_b_563_){ _start: { -uint8_t v___x_8030__boxed_570_; lean_object* v_res_571_; -v___x_8030__boxed_570_ = lean_unbox(v___x_565_); -v_res_571_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(v_a_563_, v___f_564_, v___x_8030__boxed_570_, v___x_566_, v___f_567_, v_x_568_); -lean_dec(v_a_563_); -return v_res_571_; +uint8_t v___x_565_; +v___x_565_ = lean_usize_dec_lt(v_i_562_, v_sz_561_); +if (v___x_565_ == 0) +{ +lean_object* v___x_566_; lean_object* v___x_567_; +lean_dec_ref(v_as_560_); +v___x_566_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_566_, 0, v_b_563_); +v___x_567_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_567_, 0, v___x_566_); +return v___x_567_; +} +else +{ +lean_object* v_a_568_; lean_object* v_selector_569_; lean_object* v_unregisterFn_570_; lean_object* v___x_571_; lean_object* v___f_572_; lean_object* v___x_573_; lean_object* v___x_574_; lean_object* v___x_575_; lean_object* v___x_576_; lean_object* v___x_577_; lean_object* v___f_578_; uint8_t v___x_579_; lean_object* v___x_580_; +v_a_568_ = lean_array_uget_borrowed(v_as_560_, v_i_562_); +v_selector_569_ = lean_ctor_get(v_a_568_, 0); +v_unregisterFn_570_ = lean_ctor_get(v_selector_569_, 2); +lean_inc_ref(v_unregisterFn_570_); +v___x_571_ = lean_apply_1(v_unregisterFn_570_, lean_box(0)); +v___f_572_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); +v___x_573_ = lean_unsigned_to_nat(0u); +v___x_574_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_573_, v_a_559_, v___x_571_, v___f_572_); +v___x_575_ = lean_box_usize(v_i_562_); +v___x_576_ = lean_box(v_a_559_); +v___x_577_ = lean_box_usize(v_sz_561_); +v___f_578_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1___boxed), 6, 4); +lean_closure_set(v___f_578_, 0, v___x_575_); +lean_closure_set(v___f_578_, 1, v___x_576_); +lean_closure_set(v___f_578_, 2, v_as_560_); +lean_closure_set(v___f_578_, 3, v___x_577_); +v___x_579_ = 0; +v___x_580_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_573_, v___x_579_, v___x_574_, v___f_578_); +return v___x_580_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(lean_object* v_a_572_, lean_object* v_a_573_, lean_object* v___f_574_, uint8_t v___x_575_, lean_object* v___x_576_, lean_object* v___f_577_, lean_object* v_x_578_){ +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___lam__1(size_t v_i_581_, uint8_t v_a_582_, lean_object* v_as_583_, size_t v_sz_584_, lean_object* v_x_585_){ _start: { -if (lean_obj_tag(v_x_578_) == 0) +if (lean_obj_tag(v_x_585_) == 0) { -lean_object* v_a_580_; lean_object* v___x_582_; uint8_t v_isShared_583_; uint8_t v_isSharedCheck_588_; -lean_dec_ref(v___f_577_); -lean_dec_ref(v___f_574_); -lean_dec(v_a_573_); -lean_dec_ref(v_a_572_); -v_a_580_ = lean_ctor_get(v_x_578_, 0); -v_isSharedCheck_588_ = !lean_is_exclusive(v_x_578_); -if (v_isSharedCheck_588_ == 0) +lean_object* v_a_587_; lean_object* v___x_589_; uint8_t v_isShared_590_; uint8_t v_isSharedCheck_595_; +lean_dec_ref(v_as_583_); +v_a_587_ = lean_ctor_get(v_x_585_, 0); +v_isSharedCheck_595_ = !lean_is_exclusive(v_x_585_); +if (v_isSharedCheck_595_ == 0) { -v___x_582_ = v_x_578_; -v_isShared_583_ = v_isSharedCheck_588_; -goto v_resetjp_581_; +v___x_589_ = v_x_585_; +v_isShared_590_ = v_isSharedCheck_595_; +goto v_resetjp_588_; } else { -lean_inc(v_a_580_); -lean_dec(v_x_578_); -v___x_582_ = lean_box(0); -v_isShared_583_ = v_isSharedCheck_588_; -goto v_resetjp_581_; +lean_inc(v_a_587_); +lean_dec(v_x_585_); +v___x_589_ = lean_box(0); +v_isShared_590_ = v_isSharedCheck_595_; +goto v_resetjp_588_; } -v_resetjp_581_: +v_resetjp_588_: { -lean_object* v___x_585_; -if (v_isShared_583_ == 0) +lean_object* v___x_592_; +if (v_isShared_590_ == 0) { -v___x_585_ = v___x_582_; -goto v_reusejp_584_; +v___x_592_ = v___x_589_; +goto v_reusejp_591_; } else { -lean_object* v_reuseFailAlloc_587_; -v_reuseFailAlloc_587_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_587_, 0, v_a_580_); -v___x_585_ = v_reuseFailAlloc_587_; -goto v_reusejp_584_; +lean_object* v_reuseFailAlloc_594_; +v_reuseFailAlloc_594_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_594_, 0, v_a_587_); +v___x_592_ = v_reuseFailAlloc_594_; +goto v_reusejp_591_; } -v_reusejp_584_: +v_reusejp_591_: { -lean_object* v___x_586_; -v___x_586_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_586_, 0, v___x_585_); -return v___x_586_; +lean_object* v___x_593_; +v___x_593_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_593_, 0, v___x_592_); +return v___x_593_; } } } else { -lean_object* v_selector_589_; lean_object* v___x_591_; uint8_t v_isShared_592_; uint8_t v_isSharedCheck_603_; -v_selector_589_ = lean_ctor_get(v_a_572_, 0); -v_isSharedCheck_603_ = !lean_is_exclusive(v_a_572_); -if (v_isSharedCheck_603_ == 0) +lean_object* v_a_596_; lean_object* v___x_598_; uint8_t v_isShared_599_; uint8_t v_isSharedCheck_615_; +v_a_596_ = lean_ctor_get(v_x_585_, 0); +v_isSharedCheck_615_ = !lean_is_exclusive(v_x_585_); +if (v_isSharedCheck_615_ == 0) { -lean_object* v_unused_604_; -v_unused_604_ = lean_ctor_get(v_a_572_, 1); -lean_dec(v_unused_604_); -v___x_591_ = v_a_572_; -v_isShared_592_ = v_isSharedCheck_603_; -goto v_resetjp_590_; +v___x_598_ = v_x_585_; +v_isShared_599_ = v_isSharedCheck_615_; +goto v_resetjp_597_; } else { -lean_inc(v_selector_589_); -lean_dec(v_a_572_); -v___x_591_ = lean_box(0); -v_isShared_592_ = v_isSharedCheck_603_; -goto v_resetjp_590_; +lean_inc(v_a_596_); +lean_dec(v_x_585_); +v___x_598_ = lean_box(0); +v_isShared_599_ = v_isSharedCheck_615_; +goto v_resetjp_597_; } -v_resetjp_590_: +v_resetjp_597_: { -lean_object* v_a_593_; lean_object* v_registerFn_594_; lean_object* v___x_596_; -v_a_593_ = lean_ctor_get(v_x_578_, 0); -lean_inc_n(v_a_593_, 2); -lean_dec_ref(v_x_578_); -v_registerFn_594_ = lean_ctor_get(v_selector_589_, 1); -lean_inc_ref(v_registerFn_594_); -lean_dec_ref(v_selector_589_); -if (v_isShared_592_ == 0) +if (lean_obj_tag(v_a_596_) == 0) { -lean_ctor_set(v___x_591_, 1, v_a_593_); -lean_ctor_set(v___x_591_, 0, v_a_573_); -v___x_596_ = v___x_591_; -goto v_reusejp_595_; +lean_object* v_a_600_; lean_object* v___x_602_; uint8_t v_isShared_603_; uint8_t v_isSharedCheck_610_; +lean_dec_ref(v_as_583_); +v_a_600_ = lean_ctor_get(v_a_596_, 0); +v_isSharedCheck_610_ = !lean_is_exclusive(v_a_596_); +if (v_isSharedCheck_610_ == 0) +{ +v___x_602_ = v_a_596_; +v_isShared_603_ = v_isSharedCheck_610_; +goto v_resetjp_601_; } else { -lean_object* v_reuseFailAlloc_602_; -v_reuseFailAlloc_602_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_602_, 0, v_a_573_); -lean_ctor_set(v_reuseFailAlloc_602_, 1, v_a_593_); -v___x_596_ = v_reuseFailAlloc_602_; -goto v_reusejp_595_; +lean_inc(v_a_600_); +lean_dec(v_a_596_); +v___x_602_ = lean_box(0); +v_isShared_603_ = v_isSharedCheck_610_; +goto v_resetjp_601_; } -v_reusejp_595_: +v_resetjp_601_: { -lean_object* v___x_597_; lean_object* v___x_598_; lean_object* v___f_599_; lean_object* v___x_600_; lean_object* v___x_601_; -v___x_597_ = lean_apply_2(v_registerFn_594_, v___x_596_, lean_box(0)); -v___x_598_ = lean_box(v___x_575_); -v___f_599_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed), 7, 5); -lean_closure_set(v___f_599_, 0, v_a_593_); -lean_closure_set(v___f_599_, 1, v___f_574_); -lean_closure_set(v___f_599_, 2, v___x_598_); -lean_closure_set(v___f_599_, 3, v___x_576_); -lean_closure_set(v___f_599_, 4, v___f_577_); -v___x_600_ = lean_unsigned_to_nat(0u); -v___x_601_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_600_, v___x_575_, v___x_597_, v___f_599_); -return v___x_601_; +lean_object* v___x_605_; +if (v_isShared_599_ == 0) +{ +lean_ctor_set(v___x_598_, 0, v_a_600_); +v___x_605_ = v___x_598_; +goto v_reusejp_604_; +} +else +{ +lean_object* v_reuseFailAlloc_609_; +v_reuseFailAlloc_609_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_609_, 0, v_a_600_); +v___x_605_ = v_reuseFailAlloc_609_; +goto v_reusejp_604_; +} +v_reusejp_604_: +{ +lean_object* v___x_607_; +if (v_isShared_603_ == 0) +{ +lean_ctor_set(v___x_602_, 0, v___x_605_); +v___x_607_ = v___x_602_; +goto v_reusejp_606_; +} +else +{ +lean_object* v_reuseFailAlloc_608_; +v_reuseFailAlloc_608_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_608_, 0, v___x_605_); +v___x_607_ = v_reuseFailAlloc_608_; +goto v_reusejp_606_; +} +v_reusejp_606_: +{ +return v___x_607_; +} +} +} +} +else +{ +lean_object* v_a_611_; size_t v___x_612_; size_t v___x_613_; lean_object* v___x_614_; +lean_del_object(v___x_598_); +v_a_611_ = lean_ctor_get(v_a_596_, 0); +lean_inc(v_a_611_); +lean_dec_ref(v_a_596_); +v___x_612_ = ((size_t)1ULL); +v___x_613_ = lean_usize_add(v_i_581_, v___x_612_); +v___x_614_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_a_582_, v_as_583_, v_sz_584_, v___x_613_, v_a_611_); +return v___x_614_; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6___boxed(lean_object* v_a_605_, lean_object* v_a_606_, lean_object* v___f_607_, lean_object* v___x_608_, lean_object* v___x_609_, lean_object* v___f_610_, lean_object* v_x_611_, lean_object* v___y_612_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___boxed(lean_object* v_a_616_, lean_object* v_as_617_, lean_object* v_sz_618_, lean_object* v_i_619_, lean_object* v_b_620_, lean_object* v___y_621_){ _start: { -uint8_t v___x_8096__boxed_613_; lean_object* v_res_614_; -v___x_8096__boxed_613_ = lean_unbox(v___x_608_); -v_res_614_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(v_a_605_, v_a_606_, v___f_607_, v___x_8096__boxed_613_, v___x_609_, v___f_610_, v_x_611_); -return v_res_614_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed(lean_object* v_i_615_, lean_object* v_a_616_, lean_object* v___x_617_, lean_object* v_a_618_, lean_object* v_as_619_, lean_object* v_sz_620_, lean_object* v_x_621_, lean_object* v___y_622_){ -_start: -{ -size_t v_i_boxed_623_; size_t v_sz_boxed_624_; lean_object* v_res_625_; -v_i_boxed_623_ = lean_unbox_usize(v_i_615_); -lean_dec(v_i_615_); -v_sz_boxed_624_ = lean_unbox_usize(v_sz_620_); -lean_dec(v_sz_620_); -v_res_625_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(v_i_boxed_623_, v_a_616_, v___x_617_, v_a_618_, v_as_619_, v_sz_boxed_624_, v_x_621_); +uint8_t v_a_10814__boxed_622_; size_t v_sz_boxed_623_; size_t v_i_boxed_624_; lean_object* v_res_625_; +v_a_10814__boxed_622_ = lean_unbox(v_a_616_); +v_sz_boxed_623_ = lean_unbox_usize(v_sz_618_); +lean_dec(v_sz_618_); +v_i_boxed_624_ = lean_unbox_usize(v_i_619_); +lean_dec(v_i_619_); +v_res_625_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_a_10814__boxed_622_, v_as_617_, v_sz_boxed_623_, v_i_boxed_624_, v_b_620_); return v_res_625_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(lean_object* v_a_626_, lean_object* v___x_627_, lean_object* v_a_628_, lean_object* v_as_629_, size_t v_sz_630_, size_t v_i_631_, lean_object* v_b_632_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(lean_object* v___x_626_, uint8_t v_a_627_, lean_object* v___x_628_, lean_object* v___f_629_, lean_object* v_x_630_){ _start: { -uint8_t v___x_634_; -v___x_634_ = lean_usize_dec_lt(v_i_631_, v_sz_630_); -if (v___x_634_ == 0) +if (lean_obj_tag(v_x_630_) == 0) { -lean_object* v___x_635_; lean_object* v___x_636_; -lean_dec_ref(v_as_629_); -lean_dec(v_a_628_); -lean_dec_ref(v___x_627_); -lean_dec(v_a_626_); -v___x_635_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_635_, 0, v_b_632_); -v___x_636_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_636_, 0, v___x_635_); -return v___x_636_; +lean_object* v___x_632_; +lean_dec_ref(v___f_629_); +lean_dec_ref(v___x_626_); +v___x_632_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_632_, 0, v_x_630_); +return v___x_632_; } else { -lean_object* v___x_637_; lean_object* v___f_638_; lean_object* v___f_639_; lean_object* v___x_640_; lean_object* v___f_641_; uint8_t v___x_642_; lean_object* v_a_643_; lean_object* v___x_644_; lean_object* v___f_645_; lean_object* v___x_646_; lean_object* v___f_647_; lean_object* v___x_648_; lean_object* v___f_649_; lean_object* v___x_650_; lean_object* v___x_651_; lean_object* v___x_652_; lean_object* v___x_653_; lean_object* v___x_654_; lean_object* v___x_655_; lean_object* v___f_656_; lean_object* v___x_657_; -v___x_637_ = lean_io_promise_new(); -lean_inc_n(v_a_626_, 2); -v___f_638_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0___boxed), 3, 1); -lean_closure_set(v___f_638_, 0, v_a_626_); -v___f_639_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__1___boxed), 3, 1); -lean_closure_set(v___f_639_, 0, v_a_626_); -v___x_640_ = lean_box(0); -v___f_641_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); -v___x_642_ = 0; -v_a_643_ = lean_array_uget_borrowed(v_as_629_, v_i_631_); -v___x_644_ = lean_box(v___x_642_); -lean_inc_n(v_a_643_, 2); -lean_inc_ref(v___x_627_); -v___f_645_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed), 7, 5); -lean_closure_set(v___f_645_, 0, v___x_627_); -lean_closure_set(v___f_645_, 1, v___x_640_); -lean_closure_set(v___f_645_, 2, v_a_643_); -lean_closure_set(v___f_645_, 3, v___x_644_); -lean_closure_set(v___f_645_, 4, v___f_639_); -v___x_646_ = lean_box(v___x_642_); -v___f_647_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__4___boxed), 6, 4); -lean_closure_set(v___f_647_, 0, v___x_640_); -lean_closure_set(v___f_647_, 1, v___x_646_); -lean_closure_set(v___f_647_, 2, v___f_645_); -lean_closure_set(v___f_647_, 3, v___f_638_); -v___x_648_ = lean_box(v___x_642_); -lean_inc(v_a_628_); -v___f_649_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6___boxed), 8, 6); -lean_closure_set(v___f_649_, 0, v_a_643_); -lean_closure_set(v___f_649_, 1, v_a_628_); -lean_closure_set(v___f_649_, 2, v___f_647_); -lean_closure_set(v___f_649_, 3, v___x_648_); -lean_closure_set(v___f_649_, 4, v___x_640_); -lean_closure_set(v___f_649_, 5, v___f_641_); -v___x_650_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_650_, 0, v___x_637_); -v___x_651_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_651_, 0, v___x_650_); -v___x_652_ = lean_unsigned_to_nat(0u); -v___x_653_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_652_, v___x_642_, v___x_651_, v___f_649_); -v___x_654_ = lean_box_usize(v_i_631_); -v___x_655_ = lean_box_usize(v_sz_630_); -v___f_656_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed), 8, 6); -lean_closure_set(v___f_656_, 0, v___x_654_); -lean_closure_set(v___f_656_, 1, v_a_626_); -lean_closure_set(v___f_656_, 2, v___x_627_); -lean_closure_set(v___f_656_, 3, v_a_628_); -lean_closure_set(v___f_656_, 4, v_as_629_); -lean_closure_set(v___f_656_, 5, v___x_655_); -v___x_657_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_652_, v___x_642_, v___x_653_, v___f_656_); -return v___x_657_; +size_t v_sz_633_; size_t v___x_634_; lean_object* v___x_635_; lean_object* v___x_636_; lean_object* v___x_637_; +lean_dec_ref(v_x_630_); +v_sz_633_ = lean_array_size(v___x_626_); +v___x_634_ = ((size_t)0ULL); +v___x_635_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_a_627_, v___x_626_, v_sz_633_, v___x_634_, v___x_628_); +v___x_636_ = lean_unsigned_to_nat(0u); +v___x_637_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_636_, v_a_627_, v___x_635_, v___f_629_); +return v___x_637_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7(size_t v_i_658_, lean_object* v_a_659_, lean_object* v___x_660_, lean_object* v_a_661_, lean_object* v_as_662_, size_t v_sz_663_, lean_object* v_x_664_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed(lean_object* v___x_638_, lean_object* v_a_639_, lean_object* v___x_640_, lean_object* v___f_641_, lean_object* v_x_642_, lean_object* v___y_643_){ _start: { -if (lean_obj_tag(v_x_664_) == 0) +uint8_t v_a_10902__boxed_644_; lean_object* v_res_645_; +v_a_10902__boxed_644_ = lean_unbox(v_a_639_); +v_res_645_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5(v___x_638_, v_a_10902__boxed_644_, v___x_640_, v___f_641_, v_x_642_); +return v_res_645_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(lean_object* v_a_646_, lean_object* v_a_647_, uint8_t v_a_648_, lean_object* v___f_649_, lean_object* v_x_650_){ +_start: { -lean_object* v_a_666_; lean_object* v___x_668_; uint8_t v_isShared_669_; uint8_t v_isSharedCheck_674_; -lean_dec_ref(v_as_662_); -lean_dec(v_a_661_); -lean_dec_ref(v___x_660_); -lean_dec(v_a_659_); -v_a_666_ = lean_ctor_get(v_x_664_, 0); -v_isSharedCheck_674_ = !lean_is_exclusive(v_x_664_); -if (v_isSharedCheck_674_ == 0) +if (lean_obj_tag(v_x_650_) == 0) { -v___x_668_ = v_x_664_; -v_isShared_669_ = v_isSharedCheck_674_; -goto v_resetjp_667_; +lean_object* v___x_652_; +lean_dec_ref(v___f_649_); +lean_dec(v_a_647_); +lean_dec_ref(v_a_646_); +v___x_652_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_652_, 0, v_x_650_); +return v___x_652_; } else { -lean_inc(v_a_666_); -lean_dec(v_x_664_); -v___x_668_ = lean_box(0); -v_isShared_669_ = v_isSharedCheck_674_; -goto v_resetjp_667_; -} -v_resetjp_667_: -{ -lean_object* v___x_671_; -if (v_isShared_669_ == 0) -{ -v___x_671_ = v___x_668_; -goto v_reusejp_670_; -} -else -{ -lean_object* v_reuseFailAlloc_673_; -v_reuseFailAlloc_673_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_673_, 0, v_a_666_); -v___x_671_ = v_reuseFailAlloc_673_; -goto v_reusejp_670_; -} -v_reusejp_670_: -{ -lean_object* v___x_672_; -v___x_672_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_672_, 0, v___x_671_); -return v___x_672_; +lean_object* v_cont_653_; lean_object* v___x_654_; lean_object* v___x_655_; lean_object* v___x_656_; +lean_dec_ref(v_x_650_); +v_cont_653_ = lean_ctor_get(v_a_646_, 1); +lean_inc_ref(v_cont_653_); +lean_dec_ref(v_a_646_); +v___x_654_ = lean_apply_2(v_cont_653_, v_a_647_, lean_box(0)); +v___x_655_ = lean_unsigned_to_nat(0u); +v___x_656_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_655_, v_a_648_, v___x_654_, v___f_649_); +return v___x_656_; } } } -else +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed(lean_object* v_a_657_, lean_object* v_a_658_, lean_object* v_a_659_, lean_object* v___f_660_, lean_object* v_x_661_, lean_object* v___y_662_){ +_start: { -lean_object* v_a_675_; lean_object* v___x_677_; uint8_t v_isShared_678_; uint8_t v_isSharedCheck_694_; -v_a_675_ = lean_ctor_get(v_x_664_, 0); -v_isSharedCheck_694_ = !lean_is_exclusive(v_x_664_); -if (v_isSharedCheck_694_ == 0) +uint8_t v_a_10932__boxed_663_; lean_object* v_res_664_; +v_a_10932__boxed_663_ = lean_unbox(v_a_659_); +v_res_664_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3(v_a_657_, v_a_658_, v_a_10932__boxed_663_, v___f_660_, v_x_661_); +return v_res_664_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(lean_object* v_a_665_, uint8_t v_a_666_, lean_object* v___f_667_, lean_object* v___x_668_, lean_object* v___x_669_, lean_object* v_a_670_, lean_object* v___f_671_, lean_object* v___f_672_, lean_object* v_x_673_){ +_start: { -v___x_677_ = v_x_664_; -v_isShared_678_ = v_isSharedCheck_694_; +if (lean_obj_tag(v_x_673_) == 0) +{ +lean_object* v_a_675_; lean_object* v___x_677_; uint8_t v_isShared_678_; uint8_t v_isSharedCheck_683_; +lean_dec_ref(v___f_672_); +lean_dec_ref(v___f_671_); +lean_dec_ref(v___x_668_); +lean_dec_ref(v___f_667_); +lean_dec_ref(v_a_665_); +v_a_675_ = lean_ctor_get(v_x_673_, 0); +v_isSharedCheck_683_ = !lean_is_exclusive(v_x_673_); +if (v_isSharedCheck_683_ == 0) +{ +v___x_677_ = v_x_673_; +v_isShared_678_ = v_isSharedCheck_683_; goto v_resetjp_676_; } else { lean_inc(v_a_675_); -lean_dec(v_x_664_); +lean_dec(v_x_673_); v___x_677_ = lean_box(0); -v_isShared_678_ = v_isSharedCheck_694_; +v_isShared_678_ = v_isSharedCheck_683_; goto v_resetjp_676_; } v_resetjp_676_: { -if (lean_obj_tag(v_a_675_) == 0) -{ -lean_object* v_a_679_; lean_object* v___x_681_; uint8_t v_isShared_682_; uint8_t v_isSharedCheck_689_; -lean_dec_ref(v_as_662_); -lean_dec(v_a_661_); -lean_dec_ref(v___x_660_); -lean_dec(v_a_659_); -v_a_679_ = lean_ctor_get(v_a_675_, 0); -v_isSharedCheck_689_ = !lean_is_exclusive(v_a_675_); -if (v_isSharedCheck_689_ == 0) -{ -v___x_681_ = v_a_675_; -v_isShared_682_ = v_isSharedCheck_689_; -goto v_resetjp_680_; -} -else -{ -lean_inc(v_a_679_); -lean_dec(v_a_675_); -v___x_681_ = lean_box(0); -v_isShared_682_ = v_isSharedCheck_689_; -goto v_resetjp_680_; -} -v_resetjp_680_: -{ -lean_object* v___x_684_; +lean_object* v___x_680_; if (v_isShared_678_ == 0) { -lean_ctor_set(v___x_677_, 0, v_a_679_); -v___x_684_ = v___x_677_; -goto v_reusejp_683_; +v___x_680_ = v___x_677_; +goto v_reusejp_679_; } else { -lean_object* v_reuseFailAlloc_688_; -v_reuseFailAlloc_688_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_688_, 0, v_a_679_); -v___x_684_ = v_reuseFailAlloc_688_; -goto v_reusejp_683_; +lean_object* v_reuseFailAlloc_682_; +v_reuseFailAlloc_682_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_682_, 0, v_a_675_); +v___x_680_ = v_reuseFailAlloc_682_; +goto v_reusejp_679_; } -v_reusejp_683_: +v_reusejp_679_: { -lean_object* v___x_686_; -if (v_isShared_682_ == 0) -{ -lean_ctor_set(v___x_681_, 0, v___x_684_); -v___x_686_ = v___x_681_; -goto v_reusejp_685_; -} -else -{ -lean_object* v_reuseFailAlloc_687_; -v_reuseFailAlloc_687_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_687_, 0, v___x_684_); -v___x_686_ = v_reuseFailAlloc_687_; -goto v_reusejp_685_; -} -v_reusejp_685_: -{ -return v___x_686_; -} +lean_object* v___x_681_; +v___x_681_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_681_, 0, v___x_680_); +return v___x_681_; } } } else { -lean_object* v_a_690_; size_t v___x_691_; size_t v___x_692_; lean_object* v___x_693_; -lean_del_object(v___x_677_); -v_a_690_ = lean_ctor_get(v_a_675_, 0); -lean_inc(v_a_690_); -lean_dec_ref(v_a_675_); -v___x_691_ = ((size_t)1ULL); -v___x_692_ = lean_usize_add(v_i_658_, v___x_691_); -v___x_693_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_659_, v___x_660_, v_a_661_, v_as_662_, v_sz_663_, v___x_692_, v_a_690_); -return v___x_693_; +lean_object* v_a_684_; lean_object* v___x_685_; lean_object* v___f_686_; lean_object* v___x_687_; lean_object* v___f_688_; lean_object* v___x_689_; lean_object* v___x_690_; lean_object* v___x_691_; lean_object* v___x_692_; lean_object* v___x_693_; lean_object* v___x_694_; +v_a_684_ = lean_ctor_get(v_x_673_, 0); +lean_inc(v_a_684_); +lean_dec_ref(v_x_673_); +v___x_685_ = lean_box(v_a_666_); +v___f_686_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__3___boxed), 6, 4); +lean_closure_set(v___f_686_, 0, v_a_665_); +lean_closure_set(v___f_686_, 1, v_a_684_); +lean_closure_set(v___f_686_, 2, v___x_685_); +lean_closure_set(v___f_686_, 3, v___f_667_); +v___x_687_ = lean_box(v_a_666_); +v___f_688_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__5___boxed), 6, 4); +lean_closure_set(v___f_688_, 0, v___x_668_); +lean_closure_set(v___f_688_, 1, v___x_687_); +lean_closure_set(v___f_688_, 2, v___x_669_); +lean_closure_set(v___f_688_, 3, v___f_686_); +v___x_689_ = lean_io_promise_result_opt(v_a_670_); +v___x_690_ = lean_unsigned_to_nat(0u); +v___x_691_ = lean_task_map(v___f_671_, v___x_689_, v___x_690_, v_a_666_); +v___x_692_ = lean_task_map(v___f_672_, v___x_691_, v___x_690_, v_a_666_); +v___x_693_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_693_, 0, v___x_692_); +v___x_694_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_690_, v_a_666_, v___x_693_, v___f_688_); +return v___x_694_; } } } -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___boxed(lean_object* v_a_695_, lean_object* v___x_696_, lean_object* v_a_697_, lean_object* v_as_698_, lean_object* v_sz_699_, lean_object* v_i_700_, lean_object* v_b_701_, lean_object* v___y_702_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6___boxed(lean_object* v_a_695_, lean_object* v_a_696_, lean_object* v___f_697_, lean_object* v___x_698_, lean_object* v___x_699_, lean_object* v_a_700_, lean_object* v___f_701_, lean_object* v___f_702_, lean_object* v_x_703_, lean_object* v___y_704_){ _start: { -size_t v_sz_boxed_703_; size_t v_i_boxed_704_; lean_object* v_res_705_; -v_sz_boxed_703_ = lean_unbox_usize(v_sz_699_); -lean_dec(v_sz_699_); -v_i_boxed_704_ = lean_unbox_usize(v_i_700_); -lean_dec(v_i_700_); -v_res_705_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_695_, v___x_696_, v_a_697_, v_as_698_, v_sz_boxed_703_, v_i_boxed_704_, v_b_701_); -return v_res_705_; +uint8_t v_a_10955__boxed_705_; lean_object* v_res_706_; +v_a_10955__boxed_705_ = lean_unbox(v_a_696_); +v_res_706_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6(v_a_695_, v_a_10955__boxed_705_, v___f_697_, v___x_698_, v___x_699_, v_a_700_, v___f_701_, v___f_702_, v_x_703_); +lean_dec(v_a_700_); +return v_res_706_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(lean_object* v___x_706_, lean_object* v_a_707_, lean_object* v___x_708_, uint8_t v___x_709_, lean_object* v_x_710_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10(lean_object* v_a_707_, lean_object* v___f_708_, lean_object* v___x_709_, lean_object* v___x_710_, lean_object* v_a_711_, lean_object* v___f_712_, lean_object* v___f_713_, lean_object* v___f_714_, lean_object* v_a_715_, uint8_t v___x_716_, lean_object* v___f_717_, lean_object* v_x_718_){ _start: { -if (lean_obj_tag(v_x_710_) == 0) +if (lean_obj_tag(v_x_718_) == 0) { -lean_object* v_a_712_; lean_object* v___x_714_; uint8_t v_isShared_715_; uint8_t v_isSharedCheck_720_; -lean_dec(v_a_707_); -lean_dec_ref(v___x_706_); -v_a_712_ = lean_ctor_get(v_x_710_, 0); -v_isSharedCheck_720_ = !lean_is_exclusive(v_x_710_); -if (v_isSharedCheck_720_ == 0) +lean_object* v_a_720_; lean_object* v___x_722_; uint8_t v_isShared_723_; uint8_t v_isSharedCheck_728_; +lean_dec_ref(v___f_717_); +lean_dec(v_a_715_); +lean_dec_ref(v___f_714_); +lean_dec_ref(v___f_713_); +lean_dec_ref(v___f_712_); +lean_dec(v_a_711_); +lean_dec_ref(v___x_709_); +lean_dec_ref(v___f_708_); +lean_dec_ref(v_a_707_); +v_a_720_ = lean_ctor_get(v_x_718_, 0); +v_isSharedCheck_728_ = !lean_is_exclusive(v_x_718_); +if (v_isSharedCheck_728_ == 0) { -v___x_714_ = v_x_710_; -v_isShared_715_ = v_isSharedCheck_720_; -goto v_resetjp_713_; +v___x_722_ = v_x_718_; +v_isShared_723_ = v_isSharedCheck_728_; +goto v_resetjp_721_; } else { -lean_inc(v_a_712_); -lean_dec(v_x_710_); -v___x_714_ = lean_box(0); -v_isShared_715_ = v_isSharedCheck_720_; -goto v_resetjp_713_; +lean_inc(v_a_720_); +lean_dec(v_x_718_); +v___x_722_ = lean_box(0); +v_isShared_723_ = v_isSharedCheck_728_; +goto v_resetjp_721_; } -v_resetjp_713_: +v_resetjp_721_: { -lean_object* v___x_717_; -if (v_isShared_715_ == 0) +lean_object* v___x_725_; +if (v_isShared_723_ == 0) { -v___x_717_ = v___x_714_; -goto v_reusejp_716_; +v___x_725_ = v___x_722_; +goto v_reusejp_724_; } else { -lean_object* v_reuseFailAlloc_719_; -v_reuseFailAlloc_719_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_719_, 0, v_a_712_); -v___x_717_ = v_reuseFailAlloc_719_; -goto v_reusejp_716_; +lean_object* v_reuseFailAlloc_727_; +v_reuseFailAlloc_727_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_727_, 0, v_a_720_); +v___x_725_ = v_reuseFailAlloc_727_; +goto v_reusejp_724_; } -v_reusejp_716_: +v_reusejp_724_: { -lean_object* v___x_718_; -v___x_718_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_718_, 0, v___x_717_); -return v___x_718_; +lean_object* v___x_726_; +v___x_726_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_726_, 0, v___x_725_); +return v___x_726_; } } } else { -lean_object* v_a_721_; size_t v_sz_722_; size_t v___x_723_; lean_object* v___x_724_; lean_object* v___x_725_; lean_object* v___f_726_; lean_object* v___x_727_; lean_object* v___x_728_; -v_a_721_ = lean_ctor_get(v_x_710_, 0); -v_sz_722_ = lean_array_size(v___x_706_); -v___x_723_ = ((size_t)0ULL); -lean_inc_ref(v___x_706_); -lean_inc(v_a_721_); -v___x_724_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_721_, v___x_706_, v_a_707_, v___x_706_, v_sz_722_, v___x_723_, v___x_708_); -v___x_725_ = lean_box(v___x_709_); -v___f_726_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed), 4, 2); -lean_closure_set(v___f_726_, 0, v___x_725_); -lean_closure_set(v___f_726_, 1, v_x_710_); -v___x_727_ = lean_unsigned_to_nat(0u); -v___x_728_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_727_, v___x_709_, v___x_724_, v___f_726_); -return v___x_728_; +lean_object* v_a_729_; lean_object* v___x_731_; uint8_t v_isShared_732_; uint8_t v_isSharedCheck_751_; +v_a_729_ = lean_ctor_get(v_x_718_, 0); +v_isSharedCheck_751_ = !lean_is_exclusive(v_x_718_); +if (v_isSharedCheck_751_ == 0) +{ +v___x_731_ = v_x_718_; +v_isShared_732_ = v_isSharedCheck_751_; +goto v_resetjp_730_; +} +else +{ +lean_inc(v_a_729_); +lean_dec(v_x_718_); +v___x_731_ = lean_box(0); +v_isShared_732_ = v_isSharedCheck_751_; +goto v_resetjp_730_; +} +v_resetjp_730_: +{ +uint8_t v___x_733_; +v___x_733_ = lean_unbox(v_a_729_); +if (v___x_733_ == 0) +{ +lean_object* v___x_734_; lean_object* v___f_735_; lean_object* v___f_736_; lean_object* v___x_737_; lean_object* v___f_738_; lean_object* v___x_740_; +v___x_734_ = lean_io_promise_new(); +lean_inc_n(v_a_729_, 3); +lean_inc_ref(v_a_707_); +v___f_735_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__6___boxed), 10, 8); +lean_closure_set(v___f_735_, 0, v_a_707_); +lean_closure_set(v___f_735_, 1, v_a_729_); +lean_closure_set(v___f_735_, 2, v___f_708_); +lean_closure_set(v___f_735_, 3, v___x_709_); +lean_closure_set(v___f_735_, 4, v___x_710_); +lean_closure_set(v___f_735_, 5, v_a_711_); +lean_closure_set(v___f_735_, 6, v___f_712_); +lean_closure_set(v___f_735_, 7, v___f_713_); +v___f_736_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__7___boxed), 6, 4); +lean_closure_set(v___f_736_, 0, v___x_710_); +lean_closure_set(v___f_736_, 1, v_a_729_); +lean_closure_set(v___f_736_, 2, v___f_735_); +lean_closure_set(v___f_736_, 3, v___f_714_); +v___x_737_ = lean_box(v___x_716_); +v___f_738_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__9___boxed), 9, 7); +lean_closure_set(v___f_738_, 0, v_a_707_); +lean_closure_set(v___f_738_, 1, v_a_715_); +lean_closure_set(v___f_738_, 2, v___f_736_); +lean_closure_set(v___f_738_, 3, v___x_737_); +lean_closure_set(v___f_738_, 4, v___x_710_); +lean_closure_set(v___f_738_, 5, v_a_729_); +lean_closure_set(v___f_738_, 6, v___f_717_); +if (v_isShared_732_ == 0) +{ +lean_ctor_set(v___x_731_, 0, v___x_734_); +v___x_740_ = v___x_731_; +goto v_reusejp_739_; +} +else +{ +lean_object* v_reuseFailAlloc_745_; +v_reuseFailAlloc_745_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_745_, 0, v___x_734_); +v___x_740_ = v_reuseFailAlloc_745_; +goto v_reusejp_739_; +} +v_reusejp_739_: +{ +lean_object* v___x_741_; lean_object* v___x_742_; uint8_t v___x_743_; lean_object* v___x_744_; +v___x_741_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_741_, 0, v___x_740_); +v___x_742_ = lean_unsigned_to_nat(0u); +v___x_743_ = lean_unbox(v_a_729_); +lean_dec(v_a_729_); +v___x_744_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_742_, v___x_743_, v___x_741_, v___f_738_); +return v___x_744_; +} +} +else +{ +lean_object* v___x_746_; lean_object* v___x_748_; +lean_dec(v_a_729_); +lean_dec_ref(v___f_717_); +lean_dec(v_a_715_); +lean_dec_ref(v___f_714_); +lean_dec_ref(v___f_713_); +lean_dec_ref(v___f_712_); +lean_dec(v_a_711_); +lean_dec_ref(v___x_709_); +lean_dec_ref(v___f_708_); +lean_dec_ref(v_a_707_); +v___x_746_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_746_, 0, v___x_710_); +if (v_isShared_732_ == 0) +{ +lean_ctor_set(v___x_731_, 0, v___x_746_); +v___x_748_ = v___x_731_; +goto v_reusejp_747_; +} +else +{ +lean_object* v_reuseFailAlloc_750_; +v_reuseFailAlloc_750_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_750_, 0, v___x_746_); +v___x_748_ = v_reuseFailAlloc_750_; +goto v_reusejp_747_; +} +v_reusejp_747_: +{ +lean_object* v___x_749_; +v___x_749_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_749_, 0, v___x_748_); +return v___x_749_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed(lean_object* v___x_729_, lean_object* v_a_730_, lean_object* v___x_731_, lean_object* v___x_732_, lean_object* v_x_733_, lean_object* v___y_734_){ +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10___boxed(lean_object* v_a_752_, lean_object* v___f_753_, lean_object* v___x_754_, lean_object* v___x_755_, lean_object* v_a_756_, lean_object* v___f_757_, lean_object* v___f_758_, lean_object* v___f_759_, lean_object* v_a_760_, lean_object* v___x_761_, lean_object* v___f_762_, lean_object* v_x_763_, lean_object* v___y_764_){ _start: { -uint8_t v___x_8297__boxed_735_; lean_object* v_res_736_; -v___x_8297__boxed_735_ = lean_unbox(v___x_732_); -v_res_736_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3(v___x_729_, v_a_730_, v___x_731_, v___x_8297__boxed_735_, v_x_733_); -return v_res_736_; +uint8_t v___x_11030__boxed_765_; lean_object* v_res_766_; +v___x_11030__boxed_765_ = lean_unbox(v___x_761_); +v_res_766_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10(v_a_752_, v___f_753_, v___x_754_, v___x_755_, v_a_756_, v___f_757_, v___f_758_, v___f_759_, v_a_760_, v___x_11030__boxed_765_, v___f_762_, v_x_763_); +return v_res_766_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4(lean_object* v___x_737_, lean_object* v___x_738_, uint8_t v___x_739_, lean_object* v_x_740_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11___boxed(lean_object* v_i_770_, lean_object* v_a_771_, lean_object* v___x_772_, lean_object* v_a_773_, lean_object* v_a_774_, lean_object* v_as_775_, lean_object* v_sz_776_, lean_object* v_x_777_, lean_object* v___y_778_){ _start: { -if (lean_obj_tag(v_x_740_) == 0) -{ -lean_object* v_a_742_; lean_object* v___x_744_; uint8_t v_isShared_745_; uint8_t v_isSharedCheck_750_; -lean_dec_ref(v___x_737_); -v_a_742_ = lean_ctor_get(v_x_740_, 0); -v_isSharedCheck_750_ = !lean_is_exclusive(v_x_740_); -if (v_isSharedCheck_750_ == 0) -{ -v___x_744_ = v_x_740_; -v_isShared_745_ = v_isSharedCheck_750_; -goto v_resetjp_743_; -} -else -{ -lean_inc(v_a_742_); -lean_dec(v_x_740_); -v___x_744_ = lean_box(0); -v_isShared_745_ = v_isSharedCheck_750_; -goto v_resetjp_743_; -} -v_resetjp_743_: -{ -lean_object* v___x_747_; -if (v_isShared_745_ == 0) -{ -v___x_747_ = v___x_744_; -goto v_reusejp_746_; -} -else -{ -lean_object* v_reuseFailAlloc_749_; -v_reuseFailAlloc_749_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_749_, 0, v_a_742_); -v___x_747_ = v_reuseFailAlloc_749_; -goto v_reusejp_746_; -} -v_reusejp_746_: -{ -lean_object* v___x_748_; -v___x_748_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_748_, 0, v___x_747_); -return v___x_748_; +size_t v_i_boxed_779_; size_t v_sz_boxed_780_; lean_object* v_res_781_; +v_i_boxed_779_ = lean_unbox_usize(v_i_770_); +lean_dec(v_i_770_); +v_sz_boxed_780_ = lean_unbox_usize(v_sz_776_); +lean_dec(v_sz_776_); +v_res_781_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11(v_i_boxed_779_, v_a_771_, v___x_772_, v_a_773_, v_a_774_, v_as_775_, v_sz_boxed_780_, v_x_777_); +return v_res_781_; } } -} -else -{ -lean_object* v_a_751_; lean_object* v___x_753_; uint8_t v_isShared_754_; uint8_t v_isSharedCheck_764_; -v_a_751_ = lean_ctor_get(v_x_740_, 0); -v_isSharedCheck_764_ = !lean_is_exclusive(v_x_740_); -if (v_isSharedCheck_764_ == 0) -{ -v___x_753_ = v_x_740_; -v_isShared_754_ = v_isSharedCheck_764_; -goto v_resetjp_752_; -} -else -{ -lean_inc(v_a_751_); -lean_dec(v_x_740_); -v___x_753_ = lean_box(0); -v_isShared_754_ = v_isSharedCheck_764_; -goto v_resetjp_752_; -} -v_resetjp_752_: -{ -lean_object* v___x_755_; lean_object* v___x_756_; lean_object* v___f_757_; lean_object* v___x_759_; -v___x_755_ = lean_io_promise_new(); -v___x_756_ = lean_box(v___x_739_); -v___f_757_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed), 6, 4); -lean_closure_set(v___f_757_, 0, v___x_737_); -lean_closure_set(v___f_757_, 1, v_a_751_); -lean_closure_set(v___f_757_, 2, v___x_738_); -lean_closure_set(v___f_757_, 3, v___x_756_); -if (v_isShared_754_ == 0) -{ -lean_ctor_set(v___x_753_, 0, v___x_755_); -v___x_759_ = v___x_753_; -goto v_reusejp_758_; -} -else -{ -lean_object* v_reuseFailAlloc_763_; -v_reuseFailAlloc_763_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_763_, 0, v___x_755_); -v___x_759_ = v_reuseFailAlloc_763_; -goto v_reusejp_758_; -} -v_reusejp_758_: -{ -lean_object* v___x_760_; lean_object* v___x_761_; lean_object* v___x_762_; -v___x_760_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_760_, 0, v___x_759_); -v___x_761_ = lean_unsigned_to_nat(0u); -v___x_762_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_761_, v___x_739_, v___x_760_, v___f_757_); -return v___x_762_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed(lean_object* v___x_765_, lean_object* v___x_766_, lean_object* v___x_767_, lean_object* v_x_768_, lean_object* v___y_769_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(lean_object* v_a_782_, lean_object* v___x_783_, lean_object* v_a_784_, lean_object* v_a_785_, lean_object* v_as_786_, size_t v_sz_787_, size_t v_i_788_, lean_object* v_b_789_){ _start: { -uint8_t v___x_8346__boxed_770_; lean_object* v_res_771_; -v___x_8346__boxed_770_ = lean_unbox(v___x_767_); -v_res_771_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4(v___x_765_, v___x_766_, v___x_8346__boxed_770_, v_x_768_); -return v_res_771_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(lean_object* v___x_772_, lean_object* v___x_773_, lean_object* v_x_774_){ -_start: +uint8_t v___x_791_; +v___x_791_ = lean_usize_dec_lt(v_i_788_, v_sz_787_); +if (v___x_791_ == 0) { -if (lean_obj_tag(v_x_774_) == 0) -{ -lean_object* v_a_776_; lean_object* v___x_778_; uint8_t v_isShared_779_; uint8_t v_isSharedCheck_784_; -lean_dec_ref(v___x_772_); -v_a_776_ = lean_ctor_get(v_x_774_, 0); -v_isSharedCheck_784_ = !lean_is_exclusive(v_x_774_); -if (v_isSharedCheck_784_ == 0) -{ -v___x_778_ = v_x_774_; -v_isShared_779_ = v_isSharedCheck_784_; -goto v_resetjp_777_; -} -else -{ -lean_inc(v_a_776_); -lean_dec(v_x_774_); -v___x_778_ = lean_box(0); -v_isShared_779_ = v_isSharedCheck_784_; -goto v_resetjp_777_; -} -v_resetjp_777_: -{ -lean_object* v___x_781_; -if (v_isShared_779_ == 0) -{ -v___x_781_ = v___x_778_; -goto v_reusejp_780_; -} -else -{ -lean_object* v_reuseFailAlloc_783_; -v_reuseFailAlloc_783_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_783_, 0, v_a_776_); -v___x_781_ = v_reuseFailAlloc_783_; -goto v_reusejp_780_; -} -v_reusejp_780_: -{ -lean_object* v___x_782_; -v___x_782_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_782_, 0, v___x_781_); -return v___x_782_; -} -} -} -else -{ -lean_object* v_a_785_; lean_object* v___x_787_; uint8_t v_isShared_788_; uint8_t v_isSharedCheck_812_; -v_a_785_ = lean_ctor_get(v_x_774_, 0); -v_isSharedCheck_812_ = !lean_is_exclusive(v_x_774_); -if (v_isSharedCheck_812_ == 0) -{ -v___x_787_ = v_x_774_; -v_isShared_788_ = v_isSharedCheck_812_; -goto v_resetjp_786_; -} -else -{ -lean_inc(v_a_785_); -lean_dec(v_x_774_); -v___x_787_ = lean_box(0); -v_isShared_788_ = v_isSharedCheck_812_; -goto v_resetjp_786_; -} -v_resetjp_786_: -{ -lean_object* v_fst_789_; -v_fst_789_ = lean_ctor_get(v_a_785_, 0); -lean_inc(v_fst_789_); +lean_object* v___x_792_; lean_object* v___x_793_; +lean_dec_ref(v_as_786_); lean_dec(v_a_785_); -if (lean_obj_tag(v_fst_789_) == 0) -{ -uint8_t v___x_790_; lean_object* v___x_791_; lean_object* v___x_792_; lean_object* v___x_793_; lean_object* v___f_794_; lean_object* v___x_796_; -v___x_790_ = 0; -v___x_791_ = lean_box(v___x_790_); -v___x_792_ = lean_st_mk_ref(v___x_791_); -v___x_793_ = lean_box(v___x_790_); -v___f_794_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed), 5, 3); -lean_closure_set(v___f_794_, 0, v___x_772_); -lean_closure_set(v___f_794_, 1, v___x_773_); -lean_closure_set(v___f_794_, 2, v___x_793_); -if (v_isShared_788_ == 0) -{ -lean_ctor_set(v___x_787_, 0, v___x_792_); -v___x_796_ = v___x_787_; -goto v_reusejp_795_; +lean_dec(v_a_784_); +lean_dec_ref(v___x_783_); +lean_dec(v_a_782_); +v___x_792_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_792_, 0, v_b_789_); +v___x_793_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_793_, 0, v___x_792_); +return v___x_793_; } else { -lean_object* v_reuseFailAlloc_800_; -v_reuseFailAlloc_800_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_800_, 0, v___x_792_); -v___x_796_ = v_reuseFailAlloc_800_; -goto v_reusejp_795_; -} -v_reusejp_795_: -{ -lean_object* v___x_797_; lean_object* v___x_798_; lean_object* v___x_799_; -v___x_797_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_797_, 0, v___x_796_); -v___x_798_ = lean_unsigned_to_nat(0u); -v___x_799_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_798_, v___x_790_, v___x_797_, v___f_794_); -return v___x_799_; -} -} -else -{ -lean_object* v_val_801_; lean_object* v___x_803_; uint8_t v_isShared_804_; uint8_t v_isSharedCheck_811_; -lean_dec_ref(v___x_772_); -v_val_801_ = lean_ctor_get(v_fst_789_, 0); -v_isSharedCheck_811_ = !lean_is_exclusive(v_fst_789_); -if (v_isSharedCheck_811_ == 0) -{ -v___x_803_ = v_fst_789_; -v_isShared_804_ = v_isSharedCheck_811_; -goto v_resetjp_802_; -} -else -{ -lean_inc(v_val_801_); -lean_dec(v_fst_789_); -v___x_803_ = lean_box(0); -v_isShared_804_ = v_isSharedCheck_811_; -goto v_resetjp_802_; -} -v_resetjp_802_: -{ -lean_object* v___x_806_; -if (v_isShared_788_ == 0) -{ -lean_ctor_set(v___x_787_, 0, v_val_801_); -v___x_806_ = v___x_787_; -goto v_reusejp_805_; -} -else -{ -lean_object* v_reuseFailAlloc_810_; -v_reuseFailAlloc_810_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_810_, 0, v_val_801_); -v___x_806_ = v_reuseFailAlloc_810_; -goto v_reusejp_805_; -} -v_reusejp_805_: -{ -lean_object* v___x_808_; -if (v_isShared_804_ == 0) -{ -lean_ctor_set_tag(v___x_803_, 0); -lean_ctor_set(v___x_803_, 0, v___x_806_); -v___x_808_ = v___x_803_; -goto v_reusejp_807_; -} -else -{ -lean_object* v_reuseFailAlloc_809_; -v_reuseFailAlloc_809_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_809_, 0, v___x_806_); -v___x_808_ = v_reuseFailAlloc_809_; -goto v_reusejp_807_; -} -v_reusejp_807_: -{ -return v___x_808_; +lean_object* v___x_794_; lean_object* v___f_795_; lean_object* v___f_796_; lean_object* v___f_797_; lean_object* v___x_798_; lean_object* v___f_799_; lean_object* v___f_800_; lean_object* v_a_801_; lean_object* v___x_802_; lean_object* v___f_803_; lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; uint8_t v___x_807_; lean_object* v___x_808_; lean_object* v___x_809_; lean_object* v___x_810_; lean_object* v___f_811_; lean_object* v___x_812_; +v___x_794_ = lean_st_ref_get(v_a_785_); +lean_inc_n(v_a_782_, 2); +v___f_795_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_795_, 0, v_a_782_); +v___f_796_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__0)); +v___f_797_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_797_, 0, v_a_782_); +v___x_798_ = lean_box(0); +v___f_799_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); +v___f_800_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___closed__1)); +v_a_801_ = lean_array_uget_borrowed(v_as_786_, v_i_788_); +v___x_802_ = lean_box(v___x_791_); +lean_inc(v_a_785_); +lean_inc(v_a_784_); +lean_inc_ref(v___x_783_); +lean_inc(v_a_801_); +v___f_803_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__10___boxed), 13, 11); +lean_closure_set(v___f_803_, 0, v_a_801_); +lean_closure_set(v___f_803_, 1, v___f_795_); +lean_closure_set(v___f_803_, 2, v___x_783_); +lean_closure_set(v___f_803_, 3, v___x_798_); +lean_closure_set(v___f_803_, 4, v_a_784_); +lean_closure_set(v___f_803_, 5, v___f_796_); +lean_closure_set(v___f_803_, 6, v___f_800_); +lean_closure_set(v___f_803_, 7, v___f_797_); +lean_closure_set(v___f_803_, 8, v_a_785_); +lean_closure_set(v___f_803_, 9, v___x_802_); +lean_closure_set(v___f_803_, 10, v___f_799_); +v___x_804_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_804_, 0, v___x_794_); +v___x_805_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_805_, 0, v___x_804_); +v___x_806_ = lean_unsigned_to_nat(0u); +v___x_807_ = 0; +v___x_808_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_806_, v___x_807_, v___x_805_, v___f_803_); +v___x_809_ = lean_box_usize(v_i_788_); +v___x_810_ = lean_box_usize(v_sz_787_); +v___f_811_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11___boxed), 9, 7); +lean_closure_set(v___f_811_, 0, v___x_809_); +lean_closure_set(v___f_811_, 1, v_a_782_); +lean_closure_set(v___f_811_, 2, v___x_783_); +lean_closure_set(v___f_811_, 3, v_a_784_); +lean_closure_set(v___f_811_, 4, v_a_785_); +lean_closure_set(v___f_811_, 5, v_as_786_); +lean_closure_set(v___f_811_, 6, v___x_810_); +v___x_812_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_806_, v___x_807_, v___x_808_, v___f_811_); +return v___x_812_; } } } -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed(lean_object* v___x_813_, lean_object* v___x_814_, lean_object* v_x_815_, lean_object* v___y_816_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___lam__11(size_t v_i_813_, lean_object* v_a_814_, lean_object* v___x_815_, lean_object* v_a_816_, lean_object* v_a_817_, lean_object* v_as_818_, size_t v_sz_819_, lean_object* v_x_820_){ _start: { -lean_object* v_res_817_; -v_res_817_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(v___x_813_, v___x_814_, v_x_815_); -return v_res_817_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0(lean_object* v___x_818_, lean_object* v_x_819_){ -_start: +if (lean_obj_tag(v_x_820_) == 0) { -if (lean_obj_tag(v_x_819_) == 0) +lean_object* v_a_822_; lean_object* v___x_824_; uint8_t v_isShared_825_; uint8_t v_isSharedCheck_830_; +lean_dec_ref(v_as_818_); +lean_dec(v_a_817_); +lean_dec(v_a_816_); +lean_dec_ref(v___x_815_); +lean_dec(v_a_814_); +v_a_822_ = lean_ctor_get(v_x_820_, 0); +v_isSharedCheck_830_ = !lean_is_exclusive(v_x_820_); +if (v_isSharedCheck_830_ == 0) { -lean_object* v_a_821_; lean_object* v___x_823_; uint8_t v_isShared_824_; uint8_t v_isSharedCheck_829_; -v_a_821_ = lean_ctor_get(v_x_819_, 0); -v_isSharedCheck_829_ = !lean_is_exclusive(v_x_819_); -if (v_isSharedCheck_829_ == 0) -{ -v___x_823_ = v_x_819_; -v_isShared_824_ = v_isSharedCheck_829_; -goto v_resetjp_822_; +v___x_824_ = v_x_820_; +v_isShared_825_ = v_isSharedCheck_830_; +goto v_resetjp_823_; } else { -lean_inc(v_a_821_); -lean_dec(v_x_819_); -v___x_823_ = lean_box(0); -v_isShared_824_ = v_isSharedCheck_829_; -goto v_resetjp_822_; +lean_inc(v_a_822_); +lean_dec(v_x_820_); +v___x_824_ = lean_box(0); +v_isShared_825_ = v_isSharedCheck_830_; +goto v_resetjp_823_; } -v_resetjp_822_: -{ -lean_object* v___x_826_; -if (v_isShared_824_ == 0) -{ -v___x_826_ = v___x_823_; -goto v_reusejp_825_; -} -else -{ -lean_object* v_reuseFailAlloc_828_; -v_reuseFailAlloc_828_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_828_, 0, v_a_821_); -v___x_826_ = v_reuseFailAlloc_828_; -goto v_reusejp_825_; -} -v_reusejp_825_: +v_resetjp_823_: { lean_object* v___x_827_; -v___x_827_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_827_, 0, v___x_826_); -return v___x_827_; +if (v_isShared_825_ == 0) +{ +v___x_827_ = v___x_824_; +goto v_reusejp_826_; +} +else +{ +lean_object* v_reuseFailAlloc_829_; +v_reuseFailAlloc_829_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_829_, 0, v_a_822_); +v___x_827_ = v_reuseFailAlloc_829_; +goto v_reusejp_826_; +} +v_reusejp_826_: +{ +lean_object* v___x_828_; +v___x_828_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_828_, 0, v___x_827_); +return v___x_828_; } } } else { -lean_object* v_a_830_; lean_object* v___x_832_; uint8_t v_isShared_833_; uint8_t v_isSharedCheck_841_; -v_a_830_ = lean_ctor_get(v_x_819_, 0); -v_isSharedCheck_841_ = !lean_is_exclusive(v_x_819_); -if (v_isSharedCheck_841_ == 0) +lean_object* v_a_831_; lean_object* v___x_833_; uint8_t v_isShared_834_; uint8_t v_isSharedCheck_850_; +v_a_831_ = lean_ctor_get(v_x_820_, 0); +v_isSharedCheck_850_ = !lean_is_exclusive(v_x_820_); +if (v_isSharedCheck_850_ == 0) { -v___x_832_ = v_x_819_; -v_isShared_833_ = v_isSharedCheck_841_; -goto v_resetjp_831_; +v___x_833_ = v_x_820_; +v_isShared_834_ = v_isSharedCheck_850_; +goto v_resetjp_832_; } else { -lean_inc(v_a_830_); -lean_dec(v_x_819_); -v___x_832_ = lean_box(0); -v_isShared_833_ = v_isSharedCheck_841_; -goto v_resetjp_831_; +lean_inc(v_a_831_); +lean_dec(v_x_820_); +v___x_833_ = lean_box(0); +v_isShared_834_ = v_isSharedCheck_850_; +goto v_resetjp_832_; } -v_resetjp_831_: +v_resetjp_832_: { -lean_object* v___x_834_; lean_object* v___x_835_; lean_object* v___x_836_; lean_object* v___x_838_; -v___x_834_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_834_, 0, v_a_830_); -v___x_835_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_835_, 0, v___x_834_); -lean_ctor_set(v___x_835_, 1, v___x_818_); -v___x_836_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_836_, 0, v___x_835_); -if (v_isShared_833_ == 0) +if (lean_obj_tag(v_a_831_) == 0) { -lean_ctor_set(v___x_832_, 0, v___x_836_); -v___x_838_ = v___x_832_; -goto v_reusejp_837_; +lean_object* v_a_835_; lean_object* v___x_837_; uint8_t v_isShared_838_; uint8_t v_isSharedCheck_845_; +lean_dec_ref(v_as_818_); +lean_dec(v_a_817_); +lean_dec(v_a_816_); +lean_dec_ref(v___x_815_); +lean_dec(v_a_814_); +v_a_835_ = lean_ctor_get(v_a_831_, 0); +v_isSharedCheck_845_ = !lean_is_exclusive(v_a_831_); +if (v_isSharedCheck_845_ == 0) +{ +v___x_837_ = v_a_831_; +v_isShared_838_ = v_isSharedCheck_845_; +goto v_resetjp_836_; } else { -lean_object* v_reuseFailAlloc_840_; -v_reuseFailAlloc_840_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_840_, 0, v___x_836_); -v___x_838_ = v_reuseFailAlloc_840_; -goto v_reusejp_837_; +lean_inc(v_a_835_); +lean_dec(v_a_831_); +v___x_837_ = lean_box(0); +v_isShared_838_ = v_isSharedCheck_845_; +goto v_resetjp_836_; } -v_reusejp_837_: +v_resetjp_836_: { -lean_object* v___x_839_; -v___x_839_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_839_, 0, v___x_838_); -return v___x_839_; +lean_object* v___x_840_; +if (v_isShared_834_ == 0) +{ +lean_ctor_set(v___x_833_, 0, v_a_835_); +v___x_840_ = v___x_833_; +goto v_reusejp_839_; +} +else +{ +lean_object* v_reuseFailAlloc_844_; +v_reuseFailAlloc_844_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_844_, 0, v_a_835_); +v___x_840_ = v_reuseFailAlloc_844_; +goto v_reusejp_839_; +} +v_reusejp_839_: +{ +lean_object* v___x_842_; +if (v_isShared_838_ == 0) +{ +lean_ctor_set(v___x_837_, 0, v___x_840_); +v___x_842_ = v___x_837_; +goto v_reusejp_841_; +} +else +{ +lean_object* v_reuseFailAlloc_843_; +v_reuseFailAlloc_843_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_843_, 0, v___x_840_); +v___x_842_ = v_reuseFailAlloc_843_; +goto v_reusejp_841_; +} +v_reusejp_841_: +{ +return v___x_842_; +} +} +} +} +else +{ +lean_object* v_a_846_; size_t v___x_847_; size_t v___x_848_; lean_object* v___x_849_; +lean_del_object(v___x_833_); +v_a_846_ = lean_ctor_get(v_a_831_, 0); +lean_inc(v_a_846_); +lean_dec_ref(v_a_831_); +v___x_847_ = ((size_t)1ULL); +v___x_848_ = lean_usize_add(v_i_813_, v___x_847_); +v___x_849_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_814_, v___x_815_, v_a_816_, v_a_817_, v_as_818_, v_sz_819_, v___x_848_, v_a_846_); +return v___x_849_; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0___boxed(lean_object* v___x_842_, lean_object* v_x_843_, lean_object* v___y_844_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg___boxed(lean_object* v_a_851_, lean_object* v___x_852_, lean_object* v_a_853_, lean_object* v_a_854_, lean_object* v_as_855_, lean_object* v_sz_856_, lean_object* v_i_857_, lean_object* v_b_858_, lean_object* v___y_859_){ _start: { -lean_object* v_res_845_; -v_res_845_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0(v___x_842_, v_x_843_); -return v_res_845_; +size_t v_sz_boxed_860_; size_t v_i_boxed_861_; lean_object* v_res_862_; +v_sz_boxed_860_ = lean_unbox_usize(v_sz_856_); +lean_dec(v_sz_856_); +v_i_boxed_861_ = lean_unbox_usize(v_i_857_); +lean_dec(v_i_857_); +v_res_862_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_851_, v___x_852_, v_a_853_, v_a_854_, v_as_855_, v_sz_boxed_860_, v_i_boxed_861_, v_b_858_); +return v_res_862_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1(lean_object* v_a_846_, lean_object* v___f_847_, lean_object* v___x_848_, lean_object* v_x_849_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4(lean_object* v___x_863_, lean_object* v_a_864_, lean_object* v_a_865_, lean_object* v___x_866_, lean_object* v_x_867_){ _start: { -if (lean_obj_tag(v_x_849_) == 0) +if (lean_obj_tag(v_x_867_) == 0) { -lean_object* v_a_851_; lean_object* v___x_853_; uint8_t v_isShared_854_; uint8_t v_isSharedCheck_859_; -lean_dec_ref(v___x_848_); -lean_dec_ref(v___f_847_); -lean_dec_ref(v_a_846_); -v_a_851_ = lean_ctor_get(v_x_849_, 0); -v_isSharedCheck_859_ = !lean_is_exclusive(v_x_849_); -if (v_isSharedCheck_859_ == 0) +lean_object* v_a_869_; lean_object* v___x_871_; uint8_t v_isShared_872_; uint8_t v_isSharedCheck_877_; +lean_dec(v_a_865_); +lean_dec(v_a_864_); +lean_dec_ref(v___x_863_); +v_a_869_ = lean_ctor_get(v_x_867_, 0); +v_isSharedCheck_877_ = !lean_is_exclusive(v_x_867_); +if (v_isSharedCheck_877_ == 0) { -v___x_853_ = v_x_849_; -v_isShared_854_ = v_isSharedCheck_859_; -goto v_resetjp_852_; +v___x_871_ = v_x_867_; +v_isShared_872_ = v_isSharedCheck_877_; +goto v_resetjp_870_; } else { -lean_inc(v_a_851_); -lean_dec(v_x_849_); -v___x_853_ = lean_box(0); -v_isShared_854_ = v_isSharedCheck_859_; -goto v_resetjp_852_; +lean_inc(v_a_869_); +lean_dec(v_x_867_); +v___x_871_ = lean_box(0); +v_isShared_872_ = v_isSharedCheck_877_; +goto v_resetjp_870_; } -v_resetjp_852_: +v_resetjp_870_: { -lean_object* v___x_856_; -if (v_isShared_854_ == 0) +lean_object* v___x_874_; +if (v_isShared_872_ == 0) { -v___x_856_ = v___x_853_; -goto v_reusejp_855_; +v___x_874_ = v___x_871_; +goto v_reusejp_873_; } else { -lean_object* v_reuseFailAlloc_858_; -v_reuseFailAlloc_858_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_858_, 0, v_a_851_); -v___x_856_ = v_reuseFailAlloc_858_; -goto v_reusejp_855_; +lean_object* v_reuseFailAlloc_876_; +v_reuseFailAlloc_876_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_876_, 0, v_a_869_); +v___x_874_ = v_reuseFailAlloc_876_; +goto v_reusejp_873_; } -v_reusejp_855_: +v_reusejp_873_: { -lean_object* v___x_857_; -v___x_857_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_857_, 0, v___x_856_); -return v___x_857_; +lean_object* v___x_875_; +v___x_875_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_875_, 0, v___x_874_); +return v___x_875_; } } } else { -lean_object* v_a_860_; lean_object* v___x_862_; uint8_t v_isShared_863_; uint8_t v_isSharedCheck_875_; -v_a_860_ = lean_ctor_get(v_x_849_, 0); -v_isSharedCheck_875_ = !lean_is_exclusive(v_x_849_); -if (v_isSharedCheck_875_ == 0) -{ -v___x_862_ = v_x_849_; -v_isShared_863_ = v_isSharedCheck_875_; -goto v_resetjp_861_; -} -else -{ -lean_inc(v_a_860_); -lean_dec(v_x_849_); -v___x_862_ = lean_box(0); -v_isShared_863_ = v_isSharedCheck_875_; -goto v_resetjp_861_; -} -v_resetjp_861_: -{ -if (lean_obj_tag(v_a_860_) == 1) -{ -lean_object* v_val_864_; lean_object* v_cont_865_; lean_object* v___x_866_; lean_object* v___x_867_; uint8_t v___x_868_; lean_object* v___x_869_; -lean_del_object(v___x_862_); -lean_dec_ref(v___x_848_); -v_val_864_ = lean_ctor_get(v_a_860_, 0); -lean_inc(v_val_864_); -lean_dec_ref(v_a_860_); -v_cont_865_ = lean_ctor_get(v_a_846_, 1); -lean_inc_ref(v_cont_865_); -lean_dec_ref(v_a_846_); -v___x_866_ = lean_apply_2(v_cont_865_, v_val_864_, lean_box(0)); -v___x_867_ = lean_unsigned_to_nat(0u); -v___x_868_ = 0; -v___x_869_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_867_, v___x_868_, v___x_866_, v___f_847_); -return v___x_869_; -} -else -{ -lean_object* v___x_870_; lean_object* v___x_872_; -lean_dec(v_a_860_); -lean_dec_ref(v___f_847_); -lean_dec_ref(v_a_846_); -v___x_870_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_870_, 0, v___x_848_); -if (v_isShared_863_ == 0) -{ -lean_ctor_set(v___x_862_, 0, v___x_870_); -v___x_872_ = v___x_862_; -goto v_reusejp_871_; -} -else -{ -lean_object* v_reuseFailAlloc_874_; -v_reuseFailAlloc_874_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_874_, 0, v___x_870_); -v___x_872_ = v_reuseFailAlloc_874_; -goto v_reusejp_871_; -} -v_reusejp_871_: -{ -lean_object* v___x_873_; -v___x_873_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_873_, 0, v___x_872_); -return v___x_873_; +lean_object* v_a_878_; size_t v_sz_879_; size_t v___x_880_; lean_object* v___x_881_; lean_object* v___f_882_; lean_object* v___f_883_; lean_object* v___x_884_; uint8_t v___x_885_; lean_object* v___x_886_; +v_a_878_ = lean_ctor_get(v_x_867_, 0); +v_sz_879_ = lean_array_size(v___x_863_); +v___x_880_ = ((size_t)0ULL); +lean_inc(v_a_864_); +lean_inc_ref(v___x_863_); +lean_inc(v_a_878_); +v___x_881_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_878_, v___x_863_, v_a_864_, v_a_865_, v___x_863_, v_sz_879_, v___x_880_, v___x_866_); +v___f_882_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_882_, 0, v_x_867_); +v___f_883_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__3___boxed), 5, 3); +lean_closure_set(v___f_883_, 0, v___x_866_); +lean_closure_set(v___f_883_, 1, v_a_864_); +lean_closure_set(v___f_883_, 2, v___f_882_); +v___x_884_ = lean_unsigned_to_nat(0u); +v___x_885_ = 0; +v___x_886_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_884_, v___x_885_, v___x_881_, v___f_883_); +return v___x_886_; } } } -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1___boxed(lean_object* v_a_876_, lean_object* v___f_877_, lean_object* v___x_878_, lean_object* v_x_879_, lean_object* v___y_880_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed(lean_object* v___x_887_, lean_object* v_a_888_, lean_object* v_a_889_, lean_object* v___x_890_, lean_object* v_x_891_, lean_object* v___y_892_){ _start: { -lean_object* v_res_881_; -v_res_881_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1(v_a_876_, v___f_877_, v___x_878_, v_x_879_); -return v_res_881_; +lean_object* v_res_893_; +v_res_893_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4(v___x_887_, v_a_888_, v_a_889_, v___x_890_, v_x_891_); +return v_res_893_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2___boxed(lean_object* v_i_887_, lean_object* v_as_888_, lean_object* v_sz_889_, lean_object* v_x_890_, lean_object* v___y_891_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(lean_object* v___x_894_, lean_object* v_a_895_, lean_object* v___x_896_, lean_object* v_x_897_){ _start: { -size_t v_i_boxed_892_; size_t v_sz_boxed_893_; lean_object* v_res_894_; -v_i_boxed_892_ = lean_unbox_usize(v_i_887_); -lean_dec(v_i_887_); -v_sz_boxed_893_ = lean_unbox_usize(v_sz_889_); -lean_dec(v_sz_889_); -v_res_894_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2(v_i_boxed_892_, v_as_888_, v_sz_boxed_893_, v_x_890_); -return v_res_894_; +if (lean_obj_tag(v_x_897_) == 0) +{ +lean_object* v_a_899_; lean_object* v___x_901_; uint8_t v_isShared_902_; uint8_t v_isSharedCheck_907_; +lean_dec(v_a_895_); +lean_dec_ref(v___x_894_); +v_a_899_ = lean_ctor_get(v_x_897_, 0); +v_isSharedCheck_907_ = !lean_is_exclusive(v_x_897_); +if (v_isSharedCheck_907_ == 0) +{ +v___x_901_ = v_x_897_; +v_isShared_902_ = v_isSharedCheck_907_; +goto v_resetjp_900_; +} +else +{ +lean_inc(v_a_899_); +lean_dec(v_x_897_); +v___x_901_ = lean_box(0); +v_isShared_902_ = v_isSharedCheck_907_; +goto v_resetjp_900_; +} +v_resetjp_900_: +{ +lean_object* v___x_904_; +if (v_isShared_902_ == 0) +{ +v___x_904_ = v___x_901_; +goto v_reusejp_903_; +} +else +{ +lean_object* v_reuseFailAlloc_906_; +v_reuseFailAlloc_906_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_906_, 0, v_a_899_); +v___x_904_ = v_reuseFailAlloc_906_; +goto v_reusejp_903_; +} +v_reusejp_903_: +{ +lean_object* v___x_905_; +v___x_905_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_905_, 0, v___x_904_); +return v___x_905_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(lean_object* v_as_895_, size_t v_sz_896_, size_t v_i_897_, lean_object* v_b_898_){ +} +else +{ +lean_object* v_a_908_; lean_object* v___x_910_; uint8_t v_isShared_911_; uint8_t v_isSharedCheck_921_; +v_a_908_ = lean_ctor_get(v_x_897_, 0); +v_isSharedCheck_921_ = !lean_is_exclusive(v_x_897_); +if (v_isSharedCheck_921_ == 0) +{ +v___x_910_ = v_x_897_; +v_isShared_911_ = v_isSharedCheck_921_; +goto v_resetjp_909_; +} +else +{ +lean_inc(v_a_908_); +lean_dec(v_x_897_); +v___x_910_ = lean_box(0); +v_isShared_911_ = v_isSharedCheck_921_; +goto v_resetjp_909_; +} +v_resetjp_909_: +{ +lean_object* v___x_912_; lean_object* v___f_913_; lean_object* v___x_915_; +v___x_912_ = lean_io_promise_new(); +v___f_913_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__4___boxed), 6, 4); +lean_closure_set(v___f_913_, 0, v___x_894_); +lean_closure_set(v___f_913_, 1, v_a_895_); +lean_closure_set(v___f_913_, 2, v_a_908_); +lean_closure_set(v___f_913_, 3, v___x_896_); +if (v_isShared_911_ == 0) +{ +lean_ctor_set(v___x_910_, 0, v___x_912_); +v___x_915_ = v___x_910_; +goto v_reusejp_914_; +} +else +{ +lean_object* v_reuseFailAlloc_920_; +v_reuseFailAlloc_920_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_920_, 0, v___x_912_); +v___x_915_ = v_reuseFailAlloc_920_; +goto v_reusejp_914_; +} +v_reusejp_914_: +{ +lean_object* v___x_916_; lean_object* v___x_917_; uint8_t v___x_918_; lean_object* v___x_919_; +v___x_916_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_916_, 0, v___x_915_); +v___x_917_ = lean_unsigned_to_nat(0u); +v___x_918_ = 0; +v___x_919_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_917_, v___x_918_, v___x_916_, v___f_913_); +return v___x_919_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed(lean_object* v___x_922_, lean_object* v_a_923_, lean_object* v___x_924_, lean_object* v_x_925_, lean_object* v___y_926_){ _start: { -uint8_t v___x_900_; -v___x_900_ = lean_usize_dec_lt(v_i_897_, v_sz_896_); -if (v___x_900_ == 0) -{ -lean_object* v___x_901_; lean_object* v___x_902_; -lean_dec_ref(v_as_895_); -v___x_901_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_901_, 0, v_b_898_); -v___x_902_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_902_, 0, v___x_901_); -return v___x_902_; -} -else -{ -lean_object* v_a_903_; lean_object* v_selector_904_; lean_object* v_tryFn_905_; lean_object* v___x_906_; lean_object* v___f_907_; lean_object* v___x_908_; lean_object* v___f_909_; lean_object* v___x_910_; uint8_t v___x_911_; lean_object* v___x_912_; lean_object* v___x_913_; lean_object* v___x_914_; lean_object* v___f_915_; lean_object* v___x_916_; -lean_dec_ref(v_b_898_); -v_a_903_ = lean_array_uget_borrowed(v_as_895_, v_i_897_); -v_selector_904_ = lean_ctor_get(v_a_903_, 0); -v_tryFn_905_ = lean_ctor_get(v_selector_904_, 0); -lean_inc_ref(v_tryFn_905_); -v___x_906_ = lean_apply_1(v_tryFn_905_, lean_box(0)); -v___f_907_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__0)); -v___x_908_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__1)); -lean_inc(v_a_903_); -v___f_909_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1___boxed), 5, 3); -lean_closure_set(v___f_909_, 0, v_a_903_); -lean_closure_set(v___f_909_, 1, v___f_907_); -lean_closure_set(v___f_909_, 2, v___x_908_); -v___x_910_ = lean_unsigned_to_nat(0u); -v___x_911_ = 0; -v___x_912_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_910_, v___x_911_, v___x_906_, v___f_909_); -v___x_913_ = lean_box_usize(v_i_897_); -v___x_914_ = lean_box_usize(v_sz_896_); -v___f_915_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2___boxed), 5, 3); -lean_closure_set(v___f_915_, 0, v___x_913_); -lean_closure_set(v___f_915_, 1, v_as_895_); -lean_closure_set(v___f_915_, 2, v___x_914_); -v___x_916_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_910_, v___x_911_, v___x_912_, v___f_915_); -return v___x_916_; +lean_object* v_res_927_; +v_res_927_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5(v___x_922_, v_a_923_, v___x_924_, v_x_925_); +return v_res_927_; } } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2(size_t v_i_917_, lean_object* v_as_918_, size_t v_sz_919_, lean_object* v_x_920_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(lean_object* v___f_928_, lean_object* v_x_929_){ _start: { -if (lean_obj_tag(v_x_920_) == 0) +if (lean_obj_tag(v_x_929_) == 0) { -lean_object* v_a_922_; lean_object* v___x_924_; uint8_t v_isShared_925_; uint8_t v_isSharedCheck_930_; -lean_dec_ref(v_as_918_); -v_a_922_ = lean_ctor_get(v_x_920_, 0); -v_isSharedCheck_930_ = !lean_is_exclusive(v_x_920_); -if (v_isSharedCheck_930_ == 0) +lean_object* v_a_931_; lean_object* v___x_933_; uint8_t v_isShared_934_; uint8_t v_isSharedCheck_939_; +lean_dec_ref(v___f_928_); +v_a_931_ = lean_ctor_get(v_x_929_, 0); +v_isSharedCheck_939_ = !lean_is_exclusive(v_x_929_); +if (v_isSharedCheck_939_ == 0) { -v___x_924_ = v_x_920_; -v_isShared_925_ = v_isSharedCheck_930_; -goto v_resetjp_923_; -} -else -{ -lean_inc(v_a_922_); -lean_dec(v_x_920_); -v___x_924_ = lean_box(0); -v_isShared_925_ = v_isSharedCheck_930_; -goto v_resetjp_923_; -} -v_resetjp_923_: -{ -lean_object* v___x_927_; -if (v_isShared_925_ == 0) -{ -v___x_927_ = v___x_924_; -goto v_reusejp_926_; -} -else -{ -lean_object* v_reuseFailAlloc_929_; -v_reuseFailAlloc_929_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_929_, 0, v_a_922_); -v___x_927_ = v_reuseFailAlloc_929_; -goto v_reusejp_926_; -} -v_reusejp_926_: -{ -lean_object* v___x_928_; -v___x_928_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_928_, 0, v___x_927_); -return v___x_928_; -} -} -} -else -{ -lean_object* v_a_931_; lean_object* v___x_933_; uint8_t v_isShared_934_; uint8_t v_isSharedCheck_950_; -v_a_931_ = lean_ctor_get(v_x_920_, 0); -v_isSharedCheck_950_ = !lean_is_exclusive(v_x_920_); -if (v_isSharedCheck_950_ == 0) -{ -v___x_933_ = v_x_920_; -v_isShared_934_ = v_isSharedCheck_950_; +v___x_933_ = v_x_929_; +v_isShared_934_ = v_isSharedCheck_939_; goto v_resetjp_932_; } else { lean_inc(v_a_931_); -lean_dec(v_x_920_); +lean_dec(v_x_929_); v___x_933_ = lean_box(0); -v_isShared_934_ = v_isSharedCheck_950_; +v_isShared_934_ = v_isSharedCheck_939_; goto v_resetjp_932_; } v_resetjp_932_: { -if (lean_obj_tag(v_a_931_) == 0) -{ -lean_object* v_a_935_; lean_object* v___x_937_; uint8_t v_isShared_938_; uint8_t v_isSharedCheck_945_; -lean_dec_ref(v_as_918_); -v_a_935_ = lean_ctor_get(v_a_931_, 0); -v_isSharedCheck_945_ = !lean_is_exclusive(v_a_931_); -if (v_isSharedCheck_945_ == 0) -{ -v___x_937_ = v_a_931_; -v_isShared_938_ = v_isSharedCheck_945_; -goto v_resetjp_936_; -} -else -{ -lean_inc(v_a_935_); -lean_dec(v_a_931_); -v___x_937_ = lean_box(0); -v_isShared_938_ = v_isSharedCheck_945_; -goto v_resetjp_936_; -} -v_resetjp_936_: -{ -lean_object* v___x_940_; +lean_object* v___x_936_; if (v_isShared_934_ == 0) { -lean_ctor_set(v___x_933_, 0, v_a_935_); -v___x_940_ = v___x_933_; -goto v_reusejp_939_; +v___x_936_ = v___x_933_; +goto v_reusejp_935_; } else { -lean_object* v_reuseFailAlloc_944_; -v_reuseFailAlloc_944_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_944_, 0, v_a_935_); -v___x_940_ = v_reuseFailAlloc_944_; -goto v_reusejp_939_; +lean_object* v_reuseFailAlloc_938_; +v_reuseFailAlloc_938_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_938_, 0, v_a_931_); +v___x_936_ = v_reuseFailAlloc_938_; +goto v_reusejp_935_; } -v_reusejp_939_: +v_reusejp_935_: { -lean_object* v___x_942_; -if (v_isShared_938_ == 0) -{ -lean_ctor_set(v___x_937_, 0, v___x_940_); -v___x_942_ = v___x_937_; -goto v_reusejp_941_; -} -else -{ -lean_object* v_reuseFailAlloc_943_; -v_reuseFailAlloc_943_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_943_, 0, v___x_940_); -v___x_942_ = v_reuseFailAlloc_943_; -goto v_reusejp_941_; -} -v_reusejp_941_: -{ -return v___x_942_; -} +lean_object* v___x_937_; +v___x_937_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_937_, 0, v___x_936_); +return v___x_937_; } } } else { -lean_object* v_a_946_; size_t v___x_947_; size_t v___x_948_; lean_object* v___x_949_; -lean_del_object(v___x_933_); -v_a_946_ = lean_ctor_get(v_a_931_, 0); -lean_inc(v_a_946_); -lean_dec_ref(v_a_931_); -v___x_947_ = ((size_t)1ULL); -v___x_948_ = lean_usize_add(v_i_917_, v___x_947_); -v___x_949_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_918_, v_sz_919_, v___x_948_, v_a_946_); -return v___x_949_; +lean_object* v_a_940_; lean_object* v___x_942_; uint8_t v_isShared_943_; uint8_t v_isSharedCheck_965_; +v_a_940_ = lean_ctor_get(v_x_929_, 0); +v_isSharedCheck_965_ = !lean_is_exclusive(v_x_929_); +if (v_isSharedCheck_965_ == 0) +{ +v___x_942_ = v_x_929_; +v_isShared_943_ = v_isSharedCheck_965_; +goto v_resetjp_941_; +} +else +{ +lean_inc(v_a_940_); +lean_dec(v_x_929_); +v___x_942_ = lean_box(0); +v_isShared_943_ = v_isSharedCheck_965_; +goto v_resetjp_941_; +} +v_resetjp_941_: +{ +lean_object* v_fst_944_; +v_fst_944_ = lean_ctor_get(v_a_940_, 0); +lean_inc(v_fst_944_); +lean_dec(v_a_940_); +if (lean_obj_tag(v_fst_944_) == 0) +{ +uint8_t v___x_945_; lean_object* v___x_946_; lean_object* v___x_947_; lean_object* v___x_949_; +v___x_945_ = 0; +v___x_946_ = lean_box(v___x_945_); +v___x_947_ = lean_st_mk_ref(v___x_946_); +if (v_isShared_943_ == 0) +{ +lean_ctor_set(v___x_942_, 0, v___x_947_); +v___x_949_ = v___x_942_; +goto v_reusejp_948_; +} +else +{ +lean_object* v_reuseFailAlloc_953_; +v_reuseFailAlloc_953_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_953_, 0, v___x_947_); +v___x_949_ = v_reuseFailAlloc_953_; +goto v_reusejp_948_; +} +v_reusejp_948_: +{ +lean_object* v___x_950_; lean_object* v___x_951_; lean_object* v___x_952_; +v___x_950_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_950_, 0, v___x_949_); +v___x_951_ = lean_unsigned_to_nat(0u); +v___x_952_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_951_, v___x_945_, v___x_950_, v___f_928_); +return v___x_952_; +} +} +else +{ +lean_object* v_val_954_; lean_object* v___x_956_; uint8_t v_isShared_957_; uint8_t v_isSharedCheck_964_; +lean_dec_ref(v___f_928_); +v_val_954_ = lean_ctor_get(v_fst_944_, 0); +v_isSharedCheck_964_ = !lean_is_exclusive(v_fst_944_); +if (v_isSharedCheck_964_ == 0) +{ +v___x_956_ = v_fst_944_; +v_isShared_957_ = v_isSharedCheck_964_; +goto v_resetjp_955_; +} +else +{ +lean_inc(v_val_954_); +lean_dec(v_fst_944_); +v___x_956_ = lean_box(0); +v_isShared_957_ = v_isSharedCheck_964_; +goto v_resetjp_955_; +} +v_resetjp_955_: +{ +lean_object* v___x_959_; +if (v_isShared_943_ == 0) +{ +lean_ctor_set(v___x_942_, 0, v_val_954_); +v___x_959_ = v___x_942_; +goto v_reusejp_958_; +} +else +{ +lean_object* v_reuseFailAlloc_963_; +v_reuseFailAlloc_963_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_963_, 0, v_val_954_); +v___x_959_ = v_reuseFailAlloc_963_; +goto v_reusejp_958_; +} +v_reusejp_958_: +{ +lean_object* v___x_961_; +if (v_isShared_957_ == 0) +{ +lean_ctor_set_tag(v___x_956_, 0); +lean_ctor_set(v___x_956_, 0, v___x_959_); +v___x_961_ = v___x_956_; +goto v_reusejp_960_; +} +else +{ +lean_object* v_reuseFailAlloc_962_; +v_reuseFailAlloc_962_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_962_, 0, v___x_959_); +v___x_961_ = v_reuseFailAlloc_962_; +goto v_reusejp_960_; +} +v_reusejp_960_: +{ +return v___x_961_; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___boxed(lean_object* v_as_951_, lean_object* v_sz_952_, lean_object* v_i_953_, lean_object* v_b_954_, lean_object* v___y_955_){ +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed(lean_object* v___f_966_, lean_object* v_x_967_, lean_object* v___y_968_){ _start: { -size_t v_sz_boxed_956_; size_t v_i_boxed_957_; lean_object* v_res_958_; -v_sz_boxed_956_ = lean_unbox_usize(v_sz_952_); -lean_dec(v_sz_952_); -v_i_boxed_957_ = lean_unbox_usize(v_i_953_); -lean_dec(v_i_953_); -v_res_958_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_951_, v_sz_boxed_956_, v_i_boxed_957_, v_b_954_); -return v_res_958_; +lean_object* v_res_969_; +v_res_969_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(v___f_966_, v_x_967_); +return v_res_969_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(lean_object* v_selectables_959_, lean_object* v_x_960_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0(lean_object* v___x_970_, lean_object* v_x_971_){ _start: { -if (lean_obj_tag(v_x_960_) == 0) +if (lean_obj_tag(v_x_971_) == 0) { -lean_object* v_a_962_; lean_object* v___x_964_; uint8_t v_isShared_965_; uint8_t v_isSharedCheck_970_; -lean_dec_ref(v_selectables_959_); -v_a_962_ = lean_ctor_get(v_x_960_, 0); -v_isSharedCheck_970_ = !lean_is_exclusive(v_x_960_); -if (v_isSharedCheck_970_ == 0) +lean_object* v_a_973_; lean_object* v___x_975_; uint8_t v_isShared_976_; uint8_t v_isSharedCheck_981_; +v_a_973_ = lean_ctor_get(v_x_971_, 0); +v_isSharedCheck_981_ = !lean_is_exclusive(v_x_971_); +if (v_isSharedCheck_981_ == 0) { -v___x_964_ = v_x_960_; -v_isShared_965_ = v_isSharedCheck_970_; -goto v_resetjp_963_; +v___x_975_ = v_x_971_; +v_isShared_976_ = v_isSharedCheck_981_; +goto v_resetjp_974_; } else { -lean_inc(v_a_962_); -lean_dec(v_x_960_); -v___x_964_ = lean_box(0); -v_isShared_965_ = v_isSharedCheck_970_; -goto v_resetjp_963_; +lean_inc(v_a_973_); +lean_dec(v_x_971_); +v___x_975_ = lean_box(0); +v_isShared_976_ = v_isSharedCheck_981_; +goto v_resetjp_974_; } -v_resetjp_963_: +v_resetjp_974_: { -lean_object* v___x_967_; -if (v_isShared_965_ == 0) +lean_object* v___x_978_; +if (v_isShared_976_ == 0) { -v___x_967_ = v___x_964_; -goto v_reusejp_966_; +v___x_978_ = v___x_975_; +goto v_reusejp_977_; } else { -lean_object* v_reuseFailAlloc_969_; -v_reuseFailAlloc_969_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_969_, 0, v_a_962_); -v___x_967_ = v_reuseFailAlloc_969_; -goto v_reusejp_966_; +lean_object* v_reuseFailAlloc_980_; +v_reuseFailAlloc_980_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_980_, 0, v_a_973_); +v___x_978_ = v_reuseFailAlloc_980_; +goto v_reusejp_977_; } -v_reusejp_966_: +v_reusejp_977_: { -lean_object* v___x_968_; -v___x_968_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_968_, 0, v___x_967_); -return v___x_968_; +lean_object* v___x_979_; +v___x_979_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_979_, 0, v___x_978_); +return v___x_979_; } } } else { -lean_object* v_a_971_; uint64_t v___x_972_; lean_object* v___x_973_; lean_object* v___x_974_; lean_object* v___x_975_; lean_object* v___x_976_; lean_object* v___x_977_; size_t v_sz_978_; size_t v___x_979_; lean_object* v___x_980_; lean_object* v___f_981_; lean_object* v___x_982_; uint8_t v___x_983_; lean_object* v___x_984_; -v_a_971_ = lean_ctor_get(v_x_960_, 0); -lean_inc(v_a_971_); -lean_dec_ref(v_x_960_); -v___x_972_ = l_ByteArray_toUInt64LE_x21(v_a_971_); -lean_dec(v_a_971_); -v___x_973_ = lean_uint64_to_nat(v___x_972_); -v___x_974_ = l_mkStdGen(v___x_973_); -lean_dec(v___x_973_); -v___x_975_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_959_, v___x_974_); -v___x_976_ = lean_box(0); -v___x_977_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__1)); -v_sz_978_ = lean_array_size(v___x_975_); -v___x_979_ = ((size_t)0ULL); -lean_inc_ref(v___x_975_); -v___x_980_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v___x_975_, v_sz_978_, v___x_979_, v___x_977_); -v___f_981_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed), 4, 2); -lean_closure_set(v___f_981_, 0, v___x_975_); -lean_closure_set(v___f_981_, 1, v___x_976_); -v___x_982_ = lean_unsigned_to_nat(0u); -v___x_983_ = 0; -v___x_984_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_982_, v___x_983_, v___x_980_, v___f_981_); -return v___x_984_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed(lean_object* v_selectables_985_, lean_object* v_x_986_, lean_object* v___y_987_){ -_start: +lean_object* v_a_982_; lean_object* v___x_984_; uint8_t v_isShared_985_; uint8_t v_isSharedCheck_993_; +v_a_982_ = lean_ctor_get(v_x_971_, 0); +v_isSharedCheck_993_ = !lean_is_exclusive(v_x_971_); +if (v_isSharedCheck_993_ == 0) { -lean_object* v_res_988_; -v_res_988_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6(v_selectables_985_, v_x_986_); -return v_res_988_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(lean_object* v___f_989_, lean_object* v_____r_990_){ -_start: -{ -lean_object* v_val_993_; size_t v___x_998_; lean_object* v___x_999_; -v___x_998_ = ((size_t)8ULL); -v___x_999_ = lean_io_get_random_bytes(v___x_998_); -if (lean_obj_tag(v___x_999_) == 0) -{ -lean_object* v_a_1000_; lean_object* v___x_1002_; uint8_t v_isShared_1003_; uint8_t v_isSharedCheck_1007_; -v_a_1000_ = lean_ctor_get(v___x_999_, 0); -v_isSharedCheck_1007_ = !lean_is_exclusive(v___x_999_); -if (v_isSharedCheck_1007_ == 0) -{ -v___x_1002_ = v___x_999_; -v_isShared_1003_ = v_isSharedCheck_1007_; -goto v_resetjp_1001_; +v___x_984_ = v_x_971_; +v_isShared_985_ = v_isSharedCheck_993_; +goto v_resetjp_983_; } else { -lean_inc(v_a_1000_); -lean_dec(v___x_999_); -v___x_1002_ = lean_box(0); -v_isShared_1003_ = v_isSharedCheck_1007_; -goto v_resetjp_1001_; +lean_inc(v_a_982_); +lean_dec(v_x_971_); +v___x_984_ = lean_box(0); +v_isShared_985_ = v_isSharedCheck_993_; +goto v_resetjp_983_; } -v_resetjp_1001_: +v_resetjp_983_: { -lean_object* v___x_1005_; -if (v_isShared_1003_ == 0) +lean_object* v___x_986_; lean_object* v___x_987_; lean_object* v___x_988_; lean_object* v___x_990_; +v___x_986_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_986_, 0, v_a_982_); +v___x_987_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_987_, 0, v___x_986_); +lean_ctor_set(v___x_987_, 1, v___x_970_); +v___x_988_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_988_, 0, v___x_987_); +if (v_isShared_985_ == 0) { -lean_ctor_set_tag(v___x_1002_, 1); -v___x_1005_ = v___x_1002_; -goto v_reusejp_1004_; +lean_ctor_set(v___x_984_, 0, v___x_988_); +v___x_990_ = v___x_984_; +goto v_reusejp_989_; } else { -lean_object* v_reuseFailAlloc_1006_; -v_reuseFailAlloc_1006_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1006_, 0, v_a_1000_); -v___x_1005_ = v_reuseFailAlloc_1006_; -goto v_reusejp_1004_; +lean_object* v_reuseFailAlloc_992_; +v_reuseFailAlloc_992_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_992_, 0, v___x_988_); +v___x_990_ = v_reuseFailAlloc_992_; +goto v_reusejp_989_; } -v_reusejp_1004_: +v_reusejp_989_: { -v_val_993_ = v___x_1005_; -goto v___jp_992_; +lean_object* v___x_991_; +v___x_991_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_991_, 0, v___x_990_); +return v___x_991_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0___boxed(lean_object* v___x_994_, lean_object* v_x_995_, lean_object* v___y_996_){ +_start: +{ +lean_object* v_res_997_; +v_res_997_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__0(v___x_994_, v_x_995_); +return v_res_997_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1(lean_object* v_a_998_, lean_object* v___f_999_, lean_object* v___x_1000_, lean_object* v_x_1001_){ +_start: +{ +if (lean_obj_tag(v_x_1001_) == 0) +{ +lean_object* v_a_1003_; lean_object* v___x_1005_; uint8_t v_isShared_1006_; uint8_t v_isSharedCheck_1011_; +lean_dec_ref(v___x_1000_); +lean_dec_ref(v___f_999_); +lean_dec_ref(v_a_998_); +v_a_1003_ = lean_ctor_get(v_x_1001_, 0); +v_isSharedCheck_1011_ = !lean_is_exclusive(v_x_1001_); +if (v_isSharedCheck_1011_ == 0) +{ +v___x_1005_ = v_x_1001_; +v_isShared_1006_ = v_isSharedCheck_1011_; +goto v_resetjp_1004_; +} +else +{ +lean_inc(v_a_1003_); +lean_dec(v_x_1001_); +v___x_1005_ = lean_box(0); +v_isShared_1006_ = v_isSharedCheck_1011_; +goto v_resetjp_1004_; +} +v_resetjp_1004_: +{ +lean_object* v___x_1008_; +if (v_isShared_1006_ == 0) +{ +v___x_1008_ = v___x_1005_; +goto v_reusejp_1007_; +} +else +{ +lean_object* v_reuseFailAlloc_1010_; +v_reuseFailAlloc_1010_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1010_, 0, v_a_1003_); +v___x_1008_ = v_reuseFailAlloc_1010_; +goto v_reusejp_1007_; +} +v_reusejp_1007_: +{ +lean_object* v___x_1009_; +v___x_1009_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1009_, 0, v___x_1008_); +return v___x_1009_; } } } else { -lean_object* v_a_1008_; lean_object* v___x_1010_; uint8_t v_isShared_1011_; uint8_t v_isSharedCheck_1015_; -v_a_1008_ = lean_ctor_get(v___x_999_, 0); -v_isSharedCheck_1015_ = !lean_is_exclusive(v___x_999_); -if (v_isSharedCheck_1015_ == 0) +lean_object* v_a_1012_; lean_object* v___x_1014_; uint8_t v_isShared_1015_; uint8_t v_isSharedCheck_1027_; +v_a_1012_ = lean_ctor_get(v_x_1001_, 0); +v_isSharedCheck_1027_ = !lean_is_exclusive(v_x_1001_); +if (v_isSharedCheck_1027_ == 0) { -v___x_1010_ = v___x_999_; -v_isShared_1011_ = v_isSharedCheck_1015_; -goto v_resetjp_1009_; +v___x_1014_ = v_x_1001_; +v_isShared_1015_ = v_isSharedCheck_1027_; +goto v_resetjp_1013_; } else { -lean_inc(v_a_1008_); -lean_dec(v___x_999_); -v___x_1010_ = lean_box(0); -v_isShared_1011_ = v_isSharedCheck_1015_; -goto v_resetjp_1009_; +lean_inc(v_a_1012_); +lean_dec(v_x_1001_); +v___x_1014_ = lean_box(0); +v_isShared_1015_ = v_isSharedCheck_1027_; +goto v_resetjp_1013_; } -v_resetjp_1009_: +v_resetjp_1013_: { -lean_object* v___x_1013_; -if (v_isShared_1011_ == 0) +if (lean_obj_tag(v_a_1012_) == 1) { -lean_ctor_set_tag(v___x_1010_, 0); -v___x_1013_ = v___x_1010_; -goto v_reusejp_1012_; +lean_object* v_val_1016_; lean_object* v_cont_1017_; lean_object* v___x_1018_; lean_object* v___x_1019_; uint8_t v___x_1020_; lean_object* v___x_1021_; +lean_del_object(v___x_1014_); +lean_dec_ref(v___x_1000_); +v_val_1016_ = lean_ctor_get(v_a_1012_, 0); +lean_inc(v_val_1016_); +lean_dec_ref(v_a_1012_); +v_cont_1017_ = lean_ctor_get(v_a_998_, 1); +lean_inc_ref(v_cont_1017_); +lean_dec_ref(v_a_998_); +v___x_1018_ = lean_apply_2(v_cont_1017_, v_val_1016_, lean_box(0)); +v___x_1019_ = lean_unsigned_to_nat(0u); +v___x_1020_ = 0; +v___x_1021_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1019_, v___x_1020_, v___x_1018_, v___f_999_); +return v___x_1021_; } else { -lean_object* v_reuseFailAlloc_1014_; -v_reuseFailAlloc_1014_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1014_, 0, v_a_1008_); -v___x_1013_ = v_reuseFailAlloc_1014_; -goto v_reusejp_1012_; -} -v_reusejp_1012_: +lean_object* v___x_1022_; lean_object* v___x_1024_; +lean_dec(v_a_1012_); +lean_dec_ref(v___f_999_); +lean_dec_ref(v_a_998_); +v___x_1022_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1022_, 0, v___x_1000_); +if (v_isShared_1015_ == 0) { -v_val_993_ = v___x_1013_; -goto v___jp_992_; +lean_ctor_set(v___x_1014_, 0, v___x_1022_); +v___x_1024_ = v___x_1014_; +goto v_reusejp_1023_; } -} -} -v___jp_992_: +else { -lean_object* v___x_994_; lean_object* v___x_995_; uint8_t v___x_996_; lean_object* v___x_997_; -v___x_994_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_994_, 0, v_val_993_); -v___x_995_ = lean_unsigned_to_nat(0u); -v___x_996_ = 0; -v___x_997_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_995_, v___x_996_, v___x_994_, v___f_989_); -return v___x_997_; +lean_object* v_reuseFailAlloc_1026_; +v_reuseFailAlloc_1026_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1026_, 0, v___x_1022_); +v___x_1024_ = v_reuseFailAlloc_1026_; +goto v_reusejp_1023_; +} +v_reusejp_1023_: +{ +lean_object* v___x_1025_; +v___x_1025_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1025_, 0, v___x_1024_); +return v___x_1025_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7___boxed(lean_object* v___f_1016_, lean_object* v_____r_1017_, lean_object* v___y_1018_){ +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1___boxed(lean_object* v_a_1028_, lean_object* v___f_1029_, lean_object* v___x_1030_, lean_object* v_x_1031_, lean_object* v___y_1032_){ _start: { -lean_object* v_res_1019_; -v_res_1019_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(v___f_1016_, v_____r_1017_); -return v_res_1019_; +lean_object* v_res_1033_; +v_res_1033_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1(v_a_1028_, v___f_1029_, v___x_1030_, v_x_1031_); +return v_res_1033_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8(lean_object* v___f_1020_, lean_object* v_x_1021_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2___boxed(lean_object* v_i_1039_, lean_object* v_as_1040_, lean_object* v_sz_1041_, lean_object* v_x_1042_, lean_object* v___y_1043_){ _start: { -if (lean_obj_tag(v_x_1021_) == 0) +size_t v_i_boxed_1044_; size_t v_sz_boxed_1045_; lean_object* v_res_1046_; +v_i_boxed_1044_ = lean_unbox_usize(v_i_1039_); +lean_dec(v_i_1039_); +v_sz_boxed_1045_ = lean_unbox_usize(v_sz_1041_); +lean_dec(v_sz_1041_); +v_res_1046_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2(v_i_boxed_1044_, v_as_1040_, v_sz_boxed_1045_, v_x_1042_); +return v_res_1046_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(lean_object* v_as_1047_, size_t v_sz_1048_, size_t v_i_1049_, lean_object* v_b_1050_){ +_start: { -lean_object* v_a_1023_; lean_object* v___x_1025_; uint8_t v_isShared_1026_; uint8_t v_isSharedCheck_1031_; -lean_dec_ref(v___f_1020_); -v_a_1023_ = lean_ctor_get(v_x_1021_, 0); -v_isSharedCheck_1031_ = !lean_is_exclusive(v_x_1021_); -if (v_isSharedCheck_1031_ == 0) +uint8_t v___x_1052_; +v___x_1052_ = lean_usize_dec_lt(v_i_1049_, v_sz_1048_); +if (v___x_1052_ == 0) { -v___x_1025_ = v_x_1021_; -v_isShared_1026_ = v_isSharedCheck_1031_; -goto v_resetjp_1024_; +lean_object* v___x_1053_; lean_object* v___x_1054_; +lean_dec_ref(v_as_1047_); +v___x_1053_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1053_, 0, v_b_1050_); +v___x_1054_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1054_, 0, v___x_1053_); +return v___x_1054_; } else { -lean_inc(v_a_1023_); -lean_dec(v_x_1021_); -v___x_1025_ = lean_box(0); -v_isShared_1026_ = v_isSharedCheck_1031_; -goto v_resetjp_1024_; +lean_object* v_a_1055_; lean_object* v_selector_1056_; lean_object* v_tryFn_1057_; lean_object* v___x_1058_; lean_object* v___f_1059_; lean_object* v___x_1060_; lean_object* v___f_1061_; lean_object* v___x_1062_; uint8_t v___x_1063_; lean_object* v___x_1064_; lean_object* v___x_1065_; lean_object* v___x_1066_; lean_object* v___f_1067_; lean_object* v___x_1068_; +lean_dec_ref(v_b_1050_); +v_a_1055_ = lean_array_uget_borrowed(v_as_1047_, v_i_1049_); +v_selector_1056_ = lean_ctor_get(v_a_1055_, 0); +v_tryFn_1057_ = lean_ctor_get(v_selector_1056_, 0); +lean_inc_ref(v_tryFn_1057_); +v___x_1058_ = lean_apply_1(v_tryFn_1057_, lean_box(0)); +v___f_1059_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__0)); +v___x_1060_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__1)); +lean_inc(v_a_1055_); +v___f_1061_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__1___boxed), 5, 3); +lean_closure_set(v___f_1061_, 0, v_a_1055_); +lean_closure_set(v___f_1061_, 1, v___f_1059_); +lean_closure_set(v___f_1061_, 2, v___x_1060_); +v___x_1062_ = lean_unsigned_to_nat(0u); +v___x_1063_ = 0; +v___x_1064_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1062_, v___x_1063_, v___x_1058_, v___f_1061_); +v___x_1065_ = lean_box_usize(v_i_1049_); +v___x_1066_ = lean_box_usize(v_sz_1048_); +v___f_1067_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2___boxed), 5, 3); +lean_closure_set(v___f_1067_, 0, v___x_1065_); +lean_closure_set(v___f_1067_, 1, v_as_1047_); +lean_closure_set(v___f_1067_, 2, v___x_1066_); +v___x_1068_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1062_, v___x_1063_, v___x_1064_, v___f_1067_); +return v___x_1068_; } -v_resetjp_1024_: +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___lam__2(size_t v_i_1069_, lean_object* v_as_1070_, size_t v_sz_1071_, lean_object* v_x_1072_){ +_start: { -lean_object* v___x_1028_; -if (v_isShared_1026_ == 0) +if (lean_obj_tag(v_x_1072_) == 0) { -v___x_1028_ = v___x_1025_; -goto v_reusejp_1027_; +lean_object* v_a_1074_; lean_object* v___x_1076_; uint8_t v_isShared_1077_; uint8_t v_isSharedCheck_1082_; +lean_dec_ref(v_as_1070_); +v_a_1074_ = lean_ctor_get(v_x_1072_, 0); +v_isSharedCheck_1082_ = !lean_is_exclusive(v_x_1072_); +if (v_isSharedCheck_1082_ == 0) +{ +v___x_1076_ = v_x_1072_; +v_isShared_1077_ = v_isSharedCheck_1082_; +goto v_resetjp_1075_; } else { -lean_object* v_reuseFailAlloc_1030_; -v_reuseFailAlloc_1030_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1030_, 0, v_a_1023_); -v___x_1028_ = v_reuseFailAlloc_1030_; -goto v_reusejp_1027_; +lean_inc(v_a_1074_); +lean_dec(v_x_1072_); +v___x_1076_ = lean_box(0); +v_isShared_1077_ = v_isSharedCheck_1082_; +goto v_resetjp_1075_; } -v_reusejp_1027_: +v_resetjp_1075_: { -lean_object* v___x_1029_; -v___x_1029_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1029_, 0, v___x_1028_); -return v___x_1029_; +lean_object* v___x_1079_; +if (v_isShared_1077_ == 0) +{ +v___x_1079_ = v___x_1076_; +goto v_reusejp_1078_; +} +else +{ +lean_object* v_reuseFailAlloc_1081_; +v_reuseFailAlloc_1081_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1081_, 0, v_a_1074_); +v___x_1079_ = v_reuseFailAlloc_1081_; +goto v_reusejp_1078_; +} +v_reusejp_1078_: +{ +lean_object* v___x_1080_; +v___x_1080_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1080_, 0, v___x_1079_); +return v___x_1080_; } } } else { -lean_object* v_a_1032_; lean_object* v___x_1033_; -v_a_1032_ = lean_ctor_get(v_x_1021_, 0); -lean_inc(v_a_1032_); -lean_dec_ref(v_x_1021_); -v___x_1033_ = lean_apply_2(v___f_1020_, v_a_1032_, lean_box(0)); -return v___x_1033_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8___boxed(lean_object* v___f_1034_, lean_object* v_x_1035_, lean_object* v___y_1036_){ -_start: +lean_object* v_a_1083_; lean_object* v___x_1085_; uint8_t v_isShared_1086_; uint8_t v_isSharedCheck_1102_; +v_a_1083_ = lean_ctor_get(v_x_1072_, 0); +v_isSharedCheck_1102_ = !lean_is_exclusive(v_x_1072_); +if (v_isSharedCheck_1102_ == 0) { -lean_object* v_res_1037_; -v_res_1037_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8(v___f_1034_, v_x_1035_); -return v_res_1037_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_object* v_selectables_1045_){ -_start: -{ -lean_object* v___f_1047_; lean_object* v___f_1048_; lean_object* v___x_1049_; lean_object* v___x_1050_; uint8_t v___x_1051_; -lean_inc_ref(v_selectables_1045_); -v___f_1047_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed), 3, 1); -lean_closure_set(v___f_1047_, 0, v_selectables_1045_); -lean_inc_ref(v___f_1047_); -v___f_1048_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7___boxed), 3, 1); -lean_closure_set(v___f_1048_, 0, v___f_1047_); -v___x_1049_ = lean_array_get_size(v_selectables_1045_); -lean_dec_ref(v_selectables_1045_); -v___x_1050_ = lean_unsigned_to_nat(0u); -v___x_1051_ = lean_nat_dec_eq(v___x_1049_, v___x_1050_); -if (v___x_1051_ == 0) -{ -lean_object* v___x_1052_; lean_object* v___x_1053_; -lean_dec_ref(v___f_1048_); -v___x_1052_ = lean_box(0); -v___x_1053_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(v___f_1047_, v___x_1052_); -return v___x_1053_; +v___x_1085_ = v_x_1072_; +v_isShared_1086_ = v_isSharedCheck_1102_; +goto v_resetjp_1084_; } else { -lean_object* v___f_1054_; lean_object* v___x_1055_; uint8_t v___x_1056_; lean_object* v___x_1057_; -lean_dec_ref(v___f_1047_); -v___f_1054_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8___boxed), 3, 1); -lean_closure_set(v___f_1054_, 0, v___f_1048_); -v___x_1055_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___closed__3)); -v___x_1056_ = 0; -v___x_1057_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1050_, v___x_1056_, v___x_1055_, v___f_1054_); -return v___x_1057_; +lean_inc(v_a_1083_); +lean_dec(v_x_1072_); +v___x_1085_ = lean_box(0); +v_isShared_1086_ = v_isSharedCheck_1102_; +goto v_resetjp_1084_; } -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___boxed(lean_object* v_selectables_1058_, lean_object* v_a_1059_){ -_start: +v_resetjp_1084_: { -lean_object* v_res_1060_; -v_res_1060_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_1058_); -return v_res_1060_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one(lean_object* v_00_u03b1_1061_, lean_object* v_selectables_1062_){ -_start: +if (lean_obj_tag(v_a_1083_) == 0) { -lean_object* v___x_1064_; -v___x_1064_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_1062_); -return v___x_1064_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___boxed(lean_object* v_00_u03b1_1065_, lean_object* v_selectables_1066_, lean_object* v_a_1067_){ -_start: +lean_object* v_a_1087_; lean_object* v___x_1089_; uint8_t v_isShared_1090_; uint8_t v_isSharedCheck_1097_; +lean_dec_ref(v_as_1070_); +v_a_1087_ = lean_ctor_get(v_a_1083_, 0); +v_isSharedCheck_1097_ = !lean_is_exclusive(v_a_1083_); +if (v_isSharedCheck_1097_ == 0) { -lean_object* v_res_1068_; -v_res_1068_ = l_Std_Internal_IO_Async_Selectable_one(v_00_u03b1_1065_, v_selectables_1066_); -return v_res_1068_; +v___x_1089_ = v_a_1083_; +v_isShared_1090_ = v_isSharedCheck_1097_; +goto v_resetjp_1088_; } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(lean_object* v_00_u03b1_1069_, lean_object* v_as_1070_, size_t v_sz_1071_, size_t v_i_1072_, lean_object* v_b_1073_){ -_start: +else { -lean_object* v___x_1075_; -v___x_1075_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_as_1070_, v_sz_1071_, v_i_1072_, v_b_1073_); -return v___x_1075_; +lean_inc(v_a_1087_); +lean_dec(v_a_1083_); +v___x_1089_ = lean_box(0); +v_isShared_1090_ = v_isSharedCheck_1097_; +goto v_resetjp_1088_; } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___boxed(lean_object* v_00_u03b1_1076_, lean_object* v_as_1077_, lean_object* v_sz_1078_, lean_object* v_i_1079_, lean_object* v_b_1080_, lean_object* v___y_1081_){ -_start: +v_resetjp_1088_: { -size_t v_sz_boxed_1082_; size_t v_i_boxed_1083_; lean_object* v_res_1084_; -v_sz_boxed_1082_ = lean_unbox_usize(v_sz_1078_); -lean_dec(v_sz_1078_); -v_i_boxed_1083_ = lean_unbox_usize(v_i_1079_); -lean_dec(v_i_1079_); -v_res_1084_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(v_00_u03b1_1076_, v_as_1077_, v_sz_boxed_1082_, v_i_boxed_1083_, v_b_1080_); -return v_res_1084_; +lean_object* v___x_1092_; +if (v_isShared_1086_ == 0) +{ +lean_ctor_set(v___x_1085_, 0, v_a_1087_); +v___x_1092_ = v___x_1085_; +goto v_reusejp_1091_; } +else +{ +lean_object* v_reuseFailAlloc_1096_; +v_reuseFailAlloc_1096_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1096_, 0, v_a_1087_); +v___x_1092_ = v_reuseFailAlloc_1096_; +goto v_reusejp_1091_; } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(lean_object* v_00_u03b1_1085_, lean_object* v_a_1086_, lean_object* v___x_1087_, lean_object* v_a_1088_, lean_object* v_as_1089_, size_t v_sz_1090_, size_t v_i_1091_, lean_object* v_b_1092_){ -_start: +v_reusejp_1091_: { lean_object* v___x_1094_; -v___x_1094_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_1086_, v___x_1087_, v_a_1088_, v_as_1089_, v_sz_1090_, v_i_1091_, v_b_1092_); +if (v_isShared_1090_ == 0) +{ +lean_ctor_set(v___x_1089_, 0, v___x_1092_); +v___x_1094_ = v___x_1089_; +goto v_reusejp_1093_; +} +else +{ +lean_object* v_reuseFailAlloc_1095_; +v_reuseFailAlloc_1095_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1095_, 0, v___x_1092_); +v___x_1094_ = v_reuseFailAlloc_1095_; +goto v_reusejp_1093_; +} +v_reusejp_1093_: +{ return v___x_1094_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___boxed(lean_object* v_00_u03b1_1095_, lean_object* v_a_1096_, lean_object* v___x_1097_, lean_object* v_a_1098_, lean_object* v_as_1099_, lean_object* v_sz_1100_, lean_object* v_i_1101_, lean_object* v_b_1102_, lean_object* v___y_1103_){ +} +} +else +{ +lean_object* v_a_1098_; size_t v___x_1099_; size_t v___x_1100_; lean_object* v___x_1101_; +lean_del_object(v___x_1085_); +v_a_1098_ = lean_ctor_get(v_a_1083_, 0); +lean_inc(v_a_1098_); +lean_dec_ref(v_a_1083_); +v___x_1099_ = ((size_t)1ULL); +v___x_1100_ = lean_usize_add(v_i_1069_, v___x_1099_); +v___x_1101_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_1070_, v_sz_1071_, v___x_1100_, v_a_1098_); +return v___x_1101_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___boxed(lean_object* v_as_1103_, lean_object* v_sz_1104_, lean_object* v_i_1105_, lean_object* v_b_1106_, lean_object* v___y_1107_){ _start: { -size_t v_sz_boxed_1104_; size_t v_i_boxed_1105_; lean_object* v_res_1106_; -v_sz_boxed_1104_ = lean_unbox_usize(v_sz_1100_); -lean_dec(v_sz_1100_); -v_i_boxed_1105_ = lean_unbox_usize(v_i_1101_); -lean_dec(v_i_1101_); -v_res_1106_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(v_00_u03b1_1095_, v_a_1096_, v___x_1097_, v_a_1098_, v_as_1099_, v_sz_boxed_1104_, v_i_boxed_1105_, v_b_1102_); -return v_res_1106_; +size_t v_sz_boxed_1108_; size_t v_i_boxed_1109_; lean_object* v_res_1110_; +v_sz_boxed_1108_ = lean_unbox_usize(v_sz_1104_); +lean_dec(v_sz_1104_); +v_i_boxed_1109_ = lean_unbox_usize(v_i_1105_); +lean_dec(v_i_1105_); +v_res_1110_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_1103_, v_sz_boxed_1108_, v_i_boxed_1109_, v_b_1106_); +return v_res_1110_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3(lean_object* v_00_u03b1_1107_, lean_object* v_as_1108_, size_t v_sz_1109_, size_t v_i_1110_, lean_object* v_b_1111_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(lean_object* v___x_1111_, lean_object* v_x_1112_){ _start: { -lean_object* v___x_1113_; -v___x_1113_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_1108_, v_sz_1109_, v_i_1110_, v_b_1111_); -return v___x_1113_; +if (lean_obj_tag(v_x_1112_) == 0) +{ +lean_object* v_a_1114_; lean_object* v___x_1116_; uint8_t v_isShared_1117_; uint8_t v_isSharedCheck_1122_; +lean_dec_ref(v___x_1111_); +v_a_1114_ = lean_ctor_get(v_x_1112_, 0); +v_isSharedCheck_1122_ = !lean_is_exclusive(v_x_1112_); +if (v_isSharedCheck_1122_ == 0) +{ +v___x_1116_ = v_x_1112_; +v_isShared_1117_ = v_isSharedCheck_1122_; +goto v_resetjp_1115_; +} +else +{ +lean_inc(v_a_1114_); +lean_dec(v_x_1112_); +v___x_1116_ = lean_box(0); +v_isShared_1117_ = v_isSharedCheck_1122_; +goto v_resetjp_1115_; +} +v_resetjp_1115_: +{ +lean_object* v___x_1119_; +if (v_isShared_1117_ == 0) +{ +v___x_1119_ = v___x_1116_; +goto v_reusejp_1118_; +} +else +{ +lean_object* v_reuseFailAlloc_1121_; +v_reuseFailAlloc_1121_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1121_, 0, v_a_1114_); +v___x_1119_ = v_reuseFailAlloc_1121_; +goto v_reusejp_1118_; +} +v_reusejp_1118_: +{ +lean_object* v___x_1120_; +v___x_1120_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1120_, 0, v___x_1119_); +return v___x_1120_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___boxed(lean_object* v_00_u03b1_1114_, lean_object* v_as_1115_, lean_object* v_sz_1116_, lean_object* v_i_1117_, lean_object* v_b_1118_, lean_object* v___y_1119_){ +} +else +{ +lean_object* v_a_1123_; lean_object* v___x_1124_; lean_object* v___x_1125_; size_t v_sz_1126_; size_t v___x_1127_; lean_object* v___x_1128_; lean_object* v___f_1129_; lean_object* v___f_1130_; lean_object* v___x_1131_; uint8_t v___x_1132_; lean_object* v___x_1133_; +v_a_1123_ = lean_ctor_get(v_x_1112_, 0); +lean_inc(v_a_1123_); +lean_dec_ref(v_x_1112_); +v___x_1124_ = lean_box(0); +v___x_1125_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg___closed__1)); +v_sz_1126_ = lean_array_size(v___x_1111_); +v___x_1127_ = ((size_t)0ULL); +lean_inc_ref(v___x_1111_); +v___x_1128_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v___x_1111_, v_sz_1126_, v___x_1127_, v___x_1125_); +v___f_1129_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__5___boxed), 5, 3); +lean_closure_set(v___f_1129_, 0, v___x_1111_); +lean_closure_set(v___f_1129_, 1, v_a_1123_); +lean_closure_set(v___f_1129_, 2, v___x_1124_); +v___f_1130_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__6___boxed), 3, 1); +lean_closure_set(v___f_1130_, 0, v___f_1129_); +v___x_1131_ = lean_unsigned_to_nat(0u); +v___x_1132_ = 0; +v___x_1133_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1131_, v___x_1132_, v___x_1128_, v___f_1130_); +return v___x_1133_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7___boxed(lean_object* v___x_1134_, lean_object* v_x_1135_, lean_object* v___y_1136_){ _start: { -size_t v_sz_boxed_1120_; size_t v_i_boxed_1121_; lean_object* v_res_1122_; -v_sz_boxed_1120_ = lean_unbox_usize(v_sz_1116_); -lean_dec(v_sz_1116_); -v_i_boxed_1121_ = lean_unbox_usize(v_i_1117_); -lean_dec(v_i_1117_); -v_res_1122_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3(v_00_u03b1_1114_, v_as_1115_, v_sz_boxed_1120_, v_i_boxed_1121_, v_b_1118_); -return v_res_1122_; +lean_object* v_res_1137_; +v_res_1137_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7(v___x_1134_, v_x_1135_); +return v_res_1137_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0(lean_object* v_x_1127_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8(lean_object* v_selectables_1138_, lean_object* v_x_1139_){ _start: { -if (lean_obj_tag(v_x_1127_) == 0) +if (lean_obj_tag(v_x_1139_) == 0) { -lean_object* v_a_1129_; lean_object* v___x_1131_; uint8_t v_isShared_1132_; uint8_t v_isSharedCheck_1137_; -v_a_1129_ = lean_ctor_get(v_x_1127_, 0); -v_isSharedCheck_1137_ = !lean_is_exclusive(v_x_1127_); -if (v_isSharedCheck_1137_ == 0) +lean_object* v_a_1141_; lean_object* v___x_1143_; uint8_t v_isShared_1144_; uint8_t v_isSharedCheck_1149_; +lean_dec_ref(v_selectables_1138_); +v_a_1141_ = lean_ctor_get(v_x_1139_, 0); +v_isSharedCheck_1149_ = !lean_is_exclusive(v_x_1139_); +if (v_isSharedCheck_1149_ == 0) { -v___x_1131_ = v_x_1127_; -v_isShared_1132_ = v_isSharedCheck_1137_; -goto v_resetjp_1130_; +v___x_1143_ = v_x_1139_; +v_isShared_1144_ = v_isSharedCheck_1149_; +goto v_resetjp_1142_; } else { -lean_inc(v_a_1129_); -lean_dec(v_x_1127_); -v___x_1131_ = lean_box(0); -v_isShared_1132_ = v_isSharedCheck_1137_; -goto v_resetjp_1130_; +lean_inc(v_a_1141_); +lean_dec(v_x_1139_); +v___x_1143_ = lean_box(0); +v_isShared_1144_ = v_isSharedCheck_1149_; +goto v_resetjp_1142_; } -v_resetjp_1130_: +v_resetjp_1142_: { -lean_object* v___x_1134_; -if (v_isShared_1132_ == 0) +lean_object* v___x_1146_; +if (v_isShared_1144_ == 0) { -v___x_1134_ = v___x_1131_; -goto v_reusejp_1133_; +v___x_1146_ = v___x_1143_; +goto v_reusejp_1145_; } else { -lean_object* v_reuseFailAlloc_1136_; -v_reuseFailAlloc_1136_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1136_, 0, v_a_1129_); -v___x_1134_ = v_reuseFailAlloc_1136_; -goto v_reusejp_1133_; +lean_object* v_reuseFailAlloc_1148_; +v_reuseFailAlloc_1148_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1148_, 0, v_a_1141_); +v___x_1146_ = v_reuseFailAlloc_1148_; +goto v_reusejp_1145_; } -v_reusejp_1133_: +v_reusejp_1145_: { -lean_object* v___x_1135_; -v___x_1135_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1135_, 0, v___x_1134_); -return v___x_1135_; +lean_object* v___x_1147_; +v___x_1147_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1147_, 0, v___x_1146_); +return v___x_1147_; } } } else { -lean_object* v_a_1138_; lean_object* v___x_1140_; uint8_t v_isShared_1141_; uint8_t v_isSharedCheck_1155_; -v_a_1138_ = lean_ctor_get(v_x_1127_, 0); -v_isSharedCheck_1155_ = !lean_is_exclusive(v_x_1127_); -if (v_isSharedCheck_1155_ == 0) +lean_object* v_a_1150_; lean_object* v___x_1152_; uint8_t v_isShared_1153_; uint8_t v_isSharedCheck_1167_; +v_a_1150_ = lean_ctor_get(v_x_1139_, 0); +v_isSharedCheck_1167_ = !lean_is_exclusive(v_x_1139_); +if (v_isSharedCheck_1167_ == 0) { -v___x_1140_ = v_x_1127_; -v_isShared_1141_ = v_isSharedCheck_1155_; -goto v_resetjp_1139_; +v___x_1152_ = v_x_1139_; +v_isShared_1153_ = v_isSharedCheck_1167_; +goto v_resetjp_1151_; } else { -lean_inc(v_a_1138_); -lean_dec(v_x_1127_); -v___x_1140_ = lean_box(0); -v_isShared_1141_ = v_isSharedCheck_1155_; -goto v_resetjp_1139_; +lean_inc(v_a_1150_); +lean_dec(v_x_1139_); +v___x_1152_ = lean_box(0); +v_isShared_1153_ = v_isSharedCheck_1167_; +goto v_resetjp_1151_; } -v_resetjp_1139_: +v_resetjp_1151_: { -lean_object* v_fst_1142_; -v_fst_1142_ = lean_ctor_get(v_a_1138_, 0); -lean_inc(v_fst_1142_); -lean_dec(v_a_1138_); -if (lean_obj_tag(v_fst_1142_) == 0) +lean_object* v___x_1154_; uint64_t v___x_1155_; lean_object* v___x_1156_; lean_object* v___x_1157_; lean_object* v___x_1158_; lean_object* v___f_1159_; lean_object* v___x_1161_; +v___x_1154_ = lean_io_promise_new(); +v___x_1155_ = l_ByteArray_toUInt64LE_x21(v_a_1150_); +lean_dec(v_a_1150_); +v___x_1156_ = lean_uint64_to_nat(v___x_1155_); +v___x_1157_ = l_mkStdGen(v___x_1156_); +lean_dec(v___x_1156_); +v___x_1158_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_1138_, v___x_1157_); +v___f_1159_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__7___boxed), 3, 1); +lean_closure_set(v___f_1159_, 0, v___x_1158_); +if (v_isShared_1153_ == 0) { -lean_object* v___x_1143_; -lean_del_object(v___x_1140_); -v___x_1143_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___closed__1)); -return v___x_1143_; +lean_ctor_set(v___x_1152_, 0, v___x_1154_); +v___x_1161_ = v___x_1152_; +goto v_reusejp_1160_; } else { -lean_object* v_val_1144_; lean_object* v___x_1146_; uint8_t v_isShared_1147_; uint8_t v_isSharedCheck_1154_; -v_val_1144_ = lean_ctor_get(v_fst_1142_, 0); -v_isSharedCheck_1154_ = !lean_is_exclusive(v_fst_1142_); -if (v_isSharedCheck_1154_ == 0) +lean_object* v_reuseFailAlloc_1166_; +v_reuseFailAlloc_1166_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1166_, 0, v___x_1154_); +v___x_1161_ = v_reuseFailAlloc_1166_; +goto v_reusejp_1160_; +} +v_reusejp_1160_: { -v___x_1146_ = v_fst_1142_; -v_isShared_1147_ = v_isSharedCheck_1154_; -goto v_resetjp_1145_; -} -else -{ -lean_inc(v_val_1144_); -lean_dec(v_fst_1142_); -v___x_1146_ = lean_box(0); -v_isShared_1147_ = v_isSharedCheck_1154_; -goto v_resetjp_1145_; -} -v_resetjp_1145_: -{ -lean_object* v___x_1149_; -if (v_isShared_1141_ == 0) -{ -lean_ctor_set(v___x_1140_, 0, v_val_1144_); -v___x_1149_ = v___x_1140_; -goto v_reusejp_1148_; -} -else -{ -lean_object* v_reuseFailAlloc_1153_; -v_reuseFailAlloc_1153_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1153_, 0, v_val_1144_); -v___x_1149_ = v_reuseFailAlloc_1153_; -goto v_reusejp_1148_; -} -v_reusejp_1148_: -{ -lean_object* v___x_1151_; -if (v_isShared_1147_ == 0) -{ -lean_ctor_set_tag(v___x_1146_, 0); -lean_ctor_set(v___x_1146_, 0, v___x_1149_); -v___x_1151_ = v___x_1146_; -goto v_reusejp_1150_; -} -else -{ -lean_object* v_reuseFailAlloc_1152_; -v_reuseFailAlloc_1152_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1152_, 0, v___x_1149_); -v___x_1151_ = v_reuseFailAlloc_1152_; -goto v_reusejp_1150_; -} -v_reusejp_1150_: -{ -return v___x_1151_; +lean_object* v___x_1162_; lean_object* v___x_1163_; uint8_t v___x_1164_; lean_object* v___x_1165_; +v___x_1162_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1162_, 0, v___x_1161_); +v___x_1163_ = lean_unsigned_to_nat(0u); +v___x_1164_ = 0; +v___x_1165_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1163_, v___x_1164_, v___x_1162_, v___f_1159_); +return v___x_1165_; } } } } } -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___boxed(lean_object* v_x_1156_, lean_object* v___y_1157_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8___boxed(lean_object* v_selectables_1168_, lean_object* v_x_1169_, lean_object* v___y_1170_){ _start: { -lean_object* v_res_1158_; -v_res_1158_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0(v_x_1156_); -return v_res_1158_; +lean_object* v_res_1171_; +v_res_1171_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8(v_selectables_1168_, v_x_1169_); +return v_res_1171_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1(lean_object* v_a_1159_, lean_object* v___x_1160_, uint8_t v___x_1161_, lean_object* v___f_1162_, lean_object* v___x_1163_, lean_object* v_x_1164_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9(lean_object* v___f_1172_, lean_object* v_____r_1173_){ _start: { -if (lean_obj_tag(v_x_1164_) == 0) +lean_object* v_val_1176_; size_t v___x_1181_; lean_object* v___x_1182_; +v___x_1181_ = ((size_t)8ULL); +v___x_1182_ = lean_io_get_random_bytes(v___x_1181_); +if (lean_obj_tag(v___x_1182_) == 0) { -lean_object* v_a_1166_; lean_object* v___x_1168_; uint8_t v_isShared_1169_; uint8_t v_isSharedCheck_1174_; -lean_dec_ref(v___x_1163_); -lean_dec_ref(v___f_1162_); -lean_dec(v___x_1160_); -lean_dec_ref(v_a_1159_); -v_a_1166_ = lean_ctor_get(v_x_1164_, 0); -v_isSharedCheck_1174_ = !lean_is_exclusive(v_x_1164_); -if (v_isSharedCheck_1174_ == 0) +lean_object* v_a_1183_; lean_object* v___x_1185_; uint8_t v_isShared_1186_; uint8_t v_isSharedCheck_1190_; +v_a_1183_ = lean_ctor_get(v___x_1182_, 0); +v_isSharedCheck_1190_ = !lean_is_exclusive(v___x_1182_); +if (v_isSharedCheck_1190_ == 0) { -v___x_1168_ = v_x_1164_; -v_isShared_1169_ = v_isSharedCheck_1174_; -goto v_resetjp_1167_; +v___x_1185_ = v___x_1182_; +v_isShared_1186_ = v_isSharedCheck_1190_; +goto v_resetjp_1184_; } else { -lean_inc(v_a_1166_); -lean_dec(v_x_1164_); -v___x_1168_ = lean_box(0); -v_isShared_1169_ = v_isSharedCheck_1174_; -goto v_resetjp_1167_; +lean_inc(v_a_1183_); +lean_dec(v___x_1182_); +v___x_1185_ = lean_box(0); +v_isShared_1186_ = v_isSharedCheck_1190_; +goto v_resetjp_1184_; } -v_resetjp_1167_: +v_resetjp_1184_: { -lean_object* v___x_1171_; -if (v_isShared_1169_ == 0) +lean_object* v___x_1188_; +if (v_isShared_1186_ == 0) { -v___x_1171_ = v___x_1168_; -goto v_reusejp_1170_; +lean_ctor_set_tag(v___x_1185_, 1); +v___x_1188_ = v___x_1185_; +goto v_reusejp_1187_; } else { -lean_object* v_reuseFailAlloc_1173_; -v_reuseFailAlloc_1173_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1173_, 0, v_a_1166_); -v___x_1171_ = v_reuseFailAlloc_1173_; -goto v_reusejp_1170_; +lean_object* v_reuseFailAlloc_1189_; +v_reuseFailAlloc_1189_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1189_, 0, v_a_1183_); +v___x_1188_ = v_reuseFailAlloc_1189_; +goto v_reusejp_1187_; } -v_reusejp_1170_: +v_reusejp_1187_: { -lean_object* v___x_1172_; -v___x_1172_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1172_, 0, v___x_1171_); -return v___x_1172_; +v_val_1176_ = v___x_1188_; +goto v___jp_1175_; } } } else { -lean_object* v_a_1175_; lean_object* v___x_1177_; uint8_t v_isShared_1178_; uint8_t v_isSharedCheck_1188_; -v_a_1175_ = lean_ctor_get(v_x_1164_, 0); -v_isSharedCheck_1188_ = !lean_is_exclusive(v_x_1164_); -if (v_isSharedCheck_1188_ == 0) +lean_object* v_a_1191_; lean_object* v___x_1193_; uint8_t v_isShared_1194_; uint8_t v_isSharedCheck_1198_; +v_a_1191_ = lean_ctor_get(v___x_1182_, 0); +v_isSharedCheck_1198_ = !lean_is_exclusive(v___x_1182_); +if (v_isSharedCheck_1198_ == 0) { -v___x_1177_ = v_x_1164_; -v_isShared_1178_ = v_isSharedCheck_1188_; -goto v_resetjp_1176_; +v___x_1193_ = v___x_1182_; +v_isShared_1194_ = v_isSharedCheck_1198_; +goto v_resetjp_1192_; } else { -lean_inc(v_a_1175_); -lean_dec(v_x_1164_); -v___x_1177_ = lean_box(0); -v_isShared_1178_ = v_isSharedCheck_1188_; -goto v_resetjp_1176_; +lean_inc(v_a_1191_); +lean_dec(v___x_1182_); +v___x_1193_ = lean_box(0); +v_isShared_1194_ = v_isSharedCheck_1198_; +goto v_resetjp_1192_; } -v_resetjp_1176_: +v_resetjp_1192_: { -if (lean_obj_tag(v_a_1175_) == 1) +lean_object* v___x_1196_; +if (v_isShared_1194_ == 0) { -lean_object* v_val_1179_; lean_object* v_cont_1180_; lean_object* v___x_1181_; lean_object* v___x_1182_; -lean_del_object(v___x_1177_); -lean_dec_ref(v___x_1163_); -v_val_1179_ = lean_ctor_get(v_a_1175_, 0); -lean_inc(v_val_1179_); -lean_dec_ref(v_a_1175_); -v_cont_1180_ = lean_ctor_get(v_a_1159_, 1); -lean_inc_ref(v_cont_1180_); -lean_dec_ref(v_a_1159_); -v___x_1181_ = lean_apply_2(v_cont_1180_, v_val_1179_, lean_box(0)); -v___x_1182_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1160_, v___x_1161_, v___x_1181_, v___f_1162_); -return v___x_1182_; +lean_ctor_set_tag(v___x_1193_, 0); +v___x_1196_ = v___x_1193_; +goto v_reusejp_1195_; } else { -lean_object* v___x_1183_; lean_object* v___x_1185_; -lean_dec(v_a_1175_); -lean_dec_ref(v___f_1162_); -lean_dec(v___x_1160_); -lean_dec_ref(v_a_1159_); -v___x_1183_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1183_, 0, v___x_1163_); -if (v_isShared_1178_ == 0) +lean_object* v_reuseFailAlloc_1197_; +v_reuseFailAlloc_1197_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1197_, 0, v_a_1191_); +v___x_1196_ = v_reuseFailAlloc_1197_; +goto v_reusejp_1195_; +} +v_reusejp_1195_: { -lean_ctor_set(v___x_1177_, 0, v___x_1183_); -v___x_1185_ = v___x_1177_; -goto v_reusejp_1184_; +v_val_1176_ = v___x_1196_; +goto v___jp_1175_; } -else +} +} +v___jp_1175_: { -lean_object* v_reuseFailAlloc_1187_; -v_reuseFailAlloc_1187_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1187_, 0, v___x_1183_); -v___x_1185_ = v_reuseFailAlloc_1187_; -goto v_reusejp_1184_; -} -v_reusejp_1184_: -{ -lean_object* v___x_1186_; -v___x_1186_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1186_, 0, v___x_1185_); -return v___x_1186_; +lean_object* v___x_1177_; lean_object* v___x_1178_; uint8_t v___x_1179_; lean_object* v___x_1180_; +v___x_1177_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1177_, 0, v_val_1176_); +v___x_1178_ = lean_unsigned_to_nat(0u); +v___x_1179_ = 0; +v___x_1180_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1178_, v___x_1179_, v___x_1177_, v___f_1172_); +return v___x_1180_; } } } -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1___boxed(lean_object* v_a_1189_, lean_object* v___x_1190_, lean_object* v___x_1191_, lean_object* v___f_1192_, lean_object* v___x_1193_, lean_object* v_x_1194_, lean_object* v___y_1195_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9___boxed(lean_object* v___f_1199_, lean_object* v_____r_1200_, lean_object* v___y_1201_){ _start: { -uint8_t v___x_2272__boxed_1196_; lean_object* v_res_1197_; -v___x_2272__boxed_1196_ = lean_unbox(v___x_1191_); -v_res_1197_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1(v_a_1189_, v___x_1190_, v___x_2272__boxed_1196_, v___f_1192_, v___x_1193_, v_x_1194_); -return v_res_1197_; +lean_object* v_res_1202_; +v_res_1202_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9(v___f_1199_, v_____r_1200_); +return v_res_1202_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0(lean_object* v___x_1198_, lean_object* v_x_1199_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10(lean_object* v___f_1203_, lean_object* v_x_1204_){ _start: { -if (lean_obj_tag(v_x_1199_) == 0) +if (lean_obj_tag(v_x_1204_) == 0) { -lean_object* v_a_1201_; lean_object* v___x_1203_; uint8_t v_isShared_1204_; uint8_t v_isSharedCheck_1209_; -v_a_1201_ = lean_ctor_get(v_x_1199_, 0); -v_isSharedCheck_1209_ = !lean_is_exclusive(v_x_1199_); -if (v_isSharedCheck_1209_ == 0) +lean_object* v_a_1206_; lean_object* v___x_1208_; uint8_t v_isShared_1209_; uint8_t v_isSharedCheck_1214_; +lean_dec_ref(v___f_1203_); +v_a_1206_ = lean_ctor_get(v_x_1204_, 0); +v_isSharedCheck_1214_ = !lean_is_exclusive(v_x_1204_); +if (v_isSharedCheck_1214_ == 0) { -v___x_1203_ = v_x_1199_; -v_isShared_1204_ = v_isSharedCheck_1209_; -goto v_resetjp_1202_; +v___x_1208_ = v_x_1204_; +v_isShared_1209_ = v_isSharedCheck_1214_; +goto v_resetjp_1207_; } else { -lean_inc(v_a_1201_); -lean_dec(v_x_1199_); -v___x_1203_ = lean_box(0); -v_isShared_1204_ = v_isSharedCheck_1209_; -goto v_resetjp_1202_; +lean_inc(v_a_1206_); +lean_dec(v_x_1204_); +v___x_1208_ = lean_box(0); +v_isShared_1209_ = v_isSharedCheck_1214_; +goto v_resetjp_1207_; } -v_resetjp_1202_: +v_resetjp_1207_: { -lean_object* v___x_1206_; -if (v_isShared_1204_ == 0) +lean_object* v___x_1211_; +if (v_isShared_1209_ == 0) { -v___x_1206_ = v___x_1203_; -goto v_reusejp_1205_; +v___x_1211_ = v___x_1208_; +goto v_reusejp_1210_; } else { -lean_object* v_reuseFailAlloc_1208_; -v_reuseFailAlloc_1208_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1208_, 0, v_a_1201_); -v___x_1206_ = v_reuseFailAlloc_1208_; -goto v_reusejp_1205_; +lean_object* v_reuseFailAlloc_1213_; +v_reuseFailAlloc_1213_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1213_, 0, v_a_1206_); +v___x_1211_ = v_reuseFailAlloc_1213_; +goto v_reusejp_1210_; } -v_reusejp_1205_: +v_reusejp_1210_: { -lean_object* v___x_1207_; -v___x_1207_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1207_, 0, v___x_1206_); -return v___x_1207_; +lean_object* v___x_1212_; +v___x_1212_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1212_, 0, v___x_1211_); +return v___x_1212_; } } } else { -lean_object* v_a_1210_; lean_object* v___x_1212_; uint8_t v_isShared_1213_; uint8_t v_isSharedCheck_1222_; -v_a_1210_ = lean_ctor_get(v_x_1199_, 0); -v_isSharedCheck_1222_ = !lean_is_exclusive(v_x_1199_); -if (v_isSharedCheck_1222_ == 0) -{ -v___x_1212_ = v_x_1199_; -v_isShared_1213_ = v_isSharedCheck_1222_; -goto v_resetjp_1211_; -} -else -{ -lean_inc(v_a_1210_); -lean_dec(v_x_1199_); -v___x_1212_ = lean_box(0); -v_isShared_1213_ = v_isSharedCheck_1222_; -goto v_resetjp_1211_; -} -v_resetjp_1211_: -{ -lean_object* v___x_1214_; lean_object* v___x_1215_; lean_object* v___x_1216_; lean_object* v___x_1217_; lean_object* v___x_1219_; -v___x_1214_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1214_, 0, v_a_1210_); -v___x_1215_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1215_, 0, v___x_1214_); -v___x_1216_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1216_, 0, v___x_1215_); -lean_ctor_set(v___x_1216_, 1, v___x_1198_); -v___x_1217_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1217_, 0, v___x_1216_); -if (v_isShared_1213_ == 0) -{ -lean_ctor_set(v___x_1212_, 0, v___x_1217_); -v___x_1219_ = v___x_1212_; -goto v_reusejp_1218_; -} -else -{ -lean_object* v_reuseFailAlloc_1221_; -v_reuseFailAlloc_1221_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1221_, 0, v___x_1217_); -v___x_1219_ = v_reuseFailAlloc_1221_; -goto v_reusejp_1218_; -} -v_reusejp_1218_: -{ -lean_object* v___x_1220_; -v___x_1220_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1220_, 0, v___x_1219_); -return v___x_1220_; +lean_object* v_a_1215_; lean_object* v___x_1216_; +v_a_1215_ = lean_ctor_get(v_x_1204_, 0); +lean_inc(v_a_1215_); +lean_dec_ref(v_x_1204_); +v___x_1216_ = lean_apply_2(v___f_1203_, v_a_1215_, lean_box(0)); +return v___x_1216_; } } } -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0___boxed(lean_object* v___x_1223_, lean_object* v_x_1224_, lean_object* v___y_1225_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10___boxed(lean_object* v___f_1217_, lean_object* v_x_1218_, lean_object* v___y_1219_){ _start: { -lean_object* v_res_1226_; -v_res_1226_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0(v___x_1223_, v_x_1224_); -return v_res_1226_; +lean_object* v_res_1220_; +v_res_1220_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10(v___f_1217_, v_x_1218_); +return v_res_1220_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2___boxed(lean_object* v_i_1232_, lean_object* v___x_1233_, lean_object* v_as_1234_, lean_object* v_sz_1235_, lean_object* v_x_1236_, lean_object* v___y_1237_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_object* v_selectables_1228_){ _start: { -size_t v_i_boxed_1238_; size_t v_sz_boxed_1239_; lean_object* v_res_1240_; -v_i_boxed_1238_ = lean_unbox_usize(v_i_1232_); -lean_dec(v_i_1232_); -v_sz_boxed_1239_ = lean_unbox_usize(v_sz_1235_); -lean_dec(v_sz_1235_); -v_res_1240_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2(v_i_boxed_1238_, v___x_1233_, v_as_1234_, v_sz_boxed_1239_, v_x_1236_); -return v_res_1240_; +lean_object* v___f_1230_; lean_object* v___f_1231_; lean_object* v___x_1232_; lean_object* v___x_1233_; uint8_t v___x_1234_; +lean_inc_ref(v_selectables_1228_); +v___f_1230_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__8___boxed), 3, 1); +lean_closure_set(v___f_1230_, 0, v_selectables_1228_); +lean_inc_ref(v___f_1230_); +v___f_1231_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9___boxed), 3, 1); +lean_closure_set(v___f_1231_, 0, v___f_1230_); +v___x_1232_ = lean_array_get_size(v_selectables_1228_); +lean_dec_ref(v_selectables_1228_); +v___x_1233_ = lean_unsigned_to_nat(0u); +v___x_1234_ = lean_nat_dec_eq(v___x_1232_, v___x_1233_); +if (v___x_1234_ == 0) +{ +lean_object* v___x_1235_; lean_object* v___x_1236_; +lean_dec_ref(v___f_1231_); +v___x_1235_ = lean_box(0); +v___x_1236_ = l_Std_Internal_IO_Async_Selectable_one___redArg___lam__9(v___f_1230_, v___x_1235_); +return v___x_1236_; +} +else +{ +lean_object* v___f_1237_; lean_object* v___x_1238_; uint8_t v___x_1239_; lean_object* v___x_1240_; +lean_dec_ref(v___f_1230_); +v___f_1237_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_one___redArg___lam__10___boxed), 3, 1); +lean_closure_set(v___f_1237_, 0, v___f_1231_); +v___x_1238_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___closed__3)); +v___x_1239_ = 0; +v___x_1240_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1233_, v___x_1239_, v___x_1238_, v___f_1237_); +return v___x_1240_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(lean_object* v___x_1241_, lean_object* v_as_1242_, size_t v_sz_1243_, size_t v_i_1244_, lean_object* v_b_1245_){ +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg___boxed(lean_object* v_selectables_1241_, lean_object* v_a_1242_){ _start: { -uint8_t v___x_1247_; -v___x_1247_ = lean_usize_dec_lt(v_i_1244_, v_sz_1243_); -if (v___x_1247_ == 0) -{ -lean_object* v___x_1248_; lean_object* v___x_1249_; -lean_dec_ref(v_as_1242_); -lean_dec(v___x_1241_); -v___x_1248_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1248_, 0, v_b_1245_); -v___x_1249_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1249_, 0, v___x_1248_); -return v___x_1249_; -} -else -{ -lean_object* v_a_1250_; lean_object* v_selector_1251_; lean_object* v_tryFn_1252_; lean_object* v___x_1253_; lean_object* v___x_1254_; uint8_t v___x_1255_; lean_object* v___f_1256_; lean_object* v___x_1257_; lean_object* v___x_1258_; lean_object* v___f_1259_; lean_object* v___x_1260_; lean_object* v___x_1261_; lean_object* v___x_1262_; lean_object* v___f_1263_; uint8_t v___x_1264_; lean_object* v___x_1265_; -lean_dec_ref(v_b_1245_); -v_a_1250_ = lean_array_uget_borrowed(v_as_1242_, v_i_1244_); -v_selector_1251_ = lean_ctor_get(v_a_1250_, 0); -v_tryFn_1252_ = lean_ctor_get(v_selector_1251_, 0); -lean_inc_ref(v_tryFn_1252_); -v___x_1253_ = lean_apply_1(v_tryFn_1252_, lean_box(0)); -v___x_1254_ = lean_unsigned_to_nat(0u); -v___x_1255_ = lean_nat_dec_eq(v___x_1241_, v___x_1254_); -v___f_1256_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__0)); -v___x_1257_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); -v___x_1258_ = lean_box(v___x_1255_); -lean_inc(v_a_1250_); -v___f_1259_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1___boxed), 7, 5); -lean_closure_set(v___f_1259_, 0, v_a_1250_); -lean_closure_set(v___f_1259_, 1, v___x_1254_); -lean_closure_set(v___f_1259_, 2, v___x_1258_); -lean_closure_set(v___f_1259_, 3, v___f_1256_); -lean_closure_set(v___f_1259_, 4, v___x_1257_); -v___x_1260_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1254_, v___x_1255_, v___x_1253_, v___f_1259_); -v___x_1261_ = lean_box_usize(v_i_1244_); -v___x_1262_ = lean_box_usize(v_sz_1243_); -v___f_1263_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2___boxed), 6, 4); -lean_closure_set(v___f_1263_, 0, v___x_1261_); -lean_closure_set(v___f_1263_, 1, v___x_1241_); -lean_closure_set(v___f_1263_, 2, v_as_1242_); -lean_closure_set(v___f_1263_, 3, v___x_1262_); -v___x_1264_ = 0; -v___x_1265_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1254_, v___x_1264_, v___x_1260_, v___f_1263_); -return v___x_1265_; +lean_object* v_res_1243_; +v_res_1243_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_1241_); +return v_res_1243_; } } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2(size_t v_i_1266_, lean_object* v___x_1267_, lean_object* v_as_1268_, size_t v_sz_1269_, lean_object* v_x_1270_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one(lean_object* v_00_u03b1_1244_, lean_object* v_selectables_1245_){ _start: { -if (lean_obj_tag(v_x_1270_) == 0) -{ -lean_object* v_a_1272_; lean_object* v___x_1274_; uint8_t v_isShared_1275_; uint8_t v_isSharedCheck_1280_; -lean_dec_ref(v_as_1268_); -lean_dec(v___x_1267_); -v_a_1272_ = lean_ctor_get(v_x_1270_, 0); -v_isSharedCheck_1280_ = !lean_is_exclusive(v_x_1270_); -if (v_isSharedCheck_1280_ == 0) -{ -v___x_1274_ = v_x_1270_; -v_isShared_1275_ = v_isSharedCheck_1280_; -goto v_resetjp_1273_; -} -else -{ -lean_inc(v_a_1272_); -lean_dec(v_x_1270_); -v___x_1274_ = lean_box(0); -v_isShared_1275_ = v_isSharedCheck_1280_; -goto v_resetjp_1273_; -} -v_resetjp_1273_: -{ -lean_object* v___x_1277_; -if (v_isShared_1275_ == 0) -{ -v___x_1277_ = v___x_1274_; -goto v_reusejp_1276_; -} -else -{ -lean_object* v_reuseFailAlloc_1279_; -v_reuseFailAlloc_1279_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1279_, 0, v_a_1272_); -v___x_1277_ = v_reuseFailAlloc_1279_; -goto v_reusejp_1276_; -} -v_reusejp_1276_: -{ -lean_object* v___x_1278_; -v___x_1278_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1278_, 0, v___x_1277_); -return v___x_1278_; +lean_object* v___x_1247_; +v___x_1247_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_1245_); +return v___x_1247_; } } -} -else -{ -lean_object* v_a_1281_; lean_object* v___x_1283_; uint8_t v_isShared_1284_; uint8_t v_isSharedCheck_1300_; -v_a_1281_ = lean_ctor_get(v_x_1270_, 0); -v_isSharedCheck_1300_ = !lean_is_exclusive(v_x_1270_); -if (v_isSharedCheck_1300_ == 0) -{ -v___x_1283_ = v_x_1270_; -v_isShared_1284_ = v_isSharedCheck_1300_; -goto v_resetjp_1282_; -} -else -{ -lean_inc(v_a_1281_); -lean_dec(v_x_1270_); -v___x_1283_ = lean_box(0); -v_isShared_1284_ = v_isSharedCheck_1300_; -goto v_resetjp_1282_; -} -v_resetjp_1282_: -{ -if (lean_obj_tag(v_a_1281_) == 0) -{ -lean_object* v_a_1285_; lean_object* v___x_1287_; uint8_t v_isShared_1288_; uint8_t v_isSharedCheck_1295_; -lean_dec_ref(v_as_1268_); -lean_dec(v___x_1267_); -v_a_1285_ = lean_ctor_get(v_a_1281_, 0); -v_isSharedCheck_1295_ = !lean_is_exclusive(v_a_1281_); -if (v_isSharedCheck_1295_ == 0) -{ -v___x_1287_ = v_a_1281_; -v_isShared_1288_ = v_isSharedCheck_1295_; -goto v_resetjp_1286_; -} -else -{ -lean_inc(v_a_1285_); -lean_dec(v_a_1281_); -v___x_1287_ = lean_box(0); -v_isShared_1288_ = v_isSharedCheck_1295_; -goto v_resetjp_1286_; -} -v_resetjp_1286_: -{ -lean_object* v___x_1290_; -if (v_isShared_1284_ == 0) -{ -lean_ctor_set(v___x_1283_, 0, v_a_1285_); -v___x_1290_ = v___x_1283_; -goto v_reusejp_1289_; -} -else -{ -lean_object* v_reuseFailAlloc_1294_; -v_reuseFailAlloc_1294_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1294_, 0, v_a_1285_); -v___x_1290_ = v_reuseFailAlloc_1294_; -goto v_reusejp_1289_; -} -v_reusejp_1289_: -{ -lean_object* v___x_1292_; -if (v_isShared_1288_ == 0) -{ -lean_ctor_set(v___x_1287_, 0, v___x_1290_); -v___x_1292_ = v___x_1287_; -goto v_reusejp_1291_; -} -else -{ -lean_object* v_reuseFailAlloc_1293_; -v_reuseFailAlloc_1293_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1293_, 0, v___x_1290_); -v___x_1292_ = v_reuseFailAlloc_1293_; -goto v_reusejp_1291_; -} -v_reusejp_1291_: -{ -return v___x_1292_; -} -} -} -} -else -{ -lean_object* v_a_1296_; size_t v___x_1297_; size_t v___x_1298_; lean_object* v___x_1299_; -lean_del_object(v___x_1283_); -v_a_1296_ = lean_ctor_get(v_a_1281_, 0); -lean_inc(v_a_1296_); -lean_dec_ref(v_a_1281_); -v___x_1297_ = ((size_t)1ULL); -v___x_1298_ = lean_usize_add(v_i_1266_, v___x_1297_); -v___x_1299_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1267_, v_as_1268_, v_sz_1269_, v___x_1298_, v_a_1296_); -return v___x_1299_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___boxed(lean_object* v___x_1301_, lean_object* v_as_1302_, lean_object* v_sz_1303_, lean_object* v_i_1304_, lean_object* v_b_1305_, lean_object* v___y_1306_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_one___boxed(lean_object* v_00_u03b1_1248_, lean_object* v_selectables_1249_, lean_object* v_a_1250_){ _start: { -size_t v_sz_boxed_1307_; size_t v_i_boxed_1308_; lean_object* v_res_1309_; -v_sz_boxed_1307_ = lean_unbox_usize(v_sz_1303_); -lean_dec(v_sz_1303_); -v_i_boxed_1308_ = lean_unbox_usize(v_i_1304_); -lean_dec(v_i_1304_); -v_res_1309_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1301_, v_as_1302_, v_sz_boxed_1307_, v_i_boxed_1308_, v_b_1305_); -return v_res_1309_; +lean_object* v_res_1251_; +v_res_1251_ = l_Std_Internal_IO_Async_Selectable_one(v_00_u03b1_1248_, v_selectables_1249_); +return v_res_1251_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1(lean_object* v_selectables_1310_, lean_object* v___x_1311_, lean_object* v___x_1312_, uint8_t v___x_1313_, lean_object* v___f_1314_, lean_object* v_x_1315_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(lean_object* v_00_u03b1_1252_, uint8_t v_a_1253_, lean_object* v_as_1254_, size_t v_sz_1255_, size_t v_i_1256_, lean_object* v_b_1257_){ +_start: +{ +lean_object* v___x_1259_; +v___x_1259_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg(v_a_1253_, v_as_1254_, v_sz_1255_, v_i_1256_, v_b_1257_); +return v___x_1259_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___boxed(lean_object* v_00_u03b1_1260_, lean_object* v_a_1261_, lean_object* v_as_1262_, lean_object* v_sz_1263_, lean_object* v_i_1264_, lean_object* v_b_1265_, lean_object* v___y_1266_){ +_start: +{ +uint8_t v_a_11927__boxed_1267_; size_t v_sz_boxed_1268_; size_t v_i_boxed_1269_; lean_object* v_res_1270_; +v_a_11927__boxed_1267_ = lean_unbox(v_a_1261_); +v_sz_boxed_1268_ = lean_unbox_usize(v_sz_1263_); +lean_dec(v_sz_1263_); +v_i_boxed_1269_ = lean_unbox_usize(v_i_1264_); +lean_dec(v_i_1264_); +v_res_1270_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0(v_00_u03b1_1260_, v_a_11927__boxed_1267_, v_as_1262_, v_sz_boxed_1268_, v_i_boxed_1269_, v_b_1265_); +return v_res_1270_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(lean_object* v_00_u03b1_1271_, lean_object* v_a_1272_, lean_object* v___x_1273_, lean_object* v_a_1274_, lean_object* v_a_1275_, lean_object* v_as_1276_, size_t v_sz_1277_, size_t v_i_1278_, lean_object* v_b_1279_){ +_start: +{ +lean_object* v___x_1281_; +v___x_1281_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___redArg(v_a_1272_, v___x_1273_, v_a_1274_, v_a_1275_, v_as_1276_, v_sz_1277_, v_i_1278_, v_b_1279_); +return v___x_1281_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2___boxed(lean_object* v_00_u03b1_1282_, lean_object* v_a_1283_, lean_object* v___x_1284_, lean_object* v_a_1285_, lean_object* v_a_1286_, lean_object* v_as_1287_, lean_object* v_sz_1288_, lean_object* v_i_1289_, lean_object* v_b_1290_, lean_object* v___y_1291_){ +_start: +{ +size_t v_sz_boxed_1292_; size_t v_i_boxed_1293_; lean_object* v_res_1294_; +v_sz_boxed_1292_ = lean_unbox_usize(v_sz_1288_); +lean_dec(v_sz_1288_); +v_i_boxed_1293_ = lean_unbox_usize(v_i_1289_); +lean_dec(v_i_1289_); +v_res_1294_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__2(v_00_u03b1_1282_, v_a_1283_, v___x_1284_, v_a_1285_, v_a_1286_, v_as_1287_, v_sz_boxed_1292_, v_i_boxed_1293_, v_b_1290_); +return v_res_1294_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3(lean_object* v_00_u03b1_1295_, lean_object* v_as_1296_, size_t v_sz_1297_, size_t v_i_1298_, lean_object* v_b_1299_){ +_start: +{ +lean_object* v___x_1301_; +v___x_1301_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___redArg(v_as_1296_, v_sz_1297_, v_i_1298_, v_b_1299_); +return v___x_1301_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3___boxed(lean_object* v_00_u03b1_1302_, lean_object* v_as_1303_, lean_object* v_sz_1304_, lean_object* v_i_1305_, lean_object* v_b_1306_, lean_object* v___y_1307_){ +_start: +{ +size_t v_sz_boxed_1308_; size_t v_i_boxed_1309_; lean_object* v_res_1310_; +v_sz_boxed_1308_ = lean_unbox_usize(v_sz_1304_); +lean_dec(v_sz_1304_); +v_i_boxed_1309_ = lean_unbox_usize(v_i_1305_); +lean_dec(v_i_1305_); +v_res_1310_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__3(v_00_u03b1_1302_, v_as_1303_, v_sz_boxed_1308_, v_i_boxed_1309_, v_b_1306_); +return v_res_1310_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0(lean_object* v_x_1315_){ _start: { if (lean_obj_tag(v_x_1315_) == 0) { lean_object* v_a_1317_; lean_object* v___x_1319_; uint8_t v_isShared_1320_; uint8_t v_isSharedCheck_1325_; -lean_dec_ref(v___f_1314_); -lean_dec(v___x_1312_); -lean_dec(v___x_1311_); -lean_dec_ref(v_selectables_1310_); v_a_1317_ = lean_ctor_get(v_x_1315_, 0); v_isSharedCheck_1325_ = !lean_is_exclusive(v_x_1315_); if (v_isSharedCheck_1325_ == 0) @@ -4203,1654 +4158,2484 @@ return v___x_1323_; } else { -lean_object* v_a_1326_; uint64_t v___x_1327_; lean_object* v___x_1328_; lean_object* v___x_1329_; lean_object* v___x_1330_; lean_object* v___x_1331_; size_t v_sz_1332_; size_t v___x_1333_; lean_object* v___x_1334_; lean_object* v___x_1335_; +lean_object* v_a_1326_; lean_object* v___x_1328_; uint8_t v_isShared_1329_; uint8_t v_isSharedCheck_1343_; v_a_1326_ = lean_ctor_get(v_x_1315_, 0); +v_isSharedCheck_1343_ = !lean_is_exclusive(v_x_1315_); +if (v_isSharedCheck_1343_ == 0) +{ +v___x_1328_ = v_x_1315_; +v_isShared_1329_ = v_isSharedCheck_1343_; +goto v_resetjp_1327_; +} +else +{ lean_inc(v_a_1326_); -lean_dec_ref(v_x_1315_); -v___x_1327_ = l_ByteArray_toUInt64LE_x21(v_a_1326_); +lean_dec(v_x_1315_); +v___x_1328_ = lean_box(0); +v_isShared_1329_ = v_isSharedCheck_1343_; +goto v_resetjp_1327_; +} +v_resetjp_1327_: +{ +lean_object* v_fst_1330_; +v_fst_1330_ = lean_ctor_get(v_a_1326_, 0); +lean_inc(v_fst_1330_); lean_dec(v_a_1326_); -v___x_1328_ = lean_uint64_to_nat(v___x_1327_); -v___x_1329_ = l_mkStdGen(v___x_1328_); -lean_dec(v___x_1328_); -v___x_1330_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_1310_, v___x_1329_); -v___x_1331_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); -v_sz_1332_ = lean_array_size(v___x_1330_); -v___x_1333_ = ((size_t)0ULL); -v___x_1334_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1311_, v___x_1330_, v_sz_1332_, v___x_1333_, v___x_1331_); -v___x_1335_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1312_, v___x_1313_, v___x_1334_, v___f_1314_); -return v___x_1335_; +if (lean_obj_tag(v_fst_1330_) == 0) +{ +lean_object* v___x_1331_; +lean_del_object(v___x_1328_); +v___x_1331_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___closed__1)); +return v___x_1331_; +} +else +{ +lean_object* v_val_1332_; lean_object* v___x_1334_; uint8_t v_isShared_1335_; uint8_t v_isSharedCheck_1342_; +v_val_1332_ = lean_ctor_get(v_fst_1330_, 0); +v_isSharedCheck_1342_ = !lean_is_exclusive(v_fst_1330_); +if (v_isSharedCheck_1342_ == 0) +{ +v___x_1334_ = v_fst_1330_; +v_isShared_1335_ = v_isSharedCheck_1342_; +goto v_resetjp_1333_; +} +else +{ +lean_inc(v_val_1332_); +lean_dec(v_fst_1330_); +v___x_1334_ = lean_box(0); +v_isShared_1335_ = v_isSharedCheck_1342_; +goto v_resetjp_1333_; +} +v_resetjp_1333_: +{ +lean_object* v___x_1337_; +if (v_isShared_1329_ == 0) +{ +lean_ctor_set(v___x_1328_, 0, v_val_1332_); +v___x_1337_ = v___x_1328_; +goto v_reusejp_1336_; +} +else +{ +lean_object* v_reuseFailAlloc_1341_; +v_reuseFailAlloc_1341_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1341_, 0, v_val_1332_); +v___x_1337_ = v_reuseFailAlloc_1341_; +goto v_reusejp_1336_; +} +v_reusejp_1336_: +{ +lean_object* v___x_1339_; +if (v_isShared_1335_ == 0) +{ +lean_ctor_set_tag(v___x_1334_, 0); +lean_ctor_set(v___x_1334_, 0, v___x_1337_); +v___x_1339_ = v___x_1334_; +goto v_reusejp_1338_; +} +else +{ +lean_object* v_reuseFailAlloc_1340_; +v_reuseFailAlloc_1340_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1340_, 0, v___x_1337_); +v___x_1339_ = v_reuseFailAlloc_1340_; +goto v_reusejp_1338_; +} +v_reusejp_1338_: +{ +return v___x_1339_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1___boxed(lean_object* v_selectables_1336_, lean_object* v___x_1337_, lean_object* v___x_1338_, lean_object* v___x_1339_, lean_object* v___f_1340_, lean_object* v_x_1341_, lean_object* v___y_1342_){ +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___boxed(lean_object* v_x_1344_, lean_object* v___y_1345_){ _start: { -uint8_t v___x_2511__boxed_1343_; lean_object* v_res_1344_; -v___x_2511__boxed_1343_ = lean_unbox(v___x_1339_); -v_res_1344_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1(v_selectables_1336_, v___x_1337_, v___x_1338_, v___x_2511__boxed_1343_, v___f_1340_, v_x_1341_); -return v_res_1344_; +lean_object* v_res_1346_; +v_res_1346_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0(v_x_1344_); +return v_res_1346_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg(lean_object* v_selectables_1346_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1(lean_object* v_a_1347_, lean_object* v___x_1348_, uint8_t v___x_1349_, lean_object* v___f_1350_, lean_object* v___x_1351_, lean_object* v_x_1352_){ _start: { -lean_object* v___x_1348_; lean_object* v___x_1349_; uint8_t v___x_1350_; -v___x_1348_ = lean_array_get_size(v_selectables_1346_); -v___x_1349_ = lean_unsigned_to_nat(0u); -v___x_1350_ = lean_nat_dec_eq(v___x_1348_, v___x_1349_); -if (v___x_1350_ == 0) +if (lean_obj_tag(v_x_1352_) == 0) { -lean_object* v___f_1351_; lean_object* v___x_1352_; lean_object* v___f_1353_; lean_object* v_val_1355_; size_t v___x_1358_; lean_object* v___x_1359_; -v___f_1351_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___closed__0)); -v___x_1352_ = lean_box(v___x_1350_); -v___f_1353_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1___boxed), 7, 5); -lean_closure_set(v___f_1353_, 0, v_selectables_1346_); -lean_closure_set(v___f_1353_, 1, v___x_1348_); -lean_closure_set(v___f_1353_, 2, v___x_1349_); -lean_closure_set(v___f_1353_, 3, v___x_1352_); -lean_closure_set(v___f_1353_, 4, v___f_1351_); -v___x_1358_ = ((size_t)8ULL); -v___x_1359_ = lean_io_get_random_bytes(v___x_1358_); -if (lean_obj_tag(v___x_1359_) == 0) +lean_object* v_a_1354_; lean_object* v___x_1356_; uint8_t v_isShared_1357_; uint8_t v_isSharedCheck_1362_; +lean_dec_ref(v___x_1351_); +lean_dec_ref(v___f_1350_); +lean_dec(v___x_1348_); +lean_dec_ref(v_a_1347_); +v_a_1354_ = lean_ctor_get(v_x_1352_, 0); +v_isSharedCheck_1362_ = !lean_is_exclusive(v_x_1352_); +if (v_isSharedCheck_1362_ == 0) { -lean_object* v_a_1360_; lean_object* v___x_1362_; uint8_t v_isShared_1363_; uint8_t v_isSharedCheck_1367_; -v_a_1360_ = lean_ctor_get(v___x_1359_, 0); -v_isSharedCheck_1367_ = !lean_is_exclusive(v___x_1359_); -if (v_isSharedCheck_1367_ == 0) -{ -v___x_1362_ = v___x_1359_; -v_isShared_1363_ = v_isSharedCheck_1367_; -goto v_resetjp_1361_; +v___x_1356_ = v_x_1352_; +v_isShared_1357_ = v_isSharedCheck_1362_; +goto v_resetjp_1355_; } else { -lean_inc(v_a_1360_); -lean_dec(v___x_1359_); -v___x_1362_ = lean_box(0); -v_isShared_1363_ = v_isSharedCheck_1367_; -goto v_resetjp_1361_; +lean_inc(v_a_1354_); +lean_dec(v_x_1352_); +v___x_1356_ = lean_box(0); +v_isShared_1357_ = v_isSharedCheck_1362_; +goto v_resetjp_1355_; } -v_resetjp_1361_: +v_resetjp_1355_: { -lean_object* v___x_1365_; -if (v_isShared_1363_ == 0) +lean_object* v___x_1359_; +if (v_isShared_1357_ == 0) { -lean_ctor_set_tag(v___x_1362_, 1); -v___x_1365_ = v___x_1362_; -goto v_reusejp_1364_; +v___x_1359_ = v___x_1356_; +goto v_reusejp_1358_; } else { -lean_object* v_reuseFailAlloc_1366_; -v_reuseFailAlloc_1366_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1366_, 0, v_a_1360_); -v___x_1365_ = v_reuseFailAlloc_1366_; -goto v_reusejp_1364_; +lean_object* v_reuseFailAlloc_1361_; +v_reuseFailAlloc_1361_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1361_, 0, v_a_1354_); +v___x_1359_ = v_reuseFailAlloc_1361_; +goto v_reusejp_1358_; } -v_reusejp_1364_: +v_reusejp_1358_: { -v_val_1355_ = v___x_1365_; -goto v___jp_1354_; +lean_object* v___x_1360_; +v___x_1360_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1360_, 0, v___x_1359_); +return v___x_1360_; } } } else { -lean_object* v_a_1368_; lean_object* v___x_1370_; uint8_t v_isShared_1371_; uint8_t v_isSharedCheck_1375_; -v_a_1368_ = lean_ctor_get(v___x_1359_, 0); -v_isSharedCheck_1375_ = !lean_is_exclusive(v___x_1359_); -if (v_isSharedCheck_1375_ == 0) +lean_object* v_a_1363_; lean_object* v___x_1365_; uint8_t v_isShared_1366_; uint8_t v_isSharedCheck_1376_; +v_a_1363_ = lean_ctor_get(v_x_1352_, 0); +v_isSharedCheck_1376_ = !lean_is_exclusive(v_x_1352_); +if (v_isSharedCheck_1376_ == 0) { -v___x_1370_ = v___x_1359_; -v_isShared_1371_ = v_isSharedCheck_1375_; -goto v_resetjp_1369_; +v___x_1365_ = v_x_1352_; +v_isShared_1366_ = v_isSharedCheck_1376_; +goto v_resetjp_1364_; } else { -lean_inc(v_a_1368_); -lean_dec(v___x_1359_); -v___x_1370_ = lean_box(0); -v_isShared_1371_ = v_isSharedCheck_1375_; -goto v_resetjp_1369_; +lean_inc(v_a_1363_); +lean_dec(v_x_1352_); +v___x_1365_ = lean_box(0); +v_isShared_1366_ = v_isSharedCheck_1376_; +goto v_resetjp_1364_; } -v_resetjp_1369_: +v_resetjp_1364_: { -lean_object* v___x_1373_; -if (v_isShared_1371_ == 0) +if (lean_obj_tag(v_a_1363_) == 1) { -lean_ctor_set_tag(v___x_1370_, 0); -v___x_1373_ = v___x_1370_; +lean_object* v_val_1367_; lean_object* v_cont_1368_; lean_object* v___x_1369_; lean_object* v___x_1370_; +lean_del_object(v___x_1365_); +lean_dec_ref(v___x_1351_); +v_val_1367_ = lean_ctor_get(v_a_1363_, 0); +lean_inc(v_val_1367_); +lean_dec_ref(v_a_1363_); +v_cont_1368_ = lean_ctor_get(v_a_1347_, 1); +lean_inc_ref(v_cont_1368_); +lean_dec_ref(v_a_1347_); +v___x_1369_ = lean_apply_2(v_cont_1368_, v_val_1367_, lean_box(0)); +v___x_1370_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1348_, v___x_1349_, v___x_1369_, v___f_1350_); +return v___x_1370_; +} +else +{ +lean_object* v___x_1371_; lean_object* v___x_1373_; +lean_dec(v_a_1363_); +lean_dec_ref(v___f_1350_); +lean_dec(v___x_1348_); +lean_dec_ref(v_a_1347_); +v___x_1371_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1371_, 0, v___x_1351_); +if (v_isShared_1366_ == 0) +{ +lean_ctor_set(v___x_1365_, 0, v___x_1371_); +v___x_1373_ = v___x_1365_; goto v_reusejp_1372_; } else { -lean_object* v_reuseFailAlloc_1374_; -v_reuseFailAlloc_1374_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1374_, 0, v_a_1368_); -v___x_1373_ = v_reuseFailAlloc_1374_; +lean_object* v_reuseFailAlloc_1375_; +v_reuseFailAlloc_1375_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1375_, 0, v___x_1371_); +v___x_1373_ = v_reuseFailAlloc_1375_; goto v_reusejp_1372_; } v_reusejp_1372_: { -v_val_1355_ = v___x_1373_; -goto v___jp_1354_; +lean_object* v___x_1374_; +v___x_1374_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1374_, 0, v___x_1373_); +return v___x_1374_; } } } -v___jp_1354_: +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1___boxed(lean_object* v_a_1377_, lean_object* v___x_1378_, lean_object* v___x_1379_, lean_object* v___f_1380_, lean_object* v___x_1381_, lean_object* v_x_1382_, lean_object* v___y_1383_){ +_start: { -lean_object* v___x_1356_; lean_object* v___x_1357_; -v___x_1356_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1356_, 0, v_val_1355_); -v___x_1357_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1349_, v___x_1350_, v___x_1356_, v___f_1353_); -return v___x_1357_; +uint8_t v___x_2272__boxed_1384_; lean_object* v_res_1385_; +v___x_2272__boxed_1384_ = lean_unbox(v___x_1379_); +v_res_1385_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1(v_a_1377_, v___x_1378_, v___x_2272__boxed_1384_, v___f_1380_, v___x_1381_, v_x_1382_); +return v_res_1385_; } } +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0(lean_object* v___x_1386_, lean_object* v_x_1387_){ +_start: +{ +if (lean_obj_tag(v_x_1387_) == 0) +{ +lean_object* v_a_1389_; lean_object* v___x_1391_; uint8_t v_isShared_1392_; uint8_t v_isSharedCheck_1397_; +v_a_1389_ = lean_ctor_get(v_x_1387_, 0); +v_isSharedCheck_1397_ = !lean_is_exclusive(v_x_1387_); +if (v_isSharedCheck_1397_ == 0) +{ +v___x_1391_ = v_x_1387_; +v_isShared_1392_ = v_isSharedCheck_1397_; +goto v_resetjp_1390_; +} else { -lean_object* v___x_1376_; -lean_dec_ref(v_selectables_1346_); -v___x_1376_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___closed__1)); -return v___x_1376_; +lean_inc(v_a_1389_); +lean_dec(v_x_1387_); +v___x_1391_ = lean_box(0); +v_isShared_1392_ = v_isSharedCheck_1397_; +goto v_resetjp_1390_; } -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___boxed(lean_object* v_selectables_1377_, lean_object* v_a_1378_){ -_start: +v_resetjp_1390_: { -lean_object* v_res_1379_; -v_res_1379_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg(v_selectables_1377_); -return v_res_1379_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne(lean_object* v_00_u03b1_1380_, lean_object* v_selectables_1381_){ -_start: +lean_object* v___x_1394_; +if (v_isShared_1392_ == 0) { -lean_object* v___x_1383_; -v___x_1383_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg(v_selectables_1381_); -return v___x_1383_; +v___x_1394_ = v___x_1391_; +goto v_reusejp_1393_; } -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___boxed(lean_object* v_00_u03b1_1384_, lean_object* v_selectables_1385_, lean_object* v_a_1386_){ -_start: +else { -lean_object* v_res_1387_; -v_res_1387_ = l_Std_Internal_IO_Async_Selectable_tryOne(v_00_u03b1_1384_, v_selectables_1385_); -return v_res_1387_; +lean_object* v_reuseFailAlloc_1396_; +v_reuseFailAlloc_1396_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1396_, 0, v_a_1389_); +v___x_1394_ = v_reuseFailAlloc_1396_; +goto v_reusejp_1393_; } -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0(lean_object* v_00_u03b1_1388_, lean_object* v___x_1389_, lean_object* v_as_1390_, size_t v_sz_1391_, size_t v_i_1392_, lean_object* v_b_1393_){ -_start: +v_reusejp_1393_: { lean_object* v___x_1395_; -v___x_1395_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1389_, v_as_1390_, v_sz_1391_, v_i_1392_, v_b_1393_); +v___x_1395_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1395_, 0, v___x_1394_); return v___x_1395_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___boxed(lean_object* v_00_u03b1_1396_, lean_object* v___x_1397_, lean_object* v_as_1398_, lean_object* v_sz_1399_, lean_object* v_i_1400_, lean_object* v_b_1401_, lean_object* v___y_1402_){ +} +else +{ +lean_object* v_a_1398_; lean_object* v___x_1400_; uint8_t v_isShared_1401_; uint8_t v_isSharedCheck_1410_; +v_a_1398_ = lean_ctor_get(v_x_1387_, 0); +v_isSharedCheck_1410_ = !lean_is_exclusive(v_x_1387_); +if (v_isSharedCheck_1410_ == 0) +{ +v___x_1400_ = v_x_1387_; +v_isShared_1401_ = v_isSharedCheck_1410_; +goto v_resetjp_1399_; +} +else +{ +lean_inc(v_a_1398_); +lean_dec(v_x_1387_); +v___x_1400_ = lean_box(0); +v_isShared_1401_ = v_isSharedCheck_1410_; +goto v_resetjp_1399_; +} +v_resetjp_1399_: +{ +lean_object* v___x_1402_; lean_object* v___x_1403_; lean_object* v___x_1404_; lean_object* v___x_1405_; lean_object* v___x_1407_; +v___x_1402_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1402_, 0, v_a_1398_); +v___x_1403_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1403_, 0, v___x_1402_); +v___x_1404_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1404_, 0, v___x_1403_); +lean_ctor_set(v___x_1404_, 1, v___x_1386_); +v___x_1405_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1405_, 0, v___x_1404_); +if (v_isShared_1401_ == 0) +{ +lean_ctor_set(v___x_1400_, 0, v___x_1405_); +v___x_1407_ = v___x_1400_; +goto v_reusejp_1406_; +} +else +{ +lean_object* v_reuseFailAlloc_1409_; +v_reuseFailAlloc_1409_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1409_, 0, v___x_1405_); +v___x_1407_ = v_reuseFailAlloc_1409_; +goto v_reusejp_1406_; +} +v_reusejp_1406_: +{ +lean_object* v___x_1408_; +v___x_1408_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1408_, 0, v___x_1407_); +return v___x_1408_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0___boxed(lean_object* v___x_1411_, lean_object* v_x_1412_, lean_object* v___y_1413_){ _start: { -size_t v_sz_boxed_1403_; size_t v_i_boxed_1404_; lean_object* v_res_1405_; -v_sz_boxed_1403_ = lean_unbox_usize(v_sz_1399_); -lean_dec(v_sz_1399_); -v_i_boxed_1404_ = lean_unbox_usize(v_i_1400_); -lean_dec(v_i_1400_); -v_res_1405_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0(v_00_u03b1_1396_, v___x_1397_, v_as_1398_, v_sz_boxed_1403_, v_i_boxed_1404_, v_b_1401_); -return v_res_1405_; +lean_object* v_res_1414_; +v_res_1414_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__0(v___x_1411_, v_x_1412_); +return v_res_1414_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1(lean_object* v___x_1406_, lean_object* v_x_1407_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2___boxed(lean_object* v_i_1420_, lean_object* v___x_1421_, lean_object* v_as_1422_, lean_object* v_sz_1423_, lean_object* v_x_1424_, lean_object* v___y_1425_){ _start: { -if (lean_obj_tag(v_x_1407_) == 0) -{ -lean_object* v___x_1409_; -v___x_1409_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1409_, 0, v_x_1407_); -return v___x_1409_; -} -else -{ -lean_object* v___x_1411_; uint8_t v_isShared_1412_; uint8_t v_isSharedCheck_1417_; -v_isSharedCheck_1417_ = !lean_is_exclusive(v_x_1407_); -if (v_isSharedCheck_1417_ == 0) -{ -lean_object* v_unused_1418_; -v_unused_1418_ = lean_ctor_get(v_x_1407_, 0); -lean_dec(v_unused_1418_); -v___x_1411_ = v_x_1407_; -v_isShared_1412_ = v_isSharedCheck_1417_; -goto v_resetjp_1410_; -} -else -{ -lean_dec(v_x_1407_); -v___x_1411_ = lean_box(0); -v_isShared_1412_ = v_isSharedCheck_1417_; -goto v_resetjp_1410_; -} -v_resetjp_1410_: -{ -lean_object* v___x_1414_; -if (v_isShared_1412_ == 0) -{ -lean_ctor_set(v___x_1411_, 0, v___x_1406_); -v___x_1414_ = v___x_1411_; -goto v_reusejp_1413_; -} -else -{ -lean_object* v_reuseFailAlloc_1416_; -v_reuseFailAlloc_1416_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1416_, 0, v___x_1406_); -v___x_1414_ = v_reuseFailAlloc_1416_; -goto v_reusejp_1413_; -} -v_reusejp_1413_: -{ -lean_object* v___x_1415_; -v___x_1415_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1415_, 0, v___x_1414_); -return v___x_1415_; +size_t v_i_boxed_1426_; size_t v_sz_boxed_1427_; lean_object* v_res_1428_; +v_i_boxed_1426_ = lean_unbox_usize(v_i_1420_); +lean_dec(v_i_1420_); +v_sz_boxed_1427_ = lean_unbox_usize(v_sz_1423_); +lean_dec(v_sz_1423_); +v_res_1428_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2(v_i_boxed_1426_, v___x_1421_, v_as_1422_, v_sz_boxed_1427_, v_x_1424_); +return v_res_1428_; } } -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1___boxed(lean_object* v___x_1419_, lean_object* v_x_1420_, lean_object* v___y_1421_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(lean_object* v___x_1429_, lean_object* v_as_1430_, size_t v_sz_1431_, size_t v_i_1432_, lean_object* v_b_1433_){ _start: { -lean_object* v_res_1422_; -v_res_1422_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1(v___x_1419_, v_x_1420_); -return v_res_1422_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(lean_object* v_a_1423_, lean_object* v___f_1424_, lean_object* v___x_1425_, uint8_t v___x_1426_, lean_object* v___x_1427_, lean_object* v___f_1428_, lean_object* v_x_1429_){ -_start: +uint8_t v___x_1435_; +v___x_1435_ = lean_usize_dec_lt(v_i_1432_, v_sz_1431_); +if (v___x_1435_ == 0) { -if (lean_obj_tag(v_x_1429_) == 0) -{ -lean_object* v_a_1431_; lean_object* v___x_1433_; uint8_t v_isShared_1434_; uint8_t v_isSharedCheck_1439_; -lean_dec_ref(v___f_1428_); -lean_dec(v___x_1425_); -lean_dec_ref(v___f_1424_); -v_a_1431_ = lean_ctor_get(v_x_1429_, 0); -v_isSharedCheck_1439_ = !lean_is_exclusive(v_x_1429_); -if (v_isSharedCheck_1439_ == 0) -{ -v___x_1433_ = v_x_1429_; -v_isShared_1434_ = v_isSharedCheck_1439_; -goto v_resetjp_1432_; -} -else -{ -lean_inc(v_a_1431_); -lean_dec(v_x_1429_); -v___x_1433_ = lean_box(0); -v_isShared_1434_ = v_isSharedCheck_1439_; -goto v_resetjp_1432_; -} -v_resetjp_1432_: -{ -lean_object* v___x_1436_; -if (v_isShared_1434_ == 0) -{ -v___x_1436_ = v___x_1433_; -goto v_reusejp_1435_; -} -else -{ -lean_object* v_reuseFailAlloc_1438_; -v_reuseFailAlloc_1438_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1438_, 0, v_a_1431_); -v___x_1436_ = v_reuseFailAlloc_1438_; -goto v_reusejp_1435_; -} -v_reusejp_1435_: -{ -lean_object* v___x_1437_; +lean_object* v___x_1436_; lean_object* v___x_1437_; +lean_dec_ref(v_as_1430_); +lean_dec(v___x_1429_); +v___x_1436_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1436_, 0, v_b_1433_); v___x_1437_ = lean_alloc_ctor(0, 1, 0); lean_ctor_set(v___x_1437_, 0, v___x_1436_); return v___x_1437_; } -} -} else { -lean_object* v___x_1441_; uint8_t v_isShared_1442_; uint8_t v_isSharedCheck_1450_; -v_isSharedCheck_1450_ = !lean_is_exclusive(v_x_1429_); -if (v_isSharedCheck_1450_ == 0) -{ -lean_object* v_unused_1451_; -v_unused_1451_ = lean_ctor_get(v_x_1429_, 0); -lean_dec(v_unused_1451_); -v___x_1441_ = v_x_1429_; -v_isShared_1442_ = v_isSharedCheck_1450_; -goto v_resetjp_1440_; -} -else -{ -lean_dec(v_x_1429_); -v___x_1441_ = lean_box(0); -v_isShared_1442_ = v_isSharedCheck_1450_; -goto v_resetjp_1440_; -} -v_resetjp_1440_: -{ -lean_object* v___x_1443_; lean_object* v___x_1444_; lean_object* v___x_1446_; -v___x_1443_ = lean_io_promise_result_opt(v_a_1423_); -lean_inc(v___x_1425_); -v___x_1444_ = lean_io_bind_task(v___x_1443_, v___f_1424_, v___x_1425_, v___x_1426_); -lean_dec_ref(v___x_1444_); -if (v_isShared_1442_ == 0) -{ -lean_ctor_set(v___x_1441_, 0, v___x_1427_); -v___x_1446_ = v___x_1441_; -goto v_reusejp_1445_; -} -else -{ -lean_object* v_reuseFailAlloc_1449_; -v_reuseFailAlloc_1449_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1449_, 0, v___x_1427_); -v___x_1446_ = v_reuseFailAlloc_1449_; -goto v_reusejp_1445_; -} -v_reusejp_1445_: -{ -lean_object* v___x_1447_; lean_object* v___x_1448_; -v___x_1447_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1447_, 0, v___x_1446_); -v___x_1448_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1425_, v___x_1426_, v___x_1447_, v___f_1428_); -return v___x_1448_; +lean_object* v_a_1438_; lean_object* v_selector_1439_; lean_object* v_tryFn_1440_; lean_object* v___x_1441_; lean_object* v___x_1442_; uint8_t v___x_1443_; lean_object* v___f_1444_; lean_object* v___x_1445_; lean_object* v___x_1446_; lean_object* v___f_1447_; lean_object* v___x_1448_; lean_object* v___x_1449_; lean_object* v___x_1450_; lean_object* v___f_1451_; uint8_t v___x_1452_; lean_object* v___x_1453_; +lean_dec_ref(v_b_1433_); +v_a_1438_ = lean_array_uget_borrowed(v_as_1430_, v_i_1432_); +v_selector_1439_ = lean_ctor_get(v_a_1438_, 0); +v_tryFn_1440_ = lean_ctor_get(v_selector_1439_, 0); +lean_inc_ref(v_tryFn_1440_); +v___x_1441_ = lean_apply_1(v_tryFn_1440_, lean_box(0)); +v___x_1442_ = lean_unsigned_to_nat(0u); +v___x_1443_ = lean_nat_dec_eq(v___x_1429_, v___x_1442_); +v___f_1444_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__0)); +v___x_1445_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); +v___x_1446_ = lean_box(v___x_1443_); +lean_inc(v_a_1438_); +v___f_1447_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__1___boxed), 7, 5); +lean_closure_set(v___f_1447_, 0, v_a_1438_); +lean_closure_set(v___f_1447_, 1, v___x_1442_); +lean_closure_set(v___f_1447_, 2, v___x_1446_); +lean_closure_set(v___f_1447_, 3, v___f_1444_); +lean_closure_set(v___f_1447_, 4, v___x_1445_); +v___x_1448_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1442_, v___x_1443_, v___x_1441_, v___f_1447_); +v___x_1449_ = lean_box_usize(v_i_1432_); +v___x_1450_ = lean_box_usize(v_sz_1431_); +v___f_1451_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2___boxed), 6, 4); +lean_closure_set(v___f_1451_, 0, v___x_1449_); +lean_closure_set(v___f_1451_, 1, v___x_1429_); +lean_closure_set(v___f_1451_, 2, v_as_1430_); +lean_closure_set(v___f_1451_, 3, v___x_1450_); +v___x_1452_ = 0; +v___x_1453_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1442_, v___x_1452_, v___x_1448_, v___f_1451_); +return v___x_1453_; } } } -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed(lean_object* v_a_1452_, lean_object* v___f_1453_, lean_object* v___x_1454_, lean_object* v___x_1455_, lean_object* v___x_1456_, lean_object* v___f_1457_, lean_object* v_x_1458_, lean_object* v___y_1459_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___lam__2(size_t v_i_1454_, lean_object* v___x_1455_, lean_object* v_as_1456_, size_t v_sz_1457_, lean_object* v_x_1458_){ _start: { -uint8_t v___x_6643__boxed_1460_; lean_object* v_res_1461_; -v___x_6643__boxed_1460_ = lean_unbox(v___x_1455_); -v_res_1461_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(v_a_1452_, v___f_1453_, v___x_1454_, v___x_6643__boxed_1460_, v___x_1456_, v___f_1457_, v_x_1458_); -lean_dec(v_a_1452_); -return v_res_1461_; +if (lean_obj_tag(v_x_1458_) == 0) +{ +lean_object* v_a_1460_; lean_object* v___x_1462_; uint8_t v_isShared_1463_; uint8_t v_isSharedCheck_1468_; +lean_dec_ref(v_as_1456_); +lean_dec(v___x_1455_); +v_a_1460_ = lean_ctor_get(v_x_1458_, 0); +v_isSharedCheck_1468_ = !lean_is_exclusive(v_x_1458_); +if (v_isSharedCheck_1468_ == 0) +{ +v___x_1462_ = v_x_1458_; +v_isShared_1463_ = v_isSharedCheck_1468_; +goto v_resetjp_1461_; +} +else +{ +lean_inc(v_a_1460_); +lean_dec(v_x_1458_); +v___x_1462_ = lean_box(0); +v_isShared_1463_ = v_isSharedCheck_1468_; +goto v_resetjp_1461_; +} +v_resetjp_1461_: +{ +lean_object* v___x_1465_; +if (v_isShared_1463_ == 0) +{ +v___x_1465_ = v___x_1462_; +goto v_reusejp_1464_; +} +else +{ +lean_object* v_reuseFailAlloc_1467_; +v_reuseFailAlloc_1467_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1467_, 0, v_a_1460_); +v___x_1465_ = v_reuseFailAlloc_1467_; +goto v_reusejp_1464_; +} +v_reusejp_1464_: +{ +lean_object* v___x_1466_; +v___x_1466_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1466_, 0, v___x_1465_); +return v___x_1466_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(lean_object* v_waiter_1462_, lean_object* v_a_1463_, lean_object* v___f_1464_, lean_object* v___x_1465_, uint8_t v___x_1466_, lean_object* v___x_1467_, lean_object* v___f_1468_, lean_object* v_x_1469_){ +} +else +{ +lean_object* v_a_1469_; lean_object* v___x_1471_; uint8_t v_isShared_1472_; uint8_t v_isSharedCheck_1488_; +v_a_1469_ = lean_ctor_get(v_x_1458_, 0); +v_isSharedCheck_1488_ = !lean_is_exclusive(v_x_1458_); +if (v_isSharedCheck_1488_ == 0) +{ +v___x_1471_ = v_x_1458_; +v_isShared_1472_ = v_isSharedCheck_1488_; +goto v_resetjp_1470_; +} +else +{ +lean_inc(v_a_1469_); +lean_dec(v_x_1458_); +v___x_1471_ = lean_box(0); +v_isShared_1472_ = v_isSharedCheck_1488_; +goto v_resetjp_1470_; +} +v_resetjp_1470_: +{ +if (lean_obj_tag(v_a_1469_) == 0) +{ +lean_object* v_a_1473_; lean_object* v___x_1475_; uint8_t v_isShared_1476_; uint8_t v_isSharedCheck_1483_; +lean_dec_ref(v_as_1456_); +lean_dec(v___x_1455_); +v_a_1473_ = lean_ctor_get(v_a_1469_, 0); +v_isSharedCheck_1483_ = !lean_is_exclusive(v_a_1469_); +if (v_isSharedCheck_1483_ == 0) +{ +v___x_1475_ = v_a_1469_; +v_isShared_1476_ = v_isSharedCheck_1483_; +goto v_resetjp_1474_; +} +else +{ +lean_inc(v_a_1473_); +lean_dec(v_a_1469_); +v___x_1475_ = lean_box(0); +v_isShared_1476_ = v_isSharedCheck_1483_; +goto v_resetjp_1474_; +} +v_resetjp_1474_: +{ +lean_object* v___x_1478_; +if (v_isShared_1472_ == 0) +{ +lean_ctor_set(v___x_1471_, 0, v_a_1473_); +v___x_1478_ = v___x_1471_; +goto v_reusejp_1477_; +} +else +{ +lean_object* v_reuseFailAlloc_1482_; +v_reuseFailAlloc_1482_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1482_, 0, v_a_1473_); +v___x_1478_ = v_reuseFailAlloc_1482_; +goto v_reusejp_1477_; +} +v_reusejp_1477_: +{ +lean_object* v___x_1480_; +if (v_isShared_1476_ == 0) +{ +lean_ctor_set(v___x_1475_, 0, v___x_1478_); +v___x_1480_ = v___x_1475_; +goto v_reusejp_1479_; +} +else +{ +lean_object* v_reuseFailAlloc_1481_; +v_reuseFailAlloc_1481_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1481_, 0, v___x_1478_); +v___x_1480_ = v_reuseFailAlloc_1481_; +goto v_reusejp_1479_; +} +v_reusejp_1479_: +{ +return v___x_1480_; +} +} +} +} +else +{ +lean_object* v_a_1484_; size_t v___x_1485_; size_t v___x_1486_; lean_object* v___x_1487_; +lean_del_object(v___x_1471_); +v_a_1484_ = lean_ctor_get(v_a_1469_, 0); +lean_inc(v_a_1484_); +lean_dec_ref(v_a_1469_); +v___x_1485_ = ((size_t)1ULL); +v___x_1486_ = lean_usize_add(v_i_1454_, v___x_1485_); +v___x_1487_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1455_, v_as_1456_, v_sz_1457_, v___x_1486_, v_a_1484_); +return v___x_1487_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___boxed(lean_object* v___x_1489_, lean_object* v_as_1490_, lean_object* v_sz_1491_, lean_object* v_i_1492_, lean_object* v_b_1493_, lean_object* v___y_1494_){ _start: { -if (lean_obj_tag(v_x_1469_) == 0) -{ -lean_object* v_a_1471_; lean_object* v___x_1473_; uint8_t v_isShared_1474_; uint8_t v_isSharedCheck_1479_; -lean_dec_ref(v___f_1468_); -lean_dec(v___x_1465_); -lean_dec_ref(v___f_1464_); -lean_dec_ref(v_a_1463_); -lean_dec_ref(v_waiter_1462_); -v_a_1471_ = lean_ctor_get(v_x_1469_, 0); -v_isSharedCheck_1479_ = !lean_is_exclusive(v_x_1469_); -if (v_isSharedCheck_1479_ == 0) -{ -v___x_1473_ = v_x_1469_; -v_isShared_1474_ = v_isSharedCheck_1479_; -goto v_resetjp_1472_; -} -else -{ -lean_inc(v_a_1471_); -lean_dec(v_x_1469_); -v___x_1473_ = lean_box(0); -v_isShared_1474_ = v_isSharedCheck_1479_; -goto v_resetjp_1472_; -} -v_resetjp_1472_: -{ -lean_object* v___x_1476_; -if (v_isShared_1474_ == 0) -{ -v___x_1476_ = v___x_1473_; -goto v_reusejp_1475_; -} -else -{ -lean_object* v_reuseFailAlloc_1478_; -v_reuseFailAlloc_1478_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1478_, 0, v_a_1471_); -v___x_1476_ = v_reuseFailAlloc_1478_; -goto v_reusejp_1475_; -} -v_reusejp_1475_: -{ -lean_object* v___x_1477_; -v___x_1477_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1477_, 0, v___x_1476_); -return v___x_1477_; +size_t v_sz_boxed_1495_; size_t v_i_boxed_1496_; lean_object* v_res_1497_; +v_sz_boxed_1495_ = lean_unbox_usize(v_sz_1491_); +lean_dec(v_sz_1491_); +v_i_boxed_1496_ = lean_unbox_usize(v_i_1492_); +lean_dec(v_i_1492_); +v_res_1497_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1489_, v_as_1490_, v_sz_boxed_1495_, v_i_boxed_1496_, v_b_1493_); +return v_res_1497_; } } -} -else -{ -lean_object* v_selector_1480_; lean_object* v_a_1481_; lean_object* v_finished_1482_; lean_object* v___x_1484_; uint8_t v_isShared_1485_; uint8_t v_isSharedCheck_1494_; -v_selector_1480_ = lean_ctor_get(v_a_1463_, 0); -lean_inc_ref(v_selector_1480_); -lean_dec_ref(v_a_1463_); -v_a_1481_ = lean_ctor_get(v_x_1469_, 0); -lean_inc(v_a_1481_); -lean_dec_ref(v_x_1469_); -v_finished_1482_ = lean_ctor_get(v_waiter_1462_, 0); -v_isSharedCheck_1494_ = !lean_is_exclusive(v_waiter_1462_); -if (v_isSharedCheck_1494_ == 0) -{ -lean_object* v_unused_1495_; -v_unused_1495_ = lean_ctor_get(v_waiter_1462_, 1); -lean_dec(v_unused_1495_); -v___x_1484_ = v_waiter_1462_; -v_isShared_1485_ = v_isSharedCheck_1494_; -goto v_resetjp_1483_; -} -else -{ -lean_inc(v_finished_1482_); -lean_dec(v_waiter_1462_); -v___x_1484_ = lean_box(0); -v_isShared_1485_ = v_isSharedCheck_1494_; -goto v_resetjp_1483_; -} -v_resetjp_1483_: -{ -lean_object* v_registerFn_1486_; lean_object* v___x_1488_; -v_registerFn_1486_ = lean_ctor_get(v_selector_1480_, 1); -lean_inc_ref(v_registerFn_1486_); -lean_dec_ref(v_selector_1480_); -lean_inc(v_a_1481_); -if (v_isShared_1485_ == 0) -{ -lean_ctor_set(v___x_1484_, 1, v_a_1481_); -v___x_1488_ = v___x_1484_; -goto v_reusejp_1487_; -} -else -{ -lean_object* v_reuseFailAlloc_1493_; -v_reuseFailAlloc_1493_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1493_, 0, v_finished_1482_); -lean_ctor_set(v_reuseFailAlloc_1493_, 1, v_a_1481_); -v___x_1488_ = v_reuseFailAlloc_1493_; -goto v_reusejp_1487_; -} -v_reusejp_1487_: -{ -lean_object* v___x_1489_; lean_object* v___x_1490_; lean_object* v___f_1491_; lean_object* v___x_1492_; -v___x_1489_ = lean_apply_2(v_registerFn_1486_, v___x_1488_, lean_box(0)); -v___x_1490_ = lean_box(v___x_1466_); -lean_inc(v___x_1465_); -v___f_1491_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed), 8, 6); -lean_closure_set(v___f_1491_, 0, v_a_1481_); -lean_closure_set(v___f_1491_, 1, v___f_1464_); -lean_closure_set(v___f_1491_, 2, v___x_1465_); -lean_closure_set(v___f_1491_, 3, v___x_1490_); -lean_closure_set(v___f_1491_, 4, v___x_1467_); -lean_closure_set(v___f_1491_, 5, v___f_1468_); -v___x_1492_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1465_, v___x_1466_, v___x_1489_, v___f_1491_); -return v___x_1492_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___boxed(lean_object* v_waiter_1496_, lean_object* v_a_1497_, lean_object* v___f_1498_, lean_object* v___x_1499_, lean_object* v___x_1500_, lean_object* v___x_1501_, lean_object* v___f_1502_, lean_object* v_x_1503_, lean_object* v___y_1504_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1(lean_object* v_selectables_1498_, lean_object* v___x_1499_, lean_object* v___x_1500_, uint8_t v___x_1501_, lean_object* v___f_1502_, lean_object* v_x_1503_){ _start: { -uint8_t v___x_6709__boxed_1505_; lean_object* v_res_1506_; -v___x_6709__boxed_1505_ = lean_unbox(v___x_1500_); -v_res_1506_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(v_waiter_1496_, v_a_1497_, v___f_1498_, v___x_1499_, v___x_6709__boxed_1505_, v___x_1501_, v___f_1502_, v_x_1503_); -return v_res_1506_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1___boxed(lean_object* v_i_1507_, lean_object* v___x_1508_, lean_object* v_as_1509_, lean_object* v_sz_1510_, lean_object* v_x_1511_, lean_object* v___y_1512_){ -_start: +if (lean_obj_tag(v_x_1503_) == 0) { -size_t v_i_boxed_1513_; size_t v_sz_boxed_1514_; lean_object* v_res_1515_; -v_i_boxed_1513_ = lean_unbox_usize(v_i_1507_); -lean_dec(v_i_1507_); -v_sz_boxed_1514_ = lean_unbox_usize(v_sz_1510_); -lean_dec(v_sz_1510_); -v_res_1515_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1(v_i_boxed_1513_, v___x_1508_, v_as_1509_, v_sz_boxed_1514_, v_x_1511_); -return v_res_1515_; +lean_object* v_a_1505_; lean_object* v___x_1507_; uint8_t v_isShared_1508_; uint8_t v_isSharedCheck_1513_; +lean_dec_ref(v___f_1502_); +lean_dec(v___x_1500_); +lean_dec(v___x_1499_); +lean_dec_ref(v_selectables_1498_); +v_a_1505_ = lean_ctor_get(v_x_1503_, 0); +v_isSharedCheck_1513_ = !lean_is_exclusive(v_x_1503_); +if (v_isSharedCheck_1513_ == 0) +{ +v___x_1507_ = v_x_1503_; +v_isShared_1508_ = v_isSharedCheck_1513_; +goto v_resetjp_1506_; +} +else +{ +lean_inc(v_a_1505_); +lean_dec(v_x_1503_); +v___x_1507_ = lean_box(0); +v_isShared_1508_ = v_isSharedCheck_1513_; +goto v_resetjp_1506_; +} +v_resetjp_1506_: +{ +lean_object* v___x_1510_; +if (v_isShared_1508_ == 0) +{ +v___x_1510_ = v___x_1507_; +goto v_reusejp_1509_; +} +else +{ +lean_object* v_reuseFailAlloc_1512_; +v_reuseFailAlloc_1512_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1512_, 0, v_a_1505_); +v___x_1510_ = v_reuseFailAlloc_1512_; +goto v_reusejp_1509_; +} +v_reusejp_1509_: +{ +lean_object* v___x_1511_; +v___x_1511_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1511_, 0, v___x_1510_); +return v___x_1511_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(lean_object* v___x_1516_, lean_object* v_as_1517_, size_t v_sz_1518_, size_t v_i_1519_, lean_object* v_b_1520_){ -_start: +} +else { -uint8_t v___x_1522_; -v___x_1522_ = lean_usize_dec_lt(v_i_1519_, v_sz_1518_); -if (v___x_1522_ == 0) -{ -lean_object* v___x_1523_; lean_object* v___x_1524_; -lean_dec_ref(v_as_1517_); +lean_object* v_a_1514_; uint64_t v___x_1515_; lean_object* v___x_1516_; lean_object* v___x_1517_; lean_object* v___x_1518_; lean_object* v___x_1519_; size_t v_sz_1520_; size_t v___x_1521_; lean_object* v___x_1522_; lean_object* v___x_1523_; +v_a_1514_ = lean_ctor_get(v_x_1503_, 0); +lean_inc(v_a_1514_); +lean_dec_ref(v_x_1503_); +v___x_1515_ = l_ByteArray_toUInt64LE_x21(v_a_1514_); +lean_dec(v_a_1514_); +v___x_1516_ = lean_uint64_to_nat(v___x_1515_); +v___x_1517_ = l_mkStdGen(v___x_1516_); lean_dec(v___x_1516_); -v___x_1523_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1523_, 0, v_b_1520_); -v___x_1524_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1524_, 0, v___x_1523_); -return v___x_1524_; -} -else -{ -lean_object* v_a_1525_; lean_object* v_selector_1526_; lean_object* v_unregisterFn_1527_; lean_object* v___x_1528_; lean_object* v___x_1529_; uint8_t v___x_1530_; lean_object* v___f_1531_; lean_object* v___x_1532_; lean_object* v___x_1533_; lean_object* v___x_1534_; lean_object* v___f_1535_; uint8_t v___x_1536_; lean_object* v___x_1537_; -v_a_1525_ = lean_array_uget_borrowed(v_as_1517_, v_i_1519_); -v_selector_1526_ = lean_ctor_get(v_a_1525_, 0); -v_unregisterFn_1527_ = lean_ctor_get(v_selector_1526_, 2); -lean_inc_ref(v_unregisterFn_1527_); -v___x_1528_ = lean_apply_1(v_unregisterFn_1527_, lean_box(0)); -v___x_1529_ = lean_unsigned_to_nat(0u); -v___x_1530_ = lean_nat_dec_eq(v___x_1516_, v___x_1529_); -v___f_1531_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); -v___x_1532_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1529_, v___x_1530_, v___x_1528_, v___f_1531_); -v___x_1533_ = lean_box_usize(v_i_1519_); -v___x_1534_ = lean_box_usize(v_sz_1518_); -v___f_1535_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1___boxed), 6, 4); -lean_closure_set(v___f_1535_, 0, v___x_1533_); -lean_closure_set(v___f_1535_, 1, v___x_1516_); -lean_closure_set(v___f_1535_, 2, v_as_1517_); -lean_closure_set(v___f_1535_, 3, v___x_1534_); -v___x_1536_ = 0; -v___x_1537_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1529_, v___x_1536_, v___x_1532_, v___f_1535_); -return v___x_1537_; +v___x_1518_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_1498_, v___x_1517_); +v___x_1519_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); +v_sz_1520_ = lean_array_size(v___x_1518_); +v___x_1521_ = ((size_t)0ULL); +v___x_1522_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1499_, v___x_1518_, v_sz_1520_, v___x_1521_, v___x_1519_); +v___x_1523_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1500_, v___x_1501_, v___x_1522_, v___f_1502_); +return v___x_1523_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1(size_t v_i_1538_, lean_object* v___x_1539_, lean_object* v_as_1540_, size_t v_sz_1541_, lean_object* v_x_1542_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1___boxed(lean_object* v_selectables_1524_, lean_object* v___x_1525_, lean_object* v___x_1526_, lean_object* v___x_1527_, lean_object* v___f_1528_, lean_object* v_x_1529_, lean_object* v___y_1530_){ _start: { -if (lean_obj_tag(v_x_1542_) == 0) +uint8_t v___x_2511__boxed_1531_; lean_object* v_res_1532_; +v___x_2511__boxed_1531_ = lean_unbox(v___x_1527_); +v_res_1532_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1(v_selectables_1524_, v___x_1525_, v___x_1526_, v___x_2511__boxed_1531_, v___f_1528_, v_x_1529_); +return v_res_1532_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg(lean_object* v_selectables_1534_){ +_start: { -lean_object* v_a_1544_; lean_object* v___x_1546_; uint8_t v_isShared_1547_; uint8_t v_isSharedCheck_1552_; -lean_dec_ref(v_as_1540_); -lean_dec(v___x_1539_); -v_a_1544_ = lean_ctor_get(v_x_1542_, 0); -v_isSharedCheck_1552_ = !lean_is_exclusive(v_x_1542_); -if (v_isSharedCheck_1552_ == 0) +lean_object* v___x_1536_; lean_object* v___x_1537_; uint8_t v___x_1538_; +v___x_1536_ = lean_array_get_size(v_selectables_1534_); +v___x_1537_ = lean_unsigned_to_nat(0u); +v___x_1538_ = lean_nat_dec_eq(v___x_1536_, v___x_1537_); +if (v___x_1538_ == 0) { -v___x_1546_ = v_x_1542_; -v_isShared_1547_ = v_isSharedCheck_1552_; -goto v_resetjp_1545_; +lean_object* v___f_1539_; lean_object* v___x_1540_; lean_object* v___f_1541_; lean_object* v_val_1543_; size_t v___x_1546_; lean_object* v___x_1547_; +v___f_1539_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___closed__0)); +v___x_1540_ = lean_box(v___x_1538_); +v___f_1541_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__1___boxed), 7, 5); +lean_closure_set(v___f_1541_, 0, v_selectables_1534_); +lean_closure_set(v___f_1541_, 1, v___x_1536_); +lean_closure_set(v___f_1541_, 2, v___x_1537_); +lean_closure_set(v___f_1541_, 3, v___x_1540_); +lean_closure_set(v___f_1541_, 4, v___f_1539_); +v___x_1546_ = ((size_t)8ULL); +v___x_1547_ = lean_io_get_random_bytes(v___x_1546_); +if (lean_obj_tag(v___x_1547_) == 0) +{ +lean_object* v_a_1548_; lean_object* v___x_1550_; uint8_t v_isShared_1551_; uint8_t v_isSharedCheck_1555_; +v_a_1548_ = lean_ctor_get(v___x_1547_, 0); +v_isSharedCheck_1555_ = !lean_is_exclusive(v___x_1547_); +if (v_isSharedCheck_1555_ == 0) +{ +v___x_1550_ = v___x_1547_; +v_isShared_1551_ = v_isSharedCheck_1555_; +goto v_resetjp_1549_; } else { -lean_inc(v_a_1544_); -lean_dec(v_x_1542_); -v___x_1546_ = lean_box(0); -v_isShared_1547_ = v_isSharedCheck_1552_; -goto v_resetjp_1545_; +lean_inc(v_a_1548_); +lean_dec(v___x_1547_); +v___x_1550_ = lean_box(0); +v_isShared_1551_ = v_isSharedCheck_1555_; +goto v_resetjp_1549_; } -v_resetjp_1545_: +v_resetjp_1549_: { -lean_object* v___x_1549_; -if (v_isShared_1547_ == 0) +lean_object* v___x_1553_; +if (v_isShared_1551_ == 0) { -v___x_1549_ = v___x_1546_; -goto v_reusejp_1548_; +lean_ctor_set_tag(v___x_1550_, 1); +v___x_1553_ = v___x_1550_; +goto v_reusejp_1552_; } else { -lean_object* v_reuseFailAlloc_1551_; -v_reuseFailAlloc_1551_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1551_, 0, v_a_1544_); -v___x_1549_ = v_reuseFailAlloc_1551_; -goto v_reusejp_1548_; +lean_object* v_reuseFailAlloc_1554_; +v_reuseFailAlloc_1554_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1554_, 0, v_a_1548_); +v___x_1553_ = v_reuseFailAlloc_1554_; +goto v_reusejp_1552_; } -v_reusejp_1548_: +v_reusejp_1552_: { -lean_object* v___x_1550_; -v___x_1550_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1550_, 0, v___x_1549_); -return v___x_1550_; +v_val_1543_ = v___x_1553_; +goto v___jp_1542_; } } } else { -lean_object* v_a_1553_; lean_object* v___x_1555_; uint8_t v_isShared_1556_; uint8_t v_isSharedCheck_1572_; -v_a_1553_ = lean_ctor_get(v_x_1542_, 0); -v_isSharedCheck_1572_ = !lean_is_exclusive(v_x_1542_); -if (v_isSharedCheck_1572_ == 0) +lean_object* v_a_1556_; lean_object* v___x_1558_; uint8_t v_isShared_1559_; uint8_t v_isSharedCheck_1563_; +v_a_1556_ = lean_ctor_get(v___x_1547_, 0); +v_isSharedCheck_1563_ = !lean_is_exclusive(v___x_1547_); +if (v_isSharedCheck_1563_ == 0) { -v___x_1555_ = v_x_1542_; -v_isShared_1556_ = v_isSharedCheck_1572_; -goto v_resetjp_1554_; +v___x_1558_ = v___x_1547_; +v_isShared_1559_ = v_isSharedCheck_1563_; +goto v_resetjp_1557_; } else { -lean_inc(v_a_1553_); -lean_dec(v_x_1542_); -v___x_1555_ = lean_box(0); -v_isShared_1556_ = v_isSharedCheck_1572_; -goto v_resetjp_1554_; +lean_inc(v_a_1556_); +lean_dec(v___x_1547_); +v___x_1558_ = lean_box(0); +v_isShared_1559_ = v_isSharedCheck_1563_; +goto v_resetjp_1557_; } -v_resetjp_1554_: +v_resetjp_1557_: { -if (lean_obj_tag(v_a_1553_) == 0) +lean_object* v___x_1561_; +if (v_isShared_1559_ == 0) { -lean_object* v_a_1557_; lean_object* v___x_1559_; uint8_t v_isShared_1560_; uint8_t v_isSharedCheck_1567_; -lean_dec_ref(v_as_1540_); -lean_dec(v___x_1539_); -v_a_1557_ = lean_ctor_get(v_a_1553_, 0); -v_isSharedCheck_1567_ = !lean_is_exclusive(v_a_1553_); -if (v_isSharedCheck_1567_ == 0) -{ -v___x_1559_ = v_a_1553_; -v_isShared_1560_ = v_isSharedCheck_1567_; -goto v_resetjp_1558_; +lean_ctor_set_tag(v___x_1558_, 0); +v___x_1561_ = v___x_1558_; +goto v_reusejp_1560_; } else { -lean_inc(v_a_1557_); -lean_dec(v_a_1553_); -v___x_1559_ = lean_box(0); -v_isShared_1560_ = v_isSharedCheck_1567_; -goto v_resetjp_1558_; +lean_object* v_reuseFailAlloc_1562_; +v_reuseFailAlloc_1562_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1562_, 0, v_a_1556_); +v___x_1561_ = v_reuseFailAlloc_1562_; +goto v_reusejp_1560_; } -v_resetjp_1558_: +v_reusejp_1560_: { -lean_object* v___x_1562_; -if (v_isShared_1556_ == 0) +v_val_1543_ = v___x_1561_; +goto v___jp_1542_; +} +} +} +v___jp_1542_: { -lean_ctor_set(v___x_1555_, 0, v_a_1557_); -v___x_1562_ = v___x_1555_; -goto v_reusejp_1561_; +lean_object* v___x_1544_; lean_object* v___x_1545_; +v___x_1544_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1544_, 0, v_val_1543_); +v___x_1545_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1537_, v___x_1538_, v___x_1544_, v___f_1541_); +return v___x_1545_; +} } else { -lean_object* v_reuseFailAlloc_1566_; -v_reuseFailAlloc_1566_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1566_, 0, v_a_1557_); -v___x_1562_ = v_reuseFailAlloc_1566_; -goto v_reusejp_1561_; -} -v_reusejp_1561_: -{ lean_object* v___x_1564_; -if (v_isShared_1560_ == 0) -{ -lean_ctor_set(v___x_1559_, 0, v___x_1562_); -v___x_1564_ = v___x_1559_; -goto v_reusejp_1563_; -} -else -{ -lean_object* v_reuseFailAlloc_1565_; -v_reuseFailAlloc_1565_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1565_, 0, v___x_1562_); -v___x_1564_ = v_reuseFailAlloc_1565_; -goto v_reusejp_1563_; -} -v_reusejp_1563_: -{ +lean_dec_ref(v_selectables_1534_); +v___x_1564_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___lam__0___closed__1)); return v___x_1564_; } } } -} -else +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___redArg___boxed(lean_object* v_selectables_1565_, lean_object* v_a_1566_){ +_start: { -lean_object* v_a_1568_; size_t v___x_1569_; size_t v___x_1570_; lean_object* v___x_1571_; -lean_del_object(v___x_1555_); -v_a_1568_ = lean_ctor_get(v_a_1553_, 0); -lean_inc(v_a_1568_); -lean_dec_ref(v_a_1553_); -v___x_1569_ = ((size_t)1ULL); -v___x_1570_ = lean_usize_add(v_i_1538_, v___x_1569_); -v___x_1571_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1539_, v_as_1540_, v_sz_1541_, v___x_1570_, v_a_1568_); +lean_object* v_res_1567_; +v_res_1567_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg(v_selectables_1565_); +return v_res_1567_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne(lean_object* v_00_u03b1_1568_, lean_object* v_selectables_1569_){ +_start: +{ +lean_object* v___x_1571_; +v___x_1571_ = l_Std_Internal_IO_Async_Selectable_tryOne___redArg(v_selectables_1569_); return v___x_1571_; } } -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___boxed(lean_object* v___x_1573_, lean_object* v_as_1574_, lean_object* v_sz_1575_, lean_object* v_i_1576_, lean_object* v_b_1577_, lean_object* v___y_1578_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_tryOne___boxed(lean_object* v_00_u03b1_1572_, lean_object* v_selectables_1573_, lean_object* v_a_1574_){ _start: { -size_t v_sz_boxed_1579_; size_t v_i_boxed_1580_; lean_object* v_res_1581_; -v_sz_boxed_1579_ = lean_unbox_usize(v_sz_1575_); -lean_dec(v_sz_1575_); -v_i_boxed_1580_ = lean_unbox_usize(v_i_1576_); -lean_dec(v_i_1576_); -v_res_1581_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1573_, v_as_1574_, v_sz_boxed_1579_, v_i_boxed_1580_, v_b_1577_); -return v_res_1581_; +lean_object* v_res_1575_; +v_res_1575_ = l_Std_Internal_IO_Async_Selectable_tryOne(v_00_u03b1_1572_, v_selectables_1573_); +return v_res_1575_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(lean_object* v___x_1582_, uint8_t v___x_1583_, lean_object* v___f_1584_, lean_object* v___f_1585_, lean_object* v_val_1586_, lean_object* v_x_1587_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0(lean_object* v_00_u03b1_1576_, lean_object* v___x_1577_, lean_object* v_as_1578_, size_t v_sz_1579_, size_t v_i_1580_, lean_object* v_b_1581_){ _start: { -lean_object* v_val_1590_; -if (lean_obj_tag(v_x_1587_) == 0) -{ -lean_object* v___x_1594_; -lean_dec_ref(v_val_1586_); -lean_dec_ref(v___f_1585_); -lean_dec_ref(v___f_1584_); -lean_dec(v___x_1582_); -v___x_1594_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1594_, 0, v_x_1587_); -return v___x_1594_; -} -else -{ -lean_object* v___x_1596_; uint8_t v_isShared_1597_; uint8_t v_isSharedCheck_1607_; -v_isSharedCheck_1607_ = !lean_is_exclusive(v_x_1587_); -if (v_isSharedCheck_1607_ == 0) -{ -lean_object* v_unused_1608_; -v_unused_1608_ = lean_ctor_get(v_x_1587_, 0); -lean_dec(v_unused_1608_); -v___x_1596_ = v_x_1587_; -v_isShared_1597_ = v_isSharedCheck_1607_; -goto v_resetjp_1595_; -} -else -{ -lean_dec(v_x_1587_); -v___x_1596_ = lean_box(0); -v_isShared_1597_ = v_isSharedCheck_1607_; -goto v_resetjp_1595_; -} -v_resetjp_1595_: -{ -lean_object* v___x_1598_; -v___x_1598_ = l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable_one_spec__1___redArg(v_val_1586_); -if (lean_obj_tag(v___x_1598_) == 0) -{ -lean_object* v_a_1599_; lean_object* v___x_1601_; -v_a_1599_ = lean_ctor_get(v___x_1598_, 0); -lean_inc(v_a_1599_); -lean_dec_ref(v___x_1598_); -if (v_isShared_1597_ == 0) -{ -lean_ctor_set(v___x_1596_, 0, v_a_1599_); -v___x_1601_ = v___x_1596_; -goto v_reusejp_1600_; -} -else -{ -lean_object* v_reuseFailAlloc_1602_; -v_reuseFailAlloc_1602_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1602_, 0, v_a_1599_); -v___x_1601_ = v_reuseFailAlloc_1602_; -goto v_reusejp_1600_; -} -v_reusejp_1600_: -{ -v_val_1590_ = v___x_1601_; -goto v___jp_1589_; +lean_object* v___x_1583_; +v___x_1583_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1577_, v_as_1578_, v_sz_1579_, v_i_1580_, v_b_1581_); +return v___x_1583_; } } -else -{ -lean_object* v_a_1603_; lean_object* v___x_1605_; -v_a_1603_ = lean_ctor_get(v___x_1598_, 0); -lean_inc(v_a_1603_); -lean_dec_ref(v___x_1598_); -if (v_isShared_1597_ == 0) -{ -lean_ctor_set_tag(v___x_1596_, 0); -lean_ctor_set(v___x_1596_, 0, v_a_1603_); -v___x_1605_ = v___x_1596_; -goto v_reusejp_1604_; -} -else -{ -lean_object* v_reuseFailAlloc_1606_; -v_reuseFailAlloc_1606_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1606_, 0, v_a_1603_); -v___x_1605_ = v_reuseFailAlloc_1606_; -goto v_reusejp_1604_; -} -v_reusejp_1604_: -{ -v_val_1590_ = v___x_1605_; -goto v___jp_1589_; -} -} -} -} -v___jp_1589_: -{ -lean_object* v___x_1591_; lean_object* v___x_1592_; lean_object* v___x_1593_; -v___x_1591_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1591_, 0, v_val_1590_); -lean_inc(v___x_1582_); -v___x_1592_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1582_, v___x_1583_, v___x_1591_, v___f_1584_); -v___x_1593_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1582_, v___x_1583_, v___x_1592_, v___f_1585_); -return v___x_1593_; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed(lean_object* v___x_1609_, lean_object* v___x_1610_, lean_object* v___f_1611_, lean_object* v___f_1612_, lean_object* v_val_1613_, lean_object* v_x_1614_, lean_object* v___y_1615_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___boxed(lean_object* v_00_u03b1_1584_, lean_object* v___x_1585_, lean_object* v_as_1586_, lean_object* v_sz_1587_, lean_object* v_i_1588_, lean_object* v_b_1589_, lean_object* v___y_1590_){ _start: { -uint8_t v___x_6875__boxed_1616_; lean_object* v_res_1617_; -v___x_6875__boxed_1616_ = lean_unbox(v___x_1610_); -v_res_1617_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(v___x_1609_, v___x_6875__boxed_1616_, v___f_1611_, v___f_1612_, v_val_1613_, v_x_1614_); -return v_res_1617_; +size_t v_sz_boxed_1591_; size_t v_i_boxed_1592_; lean_object* v_res_1593_; +v_sz_boxed_1591_ = lean_unbox_usize(v_sz_1587_); +lean_dec(v_sz_1587_); +v_i_boxed_1592_ = lean_unbox_usize(v_i_1588_); +lean_dec(v_i_1588_); +v_res_1593_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0(v_00_u03b1_1584_, v___x_1585_, v_as_1586_, v_sz_boxed_1591_, v_i_boxed_1592_, v_b_1589_); +return v_res_1593_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(lean_object* v_a_1618_, lean_object* v___x_1619_, uint8_t v___x_1620_, lean_object* v___f_1621_, lean_object* v_x_1622_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1(lean_object* v___x_1594_, lean_object* v_x_1595_){ _start: { -if (lean_obj_tag(v_x_1622_) == 0) +if (lean_obj_tag(v_x_1595_) == 0) { -lean_object* v_a_1624_; lean_object* v___x_1626_; uint8_t v_isShared_1627_; uint8_t v_isSharedCheck_1632_; -lean_dec_ref(v___f_1621_); -lean_dec(v___x_1619_); -lean_dec_ref(v_a_1618_); -v_a_1624_ = lean_ctor_get(v_x_1622_, 0); -v_isSharedCheck_1632_ = !lean_is_exclusive(v_x_1622_); -if (v_isSharedCheck_1632_ == 0) -{ -v___x_1626_ = v_x_1622_; -v_isShared_1627_ = v_isSharedCheck_1632_; -goto v_resetjp_1625_; +lean_object* v___x_1597_; +v___x_1597_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1597_, 0, v_x_1595_); +return v___x_1597_; } else { -lean_inc(v_a_1624_); -lean_dec(v_x_1622_); -v___x_1626_ = lean_box(0); -v_isShared_1627_ = v_isSharedCheck_1632_; -goto v_resetjp_1625_; -} -v_resetjp_1625_: +lean_object* v___x_1599_; uint8_t v_isShared_1600_; uint8_t v_isSharedCheck_1605_; +v_isSharedCheck_1605_ = !lean_is_exclusive(v_x_1595_); +if (v_isSharedCheck_1605_ == 0) { -lean_object* v___x_1629_; -if (v_isShared_1627_ == 0) -{ -v___x_1629_ = v___x_1626_; -goto v_reusejp_1628_; +lean_object* v_unused_1606_; +v_unused_1606_ = lean_ctor_get(v_x_1595_, 0); +lean_dec(v_unused_1606_); +v___x_1599_ = v_x_1595_; +v_isShared_1600_ = v_isSharedCheck_1605_; +goto v_resetjp_1598_; } else { -lean_object* v_reuseFailAlloc_1631_; -v_reuseFailAlloc_1631_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1631_, 0, v_a_1624_); -v___x_1629_ = v_reuseFailAlloc_1631_; -goto v_reusejp_1628_; +lean_dec(v_x_1595_); +v___x_1599_ = lean_box(0); +v_isShared_1600_ = v_isSharedCheck_1605_; +goto v_resetjp_1598_; } -v_reusejp_1628_: +v_resetjp_1598_: { -lean_object* v___x_1630_; -v___x_1630_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1630_, 0, v___x_1629_); -return v___x_1630_; -} -} +lean_object* v___x_1602_; +if (v_isShared_1600_ == 0) +{ +lean_ctor_set(v___x_1599_, 0, v___x_1594_); +v___x_1602_ = v___x_1599_; +goto v_reusejp_1601_; } else { -lean_object* v_a_1633_; lean_object* v_cont_1634_; lean_object* v___x_1635_; lean_object* v___x_1636_; -v_a_1633_ = lean_ctor_get(v_x_1622_, 0); -lean_inc(v_a_1633_); -lean_dec_ref(v_x_1622_); -v_cont_1634_ = lean_ctor_get(v_a_1618_, 1); -lean_inc_ref(v_cont_1634_); -lean_dec_ref(v_a_1618_); -v___x_1635_ = lean_apply_2(v_cont_1634_, v_a_1633_, lean_box(0)); -v___x_1636_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1619_, v___x_1620_, v___x_1635_, v___f_1621_); -return v___x_1636_; +lean_object* v_reuseFailAlloc_1604_; +v_reuseFailAlloc_1604_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1604_, 0, v___x_1594_); +v___x_1602_ = v_reuseFailAlloc_1604_; +goto v_reusejp_1601_; +} +v_reusejp_1601_: +{ +lean_object* v___x_1603_; +v___x_1603_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1603_, 0, v___x_1602_); +return v___x_1603_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed(lean_object* v_a_1637_, lean_object* v___x_1638_, lean_object* v___x_1639_, lean_object* v___f_1640_, lean_object* v_x_1641_, lean_object* v___y_1642_){ +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1___boxed(lean_object* v___x_1607_, lean_object* v_x_1608_, lean_object* v___y_1609_){ _start: { -uint8_t v___x_6938__boxed_1643_; lean_object* v_res_1644_; -v___x_6938__boxed_1643_ = lean_unbox(v___x_1639_); -v_res_1644_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(v_a_1637_, v___x_1638_, v___x_6938__boxed_1643_, v___f_1640_, v_x_1641_); -return v_res_1644_; +lean_object* v_res_1610_; +v_res_1610_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__1(v___x_1607_, v_x_1608_); +return v_res_1610_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0(lean_object* v_promise_1645_, lean_object* v_x_1646_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0(lean_object* v_a_1611_){ _start: { -if (lean_obj_tag(v_x_1646_) == 0) +lean_object* v___x_1612_; +v___x_1612_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1612_, 0, v_a_1611_); +return v___x_1612_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(lean_object* v_a_1613_, lean_object* v___x_1614_, uint8_t v___x_1615_, lean_object* v___f_1616_, lean_object* v_x_1617_){ +_start: { -lean_object* v_a_1648_; lean_object* v___x_1650_; uint8_t v_isShared_1651_; uint8_t v_isSharedCheck_1656_; -v_a_1648_ = lean_ctor_get(v_x_1646_, 0); -v_isSharedCheck_1656_ = !lean_is_exclusive(v_x_1646_); -if (v_isSharedCheck_1656_ == 0) +if (lean_obj_tag(v_x_1617_) == 0) { -v___x_1650_ = v_x_1646_; -v_isShared_1651_ = v_isSharedCheck_1656_; -goto v_resetjp_1649_; +lean_object* v_a_1619_; lean_object* v___x_1621_; uint8_t v_isShared_1622_; uint8_t v_isSharedCheck_1627_; +lean_dec_ref(v___f_1616_); +lean_dec(v___x_1614_); +lean_dec_ref(v_a_1613_); +v_a_1619_ = lean_ctor_get(v_x_1617_, 0); +v_isSharedCheck_1627_ = !lean_is_exclusive(v_x_1617_); +if (v_isSharedCheck_1627_ == 0) +{ +v___x_1621_ = v_x_1617_; +v_isShared_1622_ = v_isSharedCheck_1627_; +goto v_resetjp_1620_; } else { -lean_inc(v_a_1648_); -lean_dec(v_x_1646_); -v___x_1650_ = lean_box(0); -v_isShared_1651_ = v_isSharedCheck_1656_; -goto v_resetjp_1649_; +lean_inc(v_a_1619_); +lean_dec(v_x_1617_); +v___x_1621_ = lean_box(0); +v_isShared_1622_ = v_isSharedCheck_1627_; +goto v_resetjp_1620_; } -v_resetjp_1649_: +v_resetjp_1620_: { -lean_object* v___x_1653_; -if (v_isShared_1651_ == 0) +lean_object* v___x_1624_; +if (v_isShared_1622_ == 0) { -v___x_1653_ = v___x_1650_; -goto v_reusejp_1652_; +v___x_1624_ = v___x_1621_; +goto v_reusejp_1623_; } else { -lean_object* v_reuseFailAlloc_1655_; -v_reuseFailAlloc_1655_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1655_, 0, v_a_1648_); -v___x_1653_ = v_reuseFailAlloc_1655_; -goto v_reusejp_1652_; +lean_object* v_reuseFailAlloc_1626_; +v_reuseFailAlloc_1626_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1626_, 0, v_a_1619_); +v___x_1624_ = v_reuseFailAlloc_1626_; +goto v_reusejp_1623_; } -v_reusejp_1652_: +v_reusejp_1623_: +{ +lean_object* v___x_1625_; +v___x_1625_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1625_, 0, v___x_1624_); +return v___x_1625_; +} +} +} +else +{ +lean_object* v_a_1628_; lean_object* v_cont_1629_; lean_object* v___x_1630_; lean_object* v___x_1631_; +v_a_1628_ = lean_ctor_get(v_x_1617_, 0); +lean_inc(v_a_1628_); +lean_dec_ref(v_x_1617_); +v_cont_1629_ = lean_ctor_get(v_a_1613_, 1); +lean_inc_ref(v_cont_1629_); +lean_dec_ref(v_a_1613_); +v___x_1630_ = lean_apply_2(v_cont_1629_, v_a_1628_, lean_box(0)); +v___x_1631_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1614_, v___x_1615_, v___x_1630_, v___f_1616_); +return v___x_1631_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed(lean_object* v_a_1632_, lean_object* v___x_1633_, lean_object* v___x_1634_, lean_object* v___f_1635_, lean_object* v_x_1636_, lean_object* v___y_1637_){ +_start: +{ +uint8_t v___x_7421__boxed_1638_; lean_object* v_res_1639_; +v___x_7421__boxed_1638_ = lean_unbox(v___x_1634_); +v_res_1639_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3(v_a_1632_, v___x_1633_, v___x_7421__boxed_1638_, v___f_1635_, v_x_1636_); +return v_res_1639_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(lean_object* v_promise_1640_, lean_object* v_x_1641_){ +_start: +{ +if (lean_obj_tag(v_x_1641_) == 0) +{ +lean_object* v_a_1643_; lean_object* v___x_1645_; uint8_t v_isShared_1646_; uint8_t v_isSharedCheck_1653_; +v_a_1643_ = lean_ctor_get(v_x_1641_, 0); +v_isSharedCheck_1653_ = !lean_is_exclusive(v_x_1641_); +if (v_isSharedCheck_1653_ == 0) +{ +v___x_1645_ = v_x_1641_; +v_isShared_1646_ = v_isSharedCheck_1653_; +goto v_resetjp_1644_; +} +else +{ +lean_inc(v_a_1643_); +lean_dec(v_x_1641_); +v___x_1645_ = lean_box(0); +v_isShared_1646_ = v_isSharedCheck_1653_; +goto v_resetjp_1644_; +} +v_resetjp_1644_: +{ +lean_object* v___x_1648_; +if (v_isShared_1646_ == 0) +{ +v___x_1648_ = v___x_1645_; +goto v_reusejp_1647_; +} +else +{ +lean_object* v_reuseFailAlloc_1652_; +v_reuseFailAlloc_1652_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1652_, 0, v_a_1643_); +v___x_1648_ = v_reuseFailAlloc_1652_; +goto v_reusejp_1647_; +} +v_reusejp_1647_: +{ +lean_object* v___x_1649_; lean_object* v___x_1650_; lean_object* v___x_1651_; +v___x_1649_ = lean_io_promise_resolve(v___x_1648_, v_promise_1640_); +v___x_1650_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1650_, 0, v___x_1649_); +v___x_1651_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1651_, 0, v___x_1650_); +return v___x_1651_; +} +} +} +else { lean_object* v___x_1654_; v___x_1654_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1654_, 0, v___x_1653_); +lean_ctor_set(v___x_1654_, 0, v_x_1641_); return v___x_1654_; } } } -else -{ -lean_object* v___x_1657_; lean_object* v___x_1658_; lean_object* v___x_1659_; -v___x_1657_ = lean_io_promise_resolve(v_x_1646_, v_promise_1645_); -v___x_1658_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1658_, 0, v___x_1657_); -v___x_1659_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1659_, 0, v___x_1658_); -return v___x_1659_; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0___boxed(lean_object* v_promise_1660_, lean_object* v_x_1661_, lean_object* v___y_1662_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed(lean_object* v_promise_1655_, lean_object* v_x_1656_, lean_object* v___y_1657_){ _start: { -lean_object* v_res_1663_; -v_res_1663_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0(v_promise_1660_, v_x_1661_); -lean_dec(v_promise_1660_); -return v_res_1663_; +lean_object* v_res_1658_; +v_res_1658_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2(v_promise_1655_, v_x_1656_); +lean_dec(v_promise_1655_); +return v_res_1658_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1(lean_object* v_promise_1664_, lean_object* v_x_1665_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(lean_object* v___x_1659_, uint8_t v___x_1660_, lean_object* v___f_1661_, lean_object* v___f_1662_, lean_object* v_val_1663_, lean_object* v_x_1664_){ _start: { -if (lean_obj_tag(v_x_1665_) == 0) +lean_object* v_val_1667_; +if (lean_obj_tag(v_x_1664_) == 0) { -lean_object* v_a_1667_; lean_object* v___x_1669_; uint8_t v_isShared_1670_; uint8_t v_isSharedCheck_1677_; -v_a_1667_ = lean_ctor_get(v_x_1665_, 0); -v_isSharedCheck_1677_ = !lean_is_exclusive(v_x_1665_); -if (v_isSharedCheck_1677_ == 0) -{ -v___x_1669_ = v_x_1665_; -v_isShared_1670_ = v_isSharedCheck_1677_; -goto v_resetjp_1668_; +lean_object* v___x_1671_; +lean_dec_ref(v_val_1663_); +lean_dec_ref(v___f_1662_); +lean_dec_ref(v___f_1661_); +lean_dec(v___x_1659_); +v___x_1671_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1671_, 0, v_x_1664_); +return v___x_1671_; } else { -lean_inc(v_a_1667_); -lean_dec(v_x_1665_); -v___x_1669_ = lean_box(0); -v_isShared_1670_ = v_isSharedCheck_1677_; -goto v_resetjp_1668_; -} -v_resetjp_1668_: +lean_object* v___x_1673_; uint8_t v_isShared_1674_; uint8_t v_isSharedCheck_1684_; +v_isSharedCheck_1684_ = !lean_is_exclusive(v_x_1664_); +if (v_isSharedCheck_1684_ == 0) { -lean_object* v___x_1672_; -if (v_isShared_1670_ == 0) -{ -v___x_1672_ = v___x_1669_; -goto v_reusejp_1671_; +lean_object* v_unused_1685_; +v_unused_1685_ = lean_ctor_get(v_x_1664_, 0); +lean_dec(v_unused_1685_); +v___x_1673_ = v_x_1664_; +v_isShared_1674_ = v_isSharedCheck_1684_; +goto v_resetjp_1672_; } else { -lean_object* v_reuseFailAlloc_1676_; -v_reuseFailAlloc_1676_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1676_, 0, v_a_1667_); -v___x_1672_ = v_reuseFailAlloc_1676_; -goto v_reusejp_1671_; +lean_dec(v_x_1664_); +v___x_1673_ = lean_box(0); +v_isShared_1674_ = v_isSharedCheck_1684_; +goto v_resetjp_1672_; } -v_reusejp_1671_: +v_resetjp_1672_: { -lean_object* v___x_1673_; lean_object* v___x_1674_; lean_object* v___x_1675_; -v___x_1673_ = lean_io_promise_resolve(v___x_1672_, v_promise_1664_); -v___x_1674_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1674_, 0, v___x_1673_); -v___x_1675_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1675_, 0, v___x_1674_); -return v___x_1675_; +lean_object* v___x_1675_; +v___x_1675_ = l_IO_ofExcept___at___00Std_Internal_IO_Async_Selectable_one_spec__1___redArg(v_val_1663_); +if (lean_obj_tag(v___x_1675_) == 0) +{ +lean_object* v_a_1676_; lean_object* v___x_1678_; +v_a_1676_ = lean_ctor_get(v___x_1675_, 0); +lean_inc(v_a_1676_); +lean_dec_ref(v___x_1675_); +if (v_isShared_1674_ == 0) +{ +lean_ctor_set(v___x_1673_, 0, v_a_1676_); +v___x_1678_ = v___x_1673_; +goto v_reusejp_1677_; +} +else +{ +lean_object* v_reuseFailAlloc_1679_; +v_reuseFailAlloc_1679_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1679_, 0, v_a_1676_); +v___x_1678_ = v_reuseFailAlloc_1679_; +goto v_reusejp_1677_; +} +v_reusejp_1677_: +{ +v_val_1667_ = v___x_1678_; +goto v___jp_1666_; +} +} +else +{ +lean_object* v_a_1680_; lean_object* v___x_1682_; +v_a_1680_ = lean_ctor_get(v___x_1675_, 0); +lean_inc(v_a_1680_); +lean_dec_ref(v___x_1675_); +if (v_isShared_1674_ == 0) +{ +lean_ctor_set_tag(v___x_1673_, 0); +lean_ctor_set(v___x_1673_, 0, v_a_1680_); +v___x_1682_ = v___x_1673_; +goto v_reusejp_1681_; +} +else +{ +lean_object* v_reuseFailAlloc_1683_; +v_reuseFailAlloc_1683_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1683_, 0, v_a_1680_); +v___x_1682_ = v_reuseFailAlloc_1683_; +goto v_reusejp_1681_; +} +v_reusejp_1681_: +{ +v_val_1667_ = v___x_1682_; +goto v___jp_1666_; +} +} +} +} +v___jp_1666_: +{ +lean_object* v___x_1668_; lean_object* v___x_1669_; lean_object* v___x_1670_; +v___x_1668_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1668_, 0, v_val_1667_); +lean_inc(v___x_1659_); +v___x_1669_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1659_, v___x_1660_, v___x_1668_, v___f_1661_); +v___x_1670_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1659_, v___x_1660_, v___x_1669_, v___f_1662_); +return v___x_1670_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed(lean_object* v___x_1686_, lean_object* v___x_1687_, lean_object* v___f_1688_, lean_object* v___f_1689_, lean_object* v_val_1690_, lean_object* v_x_1691_, lean_object* v___y_1692_){ +_start: +{ +uint8_t v___x_7491__boxed_1693_; lean_object* v_res_1694_; +v___x_7491__boxed_1693_ = lean_unbox(v___x_1687_); +v_res_1694_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(v___x_1686_, v___x_7491__boxed_1693_, v___f_1688_, v___f_1689_, v_val_1690_, v_x_1691_); +return v_res_1694_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1___boxed(lean_object* v_i_1695_, lean_object* v___x_1696_, lean_object* v_as_1697_, lean_object* v_sz_1698_, lean_object* v_x_1699_, lean_object* v___y_1700_){ +_start: +{ +size_t v_i_boxed_1701_; size_t v_sz_boxed_1702_; lean_object* v_res_1703_; +v_i_boxed_1701_ = lean_unbox_usize(v_i_1695_); +lean_dec(v_i_1695_); +v_sz_boxed_1702_ = lean_unbox_usize(v_sz_1698_); +lean_dec(v_sz_1698_); +v_res_1703_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1(v_i_boxed_1701_, v___x_1696_, v_as_1697_, v_sz_boxed_1702_, v_x_1699_); +return v_res_1703_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(lean_object* v___x_1704_, lean_object* v_as_1705_, size_t v_sz_1706_, size_t v_i_1707_, lean_object* v_b_1708_){ +_start: +{ +uint8_t v___x_1710_; +v___x_1710_ = lean_usize_dec_lt(v_i_1707_, v_sz_1706_); +if (v___x_1710_ == 0) +{ +lean_object* v___x_1711_; lean_object* v___x_1712_; +lean_dec_ref(v_as_1705_); +lean_dec(v___x_1704_); +v___x_1711_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1711_, 0, v_b_1708_); +v___x_1712_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1712_, 0, v___x_1711_); +return v___x_1712_; +} +else +{ +lean_object* v_a_1713_; lean_object* v_selector_1714_; lean_object* v_unregisterFn_1715_; lean_object* v___x_1716_; lean_object* v___x_1717_; uint8_t v___x_1718_; lean_object* v___f_1719_; lean_object* v___x_1720_; lean_object* v___x_1721_; lean_object* v___x_1722_; lean_object* v___f_1723_; uint8_t v___x_1724_; lean_object* v___x_1725_; +v_a_1713_ = lean_array_uget_borrowed(v_as_1705_, v_i_1707_); +v_selector_1714_ = lean_ctor_get(v_a_1713_, 0); +v_unregisterFn_1715_ = lean_ctor_get(v_selector_1714_, 2); +lean_inc_ref(v_unregisterFn_1715_); +v___x_1716_ = lean_apply_1(v_unregisterFn_1715_, lean_box(0)); +v___x_1717_ = lean_unsigned_to_nat(0u); +v___x_1718_ = lean_nat_dec_eq(v___x_1704_, v___x_1717_); +v___f_1719_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); +v___x_1720_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1717_, v___x_1718_, v___x_1716_, v___f_1719_); +v___x_1721_ = lean_box_usize(v_i_1707_); +v___x_1722_ = lean_box_usize(v_sz_1706_); +v___f_1723_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1___boxed), 6, 4); +lean_closure_set(v___f_1723_, 0, v___x_1721_); +lean_closure_set(v___f_1723_, 1, v___x_1704_); +lean_closure_set(v___f_1723_, 2, v_as_1705_); +lean_closure_set(v___f_1723_, 3, v___x_1722_); +v___x_1724_ = 0; +v___x_1725_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1717_, v___x_1724_, v___x_1720_, v___f_1723_); +return v___x_1725_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___lam__1(size_t v_i_1726_, lean_object* v___x_1727_, lean_object* v_as_1728_, size_t v_sz_1729_, lean_object* v_x_1730_){ +_start: +{ +if (lean_obj_tag(v_x_1730_) == 0) +{ +lean_object* v_a_1732_; lean_object* v___x_1734_; uint8_t v_isShared_1735_; uint8_t v_isSharedCheck_1740_; +lean_dec_ref(v_as_1728_); +lean_dec(v___x_1727_); +v_a_1732_ = lean_ctor_get(v_x_1730_, 0); +v_isSharedCheck_1740_ = !lean_is_exclusive(v_x_1730_); +if (v_isSharedCheck_1740_ == 0) +{ +v___x_1734_ = v_x_1730_; +v_isShared_1735_ = v_isSharedCheck_1740_; +goto v_resetjp_1733_; +} +else +{ +lean_inc(v_a_1732_); +lean_dec(v_x_1730_); +v___x_1734_ = lean_box(0); +v_isShared_1735_ = v_isSharedCheck_1740_; +goto v_resetjp_1733_; +} +v_resetjp_1733_: +{ +lean_object* v___x_1737_; +if (v_isShared_1735_ == 0) +{ +v___x_1737_ = v___x_1734_; +goto v_reusejp_1736_; +} +else +{ +lean_object* v_reuseFailAlloc_1739_; +v_reuseFailAlloc_1739_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1739_, 0, v_a_1732_); +v___x_1737_ = v_reuseFailAlloc_1739_; +goto v_reusejp_1736_; +} +v_reusejp_1736_: +{ +lean_object* v___x_1738_; +v___x_1738_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1738_, 0, v___x_1737_); +return v___x_1738_; } } } else { -lean_object* v___x_1678_; -v___x_1678_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1678_, 0, v_x_1665_); -return v___x_1678_; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1___boxed(lean_object* v_promise_1679_, lean_object* v_x_1680_, lean_object* v___y_1681_){ -_start: +lean_object* v_a_1741_; lean_object* v___x_1743_; uint8_t v_isShared_1744_; uint8_t v_isSharedCheck_1760_; +v_a_1741_ = lean_ctor_get(v_x_1730_, 0); +v_isSharedCheck_1760_ = !lean_is_exclusive(v_x_1730_); +if (v_isSharedCheck_1760_ == 0) { -lean_object* v_res_1682_; -v_res_1682_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1(v_promise_1679_, v_x_1680_); -lean_dec(v_promise_1679_); -return v_res_1682_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(lean_object* v___x_1683_, lean_object* v___x_1684_, lean_object* v___x_1685_, lean_object* v_waiter_1686_, lean_object* v_a_1687_, lean_object* v___x_1688_, uint8_t v___x_1689_, lean_object* v_a_1690_){ -_start: -{ -if (lean_obj_tag(v_a_1690_) == 0) -{ -lean_object* v___x_1692_; lean_object* v___x_1693_; -lean_dec(v___x_1688_); -lean_dec_ref(v_a_1687_); -lean_dec_ref(v_waiter_1686_); -lean_dec(v___x_1685_); -lean_dec_ref(v___x_1684_); -v___x_1692_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1692_, 0, v___x_1683_); -v___x_1693_ = lean_task_pure(v___x_1692_); -return v___x_1693_; +v___x_1743_ = v_x_1730_; +v_isShared_1744_ = v_isSharedCheck_1760_; +goto v_resetjp_1742_; } else { -lean_object* v_val_1694_; size_t v_sz_1695_; size_t v___x_1696_; lean_object* v___x_1697_; lean_object* v_promise_1698_; lean_object* v___f_1699_; lean_object* v___f_1700_; lean_object* v___x_1701_; lean_object* v___f_1702_; lean_object* v___x_1703_; lean_object* v___f_1704_; lean_object* v___x_1705_; -v_val_1694_ = lean_ctor_get(v_a_1690_, 0); -lean_inc(v_val_1694_); -lean_dec_ref(v_a_1690_); -v_sz_1695_ = lean_array_size(v___x_1684_); -v___x_1696_ = ((size_t)0ULL); -v___x_1697_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1685_, v___x_1684_, v_sz_1695_, v___x_1696_, v___x_1683_); -v_promise_1698_ = lean_ctor_get(v_waiter_1686_, 1); -lean_inc_n(v_promise_1698_, 2); -lean_dec_ref(v_waiter_1686_); -v___f_1699_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1___boxed), 3, 1); -lean_closure_set(v___f_1699_, 0, v_promise_1698_); -v___f_1700_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__0___boxed), 3, 1); -lean_closure_set(v___f_1700_, 0, v_promise_1698_); -v___x_1701_ = lean_box(v___x_1689_); -lean_inc_n(v___x_1688_, 2); -v___f_1702_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed), 6, 4); -lean_closure_set(v___f_1702_, 0, v_a_1687_); -lean_closure_set(v___f_1702_, 1, v___x_1688_); -lean_closure_set(v___f_1702_, 2, v___x_1701_); -lean_closure_set(v___f_1702_, 3, v___f_1700_); -v___x_1703_ = lean_box(v___x_1689_); -v___f_1704_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed), 7, 5); -lean_closure_set(v___f_1704_, 0, v___x_1688_); -lean_closure_set(v___f_1704_, 1, v___x_1703_); -lean_closure_set(v___f_1704_, 2, v___f_1702_); -lean_closure_set(v___f_1704_, 3, v___f_1699_); -lean_closure_set(v___f_1704_, 4, v_val_1694_); -v___x_1705_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1688_, v___x_1689_, v___x_1697_, v___f_1704_); -if (lean_obj_tag(v___x_1705_) == 0) -{ -lean_object* v_a_1706_; lean_object* v___x_1707_; -v_a_1706_ = lean_ctor_get(v___x_1705_, 0); -lean_inc(v_a_1706_); -lean_dec_ref(v___x_1705_); -v___x_1707_ = lean_task_pure(v_a_1706_); -return v___x_1707_; -} -else -{ -lean_object* v_a_1708_; -v_a_1708_ = lean_ctor_get(v___x_1705_, 0); -lean_inc_ref(v_a_1708_); -lean_dec_ref(v___x_1705_); -return v_a_1708_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed(lean_object* v___x_1709_, lean_object* v___x_1710_, lean_object* v___x_1711_, lean_object* v_waiter_1712_, lean_object* v_a_1713_, lean_object* v___x_1714_, lean_object* v___x_1715_, lean_object* v_a_1716_, lean_object* v___y_1717_){ -_start: -{ -uint8_t v___x_7042__boxed_1718_; lean_object* v_res_1719_; -v___x_7042__boxed_1718_ = lean_unbox(v___x_1715_); -v_res_1719_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4(v___x_1709_, v___x_1710_, v___x_1711_, v_waiter_1712_, v_a_1713_, v___x_1714_, v___x_7042__boxed_1718_, v_a_1716_); -return v_res_1719_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed(lean_object* v_i_1720_, lean_object* v___x_1721_, lean_object* v___x_1722_, lean_object* v_waiter_1723_, lean_object* v_as_1724_, lean_object* v_sz_1725_, lean_object* v_x_1726_, lean_object* v___y_1727_){ -_start: -{ -size_t v_i_boxed_1728_; size_t v_sz_boxed_1729_; lean_object* v_res_1730_; -v_i_boxed_1728_ = lean_unbox_usize(v_i_1720_); -lean_dec(v_i_1720_); -v_sz_boxed_1729_ = lean_unbox_usize(v_sz_1725_); -lean_dec(v_sz_1725_); -v_res_1730_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(v_i_boxed_1728_, v___x_1721_, v___x_1722_, v_waiter_1723_, v_as_1724_, v_sz_boxed_1729_, v_x_1726_); -return v_res_1730_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(lean_object* v___x_1731_, lean_object* v___x_1732_, lean_object* v_waiter_1733_, lean_object* v_as_1734_, size_t v_sz_1735_, size_t v_i_1736_, lean_object* v_b_1737_){ -_start: -{ -uint8_t v___x_1739_; -v___x_1739_ = lean_usize_dec_lt(v_i_1736_, v_sz_1735_); -if (v___x_1739_ == 0) -{ -lean_object* v___x_1740_; lean_object* v___x_1741_; -lean_dec_ref(v_as_1734_); -lean_dec_ref(v_waiter_1733_); -lean_dec(v___x_1732_); -lean_dec_ref(v___x_1731_); -v___x_1740_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1740_, 0, v_b_1737_); -v___x_1741_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1741_, 0, v___x_1740_); -return v___x_1741_; -} -else -{ -lean_object* v___x_1742_; lean_object* v___x_1743_; lean_object* v___f_1744_; lean_object* v___x_1745_; uint8_t v___x_1746_; lean_object* v_a_1747_; lean_object* v___x_1748_; lean_object* v___f_1749_; lean_object* v___x_1750_; lean_object* v___f_1751_; lean_object* v___x_1752_; lean_object* v___x_1753_; lean_object* v___x_1754_; lean_object* v___x_1755_; lean_object* v___x_1756_; lean_object* v___f_1757_; uint8_t v___x_1758_; lean_object* v___x_1759_; -v___x_1742_ = lean_io_promise_new(); +lean_inc(v_a_1741_); +lean_dec(v_x_1730_); v___x_1743_ = lean_box(0); -v___f_1744_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); -v___x_1745_ = lean_unsigned_to_nat(0u); -v___x_1746_ = lean_nat_dec_eq(v___x_1732_, v___x_1745_); -v_a_1747_ = lean_array_uget_borrowed(v_as_1734_, v_i_1736_); -v___x_1748_ = lean_box(v___x_1746_); -lean_inc_n(v_a_1747_, 2); -lean_inc_ref_n(v_waiter_1733_, 2); -lean_inc(v___x_1732_); -lean_inc_ref(v___x_1731_); -v___f_1749_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed), 9, 7); -lean_closure_set(v___f_1749_, 0, v___x_1743_); -lean_closure_set(v___f_1749_, 1, v___x_1731_); -lean_closure_set(v___f_1749_, 2, v___x_1732_); -lean_closure_set(v___f_1749_, 3, v_waiter_1733_); -lean_closure_set(v___f_1749_, 4, v_a_1747_); -lean_closure_set(v___f_1749_, 5, v___x_1745_); -lean_closure_set(v___f_1749_, 6, v___x_1748_); -v___x_1750_ = lean_box(v___x_1746_); -v___f_1751_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___boxed), 9, 7); -lean_closure_set(v___f_1751_, 0, v_waiter_1733_); -lean_closure_set(v___f_1751_, 1, v_a_1747_); -lean_closure_set(v___f_1751_, 2, v___f_1749_); -lean_closure_set(v___f_1751_, 3, v___x_1745_); -lean_closure_set(v___f_1751_, 4, v___x_1750_); -lean_closure_set(v___f_1751_, 5, v___x_1743_); -lean_closure_set(v___f_1751_, 6, v___f_1744_); -v___x_1752_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1752_, 0, v___x_1742_); -v___x_1753_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1753_, 0, v___x_1752_); -v___x_1754_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1745_, v___x_1746_, v___x_1753_, v___f_1751_); -v___x_1755_ = lean_box_usize(v_i_1736_); -v___x_1756_ = lean_box_usize(v_sz_1735_); -v___f_1757_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed), 8, 6); -lean_closure_set(v___f_1757_, 0, v___x_1755_); -lean_closure_set(v___f_1757_, 1, v___x_1731_); -lean_closure_set(v___f_1757_, 2, v___x_1732_); -lean_closure_set(v___f_1757_, 3, v_waiter_1733_); -lean_closure_set(v___f_1757_, 4, v_as_1734_); -lean_closure_set(v___f_1757_, 5, v___x_1756_); -v___x_1758_ = 0; -v___x_1759_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1745_, v___x_1758_, v___x_1754_, v___f_1757_); +v_isShared_1744_ = v_isSharedCheck_1760_; +goto v_resetjp_1742_; +} +v_resetjp_1742_: +{ +if (lean_obj_tag(v_a_1741_) == 0) +{ +lean_object* v_a_1745_; lean_object* v___x_1747_; uint8_t v_isShared_1748_; uint8_t v_isSharedCheck_1755_; +lean_dec_ref(v_as_1728_); +lean_dec(v___x_1727_); +v_a_1745_ = lean_ctor_get(v_a_1741_, 0); +v_isSharedCheck_1755_ = !lean_is_exclusive(v_a_1741_); +if (v_isSharedCheck_1755_ == 0) +{ +v___x_1747_ = v_a_1741_; +v_isShared_1748_ = v_isSharedCheck_1755_; +goto v_resetjp_1746_; +} +else +{ +lean_inc(v_a_1745_); +lean_dec(v_a_1741_); +v___x_1747_ = lean_box(0); +v_isShared_1748_ = v_isSharedCheck_1755_; +goto v_resetjp_1746_; +} +v_resetjp_1746_: +{ +lean_object* v___x_1750_; +if (v_isShared_1744_ == 0) +{ +lean_ctor_set(v___x_1743_, 0, v_a_1745_); +v___x_1750_ = v___x_1743_; +goto v_reusejp_1749_; +} +else +{ +lean_object* v_reuseFailAlloc_1754_; +v_reuseFailAlloc_1754_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1754_, 0, v_a_1745_); +v___x_1750_ = v_reuseFailAlloc_1754_; +goto v_reusejp_1749_; +} +v_reusejp_1749_: +{ +lean_object* v___x_1752_; +if (v_isShared_1748_ == 0) +{ +lean_ctor_set(v___x_1747_, 0, v___x_1750_); +v___x_1752_ = v___x_1747_; +goto v_reusejp_1751_; +} +else +{ +lean_object* v_reuseFailAlloc_1753_; +v_reuseFailAlloc_1753_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1753_, 0, v___x_1750_); +v___x_1752_ = v_reuseFailAlloc_1753_; +goto v_reusejp_1751_; +} +v_reusejp_1751_: +{ +return v___x_1752_; +} +} +} +} +else +{ +lean_object* v_a_1756_; size_t v___x_1757_; size_t v___x_1758_; lean_object* v___x_1759_; +lean_del_object(v___x_1743_); +v_a_1756_ = lean_ctor_get(v_a_1741_, 0); +lean_inc(v_a_1756_); +lean_dec_ref(v_a_1741_); +v___x_1757_ = ((size_t)1ULL); +v___x_1758_ = lean_usize_add(v_i_1726_, v___x_1757_); +v___x_1759_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1727_, v_as_1728_, v_sz_1729_, v___x_1758_, v_a_1756_); return v___x_1759_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(size_t v_i_1760_, lean_object* v___x_1761_, lean_object* v___x_1762_, lean_object* v_waiter_1763_, lean_object* v_as_1764_, size_t v_sz_1765_, lean_object* v_x_1766_){ +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg___boxed(lean_object* v___x_1761_, lean_object* v_as_1762_, lean_object* v_sz_1763_, lean_object* v_i_1764_, lean_object* v_b_1765_, lean_object* v___y_1766_){ _start: { -if (lean_obj_tag(v_x_1766_) == 0) +size_t v_sz_boxed_1767_; size_t v_i_boxed_1768_; lean_object* v_res_1769_; +v_sz_boxed_1767_ = lean_unbox_usize(v_sz_1763_); +lean_dec(v_sz_1763_); +v_i_boxed_1768_ = lean_unbox_usize(v_i_1764_); +lean_dec(v_i_1764_); +v_res_1769_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1761_, v_as_1762_, v_sz_boxed_1767_, v_i_boxed_1768_, v_b_1765_); +return v_res_1769_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(lean_object* v___x_1770_, lean_object* v___x_1771_, lean_object* v___x_1772_, lean_object* v___x_1773_, uint8_t v___x_1774_, lean_object* v___f_1775_, lean_object* v_x_1776_){ +_start: { -lean_object* v_a_1768_; lean_object* v___x_1770_; uint8_t v_isShared_1771_; uint8_t v_isSharedCheck_1776_; -lean_dec_ref(v_as_1764_); -lean_dec_ref(v_waiter_1763_); -lean_dec(v___x_1762_); -lean_dec_ref(v___x_1761_); -v_a_1768_ = lean_ctor_get(v_x_1766_, 0); -v_isSharedCheck_1776_ = !lean_is_exclusive(v_x_1766_); -if (v_isSharedCheck_1776_ == 0) +if (lean_obj_tag(v_x_1776_) == 0) { -v___x_1770_ = v_x_1766_; -v_isShared_1771_ = v_isSharedCheck_1776_; -goto v_resetjp_1769_; +lean_object* v___x_1778_; +lean_dec_ref(v___f_1775_); +lean_dec(v___x_1773_); +lean_dec(v___x_1771_); +lean_dec_ref(v___x_1770_); +v___x_1778_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1778_, 0, v_x_1776_); +return v___x_1778_; } else { -lean_inc(v_a_1768_); -lean_dec(v_x_1766_); -v___x_1770_ = lean_box(0); -v_isShared_1771_ = v_isSharedCheck_1776_; -goto v_resetjp_1769_; +size_t v_sz_1779_; size_t v___x_1780_; lean_object* v___x_1781_; lean_object* v___x_1782_; +lean_dec_ref(v_x_1776_); +v_sz_1779_ = lean_array_size(v___x_1770_); +v___x_1780_ = ((size_t)0ULL); +v___x_1781_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1771_, v___x_1770_, v_sz_1779_, v___x_1780_, v___x_1772_); +v___x_1782_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1773_, v___x_1774_, v___x_1781_, v___f_1775_); +return v___x_1782_; } -v_resetjp_1769_: +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed(lean_object* v___x_1783_, lean_object* v___x_1784_, lean_object* v___x_1785_, lean_object* v___x_1786_, lean_object* v___x_1787_, lean_object* v___f_1788_, lean_object* v_x_1789_, lean_object* v___y_1790_){ +_start: { -lean_object* v___x_1773_; -if (v_isShared_1771_ == 0) +uint8_t v___x_7659__boxed_1791_; lean_object* v_res_1792_; +v___x_7659__boxed_1791_ = lean_unbox(v___x_1787_); +v_res_1792_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5(v___x_1783_, v___x_1784_, v___x_1785_, v___x_1786_, v___x_7659__boxed_1791_, v___f_1788_, v_x_1789_); +return v_res_1792_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1(lean_object* v_promise_1793_, lean_object* v_x_1794_){ +_start: { -v___x_1773_ = v___x_1770_; -goto v_reusejp_1772_; +if (lean_obj_tag(v_x_1794_) == 0) +{ +lean_object* v_a_1796_; lean_object* v___x_1798_; uint8_t v_isShared_1799_; uint8_t v_isSharedCheck_1804_; +v_a_1796_ = lean_ctor_get(v_x_1794_, 0); +v_isSharedCheck_1804_ = !lean_is_exclusive(v_x_1794_); +if (v_isSharedCheck_1804_ == 0) +{ +v___x_1798_ = v_x_1794_; +v_isShared_1799_ = v_isSharedCheck_1804_; +goto v_resetjp_1797_; } else { -lean_object* v_reuseFailAlloc_1775_; -v_reuseFailAlloc_1775_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1775_, 0, v_a_1768_); -v___x_1773_ = v_reuseFailAlloc_1775_; -goto v_reusejp_1772_; +lean_inc(v_a_1796_); +lean_dec(v_x_1794_); +v___x_1798_ = lean_box(0); +v_isShared_1799_ = v_isSharedCheck_1804_; +goto v_resetjp_1797_; } -v_reusejp_1772_: +v_resetjp_1797_: { -lean_object* v___x_1774_; -v___x_1774_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1774_, 0, v___x_1773_); -return v___x_1774_; +lean_object* v___x_1801_; +if (v_isShared_1799_ == 0) +{ +v___x_1801_ = v___x_1798_; +goto v_reusejp_1800_; +} +else +{ +lean_object* v_reuseFailAlloc_1803_; +v_reuseFailAlloc_1803_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1803_, 0, v_a_1796_); +v___x_1801_ = v_reuseFailAlloc_1803_; +goto v_reusejp_1800_; +} +v_reusejp_1800_: +{ +lean_object* v___x_1802_; +v___x_1802_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1802_, 0, v___x_1801_); +return v___x_1802_; } } } else { -lean_object* v_a_1777_; lean_object* v___x_1779_; uint8_t v_isShared_1780_; uint8_t v_isSharedCheck_1796_; -v_a_1777_ = lean_ctor_get(v_x_1766_, 0); -v_isSharedCheck_1796_ = !lean_is_exclusive(v_x_1766_); -if (v_isSharedCheck_1796_ == 0) +lean_object* v___x_1805_; lean_object* v___x_1806_; lean_object* v___x_1807_; +v___x_1805_ = lean_io_promise_resolve(v_x_1794_, v_promise_1793_); +v___x_1806_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1806_, 0, v___x_1805_); +v___x_1807_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1807_, 0, v___x_1806_); +return v___x_1807_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1___boxed(lean_object* v_promise_1808_, lean_object* v_x_1809_, lean_object* v___y_1810_){ +_start: { -v___x_1779_ = v_x_1766_; -v_isShared_1780_ = v_isSharedCheck_1796_; -goto v_resetjp_1778_; +lean_object* v_res_1811_; +v_res_1811_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1(v_promise_1808_, v_x_1809_); +lean_dec(v_promise_1808_); +return v_res_1811_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(lean_object* v___x_1812_, lean_object* v_promise_1813_, lean_object* v_a_1814_, lean_object* v___x_1815_, uint8_t v___x_1816_, lean_object* v___x_1817_, lean_object* v___x_1818_, lean_object* v_a_1819_, lean_object* v___f_1820_, lean_object* v_a_1821_){ +_start: +{ +if (lean_obj_tag(v_a_1821_) == 0) +{ +lean_object* v___x_1823_; lean_object* v___x_1824_; +lean_dec_ref(v___f_1820_); +lean_dec(v___x_1818_); +lean_dec_ref(v___x_1817_); +lean_dec(v___x_1815_); +lean_dec_ref(v_a_1814_); +lean_dec(v_promise_1813_); +v___x_1823_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1823_, 0, v___x_1812_); +v___x_1824_ = lean_task_pure(v___x_1823_); +return v___x_1824_; } else { -lean_inc(v_a_1777_); -lean_dec(v_x_1766_); -v___x_1779_ = lean_box(0); -v_isShared_1780_ = v_isSharedCheck_1796_; -goto v_resetjp_1778_; -} -v_resetjp_1778_: +lean_object* v_val_1825_; lean_object* v___x_1827_; uint8_t v_isShared_1828_; uint8_t v_isSharedCheck_1846_; +v_val_1825_ = lean_ctor_get(v_a_1821_, 0); +v_isSharedCheck_1846_ = !lean_is_exclusive(v_a_1821_); +if (v_isSharedCheck_1846_ == 0) { -if (lean_obj_tag(v_a_1777_) == 0) -{ -lean_object* v_a_1781_; lean_object* v___x_1783_; uint8_t v_isShared_1784_; uint8_t v_isSharedCheck_1791_; -lean_dec_ref(v_as_1764_); -lean_dec_ref(v_waiter_1763_); -lean_dec(v___x_1762_); -lean_dec_ref(v___x_1761_); -v_a_1781_ = lean_ctor_get(v_a_1777_, 0); -v_isSharedCheck_1791_ = !lean_is_exclusive(v_a_1777_); -if (v_isSharedCheck_1791_ == 0) -{ -v___x_1783_ = v_a_1777_; -v_isShared_1784_ = v_isSharedCheck_1791_; -goto v_resetjp_1782_; +v___x_1827_ = v_a_1821_; +v_isShared_1828_ = v_isSharedCheck_1846_; +goto v_resetjp_1826_; } else { -lean_inc(v_a_1781_); -lean_dec(v_a_1777_); -v___x_1783_ = lean_box(0); -v_isShared_1784_ = v_isSharedCheck_1791_; -goto v_resetjp_1782_; +lean_inc(v_val_1825_); +lean_dec(v_a_1821_); +v___x_1827_ = lean_box(0); +v_isShared_1828_ = v_isSharedCheck_1846_; +goto v_resetjp_1826_; } -v_resetjp_1782_: +v_resetjp_1826_: { -lean_object* v___x_1786_; -if (v_isShared_1780_ == 0) +lean_object* v___f_1829_; lean_object* v___f_1830_; lean_object* v___x_1831_; lean_object* v___f_1832_; lean_object* v___x_1833_; lean_object* v___f_1834_; lean_object* v___x_1835_; lean_object* v___f_1836_; lean_object* v___x_1837_; lean_object* v___x_1838_; lean_object* v___x_1840_; +lean_inc(v_promise_1813_); +v___f_1829_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_1829_, 0, v_promise_1813_); +v___f_1830_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_1830_, 0, v_promise_1813_); +v___x_1831_ = lean_box(v___x_1816_); +lean_inc_n(v___x_1815_, 4); +v___f_1832_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__3___boxed), 6, 4); +lean_closure_set(v___f_1832_, 0, v_a_1814_); +lean_closure_set(v___f_1832_, 1, v___x_1815_); +lean_closure_set(v___f_1832_, 2, v___x_1831_); +lean_closure_set(v___f_1832_, 3, v___f_1830_); +v___x_1833_ = lean_box(v___x_1816_); +v___f_1834_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__4___boxed), 7, 5); +lean_closure_set(v___f_1834_, 0, v___x_1815_); +lean_closure_set(v___f_1834_, 1, v___x_1833_); +lean_closure_set(v___f_1834_, 2, v___f_1832_); +lean_closure_set(v___f_1834_, 3, v___f_1829_); +lean_closure_set(v___f_1834_, 4, v_val_1825_); +v___x_1835_ = lean_box(v___x_1816_); +v___f_1836_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__5___boxed), 8, 6); +lean_closure_set(v___f_1836_, 0, v___x_1817_); +lean_closure_set(v___f_1836_, 1, v___x_1818_); +lean_closure_set(v___f_1836_, 2, v___x_1812_); +lean_closure_set(v___f_1836_, 3, v___x_1815_); +lean_closure_set(v___f_1836_, 4, v___x_1835_); +lean_closure_set(v___f_1836_, 5, v___f_1834_); +v___x_1837_ = l_IO_Promise_result_x21___redArg(v_a_1819_); +v___x_1838_ = lean_task_map(v___f_1820_, v___x_1837_, v___x_1815_, v___x_1816_); +if (v_isShared_1828_ == 0) { -lean_ctor_set(v___x_1779_, 0, v_a_1781_); -v___x_1786_ = v___x_1779_; -goto v_reusejp_1785_; +lean_ctor_set(v___x_1827_, 0, v___x_1838_); +v___x_1840_ = v___x_1827_; +goto v_reusejp_1839_; } else { -lean_object* v_reuseFailAlloc_1790_; -v_reuseFailAlloc_1790_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1790_, 0, v_a_1781_); -v___x_1786_ = v_reuseFailAlloc_1790_; -goto v_reusejp_1785_; +lean_object* v_reuseFailAlloc_1845_; +v_reuseFailAlloc_1845_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1845_, 0, v___x_1838_); +v___x_1840_ = v_reuseFailAlloc_1845_; +goto v_reusejp_1839_; } -v_reusejp_1785_: +v_reusejp_1839_: { -lean_object* v___x_1788_; -if (v_isShared_1784_ == 0) +lean_object* v___x_1841_; +v___x_1841_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1815_, v___x_1816_, v___x_1840_, v___f_1836_); +if (lean_obj_tag(v___x_1841_) == 0) { -lean_ctor_set(v___x_1783_, 0, v___x_1786_); -v___x_1788_ = v___x_1783_; -goto v_reusejp_1787_; +lean_object* v_a_1842_; lean_object* v___x_1843_; +v_a_1842_ = lean_ctor_get(v___x_1841_, 0); +lean_inc(v_a_1842_); +lean_dec_ref(v___x_1841_); +v___x_1843_ = lean_task_pure(v_a_1842_); +return v___x_1843_; } else { -lean_object* v_reuseFailAlloc_1789_; -v_reuseFailAlloc_1789_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1789_, 0, v___x_1786_); -v___x_1788_ = v_reuseFailAlloc_1789_; -goto v_reusejp_1787_; +lean_object* v_a_1844_; +v_a_1844_ = lean_ctor_get(v___x_1841_, 0); +lean_inc_ref(v_a_1844_); +lean_dec_ref(v___x_1841_); +return v_a_1844_; } -v_reusejp_1787_: +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___boxed(lean_object* v___x_1847_, lean_object* v_promise_1848_, lean_object* v_a_1849_, lean_object* v___x_1850_, lean_object* v___x_1851_, lean_object* v___x_1852_, lean_object* v___x_1853_, lean_object* v_a_1854_, lean_object* v___f_1855_, lean_object* v_a_1856_, lean_object* v___y_1857_){ +_start: { -return v___x_1788_; +uint8_t v___x_7722__boxed_1858_; lean_object* v_res_1859_; +v___x_7722__boxed_1858_ = lean_unbox(v___x_1851_); +v_res_1859_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6(v___x_1847_, v_promise_1848_, v_a_1849_, v___x_1850_, v___x_7722__boxed_1858_, v___x_1852_, v___x_1853_, v_a_1854_, v___f_1855_, v_a_1856_); +lean_dec(v_a_1854_); +return v_res_1859_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(lean_object* v___x_1860_, lean_object* v_promise_1861_, lean_object* v_a_1862_, lean_object* v___x_1863_, uint8_t v___x_1864_, lean_object* v___x_1865_, lean_object* v___x_1866_, lean_object* v___f_1867_, lean_object* v_a_1868_, lean_object* v___f_1869_, lean_object* v_x_1870_){ +_start: +{ +if (lean_obj_tag(v_x_1870_) == 0) +{ +lean_object* v_a_1872_; lean_object* v___x_1874_; uint8_t v_isShared_1875_; uint8_t v_isSharedCheck_1880_; +lean_dec_ref(v___f_1869_); +lean_dec_ref(v___f_1867_); +lean_dec(v___x_1866_); +lean_dec_ref(v___x_1865_); +lean_dec(v___x_1863_); +lean_dec_ref(v_a_1862_); +lean_dec(v_promise_1861_); +v_a_1872_ = lean_ctor_get(v_x_1870_, 0); +v_isSharedCheck_1880_ = !lean_is_exclusive(v_x_1870_); +if (v_isSharedCheck_1880_ == 0) +{ +v___x_1874_ = v_x_1870_; +v_isShared_1875_ = v_isSharedCheck_1880_; +goto v_resetjp_1873_; +} +else +{ +lean_inc(v_a_1872_); +lean_dec(v_x_1870_); +v___x_1874_ = lean_box(0); +v_isShared_1875_ = v_isSharedCheck_1880_; +goto v_resetjp_1873_; +} +v_resetjp_1873_: +{ +lean_object* v___x_1877_; +if (v_isShared_1875_ == 0) +{ +v___x_1877_ = v___x_1874_; +goto v_reusejp_1876_; +} +else +{ +lean_object* v_reuseFailAlloc_1879_; +v_reuseFailAlloc_1879_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1879_, 0, v_a_1872_); +v___x_1877_ = v_reuseFailAlloc_1879_; +goto v_reusejp_1876_; +} +v_reusejp_1876_: +{ +lean_object* v___x_1878_; +v___x_1878_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1878_, 0, v___x_1877_); +return v___x_1878_; +} +} +} +else +{ +lean_object* v_a_1881_; lean_object* v___x_1883_; uint8_t v_isShared_1884_; uint8_t v_isSharedCheck_1894_; +v_a_1881_ = lean_ctor_get(v_x_1870_, 0); +v_isSharedCheck_1894_ = !lean_is_exclusive(v_x_1870_); +if (v_isSharedCheck_1894_ == 0) +{ +v___x_1883_ = v_x_1870_; +v_isShared_1884_ = v_isSharedCheck_1894_; +goto v_resetjp_1882_; +} +else +{ +lean_inc(v_a_1881_); +lean_dec(v_x_1870_); +v___x_1883_ = lean_box(0); +v_isShared_1884_ = v_isSharedCheck_1894_; +goto v_resetjp_1882_; +} +v_resetjp_1882_: +{ +lean_object* v___x_1885_; lean_object* v___f_1886_; lean_object* v___x_1887_; lean_object* v___x_1888_; lean_object* v___x_1890_; +v___x_1885_ = lean_box(v___x_1864_); +lean_inc_n(v___x_1863_, 2); +v___f_1886_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__6___boxed), 11, 9); +lean_closure_set(v___f_1886_, 0, v___x_1860_); +lean_closure_set(v___f_1886_, 1, v_promise_1861_); +lean_closure_set(v___f_1886_, 2, v_a_1862_); +lean_closure_set(v___f_1886_, 3, v___x_1863_); +lean_closure_set(v___f_1886_, 4, v___x_1885_); +lean_closure_set(v___f_1886_, 5, v___x_1865_); +lean_closure_set(v___f_1886_, 6, v___x_1866_); +lean_closure_set(v___f_1886_, 7, v_a_1881_); +lean_closure_set(v___f_1886_, 8, v___f_1867_); +v___x_1887_ = lean_io_promise_result_opt(v_a_1868_); +v___x_1888_ = lean_io_bind_task(v___x_1887_, v___f_1886_, v___x_1863_, v___x_1864_); +lean_dec_ref(v___x_1888_); +if (v_isShared_1884_ == 0) +{ +lean_ctor_set(v___x_1883_, 0, v___x_1860_); +v___x_1890_ = v___x_1883_; +goto v_reusejp_1889_; +} +else +{ +lean_object* v_reuseFailAlloc_1893_; +v_reuseFailAlloc_1893_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1893_, 0, v___x_1860_); +v___x_1890_ = v_reuseFailAlloc_1893_; +goto v_reusejp_1889_; +} +v_reusejp_1889_: +{ +lean_object* v___x_1891_; lean_object* v___x_1892_; +v___x_1891_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1891_, 0, v___x_1890_); +v___x_1892_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1863_, v___x_1864_, v___x_1891_, v___f_1869_); +return v___x_1892_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed(lean_object* v___x_1895_, lean_object* v_promise_1896_, lean_object* v_a_1897_, lean_object* v___x_1898_, lean_object* v___x_1899_, lean_object* v___x_1900_, lean_object* v___x_1901_, lean_object* v___f_1902_, lean_object* v_a_1903_, lean_object* v___f_1904_, lean_object* v_x_1905_, lean_object* v___y_1906_){ +_start: +{ +uint8_t v___x_7794__boxed_1907_; lean_object* v_res_1908_; +v___x_7794__boxed_1907_ = lean_unbox(v___x_1899_); +v_res_1908_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7(v___x_1895_, v_promise_1896_, v_a_1897_, v___x_1898_, v___x_7794__boxed_1907_, v___x_1900_, v___x_1901_, v___f_1902_, v_a_1903_, v___f_1904_, v_x_1905_); +lean_dec(v_a_1903_); +return v_res_1908_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8(lean_object* v___x_1909_, uint8_t v___x_1910_, lean_object* v___f_1911_, lean_object* v_x_1912_){ +_start: +{ +if (lean_obj_tag(v_x_1912_) == 0) +{ +lean_object* v_a_1914_; lean_object* v___x_1916_; uint8_t v_isShared_1917_; uint8_t v_isSharedCheck_1922_; +lean_dec_ref(v___f_1911_); +lean_dec(v___x_1909_); +v_a_1914_ = lean_ctor_get(v_x_1912_, 0); +v_isSharedCheck_1922_ = !lean_is_exclusive(v_x_1912_); +if (v_isSharedCheck_1922_ == 0) +{ +v___x_1916_ = v_x_1912_; +v_isShared_1917_ = v_isSharedCheck_1922_; +goto v_resetjp_1915_; +} +else +{ +lean_inc(v_a_1914_); +lean_dec(v_x_1912_); +v___x_1916_ = lean_box(0); +v_isShared_1917_ = v_isSharedCheck_1922_; +goto v_resetjp_1915_; +} +v_resetjp_1915_: +{ +lean_object* v___x_1919_; +if (v_isShared_1917_ == 0) +{ +v___x_1919_ = v___x_1916_; +goto v_reusejp_1918_; +} +else +{ +lean_object* v_reuseFailAlloc_1921_; +v_reuseFailAlloc_1921_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1921_, 0, v_a_1914_); +v___x_1919_ = v_reuseFailAlloc_1921_; +goto v_reusejp_1918_; +} +v_reusejp_1918_: +{ +lean_object* v___x_1920_; +v___x_1920_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1920_, 0, v___x_1919_); +return v___x_1920_; +} +} +} +else +{ +lean_object* v___x_1924_; uint8_t v_isShared_1925_; uint8_t v_isSharedCheck_1932_; +v_isSharedCheck_1932_ = !lean_is_exclusive(v_x_1912_); +if (v_isSharedCheck_1932_ == 0) +{ +lean_object* v_unused_1933_; +v_unused_1933_ = lean_ctor_get(v_x_1912_, 0); +lean_dec(v_unused_1933_); +v___x_1924_ = v_x_1912_; +v_isShared_1925_ = v_isSharedCheck_1932_; +goto v_resetjp_1923_; +} +else +{ +lean_dec(v_x_1912_); +v___x_1924_ = lean_box(0); +v_isShared_1925_ = v_isSharedCheck_1932_; +goto v_resetjp_1923_; +} +v_resetjp_1923_: +{ +lean_object* v___x_1926_; lean_object* v___x_1928_; +v___x_1926_ = lean_io_promise_new(); +if (v_isShared_1925_ == 0) +{ +lean_ctor_set(v___x_1924_, 0, v___x_1926_); +v___x_1928_ = v___x_1924_; +goto v_reusejp_1927_; +} +else +{ +lean_object* v_reuseFailAlloc_1931_; +v_reuseFailAlloc_1931_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1931_, 0, v___x_1926_); +v___x_1928_ = v_reuseFailAlloc_1931_; +goto v_reusejp_1927_; +} +v_reusejp_1927_: +{ +lean_object* v___x_1929_; lean_object* v___x_1930_; +v___x_1929_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1929_, 0, v___x_1928_); +v___x_1930_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1909_, v___x_1910_, v___x_1929_, v___f_1911_); +return v___x_1930_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8___boxed(lean_object* v___x_1934_, lean_object* v___x_1935_, lean_object* v___f_1936_, lean_object* v_x_1937_, lean_object* v___y_1938_){ +_start: +{ +uint8_t v___x_7869__boxed_1939_; lean_object* v_res_1940_; +v___x_7869__boxed_1939_ = lean_unbox(v___x_1935_); +v_res_1940_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8(v___x_1934_, v___x_7869__boxed_1939_, v___f_1936_, v_x_1937_); +return v_res_1940_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9(lean_object* v_waiter_1941_, lean_object* v_a_1942_, lean_object* v___x_1943_, lean_object* v___x_1944_, uint8_t v___x_1945_, lean_object* v___x_1946_, lean_object* v___x_1947_, lean_object* v___f_1948_, lean_object* v___f_1949_, lean_object* v_x_1950_){ +_start: +{ +if (lean_obj_tag(v_x_1950_) == 0) +{ +lean_object* v_a_1952_; lean_object* v___x_1954_; uint8_t v_isShared_1955_; uint8_t v_isSharedCheck_1960_; +lean_dec_ref(v___f_1949_); +lean_dec_ref(v___f_1948_); +lean_dec(v___x_1947_); +lean_dec_ref(v___x_1946_); +lean_dec(v___x_1944_); +lean_dec_ref(v_a_1942_); +lean_dec_ref(v_waiter_1941_); +v_a_1952_ = lean_ctor_get(v_x_1950_, 0); +v_isSharedCheck_1960_ = !lean_is_exclusive(v_x_1950_); +if (v_isSharedCheck_1960_ == 0) +{ +v___x_1954_ = v_x_1950_; +v_isShared_1955_ = v_isSharedCheck_1960_; +goto v_resetjp_1953_; +} +else +{ +lean_inc(v_a_1952_); +lean_dec(v_x_1950_); +v___x_1954_ = lean_box(0); +v_isShared_1955_ = v_isSharedCheck_1960_; +goto v_resetjp_1953_; +} +v_resetjp_1953_: +{ +lean_object* v___x_1957_; +if (v_isShared_1955_ == 0) +{ +v___x_1957_ = v___x_1954_; +goto v_reusejp_1956_; +} +else +{ +lean_object* v_reuseFailAlloc_1959_; +v_reuseFailAlloc_1959_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1959_, 0, v_a_1952_); +v___x_1957_ = v_reuseFailAlloc_1959_; +goto v_reusejp_1956_; +} +v_reusejp_1956_: +{ +lean_object* v___x_1958_; +v___x_1958_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1958_, 0, v___x_1957_); +return v___x_1958_; +} +} +} +else +{ +lean_object* v_selector_1961_; lean_object* v_a_1962_; lean_object* v_finished_1963_; lean_object* v_promise_1964_; lean_object* v___x_1966_; uint8_t v_isShared_1967_; uint8_t v_isSharedCheck_1978_; +v_selector_1961_ = lean_ctor_get(v_a_1942_, 0); +v_a_1962_ = lean_ctor_get(v_x_1950_, 0); +lean_inc(v_a_1962_); +lean_dec_ref(v_x_1950_); +v_finished_1963_ = lean_ctor_get(v_waiter_1941_, 0); +v_promise_1964_ = lean_ctor_get(v_waiter_1941_, 1); +v_isSharedCheck_1978_ = !lean_is_exclusive(v_waiter_1941_); +if (v_isSharedCheck_1978_ == 0) +{ +v___x_1966_ = v_waiter_1941_; +v_isShared_1967_ = v_isSharedCheck_1978_; +goto v_resetjp_1965_; +} +else +{ +lean_inc(v_promise_1964_); +lean_inc(v_finished_1963_); +lean_dec(v_waiter_1941_); +v___x_1966_ = lean_box(0); +v_isShared_1967_ = v_isSharedCheck_1978_; +goto v_resetjp_1965_; +} +v_resetjp_1965_: +{ +lean_object* v_registerFn_1968_; lean_object* v___x_1970_; +v_registerFn_1968_ = lean_ctor_get(v_selector_1961_, 1); +lean_inc(v_a_1962_); +if (v_isShared_1967_ == 0) +{ +lean_ctor_set(v___x_1966_, 1, v_a_1962_); +v___x_1970_ = v___x_1966_; +goto v_reusejp_1969_; +} +else +{ +lean_object* v_reuseFailAlloc_1977_; +v_reuseFailAlloc_1977_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1977_, 0, v_finished_1963_); +lean_ctor_set(v_reuseFailAlloc_1977_, 1, v_a_1962_); +v___x_1970_ = v_reuseFailAlloc_1977_; +goto v_reusejp_1969_; +} +v_reusejp_1969_: +{ +lean_object* v___x_1971_; lean_object* v___x_1972_; lean_object* v___f_1973_; lean_object* v___x_1974_; lean_object* v___f_1975_; lean_object* v___x_1976_; +lean_inc_ref(v_registerFn_1968_); +v___x_1971_ = lean_apply_2(v_registerFn_1968_, v___x_1970_, lean_box(0)); +v___x_1972_ = lean_box(v___x_1945_); +lean_inc_n(v___x_1944_, 2); +v___f_1973_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__7___boxed), 12, 10); +lean_closure_set(v___f_1973_, 0, v___x_1943_); +lean_closure_set(v___f_1973_, 1, v_promise_1964_); +lean_closure_set(v___f_1973_, 2, v_a_1942_); +lean_closure_set(v___f_1973_, 3, v___x_1944_); +lean_closure_set(v___f_1973_, 4, v___x_1972_); +lean_closure_set(v___f_1973_, 5, v___x_1946_); +lean_closure_set(v___f_1973_, 6, v___x_1947_); +lean_closure_set(v___f_1973_, 7, v___f_1948_); +lean_closure_set(v___f_1973_, 8, v_a_1962_); +lean_closure_set(v___f_1973_, 9, v___f_1949_); +v___x_1974_ = lean_box(v___x_1945_); +v___f_1975_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__8___boxed), 5, 3); +lean_closure_set(v___f_1975_, 0, v___x_1944_); +lean_closure_set(v___f_1975_, 1, v___x_1974_); +lean_closure_set(v___f_1975_, 2, v___f_1973_); +v___x_1976_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1944_, v___x_1945_, v___x_1971_, v___f_1975_); +return v___x_1976_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9___boxed(lean_object* v_waiter_1979_, lean_object* v_a_1980_, lean_object* v___x_1981_, lean_object* v___x_1982_, lean_object* v___x_1983_, lean_object* v___x_1984_, lean_object* v___x_1985_, lean_object* v___f_1986_, lean_object* v___f_1987_, lean_object* v_x_1988_, lean_object* v___y_1989_){ +_start: +{ +uint8_t v___x_7926__boxed_1990_; lean_object* v_res_1991_; +v___x_7926__boxed_1990_ = lean_unbox(v___x_1983_); +v_res_1991_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9(v_waiter_1979_, v_a_1980_, v___x_1981_, v___x_1982_, v___x_7926__boxed_1990_, v___x_1984_, v___x_1985_, v___f_1986_, v___f_1987_, v_x_1988_); +return v_res_1991_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10___boxed(lean_object* v_i_1993_, lean_object* v_waiter_1994_, lean_object* v___x_1995_, lean_object* v___x_1996_, lean_object* v_as_1997_, lean_object* v_sz_1998_, lean_object* v_x_1999_, lean_object* v___y_2000_){ +_start: +{ +size_t v_i_boxed_2001_; size_t v_sz_boxed_2002_; lean_object* v_res_2003_; +v_i_boxed_2001_ = lean_unbox_usize(v_i_1993_); +lean_dec(v_i_1993_); +v_sz_boxed_2002_ = lean_unbox_usize(v_sz_1998_); +lean_dec(v_sz_1998_); +v_res_2003_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10(v_i_boxed_2001_, v_waiter_1994_, v___x_1995_, v___x_1996_, v_as_1997_, v_sz_boxed_2002_, v_x_1999_); +return v_res_2003_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(lean_object* v_waiter_2004_, lean_object* v___x_2005_, lean_object* v___x_2006_, lean_object* v_as_2007_, size_t v_sz_2008_, size_t v_i_2009_, lean_object* v_b_2010_){ +_start: +{ +uint8_t v___x_2012_; +v___x_2012_ = lean_usize_dec_lt(v_i_2009_, v_sz_2008_); +if (v___x_2012_ == 0) +{ +lean_object* v___x_2013_; lean_object* v___x_2014_; +lean_dec_ref(v_as_2007_); +lean_dec_ref(v___x_2006_); +lean_dec(v___x_2005_); +lean_dec_ref(v_waiter_2004_); +v___x_2013_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2013_, 0, v_b_2010_); +v___x_2014_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2014_, 0, v___x_2013_); +return v___x_2014_; +} +else +{ +lean_object* v___x_2015_; lean_object* v___f_2016_; lean_object* v___x_2017_; lean_object* v___f_2018_; lean_object* v___x_2019_; uint8_t v___x_2020_; lean_object* v_a_2021_; lean_object* v___x_2022_; lean_object* v___f_2023_; lean_object* v___x_2024_; lean_object* v___x_2025_; lean_object* v___x_2026_; lean_object* v___x_2027_; lean_object* v___x_2028_; lean_object* v___f_2029_; uint8_t v___x_2030_; lean_object* v___x_2031_; +v___x_2015_ = lean_io_promise_new(); +v___f_2016_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___closed__0)); +v___x_2017_ = lean_box(0); +v___f_2018_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_one_spec__0___redArg___closed__0)); +v___x_2019_ = lean_unsigned_to_nat(0u); +v___x_2020_ = lean_nat_dec_eq(v___x_2005_, v___x_2019_); +v_a_2021_ = lean_array_uget_borrowed(v_as_2007_, v_i_2009_); +v___x_2022_ = lean_box(v___x_2020_); +lean_inc(v___x_2005_); +lean_inc_ref(v___x_2006_); +lean_inc(v_a_2021_); +lean_inc_ref(v_waiter_2004_); +v___f_2023_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__9___boxed), 11, 9); +lean_closure_set(v___f_2023_, 0, v_waiter_2004_); +lean_closure_set(v___f_2023_, 1, v_a_2021_); +lean_closure_set(v___f_2023_, 2, v___x_2017_); +lean_closure_set(v___f_2023_, 3, v___x_2019_); +lean_closure_set(v___f_2023_, 4, v___x_2022_); +lean_closure_set(v___f_2023_, 5, v___x_2006_); +lean_closure_set(v___f_2023_, 6, v___x_2005_); +lean_closure_set(v___f_2023_, 7, v___f_2016_); +lean_closure_set(v___f_2023_, 8, v___f_2018_); +v___x_2024_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2024_, 0, v___x_2015_); +v___x_2025_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2025_, 0, v___x_2024_); +v___x_2026_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2019_, v___x_2020_, v___x_2025_, v___f_2023_); +v___x_2027_ = lean_box_usize(v_i_2009_); +v___x_2028_ = lean_box_usize(v_sz_2008_); +v___f_2029_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10___boxed), 8, 6); +lean_closure_set(v___f_2029_, 0, v___x_2027_); +lean_closure_set(v___f_2029_, 1, v_waiter_2004_); +lean_closure_set(v___f_2029_, 2, v___x_2005_); +lean_closure_set(v___f_2029_, 3, v___x_2006_); +lean_closure_set(v___f_2029_, 4, v_as_2007_); +lean_closure_set(v___f_2029_, 5, v___x_2028_); +v___x_2030_ = 0; +v___x_2031_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2019_, v___x_2030_, v___x_2026_, v___f_2029_); +return v___x_2031_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___lam__10(size_t v_i_2032_, lean_object* v_waiter_2033_, lean_object* v___x_2034_, lean_object* v___x_2035_, lean_object* v_as_2036_, size_t v_sz_2037_, lean_object* v_x_2038_){ +_start: +{ +if (lean_obj_tag(v_x_2038_) == 0) +{ +lean_object* v_a_2040_; lean_object* v___x_2042_; uint8_t v_isShared_2043_; uint8_t v_isSharedCheck_2048_; +lean_dec_ref(v_as_2036_); +lean_dec_ref(v___x_2035_); +lean_dec(v___x_2034_); +lean_dec_ref(v_waiter_2033_); +v_a_2040_ = lean_ctor_get(v_x_2038_, 0); +v_isSharedCheck_2048_ = !lean_is_exclusive(v_x_2038_); +if (v_isSharedCheck_2048_ == 0) +{ +v___x_2042_ = v_x_2038_; +v_isShared_2043_ = v_isSharedCheck_2048_; +goto v_resetjp_2041_; +} +else +{ +lean_inc(v_a_2040_); +lean_dec(v_x_2038_); +v___x_2042_ = lean_box(0); +v_isShared_2043_ = v_isSharedCheck_2048_; +goto v_resetjp_2041_; +} +v_resetjp_2041_: +{ +lean_object* v___x_2045_; +if (v_isShared_2043_ == 0) +{ +v___x_2045_ = v___x_2042_; +goto v_reusejp_2044_; +} +else +{ +lean_object* v_reuseFailAlloc_2047_; +v_reuseFailAlloc_2047_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2047_, 0, v_a_2040_); +v___x_2045_ = v_reuseFailAlloc_2047_; +goto v_reusejp_2044_; +} +v_reusejp_2044_: +{ +lean_object* v___x_2046_; +v___x_2046_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2046_, 0, v___x_2045_); +return v___x_2046_; +} +} +} +else +{ +lean_object* v_a_2049_; lean_object* v___x_2051_; uint8_t v_isShared_2052_; uint8_t v_isSharedCheck_2068_; +v_a_2049_ = lean_ctor_get(v_x_2038_, 0); +v_isSharedCheck_2068_ = !lean_is_exclusive(v_x_2038_); +if (v_isSharedCheck_2068_ == 0) +{ +v___x_2051_ = v_x_2038_; +v_isShared_2052_ = v_isSharedCheck_2068_; +goto v_resetjp_2050_; +} +else +{ +lean_inc(v_a_2049_); +lean_dec(v_x_2038_); +v___x_2051_ = lean_box(0); +v_isShared_2052_ = v_isSharedCheck_2068_; +goto v_resetjp_2050_; +} +v_resetjp_2050_: +{ +if (lean_obj_tag(v_a_2049_) == 0) +{ +lean_object* v_a_2053_; lean_object* v___x_2055_; uint8_t v_isShared_2056_; uint8_t v_isSharedCheck_2063_; +lean_dec_ref(v_as_2036_); +lean_dec_ref(v___x_2035_); +lean_dec(v___x_2034_); +lean_dec_ref(v_waiter_2033_); +v_a_2053_ = lean_ctor_get(v_a_2049_, 0); +v_isSharedCheck_2063_ = !lean_is_exclusive(v_a_2049_); +if (v_isSharedCheck_2063_ == 0) +{ +v___x_2055_ = v_a_2049_; +v_isShared_2056_ = v_isSharedCheck_2063_; +goto v_resetjp_2054_; +} +else +{ +lean_inc(v_a_2053_); +lean_dec(v_a_2049_); +v___x_2055_ = lean_box(0); +v_isShared_2056_ = v_isSharedCheck_2063_; +goto v_resetjp_2054_; +} +v_resetjp_2054_: +{ +lean_object* v___x_2058_; +if (v_isShared_2052_ == 0) +{ +lean_ctor_set(v___x_2051_, 0, v_a_2053_); +v___x_2058_ = v___x_2051_; +goto v_reusejp_2057_; +} +else +{ +lean_object* v_reuseFailAlloc_2062_; +v_reuseFailAlloc_2062_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2062_, 0, v_a_2053_); +v___x_2058_ = v_reuseFailAlloc_2062_; +goto v_reusejp_2057_; +} +v_reusejp_2057_: +{ +lean_object* v___x_2060_; +if (v_isShared_2056_ == 0) +{ +lean_ctor_set(v___x_2055_, 0, v___x_2058_); +v___x_2060_ = v___x_2055_; +goto v_reusejp_2059_; +} +else +{ +lean_object* v_reuseFailAlloc_2061_; +v_reuseFailAlloc_2061_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2061_, 0, v___x_2058_); +v___x_2060_ = v_reuseFailAlloc_2061_; +goto v_reusejp_2059_; +} +v_reusejp_2059_: +{ +return v___x_2060_; } } } } else { -lean_object* v_a_1792_; size_t v___x_1793_; size_t v___x_1794_; lean_object* v___x_1795_; -lean_del_object(v___x_1779_); -v_a_1792_ = lean_ctor_get(v_a_1777_, 0); -lean_inc(v_a_1792_); -lean_dec_ref(v_a_1777_); -v___x_1793_ = ((size_t)1ULL); -v___x_1794_ = lean_usize_add(v_i_1760_, v___x_1793_); -v___x_1795_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v___x_1761_, v___x_1762_, v_waiter_1763_, v_as_1764_, v_sz_1765_, v___x_1794_, v_a_1792_); -return v___x_1795_; +lean_object* v_a_2064_; size_t v___x_2065_; size_t v___x_2066_; lean_object* v___x_2067_; +lean_del_object(v___x_2051_); +v_a_2064_ = lean_ctor_get(v_a_2049_, 0); +lean_inc(v_a_2064_); +lean_dec_ref(v_a_2049_); +v___x_2065_ = ((size_t)1ULL); +v___x_2066_ = lean_usize_add(v_i_2032_, v___x_2065_); +v___x_2067_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v_waiter_2033_, v___x_2034_, v___x_2035_, v_as_2036_, v_sz_2037_, v___x_2066_, v_a_2064_); +return v___x_2067_; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___boxed(lean_object* v___x_1797_, lean_object* v___x_1798_, lean_object* v_waiter_1799_, lean_object* v_as_1800_, lean_object* v_sz_1801_, lean_object* v_i_1802_, lean_object* v_b_1803_, lean_object* v___y_1804_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg___boxed(lean_object* v_waiter_2069_, lean_object* v___x_2070_, lean_object* v___x_2071_, lean_object* v_as_2072_, lean_object* v_sz_2073_, lean_object* v_i_2074_, lean_object* v_b_2075_, lean_object* v___y_2076_){ _start: { -size_t v_sz_boxed_1805_; size_t v_i_boxed_1806_; lean_object* v_res_1807_; -v_sz_boxed_1805_ = lean_unbox_usize(v_sz_1801_); -lean_dec(v_sz_1801_); -v_i_boxed_1806_ = lean_unbox_usize(v_i_1802_); -lean_dec(v_i_1802_); -v_res_1807_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v___x_1797_, v___x_1798_, v_waiter_1799_, v_as_1800_, v_sz_boxed_1805_, v_i_boxed_1806_, v_b_1803_); -return v_res_1807_; +size_t v_sz_boxed_2077_; size_t v_i_boxed_2078_; lean_object* v_res_2079_; +v_sz_boxed_2077_ = lean_unbox_usize(v_sz_2073_); +lean_dec(v_sz_2073_); +v_i_boxed_2078_ = lean_unbox_usize(v_i_2074_); +lean_dec(v_i_2074_); +v_res_2079_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v_waiter_2069_, v___x_2070_, v___x_2071_, v_as_2072_, v_sz_boxed_2077_, v_i_boxed_2078_, v_b_2075_); +return v_res_2079_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0(lean_object* v___x_1808_, lean_object* v___x_1809_, lean_object* v___x_1810_, lean_object* v___x_1811_, uint8_t v___x_1812_, lean_object* v___f_1813_, lean_object* v_waiter_1814_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0(lean_object* v___x_2080_, lean_object* v___x_2081_, lean_object* v___x_2082_, lean_object* v___x_2083_, uint8_t v___x_2084_, lean_object* v___f_2085_, lean_object* v_waiter_2086_){ _start: { -size_t v_sz_1816_; size_t v___x_1817_; lean_object* v___x_1818_; lean_object* v___x_1819_; -v_sz_1816_ = lean_array_size(v___x_1808_); -v___x_1817_ = ((size_t)0ULL); -lean_inc_ref(v___x_1808_); -v___x_1818_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v___x_1808_, v___x_1809_, v_waiter_1814_, v___x_1808_, v_sz_1816_, v___x_1817_, v___x_1810_); -v___x_1819_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1811_, v___x_1812_, v___x_1818_, v___f_1813_); -return v___x_1819_; +size_t v_sz_2088_; size_t v___x_2089_; lean_object* v___x_2090_; lean_object* v___x_2091_; +v_sz_2088_ = lean_array_size(v___x_2080_); +v___x_2089_ = ((size_t)0ULL); +lean_inc_ref(v___x_2080_); +v___x_2090_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v_waiter_2086_, v___x_2081_, v___x_2080_, v___x_2080_, v_sz_2088_, v___x_2089_, v___x_2082_); +v___x_2091_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2083_, v___x_2084_, v___x_2090_, v___f_2085_); +return v___x_2091_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0___boxed(lean_object* v___x_1820_, lean_object* v___x_1821_, lean_object* v___x_1822_, lean_object* v___x_1823_, lean_object* v___x_1824_, lean_object* v___f_1825_, lean_object* v_waiter_1826_, lean_object* v___y_1827_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0___boxed(lean_object* v___x_2092_, lean_object* v___x_2093_, lean_object* v___x_2094_, lean_object* v___x_2095_, lean_object* v___x_2096_, lean_object* v___f_2097_, lean_object* v_waiter_2098_, lean_object* v___y_2099_){ _start: { -uint8_t v___x_7211__boxed_1828_; lean_object* v_res_1829_; -v___x_7211__boxed_1828_ = lean_unbox(v___x_1824_); -v_res_1829_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0(v___x_1820_, v___x_1821_, v___x_1822_, v___x_1823_, v___x_7211__boxed_1828_, v___f_1825_, v_waiter_1826_); -return v_res_1829_; +uint8_t v___x_8123__boxed_2100_; lean_object* v_res_2101_; +v___x_8123__boxed_2100_ = lean_unbox(v___x_2096_); +v_res_2101_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0(v___x_2092_, v___x_2093_, v___x_2094_, v___x_2095_, v___x_8123__boxed_2100_, v___f_2097_, v_waiter_2098_); +return v_res_2101_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3(lean_object* v___x_1830_, lean_object* v___x_1831_, size_t v_sz_1832_, size_t v___x_1833_, lean_object* v___x_1834_, lean_object* v___x_1835_, uint8_t v___x_1836_, lean_object* v___f_1837_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3(lean_object* v___x_2102_, lean_object* v___x_2103_, size_t v_sz_2104_, size_t v___x_2105_, lean_object* v___x_2106_, lean_object* v___x_2107_, uint8_t v___x_2108_, lean_object* v___f_2109_){ _start: { -lean_object* v___x_1839_; lean_object* v___x_1840_; -v___x_1839_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1830_, v___x_1831_, v_sz_1832_, v___x_1833_, v___x_1834_); -v___x_1840_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1835_, v___x_1836_, v___x_1839_, v___f_1837_); -return v___x_1840_; +lean_object* v___x_2111_; lean_object* v___x_2112_; +v___x_2111_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_2102_, v___x_2103_, v_sz_2104_, v___x_2105_, v___x_2106_); +v___x_2112_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2107_, v___x_2108_, v___x_2111_, v___f_2109_); +return v___x_2112_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3___boxed(lean_object* v___x_1841_, lean_object* v___x_1842_, lean_object* v_sz_1843_, lean_object* v___x_1844_, lean_object* v___x_1845_, lean_object* v___x_1846_, lean_object* v___x_1847_, lean_object* v___f_1848_, lean_object* v___y_1849_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3___boxed(lean_object* v___x_2113_, lean_object* v___x_2114_, lean_object* v_sz_2115_, lean_object* v___x_2116_, lean_object* v___x_2117_, lean_object* v___x_2118_, lean_object* v___x_2119_, lean_object* v___f_2120_, lean_object* v___y_2121_){ _start: { -size_t v_sz_boxed_1850_; size_t v___x_7236__boxed_1851_; uint8_t v___x_7239__boxed_1852_; lean_object* v_res_1853_; -v_sz_boxed_1850_ = lean_unbox_usize(v_sz_1843_); -lean_dec(v_sz_1843_); -v___x_7236__boxed_1851_ = lean_unbox_usize(v___x_1844_); -lean_dec(v___x_1844_); -v___x_7239__boxed_1852_ = lean_unbox(v___x_1847_); -v_res_1853_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3(v___x_1841_, v___x_1842_, v_sz_boxed_1850_, v___x_7236__boxed_1851_, v___x_1845_, v___x_1846_, v___x_7239__boxed_1852_, v___f_1848_); -return v_res_1853_; +size_t v_sz_boxed_2122_; size_t v___x_8148__boxed_2123_; uint8_t v___x_8151__boxed_2124_; lean_object* v_res_2125_; +v_sz_boxed_2122_ = lean_unbox_usize(v_sz_2115_); +lean_dec(v_sz_2115_); +v___x_8148__boxed_2123_ = lean_unbox_usize(v___x_2116_); +lean_dec(v___x_2116_); +v___x_8151__boxed_2124_ = lean_unbox(v___x_2119_); +v_res_2125_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3(v___x_2113_, v___x_2114_, v_sz_boxed_2122_, v___x_8148__boxed_2123_, v___x_2117_, v___x_2118_, v___x_8151__boxed_2124_, v___f_2120_); +return v_res_2125_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2(lean_object* v___x_1854_, lean_object* v___x_1855_, size_t v_sz_1856_, size_t v___x_1857_, lean_object* v___x_1858_, lean_object* v___x_1859_, uint8_t v___x_1860_, lean_object* v___f_1861_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2(lean_object* v___x_2126_, lean_object* v___x_2127_, size_t v_sz_2128_, size_t v___x_2129_, lean_object* v___x_2130_, lean_object* v___x_2131_, uint8_t v___x_2132_, lean_object* v___f_2133_){ _start: { -lean_object* v___x_1863_; lean_object* v___x_1864_; -v___x_1863_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_1854_, v___x_1855_, v_sz_1856_, v___x_1857_, v___x_1858_); -v___x_1864_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1859_, v___x_1860_, v___x_1863_, v___f_1861_); -return v___x_1864_; +lean_object* v___x_2135_; lean_object* v___x_2136_; +v___x_2135_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg(v___x_2126_, v___x_2127_, v_sz_2128_, v___x_2129_, v___x_2130_); +v___x_2136_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2131_, v___x_2132_, v___x_2135_, v___f_2133_); +return v___x_2136_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2___boxed(lean_object* v___x_1865_, lean_object* v___x_1866_, lean_object* v_sz_1867_, lean_object* v___x_1868_, lean_object* v___x_1869_, lean_object* v___x_1870_, lean_object* v___x_1871_, lean_object* v___f_1872_, lean_object* v___y_1873_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2___boxed(lean_object* v___x_2137_, lean_object* v___x_2138_, lean_object* v_sz_2139_, lean_object* v___x_2140_, lean_object* v___x_2141_, lean_object* v___x_2142_, lean_object* v___x_2143_, lean_object* v___f_2144_, lean_object* v___y_2145_){ _start: { -size_t v_sz_boxed_1874_; size_t v___x_7264__boxed_1875_; uint8_t v___x_7267__boxed_1876_; lean_object* v_res_1877_; -v_sz_boxed_1874_ = lean_unbox_usize(v_sz_1867_); -lean_dec(v_sz_1867_); -v___x_7264__boxed_1875_ = lean_unbox_usize(v___x_1868_); -lean_dec(v___x_1868_); -v___x_7267__boxed_1876_ = lean_unbox(v___x_1871_); -v_res_1877_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2(v___x_1865_, v___x_1866_, v_sz_boxed_1874_, v___x_7264__boxed_1875_, v___x_1869_, v___x_1870_, v___x_7267__boxed_1876_, v___f_1872_); -return v_res_1877_; +size_t v_sz_boxed_2146_; size_t v___x_8176__boxed_2147_; uint8_t v___x_8179__boxed_2148_; lean_object* v_res_2149_; +v_sz_boxed_2146_ = lean_unbox_usize(v_sz_2139_); +lean_dec(v_sz_2139_); +v___x_8176__boxed_2147_ = lean_unbox_usize(v___x_2140_); +lean_dec(v___x_2140_); +v___x_8179__boxed_2148_ = lean_unbox(v___x_2143_); +v_res_2149_ = l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2(v___x_2137_, v___x_2138_, v_sz_boxed_2146_, v___x_8176__boxed_2147_, v___x_2141_, v___x_2142_, v___x_8179__boxed_2148_, v___f_2144_); +return v_res_2149_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg(lean_object* v_selectables_1882_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg(lean_object* v_selectables_2154_){ _start: { -lean_object* v___x_1884_; lean_object* v___x_1885_; uint8_t v___x_1886_; -v___x_1884_ = lean_array_get_size(v_selectables_1882_); -v___x_1885_ = lean_unsigned_to_nat(0u); -v___x_1886_ = lean_nat_dec_eq(v___x_1884_, v___x_1885_); -if (v___x_1886_ == 0) +lean_object* v___x_2156_; lean_object* v___x_2157_; uint8_t v___x_2158_; +v___x_2156_ = lean_array_get_size(v_selectables_2154_); +v___x_2157_ = lean_unsigned_to_nat(0u); +v___x_2158_ = lean_nat_dec_eq(v___x_2156_, v___x_2157_); +if (v___x_2158_ == 0) { -size_t v___x_1887_; lean_object* v___x_1888_; -v___x_1887_ = ((size_t)8ULL); -v___x_1888_ = lean_io_get_random_bytes(v___x_1887_); -if (lean_obj_tag(v___x_1888_) == 0) +size_t v___x_2159_; lean_object* v___x_2160_; +v___x_2159_ = ((size_t)8ULL); +v___x_2160_ = lean_io_get_random_bytes(v___x_2159_); +if (lean_obj_tag(v___x_2160_) == 0) { -lean_object* v_a_1889_; lean_object* v___x_1891_; uint8_t v_isShared_1892_; uint8_t v_isSharedCheck_1916_; -v_a_1889_ = lean_ctor_get(v___x_1888_, 0); -v_isSharedCheck_1916_ = !lean_is_exclusive(v___x_1888_); -if (v_isSharedCheck_1916_ == 0) +lean_object* v_a_2161_; lean_object* v___x_2163_; uint8_t v_isShared_2164_; uint8_t v_isSharedCheck_2188_; +v_a_2161_ = lean_ctor_get(v___x_2160_, 0); +v_isSharedCheck_2188_ = !lean_is_exclusive(v___x_2160_); +if (v_isSharedCheck_2188_ == 0) { -v___x_1891_ = v___x_1888_; -v_isShared_1892_ = v_isSharedCheck_1916_; -goto v_resetjp_1890_; +v___x_2163_ = v___x_2160_; +v_isShared_2164_ = v_isSharedCheck_2188_; +goto v_resetjp_2162_; } else { -lean_inc(v_a_1889_); -lean_dec(v___x_1888_); -v___x_1891_ = lean_box(0); -v_isShared_1892_ = v_isSharedCheck_1916_; -goto v_resetjp_1890_; +lean_inc(v_a_2161_); +lean_dec(v___x_2160_); +v___x_2163_ = lean_box(0); +v_isShared_2164_ = v_isSharedCheck_2188_; +goto v_resetjp_2162_; } -v_resetjp_1890_: +v_resetjp_2162_: { -lean_object* v___f_1893_; uint64_t v___x_1894_; lean_object* v___x_1895_; lean_object* v___x_1896_; lean_object* v___x_1897_; lean_object* v___x_1898_; lean_object* v___f_1899_; lean_object* v___x_1900_; lean_object* v___f_1901_; lean_object* v___x_1902_; size_t v_sz_1903_; lean_object* v___x_1904_; lean_object* v___x_1905_; lean_object* v___x_1906_; lean_object* v___f_1907_; lean_object* v___x_1908_; lean_object* v___x_1909_; lean_object* v___x_1910_; lean_object* v___f_1911_; lean_object* v___x_1912_; lean_object* v___x_1914_; -v___f_1893_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___closed__0)); -v___x_1894_ = l_ByteArray_toUInt64LE_x21(v_a_1889_); -lean_dec(v_a_1889_); -v___x_1895_ = lean_uint64_to_nat(v___x_1894_); -v___x_1896_ = l_mkStdGen(v___x_1895_); -lean_dec(v___x_1895_); -v___x_1897_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_1882_, v___x_1896_); -v___x_1898_ = lean_box(0); -v___f_1899_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___closed__0)); -v___x_1900_ = lean_box(v___x_1886_); -lean_inc_ref_n(v___x_1897_, 2); -v___f_1901_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0___boxed), 8, 6); -lean_closure_set(v___f_1901_, 0, v___x_1897_); -lean_closure_set(v___f_1901_, 1, v___x_1884_); -lean_closure_set(v___f_1901_, 2, v___x_1898_); -lean_closure_set(v___f_1901_, 3, v___x_1885_); -lean_closure_set(v___f_1901_, 4, v___x_1900_); -lean_closure_set(v___f_1901_, 5, v___f_1899_); -v___x_1902_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); -v_sz_1903_ = lean_array_size(v___x_1897_); -v___x_1904_ = lean_box_usize(v_sz_1903_); -v___x_1905_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed__const__1)); -v___x_1906_ = lean_box(v___x_1886_); -v___f_1907_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3___boxed), 9, 8); -lean_closure_set(v___f_1907_, 0, v___x_1884_); -lean_closure_set(v___f_1907_, 1, v___x_1897_); -lean_closure_set(v___f_1907_, 2, v___x_1904_); -lean_closure_set(v___f_1907_, 3, v___x_1905_); -lean_closure_set(v___f_1907_, 4, v___x_1898_); -lean_closure_set(v___f_1907_, 5, v___x_1885_); -lean_closure_set(v___f_1907_, 6, v___x_1906_); -lean_closure_set(v___f_1907_, 7, v___f_1899_); -v___x_1908_ = lean_box_usize(v_sz_1903_); -v___x_1909_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed__const__1)); -v___x_1910_ = lean_box(v___x_1886_); -v___f_1911_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2___boxed), 9, 8); -lean_closure_set(v___f_1911_, 0, v___x_1884_); -lean_closure_set(v___f_1911_, 1, v___x_1897_); -lean_closure_set(v___f_1911_, 2, v___x_1908_); -lean_closure_set(v___f_1911_, 3, v___x_1909_); -lean_closure_set(v___f_1911_, 4, v___x_1902_); -lean_closure_set(v___f_1911_, 5, v___x_1885_); -lean_closure_set(v___f_1911_, 6, v___x_1910_); -lean_closure_set(v___f_1911_, 7, v___f_1893_); -v___x_1912_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_1912_, 0, v___f_1911_); -lean_ctor_set(v___x_1912_, 1, v___f_1901_); -lean_ctor_set(v___x_1912_, 2, v___f_1907_); -if (v_isShared_1892_ == 0) +lean_object* v___f_2165_; uint64_t v___x_2166_; lean_object* v___x_2167_; lean_object* v___x_2168_; lean_object* v___x_2169_; lean_object* v___x_2170_; lean_object* v___f_2171_; lean_object* v___x_2172_; lean_object* v___f_2173_; lean_object* v___x_2174_; size_t v_sz_2175_; lean_object* v___x_2176_; lean_object* v___x_2177_; lean_object* v___x_2178_; lean_object* v___f_2179_; lean_object* v___x_2180_; lean_object* v___x_2181_; lean_object* v___x_2182_; lean_object* v___f_2183_; lean_object* v___x_2184_; lean_object* v___x_2186_; +v___f_2165_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_tryOne___redArg___closed__0)); +v___x_2166_ = l_ByteArray_toUInt64LE_x21(v_a_2161_); +lean_dec(v_a_2161_); +v___x_2167_ = lean_uint64_to_nat(v___x_2166_); +v___x_2168_ = l_mkStdGen(v___x_2167_); +lean_dec(v___x_2167_); +v___x_2169_ = l___private_Std_Internal_Async_Select_0__Std_Internal_IO_Async_shuffleIt___redArg(v_selectables_2154_, v___x_2168_); +v___x_2170_ = lean_box(0); +v___f_2171_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___closed__0)); +v___x_2172_ = lean_box(v___x_2158_); +lean_inc_ref_n(v___x_2169_, 2); +v___f_2173_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__0___boxed), 8, 6); +lean_closure_set(v___f_2173_, 0, v___x_2169_); +lean_closure_set(v___f_2173_, 1, v___x_2156_); +lean_closure_set(v___f_2173_, 2, v___x_2170_); +lean_closure_set(v___f_2173_, 3, v___x_2157_); +lean_closure_set(v___f_2173_, 4, v___x_2172_); +lean_closure_set(v___f_2173_, 5, v___f_2171_); +v___x_2174_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_tryOne_spec__0___redArg___closed__1)); +v_sz_2175_ = lean_array_size(v___x_2169_); +v___x_2176_ = lean_box_usize(v_sz_2175_); +v___x_2177_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed__const__1)); +v___x_2178_ = lean_box(v___x_2158_); +v___f_2179_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__3___boxed), 9, 8); +lean_closure_set(v___f_2179_, 0, v___x_2156_); +lean_closure_set(v___f_2179_, 1, v___x_2169_); +lean_closure_set(v___f_2179_, 2, v___x_2176_); +lean_closure_set(v___f_2179_, 3, v___x_2177_); +lean_closure_set(v___f_2179_, 4, v___x_2170_); +lean_closure_set(v___f_2179_, 5, v___x_2157_); +lean_closure_set(v___f_2179_, 6, v___x_2178_); +lean_closure_set(v___f_2179_, 7, v___f_2171_); +v___x_2180_ = lean_box_usize(v_sz_2175_); +v___x_2181_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed__const__1)); +v___x_2182_ = lean_box(v___x_2158_); +v___f_2183_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Selectable_combine___redArg___lam__2___boxed), 9, 8); +lean_closure_set(v___f_2183_, 0, v___x_2156_); +lean_closure_set(v___f_2183_, 1, v___x_2169_); +lean_closure_set(v___f_2183_, 2, v___x_2180_); +lean_closure_set(v___f_2183_, 3, v___x_2181_); +lean_closure_set(v___f_2183_, 4, v___x_2174_); +lean_closure_set(v___f_2183_, 5, v___x_2157_); +lean_closure_set(v___f_2183_, 6, v___x_2182_); +lean_closure_set(v___f_2183_, 7, v___f_2165_); +v___x_2184_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_2184_, 0, v___f_2183_); +lean_ctor_set(v___x_2184_, 1, v___f_2173_); +lean_ctor_set(v___x_2184_, 2, v___f_2179_); +if (v_isShared_2164_ == 0) { -lean_ctor_set(v___x_1891_, 0, v___x_1912_); -v___x_1914_ = v___x_1891_; -goto v_reusejp_1913_; +lean_ctor_set(v___x_2163_, 0, v___x_2184_); +v___x_2186_ = v___x_2163_; +goto v_reusejp_2185_; } else { -lean_object* v_reuseFailAlloc_1915_; -v_reuseFailAlloc_1915_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1915_, 0, v___x_1912_); -v___x_1914_ = v_reuseFailAlloc_1915_; -goto v_reusejp_1913_; +lean_object* v_reuseFailAlloc_2187_; +v_reuseFailAlloc_2187_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2187_, 0, v___x_2184_); +v___x_2186_ = v_reuseFailAlloc_2187_; +goto v_reusejp_2185_; } -v_reusejp_1913_: +v_reusejp_2185_: { -return v___x_1914_; +return v___x_2186_; } } } else { -lean_object* v_a_1917_; lean_object* v___x_1919_; uint8_t v_isShared_1920_; uint8_t v_isSharedCheck_1924_; -lean_dec_ref(v_selectables_1882_); -v_a_1917_ = lean_ctor_get(v___x_1888_, 0); -v_isSharedCheck_1924_ = !lean_is_exclusive(v___x_1888_); -if (v_isSharedCheck_1924_ == 0) +lean_object* v_a_2189_; lean_object* v___x_2191_; uint8_t v_isShared_2192_; uint8_t v_isSharedCheck_2196_; +lean_dec_ref(v_selectables_2154_); +v_a_2189_ = lean_ctor_get(v___x_2160_, 0); +v_isSharedCheck_2196_ = !lean_is_exclusive(v___x_2160_); +if (v_isSharedCheck_2196_ == 0) { -v___x_1919_ = v___x_1888_; -v_isShared_1920_ = v_isSharedCheck_1924_; -goto v_resetjp_1918_; +v___x_2191_ = v___x_2160_; +v_isShared_2192_ = v_isSharedCheck_2196_; +goto v_resetjp_2190_; } else { -lean_inc(v_a_1917_); -lean_dec(v___x_1888_); -v___x_1919_ = lean_box(0); -v_isShared_1920_ = v_isSharedCheck_1924_; -goto v_resetjp_1918_; +lean_inc(v_a_2189_); +lean_dec(v___x_2160_); +v___x_2191_ = lean_box(0); +v_isShared_2192_ = v_isSharedCheck_2196_; +goto v_resetjp_2190_; } -v_resetjp_1918_: +v_resetjp_2190_: { -lean_object* v___x_1922_; -if (v_isShared_1920_ == 0) +lean_object* v___x_2194_; +if (v_isShared_2192_ == 0) { -v___x_1922_ = v___x_1919_; -goto v_reusejp_1921_; +v___x_2194_ = v___x_2191_; +goto v_reusejp_2193_; } else { -lean_object* v_reuseFailAlloc_1923_; -v_reuseFailAlloc_1923_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1923_, 0, v_a_1917_); -v___x_1922_ = v_reuseFailAlloc_1923_; -goto v_reusejp_1921_; +lean_object* v_reuseFailAlloc_2195_; +v_reuseFailAlloc_2195_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2195_, 0, v_a_2189_); +v___x_2194_ = v_reuseFailAlloc_2195_; +goto v_reusejp_2193_; } -v_reusejp_1921_: +v_reusejp_2193_: { -return v___x_1922_; +return v___x_2194_; } } } } else { -lean_object* v___x_1925_; lean_object* v___x_1926_; -lean_dec_ref(v_selectables_1882_); -v___x_1925_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___closed__1)); -v___x_1926_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1926_, 0, v___x_1925_); -return v___x_1926_; +lean_object* v___x_2197_; lean_object* v___x_2198_; +lean_dec_ref(v_selectables_2154_); +v___x_2197_ = ((lean_object*)(l_Std_Internal_IO_Async_Selectable_one___redArg___closed__1)); +v___x_2198_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2198_, 0, v___x_2197_); +return v___x_2198_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed(lean_object* v_selectables_1927_, lean_object* v_a_1928_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___redArg___boxed(lean_object* v_selectables_2199_, lean_object* v_a_2200_){ _start: { -lean_object* v_res_1929_; -v_res_1929_ = l_Std_Internal_IO_Async_Selectable_combine___redArg(v_selectables_1927_); -return v_res_1929_; +lean_object* v_res_2201_; +v_res_2201_ = l_Std_Internal_IO_Async_Selectable_combine___redArg(v_selectables_2199_); +return v_res_2201_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine(lean_object* v_00_u03b1_1930_, lean_object* v_selectables_1931_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine(lean_object* v_00_u03b1_2202_, lean_object* v_selectables_2203_){ _start: { -lean_object* v___x_1933_; -v___x_1933_ = l_Std_Internal_IO_Async_Selectable_combine___redArg(v_selectables_1931_); -return v___x_1933_; +lean_object* v___x_2205_; +v___x_2205_ = l_Std_Internal_IO_Async_Selectable_combine___redArg(v_selectables_2203_); +return v___x_2205_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___boxed(lean_object* v_00_u03b1_1934_, lean_object* v_selectables_1935_, lean_object* v_a_1936_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Selectable_combine___boxed(lean_object* v_00_u03b1_2206_, lean_object* v_selectables_2207_, lean_object* v_a_2208_){ _start: { -lean_object* v_res_1937_; -v_res_1937_ = l_Std_Internal_IO_Async_Selectable_combine(v_00_u03b1_1934_, v_selectables_1935_); -return v_res_1937_; +lean_object* v_res_2209_; +v_res_2209_ = l_Std_Internal_IO_Async_Selectable_combine(v_00_u03b1_2206_, v_selectables_2207_); +return v_res_2209_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0(lean_object* v_00_u03b1_1938_, lean_object* v___x_1939_, lean_object* v_as_1940_, size_t v_sz_1941_, size_t v_i_1942_, lean_object* v_b_1943_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0(lean_object* v_00_u03b1_2210_, lean_object* v___x_2211_, lean_object* v_as_2212_, size_t v_sz_2213_, size_t v_i_2214_, lean_object* v_b_2215_){ _start: { -lean_object* v___x_1945_; -v___x_1945_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_1939_, v_as_1940_, v_sz_1941_, v_i_1942_, v_b_1943_); -return v___x_1945_; +lean_object* v___x_2217_; +v___x_2217_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___redArg(v___x_2211_, v_as_2212_, v_sz_2213_, v_i_2214_, v_b_2215_); +return v___x_2217_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___boxed(lean_object* v_00_u03b1_1946_, lean_object* v___x_1947_, lean_object* v_as_1948_, lean_object* v_sz_1949_, lean_object* v_i_1950_, lean_object* v_b_1951_, lean_object* v___y_1952_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0___boxed(lean_object* v_00_u03b1_2218_, lean_object* v___x_2219_, lean_object* v_as_2220_, lean_object* v_sz_2221_, lean_object* v_i_2222_, lean_object* v_b_2223_, lean_object* v___y_2224_){ _start: { -size_t v_sz_boxed_1953_; size_t v_i_boxed_1954_; lean_object* v_res_1955_; -v_sz_boxed_1953_ = lean_unbox_usize(v_sz_1949_); -lean_dec(v_sz_1949_); -v_i_boxed_1954_ = lean_unbox_usize(v_i_1950_); -lean_dec(v_i_1950_); -v_res_1955_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0(v_00_u03b1_1946_, v___x_1947_, v_as_1948_, v_sz_boxed_1953_, v_i_boxed_1954_, v_b_1951_); -return v_res_1955_; +size_t v_sz_boxed_2225_; size_t v_i_boxed_2226_; lean_object* v_res_2227_; +v_sz_boxed_2225_ = lean_unbox_usize(v_sz_2221_); +lean_dec(v_sz_2221_); +v_i_boxed_2226_ = lean_unbox_usize(v_i_2222_); +lean_dec(v_i_2222_); +v_res_2227_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__0(v_00_u03b1_2218_, v___x_2219_, v_as_2220_, v_sz_boxed_2225_, v_i_boxed_2226_, v_b_2223_); +return v_res_2227_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1(lean_object* v_00_u03b1_1956_, lean_object* v___x_1957_, lean_object* v___x_1958_, lean_object* v_waiter_1959_, lean_object* v_as_1960_, size_t v_sz_1961_, size_t v_i_1962_, lean_object* v_b_1963_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1(lean_object* v_00_u03b1_2228_, lean_object* v_waiter_2229_, lean_object* v___x_2230_, lean_object* v___x_2231_, lean_object* v_as_2232_, size_t v_sz_2233_, size_t v_i_2234_, lean_object* v_b_2235_){ _start: { -lean_object* v___x_1965_; -v___x_1965_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v___x_1957_, v___x_1958_, v_waiter_1959_, v_as_1960_, v_sz_1961_, v_i_1962_, v_b_1963_); -return v___x_1965_; +lean_object* v___x_2237_; +v___x_2237_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___redArg(v_waiter_2229_, v___x_2230_, v___x_2231_, v_as_2232_, v_sz_2233_, v_i_2234_, v_b_2235_); +return v___x_2237_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___boxed(lean_object* v_00_u03b1_1966_, lean_object* v___x_1967_, lean_object* v___x_1968_, lean_object* v_waiter_1969_, lean_object* v_as_1970_, lean_object* v_sz_1971_, lean_object* v_i_1972_, lean_object* v_b_1973_, lean_object* v___y_1974_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1___boxed(lean_object* v_00_u03b1_2238_, lean_object* v_waiter_2239_, lean_object* v___x_2240_, lean_object* v___x_2241_, lean_object* v_as_2242_, lean_object* v_sz_2243_, lean_object* v_i_2244_, lean_object* v_b_2245_, lean_object* v___y_2246_){ _start: { -size_t v_sz_boxed_1975_; size_t v_i_boxed_1976_; lean_object* v_res_1977_; -v_sz_boxed_1975_ = lean_unbox_usize(v_sz_1971_); -lean_dec(v_sz_1971_); -v_i_boxed_1976_ = lean_unbox_usize(v_i_1972_); -lean_dec(v_i_1972_); -v_res_1977_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1(v_00_u03b1_1966_, v___x_1967_, v___x_1968_, v_waiter_1969_, v_as_1970_, v_sz_boxed_1975_, v_i_boxed_1976_, v_b_1973_); -return v_res_1977_; +size_t v_sz_boxed_2247_; size_t v_i_boxed_2248_; lean_object* v_res_2249_; +v_sz_boxed_2247_ = lean_unbox_usize(v_sz_2243_); +lean_dec(v_sz_2243_); +v_i_boxed_2248_ = lean_unbox_usize(v_i_2244_); +lean_dec(v_i_2244_); +v_res_2249_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Internal_IO_Async_Selectable_combine_spec__1(v_00_u03b1_2238_, v_waiter_2239_, v___x_2240_, v___x_2241_, v_as_2242_, v_sz_boxed_2247_, v_i_boxed_2248_, v_b_2245_); +return v_res_2249_; } } lean_object* runtime_initialize_Init_Data_Random(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http.c b/stage0/stdlib/Std/Internal/Http.c index 6c2e075bbb..249b4eafb5 100644 --- a/stage0/stdlib/Std/Internal/Http.c +++ b/stage0/stdlib/Std/Internal/Http.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Std.Internal.Http -// Imports: public import Std.Internal.Http.Data public import Std.Internal.Http.Protocol.H1 +// Imports: public import Std.Internal.Http.Server public import Std.Internal.Http.Test.Helpers #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,17 +13,17 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* runtime_initialize_Std_Internal_Http_Data(uint8_t builtin); -lean_object* runtime_initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Test_Helpers(uint8_t builtin); static bool _G_runtime_initialized = false; LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http(uint8_t builtin) { lean_object * res; if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_runtime_initialized = true; -res = runtime_initialize_Std_Internal_Http_Data(builtin); +res = runtime_initialize_Std_Internal_Http_Server(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = runtime_initialize_Std_Internal_Http_Protocol_H1(builtin); +res = runtime_initialize_Std_Internal_Http_Test_Helpers(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); @@ -35,17 +35,17 @@ if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_meta_initialized = true; return lean_io_result_mk_ok(lean_box(0)); } -lean_object* initialize_Std_Internal_Http_Data(uint8_t builtin); -lean_object* initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Test_Helpers(uint8_t builtin); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Std_Internal_Http(uint8_t builtin) { lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; -res = initialize_Std_Internal_Http_Data(builtin); +res = initialize_Std_Internal_Http_Server(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Std_Internal_Http_Protocol_H1(builtin); +res = initialize_Std_Internal_Http_Test_Helpers(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = runtime_initialize_Std_Internal_Http(builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Data/Body/Any.c b/stage0/stdlib/Std/Internal/Http/Data/Body/Any.c index ae602a3d0c..c5649a21cb 100644 --- a/stage0/stdlib/Std/Internal/Http/Data/Body/Any.c +++ b/stage0/stdlib/Std/Internal/Http/Data/Body/Any.c @@ -25,8 +25,10 @@ LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__6___boxed(lean_object*, lean_object*, lean_object*); static const lean_closure_object l_Std_Http_Body_instAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instAny___closed__0_value; static const lean_closure_object l_Std_Http_Body_instAny___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; @@ -37,203 +39,229 @@ static const lean_closure_object l_Std_Http_Body_instAny___closed__3_value = {.m static const lean_object* l_Std_Http_Body_instAny___closed__3 = (const lean_object*)&l_Std_Http_Body_instAny___closed__3_value; static const lean_closure_object l_Std_Http_Body_instAny___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__4___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instAny___closed__4 = (const lean_object*)&l_Std_Http_Body_instAny___closed__4_value; -static const lean_closure_object l_Std_Http_Body_instAny___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__5___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_closure_object l_Std_Http_Body_instAny___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__5___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instAny___closed__5 = (const lean_object*)&l_Std_Http_Body_instAny___closed__5_value; -static const lean_ctor_object l_Std_Http_Body_instAny___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*6 + 0, .m_other = 6, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instAny___closed__0_value),((lean_object*)&l_Std_Http_Body_instAny___closed__1_value),((lean_object*)&l_Std_Http_Body_instAny___closed__2_value),((lean_object*)&l_Std_Http_Body_instAny___closed__3_value),((lean_object*)&l_Std_Http_Body_instAny___closed__4_value),((lean_object*)&l_Std_Http_Body_instAny___closed__5_value)}}; +static const lean_closure_object l_Std_Http_Body_instAny___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instAny___lam__6___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instAny___closed__6 = (const lean_object*)&l_Std_Http_Body_instAny___closed__6_value; -LEAN_EXPORT const lean_object* l_Std_Http_Body_instAny = (const lean_object*)&l_Std_Http_Body_instAny___closed__6_value; +static const lean_ctor_object l_Std_Http_Body_instAny___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*7 + 0, .m_other = 7, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instAny___closed__0_value),((lean_object*)&l_Std_Http_Body_instAny___closed__1_value),((lean_object*)&l_Std_Http_Body_instAny___closed__2_value),((lean_object*)&l_Std_Http_Body_instAny___closed__3_value),((lean_object*)&l_Std_Http_Body_instAny___closed__4_value),((lean_object*)&l_Std_Http_Body_instAny___closed__5_value),((lean_object*)&l_Std_Http_Body_instAny___closed__6_value)}}; +static const lean_object* l_Std_Http_Body_instAny___closed__7 = (const lean_object*)&l_Std_Http_Body_instAny___closed__7_value; +LEAN_EXPORT const lean_object* l_Std_Http_Body_instAny = (const lean_object*)&l_Std_Http_Body_instAny___closed__7_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___redArg(lean_object* v_inst_1_, lean_object* v_body_2_){ _start: { -lean_object* v_recv_3_; lean_object* v_close_4_; lean_object* v_isClosed_5_; lean_object* v_recvSelector_6_; lean_object* v_getKnownSize_7_; lean_object* v_setKnownSize_8_; lean_object* v___x_10_; uint8_t v_isShared_11_; uint8_t v_isSharedCheck_21_; +lean_object* v_recv_3_; lean_object* v_close_4_; lean_object* v_isClosed_5_; lean_object* v_recvSelector_6_; lean_object* v_tryRecv_7_; lean_object* v_getKnownSize_8_; lean_object* v_setKnownSize_9_; lean_object* v___x_11_; uint8_t v_isShared_12_; uint8_t v_isSharedCheck_23_; v_recv_3_ = lean_ctor_get(v_inst_1_, 0); v_close_4_ = lean_ctor_get(v_inst_1_, 1); v_isClosed_5_ = lean_ctor_get(v_inst_1_, 2); v_recvSelector_6_ = lean_ctor_get(v_inst_1_, 3); -v_getKnownSize_7_ = lean_ctor_get(v_inst_1_, 4); -v_setKnownSize_8_ = lean_ctor_get(v_inst_1_, 5); -v_isSharedCheck_21_ = !lean_is_exclusive(v_inst_1_); -if (v_isSharedCheck_21_ == 0) +v_tryRecv_7_ = lean_ctor_get(v_inst_1_, 4); +v_getKnownSize_8_ = lean_ctor_get(v_inst_1_, 5); +v_setKnownSize_9_ = lean_ctor_get(v_inst_1_, 6); +v_isSharedCheck_23_ = !lean_is_exclusive(v_inst_1_); +if (v_isSharedCheck_23_ == 0) { -v___x_10_ = v_inst_1_; -v_isShared_11_ = v_isSharedCheck_21_; -goto v_resetjp_9_; +v___x_11_ = v_inst_1_; +v_isShared_12_ = v_isSharedCheck_23_; +goto v_resetjp_10_; } else { -lean_inc(v_setKnownSize_8_); -lean_inc(v_getKnownSize_7_); +lean_inc(v_setKnownSize_9_); +lean_inc(v_getKnownSize_8_); +lean_inc(v_tryRecv_7_); lean_inc(v_recvSelector_6_); lean_inc(v_isClosed_5_); lean_inc(v_close_4_); lean_inc(v_recv_3_); lean_dec(v_inst_1_); -v___x_10_ = lean_box(0); -v_isShared_11_ = v_isSharedCheck_21_; -goto v_resetjp_9_; +v___x_11_ = lean_box(0); +v_isShared_12_ = v_isSharedCheck_23_; +goto v_resetjp_10_; } -v_resetjp_9_: +v_resetjp_10_: { -lean_object* v___x_12_; lean_object* v___x_13_; lean_object* v___x_14_; lean_object* v___x_15_; lean_object* v___x_16_; lean_object* v___x_17_; lean_object* v___x_19_; -lean_inc_n(v_body_2_, 5); -v___x_12_ = lean_apply_1(v_recv_3_, v_body_2_); -v___x_13_ = lean_apply_1(v_close_4_, v_body_2_); -v___x_14_ = lean_apply_1(v_isClosed_5_, v_body_2_); -v___x_15_ = lean_apply_1(v_recvSelector_6_, v_body_2_); -v___x_16_ = lean_apply_1(v_getKnownSize_7_, v_body_2_); -v___x_17_ = lean_apply_1(v_setKnownSize_8_, v_body_2_); -if (v_isShared_11_ == 0) +lean_object* v___x_13_; lean_object* v___x_14_; lean_object* v___x_15_; lean_object* v___x_16_; lean_object* v___x_17_; lean_object* v___x_18_; lean_object* v___x_19_; lean_object* v___x_21_; +lean_inc_n(v_body_2_, 6); +v___x_13_ = lean_apply_1(v_recv_3_, v_body_2_); +v___x_14_ = lean_apply_1(v_close_4_, v_body_2_); +v___x_15_ = lean_apply_1(v_isClosed_5_, v_body_2_); +v___x_16_ = lean_apply_1(v_recvSelector_6_, v_body_2_); +v___x_17_ = lean_apply_1(v_tryRecv_7_, v_body_2_); +v___x_18_ = lean_apply_1(v_getKnownSize_8_, v_body_2_); +v___x_19_ = lean_apply_1(v_setKnownSize_9_, v_body_2_); +if (v_isShared_12_ == 0) { -lean_ctor_set(v___x_10_, 5, v___x_17_); -lean_ctor_set(v___x_10_, 4, v___x_16_); -lean_ctor_set(v___x_10_, 3, v___x_15_); -lean_ctor_set(v___x_10_, 2, v___x_14_); -lean_ctor_set(v___x_10_, 1, v___x_13_); -lean_ctor_set(v___x_10_, 0, v___x_12_); -v___x_19_ = v___x_10_; -goto v_reusejp_18_; +lean_ctor_set(v___x_11_, 6, v___x_19_); +lean_ctor_set(v___x_11_, 5, v___x_18_); +lean_ctor_set(v___x_11_, 4, v___x_17_); +lean_ctor_set(v___x_11_, 3, v___x_16_); +lean_ctor_set(v___x_11_, 2, v___x_15_); +lean_ctor_set(v___x_11_, 1, v___x_14_); +lean_ctor_set(v___x_11_, 0, v___x_13_); +v___x_21_ = v___x_11_; +goto v_reusejp_20_; } else { -lean_object* v_reuseFailAlloc_20_; -v_reuseFailAlloc_20_ = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(v_reuseFailAlloc_20_, 0, v___x_12_); -lean_ctor_set(v_reuseFailAlloc_20_, 1, v___x_13_); -lean_ctor_set(v_reuseFailAlloc_20_, 2, v___x_14_); -lean_ctor_set(v_reuseFailAlloc_20_, 3, v___x_15_); -lean_ctor_set(v_reuseFailAlloc_20_, 4, v___x_16_); -lean_ctor_set(v_reuseFailAlloc_20_, 5, v___x_17_); -v___x_19_ = v_reuseFailAlloc_20_; -goto v_reusejp_18_; +lean_object* v_reuseFailAlloc_22_; +v_reuseFailAlloc_22_ = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(v_reuseFailAlloc_22_, 0, v___x_13_); +lean_ctor_set(v_reuseFailAlloc_22_, 1, v___x_14_); +lean_ctor_set(v_reuseFailAlloc_22_, 2, v___x_15_); +lean_ctor_set(v_reuseFailAlloc_22_, 3, v___x_16_); +lean_ctor_set(v_reuseFailAlloc_22_, 4, v___x_17_); +lean_ctor_set(v_reuseFailAlloc_22_, 5, v___x_18_); +lean_ctor_set(v_reuseFailAlloc_22_, 6, v___x_19_); +v___x_21_ = v_reuseFailAlloc_22_; +goto v_reusejp_20_; } -v_reusejp_18_: +v_reusejp_20_: { -return v___x_19_; +return v___x_21_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody(lean_object* v_00_u03b1_22_, lean_object* v_inst_23_, lean_object* v_body_24_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody(lean_object* v_00_u03b1_24_, lean_object* v_inst_25_, lean_object* v_body_26_){ _start: { -lean_object* v___x_25_; -v___x_25_ = l_Std_Http_Body_Any_ofBody___redArg(v_inst_23_, v_body_24_); -return v___x_25_; +lean_object* v___x_27_; +v___x_27_ = l_Std_Http_Body_Any_ofBody___redArg(v_inst_25_, v_body_26_); +return v___x_27_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__0(lean_object* v_self_26_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__0(lean_object* v_self_28_){ _start: { -lean_object* v_recv_28_; lean_object* v___x_29_; -v_recv_28_ = lean_ctor_get(v_self_26_, 0); -lean_inc_ref(v_recv_28_); -lean_dec_ref(v_self_26_); -v___x_29_ = lean_apply_1(v_recv_28_, lean_box(0)); -return v___x_29_; +lean_object* v_recv_30_; lean_object* v___x_31_; +v_recv_30_ = lean_ctor_get(v_self_28_, 0); +lean_inc_ref(v_recv_30_); +lean_dec_ref(v_self_28_); +v___x_31_ = lean_apply_1(v_recv_30_, lean_box(0)); +return v___x_31_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__0___boxed(lean_object* v_self_30_, lean_object* v___y_31_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__0___boxed(lean_object* v_self_32_, lean_object* v___y_33_){ _start: { -lean_object* v_res_32_; -v_res_32_ = l_Std_Http_Body_instAny___lam__0(v_self_30_); -return v_res_32_; +lean_object* v_res_34_; +v_res_34_ = l_Std_Http_Body_instAny___lam__0(v_self_32_); +return v_res_34_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__1(lean_object* v_self_33_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__1(lean_object* v_self_35_){ _start: { -lean_object* v_close_35_; lean_object* v___x_36_; -v_close_35_ = lean_ctor_get(v_self_33_, 1); -lean_inc_ref(v_close_35_); -lean_dec_ref(v_self_33_); -v___x_36_ = lean_apply_1(v_close_35_, lean_box(0)); -return v___x_36_; +lean_object* v_close_37_; lean_object* v___x_38_; +v_close_37_ = lean_ctor_get(v_self_35_, 1); +lean_inc_ref(v_close_37_); +lean_dec_ref(v_self_35_); +v___x_38_ = lean_apply_1(v_close_37_, lean_box(0)); +return v___x_38_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__1___boxed(lean_object* v_self_37_, lean_object* v___y_38_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__1___boxed(lean_object* v_self_39_, lean_object* v___y_40_){ _start: { -lean_object* v_res_39_; -v_res_39_ = l_Std_Http_Body_instAny___lam__1(v_self_37_); -return v_res_39_; +lean_object* v_res_41_; +v_res_41_ = l_Std_Http_Body_instAny___lam__1(v_self_39_); +return v_res_41_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__2(lean_object* v_self_40_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__2(lean_object* v_self_42_){ _start: { -lean_object* v_isClosed_42_; lean_object* v___x_43_; -v_isClosed_42_ = lean_ctor_get(v_self_40_, 2); -lean_inc_ref(v_isClosed_42_); -lean_dec_ref(v_self_40_); -v___x_43_ = lean_apply_1(v_isClosed_42_, lean_box(0)); -return v___x_43_; +lean_object* v_isClosed_44_; lean_object* v___x_45_; +v_isClosed_44_ = lean_ctor_get(v_self_42_, 2); +lean_inc_ref(v_isClosed_44_); +lean_dec_ref(v_self_42_); +v___x_45_ = lean_apply_1(v_isClosed_44_, lean_box(0)); +return v___x_45_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__2___boxed(lean_object* v_self_44_, lean_object* v___y_45_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__2___boxed(lean_object* v_self_46_, lean_object* v___y_47_){ _start: { -lean_object* v_res_46_; -v_res_46_ = l_Std_Http_Body_instAny___lam__2(v_self_44_); -return v_res_46_; +lean_object* v_res_48_; +v_res_48_ = l_Std_Http_Body_instAny___lam__2(v_self_46_); +return v_res_48_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3(lean_object* v_self_47_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3(lean_object* v_self_49_){ _start: { -lean_object* v_recvSelector_48_; -v_recvSelector_48_ = lean_ctor_get(v_self_47_, 3); -lean_inc_ref(v_recvSelector_48_); -return v_recvSelector_48_; +lean_object* v_recvSelector_50_; +v_recvSelector_50_ = lean_ctor_get(v_self_49_, 3); +lean_inc_ref(v_recvSelector_50_); +return v_recvSelector_50_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3___boxed(lean_object* v_self_49_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__3___boxed(lean_object* v_self_51_){ _start: { -lean_object* v_res_50_; -v_res_50_ = l_Std_Http_Body_instAny___lam__3(v_self_49_); -lean_dec_ref(v_self_49_); -return v_res_50_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4(lean_object* v_self_51_){ -_start: -{ -lean_object* v_getKnownSize_53_; lean_object* v___x_54_; -v_getKnownSize_53_ = lean_ctor_get(v_self_51_, 4); -lean_inc_ref(v_getKnownSize_53_); +lean_object* v_res_52_; +v_res_52_ = l_Std_Http_Body_instAny___lam__3(v_self_51_); lean_dec_ref(v_self_51_); -v___x_54_ = lean_apply_1(v_getKnownSize_53_, lean_box(0)); -return v___x_54_; +return v_res_52_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4___boxed(lean_object* v_self_55_, lean_object* v___y_56_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4(lean_object* v_self_53_){ _start: { -lean_object* v_res_57_; -v_res_57_ = l_Std_Http_Body_instAny___lam__4(v_self_55_); -return v_res_57_; +lean_object* v_tryRecv_55_; lean_object* v___x_56_; +v_tryRecv_55_ = lean_ctor_get(v_self_53_, 4); +lean_inc_ref(v_tryRecv_55_); +lean_dec_ref(v_self_53_); +v___x_56_ = lean_apply_1(v_tryRecv_55_, lean_box(0)); +return v___x_56_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5(lean_object* v_self_58_, lean_object* v___y_59_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__4___boxed(lean_object* v_self_57_, lean_object* v___y_58_){ _start: { -lean_object* v_setKnownSize_61_; lean_object* v___x_62_; -v_setKnownSize_61_ = lean_ctor_get(v_self_58_, 5); -lean_inc_ref(v_setKnownSize_61_); -lean_dec_ref(v_self_58_); -v___x_62_ = lean_apply_2(v_setKnownSize_61_, v___y_59_, lean_box(0)); -return v___x_62_; +lean_object* v_res_59_; +v_res_59_ = l_Std_Http_Body_instAny___lam__4(v_self_57_); +return v_res_59_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5___boxed(lean_object* v_self_63_, lean_object* v___y_64_, lean_object* v___y_65_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5(lean_object* v_self_60_){ +_start: +{ +lean_object* v_getKnownSize_62_; lean_object* v___x_63_; +v_getKnownSize_62_ = lean_ctor_get(v_self_60_, 5); +lean_inc_ref(v_getKnownSize_62_); +lean_dec_ref(v_self_60_); +v___x_63_ = lean_apply_1(v_getKnownSize_62_, lean_box(0)); +return v___x_63_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__5___boxed(lean_object* v_self_64_, lean_object* v___y_65_){ _start: { lean_object* v_res_66_; -v_res_66_ = l_Std_Http_Body_instAny___lam__5(v_self_63_, v___y_64_); +v_res_66_ = l_Std_Http_Body_instAny___lam__5(v_self_64_); return v_res_66_; } } +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__6(lean_object* v_self_67_, lean_object* v___y_68_){ +_start: +{ +lean_object* v_setKnownSize_70_; lean_object* v___x_71_; +v_setKnownSize_70_ = lean_ctor_get(v_self_67_, 6); +lean_inc_ref(v_setKnownSize_70_); +lean_dec_ref(v_self_67_); +v___x_71_ = lean_apply_2(v_setKnownSize_70_, v___y_68_, lean_box(0)); +return v___x_71_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instAny___lam__6___boxed(lean_object* v_self_72_, lean_object* v___y_73_, lean_object* v___y_74_){ +_start: +{ +lean_object* v_res_75_; +v_res_75_ = l_Std_Http_Body_instAny___lam__6(v_self_72_, v___y_73_); +return v_res_75_; +} +} lean_object* runtime_initialize_Std_Internal_Http_Data_Body_Basic(uint8_t builtin); static bool _G_runtime_initialized = false; LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Data_Body_Any(uint8_t builtin) { diff --git a/stage0/stdlib/Std/Internal/Http/Data/Body/Empty.c b/stage0/stdlib/Std/Internal/Http/Data/Body/Empty.c index f5249952af..3205dbbdd4 100644 --- a/stage0/stdlib/Std/Internal/Http/Data/Body/Empty.c +++ b/stage0/stdlib/Std/Internal/Http/Data/Body/Empty.c @@ -57,6 +57,16 @@ LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_isClosed___redArg(); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_isClosed___redArg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_isClosed(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_isClosed___boxed(lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Body_Empty_tryRecv___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Body_Empty_tryRecv___redArg___closed__0 = (const lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__0_value; +static const lean_ctor_object l_Std_Http_Body_Empty_tryRecv___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__0_value)}}; +static const lean_object* l_Std_Http_Body_Empty_tryRecv___redArg___closed__1 = (const lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__1_value; +static const lean_ctor_object l_Std_Http_Body_Empty_tryRecv___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__1_value)}}; +static const lean_object* l_Std_Http_Body_Empty_tryRecv___redArg___closed__2 = (const lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___redArg(); +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___redArg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__1(lean_object*); @@ -83,12 +93,10 @@ static const lean_closure_object l_Std_Http_Body_Empty_recvSelector___closed__6_ static const lean_object* l_Std_Http_Body_Empty_recvSelector___closed__6 = (const lean_object*)&l_Std_Http_Body_Empty_recvSelector___closed__6_value; static lean_once_cell_t l_Std_Http_Body_Empty_recvSelector___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; static lean_object* l_Std_Http_Body_Empty_recvSelector___closed__7; -static const lean_ctor_object l_Std_Http_Body_Empty_recvSelector___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_closure_object l_Std_Http_Body_Empty_recvSelector___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Empty_recvSelector___lam__3___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_Empty_tryRecv___redArg___closed__0_value)} }; static const lean_object* l_Std_Http_Body_Empty_recvSelector___closed__8 = (const lean_object*)&l_Std_Http_Body_Empty_recvSelector___closed__8_value; -static const lean_closure_object l_Std_Http_Body_Empty_recvSelector___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Empty_recvSelector___lam__3___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_Empty_recvSelector___closed__8_value)} }; -static const lean_object* l_Std_Http_Body_Empty_recvSelector___closed__9 = (const lean_object*)&l_Std_Http_Body_Empty_recvSelector___closed__9_value; -static lean_once_cell_t l_Std_Http_Body_Empty_recvSelector___closed__10_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Std_Http_Body_Empty_recvSelector___closed__10; +static lean_once_cell_t l_Std_Http_Body_Empty_recvSelector___closed__9_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Body_Empty_recvSelector___closed__9; LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector(lean_object*); static const lean_ctor_object l_Std_Http_Body_instEmpty___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; static const lean_object* l_Std_Http_Body_instEmpty___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Body_instEmpty___lam__0___closed__0_value; @@ -114,21 +122,23 @@ static const lean_closure_object l_Std_Http_Body_instEmpty___closed__4_value = { static const lean_object* l_Std_Http_Body_instEmpty___closed__4 = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__4_value; static const lean_closure_object l_Std_Http_Body_instEmpty___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Empty_recvSelector, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instEmpty___closed__5 = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__5_value; -static const lean_ctor_object l_Std_Http_Body_instEmpty___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*6 + 0, .m_other = 6, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__2_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__3_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__4_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__5_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__0_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__1_value)}}; +static const lean_closure_object l_Std_Http_Body_instEmpty___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Empty_tryRecv___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instEmpty___closed__6 = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value; -LEAN_EXPORT const lean_object* l_Std_Http_Body_instEmpty = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value; -static const lean_closure_object l_Std_Http_Body_instCoeEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value)} }; +static const lean_ctor_object l_Std_Http_Body_instEmpty___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*7 + 0, .m_other = 7, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__2_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__3_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__4_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__5_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__0_value),((lean_object*)&l_Std_Http_Body_instEmpty___closed__1_value)}}; +static const lean_object* l_Std_Http_Body_instEmpty___closed__7 = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__7_value; +LEAN_EXPORT const lean_object* l_Std_Http_Body_instEmpty = (const lean_object*)&l_Std_Http_Body_instEmpty___closed__7_value; +static const lean_closure_object l_Std_Http_Body_instCoeEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instEmpty___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeEmptyAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeEmptyAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeEmptyAny = (const lean_object*)&l_Std_Http_Body_instCoeEmptyAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseEmptyAny___lam__0(lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeResponseEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseEmptyAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeResponseEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseEmptyAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeResponseEmptyAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeResponseEmptyAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeResponseEmptyAny = (const lean_object*)&l_Std_Http_Body_instCoeResponseEmptyAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__6_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instEmpty___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__0_value; static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1___boxed, .m_arity = 4, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__0_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__1 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___closed__1_value; @@ -279,444 +289,476 @@ v_res_56_ = l_Std_Http_Body_Empty_isClosed(v_x_54_); return v_res_56_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0(lean_object* v___x_57_, lean_object* v_promise_58_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___redArg(){ _start: { -lean_object* v___x_60_; lean_object* v___x_61_; lean_object* v___x_62_; lean_object* v___x_63_; -v___x_60_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_60_, 0, v___x_57_); -v___x_61_ = lean_io_promise_resolve(v___x_60_, v_promise_58_); -v___x_62_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_62_, 0, v___x_61_); -v___x_63_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_63_, 0, v___x_62_); -return v___x_63_; +lean_object* v___x_64_; +v___x_64_ = ((lean_object*)(l_Std_Http_Body_Empty_tryRecv___redArg___closed__2)); +return v___x_64_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0___boxed(lean_object* v___x_64_, lean_object* v_promise_65_, lean_object* v___y_66_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___redArg___boxed(lean_object* v_a_65_){ _start: { -lean_object* v_res_67_; -v_res_67_ = l_Std_Http_Body_Empty_recvSelector___lam__0(v___x_64_, v_promise_65_); -lean_dec(v_promise_65_); -return v_res_67_; +lean_object* v_res_66_; +v_res_66_ = l_Std_Http_Body_Empty_tryRecv___redArg(); +return v_res_66_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__1(lean_object* v___x_68_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv(lean_object* v_x_67_){ _start: { -lean_object* v___x_70_; lean_object* v___x_71_; -v___x_70_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_70_, 0, v___x_68_); -v___x_71_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_71_, 0, v___x_70_); -return v___x_71_; +lean_object* v___x_69_; +v___x_69_ = ((lean_object*)(l_Std_Http_Body_Empty_tryRecv___redArg___closed__2)); +return v___x_69_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__1___boxed(lean_object* v___x_72_, lean_object* v___y_73_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_tryRecv___boxed(lean_object* v_x_70_, lean_object* v_a_71_){ _start: { -lean_object* v_res_74_; -v_res_74_ = l_Std_Http_Body_Empty_recvSelector___lam__1(v___x_72_); -return v_res_74_; +lean_object* v_res_72_; +v_res_72_ = l_Std_Http_Body_Empty_tryRecv(v_x_70_); +return v_res_72_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__2(lean_object* v___x_77_, lean_object* v___f_78_, lean_object* v_win_79_, lean_object* v_waiter_80_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0(lean_object* v___x_73_, lean_object* v_promise_74_){ _start: { -lean_object* v_lose_82_; lean_object* v___x_221__overap_83_; lean_object* v___x_84_; -v_lose_82_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___lam__2___closed__0)); -v___x_221__overap_83_ = l_Std_Internal_IO_Async_Waiter_race___redArg(v___x_77_, v___f_78_, v_waiter_80_, v_lose_82_, v_win_79_); -v___x_84_ = lean_apply_1(v___x_221__overap_83_, lean_box(0)); -return v___x_84_; +lean_object* v___x_76_; lean_object* v___x_77_; lean_object* v___x_78_; lean_object* v___x_79_; +v___x_76_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_76_, 0, v___x_73_); +v___x_77_ = lean_io_promise_resolve(v___x_76_, v_promise_74_); +v___x_78_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_78_, 0, v___x_77_); +v___x_79_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_79_, 0, v___x_78_); +return v___x_79_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__2___boxed(lean_object* v___x_85_, lean_object* v___f_86_, lean_object* v_win_87_, lean_object* v_waiter_88_, lean_object* v___y_89_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__0___boxed(lean_object* v___x_80_, lean_object* v_promise_81_, lean_object* v___y_82_){ +_start: +{ +lean_object* v_res_83_; +v_res_83_ = l_Std_Http_Body_Empty_recvSelector___lam__0(v___x_80_, v_promise_81_); +lean_dec(v_promise_81_); +return v_res_83_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__1(lean_object* v___x_84_){ +_start: +{ +lean_object* v___x_86_; lean_object* v___x_87_; +v___x_86_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_86_, 0, v___x_84_); +v___x_87_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_87_, 0, v___x_86_); +return v___x_87_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__1___boxed(lean_object* v___x_88_, lean_object* v___y_89_){ _start: { lean_object* v_res_90_; -v_res_90_ = l_Std_Http_Body_Empty_recvSelector___lam__2(v___x_85_, v___f_86_, v_win_87_, v_waiter_88_); +v_res_90_ = l_Std_Http_Body_Empty_recvSelector___lam__1(v___x_88_); return v_res_90_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__3(lean_object* v___x_91_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__2(lean_object* v___x_93_, lean_object* v___f_94_, lean_object* v_win_95_, lean_object* v_waiter_96_){ _start: { -lean_object* v___x_93_; lean_object* v___x_94_; -v___x_93_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_93_, 0, v___x_91_); -v___x_94_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_94_, 0, v___x_93_); -return v___x_94_; +lean_object* v_lose_98_; lean_object* v___x_221__overap_99_; lean_object* v___x_100_; +v_lose_98_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___lam__2___closed__0)); +v___x_221__overap_99_ = l_Std_Internal_IO_Async_Waiter_race___redArg(v___x_93_, v___f_94_, v_waiter_96_, v_lose_98_, v_win_95_); +v___x_100_ = lean_apply_1(v___x_221__overap_99_, lean_box(0)); +return v___x_100_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__3___boxed(lean_object* v___x_95_, lean_object* v___y_96_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__2___boxed(lean_object* v___x_101_, lean_object* v___f_102_, lean_object* v_win_103_, lean_object* v_waiter_104_, lean_object* v___y_105_){ _start: { -lean_object* v_res_97_; -v_res_97_ = l_Std_Http_Body_Empty_recvSelector___lam__3(v___x_95_); -return v_res_97_; +lean_object* v_res_106_; +v_res_106_ = l_Std_Http_Body_Empty_recvSelector___lam__2(v___x_101_, v___f_102_, v_win_103_, v_waiter_104_); +return v_res_106_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__3(lean_object* v___x_107_){ +_start: +{ +lean_object* v___x_109_; lean_object* v___x_110_; +v___x_109_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_109_, 0, v___x_107_); +v___x_110_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_110_, 0, v___x_109_); +return v___x_110_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector___lam__3___boxed(lean_object* v___x_111_, lean_object* v___y_112_){ +_start: +{ +lean_object* v_res_113_; +v_res_113_ = l_Std_Http_Body_Empty_recvSelector___lam__3(v___x_111_); +return v_res_113_; } } static lean_object* _init_l_Std_Http_Body_Empty_recvSelector___closed__0(void){ _start: { -lean_object* v___x_98_; -v___x_98_ = l_Std_Internal_IO_Async_EAsync_instMonad(lean_box(0)); -return v___x_98_; +lean_object* v___x_114_; +v___x_114_ = l_Std_Internal_IO_Async_EAsync_instMonad(lean_box(0)); +return v___x_114_; } } static lean_object* _init_l_Std_Http_Body_Empty_recvSelector___closed__7(void){ _start: { -lean_object* v_win_110_; lean_object* v___f_111_; lean_object* v___x_112_; lean_object* v___f_113_; -v_win_110_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__6)); -v___f_111_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__5)); -v___x_112_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__0, &l_Std_Http_Body_Empty_recvSelector___closed__0_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__0); -v___f_113_ = lean_alloc_closure((void*)(l_Std_Http_Body_Empty_recvSelector___lam__2___boxed), 5, 3); -lean_closure_set(v___f_113_, 0, v___x_112_); -lean_closure_set(v___f_113_, 1, v___f_111_); -lean_closure_set(v___f_113_, 2, v_win_110_); -return v___f_113_; +lean_object* v_win_126_; lean_object* v___f_127_; lean_object* v___x_128_; lean_object* v___f_129_; +v_win_126_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__6)); +v___f_127_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__5)); +v___x_128_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__0, &l_Std_Http_Body_Empty_recvSelector___closed__0_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__0); +v___f_129_ = lean_alloc_closure((void*)(l_Std_Http_Body_Empty_recvSelector___lam__2___boxed), 5, 3); +lean_closure_set(v___f_129_, 0, v___x_128_); +lean_closure_set(v___f_129_, 1, v___f_127_); +lean_closure_set(v___f_129_, 2, v_win_126_); +return v___f_129_; } } -static lean_object* _init_l_Std_Http_Body_Empty_recvSelector___closed__10(void){ +static lean_object* _init_l_Std_Http_Body_Empty_recvSelector___closed__9(void){ _start: { -lean_object* v___f_118_; lean_object* v___f_119_; lean_object* v___f_120_; lean_object* v___x_121_; -v___f_118_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___lam__2___closed__0)); -v___f_119_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__7, &l_Std_Http_Body_Empty_recvSelector___closed__7_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__7); -v___f_120_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__9)); -v___x_121_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_121_, 0, v___f_120_); -lean_ctor_set(v___x_121_, 1, v___f_119_); -lean_ctor_set(v___x_121_, 2, v___f_118_); -return v___x_121_; +lean_object* v___f_132_; lean_object* v___f_133_; lean_object* v___f_134_; lean_object* v___x_135_; +v___f_132_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___lam__2___closed__0)); +v___f_133_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__7, &l_Std_Http_Body_Empty_recvSelector___closed__7_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__7); +v___f_134_ = ((lean_object*)(l_Std_Http_Body_Empty_recvSelector___closed__8)); +v___x_135_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_135_, 0, v___f_134_); +lean_ctor_set(v___x_135_, 1, v___f_133_); +lean_ctor_set(v___x_135_, 2, v___f_132_); +return v___x_135_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector(lean_object* v_x_122_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Empty_recvSelector(lean_object* v_x_136_){ _start: { -lean_object* v___x_123_; -v___x_123_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__10, &l_Std_Http_Body_Empty_recvSelector___closed__10_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__10); -return v___x_123_; +lean_object* v___x_137_; +v___x_137_ = lean_obj_once(&l_Std_Http_Body_Empty_recvSelector___closed__9, &l_Std_Http_Body_Empty_recvSelector___closed__9_once, _init_l_Std_Http_Body_Empty_recvSelector___closed__9); +return v___x_137_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__0(lean_object* v_x_132_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__0(lean_object* v_x_146_){ _start: { -lean_object* v___x_134_; -v___x_134_ = ((lean_object*)(l_Std_Http_Body_instEmpty___lam__0___closed__3)); -return v___x_134_; +lean_object* v___x_148_; +v___x_148_ = ((lean_object*)(l_Std_Http_Body_instEmpty___lam__0___closed__3)); +return v___x_148_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__0___boxed(lean_object* v_x_135_, lean_object* v___y_136_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__0___boxed(lean_object* v_x_149_, lean_object* v___y_150_){ _start: { -lean_object* v_res_137_; -v_res_137_ = l_Std_Http_Body_instEmpty___lam__0(v_x_135_); -return v_res_137_; +lean_object* v_res_151_; +v_res_151_ = l_Std_Http_Body_instEmpty___lam__0(v_x_149_); +return v_res_151_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__1(lean_object* v_x_138_, lean_object* v_x_139_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__1(lean_object* v_x_152_, lean_object* v_x_153_){ _start: { -lean_object* v___x_141_; -v___x_141_ = ((lean_object*)(l_Std_Http_Body_Empty_close___redArg___closed__1)); -return v___x_141_; +lean_object* v___x_155_; +v___x_155_ = ((lean_object*)(l_Std_Http_Body_Empty_close___redArg___closed__1)); +return v___x_155_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__1___boxed(lean_object* v_x_142_, lean_object* v_x_143_, lean_object* v___y_144_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instEmpty___lam__1___boxed(lean_object* v_x_156_, lean_object* v_x_157_, lean_object* v___y_158_){ _start: { -lean_object* v_res_145_; -v_res_145_ = l_Std_Http_Body_instEmpty___lam__1(v_x_142_, v_x_143_); -lean_dec(v_x_143_); -return v_res_145_; +lean_object* v_res_159_; +v_res_159_ = l_Std_Http_Body_instEmpty___lam__1(v_x_156_, v_x_157_); +lean_dec(v_x_157_); +return v_res_159_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseEmptyAny___lam__0(lean_object* v___x_163_, lean_object* v_f_164_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseEmptyAny___lam__0(lean_object* v___x_179_, lean_object* v_f_180_){ _start: { -lean_object* v_line_165_; lean_object* v_body_166_; lean_object* v_extensions_167_; lean_object* v___x_169_; uint8_t v_isShared_170_; uint8_t v_isSharedCheck_175_; -v_line_165_ = lean_ctor_get(v_f_164_, 0); -v_body_166_ = lean_ctor_get(v_f_164_, 1); -v_extensions_167_ = lean_ctor_get(v_f_164_, 2); -v_isSharedCheck_175_ = !lean_is_exclusive(v_f_164_); -if (v_isSharedCheck_175_ == 0) +lean_object* v_line_181_; lean_object* v_body_182_; lean_object* v_extensions_183_; lean_object* v___x_185_; uint8_t v_isShared_186_; uint8_t v_isSharedCheck_191_; +v_line_181_ = lean_ctor_get(v_f_180_, 0); +v_body_182_ = lean_ctor_get(v_f_180_, 1); +v_extensions_183_ = lean_ctor_get(v_f_180_, 2); +v_isSharedCheck_191_ = !lean_is_exclusive(v_f_180_); +if (v_isSharedCheck_191_ == 0) { -v___x_169_ = v_f_164_; -v_isShared_170_ = v_isSharedCheck_175_; -goto v_resetjp_168_; +v___x_185_ = v_f_180_; +v_isShared_186_ = v_isSharedCheck_191_; +goto v_resetjp_184_; } else { -lean_inc(v_extensions_167_); -lean_inc(v_body_166_); -lean_inc(v_line_165_); -lean_dec(v_f_164_); -v___x_169_ = lean_box(0); -v_isShared_170_ = v_isSharedCheck_175_; -goto v_resetjp_168_; +lean_inc(v_extensions_183_); +lean_inc(v_body_182_); +lean_inc(v_line_181_); +lean_dec(v_f_180_); +v___x_185_ = lean_box(0); +v_isShared_186_ = v_isSharedCheck_191_; +goto v_resetjp_184_; } -v_resetjp_168_: +v_resetjp_184_: { -lean_object* v___x_171_; lean_object* v___x_173_; -v___x_171_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_163_, v_body_166_); -if (v_isShared_170_ == 0) +lean_object* v___x_187_; lean_object* v___x_189_; +v___x_187_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_179_, v_body_182_); +if (v_isShared_186_ == 0) { -lean_ctor_set(v___x_169_, 1, v___x_171_); -v___x_173_ = v___x_169_; -goto v_reusejp_172_; +lean_ctor_set(v___x_185_, 1, v___x_187_); +v___x_189_ = v___x_185_; +goto v_reusejp_188_; } else { -lean_object* v_reuseFailAlloc_174_; -v_reuseFailAlloc_174_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_174_, 0, v_line_165_); -lean_ctor_set(v_reuseFailAlloc_174_, 1, v___x_171_); -lean_ctor_set(v_reuseFailAlloc_174_, 2, v_extensions_167_); -v___x_173_ = v_reuseFailAlloc_174_; -goto v_reusejp_172_; +lean_object* v_reuseFailAlloc_190_; +v_reuseFailAlloc_190_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_190_, 0, v_line_181_); +lean_ctor_set(v_reuseFailAlloc_190_, 1, v___x_187_); +lean_ctor_set(v_reuseFailAlloc_190_, 2, v_extensions_183_); +v___x_189_ = v_reuseFailAlloc_190_; +goto v_reusejp_188_; } -v_reusejp_172_: +v_reusejp_188_: { -return v___x_173_; +return v___x_189_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0(lean_object* v___x_179_, lean_object* v_x_180_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0(lean_object* v___x_195_, lean_object* v_x_196_){ _start: { -if (lean_obj_tag(v_x_180_) == 0) +if (lean_obj_tag(v_x_196_) == 0) { -lean_object* v_a_182_; lean_object* v___x_184_; uint8_t v_isShared_185_; uint8_t v_isSharedCheck_190_; -lean_dec_ref(v___x_179_); -v_a_182_ = lean_ctor_get(v_x_180_, 0); -v_isSharedCheck_190_ = !lean_is_exclusive(v_x_180_); -if (v_isSharedCheck_190_ == 0) +lean_object* v_a_198_; lean_object* v___x_200_; uint8_t v_isShared_201_; uint8_t v_isSharedCheck_206_; +lean_dec_ref(v___x_195_); +v_a_198_ = lean_ctor_get(v_x_196_, 0); +v_isSharedCheck_206_ = !lean_is_exclusive(v_x_196_); +if (v_isSharedCheck_206_ == 0) { -v___x_184_ = v_x_180_; -v_isShared_185_ = v_isSharedCheck_190_; -goto v_resetjp_183_; +v___x_200_ = v_x_196_; +v_isShared_201_ = v_isSharedCheck_206_; +goto v_resetjp_199_; } else { -lean_inc(v_a_182_); -lean_dec(v_x_180_); -v___x_184_ = lean_box(0); -v_isShared_185_ = v_isSharedCheck_190_; -goto v_resetjp_183_; +lean_inc(v_a_198_); +lean_dec(v_x_196_); +v___x_200_ = lean_box(0); +v_isShared_201_ = v_isSharedCheck_206_; +goto v_resetjp_199_; } -v_resetjp_183_: +v_resetjp_199_: { -lean_object* v___x_187_; -if (v_isShared_185_ == 0) +lean_object* v___x_203_; +if (v_isShared_201_ == 0) { -v___x_187_ = v___x_184_; -goto v_reusejp_186_; -} -else -{ -lean_object* v_reuseFailAlloc_189_; -v_reuseFailAlloc_189_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_189_, 0, v_a_182_); -v___x_187_ = v_reuseFailAlloc_189_; -goto v_reusejp_186_; -} -v_reusejp_186_: -{ -lean_object* v___x_188_; -v___x_188_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_188_, 0, v___x_187_); -return v___x_188_; -} -} -} -else -{ -lean_object* v_a_191_; lean_object* v___x_193_; uint8_t v_isShared_194_; uint8_t v_isSharedCheck_210_; -v_a_191_ = lean_ctor_get(v_x_180_, 0); -v_isSharedCheck_210_ = !lean_is_exclusive(v_x_180_); -if (v_isSharedCheck_210_ == 0) -{ -v___x_193_ = v_x_180_; -v_isShared_194_ = v_isSharedCheck_210_; -goto v_resetjp_192_; -} -else -{ -lean_inc(v_a_191_); -lean_dec(v_x_180_); -v___x_193_ = lean_box(0); -v_isShared_194_ = v_isSharedCheck_210_; -goto v_resetjp_192_; -} -v_resetjp_192_: -{ -lean_object* v_line_195_; lean_object* v_body_196_; lean_object* v_extensions_197_; lean_object* v___x_199_; uint8_t v_isShared_200_; uint8_t v_isSharedCheck_209_; -v_line_195_ = lean_ctor_get(v_a_191_, 0); -v_body_196_ = lean_ctor_get(v_a_191_, 1); -v_extensions_197_ = lean_ctor_get(v_a_191_, 2); -v_isSharedCheck_209_ = !lean_is_exclusive(v_a_191_); -if (v_isSharedCheck_209_ == 0) -{ -v___x_199_ = v_a_191_; -v_isShared_200_ = v_isSharedCheck_209_; -goto v_resetjp_198_; -} -else -{ -lean_inc(v_extensions_197_); -lean_inc(v_body_196_); -lean_inc(v_line_195_); -lean_dec(v_a_191_); -v___x_199_ = lean_box(0); -v_isShared_200_ = v_isSharedCheck_209_; -goto v_resetjp_198_; -} -v_resetjp_198_: -{ -lean_object* v___x_201_; lean_object* v___x_203_; -v___x_201_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_179_, v_body_196_); -if (v_isShared_200_ == 0) -{ -lean_ctor_set(v___x_199_, 1, v___x_201_); -v___x_203_ = v___x_199_; +v___x_203_ = v___x_200_; goto v_reusejp_202_; } else { -lean_object* v_reuseFailAlloc_208_; -v_reuseFailAlloc_208_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_208_, 0, v_line_195_); -lean_ctor_set(v_reuseFailAlloc_208_, 1, v___x_201_); -lean_ctor_set(v_reuseFailAlloc_208_, 2, v_extensions_197_); -v___x_203_ = v_reuseFailAlloc_208_; +lean_object* v_reuseFailAlloc_205_; +v_reuseFailAlloc_205_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_205_, 0, v_a_198_); +v___x_203_ = v_reuseFailAlloc_205_; goto v_reusejp_202_; } v_reusejp_202_: { -lean_object* v___x_205_; -if (v_isShared_194_ == 0) -{ -lean_ctor_set(v___x_193_, 0, v___x_203_); -v___x_205_ = v___x_193_; -goto v_reusejp_204_; +lean_object* v___x_204_; +v___x_204_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_204_, 0, v___x_203_); +return v___x_204_; +} +} } else { -lean_object* v_reuseFailAlloc_207_; -v_reuseFailAlloc_207_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_207_, 0, v___x_203_); -v___x_205_ = v_reuseFailAlloc_207_; -goto v_reusejp_204_; -} -v_reusejp_204_: +lean_object* v_a_207_; lean_object* v___x_209_; uint8_t v_isShared_210_; uint8_t v_isSharedCheck_226_; +v_a_207_ = lean_ctor_get(v_x_196_, 0); +v_isSharedCheck_226_ = !lean_is_exclusive(v_x_196_); +if (v_isSharedCheck_226_ == 0) { -lean_object* v___x_206_; -v___x_206_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_206_, 0, v___x_205_); -return v___x_206_; +v___x_209_ = v_x_196_; +v_isShared_210_ = v_isSharedCheck_226_; +goto v_resetjp_208_; } -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0___boxed(lean_object* v___x_211_, lean_object* v_x_212_, lean_object* v___y_213_){ -_start: +else { -lean_object* v_res_214_; -v_res_214_ = l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0(v___x_211_, v_x_212_); -return v_res_214_; +lean_inc(v_a_207_); +lean_dec(v_x_196_); +v___x_209_ = lean_box(0); +v_isShared_210_ = v_isSharedCheck_226_; +goto v_resetjp_208_; } -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1(lean_object* v___f_215_, lean_object* v_action_216_, lean_object* v___y_217_){ -_start: +v_resetjp_208_: { -lean_object* v___x_219_; lean_object* v___x_220_; uint8_t v___x_221_; lean_object* v___x_222_; -lean_inc_ref(v___y_217_); -v___x_219_ = lean_apply_2(v_action_216_, v___y_217_, lean_box(0)); -v___x_220_ = lean_unsigned_to_nat(0u); -v___x_221_ = 0; -v___x_222_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_220_, v___x_221_, v___x_219_, v___f_215_); +lean_object* v_line_211_; lean_object* v_body_212_; lean_object* v_extensions_213_; lean_object* v___x_215_; uint8_t v_isShared_216_; uint8_t v_isSharedCheck_225_; +v_line_211_ = lean_ctor_get(v_a_207_, 0); +v_body_212_ = lean_ctor_get(v_a_207_, 1); +v_extensions_213_ = lean_ctor_get(v_a_207_, 2); +v_isSharedCheck_225_ = !lean_is_exclusive(v_a_207_); +if (v_isSharedCheck_225_ == 0) +{ +v___x_215_ = v_a_207_; +v_isShared_216_ = v_isSharedCheck_225_; +goto v_resetjp_214_; +} +else +{ +lean_inc(v_extensions_213_); +lean_inc(v_body_212_); +lean_inc(v_line_211_); +lean_dec(v_a_207_); +v___x_215_ = lean_box(0); +v_isShared_216_ = v_isSharedCheck_225_; +goto v_resetjp_214_; +} +v_resetjp_214_: +{ +lean_object* v___x_217_; lean_object* v___x_219_; +v___x_217_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_195_, v_body_212_); +if (v_isShared_216_ == 0) +{ +lean_ctor_set(v___x_215_, 1, v___x_217_); +v___x_219_ = v___x_215_; +goto v_reusejp_218_; +} +else +{ +lean_object* v_reuseFailAlloc_224_; +v_reuseFailAlloc_224_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_224_, 0, v_line_211_); +lean_ctor_set(v_reuseFailAlloc_224_, 1, v___x_217_); +lean_ctor_set(v_reuseFailAlloc_224_, 2, v_extensions_213_); +v___x_219_ = v_reuseFailAlloc_224_; +goto v_reusejp_218_; +} +v_reusejp_218_: +{ +lean_object* v___x_221_; +if (v_isShared_210_ == 0) +{ +lean_ctor_set(v___x_209_, 0, v___x_219_); +v___x_221_ = v___x_209_; +goto v_reusejp_220_; +} +else +{ +lean_object* v_reuseFailAlloc_223_; +v_reuseFailAlloc_223_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_223_, 0, v___x_219_); +v___x_221_ = v_reuseFailAlloc_223_; +goto v_reusejp_220_; +} +v_reusejp_220_: +{ +lean_object* v___x_222_; +v___x_222_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_222_, 0, v___x_221_); return v___x_222_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1___boxed(lean_object* v___f_223_, lean_object* v_action_224_, lean_object* v___y_225_, lean_object* v___y_226_){ +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0___boxed(lean_object* v___x_227_, lean_object* v_x_228_, lean_object* v___y_229_){ _start: { -lean_object* v_res_227_; -v_res_227_ = l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1(v___f_223_, v_action_224_, v___y_225_); -lean_dec_ref(v___y_225_); -return v_res_227_; +lean_object* v_res_230_; +v_res_230_ = l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__0(v___x_227_, v_x_228_); +return v_res_230_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1(lean_object* v___f_233_, lean_object* v_action_234_, lean_object* v___y_235_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1(lean_object* v___f_231_, lean_object* v_action_232_, lean_object* v___y_233_){ _start: { -lean_object* v___x_237_; lean_object* v___x_238_; uint8_t v___x_239_; lean_object* v___x_240_; -v___x_237_ = lean_apply_1(v_action_234_, lean_box(0)); -v___x_238_ = lean_unsigned_to_nat(0u); -v___x_239_ = 0; -v___x_240_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_238_, v___x_239_, v___x_237_, v___f_233_); -return v___x_240_; +lean_object* v___x_235_; lean_object* v___x_236_; uint8_t v___x_237_; lean_object* v___x_238_; +lean_inc_ref(v___y_233_); +v___x_235_ = lean_apply_2(v_action_232_, v___y_233_, lean_box(0)); +v___x_236_ = lean_unsigned_to_nat(0u); +v___x_237_ = 0; +v___x_238_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_236_, v___x_237_, v___x_235_, v___f_231_); +return v___x_238_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1___boxed(lean_object* v___f_241_, lean_object* v_action_242_, lean_object* v___y_243_, lean_object* v___y_244_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1___boxed(lean_object* v___f_239_, lean_object* v_action_240_, lean_object* v___y_241_, lean_object* v___y_242_){ _start: { -lean_object* v_res_245_; -v_res_245_ = l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1(v___f_241_, v_action_242_, v___y_243_); -lean_dec_ref(v___y_243_); -return v_res_245_; +lean_object* v_res_243_; +v_res_243_ = l_Std_Http_Body_instCoeContextAsyncResponseEmptyAny___lam__1(v___f_239_, v_action_240_, v___y_241_); +lean_dec_ref(v___y_241_); +return v_res_243_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_empty(lean_object* v_builder_249_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1(lean_object* v___f_249_, lean_object* v_action_250_, lean_object* v___y_251_){ _start: { -lean_object* v___x_251_; lean_object* v___x_252_; lean_object* v___x_253_; lean_object* v___x_254_; -v___x_251_ = lean_box(0); -v___x_252_ = l_Std_Http_Request_Builder_body___redArg(v_builder_249_, v___x_251_); -v___x_253_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_253_, 0, v___x_252_); -v___x_254_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_254_, 0, v___x_253_); -return v___x_254_; +lean_object* v___x_253_; lean_object* v___x_254_; uint8_t v___x_255_; lean_object* v___x_256_; +v___x_253_ = lean_apply_1(v_action_250_, lean_box(0)); +v___x_254_ = lean_unsigned_to_nat(0u); +v___x_255_ = 0; +v___x_256_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_254_, v___x_255_, v___x_253_, v___f_249_); +return v___x_256_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_empty___boxed(lean_object* v_builder_255_, lean_object* v_a_256_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1___boxed(lean_object* v___f_257_, lean_object* v_action_258_, lean_object* v___y_259_, lean_object* v___y_260_){ _start: { -lean_object* v_res_257_; -v_res_257_ = l_Std_Http_Request_Builder_empty(v_builder_255_); -lean_dec_ref(v_builder_255_); -return v_res_257_; +lean_object* v_res_261_; +v_res_261_ = l_Std_Http_Body_instCoeAsyncResponseEmptyContextAsyncAny___lam__1(v___f_257_, v_action_258_, v___y_259_); +lean_dec_ref(v___y_259_); +return v_res_261_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_empty(lean_object* v_builder_258_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_empty(lean_object* v_builder_265_){ _start: { -lean_object* v___x_260_; lean_object* v___x_261_; lean_object* v___x_262_; lean_object* v___x_263_; -v___x_260_ = lean_box(0); -v___x_261_ = l_Std_Http_Response_Builder_body___redArg(v_builder_258_, v___x_260_); -v___x_262_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_262_, 0, v___x_261_); -v___x_263_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_263_, 0, v___x_262_); -return v___x_263_; +lean_object* v___x_267_; lean_object* v___x_268_; lean_object* v___x_269_; lean_object* v___x_270_; +v___x_267_ = lean_box(0); +v___x_268_ = l_Std_Http_Request_Builder_body___redArg(v_builder_265_, v___x_267_); +v___x_269_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_269_, 0, v___x_268_); +v___x_270_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_270_, 0, v___x_269_); +return v___x_270_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_empty___boxed(lean_object* v_builder_264_, lean_object* v_a_265_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_empty___boxed(lean_object* v_builder_271_, lean_object* v_a_272_){ _start: { -lean_object* v_res_266_; -v_res_266_ = l_Std_Http_Response_Builder_empty(v_builder_264_); -lean_dec_ref(v_builder_264_); -return v_res_266_; +lean_object* v_res_273_; +v_res_273_ = l_Std_Http_Request_Builder_empty(v_builder_271_); +lean_dec_ref(v_builder_271_); +return v_res_273_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_empty(lean_object* v_builder_274_){ +_start: +{ +lean_object* v___x_276_; lean_object* v___x_277_; lean_object* v___x_278_; lean_object* v___x_279_; +v___x_276_ = lean_box(0); +v___x_277_ = l_Std_Http_Response_Builder_body___redArg(v_builder_274_, v___x_276_); +v___x_278_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_278_, 0, v___x_277_); +v___x_279_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_279_, 0, v___x_278_); +return v___x_279_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_empty___boxed(lean_object* v_builder_280_, lean_object* v_a_281_){ +_start: +{ +lean_object* v_res_282_; +v_res_282_ = l_Std_Http_Response_Builder_empty(v_builder_280_); +lean_dec_ref(v_builder_280_); +return v_res_282_; } } lean_object* runtime_initialize_Std_Internal_Http_Data_Request(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Data/Body/Full.c b/stage0/stdlib/Std/Internal/Http/Data/Body/Full.c index 51044aa35d..f85739237e 100644 --- a/stage0/stdlib/Std/Internal/Http/Data/Body/Full.c +++ b/stage0/stdlib/Std/Internal/Http/Data/Body/Full.c @@ -102,6 +102,12 @@ static const lean_closure_object l_Std_Http_Body_Full_getKnownSize___closed__1_v static const lean_object* l_Std_Http_Body_Full_getKnownSize___closed__1 = (const lean_object*)&l_Std_Http_Body_Full_getKnownSize___closed__1_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Full_getKnownSize(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Full_getKnownSize___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Full_tryRecv___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_tryRecv___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Body_Full_tryRecv___closed__0 = (const lean_object*)&l_Std_Http_Body_Full_tryRecv___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -114,16 +120,12 @@ static const lean_closure_object l_Std_Http_Body_Full_recvSelector___lam__1___cl static const lean_object* l_Std_Http_Body_Full_recvSelector___lam__1___closed__0 = (const lean_object*)&l_Std_Http_Body_Full_recvSelector___lam__1___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2(lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__4(lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__4___boxed(lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_Full_recvSelector___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_recvSelector___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Full_recvSelector___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_recvSelector___lam__2___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; static const lean_object* l_Std_Http_Body_Full_recvSelector___closed__0 = (const lean_object*)&l_Std_Http_Body_Full_recvSelector___closed__0_value; -static const lean_closure_object l_Std_Http_Body_Full_recvSelector___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_recvSelector___lam__4___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; -static const lean_object* l_Std_Http_Body_Full_recvSelector___closed__1 = (const lean_object*)&l_Std_Http_Body_Full_recvSelector___closed__1_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector(lean_object*); static const lean_ctor_object l_Std_Http_Body_instFull___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; static const lean_object* l_Std_Http_Body_instFull___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Body_instFull___lam__0___closed__0_value; @@ -141,23 +143,25 @@ static const lean_closure_object l_Std_Http_Body_instFull___closed__3_value = {. static const lean_object* l_Std_Http_Body_instFull___closed__3 = (const lean_object*)&l_Std_Http_Body_instFull___closed__3_value; static const lean_closure_object l_Std_Http_Body_instFull___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_recvSelector, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instFull___closed__4 = (const lean_object*)&l_Std_Http_Body_instFull___closed__4_value; -static const lean_closure_object l_Std_Http_Body_instFull___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_getKnownSize___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_closure_object l_Std_Http_Body_instFull___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_tryRecv___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instFull___closed__5 = (const lean_object*)&l_Std_Http_Body_instFull___closed__5_value; -static const lean_ctor_object l_Std_Http_Body_instFull___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*6 + 0, .m_other = 6, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__1_value),((lean_object*)&l_Std_Http_Body_instFull___closed__2_value),((lean_object*)&l_Std_Http_Body_instFull___closed__3_value),((lean_object*)&l_Std_Http_Body_instFull___closed__4_value),((lean_object*)&l_Std_Http_Body_instFull___closed__5_value),((lean_object*)&l_Std_Http_Body_instFull___closed__0_value)}}; +static const lean_closure_object l_Std_Http_Body_instFull___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Full_getKnownSize___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instFull___closed__6 = (const lean_object*)&l_Std_Http_Body_instFull___closed__6_value; -LEAN_EXPORT const lean_object* l_Std_Http_Body_instFull = (const lean_object*)&l_Std_Http_Body_instFull___closed__6_value; -static const lean_closure_object l_Std_Http_Body_instCoeFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instFull___closed__6_value)} }; +static const lean_ctor_object l_Std_Http_Body_instFull___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*7 + 0, .m_other = 7, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__1_value),((lean_object*)&l_Std_Http_Body_instFull___closed__2_value),((lean_object*)&l_Std_Http_Body_instFull___closed__3_value),((lean_object*)&l_Std_Http_Body_instFull___closed__4_value),((lean_object*)&l_Std_Http_Body_instFull___closed__5_value),((lean_object*)&l_Std_Http_Body_instFull___closed__6_value),((lean_object*)&l_Std_Http_Body_instFull___closed__0_value)}}; +static const lean_object* l_Std_Http_Body_instFull___closed__7 = (const lean_object*)&l_Std_Http_Body_instFull___closed__7_value; +LEAN_EXPORT const lean_object* l_Std_Http_Body_instFull = (const lean_object*)&l_Std_Http_Body_instFull___closed__7_value; +static const lean_closure_object l_Std_Http_Body_instCoeFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instFull___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeFullAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeFullAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeFullAny = (const lean_object*)&l_Std_Http_Body_instCoeFullAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseFullAny___lam__0(lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeResponseFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseFullAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__6_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeResponseFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseFullAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeResponseFullAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeResponseFullAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeResponseFullAny = (const lean_object*)&l_Std_Http_Body_instCoeResponseFullAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__6_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instFull___closed__7_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__0_value; static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1___boxed, .m_arity = 4, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__0_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__1 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseFullAny___closed__1_value; @@ -1442,627 +1446,648 @@ v_res_390_ = l_Std_Http_Body_Full_getKnownSize(v_full_388_); return v_res_390_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0(lean_object* v_promise_391_, lean_object* v_x_392_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___lam__0(lean_object* v_x_391_){ _start: { -if (lean_obj_tag(v_x_392_) == 0) +if (lean_obj_tag(v_x_391_) == 0) { -lean_object* v_a_394_; lean_object* v___x_396_; uint8_t v_isShared_397_; uint8_t v_isSharedCheck_402_; -v_a_394_ = lean_ctor_get(v_x_392_, 0); -v_isSharedCheck_402_ = !lean_is_exclusive(v_x_392_); -if (v_isSharedCheck_402_ == 0) +lean_object* v_a_393_; lean_object* v___x_395_; uint8_t v_isShared_396_; uint8_t v_isSharedCheck_401_; +v_a_393_ = lean_ctor_get(v_x_391_, 0); +v_isSharedCheck_401_ = !lean_is_exclusive(v_x_391_); +if (v_isSharedCheck_401_ == 0) { -v___x_396_ = v_x_392_; -v_isShared_397_ = v_isSharedCheck_402_; -goto v_resetjp_395_; +v___x_395_ = v_x_391_; +v_isShared_396_ = v_isSharedCheck_401_; +goto v_resetjp_394_; } else { -lean_inc(v_a_394_); -lean_dec(v_x_392_); -v___x_396_ = lean_box(0); -v_isShared_397_ = v_isSharedCheck_402_; -goto v_resetjp_395_; +lean_inc(v_a_393_); +lean_dec(v_x_391_); +v___x_395_ = lean_box(0); +v_isShared_396_ = v_isSharedCheck_401_; +goto v_resetjp_394_; } -v_resetjp_395_: +v_resetjp_394_: +{ +lean_object* v___x_398_; +if (v_isShared_396_ == 0) +{ +v___x_398_ = v___x_395_; +goto v_reusejp_397_; +} +else +{ +lean_object* v_reuseFailAlloc_400_; +v_reuseFailAlloc_400_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_400_, 0, v_a_393_); +v___x_398_ = v_reuseFailAlloc_400_; +goto v_reusejp_397_; +} +v_reusejp_397_: { lean_object* v___x_399_; -if (v_isShared_397_ == 0) -{ -v___x_399_ = v___x_396_; -goto v_reusejp_398_; -} -else -{ -lean_object* v_reuseFailAlloc_401_; -v_reuseFailAlloc_401_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_401_, 0, v_a_394_); -v___x_399_ = v_reuseFailAlloc_401_; -goto v_reusejp_398_; -} -v_reusejp_398_: -{ -lean_object* v___x_400_; -v___x_400_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_400_, 0, v___x_399_); -return v___x_400_; +v___x_399_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_399_, 0, v___x_398_); +return v___x_399_; } } } else { -lean_object* v___x_403_; lean_object* v___x_404_; lean_object* v___x_405_; -v___x_403_ = lean_io_promise_resolve(v_x_392_, v_promise_391_); -v___x_404_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_404_, 0, v___x_403_); -v___x_405_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_405_, 0, v___x_404_); -return v___x_405_; +lean_object* v_a_402_; lean_object* v___x_404_; uint8_t v_isShared_405_; uint8_t v_isSharedCheck_411_; +v_a_402_ = lean_ctor_get(v_x_391_, 0); +v_isSharedCheck_411_ = !lean_is_exclusive(v_x_391_); +if (v_isSharedCheck_411_ == 0) +{ +v___x_404_ = v_x_391_; +v_isShared_405_ = v_isSharedCheck_411_; +goto v_resetjp_403_; +} +else +{ +lean_inc(v_a_402_); +lean_dec(v_x_391_); +v___x_404_ = lean_box(0); +v_isShared_405_ = v_isSharedCheck_411_; +goto v_resetjp_403_; +} +v_resetjp_403_: +{ +lean_object* v___x_406_; lean_object* v___x_408_; +v___x_406_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_406_, 0, v_a_402_); +if (v_isShared_405_ == 0) +{ +lean_ctor_set(v___x_404_, 0, v___x_406_); +v___x_408_ = v___x_404_; +goto v_reusejp_407_; +} +else +{ +lean_object* v_reuseFailAlloc_410_; +v_reuseFailAlloc_410_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_410_, 0, v___x_406_); +v___x_408_ = v_reuseFailAlloc_410_; +goto v_reusejp_407_; +} +v_reusejp_407_: +{ +lean_object* v___x_409_; +v___x_409_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_409_, 0, v___x_408_); +return v___x_409_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0___boxed(lean_object* v_promise_406_, lean_object* v_x_407_, lean_object* v___y_408_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___lam__0___boxed(lean_object* v_x_412_, lean_object* v___y_413_){ _start: { -lean_object* v_res_409_; -v_res_409_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0(v_promise_406_, v_x_407_); -lean_dec(v_promise_406_); -return v_res_409_; +lean_object* v_res_414_; +v_res_414_ = l_Std_Http_Body_Full_tryRecv___lam__0(v_x_412_); +return v_res_414_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1(lean_object* v_lose_410_, lean_object* v___y_411_, lean_object* v___f_412_, lean_object* v_x_413_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv(lean_object* v_full_416_){ _start: { -if (lean_obj_tag(v_x_413_) == 0) -{ -lean_object* v_a_415_; lean_object* v___x_417_; uint8_t v_isShared_418_; uint8_t v_isSharedCheck_423_; -lean_dec_ref(v___f_412_); -lean_dec_ref(v_lose_410_); -v_a_415_ = lean_ctor_get(v_x_413_, 0); -v_isSharedCheck_423_ = !lean_is_exclusive(v_x_413_); -if (v_isSharedCheck_423_ == 0) -{ -v___x_417_ = v_x_413_; -v_isShared_418_ = v_isSharedCheck_423_; -goto v_resetjp_416_; -} -else -{ -lean_inc(v_a_415_); -lean_dec(v_x_413_); -v___x_417_ = lean_box(0); -v_isShared_418_ = v_isSharedCheck_423_; -goto v_resetjp_416_; -} -v_resetjp_416_: -{ -lean_object* v___x_420_; -if (v_isShared_418_ == 0) -{ -v___x_420_ = v___x_417_; -goto v_reusejp_419_; -} -else -{ -lean_object* v_reuseFailAlloc_422_; -v_reuseFailAlloc_422_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_422_, 0, v_a_415_); -v___x_420_ = v_reuseFailAlloc_422_; -goto v_reusejp_419_; -} -v_reusejp_419_: -{ -lean_object* v___x_421_; -v___x_421_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_421_, 0, v___x_420_); -return v___x_421_; +lean_object* v___x_418_; lean_object* v___x_419_; lean_object* v___f_420_; lean_object* v___x_421_; uint8_t v___x_422_; lean_object* v___x_423_; +v___x_418_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Full_0__Std_Http_Body_Full_takeChunk___boxed), 2, 0); +v___x_419_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Full_recv_spec__0___redArg(v_full_416_, v___x_418_); +v___f_420_ = ((lean_object*)(l_Std_Http_Body_Full_tryRecv___closed__0)); +v___x_421_ = lean_unsigned_to_nat(0u); +v___x_422_ = 0; +v___x_423_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_421_, v___x_422_, v___x_419_, v___f_420_); +return v___x_423_; } } -} -else -{ -lean_object* v_a_424_; uint8_t v___x_425_; -v_a_424_ = lean_ctor_get(v_x_413_, 0); -lean_inc(v_a_424_); -lean_dec_ref(v_x_413_); -v___x_425_ = lean_unbox(v_a_424_); -lean_dec(v_a_424_); -if (v___x_425_ == 0) -{ -lean_object* v___x_426_; -lean_dec_ref(v___f_412_); -lean_inc(v___y_411_); -v___x_426_ = lean_apply_2(v_lose_410_, v___y_411_, lean_box(0)); -return v___x_426_; -} -else -{ -lean_object* v___x_427_; lean_object* v___x_428_; uint8_t v___x_429_; lean_object* v___x_430_; -lean_dec_ref(v_lose_410_); -v___x_427_ = l___private_Std_Internal_Http_Data_Body_Full_0__Std_Http_Body_Full_takeChunk(v___y_411_); -v___x_428_ = lean_unsigned_to_nat(0u); -v___x_429_ = 0; -v___x_430_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_428_, v___x_429_, v___x_427_, v___f_412_); -return v___x_430_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1___boxed(lean_object* v_lose_431_, lean_object* v___y_432_, lean_object* v___f_433_, lean_object* v_x_434_, lean_object* v___y_435_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_tryRecv___boxed(lean_object* v_full_424_, lean_object* v_a_425_){ _start: { -lean_object* v_res_436_; -v_res_436_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1(v_lose_431_, v___y_432_, v___f_433_, v_x_434_); -lean_dec(v___y_432_); -return v_res_436_; +lean_object* v_res_426_; +v_res_426_ = l_Std_Http_Body_Full_tryRecv(v_full_424_); +return v_res_426_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0(lean_object* v_w_437_, lean_object* v_lose_438_, lean_object* v___y_439_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0(lean_object* v_promise_427_, lean_object* v_x_428_){ _start: { -lean_object* v_finished_441_; lean_object* v_promise_442_; lean_object* v___x_443_; lean_object* v___f_444_; lean_object* v___f_445_; uint8_t v___y_447_; uint8_t v___x_457_; -v_finished_441_ = lean_ctor_get(v_w_437_, 0); -lean_inc(v_finished_441_); -v_promise_442_ = lean_ctor_get(v_w_437_, 1); -lean_inc(v_promise_442_); -lean_dec_ref(v_w_437_); -v___x_443_ = lean_st_ref_take(v_finished_441_); -v___f_444_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0___boxed), 3, 1); -lean_closure_set(v___f_444_, 0, v_promise_442_); -lean_inc(v___y_439_); -v___f_445_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1___boxed), 5, 3); -lean_closure_set(v___f_445_, 0, v_lose_438_); -lean_closure_set(v___f_445_, 1, v___y_439_); -lean_closure_set(v___f_445_, 2, v___f_444_); -v___x_457_ = lean_unbox(v___x_443_); -lean_dec(v___x_443_); -if (v___x_457_ == 0) +if (lean_obj_tag(v_x_428_) == 0) { -uint8_t v___x_458_; -v___x_458_ = 1; -v___y_447_ = v___x_458_; -goto v___jp_446_; +lean_object* v_a_430_; lean_object* v___x_432_; uint8_t v_isShared_433_; uint8_t v_isSharedCheck_438_; +v_a_430_ = lean_ctor_get(v_x_428_, 0); +v_isSharedCheck_438_ = !lean_is_exclusive(v_x_428_); +if (v_isSharedCheck_438_ == 0) +{ +v___x_432_ = v_x_428_; +v_isShared_433_ = v_isSharedCheck_438_; +goto v_resetjp_431_; } else { -uint8_t v___x_459_; -v___x_459_ = 0; -v___y_447_ = v___x_459_; -goto v___jp_446_; +lean_inc(v_a_430_); +lean_dec(v_x_428_); +v___x_432_ = lean_box(0); +v_isShared_433_ = v_isSharedCheck_438_; +goto v_resetjp_431_; } -v___jp_446_: +v_resetjp_431_: { -uint8_t v___x_448_; lean_object* v___x_449_; lean_object* v___x_450_; lean_object* v___x_451_; lean_object* v___x_452_; lean_object* v___x_453_; lean_object* v___x_454_; uint8_t v___x_455_; lean_object* v___x_456_; -v___x_448_ = 1; -v___x_449_ = lean_box(v___x_448_); -v___x_450_ = lean_st_ref_set(v_finished_441_, v___x_449_); -lean_dec(v_finished_441_); -v___x_451_ = lean_box(v___y_447_); -v___x_452_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_452_, 0, v___x_451_); -v___x_453_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_453_, 0, v___x_452_); -v___x_454_ = lean_unsigned_to_nat(0u); -v___x_455_ = 0; -v___x_456_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_454_, v___x_455_, v___x_453_, v___f_445_); -return v___x_456_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___boxed(lean_object* v_w_460_, lean_object* v_lose_461_, lean_object* v___y_462_, lean_object* v___y_463_){ -_start: +lean_object* v___x_435_; +if (v_isShared_433_ == 0) { -lean_object* v_res_464_; -v_res_464_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0(v_w_460_, v_lose_461_, v___y_462_); -lean_dec(v___y_462_); -return v_res_464_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__0(lean_object* v___x_465_, lean_object* v___y_466_){ -_start: -{ -lean_object* v___x_468_; lean_object* v___x_469_; -v___x_468_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_468_, 0, v___x_465_); -v___x_469_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_469_, 0, v___x_468_); -return v___x_469_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__0___boxed(lean_object* v___x_470_, lean_object* v___y_471_, lean_object* v___y_472_){ -_start: -{ -lean_object* v_res_473_; -v_res_473_ = l_Std_Http_Body_Full_recvSelector___lam__0(v___x_470_, v___y_471_); -lean_dec(v___y_471_); -return v_res_473_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1(lean_object* v_full_476_, lean_object* v_waiter_477_){ -_start: -{ -lean_object* v_lose_479_; lean_object* v___x_480_; lean_object* v___x_481_; -v_lose_479_ = ((lean_object*)(l_Std_Http_Body_Full_recvSelector___lam__1___closed__0)); -v___x_480_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___boxed), 4, 2); -lean_closure_set(v___x_480_, 0, v_waiter_477_); -lean_closure_set(v___x_480_, 1, v_lose_479_); -v___x_481_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Full_recv_spec__0___redArg(v_full_476_, v___x_480_); -return v___x_481_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1___boxed(lean_object* v_full_482_, lean_object* v_waiter_483_, lean_object* v___y_484_){ -_start: -{ -lean_object* v_res_485_; -v_res_485_ = l_Std_Http_Body_Full_recvSelector___lam__1(v_full_482_, v_waiter_483_); -return v_res_485_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2(lean_object* v_x_486_){ -_start: -{ -if (lean_obj_tag(v_x_486_) == 0) -{ -lean_object* v_a_488_; lean_object* v___x_490_; uint8_t v_isShared_491_; uint8_t v_isSharedCheck_496_; -v_a_488_ = lean_ctor_get(v_x_486_, 0); -v_isSharedCheck_496_ = !lean_is_exclusive(v_x_486_); -if (v_isSharedCheck_496_ == 0) -{ -v___x_490_ = v_x_486_; -v_isShared_491_ = v_isSharedCheck_496_; -goto v_resetjp_489_; +v___x_435_ = v___x_432_; +goto v_reusejp_434_; } else { -lean_inc(v_a_488_); -lean_dec(v_x_486_); -v___x_490_ = lean_box(0); -v_isShared_491_ = v_isSharedCheck_496_; -goto v_resetjp_489_; +lean_object* v_reuseFailAlloc_437_; +v_reuseFailAlloc_437_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_437_, 0, v_a_430_); +v___x_435_ = v_reuseFailAlloc_437_; +goto v_reusejp_434_; } -v_resetjp_489_: +v_reusejp_434_: { -lean_object* v___x_493_; -if (v_isShared_491_ == 0) -{ -v___x_493_ = v___x_490_; -goto v_reusejp_492_; -} -else -{ -lean_object* v_reuseFailAlloc_495_; -v_reuseFailAlloc_495_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_495_, 0, v_a_488_); -v___x_493_ = v_reuseFailAlloc_495_; -goto v_reusejp_492_; -} -v_reusejp_492_: -{ -lean_object* v___x_494_; -v___x_494_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_494_, 0, v___x_493_); -return v___x_494_; +lean_object* v___x_436_; +v___x_436_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_436_, 0, v___x_435_); +return v___x_436_; } } } else { -lean_object* v_a_497_; lean_object* v___x_499_; uint8_t v_isShared_500_; uint8_t v_isSharedCheck_506_; -v_a_497_ = lean_ctor_get(v_x_486_, 0); -v_isSharedCheck_506_ = !lean_is_exclusive(v_x_486_); -if (v_isSharedCheck_506_ == 0) +lean_object* v___x_439_; lean_object* v___x_440_; lean_object* v___x_441_; +v___x_439_ = lean_io_promise_resolve(v_x_428_, v_promise_427_); +v___x_440_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_440_, 0, v___x_439_); +v___x_441_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_441_, 0, v___x_440_); +return v___x_441_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0___boxed(lean_object* v_promise_442_, lean_object* v_x_443_, lean_object* v___y_444_){ +_start: { -v___x_499_ = v_x_486_; -v_isShared_500_ = v_isSharedCheck_506_; -goto v_resetjp_498_; +lean_object* v_res_445_; +v_res_445_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0(v_promise_442_, v_x_443_); +lean_dec(v_promise_442_); +return v_res_445_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1(lean_object* v_lose_446_, lean_object* v___y_447_, lean_object* v___f_448_, lean_object* v_x_449_){ +_start: +{ +if (lean_obj_tag(v_x_449_) == 0) +{ +lean_object* v_a_451_; lean_object* v___x_453_; uint8_t v_isShared_454_; uint8_t v_isSharedCheck_459_; +lean_dec_ref(v___f_448_); +lean_dec_ref(v_lose_446_); +v_a_451_ = lean_ctor_get(v_x_449_, 0); +v_isSharedCheck_459_ = !lean_is_exclusive(v_x_449_); +if (v_isSharedCheck_459_ == 0) +{ +v___x_453_ = v_x_449_; +v_isShared_454_ = v_isSharedCheck_459_; +goto v_resetjp_452_; } else { -lean_inc(v_a_497_); -lean_dec(v_x_486_); -v___x_499_ = lean_box(0); -v_isShared_500_ = v_isSharedCheck_506_; -goto v_resetjp_498_; +lean_inc(v_a_451_); +lean_dec(v_x_449_); +v___x_453_ = lean_box(0); +v_isShared_454_ = v_isSharedCheck_459_; +goto v_resetjp_452_; } -v_resetjp_498_: +v_resetjp_452_: { -lean_object* v___x_501_; lean_object* v___x_503_; -v___x_501_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_501_, 0, v_a_497_); -if (v_isShared_500_ == 0) +lean_object* v___x_456_; +if (v_isShared_454_ == 0) { -lean_ctor_set(v___x_499_, 0, v___x_501_); -v___x_503_ = v___x_499_; -goto v_reusejp_502_; +v___x_456_ = v___x_453_; +goto v_reusejp_455_; } else { -lean_object* v_reuseFailAlloc_505_; -v_reuseFailAlloc_505_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_505_, 0, v___x_501_); -v___x_503_ = v_reuseFailAlloc_505_; -goto v_reusejp_502_; +lean_object* v_reuseFailAlloc_458_; +v_reuseFailAlloc_458_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_458_, 0, v_a_451_); +v___x_456_ = v_reuseFailAlloc_458_; +goto v_reusejp_455_; } -v_reusejp_502_: +v_reusejp_455_: { -lean_object* v___x_504_; -v___x_504_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_504_, 0, v___x_503_); -return v___x_504_; +lean_object* v___x_457_; +v___x_457_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_457_, 0, v___x_456_); +return v___x_457_; +} +} +} +else +{ +lean_object* v_a_460_; uint8_t v___x_461_; +v_a_460_ = lean_ctor_get(v_x_449_, 0); +lean_inc(v_a_460_); +lean_dec_ref(v_x_449_); +v___x_461_ = lean_unbox(v_a_460_); +lean_dec(v_a_460_); +if (v___x_461_ == 0) +{ +lean_object* v___x_462_; +lean_dec_ref(v___f_448_); +lean_inc(v___y_447_); +v___x_462_ = lean_apply_2(v_lose_446_, v___y_447_, lean_box(0)); +return v___x_462_; +} +else +{ +lean_object* v___x_463_; lean_object* v___x_464_; uint8_t v___x_465_; lean_object* v___x_466_; +lean_dec_ref(v_lose_446_); +v___x_463_ = l___private_Std_Internal_Http_Data_Body_Full_0__Std_Http_Body_Full_takeChunk(v___y_447_); +v___x_464_ = lean_unsigned_to_nat(0u); +v___x_465_ = 0; +v___x_466_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_464_, v___x_465_, v___x_463_, v___f_448_); +return v___x_466_; } } } } +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1___boxed(lean_object* v_lose_467_, lean_object* v___y_468_, lean_object* v___f_469_, lean_object* v_x_470_, lean_object* v___y_471_){ +_start: +{ +lean_object* v_res_472_; +v_res_472_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1(v_lose_467_, v___y_468_, v___f_469_, v_x_470_); +lean_dec(v___y_468_); +return v_res_472_; } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2___boxed(lean_object* v_x_507_, lean_object* v___y_508_){ +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0(lean_object* v_w_473_, lean_object* v_lose_474_, lean_object* v___y_475_){ +_start: +{ +lean_object* v_finished_477_; lean_object* v_promise_478_; lean_object* v___x_479_; lean_object* v___f_480_; lean_object* v___f_481_; uint8_t v___y_483_; uint8_t v___x_493_; +v_finished_477_ = lean_ctor_get(v_w_473_, 0); +lean_inc(v_finished_477_); +v_promise_478_ = lean_ctor_get(v_w_473_, 1); +lean_inc(v_promise_478_); +lean_dec_ref(v_w_473_); +v___x_479_ = lean_st_ref_take(v_finished_477_); +v___f_480_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__0___boxed), 3, 1); +lean_closure_set(v___f_480_, 0, v_promise_478_); +lean_inc(v___y_475_); +v___f_481_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___lam__1___boxed), 5, 3); +lean_closure_set(v___f_481_, 0, v_lose_474_); +lean_closure_set(v___f_481_, 1, v___y_475_); +lean_closure_set(v___f_481_, 2, v___f_480_); +v___x_493_ = lean_unbox(v___x_479_); +lean_dec(v___x_479_); +if (v___x_493_ == 0) +{ +uint8_t v___x_494_; +v___x_494_ = 1; +v___y_483_ = v___x_494_; +goto v___jp_482_; +} +else +{ +uint8_t v___x_495_; +v___x_495_ = 0; +v___y_483_ = v___x_495_; +goto v___jp_482_; +} +v___jp_482_: +{ +uint8_t v___x_484_; lean_object* v___x_485_; lean_object* v___x_486_; lean_object* v___x_487_; lean_object* v___x_488_; lean_object* v___x_489_; lean_object* v___x_490_; uint8_t v___x_491_; lean_object* v___x_492_; +v___x_484_ = 1; +v___x_485_ = lean_box(v___x_484_); +v___x_486_ = lean_st_ref_set(v_finished_477_, v___x_485_); +lean_dec(v_finished_477_); +v___x_487_ = lean_box(v___y_483_); +v___x_488_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_488_, 0, v___x_487_); +v___x_489_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_489_, 0, v___x_488_); +v___x_490_ = lean_unsigned_to_nat(0u); +v___x_491_ = 0; +v___x_492_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_490_, v___x_491_, v___x_489_, v___f_481_); +return v___x_492_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___boxed(lean_object* v_w_496_, lean_object* v_lose_497_, lean_object* v___y_498_, lean_object* v___y_499_){ +_start: +{ +lean_object* v_res_500_; +v_res_500_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0(v_w_496_, v_lose_497_, v___y_498_); +lean_dec(v___y_498_); +return v_res_500_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__0(lean_object* v___x_501_, lean_object* v___y_502_){ +_start: +{ +lean_object* v___x_504_; lean_object* v___x_505_; +v___x_504_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_504_, 0, v___x_501_); +v___x_505_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_505_, 0, v___x_504_); +return v___x_505_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__0___boxed(lean_object* v___x_506_, lean_object* v___y_507_, lean_object* v___y_508_){ _start: { lean_object* v_res_509_; -v_res_509_ = l_Std_Http_Body_Full_recvSelector___lam__2(v_x_507_); +v_res_509_ = l_Std_Http_Body_Full_recvSelector___lam__0(v___x_506_, v___y_507_); +lean_dec(v___y_507_); return v_res_509_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3(lean_object* v_full_510_, lean_object* v___x_511_, lean_object* v___f_512_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1(lean_object* v_full_512_, lean_object* v_waiter_513_){ _start: { -lean_object* v___x_514_; lean_object* v___x_515_; uint8_t v___x_516_; lean_object* v___x_517_; -v___x_514_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Full_recv_spec__0___redArg(v_full_510_, v___x_511_); -v___x_515_ = lean_unsigned_to_nat(0u); -v___x_516_ = 0; -v___x_517_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_515_, v___x_516_, v___x_514_, v___f_512_); +lean_object* v_lose_515_; lean_object* v___x_516_; lean_object* v___x_517_; +v_lose_515_ = ((lean_object*)(l_Std_Http_Body_Full_recvSelector___lam__1___closed__0)); +v___x_516_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Full_recvSelector_spec__0___boxed), 4, 2); +lean_closure_set(v___x_516_, 0, v_waiter_513_); +lean_closure_set(v___x_516_, 1, v_lose_515_); +v___x_517_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Full_recv_spec__0___redArg(v_full_512_, v___x_516_); return v___x_517_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3___boxed(lean_object* v_full_518_, lean_object* v___x_519_, lean_object* v___f_520_, lean_object* v___y_521_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__1___boxed(lean_object* v_full_518_, lean_object* v_waiter_519_, lean_object* v___y_520_){ _start: { -lean_object* v_res_522_; -v_res_522_ = l_Std_Http_Body_Full_recvSelector___lam__3(v_full_518_, v___x_519_, v___f_520_); -return v_res_522_; +lean_object* v_res_521_; +v_res_521_ = l_Std_Http_Body_Full_recvSelector___lam__1(v_full_518_, v_waiter_519_); +return v_res_521_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__4(lean_object* v___x_523_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3(lean_object* v_full_522_, lean_object* v___x_523_, lean_object* v___f_524_){ _start: { -lean_object* v___x_525_; lean_object* v___x_526_; -v___x_525_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_525_, 0, v___x_523_); -v___x_526_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_526_, 0, v___x_525_); -return v___x_526_; +lean_object* v___x_526_; lean_object* v___x_527_; uint8_t v___x_528_; lean_object* v___x_529_; +v___x_526_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Full_recv_spec__0___redArg(v_full_522_, v___x_523_); +v___x_527_ = lean_unsigned_to_nat(0u); +v___x_528_ = 0; +v___x_529_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_527_, v___x_528_, v___x_526_, v___f_524_); +return v___x_529_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__4___boxed(lean_object* v___x_527_, lean_object* v___y_528_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__3___boxed(lean_object* v_full_530_, lean_object* v___x_531_, lean_object* v___f_532_, lean_object* v___y_533_){ _start: { -lean_object* v_res_529_; -v_res_529_ = l_Std_Http_Body_Full_recvSelector___lam__4(v___x_527_); -return v_res_529_; +lean_object* v_res_534_; +v_res_534_ = l_Std_Http_Body_Full_recvSelector___lam__3(v_full_530_, v___x_531_, v___f_532_); +return v_res_534_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector(lean_object* v_full_533_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2(lean_object* v___x_535_){ _start: { -lean_object* v___f_534_; lean_object* v___f_535_; lean_object* v___x_536_; lean_object* v___f_537_; lean_object* v___f_538_; lean_object* v___x_539_; -lean_inc_ref(v_full_533_); -v___f_534_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_recvSelector___lam__1___boxed), 3, 1); -lean_closure_set(v___f_534_, 0, v_full_533_); -v___f_535_ = ((lean_object*)(l_Std_Http_Body_Full_recvSelector___closed__0)); -v___x_536_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Full_0__Std_Http_Body_Full_takeChunk___boxed), 2, 0); -v___f_537_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_recvSelector___lam__3___boxed), 4, 3); -lean_closure_set(v___f_537_, 0, v_full_533_); -lean_closure_set(v___f_537_, 1, v___x_536_); -lean_closure_set(v___f_537_, 2, v___f_535_); -v___f_538_ = ((lean_object*)(l_Std_Http_Body_Full_recvSelector___closed__1)); -v___x_539_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_539_, 0, v___f_537_); -lean_ctor_set(v___x_539_, 1, v___f_534_); -lean_ctor_set(v___x_539_, 2, v___f_538_); -return v___x_539_; +lean_object* v___x_537_; lean_object* v___x_538_; +v___x_537_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_537_, 0, v___x_535_); +v___x_538_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_538_, 0, v___x_537_); +return v___x_538_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instFull___lam__0(lean_object* v_x_544_, lean_object* v_x_545_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector___lam__2___boxed(lean_object* v___x_539_, lean_object* v___y_540_){ _start: { -lean_object* v___x_547_; -v___x_547_ = ((lean_object*)(l_Std_Http_Body_instFull___lam__0___closed__1)); -return v___x_547_; +lean_object* v_res_541_; +v_res_541_ = l_Std_Http_Body_Full_recvSelector___lam__2(v___x_539_); +return v_res_541_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instFull___lam__0___boxed(lean_object* v_x_548_, lean_object* v_x_549_, lean_object* v___y_550_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Full_recvSelector(lean_object* v_full_544_){ _start: { -lean_object* v_res_551_; -v_res_551_ = l_Std_Http_Body_instFull___lam__0(v_x_548_, v_x_549_); -lean_dec(v_x_549_); -lean_dec_ref(v_x_548_); -return v_res_551_; +lean_object* v___f_545_; lean_object* v___f_546_; lean_object* v___x_547_; lean_object* v___f_548_; lean_object* v___f_549_; lean_object* v___x_550_; +lean_inc_ref(v_full_544_); +v___f_545_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_recvSelector___lam__1___boxed), 3, 1); +lean_closure_set(v___f_545_, 0, v_full_544_); +v___f_546_ = ((lean_object*)(l_Std_Http_Body_Full_tryRecv___closed__0)); +v___x_547_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Full_0__Std_Http_Body_Full_takeChunk___boxed), 2, 0); +v___f_548_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_recvSelector___lam__3___boxed), 4, 3); +lean_closure_set(v___f_548_, 0, v_full_544_); +lean_closure_set(v___f_548_, 1, v___x_547_); +lean_closure_set(v___f_548_, 2, v___f_546_); +v___f_549_ = ((lean_object*)(l_Std_Http_Body_Full_recvSelector___closed__0)); +v___x_550_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_550_, 0, v___f_548_); +lean_ctor_set(v___x_550_, 1, v___f_545_); +lean_ctor_set(v___x_550_, 2, v___f_549_); +return v___x_550_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseFullAny___lam__0(lean_object* v___x_569_, lean_object* v_f_570_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instFull___lam__0(lean_object* v_x_555_, lean_object* v_x_556_){ _start: { -lean_object* v_line_571_; lean_object* v_body_572_; lean_object* v_extensions_573_; lean_object* v___x_575_; uint8_t v_isShared_576_; uint8_t v_isSharedCheck_581_; -v_line_571_ = lean_ctor_get(v_f_570_, 0); -v_body_572_ = lean_ctor_get(v_f_570_, 1); -v_extensions_573_ = lean_ctor_get(v_f_570_, 2); -v_isSharedCheck_581_ = !lean_is_exclusive(v_f_570_); -if (v_isSharedCheck_581_ == 0) +lean_object* v___x_558_; +v___x_558_ = ((lean_object*)(l_Std_Http_Body_instFull___lam__0___closed__1)); +return v___x_558_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instFull___lam__0___boxed(lean_object* v_x_559_, lean_object* v_x_560_, lean_object* v___y_561_){ +_start: { -v___x_575_ = v_f_570_; -v_isShared_576_ = v_isSharedCheck_581_; -goto v_resetjp_574_; +lean_object* v_res_562_; +v_res_562_ = l_Std_Http_Body_instFull___lam__0(v_x_559_, v_x_560_); +lean_dec(v_x_560_); +lean_dec_ref(v_x_559_); +return v_res_562_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseFullAny___lam__0(lean_object* v___x_582_, lean_object* v_f_583_){ +_start: +{ +lean_object* v_line_584_; lean_object* v_body_585_; lean_object* v_extensions_586_; lean_object* v___x_588_; uint8_t v_isShared_589_; uint8_t v_isSharedCheck_594_; +v_line_584_ = lean_ctor_get(v_f_583_, 0); +v_body_585_ = lean_ctor_get(v_f_583_, 1); +v_extensions_586_ = lean_ctor_get(v_f_583_, 2); +v_isSharedCheck_594_ = !lean_is_exclusive(v_f_583_); +if (v_isSharedCheck_594_ == 0) +{ +v___x_588_ = v_f_583_; +v_isShared_589_ = v_isSharedCheck_594_; +goto v_resetjp_587_; } else { -lean_inc(v_extensions_573_); -lean_inc(v_body_572_); -lean_inc(v_line_571_); -lean_dec(v_f_570_); -v___x_575_ = lean_box(0); -v_isShared_576_ = v_isSharedCheck_581_; -goto v_resetjp_574_; +lean_inc(v_extensions_586_); +lean_inc(v_body_585_); +lean_inc(v_line_584_); +lean_dec(v_f_583_); +v___x_588_ = lean_box(0); +v_isShared_589_ = v_isSharedCheck_594_; +goto v_resetjp_587_; } -v_resetjp_574_: +v_resetjp_587_: { -lean_object* v___x_577_; lean_object* v___x_579_; -v___x_577_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_569_, v_body_572_); -if (v_isShared_576_ == 0) +lean_object* v___x_590_; lean_object* v___x_592_; +v___x_590_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_582_, v_body_585_); +if (v_isShared_589_ == 0) { -lean_ctor_set(v___x_575_, 1, v___x_577_); -v___x_579_ = v___x_575_; -goto v_reusejp_578_; +lean_ctor_set(v___x_588_, 1, v___x_590_); +v___x_592_ = v___x_588_; +goto v_reusejp_591_; } else { -lean_object* v_reuseFailAlloc_580_; -v_reuseFailAlloc_580_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_580_, 0, v_line_571_); -lean_ctor_set(v_reuseFailAlloc_580_, 1, v___x_577_); -lean_ctor_set(v_reuseFailAlloc_580_, 2, v_extensions_573_); -v___x_579_ = v_reuseFailAlloc_580_; -goto v_reusejp_578_; +lean_object* v_reuseFailAlloc_593_; +v_reuseFailAlloc_593_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_593_, 0, v_line_584_); +lean_ctor_set(v_reuseFailAlloc_593_, 1, v___x_590_); +lean_ctor_set(v_reuseFailAlloc_593_, 2, v_extensions_586_); +v___x_592_ = v_reuseFailAlloc_593_; +goto v_reusejp_591_; } -v_reusejp_578_: +v_reusejp_591_: { -return v___x_579_; +return v___x_592_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0(lean_object* v___x_585_, lean_object* v_x_586_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0(lean_object* v___x_598_, lean_object* v_x_599_){ _start: { -if (lean_obj_tag(v_x_586_) == 0) +if (lean_obj_tag(v_x_599_) == 0) { -lean_object* v_a_588_; lean_object* v___x_590_; uint8_t v_isShared_591_; uint8_t v_isSharedCheck_596_; -lean_dec_ref(v___x_585_); -v_a_588_ = lean_ctor_get(v_x_586_, 0); -v_isSharedCheck_596_ = !lean_is_exclusive(v_x_586_); -if (v_isSharedCheck_596_ == 0) +lean_object* v_a_601_; lean_object* v___x_603_; uint8_t v_isShared_604_; uint8_t v_isSharedCheck_609_; +lean_dec_ref(v___x_598_); +v_a_601_ = lean_ctor_get(v_x_599_, 0); +v_isSharedCheck_609_ = !lean_is_exclusive(v_x_599_); +if (v_isSharedCheck_609_ == 0) { -v___x_590_ = v_x_586_; -v_isShared_591_ = v_isSharedCheck_596_; -goto v_resetjp_589_; +v___x_603_ = v_x_599_; +v_isShared_604_ = v_isSharedCheck_609_; +goto v_resetjp_602_; } else { -lean_inc(v_a_588_); -lean_dec(v_x_586_); -v___x_590_ = lean_box(0); -v_isShared_591_ = v_isSharedCheck_596_; -goto v_resetjp_589_; +lean_inc(v_a_601_); +lean_dec(v_x_599_); +v___x_603_ = lean_box(0); +v_isShared_604_ = v_isSharedCheck_609_; +goto v_resetjp_602_; } -v_resetjp_589_: +v_resetjp_602_: { -lean_object* v___x_593_; -if (v_isShared_591_ == 0) +lean_object* v___x_606_; +if (v_isShared_604_ == 0) { -v___x_593_ = v___x_590_; -goto v_reusejp_592_; +v___x_606_ = v___x_603_; +goto v_reusejp_605_; } else { -lean_object* v_reuseFailAlloc_595_; -v_reuseFailAlloc_595_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_595_, 0, v_a_588_); -v___x_593_ = v_reuseFailAlloc_595_; -goto v_reusejp_592_; +lean_object* v_reuseFailAlloc_608_; +v_reuseFailAlloc_608_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_608_, 0, v_a_601_); +v___x_606_ = v_reuseFailAlloc_608_; +goto v_reusejp_605_; } -v_reusejp_592_: +v_reusejp_605_: { -lean_object* v___x_594_; -v___x_594_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_594_, 0, v___x_593_); -return v___x_594_; +lean_object* v___x_607_; +v___x_607_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_607_, 0, v___x_606_); +return v___x_607_; } } } else { -lean_object* v_a_597_; lean_object* v___x_599_; uint8_t v_isShared_600_; uint8_t v_isSharedCheck_616_; -v_a_597_ = lean_ctor_get(v_x_586_, 0); -v_isSharedCheck_616_ = !lean_is_exclusive(v_x_586_); -if (v_isSharedCheck_616_ == 0) +lean_object* v_a_610_; lean_object* v___x_612_; uint8_t v_isShared_613_; uint8_t v_isSharedCheck_629_; +v_a_610_ = lean_ctor_get(v_x_599_, 0); +v_isSharedCheck_629_ = !lean_is_exclusive(v_x_599_); +if (v_isSharedCheck_629_ == 0) { -v___x_599_ = v_x_586_; -v_isShared_600_ = v_isSharedCheck_616_; -goto v_resetjp_598_; +v___x_612_ = v_x_599_; +v_isShared_613_ = v_isSharedCheck_629_; +goto v_resetjp_611_; } else { -lean_inc(v_a_597_); -lean_dec(v_x_586_); -v___x_599_ = lean_box(0); -v_isShared_600_ = v_isSharedCheck_616_; -goto v_resetjp_598_; +lean_inc(v_a_610_); +lean_dec(v_x_599_); +v___x_612_ = lean_box(0); +v_isShared_613_ = v_isSharedCheck_629_; +goto v_resetjp_611_; } -v_resetjp_598_: +v_resetjp_611_: { -lean_object* v_line_601_; lean_object* v_body_602_; lean_object* v_extensions_603_; lean_object* v___x_605_; uint8_t v_isShared_606_; uint8_t v_isSharedCheck_615_; -v_line_601_ = lean_ctor_get(v_a_597_, 0); -v_body_602_ = lean_ctor_get(v_a_597_, 1); -v_extensions_603_ = lean_ctor_get(v_a_597_, 2); -v_isSharedCheck_615_ = !lean_is_exclusive(v_a_597_); -if (v_isSharedCheck_615_ == 0) +lean_object* v_line_614_; lean_object* v_body_615_; lean_object* v_extensions_616_; lean_object* v___x_618_; uint8_t v_isShared_619_; uint8_t v_isSharedCheck_628_; +v_line_614_ = lean_ctor_get(v_a_610_, 0); +v_body_615_ = lean_ctor_get(v_a_610_, 1); +v_extensions_616_ = lean_ctor_get(v_a_610_, 2); +v_isSharedCheck_628_ = !lean_is_exclusive(v_a_610_); +if (v_isSharedCheck_628_ == 0) { -v___x_605_ = v_a_597_; -v_isShared_606_ = v_isSharedCheck_615_; -goto v_resetjp_604_; +v___x_618_ = v_a_610_; +v_isShared_619_ = v_isSharedCheck_628_; +goto v_resetjp_617_; } else { -lean_inc(v_extensions_603_); -lean_inc(v_body_602_); -lean_inc(v_line_601_); -lean_dec(v_a_597_); -v___x_605_ = lean_box(0); -v_isShared_606_ = v_isSharedCheck_615_; -goto v_resetjp_604_; +lean_inc(v_extensions_616_); +lean_inc(v_body_615_); +lean_inc(v_line_614_); +lean_dec(v_a_610_); +v___x_618_ = lean_box(0); +v_isShared_619_ = v_isSharedCheck_628_; +goto v_resetjp_617_; } -v_resetjp_604_: +v_resetjp_617_: { -lean_object* v___x_607_; lean_object* v___x_609_; -v___x_607_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_585_, v_body_602_); -if (v_isShared_606_ == 0) +lean_object* v___x_620_; lean_object* v___x_622_; +v___x_620_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_598_, v_body_615_); +if (v_isShared_619_ == 0) { -lean_ctor_set(v___x_605_, 1, v___x_607_); -v___x_609_ = v___x_605_; -goto v_reusejp_608_; +lean_ctor_set(v___x_618_, 1, v___x_620_); +v___x_622_ = v___x_618_; +goto v_reusejp_621_; } else { -lean_object* v_reuseFailAlloc_614_; -v_reuseFailAlloc_614_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_614_, 0, v_line_601_); -lean_ctor_set(v_reuseFailAlloc_614_, 1, v___x_607_); -lean_ctor_set(v_reuseFailAlloc_614_, 2, v_extensions_603_); -v___x_609_ = v_reuseFailAlloc_614_; -goto v_reusejp_608_; +lean_object* v_reuseFailAlloc_627_; +v_reuseFailAlloc_627_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_627_, 0, v_line_614_); +lean_ctor_set(v_reuseFailAlloc_627_, 1, v___x_620_); +lean_ctor_set(v_reuseFailAlloc_627_, 2, v_extensions_616_); +v___x_622_ = v_reuseFailAlloc_627_; +goto v_reusejp_621_; } -v_reusejp_608_: +v_reusejp_621_: { -lean_object* v___x_611_; -if (v_isShared_600_ == 0) +lean_object* v___x_624_; +if (v_isShared_613_ == 0) { -lean_ctor_set(v___x_599_, 0, v___x_609_); -v___x_611_ = v___x_599_; -goto v_reusejp_610_; +lean_ctor_set(v___x_612_, 0, v___x_622_); +v___x_624_ = v___x_612_; +goto v_reusejp_623_; } else { -lean_object* v_reuseFailAlloc_613_; -v_reuseFailAlloc_613_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_613_, 0, v___x_609_); -v___x_611_ = v_reuseFailAlloc_613_; -goto v_reusejp_610_; +lean_object* v_reuseFailAlloc_626_; +v_reuseFailAlloc_626_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_626_, 0, v___x_622_); +v___x_624_ = v_reuseFailAlloc_626_; +goto v_reusejp_623_; } -v_reusejp_610_: +v_reusejp_623_: { -lean_object* v___x_612_; -v___x_612_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_612_, 0, v___x_611_); -return v___x_612_; +lean_object* v___x_625_; +v___x_625_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_625_, 0, v___x_624_); +return v___x_625_; } } } @@ -2070,503 +2095,503 @@ return v___x_612_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0___boxed(lean_object* v___x_617_, lean_object* v_x_618_, lean_object* v___y_619_){ -_start: -{ -lean_object* v_res_620_; -v_res_620_ = l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0(v___x_617_, v_x_618_); -return v_res_620_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1(lean_object* v___f_621_, lean_object* v_action_622_, lean_object* v___y_623_){ -_start: -{ -lean_object* v___x_625_; lean_object* v___x_626_; uint8_t v___x_627_; lean_object* v___x_628_; -lean_inc_ref(v___y_623_); -v___x_625_ = lean_apply_2(v_action_622_, v___y_623_, lean_box(0)); -v___x_626_ = lean_unsigned_to_nat(0u); -v___x_627_ = 0; -v___x_628_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_626_, v___x_627_, v___x_625_, v___f_621_); -return v___x_628_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1___boxed(lean_object* v___f_629_, lean_object* v_action_630_, lean_object* v___y_631_, lean_object* v___y_632_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0___boxed(lean_object* v___x_630_, lean_object* v_x_631_, lean_object* v___y_632_){ _start: { lean_object* v_res_633_; -v_res_633_ = l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1(v___f_629_, v_action_630_, v___y_631_); -lean_dec_ref(v___y_631_); +v_res_633_ = l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__0(v___x_630_, v_x_631_); return v_res_633_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1(lean_object* v___f_639_, lean_object* v_action_640_, lean_object* v___y_641_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1(lean_object* v___f_634_, lean_object* v_action_635_, lean_object* v___y_636_){ _start: { -lean_object* v___x_643_; lean_object* v___x_644_; uint8_t v___x_645_; lean_object* v___x_646_; -v___x_643_ = lean_apply_1(v_action_640_, lean_box(0)); -v___x_644_ = lean_unsigned_to_nat(0u); -v___x_645_ = 0; -v___x_646_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_644_, v___x_645_, v___x_643_, v___f_639_); -return v___x_646_; +lean_object* v___x_638_; lean_object* v___x_639_; uint8_t v___x_640_; lean_object* v___x_641_; +lean_inc_ref(v___y_636_); +v___x_638_ = lean_apply_2(v_action_635_, v___y_636_, lean_box(0)); +v___x_639_ = lean_unsigned_to_nat(0u); +v___x_640_ = 0; +v___x_641_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_639_, v___x_640_, v___x_638_, v___f_634_); +return v___x_641_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1___boxed(lean_object* v___f_647_, lean_object* v_action_648_, lean_object* v___y_649_, lean_object* v___y_650_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1___boxed(lean_object* v___f_642_, lean_object* v_action_643_, lean_object* v___y_644_, lean_object* v___y_645_){ _start: { -lean_object* v_res_651_; -v_res_651_ = l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1(v___f_647_, v_action_648_, v___y_649_); -lean_dec_ref(v___y_649_); -return v_res_651_; +lean_object* v_res_646_; +v_res_646_ = l_Std_Http_Body_instCoeContextAsyncResponseFullAny___lam__1(v___f_642_, v_action_643_, v___y_644_); +lean_dec_ref(v___y_644_); +return v_res_646_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___lam__0(lean_object* v_builder_655_, lean_object* v_x_656_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1(lean_object* v___f_652_, lean_object* v_action_653_, lean_object* v___y_654_){ _start: { -if (lean_obj_tag(v_x_656_) == 0) +lean_object* v___x_656_; lean_object* v___x_657_; uint8_t v___x_658_; lean_object* v___x_659_; +v___x_656_ = lean_apply_1(v_action_653_, lean_box(0)); +v___x_657_ = lean_unsigned_to_nat(0u); +v___x_658_ = 0; +v___x_659_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_657_, v___x_658_, v___x_656_, v___f_652_); +return v___x_659_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1___boxed(lean_object* v___f_660_, lean_object* v_action_661_, lean_object* v___y_662_, lean_object* v___y_663_){ +_start: { -lean_object* v_a_658_; lean_object* v___x_660_; uint8_t v_isShared_661_; uint8_t v_isSharedCheck_666_; -v_a_658_ = lean_ctor_get(v_x_656_, 0); -v_isSharedCheck_666_ = !lean_is_exclusive(v_x_656_); -if (v_isSharedCheck_666_ == 0) +lean_object* v_res_664_; +v_res_664_ = l_Std_Http_Body_instCoeAsyncResponseFullContextAsyncAny___lam__1(v___f_660_, v_action_661_, v___y_662_); +lean_dec_ref(v___y_662_); +return v_res_664_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___lam__0(lean_object* v_builder_668_, lean_object* v_x_669_){ +_start: { -v___x_660_ = v_x_656_; -v_isShared_661_ = v_isSharedCheck_666_; -goto v_resetjp_659_; +if (lean_obj_tag(v_x_669_) == 0) +{ +lean_object* v_a_671_; lean_object* v___x_673_; uint8_t v_isShared_674_; uint8_t v_isSharedCheck_679_; +v_a_671_ = lean_ctor_get(v_x_669_, 0); +v_isSharedCheck_679_ = !lean_is_exclusive(v_x_669_); +if (v_isSharedCheck_679_ == 0) +{ +v___x_673_ = v_x_669_; +v_isShared_674_ = v_isSharedCheck_679_; +goto v_resetjp_672_; } else { -lean_inc(v_a_658_); -lean_dec(v_x_656_); -v___x_660_ = lean_box(0); -v_isShared_661_ = v_isSharedCheck_666_; -goto v_resetjp_659_; +lean_inc(v_a_671_); +lean_dec(v_x_669_); +v___x_673_ = lean_box(0); +v_isShared_674_ = v_isSharedCheck_679_; +goto v_resetjp_672_; } -v_resetjp_659_: +v_resetjp_672_: { -lean_object* v___x_663_; -if (v_isShared_661_ == 0) +lean_object* v___x_676_; +if (v_isShared_674_ == 0) { -v___x_663_ = v___x_660_; -goto v_reusejp_662_; +v___x_676_ = v___x_673_; +goto v_reusejp_675_; } else { -lean_object* v_reuseFailAlloc_665_; -v_reuseFailAlloc_665_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_665_, 0, v_a_658_); -v___x_663_ = v_reuseFailAlloc_665_; -goto v_reusejp_662_; +lean_object* v_reuseFailAlloc_678_; +v_reuseFailAlloc_678_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_678_, 0, v_a_671_); +v___x_676_ = v_reuseFailAlloc_678_; +goto v_reusejp_675_; } -v_reusejp_662_: +v_reusejp_675_: { -lean_object* v___x_664_; -v___x_664_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_664_, 0, v___x_663_); -return v___x_664_; +lean_object* v___x_677_; +v___x_677_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_677_, 0, v___x_676_); +return v___x_677_; } } } else { -lean_object* v_a_667_; lean_object* v___x_669_; uint8_t v_isShared_670_; uint8_t v_isSharedCheck_676_; -v_a_667_ = lean_ctor_get(v_x_656_, 0); -v_isSharedCheck_676_ = !lean_is_exclusive(v_x_656_); -if (v_isSharedCheck_676_ == 0) +lean_object* v_a_680_; lean_object* v___x_682_; uint8_t v_isShared_683_; uint8_t v_isSharedCheck_689_; +v_a_680_ = lean_ctor_get(v_x_669_, 0); +v_isSharedCheck_689_ = !lean_is_exclusive(v_x_669_); +if (v_isSharedCheck_689_ == 0) { -v___x_669_ = v_x_656_; -v_isShared_670_ = v_isSharedCheck_676_; -goto v_resetjp_668_; +v___x_682_ = v_x_669_; +v_isShared_683_ = v_isSharedCheck_689_; +goto v_resetjp_681_; } else { -lean_inc(v_a_667_); -lean_dec(v_x_656_); -v___x_669_ = lean_box(0); -v_isShared_670_ = v_isSharedCheck_676_; -goto v_resetjp_668_; +lean_inc(v_a_680_); +lean_dec(v_x_669_); +v___x_682_ = lean_box(0); +v_isShared_683_ = v_isSharedCheck_689_; +goto v_resetjp_681_; } -v_resetjp_668_: +v_resetjp_681_: { -lean_object* v___x_671_; lean_object* v___x_673_; -v___x_671_ = l_Std_Http_Request_Builder_body___redArg(v_builder_655_, v_a_667_); -if (v_isShared_670_ == 0) +lean_object* v___x_684_; lean_object* v___x_686_; +v___x_684_ = l_Std_Http_Request_Builder_body___redArg(v_builder_668_, v_a_680_); +if (v_isShared_683_ == 0) { -lean_ctor_set(v___x_669_, 0, v___x_671_); -v___x_673_ = v___x_669_; -goto v_reusejp_672_; +lean_ctor_set(v___x_682_, 0, v___x_684_); +v___x_686_ = v___x_682_; +goto v_reusejp_685_; } else { -lean_object* v_reuseFailAlloc_675_; -v_reuseFailAlloc_675_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_675_, 0, v___x_671_); -v___x_673_ = v_reuseFailAlloc_675_; -goto v_reusejp_672_; +lean_object* v_reuseFailAlloc_688_; +v_reuseFailAlloc_688_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_688_, 0, v___x_684_); +v___x_686_ = v_reuseFailAlloc_688_; +goto v_reusejp_685_; } -v_reusejp_672_: +v_reusejp_685_: { -lean_object* v___x_674_; -v___x_674_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_674_, 0, v___x_673_); -return v___x_674_; +lean_object* v___x_687_; +v___x_687_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_687_, 0, v___x_686_); +return v___x_687_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___lam__0___boxed(lean_object* v_builder_677_, lean_object* v_x_678_, lean_object* v___y_679_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___lam__0___boxed(lean_object* v_builder_690_, lean_object* v_x_691_, lean_object* v___y_692_){ _start: { -lean_object* v_res_680_; -v_res_680_ = l_Std_Http_Request_Builder_fromBytes___lam__0(v_builder_677_, v_x_678_); -lean_dec_ref(v_builder_677_); -return v_res_680_; +lean_object* v_res_693_; +v_res_693_ = l_Std_Http_Request_Builder_fromBytes___lam__0(v_builder_690_, v_x_691_); +lean_dec_ref(v_builder_690_); +return v_res_693_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes(lean_object* v_builder_681_, lean_object* v_content_682_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes(lean_object* v_builder_694_, lean_object* v_content_695_){ _start: { -lean_object* v___x_684_; lean_object* v___f_685_; lean_object* v___x_686_; uint8_t v___x_687_; lean_object* v___x_688_; -v___x_684_ = l_Std_Http_Body_Full_ofByteArray(v_content_682_); -v___f_685_ = lean_alloc_closure((void*)(l_Std_Http_Request_Builder_fromBytes___lam__0___boxed), 3, 1); -lean_closure_set(v___f_685_, 0, v_builder_681_); -v___x_686_ = lean_unsigned_to_nat(0u); -v___x_687_ = 0; -v___x_688_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_686_, v___x_687_, v___x_684_, v___f_685_); -return v___x_688_; +lean_object* v___x_697_; lean_object* v___f_698_; lean_object* v___x_699_; uint8_t v___x_700_; lean_object* v___x_701_; +v___x_697_ = l_Std_Http_Body_Full_ofByteArray(v_content_695_); +v___f_698_ = lean_alloc_closure((void*)(l_Std_Http_Request_Builder_fromBytes___lam__0___boxed), 3, 1); +lean_closure_set(v___f_698_, 0, v_builder_694_); +v___x_699_ = lean_unsigned_to_nat(0u); +v___x_700_ = 0; +v___x_701_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_699_, v___x_700_, v___x_697_, v___f_698_); +return v___x_701_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___boxed(lean_object* v_builder_689_, lean_object* v_content_690_, lean_object* v_a_691_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_fromBytes___boxed(lean_object* v_builder_702_, lean_object* v_content_703_, lean_object* v_a_704_){ _start: { -lean_object* v_res_692_; -v_res_692_ = l_Std_Http_Request_Builder_fromBytes(v_builder_689_, v_content_690_); -return v_res_692_; +lean_object* v_res_705_; +v_res_705_ = l_Std_Http_Request_Builder_fromBytes(v_builder_702_, v_content_703_); +return v_res_705_; } } static lean_object* _init_l_Std_Http_Request_Builder_bytes___closed__1(void){ _start: { -lean_object* v___x_694_; lean_object* v___x_695_; -v___x_694_ = ((lean_object*)(l_Std_Http_Request_Builder_bytes___closed__0)); -v___x_695_ = l_Std_Http_Header_Value_ofString_x21(v___x_694_); -return v___x_695_; +lean_object* v___x_707_; lean_object* v___x_708_; +v___x_707_ = ((lean_object*)(l_Std_Http_Request_Builder_bytes___closed__0)); +v___x_708_ = l_Std_Http_Header_Value_ofString_x21(v___x_707_); +return v___x_708_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_bytes(lean_object* v_builder_696_, lean_object* v_content_697_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_bytes(lean_object* v_builder_709_, lean_object* v_content_710_){ _start: { -lean_object* v___x_699_; lean_object* v___x_700_; lean_object* v___x_701_; lean_object* v___x_702_; -v___x_699_ = l_Std_Http_Header_Name_contentType; -v___x_700_ = lean_obj_once(&l_Std_Http_Request_Builder_bytes___closed__1, &l_Std_Http_Request_Builder_bytes___closed__1_once, _init_l_Std_Http_Request_Builder_bytes___closed__1); -v___x_701_ = l_Std_Http_Request_Builder_header(v_builder_696_, v___x_699_, v___x_700_); -v___x_702_ = l_Std_Http_Request_Builder_fromBytes(v___x_701_, v_content_697_); -return v___x_702_; +lean_object* v___x_712_; lean_object* v___x_713_; lean_object* v___x_714_; lean_object* v___x_715_; +v___x_712_ = l_Std_Http_Header_Name_contentType; +v___x_713_ = lean_obj_once(&l_Std_Http_Request_Builder_bytes___closed__1, &l_Std_Http_Request_Builder_bytes___closed__1_once, _init_l_Std_Http_Request_Builder_bytes___closed__1); +v___x_714_ = l_Std_Http_Request_Builder_header(v_builder_709_, v___x_712_, v___x_713_); +v___x_715_ = l_Std_Http_Request_Builder_fromBytes(v___x_714_, v_content_710_); +return v___x_715_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_bytes___boxed(lean_object* v_builder_703_, lean_object* v_content_704_, lean_object* v_a_705_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_bytes___boxed(lean_object* v_builder_716_, lean_object* v_content_717_, lean_object* v_a_718_){ _start: { -lean_object* v_res_706_; -v_res_706_ = l_Std_Http_Request_Builder_bytes(v_builder_703_, v_content_704_); -return v_res_706_; +lean_object* v_res_719_; +v_res_719_ = l_Std_Http_Request_Builder_bytes(v_builder_716_, v_content_717_); +return v_res_719_; } } static lean_object* _init_l_Std_Http_Request_Builder_text___closed__1(void){ _start: { -lean_object* v___x_708_; lean_object* v___x_709_; -v___x_708_ = ((lean_object*)(l_Std_Http_Request_Builder_text___closed__0)); -v___x_709_ = l_Std_Http_Header_Value_ofString_x21(v___x_708_); -return v___x_709_; +lean_object* v___x_721_; lean_object* v___x_722_; +v___x_721_ = ((lean_object*)(l_Std_Http_Request_Builder_text___closed__0)); +v___x_722_ = l_Std_Http_Header_Value_ofString_x21(v___x_721_); +return v___x_722_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_text(lean_object* v_builder_710_, lean_object* v_content_711_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_text(lean_object* v_builder_723_, lean_object* v_content_724_){ _start: { -lean_object* v___x_713_; lean_object* v___x_714_; lean_object* v___x_715_; lean_object* v___x_716_; lean_object* v___x_717_; -v___x_713_ = l_Std_Http_Header_Name_contentType; -v___x_714_ = lean_obj_once(&l_Std_Http_Request_Builder_text___closed__1, &l_Std_Http_Request_Builder_text___closed__1_once, _init_l_Std_Http_Request_Builder_text___closed__1); -v___x_715_ = l_Std_Http_Request_Builder_header(v_builder_710_, v___x_713_, v___x_714_); -v___x_716_ = lean_string_to_utf8(v_content_711_); -v___x_717_ = l_Std_Http_Request_Builder_fromBytes(v___x_715_, v___x_716_); -return v___x_717_; +lean_object* v___x_726_; lean_object* v___x_727_; lean_object* v___x_728_; lean_object* v___x_729_; lean_object* v___x_730_; +v___x_726_ = l_Std_Http_Header_Name_contentType; +v___x_727_ = lean_obj_once(&l_Std_Http_Request_Builder_text___closed__1, &l_Std_Http_Request_Builder_text___closed__1_once, _init_l_Std_Http_Request_Builder_text___closed__1); +v___x_728_ = l_Std_Http_Request_Builder_header(v_builder_723_, v___x_726_, v___x_727_); +v___x_729_ = lean_string_to_utf8(v_content_724_); +v___x_730_ = l_Std_Http_Request_Builder_fromBytes(v___x_728_, v___x_729_); +return v___x_730_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_text___boxed(lean_object* v_builder_718_, lean_object* v_content_719_, lean_object* v_a_720_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_text___boxed(lean_object* v_builder_731_, lean_object* v_content_732_, lean_object* v_a_733_){ _start: { -lean_object* v_res_721_; -v_res_721_ = l_Std_Http_Request_Builder_text(v_builder_718_, v_content_719_); -lean_dec_ref(v_content_719_); -return v_res_721_; +lean_object* v_res_734_; +v_res_734_ = l_Std_Http_Request_Builder_text(v_builder_731_, v_content_732_); +lean_dec_ref(v_content_732_); +return v_res_734_; } } static lean_object* _init_l_Std_Http_Request_Builder_json___closed__1(void){ _start: { -lean_object* v___x_723_; lean_object* v___x_724_; -v___x_723_ = ((lean_object*)(l_Std_Http_Request_Builder_json___closed__0)); -v___x_724_ = l_Std_Http_Header_Value_ofString_x21(v___x_723_); -return v___x_724_; +lean_object* v___x_736_; lean_object* v___x_737_; +v___x_736_ = ((lean_object*)(l_Std_Http_Request_Builder_json___closed__0)); +v___x_737_ = l_Std_Http_Header_Value_ofString_x21(v___x_736_); +return v___x_737_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_json(lean_object* v_builder_725_, lean_object* v_content_726_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_json(lean_object* v_builder_738_, lean_object* v_content_739_){ _start: { -lean_object* v___x_728_; lean_object* v___x_729_; lean_object* v___x_730_; lean_object* v___x_731_; lean_object* v___x_732_; -v___x_728_ = l_Std_Http_Header_Name_contentType; -v___x_729_ = lean_obj_once(&l_Std_Http_Request_Builder_json___closed__1, &l_Std_Http_Request_Builder_json___closed__1_once, _init_l_Std_Http_Request_Builder_json___closed__1); -v___x_730_ = l_Std_Http_Request_Builder_header(v_builder_725_, v___x_728_, v___x_729_); -v___x_731_ = lean_string_to_utf8(v_content_726_); -v___x_732_ = l_Std_Http_Request_Builder_fromBytes(v___x_730_, v___x_731_); -return v___x_732_; +lean_object* v___x_741_; lean_object* v___x_742_; lean_object* v___x_743_; lean_object* v___x_744_; lean_object* v___x_745_; +v___x_741_ = l_Std_Http_Header_Name_contentType; +v___x_742_ = lean_obj_once(&l_Std_Http_Request_Builder_json___closed__1, &l_Std_Http_Request_Builder_json___closed__1_once, _init_l_Std_Http_Request_Builder_json___closed__1); +v___x_743_ = l_Std_Http_Request_Builder_header(v_builder_738_, v___x_741_, v___x_742_); +v___x_744_ = lean_string_to_utf8(v_content_739_); +v___x_745_ = l_Std_Http_Request_Builder_fromBytes(v___x_743_, v___x_744_); +return v___x_745_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_json___boxed(lean_object* v_builder_733_, lean_object* v_content_734_, lean_object* v_a_735_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_json___boxed(lean_object* v_builder_746_, lean_object* v_content_747_, lean_object* v_a_748_){ _start: { -lean_object* v_res_736_; -v_res_736_ = l_Std_Http_Request_Builder_json(v_builder_733_, v_content_734_); -lean_dec_ref(v_content_734_); -return v_res_736_; +lean_object* v_res_749_; +v_res_749_ = l_Std_Http_Request_Builder_json(v_builder_746_, v_content_747_); +lean_dec_ref(v_content_747_); +return v_res_749_; } } static lean_object* _init_l_Std_Http_Request_Builder_html___closed__1(void){ _start: { -lean_object* v___x_738_; lean_object* v___x_739_; -v___x_738_ = ((lean_object*)(l_Std_Http_Request_Builder_html___closed__0)); -v___x_739_ = l_Std_Http_Header_Value_ofString_x21(v___x_738_); -return v___x_739_; +lean_object* v___x_751_; lean_object* v___x_752_; +v___x_751_ = ((lean_object*)(l_Std_Http_Request_Builder_html___closed__0)); +v___x_752_ = l_Std_Http_Header_Value_ofString_x21(v___x_751_); +return v___x_752_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_html(lean_object* v_builder_740_, lean_object* v_content_741_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_html(lean_object* v_builder_753_, lean_object* v_content_754_){ _start: { -lean_object* v___x_743_; lean_object* v___x_744_; lean_object* v___x_745_; lean_object* v___x_746_; lean_object* v___x_747_; -v___x_743_ = l_Std_Http_Header_Name_contentType; -v___x_744_ = lean_obj_once(&l_Std_Http_Request_Builder_html___closed__1, &l_Std_Http_Request_Builder_html___closed__1_once, _init_l_Std_Http_Request_Builder_html___closed__1); -v___x_745_ = l_Std_Http_Request_Builder_header(v_builder_740_, v___x_743_, v___x_744_); -v___x_746_ = lean_string_to_utf8(v_content_741_); -v___x_747_ = l_Std_Http_Request_Builder_fromBytes(v___x_745_, v___x_746_); -return v___x_747_; +lean_object* v___x_756_; lean_object* v___x_757_; lean_object* v___x_758_; lean_object* v___x_759_; lean_object* v___x_760_; +v___x_756_ = l_Std_Http_Header_Name_contentType; +v___x_757_ = lean_obj_once(&l_Std_Http_Request_Builder_html___closed__1, &l_Std_Http_Request_Builder_html___closed__1_once, _init_l_Std_Http_Request_Builder_html___closed__1); +v___x_758_ = l_Std_Http_Request_Builder_header(v_builder_753_, v___x_756_, v___x_757_); +v___x_759_ = lean_string_to_utf8(v_content_754_); +v___x_760_ = l_Std_Http_Request_Builder_fromBytes(v___x_758_, v___x_759_); +return v___x_760_; } } -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_html___boxed(lean_object* v_builder_748_, lean_object* v_content_749_, lean_object* v_a_750_){ +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_html___boxed(lean_object* v_builder_761_, lean_object* v_content_762_, lean_object* v_a_763_){ _start: { -lean_object* v_res_751_; -v_res_751_ = l_Std_Http_Request_Builder_html(v_builder_748_, v_content_749_); -lean_dec_ref(v_content_749_); -return v_res_751_; +lean_object* v_res_764_; +v_res_764_ = l_Std_Http_Request_Builder_html(v_builder_761_, v_content_762_); +lean_dec_ref(v_content_762_); +return v_res_764_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___lam__0(lean_object* v_builder_752_, lean_object* v_x_753_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___lam__0(lean_object* v_builder_765_, lean_object* v_x_766_){ _start: { -if (lean_obj_tag(v_x_753_) == 0) +if (lean_obj_tag(v_x_766_) == 0) { -lean_object* v_a_755_; lean_object* v___x_757_; uint8_t v_isShared_758_; uint8_t v_isSharedCheck_763_; -v_a_755_ = lean_ctor_get(v_x_753_, 0); -v_isSharedCheck_763_ = !lean_is_exclusive(v_x_753_); -if (v_isSharedCheck_763_ == 0) +lean_object* v_a_768_; lean_object* v___x_770_; uint8_t v_isShared_771_; uint8_t v_isSharedCheck_776_; +v_a_768_ = lean_ctor_get(v_x_766_, 0); +v_isSharedCheck_776_ = !lean_is_exclusive(v_x_766_); +if (v_isSharedCheck_776_ == 0) { -v___x_757_ = v_x_753_; -v_isShared_758_ = v_isSharedCheck_763_; -goto v_resetjp_756_; +v___x_770_ = v_x_766_; +v_isShared_771_ = v_isSharedCheck_776_; +goto v_resetjp_769_; } else { -lean_inc(v_a_755_); -lean_dec(v_x_753_); -v___x_757_ = lean_box(0); -v_isShared_758_ = v_isSharedCheck_763_; -goto v_resetjp_756_; +lean_inc(v_a_768_); +lean_dec(v_x_766_); +v___x_770_ = lean_box(0); +v_isShared_771_ = v_isSharedCheck_776_; +goto v_resetjp_769_; } -v_resetjp_756_: +v_resetjp_769_: { -lean_object* v___x_760_; -if (v_isShared_758_ == 0) +lean_object* v___x_773_; +if (v_isShared_771_ == 0) { -v___x_760_ = v___x_757_; -goto v_reusejp_759_; +v___x_773_ = v___x_770_; +goto v_reusejp_772_; } else { -lean_object* v_reuseFailAlloc_762_; -v_reuseFailAlloc_762_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_762_, 0, v_a_755_); -v___x_760_ = v_reuseFailAlloc_762_; -goto v_reusejp_759_; +lean_object* v_reuseFailAlloc_775_; +v_reuseFailAlloc_775_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_775_, 0, v_a_768_); +v___x_773_ = v_reuseFailAlloc_775_; +goto v_reusejp_772_; } -v_reusejp_759_: +v_reusejp_772_: { -lean_object* v___x_761_; -v___x_761_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_761_, 0, v___x_760_); -return v___x_761_; +lean_object* v___x_774_; +v___x_774_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_774_, 0, v___x_773_); +return v___x_774_; } } } else { -lean_object* v_a_764_; lean_object* v___x_766_; uint8_t v_isShared_767_; uint8_t v_isSharedCheck_773_; -v_a_764_ = lean_ctor_get(v_x_753_, 0); -v_isSharedCheck_773_ = !lean_is_exclusive(v_x_753_); -if (v_isSharedCheck_773_ == 0) +lean_object* v_a_777_; lean_object* v___x_779_; uint8_t v_isShared_780_; uint8_t v_isSharedCheck_786_; +v_a_777_ = lean_ctor_get(v_x_766_, 0); +v_isSharedCheck_786_ = !lean_is_exclusive(v_x_766_); +if (v_isSharedCheck_786_ == 0) { -v___x_766_ = v_x_753_; -v_isShared_767_ = v_isSharedCheck_773_; -goto v_resetjp_765_; +v___x_779_ = v_x_766_; +v_isShared_780_ = v_isSharedCheck_786_; +goto v_resetjp_778_; } else { -lean_inc(v_a_764_); -lean_dec(v_x_753_); -v___x_766_ = lean_box(0); -v_isShared_767_ = v_isSharedCheck_773_; -goto v_resetjp_765_; +lean_inc(v_a_777_); +lean_dec(v_x_766_); +v___x_779_ = lean_box(0); +v_isShared_780_ = v_isSharedCheck_786_; +goto v_resetjp_778_; } -v_resetjp_765_: +v_resetjp_778_: { -lean_object* v___x_768_; lean_object* v___x_770_; -v___x_768_ = l_Std_Http_Response_Builder_body___redArg(v_builder_752_, v_a_764_); -if (v_isShared_767_ == 0) +lean_object* v___x_781_; lean_object* v___x_783_; +v___x_781_ = l_Std_Http_Response_Builder_body___redArg(v_builder_765_, v_a_777_); +if (v_isShared_780_ == 0) { -lean_ctor_set(v___x_766_, 0, v___x_768_); -v___x_770_ = v___x_766_; -goto v_reusejp_769_; +lean_ctor_set(v___x_779_, 0, v___x_781_); +v___x_783_ = v___x_779_; +goto v_reusejp_782_; } else { -lean_object* v_reuseFailAlloc_772_; -v_reuseFailAlloc_772_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_772_, 0, v___x_768_); -v___x_770_ = v_reuseFailAlloc_772_; -goto v_reusejp_769_; +lean_object* v_reuseFailAlloc_785_; +v_reuseFailAlloc_785_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_785_, 0, v___x_781_); +v___x_783_ = v_reuseFailAlloc_785_; +goto v_reusejp_782_; } -v_reusejp_769_: +v_reusejp_782_: { -lean_object* v___x_771_; -v___x_771_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_771_, 0, v___x_770_); -return v___x_771_; +lean_object* v___x_784_; +v___x_784_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_784_, 0, v___x_783_); +return v___x_784_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___lam__0___boxed(lean_object* v_builder_774_, lean_object* v_x_775_, lean_object* v___y_776_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___lam__0___boxed(lean_object* v_builder_787_, lean_object* v_x_788_, lean_object* v___y_789_){ _start: { -lean_object* v_res_777_; -v_res_777_ = l_Std_Http_Response_Builder_fromBytes___lam__0(v_builder_774_, v_x_775_); -lean_dec_ref(v_builder_774_); -return v_res_777_; +lean_object* v_res_790_; +v_res_790_ = l_Std_Http_Response_Builder_fromBytes___lam__0(v_builder_787_, v_x_788_); +lean_dec_ref(v_builder_787_); +return v_res_790_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes(lean_object* v_builder_778_, lean_object* v_content_779_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes(lean_object* v_builder_791_, lean_object* v_content_792_){ _start: { -lean_object* v___x_781_; lean_object* v___f_782_; lean_object* v___x_783_; uint8_t v___x_784_; lean_object* v___x_785_; -v___x_781_ = l_Std_Http_Body_Full_ofByteArray(v_content_779_); -v___f_782_ = lean_alloc_closure((void*)(l_Std_Http_Response_Builder_fromBytes___lam__0___boxed), 3, 1); -lean_closure_set(v___f_782_, 0, v_builder_778_); -v___x_783_ = lean_unsigned_to_nat(0u); -v___x_784_ = 0; -v___x_785_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_783_, v___x_784_, v___x_781_, v___f_782_); -return v___x_785_; +lean_object* v___x_794_; lean_object* v___f_795_; lean_object* v___x_796_; uint8_t v___x_797_; lean_object* v___x_798_; +v___x_794_ = l_Std_Http_Body_Full_ofByteArray(v_content_792_); +v___f_795_ = lean_alloc_closure((void*)(l_Std_Http_Response_Builder_fromBytes___lam__0___boxed), 3, 1); +lean_closure_set(v___f_795_, 0, v_builder_791_); +v___x_796_ = lean_unsigned_to_nat(0u); +v___x_797_ = 0; +v___x_798_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_796_, v___x_797_, v___x_794_, v___f_795_); +return v___x_798_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___boxed(lean_object* v_builder_786_, lean_object* v_content_787_, lean_object* v_a_788_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_fromBytes___boxed(lean_object* v_builder_799_, lean_object* v_content_800_, lean_object* v_a_801_){ _start: { -lean_object* v_res_789_; -v_res_789_ = l_Std_Http_Response_Builder_fromBytes(v_builder_786_, v_content_787_); -return v_res_789_; +lean_object* v_res_802_; +v_res_802_ = l_Std_Http_Response_Builder_fromBytes(v_builder_799_, v_content_800_); +return v_res_802_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_bytes(lean_object* v_builder_790_, lean_object* v_content_791_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_bytes(lean_object* v_builder_803_, lean_object* v_content_804_){ _start: { -lean_object* v___x_793_; lean_object* v___x_794_; lean_object* v___x_795_; lean_object* v___x_796_; -v___x_793_ = l_Std_Http_Header_Name_contentType; -v___x_794_ = lean_obj_once(&l_Std_Http_Request_Builder_bytes___closed__1, &l_Std_Http_Request_Builder_bytes___closed__1_once, _init_l_Std_Http_Request_Builder_bytes___closed__1); -v___x_795_ = l_Std_Http_Response_Builder_header(v_builder_790_, v___x_793_, v___x_794_); -v___x_796_ = l_Std_Http_Response_Builder_fromBytes(v___x_795_, v_content_791_); -return v___x_796_; +lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___x_808_; lean_object* v___x_809_; +v___x_806_ = l_Std_Http_Header_Name_contentType; +v___x_807_ = lean_obj_once(&l_Std_Http_Request_Builder_bytes___closed__1, &l_Std_Http_Request_Builder_bytes___closed__1_once, _init_l_Std_Http_Request_Builder_bytes___closed__1); +v___x_808_ = l_Std_Http_Response_Builder_header(v_builder_803_, v___x_806_, v___x_807_); +v___x_809_ = l_Std_Http_Response_Builder_fromBytes(v___x_808_, v_content_804_); +return v___x_809_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_bytes___boxed(lean_object* v_builder_797_, lean_object* v_content_798_, lean_object* v_a_799_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_bytes___boxed(lean_object* v_builder_810_, lean_object* v_content_811_, lean_object* v_a_812_){ _start: { -lean_object* v_res_800_; -v_res_800_ = l_Std_Http_Response_Builder_bytes(v_builder_797_, v_content_798_); -return v_res_800_; +lean_object* v_res_813_; +v_res_813_ = l_Std_Http_Response_Builder_bytes(v_builder_810_, v_content_811_); +return v_res_813_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_text(lean_object* v_builder_801_, lean_object* v_content_802_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_text(lean_object* v_builder_814_, lean_object* v_content_815_){ _start: { -lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___x_808_; -v___x_804_ = l_Std_Http_Header_Name_contentType; -v___x_805_ = lean_obj_once(&l_Std_Http_Request_Builder_text___closed__1, &l_Std_Http_Request_Builder_text___closed__1_once, _init_l_Std_Http_Request_Builder_text___closed__1); -v___x_806_ = l_Std_Http_Response_Builder_header(v_builder_801_, v___x_804_, v___x_805_); -v___x_807_ = lean_string_to_utf8(v_content_802_); -v___x_808_ = l_Std_Http_Response_Builder_fromBytes(v___x_806_, v___x_807_); -return v___x_808_; +lean_object* v___x_817_; lean_object* v___x_818_; lean_object* v___x_819_; lean_object* v___x_820_; lean_object* v___x_821_; +v___x_817_ = l_Std_Http_Header_Name_contentType; +v___x_818_ = lean_obj_once(&l_Std_Http_Request_Builder_text___closed__1, &l_Std_Http_Request_Builder_text___closed__1_once, _init_l_Std_Http_Request_Builder_text___closed__1); +v___x_819_ = l_Std_Http_Response_Builder_header(v_builder_814_, v___x_817_, v___x_818_); +v___x_820_ = lean_string_to_utf8(v_content_815_); +v___x_821_ = l_Std_Http_Response_Builder_fromBytes(v___x_819_, v___x_820_); +return v___x_821_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_text___boxed(lean_object* v_builder_809_, lean_object* v_content_810_, lean_object* v_a_811_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_text___boxed(lean_object* v_builder_822_, lean_object* v_content_823_, lean_object* v_a_824_){ _start: { -lean_object* v_res_812_; -v_res_812_ = l_Std_Http_Response_Builder_text(v_builder_809_, v_content_810_); -lean_dec_ref(v_content_810_); -return v_res_812_; +lean_object* v_res_825_; +v_res_825_ = l_Std_Http_Response_Builder_text(v_builder_822_, v_content_823_); +lean_dec_ref(v_content_823_); +return v_res_825_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_json(lean_object* v_builder_813_, lean_object* v_content_814_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_json(lean_object* v_builder_826_, lean_object* v_content_827_){ _start: { -lean_object* v___x_816_; lean_object* v___x_817_; lean_object* v___x_818_; lean_object* v___x_819_; lean_object* v___x_820_; -v___x_816_ = l_Std_Http_Header_Name_contentType; -v___x_817_ = lean_obj_once(&l_Std_Http_Request_Builder_json___closed__1, &l_Std_Http_Request_Builder_json___closed__1_once, _init_l_Std_Http_Request_Builder_json___closed__1); -v___x_818_ = l_Std_Http_Response_Builder_header(v_builder_813_, v___x_816_, v___x_817_); -v___x_819_ = lean_string_to_utf8(v_content_814_); -v___x_820_ = l_Std_Http_Response_Builder_fromBytes(v___x_818_, v___x_819_); -return v___x_820_; +lean_object* v___x_829_; lean_object* v___x_830_; lean_object* v___x_831_; lean_object* v___x_832_; lean_object* v___x_833_; +v___x_829_ = l_Std_Http_Header_Name_contentType; +v___x_830_ = lean_obj_once(&l_Std_Http_Request_Builder_json___closed__1, &l_Std_Http_Request_Builder_json___closed__1_once, _init_l_Std_Http_Request_Builder_json___closed__1); +v___x_831_ = l_Std_Http_Response_Builder_header(v_builder_826_, v___x_829_, v___x_830_); +v___x_832_ = lean_string_to_utf8(v_content_827_); +v___x_833_ = l_Std_Http_Response_Builder_fromBytes(v___x_831_, v___x_832_); +return v___x_833_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_json___boxed(lean_object* v_builder_821_, lean_object* v_content_822_, lean_object* v_a_823_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_json___boxed(lean_object* v_builder_834_, lean_object* v_content_835_, lean_object* v_a_836_){ _start: { -lean_object* v_res_824_; -v_res_824_ = l_Std_Http_Response_Builder_json(v_builder_821_, v_content_822_); -lean_dec_ref(v_content_822_); -return v_res_824_; +lean_object* v_res_837_; +v_res_837_ = l_Std_Http_Response_Builder_json(v_builder_834_, v_content_835_); +lean_dec_ref(v_content_835_); +return v_res_837_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_html(lean_object* v_builder_825_, lean_object* v_content_826_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_html(lean_object* v_builder_838_, lean_object* v_content_839_){ _start: { -lean_object* v___x_828_; lean_object* v___x_829_; lean_object* v___x_830_; lean_object* v___x_831_; lean_object* v___x_832_; -v___x_828_ = l_Std_Http_Header_Name_contentType; -v___x_829_ = lean_obj_once(&l_Std_Http_Request_Builder_html___closed__1, &l_Std_Http_Request_Builder_html___closed__1_once, _init_l_Std_Http_Request_Builder_html___closed__1); -v___x_830_ = l_Std_Http_Response_Builder_header(v_builder_825_, v___x_828_, v___x_829_); -v___x_831_ = lean_string_to_utf8(v_content_826_); -v___x_832_ = l_Std_Http_Response_Builder_fromBytes(v___x_830_, v___x_831_); -return v___x_832_; +lean_object* v___x_841_; lean_object* v___x_842_; lean_object* v___x_843_; lean_object* v___x_844_; lean_object* v___x_845_; +v___x_841_ = l_Std_Http_Header_Name_contentType; +v___x_842_ = lean_obj_once(&l_Std_Http_Request_Builder_html___closed__1, &l_Std_Http_Request_Builder_html___closed__1_once, _init_l_Std_Http_Request_Builder_html___closed__1); +v___x_843_ = l_Std_Http_Response_Builder_header(v_builder_838_, v___x_841_, v___x_842_); +v___x_844_ = lean_string_to_utf8(v_content_839_); +v___x_845_ = l_Std_Http_Response_Builder_fromBytes(v___x_843_, v___x_844_); +return v___x_845_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_html___boxed(lean_object* v_builder_833_, lean_object* v_content_834_, lean_object* v_a_835_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_html___boxed(lean_object* v_builder_846_, lean_object* v_content_847_, lean_object* v_a_848_){ _start: { -lean_object* v_res_836_; -v_res_836_ = l_Std_Http_Response_Builder_html(v_builder_833_, v_content_834_); -lean_dec_ref(v_content_834_); -return v_res_836_; +lean_object* v_res_849_; +v_res_849_ = l_Std_Http_Response_Builder_html(v_builder_846_, v_content_847_); +lean_dec_ref(v_content_847_); +return v_res_849_; } } lean_object* runtime_initialize_Std_Sync(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Data/Body/Stream.c b/stage0/stdlib/Std/Internal/Http/Data/Body/Stream.c index 9e4b1d2312..fd7d3b9734 100644 --- a/stage0/stdlib/Std/Internal/Http/Data/Body/Stream.c +++ b/stage0/stdlib/Std/Internal/Http/Data/Body/Stream.c @@ -235,6 +235,30 @@ static const lean_closure_object l_Std_Http_Body_Stream_tryRecv___closed__0_valu static const lean_object* l_Std_Http_Body_Stream_tryRecv___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_tryRecv___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecv(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecv___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__0___boxed(lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__0_value; +static const lean_ctor_object l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__0_value)}}; +static const lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__3___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Stream_tryRecvBody___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_tryRecvBody___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Body_Stream_tryRecvBody___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___closed__0_value; +static const lean_closure_object l_Std_Http_Body_Stream_tryRecvBody___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_tryRecvBody___lam__3___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___closed__0_value)} }; +static const lean_object* l_Std_Http_Body_Stream_tryRecvBody___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_tryRecvBody___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(lean_object*); @@ -344,52 +368,30 @@ LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_B LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0(lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0___boxed(lean_object*, lean_object*); -static const lean_closure_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; -static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___closed__0_value; -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2(lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0(lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__1_value)}}; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__1_value)}}; +static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__3___closed__0_value; +static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__3___closed__0_value)}}; +static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__3___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_recvSelector___lam__2___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0_value; -static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__4___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0_value)}}; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__4___closed__1_value; -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___boxed(lean_object*, lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_recvSelector___lam__3___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__8(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__8___boxed(lean_object*, lean_object*, lean_object*); -static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__9___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__9___closed__0_value; -static const lean_ctor_object l_Std_Http_Body_Stream_recvSelector___lam__9___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__9___closed__0_value)}}; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___lam__9___closed__1_value; -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__10(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__11(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__11___boxed(lean_object*, lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_recvSelector___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_Stream_recvSelector___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___closed__0_value; -static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___closed__1_value; -static const lean_closure_object l_Std_Http_Body_Stream_recvSelector___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_recvSelector___lam__11___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_recvSelector___closed__0_value)} }; -static const lean_object* l_Std_Http_Body_Stream_recvSelector___closed__2 = (const lean_object*)&l_Std_Http_Body_Stream_recvSelector___closed__2_value; LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector(lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -645,25 +647,27 @@ static const lean_closure_object l_Std_Http_Body_instStream___closed__1_value = static const lean_object* l_Std_Http_Body_instStream___closed__1 = (const lean_object*)&l_Std_Http_Body_instStream___closed__1_value; static const lean_closure_object l_Std_Http_Body_instStream___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_recvSelector, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instStream___closed__2 = (const lean_object*)&l_Std_Http_Body_instStream___closed__2_value; -static const lean_closure_object l_Std_Http_Body_instStream___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_getKnownSize___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_closure_object l_Std_Http_Body_instStream___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_tryRecvBody___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instStream___closed__3 = (const lean_object*)&l_Std_Http_Body_instStream___closed__3_value; -static const lean_closure_object l_Std_Http_Body_instStream___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_setKnownSize___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_closure_object l_Std_Http_Body_instStream___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_getKnownSize___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instStream___closed__4 = (const lean_object*)&l_Std_Http_Body_instStream___closed__4_value; -static const lean_ctor_object l_Std_Http_Body_instStream___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*6 + 0, .m_other = 6, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_instNextChunkAsync___closed__0_value),((lean_object*)&l_Std_Http_Body_instStream___closed__0_value),((lean_object*)&l_Std_Http_Body_instStream___closed__1_value),((lean_object*)&l_Std_Http_Body_instStream___closed__2_value),((lean_object*)&l_Std_Http_Body_instStream___closed__3_value),((lean_object*)&l_Std_Http_Body_instStream___closed__4_value)}}; +static const lean_closure_object l_Std_Http_Body_instStream___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_setKnownSize___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Body_instStream___closed__5 = (const lean_object*)&l_Std_Http_Body_instStream___closed__5_value; -LEAN_EXPORT const lean_object* l_Std_Http_Body_instStream = (const lean_object*)&l_Std_Http_Body_instStream___closed__5_value; -static const lean_closure_object l_Std_Http_Body_instCoeStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instStream___closed__5_value)} }; +static const lean_ctor_object l_Std_Http_Body_instStream___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*7 + 0, .m_other = 7, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_instNextChunkAsync___closed__0_value),((lean_object*)&l_Std_Http_Body_instStream___closed__0_value),((lean_object*)&l_Std_Http_Body_instStream___closed__1_value),((lean_object*)&l_Std_Http_Body_instStream___closed__2_value),((lean_object*)&l_Std_Http_Body_instStream___closed__3_value),((lean_object*)&l_Std_Http_Body_instStream___closed__4_value),((lean_object*)&l_Std_Http_Body_instStream___closed__5_value)}}; +static const lean_object* l_Std_Http_Body_instStream___closed__6 = (const lean_object*)&l_Std_Http_Body_instStream___closed__6_value; +LEAN_EXPORT const lean_object* l_Std_Http_Body_instStream = (const lean_object*)&l_Std_Http_Body_instStream___closed__6_value; +static const lean_closure_object l_Std_Http_Body_instCoeStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody, .m_arity = 3, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Body_instStream___closed__6_value)} }; static const lean_object* l_Std_Http_Body_instCoeStreamAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeStreamAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeStreamAny = (const lean_object*)&l_Std_Http_Body_instCoeStreamAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseStreamAny___lam__0(lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeResponseStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseStreamAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instStream___closed__5_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeResponseStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeResponseStreamAny___lam__0, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instStream___closed__6_value)} }; static const lean_object* l_Std_Http_Body_instCoeResponseStreamAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeResponseStreamAny___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Body_instCoeResponseStreamAny = (const lean_object*)&l_Std_Http_Body_instCoeResponseStreamAny___closed__0_value; LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instStream___closed__5_value)} }; +static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instStream___closed__6_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__0 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__0_value; static const lean_closure_object l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1___boxed, .m_arity = 4, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__0_value)} }; static const lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__1 = (const lean_object*)&l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___closed__1_value; @@ -4180,471 +4184,889 @@ v_res_1331_ = l_Std_Http_Body_Stream_tryRecv(v_stream_1329_); return v_res_1331_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(lean_object* v_a_1332_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0(lean_object* v_x_1332_){ _start: { -lean_object* v___x_1334_; lean_object* v_pendingProducer_1335_; lean_object* v_pendingConsumer_1336_; lean_object* v_interestWaiter_1337_; uint8_t v_closed_1338_; lean_object* v_knownSize_1339_; lean_object* v_pendingIncompleteChunk_1340_; lean_object* v___x_1342_; uint8_t v_isShared_1343_; uint8_t v_isSharedCheck_1366_; -v___x_1334_ = lean_st_ref_get(v_a_1332_); -v_pendingProducer_1335_ = lean_ctor_get(v___x_1334_, 0); -v_pendingConsumer_1336_ = lean_ctor_get(v___x_1334_, 1); -v_interestWaiter_1337_ = lean_ctor_get(v___x_1334_, 2); -v_closed_1338_ = lean_ctor_get_uint8(v___x_1334_, sizeof(void*)*5); -v_knownSize_1339_ = lean_ctor_get(v___x_1334_, 3); -v_pendingIncompleteChunk_1340_ = lean_ctor_get(v___x_1334_, 4); -v_isSharedCheck_1366_ = !lean_is_exclusive(v___x_1334_); -if (v_isSharedCheck_1366_ == 0) +uint8_t v___y_1335_; +if (lean_obj_tag(v_x_1332_) == 0) { -v___x_1342_ = v___x_1334_; -v_isShared_1343_ = v_isSharedCheck_1366_; -goto v_resetjp_1341_; +lean_object* v_a_1339_; lean_object* v___x_1341_; uint8_t v_isShared_1342_; uint8_t v_isSharedCheck_1347_; +v_a_1339_ = lean_ctor_get(v_x_1332_, 0); +v_isSharedCheck_1347_ = !lean_is_exclusive(v_x_1332_); +if (v_isSharedCheck_1347_ == 0) +{ +v___x_1341_ = v_x_1332_; +v_isShared_1342_ = v_isSharedCheck_1347_; +goto v_resetjp_1340_; } else { -lean_inc(v_pendingIncompleteChunk_1340_); -lean_inc(v_knownSize_1339_); -lean_inc(v_interestWaiter_1337_); -lean_inc(v_pendingConsumer_1336_); -lean_inc(v_pendingProducer_1335_); -lean_dec(v___x_1334_); -v___x_1342_ = lean_box(0); -v_isShared_1343_ = v_isSharedCheck_1366_; -goto v_resetjp_1341_; +lean_inc(v_a_1339_); +lean_dec(v_x_1332_); +v___x_1341_ = lean_box(0); +v_isShared_1342_ = v_isSharedCheck_1347_; +goto v_resetjp_1340_; } -v_resetjp_1341_: +v_resetjp_1340_: { -lean_object* v___y_1345_; lean_object* v_interestWaiter_1346_; lean_object* v___y_1347_; lean_object* v_pendingConsumer_1353_; lean_object* v___y_1354_; -if (lean_obj_tag(v_pendingConsumer_1336_) == 1) +lean_object* v___x_1344_; +if (v_isShared_1342_ == 0) { -lean_object* v_val_1360_; -v_val_1360_ = lean_ctor_get(v_pendingConsumer_1336_, 0); -if (lean_obj_tag(v_val_1360_) == 1) -{ -lean_object* v_finished_1361_; lean_object* v_finished_1362_; lean_object* v___x_1363_; uint8_t v___x_1364_; -v_finished_1361_ = lean_ctor_get(v_val_1360_, 0); -v_finished_1362_ = lean_ctor_get(v_finished_1361_, 0); -v___x_1363_ = lean_st_ref_get(v_finished_1362_); -v___x_1364_ = lean_unbox(v___x_1363_); -lean_dec(v___x_1363_); -if (v___x_1364_ == 0) -{ -v_pendingConsumer_1353_ = v_pendingConsumer_1336_; -v___y_1354_ = v_a_1332_; -goto v___jp_1352_; +v___x_1344_ = v___x_1341_; +goto v_reusejp_1343_; } else { -lean_object* v___x_1365_; -lean_dec_ref(v_pendingConsumer_1336_); -v___x_1365_ = lean_box(0); -v_pendingConsumer_1353_ = v___x_1365_; -v___y_1354_ = v_a_1332_; -goto v___jp_1352_; +lean_object* v_reuseFailAlloc_1346_; +v_reuseFailAlloc_1346_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1346_, 0, v_a_1339_); +v___x_1344_ = v_reuseFailAlloc_1346_; +goto v_reusejp_1343_; +} +v_reusejp_1343_: +{ +lean_object* v___x_1345_; +v___x_1345_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1345_, 0, v___x_1344_); +return v___x_1345_; +} } } else { -v_pendingConsumer_1353_ = v_pendingConsumer_1336_; -v___y_1354_ = v_a_1332_; -goto v___jp_1352_; -} +lean_object* v_a_1348_; lean_object* v_pendingProducer_1349_; +v_a_1348_ = lean_ctor_get(v_x_1332_, 0); +lean_inc(v_a_1348_); +lean_dec_ref(v_x_1332_); +v_pendingProducer_1349_ = lean_ctor_get(v_a_1348_, 0); +if (lean_obj_tag(v_pendingProducer_1349_) == 0) +{ +uint8_t v_closed_1350_; +v_closed_1350_ = lean_ctor_get_uint8(v_a_1348_, sizeof(void*)*5); +lean_dec(v_a_1348_); +v___y_1335_ = v_closed_1350_; +goto v___jp_1334_; } else { -v_pendingConsumer_1353_ = v_pendingConsumer_1336_; -v___y_1354_ = v_a_1332_; -goto v___jp_1352_; +uint8_t v___x_1351_; +lean_dec(v_a_1348_); +v___x_1351_ = 1; +v___y_1335_ = v___x_1351_; +goto v___jp_1334_; } -v___jp_1344_: +} +v___jp_1334_: { -lean_object* v___x_1349_; -if (v_isShared_1343_ == 0) -{ -lean_ctor_set(v___x_1342_, 2, v_interestWaiter_1346_); -lean_ctor_set(v___x_1342_, 1, v___y_1345_); -v___x_1349_ = v___x_1342_; -goto v_reusejp_1348_; -} -else -{ -lean_object* v_reuseFailAlloc_1351_; -v_reuseFailAlloc_1351_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_1351_, 0, v_pendingProducer_1335_); -lean_ctor_set(v_reuseFailAlloc_1351_, 1, v___y_1345_); -lean_ctor_set(v_reuseFailAlloc_1351_, 2, v_interestWaiter_1346_); -lean_ctor_set(v_reuseFailAlloc_1351_, 3, v_knownSize_1339_); -lean_ctor_set(v_reuseFailAlloc_1351_, 4, v_pendingIncompleteChunk_1340_); -lean_ctor_set_uint8(v_reuseFailAlloc_1351_, sizeof(void*)*5, v_closed_1338_); -v___x_1349_ = v_reuseFailAlloc_1351_; -goto v_reusejp_1348_; -} -v_reusejp_1348_: -{ -lean_object* v___x_1350_; -v___x_1350_ = lean_st_ref_set(v___y_1347_, v___x_1349_); -return v___x_1350_; -} -} -v___jp_1352_: -{ -if (lean_obj_tag(v_interestWaiter_1337_) == 0) -{ -v___y_1345_ = v_pendingConsumer_1353_; -v_interestWaiter_1346_ = v_interestWaiter_1337_; -v___y_1347_ = v___y_1354_; -goto v___jp_1344_; -} -else -{ -lean_object* v_val_1355_; lean_object* v_finished_1356_; lean_object* v___x_1357_; uint8_t v___x_1358_; -v_val_1355_ = lean_ctor_get(v_interestWaiter_1337_, 0); -v_finished_1356_ = lean_ctor_get(v_val_1355_, 0); -v___x_1357_ = lean_st_ref_get(v_finished_1356_); -v___x_1358_ = lean_unbox(v___x_1357_); -lean_dec(v___x_1357_); -if (v___x_1358_ == 0) -{ -v___y_1345_ = v_pendingConsumer_1353_; -v_interestWaiter_1346_ = v_interestWaiter_1337_; -v___y_1347_ = v___y_1354_; -goto v___jp_1344_; -} -else -{ -lean_object* v___x_1359_; -lean_dec_ref(v_interestWaiter_1337_); -v___x_1359_ = lean_box(0); -v___y_1345_ = v_pendingConsumer_1353_; -v_interestWaiter_1346_ = v___x_1359_; -v___y_1347_ = v___y_1354_; -goto v___jp_1344_; +lean_object* v___x_1336_; lean_object* v___x_1337_; lean_object* v___x_1338_; +v___x_1336_ = lean_box(v___y_1335_); +v___x_1337_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1337_, 0, v___x_1336_); +v___x_1338_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1338_, 0, v___x_1337_); +return v___x_1338_; } } } -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0___boxed(lean_object* v_a_1367_, lean_object* v___y_1368_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0___boxed(lean_object* v_x_1352_, lean_object* v___y_1353_){ _start: { -lean_object* v_res_1369_; -v_res_1369_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v_a_1367_); -lean_dec(v_a_1367_); -return v_res_1369_; +lean_object* v_res_1354_; +v_res_1354_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___lam__0(v_x_1352_); +return v_res_1354_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(lean_object* v_a_1370_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0(lean_object* v_a_1356_){ _start: { -lean_object* v___x_1372_; lean_object* v_pendingProducer_1373_; -v___x_1372_ = lean_st_ref_get(v_a_1370_); -v_pendingProducer_1373_ = lean_ctor_get(v___x_1372_, 0); -lean_inc(v_pendingProducer_1373_); -if (lean_obj_tag(v_pendingProducer_1373_) == 1) -{ -lean_object* v_val_1374_; lean_object* v___x_1376_; uint8_t v_isShared_1377_; uint8_t v_isSharedCheck_1402_; -v_val_1374_ = lean_ctor_get(v_pendingProducer_1373_, 0); -v_isSharedCheck_1402_ = !lean_is_exclusive(v_pendingProducer_1373_); -if (v_isSharedCheck_1402_ == 0) -{ -v___x_1376_ = v_pendingProducer_1373_; -v_isShared_1377_ = v_isSharedCheck_1402_; -goto v_resetjp_1375_; -} -else -{ -lean_inc(v_val_1374_); -lean_dec(v_pendingProducer_1373_); -v___x_1376_ = lean_box(0); -v_isShared_1377_ = v_isSharedCheck_1402_; -goto v_resetjp_1375_; -} -v_resetjp_1375_: -{ -lean_object* v_pendingConsumer_1378_; lean_object* v_interestWaiter_1379_; uint8_t v_closed_1380_; lean_object* v_knownSize_1381_; lean_object* v_pendingIncompleteChunk_1382_; lean_object* v___x_1384_; uint8_t v_isShared_1385_; uint8_t v_isSharedCheck_1400_; -v_pendingConsumer_1378_ = lean_ctor_get(v___x_1372_, 1); -v_interestWaiter_1379_ = lean_ctor_get(v___x_1372_, 2); -v_closed_1380_ = lean_ctor_get_uint8(v___x_1372_, sizeof(void*)*5); -v_knownSize_1381_ = lean_ctor_get(v___x_1372_, 3); -v_pendingIncompleteChunk_1382_ = lean_ctor_get(v___x_1372_, 4); -v_isSharedCheck_1400_ = !lean_is_exclusive(v___x_1372_); -if (v_isSharedCheck_1400_ == 0) -{ -lean_object* v_unused_1401_; -v_unused_1401_ = lean_ctor_get(v___x_1372_, 0); -lean_dec(v_unused_1401_); -v___x_1384_ = v___x_1372_; -v_isShared_1385_ = v_isSharedCheck_1400_; -goto v_resetjp_1383_; -} -else -{ -lean_inc(v_pendingIncompleteChunk_1382_); -lean_inc(v_knownSize_1381_); -lean_inc(v_interestWaiter_1379_); -lean_inc(v_pendingConsumer_1378_); -lean_dec(v___x_1372_); -v___x_1384_ = lean_box(0); -v_isShared_1385_ = v_isSharedCheck_1400_; -goto v_resetjp_1383_; -} -v_resetjp_1383_: -{ -lean_object* v_chunk_1386_; lean_object* v_done_1387_; lean_object* v___x_1388_; lean_object* v___x_1389_; lean_object* v___x_1391_; -v_chunk_1386_ = lean_ctor_get(v_val_1374_, 0); -lean_inc_ref(v_chunk_1386_); -v_done_1387_ = lean_ctor_get(v_val_1374_, 1); -lean_inc(v_done_1387_); -lean_dec(v_val_1374_); -v___x_1388_ = lean_box(0); -v___x_1389_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_decreaseKnownSize(v_knownSize_1381_, v_chunk_1386_); -if (v_isShared_1385_ == 0) -{ -lean_ctor_set(v___x_1384_, 3, v___x_1389_); -lean_ctor_set(v___x_1384_, 0, v___x_1388_); -v___x_1391_ = v___x_1384_; -goto v_reusejp_1390_; -} -else -{ -lean_object* v_reuseFailAlloc_1399_; -v_reuseFailAlloc_1399_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_1399_, 0, v___x_1388_); -lean_ctor_set(v_reuseFailAlloc_1399_, 1, v_pendingConsumer_1378_); -lean_ctor_set(v_reuseFailAlloc_1399_, 2, v_interestWaiter_1379_); -lean_ctor_set(v_reuseFailAlloc_1399_, 3, v___x_1389_); -lean_ctor_set(v_reuseFailAlloc_1399_, 4, v_pendingIncompleteChunk_1382_); -lean_ctor_set_uint8(v_reuseFailAlloc_1399_, sizeof(void*)*5, v_closed_1380_); -v___x_1391_ = v_reuseFailAlloc_1399_; -goto v_reusejp_1390_; -} -v_reusejp_1390_: -{ -lean_object* v___x_1392_; uint8_t v___x_1393_; lean_object* v___x_1394_; lean_object* v___x_1395_; lean_object* v___x_1397_; -v___x_1392_ = lean_st_ref_set(v_a_1370_, v___x_1391_); -v___x_1393_ = 1; -v___x_1394_ = lean_box(v___x_1393_); -v___x_1395_ = lean_io_promise_resolve(v___x_1394_, v_done_1387_); -lean_dec(v_done_1387_); -if (v_isShared_1377_ == 0) -{ -lean_ctor_set(v___x_1376_, 0, v_chunk_1386_); -v___x_1397_ = v___x_1376_; -goto v_reusejp_1396_; -} -else -{ -lean_object* v_reuseFailAlloc_1398_; -v_reuseFailAlloc_1398_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1398_, 0, v_chunk_1386_); -v___x_1397_ = v_reuseFailAlloc_1398_; -goto v_reusejp_1396_; -} -v_reusejp_1396_: -{ -return v___x_1397_; +lean_object* v___x_1358_; lean_object* v___f_1359_; lean_object* v___x_1360_; lean_object* v___x_1361_; lean_object* v___x_1362_; uint8_t v___x_1363_; lean_object* v___x_1364_; +v___x_1358_ = lean_st_ref_get(v_a_1356_); +v___f_1359_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___closed__0)); +v___x_1360_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1360_, 0, v___x_1358_); +v___x_1361_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1361_, 0, v___x_1360_); +v___x_1362_ = lean_unsigned_to_nat(0u); +v___x_1363_ = 0; +v___x_1364_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1362_, v___x_1363_, v___x_1361_, v___f_1359_); +return v___x_1364_; } } -} -} -} -else -{ -lean_object* v___x_1403_; -lean_dec(v_pendingProducer_1373_); -lean_dec(v___x_1372_); -v___x_1403_ = lean_box(0); -return v___x_1403_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1___boxed(lean_object* v_a_1404_, lean_object* v___y_1405_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0___boxed(lean_object* v_a_1365_, lean_object* v___y_1366_){ _start: { -lean_object* v_res_1406_; -v_res_1406_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(v_a_1404_); -lean_dec(v_a_1404_); -return v_res_1406_; +lean_object* v_res_1367_; +v_res_1367_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0(v_a_1365_); +lean_dec(v_a_1365_); +return v_res_1367_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(lean_object* v_a_1407_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__0(lean_object* v_x_1368_){ _start: { -lean_object* v___x_1409_; lean_object* v_interestWaiter_1410_; -v___x_1409_ = lean_st_ref_get(v_a_1407_); -v_interestWaiter_1410_ = lean_ctor_get(v___x_1409_, 2); -lean_inc(v_interestWaiter_1410_); -if (lean_obj_tag(v_interestWaiter_1410_) == 1) +if (lean_obj_tag(v_x_1368_) == 0) { -lean_object* v_pendingProducer_1411_; lean_object* v_pendingConsumer_1412_; uint8_t v_closed_1413_; lean_object* v_knownSize_1414_; lean_object* v_pendingIncompleteChunk_1415_; lean_object* v___x_1417_; uint8_t v_isShared_1418_; uint8_t v_isSharedCheck_1427_; -v_pendingProducer_1411_ = lean_ctor_get(v___x_1409_, 0); -v_pendingConsumer_1412_ = lean_ctor_get(v___x_1409_, 1); -v_closed_1413_ = lean_ctor_get_uint8(v___x_1409_, sizeof(void*)*5); -v_knownSize_1414_ = lean_ctor_get(v___x_1409_, 3); -v_pendingIncompleteChunk_1415_ = lean_ctor_get(v___x_1409_, 4); -v_isSharedCheck_1427_ = !lean_is_exclusive(v___x_1409_); -if (v_isSharedCheck_1427_ == 0) +lean_object* v_a_1370_; lean_object* v___x_1372_; uint8_t v_isShared_1373_; uint8_t v_isSharedCheck_1378_; +v_a_1370_ = lean_ctor_get(v_x_1368_, 0); +v_isSharedCheck_1378_ = !lean_is_exclusive(v_x_1368_); +if (v_isSharedCheck_1378_ == 0) { -lean_object* v_unused_1428_; -v_unused_1428_ = lean_ctor_get(v___x_1409_, 2); -lean_dec(v_unused_1428_); -v___x_1417_ = v___x_1409_; -v_isShared_1418_ = v_isSharedCheck_1427_; -goto v_resetjp_1416_; +v___x_1372_ = v_x_1368_; +v_isShared_1373_ = v_isSharedCheck_1378_; +goto v_resetjp_1371_; } else { -lean_inc(v_pendingIncompleteChunk_1415_); -lean_inc(v_knownSize_1414_); -lean_inc(v_pendingConsumer_1412_); -lean_inc(v_pendingProducer_1411_); -lean_dec(v___x_1409_); -v___x_1417_ = lean_box(0); -v_isShared_1418_ = v_isSharedCheck_1427_; -goto v_resetjp_1416_; +lean_inc(v_a_1370_); +lean_dec(v_x_1368_); +v___x_1372_ = lean_box(0); +v_isShared_1373_ = v_isSharedCheck_1378_; +goto v_resetjp_1371_; } -v_resetjp_1416_: +v_resetjp_1371_: { -lean_object* v_val_1419_; uint8_t v___x_1420_; uint8_t v___x_1421_; lean_object* v___x_1422_; lean_object* v___x_1424_; -v_val_1419_ = lean_ctor_get(v_interestWaiter_1410_, 0); -lean_inc(v_val_1419_); -lean_dec_ref(v_interestWaiter_1410_); -v___x_1420_ = 1; -v___x_1421_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1419_, v___x_1420_); -lean_dec(v_val_1419_); -v___x_1422_ = lean_box(0); -if (v_isShared_1418_ == 0) +lean_object* v___x_1375_; +if (v_isShared_1373_ == 0) { -lean_ctor_set(v___x_1417_, 2, v___x_1422_); -v___x_1424_ = v___x_1417_; -goto v_reusejp_1423_; +v___x_1375_ = v___x_1372_; +goto v_reusejp_1374_; } else { -lean_object* v_reuseFailAlloc_1426_; -v_reuseFailAlloc_1426_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_1426_, 0, v_pendingProducer_1411_); -lean_ctor_set(v_reuseFailAlloc_1426_, 1, v_pendingConsumer_1412_); -lean_ctor_set(v_reuseFailAlloc_1426_, 2, v___x_1422_); -lean_ctor_set(v_reuseFailAlloc_1426_, 3, v_knownSize_1414_); -lean_ctor_set(v_reuseFailAlloc_1426_, 4, v_pendingIncompleteChunk_1415_); -lean_ctor_set_uint8(v_reuseFailAlloc_1426_, sizeof(void*)*5, v_closed_1413_); -v___x_1424_ = v_reuseFailAlloc_1426_; -goto v_reusejp_1423_; +lean_object* v_reuseFailAlloc_1377_; +v_reuseFailAlloc_1377_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1377_, 0, v_a_1370_); +v___x_1375_ = v_reuseFailAlloc_1377_; +goto v_reusejp_1374_; } -v_reusejp_1423_: +v_reusejp_1374_: { -lean_object* v___x_1425_; -v___x_1425_ = lean_st_ref_set(v_a_1407_, v___x_1424_); -return v___x_1425_; +lean_object* v___x_1376_; +v___x_1376_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1376_, 0, v___x_1375_); +return v___x_1376_; } } } else { -lean_object* v___x_1429_; -lean_dec(v_interestWaiter_1410_); -lean_dec(v___x_1409_); -v___x_1429_ = lean_box(0); -return v___x_1429_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2___boxed(lean_object* v_a_1430_, lean_object* v___y_1431_){ -_start: +lean_object* v_a_1379_; lean_object* v___x_1381_; uint8_t v_isShared_1382_; uint8_t v_isSharedCheck_1388_; +v_a_1379_ = lean_ctor_get(v_x_1368_, 0); +v_isSharedCheck_1388_ = !lean_is_exclusive(v_x_1368_); +if (v_isSharedCheck_1388_ == 0) { -lean_object* v_res_1432_; -v_res_1432_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(v_a_1430_); -lean_dec(v_a_1430_); -return v_res_1432_; -} -} -LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(lean_object* v_mutex_1433_, lean_object* v_k_1434_){ -_start: -{ -lean_object* v_ref_1436_; lean_object* v_mutex_1437_; lean_object* v___x_1438_; lean_object* v___x_1439_; lean_object* v___x_1440_; -v_ref_1436_ = lean_ctor_get(v_mutex_1433_, 0); -lean_inc(v_ref_1436_); -v_mutex_1437_ = lean_ctor_get(v_mutex_1433_, 1); -lean_inc(v_mutex_1437_); -lean_dec_ref(v_mutex_1433_); -v___x_1438_ = lean_io_basemutex_lock(v_mutex_1437_); -v___x_1439_ = lean_apply_2(v_k_1434_, v_ref_1436_, lean_box(0)); -v___x_1440_ = lean_io_basemutex_unlock(v_mutex_1437_); -lean_dec(v_mutex_1437_); -return v___x_1439_; -} -} -LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg___boxed(lean_object* v_mutex_1441_, lean_object* v_k_1442_, lean_object* v___y_1443_){ -_start: -{ -lean_object* v_res_1444_; -v_res_1444_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_mutex_1441_, v_k_1442_); -return v_res_1444_; -} -} -LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3(lean_object* v_00_u03b1_1445_, lean_object* v_00_u03b2_1446_, lean_object* v_mutex_1447_, lean_object* v_k_1448_){ -_start: -{ -lean_object* v___x_1450_; -v___x_1450_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_mutex_1447_, v_k_1448_); -return v___x_1450_; -} -} -LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___boxed(lean_object* v_00_u03b1_1451_, lean_object* v_00_u03b2_1452_, lean_object* v_mutex_1453_, lean_object* v_k_1454_, lean_object* v___y_1455_){ -_start: -{ -lean_object* v_res_1456_; -v_res_1456_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3(v_00_u03b1_1451_, v_00_u03b2_1452_, v_mutex_1453_, v_k_1454_); -return v_res_1456_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__0(lean_object* v_x_1462_){ -_start: -{ -if (lean_obj_tag(v_x_1462_) == 0) -{ -lean_object* v___x_1463_; -v___x_1463_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__0___closed__2)); -return v___x_1463_; +v___x_1381_ = v_x_1368_; +v_isShared_1382_ = v_isSharedCheck_1388_; +goto v_resetjp_1380_; } else { -lean_object* v_val_1464_; lean_object* v___x_1466_; uint8_t v_isShared_1467_; uint8_t v_isSharedCheck_1471_; -v_val_1464_ = lean_ctor_get(v_x_1462_, 0); -v_isSharedCheck_1471_ = !lean_is_exclusive(v_x_1462_); -if (v_isSharedCheck_1471_ == 0) +lean_inc(v_a_1379_); +lean_dec(v_x_1368_); +v___x_1381_ = lean_box(0); +v_isShared_1382_ = v_isSharedCheck_1388_; +goto v_resetjp_1380_; +} +v_resetjp_1380_: { -v___x_1466_ = v_x_1462_; -v_isShared_1467_ = v_isSharedCheck_1471_; -goto v_resetjp_1465_; +lean_object* v___x_1383_; lean_object* v___x_1385_; +v___x_1383_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1383_, 0, v_a_1379_); +if (v_isShared_1382_ == 0) +{ +lean_ctor_set(v___x_1381_, 0, v___x_1383_); +v___x_1385_ = v___x_1381_; +goto v_reusejp_1384_; } else { -lean_inc(v_val_1464_); -lean_dec(v_x_1462_); -v___x_1466_ = lean_box(0); -v_isShared_1467_ = v_isSharedCheck_1471_; -goto v_resetjp_1465_; +lean_object* v_reuseFailAlloc_1387_; +v_reuseFailAlloc_1387_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1387_, 0, v___x_1383_); +v___x_1385_ = v_reuseFailAlloc_1387_; +goto v_reusejp_1384_; } -v_resetjp_1465_: +v_reusejp_1384_: { -lean_object* v___x_1469_; -if (v_isShared_1467_ == 0) +lean_object* v___x_1386_; +v___x_1386_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1386_, 0, v___x_1385_); +return v___x_1386_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__0___boxed(lean_object* v_x_1389_, lean_object* v___y_1390_){ +_start: { -v___x_1469_ = v___x_1466_; -goto v_reusejp_1468_; +lean_object* v_res_1391_; +v_res_1391_ = l_Std_Http_Body_Stream_tryRecvBody___lam__0(v_x_1389_); +return v_res_1391_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1(lean_object* v___y_1396_, lean_object* v___f_1397_, lean_object* v_x_1398_){ +_start: +{ +if (lean_obj_tag(v_x_1398_) == 0) +{ +lean_object* v_a_1400_; lean_object* v___x_1402_; uint8_t v_isShared_1403_; uint8_t v_isSharedCheck_1408_; +lean_dec_ref(v___f_1397_); +v_a_1400_ = lean_ctor_get(v_x_1398_, 0); +v_isSharedCheck_1408_ = !lean_is_exclusive(v_x_1398_); +if (v_isSharedCheck_1408_ == 0) +{ +v___x_1402_ = v_x_1398_; +v_isShared_1403_ = v_isSharedCheck_1408_; +goto v_resetjp_1401_; } else { -lean_object* v_reuseFailAlloc_1470_; -v_reuseFailAlloc_1470_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1470_, 0, v_val_1464_); -v___x_1469_ = v_reuseFailAlloc_1470_; -goto v_reusejp_1468_; +lean_inc(v_a_1400_); +lean_dec(v_x_1398_); +v___x_1402_ = lean_box(0); +v_isShared_1403_ = v_isSharedCheck_1408_; +goto v_resetjp_1401_; } -v_reusejp_1468_: +v_resetjp_1401_: { -return v___x_1469_; +lean_object* v___x_1405_; +if (v_isShared_1403_ == 0) +{ +v___x_1405_ = v___x_1402_; +goto v_reusejp_1404_; +} +else +{ +lean_object* v_reuseFailAlloc_1407_; +v_reuseFailAlloc_1407_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1407_, 0, v_a_1400_); +v___x_1405_ = v_reuseFailAlloc_1407_; +goto v_reusejp_1404_; +} +v_reusejp_1404_: +{ +lean_object* v___x_1406_; +v___x_1406_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1406_, 0, v___x_1405_); +return v___x_1406_; +} +} +} +else +{ +lean_object* v_a_1409_; uint8_t v___x_1410_; +v_a_1409_ = lean_ctor_get(v_x_1398_, 0); +lean_inc(v_a_1409_); +lean_dec_ref(v_x_1398_); +v___x_1410_ = lean_unbox(v_a_1409_); +lean_dec(v_a_1409_); +if (v___x_1410_ == 0) +{ +lean_object* v___x_1411_; +lean_dec_ref(v___f_1397_); +v___x_1411_ = ((lean_object*)(l_Std_Http_Body_Stream_tryRecvBody___lam__1___closed__1)); +return v___x_1411_; +} +else +{ +lean_object* v___x_1412_; lean_object* v___x_1413_; uint8_t v___x_1414_; lean_object* v___x_1415_; +v___x_1412_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0(v___y_1396_); +v___x_1413_ = lean_unsigned_to_nat(0u); +v___x_1414_ = 0; +v___x_1415_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1413_, v___x_1414_, v___x_1412_, v___f_1397_); +return v___x_1415_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__1___boxed(lean_object* v___y_1416_, lean_object* v___f_1417_, lean_object* v_x_1418_, lean_object* v___y_1419_){ +_start: +{ +lean_object* v_res_1420_; +v_res_1420_ = l_Std_Http_Body_Stream_tryRecvBody___lam__1(v___y_1416_, v___f_1417_, v_x_1418_); +lean_dec(v___y_1416_); +return v_res_1420_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__2(lean_object* v___y_1421_, lean_object* v___f_1422_, lean_object* v_x_1423_){ +_start: +{ +if (lean_obj_tag(v_x_1423_) == 0) +{ +lean_object* v_a_1425_; lean_object* v___x_1427_; uint8_t v_isShared_1428_; uint8_t v_isSharedCheck_1433_; +lean_dec_ref(v___f_1422_); +v_a_1425_ = lean_ctor_get(v_x_1423_, 0); +v_isSharedCheck_1433_ = !lean_is_exclusive(v_x_1423_); +if (v_isSharedCheck_1433_ == 0) +{ +v___x_1427_ = v_x_1423_; +v_isShared_1428_ = v_isSharedCheck_1433_; +goto v_resetjp_1426_; +} +else +{ +lean_inc(v_a_1425_); +lean_dec(v_x_1423_); +v___x_1427_ = lean_box(0); +v_isShared_1428_ = v_isSharedCheck_1433_; +goto v_resetjp_1426_; +} +v_resetjp_1426_: +{ +lean_object* v___x_1430_; +if (v_isShared_1428_ == 0) +{ +v___x_1430_ = v___x_1427_; +goto v_reusejp_1429_; +} +else +{ +lean_object* v_reuseFailAlloc_1432_; +v_reuseFailAlloc_1432_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1432_, 0, v_a_1425_); +v___x_1430_ = v_reuseFailAlloc_1432_; +goto v_reusejp_1429_; +} +v_reusejp_1429_: +{ +lean_object* v___x_1431_; +v___x_1431_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1431_, 0, v___x_1430_); +return v___x_1431_; +} +} +} +else +{ +lean_object* v___x_1434_; lean_object* v___x_1435_; uint8_t v___x_1436_; lean_object* v___x_1437_; +lean_dec_ref(v_x_1423_); +v___x_1434_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0(v___y_1421_); +v___x_1435_ = lean_unsigned_to_nat(0u); +v___x_1436_ = 0; +v___x_1437_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1435_, v___x_1436_, v___x_1434_, v___f_1422_); +return v___x_1437_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__2___boxed(lean_object* v___y_1438_, lean_object* v___f_1439_, lean_object* v_x_1440_, lean_object* v___y_1441_){ +_start: +{ +lean_object* v_res_1442_; +v_res_1442_ = l_Std_Http_Body_Stream_tryRecvBody___lam__2(v___y_1438_, v___f_1439_, v_x_1440_); +lean_dec(v___y_1438_); +return v_res_1442_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__3(lean_object* v___f_1443_, lean_object* v___y_1444_){ +_start: +{ +lean_object* v___x_1446_; lean_object* v___f_1447_; lean_object* v___f_1448_; lean_object* v___x_1449_; uint8_t v___x_1450_; lean_object* v___x_1451_; +v___x_1446_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_1444_); +lean_inc_n(v___y_1444_, 2); +v___f_1447_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_tryRecvBody___lam__1___boxed), 4, 2); +lean_closure_set(v___f_1447_, 0, v___y_1444_); +lean_closure_set(v___f_1447_, 1, v___f_1443_); +v___f_1448_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_tryRecvBody___lam__2___boxed), 4, 2); +lean_closure_set(v___f_1448_, 0, v___y_1444_); +lean_closure_set(v___f_1448_, 1, v___f_1447_); +v___x_1449_ = lean_unsigned_to_nat(0u); +v___x_1450_ = 0; +v___x_1451_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1449_, v___x_1450_, v___x_1446_, v___f_1448_); +return v___x_1451_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___lam__3___boxed(lean_object* v___f_1452_, lean_object* v___y_1453_, lean_object* v___y_1454_){ +_start: +{ +lean_object* v_res_1455_; +v_res_1455_ = l_Std_Http_Body_Stream_tryRecvBody___lam__3(v___f_1452_, v___y_1453_); +lean_dec(v___y_1453_); +return v_res_1455_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody(lean_object* v_stream_1459_){ +_start: +{ +lean_object* v___f_1461_; lean_object* v___x_1462_; +v___f_1461_ = ((lean_object*)(l_Std_Http_Body_Stream_tryRecvBody___closed__1)); +v___x_1462_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_1459_, v___f_1461_); +return v___x_1462_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_tryRecvBody___boxed(lean_object* v_stream_1463_, lean_object* v_a_1464_){ +_start: +{ +lean_object* v_res_1465_; +v_res_1465_ = l_Std_Http_Body_Stream_tryRecvBody(v_stream_1463_); +return v_res_1465_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(lean_object* v_a_1466_){ +_start: +{ +lean_object* v___x_1468_; lean_object* v_pendingProducer_1469_; lean_object* v_pendingConsumer_1470_; lean_object* v_interestWaiter_1471_; uint8_t v_closed_1472_; lean_object* v_knownSize_1473_; lean_object* v_pendingIncompleteChunk_1474_; lean_object* v___x_1476_; uint8_t v_isShared_1477_; uint8_t v_isSharedCheck_1500_; +v___x_1468_ = lean_st_ref_get(v_a_1466_); +v_pendingProducer_1469_ = lean_ctor_get(v___x_1468_, 0); +v_pendingConsumer_1470_ = lean_ctor_get(v___x_1468_, 1); +v_interestWaiter_1471_ = lean_ctor_get(v___x_1468_, 2); +v_closed_1472_ = lean_ctor_get_uint8(v___x_1468_, sizeof(void*)*5); +v_knownSize_1473_ = lean_ctor_get(v___x_1468_, 3); +v_pendingIncompleteChunk_1474_ = lean_ctor_get(v___x_1468_, 4); +v_isSharedCheck_1500_ = !lean_is_exclusive(v___x_1468_); +if (v_isSharedCheck_1500_ == 0) +{ +v___x_1476_ = v___x_1468_; +v_isShared_1477_ = v_isSharedCheck_1500_; +goto v_resetjp_1475_; +} +else +{ +lean_inc(v_pendingIncompleteChunk_1474_); +lean_inc(v_knownSize_1473_); +lean_inc(v_interestWaiter_1471_); +lean_inc(v_pendingConsumer_1470_); +lean_inc(v_pendingProducer_1469_); +lean_dec(v___x_1468_); +v___x_1476_ = lean_box(0); +v_isShared_1477_ = v_isSharedCheck_1500_; +goto v_resetjp_1475_; +} +v_resetjp_1475_: +{ +lean_object* v___y_1479_; lean_object* v_interestWaiter_1480_; lean_object* v___y_1481_; lean_object* v_pendingConsumer_1487_; lean_object* v___y_1488_; +if (lean_obj_tag(v_pendingConsumer_1470_) == 1) +{ +lean_object* v_val_1494_; +v_val_1494_ = lean_ctor_get(v_pendingConsumer_1470_, 0); +if (lean_obj_tag(v_val_1494_) == 1) +{ +lean_object* v_finished_1495_; lean_object* v_finished_1496_; lean_object* v___x_1497_; uint8_t v___x_1498_; +v_finished_1495_ = lean_ctor_get(v_val_1494_, 0); +v_finished_1496_ = lean_ctor_get(v_finished_1495_, 0); +v___x_1497_ = lean_st_ref_get(v_finished_1496_); +v___x_1498_ = lean_unbox(v___x_1497_); +lean_dec(v___x_1497_); +if (v___x_1498_ == 0) +{ +v_pendingConsumer_1487_ = v_pendingConsumer_1470_; +v___y_1488_ = v_a_1466_; +goto v___jp_1486_; +} +else +{ +lean_object* v___x_1499_; +lean_dec_ref(v_pendingConsumer_1470_); +v___x_1499_ = lean_box(0); +v_pendingConsumer_1487_ = v___x_1499_; +v___y_1488_ = v_a_1466_; +goto v___jp_1486_; +} +} +else +{ +v_pendingConsumer_1487_ = v_pendingConsumer_1470_; +v___y_1488_ = v_a_1466_; +goto v___jp_1486_; +} +} +else +{ +v_pendingConsumer_1487_ = v_pendingConsumer_1470_; +v___y_1488_ = v_a_1466_; +goto v___jp_1486_; +} +v___jp_1478_: +{ +lean_object* v___x_1483_; +if (v_isShared_1477_ == 0) +{ +lean_ctor_set(v___x_1476_, 2, v_interestWaiter_1480_); +lean_ctor_set(v___x_1476_, 1, v___y_1479_); +v___x_1483_ = v___x_1476_; +goto v_reusejp_1482_; +} +else +{ +lean_object* v_reuseFailAlloc_1485_; +v_reuseFailAlloc_1485_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1485_, 0, v_pendingProducer_1469_); +lean_ctor_set(v_reuseFailAlloc_1485_, 1, v___y_1479_); +lean_ctor_set(v_reuseFailAlloc_1485_, 2, v_interestWaiter_1480_); +lean_ctor_set(v_reuseFailAlloc_1485_, 3, v_knownSize_1473_); +lean_ctor_set(v_reuseFailAlloc_1485_, 4, v_pendingIncompleteChunk_1474_); +lean_ctor_set_uint8(v_reuseFailAlloc_1485_, sizeof(void*)*5, v_closed_1472_); +v___x_1483_ = v_reuseFailAlloc_1485_; +goto v_reusejp_1482_; +} +v_reusejp_1482_: +{ +lean_object* v___x_1484_; +v___x_1484_ = lean_st_ref_set(v___y_1481_, v___x_1483_); +return v___x_1484_; +} +} +v___jp_1486_: +{ +if (lean_obj_tag(v_interestWaiter_1471_) == 0) +{ +v___y_1479_ = v_pendingConsumer_1487_; +v_interestWaiter_1480_ = v_interestWaiter_1471_; +v___y_1481_ = v___y_1488_; +goto v___jp_1478_; +} +else +{ +lean_object* v_val_1489_; lean_object* v_finished_1490_; lean_object* v___x_1491_; uint8_t v___x_1492_; +v_val_1489_ = lean_ctor_get(v_interestWaiter_1471_, 0); +v_finished_1490_ = lean_ctor_get(v_val_1489_, 0); +v___x_1491_ = lean_st_ref_get(v_finished_1490_); +v___x_1492_ = lean_unbox(v___x_1491_); +lean_dec(v___x_1491_); +if (v___x_1492_ == 0) +{ +v___y_1479_ = v_pendingConsumer_1487_; +v_interestWaiter_1480_ = v_interestWaiter_1471_; +v___y_1481_ = v___y_1488_; +goto v___jp_1478_; +} +else +{ +lean_object* v___x_1493_; +lean_dec_ref(v_interestWaiter_1471_); +v___x_1493_ = lean_box(0); +v___y_1479_ = v_pendingConsumer_1487_; +v_interestWaiter_1480_ = v___x_1493_; +v___y_1481_ = v___y_1488_; +goto v___jp_1478_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0___boxed(lean_object* v_a_1501_, lean_object* v___y_1502_){ +_start: +{ +lean_object* v_res_1503_; +v_res_1503_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v_a_1501_); +lean_dec(v_a_1501_); +return v_res_1503_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(lean_object* v_a_1504_){ +_start: +{ +lean_object* v___x_1506_; lean_object* v_pendingProducer_1507_; +v___x_1506_ = lean_st_ref_get(v_a_1504_); +v_pendingProducer_1507_ = lean_ctor_get(v___x_1506_, 0); +lean_inc(v_pendingProducer_1507_); +if (lean_obj_tag(v_pendingProducer_1507_) == 1) +{ +lean_object* v_val_1508_; lean_object* v___x_1510_; uint8_t v_isShared_1511_; uint8_t v_isSharedCheck_1536_; +v_val_1508_ = lean_ctor_get(v_pendingProducer_1507_, 0); +v_isSharedCheck_1536_ = !lean_is_exclusive(v_pendingProducer_1507_); +if (v_isSharedCheck_1536_ == 0) +{ +v___x_1510_ = v_pendingProducer_1507_; +v_isShared_1511_ = v_isSharedCheck_1536_; +goto v_resetjp_1509_; +} +else +{ +lean_inc(v_val_1508_); +lean_dec(v_pendingProducer_1507_); +v___x_1510_ = lean_box(0); +v_isShared_1511_ = v_isSharedCheck_1536_; +goto v_resetjp_1509_; +} +v_resetjp_1509_: +{ +lean_object* v_pendingConsumer_1512_; lean_object* v_interestWaiter_1513_; uint8_t v_closed_1514_; lean_object* v_knownSize_1515_; lean_object* v_pendingIncompleteChunk_1516_; lean_object* v___x_1518_; uint8_t v_isShared_1519_; uint8_t v_isSharedCheck_1534_; +v_pendingConsumer_1512_ = lean_ctor_get(v___x_1506_, 1); +v_interestWaiter_1513_ = lean_ctor_get(v___x_1506_, 2); +v_closed_1514_ = lean_ctor_get_uint8(v___x_1506_, sizeof(void*)*5); +v_knownSize_1515_ = lean_ctor_get(v___x_1506_, 3); +v_pendingIncompleteChunk_1516_ = lean_ctor_get(v___x_1506_, 4); +v_isSharedCheck_1534_ = !lean_is_exclusive(v___x_1506_); +if (v_isSharedCheck_1534_ == 0) +{ +lean_object* v_unused_1535_; +v_unused_1535_ = lean_ctor_get(v___x_1506_, 0); +lean_dec(v_unused_1535_); +v___x_1518_ = v___x_1506_; +v_isShared_1519_ = v_isSharedCheck_1534_; +goto v_resetjp_1517_; +} +else +{ +lean_inc(v_pendingIncompleteChunk_1516_); +lean_inc(v_knownSize_1515_); +lean_inc(v_interestWaiter_1513_); +lean_inc(v_pendingConsumer_1512_); +lean_dec(v___x_1506_); +v___x_1518_ = lean_box(0); +v_isShared_1519_ = v_isSharedCheck_1534_; +goto v_resetjp_1517_; +} +v_resetjp_1517_: +{ +lean_object* v_chunk_1520_; lean_object* v_done_1521_; lean_object* v___x_1522_; lean_object* v___x_1523_; lean_object* v___x_1525_; +v_chunk_1520_ = lean_ctor_get(v_val_1508_, 0); +lean_inc_ref(v_chunk_1520_); +v_done_1521_ = lean_ctor_get(v_val_1508_, 1); +lean_inc(v_done_1521_); +lean_dec(v_val_1508_); +v___x_1522_ = lean_box(0); +v___x_1523_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_decreaseKnownSize(v_knownSize_1515_, v_chunk_1520_); +if (v_isShared_1519_ == 0) +{ +lean_ctor_set(v___x_1518_, 3, v___x_1523_); +lean_ctor_set(v___x_1518_, 0, v___x_1522_); +v___x_1525_ = v___x_1518_; +goto v_reusejp_1524_; +} +else +{ +lean_object* v_reuseFailAlloc_1533_; +v_reuseFailAlloc_1533_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1533_, 0, v___x_1522_); +lean_ctor_set(v_reuseFailAlloc_1533_, 1, v_pendingConsumer_1512_); +lean_ctor_set(v_reuseFailAlloc_1533_, 2, v_interestWaiter_1513_); +lean_ctor_set(v_reuseFailAlloc_1533_, 3, v___x_1523_); +lean_ctor_set(v_reuseFailAlloc_1533_, 4, v_pendingIncompleteChunk_1516_); +lean_ctor_set_uint8(v_reuseFailAlloc_1533_, sizeof(void*)*5, v_closed_1514_); +v___x_1525_ = v_reuseFailAlloc_1533_; +goto v_reusejp_1524_; +} +v_reusejp_1524_: +{ +lean_object* v___x_1526_; uint8_t v___x_1527_; lean_object* v___x_1528_; lean_object* v___x_1529_; lean_object* v___x_1531_; +v___x_1526_ = lean_st_ref_set(v_a_1504_, v___x_1525_); +v___x_1527_ = 1; +v___x_1528_ = lean_box(v___x_1527_); +v___x_1529_ = lean_io_promise_resolve(v___x_1528_, v_done_1521_); +lean_dec(v_done_1521_); +if (v_isShared_1511_ == 0) +{ +lean_ctor_set(v___x_1510_, 0, v_chunk_1520_); +v___x_1531_ = v___x_1510_; +goto v_reusejp_1530_; +} +else +{ +lean_object* v_reuseFailAlloc_1532_; +v_reuseFailAlloc_1532_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1532_, 0, v_chunk_1520_); +v___x_1531_ = v_reuseFailAlloc_1532_; +goto v_reusejp_1530_; +} +v_reusejp_1530_: +{ +return v___x_1531_; +} +} +} +} +} +else +{ +lean_object* v___x_1537_; +lean_dec(v_pendingProducer_1507_); +lean_dec(v___x_1506_); +v___x_1537_ = lean_box(0); +return v___x_1537_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1___boxed(lean_object* v_a_1538_, lean_object* v___y_1539_){ +_start: +{ +lean_object* v_res_1540_; +v_res_1540_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(v_a_1538_); +lean_dec(v_a_1538_); +return v_res_1540_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(lean_object* v_a_1541_){ +_start: +{ +lean_object* v___x_1543_; lean_object* v_interestWaiter_1544_; +v___x_1543_ = lean_st_ref_get(v_a_1541_); +v_interestWaiter_1544_ = lean_ctor_get(v___x_1543_, 2); +lean_inc(v_interestWaiter_1544_); +if (lean_obj_tag(v_interestWaiter_1544_) == 1) +{ +lean_object* v_pendingProducer_1545_; lean_object* v_pendingConsumer_1546_; uint8_t v_closed_1547_; lean_object* v_knownSize_1548_; lean_object* v_pendingIncompleteChunk_1549_; lean_object* v___x_1551_; uint8_t v_isShared_1552_; uint8_t v_isSharedCheck_1561_; +v_pendingProducer_1545_ = lean_ctor_get(v___x_1543_, 0); +v_pendingConsumer_1546_ = lean_ctor_get(v___x_1543_, 1); +v_closed_1547_ = lean_ctor_get_uint8(v___x_1543_, sizeof(void*)*5); +v_knownSize_1548_ = lean_ctor_get(v___x_1543_, 3); +v_pendingIncompleteChunk_1549_ = lean_ctor_get(v___x_1543_, 4); +v_isSharedCheck_1561_ = !lean_is_exclusive(v___x_1543_); +if (v_isSharedCheck_1561_ == 0) +{ +lean_object* v_unused_1562_; +v_unused_1562_ = lean_ctor_get(v___x_1543_, 2); +lean_dec(v_unused_1562_); +v___x_1551_ = v___x_1543_; +v_isShared_1552_ = v_isSharedCheck_1561_; +goto v_resetjp_1550_; +} +else +{ +lean_inc(v_pendingIncompleteChunk_1549_); +lean_inc(v_knownSize_1548_); +lean_inc(v_pendingConsumer_1546_); +lean_inc(v_pendingProducer_1545_); +lean_dec(v___x_1543_); +v___x_1551_ = lean_box(0); +v_isShared_1552_ = v_isSharedCheck_1561_; +goto v_resetjp_1550_; +} +v_resetjp_1550_: +{ +lean_object* v_val_1553_; uint8_t v___x_1554_; uint8_t v___x_1555_; lean_object* v___x_1556_; lean_object* v___x_1558_; +v_val_1553_ = lean_ctor_get(v_interestWaiter_1544_, 0); +lean_inc(v_val_1553_); +lean_dec_ref(v_interestWaiter_1544_); +v___x_1554_ = 1; +v___x_1555_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1553_, v___x_1554_); +lean_dec(v_val_1553_); +v___x_1556_ = lean_box(0); +if (v_isShared_1552_ == 0) +{ +lean_ctor_set(v___x_1551_, 2, v___x_1556_); +v___x_1558_ = v___x_1551_; +goto v_reusejp_1557_; +} +else +{ +lean_object* v_reuseFailAlloc_1560_; +v_reuseFailAlloc_1560_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1560_, 0, v_pendingProducer_1545_); +lean_ctor_set(v_reuseFailAlloc_1560_, 1, v_pendingConsumer_1546_); +lean_ctor_set(v_reuseFailAlloc_1560_, 2, v___x_1556_); +lean_ctor_set(v_reuseFailAlloc_1560_, 3, v_knownSize_1548_); +lean_ctor_set(v_reuseFailAlloc_1560_, 4, v_pendingIncompleteChunk_1549_); +lean_ctor_set_uint8(v_reuseFailAlloc_1560_, sizeof(void*)*5, v_closed_1547_); +v___x_1558_ = v_reuseFailAlloc_1560_; +goto v_reusejp_1557_; +} +v_reusejp_1557_: +{ +lean_object* v___x_1559_; +v___x_1559_ = lean_st_ref_set(v_a_1541_, v___x_1558_); +return v___x_1559_; +} +} +} +else +{ +lean_object* v___x_1563_; +lean_dec(v_interestWaiter_1544_); +lean_dec(v___x_1543_); +v___x_1563_ = lean_box(0); +return v___x_1563_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2___boxed(lean_object* v_a_1564_, lean_object* v___y_1565_){ +_start: +{ +lean_object* v_res_1566_; +v_res_1566_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(v_a_1564_); +lean_dec(v_a_1564_); +return v_res_1566_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(lean_object* v_mutex_1567_, lean_object* v_k_1568_){ +_start: +{ +lean_object* v_ref_1570_; lean_object* v_mutex_1571_; lean_object* v___x_1572_; lean_object* v___x_1573_; lean_object* v___x_1574_; +v_ref_1570_ = lean_ctor_get(v_mutex_1567_, 0); +lean_inc(v_ref_1570_); +v_mutex_1571_ = lean_ctor_get(v_mutex_1567_, 1); +lean_inc(v_mutex_1571_); +lean_dec_ref(v_mutex_1567_); +v___x_1572_ = lean_io_basemutex_lock(v_mutex_1571_); +v___x_1573_ = lean_apply_2(v_k_1568_, v_ref_1570_, lean_box(0)); +v___x_1574_ = lean_io_basemutex_unlock(v_mutex_1571_); +lean_dec(v_mutex_1571_); +return v___x_1573_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg___boxed(lean_object* v_mutex_1575_, lean_object* v_k_1576_, lean_object* v___y_1577_){ +_start: +{ +lean_object* v_res_1578_; +v_res_1578_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_mutex_1575_, v_k_1576_); +return v_res_1578_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3(lean_object* v_00_u03b1_1579_, lean_object* v_00_u03b2_1580_, lean_object* v_mutex_1581_, lean_object* v_k_1582_){ +_start: +{ +lean_object* v___x_1584_; +v___x_1584_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_mutex_1581_, v_k_1582_); +return v___x_1584_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___boxed(lean_object* v_00_u03b1_1585_, lean_object* v_00_u03b2_1586_, lean_object* v_mutex_1587_, lean_object* v_k_1588_, lean_object* v___y_1589_){ +_start: +{ +lean_object* v_res_1590_; +v_res_1590_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3(v_00_u03b1_1585_, v_00_u03b2_1586_, v_mutex_1587_, v_k_1588_); +return v_res_1590_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__0(lean_object* v_x_1596_){ +_start: +{ +if (lean_obj_tag(v_x_1596_) == 0) +{ +lean_object* v___x_1597_; +v___x_1597_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__0___closed__2)); +return v___x_1597_; +} +else +{ +lean_object* v_val_1598_; lean_object* v___x_1600_; uint8_t v_isShared_1601_; uint8_t v_isSharedCheck_1605_; +v_val_1598_ = lean_ctor_get(v_x_1596_, 0); +v_isSharedCheck_1605_ = !lean_is_exclusive(v_x_1596_); +if (v_isSharedCheck_1605_ == 0) +{ +v___x_1600_ = v_x_1596_; +v_isShared_1601_ = v_isSharedCheck_1605_; +goto v_resetjp_1599_; +} +else +{ +lean_inc(v_val_1598_); +lean_dec(v_x_1596_); +v___x_1600_ = lean_box(0); +v_isShared_1601_ = v_isSharedCheck_1605_; +goto v_resetjp_1599_; +} +v_resetjp_1599_: +{ +lean_object* v___x_1603_; +if (v_isShared_1601_ == 0) +{ +v___x_1603_ = v___x_1600_; +goto v_reusejp_1602_; +} +else +{ +lean_object* v_reuseFailAlloc_1604_; +v_reuseFailAlloc_1604_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1604_, 0, v_val_1598_); +v___x_1603_ = v_reuseFailAlloc_1604_; +goto v_reusejp_1602_; +} +v_reusejp_1602_: +{ +return v___x_1603_; } } } @@ -4653,3689 +5075,3288 @@ return v___x_1469_; static lean_object* _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3(void){ _start: { -lean_object* v___x_1477_; lean_object* v___x_1478_; -v___x_1477_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__2)); -v___x_1478_ = lean_task_pure(v___x_1477_); -return v___x_1478_; +lean_object* v___x_1611_; lean_object* v___x_1612_; +v___x_1611_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__2)); +v___x_1612_ = lean_task_pure(v___x_1611_); +return v___x_1612_; } } static lean_object* _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4(void){ _start: { -lean_object* v___x_1479_; lean_object* v___x_1480_; -v___x_1479_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__0)); -v___x_1480_ = lean_task_pure(v___x_1479_); -return v___x_1480_; +lean_object* v___x_1613_; lean_object* v___x_1614_; +v___x_1613_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__0)); +v___x_1614_ = lean_task_pure(v___x_1613_); +return v___x_1614_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1(lean_object* v___f_1481_, lean_object* v___y_1482_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1(lean_object* v___f_1615_, lean_object* v___y_1616_){ _start: { -lean_object* v___x_1484_; lean_object* v___x_1485_; -v___x_1484_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v___y_1482_); -v___x_1485_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(v___y_1482_); -if (lean_obj_tag(v___x_1485_) == 1) +lean_object* v___x_1618_; lean_object* v___x_1619_; +v___x_1618_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v___y_1616_); +v___x_1619_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__1(v___y_1616_); +if (lean_obj_tag(v___x_1619_) == 1) { -lean_object* v___x_1486_; lean_object* v___x_1487_; -lean_dec_ref(v___f_1481_); -v___x_1486_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1486_, 0, v___x_1485_); -v___x_1487_ = lean_task_pure(v___x_1486_); -return v___x_1487_; -} -else -{ -lean_object* v___x_1488_; uint8_t v_closed_1489_; -lean_dec(v___x_1485_); -v___x_1488_ = lean_st_ref_get(v___y_1482_); -v_closed_1489_ = lean_ctor_get_uint8(v___x_1488_, sizeof(void*)*5); -if (v_closed_1489_ == 0) -{ -lean_object* v_pendingConsumer_1490_; -v_pendingConsumer_1490_ = lean_ctor_get(v___x_1488_, 1); -lean_inc(v_pendingConsumer_1490_); -if (lean_obj_tag(v_pendingConsumer_1490_) == 0) -{ -lean_object* v_pendingProducer_1491_; lean_object* v_interestWaiter_1492_; lean_object* v_knownSize_1493_; lean_object* v_pendingIncompleteChunk_1494_; lean_object* v___x_1496_; uint8_t v_isShared_1497_; uint8_t v_isSharedCheck_1510_; -v_pendingProducer_1491_ = lean_ctor_get(v___x_1488_, 0); -v_interestWaiter_1492_ = lean_ctor_get(v___x_1488_, 2); -v_knownSize_1493_ = lean_ctor_get(v___x_1488_, 3); -v_pendingIncompleteChunk_1494_ = lean_ctor_get(v___x_1488_, 4); -v_isSharedCheck_1510_ = !lean_is_exclusive(v___x_1488_); -if (v_isSharedCheck_1510_ == 0) -{ -lean_object* v_unused_1511_; -v_unused_1511_ = lean_ctor_get(v___x_1488_, 1); -lean_dec(v_unused_1511_); -v___x_1496_ = v___x_1488_; -v_isShared_1497_ = v_isSharedCheck_1510_; -goto v_resetjp_1495_; -} -else -{ -lean_inc(v_pendingIncompleteChunk_1494_); -lean_inc(v_knownSize_1493_); -lean_inc(v_interestWaiter_1492_); -lean_inc(v_pendingProducer_1491_); -lean_dec(v___x_1488_); -v___x_1496_ = lean_box(0); -v_isShared_1497_ = v_isSharedCheck_1510_; -goto v_resetjp_1495_; -} -v_resetjp_1495_: -{ -lean_object* v___x_1498_; lean_object* v___x_1499_; lean_object* v___x_1500_; lean_object* v___x_1502_; -v___x_1498_ = lean_io_promise_new(); -lean_inc(v___x_1498_); -v___x_1499_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1499_, 0, v___x_1498_); -v___x_1500_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1500_, 0, v___x_1499_); -if (v_isShared_1497_ == 0) -{ -lean_ctor_set(v___x_1496_, 1, v___x_1500_); -v___x_1502_ = v___x_1496_; -goto v_reusejp_1501_; -} -else -{ -lean_object* v_reuseFailAlloc_1509_; -v_reuseFailAlloc_1509_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_1509_, 0, v_pendingProducer_1491_); -lean_ctor_set(v_reuseFailAlloc_1509_, 1, v___x_1500_); -lean_ctor_set(v_reuseFailAlloc_1509_, 2, v_interestWaiter_1492_); -lean_ctor_set(v_reuseFailAlloc_1509_, 3, v_knownSize_1493_); -lean_ctor_set(v_reuseFailAlloc_1509_, 4, v_pendingIncompleteChunk_1494_); -lean_ctor_set_uint8(v_reuseFailAlloc_1509_, sizeof(void*)*5, v_closed_1489_); -v___x_1502_ = v_reuseFailAlloc_1509_; -goto v_reusejp_1501_; -} -v_reusejp_1501_: -{ -lean_object* v___x_1503_; lean_object* v___x_1504_; uint8_t v___x_1505_; lean_object* v___x_1506_; lean_object* v___x_1507_; lean_object* v___x_1508_; -v___x_1503_ = lean_st_ref_set(v___y_1482_, v___x_1502_); -v___x_1504_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(v___y_1482_); -v___x_1505_ = 1; -v___x_1506_ = lean_io_promise_result_opt(v___x_1498_); -lean_dec(v___x_1498_); -v___x_1507_ = lean_unsigned_to_nat(0u); -v___x_1508_ = lean_task_map(v___f_1481_, v___x_1506_, v___x_1507_, v___x_1505_); -return v___x_1508_; -} -} -} -else -{ -lean_object* v___x_1512_; -lean_dec_ref(v_pendingConsumer_1490_); -lean_dec(v___x_1488_); -lean_dec_ref(v___f_1481_); -v___x_1512_ = lean_obj_once(&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3, &l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3_once, _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3); -return v___x_1512_; -} -} -else -{ -lean_object* v___x_1513_; -lean_dec(v___x_1488_); -lean_dec_ref(v___f_1481_); -v___x_1513_ = lean_obj_once(&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4, &l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4_once, _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4); -return v___x_1513_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___boxed(lean_object* v___f_1514_, lean_object* v___y_1515_, lean_object* v___y_1516_){ -_start: -{ -lean_object* v_res_1517_; -v_res_1517_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1(v___f_1514_, v___y_1515_); -lean_dec(v___y_1515_); -return v_res_1517_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(lean_object* v_stream_1521_){ -_start: -{ -lean_object* v___f_1523_; lean_object* v___x_1524_; -v___f_1523_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___closed__1)); -v___x_1524_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_stream_1521_, v___f_1523_); -return v___x_1524_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___boxed(lean_object* v_stream_1525_, lean_object* v_a_1526_){ -_start: -{ -lean_object* v_res_1527_; -v_res_1527_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(v_stream_1525_); -return v_res_1527_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___lam__0(lean_object* v_x_1528_){ -_start: -{ -if (lean_obj_tag(v_x_1528_) == 0) -{ -lean_object* v_a_1530_; lean_object* v___x_1532_; uint8_t v_isShared_1533_; uint8_t v_isSharedCheck_1538_; -v_a_1530_ = lean_ctor_get(v_x_1528_, 0); -v_isSharedCheck_1538_ = !lean_is_exclusive(v_x_1528_); -if (v_isSharedCheck_1538_ == 0) -{ -v___x_1532_ = v_x_1528_; -v_isShared_1533_ = v_isSharedCheck_1538_; -goto v_resetjp_1531_; -} -else -{ -lean_inc(v_a_1530_); -lean_dec(v_x_1528_); -v___x_1532_ = lean_box(0); -v_isShared_1533_ = v_isSharedCheck_1538_; -goto v_resetjp_1531_; -} -v_resetjp_1531_: -{ -lean_object* v___x_1535_; -if (v_isShared_1533_ == 0) -{ -v___x_1535_ = v___x_1532_; -goto v_reusejp_1534_; -} -else -{ -lean_object* v_reuseFailAlloc_1537_; -v_reuseFailAlloc_1537_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1537_, 0, v_a_1530_); -v___x_1535_ = v_reuseFailAlloc_1537_; -goto v_reusejp_1534_; -} -v_reusejp_1534_: -{ -lean_object* v___x_1536_; -v___x_1536_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1536_, 0, v___x_1535_); -return v___x_1536_; -} -} -} -else -{ -lean_object* v_a_1539_; lean_object* v___x_1540_; -v_a_1539_ = lean_ctor_get(v_x_1528_, 0); -lean_inc(v_a_1539_); -lean_dec_ref(v_x_1528_); -v___x_1540_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1540_, 0, v_a_1539_); -return v___x_1540_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___lam__0___boxed(lean_object* v_x_1541_, lean_object* v___y_1542_){ -_start: -{ -lean_object* v_res_1543_; -v_res_1543_ = l_Std_Http_Body_Stream_recv___lam__0(v_x_1541_); -return v_res_1543_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv(lean_object* v_stream_1545_){ -_start: -{ -lean_object* v___x_1547_; lean_object* v___f_1548_; lean_object* v___x_1549_; lean_object* v___x_1550_; lean_object* v___x_1551_; uint8_t v___x_1552_; lean_object* v___x_1553_; -v___x_1547_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(v_stream_1545_); -v___f_1548_ = ((lean_object*)(l_Std_Http_Body_Stream_recv___closed__0)); -v___x_1549_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1549_, 0, v___x_1547_); -v___x_1550_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1550_, 0, v___x_1549_); -v___x_1551_ = lean_unsigned_to_nat(0u); -v___x_1552_ = 0; -v___x_1553_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1551_, v___x_1552_, v___x_1550_, v___f_1548_); -return v___x_1553_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___boxed(lean_object* v_stream_1554_, lean_object* v_a_1555_){ -_start: -{ -lean_object* v_res_1556_; -v_res_1556_ = l_Std_Http_Body_Stream_recv(v_stream_1554_); -return v_res_1556_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0(uint8_t v___x_1557_, lean_object* v_knownSize_1558_, lean_object* v_____r_1559_, lean_object* v___y_1560_){ -_start: -{ -lean_object* v___x_1562_; lean_object* v___x_1563_; lean_object* v___x_1564_; lean_object* v___x_1565_; lean_object* v___x_1566_; -v___x_1562_ = lean_box(0); -v___x_1563_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v___x_1563_, 0, v___x_1562_); -lean_ctor_set(v___x_1563_, 1, v___x_1562_); -lean_ctor_set(v___x_1563_, 2, v___x_1562_); -lean_ctor_set(v___x_1563_, 3, v_knownSize_1558_); -lean_ctor_set(v___x_1563_, 4, v___x_1562_); -lean_ctor_set_uint8(v___x_1563_, sizeof(void*)*5, v___x_1557_); -v___x_1564_ = lean_st_ref_set(v___y_1560_, v___x_1563_); -v___x_1565_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1565_, 0, v___x_1564_); -v___x_1566_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1566_, 0, v___x_1565_); -return v___x_1566_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0___boxed(lean_object* v___x_1567_, lean_object* v_knownSize_1568_, lean_object* v_____r_1569_, lean_object* v___y_1570_, lean_object* v___y_1571_){ -_start: -{ -uint8_t v___x_1931__boxed_1572_; lean_object* v_res_1573_; -v___x_1931__boxed_1572_ = lean_unbox(v___x_1567_); -v_res_1573_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0(v___x_1931__boxed_1572_, v_knownSize_1568_, v_____r_1569_, v___y_1570_); -lean_dec(v___y_1570_); -return v_res_1573_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1(lean_object* v___f_1574_, lean_object* v___y_1575_, lean_object* v_x_1576_){ -_start: -{ -if (lean_obj_tag(v_x_1576_) == 0) -{ -lean_object* v___x_1578_; -lean_dec_ref(v___f_1574_); -v___x_1578_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1578_, 0, v_x_1576_); -return v___x_1578_; -} -else -{ -lean_object* v_a_1579_; lean_object* v___x_1580_; -v_a_1579_ = lean_ctor_get(v_x_1576_, 0); -lean_inc(v_a_1579_); -lean_dec_ref(v_x_1576_); -lean_inc(v___y_1575_); -v___x_1580_ = lean_apply_3(v___f_1574_, v_a_1579_, v___y_1575_, lean_box(0)); -return v___x_1580_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed(lean_object* v___f_1581_, lean_object* v___y_1582_, lean_object* v_x_1583_, lean_object* v___y_1584_){ -_start: -{ -lean_object* v_res_1585_; -v_res_1585_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1(v___f_1581_, v___y_1582_, v_x_1583_); -lean_dec(v___y_1582_); -return v_res_1585_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2(lean_object* v_pendingProducer_1586_, uint8_t v_closed_1587_, lean_object* v___f_1588_, lean_object* v_____r_1589_, lean_object* v___y_1590_){ -_start: -{ -if (lean_obj_tag(v_pendingProducer_1586_) == 1) -{ -lean_object* v_val_1592_; lean_object* v_done_1593_; lean_object* v___x_1594_; lean_object* v___x_1595_; lean_object* v___f_1596_; lean_object* v___x_1597_; lean_object* v___x_1598_; lean_object* v___x_1599_; -v_val_1592_ = lean_ctor_get(v_pendingProducer_1586_, 0); -v_done_1593_ = lean_ctor_get(v_val_1592_, 1); -v___x_1594_ = lean_box(v_closed_1587_); -v___x_1595_ = lean_io_promise_resolve(v___x_1594_, v_done_1593_); -lean_inc(v___y_1590_); -v___f_1596_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); -lean_closure_set(v___f_1596_, 0, v___f_1588_); -lean_closure_set(v___f_1596_, 1, v___y_1590_); -v___x_1597_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -v___x_1598_ = lean_unsigned_to_nat(0u); -v___x_1599_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1598_, v_closed_1587_, v___x_1597_, v___f_1596_); -return v___x_1599_; -} -else -{ -lean_object* v___x_1600_; lean_object* v___x_1601_; -v___x_1600_ = lean_box(0); -lean_inc(v___y_1590_); -v___x_1601_ = lean_apply_3(v___f_1588_, v___x_1600_, v___y_1590_, lean_box(0)); -return v___x_1601_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2___boxed(lean_object* v_pendingProducer_1602_, lean_object* v_closed_1603_, lean_object* v___f_1604_, lean_object* v_____r_1605_, lean_object* v___y_1606_, lean_object* v___y_1607_){ -_start: -{ -uint8_t v_closed_boxed_1608_; lean_object* v_res_1609_; -v_closed_boxed_1608_ = lean_unbox(v_closed_1603_); -v_res_1609_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2(v_pendingProducer_1602_, v_closed_boxed_1608_, v___f_1604_, v_____r_1605_, v___y_1606_); -lean_dec(v___y_1606_); -lean_dec(v_pendingProducer_1602_); -return v_res_1609_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(lean_object* v_interestWaiter_1610_, uint8_t v_closed_1611_, lean_object* v___f_1612_, lean_object* v_____r_1613_, lean_object* v___y_1614_){ -_start: -{ -if (lean_obj_tag(v_interestWaiter_1610_) == 1) -{ -lean_object* v_val_1616_; uint8_t v___x_1617_; lean_object* v___f_1618_; lean_object* v___x_1619_; lean_object* v___x_1620_; lean_object* v___x_1621_; -v_val_1616_ = lean_ctor_get(v_interestWaiter_1610_, 0); -v___x_1617_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1616_, v_closed_1611_); -lean_inc(v___y_1614_); -v___f_1618_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); -lean_closure_set(v___f_1618_, 0, v___f_1612_); -lean_closure_set(v___f_1618_, 1, v___y_1614_); -v___x_1619_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -v___x_1620_ = lean_unsigned_to_nat(0u); -v___x_1621_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1620_, v_closed_1611_, v___x_1619_, v___f_1618_); +lean_object* v___x_1620_; lean_object* v___x_1621_; +lean_dec_ref(v___f_1615_); +v___x_1620_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1620_, 0, v___x_1619_); +v___x_1621_ = lean_task_pure(v___x_1620_); return v___x_1621_; } else { -lean_object* v___x_1622_; lean_object* v___x_1623_; -v___x_1622_ = lean_box(0); -lean_inc(v___y_1614_); -v___x_1623_ = lean_apply_3(v___f_1612_, v___x_1622_, v___y_1614_, lean_box(0)); -return v___x_1623_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4___boxed(lean_object* v_interestWaiter_1624_, lean_object* v_closed_1625_, lean_object* v___f_1626_, lean_object* v_____r_1627_, lean_object* v___y_1628_, lean_object* v___y_1629_){ -_start: +lean_object* v___x_1622_; uint8_t v_closed_1623_; +lean_dec(v___x_1619_); +v___x_1622_ = lean_st_ref_get(v___y_1616_); +v_closed_1623_ = lean_ctor_get_uint8(v___x_1622_, sizeof(void*)*5); +if (v_closed_1623_ == 0) { -uint8_t v_closed_boxed_1630_; lean_object* v_res_1631_; -v_closed_boxed_1630_ = lean_unbox(v_closed_1625_); -v_res_1631_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(v_interestWaiter_1624_, v_closed_boxed_1630_, v___f_1626_, v_____r_1627_, v___y_1628_); -lean_dec(v___y_1628_); -lean_dec(v_interestWaiter_1624_); -return v_res_1631_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3(lean_object* v___f_1632_, lean_object* v_a_1633_, lean_object* v_x_1634_){ -_start: +lean_object* v_pendingConsumer_1624_; +v_pendingConsumer_1624_ = lean_ctor_get(v___x_1622_, 1); +lean_inc(v_pendingConsumer_1624_); +if (lean_obj_tag(v_pendingConsumer_1624_) == 0) { -if (lean_obj_tag(v_x_1634_) == 0) +lean_object* v_pendingProducer_1625_; lean_object* v_interestWaiter_1626_; lean_object* v_knownSize_1627_; lean_object* v_pendingIncompleteChunk_1628_; lean_object* v___x_1630_; uint8_t v_isShared_1631_; uint8_t v_isSharedCheck_1644_; +v_pendingProducer_1625_ = lean_ctor_get(v___x_1622_, 0); +v_interestWaiter_1626_ = lean_ctor_get(v___x_1622_, 2); +v_knownSize_1627_ = lean_ctor_get(v___x_1622_, 3); +v_pendingIncompleteChunk_1628_ = lean_ctor_get(v___x_1622_, 4); +v_isSharedCheck_1644_ = !lean_is_exclusive(v___x_1622_); +if (v_isSharedCheck_1644_ == 0) { -lean_object* v___x_1636_; -lean_dec_ref(v___f_1632_); -v___x_1636_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1636_, 0, v_x_1634_); -return v___x_1636_; +lean_object* v_unused_1645_; +v_unused_1645_ = lean_ctor_get(v___x_1622_, 1); +lean_dec(v_unused_1645_); +v___x_1630_ = v___x_1622_; +v_isShared_1631_ = v_isSharedCheck_1644_; +goto v_resetjp_1629_; } else { -lean_object* v_a_1637_; lean_object* v___x_1638_; -v_a_1637_ = lean_ctor_get(v_x_1634_, 0); -lean_inc(v_a_1637_); -lean_dec_ref(v_x_1634_); -lean_inc(v_a_1633_); -v___x_1638_ = lean_apply_3(v___f_1632_, v_a_1637_, v_a_1633_, lean_box(0)); -return v___x_1638_; +lean_inc(v_pendingIncompleteChunk_1628_); +lean_inc(v_knownSize_1627_); +lean_inc(v_interestWaiter_1626_); +lean_inc(v_pendingProducer_1625_); +lean_dec(v___x_1622_); +v___x_1630_ = lean_box(0); +v_isShared_1631_ = v_isSharedCheck_1644_; +goto v_resetjp_1629_; } -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3___boxed(lean_object* v___f_1639_, lean_object* v_a_1640_, lean_object* v_x_1641_, lean_object* v___y_1642_){ -_start: +v_resetjp_1629_: { -lean_object* v_res_1643_; -v_res_1643_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3(v___f_1639_, v_a_1640_, v_x_1641_); -lean_dec(v_a_1640_); -return v_res_1643_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5(lean_object* v_a_1644_, lean_object* v_x_1645_){ -_start: +lean_object* v___x_1632_; lean_object* v___x_1633_; lean_object* v___x_1634_; lean_object* v___x_1636_; +v___x_1632_ = lean_io_promise_new(); +lean_inc(v___x_1632_); +v___x_1633_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1633_, 0, v___x_1632_); +v___x_1634_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1634_, 0, v___x_1633_); +if (v_isShared_1631_ == 0) { -if (lean_obj_tag(v_x_1645_) == 0) -{ -lean_object* v_a_1647_; lean_object* v___x_1649_; uint8_t v_isShared_1650_; uint8_t v_isSharedCheck_1655_; -v_a_1647_ = lean_ctor_get(v_x_1645_, 0); -v_isSharedCheck_1655_ = !lean_is_exclusive(v_x_1645_); -if (v_isSharedCheck_1655_ == 0) -{ -v___x_1649_ = v_x_1645_; -v_isShared_1650_ = v_isSharedCheck_1655_; -goto v_resetjp_1648_; +lean_ctor_set(v___x_1630_, 1, v___x_1634_); +v___x_1636_ = v___x_1630_; +goto v_reusejp_1635_; } else { -lean_inc(v_a_1647_); -lean_dec(v_x_1645_); -v___x_1649_ = lean_box(0); -v_isShared_1650_ = v_isSharedCheck_1655_; -goto v_resetjp_1648_; +lean_object* v_reuseFailAlloc_1643_; +v_reuseFailAlloc_1643_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1643_, 0, v_pendingProducer_1625_); +lean_ctor_set(v_reuseFailAlloc_1643_, 1, v___x_1634_); +lean_ctor_set(v_reuseFailAlloc_1643_, 2, v_interestWaiter_1626_); +lean_ctor_set(v_reuseFailAlloc_1643_, 3, v_knownSize_1627_); +lean_ctor_set(v_reuseFailAlloc_1643_, 4, v_pendingIncompleteChunk_1628_); +lean_ctor_set_uint8(v_reuseFailAlloc_1643_, sizeof(void*)*5, v_closed_1623_); +v___x_1636_ = v_reuseFailAlloc_1643_; +goto v_reusejp_1635_; } -v_resetjp_1648_: +v_reusejp_1635_: { -lean_object* v___x_1652_; -if (v_isShared_1650_ == 0) -{ -v___x_1652_ = v___x_1649_; -goto v_reusejp_1651_; -} -else -{ -lean_object* v_reuseFailAlloc_1654_; -v_reuseFailAlloc_1654_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1654_, 0, v_a_1647_); -v___x_1652_ = v_reuseFailAlloc_1654_; -goto v_reusejp_1651_; -} -v_reusejp_1651_: -{ -lean_object* v___x_1653_; -v___x_1653_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1653_, 0, v___x_1652_); -return v___x_1653_; +lean_object* v___x_1637_; lean_object* v___x_1638_; uint8_t v___x_1639_; lean_object* v___x_1640_; lean_object* v___x_1641_; lean_object* v___x_1642_; +v___x_1637_ = lean_st_ref_set(v___y_1616_, v___x_1636_); +v___x_1638_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__2(v___y_1616_); +v___x_1639_ = 1; +v___x_1640_ = lean_io_promise_result_opt(v___x_1632_); +lean_dec(v___x_1632_); +v___x_1641_ = lean_unsigned_to_nat(0u); +v___x_1642_ = lean_task_map(v___f_1615_, v___x_1640_, v___x_1641_, v___x_1639_); +return v___x_1642_; } } } else { -lean_object* v_a_1656_; uint8_t v_closed_1657_; -v_a_1656_ = lean_ctor_get(v_x_1645_, 0); -lean_inc(v_a_1656_); -lean_dec_ref(v_x_1645_); -v_closed_1657_ = lean_ctor_get_uint8(v_a_1656_, sizeof(void*)*5); -if (v_closed_1657_ == 0) -{ -lean_object* v_pendingProducer_1658_; lean_object* v_pendingConsumer_1659_; lean_object* v_interestWaiter_1660_; lean_object* v_knownSize_1661_; uint8_t v___x_1662_; lean_object* v___x_1663_; lean_object* v___f_1664_; lean_object* v___x_1665_; lean_object* v___f_1666_; lean_object* v___x_1667_; lean_object* v___f_1668_; -v_pendingProducer_1658_ = lean_ctor_get(v_a_1656_, 0); -lean_inc(v_pendingProducer_1658_); -v_pendingConsumer_1659_ = lean_ctor_get(v_a_1656_, 1); -lean_inc(v_pendingConsumer_1659_); -v_interestWaiter_1660_ = lean_ctor_get(v_a_1656_, 2); -lean_inc_n(v_interestWaiter_1660_, 2); -v_knownSize_1661_ = lean_ctor_get(v_a_1656_, 3); -lean_inc(v_knownSize_1661_); -lean_dec(v_a_1656_); -v___x_1662_ = 1; -v___x_1663_ = lean_box(v___x_1662_); -v___f_1664_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0___boxed), 5, 2); -lean_closure_set(v___f_1664_, 0, v___x_1663_); -lean_closure_set(v___f_1664_, 1, v_knownSize_1661_); -v___x_1665_ = lean_box(v_closed_1657_); -v___f_1666_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2___boxed), 6, 3); -lean_closure_set(v___f_1666_, 0, v_pendingProducer_1658_); -lean_closure_set(v___f_1666_, 1, v___x_1665_); -lean_closure_set(v___f_1666_, 2, v___f_1664_); -v___x_1667_ = lean_box(v_closed_1657_); -lean_inc_ref(v___f_1666_); -v___f_1668_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4___boxed), 6, 3); -lean_closure_set(v___f_1668_, 0, v_interestWaiter_1660_); -lean_closure_set(v___f_1668_, 1, v___x_1667_); -lean_closure_set(v___f_1668_, 2, v___f_1666_); -if (lean_obj_tag(v_pendingConsumer_1659_) == 1) -{ -lean_object* v_val_1669_; lean_object* v___x_1670_; uint8_t v___x_1671_; lean_object* v___f_1672_; lean_object* v___x_1673_; lean_object* v___x_1674_; lean_object* v___x_1675_; -lean_dec_ref(v___f_1666_); -lean_dec(v_interestWaiter_1660_); -v_val_1669_ = lean_ctor_get(v_pendingConsumer_1659_, 0); -lean_inc(v_val_1669_); -lean_dec_ref(v_pendingConsumer_1659_); -v___x_1670_ = lean_box(0); -v___x_1671_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_Consumer_resolve(v_val_1669_, v___x_1670_); -lean_dec(v_val_1669_); -lean_inc(v_a_1644_); -v___f_1672_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3___boxed), 4, 2); -lean_closure_set(v___f_1672_, 0, v___f_1668_); -lean_closure_set(v___f_1672_, 1, v_a_1644_); -v___x_1673_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -v___x_1674_ = lean_unsigned_to_nat(0u); -v___x_1675_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1674_, v_closed_1657_, v___x_1673_, v___f_1672_); -return v___x_1675_; -} -else -{ -lean_object* v___x_1676_; lean_object* v___x_1677_; -lean_dec_ref(v___f_1668_); -lean_dec(v_pendingConsumer_1659_); -v___x_1676_ = lean_box(0); -v___x_1677_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(v_interestWaiter_1660_, v_closed_1657_, v___f_1666_, v___x_1676_, v_a_1644_); -lean_dec(v_interestWaiter_1660_); -return v___x_1677_; +lean_object* v___x_1646_; +lean_dec_ref(v_pendingConsumer_1624_); +lean_dec(v___x_1622_); +lean_dec_ref(v___f_1615_); +v___x_1646_ = lean_obj_once(&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3, &l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3_once, _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__3); +return v___x_1646_; } } else { -lean_object* v___x_1678_; -lean_dec(v_a_1656_); -v___x_1678_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_1678_; +lean_object* v___x_1647_; +lean_dec(v___x_1622_); +lean_dec_ref(v___f_1615_); +v___x_1647_ = lean_obj_once(&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4, &l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4_once, _init_l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___closed__4); +return v___x_1647_; } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5___boxed(lean_object* v_a_1679_, lean_object* v_x_1680_, lean_object* v___y_1681_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1___boxed(lean_object* v___f_1648_, lean_object* v___y_1649_, lean_object* v___y_1650_){ _start: { -lean_object* v_res_1682_; -v_res_1682_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5(v_a_1679_, v_x_1680_); -lean_dec(v_a_1679_); -return v_res_1682_; +lean_object* v_res_1651_; +v_res_1651_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___lam__1(v___f_1648_, v___y_1649_); +lean_dec(v___y_1649_); +return v_res_1651_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0(lean_object* v_a_1683_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(lean_object* v_stream_1655_){ _start: { -lean_object* v___x_1685_; lean_object* v___f_1686_; lean_object* v___x_1687_; lean_object* v___x_1688_; lean_object* v___x_1689_; uint8_t v___x_1690_; lean_object* v___x_1691_; -v___x_1685_ = lean_st_ref_get(v_a_1683_); -lean_inc(v_a_1683_); -v___f_1686_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5___boxed), 3, 1); -lean_closure_set(v___f_1686_, 0, v_a_1683_); -v___x_1687_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1687_, 0, v___x_1685_); -v___x_1688_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1688_, 0, v___x_1687_); -v___x_1689_ = lean_unsigned_to_nat(0u); -v___x_1690_ = 0; -v___x_1691_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1689_, v___x_1690_, v___x_1688_, v___f_1686_); -return v___x_1691_; +lean_object* v___f_1657_; lean_object* v___x_1658_; +v___f_1657_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___closed__1)); +v___x_1658_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_stream_1655_, v___f_1657_); +return v___x_1658_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___boxed(lean_object* v_a_1692_, lean_object* v___y_1693_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27___boxed(lean_object* v_stream_1659_, lean_object* v_a_1660_){ _start: { -lean_object* v_res_1694_; -v_res_1694_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0(v_a_1692_); -lean_dec(v_a_1692_); -return v_res_1694_; +lean_object* v_res_1661_; +v_res_1661_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(v_stream_1659_); +return v_res_1661_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_close(lean_object* v_stream_1696_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___lam__0(lean_object* v_x_1662_){ _start: { -lean_object* v___f_1698_; lean_object* v___x_1699_; -v___f_1698_ = ((lean_object*)(l_Std_Http_Body_Stream_close___closed__0)); -v___x_1699_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_1696_, v___f_1698_); -return v___x_1699_; +if (lean_obj_tag(v_x_1662_) == 0) +{ +lean_object* v_a_1664_; lean_object* v___x_1666_; uint8_t v_isShared_1667_; uint8_t v_isSharedCheck_1672_; +v_a_1664_ = lean_ctor_get(v_x_1662_, 0); +v_isSharedCheck_1672_ = !lean_is_exclusive(v_x_1662_); +if (v_isSharedCheck_1672_ == 0) +{ +v___x_1666_ = v_x_1662_; +v_isShared_1667_ = v_isSharedCheck_1672_; +goto v_resetjp_1665_; +} +else +{ +lean_inc(v_a_1664_); +lean_dec(v_x_1662_); +v___x_1666_ = lean_box(0); +v_isShared_1667_ = v_isSharedCheck_1672_; +goto v_resetjp_1665_; +} +v_resetjp_1665_: +{ +lean_object* v___x_1669_; +if (v_isShared_1667_ == 0) +{ +v___x_1669_ = v___x_1666_; +goto v_reusejp_1668_; +} +else +{ +lean_object* v_reuseFailAlloc_1671_; +v_reuseFailAlloc_1671_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1671_, 0, v_a_1664_); +v___x_1669_ = v_reuseFailAlloc_1671_; +goto v_reusejp_1668_; +} +v_reusejp_1668_: +{ +lean_object* v___x_1670_; +v___x_1670_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1670_, 0, v___x_1669_); +return v___x_1670_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_close___boxed(lean_object* v_stream_1700_, lean_object* v_a_1701_){ +} +else +{ +lean_object* v_a_1673_; lean_object* v___x_1674_; +v_a_1673_ = lean_ctor_get(v_x_1662_, 0); +lean_inc(v_a_1673_); +lean_dec_ref(v_x_1662_); +v___x_1674_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1674_, 0, v_a_1673_); +return v___x_1674_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___lam__0___boxed(lean_object* v_x_1675_, lean_object* v___y_1676_){ _start: { -lean_object* v_res_1702_; -v_res_1702_ = l_Std_Http_Body_Stream_close(v_stream_1700_); -return v_res_1702_; +lean_object* v_res_1677_; +v_res_1677_ = l_Std_Http_Body_Stream_recv___lam__0(v_x_1675_); +return v_res_1677_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___lam__0(lean_object* v_____do__lift_1703_, lean_object* v___y_1704_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv(lean_object* v_stream_1679_){ _start: { -uint8_t v_closed_1706_; lean_object* v___x_1707_; lean_object* v___x_1708_; lean_object* v___x_1709_; -v_closed_1706_ = lean_ctor_get_uint8(v_____do__lift_1703_, sizeof(void*)*5); -v___x_1707_ = lean_box(v_closed_1706_); -v___x_1708_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1708_, 0, v___x_1707_); -v___x_1709_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1709_, 0, v___x_1708_); -return v___x_1709_; +lean_object* v___x_1681_; lean_object* v___f_1682_; lean_object* v___x_1683_; lean_object* v___x_1684_; lean_object* v___x_1685_; uint8_t v___x_1686_; lean_object* v___x_1687_; +v___x_1681_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27(v_stream_1679_); +v___f_1682_ = ((lean_object*)(l_Std_Http_Body_Stream_recv___closed__0)); +v___x_1683_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1683_, 0, v___x_1681_); +v___x_1684_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1684_, 0, v___x_1683_); +v___x_1685_ = lean_unsigned_to_nat(0u); +v___x_1686_ = 0; +v___x_1687_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1685_, v___x_1686_, v___x_1684_, v___f_1682_); +return v___x_1687_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___lam__0___boxed(lean_object* v_____do__lift_1710_, lean_object* v___y_1711_, lean_object* v___y_1712_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recv___boxed(lean_object* v_stream_1688_, lean_object* v_a_1689_){ _start: { -lean_object* v_res_1713_; -v_res_1713_ = l_Std_Http_Body_Stream_isClosed___lam__0(v_____do__lift_1710_, v___y_1711_); -lean_dec(v___y_1711_); -lean_dec_ref(v_____do__lift_1710_); -return v_res_1713_; +lean_object* v_res_1690_; +v_res_1690_ = l_Std_Http_Body_Stream_recv(v_stream_1688_); +return v_res_1690_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0(uint8_t v___x_1691_, lean_object* v_knownSize_1692_, lean_object* v_____r_1693_, lean_object* v___y_1694_){ +_start: +{ +lean_object* v___x_1696_; lean_object* v___x_1697_; lean_object* v___x_1698_; lean_object* v___x_1699_; lean_object* v___x_1700_; +v___x_1696_ = lean_box(0); +v___x_1697_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v___x_1697_, 0, v___x_1696_); +lean_ctor_set(v___x_1697_, 1, v___x_1696_); +lean_ctor_set(v___x_1697_, 2, v___x_1696_); +lean_ctor_set(v___x_1697_, 3, v_knownSize_1692_); +lean_ctor_set(v___x_1697_, 4, v___x_1696_); +lean_ctor_set_uint8(v___x_1697_, sizeof(void*)*5, v___x_1691_); +v___x_1698_ = lean_st_ref_set(v___y_1694_, v___x_1697_); +v___x_1699_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1699_, 0, v___x_1698_); +v___x_1700_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1700_, 0, v___x_1699_); +return v___x_1700_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0___boxed(lean_object* v___x_1701_, lean_object* v_knownSize_1702_, lean_object* v_____r_1703_, lean_object* v___y_1704_, lean_object* v___y_1705_){ +_start: +{ +uint8_t v___x_1931__boxed_1706_; lean_object* v_res_1707_; +v___x_1931__boxed_1706_ = lean_unbox(v___x_1701_); +v_res_1707_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0(v___x_1931__boxed_1706_, v_knownSize_1702_, v_____r_1703_, v___y_1704_); +lean_dec(v___y_1704_); +return v_res_1707_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1(lean_object* v___f_1708_, lean_object* v___y_1709_, lean_object* v_x_1710_){ +_start: +{ +if (lean_obj_tag(v_x_1710_) == 0) +{ +lean_object* v___x_1712_; +lean_dec_ref(v___f_1708_); +v___x_1712_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1712_, 0, v_x_1710_); +return v___x_1712_; +} +else +{ +lean_object* v_a_1713_; lean_object* v___x_1714_; +v_a_1713_ = lean_ctor_get(v_x_1710_, 0); +lean_inc(v_a_1713_); +lean_dec_ref(v_x_1710_); +lean_inc(v___y_1709_); +v___x_1714_ = lean_apply_3(v___f_1708_, v_a_1713_, v___y_1709_, lean_box(0)); +return v___x_1714_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed(lean_object* v___f_1715_, lean_object* v___y_1716_, lean_object* v_x_1717_, lean_object* v___y_1718_){ +_start: +{ +lean_object* v_res_1719_; +v_res_1719_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1(v___f_1715_, v___y_1716_, v_x_1717_); +lean_dec(v___y_1716_); +return v_res_1719_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2(lean_object* v_pendingProducer_1720_, uint8_t v_closed_1721_, lean_object* v___f_1722_, lean_object* v_____r_1723_, lean_object* v___y_1724_){ +_start: +{ +if (lean_obj_tag(v_pendingProducer_1720_) == 1) +{ +lean_object* v_val_1726_; lean_object* v_done_1727_; lean_object* v___x_1728_; lean_object* v___x_1729_; lean_object* v___f_1730_; lean_object* v___x_1731_; lean_object* v___x_1732_; lean_object* v___x_1733_; +v_val_1726_ = lean_ctor_get(v_pendingProducer_1720_, 0); +v_done_1727_ = lean_ctor_get(v_val_1726_, 1); +v___x_1728_ = lean_box(v_closed_1721_); +v___x_1729_ = lean_io_promise_resolve(v___x_1728_, v_done_1727_); +lean_inc(v___y_1724_); +v___f_1730_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); +lean_closure_set(v___f_1730_, 0, v___f_1722_); +lean_closure_set(v___f_1730_, 1, v___y_1724_); +v___x_1731_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +v___x_1732_ = lean_unsigned_to_nat(0u); +v___x_1733_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1732_, v_closed_1721_, v___x_1731_, v___f_1730_); +return v___x_1733_; +} +else +{ +lean_object* v___x_1734_; lean_object* v___x_1735_; +v___x_1734_ = lean_box(0); +lean_inc(v___y_1724_); +v___x_1735_ = lean_apply_3(v___f_1722_, v___x_1734_, v___y_1724_, lean_box(0)); +return v___x_1735_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2___boxed(lean_object* v_pendingProducer_1736_, lean_object* v_closed_1737_, lean_object* v___f_1738_, lean_object* v_____r_1739_, lean_object* v___y_1740_, lean_object* v___y_1741_){ +_start: +{ +uint8_t v_closed_boxed_1742_; lean_object* v_res_1743_; +v_closed_boxed_1742_ = lean_unbox(v_closed_1737_); +v_res_1743_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2(v_pendingProducer_1736_, v_closed_boxed_1742_, v___f_1738_, v_____r_1739_, v___y_1740_); +lean_dec(v___y_1740_); +lean_dec(v_pendingProducer_1736_); +return v_res_1743_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(lean_object* v_interestWaiter_1744_, uint8_t v_closed_1745_, lean_object* v___f_1746_, lean_object* v_____r_1747_, lean_object* v___y_1748_){ +_start: +{ +if (lean_obj_tag(v_interestWaiter_1744_) == 1) +{ +lean_object* v_val_1750_; uint8_t v___x_1751_; lean_object* v___f_1752_; lean_object* v___x_1753_; lean_object* v___x_1754_; lean_object* v___x_1755_; +v_val_1750_ = lean_ctor_get(v_interestWaiter_1744_, 0); +v___x_1751_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1750_, v_closed_1745_); +lean_inc(v___y_1748_); +v___f_1752_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); +lean_closure_set(v___f_1752_, 0, v___f_1746_); +lean_closure_set(v___f_1752_, 1, v___y_1748_); +v___x_1753_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +v___x_1754_ = lean_unsigned_to_nat(0u); +v___x_1755_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1754_, v_closed_1745_, v___x_1753_, v___f_1752_); +return v___x_1755_; +} +else +{ +lean_object* v___x_1756_; lean_object* v___x_1757_; +v___x_1756_ = lean_box(0); +lean_inc(v___y_1748_); +v___x_1757_ = lean_apply_3(v___f_1746_, v___x_1756_, v___y_1748_, lean_box(0)); +return v___x_1757_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4___boxed(lean_object* v_interestWaiter_1758_, lean_object* v_closed_1759_, lean_object* v___f_1760_, lean_object* v_____r_1761_, lean_object* v___y_1762_, lean_object* v___y_1763_){ +_start: +{ +uint8_t v_closed_boxed_1764_; lean_object* v_res_1765_; +v_closed_boxed_1764_ = lean_unbox(v_closed_1759_); +v_res_1765_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(v_interestWaiter_1758_, v_closed_boxed_1764_, v___f_1760_, v_____r_1761_, v___y_1762_); +lean_dec(v___y_1762_); +lean_dec(v_interestWaiter_1758_); +return v_res_1765_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3(lean_object* v___f_1766_, lean_object* v_a_1767_, lean_object* v_x_1768_){ +_start: +{ +if (lean_obj_tag(v_x_1768_) == 0) +{ +lean_object* v___x_1770_; +lean_dec_ref(v___f_1766_); +v___x_1770_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1770_, 0, v_x_1768_); +return v___x_1770_; +} +else +{ +lean_object* v_a_1771_; lean_object* v___x_1772_; +v_a_1771_ = lean_ctor_get(v_x_1768_, 0); +lean_inc(v_a_1771_); +lean_dec_ref(v_x_1768_); +lean_inc(v_a_1767_); +v___x_1772_ = lean_apply_3(v___f_1766_, v_a_1771_, v_a_1767_, lean_box(0)); +return v___x_1772_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3___boxed(lean_object* v___f_1773_, lean_object* v_a_1774_, lean_object* v_x_1775_, lean_object* v___y_1776_){ +_start: +{ +lean_object* v_res_1777_; +v_res_1777_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3(v___f_1773_, v_a_1774_, v_x_1775_); +lean_dec(v_a_1774_); +return v_res_1777_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5(lean_object* v_a_1778_, lean_object* v_x_1779_){ +_start: +{ +if (lean_obj_tag(v_x_1779_) == 0) +{ +lean_object* v_a_1781_; lean_object* v___x_1783_; uint8_t v_isShared_1784_; uint8_t v_isSharedCheck_1789_; +v_a_1781_ = lean_ctor_get(v_x_1779_, 0); +v_isSharedCheck_1789_ = !lean_is_exclusive(v_x_1779_); +if (v_isSharedCheck_1789_ == 0) +{ +v___x_1783_ = v_x_1779_; +v_isShared_1784_ = v_isSharedCheck_1789_; +goto v_resetjp_1782_; +} +else +{ +lean_inc(v_a_1781_); +lean_dec(v_x_1779_); +v___x_1783_ = lean_box(0); +v_isShared_1784_ = v_isSharedCheck_1789_; +goto v_resetjp_1782_; +} +v_resetjp_1782_: +{ +lean_object* v___x_1786_; +if (v_isShared_1784_ == 0) +{ +v___x_1786_ = v___x_1783_; +goto v_reusejp_1785_; +} +else +{ +lean_object* v_reuseFailAlloc_1788_; +v_reuseFailAlloc_1788_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1788_, 0, v_a_1781_); +v___x_1786_ = v_reuseFailAlloc_1788_; +goto v_reusejp_1785_; +} +v_reusejp_1785_: +{ +lean_object* v___x_1787_; +v___x_1787_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1787_, 0, v___x_1786_); +return v___x_1787_; +} +} +} +else +{ +lean_object* v_a_1790_; uint8_t v_closed_1791_; +v_a_1790_ = lean_ctor_get(v_x_1779_, 0); +lean_inc(v_a_1790_); +lean_dec_ref(v_x_1779_); +v_closed_1791_ = lean_ctor_get_uint8(v_a_1790_, sizeof(void*)*5); +if (v_closed_1791_ == 0) +{ +lean_object* v_pendingProducer_1792_; lean_object* v_pendingConsumer_1793_; lean_object* v_interestWaiter_1794_; lean_object* v_knownSize_1795_; uint8_t v___x_1796_; lean_object* v___x_1797_; lean_object* v___f_1798_; lean_object* v___x_1799_; lean_object* v___f_1800_; lean_object* v___x_1801_; lean_object* v___f_1802_; +v_pendingProducer_1792_ = lean_ctor_get(v_a_1790_, 0); +lean_inc(v_pendingProducer_1792_); +v_pendingConsumer_1793_ = lean_ctor_get(v_a_1790_, 1); +lean_inc(v_pendingConsumer_1793_); +v_interestWaiter_1794_ = lean_ctor_get(v_a_1790_, 2); +lean_inc_n(v_interestWaiter_1794_, 2); +v_knownSize_1795_ = lean_ctor_get(v_a_1790_, 3); +lean_inc(v_knownSize_1795_); +lean_dec(v_a_1790_); +v___x_1796_ = 1; +v___x_1797_ = lean_box(v___x_1796_); +v___f_1798_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__0___boxed), 5, 2); +lean_closure_set(v___f_1798_, 0, v___x_1797_); +lean_closure_set(v___f_1798_, 1, v_knownSize_1795_); +v___x_1799_ = lean_box(v_closed_1791_); +v___f_1800_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__2___boxed), 6, 3); +lean_closure_set(v___f_1800_, 0, v_pendingProducer_1792_); +lean_closure_set(v___f_1800_, 1, v___x_1799_); +lean_closure_set(v___f_1800_, 2, v___f_1798_); +v___x_1801_ = lean_box(v_closed_1791_); +lean_inc_ref(v___f_1800_); +v___f_1802_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4___boxed), 6, 3); +lean_closure_set(v___f_1802_, 0, v_interestWaiter_1794_); +lean_closure_set(v___f_1802_, 1, v___x_1801_); +lean_closure_set(v___f_1802_, 2, v___f_1800_); +if (lean_obj_tag(v_pendingConsumer_1793_) == 1) +{ +lean_object* v_val_1803_; lean_object* v___x_1804_; uint8_t v___x_1805_; lean_object* v___f_1806_; lean_object* v___x_1807_; lean_object* v___x_1808_; lean_object* v___x_1809_; +lean_dec_ref(v___f_1800_); +lean_dec(v_interestWaiter_1794_); +v_val_1803_ = lean_ctor_get(v_pendingConsumer_1793_, 0); +lean_inc(v_val_1803_); +lean_dec_ref(v_pendingConsumer_1793_); +v___x_1804_ = lean_box(0); +v___x_1805_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_Consumer_resolve(v_val_1803_, v___x_1804_); +lean_dec(v_val_1803_); +lean_inc(v_a_1778_); +v___f_1806_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__3___boxed), 4, 2); +lean_closure_set(v___f_1806_, 0, v___f_1802_); +lean_closure_set(v___f_1806_, 1, v_a_1778_); +v___x_1807_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +v___x_1808_ = lean_unsigned_to_nat(0u); +v___x_1809_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1808_, v_closed_1791_, v___x_1807_, v___f_1806_); +return v___x_1809_; +} +else +{ +lean_object* v___x_1810_; lean_object* v___x_1811_; +lean_dec_ref(v___f_1802_); +lean_dec(v_pendingConsumer_1793_); +v___x_1810_ = lean_box(0); +v___x_1811_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__4(v_interestWaiter_1794_, v_closed_1791_, v___f_1800_, v___x_1810_, v_a_1778_); +lean_dec(v_interestWaiter_1794_); +return v___x_1811_; +} +} +else +{ +lean_object* v___x_1812_; +lean_dec(v_a_1790_); +v___x_1812_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_1812_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5___boxed(lean_object* v_a_1813_, lean_object* v_x_1814_, lean_object* v___y_1815_){ +_start: +{ +lean_object* v_res_1816_; +v_res_1816_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5(v_a_1813_, v_x_1814_); +lean_dec(v_a_1813_); +return v_res_1816_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0(lean_object* v_a_1817_){ +_start: +{ +lean_object* v___x_1819_; lean_object* v___f_1820_; lean_object* v___x_1821_; lean_object* v___x_1822_; lean_object* v___x_1823_; uint8_t v___x_1824_; lean_object* v___x_1825_; +v___x_1819_ = lean_st_ref_get(v_a_1817_); +lean_inc(v_a_1817_); +v___f_1820_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__5___boxed), 3, 1); +lean_closure_set(v___f_1820_, 0, v_a_1817_); +v___x_1821_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1821_, 0, v___x_1819_); +v___x_1822_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1822_, 0, v___x_1821_); +v___x_1823_ = lean_unsigned_to_nat(0u); +v___x_1824_ = 0; +v___x_1825_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1823_, v___x_1824_, v___x_1822_, v___f_1820_); +return v___x_1825_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___boxed(lean_object* v_a_1826_, lean_object* v___y_1827_){ +_start: +{ +lean_object* v_res_1828_; +v_res_1828_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0(v_a_1826_); +lean_dec(v_a_1826_); +return v_res_1828_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_close(lean_object* v_stream_1830_){ +_start: +{ +lean_object* v___f_1832_; lean_object* v___x_1833_; +v___f_1832_ = ((lean_object*)(l_Std_Http_Body_Stream_close___closed__0)); +v___x_1833_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_1830_, v___f_1832_); +return v___x_1833_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_close___boxed(lean_object* v_stream_1834_, lean_object* v_a_1835_){ +_start: +{ +lean_object* v_res_1836_; +v_res_1836_ = l_Std_Http_Body_Stream_close(v_stream_1834_); +return v_res_1836_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___lam__0(lean_object* v_____do__lift_1837_, lean_object* v___y_1838_){ +_start: +{ +uint8_t v_closed_1840_; lean_object* v___x_1841_; lean_object* v___x_1842_; lean_object* v___x_1843_; +v_closed_1840_ = lean_ctor_get_uint8(v_____do__lift_1837_, sizeof(void*)*5); +v___x_1841_ = lean_box(v_closed_1840_); +v___x_1842_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1842_, 0, v___x_1841_); +v___x_1843_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1843_, 0, v___x_1842_); +return v___x_1843_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___lam__0___boxed(lean_object* v_____do__lift_1844_, lean_object* v___y_1845_, lean_object* v___y_1846_){ +_start: +{ +lean_object* v_res_1847_; +v_res_1847_ = l_Std_Http_Body_Stream_isClosed___lam__0(v_____do__lift_1844_, v___y_1845_); +lean_dec(v___y_1845_); +lean_dec_ref(v_____do__lift_1844_); +return v_res_1847_; } } static lean_object* _init_l_Std_Http_Body_Stream_isClosed___closed__1(void){ _start: { -lean_object* v___x_1715_; -v___x_1715_ = l_Std_Internal_IO_Async_EAsync_instMonad(lean_box(0)); -return v___x_1715_; +lean_object* v___x_1849_; +v___x_1849_ = l_Std_Internal_IO_Async_EAsync_instMonad(lean_box(0)); +return v___x_1849_; } } static lean_object* _init_l_Std_Http_Body_Stream_isClosed___closed__10(void){ _start: { -lean_object* v___f_1731_; lean_object* v___x_1732_; lean_object* v___x_1733_; lean_object* v___x_1734_; -v___f_1731_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__0)); -v___x_1732_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__9)); -v___x_1733_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); -v___x_1734_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); -lean_closure_set(v___x_1734_, 0, lean_box(0)); -lean_closure_set(v___x_1734_, 1, lean_box(0)); -lean_closure_set(v___x_1734_, 2, lean_box(0)); -lean_closure_set(v___x_1734_, 3, v___x_1733_); -lean_closure_set(v___x_1734_, 4, lean_box(0)); -lean_closure_set(v___x_1734_, 5, lean_box(0)); -lean_closure_set(v___x_1734_, 6, v___x_1732_); -lean_closure_set(v___x_1734_, 7, v___f_1731_); -return v___x_1734_; +lean_object* v___f_1865_; lean_object* v___x_1866_; lean_object* v___x_1867_; lean_object* v___x_1868_; +v___f_1865_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__0)); +v___x_1866_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__9)); +v___x_1867_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); +v___x_1868_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_1868_, 0, lean_box(0)); +lean_closure_set(v___x_1868_, 1, lean_box(0)); +lean_closure_set(v___x_1868_, 2, lean_box(0)); +lean_closure_set(v___x_1868_, 3, v___x_1867_); +lean_closure_set(v___x_1868_, 4, lean_box(0)); +lean_closure_set(v___x_1868_, 5, lean_box(0)); +lean_closure_set(v___x_1868_, 6, v___x_1866_); +lean_closure_set(v___x_1868_, 7, v___f_1865_); +return v___x_1868_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed(lean_object* v_stream_1735_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed(lean_object* v_stream_1869_){ _start: { -lean_object* v___x_1737_; lean_object* v___f_1738_; lean_object* v___f_1739_; lean_object* v___x_1740_; lean_object* v___x_26__overap_1741_; lean_object* v___x_1742_; -v___x_1737_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); -v___f_1738_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); -v___f_1739_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); -v___x_1740_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__10, &l_Std_Http_Body_Stream_isClosed___closed__10_once, _init_l_Std_Http_Body_Stream_isClosed___closed__10); -v___x_26__overap_1741_ = l_Std_Mutex_atomically___redArg(v___x_1737_, v___f_1738_, v___f_1739_, v_stream_1735_, v___x_1740_); -v___x_1742_ = lean_apply_1(v___x_26__overap_1741_, lean_box(0)); -return v___x_1742_; +lean_object* v___x_1871_; lean_object* v___f_1872_; lean_object* v___f_1873_; lean_object* v___x_1874_; lean_object* v___x_26__overap_1875_; lean_object* v___x_1876_; +v___x_1871_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); +v___f_1872_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); +v___f_1873_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); +v___x_1874_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__10, &l_Std_Http_Body_Stream_isClosed___closed__10_once, _init_l_Std_Http_Body_Stream_isClosed___closed__10); +v___x_26__overap_1875_ = l_Std_Mutex_atomically___redArg(v___x_1871_, v___f_1872_, v___f_1873_, v_stream_1869_, v___x_1874_); +v___x_1876_ = lean_apply_1(v___x_26__overap_1875_, lean_box(0)); +return v___x_1876_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___boxed(lean_object* v_stream_1743_, lean_object* v_a_1744_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_isClosed___boxed(lean_object* v_stream_1877_, lean_object* v_a_1878_){ _start: { -lean_object* v_res_1745_; -v_res_1745_ = l_Std_Http_Body_Stream_isClosed(v_stream_1743_); -return v_res_1745_; +lean_object* v_res_1879_; +v_res_1879_ = l_Std_Http_Body_Stream_isClosed(v_stream_1877_); +return v_res_1879_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___lam__0(lean_object* v_____do__lift_1746_, lean_object* v___y_1747_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___lam__0(lean_object* v_____do__lift_1880_, lean_object* v___y_1881_){ _start: { -lean_object* v_knownSize_1749_; lean_object* v___x_1750_; lean_object* v___x_1751_; -v_knownSize_1749_ = lean_ctor_get(v_____do__lift_1746_, 3); -lean_inc(v_knownSize_1749_); -v___x_1750_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1750_, 0, v_knownSize_1749_); -v___x_1751_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1751_, 0, v___x_1750_); -return v___x_1751_; +lean_object* v_knownSize_1883_; lean_object* v___x_1884_; lean_object* v___x_1885_; +v_knownSize_1883_ = lean_ctor_get(v_____do__lift_1880_, 3); +lean_inc(v_knownSize_1883_); +v___x_1884_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1884_, 0, v_knownSize_1883_); +v___x_1885_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1885_, 0, v___x_1884_); +return v___x_1885_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___lam__0___boxed(lean_object* v_____do__lift_1752_, lean_object* v___y_1753_, lean_object* v___y_1754_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___lam__0___boxed(lean_object* v_____do__lift_1886_, lean_object* v___y_1887_, lean_object* v___y_1888_){ _start: { -lean_object* v_res_1755_; -v_res_1755_ = l_Std_Http_Body_Stream_getKnownSize___lam__0(v_____do__lift_1752_, v___y_1753_); -lean_dec(v___y_1753_); -lean_dec_ref(v_____do__lift_1752_); -return v_res_1755_; +lean_object* v_res_1889_; +v_res_1889_ = l_Std_Http_Body_Stream_getKnownSize___lam__0(v_____do__lift_1886_, v___y_1887_); +lean_dec(v___y_1887_); +lean_dec_ref(v_____do__lift_1886_); +return v_res_1889_; } } static lean_object* _init_l_Std_Http_Body_Stream_getKnownSize___closed__1(void){ _start: { -lean_object* v___f_1757_; lean_object* v___x_1758_; lean_object* v___x_1759_; lean_object* v___x_1760_; -v___f_1757_ = ((lean_object*)(l_Std_Http_Body_Stream_getKnownSize___closed__0)); -v___x_1758_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__9)); -v___x_1759_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); -v___x_1760_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); -lean_closure_set(v___x_1760_, 0, lean_box(0)); -lean_closure_set(v___x_1760_, 1, lean_box(0)); -lean_closure_set(v___x_1760_, 2, lean_box(0)); -lean_closure_set(v___x_1760_, 3, v___x_1759_); -lean_closure_set(v___x_1760_, 4, lean_box(0)); -lean_closure_set(v___x_1760_, 5, lean_box(0)); -lean_closure_set(v___x_1760_, 6, v___x_1758_); -lean_closure_set(v___x_1760_, 7, v___f_1757_); -return v___x_1760_; +lean_object* v___f_1891_; lean_object* v___x_1892_; lean_object* v___x_1893_; lean_object* v___x_1894_; +v___f_1891_ = ((lean_object*)(l_Std_Http_Body_Stream_getKnownSize___closed__0)); +v___x_1892_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__9)); +v___x_1893_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); +v___x_1894_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_1894_, 0, lean_box(0)); +lean_closure_set(v___x_1894_, 1, lean_box(0)); +lean_closure_set(v___x_1894_, 2, lean_box(0)); +lean_closure_set(v___x_1894_, 3, v___x_1893_); +lean_closure_set(v___x_1894_, 4, lean_box(0)); +lean_closure_set(v___x_1894_, 5, lean_box(0)); +lean_closure_set(v___x_1894_, 6, v___x_1892_); +lean_closure_set(v___x_1894_, 7, v___f_1891_); +return v___x_1894_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize(lean_object* v_stream_1761_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize(lean_object* v_stream_1895_){ _start: { -lean_object* v___x_1763_; lean_object* v___f_1764_; lean_object* v___f_1765_; lean_object* v___x_1766_; lean_object* v___x_26__overap_1767_; lean_object* v___x_1768_; -v___x_1763_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); -v___f_1764_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); -v___f_1765_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); -v___x_1766_ = lean_obj_once(&l_Std_Http_Body_Stream_getKnownSize___closed__1, &l_Std_Http_Body_Stream_getKnownSize___closed__1_once, _init_l_Std_Http_Body_Stream_getKnownSize___closed__1); -v___x_26__overap_1767_ = l_Std_Mutex_atomically___redArg(v___x_1763_, v___f_1764_, v___f_1765_, v_stream_1761_, v___x_1766_); -v___x_1768_ = lean_apply_1(v___x_26__overap_1767_, lean_box(0)); -return v___x_1768_; +lean_object* v___x_1897_; lean_object* v___f_1898_; lean_object* v___f_1899_; lean_object* v___x_1900_; lean_object* v___x_26__overap_1901_; lean_object* v___x_1902_; +v___x_1897_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); +v___f_1898_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); +v___f_1899_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); +v___x_1900_ = lean_obj_once(&l_Std_Http_Body_Stream_getKnownSize___closed__1, &l_Std_Http_Body_Stream_getKnownSize___closed__1_once, _init_l_Std_Http_Body_Stream_getKnownSize___closed__1); +v___x_26__overap_1901_ = l_Std_Mutex_atomically___redArg(v___x_1897_, v___f_1898_, v___f_1899_, v_stream_1895_, v___x_1900_); +v___x_1902_ = lean_apply_1(v___x_26__overap_1901_, lean_box(0)); +return v___x_1902_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___boxed(lean_object* v_stream_1769_, lean_object* v_a_1770_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_getKnownSize___boxed(lean_object* v_stream_1903_, lean_object* v_a_1904_){ _start: { -lean_object* v_res_1771_; -v_res_1771_ = l_Std_Http_Body_Stream_getKnownSize(v_stream_1769_); -return v_res_1771_; +lean_object* v_res_1905_; +v_res_1905_ = l_Std_Http_Body_Stream_getKnownSize(v_stream_1903_); +return v_res_1905_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___lam__0(lean_object* v_size_1772_, lean_object* v___y_1773_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___lam__0(lean_object* v_size_1906_, lean_object* v___y_1907_){ _start: { -lean_object* v___x_1775_; lean_object* v_pendingProducer_1776_; lean_object* v_pendingConsumer_1777_; lean_object* v_interestWaiter_1778_; uint8_t v_closed_1779_; lean_object* v_pendingIncompleteChunk_1780_; lean_object* v___x_1782_; uint8_t v_isShared_1783_; uint8_t v_isSharedCheck_1789_; -v___x_1775_ = lean_st_ref_take(v___y_1773_); -v_pendingProducer_1776_ = lean_ctor_get(v___x_1775_, 0); -v_pendingConsumer_1777_ = lean_ctor_get(v___x_1775_, 1); -v_interestWaiter_1778_ = lean_ctor_get(v___x_1775_, 2); -v_closed_1779_ = lean_ctor_get_uint8(v___x_1775_, sizeof(void*)*5); -v_pendingIncompleteChunk_1780_ = lean_ctor_get(v___x_1775_, 4); -v_isSharedCheck_1789_ = !lean_is_exclusive(v___x_1775_); -if (v_isSharedCheck_1789_ == 0) +lean_object* v___x_1909_; lean_object* v_pendingProducer_1910_; lean_object* v_pendingConsumer_1911_; lean_object* v_interestWaiter_1912_; uint8_t v_closed_1913_; lean_object* v_pendingIncompleteChunk_1914_; lean_object* v___x_1916_; uint8_t v_isShared_1917_; uint8_t v_isSharedCheck_1923_; +v___x_1909_ = lean_st_ref_take(v___y_1907_); +v_pendingProducer_1910_ = lean_ctor_get(v___x_1909_, 0); +v_pendingConsumer_1911_ = lean_ctor_get(v___x_1909_, 1); +v_interestWaiter_1912_ = lean_ctor_get(v___x_1909_, 2); +v_closed_1913_ = lean_ctor_get_uint8(v___x_1909_, sizeof(void*)*5); +v_pendingIncompleteChunk_1914_ = lean_ctor_get(v___x_1909_, 4); +v_isSharedCheck_1923_ = !lean_is_exclusive(v___x_1909_); +if (v_isSharedCheck_1923_ == 0) { -lean_object* v_unused_1790_; -v_unused_1790_ = lean_ctor_get(v___x_1775_, 3); -lean_dec(v_unused_1790_); -v___x_1782_ = v___x_1775_; -v_isShared_1783_ = v_isSharedCheck_1789_; -goto v_resetjp_1781_; +lean_object* v_unused_1924_; +v_unused_1924_ = lean_ctor_get(v___x_1909_, 3); +lean_dec(v_unused_1924_); +v___x_1916_ = v___x_1909_; +v_isShared_1917_ = v_isSharedCheck_1923_; +goto v_resetjp_1915_; } else { -lean_inc(v_pendingIncompleteChunk_1780_); -lean_inc(v_interestWaiter_1778_); -lean_inc(v_pendingConsumer_1777_); -lean_inc(v_pendingProducer_1776_); -lean_dec(v___x_1775_); -v___x_1782_ = lean_box(0); -v_isShared_1783_ = v_isSharedCheck_1789_; -goto v_resetjp_1781_; +lean_inc(v_pendingIncompleteChunk_1914_); +lean_inc(v_interestWaiter_1912_); +lean_inc(v_pendingConsumer_1911_); +lean_inc(v_pendingProducer_1910_); +lean_dec(v___x_1909_); +v___x_1916_ = lean_box(0); +v_isShared_1917_ = v_isSharedCheck_1923_; +goto v_resetjp_1915_; } -v_resetjp_1781_: -{ -lean_object* v___x_1785_; -if (v_isShared_1783_ == 0) -{ -lean_ctor_set(v___x_1782_, 3, v_size_1772_); -v___x_1785_ = v___x_1782_; -goto v_reusejp_1784_; -} -else -{ -lean_object* v_reuseFailAlloc_1788_; -v_reuseFailAlloc_1788_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_1788_, 0, v_pendingProducer_1776_); -lean_ctor_set(v_reuseFailAlloc_1788_, 1, v_pendingConsumer_1777_); -lean_ctor_set(v_reuseFailAlloc_1788_, 2, v_interestWaiter_1778_); -lean_ctor_set(v_reuseFailAlloc_1788_, 3, v_size_1772_); -lean_ctor_set(v_reuseFailAlloc_1788_, 4, v_pendingIncompleteChunk_1780_); -lean_ctor_set_uint8(v_reuseFailAlloc_1788_, sizeof(void*)*5, v_closed_1779_); -v___x_1785_ = v_reuseFailAlloc_1788_; -goto v_reusejp_1784_; -} -v_reusejp_1784_: -{ -lean_object* v___x_1786_; lean_object* v___x_1787_; -v___x_1786_ = lean_st_ref_set(v___y_1773_, v___x_1785_); -v___x_1787_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_1787_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___lam__0___boxed(lean_object* v_size_1791_, lean_object* v___y_1792_, lean_object* v___y_1793_){ -_start: -{ -lean_object* v_res_1794_; -v_res_1794_ = l_Std_Http_Body_Stream_setKnownSize___lam__0(v_size_1791_, v___y_1792_); -lean_dec(v___y_1792_); -return v_res_1794_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize(lean_object* v_stream_1795_, lean_object* v_size_1796_){ -_start: -{ -lean_object* v___f_1798_; lean_object* v___x_1799_; lean_object* v___f_1800_; lean_object* v___f_1801_; lean_object* v___x_22__overap_1802_; lean_object* v___x_1803_; -v___f_1798_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_setKnownSize___lam__0___boxed), 3, 1); -lean_closure_set(v___f_1798_, 0, v_size_1796_); -v___x_1799_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); -v___f_1800_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); -v___f_1801_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); -v___x_22__overap_1802_ = l_Std_Mutex_atomically___redArg(v___x_1799_, v___f_1800_, v___f_1801_, v_stream_1795_, v___f_1798_); -v___x_1803_ = lean_apply_1(v___x_22__overap_1802_, lean_box(0)); -return v___x_1803_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___boxed(lean_object* v_stream_1804_, lean_object* v_size_1805_, lean_object* v_a_1806_){ -_start: -{ -lean_object* v_res_1807_; -v_res_1807_ = l_Std_Http_Body_Stream_setKnownSize(v_stream_1804_, v_size_1805_); -return v_res_1807_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0(lean_object* v_pendingProducer_1808_, lean_object* v_pendingConsumer_1809_, uint8_t v_closed_1810_, lean_object* v_knownSize_1811_, lean_object* v_pendingIncompleteChunk_1812_, lean_object* v_a_1813_, lean_object* v_x_1814_){ -_start: -{ -if (lean_obj_tag(v_x_1814_) == 0) -{ -lean_object* v___x_1816_; -lean_dec(v_pendingIncompleteChunk_1812_); -lean_dec(v_knownSize_1811_); -lean_dec(v_pendingConsumer_1809_); -lean_dec(v_pendingProducer_1808_); -v___x_1816_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1816_, 0, v_x_1814_); -return v___x_1816_; -} -else -{ -lean_object* v___x_1818_; uint8_t v_isShared_1819_; uint8_t v_isSharedCheck_1827_; -v_isSharedCheck_1827_ = !lean_is_exclusive(v_x_1814_); -if (v_isSharedCheck_1827_ == 0) -{ -lean_object* v_unused_1828_; -v_unused_1828_ = lean_ctor_get(v_x_1814_, 0); -lean_dec(v_unused_1828_); -v___x_1818_ = v_x_1814_; -v_isShared_1819_ = v_isSharedCheck_1827_; -goto v_resetjp_1817_; -} -else -{ -lean_dec(v_x_1814_); -v___x_1818_ = lean_box(0); -v_isShared_1819_ = v_isSharedCheck_1827_; -goto v_resetjp_1817_; -} -v_resetjp_1817_: -{ -lean_object* v___x_1820_; lean_object* v___x_1821_; lean_object* v___x_1822_; lean_object* v___x_1824_; -v___x_1820_ = lean_box(0); -v___x_1821_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v___x_1821_, 0, v_pendingProducer_1808_); -lean_ctor_set(v___x_1821_, 1, v_pendingConsumer_1809_); -lean_ctor_set(v___x_1821_, 2, v___x_1820_); -lean_ctor_set(v___x_1821_, 3, v_knownSize_1811_); -lean_ctor_set(v___x_1821_, 4, v_pendingIncompleteChunk_1812_); -lean_ctor_set_uint8(v___x_1821_, sizeof(void*)*5, v_closed_1810_); -v___x_1822_ = lean_st_ref_set(v_a_1813_, v___x_1821_); -if (v_isShared_1819_ == 0) -{ -lean_ctor_set(v___x_1818_, 0, v___x_1822_); -v___x_1824_ = v___x_1818_; -goto v_reusejp_1823_; -} -else -{ -lean_object* v_reuseFailAlloc_1826_; -v_reuseFailAlloc_1826_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1826_, 0, v___x_1822_); -v___x_1824_ = v_reuseFailAlloc_1826_; -goto v_reusejp_1823_; -} -v_reusejp_1823_: -{ -lean_object* v___x_1825_; -v___x_1825_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1825_, 0, v___x_1824_); -return v___x_1825_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0___boxed(lean_object* v_pendingProducer_1829_, lean_object* v_pendingConsumer_1830_, lean_object* v_closed_1831_, lean_object* v_knownSize_1832_, lean_object* v_pendingIncompleteChunk_1833_, lean_object* v_a_1834_, lean_object* v_x_1835_, lean_object* v___y_1836_){ -_start: -{ -uint8_t v_closed_boxed_1837_; lean_object* v_res_1838_; -v_closed_boxed_1837_ = lean_unbox(v_closed_1831_); -v_res_1838_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0(v_pendingProducer_1829_, v_pendingConsumer_1830_, v_closed_boxed_1837_, v_knownSize_1832_, v_pendingIncompleteChunk_1833_, v_a_1834_, v_x_1835_); -lean_dec(v_a_1834_); -return v_res_1838_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1(lean_object* v_a_1839_, lean_object* v_x_1840_){ -_start: -{ -if (lean_obj_tag(v_x_1840_) == 0) -{ -lean_object* v_a_1842_; lean_object* v___x_1844_; uint8_t v_isShared_1845_; uint8_t v_isSharedCheck_1850_; -v_a_1842_ = lean_ctor_get(v_x_1840_, 0); -v_isSharedCheck_1850_ = !lean_is_exclusive(v_x_1840_); -if (v_isSharedCheck_1850_ == 0) -{ -v___x_1844_ = v_x_1840_; -v_isShared_1845_ = v_isSharedCheck_1850_; -goto v_resetjp_1843_; -} -else -{ -lean_inc(v_a_1842_); -lean_dec(v_x_1840_); -v___x_1844_ = lean_box(0); -v_isShared_1845_ = v_isSharedCheck_1850_; -goto v_resetjp_1843_; -} -v_resetjp_1843_: -{ -lean_object* v___x_1847_; -if (v_isShared_1845_ == 0) -{ -v___x_1847_ = v___x_1844_; -goto v_reusejp_1846_; -} -else -{ -lean_object* v_reuseFailAlloc_1849_; -v_reuseFailAlloc_1849_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1849_, 0, v_a_1842_); -v___x_1847_ = v_reuseFailAlloc_1849_; -goto v_reusejp_1846_; -} -v_reusejp_1846_: -{ -lean_object* v___x_1848_; -v___x_1848_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1848_, 0, v___x_1847_); -return v___x_1848_; -} -} -} -else -{ -lean_object* v_a_1851_; lean_object* v_interestWaiter_1852_; -v_a_1851_ = lean_ctor_get(v_x_1840_, 0); -lean_inc(v_a_1851_); -lean_dec_ref(v_x_1840_); -v_interestWaiter_1852_ = lean_ctor_get(v_a_1851_, 2); -lean_inc(v_interestWaiter_1852_); -if (lean_obj_tag(v_interestWaiter_1852_) == 1) -{ -lean_object* v_pendingProducer_1853_; lean_object* v_pendingConsumer_1854_; uint8_t v_closed_1855_; lean_object* v_knownSize_1856_; lean_object* v_pendingIncompleteChunk_1857_; lean_object* v_val_1858_; uint8_t v___x_1859_; uint8_t v___x_1860_; lean_object* v___x_1861_; lean_object* v___f_1862_; lean_object* v___x_1863_; lean_object* v___x_1864_; uint8_t v___x_1865_; lean_object* v___x_1866_; -v_pendingProducer_1853_ = lean_ctor_get(v_a_1851_, 0); -lean_inc(v_pendingProducer_1853_); -v_pendingConsumer_1854_ = lean_ctor_get(v_a_1851_, 1); -lean_inc(v_pendingConsumer_1854_); -v_closed_1855_ = lean_ctor_get_uint8(v_a_1851_, sizeof(void*)*5); -v_knownSize_1856_ = lean_ctor_get(v_a_1851_, 3); -lean_inc(v_knownSize_1856_); -v_pendingIncompleteChunk_1857_ = lean_ctor_get(v_a_1851_, 4); -lean_inc(v_pendingIncompleteChunk_1857_); -lean_dec(v_a_1851_); -v_val_1858_ = lean_ctor_get(v_interestWaiter_1852_, 0); -lean_inc(v_val_1858_); -lean_dec_ref(v_interestWaiter_1852_); -v___x_1859_ = 1; -v___x_1860_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1858_, v___x_1859_); -lean_dec(v_val_1858_); -v___x_1861_ = lean_box(v_closed_1855_); -lean_inc(v_a_1839_); -v___f_1862_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0___boxed), 8, 6); -lean_closure_set(v___f_1862_, 0, v_pendingProducer_1853_); -lean_closure_set(v___f_1862_, 1, v_pendingConsumer_1854_); -lean_closure_set(v___f_1862_, 2, v___x_1861_); -lean_closure_set(v___f_1862_, 3, v_knownSize_1856_); -lean_closure_set(v___f_1862_, 4, v_pendingIncompleteChunk_1857_); -lean_closure_set(v___f_1862_, 5, v_a_1839_); -v___x_1863_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -v___x_1864_ = lean_unsigned_to_nat(0u); -v___x_1865_ = 0; -v___x_1866_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1864_, v___x_1865_, v___x_1863_, v___f_1862_); -return v___x_1866_; -} -else -{ -lean_object* v___x_1867_; -lean_dec(v_interestWaiter_1852_); -lean_dec(v_a_1851_); -v___x_1867_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_1867_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1___boxed(lean_object* v_a_1868_, lean_object* v_x_1869_, lean_object* v___y_1870_){ -_start: -{ -lean_object* v_res_1871_; -v_res_1871_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1(v_a_1868_, v_x_1869_); -lean_dec(v_a_1868_); -return v_res_1871_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(lean_object* v_a_1872_){ -_start: -{ -lean_object* v___x_1874_; lean_object* v___f_1875_; lean_object* v___x_1876_; lean_object* v___x_1877_; lean_object* v___x_1878_; uint8_t v___x_1879_; lean_object* v___x_1880_; -v___x_1874_ = lean_st_ref_get(v_a_1872_); -lean_inc(v_a_1872_); -v___f_1875_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1___boxed), 3, 1); -lean_closure_set(v___f_1875_, 0, v_a_1872_); -v___x_1876_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1876_, 0, v___x_1874_); -v___x_1877_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1877_, 0, v___x_1876_); -v___x_1878_ = lean_unsigned_to_nat(0u); -v___x_1879_ = 0; -v___x_1880_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1878_, v___x_1879_, v___x_1877_, v___f_1875_); -return v___x_1880_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___boxed(lean_object* v_a_1881_, lean_object* v___y_1882_){ -_start: -{ -lean_object* v_res_1883_; -v_res_1883_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(v_a_1881_); -lean_dec(v_a_1881_); -return v_res_1883_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0(lean_object* v_promise_1884_, lean_object* v_x_1885_){ -_start: -{ -if (lean_obj_tag(v_x_1885_) == 0) -{ -lean_object* v_a_1887_; lean_object* v___x_1889_; uint8_t v_isShared_1890_; uint8_t v_isSharedCheck_1895_; -v_a_1887_ = lean_ctor_get(v_x_1885_, 0); -v_isSharedCheck_1895_ = !lean_is_exclusive(v_x_1885_); -if (v_isSharedCheck_1895_ == 0) -{ -v___x_1889_ = v_x_1885_; -v_isShared_1890_ = v_isSharedCheck_1895_; -goto v_resetjp_1888_; -} -else -{ -lean_inc(v_a_1887_); -lean_dec(v_x_1885_); -v___x_1889_ = lean_box(0); -v_isShared_1890_ = v_isSharedCheck_1895_; -goto v_resetjp_1888_; -} -v_resetjp_1888_: -{ -lean_object* v___x_1892_; -if (v_isShared_1890_ == 0) -{ -v___x_1892_ = v___x_1889_; -goto v_reusejp_1891_; -} -else -{ -lean_object* v_reuseFailAlloc_1894_; -v_reuseFailAlloc_1894_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1894_, 0, v_a_1887_); -v___x_1892_ = v_reuseFailAlloc_1894_; -goto v_reusejp_1891_; -} -v_reusejp_1891_: -{ -lean_object* v___x_1893_; -v___x_1893_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1893_, 0, v___x_1892_); -return v___x_1893_; -} -} -} -else -{ -lean_object* v___x_1896_; lean_object* v___x_1897_; lean_object* v___x_1898_; -v___x_1896_ = lean_io_promise_resolve(v_x_1885_, v_promise_1884_); -v___x_1897_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1897_, 0, v___x_1896_); -v___x_1898_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1898_, 0, v___x_1897_); -return v___x_1898_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0___boxed(lean_object* v_promise_1899_, lean_object* v_x_1900_, lean_object* v___y_1901_){ -_start: -{ -lean_object* v_res_1902_; -v_res_1902_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0(v_promise_1899_, v_x_1900_); -lean_dec(v_promise_1899_); -return v_res_1902_; -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1(lean_object* v_lose_1903_, lean_object* v___y_1904_, lean_object* v___f_1905_, lean_object* v_x_1906_){ -_start: -{ -if (lean_obj_tag(v_x_1906_) == 0) -{ -lean_object* v_a_1908_; lean_object* v___x_1910_; uint8_t v_isShared_1911_; uint8_t v_isSharedCheck_1916_; -lean_dec_ref(v___f_1905_); -lean_dec_ref(v_lose_1903_); -v_a_1908_ = lean_ctor_get(v_x_1906_, 0); -v_isSharedCheck_1916_ = !lean_is_exclusive(v_x_1906_); -if (v_isSharedCheck_1916_ == 0) -{ -v___x_1910_ = v_x_1906_; -v_isShared_1911_ = v_isSharedCheck_1916_; -goto v_resetjp_1909_; -} -else -{ -lean_inc(v_a_1908_); -lean_dec(v_x_1906_); -v___x_1910_ = lean_box(0); -v_isShared_1911_ = v_isSharedCheck_1916_; -goto v_resetjp_1909_; -} -v_resetjp_1909_: -{ -lean_object* v___x_1913_; -if (v_isShared_1911_ == 0) -{ -v___x_1913_ = v___x_1910_; -goto v_reusejp_1912_; -} -else -{ -lean_object* v_reuseFailAlloc_1915_; -v_reuseFailAlloc_1915_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1915_, 0, v_a_1908_); -v___x_1913_ = v_reuseFailAlloc_1915_; -goto v_reusejp_1912_; -} -v_reusejp_1912_: -{ -lean_object* v___x_1914_; -v___x_1914_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1914_, 0, v___x_1913_); -return v___x_1914_; -} -} -} -else -{ -lean_object* v_a_1917_; uint8_t v___x_1918_; -v_a_1917_ = lean_ctor_get(v_x_1906_, 0); -lean_inc(v_a_1917_); -lean_dec_ref(v_x_1906_); -v___x_1918_ = lean_unbox(v_a_1917_); -lean_dec(v_a_1917_); -if (v___x_1918_ == 0) +v_resetjp_1915_: { lean_object* v___x_1919_; -lean_dec_ref(v___f_1905_); -lean_inc(v___y_1904_); -v___x_1919_ = lean_apply_2(v_lose_1903_, v___y_1904_, lean_box(0)); -return v___x_1919_; +if (v_isShared_1917_ == 0) +{ +lean_ctor_set(v___x_1916_, 3, v_size_1906_); +v___x_1919_ = v___x_1916_; +goto v_reusejp_1918_; } else { -lean_object* v___x_1920_; lean_object* v___x_1921_; uint8_t v___x_1922_; lean_object* v___x_1923_; -lean_dec_ref(v_lose_1903_); -v___x_1920_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0(v___y_1904_); -v___x_1921_ = lean_unsigned_to_nat(0u); -v___x_1922_ = 0; -v___x_1923_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1921_, v___x_1922_, v___x_1920_, v___f_1905_); -return v___x_1923_; +lean_object* v_reuseFailAlloc_1922_; +v_reuseFailAlloc_1922_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1922_, 0, v_pendingProducer_1910_); +lean_ctor_set(v_reuseFailAlloc_1922_, 1, v_pendingConsumer_1911_); +lean_ctor_set(v_reuseFailAlloc_1922_, 2, v_interestWaiter_1912_); +lean_ctor_set(v_reuseFailAlloc_1922_, 3, v_size_1906_); +lean_ctor_set(v_reuseFailAlloc_1922_, 4, v_pendingIncompleteChunk_1914_); +lean_ctor_set_uint8(v_reuseFailAlloc_1922_, sizeof(void*)*5, v_closed_1913_); +v___x_1919_ = v_reuseFailAlloc_1922_; +goto v_reusejp_1918_; +} +v_reusejp_1918_: +{ +lean_object* v___x_1920_; lean_object* v___x_1921_; +v___x_1920_ = lean_st_ref_set(v___y_1907_, v___x_1919_); +v___x_1921_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_1921_; } } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1___boxed(lean_object* v_lose_1924_, lean_object* v___y_1925_, lean_object* v___f_1926_, lean_object* v_x_1927_, lean_object* v___y_1928_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___lam__0___boxed(lean_object* v_size_1925_, lean_object* v___y_1926_, lean_object* v___y_1927_){ _start: { -lean_object* v_res_1929_; -v_res_1929_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1(v_lose_1924_, v___y_1925_, v___f_1926_, v_x_1927_); -lean_dec(v___y_1925_); -return v_res_1929_; +lean_object* v_res_1928_; +v_res_1928_ = l_Std_Http_Body_Stream_setKnownSize___lam__0(v_size_1925_, v___y_1926_); +lean_dec(v___y_1926_); +return v_res_1928_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(lean_object* v_w_1930_, lean_object* v_lose_1931_, lean_object* v___y_1932_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize(lean_object* v_stream_1929_, lean_object* v_size_1930_){ _start: { -lean_object* v_finished_1934_; lean_object* v_promise_1935_; lean_object* v___x_1936_; lean_object* v___f_1937_; lean_object* v___f_1938_; uint8_t v___y_1940_; uint8_t v___x_1950_; -v_finished_1934_ = lean_ctor_get(v_w_1930_, 0); -lean_inc(v_finished_1934_); -v_promise_1935_ = lean_ctor_get(v_w_1930_, 1); -lean_inc(v_promise_1935_); -lean_dec_ref(v_w_1930_); -v___x_1936_ = lean_st_ref_take(v_finished_1934_); -v___f_1937_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0___boxed), 3, 1); -lean_closure_set(v___f_1937_, 0, v_promise_1935_); -lean_inc(v___y_1932_); -v___f_1938_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1___boxed), 5, 3); -lean_closure_set(v___f_1938_, 0, v_lose_1931_); -lean_closure_set(v___f_1938_, 1, v___y_1932_); -lean_closure_set(v___f_1938_, 2, v___f_1937_); -v___x_1950_ = lean_unbox(v___x_1936_); -lean_dec(v___x_1936_); -if (v___x_1950_ == 0) +lean_object* v___f_1932_; lean_object* v___x_1933_; lean_object* v___f_1934_; lean_object* v___f_1935_; lean_object* v___x_22__overap_1936_; lean_object* v___x_1937_; +v___f_1932_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_setKnownSize___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1932_, 0, v_size_1930_); +v___x_1933_ = lean_obj_once(&l_Std_Http_Body_Stream_isClosed___closed__1, &l_Std_Http_Body_Stream_isClosed___closed__1_once, _init_l_Std_Http_Body_Stream_isClosed___closed__1); +v___f_1934_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__4)); +v___f_1935_ = ((lean_object*)(l_Std_Http_Body_Stream_isClosed___closed__5)); +v___x_22__overap_1936_ = l_Std_Mutex_atomically___redArg(v___x_1933_, v___f_1934_, v___f_1935_, v_stream_1929_, v___f_1932_); +v___x_1937_ = lean_apply_1(v___x_22__overap_1936_, lean_box(0)); +return v___x_1937_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_setKnownSize___boxed(lean_object* v_stream_1938_, lean_object* v_size_1939_, lean_object* v_a_1940_){ +_start: { -uint8_t v___x_1951_; -v___x_1951_ = 1; -v___y_1940_ = v___x_1951_; -goto v___jp_1939_; +lean_object* v_res_1941_; +v_res_1941_ = l_Std_Http_Body_Stream_setKnownSize(v_stream_1938_, v_size_1939_); +return v_res_1941_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0(lean_object* v_pendingProducer_1942_, lean_object* v_pendingConsumer_1943_, uint8_t v_closed_1944_, lean_object* v_knownSize_1945_, lean_object* v_pendingIncompleteChunk_1946_, lean_object* v_a_1947_, lean_object* v_x_1948_){ +_start: +{ +if (lean_obj_tag(v_x_1948_) == 0) +{ +lean_object* v___x_1950_; +lean_dec(v_pendingIncompleteChunk_1946_); +lean_dec(v_knownSize_1945_); +lean_dec(v_pendingConsumer_1943_); +lean_dec(v_pendingProducer_1942_); +v___x_1950_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1950_, 0, v_x_1948_); +return v___x_1950_; } else { -uint8_t v___x_1952_; -v___x_1952_ = 0; -v___y_1940_ = v___x_1952_; -goto v___jp_1939_; -} -v___jp_1939_: +lean_object* v___x_1952_; uint8_t v_isShared_1953_; uint8_t v_isSharedCheck_1961_; +v_isSharedCheck_1961_ = !lean_is_exclusive(v_x_1948_); +if (v_isSharedCheck_1961_ == 0) { -uint8_t v___x_1941_; lean_object* v___x_1942_; lean_object* v___x_1943_; lean_object* v___x_1944_; lean_object* v___x_1945_; lean_object* v___x_1946_; lean_object* v___x_1947_; uint8_t v___x_1948_; lean_object* v___x_1949_; -v___x_1941_ = 1; -v___x_1942_ = lean_box(v___x_1941_); -v___x_1943_ = lean_st_ref_set(v_finished_1934_, v___x_1942_); -lean_dec(v_finished_1934_); -v___x_1944_ = lean_box(v___y_1940_); -v___x_1945_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1945_, 0, v___x_1944_); -v___x_1946_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1946_, 0, v___x_1945_); -v___x_1947_ = lean_unsigned_to_nat(0u); -v___x_1948_ = 0; -v___x_1949_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1947_, v___x_1948_, v___x_1946_, v___f_1938_); -return v___x_1949_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___boxed(lean_object* v_w_1953_, lean_object* v_lose_1954_, lean_object* v___y_1955_, lean_object* v___y_1956_){ -_start: -{ -lean_object* v_res_1957_; -v_res_1957_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(v_w_1953_, v_lose_1954_, v___y_1955_); -lean_dec(v___y_1955_); -return v_res_1957_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0(lean_object* v_x_1958_){ -_start: -{ -uint8_t v___y_1961_; -if (lean_obj_tag(v_x_1958_) == 0) -{ -lean_object* v_a_1965_; lean_object* v___x_1967_; uint8_t v_isShared_1968_; uint8_t v_isSharedCheck_1973_; -v_a_1965_ = lean_ctor_get(v_x_1958_, 0); -v_isSharedCheck_1973_ = !lean_is_exclusive(v_x_1958_); -if (v_isSharedCheck_1973_ == 0) -{ -v___x_1967_ = v_x_1958_; -v_isShared_1968_ = v_isSharedCheck_1973_; -goto v_resetjp_1966_; +lean_object* v_unused_1962_; +v_unused_1962_ = lean_ctor_get(v_x_1948_, 0); +lean_dec(v_unused_1962_); +v___x_1952_ = v_x_1948_; +v_isShared_1953_ = v_isSharedCheck_1961_; +goto v_resetjp_1951_; } else { -lean_inc(v_a_1965_); -lean_dec(v_x_1958_); -v___x_1967_ = lean_box(0); -v_isShared_1968_ = v_isSharedCheck_1973_; -goto v_resetjp_1966_; +lean_dec(v_x_1948_); +v___x_1952_ = lean_box(0); +v_isShared_1953_ = v_isSharedCheck_1961_; +goto v_resetjp_1951_; } -v_resetjp_1966_: +v_resetjp_1951_: { -lean_object* v___x_1970_; -if (v_isShared_1968_ == 0) +lean_object* v___x_1954_; lean_object* v___x_1955_; lean_object* v___x_1956_; lean_object* v___x_1958_; +v___x_1954_ = lean_box(0); +v___x_1955_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v___x_1955_, 0, v_pendingProducer_1942_); +lean_ctor_set(v___x_1955_, 1, v_pendingConsumer_1943_); +lean_ctor_set(v___x_1955_, 2, v___x_1954_); +lean_ctor_set(v___x_1955_, 3, v_knownSize_1945_); +lean_ctor_set(v___x_1955_, 4, v_pendingIncompleteChunk_1946_); +lean_ctor_set_uint8(v___x_1955_, sizeof(void*)*5, v_closed_1944_); +v___x_1956_ = lean_st_ref_set(v_a_1947_, v___x_1955_); +if (v_isShared_1953_ == 0) { -v___x_1970_ = v___x_1967_; -goto v_reusejp_1969_; +lean_ctor_set(v___x_1952_, 0, v___x_1956_); +v___x_1958_ = v___x_1952_; +goto v_reusejp_1957_; } else { -lean_object* v_reuseFailAlloc_1972_; -v_reuseFailAlloc_1972_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1972_, 0, v_a_1965_); -v___x_1970_ = v_reuseFailAlloc_1972_; -goto v_reusejp_1969_; +lean_object* v_reuseFailAlloc_1960_; +v_reuseFailAlloc_1960_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1960_, 0, v___x_1956_); +v___x_1958_ = v_reuseFailAlloc_1960_; +goto v_reusejp_1957_; } -v_reusejp_1969_: +v_reusejp_1957_: { -lean_object* v___x_1971_; -v___x_1971_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1971_, 0, v___x_1970_); -return v___x_1971_; +lean_object* v___x_1959_; +v___x_1959_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1959_, 0, v___x_1958_); +return v___x_1959_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0___boxed(lean_object* v_pendingProducer_1963_, lean_object* v_pendingConsumer_1964_, lean_object* v_closed_1965_, lean_object* v_knownSize_1966_, lean_object* v_pendingIncompleteChunk_1967_, lean_object* v_a_1968_, lean_object* v_x_1969_, lean_object* v___y_1970_){ +_start: +{ +uint8_t v_closed_boxed_1971_; lean_object* v_res_1972_; +v_closed_boxed_1971_ = lean_unbox(v_closed_1965_); +v_res_1972_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0(v_pendingProducer_1963_, v_pendingConsumer_1964_, v_closed_boxed_1971_, v_knownSize_1966_, v_pendingIncompleteChunk_1967_, v_a_1968_, v_x_1969_); +lean_dec(v_a_1968_); +return v_res_1972_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1(lean_object* v_a_1973_, lean_object* v_x_1974_){ +_start: +{ +if (lean_obj_tag(v_x_1974_) == 0) +{ +lean_object* v_a_1976_; lean_object* v___x_1978_; uint8_t v_isShared_1979_; uint8_t v_isSharedCheck_1984_; +v_a_1976_ = lean_ctor_get(v_x_1974_, 0); +v_isSharedCheck_1984_ = !lean_is_exclusive(v_x_1974_); +if (v_isSharedCheck_1984_ == 0) +{ +v___x_1978_ = v_x_1974_; +v_isShared_1979_ = v_isSharedCheck_1984_; +goto v_resetjp_1977_; +} +else +{ +lean_inc(v_a_1976_); +lean_dec(v_x_1974_); +v___x_1978_ = lean_box(0); +v_isShared_1979_ = v_isSharedCheck_1984_; +goto v_resetjp_1977_; +} +v_resetjp_1977_: +{ +lean_object* v___x_1981_; +if (v_isShared_1979_ == 0) +{ +v___x_1981_ = v___x_1978_; +goto v_reusejp_1980_; +} +else +{ +lean_object* v_reuseFailAlloc_1983_; +v_reuseFailAlloc_1983_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1983_, 0, v_a_1976_); +v___x_1981_ = v_reuseFailAlloc_1983_; +goto v_reusejp_1980_; +} +v_reusejp_1980_: +{ +lean_object* v___x_1982_; +v___x_1982_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1982_, 0, v___x_1981_); +return v___x_1982_; } } } else { -lean_object* v_a_1974_; lean_object* v_pendingProducer_1975_; -v_a_1974_ = lean_ctor_get(v_x_1958_, 0); -lean_inc(v_a_1974_); -lean_dec_ref(v_x_1958_); -v_pendingProducer_1975_ = lean_ctor_get(v_a_1974_, 0); -if (lean_obj_tag(v_pendingProducer_1975_) == 0) +lean_object* v_a_1985_; lean_object* v_interestWaiter_1986_; +v_a_1985_ = lean_ctor_get(v_x_1974_, 0); +lean_inc(v_a_1985_); +lean_dec_ref(v_x_1974_); +v_interestWaiter_1986_ = lean_ctor_get(v_a_1985_, 2); +lean_inc(v_interestWaiter_1986_); +if (lean_obj_tag(v_interestWaiter_1986_) == 1) { -uint8_t v_closed_1976_; -v_closed_1976_ = lean_ctor_get_uint8(v_a_1974_, sizeof(void*)*5); -lean_dec(v_a_1974_); -v___y_1961_ = v_closed_1976_; -goto v___jp_1960_; +lean_object* v_pendingProducer_1987_; lean_object* v_pendingConsumer_1988_; uint8_t v_closed_1989_; lean_object* v_knownSize_1990_; lean_object* v_pendingIncompleteChunk_1991_; lean_object* v_val_1992_; uint8_t v___x_1993_; uint8_t v___x_1994_; lean_object* v___x_1995_; lean_object* v___f_1996_; lean_object* v___x_1997_; lean_object* v___x_1998_; uint8_t v___x_1999_; lean_object* v___x_2000_; +v_pendingProducer_1987_ = lean_ctor_get(v_a_1985_, 0); +lean_inc(v_pendingProducer_1987_); +v_pendingConsumer_1988_ = lean_ctor_get(v_a_1985_, 1); +lean_inc(v_pendingConsumer_1988_); +v_closed_1989_ = lean_ctor_get_uint8(v_a_1985_, sizeof(void*)*5); +v_knownSize_1990_ = lean_ctor_get(v_a_1985_, 3); +lean_inc(v_knownSize_1990_); +v_pendingIncompleteChunk_1991_ = lean_ctor_get(v_a_1985_, 4); +lean_inc(v_pendingIncompleteChunk_1991_); +lean_dec(v_a_1985_); +v_val_1992_ = lean_ctor_get(v_interestWaiter_1986_, 0); +lean_inc(v_val_1992_); +lean_dec_ref(v_interestWaiter_1986_); +v___x_1993_ = 1; +v___x_1994_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_resolveInterestWaiter(v_val_1992_, v___x_1993_); +lean_dec(v_val_1992_); +v___x_1995_ = lean_box(v_closed_1989_); +lean_inc(v_a_1973_); +v___f_1996_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__0___boxed), 8, 6); +lean_closure_set(v___f_1996_, 0, v_pendingProducer_1987_); +lean_closure_set(v___f_1996_, 1, v_pendingConsumer_1988_); +lean_closure_set(v___f_1996_, 2, v___x_1995_); +lean_closure_set(v___f_1996_, 3, v_knownSize_1990_); +lean_closure_set(v___f_1996_, 4, v_pendingIncompleteChunk_1991_); +lean_closure_set(v___f_1996_, 5, v_a_1973_); +v___x_1997_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +v___x_1998_ = lean_unsigned_to_nat(0u); +v___x_1999_ = 0; +v___x_2000_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1998_, v___x_1999_, v___x_1997_, v___f_1996_); +return v___x_2000_; } else { -uint8_t v___x_1977_; -lean_dec(v_a_1974_); -v___x_1977_ = 1; -v___y_1961_ = v___x_1977_; -goto v___jp_1960_; -} -} -v___jp_1960_: -{ -lean_object* v___x_1962_; lean_object* v___x_1963_; lean_object* v___x_1964_; -v___x_1962_ = lean_box(v___y_1961_); -v___x_1963_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1963_, 0, v___x_1962_); -v___x_1964_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1964_, 0, v___x_1963_); -return v___x_1964_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0___boxed(lean_object* v_x_1978_, lean_object* v___y_1979_){ -_start: -{ -lean_object* v_res_1980_; -v_res_1980_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___lam__0(v_x_1978_); -return v_res_1980_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2(lean_object* v_a_1982_){ -_start: -{ -lean_object* v___x_1984_; lean_object* v___f_1985_; lean_object* v___x_1986_; lean_object* v___x_1987_; lean_object* v___x_1988_; uint8_t v___x_1989_; lean_object* v___x_1990_; -v___x_1984_ = lean_st_ref_get(v_a_1982_); -v___f_1985_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___closed__0)); -v___x_1986_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_1986_, 0, v___x_1984_); -v___x_1987_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_1987_, 0, v___x_1986_); -v___x_1988_ = lean_unsigned_to_nat(0u); -v___x_1989_ = 0; -v___x_1990_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1988_, v___x_1989_, v___x_1987_, v___f_1985_); -return v___x_1990_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2___boxed(lean_object* v_a_1991_, lean_object* v___y_1992_){ -_start: -{ -lean_object* v_res_1993_; -v_res_1993_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2(v_a_1991_); -lean_dec(v_a_1991_); -return v_res_1993_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0(lean_object* v_x_1994_){ -_start: -{ -if (lean_obj_tag(v_x_1994_) == 0) -{ -lean_object* v_a_1996_; lean_object* v___x_1998_; uint8_t v_isShared_1999_; uint8_t v_isSharedCheck_2004_; -v_a_1996_ = lean_ctor_get(v_x_1994_, 0); -v_isSharedCheck_2004_ = !lean_is_exclusive(v_x_1994_); -if (v_isSharedCheck_2004_ == 0) -{ -v___x_1998_ = v_x_1994_; -v_isShared_1999_ = v_isSharedCheck_2004_; -goto v_resetjp_1997_; -} -else -{ -lean_inc(v_a_1996_); -lean_dec(v_x_1994_); -v___x_1998_ = lean_box(0); -v_isShared_1999_ = v_isSharedCheck_2004_; -goto v_resetjp_1997_; -} -v_resetjp_1997_: -{ lean_object* v___x_2001_; -if (v_isShared_1999_ == 0) +lean_dec(v_interestWaiter_1986_); +lean_dec(v_a_1985_); +v___x_2001_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_2001_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1___boxed(lean_object* v_a_2002_, lean_object* v_x_2003_, lean_object* v___y_2004_){ +_start: { -v___x_2001_ = v___x_1998_; -goto v_reusejp_2000_; +lean_object* v_res_2005_; +v_res_2005_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1(v_a_2002_, v_x_2003_); +lean_dec(v_a_2002_); +return v_res_2005_; } -else +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(lean_object* v_a_2006_){ +_start: { -lean_object* v_reuseFailAlloc_2003_; -v_reuseFailAlloc_2003_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2003_, 0, v_a_1996_); -v___x_2001_ = v_reuseFailAlloc_2003_; -goto v_reusejp_2000_; -} -v_reusejp_2000_: -{ -lean_object* v___x_2002_; -v___x_2002_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2002_, 0, v___x_2001_); -return v___x_2002_; +lean_object* v___x_2008_; lean_object* v___f_2009_; lean_object* v___x_2010_; lean_object* v___x_2011_; lean_object* v___x_2012_; uint8_t v___x_2013_; lean_object* v___x_2014_; +v___x_2008_ = lean_st_ref_get(v_a_2006_); +lean_inc(v_a_2006_); +v___f_2009_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___lam__1___boxed), 3, 1); +lean_closure_set(v___f_2009_, 0, v_a_2006_); +v___x_2010_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2010_, 0, v___x_2008_); +v___x_2011_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2011_, 0, v___x_2010_); +v___x_2012_ = lean_unsigned_to_nat(0u); +v___x_2013_ = 0; +v___x_2014_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2012_, v___x_2013_, v___x_2011_, v___f_2009_); +return v___x_2014_; } } -} -else -{ -lean_object* v_a_2005_; lean_object* v___x_2007_; uint8_t v_isShared_2008_; uint8_t v_isSharedCheck_2014_; -v_a_2005_ = lean_ctor_get(v_x_1994_, 0); -v_isSharedCheck_2014_ = !lean_is_exclusive(v_x_1994_); -if (v_isSharedCheck_2014_ == 0) -{ -v___x_2007_ = v_x_1994_; -v_isShared_2008_ = v_isSharedCheck_2014_; -goto v_resetjp_2006_; -} -else -{ -lean_inc(v_a_2005_); -lean_dec(v_x_1994_); -v___x_2007_ = lean_box(0); -v_isShared_2008_ = v_isSharedCheck_2014_; -goto v_resetjp_2006_; -} -v_resetjp_2006_: -{ -lean_object* v___x_2009_; lean_object* v___x_2011_; -v___x_2009_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2009_, 0, v_a_2005_); -if (v_isShared_2008_ == 0) -{ -lean_ctor_set(v___x_2007_, 0, v___x_2009_); -v___x_2011_ = v___x_2007_; -goto v_reusejp_2010_; -} -else -{ -lean_object* v_reuseFailAlloc_2013_; -v_reuseFailAlloc_2013_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2013_, 0, v___x_2009_); -v___x_2011_ = v_reuseFailAlloc_2013_; -goto v_reusejp_2010_; -} -v_reusejp_2010_: -{ -lean_object* v___x_2012_; -v___x_2012_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2012_, 0, v___x_2011_); -return v___x_2012_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0___boxed(lean_object* v_x_2015_, lean_object* v___y_2016_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0___boxed(lean_object* v_a_2015_, lean_object* v___y_2016_){ _start: { lean_object* v_res_2017_; -v_res_2017_ = l_Std_Http_Body_Stream_recvSelector___lam__0(v_x_2015_); +v_res_2017_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(v_a_2015_); +lean_dec(v_a_2015_); return v_res_2017_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1(lean_object* v___y_2018_, lean_object* v_x_2019_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0(lean_object* v_promise_2018_, lean_object* v_x_2019_){ _start: { if (lean_obj_tag(v_x_2019_) == 0) { -lean_object* v___x_2021_; -v___x_2021_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2021_, 0, v_x_2019_); -return v___x_2021_; +lean_object* v_a_2021_; lean_object* v___x_2023_; uint8_t v_isShared_2024_; uint8_t v_isSharedCheck_2029_; +v_a_2021_ = lean_ctor_get(v_x_2019_, 0); +v_isSharedCheck_2029_ = !lean_is_exclusive(v_x_2019_); +if (v_isSharedCheck_2029_ == 0) +{ +v___x_2023_ = v_x_2019_; +v_isShared_2024_ = v_isSharedCheck_2029_; +goto v_resetjp_2022_; } else { -lean_object* v___x_2022_; -lean_dec_ref(v_x_2019_); -v___x_2022_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(v___y_2018_); -return v___x_2022_; +lean_inc(v_a_2021_); +lean_dec(v_x_2019_); +v___x_2023_ = lean_box(0); +v_isShared_2024_ = v_isSharedCheck_2029_; +goto v_resetjp_2022_; } -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1___boxed(lean_object* v___y_2023_, lean_object* v_x_2024_, lean_object* v___y_2025_){ -_start: +v_resetjp_2022_: { -lean_object* v_res_2026_; -v_res_2026_ = l_Std_Http_Body_Stream_recvSelector___lam__1(v___y_2023_, v_x_2024_); -lean_dec(v___y_2023_); -return v_res_2026_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2(lean_object* v_waiter_2027_, lean_object* v_pendingProducer_2028_, lean_object* v_interestWaiter_2029_, uint8_t v_closed_2030_, lean_object* v_knownSize_2031_, lean_object* v_pendingIncompleteChunk_2032_, uint8_t v_a_2033_, lean_object* v_____r_2034_, lean_object* v___y_2035_){ -_start: +lean_object* v___x_2026_; +if (v_isShared_2024_ == 0) { -lean_object* v___x_2037_; lean_object* v___x_2038_; lean_object* v___x_2039_; lean_object* v___x_2040_; lean_object* v___f_2041_; lean_object* v___x_2042_; lean_object* v___x_2043_; lean_object* v___x_2044_; lean_object* v___x_2045_; -v___x_2037_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2037_, 0, v_waiter_2027_); -v___x_2038_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2038_, 0, v___x_2037_); -v___x_2039_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v___x_2039_, 0, v_pendingProducer_2028_); -lean_ctor_set(v___x_2039_, 1, v___x_2038_); -lean_ctor_set(v___x_2039_, 2, v_interestWaiter_2029_); -lean_ctor_set(v___x_2039_, 3, v_knownSize_2031_); -lean_ctor_set(v___x_2039_, 4, v_pendingIncompleteChunk_2032_); -lean_ctor_set_uint8(v___x_2039_, sizeof(void*)*5, v_closed_2030_); -v___x_2040_ = lean_st_ref_set(v___y_2035_, v___x_2039_); -lean_inc(v___y_2035_); -v___f_2041_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__1___boxed), 3, 1); -lean_closure_set(v___f_2041_, 0, v___y_2035_); -v___x_2042_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2042_, 0, v___x_2040_); -v___x_2043_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2043_, 0, v___x_2042_); -v___x_2044_ = lean_unsigned_to_nat(0u); -v___x_2045_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2044_, v_a_2033_, v___x_2043_, v___f_2041_); -return v___x_2045_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2___boxed(lean_object* v_waiter_2046_, lean_object* v_pendingProducer_2047_, lean_object* v_interestWaiter_2048_, lean_object* v_closed_2049_, lean_object* v_knownSize_2050_, lean_object* v_pendingIncompleteChunk_2051_, lean_object* v_a_2052_, lean_object* v_____r_2053_, lean_object* v___y_2054_, lean_object* v___y_2055_){ -_start: -{ -uint8_t v_closed_boxed_2056_; uint8_t v_a_6170__boxed_2057_; lean_object* v_res_2058_; -v_closed_boxed_2056_ = lean_unbox(v_closed_2049_); -v_a_6170__boxed_2057_ = lean_unbox(v_a_2052_); -v_res_2058_ = l_Std_Http_Body_Stream_recvSelector___lam__2(v_waiter_2046_, v_pendingProducer_2047_, v_interestWaiter_2048_, v_closed_boxed_2056_, v_knownSize_2050_, v_pendingIncompleteChunk_2051_, v_a_6170__boxed_2057_, v_____r_2053_, v___y_2054_); -lean_dec(v___y_2054_); -return v_res_2058_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4(lean_object* v_waiter_2063_, uint8_t v_a_2064_, lean_object* v___y_2065_, lean_object* v_x_2066_){ -_start: -{ -if (lean_obj_tag(v_x_2066_) == 0) -{ -lean_object* v_a_2068_; lean_object* v___x_2070_; uint8_t v_isShared_2071_; uint8_t v_isSharedCheck_2076_; -lean_dec_ref(v_waiter_2063_); -v_a_2068_ = lean_ctor_get(v_x_2066_, 0); -v_isSharedCheck_2076_ = !lean_is_exclusive(v_x_2066_); -if (v_isSharedCheck_2076_ == 0) -{ -v___x_2070_ = v_x_2066_; -v_isShared_2071_ = v_isSharedCheck_2076_; -goto v_resetjp_2069_; +v___x_2026_ = v___x_2023_; +goto v_reusejp_2025_; } else { -lean_inc(v_a_2068_); -lean_dec(v_x_2066_); -v___x_2070_ = lean_box(0); -v_isShared_2071_ = v_isSharedCheck_2076_; -goto v_resetjp_2069_; +lean_object* v_reuseFailAlloc_2028_; +v_reuseFailAlloc_2028_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2028_, 0, v_a_2021_); +v___x_2026_ = v_reuseFailAlloc_2028_; +goto v_reusejp_2025_; } -v_resetjp_2069_: +v_reusejp_2025_: { -lean_object* v___x_2073_; -if (v_isShared_2071_ == 0) -{ -v___x_2073_ = v___x_2070_; -goto v_reusejp_2072_; -} -else -{ -lean_object* v_reuseFailAlloc_2075_; -v_reuseFailAlloc_2075_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2075_, 0, v_a_2068_); -v___x_2073_ = v_reuseFailAlloc_2075_; -goto v_reusejp_2072_; -} -v_reusejp_2072_: -{ -lean_object* v___x_2074_; -v___x_2074_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2074_, 0, v___x_2073_); -return v___x_2074_; +lean_object* v___x_2027_; +v___x_2027_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2027_, 0, v___x_2026_); +return v___x_2027_; } } } else { -lean_object* v_a_2077_; lean_object* v_pendingProducer_2078_; lean_object* v_pendingConsumer_2079_; lean_object* v_interestWaiter_2080_; uint8_t v_closed_2081_; lean_object* v_knownSize_2082_; lean_object* v_pendingIncompleteChunk_2083_; lean_object* v___x_2084_; lean_object* v___x_2085_; lean_object* v___f_2086_; -v_a_2077_ = lean_ctor_get(v_x_2066_, 0); -lean_inc(v_a_2077_); -lean_dec_ref(v_x_2066_); -v_pendingProducer_2078_ = lean_ctor_get(v_a_2077_, 0); -lean_inc_n(v_pendingProducer_2078_, 2); -v_pendingConsumer_2079_ = lean_ctor_get(v_a_2077_, 1); -lean_inc(v_pendingConsumer_2079_); -v_interestWaiter_2080_ = lean_ctor_get(v_a_2077_, 2); -lean_inc_n(v_interestWaiter_2080_, 2); -v_closed_2081_ = lean_ctor_get_uint8(v_a_2077_, sizeof(void*)*5); -v_knownSize_2082_ = lean_ctor_get(v_a_2077_, 3); -lean_inc_n(v_knownSize_2082_, 2); -v_pendingIncompleteChunk_2083_ = lean_ctor_get(v_a_2077_, 4); -lean_inc_n(v_pendingIncompleteChunk_2083_, 2); -lean_dec(v_a_2077_); -v___x_2084_ = lean_box(v_closed_2081_); -v___x_2085_ = lean_box(v_a_2064_); -lean_inc_ref(v_waiter_2063_); -v___f_2086_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__2___boxed), 10, 7); -lean_closure_set(v___f_2086_, 0, v_waiter_2063_); -lean_closure_set(v___f_2086_, 1, v_pendingProducer_2078_); -lean_closure_set(v___f_2086_, 2, v_interestWaiter_2080_); -lean_closure_set(v___f_2086_, 3, v___x_2084_); -lean_closure_set(v___f_2086_, 4, v_knownSize_2082_); -lean_closure_set(v___f_2086_, 5, v_pendingIncompleteChunk_2083_); -lean_closure_set(v___f_2086_, 6, v___x_2085_); -if (lean_obj_tag(v_pendingConsumer_2079_) == 0) +lean_object* v___x_2030_; lean_object* v___x_2031_; lean_object* v___x_2032_; +v___x_2030_ = lean_io_promise_resolve(v_x_2019_, v_promise_2018_); +v___x_2031_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2031_, 0, v___x_2030_); +v___x_2032_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2032_, 0, v___x_2031_); +return v___x_2032_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0___boxed(lean_object* v_promise_2033_, lean_object* v_x_2034_, lean_object* v___y_2035_){ +_start: { -lean_object* v___x_2087_; lean_object* v___x_2088_; -lean_dec_ref(v___f_2086_); -v___x_2087_ = lean_box(0); -v___x_2088_ = l_Std_Http_Body_Stream_recvSelector___lam__2(v_waiter_2063_, v_pendingProducer_2078_, v_interestWaiter_2080_, v_closed_2081_, v_knownSize_2082_, v_pendingIncompleteChunk_2083_, v_a_2064_, v___x_2087_, v___y_2065_); -return v___x_2088_; +lean_object* v_res_2036_; +v_res_2036_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0(v_promise_2033_, v_x_2034_); +lean_dec(v_promise_2033_); +return v_res_2036_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1(lean_object* v_lose_2037_, lean_object* v___y_2038_, lean_object* v___f_2039_, lean_object* v_x_2040_){ +_start: +{ +if (lean_obj_tag(v_x_2040_) == 0) +{ +lean_object* v_a_2042_; lean_object* v___x_2044_; uint8_t v_isShared_2045_; uint8_t v_isSharedCheck_2050_; +lean_dec_ref(v___f_2039_); +lean_dec_ref(v_lose_2037_); +v_a_2042_ = lean_ctor_get(v_x_2040_, 0); +v_isSharedCheck_2050_ = !lean_is_exclusive(v_x_2040_); +if (v_isSharedCheck_2050_ == 0) +{ +v___x_2044_ = v_x_2040_; +v_isShared_2045_ = v_isSharedCheck_2050_; +goto v_resetjp_2043_; } else { -lean_object* v___f_2089_; lean_object* v___x_2090_; lean_object* v___x_2091_; lean_object* v___x_2092_; -lean_dec_ref(v_pendingConsumer_2079_); -lean_dec(v_pendingIncompleteChunk_2083_); -lean_dec(v_knownSize_2082_); -lean_dec(v_interestWaiter_2080_); -lean_dec(v_pendingProducer_2078_); -lean_dec_ref(v_waiter_2063_); -lean_inc(v___y_2065_); -v___f_2089_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); -lean_closure_set(v___f_2089_, 0, v___f_2086_); -lean_closure_set(v___f_2089_, 1, v___y_2065_); -v___x_2090_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__4___closed__1)); -v___x_2091_ = lean_unsigned_to_nat(0u); -v___x_2092_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2091_, v_a_2064_, v___x_2090_, v___f_2089_); -return v___x_2092_; +lean_inc(v_a_2042_); +lean_dec(v_x_2040_); +v___x_2044_ = lean_box(0); +v_isShared_2045_ = v_isSharedCheck_2050_; +goto v_resetjp_2043_; } -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___boxed(lean_object* v_waiter_2093_, lean_object* v_a_2094_, lean_object* v___y_2095_, lean_object* v_x_2096_, lean_object* v___y_2097_){ -_start: +v_resetjp_2043_: { -uint8_t v_a_6211__boxed_2098_; lean_object* v_res_2099_; -v_a_6211__boxed_2098_ = lean_unbox(v_a_2094_); -v_res_2099_ = l_Std_Http_Body_Stream_recvSelector___lam__4(v_waiter_2093_, v_a_6211__boxed_2098_, v___y_2095_, v_x_2096_); -lean_dec(v___y_2095_); -return v_res_2099_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3(lean_object* v___x_2100_, lean_object* v___y_2101_){ -_start: +lean_object* v___x_2047_; +if (v_isShared_2045_ == 0) { -lean_object* v___x_2103_; lean_object* v___x_2104_; -v___x_2103_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2103_, 0, v___x_2100_); -v___x_2104_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2104_, 0, v___x_2103_); -return v___x_2104_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___boxed(lean_object* v___x_2105_, lean_object* v___y_2106_, lean_object* v___y_2107_){ -_start: -{ -lean_object* v_res_2108_; -v_res_2108_ = l_Std_Http_Body_Stream_recvSelector___lam__3(v___x_2105_, v___y_2106_); -lean_dec(v___y_2106_); -return v_res_2108_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5(lean_object* v___y_2111_, lean_object* v_waiter_2112_, lean_object* v_x_2113_){ -_start: -{ -if (lean_obj_tag(v_x_2113_) == 0) -{ -lean_object* v_a_2115_; lean_object* v___x_2117_; uint8_t v_isShared_2118_; uint8_t v_isSharedCheck_2123_; -lean_dec_ref(v_waiter_2112_); -v_a_2115_ = lean_ctor_get(v_x_2113_, 0); -v_isSharedCheck_2123_ = !lean_is_exclusive(v_x_2113_); -if (v_isSharedCheck_2123_ == 0) -{ -v___x_2117_ = v_x_2113_; -v_isShared_2118_ = v_isSharedCheck_2123_; -goto v_resetjp_2116_; +v___x_2047_ = v___x_2044_; +goto v_reusejp_2046_; } else { -lean_inc(v_a_2115_); -lean_dec(v_x_2113_); -v___x_2117_ = lean_box(0); -v_isShared_2118_ = v_isSharedCheck_2123_; -goto v_resetjp_2116_; +lean_object* v_reuseFailAlloc_2049_; +v_reuseFailAlloc_2049_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2049_, 0, v_a_2042_); +v___x_2047_ = v_reuseFailAlloc_2049_; +goto v_reusejp_2046_; } -v_resetjp_2116_: +v_reusejp_2046_: { -lean_object* v___x_2120_; -if (v_isShared_2118_ == 0) -{ -v___x_2120_ = v___x_2117_; -goto v_reusejp_2119_; -} -else -{ -lean_object* v_reuseFailAlloc_2122_; -v_reuseFailAlloc_2122_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2122_, 0, v_a_2115_); -v___x_2120_ = v_reuseFailAlloc_2122_; -goto v_reusejp_2119_; -} -v_reusejp_2119_: -{ -lean_object* v___x_2121_; -v___x_2121_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2121_, 0, v___x_2120_); -return v___x_2121_; +lean_object* v___x_2048_; +v___x_2048_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2048_, 0, v___x_2047_); +return v___x_2048_; } } } else { -lean_object* v_a_2124_; lean_object* v___x_2126_; uint8_t v_isShared_2127_; uint8_t v_isSharedCheck_2140_; -v_a_2124_ = lean_ctor_get(v_x_2113_, 0); -v_isSharedCheck_2140_ = !lean_is_exclusive(v_x_2113_); -if (v_isSharedCheck_2140_ == 0) +lean_object* v_a_2051_; uint8_t v___x_2052_; +v_a_2051_ = lean_ctor_get(v_x_2040_, 0); +lean_inc(v_a_2051_); +lean_dec_ref(v_x_2040_); +v___x_2052_ = lean_unbox(v_a_2051_); +lean_dec(v_a_2051_); +if (v___x_2052_ == 0) { -v___x_2126_ = v_x_2113_; -v_isShared_2127_ = v_isSharedCheck_2140_; -goto v_resetjp_2125_; +lean_object* v___x_2053_; +lean_dec_ref(v___f_2039_); +lean_inc(v___y_2038_); +v___x_2053_ = lean_apply_2(v_lose_2037_, v___y_2038_, lean_box(0)); +return v___x_2053_; } else { -lean_inc(v_a_2124_); -lean_dec(v_x_2113_); -v___x_2126_ = lean_box(0); -v_isShared_2127_ = v_isSharedCheck_2140_; -goto v_resetjp_2125_; +lean_object* v___x_2054_; lean_object* v___x_2055_; uint8_t v___x_2056_; lean_object* v___x_2057_; +lean_dec_ref(v_lose_2037_); +v___x_2054_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0(v___y_2038_); +v___x_2055_ = lean_unsigned_to_nat(0u); +v___x_2056_ = 0; +v___x_2057_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2055_, v___x_2056_, v___x_2054_, v___f_2039_); +return v___x_2057_; } -v_resetjp_2125_: +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1___boxed(lean_object* v_lose_2058_, lean_object* v___y_2059_, lean_object* v___f_2060_, lean_object* v_x_2061_, lean_object* v___y_2062_){ +_start: { -uint8_t v___x_2128_; -v___x_2128_ = lean_unbox(v_a_2124_); -if (v___x_2128_ == 0) +lean_object* v_res_2063_; +v_res_2063_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1(v_lose_2058_, v___y_2059_, v___f_2060_, v_x_2061_); +lean_dec(v___y_2059_); +return v_res_2063_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(lean_object* v_w_2064_, lean_object* v_lose_2065_, lean_object* v___y_2066_){ +_start: { -lean_object* v___x_2129_; lean_object* v___f_2130_; lean_object* v___x_2132_; -v___x_2129_ = lean_st_ref_get(v___y_2111_); -lean_inc(v___y_2111_); -lean_inc(v_a_2124_); -v___f_2130_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__4___boxed), 5, 3); -lean_closure_set(v___f_2130_, 0, v_waiter_2112_); -lean_closure_set(v___f_2130_, 1, v_a_2124_); -lean_closure_set(v___f_2130_, 2, v___y_2111_); -if (v_isShared_2127_ == 0) +lean_object* v_finished_2068_; lean_object* v_promise_2069_; lean_object* v___x_2070_; lean_object* v___f_2071_; lean_object* v___f_2072_; uint8_t v___y_2074_; uint8_t v___x_2084_; +v_finished_2068_ = lean_ctor_get(v_w_2064_, 0); +lean_inc(v_finished_2068_); +v_promise_2069_ = lean_ctor_get(v_w_2064_, 1); +lean_inc(v_promise_2069_); +lean_dec_ref(v_w_2064_); +v___x_2070_ = lean_st_ref_take(v_finished_2068_); +v___f_2071_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__0___boxed), 3, 1); +lean_closure_set(v___f_2071_, 0, v_promise_2069_); +lean_inc(v___y_2066_); +v___f_2072_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___lam__1___boxed), 5, 3); +lean_closure_set(v___f_2072_, 0, v_lose_2065_); +lean_closure_set(v___f_2072_, 1, v___y_2066_); +lean_closure_set(v___f_2072_, 2, v___f_2071_); +v___x_2084_ = lean_unbox(v___x_2070_); +lean_dec(v___x_2070_); +if (v___x_2084_ == 0) { -lean_ctor_set(v___x_2126_, 0, v___x_2129_); -v___x_2132_ = v___x_2126_; -goto v_reusejp_2131_; +uint8_t v___x_2085_; +v___x_2085_ = 1; +v___y_2074_ = v___x_2085_; +goto v___jp_2073_; } else { -lean_object* v_reuseFailAlloc_2137_; -v_reuseFailAlloc_2137_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2137_, 0, v___x_2129_); -v___x_2132_ = v_reuseFailAlloc_2137_; -goto v_reusejp_2131_; +uint8_t v___x_2086_; +v___x_2086_ = 0; +v___y_2074_ = v___x_2086_; +goto v___jp_2073_; } -v_reusejp_2131_: +v___jp_2073_: { -lean_object* v___x_2133_; lean_object* v___x_2134_; uint8_t v___x_2135_; lean_object* v___x_2136_; -v___x_2133_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2133_, 0, v___x_2132_); -v___x_2134_ = lean_unsigned_to_nat(0u); -v___x_2135_ = lean_unbox(v_a_2124_); -lean_dec(v_a_2124_); -v___x_2136_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2134_, v___x_2135_, v___x_2133_, v___f_2130_); -return v___x_2136_; +uint8_t v___x_2075_; lean_object* v___x_2076_; lean_object* v___x_2077_; lean_object* v___x_2078_; lean_object* v___x_2079_; lean_object* v___x_2080_; lean_object* v___x_2081_; uint8_t v___x_2082_; lean_object* v___x_2083_; +v___x_2075_ = 1; +v___x_2076_ = lean_box(v___x_2075_); +v___x_2077_ = lean_st_ref_set(v_finished_2068_, v___x_2076_); +lean_dec(v_finished_2068_); +v___x_2078_ = lean_box(v___y_2074_); +v___x_2079_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2079_, 0, v___x_2078_); +v___x_2080_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2080_, 0, v___x_2079_); +v___x_2081_ = lean_unsigned_to_nat(0u); +v___x_2082_ = 0; +v___x_2083_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2081_, v___x_2082_, v___x_2080_, v___f_2072_); +return v___x_2083_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1___boxed(lean_object* v_w_2087_, lean_object* v_lose_2088_, lean_object* v___y_2089_, lean_object* v___y_2090_){ +_start: +{ +lean_object* v_res_2091_; +v_res_2091_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(v_w_2087_, v_lose_2088_, v___y_2089_); +lean_dec(v___y_2089_); +return v_res_2091_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1(lean_object* v___y_2092_, lean_object* v_x_2093_){ +_start: +{ +if (lean_obj_tag(v_x_2093_) == 0) +{ +lean_object* v___x_2095_; +v___x_2095_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2095_, 0, v_x_2093_); +return v___x_2095_; +} +else +{ +lean_object* v___x_2096_; +lean_dec_ref(v_x_2093_); +v___x_2096_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_signalInterest___at___00Std_Http_Body_Stream_recvSelector_spec__0(v___y_2092_); +return v___x_2096_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__1___boxed(lean_object* v___y_2097_, lean_object* v_x_2098_, lean_object* v___y_2099_){ +_start: +{ +lean_object* v_res_2100_; +v_res_2100_ = l_Std_Http_Body_Stream_recvSelector___lam__1(v___y_2097_, v_x_2098_); +lean_dec(v___y_2097_); +return v_res_2100_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0(lean_object* v_waiter_2101_, lean_object* v_pendingProducer_2102_, lean_object* v_interestWaiter_2103_, uint8_t v_closed_2104_, lean_object* v_knownSize_2105_, lean_object* v_pendingIncompleteChunk_2106_, uint8_t v_a_2107_, lean_object* v_____r_2108_, lean_object* v___y_2109_){ +_start: +{ +lean_object* v___x_2111_; lean_object* v___x_2112_; lean_object* v___x_2113_; lean_object* v___x_2114_; lean_object* v___f_2115_; lean_object* v___x_2116_; lean_object* v___x_2117_; lean_object* v___x_2118_; lean_object* v___x_2119_; +v___x_2111_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2111_, 0, v_waiter_2101_); +v___x_2112_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2112_, 0, v___x_2111_); +v___x_2113_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v___x_2113_, 0, v_pendingProducer_2102_); +lean_ctor_set(v___x_2113_, 1, v___x_2112_); +lean_ctor_set(v___x_2113_, 2, v_interestWaiter_2103_); +lean_ctor_set(v___x_2113_, 3, v_knownSize_2105_); +lean_ctor_set(v___x_2113_, 4, v_pendingIncompleteChunk_2106_); +lean_ctor_set_uint8(v___x_2113_, sizeof(void*)*5, v_closed_2104_); +v___x_2114_ = lean_st_ref_set(v___y_2109_, v___x_2113_); +lean_inc(v___y_2109_); +v___f_2115_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__1___boxed), 3, 1); +lean_closure_set(v___f_2115_, 0, v___y_2109_); +v___x_2116_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2116_, 0, v___x_2114_); +v___x_2117_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2117_, 0, v___x_2116_); +v___x_2118_ = lean_unsigned_to_nat(0u); +v___x_2119_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2118_, v_a_2107_, v___x_2117_, v___f_2115_); +return v___x_2119_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__0___boxed(lean_object* v_waiter_2120_, lean_object* v_pendingProducer_2121_, lean_object* v_interestWaiter_2122_, lean_object* v_closed_2123_, lean_object* v_knownSize_2124_, lean_object* v_pendingIncompleteChunk_2125_, lean_object* v_a_2126_, lean_object* v_____r_2127_, lean_object* v___y_2128_, lean_object* v___y_2129_){ +_start: +{ +uint8_t v_closed_boxed_2130_; uint8_t v_a_5699__boxed_2131_; lean_object* v_res_2132_; +v_closed_boxed_2130_ = lean_unbox(v_closed_2123_); +v_a_5699__boxed_2131_ = lean_unbox(v_a_2126_); +v_res_2132_ = l_Std_Http_Body_Stream_recvSelector___lam__0(v_waiter_2120_, v_pendingProducer_2121_, v_interestWaiter_2122_, v_closed_boxed_2130_, v_knownSize_2124_, v_pendingIncompleteChunk_2125_, v_a_5699__boxed_2131_, v_____r_2127_, v___y_2128_); +lean_dec(v___y_2128_); +return v_res_2132_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3(lean_object* v_waiter_2137_, uint8_t v_a_2138_, lean_object* v___y_2139_, lean_object* v_x_2140_){ +_start: +{ +if (lean_obj_tag(v_x_2140_) == 0) +{ +lean_object* v_a_2142_; lean_object* v___x_2144_; uint8_t v_isShared_2145_; uint8_t v_isSharedCheck_2150_; +lean_dec_ref(v_waiter_2137_); +v_a_2142_ = lean_ctor_get(v_x_2140_, 0); +v_isSharedCheck_2150_ = !lean_is_exclusive(v_x_2140_); +if (v_isSharedCheck_2150_ == 0) +{ +v___x_2144_ = v_x_2140_; +v_isShared_2145_ = v_isSharedCheck_2150_; +goto v_resetjp_2143_; +} +else +{ +lean_inc(v_a_2142_); +lean_dec(v_x_2140_); +v___x_2144_ = lean_box(0); +v_isShared_2145_ = v_isSharedCheck_2150_; +goto v_resetjp_2143_; +} +v_resetjp_2143_: +{ +lean_object* v___x_2147_; +if (v_isShared_2145_ == 0) +{ +v___x_2147_ = v___x_2144_; +goto v_reusejp_2146_; +} +else +{ +lean_object* v_reuseFailAlloc_2149_; +v_reuseFailAlloc_2149_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2149_, 0, v_a_2142_); +v___x_2147_ = v_reuseFailAlloc_2149_; +goto v_reusejp_2146_; +} +v_reusejp_2146_: +{ +lean_object* v___x_2148_; +v___x_2148_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2148_, 0, v___x_2147_); +return v___x_2148_; +} } } else { -lean_object* v___f_2138_; lean_object* v___x_2139_; -lean_del_object(v___x_2126_); -lean_dec(v_a_2124_); -v___f_2138_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0)); -v___x_2139_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(v_waiter_2112_, v___f_2138_, v___y_2111_); -return v___x_2139_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5___boxed(lean_object* v___y_2141_, lean_object* v_waiter_2142_, lean_object* v_x_2143_, lean_object* v___y_2144_){ -_start: +lean_object* v_a_2151_; lean_object* v_pendingProducer_2152_; lean_object* v_pendingConsumer_2153_; lean_object* v_interestWaiter_2154_; uint8_t v_closed_2155_; lean_object* v_knownSize_2156_; lean_object* v_pendingIncompleteChunk_2157_; lean_object* v___x_2158_; lean_object* v___x_2159_; lean_object* v___f_2160_; +v_a_2151_ = lean_ctor_get(v_x_2140_, 0); +lean_inc(v_a_2151_); +lean_dec_ref(v_x_2140_); +v_pendingProducer_2152_ = lean_ctor_get(v_a_2151_, 0); +lean_inc_n(v_pendingProducer_2152_, 2); +v_pendingConsumer_2153_ = lean_ctor_get(v_a_2151_, 1); +lean_inc(v_pendingConsumer_2153_); +v_interestWaiter_2154_ = lean_ctor_get(v_a_2151_, 2); +lean_inc_n(v_interestWaiter_2154_, 2); +v_closed_2155_ = lean_ctor_get_uint8(v_a_2151_, sizeof(void*)*5); +v_knownSize_2156_ = lean_ctor_get(v_a_2151_, 3); +lean_inc_n(v_knownSize_2156_, 2); +v_pendingIncompleteChunk_2157_ = lean_ctor_get(v_a_2151_, 4); +lean_inc_n(v_pendingIncompleteChunk_2157_, 2); +lean_dec(v_a_2151_); +v___x_2158_ = lean_box(v_closed_2155_); +v___x_2159_ = lean_box(v_a_2138_); +lean_inc_ref(v_waiter_2137_); +v___f_2160_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__0___boxed), 10, 7); +lean_closure_set(v___f_2160_, 0, v_waiter_2137_); +lean_closure_set(v___f_2160_, 1, v_pendingProducer_2152_); +lean_closure_set(v___f_2160_, 2, v_interestWaiter_2154_); +lean_closure_set(v___f_2160_, 3, v___x_2158_); +lean_closure_set(v___f_2160_, 4, v_knownSize_2156_); +lean_closure_set(v___f_2160_, 5, v_pendingIncompleteChunk_2157_); +lean_closure_set(v___f_2160_, 6, v___x_2159_); +if (lean_obj_tag(v_pendingConsumer_2153_) == 0) { -lean_object* v_res_2145_; -v_res_2145_ = l_Std_Http_Body_Stream_recvSelector___lam__5(v___y_2141_, v_waiter_2142_, v_x_2143_); -lean_dec(v___y_2141_); -return v_res_2145_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6(lean_object* v___y_2146_, lean_object* v___f_2147_, lean_object* v_x_2148_){ -_start: -{ -if (lean_obj_tag(v_x_2148_) == 0) -{ -lean_object* v___x_2150_; -lean_dec_ref(v___f_2147_); -v___x_2150_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2150_, 0, v_x_2148_); -return v___x_2150_; +lean_object* v___x_2161_; lean_object* v___x_2162_; +lean_dec_ref(v___f_2160_); +v___x_2161_ = lean_box(0); +v___x_2162_ = l_Std_Http_Body_Stream_recvSelector___lam__0(v_waiter_2137_, v_pendingProducer_2152_, v_interestWaiter_2154_, v_closed_2155_, v_knownSize_2156_, v_pendingIncompleteChunk_2157_, v_a_2138_, v___x_2161_, v___y_2139_); +return v___x_2162_; } else { -lean_object* v___x_2151_; lean_object* v___x_2152_; uint8_t v___x_2153_; lean_object* v___x_2154_; -lean_dec_ref(v_x_2148_); -v___x_2151_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2(v___y_2146_); -v___x_2152_ = lean_unsigned_to_nat(0u); -v___x_2153_ = 0; -v___x_2154_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2152_, v___x_2153_, v___x_2151_, v___f_2147_); -return v___x_2154_; +lean_object* v___f_2163_; lean_object* v___x_2164_; lean_object* v___x_2165_; lean_object* v___x_2166_; +lean_dec_ref(v_pendingConsumer_2153_); +lean_dec(v_pendingIncompleteChunk_2157_); +lean_dec(v_knownSize_2156_); +lean_dec(v_interestWaiter_2154_); +lean_dec(v_pendingProducer_2152_); +lean_dec_ref(v_waiter_2137_); +lean_inc(v___y_2139_); +v___f_2163_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_close_x27___at___00Std_Http_Body_Stream_close_spec__0___lam__1___boxed), 4, 2); +lean_closure_set(v___f_2163_, 0, v___f_2160_); +lean_closure_set(v___f_2163_, 1, v___y_2139_); +v___x_2164_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__3___closed__1)); +v___x_2165_ = lean_unsigned_to_nat(0u); +v___x_2166_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2165_, v_a_2138_, v___x_2164_, v___f_2163_); +return v___x_2166_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6___boxed(lean_object* v___y_2155_, lean_object* v___f_2156_, lean_object* v_x_2157_, lean_object* v___y_2158_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__3___boxed(lean_object* v_waiter_2167_, lean_object* v_a_2168_, lean_object* v___y_2169_, lean_object* v_x_2170_, lean_object* v___y_2171_){ _start: { -lean_object* v_res_2159_; -v_res_2159_ = l_Std_Http_Body_Stream_recvSelector___lam__6(v___y_2155_, v___f_2156_, v_x_2157_); -lean_dec(v___y_2155_); -return v_res_2159_; +uint8_t v_a_5740__boxed_2172_; lean_object* v_res_2173_; +v_a_5740__boxed_2172_ = lean_unbox(v_a_2168_); +v_res_2173_ = l_Std_Http_Body_Stream_recvSelector___lam__3(v_waiter_2167_, v_a_5740__boxed_2172_, v___y_2169_, v_x_2170_); +lean_dec(v___y_2169_); +return v_res_2173_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7(lean_object* v_waiter_2160_, lean_object* v___y_2161_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2(lean_object* v___x_2174_, lean_object* v___y_2175_){ _start: { -lean_object* v___x_2163_; lean_object* v___f_2164_; lean_object* v___f_2165_; lean_object* v___x_2166_; uint8_t v___x_2167_; lean_object* v___x_2168_; -v___x_2163_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_2161_); -lean_inc_n(v___y_2161_, 2); -v___f_2164_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__5___boxed), 4, 2); -lean_closure_set(v___f_2164_, 0, v___y_2161_); -lean_closure_set(v___f_2164_, 1, v_waiter_2160_); -v___f_2165_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__6___boxed), 4, 2); -lean_closure_set(v___f_2165_, 0, v___y_2161_); -lean_closure_set(v___f_2165_, 1, v___f_2164_); -v___x_2166_ = lean_unsigned_to_nat(0u); -v___x_2167_ = 0; -v___x_2168_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2166_, v___x_2167_, v___x_2163_, v___f_2165_); -return v___x_2168_; +lean_object* v___x_2177_; lean_object* v___x_2178_; +v___x_2177_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2177_, 0, v___x_2174_); +v___x_2178_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2178_, 0, v___x_2177_); +return v___x_2178_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7___boxed(lean_object* v_waiter_2169_, lean_object* v___y_2170_, lean_object* v___y_2171_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__2___boxed(lean_object* v___x_2179_, lean_object* v___y_2180_, lean_object* v___y_2181_){ _start: { -lean_object* v_res_2172_; -v_res_2172_ = l_Std_Http_Body_Stream_recvSelector___lam__7(v_waiter_2169_, v___y_2170_); -lean_dec(v___y_2170_); -return v_res_2172_; +lean_object* v_res_2182_; +v_res_2182_ = l_Std_Http_Body_Stream_recvSelector___lam__2(v___x_2179_, v___y_2180_); +lean_dec(v___y_2180_); +return v_res_2182_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__8(lean_object* v_stream_2173_, lean_object* v_waiter_2174_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4(lean_object* v___y_2185_, lean_object* v_waiter_2186_, lean_object* v_x_2187_){ _start: { -lean_object* v___f_2176_; lean_object* v___x_2177_; -v___f_2176_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__7___boxed), 3, 1); -lean_closure_set(v___f_2176_, 0, v_waiter_2174_); -v___x_2177_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_2173_, v___f_2176_); -return v___x_2177_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__8___boxed(lean_object* v_stream_2178_, lean_object* v_waiter_2179_, lean_object* v___y_2180_){ -_start: +if (lean_obj_tag(v_x_2187_) == 0) { -lean_object* v_res_2181_; -v_res_2181_ = l_Std_Http_Body_Stream_recvSelector___lam__8(v_stream_2178_, v_waiter_2179_); -return v_res_2181_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9(lean_object* v___y_2186_, lean_object* v___f_2187_, lean_object* v_x_2188_){ -_start: +lean_object* v_a_2189_; lean_object* v___x_2191_; uint8_t v_isShared_2192_; uint8_t v_isSharedCheck_2197_; +lean_dec_ref(v_waiter_2186_); +v_a_2189_ = lean_ctor_get(v_x_2187_, 0); +v_isSharedCheck_2197_ = !lean_is_exclusive(v_x_2187_); +if (v_isSharedCheck_2197_ == 0) { -if (lean_obj_tag(v_x_2188_) == 0) -{ -lean_object* v_a_2190_; lean_object* v___x_2192_; uint8_t v_isShared_2193_; uint8_t v_isSharedCheck_2198_; -lean_dec_ref(v___f_2187_); -v_a_2190_ = lean_ctor_get(v_x_2188_, 0); -v_isSharedCheck_2198_ = !lean_is_exclusive(v_x_2188_); -if (v_isSharedCheck_2198_ == 0) -{ -v___x_2192_ = v_x_2188_; -v_isShared_2193_ = v_isSharedCheck_2198_; -goto v_resetjp_2191_; +v___x_2191_ = v_x_2187_; +v_isShared_2192_ = v_isSharedCheck_2197_; +goto v_resetjp_2190_; } else { -lean_inc(v_a_2190_); -lean_dec(v_x_2188_); -v___x_2192_ = lean_box(0); -v_isShared_2193_ = v_isSharedCheck_2198_; -goto v_resetjp_2191_; +lean_inc(v_a_2189_); +lean_dec(v_x_2187_); +v___x_2191_ = lean_box(0); +v_isShared_2192_ = v_isSharedCheck_2197_; +goto v_resetjp_2190_; } -v_resetjp_2191_: +v_resetjp_2190_: +{ +lean_object* v___x_2194_; +if (v_isShared_2192_ == 0) +{ +v___x_2194_ = v___x_2191_; +goto v_reusejp_2193_; +} +else +{ +lean_object* v_reuseFailAlloc_2196_; +v_reuseFailAlloc_2196_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2196_, 0, v_a_2189_); +v___x_2194_ = v_reuseFailAlloc_2196_; +goto v_reusejp_2193_; +} +v_reusejp_2193_: { lean_object* v___x_2195_; -if (v_isShared_2193_ == 0) -{ -v___x_2195_ = v___x_2192_; -goto v_reusejp_2194_; -} -else -{ -lean_object* v_reuseFailAlloc_2197_; -v_reuseFailAlloc_2197_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2197_, 0, v_a_2190_); -v___x_2195_ = v_reuseFailAlloc_2197_; -goto v_reusejp_2194_; -} -v_reusejp_2194_: -{ -lean_object* v___x_2196_; -v___x_2196_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2196_, 0, v___x_2195_); -return v___x_2196_; +v___x_2195_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2195_, 0, v___x_2194_); +return v___x_2195_; } } } else { -lean_object* v_a_2199_; uint8_t v___x_2200_; -v_a_2199_ = lean_ctor_get(v_x_2188_, 0); -lean_inc(v_a_2199_); -lean_dec_ref(v_x_2188_); -v___x_2200_ = lean_unbox(v_a_2199_); -lean_dec(v_a_2199_); -if (v___x_2200_ == 0) +lean_object* v_a_2198_; lean_object* v___x_2200_; uint8_t v_isShared_2201_; uint8_t v_isSharedCheck_2214_; +v_a_2198_ = lean_ctor_get(v_x_2187_, 0); +v_isSharedCheck_2214_ = !lean_is_exclusive(v_x_2187_); +if (v_isSharedCheck_2214_ == 0) { -lean_object* v___x_2201_; -lean_dec_ref(v___f_2187_); -v___x_2201_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__9___closed__1)); -return v___x_2201_; +v___x_2200_ = v_x_2187_; +v_isShared_2201_ = v_isSharedCheck_2214_; +goto v_resetjp_2199_; } else { -lean_object* v___x_2202_; lean_object* v___x_2203_; uint8_t v___x_2204_; lean_object* v___x_2205_; -v___x_2202_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0(v___y_2186_); -v___x_2203_ = lean_unsigned_to_nat(0u); -v___x_2204_ = 0; -v___x_2205_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2203_, v___x_2204_, v___x_2202_, v___f_2187_); -return v___x_2205_; +lean_inc(v_a_2198_); +lean_dec(v_x_2187_); +v___x_2200_ = lean_box(0); +v_isShared_2201_ = v_isSharedCheck_2214_; +goto v_resetjp_2199_; +} +v_resetjp_2199_: +{ +uint8_t v___x_2202_; +v___x_2202_ = lean_unbox(v_a_2198_); +if (v___x_2202_ == 0) +{ +lean_object* v___x_2203_; lean_object* v___f_2204_; lean_object* v___x_2206_; +v___x_2203_ = lean_st_ref_get(v___y_2185_); +lean_inc(v___y_2185_); +lean_inc(v_a_2198_); +v___f_2204_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__3___boxed), 5, 3); +lean_closure_set(v___f_2204_, 0, v_waiter_2186_); +lean_closure_set(v___f_2204_, 1, v_a_2198_); +lean_closure_set(v___f_2204_, 2, v___y_2185_); +if (v_isShared_2201_ == 0) +{ +lean_ctor_set(v___x_2200_, 0, v___x_2203_); +v___x_2206_ = v___x_2200_; +goto v_reusejp_2205_; +} +else +{ +lean_object* v_reuseFailAlloc_2211_; +v_reuseFailAlloc_2211_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2211_, 0, v___x_2203_); +v___x_2206_ = v_reuseFailAlloc_2211_; +goto v_reusejp_2205_; +} +v_reusejp_2205_: +{ +lean_object* v___x_2207_; lean_object* v___x_2208_; uint8_t v___x_2209_; lean_object* v___x_2210_; +v___x_2207_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2207_, 0, v___x_2206_); +v___x_2208_ = lean_unsigned_to_nat(0u); +v___x_2209_ = lean_unbox(v_a_2198_); +lean_dec(v_a_2198_); +v___x_2210_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2208_, v___x_2209_, v___x_2207_, v___f_2204_); +return v___x_2210_; +} +} +else +{ +lean_object* v___f_2212_; lean_object* v___x_2213_; +lean_del_object(v___x_2200_); +lean_dec(v_a_2198_); +v___f_2212_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0)); +v___x_2213_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_recvSelector_spec__1(v_waiter_2186_, v___f_2212_, v___y_2185_); +return v___x_2213_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__9___boxed(lean_object* v___y_2206_, lean_object* v___f_2207_, lean_object* v_x_2208_, lean_object* v___y_2209_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__4___boxed(lean_object* v___y_2215_, lean_object* v_waiter_2216_, lean_object* v_x_2217_, lean_object* v___y_2218_){ _start: { -lean_object* v_res_2210_; -v_res_2210_ = l_Std_Http_Body_Stream_recvSelector___lam__9(v___y_2206_, v___f_2207_, v_x_2208_); -lean_dec(v___y_2206_); -return v_res_2210_; +lean_object* v_res_2219_; +v_res_2219_ = l_Std_Http_Body_Stream_recvSelector___lam__4(v___y_2215_, v_waiter_2216_, v_x_2217_); +lean_dec(v___y_2215_); +return v_res_2219_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__10(lean_object* v___y_2211_, lean_object* v___f_2212_, lean_object* v_x_2213_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5(lean_object* v___y_2220_, lean_object* v___f_2221_, lean_object* v_x_2222_){ _start: { -if (lean_obj_tag(v_x_2213_) == 0) +if (lean_obj_tag(v_x_2222_) == 0) { -lean_object* v_a_2215_; lean_object* v___x_2217_; uint8_t v_isShared_2218_; uint8_t v_isSharedCheck_2223_; -lean_dec_ref(v___f_2212_); -v_a_2215_ = lean_ctor_get(v_x_2213_, 0); -v_isSharedCheck_2223_ = !lean_is_exclusive(v_x_2213_); -if (v_isSharedCheck_2223_ == 0) -{ -v___x_2217_ = v_x_2213_; -v_isShared_2218_ = v_isSharedCheck_2223_; -goto v_resetjp_2216_; +lean_object* v___x_2224_; +lean_dec_ref(v___f_2221_); +v___x_2224_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2224_, 0, v_x_2222_); +return v___x_2224_; } else { -lean_inc(v_a_2215_); -lean_dec(v_x_2213_); -v___x_2217_ = lean_box(0); -v_isShared_2218_ = v_isSharedCheck_2223_; -goto v_resetjp_2216_; -} -v_resetjp_2216_: -{ -lean_object* v___x_2220_; -if (v_isShared_2218_ == 0) -{ -v___x_2220_ = v___x_2217_; -goto v_reusejp_2219_; -} -else -{ -lean_object* v_reuseFailAlloc_2222_; -v_reuseFailAlloc_2222_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2222_, 0, v_a_2215_); -v___x_2220_ = v_reuseFailAlloc_2222_; -goto v_reusejp_2219_; -} -v_reusejp_2219_: -{ -lean_object* v___x_2221_; -v___x_2221_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2221_, 0, v___x_2220_); -return v___x_2221_; +lean_object* v___x_2225_; lean_object* v___x_2226_; uint8_t v___x_2227_; lean_object* v___x_2228_; +lean_dec_ref(v_x_2222_); +v___x_2225_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_tryRecvBody_spec__0(v___y_2220_); +v___x_2226_ = lean_unsigned_to_nat(0u); +v___x_2227_ = 0; +v___x_2228_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2226_, v___x_2227_, v___x_2225_, v___f_2221_); +return v___x_2228_; } } } -else -{ -lean_object* v___x_2224_; lean_object* v___x_2225_; uint8_t v___x_2226_; lean_object* v___x_2227_; -lean_dec_ref(v_x_2213_); -v___x_2224_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_recvReady_x27___at___00Std_Http_Body_Stream_recvSelector_spec__2(v___y_2211_); -v___x_2225_ = lean_unsigned_to_nat(0u); -v___x_2226_ = 0; -v___x_2227_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2225_, v___x_2226_, v___x_2224_, v___f_2212_); -return v___x_2227_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__10___boxed(lean_object* v___y_2228_, lean_object* v___f_2229_, lean_object* v_x_2230_, lean_object* v___y_2231_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__5___boxed(lean_object* v___y_2229_, lean_object* v___f_2230_, lean_object* v_x_2231_, lean_object* v___y_2232_){ _start: { -lean_object* v_res_2232_; -v_res_2232_ = l_Std_Http_Body_Stream_recvSelector___lam__10(v___y_2228_, v___f_2229_, v_x_2230_); -lean_dec(v___y_2228_); -return v_res_2232_; +lean_object* v_res_2233_; +v_res_2233_ = l_Std_Http_Body_Stream_recvSelector___lam__5(v___y_2229_, v___f_2230_, v_x_2231_); +lean_dec(v___y_2229_); +return v_res_2233_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__11(lean_object* v___f_2233_, lean_object* v___y_2234_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6(lean_object* v_waiter_2234_, lean_object* v___y_2235_){ _start: { -lean_object* v___x_2236_; lean_object* v___f_2237_; lean_object* v___f_2238_; lean_object* v___x_2239_; uint8_t v___x_2240_; lean_object* v___x_2241_; -v___x_2236_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_2234_); -lean_inc_n(v___y_2234_, 2); -v___f_2237_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__9___boxed), 4, 2); -lean_closure_set(v___f_2237_, 0, v___y_2234_); -lean_closure_set(v___f_2237_, 1, v___f_2233_); -v___f_2238_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__10___boxed), 4, 2); -lean_closure_set(v___f_2238_, 0, v___y_2234_); -lean_closure_set(v___f_2238_, 1, v___f_2237_); -v___x_2239_ = lean_unsigned_to_nat(0u); -v___x_2240_ = 0; -v___x_2241_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2239_, v___x_2240_, v___x_2236_, v___f_2238_); -return v___x_2241_; +lean_object* v___x_2237_; lean_object* v___f_2238_; lean_object* v___f_2239_; lean_object* v___x_2240_; uint8_t v___x_2241_; lean_object* v___x_2242_; +v___x_2237_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_2235_); +lean_inc_n(v___y_2235_, 2); +v___f_2238_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__4___boxed), 4, 2); +lean_closure_set(v___f_2238_, 0, v___y_2235_); +lean_closure_set(v___f_2238_, 1, v_waiter_2234_); +v___f_2239_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__5___boxed), 4, 2); +lean_closure_set(v___f_2239_, 0, v___y_2235_); +lean_closure_set(v___f_2239_, 1, v___f_2238_); +v___x_2240_ = lean_unsigned_to_nat(0u); +v___x_2241_ = 0; +v___x_2242_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2240_, v___x_2241_, v___x_2237_, v___f_2239_); +return v___x_2242_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__11___boxed(lean_object* v___f_2242_, lean_object* v___y_2243_, lean_object* v___y_2244_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__6___boxed(lean_object* v_waiter_2243_, lean_object* v___y_2244_, lean_object* v___y_2245_){ _start: { -lean_object* v_res_2245_; -v_res_2245_ = l_Std_Http_Body_Stream_recvSelector___lam__11(v___f_2242_, v___y_2243_); -lean_dec(v___y_2243_); -return v_res_2245_; +lean_object* v_res_2246_; +v_res_2246_ = l_Std_Http_Body_Stream_recvSelector___lam__6(v_waiter_2243_, v___y_2244_); +lean_dec(v___y_2244_); +return v_res_2246_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector(lean_object* v_stream_2250_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7(lean_object* v_stream_2247_, lean_object* v_waiter_2248_){ _start: { -lean_object* v___f_2251_; lean_object* v___f_2252_; lean_object* v___f_2253_; lean_object* v___x_2254_; lean_object* v___x_2255_; lean_object* v___x_2256_; -v___f_2251_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___closed__1)); -lean_inc_ref_n(v_stream_2250_, 2); -v___f_2252_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__8___boxed), 3, 1); -lean_closure_set(v___f_2252_, 0, v_stream_2250_); -v___f_2253_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___closed__2)); -v___x_2254_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); -lean_closure_set(v___x_2254_, 0, lean_box(0)); -lean_closure_set(v___x_2254_, 1, lean_box(0)); -lean_closure_set(v___x_2254_, 2, v_stream_2250_); -lean_closure_set(v___x_2254_, 3, v___f_2253_); -v___x_2255_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); -lean_closure_set(v___x_2255_, 0, lean_box(0)); -lean_closure_set(v___x_2255_, 1, lean_box(0)); -lean_closure_set(v___x_2255_, 2, v_stream_2250_); -lean_closure_set(v___x_2255_, 3, v___f_2251_); -v___x_2256_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_2256_, 0, v___x_2254_); -lean_ctor_set(v___x_2256_, 1, v___f_2252_); -lean_ctor_set(v___x_2256_, 2, v___x_2255_); -return v___x_2256_; +lean_object* v___f_2250_; lean_object* v___x_2251_; +v___f_2250_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__6___boxed), 3, 1); +lean_closure_set(v___f_2250_, 0, v_waiter_2248_); +v___x_2251_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_2247_, v___f_2250_); +return v___x_2251_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1(lean_object* v_step_2257_, lean_object* v_acc_2258_, lean_object* v___f_2259_, lean_object* v_x_2260_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector___lam__7___boxed(lean_object* v_stream_2252_, lean_object* v_waiter_2253_, lean_object* v___y_2254_){ _start: { -if (lean_obj_tag(v_x_2260_) == 0) -{ -lean_object* v_a_2262_; lean_object* v___x_2264_; uint8_t v_isShared_2265_; uint8_t v_isSharedCheck_2270_; -lean_dec_ref(v___f_2259_); -lean_dec(v_acc_2258_); -lean_dec_ref(v_step_2257_); -v_a_2262_ = lean_ctor_get(v_x_2260_, 0); -v_isSharedCheck_2270_ = !lean_is_exclusive(v_x_2260_); -if (v_isSharedCheck_2270_ == 0) -{ -v___x_2264_ = v_x_2260_; -v_isShared_2265_ = v_isSharedCheck_2270_; -goto v_resetjp_2263_; -} -else -{ -lean_inc(v_a_2262_); -lean_dec(v_x_2260_); -v___x_2264_ = lean_box(0); -v_isShared_2265_ = v_isSharedCheck_2270_; -goto v_resetjp_2263_; -} -v_resetjp_2263_: -{ -lean_object* v___x_2267_; -if (v_isShared_2265_ == 0) -{ -v___x_2267_ = v___x_2264_; -goto v_reusejp_2266_; -} -else -{ -lean_object* v_reuseFailAlloc_2269_; -v_reuseFailAlloc_2269_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2269_, 0, v_a_2262_); -v___x_2267_ = v_reuseFailAlloc_2269_; -goto v_reusejp_2266_; -} -v_reusejp_2266_: -{ -lean_object* v___x_2268_; -v___x_2268_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2268_, 0, v___x_2267_); -return v___x_2268_; +lean_object* v_res_2255_; +v_res_2255_ = l_Std_Http_Body_Stream_recvSelector___lam__7(v_stream_2252_, v_waiter_2253_); +return v_res_2255_; } } -} -else -{ -lean_object* v_a_2271_; lean_object* v___x_2273_; uint8_t v_isShared_2274_; uint8_t v_isSharedCheck_2284_; -v_a_2271_ = lean_ctor_get(v_x_2260_, 0); -v_isSharedCheck_2284_ = !lean_is_exclusive(v_x_2260_); -if (v_isSharedCheck_2284_ == 0) -{ -v___x_2273_ = v_x_2260_; -v_isShared_2274_ = v_isSharedCheck_2284_; -goto v_resetjp_2272_; -} -else -{ -lean_inc(v_a_2271_); -lean_dec(v_x_2260_); -v___x_2273_ = lean_box(0); -v_isShared_2274_ = v_isSharedCheck_2284_; -goto v_resetjp_2272_; -} -v_resetjp_2272_: -{ -if (lean_obj_tag(v_a_2271_) == 1) -{ -lean_object* v_val_2275_; lean_object* v___x_2276_; lean_object* v___x_2277_; uint8_t v___x_2278_; lean_object* v___x_2279_; -lean_del_object(v___x_2273_); -v_val_2275_ = lean_ctor_get(v_a_2271_, 0); -lean_inc(v_val_2275_); -lean_dec_ref(v_a_2271_); -v___x_2276_ = lean_apply_3(v_step_2257_, v_val_2275_, v_acc_2258_, lean_box(0)); -v___x_2277_ = lean_unsigned_to_nat(0u); -v___x_2278_ = 0; -v___x_2279_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2277_, v___x_2278_, v___x_2276_, v___f_2259_); -return v___x_2279_; -} -else -{ -lean_object* v___x_2281_; -lean_dec(v_a_2271_); -lean_dec_ref(v___f_2259_); -lean_dec_ref(v_step_2257_); -if (v_isShared_2274_ == 0) -{ -lean_ctor_set(v___x_2273_, 0, v_acc_2258_); -v___x_2281_ = v___x_2273_; -goto v_reusejp_2280_; -} -else -{ -lean_object* v_reuseFailAlloc_2283_; -v_reuseFailAlloc_2283_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2283_, 0, v_acc_2258_); -v___x_2281_ = v_reuseFailAlloc_2283_; -goto v_reusejp_2280_; -} -v_reusejp_2280_: -{ -lean_object* v___x_2282_; -v___x_2282_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2282_, 0, v___x_2281_); -return v___x_2282_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1___boxed(lean_object* v_step_2285_, lean_object* v_acc_2286_, lean_object* v___f_2287_, lean_object* v_x_2288_, lean_object* v___y_2289_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_recvSelector(lean_object* v_stream_2257_){ _start: { -lean_object* v_res_2290_; -v_res_2290_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1(v_step_2285_, v_acc_2286_, v___f_2287_, v_x_2288_); -return v_res_2290_; +lean_object* v___f_2258_; lean_object* v___f_2259_; lean_object* v___f_2260_; lean_object* v___x_2261_; lean_object* v___x_2262_; lean_object* v___x_2263_; +v___f_2258_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___closed__0)); +lean_inc_ref_n(v_stream_2257_, 2); +v___f_2259_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_recvSelector___lam__7___boxed), 3, 1); +lean_closure_set(v___f_2259_, 0, v_stream_2257_); +v___f_2260_ = ((lean_object*)(l_Std_Http_Body_Stream_tryRecvBody___closed__1)); +v___x_2261_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); +lean_closure_set(v___x_2261_, 0, lean_box(0)); +lean_closure_set(v___x_2261_, 1, lean_box(0)); +lean_closure_set(v___x_2261_, 2, v_stream_2257_); +lean_closure_set(v___x_2261_, 3, v___f_2260_); +v___x_2262_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); +lean_closure_set(v___x_2262_, 0, lean_box(0)); +lean_closure_set(v___x_2262_, 1, lean_box(0)); +lean_closure_set(v___x_2262_, 2, v_stream_2257_); +lean_closure_set(v___x_2262_, 3, v___f_2258_); +v___x_2263_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_2263_, 0, v___x_2261_); +lean_ctor_set(v___x_2263_, 1, v___f_2259_); +lean_ctor_set(v___x_2263_, 2, v___x_2262_); +return v___x_2263_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0(lean_object* v_step_2291_, lean_object* v_stream_2292_, lean_object* v_x_2293_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1(lean_object* v_step_2264_, lean_object* v_acc_2265_, lean_object* v___f_2266_, lean_object* v_x_2267_){ _start: { -if (lean_obj_tag(v_x_2293_) == 0) +if (lean_obj_tag(v_x_2267_) == 0) { -lean_object* v_a_2295_; lean_object* v___x_2297_; uint8_t v_isShared_2298_; uint8_t v_isSharedCheck_2303_; -lean_dec_ref(v_stream_2292_); -lean_dec_ref(v_step_2291_); -v_a_2295_ = lean_ctor_get(v_x_2293_, 0); -v_isSharedCheck_2303_ = !lean_is_exclusive(v_x_2293_); -if (v_isSharedCheck_2303_ == 0) +lean_object* v_a_2269_; lean_object* v___x_2271_; uint8_t v_isShared_2272_; uint8_t v_isSharedCheck_2277_; +lean_dec_ref(v___f_2266_); +lean_dec(v_acc_2265_); +lean_dec_ref(v_step_2264_); +v_a_2269_ = lean_ctor_get(v_x_2267_, 0); +v_isSharedCheck_2277_ = !lean_is_exclusive(v_x_2267_); +if (v_isSharedCheck_2277_ == 0) { -v___x_2297_ = v_x_2293_; -v_isShared_2298_ = v_isSharedCheck_2303_; -goto v_resetjp_2296_; +v___x_2271_ = v_x_2267_; +v_isShared_2272_ = v_isSharedCheck_2277_; +goto v_resetjp_2270_; } else { -lean_inc(v_a_2295_); -lean_dec(v_x_2293_); -v___x_2297_ = lean_box(0); -v_isShared_2298_ = v_isSharedCheck_2303_; -goto v_resetjp_2296_; +lean_inc(v_a_2269_); +lean_dec(v_x_2267_); +v___x_2271_ = lean_box(0); +v_isShared_2272_ = v_isSharedCheck_2277_; +goto v_resetjp_2270_; } -v_resetjp_2296_: +v_resetjp_2270_: { -lean_object* v___x_2300_; -if (v_isShared_2298_ == 0) +lean_object* v___x_2274_; +if (v_isShared_2272_ == 0) { -v___x_2300_ = v___x_2297_; -goto v_reusejp_2299_; +v___x_2274_ = v___x_2271_; +goto v_reusejp_2273_; } else { -lean_object* v_reuseFailAlloc_2302_; -v_reuseFailAlloc_2302_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2302_, 0, v_a_2295_); -v___x_2300_ = v_reuseFailAlloc_2302_; -goto v_reusejp_2299_; +lean_object* v_reuseFailAlloc_2276_; +v_reuseFailAlloc_2276_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2276_, 0, v_a_2269_); +v___x_2274_ = v_reuseFailAlloc_2276_; +goto v_reusejp_2273_; } -v_reusejp_2299_: +v_reusejp_2273_: { -lean_object* v___x_2301_; -v___x_2301_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2301_, 0, v___x_2300_); -return v___x_2301_; +lean_object* v___x_2275_; +v___x_2275_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2275_, 0, v___x_2274_); +return v___x_2275_; } } } else { -lean_object* v_a_2304_; lean_object* v___x_2306_; uint8_t v_isShared_2307_; uint8_t v_isSharedCheck_2321_; -v_a_2304_ = lean_ctor_get(v_x_2293_, 0); -v_isSharedCheck_2321_ = !lean_is_exclusive(v_x_2293_); -if (v_isSharedCheck_2321_ == 0) +lean_object* v_a_2278_; lean_object* v___x_2280_; uint8_t v_isShared_2281_; uint8_t v_isSharedCheck_2291_; +v_a_2278_ = lean_ctor_get(v_x_2267_, 0); +v_isSharedCheck_2291_ = !lean_is_exclusive(v_x_2267_); +if (v_isSharedCheck_2291_ == 0) { -v___x_2306_ = v_x_2293_; -v_isShared_2307_ = v_isSharedCheck_2321_; -goto v_resetjp_2305_; +v___x_2280_ = v_x_2267_; +v_isShared_2281_ = v_isSharedCheck_2291_; +goto v_resetjp_2279_; } else { -lean_inc(v_a_2304_); -lean_dec(v_x_2293_); -v___x_2306_ = lean_box(0); -v_isShared_2307_ = v_isSharedCheck_2321_; -goto v_resetjp_2305_; +lean_inc(v_a_2278_); +lean_dec(v_x_2267_); +v___x_2280_ = lean_box(0); +v_isShared_2281_ = v_isSharedCheck_2291_; +goto v_resetjp_2279_; } -v_resetjp_2305_: +v_resetjp_2279_: { -if (lean_obj_tag(v_a_2304_) == 0) +if (lean_obj_tag(v_a_2278_) == 1) { -lean_object* v_a_2308_; lean_object* v___x_2310_; uint8_t v_isShared_2311_; uint8_t v_isSharedCheck_2318_; -lean_dec_ref(v_stream_2292_); -lean_dec_ref(v_step_2291_); -v_a_2308_ = lean_ctor_get(v_a_2304_, 0); -v_isSharedCheck_2318_ = !lean_is_exclusive(v_a_2304_); -if (v_isSharedCheck_2318_ == 0) -{ -v___x_2310_ = v_a_2304_; -v_isShared_2311_ = v_isSharedCheck_2318_; -goto v_resetjp_2309_; +lean_object* v_val_2282_; lean_object* v___x_2283_; lean_object* v___x_2284_; uint8_t v___x_2285_; lean_object* v___x_2286_; +lean_del_object(v___x_2280_); +v_val_2282_ = lean_ctor_get(v_a_2278_, 0); +lean_inc(v_val_2282_); +lean_dec_ref(v_a_2278_); +v___x_2283_ = lean_apply_3(v_step_2264_, v_val_2282_, v_acc_2265_, lean_box(0)); +v___x_2284_ = lean_unsigned_to_nat(0u); +v___x_2285_ = 0; +v___x_2286_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2284_, v___x_2285_, v___x_2283_, v___f_2266_); +return v___x_2286_; } else { -lean_inc(v_a_2308_); -lean_dec(v_a_2304_); -v___x_2310_ = lean_box(0); -v_isShared_2311_ = v_isSharedCheck_2318_; -goto v_resetjp_2309_; -} -v_resetjp_2309_: +lean_object* v___x_2288_; +lean_dec(v_a_2278_); +lean_dec_ref(v___f_2266_); +lean_dec_ref(v_step_2264_); +if (v_isShared_2281_ == 0) { -lean_object* v___x_2313_; -if (v_isShared_2307_ == 0) -{ -lean_ctor_set(v___x_2306_, 0, v_a_2308_); -v___x_2313_ = v___x_2306_; -goto v_reusejp_2312_; +lean_ctor_set(v___x_2280_, 0, v_acc_2265_); +v___x_2288_ = v___x_2280_; +goto v_reusejp_2287_; } else { -lean_object* v_reuseFailAlloc_2317_; -v_reuseFailAlloc_2317_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2317_, 0, v_a_2308_); -v___x_2313_ = v_reuseFailAlloc_2317_; -goto v_reusejp_2312_; +lean_object* v_reuseFailAlloc_2290_; +v_reuseFailAlloc_2290_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2290_, 0, v_acc_2265_); +v___x_2288_ = v_reuseFailAlloc_2290_; +goto v_reusejp_2287_; } -v_reusejp_2312_: +v_reusejp_2287_: { -lean_object* v___x_2315_; -if (v_isShared_2311_ == 0) +lean_object* v___x_2289_; +v___x_2289_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2289_, 0, v___x_2288_); +return v___x_2289_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1___boxed(lean_object* v_step_2292_, lean_object* v_acc_2293_, lean_object* v___f_2294_, lean_object* v_x_2295_, lean_object* v___y_2296_){ +_start: { -lean_ctor_set(v___x_2310_, 0, v___x_2313_); -v___x_2315_ = v___x_2310_; -goto v_reusejp_2314_; +lean_object* v_res_2297_; +v_res_2297_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1(v_step_2292_, v_acc_2293_, v___f_2294_, v_x_2295_); +return v_res_2297_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0(lean_object* v_step_2298_, lean_object* v_stream_2299_, lean_object* v_x_2300_){ +_start: +{ +if (lean_obj_tag(v_x_2300_) == 0) +{ +lean_object* v_a_2302_; lean_object* v___x_2304_; uint8_t v_isShared_2305_; uint8_t v_isSharedCheck_2310_; +lean_dec_ref(v_stream_2299_); +lean_dec_ref(v_step_2298_); +v_a_2302_ = lean_ctor_get(v_x_2300_, 0); +v_isSharedCheck_2310_ = !lean_is_exclusive(v_x_2300_); +if (v_isSharedCheck_2310_ == 0) +{ +v___x_2304_ = v_x_2300_; +v_isShared_2305_ = v_isSharedCheck_2310_; +goto v_resetjp_2303_; } else { -lean_object* v_reuseFailAlloc_2316_; -v_reuseFailAlloc_2316_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2316_, 0, v___x_2313_); -v___x_2315_ = v_reuseFailAlloc_2316_; -goto v_reusejp_2314_; +lean_inc(v_a_2302_); +lean_dec(v_x_2300_); +v___x_2304_ = lean_box(0); +v_isShared_2305_ = v_isSharedCheck_2310_; +goto v_resetjp_2303_; } -v_reusejp_2314_: +v_resetjp_2303_: { -return v___x_2315_; +lean_object* v___x_2307_; +if (v_isShared_2305_ == 0) +{ +v___x_2307_ = v___x_2304_; +goto v_reusejp_2306_; +} +else +{ +lean_object* v_reuseFailAlloc_2309_; +v_reuseFailAlloc_2309_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2309_, 0, v_a_2302_); +v___x_2307_ = v_reuseFailAlloc_2309_; +goto v_reusejp_2306_; +} +v_reusejp_2306_: +{ +lean_object* v___x_2308_; +v___x_2308_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2308_, 0, v___x_2307_); +return v___x_2308_; +} +} +} +else +{ +lean_object* v_a_2311_; lean_object* v___x_2313_; uint8_t v_isShared_2314_; uint8_t v_isSharedCheck_2328_; +v_a_2311_ = lean_ctor_get(v_x_2300_, 0); +v_isSharedCheck_2328_ = !lean_is_exclusive(v_x_2300_); +if (v_isSharedCheck_2328_ == 0) +{ +v___x_2313_ = v_x_2300_; +v_isShared_2314_ = v_isSharedCheck_2328_; +goto v_resetjp_2312_; +} +else +{ +lean_inc(v_a_2311_); +lean_dec(v_x_2300_); +v___x_2313_ = lean_box(0); +v_isShared_2314_ = v_isSharedCheck_2328_; +goto v_resetjp_2312_; +} +v_resetjp_2312_: +{ +if (lean_obj_tag(v_a_2311_) == 0) +{ +lean_object* v_a_2315_; lean_object* v___x_2317_; uint8_t v_isShared_2318_; uint8_t v_isSharedCheck_2325_; +lean_dec_ref(v_stream_2299_); +lean_dec_ref(v_step_2298_); +v_a_2315_ = lean_ctor_get(v_a_2311_, 0); +v_isSharedCheck_2325_ = !lean_is_exclusive(v_a_2311_); +if (v_isSharedCheck_2325_ == 0) +{ +v___x_2317_ = v_a_2311_; +v_isShared_2318_ = v_isSharedCheck_2325_; +goto v_resetjp_2316_; +} +else +{ +lean_inc(v_a_2315_); +lean_dec(v_a_2311_); +v___x_2317_ = lean_box(0); +v_isShared_2318_ = v_isSharedCheck_2325_; +goto v_resetjp_2316_; +} +v_resetjp_2316_: +{ +lean_object* v___x_2320_; +if (v_isShared_2314_ == 0) +{ +lean_ctor_set(v___x_2313_, 0, v_a_2315_); +v___x_2320_ = v___x_2313_; +goto v_reusejp_2319_; +} +else +{ +lean_object* v_reuseFailAlloc_2324_; +v_reuseFailAlloc_2324_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2324_, 0, v_a_2315_); +v___x_2320_ = v_reuseFailAlloc_2324_; +goto v_reusejp_2319_; +} +v_reusejp_2319_: +{ +lean_object* v___x_2322_; +if (v_isShared_2318_ == 0) +{ +lean_ctor_set(v___x_2317_, 0, v___x_2320_); +v___x_2322_ = v___x_2317_; +goto v_reusejp_2321_; +} +else +{ +lean_object* v_reuseFailAlloc_2323_; +v_reuseFailAlloc_2323_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2323_, 0, v___x_2320_); +v___x_2322_ = v_reuseFailAlloc_2323_; +goto v_reusejp_2321_; +} +v_reusejp_2321_: +{ +return v___x_2322_; } } } } else { -lean_object* v_a_2319_; lean_object* v___x_2320_; -lean_del_object(v___x_2306_); -v_a_2319_ = lean_ctor_get(v_a_2304_, 0); -lean_inc(v_a_2319_); -lean_dec_ref(v_a_2304_); -v___x_2320_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2291_, v_stream_2292_, v_a_2319_); -return v___x_2320_; +lean_object* v_a_2326_; lean_object* v___x_2327_; +lean_del_object(v___x_2313_); +v_a_2326_ = lean_ctor_get(v_a_2311_, 0); +lean_inc(v_a_2326_); +lean_dec_ref(v_a_2311_); +v___x_2327_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2298_, v_stream_2299_, v_a_2326_); +return v___x_2327_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0___boxed(lean_object* v_step_2322_, lean_object* v_stream_2323_, lean_object* v_x_2324_, lean_object* v___y_2325_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0___boxed(lean_object* v_step_2329_, lean_object* v_stream_2330_, lean_object* v_x_2331_, lean_object* v___y_2332_){ _start: { -lean_object* v_res_2326_; -v_res_2326_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0(v_step_2322_, v_stream_2323_, v_x_2324_); -return v_res_2326_; +lean_object* v_res_2333_; +v_res_2333_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0(v_step_2329_, v_stream_2330_, v_x_2331_); +return v_res_2333_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(lean_object* v_step_2327_, lean_object* v_stream_2328_, lean_object* v_acc_2329_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(lean_object* v_step_2334_, lean_object* v_stream_2335_, lean_object* v_acc_2336_){ _start: { -lean_object* v___x_2331_; lean_object* v___f_2332_; lean_object* v___f_2333_; lean_object* v___x_2334_; uint8_t v___x_2335_; lean_object* v___x_2336_; -lean_inc_ref(v_stream_2328_); -v___x_2331_ = l_Std_Http_Body_Stream_recv(v_stream_2328_); -lean_inc_ref(v_step_2327_); -v___f_2332_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0___boxed), 4, 2); -lean_closure_set(v___f_2332_, 0, v_step_2327_); -lean_closure_set(v___f_2332_, 1, v_stream_2328_); -v___f_2333_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1___boxed), 5, 3); -lean_closure_set(v___f_2333_, 0, v_step_2327_); -lean_closure_set(v___f_2333_, 1, v_acc_2329_); -lean_closure_set(v___f_2333_, 2, v___f_2332_); -v___x_2334_ = lean_unsigned_to_nat(0u); -v___x_2335_ = 0; -v___x_2336_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2334_, v___x_2335_, v___x_2331_, v___f_2333_); -return v___x_2336_; +lean_object* v___x_2338_; lean_object* v___f_2339_; lean_object* v___f_2340_; lean_object* v___x_2341_; uint8_t v___x_2342_; lean_object* v___x_2343_; +lean_inc_ref(v_stream_2335_); +v___x_2338_ = l_Std_Http_Body_Stream_recv(v_stream_2335_); +lean_inc_ref(v_step_2334_); +v___f_2339_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__0___boxed), 4, 2); +lean_closure_set(v___f_2339_, 0, v_step_2334_); +lean_closure_set(v___f_2339_, 1, v_stream_2335_); +v___f_2340_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___lam__1___boxed), 5, 3); +lean_closure_set(v___f_2340_, 0, v_step_2334_); +lean_closure_set(v___f_2340_, 1, v_acc_2336_); +lean_closure_set(v___f_2340_, 2, v___f_2339_); +v___x_2341_ = lean_unsigned_to_nat(0u); +v___x_2342_ = 0; +v___x_2343_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2341_, v___x_2342_, v___x_2338_, v___f_2340_); +return v___x_2343_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___boxed(lean_object* v_step_2337_, lean_object* v_stream_2338_, lean_object* v_acc_2339_, lean_object* v_a_2340_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg___boxed(lean_object* v_step_2344_, lean_object* v_stream_2345_, lean_object* v_acc_2346_, lean_object* v_a_2347_){ _start: { -lean_object* v_res_2341_; -v_res_2341_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2337_, v_stream_2338_, v_acc_2339_); -return v_res_2341_; +lean_object* v_res_2348_; +v_res_2348_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2344_, v_stream_2345_, v_acc_2346_); +return v_res_2348_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop(lean_object* v_00_u03b2_2342_, lean_object* v_step_2343_, lean_object* v_stream_2344_, lean_object* v_acc_2345_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop(lean_object* v_00_u03b2_2349_, lean_object* v_step_2350_, lean_object* v_stream_2351_, lean_object* v_acc_2352_){ _start: { -lean_object* v___x_2347_; -v___x_2347_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2343_, v_stream_2344_, v_acc_2345_); -return v___x_2347_; +lean_object* v___x_2354_; +v___x_2354_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2350_, v_stream_2351_, v_acc_2352_); +return v___x_2354_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___boxed(lean_object* v_00_u03b2_2348_, lean_object* v_step_2349_, lean_object* v_stream_2350_, lean_object* v_acc_2351_, lean_object* v_a_2352_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___boxed(lean_object* v_00_u03b2_2355_, lean_object* v_step_2356_, lean_object* v_stream_2357_, lean_object* v_acc_2358_, lean_object* v_a_2359_){ _start: { -lean_object* v_res_2353_; -v_res_2353_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop(v_00_u03b2_2348_, v_step_2349_, v_stream_2350_, v_acc_2351_); -return v_res_2353_; +lean_object* v_res_2360_; +v_res_2360_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop(v_00_u03b2_2355_, v_step_2356_, v_stream_2357_, v_acc_2358_); +return v_res_2360_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___redArg(lean_object* v_stream_2354_, lean_object* v_acc_2355_, lean_object* v_step_2356_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___redArg(lean_object* v_stream_2361_, lean_object* v_acc_2362_, lean_object* v_step_2363_){ _start: { -lean_object* v___x_2358_; -v___x_2358_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2356_, v_stream_2354_, v_acc_2355_); -return v___x_2358_; +lean_object* v___x_2365_; +v___x_2365_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2363_, v_stream_2361_, v_acc_2362_); +return v___x_2365_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___redArg___boxed(lean_object* v_stream_2359_, lean_object* v_acc_2360_, lean_object* v_step_2361_, lean_object* v_a_2362_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___redArg___boxed(lean_object* v_stream_2366_, lean_object* v_acc_2367_, lean_object* v_step_2368_, lean_object* v_a_2369_){ _start: { -lean_object* v_res_2363_; -v_res_2363_ = l_Std_Http_Body_Stream_forIn___redArg(v_stream_2359_, v_acc_2360_, v_step_2361_); -return v_res_2363_; +lean_object* v_res_2370_; +v_res_2370_ = l_Std_Http_Body_Stream_forIn___redArg(v_stream_2366_, v_acc_2367_, v_step_2368_); +return v_res_2370_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn(lean_object* v_00_u03b2_2364_, lean_object* v_stream_2365_, lean_object* v_acc_2366_, lean_object* v_step_2367_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn(lean_object* v_00_u03b2_2371_, lean_object* v_stream_2372_, lean_object* v_acc_2373_, lean_object* v_step_2374_){ _start: { -lean_object* v___x_2369_; -v___x_2369_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2367_, v_stream_2365_, v_acc_2366_); -return v___x_2369_; +lean_object* v___x_2376_; +v___x_2376_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_loop___redArg(v_step_2374_, v_stream_2372_, v_acc_2373_); +return v___x_2376_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___boxed(lean_object* v_00_u03b2_2370_, lean_object* v_stream_2371_, lean_object* v_acc_2372_, lean_object* v_step_2373_, lean_object* v_a_2374_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn___boxed(lean_object* v_00_u03b2_2377_, lean_object* v_stream_2378_, lean_object* v_acc_2379_, lean_object* v_step_2380_, lean_object* v_a_2381_){ _start: { -lean_object* v_res_2375_; -v_res_2375_ = l_Std_Http_Body_Stream_forIn(v_00_u03b2_2370_, v_stream_2371_, v_acc_2372_, v_step_2373_); -return v_res_2375_; +lean_object* v_res_2382_; +v_res_2382_ = l_Std_Http_Body_Stream_forIn(v_00_u03b2_2377_, v_stream_2378_, v_acc_2379_, v_step_2380_); +return v_res_2382_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0(lean_object* v_x_2376_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0(lean_object* v_x_2383_){ _start: { -if (lean_obj_tag(v_x_2376_) == 0) +if (lean_obj_tag(v_x_2383_) == 0) { -lean_object* v_a_2378_; lean_object* v___x_2380_; uint8_t v_isShared_2381_; uint8_t v_isSharedCheck_2386_; -v_a_2378_ = lean_ctor_get(v_x_2376_, 0); -v_isSharedCheck_2386_ = !lean_is_exclusive(v_x_2376_); -if (v_isSharedCheck_2386_ == 0) +lean_object* v_a_2385_; lean_object* v___x_2387_; uint8_t v_isShared_2388_; uint8_t v_isSharedCheck_2393_; +v_a_2385_ = lean_ctor_get(v_x_2383_, 0); +v_isSharedCheck_2393_ = !lean_is_exclusive(v_x_2383_); +if (v_isSharedCheck_2393_ == 0) { -v___x_2380_ = v_x_2376_; -v_isShared_2381_ = v_isSharedCheck_2386_; -goto v_resetjp_2379_; +v___x_2387_ = v_x_2383_; +v_isShared_2388_ = v_isSharedCheck_2393_; +goto v_resetjp_2386_; } else { -lean_inc(v_a_2378_); -lean_dec(v_x_2376_); -v___x_2380_ = lean_box(0); -v_isShared_2381_ = v_isSharedCheck_2386_; -goto v_resetjp_2379_; +lean_inc(v_a_2385_); +lean_dec(v_x_2383_); +v___x_2387_ = lean_box(0); +v_isShared_2388_ = v_isSharedCheck_2393_; +goto v_resetjp_2386_; } -v_resetjp_2379_: +v_resetjp_2386_: { -lean_object* v___x_2383_; -if (v_isShared_2381_ == 0) +lean_object* v___x_2390_; +if (v_isShared_2388_ == 0) { -v___x_2383_ = v___x_2380_; -goto v_reusejp_2382_; +v___x_2390_ = v___x_2387_; +goto v_reusejp_2389_; } else { -lean_object* v_reuseFailAlloc_2385_; -v_reuseFailAlloc_2385_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2385_, 0, v_a_2378_); -v___x_2383_ = v_reuseFailAlloc_2385_; -goto v_reusejp_2382_; +lean_object* v_reuseFailAlloc_2392_; +v_reuseFailAlloc_2392_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2392_, 0, v_a_2385_); +v___x_2390_ = v_reuseFailAlloc_2392_; +goto v_reusejp_2389_; } -v_reusejp_2382_: +v_reusejp_2389_: { -lean_object* v___x_2384_; -v___x_2384_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2384_, 0, v___x_2383_); -return v___x_2384_; +lean_object* v___x_2391_; +v___x_2391_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2391_, 0, v___x_2390_); +return v___x_2391_; } } } else { -lean_object* v_a_2387_; lean_object* v___x_2389_; uint8_t v_isShared_2390_; uint8_t v_isSharedCheck_2397_; -v_a_2387_ = lean_ctor_get(v_x_2376_, 0); -v_isSharedCheck_2397_ = !lean_is_exclusive(v_x_2376_); -if (v_isSharedCheck_2397_ == 0) +lean_object* v_a_2394_; lean_object* v___x_2396_; uint8_t v_isShared_2397_; uint8_t v_isSharedCheck_2404_; +v_a_2394_ = lean_ctor_get(v_x_2383_, 0); +v_isSharedCheck_2404_ = !lean_is_exclusive(v_x_2383_); +if (v_isSharedCheck_2404_ == 0) { -v___x_2389_ = v_x_2376_; -v_isShared_2390_ = v_isSharedCheck_2397_; -goto v_resetjp_2388_; +v___x_2396_ = v_x_2383_; +v_isShared_2397_ = v_isSharedCheck_2404_; +goto v_resetjp_2395_; } else { -lean_inc(v_a_2387_); -lean_dec(v_x_2376_); -v___x_2389_ = lean_box(0); -v_isShared_2390_ = v_isSharedCheck_2397_; -goto v_resetjp_2388_; +lean_inc(v_a_2394_); +lean_dec(v_x_2383_); +v___x_2396_ = lean_box(0); +v_isShared_2397_ = v_isSharedCheck_2404_; +goto v_resetjp_2395_; } -v_resetjp_2388_: +v_resetjp_2395_: { -lean_object* v_token_2391_; lean_object* v___x_2392_; lean_object* v___x_2394_; -v_token_2391_ = lean_ctor_get(v_a_2387_, 1); -lean_inc_ref(v_token_2391_); -lean_dec(v_a_2387_); -v___x_2392_ = l_Std_CancellationToken_selector(v_token_2391_); -if (v_isShared_2390_ == 0) +lean_object* v_token_2398_; lean_object* v___x_2399_; lean_object* v___x_2401_; +v_token_2398_ = lean_ctor_get(v_a_2394_, 1); +lean_inc_ref(v_token_2398_); +lean_dec(v_a_2394_); +v___x_2399_ = l_Std_CancellationToken_selector(v_token_2398_); +if (v_isShared_2397_ == 0) { -lean_ctor_set(v___x_2389_, 0, v___x_2392_); -v___x_2394_ = v___x_2389_; -goto v_reusejp_2393_; +lean_ctor_set(v___x_2396_, 0, v___x_2399_); +v___x_2401_ = v___x_2396_; +goto v_reusejp_2400_; } else { -lean_object* v_reuseFailAlloc_2396_; -v_reuseFailAlloc_2396_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2396_, 0, v___x_2392_); -v___x_2394_ = v_reuseFailAlloc_2396_; -goto v_reusejp_2393_; +lean_object* v_reuseFailAlloc_2403_; +v_reuseFailAlloc_2403_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2403_, 0, v___x_2399_); +v___x_2401_ = v_reuseFailAlloc_2403_; +goto v_reusejp_2400_; } -v_reusejp_2393_: +v_reusejp_2400_: { -lean_object* v___x_2395_; -v___x_2395_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2395_, 0, v___x_2394_); -return v___x_2395_; +lean_object* v___x_2402_; +v___x_2402_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2402_, 0, v___x_2401_); +return v___x_2402_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0___boxed(lean_object* v_x_2398_, lean_object* v___y_2399_){ -_start: -{ -lean_object* v_res_2400_; -v_res_2400_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0(v_x_2398_); -return v_res_2400_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1(lean_object* v___y_2401_){ -_start: -{ -lean_object* v___x_2403_; lean_object* v___x_2404_; -v___x_2403_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2403_, 0, v___y_2401_); -v___x_2404_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2404_, 0, v___x_2403_); -return v___x_2404_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1___boxed(lean_object* v___y_2405_, lean_object* v___y_2406_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0___boxed(lean_object* v_x_2405_, lean_object* v___y_2406_){ _start: { lean_object* v_res_2407_; -v_res_2407_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1(v___y_2405_); +v_res_2407_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__0(v_x_2405_); return v_res_2407_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2(lean_object* v_x_2408_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1(lean_object* v___y_2408_){ _start: { -lean_object* v___x_2410_; -v___x_2410_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__1)); -return v___x_2410_; +lean_object* v___x_2410_; lean_object* v___x_2411_; +v___x_2410_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2410_, 0, v___y_2408_); +v___x_2411_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2411_, 0, v___x_2410_); +return v___x_2411_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2___boxed(lean_object* v_x_2411_, lean_object* v___y_2412_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1___boxed(lean_object* v___y_2412_, lean_object* v___y_2413_){ _start: { -lean_object* v_res_2413_; -v_res_2413_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2(v_x_2411_); -return v_res_2413_; +lean_object* v_res_2414_; +v_res_2414_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__1(v___y_2412_); +return v_res_2414_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4(lean_object* v_step_2414_, lean_object* v_acc_2415_, lean_object* v_a_2416_, lean_object* v___f_2417_, lean_object* v_x_2418_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2(lean_object* v_x_2415_){ _start: { -if (lean_obj_tag(v_x_2418_) == 0) -{ -lean_object* v_a_2420_; lean_object* v___x_2422_; uint8_t v_isShared_2423_; uint8_t v_isSharedCheck_2428_; -lean_dec_ref(v___f_2417_); -lean_dec(v_acc_2415_); -lean_dec_ref(v_step_2414_); -v_a_2420_ = lean_ctor_get(v_x_2418_, 0); -v_isSharedCheck_2428_ = !lean_is_exclusive(v_x_2418_); -if (v_isSharedCheck_2428_ == 0) -{ -v___x_2422_ = v_x_2418_; -v_isShared_2423_ = v_isSharedCheck_2428_; -goto v_resetjp_2421_; -} -else -{ -lean_inc(v_a_2420_); -lean_dec(v_x_2418_); -v___x_2422_ = lean_box(0); -v_isShared_2423_ = v_isSharedCheck_2428_; -goto v_resetjp_2421_; -} -v_resetjp_2421_: -{ -lean_object* v___x_2425_; -if (v_isShared_2423_ == 0) -{ -v___x_2425_ = v___x_2422_; -goto v_reusejp_2424_; -} -else -{ -lean_object* v_reuseFailAlloc_2427_; -v_reuseFailAlloc_2427_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2427_, 0, v_a_2420_); -v___x_2425_ = v_reuseFailAlloc_2427_; -goto v_reusejp_2424_; -} -v_reusejp_2424_: -{ -lean_object* v___x_2426_; -v___x_2426_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2426_, 0, v___x_2425_); -return v___x_2426_; +lean_object* v___x_2417_; +v___x_2417_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__1)); +return v___x_2417_; } } -} -else -{ -lean_object* v_a_2429_; lean_object* v___x_2431_; uint8_t v_isShared_2432_; uint8_t v_isSharedCheck_2442_; -v_a_2429_ = lean_ctor_get(v_x_2418_, 0); -v_isSharedCheck_2442_ = !lean_is_exclusive(v_x_2418_); -if (v_isSharedCheck_2442_ == 0) -{ -v___x_2431_ = v_x_2418_; -v_isShared_2432_ = v_isSharedCheck_2442_; -goto v_resetjp_2430_; -} -else -{ -lean_inc(v_a_2429_); -lean_dec(v_x_2418_); -v___x_2431_ = lean_box(0); -v_isShared_2432_ = v_isSharedCheck_2442_; -goto v_resetjp_2430_; -} -v_resetjp_2430_: -{ -if (lean_obj_tag(v_a_2429_) == 1) -{ -lean_object* v_val_2433_; lean_object* v___x_2434_; lean_object* v___x_2435_; uint8_t v___x_2436_; lean_object* v___x_2437_; -lean_del_object(v___x_2431_); -v_val_2433_ = lean_ctor_get(v_a_2429_, 0); -lean_inc(v_val_2433_); -lean_dec_ref(v_a_2429_); -lean_inc_ref(v_a_2416_); -v___x_2434_ = lean_apply_4(v_step_2414_, v_val_2433_, v_acc_2415_, v_a_2416_, lean_box(0)); -v___x_2435_ = lean_unsigned_to_nat(0u); -v___x_2436_ = 0; -v___x_2437_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2435_, v___x_2436_, v___x_2434_, v___f_2417_); -return v___x_2437_; -} -else -{ -lean_object* v___x_2439_; -lean_dec(v_a_2429_); -lean_dec_ref(v___f_2417_); -lean_dec_ref(v_step_2414_); -if (v_isShared_2432_ == 0) -{ -lean_ctor_set(v___x_2431_, 0, v_acc_2415_); -v___x_2439_ = v___x_2431_; -goto v_reusejp_2438_; -} -else -{ -lean_object* v_reuseFailAlloc_2441_; -v_reuseFailAlloc_2441_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2441_, 0, v_acc_2415_); -v___x_2439_ = v_reuseFailAlloc_2441_; -goto v_reusejp_2438_; -} -v_reusejp_2438_: -{ -lean_object* v___x_2440_; -v___x_2440_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2440_, 0, v___x_2439_); -return v___x_2440_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4___boxed(lean_object* v_step_2443_, lean_object* v_acc_2444_, lean_object* v_a_2445_, lean_object* v___f_2446_, lean_object* v_x_2447_, lean_object* v___y_2448_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2___boxed(lean_object* v_x_2418_, lean_object* v___y_2419_){ _start: { -lean_object* v_res_2449_; -v_res_2449_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4(v_step_2443_, v_acc_2444_, v_a_2445_, v___f_2446_, v_x_2447_); -lean_dec_ref(v_a_2445_); -return v_res_2449_; +lean_object* v_res_2420_; +v_res_2420_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__2(v_x_2418_); +return v_res_2420_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5(lean_object* v_stream_2450_, lean_object* v___f_2451_, lean_object* v___f_2452_, lean_object* v___f_2453_, lean_object* v_x_2454_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4(lean_object* v_step_2421_, lean_object* v_acc_2422_, lean_object* v_a_2423_, lean_object* v___f_2424_, lean_object* v_x_2425_){ _start: { -if (lean_obj_tag(v_x_2454_) == 0) +if (lean_obj_tag(v_x_2425_) == 0) { -lean_object* v_a_2456_; lean_object* v___x_2458_; uint8_t v_isShared_2459_; uint8_t v_isSharedCheck_2464_; -lean_dec_ref(v___f_2453_); -lean_dec_ref(v___f_2452_); -lean_dec_ref(v___f_2451_); -lean_dec_ref(v_stream_2450_); -v_a_2456_ = lean_ctor_get(v_x_2454_, 0); -v_isSharedCheck_2464_ = !lean_is_exclusive(v_x_2454_); -if (v_isSharedCheck_2464_ == 0) +lean_object* v_a_2427_; lean_object* v___x_2429_; uint8_t v_isShared_2430_; uint8_t v_isSharedCheck_2435_; +lean_dec_ref(v___f_2424_); +lean_dec(v_acc_2422_); +lean_dec_ref(v_step_2421_); +v_a_2427_ = lean_ctor_get(v_x_2425_, 0); +v_isSharedCheck_2435_ = !lean_is_exclusive(v_x_2425_); +if (v_isSharedCheck_2435_ == 0) { -v___x_2458_ = v_x_2454_; -v_isShared_2459_ = v_isSharedCheck_2464_; -goto v_resetjp_2457_; +v___x_2429_ = v_x_2425_; +v_isShared_2430_ = v_isSharedCheck_2435_; +goto v_resetjp_2428_; } else { -lean_inc(v_a_2456_); -lean_dec(v_x_2454_); -v___x_2458_ = lean_box(0); -v_isShared_2459_ = v_isSharedCheck_2464_; -goto v_resetjp_2457_; +lean_inc(v_a_2427_); +lean_dec(v_x_2425_); +v___x_2429_ = lean_box(0); +v_isShared_2430_ = v_isSharedCheck_2435_; +goto v_resetjp_2428_; } -v_resetjp_2457_: +v_resetjp_2428_: { -lean_object* v___x_2461_; -if (v_isShared_2459_ == 0) +lean_object* v___x_2432_; +if (v_isShared_2430_ == 0) { -v___x_2461_ = v___x_2458_; -goto v_reusejp_2460_; +v___x_2432_ = v___x_2429_; +goto v_reusejp_2431_; } else { -lean_object* v_reuseFailAlloc_2463_; -v_reuseFailAlloc_2463_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2463_, 0, v_a_2456_); -v___x_2461_ = v_reuseFailAlloc_2463_; -goto v_reusejp_2460_; +lean_object* v_reuseFailAlloc_2434_; +v_reuseFailAlloc_2434_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2434_, 0, v_a_2427_); +v___x_2432_ = v_reuseFailAlloc_2434_; +goto v_reusejp_2431_; } -v_reusejp_2460_: +v_reusejp_2431_: { -lean_object* v___x_2462_; -v___x_2462_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2462_, 0, v___x_2461_); -return v___x_2462_; +lean_object* v___x_2433_; +v___x_2433_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2433_, 0, v___x_2432_); +return v___x_2433_; } } } else { -lean_object* v_a_2465_; lean_object* v___x_2466_; lean_object* v___x_2467_; lean_object* v___x_2468_; lean_object* v___x_2469_; lean_object* v___x_2470_; lean_object* v___x_2471_; lean_object* v___x_2472_; lean_object* v___x_2473_; lean_object* v___x_2474_; uint8_t v___x_2475_; lean_object* v___x_2476_; -v_a_2465_ = lean_ctor_get(v_x_2454_, 0); -lean_inc(v_a_2465_); -lean_dec_ref(v_x_2454_); -v___x_2466_ = l_Std_Http_Body_Stream_recvSelector(v_stream_2450_); -v___x_2467_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2467_, 0, v___x_2466_); -lean_ctor_set(v___x_2467_, 1, v___f_2451_); -v___x_2468_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2468_, 0, v_a_2465_); -lean_ctor_set(v___x_2468_, 1, v___f_2452_); -v___x_2469_ = lean_unsigned_to_nat(2u); -v___x_2470_ = lean_mk_empty_array_with_capacity(v___x_2469_); -v___x_2471_ = lean_array_push(v___x_2470_, v___x_2467_); -v___x_2472_ = lean_array_push(v___x_2471_, v___x_2468_); -v___x_2473_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_2472_); -v___x_2474_ = lean_unsigned_to_nat(0u); -v___x_2475_ = 0; -v___x_2476_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2474_, v___x_2475_, v___x_2473_, v___f_2453_); -return v___x_2476_; +lean_object* v_a_2436_; lean_object* v___x_2438_; uint8_t v_isShared_2439_; uint8_t v_isSharedCheck_2449_; +v_a_2436_ = lean_ctor_get(v_x_2425_, 0); +v_isSharedCheck_2449_ = !lean_is_exclusive(v_x_2425_); +if (v_isSharedCheck_2449_ == 0) +{ +v___x_2438_ = v_x_2425_; +v_isShared_2439_ = v_isSharedCheck_2449_; +goto v_resetjp_2437_; +} +else +{ +lean_inc(v_a_2436_); +lean_dec(v_x_2425_); +v___x_2438_ = lean_box(0); +v_isShared_2439_ = v_isSharedCheck_2449_; +goto v_resetjp_2437_; +} +v_resetjp_2437_: +{ +if (lean_obj_tag(v_a_2436_) == 1) +{ +lean_object* v_val_2440_; lean_object* v___x_2441_; lean_object* v___x_2442_; uint8_t v___x_2443_; lean_object* v___x_2444_; +lean_del_object(v___x_2438_); +v_val_2440_ = lean_ctor_get(v_a_2436_, 0); +lean_inc(v_val_2440_); +lean_dec_ref(v_a_2436_); +lean_inc_ref(v_a_2423_); +v___x_2441_ = lean_apply_4(v_step_2421_, v_val_2440_, v_acc_2422_, v_a_2423_, lean_box(0)); +v___x_2442_ = lean_unsigned_to_nat(0u); +v___x_2443_ = 0; +v___x_2444_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2442_, v___x_2443_, v___x_2441_, v___f_2424_); +return v___x_2444_; +} +else +{ +lean_object* v___x_2446_; +lean_dec(v_a_2436_); +lean_dec_ref(v___f_2424_); +lean_dec_ref(v_step_2421_); +if (v_isShared_2439_ == 0) +{ +lean_ctor_set(v___x_2438_, 0, v_acc_2422_); +v___x_2446_ = v___x_2438_; +goto v_reusejp_2445_; +} +else +{ +lean_object* v_reuseFailAlloc_2448_; +v_reuseFailAlloc_2448_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2448_, 0, v_acc_2422_); +v___x_2446_ = v_reuseFailAlloc_2448_; +goto v_reusejp_2445_; +} +v_reusejp_2445_: +{ +lean_object* v___x_2447_; +v___x_2447_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2447_, 0, v___x_2446_); +return v___x_2447_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5___boxed(lean_object* v_stream_2477_, lean_object* v___f_2478_, lean_object* v___f_2479_, lean_object* v___f_2480_, lean_object* v_x_2481_, lean_object* v___y_2482_){ +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4___boxed(lean_object* v_step_2450_, lean_object* v_acc_2451_, lean_object* v_a_2452_, lean_object* v___f_2453_, lean_object* v_x_2454_, lean_object* v___y_2455_){ _start: { -lean_object* v_res_2483_; -v_res_2483_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5(v_stream_2477_, v___f_2478_, v___f_2479_, v___f_2480_, v_x_2481_); -return v_res_2483_; +lean_object* v_res_2456_; +v_res_2456_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4(v_step_2450_, v_acc_2451_, v_a_2452_, v___f_2453_, v_x_2454_); +lean_dec_ref(v_a_2452_); +return v_res_2456_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3___boxed(lean_object* v_step_2487_, lean_object* v_stream_2488_, lean_object* v_a_2489_, lean_object* v_x_2490_, lean_object* v___y_2491_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5(lean_object* v_stream_2457_, lean_object* v___f_2458_, lean_object* v___f_2459_, lean_object* v___f_2460_, lean_object* v_x_2461_){ _start: { -lean_object* v_res_2492_; -v_res_2492_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3(v_step_2487_, v_stream_2488_, v_a_2489_, v_x_2490_); -lean_dec_ref(v_a_2489_); -return v_res_2492_; +if (lean_obj_tag(v_x_2461_) == 0) +{ +lean_object* v_a_2463_; lean_object* v___x_2465_; uint8_t v_isShared_2466_; uint8_t v_isSharedCheck_2471_; +lean_dec_ref(v___f_2460_); +lean_dec_ref(v___f_2459_); +lean_dec_ref(v___f_2458_); +lean_dec_ref(v_stream_2457_); +v_a_2463_ = lean_ctor_get(v_x_2461_, 0); +v_isSharedCheck_2471_ = !lean_is_exclusive(v_x_2461_); +if (v_isSharedCheck_2471_ == 0) +{ +v___x_2465_ = v_x_2461_; +v_isShared_2466_ = v_isSharedCheck_2471_; +goto v_resetjp_2464_; +} +else +{ +lean_inc(v_a_2463_); +lean_dec(v_x_2461_); +v___x_2465_ = lean_box(0); +v_isShared_2466_ = v_isSharedCheck_2471_; +goto v_resetjp_2464_; +} +v_resetjp_2464_: +{ +lean_object* v___x_2468_; +if (v_isShared_2466_ == 0) +{ +v___x_2468_ = v___x_2465_; +goto v_reusejp_2467_; +} +else +{ +lean_object* v_reuseFailAlloc_2470_; +v_reuseFailAlloc_2470_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2470_, 0, v_a_2463_); +v___x_2468_ = v_reuseFailAlloc_2470_; +goto v_reusejp_2467_; +} +v_reusejp_2467_: +{ +lean_object* v___x_2469_; +v___x_2469_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2469_, 0, v___x_2468_); +return v___x_2469_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(lean_object* v_step_2493_, lean_object* v_stream_2494_, lean_object* v_acc_2495_, lean_object* v_a_2496_){ +} +else +{ +lean_object* v_a_2472_; lean_object* v___x_2473_; lean_object* v___x_2474_; lean_object* v___x_2475_; lean_object* v___x_2476_; lean_object* v___x_2477_; lean_object* v___x_2478_; lean_object* v___x_2479_; lean_object* v___x_2480_; lean_object* v___x_2481_; uint8_t v___x_2482_; lean_object* v___x_2483_; +v_a_2472_ = lean_ctor_get(v_x_2461_, 0); +lean_inc(v_a_2472_); +lean_dec_ref(v_x_2461_); +v___x_2473_ = l_Std_Http_Body_Stream_recvSelector(v_stream_2457_); +v___x_2474_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2474_, 0, v___x_2473_); +lean_ctor_set(v___x_2474_, 1, v___f_2458_); +v___x_2475_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2475_, 0, v_a_2472_); +lean_ctor_set(v___x_2475_, 1, v___f_2459_); +v___x_2476_ = lean_unsigned_to_nat(2u); +v___x_2477_ = lean_mk_empty_array_with_capacity(v___x_2476_); +v___x_2478_ = lean_array_push(v___x_2477_, v___x_2474_); +v___x_2479_ = lean_array_push(v___x_2478_, v___x_2475_); +v___x_2480_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_2479_); +v___x_2481_ = lean_unsigned_to_nat(0u); +v___x_2482_ = 0; +v___x_2483_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2481_, v___x_2482_, v___x_2480_, v___f_2460_); +return v___x_2483_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5___boxed(lean_object* v_stream_2484_, lean_object* v___f_2485_, lean_object* v___f_2486_, lean_object* v___f_2487_, lean_object* v_x_2488_, lean_object* v___y_2489_){ _start: { -lean_object* v___f_2498_; lean_object* v___x_2499_; lean_object* v___x_2500_; lean_object* v___x_2501_; uint8_t v___x_2502_; lean_object* v___x_2503_; lean_object* v___f_2504_; lean_object* v___f_2505_; lean_object* v___f_2506_; lean_object* v___f_2507_; lean_object* v___f_2508_; lean_object* v___x_2509_; -v___f_2498_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__0)); -lean_inc_ref_n(v_a_2496_, 3); -v___x_2499_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2499_, 0, v_a_2496_); -v___x_2500_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2500_, 0, v___x_2499_); -v___x_2501_ = lean_unsigned_to_nat(0u); -v___x_2502_ = 0; -v___x_2503_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2501_, v___x_2502_, v___x_2500_, v___f_2498_); -v___f_2504_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__1)); -v___f_2505_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__2)); -lean_inc_ref(v_stream_2494_); -lean_inc_ref(v_step_2493_); -v___f_2506_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3___boxed), 5, 3); -lean_closure_set(v___f_2506_, 0, v_step_2493_); -lean_closure_set(v___f_2506_, 1, v_stream_2494_); -lean_closure_set(v___f_2506_, 2, v_a_2496_); -v___f_2507_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4___boxed), 6, 4); -lean_closure_set(v___f_2507_, 0, v_step_2493_); -lean_closure_set(v___f_2507_, 1, v_acc_2495_); -lean_closure_set(v___f_2507_, 2, v_a_2496_); -lean_closure_set(v___f_2507_, 3, v___f_2506_); -v___f_2508_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5___boxed), 6, 4); -lean_closure_set(v___f_2508_, 0, v_stream_2494_); -lean_closure_set(v___f_2508_, 1, v___f_2504_); -lean_closure_set(v___f_2508_, 2, v___f_2505_); -lean_closure_set(v___f_2508_, 3, v___f_2507_); -v___x_2509_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2501_, v___x_2502_, v___x_2503_, v___f_2508_); -return v___x_2509_; +lean_object* v_res_2490_; +v_res_2490_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5(v_stream_2484_, v___f_2485_, v___f_2486_, v___f_2487_, v_x_2488_); +return v_res_2490_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3(lean_object* v_step_2510_, lean_object* v_stream_2511_, lean_object* v_a_2512_, lean_object* v_x_2513_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3___boxed(lean_object* v_step_2494_, lean_object* v_stream_2495_, lean_object* v_a_2496_, lean_object* v_x_2497_, lean_object* v___y_2498_){ _start: { -if (lean_obj_tag(v_x_2513_) == 0) +lean_object* v_res_2499_; +v_res_2499_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3(v_step_2494_, v_stream_2495_, v_a_2496_, v_x_2497_); +lean_dec_ref(v_a_2496_); +return v_res_2499_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(lean_object* v_step_2500_, lean_object* v_stream_2501_, lean_object* v_acc_2502_, lean_object* v_a_2503_){ +_start: { -lean_object* v_a_2515_; lean_object* v___x_2517_; uint8_t v_isShared_2518_; uint8_t v_isSharedCheck_2523_; -lean_dec_ref(v_stream_2511_); -lean_dec_ref(v_step_2510_); -v_a_2515_ = lean_ctor_get(v_x_2513_, 0); -v_isSharedCheck_2523_ = !lean_is_exclusive(v_x_2513_); -if (v_isSharedCheck_2523_ == 0) +lean_object* v___f_2505_; lean_object* v___x_2506_; lean_object* v___x_2507_; lean_object* v___x_2508_; uint8_t v___x_2509_; lean_object* v___x_2510_; lean_object* v___f_2511_; lean_object* v___f_2512_; lean_object* v___f_2513_; lean_object* v___f_2514_; lean_object* v___f_2515_; lean_object* v___x_2516_; +v___f_2505_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__0)); +lean_inc_ref_n(v_a_2503_, 3); +v___x_2506_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2506_, 0, v_a_2503_); +v___x_2507_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2507_, 0, v___x_2506_); +v___x_2508_ = lean_unsigned_to_nat(0u); +v___x_2509_ = 0; +v___x_2510_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2508_, v___x_2509_, v___x_2507_, v___f_2505_); +v___f_2511_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__1)); +v___f_2512_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___closed__2)); +lean_inc_ref(v_stream_2501_); +lean_inc_ref(v_step_2500_); +v___f_2513_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3___boxed), 5, 3); +lean_closure_set(v___f_2513_, 0, v_step_2500_); +lean_closure_set(v___f_2513_, 1, v_stream_2501_); +lean_closure_set(v___f_2513_, 2, v_a_2503_); +v___f_2514_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__4___boxed), 6, 4); +lean_closure_set(v___f_2514_, 0, v_step_2500_); +lean_closure_set(v___f_2514_, 1, v_acc_2502_); +lean_closure_set(v___f_2514_, 2, v_a_2503_); +lean_closure_set(v___f_2514_, 3, v___f_2513_); +v___f_2515_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__5___boxed), 6, 4); +lean_closure_set(v___f_2515_, 0, v_stream_2501_); +lean_closure_set(v___f_2515_, 1, v___f_2511_); +lean_closure_set(v___f_2515_, 2, v___f_2512_); +lean_closure_set(v___f_2515_, 3, v___f_2514_); +v___x_2516_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2508_, v___x_2509_, v___x_2510_, v___f_2515_); +return v___x_2516_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___lam__3(lean_object* v_step_2517_, lean_object* v_stream_2518_, lean_object* v_a_2519_, lean_object* v_x_2520_){ +_start: { -v___x_2517_ = v_x_2513_; -v_isShared_2518_ = v_isSharedCheck_2523_; -goto v_resetjp_2516_; +if (lean_obj_tag(v_x_2520_) == 0) +{ +lean_object* v_a_2522_; lean_object* v___x_2524_; uint8_t v_isShared_2525_; uint8_t v_isSharedCheck_2530_; +lean_dec_ref(v_stream_2518_); +lean_dec_ref(v_step_2517_); +v_a_2522_ = lean_ctor_get(v_x_2520_, 0); +v_isSharedCheck_2530_ = !lean_is_exclusive(v_x_2520_); +if (v_isSharedCheck_2530_ == 0) +{ +v___x_2524_ = v_x_2520_; +v_isShared_2525_ = v_isSharedCheck_2530_; +goto v_resetjp_2523_; } else { -lean_inc(v_a_2515_); -lean_dec(v_x_2513_); -v___x_2517_ = lean_box(0); -v_isShared_2518_ = v_isSharedCheck_2523_; -goto v_resetjp_2516_; +lean_inc(v_a_2522_); +lean_dec(v_x_2520_); +v___x_2524_ = lean_box(0); +v_isShared_2525_ = v_isSharedCheck_2530_; +goto v_resetjp_2523_; } -v_resetjp_2516_: +v_resetjp_2523_: { -lean_object* v___x_2520_; -if (v_isShared_2518_ == 0) +lean_object* v___x_2527_; +if (v_isShared_2525_ == 0) { -v___x_2520_ = v___x_2517_; -goto v_reusejp_2519_; +v___x_2527_ = v___x_2524_; +goto v_reusejp_2526_; } else { -lean_object* v_reuseFailAlloc_2522_; -v_reuseFailAlloc_2522_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2522_, 0, v_a_2515_); -v___x_2520_ = v_reuseFailAlloc_2522_; -goto v_reusejp_2519_; +lean_object* v_reuseFailAlloc_2529_; +v_reuseFailAlloc_2529_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2529_, 0, v_a_2522_); +v___x_2527_ = v_reuseFailAlloc_2529_; +goto v_reusejp_2526_; } -v_reusejp_2519_: +v_reusejp_2526_: { -lean_object* v___x_2521_; -v___x_2521_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2521_, 0, v___x_2520_); -return v___x_2521_; +lean_object* v___x_2528_; +v___x_2528_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2528_, 0, v___x_2527_); +return v___x_2528_; } } } else { -lean_object* v_a_2524_; lean_object* v___x_2526_; uint8_t v_isShared_2527_; uint8_t v_isSharedCheck_2541_; -v_a_2524_ = lean_ctor_get(v_x_2513_, 0); -v_isSharedCheck_2541_ = !lean_is_exclusive(v_x_2513_); -if (v_isSharedCheck_2541_ == 0) +lean_object* v_a_2531_; lean_object* v___x_2533_; uint8_t v_isShared_2534_; uint8_t v_isSharedCheck_2548_; +v_a_2531_ = lean_ctor_get(v_x_2520_, 0); +v_isSharedCheck_2548_ = !lean_is_exclusive(v_x_2520_); +if (v_isSharedCheck_2548_ == 0) { -v___x_2526_ = v_x_2513_; -v_isShared_2527_ = v_isSharedCheck_2541_; -goto v_resetjp_2525_; +v___x_2533_ = v_x_2520_; +v_isShared_2534_ = v_isSharedCheck_2548_; +goto v_resetjp_2532_; } else { -lean_inc(v_a_2524_); -lean_dec(v_x_2513_); -v___x_2526_ = lean_box(0); -v_isShared_2527_ = v_isSharedCheck_2541_; -goto v_resetjp_2525_; +lean_inc(v_a_2531_); +lean_dec(v_x_2520_); +v___x_2533_ = lean_box(0); +v_isShared_2534_ = v_isSharedCheck_2548_; +goto v_resetjp_2532_; } -v_resetjp_2525_: +v_resetjp_2532_: { -if (lean_obj_tag(v_a_2524_) == 0) +if (lean_obj_tag(v_a_2531_) == 0) { -lean_object* v_a_2528_; lean_object* v___x_2530_; uint8_t v_isShared_2531_; uint8_t v_isSharedCheck_2538_; -lean_dec_ref(v_stream_2511_); -lean_dec_ref(v_step_2510_); -v_a_2528_ = lean_ctor_get(v_a_2524_, 0); -v_isSharedCheck_2538_ = !lean_is_exclusive(v_a_2524_); -if (v_isSharedCheck_2538_ == 0) +lean_object* v_a_2535_; lean_object* v___x_2537_; uint8_t v_isShared_2538_; uint8_t v_isSharedCheck_2545_; +lean_dec_ref(v_stream_2518_); +lean_dec_ref(v_step_2517_); +v_a_2535_ = lean_ctor_get(v_a_2531_, 0); +v_isSharedCheck_2545_ = !lean_is_exclusive(v_a_2531_); +if (v_isSharedCheck_2545_ == 0) { -v___x_2530_ = v_a_2524_; -v_isShared_2531_ = v_isSharedCheck_2538_; -goto v_resetjp_2529_; +v___x_2537_ = v_a_2531_; +v_isShared_2538_ = v_isSharedCheck_2545_; +goto v_resetjp_2536_; } else { -lean_inc(v_a_2528_); -lean_dec(v_a_2524_); -v___x_2530_ = lean_box(0); -v_isShared_2531_ = v_isSharedCheck_2538_; -goto v_resetjp_2529_; +lean_inc(v_a_2535_); +lean_dec(v_a_2531_); +v___x_2537_ = lean_box(0); +v_isShared_2538_ = v_isSharedCheck_2545_; +goto v_resetjp_2536_; } -v_resetjp_2529_: +v_resetjp_2536_: { -lean_object* v___x_2533_; -if (v_isShared_2527_ == 0) +lean_object* v___x_2540_; +if (v_isShared_2534_ == 0) { -lean_ctor_set(v___x_2526_, 0, v_a_2528_); -v___x_2533_ = v___x_2526_; -goto v_reusejp_2532_; +lean_ctor_set(v___x_2533_, 0, v_a_2535_); +v___x_2540_ = v___x_2533_; +goto v_reusejp_2539_; } else { -lean_object* v_reuseFailAlloc_2537_; -v_reuseFailAlloc_2537_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2537_, 0, v_a_2528_); -v___x_2533_ = v_reuseFailAlloc_2537_; -goto v_reusejp_2532_; +lean_object* v_reuseFailAlloc_2544_; +v_reuseFailAlloc_2544_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2544_, 0, v_a_2535_); +v___x_2540_ = v_reuseFailAlloc_2544_; +goto v_reusejp_2539_; } -v_reusejp_2532_: +v_reusejp_2539_: { -lean_object* v___x_2535_; -if (v_isShared_2531_ == 0) +lean_object* v___x_2542_; +if (v_isShared_2538_ == 0) { -lean_ctor_set(v___x_2530_, 0, v___x_2533_); -v___x_2535_ = v___x_2530_; -goto v_reusejp_2534_; +lean_ctor_set(v___x_2537_, 0, v___x_2540_); +v___x_2542_ = v___x_2537_; +goto v_reusejp_2541_; } else { -lean_object* v_reuseFailAlloc_2536_; -v_reuseFailAlloc_2536_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2536_, 0, v___x_2533_); -v___x_2535_ = v_reuseFailAlloc_2536_; -goto v_reusejp_2534_; +lean_object* v_reuseFailAlloc_2543_; +v_reuseFailAlloc_2543_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2543_, 0, v___x_2540_); +v___x_2542_ = v_reuseFailAlloc_2543_; +goto v_reusejp_2541_; } -v_reusejp_2534_: +v_reusejp_2541_: { -return v___x_2535_; +return v___x_2542_; } } } } else { -lean_object* v_a_2539_; lean_object* v___x_2540_; -lean_del_object(v___x_2526_); -v_a_2539_ = lean_ctor_get(v_a_2524_, 0); -lean_inc(v_a_2539_); -lean_dec_ref(v_a_2524_); -v___x_2540_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2510_, v_stream_2511_, v_a_2539_, v_a_2512_); -return v___x_2540_; +lean_object* v_a_2546_; lean_object* v___x_2547_; +lean_del_object(v___x_2533_); +v_a_2546_ = lean_ctor_get(v_a_2531_, 0); +lean_inc(v_a_2546_); +lean_dec_ref(v_a_2531_); +v___x_2547_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2517_, v_stream_2518_, v_a_2546_, v_a_2519_); +return v___x_2547_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___boxed(lean_object* v_step_2542_, lean_object* v_stream_2543_, lean_object* v_acc_2544_, lean_object* v_a_2545_, lean_object* v_a_2546_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg___boxed(lean_object* v_step_2549_, lean_object* v_stream_2550_, lean_object* v_acc_2551_, lean_object* v_a_2552_, lean_object* v_a_2553_){ _start: { -lean_object* v_res_2547_; -v_res_2547_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2542_, v_stream_2543_, v_acc_2544_, v_a_2545_); -lean_dec_ref(v_a_2545_); -return v_res_2547_; +lean_object* v_res_2554_; +v_res_2554_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2549_, v_stream_2550_, v_acc_2551_, v_a_2552_); +lean_dec_ref(v_a_2552_); +return v_res_2554_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop(lean_object* v_00_u03b2_2548_, lean_object* v_step_2549_, lean_object* v_stream_2550_, lean_object* v_acc_2551_, lean_object* v_a_2552_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop(lean_object* v_00_u03b2_2555_, lean_object* v_step_2556_, lean_object* v_stream_2557_, lean_object* v_acc_2558_, lean_object* v_a_2559_){ _start: { -lean_object* v___x_2554_; -v___x_2554_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2549_, v_stream_2550_, v_acc_2551_, v_a_2552_); -return v___x_2554_; +lean_object* v___x_2561_; +v___x_2561_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2556_, v_stream_2557_, v_acc_2558_, v_a_2559_); +return v___x_2561_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___boxed(lean_object* v_00_u03b2_2555_, lean_object* v_step_2556_, lean_object* v_stream_2557_, lean_object* v_acc_2558_, lean_object* v_a_2559_, lean_object* v_a_2560_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___boxed(lean_object* v_00_u03b2_2562_, lean_object* v_step_2563_, lean_object* v_stream_2564_, lean_object* v_acc_2565_, lean_object* v_a_2566_, lean_object* v_a_2567_){ _start: { -lean_object* v_res_2561_; -v_res_2561_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop(v_00_u03b2_2555_, v_step_2556_, v_stream_2557_, v_acc_2558_, v_a_2559_); -lean_dec_ref(v_a_2559_); -return v_res_2561_; +lean_object* v_res_2568_; +v_res_2568_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop(v_00_u03b2_2562_, v_step_2563_, v_stream_2564_, v_acc_2565_, v_a_2566_); +lean_dec_ref(v_a_2566_); +return v_res_2568_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___redArg(lean_object* v_stream_2562_, lean_object* v_acc_2563_, lean_object* v_step_2564_, lean_object* v_a_2565_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___redArg(lean_object* v_stream_2569_, lean_object* v_acc_2570_, lean_object* v_step_2571_, lean_object* v_a_2572_){ _start: { -lean_object* v___x_2567_; -v___x_2567_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2564_, v_stream_2562_, v_acc_2563_, v_a_2565_); -return v___x_2567_; +lean_object* v___x_2574_; +v___x_2574_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2571_, v_stream_2569_, v_acc_2570_, v_a_2572_); +return v___x_2574_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___redArg___boxed(lean_object* v_stream_2568_, lean_object* v_acc_2569_, lean_object* v_step_2570_, lean_object* v_a_2571_, lean_object* v_a_2572_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___redArg___boxed(lean_object* v_stream_2575_, lean_object* v_acc_2576_, lean_object* v_step_2577_, lean_object* v_a_2578_, lean_object* v_a_2579_){ _start: { -lean_object* v_res_2573_; -v_res_2573_ = l_Std_Http_Body_Stream_forIn_x27___redArg(v_stream_2568_, v_acc_2569_, v_step_2570_, v_a_2571_); -lean_dec_ref(v_a_2571_); -return v_res_2573_; +lean_object* v_res_2580_; +v_res_2580_ = l_Std_Http_Body_Stream_forIn_x27___redArg(v_stream_2575_, v_acc_2576_, v_step_2577_, v_a_2578_); +lean_dec_ref(v_a_2578_); +return v_res_2580_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27(lean_object* v_00_u03b2_2574_, lean_object* v_stream_2575_, lean_object* v_acc_2576_, lean_object* v_step_2577_, lean_object* v_a_2578_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27(lean_object* v_00_u03b2_2581_, lean_object* v_stream_2582_, lean_object* v_acc_2583_, lean_object* v_step_2584_, lean_object* v_a_2585_){ _start: { -lean_object* v___x_2580_; -v___x_2580_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2577_, v_stream_2575_, v_acc_2576_, v_a_2578_); -return v___x_2580_; +lean_object* v___x_2587_; +v___x_2587_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_forIn_x27_loop___redArg(v_step_2584_, v_stream_2582_, v_acc_2583_, v_a_2585_); +return v___x_2587_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___boxed(lean_object* v_00_u03b2_2581_, lean_object* v_stream_2582_, lean_object* v_acc_2583_, lean_object* v_step_2584_, lean_object* v_a_2585_, lean_object* v_a_2586_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_forIn_x27___boxed(lean_object* v_00_u03b2_2588_, lean_object* v_stream_2589_, lean_object* v_acc_2590_, lean_object* v_step_2591_, lean_object* v_a_2592_, lean_object* v_a_2593_){ _start: { -lean_object* v_res_2587_; -v_res_2587_ = l_Std_Http_Body_Stream_forIn_x27(v_00_u03b2_2581_, v_stream_2582_, v_acc_2583_, v_step_2584_, v_a_2585_); -lean_dec_ref(v_a_2585_); -return v_res_2587_; +lean_object* v_res_2594_; +v_res_2594_ = l_Std_Http_Body_Stream_forIn_x27(v_00_u03b2_2588_, v_stream_2589_, v_acc_2590_, v_step_2591_, v_a_2592_); +lean_dec_ref(v_a_2592_); +return v_res_2594_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0(lean_object* v_x_2590_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0(lean_object* v_x_2597_){ _start: { -lean_object* v___x_2592_; -v___x_2592_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__1)); -return v___x_2592_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0___boxed(lean_object* v_x_2593_, lean_object* v___y_2594_){ -_start: -{ -lean_object* v_res_2595_; -v_res_2595_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0(v_x_2593_); -return v_res_2595_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1(lean_object* v___y_2596_){ -_start: -{ -lean_object* v___x_2598_; lean_object* v___x_2599_; -v___x_2598_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2598_, 0, v___y_2596_); -v___x_2599_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2599_, 0, v___x_2598_); +lean_object* v___x_2599_; +v___x_2599_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__1)); return v___x_2599_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1___boxed(lean_object* v___y_2600_, lean_object* v___y_2601_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0___boxed(lean_object* v_x_2600_, lean_object* v___y_2601_){ _start: { lean_object* v_res_2602_; -v_res_2602_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1(v___y_2600_); +v_res_2602_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__0(v_x_2600_); return v_res_2602_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2(lean_object* v_x_2603_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1(lean_object* v___y_2603_){ _start: { -if (lean_obj_tag(v_x_2603_) == 0) -{ -lean_object* v_a_2605_; lean_object* v___x_2607_; uint8_t v_isShared_2608_; uint8_t v_isSharedCheck_2613_; -v_a_2605_ = lean_ctor_get(v_x_2603_, 0); -v_isSharedCheck_2613_ = !lean_is_exclusive(v_x_2603_); -if (v_isSharedCheck_2613_ == 0) -{ -v___x_2607_ = v_x_2603_; -v_isShared_2608_ = v_isSharedCheck_2613_; -goto v_resetjp_2606_; -} -else -{ -lean_inc(v_a_2605_); -lean_dec(v_x_2603_); -v___x_2607_ = lean_box(0); -v_isShared_2608_ = v_isSharedCheck_2613_; -goto v_resetjp_2606_; -} -v_resetjp_2606_: -{ -lean_object* v___x_2610_; -if (v_isShared_2608_ == 0) -{ -v___x_2610_ = v___x_2607_; -goto v_reusejp_2609_; -} -else -{ -lean_object* v_reuseFailAlloc_2612_; -v_reuseFailAlloc_2612_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2612_, 0, v_a_2605_); -v___x_2610_ = v_reuseFailAlloc_2612_; -goto v_reusejp_2609_; -} -v_reusejp_2609_: -{ -lean_object* v___x_2611_; -v___x_2611_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2611_, 0, v___x_2610_); -return v___x_2611_; +lean_object* v___x_2605_; lean_object* v___x_2606_; +v___x_2605_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2605_, 0, v___y_2603_); +v___x_2606_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2606_, 0, v___x_2605_); +return v___x_2606_; } } -} -else -{ -lean_object* v_a_2614_; lean_object* v___x_2616_; uint8_t v_isShared_2617_; uint8_t v_isSharedCheck_2624_; -v_a_2614_ = lean_ctor_get(v_x_2603_, 0); -v_isSharedCheck_2624_ = !lean_is_exclusive(v_x_2603_); -if (v_isSharedCheck_2624_ == 0) -{ -v___x_2616_ = v_x_2603_; -v_isShared_2617_ = v_isSharedCheck_2624_; -goto v_resetjp_2615_; -} -else -{ -lean_inc(v_a_2614_); -lean_dec(v_x_2603_); -v___x_2616_ = lean_box(0); -v_isShared_2617_ = v_isSharedCheck_2624_; -goto v_resetjp_2615_; -} -v_resetjp_2615_: -{ -lean_object* v_token_2618_; lean_object* v___x_2619_; lean_object* v___x_2621_; -v_token_2618_ = lean_ctor_get(v_a_2614_, 1); -lean_inc_ref(v_token_2618_); -lean_dec(v_a_2614_); -v___x_2619_ = l_Std_CancellationToken_selector(v_token_2618_); -if (v_isShared_2617_ == 0) -{ -lean_ctor_set(v___x_2616_, 0, v___x_2619_); -v___x_2621_ = v___x_2616_; -goto v_reusejp_2620_; -} -else -{ -lean_object* v_reuseFailAlloc_2623_; -v_reuseFailAlloc_2623_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2623_, 0, v___x_2619_); -v___x_2621_ = v_reuseFailAlloc_2623_; -goto v_reusejp_2620_; -} -v_reusejp_2620_: -{ -lean_object* v___x_2622_; -v___x_2622_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2622_, 0, v___x_2621_); -return v___x_2622_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2___boxed(lean_object* v_x_2625_, lean_object* v___y_2626_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1___boxed(lean_object* v___y_2607_, lean_object* v___y_2608_){ _start: { -lean_object* v_res_2627_; -v_res_2627_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2(v_x_2625_); -return v_res_2627_; +lean_object* v_res_2609_; +v_res_2609_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__1(v___y_2607_); +return v_res_2609_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3(lean_object* v_stream_2628_, lean_object* v___f_2629_, lean_object* v___f_2630_, lean_object* v_x_2631_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2(lean_object* v_x_2610_){ _start: { -if (lean_obj_tag(v_x_2631_) == 0) +if (lean_obj_tag(v_x_2610_) == 0) { -lean_object* v_a_2633_; lean_object* v___x_2635_; uint8_t v_isShared_2636_; uint8_t v_isSharedCheck_2641_; -lean_dec_ref(v___f_2630_); -lean_dec_ref(v___f_2629_); -lean_dec_ref(v_stream_2628_); -v_a_2633_ = lean_ctor_get(v_x_2631_, 0); -v_isSharedCheck_2641_ = !lean_is_exclusive(v_x_2631_); -if (v_isSharedCheck_2641_ == 0) +lean_object* v_a_2612_; lean_object* v___x_2614_; uint8_t v_isShared_2615_; uint8_t v_isSharedCheck_2620_; +v_a_2612_ = lean_ctor_get(v_x_2610_, 0); +v_isSharedCheck_2620_ = !lean_is_exclusive(v_x_2610_); +if (v_isSharedCheck_2620_ == 0) { -v___x_2635_ = v_x_2631_; -v_isShared_2636_ = v_isSharedCheck_2641_; -goto v_resetjp_2634_; +v___x_2614_ = v_x_2610_; +v_isShared_2615_ = v_isSharedCheck_2620_; +goto v_resetjp_2613_; } else { -lean_inc(v_a_2633_); -lean_dec(v_x_2631_); -v___x_2635_ = lean_box(0); -v_isShared_2636_ = v_isSharedCheck_2641_; -goto v_resetjp_2634_; +lean_inc(v_a_2612_); +lean_dec(v_x_2610_); +v___x_2614_ = lean_box(0); +v_isShared_2615_ = v_isSharedCheck_2620_; +goto v_resetjp_2613_; } -v_resetjp_2634_: +v_resetjp_2613_: { -lean_object* v___x_2638_; -if (v_isShared_2636_ == 0) +lean_object* v___x_2617_; +if (v_isShared_2615_ == 0) { -v___x_2638_ = v___x_2635_; -goto v_reusejp_2637_; +v___x_2617_ = v___x_2614_; +goto v_reusejp_2616_; } else { -lean_object* v_reuseFailAlloc_2640_; -v_reuseFailAlloc_2640_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2640_, 0, v_a_2633_); -v___x_2638_ = v_reuseFailAlloc_2640_; -goto v_reusejp_2637_; +lean_object* v_reuseFailAlloc_2619_; +v_reuseFailAlloc_2619_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2619_, 0, v_a_2612_); +v___x_2617_ = v_reuseFailAlloc_2619_; +goto v_reusejp_2616_; } -v_reusejp_2637_: +v_reusejp_2616_: { -lean_object* v___x_2639_; -v___x_2639_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2639_, 0, v___x_2638_); -return v___x_2639_; +lean_object* v___x_2618_; +v___x_2618_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2618_, 0, v___x_2617_); +return v___x_2618_; } } } else { -lean_object* v_a_2642_; lean_object* v___x_2643_; lean_object* v___x_2644_; lean_object* v___x_2645_; lean_object* v___x_2646_; lean_object* v___x_2647_; lean_object* v___x_2648_; lean_object* v___x_2649_; lean_object* v___x_2650_; -v_a_2642_ = lean_ctor_get(v_x_2631_, 0); -lean_inc(v_a_2642_); -lean_dec_ref(v_x_2631_); -v___x_2643_ = l_Std_Http_Body_Stream_recvSelector(v_stream_2628_); -v___x_2644_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2644_, 0, v___x_2643_); -lean_ctor_set(v___x_2644_, 1, v___f_2629_); -v___x_2645_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2645_, 0, v_a_2642_); -lean_ctor_set(v___x_2645_, 1, v___f_2630_); -v___x_2646_ = lean_unsigned_to_nat(2u); -v___x_2647_ = lean_mk_empty_array_with_capacity(v___x_2646_); -v___x_2648_ = lean_array_push(v___x_2647_, v___x_2644_); -v___x_2649_ = lean_array_push(v___x_2648_, v___x_2645_); -v___x_2650_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_2649_); -return v___x_2650_; +lean_object* v_a_2621_; lean_object* v___x_2623_; uint8_t v_isShared_2624_; uint8_t v_isSharedCheck_2631_; +v_a_2621_ = lean_ctor_get(v_x_2610_, 0); +v_isSharedCheck_2631_ = !lean_is_exclusive(v_x_2610_); +if (v_isSharedCheck_2631_ == 0) +{ +v___x_2623_ = v_x_2610_; +v_isShared_2624_ = v_isSharedCheck_2631_; +goto v_resetjp_2622_; +} +else +{ +lean_inc(v_a_2621_); +lean_dec(v_x_2610_); +v___x_2623_ = lean_box(0); +v_isShared_2624_ = v_isSharedCheck_2631_; +goto v_resetjp_2622_; +} +v_resetjp_2622_: +{ +lean_object* v_token_2625_; lean_object* v___x_2626_; lean_object* v___x_2628_; +v_token_2625_ = lean_ctor_get(v_a_2621_, 1); +lean_inc_ref(v_token_2625_); +lean_dec(v_a_2621_); +v___x_2626_ = l_Std_CancellationToken_selector(v_token_2625_); +if (v_isShared_2624_ == 0) +{ +lean_ctor_set(v___x_2623_, 0, v___x_2626_); +v___x_2628_ = v___x_2623_; +goto v_reusejp_2627_; +} +else +{ +lean_object* v_reuseFailAlloc_2630_; +v_reuseFailAlloc_2630_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2630_, 0, v___x_2626_); +v___x_2628_ = v_reuseFailAlloc_2630_; +goto v_reusejp_2627_; +} +v_reusejp_2627_: +{ +lean_object* v___x_2629_; +v___x_2629_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2629_, 0, v___x_2628_); +return v___x_2629_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3___boxed(lean_object* v_stream_2651_, lean_object* v___f_2652_, lean_object* v___f_2653_, lean_object* v_x_2654_, lean_object* v___y_2655_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2___boxed(lean_object* v_x_2632_, lean_object* v___y_2633_){ _start: { -lean_object* v_res_2656_; -v_res_2656_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3(v_stream_2651_, v___f_2652_, v___f_2653_, v_x_2654_); -return v_res_2656_; +lean_object* v_res_2634_; +v_res_2634_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__2(v_x_2632_); +return v_res_2634_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4(lean_object* v___f_2657_, lean_object* v___f_2658_, lean_object* v___f_2659_, lean_object* v_stream_2660_, lean_object* v___y_2661_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3(lean_object* v_stream_2635_, lean_object* v___f_2636_, lean_object* v___f_2637_, lean_object* v_x_2638_){ _start: { -lean_object* v___x_2663_; lean_object* v___x_2664_; lean_object* v___x_2665_; uint8_t v___x_2666_; lean_object* v___x_2667_; lean_object* v___f_2668_; lean_object* v___x_2669_; -lean_inc_ref(v___y_2661_); -v___x_2663_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2663_, 0, v___y_2661_); -v___x_2664_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2664_, 0, v___x_2663_); -v___x_2665_ = lean_unsigned_to_nat(0u); -v___x_2666_ = 0; -v___x_2667_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2665_, v___x_2666_, v___x_2664_, v___f_2657_); -v___f_2668_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3___boxed), 5, 3); -lean_closure_set(v___f_2668_, 0, v_stream_2660_); -lean_closure_set(v___f_2668_, 1, v___f_2658_); -lean_closure_set(v___f_2668_, 2, v___f_2659_); -v___x_2669_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2665_, v___x_2666_, v___x_2667_, v___f_2668_); -return v___x_2669_; +if (lean_obj_tag(v_x_2638_) == 0) +{ +lean_object* v_a_2640_; lean_object* v___x_2642_; uint8_t v_isShared_2643_; uint8_t v_isSharedCheck_2648_; +lean_dec_ref(v___f_2637_); +lean_dec_ref(v___f_2636_); +lean_dec_ref(v_stream_2635_); +v_a_2640_ = lean_ctor_get(v_x_2638_, 0); +v_isSharedCheck_2648_ = !lean_is_exclusive(v_x_2638_); +if (v_isSharedCheck_2648_ == 0) +{ +v___x_2642_ = v_x_2638_; +v_isShared_2643_ = v_isSharedCheck_2648_; +goto v_resetjp_2641_; +} +else +{ +lean_inc(v_a_2640_); +lean_dec(v_x_2638_); +v___x_2642_ = lean_box(0); +v_isShared_2643_ = v_isSharedCheck_2648_; +goto v_resetjp_2641_; +} +v_resetjp_2641_: +{ +lean_object* v___x_2645_; +if (v_isShared_2643_ == 0) +{ +v___x_2645_ = v___x_2642_; +goto v_reusejp_2644_; +} +else +{ +lean_object* v_reuseFailAlloc_2647_; +v_reuseFailAlloc_2647_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2647_, 0, v_a_2640_); +v___x_2645_ = v_reuseFailAlloc_2647_; +goto v_reusejp_2644_; +} +v_reusejp_2644_: +{ +lean_object* v___x_2646_; +v___x_2646_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2646_, 0, v___x_2645_); +return v___x_2646_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4___boxed(lean_object* v___f_2670_, lean_object* v___f_2671_, lean_object* v___f_2672_, lean_object* v_stream_2673_, lean_object* v___y_2674_, lean_object* v___y_2675_){ +} +else +{ +lean_object* v_a_2649_; lean_object* v___x_2650_; lean_object* v___x_2651_; lean_object* v___x_2652_; lean_object* v___x_2653_; lean_object* v___x_2654_; lean_object* v___x_2655_; lean_object* v___x_2656_; lean_object* v___x_2657_; +v_a_2649_ = lean_ctor_get(v_x_2638_, 0); +lean_inc(v_a_2649_); +lean_dec_ref(v_x_2638_); +v___x_2650_ = l_Std_Http_Body_Stream_recvSelector(v_stream_2635_); +v___x_2651_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2651_, 0, v___x_2650_); +lean_ctor_set(v___x_2651_, 1, v___f_2636_); +v___x_2652_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2652_, 0, v_a_2649_); +lean_ctor_set(v___x_2652_, 1, v___f_2637_); +v___x_2653_ = lean_unsigned_to_nat(2u); +v___x_2654_ = lean_mk_empty_array_with_capacity(v___x_2653_); +v___x_2655_ = lean_array_push(v___x_2654_, v___x_2651_); +v___x_2656_ = lean_array_push(v___x_2655_, v___x_2652_); +v___x_2657_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_2656_); +return v___x_2657_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3___boxed(lean_object* v_stream_2658_, lean_object* v___f_2659_, lean_object* v___f_2660_, lean_object* v_x_2661_, lean_object* v___y_2662_){ _start: { -lean_object* v_res_2676_; -v_res_2676_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4(v___f_2670_, v___f_2671_, v___f_2672_, v_stream_2673_, v___y_2674_); -lean_dec_ref(v___y_2674_); -return v_res_2676_; +lean_object* v_res_2663_; +v_res_2663_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3(v_stream_2658_, v___f_2659_, v___f_2660_, v_x_2661_); +return v_res_2663_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1(lean_object* v_toPure_2687_, lean_object* v_result_2688_, lean_object* v_maximumSize_2689_, lean_object* v_inst_2690_, lean_object* v_inst_2691_, lean_object* v_inst_2692_, lean_object* v_stream_2693_, lean_object* v_toBind_2694_, lean_object* v_____do__lift_2695_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4(lean_object* v___f_2664_, lean_object* v___f_2665_, lean_object* v___f_2666_, lean_object* v_stream_2667_, lean_object* v___y_2668_){ _start: { -if (lean_obj_tag(v_____do__lift_2695_) == 0) -{ -lean_object* v___x_2696_; -lean_dec(v_toBind_2694_); -lean_dec_ref(v_stream_2693_); -lean_dec(v_inst_2692_); -lean_dec_ref(v_inst_2691_); -lean_dec_ref(v_inst_2690_); -lean_dec(v_maximumSize_2689_); -v___x_2696_ = lean_apply_2(v_toPure_2687_, lean_box(0), v_result_2688_); -return v___x_2696_; -} -else -{ -lean_object* v_val_2697_; lean_object* v___x_2699_; uint8_t v_isShared_2700_; uint8_t v_isSharedCheck_2728_; -lean_dec(v_toPure_2687_); -v_val_2697_ = lean_ctor_get(v_____do__lift_2695_, 0); -v_isSharedCheck_2728_ = !lean_is_exclusive(v_____do__lift_2695_); -if (v_isSharedCheck_2728_ == 0) -{ -v___x_2699_ = v_____do__lift_2695_; -v_isShared_2700_ = v_isSharedCheck_2728_; -goto v_resetjp_2698_; -} -else -{ -lean_inc(v_val_2697_); -lean_dec(v_____do__lift_2695_); -v___x_2699_ = lean_box(0); -v_isShared_2700_ = v_isSharedCheck_2728_; -goto v_resetjp_2698_; -} -v_resetjp_2698_: -{ -lean_object* v_data_2701_; lean_object* v___x_2702_; lean_object* v___x_2703_; lean_object* v___x_2704_; uint8_t v___x_2705_; lean_object* v_result_2706_; -v_data_2701_ = lean_ctor_get(v_val_2697_, 0); -lean_inc_ref(v_data_2701_); -lean_dec(v_val_2697_); -v___x_2702_ = lean_unsigned_to_nat(0u); -v___x_2703_ = lean_byte_array_size(v_result_2688_); -v___x_2704_ = lean_byte_array_size(v_data_2701_); -v___x_2705_ = 0; -v_result_2706_ = lean_byte_array_copy_slice(v_data_2701_, v___x_2702_, v_result_2688_, v___x_2703_, v___x_2704_, v___x_2705_); -lean_dec_ref(v_data_2701_); -if (lean_obj_tag(v_maximumSize_2689_) == 1) -{ -lean_object* v_val_2707_; lean_object* v___x_2708_; uint64_t v___x_2709_; uint64_t v___x_2710_; uint8_t v___x_2711_; -v_val_2707_ = lean_ctor_get(v_maximumSize_2689_, 0); -v___x_2708_ = lean_byte_array_size(v_result_2706_); -v___x_2709_ = lean_uint64_of_nat(v___x_2708_); -v___x_2710_ = lean_unbox_uint64(v_val_2707_); -v___x_2711_ = lean_uint64_dec_lt(v___x_2710_, v___x_2709_); -if (v___x_2711_ == 0) -{ -lean_object* v___x_2712_; -lean_del_object(v___x_2699_); -lean_dec(v_toBind_2694_); -v___x_2712_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2690_, v_inst_2691_, v_inst_2692_, v_stream_2693_, v_maximumSize_2689_, v_result_2706_); -return v___x_2712_; -} -else -{ -lean_object* v_throw_2713_; lean_object* v___f_2714_; lean_object* v___x_2715_; uint64_t v___x_2716_; lean_object* v___x_2717_; lean_object* v___x_2718_; lean_object* v___x_2719_; lean_object* v___x_2720_; lean_object* v___x_2721_; lean_object* v___x_2723_; -lean_inc(v_val_2707_); -v_throw_2713_ = lean_ctor_get(v_inst_2691_, 0); -lean_inc(v_throw_2713_); -v___f_2714_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__0), 7, 6); -lean_closure_set(v___f_2714_, 0, v_inst_2690_); -lean_closure_set(v___f_2714_, 1, v_inst_2691_); -lean_closure_set(v___f_2714_, 2, v_inst_2692_); -lean_closure_set(v___f_2714_, 3, v_stream_2693_); -lean_closure_set(v___f_2714_, 4, v_maximumSize_2689_); -lean_closure_set(v___f_2714_, 5, v_result_2706_); -v___x_2715_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1___closed__0)); -v___x_2716_ = lean_unbox_uint64(v_val_2707_); -lean_dec(v_val_2707_); -v___x_2717_ = lean_uint64_to_nat(v___x_2716_); -v___x_2718_ = l_Nat_reprFast(v___x_2717_); -v___x_2719_ = lean_string_append(v___x_2715_, v___x_2718_); -lean_dec_ref(v___x_2718_); -v___x_2720_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1___closed__1)); -v___x_2721_ = lean_string_append(v___x_2719_, v___x_2720_); -if (v_isShared_2700_ == 0) -{ -lean_ctor_set_tag(v___x_2699_, 18); -lean_ctor_set(v___x_2699_, 0, v___x_2721_); -v___x_2723_ = v___x_2699_; -goto v_reusejp_2722_; -} -else -{ -lean_object* v_reuseFailAlloc_2726_; -v_reuseFailAlloc_2726_ = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2726_, 0, v___x_2721_); -v___x_2723_ = v_reuseFailAlloc_2726_; -goto v_reusejp_2722_; -} -v_reusejp_2722_: -{ -lean_object* v___x_2724_; lean_object* v___x_2725_; -v___x_2724_ = lean_apply_2(v_throw_2713_, lean_box(0), v___x_2723_); -v___x_2725_ = lean_apply_4(v_toBind_2694_, lean_box(0), lean_box(0), v___x_2724_, v___f_2714_); -return v___x_2725_; +lean_object* v___x_2670_; lean_object* v___x_2671_; lean_object* v___x_2672_; uint8_t v___x_2673_; lean_object* v___x_2674_; lean_object* v___f_2675_; lean_object* v___x_2676_; +lean_inc_ref(v___y_2668_); +v___x_2670_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2670_, 0, v___y_2668_); +v___x_2671_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2671_, 0, v___x_2670_); +v___x_2672_ = lean_unsigned_to_nat(0u); +v___x_2673_ = 0; +v___x_2674_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2672_, v___x_2673_, v___x_2671_, v___f_2664_); +v___f_2675_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__3___boxed), 5, 3); +lean_closure_set(v___f_2675_, 0, v_stream_2667_); +lean_closure_set(v___f_2675_, 1, v___f_2665_); +lean_closure_set(v___f_2675_, 2, v___f_2666_); +v___x_2676_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2672_, v___x_2673_, v___x_2674_, v___f_2675_); +return v___x_2676_; } } -} -else -{ -lean_object* v___x_2727_; -lean_del_object(v___x_2699_); -lean_dec(v_toBind_2694_); -v___x_2727_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2690_, v_inst_2691_, v_inst_2692_, v_stream_2693_, v_maximumSize_2689_, v_result_2706_); -return v___x_2727_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(lean_object* v_inst_2729_, lean_object* v_inst_2730_, lean_object* v_inst_2731_, lean_object* v_stream_2732_, lean_object* v_maximumSize_2733_, lean_object* v_result_2734_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4___boxed(lean_object* v___f_2677_, lean_object* v___f_2678_, lean_object* v___f_2679_, lean_object* v_stream_2680_, lean_object* v___y_2681_, lean_object* v___y_2682_){ _start: { -lean_object* v_toApplicative_2735_; lean_object* v_toBind_2736_; lean_object* v_toPure_2737_; lean_object* v___x_2738_; lean_object* v___f_2739_; lean_object* v___x_2740_; -v_toApplicative_2735_ = lean_ctor_get(v_inst_2729_, 0); -v_toBind_2736_ = lean_ctor_get(v_inst_2729_, 1); -lean_inc_n(v_toBind_2736_, 2); -v_toPure_2737_ = lean_ctor_get(v_toApplicative_2735_, 1); -lean_inc(v_toPure_2737_); -lean_inc(v_inst_2731_); -lean_inc_ref(v_stream_2732_); -v___x_2738_ = lean_apply_1(v_inst_2731_, v_stream_2732_); -v___f_2739_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1), 9, 8); -lean_closure_set(v___f_2739_, 0, v_toPure_2737_); -lean_closure_set(v___f_2739_, 1, v_result_2734_); -lean_closure_set(v___f_2739_, 2, v_maximumSize_2733_); -lean_closure_set(v___f_2739_, 3, v_inst_2729_); -lean_closure_set(v___f_2739_, 4, v_inst_2730_); -lean_closure_set(v___f_2739_, 5, v_inst_2731_); -lean_closure_set(v___f_2739_, 6, v_stream_2732_); -lean_closure_set(v___f_2739_, 7, v_toBind_2736_); -v___x_2740_ = lean_apply_4(v_toBind_2736_, lean_box(0), lean_box(0), v___x_2738_, v___f_2739_); -return v___x_2740_; +lean_object* v_res_2683_; +v_res_2683_ = l_Std_Http_Body_Stream_instNextChunkContextAsync___lam__4(v___f_2677_, v___f_2678_, v___f_2679_, v_stream_2680_, v___y_2681_); +lean_dec_ref(v___y_2681_); +return v_res_2683_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__0(lean_object* v_inst_2741_, lean_object* v_inst_2742_, lean_object* v_inst_2743_, lean_object* v_stream_2744_, lean_object* v_maximumSize_2745_, lean_object* v_result_2746_, lean_object* v_____r_2747_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1(lean_object* v_toPure_2694_, lean_object* v_result_2695_, lean_object* v_maximumSize_2696_, lean_object* v_inst_2697_, lean_object* v_inst_2698_, lean_object* v_inst_2699_, lean_object* v_stream_2700_, lean_object* v_toBind_2701_, lean_object* v_____do__lift_2702_){ _start: { -lean_object* v___x_2748_; -v___x_2748_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2741_, v_inst_2742_, v_inst_2743_, v_stream_2744_, v_maximumSize_2745_, v_result_2746_); -return v___x_2748_; +if (lean_obj_tag(v_____do__lift_2702_) == 0) +{ +lean_object* v___x_2703_; +lean_dec(v_toBind_2701_); +lean_dec_ref(v_stream_2700_); +lean_dec(v_inst_2699_); +lean_dec_ref(v_inst_2698_); +lean_dec_ref(v_inst_2697_); +lean_dec(v_maximumSize_2696_); +v___x_2703_ = lean_apply_2(v_toPure_2694_, lean_box(0), v_result_2695_); +return v___x_2703_; +} +else +{ +lean_object* v_val_2704_; lean_object* v___x_2706_; uint8_t v_isShared_2707_; uint8_t v_isSharedCheck_2735_; +lean_dec(v_toPure_2694_); +v_val_2704_ = lean_ctor_get(v_____do__lift_2702_, 0); +v_isSharedCheck_2735_ = !lean_is_exclusive(v_____do__lift_2702_); +if (v_isSharedCheck_2735_ == 0) +{ +v___x_2706_ = v_____do__lift_2702_; +v_isShared_2707_ = v_isSharedCheck_2735_; +goto v_resetjp_2705_; +} +else +{ +lean_inc(v_val_2704_); +lean_dec(v_____do__lift_2702_); +v___x_2706_ = lean_box(0); +v_isShared_2707_ = v_isSharedCheck_2735_; +goto v_resetjp_2705_; +} +v_resetjp_2705_: +{ +lean_object* v_data_2708_; lean_object* v___x_2709_; lean_object* v___x_2710_; lean_object* v___x_2711_; uint8_t v___x_2712_; lean_object* v_result_2713_; +v_data_2708_ = lean_ctor_get(v_val_2704_, 0); +lean_inc_ref(v_data_2708_); +lean_dec(v_val_2704_); +v___x_2709_ = lean_unsigned_to_nat(0u); +v___x_2710_ = lean_byte_array_size(v_result_2695_); +v___x_2711_ = lean_byte_array_size(v_data_2708_); +v___x_2712_ = 0; +v_result_2713_ = lean_byte_array_copy_slice(v_data_2708_, v___x_2709_, v_result_2695_, v___x_2710_, v___x_2711_, v___x_2712_); +lean_dec_ref(v_data_2708_); +if (lean_obj_tag(v_maximumSize_2696_) == 1) +{ +lean_object* v_val_2714_; lean_object* v___x_2715_; uint64_t v___x_2716_; uint64_t v___x_2717_; uint8_t v___x_2718_; +v_val_2714_ = lean_ctor_get(v_maximumSize_2696_, 0); +v___x_2715_ = lean_byte_array_size(v_result_2713_); +v___x_2716_ = lean_uint64_of_nat(v___x_2715_); +v___x_2717_ = lean_unbox_uint64(v_val_2714_); +v___x_2718_ = lean_uint64_dec_lt(v___x_2717_, v___x_2716_); +if (v___x_2718_ == 0) +{ +lean_object* v___x_2719_; +lean_del_object(v___x_2706_); +lean_dec(v_toBind_2701_); +v___x_2719_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2697_, v_inst_2698_, v_inst_2699_, v_stream_2700_, v_maximumSize_2696_, v_result_2713_); +return v___x_2719_; +} +else +{ +lean_object* v_throw_2720_; lean_object* v___f_2721_; lean_object* v___x_2722_; uint64_t v___x_2723_; lean_object* v___x_2724_; lean_object* v___x_2725_; lean_object* v___x_2726_; lean_object* v___x_2727_; lean_object* v___x_2728_; lean_object* v___x_2730_; +lean_inc(v_val_2714_); +v_throw_2720_ = lean_ctor_get(v_inst_2698_, 0); +lean_inc(v_throw_2720_); +v___f_2721_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__0), 7, 6); +lean_closure_set(v___f_2721_, 0, v_inst_2697_); +lean_closure_set(v___f_2721_, 1, v_inst_2698_); +lean_closure_set(v___f_2721_, 2, v_inst_2699_); +lean_closure_set(v___f_2721_, 3, v_stream_2700_); +lean_closure_set(v___f_2721_, 4, v_maximumSize_2696_); +lean_closure_set(v___f_2721_, 5, v_result_2713_); +v___x_2722_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1___closed__0)); +v___x_2723_ = lean_unbox_uint64(v_val_2714_); +lean_dec(v_val_2714_); +v___x_2724_ = lean_uint64_to_nat(v___x_2723_); +v___x_2725_ = l_Nat_reprFast(v___x_2724_); +v___x_2726_ = lean_string_append(v___x_2722_, v___x_2725_); +lean_dec_ref(v___x_2725_); +v___x_2727_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1___closed__1)); +v___x_2728_ = lean_string_append(v___x_2726_, v___x_2727_); +if (v_isShared_2707_ == 0) +{ +lean_ctor_set_tag(v___x_2706_, 18); +lean_ctor_set(v___x_2706_, 0, v___x_2728_); +v___x_2730_ = v___x_2706_; +goto v_reusejp_2729_; +} +else +{ +lean_object* v_reuseFailAlloc_2733_; +v_reuseFailAlloc_2733_ = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2733_, 0, v___x_2728_); +v___x_2730_ = v_reuseFailAlloc_2733_; +goto v_reusejp_2729_; +} +v_reusejp_2729_: +{ +lean_object* v___x_2731_; lean_object* v___x_2732_; +v___x_2731_ = lean_apply_2(v_throw_2720_, lean_box(0), v___x_2730_); +v___x_2732_ = lean_apply_4(v_toBind_2701_, lean_box(0), lean_box(0), v___x_2731_, v___f_2721_); +return v___x_2732_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop(lean_object* v_m_2749_, lean_object* v_inst_2750_, lean_object* v_inst_2751_, lean_object* v_inst_2752_, lean_object* v_stream_2753_, lean_object* v_maximumSize_2754_, lean_object* v_result_2755_){ +} +else +{ +lean_object* v___x_2734_; +lean_del_object(v___x_2706_); +lean_dec(v_toBind_2701_); +v___x_2734_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2697_, v_inst_2698_, v_inst_2699_, v_stream_2700_, v_maximumSize_2696_, v_result_2713_); +return v___x_2734_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(lean_object* v_inst_2736_, lean_object* v_inst_2737_, lean_object* v_inst_2738_, lean_object* v_stream_2739_, lean_object* v_maximumSize_2740_, lean_object* v_result_2741_){ _start: { -lean_object* v___x_2756_; -v___x_2756_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2750_, v_inst_2751_, v_inst_2752_, v_stream_2753_, v_maximumSize_2754_, v_result_2755_); -return v___x_2756_; +lean_object* v_toApplicative_2742_; lean_object* v_toBind_2743_; lean_object* v_toPure_2744_; lean_object* v___x_2745_; lean_object* v___f_2746_; lean_object* v___x_2747_; +v_toApplicative_2742_ = lean_ctor_get(v_inst_2736_, 0); +v_toBind_2743_ = lean_ctor_get(v_inst_2736_, 1); +lean_inc_n(v_toBind_2743_, 2); +v_toPure_2744_ = lean_ctor_get(v_toApplicative_2742_, 1); +lean_inc(v_toPure_2744_); +lean_inc(v_inst_2738_); +lean_inc_ref(v_stream_2739_); +v___x_2745_ = lean_apply_1(v_inst_2738_, v_stream_2739_); +v___f_2746_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__1), 9, 8); +lean_closure_set(v___f_2746_, 0, v_toPure_2744_); +lean_closure_set(v___f_2746_, 1, v_result_2741_); +lean_closure_set(v___f_2746_, 2, v_maximumSize_2740_); +lean_closure_set(v___f_2746_, 3, v_inst_2736_); +lean_closure_set(v___f_2746_, 4, v_inst_2737_); +lean_closure_set(v___f_2746_, 5, v_inst_2738_); +lean_closure_set(v___f_2746_, 6, v_stream_2739_); +lean_closure_set(v___f_2746_, 7, v_toBind_2743_); +v___x_2747_ = lean_apply_4(v_toBind_2743_, lean_box(0), lean_box(0), v___x_2745_, v___f_2746_); +return v___x_2747_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___redArg___lam__0(lean_object* v_inst_2757_, lean_object* v_inst_2758_, lean_object* v_toPure_2759_, lean_object* v_result_2760_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg___lam__0(lean_object* v_inst_2748_, lean_object* v_inst_2749_, lean_object* v_inst_2750_, lean_object* v_stream_2751_, lean_object* v_maximumSize_2752_, lean_object* v_result_2753_, lean_object* v_____r_2754_){ _start: { -lean_object* v___x_2761_; -v___x_2761_ = lean_apply_1(v_inst_2757_, v_result_2760_); -if (lean_obj_tag(v___x_2761_) == 0) -{ -lean_object* v_a_2762_; lean_object* v___x_2764_; uint8_t v_isShared_2765_; uint8_t v_isSharedCheck_2771_; -lean_dec(v_toPure_2759_); -v_a_2762_ = lean_ctor_get(v___x_2761_, 0); -v_isSharedCheck_2771_ = !lean_is_exclusive(v___x_2761_); -if (v_isSharedCheck_2771_ == 0) -{ -v___x_2764_ = v___x_2761_; -v_isShared_2765_ = v_isSharedCheck_2771_; -goto v_resetjp_2763_; -} -else -{ -lean_inc(v_a_2762_); -lean_dec(v___x_2761_); -v___x_2764_ = lean_box(0); -v_isShared_2765_ = v_isSharedCheck_2771_; -goto v_resetjp_2763_; -} -v_resetjp_2763_: -{ -lean_object* v_throw_2766_; lean_object* v___x_2768_; -v_throw_2766_ = lean_ctor_get(v_inst_2758_, 0); -lean_inc(v_throw_2766_); -lean_dec_ref(v_inst_2758_); -if (v_isShared_2765_ == 0) -{ -lean_ctor_set_tag(v___x_2764_, 18); -v___x_2768_ = v___x_2764_; -goto v_reusejp_2767_; -} -else -{ -lean_object* v_reuseFailAlloc_2770_; -v_reuseFailAlloc_2770_ = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2770_, 0, v_a_2762_); -v___x_2768_ = v_reuseFailAlloc_2770_; -goto v_reusejp_2767_; -} -v_reusejp_2767_: -{ -lean_object* v___x_2769_; -v___x_2769_ = lean_apply_2(v_throw_2766_, lean_box(0), v___x_2768_); -return v___x_2769_; +lean_object* v___x_2755_; +v___x_2755_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2748_, v_inst_2749_, v_inst_2750_, v_stream_2751_, v_maximumSize_2752_, v_result_2753_); +return v___x_2755_; } } -} -else -{ -lean_object* v_a_2772_; lean_object* v___x_2773_; -lean_dec_ref(v_inst_2758_); -v_a_2772_ = lean_ctor_get(v___x_2761_, 0); -lean_inc(v_a_2772_); -lean_dec_ref(v___x_2761_); -v___x_2773_ = lean_apply_2(v_toPure_2759_, lean_box(0), v_a_2772_); -return v___x_2773_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___redArg(lean_object* v_inst_2774_, lean_object* v_inst_2775_, lean_object* v_inst_2776_, lean_object* v_inst_2777_, lean_object* v_stream_2778_, lean_object* v_maximumSize_2779_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop(lean_object* v_m_2756_, lean_object* v_inst_2757_, lean_object* v_inst_2758_, lean_object* v_inst_2759_, lean_object* v_stream_2760_, lean_object* v_maximumSize_2761_, lean_object* v_result_2762_){ _start: { -lean_object* v_toApplicative_2780_; lean_object* v_toBind_2781_; lean_object* v_toPure_2782_; lean_object* v___x_2783_; lean_object* v___x_2784_; lean_object* v___f_2785_; lean_object* v___x_2786_; -v_toApplicative_2780_ = lean_ctor_get(v_inst_2775_, 0); -v_toBind_2781_ = lean_ctor_get(v_inst_2775_, 1); -lean_inc(v_toBind_2781_); -v_toPure_2782_ = lean_ctor_get(v_toApplicative_2780_, 1); -lean_inc(v_toPure_2782_); -v___x_2783_ = l_ByteArray_empty; -lean_inc_ref(v_inst_2776_); -v___x_2784_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2775_, v_inst_2776_, v_inst_2777_, v_stream_2778_, v_maximumSize_2779_, v___x_2783_); -v___f_2785_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_readAll___redArg___lam__0), 4, 3); -lean_closure_set(v___f_2785_, 0, v_inst_2774_); -lean_closure_set(v___f_2785_, 1, v_inst_2776_); -lean_closure_set(v___f_2785_, 2, v_toPure_2782_); -v___x_2786_ = lean_apply_4(v_toBind_2781_, lean_box(0), lean_box(0), v___x_2784_, v___f_2785_); -return v___x_2786_; +lean_object* v___x_2763_; +v___x_2763_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2757_, v_inst_2758_, v_inst_2759_, v_stream_2760_, v_maximumSize_2761_, v_result_2762_); +return v___x_2763_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll(lean_object* v_00_u03b1_2787_, lean_object* v_m_2788_, lean_object* v_inst_2789_, lean_object* v_inst_2790_, lean_object* v_inst_2791_, lean_object* v_inst_2792_, lean_object* v_stream_2793_, lean_object* v_maximumSize_2794_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___redArg___lam__0(lean_object* v_inst_2764_, lean_object* v_inst_2765_, lean_object* v_toPure_2766_, lean_object* v_result_2767_){ _start: { -lean_object* v___x_2795_; -v___x_2795_ = l_Std_Http_Body_Stream_readAll___redArg(v_inst_2789_, v_inst_2790_, v_inst_2791_, v_inst_2792_, v_stream_2793_, v_maximumSize_2794_); -return v___x_2795_; +lean_object* v___x_2768_; +v___x_2768_ = lean_apply_1(v_inst_2764_, v_result_2767_); +if (lean_obj_tag(v___x_2768_) == 0) +{ +lean_object* v_a_2769_; lean_object* v___x_2771_; uint8_t v_isShared_2772_; uint8_t v_isSharedCheck_2778_; +lean_dec(v_toPure_2766_); +v_a_2769_ = lean_ctor_get(v___x_2768_, 0); +v_isSharedCheck_2778_ = !lean_is_exclusive(v___x_2768_); +if (v_isSharedCheck_2778_ == 0) +{ +v___x_2771_ = v___x_2768_; +v_isShared_2772_ = v_isSharedCheck_2778_; +goto v_resetjp_2770_; +} +else +{ +lean_inc(v_a_2769_); +lean_dec(v___x_2768_); +v___x_2771_ = lean_box(0); +v_isShared_2772_ = v_isSharedCheck_2778_; +goto v_resetjp_2770_; +} +v_resetjp_2770_: +{ +lean_object* v_throw_2773_; lean_object* v___x_2775_; +v_throw_2773_ = lean_ctor_get(v_inst_2765_, 0); +lean_inc(v_throw_2773_); +lean_dec_ref(v_inst_2765_); +if (v_isShared_2772_ == 0) +{ +lean_ctor_set_tag(v___x_2771_, 18); +v___x_2775_ = v___x_2771_; +goto v_reusejp_2774_; +} +else +{ +lean_object* v_reuseFailAlloc_2777_; +v_reuseFailAlloc_2777_ = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2777_, 0, v_a_2769_); +v___x_2775_ = v_reuseFailAlloc_2777_; +goto v_reusejp_2774_; +} +v_reusejp_2774_: +{ +lean_object* v___x_2776_; +v___x_2776_ = lean_apply_2(v_throw_2773_, lean_box(0), v___x_2775_); +return v___x_2776_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0(uint8_t v_incomplete_2801_, lean_object* v_chunk_2802_, lean_object* v___y_2803_){ +} +else +{ +lean_object* v_a_2779_; lean_object* v___x_2780_; +lean_dec_ref(v_inst_2765_); +v_a_2779_ = lean_ctor_get(v___x_2768_, 0); +lean_inc(v_a_2779_); +lean_dec_ref(v___x_2768_); +v___x_2780_ = lean_apply_2(v_toPure_2766_, lean_box(0), v_a_2779_); +return v___x_2780_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___redArg(lean_object* v_inst_2781_, lean_object* v_inst_2782_, lean_object* v_inst_2783_, lean_object* v_inst_2784_, lean_object* v_stream_2785_, lean_object* v_maximumSize_2786_){ _start: { -lean_object* v___x_2805_; lean_object* v___x_2806_; lean_object* v_pendingProducer_2807_; lean_object* v_pendingConsumer_2808_; lean_object* v_interestWaiter_2809_; uint8_t v_closed_2810_; lean_object* v_knownSize_2811_; lean_object* v_pendingIncompleteChunk_2812_; lean_object* v___x_2814_; uint8_t v_isShared_2815_; uint8_t v_isSharedCheck_2853_; -v___x_2805_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v___y_2803_); -v___x_2806_ = lean_st_ref_get(v___y_2803_); -v_pendingProducer_2807_ = lean_ctor_get(v___x_2806_, 0); -v_pendingConsumer_2808_ = lean_ctor_get(v___x_2806_, 1); -v_interestWaiter_2809_ = lean_ctor_get(v___x_2806_, 2); -v_closed_2810_ = lean_ctor_get_uint8(v___x_2806_, sizeof(void*)*5); -v_knownSize_2811_ = lean_ctor_get(v___x_2806_, 3); -v_pendingIncompleteChunk_2812_ = lean_ctor_get(v___x_2806_, 4); -v_isSharedCheck_2853_ = !lean_is_exclusive(v___x_2806_); -if (v_isSharedCheck_2853_ == 0) +lean_object* v_toApplicative_2787_; lean_object* v_toBind_2788_; lean_object* v_toPure_2789_; lean_object* v___x_2790_; lean_object* v___x_2791_; lean_object* v___f_2792_; lean_object* v___x_2793_; +v_toApplicative_2787_ = lean_ctor_get(v_inst_2782_, 0); +v_toBind_2788_ = lean_ctor_get(v_inst_2782_, 1); +lean_inc(v_toBind_2788_); +v_toPure_2789_ = lean_ctor_get(v_toApplicative_2787_, 1); +lean_inc(v_toPure_2789_); +v___x_2790_ = l_ByteArray_empty; +lean_inc_ref(v_inst_2783_); +v___x_2791_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___redArg(v_inst_2782_, v_inst_2783_, v_inst_2784_, v_stream_2785_, v_maximumSize_2786_, v___x_2790_); +v___f_2792_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_readAll___redArg___lam__0), 4, 3); +lean_closure_set(v___f_2792_, 0, v_inst_2781_); +lean_closure_set(v___f_2792_, 1, v_inst_2783_); +lean_closure_set(v___f_2792_, 2, v_toPure_2789_); +v___x_2793_ = lean_apply_4(v_toBind_2788_, lean_box(0), lean_box(0), v___x_2791_, v___f_2792_); +return v___x_2793_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll(lean_object* v_00_u03b1_2794_, lean_object* v_m_2795_, lean_object* v_inst_2796_, lean_object* v_inst_2797_, lean_object* v_inst_2798_, lean_object* v_inst_2799_, lean_object* v_stream_2800_, lean_object* v_maximumSize_2801_){ +_start: { -v___x_2814_ = v___x_2806_; -v_isShared_2815_ = v_isSharedCheck_2853_; -goto v_resetjp_2813_; +lean_object* v___x_2802_; +v___x_2802_ = l_Std_Http_Body_Stream_readAll___redArg(v_inst_2796_, v_inst_2797_, v_inst_2798_, v_inst_2799_, v_stream_2800_, v_maximumSize_2801_); +return v___x_2802_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0(uint8_t v_incomplete_2808_, lean_object* v_chunk_2809_, lean_object* v___y_2810_){ +_start: +{ +lean_object* v___x_2812_; lean_object* v___x_2813_; lean_object* v_pendingProducer_2814_; lean_object* v_pendingConsumer_2815_; lean_object* v_interestWaiter_2816_; uint8_t v_closed_2817_; lean_object* v_knownSize_2818_; lean_object* v_pendingIncompleteChunk_2819_; lean_object* v___x_2821_; uint8_t v_isShared_2822_; uint8_t v_isSharedCheck_2860_; +v___x_2812_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__0(v___y_2810_); +v___x_2813_ = lean_st_ref_get(v___y_2810_); +v_pendingProducer_2814_ = lean_ctor_get(v___x_2813_, 0); +v_pendingConsumer_2815_ = lean_ctor_get(v___x_2813_, 1); +v_interestWaiter_2816_ = lean_ctor_get(v___x_2813_, 2); +v_closed_2817_ = lean_ctor_get_uint8(v___x_2813_, sizeof(void*)*5); +v_knownSize_2818_ = lean_ctor_get(v___x_2813_, 3); +v_pendingIncompleteChunk_2819_ = lean_ctor_get(v___x_2813_, 4); +v_isSharedCheck_2860_ = !lean_is_exclusive(v___x_2813_); +if (v_isSharedCheck_2860_ == 0) +{ +v___x_2821_ = v___x_2813_; +v_isShared_2822_ = v_isSharedCheck_2860_; +goto v_resetjp_2820_; } else { -lean_inc(v_pendingIncompleteChunk_2812_); -lean_inc(v_knownSize_2811_); -lean_inc(v_interestWaiter_2809_); -lean_inc(v_pendingConsumer_2808_); -lean_inc(v_pendingProducer_2807_); -lean_dec(v___x_2806_); -v___x_2814_ = lean_box(0); -v_isShared_2815_ = v_isSharedCheck_2853_; -goto v_resetjp_2813_; +lean_inc(v_pendingIncompleteChunk_2819_); +lean_inc(v_knownSize_2818_); +lean_inc(v_interestWaiter_2816_); +lean_inc(v_pendingConsumer_2815_); +lean_inc(v_pendingProducer_2814_); +lean_dec(v___x_2813_); +v___x_2821_ = lean_box(0); +v_isShared_2822_ = v_isSharedCheck_2860_; +goto v_resetjp_2820_; } -v_resetjp_2813_: +v_resetjp_2820_: { -lean_object* v___y_2817_; -if (v_closed_2810_ == 0) +lean_object* v___y_2824_; +if (v_closed_2817_ == 0) { -if (lean_obj_tag(v_pendingIncompleteChunk_2812_) == 0) +if (lean_obj_tag(v_pendingIncompleteChunk_2819_) == 0) { -v___y_2817_ = v_chunk_2802_; -goto v___jp_2816_; +v___y_2824_ = v_chunk_2809_; +goto v___jp_2823_; } else { -lean_object* v_val_2831_; lean_object* v_data_2832_; lean_object* v_extensions_2833_; lean_object* v_data_2834_; lean_object* v_extensions_2835_; lean_object* v___x_2837_; uint8_t v_isShared_2838_; uint8_t v_isSharedCheck_2851_; -v_val_2831_ = lean_ctor_get(v_pendingIncompleteChunk_2812_, 0); -lean_inc(v_val_2831_); -lean_dec_ref(v_pendingIncompleteChunk_2812_); -v_data_2832_ = lean_ctor_get(v_val_2831_, 0); -lean_inc_ref(v_data_2832_); -v_extensions_2833_ = lean_ctor_get(v_val_2831_, 1); -lean_inc_ref(v_extensions_2833_); -lean_dec(v_val_2831_); -v_data_2834_ = lean_ctor_get(v_chunk_2802_, 0); -v_extensions_2835_ = lean_ctor_get(v_chunk_2802_, 1); -v_isSharedCheck_2851_ = !lean_is_exclusive(v_chunk_2802_); -if (v_isSharedCheck_2851_ == 0) +lean_object* v_val_2838_; lean_object* v_data_2839_; lean_object* v_extensions_2840_; lean_object* v_data_2841_; lean_object* v_extensions_2842_; lean_object* v___x_2844_; uint8_t v_isShared_2845_; uint8_t v_isSharedCheck_2858_; +v_val_2838_ = lean_ctor_get(v_pendingIncompleteChunk_2819_, 0); +lean_inc(v_val_2838_); +lean_dec_ref(v_pendingIncompleteChunk_2819_); +v_data_2839_ = lean_ctor_get(v_val_2838_, 0); +lean_inc_ref(v_data_2839_); +v_extensions_2840_ = lean_ctor_get(v_val_2838_, 1); +lean_inc_ref(v_extensions_2840_); +lean_dec(v_val_2838_); +v_data_2841_ = lean_ctor_get(v_chunk_2809_, 0); +v_extensions_2842_ = lean_ctor_get(v_chunk_2809_, 1); +v_isSharedCheck_2858_ = !lean_is_exclusive(v_chunk_2809_); +if (v_isSharedCheck_2858_ == 0) { -v___x_2837_ = v_chunk_2802_; -v_isShared_2838_ = v_isSharedCheck_2851_; -goto v_resetjp_2836_; +v___x_2844_ = v_chunk_2809_; +v_isShared_2845_ = v_isSharedCheck_2858_; +goto v_resetjp_2843_; } else { -lean_inc(v_extensions_2835_); -lean_inc(v_data_2834_); -lean_dec(v_chunk_2802_); -v___x_2837_ = lean_box(0); -v_isShared_2838_ = v_isSharedCheck_2851_; -goto v_resetjp_2836_; +lean_inc(v_extensions_2842_); +lean_inc(v_data_2841_); +lean_dec(v_chunk_2809_); +v___x_2844_ = lean_box(0); +v_isShared_2845_ = v_isSharedCheck_2858_; +goto v_resetjp_2843_; } -v_resetjp_2836_: +v_resetjp_2843_: { -lean_object* v___x_2839_; lean_object* v___x_2840_; lean_object* v___x_2841_; lean_object* v___x_2842_; lean_object* v___x_2843_; uint8_t v___x_2844_; -v___x_2839_ = lean_unsigned_to_nat(0u); -v___x_2840_ = lean_byte_array_size(v_data_2832_); -v___x_2841_ = lean_byte_array_size(v_data_2834_); -v___x_2842_ = lean_byte_array_copy_slice(v_data_2834_, v___x_2839_, v_data_2832_, v___x_2840_, v___x_2841_, v_closed_2810_); -lean_dec_ref(v_data_2834_); -v___x_2843_ = lean_array_get_size(v_extensions_2833_); -v___x_2844_ = lean_nat_dec_eq(v___x_2843_, v___x_2839_); -if (v___x_2844_ == 0) +lean_object* v___x_2846_; lean_object* v___x_2847_; lean_object* v___x_2848_; lean_object* v___x_2849_; lean_object* v___x_2850_; uint8_t v___x_2851_; +v___x_2846_ = lean_unsigned_to_nat(0u); +v___x_2847_ = lean_byte_array_size(v_data_2839_); +v___x_2848_ = lean_byte_array_size(v_data_2841_); +v___x_2849_ = lean_byte_array_copy_slice(v_data_2841_, v___x_2846_, v_data_2839_, v___x_2847_, v___x_2848_, v_closed_2817_); +lean_dec_ref(v_data_2841_); +v___x_2850_ = lean_array_get_size(v_extensions_2840_); +v___x_2851_ = lean_nat_dec_eq(v___x_2850_, v___x_2846_); +if (v___x_2851_ == 0) { -lean_object* v___x_2846_; -lean_dec_ref(v_extensions_2835_); -if (v_isShared_2838_ == 0) +lean_object* v___x_2853_; +lean_dec_ref(v_extensions_2842_); +if (v_isShared_2845_ == 0) { -lean_ctor_set(v___x_2837_, 1, v_extensions_2833_); -lean_ctor_set(v___x_2837_, 0, v___x_2842_); -v___x_2846_ = v___x_2837_; -goto v_reusejp_2845_; +lean_ctor_set(v___x_2844_, 1, v_extensions_2840_); +lean_ctor_set(v___x_2844_, 0, v___x_2849_); +v___x_2853_ = v___x_2844_; +goto v_reusejp_2852_; } else { -lean_object* v_reuseFailAlloc_2847_; -v_reuseFailAlloc_2847_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2847_, 0, v___x_2842_); -lean_ctor_set(v_reuseFailAlloc_2847_, 1, v_extensions_2833_); -v___x_2846_ = v_reuseFailAlloc_2847_; -goto v_reusejp_2845_; +lean_object* v_reuseFailAlloc_2854_; +v_reuseFailAlloc_2854_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2854_, 0, v___x_2849_); +lean_ctor_set(v_reuseFailAlloc_2854_, 1, v_extensions_2840_); +v___x_2853_ = v_reuseFailAlloc_2854_; +goto v_reusejp_2852_; } -v_reusejp_2845_: +v_reusejp_2852_: { -v___y_2817_ = v___x_2846_; -goto v___jp_2816_; +v___y_2824_ = v___x_2853_; +goto v___jp_2823_; } } else { -lean_object* v___x_2849_; -lean_dec_ref(v_extensions_2833_); -if (v_isShared_2838_ == 0) +lean_object* v___x_2856_; +lean_dec_ref(v_extensions_2840_); +if (v_isShared_2845_ == 0) { -lean_ctor_set(v___x_2837_, 0, v___x_2842_); -v___x_2849_ = v___x_2837_; -goto v_reusejp_2848_; +lean_ctor_set(v___x_2844_, 0, v___x_2849_); +v___x_2856_ = v___x_2844_; +goto v_reusejp_2855_; } else { -lean_object* v_reuseFailAlloc_2850_; -v_reuseFailAlloc_2850_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2850_, 0, v___x_2842_); -lean_ctor_set(v_reuseFailAlloc_2850_, 1, v_extensions_2835_); -v___x_2849_ = v_reuseFailAlloc_2850_; -goto v_reusejp_2848_; +lean_object* v_reuseFailAlloc_2857_; +v_reuseFailAlloc_2857_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2857_, 0, v___x_2849_); +lean_ctor_set(v_reuseFailAlloc_2857_, 1, v_extensions_2842_); +v___x_2856_ = v_reuseFailAlloc_2857_; +goto v_reusejp_2855_; } -v_reusejp_2848_: +v_reusejp_2855_: { -v___y_2817_ = v___x_2849_; -goto v___jp_2816_; +v___y_2824_ = v___x_2856_; +goto v___jp_2823_; } } } @@ -8343,1566 +8364,1566 @@ goto v___jp_2816_; } else { -lean_object* v___x_2852_; -lean_del_object(v___x_2814_); -lean_dec(v_pendingIncompleteChunk_2812_); -lean_dec(v_knownSize_2811_); -lean_dec(v_interestWaiter_2809_); -lean_dec(v_pendingConsumer_2808_); -lean_dec(v_pendingProducer_2807_); -lean_dec_ref(v_chunk_2802_); -v___x_2852_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___closed__2)); -return v___x_2852_; +lean_object* v___x_2859_; +lean_del_object(v___x_2821_); +lean_dec(v_pendingIncompleteChunk_2819_); +lean_dec(v_knownSize_2818_); +lean_dec(v_interestWaiter_2816_); +lean_dec(v_pendingConsumer_2815_); +lean_dec(v_pendingProducer_2814_); +lean_dec_ref(v_chunk_2809_); +v___x_2859_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___closed__2)); +return v___x_2859_; } -v___jp_2816_: +v___jp_2823_: { -if (v_incomplete_2801_ == 0) -{ -lean_object* v___x_2818_; lean_object* v___x_2820_; -v___x_2818_ = lean_box(0); -if (v_isShared_2815_ == 0) -{ -lean_ctor_set(v___x_2814_, 4, v___x_2818_); -v___x_2820_ = v___x_2814_; -goto v_reusejp_2819_; -} -else -{ -lean_object* v_reuseFailAlloc_2824_; -v_reuseFailAlloc_2824_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_2824_, 0, v_pendingProducer_2807_); -lean_ctor_set(v_reuseFailAlloc_2824_, 1, v_pendingConsumer_2808_); -lean_ctor_set(v_reuseFailAlloc_2824_, 2, v_interestWaiter_2809_); -lean_ctor_set(v_reuseFailAlloc_2824_, 3, v_knownSize_2811_); -lean_ctor_set(v_reuseFailAlloc_2824_, 4, v___x_2818_); -lean_ctor_set_uint8(v_reuseFailAlloc_2824_, sizeof(void*)*5, v_closed_2810_); -v___x_2820_ = v_reuseFailAlloc_2824_; -goto v_reusejp_2819_; -} -v_reusejp_2819_: -{ -lean_object* v___x_2821_; lean_object* v___x_2822_; lean_object* v___x_2823_; -v___x_2821_ = lean_st_ref_set(v___y_2803_, v___x_2820_); -v___x_2822_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2822_, 0, v___y_2817_); -v___x_2823_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2823_, 0, v___x_2822_); -return v___x_2823_; -} -} -else +if (v_incomplete_2808_ == 0) { lean_object* v___x_2825_; lean_object* v___x_2827_; -v___x_2825_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2825_, 0, v___y_2817_); -if (v_isShared_2815_ == 0) +v___x_2825_ = lean_box(0); +if (v_isShared_2822_ == 0) { -lean_ctor_set(v___x_2814_, 4, v___x_2825_); -v___x_2827_ = v___x_2814_; +lean_ctor_set(v___x_2821_, 4, v___x_2825_); +v___x_2827_ = v___x_2821_; goto v_reusejp_2826_; } else { -lean_object* v_reuseFailAlloc_2830_; -v_reuseFailAlloc_2830_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_2830_, 0, v_pendingProducer_2807_); -lean_ctor_set(v_reuseFailAlloc_2830_, 1, v_pendingConsumer_2808_); -lean_ctor_set(v_reuseFailAlloc_2830_, 2, v_interestWaiter_2809_); -lean_ctor_set(v_reuseFailAlloc_2830_, 3, v_knownSize_2811_); -lean_ctor_set(v_reuseFailAlloc_2830_, 4, v___x_2825_); -lean_ctor_set_uint8(v_reuseFailAlloc_2830_, sizeof(void*)*5, v_closed_2810_); -v___x_2827_ = v_reuseFailAlloc_2830_; +lean_object* v_reuseFailAlloc_2831_; +v_reuseFailAlloc_2831_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_2831_, 0, v_pendingProducer_2814_); +lean_ctor_set(v_reuseFailAlloc_2831_, 1, v_pendingConsumer_2815_); +lean_ctor_set(v_reuseFailAlloc_2831_, 2, v_interestWaiter_2816_); +lean_ctor_set(v_reuseFailAlloc_2831_, 3, v_knownSize_2818_); +lean_ctor_set(v_reuseFailAlloc_2831_, 4, v___x_2825_); +lean_ctor_set_uint8(v_reuseFailAlloc_2831_, sizeof(void*)*5, v_closed_2817_); +v___x_2827_ = v_reuseFailAlloc_2831_; goto v_reusejp_2826_; } v_reusejp_2826_: { -lean_object* v___x_2828_; lean_object* v___x_2829_; -v___x_2828_ = lean_st_ref_set(v___y_2803_, v___x_2827_); -v___x_2829_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__0)); -return v___x_2829_; +lean_object* v___x_2828_; lean_object* v___x_2829_; lean_object* v___x_2830_; +v___x_2828_ = lean_st_ref_set(v___y_2810_, v___x_2827_); +v___x_2829_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2829_, 0, v___y_2824_); +v___x_2830_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2830_, 0, v___x_2829_); +return v___x_2830_; } } -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___boxed(lean_object* v_incomplete_2854_, lean_object* v_chunk_2855_, lean_object* v___y_2856_, lean_object* v___y_2857_){ -_start: -{ -uint8_t v_incomplete_boxed_2858_; lean_object* v_res_2859_; -v_incomplete_boxed_2858_ = lean_unbox(v_incomplete_2854_); -v_res_2859_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0(v_incomplete_boxed_2858_, v_chunk_2855_, v___y_2856_); -lean_dec(v___y_2856_); -return v_res_2859_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(lean_object* v_stream_2860_, lean_object* v_chunk_2861_, uint8_t v_incomplete_2862_){ -_start: -{ -lean_object* v___x_2864_; lean_object* v___f_2865_; lean_object* v___x_2866_; -v___x_2864_ = lean_box(v_incomplete_2862_); -v___f_2865_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___boxed), 4, 2); -lean_closure_set(v___f_2865_, 0, v___x_2864_); -lean_closure_set(v___f_2865_, 1, v_chunk_2861_); -v___x_2866_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_stream_2860_, v___f_2865_); -return v___x_2866_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___boxed(lean_object* v_stream_2867_, lean_object* v_chunk_2868_, lean_object* v_incomplete_2869_, lean_object* v_a_2870_){ -_start: -{ -uint8_t v_incomplete_boxed_2871_; lean_object* v_res_2872_; -v_incomplete_boxed_2871_ = lean_unbox(v_incomplete_2869_); -v_res_2872_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(v_stream_2867_, v_chunk_2868_, v_incomplete_boxed_2871_); -return v_res_2872_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0(lean_object* v_x_2879_){ -_start: -{ -if (lean_obj_tag(v_x_2879_) == 0) -{ -lean_object* v_a_2881_; lean_object* v___x_2883_; uint8_t v_isShared_2884_; uint8_t v_isSharedCheck_2889_; -v_a_2881_ = lean_ctor_get(v_x_2879_, 0); -v_isSharedCheck_2889_ = !lean_is_exclusive(v_x_2879_); -if (v_isSharedCheck_2889_ == 0) -{ -v___x_2883_ = v_x_2879_; -v_isShared_2884_ = v_isSharedCheck_2889_; -goto v_resetjp_2882_; -} else { -lean_inc(v_a_2881_); -lean_dec(v_x_2879_); -v___x_2883_ = lean_box(0); -v_isShared_2884_ = v_isSharedCheck_2889_; -goto v_resetjp_2882_; -} -v_resetjp_2882_: +lean_object* v___x_2832_; lean_object* v___x_2834_; +v___x_2832_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2832_, 0, v___y_2824_); +if (v_isShared_2822_ == 0) { -lean_object* v___x_2886_; -if (v_isShared_2884_ == 0) -{ -v___x_2886_ = v___x_2883_; -goto v_reusejp_2885_; +lean_ctor_set(v___x_2821_, 4, v___x_2832_); +v___x_2834_ = v___x_2821_; +goto v_reusejp_2833_; } else { -lean_object* v_reuseFailAlloc_2888_; -v_reuseFailAlloc_2888_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2888_, 0, v_a_2881_); -v___x_2886_ = v_reuseFailAlloc_2888_; -goto v_reusejp_2885_; +lean_object* v_reuseFailAlloc_2837_; +v_reuseFailAlloc_2837_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_2837_, 0, v_pendingProducer_2814_); +lean_ctor_set(v_reuseFailAlloc_2837_, 1, v_pendingConsumer_2815_); +lean_ctor_set(v_reuseFailAlloc_2837_, 2, v_interestWaiter_2816_); +lean_ctor_set(v_reuseFailAlloc_2837_, 3, v_knownSize_2818_); +lean_ctor_set(v_reuseFailAlloc_2837_, 4, v___x_2832_); +lean_ctor_set_uint8(v_reuseFailAlloc_2837_, sizeof(void*)*5, v_closed_2817_); +v___x_2834_ = v_reuseFailAlloc_2837_; +goto v_reusejp_2833_; } -v_reusejp_2885_: +v_reusejp_2833_: { -lean_object* v___x_2887_; -v___x_2887_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2887_, 0, v___x_2886_); -return v___x_2887_; +lean_object* v___x_2835_; lean_object* v___x_2836_; +v___x_2835_ = lean_st_ref_set(v___y_2810_, v___x_2834_); +v___x_2836_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__2___closed__0)); +return v___x_2836_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___boxed(lean_object* v_incomplete_2861_, lean_object* v_chunk_2862_, lean_object* v___y_2863_, lean_object* v___y_2864_){ +_start: +{ +uint8_t v_incomplete_boxed_2865_; lean_object* v_res_2866_; +v_incomplete_boxed_2865_ = lean_unbox(v_incomplete_2861_); +v_res_2866_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0(v_incomplete_boxed_2865_, v_chunk_2862_, v___y_2863_); +lean_dec(v___y_2863_); +return v_res_2866_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(lean_object* v_stream_2867_, lean_object* v_chunk_2868_, uint8_t v_incomplete_2869_){ +_start: +{ +lean_object* v___x_2871_; lean_object* v___f_2872_; lean_object* v___x_2873_; +v___x_2871_ = lean_box(v_incomplete_2869_); +v___f_2872_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___lam__0___boxed), 4, 2); +lean_closure_set(v___f_2872_, 0, v___x_2871_); +lean_closure_set(v___f_2872_, 1, v_chunk_2868_); +v___x_2873_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_recv_x27_spec__3___redArg(v_stream_2867_, v___f_2872_); +return v___x_2873_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend___boxed(lean_object* v_stream_2874_, lean_object* v_chunk_2875_, lean_object* v_incomplete_2876_, lean_object* v_a_2877_){ +_start: +{ +uint8_t v_incomplete_boxed_2878_; lean_object* v_res_2879_; +v_incomplete_boxed_2878_ = lean_unbox(v_incomplete_2876_); +v_res_2879_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(v_stream_2874_, v_chunk_2875_, v_incomplete_boxed_2878_); +return v_res_2879_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0(lean_object* v_x_2886_){ +_start: +{ +if (lean_obj_tag(v_x_2886_) == 0) +{ +lean_object* v_a_2888_; lean_object* v___x_2890_; uint8_t v_isShared_2891_; uint8_t v_isSharedCheck_2896_; +v_a_2888_ = lean_ctor_get(v_x_2886_, 0); +v_isSharedCheck_2896_ = !lean_is_exclusive(v_x_2886_); +if (v_isSharedCheck_2896_ == 0) +{ +v___x_2890_ = v_x_2886_; +v_isShared_2891_ = v_isSharedCheck_2896_; +goto v_resetjp_2889_; +} +else +{ +lean_inc(v_a_2888_); +lean_dec(v_x_2886_); +v___x_2890_ = lean_box(0); +v_isShared_2891_ = v_isSharedCheck_2896_; +goto v_resetjp_2889_; +} +v_resetjp_2889_: +{ +lean_object* v___x_2893_; +if (v_isShared_2891_ == 0) +{ +v___x_2893_ = v___x_2890_; +goto v_reusejp_2892_; +} +else +{ +lean_object* v_reuseFailAlloc_2895_; +v_reuseFailAlloc_2895_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2895_, 0, v_a_2888_); +v___x_2893_ = v_reuseFailAlloc_2895_; +goto v_reusejp_2892_; +} +v_reusejp_2892_: +{ +lean_object* v___x_2894_; +v___x_2894_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2894_, 0, v___x_2893_); +return v___x_2894_; } } } else { -lean_object* v___x_2890_; -lean_dec_ref(v_x_2879_); -v___x_2890_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0___closed__2)); -return v___x_2890_; +lean_object* v___x_2897_; +lean_dec_ref(v_x_2886_); +v___x_2897_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0___closed__2)); +return v___x_2897_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0___boxed(lean_object* v_x_2891_, lean_object* v___y_2892_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0___boxed(lean_object* v_x_2898_, lean_object* v___y_2899_){ _start: { -lean_object* v_res_2893_; -v_res_2893_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0(v_x_2891_); -return v_res_2893_; +lean_object* v_res_2900_; +v_res_2900_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__0(v_x_2898_); +return v_res_2900_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1(lean_object* v_00___2894_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1(lean_object* v_00___2901_){ _start: { -lean_object* v___x_2896_; -v___x_2896_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_2896_; +lean_object* v___x_2903_; +v___x_2903_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_2903_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1___boxed(lean_object* v_00___2897_, lean_object* v___y_2898_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1___boxed(lean_object* v_00___2904_, lean_object* v___y_2905_){ _start: { -lean_object* v_res_2899_; -v_res_2899_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1(v_00___2897_); -return v_res_2899_; +lean_object* v_res_2906_; +v_res_2906_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__1(v_00___2904_); +return v_res_2906_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2(lean_object* v___f_2904_, lean_object* v_x_2905_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2(lean_object* v___f_2911_, lean_object* v_x_2912_){ _start: { -if (lean_obj_tag(v_x_2905_) == 0) +if (lean_obj_tag(v_x_2912_) == 0) { -lean_object* v_a_2909_; lean_object* v___x_2911_; uint8_t v_isShared_2912_; uint8_t v_isSharedCheck_2917_; -lean_dec_ref(v___f_2904_); -v_a_2909_ = lean_ctor_get(v_x_2905_, 0); -v_isSharedCheck_2917_ = !lean_is_exclusive(v_x_2905_); -if (v_isSharedCheck_2917_ == 0) +lean_object* v_a_2916_; lean_object* v___x_2918_; uint8_t v_isShared_2919_; uint8_t v_isSharedCheck_2924_; +lean_dec_ref(v___f_2911_); +v_a_2916_ = lean_ctor_get(v_x_2912_, 0); +v_isSharedCheck_2924_ = !lean_is_exclusive(v_x_2912_); +if (v_isSharedCheck_2924_ == 0) { -v___x_2911_ = v_x_2905_; -v_isShared_2912_ = v_isSharedCheck_2917_; -goto v_resetjp_2910_; +v___x_2918_ = v_x_2912_; +v_isShared_2919_ = v_isSharedCheck_2924_; +goto v_resetjp_2917_; } else { -lean_inc(v_a_2909_); -lean_dec(v_x_2905_); -v___x_2911_ = lean_box(0); -v_isShared_2912_ = v_isSharedCheck_2917_; -goto v_resetjp_2910_; +lean_inc(v_a_2916_); +lean_dec(v_x_2912_); +v___x_2918_ = lean_box(0); +v_isShared_2919_ = v_isSharedCheck_2924_; +goto v_resetjp_2917_; } -v_resetjp_2910_: +v_resetjp_2917_: { -lean_object* v___x_2914_; -if (v_isShared_2912_ == 0) +lean_object* v___x_2921_; +if (v_isShared_2919_ == 0) { -v___x_2914_ = v___x_2911_; -goto v_reusejp_2913_; +v___x_2921_ = v___x_2918_; +goto v_reusejp_2920_; } else { -lean_object* v_reuseFailAlloc_2916_; -v_reuseFailAlloc_2916_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2916_, 0, v_a_2909_); -v___x_2914_ = v_reuseFailAlloc_2916_; -goto v_reusejp_2913_; +lean_object* v_reuseFailAlloc_2923_; +v_reuseFailAlloc_2923_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2923_, 0, v_a_2916_); +v___x_2921_ = v_reuseFailAlloc_2923_; +goto v_reusejp_2920_; } -v_reusejp_2913_: +v_reusejp_2920_: +{ +lean_object* v___x_2922_; +v___x_2922_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2922_, 0, v___x_2921_); +return v___x_2922_; +} +} +} +else +{ +lean_object* v_a_2925_; +v_a_2925_ = lean_ctor_get(v_x_2912_, 0); +lean_inc(v_a_2925_); +lean_dec_ref(v_x_2912_); +if (lean_obj_tag(v_a_2925_) == 1) +{ +lean_object* v_val_2926_; uint8_t v___x_2927_; +v_val_2926_ = lean_ctor_get(v_a_2925_, 0); +lean_inc(v_val_2926_); +lean_dec_ref(v_a_2925_); +v___x_2927_ = lean_unbox(v_val_2926_); +lean_dec(v_val_2926_); +if (v___x_2927_ == 1) +{ +lean_object* v___x_2928_; lean_object* v___x_2929_; +v___x_2928_ = lean_box(0); +v___x_2929_ = lean_apply_2(v___f_2911_, v___x_2928_, lean_box(0)); +return v___x_2929_; +} +else +{ +lean_dec_ref(v___f_2911_); +goto v___jp_2914_; +} +} +else +{ +lean_dec(v_a_2925_); +lean_dec_ref(v___f_2911_); +goto v___jp_2914_; +} +} +v___jp_2914_: { lean_object* v___x_2915_; -v___x_2915_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2915_, 0, v___x_2914_); +v___x_2915_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2___closed__1)); return v___x_2915_; } } } -else -{ -lean_object* v_a_2918_; -v_a_2918_ = lean_ctor_get(v_x_2905_, 0); -lean_inc(v_a_2918_); -lean_dec_ref(v_x_2905_); -if (lean_obj_tag(v_a_2918_) == 1) -{ -lean_object* v_val_2919_; uint8_t v___x_2920_; -v_val_2919_ = lean_ctor_get(v_a_2918_, 0); -lean_inc(v_val_2919_); -lean_dec_ref(v_a_2918_); -v___x_2920_ = lean_unbox(v_val_2919_); -lean_dec(v_val_2919_); -if (v___x_2920_ == 1) -{ -lean_object* v___x_2921_; lean_object* v___x_2922_; -v___x_2921_ = lean_box(0); -v___x_2922_ = lean_apply_2(v___f_2904_, v___x_2921_, lean_box(0)); -return v___x_2922_; -} -else -{ -lean_dec_ref(v___f_2904_); -goto v___jp_2907_; -} -} -else -{ -lean_dec(v_a_2918_); -lean_dec_ref(v___f_2904_); -goto v___jp_2907_; -} -} -v___jp_2907_: -{ -lean_object* v___x_2908_; -v___x_2908_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2___closed__1)); -return v___x_2908_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2___boxed(lean_object* v___f_2923_, lean_object* v_x_2924_, lean_object* v___y_2925_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2___boxed(lean_object* v___f_2930_, lean_object* v_x_2931_, lean_object* v___y_2932_){ _start: { -lean_object* v_res_2926_; -v_res_2926_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2(v___f_2923_, v_x_2924_); -return v_res_2926_; +lean_object* v_res_2933_; +v_res_2933_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__2(v___f_2930_, v_x_2931_); +return v_res_2933_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__3(lean_object* v_a_2927_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__3(lean_object* v_a_2934_){ _start: { -lean_object* v___x_2928_; -v___x_2928_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2928_, 0, v_a_2927_); -return v___x_2928_; +lean_object* v___x_2935_; +v___x_2935_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2935_, 0, v_a_2934_); +return v___x_2935_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4(uint8_t v___x_2929_, lean_object* v_x_2930_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4(uint8_t v___x_2936_, lean_object* v_x_2937_){ _start: { -if (lean_obj_tag(v_x_2930_) == 0) +if (lean_obj_tag(v_x_2937_) == 0) { -lean_object* v_a_2932_; lean_object* v___x_2934_; uint8_t v_isShared_2935_; uint8_t v_isSharedCheck_2940_; -v_a_2932_ = lean_ctor_get(v_x_2930_, 0); -v_isSharedCheck_2940_ = !lean_is_exclusive(v_x_2930_); -if (v_isSharedCheck_2940_ == 0) +lean_object* v_a_2939_; lean_object* v___x_2941_; uint8_t v_isShared_2942_; uint8_t v_isSharedCheck_2947_; +v_a_2939_ = lean_ctor_get(v_x_2937_, 0); +v_isSharedCheck_2947_ = !lean_is_exclusive(v_x_2937_); +if (v_isSharedCheck_2947_ == 0) { -v___x_2934_ = v_x_2930_; -v_isShared_2935_ = v_isSharedCheck_2940_; -goto v_resetjp_2933_; +v___x_2941_ = v_x_2937_; +v_isShared_2942_ = v_isSharedCheck_2947_; +goto v_resetjp_2940_; } else { -lean_inc(v_a_2932_); -lean_dec(v_x_2930_); -v___x_2934_ = lean_box(0); -v_isShared_2935_ = v_isSharedCheck_2940_; -goto v_resetjp_2933_; +lean_inc(v_a_2939_); +lean_dec(v_x_2937_); +v___x_2941_ = lean_box(0); +v_isShared_2942_ = v_isSharedCheck_2947_; +goto v_resetjp_2940_; } -v_resetjp_2933_: +v_resetjp_2940_: { -lean_object* v___x_2937_; -if (v_isShared_2935_ == 0) +lean_object* v___x_2944_; +if (v_isShared_2942_ == 0) { -v___x_2937_ = v___x_2934_; -goto v_reusejp_2936_; +v___x_2944_ = v___x_2941_; +goto v_reusejp_2943_; } else { -lean_object* v_reuseFailAlloc_2939_; -v_reuseFailAlloc_2939_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2939_, 0, v_a_2932_); -v___x_2937_ = v_reuseFailAlloc_2939_; -goto v_reusejp_2936_; +lean_object* v_reuseFailAlloc_2946_; +v_reuseFailAlloc_2946_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2946_, 0, v_a_2939_); +v___x_2944_ = v_reuseFailAlloc_2946_; +goto v_reusejp_2943_; } -v_reusejp_2936_: +v_reusejp_2943_: { -lean_object* v___x_2938_; -v___x_2938_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2938_, 0, v___x_2937_); -return v___x_2938_; -} -} -} -else -{ -lean_object* v___x_2942_; uint8_t v_isShared_2943_; uint8_t v_isSharedCheck_2951_; -v_isSharedCheck_2951_ = !lean_is_exclusive(v_x_2930_); -if (v_isSharedCheck_2951_ == 0) -{ -lean_object* v_unused_2952_; -v_unused_2952_ = lean_ctor_get(v_x_2930_, 0); -lean_dec(v_unused_2952_); -v___x_2942_ = v_x_2930_; -v_isShared_2943_ = v_isSharedCheck_2951_; -goto v_resetjp_2941_; -} -else -{ -lean_dec(v_x_2930_); -v___x_2942_ = lean_box(0); -v_isShared_2943_ = v_isSharedCheck_2951_; -goto v_resetjp_2941_; -} -v_resetjp_2941_: -{ -lean_object* v___x_2944_; lean_object* v___x_2945_; lean_object* v___x_2947_; -v___x_2944_ = lean_box(v___x_2929_); -v___x_2945_ = lean_alloc_ctor(1, 1, 0); +lean_object* v___x_2945_; +v___x_2945_ = lean_alloc_ctor(0, 1, 0); lean_ctor_set(v___x_2945_, 0, v___x_2944_); -if (v_isShared_2943_ == 0) -{ -lean_ctor_set(v___x_2942_, 0, v___x_2945_); -v___x_2947_ = v___x_2942_; -goto v_reusejp_2946_; +return v___x_2945_; +} +} } else { -lean_object* v_reuseFailAlloc_2950_; -v_reuseFailAlloc_2950_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2950_, 0, v___x_2945_); -v___x_2947_ = v_reuseFailAlloc_2950_; -goto v_reusejp_2946_; -} -v_reusejp_2946_: +lean_object* v___x_2949_; uint8_t v_isShared_2950_; uint8_t v_isSharedCheck_2958_; +v_isSharedCheck_2958_ = !lean_is_exclusive(v_x_2937_); +if (v_isSharedCheck_2958_ == 0) { -lean_object* v___x_2948_; lean_object* v___x_2949_; -v___x_2948_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2948_, 0, v___x_2947_); -v___x_2949_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2949_, 0, v___x_2948_); -return v___x_2949_; +lean_object* v_unused_2959_; +v_unused_2959_ = lean_ctor_get(v_x_2937_, 0); +lean_dec(v_unused_2959_); +v___x_2949_ = v_x_2937_; +v_isShared_2950_ = v_isSharedCheck_2958_; +goto v_resetjp_2948_; +} +else +{ +lean_dec(v_x_2937_); +v___x_2949_ = lean_box(0); +v_isShared_2950_ = v_isSharedCheck_2958_; +goto v_resetjp_2948_; +} +v_resetjp_2948_: +{ +lean_object* v___x_2951_; lean_object* v___x_2952_; lean_object* v___x_2954_; +v___x_2951_ = lean_box(v___x_2936_); +v___x_2952_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2952_, 0, v___x_2951_); +if (v_isShared_2950_ == 0) +{ +lean_ctor_set(v___x_2949_, 0, v___x_2952_); +v___x_2954_ = v___x_2949_; +goto v_reusejp_2953_; +} +else +{ +lean_object* v_reuseFailAlloc_2957_; +v_reuseFailAlloc_2957_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2957_, 0, v___x_2952_); +v___x_2954_ = v_reuseFailAlloc_2957_; +goto v_reusejp_2953_; +} +v_reusejp_2953_: +{ +lean_object* v___x_2955_; lean_object* v___x_2956_; +v___x_2955_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2955_, 0, v___x_2954_); +v___x_2956_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2956_, 0, v___x_2955_); +return v___x_2956_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4___boxed(lean_object* v___x_2953_, lean_object* v_x_2954_, lean_object* v___y_2955_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4___boxed(lean_object* v___x_2960_, lean_object* v_x_2961_, lean_object* v___y_2962_){ _start: { -uint8_t v___x_5381__boxed_2956_; lean_object* v_res_2957_; -v___x_5381__boxed_2956_ = lean_unbox(v___x_2953_); -v_res_2957_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4(v___x_5381__boxed_2956_, v_x_2954_); -return v_res_2957_; +uint8_t v___x_5381__boxed_2963_; lean_object* v_res_2964_; +v___x_5381__boxed_2963_ = lean_unbox(v___x_2960_); +v_res_2964_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__4(v___x_5381__boxed_2963_, v_x_2961_); +return v_res_2964_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5(uint8_t v_a_2958_, lean_object* v_x_2959_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5(uint8_t v_a_2965_, lean_object* v_x_2966_){ _start: { -if (lean_obj_tag(v_x_2959_) == 0) +if (lean_obj_tag(v_x_2966_) == 0) { -lean_object* v_a_2961_; lean_object* v___x_2963_; uint8_t v_isShared_2964_; uint8_t v_isSharedCheck_2969_; -v_a_2961_ = lean_ctor_get(v_x_2959_, 0); -v_isSharedCheck_2969_ = !lean_is_exclusive(v_x_2959_); -if (v_isSharedCheck_2969_ == 0) +lean_object* v_a_2968_; lean_object* v___x_2970_; uint8_t v_isShared_2971_; uint8_t v_isSharedCheck_2976_; +v_a_2968_ = lean_ctor_get(v_x_2966_, 0); +v_isSharedCheck_2976_ = !lean_is_exclusive(v_x_2966_); +if (v_isSharedCheck_2976_ == 0) { -v___x_2963_ = v_x_2959_; -v_isShared_2964_ = v_isSharedCheck_2969_; -goto v_resetjp_2962_; +v___x_2970_ = v_x_2966_; +v_isShared_2971_ = v_isSharedCheck_2976_; +goto v_resetjp_2969_; } else { -lean_inc(v_a_2961_); -lean_dec(v_x_2959_); -v___x_2963_ = lean_box(0); -v_isShared_2964_ = v_isSharedCheck_2969_; -goto v_resetjp_2962_; +lean_inc(v_a_2968_); +lean_dec(v_x_2966_); +v___x_2970_ = lean_box(0); +v_isShared_2971_ = v_isSharedCheck_2976_; +goto v_resetjp_2969_; } -v_resetjp_2962_: +v_resetjp_2969_: { -lean_object* v___x_2966_; -if (v_isShared_2964_ == 0) +lean_object* v___x_2973_; +if (v_isShared_2971_ == 0) { -v___x_2966_ = v___x_2963_; -goto v_reusejp_2965_; +v___x_2973_ = v___x_2970_; +goto v_reusejp_2972_; } else { -lean_object* v_reuseFailAlloc_2968_; -v_reuseFailAlloc_2968_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2968_, 0, v_a_2961_); -v___x_2966_ = v_reuseFailAlloc_2968_; -goto v_reusejp_2965_; +lean_object* v_reuseFailAlloc_2975_; +v_reuseFailAlloc_2975_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2975_, 0, v_a_2968_); +v___x_2973_ = v_reuseFailAlloc_2975_; +goto v_reusejp_2972_; } -v_reusejp_2965_: +v_reusejp_2972_: { -lean_object* v___x_2967_; -v___x_2967_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2967_, 0, v___x_2966_); -return v___x_2967_; -} -} -} -else -{ -lean_object* v___x_2971_; uint8_t v_isShared_2972_; uint8_t v_isSharedCheck_2980_; -v_isSharedCheck_2980_ = !lean_is_exclusive(v_x_2959_); -if (v_isSharedCheck_2980_ == 0) -{ -lean_object* v_unused_2981_; -v_unused_2981_ = lean_ctor_get(v_x_2959_, 0); -lean_dec(v_unused_2981_); -v___x_2971_ = v_x_2959_; -v_isShared_2972_ = v_isSharedCheck_2980_; -goto v_resetjp_2970_; -} -else -{ -lean_dec(v_x_2959_); -v___x_2971_ = lean_box(0); -v_isShared_2972_ = v_isSharedCheck_2980_; -goto v_resetjp_2970_; -} -v_resetjp_2970_: -{ -lean_object* v___x_2973_; lean_object* v___x_2974_; lean_object* v___x_2976_; -v___x_2973_ = lean_box(v_a_2958_); -v___x_2974_ = lean_alloc_ctor(1, 1, 0); +lean_object* v___x_2974_; +v___x_2974_ = lean_alloc_ctor(0, 1, 0); lean_ctor_set(v___x_2974_, 0, v___x_2973_); -if (v_isShared_2972_ == 0) -{ -lean_ctor_set(v___x_2971_, 0, v___x_2974_); -v___x_2976_ = v___x_2971_; -goto v_reusejp_2975_; +return v___x_2974_; +} +} } else { -lean_object* v_reuseFailAlloc_2979_; -v_reuseFailAlloc_2979_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_2979_, 0, v___x_2974_); -v___x_2976_ = v_reuseFailAlloc_2979_; -goto v_reusejp_2975_; -} -v_reusejp_2975_: +lean_object* v___x_2978_; uint8_t v_isShared_2979_; uint8_t v_isSharedCheck_2987_; +v_isSharedCheck_2987_ = !lean_is_exclusive(v_x_2966_); +if (v_isSharedCheck_2987_ == 0) { -lean_object* v___x_2977_; lean_object* v___x_2978_; -v___x_2977_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2977_, 0, v___x_2976_); -v___x_2978_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_2978_, 0, v___x_2977_); -return v___x_2978_; +lean_object* v_unused_2988_; +v_unused_2988_ = lean_ctor_get(v_x_2966_, 0); +lean_dec(v_unused_2988_); +v___x_2978_ = v_x_2966_; +v_isShared_2979_ = v_isSharedCheck_2987_; +goto v_resetjp_2977_; +} +else +{ +lean_dec(v_x_2966_); +v___x_2978_ = lean_box(0); +v_isShared_2979_ = v_isSharedCheck_2987_; +goto v_resetjp_2977_; +} +v_resetjp_2977_: +{ +lean_object* v___x_2980_; lean_object* v___x_2981_; lean_object* v___x_2983_; +v___x_2980_ = lean_box(v_a_2965_); +v___x_2981_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2981_, 0, v___x_2980_); +if (v_isShared_2979_ == 0) +{ +lean_ctor_set(v___x_2978_, 0, v___x_2981_); +v___x_2983_ = v___x_2978_; +goto v_reusejp_2982_; +} +else +{ +lean_object* v_reuseFailAlloc_2986_; +v_reuseFailAlloc_2986_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2986_, 0, v___x_2981_); +v___x_2983_ = v_reuseFailAlloc_2986_; +goto v_reusejp_2982_; +} +v_reusejp_2982_: +{ +lean_object* v___x_2984_; lean_object* v___x_2985_; +v___x_2984_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2984_, 0, v___x_2983_); +v___x_2985_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2985_, 0, v___x_2984_); +return v___x_2985_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5___boxed(lean_object* v_a_2982_, lean_object* v_x_2983_, lean_object* v___y_2984_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5___boxed(lean_object* v_a_2989_, lean_object* v_x_2990_, lean_object* v___y_2991_){ _start: { -uint8_t v_a_5433__boxed_2985_; lean_object* v_res_2986_; -v_a_5433__boxed_2985_ = lean_unbox(v_a_2982_); -v_res_2986_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5(v_a_5433__boxed_2985_, v_x_2983_); -return v_res_2986_; +uint8_t v_a_5433__boxed_2992_; lean_object* v_res_2993_; +v_a_5433__boxed_2992_ = lean_unbox(v_a_2989_); +v_res_2993_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5(v_a_5433__boxed_2992_, v_x_2990_); +return v_res_2993_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6(lean_object* v_pendingProducer_2987_, lean_object* v_interestWaiter_2988_, uint8_t v_closed_2989_, lean_object* v_knownSize_2990_, lean_object* v_pendingIncompleteChunk_2991_, lean_object* v___y_2992_, lean_object* v_chunk_2993_, lean_object* v___f_2994_, lean_object* v_x_2995_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6(lean_object* v_pendingProducer_2994_, lean_object* v_interestWaiter_2995_, uint8_t v_closed_2996_, lean_object* v_knownSize_2997_, lean_object* v_pendingIncompleteChunk_2998_, lean_object* v___y_2999_, lean_object* v_chunk_3000_, lean_object* v___f_3001_, lean_object* v_x_3002_){ _start: { -if (lean_obj_tag(v_x_2995_) == 0) +if (lean_obj_tag(v_x_3002_) == 0) { -lean_object* v_a_2997_; lean_object* v___x_2999_; uint8_t v_isShared_3000_; uint8_t v_isSharedCheck_3005_; -lean_dec_ref(v___f_2994_); -lean_dec(v_pendingIncompleteChunk_2991_); -lean_dec(v_knownSize_2990_); -lean_dec(v_interestWaiter_2988_); -lean_dec(v_pendingProducer_2987_); -v_a_2997_ = lean_ctor_get(v_x_2995_, 0); -v_isSharedCheck_3005_ = !lean_is_exclusive(v_x_2995_); -if (v_isSharedCheck_3005_ == 0) +lean_object* v_a_3004_; lean_object* v___x_3006_; uint8_t v_isShared_3007_; uint8_t v_isSharedCheck_3012_; +lean_dec_ref(v___f_3001_); +lean_dec(v_pendingIncompleteChunk_2998_); +lean_dec(v_knownSize_2997_); +lean_dec(v_interestWaiter_2995_); +lean_dec(v_pendingProducer_2994_); +v_a_3004_ = lean_ctor_get(v_x_3002_, 0); +v_isSharedCheck_3012_ = !lean_is_exclusive(v_x_3002_); +if (v_isSharedCheck_3012_ == 0) { -v___x_2999_ = v_x_2995_; -v_isShared_3000_ = v_isSharedCheck_3005_; -goto v_resetjp_2998_; +v___x_3006_ = v_x_3002_; +v_isShared_3007_ = v_isSharedCheck_3012_; +goto v_resetjp_3005_; } else { -lean_inc(v_a_2997_); -lean_dec(v_x_2995_); -v___x_2999_ = lean_box(0); -v_isShared_3000_ = v_isSharedCheck_3005_; -goto v_resetjp_2998_; +lean_inc(v_a_3004_); +lean_dec(v_x_3002_); +v___x_3006_ = lean_box(0); +v_isShared_3007_ = v_isSharedCheck_3012_; +goto v_resetjp_3005_; } -v_resetjp_2998_: +v_resetjp_3005_: { -lean_object* v___x_3002_; -if (v_isShared_3000_ == 0) +lean_object* v___x_3009_; +if (v_isShared_3007_ == 0) { -v___x_3002_ = v___x_2999_; -goto v_reusejp_3001_; +v___x_3009_ = v___x_3006_; +goto v_reusejp_3008_; } else { -lean_object* v_reuseFailAlloc_3004_; -v_reuseFailAlloc_3004_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3004_, 0, v_a_2997_); -v___x_3002_ = v_reuseFailAlloc_3004_; -goto v_reusejp_3001_; +lean_object* v_reuseFailAlloc_3011_; +v_reuseFailAlloc_3011_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3011_, 0, v_a_3004_); +v___x_3009_ = v_reuseFailAlloc_3011_; +goto v_reusejp_3008_; } -v_reusejp_3001_: +v_reusejp_3008_: { -lean_object* v___x_3003_; -v___x_3003_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3003_, 0, v___x_3002_); -return v___x_3003_; +lean_object* v___x_3010_; +v___x_3010_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3010_, 0, v___x_3009_); +return v___x_3010_; } } } else { -lean_object* v_a_3006_; lean_object* v___x_3008_; uint8_t v_isShared_3009_; uint8_t v_isSharedCheck_3032_; -v_a_3006_ = lean_ctor_get(v_x_2995_, 0); -v_isSharedCheck_3032_ = !lean_is_exclusive(v_x_2995_); -if (v_isSharedCheck_3032_ == 0) +lean_object* v_a_3013_; lean_object* v___x_3015_; uint8_t v_isShared_3016_; uint8_t v_isSharedCheck_3039_; +v_a_3013_ = lean_ctor_get(v_x_3002_, 0); +v_isSharedCheck_3039_ = !lean_is_exclusive(v_x_3002_); +if (v_isSharedCheck_3039_ == 0) { -v___x_3008_ = v_x_2995_; -v_isShared_3009_ = v_isSharedCheck_3032_; -goto v_resetjp_3007_; +v___x_3015_ = v_x_3002_; +v_isShared_3016_ = v_isSharedCheck_3039_; +goto v_resetjp_3014_; } else { -lean_inc(v_a_3006_); -lean_dec(v_x_2995_); -v___x_3008_ = lean_box(0); -v_isShared_3009_ = v_isSharedCheck_3032_; -goto v_resetjp_3007_; +lean_inc(v_a_3013_); +lean_dec(v_x_3002_); +v___x_3015_ = lean_box(0); +v_isShared_3016_ = v_isSharedCheck_3039_; +goto v_resetjp_3014_; } -v_resetjp_3007_: +v_resetjp_3014_: { -uint8_t v___x_3010_; -v___x_3010_ = lean_unbox(v_a_3006_); -if (v___x_3010_ == 0) +uint8_t v___x_3017_; +v___x_3017_ = lean_unbox(v_a_3013_); +if (v___x_3017_ == 0) { -lean_object* v___x_3011_; lean_object* v___x_3012_; lean_object* v___x_3013_; lean_object* v___f_3014_; lean_object* v___x_3016_; -lean_dec_ref(v___f_2994_); -v___x_3011_ = lean_box(0); -v___x_3012_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v___x_3012_, 0, v_pendingProducer_2987_); -lean_ctor_set(v___x_3012_, 1, v___x_3011_); -lean_ctor_set(v___x_3012_, 2, v_interestWaiter_2988_); -lean_ctor_set(v___x_3012_, 3, v_knownSize_2990_); -lean_ctor_set(v___x_3012_, 4, v_pendingIncompleteChunk_2991_); -lean_ctor_set_uint8(v___x_3012_, sizeof(void*)*5, v_closed_2989_); -v___x_3013_ = lean_st_ref_set(v___y_2992_, v___x_3012_); -lean_inc(v_a_3006_); -v___f_3014_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5___boxed), 3, 1); -lean_closure_set(v___f_3014_, 0, v_a_3006_); -if (v_isShared_3009_ == 0) +lean_object* v___x_3018_; lean_object* v___x_3019_; lean_object* v___x_3020_; lean_object* v___f_3021_; lean_object* v___x_3023_; +lean_dec_ref(v___f_3001_); +v___x_3018_ = lean_box(0); +v___x_3019_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v___x_3019_, 0, v_pendingProducer_2994_); +lean_ctor_set(v___x_3019_, 1, v___x_3018_); +lean_ctor_set(v___x_3019_, 2, v_interestWaiter_2995_); +lean_ctor_set(v___x_3019_, 3, v_knownSize_2997_); +lean_ctor_set(v___x_3019_, 4, v_pendingIncompleteChunk_2998_); +lean_ctor_set_uint8(v___x_3019_, sizeof(void*)*5, v_closed_2996_); +v___x_3020_ = lean_st_ref_set(v___y_2999_, v___x_3019_); +lean_inc(v_a_3013_); +v___f_3021_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__5___boxed), 3, 1); +lean_closure_set(v___f_3021_, 0, v_a_3013_); +if (v_isShared_3016_ == 0) { -lean_ctor_set(v___x_3008_, 0, v___x_3013_); -v___x_3016_ = v___x_3008_; -goto v_reusejp_3015_; +lean_ctor_set(v___x_3015_, 0, v___x_3020_); +v___x_3023_ = v___x_3015_; +goto v_reusejp_3022_; } else { -lean_object* v_reuseFailAlloc_3021_; -v_reuseFailAlloc_3021_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3021_, 0, v___x_3013_); -v___x_3016_ = v_reuseFailAlloc_3021_; -goto v_reusejp_3015_; +lean_object* v_reuseFailAlloc_3028_; +v_reuseFailAlloc_3028_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3028_, 0, v___x_3020_); +v___x_3023_ = v_reuseFailAlloc_3028_; +goto v_reusejp_3022_; } -v_reusejp_3015_: +v_reusejp_3022_: { -lean_object* v___x_3017_; lean_object* v___x_3018_; uint8_t v___x_3019_; lean_object* v___x_3020_; -v___x_3017_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3017_, 0, v___x_3016_); -v___x_3018_ = lean_unsigned_to_nat(0u); -v___x_3019_ = lean_unbox(v_a_3006_); -lean_dec(v_a_3006_); -v___x_3020_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3018_, v___x_3019_, v___x_3017_, v___f_3014_); -return v___x_3020_; +lean_object* v___x_3024_; lean_object* v___x_3025_; uint8_t v___x_3026_; lean_object* v___x_3027_; +v___x_3024_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3024_, 0, v___x_3023_); +v___x_3025_ = lean_unsigned_to_nat(0u); +v___x_3026_ = lean_unbox(v_a_3013_); +lean_dec(v_a_3013_); +v___x_3027_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3025_, v___x_3026_, v___x_3024_, v___f_3021_); +return v___x_3027_; } } else { -lean_object* v___x_3022_; lean_object* v___x_3023_; lean_object* v___x_3024_; lean_object* v___x_3025_; lean_object* v___x_3027_; -lean_dec(v_a_3006_); -v___x_3022_ = lean_box(0); -v___x_3023_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_decreaseKnownSize(v_knownSize_2990_, v_chunk_2993_); -v___x_3024_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v___x_3024_, 0, v_pendingProducer_2987_); -lean_ctor_set(v___x_3024_, 1, v___x_3022_); -lean_ctor_set(v___x_3024_, 2, v_interestWaiter_2988_); -lean_ctor_set(v___x_3024_, 3, v___x_3023_); -lean_ctor_set(v___x_3024_, 4, v_pendingIncompleteChunk_2991_); -lean_ctor_set_uint8(v___x_3024_, sizeof(void*)*5, v_closed_2989_); -v___x_3025_ = lean_st_ref_set(v___y_2992_, v___x_3024_); -if (v_isShared_3009_ == 0) +lean_object* v___x_3029_; lean_object* v___x_3030_; lean_object* v___x_3031_; lean_object* v___x_3032_; lean_object* v___x_3034_; +lean_dec(v_a_3013_); +v___x_3029_ = lean_box(0); +v___x_3030_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_decreaseKnownSize(v_knownSize_2997_, v_chunk_3000_); +v___x_3031_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v___x_3031_, 0, v_pendingProducer_2994_); +lean_ctor_set(v___x_3031_, 1, v___x_3029_); +lean_ctor_set(v___x_3031_, 2, v_interestWaiter_2995_); +lean_ctor_set(v___x_3031_, 3, v___x_3030_); +lean_ctor_set(v___x_3031_, 4, v_pendingIncompleteChunk_2998_); +lean_ctor_set_uint8(v___x_3031_, sizeof(void*)*5, v_closed_2996_); +v___x_3032_ = lean_st_ref_set(v___y_2999_, v___x_3031_); +if (v_isShared_3016_ == 0) { -lean_ctor_set(v___x_3008_, 0, v___x_3025_); -v___x_3027_ = v___x_3008_; -goto v_reusejp_3026_; +lean_ctor_set(v___x_3015_, 0, v___x_3032_); +v___x_3034_ = v___x_3015_; +goto v_reusejp_3033_; } else { -lean_object* v_reuseFailAlloc_3031_; -v_reuseFailAlloc_3031_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3031_, 0, v___x_3025_); -v___x_3027_ = v_reuseFailAlloc_3031_; -goto v_reusejp_3026_; +lean_object* v_reuseFailAlloc_3038_; +v_reuseFailAlloc_3038_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3038_, 0, v___x_3032_); +v___x_3034_ = v_reuseFailAlloc_3038_; +goto v_reusejp_3033_; } -v_reusejp_3026_: +v_reusejp_3033_: { -lean_object* v___x_3028_; lean_object* v___x_3029_; lean_object* v___x_3030_; -v___x_3028_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3028_, 0, v___x_3027_); -v___x_3029_ = lean_unsigned_to_nat(0u); -v___x_3030_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3029_, v_closed_2989_, v___x_3028_, v___f_2994_); -return v___x_3030_; +lean_object* v___x_3035_; lean_object* v___x_3036_; lean_object* v___x_3037_; +v___x_3035_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3035_, 0, v___x_3034_); +v___x_3036_ = lean_unsigned_to_nat(0u); +v___x_3037_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3036_, v_closed_2996_, v___x_3035_, v___f_3001_); +return v___x_3037_; } } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6___boxed(lean_object* v_pendingProducer_3033_, lean_object* v_interestWaiter_3034_, lean_object* v_closed_3035_, lean_object* v_knownSize_3036_, lean_object* v_pendingIncompleteChunk_3037_, lean_object* v___y_3038_, lean_object* v_chunk_3039_, lean_object* v___f_3040_, lean_object* v_x_3041_, lean_object* v___y_3042_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6___boxed(lean_object* v_pendingProducer_3040_, lean_object* v_interestWaiter_3041_, lean_object* v_closed_3042_, lean_object* v_knownSize_3043_, lean_object* v_pendingIncompleteChunk_3044_, lean_object* v___y_3045_, lean_object* v_chunk_3046_, lean_object* v___f_3047_, lean_object* v_x_3048_, lean_object* v___y_3049_){ _start: { -uint8_t v_closed_boxed_3043_; lean_object* v_res_3044_; -v_closed_boxed_3043_ = lean_unbox(v_closed_3035_); -v_res_3044_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6(v_pendingProducer_3033_, v_interestWaiter_3034_, v_closed_boxed_3043_, v_knownSize_3036_, v_pendingIncompleteChunk_3037_, v___y_3038_, v_chunk_3039_, v___f_3040_, v_x_3041_); -lean_dec_ref(v_chunk_3039_); -lean_dec(v___y_3038_); -return v_res_3044_; +uint8_t v_closed_boxed_3050_; lean_object* v_res_3051_; +v_closed_boxed_3050_ = lean_unbox(v_closed_3042_); +v_res_3051_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6(v_pendingProducer_3040_, v_interestWaiter_3041_, v_closed_boxed_3050_, v_knownSize_3043_, v_pendingIncompleteChunk_3044_, v___y_3045_, v_chunk_3046_, v___f_3047_, v_x_3048_); +lean_dec_ref(v_chunk_3046_); +lean_dec(v___y_3045_); +return v_res_3051_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7(lean_object* v_chunk_3063_, lean_object* v___y_3064_, lean_object* v_a_3065_, lean_object* v___f_3066_, lean_object* v_x_3067_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7(lean_object* v_chunk_3070_, lean_object* v___y_3071_, lean_object* v_a_3072_, lean_object* v___f_3073_, lean_object* v_x_3074_){ _start: { -if (lean_obj_tag(v_x_3067_) == 0) +if (lean_obj_tag(v_x_3074_) == 0) { -lean_object* v_a_3069_; lean_object* v___x_3071_; uint8_t v_isShared_3072_; uint8_t v_isSharedCheck_3077_; -lean_dec_ref(v___f_3066_); -lean_dec(v_a_3065_); -lean_dec_ref(v_chunk_3063_); -v_a_3069_ = lean_ctor_get(v_x_3067_, 0); -v_isSharedCheck_3077_ = !lean_is_exclusive(v_x_3067_); -if (v_isSharedCheck_3077_ == 0) +lean_object* v_a_3076_; lean_object* v___x_3078_; uint8_t v_isShared_3079_; uint8_t v_isSharedCheck_3084_; +lean_dec_ref(v___f_3073_); +lean_dec(v_a_3072_); +lean_dec_ref(v_chunk_3070_); +v_a_3076_ = lean_ctor_get(v_x_3074_, 0); +v_isSharedCheck_3084_ = !lean_is_exclusive(v_x_3074_); +if (v_isSharedCheck_3084_ == 0) { -v___x_3071_ = v_x_3067_; -v_isShared_3072_ = v_isSharedCheck_3077_; -goto v_resetjp_3070_; +v___x_3078_ = v_x_3074_; +v_isShared_3079_ = v_isSharedCheck_3084_; +goto v_resetjp_3077_; } else { -lean_inc(v_a_3069_); -lean_dec(v_x_3067_); -v___x_3071_ = lean_box(0); -v_isShared_3072_ = v_isSharedCheck_3077_; -goto v_resetjp_3070_; +lean_inc(v_a_3076_); +lean_dec(v_x_3074_); +v___x_3078_ = lean_box(0); +v_isShared_3079_ = v_isSharedCheck_3084_; +goto v_resetjp_3077_; } -v_resetjp_3070_: +v_resetjp_3077_: { -lean_object* v___x_3074_; -if (v_isShared_3072_ == 0) +lean_object* v___x_3081_; +if (v_isShared_3079_ == 0) { -v___x_3074_ = v___x_3071_; -goto v_reusejp_3073_; +v___x_3081_ = v___x_3078_; +goto v_reusejp_3080_; } else { -lean_object* v_reuseFailAlloc_3076_; -v_reuseFailAlloc_3076_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3076_, 0, v_a_3069_); -v___x_3074_ = v_reuseFailAlloc_3076_; -goto v_reusejp_3073_; +lean_object* v_reuseFailAlloc_3083_; +v_reuseFailAlloc_3083_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3083_, 0, v_a_3076_); +v___x_3081_ = v_reuseFailAlloc_3083_; +goto v_reusejp_3080_; } -v_reusejp_3073_: +v_reusejp_3080_: { -lean_object* v___x_3075_; -v___x_3075_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3075_, 0, v___x_3074_); -return v___x_3075_; +lean_object* v___x_3082_; +v___x_3082_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3082_, 0, v___x_3081_); +return v___x_3082_; } } } else { -lean_object* v_a_3078_; lean_object* v___x_3080_; uint8_t v_isShared_3081_; uint8_t v_isSharedCheck_3131_; -v_a_3078_ = lean_ctor_get(v_x_3067_, 0); -v_isSharedCheck_3131_ = !lean_is_exclusive(v_x_3067_); -if (v_isSharedCheck_3131_ == 0) +lean_object* v_a_3085_; lean_object* v___x_3087_; uint8_t v_isShared_3088_; uint8_t v_isSharedCheck_3138_; +v_a_3085_ = lean_ctor_get(v_x_3074_, 0); +v_isSharedCheck_3138_ = !lean_is_exclusive(v_x_3074_); +if (v_isSharedCheck_3138_ == 0) { -v___x_3080_ = v_x_3067_; -v_isShared_3081_ = v_isSharedCheck_3131_; -goto v_resetjp_3079_; +v___x_3087_ = v_x_3074_; +v_isShared_3088_ = v_isSharedCheck_3138_; +goto v_resetjp_3086_; } else { -lean_inc(v_a_3078_); -lean_dec(v_x_3067_); -v___x_3080_ = lean_box(0); -v_isShared_3081_ = v_isSharedCheck_3131_; -goto v_resetjp_3079_; +lean_inc(v_a_3085_); +lean_dec(v_x_3074_); +v___x_3087_ = lean_box(0); +v_isShared_3088_ = v_isSharedCheck_3138_; +goto v_resetjp_3086_; } -v_resetjp_3079_: +v_resetjp_3086_: { -uint8_t v_closed_3082_; -v_closed_3082_ = lean_ctor_get_uint8(v_a_3078_, sizeof(void*)*5); -if (v_closed_3082_ == 0) +uint8_t v_closed_3089_; +v_closed_3089_ = lean_ctor_get_uint8(v_a_3085_, sizeof(void*)*5); +if (v_closed_3089_ == 0) { -lean_object* v_pendingConsumer_3083_; -v_pendingConsumer_3083_ = lean_ctor_get(v_a_3078_, 1); -lean_inc(v_pendingConsumer_3083_); -if (lean_obj_tag(v_pendingConsumer_3083_) == 1) +lean_object* v_pendingConsumer_3090_; +v_pendingConsumer_3090_ = lean_ctor_get(v_a_3085_, 1); +lean_inc(v_pendingConsumer_3090_); +if (lean_obj_tag(v_pendingConsumer_3090_) == 1) { -lean_object* v_pendingProducer_3084_; lean_object* v_interestWaiter_3085_; lean_object* v_knownSize_3086_; lean_object* v_pendingIncompleteChunk_3087_; lean_object* v_val_3088_; lean_object* v___x_3090_; uint8_t v_isShared_3091_; uint8_t v_isSharedCheck_3106_; -lean_dec_ref(v___f_3066_); -lean_dec(v_a_3065_); -v_pendingProducer_3084_ = lean_ctor_get(v_a_3078_, 0); -lean_inc(v_pendingProducer_3084_); -v_interestWaiter_3085_ = lean_ctor_get(v_a_3078_, 2); -lean_inc(v_interestWaiter_3085_); -v_knownSize_3086_ = lean_ctor_get(v_a_3078_, 3); -lean_inc(v_knownSize_3086_); -v_pendingIncompleteChunk_3087_ = lean_ctor_get(v_a_3078_, 4); -lean_inc(v_pendingIncompleteChunk_3087_); -lean_dec(v_a_3078_); -v_val_3088_ = lean_ctor_get(v_pendingConsumer_3083_, 0); -v_isSharedCheck_3106_ = !lean_is_exclusive(v_pendingConsumer_3083_); -if (v_isSharedCheck_3106_ == 0) +lean_object* v_pendingProducer_3091_; lean_object* v_interestWaiter_3092_; lean_object* v_knownSize_3093_; lean_object* v_pendingIncompleteChunk_3094_; lean_object* v_val_3095_; lean_object* v___x_3097_; uint8_t v_isShared_3098_; uint8_t v_isSharedCheck_3113_; +lean_dec_ref(v___f_3073_); +lean_dec(v_a_3072_); +v_pendingProducer_3091_ = lean_ctor_get(v_a_3085_, 0); +lean_inc(v_pendingProducer_3091_); +v_interestWaiter_3092_ = lean_ctor_get(v_a_3085_, 2); +lean_inc(v_interestWaiter_3092_); +v_knownSize_3093_ = lean_ctor_get(v_a_3085_, 3); +lean_inc(v_knownSize_3093_); +v_pendingIncompleteChunk_3094_ = lean_ctor_get(v_a_3085_, 4); +lean_inc(v_pendingIncompleteChunk_3094_); +lean_dec(v_a_3085_); +v_val_3095_ = lean_ctor_get(v_pendingConsumer_3090_, 0); +v_isSharedCheck_3113_ = !lean_is_exclusive(v_pendingConsumer_3090_); +if (v_isSharedCheck_3113_ == 0) { -v___x_3090_ = v_pendingConsumer_3083_; -v_isShared_3091_ = v_isSharedCheck_3106_; -goto v_resetjp_3089_; +v___x_3097_ = v_pendingConsumer_3090_; +v_isShared_3098_ = v_isSharedCheck_3113_; +goto v_resetjp_3096_; } else { -lean_inc(v_val_3088_); -lean_dec(v_pendingConsumer_3083_); -v___x_3090_ = lean_box(0); -v_isShared_3091_ = v_isSharedCheck_3106_; -goto v_resetjp_3089_; +lean_inc(v_val_3095_); +lean_dec(v_pendingConsumer_3090_); +v___x_3097_ = lean_box(0); +v_isShared_3098_ = v_isSharedCheck_3113_; +goto v_resetjp_3096_; } -v_resetjp_3089_: +v_resetjp_3096_: { -lean_object* v___x_3093_; -lean_inc_ref(v_chunk_3063_); -if (v_isShared_3091_ == 0) +lean_object* v___x_3100_; +lean_inc_ref(v_chunk_3070_); +if (v_isShared_3098_ == 0) { -lean_ctor_set(v___x_3090_, 0, v_chunk_3063_); -v___x_3093_ = v___x_3090_; -goto v_reusejp_3092_; -} -else -{ -lean_object* v_reuseFailAlloc_3105_; -v_reuseFailAlloc_3105_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3105_, 0, v_chunk_3063_); -v___x_3093_ = v_reuseFailAlloc_3105_; -goto v_reusejp_3092_; -} -v_reusejp_3092_: -{ -uint8_t v___x_3094_; lean_object* v___f_3095_; lean_object* v___x_3096_; lean_object* v___f_3097_; lean_object* v___x_3098_; lean_object* v___x_3100_; -v___x_3094_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_Consumer_resolve(v_val_3088_, v___x_3093_); -lean_dec(v_val_3088_); -v___f_3095_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__0)); -v___x_3096_ = lean_box(v_closed_3082_); -lean_inc(v___y_3064_); -v___f_3097_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6___boxed), 10, 8); -lean_closure_set(v___f_3097_, 0, v_pendingProducer_3084_); -lean_closure_set(v___f_3097_, 1, v_interestWaiter_3085_); -lean_closure_set(v___f_3097_, 2, v___x_3096_); -lean_closure_set(v___f_3097_, 3, v_knownSize_3086_); -lean_closure_set(v___f_3097_, 4, v_pendingIncompleteChunk_3087_); -lean_closure_set(v___f_3097_, 5, v___y_3064_); -lean_closure_set(v___f_3097_, 6, v_chunk_3063_); -lean_closure_set(v___f_3097_, 7, v___f_3095_); -v___x_3098_ = lean_box(v___x_3094_); -if (v_isShared_3081_ == 0) -{ -lean_ctor_set(v___x_3080_, 0, v___x_3098_); -v___x_3100_ = v___x_3080_; +lean_ctor_set(v___x_3097_, 0, v_chunk_3070_); +v___x_3100_ = v___x_3097_; goto v_reusejp_3099_; } else { -lean_object* v_reuseFailAlloc_3104_; -v_reuseFailAlloc_3104_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3104_, 0, v___x_3098_); -v___x_3100_ = v_reuseFailAlloc_3104_; +lean_object* v_reuseFailAlloc_3112_; +v_reuseFailAlloc_3112_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3112_, 0, v_chunk_3070_); +v___x_3100_ = v_reuseFailAlloc_3112_; goto v_reusejp_3099_; } v_reusejp_3099_: { -lean_object* v___x_3101_; lean_object* v___x_3102_; lean_object* v___x_3103_; -v___x_3101_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3101_, 0, v___x_3100_); -v___x_3102_ = lean_unsigned_to_nat(0u); -v___x_3103_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3102_, v_closed_3082_, v___x_3101_, v___f_3097_); -return v___x_3103_; +uint8_t v___x_3101_; lean_object* v___f_3102_; lean_object* v___x_3103_; lean_object* v___f_3104_; lean_object* v___x_3105_; lean_object* v___x_3107_; +v___x_3101_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_Consumer_resolve(v_val_3095_, v___x_3100_); +lean_dec(v_val_3095_); +v___f_3102_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__0)); +v___x_3103_ = lean_box(v_closed_3089_); +lean_inc(v___y_3071_); +v___f_3104_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__6___boxed), 10, 8); +lean_closure_set(v___f_3104_, 0, v_pendingProducer_3091_); +lean_closure_set(v___f_3104_, 1, v_interestWaiter_3092_); +lean_closure_set(v___f_3104_, 2, v___x_3103_); +lean_closure_set(v___f_3104_, 3, v_knownSize_3093_); +lean_closure_set(v___f_3104_, 4, v_pendingIncompleteChunk_3094_); +lean_closure_set(v___f_3104_, 5, v___y_3071_); +lean_closure_set(v___f_3104_, 6, v_chunk_3070_); +lean_closure_set(v___f_3104_, 7, v___f_3102_); +v___x_3105_ = lean_box(v___x_3101_); +if (v_isShared_3088_ == 0) +{ +lean_ctor_set(v___x_3087_, 0, v___x_3105_); +v___x_3107_ = v___x_3087_; +goto v_reusejp_3106_; +} +else +{ +lean_object* v_reuseFailAlloc_3111_; +v_reuseFailAlloc_3111_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3111_, 0, v___x_3105_); +v___x_3107_ = v_reuseFailAlloc_3111_; +goto v_reusejp_3106_; +} +v_reusejp_3106_: +{ +lean_object* v___x_3108_; lean_object* v___x_3109_; lean_object* v___x_3110_; +v___x_3108_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3108_, 0, v___x_3107_); +v___x_3109_ = lean_unsigned_to_nat(0u); +v___x_3110_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3109_, v_closed_3089_, v___x_3108_, v___f_3104_); +return v___x_3110_; } } } } else { -lean_object* v_pendingProducer_3107_; -v_pendingProducer_3107_ = lean_ctor_get(v_a_3078_, 0); -if (lean_obj_tag(v_pendingProducer_3107_) == 0) +lean_object* v_pendingProducer_3114_; +v_pendingProducer_3114_ = lean_ctor_get(v_a_3085_, 0); +if (lean_obj_tag(v_pendingProducer_3114_) == 0) { -lean_object* v_interestWaiter_3108_; lean_object* v_knownSize_3109_; lean_object* v_pendingIncompleteChunk_3110_; lean_object* v___x_3112_; uint8_t v_isShared_3113_; uint8_t v_isSharedCheck_3126_; -v_interestWaiter_3108_ = lean_ctor_get(v_a_3078_, 2); -v_knownSize_3109_ = lean_ctor_get(v_a_3078_, 3); -v_pendingIncompleteChunk_3110_ = lean_ctor_get(v_a_3078_, 4); -v_isSharedCheck_3126_ = !lean_is_exclusive(v_a_3078_); -if (v_isSharedCheck_3126_ == 0) +lean_object* v_interestWaiter_3115_; lean_object* v_knownSize_3116_; lean_object* v_pendingIncompleteChunk_3117_; lean_object* v___x_3119_; uint8_t v_isShared_3120_; uint8_t v_isSharedCheck_3133_; +v_interestWaiter_3115_ = lean_ctor_get(v_a_3085_, 2); +v_knownSize_3116_ = lean_ctor_get(v_a_3085_, 3); +v_pendingIncompleteChunk_3117_ = lean_ctor_get(v_a_3085_, 4); +v_isSharedCheck_3133_ = !lean_is_exclusive(v_a_3085_); +if (v_isSharedCheck_3133_ == 0) { -lean_object* v_unused_3127_; lean_object* v_unused_3128_; -v_unused_3127_ = lean_ctor_get(v_a_3078_, 1); -lean_dec(v_unused_3127_); -v_unused_3128_ = lean_ctor_get(v_a_3078_, 0); -lean_dec(v_unused_3128_); -v___x_3112_ = v_a_3078_; -v_isShared_3113_ = v_isSharedCheck_3126_; -goto v_resetjp_3111_; +lean_object* v_unused_3134_; lean_object* v_unused_3135_; +v_unused_3134_ = lean_ctor_get(v_a_3085_, 1); +lean_dec(v_unused_3134_); +v_unused_3135_ = lean_ctor_get(v_a_3085_, 0); +lean_dec(v_unused_3135_); +v___x_3119_ = v_a_3085_; +v_isShared_3120_ = v_isSharedCheck_3133_; +goto v_resetjp_3118_; } else { -lean_inc(v_pendingIncompleteChunk_3110_); -lean_inc(v_knownSize_3109_); -lean_inc(v_interestWaiter_3108_); -lean_dec(v_a_3078_); -v___x_3112_ = lean_box(0); -v_isShared_3113_ = v_isSharedCheck_3126_; -goto v_resetjp_3111_; +lean_inc(v_pendingIncompleteChunk_3117_); +lean_inc(v_knownSize_3116_); +lean_inc(v_interestWaiter_3115_); +lean_dec(v_a_3085_); +v___x_3119_ = lean_box(0); +v_isShared_3120_ = v_isSharedCheck_3133_; +goto v_resetjp_3118_; } -v_resetjp_3111_: +v_resetjp_3118_: { -lean_object* v___x_3114_; lean_object* v___x_3115_; lean_object* v___x_3117_; -v___x_3114_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3114_, 0, v_chunk_3063_); -lean_ctor_set(v___x_3114_, 1, v_a_3065_); -v___x_3115_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3115_, 0, v___x_3114_); -if (v_isShared_3113_ == 0) +lean_object* v___x_3121_; lean_object* v___x_3122_; lean_object* v___x_3124_; +v___x_3121_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3121_, 0, v_chunk_3070_); +lean_ctor_set(v___x_3121_, 1, v_a_3072_); +v___x_3122_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3122_, 0, v___x_3121_); +if (v_isShared_3120_ == 0) { -lean_ctor_set(v___x_3112_, 0, v___x_3115_); -v___x_3117_ = v___x_3112_; -goto v_reusejp_3116_; +lean_ctor_set(v___x_3119_, 0, v___x_3122_); +v___x_3124_ = v___x_3119_; +goto v_reusejp_3123_; } else { -lean_object* v_reuseFailAlloc_3125_; -v_reuseFailAlloc_3125_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_3125_, 0, v___x_3115_); -lean_ctor_set(v_reuseFailAlloc_3125_, 1, v_pendingConsumer_3083_); -lean_ctor_set(v_reuseFailAlloc_3125_, 2, v_interestWaiter_3108_); -lean_ctor_set(v_reuseFailAlloc_3125_, 3, v_knownSize_3109_); -lean_ctor_set(v_reuseFailAlloc_3125_, 4, v_pendingIncompleteChunk_3110_); -lean_ctor_set_uint8(v_reuseFailAlloc_3125_, sizeof(void*)*5, v_closed_3082_); -v___x_3117_ = v_reuseFailAlloc_3125_; -goto v_reusejp_3116_; +lean_object* v_reuseFailAlloc_3132_; +v_reuseFailAlloc_3132_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_3132_, 0, v___x_3122_); +lean_ctor_set(v_reuseFailAlloc_3132_, 1, v_pendingConsumer_3090_); +lean_ctor_set(v_reuseFailAlloc_3132_, 2, v_interestWaiter_3115_); +lean_ctor_set(v_reuseFailAlloc_3132_, 3, v_knownSize_3116_); +lean_ctor_set(v_reuseFailAlloc_3132_, 4, v_pendingIncompleteChunk_3117_); +lean_ctor_set_uint8(v_reuseFailAlloc_3132_, sizeof(void*)*5, v_closed_3089_); +v___x_3124_ = v_reuseFailAlloc_3132_; +goto v_reusejp_3123_; } -v_reusejp_3116_: +v_reusejp_3123_: { -lean_object* v___x_3118_; lean_object* v___x_3120_; -v___x_3118_ = lean_st_ref_set(v___y_3064_, v___x_3117_); -if (v_isShared_3081_ == 0) +lean_object* v___x_3125_; lean_object* v___x_3127_; +v___x_3125_ = lean_st_ref_set(v___y_3071_, v___x_3124_); +if (v_isShared_3088_ == 0) { -lean_ctor_set(v___x_3080_, 0, v___x_3118_); -v___x_3120_ = v___x_3080_; -goto v_reusejp_3119_; +lean_ctor_set(v___x_3087_, 0, v___x_3125_); +v___x_3127_ = v___x_3087_; +goto v_reusejp_3126_; } else { -lean_object* v_reuseFailAlloc_3124_; -v_reuseFailAlloc_3124_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3124_, 0, v___x_3118_); -v___x_3120_ = v_reuseFailAlloc_3124_; -goto v_reusejp_3119_; +lean_object* v_reuseFailAlloc_3131_; +v_reuseFailAlloc_3131_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3131_, 0, v___x_3125_); +v___x_3127_ = v_reuseFailAlloc_3131_; +goto v_reusejp_3126_; } -v_reusejp_3119_: +v_reusejp_3126_: { -lean_object* v___x_3121_; lean_object* v___x_3122_; lean_object* v___x_3123_; -v___x_3121_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3121_, 0, v___x_3120_); -v___x_3122_ = lean_unsigned_to_nat(0u); -v___x_3123_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3122_, v_closed_3082_, v___x_3121_, v___f_3066_); -return v___x_3123_; -} -} -} -} -else -{ -lean_object* v___x_3129_; -lean_dec(v_pendingConsumer_3083_); -lean_del_object(v___x_3080_); -lean_dec(v_a_3078_); -lean_dec_ref(v___f_3066_); -lean_dec(v_a_3065_); -lean_dec_ref(v_chunk_3063_); -v___x_3129_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__5)); -return v___x_3129_; -} -} -} -else -{ -lean_object* v___x_3130_; -lean_del_object(v___x_3080_); -lean_dec(v_a_3078_); -lean_dec_ref(v___f_3066_); -lean_dec(v_a_3065_); -lean_dec_ref(v_chunk_3063_); -v___x_3130_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__8)); +lean_object* v___x_3128_; lean_object* v___x_3129_; lean_object* v___x_3130_; +v___x_3128_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3128_, 0, v___x_3127_); +v___x_3129_ = lean_unsigned_to_nat(0u); +v___x_3130_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3129_, v_closed_3089_, v___x_3128_, v___f_3073_); return v___x_3130_; } } } } +else +{ +lean_object* v___x_3136_; +lean_dec(v_pendingConsumer_3090_); +lean_del_object(v___x_3087_); +lean_dec(v_a_3085_); +lean_dec_ref(v___f_3073_); +lean_dec(v_a_3072_); +lean_dec_ref(v_chunk_3070_); +v___x_3136_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__5)); +return v___x_3136_; } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___boxed(lean_object* v_chunk_3132_, lean_object* v___y_3133_, lean_object* v_a_3134_, lean_object* v___f_3135_, lean_object* v_x_3136_, lean_object* v___y_3137_){ +} +} +else +{ +lean_object* v___x_3137_; +lean_del_object(v___x_3087_); +lean_dec(v_a_3085_); +lean_dec_ref(v___f_3073_); +lean_dec(v_a_3072_); +lean_dec_ref(v_chunk_3070_); +v___x_3137_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___closed__8)); +return v___x_3137_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___boxed(lean_object* v_chunk_3139_, lean_object* v___y_3140_, lean_object* v_a_3141_, lean_object* v___f_3142_, lean_object* v_x_3143_, lean_object* v___y_3144_){ _start: { -lean_object* v_res_3138_; -v_res_3138_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7(v_chunk_3132_, v___y_3133_, v_a_3134_, v___f_3135_, v_x_3136_); -lean_dec(v___y_3133_); -return v_res_3138_; +lean_object* v_res_3145_; +v_res_3145_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7(v_chunk_3139_, v___y_3140_, v_a_3141_, v___f_3142_, v_x_3143_); +lean_dec(v___y_3140_); +return v_res_3145_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8(lean_object* v___y_3139_, lean_object* v___f_3140_, lean_object* v_x_3141_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8(lean_object* v___y_3146_, lean_object* v___f_3147_, lean_object* v_x_3148_){ _start: { -if (lean_obj_tag(v_x_3141_) == 0) +if (lean_obj_tag(v_x_3148_) == 0) { -lean_object* v_a_3143_; lean_object* v___x_3145_; uint8_t v_isShared_3146_; uint8_t v_isSharedCheck_3151_; -lean_dec_ref(v___f_3140_); -v_a_3143_ = lean_ctor_get(v_x_3141_, 0); -v_isSharedCheck_3151_ = !lean_is_exclusive(v_x_3141_); -if (v_isSharedCheck_3151_ == 0) +lean_object* v_a_3150_; lean_object* v___x_3152_; uint8_t v_isShared_3153_; uint8_t v_isSharedCheck_3158_; +lean_dec_ref(v___f_3147_); +v_a_3150_ = lean_ctor_get(v_x_3148_, 0); +v_isSharedCheck_3158_ = !lean_is_exclusive(v_x_3148_); +if (v_isSharedCheck_3158_ == 0) { -v___x_3145_ = v_x_3141_; -v_isShared_3146_ = v_isSharedCheck_3151_; -goto v_resetjp_3144_; +v___x_3152_ = v_x_3148_; +v_isShared_3153_ = v_isSharedCheck_3158_; +goto v_resetjp_3151_; } else { -lean_inc(v_a_3143_); -lean_dec(v_x_3141_); -v___x_3145_ = lean_box(0); -v_isShared_3146_ = v_isSharedCheck_3151_; -goto v_resetjp_3144_; +lean_inc(v_a_3150_); +lean_dec(v_x_3148_); +v___x_3152_ = lean_box(0); +v_isShared_3153_ = v_isSharedCheck_3158_; +goto v_resetjp_3151_; } -v_resetjp_3144_: +v_resetjp_3151_: { -lean_object* v___x_3148_; -if (v_isShared_3146_ == 0) +lean_object* v___x_3155_; +if (v_isShared_3153_ == 0) { -v___x_3148_ = v___x_3145_; -goto v_reusejp_3147_; +v___x_3155_ = v___x_3152_; +goto v_reusejp_3154_; } else { -lean_object* v_reuseFailAlloc_3150_; -v_reuseFailAlloc_3150_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3150_, 0, v_a_3143_); -v___x_3148_ = v_reuseFailAlloc_3150_; -goto v_reusejp_3147_; +lean_object* v_reuseFailAlloc_3157_; +v_reuseFailAlloc_3157_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3157_, 0, v_a_3150_); +v___x_3155_ = v_reuseFailAlloc_3157_; +goto v_reusejp_3154_; } -v_reusejp_3147_: +v_reusejp_3154_: { -lean_object* v___x_3149_; -v___x_3149_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3149_, 0, v___x_3148_); -return v___x_3149_; +lean_object* v___x_3156_; +v___x_3156_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3156_, 0, v___x_3155_); +return v___x_3156_; } } } else { -lean_object* v___x_3153_; uint8_t v_isShared_3154_; uint8_t v_isSharedCheck_3163_; -v_isSharedCheck_3163_ = !lean_is_exclusive(v_x_3141_); -if (v_isSharedCheck_3163_ == 0) +lean_object* v___x_3160_; uint8_t v_isShared_3161_; uint8_t v_isSharedCheck_3170_; +v_isSharedCheck_3170_ = !lean_is_exclusive(v_x_3148_); +if (v_isSharedCheck_3170_ == 0) { -lean_object* v_unused_3164_; -v_unused_3164_ = lean_ctor_get(v_x_3141_, 0); -lean_dec(v_unused_3164_); -v___x_3153_ = v_x_3141_; -v_isShared_3154_ = v_isSharedCheck_3163_; -goto v_resetjp_3152_; +lean_object* v_unused_3171_; +v_unused_3171_ = lean_ctor_get(v_x_3148_, 0); +lean_dec(v_unused_3171_); +v___x_3160_ = v_x_3148_; +v_isShared_3161_ = v_isSharedCheck_3170_; +goto v_resetjp_3159_; } else { -lean_dec(v_x_3141_); -v___x_3153_ = lean_box(0); -v_isShared_3154_ = v_isSharedCheck_3163_; -goto v_resetjp_3152_; +lean_dec(v_x_3148_); +v___x_3160_ = lean_box(0); +v_isShared_3161_ = v_isSharedCheck_3170_; +goto v_resetjp_3159_; } -v_resetjp_3152_: +v_resetjp_3159_: { -lean_object* v___x_3155_; lean_object* v___x_3157_; -v___x_3155_ = lean_st_ref_get(v___y_3139_); -if (v_isShared_3154_ == 0) +lean_object* v___x_3162_; lean_object* v___x_3164_; +v___x_3162_ = lean_st_ref_get(v___y_3146_); +if (v_isShared_3161_ == 0) { -lean_ctor_set(v___x_3153_, 0, v___x_3155_); -v___x_3157_ = v___x_3153_; -goto v_reusejp_3156_; +lean_ctor_set(v___x_3160_, 0, v___x_3162_); +v___x_3164_ = v___x_3160_; +goto v_reusejp_3163_; } else { -lean_object* v_reuseFailAlloc_3162_; -v_reuseFailAlloc_3162_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3162_, 0, v___x_3155_); -v___x_3157_ = v_reuseFailAlloc_3162_; -goto v_reusejp_3156_; +lean_object* v_reuseFailAlloc_3169_; +v_reuseFailAlloc_3169_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3169_, 0, v___x_3162_); +v___x_3164_ = v_reuseFailAlloc_3169_; +goto v_reusejp_3163_; } -v_reusejp_3156_: +v_reusejp_3163_: { -lean_object* v___x_3158_; lean_object* v___x_3159_; uint8_t v___x_3160_; lean_object* v___x_3161_; -v___x_3158_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3158_, 0, v___x_3157_); -v___x_3159_ = lean_unsigned_to_nat(0u); -v___x_3160_ = 0; -v___x_3161_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3159_, v___x_3160_, v___x_3158_, v___f_3140_); -return v___x_3161_; +lean_object* v___x_3165_; lean_object* v___x_3166_; uint8_t v___x_3167_; lean_object* v___x_3168_; +v___x_3165_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3165_, 0, v___x_3164_); +v___x_3166_ = lean_unsigned_to_nat(0u); +v___x_3167_ = 0; +v___x_3168_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3166_, v___x_3167_, v___x_3165_, v___f_3147_); +return v___x_3168_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8___boxed(lean_object* v___y_3165_, lean_object* v___f_3166_, lean_object* v_x_3167_, lean_object* v___y_3168_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8___boxed(lean_object* v___y_3172_, lean_object* v___f_3173_, lean_object* v_x_3174_, lean_object* v___y_3175_){ _start: { -lean_object* v_res_3169_; -v_res_3169_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8(v___y_3165_, v___f_3166_, v_x_3167_); -lean_dec(v___y_3165_); -return v_res_3169_; +lean_object* v_res_3176_; +v_res_3176_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8(v___y_3172_, v___f_3173_, v_x_3174_); +lean_dec(v___y_3172_); +return v_res_3176_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9(lean_object* v_chunk_3170_, lean_object* v_a_3171_, lean_object* v___f_3172_, lean_object* v___y_3173_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9(lean_object* v_chunk_3177_, lean_object* v_a_3178_, lean_object* v___f_3179_, lean_object* v___y_3180_){ _start: { -lean_object* v___x_3175_; lean_object* v___f_3176_; lean_object* v___f_3177_; lean_object* v___x_3178_; uint8_t v___x_3179_; lean_object* v___x_3180_; -v___x_3175_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3173_); -lean_inc_n(v___y_3173_, 2); -v___f_3176_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___boxed), 6, 4); -lean_closure_set(v___f_3176_, 0, v_chunk_3170_); -lean_closure_set(v___f_3176_, 1, v___y_3173_); -lean_closure_set(v___f_3176_, 2, v_a_3171_); -lean_closure_set(v___f_3176_, 3, v___f_3172_); -v___f_3177_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8___boxed), 4, 2); -lean_closure_set(v___f_3177_, 0, v___y_3173_); -lean_closure_set(v___f_3177_, 1, v___f_3176_); -v___x_3178_ = lean_unsigned_to_nat(0u); -v___x_3179_ = 0; -v___x_3180_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3178_, v___x_3179_, v___x_3175_, v___f_3177_); -return v___x_3180_; +lean_object* v___x_3182_; lean_object* v___f_3183_; lean_object* v___f_3184_; lean_object* v___x_3185_; uint8_t v___x_3186_; lean_object* v___x_3187_; +v___x_3182_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3180_); +lean_inc_n(v___y_3180_, 2); +v___f_3183_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__7___boxed), 6, 4); +lean_closure_set(v___f_3183_, 0, v_chunk_3177_); +lean_closure_set(v___f_3183_, 1, v___y_3180_); +lean_closure_set(v___f_3183_, 2, v_a_3178_); +lean_closure_set(v___f_3183_, 3, v___f_3179_); +v___f_3184_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__8___boxed), 4, 2); +lean_closure_set(v___f_3184_, 0, v___y_3180_); +lean_closure_set(v___f_3184_, 1, v___f_3183_); +v___x_3185_ = lean_unsigned_to_nat(0u); +v___x_3186_ = 0; +v___x_3187_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3185_, v___x_3186_, v___x_3182_, v___f_3184_); +return v___x_3187_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9___boxed(lean_object* v_chunk_3181_, lean_object* v_a_3182_, lean_object* v___f_3183_, lean_object* v___y_3184_, lean_object* v___y_3185_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9___boxed(lean_object* v_chunk_3188_, lean_object* v_a_3189_, lean_object* v___f_3190_, lean_object* v___y_3191_, lean_object* v___y_3192_){ _start: { -lean_object* v_res_3186_; -v_res_3186_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9(v_chunk_3181_, v_a_3182_, v___f_3183_, v___y_3184_); -lean_dec(v___y_3184_); -return v_res_3186_; +lean_object* v_res_3193_; +v_res_3193_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9(v_chunk_3188_, v_a_3189_, v___f_3190_, v___y_3191_); +lean_dec(v___y_3191_); +return v_res_3193_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10(lean_object* v_a_3192_, lean_object* v___f_3193_, lean_object* v___f_3194_, lean_object* v_stream_3195_, lean_object* v_chunk_3196_, lean_object* v___f_3197_, lean_object* v_x_3198_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10(lean_object* v_a_3199_, lean_object* v___f_3200_, lean_object* v___f_3201_, lean_object* v_stream_3202_, lean_object* v_chunk_3203_, lean_object* v___f_3204_, lean_object* v_x_3205_){ _start: { -if (lean_obj_tag(v_x_3198_) == 0) +if (lean_obj_tag(v_x_3205_) == 0) { -lean_object* v_a_3200_; lean_object* v___x_3202_; uint8_t v_isShared_3203_; uint8_t v_isSharedCheck_3208_; -lean_dec_ref(v___f_3197_); -lean_dec_ref(v_chunk_3196_); -lean_dec_ref(v_stream_3195_); -lean_dec_ref(v___f_3194_); -lean_dec_ref(v___f_3193_); -v_a_3200_ = lean_ctor_get(v_x_3198_, 0); -v_isSharedCheck_3208_ = !lean_is_exclusive(v_x_3198_); -if (v_isSharedCheck_3208_ == 0) +lean_object* v_a_3207_; lean_object* v___x_3209_; uint8_t v_isShared_3210_; uint8_t v_isSharedCheck_3215_; +lean_dec_ref(v___f_3204_); +lean_dec_ref(v_chunk_3203_); +lean_dec_ref(v_stream_3202_); +lean_dec_ref(v___f_3201_); +lean_dec_ref(v___f_3200_); +v_a_3207_ = lean_ctor_get(v_x_3205_, 0); +v_isSharedCheck_3215_ = !lean_is_exclusive(v_x_3205_); +if (v_isSharedCheck_3215_ == 0) { -v___x_3202_ = v_x_3198_; -v_isShared_3203_ = v_isSharedCheck_3208_; -goto v_resetjp_3201_; +v___x_3209_ = v_x_3205_; +v_isShared_3210_ = v_isSharedCheck_3215_; +goto v_resetjp_3208_; } else { -lean_inc(v_a_3200_); -lean_dec(v_x_3198_); -v___x_3202_ = lean_box(0); -v_isShared_3203_ = v_isSharedCheck_3208_; -goto v_resetjp_3201_; +lean_inc(v_a_3207_); +lean_dec(v_x_3205_); +v___x_3209_ = lean_box(0); +v_isShared_3210_ = v_isSharedCheck_3215_; +goto v_resetjp_3208_; } -v_resetjp_3201_: +v_resetjp_3208_: { -lean_object* v___x_3205_; -if (v_isShared_3203_ == 0) +lean_object* v___x_3212_; +if (v_isShared_3210_ == 0) { -v___x_3205_ = v___x_3202_; -goto v_reusejp_3204_; +v___x_3212_ = v___x_3209_; +goto v_reusejp_3211_; } else { -lean_object* v_reuseFailAlloc_3207_; -v_reuseFailAlloc_3207_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3207_, 0, v_a_3200_); -v___x_3205_ = v_reuseFailAlloc_3207_; -goto v_reusejp_3204_; +lean_object* v_reuseFailAlloc_3214_; +v_reuseFailAlloc_3214_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3214_, 0, v_a_3207_); +v___x_3212_ = v_reuseFailAlloc_3214_; +goto v_reusejp_3211_; } -v_reusejp_3204_: +v_reusejp_3211_: { -lean_object* v___x_3206_; -v___x_3206_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3206_, 0, v___x_3205_); -return v___x_3206_; +lean_object* v___x_3213_; +v___x_3213_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3213_, 0, v___x_3212_); +return v___x_3213_; } } } else { -lean_object* v_a_3209_; -v_a_3209_ = lean_ctor_get(v_x_3198_, 0); -lean_inc(v_a_3209_); -lean_dec_ref(v_x_3198_); -if (lean_obj_tag(v_a_3209_) == 0) +lean_object* v_a_3216_; +v_a_3216_ = lean_ctor_get(v_x_3205_, 0); +lean_inc(v_a_3216_); +lean_dec_ref(v_x_3205_); +if (lean_obj_tag(v_a_3216_) == 0) { -lean_object* v_a_3210_; lean_object* v___x_3212_; uint8_t v_isShared_3213_; uint8_t v_isSharedCheck_3218_; -lean_dec_ref(v___f_3197_); -lean_dec_ref(v_chunk_3196_); -lean_dec_ref(v_stream_3195_); -lean_dec_ref(v___f_3194_); -lean_dec_ref(v___f_3193_); -v_a_3210_ = lean_ctor_get(v_a_3209_, 0); -v_isSharedCheck_3218_ = !lean_is_exclusive(v_a_3209_); -if (v_isSharedCheck_3218_ == 0) +lean_object* v_a_3217_; lean_object* v___x_3219_; uint8_t v_isShared_3220_; uint8_t v_isSharedCheck_3225_; +lean_dec_ref(v___f_3204_); +lean_dec_ref(v_chunk_3203_); +lean_dec_ref(v_stream_3202_); +lean_dec_ref(v___f_3201_); +lean_dec_ref(v___f_3200_); +v_a_3217_ = lean_ctor_get(v_a_3216_, 0); +v_isSharedCheck_3225_ = !lean_is_exclusive(v_a_3216_); +if (v_isSharedCheck_3225_ == 0) { -v___x_3212_ = v_a_3209_; -v_isShared_3213_ = v_isSharedCheck_3218_; -goto v_resetjp_3211_; +v___x_3219_ = v_a_3216_; +v_isShared_3220_ = v_isSharedCheck_3225_; +goto v_resetjp_3218_; } else { -lean_inc(v_a_3210_); -lean_dec(v_a_3209_); -v___x_3212_ = lean_box(0); -v_isShared_3213_ = v_isSharedCheck_3218_; -goto v_resetjp_3211_; +lean_inc(v_a_3217_); +lean_dec(v_a_3216_); +v___x_3219_ = lean_box(0); +v_isShared_3220_ = v_isSharedCheck_3225_; +goto v_resetjp_3218_; } -v_resetjp_3211_: +v_resetjp_3218_: { -lean_object* v___x_3215_; -if (v_isShared_3213_ == 0) +lean_object* v___x_3222_; +if (v_isShared_3220_ == 0) { -v___x_3215_ = v___x_3212_; -goto v_reusejp_3214_; +v___x_3222_ = v___x_3219_; +goto v_reusejp_3221_; } else { -lean_object* v_reuseFailAlloc_3217_; -v_reuseFailAlloc_3217_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3217_, 0, v_a_3210_); -v___x_3215_ = v_reuseFailAlloc_3217_; -goto v_reusejp_3214_; +lean_object* v_reuseFailAlloc_3224_; +v_reuseFailAlloc_3224_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3224_, 0, v_a_3217_); +v___x_3222_ = v_reuseFailAlloc_3224_; +goto v_reusejp_3221_; } -v_reusejp_3214_: +v_reusejp_3221_: { -lean_object* v___x_3216_; -v___x_3216_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3216_, 0, v___x_3215_); -return v___x_3216_; +lean_object* v___x_3223_; +v___x_3223_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3223_, 0, v___x_3222_); +return v___x_3223_; } } } else { -lean_object* v_a_3219_; -v_a_3219_ = lean_ctor_get(v_a_3209_, 0); -lean_inc(v_a_3219_); -lean_dec_ref(v_a_3209_); -if (lean_obj_tag(v_a_3219_) == 0) +lean_object* v_a_3226_; +v_a_3226_ = lean_ctor_get(v_a_3216_, 0); +lean_inc(v_a_3226_); +lean_dec_ref(v_a_3216_); +if (lean_obj_tag(v_a_3226_) == 0) { -lean_object* v___x_3220_; lean_object* v___x_3221_; uint8_t v___x_3222_; lean_object* v___x_3223_; lean_object* v___x_3224_; lean_object* v___x_3225_; -lean_dec_ref(v___f_3197_); -lean_dec_ref(v_chunk_3196_); -lean_dec_ref(v_stream_3195_); -v___x_3220_ = lean_io_promise_result_opt(v_a_3192_); -v___x_3221_ = lean_unsigned_to_nat(0u); -v___x_3222_ = 0; -v___x_3223_ = lean_task_map(v___f_3193_, v___x_3220_, v___x_3221_, v___x_3222_); -v___x_3224_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3224_, 0, v___x_3223_); -v___x_3225_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3221_, v___x_3222_, v___x_3224_, v___f_3194_); -return v___x_3225_; +lean_object* v___x_3227_; lean_object* v___x_3228_; uint8_t v___x_3229_; lean_object* v___x_3230_; lean_object* v___x_3231_; lean_object* v___x_3232_; +lean_dec_ref(v___f_3204_); +lean_dec_ref(v_chunk_3203_); +lean_dec_ref(v_stream_3202_); +v___x_3227_ = lean_io_promise_result_opt(v_a_3199_); +v___x_3228_ = lean_unsigned_to_nat(0u); +v___x_3229_ = 0; +v___x_3230_ = lean_task_map(v___f_3200_, v___x_3227_, v___x_3228_, v___x_3229_); +v___x_3231_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3231_, 0, v___x_3230_); +v___x_3232_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3228_, v___x_3229_, v___x_3231_, v___f_3201_); +return v___x_3232_; } else { -lean_object* v_val_3226_; uint8_t v___x_3227_; -lean_dec_ref(v___f_3194_); -lean_dec_ref(v___f_3193_); -v_val_3226_ = lean_ctor_get(v_a_3219_, 0); -lean_inc(v_val_3226_); -lean_dec_ref(v_a_3219_); -v___x_3227_ = lean_unbox(v_val_3226_); -lean_dec(v_val_3226_); -if (v___x_3227_ == 0) +lean_object* v_val_3233_; uint8_t v___x_3234_; +lean_dec_ref(v___f_3201_); +lean_dec_ref(v___f_3200_); +v_val_3233_ = lean_ctor_get(v_a_3226_, 0); +lean_inc(v_val_3233_); +lean_dec_ref(v_a_3226_); +v___x_3234_ = lean_unbox(v_val_3233_); +lean_dec(v_val_3233_); +if (v___x_3234_ == 0) { -lean_object* v___x_3228_; -lean_dec_ref(v___f_3197_); -v___x_3228_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3195_, v_chunk_3196_); -return v___x_3228_; +lean_object* v___x_3235_; +lean_dec_ref(v___f_3204_); +v___x_3235_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3202_, v_chunk_3203_); +return v___x_3235_; } else { -lean_object* v___x_3229_; lean_object* v___x_3230_; -lean_dec_ref(v_chunk_3196_); -lean_dec_ref(v_stream_3195_); -v___x_3229_ = lean_box(0); -v___x_3230_ = lean_apply_2(v___f_3197_, v___x_3229_, lean_box(0)); -return v___x_3230_; +lean_object* v___x_3236_; lean_object* v___x_3237_; +lean_dec_ref(v_chunk_3203_); +lean_dec_ref(v_stream_3202_); +v___x_3236_ = lean_box(0); +v___x_3237_ = lean_apply_2(v___f_3204_, v___x_3236_, lean_box(0)); +return v___x_3237_; } } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10___boxed(lean_object* v_a_3231_, lean_object* v___f_3232_, lean_object* v___f_3233_, lean_object* v_stream_3234_, lean_object* v_chunk_3235_, lean_object* v___f_3236_, lean_object* v_x_3237_, lean_object* v___y_3238_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10___boxed(lean_object* v_a_3238_, lean_object* v___f_3239_, lean_object* v___f_3240_, lean_object* v_stream_3241_, lean_object* v_chunk_3242_, lean_object* v___f_3243_, lean_object* v_x_3244_, lean_object* v___y_3245_){ _start: { -lean_object* v_res_3239_; -v_res_3239_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10(v_a_3231_, v___f_3232_, v___f_3233_, v_stream_3234_, v_chunk_3235_, v___f_3236_, v_x_3237_); -lean_dec(v_a_3231_); -return v_res_3239_; +lean_object* v_res_3246_; +v_res_3246_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10(v_a_3238_, v___f_3239_, v___f_3240_, v_stream_3241_, v_chunk_3242_, v___f_3243_, v_x_3244_); +lean_dec(v_a_3238_); +return v_res_3246_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11(lean_object* v_chunk_3240_, lean_object* v___f_3241_, lean_object* v_stream_3242_, lean_object* v___f_3243_, lean_object* v___f_3244_, lean_object* v___f_3245_, lean_object* v_x_3246_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11(lean_object* v_chunk_3247_, lean_object* v___f_3248_, lean_object* v_stream_3249_, lean_object* v___f_3250_, lean_object* v___f_3251_, lean_object* v___f_3252_, lean_object* v_x_3253_){ _start: { -if (lean_obj_tag(v_x_3246_) == 0) +if (lean_obj_tag(v_x_3253_) == 0) { -lean_object* v_a_3248_; lean_object* v___x_3250_; uint8_t v_isShared_3251_; uint8_t v_isSharedCheck_3256_; -lean_dec_ref(v___f_3245_); -lean_dec_ref(v___f_3244_); -lean_dec_ref(v___f_3243_); -lean_dec_ref(v_stream_3242_); -lean_dec_ref(v___f_3241_); -lean_dec_ref(v_chunk_3240_); -v_a_3248_ = lean_ctor_get(v_x_3246_, 0); -v_isSharedCheck_3256_ = !lean_is_exclusive(v_x_3246_); -if (v_isSharedCheck_3256_ == 0) +lean_object* v_a_3255_; lean_object* v___x_3257_; uint8_t v_isShared_3258_; uint8_t v_isSharedCheck_3263_; +lean_dec_ref(v___f_3252_); +lean_dec_ref(v___f_3251_); +lean_dec_ref(v___f_3250_); +lean_dec_ref(v_stream_3249_); +lean_dec_ref(v___f_3248_); +lean_dec_ref(v_chunk_3247_); +v_a_3255_ = lean_ctor_get(v_x_3253_, 0); +v_isSharedCheck_3263_ = !lean_is_exclusive(v_x_3253_); +if (v_isSharedCheck_3263_ == 0) { -v___x_3250_ = v_x_3246_; -v_isShared_3251_ = v_isSharedCheck_3256_; -goto v_resetjp_3249_; +v___x_3257_ = v_x_3253_; +v_isShared_3258_ = v_isSharedCheck_3263_; +goto v_resetjp_3256_; } else { -lean_inc(v_a_3248_); -lean_dec(v_x_3246_); -v___x_3250_ = lean_box(0); -v_isShared_3251_ = v_isSharedCheck_3256_; -goto v_resetjp_3249_; +lean_inc(v_a_3255_); +lean_dec(v_x_3253_); +v___x_3257_ = lean_box(0); +v_isShared_3258_ = v_isSharedCheck_3263_; +goto v_resetjp_3256_; } -v_resetjp_3249_: +v_resetjp_3256_: { -lean_object* v___x_3253_; -if (v_isShared_3251_ == 0) +lean_object* v___x_3260_; +if (v_isShared_3258_ == 0) { -v___x_3253_ = v___x_3250_; -goto v_reusejp_3252_; +v___x_3260_ = v___x_3257_; +goto v_reusejp_3259_; } else { -lean_object* v_reuseFailAlloc_3255_; -v_reuseFailAlloc_3255_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3255_, 0, v_a_3248_); -v___x_3253_ = v_reuseFailAlloc_3255_; -goto v_reusejp_3252_; +lean_object* v_reuseFailAlloc_3262_; +v_reuseFailAlloc_3262_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3262_, 0, v_a_3255_); +v___x_3260_ = v_reuseFailAlloc_3262_; +goto v_reusejp_3259_; } -v_reusejp_3252_: +v_reusejp_3259_: { -lean_object* v___x_3254_; -v___x_3254_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3254_, 0, v___x_3253_); -return v___x_3254_; +lean_object* v___x_3261_; +v___x_3261_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3261_, 0, v___x_3260_); +return v___x_3261_; } } } else { -lean_object* v_a_3257_; lean_object* v___f_3258_; lean_object* v___x_3259_; lean_object* v___f_3260_; lean_object* v___x_3261_; uint8_t v___x_3262_; lean_object* v___x_3263_; -v_a_3257_ = lean_ctor_get(v_x_3246_, 0); -lean_inc_n(v_a_3257_, 2); -lean_dec_ref(v_x_3246_); -lean_inc_ref(v_chunk_3240_); -v___f_3258_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9___boxed), 5, 3); -lean_closure_set(v___f_3258_, 0, v_chunk_3240_); -lean_closure_set(v___f_3258_, 1, v_a_3257_); -lean_closure_set(v___f_3258_, 2, v___f_3241_); -lean_inc_ref(v_stream_3242_); -v___x_3259_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3242_, v___f_3258_); -v___f_3260_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10___boxed), 8, 6); -lean_closure_set(v___f_3260_, 0, v_a_3257_); -lean_closure_set(v___f_3260_, 1, v___f_3243_); -lean_closure_set(v___f_3260_, 2, v___f_3244_); -lean_closure_set(v___f_3260_, 3, v_stream_3242_); -lean_closure_set(v___f_3260_, 4, v_chunk_3240_); -lean_closure_set(v___f_3260_, 5, v___f_3245_); -v___x_3261_ = lean_unsigned_to_nat(0u); -v___x_3262_ = 0; -v___x_3263_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3261_, v___x_3262_, v___x_3259_, v___f_3260_); -return v___x_3263_; +lean_object* v_a_3264_; lean_object* v___f_3265_; lean_object* v___x_3266_; lean_object* v___f_3267_; lean_object* v___x_3268_; uint8_t v___x_3269_; lean_object* v___x_3270_; +v_a_3264_ = lean_ctor_get(v_x_3253_, 0); +lean_inc_n(v_a_3264_, 2); +lean_dec_ref(v_x_3253_); +lean_inc_ref(v_chunk_3247_); +v___f_3265_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__9___boxed), 5, 3); +lean_closure_set(v___f_3265_, 0, v_chunk_3247_); +lean_closure_set(v___f_3265_, 1, v_a_3264_); +lean_closure_set(v___f_3265_, 2, v___f_3248_); +lean_inc_ref(v_stream_3249_); +v___x_3266_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3249_, v___f_3265_); +v___f_3267_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__10___boxed), 8, 6); +lean_closure_set(v___f_3267_, 0, v_a_3264_); +lean_closure_set(v___f_3267_, 1, v___f_3250_); +lean_closure_set(v___f_3267_, 2, v___f_3251_); +lean_closure_set(v___f_3267_, 3, v_stream_3249_); +lean_closure_set(v___f_3267_, 4, v_chunk_3247_); +lean_closure_set(v___f_3267_, 5, v___f_3252_); +v___x_3268_ = lean_unsigned_to_nat(0u); +v___x_3269_ = 0; +v___x_3270_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3268_, v___x_3269_, v___x_3266_, v___f_3267_); +return v___x_3270_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11___boxed(lean_object* v_chunk_3264_, lean_object* v___f_3265_, lean_object* v_stream_3266_, lean_object* v___f_3267_, lean_object* v___f_3268_, lean_object* v___f_3269_, lean_object* v_x_3270_, lean_object* v___y_3271_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11___boxed(lean_object* v_chunk_3271_, lean_object* v___f_3272_, lean_object* v_stream_3273_, lean_object* v___f_3274_, lean_object* v___f_3275_, lean_object* v___f_3276_, lean_object* v_x_3277_, lean_object* v___y_3278_){ _start: { -lean_object* v_res_3272_; -v_res_3272_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11(v_chunk_3264_, v___f_3265_, v_stream_3266_, v___f_3267_, v___f_3268_, v___f_3269_, v_x_3270_); -return v_res_3272_; +lean_object* v_res_3279_; +v_res_3279_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11(v_chunk_3271_, v___f_3272_, v_stream_3273_, v___f_3274_, v___f_3275_, v___f_3276_, v_x_3277_); +return v_res_3279_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(lean_object* v_stream_3273_, lean_object* v_chunk_3274_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(lean_object* v_stream_3280_, lean_object* v_chunk_3281_){ _start: { -lean_object* v___x_3276_; lean_object* v___f_3277_; lean_object* v___f_3278_; lean_object* v___f_3279_; lean_object* v___f_3280_; lean_object* v___f_3281_; lean_object* v___x_3282_; lean_object* v___x_3283_; lean_object* v___x_3284_; uint8_t v___x_3285_; lean_object* v___x_3286_; -v___x_3276_ = lean_io_promise_new(); -v___f_3277_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__0)); -v___f_3278_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__1)); -v___f_3279_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__2)); -v___f_3280_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__3)); -v___f_3281_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11___boxed), 8, 6); -lean_closure_set(v___f_3281_, 0, v_chunk_3274_); -lean_closure_set(v___f_3281_, 1, v___f_3277_); -lean_closure_set(v___f_3281_, 2, v_stream_3273_); -lean_closure_set(v___f_3281_, 3, v___f_3280_); -lean_closure_set(v___f_3281_, 4, v___f_3279_); -lean_closure_set(v___f_3281_, 5, v___f_3278_); -v___x_3282_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3282_, 0, v___x_3276_); -v___x_3283_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3283_, 0, v___x_3282_); -v___x_3284_ = lean_unsigned_to_nat(0u); -v___x_3285_ = 0; -v___x_3286_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3284_, v___x_3285_, v___x_3283_, v___f_3281_); -return v___x_3286_; +lean_object* v___x_3283_; lean_object* v___f_3284_; lean_object* v___f_3285_; lean_object* v___f_3286_; lean_object* v___f_3287_; lean_object* v___f_3288_; lean_object* v___x_3289_; lean_object* v___x_3290_; lean_object* v___x_3291_; uint8_t v___x_3292_; lean_object* v___x_3293_; +v___x_3283_ = lean_io_promise_new(); +v___f_3284_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__0)); +v___f_3285_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__1)); +v___f_3286_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__2)); +v___f_3287_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___closed__3)); +v___f_3288_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___lam__11___boxed), 8, 6); +lean_closure_set(v___f_3288_, 0, v_chunk_3281_); +lean_closure_set(v___f_3288_, 1, v___f_3284_); +lean_closure_set(v___f_3288_, 2, v_stream_3280_); +lean_closure_set(v___f_3288_, 3, v___f_3287_); +lean_closure_set(v___f_3288_, 4, v___f_3286_); +lean_closure_set(v___f_3288_, 5, v___f_3285_); +v___x_3289_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3289_, 0, v___x_3283_); +v___x_3290_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3290_, 0, v___x_3289_); +v___x_3291_ = lean_unsigned_to_nat(0u); +v___x_3292_ = 0; +v___x_3293_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3291_, v___x_3292_, v___x_3290_, v___f_3288_); +return v___x_3293_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___boxed(lean_object* v_stream_3287_, lean_object* v_chunk_3288_, lean_object* v_a_3289_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27___boxed(lean_object* v_stream_3294_, lean_object* v_chunk_3295_, lean_object* v_a_3296_){ _start: { -lean_object* v_res_3290_; -v_res_3290_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3287_, v_chunk_3288_); -return v_res_3290_; +lean_object* v_res_3297_; +v_res_3297_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3294_, v_chunk_3295_); +return v_res_3297_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___lam__0(lean_object* v_stream_3291_, lean_object* v_x_3292_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___lam__0(lean_object* v_stream_3298_, lean_object* v_x_3299_){ _start: { -if (lean_obj_tag(v_x_3292_) == 0) +if (lean_obj_tag(v_x_3299_) == 0) { -lean_object* v_a_3294_; lean_object* v___x_3296_; uint8_t v_isShared_3297_; uint8_t v_isSharedCheck_3302_; -lean_dec_ref(v_stream_3291_); -v_a_3294_ = lean_ctor_get(v_x_3292_, 0); -v_isSharedCheck_3302_ = !lean_is_exclusive(v_x_3292_); -if (v_isSharedCheck_3302_ == 0) +lean_object* v_a_3301_; lean_object* v___x_3303_; uint8_t v_isShared_3304_; uint8_t v_isSharedCheck_3309_; +lean_dec_ref(v_stream_3298_); +v_a_3301_ = lean_ctor_get(v_x_3299_, 0); +v_isSharedCheck_3309_ = !lean_is_exclusive(v_x_3299_); +if (v_isSharedCheck_3309_ == 0) { -v___x_3296_ = v_x_3292_; -v_isShared_3297_ = v_isSharedCheck_3302_; -goto v_resetjp_3295_; +v___x_3303_ = v_x_3299_; +v_isShared_3304_ = v_isSharedCheck_3309_; +goto v_resetjp_3302_; } else { -lean_inc(v_a_3294_); -lean_dec(v_x_3292_); -v___x_3296_ = lean_box(0); -v_isShared_3297_ = v_isSharedCheck_3302_; -goto v_resetjp_3295_; +lean_inc(v_a_3301_); +lean_dec(v_x_3299_); +v___x_3303_ = lean_box(0); +v_isShared_3304_ = v_isSharedCheck_3309_; +goto v_resetjp_3302_; } -v_resetjp_3295_: +v_resetjp_3302_: { -lean_object* v___x_3299_; -if (v_isShared_3297_ == 0) +lean_object* v___x_3306_; +if (v_isShared_3304_ == 0) { -v___x_3299_ = v___x_3296_; -goto v_reusejp_3298_; +v___x_3306_ = v___x_3303_; +goto v_reusejp_3305_; } else { -lean_object* v_reuseFailAlloc_3301_; -v_reuseFailAlloc_3301_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3301_, 0, v_a_3294_); -v___x_3299_ = v_reuseFailAlloc_3301_; -goto v_reusejp_3298_; +lean_object* v_reuseFailAlloc_3308_; +v_reuseFailAlloc_3308_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3308_, 0, v_a_3301_); +v___x_3306_ = v_reuseFailAlloc_3308_; +goto v_reusejp_3305_; } -v_reusejp_3298_: +v_reusejp_3305_: { -lean_object* v___x_3300_; -v___x_3300_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3300_, 0, v___x_3299_); -return v___x_3300_; +lean_object* v___x_3307_; +v___x_3307_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3307_, 0, v___x_3306_); +return v___x_3307_; } } } else { -lean_object* v_a_3303_; -v_a_3303_ = lean_ctor_get(v_x_3292_, 0); -lean_inc(v_a_3303_); -lean_dec_ref(v_x_3292_); -if (lean_obj_tag(v_a_3303_) == 0) +lean_object* v_a_3310_; +v_a_3310_ = lean_ctor_get(v_x_3299_, 0); +lean_inc(v_a_3310_); +lean_dec_ref(v_x_3299_); +if (lean_obj_tag(v_a_3310_) == 0) { -lean_object* v_a_3304_; lean_object* v___x_3306_; uint8_t v_isShared_3307_; uint8_t v_isSharedCheck_3312_; -lean_dec_ref(v_stream_3291_); -v_a_3304_ = lean_ctor_get(v_a_3303_, 0); -v_isSharedCheck_3312_ = !lean_is_exclusive(v_a_3303_); -if (v_isSharedCheck_3312_ == 0) +lean_object* v_a_3311_; lean_object* v___x_3313_; uint8_t v_isShared_3314_; uint8_t v_isSharedCheck_3319_; +lean_dec_ref(v_stream_3298_); +v_a_3311_ = lean_ctor_get(v_a_3310_, 0); +v_isSharedCheck_3319_ = !lean_is_exclusive(v_a_3310_); +if (v_isSharedCheck_3319_ == 0) { -v___x_3306_ = v_a_3303_; -v_isShared_3307_ = v_isSharedCheck_3312_; -goto v_resetjp_3305_; +v___x_3313_ = v_a_3310_; +v_isShared_3314_ = v_isSharedCheck_3319_; +goto v_resetjp_3312_; } else { -lean_inc(v_a_3304_); -lean_dec(v_a_3303_); -v___x_3306_ = lean_box(0); -v_isShared_3307_ = v_isSharedCheck_3312_; -goto v_resetjp_3305_; +lean_inc(v_a_3311_); +lean_dec(v_a_3310_); +v___x_3313_ = lean_box(0); +v_isShared_3314_ = v_isSharedCheck_3319_; +goto v_resetjp_3312_; } -v_resetjp_3305_: +v_resetjp_3312_: { -lean_object* v___x_3309_; -if (v_isShared_3307_ == 0) +lean_object* v___x_3316_; +if (v_isShared_3314_ == 0) { -v___x_3309_ = v___x_3306_; -goto v_reusejp_3308_; +v___x_3316_ = v___x_3313_; +goto v_reusejp_3315_; } else { -lean_object* v_reuseFailAlloc_3311_; -v_reuseFailAlloc_3311_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3311_, 0, v_a_3304_); -v___x_3309_ = v_reuseFailAlloc_3311_; -goto v_reusejp_3308_; +lean_object* v_reuseFailAlloc_3318_; +v_reuseFailAlloc_3318_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3318_, 0, v_a_3311_); +v___x_3316_ = v_reuseFailAlloc_3318_; +goto v_reusejp_3315_; } -v_reusejp_3308_: +v_reusejp_3315_: { -lean_object* v___x_3310_; -v___x_3310_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3310_, 0, v___x_3309_); -return v___x_3310_; +lean_object* v___x_3317_; +v___x_3317_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3317_, 0, v___x_3316_); +return v___x_3317_; } } } else { -lean_object* v_a_3313_; -v_a_3313_ = lean_ctor_get(v_a_3303_, 0); -lean_inc(v_a_3313_); -lean_dec_ref(v_a_3303_); -if (lean_obj_tag(v_a_3313_) == 0) +lean_object* v_a_3320_; +v_a_3320_ = lean_ctor_get(v_a_3310_, 0); +lean_inc(v_a_3320_); +lean_dec_ref(v_a_3310_); +if (lean_obj_tag(v_a_3320_) == 0) { -lean_object* v___x_3314_; -lean_dec_ref(v_stream_3291_); -v___x_3314_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_3314_; +lean_object* v___x_3321_; +lean_dec_ref(v_stream_3298_); +v___x_3321_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_3321_; } else { -lean_object* v_val_3315_; lean_object* v_data_3316_; lean_object* v_extensions_3317_; uint8_t v___x_3318_; -v_val_3315_ = lean_ctor_get(v_a_3313_, 0); -lean_inc(v_val_3315_); -lean_dec_ref(v_a_3313_); -v_data_3316_ = lean_ctor_get(v_val_3315_, 0); -v_extensions_3317_ = lean_ctor_get(v_val_3315_, 1); -v___x_3318_ = l_ByteArray_isEmpty(v_data_3316_); -if (v___x_3318_ == 0) +lean_object* v_val_3322_; lean_object* v_data_3323_; lean_object* v_extensions_3324_; uint8_t v___x_3325_; +v_val_3322_ = lean_ctor_get(v_a_3320_, 0); +lean_inc(v_val_3322_); +lean_dec_ref(v_a_3320_); +v_data_3323_ = lean_ctor_get(v_val_3322_, 0); +v_extensions_3324_ = lean_ctor_get(v_val_3322_, 1); +v___x_3325_ = l_ByteArray_isEmpty(v_data_3323_); +if (v___x_3325_ == 0) { -lean_object* v___x_3319_; -v___x_3319_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3291_, v_val_3315_); -return v___x_3319_; +lean_object* v___x_3326_; +v___x_3326_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3298_, v_val_3322_); +return v___x_3326_; } else { -lean_object* v___x_3320_; lean_object* v___x_3321_; uint8_t v___x_3322_; -v___x_3320_ = lean_array_get_size(v_extensions_3317_); -v___x_3321_ = lean_unsigned_to_nat(0u); -v___x_3322_ = lean_nat_dec_eq(v___x_3320_, v___x_3321_); -if (v___x_3322_ == 0) +lean_object* v___x_3327_; lean_object* v___x_3328_; uint8_t v___x_3329_; +v___x_3327_ = lean_array_get_size(v_extensions_3324_); +v___x_3328_ = lean_unsigned_to_nat(0u); +v___x_3329_ = lean_nat_dec_eq(v___x_3327_, v___x_3328_); +if (v___x_3329_ == 0) { -lean_object* v___x_3323_; -v___x_3323_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3291_, v_val_3315_); -return v___x_3323_; +lean_object* v___x_3330_; +v___x_3330_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_send_x27(v_stream_3298_, v_val_3322_); +return v___x_3330_; } else { -lean_object* v___x_3324_; -lean_dec(v_val_3315_); -lean_dec_ref(v_stream_3291_); -v___x_3324_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_3324_; +lean_object* v___x_3331_; +lean_dec(v_val_3322_); +lean_dec_ref(v_stream_3298_); +v___x_3331_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_3331_; } } } @@ -9910,2263 +9931,2263 @@ return v___x_3324_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___lam__0___boxed(lean_object* v_stream_3325_, lean_object* v_x_3326_, lean_object* v___y_3327_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___lam__0___boxed(lean_object* v_stream_3332_, lean_object* v_x_3333_, lean_object* v___y_3334_){ _start: { -lean_object* v_res_3328_; -v_res_3328_ = l_Std_Http_Body_Stream_send___lam__0(v_stream_3325_, v_x_3326_); -return v_res_3328_; +lean_object* v_res_3335_; +v_res_3335_ = l_Std_Http_Body_Stream_send___lam__0(v_stream_3332_, v_x_3333_); +return v_res_3335_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send(lean_object* v_stream_3329_, lean_object* v_chunk_3330_, uint8_t v_incomplete_3331_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send(lean_object* v_stream_3336_, lean_object* v_chunk_3337_, uint8_t v_incomplete_3338_){ _start: { -lean_object* v___x_3333_; lean_object* v___f_3334_; lean_object* v___x_3335_; lean_object* v___x_3336_; lean_object* v___x_3337_; uint8_t v___x_3338_; lean_object* v___x_3339_; -lean_inc_ref(v_stream_3329_); -v___x_3333_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(v_stream_3329_, v_chunk_3330_, v_incomplete_3331_); -v___f_3334_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_send___lam__0___boxed), 3, 1); -lean_closure_set(v___f_3334_, 0, v_stream_3329_); -v___x_3335_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3335_, 0, v___x_3333_); -v___x_3336_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3336_, 0, v___x_3335_); -v___x_3337_ = lean_unsigned_to_nat(0u); -v___x_3338_ = 0; -v___x_3339_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3337_, v___x_3338_, v___x_3336_, v___f_3334_); -return v___x_3339_; +lean_object* v___x_3340_; lean_object* v___f_3341_; lean_object* v___x_3342_; lean_object* v___x_3343_; lean_object* v___x_3344_; uint8_t v___x_3345_; lean_object* v___x_3346_; +lean_inc_ref(v_stream_3336_); +v___x_3340_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_collapseForSend(v_stream_3336_, v_chunk_3337_, v_incomplete_3338_); +v___f_3341_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_send___lam__0___boxed), 3, 1); +lean_closure_set(v___f_3341_, 0, v_stream_3336_); +v___x_3342_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3342_, 0, v___x_3340_); +v___x_3343_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3343_, 0, v___x_3342_); +v___x_3344_ = lean_unsigned_to_nat(0u); +v___x_3345_ = 0; +v___x_3346_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3344_, v___x_3345_, v___x_3343_, v___f_3341_); +return v___x_3346_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___boxed(lean_object* v_stream_3340_, lean_object* v_chunk_3341_, lean_object* v_incomplete_3342_, lean_object* v_a_3343_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_send___boxed(lean_object* v_stream_3347_, lean_object* v_chunk_3348_, lean_object* v_incomplete_3349_, lean_object* v_a_3350_){ _start: { -uint8_t v_incomplete_boxed_3344_; lean_object* v_res_3345_; -v_incomplete_boxed_3344_ = lean_unbox(v_incomplete_3342_); -v_res_3345_ = l_Std_Http_Body_Stream_send(v_stream_3340_, v_chunk_3341_, v_incomplete_boxed_3344_); -return v_res_3345_; +uint8_t v_incomplete_boxed_3351_; lean_object* v_res_3352_; +v_incomplete_boxed_3351_ = lean_unbox(v_incomplete_3349_); +v_res_3352_ = l_Std_Http_Body_Stream_send(v_stream_3347_, v_chunk_3348_, v_incomplete_boxed_3351_); +return v_res_3352_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0(lean_object* v_x_3346_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0(lean_object* v_x_3353_){ _start: { -uint8_t v___y_3349_; -if (lean_obj_tag(v_x_3346_) == 0) +uint8_t v___y_3356_; +if (lean_obj_tag(v_x_3353_) == 0) { -lean_object* v_a_3353_; lean_object* v___x_3355_; uint8_t v_isShared_3356_; uint8_t v_isSharedCheck_3361_; -v_a_3353_ = lean_ctor_get(v_x_3346_, 0); -v_isSharedCheck_3361_ = !lean_is_exclusive(v_x_3346_); -if (v_isSharedCheck_3361_ == 0) +lean_object* v_a_3360_; lean_object* v___x_3362_; uint8_t v_isShared_3363_; uint8_t v_isSharedCheck_3368_; +v_a_3360_ = lean_ctor_get(v_x_3353_, 0); +v_isSharedCheck_3368_ = !lean_is_exclusive(v_x_3353_); +if (v_isSharedCheck_3368_ == 0) { -v___x_3355_ = v_x_3346_; -v_isShared_3356_ = v_isSharedCheck_3361_; -goto v_resetjp_3354_; +v___x_3362_ = v_x_3353_; +v_isShared_3363_ = v_isSharedCheck_3368_; +goto v_resetjp_3361_; } else { -lean_inc(v_a_3353_); -lean_dec(v_x_3346_); -v___x_3355_ = lean_box(0); -v_isShared_3356_ = v_isSharedCheck_3361_; -goto v_resetjp_3354_; +lean_inc(v_a_3360_); +lean_dec(v_x_3353_); +v___x_3362_ = lean_box(0); +v_isShared_3363_ = v_isSharedCheck_3368_; +goto v_resetjp_3361_; } -v_resetjp_3354_: +v_resetjp_3361_: { -lean_object* v___x_3358_; -if (v_isShared_3356_ == 0) +lean_object* v___x_3365_; +if (v_isShared_3363_ == 0) { -v___x_3358_ = v___x_3355_; -goto v_reusejp_3357_; +v___x_3365_ = v___x_3362_; +goto v_reusejp_3364_; } else { -lean_object* v_reuseFailAlloc_3360_; -v_reuseFailAlloc_3360_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3360_, 0, v_a_3353_); -v___x_3358_ = v_reuseFailAlloc_3360_; -goto v_reusejp_3357_; +lean_object* v_reuseFailAlloc_3367_; +v_reuseFailAlloc_3367_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3367_, 0, v_a_3360_); +v___x_3365_ = v_reuseFailAlloc_3367_; +goto v_reusejp_3364_; } -v_reusejp_3357_: +v_reusejp_3364_: { -lean_object* v___x_3359_; +lean_object* v___x_3366_; +v___x_3366_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3366_, 0, v___x_3365_); +return v___x_3366_; +} +} +} +else +{ +lean_object* v_a_3369_; lean_object* v_pendingConsumer_3370_; +v_a_3369_ = lean_ctor_get(v_x_3353_, 0); +lean_inc(v_a_3369_); +lean_dec_ref(v_x_3353_); +v_pendingConsumer_3370_ = lean_ctor_get(v_a_3369_, 1); +lean_inc(v_pendingConsumer_3370_); +lean_dec(v_a_3369_); +if (lean_obj_tag(v_pendingConsumer_3370_) == 0) +{ +uint8_t v___x_3371_; +v___x_3371_ = 0; +v___y_3356_ = v___x_3371_; +goto v___jp_3355_; +} +else +{ +uint8_t v___x_3372_; +lean_dec_ref(v_pendingConsumer_3370_); +v___x_3372_ = 1; +v___y_3356_ = v___x_3372_; +goto v___jp_3355_; +} +} +v___jp_3355_: +{ +lean_object* v___x_3357_; lean_object* v___x_3358_; lean_object* v___x_3359_; +v___x_3357_ = lean_box(v___y_3356_); +v___x_3358_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3358_, 0, v___x_3357_); v___x_3359_ = lean_alloc_ctor(0, 1, 0); lean_ctor_set(v___x_3359_, 0, v___x_3358_); return v___x_3359_; } } } -else +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0___boxed(lean_object* v_x_3373_, lean_object* v___y_3374_){ +_start: { -lean_object* v_a_3362_; lean_object* v_pendingConsumer_3363_; -v_a_3362_ = lean_ctor_get(v_x_3346_, 0); -lean_inc(v_a_3362_); -lean_dec_ref(v_x_3346_); -v_pendingConsumer_3363_ = lean_ctor_get(v_a_3362_, 1); -lean_inc(v_pendingConsumer_3363_); -lean_dec(v_a_3362_); -if (lean_obj_tag(v_pendingConsumer_3363_) == 0) +lean_object* v_res_3375_; +v_res_3375_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0(v_x_3373_); +return v_res_3375_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(lean_object* v_a_3377_){ +_start: { -uint8_t v___x_3364_; -v___x_3364_ = 0; -v___y_3349_ = v___x_3364_; -goto v___jp_3348_; +lean_object* v___x_3379_; lean_object* v___f_3380_; lean_object* v___x_3381_; lean_object* v___x_3382_; lean_object* v___x_3383_; uint8_t v___x_3384_; lean_object* v___x_3385_; +v___x_3379_ = lean_st_ref_get(v_a_3377_); +v___f_3380_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___closed__0)); +v___x_3381_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3381_, 0, v___x_3379_); +v___x_3382_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3382_, 0, v___x_3381_); +v___x_3383_ = lean_unsigned_to_nat(0u); +v___x_3384_ = 0; +v___x_3385_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3383_, v___x_3384_, v___x_3382_, v___f_3380_); +return v___x_3385_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___boxed(lean_object* v_a_3386_, lean_object* v___y_3387_){ +_start: +{ +lean_object* v_res_3388_; +v_res_3388_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(v_a_3386_); +lean_dec(v_a_3386_); +return v_res_3388_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__0(lean_object* v___y_3389_, lean_object* v_x_3390_){ +_start: +{ +if (lean_obj_tag(v_x_3390_) == 0) +{ +lean_object* v_a_3392_; lean_object* v___x_3394_; uint8_t v_isShared_3395_; uint8_t v_isSharedCheck_3400_; +v_a_3392_ = lean_ctor_get(v_x_3390_, 0); +v_isSharedCheck_3400_ = !lean_is_exclusive(v_x_3390_); +if (v_isSharedCheck_3400_ == 0) +{ +v___x_3394_ = v_x_3390_; +v_isShared_3395_ = v_isSharedCheck_3400_; +goto v_resetjp_3393_; } else { -uint8_t v___x_3365_; -lean_dec_ref(v_pendingConsumer_3363_); -v___x_3365_ = 1; -v___y_3349_ = v___x_3365_; -goto v___jp_3348_; +lean_inc(v_a_3392_); +lean_dec(v_x_3390_); +v___x_3394_ = lean_box(0); +v_isShared_3395_ = v_isSharedCheck_3400_; +goto v_resetjp_3393_; } -} -v___jp_3348_: +v_resetjp_3393_: { -lean_object* v___x_3350_; lean_object* v___x_3351_; lean_object* v___x_3352_; -v___x_3350_ = lean_box(v___y_3349_); -v___x_3351_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3351_, 0, v___x_3350_); -v___x_3352_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3352_, 0, v___x_3351_); -return v___x_3352_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0___boxed(lean_object* v_x_3366_, lean_object* v___y_3367_){ -_start: +lean_object* v___x_3397_; +if (v_isShared_3395_ == 0) { -lean_object* v_res_3368_; -v_res_3368_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___lam__0(v_x_3366_); -return v_res_3368_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(lean_object* v_a_3370_){ -_start: -{ -lean_object* v___x_3372_; lean_object* v___f_3373_; lean_object* v___x_3374_; lean_object* v___x_3375_; lean_object* v___x_3376_; uint8_t v___x_3377_; lean_object* v___x_3378_; -v___x_3372_ = lean_st_ref_get(v_a_3370_); -v___f_3373_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___closed__0)); -v___x_3374_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3374_, 0, v___x_3372_); -v___x_3375_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3375_, 0, v___x_3374_); -v___x_3376_ = lean_unsigned_to_nat(0u); -v___x_3377_ = 0; -v___x_3378_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3376_, v___x_3377_, v___x_3375_, v___f_3373_); -return v___x_3378_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0___boxed(lean_object* v_a_3379_, lean_object* v___y_3380_){ -_start: -{ -lean_object* v_res_3381_; -v_res_3381_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(v_a_3379_); -lean_dec(v_a_3379_); -return v_res_3381_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__0(lean_object* v___y_3382_, lean_object* v_x_3383_){ -_start: -{ -if (lean_obj_tag(v_x_3383_) == 0) -{ -lean_object* v_a_3385_; lean_object* v___x_3387_; uint8_t v_isShared_3388_; uint8_t v_isSharedCheck_3393_; -v_a_3385_ = lean_ctor_get(v_x_3383_, 0); -v_isSharedCheck_3393_ = !lean_is_exclusive(v_x_3383_); -if (v_isSharedCheck_3393_ == 0) -{ -v___x_3387_ = v_x_3383_; -v_isShared_3388_ = v_isSharedCheck_3393_; -goto v_resetjp_3386_; +v___x_3397_ = v___x_3394_; +goto v_reusejp_3396_; } else { -lean_inc(v_a_3385_); -lean_dec(v_x_3383_); -v___x_3387_ = lean_box(0); -v_isShared_3388_ = v_isSharedCheck_3393_; -goto v_resetjp_3386_; +lean_object* v_reuseFailAlloc_3399_; +v_reuseFailAlloc_3399_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3399_, 0, v_a_3392_); +v___x_3397_ = v_reuseFailAlloc_3399_; +goto v_reusejp_3396_; } -v_resetjp_3386_: +v_reusejp_3396_: { -lean_object* v___x_3390_; -if (v_isShared_3388_ == 0) -{ -v___x_3390_ = v___x_3387_; -goto v_reusejp_3389_; -} -else -{ -lean_object* v_reuseFailAlloc_3392_; -v_reuseFailAlloc_3392_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3392_, 0, v_a_3385_); -v___x_3390_ = v_reuseFailAlloc_3392_; -goto v_reusejp_3389_; -} -v_reusejp_3389_: -{ -lean_object* v___x_3391_; -v___x_3391_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3391_, 0, v___x_3390_); -return v___x_3391_; +lean_object* v___x_3398_; +v___x_3398_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3398_, 0, v___x_3397_); +return v___x_3398_; } } } else { -lean_object* v___x_3394_; -lean_dec_ref(v_x_3383_); -v___x_3394_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(v___y_3382_); -return v___x_3394_; +lean_object* v___x_3401_; +lean_dec_ref(v_x_3390_); +v___x_3401_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_hasInterest_x27___at___00Std_Http_Body_Stream_hasInterest_spec__0(v___y_3389_); +return v___x_3401_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__0___boxed(lean_object* v___y_3395_, lean_object* v_x_3396_, lean_object* v___y_3397_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__0___boxed(lean_object* v___y_3402_, lean_object* v_x_3403_, lean_object* v___y_3404_){ _start: { -lean_object* v_res_3398_; -v_res_3398_ = l_Std_Http_Body_Stream_hasInterest___lam__0(v___y_3395_, v_x_3396_); -lean_dec(v___y_3395_); -return v_res_3398_; +lean_object* v_res_3405_; +v_res_3405_ = l_Std_Http_Body_Stream_hasInterest___lam__0(v___y_3402_, v_x_3403_); +lean_dec(v___y_3402_); +return v_res_3405_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__1(lean_object* v___y_3399_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__1(lean_object* v___y_3406_){ _start: { -lean_object* v___x_3401_; lean_object* v___f_3402_; lean_object* v___x_3403_; uint8_t v___x_3404_; lean_object* v___x_3405_; -v___x_3401_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3399_); -lean_inc(v___y_3399_); -v___f_3402_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_hasInterest___lam__0___boxed), 3, 1); -lean_closure_set(v___f_3402_, 0, v___y_3399_); -v___x_3403_ = lean_unsigned_to_nat(0u); -v___x_3404_ = 0; -v___x_3405_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3403_, v___x_3404_, v___x_3401_, v___f_3402_); -return v___x_3405_; +lean_object* v___x_3408_; lean_object* v___f_3409_; lean_object* v___x_3410_; uint8_t v___x_3411_; lean_object* v___x_3412_; +v___x_3408_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3406_); +lean_inc(v___y_3406_); +v___f_3409_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_hasInterest___lam__0___boxed), 3, 1); +lean_closure_set(v___f_3409_, 0, v___y_3406_); +v___x_3410_ = lean_unsigned_to_nat(0u); +v___x_3411_ = 0; +v___x_3412_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3410_, v___x_3411_, v___x_3408_, v___f_3409_); +return v___x_3412_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__1___boxed(lean_object* v___y_3406_, lean_object* v___y_3407_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___lam__1___boxed(lean_object* v___y_3413_, lean_object* v___y_3414_){ _start: { -lean_object* v_res_3408_; -v_res_3408_ = l_Std_Http_Body_Stream_hasInterest___lam__1(v___y_3406_); -lean_dec(v___y_3406_); -return v_res_3408_; +lean_object* v_res_3415_; +v_res_3415_ = l_Std_Http_Body_Stream_hasInterest___lam__1(v___y_3413_); +lean_dec(v___y_3413_); +return v_res_3415_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest(lean_object* v_stream_3410_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest(lean_object* v_stream_3417_){ _start: { -lean_object* v___f_3412_; lean_object* v___x_3413_; -v___f_3412_ = ((lean_object*)(l_Std_Http_Body_Stream_hasInterest___closed__0)); -v___x_3413_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3410_, v___f_3412_); -return v___x_3413_; +lean_object* v___f_3419_; lean_object* v___x_3420_; +v___f_3419_ = ((lean_object*)(l_Std_Http_Body_Stream_hasInterest___closed__0)); +v___x_3420_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3417_, v___f_3419_); +return v___x_3420_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___boxed(lean_object* v_stream_3414_, lean_object* v_a_3415_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_hasInterest___boxed(lean_object* v_stream_3421_, lean_object* v_a_3422_){ _start: { -lean_object* v_res_3416_; -v_res_3416_ = l_Std_Http_Body_Stream_hasInterest(v_stream_3414_); -return v_res_3416_; +lean_object* v_res_3423_; +v_res_3423_ = l_Std_Http_Body_Stream_hasInterest(v_stream_3421_); +return v_res_3423_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0(lean_object* v_lose_3417_, lean_object* v___y_3418_, uint8_t v___x_3419_, lean_object* v_promise_3420_, lean_object* v_x_3421_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0(lean_object* v_lose_3424_, lean_object* v___y_3425_, uint8_t v___x_3426_, lean_object* v_promise_3427_, lean_object* v_x_3428_){ _start: { -if (lean_obj_tag(v_x_3421_) == 0) +if (lean_obj_tag(v_x_3428_) == 0) { -lean_object* v_a_3423_; lean_object* v___x_3425_; uint8_t v_isShared_3426_; uint8_t v_isSharedCheck_3431_; -lean_dec_ref(v_lose_3417_); -v_a_3423_ = lean_ctor_get(v_x_3421_, 0); -v_isSharedCheck_3431_ = !lean_is_exclusive(v_x_3421_); -if (v_isSharedCheck_3431_ == 0) +lean_object* v_a_3430_; lean_object* v___x_3432_; uint8_t v_isShared_3433_; uint8_t v_isSharedCheck_3438_; +lean_dec_ref(v_lose_3424_); +v_a_3430_ = lean_ctor_get(v_x_3428_, 0); +v_isSharedCheck_3438_ = !lean_is_exclusive(v_x_3428_); +if (v_isSharedCheck_3438_ == 0) { -v___x_3425_ = v_x_3421_; -v_isShared_3426_ = v_isSharedCheck_3431_; -goto v_resetjp_3424_; +v___x_3432_ = v_x_3428_; +v_isShared_3433_ = v_isSharedCheck_3438_; +goto v_resetjp_3431_; } else { -lean_inc(v_a_3423_); -lean_dec(v_x_3421_); -v___x_3425_ = lean_box(0); -v_isShared_3426_ = v_isSharedCheck_3431_; -goto v_resetjp_3424_; +lean_inc(v_a_3430_); +lean_dec(v_x_3428_); +v___x_3432_ = lean_box(0); +v_isShared_3433_ = v_isSharedCheck_3438_; +goto v_resetjp_3431_; } -v_resetjp_3424_: +v_resetjp_3431_: { -lean_object* v___x_3428_; -if (v_isShared_3426_ == 0) +lean_object* v___x_3435_; +if (v_isShared_3433_ == 0) { -v___x_3428_ = v___x_3425_; -goto v_reusejp_3427_; +v___x_3435_ = v___x_3432_; +goto v_reusejp_3434_; } else { -lean_object* v_reuseFailAlloc_3430_; -v_reuseFailAlloc_3430_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3430_, 0, v_a_3423_); -v___x_3428_ = v_reuseFailAlloc_3430_; -goto v_reusejp_3427_; +lean_object* v_reuseFailAlloc_3437_; +v_reuseFailAlloc_3437_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3437_, 0, v_a_3430_); +v___x_3435_ = v_reuseFailAlloc_3437_; +goto v_reusejp_3434_; } -v_reusejp_3427_: +v_reusejp_3434_: { -lean_object* v___x_3429_; -v___x_3429_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3429_, 0, v___x_3428_); -return v___x_3429_; +lean_object* v___x_3436_; +v___x_3436_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3436_, 0, v___x_3435_); +return v___x_3436_; } } } else { -lean_object* v_a_3432_; lean_object* v___x_3434_; uint8_t v_isShared_3435_; uint8_t v_isSharedCheck_3445_; -v_a_3432_ = lean_ctor_get(v_x_3421_, 0); -v_isSharedCheck_3445_ = !lean_is_exclusive(v_x_3421_); -if (v_isSharedCheck_3445_ == 0) +lean_object* v_a_3439_; lean_object* v___x_3441_; uint8_t v_isShared_3442_; uint8_t v_isSharedCheck_3452_; +v_a_3439_ = lean_ctor_get(v_x_3428_, 0); +v_isSharedCheck_3452_ = !lean_is_exclusive(v_x_3428_); +if (v_isSharedCheck_3452_ == 0) { -v___x_3434_ = v_x_3421_; -v_isShared_3435_ = v_isSharedCheck_3445_; -goto v_resetjp_3433_; +v___x_3441_ = v_x_3428_; +v_isShared_3442_ = v_isSharedCheck_3452_; +goto v_resetjp_3440_; } else { -lean_inc(v_a_3432_); -lean_dec(v_x_3421_); -v___x_3434_ = lean_box(0); -v_isShared_3435_ = v_isSharedCheck_3445_; -goto v_resetjp_3433_; +lean_inc(v_a_3439_); +lean_dec(v_x_3428_); +v___x_3441_ = lean_box(0); +v_isShared_3442_ = v_isSharedCheck_3452_; +goto v_resetjp_3440_; } -v_resetjp_3433_: +v_resetjp_3440_: { -uint8_t v___x_3436_; -v___x_3436_ = lean_unbox(v_a_3432_); -lean_dec(v_a_3432_); -if (v___x_3436_ == 0) +uint8_t v___x_3443_; +v___x_3443_ = lean_unbox(v_a_3439_); +lean_dec(v_a_3439_); +if (v___x_3443_ == 0) { -lean_object* v___x_3437_; -lean_del_object(v___x_3434_); -lean_inc(v___y_3418_); -v___x_3437_ = lean_apply_2(v_lose_3417_, v___y_3418_, lean_box(0)); -return v___x_3437_; +lean_object* v___x_3444_; +lean_del_object(v___x_3441_); +lean_inc(v___y_3425_); +v___x_3444_ = lean_apply_2(v_lose_3424_, v___y_3425_, lean_box(0)); +return v___x_3444_; } else { -lean_object* v___x_3438_; lean_object* v___x_3440_; -lean_dec_ref(v_lose_3417_); -v___x_3438_ = lean_box(v___x_3419_); -if (v_isShared_3435_ == 0) +lean_object* v___x_3445_; lean_object* v___x_3447_; +lean_dec_ref(v_lose_3424_); +v___x_3445_ = lean_box(v___x_3426_); +if (v_isShared_3442_ == 0) { -lean_ctor_set(v___x_3434_, 0, v___x_3438_); -v___x_3440_ = v___x_3434_; -goto v_reusejp_3439_; +lean_ctor_set(v___x_3441_, 0, v___x_3445_); +v___x_3447_ = v___x_3441_; +goto v_reusejp_3446_; } else { -lean_object* v_reuseFailAlloc_3444_; -v_reuseFailAlloc_3444_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3444_, 0, v___x_3438_); -v___x_3440_ = v_reuseFailAlloc_3444_; -goto v_reusejp_3439_; +lean_object* v_reuseFailAlloc_3451_; +v_reuseFailAlloc_3451_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3451_, 0, v___x_3445_); +v___x_3447_ = v_reuseFailAlloc_3451_; +goto v_reusejp_3446_; } -v_reusejp_3439_: +v_reusejp_3446_: { -lean_object* v___x_3441_; lean_object* v___x_3442_; lean_object* v___x_3443_; -v___x_3441_ = lean_io_promise_resolve(v___x_3440_, v_promise_3420_); -v___x_3442_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3442_, 0, v___x_3441_); -v___x_3443_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3443_, 0, v___x_3442_); -return v___x_3443_; +lean_object* v___x_3448_; lean_object* v___x_3449_; lean_object* v___x_3450_; +v___x_3448_ = lean_io_promise_resolve(v___x_3447_, v_promise_3427_); +v___x_3449_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3449_, 0, v___x_3448_); +v___x_3450_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3450_, 0, v___x_3449_); +return v___x_3450_; } } } } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed(lean_object* v_lose_3446_, lean_object* v___y_3447_, lean_object* v___x_3448_, lean_object* v_promise_3449_, lean_object* v_x_3450_, lean_object* v___y_3451_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed(lean_object* v_lose_3453_, lean_object* v___y_3454_, lean_object* v___x_3455_, lean_object* v_promise_3456_, lean_object* v_x_3457_, lean_object* v___y_3458_){ _start: { -uint8_t v___x_4255__boxed_3452_; lean_object* v_res_3453_; -v___x_4255__boxed_3452_ = lean_unbox(v___x_3448_); -v_res_3453_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0(v_lose_3446_, v___y_3447_, v___x_4255__boxed_3452_, v_promise_3449_, v_x_3450_); -lean_dec(v_promise_3449_); -lean_dec(v___y_3447_); -return v_res_3453_; +uint8_t v___x_4255__boxed_3459_; lean_object* v_res_3460_; +v___x_4255__boxed_3459_ = lean_unbox(v___x_3455_); +v_res_3460_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0(v_lose_3453_, v___y_3454_, v___x_4255__boxed_3459_, v_promise_3456_, v_x_3457_); +lean_dec(v_promise_3456_); +lean_dec(v___y_3454_); +return v_res_3460_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(lean_object* v_w_3454_, lean_object* v_lose_3455_, lean_object* v___y_3456_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(lean_object* v_w_3461_, lean_object* v_lose_3462_, lean_object* v___y_3463_){ _start: { -lean_object* v_finished_3458_; lean_object* v_promise_3459_; lean_object* v___x_3460_; uint8_t v___x_3461_; lean_object* v___x_3462_; lean_object* v___f_3463_; uint8_t v___y_3465_; uint8_t v___x_3474_; -v_finished_3458_ = lean_ctor_get(v_w_3454_, 0); -lean_inc(v_finished_3458_); -v_promise_3459_ = lean_ctor_get(v_w_3454_, 1); -lean_inc(v_promise_3459_); -lean_dec_ref(v_w_3454_); -v___x_3460_ = lean_st_ref_take(v_finished_3458_); -v___x_3461_ = 0; -v___x_3462_ = lean_box(v___x_3461_); -lean_inc(v___y_3456_); -v___f_3463_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed), 6, 4); -lean_closure_set(v___f_3463_, 0, v_lose_3455_); -lean_closure_set(v___f_3463_, 1, v___y_3456_); -lean_closure_set(v___f_3463_, 2, v___x_3462_); -lean_closure_set(v___f_3463_, 3, v_promise_3459_); -v___x_3474_ = lean_unbox(v___x_3460_); -lean_dec(v___x_3460_); -if (v___x_3474_ == 0) +lean_object* v_finished_3465_; lean_object* v_promise_3466_; lean_object* v___x_3467_; uint8_t v___x_3468_; lean_object* v___x_3469_; lean_object* v___f_3470_; uint8_t v___y_3472_; uint8_t v___x_3481_; +v_finished_3465_ = lean_ctor_get(v_w_3461_, 0); +lean_inc(v_finished_3465_); +v_promise_3466_ = lean_ctor_get(v_w_3461_, 1); +lean_inc(v_promise_3466_); +lean_dec_ref(v_w_3461_); +v___x_3467_ = lean_st_ref_take(v_finished_3465_); +v___x_3468_ = 0; +v___x_3469_ = lean_box(v___x_3468_); +lean_inc(v___y_3463_); +v___f_3470_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed), 6, 4); +lean_closure_set(v___f_3470_, 0, v_lose_3462_); +lean_closure_set(v___f_3470_, 1, v___y_3463_); +lean_closure_set(v___f_3470_, 2, v___x_3469_); +lean_closure_set(v___f_3470_, 3, v_promise_3466_); +v___x_3481_ = lean_unbox(v___x_3467_); +lean_dec(v___x_3467_); +if (v___x_3481_ == 0) { -uint8_t v___x_3475_; -v___x_3475_ = 1; -v___y_3465_ = v___x_3475_; -goto v___jp_3464_; +uint8_t v___x_3482_; +v___x_3482_ = 1; +v___y_3472_ = v___x_3482_; +goto v___jp_3471_; } else { -v___y_3465_ = v___x_3461_; -goto v___jp_3464_; +v___y_3472_ = v___x_3468_; +goto v___jp_3471_; } -v___jp_3464_: +v___jp_3471_: { -uint8_t v___x_3466_; lean_object* v___x_3467_; lean_object* v___x_3468_; lean_object* v___x_3469_; lean_object* v___x_3470_; lean_object* v___x_3471_; lean_object* v___x_3472_; lean_object* v___x_3473_; -v___x_3466_ = 1; -v___x_3467_ = lean_box(v___x_3466_); -v___x_3468_ = lean_st_ref_set(v_finished_3458_, v___x_3467_); -lean_dec(v_finished_3458_); -v___x_3469_ = lean_box(v___y_3465_); -v___x_3470_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3470_, 0, v___x_3469_); -v___x_3471_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3471_, 0, v___x_3470_); -v___x_3472_ = lean_unsigned_to_nat(0u); -v___x_3473_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3472_, v___x_3461_, v___x_3471_, v___f_3463_); -return v___x_3473_; +uint8_t v___x_3473_; lean_object* v___x_3474_; lean_object* v___x_3475_; lean_object* v___x_3476_; lean_object* v___x_3477_; lean_object* v___x_3478_; lean_object* v___x_3479_; lean_object* v___x_3480_; +v___x_3473_ = 1; +v___x_3474_ = lean_box(v___x_3473_); +v___x_3475_ = lean_st_ref_set(v_finished_3465_, v___x_3474_); +lean_dec(v_finished_3465_); +v___x_3476_ = lean_box(v___y_3472_); +v___x_3477_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3477_, 0, v___x_3476_); +v___x_3478_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3478_, 0, v___x_3477_); +v___x_3479_ = lean_unsigned_to_nat(0u); +v___x_3480_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3479_, v___x_3468_, v___x_3478_, v___f_3470_); +return v___x_3480_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___boxed(lean_object* v_w_3476_, lean_object* v_lose_3477_, lean_object* v___y_3478_, lean_object* v___y_3479_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___boxed(lean_object* v_w_3483_, lean_object* v_lose_3484_, lean_object* v___y_3485_, lean_object* v___y_3486_){ _start: { -lean_object* v_res_3480_; -v_res_3480_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(v_w_3476_, v_lose_3477_, v___y_3478_); -lean_dec(v___y_3478_); -return v_res_3480_; +lean_object* v_res_3487_; +v_res_3487_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(v_w_3483_, v_lose_3484_, v___y_3485_); +lean_dec(v___y_3485_); +return v_res_3487_; } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(lean_object* v_w_3481_, lean_object* v_lose_3482_, lean_object* v___y_3483_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(lean_object* v_w_3488_, lean_object* v_lose_3489_, lean_object* v___y_3490_){ _start: { -lean_object* v_finished_3485_; lean_object* v_promise_3486_; lean_object* v___x_3487_; uint8_t v___x_3488_; lean_object* v___x_3489_; lean_object* v___f_3490_; uint8_t v___y_3492_; uint8_t v___x_3501_; -v_finished_3485_ = lean_ctor_get(v_w_3481_, 0); -lean_inc(v_finished_3485_); -v_promise_3486_ = lean_ctor_get(v_w_3481_, 1); -lean_inc(v_promise_3486_); -lean_dec_ref(v_w_3481_); -v___x_3487_ = lean_st_ref_take(v_finished_3485_); -v___x_3488_ = 1; -v___x_3489_ = lean_box(v___x_3488_); -lean_inc(v___y_3483_); -v___f_3490_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed), 6, 4); -lean_closure_set(v___f_3490_, 0, v_lose_3482_); -lean_closure_set(v___f_3490_, 1, v___y_3483_); -lean_closure_set(v___f_3490_, 2, v___x_3489_); -lean_closure_set(v___f_3490_, 3, v_promise_3486_); -v___x_3501_ = lean_unbox(v___x_3487_); -lean_dec(v___x_3487_); -if (v___x_3501_ == 0) +lean_object* v_finished_3492_; lean_object* v_promise_3493_; lean_object* v___x_3494_; uint8_t v___x_3495_; lean_object* v___x_3496_; lean_object* v___f_3497_; uint8_t v___y_3499_; uint8_t v___x_3508_; +v_finished_3492_ = lean_ctor_get(v_w_3488_, 0); +lean_inc(v_finished_3492_); +v_promise_3493_ = lean_ctor_get(v_w_3488_, 1); +lean_inc(v_promise_3493_); +lean_dec_ref(v_w_3488_); +v___x_3494_ = lean_st_ref_take(v_finished_3492_); +v___x_3495_ = 1; +v___x_3496_ = lean_box(v___x_3495_); +lean_inc(v___y_3490_); +v___f_3497_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0___lam__0___boxed), 6, 4); +lean_closure_set(v___f_3497_, 0, v_lose_3489_); +lean_closure_set(v___f_3497_, 1, v___y_3490_); +lean_closure_set(v___f_3497_, 2, v___x_3496_); +lean_closure_set(v___f_3497_, 3, v_promise_3493_); +v___x_3508_ = lean_unbox(v___x_3494_); +lean_dec(v___x_3494_); +if (v___x_3508_ == 0) { -v___y_3492_ = v___x_3488_; -goto v___jp_3491_; +v___y_3499_ = v___x_3495_; +goto v___jp_3498_; } else { -uint8_t v___x_3502_; -v___x_3502_ = 0; -v___y_3492_ = v___x_3502_; -goto v___jp_3491_; +uint8_t v___x_3509_; +v___x_3509_ = 0; +v___y_3499_ = v___x_3509_; +goto v___jp_3498_; } -v___jp_3491_: +v___jp_3498_: { -lean_object* v___x_3493_; lean_object* v___x_3494_; lean_object* v___x_3495_; lean_object* v___x_3496_; lean_object* v___x_3497_; lean_object* v___x_3498_; uint8_t v___x_3499_; lean_object* v___x_3500_; -v___x_3493_ = lean_box(v___x_3488_); -v___x_3494_ = lean_st_ref_set(v_finished_3485_, v___x_3493_); -lean_dec(v_finished_3485_); -v___x_3495_ = lean_box(v___y_3492_); -v___x_3496_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3496_, 0, v___x_3495_); -v___x_3497_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3497_, 0, v___x_3496_); -v___x_3498_ = lean_unsigned_to_nat(0u); -v___x_3499_ = 0; -v___x_3500_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3498_, v___x_3499_, v___x_3497_, v___f_3490_); -return v___x_3500_; +lean_object* v___x_3500_; lean_object* v___x_3501_; lean_object* v___x_3502_; lean_object* v___x_3503_; lean_object* v___x_3504_; lean_object* v___x_3505_; uint8_t v___x_3506_; lean_object* v___x_3507_; +v___x_3500_ = lean_box(v___x_3495_); +v___x_3501_ = lean_st_ref_set(v_finished_3492_, v___x_3500_); +lean_dec(v_finished_3492_); +v___x_3502_ = lean_box(v___y_3499_); +v___x_3503_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3503_, 0, v___x_3502_); +v___x_3504_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3504_, 0, v___x_3503_); +v___x_3505_ = lean_unsigned_to_nat(0u); +v___x_3506_ = 0; +v___x_3507_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3505_, v___x_3506_, v___x_3504_, v___f_3497_); +return v___x_3507_; } } } -LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1___boxed(lean_object* v_w_3503_, lean_object* v_lose_3504_, lean_object* v___y_3505_, lean_object* v___y_3506_){ +LEAN_EXPORT lean_object* l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1___boxed(lean_object* v_w_3510_, lean_object* v_lose_3511_, lean_object* v___y_3512_, lean_object* v___y_3513_){ _start: { -lean_object* v_res_3507_; -v_res_3507_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(v_w_3503_, v_lose_3504_, v___y_3505_); -lean_dec(v___y_3505_); -return v_res_3507_; +lean_object* v_res_3514_; +v_res_3514_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(v_w_3510_, v_lose_3511_, v___y_3512_); +lean_dec(v___y_3512_); +return v_res_3514_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__0(lean_object* v_x_3524_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__0(lean_object* v_x_3531_){ _start: { -if (lean_obj_tag(v_x_3524_) == 0) +if (lean_obj_tag(v_x_3531_) == 0) { -lean_object* v_a_3526_; lean_object* v___x_3528_; uint8_t v_isShared_3529_; uint8_t v_isSharedCheck_3534_; -v_a_3526_ = lean_ctor_get(v_x_3524_, 0); -v_isSharedCheck_3534_ = !lean_is_exclusive(v_x_3524_); -if (v_isSharedCheck_3534_ == 0) +lean_object* v_a_3533_; lean_object* v___x_3535_; uint8_t v_isShared_3536_; uint8_t v_isSharedCheck_3541_; +v_a_3533_ = lean_ctor_get(v_x_3531_, 0); +v_isSharedCheck_3541_ = !lean_is_exclusive(v_x_3531_); +if (v_isSharedCheck_3541_ == 0) { -v___x_3528_ = v_x_3524_; -v_isShared_3529_ = v_isSharedCheck_3534_; -goto v_resetjp_3527_; +v___x_3535_ = v_x_3531_; +v_isShared_3536_ = v_isSharedCheck_3541_; +goto v_resetjp_3534_; } else { -lean_inc(v_a_3526_); -lean_dec(v_x_3524_); -v___x_3528_ = lean_box(0); -v_isShared_3529_ = v_isSharedCheck_3534_; -goto v_resetjp_3527_; +lean_inc(v_a_3533_); +lean_dec(v_x_3531_); +v___x_3535_ = lean_box(0); +v_isShared_3536_ = v_isSharedCheck_3541_; +goto v_resetjp_3534_; } -v_resetjp_3527_: -{ -lean_object* v___x_3531_; -if (v_isShared_3529_ == 0) -{ -v___x_3531_ = v___x_3528_; -goto v_reusejp_3530_; -} -else -{ -lean_object* v_reuseFailAlloc_3533_; -v_reuseFailAlloc_3533_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3533_, 0, v_a_3526_); -v___x_3531_ = v_reuseFailAlloc_3533_; -goto v_reusejp_3530_; -} -v_reusejp_3530_: -{ -lean_object* v___x_3532_; -v___x_3532_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3532_, 0, v___x_3531_); -return v___x_3532_; -} -} -} -else -{ -lean_object* v_a_3535_; lean_object* v_pendingConsumer_3536_; -v_a_3535_ = lean_ctor_get(v_x_3524_, 0); -lean_inc(v_a_3535_); -lean_dec_ref(v_x_3524_); -v_pendingConsumer_3536_ = lean_ctor_get(v_a_3535_, 1); -if (lean_obj_tag(v_pendingConsumer_3536_) == 0) -{ -uint8_t v_closed_3537_; -v_closed_3537_ = lean_ctor_get_uint8(v_a_3535_, sizeof(void*)*5); -lean_dec(v_a_3535_); -if (v_closed_3537_ == 0) +v_resetjp_3534_: { lean_object* v___x_3538_; -v___x_3538_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__0)); -return v___x_3538_; +if (v_isShared_3536_ == 0) +{ +v___x_3538_ = v___x_3535_; +goto v_reusejp_3537_; } else { +lean_object* v_reuseFailAlloc_3540_; +v_reuseFailAlloc_3540_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3540_, 0, v_a_3533_); +v___x_3538_ = v_reuseFailAlloc_3540_; +goto v_reusejp_3537_; +} +v_reusejp_3537_: +{ lean_object* v___x_3539_; -v___x_3539_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__3)); +v___x_3539_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3539_, 0, v___x_3538_); return v___x_3539_; } } +} else { -lean_object* v___x_3540_; -lean_dec(v_a_3535_); -v___x_3540_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__6)); -return v___x_3540_; +lean_object* v_a_3542_; lean_object* v_pendingConsumer_3543_; +v_a_3542_ = lean_ctor_get(v_x_3531_, 0); +lean_inc(v_a_3542_); +lean_dec_ref(v_x_3531_); +v_pendingConsumer_3543_ = lean_ctor_get(v_a_3542_, 1); +if (lean_obj_tag(v_pendingConsumer_3543_) == 0) +{ +uint8_t v_closed_3544_; +v_closed_3544_ = lean_ctor_get_uint8(v_a_3542_, sizeof(void*)*5); +lean_dec(v_a_3542_); +if (v_closed_3544_ == 0) +{ +lean_object* v___x_3545_; +v___x_3545_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__0)); +return v___x_3545_; +} +else +{ +lean_object* v___x_3546_; +v___x_3546_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__3)); +return v___x_3546_; +} +} +else +{ +lean_object* v___x_3547_; +lean_dec(v_a_3542_); +v___x_3547_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__0___closed__6)); +return v___x_3547_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__0___boxed(lean_object* v_x_3541_, lean_object* v___y_3542_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__0___boxed(lean_object* v_x_3548_, lean_object* v___y_3549_){ _start: { -lean_object* v_res_3543_; -v_res_3543_ = l_Std_Http_Body_Stream_interestSelector___lam__0(v_x_3541_); -return v_res_3543_; +lean_object* v_res_3550_; +v_res_3550_ = l_Std_Http_Body_Stream_interestSelector___lam__0(v_x_3548_); +return v_res_3550_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__3(lean_object* v_waiter_3551_, lean_object* v___y_3552_, lean_object* v_x_3553_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__3(lean_object* v_waiter_3558_, lean_object* v___y_3559_, lean_object* v_x_3560_){ _start: { -if (lean_obj_tag(v_x_3553_) == 0) +if (lean_obj_tag(v_x_3560_) == 0) { -lean_object* v_a_3555_; lean_object* v___x_3557_; uint8_t v_isShared_3558_; uint8_t v_isSharedCheck_3563_; -lean_dec_ref(v_waiter_3551_); -v_a_3555_ = lean_ctor_get(v_x_3553_, 0); -v_isSharedCheck_3563_ = !lean_is_exclusive(v_x_3553_); -if (v_isSharedCheck_3563_ == 0) +lean_object* v_a_3562_; lean_object* v___x_3564_; uint8_t v_isShared_3565_; uint8_t v_isSharedCheck_3570_; +lean_dec_ref(v_waiter_3558_); +v_a_3562_ = lean_ctor_get(v_x_3560_, 0); +v_isSharedCheck_3570_ = !lean_is_exclusive(v_x_3560_); +if (v_isSharedCheck_3570_ == 0) { -v___x_3557_ = v_x_3553_; -v_isShared_3558_ = v_isSharedCheck_3563_; -goto v_resetjp_3556_; +v___x_3564_ = v_x_3560_; +v_isShared_3565_ = v_isSharedCheck_3570_; +goto v_resetjp_3563_; } else { -lean_inc(v_a_3555_); -lean_dec(v_x_3553_); -v___x_3557_ = lean_box(0); -v_isShared_3558_ = v_isSharedCheck_3563_; -goto v_resetjp_3556_; +lean_inc(v_a_3562_); +lean_dec(v_x_3560_); +v___x_3564_ = lean_box(0); +v_isShared_3565_ = v_isSharedCheck_3570_; +goto v_resetjp_3563_; } -v_resetjp_3556_: +v_resetjp_3563_: { -lean_object* v___x_3560_; -if (v_isShared_3558_ == 0) +lean_object* v___x_3567_; +if (v_isShared_3565_ == 0) { -v___x_3560_ = v___x_3557_; -goto v_reusejp_3559_; +v___x_3567_ = v___x_3564_; +goto v_reusejp_3566_; } else { -lean_object* v_reuseFailAlloc_3562_; -v_reuseFailAlloc_3562_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3562_, 0, v_a_3555_); -v___x_3560_ = v_reuseFailAlloc_3562_; -goto v_reusejp_3559_; +lean_object* v_reuseFailAlloc_3569_; +v_reuseFailAlloc_3569_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3569_, 0, v_a_3562_); +v___x_3567_ = v_reuseFailAlloc_3569_; +goto v_reusejp_3566_; } -v_reusejp_3559_: +v_reusejp_3566_: { -lean_object* v___x_3561_; -v___x_3561_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3561_, 0, v___x_3560_); -return v___x_3561_; +lean_object* v___x_3568_; +v___x_3568_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3568_, 0, v___x_3567_); +return v___x_3568_; } } } else { -lean_object* v_a_3564_; lean_object* v___x_3566_; uint8_t v_isShared_3567_; uint8_t v_isSharedCheck_3594_; -v_a_3564_ = lean_ctor_get(v_x_3553_, 0); -v_isSharedCheck_3594_ = !lean_is_exclusive(v_x_3553_); -if (v_isSharedCheck_3594_ == 0) +lean_object* v_a_3571_; lean_object* v___x_3573_; uint8_t v_isShared_3574_; uint8_t v_isSharedCheck_3601_; +v_a_3571_ = lean_ctor_get(v_x_3560_, 0); +v_isSharedCheck_3601_ = !lean_is_exclusive(v_x_3560_); +if (v_isSharedCheck_3601_ == 0) { -v___x_3566_ = v_x_3553_; -v_isShared_3567_ = v_isSharedCheck_3594_; -goto v_resetjp_3565_; +v___x_3573_ = v_x_3560_; +v_isShared_3574_ = v_isSharedCheck_3601_; +goto v_resetjp_3572_; } else { -lean_inc(v_a_3564_); -lean_dec(v_x_3553_); -v___x_3566_ = lean_box(0); -v_isShared_3567_ = v_isSharedCheck_3594_; -goto v_resetjp_3565_; +lean_inc(v_a_3571_); +lean_dec(v_x_3560_); +v___x_3573_ = lean_box(0); +v_isShared_3574_ = v_isSharedCheck_3601_; +goto v_resetjp_3572_; } -v_resetjp_3565_: +v_resetjp_3572_: { -lean_object* v_pendingConsumer_3568_; -v_pendingConsumer_3568_ = lean_ctor_get(v_a_3564_, 1); -lean_inc(v_pendingConsumer_3568_); -if (lean_obj_tag(v_pendingConsumer_3568_) == 0) +lean_object* v_pendingConsumer_3575_; +v_pendingConsumer_3575_ = lean_ctor_get(v_a_3571_, 1); +lean_inc(v_pendingConsumer_3575_); +if (lean_obj_tag(v_pendingConsumer_3575_) == 0) { -uint8_t v_closed_3569_; -v_closed_3569_ = lean_ctor_get_uint8(v_a_3564_, sizeof(void*)*5); -if (v_closed_3569_ == 0) +uint8_t v_closed_3576_; +v_closed_3576_ = lean_ctor_get_uint8(v_a_3571_, sizeof(void*)*5); +if (v_closed_3576_ == 0) { -lean_object* v_interestWaiter_3570_; -v_interestWaiter_3570_ = lean_ctor_get(v_a_3564_, 2); -if (lean_obj_tag(v_interestWaiter_3570_) == 0) +lean_object* v_interestWaiter_3577_; +v_interestWaiter_3577_ = lean_ctor_get(v_a_3571_, 2); +if (lean_obj_tag(v_interestWaiter_3577_) == 0) { -lean_object* v_pendingProducer_3571_; lean_object* v_knownSize_3572_; lean_object* v_pendingIncompleteChunk_3573_; lean_object* v___x_3575_; uint8_t v_isShared_3576_; uint8_t v_isSharedCheck_3586_; -v_pendingProducer_3571_ = lean_ctor_get(v_a_3564_, 0); -v_knownSize_3572_ = lean_ctor_get(v_a_3564_, 3); -v_pendingIncompleteChunk_3573_ = lean_ctor_get(v_a_3564_, 4); -v_isSharedCheck_3586_ = !lean_is_exclusive(v_a_3564_); -if (v_isSharedCheck_3586_ == 0) +lean_object* v_pendingProducer_3578_; lean_object* v_knownSize_3579_; lean_object* v_pendingIncompleteChunk_3580_; lean_object* v___x_3582_; uint8_t v_isShared_3583_; uint8_t v_isSharedCheck_3593_; +v_pendingProducer_3578_ = lean_ctor_get(v_a_3571_, 0); +v_knownSize_3579_ = lean_ctor_get(v_a_3571_, 3); +v_pendingIncompleteChunk_3580_ = lean_ctor_get(v_a_3571_, 4); +v_isSharedCheck_3593_ = !lean_is_exclusive(v_a_3571_); +if (v_isSharedCheck_3593_ == 0) { -lean_object* v_unused_3587_; lean_object* v_unused_3588_; -v_unused_3587_ = lean_ctor_get(v_a_3564_, 2); -lean_dec(v_unused_3587_); -v_unused_3588_ = lean_ctor_get(v_a_3564_, 1); -lean_dec(v_unused_3588_); -v___x_3575_ = v_a_3564_; -v_isShared_3576_ = v_isSharedCheck_3586_; -goto v_resetjp_3574_; +lean_object* v_unused_3594_; lean_object* v_unused_3595_; +v_unused_3594_ = lean_ctor_get(v_a_3571_, 2); +lean_dec(v_unused_3594_); +v_unused_3595_ = lean_ctor_get(v_a_3571_, 1); +lean_dec(v_unused_3595_); +v___x_3582_ = v_a_3571_; +v_isShared_3583_ = v_isSharedCheck_3593_; +goto v_resetjp_3581_; } else { -lean_inc(v_pendingIncompleteChunk_3573_); -lean_inc(v_knownSize_3572_); -lean_inc(v_pendingProducer_3571_); -lean_dec(v_a_3564_); -v___x_3575_ = lean_box(0); -v_isShared_3576_ = v_isSharedCheck_3586_; -goto v_resetjp_3574_; +lean_inc(v_pendingIncompleteChunk_3580_); +lean_inc(v_knownSize_3579_); +lean_inc(v_pendingProducer_3578_); +lean_dec(v_a_3571_); +v___x_3582_ = lean_box(0); +v_isShared_3583_ = v_isSharedCheck_3593_; +goto v_resetjp_3581_; } -v_resetjp_3574_: +v_resetjp_3581_: { -lean_object* v___x_3577_; lean_object* v___x_3579_; -v___x_3577_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3577_, 0, v_waiter_3551_); -if (v_isShared_3576_ == 0) +lean_object* v___x_3584_; lean_object* v___x_3586_; +v___x_3584_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3584_, 0, v_waiter_3558_); +if (v_isShared_3583_ == 0) { -lean_ctor_set(v___x_3575_, 2, v___x_3577_); -v___x_3579_ = v___x_3575_; -goto v_reusejp_3578_; +lean_ctor_set(v___x_3582_, 2, v___x_3584_); +v___x_3586_ = v___x_3582_; +goto v_reusejp_3585_; } else { -lean_object* v_reuseFailAlloc_3585_; -v_reuseFailAlloc_3585_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_3585_, 0, v_pendingProducer_3571_); -lean_ctor_set(v_reuseFailAlloc_3585_, 1, v_pendingConsumer_3568_); -lean_ctor_set(v_reuseFailAlloc_3585_, 2, v___x_3577_); -lean_ctor_set(v_reuseFailAlloc_3585_, 3, v_knownSize_3572_); -lean_ctor_set(v_reuseFailAlloc_3585_, 4, v_pendingIncompleteChunk_3573_); -lean_ctor_set_uint8(v_reuseFailAlloc_3585_, sizeof(void*)*5, v_closed_3569_); -v___x_3579_ = v_reuseFailAlloc_3585_; -goto v_reusejp_3578_; +lean_object* v_reuseFailAlloc_3592_; +v_reuseFailAlloc_3592_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_3592_, 0, v_pendingProducer_3578_); +lean_ctor_set(v_reuseFailAlloc_3592_, 1, v_pendingConsumer_3575_); +lean_ctor_set(v_reuseFailAlloc_3592_, 2, v___x_3584_); +lean_ctor_set(v_reuseFailAlloc_3592_, 3, v_knownSize_3579_); +lean_ctor_set(v_reuseFailAlloc_3592_, 4, v_pendingIncompleteChunk_3580_); +lean_ctor_set_uint8(v_reuseFailAlloc_3592_, sizeof(void*)*5, v_closed_3576_); +v___x_3586_ = v_reuseFailAlloc_3592_; +goto v_reusejp_3585_; } -v_reusejp_3578_: +v_reusejp_3585_: { -lean_object* v___x_3580_; lean_object* v___x_3582_; -v___x_3580_ = lean_st_ref_set(v___y_3552_, v___x_3579_); -if (v_isShared_3567_ == 0) +lean_object* v___x_3587_; lean_object* v___x_3589_; +v___x_3587_ = lean_st_ref_set(v___y_3559_, v___x_3586_); +if (v_isShared_3574_ == 0) { -lean_ctor_set(v___x_3566_, 0, v___x_3580_); -v___x_3582_ = v___x_3566_; -goto v_reusejp_3581_; +lean_ctor_set(v___x_3573_, 0, v___x_3587_); +v___x_3589_ = v___x_3573_; +goto v_reusejp_3588_; } else { -lean_object* v_reuseFailAlloc_3584_; -v_reuseFailAlloc_3584_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3584_, 0, v___x_3580_); -v___x_3582_ = v_reuseFailAlloc_3584_; -goto v_reusejp_3581_; +lean_object* v_reuseFailAlloc_3591_; +v_reuseFailAlloc_3591_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3591_, 0, v___x_3587_); +v___x_3589_ = v_reuseFailAlloc_3591_; +goto v_reusejp_3588_; } -v_reusejp_3581_: +v_reusejp_3588_: { -lean_object* v___x_3583_; -v___x_3583_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3583_, 0, v___x_3582_); -return v___x_3583_; +lean_object* v___x_3590_; +v___x_3590_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3590_, 0, v___x_3589_); +return v___x_3590_; } } } } else { -lean_object* v___x_3589_; -lean_del_object(v___x_3566_); -lean_dec(v_a_3564_); -lean_dec_ref(v_waiter_3551_); -v___x_3589_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__3___closed__3)); -return v___x_3589_; +lean_object* v___x_3596_; +lean_del_object(v___x_3573_); +lean_dec(v_a_3571_); +lean_dec_ref(v_waiter_3558_); +v___x_3596_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___lam__3___closed__3)); +return v___x_3596_; } } else { -lean_object* v___f_3590_; lean_object* v___x_3591_; -lean_del_object(v___x_3566_); -lean_dec(v_a_3564_); -v___f_3590_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0)); -v___x_3591_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(v_waiter_3551_, v___f_3590_, v___y_3552_); -return v___x_3591_; +lean_object* v___f_3597_; lean_object* v___x_3598_; +lean_del_object(v___x_3573_); +lean_dec(v_a_3571_); +v___f_3597_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0)); +v___x_3598_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__0(v_waiter_3558_, v___f_3597_, v___y_3559_); +return v___x_3598_; } } else { -lean_object* v___f_3592_; lean_object* v___x_3593_; -lean_dec_ref(v_pendingConsumer_3568_); -lean_del_object(v___x_3566_); -lean_dec(v_a_3564_); -v___f_3592_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__5___closed__0)); -v___x_3593_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(v_waiter_3551_, v___f_3592_, v___y_3552_); -return v___x_3593_; +lean_object* v___f_3599_; lean_object* v___x_3600_; +lean_dec_ref(v_pendingConsumer_3575_); +lean_del_object(v___x_3573_); +lean_dec(v_a_3571_); +v___f_3599_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___lam__4___closed__0)); +v___x_3600_ = l_Std_Internal_IO_Async_Waiter_race___at___00Std_Http_Body_Stream_interestSelector_spec__1(v_waiter_3558_, v___f_3599_, v___y_3559_); +return v___x_3600_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__3___boxed(lean_object* v_waiter_3595_, lean_object* v___y_3596_, lean_object* v_x_3597_, lean_object* v___y_3598_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__3___boxed(lean_object* v_waiter_3602_, lean_object* v___y_3603_, lean_object* v_x_3604_, lean_object* v___y_3605_){ _start: { -lean_object* v_res_3599_; -v_res_3599_ = l_Std_Http_Body_Stream_interestSelector___lam__3(v_waiter_3595_, v___y_3596_, v_x_3597_); -lean_dec(v___y_3596_); -return v_res_3599_; +lean_object* v_res_3606_; +v_res_3606_ = l_Std_Http_Body_Stream_interestSelector___lam__3(v_waiter_3602_, v___y_3603_, v_x_3604_); +lean_dec(v___y_3603_); +return v_res_3606_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__1(lean_object* v___y_3600_, lean_object* v___f_3601_, lean_object* v_x_3602_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__1(lean_object* v___y_3607_, lean_object* v___f_3608_, lean_object* v_x_3609_){ _start: { -if (lean_obj_tag(v_x_3602_) == 0) +if (lean_obj_tag(v_x_3609_) == 0) { -lean_object* v___x_3604_; -lean_dec_ref(v___f_3601_); -v___x_3604_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3604_, 0, v_x_3602_); -return v___x_3604_; -} -else -{ -lean_object* v___x_3606_; uint8_t v_isShared_3607_; uint8_t v_isSharedCheck_3616_; -v_isSharedCheck_3616_ = !lean_is_exclusive(v_x_3602_); -if (v_isSharedCheck_3616_ == 0) -{ -lean_object* v_unused_3617_; -v_unused_3617_ = lean_ctor_get(v_x_3602_, 0); -lean_dec(v_unused_3617_); -v___x_3606_ = v_x_3602_; -v_isShared_3607_ = v_isSharedCheck_3616_; -goto v_resetjp_3605_; -} -else -{ -lean_dec(v_x_3602_); -v___x_3606_ = lean_box(0); -v_isShared_3607_ = v_isSharedCheck_3616_; -goto v_resetjp_3605_; -} -v_resetjp_3605_: -{ -lean_object* v___x_3608_; lean_object* v___x_3610_; -v___x_3608_ = lean_st_ref_get(v___y_3600_); -if (v_isShared_3607_ == 0) -{ -lean_ctor_set(v___x_3606_, 0, v___x_3608_); -v___x_3610_ = v___x_3606_; -goto v_reusejp_3609_; -} -else -{ -lean_object* v_reuseFailAlloc_3615_; -v_reuseFailAlloc_3615_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3615_, 0, v___x_3608_); -v___x_3610_ = v_reuseFailAlloc_3615_; -goto v_reusejp_3609_; -} -v_reusejp_3609_: -{ -lean_object* v___x_3611_; lean_object* v___x_3612_; uint8_t v___x_3613_; lean_object* v___x_3614_; +lean_object* v___x_3611_; +lean_dec_ref(v___f_3608_); v___x_3611_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3611_, 0, v___x_3610_); -v___x_3612_ = lean_unsigned_to_nat(0u); -v___x_3613_ = 0; -v___x_3614_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3612_, v___x_3613_, v___x_3611_, v___f_3601_); -return v___x_3614_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__1___boxed(lean_object* v___y_3618_, lean_object* v___f_3619_, lean_object* v_x_3620_, lean_object* v___y_3621_){ -_start: -{ -lean_object* v_res_3622_; -v_res_3622_ = l_Std_Http_Body_Stream_interestSelector___lam__1(v___y_3618_, v___f_3619_, v_x_3620_); -lean_dec(v___y_3618_); -return v_res_3622_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__2(lean_object* v_waiter_3623_, lean_object* v___y_3624_){ -_start: -{ -lean_object* v___x_3626_; lean_object* v___f_3627_; lean_object* v___f_3628_; lean_object* v___x_3629_; uint8_t v___x_3630_; lean_object* v___x_3631_; -v___x_3626_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3624_); -lean_inc_n(v___y_3624_, 2); -v___f_3627_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__3___boxed), 4, 2); -lean_closure_set(v___f_3627_, 0, v_waiter_3623_); -lean_closure_set(v___f_3627_, 1, v___y_3624_); -v___f_3628_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__1___boxed), 4, 2); -lean_closure_set(v___f_3628_, 0, v___y_3624_); -lean_closure_set(v___f_3628_, 1, v___f_3627_); -v___x_3629_ = lean_unsigned_to_nat(0u); -v___x_3630_ = 0; -v___x_3631_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3629_, v___x_3630_, v___x_3626_, v___f_3628_); -return v___x_3631_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__2___boxed(lean_object* v_waiter_3632_, lean_object* v___y_3633_, lean_object* v___y_3634_){ -_start: -{ -lean_object* v_res_3635_; -v_res_3635_ = l_Std_Http_Body_Stream_interestSelector___lam__2(v_waiter_3632_, v___y_3633_); -lean_dec(v___y_3633_); -return v_res_3635_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__4(lean_object* v_stream_3636_, lean_object* v_waiter_3637_){ -_start: -{ -lean_object* v___f_3639_; lean_object* v___x_3640_; -v___f_3639_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__2___boxed), 3, 1); -lean_closure_set(v___f_3639_, 0, v_waiter_3637_); -v___x_3640_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3636_, v___f_3639_); -return v___x_3640_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__4___boxed(lean_object* v_stream_3641_, lean_object* v_waiter_3642_, lean_object* v___y_3643_){ -_start: -{ -lean_object* v_res_3644_; -v_res_3644_ = l_Std_Http_Body_Stream_interestSelector___lam__4(v_stream_3641_, v_waiter_3642_); -return v_res_3644_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__5(lean_object* v___y_3645_, lean_object* v___f_3646_, lean_object* v_x_3647_){ -_start: -{ -if (lean_obj_tag(v_x_3647_) == 0) -{ -lean_object* v_a_3649_; lean_object* v___x_3651_; uint8_t v_isShared_3652_; uint8_t v_isSharedCheck_3657_; -lean_dec_ref(v___f_3646_); -v_a_3649_ = lean_ctor_get(v_x_3647_, 0); -v_isSharedCheck_3657_ = !lean_is_exclusive(v_x_3647_); -if (v_isSharedCheck_3657_ == 0) -{ -v___x_3651_ = v_x_3647_; -v_isShared_3652_ = v_isSharedCheck_3657_; -goto v_resetjp_3650_; +lean_ctor_set(v___x_3611_, 0, v_x_3609_); +return v___x_3611_; } else { -lean_inc(v_a_3649_); -lean_dec(v_x_3647_); -v___x_3651_ = lean_box(0); -v_isShared_3652_ = v_isSharedCheck_3657_; -goto v_resetjp_3650_; -} -v_resetjp_3650_: +lean_object* v___x_3613_; uint8_t v_isShared_3614_; uint8_t v_isSharedCheck_3623_; +v_isSharedCheck_3623_ = !lean_is_exclusive(v_x_3609_); +if (v_isSharedCheck_3623_ == 0) { -lean_object* v___x_3654_; -if (v_isShared_3652_ == 0) -{ -v___x_3654_ = v___x_3651_; -goto v_reusejp_3653_; +lean_object* v_unused_3624_; +v_unused_3624_ = lean_ctor_get(v_x_3609_, 0); +lean_dec(v_unused_3624_); +v___x_3613_ = v_x_3609_; +v_isShared_3614_ = v_isSharedCheck_3623_; +goto v_resetjp_3612_; } else { -lean_object* v_reuseFailAlloc_3656_; -v_reuseFailAlloc_3656_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3656_, 0, v_a_3649_); -v___x_3654_ = v_reuseFailAlloc_3656_; -goto v_reusejp_3653_; +lean_dec(v_x_3609_); +v___x_3613_ = lean_box(0); +v_isShared_3614_ = v_isSharedCheck_3623_; +goto v_resetjp_3612_; } -v_reusejp_3653_: +v_resetjp_3612_: { -lean_object* v___x_3655_; -v___x_3655_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3655_, 0, v___x_3654_); -return v___x_3655_; +lean_object* v___x_3615_; lean_object* v___x_3617_; +v___x_3615_ = lean_st_ref_get(v___y_3607_); +if (v_isShared_3614_ == 0) +{ +lean_ctor_set(v___x_3613_, 0, v___x_3615_); +v___x_3617_ = v___x_3613_; +goto v_reusejp_3616_; +} +else +{ +lean_object* v_reuseFailAlloc_3622_; +v_reuseFailAlloc_3622_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3622_, 0, v___x_3615_); +v___x_3617_ = v_reuseFailAlloc_3622_; +goto v_reusejp_3616_; +} +v_reusejp_3616_: +{ +lean_object* v___x_3618_; lean_object* v___x_3619_; uint8_t v___x_3620_; lean_object* v___x_3621_; +v___x_3618_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3618_, 0, v___x_3617_); +v___x_3619_ = lean_unsigned_to_nat(0u); +v___x_3620_ = 0; +v___x_3621_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3619_, v___x_3620_, v___x_3618_, v___f_3608_); +return v___x_3621_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__1___boxed(lean_object* v___y_3625_, lean_object* v___f_3626_, lean_object* v_x_3627_, lean_object* v___y_3628_){ +_start: +{ +lean_object* v_res_3629_; +v_res_3629_ = l_Std_Http_Body_Stream_interestSelector___lam__1(v___y_3625_, v___f_3626_, v_x_3627_); +lean_dec(v___y_3625_); +return v_res_3629_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__2(lean_object* v_waiter_3630_, lean_object* v___y_3631_){ +_start: +{ +lean_object* v___x_3633_; lean_object* v___f_3634_; lean_object* v___f_3635_; lean_object* v___x_3636_; uint8_t v___x_3637_; lean_object* v___x_3638_; +v___x_3633_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3631_); +lean_inc_n(v___y_3631_, 2); +v___f_3634_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__3___boxed), 4, 2); +lean_closure_set(v___f_3634_, 0, v_waiter_3630_); +lean_closure_set(v___f_3634_, 1, v___y_3631_); +v___f_3635_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__1___boxed), 4, 2); +lean_closure_set(v___f_3635_, 0, v___y_3631_); +lean_closure_set(v___f_3635_, 1, v___f_3634_); +v___x_3636_ = lean_unsigned_to_nat(0u); +v___x_3637_ = 0; +v___x_3638_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3636_, v___x_3637_, v___x_3633_, v___f_3635_); +return v___x_3638_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__2___boxed(lean_object* v_waiter_3639_, lean_object* v___y_3640_, lean_object* v___y_3641_){ +_start: +{ +lean_object* v_res_3642_; +v_res_3642_ = l_Std_Http_Body_Stream_interestSelector___lam__2(v_waiter_3639_, v___y_3640_); +lean_dec(v___y_3640_); +return v_res_3642_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__4(lean_object* v_stream_3643_, lean_object* v_waiter_3644_){ +_start: +{ +lean_object* v___f_3646_; lean_object* v___x_3647_; +v___f_3646_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__2___boxed), 3, 1); +lean_closure_set(v___f_3646_, 0, v_waiter_3644_); +v___x_3647_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_stream_3643_, v___f_3646_); +return v___x_3647_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__4___boxed(lean_object* v_stream_3648_, lean_object* v_waiter_3649_, lean_object* v___y_3650_){ +_start: +{ +lean_object* v_res_3651_; +v_res_3651_ = l_Std_Http_Body_Stream_interestSelector___lam__4(v_stream_3648_, v_waiter_3649_); +return v_res_3651_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__5(lean_object* v___y_3652_, lean_object* v___f_3653_, lean_object* v_x_3654_){ +_start: +{ +if (lean_obj_tag(v_x_3654_) == 0) +{ +lean_object* v_a_3656_; lean_object* v___x_3658_; uint8_t v_isShared_3659_; uint8_t v_isSharedCheck_3664_; +lean_dec_ref(v___f_3653_); +v_a_3656_ = lean_ctor_get(v_x_3654_, 0); +v_isSharedCheck_3664_ = !lean_is_exclusive(v_x_3654_); +if (v_isSharedCheck_3664_ == 0) +{ +v___x_3658_ = v_x_3654_; +v_isShared_3659_ = v_isSharedCheck_3664_; +goto v_resetjp_3657_; +} +else +{ +lean_inc(v_a_3656_); +lean_dec(v_x_3654_); +v___x_3658_ = lean_box(0); +v_isShared_3659_ = v_isSharedCheck_3664_; +goto v_resetjp_3657_; +} +v_resetjp_3657_: +{ +lean_object* v___x_3661_; +if (v_isShared_3659_ == 0) +{ +v___x_3661_ = v___x_3658_; +goto v_reusejp_3660_; +} +else +{ +lean_object* v_reuseFailAlloc_3663_; +v_reuseFailAlloc_3663_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3663_, 0, v_a_3656_); +v___x_3661_ = v_reuseFailAlloc_3663_; +goto v_reusejp_3660_; +} +v_reusejp_3660_: +{ +lean_object* v___x_3662_; +v___x_3662_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3662_, 0, v___x_3661_); +return v___x_3662_; } } } else { -lean_object* v___x_3659_; uint8_t v_isShared_3660_; uint8_t v_isSharedCheck_3669_; -v_isSharedCheck_3669_ = !lean_is_exclusive(v_x_3647_); -if (v_isSharedCheck_3669_ == 0) +lean_object* v___x_3666_; uint8_t v_isShared_3667_; uint8_t v_isSharedCheck_3676_; +v_isSharedCheck_3676_ = !lean_is_exclusive(v_x_3654_); +if (v_isSharedCheck_3676_ == 0) { -lean_object* v_unused_3670_; -v_unused_3670_ = lean_ctor_get(v_x_3647_, 0); -lean_dec(v_unused_3670_); -v___x_3659_ = v_x_3647_; -v_isShared_3660_ = v_isSharedCheck_3669_; -goto v_resetjp_3658_; +lean_object* v_unused_3677_; +v_unused_3677_ = lean_ctor_get(v_x_3654_, 0); +lean_dec(v_unused_3677_); +v___x_3666_ = v_x_3654_; +v_isShared_3667_ = v_isSharedCheck_3676_; +goto v_resetjp_3665_; } else { -lean_dec(v_x_3647_); -v___x_3659_ = lean_box(0); -v_isShared_3660_ = v_isSharedCheck_3669_; -goto v_resetjp_3658_; +lean_dec(v_x_3654_); +v___x_3666_ = lean_box(0); +v_isShared_3667_ = v_isSharedCheck_3676_; +goto v_resetjp_3665_; } -v_resetjp_3658_: +v_resetjp_3665_: { -lean_object* v___x_3661_; lean_object* v___x_3663_; -v___x_3661_ = lean_st_ref_get(v___y_3645_); -if (v_isShared_3660_ == 0) +lean_object* v___x_3668_; lean_object* v___x_3670_; +v___x_3668_ = lean_st_ref_get(v___y_3652_); +if (v_isShared_3667_ == 0) { -lean_ctor_set(v___x_3659_, 0, v___x_3661_); -v___x_3663_ = v___x_3659_; -goto v_reusejp_3662_; +lean_ctor_set(v___x_3666_, 0, v___x_3668_); +v___x_3670_ = v___x_3666_; +goto v_reusejp_3669_; } else { -lean_object* v_reuseFailAlloc_3668_; -v_reuseFailAlloc_3668_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3668_, 0, v___x_3661_); -v___x_3663_ = v_reuseFailAlloc_3668_; -goto v_reusejp_3662_; +lean_object* v_reuseFailAlloc_3675_; +v_reuseFailAlloc_3675_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3675_, 0, v___x_3668_); +v___x_3670_ = v_reuseFailAlloc_3675_; +goto v_reusejp_3669_; } -v_reusejp_3662_: +v_reusejp_3669_: { -lean_object* v___x_3664_; lean_object* v___x_3665_; uint8_t v___x_3666_; lean_object* v___x_3667_; -v___x_3664_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3664_, 0, v___x_3663_); -v___x_3665_ = lean_unsigned_to_nat(0u); -v___x_3666_ = 0; -v___x_3667_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3665_, v___x_3666_, v___x_3664_, v___f_3646_); -return v___x_3667_; +lean_object* v___x_3671_; lean_object* v___x_3672_; uint8_t v___x_3673_; lean_object* v___x_3674_; +v___x_3671_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3671_, 0, v___x_3670_); +v___x_3672_ = lean_unsigned_to_nat(0u); +v___x_3673_ = 0; +v___x_3674_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3672_, v___x_3673_, v___x_3671_, v___f_3653_); +return v___x_3674_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__5___boxed(lean_object* v___y_3671_, lean_object* v___f_3672_, lean_object* v_x_3673_, lean_object* v___y_3674_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__5___boxed(lean_object* v___y_3678_, lean_object* v___f_3679_, lean_object* v_x_3680_, lean_object* v___y_3681_){ _start: { -lean_object* v_res_3675_; -v_res_3675_ = l_Std_Http_Body_Stream_interestSelector___lam__5(v___y_3671_, v___f_3672_, v_x_3673_); -lean_dec(v___y_3671_); -return v_res_3675_; +lean_object* v_res_3682_; +v_res_3682_ = l_Std_Http_Body_Stream_interestSelector___lam__5(v___y_3678_, v___f_3679_, v_x_3680_); +lean_dec(v___y_3678_); +return v_res_3682_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__6(lean_object* v___f_3676_, lean_object* v___y_3677_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__6(lean_object* v___f_3683_, lean_object* v___y_3684_){ _start: { -lean_object* v___x_3679_; lean_object* v___f_3680_; lean_object* v___x_3681_; uint8_t v___x_3682_; lean_object* v___x_3683_; -v___x_3679_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3677_); -lean_inc(v___y_3677_); -v___f_3680_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__5___boxed), 4, 2); -lean_closure_set(v___f_3680_, 0, v___y_3677_); -lean_closure_set(v___f_3680_, 1, v___f_3676_); -v___x_3681_ = lean_unsigned_to_nat(0u); -v___x_3682_ = 0; -v___x_3683_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3681_, v___x_3682_, v___x_3679_, v___f_3680_); -return v___x_3683_; +lean_object* v___x_3686_; lean_object* v___f_3687_; lean_object* v___x_3688_; uint8_t v___x_3689_; lean_object* v___x_3690_; +v___x_3686_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_pruneFinishedWaiters___at___00Std_Http_Body_Stream_tryRecv_spec__1(v___y_3684_); +lean_inc(v___y_3684_); +v___f_3687_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__5___boxed), 4, 2); +lean_closure_set(v___f_3687_, 0, v___y_3684_); +lean_closure_set(v___f_3687_, 1, v___f_3683_); +v___x_3688_ = lean_unsigned_to_nat(0u); +v___x_3689_ = 0; +v___x_3690_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3688_, v___x_3689_, v___x_3686_, v___f_3687_); +return v___x_3690_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__6___boxed(lean_object* v___f_3684_, lean_object* v___y_3685_, lean_object* v___y_3686_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector___lam__6___boxed(lean_object* v___f_3691_, lean_object* v___y_3692_, lean_object* v___y_3693_){ _start: { -lean_object* v_res_3687_; -v_res_3687_ = l_Std_Http_Body_Stream_interestSelector___lam__6(v___f_3684_, v___y_3685_); -lean_dec(v___y_3685_); -return v_res_3687_; +lean_object* v_res_3694_; +v_res_3694_ = l_Std_Http_Body_Stream_interestSelector___lam__6(v___f_3691_, v___y_3692_); +lean_dec(v___y_3692_); +return v_res_3694_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector(lean_object* v_stream_3691_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_interestSelector(lean_object* v_stream_3698_){ _start: { -lean_object* v___f_3692_; lean_object* v___f_3693_; lean_object* v___f_3694_; lean_object* v___x_3695_; lean_object* v___x_3696_; lean_object* v___x_3697_; -v___f_3692_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___closed__1)); -lean_inc_ref_n(v_stream_3691_, 2); -v___f_3693_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__4___boxed), 3, 1); -lean_closure_set(v___f_3693_, 0, v_stream_3691_); -v___f_3694_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___closed__1)); -v___x_3695_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); -lean_closure_set(v___x_3695_, 0, lean_box(0)); -lean_closure_set(v___x_3695_, 1, lean_box(0)); -lean_closure_set(v___x_3695_, 2, v_stream_3691_); -lean_closure_set(v___x_3695_, 3, v___f_3694_); -v___x_3696_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); -lean_closure_set(v___x_3696_, 0, lean_box(0)); -lean_closure_set(v___x_3696_, 1, lean_box(0)); -lean_closure_set(v___x_3696_, 2, v_stream_3691_); -lean_closure_set(v___x_3696_, 3, v___f_3692_); -v___x_3697_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_3697_, 0, v___x_3695_); -lean_ctor_set(v___x_3697_, 1, v___f_3693_); -lean_ctor_set(v___x_3697_, 2, v___x_3696_); -return v___x_3697_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__0(lean_object* v___y_3698_){ -_start: -{ -if (lean_obj_tag(v___y_3698_) == 0) -{ -lean_object* v_a_3699_; lean_object* v___x_3701_; uint8_t v_isShared_3702_; uint8_t v_isSharedCheck_3706_; -v_a_3699_ = lean_ctor_get(v___y_3698_, 0); -v_isSharedCheck_3706_ = !lean_is_exclusive(v___y_3698_); -if (v_isSharedCheck_3706_ == 0) -{ -v___x_3701_ = v___y_3698_; -v_isShared_3702_ = v_isSharedCheck_3706_; -goto v_resetjp_3700_; -} -else -{ -lean_inc(v_a_3699_); -lean_dec(v___y_3698_); -v___x_3701_ = lean_box(0); -v_isShared_3702_ = v_isSharedCheck_3706_; -goto v_resetjp_3700_; -} -v_resetjp_3700_: -{ -lean_object* v___x_3704_; -if (v_isShared_3702_ == 0) -{ -v___x_3704_ = v___x_3701_; -goto v_reusejp_3703_; -} -else -{ -lean_object* v_reuseFailAlloc_3705_; -v_reuseFailAlloc_3705_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3705_, 0, v_a_3699_); -v___x_3704_ = v_reuseFailAlloc_3705_; -goto v_reusejp_3703_; -} -v_reusejp_3703_: -{ +lean_object* v___f_3699_; lean_object* v___f_3700_; lean_object* v___f_3701_; lean_object* v___x_3702_; lean_object* v___x_3703_; lean_object* v___x_3704_; +v___f_3699_ = ((lean_object*)(l_Std_Http_Body_Stream_recvSelector___closed__0)); +lean_inc_ref_n(v_stream_3698_, 2); +v___f_3700_ = lean_alloc_closure((void*)(l_Std_Http_Body_Stream_interestSelector___lam__4___boxed), 3, 1); +lean_closure_set(v___f_3700_, 0, v_stream_3698_); +v___f_3701_ = ((lean_object*)(l_Std_Http_Body_Stream_interestSelector___closed__1)); +v___x_3702_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); +lean_closure_set(v___x_3702_, 0, lean_box(0)); +lean_closure_set(v___x_3702_, 1, lean_box(0)); +lean_closure_set(v___x_3702_, 2, v_stream_3698_); +lean_closure_set(v___x_3702_, 3, v___f_3701_); +v___x_3703_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___boxed), 5, 4); +lean_closure_set(v___x_3703_, 0, lean_box(0)); +lean_closure_set(v___x_3703_, 1, lean_box(0)); +lean_closure_set(v___x_3703_, 2, v_stream_3698_); +lean_closure_set(v___x_3703_, 3, v___f_3699_); +v___x_3704_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_3704_, 0, v___x_3702_); +lean_ctor_set(v___x_3704_, 1, v___f_3700_); +lean_ctor_set(v___x_3704_, 2, v___x_3703_); return v___x_3704_; } } -} -else -{ -lean_object* v_a_3707_; lean_object* v___x_3709_; uint8_t v_isShared_3710_; uint8_t v_isSharedCheck_3715_; -v_a_3707_ = lean_ctor_get(v___y_3698_, 0); -v_isSharedCheck_3715_ = !lean_is_exclusive(v___y_3698_); -if (v_isSharedCheck_3715_ == 0) -{ -v___x_3709_ = v___y_3698_; -v_isShared_3710_ = v_isSharedCheck_3715_; -goto v_resetjp_3708_; -} -else -{ -lean_inc(v_a_3707_); -lean_dec(v___y_3698_); -v___x_3709_ = lean_box(0); -v_isShared_3710_ = v_isSharedCheck_3715_; -goto v_resetjp_3708_; -} -v_resetjp_3708_: -{ -lean_object* v_fst_3711_; lean_object* v___x_3713_; -v_fst_3711_ = lean_ctor_get(v_a_3707_, 0); -lean_inc(v_fst_3711_); -lean_dec(v_a_3707_); -if (v_isShared_3710_ == 0) -{ -lean_ctor_set(v___x_3709_, 0, v_fst_3711_); -v___x_3713_ = v___x_3709_; -goto v_reusejp_3712_; -} -else -{ -lean_object* v_reuseFailAlloc_3714_; -v_reuseFailAlloc_3714_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3714_, 0, v_fst_3711_); -v___x_3713_ = v_reuseFailAlloc_3714_; -goto v_reusejp_3712_; -} -v_reusejp_3712_: -{ -return v___x_3713_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__1(lean_object* v_a_3716_, lean_object* v_x_3717_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__0(lean_object* v___y_3705_){ _start: { -lean_object* v___x_3719_; -v___x_3719_ = l_Std_Http_Body_Stream_close(v_a_3716_); -return v___x_3719_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__1___boxed(lean_object* v_a_3720_, lean_object* v_x_3721_, lean_object* v___y_3722_){ -_start: +if (lean_obj_tag(v___y_3705_) == 0) { -lean_object* v_res_3723_; -v_res_3723_ = l_Std_Http_Body_stream___lam__1(v_a_3720_, v_x_3721_); -lean_dec(v_x_3721_); -return v_res_3723_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__2(lean_object* v___x_3724_, lean_object* v___f_3725_, lean_object* v___x_3726_, lean_object* v___f_3727_){ -_start: +lean_object* v_a_3706_; lean_object* v___x_3708_; uint8_t v_isShared_3709_; uint8_t v_isSharedCheck_3713_; +v_a_3706_ = lean_ctor_get(v___y_3705_, 0); +v_isSharedCheck_3713_ = !lean_is_exclusive(v___y_3705_); +if (v_isSharedCheck_3713_ == 0) { -uint8_t v___x_3729_; lean_object* v___x_3730_; lean_object* v___y_3732_; -v___x_3729_ = 0; -lean_inc(v___x_3726_); -v___x_3730_ = l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(v___x_3724_, v___f_3725_, v___x_3726_, v___x_3729_); -if (lean_obj_tag(v___x_3730_) == 0) -{ -lean_object* v_a_3734_; -lean_dec_ref(v___f_3727_); -lean_dec(v___x_3726_); -v_a_3734_ = lean_ctor_get(v___x_3730_, 0); -lean_inc(v_a_3734_); -lean_dec_ref(v___x_3730_); -if (lean_obj_tag(v_a_3734_) == 0) -{ -lean_object* v_a_3735_; lean_object* v___x_3737_; uint8_t v_isShared_3738_; uint8_t v_isSharedCheck_3742_; -v_a_3735_ = lean_ctor_get(v_a_3734_, 0); -v_isSharedCheck_3742_ = !lean_is_exclusive(v_a_3734_); -if (v_isSharedCheck_3742_ == 0) -{ -v___x_3737_ = v_a_3734_; -v_isShared_3738_ = v_isSharedCheck_3742_; -goto v_resetjp_3736_; +v___x_3708_ = v___y_3705_; +v_isShared_3709_ = v_isSharedCheck_3713_; +goto v_resetjp_3707_; } else { -lean_inc(v_a_3735_); -lean_dec(v_a_3734_); -v___x_3737_ = lean_box(0); -v_isShared_3738_ = v_isSharedCheck_3742_; -goto v_resetjp_3736_; +lean_inc(v_a_3706_); +lean_dec(v___y_3705_); +v___x_3708_ = lean_box(0); +v_isShared_3709_ = v_isSharedCheck_3713_; +goto v_resetjp_3707_; } -v_resetjp_3736_: +v_resetjp_3707_: +{ +lean_object* v___x_3711_; +if (v_isShared_3709_ == 0) +{ +v___x_3711_ = v___x_3708_; +goto v_reusejp_3710_; +} +else +{ +lean_object* v_reuseFailAlloc_3712_; +v_reuseFailAlloc_3712_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3712_, 0, v_a_3706_); +v___x_3711_ = v_reuseFailAlloc_3712_; +goto v_reusejp_3710_; +} +v_reusejp_3710_: +{ +return v___x_3711_; +} +} +} +else +{ +lean_object* v_a_3714_; lean_object* v___x_3716_; uint8_t v_isShared_3717_; uint8_t v_isSharedCheck_3722_; +v_a_3714_ = lean_ctor_get(v___y_3705_, 0); +v_isSharedCheck_3722_ = !lean_is_exclusive(v___y_3705_); +if (v_isSharedCheck_3722_ == 0) +{ +v___x_3716_ = v___y_3705_; +v_isShared_3717_ = v_isSharedCheck_3722_; +goto v_resetjp_3715_; +} +else +{ +lean_inc(v_a_3714_); +lean_dec(v___y_3705_); +v___x_3716_ = lean_box(0); +v_isShared_3717_ = v_isSharedCheck_3722_; +goto v_resetjp_3715_; +} +v_resetjp_3715_: +{ +lean_object* v_fst_3718_; lean_object* v___x_3720_; +v_fst_3718_ = lean_ctor_get(v_a_3714_, 0); +lean_inc(v_fst_3718_); +lean_dec(v_a_3714_); +if (v_isShared_3717_ == 0) +{ +lean_ctor_set(v___x_3716_, 0, v_fst_3718_); +v___x_3720_ = v___x_3716_; +goto v_reusejp_3719_; +} +else +{ +lean_object* v_reuseFailAlloc_3721_; +v_reuseFailAlloc_3721_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3721_, 0, v_fst_3718_); +v___x_3720_ = v_reuseFailAlloc_3721_; +goto v_reusejp_3719_; +} +v_reusejp_3719_: +{ +return v___x_3720_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__1(lean_object* v_a_3723_, lean_object* v_x_3724_){ +_start: +{ +lean_object* v___x_3726_; +v___x_3726_ = l_Std_Http_Body_Stream_close(v_a_3723_); +return v___x_3726_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__1___boxed(lean_object* v_a_3727_, lean_object* v_x_3728_, lean_object* v___y_3729_){ +_start: +{ +lean_object* v_res_3730_; +v_res_3730_ = l_Std_Http_Body_stream___lam__1(v_a_3727_, v_x_3728_); +lean_dec(v_x_3728_); +return v_res_3730_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__2(lean_object* v___x_3731_, lean_object* v___f_3732_, lean_object* v___x_3733_, lean_object* v___f_3734_){ +_start: +{ +uint8_t v___x_3736_; lean_object* v___x_3737_; lean_object* v___y_3739_; +v___x_3736_ = 0; +lean_inc(v___x_3733_); +v___x_3737_ = l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(v___x_3731_, v___f_3732_, v___x_3733_, v___x_3736_); +if (lean_obj_tag(v___x_3737_) == 0) +{ +lean_object* v_a_3741_; +lean_dec_ref(v___f_3734_); +lean_dec(v___x_3733_); +v_a_3741_ = lean_ctor_get(v___x_3737_, 0); +lean_inc(v_a_3741_); +lean_dec_ref(v___x_3737_); +if (lean_obj_tag(v_a_3741_) == 0) +{ +lean_object* v_a_3742_; lean_object* v___x_3744_; uint8_t v_isShared_3745_; uint8_t v_isSharedCheck_3749_; +v_a_3742_ = lean_ctor_get(v_a_3741_, 0); +v_isSharedCheck_3749_ = !lean_is_exclusive(v_a_3741_); +if (v_isSharedCheck_3749_ == 0) +{ +v___x_3744_ = v_a_3741_; +v_isShared_3745_ = v_isSharedCheck_3749_; +goto v_resetjp_3743_; +} +else +{ +lean_inc(v_a_3742_); +lean_dec(v_a_3741_); +v___x_3744_ = lean_box(0); +v_isShared_3745_ = v_isSharedCheck_3749_; +goto v_resetjp_3743_; +} +v_resetjp_3743_: +{ +lean_object* v___x_3747_; +if (v_isShared_3745_ == 0) +{ +v___x_3747_ = v___x_3744_; +goto v_reusejp_3746_; +} +else +{ +lean_object* v_reuseFailAlloc_3748_; +v_reuseFailAlloc_3748_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3748_, 0, v_a_3742_); +v___x_3747_ = v_reuseFailAlloc_3748_; +goto v_reusejp_3746_; +} +v_reusejp_3746_: +{ +v___y_3739_ = v___x_3747_; +goto v___jp_3738_; +} +} +} +else +{ +lean_object* v_a_3750_; lean_object* v___x_3752_; uint8_t v_isShared_3753_; uint8_t v_isSharedCheck_3758_; +v_a_3750_ = lean_ctor_get(v_a_3741_, 0); +v_isSharedCheck_3758_ = !lean_is_exclusive(v_a_3741_); +if (v_isSharedCheck_3758_ == 0) +{ +v___x_3752_ = v_a_3741_; +v_isShared_3753_ = v_isSharedCheck_3758_; +goto v_resetjp_3751_; +} +else +{ +lean_inc(v_a_3750_); +lean_dec(v_a_3741_); +v___x_3752_ = lean_box(0); +v_isShared_3753_ = v_isSharedCheck_3758_; +goto v_resetjp_3751_; +} +v_resetjp_3751_: +{ +lean_object* v_fst_3754_; lean_object* v___x_3756_; +v_fst_3754_ = lean_ctor_get(v_a_3750_, 0); +lean_inc(v_fst_3754_); +lean_dec(v_a_3750_); +if (v_isShared_3753_ == 0) +{ +lean_ctor_set(v___x_3752_, 0, v_fst_3754_); +v___x_3756_ = v___x_3752_; +goto v_reusejp_3755_; +} +else +{ +lean_object* v_reuseFailAlloc_3757_; +v_reuseFailAlloc_3757_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3757_, 0, v_fst_3754_); +v___x_3756_ = v_reuseFailAlloc_3757_; +goto v_reusejp_3755_; +} +v_reusejp_3755_: +{ +v___y_3739_ = v___x_3756_; +goto v___jp_3738_; +} +} +} +} +else +{ +lean_object* v_a_3759_; lean_object* v___x_3761_; uint8_t v_isShared_3762_; uint8_t v_isSharedCheck_3767_; +v_a_3759_ = lean_ctor_get(v___x_3737_, 0); +v_isSharedCheck_3767_ = !lean_is_exclusive(v___x_3737_); +if (v_isSharedCheck_3767_ == 0) +{ +v___x_3761_ = v___x_3737_; +v_isShared_3762_ = v_isSharedCheck_3767_; +goto v_resetjp_3760_; +} +else +{ +lean_inc(v_a_3759_); +lean_dec(v___x_3737_); +v___x_3761_ = lean_box(0); +v_isShared_3762_ = v_isSharedCheck_3767_; +goto v_resetjp_3760_; +} +v_resetjp_3760_: +{ +lean_object* v___x_3763_; lean_object* v___x_3765_; +v___x_3763_ = lean_task_map(v___f_3734_, v_a_3759_, v___x_3733_, v___x_3736_); +if (v_isShared_3762_ == 0) +{ +lean_ctor_set(v___x_3761_, 0, v___x_3763_); +v___x_3765_ = v___x_3761_; +goto v_reusejp_3764_; +} +else +{ +lean_object* v_reuseFailAlloc_3766_; +v_reuseFailAlloc_3766_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3766_, 0, v___x_3763_); +v___x_3765_ = v_reuseFailAlloc_3766_; +goto v_reusejp_3764_; +} +v_reusejp_3764_: +{ +return v___x_3765_; +} +} +} +v___jp_3738_: { lean_object* v___x_3740_; -if (v_isShared_3738_ == 0) -{ -v___x_3740_ = v___x_3737_; -goto v_reusejp_3739_; -} -else -{ -lean_object* v_reuseFailAlloc_3741_; -v_reuseFailAlloc_3741_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3741_, 0, v_a_3735_); -v___x_3740_ = v_reuseFailAlloc_3741_; -goto v_reusejp_3739_; -} -v_reusejp_3739_: -{ -v___y_3732_ = v___x_3740_; -goto v___jp_3731_; +v___x_3740_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3740_, 0, v___y_3739_); +return v___x_3740_; } } } -else -{ -lean_object* v_a_3743_; lean_object* v___x_3745_; uint8_t v_isShared_3746_; uint8_t v_isSharedCheck_3751_; -v_a_3743_ = lean_ctor_get(v_a_3734_, 0); -v_isSharedCheck_3751_ = !lean_is_exclusive(v_a_3734_); -if (v_isSharedCheck_3751_ == 0) -{ -v___x_3745_ = v_a_3734_; -v_isShared_3746_ = v_isSharedCheck_3751_; -goto v_resetjp_3744_; -} -else -{ -lean_inc(v_a_3743_); -lean_dec(v_a_3734_); -v___x_3745_ = lean_box(0); -v_isShared_3746_ = v_isSharedCheck_3751_; -goto v_resetjp_3744_; -} -v_resetjp_3744_: -{ -lean_object* v_fst_3747_; lean_object* v___x_3749_; -v_fst_3747_ = lean_ctor_get(v_a_3743_, 0); -lean_inc(v_fst_3747_); -lean_dec(v_a_3743_); -if (v_isShared_3746_ == 0) -{ -lean_ctor_set(v___x_3745_, 0, v_fst_3747_); -v___x_3749_ = v___x_3745_; -goto v_reusejp_3748_; -} -else -{ -lean_object* v_reuseFailAlloc_3750_; -v_reuseFailAlloc_3750_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3750_, 0, v_fst_3747_); -v___x_3749_ = v_reuseFailAlloc_3750_; -goto v_reusejp_3748_; -} -v_reusejp_3748_: -{ -v___y_3732_ = v___x_3749_; -goto v___jp_3731_; -} -} -} -} -else -{ -lean_object* v_a_3752_; lean_object* v___x_3754_; uint8_t v_isShared_3755_; uint8_t v_isSharedCheck_3760_; -v_a_3752_ = lean_ctor_get(v___x_3730_, 0); -v_isSharedCheck_3760_ = !lean_is_exclusive(v___x_3730_); -if (v_isSharedCheck_3760_ == 0) -{ -v___x_3754_ = v___x_3730_; -v_isShared_3755_ = v_isSharedCheck_3760_; -goto v_resetjp_3753_; -} -else -{ -lean_inc(v_a_3752_); -lean_dec(v___x_3730_); -v___x_3754_ = lean_box(0); -v_isShared_3755_ = v_isSharedCheck_3760_; -goto v_resetjp_3753_; -} -v_resetjp_3753_: -{ -lean_object* v___x_3756_; lean_object* v___x_3758_; -v___x_3756_ = lean_task_map(v___f_3727_, v_a_3752_, v___x_3726_, v___x_3729_); -if (v_isShared_3755_ == 0) -{ -lean_ctor_set(v___x_3754_, 0, v___x_3756_); -v___x_3758_ = v___x_3754_; -goto v_reusejp_3757_; -} -else -{ -lean_object* v_reuseFailAlloc_3759_; -v_reuseFailAlloc_3759_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3759_, 0, v___x_3756_); -v___x_3758_ = v_reuseFailAlloc_3759_; -goto v_reusejp_3757_; -} -v_reusejp_3757_: -{ -return v___x_3758_; -} -} -} -v___jp_3731_: -{ -lean_object* v___x_3733_; -v___x_3733_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3733_, 0, v___y_3732_); -return v___x_3733_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__2___boxed(lean_object* v___x_3761_, lean_object* v___f_3762_, lean_object* v___x_3763_, lean_object* v___f_3764_, lean_object* v___y_3765_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__2___boxed(lean_object* v___x_3768_, lean_object* v___f_3769_, lean_object* v___x_3770_, lean_object* v___f_3771_, lean_object* v___y_3772_){ _start: { -lean_object* v_res_3766_; -v_res_3766_ = l_Std_Http_Body_stream___lam__2(v___x_3761_, v___f_3762_, v___x_3763_, v___f_3764_); -return v_res_3766_; +lean_object* v_res_3773_; +v_res_3773_ = l_Std_Http_Body_stream___lam__2(v___x_3768_, v___f_3769_, v___x_3770_, v___f_3771_); +return v_res_3773_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__3(lean_object* v_x_3767_, lean_object* v_x_3768_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__3(lean_object* v_x_3774_, lean_object* v_x_3775_){ _start: { -if (lean_obj_tag(v_x_3768_) == 0) +if (lean_obj_tag(v_x_3775_) == 0) { -lean_object* v_a_3770_; lean_object* v___x_3772_; uint8_t v_isShared_3773_; uint8_t v_isSharedCheck_3778_; -lean_dec_ref(v_x_3767_); -v_a_3770_ = lean_ctor_get(v_x_3768_, 0); -v_isSharedCheck_3778_ = !lean_is_exclusive(v_x_3768_); -if (v_isSharedCheck_3778_ == 0) +lean_object* v_a_3777_; lean_object* v___x_3779_; uint8_t v_isShared_3780_; uint8_t v_isSharedCheck_3785_; +lean_dec_ref(v_x_3774_); +v_a_3777_ = lean_ctor_get(v_x_3775_, 0); +v_isSharedCheck_3785_ = !lean_is_exclusive(v_x_3775_); +if (v_isSharedCheck_3785_ == 0) { -v___x_3772_ = v_x_3768_; -v_isShared_3773_ = v_isSharedCheck_3778_; -goto v_resetjp_3771_; +v___x_3779_ = v_x_3775_; +v_isShared_3780_ = v_isSharedCheck_3785_; +goto v_resetjp_3778_; } else { -lean_inc(v_a_3770_); -lean_dec(v_x_3768_); -v___x_3772_ = lean_box(0); -v_isShared_3773_ = v_isSharedCheck_3778_; -goto v_resetjp_3771_; +lean_inc(v_a_3777_); +lean_dec(v_x_3775_); +v___x_3779_ = lean_box(0); +v_isShared_3780_ = v_isSharedCheck_3785_; +goto v_resetjp_3778_; } -v_resetjp_3771_: +v_resetjp_3778_: { -lean_object* v___x_3775_; -if (v_isShared_3773_ == 0) +lean_object* v___x_3782_; +if (v_isShared_3780_ == 0) { -v___x_3775_ = v___x_3772_; -goto v_reusejp_3774_; +v___x_3782_ = v___x_3779_; +goto v_reusejp_3781_; } else { -lean_object* v_reuseFailAlloc_3777_; -v_reuseFailAlloc_3777_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3777_, 0, v_a_3770_); -v___x_3775_ = v_reuseFailAlloc_3777_; -goto v_reusejp_3774_; +lean_object* v_reuseFailAlloc_3784_; +v_reuseFailAlloc_3784_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3784_, 0, v_a_3777_); +v___x_3782_ = v_reuseFailAlloc_3784_; +goto v_reusejp_3781_; } -v_reusejp_3774_: +v_reusejp_3781_: { -lean_object* v___x_3776_; -v___x_3776_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3776_, 0, v___x_3775_); -return v___x_3776_; +lean_object* v___x_3783_; +v___x_3783_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3783_, 0, v___x_3782_); +return v___x_3783_; } } } else { -lean_object* v___x_3779_; -lean_dec_ref(v_x_3768_); -v___x_3779_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3779_, 0, v_x_3767_); -return v___x_3779_; +lean_object* v___x_3786_; +lean_dec_ref(v_x_3775_); +v___x_3786_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3786_, 0, v_x_3774_); +return v___x_3786_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__3___boxed(lean_object* v_x_3780_, lean_object* v_x_3781_, lean_object* v___y_3782_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__3___boxed(lean_object* v_x_3787_, lean_object* v_x_3788_, lean_object* v___y_3789_){ _start: { -lean_object* v_res_3783_; -v_res_3783_ = l_Std_Http_Body_stream___lam__3(v_x_3780_, v_x_3781_); -return v_res_3783_; +lean_object* v_res_3790_; +v_res_3790_ = l_Std_Http_Body_stream___lam__3(v_x_3787_, v_x_3788_); +return v_res_3790_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__4(lean_object* v_gen_3784_, lean_object* v___f_3785_, lean_object* v_x_3786_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__4(lean_object* v_gen_3791_, lean_object* v___f_3792_, lean_object* v_x_3793_){ _start: { -if (lean_obj_tag(v_x_3786_) == 0) +if (lean_obj_tag(v_x_3793_) == 0) { -lean_object* v___x_3788_; -lean_dec_ref(v___f_3785_); -lean_dec_ref(v_gen_3784_); -v___x_3788_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3788_, 0, v_x_3786_); -return v___x_3788_; +lean_object* v___x_3795_; +lean_dec_ref(v___f_3792_); +lean_dec_ref(v_gen_3791_); +v___x_3795_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3795_, 0, v_x_3793_); +return v___x_3795_; } else { -lean_object* v_a_3789_; lean_object* v___f_3790_; lean_object* v___x_3791_; lean_object* v___x_3792_; lean_object* v___f_3793_; lean_object* v___x_3794_; lean_object* v___f_3795_; lean_object* v___x_3796_; uint8_t v___x_3797_; lean_object* v___x_3798_; -v_a_3789_ = lean_ctor_get(v_x_3786_, 0); -lean_inc_n(v_a_3789_, 2); -v___f_3790_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__1___boxed), 3, 1); -lean_closure_set(v___f_3790_, 0, v_a_3789_); -v___x_3791_ = lean_apply_1(v_gen_3784_, v_a_3789_); -v___x_3792_ = lean_unsigned_to_nat(0u); -v___f_3793_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__2___boxed), 5, 4); -lean_closure_set(v___f_3793_, 0, v___x_3791_); -lean_closure_set(v___f_3793_, 1, v___f_3790_); -lean_closure_set(v___f_3793_, 2, v___x_3792_); -lean_closure_set(v___f_3793_, 3, v___f_3785_); -v___x_3794_ = lean_io_as_task(v___f_3793_, v___x_3792_); -lean_dec_ref(v___x_3794_); -v___f_3795_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__3___boxed), 3, 1); -lean_closure_set(v___f_3795_, 0, v_x_3786_); -v___x_3796_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -v___x_3797_ = 0; -v___x_3798_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3792_, v___x_3797_, v___x_3796_, v___f_3795_); -return v___x_3798_; +lean_object* v_a_3796_; lean_object* v___f_3797_; lean_object* v___x_3798_; lean_object* v___x_3799_; lean_object* v___f_3800_; lean_object* v___x_3801_; lean_object* v___f_3802_; lean_object* v___x_3803_; uint8_t v___x_3804_; lean_object* v___x_3805_; +v_a_3796_ = lean_ctor_get(v_x_3793_, 0); +lean_inc_n(v_a_3796_, 2); +v___f_3797_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__1___boxed), 3, 1); +lean_closure_set(v___f_3797_, 0, v_a_3796_); +v___x_3798_ = lean_apply_1(v_gen_3791_, v_a_3796_); +v___x_3799_ = lean_unsigned_to_nat(0u); +v___f_3800_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__2___boxed), 5, 4); +lean_closure_set(v___f_3800_, 0, v___x_3798_); +lean_closure_set(v___f_3800_, 1, v___f_3797_); +lean_closure_set(v___f_3800_, 2, v___x_3799_); +lean_closure_set(v___f_3800_, 3, v___f_3792_); +v___x_3801_ = lean_io_as_task(v___f_3800_, v___x_3799_); +lean_dec_ref(v___x_3801_); +v___f_3802_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__3___boxed), 3, 1); +lean_closure_set(v___f_3802_, 0, v_x_3793_); +v___x_3803_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +v___x_3804_ = 0; +v___x_3805_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3799_, v___x_3804_, v___x_3803_, v___f_3802_); +return v___x_3805_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__4___boxed(lean_object* v_gen_3799_, lean_object* v___f_3800_, lean_object* v_x_3801_, lean_object* v___y_3802_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___lam__4___boxed(lean_object* v_gen_3806_, lean_object* v___f_3807_, lean_object* v_x_3808_, lean_object* v___y_3809_){ _start: { -lean_object* v_res_3803_; -v_res_3803_ = l_Std_Http_Body_stream___lam__4(v_gen_3799_, v___f_3800_, v_x_3801_); -return v_res_3803_; +lean_object* v_res_3810_; +v_res_3810_ = l_Std_Http_Body_stream___lam__4(v_gen_3806_, v___f_3807_, v_x_3808_); +return v_res_3810_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream(lean_object* v_gen_3805_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream(lean_object* v_gen_3812_){ _start: { -lean_object* v___x_3807_; lean_object* v___f_3808_; lean_object* v___f_3809_; lean_object* v___x_3810_; uint8_t v___x_3811_; lean_object* v___x_3812_; -v___x_3807_ = l_Std_Http_Body_mkStream(); -v___f_3808_ = ((lean_object*)(l_Std_Http_Body_stream___closed__0)); -v___f_3809_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__4___boxed), 4, 2); -lean_closure_set(v___f_3809_, 0, v_gen_3805_); -lean_closure_set(v___f_3809_, 1, v___f_3808_); -v___x_3810_ = lean_unsigned_to_nat(0u); -v___x_3811_ = 0; -v___x_3812_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3810_, v___x_3811_, v___x_3807_, v___f_3809_); -return v___x_3812_; +lean_object* v___x_3814_; lean_object* v___f_3815_; lean_object* v___f_3816_; lean_object* v___x_3817_; uint8_t v___x_3818_; lean_object* v___x_3819_; +v___x_3814_ = l_Std_Http_Body_mkStream(); +v___f_3815_ = ((lean_object*)(l_Std_Http_Body_stream___closed__0)); +v___f_3816_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__4___boxed), 4, 2); +lean_closure_set(v___f_3816_, 0, v_gen_3812_); +lean_closure_set(v___f_3816_, 1, v___f_3815_); +v___x_3817_ = lean_unsigned_to_nat(0u); +v___x_3818_ = 0; +v___x_3819_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3817_, v___x_3818_, v___x_3814_, v___f_3816_); +return v___x_3819_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_stream___boxed(lean_object* v_gen_3813_, lean_object* v_a_3814_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_stream___boxed(lean_object* v_gen_3820_, lean_object* v_a_3821_){ _start: { -lean_object* v_res_3815_; -v_res_3815_ = l_Std_Http_Body_stream(v_gen_3813_); -return v_res_3815_; +lean_object* v_res_3822_; +v_res_3822_ = l_Std_Http_Body_stream(v_gen_3820_); +return v_res_3822_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__0(lean_object* v___x_3816_, lean_object* v___y_3817_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__0(lean_object* v___x_3823_, lean_object* v___y_3824_){ _start: { -lean_object* v___x_3819_; lean_object* v_pendingProducer_3820_; lean_object* v_pendingConsumer_3821_; lean_object* v_interestWaiter_3822_; uint8_t v_closed_3823_; lean_object* v_pendingIncompleteChunk_3824_; lean_object* v___x_3826_; uint8_t v_isShared_3827_; uint8_t v_isSharedCheck_3833_; -v___x_3819_ = lean_st_ref_take(v___y_3817_); -v_pendingProducer_3820_ = lean_ctor_get(v___x_3819_, 0); -v_pendingConsumer_3821_ = lean_ctor_get(v___x_3819_, 1); -v_interestWaiter_3822_ = lean_ctor_get(v___x_3819_, 2); -v_closed_3823_ = lean_ctor_get_uint8(v___x_3819_, sizeof(void*)*5); -v_pendingIncompleteChunk_3824_ = lean_ctor_get(v___x_3819_, 4); -v_isSharedCheck_3833_ = !lean_is_exclusive(v___x_3819_); -if (v_isSharedCheck_3833_ == 0) +lean_object* v___x_3826_; lean_object* v_pendingProducer_3827_; lean_object* v_pendingConsumer_3828_; lean_object* v_interestWaiter_3829_; uint8_t v_closed_3830_; lean_object* v_pendingIncompleteChunk_3831_; lean_object* v___x_3833_; uint8_t v_isShared_3834_; uint8_t v_isSharedCheck_3840_; +v___x_3826_ = lean_st_ref_take(v___y_3824_); +v_pendingProducer_3827_ = lean_ctor_get(v___x_3826_, 0); +v_pendingConsumer_3828_ = lean_ctor_get(v___x_3826_, 1); +v_interestWaiter_3829_ = lean_ctor_get(v___x_3826_, 2); +v_closed_3830_ = lean_ctor_get_uint8(v___x_3826_, sizeof(void*)*5); +v_pendingIncompleteChunk_3831_ = lean_ctor_get(v___x_3826_, 4); +v_isSharedCheck_3840_ = !lean_is_exclusive(v___x_3826_); +if (v_isSharedCheck_3840_ == 0) { -lean_object* v_unused_3834_; -v_unused_3834_ = lean_ctor_get(v___x_3819_, 3); -lean_dec(v_unused_3834_); -v___x_3826_ = v___x_3819_; -v_isShared_3827_ = v_isSharedCheck_3833_; -goto v_resetjp_3825_; +lean_object* v_unused_3841_; +v_unused_3841_ = lean_ctor_get(v___x_3826_, 3); +lean_dec(v_unused_3841_); +v___x_3833_ = v___x_3826_; +v_isShared_3834_ = v_isSharedCheck_3840_; +goto v_resetjp_3832_; } else { -lean_inc(v_pendingIncompleteChunk_3824_); -lean_inc(v_interestWaiter_3822_); -lean_inc(v_pendingConsumer_3821_); -lean_inc(v_pendingProducer_3820_); -lean_dec(v___x_3819_); -v___x_3826_ = lean_box(0); -v_isShared_3827_ = v_isSharedCheck_3833_; -goto v_resetjp_3825_; +lean_inc(v_pendingIncompleteChunk_3831_); +lean_inc(v_interestWaiter_3829_); +lean_inc(v_pendingConsumer_3828_); +lean_inc(v_pendingProducer_3827_); +lean_dec(v___x_3826_); +v___x_3833_ = lean_box(0); +v_isShared_3834_ = v_isSharedCheck_3840_; +goto v_resetjp_3832_; } -v_resetjp_3825_: +v_resetjp_3832_: { -lean_object* v___x_3829_; -if (v_isShared_3827_ == 0) +lean_object* v___x_3836_; +if (v_isShared_3834_ == 0) { -lean_ctor_set(v___x_3826_, 3, v___x_3816_); -v___x_3829_ = v___x_3826_; -goto v_reusejp_3828_; +lean_ctor_set(v___x_3833_, 3, v___x_3823_); +v___x_3836_ = v___x_3833_; +goto v_reusejp_3835_; } else { -lean_object* v_reuseFailAlloc_3832_; -v_reuseFailAlloc_3832_ = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(v_reuseFailAlloc_3832_, 0, v_pendingProducer_3820_); -lean_ctor_set(v_reuseFailAlloc_3832_, 1, v_pendingConsumer_3821_); -lean_ctor_set(v_reuseFailAlloc_3832_, 2, v_interestWaiter_3822_); -lean_ctor_set(v_reuseFailAlloc_3832_, 3, v___x_3816_); -lean_ctor_set(v_reuseFailAlloc_3832_, 4, v_pendingIncompleteChunk_3824_); -lean_ctor_set_uint8(v_reuseFailAlloc_3832_, sizeof(void*)*5, v_closed_3823_); -v___x_3829_ = v_reuseFailAlloc_3832_; -goto v_reusejp_3828_; +lean_object* v_reuseFailAlloc_3839_; +v_reuseFailAlloc_3839_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_3839_, 0, v_pendingProducer_3827_); +lean_ctor_set(v_reuseFailAlloc_3839_, 1, v_pendingConsumer_3828_); +lean_ctor_set(v_reuseFailAlloc_3839_, 2, v_interestWaiter_3829_); +lean_ctor_set(v_reuseFailAlloc_3839_, 3, v___x_3823_); +lean_ctor_set(v_reuseFailAlloc_3839_, 4, v_pendingIncompleteChunk_3831_); +lean_ctor_set_uint8(v_reuseFailAlloc_3839_, sizeof(void*)*5, v_closed_3830_); +v___x_3836_ = v_reuseFailAlloc_3839_; +goto v_reusejp_3835_; } -v_reusejp_3828_: +v_reusejp_3835_: { -lean_object* v___x_3830_; lean_object* v___x_3831_; -v___x_3830_ = lean_st_ref_set(v___y_3817_, v___x_3829_); -v___x_3831_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_3831_; +lean_object* v___x_3837_; lean_object* v___x_3838_; +v___x_3837_ = lean_st_ref_set(v___y_3824_, v___x_3836_); +v___x_3838_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_3838_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__0___boxed(lean_object* v___x_3835_, lean_object* v___y_3836_, lean_object* v___y_3837_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__0___boxed(lean_object* v___x_3842_, lean_object* v___y_3843_, lean_object* v___y_3844_){ _start: { -lean_object* v_res_3838_; -v_res_3838_ = l_Std_Http_Body_fromBytes___lam__0(v___x_3835_, v___y_3836_); -lean_dec(v___y_3836_); -return v_res_3838_; +lean_object* v_res_3845_; +v_res_3845_ = l_Std_Http_Body_fromBytes___lam__0(v___x_3842_, v___y_3843_); +lean_dec(v___y_3843_); +return v_res_3845_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__1(lean_object* v___x_3839_, lean_object* v_content_3840_, lean_object* v_s_3841_, lean_object* v_x_3842_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__1(lean_object* v___x_3846_, lean_object* v_content_3847_, lean_object* v_s_3848_, lean_object* v_x_3849_){ _start: { -if (lean_obj_tag(v_x_3842_) == 0) +if (lean_obj_tag(v_x_3849_) == 0) { -lean_object* v___x_3844_; -lean_dec_ref(v_s_3841_); -lean_dec_ref(v_content_3840_); -v___x_3844_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3844_, 0, v_x_3842_); -return v___x_3844_; +lean_object* v___x_3851_; +lean_dec_ref(v_s_3848_); +lean_dec_ref(v_content_3847_); +v___x_3851_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3851_, 0, v_x_3849_); +return v___x_3851_; } else { -lean_object* v___x_3845_; uint8_t v___x_3846_; -lean_dec_ref(v_x_3842_); -v___x_3845_ = lean_unsigned_to_nat(0u); -v___x_3846_ = lean_nat_dec_lt(v___x_3845_, v___x_3839_); -if (v___x_3846_ == 0) +lean_object* v___x_3852_; uint8_t v___x_3853_; +lean_dec_ref(v_x_3849_); +v___x_3852_ = lean_unsigned_to_nat(0u); +v___x_3853_ = lean_nat_dec_lt(v___x_3852_, v___x_3846_); +if (v___x_3853_ == 0) { -lean_object* v___x_3847_; -lean_dec_ref(v_s_3841_); -lean_dec_ref(v_content_3840_); -v___x_3847_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); -return v___x_3847_; +lean_object* v___x_3854_; +lean_dec_ref(v_s_3848_); +lean_dec_ref(v_content_3847_); +v___x_3854_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Channel_tryRecv_x27___at___00Std_Http_Body_Stream_tryRecv_spec__0___lam__1___closed__1)); +return v___x_3854_; } else { -lean_object* v___x_3848_; uint8_t v___x_3849_; lean_object* v___x_3850_; -v___x_3848_ = l_Std_Http_Chunk_ofByteArray(v_content_3840_); -v___x_3849_ = 0; -v___x_3850_ = l_Std_Http_Body_Stream_send(v_s_3841_, v___x_3848_, v___x_3849_); -return v___x_3850_; +lean_object* v___x_3855_; uint8_t v___x_3856_; lean_object* v___x_3857_; +v___x_3855_ = l_Std_Http_Chunk_ofByteArray(v_content_3847_); +v___x_3856_ = 0; +v___x_3857_ = l_Std_Http_Body_Stream_send(v_s_3848_, v___x_3855_, v___x_3856_); +return v___x_3857_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__1___boxed(lean_object* v___x_3851_, lean_object* v_content_3852_, lean_object* v_s_3853_, lean_object* v_x_3854_, lean_object* v___y_3855_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__1___boxed(lean_object* v___x_3858_, lean_object* v_content_3859_, lean_object* v_s_3860_, lean_object* v_x_3861_, lean_object* v___y_3862_){ _start: { -lean_object* v_res_3856_; -v_res_3856_ = l_Std_Http_Body_fromBytes___lam__1(v___x_3851_, v_content_3852_, v_s_3853_, v_x_3854_); -lean_dec(v___x_3851_); -return v_res_3856_; +lean_object* v_res_3863_; +v_res_3863_ = l_Std_Http_Body_fromBytes___lam__1(v___x_3858_, v_content_3859_, v_s_3860_, v_x_3861_); +lean_dec(v___x_3858_); +return v_res_3863_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__2(lean_object* v_content_3857_, lean_object* v_s_3858_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__2(lean_object* v_content_3864_, lean_object* v_s_3865_){ _start: { -lean_object* v___x_3860_; lean_object* v___x_3861_; lean_object* v___x_3862_; lean_object* v___f_3863_; lean_object* v___x_3864_; lean_object* v___f_3865_; lean_object* v___x_3866_; uint8_t v___x_3867_; lean_object* v___x_3868_; -v___x_3860_ = lean_byte_array_size(v_content_3857_); -v___x_3861_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3861_, 0, v___x_3860_); -v___x_3862_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_3862_, 0, v___x_3861_); -v___f_3863_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__0___boxed), 3, 1); -lean_closure_set(v___f_3863_, 0, v___x_3862_); -lean_inc_ref(v_s_3858_); -v___x_3864_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_s_3858_, v___f_3863_); -v___f_3865_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__1___boxed), 5, 3); -lean_closure_set(v___f_3865_, 0, v___x_3860_); -lean_closure_set(v___f_3865_, 1, v_content_3857_); -lean_closure_set(v___f_3865_, 2, v_s_3858_); -v___x_3866_ = lean_unsigned_to_nat(0u); -v___x_3867_ = 0; -v___x_3868_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3866_, v___x_3867_, v___x_3864_, v___f_3865_); -return v___x_3868_; +lean_object* v___x_3867_; lean_object* v___x_3868_; lean_object* v___x_3869_; lean_object* v___f_3870_; lean_object* v___x_3871_; lean_object* v___f_3872_; lean_object* v___x_3873_; uint8_t v___x_3874_; lean_object* v___x_3875_; +v___x_3867_ = lean_byte_array_size(v_content_3864_); +v___x_3868_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3868_, 0, v___x_3867_); +v___x_3869_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3869_, 0, v___x_3868_); +v___f_3870_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__0___boxed), 3, 1); +lean_closure_set(v___f_3870_, 0, v___x_3869_); +lean_inc_ref(v_s_3865_); +v___x_3871_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_s_3865_, v___f_3870_); +v___f_3872_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__1___boxed), 5, 3); +lean_closure_set(v___f_3872_, 0, v___x_3867_); +lean_closure_set(v___f_3872_, 1, v_content_3864_); +lean_closure_set(v___f_3872_, 2, v_s_3865_); +v___x_3873_ = lean_unsigned_to_nat(0u); +v___x_3874_ = 0; +v___x_3875_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3873_, v___x_3874_, v___x_3871_, v___f_3872_); +return v___x_3875_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__2___boxed(lean_object* v_content_3869_, lean_object* v_s_3870_, lean_object* v___y_3871_){ -_start: -{ -lean_object* v_res_3872_; -v_res_3872_ = l_Std_Http_Body_fromBytes___lam__2(v_content_3869_, v_s_3870_); -return v_res_3872_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes(lean_object* v_content_3873_){ -_start: -{ -lean_object* v___f_3875_; lean_object* v___x_3876_; -v___f_3875_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__2___boxed), 3, 1); -lean_closure_set(v___f_3875_, 0, v_content_3873_); -v___x_3876_ = l_Std_Http_Body_stream(v___f_3875_); -return v___x_3876_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___boxed(lean_object* v_content_3877_, lean_object* v_a_3878_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___lam__2___boxed(lean_object* v_content_3876_, lean_object* v_s_3877_, lean_object* v___y_3878_){ _start: { lean_object* v_res_3879_; -v_res_3879_ = l_Std_Http_Body_fromBytes(v_content_3877_); +v_res_3879_ = l_Std_Http_Body_fromBytes___lam__2(v_content_3876_, v_s_3877_); return v_res_3879_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__2(lean_object* v_a_3880_, lean_object* v___f_3881_, lean_object* v_x_3882_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes(lean_object* v_content_3880_){ _start: { -if (lean_obj_tag(v_x_3882_) == 0) +lean_object* v___f_3882_; lean_object* v___x_3883_; +v___f_3882_ = lean_alloc_closure((void*)(l_Std_Http_Body_fromBytes___lam__2___boxed), 3, 1); +lean_closure_set(v___f_3882_, 0, v_content_3880_); +v___x_3883_ = l_Std_Http_Body_stream(v___f_3882_); +return v___x_3883_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_fromBytes___boxed(lean_object* v_content_3884_, lean_object* v_a_3885_){ +_start: { -lean_object* v_a_3884_; lean_object* v___x_3886_; uint8_t v_isShared_3887_; uint8_t v_isSharedCheck_3892_; -lean_dec_ref(v___f_3881_); -lean_dec_ref(v_a_3880_); -v_a_3884_ = lean_ctor_get(v_x_3882_, 0); -v_isSharedCheck_3892_ = !lean_is_exclusive(v_x_3882_); -if (v_isSharedCheck_3892_ == 0) +lean_object* v_res_3886_; +v_res_3886_ = l_Std_Http_Body_fromBytes(v_content_3884_); +return v_res_3886_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__2(lean_object* v_a_3887_, lean_object* v___f_3888_, lean_object* v_x_3889_){ +_start: { -v___x_3886_ = v_x_3882_; -v_isShared_3887_ = v_isSharedCheck_3892_; -goto v_resetjp_3885_; +if (lean_obj_tag(v_x_3889_) == 0) +{ +lean_object* v_a_3891_; lean_object* v___x_3893_; uint8_t v_isShared_3894_; uint8_t v_isSharedCheck_3899_; +lean_dec_ref(v___f_3888_); +lean_dec_ref(v_a_3887_); +v_a_3891_ = lean_ctor_get(v_x_3889_, 0); +v_isSharedCheck_3899_ = !lean_is_exclusive(v_x_3889_); +if (v_isSharedCheck_3899_ == 0) +{ +v___x_3893_ = v_x_3889_; +v_isShared_3894_ = v_isSharedCheck_3899_; +goto v_resetjp_3892_; } else { -lean_inc(v_a_3884_); -lean_dec(v_x_3882_); -v___x_3886_ = lean_box(0); -v_isShared_3887_ = v_isSharedCheck_3892_; -goto v_resetjp_3885_; +lean_inc(v_a_3891_); +lean_dec(v_x_3889_); +v___x_3893_ = lean_box(0); +v_isShared_3894_ = v_isSharedCheck_3899_; +goto v_resetjp_3892_; } -v_resetjp_3885_: +v_resetjp_3892_: { -lean_object* v___x_3889_; -if (v_isShared_3887_ == 0) +lean_object* v___x_3896_; +if (v_isShared_3894_ == 0) { -v___x_3889_ = v___x_3886_; -goto v_reusejp_3888_; +v___x_3896_ = v___x_3893_; +goto v_reusejp_3895_; } else { -lean_object* v_reuseFailAlloc_3891_; -v_reuseFailAlloc_3891_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3891_, 0, v_a_3884_); -v___x_3889_ = v_reuseFailAlloc_3891_; -goto v_reusejp_3888_; +lean_object* v_reuseFailAlloc_3898_; +v_reuseFailAlloc_3898_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3898_, 0, v_a_3891_); +v___x_3896_ = v_reuseFailAlloc_3898_; +goto v_reusejp_3895_; } -v_reusejp_3888_: +v_reusejp_3895_: { -lean_object* v___x_3890_; -v___x_3890_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3890_, 0, v___x_3889_); -return v___x_3890_; +lean_object* v___x_3897_; +v___x_3897_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3897_, 0, v___x_3896_); +return v___x_3897_; } } } else { -lean_object* v___x_3893_; lean_object* v___x_3894_; uint8_t v___x_3895_; lean_object* v___x_3896_; -lean_dec_ref(v_x_3882_); -v___x_3893_ = l_Std_Http_Body_Stream_close(v_a_3880_); -v___x_3894_ = lean_unsigned_to_nat(0u); -v___x_3895_ = 0; -v___x_3896_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3894_, v___x_3895_, v___x_3893_, v___f_3881_); -return v___x_3896_; +lean_object* v___x_3900_; lean_object* v___x_3901_; uint8_t v___x_3902_; lean_object* v___x_3903_; +lean_dec_ref(v_x_3889_); +v___x_3900_ = l_Std_Http_Body_Stream_close(v_a_3887_); +v___x_3901_ = lean_unsigned_to_nat(0u); +v___x_3902_ = 0; +v___x_3903_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3901_, v___x_3902_, v___x_3900_, v___f_3888_); +return v___x_3903_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__2___boxed(lean_object* v_a_3897_, lean_object* v___f_3898_, lean_object* v_x_3899_, lean_object* v___y_3900_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__2___boxed(lean_object* v_a_3904_, lean_object* v___f_3905_, lean_object* v_x_3906_, lean_object* v___y_3907_){ _start: { -lean_object* v_res_3901_; -v_res_3901_ = l_Std_Http_Body_empty___lam__2(v_a_3897_, v___f_3898_, v_x_3899_); -return v_res_3901_; +lean_object* v_res_3908_; +v_res_3908_ = l_Std_Http_Body_empty___lam__2(v_a_3904_, v___f_3905_, v_x_3906_); +return v_res_3908_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__0(lean_object* v_x_3908_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__0(lean_object* v_x_3915_){ _start: { -if (lean_obj_tag(v_x_3908_) == 0) +if (lean_obj_tag(v_x_3915_) == 0) { -lean_object* v___x_3910_; -v___x_3910_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3910_, 0, v_x_3908_); -return v___x_3910_; +lean_object* v___x_3917_; +v___x_3917_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3917_, 0, v_x_3915_); +return v___x_3917_; } else { -lean_object* v_a_3911_; lean_object* v___x_3912_; lean_object* v___f_3913_; lean_object* v___x_3914_; lean_object* v___f_3915_; lean_object* v___f_3916_; uint8_t v___x_3917_; lean_object* v___x_3918_; -v_a_3911_ = lean_ctor_get(v_x_3908_, 0); -lean_inc_n(v_a_3911_, 2); -v___x_3912_ = lean_unsigned_to_nat(0u); -v___f_3913_ = ((lean_object*)(l_Std_Http_Body_empty___lam__0___closed__2)); -v___x_3914_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_a_3911_, v___f_3913_); -v___f_3915_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__3___boxed), 3, 1); -lean_closure_set(v___f_3915_, 0, v_x_3908_); -v___f_3916_ = lean_alloc_closure((void*)(l_Std_Http_Body_empty___lam__2___boxed), 4, 2); -lean_closure_set(v___f_3916_, 0, v_a_3911_); -lean_closure_set(v___f_3916_, 1, v___f_3915_); -v___x_3917_ = 0; -v___x_3918_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3912_, v___x_3917_, v___x_3914_, v___f_3916_); -return v___x_3918_; +lean_object* v_a_3918_; lean_object* v___x_3919_; lean_object* v___f_3920_; lean_object* v___x_3921_; lean_object* v___f_3922_; lean_object* v___f_3923_; uint8_t v___x_3924_; lean_object* v___x_3925_; +v_a_3918_ = lean_ctor_get(v_x_3915_, 0); +lean_inc_n(v_a_3918_, 2); +v___x_3919_ = lean_unsigned_to_nat(0u); +v___f_3920_ = ((lean_object*)(l_Std_Http_Body_empty___lam__0___closed__2)); +v___x_3921_ = l_Std_Mutex_atomically___at___00Std_Http_Body_Stream_tryRecv_spec__2___redArg(v_a_3918_, v___f_3920_); +v___f_3922_ = lean_alloc_closure((void*)(l_Std_Http_Body_stream___lam__3___boxed), 3, 1); +lean_closure_set(v___f_3922_, 0, v_x_3915_); +v___f_3923_ = lean_alloc_closure((void*)(l_Std_Http_Body_empty___lam__2___boxed), 4, 2); +lean_closure_set(v___f_3923_, 0, v_a_3918_); +lean_closure_set(v___f_3923_, 1, v___f_3922_); +v___x_3924_ = 0; +v___x_3925_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3919_, v___x_3924_, v___x_3921_, v___f_3923_); +return v___x_3925_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__0___boxed(lean_object* v_x_3919_, lean_object* v___y_3920_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_empty___lam__0___boxed(lean_object* v_x_3926_, lean_object* v___y_3927_){ _start: { -lean_object* v_res_3921_; -v_res_3921_ = l_Std_Http_Body_empty___lam__0(v_x_3919_); -return v_res_3921_; +lean_object* v_res_3928_; +v_res_3928_ = l_Std_Http_Body_empty___lam__0(v_x_3926_); +return v_res_3928_; } } LEAN_EXPORT lean_object* l_Std_Http_Body_empty(){ _start: { -lean_object* v___x_3924_; lean_object* v___f_3925_; lean_object* v___x_3926_; uint8_t v___x_3927_; lean_object* v___x_3928_; -v___x_3924_ = l_Std_Http_Body_mkStream(); -v___f_3925_ = ((lean_object*)(l_Std_Http_Body_empty___closed__0)); -v___x_3926_ = lean_unsigned_to_nat(0u); -v___x_3927_ = 0; -v___x_3928_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3926_, v___x_3927_, v___x_3924_, v___f_3925_); -return v___x_3928_; +lean_object* v___x_3931_; lean_object* v___f_3932_; lean_object* v___x_3933_; uint8_t v___x_3934_; lean_object* v___x_3935_; +v___x_3931_ = l_Std_Http_Body_mkStream(); +v___f_3932_ = ((lean_object*)(l_Std_Http_Body_empty___closed__0)); +v___x_3933_ = lean_unsigned_to_nat(0u); +v___x_3934_ = 0; +v___x_3935_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3933_, v___x_3934_, v___x_3931_, v___f_3932_); +return v___x_3935_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_empty___boxed(lean_object* v_a_3929_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_empty___boxed(lean_object* v_a_3936_){ _start: { -lean_object* v_res_3930_; -v_res_3930_ = l_Std_Http_Body_empty(); -return v_res_3930_; +lean_object* v_res_3937_; +v_res_3937_ = l_Std_Http_Body_empty(); +return v_res_3937_; } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseStreamAny___lam__0(lean_object* v___x_3951_, lean_object* v_f_3952_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeResponseStreamAny___lam__0(lean_object* v___x_3960_, lean_object* v_f_3961_){ _start: { -lean_object* v_line_3953_; lean_object* v_body_3954_; lean_object* v_extensions_3955_; lean_object* v___x_3957_; uint8_t v_isShared_3958_; uint8_t v_isSharedCheck_3963_; -v_line_3953_ = lean_ctor_get(v_f_3952_, 0); -v_body_3954_ = lean_ctor_get(v_f_3952_, 1); -v_extensions_3955_ = lean_ctor_get(v_f_3952_, 2); -v_isSharedCheck_3963_ = !lean_is_exclusive(v_f_3952_); -if (v_isSharedCheck_3963_ == 0) +lean_object* v_line_3962_; lean_object* v_body_3963_; lean_object* v_extensions_3964_; lean_object* v___x_3966_; uint8_t v_isShared_3967_; uint8_t v_isSharedCheck_3972_; +v_line_3962_ = lean_ctor_get(v_f_3961_, 0); +v_body_3963_ = lean_ctor_get(v_f_3961_, 1); +v_extensions_3964_ = lean_ctor_get(v_f_3961_, 2); +v_isSharedCheck_3972_ = !lean_is_exclusive(v_f_3961_); +if (v_isSharedCheck_3972_ == 0) { -v___x_3957_ = v_f_3952_; -v_isShared_3958_ = v_isSharedCheck_3963_; -goto v_resetjp_3956_; +v___x_3966_ = v_f_3961_; +v_isShared_3967_ = v_isSharedCheck_3972_; +goto v_resetjp_3965_; } else { -lean_inc(v_extensions_3955_); -lean_inc(v_body_3954_); -lean_inc(v_line_3953_); -lean_dec(v_f_3952_); -v___x_3957_ = lean_box(0); -v_isShared_3958_ = v_isSharedCheck_3963_; -goto v_resetjp_3956_; +lean_inc(v_extensions_3964_); +lean_inc(v_body_3963_); +lean_inc(v_line_3962_); +lean_dec(v_f_3961_); +v___x_3966_ = lean_box(0); +v_isShared_3967_ = v_isSharedCheck_3972_; +goto v_resetjp_3965_; } -v_resetjp_3956_: +v_resetjp_3965_: { -lean_object* v___x_3959_; lean_object* v___x_3961_; -v___x_3959_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_3951_, v_body_3954_); -if (v_isShared_3958_ == 0) +lean_object* v___x_3968_; lean_object* v___x_3970_; +v___x_3968_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_3960_, v_body_3963_); +if (v_isShared_3967_ == 0) { -lean_ctor_set(v___x_3957_, 1, v___x_3959_); -v___x_3961_ = v___x_3957_; -goto v_reusejp_3960_; +lean_ctor_set(v___x_3966_, 1, v___x_3968_); +v___x_3970_ = v___x_3966_; +goto v_reusejp_3969_; } else { -lean_object* v_reuseFailAlloc_3962_; -v_reuseFailAlloc_3962_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_3962_, 0, v_line_3953_); -lean_ctor_set(v_reuseFailAlloc_3962_, 1, v___x_3959_); -lean_ctor_set(v_reuseFailAlloc_3962_, 2, v_extensions_3955_); -v___x_3961_ = v_reuseFailAlloc_3962_; -goto v_reusejp_3960_; +lean_object* v_reuseFailAlloc_3971_; +v_reuseFailAlloc_3971_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_3971_, 0, v_line_3962_); +lean_ctor_set(v_reuseFailAlloc_3971_, 1, v___x_3968_); +lean_ctor_set(v_reuseFailAlloc_3971_, 2, v_extensions_3964_); +v___x_3970_ = v_reuseFailAlloc_3971_; +goto v_reusejp_3969_; } -v_reusejp_3960_: +v_reusejp_3969_: { -return v___x_3961_; +return v___x_3970_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0(lean_object* v___x_3967_, lean_object* v_x_3968_){ +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0(lean_object* v___x_3976_, lean_object* v_x_3977_){ _start: { -if (lean_obj_tag(v_x_3968_) == 0) +if (lean_obj_tag(v_x_3977_) == 0) { -lean_object* v_a_3970_; lean_object* v___x_3972_; uint8_t v_isShared_3973_; uint8_t v_isSharedCheck_3978_; -lean_dec_ref(v___x_3967_); -v_a_3970_ = lean_ctor_get(v_x_3968_, 0); -v_isSharedCheck_3978_ = !lean_is_exclusive(v_x_3968_); -if (v_isSharedCheck_3978_ == 0) +lean_object* v_a_3979_; lean_object* v___x_3981_; uint8_t v_isShared_3982_; uint8_t v_isSharedCheck_3987_; +lean_dec_ref(v___x_3976_); +v_a_3979_ = lean_ctor_get(v_x_3977_, 0); +v_isSharedCheck_3987_ = !lean_is_exclusive(v_x_3977_); +if (v_isSharedCheck_3987_ == 0) { -v___x_3972_ = v_x_3968_; -v_isShared_3973_ = v_isSharedCheck_3978_; -goto v_resetjp_3971_; -} -else -{ -lean_inc(v_a_3970_); -lean_dec(v_x_3968_); -v___x_3972_ = lean_box(0); -v_isShared_3973_ = v_isSharedCheck_3978_; -goto v_resetjp_3971_; -} -v_resetjp_3971_: -{ -lean_object* v___x_3975_; -if (v_isShared_3973_ == 0) -{ -v___x_3975_ = v___x_3972_; -goto v_reusejp_3974_; -} -else -{ -lean_object* v_reuseFailAlloc_3977_; -v_reuseFailAlloc_3977_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3977_, 0, v_a_3970_); -v___x_3975_ = v_reuseFailAlloc_3977_; -goto v_reusejp_3974_; -} -v_reusejp_3974_: -{ -lean_object* v___x_3976_; -v___x_3976_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3976_, 0, v___x_3975_); -return v___x_3976_; -} -} -} -else -{ -lean_object* v_a_3979_; lean_object* v___x_3981_; uint8_t v_isShared_3982_; uint8_t v_isSharedCheck_3998_; -v_a_3979_ = lean_ctor_get(v_x_3968_, 0); -v_isSharedCheck_3998_ = !lean_is_exclusive(v_x_3968_); -if (v_isSharedCheck_3998_ == 0) -{ -v___x_3981_ = v_x_3968_; -v_isShared_3982_ = v_isSharedCheck_3998_; +v___x_3981_ = v_x_3977_; +v_isShared_3982_ = v_isSharedCheck_3987_; goto v_resetjp_3980_; } else { lean_inc(v_a_3979_); -lean_dec(v_x_3968_); +lean_dec(v_x_3977_); v___x_3981_ = lean_box(0); -v_isShared_3982_ = v_isSharedCheck_3998_; +v_isShared_3982_ = v_isSharedCheck_3987_; goto v_resetjp_3980_; } v_resetjp_3980_: { -lean_object* v_line_3983_; lean_object* v_body_3984_; lean_object* v_extensions_3985_; lean_object* v___x_3987_; uint8_t v_isShared_3988_; uint8_t v_isSharedCheck_3997_; -v_line_3983_ = lean_ctor_get(v_a_3979_, 0); -v_body_3984_ = lean_ctor_get(v_a_3979_, 1); -v_extensions_3985_ = lean_ctor_get(v_a_3979_, 2); -v_isSharedCheck_3997_ = !lean_is_exclusive(v_a_3979_); -if (v_isSharedCheck_3997_ == 0) -{ -v___x_3987_ = v_a_3979_; -v_isShared_3988_ = v_isSharedCheck_3997_; -goto v_resetjp_3986_; -} -else -{ -lean_inc(v_extensions_3985_); -lean_inc(v_body_3984_); -lean_inc(v_line_3983_); -lean_dec(v_a_3979_); -v___x_3987_ = lean_box(0); -v_isShared_3988_ = v_isSharedCheck_3997_; -goto v_resetjp_3986_; -} -v_resetjp_3986_: -{ -lean_object* v___x_3989_; lean_object* v___x_3991_; -v___x_3989_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_3967_, v_body_3984_); -if (v_isShared_3988_ == 0) -{ -lean_ctor_set(v___x_3987_, 1, v___x_3989_); -v___x_3991_ = v___x_3987_; -goto v_reusejp_3990_; -} -else -{ -lean_object* v_reuseFailAlloc_3996_; -v_reuseFailAlloc_3996_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v_reuseFailAlloc_3996_, 0, v_line_3983_); -lean_ctor_set(v_reuseFailAlloc_3996_, 1, v___x_3989_); -lean_ctor_set(v_reuseFailAlloc_3996_, 2, v_extensions_3985_); -v___x_3991_ = v_reuseFailAlloc_3996_; -goto v_reusejp_3990_; -} -v_reusejp_3990_: -{ -lean_object* v___x_3993_; +lean_object* v___x_3984_; if (v_isShared_3982_ == 0) { -lean_ctor_set(v___x_3981_, 0, v___x_3991_); -v___x_3993_ = v___x_3981_; -goto v_reusejp_3992_; +v___x_3984_ = v___x_3981_; +goto v_reusejp_3983_; } else { -lean_object* v_reuseFailAlloc_3995_; -v_reuseFailAlloc_3995_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_3995_, 0, v___x_3991_); -v___x_3993_ = v_reuseFailAlloc_3995_; -goto v_reusejp_3992_; +lean_object* v_reuseFailAlloc_3986_; +v_reuseFailAlloc_3986_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3986_, 0, v_a_3979_); +v___x_3984_ = v_reuseFailAlloc_3986_; +goto v_reusejp_3983_; } -v_reusejp_3992_: +v_reusejp_3983_: { -lean_object* v___x_3994_; -v___x_3994_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_3994_, 0, v___x_3993_); -return v___x_3994_; -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0___boxed(lean_object* v___x_3999_, lean_object* v_x_4000_, lean_object* v___y_4001_){ -_start: -{ -lean_object* v_res_4002_; -v_res_4002_ = l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0(v___x_3999_, v_x_4000_); -return v_res_4002_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1(lean_object* v___f_4003_, lean_object* v_action_4004_, lean_object* v___y_4005_){ -_start: -{ -lean_object* v___x_4007_; lean_object* v___x_4008_; uint8_t v___x_4009_; lean_object* v___x_4010_; -lean_inc_ref(v___y_4005_); -v___x_4007_ = lean_apply_2(v_action_4004_, v___y_4005_, lean_box(0)); -v___x_4008_ = lean_unsigned_to_nat(0u); -v___x_4009_ = 0; -v___x_4010_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4008_, v___x_4009_, v___x_4007_, v___f_4003_); -return v___x_4010_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1___boxed(lean_object* v___f_4011_, lean_object* v_action_4012_, lean_object* v___y_4013_, lean_object* v___y_4014_){ -_start: -{ -lean_object* v_res_4015_; -v_res_4015_ = l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1(v___f_4011_, v_action_4012_, v___y_4013_); -lean_dec_ref(v___y_4013_); -return v_res_4015_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1(lean_object* v___f_4021_, lean_object* v_action_4022_, lean_object* v___y_4023_){ -_start: -{ -lean_object* v___x_4025_; lean_object* v___x_4026_; uint8_t v___x_4027_; lean_object* v___x_4028_; -v___x_4025_ = lean_apply_1(v_action_4022_, lean_box(0)); -v___x_4026_ = lean_unsigned_to_nat(0u); -v___x_4027_ = 0; -v___x_4028_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4026_, v___x_4027_, v___x_4025_, v___f_4021_); -return v___x_4028_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1___boxed(lean_object* v___f_4029_, lean_object* v_action_4030_, lean_object* v___y_4031_, lean_object* v___y_4032_){ -_start: -{ -lean_object* v_res_4033_; -v_res_4033_ = l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1(v___f_4029_, v_action_4030_, v___y_4031_); -lean_dec_ref(v___y_4031_); -return v_res_4033_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___lam__0(lean_object* v_builder_4037_, lean_object* v_x_4038_){ -_start: -{ -if (lean_obj_tag(v_x_4038_) == 0) -{ -lean_object* v_a_4040_; lean_object* v___x_4042_; uint8_t v_isShared_4043_; uint8_t v_isSharedCheck_4048_; -v_a_4040_ = lean_ctor_get(v_x_4038_, 0); -v_isSharedCheck_4048_ = !lean_is_exclusive(v_x_4038_); -if (v_isSharedCheck_4048_ == 0) -{ -v___x_4042_ = v_x_4038_; -v_isShared_4043_ = v_isSharedCheck_4048_; -goto v_resetjp_4041_; -} -else -{ -lean_inc(v_a_4040_); -lean_dec(v_x_4038_); -v___x_4042_ = lean_box(0); -v_isShared_4043_ = v_isSharedCheck_4048_; -goto v_resetjp_4041_; -} -v_resetjp_4041_: -{ -lean_object* v___x_4045_; -if (v_isShared_4043_ == 0) -{ -v___x_4045_ = v___x_4042_; -goto v_reusejp_4044_; -} -else -{ -lean_object* v_reuseFailAlloc_4047_; -v_reuseFailAlloc_4047_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4047_, 0, v_a_4040_); -v___x_4045_ = v_reuseFailAlloc_4047_; -goto v_reusejp_4044_; -} -v_reusejp_4044_: -{ -lean_object* v___x_4046_; -v___x_4046_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4046_, 0, v___x_4045_); -return v___x_4046_; +lean_object* v___x_3985_; +v___x_3985_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3985_, 0, v___x_3984_); +return v___x_3985_; } } } else { -lean_object* v_a_4049_; lean_object* v___x_4051_; uint8_t v_isShared_4052_; uint8_t v_isSharedCheck_4058_; -v_a_4049_ = lean_ctor_get(v_x_4038_, 0); -v_isSharedCheck_4058_ = !lean_is_exclusive(v_x_4038_); -if (v_isSharedCheck_4058_ == 0) +lean_object* v_a_3988_; lean_object* v___x_3990_; uint8_t v_isShared_3991_; uint8_t v_isSharedCheck_4007_; +v_a_3988_ = lean_ctor_get(v_x_3977_, 0); +v_isSharedCheck_4007_ = !lean_is_exclusive(v_x_3977_); +if (v_isSharedCheck_4007_ == 0) { -v___x_4051_ = v_x_4038_; -v_isShared_4052_ = v_isSharedCheck_4058_; +v___x_3990_ = v_x_3977_; +v_isShared_3991_ = v_isSharedCheck_4007_; +goto v_resetjp_3989_; +} +else +{ +lean_inc(v_a_3988_); +lean_dec(v_x_3977_); +v___x_3990_ = lean_box(0); +v_isShared_3991_ = v_isSharedCheck_4007_; +goto v_resetjp_3989_; +} +v_resetjp_3989_: +{ +lean_object* v_line_3992_; lean_object* v_body_3993_; lean_object* v_extensions_3994_; lean_object* v___x_3996_; uint8_t v_isShared_3997_; uint8_t v_isSharedCheck_4006_; +v_line_3992_ = lean_ctor_get(v_a_3988_, 0); +v_body_3993_ = lean_ctor_get(v_a_3988_, 1); +v_extensions_3994_ = lean_ctor_get(v_a_3988_, 2); +v_isSharedCheck_4006_ = !lean_is_exclusive(v_a_3988_); +if (v_isSharedCheck_4006_ == 0) +{ +v___x_3996_ = v_a_3988_; +v_isShared_3997_ = v_isSharedCheck_4006_; +goto v_resetjp_3995_; +} +else +{ +lean_inc(v_extensions_3994_); +lean_inc(v_body_3993_); +lean_inc(v_line_3992_); +lean_dec(v_a_3988_); +v___x_3996_ = lean_box(0); +v_isShared_3997_ = v_isSharedCheck_4006_; +goto v_resetjp_3995_; +} +v_resetjp_3995_: +{ +lean_object* v___x_3998_; lean_object* v___x_4000_; +v___x_3998_ = l_Std_Http_Body_Any_ofBody___redArg(v___x_3976_, v_body_3993_); +if (v_isShared_3997_ == 0) +{ +lean_ctor_set(v___x_3996_, 1, v___x_3998_); +v___x_4000_ = v___x_3996_; +goto v_reusejp_3999_; +} +else +{ +lean_object* v_reuseFailAlloc_4005_; +v_reuseFailAlloc_4005_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_4005_, 0, v_line_3992_); +lean_ctor_set(v_reuseFailAlloc_4005_, 1, v___x_3998_); +lean_ctor_set(v_reuseFailAlloc_4005_, 2, v_extensions_3994_); +v___x_4000_ = v_reuseFailAlloc_4005_; +goto v_reusejp_3999_; +} +v_reusejp_3999_: +{ +lean_object* v___x_4002_; +if (v_isShared_3991_ == 0) +{ +lean_ctor_set(v___x_3990_, 0, v___x_4000_); +v___x_4002_ = v___x_3990_; +goto v_reusejp_4001_; +} +else +{ +lean_object* v_reuseFailAlloc_4004_; +v_reuseFailAlloc_4004_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4004_, 0, v___x_4000_); +v___x_4002_ = v_reuseFailAlloc_4004_; +goto v_reusejp_4001_; +} +v_reusejp_4001_: +{ +lean_object* v___x_4003_; +v___x_4003_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4003_, 0, v___x_4002_); +return v___x_4003_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0___boxed(lean_object* v___x_4008_, lean_object* v_x_4009_, lean_object* v___y_4010_){ +_start: +{ +lean_object* v_res_4011_; +v_res_4011_ = l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__0(v___x_4008_, v_x_4009_); +return v_res_4011_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1(lean_object* v___f_4012_, lean_object* v_action_4013_, lean_object* v___y_4014_){ +_start: +{ +lean_object* v___x_4016_; lean_object* v___x_4017_; uint8_t v___x_4018_; lean_object* v___x_4019_; +lean_inc_ref(v___y_4014_); +v___x_4016_ = lean_apply_2(v_action_4013_, v___y_4014_, lean_box(0)); +v___x_4017_ = lean_unsigned_to_nat(0u); +v___x_4018_ = 0; +v___x_4019_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4017_, v___x_4018_, v___x_4016_, v___f_4012_); +return v___x_4019_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1___boxed(lean_object* v___f_4020_, lean_object* v_action_4021_, lean_object* v___y_4022_, lean_object* v___y_4023_){ +_start: +{ +lean_object* v_res_4024_; +v_res_4024_ = l_Std_Http_Body_instCoeContextAsyncResponseStreamAny___lam__1(v___f_4020_, v_action_4021_, v___y_4022_); +lean_dec_ref(v___y_4022_); +return v_res_4024_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1(lean_object* v___f_4030_, lean_object* v_action_4031_, lean_object* v___y_4032_){ +_start: +{ +lean_object* v___x_4034_; lean_object* v___x_4035_; uint8_t v___x_4036_; lean_object* v___x_4037_; +v___x_4034_ = lean_apply_1(v_action_4031_, lean_box(0)); +v___x_4035_ = lean_unsigned_to_nat(0u); +v___x_4036_ = 0; +v___x_4037_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4035_, v___x_4036_, v___x_4034_, v___f_4030_); +return v___x_4037_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1___boxed(lean_object* v___f_4038_, lean_object* v_action_4039_, lean_object* v___y_4040_, lean_object* v___y_4041_){ +_start: +{ +lean_object* v_res_4042_; +v_res_4042_ = l_Std_Http_Body_instCoeAsyncResponseStreamContextAsyncAny___lam__1(v___f_4038_, v_action_4039_, v___y_4040_); +lean_dec_ref(v___y_4040_); +return v_res_4042_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___lam__0(lean_object* v_builder_4046_, lean_object* v_x_4047_){ +_start: +{ +if (lean_obj_tag(v_x_4047_) == 0) +{ +lean_object* v_a_4049_; lean_object* v___x_4051_; uint8_t v_isShared_4052_; uint8_t v_isSharedCheck_4057_; +v_a_4049_ = lean_ctor_get(v_x_4047_, 0); +v_isSharedCheck_4057_ = !lean_is_exclusive(v_x_4047_); +if (v_isSharedCheck_4057_ == 0) +{ +v___x_4051_ = v_x_4047_; +v_isShared_4052_ = v_isSharedCheck_4057_; goto v_resetjp_4050_; } else { lean_inc(v_a_4049_); -lean_dec(v_x_4038_); +lean_dec(v_x_4047_); v___x_4051_ = lean_box(0); -v_isShared_4052_ = v_isSharedCheck_4058_; +v_isShared_4052_ = v_isSharedCheck_4057_; goto v_resetjp_4050_; } v_resetjp_4050_: { -lean_object* v___x_4053_; lean_object* v___x_4055_; -v___x_4053_ = l_Std_Http_Request_Builder_body___redArg(v_builder_4037_, v_a_4049_); +lean_object* v___x_4054_; if (v_isShared_4052_ == 0) { -lean_ctor_set(v___x_4051_, 0, v___x_4053_); -v___x_4055_ = v___x_4051_; -goto v_reusejp_4054_; +v___x_4054_ = v___x_4051_; +goto v_reusejp_4053_; } else { -lean_object* v_reuseFailAlloc_4057_; -v_reuseFailAlloc_4057_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4057_, 0, v___x_4053_); -v___x_4055_ = v_reuseFailAlloc_4057_; -goto v_reusejp_4054_; +lean_object* v_reuseFailAlloc_4056_; +v_reuseFailAlloc_4056_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4056_, 0, v_a_4049_); +v___x_4054_ = v_reuseFailAlloc_4056_; +goto v_reusejp_4053_; } -v_reusejp_4054_: +v_reusejp_4053_: { -lean_object* v___x_4056_; -v___x_4056_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4056_, 0, v___x_4055_); -return v___x_4056_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___lam__0___boxed(lean_object* v_builder_4059_, lean_object* v_x_4060_, lean_object* v___y_4061_){ -_start: -{ -lean_object* v_res_4062_; -v_res_4062_ = l_Std_Http_Request_Builder_stream___lam__0(v_builder_4059_, v_x_4060_); -lean_dec_ref(v_builder_4059_); -return v_res_4062_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream(lean_object* v_builder_4063_, lean_object* v_gen_4064_){ -_start: -{ -lean_object* v___x_4066_; lean_object* v___f_4067_; lean_object* v___x_4068_; uint8_t v___x_4069_; lean_object* v___x_4070_; -v___x_4066_ = l_Std_Http_Body_stream(v_gen_4064_); -v___f_4067_ = lean_alloc_closure((void*)(l_Std_Http_Request_Builder_stream___lam__0___boxed), 3, 1); -lean_closure_set(v___f_4067_, 0, v_builder_4063_); -v___x_4068_ = lean_unsigned_to_nat(0u); -v___x_4069_ = 0; -v___x_4070_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4068_, v___x_4069_, v___x_4066_, v___f_4067_); -return v___x_4070_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___boxed(lean_object* v_builder_4071_, lean_object* v_gen_4072_, lean_object* v_a_4073_){ -_start: -{ -lean_object* v_res_4074_; -v_res_4074_ = l_Std_Http_Request_Builder_stream(v_builder_4071_, v_gen_4072_); -return v_res_4074_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___lam__0(lean_object* v_builder_4075_, lean_object* v_x_4076_){ -_start: -{ -if (lean_obj_tag(v_x_4076_) == 0) -{ -lean_object* v_a_4078_; lean_object* v___x_4080_; uint8_t v_isShared_4081_; uint8_t v_isSharedCheck_4086_; -v_a_4078_ = lean_ctor_get(v_x_4076_, 0); -v_isSharedCheck_4086_ = !lean_is_exclusive(v_x_4076_); -if (v_isSharedCheck_4086_ == 0) -{ -v___x_4080_ = v_x_4076_; -v_isShared_4081_ = v_isSharedCheck_4086_; -goto v_resetjp_4079_; -} -else -{ -lean_inc(v_a_4078_); -lean_dec(v_x_4076_); -v___x_4080_ = lean_box(0); -v_isShared_4081_ = v_isSharedCheck_4086_; -goto v_resetjp_4079_; -} -v_resetjp_4079_: -{ -lean_object* v___x_4083_; -if (v_isShared_4081_ == 0) -{ -v___x_4083_ = v___x_4080_; -goto v_reusejp_4082_; -} -else -{ -lean_object* v_reuseFailAlloc_4085_; -v_reuseFailAlloc_4085_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4085_, 0, v_a_4078_); -v___x_4083_ = v_reuseFailAlloc_4085_; -goto v_reusejp_4082_; -} -v_reusejp_4082_: -{ -lean_object* v___x_4084_; -v___x_4084_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4084_, 0, v___x_4083_); -return v___x_4084_; +lean_object* v___x_4055_; +v___x_4055_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4055_, 0, v___x_4054_); +return v___x_4055_; } } } else { -lean_object* v_a_4087_; lean_object* v___x_4089_; uint8_t v_isShared_4090_; uint8_t v_isSharedCheck_4096_; -v_a_4087_ = lean_ctor_get(v_x_4076_, 0); -v_isSharedCheck_4096_ = !lean_is_exclusive(v_x_4076_); -if (v_isSharedCheck_4096_ == 0) +lean_object* v_a_4058_; lean_object* v___x_4060_; uint8_t v_isShared_4061_; uint8_t v_isSharedCheck_4067_; +v_a_4058_ = lean_ctor_get(v_x_4047_, 0); +v_isSharedCheck_4067_ = !lean_is_exclusive(v_x_4047_); +if (v_isSharedCheck_4067_ == 0) { -v___x_4089_ = v_x_4076_; -v_isShared_4090_ = v_isSharedCheck_4096_; +v___x_4060_ = v_x_4047_; +v_isShared_4061_ = v_isSharedCheck_4067_; +goto v_resetjp_4059_; +} +else +{ +lean_inc(v_a_4058_); +lean_dec(v_x_4047_); +v___x_4060_ = lean_box(0); +v_isShared_4061_ = v_isSharedCheck_4067_; +goto v_resetjp_4059_; +} +v_resetjp_4059_: +{ +lean_object* v___x_4062_; lean_object* v___x_4064_; +v___x_4062_ = l_Std_Http_Request_Builder_body___redArg(v_builder_4046_, v_a_4058_); +if (v_isShared_4061_ == 0) +{ +lean_ctor_set(v___x_4060_, 0, v___x_4062_); +v___x_4064_ = v___x_4060_; +goto v_reusejp_4063_; +} +else +{ +lean_object* v_reuseFailAlloc_4066_; +v_reuseFailAlloc_4066_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4066_, 0, v___x_4062_); +v___x_4064_ = v_reuseFailAlloc_4066_; +goto v_reusejp_4063_; +} +v_reusejp_4063_: +{ +lean_object* v___x_4065_; +v___x_4065_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4065_, 0, v___x_4064_); +return v___x_4065_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___lam__0___boxed(lean_object* v_builder_4068_, lean_object* v_x_4069_, lean_object* v___y_4070_){ +_start: +{ +lean_object* v_res_4071_; +v_res_4071_ = l_Std_Http_Request_Builder_stream___lam__0(v_builder_4068_, v_x_4069_); +lean_dec_ref(v_builder_4068_); +return v_res_4071_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream(lean_object* v_builder_4072_, lean_object* v_gen_4073_){ +_start: +{ +lean_object* v___x_4075_; lean_object* v___f_4076_; lean_object* v___x_4077_; uint8_t v___x_4078_; lean_object* v___x_4079_; +v___x_4075_ = l_Std_Http_Body_stream(v_gen_4073_); +v___f_4076_ = lean_alloc_closure((void*)(l_Std_Http_Request_Builder_stream___lam__0___boxed), 3, 1); +lean_closure_set(v___f_4076_, 0, v_builder_4072_); +v___x_4077_ = lean_unsigned_to_nat(0u); +v___x_4078_ = 0; +v___x_4079_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4077_, v___x_4078_, v___x_4075_, v___f_4076_); +return v___x_4079_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Request_Builder_stream___boxed(lean_object* v_builder_4080_, lean_object* v_gen_4081_, lean_object* v_a_4082_){ +_start: +{ +lean_object* v_res_4083_; +v_res_4083_ = l_Std_Http_Request_Builder_stream(v_builder_4080_, v_gen_4081_); +return v_res_4083_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___lam__0(lean_object* v_builder_4084_, lean_object* v_x_4085_){ +_start: +{ +if (lean_obj_tag(v_x_4085_) == 0) +{ +lean_object* v_a_4087_; lean_object* v___x_4089_; uint8_t v_isShared_4090_; uint8_t v_isSharedCheck_4095_; +v_a_4087_ = lean_ctor_get(v_x_4085_, 0); +v_isSharedCheck_4095_ = !lean_is_exclusive(v_x_4085_); +if (v_isSharedCheck_4095_ == 0) +{ +v___x_4089_ = v_x_4085_; +v_isShared_4090_ = v_isSharedCheck_4095_; goto v_resetjp_4088_; } else { lean_inc(v_a_4087_); -lean_dec(v_x_4076_); +lean_dec(v_x_4085_); v___x_4089_ = lean_box(0); -v_isShared_4090_ = v_isSharedCheck_4096_; +v_isShared_4090_ = v_isSharedCheck_4095_; goto v_resetjp_4088_; } v_resetjp_4088_: { -lean_object* v___x_4091_; lean_object* v___x_4093_; -v___x_4091_ = l_Std_Http_Response_Builder_body___redArg(v_builder_4075_, v_a_4087_); +lean_object* v___x_4092_; if (v_isShared_4090_ == 0) { -lean_ctor_set(v___x_4089_, 0, v___x_4091_); -v___x_4093_ = v___x_4089_; -goto v_reusejp_4092_; +v___x_4092_ = v___x_4089_; +goto v_reusejp_4091_; } else { -lean_object* v_reuseFailAlloc_4095_; -v_reuseFailAlloc_4095_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_4095_, 0, v___x_4091_); -v___x_4093_ = v_reuseFailAlloc_4095_; -goto v_reusejp_4092_; +lean_object* v_reuseFailAlloc_4094_; +v_reuseFailAlloc_4094_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4094_, 0, v_a_4087_); +v___x_4092_ = v_reuseFailAlloc_4094_; +goto v_reusejp_4091_; } -v_reusejp_4092_: +v_reusejp_4091_: { -lean_object* v___x_4094_; -v___x_4094_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_4094_, 0, v___x_4093_); -return v___x_4094_; +lean_object* v___x_4093_; +v___x_4093_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4093_, 0, v___x_4092_); +return v___x_4093_; +} +} +} +else +{ +lean_object* v_a_4096_; lean_object* v___x_4098_; uint8_t v_isShared_4099_; uint8_t v_isSharedCheck_4105_; +v_a_4096_ = lean_ctor_get(v_x_4085_, 0); +v_isSharedCheck_4105_ = !lean_is_exclusive(v_x_4085_); +if (v_isSharedCheck_4105_ == 0) +{ +v___x_4098_ = v_x_4085_; +v_isShared_4099_ = v_isSharedCheck_4105_; +goto v_resetjp_4097_; +} +else +{ +lean_inc(v_a_4096_); +lean_dec(v_x_4085_); +v___x_4098_ = lean_box(0); +v_isShared_4099_ = v_isSharedCheck_4105_; +goto v_resetjp_4097_; +} +v_resetjp_4097_: +{ +lean_object* v___x_4100_; lean_object* v___x_4102_; +v___x_4100_ = l_Std_Http_Response_Builder_body___redArg(v_builder_4084_, v_a_4096_); +if (v_isShared_4099_ == 0) +{ +lean_ctor_set(v___x_4098_, 0, v___x_4100_); +v___x_4102_ = v___x_4098_; +goto v_reusejp_4101_; +} +else +{ +lean_object* v_reuseFailAlloc_4104_; +v_reuseFailAlloc_4104_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4104_, 0, v___x_4100_); +v___x_4102_ = v_reuseFailAlloc_4104_; +goto v_reusejp_4101_; +} +v_reusejp_4101_: +{ +lean_object* v___x_4103_; +v___x_4103_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4103_, 0, v___x_4102_); +return v___x_4103_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___lam__0___boxed(lean_object* v_builder_4097_, lean_object* v_x_4098_, lean_object* v___y_4099_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___lam__0___boxed(lean_object* v_builder_4106_, lean_object* v_x_4107_, lean_object* v___y_4108_){ _start: { -lean_object* v_res_4100_; -v_res_4100_ = l_Std_Http_Response_Builder_stream___lam__0(v_builder_4097_, v_x_4098_); -lean_dec_ref(v_builder_4097_); -return v_res_4100_; +lean_object* v_res_4109_; +v_res_4109_ = l_Std_Http_Response_Builder_stream___lam__0(v_builder_4106_, v_x_4107_); +lean_dec_ref(v_builder_4106_); +return v_res_4109_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream(lean_object* v_builder_4101_, lean_object* v_gen_4102_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream(lean_object* v_builder_4110_, lean_object* v_gen_4111_){ _start: { -lean_object* v___x_4104_; lean_object* v___f_4105_; lean_object* v___x_4106_; uint8_t v___x_4107_; lean_object* v___x_4108_; -v___x_4104_ = l_Std_Http_Body_stream(v_gen_4102_); -v___f_4105_ = lean_alloc_closure((void*)(l_Std_Http_Response_Builder_stream___lam__0___boxed), 3, 1); -lean_closure_set(v___f_4105_, 0, v_builder_4101_); -v___x_4106_ = lean_unsigned_to_nat(0u); -v___x_4107_ = 0; -v___x_4108_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4106_, v___x_4107_, v___x_4104_, v___f_4105_); -return v___x_4108_; +lean_object* v___x_4113_; lean_object* v___f_4114_; lean_object* v___x_4115_; uint8_t v___x_4116_; lean_object* v___x_4117_; +v___x_4113_ = l_Std_Http_Body_stream(v_gen_4111_); +v___f_4114_ = lean_alloc_closure((void*)(l_Std_Http_Response_Builder_stream___lam__0___boxed), 3, 1); +lean_closure_set(v___f_4114_, 0, v_builder_4110_); +v___x_4115_ = lean_unsigned_to_nat(0u); +v___x_4116_ = 0; +v___x_4117_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4115_, v___x_4116_, v___x_4113_, v___f_4114_); +return v___x_4117_; } } -LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___boxed(lean_object* v_builder_4109_, lean_object* v_gen_4110_, lean_object* v_a_4111_){ +LEAN_EXPORT lean_object* l_Std_Http_Response_Builder_stream___boxed(lean_object* v_builder_4118_, lean_object* v_gen_4119_, lean_object* v_a_4120_){ _start: { -lean_object* v_res_4112_; -v_res_4112_ = l_Std_Http_Response_Builder_stream(v_builder_4109_, v_gen_4110_); -return v_res_4112_; +lean_object* v_res_4121_; +v_res_4121_ = l_Std_Http_Response_Builder_stream(v_builder_4118_, v_gen_4119_); +return v_res_4121_; } } lean_object* runtime_initialize_Std_Sync(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Data/Headers/Basic.c b/stage0/stdlib/Std/Internal/Http/Data/Headers/Basic.c index 0ea9196471..e32c8f3dc3 100644 --- a/stage0/stdlib/Std/Internal/Http/Data/Headers/Basic.c +++ b/stage0/stdlib/Std/Internal/Http/Data/Headers/Basic.c @@ -156,6 +156,8 @@ LEAN_EXPORT lean_object* l_Std_Http_Header_instReprContentLength_repr___boxed(le static const lean_closure_object l_Std_Http_Header_instReprContentLength___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Header_instReprContentLength_repr___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Http_Header_instReprContentLength___closed__0 = (const lean_object*)&l_Std_Http_Header_instReprContentLength___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Http_Header_instReprContentLength = (const lean_object*)&l_Std_Http_Header_instReprContentLength___closed__0_value; +LEAN_EXPORT lean_object* l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_parse(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_serialize(lean_object*); static const lean_closure_object l_Std_Http_Header_ContentLength_inst___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Header_ContentLength_parse, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; @@ -1763,616 +1765,740 @@ lean_dec(v_prec_536_); return v_res_537_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_parse(lean_object* v_v_540_){ +LEAN_EXPORT lean_object* l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0(lean_object* v_s_540_, lean_object* v_pos_541_){ _start: { -lean_object* v___x_541_; lean_object* v___x_542_; lean_object* v___x_543_; lean_object* v___x_544_; -v___x_541_ = lean_unsigned_to_nat(0u); -v___x_542_ = lean_string_utf8_byte_size(v_v_540_); -v___x_543_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_543_, 0, v_v_540_); -lean_ctor_set(v___x_543_, 1, v___x_541_); -lean_ctor_set(v___x_543_, 2, v___x_542_); -v___x_544_ = l_String_Slice_toNat_x3f(v___x_543_); -lean_dec_ref(v___x_543_); -if (lean_obj_tag(v___x_544_) == 0) +lean_object* v_str_542_; lean_object* v_startInclusive_543_; lean_object* v_endExclusive_544_; lean_object* v___x_545_; uint8_t v___y_547_; lean_object* v___x_553_; lean_object* v___x_554_; uint8_t v___x_555_; +v_str_542_ = lean_ctor_get(v_s_540_, 0); +v_startInclusive_543_ = lean_ctor_get(v_s_540_, 1); +v_endExclusive_544_ = lean_ctor_get(v_s_540_, 2); +v___x_545_ = lean_nat_add(v_startInclusive_543_, v_pos_541_); +v___x_553_ = lean_unsigned_to_nat(0u); +v___x_554_ = lean_nat_sub(v_endExclusive_544_, v___x_545_); +v___x_555_ = lean_nat_dec_eq(v___x_553_, v___x_554_); +lean_dec(v___x_554_); +if (v___x_555_ == 0) { -lean_object* v___x_545_; -v___x_545_ = lean_box(0); -return v___x_545_; +uint32_t v___x_556_; uint32_t v___x_557_; uint8_t v___x_558_; +v___x_556_ = lean_string_utf8_get_fast(v_str_542_, v___x_545_); +v___x_557_ = 48; +v___x_558_ = lean_uint32_dec_le(v___x_557_, v___x_556_); +if (v___x_558_ == 0) +{ +v___y_547_ = v___x_558_; +goto v___jp_546_; } else { -lean_object* v_val_546_; lean_object* v___x_548_; uint8_t v_isShared_549_; uint8_t v_isSharedCheck_553_; -v_val_546_ = lean_ctor_get(v___x_544_, 0); -v_isSharedCheck_553_ = !lean_is_exclusive(v___x_544_); -if (v_isSharedCheck_553_ == 0) -{ -v___x_548_ = v___x_544_; -v_isShared_549_ = v_isSharedCheck_553_; -goto v_resetjp_547_; -} -else -{ -lean_inc(v_val_546_); -lean_dec(v___x_544_); -v___x_548_ = lean_box(0); -v_isShared_549_ = v_isSharedCheck_553_; -goto v_resetjp_547_; -} -v_resetjp_547_: -{ -lean_object* v___x_551_; -if (v_isShared_549_ == 0) -{ -v___x_551_ = v___x_548_; -goto v_reusejp_550_; -} -else -{ -lean_object* v_reuseFailAlloc_552_; -v_reuseFailAlloc_552_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_552_, 0, v_val_546_); -v___x_551_ = v_reuseFailAlloc_552_; -goto v_reusejp_550_; -} -v_reusejp_550_: -{ -return v___x_551_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_serialize(lean_object* v_h_554_){ -_start: -{ -lean_object* v___x_555_; lean_object* v___x_556_; lean_object* v___x_557_; lean_object* v___x_558_; -v___x_555_ = l_Std_Http_Header_Name_contentLength; -v___x_556_ = l_Nat_reprFast(v_h_554_); -v___x_557_ = l_Std_Http_Header_Value_ofString_x21(v___x_556_); -v___x_558_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_558_, 0, v___x_555_); -lean_ctor_set(v___x_558_, 1, v___x_557_); -return v___x_558_; -} -} -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(lean_object* v_x_565_, lean_object* v_x_566_){ -_start: -{ -if (lean_obj_tag(v_x_565_) == 0) -{ -if (lean_obj_tag(v_x_566_) == 0) -{ -uint8_t v___x_567_; -v___x_567_ = 1; -return v___x_567_; -} -else -{ -uint8_t v___x_568_; -v___x_568_ = 0; -return v___x_568_; +uint32_t v___x_559_; uint8_t v___x_560_; +v___x_559_ = 57; +v___x_560_ = lean_uint32_dec_le(v___x_556_, v___x_559_); +v___y_547_ = v___x_560_; +goto v___jp_546_; } } else { -if (lean_obj_tag(v_x_566_) == 0) +lean_dec(v___x_545_); +return v_pos_541_; +} +v___jp_546_: { -uint8_t v___x_569_; -v___x_569_ = 0; -return v___x_569_; +if (v___y_547_ == 0) +{ +lean_dec(v___x_545_); +return v_pos_541_; } else { -lean_object* v_val_570_; lean_object* v_val_571_; uint8_t v___x_572_; -v_val_570_ = lean_ctor_get(v_x_565_, 0); -v_val_571_ = lean_ctor_get(v_x_566_, 0); -v___x_572_ = lean_string_dec_eq(v_val_570_, v_val_571_); -return v___x_572_; -} -} -} -} -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0___boxed(lean_object* v_x_573_, lean_object* v_x_574_){ -_start: +lean_object* v___x_548_; lean_object* v___x_549_; lean_object* v___x_550_; uint8_t v___x_551_; +v___x_548_ = lean_string_utf8_next_fast(v_str_542_, v___x_545_); +v___x_549_ = lean_nat_sub(v___x_548_, v___x_545_); +lean_dec(v___x_545_); +v___x_550_ = lean_nat_add(v_pos_541_, v___x_549_); +lean_dec(v___x_549_); +v___x_551_ = lean_nat_dec_lt(v_pos_541_, v___x_550_); +if (v___x_551_ == 0) { -uint8_t v_res_575_; lean_object* v_r_576_; -v_res_575_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v_x_573_, v_x_574_); -lean_dec(v_x_574_); -lean_dec(v_x_573_); -v_r_576_ = lean_box(v_res_575_); -return v_r_576_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(lean_object* v_as_578_, size_t v_i_579_, size_t v_stop_580_, lean_object* v_b_581_){ -_start: -{ -lean_object* v___y_583_; uint8_t v___x_587_; -v___x_587_ = lean_usize_dec_eq(v_i_579_, v_stop_580_); -if (v___x_587_ == 0) -{ -lean_object* v___x_588_; lean_object* v___x_589_; uint8_t v___x_590_; -v___x_588_ = lean_array_uget_borrowed(v_as_578_, v_i_579_); -v___x_589_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1___closed__0)); -v___x_590_ = lean_string_dec_eq(v___x_588_, v___x_589_); -if (v___x_590_ == 0) -{ -v___y_583_ = v_b_581_; -goto v___jp_582_; +lean_dec(v___x_550_); +return v_pos_541_; } else { -lean_object* v___x_591_; -lean_inc(v___x_588_); -v___x_591_ = lean_array_push(v_b_581_, v___x_588_); -v___y_583_ = v___x_591_; -goto v___jp_582_; -} -} -else -{ -return v_b_581_; -} -v___jp_582_: -{ -size_t v___x_584_; size_t v___x_585_; -v___x_584_ = ((size_t)1ULL); -v___x_585_ = lean_usize_add(v_i_579_, v___x_584_); -v_i_579_ = v___x_585_; -v_b_581_ = v___y_583_; +lean_dec(v_pos_541_); +v_pos_541_ = v___x_550_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1___boxed(lean_object* v_as_592_, lean_object* v_i_593_, lean_object* v_stop_594_, lean_object* v_b_595_){ +} +} +LEAN_EXPORT lean_object* l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0___boxed(lean_object* v_s_561_, lean_object* v_pos_562_){ _start: { -size_t v_i_boxed_596_; size_t v_stop_boxed_597_; lean_object* v_res_598_; -v_i_boxed_596_ = lean_unbox_usize(v_i_593_); -lean_dec(v_i_593_); -v_stop_boxed_597_ = lean_unbox_usize(v_stop_594_); -lean_dec(v_stop_594_); -v_res_598_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_as_592_, v_i_boxed_596_, v_stop_boxed_597_, v_b_595_); -lean_dec_ref(v_as_592_); -return v_res_598_; +lean_object* v_res_563_; +v_res_563_ = l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0(v_s_561_, v_pos_562_); +lean_dec_ref(v_s_561_); +return v_res_563_; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(lean_object* v___x_599_, lean_object* v_as_600_, size_t v_i_601_, size_t v_stop_602_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_parse(lean_object* v_v_564_){ _start: { +uint8_t v___y_566_; lean_object* v___x_581_; lean_object* v___x_582_; uint8_t v___x_583_; +v___x_581_ = lean_string_utf8_byte_size(v_v_564_); +v___x_582_ = lean_unsigned_to_nat(0u); +v___x_583_ = lean_nat_dec_eq(v___x_581_, v___x_582_); +if (v___x_583_ == 0) +{ +lean_object* v___x_584_; lean_object* v___x_585_; uint8_t v___x_586_; +lean_inc_ref(v_v_564_); +v___x_584_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_584_, 0, v_v_564_); +lean_ctor_set(v___x_584_, 1, v___x_582_); +lean_ctor_set(v___x_584_, 2, v___x_581_); +v___x_585_ = l_String_Slice_Pos_skipWhile___at___00Std_Http_Header_ContentLength_parse_spec__0(v___x_584_, v___x_582_); +lean_dec_ref(v___x_584_); +v___x_586_ = lean_nat_dec_eq(v___x_585_, v___x_581_); +lean_dec(v___x_585_); +if (v___x_586_ == 0) +{ +lean_object* v___x_587_; +lean_dec_ref(v_v_564_); +v___x_587_ = lean_box(0); +return v___x_587_; +} +else +{ +v___y_566_ = v___x_583_; +goto v___jp_565_; +} +} +else +{ +v___y_566_ = v___x_583_; +goto v___jp_565_; +} +v___jp_565_: +{ +if (v___y_566_ == 0) +{ +lean_object* v___x_567_; lean_object* v___x_568_; lean_object* v___x_569_; lean_object* v___x_570_; +v___x_567_ = lean_unsigned_to_nat(0u); +v___x_568_ = lean_string_utf8_byte_size(v_v_564_); +v___x_569_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_569_, 0, v_v_564_); +lean_ctor_set(v___x_569_, 1, v___x_567_); +lean_ctor_set(v___x_569_, 2, v___x_568_); +v___x_570_ = l_String_Slice_toNat_x3f(v___x_569_); +lean_dec_ref(v___x_569_); +if (lean_obj_tag(v___x_570_) == 0) +{ +lean_object* v___x_571_; +v___x_571_ = lean_box(0); +return v___x_571_; +} +else +{ +lean_object* v_val_572_; lean_object* v___x_574_; uint8_t v_isShared_575_; uint8_t v_isSharedCheck_579_; +v_val_572_ = lean_ctor_get(v___x_570_, 0); +v_isSharedCheck_579_ = !lean_is_exclusive(v___x_570_); +if (v_isSharedCheck_579_ == 0) +{ +v___x_574_ = v___x_570_; +v_isShared_575_ = v_isSharedCheck_579_; +goto v_resetjp_573_; +} +else +{ +lean_inc(v_val_572_); +lean_dec(v___x_570_); +v___x_574_ = lean_box(0); +v_isShared_575_ = v_isSharedCheck_579_; +goto v_resetjp_573_; +} +v_resetjp_573_: +{ +lean_object* v___x_577_; +if (v_isShared_575_ == 0) +{ +v___x_577_ = v___x_574_; +goto v_reusejp_576_; +} +else +{ +lean_object* v_reuseFailAlloc_578_; +v_reuseFailAlloc_578_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_578_, 0, v_val_572_); +v___x_577_ = v_reuseFailAlloc_578_; +goto v_reusejp_576_; +} +v_reusejp_576_: +{ +return v___x_577_; +} +} +} +} +else +{ +lean_object* v___x_580_; +lean_dec_ref(v_v_564_); +v___x_580_ = lean_box(0); +return v___x_580_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_ContentLength_serialize(lean_object* v_h_588_){ +_start: +{ +lean_object* v___x_589_; lean_object* v___x_590_; lean_object* v___x_591_; lean_object* v___x_592_; +v___x_589_ = l_Std_Http_Header_Name_contentLength; +v___x_590_ = l_Nat_reprFast(v_h_588_); +v___x_591_ = l_Std_Http_Header_Value_ofString_x21(v___x_590_); +v___x_592_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_592_, 0, v___x_589_); +lean_ctor_set(v___x_592_, 1, v___x_591_); +return v___x_592_; +} +} +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(lean_object* v_x_599_, lean_object* v_x_600_){ +_start: +{ +if (lean_obj_tag(v_x_599_) == 0) +{ +if (lean_obj_tag(v_x_600_) == 0) +{ +uint8_t v___x_601_; +v___x_601_ = 1; +return v___x_601_; +} +else +{ +uint8_t v___x_602_; +v___x_602_ = 0; +return v___x_602_; +} +} +else +{ +if (lean_obj_tag(v_x_600_) == 0) +{ uint8_t v___x_603_; -v___x_603_ = lean_usize_dec_eq(v_i_601_, v_stop_602_); -if (v___x_603_ == 0) -{ -uint8_t v___x_604_; lean_object* v___x_605_; uint8_t v___x_606_; -v___x_604_ = 1; -v___x_605_ = lean_array_uget_borrowed(v_as_600_, v_i_601_); -lean_inc(v___x_605_); -v___x_606_ = l_Std_Http_Internal_isToken(v___x_605_); -if (v___x_606_ == 0) -{ -return v___x_604_; +v___x_603_ = 0; +return v___x_603_; } else { -lean_object* v___x_607_; uint8_t v___x_608_; -v___x_607_ = lean_unsigned_to_nat(0u); -v___x_608_ = lean_nat_dec_eq(v___x_599_, v___x_607_); -if (v___x_608_ == 0) +lean_object* v_val_604_; lean_object* v_val_605_; uint8_t v___x_606_; +v_val_604_ = lean_ctor_get(v_x_599_, 0); +v_val_605_ = lean_ctor_get(v_x_600_, 0); +v___x_606_ = lean_string_dec_eq(v_val_604_, v_val_605_); +return v___x_606_; +} +} +} +} +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0___boxed(lean_object* v_x_607_, lean_object* v_x_608_){ +_start: { -size_t v___x_609_; size_t v___x_610_; -v___x_609_ = ((size_t)1ULL); -v___x_610_ = lean_usize_add(v_i_601_, v___x_609_); -v_i_601_ = v___x_610_; +uint8_t v_res_609_; lean_object* v_r_610_; +v_res_609_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v_x_607_, v_x_608_); +lean_dec(v_x_608_); +lean_dec(v_x_607_); +v_r_610_ = lean_box(v_res_609_); +return v_r_610_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(lean_object* v_as_612_, size_t v_i_613_, size_t v_stop_614_, lean_object* v_b_615_){ +_start: +{ +lean_object* v___y_617_; uint8_t v___x_621_; +v___x_621_ = lean_usize_dec_eq(v_i_613_, v_stop_614_); +if (v___x_621_ == 0) +{ +lean_object* v___x_622_; lean_object* v___x_623_; uint8_t v___x_624_; +v___x_622_ = lean_array_uget_borrowed(v_as_612_, v_i_613_); +v___x_623_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1___closed__0)); +v___x_624_ = lean_string_dec_eq(v___x_622_, v___x_623_); +if (v___x_624_ == 0) +{ +v___y_617_ = v_b_615_; +goto v___jp_616_; +} +else +{ +lean_object* v___x_625_; +lean_inc(v___x_622_); +v___x_625_ = lean_array_push(v_b_615_, v___x_622_); +v___y_617_ = v___x_625_; +goto v___jp_616_; +} +} +else +{ +return v_b_615_; +} +v___jp_616_: +{ +size_t v___x_618_; size_t v___x_619_; +v___x_618_ = ((size_t)1ULL); +v___x_619_ = lean_usize_add(v_i_613_, v___x_618_); +v_i_613_ = v___x_619_; +v_b_615_ = v___y_617_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1___boxed(lean_object* v_as_626_, lean_object* v_i_627_, lean_object* v_stop_628_, lean_object* v_b_629_){ +_start: +{ +size_t v_i_boxed_630_; size_t v_stop_boxed_631_; lean_object* v_res_632_; +v_i_boxed_630_ = lean_unbox_usize(v_i_627_); +lean_dec(v_i_627_); +v_stop_boxed_631_ = lean_unbox_usize(v_stop_628_); +lean_dec(v_stop_628_); +v_res_632_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_as_626_, v_i_boxed_630_, v_stop_boxed_631_, v_b_629_); +lean_dec_ref(v_as_626_); +return v_res_632_; +} +} +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(lean_object* v___x_633_, lean_object* v_as_634_, size_t v_i_635_, size_t v_stop_636_){ +_start: +{ +uint8_t v___x_637_; +v___x_637_ = lean_usize_dec_eq(v_i_635_, v_stop_636_); +if (v___x_637_ == 0) +{ +uint8_t v___x_638_; lean_object* v___x_639_; uint8_t v___x_640_; +v___x_638_ = 1; +v___x_639_ = lean_array_uget_borrowed(v_as_634_, v_i_635_); +lean_inc(v___x_639_); +v___x_640_ = l_Std_Http_Internal_isToken(v___x_639_); +if (v___x_640_ == 0) +{ +return v___x_638_; +} +else +{ +lean_object* v___x_641_; uint8_t v___x_642_; +v___x_641_ = lean_unsigned_to_nat(0u); +v___x_642_ = lean_nat_dec_eq(v___x_633_, v___x_641_); +if (v___x_642_ == 0) +{ +size_t v___x_643_; size_t v___x_644_; +v___x_643_ = ((size_t)1ULL); +v___x_644_ = lean_usize_add(v_i_635_, v___x_643_); +v_i_635_ = v___x_644_; goto _start; } else { -return v___x_604_; +return v___x_638_; } } } else { -uint8_t v___x_612_; -v___x_612_ = 0; -return v___x_612_; +uint8_t v___x_646_; +v___x_646_ = 0; +return v___x_646_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2___boxed(lean_object* v___x_613_, lean_object* v_as_614_, lean_object* v_i_615_, lean_object* v_stop_616_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2___boxed(lean_object* v___x_647_, lean_object* v_as_648_, lean_object* v_i_649_, lean_object* v_stop_650_){ _start: { -size_t v_i_boxed_617_; size_t v_stop_boxed_618_; uint8_t v_res_619_; lean_object* v_r_620_; -v_i_boxed_617_ = lean_unbox_usize(v_i_615_); -lean_dec(v_i_615_); -v_stop_boxed_618_ = lean_unbox_usize(v_stop_616_); -lean_dec(v_stop_616_); -v_res_619_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(v___x_613_, v_as_614_, v_i_boxed_617_, v_stop_boxed_618_); -lean_dec_ref(v_as_614_); -lean_dec(v___x_613_); -v_r_620_ = lean_box(v_res_619_); -return v_r_620_; +size_t v_i_boxed_651_; size_t v_stop_boxed_652_; uint8_t v_res_653_; lean_object* v_r_654_; +v_i_boxed_651_ = lean_unbox_usize(v_i_649_); +lean_dec(v_i_649_); +v_stop_boxed_652_ = lean_unbox_usize(v_stop_650_); +lean_dec(v_stop_650_); +v_res_653_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(v___x_647_, v_as_648_, v_i_boxed_651_, v_stop_boxed_652_); +lean_dec_ref(v_as_648_); +lean_dec(v___x_647_); +v_r_654_ = lean_box(v_res_653_); +return v_r_654_; } } -LEAN_EXPORT uint8_t l_Std_Http_Header_TransferEncoding_Validate(lean_object* v_codings_625_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_TransferEncoding_Validate(lean_object* v_codings_659_){ _start: { -uint8_t v___y_627_; lean_object* v___y_628_; uint8_t v___y_629_; lean_object* v___y_630_; uint8_t v___y_637_; uint8_t v___y_638_; lean_object* v___y_639_; uint8_t v___y_649_; lean_object* v___x_663_; lean_object* v___x_664_; uint8_t v___x_665_; -v___x_663_ = lean_array_get_size(v_codings_625_); -v___x_664_ = lean_unsigned_to_nat(0u); -v___x_665_ = lean_nat_dec_eq(v___x_663_, v___x_664_); -if (v___x_665_ == 0) +uint8_t v___y_661_; lean_object* v___y_662_; uint8_t v___y_663_; lean_object* v___y_664_; uint8_t v___y_671_; uint8_t v___y_672_; lean_object* v___y_673_; uint8_t v___y_683_; lean_object* v___x_697_; lean_object* v___x_698_; uint8_t v___x_699_; +v___x_697_ = lean_array_get_size(v_codings_659_); +v___x_698_ = lean_unsigned_to_nat(0u); +v___x_699_ = lean_nat_dec_eq(v___x_697_, v___x_698_); +if (v___x_699_ == 0) { -uint8_t v___x_666_; -v___x_666_ = lean_nat_dec_lt(v___x_664_, v___x_663_); +uint8_t v___x_700_; +v___x_700_ = lean_nat_dec_lt(v___x_698_, v___x_697_); +if (v___x_700_ == 0) +{ +v___y_683_ = v___x_699_; +goto v___jp_682_; +} +else +{ +if (v___x_700_ == 0) +{ +v___y_683_ = v___x_699_; +goto v___jp_682_; +} +else +{ +size_t v___x_701_; size_t v___x_702_; uint8_t v___x_703_; +v___x_701_ = ((size_t)0ULL); +v___x_702_ = lean_usize_of_nat(v___x_697_); +v___x_703_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(v___x_697_, v_codings_659_, v___x_701_, v___x_702_); +v___y_683_ = v___x_703_; +goto v___jp_682_; +} +} +} +else +{ +v___y_683_ = v___x_699_; +goto v___jp_682_; +} +v___jp_660_: +{ +lean_object* v___x_665_; uint8_t v___x_666_; +v___x_665_ = lean_unsigned_to_nat(1u); +v___x_666_ = lean_nat_dec_lt(v___x_665_, v___y_662_); if (v___x_666_ == 0) { -v___y_649_ = v___x_665_; -goto v___jp_648_; +uint8_t v___x_667_; +v___x_667_ = lean_nat_dec_eq(v___y_662_, v___x_665_); +lean_dec(v___y_662_); +if (v___x_667_ == 0) +{ +lean_dec(v___y_664_); +if (v___x_667_ == 0) +{ +return v___y_663_; } else { -if (v___x_666_ == 0) -{ -v___y_649_ = v___x_665_; -goto v___jp_648_; +return v___y_661_; +} } else { -size_t v___x_667_; size_t v___x_668_; uint8_t v___x_669_; -v___x_667_ = ((size_t)0ULL); -v___x_668_ = lean_usize_of_nat(v___x_663_); -v___x_669_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_TransferEncoding_Validate_spec__2(v___x_663_, v_codings_625_, v___x_667_, v___x_668_); -v___y_649_ = v___x_669_; -goto v___jp_648_; +lean_object* v___x_668_; uint8_t v_lastIsChunked_669_; +v___x_668_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__0)); +v_lastIsChunked_669_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v___y_664_, v___x_668_); +lean_dec(v___y_664_); +if (v_lastIsChunked_669_ == 0) +{ +if (v___x_667_ == 0) +{ +return v___y_663_; +} +else +{ +return v___y_661_; +} +} +else +{ +return v___y_663_; } } } else { -v___y_649_ = v___x_665_; -goto v___jp_648_; +lean_dec(v___y_664_); +lean_dec(v___y_662_); +return v___y_661_; } -v___jp_626_: +} +v___jp_670_: { -lean_object* v___x_631_; uint8_t v___x_632_; -v___x_631_ = lean_unsigned_to_nat(1u); -v___x_632_ = lean_nat_dec_lt(v___x_631_, v___y_628_); -if (v___x_632_ == 0) +lean_object* v_chunkedCount_674_; lean_object* v___x_675_; lean_object* v___x_676_; lean_object* v___x_677_; uint8_t v___x_678_; +v_chunkedCount_674_ = lean_array_get_size(v___y_673_); +lean_dec_ref(v___y_673_); +v___x_675_ = lean_array_get_size(v_codings_659_); +v___x_676_ = lean_unsigned_to_nat(1u); +v___x_677_ = lean_nat_sub(v___x_675_, v___x_676_); +v___x_678_ = lean_nat_dec_lt(v___x_677_, v___x_675_); +if (v___x_678_ == 0) { -uint8_t v___x_633_; -v___x_633_ = lean_nat_dec_eq(v___y_628_, v___x_631_); -lean_dec(v___y_628_); -if (v___x_633_ == 0) -{ -lean_dec(v___y_630_); -if (v___x_633_ == 0) -{ -return v___y_629_; +lean_object* v___x_679_; +lean_dec(v___x_677_); +v___x_679_ = lean_box(0); +v___y_661_ = v___y_671_; +v___y_662_ = v_chunkedCount_674_; +v___y_663_ = v___y_672_; +v___y_664_ = v___x_679_; +goto v___jp_660_; } else { -return v___y_627_; +lean_object* v___x_680_; lean_object* v___x_681_; +v___x_680_ = lean_array_fget_borrowed(v_codings_659_, v___x_677_); +lean_dec(v___x_677_); +lean_inc(v___x_680_); +v___x_681_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_681_, 0, v___x_680_); +v___y_661_ = v___y_671_; +v___y_662_ = v_chunkedCount_674_; +v___y_663_ = v___y_672_; +v___y_664_ = v___x_681_; +goto v___jp_660_; +} +} +v___jp_682_: +{ +if (v___y_683_ == 0) +{ +uint8_t v___x_684_; lean_object* v___x_685_; lean_object* v___x_686_; lean_object* v___x_687_; uint8_t v___x_688_; +v___x_684_ = 1; +v___x_685_ = lean_unsigned_to_nat(0u); +v___x_686_ = lean_array_get_size(v_codings_659_); +v___x_687_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__1)); +v___x_688_ = lean_nat_dec_lt(v___x_685_, v___x_686_); +if (v___x_688_ == 0) +{ +v___y_671_ = v___y_683_; +v___y_672_ = v___x_684_; +v___y_673_ = v___x_687_; +goto v___jp_670_; +} +else +{ +uint8_t v___x_689_; +v___x_689_ = lean_nat_dec_le(v___x_686_, v___x_686_); +if (v___x_689_ == 0) +{ +if (v___x_688_ == 0) +{ +v___y_671_ = v___y_683_; +v___y_672_ = v___x_684_; +v___y_673_ = v___x_687_; +goto v___jp_670_; +} +else +{ +size_t v___x_690_; size_t v___x_691_; lean_object* v___x_692_; +v___x_690_ = ((size_t)0ULL); +v___x_691_ = lean_usize_of_nat(v___x_686_); +v___x_692_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_codings_659_, v___x_690_, v___x_691_, v___x_687_); +v___y_671_ = v___y_683_; +v___y_672_ = v___x_684_; +v___y_673_ = v___x_692_; +goto v___jp_670_; } } else { -lean_object* v___x_634_; uint8_t v_lastIsChunked_635_; -v___x_634_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__0)); -v_lastIsChunked_635_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v___y_630_, v___x_634_); -lean_dec(v___y_630_); -if (v_lastIsChunked_635_ == 0) -{ -if (v___x_633_ == 0) -{ -return v___y_629_; -} -else -{ -return v___y_627_; -} -} -else -{ -return v___y_629_; +size_t v___x_693_; size_t v___x_694_; lean_object* v___x_695_; +v___x_693_ = ((size_t)0ULL); +v___x_694_ = lean_usize_of_nat(v___x_686_); +v___x_695_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_codings_659_, v___x_693_, v___x_694_, v___x_687_); +v___y_671_ = v___y_683_; +v___y_672_ = v___x_684_; +v___y_673_ = v___x_695_; +goto v___jp_670_; } } } else { -lean_dec(v___y_630_); -lean_dec(v___y_628_); -return v___y_627_; -} -} -v___jp_636_: -{ -lean_object* v_chunkedCount_640_; lean_object* v___x_641_; lean_object* v___x_642_; lean_object* v___x_643_; uint8_t v___x_644_; -v_chunkedCount_640_ = lean_array_get_size(v___y_639_); -lean_dec_ref(v___y_639_); -v___x_641_ = lean_array_get_size(v_codings_625_); -v___x_642_ = lean_unsigned_to_nat(1u); -v___x_643_ = lean_nat_sub(v___x_641_, v___x_642_); -v___x_644_ = lean_nat_dec_lt(v___x_643_, v___x_641_); -if (v___x_644_ == 0) -{ -lean_object* v___x_645_; -lean_dec(v___x_643_); -v___x_645_ = lean_box(0); -v___y_627_ = v___y_637_; -v___y_628_ = v_chunkedCount_640_; -v___y_629_ = v___y_638_; -v___y_630_ = v___x_645_; -goto v___jp_626_; -} -else -{ -lean_object* v___x_646_; lean_object* v___x_647_; -v___x_646_ = lean_array_fget_borrowed(v_codings_625_, v___x_643_); -lean_dec(v___x_643_); -lean_inc(v___x_646_); -v___x_647_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_647_, 0, v___x_646_); -v___y_627_ = v___y_637_; -v___y_628_ = v_chunkedCount_640_; -v___y_629_ = v___y_638_; -v___y_630_ = v___x_647_; -goto v___jp_626_; -} -} -v___jp_648_: -{ -if (v___y_649_ == 0) -{ -uint8_t v___x_650_; lean_object* v___x_651_; lean_object* v___x_652_; lean_object* v___x_653_; uint8_t v___x_654_; -v___x_650_ = 1; -v___x_651_ = lean_unsigned_to_nat(0u); -v___x_652_ = lean_array_get_size(v_codings_625_); -v___x_653_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__1)); -v___x_654_ = lean_nat_dec_lt(v___x_651_, v___x_652_); -if (v___x_654_ == 0) -{ -v___y_637_ = v___y_649_; -v___y_638_ = v___x_650_; -v___y_639_ = v___x_653_; -goto v___jp_636_; -} -else -{ -uint8_t v___x_655_; -v___x_655_ = lean_nat_dec_le(v___x_652_, v___x_652_); -if (v___x_655_ == 0) -{ -if (v___x_654_ == 0) -{ -v___y_637_ = v___y_649_; -v___y_638_ = v___x_650_; -v___y_639_ = v___x_653_; -goto v___jp_636_; -} -else -{ -size_t v___x_656_; size_t v___x_657_; lean_object* v___x_658_; -v___x_656_ = ((size_t)0ULL); -v___x_657_ = lean_usize_of_nat(v___x_652_); -v___x_658_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_codings_625_, v___x_656_, v___x_657_, v___x_653_); -v___y_637_ = v___y_649_; -v___y_638_ = v___x_650_; -v___y_639_ = v___x_658_; -goto v___jp_636_; -} -} -else -{ -size_t v___x_659_; size_t v___x_660_; lean_object* v___x_661_; -v___x_659_ = ((size_t)0ULL); -v___x_660_ = lean_usize_of_nat(v___x_652_); -v___x_661_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Header_TransferEncoding_Validate_spec__1(v_codings_625_, v___x_659_, v___x_660_, v___x_653_); -v___y_637_ = v___y_649_; -v___y_638_ = v___x_650_; -v___y_639_ = v___x_661_; -goto v___jp_636_; -} -} -} -else -{ -uint8_t v___x_662_; -v___x_662_ = 0; -return v___x_662_; +uint8_t v___x_696_; +v___x_696_ = 0; +return v___x_696_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_Validate___boxed(lean_object* v_codings_670_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_Validate___boxed(lean_object* v_codings_704_){ _start: { -uint8_t v_res_671_; lean_object* v_r_672_; -v_res_671_ = l_Std_Http_Header_TransferEncoding_Validate(v_codings_670_); -lean_dec_ref(v_codings_670_); -v_r_672_ = lean_box(v_res_671_); -return v_r_672_; +uint8_t v_res_705_; lean_object* v_r_706_; +v_res_705_ = l_Std_Http_Header_TransferEncoding_Validate(v_codings_704_); +lean_dec_ref(v_codings_704_); +v_r_706_ = lean_box(v_res_705_); +return v_r_706_; } } -LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(lean_object* v___y_673_){ +LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(lean_object* v___y_707_){ _start: { -lean_object* v___x_674_; lean_object* v___x_675_; -v___x_674_ = l_String_quote(v___y_673_); -v___x_675_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_675_, 0, v___x_674_); -return v___x_675_; +lean_object* v___x_708_; lean_object* v___x_709_; +v___x_708_ = l_String_quote(v___y_707_); +v___x_709_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_709_, 0, v___x_708_); +return v___x_709_; } } -LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1_spec__2(lean_object* v_x_676_, lean_object* v_x_677_, lean_object* v_x_678_){ +LEAN_EXPORT lean_object* l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1_spec__2(lean_object* v_x_710_, lean_object* v_x_711_, lean_object* v_x_712_){ _start: { -if (lean_obj_tag(v_x_678_) == 0) +if (lean_obj_tag(v_x_712_) == 0) { -lean_dec(v_x_676_); -return v_x_677_; +lean_dec(v_x_710_); +return v_x_711_; } else { -lean_object* v_head_679_; lean_object* v_tail_680_; lean_object* v___x_682_; uint8_t v_isShared_683_; uint8_t v_isSharedCheck_691_; -v_head_679_ = lean_ctor_get(v_x_678_, 0); -v_tail_680_ = lean_ctor_get(v_x_678_, 1); -v_isSharedCheck_691_ = !lean_is_exclusive(v_x_678_); -if (v_isSharedCheck_691_ == 0) +lean_object* v_head_713_; lean_object* v_tail_714_; lean_object* v___x_716_; uint8_t v_isShared_717_; uint8_t v_isSharedCheck_725_; +v_head_713_ = lean_ctor_get(v_x_712_, 0); +v_tail_714_ = lean_ctor_get(v_x_712_, 1); +v_isSharedCheck_725_ = !lean_is_exclusive(v_x_712_); +if (v_isSharedCheck_725_ == 0) { -v___x_682_ = v_x_678_; -v_isShared_683_ = v_isSharedCheck_691_; -goto v_resetjp_681_; +v___x_716_ = v_x_712_; +v_isShared_717_ = v_isSharedCheck_725_; +goto v_resetjp_715_; } else { -lean_inc(v_tail_680_); -lean_inc(v_head_679_); -lean_dec(v_x_678_); -v___x_682_ = lean_box(0); -v_isShared_683_ = v_isSharedCheck_691_; -goto v_resetjp_681_; +lean_inc(v_tail_714_); +lean_inc(v_head_713_); +lean_dec(v_x_712_); +v___x_716_ = lean_box(0); +v_isShared_717_ = v_isSharedCheck_725_; +goto v_resetjp_715_; } -v_resetjp_681_: +v_resetjp_715_: { -lean_object* v___x_685_; -lean_inc(v_x_676_); -if (v_isShared_683_ == 0) +lean_object* v___x_719_; +lean_inc(v_x_710_); +if (v_isShared_717_ == 0) { -lean_ctor_set_tag(v___x_682_, 5); -lean_ctor_set(v___x_682_, 1, v_x_676_); -lean_ctor_set(v___x_682_, 0, v_x_677_); -v___x_685_ = v___x_682_; -goto v_reusejp_684_; +lean_ctor_set_tag(v___x_716_, 5); +lean_ctor_set(v___x_716_, 1, v_x_710_); +lean_ctor_set(v___x_716_, 0, v_x_711_); +v___x_719_ = v___x_716_; +goto v_reusejp_718_; } else { -lean_object* v_reuseFailAlloc_690_; -v_reuseFailAlloc_690_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v_reuseFailAlloc_690_, 0, v_x_677_); -lean_ctor_set(v_reuseFailAlloc_690_, 1, v_x_676_); -v___x_685_ = v_reuseFailAlloc_690_; -goto v_reusejp_684_; +lean_object* v_reuseFailAlloc_724_; +v_reuseFailAlloc_724_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v_reuseFailAlloc_724_, 0, v_x_711_); +lean_ctor_set(v_reuseFailAlloc_724_, 1, v_x_710_); +v___x_719_ = v_reuseFailAlloc_724_; +goto v_reusejp_718_; } -v_reusejp_684_: +v_reusejp_718_: { -lean_object* v___x_686_; lean_object* v___x_687_; lean_object* v___x_688_; -v___x_686_ = l_String_quote(v_head_679_); -v___x_687_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_687_, 0, v___x_686_); -v___x_688_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_688_, 0, v___x_685_); -lean_ctor_set(v___x_688_, 1, v___x_687_); -v_x_677_ = v___x_688_; -v_x_678_ = v_tail_680_; +lean_object* v___x_720_; lean_object* v___x_721_; lean_object* v___x_722_; +v___x_720_ = l_String_quote(v_head_713_); +v___x_721_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_721_, 0, v___x_720_); +v___x_722_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_722_, 0, v___x_719_); +lean_ctor_set(v___x_722_, 1, v___x_721_); +v_x_711_ = v___x_722_; +v_x_712_ = v_tail_714_; goto _start; } } } } } -LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1(lean_object* v_x_692_, lean_object* v_x_693_, lean_object* v_x_694_){ +LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1(lean_object* v_x_726_, lean_object* v_x_727_, lean_object* v_x_728_){ _start: { -if (lean_obj_tag(v_x_694_) == 0) +if (lean_obj_tag(v_x_728_) == 0) { -lean_dec(v_x_692_); -return v_x_693_; +lean_dec(v_x_726_); +return v_x_727_; } else { -lean_object* v_head_695_; lean_object* v_tail_696_; lean_object* v___x_698_; uint8_t v_isShared_699_; uint8_t v_isSharedCheck_707_; -v_head_695_ = lean_ctor_get(v_x_694_, 0); -v_tail_696_ = lean_ctor_get(v_x_694_, 1); -v_isSharedCheck_707_ = !lean_is_exclusive(v_x_694_); -if (v_isSharedCheck_707_ == 0) +lean_object* v_head_729_; lean_object* v_tail_730_; lean_object* v___x_732_; uint8_t v_isShared_733_; uint8_t v_isSharedCheck_741_; +v_head_729_ = lean_ctor_get(v_x_728_, 0); +v_tail_730_ = lean_ctor_get(v_x_728_, 1); +v_isSharedCheck_741_ = !lean_is_exclusive(v_x_728_); +if (v_isSharedCheck_741_ == 0) { -v___x_698_ = v_x_694_; -v_isShared_699_ = v_isSharedCheck_707_; -goto v_resetjp_697_; +v___x_732_ = v_x_728_; +v_isShared_733_ = v_isSharedCheck_741_; +goto v_resetjp_731_; } else { -lean_inc(v_tail_696_); -lean_inc(v_head_695_); -lean_dec(v_x_694_); -v___x_698_ = lean_box(0); -v_isShared_699_ = v_isSharedCheck_707_; -goto v_resetjp_697_; +lean_inc(v_tail_730_); +lean_inc(v_head_729_); +lean_dec(v_x_728_); +v___x_732_ = lean_box(0); +v_isShared_733_ = v_isSharedCheck_741_; +goto v_resetjp_731_; } -v_resetjp_697_: +v_resetjp_731_: { -lean_object* v___x_701_; -lean_inc(v_x_692_); -if (v_isShared_699_ == 0) +lean_object* v___x_735_; +lean_inc(v_x_726_); +if (v_isShared_733_ == 0) { -lean_ctor_set_tag(v___x_698_, 5); -lean_ctor_set(v___x_698_, 1, v_x_692_); -lean_ctor_set(v___x_698_, 0, v_x_693_); -v___x_701_ = v___x_698_; -goto v_reusejp_700_; +lean_ctor_set_tag(v___x_732_, 5); +lean_ctor_set(v___x_732_, 1, v_x_726_); +lean_ctor_set(v___x_732_, 0, v_x_727_); +v___x_735_ = v___x_732_; +goto v_reusejp_734_; } else { -lean_object* v_reuseFailAlloc_706_; -v_reuseFailAlloc_706_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v_reuseFailAlloc_706_, 0, v_x_693_); -lean_ctor_set(v_reuseFailAlloc_706_, 1, v_x_692_); -v___x_701_ = v_reuseFailAlloc_706_; -goto v_reusejp_700_; +lean_object* v_reuseFailAlloc_740_; +v_reuseFailAlloc_740_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v_reuseFailAlloc_740_, 0, v_x_727_); +lean_ctor_set(v_reuseFailAlloc_740_, 1, v_x_726_); +v___x_735_ = v_reuseFailAlloc_740_; +goto v_reusejp_734_; } -v_reusejp_700_: +v_reusejp_734_: { -lean_object* v___x_702_; lean_object* v___x_703_; lean_object* v___x_704_; lean_object* v___x_705_; -v___x_702_ = l_String_quote(v_head_695_); -v___x_703_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_703_, 0, v___x_702_); -v___x_704_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_704_, 0, v___x_701_); -lean_ctor_set(v___x_704_, 1, v___x_703_); -v___x_705_ = l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1_spec__2(v_x_692_, v___x_704_, v_tail_696_); -return v___x_705_; +lean_object* v___x_736_; lean_object* v___x_737_; lean_object* v___x_738_; lean_object* v___x_739_; +v___x_736_ = l_String_quote(v_head_729_); +v___x_737_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_737_, 0, v___x_736_); +v___x_738_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_738_, 0, v___x_735_); +lean_ctor_set(v___x_738_, 1, v___x_737_); +v___x_739_ = l_List_foldl___at___00List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1_spec__2(v_x_726_, v___x_738_, v_tail_730_); +return v___x_739_; } } } } } -LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0(lean_object* v_x_708_, lean_object* v_x_709_){ +LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0(lean_object* v_x_742_, lean_object* v_x_743_){ _start: { -if (lean_obj_tag(v_x_708_) == 0) +if (lean_obj_tag(v_x_742_) == 0) { -lean_object* v___x_710_; -lean_dec(v_x_709_); -v___x_710_ = lean_box(0); -return v___x_710_; +lean_object* v___x_744_; +lean_dec(v_x_743_); +v___x_744_ = lean_box(0); +return v___x_744_; } else { -lean_object* v_tail_711_; -v_tail_711_ = lean_ctor_get(v_x_708_, 1); -if (lean_obj_tag(v_tail_711_) == 0) +lean_object* v_tail_745_; +v_tail_745_ = lean_ctor_get(v_x_742_, 1); +if (lean_obj_tag(v_tail_745_) == 0) { -lean_object* v_head_712_; lean_object* v___x_713_; -lean_dec(v_x_709_); -v_head_712_ = lean_ctor_get(v_x_708_, 0); -lean_inc(v_head_712_); -lean_dec_ref(v_x_708_); -v___x_713_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(v_head_712_); -return v___x_713_; +lean_object* v_head_746_; lean_object* v___x_747_; +lean_dec(v_x_743_); +v_head_746_ = lean_ctor_get(v_x_742_, 0); +lean_inc(v_head_746_); +lean_dec_ref(v_x_742_); +v___x_747_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(v_head_746_); +return v___x_747_; } else { -lean_object* v_head_714_; lean_object* v___x_715_; lean_object* v___x_716_; -lean_inc(v_tail_711_); -v_head_714_ = lean_ctor_get(v_x_708_, 0); -lean_inc(v_head_714_); -lean_dec_ref(v_x_708_); -v___x_715_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(v_head_714_); -v___x_716_ = l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1(v_x_709_, v___x_715_, v_tail_711_); -return v___x_716_; +lean_object* v_head_748_; lean_object* v___x_749_; lean_object* v___x_750_; +lean_inc(v_tail_745_); +v_head_748_ = lean_ctor_get(v_x_742_, 0); +lean_inc(v_head_748_); +lean_dec_ref(v_x_742_); +v___x_749_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0___lam__0(v_head_748_); +v___x_750_ = l_List_foldl___at___00Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0_spec__1(v_x_743_, v___x_749_, v_tail_745_); +return v___x_750_; } } } @@ -2380,1482 +2506,1482 @@ return v___x_716_; static lean_object* _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5(void){ _start: { -lean_object* v___x_725_; lean_object* v___x_726_; -v___x_725_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__0)); -v___x_726_ = lean_string_length(v___x_725_); -return v___x_726_; +lean_object* v___x_759_; lean_object* v___x_760_; +v___x_759_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__0)); +v___x_760_ = lean_string_length(v___x_759_); +return v___x_760_; } } static lean_object* _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6(void){ _start: { -lean_object* v___x_727_; lean_object* v___x_728_; -v___x_727_ = lean_obj_once(&l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5, &l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5_once, _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5); -v___x_728_ = lean_nat_to_int(v___x_727_); -return v___x_728_; +lean_object* v___x_761_; lean_object* v___x_762_; +v___x_761_ = lean_obj_once(&l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5, &l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5_once, _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__5); +v___x_762_ = lean_nat_to_int(v___x_761_); +return v___x_762_; } } -LEAN_EXPORT lean_object* l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(lean_object* v_xs_736_){ +LEAN_EXPORT lean_object* l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(lean_object* v_xs_770_){ _start: { -lean_object* v___x_737_; lean_object* v___x_738_; uint8_t v___x_739_; -v___x_737_ = lean_array_get_size(v_xs_736_); -v___x_738_ = lean_unsigned_to_nat(0u); -v___x_739_ = lean_nat_dec_eq(v___x_737_, v___x_738_); -if (v___x_739_ == 0) +lean_object* v___x_771_; lean_object* v___x_772_; uint8_t v___x_773_; +v___x_771_ = lean_array_get_size(v_xs_770_); +v___x_772_ = lean_unsigned_to_nat(0u); +v___x_773_ = lean_nat_dec_eq(v___x_771_, v___x_772_); +if (v___x_773_ == 0) { -lean_object* v___x_740_; lean_object* v___x_741_; lean_object* v___x_742_; lean_object* v___x_743_; lean_object* v___x_744_; lean_object* v___x_745_; lean_object* v___x_746_; lean_object* v___x_747_; lean_object* v___x_748_; lean_object* v___x_749_; -v___x_740_ = lean_array_to_list(v_xs_736_); -v___x_741_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__3)); -v___x_742_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0(v___x_740_, v___x_741_); -v___x_743_ = lean_obj_once(&l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6, &l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6_once, _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6); -v___x_744_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__7)); -v___x_745_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_745_, 0, v___x_744_); -lean_ctor_set(v___x_745_, 1, v___x_742_); -v___x_746_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__8)); -v___x_747_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_747_, 0, v___x_745_); -lean_ctor_set(v___x_747_, 1, v___x_746_); -v___x_748_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_748_, 0, v___x_743_); -lean_ctor_set(v___x_748_, 1, v___x_747_); -v___x_749_ = l_Std_Format_fill(v___x_748_); -return v___x_749_; +lean_object* v___x_774_; lean_object* v___x_775_; lean_object* v___x_776_; lean_object* v___x_777_; lean_object* v___x_778_; lean_object* v___x_779_; lean_object* v___x_780_; lean_object* v___x_781_; lean_object* v___x_782_; lean_object* v___x_783_; +v___x_774_ = lean_array_to_list(v_xs_770_); +v___x_775_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__3)); +v___x_776_ = l_Std_Format_joinSep___at___00Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0_spec__0(v___x_774_, v___x_775_); +v___x_777_ = lean_obj_once(&l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6, &l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6_once, _init_l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__6); +v___x_778_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__7)); +v___x_779_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_779_, 0, v___x_778_); +lean_ctor_set(v___x_779_, 1, v___x_776_); +v___x_780_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__8)); +v___x_781_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_781_, 0, v___x_779_); +lean_ctor_set(v___x_781_, 1, v___x_780_); +v___x_782_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_782_, 0, v___x_777_); +lean_ctor_set(v___x_782_, 1, v___x_781_); +v___x_783_ = l_Std_Format_fill(v___x_782_); +return v___x_783_; } else { -lean_object* v___x_750_; -lean_dec_ref(v_xs_736_); -v___x_750_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__10)); -return v___x_750_; +lean_object* v___x_784_; +lean_dec_ref(v_xs_770_); +v___x_784_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__10)); +return v___x_784_; } } } static lean_object* _init_l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4(void){ _start: { -lean_object* v___x_760_; lean_object* v___x_761_; -v___x_760_ = lean_unsigned_to_nat(11u); -v___x_761_ = lean_nat_to_int(v___x_760_); -return v___x_761_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr___redArg(lean_object* v_x_768_){ -_start: -{ -lean_object* v___x_769_; lean_object* v___x_770_; lean_object* v___x_771_; lean_object* v___x_772_; lean_object* v___x_773_; uint8_t v___x_774_; lean_object* v___x_775_; lean_object* v___x_776_; lean_object* v___x_777_; lean_object* v___x_778_; lean_object* v___x_779_; lean_object* v___x_780_; lean_object* v___x_781_; lean_object* v___x_782_; lean_object* v___x_783_; lean_object* v___x_784_; lean_object* v___x_785_; lean_object* v___x_786_; lean_object* v___x_787_; lean_object* v___x_788_; lean_object* v___x_789_; lean_object* v___x_790_; lean_object* v___x_791_; lean_object* v___x_792_; -v___x_769_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); -v___x_770_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__3)); -v___x_771_ = lean_obj_once(&l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4, &l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4_once, _init_l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4); -v___x_772_ = l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(v_x_768_); -v___x_773_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_773_, 0, v___x_771_); -lean_ctor_set(v___x_773_, 1, v___x_772_); -v___x_774_ = 0; -v___x_775_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_775_, 0, v___x_773_); -lean_ctor_set_uint8(v___x_775_, sizeof(void*)*1, v___x_774_); -v___x_776_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_776_, 0, v___x_770_); -lean_ctor_set(v___x_776_, 1, v___x_775_); -v___x_777_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); -v___x_778_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_778_, 0, v___x_776_); -lean_ctor_set(v___x_778_, 1, v___x_777_); -v___x_779_ = lean_box(1); -v___x_780_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_780_, 0, v___x_778_); -lean_ctor_set(v___x_780_, 1, v___x_779_); -v___x_781_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__6)); -v___x_782_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_782_, 0, v___x_780_); -lean_ctor_set(v___x_782_, 1, v___x_781_); -v___x_783_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_783_, 0, v___x_782_); -lean_ctor_set(v___x_783_, 1, v___x_769_); -v___x_784_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__8)); -v___x_785_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_785_, 0, v___x_783_); -lean_ctor_set(v___x_785_, 1, v___x_784_); -v___x_786_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); -v___x_787_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); -v___x_788_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_788_, 0, v___x_787_); -lean_ctor_set(v___x_788_, 1, v___x_785_); -v___x_789_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); -v___x_790_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_790_, 0, v___x_788_); -lean_ctor_set(v___x_790_, 1, v___x_789_); -v___x_791_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_791_, 0, v___x_786_); -lean_ctor_set(v___x_791_, 1, v___x_790_); -v___x_792_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_792_, 0, v___x_791_); -lean_ctor_set_uint8(v___x_792_, sizeof(void*)*1, v___x_774_); -return v___x_792_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr(lean_object* v_x_793_, lean_object* v_prec_794_){ -_start: -{ -lean_object* v___x_795_; -v___x_795_ = l_Std_Http_Header_instReprTransferEncoding_repr___redArg(v_x_793_); +lean_object* v___x_794_; lean_object* v___x_795_; +v___x_794_ = lean_unsigned_to_nat(11u); +v___x_795_ = lean_nat_to_int(v___x_794_); return v___x_795_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr___boxed(lean_object* v_x_796_, lean_object* v_prec_797_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr___redArg(lean_object* v_x_802_){ _start: { -lean_object* v_res_798_; -v_res_798_ = l_Std_Http_Header_instReprTransferEncoding_repr(v_x_796_, v_prec_797_); -lean_dec(v_prec_797_); -return v_res_798_; -} -} -LEAN_EXPORT uint8_t l_Std_Http_Header_TransferEncoding_isChunked(lean_object* v_te_801_){ -_start: -{ -lean_object* v___y_803_; lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___x_808_; uint8_t v___x_809_; -v___x_806_ = lean_array_get_size(v_te_801_); -v___x_807_ = lean_unsigned_to_nat(1u); -v___x_808_ = lean_nat_sub(v___x_806_, v___x_807_); -v___x_809_ = lean_nat_dec_lt(v___x_808_, v___x_806_); -if (v___x_809_ == 0) -{ -lean_object* v___x_810_; -lean_dec(v___x_808_); -v___x_810_ = lean_box(0); -v___y_803_ = v___x_810_; -goto v___jp_802_; -} -else -{ -lean_object* v___x_811_; lean_object* v___x_812_; -v___x_811_ = lean_array_fget_borrowed(v_te_801_, v___x_808_); -lean_dec(v___x_808_); -lean_inc(v___x_811_); -v___x_812_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_812_, 0, v___x_811_); -v___y_803_ = v___x_812_; -goto v___jp_802_; -} -v___jp_802_: -{ -lean_object* v___x_804_; uint8_t v___x_805_; -v___x_804_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__0)); -v___x_805_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v___y_803_, v___x_804_); -lean_dec(v___y_803_); -return v___x_805_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_isChunked___boxed(lean_object* v_te_813_){ -_start: -{ -uint8_t v_res_814_; lean_object* v_r_815_; -v_res_814_ = l_Std_Http_Header_TransferEncoding_isChunked(v_te_813_); -lean_dec_ref(v_te_813_); -v_r_815_ = lean_box(v_res_814_); -return v_r_815_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_parse(lean_object* v_v_816_){ -_start: -{ -lean_object* v___x_817_; -v___x_817_ = l___private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList(v_v_816_); -if (lean_obj_tag(v___x_817_) == 0) -{ -lean_object* v___x_818_; -v___x_818_ = lean_box(0); -return v___x_818_; -} -else -{ -lean_object* v_val_819_; lean_object* v___x_821_; uint8_t v_isShared_822_; uint8_t v_isSharedCheck_828_; -v_val_819_ = lean_ctor_get(v___x_817_, 0); -v_isSharedCheck_828_ = !lean_is_exclusive(v___x_817_); -if (v_isSharedCheck_828_ == 0) -{ -v___x_821_ = v___x_817_; -v_isShared_822_ = v_isSharedCheck_828_; -goto v_resetjp_820_; -} -else -{ -lean_inc(v_val_819_); -lean_dec(v___x_817_); -v___x_821_ = lean_box(0); -v_isShared_822_ = v_isSharedCheck_828_; -goto v_resetjp_820_; -} -v_resetjp_820_: -{ -uint8_t v___x_823_; -v___x_823_ = l_Std_Http_Header_TransferEncoding_Validate(v_val_819_); -if (v___x_823_ == 0) -{ -lean_object* v___x_824_; -lean_del_object(v___x_821_); -lean_dec(v_val_819_); -v___x_824_ = lean_box(0); -return v___x_824_; -} -else -{ -lean_object* v___x_826_; -if (v_isShared_822_ == 0) -{ -v___x_826_ = v___x_821_; -goto v_reusejp_825_; -} -else -{ -lean_object* v_reuseFailAlloc_827_; -v_reuseFailAlloc_827_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_827_, 0, v_val_819_); -v___x_826_ = v_reuseFailAlloc_827_; -goto v_reusejp_825_; -} -v_reusejp_825_: -{ +lean_object* v___x_803_; lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; lean_object* v___x_807_; uint8_t v___x_808_; lean_object* v___x_809_; lean_object* v___x_810_; lean_object* v___x_811_; lean_object* v___x_812_; lean_object* v___x_813_; lean_object* v___x_814_; lean_object* v___x_815_; lean_object* v___x_816_; lean_object* v___x_817_; lean_object* v___x_818_; lean_object* v___x_819_; lean_object* v___x_820_; lean_object* v___x_821_; lean_object* v___x_822_; lean_object* v___x_823_; lean_object* v___x_824_; lean_object* v___x_825_; lean_object* v___x_826_; +v___x_803_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); +v___x_804_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__3)); +v___x_805_ = lean_obj_once(&l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4, &l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4_once, _init_l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__4); +v___x_806_ = l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(v_x_802_); +v___x_807_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_807_, 0, v___x_805_); +lean_ctor_set(v___x_807_, 1, v___x_806_); +v___x_808_ = 0; +v___x_809_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_809_, 0, v___x_807_); +lean_ctor_set_uint8(v___x_809_, sizeof(void*)*1, v___x_808_); +v___x_810_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_810_, 0, v___x_804_); +lean_ctor_set(v___x_810_, 1, v___x_809_); +v___x_811_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); +v___x_812_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_812_, 0, v___x_810_); +lean_ctor_set(v___x_812_, 1, v___x_811_); +v___x_813_ = lean_box(1); +v___x_814_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_814_, 0, v___x_812_); +lean_ctor_set(v___x_814_, 1, v___x_813_); +v___x_815_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__6)); +v___x_816_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_816_, 0, v___x_814_); +lean_ctor_set(v___x_816_, 1, v___x_815_); +v___x_817_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_817_, 0, v___x_816_); +lean_ctor_set(v___x_817_, 1, v___x_803_); +v___x_818_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__8)); +v___x_819_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_819_, 0, v___x_817_); +lean_ctor_set(v___x_819_, 1, v___x_818_); +v___x_820_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); +v___x_821_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); +v___x_822_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_822_, 0, v___x_821_); +lean_ctor_set(v___x_822_, 1, v___x_819_); +v___x_823_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); +v___x_824_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_824_, 0, v___x_822_); +lean_ctor_set(v___x_824_, 1, v___x_823_); +v___x_825_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_825_, 0, v___x_820_); +lean_ctor_set(v___x_825_, 1, v___x_824_); +v___x_826_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_826_, 0, v___x_825_); +lean_ctor_set_uint8(v___x_826_, sizeof(void*)*1, v___x_808_); return v___x_826_; } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_serialize(lean_object* v_te_829_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr(lean_object* v_x_827_, lean_object* v_prec_828_){ _start: { -lean_object* v___x_830_; lean_object* v___x_831_; lean_object* v_value_832_; lean_object* v___x_833_; lean_object* v___x_834_; lean_object* v___x_835_; -v___x_830_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__1)); -v___x_831_ = lean_array_to_list(v_te_829_); -v_value_832_ = l_String_intercalate(v___x_830_, v___x_831_); -v___x_833_ = l_Std_Http_Header_Name_transferEncoding; -v___x_834_ = l_Std_Http_Header_Value_ofString_x21(v_value_832_); -v___x_835_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_835_, 0, v___x_833_); -lean_ctor_set(v___x_835_, 1, v___x_834_); -return v___x_835_; +lean_object* v___x_829_; +v___x_829_ = l_Std_Http_Header_instReprTransferEncoding_repr___redArg(v_x_827_); +return v___x_829_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr___redArg(lean_object* v_x_854_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprTransferEncoding_repr___boxed(lean_object* v_x_830_, lean_object* v_prec_831_){ _start: { -lean_object* v___x_855_; lean_object* v___x_856_; lean_object* v___x_857_; lean_object* v___x_858_; lean_object* v___x_859_; uint8_t v___x_860_; lean_object* v___x_861_; lean_object* v___x_862_; lean_object* v___x_863_; lean_object* v___x_864_; lean_object* v___x_865_; lean_object* v___x_866_; lean_object* v___x_867_; lean_object* v___x_868_; lean_object* v___x_869_; lean_object* v___x_870_; lean_object* v___x_871_; lean_object* v___x_872_; lean_object* v___x_873_; lean_object* v___x_874_; lean_object* v___x_875_; lean_object* v___x_876_; lean_object* v___x_877_; lean_object* v___x_878_; -v___x_855_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); -v___x_856_ = ((lean_object*)(l_Std_Http_Header_instReprConnection_repr___redArg___closed__3)); -v___x_857_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7); -v___x_858_ = l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(v_x_854_); -v___x_859_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_859_, 0, v___x_857_); -lean_ctor_set(v___x_859_, 1, v___x_858_); -v___x_860_ = 0; -v___x_861_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_861_, 0, v___x_859_); -lean_ctor_set_uint8(v___x_861_, sizeof(void*)*1, v___x_860_); -v___x_862_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_862_, 0, v___x_856_); -lean_ctor_set(v___x_862_, 1, v___x_861_); -v___x_863_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); -v___x_864_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_864_, 0, v___x_862_); -lean_ctor_set(v___x_864_, 1, v___x_863_); -v___x_865_ = lean_box(1); -v___x_866_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_866_, 0, v___x_864_); -lean_ctor_set(v___x_866_, 1, v___x_865_); -v___x_867_ = ((lean_object*)(l_Std_Http_Header_instReprConnection_repr___redArg___closed__5)); -v___x_868_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_868_, 0, v___x_866_); -lean_ctor_set(v___x_868_, 1, v___x_867_); -v___x_869_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_869_, 0, v___x_868_); -lean_ctor_set(v___x_869_, 1, v___x_855_); -v___x_870_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__8)); -v___x_871_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_871_, 0, v___x_869_); -lean_ctor_set(v___x_871_, 1, v___x_870_); -v___x_872_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); -v___x_873_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); -v___x_874_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_874_, 0, v___x_873_); -lean_ctor_set(v___x_874_, 1, v___x_871_); -v___x_875_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); -v___x_876_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_876_, 0, v___x_874_); -lean_ctor_set(v___x_876_, 1, v___x_875_); -v___x_877_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_877_, 0, v___x_872_); -lean_ctor_set(v___x_877_, 1, v___x_876_); -v___x_878_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_878_, 0, v___x_877_); -lean_ctor_set_uint8(v___x_878_, sizeof(void*)*1, v___x_860_); -return v___x_878_; +lean_object* v_res_832_; +v_res_832_ = l_Std_Http_Header_instReprTransferEncoding_repr(v_x_830_, v_prec_831_); +lean_dec(v_prec_831_); +return v_res_832_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr(lean_object* v_x_879_, lean_object* v_prec_880_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_TransferEncoding_isChunked(lean_object* v_te_835_){ _start: { -lean_object* v___x_881_; -v___x_881_ = l_Std_Http_Header_instReprConnection_repr___redArg(v_x_879_); -return v___x_881_; +lean_object* v___y_837_; lean_object* v___x_840_; lean_object* v___x_841_; lean_object* v___x_842_; uint8_t v___x_843_; +v___x_840_ = lean_array_get_size(v_te_835_); +v___x_841_ = lean_unsigned_to_nat(1u); +v___x_842_ = lean_nat_sub(v___x_840_, v___x_841_); +v___x_843_ = lean_nat_dec_lt(v___x_842_, v___x_840_); +if (v___x_843_ == 0) +{ +lean_object* v___x_844_; +lean_dec(v___x_842_); +v___x_844_ = lean_box(0); +v___y_837_ = v___x_844_; +goto v___jp_836_; +} +else +{ +lean_object* v___x_845_; lean_object* v___x_846_; +v___x_845_ = lean_array_fget_borrowed(v_te_835_, v___x_842_); +lean_dec(v___x_842_); +lean_inc(v___x_845_); +v___x_846_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_846_, 0, v___x_845_); +v___y_837_ = v___x_846_; +goto v___jp_836_; +} +v___jp_836_: +{ +lean_object* v___x_838_; uint8_t v___x_839_; +v___x_838_ = ((lean_object*)(l_Std_Http_Header_TransferEncoding_Validate___closed__0)); +v___x_839_ = l_Option_instBEq_beq___at___00Std_Http_Header_TransferEncoding_Validate_spec__0(v___y_837_, v___x_838_); +lean_dec(v___y_837_); +return v___x_839_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr___boxed(lean_object* v_x_882_, lean_object* v_prec_883_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_isChunked___boxed(lean_object* v_te_847_){ _start: { -lean_object* v_res_884_; -v_res_884_ = l_Std_Http_Header_instReprConnection_repr(v_x_882_, v_prec_883_); -lean_dec(v_prec_883_); -return v_res_884_; +uint8_t v_res_848_; lean_object* v_r_849_; +v_res_848_ = l_Std_Http_Header_TransferEncoding_isChunked(v_te_847_); +lean_dec_ref(v_te_847_); +v_r_849_ = lean_box(v_res_848_); +return v_r_849_; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(lean_object* v_token_887_, lean_object* v_as_888_, size_t v_i_889_, size_t v_stop_890_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_parse(lean_object* v_v_850_){ _start: { -uint8_t v___x_891_; -v___x_891_ = lean_usize_dec_eq(v_i_889_, v_stop_890_); -if (v___x_891_ == 0) +lean_object* v___x_851_; +v___x_851_ = l___private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList(v_v_850_); +if (lean_obj_tag(v___x_851_) == 0) { -lean_object* v___x_892_; uint8_t v___x_893_; -v___x_892_ = lean_array_uget_borrowed(v_as_888_, v_i_889_); -v___x_893_ = lean_string_dec_eq(v___x_892_, v_token_887_); -if (v___x_893_ == 0) +lean_object* v___x_852_; +v___x_852_ = lean_box(0); +return v___x_852_; +} +else { -size_t v___x_894_; size_t v___x_895_; -v___x_894_ = ((size_t)1ULL); -v___x_895_ = lean_usize_add(v_i_889_, v___x_894_); -v_i_889_ = v___x_895_; +lean_object* v_val_853_; lean_object* v___x_855_; uint8_t v_isShared_856_; uint8_t v_isSharedCheck_862_; +v_val_853_ = lean_ctor_get(v___x_851_, 0); +v_isSharedCheck_862_ = !lean_is_exclusive(v___x_851_); +if (v_isSharedCheck_862_ == 0) +{ +v___x_855_ = v___x_851_; +v_isShared_856_ = v_isSharedCheck_862_; +goto v_resetjp_854_; +} +else +{ +lean_inc(v_val_853_); +lean_dec(v___x_851_); +v___x_855_ = lean_box(0); +v_isShared_856_ = v_isSharedCheck_862_; +goto v_resetjp_854_; +} +v_resetjp_854_: +{ +uint8_t v___x_857_; +v___x_857_ = l_Std_Http_Header_TransferEncoding_Validate(v_val_853_); +if (v___x_857_ == 0) +{ +lean_object* v___x_858_; +lean_del_object(v___x_855_); +lean_dec(v_val_853_); +v___x_858_ = lean_box(0); +return v___x_858_; +} +else +{ +lean_object* v___x_860_; +if (v_isShared_856_ == 0) +{ +v___x_860_ = v___x_855_; +goto v_reusejp_859_; +} +else +{ +lean_object* v_reuseFailAlloc_861_; +v_reuseFailAlloc_861_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_861_, 0, v_val_853_); +v___x_860_ = v_reuseFailAlloc_861_; +goto v_reusejp_859_; +} +v_reusejp_859_: +{ +return v___x_860_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_TransferEncoding_serialize(lean_object* v_te_863_){ +_start: +{ +lean_object* v___x_864_; lean_object* v___x_865_; lean_object* v_value_866_; lean_object* v___x_867_; lean_object* v___x_868_; lean_object* v___x_869_; +v___x_864_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__1)); +v___x_865_ = lean_array_to_list(v_te_863_); +v_value_866_ = l_String_intercalate(v___x_864_, v___x_865_); +v___x_867_ = l_Std_Http_Header_Name_transferEncoding; +v___x_868_ = l_Std_Http_Header_Value_ofString_x21(v_value_866_); +v___x_869_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_869_, 0, v___x_867_); +lean_ctor_set(v___x_869_, 1, v___x_868_); +return v___x_869_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr___redArg(lean_object* v_x_888_){ +_start: +{ +lean_object* v___x_889_; lean_object* v___x_890_; lean_object* v___x_891_; lean_object* v___x_892_; lean_object* v___x_893_; uint8_t v___x_894_; lean_object* v___x_895_; lean_object* v___x_896_; lean_object* v___x_897_; lean_object* v___x_898_; lean_object* v___x_899_; lean_object* v___x_900_; lean_object* v___x_901_; lean_object* v___x_902_; lean_object* v___x_903_; lean_object* v___x_904_; lean_object* v___x_905_; lean_object* v___x_906_; lean_object* v___x_907_; lean_object* v___x_908_; lean_object* v___x_909_; lean_object* v___x_910_; lean_object* v___x_911_; lean_object* v___x_912_; +v___x_889_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); +v___x_890_ = ((lean_object*)(l_Std_Http_Header_instReprConnection_repr___redArg___closed__3)); +v___x_891_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__7); +v___x_892_ = l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0(v_x_888_); +v___x_893_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_893_, 0, v___x_891_); +lean_ctor_set(v___x_893_, 1, v___x_892_); +v___x_894_ = 0; +v___x_895_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_895_, 0, v___x_893_); +lean_ctor_set_uint8(v___x_895_, sizeof(void*)*1, v___x_894_); +v___x_896_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_896_, 0, v___x_890_); +lean_ctor_set(v___x_896_, 1, v___x_895_); +v___x_897_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); +v___x_898_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_898_, 0, v___x_896_); +lean_ctor_set(v___x_898_, 1, v___x_897_); +v___x_899_ = lean_box(1); +v___x_900_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_900_, 0, v___x_898_); +lean_ctor_set(v___x_900_, 1, v___x_899_); +v___x_901_ = ((lean_object*)(l_Std_Http_Header_instReprConnection_repr___redArg___closed__5)); +v___x_902_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_902_, 0, v___x_900_); +lean_ctor_set(v___x_902_, 1, v___x_901_); +v___x_903_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_903_, 0, v___x_902_); +lean_ctor_set(v___x_903_, 1, v___x_889_); +v___x_904_ = ((lean_object*)(l_Std_Http_Header_instReprTransferEncoding_repr___redArg___closed__8)); +v___x_905_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_905_, 0, v___x_903_); +lean_ctor_set(v___x_905_, 1, v___x_904_); +v___x_906_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); +v___x_907_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); +v___x_908_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_908_, 0, v___x_907_); +lean_ctor_set(v___x_908_, 1, v___x_905_); +v___x_909_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); +v___x_910_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_910_, 0, v___x_908_); +lean_ctor_set(v___x_910_, 1, v___x_909_); +v___x_911_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_911_, 0, v___x_906_); +lean_ctor_set(v___x_911_, 1, v___x_910_); +v___x_912_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_912_, 0, v___x_911_); +lean_ctor_set_uint8(v___x_912_, sizeof(void*)*1, v___x_894_); +return v___x_912_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr(lean_object* v_x_913_, lean_object* v_prec_914_){ +_start: +{ +lean_object* v___x_915_; +v___x_915_ = l_Std_Http_Header_instReprConnection_repr___redArg(v_x_913_); +return v___x_915_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprConnection_repr___boxed(lean_object* v_x_916_, lean_object* v_prec_917_){ +_start: +{ +lean_object* v_res_918_; +v_res_918_ = l_Std_Http_Header_instReprConnection_repr(v_x_916_, v_prec_917_); +lean_dec(v_prec_917_); +return v_res_918_; +} +} +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(lean_object* v_token_921_, lean_object* v_as_922_, size_t v_i_923_, size_t v_stop_924_){ +_start: +{ +uint8_t v___x_925_; +v___x_925_ = lean_usize_dec_eq(v_i_923_, v_stop_924_); +if (v___x_925_ == 0) +{ +lean_object* v___x_926_; uint8_t v___x_927_; +v___x_926_ = lean_array_uget_borrowed(v_as_922_, v_i_923_); +v___x_927_ = lean_string_dec_eq(v___x_926_, v_token_921_); +if (v___x_927_ == 0) +{ +size_t v___x_928_; size_t v___x_929_; +v___x_928_ = ((size_t)1ULL); +v___x_929_ = lean_usize_add(v_i_923_, v___x_928_); +v_i_923_ = v___x_929_; goto _start; } else { -return v___x_893_; +return v___x_927_; } } else { -uint8_t v___x_897_; -v___x_897_ = 0; -return v___x_897_; +uint8_t v___x_931_; +v___x_931_ = 0; +return v___x_931_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0___boxed(lean_object* v_token_898_, lean_object* v_as_899_, lean_object* v_i_900_, lean_object* v_stop_901_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0___boxed(lean_object* v_token_932_, lean_object* v_as_933_, lean_object* v_i_934_, lean_object* v_stop_935_){ _start: { -size_t v_i_boxed_902_; size_t v_stop_boxed_903_; uint8_t v_res_904_; lean_object* v_r_905_; -v_i_boxed_902_ = lean_unbox_usize(v_i_900_); -lean_dec(v_i_900_); -v_stop_boxed_903_ = lean_unbox_usize(v_stop_901_); -lean_dec(v_stop_901_); -v_res_904_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(v_token_898_, v_as_899_, v_i_boxed_902_, v_stop_boxed_903_); -lean_dec_ref(v_as_899_); -lean_dec_ref(v_token_898_); -v_r_905_ = lean_box(v_res_904_); -return v_r_905_; +size_t v_i_boxed_936_; size_t v_stop_boxed_937_; uint8_t v_res_938_; lean_object* v_r_939_; +v_i_boxed_936_ = lean_unbox_usize(v_i_934_); +lean_dec(v_i_934_); +v_stop_boxed_937_ = lean_unbox_usize(v_stop_935_); +lean_dec(v_stop_935_); +v_res_938_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(v_token_932_, v_as_933_, v_i_boxed_936_, v_stop_boxed_937_); +lean_dec_ref(v_as_933_); +lean_dec_ref(v_token_932_); +v_r_939_ = lean_box(v_res_938_); +return v_r_939_; } } -LEAN_EXPORT uint8_t l_Std_Http_Header_Connection_containsToken(lean_object* v_connection_906_, lean_object* v_token_907_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_Connection_containsToken(lean_object* v_connection_940_, lean_object* v_token_941_){ _start: { -lean_object* v___x_908_; lean_object* v___x_909_; uint8_t v___x_910_; -v___x_908_ = lean_unsigned_to_nat(0u); -v___x_909_ = lean_array_get_size(v_connection_906_); -v___x_910_ = lean_nat_dec_lt(v___x_908_, v___x_909_); -if (v___x_910_ == 0) +lean_object* v___x_942_; lean_object* v___x_943_; uint8_t v___x_944_; +v___x_942_ = lean_unsigned_to_nat(0u); +v___x_943_ = lean_array_get_size(v_connection_940_); +v___x_944_ = lean_nat_dec_lt(v___x_942_, v___x_943_); +if (v___x_944_ == 0) { -lean_dec_ref(v_token_907_); -return v___x_910_; +lean_dec_ref(v_token_941_); +return v___x_944_; } else { -lean_object* v___x_911_; -v___x_911_ = lean_string_utf8_byte_size(v_token_907_); -if (v___x_910_ == 0) +lean_object* v___x_945_; +v___x_945_ = lean_string_utf8_byte_size(v_token_941_); +if (v___x_944_ == 0) { -lean_dec_ref(v_token_907_); -return v___x_910_; +lean_dec_ref(v_token_941_); +return v___x_944_; } else { -lean_object* v___x_912_; lean_object* v___x_913_; lean_object* v___x_914_; lean_object* v_token_915_; size_t v___x_916_; size_t v___x_917_; uint8_t v___x_918_; -v___x_912_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_912_, 0, v_token_907_); -lean_ctor_set(v___x_912_, 1, v___x_908_); -lean_ctor_set(v___x_912_, 2, v___x_911_); -v___x_913_ = l_String_Slice_trimAscii(v___x_912_); -v___x_914_ = l_String_Slice_toString(v___x_913_); -lean_dec_ref(v___x_913_); -v_token_915_ = l_String_mapAux___at___00__private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList_spec__0(v___x_914_, v___x_908_); -v___x_916_ = ((size_t)0ULL); -v___x_917_ = lean_usize_of_nat(v___x_909_); -v___x_918_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(v_token_915_, v_connection_906_, v___x_916_, v___x_917_); -lean_dec_ref(v_token_915_); -return v___x_918_; +lean_object* v___x_946_; lean_object* v___x_947_; lean_object* v___x_948_; lean_object* v_token_949_; size_t v___x_950_; size_t v___x_951_; uint8_t v___x_952_; +v___x_946_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_946_, 0, v_token_941_); +lean_ctor_set(v___x_946_, 1, v___x_942_); +lean_ctor_set(v___x_946_, 2, v___x_945_); +v___x_947_ = l_String_Slice_trimAscii(v___x_946_); +v___x_948_ = l_String_Slice_toString(v___x_947_); +lean_dec_ref(v___x_947_); +v_token_949_ = l_String_mapAux___at___00__private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList_spec__0(v___x_948_, v___x_942_); +v___x_950_ = ((size_t)0ULL); +v___x_951_ = lean_usize_of_nat(v___x_943_); +v___x_952_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_containsToken_spec__0(v_token_949_, v_connection_940_, v___x_950_, v___x_951_); +lean_dec_ref(v_token_949_); +return v___x_952_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_containsToken___boxed(lean_object* v_connection_919_, lean_object* v_token_920_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_containsToken___boxed(lean_object* v_connection_953_, lean_object* v_token_954_){ _start: { -uint8_t v_res_921_; lean_object* v_r_922_; -v_res_921_ = l_Std_Http_Header_Connection_containsToken(v_connection_919_, v_token_920_); -lean_dec_ref(v_connection_919_); -v_r_922_ = lean_box(v_res_921_); -return v_r_922_; +uint8_t v_res_955_; lean_object* v_r_956_; +v_res_955_ = l_Std_Http_Header_Connection_containsToken(v_connection_953_, v_token_954_); +lean_dec_ref(v_connection_953_); +v_r_956_ = lean_box(v_res_955_); +return v_r_956_; } } -LEAN_EXPORT uint8_t l_Std_Http_Header_Connection_shouldClose(lean_object* v_connection_924_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_Connection_shouldClose(lean_object* v_connection_958_){ _start: { -lean_object* v___x_925_; uint8_t v___x_926_; -v___x_925_ = ((lean_object*)(l_Std_Http_Header_Connection_shouldClose___closed__0)); -v___x_926_ = l_Std_Http_Header_Connection_containsToken(v_connection_924_, v___x_925_); -return v___x_926_; +lean_object* v___x_959_; uint8_t v___x_960_; +v___x_959_ = ((lean_object*)(l_Std_Http_Header_Connection_shouldClose___closed__0)); +v___x_960_ = l_Std_Http_Header_Connection_containsToken(v_connection_958_, v___x_959_); +return v___x_960_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_shouldClose___boxed(lean_object* v_connection_927_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_shouldClose___boxed(lean_object* v_connection_961_){ _start: { -uint8_t v_res_928_; lean_object* v_r_929_; -v_res_928_ = l_Std_Http_Header_Connection_shouldClose(v_connection_927_); -lean_dec_ref(v_connection_927_); -v_r_929_ = lean_box(v_res_928_); -return v_r_929_; +uint8_t v_res_962_; lean_object* v_r_963_; +v_res_962_ = l_Std_Http_Header_Connection_shouldClose(v_connection_961_); +lean_dec_ref(v_connection_961_); +v_r_963_ = lean_box(v_res_962_); +return v_r_963_; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(lean_object* v_as_930_, size_t v_i_931_, size_t v_stop_932_){ +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(lean_object* v_as_964_, size_t v_i_965_, size_t v_stop_966_){ _start: { -uint8_t v___x_933_; -v___x_933_ = lean_usize_dec_eq(v_i_931_, v_stop_932_); -if (v___x_933_ == 0) +uint8_t v___x_967_; +v___x_967_ = lean_usize_dec_eq(v_i_965_, v_stop_966_); +if (v___x_967_ == 0) { -uint8_t v___x_934_; lean_object* v___x_935_; uint8_t v___x_936_; -v___x_934_ = 1; -v___x_935_ = lean_array_uget_borrowed(v_as_930_, v_i_931_); -lean_inc(v___x_935_); -v___x_936_ = l_Std_Http_Internal_isToken(v___x_935_); -if (v___x_936_ == 0) +uint8_t v___x_968_; lean_object* v___x_969_; uint8_t v___x_970_; +v___x_968_ = 1; +v___x_969_ = lean_array_uget_borrowed(v_as_964_, v_i_965_); +lean_inc(v___x_969_); +v___x_970_ = l_Std_Http_Internal_isToken(v___x_969_); +if (v___x_970_ == 0) { -return v___x_934_; +return v___x_968_; } else { -if (v___x_933_ == 0) +if (v___x_967_ == 0) { -size_t v___x_937_; size_t v___x_938_; -v___x_937_ = ((size_t)1ULL); -v___x_938_ = lean_usize_add(v_i_931_, v___x_937_); -v_i_931_ = v___x_938_; +size_t v___x_971_; size_t v___x_972_; +v___x_971_ = ((size_t)1ULL); +v___x_972_ = lean_usize_add(v_i_965_, v___x_971_); +v_i_965_ = v___x_972_; goto _start; } else { -return v___x_934_; -} -} -} -else -{ -uint8_t v___x_940_; -v___x_940_ = 0; -return v___x_940_; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0___boxed(lean_object* v_as_941_, lean_object* v_i_942_, lean_object* v_stop_943_){ -_start: -{ -size_t v_i_boxed_944_; size_t v_stop_boxed_945_; uint8_t v_res_946_; lean_object* v_r_947_; -v_i_boxed_944_ = lean_unbox_usize(v_i_942_); -lean_dec(v_i_942_); -v_stop_boxed_945_ = lean_unbox_usize(v_stop_943_); -lean_dec(v_stop_943_); -v_res_946_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(v_as_941_, v_i_boxed_944_, v_stop_boxed_945_); -lean_dec_ref(v_as_941_); -v_r_947_ = lean_box(v_res_946_); -return v_r_947_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_parse(lean_object* v_v_948_){ -_start: -{ -lean_object* v___x_949_; -v___x_949_ = l___private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList(v_v_948_); -if (lean_obj_tag(v___x_949_) == 0) -{ -lean_object* v___x_950_; -v___x_950_ = lean_box(0); -return v___x_950_; -} -else -{ -lean_object* v_val_951_; lean_object* v___x_953_; uint8_t v_isShared_954_; uint8_t v_isSharedCheck_971_; -v_val_951_ = lean_ctor_get(v___x_949_, 0); -v_isSharedCheck_971_ = !lean_is_exclusive(v___x_949_); -if (v_isSharedCheck_971_ == 0) -{ -v___x_953_ = v___x_949_; -v_isShared_954_ = v_isSharedCheck_971_; -goto v_resetjp_952_; -} -else -{ -lean_inc(v_val_951_); -lean_dec(v___x_949_); -v___x_953_ = lean_box(0); -v_isShared_954_ = v_isSharedCheck_971_; -goto v_resetjp_952_; -} -v_resetjp_952_: -{ -lean_object* v___x_955_; lean_object* v___x_956_; uint8_t v___x_957_; -v___x_955_ = lean_unsigned_to_nat(0u); -v___x_956_ = lean_array_get_size(v_val_951_); -v___x_957_ = lean_nat_dec_lt(v___x_955_, v___x_956_); -if (v___x_957_ == 0) -{ -lean_object* v___x_959_; -if (v_isShared_954_ == 0) -{ -v___x_959_ = v___x_953_; -goto v_reusejp_958_; -} -else -{ -lean_object* v_reuseFailAlloc_960_; -v_reuseFailAlloc_960_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_960_, 0, v_val_951_); -v___x_959_ = v_reuseFailAlloc_960_; -goto v_reusejp_958_; -} -v_reusejp_958_: -{ -return v___x_959_; -} -} -else -{ -if (v___x_957_ == 0) -{ -lean_object* v___x_962_; -if (v_isShared_954_ == 0) -{ -v___x_962_ = v___x_953_; -goto v_reusejp_961_; -} -else -{ -lean_object* v_reuseFailAlloc_963_; -v_reuseFailAlloc_963_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_963_, 0, v_val_951_); -v___x_962_ = v_reuseFailAlloc_963_; -goto v_reusejp_961_; -} -v_reusejp_961_: -{ -return v___x_962_; -} -} -else -{ -size_t v___x_964_; size_t v___x_965_; uint8_t v___x_966_; -v___x_964_ = ((size_t)0ULL); -v___x_965_ = lean_usize_of_nat(v___x_956_); -v___x_966_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(v_val_951_, v___x_964_, v___x_965_); -if (v___x_966_ == 0) -{ -lean_object* v___x_968_; -if (v_isShared_954_ == 0) -{ -v___x_968_ = v___x_953_; -goto v_reusejp_967_; -} -else -{ -lean_object* v_reuseFailAlloc_969_; -v_reuseFailAlloc_969_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_969_, 0, v_val_951_); -v___x_968_ = v_reuseFailAlloc_969_; -goto v_reusejp_967_; -} -v_reusejp_967_: -{ return v___x_968_; } } +} else { -lean_object* v___x_970_; -lean_del_object(v___x_953_); -lean_dec(v_val_951_); -v___x_970_ = lean_box(0); -return v___x_970_; +uint8_t v___x_974_; +v___x_974_ = 0; +return v___x_974_; } } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_serialize(lean_object* v_connection_972_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0___boxed(lean_object* v_as_975_, lean_object* v_i_976_, lean_object* v_stop_977_){ _start: { -lean_object* v___x_973_; lean_object* v___x_974_; lean_object* v_value_975_; lean_object* v___x_976_; lean_object* v___x_977_; lean_object* v___x_978_; -v___x_973_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__1)); -v___x_974_ = lean_array_to_list(v_connection_972_); -v_value_975_ = l_String_intercalate(v___x_973_, v___x_974_); -v___x_976_ = l_Std_Http_Header_Name_connection; -v___x_977_ = l_Std_Http_Header_Value_ofString_x21(v_value_975_); -v___x_978_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_978_, 0, v___x_976_); -lean_ctor_set(v___x_978_, 1, v___x_977_); -return v___x_978_; +size_t v_i_boxed_978_; size_t v_stop_boxed_979_; uint8_t v_res_980_; lean_object* v_r_981_; +v_i_boxed_978_ = lean_unbox_usize(v_i_976_); +lean_dec(v_i_976_); +v_stop_boxed_979_ = lean_unbox_usize(v_stop_977_); +lean_dec(v_stop_977_); +v_res_980_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(v_as_975_, v_i_boxed_978_, v_stop_boxed_979_); +lean_dec_ref(v_as_975_); +v_r_981_ = lean_box(v_res_980_); +return v_r_981_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_parse(lean_object* v_v_982_){ +_start: +{ +lean_object* v___x_983_; +v___x_983_ = l___private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList(v_v_982_); +if (lean_obj_tag(v___x_983_) == 0) +{ +lean_object* v___x_984_; +v___x_984_ = lean_box(0); +return v___x_984_; +} +else +{ +lean_object* v_val_985_; lean_object* v___x_987_; uint8_t v_isShared_988_; uint8_t v_isSharedCheck_1005_; +v_val_985_ = lean_ctor_get(v___x_983_, 0); +v_isSharedCheck_1005_ = !lean_is_exclusive(v___x_983_); +if (v_isSharedCheck_1005_ == 0) +{ +v___x_987_ = v___x_983_; +v_isShared_988_ = v_isSharedCheck_1005_; +goto v_resetjp_986_; +} +else +{ +lean_inc(v_val_985_); +lean_dec(v___x_983_); +v___x_987_ = lean_box(0); +v_isShared_988_ = v_isSharedCheck_1005_; +goto v_resetjp_986_; +} +v_resetjp_986_: +{ +lean_object* v___x_989_; lean_object* v___x_990_; uint8_t v___x_991_; +v___x_989_ = lean_unsigned_to_nat(0u); +v___x_990_ = lean_array_get_size(v_val_985_); +v___x_991_ = lean_nat_dec_lt(v___x_989_, v___x_990_); +if (v___x_991_ == 0) +{ +lean_object* v___x_993_; +if (v_isShared_988_ == 0) +{ +v___x_993_ = v___x_987_; +goto v_reusejp_992_; +} +else +{ +lean_object* v_reuseFailAlloc_994_; +v_reuseFailAlloc_994_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_994_, 0, v_val_985_); +v___x_993_ = v_reuseFailAlloc_994_; +goto v_reusejp_992_; +} +v_reusejp_992_: +{ +return v___x_993_; +} +} +else +{ +if (v___x_991_ == 0) +{ +lean_object* v___x_996_; +if (v_isShared_988_ == 0) +{ +v___x_996_ = v___x_987_; +goto v_reusejp_995_; +} +else +{ +lean_object* v_reuseFailAlloc_997_; +v_reuseFailAlloc_997_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_997_, 0, v_val_985_); +v___x_996_ = v_reuseFailAlloc_997_; +goto v_reusejp_995_; +} +v_reusejp_995_: +{ +return v___x_996_; +} +} +else +{ +size_t v___x_998_; size_t v___x_999_; uint8_t v___x_1000_; +v___x_998_ = ((size_t)0ULL); +v___x_999_ = lean_usize_of_nat(v___x_990_); +v___x_1000_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Header_Connection_parse_spec__0(v_val_985_, v___x_998_, v___x_999_); +if (v___x_1000_ == 0) +{ +lean_object* v___x_1002_; +if (v_isShared_988_ == 0) +{ +v___x_1002_ = v___x_987_; +goto v_reusejp_1001_; +} +else +{ +lean_object* v_reuseFailAlloc_1003_; +v_reuseFailAlloc_1003_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1003_, 0, v_val_985_); +v___x_1002_ = v_reuseFailAlloc_1003_; +goto v_reusejp_1001_; +} +v_reusejp_1001_: +{ +return v___x_1002_; +} +} +else +{ +lean_object* v___x_1004_; +lean_del_object(v___x_987_); +lean_dec(v_val_985_); +v___x_1004_ = lean_box(0); +return v___x_1004_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_Connection_serialize(lean_object* v_connection_1006_){ +_start: +{ +lean_object* v___x_1007_; lean_object* v___x_1008_; lean_object* v_value_1009_; lean_object* v___x_1010_; lean_object* v___x_1011_; lean_object* v___x_1012_; +v___x_1007_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__1)); +v___x_1008_ = lean_array_to_list(v_connection_1006_); +v_value_1009_ = l_String_intercalate(v___x_1007_, v___x_1008_); +v___x_1010_ = l_Std_Http_Header_Name_connection; +v___x_1011_ = l_Std_Http_Header_Value_ofString_x21(v_value_1009_); +v___x_1012_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1012_, 0, v___x_1010_); +lean_ctor_set(v___x_1012_, 1, v___x_1011_); +return v___x_1012_; } } static lean_object* _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__4(void){ _start: { -lean_object* v___x_994_; lean_object* v___x_995_; -v___x_994_ = lean_unsigned_to_nat(8u); -v___x_995_ = lean_nat_to_int(v___x_994_); -return v___x_995_; +lean_object* v___x_1028_; lean_object* v___x_1029_; +v___x_1028_ = lean_unsigned_to_nat(8u); +v___x_1029_ = lean_nat_to_int(v___x_1028_); +return v___x_1029_; } } static lean_object* _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__5(void){ _start: { -lean_object* v___x_996_; lean_object* v___x_997_; -v___x_996_ = lean_unsigned_to_nat(2u); -v___x_997_ = lean_nat_to_int(v___x_996_); -return v___x_997_; +lean_object* v___x_1030_; lean_object* v___x_1031_; +v___x_1030_ = lean_unsigned_to_nat(2u); +v___x_1031_ = lean_nat_to_int(v___x_1030_); +return v___x_1031_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr___redArg(lean_object* v_x_1005_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr___redArg(lean_object* v_x_1039_){ _start: { -lean_object* v_host_1006_; lean_object* v_port_1007_; lean_object* v___x_1009_; uint8_t v_isShared_1010_; uint8_t v_isSharedCheck_1081_; -v_host_1006_ = lean_ctor_get(v_x_1005_, 0); -v_port_1007_ = lean_ctor_get(v_x_1005_, 1); -v_isSharedCheck_1081_ = !lean_is_exclusive(v_x_1005_); -if (v_isSharedCheck_1081_ == 0) +lean_object* v_host_1040_; lean_object* v_port_1041_; lean_object* v___x_1043_; uint8_t v_isShared_1044_; uint8_t v_isSharedCheck_1115_; +v_host_1040_ = lean_ctor_get(v_x_1039_, 0); +v_port_1041_ = lean_ctor_get(v_x_1039_, 1); +v_isSharedCheck_1115_ = !lean_is_exclusive(v_x_1039_); +if (v_isSharedCheck_1115_ == 0) { -v___x_1009_ = v_x_1005_; -v_isShared_1010_ = v_isSharedCheck_1081_; -goto v_resetjp_1008_; +v___x_1043_ = v_x_1039_; +v_isShared_1044_ = v_isSharedCheck_1115_; +goto v_resetjp_1042_; } else { -lean_inc(v_port_1007_); -lean_inc(v_host_1006_); -lean_dec(v_x_1005_); -v___x_1009_ = lean_box(0); -v_isShared_1010_ = v_isSharedCheck_1081_; -goto v_resetjp_1008_; +lean_inc(v_port_1041_); +lean_inc(v_host_1040_); +lean_dec(v_x_1039_); +v___x_1043_ = lean_box(0); +v_isShared_1044_ = v_isSharedCheck_1115_; +goto v_resetjp_1042_; } -v_resetjp_1008_: +v_resetjp_1042_: { -lean_object* v___x_1011_; lean_object* v___x_1012_; lean_object* v___x_1013_; lean_object* v___x_1014_; lean_object* v___x_1015_; lean_object* v_ctr_1017_; lean_object* v_a_1018_; -v___x_1011_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); -v___x_1012_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__3)); -v___x_1013_ = lean_obj_once(&l_Std_Http_Header_instReprHost_repr___redArg___closed__4, &l_Std_Http_Header_instReprHost_repr___redArg___closed__4_once, _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__4); -v___x_1014_ = lean_unsigned_to_nat(0u); -v___x_1015_ = lean_obj_once(&l_Std_Http_Header_instReprHost_repr___redArg___closed__5, &l_Std_Http_Header_instReprHost_repr___redArg___closed__5_once, _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__5); -switch(lean_obj_tag(v_host_1006_)) +lean_object* v___x_1045_; lean_object* v___x_1046_; lean_object* v___x_1047_; lean_object* v___x_1048_; lean_object* v___x_1049_; lean_object* v_ctr_1051_; lean_object* v_a_1052_; +v___x_1045_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__5)); +v___x_1046_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__3)); +v___x_1047_ = lean_obj_once(&l_Std_Http_Header_instReprHost_repr___redArg___closed__4, &l_Std_Http_Header_instReprHost_repr___redArg___closed__4_once, _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__4); +v___x_1048_ = lean_unsigned_to_nat(0u); +v___x_1049_ = lean_obj_once(&l_Std_Http_Header_instReprHost_repr___redArg___closed__5, &l_Std_Http_Header_instReprHost_repr___redArg___closed__5_once, _init_l_Std_Http_Header_instReprHost_repr___redArg___closed__5); +switch(lean_obj_tag(v_host_1040_)) { case 0: { -lean_object* v_name_1051_; lean_object* v___x_1053_; uint8_t v_isShared_1054_; uint8_t v_isSharedCheck_1060_; -v_name_1051_ = lean_ctor_get(v_host_1006_, 0); -v_isSharedCheck_1060_ = !lean_is_exclusive(v_host_1006_); -if (v_isSharedCheck_1060_ == 0) +lean_object* v_name_1085_; lean_object* v___x_1087_; uint8_t v_isShared_1088_; uint8_t v_isSharedCheck_1094_; +v_name_1085_ = lean_ctor_get(v_host_1040_, 0); +v_isSharedCheck_1094_ = !lean_is_exclusive(v_host_1040_); +if (v_isSharedCheck_1094_ == 0) { -v___x_1053_ = v_host_1006_; -v_isShared_1054_ = v_isSharedCheck_1060_; -goto v_resetjp_1052_; +v___x_1087_ = v_host_1040_; +v_isShared_1088_ = v_isSharedCheck_1094_; +goto v_resetjp_1086_; } else { -lean_inc(v_name_1051_); -lean_dec(v_host_1006_); -v___x_1053_ = lean_box(0); -v_isShared_1054_ = v_isSharedCheck_1060_; -goto v_resetjp_1052_; +lean_inc(v_name_1085_); +lean_dec(v_host_1040_); +v___x_1087_ = lean_box(0); +v_isShared_1088_ = v_isSharedCheck_1094_; +goto v_resetjp_1086_; } -v_resetjp_1052_: +v_resetjp_1086_: { -lean_object* v___x_1055_; lean_object* v___x_1056_; lean_object* v___x_1058_; -v___x_1055_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__9)); -v___x_1056_ = l_String_quote(v_name_1051_); -if (v_isShared_1054_ == 0) +lean_object* v___x_1089_; lean_object* v___x_1090_; lean_object* v___x_1092_; +v___x_1089_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__9)); +v___x_1090_ = l_String_quote(v_name_1085_); +if (v_isShared_1088_ == 0) { -lean_ctor_set_tag(v___x_1053_, 3); -lean_ctor_set(v___x_1053_, 0, v___x_1056_); -v___x_1058_ = v___x_1053_; +lean_ctor_set_tag(v___x_1087_, 3); +lean_ctor_set(v___x_1087_, 0, v___x_1090_); +v___x_1092_ = v___x_1087_; +goto v_reusejp_1091_; +} +else +{ +lean_object* v_reuseFailAlloc_1093_; +v_reuseFailAlloc_1093_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1093_, 0, v___x_1090_); +v___x_1092_ = v_reuseFailAlloc_1093_; +goto v_reusejp_1091_; +} +v_reusejp_1091_: +{ +v_ctr_1051_ = v___x_1089_; +v_a_1052_ = v___x_1092_; +goto v___jp_1050_; +} +} +} +case 1: +{ +lean_object* v_ipv4_1095_; lean_object* v___x_1097_; uint8_t v_isShared_1098_; uint8_t v_isSharedCheck_1104_; +v_ipv4_1095_ = lean_ctor_get(v_host_1040_, 0); +v_isSharedCheck_1104_ = !lean_is_exclusive(v_host_1040_); +if (v_isSharedCheck_1104_ == 0) +{ +v___x_1097_ = v_host_1040_; +v_isShared_1098_ = v_isSharedCheck_1104_; +goto v_resetjp_1096_; +} +else +{ +lean_inc(v_ipv4_1095_); +lean_dec(v_host_1040_); +v___x_1097_ = lean_box(0); +v_isShared_1098_ = v_isSharedCheck_1104_; +goto v_resetjp_1096_; +} +v_resetjp_1096_: +{ +lean_object* v___x_1099_; lean_object* v___x_1100_; lean_object* v___x_1102_; +v___x_1099_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__10)); +v___x_1100_ = lean_uv_ntop_v4(v_ipv4_1095_); +lean_dec_ref(v_ipv4_1095_); +if (v_isShared_1098_ == 0) +{ +lean_ctor_set_tag(v___x_1097_, 3); +lean_ctor_set(v___x_1097_, 0, v___x_1100_); +v___x_1102_ = v___x_1097_; +goto v_reusejp_1101_; +} +else +{ +lean_object* v_reuseFailAlloc_1103_; +v_reuseFailAlloc_1103_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1103_, 0, v___x_1100_); +v___x_1102_ = v_reuseFailAlloc_1103_; +goto v_reusejp_1101_; +} +v_reusejp_1101_: +{ +v_ctr_1051_ = v___x_1099_; +v_a_1052_ = v___x_1102_; +goto v___jp_1050_; +} +} +} +default: +{ +lean_object* v_ipv6_1105_; lean_object* v___x_1107_; uint8_t v_isShared_1108_; uint8_t v_isSharedCheck_1114_; +v_ipv6_1105_ = lean_ctor_get(v_host_1040_, 0); +v_isSharedCheck_1114_ = !lean_is_exclusive(v_host_1040_); +if (v_isSharedCheck_1114_ == 0) +{ +v___x_1107_ = v_host_1040_; +v_isShared_1108_ = v_isSharedCheck_1114_; +goto v_resetjp_1106_; +} +else +{ +lean_inc(v_ipv6_1105_); +lean_dec(v_host_1040_); +v___x_1107_ = lean_box(0); +v_isShared_1108_ = v_isSharedCheck_1114_; +goto v_resetjp_1106_; +} +v_resetjp_1106_: +{ +lean_object* v___x_1109_; lean_object* v___x_1110_; lean_object* v___x_1112_; +v___x_1109_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__11)); +v___x_1110_ = lean_uv_ntop_v6(v_ipv6_1105_); +lean_dec_ref(v_ipv6_1105_); +if (v_isShared_1108_ == 0) +{ +lean_ctor_set_tag(v___x_1107_, 3); +lean_ctor_set(v___x_1107_, 0, v___x_1110_); +v___x_1112_ = v___x_1107_; +goto v_reusejp_1111_; +} +else +{ +lean_object* v_reuseFailAlloc_1113_; +v_reuseFailAlloc_1113_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1113_, 0, v___x_1110_); +v___x_1112_ = v_reuseFailAlloc_1113_; +goto v_reusejp_1111_; +} +v_reusejp_1111_: +{ +v_ctr_1051_ = v___x_1109_; +v_a_1052_ = v___x_1112_; +goto v___jp_1050_; +} +} +} +} +v___jp_1050_: +{ +lean_object* v___x_1053_; lean_object* v___x_1054_; lean_object* v___x_1055_; lean_object* v___x_1056_; lean_object* v___x_1058_; +v___x_1053_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__6)); +v___x_1054_ = lean_string_append(v___x_1053_, v_ctr_1051_); +v___x_1055_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_1055_, 0, v___x_1054_); +v___x_1056_ = lean_box(1); +if (v_isShared_1044_ == 0) +{ +lean_ctor_set_tag(v___x_1043_, 5); +lean_ctor_set(v___x_1043_, 1, v___x_1056_); +lean_ctor_set(v___x_1043_, 0, v___x_1055_); +v___x_1058_ = v___x_1043_; goto v_reusejp_1057_; } else { -lean_object* v_reuseFailAlloc_1059_; -v_reuseFailAlloc_1059_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1059_, 0, v___x_1056_); -v___x_1058_ = v_reuseFailAlloc_1059_; +lean_object* v_reuseFailAlloc_1084_; +v_reuseFailAlloc_1084_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1084_, 0, v___x_1055_); +lean_ctor_set(v_reuseFailAlloc_1084_, 1, v___x_1056_); +v___x_1058_ = v_reuseFailAlloc_1084_; goto v_reusejp_1057_; } v_reusejp_1057_: { -v_ctr_1017_ = v___x_1055_; -v_a_1018_ = v___x_1058_; -goto v___jp_1016_; -} -} -} -case 1: -{ -lean_object* v_ipv4_1061_; lean_object* v___x_1063_; uint8_t v_isShared_1064_; uint8_t v_isSharedCheck_1070_; -v_ipv4_1061_ = lean_ctor_get(v_host_1006_, 0); -v_isSharedCheck_1070_ = !lean_is_exclusive(v_host_1006_); -if (v_isSharedCheck_1070_ == 0) -{ -v___x_1063_ = v_host_1006_; -v_isShared_1064_ = v_isSharedCheck_1070_; -goto v_resetjp_1062_; -} -else -{ -lean_inc(v_ipv4_1061_); -lean_dec(v_host_1006_); -v___x_1063_ = lean_box(0); -v_isShared_1064_ = v_isSharedCheck_1070_; -goto v_resetjp_1062_; -} -v_resetjp_1062_: -{ -lean_object* v___x_1065_; lean_object* v___x_1066_; lean_object* v___x_1068_; -v___x_1065_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__10)); -v___x_1066_ = lean_uv_ntop_v4(v_ipv4_1061_); -lean_dec_ref(v_ipv4_1061_); -if (v_isShared_1064_ == 0) -{ -lean_ctor_set_tag(v___x_1063_, 3); -lean_ctor_set(v___x_1063_, 0, v___x_1066_); -v___x_1068_ = v___x_1063_; -goto v_reusejp_1067_; -} -else -{ -lean_object* v_reuseFailAlloc_1069_; -v_reuseFailAlloc_1069_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1069_, 0, v___x_1066_); -v___x_1068_ = v_reuseFailAlloc_1069_; -goto v_reusejp_1067_; -} -v_reusejp_1067_: -{ -v_ctr_1017_ = v___x_1065_; -v_a_1018_ = v___x_1068_; -goto v___jp_1016_; -} -} -} -default: -{ -lean_object* v_ipv6_1071_; lean_object* v___x_1073_; uint8_t v_isShared_1074_; uint8_t v_isSharedCheck_1080_; -v_ipv6_1071_ = lean_ctor_get(v_host_1006_, 0); -v_isSharedCheck_1080_ = !lean_is_exclusive(v_host_1006_); -if (v_isSharedCheck_1080_ == 0) -{ -v___x_1073_ = v_host_1006_; -v_isShared_1074_ = v_isSharedCheck_1080_; -goto v_resetjp_1072_; -} -else -{ -lean_inc(v_ipv6_1071_); -lean_dec(v_host_1006_); -v___x_1073_ = lean_box(0); -v_isShared_1074_ = v_isSharedCheck_1080_; -goto v_resetjp_1072_; -} -v_resetjp_1072_: -{ -lean_object* v___x_1075_; lean_object* v___x_1076_; lean_object* v___x_1078_; -v___x_1075_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__11)); -v___x_1076_ = lean_uv_ntop_v6(v_ipv6_1071_); -lean_dec_ref(v_ipv6_1071_); -if (v_isShared_1074_ == 0) -{ -lean_ctor_set_tag(v___x_1073_, 3); -lean_ctor_set(v___x_1073_, 0, v___x_1076_); -v___x_1078_ = v___x_1073_; -goto v_reusejp_1077_; -} -else -{ -lean_object* v_reuseFailAlloc_1079_; -v_reuseFailAlloc_1079_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1079_, 0, v___x_1076_); -v___x_1078_ = v_reuseFailAlloc_1079_; -goto v_reusejp_1077_; -} -v_reusejp_1077_: -{ -v_ctr_1017_ = v___x_1075_; -v_a_1018_ = v___x_1078_; -goto v___jp_1016_; -} -} -} -} -v___jp_1016_: -{ -lean_object* v___x_1019_; lean_object* v___x_1020_; lean_object* v___x_1021_; lean_object* v___x_1022_; lean_object* v___x_1024_; -v___x_1019_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__6)); -v___x_1020_ = lean_string_append(v___x_1019_, v_ctr_1017_); -v___x_1021_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_1021_, 0, v___x_1020_); -v___x_1022_ = lean_box(1); -if (v_isShared_1010_ == 0) -{ -lean_ctor_set_tag(v___x_1009_, 5); -lean_ctor_set(v___x_1009_, 1, v___x_1022_); -lean_ctor_set(v___x_1009_, 0, v___x_1021_); -v___x_1024_ = v___x_1009_; -goto v_reusejp_1023_; -} -else -{ -lean_object* v_reuseFailAlloc_1050_; -v_reuseFailAlloc_1050_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1050_, 0, v___x_1021_); -lean_ctor_set(v_reuseFailAlloc_1050_, 1, v___x_1022_); -v___x_1024_ = v_reuseFailAlloc_1050_; -goto v_reusejp_1023_; -} -v_reusejp_1023_: -{ -lean_object* v___x_1025_; lean_object* v___x_1026_; uint8_t v___x_1027_; lean_object* v___x_1028_; lean_object* v___x_1029_; lean_object* v___x_1030_; lean_object* v___x_1031_; lean_object* v___x_1032_; lean_object* v___x_1033_; lean_object* v___x_1034_; lean_object* v___x_1035_; lean_object* v___x_1036_; lean_object* v___x_1037_; lean_object* v___x_1038_; lean_object* v___x_1039_; lean_object* v___x_1040_; lean_object* v___x_1041_; lean_object* v___x_1042_; lean_object* v___x_1043_; lean_object* v___x_1044_; lean_object* v___x_1045_; lean_object* v___x_1046_; lean_object* v___x_1047_; lean_object* v___x_1048_; lean_object* v___x_1049_; -v___x_1025_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1025_, 0, v___x_1024_); -lean_ctor_set(v___x_1025_, 1, v_a_1018_); -v___x_1026_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_1026_, 0, v___x_1015_); -lean_ctor_set(v___x_1026_, 1, v___x_1025_); -v___x_1027_ = 0; -v___x_1028_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_1028_, 0, v___x_1026_); -lean_ctor_set_uint8(v___x_1028_, sizeof(void*)*1, v___x_1027_); -v___x_1029_ = l_Repr_addAppParen(v___x_1028_, v___x_1014_); -v___x_1030_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_1030_, 0, v___x_1013_); -lean_ctor_set(v___x_1030_, 1, v___x_1029_); -v___x_1031_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_1031_, 0, v___x_1030_); -lean_ctor_set_uint8(v___x_1031_, sizeof(void*)*1, v___x_1027_); -v___x_1032_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1032_, 0, v___x_1012_); -lean_ctor_set(v___x_1032_, 1, v___x_1031_); -v___x_1033_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); -v___x_1034_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1034_, 0, v___x_1032_); -lean_ctor_set(v___x_1034_, 1, v___x_1033_); -v___x_1035_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1035_, 0, v___x_1034_); -lean_ctor_set(v___x_1035_, 1, v___x_1022_); -v___x_1036_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__8)); -v___x_1037_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1037_, 0, v___x_1035_); -lean_ctor_set(v___x_1037_, 1, v___x_1036_); -v___x_1038_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1038_, 0, v___x_1037_); -lean_ctor_set(v___x_1038_, 1, v___x_1011_); -v___x_1039_ = l_Std_Http_URI_instReprPort_repr(v_port_1007_, v___x_1014_); -lean_dec(v_port_1007_); -v___x_1040_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_1040_, 0, v___x_1013_); -lean_ctor_set(v___x_1040_, 1, v___x_1039_); -v___x_1041_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_1041_, 0, v___x_1040_); -lean_ctor_set_uint8(v___x_1041_, sizeof(void*)*1, v___x_1027_); -v___x_1042_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1042_, 0, v___x_1038_); -lean_ctor_set(v___x_1042_, 1, v___x_1041_); -v___x_1043_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); -v___x_1044_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); -v___x_1045_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1045_, 0, v___x_1044_); -lean_ctor_set(v___x_1045_, 1, v___x_1042_); -v___x_1046_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); -v___x_1047_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_1047_, 0, v___x_1045_); -lean_ctor_set(v___x_1047_, 1, v___x_1046_); -v___x_1048_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_1048_, 0, v___x_1043_); -lean_ctor_set(v___x_1048_, 1, v___x_1047_); -v___x_1049_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_1049_, 0, v___x_1048_); -lean_ctor_set_uint8(v___x_1049_, sizeof(void*)*1, v___x_1027_); -return v___x_1049_; +lean_object* v___x_1059_; lean_object* v___x_1060_; uint8_t v___x_1061_; lean_object* v___x_1062_; lean_object* v___x_1063_; lean_object* v___x_1064_; lean_object* v___x_1065_; lean_object* v___x_1066_; lean_object* v___x_1067_; lean_object* v___x_1068_; lean_object* v___x_1069_; lean_object* v___x_1070_; lean_object* v___x_1071_; lean_object* v___x_1072_; lean_object* v___x_1073_; lean_object* v___x_1074_; lean_object* v___x_1075_; lean_object* v___x_1076_; lean_object* v___x_1077_; lean_object* v___x_1078_; lean_object* v___x_1079_; lean_object* v___x_1080_; lean_object* v___x_1081_; lean_object* v___x_1082_; lean_object* v___x_1083_; +v___x_1059_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1059_, 0, v___x_1058_); +lean_ctor_set(v___x_1059_, 1, v_a_1052_); +v___x_1060_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_1060_, 0, v___x_1049_); +lean_ctor_set(v___x_1060_, 1, v___x_1059_); +v___x_1061_ = 0; +v___x_1062_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_1062_, 0, v___x_1060_); +lean_ctor_set_uint8(v___x_1062_, sizeof(void*)*1, v___x_1061_); +v___x_1063_ = l_Repr_addAppParen(v___x_1062_, v___x_1048_); +v___x_1064_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_1064_, 0, v___x_1047_); +lean_ctor_set(v___x_1064_, 1, v___x_1063_); +v___x_1065_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_1065_, 0, v___x_1064_); +lean_ctor_set_uint8(v___x_1065_, sizeof(void*)*1, v___x_1061_); +v___x_1066_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1066_, 0, v___x_1046_); +lean_ctor_set(v___x_1066_, 1, v___x_1065_); +v___x_1067_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__2)); +v___x_1068_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1068_, 0, v___x_1066_); +lean_ctor_set(v___x_1068_, 1, v___x_1067_); +v___x_1069_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1069_, 0, v___x_1068_); +lean_ctor_set(v___x_1069_, 1, v___x_1056_); +v___x_1070_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__8)); +v___x_1071_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1071_, 0, v___x_1069_); +lean_ctor_set(v___x_1071_, 1, v___x_1070_); +v___x_1072_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1072_, 0, v___x_1071_); +lean_ctor_set(v___x_1072_, 1, v___x_1045_); +v___x_1073_ = l_Std_Http_URI_instReprPort_repr(v_port_1041_, v___x_1048_); +lean_dec(v_port_1041_); +v___x_1074_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_1074_, 0, v___x_1047_); +lean_ctor_set(v___x_1074_, 1, v___x_1073_); +v___x_1075_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_1075_, 0, v___x_1074_); +lean_ctor_set_uint8(v___x_1075_, sizeof(void*)*1, v___x_1061_); +v___x_1076_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1076_, 0, v___x_1072_); +lean_ctor_set(v___x_1076_, 1, v___x_1075_); +v___x_1077_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); +v___x_1078_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__11)); +v___x_1079_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1079_, 0, v___x_1078_); +lean_ctor_set(v___x_1079_, 1, v___x_1076_); +v___x_1080_ = ((lean_object*)(l_Std_Http_Header_instReprContentLength_repr___redArg___closed__12)); +v___x_1081_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_1081_, 0, v___x_1079_); +lean_ctor_set(v___x_1081_, 1, v___x_1080_); +v___x_1082_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_1082_, 0, v___x_1077_); +lean_ctor_set(v___x_1082_, 1, v___x_1081_); +v___x_1083_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_1083_, 0, v___x_1082_); +lean_ctor_set_uint8(v___x_1083_, sizeof(void*)*1, v___x_1061_); +return v___x_1083_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr(lean_object* v_x_1082_, lean_object* v_prec_1083_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr(lean_object* v_x_1116_, lean_object* v_prec_1117_){ _start: { -lean_object* v___x_1084_; -v___x_1084_ = l_Std_Http_Header_instReprHost_repr___redArg(v_x_1082_); -return v___x_1084_; +lean_object* v___x_1118_; +v___x_1118_ = l_Std_Http_Header_instReprHost_repr___redArg(v_x_1116_); +return v___x_1118_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr___boxed(lean_object* v_x_1085_, lean_object* v_prec_1086_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprHost_repr___boxed(lean_object* v_x_1119_, lean_object* v_prec_1120_){ _start: { -lean_object* v_res_1087_; -v_res_1087_ = l_Std_Http_Header_instReprHost_repr(v_x_1085_, v_prec_1086_); -lean_dec(v_prec_1086_); -return v_res_1087_; +lean_object* v_res_1121_; +v_res_1121_ = l_Std_Http_Header_instReprHost_repr(v_x_1119_, v_prec_1120_); +lean_dec(v_prec_1120_); +return v_res_1121_; } } -LEAN_EXPORT uint8_t l_Std_Http_Header_instBEqHost_beq(lean_object* v_x_1090_, lean_object* v_x_1091_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_instBEqHost_beq(lean_object* v_x_1124_, lean_object* v_x_1125_){ _start: { -lean_object* v_host_1092_; lean_object* v_port_1093_; lean_object* v_host_1094_; lean_object* v_port_1095_; uint8_t v___x_1096_; -v_host_1092_ = lean_ctor_get(v_x_1090_, 0); -v_port_1093_ = lean_ctor_get(v_x_1090_, 1); -v_host_1094_ = lean_ctor_get(v_x_1091_, 0); -v_port_1095_ = lean_ctor_get(v_x_1091_, 1); -v___x_1096_ = l_Std_Http_URI_instBEqHost_beq(v_host_1092_, v_host_1094_); -if (v___x_1096_ == 0) +lean_object* v_host_1126_; lean_object* v_port_1127_; lean_object* v_host_1128_; lean_object* v_port_1129_; uint8_t v___x_1130_; +v_host_1126_ = lean_ctor_get(v_x_1124_, 0); +v_port_1127_ = lean_ctor_get(v_x_1124_, 1); +v_host_1128_ = lean_ctor_get(v_x_1125_, 0); +v_port_1129_ = lean_ctor_get(v_x_1125_, 1); +v___x_1130_ = l_Std_Http_URI_instBEqHost_beq(v_host_1126_, v_host_1128_); +if (v___x_1130_ == 0) { -return v___x_1096_; +return v___x_1130_; } else { -uint8_t v___x_1097_; -v___x_1097_ = l_Std_Http_URI_instDecidableEqPort_decEq(v_port_1093_, v_port_1095_); -return v___x_1097_; +uint8_t v___x_1131_; +v___x_1131_ = l_Std_Http_URI_instDecidableEqPort_decEq(v_port_1127_, v_port_1129_); +return v___x_1131_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instBEqHost_beq___boxed(lean_object* v_x_1098_, lean_object* v_x_1099_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instBEqHost_beq___boxed(lean_object* v_x_1132_, lean_object* v_x_1133_){ _start: { -uint8_t v_res_1100_; lean_object* v_r_1101_; -v_res_1100_ = l_Std_Http_Header_instBEqHost_beq(v_x_1098_, v_x_1099_); -lean_dec_ref(v_x_1099_); -lean_dec_ref(v_x_1098_); -v_r_1101_ = lean_box(v_res_1100_); -return v_r_1101_; +uint8_t v_res_1134_; lean_object* v_r_1135_; +v_res_1134_ = l_Std_Http_Header_instBEqHost_beq(v_x_1132_, v_x_1133_); +lean_dec_ref(v_x_1133_); +lean_dec_ref(v_x_1132_); +v_r_1135_ = lean_box(v_res_1134_); +return v_r_1135_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___lam__0(lean_object* v___x_1107_, lean_object* v___y_1108_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___lam__0(lean_object* v___x_1141_, lean_object* v___y_1142_){ _start: { -lean_object* v___x_1109_; -v___x_1109_ = l_Std_Http_URI_Parser_parseHostHeader(v___x_1107_, v___y_1108_); -if (lean_obj_tag(v___x_1109_) == 0) +lean_object* v___x_1143_; +v___x_1143_ = l_Std_Http_URI_Parser_parseHostHeader(v___x_1141_, v___y_1142_); +if (lean_obj_tag(v___x_1143_) == 0) { -lean_object* v_pos_1110_; lean_object* v_array_1111_; lean_object* v_idx_1112_; lean_object* v___x_1113_; uint8_t v___x_1114_; -v_pos_1110_ = lean_ctor_get(v___x_1109_, 0); -lean_inc(v_pos_1110_); -v_array_1111_ = lean_ctor_get(v_pos_1110_, 0); -v_idx_1112_ = lean_ctor_get(v_pos_1110_, 1); -v___x_1113_ = lean_byte_array_size(v_array_1111_); -v___x_1114_ = lean_nat_dec_lt(v_idx_1112_, v___x_1113_); -if (v___x_1114_ == 0) +lean_object* v_pos_1144_; lean_object* v_array_1145_; lean_object* v_idx_1146_; lean_object* v___x_1147_; uint8_t v___x_1148_; +v_pos_1144_ = lean_ctor_get(v___x_1143_, 0); +lean_inc(v_pos_1144_); +v_array_1145_ = lean_ctor_get(v_pos_1144_, 0); +v_idx_1146_ = lean_ctor_get(v_pos_1144_, 1); +v___x_1147_ = lean_byte_array_size(v_array_1145_); +v___x_1148_ = lean_nat_dec_lt(v_idx_1146_, v___x_1147_); +if (v___x_1148_ == 0) { -lean_dec(v_pos_1110_); -return v___x_1109_; +lean_dec(v_pos_1144_); +return v___x_1143_; } else { -lean_object* v___x_1116_; uint8_t v_isShared_1117_; uint8_t v_isSharedCheck_1122_; -v_isSharedCheck_1122_ = !lean_is_exclusive(v___x_1109_); -if (v_isSharedCheck_1122_ == 0) +lean_object* v___x_1150_; uint8_t v_isShared_1151_; uint8_t v_isSharedCheck_1156_; +v_isSharedCheck_1156_ = !lean_is_exclusive(v___x_1143_); +if (v_isSharedCheck_1156_ == 0) { -lean_object* v_unused_1123_; lean_object* v_unused_1124_; -v_unused_1123_ = lean_ctor_get(v___x_1109_, 1); -lean_dec(v_unused_1123_); -v_unused_1124_ = lean_ctor_get(v___x_1109_, 0); -lean_dec(v_unused_1124_); -v___x_1116_ = v___x_1109_; -v_isShared_1117_ = v_isSharedCheck_1122_; -goto v_resetjp_1115_; -} -else -{ -lean_dec(v___x_1109_); -v___x_1116_ = lean_box(0); -v_isShared_1117_ = v_isSharedCheck_1122_; -goto v_resetjp_1115_; -} -v_resetjp_1115_: -{ -lean_object* v___x_1118_; lean_object* v___x_1120_; -v___x_1118_ = ((lean_object*)(l_Std_Http_Header_Host_parse___lam__0___closed__1)); -if (v_isShared_1117_ == 0) -{ -lean_ctor_set_tag(v___x_1116_, 1); -lean_ctor_set(v___x_1116_, 1, v___x_1118_); -v___x_1120_ = v___x_1116_; -goto v_reusejp_1119_; -} -else -{ -lean_object* v_reuseFailAlloc_1121_; -v_reuseFailAlloc_1121_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1121_, 0, v_pos_1110_); -lean_ctor_set(v_reuseFailAlloc_1121_, 1, v___x_1118_); -v___x_1120_ = v_reuseFailAlloc_1121_; -goto v_reusejp_1119_; -} -v_reusejp_1119_: -{ -return v___x_1120_; -} -} -} -} -else -{ -return v___x_1109_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___lam__0___boxed(lean_object* v___x_1125_, lean_object* v___y_1126_){ -_start: -{ -lean_object* v_res_1127_; -v_res_1127_ = l_Std_Http_Header_Host_parse___lam__0(v___x_1125_, v___y_1126_); -lean_dec_ref(v___x_1125_); -return v_res_1127_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse(lean_object* v_v_1138_){ -_start: -{ -lean_object* v___f_1139_; lean_object* v___x_1140_; lean_object* v_parsed_1141_; -v___f_1139_ = ((lean_object*)(l_Std_Http_Header_Host_parse___closed__1)); -v___x_1140_ = lean_string_to_utf8(v_v_1138_); -v_parsed_1141_ = l_Std_Internal_Parsec_ByteArray_Parser_run___redArg(v___f_1139_, v___x_1140_); -if (lean_obj_tag(v_parsed_1141_) == 0) -{ -lean_object* v___x_1142_; -lean_dec_ref(v_parsed_1141_); -v___x_1142_ = lean_box(0); -return v___x_1142_; -} -else -{ -lean_object* v_a_1143_; lean_object* v___x_1145_; uint8_t v_isShared_1146_; uint8_t v_isSharedCheck_1159_; -v_a_1143_ = lean_ctor_get(v_parsed_1141_, 0); -v_isSharedCheck_1159_ = !lean_is_exclusive(v_parsed_1141_); -if (v_isSharedCheck_1159_ == 0) -{ -v___x_1145_ = v_parsed_1141_; -v_isShared_1146_ = v_isSharedCheck_1159_; -goto v_resetjp_1144_; -} -else -{ -lean_inc(v_a_1143_); -lean_dec(v_parsed_1141_); -v___x_1145_ = lean_box(0); -v_isShared_1146_ = v_isSharedCheck_1159_; -goto v_resetjp_1144_; -} -v_resetjp_1144_: -{ -lean_object* v_fst_1147_; lean_object* v_snd_1148_; lean_object* v___x_1150_; uint8_t v_isShared_1151_; uint8_t v_isSharedCheck_1158_; -v_fst_1147_ = lean_ctor_get(v_a_1143_, 0); -v_snd_1148_ = lean_ctor_get(v_a_1143_, 1); -v_isSharedCheck_1158_ = !lean_is_exclusive(v_a_1143_); -if (v_isSharedCheck_1158_ == 0) -{ -v___x_1150_ = v_a_1143_; -v_isShared_1151_ = v_isSharedCheck_1158_; +lean_object* v_unused_1157_; lean_object* v_unused_1158_; +v_unused_1157_ = lean_ctor_get(v___x_1143_, 1); +lean_dec(v_unused_1157_); +v_unused_1158_ = lean_ctor_get(v___x_1143_, 0); +lean_dec(v_unused_1158_); +v___x_1150_ = v___x_1143_; +v_isShared_1151_ = v_isSharedCheck_1156_; goto v_resetjp_1149_; } else { -lean_inc(v_snd_1148_); -lean_inc(v_fst_1147_); -lean_dec(v_a_1143_); +lean_dec(v___x_1143_); v___x_1150_ = lean_box(0); -v_isShared_1151_ = v_isSharedCheck_1158_; +v_isShared_1151_ = v_isSharedCheck_1156_; goto v_resetjp_1149_; } v_resetjp_1149_: { -lean_object* v___x_1153_; +lean_object* v___x_1152_; lean_object* v___x_1154_; +v___x_1152_ = ((lean_object*)(l_Std_Http_Header_Host_parse___lam__0___closed__1)); if (v_isShared_1151_ == 0) { -v___x_1153_ = v___x_1150_; -goto v_reusejp_1152_; +lean_ctor_set_tag(v___x_1150_, 1); +lean_ctor_set(v___x_1150_, 1, v___x_1152_); +v___x_1154_ = v___x_1150_; +goto v_reusejp_1153_; } else { -lean_object* v_reuseFailAlloc_1157_; -v_reuseFailAlloc_1157_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1157_, 0, v_fst_1147_); -lean_ctor_set(v_reuseFailAlloc_1157_, 1, v_snd_1148_); -v___x_1153_ = v_reuseFailAlloc_1157_; -goto v_reusejp_1152_; +lean_object* v_reuseFailAlloc_1155_; +v_reuseFailAlloc_1155_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1155_, 0, v_pos_1144_); +lean_ctor_set(v_reuseFailAlloc_1155_, 1, v___x_1152_); +v___x_1154_ = v_reuseFailAlloc_1155_; +goto v_reusejp_1153_; } -v_reusejp_1152_: +v_reusejp_1153_: { -lean_object* v___x_1155_; -if (v_isShared_1146_ == 0) -{ -lean_ctor_set(v___x_1145_, 0, v___x_1153_); -v___x_1155_ = v___x_1145_; -goto v_reusejp_1154_; +return v___x_1154_; +} +} +} } else { -lean_object* v_reuseFailAlloc_1156_; -v_reuseFailAlloc_1156_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_1156_, 0, v___x_1153_); -v___x_1155_ = v_reuseFailAlloc_1156_; -goto v_reusejp_1154_; -} -v_reusejp_1154_: -{ -return v___x_1155_; +return v___x_1143_; } } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___boxed(lean_object* v_v_1160_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___lam__0___boxed(lean_object* v___x_1159_, lean_object* v___y_1160_){ _start: { lean_object* v_res_1161_; -v_res_1161_ = l_Std_Http_Header_Host_parse(v_v_1160_); -lean_dec_ref(v_v_1160_); +v_res_1161_ = l_Std_Http_Header_Host_parse___lam__0(v___x_1159_, v___y_1160_); +lean_dec_ref(v___x_1159_); return v_res_1161_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Host_serialize(lean_object* v_host_1164_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse(lean_object* v_v_1172_){ _start: { -lean_object* v___y_1166_; lean_object* v___y_1170_; lean_object* v_port_1174_; -v_port_1174_ = lean_ctor_get(v_host_1164_, 1); -switch(lean_obj_tag(v_port_1174_)) +lean_object* v___f_1173_; lean_object* v___x_1174_; lean_object* v_parsed_1175_; +v___f_1173_ = ((lean_object*)(l_Std_Http_Header_Host_parse___closed__1)); +v___x_1174_ = lean_string_to_utf8(v_v_1172_); +v_parsed_1175_ = l_Std_Internal_Parsec_ByteArray_Parser_run___redArg(v___f_1173_, v___x_1174_); +if (lean_obj_tag(v_parsed_1175_) == 0) +{ +lean_object* v___x_1176_; +lean_dec_ref(v_parsed_1175_); +v___x_1176_ = lean_box(0); +return v___x_1176_; +} +else +{ +lean_object* v_a_1177_; lean_object* v___x_1179_; uint8_t v_isShared_1180_; uint8_t v_isSharedCheck_1193_; +v_a_1177_ = lean_ctor_get(v_parsed_1175_, 0); +v_isSharedCheck_1193_ = !lean_is_exclusive(v_parsed_1175_); +if (v_isSharedCheck_1193_ == 0) +{ +v___x_1179_ = v_parsed_1175_; +v_isShared_1180_ = v_isSharedCheck_1193_; +goto v_resetjp_1178_; +} +else +{ +lean_inc(v_a_1177_); +lean_dec(v_parsed_1175_); +v___x_1179_ = lean_box(0); +v_isShared_1180_ = v_isSharedCheck_1193_; +goto v_resetjp_1178_; +} +v_resetjp_1178_: +{ +lean_object* v_fst_1181_; lean_object* v_snd_1182_; lean_object* v___x_1184_; uint8_t v_isShared_1185_; uint8_t v_isSharedCheck_1192_; +v_fst_1181_ = lean_ctor_get(v_a_1177_, 0); +v_snd_1182_ = lean_ctor_get(v_a_1177_, 1); +v_isSharedCheck_1192_ = !lean_is_exclusive(v_a_1177_); +if (v_isSharedCheck_1192_ == 0) +{ +v___x_1184_ = v_a_1177_; +v_isShared_1185_ = v_isSharedCheck_1192_; +goto v_resetjp_1183_; +} +else +{ +lean_inc(v_snd_1182_); +lean_inc(v_fst_1181_); +lean_dec(v_a_1177_); +v___x_1184_ = lean_box(0); +v_isShared_1185_ = v_isSharedCheck_1192_; +goto v_resetjp_1183_; +} +v_resetjp_1183_: +{ +lean_object* v___x_1187_; +if (v_isShared_1185_ == 0) +{ +v___x_1187_ = v___x_1184_; +goto v_reusejp_1186_; +} +else +{ +lean_object* v_reuseFailAlloc_1191_; +v_reuseFailAlloc_1191_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1191_, 0, v_fst_1181_); +lean_ctor_set(v_reuseFailAlloc_1191_, 1, v_snd_1182_); +v___x_1187_ = v_reuseFailAlloc_1191_; +goto v_reusejp_1186_; +} +v_reusejp_1186_: +{ +lean_object* v___x_1189_; +if (v_isShared_1180_ == 0) +{ +lean_ctor_set(v___x_1179_, 0, v___x_1187_); +v___x_1189_ = v___x_1179_; +goto v_reusejp_1188_; +} +else +{ +lean_object* v_reuseFailAlloc_1190_; +v_reuseFailAlloc_1190_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1190_, 0, v___x_1187_); +v___x_1189_ = v_reuseFailAlloc_1190_; +goto v_reusejp_1188_; +} +v_reusejp_1188_: +{ +return v___x_1189_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_Host_parse___boxed(lean_object* v_v_1194_){ +_start: +{ +lean_object* v_res_1195_; +v_res_1195_ = l_Std_Http_Header_Host_parse(v_v_1194_); +lean_dec_ref(v_v_1194_); +return v_res_1195_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Header_Host_serialize(lean_object* v_host_1198_){ +_start: +{ +lean_object* v___y_1200_; lean_object* v___y_1204_; lean_object* v_port_1208_; +v_port_1208_ = lean_ctor_get(v_host_1198_, 1); +switch(lean_obj_tag(v_port_1208_)) { case 0: { -lean_object* v_host_1175_; -v_host_1175_ = lean_ctor_get(v_host_1164_, 0); -lean_inc_ref(v_host_1175_); -lean_dec_ref(v_host_1164_); -switch(lean_obj_tag(v_host_1175_)) -{ -case 0: -{ -lean_object* v_name_1176_; lean_object* v___x_1177_; -v_name_1176_ = lean_ctor_get(v_host_1175_, 0); -lean_inc_ref(v_name_1176_); -lean_dec_ref(v_host_1175_); -v___x_1177_ = l_Std_Http_Header_Value_ofString_x21(v_name_1176_); -v___y_1166_ = v___x_1177_; -goto v___jp_1165_; -} -case 1: -{ -lean_object* v_ipv4_1178_; lean_object* v___x_1179_; lean_object* v___x_1180_; -v_ipv4_1178_ = lean_ctor_get(v_host_1175_, 0); -lean_inc_ref(v_ipv4_1178_); -lean_dec_ref(v_host_1175_); -v___x_1179_ = lean_uv_ntop_v4(v_ipv4_1178_); -lean_dec_ref(v_ipv4_1178_); -v___x_1180_ = l_Std_Http_Header_Value_ofString_x21(v___x_1179_); -v___y_1166_ = v___x_1180_; -goto v___jp_1165_; -} -default: -{ -lean_object* v_ipv6_1181_; lean_object* v___x_1182_; lean_object* v___x_1183_; lean_object* v___x_1184_; lean_object* v___x_1185_; lean_object* v___x_1186_; lean_object* v___x_1187_; -v_ipv6_1181_ = lean_ctor_get(v_host_1175_, 0); -lean_inc_ref(v_ipv6_1181_); -lean_dec_ref(v_host_1175_); -v___x_1182_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); -v___x_1183_ = lean_uv_ntop_v6(v_ipv6_1181_); -lean_dec_ref(v_ipv6_1181_); -v___x_1184_ = lean_string_append(v___x_1182_, v___x_1183_); -lean_dec_ref(v___x_1183_); -v___x_1185_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); -v___x_1186_ = lean_string_append(v___x_1184_, v___x_1185_); -v___x_1187_ = l_Std_Http_Header_Value_ofString_x21(v___x_1186_); -v___y_1166_ = v___x_1187_; -goto v___jp_1165_; -} -} -} -case 1: -{ -lean_object* v_host_1188_; -v_host_1188_ = lean_ctor_get(v_host_1164_, 0); -lean_inc_ref(v_host_1188_); -lean_dec_ref(v_host_1164_); -switch(lean_obj_tag(v_host_1188_)) -{ -case 0: -{ -lean_object* v_name_1189_; -v_name_1189_ = lean_ctor_get(v_host_1188_, 0); -lean_inc_ref(v_name_1189_); -lean_dec_ref(v_host_1188_); -v___y_1170_ = v_name_1189_; -goto v___jp_1169_; -} -case 1: -{ -lean_object* v_ipv4_1190_; lean_object* v___x_1191_; -v_ipv4_1190_ = lean_ctor_get(v_host_1188_, 0); -lean_inc_ref(v_ipv4_1190_); -lean_dec_ref(v_host_1188_); -v___x_1191_ = lean_uv_ntop_v4(v_ipv4_1190_); -lean_dec_ref(v_ipv4_1190_); -v___y_1170_ = v___x_1191_; -goto v___jp_1169_; -} -default: -{ -lean_object* v_ipv6_1192_; lean_object* v___x_1193_; lean_object* v___x_1194_; lean_object* v___x_1195_; lean_object* v___x_1196_; lean_object* v___x_1197_; -v_ipv6_1192_ = lean_ctor_get(v_host_1188_, 0); -lean_inc_ref(v_ipv6_1192_); -lean_dec_ref(v_host_1188_); -v___x_1193_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); -v___x_1194_ = lean_uv_ntop_v6(v_ipv6_1192_); -lean_dec_ref(v_ipv6_1192_); -v___x_1195_ = lean_string_append(v___x_1193_, v___x_1194_); -lean_dec_ref(v___x_1194_); -v___x_1196_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); -v___x_1197_ = lean_string_append(v___x_1195_, v___x_1196_); -v___y_1170_ = v___x_1197_; -goto v___jp_1169_; -} -} -} -default: -{ -lean_object* v_host_1198_; uint16_t v_port_1199_; lean_object* v___y_1201_; -lean_inc_ref(v_port_1174_); -v_host_1198_ = lean_ctor_get(v_host_1164_, 0); -lean_inc_ref(v_host_1198_); -lean_dec_ref(v_host_1164_); -v_port_1199_ = lean_ctor_get_uint16(v_port_1174_, 0); -lean_dec_ref(v_port_1174_); -switch(lean_obj_tag(v_host_1198_)) -{ -case 0: -{ -lean_object* v_name_1208_; -v_name_1208_ = lean_ctor_get(v_host_1198_, 0); -lean_inc_ref(v_name_1208_); +lean_object* v_host_1209_; +v_host_1209_ = lean_ctor_get(v_host_1198_, 0); +lean_inc_ref(v_host_1209_); lean_dec_ref(v_host_1198_); -v___y_1201_ = v_name_1208_; -goto v___jp_1200_; +switch(lean_obj_tag(v_host_1209_)) +{ +case 0: +{ +lean_object* v_name_1210_; lean_object* v___x_1211_; +v_name_1210_ = lean_ctor_get(v_host_1209_, 0); +lean_inc_ref(v_name_1210_); +lean_dec_ref(v_host_1209_); +v___x_1211_ = l_Std_Http_Header_Value_ofString_x21(v_name_1210_); +v___y_1200_ = v___x_1211_; +goto v___jp_1199_; } case 1: { -lean_object* v_ipv4_1209_; lean_object* v___x_1210_; -v_ipv4_1209_ = lean_ctor_get(v_host_1198_, 0); -lean_inc_ref(v_ipv4_1209_); -lean_dec_ref(v_host_1198_); -v___x_1210_ = lean_uv_ntop_v4(v_ipv4_1209_); -lean_dec_ref(v_ipv4_1209_); -v___y_1201_ = v___x_1210_; -goto v___jp_1200_; +lean_object* v_ipv4_1212_; lean_object* v___x_1213_; lean_object* v___x_1214_; +v_ipv4_1212_ = lean_ctor_get(v_host_1209_, 0); +lean_inc_ref(v_ipv4_1212_); +lean_dec_ref(v_host_1209_); +v___x_1213_ = lean_uv_ntop_v4(v_ipv4_1212_); +lean_dec_ref(v_ipv4_1212_); +v___x_1214_ = l_Std_Http_Header_Value_ofString_x21(v___x_1213_); +v___y_1200_ = v___x_1214_; +goto v___jp_1199_; } default: { -lean_object* v_ipv6_1211_; lean_object* v___x_1212_; lean_object* v___x_1213_; lean_object* v___x_1214_; lean_object* v___x_1215_; lean_object* v___x_1216_; -v_ipv6_1211_ = lean_ctor_get(v_host_1198_, 0); -lean_inc_ref(v_ipv6_1211_); -lean_dec_ref(v_host_1198_); -v___x_1212_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); -v___x_1213_ = lean_uv_ntop_v6(v_ipv6_1211_); -lean_dec_ref(v_ipv6_1211_); -v___x_1214_ = lean_string_append(v___x_1212_, v___x_1213_); -lean_dec_ref(v___x_1213_); -v___x_1215_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); -v___x_1216_ = lean_string_append(v___x_1214_, v___x_1215_); -v___y_1201_ = v___x_1216_; -goto v___jp_1200_; +lean_object* v_ipv6_1215_; lean_object* v___x_1216_; lean_object* v___x_1217_; lean_object* v___x_1218_; lean_object* v___x_1219_; lean_object* v___x_1220_; lean_object* v___x_1221_; +v_ipv6_1215_ = lean_ctor_get(v_host_1209_, 0); +lean_inc_ref(v_ipv6_1215_); +lean_dec_ref(v_host_1209_); +v___x_1216_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); +v___x_1217_ = lean_uv_ntop_v6(v_ipv6_1215_); +lean_dec_ref(v_ipv6_1215_); +v___x_1218_ = lean_string_append(v___x_1216_, v___x_1217_); +lean_dec_ref(v___x_1217_); +v___x_1219_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); +v___x_1220_ = lean_string_append(v___x_1218_, v___x_1219_); +v___x_1221_ = l_Std_Http_Header_Value_ofString_x21(v___x_1220_); +v___y_1200_ = v___x_1221_; +goto v___jp_1199_; } } -v___jp_1200_: +} +case 1: { -lean_object* v___x_1202_; lean_object* v___x_1203_; lean_object* v___x_1204_; lean_object* v___x_1205_; lean_object* v___x_1206_; lean_object* v___x_1207_; -v___x_1202_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__0)); -v___x_1203_ = lean_string_append(v___y_1201_, v___x_1202_); -v___x_1204_ = lean_uint16_to_nat(v_port_1199_); -v___x_1205_ = l_Nat_reprFast(v___x_1204_); -v___x_1206_ = lean_string_append(v___x_1203_, v___x_1205_); -lean_dec_ref(v___x_1205_); +lean_object* v_host_1222_; +v_host_1222_ = lean_ctor_get(v_host_1198_, 0); +lean_inc_ref(v_host_1222_); +lean_dec_ref(v_host_1198_); +switch(lean_obj_tag(v_host_1222_)) +{ +case 0: +{ +lean_object* v_name_1223_; +v_name_1223_ = lean_ctor_get(v_host_1222_, 0); +lean_inc_ref(v_name_1223_); +lean_dec_ref(v_host_1222_); +v___y_1204_ = v_name_1223_; +goto v___jp_1203_; +} +case 1: +{ +lean_object* v_ipv4_1224_; lean_object* v___x_1225_; +v_ipv4_1224_ = lean_ctor_get(v_host_1222_, 0); +lean_inc_ref(v_ipv4_1224_); +lean_dec_ref(v_host_1222_); +v___x_1225_ = lean_uv_ntop_v4(v_ipv4_1224_); +lean_dec_ref(v_ipv4_1224_); +v___y_1204_ = v___x_1225_; +goto v___jp_1203_; +} +default: +{ +lean_object* v_ipv6_1226_; lean_object* v___x_1227_; lean_object* v___x_1228_; lean_object* v___x_1229_; lean_object* v___x_1230_; lean_object* v___x_1231_; +v_ipv6_1226_ = lean_ctor_get(v_host_1222_, 0); +lean_inc_ref(v_ipv6_1226_); +lean_dec_ref(v_host_1222_); +v___x_1227_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); +v___x_1228_ = lean_uv_ntop_v6(v_ipv6_1226_); +lean_dec_ref(v_ipv6_1226_); +v___x_1229_ = lean_string_append(v___x_1227_, v___x_1228_); +lean_dec_ref(v___x_1228_); +v___x_1230_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); +v___x_1231_ = lean_string_append(v___x_1229_, v___x_1230_); +v___y_1204_ = v___x_1231_; +goto v___jp_1203_; +} +} +} +default: +{ +lean_object* v_host_1232_; uint16_t v_port_1233_; lean_object* v___y_1235_; +lean_inc_ref(v_port_1208_); +v_host_1232_ = lean_ctor_get(v_host_1198_, 0); +lean_inc_ref(v_host_1232_); +lean_dec_ref(v_host_1198_); +v_port_1233_ = lean_ctor_get_uint16(v_port_1208_, 0); +lean_dec_ref(v_port_1208_); +switch(lean_obj_tag(v_host_1232_)) +{ +case 0: +{ +lean_object* v_name_1242_; +v_name_1242_ = lean_ctor_get(v_host_1232_, 0); +lean_inc_ref(v_name_1242_); +lean_dec_ref(v_host_1232_); +v___y_1235_ = v_name_1242_; +goto v___jp_1234_; +} +case 1: +{ +lean_object* v_ipv4_1243_; lean_object* v___x_1244_; +v_ipv4_1243_ = lean_ctor_get(v_host_1232_, 0); +lean_inc_ref(v_ipv4_1243_); +lean_dec_ref(v_host_1232_); +v___x_1244_ = lean_uv_ntop_v4(v_ipv4_1243_); +lean_dec_ref(v_ipv4_1243_); +v___y_1235_ = v___x_1244_; +goto v___jp_1234_; +} +default: +{ +lean_object* v_ipv6_1245_; lean_object* v___x_1246_; lean_object* v___x_1247_; lean_object* v___x_1248_; lean_object* v___x_1249_; lean_object* v___x_1250_; +v_ipv6_1245_ = lean_ctor_get(v_host_1232_, 0); +lean_inc_ref(v_ipv6_1245_); +lean_dec_ref(v_host_1232_); +v___x_1246_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__1)); +v___x_1247_ = lean_uv_ntop_v6(v_ipv6_1245_); +lean_dec_ref(v_ipv6_1245_); +v___x_1248_ = lean_string_append(v___x_1246_, v___x_1247_); +lean_dec_ref(v___x_1247_); +v___x_1249_ = ((lean_object*)(l_Array_repr___at___00Std_Http_Header_instReprTransferEncoding_repr_spec__0___closed__4)); +v___x_1250_ = lean_string_append(v___x_1248_, v___x_1249_); +v___y_1235_ = v___x_1250_; +goto v___jp_1234_; +} +} +v___jp_1234_: +{ +lean_object* v___x_1236_; lean_object* v___x_1237_; lean_object* v___x_1238_; lean_object* v___x_1239_; lean_object* v___x_1240_; lean_object* v___x_1241_; +v___x_1236_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__0)); +v___x_1237_ = lean_string_append(v___y_1235_, v___x_1236_); +v___x_1238_ = lean_uint16_to_nat(v_port_1233_); +v___x_1239_ = l_Nat_reprFast(v___x_1238_); +v___x_1240_ = lean_string_append(v___x_1237_, v___x_1239_); +lean_dec_ref(v___x_1239_); +v___x_1241_ = l_Std_Http_Header_Value_ofString_x21(v___x_1240_); +v___y_1200_ = v___x_1241_; +goto v___jp_1199_; +} +} +} +v___jp_1199_: +{ +lean_object* v___x_1201_; lean_object* v___x_1202_; +v___x_1201_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__0)); +v___x_1202_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1202_, 0, v___x_1201_); +lean_ctor_set(v___x_1202_, 1, v___y_1200_); +return v___x_1202_; +} +v___jp_1203_: +{ +lean_object* v___x_1205_; lean_object* v___x_1206_; lean_object* v___x_1207_; +v___x_1205_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__0)); +v___x_1206_ = lean_string_append(v___y_1204_, v___x_1205_); v___x_1207_ = l_Std_Http_Header_Value_ofString_x21(v___x_1206_); -v___y_1166_ = v___x_1207_; -goto v___jp_1165_; +v___y_1200_ = v___x_1207_; +goto v___jp_1199_; } } } -v___jp_1165_: -{ -lean_object* v___x_1167_; lean_object* v___x_1168_; -v___x_1167_ = ((lean_object*)(l_Std_Http_Header_instReprHost_repr___redArg___closed__0)); -v___x_1168_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1168_, 0, v___x_1167_); -lean_ctor_set(v___x_1168_, 1, v___y_1166_); -return v___x_1168_; -} -v___jp_1169_: -{ -lean_object* v___x_1171_; lean_object* v___x_1172_; lean_object* v___x_1173_; -v___x_1171_ = ((lean_object*)(l_Std_Http_Header_Host_serialize___closed__0)); -v___x_1172_ = lean_string_append(v___y_1170_, v___x_1171_); -v___x_1173_ = l_Std_Http_Header_Value_ofString_x21(v___x_1172_); -v___y_1166_ = v___x_1173_; -goto v___jp_1165_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_toCtorIdx(lean_object* v_x_1223_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_toCtorIdx(lean_object* v_x_1257_){ _start: { -lean_object* v___x_1224_; -v___x_1224_ = lean_unsigned_to_nat(0u); -return v___x_1224_; +lean_object* v___x_1258_; +v___x_1258_ = lean_unsigned_to_nat(0u); +return v___x_1258_; } } static lean_object* _init_l_Std_Http_Header_instReprExpect_repr___closed__2(void){ _start: { -lean_object* v___x_1231_; lean_object* v___x_1232_; lean_object* v___x_1233_; -v___x_1231_ = ((lean_object*)(l_Std_Http_Header_instReprExpect_repr___closed__1)); -v___x_1232_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); -v___x_1233_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_1233_, 0, v___x_1232_); -lean_ctor_set(v___x_1233_, 1, v___x_1231_); -return v___x_1233_; +lean_object* v___x_1265_; lean_object* v___x_1266_; lean_object* v___x_1267_; +v___x_1265_ = ((lean_object*)(l_Std_Http_Header_instReprExpect_repr___closed__1)); +v___x_1266_ = lean_obj_once(&l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10, &l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10_once, _init_l_Std_Http_Header_instReprContentLength_repr___redArg___closed__10); +v___x_1267_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_1267_, 0, v___x_1266_); +lean_ctor_set(v___x_1267_, 1, v___x_1265_); +return v___x_1267_; } } static lean_object* _init_l_Std_Http_Header_instReprExpect_repr___closed__3(void){ _start: { -uint8_t v___x_1234_; lean_object* v___x_1235_; lean_object* v___x_1236_; -v___x_1234_ = 0; -v___x_1235_ = lean_obj_once(&l_Std_Http_Header_instReprExpect_repr___closed__2, &l_Std_Http_Header_instReprExpect_repr___closed__2_once, _init_l_Std_Http_Header_instReprExpect_repr___closed__2); -v___x_1236_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_1236_, 0, v___x_1235_); -lean_ctor_set_uint8(v___x_1236_, sizeof(void*)*1, v___x_1234_); -return v___x_1236_; +uint8_t v___x_1268_; lean_object* v___x_1269_; lean_object* v___x_1270_; +v___x_1268_ = 0; +v___x_1269_ = lean_obj_once(&l_Std_Http_Header_instReprExpect_repr___closed__2, &l_Std_Http_Header_instReprExpect_repr___closed__2_once, _init_l_Std_Http_Header_instReprExpect_repr___closed__2); +v___x_1270_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_1270_, 0, v___x_1269_); +lean_ctor_set_uint8(v___x_1270_, sizeof(void*)*1, v___x_1268_); +return v___x_1270_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprExpect_repr(lean_object* v_x_1237_, lean_object* v_prec_1238_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprExpect_repr(lean_object* v_x_1271_, lean_object* v_prec_1272_){ _start: { -lean_object* v___x_1239_; -v___x_1239_ = lean_obj_once(&l_Std_Http_Header_instReprExpect_repr___closed__3, &l_Std_Http_Header_instReprExpect_repr___closed__3_once, _init_l_Std_Http_Header_instReprExpect_repr___closed__3); -return v___x_1239_; +lean_object* v___x_1273_; +v___x_1273_ = lean_obj_once(&l_Std_Http_Header_instReprExpect_repr___closed__3, &l_Std_Http_Header_instReprExpect_repr___closed__3_once, _init_l_Std_Http_Header_instReprExpect_repr___closed__3); +return v___x_1273_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instReprExpect_repr___boxed(lean_object* v_x_1240_, lean_object* v_prec_1241_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instReprExpect_repr___boxed(lean_object* v_x_1274_, lean_object* v_prec_1275_){ _start: { -lean_object* v_res_1242_; -v_res_1242_ = l_Std_Http_Header_instReprExpect_repr(v_x_1240_, v_prec_1241_); -lean_dec(v_prec_1241_); -return v_res_1242_; +lean_object* v_res_1276_; +v_res_1276_ = l_Std_Http_Header_instReprExpect_repr(v_x_1274_, v_prec_1275_); +lean_dec(v_prec_1275_); +return v_res_1276_; } } -LEAN_EXPORT uint8_t l_Std_Http_Header_instBEqExpect_beq(lean_object* v_x_1245_, lean_object* v_y_1246_){ +LEAN_EXPORT uint8_t l_Std_Http_Header_instBEqExpect_beq(lean_object* v_x_1279_, lean_object* v_y_1280_){ _start: { -uint8_t v___x_1247_; -v___x_1247_ = 1; -return v___x_1247_; +uint8_t v___x_1281_; +v___x_1281_ = 1; +return v___x_1281_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_instBEqExpect_beq___boxed(lean_object* v_x_1248_, lean_object* v_y_1249_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_instBEqExpect_beq___boxed(lean_object* v_x_1282_, lean_object* v_y_1283_){ _start: { -uint8_t v_res_1250_; lean_object* v_r_1251_; -v_res_1250_ = l_Std_Http_Header_instBEqExpect_beq(v_x_1248_, v_y_1249_); -v_r_1251_ = lean_box(v_res_1250_); -return v_r_1251_; +uint8_t v_res_1284_; lean_object* v_r_1285_; +v_res_1284_ = l_Std_Http_Header_instBEqExpect_beq(v_x_1282_, v_y_1283_); +v_r_1285_ = lean_box(v_res_1284_); +return v_r_1285_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_parse(lean_object* v_v_1257_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_parse(lean_object* v_v_1291_){ _start: { -lean_object* v___x_1258_; lean_object* v___x_1259_; lean_object* v___x_1260_; lean_object* v___x_1261_; lean_object* v___x_1262_; lean_object* v_normalized_1263_; lean_object* v___x_1264_; uint8_t v___x_1265_; -v___x_1258_ = lean_unsigned_to_nat(0u); -v___x_1259_ = lean_string_utf8_byte_size(v_v_1257_); -v___x_1260_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_1260_, 0, v_v_1257_); -lean_ctor_set(v___x_1260_, 1, v___x_1258_); -lean_ctor_set(v___x_1260_, 2, v___x_1259_); -v___x_1261_ = l_String_Slice_trimAscii(v___x_1260_); -v___x_1262_ = l_String_Slice_toString(v___x_1261_); -lean_dec_ref(v___x_1261_); -v_normalized_1263_ = l_String_mapAux___at___00__private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList_spec__0(v___x_1262_, v___x_1258_); -v___x_1264_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__0)); -v___x_1265_ = lean_string_dec_eq(v_normalized_1263_, v___x_1264_); -lean_dec_ref(v_normalized_1263_); -if (v___x_1265_ == 0) +lean_object* v___x_1292_; lean_object* v___x_1293_; lean_object* v___x_1294_; lean_object* v___x_1295_; lean_object* v___x_1296_; lean_object* v_normalized_1297_; lean_object* v___x_1298_; uint8_t v___x_1299_; +v___x_1292_ = lean_unsigned_to_nat(0u); +v___x_1293_ = lean_string_utf8_byte_size(v_v_1291_); +v___x_1294_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_1294_, 0, v_v_1291_); +lean_ctor_set(v___x_1294_, 1, v___x_1292_); +lean_ctor_set(v___x_1294_, 2, v___x_1293_); +v___x_1295_ = l_String_Slice_trimAscii(v___x_1294_); +v___x_1296_ = l_String_Slice_toString(v___x_1295_); +lean_dec_ref(v___x_1295_); +v_normalized_1297_ = l_String_mapAux___at___00__private_Std_Internal_Http_Data_Headers_Basic_0__Std_Http_Header_parseTokenList_spec__0(v___x_1296_, v___x_1292_); +v___x_1298_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__0)); +v___x_1299_ = lean_string_dec_eq(v_normalized_1297_, v___x_1298_); +lean_dec_ref(v_normalized_1297_); +if (v___x_1299_ == 0) { -lean_object* v___x_1266_; -v___x_1266_ = lean_box(0); -return v___x_1266_; +lean_object* v___x_1300_; +v___x_1300_ = lean_box(0); +return v___x_1300_; } else { -lean_object* v___x_1267_; -v___x_1267_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__1)); -return v___x_1267_; +lean_object* v___x_1301_; +v___x_1301_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__1)); +return v___x_1301_; } } } static lean_object* _init_l_Std_Http_Header_Expect_serialize___closed__0(void){ _start: { -lean_object* v___x_1268_; lean_object* v___x_1269_; -v___x_1268_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__0)); -v___x_1269_ = l_Std_Http_Header_Value_ofString_x21(v___x_1268_); -return v___x_1269_; +lean_object* v___x_1302_; lean_object* v___x_1303_; +v___x_1302_ = ((lean_object*)(l_Std_Http_Header_Expect_parse___closed__0)); +v___x_1303_ = l_Std_Http_Header_Value_ofString_x21(v___x_1302_); +return v___x_1303_; } } static lean_object* _init_l_Std_Http_Header_Expect_serialize___closed__1(void){ _start: { -lean_object* v___x_1270_; lean_object* v___x_1271_; lean_object* v___x_1272_; -v___x_1270_ = lean_obj_once(&l_Std_Http_Header_Expect_serialize___closed__0, &l_Std_Http_Header_Expect_serialize___closed__0_once, _init_l_Std_Http_Header_Expect_serialize___closed__0); -v___x_1271_ = l_Std_Http_Header_Name_expect; -v___x_1272_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_1272_, 0, v___x_1271_); -lean_ctor_set(v___x_1272_, 1, v___x_1270_); -return v___x_1272_; +lean_object* v___x_1304_; lean_object* v___x_1305_; lean_object* v___x_1306_; +v___x_1304_ = lean_obj_once(&l_Std_Http_Header_Expect_serialize___closed__0, &l_Std_Http_Header_Expect_serialize___closed__0_once, _init_l_Std_Http_Header_Expect_serialize___closed__0); +v___x_1305_ = l_Std_Http_Header_Name_expect; +v___x_1306_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1306_, 0, v___x_1305_); +lean_ctor_set(v___x_1306_, 1, v___x_1304_); +return v___x_1306_; } } -LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_serialize(lean_object* v_x_1273_){ +LEAN_EXPORT lean_object* l_Std_Http_Header_Expect_serialize(lean_object* v_x_1307_){ _start: { -lean_object* v___x_1274_; -v___x_1274_ = lean_obj_once(&l_Std_Http_Header_Expect_serialize___closed__1, &l_Std_Http_Header_Expect_serialize___closed__1_once, _init_l_Std_Http_Header_Expect_serialize___closed__1); -return v___x_1274_; +lean_object* v___x_1308_; +v___x_1308_ = lean_obj_once(&l_Std_Http_Header_Expect_serialize___closed__1, &l_Std_Http_Header_Expect_serialize___closed__1_once, _init_l_Std_Http_Header_Expect_serialize___closed__1); +return v___x_1308_; } } lean_object* runtime_initialize_Std_Internal_Http_Data_URI(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Protocol/H1.c b/stage0/stdlib/Std/Internal/Http/Protocol/H1.c index 72ad6872ea..332d5a03e0 100644 --- a/stage0/stdlib/Std/Internal/Http/Protocol/H1.c +++ b/stage0/stdlib/Std/Internal/Http/Protocol/H1.c @@ -13,10 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -uint8_t lean_usize_dec_lt(size_t, size_t); -lean_object* lean_array_uget_borrowed(lean_object*, size_t); -uint8_t l_Std_Http_Header_instBEqValue_beq(lean_object*, lean_object*); -size_t lean_usize_add(size_t, size_t); lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize(uint8_t, lean_object*, uint8_t); lean_object* l_Std_Http_Protocol_H1_Message_Head_headers(uint8_t, lean_object*); extern lean_object* l_Std_Http_Header_Name_host; @@ -31,6 +27,7 @@ size_t lean_uint64_to_usize(uint64_t); size_t lean_usize_of_nat(lean_object*); size_t lean_usize_sub(size_t, size_t); size_t lean_usize_land(size_t, size_t); +lean_object* lean_array_uget_borrowed(lean_object*, size_t); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -72,8 +69,10 @@ lean_object* l_String_intercalate(lean_object*, lean_object*); lean_object* l_Std_Http_URI_EncodedFragment_encode(lean_object*); lean_object* lean_string_from_utf8_unchecked(lean_object*); size_t lean_array_size(lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +size_t lean_usize_add(size_t, size_t); lean_object* l_Nat_reprFast(lean_object*); lean_object* lean_uv_ntop_v4(lean_object*); lean_object* lean_uv_ntop_v6(lean_object*); @@ -88,17 +87,28 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_Http_Header_Value_ofString_x21(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); uint8_t l_Std_Http_instBEqStatus_beq(lean_object*, lean_object*); +uint8_t l_Std_Http_Body_instBEqLength_beq(lean_object*, lean_object*); extern lean_object* l_Std_Http_Header_Name_connection; -lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(lean_object*); extern lean_object* l_Std_Http_Header_Name_server; extern lean_object* l_Std_Http_Header_Name_userAgent; +lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(lean_object*); uint8_t l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(uint8_t, lean_object*); -uint8_t l_Std_Http_Body_instBEqLength_beq(lean_object*, lean_object*); uint8_t l_Std_Http_instBEqMethod_beq(uint8_t, uint8_t); uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders(uint8_t, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t); +lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Std_Internal_IndexMultiMap_empty(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_uint16_dec_le(uint16_t, uint16_t); uint8_t lean_uint16_dec_lt(uint16_t, uint16_t); -lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t); uint8_t l_Std_Http_Protocol_H1_Writer_instBEqState_beq(lean_object*, lean_object*); lean_object* l_Std_Http_Protocol_H1_parseFixedSizeData___boxed(lean_object*, lean_object*); lean_object* l_ByteArray_Iterator_remainingBytes(lean_object*); @@ -112,20 +122,13 @@ lean_object* l_ByteArray_toByteSlice(lean_object*, lean_object*, lean_object*); uint8_t l_Std_Http_Protocol_H1_Reader_instBEqState_beq___redArg(lean_object*, lean_object*); extern lean_object* l_Std_Http_Header_Name_expect; lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapFinIdxM_map___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Http_Header_Expect_parse(lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(lean_object*, lean_object*); lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(lean_object*); lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(lean_object*); -lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(lean_object*); lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead(uint8_t); extern lean_object* l_Std_Http_Headers_empty; lean_object* l_Std_Http_Protocol_H1_parseRequestLineRawVersion___boxed(lean_object*, lean_object*); @@ -133,8 +136,6 @@ lean_object* l_Std_Http_Protocol_H1_parseStatusLineRawVersion___boxed(lean_objec lean_object* l_Std_Http_Protocol_H1_parseSingleHeader___boxed(lean_object*, lean_object*); lean_object* l_Std_Http_Header_Name_ofString_x3f(lean_object*); lean_object* l_Std_Http_Header_Value_ofString_x3f(lean_object*); -lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_Internal_IndexMultiMap_empty(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ByteArray_extract(lean_object*, lean_object*, lean_object*); lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_ByteArray_mkIterator(lean_object*); @@ -393,20 +394,12 @@ static const lean_string_object l___private_Std_Internal_Http_Protocol_H1_0__Std static const lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2_value; LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___boxed(lean_object*, lean_object*, lean_object*); -static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "keep-alive"}; -static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__0_value; -static const lean_ctor_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1))}}; -static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1_value; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "close"}; -static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___closed__0_value; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10(lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(lean_object*, lean_object*, lean_object*); @@ -539,17 +532,17 @@ static const lean_string_object l___private_Std_Internal_Http_Protocol_H1_0__Std static const lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__59 = (const lean_object*)&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__59_value; static lean_once_cell_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once = LEAN_ONCE_CELL_INITIALIZER; static lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60; -static lean_once_cell_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61; -static lean_once_cell_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62; +static const lean_string_object l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "close"}; +static const lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61 = (const lean_object*)&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61_value; +static const lean_string_object l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "keep-alive"}; +static const lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62 = (const lean_object*)&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62_value; LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___boxed(lean_object*, lean_object*, lean_object*); @@ -618,6 +611,8 @@ LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue(uint8_t, lea LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0(lean_object*, lean_object*); +static lean_once_cell_t l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0; LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0___boxed(lean_object*, lean_object*); @@ -650,18 +645,20 @@ LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_P LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(uint8_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(uint8_t, lean_object*); -static const lean_ctor_object l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__1_value)}}; +static const lean_ctor_object l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; static const lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0_value; LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processWrite(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___boxed(lean_object*, lean_object*, lean_object*); @@ -5933,13 +5930,13 @@ lean_object* v_state_1584_; v_state_1584_ = lean_ctor_get(v_writer_1581_, 2); switch(lean_obj_tag(v_state_1584_)) { -case 5: +case 7: { uint8_t v___x_1585_; v___x_1585_ = 1; return v___x_1585_; } -case 4: +case 6: { uint8_t v___x_1586_; v___x_1586_ = 1; @@ -6024,13 +6021,13 @@ lean_object* v_state_1605_; v_state_1605_ = lean_ctor_get(v_writer_1602_, 2); switch(lean_obj_tag(v_state_1605_)) { -case 5: +case 7: { uint8_t v___x_1606_; v___x_1606_ = 1; return v___x_1606_; } -case 4: +case 6: { uint8_t v___x_1607_; v___x_1607_ = 1; @@ -6180,7 +6177,7 @@ if (lean_obj_tag(v_state_1645_) == 6) lean_object* v_writer_1646_; lean_object* v_state_1647_; v_writer_1646_ = lean_ctor_get(v_machine_1643_, 1); v_state_1647_ = lean_ctor_get(v_writer_1646_, 2); -if (lean_obj_tag(v_state_1647_) == 5) +if (lean_obj_tag(v_state_1647_) == 7) { lean_object* v_outputData_1648_; lean_object* v_size_1649_; lean_object* v___x_1650_; uint8_t v___x_1651_; v_outputData_1648_ = lean_ctor_get(v_writer_1646_, 1); @@ -6225,7 +6222,7 @@ if (lean_obj_tag(v_state_1660_) == 6) lean_object* v_writer_1661_; lean_object* v_state_1662_; v_writer_1661_ = lean_ctor_get(v_machine_1658_, 1); v_state_1662_ = lean_ctor_get(v_writer_1661_, 2); -if (lean_obj_tag(v_state_1662_) == 5) +if (lean_obj_tag(v_state_1662_) == 7) { lean_object* v_outputData_1663_; lean_object* v_size_1664_; lean_object* v___x_1665_; uint8_t v___x_1666_; v_outputData_1663_ = lean_ctor_get(v_writer_1661_, 1); @@ -7594,7 +7591,7 @@ v_resetjp_2044_: lean_object* v___x_2047_; lean_object* v___x_2048_; lean_object* v___x_2049_; lean_object* v___x_2051_; v___x_2047_ = lean_box(3); v___x_2048_ = lean_array_push(v_events_1968_, v___x_2047_); -v___x_2049_ = lean_box(5); +v___x_2049_ = lean_box(7); if (v_isShared_2037_ == 0) { lean_ctor_set(v___x_2036_, 2, v___x_2049_); @@ -7683,16 +7680,16 @@ v___jp_1977_: lean_object* v___x_1985_; uint8_t v___x_1986_; lean_object* v___x_1987_; lean_object* v___x_1988_; lean_object* v___x_1989_; lean_object* v___x_1990_; lean_object* v___x_1992_; v___x_1985_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v___y_1984_); v___x_1986_ = 0; -lean_inc(v___y_1983_); lean_inc(v___y_1978_); +lean_inc(v___y_1980_); lean_inc_ref(v___y_1981_); v___x_1987_ = lean_alloc_ctor(0, 6, 3); lean_ctor_set(v___x_1987_, 0, v___y_1981_); -lean_ctor_set(v___x_1987_, 1, v___y_1982_); -lean_ctor_set(v___x_1987_, 2, v___y_1978_); -lean_ctor_set(v___x_1987_, 3, v___y_1983_); +lean_ctor_set(v___x_1987_, 1, v___y_1983_); +lean_ctor_set(v___x_1987_, 2, v___y_1980_); +lean_ctor_set(v___x_1987_, 3, v___y_1978_); lean_ctor_set(v___x_1987_, 4, v___x_1985_); -lean_ctor_set(v___x_1987_, 5, v___y_1980_); +lean_ctor_set(v___x_1987_, 5, v___y_1979_); lean_ctor_set_uint8(v___x_1987_, sizeof(void*)*6, v___x_1986_); lean_ctor_set_uint8(v___x_1987_, sizeof(void*)*6 + 1, v___x_1986_); lean_ctor_set_uint8(v___x_1987_, sizeof(void*)*6 + 2, v___x_1986_); @@ -7704,7 +7701,7 @@ if (v_isShared_1976_ == 0) lean_ctor_set(v___x_1975_, 4, v___x_1990_); lean_ctor_set(v___x_1975_, 3, v___x_1989_); lean_ctor_set(v___x_1975_, 1, v___x_1987_); -lean_ctor_set(v___x_1975_, 0, v___y_1979_); +lean_ctor_set(v___x_1975_, 0, v___y_1982_); v___x_1992_ = v___x_1975_; goto v_reusejp_1991_; } @@ -7712,7 +7709,7 @@ else { lean_object* v_reuseFailAlloc_1993_; v_reuseFailAlloc_1993_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_1993_, 0, v___y_1979_); +lean_ctor_set(v_reuseFailAlloc_1993_, 0, v___y_1982_); lean_ctor_set(v_reuseFailAlloc_1993_, 1, v___x_1987_); lean_ctor_set(v_reuseFailAlloc_1993_, 2, v_config_1967_); lean_ctor_set(v_reuseFailAlloc_1993_, 3, v___x_1989_); @@ -7737,12 +7734,12 @@ if (v_dir_1963_ == 0) { uint8_t v___x_2001_; v___x_2001_ = 1; -v___y_1978_ = v___y_1999_; -v___y_1979_ = v___y_1997_; -v___y_1980_ = v___y_1996_; -v___y_1981_ = v___y_1995_; -v___y_1982_ = v___y_1998_; -v___y_1983_ = v___x_2000_; +v___y_1978_ = v___x_2000_; +v___y_1979_ = v___y_1995_; +v___y_1980_ = v___y_1999_; +v___y_1981_ = v___y_1996_; +v___y_1982_ = v___y_1997_; +v___y_1983_ = v___y_1998_; v___y_1984_ = v___x_2001_; goto v___jp_1977_; } @@ -7750,12 +7747,12 @@ else { uint8_t v___x_2002_; v___x_2002_ = 0; -v___y_1978_ = v___y_1999_; -v___y_1979_ = v___y_1997_; -v___y_1980_ = v___y_1996_; -v___y_1981_ = v___y_1995_; -v___y_1982_ = v___y_1998_; -v___y_1983_ = v___x_2000_; +v___y_1978_ = v___x_2000_; +v___y_1979_ = v___y_1995_; +v___y_1980_ = v___y_1999_; +v___y_1981_ = v___y_1996_; +v___y_1982_ = v___y_1997_; +v___y_1983_ = v___y_1998_; v___y_1984_ = v___x_2002_; goto v___jp_1977_; } @@ -7835,8 +7832,8 @@ if (v_dir_1963_ == 0) { lean_object* v___x_2019_; v___x_2019_ = lean_box(0); -v___y_1995_ = v___x_2018_; -v___y_1996_ = v___x_2014_; +v___y_1995_ = v___x_2014_; +v___y_1996_ = v___x_2018_; v___y_1997_ = v___x_2016_; v___y_1998_ = v_outputData_2017_; v___y_1999_ = v___x_2019_; @@ -7846,8 +7843,8 @@ else { lean_object* v___x_2020_; v___x_2020_ = lean_box(1); -v___y_1995_ = v___x_2018_; -v___y_1996_ = v___x_2014_; +v___y_1995_ = v___x_2014_; +v___y_1996_ = v___x_2018_; v___y_1997_ = v___x_2016_; v___y_1998_ = v_outputData_2017_; v___y_1999_ = v___x_2020_; @@ -9412,5628 +9409,7162 @@ lean_dec_ref(v_value_2528_); return v_res_2529_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(lean_object* v_as_2534_, size_t v_sz_2535_, size_t v_i_2536_, lean_object* v_b_2537_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(lean_object* v_as_2530_, size_t v_i_2531_, size_t v_stop_2532_, lean_object* v_b_2533_){ _start: { -uint8_t v___x_2538_; -v___x_2538_ = lean_usize_dec_lt(v_i_2536_, v_sz_2535_); -if (v___x_2538_ == 0) +lean_object* v___y_2535_; uint8_t v___x_2539_; +v___x_2539_ = lean_usize_dec_eq(v_i_2531_, v_stop_2532_); +if (v___x_2539_ == 0) { -lean_inc_ref(v_b_2537_); -return v_b_2537_; +lean_object* v___x_2540_; lean_object* v_fst_2541_; lean_object* v___x_2542_; uint8_t v___x_2543_; +v___x_2540_ = lean_array_uget_borrowed(v_as_2530_, v_i_2531_); +v_fst_2541_ = lean_ctor_get(v___x_2540_, 0); +v___x_2542_ = l_Std_Http_Header_Name_connection; +v___x_2543_ = lean_string_dec_eq(v_fst_2541_, v___x_2542_); +if (v___x_2543_ == 0) +{ +lean_object* v___x_2544_; +lean_inc(v___x_2540_); +v___x_2544_ = lean_array_push(v_b_2533_, v___x_2540_); +v___y_2535_ = v___x_2544_; +goto v___jp_2534_; } else { -lean_object* v___x_2539_; lean_object* v___x_2540_; lean_object* v_a_2541_; uint8_t v___x_2542_; -v___x_2539_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__0)); -v___x_2540_ = lean_box(0); -v_a_2541_ = lean_array_uget_borrowed(v_as_2534_, v_i_2536_); -v___x_2542_ = l_Std_Http_Header_instBEqValue_beq(v_a_2541_, v___x_2539_); -if (v___x_2542_ == 0) -{ -lean_object* v___x_2543_; size_t v___x_2544_; size_t v___x_2545_; -v___x_2543_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1)); -v___x_2544_ = ((size_t)1ULL); -v___x_2545_ = lean_usize_add(v_i_2536_, v___x_2544_); -v_i_2536_ = v___x_2545_; -v_b_2537_ = v___x_2543_; -goto _start; -} -else -{ -lean_object* v___x_2547_; lean_object* v___x_2548_; lean_object* v___x_2549_; -lean_inc(v_a_2541_); -v___x_2547_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2547_, 0, v_a_2541_); -v___x_2548_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2548_, 0, v___x_2547_); -v___x_2549_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2549_, 0, v___x_2548_); -lean_ctor_set(v___x_2549_, 1, v___x_2540_); -return v___x_2549_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___boxed(lean_object* v_as_2550_, lean_object* v_sz_2551_, lean_object* v_i_2552_, lean_object* v_b_2553_){ -_start: -{ -size_t v_sz_boxed_2554_; size_t v_i_boxed_2555_; lean_object* v_res_2556_; -v_sz_boxed_2554_ = lean_unbox_usize(v_sz_2551_); -lean_dec(v_sz_2551_); -v_i_boxed_2555_ = lean_unbox_usize(v_i_2552_); -lean_dec(v_i_2552_); -v_res_2556_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(v_as_2550_, v_sz_boxed_2554_, v_i_boxed_2555_, v_b_2553_); -lean_dec_ref(v_b_2553_); -lean_dec_ref(v_as_2550_); -return v_res_2556_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10(lean_object* v_as_2558_, size_t v_sz_2559_, size_t v_i_2560_, lean_object* v_b_2561_){ -_start: -{ -uint8_t v___x_2562_; -v___x_2562_ = lean_usize_dec_lt(v_i_2560_, v_sz_2559_); -if (v___x_2562_ == 0) -{ -lean_inc_ref(v_b_2561_); -return v_b_2561_; -} -else -{ -lean_object* v___x_2563_; lean_object* v___x_2564_; lean_object* v_a_2565_; uint8_t v___x_2566_; -v___x_2563_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___closed__0)); -v___x_2564_ = lean_box(0); -v_a_2565_ = lean_array_uget_borrowed(v_as_2558_, v_i_2560_); -v___x_2566_ = l_Std_Http_Header_instBEqValue_beq(v_a_2565_, v___x_2563_); -if (v___x_2566_ == 0) -{ -lean_object* v___x_2567_; size_t v___x_2568_; size_t v___x_2569_; -v___x_2567_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1)); -v___x_2568_ = ((size_t)1ULL); -v___x_2569_ = lean_usize_add(v_i_2560_, v___x_2568_); -v_i_2560_ = v___x_2569_; -v_b_2561_ = v___x_2567_; -goto _start; -} -else -{ -lean_object* v___x_2571_; lean_object* v___x_2572_; lean_object* v___x_2573_; -lean_inc(v_a_2565_); -v___x_2571_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2571_, 0, v_a_2565_); -v___x_2572_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2572_, 0, v___x_2571_); -v___x_2573_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2573_, 0, v___x_2572_); -lean_ctor_set(v___x_2573_, 1, v___x_2564_); -return v___x_2573_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___boxed(lean_object* v_as_2574_, lean_object* v_sz_2575_, lean_object* v_i_2576_, lean_object* v_b_2577_){ -_start: -{ -size_t v_sz_boxed_2578_; size_t v_i_boxed_2579_; lean_object* v_res_2580_; -v_sz_boxed_2578_ = lean_unbox_usize(v_sz_2575_); -lean_dec(v_sz_2575_); -v_i_boxed_2579_ = lean_unbox_usize(v_i_2576_); -lean_dec(v_i_2576_); -v_res_2580_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10(v_as_2574_, v_sz_boxed_2578_, v_i_boxed_2579_, v_b_2577_); -lean_dec_ref(v_b_2577_); -lean_dec_ref(v_as_2574_); -return v_res_2580_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(lean_object* v_as_2581_, size_t v_i_2582_, size_t v_stop_2583_, lean_object* v_b_2584_){ -_start: -{ -lean_object* v___y_2586_; uint8_t v___x_2590_; -v___x_2590_ = lean_usize_dec_eq(v_i_2582_, v_stop_2583_); -if (v___x_2590_ == 0) -{ -lean_object* v___x_2591_; lean_object* v_fst_2592_; lean_object* v___x_2593_; uint8_t v___x_2594_; -v___x_2591_ = lean_array_uget_borrowed(v_as_2581_, v_i_2582_); -v_fst_2592_ = lean_ctor_get(v___x_2591_, 0); -v___x_2593_ = l_Std_Http_Header_Name_transferEncoding; -v___x_2594_ = lean_string_dec_eq(v_fst_2592_, v___x_2593_); -if (v___x_2594_ == 0) -{ -lean_object* v___x_2595_; -lean_inc(v___x_2591_); -v___x_2595_ = lean_array_push(v_b_2584_, v___x_2591_); -v___y_2586_ = v___x_2595_; -goto v___jp_2585_; -} -else -{ -v___y_2586_ = v_b_2584_; -goto v___jp_2585_; +v___y_2535_ = v_b_2533_; +goto v___jp_2534_; } } else { -return v_b_2584_; +return v_b_2533_; } -v___jp_2585_: +v___jp_2534_: { -size_t v___x_2587_; size_t v___x_2588_; -v___x_2587_ = ((size_t)1ULL); -v___x_2588_ = lean_usize_add(v_i_2582_, v___x_2587_); -v_i_2582_ = v___x_2588_; -v_b_2584_ = v___y_2586_; +size_t v___x_2536_; size_t v___x_2537_; +v___x_2536_ = ((size_t)1ULL); +v___x_2537_ = lean_usize_add(v_i_2531_, v___x_2536_); +v_i_2531_ = v___x_2537_; +v_b_2533_ = v___y_2535_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7___boxed(lean_object* v_as_2596_, lean_object* v_i_2597_, lean_object* v_stop_2598_, lean_object* v_b_2599_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___boxed(lean_object* v_as_2545_, lean_object* v_i_2546_, lean_object* v_stop_2547_, lean_object* v_b_2548_){ _start: { -size_t v_i_boxed_2600_; size_t v_stop_boxed_2601_; lean_object* v_res_2602_; -v_i_boxed_2600_ = lean_unbox_usize(v_i_2597_); -lean_dec(v_i_2597_); -v_stop_boxed_2601_ = lean_unbox_usize(v_stop_2598_); -lean_dec(v_stop_2598_); -v_res_2602_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_as_2596_, v_i_boxed_2600_, v_stop_boxed_2601_, v_b_2599_); -lean_dec_ref(v_as_2596_); -return v_res_2602_; +size_t v_i_boxed_2549_; size_t v_stop_boxed_2550_; lean_object* v_res_2551_; +v_i_boxed_2549_ = lean_unbox_usize(v_i_2546_); +lean_dec(v_i_2546_); +v_stop_boxed_2550_ = lean_unbox_usize(v_stop_2547_); +lean_dec(v_stop_2547_); +v_res_2551_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(v_as_2545_, v_i_boxed_2549_, v_stop_boxed_2550_, v_b_2548_); +lean_dec_ref(v_as_2545_); +return v_res_2551_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(lean_object* v_i_2603_, lean_object* v_a_2604_, lean_object* v_x_2605_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(lean_object* v_as_2552_, size_t v_i_2553_, size_t v_stop_2554_, lean_object* v_b_2555_){ _start: { -if (lean_obj_tag(v_x_2605_) == 0) +lean_object* v___y_2557_; uint8_t v___x_2561_; +v___x_2561_ = lean_usize_dec_eq(v_i_2553_, v_stop_2554_); +if (v___x_2561_ == 0) { -lean_object* v___x_2606_; lean_object* v___x_2607_; lean_object* v_val_2608_; lean_object* v___x_2609_; -v___x_2606_ = lean_box(0); -v___x_2607_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_2603_, v___x_2606_); -v_val_2608_ = lean_ctor_get(v___x_2607_, 0); -lean_inc(v_val_2608_); -lean_dec(v___x_2607_); -v___x_2609_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v___x_2609_, 0, v_a_2604_); -lean_ctor_set(v___x_2609_, 1, v_val_2608_); -lean_ctor_set(v___x_2609_, 2, v_x_2605_); -return v___x_2609_; +lean_object* v___x_2562_; lean_object* v_fst_2563_; lean_object* v___x_2564_; uint8_t v___x_2565_; +v___x_2562_ = lean_array_uget_borrowed(v_as_2552_, v_i_2553_); +v_fst_2563_ = lean_ctor_get(v___x_2562_, 0); +v___x_2564_ = l_Std_Http_Header_Name_transferEncoding; +v___x_2565_ = lean_string_dec_eq(v_fst_2563_, v___x_2564_); +if (v___x_2565_ == 0) +{ +lean_object* v___x_2566_; +lean_inc(v___x_2562_); +v___x_2566_ = lean_array_push(v_b_2555_, v___x_2562_); +v___y_2557_ = v___x_2566_; +goto v___jp_2556_; } else { -lean_object* v_key_2610_; lean_object* v_value_2611_; lean_object* v_tail_2612_; lean_object* v___x_2614_; uint8_t v_isShared_2615_; uint8_t v_isSharedCheck_2627_; -v_key_2610_ = lean_ctor_get(v_x_2605_, 0); -v_value_2611_ = lean_ctor_get(v_x_2605_, 1); -v_tail_2612_ = lean_ctor_get(v_x_2605_, 2); -v_isSharedCheck_2627_ = !lean_is_exclusive(v_x_2605_); -if (v_isSharedCheck_2627_ == 0) -{ -v___x_2614_ = v_x_2605_; -v_isShared_2615_ = v_isSharedCheck_2627_; -goto v_resetjp_2613_; -} -else -{ -lean_inc(v_tail_2612_); -lean_inc(v_value_2611_); -lean_inc(v_key_2610_); -lean_dec(v_x_2605_); -v___x_2614_ = lean_box(0); -v_isShared_2615_ = v_isSharedCheck_2627_; -goto v_resetjp_2613_; -} -v_resetjp_2613_: -{ -uint8_t v___x_2616_; -v___x_2616_ = lean_string_dec_eq(v_key_2610_, v_a_2604_); -if (v___x_2616_ == 0) -{ -lean_object* v_tail_2617_; lean_object* v___x_2619_; -v_tail_2617_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(v_i_2603_, v_a_2604_, v_tail_2612_); -if (v_isShared_2615_ == 0) -{ -lean_ctor_set(v___x_2614_, 2, v_tail_2617_); -v___x_2619_ = v___x_2614_; -goto v_reusejp_2618_; -} -else -{ -lean_object* v_reuseFailAlloc_2620_; -v_reuseFailAlloc_2620_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v_reuseFailAlloc_2620_, 0, v_key_2610_); -lean_ctor_set(v_reuseFailAlloc_2620_, 1, v_value_2611_); -lean_ctor_set(v_reuseFailAlloc_2620_, 2, v_tail_2617_); -v___x_2619_ = v_reuseFailAlloc_2620_; -goto v_reusejp_2618_; -} -v_reusejp_2618_: -{ -return v___x_2619_; +v___y_2557_ = v_b_2555_; +goto v___jp_2556_; } } else { -lean_object* v___x_2621_; lean_object* v___x_2622_; lean_object* v_val_2623_; lean_object* v___x_2625_; -lean_dec(v_key_2610_); -v___x_2621_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_2621_, 0, v_value_2611_); -v___x_2622_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_2603_, v___x_2621_); -v_val_2623_ = lean_ctor_get(v___x_2622_, 0); -lean_inc(v_val_2623_); -lean_dec(v___x_2622_); -if (v_isShared_2615_ == 0) +return v_b_2555_; +} +v___jp_2556_: { -lean_ctor_set(v___x_2614_, 1, v_val_2623_); -lean_ctor_set(v___x_2614_, 0, v_a_2604_); -v___x_2625_ = v___x_2614_; -goto v_reusejp_2624_; -} -else -{ -lean_object* v_reuseFailAlloc_2626_; -v_reuseFailAlloc_2626_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v_reuseFailAlloc_2626_, 0, v_a_2604_); -lean_ctor_set(v_reuseFailAlloc_2626_, 1, v_val_2623_); -lean_ctor_set(v_reuseFailAlloc_2626_, 2, v_tail_2612_); -v___x_2625_ = v_reuseFailAlloc_2626_; -goto v_reusejp_2624_; -} -v_reusejp_2624_: -{ -return v___x_2625_; +size_t v___x_2558_; size_t v___x_2559_; +v___x_2558_ = ((size_t)1ULL); +v___x_2559_ = lean_usize_add(v_i_2553_, v___x_2558_); +v_i_2553_ = v___x_2559_; +v_b_2555_ = v___y_2557_; +goto _start; } } } -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12___redArg(lean_object* v_x_2628_, lean_object* v_x_2629_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7___boxed(lean_object* v_as_2567_, lean_object* v_i_2568_, lean_object* v_stop_2569_, lean_object* v_b_2570_){ _start: { -if (lean_obj_tag(v_x_2629_) == 0) +size_t v_i_boxed_2571_; size_t v_stop_boxed_2572_; lean_object* v_res_2573_; +v_i_boxed_2571_ = lean_unbox_usize(v_i_2568_); +lean_dec(v_i_2568_); +v_stop_boxed_2572_ = lean_unbox_usize(v_stop_2569_); +lean_dec(v_stop_2569_); +v_res_2573_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_as_2567_, v_i_boxed_2571_, v_stop_boxed_2572_, v_b_2570_); +lean_dec_ref(v_as_2567_); +return v_res_2573_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(lean_object* v_i_2574_, lean_object* v_a_2575_, lean_object* v_x_2576_){ +_start: { -return v_x_2628_; +if (lean_obj_tag(v_x_2576_) == 0) +{ +lean_object* v___x_2577_; lean_object* v___x_2578_; lean_object* v_val_2579_; lean_object* v___x_2580_; +v___x_2577_ = lean_box(0); +v___x_2578_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_2574_, v___x_2577_); +v_val_2579_ = lean_ctor_get(v___x_2578_, 0); +lean_inc(v_val_2579_); +lean_dec(v___x_2578_); +v___x_2580_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_2580_, 0, v_a_2575_); +lean_ctor_set(v___x_2580_, 1, v_val_2579_); +lean_ctor_set(v___x_2580_, 2, v_x_2576_); +return v___x_2580_; } else { -lean_object* v_key_2630_; lean_object* v_value_2631_; lean_object* v_tail_2632_; lean_object* v___x_2634_; uint8_t v_isShared_2635_; uint8_t v_isSharedCheck_2655_; -v_key_2630_ = lean_ctor_get(v_x_2629_, 0); -v_value_2631_ = lean_ctor_get(v_x_2629_, 1); -v_tail_2632_ = lean_ctor_get(v_x_2629_, 2); -v_isSharedCheck_2655_ = !lean_is_exclusive(v_x_2629_); -if (v_isSharedCheck_2655_ == 0) +lean_object* v_key_2581_; lean_object* v_value_2582_; lean_object* v_tail_2583_; lean_object* v___x_2585_; uint8_t v_isShared_2586_; uint8_t v_isSharedCheck_2598_; +v_key_2581_ = lean_ctor_get(v_x_2576_, 0); +v_value_2582_ = lean_ctor_get(v_x_2576_, 1); +v_tail_2583_ = lean_ctor_get(v_x_2576_, 2); +v_isSharedCheck_2598_ = !lean_is_exclusive(v_x_2576_); +if (v_isSharedCheck_2598_ == 0) { -v___x_2634_ = v_x_2629_; -v_isShared_2635_ = v_isSharedCheck_2655_; -goto v_resetjp_2633_; +v___x_2585_ = v_x_2576_; +v_isShared_2586_ = v_isSharedCheck_2598_; +goto v_resetjp_2584_; } else { -lean_inc(v_tail_2632_); -lean_inc(v_value_2631_); -lean_inc(v_key_2630_); -lean_dec(v_x_2629_); -v___x_2634_ = lean_box(0); -v_isShared_2635_ = v_isSharedCheck_2655_; -goto v_resetjp_2633_; +lean_inc(v_tail_2583_); +lean_inc(v_value_2582_); +lean_inc(v_key_2581_); +lean_dec(v_x_2576_); +v___x_2585_ = lean_box(0); +v_isShared_2586_ = v_isSharedCheck_2598_; +goto v_resetjp_2584_; } -v_resetjp_2633_: +v_resetjp_2584_: { -lean_object* v___x_2636_; uint64_t v___x_2637_; uint64_t v___x_2638_; uint64_t v___x_2639_; uint64_t v_fold_2640_; uint64_t v___x_2641_; uint64_t v___x_2642_; uint64_t v___x_2643_; size_t v___x_2644_; size_t v___x_2645_; size_t v___x_2646_; size_t v___x_2647_; size_t v___x_2648_; lean_object* v___x_2649_; lean_object* v___x_2651_; -v___x_2636_ = lean_array_get_size(v_x_2628_); -v___x_2637_ = lean_string_hash(v_key_2630_); -v___x_2638_ = 32ULL; -v___x_2639_ = lean_uint64_shift_right(v___x_2637_, v___x_2638_); -v_fold_2640_ = lean_uint64_xor(v___x_2637_, v___x_2639_); -v___x_2641_ = 16ULL; -v___x_2642_ = lean_uint64_shift_right(v_fold_2640_, v___x_2641_); -v___x_2643_ = lean_uint64_xor(v_fold_2640_, v___x_2642_); -v___x_2644_ = lean_uint64_to_usize(v___x_2643_); -v___x_2645_ = lean_usize_of_nat(v___x_2636_); -v___x_2646_ = ((size_t)1ULL); -v___x_2647_ = lean_usize_sub(v___x_2645_, v___x_2646_); -v___x_2648_ = lean_usize_land(v___x_2644_, v___x_2647_); -v___x_2649_ = lean_array_uget_borrowed(v_x_2628_, v___x_2648_); -lean_inc(v___x_2649_); -if (v_isShared_2635_ == 0) +uint8_t v___x_2587_; +v___x_2587_ = lean_string_dec_eq(v_key_2581_, v_a_2575_); +if (v___x_2587_ == 0) { -lean_ctor_set(v___x_2634_, 2, v___x_2649_); -v___x_2651_ = v___x_2634_; -goto v_reusejp_2650_; +lean_object* v_tail_2588_; lean_object* v___x_2590_; +v_tail_2588_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(v_i_2574_, v_a_2575_, v_tail_2583_); +if (v_isShared_2586_ == 0) +{ +lean_ctor_set(v___x_2585_, 2, v_tail_2588_); +v___x_2590_ = v___x_2585_; +goto v_reusejp_2589_; } else { -lean_object* v_reuseFailAlloc_2654_; -v_reuseFailAlloc_2654_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v_reuseFailAlloc_2654_, 0, v_key_2630_); -lean_ctor_set(v_reuseFailAlloc_2654_, 1, v_value_2631_); -lean_ctor_set(v_reuseFailAlloc_2654_, 2, v___x_2649_); -v___x_2651_ = v_reuseFailAlloc_2654_; -goto v_reusejp_2650_; +lean_object* v_reuseFailAlloc_2591_; +v_reuseFailAlloc_2591_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_2591_, 0, v_key_2581_); +lean_ctor_set(v_reuseFailAlloc_2591_, 1, v_value_2582_); +lean_ctor_set(v_reuseFailAlloc_2591_, 2, v_tail_2588_); +v___x_2590_ = v_reuseFailAlloc_2591_; +goto v_reusejp_2589_; } -v_reusejp_2650_: +v_reusejp_2589_: { -lean_object* v___x_2652_; -v___x_2652_ = lean_array_uset(v_x_2628_, v___x_2648_, v___x_2651_); -v_x_2628_ = v___x_2652_; -v_x_2629_ = v_tail_2632_; +return v___x_2590_; +} +} +else +{ +lean_object* v___x_2592_; lean_object* v___x_2593_; lean_object* v_val_2594_; lean_object* v___x_2596_; +lean_dec(v_key_2581_); +v___x_2592_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2592_, 0, v_value_2582_); +v___x_2593_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_2574_, v___x_2592_); +v_val_2594_ = lean_ctor_get(v___x_2593_, 0); +lean_inc(v_val_2594_); +lean_dec(v___x_2593_); +if (v_isShared_2586_ == 0) +{ +lean_ctor_set(v___x_2585_, 1, v_val_2594_); +lean_ctor_set(v___x_2585_, 0, v_a_2575_); +v___x_2596_ = v___x_2585_; +goto v_reusejp_2595_; +} +else +{ +lean_object* v_reuseFailAlloc_2597_; +v_reuseFailAlloc_2597_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_2597_, 0, v_a_2575_); +lean_ctor_set(v_reuseFailAlloc_2597_, 1, v_val_2594_); +lean_ctor_set(v_reuseFailAlloc_2597_, 2, v_tail_2583_); +v___x_2596_ = v_reuseFailAlloc_2597_; +goto v_reusejp_2595_; +} +v_reusejp_2595_: +{ +return v___x_2596_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11___redArg(lean_object* v_x_2599_, lean_object* v_x_2600_){ +_start: +{ +if (lean_obj_tag(v_x_2600_) == 0) +{ +return v_x_2599_; +} +else +{ +lean_object* v_key_2601_; lean_object* v_value_2602_; lean_object* v_tail_2603_; lean_object* v___x_2605_; uint8_t v_isShared_2606_; uint8_t v_isSharedCheck_2626_; +v_key_2601_ = lean_ctor_get(v_x_2600_, 0); +v_value_2602_ = lean_ctor_get(v_x_2600_, 1); +v_tail_2603_ = lean_ctor_get(v_x_2600_, 2); +v_isSharedCheck_2626_ = !lean_is_exclusive(v_x_2600_); +if (v_isSharedCheck_2626_ == 0) +{ +v___x_2605_ = v_x_2600_; +v_isShared_2606_ = v_isSharedCheck_2626_; +goto v_resetjp_2604_; +} +else +{ +lean_inc(v_tail_2603_); +lean_inc(v_value_2602_); +lean_inc(v_key_2601_); +lean_dec(v_x_2600_); +v___x_2605_ = lean_box(0); +v_isShared_2606_ = v_isSharedCheck_2626_; +goto v_resetjp_2604_; +} +v_resetjp_2604_: +{ +lean_object* v___x_2607_; uint64_t v___x_2608_; uint64_t v___x_2609_; uint64_t v___x_2610_; uint64_t v_fold_2611_; uint64_t v___x_2612_; uint64_t v___x_2613_; uint64_t v___x_2614_; size_t v___x_2615_; size_t v___x_2616_; size_t v___x_2617_; size_t v___x_2618_; size_t v___x_2619_; lean_object* v___x_2620_; lean_object* v___x_2622_; +v___x_2607_ = lean_array_get_size(v_x_2599_); +v___x_2608_ = lean_string_hash(v_key_2601_); +v___x_2609_ = 32ULL; +v___x_2610_ = lean_uint64_shift_right(v___x_2608_, v___x_2609_); +v_fold_2611_ = lean_uint64_xor(v___x_2608_, v___x_2610_); +v___x_2612_ = 16ULL; +v___x_2613_ = lean_uint64_shift_right(v_fold_2611_, v___x_2612_); +v___x_2614_ = lean_uint64_xor(v_fold_2611_, v___x_2613_); +v___x_2615_ = lean_uint64_to_usize(v___x_2614_); +v___x_2616_ = lean_usize_of_nat(v___x_2607_); +v___x_2617_ = ((size_t)1ULL); +v___x_2618_ = lean_usize_sub(v___x_2616_, v___x_2617_); +v___x_2619_ = lean_usize_land(v___x_2615_, v___x_2618_); +v___x_2620_ = lean_array_uget_borrowed(v_x_2599_, v___x_2619_); +lean_inc(v___x_2620_); +if (v_isShared_2606_ == 0) +{ +lean_ctor_set(v___x_2605_, 2, v___x_2620_); +v___x_2622_ = v___x_2605_; +goto v_reusejp_2621_; +} +else +{ +lean_object* v_reuseFailAlloc_2625_; +v_reuseFailAlloc_2625_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_2625_, 0, v_key_2601_); +lean_ctor_set(v_reuseFailAlloc_2625_, 1, v_value_2602_); +lean_ctor_set(v_reuseFailAlloc_2625_, 2, v___x_2620_); +v___x_2622_ = v_reuseFailAlloc_2625_; +goto v_reusejp_2621_; +} +v_reusejp_2621_: +{ +lean_object* v___x_2623_; +v___x_2623_ = lean_array_uset(v_x_2599_, v___x_2619_, v___x_2622_); +v_x_2599_ = v___x_2623_; +v_x_2600_ = v_tail_2603_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(lean_object* v_i_2656_, lean_object* v_source_2657_, lean_object* v_target_2658_){ +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(lean_object* v_i_2627_, lean_object* v_source_2628_, lean_object* v_target_2629_){ _start: { -lean_object* v___x_2659_; uint8_t v___x_2660_; -v___x_2659_ = lean_array_get_size(v_source_2657_); -v___x_2660_ = lean_nat_dec_lt(v_i_2656_, v___x_2659_); -if (v___x_2660_ == 0) +lean_object* v___x_2630_; uint8_t v___x_2631_; +v___x_2630_ = lean_array_get_size(v_source_2628_); +v___x_2631_ = lean_nat_dec_lt(v_i_2627_, v___x_2630_); +if (v___x_2631_ == 0) { -lean_dec_ref(v_source_2657_); -lean_dec(v_i_2656_); -return v_target_2658_; +lean_dec_ref(v_source_2628_); +lean_dec(v_i_2627_); +return v_target_2629_; } else { -lean_object* v_es_2661_; lean_object* v___x_2662_; lean_object* v_source_2663_; lean_object* v_target_2664_; lean_object* v___x_2665_; lean_object* v___x_2666_; -v_es_2661_ = lean_array_fget(v_source_2657_, v_i_2656_); -v___x_2662_ = lean_box(0); -v_source_2663_ = lean_array_fset(v_source_2657_, v_i_2656_, v___x_2662_); -v_target_2664_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12___redArg(v_target_2658_, v_es_2661_); -v___x_2665_ = lean_unsigned_to_nat(1u); -v___x_2666_ = lean_nat_add(v_i_2656_, v___x_2665_); -lean_dec(v_i_2656_); -v_i_2656_ = v___x_2666_; -v_source_2657_ = v_source_2663_; -v_target_2658_ = v_target_2664_; +lean_object* v_es_2632_; lean_object* v___x_2633_; lean_object* v_source_2634_; lean_object* v_target_2635_; lean_object* v___x_2636_; lean_object* v___x_2637_; +v_es_2632_ = lean_array_fget(v_source_2628_, v_i_2627_); +v___x_2633_ = lean_box(0); +v_source_2634_ = lean_array_fset(v_source_2628_, v_i_2627_, v___x_2633_); +v_target_2635_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11___redArg(v_target_2629_, v_es_2632_); +v___x_2636_ = lean_unsigned_to_nat(1u); +v___x_2637_ = lean_nat_add(v_i_2627_, v___x_2636_); +lean_dec(v_i_2627_); +v_i_2627_ = v___x_2637_; +v_source_2628_ = v_source_2634_; +v_target_2629_ = v_target_2635_; goto _start; } } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(lean_object* v_data_2668_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(lean_object* v_data_2639_){ _start: { -lean_object* v___x_2669_; lean_object* v___x_2670_; lean_object* v_nbuckets_2671_; lean_object* v___x_2672_; lean_object* v___x_2673_; lean_object* v___x_2674_; lean_object* v___x_2675_; -v___x_2669_ = lean_array_get_size(v_data_2668_); -v___x_2670_ = lean_unsigned_to_nat(2u); -v_nbuckets_2671_ = lean_nat_mul(v___x_2669_, v___x_2670_); -v___x_2672_ = lean_unsigned_to_nat(0u); -v___x_2673_ = lean_box(0); -v___x_2674_ = lean_mk_array(v_nbuckets_2671_, v___x_2673_); -v___x_2675_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(v___x_2672_, v_data_2668_, v___x_2674_); -return v___x_2675_; +lean_object* v___x_2640_; lean_object* v___x_2641_; lean_object* v_nbuckets_2642_; lean_object* v___x_2643_; lean_object* v___x_2644_; lean_object* v___x_2645_; lean_object* v___x_2646_; +v___x_2640_ = lean_array_get_size(v_data_2639_); +v___x_2641_ = lean_unsigned_to_nat(2u); +v_nbuckets_2642_ = lean_nat_mul(v___x_2640_, v___x_2641_); +v___x_2643_ = lean_unsigned_to_nat(0u); +v___x_2644_ = lean_box(0); +v___x_2645_ = lean_mk_array(v_nbuckets_2642_, v___x_2644_); +v___x_2646_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(v___x_2643_, v_data_2639_, v___x_2645_); +return v___x_2646_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(lean_object* v_i_2676_, lean_object* v_m_2677_, lean_object* v_a_2678_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(lean_object* v_i_2647_, lean_object* v_m_2648_, lean_object* v_a_2649_){ _start: { -lean_object* v_size_2679_; lean_object* v_buckets_2680_; lean_object* v___x_2682_; uint8_t v_isShared_2683_; uint8_t v_isSharedCheck_2730_; -v_size_2679_ = lean_ctor_get(v_m_2677_, 0); -v_buckets_2680_ = lean_ctor_get(v_m_2677_, 1); -v_isSharedCheck_2730_ = !lean_is_exclusive(v_m_2677_); -if (v_isSharedCheck_2730_ == 0) +lean_object* v_size_2650_; lean_object* v_buckets_2651_; lean_object* v___x_2653_; uint8_t v_isShared_2654_; uint8_t v_isSharedCheck_2701_; +v_size_2650_ = lean_ctor_get(v_m_2648_, 0); +v_buckets_2651_ = lean_ctor_get(v_m_2648_, 1); +v_isSharedCheck_2701_ = !lean_is_exclusive(v_m_2648_); +if (v_isSharedCheck_2701_ == 0) { -v___x_2682_ = v_m_2677_; -v_isShared_2683_ = v_isSharedCheck_2730_; -goto v_resetjp_2681_; +v___x_2653_ = v_m_2648_; +v_isShared_2654_ = v_isSharedCheck_2701_; +goto v_resetjp_2652_; } else { -lean_inc(v_buckets_2680_); -lean_inc(v_size_2679_); -lean_dec(v_m_2677_); -v___x_2682_ = lean_box(0); -v_isShared_2683_ = v_isSharedCheck_2730_; -goto v_resetjp_2681_; +lean_inc(v_buckets_2651_); +lean_inc(v_size_2650_); +lean_dec(v_m_2648_); +v___x_2653_ = lean_box(0); +v_isShared_2654_ = v_isSharedCheck_2701_; +goto v_resetjp_2652_; } -v_resetjp_2681_: +v_resetjp_2652_: { -lean_object* v___x_2684_; uint64_t v___x_2685_; uint64_t v___x_2686_; uint64_t v___x_2687_; uint64_t v_fold_2688_; uint64_t v___x_2689_; uint64_t v___x_2690_; uint64_t v___x_2691_; size_t v___x_2692_; size_t v___x_2693_; size_t v___x_2694_; size_t v___x_2695_; size_t v___x_2696_; lean_object* v_bkt_2697_; uint8_t v___x_2698_; -v___x_2684_ = lean_array_get_size(v_buckets_2680_); -v___x_2685_ = lean_string_hash(v_a_2678_); -v___x_2686_ = 32ULL; -v___x_2687_ = lean_uint64_shift_right(v___x_2685_, v___x_2686_); -v_fold_2688_ = lean_uint64_xor(v___x_2685_, v___x_2687_); -v___x_2689_ = 16ULL; -v___x_2690_ = lean_uint64_shift_right(v_fold_2688_, v___x_2689_); -v___x_2691_ = lean_uint64_xor(v_fold_2688_, v___x_2690_); -v___x_2692_ = lean_uint64_to_usize(v___x_2691_); -v___x_2693_ = lean_usize_of_nat(v___x_2684_); -v___x_2694_ = ((size_t)1ULL); -v___x_2695_ = lean_usize_sub(v___x_2693_, v___x_2694_); -v___x_2696_ = lean_usize_land(v___x_2692_, v___x_2695_); -v_bkt_2697_ = lean_array_uget_borrowed(v_buckets_2680_, v___x_2696_); -v___x_2698_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_2678_, v_bkt_2697_); +lean_object* v___x_2655_; uint64_t v___x_2656_; uint64_t v___x_2657_; uint64_t v___x_2658_; uint64_t v_fold_2659_; uint64_t v___x_2660_; uint64_t v___x_2661_; uint64_t v___x_2662_; size_t v___x_2663_; size_t v___x_2664_; size_t v___x_2665_; size_t v___x_2666_; size_t v___x_2667_; lean_object* v_bkt_2668_; uint8_t v___x_2669_; +v___x_2655_ = lean_array_get_size(v_buckets_2651_); +v___x_2656_ = lean_string_hash(v_a_2649_); +v___x_2657_ = 32ULL; +v___x_2658_ = lean_uint64_shift_right(v___x_2656_, v___x_2657_); +v_fold_2659_ = lean_uint64_xor(v___x_2656_, v___x_2658_); +v___x_2660_ = 16ULL; +v___x_2661_ = lean_uint64_shift_right(v_fold_2659_, v___x_2660_); +v___x_2662_ = lean_uint64_xor(v_fold_2659_, v___x_2661_); +v___x_2663_ = lean_uint64_to_usize(v___x_2662_); +v___x_2664_ = lean_usize_of_nat(v___x_2655_); +v___x_2665_ = ((size_t)1ULL); +v___x_2666_ = lean_usize_sub(v___x_2664_, v___x_2665_); +v___x_2667_ = lean_usize_land(v___x_2663_, v___x_2666_); +v_bkt_2668_ = lean_array_uget_borrowed(v_buckets_2651_, v___x_2667_); +v___x_2669_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_2649_, v_bkt_2668_); +if (v___x_2669_ == 0) +{ +lean_object* v___x_2670_; lean_object* v___x_2671_; lean_object* v___x_2672_; lean_object* v_size_x27_2673_; lean_object* v___x_2674_; lean_object* v_buckets_x27_2675_; lean_object* v___x_2676_; lean_object* v___x_2677_; lean_object* v___x_2678_; lean_object* v___x_2679_; lean_object* v___x_2680_; uint8_t v___x_2681_; +v___x_2670_ = lean_unsigned_to_nat(1u); +v___x_2671_ = lean_mk_empty_array_with_capacity(v___x_2670_); +v___x_2672_ = lean_array_push(v___x_2671_, v_i_2647_); +v_size_x27_2673_ = lean_nat_add(v_size_2650_, v___x_2670_); +lean_dec(v_size_2650_); +lean_inc(v_bkt_2668_); +v___x_2674_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_2674_, 0, v_a_2649_); +lean_ctor_set(v___x_2674_, 1, v___x_2672_); +lean_ctor_set(v___x_2674_, 2, v_bkt_2668_); +v_buckets_x27_2675_ = lean_array_uset(v_buckets_2651_, v___x_2667_, v___x_2674_); +v___x_2676_ = lean_unsigned_to_nat(4u); +v___x_2677_ = lean_nat_mul(v_size_x27_2673_, v___x_2676_); +v___x_2678_ = lean_unsigned_to_nat(3u); +v___x_2679_ = lean_nat_div(v___x_2677_, v___x_2678_); +lean_dec(v___x_2677_); +v___x_2680_ = lean_array_get_size(v_buckets_x27_2675_); +v___x_2681_ = lean_nat_dec_le(v___x_2679_, v___x_2680_); +lean_dec(v___x_2679_); +if (v___x_2681_ == 0) +{ +lean_object* v_val_2682_; lean_object* v___x_2684_; +v_val_2682_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_buckets_x27_2675_); +if (v_isShared_2654_ == 0) +{ +lean_ctor_set(v___x_2653_, 1, v_val_2682_); +lean_ctor_set(v___x_2653_, 0, v_size_x27_2673_); +v___x_2684_ = v___x_2653_; +goto v_reusejp_2683_; +} +else +{ +lean_object* v_reuseFailAlloc_2685_; +v_reuseFailAlloc_2685_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2685_, 0, v_size_x27_2673_); +lean_ctor_set(v_reuseFailAlloc_2685_, 1, v_val_2682_); +v___x_2684_ = v_reuseFailAlloc_2685_; +goto v_reusejp_2683_; +} +v_reusejp_2683_: +{ +return v___x_2684_; +} +} +else +{ +lean_object* v___x_2687_; +if (v_isShared_2654_ == 0) +{ +lean_ctor_set(v___x_2653_, 1, v_buckets_x27_2675_); +lean_ctor_set(v___x_2653_, 0, v_size_x27_2673_); +v___x_2687_ = v___x_2653_; +goto v_reusejp_2686_; +} +else +{ +lean_object* v_reuseFailAlloc_2688_; +v_reuseFailAlloc_2688_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2688_, 0, v_size_x27_2673_); +lean_ctor_set(v_reuseFailAlloc_2688_, 1, v_buckets_x27_2675_); +v___x_2687_ = v_reuseFailAlloc_2688_; +goto v_reusejp_2686_; +} +v_reusejp_2686_: +{ +return v___x_2687_; +} +} +} +else +{ +lean_object* v___x_2689_; lean_object* v_buckets_x27_2690_; lean_object* v_bkt_x27_2691_; lean_object* v___y_2693_; uint8_t v___x_2698_; +lean_inc(v_bkt_2668_); +v___x_2689_ = lean_box(0); +v_buckets_x27_2690_ = lean_array_uset(v_buckets_2651_, v___x_2667_, v___x_2689_); +lean_inc_ref(v_a_2649_); +v_bkt_x27_2691_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(v_i_2647_, v_a_2649_, v_bkt_2668_); +v___x_2698_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_2649_, v_bkt_x27_2691_); +lean_dec_ref(v_a_2649_); if (v___x_2698_ == 0) { -lean_object* v___x_2699_; lean_object* v___x_2700_; lean_object* v___x_2701_; lean_object* v_size_x27_2702_; lean_object* v___x_2703_; lean_object* v_buckets_x27_2704_; lean_object* v___x_2705_; lean_object* v___x_2706_; lean_object* v___x_2707_; lean_object* v___x_2708_; lean_object* v___x_2709_; uint8_t v___x_2710_; +lean_object* v___x_2699_; lean_object* v___x_2700_; v___x_2699_ = lean_unsigned_to_nat(1u); -v___x_2700_ = lean_mk_empty_array_with_capacity(v___x_2699_); -v___x_2701_ = lean_array_push(v___x_2700_, v_i_2676_); -v_size_x27_2702_ = lean_nat_add(v_size_2679_, v___x_2699_); -lean_dec(v_size_2679_); -lean_inc(v_bkt_2697_); -v___x_2703_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v___x_2703_, 0, v_a_2678_); -lean_ctor_set(v___x_2703_, 1, v___x_2701_); -lean_ctor_set(v___x_2703_, 2, v_bkt_2697_); -v_buckets_x27_2704_ = lean_array_uset(v_buckets_2680_, v___x_2696_, v___x_2703_); -v___x_2705_ = lean_unsigned_to_nat(4u); -v___x_2706_ = lean_nat_mul(v_size_x27_2702_, v___x_2705_); -v___x_2707_ = lean_unsigned_to_nat(3u); -v___x_2708_ = lean_nat_div(v___x_2706_, v___x_2707_); -lean_dec(v___x_2706_); -v___x_2709_ = lean_array_get_size(v_buckets_x27_2704_); -v___x_2710_ = lean_nat_dec_le(v___x_2708_, v___x_2709_); -lean_dec(v___x_2708_); -if (v___x_2710_ == 0) -{ -lean_object* v_val_2711_; lean_object* v___x_2713_; -v_val_2711_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_buckets_x27_2704_); -if (v_isShared_2683_ == 0) -{ -lean_ctor_set(v___x_2682_, 1, v_val_2711_); -lean_ctor_set(v___x_2682_, 0, v_size_x27_2702_); -v___x_2713_ = v___x_2682_; -goto v_reusejp_2712_; +v___x_2700_ = lean_nat_sub(v_size_2650_, v___x_2699_); +lean_dec(v_size_2650_); +v___y_2693_ = v___x_2700_; +goto v___jp_2692_; } else { -lean_object* v_reuseFailAlloc_2714_; -v_reuseFailAlloc_2714_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2714_, 0, v_size_x27_2702_); -lean_ctor_set(v_reuseFailAlloc_2714_, 1, v_val_2711_); -v___x_2713_ = v_reuseFailAlloc_2714_; -goto v_reusejp_2712_; +v___y_2693_ = v_size_2650_; +goto v___jp_2692_; } -v_reusejp_2712_: +v___jp_2692_: { -return v___x_2713_; -} +lean_object* v___x_2694_; lean_object* v___x_2696_; +v___x_2694_ = lean_array_uset(v_buckets_x27_2690_, v___x_2667_, v_bkt_x27_2691_); +if (v_isShared_2654_ == 0) +{ +lean_ctor_set(v___x_2653_, 1, v___x_2694_); +lean_ctor_set(v___x_2653_, 0, v___y_2693_); +v___x_2696_ = v___x_2653_; +goto v_reusejp_2695_; } else { -lean_object* v___x_2716_; -if (v_isShared_2683_ == 0) +lean_object* v_reuseFailAlloc_2697_; +v_reuseFailAlloc_2697_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2697_, 0, v___y_2693_); +lean_ctor_set(v_reuseFailAlloc_2697_, 1, v___x_2694_); +v___x_2696_ = v_reuseFailAlloc_2697_; +goto v_reusejp_2695_; +} +v_reusejp_2695_: { -lean_ctor_set(v___x_2682_, 1, v_buckets_x27_2704_); -lean_ctor_set(v___x_2682_, 0, v_size_x27_2702_); -v___x_2716_ = v___x_2682_; -goto v_reusejp_2715_; -} -else -{ -lean_object* v_reuseFailAlloc_2717_; -v_reuseFailAlloc_2717_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2717_, 0, v_size_x27_2702_); -lean_ctor_set(v_reuseFailAlloc_2717_, 1, v_buckets_x27_2704_); -v___x_2716_ = v_reuseFailAlloc_2717_; -goto v_reusejp_2715_; -} -v_reusejp_2715_: -{ -return v___x_2716_; -} -} -} -else -{ -lean_object* v___x_2718_; lean_object* v_buckets_x27_2719_; lean_object* v_bkt_x27_2720_; lean_object* v___y_2722_; uint8_t v___x_2727_; -lean_inc(v_bkt_2697_); -v___x_2718_ = lean_box(0); -v_buckets_x27_2719_ = lean_array_uset(v_buckets_2680_, v___x_2696_, v___x_2718_); -lean_inc_ref(v_a_2678_); -v_bkt_x27_2720_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__5(v_i_2676_, v_a_2678_, v_bkt_2697_); -v___x_2727_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_2678_, v_bkt_x27_2720_); -lean_dec_ref(v_a_2678_); -if (v___x_2727_ == 0) -{ -lean_object* v___x_2728_; lean_object* v___x_2729_; -v___x_2728_ = lean_unsigned_to_nat(1u); -v___x_2729_ = lean_nat_sub(v_size_2679_, v___x_2728_); -lean_dec(v_size_2679_); -v___y_2722_ = v___x_2729_; -goto v___jp_2721_; -} -else -{ -v___y_2722_ = v_size_2679_; -goto v___jp_2721_; -} -v___jp_2721_: -{ -lean_object* v___x_2723_; lean_object* v___x_2725_; -v___x_2723_ = lean_array_uset(v_buckets_x27_2719_, v___x_2696_, v_bkt_x27_2720_); -if (v_isShared_2683_ == 0) -{ -lean_ctor_set(v___x_2682_, 1, v___x_2723_); -lean_ctor_set(v___x_2682_, 0, v___y_2722_); -v___x_2725_ = v___x_2682_; -goto v_reusejp_2724_; -} -else -{ -lean_object* v_reuseFailAlloc_2726_; -v_reuseFailAlloc_2726_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2726_, 0, v___y_2722_); -lean_ctor_set(v_reuseFailAlloc_2726_, 1, v___x_2723_); -v___x_2725_ = v_reuseFailAlloc_2726_; -goto v_reusejp_2724_; -} -v_reusejp_2724_: -{ -return v___x_2725_; +return v___x_2696_; } } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(lean_object* v_as_2731_, size_t v_i_2732_, size_t v_stop_2733_, lean_object* v_b_2734_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(lean_object* v_as_2702_, size_t v_i_2703_, size_t v_stop_2704_, lean_object* v_b_2705_){ _start: { -uint8_t v___x_2735_; -v___x_2735_ = lean_usize_dec_eq(v_i_2732_, v_stop_2733_); -if (v___x_2735_ == 0) +uint8_t v___x_2706_; +v___x_2706_ = lean_usize_dec_eq(v_i_2703_, v_stop_2704_); +if (v___x_2706_ == 0) { -lean_object* v___x_2736_; lean_object* v_fst_2737_; lean_object* v_entries_2738_; lean_object* v_indexes_2739_; lean_object* v___x_2741_; uint8_t v_isShared_2742_; uint8_t v_isSharedCheck_2752_; -v___x_2736_ = lean_array_uget_borrowed(v_as_2731_, v_i_2732_); -v_fst_2737_ = lean_ctor_get(v___x_2736_, 0); -v_entries_2738_ = lean_ctor_get(v_b_2734_, 0); -v_indexes_2739_ = lean_ctor_get(v_b_2734_, 1); -v_isSharedCheck_2752_ = !lean_is_exclusive(v_b_2734_); -if (v_isSharedCheck_2752_ == 0) +lean_object* v___x_2707_; lean_object* v_fst_2708_; lean_object* v_entries_2709_; lean_object* v_indexes_2710_; lean_object* v___x_2712_; uint8_t v_isShared_2713_; uint8_t v_isSharedCheck_2723_; +v___x_2707_ = lean_array_uget_borrowed(v_as_2702_, v_i_2703_); +v_fst_2708_ = lean_ctor_get(v___x_2707_, 0); +v_entries_2709_ = lean_ctor_get(v_b_2705_, 0); +v_indexes_2710_ = lean_ctor_get(v_b_2705_, 1); +v_isSharedCheck_2723_ = !lean_is_exclusive(v_b_2705_); +if (v_isSharedCheck_2723_ == 0) { -v___x_2741_ = v_b_2734_; -v_isShared_2742_ = v_isSharedCheck_2752_; -goto v_resetjp_2740_; +v___x_2712_ = v_b_2705_; +v_isShared_2713_ = v_isSharedCheck_2723_; +goto v_resetjp_2711_; } else { -lean_inc(v_indexes_2739_); -lean_inc(v_entries_2738_); -lean_dec(v_b_2734_); -v___x_2741_ = lean_box(0); -v_isShared_2742_ = v_isSharedCheck_2752_; -goto v_resetjp_2740_; +lean_inc(v_indexes_2710_); +lean_inc(v_entries_2709_); +lean_dec(v_b_2705_); +v___x_2712_ = lean_box(0); +v_isShared_2713_ = v_isSharedCheck_2723_; +goto v_resetjp_2711_; } -v_resetjp_2740_: +v_resetjp_2711_: { -lean_object* v_i_2743_; lean_object* v_entries_2744_; lean_object* v_indexes_2745_; lean_object* v___x_2747_; -v_i_2743_ = lean_array_get_size(v_entries_2738_); -lean_inc(v___x_2736_); -v_entries_2744_ = lean_array_push(v_entries_2738_, v___x_2736_); -lean_inc(v_fst_2737_); -v_indexes_2745_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_2743_, v_indexes_2739_, v_fst_2737_); -if (v_isShared_2742_ == 0) +lean_object* v_i_2714_; lean_object* v_entries_2715_; lean_object* v_indexes_2716_; lean_object* v___x_2718_; +v_i_2714_ = lean_array_get_size(v_entries_2709_); +lean_inc(v___x_2707_); +v_entries_2715_ = lean_array_push(v_entries_2709_, v___x_2707_); +lean_inc(v_fst_2708_); +v_indexes_2716_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_2714_, v_indexes_2710_, v_fst_2708_); +if (v_isShared_2713_ == 0) { -lean_ctor_set(v___x_2741_, 1, v_indexes_2745_); -lean_ctor_set(v___x_2741_, 0, v_entries_2744_); -v___x_2747_ = v___x_2741_; -goto v_reusejp_2746_; +lean_ctor_set(v___x_2712_, 1, v_indexes_2716_); +lean_ctor_set(v___x_2712_, 0, v_entries_2715_); +v___x_2718_ = v___x_2712_; +goto v_reusejp_2717_; } else { -lean_object* v_reuseFailAlloc_2751_; -v_reuseFailAlloc_2751_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2751_, 0, v_entries_2744_); -lean_ctor_set(v_reuseFailAlloc_2751_, 1, v_indexes_2745_); -v___x_2747_ = v_reuseFailAlloc_2751_; -goto v_reusejp_2746_; +lean_object* v_reuseFailAlloc_2722_; +v_reuseFailAlloc_2722_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2722_, 0, v_entries_2715_); +lean_ctor_set(v_reuseFailAlloc_2722_, 1, v_indexes_2716_); +v___x_2718_ = v_reuseFailAlloc_2722_; +goto v_reusejp_2717_; } -v_reusejp_2746_: +v_reusejp_2717_: { -size_t v___x_2748_; size_t v___x_2749_; -v___x_2748_ = ((size_t)1ULL); -v___x_2749_ = lean_usize_add(v_i_2732_, v___x_2748_); -v_i_2732_ = v___x_2749_; -v_b_2734_ = v___x_2747_; +size_t v___x_2719_; size_t v___x_2720_; +v___x_2719_ = ((size_t)1ULL); +v___x_2720_ = lean_usize_add(v_i_2703_, v___x_2719_); +v_i_2703_ = v___x_2720_; +v_b_2705_ = v___x_2718_; goto _start; } } } else { +return v_b_2705_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6___boxed(lean_object* v_as_2724_, lean_object* v_i_2725_, lean_object* v_stop_2726_, lean_object* v_b_2727_){ +_start: +{ +size_t v_i_boxed_2728_; size_t v_stop_boxed_2729_; lean_object* v_res_2730_; +v_i_boxed_2728_ = lean_unbox_usize(v_i_2725_); +lean_dec(v_i_2725_); +v_stop_boxed_2729_ = lean_unbox_usize(v_stop_2726_); +lean_dec(v_stop_2726_); +v_res_2730_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v_as_2724_, v_i_boxed_2728_, v_stop_boxed_2729_, v_b_2727_); +lean_dec_ref(v_as_2724_); +return v_res_2730_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(lean_object* v_as_2731_, size_t v_i_2732_, size_t v_stop_2733_, lean_object* v_b_2734_){ +_start: +{ +lean_object* v___y_2736_; uint8_t v___x_2740_; +v___x_2740_ = lean_usize_dec_eq(v_i_2732_, v_stop_2733_); +if (v___x_2740_ == 0) +{ +lean_object* v___x_2741_; lean_object* v_fst_2742_; lean_object* v___x_2743_; uint8_t v___x_2744_; +v___x_2741_ = lean_array_uget_borrowed(v_as_2731_, v_i_2732_); +v_fst_2742_ = lean_ctor_get(v___x_2741_, 0); +v___x_2743_ = l_Std_Http_Header_Name_contentLength; +v___x_2744_ = lean_string_dec_eq(v_fst_2742_, v___x_2743_); +if (v___x_2744_ == 0) +{ +lean_object* v___x_2745_; +lean_inc(v___x_2741_); +v___x_2745_ = lean_array_push(v_b_2734_, v___x_2741_); +v___y_2736_ = v___x_2745_; +goto v___jp_2735_; +} +else +{ +v___y_2736_ = v_b_2734_; +goto v___jp_2735_; +} +} +else +{ return v_b_2734_; } -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6___boxed(lean_object* v_as_2753_, lean_object* v_i_2754_, lean_object* v_stop_2755_, lean_object* v_b_2756_){ -_start: +v___jp_2735_: { -size_t v_i_boxed_2757_; size_t v_stop_boxed_2758_; lean_object* v_res_2759_; -v_i_boxed_2757_ = lean_unbox_usize(v_i_2754_); -lean_dec(v_i_2754_); -v_stop_boxed_2758_ = lean_unbox_usize(v_stop_2755_); -lean_dec(v_stop_2755_); -v_res_2759_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v_as_2753_, v_i_boxed_2757_, v_stop_boxed_2758_, v_b_2756_); -lean_dec_ref(v_as_2753_); -return v_res_2759_; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(lean_object* v_as_2760_, size_t v_i_2761_, size_t v_stop_2762_, lean_object* v_b_2763_){ -_start: -{ -lean_object* v___y_2765_; uint8_t v___x_2769_; -v___x_2769_ = lean_usize_dec_eq(v_i_2761_, v_stop_2762_); -if (v___x_2769_ == 0) -{ -lean_object* v___x_2770_; lean_object* v_fst_2771_; lean_object* v___x_2772_; uint8_t v___x_2773_; -v___x_2770_ = lean_array_uget_borrowed(v_as_2760_, v_i_2761_); -v_fst_2771_ = lean_ctor_get(v___x_2770_, 0); -v___x_2772_ = l_Std_Http_Header_Name_contentLength; -v___x_2773_ = lean_string_dec_eq(v_fst_2771_, v___x_2772_); -if (v___x_2773_ == 0) -{ -lean_object* v___x_2774_; -lean_inc(v___x_2770_); -v___x_2774_ = lean_array_push(v_b_2763_, v___x_2770_); -v___y_2765_ = v___x_2774_; -goto v___jp_2764_; -} -else -{ -v___y_2765_ = v_b_2763_; -goto v___jp_2764_; -} -} -else -{ -return v_b_2763_; -} -v___jp_2764_: -{ -size_t v___x_2766_; size_t v___x_2767_; -v___x_2766_ = ((size_t)1ULL); -v___x_2767_ = lean_usize_add(v_i_2761_, v___x_2766_); -v_i_2761_ = v___x_2767_; -v_b_2763_ = v___y_2765_; +size_t v___x_2737_; size_t v___x_2738_; +v___x_2737_ = ((size_t)1ULL); +v___x_2738_ = lean_usize_add(v_i_2732_, v___x_2737_); +v_i_2732_ = v___x_2738_; +v_b_2734_ = v___y_2736_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8___boxed(lean_object* v_as_2775_, lean_object* v_i_2776_, lean_object* v_stop_2777_, lean_object* v_b_2778_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8___boxed(lean_object* v_as_2746_, lean_object* v_i_2747_, lean_object* v_stop_2748_, lean_object* v_b_2749_){ _start: { -size_t v_i_boxed_2779_; size_t v_stop_boxed_2780_; lean_object* v_res_2781_; -v_i_boxed_2779_ = lean_unbox_usize(v_i_2776_); -lean_dec(v_i_2776_); -v_stop_boxed_2780_ = lean_unbox_usize(v_stop_2777_); -lean_dec(v_stop_2777_); -v_res_2781_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_as_2775_, v_i_boxed_2779_, v_stop_boxed_2780_, v_b_2778_); -lean_dec_ref(v_as_2775_); -return v_res_2781_; +size_t v_i_boxed_2750_; size_t v_stop_boxed_2751_; lean_object* v_res_2752_; +v_i_boxed_2750_ = lean_unbox_usize(v_i_2747_); +lean_dec(v_i_2747_); +v_stop_boxed_2751_ = lean_unbox_usize(v_stop_2748_); +lean_dec(v_stop_2748_); +v_res_2752_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_as_2746_, v_i_boxed_2750_, v_stop_boxed_2751_, v_b_2749_); +lean_dec_ref(v_as_2746_); +return v_res_2752_; } } -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(lean_object* v_a_2782_, lean_object* v_a_2783_){ +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(lean_object* v_a_2753_, lean_object* v_a_2754_){ _start: { -if (lean_obj_tag(v_a_2782_) == 0) +if (lean_obj_tag(v_a_2753_) == 0) { -lean_object* v___x_2784_; -v___x_2784_ = l_List_reverse___redArg(v_a_2783_); -return v___x_2784_; +lean_object* v___x_2755_; +v___x_2755_ = l_List_reverse___redArg(v_a_2754_); +return v___x_2755_; } else { -lean_object* v_head_2785_; lean_object* v_tail_2786_; lean_object* v___x_2788_; uint8_t v_isShared_2789_; uint8_t v_isSharedCheck_2797_; -v_head_2785_ = lean_ctor_get(v_a_2782_, 0); -v_tail_2786_ = lean_ctor_get(v_a_2782_, 1); -v_isSharedCheck_2797_ = !lean_is_exclusive(v_a_2782_); -if (v_isSharedCheck_2797_ == 0) +lean_object* v_head_2756_; lean_object* v_tail_2757_; lean_object* v___x_2759_; uint8_t v_isShared_2760_; uint8_t v_isSharedCheck_2768_; +v_head_2756_ = lean_ctor_get(v_a_2753_, 0); +v_tail_2757_ = lean_ctor_get(v_a_2753_, 1); +v_isSharedCheck_2768_ = !lean_is_exclusive(v_a_2753_); +if (v_isSharedCheck_2768_ == 0) { -v___x_2788_ = v_a_2782_; -v_isShared_2789_ = v_isSharedCheck_2797_; -goto v_resetjp_2787_; +v___x_2759_ = v_a_2753_; +v_isShared_2760_ = v_isSharedCheck_2768_; +goto v_resetjp_2758_; } else { -lean_inc(v_tail_2786_); -lean_inc(v_head_2785_); -lean_dec(v_a_2782_); -v___x_2788_ = lean_box(0); -v_isShared_2789_ = v_isSharedCheck_2797_; -goto v_resetjp_2787_; +lean_inc(v_tail_2757_); +lean_inc(v_head_2756_); +lean_dec(v_a_2753_); +v___x_2759_ = lean_box(0); +v_isShared_2760_ = v_isSharedCheck_2768_; +goto v_resetjp_2758_; } -v_resetjp_2787_: +v_resetjp_2758_: { -lean_object* v_fst_2790_; lean_object* v_snd_2791_; lean_object* v___x_2792_; lean_object* v___x_2794_; -v_fst_2790_ = lean_ctor_get(v_head_2785_, 0); -lean_inc(v_fst_2790_); -v_snd_2791_ = lean_ctor_get(v_head_2785_, 1); -lean_inc(v_snd_2791_); -lean_dec(v_head_2785_); -v___x_2792_ = l_Std_Http_URI_Query_formatQueryParam(v_fst_2790_, v_snd_2791_); -if (v_isShared_2789_ == 0) +lean_object* v_fst_2761_; lean_object* v_snd_2762_; lean_object* v___x_2763_; lean_object* v___x_2765_; +v_fst_2761_ = lean_ctor_get(v_head_2756_, 0); +lean_inc(v_fst_2761_); +v_snd_2762_ = lean_ctor_get(v_head_2756_, 1); +lean_inc(v_snd_2762_); +lean_dec(v_head_2756_); +v___x_2763_ = l_Std_Http_URI_Query_formatQueryParam(v_fst_2761_, v_snd_2762_); +if (v_isShared_2760_ == 0) { -lean_ctor_set(v___x_2788_, 1, v_a_2783_); -lean_ctor_set(v___x_2788_, 0, v___x_2792_); -v___x_2794_ = v___x_2788_; -goto v_reusejp_2793_; +lean_ctor_set(v___x_2759_, 1, v_a_2754_); +lean_ctor_set(v___x_2759_, 0, v___x_2763_); +v___x_2765_ = v___x_2759_; +goto v_reusejp_2764_; } else { -lean_object* v_reuseFailAlloc_2796_; -v_reuseFailAlloc_2796_ = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2796_, 0, v___x_2792_); -lean_ctor_set(v_reuseFailAlloc_2796_, 1, v_a_2783_); -v___x_2794_ = v_reuseFailAlloc_2796_; -goto v_reusejp_2793_; +lean_object* v_reuseFailAlloc_2767_; +v_reuseFailAlloc_2767_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2767_, 0, v___x_2763_); +lean_ctor_set(v_reuseFailAlloc_2767_, 1, v_a_2754_); +v___x_2765_ = v_reuseFailAlloc_2767_; +goto v_reusejp_2764_; } -v_reusejp_2793_: +v_reusejp_2764_: { -v_a_2782_ = v_tail_2786_; -v_a_2783_ = v___x_2794_; +v_a_2753_ = v_tail_2757_; +v_a_2754_ = v___x_2765_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(size_t v_sz_2798_, size_t v_i_2799_, lean_object* v_bs_2800_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(size_t v_sz_2769_, size_t v_i_2770_, lean_object* v_bs_2771_){ _start: { -uint8_t v___x_2801_; -v___x_2801_ = lean_usize_dec_lt(v_i_2799_, v_sz_2798_); -if (v___x_2801_ == 0) +uint8_t v___x_2772_; +v___x_2772_ = lean_usize_dec_lt(v_i_2770_, v_sz_2769_); +if (v___x_2772_ == 0) { -return v_bs_2800_; +return v_bs_2771_; } else { -lean_object* v_v_2802_; lean_object* v___x_2803_; lean_object* v_bs_x27_2804_; lean_object* v___x_2805_; size_t v___x_2806_; size_t v___x_2807_; lean_object* v___x_2808_; -v_v_2802_ = lean_array_uget(v_bs_2800_, v_i_2799_); -v___x_2803_ = lean_unsigned_to_nat(0u); -v_bs_x27_2804_ = lean_array_uset(v_bs_2800_, v_i_2799_, v___x_2803_); -v___x_2805_ = lean_string_from_utf8_unchecked(v_v_2802_); -v___x_2806_ = ((size_t)1ULL); -v___x_2807_ = lean_usize_add(v_i_2799_, v___x_2806_); -v___x_2808_ = lean_array_uset(v_bs_x27_2804_, v_i_2799_, v___x_2805_); -v_i_2799_ = v___x_2807_; -v_bs_2800_ = v___x_2808_; +lean_object* v_v_2773_; lean_object* v___x_2774_; lean_object* v_bs_x27_2775_; lean_object* v___x_2776_; size_t v___x_2777_; size_t v___x_2778_; lean_object* v___x_2779_; +v_v_2773_ = lean_array_uget(v_bs_2771_, v_i_2770_); +v___x_2774_ = lean_unsigned_to_nat(0u); +v_bs_x27_2775_ = lean_array_uset(v_bs_2771_, v_i_2770_, v___x_2774_); +v___x_2776_ = lean_string_from_utf8_unchecked(v_v_2773_); +v___x_2777_ = ((size_t)1ULL); +v___x_2778_ = lean_usize_add(v_i_2770_, v___x_2777_); +v___x_2779_ = lean_array_uset(v_bs_x27_2775_, v_i_2770_, v___x_2776_); +v_i_2770_ = v___x_2778_; +v_bs_2771_ = v___x_2779_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3___boxed(lean_object* v_sz_2810_, lean_object* v_i_2811_, lean_object* v_bs_2812_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3___boxed(lean_object* v_sz_2781_, lean_object* v_i_2782_, lean_object* v_bs_2783_){ _start: { -size_t v_sz_boxed_2813_; size_t v_i_boxed_2814_; lean_object* v_res_2815_; -v_sz_boxed_2813_ = lean_unbox_usize(v_sz_2810_); -lean_dec(v_sz_2810_); -v_i_boxed_2814_ = lean_unbox_usize(v_i_2811_); -lean_dec(v_i_2811_); -v_res_2815_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_boxed_2813_, v_i_boxed_2814_, v_bs_2812_); -return v_res_2815_; +size_t v_sz_boxed_2784_; size_t v_i_boxed_2785_; lean_object* v_res_2786_; +v_sz_boxed_2784_ = lean_unbox_usize(v_sz_2781_); +lean_dec(v_sz_2781_); +v_i_boxed_2785_ = lean_unbox_usize(v_i_2782_); +lean_dec(v_i_2782_); +v_res_2786_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_boxed_2784_, v_i_boxed_2785_, v_bs_2783_); +return v_res_2786_; } } static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1(void){ _start: { -lean_object* v___x_2817_; lean_object* v___x_2818_; -v___x_2817_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__1)); -v___x_2818_ = lean_string_to_utf8(v___x_2817_); -return v___x_2818_; +lean_object* v___x_2788_; lean_object* v___x_2789_; +v___x_2788_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__1)); +v___x_2789_ = lean_string_to_utf8(v___x_2788_); +return v___x_2789_; } } static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2(void){ _start: { -lean_object* v___x_2819_; lean_object* v___x_2820_; -v___x_2819_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); -v___x_2820_ = lean_byte_array_size(v___x_2819_); -return v___x_2820_; +lean_object* v___x_2790_; lean_object* v___x_2791_; +v___x_2790_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); +v___x_2791_ = lean_byte_array_size(v___x_2790_); +return v___x_2791_; } } static uint8_t _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14(void){ _start: { -uint32_t v___x_2832_; uint8_t v___x_2833_; -v___x_2832_ = 32; -v___x_2833_ = lean_uint32_to_uint8(v___x_2832_); -return v___x_2833_; +uint32_t v___x_2803_; uint8_t v___x_2804_; +v___x_2803_ = 32; +v___x_2804_ = lean_uint32_to_uint8(v___x_2803_); +return v___x_2804_; } } static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15(void){ _start: { -uint8_t v___x_2834_; lean_object* v___x_2835_; lean_object* v___x_2836_; lean_object* v___x_2837_; lean_object* v___x_2838_; lean_object* v___x_2839_; -v___x_2834_ = lean_uint8_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14); -v___x_2835_ = lean_unsigned_to_nat(1u); -v___x_2836_ = lean_mk_empty_array_with_capacity(v___x_2835_); -v___x_2837_ = lean_box(v___x_2834_); -v___x_2838_ = lean_array_push(v___x_2836_, v___x_2837_); -v___x_2839_ = lean_byte_array_mk(v___x_2838_); -return v___x_2839_; +uint8_t v___x_2805_; lean_object* v___x_2806_; lean_object* v___x_2807_; lean_object* v___x_2808_; lean_object* v___x_2809_; lean_object* v___x_2810_; +v___x_2805_ = lean_uint8_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__14); +v___x_2806_ = lean_unsigned_to_nat(1u); +v___x_2807_ = lean_mk_empty_array_with_capacity(v___x_2806_); +v___x_2808_ = lean_box(v___x_2805_); +v___x_2809_ = lean_array_push(v___x_2807_, v___x_2808_); +v___x_2810_ = lean_byte_array_mk(v___x_2809_); +return v___x_2810_; } } static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16(void){ _start: { -lean_object* v___x_2840_; lean_object* v___x_2841_; -v___x_2840_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); -v___x_2841_ = lean_byte_array_size(v___x_2840_); -return v___x_2841_; +lean_object* v___x_2811_; lean_object* v___x_2812_; +v___x_2811_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); +v___x_2812_ = lean_byte_array_size(v___x_2811_); +return v___x_2812_; } } static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60(void){ _start: { -lean_object* v___x_2885_; -v___x_2885_ = l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__5(lean_box(0)); -return v___x_2885_; +lean_object* v___x_2856_; +v___x_2856_ = l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__5(lean_box(0)); +return v___x_2856_; } } -static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61(void){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(uint8_t v_dir_2859_, lean_object* v_messageHead_2860_, lean_object* v_machine_2861_){ _start: { -lean_object* v___x_2886_; lean_object* v___x_2887_; lean_object* v___x_2888_; -v___x_2886_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10___closed__0)); -v___x_2887_ = l_Std_Http_Header_Name_connection; -v___x_2888_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2888_, 0, v___x_2887_); -lean_ctor_set(v___x_2888_, 1, v___x_2886_); -return v___x_2888_; -} -} -static lean_object* _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62(void){ -_start: +uint8_t v___y_2863_; lean_object* v___y_2864_; lean_object* v___y_2865_; lean_object* v___y_2866_; lean_object* v___y_2867_; uint8_t v___y_2868_; lean_object* v___y_2869_; lean_object* v___y_2870_; lean_object* v___y_2871_; lean_object* v___y_2872_; lean_object* v___y_2873_; uint8_t v___y_2874_; uint8_t v___y_2875_; uint8_t v___y_2876_; lean_object* v___y_2877_; uint8_t v___y_2878_; lean_object* v___y_2879_; lean_object* v_reader_2882_; lean_object* v_config_2883_; lean_object* v_writer_2884_; lean_object* v_events_2885_; lean_object* v_error_2886_; lean_object* v_instant_2887_; uint8_t v_keepAlive_2888_; uint8_t v_forcedFlush_2889_; uint8_t v_pullBodyStalled_2890_; lean_object* v___x_2892_; uint8_t v_isShared_2893_; uint8_t v_isSharedCheck_4565_; +v_reader_2882_ = lean_ctor_get(v_machine_2861_, 0); +v_config_2883_ = lean_ctor_get(v_machine_2861_, 2); +v_writer_2884_ = lean_ctor_get(v_machine_2861_, 1); +v_events_2885_ = lean_ctor_get(v_machine_2861_, 3); +v_error_2886_ = lean_ctor_get(v_machine_2861_, 4); +v_instant_2887_ = lean_ctor_get(v_machine_2861_, 5); +v_keepAlive_2888_ = lean_ctor_get_uint8(v_machine_2861_, sizeof(void*)*6); +v_forcedFlush_2889_ = lean_ctor_get_uint8(v_machine_2861_, sizeof(void*)*6 + 1); +v_pullBodyStalled_2890_ = lean_ctor_get_uint8(v_machine_2861_, sizeof(void*)*6 + 2); +v_isSharedCheck_4565_ = !lean_is_exclusive(v_machine_2861_); +if (v_isSharedCheck_4565_ == 0) { -lean_object* v___x_2889_; lean_object* v___x_2890_; lean_object* v___x_2891_; -v___x_2889_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__0)); -v___x_2890_ = l_Std_Http_Header_Name_connection; -v___x_2891_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_2891_, 0, v___x_2890_); -lean_ctor_set(v___x_2891_, 1, v___x_2889_); -return v___x_2891_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(uint8_t v_dir_2892_, lean_object* v_messageHead_2893_, lean_object* v_machine_2894_){ -_start: -{ -lean_object* v_reader_2895_; lean_object* v_writer_2896_; lean_object* v_config_2897_; lean_object* v_events_2898_; lean_object* v_error_2899_; lean_object* v_instant_2900_; uint8_t v_keepAlive_2901_; uint8_t v_forcedFlush_2902_; uint8_t v_pullBodyStalled_2903_; lean_object* v___x_2905_; uint8_t v_isShared_2906_; uint8_t v_isSharedCheck_4056_; -v_reader_2895_ = lean_ctor_get(v_machine_2894_, 0); -v_writer_2896_ = lean_ctor_get(v_machine_2894_, 1); -v_config_2897_ = lean_ctor_get(v_machine_2894_, 2); -v_events_2898_ = lean_ctor_get(v_machine_2894_, 3); -v_error_2899_ = lean_ctor_get(v_machine_2894_, 4); -v_instant_2900_ = lean_ctor_get(v_machine_2894_, 5); -v_keepAlive_2901_ = lean_ctor_get_uint8(v_machine_2894_, sizeof(void*)*6); -v_forcedFlush_2902_ = lean_ctor_get_uint8(v_machine_2894_, sizeof(void*)*6 + 1); -v_pullBodyStalled_2903_ = lean_ctor_get_uint8(v_machine_2894_, sizeof(void*)*6 + 2); -v_isSharedCheck_4056_ = !lean_is_exclusive(v_machine_2894_); -if (v_isSharedCheck_4056_ == 0) -{ -v___x_2905_ = v_machine_2894_; -v_isShared_2906_ = v_isSharedCheck_4056_; -goto v_resetjp_2904_; +v___x_2892_ = v_machine_2861_; +v_isShared_2893_ = v_isSharedCheck_4565_; +goto v_resetjp_2891_; } else { -lean_inc(v_instant_2900_); -lean_inc(v_error_2899_); -lean_inc(v_events_2898_); -lean_inc(v_config_2897_); -lean_inc(v_writer_2896_); -lean_inc(v_reader_2895_); -lean_dec(v_machine_2894_); -v___x_2905_ = lean_box(0); -v_isShared_2906_ = v_isSharedCheck_4056_; -goto v_resetjp_2904_; +lean_inc(v_instant_2887_); +lean_inc(v_error_2886_); +lean_inc(v_events_2885_); +lean_inc(v_config_2883_); +lean_inc(v_writer_2884_); +lean_inc(v_reader_2882_); +lean_dec(v_machine_2861_); +v___x_2892_ = lean_box(0); +v_isShared_2893_ = v_isSharedCheck_4565_; +goto v_resetjp_2891_; } -v_resetjp_2904_: +v___jp_2862_: { -uint8_t v___y_2908_; lean_object* v___y_2909_; lean_object* v___y_2910_; uint8_t v___y_2911_; uint8_t v___y_2912_; lean_object* v___y_2913_; uint8_t v___y_2914_; lean_object* v___y_2915_; lean_object* v___y_2916_; lean_object* v___y_2917_; lean_object* v_messageHead_2922_; lean_object* v_messageCount_2923_; lean_object* v_maxMessages_2924_; lean_object* v_agentName_2925_; lean_object* v___f_2926_; lean_object* v___y_2928_; uint8_t v___y_2929_; uint8_t v___y_2930_; uint8_t v___y_2931_; lean_object* v___y_2932_; lean_object* v___y_2933_; lean_object* v___y_2934_; lean_object* v___y_2935_; lean_object* v___y_2936_; lean_object* v___y_2937_; uint8_t v___y_2938_; lean_object* v___y_2939_; lean_object* v___y_2940_; lean_object* v___y_2963_; uint8_t v___y_2964_; uint8_t v___y_2965_; lean_object* v___y_2966_; lean_object* v___y_2967_; lean_object* v___y_2968_; lean_object* v___y_2969_; uint8_t v___y_2970_; lean_object* v___y_2971_; lean_object* v___y_2972_; lean_object* v___y_2973_; uint8_t v___y_2974_; lean_object* v___y_2975_; uint8_t v___y_2976_; lean_object* v___y_2977_; lean_object* v___y_2978_; lean_object* v___y_2990_; uint8_t v___y_2991_; uint8_t v___y_2992_; lean_object* v___y_2993_; lean_object* v___y_2994_; lean_object* v___y_2995_; lean_object* v___y_2996_; uint8_t v___y_2997_; lean_object* v___y_2998_; lean_object* v___y_2999_; lean_object* v___y_3000_; lean_object* v___y_3001_; uint8_t v___y_3002_; lean_object* v___y_3003_; uint8_t v___y_3004_; lean_object* v___y_3005_; lean_object* v___y_3006_; lean_object* v___y_3020_; uint8_t v___y_3021_; uint8_t v___y_3022_; lean_object* v___y_3023_; lean_object* v___y_3024_; lean_object* v___y_3025_; lean_object* v___y_3026_; lean_object* v___y_3027_; uint8_t v___y_3028_; lean_object* v___y_3029_; lean_object* v___y_3030_; lean_object* v___y_3031_; lean_object* v___y_3032_; uint8_t v___y_3033_; lean_object* v___y_3034_; lean_object* v___y_3035_; uint8_t v___y_3036_; lean_object* v___y_3037_; lean_object* v___y_3038_; lean_object* v___y_3039_; lean_object* v___y_3047_; uint8_t v___y_3048_; uint8_t v___y_3049_; lean_object* v___y_3050_; lean_object* v___y_3051_; lean_object* v___y_3052_; lean_object* v___y_3053_; lean_object* v___y_3054_; uint8_t v___y_3055_; lean_object* v___y_3056_; lean_object* v___y_3057_; lean_object* v___y_3058_; lean_object* v___y_3059_; uint8_t v___y_3060_; lean_object* v___y_3061_; lean_object* v___y_3062_; lean_object* v___y_3063_; uint8_t v___y_3064_; lean_object* v___y_3065_; lean_object* v___y_3066_; lean_object* v___y_3074_; uint8_t v___y_3075_; uint8_t v___y_3076_; lean_object* v___y_3077_; lean_object* v___y_3078_; lean_object* v___y_3079_; lean_object* v___y_3080_; lean_object* v___y_3081_; uint8_t v___y_3082_; lean_object* v___y_3083_; lean_object* v___y_3084_; lean_object* v___y_3085_; uint8_t v___y_3086_; lean_object* v___y_3087_; lean_object* v___y_3088_; lean_object* v___y_3089_; uint8_t v___y_3090_; lean_object* v___y_3091_; lean_object* v___y_3092_; lean_object* v___y_3093_; lean_object* v___y_3106_; uint8_t v___y_3107_; uint8_t v___y_3108_; lean_object* v___y_3109_; lean_object* v___y_3110_; lean_object* v___y_3111_; lean_object* v___y_3112_; uint8_t v___y_3113_; lean_object* v___y_3114_; lean_object* v___y_3115_; lean_object* v___y_3116_; lean_object* v___y_3117_; uint8_t v___y_3118_; lean_object* v___y_3119_; lean_object* v___y_3120_; lean_object* v___y_3121_; uint8_t v___y_3122_; lean_object* v___y_3123_; lean_object* v___y_3124_; lean_object* v___y_3125_; lean_object* v___y_3136_; uint8_t v___y_3137_; uint8_t v___y_3138_; lean_object* v___y_3139_; lean_object* v___y_3140_; lean_object* v___y_3141_; lean_object* v___y_3142_; lean_object* v___y_3143_; lean_object* v___y_3144_; uint8_t v___y_3145_; lean_object* v___y_3146_; lean_object* v___y_3147_; lean_object* v___y_3148_; lean_object* v___y_3149_; lean_object* v___y_3150_; uint8_t v___y_3151_; lean_object* v___y_3152_; lean_object* v___y_3153_; lean_object* v___y_3154_; uint8_t v___y_3155_; lean_object* v___y_3156_; lean_object* v___y_3157_; lean_object* v___y_3158_; lean_object* v___y_3163_; uint8_t v___y_3164_; uint8_t v___y_3165_; lean_object* v___y_3166_; lean_object* v___y_3167_; lean_object* v___y_3168_; lean_object* v___y_3169_; lean_object* v___y_3170_; uint8_t v___y_3171_; lean_object* v___y_3172_; lean_object* v___y_3173_; lean_object* v___y_3174_; lean_object* v___y_3175_; lean_object* v_port_3176_; lean_object* v___y_3177_; uint8_t v___y_3178_; lean_object* v___y_3179_; lean_object* v___y_3180_; lean_object* v___y_3181_; uint8_t v___y_3182_; lean_object* v___y_3183_; lean_object* v___y_3184_; lean_object* v___y_3185_; lean_object* v___y_3194_; uint8_t v___y_3195_; uint8_t v___y_3196_; lean_object* v___y_3197_; lean_object* v___y_3198_; lean_object* v___y_3199_; lean_object* v___y_3200_; lean_object* v___y_3201_; uint8_t v___y_3202_; lean_object* v___y_3203_; lean_object* v___y_3204_; lean_object* v___y_3205_; lean_object* v___y_3206_; lean_object* v_host_3207_; lean_object* v_port_3208_; uint8_t v___y_3209_; lean_object* v___y_3210_; lean_object* v___y_3211_; lean_object* v___y_3212_; uint8_t v___y_3213_; lean_object* v___y_3214_; lean_object* v___y_3215_; lean_object* v___y_3216_; lean_object* v___y_3227_; uint8_t v___y_3228_; uint8_t v___y_3229_; lean_object* v___y_3230_; lean_object* v___y_3231_; lean_object* v___y_3232_; lean_object* v___y_3233_; lean_object* v___y_3234_; uint8_t v___y_3235_; lean_object* v___y_3236_; lean_object* v___y_3237_; lean_object* v___y_3238_; uint8_t v___y_3239_; lean_object* v___y_3240_; lean_object* v___y_3241_; uint8_t v___y_3242_; lean_object* v___y_3243_; lean_object* v___y_3244_; lean_object* v___y_3248_; uint8_t v___y_3249_; uint8_t v___y_3250_; lean_object* v___y_3251_; lean_object* v___y_3252_; lean_object* v___y_3253_; lean_object* v___y_3254_; lean_object* v___y_3255_; uint8_t v___y_3256_; lean_object* v___y_3257_; lean_object* v___y_3258_; lean_object* v___y_3259_; uint8_t v___y_3260_; lean_object* v___y_3261_; lean_object* v_port_3262_; uint8_t v___y_3263_; lean_object* v___y_3264_; lean_object* v___y_3265_; lean_object* v___y_3274_; uint8_t v___y_3275_; uint8_t v___y_3276_; lean_object* v___y_3277_; lean_object* v___y_3278_; lean_object* v___y_3279_; lean_object* v___y_3280_; uint8_t v___y_3281_; lean_object* v___y_3282_; lean_object* v___y_3283_; lean_object* v___y_3284_; uint8_t v___y_3285_; lean_object* v___y_3286_; lean_object* v_host_3287_; lean_object* v_port_3288_; uint8_t v___y_3289_; lean_object* v___y_3290_; lean_object* v___y_3291_; lean_object* v___x_3301_; lean_object* v___y_3303_; uint8_t v___y_3304_; uint8_t v___y_3305_; lean_object* v___y_3306_; lean_object* v___y_3307_; lean_object* v___y_3308_; lean_object* v___y_3309_; lean_object* v___y_3310_; uint8_t v___y_3311_; lean_object* v___y_3312_; lean_object* v___y_3313_; uint8_t v___y_3314_; uint8_t v___y_3315_; lean_object* v___y_3316_; lean_object* v___y_3396_; uint8_t v___y_3397_; uint8_t v___y_3398_; uint8_t v___y_3399_; lean_object* v___y_3400_; lean_object* v___y_3401_; lean_object* v___y_3402_; lean_object* v___y_3403_; lean_object* v___y_3404_; lean_object* v___y_3405_; uint8_t v___y_3406_; lean_object* v___y_3407_; lean_object* v___y_3408_; uint8_t v___y_3457_; lean_object* v___y_3458_; lean_object* v___y_3459_; uint8_t v___y_3597_; lean_object* v___y_3598_; lean_object* v___y_3599_; lean_object* v___y_3600_; lean_object* v___y_3601_; uint8_t v___y_3633_; lean_object* v___y_3634_; lean_object* v___y_3635_; lean_object* v___y_3636_; lean_object* v___y_3637_; lean_object* v___y_3638_; lean_object* v___y_3639_; uint8_t v___y_3650_; lean_object* v___y_3651_; lean_object* v___y_3652_; lean_object* v___y_3653_; uint8_t v___y_3672_; lean_object* v___y_3673_; lean_object* v___y_3674_; lean_object* v___y_3675_; lean_object* v___y_3676_; lean_object* v___y_3677_; uint8_t v___y_3688_; lean_object* v___y_3689_; lean_object* v___y_3690_; lean_object* v___y_3691_; lean_object* v___y_3692_; uint8_t v___y_3703_; lean_object* v___y_3704_; lean_object* v___y_3705_; uint8_t v___y_3706_; uint8_t v___y_3721_; lean_object* v___y_3722_; lean_object* v___y_3723_; lean_object* v___y_3724_; lean_object* v___y_3725_; uint8_t v___y_3757_; lean_object* v___y_3758_; lean_object* v___y_3759_; lean_object* v___y_3760_; lean_object* v___y_3761_; lean_object* v___y_3762_; lean_object* v___y_3763_; uint8_t v___y_3774_; lean_object* v___y_3775_; uint8_t v___y_3776_; lean_object* v___y_3777_; lean_object* v___y_3778_; uint8_t v___y_3797_; lean_object* v___y_3798_; lean_object* v___y_3799_; uint8_t v___y_3800_; lean_object* v___y_3801_; lean_object* v___y_3802_; lean_object* v___y_3803_; uint8_t v___y_3814_; lean_object* v___y_3815_; lean_object* v___y_3816_; lean_object* v___y_3817_; lean_object* v___y_3818_; uint8_t v___y_3829_; lean_object* v___y_3830_; lean_object* v___y_3831_; uint8_t v___y_3850_; lean_object* v___y_3851_; lean_object* v___y_3852_; lean_object* v___y_3853_; lean_object* v___y_3854_; uint8_t v___y_3865_; lean_object* v___y_3866_; lean_object* v___y_3867_; uint8_t v___y_3886_; lean_object* v___y_3887_; lean_object* v___y_3888_; lean_object* v___y_3889_; lean_object* v___y_3890_; uint8_t v___y_3917_; lean_object* v___y_3918_; lean_object* v___y_3919_; uint8_t v___y_3945_; lean_object* v___y_3946_; lean_object* v_entries_3947_; lean_object* v_indexes_3948_; uint8_t v___y_3956_; lean_object* v___y_3957_; lean_object* v_entries_3958_; lean_object* v_indexes_3959_; uint8_t v___y_3967_; lean_object* v___y_3968_; lean_object* v___y_3969_; uint8_t v___y_4012_; uint8_t v___y_4013_; uint8_t v___y_4047_; uint8_t v___y_4048_; uint8_t v___y_4051_; -v_messageHead_2922_ = lean_ctor_get(v_reader_2895_, 2); -v_messageCount_2923_ = lean_ctor_get(v_reader_2895_, 3); -v_maxMessages_2924_ = lean_ctor_get(v_config_2897_, 0); -v_agentName_2925_ = lean_ctor_get(v_config_2897_, 3); -v___f_2926_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__0)); -v___x_3301_ = lean_unsigned_to_nat(1u); -if (v_keepAlive_2901_ == 0) +lean_object* v___x_2880_; lean_object* v___x_2881_; +v___x_2880_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_2880_, 0, v___y_2870_); +lean_ctor_set(v___x_2880_, 1, v___y_2879_); +lean_ctor_set(v___x_2880_, 2, v___y_2866_); +lean_ctor_set(v___x_2880_, 3, v___y_2869_); +lean_ctor_set(v___x_2880_, 4, v___y_2873_); +lean_ctor_set(v___x_2880_, 5, v___y_2864_); +lean_ctor_set_uint8(v___x_2880_, sizeof(void*)*6, v___y_2876_); +lean_ctor_set_uint8(v___x_2880_, sizeof(void*)*6 + 1, v___y_2874_); +lean_ctor_set_uint8(v___x_2880_, sizeof(void*)*6 + 2, v___y_2863_); +v___x_2881_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_2881_, 0, v___y_2871_); +lean_ctor_set(v___x_2881_, 1, v___x_2880_); +lean_ctor_set(v___x_2881_, 2, v___y_2867_); +lean_ctor_set(v___x_2881_, 3, v___y_2877_); +lean_ctor_set(v___x_2881_, 4, v___y_2872_); +lean_ctor_set(v___x_2881_, 5, v___y_2865_); +lean_ctor_set_uint8(v___x_2881_, sizeof(void*)*6, v___y_2875_); +lean_ctor_set_uint8(v___x_2881_, sizeof(void*)*6 + 1, v___y_2878_); +lean_ctor_set_uint8(v___x_2881_, sizeof(void*)*6 + 2, v___y_2868_); +return v___x_2881_; +} +v_resetjp_2891_: { -v___y_4051_ = v_keepAlive_2901_; -goto v___jp_4050_; +lean_object* v_messageHead_2894_; lean_object* v_messageCount_2895_; lean_object* v_maxMessages_2896_; lean_object* v_agentName_2897_; lean_object* v___f_2898_; uint8_t v___y_2900_; lean_object* v___y_2901_; lean_object* v___y_2902_; lean_object* v___y_2903_; lean_object* v___y_2904_; uint8_t v___y_2905_; lean_object* v___y_2906_; lean_object* v___y_2907_; lean_object* v___y_2908_; lean_object* v___y_2909_; lean_object* v___y_2910_; lean_object* v___y_2911_; lean_object* v___y_2912_; uint8_t v___y_2913_; lean_object* v___y_2914_; uint8_t v___y_2915_; uint8_t v___y_2916_; lean_object* v___y_2917_; uint8_t v___y_2918_; lean_object* v___y_2919_; uint8_t v___y_2942_; lean_object* v___y_2943_; lean_object* v___y_2944_; lean_object* v___y_2945_; lean_object* v___y_2946_; lean_object* v___y_2947_; uint8_t v___y_2948_; lean_object* v___y_2949_; lean_object* v___y_2950_; uint8_t v___y_2951_; lean_object* v___y_2952_; lean_object* v___y_2953_; lean_object* v___y_2954_; lean_object* v___y_2955_; lean_object* v___y_2956_; uint8_t v___y_2957_; lean_object* v___y_2958_; uint8_t v___y_2959_; uint8_t v___y_2960_; lean_object* v___y_2961_; uint8_t v___y_2962_; lean_object* v___y_2963_; lean_object* v___y_2964_; uint8_t v___y_2976_; lean_object* v___y_2977_; lean_object* v___y_2978_; lean_object* v___y_2979_; lean_object* v___y_2980_; lean_object* v___y_2981_; lean_object* v___y_2982_; uint8_t v___y_2983_; lean_object* v___y_2984_; lean_object* v___y_2985_; uint8_t v___y_2986_; lean_object* v___y_2987_; lean_object* v___y_2988_; lean_object* v___y_2989_; lean_object* v___y_2990_; uint8_t v___y_2991_; lean_object* v___y_2992_; lean_object* v___y_2993_; uint8_t v___y_2994_; uint8_t v___y_2995_; lean_object* v___y_2996_; lean_object* v___y_2997_; uint8_t v___y_2998_; lean_object* v___y_2999_; uint8_t v___y_3013_; lean_object* v___y_3014_; lean_object* v___y_3015_; lean_object* v___y_3016_; lean_object* v___y_3017_; uint8_t v___y_3018_; uint8_t v___y_3019_; uint8_t v___y_3020_; lean_object* v___y_3021_; lean_object* v___y_3022_; lean_object* v___y_3023_; lean_object* v___y_3024_; lean_object* v___y_3025_; lean_object* v___y_3026_; uint8_t v___y_3027_; lean_object* v___y_3028_; lean_object* v___y_3029_; lean_object* v___y_3030_; lean_object* v___y_3031_; lean_object* v___y_3032_; uint8_t v___y_3033_; lean_object* v___y_3034_; lean_object* v___y_3035_; lean_object* v___y_3036_; lean_object* v___y_3037_; uint8_t v___y_3038_; lean_object* v___y_3039_; uint8_t v___y_3047_; lean_object* v___y_3048_; lean_object* v___y_3049_; lean_object* v___y_3050_; lean_object* v___y_3051_; lean_object* v___y_3052_; uint8_t v___y_3053_; uint8_t v___y_3054_; uint8_t v___y_3055_; lean_object* v___y_3056_; lean_object* v___y_3057_; lean_object* v___y_3058_; lean_object* v___y_3059_; lean_object* v___y_3060_; uint8_t v___y_3061_; lean_object* v___y_3062_; lean_object* v___y_3063_; lean_object* v___y_3064_; lean_object* v___y_3065_; lean_object* v___y_3066_; uint8_t v___y_3067_; lean_object* v___y_3068_; lean_object* v___y_3069_; lean_object* v___y_3070_; lean_object* v___y_3071_; uint8_t v___y_3072_; lean_object* v___y_3073_; uint8_t v___y_3081_; lean_object* v___y_3082_; lean_object* v___y_3083_; lean_object* v___y_3084_; lean_object* v___y_3085_; lean_object* v___y_3086_; lean_object* v___y_3087_; uint8_t v___y_3088_; uint8_t v___y_3089_; uint8_t v___y_3090_; lean_object* v___y_3091_; lean_object* v___y_3092_; lean_object* v___y_3093_; lean_object* v___y_3094_; lean_object* v___y_3095_; uint8_t v___y_3096_; lean_object* v___y_3097_; lean_object* v___y_3098_; lean_object* v___y_3099_; lean_object* v___y_3100_; lean_object* v___y_3101_; uint8_t v___y_3102_; lean_object* v___y_3103_; lean_object* v___y_3104_; lean_object* v___y_3105_; uint8_t v___y_3106_; lean_object* v___y_3107_; uint8_t v___y_3120_; lean_object* v___y_3121_; lean_object* v___y_3122_; lean_object* v___y_3123_; lean_object* v___y_3124_; lean_object* v___y_3125_; lean_object* v___y_3126_; lean_object* v___y_3127_; uint8_t v___y_3128_; uint8_t v___y_3129_; uint8_t v___y_3130_; lean_object* v___y_3131_; lean_object* v___y_3132_; lean_object* v___y_3133_; lean_object* v___y_3134_; lean_object* v___y_3135_; uint8_t v___y_3136_; lean_object* v___y_3137_; lean_object* v___y_3138_; lean_object* v___y_3139_; lean_object* v___y_3140_; lean_object* v___y_3141_; uint8_t v___y_3142_; lean_object* v___y_3143_; lean_object* v___y_3144_; uint8_t v___y_3145_; lean_object* v___y_3146_; uint8_t v___y_3157_; lean_object* v___y_3158_; lean_object* v___y_3159_; lean_object* v___y_3160_; lean_object* v___y_3161_; lean_object* v___y_3162_; lean_object* v___y_3163_; lean_object* v___y_3164_; lean_object* v___y_3165_; lean_object* v___y_3166_; uint8_t v___y_3167_; uint8_t v___y_3168_; uint8_t v___y_3169_; lean_object* v___y_3170_; lean_object* v___y_3171_; lean_object* v___y_3172_; lean_object* v___y_3173_; lean_object* v___y_3174_; lean_object* v___y_3175_; uint8_t v___y_3176_; lean_object* v___y_3177_; lean_object* v___y_3178_; lean_object* v___y_3179_; lean_object* v___y_3180_; uint8_t v___y_3181_; lean_object* v___y_3182_; lean_object* v___y_3183_; uint8_t v___y_3184_; lean_object* v___y_3185_; lean_object* v___y_3186_; uint8_t v___y_3191_; lean_object* v___y_3192_; lean_object* v___y_3193_; lean_object* v___y_3194_; lean_object* v_port_3195_; lean_object* v___y_3196_; lean_object* v___y_3197_; lean_object* v___y_3198_; lean_object* v___y_3199_; lean_object* v___y_3200_; lean_object* v___y_3201_; uint8_t v___y_3202_; uint8_t v___y_3203_; uint8_t v___y_3204_; lean_object* v___y_3205_; lean_object* v___y_3206_; lean_object* v___y_3207_; lean_object* v___y_3208_; lean_object* v___y_3209_; uint8_t v___y_3210_; lean_object* v___y_3211_; lean_object* v___y_3212_; lean_object* v___y_3213_; lean_object* v___y_3214_; uint8_t v___y_3215_; lean_object* v___y_3216_; lean_object* v___y_3217_; lean_object* v___y_3218_; uint8_t v___y_3219_; lean_object* v___y_3220_; uint8_t v___y_3229_; lean_object* v___y_3230_; lean_object* v___y_3231_; lean_object* v___y_3232_; lean_object* v_host_3233_; lean_object* v_port_3234_; lean_object* v___y_3235_; lean_object* v___y_3236_; lean_object* v___y_3237_; lean_object* v___y_3238_; lean_object* v___y_3239_; uint8_t v___y_3240_; uint8_t v___y_3241_; uint8_t v___y_3242_; lean_object* v___y_3243_; lean_object* v___y_3244_; lean_object* v___y_3245_; lean_object* v___y_3246_; lean_object* v___y_3247_; uint8_t v___y_3248_; lean_object* v___y_3249_; lean_object* v___y_3250_; lean_object* v___y_3251_; lean_object* v___y_3252_; uint8_t v___y_3253_; lean_object* v___y_3254_; lean_object* v___y_3255_; uint8_t v___y_3256_; lean_object* v___y_3257_; lean_object* v___y_3258_; uint8_t v___y_3269_; lean_object* v___y_3270_; lean_object* v___y_3271_; lean_object* v___y_3272_; lean_object* v___y_3273_; lean_object* v___y_3274_; lean_object* v___y_3275_; lean_object* v___y_3276_; uint8_t v___y_3277_; lean_object* v___y_3278_; lean_object* v___y_3279_; lean_object* v___y_3280_; uint8_t v___y_3281_; lean_object* v___y_3282_; lean_object* v___y_3283_; lean_object* v___y_3284_; uint8_t v___y_3285_; lean_object* v___y_3286_; lean_object* v___y_3287_; uint8_t v___y_3288_; uint8_t v___y_3289_; lean_object* v___y_3290_; lean_object* v___y_3291_; uint8_t v___y_3292_; lean_object* v___y_3293_; uint8_t v___y_3297_; lean_object* v___y_3298_; lean_object* v___y_3299_; lean_object* v___y_3300_; lean_object* v___y_3301_; lean_object* v_port_3302_; lean_object* v___y_3303_; lean_object* v___y_3304_; uint8_t v___y_3305_; lean_object* v___y_3306_; lean_object* v___y_3307_; lean_object* v___y_3308_; uint8_t v___y_3309_; lean_object* v___y_3310_; lean_object* v___y_3311_; lean_object* v___y_3312_; lean_object* v___y_3313_; uint8_t v___y_3314_; lean_object* v___y_3315_; uint8_t v___y_3316_; uint8_t v___y_3317_; lean_object* v___y_3318_; uint8_t v___y_3319_; lean_object* v___y_3320_; lean_object* v___y_3321_; uint8_t v___y_3330_; lean_object* v___y_3331_; lean_object* v___y_3332_; lean_object* v___y_3333_; lean_object* v_host_3334_; lean_object* v_port_3335_; lean_object* v___y_3336_; lean_object* v___y_3337_; uint8_t v___y_3338_; lean_object* v___y_3339_; lean_object* v___y_3340_; lean_object* v___y_3341_; uint8_t v___y_3342_; lean_object* v___y_3343_; lean_object* v___y_3344_; lean_object* v___y_3345_; uint8_t v___y_3346_; lean_object* v___y_3347_; lean_object* v___y_3348_; uint8_t v___y_3349_; uint8_t v___y_3350_; lean_object* v___y_3351_; lean_object* v___y_3352_; uint8_t v___y_3353_; lean_object* v___y_3354_; lean_object* v___x_3364_; uint8_t v___y_3366_; lean_object* v___y_3367_; lean_object* v___y_3368_; lean_object* v___y_3369_; lean_object* v___y_3370_; lean_object* v___y_3371_; uint8_t v___y_3372_; lean_object* v___y_3373_; lean_object* v___y_3374_; lean_object* v___y_3375_; lean_object* v___y_3376_; lean_object* v___y_3377_; uint8_t v___y_3378_; lean_object* v___y_3379_; uint8_t v___y_3380_; uint8_t v___y_3381_; lean_object* v___y_3382_; lean_object* v___y_3383_; uint8_t v___y_3384_; lean_object* v___y_3385_; uint8_t v___y_3434_; lean_object* v___y_3435_; lean_object* v___y_3436_; lean_object* v___y_3437_; lean_object* v___y_3438_; lean_object* v___y_3439_; uint8_t v___y_3440_; lean_object* v___y_3441_; lean_object* v___y_3442_; uint8_t v___y_3443_; lean_object* v___y_3444_; lean_object* v___y_3445_; lean_object* v___y_3446_; uint8_t v___y_3447_; lean_object* v___y_3448_; uint8_t v___y_3449_; uint8_t v___y_3450_; lean_object* v___y_3451_; lean_object* v___y_3452_; uint8_t v___y_3453_; lean_object* v___y_3454_; lean_object* v_reader_3534_; lean_object* v_writer_3535_; lean_object* v_config_3536_; lean_object* v_events_3537_; lean_object* v_error_3538_; lean_object* v_instant_3539_; uint8_t v_keepAlive_3540_; uint8_t v_forcedFlush_3541_; uint8_t v_pullBodyStalled_3542_; lean_object* v___y_3543_; lean_object* v___y_3544_; lean_object* v___y_4001_; lean_object* v___y_4002_; lean_object* v___y_4003_; lean_object* v___y_4014_; lean_object* v___y_4015_; lean_object* v___y_4031_; lean_object* v_n_4032_; lean_object* v___y_4033_; lean_object* v___y_4036_; lean_object* v___y_4037_; lean_object* v___y_4038_; lean_object* v___y_4039_; lean_object* v___y_4040_; lean_object* v___y_4072_; lean_object* v___y_4073_; lean_object* v___y_4074_; lean_object* v___y_4075_; lean_object* v___y_4076_; lean_object* v___y_4077_; lean_object* v___y_4078_; lean_object* v___y_4089_; lean_object* v___y_4090_; lean_object* v___y_4091_; lean_object* v___y_4092_; lean_object* v___y_4111_; lean_object* v___y_4112_; lean_object* v___y_4113_; lean_object* v___y_4114_; lean_object* v___y_4115_; lean_object* v___y_4116_; lean_object* v___y_4127_; lean_object* v___y_4128_; lean_object* v___y_4129_; lean_object* v___y_4130_; lean_object* v___y_4131_; lean_object* v___y_4163_; lean_object* v___y_4164_; lean_object* v___y_4165_; lean_object* v___y_4166_; lean_object* v___y_4167_; lean_object* v___y_4168_; lean_object* v___y_4169_; lean_object* v___y_4180_; lean_object* v___y_4181_; lean_object* v___y_4182_; lean_object* v___y_4183_; lean_object* v___y_4202_; lean_object* v___y_4203_; lean_object* v___y_4204_; lean_object* v___y_4205_; lean_object* v___y_4206_; lean_object* v___y_4207_; lean_object* v___y_4218_; lean_object* v___y_4219_; lean_object* v___y_4220_; lean_object* v___y_4223_; lean_object* v___y_4224_; lean_object* v___y_4225_; lean_object* v___y_4226_; lean_object* v___y_4227_; lean_object* v___y_4238_; lean_object* v___y_4239_; lean_object* v___y_4240_; lean_object* v___y_4259_; lean_object* v___y_4260_; lean_object* v___y_4261_; lean_object* v___y_4262_; lean_object* v___y_4263_; lean_object* v___y_4274_; lean_object* v___y_4275_; lean_object* v___y_4276_; lean_object* v___y_4295_; lean_object* v___y_4296_; lean_object* v___y_4297_; lean_object* v___y_4298_; lean_object* v___y_4299_; lean_object* v___y_4310_; lean_object* v___y_4311_; lean_object* v___y_4312_; lean_object* v___y_4331_; lean_object* v___y_4332_; lean_object* v___y_4333_; lean_object* v___y_4334_; lean_object* v___y_4335_; lean_object* v___y_4346_; lean_object* v___y_4347_; lean_object* v___y_4348_; uint8_t v___y_4349_; lean_object* v___y_4385_; lean_object* v___y_4386_; lean_object* v___y_4387_; lean_object* v___y_4388_; lean_object* v___y_4389_; lean_object* v___y_4400_; lean_object* v___y_4401_; lean_object* v___y_4402_; lean_object* v___y_4428_; lean_object* v___y_4429_; lean_object* v___y_4430_; lean_object* v___y_4431_; lean_object* v___y_4467_; lean_object* v___y_4468_; lean_object* v___y_4469_; lean_object* v___y_4470_; lean_object* v___y_4471_; lean_object* v___y_4472_; lean_object* v___y_4483_; lean_object* v___y_4484_; lean_object* v___y_4485_; lean_object* v___y_4504_; uint8_t v___y_4505_; lean_object* v___y_4506_; lean_object* v_agentName_4507_; uint8_t v___y_4546_; uint8_t v___y_4547_; uint8_t v___y_4556_; uint8_t v___y_4557_; uint8_t v___y_4560_; +v_messageHead_2894_ = lean_ctor_get(v_reader_2882_, 2); +lean_inc(v_messageHead_2894_); +v_messageCount_2895_ = lean_ctor_get(v_reader_2882_, 3); +v_maxMessages_2896_ = lean_ctor_get(v_config_2883_, 0); +v_agentName_2897_ = lean_ctor_get(v_config_2883_, 3); +lean_inc(v_agentName_2897_); +v___f_2898_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__0)); +v___x_3364_ = lean_unsigned_to_nat(1u); +if (v_keepAlive_2888_ == 0) +{ +v___y_4560_ = v_keepAlive_2888_; +goto v___jp_4559_; } else { -lean_object* v___x_4054_; uint8_t v___x_4055_; -v___x_4054_ = lean_nat_add(v_messageCount_2923_, v___x_3301_); -v___x_4055_ = lean_nat_dec_lt(v___x_4054_, v_maxMessages_2924_); -lean_dec(v___x_4054_); -v___y_4051_ = v___x_4055_; -goto v___jp_4050_; +lean_object* v___x_4563_; uint8_t v___x_4564_; +v___x_4563_ = lean_nat_add(v_messageCount_2895_, v___x_3364_); +v___x_4564_ = lean_nat_dec_lt(v___x_4563_, v_maxMessages_2896_); +lean_dec(v___x_4563_); +v___y_4560_ = v___x_4564_; +goto v___jp_4559_; } -v___jp_2907_: +v___jp_2899_: { -lean_object* v___x_2918_; lean_object* v___x_2920_; -v___x_2918_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_2918_, 0, v___y_2916_); -lean_ctor_set(v___x_2918_, 1, v___y_2917_); -lean_ctor_set(v___x_2918_, 2, v___y_2909_); -lean_ctor_set(v___x_2918_, 3, v___y_2915_); -lean_ctor_set(v___x_2918_, 4, v___y_2913_); -lean_ctor_set(v___x_2918_, 5, v___y_2910_); -lean_ctor_set_uint8(v___x_2918_, sizeof(void*)*6, v___y_2912_); -lean_ctor_set_uint8(v___x_2918_, sizeof(void*)*6 + 1, v___y_2914_); -lean_ctor_set_uint8(v___x_2918_, sizeof(void*)*6 + 2, v___y_2911_); -if (v_isShared_2906_ == 0) +lean_object* v___x_2920_; lean_object* v___x_2921_; lean_object* v___x_2922_; lean_object* v___x_2923_; lean_object* v___x_2924_; lean_object* v___x_2925_; lean_object* v___x_2926_; lean_object* v___x_2927_; lean_object* v_buffer_2928_; lean_object* v_buffer_2929_; lean_object* v_data_2930_; lean_object* v_size_2931_; lean_object* v___x_2933_; uint8_t v_isShared_2934_; uint8_t v_isSharedCheck_2940_; +v___x_2920_ = lean_string_to_utf8(v___y_2919_); +lean_inc_ref(v___x_2920_); +v___x_2921_ = lean_array_push(v___y_2907_, v___x_2920_); +v___x_2922_ = lean_byte_array_size(v___x_2920_); +lean_dec_ref(v___x_2920_); +v___x_2923_ = lean_nat_add(v___y_2908_, v___x_2922_); +lean_dec(v___y_2908_); +v___x_2924_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); +v___x_2925_ = lean_array_push(v___x_2921_, v___x_2924_); +v___x_2926_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); +v___x_2927_ = lean_nat_add(v___x_2923_, v___x_2926_); +lean_dec(v___x_2923_); +v_buffer_2928_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_buffer_2928_, 0, v___x_2925_); +lean_ctor_set(v_buffer_2928_, 1, v___x_2927_); +v_buffer_2929_ = l_Std_Http_Headers_fold___redArg(v___y_2906_, v_buffer_2928_, v___f_2898_); +lean_dec_ref(v___y_2906_); +v_data_2930_ = lean_ctor_get(v_buffer_2929_, 0); +v_size_2931_ = lean_ctor_get(v_buffer_2929_, 1); +v_isSharedCheck_2940_ = !lean_is_exclusive(v_buffer_2929_); +if (v_isSharedCheck_2940_ == 0) { -lean_ctor_set(v___x_2905_, 1, v___x_2918_); -v___x_2920_ = v___x_2905_; -goto v_reusejp_2919_; +v___x_2933_ = v_buffer_2929_; +v_isShared_2934_ = v_isSharedCheck_2940_; +goto v_resetjp_2932_; } else { -lean_object* v_reuseFailAlloc_2921_; -v_reuseFailAlloc_2921_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_2921_, 0, v_reader_2895_); -lean_ctor_set(v_reuseFailAlloc_2921_, 1, v___x_2918_); -lean_ctor_set(v_reuseFailAlloc_2921_, 2, v_config_2897_); -lean_ctor_set(v_reuseFailAlloc_2921_, 3, v_events_2898_); -lean_ctor_set(v_reuseFailAlloc_2921_, 4, v_error_2899_); -lean_ctor_set(v_reuseFailAlloc_2921_, 5, v_instant_2900_); -lean_ctor_set_uint8(v_reuseFailAlloc_2921_, sizeof(void*)*6 + 1, v_forcedFlush_2902_); -lean_ctor_set_uint8(v_reuseFailAlloc_2921_, sizeof(void*)*6 + 2, v_pullBodyStalled_2903_); -v___x_2920_ = v_reuseFailAlloc_2921_; -goto v_reusejp_2919_; +lean_inc(v_size_2931_); +lean_inc(v_data_2930_); +lean_dec(v_buffer_2929_); +v___x_2933_ = lean_box(0); +v_isShared_2934_ = v_isSharedCheck_2940_; +goto v_resetjp_2932_; } -v_reusejp_2919_: +v_resetjp_2932_: { -lean_ctor_set_uint8(v___x_2920_, sizeof(void*)*6, v___y_2908_); -return v___x_2920_; -} -} -v___jp_2927_: +lean_object* v___x_2935_; lean_object* v___x_2936_; lean_object* v___x_2938_; +v___x_2935_ = lean_array_push(v_data_2930_, v___x_2924_); +v___x_2936_ = lean_nat_add(v_size_2931_, v___x_2926_); +lean_dec(v_size_2931_); +if (v_isShared_2934_ == 0) { -lean_object* v___x_2941_; lean_object* v___x_2942_; lean_object* v___x_2943_; lean_object* v___x_2944_; lean_object* v___x_2945_; lean_object* v___x_2946_; lean_object* v___x_2947_; lean_object* v___x_2948_; lean_object* v_buffer_2949_; lean_object* v_buffer_2950_; lean_object* v_data_2951_; lean_object* v_size_2952_; lean_object* v___x_2954_; uint8_t v_isShared_2955_; uint8_t v_isSharedCheck_2961_; -v___x_2941_ = lean_string_to_utf8(v___y_2940_); -lean_inc_ref(v___x_2941_); -v___x_2942_ = lean_array_push(v___y_2936_, v___x_2941_); -v___x_2943_ = lean_byte_array_size(v___x_2941_); -lean_dec_ref(v___x_2941_); -v___x_2944_ = lean_nat_add(v___y_2935_, v___x_2943_); -lean_dec(v___y_2935_); -v___x_2945_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); -v___x_2946_ = lean_array_push(v___x_2942_, v___x_2945_); -v___x_2947_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); -v___x_2948_ = lean_nat_add(v___x_2944_, v___x_2947_); -lean_dec(v___x_2944_); -v_buffer_2949_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_buffer_2949_, 0, v___x_2946_); -lean_ctor_set(v_buffer_2949_, 1, v___x_2948_); -v_buffer_2950_ = l_Std_Http_Headers_fold___redArg(v___y_2933_, v_buffer_2949_, v___f_2926_); -lean_dec_ref(v___y_2933_); -v_data_2951_ = lean_ctor_get(v_buffer_2950_, 0); -v_size_2952_ = lean_ctor_get(v_buffer_2950_, 1); -v_isSharedCheck_2961_ = !lean_is_exclusive(v_buffer_2950_); -if (v_isSharedCheck_2961_ == 0) -{ -v___x_2954_ = v_buffer_2950_; -v_isShared_2955_ = v_isSharedCheck_2961_; -goto v_resetjp_2953_; +lean_ctor_set(v___x_2933_, 1, v___x_2936_); +lean_ctor_set(v___x_2933_, 0, v___x_2935_); +v___x_2938_ = v___x_2933_; +goto v_reusejp_2937_; } else { -lean_inc(v_size_2952_); -lean_inc(v_data_2951_); -lean_dec(v_buffer_2950_); -v___x_2954_ = lean_box(0); -v_isShared_2955_ = v_isSharedCheck_2961_; -goto v_resetjp_2953_; +lean_object* v_reuseFailAlloc_2939_; +v_reuseFailAlloc_2939_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2939_, 0, v___x_2935_); +lean_ctor_set(v_reuseFailAlloc_2939_, 1, v___x_2936_); +v___x_2938_ = v_reuseFailAlloc_2939_; +goto v_reusejp_2937_; } -v_resetjp_2953_: +v_reusejp_2937_: { -lean_object* v___x_2956_; lean_object* v___x_2957_; lean_object* v___x_2959_; -v___x_2956_ = lean_array_push(v_data_2951_, v___x_2945_); -v___x_2957_ = lean_nat_add(v_size_2952_, v___x_2947_); -lean_dec(v_size_2952_); -if (v_isShared_2955_ == 0) +v___y_2863_ = v___y_2900_; +v___y_2864_ = v___y_2901_; +v___y_2865_ = v___y_2902_; +v___y_2866_ = v___y_2903_; +v___y_2867_ = v___y_2904_; +v___y_2868_ = v___y_2905_; +v___y_2869_ = v___y_2909_; +v___y_2870_ = v___y_2910_; +v___y_2871_ = v___y_2911_; +v___y_2872_ = v___y_2912_; +v___y_2873_ = v___y_2914_; +v___y_2874_ = v___y_2913_; +v___y_2875_ = v___y_2915_; +v___y_2876_ = v___y_2916_; +v___y_2877_ = v___y_2917_; +v___y_2878_ = v___y_2918_; +v___y_2879_ = v___x_2938_; +goto v___jp_2862_; +} +} +} +v___jp_2941_: { -lean_ctor_set(v___x_2954_, 1, v___x_2957_); -lean_ctor_set(v___x_2954_, 0, v___x_2956_); -v___x_2959_ = v___x_2954_; -goto v_reusejp_2958_; -} -else -{ -lean_object* v_reuseFailAlloc_2960_; -v_reuseFailAlloc_2960_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_2960_, 0, v___x_2956_); -lean_ctor_set(v_reuseFailAlloc_2960_, 1, v___x_2957_); -v___x_2959_ = v_reuseFailAlloc_2960_; -goto v_reusejp_2958_; -} -v_reusejp_2958_: -{ -v___y_2908_ = v___y_2929_; -v___y_2909_ = v___y_2928_; -v___y_2910_ = v___y_2932_; -v___y_2911_ = v___y_2931_; -v___y_2912_ = v___y_2930_; -v___y_2913_ = v___y_2934_; -v___y_2914_ = v___y_2938_; -v___y_2915_ = v___y_2937_; -v___y_2916_ = v___y_2939_; -v___y_2917_ = v___x_2959_; -goto v___jp_2907_; -} -} -} -v___jp_2962_: -{ -lean_object* v___x_2979_; lean_object* v___x_2980_; lean_object* v___x_2981_; lean_object* v___x_2982_; lean_object* v___x_2983_; lean_object* v___x_2984_; -v___x_2979_ = lean_string_to_utf8(v___y_2978_); -lean_dec_ref(v___y_2978_); -lean_inc_ref(v___x_2979_); -v___x_2980_ = lean_array_push(v___y_2977_, v___x_2979_); -v___x_2981_ = lean_byte_array_size(v___x_2979_); -lean_dec_ref(v___x_2979_); -v___x_2982_ = lean_nat_add(v___y_2975_, v___x_2981_); -lean_dec(v___y_2975_); -v___x_2983_ = lean_array_push(v___x_2980_, v___y_2972_); -v___x_2984_ = lean_nat_add(v___x_2982_, v___y_2973_); -lean_dec(v___x_2982_); -switch(v___y_2976_) +lean_object* v___x_2965_; lean_object* v___x_2966_; lean_object* v___x_2967_; lean_object* v___x_2968_; lean_object* v___x_2969_; lean_object* v___x_2970_; +v___x_2965_ = lean_string_to_utf8(v___y_2964_); +lean_dec_ref(v___y_2964_); +lean_inc_ref(v___x_2965_); +v___x_2966_ = lean_array_push(v___y_2952_, v___x_2965_); +v___x_2967_ = lean_byte_array_size(v___x_2965_); +lean_dec_ref(v___x_2965_); +v___x_2968_ = lean_nat_add(v___y_2963_, v___x_2967_); +lean_dec(v___y_2963_); +v___x_2969_ = lean_array_push(v___x_2966_, v___y_2958_); +v___x_2970_ = lean_nat_add(v___x_2968_, v___y_2944_); +lean_dec(v___x_2968_); +switch(v___y_2951_) { case 0: { -lean_object* v___x_2985_; -v___x_2985_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__3)); -v___y_2928_ = v___y_2963_; -v___y_2929_ = v___y_2964_; -v___y_2930_ = v___y_2974_; -v___y_2931_ = v___y_2965_; -v___y_2932_ = v___y_2966_; -v___y_2933_ = v___y_2967_; -v___y_2934_ = v___y_2968_; -v___y_2935_ = v___x_2984_; -v___y_2936_ = v___x_2983_; -v___y_2937_ = v___y_2969_; -v___y_2938_ = v___y_2970_; -v___y_2939_ = v___y_2971_; -v___y_2940_ = v___x_2985_; -goto v___jp_2927_; +lean_object* v___x_2971_; +v___x_2971_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__3)); +v___y_2900_ = v___y_2942_; +v___y_2901_ = v___y_2943_; +v___y_2902_ = v___y_2945_; +v___y_2903_ = v___y_2946_; +v___y_2904_ = v___y_2947_; +v___y_2905_ = v___y_2948_; +v___y_2906_ = v___y_2949_; +v___y_2907_ = v___x_2969_; +v___y_2908_ = v___x_2970_; +v___y_2909_ = v___y_2950_; +v___y_2910_ = v___y_2953_; +v___y_2911_ = v___y_2955_; +v___y_2912_ = v___y_2954_; +v___y_2913_ = v___y_2957_; +v___y_2914_ = v___y_2956_; +v___y_2915_ = v___y_2959_; +v___y_2916_ = v___y_2960_; +v___y_2917_ = v___y_2961_; +v___y_2918_ = v___y_2962_; +v___y_2919_ = v___x_2971_; +goto v___jp_2899_; } case 1: { -lean_object* v___x_2986_; -v___x_2986_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); -v___y_2928_ = v___y_2963_; -v___y_2929_ = v___y_2964_; -v___y_2930_ = v___y_2974_; -v___y_2931_ = v___y_2965_; -v___y_2932_ = v___y_2966_; -v___y_2933_ = v___y_2967_; -v___y_2934_ = v___y_2968_; -v___y_2935_ = v___x_2984_; -v___y_2936_ = v___x_2983_; -v___y_2937_ = v___y_2969_; -v___y_2938_ = v___y_2970_; -v___y_2939_ = v___y_2971_; -v___y_2940_ = v___x_2986_; -goto v___jp_2927_; +lean_object* v___x_2972_; +v___x_2972_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); +v___y_2900_ = v___y_2942_; +v___y_2901_ = v___y_2943_; +v___y_2902_ = v___y_2945_; +v___y_2903_ = v___y_2946_; +v___y_2904_ = v___y_2947_; +v___y_2905_ = v___y_2948_; +v___y_2906_ = v___y_2949_; +v___y_2907_ = v___x_2969_; +v___y_2908_ = v___x_2970_; +v___y_2909_ = v___y_2950_; +v___y_2910_ = v___y_2953_; +v___y_2911_ = v___y_2955_; +v___y_2912_ = v___y_2954_; +v___y_2913_ = v___y_2957_; +v___y_2914_ = v___y_2956_; +v___y_2915_ = v___y_2959_; +v___y_2916_ = v___y_2960_; +v___y_2917_ = v___y_2961_; +v___y_2918_ = v___y_2962_; +v___y_2919_ = v___x_2972_; +goto v___jp_2899_; } case 2: { -lean_object* v___x_2987_; -v___x_2987_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__5)); -v___y_2928_ = v___y_2963_; -v___y_2929_ = v___y_2964_; -v___y_2930_ = v___y_2974_; -v___y_2931_ = v___y_2965_; -v___y_2932_ = v___y_2966_; -v___y_2933_ = v___y_2967_; -v___y_2934_ = v___y_2968_; -v___y_2935_ = v___x_2984_; -v___y_2936_ = v___x_2983_; -v___y_2937_ = v___y_2969_; -v___y_2938_ = v___y_2970_; -v___y_2939_ = v___y_2971_; -v___y_2940_ = v___x_2987_; -goto v___jp_2927_; +lean_object* v___x_2973_; +v___x_2973_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__5)); +v___y_2900_ = v___y_2942_; +v___y_2901_ = v___y_2943_; +v___y_2902_ = v___y_2945_; +v___y_2903_ = v___y_2946_; +v___y_2904_ = v___y_2947_; +v___y_2905_ = v___y_2948_; +v___y_2906_ = v___y_2949_; +v___y_2907_ = v___x_2969_; +v___y_2908_ = v___x_2970_; +v___y_2909_ = v___y_2950_; +v___y_2910_ = v___y_2953_; +v___y_2911_ = v___y_2955_; +v___y_2912_ = v___y_2954_; +v___y_2913_ = v___y_2957_; +v___y_2914_ = v___y_2956_; +v___y_2915_ = v___y_2959_; +v___y_2916_ = v___y_2960_; +v___y_2917_ = v___y_2961_; +v___y_2918_ = v___y_2962_; +v___y_2919_ = v___x_2973_; +goto v___jp_2899_; } default: { -lean_object* v___x_2988_; -v___x_2988_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__6)); -v___y_2928_ = v___y_2963_; -v___y_2929_ = v___y_2964_; -v___y_2930_ = v___y_2974_; -v___y_2931_ = v___y_2965_; -v___y_2932_ = v___y_2966_; -v___y_2933_ = v___y_2967_; -v___y_2934_ = v___y_2968_; -v___y_2935_ = v___x_2984_; -v___y_2936_ = v___x_2983_; -v___y_2937_ = v___y_2969_; -v___y_2938_ = v___y_2970_; -v___y_2939_ = v___y_2971_; -v___y_2940_ = v___x_2988_; -goto v___jp_2927_; +lean_object* v___x_2974_; +v___x_2974_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__6)); +v___y_2900_ = v___y_2942_; +v___y_2901_ = v___y_2943_; +v___y_2902_ = v___y_2945_; +v___y_2903_ = v___y_2946_; +v___y_2904_ = v___y_2947_; +v___y_2905_ = v___y_2948_; +v___y_2906_ = v___y_2949_; +v___y_2907_ = v___x_2969_; +v___y_2908_ = v___x_2970_; +v___y_2909_ = v___y_2950_; +v___y_2910_ = v___y_2953_; +v___y_2911_ = v___y_2955_; +v___y_2912_ = v___y_2954_; +v___y_2913_ = v___y_2957_; +v___y_2914_ = v___y_2956_; +v___y_2915_ = v___y_2959_; +v___y_2916_ = v___y_2960_; +v___y_2917_ = v___y_2961_; +v___y_2918_ = v___y_2962_; +v___y_2919_ = v___x_2974_; +goto v___jp_2899_; } } } -v___jp_2989_: +v___jp_2975_: { -if (lean_obj_tag(v___y_2998_) == 0) +if (lean_obj_tag(v___y_2978_) == 0) { -v___y_2963_ = v___y_2990_; -v___y_2964_ = v___y_2991_; -v___y_2965_ = v___y_2992_; -v___y_2966_ = v___y_2993_; -v___y_2967_ = v___y_2994_; -v___y_2968_ = v___y_2995_; -v___y_2969_ = v___y_2996_; -v___y_2970_ = v___y_2997_; -v___y_2971_ = v___y_2999_; -v___y_2972_ = v___y_3000_; -v___y_2973_ = v___y_3001_; -v___y_2974_ = v___y_3002_; -v___y_2975_ = v___y_3003_; -v___y_2976_ = v___y_3004_; -v___y_2977_ = v___y_3005_; -v___y_2978_ = v___y_3006_; -goto v___jp_2962_; +v___y_2942_ = v___y_2976_; +v___y_2943_ = v___y_2977_; +v___y_2944_ = v___y_2979_; +v___y_2945_ = v___y_2980_; +v___y_2946_ = v___y_2981_; +v___y_2947_ = v___y_2982_; +v___y_2948_ = v___y_2983_; +v___y_2949_ = v___y_2984_; +v___y_2950_ = v___y_2985_; +v___y_2951_ = v___y_2986_; +v___y_2952_ = v___y_2987_; +v___y_2953_ = v___y_2988_; +v___y_2954_ = v___y_2990_; +v___y_2955_ = v___y_2989_; +v___y_2956_ = v___y_2992_; +v___y_2957_ = v___y_2991_; +v___y_2958_ = v___y_2993_; +v___y_2959_ = v___y_2994_; +v___y_2960_ = v___y_2995_; +v___y_2961_ = v___y_2996_; +v___y_2962_ = v___y_2998_; +v___y_2963_ = v___y_2997_; +v___y_2964_ = v___y_2999_; +goto v___jp_2941_; } else { -lean_object* v_val_3007_; lean_object* v___x_3008_; lean_object* v___x_3009_; uint8_t v___x_3010_; -v_val_3007_ = lean_ctor_get(v___y_2998_, 0); -lean_inc(v_val_3007_); -lean_dec_ref(v___y_2998_); -v___x_3008_ = lean_array_get_size(v_val_3007_); -v___x_3009_ = lean_unsigned_to_nat(0u); -v___x_3010_ = lean_nat_dec_eq(v___x_3008_, v___x_3009_); -if (v___x_3010_ == 0) +lean_object* v_val_3000_; lean_object* v___x_3001_; lean_object* v___x_3002_; uint8_t v___x_3003_; +v_val_3000_ = lean_ctor_get(v___y_2978_, 0); +lean_inc(v_val_3000_); +lean_dec_ref(v___y_2978_); +v___x_3001_ = lean_array_get_size(v_val_3000_); +v___x_3002_ = lean_unsigned_to_nat(0u); +v___x_3003_ = lean_nat_dec_eq(v___x_3001_, v___x_3002_); +if (v___x_3003_ == 0) { -lean_object* v___x_3011_; lean_object* v___x_3012_; lean_object* v_encodedParams_3013_; lean_object* v___x_3014_; lean_object* v___x_3015_; lean_object* v___x_3016_; lean_object* v___x_3017_; lean_object* v___x_3018_; -v___x_3011_ = lean_array_to_list(v_val_3007_); -v___x_3012_ = lean_box(0); -v_encodedParams_3013_ = l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(v___x_3011_, v___x_3012_); -v___x_3014_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__7)); -v___x_3015_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__8)); -v___x_3016_ = l_String_intercalate(v___x_3015_, v_encodedParams_3013_); -v___x_3017_ = lean_string_append(v___x_3014_, v___x_3016_); -lean_dec_ref(v___x_3016_); -v___x_3018_ = lean_string_append(v___y_3006_, v___x_3017_); -lean_dec_ref(v___x_3017_); -v___y_2963_ = v___y_2990_; -v___y_2964_ = v___y_2991_; -v___y_2965_ = v___y_2992_; -v___y_2966_ = v___y_2993_; -v___y_2967_ = v___y_2994_; -v___y_2968_ = v___y_2995_; -v___y_2969_ = v___y_2996_; -v___y_2970_ = v___y_2997_; -v___y_2971_ = v___y_2999_; -v___y_2972_ = v___y_3000_; -v___y_2973_ = v___y_3001_; -v___y_2974_ = v___y_3002_; -v___y_2975_ = v___y_3003_; -v___y_2976_ = v___y_3004_; -v___y_2977_ = v___y_3005_; -v___y_2978_ = v___x_3018_; -goto v___jp_2962_; +lean_object* v___x_3004_; lean_object* v___x_3005_; lean_object* v_encodedParams_3006_; lean_object* v___x_3007_; lean_object* v___x_3008_; lean_object* v___x_3009_; lean_object* v___x_3010_; lean_object* v___x_3011_; +v___x_3004_ = lean_array_to_list(v_val_3000_); +v___x_3005_ = lean_box(0); +v_encodedParams_3006_ = l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(v___x_3004_, v___x_3005_); +v___x_3007_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__7)); +v___x_3008_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__8)); +v___x_3009_ = l_String_intercalate(v___x_3008_, v_encodedParams_3006_); +v___x_3010_ = lean_string_append(v___x_3007_, v___x_3009_); +lean_dec_ref(v___x_3009_); +v___x_3011_ = lean_string_append(v___y_2999_, v___x_3010_); +lean_dec_ref(v___x_3010_); +v___y_2942_ = v___y_2976_; +v___y_2943_ = v___y_2977_; +v___y_2944_ = v___y_2979_; +v___y_2945_ = v___y_2980_; +v___y_2946_ = v___y_2981_; +v___y_2947_ = v___y_2982_; +v___y_2948_ = v___y_2983_; +v___y_2949_ = v___y_2984_; +v___y_2950_ = v___y_2985_; +v___y_2951_ = v___y_2986_; +v___y_2952_ = v___y_2987_; +v___y_2953_ = v___y_2988_; +v___y_2954_ = v___y_2990_; +v___y_2955_ = v___y_2989_; +v___y_2956_ = v___y_2992_; +v___y_2957_ = v___y_2991_; +v___y_2958_ = v___y_2993_; +v___y_2959_ = v___y_2994_; +v___y_2960_ = v___y_2995_; +v___y_2961_ = v___y_2996_; +v___y_2962_ = v___y_2998_; +v___y_2963_ = v___y_2997_; +v___y_2964_ = v___x_3011_; +goto v___jp_2941_; } else { -lean_dec(v_val_3007_); -v___y_2963_ = v___y_2990_; -v___y_2964_ = v___y_2991_; -v___y_2965_ = v___y_2992_; -v___y_2966_ = v___y_2993_; -v___y_2967_ = v___y_2994_; -v___y_2968_ = v___y_2995_; -v___y_2969_ = v___y_2996_; -v___y_2970_ = v___y_2997_; -v___y_2971_ = v___y_2999_; -v___y_2972_ = v___y_3000_; -v___y_2973_ = v___y_3001_; -v___y_2974_ = v___y_3002_; -v___y_2975_ = v___y_3003_; -v___y_2976_ = v___y_3004_; -v___y_2977_ = v___y_3005_; -v___y_2978_ = v___y_3006_; -goto v___jp_2962_; +lean_dec(v_val_3000_); +v___y_2942_ = v___y_2976_; +v___y_2943_ = v___y_2977_; +v___y_2944_ = v___y_2979_; +v___y_2945_ = v___y_2980_; +v___y_2946_ = v___y_2981_; +v___y_2947_ = v___y_2982_; +v___y_2948_ = v___y_2983_; +v___y_2949_ = v___y_2984_; +v___y_2950_ = v___y_2985_; +v___y_2951_ = v___y_2986_; +v___y_2952_ = v___y_2987_; +v___y_2953_ = v___y_2988_; +v___y_2954_ = v___y_2990_; +v___y_2955_ = v___y_2989_; +v___y_2956_ = v___y_2992_; +v___y_2957_ = v___y_2991_; +v___y_2958_ = v___y_2993_; +v___y_2959_ = v___y_2994_; +v___y_2960_ = v___y_2995_; +v___y_2961_ = v___y_2996_; +v___y_2962_ = v___y_2998_; +v___y_2963_ = v___y_2997_; +v___y_2964_ = v___y_2999_; +goto v___jp_2941_; } } } -v___jp_3019_: +v___jp_3012_: { lean_object* v___x_3040_; lean_object* v___x_3041_; lean_object* v___x_3042_; lean_object* v___x_3043_; lean_object* v___x_3044_; lean_object* v___x_3045_; v___x_3040_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___x_3041_ = lean_string_append(v___y_3035_, v___x_3040_); -v___x_3042_ = lean_string_append(v___x_3041_, v___y_3025_); +v___x_3041_ = lean_string_append(v___y_3014_, v___x_3040_); +v___x_3042_ = lean_string_append(v___x_3041_, v___y_3034_); +lean_dec_ref(v___y_3034_); +v___x_3043_ = lean_string_append(v___x_3042_, v___y_3036_); +lean_dec_ref(v___y_3036_); +v___x_3044_ = lean_string_append(v___x_3043_, v___y_3025_); lean_dec_ref(v___y_3025_); -v___x_3043_ = lean_string_append(v___x_3042_, v___y_3029_); -lean_dec_ref(v___y_3029_); -v___x_3044_ = lean_string_append(v___x_3043_, v___y_3038_); -lean_dec_ref(v___y_3038_); v___x_3045_ = lean_string_append(v___x_3044_, v___y_3039_); lean_dec_ref(v___y_3039_); -v___y_2963_ = v___y_3020_; -v___y_2964_ = v___y_3021_; -v___y_2965_ = v___y_3022_; -v___y_2966_ = v___y_3023_; -v___y_2967_ = v___y_3024_; -v___y_2968_ = v___y_3026_; -v___y_2969_ = v___y_3027_; -v___y_2970_ = v___y_3028_; -v___y_2971_ = v___y_3030_; -v___y_2972_ = v___y_3031_; -v___y_2973_ = v___y_3032_; -v___y_2974_ = v___y_3033_; -v___y_2975_ = v___y_3034_; -v___y_2976_ = v___y_3036_; -v___y_2977_ = v___y_3037_; -v___y_2978_ = v___x_3045_; -goto v___jp_2962_; +v___y_2942_ = v___y_3013_; +v___y_2943_ = v___y_3022_; +v___y_2944_ = v___y_3023_; +v___y_2945_ = v___y_3024_; +v___y_2946_ = v___y_3026_; +v___y_2947_ = v___y_3015_; +v___y_2948_ = v___y_3027_; +v___y_2949_ = v___y_3016_; +v___y_2950_ = v___y_3017_; +v___y_2951_ = v___y_3018_; +v___y_2952_ = v___y_3028_; +v___y_2953_ = v___y_3029_; +v___y_2954_ = v___y_3030_; +v___y_2955_ = v___y_3031_; +v___y_2956_ = v___y_3032_; +v___y_2957_ = v___y_3033_; +v___y_2958_ = v___y_3035_; +v___y_2959_ = v___y_3019_; +v___y_2960_ = v___y_3020_; +v___y_2961_ = v___y_3021_; +v___y_2962_ = v___y_3038_; +v___y_2963_ = v___y_3037_; +v___y_2964_ = v___x_3045_; +goto v___jp_2941_; } v___jp_3046_: { -if (lean_obj_tag(v___y_3061_) == 0) +if (lean_obj_tag(v___y_3050_) == 0) { -lean_object* v___x_3067_; -v___x_3067_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3020_ = v___y_3047_; -v___y_3021_ = v___y_3048_; -v___y_3022_ = v___y_3049_; -v___y_3023_ = v___y_3050_; -v___y_3024_ = v___y_3051_; -v___y_3025_ = v___y_3052_; -v___y_3026_ = v___y_3053_; -v___y_3027_ = v___y_3054_; -v___y_3028_ = v___y_3055_; -v___y_3029_ = v___y_3056_; -v___y_3030_ = v___y_3057_; -v___y_3031_ = v___y_3058_; -v___y_3032_ = v___y_3059_; -v___y_3033_ = v___y_3060_; -v___y_3034_ = v___y_3062_; -v___y_3035_ = v___y_3063_; -v___y_3036_ = v___y_3064_; -v___y_3037_ = v___y_3065_; -v___y_3038_ = v___y_3066_; -v___y_3039_ = v___x_3067_; -goto v___jp_3019_; +lean_object* v___x_3074_; +v___x_3074_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3013_ = v___y_3047_; +v___y_3014_ = v___y_3048_; +v___y_3015_ = v___y_3049_; +v___y_3016_ = v___y_3051_; +v___y_3017_ = v___y_3052_; +v___y_3018_ = v___y_3053_; +v___y_3019_ = v___y_3054_; +v___y_3020_ = v___y_3055_; +v___y_3021_ = v___y_3056_; +v___y_3022_ = v___y_3057_; +v___y_3023_ = v___y_3058_; +v___y_3024_ = v___y_3059_; +v___y_3025_ = v___y_3073_; +v___y_3026_ = v___y_3060_; +v___y_3027_ = v___y_3061_; +v___y_3028_ = v___y_3062_; +v___y_3029_ = v___y_3063_; +v___y_3030_ = v___y_3064_; +v___y_3031_ = v___y_3065_; +v___y_3032_ = v___y_3066_; +v___y_3033_ = v___y_3067_; +v___y_3034_ = v___y_3068_; +v___y_3035_ = v___y_3069_; +v___y_3036_ = v___y_3070_; +v___y_3037_ = v___y_3071_; +v___y_3038_ = v___y_3072_; +v___y_3039_ = v___x_3074_; +goto v___jp_3012_; } else { -lean_object* v_val_3068_; lean_object* v___x_3069_; lean_object* v___x_3070_; lean_object* v___x_3071_; lean_object* v___x_3072_; -v_val_3068_ = lean_ctor_get(v___y_3061_, 0); -lean_inc(v_val_3068_); -lean_dec_ref(v___y_3061_); -v___x_3069_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__10)); -v___x_3070_ = l_Std_Http_URI_EncodedFragment_encode(v_val_3068_); -lean_dec(v_val_3068_); -v___x_3071_ = lean_string_from_utf8_unchecked(v___x_3070_); -v___x_3072_ = lean_string_append(v___x_3069_, v___x_3071_); -lean_dec_ref(v___x_3071_); -v___y_3020_ = v___y_3047_; -v___y_3021_ = v___y_3048_; -v___y_3022_ = v___y_3049_; -v___y_3023_ = v___y_3050_; -v___y_3024_ = v___y_3051_; -v___y_3025_ = v___y_3052_; -v___y_3026_ = v___y_3053_; -v___y_3027_ = v___y_3054_; -v___y_3028_ = v___y_3055_; -v___y_3029_ = v___y_3056_; -v___y_3030_ = v___y_3057_; -v___y_3031_ = v___y_3058_; -v___y_3032_ = v___y_3059_; -v___y_3033_ = v___y_3060_; -v___y_3034_ = v___y_3062_; -v___y_3035_ = v___y_3063_; -v___y_3036_ = v___y_3064_; -v___y_3037_ = v___y_3065_; -v___y_3038_ = v___y_3066_; -v___y_3039_ = v___x_3072_; -goto v___jp_3019_; +lean_object* v_val_3075_; lean_object* v___x_3076_; lean_object* v___x_3077_; lean_object* v___x_3078_; lean_object* v___x_3079_; +v_val_3075_ = lean_ctor_get(v___y_3050_, 0); +lean_inc(v_val_3075_); +lean_dec_ref(v___y_3050_); +v___x_3076_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__10)); +v___x_3077_ = l_Std_Http_URI_EncodedFragment_encode(v_val_3075_); +lean_dec(v_val_3075_); +v___x_3078_ = lean_string_from_utf8_unchecked(v___x_3077_); +v___x_3079_ = lean_string_append(v___x_3076_, v___x_3078_); +lean_dec_ref(v___x_3078_); +v___y_3013_ = v___y_3047_; +v___y_3014_ = v___y_3048_; +v___y_3015_ = v___y_3049_; +v___y_3016_ = v___y_3051_; +v___y_3017_ = v___y_3052_; +v___y_3018_ = v___y_3053_; +v___y_3019_ = v___y_3054_; +v___y_3020_ = v___y_3055_; +v___y_3021_ = v___y_3056_; +v___y_3022_ = v___y_3057_; +v___y_3023_ = v___y_3058_; +v___y_3024_ = v___y_3059_; +v___y_3025_ = v___y_3073_; +v___y_3026_ = v___y_3060_; +v___y_3027_ = v___y_3061_; +v___y_3028_ = v___y_3062_; +v___y_3029_ = v___y_3063_; +v___y_3030_ = v___y_3064_; +v___y_3031_ = v___y_3065_; +v___y_3032_ = v___y_3066_; +v___y_3033_ = v___y_3067_; +v___y_3034_ = v___y_3068_; +v___y_3035_ = v___y_3069_; +v___y_3036_ = v___y_3070_; +v___y_3037_ = v___y_3071_; +v___y_3038_ = v___y_3072_; +v___y_3039_ = v___x_3079_; +goto v___jp_3012_; } } -v___jp_3073_: +v___jp_3080_: { -lean_object* v___x_3094_; lean_object* v___x_3095_; uint8_t v___x_3096_; -v___x_3094_ = lean_array_get_size(v___y_3091_); -v___x_3095_ = lean_unsigned_to_nat(0u); -v___x_3096_ = lean_nat_dec_eq(v___x_3094_, v___x_3095_); -if (v___x_3096_ == 0) +lean_object* v___x_3108_; lean_object* v___x_3109_; uint8_t v___x_3110_; +v___x_3108_ = lean_array_get_size(v___y_3082_); +v___x_3109_ = lean_unsigned_to_nat(0u); +v___x_3110_ = lean_nat_dec_eq(v___x_3108_, v___x_3109_); +if (v___x_3110_ == 0) { -lean_object* v___x_3097_; lean_object* v___x_3098_; lean_object* v_encodedParams_3099_; lean_object* v___x_3100_; lean_object* v___x_3101_; lean_object* v___x_3102_; lean_object* v___x_3103_; -v___x_3097_ = lean_array_to_list(v___y_3091_); -v___x_3098_ = lean_box(0); -v_encodedParams_3099_ = l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(v___x_3097_, v___x_3098_); -v___x_3100_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__7)); -v___x_3101_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__8)); -v___x_3102_ = l_String_intercalate(v___x_3101_, v_encodedParams_3099_); -v___x_3103_ = lean_string_append(v___x_3100_, v___x_3102_); -lean_dec_ref(v___x_3102_); -v___y_3047_ = v___y_3074_; -v___y_3048_ = v___y_3075_; -v___y_3049_ = v___y_3076_; -v___y_3050_ = v___y_3077_; -v___y_3051_ = v___y_3078_; -v___y_3052_ = v___y_3079_; -v___y_3053_ = v___y_3080_; -v___y_3054_ = v___y_3081_; -v___y_3055_ = v___y_3082_; -v___y_3056_ = v___y_3093_; -v___y_3057_ = v___y_3083_; -v___y_3058_ = v___y_3084_; -v___y_3059_ = v___y_3085_; -v___y_3060_ = v___y_3086_; -v___y_3061_ = v___y_3088_; -v___y_3062_ = v___y_3087_; -v___y_3063_ = v___y_3089_; -v___y_3064_ = v___y_3090_; -v___y_3065_ = v___y_3092_; -v___y_3066_ = v___x_3103_; +lean_object* v___x_3111_; lean_object* v___x_3112_; lean_object* v_encodedParams_3113_; lean_object* v___x_3114_; lean_object* v___x_3115_; lean_object* v___x_3116_; lean_object* v___x_3117_; +v___x_3111_ = lean_array_to_list(v___y_3082_); +v___x_3112_ = lean_box(0); +v_encodedParams_3113_ = l_List_mapTR_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__2(v___x_3111_, v___x_3112_); +v___x_3114_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__7)); +v___x_3115_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__8)); +v___x_3116_ = l_String_intercalate(v___x_3115_, v_encodedParams_3113_); +v___x_3117_ = lean_string_append(v___x_3114_, v___x_3116_); +lean_dec_ref(v___x_3116_); +v___y_3047_ = v___y_3081_; +v___y_3048_ = v___y_3083_; +v___y_3049_ = v___y_3084_; +v___y_3050_ = v___y_3085_; +v___y_3051_ = v___y_3086_; +v___y_3052_ = v___y_3087_; +v___y_3053_ = v___y_3088_; +v___y_3054_ = v___y_3089_; +v___y_3055_ = v___y_3090_; +v___y_3056_ = v___y_3091_; +v___y_3057_ = v___y_3092_; +v___y_3058_ = v___y_3093_; +v___y_3059_ = v___y_3094_; +v___y_3060_ = v___y_3095_; +v___y_3061_ = v___y_3096_; +v___y_3062_ = v___y_3097_; +v___y_3063_ = v___y_3098_; +v___y_3064_ = v___y_3099_; +v___y_3065_ = v___y_3100_; +v___y_3066_ = v___y_3101_; +v___y_3067_ = v___y_3102_; +v___y_3068_ = v___y_3103_; +v___y_3069_ = v___y_3104_; +v___y_3070_ = v___y_3107_; +v___y_3071_ = v___y_3105_; +v___y_3072_ = v___y_3106_; +v___y_3073_ = v___x_3117_; goto v___jp_3046_; } else { -lean_object* v___x_3104_; -lean_dec_ref(v___y_3091_); -v___x_3104_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3047_ = v___y_3074_; -v___y_3048_ = v___y_3075_; -v___y_3049_ = v___y_3076_; -v___y_3050_ = v___y_3077_; -v___y_3051_ = v___y_3078_; -v___y_3052_ = v___y_3079_; -v___y_3053_ = v___y_3080_; -v___y_3054_ = v___y_3081_; -v___y_3055_ = v___y_3082_; -v___y_3056_ = v___y_3093_; -v___y_3057_ = v___y_3083_; -v___y_3058_ = v___y_3084_; -v___y_3059_ = v___y_3085_; -v___y_3060_ = v___y_3086_; -v___y_3061_ = v___y_3088_; -v___y_3062_ = v___y_3087_; -v___y_3063_ = v___y_3089_; -v___y_3064_ = v___y_3090_; -v___y_3065_ = v___y_3092_; -v___y_3066_ = v___x_3104_; +lean_object* v___x_3118_; +lean_dec_ref(v___y_3082_); +v___x_3118_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3047_ = v___y_3081_; +v___y_3048_ = v___y_3083_; +v___y_3049_ = v___y_3084_; +v___y_3050_ = v___y_3085_; +v___y_3051_ = v___y_3086_; +v___y_3052_ = v___y_3087_; +v___y_3053_ = v___y_3088_; +v___y_3054_ = v___y_3089_; +v___y_3055_ = v___y_3090_; +v___y_3056_ = v___y_3091_; +v___y_3057_ = v___y_3092_; +v___y_3058_ = v___y_3093_; +v___y_3059_ = v___y_3094_; +v___y_3060_ = v___y_3095_; +v___y_3061_ = v___y_3096_; +v___y_3062_ = v___y_3097_; +v___y_3063_ = v___y_3098_; +v___y_3064_ = v___y_3099_; +v___y_3065_ = v___y_3100_; +v___y_3066_ = v___y_3101_; +v___y_3067_ = v___y_3102_; +v___y_3068_ = v___y_3103_; +v___y_3069_ = v___y_3104_; +v___y_3070_ = v___y_3107_; +v___y_3071_ = v___y_3105_; +v___y_3072_ = v___y_3106_; +v___y_3073_ = v___x_3118_; goto v___jp_3046_; } } -v___jp_3105_: +v___jp_3119_: { -lean_object* v_segments_3126_; uint8_t v_absolute_3127_; lean_object* v___x_3128_; size_t v_sz_3129_; size_t v___x_3130_; lean_object* v___x_3131_; lean_object* v___x_3132_; lean_object* v_result_3133_; -v_segments_3126_ = lean_ctor_get(v___y_3115_, 0); -lean_inc_ref(v_segments_3126_); -v_absolute_3127_ = lean_ctor_get_uint8(v___y_3115_, sizeof(void*)*1); -lean_dec_ref(v___y_3115_); -v___x_3128_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__11)); -v_sz_3129_ = lean_array_size(v_segments_3126_); -v___x_3130_ = ((size_t)0ULL); -v___x_3131_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_3129_, v___x_3130_, v_segments_3126_); -v___x_3132_ = lean_array_to_list(v___x_3131_); -v_result_3133_ = l_String_intercalate(v___x_3128_, v___x_3132_); -if (v_absolute_3127_ == 0) +lean_object* v_segments_3147_; uint8_t v_absolute_3148_; lean_object* v___x_3149_; size_t v_sz_3150_; size_t v___x_3151_; lean_object* v___x_3152_; lean_object* v___x_3153_; lean_object* v_result_3154_; +v_segments_3147_ = lean_ctor_get(v___y_3122_, 0); +lean_inc_ref(v_segments_3147_); +v_absolute_3148_ = lean_ctor_get_uint8(v___y_3122_, sizeof(void*)*1); +lean_dec_ref(v___y_3122_); +v___x_3149_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__11)); +v_sz_3150_ = lean_array_size(v_segments_3147_); +v___x_3151_ = ((size_t)0ULL); +v___x_3152_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_3150_, v___x_3151_, v_segments_3147_); +v___x_3153_ = lean_array_to_list(v___x_3152_); +v_result_3154_ = l_String_intercalate(v___x_3149_, v___x_3153_); +if (v_absolute_3148_ == 0) { -v___y_3074_ = v___y_3106_; -v___y_3075_ = v___y_3107_; -v___y_3076_ = v___y_3108_; -v___y_3077_ = v___y_3109_; -v___y_3078_ = v___y_3110_; -v___y_3079_ = v___y_3125_; -v___y_3080_ = v___y_3111_; -v___y_3081_ = v___y_3112_; -v___y_3082_ = v___y_3113_; -v___y_3083_ = v___y_3114_; -v___y_3084_ = v___y_3116_; -v___y_3085_ = v___y_3117_; -v___y_3086_ = v___y_3118_; -v___y_3087_ = v___y_3120_; -v___y_3088_ = v___y_3119_; -v___y_3089_ = v___y_3121_; -v___y_3090_ = v___y_3122_; -v___y_3091_ = v___y_3124_; -v___y_3092_ = v___y_3123_; -v___y_3093_ = v_result_3133_; -goto v___jp_3073_; +v___y_3081_ = v___y_3120_; +v___y_3082_ = v___y_3121_; +v___y_3083_ = v___y_3123_; +v___y_3084_ = v___y_3124_; +v___y_3085_ = v___y_3125_; +v___y_3086_ = v___y_3126_; +v___y_3087_ = v___y_3127_; +v___y_3088_ = v___y_3128_; +v___y_3089_ = v___y_3129_; +v___y_3090_ = v___y_3130_; +v___y_3091_ = v___y_3131_; +v___y_3092_ = v___y_3132_; +v___y_3093_ = v___y_3133_; +v___y_3094_ = v___y_3134_; +v___y_3095_ = v___y_3135_; +v___y_3096_ = v___y_3136_; +v___y_3097_ = v___y_3137_; +v___y_3098_ = v___y_3138_; +v___y_3099_ = v___y_3139_; +v___y_3100_ = v___y_3140_; +v___y_3101_ = v___y_3141_; +v___y_3102_ = v___y_3142_; +v___y_3103_ = v___y_3146_; +v___y_3104_ = v___y_3143_; +v___y_3105_ = v___y_3144_; +v___y_3106_ = v___y_3145_; +v___y_3107_ = v_result_3154_; +goto v___jp_3080_; } else { -lean_object* v___x_3134_; -v___x_3134_ = lean_string_append(v___x_3128_, v_result_3133_); -lean_dec_ref(v_result_3133_); -v___y_3074_ = v___y_3106_; -v___y_3075_ = v___y_3107_; -v___y_3076_ = v___y_3108_; -v___y_3077_ = v___y_3109_; -v___y_3078_ = v___y_3110_; -v___y_3079_ = v___y_3125_; -v___y_3080_ = v___y_3111_; -v___y_3081_ = v___y_3112_; -v___y_3082_ = v___y_3113_; -v___y_3083_ = v___y_3114_; -v___y_3084_ = v___y_3116_; -v___y_3085_ = v___y_3117_; -v___y_3086_ = v___y_3118_; -v___y_3087_ = v___y_3120_; -v___y_3088_ = v___y_3119_; -v___y_3089_ = v___y_3121_; -v___y_3090_ = v___y_3122_; -v___y_3091_ = v___y_3124_; -v___y_3092_ = v___y_3123_; -v___y_3093_ = v___x_3134_; -goto v___jp_3073_; +lean_object* v___x_3155_; +v___x_3155_ = lean_string_append(v___x_3149_, v_result_3154_); +lean_dec_ref(v_result_3154_); +v___y_3081_ = v___y_3120_; +v___y_3082_ = v___y_3121_; +v___y_3083_ = v___y_3123_; +v___y_3084_ = v___y_3124_; +v___y_3085_ = v___y_3125_; +v___y_3086_ = v___y_3126_; +v___y_3087_ = v___y_3127_; +v___y_3088_ = v___y_3128_; +v___y_3089_ = v___y_3129_; +v___y_3090_ = v___y_3130_; +v___y_3091_ = v___y_3131_; +v___y_3092_ = v___y_3132_; +v___y_3093_ = v___y_3133_; +v___y_3094_ = v___y_3134_; +v___y_3095_ = v___y_3135_; +v___y_3096_ = v___y_3136_; +v___y_3097_ = v___y_3137_; +v___y_3098_ = v___y_3138_; +v___y_3099_ = v___y_3139_; +v___y_3100_ = v___y_3140_; +v___y_3101_ = v___y_3141_; +v___y_3102_ = v___y_3142_; +v___y_3103_ = v___y_3146_; +v___y_3104_ = v___y_3143_; +v___y_3105_ = v___y_3144_; +v___y_3106_ = v___y_3145_; +v___y_3107_ = v___x_3155_; +goto v___jp_3080_; } } -v___jp_3135_: +v___jp_3156_: { -lean_object* v___x_3159_; lean_object* v___x_3160_; lean_object* v___x_3161_; -v___x_3159_ = lean_string_append(v___y_3148_, v___y_3142_); -lean_dec_ref(v___y_3142_); -v___x_3160_ = lean_string_append(v___x_3159_, v___y_3158_); -lean_dec_ref(v___y_3158_); -lean_inc_ref(v___y_3143_); -v___x_3161_ = lean_string_append(v___y_3143_, v___x_3160_); -lean_dec_ref(v___x_3160_); -v___y_3106_ = v___y_3136_; -v___y_3107_ = v___y_3137_; -v___y_3108_ = v___y_3138_; -v___y_3109_ = v___y_3139_; -v___y_3110_ = v___y_3140_; -v___y_3111_ = v___y_3141_; -v___y_3112_ = v___y_3144_; -v___y_3113_ = v___y_3145_; -v___y_3114_ = v___y_3146_; -v___y_3115_ = v___y_3147_; -v___y_3116_ = v___y_3149_; -v___y_3117_ = v___y_3150_; -v___y_3118_ = v___y_3151_; -v___y_3119_ = v___y_3153_; -v___y_3120_ = v___y_3152_; -v___y_3121_ = v___y_3154_; -v___y_3122_ = v___y_3155_; -v___y_3123_ = v___y_3157_; -v___y_3124_ = v___y_3156_; -v___y_3125_ = v___x_3161_; -goto v___jp_3105_; +lean_object* v___x_3187_; lean_object* v___x_3188_; lean_object* v___x_3189_; +v___x_3187_ = lean_string_append(v___y_3161_, v___y_3173_); +lean_dec_ref(v___y_3173_); +v___x_3188_ = lean_string_append(v___x_3187_, v___y_3186_); +lean_dec_ref(v___y_3186_); +lean_inc_ref(v___y_3162_); +v___x_3189_ = lean_string_append(v___y_3162_, v___x_3188_); +lean_dec_ref(v___x_3188_); +v___y_3120_ = v___y_3157_; +v___y_3121_ = v___y_3158_; +v___y_3122_ = v___y_3160_; +v___y_3123_ = v___y_3159_; +v___y_3124_ = v___y_3163_; +v___y_3125_ = v___y_3164_; +v___y_3126_ = v___y_3165_; +v___y_3127_ = v___y_3166_; +v___y_3128_ = v___y_3167_; +v___y_3129_ = v___y_3168_; +v___y_3130_ = v___y_3169_; +v___y_3131_ = v___y_3170_; +v___y_3132_ = v___y_3171_; +v___y_3133_ = v___y_3172_; +v___y_3134_ = v___y_3174_; +v___y_3135_ = v___y_3175_; +v___y_3136_ = v___y_3176_; +v___y_3137_ = v___y_3177_; +v___y_3138_ = v___y_3178_; +v___y_3139_ = v___y_3179_; +v___y_3140_ = v___y_3180_; +v___y_3141_ = v___y_3182_; +v___y_3142_ = v___y_3181_; +v___y_3143_ = v___y_3183_; +v___y_3144_ = v___y_3185_; +v___y_3145_ = v___y_3184_; +v___y_3146_ = v___x_3189_; +goto v___jp_3119_; } -v___jp_3162_: +v___jp_3190_: { -switch(lean_obj_tag(v_port_3176_)) +switch(lean_obj_tag(v_port_3195_)) { case 0: { -lean_object* v___x_3186_; -v___x_3186_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3136_ = v___y_3163_; -v___y_3137_ = v___y_3164_; -v___y_3138_ = v___y_3165_; -v___y_3139_ = v___y_3166_; -v___y_3140_ = v___y_3167_; -v___y_3141_ = v___y_3168_; -v___y_3142_ = v___y_3185_; -v___y_3143_ = v___y_3169_; -v___y_3144_ = v___y_3170_; -v___y_3145_ = v___y_3171_; -v___y_3146_ = v___y_3172_; -v___y_3147_ = v___y_3173_; -v___y_3148_ = v___y_3174_; -v___y_3149_ = v___y_3175_; -v___y_3150_ = v___y_3177_; -v___y_3151_ = v___y_3178_; -v___y_3152_ = v___y_3180_; -v___y_3153_ = v___y_3179_; -v___y_3154_ = v___y_3181_; -v___y_3155_ = v___y_3182_; -v___y_3156_ = v___y_3184_; -v___y_3157_ = v___y_3183_; -v___y_3158_ = v___x_3186_; -goto v___jp_3135_; +lean_object* v___x_3221_; +v___x_3221_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3157_ = v___y_3191_; +v___y_3158_ = v___y_3192_; +v___y_3159_ = v___y_3194_; +v___y_3160_ = v___y_3193_; +v___y_3161_ = v___y_3196_; +v___y_3162_ = v___y_3197_; +v___y_3163_ = v___y_3198_; +v___y_3164_ = v___y_3199_; +v___y_3165_ = v___y_3200_; +v___y_3166_ = v___y_3201_; +v___y_3167_ = v___y_3202_; +v___y_3168_ = v___y_3203_; +v___y_3169_ = v___y_3204_; +v___y_3170_ = v___y_3205_; +v___y_3171_ = v___y_3206_; +v___y_3172_ = v___y_3207_; +v___y_3173_ = v___y_3220_; +v___y_3174_ = v___y_3208_; +v___y_3175_ = v___y_3209_; +v___y_3176_ = v___y_3210_; +v___y_3177_ = v___y_3211_; +v___y_3178_ = v___y_3212_; +v___y_3179_ = v___y_3213_; +v___y_3180_ = v___y_3214_; +v___y_3181_ = v___y_3215_; +v___y_3182_ = v___y_3216_; +v___y_3183_ = v___y_3217_; +v___y_3184_ = v___y_3219_; +v___y_3185_ = v___y_3218_; +v___y_3186_ = v___x_3221_; +goto v___jp_3156_; } case 1: { -lean_object* v___x_3187_; -v___x_3187_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___y_3136_ = v___y_3163_; -v___y_3137_ = v___y_3164_; -v___y_3138_ = v___y_3165_; -v___y_3139_ = v___y_3166_; -v___y_3140_ = v___y_3167_; -v___y_3141_ = v___y_3168_; -v___y_3142_ = v___y_3185_; -v___y_3143_ = v___y_3169_; -v___y_3144_ = v___y_3170_; -v___y_3145_ = v___y_3171_; -v___y_3146_ = v___y_3172_; -v___y_3147_ = v___y_3173_; -v___y_3148_ = v___y_3174_; -v___y_3149_ = v___y_3175_; -v___y_3150_ = v___y_3177_; -v___y_3151_ = v___y_3178_; -v___y_3152_ = v___y_3180_; -v___y_3153_ = v___y_3179_; -v___y_3154_ = v___y_3181_; -v___y_3155_ = v___y_3182_; -v___y_3156_ = v___y_3184_; -v___y_3157_ = v___y_3183_; -v___y_3158_ = v___x_3187_; -goto v___jp_3135_; +lean_object* v___x_3222_; +v___x_3222_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___y_3157_ = v___y_3191_; +v___y_3158_ = v___y_3192_; +v___y_3159_ = v___y_3194_; +v___y_3160_ = v___y_3193_; +v___y_3161_ = v___y_3196_; +v___y_3162_ = v___y_3197_; +v___y_3163_ = v___y_3198_; +v___y_3164_ = v___y_3199_; +v___y_3165_ = v___y_3200_; +v___y_3166_ = v___y_3201_; +v___y_3167_ = v___y_3202_; +v___y_3168_ = v___y_3203_; +v___y_3169_ = v___y_3204_; +v___y_3170_ = v___y_3205_; +v___y_3171_ = v___y_3206_; +v___y_3172_ = v___y_3207_; +v___y_3173_ = v___y_3220_; +v___y_3174_ = v___y_3208_; +v___y_3175_ = v___y_3209_; +v___y_3176_ = v___y_3210_; +v___y_3177_ = v___y_3211_; +v___y_3178_ = v___y_3212_; +v___y_3179_ = v___y_3213_; +v___y_3180_ = v___y_3214_; +v___y_3181_ = v___y_3215_; +v___y_3182_ = v___y_3216_; +v___y_3183_ = v___y_3217_; +v___y_3184_ = v___y_3219_; +v___y_3185_ = v___y_3218_; +v___y_3186_ = v___x_3222_; +goto v___jp_3156_; } default: { -uint16_t v_port_3188_; lean_object* v___x_3189_; lean_object* v___x_3190_; lean_object* v___x_3191_; lean_object* v___x_3192_; -v_port_3188_ = lean_ctor_get_uint16(v_port_3176_, 0); -lean_dec_ref(v_port_3176_); -v___x_3189_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___x_3190_ = lean_uint16_to_nat(v_port_3188_); -v___x_3191_ = l_Nat_reprFast(v___x_3190_); -v___x_3192_ = lean_string_append(v___x_3189_, v___x_3191_); -lean_dec_ref(v___x_3191_); -v___y_3136_ = v___y_3163_; -v___y_3137_ = v___y_3164_; -v___y_3138_ = v___y_3165_; -v___y_3139_ = v___y_3166_; -v___y_3140_ = v___y_3167_; -v___y_3141_ = v___y_3168_; -v___y_3142_ = v___y_3185_; -v___y_3143_ = v___y_3169_; -v___y_3144_ = v___y_3170_; -v___y_3145_ = v___y_3171_; -v___y_3146_ = v___y_3172_; -v___y_3147_ = v___y_3173_; -v___y_3148_ = v___y_3174_; -v___y_3149_ = v___y_3175_; -v___y_3150_ = v___y_3177_; -v___y_3151_ = v___y_3178_; -v___y_3152_ = v___y_3180_; -v___y_3153_ = v___y_3179_; -v___y_3154_ = v___y_3181_; -v___y_3155_ = v___y_3182_; -v___y_3156_ = v___y_3184_; -v___y_3157_ = v___y_3183_; -v___y_3158_ = v___x_3192_; -goto v___jp_3135_; +uint16_t v_port_3223_; lean_object* v___x_3224_; lean_object* v___x_3225_; lean_object* v___x_3226_; lean_object* v___x_3227_; +v_port_3223_ = lean_ctor_get_uint16(v_port_3195_, 0); +lean_dec_ref(v_port_3195_); +v___x_3224_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___x_3225_ = lean_uint16_to_nat(v_port_3223_); +v___x_3226_ = l_Nat_reprFast(v___x_3225_); +v___x_3227_ = lean_string_append(v___x_3224_, v___x_3226_); +lean_dec_ref(v___x_3226_); +v___y_3157_ = v___y_3191_; +v___y_3158_ = v___y_3192_; +v___y_3159_ = v___y_3194_; +v___y_3160_ = v___y_3193_; +v___y_3161_ = v___y_3196_; +v___y_3162_ = v___y_3197_; +v___y_3163_ = v___y_3198_; +v___y_3164_ = v___y_3199_; +v___y_3165_ = v___y_3200_; +v___y_3166_ = v___y_3201_; +v___y_3167_ = v___y_3202_; +v___y_3168_ = v___y_3203_; +v___y_3169_ = v___y_3204_; +v___y_3170_ = v___y_3205_; +v___y_3171_ = v___y_3206_; +v___y_3172_ = v___y_3207_; +v___y_3173_ = v___y_3220_; +v___y_3174_ = v___y_3208_; +v___y_3175_ = v___y_3209_; +v___y_3176_ = v___y_3210_; +v___y_3177_ = v___y_3211_; +v___y_3178_ = v___y_3212_; +v___y_3179_ = v___y_3213_; +v___y_3180_ = v___y_3214_; +v___y_3181_ = v___y_3215_; +v___y_3182_ = v___y_3216_; +v___y_3183_ = v___y_3217_; +v___y_3184_ = v___y_3219_; +v___y_3185_ = v___y_3218_; +v___y_3186_ = v___x_3227_; +goto v___jp_3156_; } } } -v___jp_3193_: +v___jp_3228_: { -switch(lean_obj_tag(v_host_3207_)) +switch(lean_obj_tag(v_host_3233_)) { case 0: { -lean_object* v_name_3217_; -v_name_3217_ = lean_ctor_get(v_host_3207_, 0); -lean_inc_ref(v_name_3217_); -lean_dec_ref(v_host_3207_); -v___y_3163_ = v___y_3194_; -v___y_3164_ = v___y_3195_; -v___y_3165_ = v___y_3196_; -v___y_3166_ = v___y_3197_; -v___y_3167_ = v___y_3198_; -v___y_3168_ = v___y_3199_; -v___y_3169_ = v___y_3200_; -v___y_3170_ = v___y_3201_; -v___y_3171_ = v___y_3202_; -v___y_3172_ = v___y_3203_; -v___y_3173_ = v___y_3204_; -v___y_3174_ = v___y_3216_; -v___y_3175_ = v___y_3205_; -v_port_3176_ = v_port_3208_; -v___y_3177_ = v___y_3206_; -v___y_3178_ = v___y_3209_; -v___y_3179_ = v___y_3211_; -v___y_3180_ = v___y_3210_; -v___y_3181_ = v___y_3212_; -v___y_3182_ = v___y_3213_; -v___y_3183_ = v___y_3215_; -v___y_3184_ = v___y_3214_; -v___y_3185_ = v_name_3217_; -goto v___jp_3162_; +lean_object* v_name_3259_; +v_name_3259_ = lean_ctor_get(v_host_3233_, 0); +lean_inc_ref(v_name_3259_); +lean_dec_ref(v_host_3233_); +v___y_3191_ = v___y_3229_; +v___y_3192_ = v___y_3230_; +v___y_3193_ = v___y_3232_; +v___y_3194_ = v___y_3231_; +v_port_3195_ = v_port_3234_; +v___y_3196_ = v___y_3258_; +v___y_3197_ = v___y_3235_; +v___y_3198_ = v___y_3236_; +v___y_3199_ = v___y_3237_; +v___y_3200_ = v___y_3238_; +v___y_3201_ = v___y_3239_; +v___y_3202_ = v___y_3240_; +v___y_3203_ = v___y_3241_; +v___y_3204_ = v___y_3242_; +v___y_3205_ = v___y_3243_; +v___y_3206_ = v___y_3244_; +v___y_3207_ = v___y_3245_; +v___y_3208_ = v___y_3246_; +v___y_3209_ = v___y_3247_; +v___y_3210_ = v___y_3248_; +v___y_3211_ = v___y_3249_; +v___y_3212_ = v___y_3250_; +v___y_3213_ = v___y_3251_; +v___y_3214_ = v___y_3252_; +v___y_3215_ = v___y_3253_; +v___y_3216_ = v___y_3254_; +v___y_3217_ = v___y_3255_; +v___y_3218_ = v___y_3257_; +v___y_3219_ = v___y_3256_; +v___y_3220_ = v_name_3259_; +goto v___jp_3190_; } case 1: { -lean_object* v_ipv4_3218_; lean_object* v___x_3219_; -v_ipv4_3218_ = lean_ctor_get(v_host_3207_, 0); -lean_inc_ref(v_ipv4_3218_); -lean_dec_ref(v_host_3207_); -v___x_3219_ = lean_uv_ntop_v4(v_ipv4_3218_); -lean_dec_ref(v_ipv4_3218_); -v___y_3163_ = v___y_3194_; -v___y_3164_ = v___y_3195_; -v___y_3165_ = v___y_3196_; -v___y_3166_ = v___y_3197_; -v___y_3167_ = v___y_3198_; -v___y_3168_ = v___y_3199_; -v___y_3169_ = v___y_3200_; -v___y_3170_ = v___y_3201_; -v___y_3171_ = v___y_3202_; -v___y_3172_ = v___y_3203_; -v___y_3173_ = v___y_3204_; -v___y_3174_ = v___y_3216_; -v___y_3175_ = v___y_3205_; -v_port_3176_ = v_port_3208_; -v___y_3177_ = v___y_3206_; -v___y_3178_ = v___y_3209_; -v___y_3179_ = v___y_3211_; -v___y_3180_ = v___y_3210_; -v___y_3181_ = v___y_3212_; -v___y_3182_ = v___y_3213_; -v___y_3183_ = v___y_3215_; -v___y_3184_ = v___y_3214_; -v___y_3185_ = v___x_3219_; -goto v___jp_3162_; +lean_object* v_ipv4_3260_; lean_object* v___x_3261_; +v_ipv4_3260_ = lean_ctor_get(v_host_3233_, 0); +lean_inc_ref(v_ipv4_3260_); +lean_dec_ref(v_host_3233_); +v___x_3261_ = lean_uv_ntop_v4(v_ipv4_3260_); +lean_dec_ref(v_ipv4_3260_); +v___y_3191_ = v___y_3229_; +v___y_3192_ = v___y_3230_; +v___y_3193_ = v___y_3232_; +v___y_3194_ = v___y_3231_; +v_port_3195_ = v_port_3234_; +v___y_3196_ = v___y_3258_; +v___y_3197_ = v___y_3235_; +v___y_3198_ = v___y_3236_; +v___y_3199_ = v___y_3237_; +v___y_3200_ = v___y_3238_; +v___y_3201_ = v___y_3239_; +v___y_3202_ = v___y_3240_; +v___y_3203_ = v___y_3241_; +v___y_3204_ = v___y_3242_; +v___y_3205_ = v___y_3243_; +v___y_3206_ = v___y_3244_; +v___y_3207_ = v___y_3245_; +v___y_3208_ = v___y_3246_; +v___y_3209_ = v___y_3247_; +v___y_3210_ = v___y_3248_; +v___y_3211_ = v___y_3249_; +v___y_3212_ = v___y_3250_; +v___y_3213_ = v___y_3251_; +v___y_3214_ = v___y_3252_; +v___y_3215_ = v___y_3253_; +v___y_3216_ = v___y_3254_; +v___y_3217_ = v___y_3255_; +v___y_3218_ = v___y_3257_; +v___y_3219_ = v___y_3256_; +v___y_3220_ = v___x_3261_; +goto v___jp_3190_; } default: { -lean_object* v_ipv6_3220_; lean_object* v___x_3221_; lean_object* v___x_3222_; lean_object* v___x_3223_; lean_object* v___x_3224_; lean_object* v___x_3225_; -v_ipv6_3220_ = lean_ctor_get(v_host_3207_, 0); -lean_inc_ref(v_ipv6_3220_); -lean_dec_ref(v_host_3207_); -v___x_3221_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__12)); -v___x_3222_ = lean_uv_ntop_v6(v_ipv6_3220_); -lean_dec_ref(v_ipv6_3220_); -v___x_3223_ = lean_string_append(v___x_3221_, v___x_3222_); -lean_dec_ref(v___x_3222_); -v___x_3224_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__13)); -v___x_3225_ = lean_string_append(v___x_3223_, v___x_3224_); -v___y_3163_ = v___y_3194_; -v___y_3164_ = v___y_3195_; -v___y_3165_ = v___y_3196_; -v___y_3166_ = v___y_3197_; -v___y_3167_ = v___y_3198_; -v___y_3168_ = v___y_3199_; -v___y_3169_ = v___y_3200_; -v___y_3170_ = v___y_3201_; -v___y_3171_ = v___y_3202_; -v___y_3172_ = v___y_3203_; -v___y_3173_ = v___y_3204_; -v___y_3174_ = v___y_3216_; -v___y_3175_ = v___y_3205_; -v_port_3176_ = v_port_3208_; -v___y_3177_ = v___y_3206_; -v___y_3178_ = v___y_3209_; -v___y_3179_ = v___y_3211_; -v___y_3180_ = v___y_3210_; -v___y_3181_ = v___y_3212_; -v___y_3182_ = v___y_3213_; -v___y_3183_ = v___y_3215_; -v___y_3184_ = v___y_3214_; -v___y_3185_ = v___x_3225_; -goto v___jp_3162_; +lean_object* v_ipv6_3262_; lean_object* v___x_3263_; lean_object* v___x_3264_; lean_object* v___x_3265_; lean_object* v___x_3266_; lean_object* v___x_3267_; +v_ipv6_3262_ = lean_ctor_get(v_host_3233_, 0); +lean_inc_ref(v_ipv6_3262_); +lean_dec_ref(v_host_3233_); +v___x_3263_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__12)); +v___x_3264_ = lean_uv_ntop_v6(v_ipv6_3262_); +lean_dec_ref(v_ipv6_3262_); +v___x_3265_ = lean_string_append(v___x_3263_, v___x_3264_); +lean_dec_ref(v___x_3264_); +v___x_3266_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__13)); +v___x_3267_ = lean_string_append(v___x_3265_, v___x_3266_); +v___y_3191_ = v___y_3229_; +v___y_3192_ = v___y_3230_; +v___y_3193_ = v___y_3232_; +v___y_3194_ = v___y_3231_; +v_port_3195_ = v_port_3234_; +v___y_3196_ = v___y_3258_; +v___y_3197_ = v___y_3235_; +v___y_3198_ = v___y_3236_; +v___y_3199_ = v___y_3237_; +v___y_3200_ = v___y_3238_; +v___y_3201_ = v___y_3239_; +v___y_3202_ = v___y_3240_; +v___y_3203_ = v___y_3241_; +v___y_3204_ = v___y_3242_; +v___y_3205_ = v___y_3243_; +v___y_3206_ = v___y_3244_; +v___y_3207_ = v___y_3245_; +v___y_3208_ = v___y_3246_; +v___y_3209_ = v___y_3247_; +v___y_3210_ = v___y_3248_; +v___y_3211_ = v___y_3249_; +v___y_3212_ = v___y_3250_; +v___y_3213_ = v___y_3251_; +v___y_3214_ = v___y_3252_; +v___y_3215_ = v___y_3253_; +v___y_3216_ = v___y_3254_; +v___y_3217_ = v___y_3255_; +v___y_3218_ = v___y_3257_; +v___y_3219_ = v___y_3256_; +v___y_3220_ = v___x_3267_; +goto v___jp_3190_; } } } -v___jp_3226_: +v___jp_3268_: { -lean_object* v___x_3245_; lean_object* v___x_3246_; -v___x_3245_ = lean_string_append(v___y_3233_, v___y_3240_); -lean_dec_ref(v___y_3240_); -v___x_3246_ = lean_string_append(v___x_3245_, v___y_3244_); -lean_dec_ref(v___y_3244_); -v___y_2963_ = v___y_3227_; -v___y_2964_ = v___y_3228_; -v___y_2965_ = v___y_3229_; -v___y_2966_ = v___y_3230_; -v___y_2967_ = v___y_3231_; -v___y_2968_ = v___y_3232_; -v___y_2969_ = v___y_3234_; -v___y_2970_ = v___y_3235_; -v___y_2971_ = v___y_3236_; -v___y_2972_ = v___y_3237_; -v___y_2973_ = v___y_3238_; -v___y_2974_ = v___y_3239_; -v___y_2975_ = v___y_3241_; -v___y_2976_ = v___y_3242_; -v___y_2977_ = v___y_3243_; -v___y_2978_ = v___x_3246_; -goto v___jp_2962_; +lean_object* v___x_3294_; lean_object* v___x_3295_; +v___x_3294_ = lean_string_append(v___y_3272_, v___y_3273_); +lean_dec_ref(v___y_3273_); +v___x_3295_ = lean_string_append(v___x_3294_, v___y_3293_); +lean_dec_ref(v___y_3293_); +v___y_2942_ = v___y_3269_; +v___y_2943_ = v___y_3270_; +v___y_2944_ = v___y_3271_; +v___y_2945_ = v___y_3274_; +v___y_2946_ = v___y_3275_; +v___y_2947_ = v___y_3276_; +v___y_2948_ = v___y_3277_; +v___y_2949_ = v___y_3278_; +v___y_2950_ = v___y_3279_; +v___y_2951_ = v___y_3281_; +v___y_2952_ = v___y_3282_; +v___y_2953_ = v___y_3280_; +v___y_2954_ = v___y_3284_; +v___y_2955_ = v___y_3283_; +v___y_2956_ = v___y_3286_; +v___y_2957_ = v___y_3285_; +v___y_2958_ = v___y_3287_; +v___y_2959_ = v___y_3288_; +v___y_2960_ = v___y_3289_; +v___y_2961_ = v___y_3290_; +v___y_2962_ = v___y_3292_; +v___y_2963_ = v___y_3291_; +v___y_2964_ = v___x_3295_; +goto v___jp_2941_; } -v___jp_3247_: +v___jp_3296_: { -switch(lean_obj_tag(v_port_3262_)) +switch(lean_obj_tag(v_port_3302_)) { case 0: { -lean_object* v___x_3266_; -v___x_3266_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3227_ = v___y_3248_; -v___y_3228_ = v___y_3249_; -v___y_3229_ = v___y_3250_; -v___y_3230_ = v___y_3251_; -v___y_3231_ = v___y_3252_; -v___y_3232_ = v___y_3253_; -v___y_3233_ = v___y_3254_; -v___y_3234_ = v___y_3255_; -v___y_3235_ = v___y_3256_; -v___y_3236_ = v___y_3257_; -v___y_3237_ = v___y_3258_; -v___y_3238_ = v___y_3259_; -v___y_3239_ = v___y_3260_; -v___y_3240_ = v___y_3265_; -v___y_3241_ = v___y_3261_; -v___y_3242_ = v___y_3263_; -v___y_3243_ = v___y_3264_; -v___y_3244_ = v___x_3266_; -goto v___jp_3226_; +lean_object* v___x_3322_; +v___x_3322_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3269_ = v___y_3297_; +v___y_3270_ = v___y_3298_; +v___y_3271_ = v___y_3299_; +v___y_3272_ = v___y_3300_; +v___y_3273_ = v___y_3321_; +v___y_3274_ = v___y_3301_; +v___y_3275_ = v___y_3303_; +v___y_3276_ = v___y_3304_; +v___y_3277_ = v___y_3305_; +v___y_3278_ = v___y_3306_; +v___y_3279_ = v___y_3307_; +v___y_3280_ = v___y_3308_; +v___y_3281_ = v___y_3309_; +v___y_3282_ = v___y_3310_; +v___y_3283_ = v___y_3312_; +v___y_3284_ = v___y_3311_; +v___y_3285_ = v___y_3314_; +v___y_3286_ = v___y_3313_; +v___y_3287_ = v___y_3315_; +v___y_3288_ = v___y_3316_; +v___y_3289_ = v___y_3317_; +v___y_3290_ = v___y_3318_; +v___y_3291_ = v___y_3320_; +v___y_3292_ = v___y_3319_; +v___y_3293_ = v___x_3322_; +goto v___jp_3268_; } case 1: { -lean_object* v___x_3267_; -v___x_3267_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___y_3227_ = v___y_3248_; -v___y_3228_ = v___y_3249_; -v___y_3229_ = v___y_3250_; -v___y_3230_ = v___y_3251_; -v___y_3231_ = v___y_3252_; -v___y_3232_ = v___y_3253_; -v___y_3233_ = v___y_3254_; -v___y_3234_ = v___y_3255_; -v___y_3235_ = v___y_3256_; -v___y_3236_ = v___y_3257_; -v___y_3237_ = v___y_3258_; -v___y_3238_ = v___y_3259_; -v___y_3239_ = v___y_3260_; -v___y_3240_ = v___y_3265_; -v___y_3241_ = v___y_3261_; -v___y_3242_ = v___y_3263_; -v___y_3243_ = v___y_3264_; -v___y_3244_ = v___x_3267_; -goto v___jp_3226_; +lean_object* v___x_3323_; +v___x_3323_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___y_3269_ = v___y_3297_; +v___y_3270_ = v___y_3298_; +v___y_3271_ = v___y_3299_; +v___y_3272_ = v___y_3300_; +v___y_3273_ = v___y_3321_; +v___y_3274_ = v___y_3301_; +v___y_3275_ = v___y_3303_; +v___y_3276_ = v___y_3304_; +v___y_3277_ = v___y_3305_; +v___y_3278_ = v___y_3306_; +v___y_3279_ = v___y_3307_; +v___y_3280_ = v___y_3308_; +v___y_3281_ = v___y_3309_; +v___y_3282_ = v___y_3310_; +v___y_3283_ = v___y_3312_; +v___y_3284_ = v___y_3311_; +v___y_3285_ = v___y_3314_; +v___y_3286_ = v___y_3313_; +v___y_3287_ = v___y_3315_; +v___y_3288_ = v___y_3316_; +v___y_3289_ = v___y_3317_; +v___y_3290_ = v___y_3318_; +v___y_3291_ = v___y_3320_; +v___y_3292_ = v___y_3319_; +v___y_3293_ = v___x_3323_; +goto v___jp_3268_; } default: { -uint16_t v_port_3268_; lean_object* v___x_3269_; lean_object* v___x_3270_; lean_object* v___x_3271_; lean_object* v___x_3272_; -v_port_3268_ = lean_ctor_get_uint16(v_port_3262_, 0); -lean_dec_ref(v_port_3262_); -v___x_3269_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___x_3270_ = lean_uint16_to_nat(v_port_3268_); -v___x_3271_ = l_Nat_reprFast(v___x_3270_); -v___x_3272_ = lean_string_append(v___x_3269_, v___x_3271_); -lean_dec_ref(v___x_3271_); -v___y_3227_ = v___y_3248_; -v___y_3228_ = v___y_3249_; -v___y_3229_ = v___y_3250_; -v___y_3230_ = v___y_3251_; -v___y_3231_ = v___y_3252_; -v___y_3232_ = v___y_3253_; -v___y_3233_ = v___y_3254_; -v___y_3234_ = v___y_3255_; -v___y_3235_ = v___y_3256_; -v___y_3236_ = v___y_3257_; -v___y_3237_ = v___y_3258_; -v___y_3238_ = v___y_3259_; -v___y_3239_ = v___y_3260_; -v___y_3240_ = v___y_3265_; -v___y_3241_ = v___y_3261_; -v___y_3242_ = v___y_3263_; -v___y_3243_ = v___y_3264_; -v___y_3244_ = v___x_3272_; -goto v___jp_3226_; +uint16_t v_port_3324_; lean_object* v___x_3325_; lean_object* v___x_3326_; lean_object* v___x_3327_; lean_object* v___x_3328_; +v_port_3324_ = lean_ctor_get_uint16(v_port_3302_, 0); +lean_dec_ref(v_port_3302_); +v___x_3325_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___x_3326_ = lean_uint16_to_nat(v_port_3324_); +v___x_3327_ = l_Nat_reprFast(v___x_3326_); +v___x_3328_ = lean_string_append(v___x_3325_, v___x_3327_); +lean_dec_ref(v___x_3327_); +v___y_3269_ = v___y_3297_; +v___y_3270_ = v___y_3298_; +v___y_3271_ = v___y_3299_; +v___y_3272_ = v___y_3300_; +v___y_3273_ = v___y_3321_; +v___y_3274_ = v___y_3301_; +v___y_3275_ = v___y_3303_; +v___y_3276_ = v___y_3304_; +v___y_3277_ = v___y_3305_; +v___y_3278_ = v___y_3306_; +v___y_3279_ = v___y_3307_; +v___y_3280_ = v___y_3308_; +v___y_3281_ = v___y_3309_; +v___y_3282_ = v___y_3310_; +v___y_3283_ = v___y_3312_; +v___y_3284_ = v___y_3311_; +v___y_3285_ = v___y_3314_; +v___y_3286_ = v___y_3313_; +v___y_3287_ = v___y_3315_; +v___y_3288_ = v___y_3316_; +v___y_3289_ = v___y_3317_; +v___y_3290_ = v___y_3318_; +v___y_3291_ = v___y_3320_; +v___y_3292_ = v___y_3319_; +v___y_3293_ = v___x_3328_; +goto v___jp_3268_; } } } -v___jp_3273_: +v___jp_3329_: { -switch(lean_obj_tag(v_host_3287_)) +switch(lean_obj_tag(v_host_3334_)) { case 0: { -lean_object* v_name_3292_; -v_name_3292_ = lean_ctor_get(v_host_3287_, 0); -lean_inc_ref(v_name_3292_); -lean_dec_ref(v_host_3287_); -v___y_3248_ = v___y_3274_; -v___y_3249_ = v___y_3275_; -v___y_3250_ = v___y_3276_; -v___y_3251_ = v___y_3277_; -v___y_3252_ = v___y_3278_; -v___y_3253_ = v___y_3279_; -v___y_3254_ = v___y_3291_; -v___y_3255_ = v___y_3280_; -v___y_3256_ = v___y_3281_; -v___y_3257_ = v___y_3282_; -v___y_3258_ = v___y_3283_; -v___y_3259_ = v___y_3284_; -v___y_3260_ = v___y_3285_; -v___y_3261_ = v___y_3286_; -v_port_3262_ = v_port_3288_; -v___y_3263_ = v___y_3289_; -v___y_3264_ = v___y_3290_; -v___y_3265_ = v_name_3292_; -goto v___jp_3247_; +lean_object* v_name_3355_; +v_name_3355_ = lean_ctor_get(v_host_3334_, 0); +lean_inc_ref(v_name_3355_); +lean_dec_ref(v_host_3334_); +v___y_3297_ = v___y_3330_; +v___y_3298_ = v___y_3331_; +v___y_3299_ = v___y_3332_; +v___y_3300_ = v___y_3354_; +v___y_3301_ = v___y_3333_; +v_port_3302_ = v_port_3335_; +v___y_3303_ = v___y_3336_; +v___y_3304_ = v___y_3337_; +v___y_3305_ = v___y_3338_; +v___y_3306_ = v___y_3339_; +v___y_3307_ = v___y_3340_; +v___y_3308_ = v___y_3341_; +v___y_3309_ = v___y_3342_; +v___y_3310_ = v___y_3343_; +v___y_3311_ = v___y_3345_; +v___y_3312_ = v___y_3344_; +v___y_3313_ = v___y_3347_; +v___y_3314_ = v___y_3346_; +v___y_3315_ = v___y_3348_; +v___y_3316_ = v___y_3349_; +v___y_3317_ = v___y_3350_; +v___y_3318_ = v___y_3351_; +v___y_3319_ = v___y_3353_; +v___y_3320_ = v___y_3352_; +v___y_3321_ = v_name_3355_; +goto v___jp_3296_; } case 1: { -lean_object* v_ipv4_3293_; lean_object* v___x_3294_; -v_ipv4_3293_ = lean_ctor_get(v_host_3287_, 0); -lean_inc_ref(v_ipv4_3293_); -lean_dec_ref(v_host_3287_); -v___x_3294_ = lean_uv_ntop_v4(v_ipv4_3293_); -lean_dec_ref(v_ipv4_3293_); -v___y_3248_ = v___y_3274_; -v___y_3249_ = v___y_3275_; -v___y_3250_ = v___y_3276_; -v___y_3251_ = v___y_3277_; -v___y_3252_ = v___y_3278_; -v___y_3253_ = v___y_3279_; -v___y_3254_ = v___y_3291_; -v___y_3255_ = v___y_3280_; -v___y_3256_ = v___y_3281_; -v___y_3257_ = v___y_3282_; -v___y_3258_ = v___y_3283_; -v___y_3259_ = v___y_3284_; -v___y_3260_ = v___y_3285_; -v___y_3261_ = v___y_3286_; -v_port_3262_ = v_port_3288_; -v___y_3263_ = v___y_3289_; -v___y_3264_ = v___y_3290_; -v___y_3265_ = v___x_3294_; -goto v___jp_3247_; +lean_object* v_ipv4_3356_; lean_object* v___x_3357_; +v_ipv4_3356_ = lean_ctor_get(v_host_3334_, 0); +lean_inc_ref(v_ipv4_3356_); +lean_dec_ref(v_host_3334_); +v___x_3357_ = lean_uv_ntop_v4(v_ipv4_3356_); +lean_dec_ref(v_ipv4_3356_); +v___y_3297_ = v___y_3330_; +v___y_3298_ = v___y_3331_; +v___y_3299_ = v___y_3332_; +v___y_3300_ = v___y_3354_; +v___y_3301_ = v___y_3333_; +v_port_3302_ = v_port_3335_; +v___y_3303_ = v___y_3336_; +v___y_3304_ = v___y_3337_; +v___y_3305_ = v___y_3338_; +v___y_3306_ = v___y_3339_; +v___y_3307_ = v___y_3340_; +v___y_3308_ = v___y_3341_; +v___y_3309_ = v___y_3342_; +v___y_3310_ = v___y_3343_; +v___y_3311_ = v___y_3345_; +v___y_3312_ = v___y_3344_; +v___y_3313_ = v___y_3347_; +v___y_3314_ = v___y_3346_; +v___y_3315_ = v___y_3348_; +v___y_3316_ = v___y_3349_; +v___y_3317_ = v___y_3350_; +v___y_3318_ = v___y_3351_; +v___y_3319_ = v___y_3353_; +v___y_3320_ = v___y_3352_; +v___y_3321_ = v___x_3357_; +goto v___jp_3296_; } default: { -lean_object* v_ipv6_3295_; lean_object* v___x_3296_; lean_object* v___x_3297_; lean_object* v___x_3298_; lean_object* v___x_3299_; lean_object* v___x_3300_; -v_ipv6_3295_ = lean_ctor_get(v_host_3287_, 0); -lean_inc_ref(v_ipv6_3295_); -lean_dec_ref(v_host_3287_); -v___x_3296_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__12)); -v___x_3297_ = lean_uv_ntop_v6(v_ipv6_3295_); -lean_dec_ref(v_ipv6_3295_); -v___x_3298_ = lean_string_append(v___x_3296_, v___x_3297_); -lean_dec_ref(v___x_3297_); -v___x_3299_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__13)); -v___x_3300_ = lean_string_append(v___x_3298_, v___x_3299_); -v___y_3248_ = v___y_3274_; -v___y_3249_ = v___y_3275_; -v___y_3250_ = v___y_3276_; -v___y_3251_ = v___y_3277_; -v___y_3252_ = v___y_3278_; -v___y_3253_ = v___y_3279_; -v___y_3254_ = v___y_3291_; -v___y_3255_ = v___y_3280_; -v___y_3256_ = v___y_3281_; -v___y_3257_ = v___y_3282_; -v___y_3258_ = v___y_3283_; -v___y_3259_ = v___y_3284_; -v___y_3260_ = v___y_3285_; -v___y_3261_ = v___y_3286_; -v_port_3262_ = v_port_3288_; -v___y_3263_ = v___y_3289_; -v___y_3264_ = v___y_3290_; -v___y_3265_ = v___x_3300_; -goto v___jp_3247_; +lean_object* v_ipv6_3358_; lean_object* v___x_3359_; lean_object* v___x_3360_; lean_object* v___x_3361_; lean_object* v___x_3362_; lean_object* v___x_3363_; +v_ipv6_3358_ = lean_ctor_get(v_host_3334_, 0); +lean_inc_ref(v_ipv6_3358_); +lean_dec_ref(v_host_3334_); +v___x_3359_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__12)); +v___x_3360_ = lean_uv_ntop_v6(v_ipv6_3358_); +lean_dec_ref(v_ipv6_3358_); +v___x_3361_ = lean_string_append(v___x_3359_, v___x_3360_); +lean_dec_ref(v___x_3360_); +v___x_3362_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__13)); +v___x_3363_ = lean_string_append(v___x_3361_, v___x_3362_); +v___y_3297_ = v___y_3330_; +v___y_3298_ = v___y_3331_; +v___y_3299_ = v___y_3332_; +v___y_3300_ = v___y_3354_; +v___y_3301_ = v___y_3333_; +v_port_3302_ = v_port_3335_; +v___y_3303_ = v___y_3336_; +v___y_3304_ = v___y_3337_; +v___y_3305_ = v___y_3338_; +v___y_3306_ = v___y_3339_; +v___y_3307_ = v___y_3340_; +v___y_3308_ = v___y_3341_; +v___y_3309_ = v___y_3342_; +v___y_3310_ = v___y_3343_; +v___y_3311_ = v___y_3345_; +v___y_3312_ = v___y_3344_; +v___y_3313_ = v___y_3347_; +v___y_3314_ = v___y_3346_; +v___y_3315_ = v___y_3348_; +v___y_3316_ = v___y_3349_; +v___y_3317_ = v___y_3350_; +v___y_3318_ = v___y_3351_; +v___y_3319_ = v___y_3353_; +v___y_3320_ = v___y_3352_; +v___y_3321_ = v___x_3363_; +goto v___jp_3296_; } } } -v___jp_3302_: +v___jp_3365_: { -lean_object* v_data_3317_; lean_object* v_size_3318_; lean_object* v___x_3319_; lean_object* v___x_3320_; lean_object* v___x_3321_; lean_object* v___x_3322_; lean_object* v___x_3323_; lean_object* v___x_3324_; lean_object* v___x_3325_; lean_object* v___x_3326_; -v_data_3317_ = lean_ctor_get(v___y_3309_, 0); -lean_inc_ref(v_data_3317_); -v_size_3318_ = lean_ctor_get(v___y_3309_, 1); -lean_inc(v_size_3318_); -lean_dec_ref(v___y_3309_); -v___x_3319_ = lean_string_to_utf8(v___y_3316_); -lean_inc_ref(v___x_3319_); -v___x_3320_ = lean_array_push(v_data_3317_, v___x_3319_); -v___x_3321_ = lean_byte_array_size(v___x_3319_); -lean_dec_ref(v___x_3319_); -v___x_3322_ = lean_nat_add(v_size_3318_, v___x_3321_); -lean_dec(v_size_3318_); -v___x_3323_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); -v___x_3324_ = lean_array_push(v___x_3320_, v___x_3323_); -v___x_3325_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); -v___x_3326_ = lean_nat_add(v___x_3322_, v___x_3325_); -lean_dec(v___x_3322_); -switch(lean_obj_tag(v___y_3313_)) +lean_object* v_data_3386_; lean_object* v_size_3387_; lean_object* v___x_3389_; uint8_t v_isShared_3390_; uint8_t v_isSharedCheck_3432_; +v_data_3386_ = lean_ctor_get(v___y_3369_, 0); +v_size_3387_ = lean_ctor_get(v___y_3369_, 1); +v_isSharedCheck_3432_ = !lean_is_exclusive(v___y_3369_); +if (v_isSharedCheck_3432_ == 0) { -case 0: -{ -lean_object* v_path_3327_; lean_object* v_query_3328_; lean_object* v_segments_3329_; uint8_t v_absolute_3330_; lean_object* v___x_3331_; size_t v_sz_3332_; size_t v___x_3333_; lean_object* v___x_3334_; lean_object* v___x_3335_; lean_object* v_result_3336_; -v_path_3327_ = lean_ctor_get(v___y_3313_, 0); -lean_inc_ref(v_path_3327_); -v_query_3328_ = lean_ctor_get(v___y_3313_, 1); -lean_inc(v_query_3328_); -lean_dec_ref(v___y_3313_); -v_segments_3329_ = lean_ctor_get(v_path_3327_, 0); -lean_inc_ref(v_segments_3329_); -v_absolute_3330_ = lean_ctor_get_uint8(v_path_3327_, sizeof(void*)*1); -lean_dec_ref(v_path_3327_); -v___x_3331_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__11)); -v_sz_3332_ = lean_array_size(v_segments_3329_); -v___x_3333_ = ((size_t)0ULL); -v___x_3334_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_3332_, v___x_3333_, v_segments_3329_); -v___x_3335_ = lean_array_to_list(v___x_3334_); -v_result_3336_ = l_String_intercalate(v___x_3331_, v___x_3335_); -if (v_absolute_3330_ == 0) -{ -v___y_2990_ = v___y_3303_; -v___y_2991_ = v___y_3304_; -v___y_2992_ = v___y_3305_; -v___y_2993_ = v___y_3306_; -v___y_2994_ = v___y_3307_; -v___y_2995_ = v___y_3308_; -v___y_2996_ = v___y_3310_; -v___y_2997_ = v___y_3311_; -v___y_2998_ = v_query_3328_; -v___y_2999_ = v___y_3312_; -v___y_3000_ = v___x_3323_; -v___y_3001_ = v___x_3325_; -v___y_3002_ = v___y_3314_; -v___y_3003_ = v___x_3326_; -v___y_3004_ = v___y_3315_; -v___y_3005_ = v___x_3324_; -v___y_3006_ = v_result_3336_; -goto v___jp_2989_; +v___x_3389_ = v___y_3369_; +v_isShared_3390_ = v_isSharedCheck_3432_; +goto v_resetjp_3388_; } else { -lean_object* v___x_3337_; -v___x_3337_ = lean_string_append(v___x_3331_, v_result_3336_); -lean_dec_ref(v_result_3336_); -v___y_2990_ = v___y_3303_; -v___y_2991_ = v___y_3304_; -v___y_2992_ = v___y_3305_; -v___y_2993_ = v___y_3306_; -v___y_2994_ = v___y_3307_; -v___y_2995_ = v___y_3308_; -v___y_2996_ = v___y_3310_; -v___y_2997_ = v___y_3311_; -v___y_2998_ = v_query_3328_; -v___y_2999_ = v___y_3312_; -v___y_3000_ = v___x_3323_; -v___y_3001_ = v___x_3325_; -v___y_3002_ = v___y_3314_; -v___y_3003_ = v___x_3326_; -v___y_3004_ = v___y_3315_; -v___y_3005_ = v___x_3324_; -v___y_3006_ = v___x_3337_; -goto v___jp_2989_; +lean_inc(v_size_3387_); +lean_inc(v_data_3386_); +lean_dec(v___y_3369_); +v___x_3389_ = lean_box(0); +v_isShared_3390_ = v_isSharedCheck_3432_; +goto v_resetjp_3388_; +} +v_resetjp_3388_: +{ +lean_object* v___x_3391_; lean_object* v___x_3392_; lean_object* v___x_3393_; lean_object* v___x_3394_; lean_object* v___x_3395_; lean_object* v___x_3396_; lean_object* v___x_3397_; lean_object* v___x_3398_; uint16_t v___x_3399_; lean_object* v___x_3400_; lean_object* v___x_3401_; lean_object* v___x_3402_; lean_object* v___x_3403_; lean_object* v___x_3404_; lean_object* v___x_3405_; lean_object* v___x_3406_; lean_object* v___x_3407_; lean_object* v___x_3408_; lean_object* v___x_3409_; lean_object* v___x_3410_; lean_object* v___x_3411_; lean_object* v___x_3412_; lean_object* v___x_3413_; lean_object* v___x_3414_; lean_object* v___x_3415_; lean_object* v___x_3416_; lean_object* v_buffer_3418_; +v___x_3391_ = lean_string_to_utf8(v___y_3385_); +lean_inc_ref(v___x_3391_); +v___x_3392_ = lean_array_push(v_data_3386_, v___x_3391_); +v___x_3393_ = lean_byte_array_size(v___x_3391_); +lean_dec_ref(v___x_3391_); +v___x_3394_ = lean_nat_add(v_size_3387_, v___x_3393_); +lean_dec(v_size_3387_); +v___x_3395_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); +v___x_3396_ = lean_array_push(v___x_3392_, v___x_3395_); +v___x_3397_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); +v___x_3398_ = lean_nat_add(v___x_3394_, v___x_3397_); +lean_dec(v___x_3394_); +v___x_3399_ = l_Std_Http_Status_toCode(v___y_3383_); +v___x_3400_ = lean_uint16_to_nat(v___x_3399_); +v___x_3401_ = l_Nat_reprFast(v___x_3400_); +v___x_3402_ = lean_string_to_utf8(v___x_3401_); +lean_dec_ref(v___x_3401_); +lean_inc_ref(v___x_3402_); +v___x_3403_ = lean_array_push(v___x_3396_, v___x_3402_); +v___x_3404_ = lean_byte_array_size(v___x_3402_); +lean_dec_ref(v___x_3402_); +v___x_3405_ = lean_nat_add(v___x_3398_, v___x_3404_); +lean_dec(v___x_3398_); +v___x_3406_ = lean_array_push(v___x_3403_, v___x_3395_); +v___x_3407_ = lean_nat_add(v___x_3405_, v___x_3397_); +lean_dec(v___x_3405_); +v___x_3408_ = l_Std_Http_Status_reasonPhrase(v___y_3383_); +lean_dec(v___y_3383_); +v___x_3409_ = lean_string_to_utf8(v___x_3408_); +lean_dec_ref(v___x_3408_); +lean_inc_ref(v___x_3409_); +v___x_3410_ = lean_array_push(v___x_3406_, v___x_3409_); +v___x_3411_ = lean_byte_array_size(v___x_3409_); +lean_dec_ref(v___x_3409_); +v___x_3412_ = lean_nat_add(v___x_3407_, v___x_3411_); +lean_dec(v___x_3407_); +v___x_3413_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); +v___x_3414_ = lean_array_push(v___x_3410_, v___x_3413_); +v___x_3415_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); +v___x_3416_ = lean_nat_add(v___x_3412_, v___x_3415_); +lean_dec(v___x_3412_); +if (v_isShared_3390_ == 0) +{ +lean_ctor_set(v___x_3389_, 1, v___x_3416_); +lean_ctor_set(v___x_3389_, 0, v___x_3414_); +v_buffer_3418_ = v___x_3389_; +goto v_reusejp_3417_; +} +else +{ +lean_object* v_reuseFailAlloc_3431_; +v_reuseFailAlloc_3431_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3431_, 0, v___x_3414_); +lean_ctor_set(v_reuseFailAlloc_3431_, 1, v___x_3416_); +v_buffer_3418_ = v_reuseFailAlloc_3431_; +goto v_reusejp_3417_; +} +v_reusejp_3417_: +{ +lean_object* v_buffer_3419_; lean_object* v_data_3420_; lean_object* v_size_3421_; lean_object* v___x_3423_; uint8_t v_isShared_3424_; uint8_t v_isSharedCheck_3430_; +v_buffer_3419_ = l_Std_Http_Headers_fold___redArg(v___y_3373_, v_buffer_3418_, v___f_2898_); +lean_dec_ref(v___y_3373_); +v_data_3420_ = lean_ctor_get(v_buffer_3419_, 0); +v_size_3421_ = lean_ctor_get(v_buffer_3419_, 1); +v_isSharedCheck_3430_ = !lean_is_exclusive(v_buffer_3419_); +if (v_isSharedCheck_3430_ == 0) +{ +v___x_3423_ = v_buffer_3419_; +v_isShared_3424_ = v_isSharedCheck_3430_; +goto v_resetjp_3422_; +} +else +{ +lean_inc(v_size_3421_); +lean_inc(v_data_3420_); +lean_dec(v_buffer_3419_); +v___x_3423_ = lean_box(0); +v_isShared_3424_ = v_isSharedCheck_3430_; +goto v_resetjp_3422_; +} +v_resetjp_3422_: +{ +lean_object* v___x_3425_; lean_object* v___x_3426_; lean_object* v___x_3428_; +v___x_3425_ = lean_array_push(v_data_3420_, v___x_3413_); +v___x_3426_ = lean_nat_add(v_size_3421_, v___x_3415_); +lean_dec(v_size_3421_); +if (v_isShared_3424_ == 0) +{ +lean_ctor_set(v___x_3423_, 1, v___x_3426_); +lean_ctor_set(v___x_3423_, 0, v___x_3425_); +v___x_3428_ = v___x_3423_; +goto v_reusejp_3427_; +} +else +{ +lean_object* v_reuseFailAlloc_3429_; +v_reuseFailAlloc_3429_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3429_, 0, v___x_3425_); +lean_ctor_set(v_reuseFailAlloc_3429_, 1, v___x_3426_); +v___x_3428_ = v_reuseFailAlloc_3429_; +goto v_reusejp_3427_; +} +v_reusejp_3427_: +{ +v___y_2863_ = v___y_3366_; +v___y_2864_ = v___y_3367_; +v___y_2865_ = v___y_3368_; +v___y_2866_ = v___y_3370_; +v___y_2867_ = v___y_3371_; +v___y_2868_ = v___y_3372_; +v___y_2869_ = v___y_3374_; +v___y_2870_ = v___y_3375_; +v___y_2871_ = v___y_3376_; +v___y_2872_ = v___y_3377_; +v___y_2873_ = v___y_3379_; +v___y_2874_ = v___y_3378_; +v___y_2875_ = v___y_3380_; +v___y_2876_ = v___y_3381_; +v___y_2877_ = v___y_3382_; +v___y_2878_ = v___y_3384_; +v___y_2879_ = v___x_3428_; +goto v___jp_2862_; +} +} +} +} +} +v___jp_3433_: +{ +lean_object* v_data_3455_; lean_object* v_size_3456_; lean_object* v___x_3457_; lean_object* v___x_3458_; lean_object* v___x_3459_; lean_object* v___x_3460_; lean_object* v___x_3461_; lean_object* v___x_3462_; lean_object* v___x_3463_; lean_object* v___x_3464_; +v_data_3455_ = lean_ctor_get(v___y_3437_, 0); +lean_inc_ref(v_data_3455_); +v_size_3456_ = lean_ctor_get(v___y_3437_, 1); +lean_inc(v_size_3456_); +lean_dec_ref(v___y_3437_); +v___x_3457_ = lean_string_to_utf8(v___y_3454_); +lean_inc_ref(v___x_3457_); +v___x_3458_ = lean_array_push(v_data_3455_, v___x_3457_); +v___x_3459_ = lean_byte_array_size(v___x_3457_); +lean_dec_ref(v___x_3457_); +v___x_3460_ = lean_nat_add(v_size_3456_, v___x_3459_); +lean_dec(v_size_3456_); +v___x_3461_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); +v___x_3462_ = lean_array_push(v___x_3458_, v___x_3461_); +v___x_3463_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); +v___x_3464_ = lean_nat_add(v___x_3460_, v___x_3463_); +lean_dec(v___x_3460_); +switch(lean_obj_tag(v___y_3452_)) +{ +case 0: +{ +lean_object* v_path_3465_; lean_object* v_query_3466_; lean_object* v_segments_3467_; uint8_t v_absolute_3468_; lean_object* v___x_3469_; size_t v_sz_3470_; size_t v___x_3471_; lean_object* v___x_3472_; lean_object* v___x_3473_; lean_object* v_result_3474_; +v_path_3465_ = lean_ctor_get(v___y_3452_, 0); +lean_inc_ref(v_path_3465_); +v_query_3466_ = lean_ctor_get(v___y_3452_, 1); +lean_inc(v_query_3466_); +lean_dec_ref(v___y_3452_); +v_segments_3467_ = lean_ctor_get(v_path_3465_, 0); +lean_inc_ref(v_segments_3467_); +v_absolute_3468_ = lean_ctor_get_uint8(v_path_3465_, sizeof(void*)*1); +lean_dec_ref(v_path_3465_); +v___x_3469_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__11)); +v_sz_3470_ = lean_array_size(v_segments_3467_); +v___x_3471_ = ((size_t)0ULL); +v___x_3472_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__3(v_sz_3470_, v___x_3471_, v_segments_3467_); +v___x_3473_ = lean_array_to_list(v___x_3472_); +v_result_3474_ = l_String_intercalate(v___x_3469_, v___x_3473_); +if (v_absolute_3468_ == 0) +{ +v___y_2976_ = v___y_3434_; +v___y_2977_ = v___y_3435_; +v___y_2978_ = v_query_3466_; +v___y_2979_ = v___x_3463_; +v___y_2980_ = v___y_3436_; +v___y_2981_ = v___y_3438_; +v___y_2982_ = v___y_3439_; +v___y_2983_ = v___y_3440_; +v___y_2984_ = v___y_3441_; +v___y_2985_ = v___y_3442_; +v___y_2986_ = v___y_3443_; +v___y_2987_ = v___x_3462_; +v___y_2988_ = v___y_3444_; +v___y_2989_ = v___y_3446_; +v___y_2990_ = v___y_3445_; +v___y_2991_ = v___y_3447_; +v___y_2992_ = v___y_3448_; +v___y_2993_ = v___x_3461_; +v___y_2994_ = v___y_3449_; +v___y_2995_ = v___y_3450_; +v___y_2996_ = v___y_3451_; +v___y_2997_ = v___x_3464_; +v___y_2998_ = v___y_3453_; +v___y_2999_ = v_result_3474_; +goto v___jp_2975_; +} +else +{ +lean_object* v___x_3475_; +v___x_3475_ = lean_string_append(v___x_3469_, v_result_3474_); +lean_dec_ref(v_result_3474_); +v___y_2976_ = v___y_3434_; +v___y_2977_ = v___y_3435_; +v___y_2978_ = v_query_3466_; +v___y_2979_ = v___x_3463_; +v___y_2980_ = v___y_3436_; +v___y_2981_ = v___y_3438_; +v___y_2982_ = v___y_3439_; +v___y_2983_ = v___y_3440_; +v___y_2984_ = v___y_3441_; +v___y_2985_ = v___y_3442_; +v___y_2986_ = v___y_3443_; +v___y_2987_ = v___x_3462_; +v___y_2988_ = v___y_3444_; +v___y_2989_ = v___y_3446_; +v___y_2990_ = v___y_3445_; +v___y_2991_ = v___y_3447_; +v___y_2992_ = v___y_3448_; +v___y_2993_ = v___x_3461_; +v___y_2994_ = v___y_3449_; +v___y_2995_ = v___y_3450_; +v___y_2996_ = v___y_3451_; +v___y_2997_ = v___x_3464_; +v___y_2998_ = v___y_3453_; +v___y_2999_ = v___x_3475_; +goto v___jp_2975_; } } case 1: { -lean_object* v_uri_3338_; lean_object* v_authority_3339_; -v_uri_3338_ = lean_ctor_get(v___y_3313_, 0); -lean_inc_ref(v_uri_3338_); -lean_dec_ref(v___y_3313_); -v_authority_3339_ = lean_ctor_get(v_uri_3338_, 1); -if (lean_obj_tag(v_authority_3339_) == 0) +lean_object* v_uri_3476_; lean_object* v_authority_3477_; +v_uri_3476_ = lean_ctor_get(v___y_3452_, 0); +lean_inc_ref(v_uri_3476_); +lean_dec_ref(v___y_3452_); +v_authority_3477_ = lean_ctor_get(v_uri_3476_, 1); +if (lean_obj_tag(v_authority_3477_) == 0) { -lean_object* v_scheme_3340_; lean_object* v_path_3341_; lean_object* v_query_3342_; lean_object* v_fragment_3343_; lean_object* v___x_3344_; -v_scheme_3340_ = lean_ctor_get(v_uri_3338_, 0); -lean_inc_ref(v_scheme_3340_); -v_path_3341_ = lean_ctor_get(v_uri_3338_, 2); -lean_inc_ref(v_path_3341_); -v_query_3342_ = lean_ctor_get(v_uri_3338_, 3); -lean_inc_ref(v_query_3342_); -v_fragment_3343_ = lean_ctor_get(v_uri_3338_, 4); -lean_inc(v_fragment_3343_); -lean_dec_ref(v_uri_3338_); -v___x_3344_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3106_ = v___y_3303_; -v___y_3107_ = v___y_3304_; -v___y_3108_ = v___y_3305_; -v___y_3109_ = v___y_3306_; -v___y_3110_ = v___y_3307_; -v___y_3111_ = v___y_3308_; -v___y_3112_ = v___y_3310_; -v___y_3113_ = v___y_3311_; -v___y_3114_ = v___y_3312_; -v___y_3115_ = v_path_3341_; -v___y_3116_ = v___x_3323_; -v___y_3117_ = v___x_3325_; -v___y_3118_ = v___y_3314_; -v___y_3119_ = v_fragment_3343_; -v___y_3120_ = v___x_3326_; -v___y_3121_ = v_scheme_3340_; -v___y_3122_ = v___y_3315_; -v___y_3123_ = v___x_3324_; -v___y_3124_ = v_query_3342_; -v___y_3125_ = v___x_3344_; -goto v___jp_3105_; +lean_object* v_scheme_3478_; lean_object* v_path_3479_; lean_object* v_query_3480_; lean_object* v_fragment_3481_; lean_object* v___x_3482_; +v_scheme_3478_ = lean_ctor_get(v_uri_3476_, 0); +lean_inc_ref(v_scheme_3478_); +v_path_3479_ = lean_ctor_get(v_uri_3476_, 2); +lean_inc_ref(v_path_3479_); +v_query_3480_ = lean_ctor_get(v_uri_3476_, 3); +lean_inc_ref(v_query_3480_); +v_fragment_3481_ = lean_ctor_get(v_uri_3476_, 4); +lean_inc(v_fragment_3481_); +lean_dec_ref(v_uri_3476_); +v___x_3482_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3120_ = v___y_3434_; +v___y_3121_ = v_query_3480_; +v___y_3122_ = v_path_3479_; +v___y_3123_ = v_scheme_3478_; +v___y_3124_ = v___y_3439_; +v___y_3125_ = v_fragment_3481_; +v___y_3126_ = v___y_3441_; +v___y_3127_ = v___y_3442_; +v___y_3128_ = v___y_3443_; +v___y_3129_ = v___y_3449_; +v___y_3130_ = v___y_3450_; +v___y_3131_ = v___y_3451_; +v___y_3132_ = v___y_3435_; +v___y_3133_ = v___x_3463_; +v___y_3134_ = v___y_3436_; +v___y_3135_ = v___y_3438_; +v___y_3136_ = v___y_3440_; +v___y_3137_ = v___x_3462_; +v___y_3138_ = v___y_3444_; +v___y_3139_ = v___y_3445_; +v___y_3140_ = v___y_3446_; +v___y_3141_ = v___y_3448_; +v___y_3142_ = v___y_3447_; +v___y_3143_ = v___x_3461_; +v___y_3144_ = v___x_3464_; +v___y_3145_ = v___y_3453_; +v___y_3146_ = v___x_3482_; +goto v___jp_3119_; } else { -lean_object* v_val_3345_; lean_object* v_scheme_3346_; lean_object* v_path_3347_; lean_object* v_query_3348_; lean_object* v_fragment_3349_; lean_object* v_userInfo_3350_; lean_object* v_host_3351_; lean_object* v_port_3352_; lean_object* v___x_3353_; -v_val_3345_ = lean_ctor_get(v_authority_3339_, 0); -lean_inc(v_val_3345_); -v_scheme_3346_ = lean_ctor_get(v_uri_3338_, 0); -lean_inc_ref(v_scheme_3346_); -v_path_3347_ = lean_ctor_get(v_uri_3338_, 2); -lean_inc_ref(v_path_3347_); -v_query_3348_ = lean_ctor_get(v_uri_3338_, 3); -lean_inc_ref(v_query_3348_); -v_fragment_3349_ = lean_ctor_get(v_uri_3338_, 4); -lean_inc(v_fragment_3349_); -lean_dec_ref(v_uri_3338_); -v_userInfo_3350_ = lean_ctor_get(v_val_3345_, 0); -lean_inc(v_userInfo_3350_); -v_host_3351_ = lean_ctor_get(v_val_3345_, 1); -lean_inc_ref(v_host_3351_); -v_port_3352_ = lean_ctor_get(v_val_3345_, 2); -lean_inc(v_port_3352_); -lean_dec(v_val_3345_); -v___x_3353_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__17)); -if (lean_obj_tag(v_userInfo_3350_) == 0) +lean_object* v_val_3483_; lean_object* v_scheme_3484_; lean_object* v_path_3485_; lean_object* v_query_3486_; lean_object* v_fragment_3487_; lean_object* v_userInfo_3488_; lean_object* v_host_3489_; lean_object* v_port_3490_; lean_object* v___x_3491_; +v_val_3483_ = lean_ctor_get(v_authority_3477_, 0); +lean_inc(v_val_3483_); +v_scheme_3484_ = lean_ctor_get(v_uri_3476_, 0); +lean_inc_ref(v_scheme_3484_); +v_path_3485_ = lean_ctor_get(v_uri_3476_, 2); +lean_inc_ref(v_path_3485_); +v_query_3486_ = lean_ctor_get(v_uri_3476_, 3); +lean_inc_ref(v_query_3486_); +v_fragment_3487_ = lean_ctor_get(v_uri_3476_, 4); +lean_inc(v_fragment_3487_); +lean_dec_ref(v_uri_3476_); +v_userInfo_3488_ = lean_ctor_get(v_val_3483_, 0); +lean_inc(v_userInfo_3488_); +v_host_3489_ = lean_ctor_get(v_val_3483_, 1); +lean_inc_ref(v_host_3489_); +v_port_3490_ = lean_ctor_get(v_val_3483_, 2); +lean_inc(v_port_3490_); +lean_dec(v_val_3483_); +v___x_3491_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__17)); +if (lean_obj_tag(v_userInfo_3488_) == 0) { -lean_object* v___x_3354_; -v___x_3354_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3194_ = v___y_3303_; -v___y_3195_ = v___y_3304_; -v___y_3196_ = v___y_3305_; -v___y_3197_ = v___y_3306_; -v___y_3198_ = v___y_3307_; -v___y_3199_ = v___y_3308_; -v___y_3200_ = v___x_3353_; -v___y_3201_ = v___y_3310_; -v___y_3202_ = v___y_3311_; -v___y_3203_ = v___y_3312_; -v___y_3204_ = v_path_3347_; -v___y_3205_ = v___x_3323_; -v___y_3206_ = v___x_3325_; -v_host_3207_ = v_host_3351_; -v_port_3208_ = v_port_3352_; -v___y_3209_ = v___y_3314_; -v___y_3210_ = v___x_3326_; -v___y_3211_ = v_fragment_3349_; -v___y_3212_ = v_scheme_3346_; -v___y_3213_ = v___y_3315_; -v___y_3214_ = v_query_3348_; -v___y_3215_ = v___x_3324_; -v___y_3216_ = v___x_3354_; -goto v___jp_3193_; +lean_object* v___x_3492_; +v___x_3492_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3229_ = v___y_3434_; +v___y_3230_ = v_query_3486_; +v___y_3231_ = v_scheme_3484_; +v___y_3232_ = v_path_3485_; +v_host_3233_ = v_host_3489_; +v_port_3234_ = v_port_3490_; +v___y_3235_ = v___x_3491_; +v___y_3236_ = v___y_3439_; +v___y_3237_ = v_fragment_3487_; +v___y_3238_ = v___y_3441_; +v___y_3239_ = v___y_3442_; +v___y_3240_ = v___y_3443_; +v___y_3241_ = v___y_3449_; +v___y_3242_ = v___y_3450_; +v___y_3243_ = v___y_3451_; +v___y_3244_ = v___y_3435_; +v___y_3245_ = v___x_3463_; +v___y_3246_ = v___y_3436_; +v___y_3247_ = v___y_3438_; +v___y_3248_ = v___y_3440_; +v___y_3249_ = v___x_3462_; +v___y_3250_ = v___y_3444_; +v___y_3251_ = v___y_3445_; +v___y_3252_ = v___y_3446_; +v___y_3253_ = v___y_3447_; +v___y_3254_ = v___y_3448_; +v___y_3255_ = v___x_3461_; +v___y_3256_ = v___y_3453_; +v___y_3257_ = v___x_3464_; +v___y_3258_ = v___x_3492_; +goto v___jp_3228_; } else { -lean_object* v_val_3355_; lean_object* v_password_3356_; -v_val_3355_ = lean_ctor_get(v_userInfo_3350_, 0); -lean_inc(v_val_3355_); -lean_dec_ref(v_userInfo_3350_); -v_password_3356_ = lean_ctor_get(v_val_3355_, 1); -if (lean_obj_tag(v_password_3356_) == 0) +lean_object* v_val_3493_; lean_object* v_password_3494_; +v_val_3493_ = lean_ctor_get(v_userInfo_3488_, 0); +lean_inc(v_val_3493_); +lean_dec_ref(v_userInfo_3488_); +v_password_3494_ = lean_ctor_get(v_val_3493_, 1); +if (lean_obj_tag(v_password_3494_) == 0) { -lean_object* v_username_3357_; lean_object* v___x_3358_; lean_object* v___x_3359_; lean_object* v___x_3360_; -v_username_3357_ = lean_ctor_get(v_val_3355_, 0); -lean_inc_ref(v_username_3357_); -lean_dec(v_val_3355_); -v___x_3358_ = lean_string_from_utf8_unchecked(v_username_3357_); -v___x_3359_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); -v___x_3360_ = lean_string_append(v___x_3358_, v___x_3359_); -v___y_3194_ = v___y_3303_; -v___y_3195_ = v___y_3304_; -v___y_3196_ = v___y_3305_; -v___y_3197_ = v___y_3306_; -v___y_3198_ = v___y_3307_; -v___y_3199_ = v___y_3308_; -v___y_3200_ = v___x_3353_; -v___y_3201_ = v___y_3310_; -v___y_3202_ = v___y_3311_; -v___y_3203_ = v___y_3312_; -v___y_3204_ = v_path_3347_; -v___y_3205_ = v___x_3323_; -v___y_3206_ = v___x_3325_; -v_host_3207_ = v_host_3351_; -v_port_3208_ = v_port_3352_; -v___y_3209_ = v___y_3314_; -v___y_3210_ = v___x_3326_; -v___y_3211_ = v_fragment_3349_; -v___y_3212_ = v_scheme_3346_; -v___y_3213_ = v___y_3315_; -v___y_3214_ = v_query_3348_; -v___y_3215_ = v___x_3324_; -v___y_3216_ = v___x_3360_; -goto v___jp_3193_; +lean_object* v_username_3495_; lean_object* v___x_3496_; lean_object* v___x_3497_; lean_object* v___x_3498_; +v_username_3495_ = lean_ctor_get(v_val_3493_, 0); +lean_inc_ref(v_username_3495_); +lean_dec(v_val_3493_); +v___x_3496_ = lean_string_from_utf8_unchecked(v_username_3495_); +v___x_3497_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); +v___x_3498_ = lean_string_append(v___x_3496_, v___x_3497_); +v___y_3229_ = v___y_3434_; +v___y_3230_ = v_query_3486_; +v___y_3231_ = v_scheme_3484_; +v___y_3232_ = v_path_3485_; +v_host_3233_ = v_host_3489_; +v_port_3234_ = v_port_3490_; +v___y_3235_ = v___x_3491_; +v___y_3236_ = v___y_3439_; +v___y_3237_ = v_fragment_3487_; +v___y_3238_ = v___y_3441_; +v___y_3239_ = v___y_3442_; +v___y_3240_ = v___y_3443_; +v___y_3241_ = v___y_3449_; +v___y_3242_ = v___y_3450_; +v___y_3243_ = v___y_3451_; +v___y_3244_ = v___y_3435_; +v___y_3245_ = v___x_3463_; +v___y_3246_ = v___y_3436_; +v___y_3247_ = v___y_3438_; +v___y_3248_ = v___y_3440_; +v___y_3249_ = v___x_3462_; +v___y_3250_ = v___y_3444_; +v___y_3251_ = v___y_3445_; +v___y_3252_ = v___y_3446_; +v___y_3253_ = v___y_3447_; +v___y_3254_ = v___y_3448_; +v___y_3255_ = v___x_3461_; +v___y_3256_ = v___y_3453_; +v___y_3257_ = v___x_3464_; +v___y_3258_ = v___x_3498_; +goto v___jp_3228_; } else { -lean_object* v_username_3361_; lean_object* v_val_3362_; lean_object* v___x_3363_; lean_object* v___x_3364_; lean_object* v___x_3365_; lean_object* v___x_3366_; lean_object* v___x_3367_; lean_object* v___x_3368_; lean_object* v___x_3369_; -lean_inc_ref(v_password_3356_); -v_username_3361_ = lean_ctor_get(v_val_3355_, 0); -lean_inc_ref(v_username_3361_); -lean_dec(v_val_3355_); -v_val_3362_ = lean_ctor_get(v_password_3356_, 0); -lean_inc(v_val_3362_); -lean_dec_ref(v_password_3356_); -v___x_3363_ = lean_string_from_utf8_unchecked(v_username_3361_); -v___x_3364_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___x_3365_ = lean_string_append(v___x_3363_, v___x_3364_); -v___x_3366_ = lean_string_from_utf8_unchecked(v_val_3362_); -v___x_3367_ = lean_string_append(v___x_3365_, v___x_3366_); -lean_dec_ref(v___x_3366_); -v___x_3368_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); -v___x_3369_ = lean_string_append(v___x_3367_, v___x_3368_); -v___y_3194_ = v___y_3303_; -v___y_3195_ = v___y_3304_; -v___y_3196_ = v___y_3305_; -v___y_3197_ = v___y_3306_; -v___y_3198_ = v___y_3307_; -v___y_3199_ = v___y_3308_; -v___y_3200_ = v___x_3353_; -v___y_3201_ = v___y_3310_; -v___y_3202_ = v___y_3311_; -v___y_3203_ = v___y_3312_; -v___y_3204_ = v_path_3347_; -v___y_3205_ = v___x_3323_; -v___y_3206_ = v___x_3325_; -v_host_3207_ = v_host_3351_; -v_port_3208_ = v_port_3352_; -v___y_3209_ = v___y_3314_; -v___y_3210_ = v___x_3326_; -v___y_3211_ = v_fragment_3349_; -v___y_3212_ = v_scheme_3346_; -v___y_3213_ = v___y_3315_; -v___y_3214_ = v_query_3348_; -v___y_3215_ = v___x_3324_; -v___y_3216_ = v___x_3369_; -goto v___jp_3193_; +lean_object* v_username_3499_; lean_object* v_val_3500_; lean_object* v___x_3501_; lean_object* v___x_3502_; lean_object* v___x_3503_; lean_object* v___x_3504_; lean_object* v___x_3505_; lean_object* v___x_3506_; lean_object* v___x_3507_; +lean_inc_ref(v_password_3494_); +v_username_3499_ = lean_ctor_get(v_val_3493_, 0); +lean_inc_ref(v_username_3499_); +lean_dec(v_val_3493_); +v_val_3500_ = lean_ctor_get(v_password_3494_, 0); +lean_inc(v_val_3500_); +lean_dec_ref(v_password_3494_); +v___x_3501_ = lean_string_from_utf8_unchecked(v_username_3499_); +v___x_3502_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___x_3503_ = lean_string_append(v___x_3501_, v___x_3502_); +v___x_3504_ = lean_string_from_utf8_unchecked(v_val_3500_); +v___x_3505_ = lean_string_append(v___x_3503_, v___x_3504_); +lean_dec_ref(v___x_3504_); +v___x_3506_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); +v___x_3507_ = lean_string_append(v___x_3505_, v___x_3506_); +v___y_3229_ = v___y_3434_; +v___y_3230_ = v_query_3486_; +v___y_3231_ = v_scheme_3484_; +v___y_3232_ = v_path_3485_; +v_host_3233_ = v_host_3489_; +v_port_3234_ = v_port_3490_; +v___y_3235_ = v___x_3491_; +v___y_3236_ = v___y_3439_; +v___y_3237_ = v_fragment_3487_; +v___y_3238_ = v___y_3441_; +v___y_3239_ = v___y_3442_; +v___y_3240_ = v___y_3443_; +v___y_3241_ = v___y_3449_; +v___y_3242_ = v___y_3450_; +v___y_3243_ = v___y_3451_; +v___y_3244_ = v___y_3435_; +v___y_3245_ = v___x_3463_; +v___y_3246_ = v___y_3436_; +v___y_3247_ = v___y_3438_; +v___y_3248_ = v___y_3440_; +v___y_3249_ = v___x_3462_; +v___y_3250_ = v___y_3444_; +v___y_3251_ = v___y_3445_; +v___y_3252_ = v___y_3446_; +v___y_3253_ = v___y_3447_; +v___y_3254_ = v___y_3448_; +v___y_3255_ = v___x_3461_; +v___y_3256_ = v___y_3453_; +v___y_3257_ = v___x_3464_; +v___y_3258_ = v___x_3507_; +goto v___jp_3228_; } } } } case 2: { -lean_object* v_authority_3370_; lean_object* v_userInfo_3371_; -v_authority_3370_ = lean_ctor_get(v___y_3313_, 0); -lean_inc_ref(v_authority_3370_); -lean_dec_ref(v___y_3313_); -v_userInfo_3371_ = lean_ctor_get(v_authority_3370_, 0); -if (lean_obj_tag(v_userInfo_3371_) == 0) +lean_object* v_authority_3508_; lean_object* v_userInfo_3509_; +v_authority_3508_ = lean_ctor_get(v___y_3452_, 0); +lean_inc_ref(v_authority_3508_); +lean_dec_ref(v___y_3452_); +v_userInfo_3509_ = lean_ctor_get(v_authority_3508_, 0); +if (lean_obj_tag(v_userInfo_3509_) == 0) { -lean_object* v_host_3372_; lean_object* v_port_3373_; lean_object* v___x_3374_; -v_host_3372_ = lean_ctor_get(v_authority_3370_, 1); -lean_inc_ref(v_host_3372_); -v_port_3373_ = lean_ctor_get(v_authority_3370_, 2); -lean_inc(v_port_3373_); -lean_dec_ref(v_authority_3370_); -v___x_3374_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); -v___y_3274_ = v___y_3303_; -v___y_3275_ = v___y_3304_; -v___y_3276_ = v___y_3305_; -v___y_3277_ = v___y_3306_; -v___y_3278_ = v___y_3307_; -v___y_3279_ = v___y_3308_; -v___y_3280_ = v___y_3310_; -v___y_3281_ = v___y_3311_; -v___y_3282_ = v___y_3312_; -v___y_3283_ = v___x_3323_; -v___y_3284_ = v___x_3325_; -v___y_3285_ = v___y_3314_; -v___y_3286_ = v___x_3326_; -v_host_3287_ = v_host_3372_; -v_port_3288_ = v_port_3373_; -v___y_3289_ = v___y_3315_; -v___y_3290_ = v___x_3324_; -v___y_3291_ = v___x_3374_; -goto v___jp_3273_; +lean_object* v_host_3510_; lean_object* v_port_3511_; lean_object* v___x_3512_; +v_host_3510_ = lean_ctor_get(v_authority_3508_, 1); +lean_inc_ref(v_host_3510_); +v_port_3511_ = lean_ctor_get(v_authority_3508_, 2); +lean_inc(v_port_3511_); +lean_dec_ref(v_authority_3508_); +v___x_3512_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___lam__0___closed__2)); +v___y_3330_ = v___y_3434_; +v___y_3331_ = v___y_3435_; +v___y_3332_ = v___x_3463_; +v___y_3333_ = v___y_3436_; +v_host_3334_ = v_host_3510_; +v_port_3335_ = v_port_3511_; +v___y_3336_ = v___y_3438_; +v___y_3337_ = v___y_3439_; +v___y_3338_ = v___y_3440_; +v___y_3339_ = v___y_3441_; +v___y_3340_ = v___y_3442_; +v___y_3341_ = v___y_3444_; +v___y_3342_ = v___y_3443_; +v___y_3343_ = v___x_3462_; +v___y_3344_ = v___y_3446_; +v___y_3345_ = v___y_3445_; +v___y_3346_ = v___y_3447_; +v___y_3347_ = v___y_3448_; +v___y_3348_ = v___x_3461_; +v___y_3349_ = v___y_3449_; +v___y_3350_ = v___y_3450_; +v___y_3351_ = v___y_3451_; +v___y_3352_ = v___x_3464_; +v___y_3353_ = v___y_3453_; +v___y_3354_ = v___x_3512_; +goto v___jp_3329_; } else { -lean_object* v_val_3375_; lean_object* v_password_3376_; -v_val_3375_ = lean_ctor_get(v_userInfo_3371_, 0); -lean_inc(v_val_3375_); -v_password_3376_ = lean_ctor_get(v_val_3375_, 1); -if (lean_obj_tag(v_password_3376_) == 0) +lean_object* v_val_3513_; lean_object* v_password_3514_; +v_val_3513_ = lean_ctor_get(v_userInfo_3509_, 0); +lean_inc(v_val_3513_); +v_password_3514_ = lean_ctor_get(v_val_3513_, 1); +if (lean_obj_tag(v_password_3514_) == 0) { -lean_object* v_host_3377_; lean_object* v_port_3378_; lean_object* v_username_3379_; lean_object* v___x_3380_; lean_object* v___x_3381_; lean_object* v___x_3382_; -v_host_3377_ = lean_ctor_get(v_authority_3370_, 1); -lean_inc_ref(v_host_3377_); -v_port_3378_ = lean_ctor_get(v_authority_3370_, 2); -lean_inc(v_port_3378_); -lean_dec_ref(v_authority_3370_); -v_username_3379_ = lean_ctor_get(v_val_3375_, 0); -lean_inc_ref(v_username_3379_); -lean_dec(v_val_3375_); -v___x_3380_ = lean_string_from_utf8_unchecked(v_username_3379_); -v___x_3381_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); -v___x_3382_ = lean_string_append(v___x_3380_, v___x_3381_); -v___y_3274_ = v___y_3303_; -v___y_3275_ = v___y_3304_; -v___y_3276_ = v___y_3305_; -v___y_3277_ = v___y_3306_; -v___y_3278_ = v___y_3307_; -v___y_3279_ = v___y_3308_; -v___y_3280_ = v___y_3310_; -v___y_3281_ = v___y_3311_; -v___y_3282_ = v___y_3312_; -v___y_3283_ = v___x_3323_; -v___y_3284_ = v___x_3325_; -v___y_3285_ = v___y_3314_; -v___y_3286_ = v___x_3326_; -v_host_3287_ = v_host_3377_; -v_port_3288_ = v_port_3378_; -v___y_3289_ = v___y_3315_; -v___y_3290_ = v___x_3324_; -v___y_3291_ = v___x_3382_; -goto v___jp_3273_; +lean_object* v_host_3515_; lean_object* v_port_3516_; lean_object* v_username_3517_; lean_object* v___x_3518_; lean_object* v___x_3519_; lean_object* v___x_3520_; +v_host_3515_ = lean_ctor_get(v_authority_3508_, 1); +lean_inc_ref(v_host_3515_); +v_port_3516_ = lean_ctor_get(v_authority_3508_, 2); +lean_inc(v_port_3516_); +lean_dec_ref(v_authority_3508_); +v_username_3517_ = lean_ctor_get(v_val_3513_, 0); +lean_inc_ref(v_username_3517_); +lean_dec(v_val_3513_); +v___x_3518_ = lean_string_from_utf8_unchecked(v_username_3517_); +v___x_3519_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); +v___x_3520_ = lean_string_append(v___x_3518_, v___x_3519_); +v___y_3330_ = v___y_3434_; +v___y_3331_ = v___y_3435_; +v___y_3332_ = v___x_3463_; +v___y_3333_ = v___y_3436_; +v_host_3334_ = v_host_3515_; +v_port_3335_ = v_port_3516_; +v___y_3336_ = v___y_3438_; +v___y_3337_ = v___y_3439_; +v___y_3338_ = v___y_3440_; +v___y_3339_ = v___y_3441_; +v___y_3340_ = v___y_3442_; +v___y_3341_ = v___y_3444_; +v___y_3342_ = v___y_3443_; +v___y_3343_ = v___x_3462_; +v___y_3344_ = v___y_3446_; +v___y_3345_ = v___y_3445_; +v___y_3346_ = v___y_3447_; +v___y_3347_ = v___y_3448_; +v___y_3348_ = v___x_3461_; +v___y_3349_ = v___y_3449_; +v___y_3350_ = v___y_3450_; +v___y_3351_ = v___y_3451_; +v___y_3352_ = v___x_3464_; +v___y_3353_ = v___y_3453_; +v___y_3354_ = v___x_3520_; +goto v___jp_3329_; } else { -lean_object* v_host_3383_; lean_object* v_port_3384_; lean_object* v_username_3385_; lean_object* v_val_3386_; lean_object* v___x_3387_; lean_object* v___x_3388_; lean_object* v___x_3389_; lean_object* v___x_3390_; lean_object* v___x_3391_; lean_object* v___x_3392_; lean_object* v___x_3393_; -lean_inc_ref(v_password_3376_); -v_host_3383_ = lean_ctor_get(v_authority_3370_, 1); -lean_inc_ref(v_host_3383_); -v_port_3384_ = lean_ctor_get(v_authority_3370_, 2); -lean_inc(v_port_3384_); -lean_dec_ref(v_authority_3370_); -v_username_3385_ = lean_ctor_get(v_val_3375_, 0); -lean_inc_ref(v_username_3385_); -lean_dec(v_val_3375_); -v_val_3386_ = lean_ctor_get(v_password_3376_, 0); -lean_inc(v_val_3386_); -lean_dec_ref(v_password_3376_); -v___x_3387_ = lean_string_from_utf8_unchecked(v_username_3385_); -v___x_3388_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); -v___x_3389_ = lean_string_append(v___x_3387_, v___x_3388_); -v___x_3390_ = lean_string_from_utf8_unchecked(v_val_3386_); -v___x_3391_ = lean_string_append(v___x_3389_, v___x_3390_); -lean_dec_ref(v___x_3390_); -v___x_3392_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); -v___x_3393_ = lean_string_append(v___x_3391_, v___x_3392_); -v___y_3274_ = v___y_3303_; -v___y_3275_ = v___y_3304_; -v___y_3276_ = v___y_3305_; -v___y_3277_ = v___y_3306_; -v___y_3278_ = v___y_3307_; -v___y_3279_ = v___y_3308_; -v___y_3280_ = v___y_3310_; -v___y_3281_ = v___y_3311_; -v___y_3282_ = v___y_3312_; -v___y_3283_ = v___x_3323_; -v___y_3284_ = v___x_3325_; -v___y_3285_ = v___y_3314_; -v___y_3286_ = v___x_3326_; -v_host_3287_ = v_host_3383_; -v_port_3288_ = v_port_3384_; -v___y_3289_ = v___y_3315_; -v___y_3290_ = v___x_3324_; -v___y_3291_ = v___x_3393_; -goto v___jp_3273_; +lean_object* v_host_3521_; lean_object* v_port_3522_; lean_object* v_username_3523_; lean_object* v_val_3524_; lean_object* v___x_3525_; lean_object* v___x_3526_; lean_object* v___x_3527_; lean_object* v___x_3528_; lean_object* v___x_3529_; lean_object* v___x_3530_; lean_object* v___x_3531_; +lean_inc_ref(v_password_3514_); +v_host_3521_ = lean_ctor_get(v_authority_3508_, 1); +lean_inc_ref(v_host_3521_); +v_port_3522_ = lean_ctor_get(v_authority_3508_, 2); +lean_inc(v_port_3522_); +lean_dec_ref(v_authority_3508_); +v_username_3523_ = lean_ctor_get(v_val_3513_, 0); +lean_inc_ref(v_username_3523_); +lean_dec(v_val_3513_); +v_val_3524_ = lean_ctor_get(v_password_3514_, 0); +lean_inc(v_val_3524_); +lean_dec_ref(v_password_3514_); +v___x_3525_ = lean_string_from_utf8_unchecked(v_username_3523_); +v___x_3526_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__9)); +v___x_3527_ = lean_string_append(v___x_3525_, v___x_3526_); +v___x_3528_ = lean_string_from_utf8_unchecked(v_val_3524_); +v___x_3529_ = lean_string_append(v___x_3527_, v___x_3528_); +lean_dec_ref(v___x_3528_); +v___x_3530_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__18)); +v___x_3531_ = lean_string_append(v___x_3529_, v___x_3530_); +v___y_3330_ = v___y_3434_; +v___y_3331_ = v___y_3435_; +v___y_3332_ = v___x_3463_; +v___y_3333_ = v___y_3436_; +v_host_3334_ = v_host_3521_; +v_port_3335_ = v_port_3522_; +v___y_3336_ = v___y_3438_; +v___y_3337_ = v___y_3439_; +v___y_3338_ = v___y_3440_; +v___y_3339_ = v___y_3441_; +v___y_3340_ = v___y_3442_; +v___y_3341_ = v___y_3444_; +v___y_3342_ = v___y_3443_; +v___y_3343_ = v___x_3462_; +v___y_3344_ = v___y_3446_; +v___y_3345_ = v___y_3445_; +v___y_3346_ = v___y_3447_; +v___y_3347_ = v___y_3448_; +v___y_3348_ = v___x_3461_; +v___y_3349_ = v___y_3449_; +v___y_3350_ = v___y_3450_; +v___y_3351_ = v___y_3451_; +v___y_3352_ = v___x_3464_; +v___y_3353_ = v___y_3453_; +v___y_3354_ = v___x_3531_; +goto v___jp_3329_; } } } default: { -lean_object* v___x_3394_; -v___x_3394_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__19)); -v___y_2963_ = v___y_3303_; -v___y_2964_ = v___y_3304_; -v___y_2965_ = v___y_3305_; -v___y_2966_ = v___y_3306_; -v___y_2967_ = v___y_3307_; -v___y_2968_ = v___y_3308_; -v___y_2969_ = v___y_3310_; -v___y_2970_ = v___y_3311_; -v___y_2971_ = v___y_3312_; -v___y_2972_ = v___x_3323_; -v___y_2973_ = v___x_3325_; -v___y_2974_ = v___y_3314_; -v___y_2975_ = v___x_3326_; -v___y_2976_ = v___y_3315_; -v___y_2977_ = v___x_3324_; -v___y_2978_ = v___x_3394_; -goto v___jp_2962_; +lean_object* v___x_3532_; +v___x_3532_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__19)); +v___y_2942_ = v___y_3434_; +v___y_2943_ = v___y_3435_; +v___y_2944_ = v___x_3463_; +v___y_2945_ = v___y_3436_; +v___y_2946_ = v___y_3438_; +v___y_2947_ = v___y_3439_; +v___y_2948_ = v___y_3440_; +v___y_2949_ = v___y_3441_; +v___y_2950_ = v___y_3442_; +v___y_2951_ = v___y_3443_; +v___y_2952_ = v___x_3462_; +v___y_2953_ = v___y_3444_; +v___y_2954_ = v___y_3445_; +v___y_2955_ = v___y_3446_; +v___y_2956_ = v___y_3448_; +v___y_2957_ = v___y_3447_; +v___y_2958_ = v___x_3461_; +v___y_2959_ = v___y_3449_; +v___y_2960_ = v___y_3450_; +v___y_2961_ = v___y_3451_; +v___y_2962_ = v___y_3453_; +v___y_2963_ = v___x_3464_; +v___y_2964_ = v___x_3532_; +goto v___jp_2941_; } } } -v___jp_3395_: +v___jp_3533_: { -lean_object* v_data_3409_; lean_object* v_size_3410_; lean_object* v___x_3412_; uint8_t v_isShared_3413_; uint8_t v_isSharedCheck_3455_; -v_data_3409_ = lean_ctor_get(v___y_3403_, 0); -v_size_3410_ = lean_ctor_get(v___y_3403_, 1); -v_isSharedCheck_3455_ = !lean_is_exclusive(v___y_3403_); -if (v_isSharedCheck_3455_ == 0) +if (v_dir_2859_ == 0) { -v___x_3412_ = v___y_3403_; -v_isShared_3413_ = v_isSharedCheck_3455_; -goto v_resetjp_3411_; -} -else -{ -lean_inc(v_size_3410_); -lean_inc(v_data_3409_); -lean_dec(v___y_3403_); -v___x_3412_ = lean_box(0); -v_isShared_3413_ = v_isSharedCheck_3455_; -goto v_resetjp_3411_; -} -v_resetjp_3411_: -{ -lean_object* v___x_3414_; lean_object* v___x_3415_; lean_object* v___x_3416_; lean_object* v___x_3417_; lean_object* v___x_3418_; lean_object* v___x_3419_; lean_object* v___x_3420_; lean_object* v___x_3421_; uint16_t v___x_3422_; lean_object* v___x_3423_; lean_object* v___x_3424_; lean_object* v___x_3425_; lean_object* v___x_3426_; lean_object* v___x_3427_; lean_object* v___x_3428_; lean_object* v___x_3429_; lean_object* v___x_3430_; lean_object* v___x_3431_; lean_object* v___x_3432_; lean_object* v___x_3433_; lean_object* v___x_3434_; lean_object* v___x_3435_; lean_object* v___x_3436_; lean_object* v___x_3437_; lean_object* v___x_3438_; lean_object* v___x_3439_; lean_object* v_buffer_3441_; -v___x_3414_ = lean_string_to_utf8(v___y_3408_); -lean_inc_ref(v___x_3414_); -v___x_3415_ = lean_array_push(v_data_3409_, v___x_3414_); -v___x_3416_ = lean_byte_array_size(v___x_3414_); -lean_dec_ref(v___x_3414_); -v___x_3417_ = lean_nat_add(v_size_3410_, v___x_3416_); -lean_dec(v_size_3410_); -v___x_3418_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); -v___x_3419_ = lean_array_push(v___x_3415_, v___x_3418_); -v___x_3420_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); -v___x_3421_ = lean_nat_add(v___x_3417_, v___x_3420_); -lean_dec(v___x_3417_); -v___x_3422_ = l_Std_Http_Status_toCode(v___y_3404_); -v___x_3423_ = lean_uint16_to_nat(v___x_3422_); -v___x_3424_ = l_Nat_reprFast(v___x_3423_); -v___x_3425_ = lean_string_to_utf8(v___x_3424_); -lean_dec_ref(v___x_3424_); -lean_inc_ref(v___x_3425_); -v___x_3426_ = lean_array_push(v___x_3419_, v___x_3425_); -v___x_3427_ = lean_byte_array_size(v___x_3425_); -lean_dec_ref(v___x_3425_); -v___x_3428_ = lean_nat_add(v___x_3421_, v___x_3427_); -lean_dec(v___x_3421_); -v___x_3429_ = lean_array_push(v___x_3426_, v___x_3418_); -v___x_3430_ = lean_nat_add(v___x_3428_, v___x_3420_); -lean_dec(v___x_3428_); -v___x_3431_ = l_Std_Http_Status_reasonPhrase(v___y_3404_); -lean_dec(v___y_3404_); -v___x_3432_ = lean_string_to_utf8(v___x_3431_); -lean_dec_ref(v___x_3431_); -lean_inc_ref(v___x_3432_); -v___x_3433_ = lean_array_push(v___x_3429_, v___x_3432_); -v___x_3434_ = lean_byte_array_size(v___x_3432_); -lean_dec_ref(v___x_3432_); -v___x_3435_ = lean_nat_add(v___x_3430_, v___x_3434_); -lean_dec(v___x_3430_); -v___x_3436_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); -v___x_3437_ = lean_array_push(v___x_3433_, v___x_3436_); -v___x_3438_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); -v___x_3439_ = lean_nat_add(v___x_3435_, v___x_3438_); -lean_dec(v___x_3435_); -if (v_isShared_3413_ == 0) -{ -lean_ctor_set(v___x_3412_, 1, v___x_3439_); -lean_ctor_set(v___x_3412_, 0, v___x_3437_); -v_buffer_3441_ = v___x_3412_; -goto v_reusejp_3440_; -} -else -{ -lean_object* v_reuseFailAlloc_3454_; -v_reuseFailAlloc_3454_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3454_, 0, v___x_3437_); -lean_ctor_set(v_reuseFailAlloc_3454_, 1, v___x_3439_); -v_buffer_3441_ = v_reuseFailAlloc_3454_; -goto v_reusejp_3440_; -} -v_reusejp_3440_: -{ -lean_object* v_buffer_3442_; lean_object* v_data_3443_; lean_object* v_size_3444_; lean_object* v___x_3446_; uint8_t v_isShared_3447_; uint8_t v_isSharedCheck_3453_; -v_buffer_3442_ = l_Std_Http_Headers_fold___redArg(v___y_3401_, v_buffer_3441_, v___f_2926_); -lean_dec_ref(v___y_3401_); -v_data_3443_ = lean_ctor_get(v_buffer_3442_, 0); -v_size_3444_ = lean_ctor_get(v_buffer_3442_, 1); -v_isSharedCheck_3453_ = !lean_is_exclusive(v_buffer_3442_); -if (v_isSharedCheck_3453_ == 0) -{ -v___x_3446_ = v_buffer_3442_; -v_isShared_3447_ = v_isSharedCheck_3453_; -goto v_resetjp_3445_; -} -else -{ -lean_inc(v_size_3444_); -lean_inc(v_data_3443_); -lean_dec(v_buffer_3442_); -v___x_3446_ = lean_box(0); -v_isShared_3447_ = v_isSharedCheck_3453_; -goto v_resetjp_3445_; -} -v_resetjp_3445_: -{ -lean_object* v___x_3448_; lean_object* v___x_3449_; lean_object* v___x_3451_; -v___x_3448_ = lean_array_push(v_data_3443_, v___x_3436_); -v___x_3449_ = lean_nat_add(v_size_3444_, v___x_3438_); -lean_dec(v_size_3444_); -if (v_isShared_3447_ == 0) -{ -lean_ctor_set(v___x_3446_, 1, v___x_3449_); -lean_ctor_set(v___x_3446_, 0, v___x_3448_); -v___x_3451_ = v___x_3446_; -goto v_reusejp_3450_; -} -else -{ -lean_object* v_reuseFailAlloc_3452_; -v_reuseFailAlloc_3452_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3452_, 0, v___x_3448_); -lean_ctor_set(v_reuseFailAlloc_3452_, 1, v___x_3449_); -v___x_3451_ = v_reuseFailAlloc_3452_; -goto v_reusejp_3450_; -} -v_reusejp_3450_: -{ -v___y_2908_ = v___y_3397_; -v___y_2909_ = v___y_3396_; -v___y_2910_ = v___y_3400_; -v___y_2911_ = v___y_3399_; -v___y_2912_ = v___y_3398_; -v___y_2913_ = v___y_3402_; -v___y_2914_ = v___y_3406_; -v___y_2915_ = v___y_3405_; -v___y_2916_ = v___y_3407_; -v___y_2917_ = v___x_3451_; -goto v___jp_2907_; -} -} -} -} -} -v___jp_3456_: -{ -lean_object* v_userData_3460_; lean_object* v_outputData_3461_; lean_object* v_knownSize_3462_; lean_object* v_messageHead_3463_; uint8_t v_sentMessage_3464_; uint8_t v_userClosedBody_3465_; uint8_t v_omitBody_3466_; lean_object* v_userDataBytes_3467_; lean_object* v_state_3468_; -v_userData_3460_ = lean_ctor_get(v_writer_2896_, 0); -lean_inc_ref(v_userData_3460_); -v_outputData_3461_ = lean_ctor_get(v_writer_2896_, 1); -lean_inc_ref(v_outputData_3461_); -v_knownSize_3462_ = lean_ctor_get(v_writer_2896_, 3); -lean_inc(v_knownSize_3462_); -v_messageHead_3463_ = lean_ctor_get(v_writer_2896_, 4); -lean_inc(v_messageHead_3463_); -v_sentMessage_3464_ = lean_ctor_get_uint8(v_writer_2896_, sizeof(void*)*6); -v_userClosedBody_3465_ = lean_ctor_get_uint8(v_writer_2896_, sizeof(void*)*6 + 1); -v_omitBody_3466_ = lean_ctor_get_uint8(v_writer_2896_, sizeof(void*)*6 + 2); -v_userDataBytes_3467_ = lean_ctor_get(v_writer_2896_, 5); -lean_inc(v_userDataBytes_3467_); -lean_dec_ref(v_writer_2896_); -v_state_3468_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v_state_3468_, 0, v___y_3458_); -if (v_dir_2892_ == 0) -{ -lean_object* v_status_3469_; uint8_t v___x_3470_; -v_status_3469_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_status_3469_); -lean_dec(v_messageHead_2893_); -v___x_3470_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2892_, v_messageHead_2922_); -switch(v___x_3470_) +lean_object* v_userData_3545_; lean_object* v_outputData_3546_; lean_object* v_knownSize_3547_; lean_object* v_messageHead_3548_; uint8_t v_sentMessage_3549_; uint8_t v_userClosedBody_3550_; uint8_t v_omitBody_3551_; lean_object* v_userDataBytes_3552_; lean_object* v_status_3553_; uint8_t v___x_3554_; +v_userData_3545_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3545_); +v_outputData_3546_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3546_); +v_knownSize_3547_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3547_); +v_messageHead_3548_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3548_); +v_sentMessage_3549_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3550_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3551_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3552_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3552_); +lean_dec_ref(v_writer_3535_); +v_status_3553_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_status_3553_); +lean_dec(v_messageHead_2860_); +v___x_3554_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2859_, v_messageHead_2894_); +lean_dec(v_messageHead_2894_); +switch(v___x_3554_) { case 0: { -lean_object* v___x_3471_; -v___x_3471_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__3)); -v___y_3396_ = v_state_3468_; -v___y_3397_ = v___y_3457_; -v___y_3398_ = v_sentMessage_3464_; -v___y_3399_ = v_omitBody_3466_; -v___y_3400_ = v_userDataBytes_3467_; -v___y_3401_ = v___y_3459_; -v___y_3402_ = v_messageHead_3463_; -v___y_3403_ = v_outputData_3461_; -v___y_3404_ = v_status_3469_; -v___y_3405_ = v_knownSize_3462_; -v___y_3406_ = v_userClosedBody_3465_; -v___y_3407_ = v_userData_3460_; -v___y_3408_ = v___x_3471_; -goto v___jp_3395_; +lean_object* v___x_3555_; +v___x_3555_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__3)); +v___y_3366_ = v_omitBody_3551_; +v___y_3367_ = v_userDataBytes_3552_; +v___y_3368_ = v_instant_3539_; +v___y_3369_ = v_outputData_3546_; +v___y_3370_ = v___y_3544_; +v___y_3371_ = v_config_3536_; +v___y_3372_ = v_pullBodyStalled_3542_; +v___y_3373_ = v___y_3543_; +v___y_3374_ = v_knownSize_3547_; +v___y_3375_ = v_userData_3545_; +v___y_3376_ = v_reader_3534_; +v___y_3377_ = v_error_3538_; +v___y_3378_ = v_userClosedBody_3550_; +v___y_3379_ = v_messageHead_3548_; +v___y_3380_ = v_keepAlive_3540_; +v___y_3381_ = v_sentMessage_3549_; +v___y_3382_ = v_events_3537_; +v___y_3383_ = v_status_3553_; +v___y_3384_ = v_forcedFlush_3541_; +v___y_3385_ = v___x_3555_; +goto v___jp_3365_; } case 1: { -lean_object* v___x_3472_; -v___x_3472_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); -v___y_3396_ = v_state_3468_; -v___y_3397_ = v___y_3457_; -v___y_3398_ = v_sentMessage_3464_; -v___y_3399_ = v_omitBody_3466_; -v___y_3400_ = v_userDataBytes_3467_; -v___y_3401_ = v___y_3459_; -v___y_3402_ = v_messageHead_3463_; -v___y_3403_ = v_outputData_3461_; -v___y_3404_ = v_status_3469_; -v___y_3405_ = v_knownSize_3462_; -v___y_3406_ = v_userClosedBody_3465_; -v___y_3407_ = v_userData_3460_; -v___y_3408_ = v___x_3472_; -goto v___jp_3395_; +lean_object* v___x_3556_; +v___x_3556_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); +v___y_3366_ = v_omitBody_3551_; +v___y_3367_ = v_userDataBytes_3552_; +v___y_3368_ = v_instant_3539_; +v___y_3369_ = v_outputData_3546_; +v___y_3370_ = v___y_3544_; +v___y_3371_ = v_config_3536_; +v___y_3372_ = v_pullBodyStalled_3542_; +v___y_3373_ = v___y_3543_; +v___y_3374_ = v_knownSize_3547_; +v___y_3375_ = v_userData_3545_; +v___y_3376_ = v_reader_3534_; +v___y_3377_ = v_error_3538_; +v___y_3378_ = v_userClosedBody_3550_; +v___y_3379_ = v_messageHead_3548_; +v___y_3380_ = v_keepAlive_3540_; +v___y_3381_ = v_sentMessage_3549_; +v___y_3382_ = v_events_3537_; +v___y_3383_ = v_status_3553_; +v___y_3384_ = v_forcedFlush_3541_; +v___y_3385_ = v___x_3556_; +goto v___jp_3365_; } case 2: { -lean_object* v___x_3473_; -v___x_3473_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__5)); -v___y_3396_ = v_state_3468_; -v___y_3397_ = v___y_3457_; -v___y_3398_ = v_sentMessage_3464_; -v___y_3399_ = v_omitBody_3466_; -v___y_3400_ = v_userDataBytes_3467_; -v___y_3401_ = v___y_3459_; -v___y_3402_ = v_messageHead_3463_; -v___y_3403_ = v_outputData_3461_; -v___y_3404_ = v_status_3469_; -v___y_3405_ = v_knownSize_3462_; -v___y_3406_ = v_userClosedBody_3465_; -v___y_3407_ = v_userData_3460_; -v___y_3408_ = v___x_3473_; -goto v___jp_3395_; +lean_object* v___x_3557_; +v___x_3557_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__5)); +v___y_3366_ = v_omitBody_3551_; +v___y_3367_ = v_userDataBytes_3552_; +v___y_3368_ = v_instant_3539_; +v___y_3369_ = v_outputData_3546_; +v___y_3370_ = v___y_3544_; +v___y_3371_ = v_config_3536_; +v___y_3372_ = v_pullBodyStalled_3542_; +v___y_3373_ = v___y_3543_; +v___y_3374_ = v_knownSize_3547_; +v___y_3375_ = v_userData_3545_; +v___y_3376_ = v_reader_3534_; +v___y_3377_ = v_error_3538_; +v___y_3378_ = v_userClosedBody_3550_; +v___y_3379_ = v_messageHead_3548_; +v___y_3380_ = v_keepAlive_3540_; +v___y_3381_ = v_sentMessage_3549_; +v___y_3382_ = v_events_3537_; +v___y_3383_ = v_status_3553_; +v___y_3384_ = v_forcedFlush_3541_; +v___y_3385_ = v___x_3557_; +goto v___jp_3365_; } default: { -lean_object* v___x_3474_; -v___x_3474_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__6)); -v___y_3396_ = v_state_3468_; -v___y_3397_ = v___y_3457_; -v___y_3398_ = v_sentMessage_3464_; -v___y_3399_ = v_omitBody_3466_; -v___y_3400_ = v_userDataBytes_3467_; -v___y_3401_ = v___y_3459_; -v___y_3402_ = v_messageHead_3463_; -v___y_3403_ = v_outputData_3461_; -v___y_3404_ = v_status_3469_; -v___y_3405_ = v_knownSize_3462_; -v___y_3406_ = v_userClosedBody_3465_; -v___y_3407_ = v_userData_3460_; -v___y_3408_ = v___x_3474_; -goto v___jp_3395_; +lean_object* v___x_3558_; +v___x_3558_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__6)); +v___y_3366_ = v_omitBody_3551_; +v___y_3367_ = v_userDataBytes_3552_; +v___y_3368_ = v_instant_3539_; +v___y_3369_ = v_outputData_3546_; +v___y_3370_ = v___y_3544_; +v___y_3371_ = v_config_3536_; +v___y_3372_ = v_pullBodyStalled_3542_; +v___y_3373_ = v___y_3543_; +v___y_3374_ = v_knownSize_3547_; +v___y_3375_ = v_userData_3545_; +v___y_3376_ = v_reader_3534_; +v___y_3377_ = v_error_3538_; +v___y_3378_ = v_userClosedBody_3550_; +v___y_3379_ = v_messageHead_3548_; +v___y_3380_ = v_keepAlive_3540_; +v___y_3381_ = v_sentMessage_3549_; +v___y_3382_ = v_events_3537_; +v___y_3383_ = v_status_3553_; +v___y_3384_ = v_forcedFlush_3541_; +v___y_3385_ = v___x_3558_; +goto v___jp_3365_; } } } else { -uint8_t v_method_3475_; -v_method_3475_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2); -switch(v_method_3475_) +uint8_t v_method_3559_; +lean_dec(v_messageHead_2894_); +v_method_3559_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2); +switch(v_method_3559_) { case 0: { -uint8_t v_version_3476_; lean_object* v_uri_3477_; lean_object* v___x_3478_; -v_version_3476_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3477_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3477_); -lean_dec(v_messageHead_2893_); -v___x_3478_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__20)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3477_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3476_; -v___y_3316_ = v___x_3478_; -goto v___jp_3302_; +lean_object* v_userData_3560_; lean_object* v_outputData_3561_; lean_object* v_knownSize_3562_; lean_object* v_messageHead_3563_; uint8_t v_sentMessage_3564_; uint8_t v_userClosedBody_3565_; uint8_t v_omitBody_3566_; lean_object* v_userDataBytes_3567_; uint8_t v_version_3568_; lean_object* v_uri_3569_; lean_object* v___x_3570_; +v_userData_3560_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3560_); +v_outputData_3561_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3561_); +v_knownSize_3562_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3562_); +v_messageHead_3563_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3563_); +v_sentMessage_3564_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3565_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3566_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3567_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3567_); +lean_dec_ref(v_writer_3535_); +v_version_3568_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3569_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3569_); +lean_dec(v_messageHead_2860_); +v___x_3570_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__20)); +v___y_3434_ = v_omitBody_3566_; +v___y_3435_ = v_userDataBytes_3567_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3561_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3562_; +v___y_3443_ = v_version_3568_; +v___y_3444_ = v_userData_3560_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3565_; +v___y_3448_ = v_messageHead_3563_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3564_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3569_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3570_; +goto v___jp_3433_; } case 1: { -uint8_t v_version_3479_; lean_object* v_uri_3480_; lean_object* v___x_3481_; -v_version_3479_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3480_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3480_); -lean_dec(v_messageHead_2893_); -v___x_3481_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__21)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3480_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3479_; -v___y_3316_ = v___x_3481_; -goto v___jp_3302_; +lean_object* v_userData_3571_; lean_object* v_outputData_3572_; lean_object* v_knownSize_3573_; lean_object* v_messageHead_3574_; uint8_t v_sentMessage_3575_; uint8_t v_userClosedBody_3576_; uint8_t v_omitBody_3577_; lean_object* v_userDataBytes_3578_; uint8_t v_version_3579_; lean_object* v_uri_3580_; lean_object* v___x_3581_; +v_userData_3571_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3571_); +v_outputData_3572_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3572_); +v_knownSize_3573_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3573_); +v_messageHead_3574_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3574_); +v_sentMessage_3575_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3576_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3577_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3578_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3578_); +lean_dec_ref(v_writer_3535_); +v_version_3579_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3580_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3580_); +lean_dec(v_messageHead_2860_); +v___x_3581_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__21)); +v___y_3434_ = v_omitBody_3577_; +v___y_3435_ = v_userDataBytes_3578_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3572_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3573_; +v___y_3443_ = v_version_3579_; +v___y_3444_ = v_userData_3571_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3576_; +v___y_3448_ = v_messageHead_3574_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3575_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3580_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3581_; +goto v___jp_3433_; } case 2: { -uint8_t v_version_3482_; lean_object* v_uri_3483_; lean_object* v___x_3484_; -v_version_3482_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3483_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3483_); -lean_dec(v_messageHead_2893_); -v___x_3484_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__22)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3483_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3482_; -v___y_3316_ = v___x_3484_; -goto v___jp_3302_; +lean_object* v_userData_3582_; lean_object* v_outputData_3583_; lean_object* v_knownSize_3584_; lean_object* v_messageHead_3585_; uint8_t v_sentMessage_3586_; uint8_t v_userClosedBody_3587_; uint8_t v_omitBody_3588_; lean_object* v_userDataBytes_3589_; uint8_t v_version_3590_; lean_object* v_uri_3591_; lean_object* v___x_3592_; +v_userData_3582_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3582_); +v_outputData_3583_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3583_); +v_knownSize_3584_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3584_); +v_messageHead_3585_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3585_); +v_sentMessage_3586_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3587_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3588_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3589_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3589_); +lean_dec_ref(v_writer_3535_); +v_version_3590_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3591_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3591_); +lean_dec(v_messageHead_2860_); +v___x_3592_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__22)); +v___y_3434_ = v_omitBody_3588_; +v___y_3435_ = v_userDataBytes_3589_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3583_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3584_; +v___y_3443_ = v_version_3590_; +v___y_3444_ = v_userData_3582_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3587_; +v___y_3448_ = v_messageHead_3585_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3586_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3591_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3592_; +goto v___jp_3433_; } case 3: { -uint8_t v_version_3485_; lean_object* v_uri_3486_; lean_object* v___x_3487_; -v_version_3485_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3486_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3486_); -lean_dec(v_messageHead_2893_); -v___x_3487_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__23)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3486_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3485_; -v___y_3316_ = v___x_3487_; -goto v___jp_3302_; +lean_object* v_userData_3593_; lean_object* v_outputData_3594_; lean_object* v_knownSize_3595_; lean_object* v_messageHead_3596_; uint8_t v_sentMessage_3597_; uint8_t v_userClosedBody_3598_; uint8_t v_omitBody_3599_; lean_object* v_userDataBytes_3600_; uint8_t v_version_3601_; lean_object* v_uri_3602_; lean_object* v___x_3603_; +v_userData_3593_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3593_); +v_outputData_3594_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3594_); +v_knownSize_3595_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3595_); +v_messageHead_3596_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3596_); +v_sentMessage_3597_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3598_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3599_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3600_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3600_); +lean_dec_ref(v_writer_3535_); +v_version_3601_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3602_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3602_); +lean_dec(v_messageHead_2860_); +v___x_3603_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__23)); +v___y_3434_ = v_omitBody_3599_; +v___y_3435_ = v_userDataBytes_3600_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3594_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3595_; +v___y_3443_ = v_version_3601_; +v___y_3444_ = v_userData_3593_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3598_; +v___y_3448_ = v_messageHead_3596_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3597_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3602_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3603_; +goto v___jp_3433_; } case 4: { -uint8_t v_version_3488_; lean_object* v_uri_3489_; lean_object* v___x_3490_; -v_version_3488_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3489_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3489_); -lean_dec(v_messageHead_2893_); -v___x_3490_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__24)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3489_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3488_; -v___y_3316_ = v___x_3490_; -goto v___jp_3302_; +lean_object* v_userData_3604_; lean_object* v_outputData_3605_; lean_object* v_knownSize_3606_; lean_object* v_messageHead_3607_; uint8_t v_sentMessage_3608_; uint8_t v_userClosedBody_3609_; uint8_t v_omitBody_3610_; lean_object* v_userDataBytes_3611_; uint8_t v_version_3612_; lean_object* v_uri_3613_; lean_object* v___x_3614_; +v_userData_3604_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3604_); +v_outputData_3605_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3605_); +v_knownSize_3606_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3606_); +v_messageHead_3607_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3607_); +v_sentMessage_3608_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3609_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3610_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3611_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3611_); +lean_dec_ref(v_writer_3535_); +v_version_3612_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3613_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3613_); +lean_dec(v_messageHead_2860_); +v___x_3614_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__24)); +v___y_3434_ = v_omitBody_3610_; +v___y_3435_ = v_userDataBytes_3611_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3605_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3606_; +v___y_3443_ = v_version_3612_; +v___y_3444_ = v_userData_3604_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3609_; +v___y_3448_ = v_messageHead_3607_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3608_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3613_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3614_; +goto v___jp_3433_; } case 5: { -uint8_t v_version_3491_; lean_object* v_uri_3492_; lean_object* v___x_3493_; -v_version_3491_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3492_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3492_); -lean_dec(v_messageHead_2893_); -v___x_3493_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__25)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3492_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3491_; -v___y_3316_ = v___x_3493_; -goto v___jp_3302_; +lean_object* v_userData_3615_; lean_object* v_outputData_3616_; lean_object* v_knownSize_3617_; lean_object* v_messageHead_3618_; uint8_t v_sentMessage_3619_; uint8_t v_userClosedBody_3620_; uint8_t v_omitBody_3621_; lean_object* v_userDataBytes_3622_; uint8_t v_version_3623_; lean_object* v_uri_3624_; lean_object* v___x_3625_; +v_userData_3615_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3615_); +v_outputData_3616_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3616_); +v_knownSize_3617_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3617_); +v_messageHead_3618_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3618_); +v_sentMessage_3619_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3620_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3621_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3622_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3622_); +lean_dec_ref(v_writer_3535_); +v_version_3623_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3624_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3624_); +lean_dec(v_messageHead_2860_); +v___x_3625_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__25)); +v___y_3434_ = v_omitBody_3621_; +v___y_3435_ = v_userDataBytes_3622_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3616_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3617_; +v___y_3443_ = v_version_3623_; +v___y_3444_ = v_userData_3615_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3620_; +v___y_3448_ = v_messageHead_3618_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3619_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3624_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3625_; +goto v___jp_3433_; } case 6: { -uint8_t v_version_3494_; lean_object* v_uri_3495_; lean_object* v___x_3496_; -v_version_3494_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3495_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3495_); -lean_dec(v_messageHead_2893_); -v___x_3496_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__26)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3495_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3494_; -v___y_3316_ = v___x_3496_; -goto v___jp_3302_; +lean_object* v_userData_3626_; lean_object* v_outputData_3627_; lean_object* v_knownSize_3628_; lean_object* v_messageHead_3629_; uint8_t v_sentMessage_3630_; uint8_t v_userClosedBody_3631_; uint8_t v_omitBody_3632_; lean_object* v_userDataBytes_3633_; uint8_t v_version_3634_; lean_object* v_uri_3635_; lean_object* v___x_3636_; +v_userData_3626_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3626_); +v_outputData_3627_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3627_); +v_knownSize_3628_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3628_); +v_messageHead_3629_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3629_); +v_sentMessage_3630_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3631_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3632_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3633_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3633_); +lean_dec_ref(v_writer_3535_); +v_version_3634_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3635_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3635_); +lean_dec(v_messageHead_2860_); +v___x_3636_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__26)); +v___y_3434_ = v_omitBody_3632_; +v___y_3435_ = v_userDataBytes_3633_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3627_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3628_; +v___y_3443_ = v_version_3634_; +v___y_3444_ = v_userData_3626_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3631_; +v___y_3448_ = v_messageHead_3629_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3630_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3635_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3636_; +goto v___jp_3433_; } case 7: { -uint8_t v_version_3497_; lean_object* v_uri_3498_; lean_object* v___x_3499_; -v_version_3497_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3498_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3498_); -lean_dec(v_messageHead_2893_); -v___x_3499_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__27)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3498_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3497_; -v___y_3316_ = v___x_3499_; -goto v___jp_3302_; +lean_object* v_userData_3637_; lean_object* v_outputData_3638_; lean_object* v_knownSize_3639_; lean_object* v_messageHead_3640_; uint8_t v_sentMessage_3641_; uint8_t v_userClosedBody_3642_; uint8_t v_omitBody_3643_; lean_object* v_userDataBytes_3644_; uint8_t v_version_3645_; lean_object* v_uri_3646_; lean_object* v___x_3647_; +v_userData_3637_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3637_); +v_outputData_3638_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3638_); +v_knownSize_3639_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3639_); +v_messageHead_3640_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3640_); +v_sentMessage_3641_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3642_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3643_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3644_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3644_); +lean_dec_ref(v_writer_3535_); +v_version_3645_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3646_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3646_); +lean_dec(v_messageHead_2860_); +v___x_3647_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__27)); +v___y_3434_ = v_omitBody_3643_; +v___y_3435_ = v_userDataBytes_3644_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3638_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3639_; +v___y_3443_ = v_version_3645_; +v___y_3444_ = v_userData_3637_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3642_; +v___y_3448_ = v_messageHead_3640_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3641_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3646_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3647_; +goto v___jp_3433_; } case 8: { -uint8_t v_version_3500_; lean_object* v_uri_3501_; lean_object* v___x_3502_; -v_version_3500_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3501_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3501_); -lean_dec(v_messageHead_2893_); -v___x_3502_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__28)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3501_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3500_; -v___y_3316_ = v___x_3502_; -goto v___jp_3302_; +lean_object* v_userData_3648_; lean_object* v_outputData_3649_; lean_object* v_knownSize_3650_; lean_object* v_messageHead_3651_; uint8_t v_sentMessage_3652_; uint8_t v_userClosedBody_3653_; uint8_t v_omitBody_3654_; lean_object* v_userDataBytes_3655_; uint8_t v_version_3656_; lean_object* v_uri_3657_; lean_object* v___x_3658_; +v_userData_3648_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3648_); +v_outputData_3649_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3649_); +v_knownSize_3650_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3650_); +v_messageHead_3651_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3651_); +v_sentMessage_3652_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3653_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3654_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3655_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3655_); +lean_dec_ref(v_writer_3535_); +v_version_3656_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3657_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3657_); +lean_dec(v_messageHead_2860_); +v___x_3658_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__28)); +v___y_3434_ = v_omitBody_3654_; +v___y_3435_ = v_userDataBytes_3655_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3649_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3650_; +v___y_3443_ = v_version_3656_; +v___y_3444_ = v_userData_3648_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3653_; +v___y_3448_ = v_messageHead_3651_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3652_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3657_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3658_; +goto v___jp_3433_; } case 9: { -uint8_t v_version_3503_; lean_object* v_uri_3504_; lean_object* v___x_3505_; -v_version_3503_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3504_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3504_); -lean_dec(v_messageHead_2893_); -v___x_3505_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__29)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3504_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3503_; -v___y_3316_ = v___x_3505_; -goto v___jp_3302_; +lean_object* v_userData_3659_; lean_object* v_outputData_3660_; lean_object* v_knownSize_3661_; lean_object* v_messageHead_3662_; uint8_t v_sentMessage_3663_; uint8_t v_userClosedBody_3664_; uint8_t v_omitBody_3665_; lean_object* v_userDataBytes_3666_; uint8_t v_version_3667_; lean_object* v_uri_3668_; lean_object* v___x_3669_; +v_userData_3659_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3659_); +v_outputData_3660_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3660_); +v_knownSize_3661_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3661_); +v_messageHead_3662_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3662_); +v_sentMessage_3663_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3664_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3665_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3666_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3666_); +lean_dec_ref(v_writer_3535_); +v_version_3667_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3668_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3668_); +lean_dec(v_messageHead_2860_); +v___x_3669_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__29)); +v___y_3434_ = v_omitBody_3665_; +v___y_3435_ = v_userDataBytes_3666_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3660_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3661_; +v___y_3443_ = v_version_3667_; +v___y_3444_ = v_userData_3659_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3664_; +v___y_3448_ = v_messageHead_3662_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3663_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3668_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3669_; +goto v___jp_3433_; } case 10: { -uint8_t v_version_3506_; lean_object* v_uri_3507_; lean_object* v___x_3508_; -v_version_3506_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3507_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3507_); -lean_dec(v_messageHead_2893_); -v___x_3508_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__30)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3507_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3506_; -v___y_3316_ = v___x_3508_; -goto v___jp_3302_; +lean_object* v_userData_3670_; lean_object* v_outputData_3671_; lean_object* v_knownSize_3672_; lean_object* v_messageHead_3673_; uint8_t v_sentMessage_3674_; uint8_t v_userClosedBody_3675_; uint8_t v_omitBody_3676_; lean_object* v_userDataBytes_3677_; uint8_t v_version_3678_; lean_object* v_uri_3679_; lean_object* v___x_3680_; +v_userData_3670_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3670_); +v_outputData_3671_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3671_); +v_knownSize_3672_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3672_); +v_messageHead_3673_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3673_); +v_sentMessage_3674_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3675_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3676_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3677_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3677_); +lean_dec_ref(v_writer_3535_); +v_version_3678_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3679_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3679_); +lean_dec(v_messageHead_2860_); +v___x_3680_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__30)); +v___y_3434_ = v_omitBody_3676_; +v___y_3435_ = v_userDataBytes_3677_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3671_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3672_; +v___y_3443_ = v_version_3678_; +v___y_3444_ = v_userData_3670_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3675_; +v___y_3448_ = v_messageHead_3673_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3674_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3679_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3680_; +goto v___jp_3433_; } case 11: { -uint8_t v_version_3509_; lean_object* v_uri_3510_; lean_object* v___x_3511_; -v_version_3509_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3510_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3510_); -lean_dec(v_messageHead_2893_); -v___x_3511_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__31)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3510_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3509_; -v___y_3316_ = v___x_3511_; -goto v___jp_3302_; +lean_object* v_userData_3681_; lean_object* v_outputData_3682_; lean_object* v_knownSize_3683_; lean_object* v_messageHead_3684_; uint8_t v_sentMessage_3685_; uint8_t v_userClosedBody_3686_; uint8_t v_omitBody_3687_; lean_object* v_userDataBytes_3688_; uint8_t v_version_3689_; lean_object* v_uri_3690_; lean_object* v___x_3691_; +v_userData_3681_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3681_); +v_outputData_3682_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3682_); +v_knownSize_3683_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3683_); +v_messageHead_3684_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3684_); +v_sentMessage_3685_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3686_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3687_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3688_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3688_); +lean_dec_ref(v_writer_3535_); +v_version_3689_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3690_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3690_); +lean_dec(v_messageHead_2860_); +v___x_3691_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__31)); +v___y_3434_ = v_omitBody_3687_; +v___y_3435_ = v_userDataBytes_3688_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3682_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3683_; +v___y_3443_ = v_version_3689_; +v___y_3444_ = v_userData_3681_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3686_; +v___y_3448_ = v_messageHead_3684_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3685_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3690_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3691_; +goto v___jp_3433_; } case 12: { -uint8_t v_version_3512_; lean_object* v_uri_3513_; lean_object* v___x_3514_; -v_version_3512_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3513_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3513_); -lean_dec(v_messageHead_2893_); -v___x_3514_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__32)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3513_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3512_; -v___y_3316_ = v___x_3514_; -goto v___jp_3302_; +lean_object* v_userData_3692_; lean_object* v_outputData_3693_; lean_object* v_knownSize_3694_; lean_object* v_messageHead_3695_; uint8_t v_sentMessage_3696_; uint8_t v_userClosedBody_3697_; uint8_t v_omitBody_3698_; lean_object* v_userDataBytes_3699_; uint8_t v_version_3700_; lean_object* v_uri_3701_; lean_object* v___x_3702_; +v_userData_3692_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3692_); +v_outputData_3693_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3693_); +v_knownSize_3694_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3694_); +v_messageHead_3695_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3695_); +v_sentMessage_3696_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3697_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3698_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3699_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3699_); +lean_dec_ref(v_writer_3535_); +v_version_3700_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3701_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3701_); +lean_dec(v_messageHead_2860_); +v___x_3702_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__32)); +v___y_3434_ = v_omitBody_3698_; +v___y_3435_ = v_userDataBytes_3699_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3693_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3694_; +v___y_3443_ = v_version_3700_; +v___y_3444_ = v_userData_3692_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3697_; +v___y_3448_ = v_messageHead_3695_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3696_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3701_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3702_; +goto v___jp_3433_; } case 13: { -uint8_t v_version_3515_; lean_object* v_uri_3516_; lean_object* v___x_3517_; -v_version_3515_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3516_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3516_); -lean_dec(v_messageHead_2893_); -v___x_3517_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__33)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3516_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3515_; -v___y_3316_ = v___x_3517_; -goto v___jp_3302_; +lean_object* v_userData_3703_; lean_object* v_outputData_3704_; lean_object* v_knownSize_3705_; lean_object* v_messageHead_3706_; uint8_t v_sentMessage_3707_; uint8_t v_userClosedBody_3708_; uint8_t v_omitBody_3709_; lean_object* v_userDataBytes_3710_; uint8_t v_version_3711_; lean_object* v_uri_3712_; lean_object* v___x_3713_; +v_userData_3703_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3703_); +v_outputData_3704_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3704_); +v_knownSize_3705_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3705_); +v_messageHead_3706_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3706_); +v_sentMessage_3707_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3708_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3709_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3710_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3710_); +lean_dec_ref(v_writer_3535_); +v_version_3711_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3712_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3712_); +lean_dec(v_messageHead_2860_); +v___x_3713_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__33)); +v___y_3434_ = v_omitBody_3709_; +v___y_3435_ = v_userDataBytes_3710_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3704_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3705_; +v___y_3443_ = v_version_3711_; +v___y_3444_ = v_userData_3703_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3708_; +v___y_3448_ = v_messageHead_3706_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3707_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3712_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3713_; +goto v___jp_3433_; } case 14: { -uint8_t v_version_3518_; lean_object* v_uri_3519_; lean_object* v___x_3520_; -v_version_3518_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3519_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3519_); -lean_dec(v_messageHead_2893_); -v___x_3520_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__34)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3519_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3518_; -v___y_3316_ = v___x_3520_; -goto v___jp_3302_; +lean_object* v_userData_3714_; lean_object* v_outputData_3715_; lean_object* v_knownSize_3716_; lean_object* v_messageHead_3717_; uint8_t v_sentMessage_3718_; uint8_t v_userClosedBody_3719_; uint8_t v_omitBody_3720_; lean_object* v_userDataBytes_3721_; uint8_t v_version_3722_; lean_object* v_uri_3723_; lean_object* v___x_3724_; +v_userData_3714_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3714_); +v_outputData_3715_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3715_); +v_knownSize_3716_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3716_); +v_messageHead_3717_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3717_); +v_sentMessage_3718_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3719_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3720_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3721_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3721_); +lean_dec_ref(v_writer_3535_); +v_version_3722_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3723_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3723_); +lean_dec(v_messageHead_2860_); +v___x_3724_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__34)); +v___y_3434_ = v_omitBody_3720_; +v___y_3435_ = v_userDataBytes_3721_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3715_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3716_; +v___y_3443_ = v_version_3722_; +v___y_3444_ = v_userData_3714_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3719_; +v___y_3448_ = v_messageHead_3717_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3718_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3723_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3724_; +goto v___jp_3433_; } case 15: { -uint8_t v_version_3521_; lean_object* v_uri_3522_; lean_object* v___x_3523_; -v_version_3521_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3522_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3522_); -lean_dec(v_messageHead_2893_); -v___x_3523_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__35)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3522_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3521_; -v___y_3316_ = v___x_3523_; -goto v___jp_3302_; +lean_object* v_userData_3725_; lean_object* v_outputData_3726_; lean_object* v_knownSize_3727_; lean_object* v_messageHead_3728_; uint8_t v_sentMessage_3729_; uint8_t v_userClosedBody_3730_; uint8_t v_omitBody_3731_; lean_object* v_userDataBytes_3732_; uint8_t v_version_3733_; lean_object* v_uri_3734_; lean_object* v___x_3735_; +v_userData_3725_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3725_); +v_outputData_3726_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3726_); +v_knownSize_3727_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3727_); +v_messageHead_3728_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3728_); +v_sentMessage_3729_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3730_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3731_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3732_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3732_); +lean_dec_ref(v_writer_3535_); +v_version_3733_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3734_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3734_); +lean_dec(v_messageHead_2860_); +v___x_3735_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__35)); +v___y_3434_ = v_omitBody_3731_; +v___y_3435_ = v_userDataBytes_3732_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3726_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3727_; +v___y_3443_ = v_version_3733_; +v___y_3444_ = v_userData_3725_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3730_; +v___y_3448_ = v_messageHead_3728_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3729_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3734_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3735_; +goto v___jp_3433_; } case 16: { -uint8_t v_version_3524_; lean_object* v_uri_3525_; lean_object* v___x_3526_; -v_version_3524_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3525_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3525_); -lean_dec(v_messageHead_2893_); -v___x_3526_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__36)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3525_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3524_; -v___y_3316_ = v___x_3526_; -goto v___jp_3302_; +lean_object* v_userData_3736_; lean_object* v_outputData_3737_; lean_object* v_knownSize_3738_; lean_object* v_messageHead_3739_; uint8_t v_sentMessage_3740_; uint8_t v_userClosedBody_3741_; uint8_t v_omitBody_3742_; lean_object* v_userDataBytes_3743_; uint8_t v_version_3744_; lean_object* v_uri_3745_; lean_object* v___x_3746_; +v_userData_3736_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3736_); +v_outputData_3737_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3737_); +v_knownSize_3738_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3738_); +v_messageHead_3739_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3739_); +v_sentMessage_3740_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3741_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3742_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3743_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3743_); +lean_dec_ref(v_writer_3535_); +v_version_3744_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3745_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3745_); +lean_dec(v_messageHead_2860_); +v___x_3746_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__36)); +v___y_3434_ = v_omitBody_3742_; +v___y_3435_ = v_userDataBytes_3743_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3737_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3738_; +v___y_3443_ = v_version_3744_; +v___y_3444_ = v_userData_3736_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3741_; +v___y_3448_ = v_messageHead_3739_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3740_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3745_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3746_; +goto v___jp_3433_; } case 17: { -uint8_t v_version_3527_; lean_object* v_uri_3528_; lean_object* v___x_3529_; -v_version_3527_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3528_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3528_); -lean_dec(v_messageHead_2893_); -v___x_3529_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__37)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3528_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3527_; -v___y_3316_ = v___x_3529_; -goto v___jp_3302_; +lean_object* v_userData_3747_; lean_object* v_outputData_3748_; lean_object* v_knownSize_3749_; lean_object* v_messageHead_3750_; uint8_t v_sentMessage_3751_; uint8_t v_userClosedBody_3752_; uint8_t v_omitBody_3753_; lean_object* v_userDataBytes_3754_; uint8_t v_version_3755_; lean_object* v_uri_3756_; lean_object* v___x_3757_; +v_userData_3747_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3747_); +v_outputData_3748_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3748_); +v_knownSize_3749_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3749_); +v_messageHead_3750_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3750_); +v_sentMessage_3751_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3752_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3753_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3754_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3754_); +lean_dec_ref(v_writer_3535_); +v_version_3755_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3756_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3756_); +lean_dec(v_messageHead_2860_); +v___x_3757_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__37)); +v___y_3434_ = v_omitBody_3753_; +v___y_3435_ = v_userDataBytes_3754_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3748_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3749_; +v___y_3443_ = v_version_3755_; +v___y_3444_ = v_userData_3747_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3752_; +v___y_3448_ = v_messageHead_3750_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3751_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3756_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3757_; +goto v___jp_3433_; } case 18: { -uint8_t v_version_3530_; lean_object* v_uri_3531_; lean_object* v___x_3532_; -v_version_3530_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3531_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3531_); -lean_dec(v_messageHead_2893_); -v___x_3532_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__38)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3531_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3530_; -v___y_3316_ = v___x_3532_; -goto v___jp_3302_; +lean_object* v_userData_3758_; lean_object* v_outputData_3759_; lean_object* v_knownSize_3760_; lean_object* v_messageHead_3761_; uint8_t v_sentMessage_3762_; uint8_t v_userClosedBody_3763_; uint8_t v_omitBody_3764_; lean_object* v_userDataBytes_3765_; uint8_t v_version_3766_; lean_object* v_uri_3767_; lean_object* v___x_3768_; +v_userData_3758_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3758_); +v_outputData_3759_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3759_); +v_knownSize_3760_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3760_); +v_messageHead_3761_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3761_); +v_sentMessage_3762_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3763_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3764_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3765_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3765_); +lean_dec_ref(v_writer_3535_); +v_version_3766_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3767_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3767_); +lean_dec(v_messageHead_2860_); +v___x_3768_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__38)); +v___y_3434_ = v_omitBody_3764_; +v___y_3435_ = v_userDataBytes_3765_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3759_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3760_; +v___y_3443_ = v_version_3766_; +v___y_3444_ = v_userData_3758_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3763_; +v___y_3448_ = v_messageHead_3761_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3762_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3767_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3768_; +goto v___jp_3433_; } case 19: { -uint8_t v_version_3533_; lean_object* v_uri_3534_; lean_object* v___x_3535_; -v_version_3533_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3534_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3534_); -lean_dec(v_messageHead_2893_); -v___x_3535_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__39)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3534_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3533_; -v___y_3316_ = v___x_3535_; -goto v___jp_3302_; +lean_object* v_userData_3769_; lean_object* v_outputData_3770_; lean_object* v_knownSize_3771_; lean_object* v_messageHead_3772_; uint8_t v_sentMessage_3773_; uint8_t v_userClosedBody_3774_; uint8_t v_omitBody_3775_; lean_object* v_userDataBytes_3776_; uint8_t v_version_3777_; lean_object* v_uri_3778_; lean_object* v___x_3779_; +v_userData_3769_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3769_); +v_outputData_3770_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3770_); +v_knownSize_3771_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3771_); +v_messageHead_3772_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3772_); +v_sentMessage_3773_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3774_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3775_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3776_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3776_); +lean_dec_ref(v_writer_3535_); +v_version_3777_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3778_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3778_); +lean_dec(v_messageHead_2860_); +v___x_3779_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__39)); +v___y_3434_ = v_omitBody_3775_; +v___y_3435_ = v_userDataBytes_3776_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3770_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3771_; +v___y_3443_ = v_version_3777_; +v___y_3444_ = v_userData_3769_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3774_; +v___y_3448_ = v_messageHead_3772_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3773_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3778_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3779_; +goto v___jp_3433_; } case 20: { -uint8_t v_version_3536_; lean_object* v_uri_3537_; lean_object* v___x_3538_; -v_version_3536_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3537_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3537_); -lean_dec(v_messageHead_2893_); -v___x_3538_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__40)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3537_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3536_; -v___y_3316_ = v___x_3538_; -goto v___jp_3302_; +lean_object* v_userData_3780_; lean_object* v_outputData_3781_; lean_object* v_knownSize_3782_; lean_object* v_messageHead_3783_; uint8_t v_sentMessage_3784_; uint8_t v_userClosedBody_3785_; uint8_t v_omitBody_3786_; lean_object* v_userDataBytes_3787_; uint8_t v_version_3788_; lean_object* v_uri_3789_; lean_object* v___x_3790_; +v_userData_3780_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3780_); +v_outputData_3781_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3781_); +v_knownSize_3782_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3782_); +v_messageHead_3783_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3783_); +v_sentMessage_3784_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3785_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3786_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3787_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3787_); +lean_dec_ref(v_writer_3535_); +v_version_3788_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3789_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3789_); +lean_dec(v_messageHead_2860_); +v___x_3790_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__40)); +v___y_3434_ = v_omitBody_3786_; +v___y_3435_ = v_userDataBytes_3787_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3781_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3782_; +v___y_3443_ = v_version_3788_; +v___y_3444_ = v_userData_3780_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3785_; +v___y_3448_ = v_messageHead_3783_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3784_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3789_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3790_; +goto v___jp_3433_; } case 21: { -uint8_t v_version_3539_; lean_object* v_uri_3540_; lean_object* v___x_3541_; -v_version_3539_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3540_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3540_); -lean_dec(v_messageHead_2893_); -v___x_3541_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__41)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3540_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3539_; -v___y_3316_ = v___x_3541_; -goto v___jp_3302_; +lean_object* v_userData_3791_; lean_object* v_outputData_3792_; lean_object* v_knownSize_3793_; lean_object* v_messageHead_3794_; uint8_t v_sentMessage_3795_; uint8_t v_userClosedBody_3796_; uint8_t v_omitBody_3797_; lean_object* v_userDataBytes_3798_; uint8_t v_version_3799_; lean_object* v_uri_3800_; lean_object* v___x_3801_; +v_userData_3791_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3791_); +v_outputData_3792_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3792_); +v_knownSize_3793_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3793_); +v_messageHead_3794_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3794_); +v_sentMessage_3795_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3796_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3797_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3798_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3798_); +lean_dec_ref(v_writer_3535_); +v_version_3799_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3800_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3800_); +lean_dec(v_messageHead_2860_); +v___x_3801_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__41)); +v___y_3434_ = v_omitBody_3797_; +v___y_3435_ = v_userDataBytes_3798_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3792_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3793_; +v___y_3443_ = v_version_3799_; +v___y_3444_ = v_userData_3791_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3796_; +v___y_3448_ = v_messageHead_3794_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3795_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3800_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3801_; +goto v___jp_3433_; } case 22: { -uint8_t v_version_3542_; lean_object* v_uri_3543_; lean_object* v___x_3544_; -v_version_3542_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3543_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3543_); -lean_dec(v_messageHead_2893_); -v___x_3544_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__42)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3543_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3542_; -v___y_3316_ = v___x_3544_; -goto v___jp_3302_; +lean_object* v_userData_3802_; lean_object* v_outputData_3803_; lean_object* v_knownSize_3804_; lean_object* v_messageHead_3805_; uint8_t v_sentMessage_3806_; uint8_t v_userClosedBody_3807_; uint8_t v_omitBody_3808_; lean_object* v_userDataBytes_3809_; uint8_t v_version_3810_; lean_object* v_uri_3811_; lean_object* v___x_3812_; +v_userData_3802_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3802_); +v_outputData_3803_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3803_); +v_knownSize_3804_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3804_); +v_messageHead_3805_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3805_); +v_sentMessage_3806_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3807_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3808_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3809_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3809_); +lean_dec_ref(v_writer_3535_); +v_version_3810_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3811_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3811_); +lean_dec(v_messageHead_2860_); +v___x_3812_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__42)); +v___y_3434_ = v_omitBody_3808_; +v___y_3435_ = v_userDataBytes_3809_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3803_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3804_; +v___y_3443_ = v_version_3810_; +v___y_3444_ = v_userData_3802_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3807_; +v___y_3448_ = v_messageHead_3805_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3806_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3811_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3812_; +goto v___jp_3433_; } case 23: { -uint8_t v_version_3545_; lean_object* v_uri_3546_; lean_object* v___x_3547_; -v_version_3545_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3546_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3546_); -lean_dec(v_messageHead_2893_); -v___x_3547_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__43)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3546_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3545_; -v___y_3316_ = v___x_3547_; -goto v___jp_3302_; +lean_object* v_userData_3813_; lean_object* v_outputData_3814_; lean_object* v_knownSize_3815_; lean_object* v_messageHead_3816_; uint8_t v_sentMessage_3817_; uint8_t v_userClosedBody_3818_; uint8_t v_omitBody_3819_; lean_object* v_userDataBytes_3820_; uint8_t v_version_3821_; lean_object* v_uri_3822_; lean_object* v___x_3823_; +v_userData_3813_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3813_); +v_outputData_3814_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3814_); +v_knownSize_3815_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3815_); +v_messageHead_3816_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3816_); +v_sentMessage_3817_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3818_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3819_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3820_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3820_); +lean_dec_ref(v_writer_3535_); +v_version_3821_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3822_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3822_); +lean_dec(v_messageHead_2860_); +v___x_3823_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__43)); +v___y_3434_ = v_omitBody_3819_; +v___y_3435_ = v_userDataBytes_3820_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3814_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3815_; +v___y_3443_ = v_version_3821_; +v___y_3444_ = v_userData_3813_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3818_; +v___y_3448_ = v_messageHead_3816_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3817_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3822_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3823_; +goto v___jp_3433_; } case 24: { -uint8_t v_version_3548_; lean_object* v_uri_3549_; lean_object* v___x_3550_; -v_version_3548_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3549_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3549_); -lean_dec(v_messageHead_2893_); -v___x_3550_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__44)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3549_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3548_; -v___y_3316_ = v___x_3550_; -goto v___jp_3302_; +lean_object* v_userData_3824_; lean_object* v_outputData_3825_; lean_object* v_knownSize_3826_; lean_object* v_messageHead_3827_; uint8_t v_sentMessage_3828_; uint8_t v_userClosedBody_3829_; uint8_t v_omitBody_3830_; lean_object* v_userDataBytes_3831_; uint8_t v_version_3832_; lean_object* v_uri_3833_; lean_object* v___x_3834_; +v_userData_3824_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3824_); +v_outputData_3825_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3825_); +v_knownSize_3826_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3826_); +v_messageHead_3827_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3827_); +v_sentMessage_3828_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3829_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3830_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3831_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3831_); +lean_dec_ref(v_writer_3535_); +v_version_3832_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3833_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3833_); +lean_dec(v_messageHead_2860_); +v___x_3834_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__44)); +v___y_3434_ = v_omitBody_3830_; +v___y_3435_ = v_userDataBytes_3831_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3825_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3826_; +v___y_3443_ = v_version_3832_; +v___y_3444_ = v_userData_3824_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3829_; +v___y_3448_ = v_messageHead_3827_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3828_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3833_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3834_; +goto v___jp_3433_; } case 25: { -uint8_t v_version_3551_; lean_object* v_uri_3552_; lean_object* v___x_3553_; -v_version_3551_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3552_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3552_); -lean_dec(v_messageHead_2893_); -v___x_3553_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__45)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3552_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3551_; -v___y_3316_ = v___x_3553_; -goto v___jp_3302_; +lean_object* v_userData_3835_; lean_object* v_outputData_3836_; lean_object* v_knownSize_3837_; lean_object* v_messageHead_3838_; uint8_t v_sentMessage_3839_; uint8_t v_userClosedBody_3840_; uint8_t v_omitBody_3841_; lean_object* v_userDataBytes_3842_; uint8_t v_version_3843_; lean_object* v_uri_3844_; lean_object* v___x_3845_; +v_userData_3835_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3835_); +v_outputData_3836_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3836_); +v_knownSize_3837_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3837_); +v_messageHead_3838_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3838_); +v_sentMessage_3839_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3840_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3841_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3842_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3842_); +lean_dec_ref(v_writer_3535_); +v_version_3843_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3844_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3844_); +lean_dec(v_messageHead_2860_); +v___x_3845_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__45)); +v___y_3434_ = v_omitBody_3841_; +v___y_3435_ = v_userDataBytes_3842_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3836_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3837_; +v___y_3443_ = v_version_3843_; +v___y_3444_ = v_userData_3835_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3840_; +v___y_3448_ = v_messageHead_3838_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3839_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3844_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3845_; +goto v___jp_3433_; } case 26: { -uint8_t v_version_3554_; lean_object* v_uri_3555_; lean_object* v___x_3556_; -v_version_3554_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3555_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3555_); -lean_dec(v_messageHead_2893_); -v___x_3556_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__46)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3555_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3554_; -v___y_3316_ = v___x_3556_; -goto v___jp_3302_; +lean_object* v_userData_3846_; lean_object* v_outputData_3847_; lean_object* v_knownSize_3848_; lean_object* v_messageHead_3849_; uint8_t v_sentMessage_3850_; uint8_t v_userClosedBody_3851_; uint8_t v_omitBody_3852_; lean_object* v_userDataBytes_3853_; uint8_t v_version_3854_; lean_object* v_uri_3855_; lean_object* v___x_3856_; +v_userData_3846_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3846_); +v_outputData_3847_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3847_); +v_knownSize_3848_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3848_); +v_messageHead_3849_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3849_); +v_sentMessage_3850_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3851_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3852_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3853_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3853_); +lean_dec_ref(v_writer_3535_); +v_version_3854_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3855_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3855_); +lean_dec(v_messageHead_2860_); +v___x_3856_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__46)); +v___y_3434_ = v_omitBody_3852_; +v___y_3435_ = v_userDataBytes_3853_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3847_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3848_; +v___y_3443_ = v_version_3854_; +v___y_3444_ = v_userData_3846_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3851_; +v___y_3448_ = v_messageHead_3849_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3850_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3855_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3856_; +goto v___jp_3433_; } case 27: { -uint8_t v_version_3557_; lean_object* v_uri_3558_; lean_object* v___x_3559_; -v_version_3557_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3558_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3558_); -lean_dec(v_messageHead_2893_); -v___x_3559_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__47)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3558_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3557_; -v___y_3316_ = v___x_3559_; -goto v___jp_3302_; +lean_object* v_userData_3857_; lean_object* v_outputData_3858_; lean_object* v_knownSize_3859_; lean_object* v_messageHead_3860_; uint8_t v_sentMessage_3861_; uint8_t v_userClosedBody_3862_; uint8_t v_omitBody_3863_; lean_object* v_userDataBytes_3864_; uint8_t v_version_3865_; lean_object* v_uri_3866_; lean_object* v___x_3867_; +v_userData_3857_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3857_); +v_outputData_3858_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3858_); +v_knownSize_3859_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3859_); +v_messageHead_3860_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3860_); +v_sentMessage_3861_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3862_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3863_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3864_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3864_); +lean_dec_ref(v_writer_3535_); +v_version_3865_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3866_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3866_); +lean_dec(v_messageHead_2860_); +v___x_3867_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__47)); +v___y_3434_ = v_omitBody_3863_; +v___y_3435_ = v_userDataBytes_3864_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3858_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3859_; +v___y_3443_ = v_version_3865_; +v___y_3444_ = v_userData_3857_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3862_; +v___y_3448_ = v_messageHead_3860_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3861_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3866_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3867_; +goto v___jp_3433_; } case 28: { -uint8_t v_version_3560_; lean_object* v_uri_3561_; lean_object* v___x_3562_; -v_version_3560_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3561_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3561_); -lean_dec(v_messageHead_2893_); -v___x_3562_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__48)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3561_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3560_; -v___y_3316_ = v___x_3562_; -goto v___jp_3302_; +lean_object* v_userData_3868_; lean_object* v_outputData_3869_; lean_object* v_knownSize_3870_; lean_object* v_messageHead_3871_; uint8_t v_sentMessage_3872_; uint8_t v_userClosedBody_3873_; uint8_t v_omitBody_3874_; lean_object* v_userDataBytes_3875_; uint8_t v_version_3876_; lean_object* v_uri_3877_; lean_object* v___x_3878_; +v_userData_3868_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3868_); +v_outputData_3869_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3869_); +v_knownSize_3870_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3870_); +v_messageHead_3871_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3871_); +v_sentMessage_3872_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3873_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3874_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3875_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3875_); +lean_dec_ref(v_writer_3535_); +v_version_3876_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3877_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3877_); +lean_dec(v_messageHead_2860_); +v___x_3878_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__48)); +v___y_3434_ = v_omitBody_3874_; +v___y_3435_ = v_userDataBytes_3875_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3869_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3870_; +v___y_3443_ = v_version_3876_; +v___y_3444_ = v_userData_3868_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3873_; +v___y_3448_ = v_messageHead_3871_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3872_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3877_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3878_; +goto v___jp_3433_; } case 29: { -uint8_t v_version_3563_; lean_object* v_uri_3564_; lean_object* v___x_3565_; -v_version_3563_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3564_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3564_); -lean_dec(v_messageHead_2893_); -v___x_3565_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__49)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3564_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3563_; -v___y_3316_ = v___x_3565_; -goto v___jp_3302_; +lean_object* v_userData_3879_; lean_object* v_outputData_3880_; lean_object* v_knownSize_3881_; lean_object* v_messageHead_3882_; uint8_t v_sentMessage_3883_; uint8_t v_userClosedBody_3884_; uint8_t v_omitBody_3885_; lean_object* v_userDataBytes_3886_; uint8_t v_version_3887_; lean_object* v_uri_3888_; lean_object* v___x_3889_; +v_userData_3879_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3879_); +v_outputData_3880_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3880_); +v_knownSize_3881_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3881_); +v_messageHead_3882_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3882_); +v_sentMessage_3883_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3884_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3885_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3886_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3886_); +lean_dec_ref(v_writer_3535_); +v_version_3887_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3888_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3888_); +lean_dec(v_messageHead_2860_); +v___x_3889_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__49)); +v___y_3434_ = v_omitBody_3885_; +v___y_3435_ = v_userDataBytes_3886_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3880_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3881_; +v___y_3443_ = v_version_3887_; +v___y_3444_ = v_userData_3879_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3884_; +v___y_3448_ = v_messageHead_3882_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3883_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3888_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3889_; +goto v___jp_3433_; } case 30: { -uint8_t v_version_3566_; lean_object* v_uri_3567_; lean_object* v___x_3568_; -v_version_3566_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3567_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3567_); -lean_dec(v_messageHead_2893_); -v___x_3568_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__50)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3567_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3566_; -v___y_3316_ = v___x_3568_; -goto v___jp_3302_; +lean_object* v_userData_3890_; lean_object* v_outputData_3891_; lean_object* v_knownSize_3892_; lean_object* v_messageHead_3893_; uint8_t v_sentMessage_3894_; uint8_t v_userClosedBody_3895_; uint8_t v_omitBody_3896_; lean_object* v_userDataBytes_3897_; uint8_t v_version_3898_; lean_object* v_uri_3899_; lean_object* v___x_3900_; +v_userData_3890_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3890_); +v_outputData_3891_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3891_); +v_knownSize_3892_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3892_); +v_messageHead_3893_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3893_); +v_sentMessage_3894_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3895_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3896_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3897_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3897_); +lean_dec_ref(v_writer_3535_); +v_version_3898_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3899_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3899_); +lean_dec(v_messageHead_2860_); +v___x_3900_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__50)); +v___y_3434_ = v_omitBody_3896_; +v___y_3435_ = v_userDataBytes_3897_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3891_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3892_; +v___y_3443_ = v_version_3898_; +v___y_3444_ = v_userData_3890_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3895_; +v___y_3448_ = v_messageHead_3893_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3894_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3899_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3900_; +goto v___jp_3433_; } case 31: { -uint8_t v_version_3569_; lean_object* v_uri_3570_; lean_object* v___x_3571_; -v_version_3569_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3570_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3570_); -lean_dec(v_messageHead_2893_); -v___x_3571_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__51)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3570_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3569_; -v___y_3316_ = v___x_3571_; -goto v___jp_3302_; +lean_object* v_userData_3901_; lean_object* v_outputData_3902_; lean_object* v_knownSize_3903_; lean_object* v_messageHead_3904_; uint8_t v_sentMessage_3905_; uint8_t v_userClosedBody_3906_; uint8_t v_omitBody_3907_; lean_object* v_userDataBytes_3908_; uint8_t v_version_3909_; lean_object* v_uri_3910_; lean_object* v___x_3911_; +v_userData_3901_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3901_); +v_outputData_3902_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3902_); +v_knownSize_3903_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3903_); +v_messageHead_3904_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3904_); +v_sentMessage_3905_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3906_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3907_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3908_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3908_); +lean_dec_ref(v_writer_3535_); +v_version_3909_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3910_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3910_); +lean_dec(v_messageHead_2860_); +v___x_3911_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__51)); +v___y_3434_ = v_omitBody_3907_; +v___y_3435_ = v_userDataBytes_3908_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3902_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3903_; +v___y_3443_ = v_version_3909_; +v___y_3444_ = v_userData_3901_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3906_; +v___y_3448_ = v_messageHead_3904_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3905_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3910_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3911_; +goto v___jp_3433_; } case 32: { -uint8_t v_version_3572_; lean_object* v_uri_3573_; lean_object* v___x_3574_; -v_version_3572_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3573_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3573_); -lean_dec(v_messageHead_2893_); -v___x_3574_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__52)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3573_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3572_; -v___y_3316_ = v___x_3574_; -goto v___jp_3302_; +lean_object* v_userData_3912_; lean_object* v_outputData_3913_; lean_object* v_knownSize_3914_; lean_object* v_messageHead_3915_; uint8_t v_sentMessage_3916_; uint8_t v_userClosedBody_3917_; uint8_t v_omitBody_3918_; lean_object* v_userDataBytes_3919_; uint8_t v_version_3920_; lean_object* v_uri_3921_; lean_object* v___x_3922_; +v_userData_3912_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3912_); +v_outputData_3913_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3913_); +v_knownSize_3914_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3914_); +v_messageHead_3915_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3915_); +v_sentMessage_3916_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3917_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3918_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3919_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3919_); +lean_dec_ref(v_writer_3535_); +v_version_3920_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3921_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3921_); +lean_dec(v_messageHead_2860_); +v___x_3922_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__52)); +v___y_3434_ = v_omitBody_3918_; +v___y_3435_ = v_userDataBytes_3919_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3913_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3914_; +v___y_3443_ = v_version_3920_; +v___y_3444_ = v_userData_3912_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3917_; +v___y_3448_ = v_messageHead_3915_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3916_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3921_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3922_; +goto v___jp_3433_; } case 33: { -uint8_t v_version_3575_; lean_object* v_uri_3576_; lean_object* v___x_3577_; -v_version_3575_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3576_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3576_); -lean_dec(v_messageHead_2893_); -v___x_3577_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__53)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3576_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3575_; -v___y_3316_ = v___x_3577_; -goto v___jp_3302_; +lean_object* v_userData_3923_; lean_object* v_outputData_3924_; lean_object* v_knownSize_3925_; lean_object* v_messageHead_3926_; uint8_t v_sentMessage_3927_; uint8_t v_userClosedBody_3928_; uint8_t v_omitBody_3929_; lean_object* v_userDataBytes_3930_; uint8_t v_version_3931_; lean_object* v_uri_3932_; lean_object* v___x_3933_; +v_userData_3923_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3923_); +v_outputData_3924_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3924_); +v_knownSize_3925_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3925_); +v_messageHead_3926_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3926_); +v_sentMessage_3927_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3928_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3929_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3930_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3930_); +lean_dec_ref(v_writer_3535_); +v_version_3931_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3932_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3932_); +lean_dec(v_messageHead_2860_); +v___x_3933_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__53)); +v___y_3434_ = v_omitBody_3929_; +v___y_3435_ = v_userDataBytes_3930_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3924_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3925_; +v___y_3443_ = v_version_3931_; +v___y_3444_ = v_userData_3923_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3928_; +v___y_3448_ = v_messageHead_3926_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3927_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3932_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3933_; +goto v___jp_3433_; } case 34: { -uint8_t v_version_3578_; lean_object* v_uri_3579_; lean_object* v___x_3580_; -v_version_3578_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3579_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3579_); -lean_dec(v_messageHead_2893_); -v___x_3580_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__54)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3579_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3578_; -v___y_3316_ = v___x_3580_; -goto v___jp_3302_; +lean_object* v_userData_3934_; lean_object* v_outputData_3935_; lean_object* v_knownSize_3936_; lean_object* v_messageHead_3937_; uint8_t v_sentMessage_3938_; uint8_t v_userClosedBody_3939_; uint8_t v_omitBody_3940_; lean_object* v_userDataBytes_3941_; uint8_t v_version_3942_; lean_object* v_uri_3943_; lean_object* v___x_3944_; +v_userData_3934_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3934_); +v_outputData_3935_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3935_); +v_knownSize_3936_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3936_); +v_messageHead_3937_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3937_); +v_sentMessage_3938_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3939_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3940_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3941_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3941_); +lean_dec_ref(v_writer_3535_); +v_version_3942_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3943_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3943_); +lean_dec(v_messageHead_2860_); +v___x_3944_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__54)); +v___y_3434_ = v_omitBody_3940_; +v___y_3435_ = v_userDataBytes_3941_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3935_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3936_; +v___y_3443_ = v_version_3942_; +v___y_3444_ = v_userData_3934_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3939_; +v___y_3448_ = v_messageHead_3937_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3938_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3943_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3944_; +goto v___jp_3433_; } case 35: { -uint8_t v_version_3581_; lean_object* v_uri_3582_; lean_object* v___x_3583_; -v_version_3581_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3582_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3582_); -lean_dec(v_messageHead_2893_); -v___x_3583_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__55)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3582_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3581_; -v___y_3316_ = v___x_3583_; -goto v___jp_3302_; +lean_object* v_userData_3945_; lean_object* v_outputData_3946_; lean_object* v_knownSize_3947_; lean_object* v_messageHead_3948_; uint8_t v_sentMessage_3949_; uint8_t v_userClosedBody_3950_; uint8_t v_omitBody_3951_; lean_object* v_userDataBytes_3952_; uint8_t v_version_3953_; lean_object* v_uri_3954_; lean_object* v___x_3955_; +v_userData_3945_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3945_); +v_outputData_3946_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3946_); +v_knownSize_3947_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3947_); +v_messageHead_3948_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3948_); +v_sentMessage_3949_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3950_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3951_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3952_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3952_); +lean_dec_ref(v_writer_3535_); +v_version_3953_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3954_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3954_); +lean_dec(v_messageHead_2860_); +v___x_3955_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__55)); +v___y_3434_ = v_omitBody_3951_; +v___y_3435_ = v_userDataBytes_3952_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3946_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3947_; +v___y_3443_ = v_version_3953_; +v___y_3444_ = v_userData_3945_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3950_; +v___y_3448_ = v_messageHead_3948_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3949_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3954_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3955_; +goto v___jp_3433_; } case 36: { -uint8_t v_version_3584_; lean_object* v_uri_3585_; lean_object* v___x_3586_; -v_version_3584_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3585_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3585_); -lean_dec(v_messageHead_2893_); -v___x_3586_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__56)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3585_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3584_; -v___y_3316_ = v___x_3586_; -goto v___jp_3302_; +lean_object* v_userData_3956_; lean_object* v_outputData_3957_; lean_object* v_knownSize_3958_; lean_object* v_messageHead_3959_; uint8_t v_sentMessage_3960_; uint8_t v_userClosedBody_3961_; uint8_t v_omitBody_3962_; lean_object* v_userDataBytes_3963_; uint8_t v_version_3964_; lean_object* v_uri_3965_; lean_object* v___x_3966_; +v_userData_3956_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3956_); +v_outputData_3957_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3957_); +v_knownSize_3958_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3958_); +v_messageHead_3959_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3959_); +v_sentMessage_3960_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3961_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3962_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3963_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3963_); +lean_dec_ref(v_writer_3535_); +v_version_3964_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3965_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3965_); +lean_dec(v_messageHead_2860_); +v___x_3966_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__56)); +v___y_3434_ = v_omitBody_3962_; +v___y_3435_ = v_userDataBytes_3963_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3957_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3958_; +v___y_3443_ = v_version_3964_; +v___y_3444_ = v_userData_3956_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3961_; +v___y_3448_ = v_messageHead_3959_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3960_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3965_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3966_; +goto v___jp_3433_; } case 37: { -uint8_t v_version_3587_; lean_object* v_uri_3588_; lean_object* v___x_3589_; -v_version_3587_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3588_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3588_); -lean_dec(v_messageHead_2893_); -v___x_3589_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__57)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3588_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3587_; -v___y_3316_ = v___x_3589_; -goto v___jp_3302_; +lean_object* v_userData_3967_; lean_object* v_outputData_3968_; lean_object* v_knownSize_3969_; lean_object* v_messageHead_3970_; uint8_t v_sentMessage_3971_; uint8_t v_userClosedBody_3972_; uint8_t v_omitBody_3973_; lean_object* v_userDataBytes_3974_; uint8_t v_version_3975_; lean_object* v_uri_3976_; lean_object* v___x_3977_; +v_userData_3967_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3967_); +v_outputData_3968_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3968_); +v_knownSize_3969_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3969_); +v_messageHead_3970_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3970_); +v_sentMessage_3971_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3972_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3973_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3974_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3974_); +lean_dec_ref(v_writer_3535_); +v_version_3975_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3976_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3976_); +lean_dec(v_messageHead_2860_); +v___x_3977_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__57)); +v___y_3434_ = v_omitBody_3973_; +v___y_3435_ = v_userDataBytes_3974_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3968_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3969_; +v___y_3443_ = v_version_3975_; +v___y_3444_ = v_userData_3967_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3972_; +v___y_3448_ = v_messageHead_3970_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3971_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3976_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3977_; +goto v___jp_3433_; } case 38: { -uint8_t v_version_3590_; lean_object* v_uri_3591_; lean_object* v___x_3592_; -v_version_3590_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3591_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3591_); -lean_dec(v_messageHead_2893_); -v___x_3592_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__58)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3591_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3590_; -v___y_3316_ = v___x_3592_; -goto v___jp_3302_; +lean_object* v_userData_3978_; lean_object* v_outputData_3979_; lean_object* v_knownSize_3980_; lean_object* v_messageHead_3981_; uint8_t v_sentMessage_3982_; uint8_t v_userClosedBody_3983_; uint8_t v_omitBody_3984_; lean_object* v_userDataBytes_3985_; uint8_t v_version_3986_; lean_object* v_uri_3987_; lean_object* v___x_3988_; +v_userData_3978_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3978_); +v_outputData_3979_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3979_); +v_knownSize_3980_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3980_); +v_messageHead_3981_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3981_); +v_sentMessage_3982_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3983_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3984_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3985_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3985_); +lean_dec_ref(v_writer_3535_); +v_version_3986_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3987_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3987_); +lean_dec(v_messageHead_2860_); +v___x_3988_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__58)); +v___y_3434_ = v_omitBody_3984_; +v___y_3435_ = v_userDataBytes_3985_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3979_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3980_; +v___y_3443_ = v_version_3986_; +v___y_3444_ = v_userData_3978_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3983_; +v___y_3448_ = v_messageHead_3981_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3982_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3987_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3988_; +goto v___jp_3433_; } default: { -uint8_t v_version_3593_; lean_object* v_uri_3594_; lean_object* v___x_3595_; -v_version_3593_ = lean_ctor_get_uint8(v_messageHead_2893_, sizeof(void*)*2 + 1); -v_uri_3594_ = lean_ctor_get(v_messageHead_2893_, 0); -lean_inc(v_uri_3594_); -lean_dec(v_messageHead_2893_); -v___x_3595_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__59)); -v___y_3303_ = v_state_3468_; -v___y_3304_ = v___y_3457_; -v___y_3305_ = v_omitBody_3466_; -v___y_3306_ = v_userDataBytes_3467_; -v___y_3307_ = v___y_3459_; -v___y_3308_ = v_messageHead_3463_; -v___y_3309_ = v_outputData_3461_; -v___y_3310_ = v_knownSize_3462_; -v___y_3311_ = v_userClosedBody_3465_; -v___y_3312_ = v_userData_3460_; -v___y_3313_ = v_uri_3594_; -v___y_3314_ = v_sentMessage_3464_; -v___y_3315_ = v_version_3593_; -v___y_3316_ = v___x_3595_; -goto v___jp_3302_; -} +lean_object* v_userData_3989_; lean_object* v_outputData_3990_; lean_object* v_knownSize_3991_; lean_object* v_messageHead_3992_; uint8_t v_sentMessage_3993_; uint8_t v_userClosedBody_3994_; uint8_t v_omitBody_3995_; lean_object* v_userDataBytes_3996_; uint8_t v_version_3997_; lean_object* v_uri_3998_; lean_object* v___x_3999_; +v_userData_3989_ = lean_ctor_get(v_writer_3535_, 0); +lean_inc_ref(v_userData_3989_); +v_outputData_3990_ = lean_ctor_get(v_writer_3535_, 1); +lean_inc_ref(v_outputData_3990_); +v_knownSize_3991_ = lean_ctor_get(v_writer_3535_, 3); +lean_inc(v_knownSize_3991_); +v_messageHead_3992_ = lean_ctor_get(v_writer_3535_, 4); +lean_inc(v_messageHead_3992_); +v_sentMessage_3993_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6); +v_userClosedBody_3994_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 1); +v_omitBody_3995_ = lean_ctor_get_uint8(v_writer_3535_, sizeof(void*)*6 + 2); +v_userDataBytes_3996_ = lean_ctor_get(v_writer_3535_, 5); +lean_inc(v_userDataBytes_3996_); +lean_dec_ref(v_writer_3535_); +v_version_3997_ = lean_ctor_get_uint8(v_messageHead_2860_, sizeof(void*)*2 + 1); +v_uri_3998_ = lean_ctor_get(v_messageHead_2860_, 0); +lean_inc(v_uri_3998_); +lean_dec(v_messageHead_2860_); +v___x_3999_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__59)); +v___y_3434_ = v_omitBody_3995_; +v___y_3435_ = v_userDataBytes_3996_; +v___y_3436_ = v_instant_3539_; +v___y_3437_ = v_outputData_3990_; +v___y_3438_ = v___y_3544_; +v___y_3439_ = v_config_3536_; +v___y_3440_ = v_pullBodyStalled_3542_; +v___y_3441_ = v___y_3543_; +v___y_3442_ = v_knownSize_3991_; +v___y_3443_ = v_version_3997_; +v___y_3444_ = v_userData_3989_; +v___y_3445_ = v_error_3538_; +v___y_3446_ = v_reader_3534_; +v___y_3447_ = v_userClosedBody_3994_; +v___y_3448_ = v_messageHead_3992_; +v___y_3449_ = v_keepAlive_3540_; +v___y_3450_ = v_sentMessage_3993_; +v___y_3451_ = v_events_3537_; +v___y_3452_ = v_uri_3998_; +v___y_3453_ = v_forcedFlush_3541_; +v___y_3454_ = v___x_3999_; +goto v___jp_3433_; +} +} +} +} +v___jp_4000_: +{ +lean_object* v_reader_4004_; lean_object* v_writer_4005_; lean_object* v_config_4006_; lean_object* v_events_4007_; lean_object* v_error_4008_; lean_object* v_instant_4009_; uint8_t v_keepAlive_4010_; uint8_t v_forcedFlush_4011_; uint8_t v_pullBodyStalled_4012_; +v_reader_4004_ = lean_ctor_get(v___y_4001_, 0); +lean_inc_ref(v_reader_4004_); +v_writer_4005_ = lean_ctor_get(v___y_4001_, 1); +lean_inc_ref(v_writer_4005_); +v_config_4006_ = lean_ctor_get(v___y_4001_, 2); +lean_inc_ref(v_config_4006_); +v_events_4007_ = lean_ctor_get(v___y_4001_, 3); +lean_inc_ref(v_events_4007_); +v_error_4008_ = lean_ctor_get(v___y_4001_, 4); +lean_inc(v_error_4008_); +v_instant_4009_ = lean_ctor_get(v___y_4001_, 5); +lean_inc(v_instant_4009_); +v_keepAlive_4010_ = lean_ctor_get_uint8(v___y_4001_, sizeof(void*)*6); +v_forcedFlush_4011_ = lean_ctor_get_uint8(v___y_4001_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4012_ = lean_ctor_get_uint8(v___y_4001_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_4001_); +v_reader_3534_ = v_reader_4004_; +v_writer_3535_ = v_writer_4005_; +v_config_3536_ = v_config_4006_; +v_events_3537_ = v_events_4007_; +v_error_3538_ = v_error_4008_; +v_instant_3539_ = v_instant_4009_; +v_keepAlive_3540_ = v_keepAlive_4010_; +v_forcedFlush_3541_ = v_forcedFlush_4011_; +v_pullBodyStalled_3542_ = v_pullBodyStalled_4012_; +v___y_3543_ = v___y_4002_; +v___y_3544_ = v___y_4003_; +goto v___jp_3533_; +} +v___jp_4013_: +{ +if (v_dir_2859_ == 0) +{ +lean_object* v_reader_4016_; lean_object* v_writer_4017_; lean_object* v_config_4018_; lean_object* v_events_4019_; lean_object* v_error_4020_; lean_object* v_instant_4021_; uint8_t v_keepAlive_4022_; uint8_t v_forcedFlush_4023_; uint8_t v_pullBodyStalled_4024_; lean_object* v_messageHead_4025_; uint8_t v___x_4026_; +v_reader_4016_ = lean_ctor_get(v___y_4014_, 0); +lean_inc_ref(v_reader_4016_); +v_writer_4017_ = lean_ctor_get(v___y_4014_, 1); +lean_inc_ref(v_writer_4017_); +v_config_4018_ = lean_ctor_get(v___y_4014_, 2); +lean_inc_ref(v_config_4018_); +v_events_4019_ = lean_ctor_get(v___y_4014_, 3); +lean_inc_ref(v_events_4019_); +v_error_4020_ = lean_ctor_get(v___y_4014_, 4); +lean_inc(v_error_4020_); +v_instant_4021_ = lean_ctor_get(v___y_4014_, 5); +lean_inc(v_instant_4021_); +v_keepAlive_4022_ = lean_ctor_get_uint8(v___y_4014_, sizeof(void*)*6); +v_forcedFlush_4023_ = lean_ctor_get_uint8(v___y_4014_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4024_ = lean_ctor_get_uint8(v___y_4014_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_4014_); +v_messageHead_4025_ = lean_ctor_get(v_reader_4016_, 2); +v___x_4026_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2859_, v_messageHead_4025_); +if (v___x_4026_ == 0) +{ +lean_object* v___x_4027_; +v___x_4027_ = lean_box(5); +v_reader_3534_ = v_reader_4016_; +v_writer_3535_ = v_writer_4017_; +v_config_3536_ = v_config_4018_; +v_events_3537_ = v_events_4019_; +v_error_3538_ = v_error_4020_; +v_instant_3539_ = v_instant_4021_; +v_keepAlive_3540_ = v_keepAlive_4022_; +v_forcedFlush_3541_ = v_forcedFlush_4023_; +v_pullBodyStalled_3542_ = v_pullBodyStalled_4024_; +v___y_3543_ = v___y_4015_; +v___y_3544_ = v___x_4027_; +goto v___jp_3533_; +} +else +{ +lean_object* v___x_4028_; +v___x_4028_ = lean_box(4); +v_reader_3534_ = v_reader_4016_; +v_writer_3535_ = v_writer_4017_; +v_config_3536_ = v_config_4018_; +v_events_3537_ = v_events_4019_; +v_error_3538_ = v_error_4020_; +v_instant_3539_ = v_instant_4021_; +v_keepAlive_3540_ = v_keepAlive_4022_; +v_forcedFlush_3541_ = v_forcedFlush_4023_; +v_pullBodyStalled_3542_ = v_pullBodyStalled_4024_; +v___y_3543_ = v___y_4015_; +v___y_3544_ = v___x_4028_; +goto v___jp_3533_; +} +} +else +{ +lean_object* v___x_4029_; +v___x_4029_ = lean_box(4); +v___y_4001_ = v___y_4014_; +v___y_4002_ = v___y_4015_; +v___y_4003_ = v___x_4029_; +goto v___jp_4000_; +} +} +v___jp_4030_: +{ +lean_object* v___x_4034_; +v___x_4034_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_4034_, 0, v_n_4032_); +v___y_4001_ = v___y_4031_; +v___y_4002_ = v___y_4033_; +v___y_4003_ = v___x_4034_; +goto v___jp_4000_; +} +v___jp_4035_: +{ +if (lean_obj_tag(v___y_4038_) == 0) +{ +lean_object* v_entries_4041_; lean_object* v_indexes_4042_; lean_object* v___x_4044_; uint8_t v_isShared_4045_; uint8_t v_isSharedCheck_4054_; +lean_dec_ref(v___y_4036_); +v_entries_4041_ = lean_ctor_get(v___y_4040_, 0); +v_indexes_4042_ = lean_ctor_get(v___y_4040_, 1); +v_isSharedCheck_4054_ = !lean_is_exclusive(v___y_4040_); +if (v_isSharedCheck_4054_ == 0) +{ +v___x_4044_ = v___y_4040_; +v_isShared_4045_ = v_isSharedCheck_4054_; +goto v_resetjp_4043_; +} +else +{ +lean_inc(v_indexes_4042_); +lean_inc(v_entries_4041_); +lean_dec(v___y_4040_); +v___x_4044_ = lean_box(0); +v_isShared_4045_ = v_isSharedCheck_4054_; +goto v_resetjp_4043_; +} +v_resetjp_4043_: +{ +lean_object* v___x_4046_; lean_object* v_i_4047_; lean_object* v___x_4048_; lean_object* v_entries_4049_; lean_object* v_indexes_4050_; lean_object* v___x_4052_; +v___x_4046_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__0)); +v_i_4047_ = lean_array_get_size(v_entries_4041_); +lean_inc_ref(v___y_4039_); +v___x_4048_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4048_, 0, v___y_4039_); +lean_ctor_set(v___x_4048_, 1, v___x_4046_); +v_entries_4049_ = lean_array_push(v_entries_4041_, v___x_4048_); +v_indexes_4050_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4047_, v_indexes_4042_, v___y_4039_); +if (v_isShared_4045_ == 0) +{ +lean_ctor_set(v___x_4044_, 1, v_indexes_4050_); +lean_ctor_set(v___x_4044_, 0, v_entries_4049_); +v___x_4052_ = v___x_4044_; +goto v_reusejp_4051_; } -} -} -v___jp_3596_: -{ -if (lean_obj_tag(v___y_3598_) == 0) +else +{ +lean_object* v_reuseFailAlloc_4053_; +v_reuseFailAlloc_4053_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4053_, 0, v_entries_4049_); +lean_ctor_set(v_reuseFailAlloc_4053_, 1, v_indexes_4050_); +v___x_4052_ = v_reuseFailAlloc_4053_; +goto v_reusejp_4051_; +} +v_reusejp_4051_: { -lean_object* v_entries_3602_; lean_object* v_indexes_3603_; lean_object* v___x_3605_; uint8_t v_isShared_3606_; uint8_t v_isSharedCheck_3615_; -lean_dec_ref(v___y_3600_); -v_entries_3602_ = lean_ctor_get(v___y_3601_, 0); -v_indexes_3603_ = lean_ctor_get(v___y_3601_, 1); -v_isSharedCheck_3615_ = !lean_is_exclusive(v___y_3601_); -if (v_isSharedCheck_3615_ == 0) -{ -v___x_3605_ = v___y_3601_; -v_isShared_3606_ = v_isSharedCheck_3615_; -goto v_resetjp_3604_; +v___y_4014_ = v___y_4037_; +v___y_4015_ = v___x_4052_; +goto v___jp_4013_; +} +} } else { -lean_inc(v_indexes_3603_); -lean_inc(v_entries_3602_); -lean_dec(v___y_3601_); -v___x_3605_ = lean_box(0); -v_isShared_3606_ = v_isSharedCheck_3615_; -goto v_resetjp_3604_; +lean_object* v_n_4055_; lean_object* v_entries_4056_; lean_object* v_indexes_4057_; lean_object* v___x_4059_; uint8_t v_isShared_4060_; uint8_t v_isSharedCheck_4070_; +lean_dec_ref(v___y_4039_); +v_n_4055_ = lean_ctor_get(v___y_4038_, 0); +lean_inc(v_n_4055_); +lean_dec_ref(v___y_4038_); +v_entries_4056_ = lean_ctor_get(v___y_4040_, 0); +v_indexes_4057_ = lean_ctor_get(v___y_4040_, 1); +v_isSharedCheck_4070_ = !lean_is_exclusive(v___y_4040_); +if (v_isSharedCheck_4070_ == 0) +{ +v___x_4059_ = v___y_4040_; +v_isShared_4060_ = v_isSharedCheck_4070_; +goto v_resetjp_4058_; } -v_resetjp_3604_: +else +{ +lean_inc(v_indexes_4057_); +lean_inc(v_entries_4056_); +lean_dec(v___y_4040_); +v___x_4059_ = lean_box(0); +v_isShared_4060_ = v_isSharedCheck_4070_; +goto v_resetjp_4058_; +} +v_resetjp_4058_: { -lean_object* v___x_3607_; lean_object* v_i_3608_; lean_object* v___x_3609_; lean_object* v_entries_3610_; lean_object* v_indexes_3611_; lean_object* v___x_3613_; -v___x_3607_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__0)); -v_i_3608_ = lean_array_get_size(v_entries_3602_); -lean_inc_ref(v___y_3599_); -v___x_3609_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3609_, 0, v___y_3599_); -lean_ctor_set(v___x_3609_, 1, v___x_3607_); -v_entries_3610_ = lean_array_push(v_entries_3602_, v___x_3609_); -v_indexes_3611_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3608_, v_indexes_3603_, v___y_3599_); -if (v_isShared_3606_ == 0) +lean_object* v___x_4061_; lean_object* v___x_4062_; lean_object* v_i_4063_; lean_object* v___x_4064_; lean_object* v_entries_4065_; lean_object* v_indexes_4066_; lean_object* v___x_4068_; +lean_inc(v_n_4055_); +v___x_4061_ = l_Nat_reprFast(v_n_4055_); +v___x_4062_ = l_Std_Http_Header_Value_ofString_x21(v___x_4061_); +v_i_4063_ = lean_array_get_size(v_entries_4056_); +lean_inc_ref(v___y_4036_); +v___x_4064_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4064_, 0, v___y_4036_); +lean_ctor_set(v___x_4064_, 1, v___x_4062_); +v_entries_4065_ = lean_array_push(v_entries_4056_, v___x_4064_); +v_indexes_4066_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4063_, v_indexes_4057_, v___y_4036_); +if (v_isShared_4060_ == 0) { -lean_ctor_set(v___x_3605_, 1, v_indexes_3611_); -lean_ctor_set(v___x_3605_, 0, v_entries_3610_); -v___x_3613_ = v___x_3605_; -goto v_reusejp_3612_; +lean_ctor_set(v___x_4059_, 1, v_indexes_4066_); +lean_ctor_set(v___x_4059_, 0, v_entries_4065_); +v___x_4068_ = v___x_4059_; +goto v_reusejp_4067_; } else { -lean_object* v_reuseFailAlloc_3614_; -v_reuseFailAlloc_3614_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3614_, 0, v_entries_3610_); -lean_ctor_set(v_reuseFailAlloc_3614_, 1, v_indexes_3611_); -v___x_3613_ = v_reuseFailAlloc_3614_; -goto v_reusejp_3612_; +lean_object* v_reuseFailAlloc_4069_; +v_reuseFailAlloc_4069_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4069_, 0, v_entries_4065_); +lean_ctor_set(v_reuseFailAlloc_4069_, 1, v_indexes_4066_); +v___x_4068_ = v_reuseFailAlloc_4069_; +goto v_reusejp_4067_; } -v_reusejp_3612_: +v_reusejp_4067_: { -v___y_3457_ = v___y_3597_; -v___y_3458_ = v___y_3598_; -v___y_3459_ = v___x_3613_; -goto v___jp_3456_; +v___y_4031_ = v___y_4037_; +v_n_4032_ = v_n_4055_; +v___y_4033_ = v___x_4068_; +goto v___jp_4030_; +} +} } } +v___jp_4071_: +{ +lean_object* v___x_4079_; uint8_t v___x_4080_; +v___x_4079_ = lean_array_get_size(v___y_4078_); +v___x_4080_ = lean_nat_dec_lt(v___y_4077_, v___x_4079_); +if (v___x_4080_ == 0) +{ +lean_dec_ref(v___y_4078_); +lean_inc_ref(v___y_4074_); +v___y_4036_ = v___y_4073_; +v___y_4037_ = v___y_4072_; +v___y_4038_ = v___y_4075_; +v___y_4039_ = v___y_4076_; +v___y_4040_ = v___y_4074_; +goto v___jp_4035_; } else { -lean_object* v_n_3616_; lean_object* v_entries_3617_; lean_object* v_indexes_3618_; lean_object* v___x_3620_; uint8_t v_isShared_3621_; uint8_t v_isSharedCheck_3631_; -lean_dec_ref(v___y_3599_); -v_n_3616_ = lean_ctor_get(v___y_3598_, 0); -v_entries_3617_ = lean_ctor_get(v___y_3601_, 0); -v_indexes_3618_ = lean_ctor_get(v___y_3601_, 1); -v_isSharedCheck_3631_ = !lean_is_exclusive(v___y_3601_); -if (v_isSharedCheck_3631_ == 0) +uint8_t v___x_4081_; +v___x_4081_ = lean_nat_dec_le(v___x_4079_, v___x_4079_); +if (v___x_4081_ == 0) +{ +if (v___x_4080_ == 0) { -v___x_3620_ = v___y_3601_; -v_isShared_3621_ = v_isSharedCheck_3631_; -goto v_resetjp_3619_; +lean_dec_ref(v___y_4078_); +lean_inc_ref(v___y_4074_); +v___y_4036_ = v___y_4073_; +v___y_4037_ = v___y_4072_; +v___y_4038_ = v___y_4075_; +v___y_4039_ = v___y_4076_; +v___y_4040_ = v___y_4074_; +goto v___jp_4035_; } else { -lean_inc(v_indexes_3618_); -lean_inc(v_entries_3617_); -lean_dec(v___y_3601_); -v___x_3620_ = lean_box(0); -v_isShared_3621_ = v_isSharedCheck_3631_; -goto v_resetjp_3619_; +size_t v___x_4082_; size_t v___x_4083_; lean_object* v___x_4084_; +v___x_4082_ = ((size_t)0ULL); +v___x_4083_ = lean_usize_of_nat(v___x_4079_); +lean_inc_ref(v___y_4074_); +v___x_4084_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4078_, v___x_4082_, v___x_4083_, v___y_4074_); +lean_dec_ref(v___y_4078_); +v___y_4036_ = v___y_4073_; +v___y_4037_ = v___y_4072_; +v___y_4038_ = v___y_4075_; +v___y_4039_ = v___y_4076_; +v___y_4040_ = v___x_4084_; +goto v___jp_4035_; } -v_resetjp_3619_: +} +else { -lean_object* v___x_3622_; lean_object* v___x_3623_; lean_object* v_i_3624_; lean_object* v___x_3625_; lean_object* v_entries_3626_; lean_object* v_indexes_3627_; lean_object* v___x_3629_; -lean_inc(v_n_3616_); -v___x_3622_ = l_Nat_reprFast(v_n_3616_); -v___x_3623_ = l_Std_Http_Header_Value_ofString_x21(v___x_3622_); -v_i_3624_ = lean_array_get_size(v_entries_3617_); -lean_inc_ref(v___y_3600_); -v___x_3625_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3625_, 0, v___y_3600_); -lean_ctor_set(v___x_3625_, 1, v___x_3623_); -v_entries_3626_ = lean_array_push(v_entries_3617_, v___x_3625_); -v_indexes_3627_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3624_, v_indexes_3618_, v___y_3600_); -if (v_isShared_3621_ == 0) +size_t v___x_4085_; size_t v___x_4086_; lean_object* v___x_4087_; +v___x_4085_ = ((size_t)0ULL); +v___x_4086_ = lean_usize_of_nat(v___x_4079_); +lean_inc_ref(v___y_4074_); +v___x_4087_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4078_, v___x_4085_, v___x_4086_, v___y_4074_); +lean_dec_ref(v___y_4078_); +v___y_4036_ = v___y_4073_; +v___y_4037_ = v___y_4072_; +v___y_4038_ = v___y_4075_; +v___y_4039_ = v___y_4076_; +v___y_4040_ = v___x_4087_; +goto v___jp_4035_; +} +} +} +v___jp_4088_: +{ +lean_object* v___x_4093_; lean_object* v___f_4094_; lean_object* v___f_4095_; uint8_t v___x_4096_; +v___x_4093_ = l_Std_Http_Header_Name_transferEncoding; +v___f_4094_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4095_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4096_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4094_, v___f_4095_, v___x_4093_, v___y_4092_); +if (v___x_4096_ == 0) { -lean_ctor_set(v___x_3620_, 1, v_indexes_3627_); -lean_ctor_set(v___x_3620_, 0, v_entries_3626_); -v___x_3629_ = v___x_3620_; -goto v_reusejp_3628_; +v___y_4036_ = v___y_4090_; +v___y_4037_ = v___y_4089_; +v___y_4038_ = v___y_4091_; +v___y_4039_ = v___x_4093_; +v___y_4040_ = v___y_4092_; +goto v___jp_4035_; } else { -lean_object* v_reuseFailAlloc_3630_; -v_reuseFailAlloc_3630_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3630_, 0, v_entries_3626_); -lean_ctor_set(v_reuseFailAlloc_3630_, 1, v_indexes_3627_); -v___x_3629_ = v_reuseFailAlloc_3630_; -goto v_reusejp_3628_; +lean_object* v_entries_4097_; lean_object* v___x_4098_; lean_object* v___x_4099_; lean_object* v___x_4100_; lean_object* v___x_4101_; uint8_t v___x_4102_; +v_entries_4097_ = lean_ctor_get(v___y_4092_, 0); +lean_inc_ref(v_entries_4097_); +lean_dec_ref(v___y_4092_); +v___x_4098_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4099_ = lean_unsigned_to_nat(0u); +v___x_4100_ = lean_array_get_size(v_entries_4097_); +v___x_4101_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4102_ = lean_nat_dec_lt(v___x_4099_, v___x_4100_); +if (v___x_4102_ == 0) +{ +lean_dec_ref(v_entries_4097_); +v___y_4072_ = v___y_4089_; +v___y_4073_ = v___y_4090_; +v___y_4074_ = v___x_4098_; +v___y_4075_ = v___y_4091_; +v___y_4076_ = v___x_4093_; +v___y_4077_ = v___x_4099_; +v___y_4078_ = v___x_4101_; +goto v___jp_4071_; } -v_reusejp_3628_: +else { -v___y_3457_ = v___y_3597_; -v___y_3458_ = v___y_3598_; -v___y_3459_ = v___x_3629_; -goto v___jp_3456_; +uint8_t v___x_4103_; +v___x_4103_ = lean_nat_dec_le(v___x_4100_, v___x_4100_); +if (v___x_4103_ == 0) +{ +if (v___x_4102_ == 0) +{ +lean_dec_ref(v_entries_4097_); +v___y_4072_ = v___y_4089_; +v___y_4073_ = v___y_4090_; +v___y_4074_ = v___x_4098_; +v___y_4075_ = v___y_4091_; +v___y_4076_ = v___x_4093_; +v___y_4077_ = v___x_4099_; +v___y_4078_ = v___x_4101_; +goto v___jp_4071_; } +else +{ +size_t v___x_4104_; size_t v___x_4105_; lean_object* v___x_4106_; +v___x_4104_ = ((size_t)0ULL); +v___x_4105_ = lean_usize_of_nat(v___x_4100_); +v___x_4106_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4097_, v___x_4104_, v___x_4105_, v___x_4101_); +lean_dec_ref(v_entries_4097_); +v___y_4072_ = v___y_4089_; +v___y_4073_ = v___y_4090_; +v___y_4074_ = v___x_4098_; +v___y_4075_ = v___y_4091_; +v___y_4076_ = v___x_4093_; +v___y_4077_ = v___x_4099_; +v___y_4078_ = v___x_4106_; +goto v___jp_4071_; } } +else +{ +size_t v___x_4107_; size_t v___x_4108_; lean_object* v___x_4109_; +v___x_4107_ = ((size_t)0ULL); +v___x_4108_ = lean_usize_of_nat(v___x_4100_); +v___x_4109_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4097_, v___x_4107_, v___x_4108_, v___x_4101_); +lean_dec_ref(v_entries_4097_); +v___y_4072_ = v___y_4089_; +v___y_4073_ = v___y_4090_; +v___y_4074_ = v___x_4098_; +v___y_4075_ = v___y_4091_; +v___y_4076_ = v___x_4093_; +v___y_4077_ = v___x_4099_; +v___y_4078_ = v___x_4109_; +goto v___jp_4071_; } -v___jp_3632_: +} +} +} +v___jp_4110_: { -lean_object* v___x_3640_; uint8_t v___x_3641_; -v___x_3640_ = lean_array_get_size(v___y_3639_); -v___x_3641_ = lean_nat_dec_lt(v___y_3635_, v___x_3640_); -if (v___x_3641_ == 0) +lean_object* v___x_4117_; uint8_t v___x_4118_; +v___x_4117_ = lean_array_get_size(v___y_4116_); +v___x_4118_ = lean_nat_dec_lt(v___y_4114_, v___x_4117_); +if (v___x_4118_ == 0) { -lean_dec_ref(v___y_3639_); -lean_inc_ref(v___y_3636_); -v___y_3597_ = v___y_3633_; -v___y_3598_ = v___y_3634_; -v___y_3599_ = v___y_3637_; -v___y_3600_ = v___y_3638_; -v___y_3601_ = v___y_3636_; -goto v___jp_3596_; +lean_dec_ref(v___y_4116_); +lean_inc_ref(v___y_4113_); +v___y_4089_ = v___y_4112_; +v___y_4090_ = v___y_4111_; +v___y_4091_ = v___y_4115_; +v___y_4092_ = v___y_4113_; +goto v___jp_4088_; } else { -uint8_t v___x_3642_; -v___x_3642_ = lean_nat_dec_le(v___x_3640_, v___x_3640_); -if (v___x_3642_ == 0) +uint8_t v___x_4119_; +v___x_4119_ = lean_nat_dec_le(v___x_4117_, v___x_4117_); +if (v___x_4119_ == 0) { -if (v___x_3641_ == 0) +if (v___x_4118_ == 0) { -lean_dec_ref(v___y_3639_); -lean_inc_ref(v___y_3636_); -v___y_3597_ = v___y_3633_; -v___y_3598_ = v___y_3634_; -v___y_3599_ = v___y_3637_; -v___y_3600_ = v___y_3638_; -v___y_3601_ = v___y_3636_; -goto v___jp_3596_; +lean_dec_ref(v___y_4116_); +lean_inc_ref(v___y_4113_); +v___y_4089_ = v___y_4112_; +v___y_4090_ = v___y_4111_; +v___y_4091_ = v___y_4115_; +v___y_4092_ = v___y_4113_; +goto v___jp_4088_; } else { -size_t v___x_3643_; size_t v___x_3644_; lean_object* v___x_3645_; -v___x_3643_ = ((size_t)0ULL); -v___x_3644_ = lean_usize_of_nat(v___x_3640_); -lean_inc_ref(v___y_3636_); -v___x_3645_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3639_, v___x_3643_, v___x_3644_, v___y_3636_); -lean_dec_ref(v___y_3639_); -v___y_3597_ = v___y_3633_; -v___y_3598_ = v___y_3634_; -v___y_3599_ = v___y_3637_; -v___y_3600_ = v___y_3638_; -v___y_3601_ = v___x_3645_; -goto v___jp_3596_; +size_t v___x_4120_; size_t v___x_4121_; lean_object* v___x_4122_; +v___x_4120_ = ((size_t)0ULL); +v___x_4121_ = lean_usize_of_nat(v___x_4117_); +lean_inc_ref(v___y_4113_); +v___x_4122_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4116_, v___x_4120_, v___x_4121_, v___y_4113_); +lean_dec_ref(v___y_4116_); +v___y_4089_ = v___y_4112_; +v___y_4090_ = v___y_4111_; +v___y_4091_ = v___y_4115_; +v___y_4092_ = v___x_4122_; +goto v___jp_4088_; } } else { -size_t v___x_3646_; size_t v___x_3647_; lean_object* v___x_3648_; -v___x_3646_ = ((size_t)0ULL); -v___x_3647_ = lean_usize_of_nat(v___x_3640_); -lean_inc_ref(v___y_3636_); -v___x_3648_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3639_, v___x_3646_, v___x_3647_, v___y_3636_); -lean_dec_ref(v___y_3639_); -v___y_3597_ = v___y_3633_; -v___y_3598_ = v___y_3634_; -v___y_3599_ = v___y_3637_; -v___y_3600_ = v___y_3638_; -v___y_3601_ = v___x_3648_; -goto v___jp_3596_; +size_t v___x_4123_; size_t v___x_4124_; lean_object* v___x_4125_; +v___x_4123_ = ((size_t)0ULL); +v___x_4124_ = lean_usize_of_nat(v___x_4117_); +lean_inc_ref(v___y_4113_); +v___x_4125_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4116_, v___x_4123_, v___x_4124_, v___y_4113_); +lean_dec_ref(v___y_4116_); +v___y_4089_ = v___y_4112_; +v___y_4090_ = v___y_4111_; +v___y_4091_ = v___y_4115_; +v___y_4092_ = v___x_4125_; +goto v___jp_4088_; } } } -v___jp_3649_: +v___jp_4126_: { -lean_object* v___x_3654_; lean_object* v___f_3655_; lean_object* v___f_3656_; uint8_t v___x_3657_; -v___x_3654_ = l_Std_Http_Header_Name_transferEncoding; -v___f_3655_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3656_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3657_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3655_, v___f_3656_, v___x_3654_, v___y_3653_); -if (v___x_3657_ == 0) +if (lean_obj_tag(v___y_4129_) == 0) { -v___y_3597_ = v___y_3650_; -v___y_3598_ = v___y_3651_; -v___y_3599_ = v___x_3654_; -v___y_3600_ = v___y_3652_; -v___y_3601_ = v___y_3653_; -goto v___jp_3596_; +lean_object* v_entries_4132_; lean_object* v_indexes_4133_; lean_object* v___x_4135_; uint8_t v_isShared_4136_; uint8_t v_isSharedCheck_4145_; +lean_dec_ref(v___y_4128_); +v_entries_4132_ = lean_ctor_get(v___y_4131_, 0); +v_indexes_4133_ = lean_ctor_get(v___y_4131_, 1); +v_isSharedCheck_4145_ = !lean_is_exclusive(v___y_4131_); +if (v_isSharedCheck_4145_ == 0) +{ +v___x_4135_ = v___y_4131_; +v_isShared_4136_ = v_isSharedCheck_4145_; +goto v_resetjp_4134_; } else { -lean_object* v_entries_3658_; lean_object* v___x_3659_; lean_object* v___x_3660_; lean_object* v___x_3661_; lean_object* v___x_3662_; uint8_t v___x_3663_; -v_entries_3658_ = lean_ctor_get(v___y_3653_, 0); -lean_inc_ref(v_entries_3658_); -lean_dec_ref(v___y_3653_); -v___x_3659_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3660_ = lean_unsigned_to_nat(0u); -v___x_3661_ = lean_array_get_size(v_entries_3658_); -v___x_3662_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3663_ = lean_nat_dec_lt(v___x_3660_, v___x_3661_); -if (v___x_3663_ == 0) +lean_inc(v_indexes_4133_); +lean_inc(v_entries_4132_); +lean_dec(v___y_4131_); +v___x_4135_ = lean_box(0); +v_isShared_4136_ = v_isSharedCheck_4145_; +goto v_resetjp_4134_; +} +v_resetjp_4134_: { -lean_dec_ref(v_entries_3658_); -v___y_3633_ = v___y_3650_; -v___y_3634_ = v___y_3651_; -v___y_3635_ = v___x_3660_; -v___y_3636_ = v___x_3659_; -v___y_3637_ = v___x_3654_; -v___y_3638_ = v___y_3652_; -v___y_3639_ = v___x_3662_; -goto v___jp_3632_; +lean_object* v___x_4137_; lean_object* v_i_4138_; lean_object* v___x_4139_; lean_object* v_entries_4140_; lean_object* v_indexes_4141_; lean_object* v___x_4143_; +v___x_4137_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__0)); +v_i_4138_ = lean_array_get_size(v_entries_4132_); +lean_inc_ref(v___y_4130_); +v___x_4139_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4139_, 0, v___y_4130_); +lean_ctor_set(v___x_4139_, 1, v___x_4137_); +v_entries_4140_ = lean_array_push(v_entries_4132_, v___x_4139_); +v_indexes_4141_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4138_, v_indexes_4133_, v___y_4130_); +if (v_isShared_4136_ == 0) +{ +lean_ctor_set(v___x_4135_, 1, v_indexes_4141_); +lean_ctor_set(v___x_4135_, 0, v_entries_4140_); +v___x_4143_ = v___x_4135_; +goto v_reusejp_4142_; } else { -uint8_t v___x_3664_; -v___x_3664_ = lean_nat_dec_le(v___x_3661_, v___x_3661_); -if (v___x_3664_ == 0) +lean_object* v_reuseFailAlloc_4144_; +v_reuseFailAlloc_4144_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4144_, 0, v_entries_4140_); +lean_ctor_set(v_reuseFailAlloc_4144_, 1, v_indexes_4141_); +v___x_4143_ = v_reuseFailAlloc_4144_; +goto v_reusejp_4142_; +} +v_reusejp_4142_: +{ +v___y_4014_ = v___y_4127_; +v___y_4015_ = v___x_4143_; +goto v___jp_4013_; +} +} +} +else { -if (v___x_3663_ == 0) +lean_object* v_n_4146_; lean_object* v_entries_4147_; lean_object* v_indexes_4148_; lean_object* v___x_4150_; uint8_t v_isShared_4151_; uint8_t v_isSharedCheck_4161_; +lean_dec_ref(v___y_4130_); +v_n_4146_ = lean_ctor_get(v___y_4129_, 0); +lean_inc(v_n_4146_); +lean_dec_ref(v___y_4129_); +v_entries_4147_ = lean_ctor_get(v___y_4131_, 0); +v_indexes_4148_ = lean_ctor_get(v___y_4131_, 1); +v_isSharedCheck_4161_ = !lean_is_exclusive(v___y_4131_); +if (v_isSharedCheck_4161_ == 0) { -lean_dec_ref(v_entries_3658_); -v___y_3633_ = v___y_3650_; -v___y_3634_ = v___y_3651_; -v___y_3635_ = v___x_3660_; -v___y_3636_ = v___x_3659_; -v___y_3637_ = v___x_3654_; -v___y_3638_ = v___y_3652_; -v___y_3639_ = v___x_3662_; -goto v___jp_3632_; +v___x_4150_ = v___y_4131_; +v_isShared_4151_ = v_isSharedCheck_4161_; +goto v_resetjp_4149_; } else { -size_t v___x_3665_; size_t v___x_3666_; lean_object* v___x_3667_; -v___x_3665_ = ((size_t)0ULL); -v___x_3666_ = lean_usize_of_nat(v___x_3661_); -v___x_3667_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3658_, v___x_3665_, v___x_3666_, v___x_3662_); -lean_dec_ref(v_entries_3658_); -v___y_3633_ = v___y_3650_; -v___y_3634_ = v___y_3651_; -v___y_3635_ = v___x_3660_; -v___y_3636_ = v___x_3659_; -v___y_3637_ = v___x_3654_; -v___y_3638_ = v___y_3652_; -v___y_3639_ = v___x_3667_; -goto v___jp_3632_; +lean_inc(v_indexes_4148_); +lean_inc(v_entries_4147_); +lean_dec(v___y_4131_); +v___x_4150_ = lean_box(0); +v_isShared_4151_ = v_isSharedCheck_4161_; +goto v_resetjp_4149_; } +v_resetjp_4149_: +{ +lean_object* v___x_4152_; lean_object* v___x_4153_; lean_object* v_i_4154_; lean_object* v___x_4155_; lean_object* v_entries_4156_; lean_object* v_indexes_4157_; lean_object* v___x_4159_; +lean_inc(v_n_4146_); +v___x_4152_ = l_Nat_reprFast(v_n_4146_); +v___x_4153_ = l_Std_Http_Header_Value_ofString_x21(v___x_4152_); +v_i_4154_ = lean_array_get_size(v_entries_4147_); +lean_inc_ref(v___y_4128_); +v___x_4155_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4155_, 0, v___y_4128_); +lean_ctor_set(v___x_4155_, 1, v___x_4153_); +v_entries_4156_ = lean_array_push(v_entries_4147_, v___x_4155_); +v_indexes_4157_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4154_, v_indexes_4148_, v___y_4128_); +if (v_isShared_4151_ == 0) +{ +lean_ctor_set(v___x_4150_, 1, v_indexes_4157_); +lean_ctor_set(v___x_4150_, 0, v_entries_4156_); +v___x_4159_ = v___x_4150_; +goto v_reusejp_4158_; } else { -size_t v___x_3668_; size_t v___x_3669_; lean_object* v___x_3670_; -v___x_3668_ = ((size_t)0ULL); -v___x_3669_ = lean_usize_of_nat(v___x_3661_); -v___x_3670_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3658_, v___x_3668_, v___x_3669_, v___x_3662_); -lean_dec_ref(v_entries_3658_); -v___y_3633_ = v___y_3650_; -v___y_3634_ = v___y_3651_; -v___y_3635_ = v___x_3660_; -v___y_3636_ = v___x_3659_; -v___y_3637_ = v___x_3654_; -v___y_3638_ = v___y_3652_; -v___y_3639_ = v___x_3670_; -goto v___jp_3632_; +lean_object* v_reuseFailAlloc_4160_; +v_reuseFailAlloc_4160_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4160_, 0, v_entries_4156_); +lean_ctor_set(v_reuseFailAlloc_4160_, 1, v_indexes_4157_); +v___x_4159_ = v_reuseFailAlloc_4160_; +goto v_reusejp_4158_; } +v_reusejp_4158_: +{ +v___y_4031_ = v___y_4127_; +v_n_4032_ = v_n_4146_; +v___y_4033_ = v___x_4159_; +goto v___jp_4030_; } } } -v___jp_3671_: +} +v___jp_4162_: { -lean_object* v___x_3678_; uint8_t v___x_3679_; -v___x_3678_ = lean_array_get_size(v___y_3677_); -v___x_3679_ = lean_nat_dec_lt(v___y_3674_, v___x_3678_); -if (v___x_3679_ == 0) +lean_object* v___x_4170_; uint8_t v___x_4171_; +v___x_4170_ = lean_array_get_size(v___y_4169_); +v___x_4171_ = lean_nat_dec_lt(v___y_4168_, v___x_4170_); +if (v___x_4171_ == 0) { -lean_dec_ref(v___y_3677_); -lean_inc_ref(v___y_3675_); -v___y_3650_ = v___y_3672_; -v___y_3651_ = v___y_3673_; -v___y_3652_ = v___y_3676_; -v___y_3653_ = v___y_3675_; -goto v___jp_3649_; +lean_dec_ref(v___y_4169_); +lean_inc_ref(v___y_4164_); +v___y_4127_ = v___y_4163_; +v___y_4128_ = v___y_4165_; +v___y_4129_ = v___y_4166_; +v___y_4130_ = v___y_4167_; +v___y_4131_ = v___y_4164_; +goto v___jp_4126_; } else { -uint8_t v___x_3680_; -v___x_3680_ = lean_nat_dec_le(v___x_3678_, v___x_3678_); -if (v___x_3680_ == 0) +uint8_t v___x_4172_; +v___x_4172_ = lean_nat_dec_le(v___x_4170_, v___x_4170_); +if (v___x_4172_ == 0) { -if (v___x_3679_ == 0) +if (v___x_4171_ == 0) { -lean_dec_ref(v___y_3677_); -lean_inc_ref(v___y_3675_); -v___y_3650_ = v___y_3672_; -v___y_3651_ = v___y_3673_; -v___y_3652_ = v___y_3676_; -v___y_3653_ = v___y_3675_; -goto v___jp_3649_; +lean_dec_ref(v___y_4169_); +lean_inc_ref(v___y_4164_); +v___y_4127_ = v___y_4163_; +v___y_4128_ = v___y_4165_; +v___y_4129_ = v___y_4166_; +v___y_4130_ = v___y_4167_; +v___y_4131_ = v___y_4164_; +goto v___jp_4126_; } else { -size_t v___x_3681_; size_t v___x_3682_; lean_object* v___x_3683_; -v___x_3681_ = ((size_t)0ULL); -v___x_3682_ = lean_usize_of_nat(v___x_3678_); -lean_inc_ref(v___y_3675_); -v___x_3683_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3677_, v___x_3681_, v___x_3682_, v___y_3675_); -lean_dec_ref(v___y_3677_); -v___y_3650_ = v___y_3672_; -v___y_3651_ = v___y_3673_; -v___y_3652_ = v___y_3676_; -v___y_3653_ = v___x_3683_; -goto v___jp_3649_; +size_t v___x_4173_; size_t v___x_4174_; lean_object* v___x_4175_; +v___x_4173_ = ((size_t)0ULL); +v___x_4174_ = lean_usize_of_nat(v___x_4170_); +lean_inc_ref(v___y_4164_); +v___x_4175_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4169_, v___x_4173_, v___x_4174_, v___y_4164_); +lean_dec_ref(v___y_4169_); +v___y_4127_ = v___y_4163_; +v___y_4128_ = v___y_4165_; +v___y_4129_ = v___y_4166_; +v___y_4130_ = v___y_4167_; +v___y_4131_ = v___x_4175_; +goto v___jp_4126_; } } else { -size_t v___x_3684_; size_t v___x_3685_; lean_object* v___x_3686_; -v___x_3684_ = ((size_t)0ULL); -v___x_3685_ = lean_usize_of_nat(v___x_3678_); -lean_inc_ref(v___y_3675_); -v___x_3686_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3677_, v___x_3684_, v___x_3685_, v___y_3675_); -lean_dec_ref(v___y_3677_); -v___y_3650_ = v___y_3672_; -v___y_3651_ = v___y_3673_; -v___y_3652_ = v___y_3676_; -v___y_3653_ = v___x_3686_; -goto v___jp_3649_; +size_t v___x_4176_; size_t v___x_4177_; lean_object* v___x_4178_; +v___x_4176_ = ((size_t)0ULL); +v___x_4177_ = lean_usize_of_nat(v___x_4170_); +lean_inc_ref(v___y_4164_); +v___x_4178_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4169_, v___x_4176_, v___x_4177_, v___y_4164_); +lean_dec_ref(v___y_4169_); +v___y_4127_ = v___y_4163_; +v___y_4128_ = v___y_4165_; +v___y_4129_ = v___y_4166_; +v___y_4130_ = v___y_4167_; +v___y_4131_ = v___x_4178_; +goto v___jp_4126_; +} } } +v___jp_4179_: +{ +lean_object* v___x_4184_; lean_object* v___f_4185_; lean_object* v___f_4186_; uint8_t v___x_4187_; +v___x_4184_ = l_Std_Http_Header_Name_transferEncoding; +v___f_4185_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4186_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4187_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4185_, v___f_4186_, v___x_4184_, v___y_4183_); +if (v___x_4187_ == 0) +{ +v___y_4127_ = v___y_4180_; +v___y_4128_ = v___y_4181_; +v___y_4129_ = v___y_4182_; +v___y_4130_ = v___x_4184_; +v___y_4131_ = v___y_4183_; +goto v___jp_4126_; } -v___jp_3687_: +else { -lean_object* v___x_3693_; uint8_t v___x_3694_; -v___x_3693_ = lean_array_get_size(v___y_3692_); -v___x_3694_ = lean_nat_dec_lt(v___y_3691_, v___x_3693_); -if (v___x_3694_ == 0) +lean_object* v_entries_4188_; lean_object* v___x_4189_; lean_object* v___x_4190_; lean_object* v___x_4191_; lean_object* v___x_4192_; uint8_t v___x_4193_; +v_entries_4188_ = lean_ctor_get(v___y_4183_, 0); +lean_inc_ref(v_entries_4188_); +lean_dec_ref(v___y_4183_); +v___x_4189_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4190_ = lean_unsigned_to_nat(0u); +v___x_4191_ = lean_array_get_size(v_entries_4188_); +v___x_4192_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4193_ = lean_nat_dec_lt(v___x_4190_, v___x_4191_); +if (v___x_4193_ == 0) { -lean_dec_ref(v___y_3692_); -lean_inc_ref(v___y_3690_); -v___y_3457_ = v___y_3688_; -v___y_3458_ = v___y_3689_; -v___y_3459_ = v___y_3690_; -goto v___jp_3456_; +lean_dec_ref(v_entries_4188_); +v___y_4163_ = v___y_4180_; +v___y_4164_ = v___x_4189_; +v___y_4165_ = v___y_4181_; +v___y_4166_ = v___y_4182_; +v___y_4167_ = v___x_4184_; +v___y_4168_ = v___x_4190_; +v___y_4169_ = v___x_4192_; +goto v___jp_4162_; } else { -uint8_t v___x_3695_; -v___x_3695_ = lean_nat_dec_le(v___x_3693_, v___x_3693_); -if (v___x_3695_ == 0) +uint8_t v___x_4194_; +v___x_4194_ = lean_nat_dec_le(v___x_4191_, v___x_4191_); +if (v___x_4194_ == 0) { -if (v___x_3694_ == 0) +if (v___x_4193_ == 0) { -lean_dec_ref(v___y_3692_); -lean_inc_ref(v___y_3690_); -v___y_3457_ = v___y_3688_; -v___y_3458_ = v___y_3689_; -v___y_3459_ = v___y_3690_; -goto v___jp_3456_; +lean_dec_ref(v_entries_4188_); +v___y_4163_ = v___y_4180_; +v___y_4164_ = v___x_4189_; +v___y_4165_ = v___y_4181_; +v___y_4166_ = v___y_4182_; +v___y_4167_ = v___x_4184_; +v___y_4168_ = v___x_4190_; +v___y_4169_ = v___x_4192_; +goto v___jp_4162_; } else { -size_t v___x_3696_; size_t v___x_3697_; lean_object* v___x_3698_; -v___x_3696_ = ((size_t)0ULL); -v___x_3697_ = lean_usize_of_nat(v___x_3693_); -lean_inc_ref(v___y_3690_); -v___x_3698_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3692_, v___x_3696_, v___x_3697_, v___y_3690_); -lean_dec_ref(v___y_3692_); -v___y_3457_ = v___y_3688_; -v___y_3458_ = v___y_3689_; -v___y_3459_ = v___x_3698_; -goto v___jp_3456_; +size_t v___x_4195_; size_t v___x_4196_; lean_object* v___x_4197_; +v___x_4195_ = ((size_t)0ULL); +v___x_4196_ = lean_usize_of_nat(v___x_4191_); +v___x_4197_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4188_, v___x_4195_, v___x_4196_, v___x_4192_); +lean_dec_ref(v_entries_4188_); +v___y_4163_ = v___y_4180_; +v___y_4164_ = v___x_4189_; +v___y_4165_ = v___y_4181_; +v___y_4166_ = v___y_4182_; +v___y_4167_ = v___x_4184_; +v___y_4168_ = v___x_4190_; +v___y_4169_ = v___x_4197_; +goto v___jp_4162_; } } else { -size_t v___x_3699_; size_t v___x_3700_; lean_object* v___x_3701_; -v___x_3699_ = ((size_t)0ULL); -v___x_3700_ = lean_usize_of_nat(v___x_3693_); -lean_inc_ref(v___y_3690_); -v___x_3701_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3692_, v___x_3699_, v___x_3700_, v___y_3690_); -lean_dec_ref(v___y_3692_); -v___y_3457_ = v___y_3688_; -v___y_3458_ = v___y_3689_; -v___y_3459_ = v___x_3701_; -goto v___jp_3456_; +size_t v___x_4198_; size_t v___x_4199_; lean_object* v___x_4200_; +v___x_4198_ = ((size_t)0ULL); +v___x_4199_ = lean_usize_of_nat(v___x_4191_); +v___x_4200_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4188_, v___x_4198_, v___x_4199_, v___x_4192_); +lean_dec_ref(v_entries_4188_); +v___y_4163_ = v___y_4180_; +v___y_4164_ = v___x_4189_; +v___y_4165_ = v___y_4181_; +v___y_4166_ = v___y_4182_; +v___y_4167_ = v___x_4184_; +v___y_4168_ = v___x_4190_; +v___y_4169_ = v___x_4200_; +goto v___jp_4162_; } } } -v___jp_3702_: -{ -if (v___y_3706_ == 0) +} +v___jp_4201_: { -lean_object* v_entries_3707_; lean_object* v___x_3708_; lean_object* v___x_3709_; lean_object* v___x_3710_; lean_object* v___x_3711_; uint8_t v___x_3712_; -v_entries_3707_ = lean_ctor_get(v___y_3705_, 0); -lean_inc_ref(v_entries_3707_); -lean_dec_ref(v___y_3705_); -v___x_3708_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3709_ = lean_unsigned_to_nat(0u); -v___x_3710_ = lean_array_get_size(v_entries_3707_); -v___x_3711_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3712_ = lean_nat_dec_lt(v___x_3709_, v___x_3710_); -if (v___x_3712_ == 0) +lean_object* v___x_4208_; uint8_t v___x_4209_; +v___x_4208_ = lean_array_get_size(v___y_4207_); +v___x_4209_ = lean_nat_dec_lt(v___y_4203_, v___x_4208_); +if (v___x_4209_ == 0) { -lean_dec_ref(v_entries_3707_); -v___y_3688_ = v___y_3703_; -v___y_3689_ = v___y_3704_; -v___y_3690_ = v___x_3708_; -v___y_3691_ = v___x_3709_; -v___y_3692_ = v___x_3711_; -goto v___jp_3687_; +lean_dec_ref(v___y_4207_); +lean_inc_ref(v___y_4206_); +v___y_4180_ = v___y_4202_; +v___y_4181_ = v___y_4204_; +v___y_4182_ = v___y_4205_; +v___y_4183_ = v___y_4206_; +goto v___jp_4179_; } else { -uint8_t v___x_3713_; -v___x_3713_ = lean_nat_dec_le(v___x_3710_, v___x_3710_); -if (v___x_3713_ == 0) +uint8_t v___x_4210_; +v___x_4210_ = lean_nat_dec_le(v___x_4208_, v___x_4208_); +if (v___x_4210_ == 0) { -if (v___x_3712_ == 0) +if (v___x_4209_ == 0) { -lean_dec_ref(v_entries_3707_); -v___y_3688_ = v___y_3703_; -v___y_3689_ = v___y_3704_; -v___y_3690_ = v___x_3708_; -v___y_3691_ = v___x_3709_; -v___y_3692_ = v___x_3711_; -goto v___jp_3687_; +lean_dec_ref(v___y_4207_); +lean_inc_ref(v___y_4206_); +v___y_4180_ = v___y_4202_; +v___y_4181_ = v___y_4204_; +v___y_4182_ = v___y_4205_; +v___y_4183_ = v___y_4206_; +goto v___jp_4179_; } else { -size_t v___x_3714_; size_t v___x_3715_; lean_object* v___x_3716_; -v___x_3714_ = ((size_t)0ULL); -v___x_3715_ = lean_usize_of_nat(v___x_3710_); -v___x_3716_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3707_, v___x_3714_, v___x_3715_, v___x_3711_); -lean_dec_ref(v_entries_3707_); -v___y_3688_ = v___y_3703_; -v___y_3689_ = v___y_3704_; -v___y_3690_ = v___x_3708_; -v___y_3691_ = v___x_3709_; -v___y_3692_ = v___x_3716_; -goto v___jp_3687_; +size_t v___x_4211_; size_t v___x_4212_; lean_object* v___x_4213_; +v___x_4211_ = ((size_t)0ULL); +v___x_4212_ = lean_usize_of_nat(v___x_4208_); +lean_inc_ref(v___y_4206_); +v___x_4213_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4207_, v___x_4211_, v___x_4212_, v___y_4206_); +lean_dec_ref(v___y_4207_); +v___y_4180_ = v___y_4202_; +v___y_4181_ = v___y_4204_; +v___y_4182_ = v___y_4205_; +v___y_4183_ = v___x_4213_; +goto v___jp_4179_; } } else { -size_t v___x_3717_; size_t v___x_3718_; lean_object* v___x_3719_; -v___x_3717_ = ((size_t)0ULL); -v___x_3718_ = lean_usize_of_nat(v___x_3710_); -v___x_3719_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3707_, v___x_3717_, v___x_3718_, v___x_3711_); -lean_dec_ref(v_entries_3707_); -v___y_3688_ = v___y_3703_; -v___y_3689_ = v___y_3704_; -v___y_3690_ = v___x_3708_; -v___y_3691_ = v___x_3709_; -v___y_3692_ = v___x_3719_; -goto v___jp_3687_; +size_t v___x_4214_; size_t v___x_4215_; lean_object* v___x_4216_; +v___x_4214_ = ((size_t)0ULL); +v___x_4215_ = lean_usize_of_nat(v___x_4208_); +lean_inc_ref(v___y_4206_); +v___x_4216_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4207_, v___x_4214_, v___x_4215_, v___y_4206_); +lean_dec_ref(v___y_4207_); +v___y_4180_ = v___y_4202_; +v___y_4181_ = v___y_4204_; +v___y_4182_ = v___y_4205_; +v___y_4183_ = v___x_4216_; +goto v___jp_4179_; } } } +v___jp_4217_: +{ +if (lean_obj_tag(v___y_4219_) == 0) +{ +v___y_4014_ = v___y_4218_; +v___y_4015_ = v___y_4220_; +goto v___jp_4013_; +} else { -v___y_3457_ = v___y_3703_; -v___y_3458_ = v___y_3704_; -v___y_3459_ = v___y_3705_; -goto v___jp_3456_; +lean_object* v_n_4221_; +v_n_4221_ = lean_ctor_get(v___y_4219_, 0); +lean_inc(v_n_4221_); +lean_dec_ref(v___y_4219_); +v___y_4031_ = v___y_4218_; +v_n_4032_ = v_n_4221_; +v___y_4033_ = v___y_4220_; +goto v___jp_4030_; } } -v___jp_3720_: -{ -if (lean_obj_tag(v___y_3722_) == 0) +v___jp_4222_: { -lean_object* v_entries_3726_; lean_object* v_indexes_3727_; lean_object* v___x_3729_; uint8_t v_isShared_3730_; uint8_t v_isSharedCheck_3739_; -lean_dec_ref(v___y_3724_); -v_entries_3726_ = lean_ctor_get(v___y_3725_, 0); -v_indexes_3727_ = lean_ctor_get(v___y_3725_, 1); -v_isSharedCheck_3739_ = !lean_is_exclusive(v___y_3725_); -if (v_isSharedCheck_3739_ == 0) +lean_object* v___x_4228_; uint8_t v___x_4229_; +v___x_4228_ = lean_array_get_size(v___y_4227_); +v___x_4229_ = lean_nat_dec_lt(v___y_4226_, v___x_4228_); +if (v___x_4229_ == 0) { -v___x_3729_ = v___y_3725_; -v_isShared_3730_ = v_isSharedCheck_3739_; -goto v_resetjp_3728_; +lean_dec_ref(v___y_4227_); +lean_inc_ref(v___y_4224_); +v___y_4218_ = v___y_4223_; +v___y_4219_ = v___y_4225_; +v___y_4220_ = v___y_4224_; +goto v___jp_4217_; } else { -lean_inc(v_indexes_3727_); -lean_inc(v_entries_3726_); -lean_dec(v___y_3725_); -v___x_3729_ = lean_box(0); -v_isShared_3730_ = v_isSharedCheck_3739_; -goto v_resetjp_3728_; -} -v_resetjp_3728_: +uint8_t v___x_4230_; +v___x_4230_ = lean_nat_dec_le(v___x_4228_, v___x_4228_); +if (v___x_4230_ == 0) { -lean_object* v___x_3731_; lean_object* v_i_3732_; lean_object* v___x_3733_; lean_object* v_entries_3734_; lean_object* v_indexes_3735_; lean_object* v___x_3737_; -v___x_3731_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__0)); -v_i_3732_ = lean_array_get_size(v_entries_3726_); -lean_inc_ref(v___y_3723_); -v___x_3733_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3733_, 0, v___y_3723_); -lean_ctor_set(v___x_3733_, 1, v___x_3731_); -v_entries_3734_ = lean_array_push(v_entries_3726_, v___x_3733_); -v_indexes_3735_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3732_, v_indexes_3727_, v___y_3723_); -if (v_isShared_3730_ == 0) +if (v___x_4229_ == 0) { -lean_ctor_set(v___x_3729_, 1, v_indexes_3735_); -lean_ctor_set(v___x_3729_, 0, v_entries_3734_); -v___x_3737_ = v___x_3729_; -goto v_reusejp_3736_; +lean_dec_ref(v___y_4227_); +lean_inc_ref(v___y_4224_); +v___y_4218_ = v___y_4223_; +v___y_4219_ = v___y_4225_; +v___y_4220_ = v___y_4224_; +goto v___jp_4217_; } else { -lean_object* v_reuseFailAlloc_3738_; -v_reuseFailAlloc_3738_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3738_, 0, v_entries_3734_); -lean_ctor_set(v_reuseFailAlloc_3738_, 1, v_indexes_3735_); -v___x_3737_ = v_reuseFailAlloc_3738_; -goto v_reusejp_3736_; +size_t v___x_4231_; size_t v___x_4232_; lean_object* v___x_4233_; +v___x_4231_ = ((size_t)0ULL); +v___x_4232_ = lean_usize_of_nat(v___x_4228_); +lean_inc_ref(v___y_4224_); +v___x_4233_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4227_, v___x_4231_, v___x_4232_, v___y_4224_); +lean_dec_ref(v___y_4227_); +v___y_4218_ = v___y_4223_; +v___y_4219_ = v___y_4225_; +v___y_4220_ = v___x_4233_; +goto v___jp_4217_; +} } -v_reusejp_3736_: +else { -v___y_3457_ = v___y_3721_; -v___y_3458_ = v___y_3722_; -v___y_3459_ = v___x_3737_; -goto v___jp_3456_; +size_t v___x_4234_; size_t v___x_4235_; lean_object* v___x_4236_; +v___x_4234_ = ((size_t)0ULL); +v___x_4235_ = lean_usize_of_nat(v___x_4228_); +lean_inc_ref(v___y_4224_); +v___x_4236_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4227_, v___x_4234_, v___x_4235_, v___y_4224_); +lean_dec_ref(v___y_4227_); +v___y_4218_ = v___y_4223_; +v___y_4219_ = v___y_4225_; +v___y_4220_ = v___x_4236_; +goto v___jp_4217_; } } } -else +v___jp_4237_: { -lean_object* v_n_3740_; lean_object* v_entries_3741_; lean_object* v_indexes_3742_; lean_object* v___x_3744_; uint8_t v_isShared_3745_; uint8_t v_isSharedCheck_3755_; -lean_dec_ref(v___y_3723_); -v_n_3740_ = lean_ctor_get(v___y_3722_, 0); -v_entries_3741_ = lean_ctor_get(v___y_3725_, 0); -v_indexes_3742_ = lean_ctor_get(v___y_3725_, 1); -v_isSharedCheck_3755_ = !lean_is_exclusive(v___y_3725_); -if (v_isSharedCheck_3755_ == 0) +lean_object* v___x_4241_; lean_object* v___f_4242_; lean_object* v___f_4243_; uint8_t v___x_4244_; +v___x_4241_ = l_Std_Http_Header_Name_transferEncoding; +v___f_4242_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4243_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4244_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4242_, v___f_4243_, v___x_4241_, v___y_4240_); +if (v___x_4244_ == 0) { -v___x_3744_ = v___y_3725_; -v_isShared_3745_ = v_isSharedCheck_3755_; -goto v_resetjp_3743_; +v___y_4218_ = v___y_4238_; +v___y_4219_ = v___y_4239_; +v___y_4220_ = v___y_4240_; +goto v___jp_4217_; } else { -lean_inc(v_indexes_3742_); -lean_inc(v_entries_3741_); -lean_dec(v___y_3725_); -v___x_3744_ = lean_box(0); -v_isShared_3745_ = v_isSharedCheck_3755_; -goto v_resetjp_3743_; +lean_object* v_entries_4245_; lean_object* v___x_4246_; lean_object* v___x_4247_; lean_object* v___x_4248_; lean_object* v___x_4249_; uint8_t v___x_4250_; +v_entries_4245_ = lean_ctor_get(v___y_4240_, 0); +lean_inc_ref(v_entries_4245_); +lean_dec_ref(v___y_4240_); +v___x_4246_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4247_ = lean_unsigned_to_nat(0u); +v___x_4248_ = lean_array_get_size(v_entries_4245_); +v___x_4249_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4250_ = lean_nat_dec_lt(v___x_4247_, v___x_4248_); +if (v___x_4250_ == 0) +{ +lean_dec_ref(v_entries_4245_); +v___y_4223_ = v___y_4238_; +v___y_4224_ = v___x_4246_; +v___y_4225_ = v___y_4239_; +v___y_4226_ = v___x_4247_; +v___y_4227_ = v___x_4249_; +goto v___jp_4222_; } -v_resetjp_3743_: +else +{ +uint8_t v___x_4251_; +v___x_4251_ = lean_nat_dec_le(v___x_4248_, v___x_4248_); +if (v___x_4251_ == 0) { -lean_object* v___x_3746_; lean_object* v___x_3747_; lean_object* v_i_3748_; lean_object* v___x_3749_; lean_object* v_entries_3750_; lean_object* v_indexes_3751_; lean_object* v___x_3753_; -lean_inc(v_n_3740_); -v___x_3746_ = l_Nat_reprFast(v_n_3740_); -v___x_3747_ = l_Std_Http_Header_Value_ofString_x21(v___x_3746_); -v_i_3748_ = lean_array_get_size(v_entries_3741_); -lean_inc_ref(v___y_3724_); -v___x_3749_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3749_, 0, v___y_3724_); -lean_ctor_set(v___x_3749_, 1, v___x_3747_); -v_entries_3750_ = lean_array_push(v_entries_3741_, v___x_3749_); -v_indexes_3751_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3748_, v_indexes_3742_, v___y_3724_); -if (v_isShared_3745_ == 0) +if (v___x_4250_ == 0) { -lean_ctor_set(v___x_3744_, 1, v_indexes_3751_); -lean_ctor_set(v___x_3744_, 0, v_entries_3750_); -v___x_3753_ = v___x_3744_; -goto v_reusejp_3752_; +lean_dec_ref(v_entries_4245_); +v___y_4223_ = v___y_4238_; +v___y_4224_ = v___x_4246_; +v___y_4225_ = v___y_4239_; +v___y_4226_ = v___x_4247_; +v___y_4227_ = v___x_4249_; +goto v___jp_4222_; } else { -lean_object* v_reuseFailAlloc_3754_; -v_reuseFailAlloc_3754_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_3754_, 0, v_entries_3750_); -lean_ctor_set(v_reuseFailAlloc_3754_, 1, v_indexes_3751_); -v___x_3753_ = v_reuseFailAlloc_3754_; -goto v_reusejp_3752_; +size_t v___x_4252_; size_t v___x_4253_; lean_object* v___x_4254_; +v___x_4252_ = ((size_t)0ULL); +v___x_4253_ = lean_usize_of_nat(v___x_4248_); +v___x_4254_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4245_, v___x_4252_, v___x_4253_, v___x_4249_); +lean_dec_ref(v_entries_4245_); +v___y_4223_ = v___y_4238_; +v___y_4224_ = v___x_4246_; +v___y_4225_ = v___y_4239_; +v___y_4226_ = v___x_4247_; +v___y_4227_ = v___x_4254_; +goto v___jp_4222_; +} } -v_reusejp_3752_: +else { -v___y_3457_ = v___y_3721_; -v___y_3458_ = v___y_3722_; -v___y_3459_ = v___x_3753_; -goto v___jp_3456_; +size_t v___x_4255_; size_t v___x_4256_; lean_object* v___x_4257_; +v___x_4255_ = ((size_t)0ULL); +v___x_4256_ = lean_usize_of_nat(v___x_4248_); +v___x_4257_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4245_, v___x_4255_, v___x_4256_, v___x_4249_); +lean_dec_ref(v_entries_4245_); +v___y_4223_ = v___y_4238_; +v___y_4224_ = v___x_4246_; +v___y_4225_ = v___y_4239_; +v___y_4226_ = v___x_4247_; +v___y_4227_ = v___x_4257_; +goto v___jp_4222_; } } } } -v___jp_3756_: +v___jp_4258_: { -lean_object* v___x_3764_; uint8_t v___x_3765_; -v___x_3764_ = lean_array_get_size(v___y_3763_); -v___x_3765_ = lean_nat_dec_lt(v___y_3760_, v___x_3764_); -if (v___x_3765_ == 0) +lean_object* v___x_4264_; uint8_t v___x_4265_; +v___x_4264_ = lean_array_get_size(v___y_4263_); +v___x_4265_ = lean_nat_dec_lt(v___y_4260_, v___x_4264_); +if (v___x_4265_ == 0) { -lean_dec_ref(v___y_3763_); -lean_inc_ref(v___y_3759_); -v___y_3721_ = v___y_3757_; -v___y_3722_ = v___y_3758_; -v___y_3723_ = v___y_3761_; -v___y_3724_ = v___y_3762_; -v___y_3725_ = v___y_3759_; -goto v___jp_3720_; +lean_dec_ref(v___y_4263_); +lean_inc_ref(v___y_4261_); +v___y_4238_ = v___y_4259_; +v___y_4239_ = v___y_4262_; +v___y_4240_ = v___y_4261_; +goto v___jp_4237_; } else { -uint8_t v___x_3766_; -v___x_3766_ = lean_nat_dec_le(v___x_3764_, v___x_3764_); -if (v___x_3766_ == 0) +uint8_t v___x_4266_; +v___x_4266_ = lean_nat_dec_le(v___x_4264_, v___x_4264_); +if (v___x_4266_ == 0) { -if (v___x_3765_ == 0) +if (v___x_4265_ == 0) { -lean_dec_ref(v___y_3763_); -lean_inc_ref(v___y_3759_); -v___y_3721_ = v___y_3757_; -v___y_3722_ = v___y_3758_; -v___y_3723_ = v___y_3761_; -v___y_3724_ = v___y_3762_; -v___y_3725_ = v___y_3759_; -goto v___jp_3720_; +lean_dec_ref(v___y_4263_); +lean_inc_ref(v___y_4261_); +v___y_4238_ = v___y_4259_; +v___y_4239_ = v___y_4262_; +v___y_4240_ = v___y_4261_; +goto v___jp_4237_; } else { -size_t v___x_3767_; size_t v___x_3768_; lean_object* v___x_3769_; -v___x_3767_ = ((size_t)0ULL); -v___x_3768_ = lean_usize_of_nat(v___x_3764_); -lean_inc_ref(v___y_3759_); -v___x_3769_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3763_, v___x_3767_, v___x_3768_, v___y_3759_); -lean_dec_ref(v___y_3763_); -v___y_3721_ = v___y_3757_; -v___y_3722_ = v___y_3758_; -v___y_3723_ = v___y_3761_; -v___y_3724_ = v___y_3762_; -v___y_3725_ = v___x_3769_; -goto v___jp_3720_; +size_t v___x_4267_; size_t v___x_4268_; lean_object* v___x_4269_; +v___x_4267_ = ((size_t)0ULL); +v___x_4268_ = lean_usize_of_nat(v___x_4264_); +lean_inc_ref(v___y_4261_); +v___x_4269_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4263_, v___x_4267_, v___x_4268_, v___y_4261_); +lean_dec_ref(v___y_4263_); +v___y_4238_ = v___y_4259_; +v___y_4239_ = v___y_4262_; +v___y_4240_ = v___x_4269_; +goto v___jp_4237_; } } else { -size_t v___x_3770_; size_t v___x_3771_; lean_object* v___x_3772_; -v___x_3770_ = ((size_t)0ULL); -v___x_3771_ = lean_usize_of_nat(v___x_3764_); -lean_inc_ref(v___y_3759_); -v___x_3772_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3763_, v___x_3770_, v___x_3771_, v___y_3759_); -lean_dec_ref(v___y_3763_); -v___y_3721_ = v___y_3757_; -v___y_3722_ = v___y_3758_; -v___y_3723_ = v___y_3761_; -v___y_3724_ = v___y_3762_; -v___y_3725_ = v___x_3772_; -goto v___jp_3720_; +size_t v___x_4270_; size_t v___x_4271_; lean_object* v___x_4272_; +v___x_4270_ = ((size_t)0ULL); +v___x_4271_ = lean_usize_of_nat(v___x_4264_); +lean_inc_ref(v___y_4261_); +v___x_4272_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4263_, v___x_4270_, v___x_4271_, v___y_4261_); +lean_dec_ref(v___y_4263_); +v___y_4238_ = v___y_4259_; +v___y_4239_ = v___y_4262_; +v___y_4240_ = v___x_4272_; +goto v___jp_4237_; } } } -v___jp_3773_: +v___jp_4273_: { -lean_object* v___x_3779_; lean_object* v___f_3780_; lean_object* v___f_3781_; uint8_t v___x_3782_; -v___x_3779_ = l_Std_Http_Header_Name_transferEncoding; -v___f_3780_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3781_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3782_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3780_, v___f_3781_, v___x_3779_, v___y_3778_); -if (v___x_3782_ == 0) +lean_object* v___x_4277_; lean_object* v___f_4278_; lean_object* v___f_4279_; uint8_t v___x_4280_; +v___x_4277_ = l_Std_Http_Header_Name_contentLength; +v___f_4278_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4279_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4280_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4278_, v___f_4279_, v___x_4277_, v___y_4275_); +if (v___x_4280_ == 0) { -v___y_3721_ = v___y_3774_; -v___y_3722_ = v___y_3775_; -v___y_3723_ = v___x_3779_; -v___y_3724_ = v___y_3777_; -v___y_3725_ = v___y_3778_; -goto v___jp_3720_; +v___y_4238_ = v___y_4274_; +v___y_4239_ = v___y_4276_; +v___y_4240_ = v___y_4275_; +goto v___jp_4237_; } else { -if (v___y_3776_ == 0) -{ -lean_object* v_entries_3783_; lean_object* v___x_3784_; lean_object* v___x_3785_; lean_object* v___x_3786_; lean_object* v___x_3787_; uint8_t v___x_3788_; -v_entries_3783_ = lean_ctor_get(v___y_3778_, 0); -lean_inc_ref(v_entries_3783_); -lean_dec_ref(v___y_3778_); -v___x_3784_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3785_ = lean_unsigned_to_nat(0u); -v___x_3786_ = lean_array_get_size(v_entries_3783_); -v___x_3787_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3788_ = lean_nat_dec_lt(v___x_3785_, v___x_3786_); -if (v___x_3788_ == 0) +lean_object* v_entries_4281_; lean_object* v___x_4282_; lean_object* v___x_4283_; lean_object* v___x_4284_; lean_object* v___x_4285_; uint8_t v___x_4286_; +v_entries_4281_ = lean_ctor_get(v___y_4275_, 0); +lean_inc_ref(v_entries_4281_); +lean_dec_ref(v___y_4275_); +v___x_4282_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4283_ = lean_unsigned_to_nat(0u); +v___x_4284_ = lean_array_get_size(v_entries_4281_); +v___x_4285_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4286_ = lean_nat_dec_lt(v___x_4283_, v___x_4284_); +if (v___x_4286_ == 0) { -lean_dec_ref(v_entries_3783_); -v___y_3757_ = v___y_3774_; -v___y_3758_ = v___y_3775_; -v___y_3759_ = v___x_3784_; -v___y_3760_ = v___x_3785_; -v___y_3761_ = v___x_3779_; -v___y_3762_ = v___y_3777_; -v___y_3763_ = v___x_3787_; -goto v___jp_3756_; +lean_dec_ref(v_entries_4281_); +v___y_4259_ = v___y_4274_; +v___y_4260_ = v___x_4283_; +v___y_4261_ = v___x_4282_; +v___y_4262_ = v___y_4276_; +v___y_4263_ = v___x_4285_; +goto v___jp_4258_; } else { -uint8_t v___x_3789_; -v___x_3789_ = lean_nat_dec_le(v___x_3786_, v___x_3786_); -if (v___x_3789_ == 0) +uint8_t v___x_4287_; +v___x_4287_ = lean_nat_dec_le(v___x_4284_, v___x_4284_); +if (v___x_4287_ == 0) { -if (v___x_3788_ == 0) +if (v___x_4286_ == 0) { -lean_dec_ref(v_entries_3783_); -v___y_3757_ = v___y_3774_; -v___y_3758_ = v___y_3775_; -v___y_3759_ = v___x_3784_; -v___y_3760_ = v___x_3785_; -v___y_3761_ = v___x_3779_; -v___y_3762_ = v___y_3777_; -v___y_3763_ = v___x_3787_; -goto v___jp_3756_; +lean_dec_ref(v_entries_4281_); +v___y_4259_ = v___y_4274_; +v___y_4260_ = v___x_4283_; +v___y_4261_ = v___x_4282_; +v___y_4262_ = v___y_4276_; +v___y_4263_ = v___x_4285_; +goto v___jp_4258_; } else { -size_t v___x_3790_; size_t v___x_3791_; lean_object* v___x_3792_; -v___x_3790_ = ((size_t)0ULL); -v___x_3791_ = lean_usize_of_nat(v___x_3786_); -v___x_3792_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3783_, v___x_3790_, v___x_3791_, v___x_3787_); -lean_dec_ref(v_entries_3783_); -v___y_3757_ = v___y_3774_; -v___y_3758_ = v___y_3775_; -v___y_3759_ = v___x_3784_; -v___y_3760_ = v___x_3785_; -v___y_3761_ = v___x_3779_; -v___y_3762_ = v___y_3777_; -v___y_3763_ = v___x_3792_; -goto v___jp_3756_; +size_t v___x_4288_; size_t v___x_4289_; lean_object* v___x_4290_; +v___x_4288_ = ((size_t)0ULL); +v___x_4289_ = lean_usize_of_nat(v___x_4284_); +v___x_4290_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4281_, v___x_4288_, v___x_4289_, v___x_4285_); +lean_dec_ref(v_entries_4281_); +v___y_4259_ = v___y_4274_; +v___y_4260_ = v___x_4283_; +v___y_4261_ = v___x_4282_; +v___y_4262_ = v___y_4276_; +v___y_4263_ = v___x_4290_; +goto v___jp_4258_; } } else { -size_t v___x_3793_; size_t v___x_3794_; lean_object* v___x_3795_; -v___x_3793_ = ((size_t)0ULL); -v___x_3794_ = lean_usize_of_nat(v___x_3786_); -v___x_3795_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3783_, v___x_3793_, v___x_3794_, v___x_3787_); -lean_dec_ref(v_entries_3783_); -v___y_3757_ = v___y_3774_; -v___y_3758_ = v___y_3775_; -v___y_3759_ = v___x_3784_; -v___y_3760_ = v___x_3785_; -v___y_3761_ = v___x_3779_; -v___y_3762_ = v___y_3777_; -v___y_3763_ = v___x_3795_; -goto v___jp_3756_; +size_t v___x_4291_; size_t v___x_4292_; lean_object* v___x_4293_; +v___x_4291_ = ((size_t)0ULL); +v___x_4292_ = lean_usize_of_nat(v___x_4284_); +v___x_4293_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4281_, v___x_4291_, v___x_4292_, v___x_4285_); +lean_dec_ref(v_entries_4281_); +v___y_4259_ = v___y_4274_; +v___y_4260_ = v___x_4283_; +v___y_4261_ = v___x_4282_; +v___y_4262_ = v___y_4276_; +v___y_4263_ = v___x_4293_; +goto v___jp_4258_; } } } +} +v___jp_4294_: +{ +lean_object* v___x_4300_; uint8_t v___x_4301_; +v___x_4300_ = lean_array_get_size(v___y_4299_); +v___x_4301_ = lean_nat_dec_lt(v___y_4297_, v___x_4300_); +if (v___x_4301_ == 0) +{ +lean_dec_ref(v___y_4299_); +lean_inc_ref(v___y_4296_); +v___y_4218_ = v___y_4295_; +v___y_4219_ = v___y_4298_; +v___y_4220_ = v___y_4296_; +goto v___jp_4217_; +} else { -v___y_3721_ = v___y_3774_; -v___y_3722_ = v___y_3775_; -v___y_3723_ = v___x_3779_; -v___y_3724_ = v___y_3777_; -v___y_3725_ = v___y_3778_; -goto v___jp_3720_; +uint8_t v___x_4302_; +v___x_4302_ = lean_nat_dec_le(v___x_4300_, v___x_4300_); +if (v___x_4302_ == 0) +{ +if (v___x_4301_ == 0) +{ +lean_dec_ref(v___y_4299_); +lean_inc_ref(v___y_4296_); +v___y_4218_ = v___y_4295_; +v___y_4219_ = v___y_4298_; +v___y_4220_ = v___y_4296_; +goto v___jp_4217_; } +else +{ +size_t v___x_4303_; size_t v___x_4304_; lean_object* v___x_4305_; +v___x_4303_ = ((size_t)0ULL); +v___x_4304_ = lean_usize_of_nat(v___x_4300_); +lean_inc_ref(v___y_4296_); +v___x_4305_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4299_, v___x_4303_, v___x_4304_, v___y_4296_); +lean_dec_ref(v___y_4299_); +v___y_4218_ = v___y_4295_; +v___y_4219_ = v___y_4298_; +v___y_4220_ = v___x_4305_; +goto v___jp_4217_; } } -v___jp_3796_: +else { -lean_object* v___x_3804_; uint8_t v___x_3805_; -v___x_3804_ = lean_array_get_size(v___y_3803_); -v___x_3805_ = lean_nat_dec_lt(v___y_3802_, v___x_3804_); -if (v___x_3805_ == 0) +size_t v___x_4306_; size_t v___x_4307_; lean_object* v___x_4308_; +v___x_4306_ = ((size_t)0ULL); +v___x_4307_ = lean_usize_of_nat(v___x_4300_); +lean_inc_ref(v___y_4296_); +v___x_4308_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4299_, v___x_4306_, v___x_4307_, v___y_4296_); +lean_dec_ref(v___y_4299_); +v___y_4218_ = v___y_4295_; +v___y_4219_ = v___y_4298_; +v___y_4220_ = v___x_4308_; +goto v___jp_4217_; +} +} +} +v___jp_4309_: +{ +lean_object* v___x_4313_; lean_object* v___f_4314_; lean_object* v___f_4315_; uint8_t v___x_4316_; +v___x_4313_ = l_Std_Http_Header_Name_transferEncoding; +v___f_4314_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4315_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4316_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4314_, v___f_4315_, v___x_4313_, v___y_4312_); +if (v___x_4316_ == 0) +{ +v___y_4218_ = v___y_4310_; +v___y_4219_ = v___y_4311_; +v___y_4220_ = v___y_4312_; +goto v___jp_4217_; +} +else { -lean_dec_ref(v___y_3803_); -lean_inc_ref(v___y_3798_); -v___y_3774_ = v___y_3797_; -v___y_3775_ = v___y_3799_; -v___y_3776_ = v___y_3800_; -v___y_3777_ = v___y_3801_; -v___y_3778_ = v___y_3798_; -goto v___jp_3773_; +lean_object* v_entries_4317_; lean_object* v___x_4318_; lean_object* v___x_4319_; lean_object* v___x_4320_; lean_object* v___x_4321_; uint8_t v___x_4322_; +v_entries_4317_ = lean_ctor_get(v___y_4312_, 0); +lean_inc_ref(v_entries_4317_); +lean_dec_ref(v___y_4312_); +v___x_4318_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4319_ = lean_unsigned_to_nat(0u); +v___x_4320_ = lean_array_get_size(v_entries_4317_); +v___x_4321_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4322_ = lean_nat_dec_lt(v___x_4319_, v___x_4320_); +if (v___x_4322_ == 0) +{ +lean_dec_ref(v_entries_4317_); +v___y_4295_ = v___y_4310_; +v___y_4296_ = v___x_4318_; +v___y_4297_ = v___x_4319_; +v___y_4298_ = v___y_4311_; +v___y_4299_ = v___x_4321_; +goto v___jp_4294_; } else { -uint8_t v___x_3806_; -v___x_3806_ = lean_nat_dec_le(v___x_3804_, v___x_3804_); -if (v___x_3806_ == 0) +uint8_t v___x_4323_; +v___x_4323_ = lean_nat_dec_le(v___x_4320_, v___x_4320_); +if (v___x_4323_ == 0) { -if (v___x_3805_ == 0) +if (v___x_4322_ == 0) { -lean_dec_ref(v___y_3803_); -lean_inc_ref(v___y_3798_); -v___y_3774_ = v___y_3797_; -v___y_3775_ = v___y_3799_; -v___y_3776_ = v___y_3800_; -v___y_3777_ = v___y_3801_; -v___y_3778_ = v___y_3798_; -goto v___jp_3773_; +lean_dec_ref(v_entries_4317_); +v___y_4295_ = v___y_4310_; +v___y_4296_ = v___x_4318_; +v___y_4297_ = v___x_4319_; +v___y_4298_ = v___y_4311_; +v___y_4299_ = v___x_4321_; +goto v___jp_4294_; } else { -size_t v___x_3807_; size_t v___x_3808_; lean_object* v___x_3809_; -v___x_3807_ = ((size_t)0ULL); -v___x_3808_ = lean_usize_of_nat(v___x_3804_); -lean_inc_ref(v___y_3798_); -v___x_3809_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3803_, v___x_3807_, v___x_3808_, v___y_3798_); -lean_dec_ref(v___y_3803_); -v___y_3774_ = v___y_3797_; -v___y_3775_ = v___y_3799_; -v___y_3776_ = v___y_3800_; -v___y_3777_ = v___y_3801_; -v___y_3778_ = v___x_3809_; -goto v___jp_3773_; +size_t v___x_4324_; size_t v___x_4325_; lean_object* v___x_4326_; +v___x_4324_ = ((size_t)0ULL); +v___x_4325_ = lean_usize_of_nat(v___x_4320_); +v___x_4326_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4317_, v___x_4324_, v___x_4325_, v___x_4321_); +lean_dec_ref(v_entries_4317_); +v___y_4295_ = v___y_4310_; +v___y_4296_ = v___x_4318_; +v___y_4297_ = v___x_4319_; +v___y_4298_ = v___y_4311_; +v___y_4299_ = v___x_4326_; +goto v___jp_4294_; } } else { -size_t v___x_3810_; size_t v___x_3811_; lean_object* v___x_3812_; -v___x_3810_ = ((size_t)0ULL); -v___x_3811_ = lean_usize_of_nat(v___x_3804_); -lean_inc_ref(v___y_3798_); -v___x_3812_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3803_, v___x_3810_, v___x_3811_, v___y_3798_); -lean_dec_ref(v___y_3803_); -v___y_3774_ = v___y_3797_; -v___y_3775_ = v___y_3799_; -v___y_3776_ = v___y_3800_; -v___y_3777_ = v___y_3801_; -v___y_3778_ = v___x_3812_; -goto v___jp_3773_; +size_t v___x_4327_; size_t v___x_4328_; lean_object* v___x_4329_; +v___x_4327_ = ((size_t)0ULL); +v___x_4328_ = lean_usize_of_nat(v___x_4320_); +v___x_4329_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_4317_, v___x_4327_, v___x_4328_, v___x_4321_); +lean_dec_ref(v_entries_4317_); +v___y_4295_ = v___y_4310_; +v___y_4296_ = v___x_4318_; +v___y_4297_ = v___x_4319_; +v___y_4298_ = v___y_4311_; +v___y_4299_ = v___x_4329_; +goto v___jp_4294_; +} } } } -v___jp_3813_: +v___jp_4330_: { -lean_object* v___x_3819_; uint8_t v___x_3820_; -v___x_3819_ = lean_array_get_size(v___y_3818_); -v___x_3820_ = lean_nat_dec_lt(v___y_3817_, v___x_3819_); -if (v___x_3820_ == 0) +lean_object* v___x_4336_; uint8_t v___x_4337_; +v___x_4336_ = lean_array_get_size(v___y_4335_); +v___x_4337_ = lean_nat_dec_lt(v___y_4334_, v___x_4336_); +if (v___x_4337_ == 0) { -lean_dec_ref(v___y_3818_); -lean_inc_ref(v___y_3816_); -v___y_3457_ = v___y_3814_; -v___y_3458_ = v___y_3815_; -v___y_3459_ = v___y_3816_; -goto v___jp_3456_; +lean_dec_ref(v___y_4335_); +lean_inc_ref(v___y_4332_); +v___y_4310_ = v___y_4331_; +v___y_4311_ = v___y_4333_; +v___y_4312_ = v___y_4332_; +goto v___jp_4309_; } else { -uint8_t v___x_3821_; -v___x_3821_ = lean_nat_dec_le(v___x_3819_, v___x_3819_); -if (v___x_3821_ == 0) +uint8_t v___x_4338_; +v___x_4338_ = lean_nat_dec_le(v___x_4336_, v___x_4336_); +if (v___x_4338_ == 0) { -if (v___x_3820_ == 0) +if (v___x_4337_ == 0) { -lean_dec_ref(v___y_3818_); -lean_inc_ref(v___y_3816_); -v___y_3457_ = v___y_3814_; -v___y_3458_ = v___y_3815_; -v___y_3459_ = v___y_3816_; -goto v___jp_3456_; +lean_dec_ref(v___y_4335_); +lean_inc_ref(v___y_4332_); +v___y_4310_ = v___y_4331_; +v___y_4311_ = v___y_4333_; +v___y_4312_ = v___y_4332_; +goto v___jp_4309_; } else { -size_t v___x_3822_; size_t v___x_3823_; lean_object* v___x_3824_; -v___x_3822_ = ((size_t)0ULL); -v___x_3823_ = lean_usize_of_nat(v___x_3819_); -lean_inc_ref(v___y_3816_); -v___x_3824_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3818_, v___x_3822_, v___x_3823_, v___y_3816_); -lean_dec_ref(v___y_3818_); -v___y_3457_ = v___y_3814_; -v___y_3458_ = v___y_3815_; -v___y_3459_ = v___x_3824_; -goto v___jp_3456_; +size_t v___x_4339_; size_t v___x_4340_; lean_object* v___x_4341_; +v___x_4339_ = ((size_t)0ULL); +v___x_4340_ = lean_usize_of_nat(v___x_4336_); +lean_inc_ref(v___y_4332_); +v___x_4341_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4335_, v___x_4339_, v___x_4340_, v___y_4332_); +lean_dec_ref(v___y_4335_); +v___y_4310_ = v___y_4331_; +v___y_4311_ = v___y_4333_; +v___y_4312_ = v___x_4341_; +goto v___jp_4309_; } } else { -size_t v___x_3825_; size_t v___x_3826_; lean_object* v___x_3827_; -v___x_3825_ = ((size_t)0ULL); -v___x_3826_ = lean_usize_of_nat(v___x_3819_); -lean_inc_ref(v___y_3816_); -v___x_3827_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3818_, v___x_3825_, v___x_3826_, v___y_3816_); -lean_dec_ref(v___y_3818_); -v___y_3457_ = v___y_3814_; -v___y_3458_ = v___y_3815_; -v___y_3459_ = v___x_3827_; -goto v___jp_3456_; +size_t v___x_4342_; size_t v___x_4343_; lean_object* v___x_4344_; +v___x_4342_ = ((size_t)0ULL); +v___x_4343_ = lean_usize_of_nat(v___x_4336_); +lean_inc_ref(v___y_4332_); +v___x_4344_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4335_, v___x_4342_, v___x_4343_, v___y_4332_); +lean_dec_ref(v___y_4335_); +v___y_4310_ = v___y_4331_; +v___y_4311_ = v___y_4333_; +v___y_4312_ = v___x_4344_; +goto v___jp_4309_; } } } -v___jp_3828_: +v___jp_4345_: +{ +if (v___y_4349_ == 0) { -lean_object* v___x_3832_; lean_object* v___f_3833_; lean_object* v___f_3834_; uint8_t v___x_3835_; -v___x_3832_ = l_Std_Http_Header_Name_transferEncoding; -v___f_3833_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3834_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3835_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3833_, v___f_3834_, v___x_3832_, v___y_3831_); -if (v___x_3835_ == 0) +lean_object* v___x_4350_; lean_object* v___f_4351_; lean_object* v___f_4352_; uint8_t v___x_4353_; +v___x_4350_ = l_Std_Http_Header_Name_contentLength; +v___f_4351_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4352_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4353_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4351_, v___f_4352_, v___x_4350_, v___y_4347_); +if (v___x_4353_ == 0) { -v___y_3457_ = v___y_3829_; -v___y_3458_ = v___y_3830_; -v___y_3459_ = v___y_3831_; -goto v___jp_3456_; +v___y_4180_ = v___y_4346_; +v___y_4181_ = v___x_4350_; +v___y_4182_ = v___y_4348_; +v___y_4183_ = v___y_4347_; +goto v___jp_4179_; } else { -lean_object* v_entries_3836_; lean_object* v___x_3837_; lean_object* v___x_3838_; lean_object* v___x_3839_; lean_object* v___x_3840_; uint8_t v___x_3841_; -v_entries_3836_ = lean_ctor_get(v___y_3831_, 0); -lean_inc_ref(v_entries_3836_); -lean_dec_ref(v___y_3831_); -v___x_3837_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3838_ = lean_unsigned_to_nat(0u); -v___x_3839_ = lean_array_get_size(v_entries_3836_); -v___x_3840_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3841_ = lean_nat_dec_lt(v___x_3838_, v___x_3839_); -if (v___x_3841_ == 0) +lean_object* v_entries_4354_; lean_object* v___x_4355_; lean_object* v___x_4356_; lean_object* v___x_4357_; lean_object* v___x_4358_; uint8_t v___x_4359_; +v_entries_4354_ = lean_ctor_get(v___y_4347_, 0); +lean_inc_ref(v_entries_4354_); +lean_dec_ref(v___y_4347_); +v___x_4355_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4356_ = lean_unsigned_to_nat(0u); +v___x_4357_ = lean_array_get_size(v_entries_4354_); +v___x_4358_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4359_ = lean_nat_dec_lt(v___x_4356_, v___x_4357_); +if (v___x_4359_ == 0) { -lean_dec_ref(v_entries_3836_); -v___y_3814_ = v___y_3829_; -v___y_3815_ = v___y_3830_; -v___y_3816_ = v___x_3837_; -v___y_3817_ = v___x_3838_; -v___y_3818_ = v___x_3840_; -goto v___jp_3813_; +lean_dec_ref(v_entries_4354_); +v___y_4202_ = v___y_4346_; +v___y_4203_ = v___x_4356_; +v___y_4204_ = v___x_4350_; +v___y_4205_ = v___y_4348_; +v___y_4206_ = v___x_4355_; +v___y_4207_ = v___x_4358_; +goto v___jp_4201_; } else { -uint8_t v___x_3842_; -v___x_3842_ = lean_nat_dec_le(v___x_3839_, v___x_3839_); -if (v___x_3842_ == 0) +uint8_t v___x_4360_; +v___x_4360_ = lean_nat_dec_le(v___x_4357_, v___x_4357_); +if (v___x_4360_ == 0) { -if (v___x_3841_ == 0) +if (v___x_4359_ == 0) { -lean_dec_ref(v_entries_3836_); -v___y_3814_ = v___y_3829_; -v___y_3815_ = v___y_3830_; -v___y_3816_ = v___x_3837_; -v___y_3817_ = v___x_3838_; -v___y_3818_ = v___x_3840_; -goto v___jp_3813_; +lean_dec_ref(v_entries_4354_); +v___y_4202_ = v___y_4346_; +v___y_4203_ = v___x_4356_; +v___y_4204_ = v___x_4350_; +v___y_4205_ = v___y_4348_; +v___y_4206_ = v___x_4355_; +v___y_4207_ = v___x_4358_; +goto v___jp_4201_; } else { -size_t v___x_3843_; size_t v___x_3844_; lean_object* v___x_3845_; -v___x_3843_ = ((size_t)0ULL); -v___x_3844_ = lean_usize_of_nat(v___x_3839_); -v___x_3845_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3836_, v___x_3843_, v___x_3844_, v___x_3840_); -lean_dec_ref(v_entries_3836_); -v___y_3814_ = v___y_3829_; -v___y_3815_ = v___y_3830_; -v___y_3816_ = v___x_3837_; -v___y_3817_ = v___x_3838_; -v___y_3818_ = v___x_3845_; -goto v___jp_3813_; +size_t v___x_4361_; size_t v___x_4362_; lean_object* v___x_4363_; +v___x_4361_ = ((size_t)0ULL); +v___x_4362_ = lean_usize_of_nat(v___x_4357_); +v___x_4363_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4354_, v___x_4361_, v___x_4362_, v___x_4358_); +lean_dec_ref(v_entries_4354_); +v___y_4202_ = v___y_4346_; +v___y_4203_ = v___x_4356_; +v___y_4204_ = v___x_4350_; +v___y_4205_ = v___y_4348_; +v___y_4206_ = v___x_4355_; +v___y_4207_ = v___x_4363_; +goto v___jp_4201_; } } else { -size_t v___x_3846_; size_t v___x_3847_; lean_object* v___x_3848_; -v___x_3846_ = ((size_t)0ULL); -v___x_3847_ = lean_usize_of_nat(v___x_3839_); -v___x_3848_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_3836_, v___x_3846_, v___x_3847_, v___x_3840_); -lean_dec_ref(v_entries_3836_); -v___y_3814_ = v___y_3829_; -v___y_3815_ = v___y_3830_; -v___y_3816_ = v___x_3837_; -v___y_3817_ = v___x_3838_; -v___y_3818_ = v___x_3848_; -goto v___jp_3813_; +size_t v___x_4364_; size_t v___x_4365_; lean_object* v___x_4366_; +v___x_4364_ = ((size_t)0ULL); +v___x_4365_ = lean_usize_of_nat(v___x_4357_); +v___x_4366_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4354_, v___x_4364_, v___x_4365_, v___x_4358_); +lean_dec_ref(v_entries_4354_); +v___y_4202_ = v___y_4346_; +v___y_4203_ = v___x_4356_; +v___y_4204_ = v___x_4350_; +v___y_4205_ = v___y_4348_; +v___y_4206_ = v___x_4355_; +v___y_4207_ = v___x_4366_; +goto v___jp_4201_; } } } } -v___jp_3849_: +else { -lean_object* v___x_3855_; uint8_t v___x_3856_; -v___x_3855_ = lean_array_get_size(v___y_3854_); -v___x_3856_ = lean_nat_dec_lt(v___y_3852_, v___x_3855_); -if (v___x_3856_ == 0) +lean_object* v___x_4367_; lean_object* v___f_4368_; lean_object* v___f_4369_; uint8_t v___x_4370_; +v___x_4367_ = l_Std_Http_Header_Name_contentLength; +v___f_4368_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4369_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4370_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4368_, v___f_4369_, v___x_4367_, v___y_4347_); +if (v___x_4370_ == 0) { -lean_dec_ref(v___y_3854_); -lean_inc_ref(v___y_3853_); -v___y_3829_ = v___y_3850_; -v___y_3830_ = v___y_3851_; -v___y_3831_ = v___y_3853_; -goto v___jp_3828_; +v___y_4310_ = v___y_4346_; +v___y_4311_ = v___y_4348_; +v___y_4312_ = v___y_4347_; +goto v___jp_4309_; } else { -uint8_t v___x_3857_; -v___x_3857_ = lean_nat_dec_le(v___x_3855_, v___x_3855_); -if (v___x_3857_ == 0) +lean_object* v_entries_4371_; lean_object* v___x_4372_; lean_object* v___x_4373_; lean_object* v___x_4374_; lean_object* v___x_4375_; uint8_t v___x_4376_; +v_entries_4371_ = lean_ctor_get(v___y_4347_, 0); +lean_inc_ref(v_entries_4371_); +lean_dec_ref(v___y_4347_); +v___x_4372_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4373_ = lean_unsigned_to_nat(0u); +v___x_4374_ = lean_array_get_size(v_entries_4371_); +v___x_4375_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4376_ = lean_nat_dec_lt(v___x_4373_, v___x_4374_); +if (v___x_4376_ == 0) { -if (v___x_3856_ == 0) +lean_dec_ref(v_entries_4371_); +v___y_4331_ = v___y_4346_; +v___y_4332_ = v___x_4372_; +v___y_4333_ = v___y_4348_; +v___y_4334_ = v___x_4373_; +v___y_4335_ = v___x_4375_; +goto v___jp_4330_; +} +else +{ +uint8_t v___x_4377_; +v___x_4377_ = lean_nat_dec_le(v___x_4374_, v___x_4374_); +if (v___x_4377_ == 0) +{ +if (v___x_4376_ == 0) { -lean_dec_ref(v___y_3854_); -lean_inc_ref(v___y_3853_); -v___y_3829_ = v___y_3850_; -v___y_3830_ = v___y_3851_; -v___y_3831_ = v___y_3853_; -goto v___jp_3828_; +lean_dec_ref(v_entries_4371_); +v___y_4331_ = v___y_4346_; +v___y_4332_ = v___x_4372_; +v___y_4333_ = v___y_4348_; +v___y_4334_ = v___x_4373_; +v___y_4335_ = v___x_4375_; +goto v___jp_4330_; } else { -size_t v___x_3858_; size_t v___x_3859_; lean_object* v___x_3860_; -v___x_3858_ = ((size_t)0ULL); -v___x_3859_ = lean_usize_of_nat(v___x_3855_); -lean_inc_ref(v___y_3853_); -v___x_3860_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3854_, v___x_3858_, v___x_3859_, v___y_3853_); -lean_dec_ref(v___y_3854_); -v___y_3829_ = v___y_3850_; -v___y_3830_ = v___y_3851_; -v___y_3831_ = v___x_3860_; -goto v___jp_3828_; +size_t v___x_4378_; size_t v___x_4379_; lean_object* v___x_4380_; +v___x_4378_ = ((size_t)0ULL); +v___x_4379_ = lean_usize_of_nat(v___x_4374_); +v___x_4380_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4371_, v___x_4378_, v___x_4379_, v___x_4375_); +lean_dec_ref(v_entries_4371_); +v___y_4331_ = v___y_4346_; +v___y_4332_ = v___x_4372_; +v___y_4333_ = v___y_4348_; +v___y_4334_ = v___x_4373_; +v___y_4335_ = v___x_4380_; +goto v___jp_4330_; } } else { -size_t v___x_3861_; size_t v___x_3862_; lean_object* v___x_3863_; -v___x_3861_ = ((size_t)0ULL); -v___x_3862_ = lean_usize_of_nat(v___x_3855_); -lean_inc_ref(v___y_3853_); -v___x_3863_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_3854_, v___x_3861_, v___x_3862_, v___y_3853_); -lean_dec_ref(v___y_3854_); -v___y_3829_ = v___y_3850_; -v___y_3830_ = v___y_3851_; -v___y_3831_ = v___x_3863_; -goto v___jp_3828_; +size_t v___x_4381_; size_t v___x_4382_; lean_object* v___x_4383_; +v___x_4381_ = ((size_t)0ULL); +v___x_4382_ = lean_usize_of_nat(v___x_4374_); +v___x_4383_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4371_, v___x_4381_, v___x_4382_, v___x_4375_); +lean_dec_ref(v_entries_4371_); +v___y_4331_ = v___y_4346_; +v___y_4332_ = v___x_4372_; +v___y_4333_ = v___y_4348_; +v___y_4334_ = v___x_4373_; +v___y_4335_ = v___x_4383_; +goto v___jp_4330_; } } } -v___jp_3864_: +} +} +v___jp_4384_: +{ +lean_object* v___x_4390_; uint8_t v___x_4391_; +v___x_4390_ = lean_unsigned_to_nat(204u); +v___x_4391_ = lean_nat_dec_eq(v___y_4389_, v___x_4390_); +lean_dec(v___y_4389_); +if (v___x_4391_ == 0) { -lean_object* v___x_3868_; lean_object* v___f_3869_; lean_object* v___f_3870_; uint8_t v___x_3871_; -v___x_3868_ = l_Std_Http_Header_Name_contentLength; -v___f_3869_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3870_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3871_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3869_, v___f_3870_, v___x_3868_, v___y_3867_); -if (v___x_3871_ == 0) +lean_object* v___x_4392_; uint8_t v___x_4393_; +v___x_4392_ = lean_box(18); +v___x_4393_ = l_Std_Http_instBEqStatus_beq(v___y_4388_, v___x_4392_); +lean_dec(v___y_4388_); +if (v___x_4393_ == 0) { -v___y_3829_ = v___y_3865_; -v___y_3830_ = v___y_3866_; -v___y_3831_ = v___y_3867_; -goto v___jp_3828_; +uint8_t v___x_4394_; uint8_t v___x_4395_; uint8_t v___x_4396_; +v___x_4394_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2859_, v_messageHead_2894_); +v___x_4395_ = 0; +v___x_4396_ = l_Std_Http_instBEqVersion_beq(v___x_4394_, v___x_4395_); +if (v___x_4396_ == 0) +{ +v___y_4346_ = v___y_4385_; +v___y_4347_ = v___y_4386_; +v___y_4348_ = v___y_4387_; +v___y_4349_ = v___x_4396_; +goto v___jp_4345_; } else { -lean_object* v_entries_3872_; lean_object* v___x_3873_; lean_object* v___x_3874_; lean_object* v___x_3875_; lean_object* v___x_3876_; uint8_t v___x_3877_; -v_entries_3872_ = lean_ctor_get(v___y_3867_, 0); -lean_inc_ref(v_entries_3872_); -lean_dec_ref(v___y_3867_); -v___x_3873_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3874_ = lean_unsigned_to_nat(0u); -v___x_3875_ = lean_array_get_size(v_entries_3872_); -v___x_3876_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3877_ = lean_nat_dec_lt(v___x_3874_, v___x_3875_); -if (v___x_3877_ == 0) +lean_object* v___x_4397_; uint8_t v___x_4398_; +v___x_4397_ = lean_box(0); +v___x_4398_ = l_Std_Http_Body_instBEqLength_beq(v___y_4387_, v___x_4397_); +v___y_4346_ = v___y_4385_; +v___y_4347_ = v___y_4386_; +v___y_4348_ = v___y_4387_; +v___y_4349_ = v___x_4398_; +goto v___jp_4345_; +} +} +else { -lean_dec_ref(v_entries_3872_); -v___y_3850_ = v___y_3865_; -v___y_3851_ = v___y_3866_; -v___y_3852_ = v___x_3874_; -v___y_3853_ = v___x_3873_; -v___y_3854_ = v___x_3876_; -goto v___jp_3849_; +v___y_4274_ = v___y_4385_; +v___y_4275_ = v___y_4386_; +v___y_4276_ = v___y_4387_; +goto v___jp_4273_; +} } else { -uint8_t v___x_3878_; -v___x_3878_ = lean_nat_dec_le(v___x_3875_, v___x_3875_); -if (v___x_3878_ == 0) +lean_dec(v___y_4388_); +v___y_4274_ = v___y_4385_; +v___y_4275_ = v___y_4386_; +v___y_4276_ = v___y_4387_; +goto v___jp_4273_; +} +} +v___jp_4399_: +{ +if (v_dir_2859_ == 0) { -if (v___x_3877_ == 0) +lean_object* v_status_4403_; uint16_t v___x_4404_; lean_object* v_code_4405_; lean_object* v___x_4406_; uint8_t v___x_4407_; +v_status_4403_ = lean_ctor_get(v_messageHead_2860_, 0); +v___x_4404_ = l_Std_Http_Status_toCode(v_status_4403_); +v_code_4405_ = lean_uint16_to_nat(v___x_4404_); +v___x_4406_ = lean_unsigned_to_nat(100u); +v___x_4407_ = lean_nat_dec_le(v___x_4406_, v_code_4405_); +if (v___x_4407_ == 0) { -lean_dec_ref(v_entries_3872_); -v___y_3850_ = v___y_3865_; -v___y_3851_ = v___y_3866_; -v___y_3852_ = v___x_3874_; -v___y_3853_ = v___x_3873_; -v___y_3854_ = v___x_3876_; -goto v___jp_3849_; +lean_inc(v_status_4403_); +v___y_4385_ = v___y_4400_; +v___y_4386_ = v___y_4402_; +v___y_4387_ = v___y_4401_; +v___y_4388_ = v_status_4403_; +v___y_4389_ = v_code_4405_; +goto v___jp_4384_; } else { -size_t v___x_3879_; size_t v___x_3880_; lean_object* v___x_3881_; -v___x_3879_ = ((size_t)0ULL); -v___x_3880_ = lean_usize_of_nat(v___x_3875_); -v___x_3881_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3872_, v___x_3879_, v___x_3880_, v___x_3876_); -lean_dec_ref(v_entries_3872_); -v___y_3850_ = v___y_3865_; -v___y_3851_ = v___y_3866_; -v___y_3852_ = v___x_3874_; -v___y_3853_ = v___x_3873_; -v___y_3854_ = v___x_3881_; -goto v___jp_3849_; -} -} -else -{ -size_t v___x_3882_; size_t v___x_3883_; lean_object* v___x_3884_; -v___x_3882_ = ((size_t)0ULL); -v___x_3883_ = lean_usize_of_nat(v___x_3875_); -v___x_3884_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3872_, v___x_3882_, v___x_3883_, v___x_3876_); -lean_dec_ref(v_entries_3872_); -v___y_3850_ = v___y_3865_; -v___y_3851_ = v___y_3866_; -v___y_3852_ = v___x_3874_; -v___y_3853_ = v___x_3873_; -v___y_3854_ = v___x_3884_; -goto v___jp_3849_; +lean_object* v___x_4408_; uint8_t v___x_4409_; +v___x_4408_ = lean_unsigned_to_nat(200u); +v___x_4409_ = lean_nat_dec_lt(v_code_4405_, v___x_4408_); +if (v___x_4409_ == 0) +{ +lean_inc(v_status_4403_); +v___y_4385_ = v___y_4400_; +v___y_4386_ = v___y_4402_; +v___y_4387_ = v___y_4401_; +v___y_4388_ = v_status_4403_; +v___y_4389_ = v_code_4405_; +goto v___jp_4384_; } +else +{ +v___y_4274_ = v___y_4400_; +v___y_4275_ = v___y_4402_; +v___y_4276_ = v___y_4401_; +goto v___jp_4273_; } } } -v___jp_3885_: -{ -lean_object* v___x_3891_; uint8_t v___x_3892_; -v___x_3891_ = lean_unsigned_to_nat(204u); -v___x_3892_ = lean_nat_dec_eq(v___y_3890_, v___x_3891_); -lean_dec(v___y_3890_); -if (v___x_3892_ == 0) -{ -lean_object* v___x_3893_; uint8_t v___x_3894_; -v___x_3893_ = lean_box(18); -v___x_3894_ = l_Std_Http_instBEqStatus_beq(v___y_3889_, v___x_3893_); -lean_dec(v___y_3889_); -if (v___x_3894_ == 0) +else { -lean_object* v___x_3895_; lean_object* v___f_3896_; lean_object* v___f_3897_; uint8_t v___x_3898_; -v___x_3895_ = l_Std_Http_Header_Name_contentLength; -v___f_3896_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3897_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3898_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3896_, v___f_3897_, v___x_3895_, v___y_3888_); -if (v___x_3898_ == 0) +lean_object* v___x_4410_; lean_object* v___f_4411_; lean_object* v___f_4412_; uint8_t v___x_4413_; +v___x_4410_ = l_Std_Http_Header_Name_contentLength; +v___f_4411_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4412_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4413_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4411_, v___f_4412_, v___x_4410_, v___y_4402_); +if (v___x_4413_ == 0) { -v___y_3774_ = v___y_3886_; -v___y_3775_ = v___y_3887_; -v___y_3776_ = v___x_3894_; -v___y_3777_ = v___x_3895_; -v___y_3778_ = v___y_3888_; -goto v___jp_3773_; +v___y_4089_ = v___y_4400_; +v___y_4090_ = v___x_4410_; +v___y_4091_ = v___y_4401_; +v___y_4092_ = v___y_4402_; +goto v___jp_4088_; } else { -if (v___x_3894_ == 0) +lean_object* v_entries_4414_; lean_object* v___x_4415_; lean_object* v___x_4416_; lean_object* v___x_4417_; lean_object* v___x_4418_; uint8_t v___x_4419_; +v_entries_4414_ = lean_ctor_get(v___y_4402_, 0); +lean_inc_ref(v_entries_4414_); +lean_dec_ref(v___y_4402_); +v___x_4415_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4416_ = lean_unsigned_to_nat(0u); +v___x_4417_ = lean_array_get_size(v_entries_4414_); +v___x_4418_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4419_ = lean_nat_dec_lt(v___x_4416_, v___x_4417_); +if (v___x_4419_ == 0) { -lean_object* v_entries_3899_; lean_object* v___x_3900_; lean_object* v___x_3901_; lean_object* v___x_3902_; lean_object* v___x_3903_; uint8_t v___x_3904_; -v_entries_3899_ = lean_ctor_get(v___y_3888_, 0); -lean_inc_ref(v_entries_3899_); -lean_dec_ref(v___y_3888_); -v___x_3900_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3901_ = lean_unsigned_to_nat(0u); -v___x_3902_ = lean_array_get_size(v_entries_3899_); -v___x_3903_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3904_ = lean_nat_dec_lt(v___x_3901_, v___x_3902_); -if (v___x_3904_ == 0) -{ -lean_dec_ref(v_entries_3899_); -v___y_3797_ = v___y_3886_; -v___y_3798_ = v___x_3900_; -v___y_3799_ = v___y_3887_; -v___y_3800_ = v___x_3894_; -v___y_3801_ = v___x_3895_; -v___y_3802_ = v___x_3901_; -v___y_3803_ = v___x_3903_; -goto v___jp_3796_; +lean_dec_ref(v_entries_4414_); +v___y_4111_ = v___x_4410_; +v___y_4112_ = v___y_4400_; +v___y_4113_ = v___x_4415_; +v___y_4114_ = v___x_4416_; +v___y_4115_ = v___y_4401_; +v___y_4116_ = v___x_4418_; +goto v___jp_4110_; } else { -uint8_t v___x_3905_; -v___x_3905_ = lean_nat_dec_le(v___x_3902_, v___x_3902_); -if (v___x_3905_ == 0) +uint8_t v___x_4420_; +v___x_4420_ = lean_nat_dec_le(v___x_4417_, v___x_4417_); +if (v___x_4420_ == 0) { -if (v___x_3904_ == 0) +if (v___x_4419_ == 0) { -lean_dec_ref(v_entries_3899_); -v___y_3797_ = v___y_3886_; -v___y_3798_ = v___x_3900_; -v___y_3799_ = v___y_3887_; -v___y_3800_ = v___x_3894_; -v___y_3801_ = v___x_3895_; -v___y_3802_ = v___x_3901_; -v___y_3803_ = v___x_3903_; -goto v___jp_3796_; +lean_dec_ref(v_entries_4414_); +v___y_4111_ = v___x_4410_; +v___y_4112_ = v___y_4400_; +v___y_4113_ = v___x_4415_; +v___y_4114_ = v___x_4416_; +v___y_4115_ = v___y_4401_; +v___y_4116_ = v___x_4418_; +goto v___jp_4110_; } else { -size_t v___x_3906_; size_t v___x_3907_; lean_object* v___x_3908_; -v___x_3906_ = ((size_t)0ULL); -v___x_3907_ = lean_usize_of_nat(v___x_3902_); -v___x_3908_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3899_, v___x_3906_, v___x_3907_, v___x_3903_); -lean_dec_ref(v_entries_3899_); -v___y_3797_ = v___y_3886_; -v___y_3798_ = v___x_3900_; -v___y_3799_ = v___y_3887_; -v___y_3800_ = v___x_3894_; -v___y_3801_ = v___x_3895_; -v___y_3802_ = v___x_3901_; -v___y_3803_ = v___x_3908_; -goto v___jp_3796_; +size_t v___x_4421_; size_t v___x_4422_; lean_object* v___x_4423_; +v___x_4421_ = ((size_t)0ULL); +v___x_4422_ = lean_usize_of_nat(v___x_4417_); +v___x_4423_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4414_, v___x_4421_, v___x_4422_, v___x_4418_); +lean_dec_ref(v_entries_4414_); +v___y_4111_ = v___x_4410_; +v___y_4112_ = v___y_4400_; +v___y_4113_ = v___x_4415_; +v___y_4114_ = v___x_4416_; +v___y_4115_ = v___y_4401_; +v___y_4116_ = v___x_4423_; +goto v___jp_4110_; } } else { -size_t v___x_3909_; size_t v___x_3910_; lean_object* v___x_3911_; -v___x_3909_ = ((size_t)0ULL); -v___x_3910_ = lean_usize_of_nat(v___x_3902_); -v___x_3911_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3899_, v___x_3909_, v___x_3910_, v___x_3903_); -lean_dec_ref(v_entries_3899_); -v___y_3797_ = v___y_3886_; -v___y_3798_ = v___x_3900_; -v___y_3799_ = v___y_3887_; -v___y_3800_ = v___x_3894_; -v___y_3801_ = v___x_3895_; -v___y_3802_ = v___x_3901_; -v___y_3803_ = v___x_3911_; -goto v___jp_3796_; +size_t v___x_4424_; size_t v___x_4425_; lean_object* v___x_4426_; +v___x_4424_ = ((size_t)0ULL); +v___x_4425_ = lean_usize_of_nat(v___x_4417_); +v___x_4426_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_4414_, v___x_4424_, v___x_4425_, v___x_4418_); +lean_dec_ref(v_entries_4414_); +v___y_4111_ = v___x_4410_; +v___y_4112_ = v___y_4400_; +v___y_4113_ = v___x_4415_; +v___y_4114_ = v___x_4416_; +v___y_4115_ = v___y_4401_; +v___y_4116_ = v___x_4426_; +goto v___jp_4110_; } } } -else -{ -v___y_3774_ = v___y_3886_; -v___y_3775_ = v___y_3887_; -v___y_3776_ = v___x_3894_; -v___y_3777_ = v___x_3895_; -v___y_3778_ = v___y_3888_; -goto v___jp_3773_; } } +v___jp_4427_: +{ +uint8_t v_keepAlive_4432_; +v_keepAlive_4432_ = lean_ctor_get_uint8(v___y_4428_, sizeof(void*)*6); +if (v_keepAlive_4432_ == 0) +{ +lean_object* v_entries_4433_; lean_object* v_indexes_4434_; lean_object* v___x_4436_; uint8_t v_isShared_4437_; uint8_t v_isSharedCheck_4446_; +v_entries_4433_ = lean_ctor_get(v___y_4431_, 0); +v_indexes_4434_ = lean_ctor_get(v___y_4431_, 1); +v_isSharedCheck_4446_ = !lean_is_exclusive(v___y_4431_); +if (v_isSharedCheck_4446_ == 0) +{ +v___x_4436_ = v___y_4431_; +v_isShared_4437_ = v_isSharedCheck_4446_; +goto v_resetjp_4435_; } else { -lean_object* v___x_3912_; lean_object* v___f_3913_; lean_object* v___f_3914_; uint8_t v___x_3915_; -v___x_3912_ = l_Std_Http_Header_Name_transferEncoding; -v___f_3913_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3914_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3915_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3913_, v___f_3914_, v___x_3912_, v___y_3888_); -if (v___x_3915_ == 0) +lean_inc(v_indexes_4434_); +lean_inc(v_entries_4433_); +lean_dec(v___y_4431_); +v___x_4436_ = lean_box(0); +v_isShared_4437_ = v_isSharedCheck_4446_; +goto v_resetjp_4435_; +} +v_resetjp_4435_: +{ +lean_object* v___x_4438_; lean_object* v_i_4439_; lean_object* v___x_4440_; lean_object* v_entries_4441_; lean_object* v_indexes_4442_; lean_object* v___x_4444_; +v___x_4438_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61)); +v_i_4439_ = lean_array_get_size(v_entries_4433_); +lean_inc_ref(v___y_4430_); +v___x_4440_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4440_, 0, v___y_4430_); +lean_ctor_set(v___x_4440_, 1, v___x_4438_); +v_entries_4441_ = lean_array_push(v_entries_4433_, v___x_4440_); +v_indexes_4442_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4439_, v_indexes_4434_, v___y_4430_); +if (v_isShared_4437_ == 0) { -v___y_3703_ = v___y_3886_; -v___y_3704_ = v___y_3887_; -v___y_3705_ = v___y_3888_; -v___y_3706_ = v___x_3894_; -goto v___jp_3702_; +lean_ctor_set(v___x_4436_, 1, v_indexes_4442_); +lean_ctor_set(v___x_4436_, 0, v_entries_4441_); +v___x_4444_ = v___x_4436_; +goto v_reusejp_4443_; } else { -v___y_3703_ = v___y_3886_; -v___y_3704_ = v___y_3887_; -v___y_3705_ = v___y_3888_; -v___y_3706_ = v___x_3892_; -goto v___jp_3702_; +lean_object* v_reuseFailAlloc_4445_; +v_reuseFailAlloc_4445_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4445_, 0, v_entries_4441_); +lean_ctor_set(v_reuseFailAlloc_4445_, 1, v_indexes_4442_); +v___x_4444_ = v_reuseFailAlloc_4445_; +goto v_reusejp_4443_; +} +v_reusejp_4443_: +{ +v___y_4400_ = v___y_4428_; +v___y_4401_ = v___y_4429_; +v___y_4402_ = v___x_4444_; +goto v___jp_4399_; } } } else { -lean_dec(v___y_3889_); -v___y_3865_ = v___y_3886_; -v___y_3866_ = v___y_3887_; -v___y_3867_ = v___y_3888_; -goto v___jp_3864_; -} -} -v___jp_3916_: +lean_object* v_reader_4447_; lean_object* v_messageHead_4448_; uint8_t v___x_4449_; uint8_t v___x_4450_; uint8_t v___x_4451_; +v_reader_4447_ = lean_ctor_get(v___y_4428_, 0); +v_messageHead_4448_ = lean_ctor_get(v_reader_4447_, 2); +v___x_4449_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2859_, v_messageHead_4448_); +v___x_4450_ = 0; +v___x_4451_ = l_Std_Http_instBEqVersion_beq(v___x_4449_, v___x_4450_); +if (v___x_4451_ == 0) { -if (v_dir_2892_ == 0) +lean_dec_ref(v___y_4430_); +v___y_4400_ = v___y_4428_; +v___y_4401_ = v___y_4429_; +v___y_4402_ = v___y_4431_; +goto v___jp_4399_; +} +else { -lean_object* v_status_3920_; uint16_t v___x_3921_; lean_object* v_code_3922_; lean_object* v___x_3923_; uint8_t v___x_3924_; -v_status_3920_ = lean_ctor_get(v_messageHead_2893_, 0); -v___x_3921_ = l_Std_Http_Status_toCode(v_status_3920_); -v_code_3922_ = lean_uint16_to_nat(v___x_3921_); -v___x_3923_ = lean_unsigned_to_nat(100u); -v___x_3924_ = lean_nat_dec_le(v___x_3923_, v_code_3922_); -if (v___x_3924_ == 0) +lean_object* v_entries_4452_; lean_object* v_indexes_4453_; lean_object* v___x_4455_; uint8_t v_isShared_4456_; uint8_t v_isSharedCheck_4465_; +v_entries_4452_ = lean_ctor_get(v___y_4431_, 0); +v_indexes_4453_ = lean_ctor_get(v___y_4431_, 1); +v_isSharedCheck_4465_ = !lean_is_exclusive(v___y_4431_); +if (v_isSharedCheck_4465_ == 0) { -lean_inc(v_status_3920_); -v___y_3886_ = v___y_3917_; -v___y_3887_ = v___y_3918_; -v___y_3888_ = v___y_3919_; -v___y_3889_ = v_status_3920_; -v___y_3890_ = v_code_3922_; -goto v___jp_3885_; +v___x_4455_ = v___y_4431_; +v_isShared_4456_ = v_isSharedCheck_4465_; +goto v_resetjp_4454_; } else { -lean_object* v___x_3925_; uint8_t v___x_3926_; -v___x_3925_ = lean_unsigned_to_nat(200u); -v___x_3926_ = lean_nat_dec_lt(v_code_3922_, v___x_3925_); -if (v___x_3926_ == 0) +lean_inc(v_indexes_4453_); +lean_inc(v_entries_4452_); +lean_dec(v___y_4431_); +v___x_4455_ = lean_box(0); +v_isShared_4456_ = v_isSharedCheck_4465_; +goto v_resetjp_4454_; +} +v_resetjp_4454_: +{ +lean_object* v___x_4457_; lean_object* v_i_4458_; lean_object* v___x_4459_; lean_object* v_entries_4460_; lean_object* v_indexes_4461_; lean_object* v___x_4463_; +v___x_4457_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62)); +v_i_4458_ = lean_array_get_size(v_entries_4452_); +lean_inc_ref(v___y_4430_); +v___x_4459_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4459_, 0, v___y_4430_); +lean_ctor_set(v___x_4459_, 1, v___x_4457_); +v_entries_4460_ = lean_array_push(v_entries_4452_, v___x_4459_); +v_indexes_4461_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4458_, v_indexes_4453_, v___y_4430_); +if (v_isShared_4456_ == 0) { -lean_inc(v_status_3920_); -v___y_3886_ = v___y_3917_; -v___y_3887_ = v___y_3918_; -v___y_3888_ = v___y_3919_; -v___y_3889_ = v_status_3920_; -v___y_3890_ = v_code_3922_; -goto v___jp_3885_; +lean_ctor_set(v___x_4455_, 1, v_indexes_4461_); +lean_ctor_set(v___x_4455_, 0, v_entries_4460_); +v___x_4463_ = v___x_4455_; +goto v_reusejp_4462_; } else { -v___y_3865_ = v___y_3917_; -v___y_3866_ = v___y_3918_; -v___y_3867_ = v___y_3919_; -goto v___jp_3864_; +lean_object* v_reuseFailAlloc_4464_; +v_reuseFailAlloc_4464_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4464_, 0, v_entries_4460_); +lean_ctor_set(v_reuseFailAlloc_4464_, 1, v_indexes_4461_); +v___x_4463_ = v_reuseFailAlloc_4464_; +goto v_reusejp_4462_; } +v_reusejp_4462_: +{ +v___y_4400_ = v___y_4428_; +v___y_4401_ = v___y_4429_; +v___y_4402_ = v___x_4463_; +goto v___jp_4399_; } } -else +} +} +} +v___jp_4466_: { -lean_object* v___x_3927_; lean_object* v___f_3928_; lean_object* v___f_3929_; uint8_t v___x_3930_; -v___x_3927_ = l_Std_Http_Header_Name_contentLength; -v___f_3928_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3929_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3930_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3928_, v___f_3929_, v___x_3927_, v___y_3919_); -if (v___x_3930_ == 0) +lean_object* v___x_4473_; uint8_t v___x_4474_; +v___x_4473_ = lean_array_get_size(v___y_4472_); +v___x_4474_ = lean_nat_dec_lt(v___y_4468_, v___x_4473_); +if (v___x_4474_ == 0) { -v___y_3650_ = v___y_3917_; -v___y_3651_ = v___y_3918_; -v___y_3652_ = v___x_3927_; -v___y_3653_ = v___y_3919_; -goto v___jp_3649_; +lean_dec_ref(v___y_4472_); +lean_inc_ref(v___y_4471_); +v___y_4428_ = v___y_4467_; +v___y_4429_ = v___y_4469_; +v___y_4430_ = v___y_4470_; +v___y_4431_ = v___y_4471_; +goto v___jp_4427_; } else { -lean_object* v_entries_3931_; lean_object* v___x_3932_; lean_object* v___x_3933_; lean_object* v___x_3934_; lean_object* v___x_3935_; uint8_t v___x_3936_; -v_entries_3931_ = lean_ctor_get(v___y_3919_, 0); -lean_inc_ref(v_entries_3931_); -lean_dec_ref(v___y_3919_); -v___x_3932_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); -v___x_3933_ = lean_unsigned_to_nat(0u); -v___x_3934_ = lean_array_get_size(v_entries_3931_); -v___x_3935_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); -v___x_3936_ = lean_nat_dec_lt(v___x_3933_, v___x_3934_); -if (v___x_3936_ == 0) +uint8_t v___x_4475_; +v___x_4475_ = lean_nat_dec_le(v___x_4473_, v___x_4473_); +if (v___x_4475_ == 0) { -lean_dec_ref(v_entries_3931_); -v___y_3672_ = v___y_3917_; -v___y_3673_ = v___y_3918_; -v___y_3674_ = v___x_3933_; -v___y_3675_ = v___x_3932_; -v___y_3676_ = v___x_3927_; -v___y_3677_ = v___x_3935_; -goto v___jp_3671_; +if (v___x_4474_ == 0) +{ +lean_dec_ref(v___y_4472_); +lean_inc_ref(v___y_4471_); +v___y_4428_ = v___y_4467_; +v___y_4429_ = v___y_4469_; +v___y_4430_ = v___y_4470_; +v___y_4431_ = v___y_4471_; +goto v___jp_4427_; } else { -uint8_t v___x_3937_; -v___x_3937_ = lean_nat_dec_le(v___x_3934_, v___x_3934_); -if (v___x_3937_ == 0) +size_t v___x_4476_; size_t v___x_4477_; lean_object* v___x_4478_; +v___x_4476_ = ((size_t)0ULL); +v___x_4477_ = lean_usize_of_nat(v___x_4473_); +lean_inc_ref(v___y_4471_); +v___x_4478_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4472_, v___x_4476_, v___x_4477_, v___y_4471_); +lean_dec_ref(v___y_4472_); +v___y_4428_ = v___y_4467_; +v___y_4429_ = v___y_4469_; +v___y_4430_ = v___y_4470_; +v___y_4431_ = v___x_4478_; +goto v___jp_4427_; +} +} +else { -if (v___x_3936_ == 0) +size_t v___x_4479_; size_t v___x_4480_; lean_object* v___x_4481_; +v___x_4479_ = ((size_t)0ULL); +v___x_4480_ = lean_usize_of_nat(v___x_4473_); +lean_inc_ref(v___y_4471_); +v___x_4481_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_4472_, v___x_4479_, v___x_4480_, v___y_4471_); +lean_dec_ref(v___y_4472_); +v___y_4428_ = v___y_4467_; +v___y_4429_ = v___y_4469_; +v___y_4430_ = v___y_4470_; +v___y_4431_ = v___x_4481_; +goto v___jp_4427_; +} +} +} +v___jp_4482_: { -lean_dec_ref(v_entries_3931_); -v___y_3672_ = v___y_3917_; -v___y_3673_ = v___y_3918_; -v___y_3674_ = v___x_3933_; -v___y_3675_ = v___x_3932_; -v___y_3676_ = v___x_3927_; -v___y_3677_ = v___x_3935_; -goto v___jp_3671_; -} -else -{ -size_t v___x_3938_; size_t v___x_3939_; lean_object* v___x_3940_; -v___x_3938_ = ((size_t)0ULL); -v___x_3939_ = lean_usize_of_nat(v___x_3934_); -v___x_3940_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3931_, v___x_3938_, v___x_3939_, v___x_3935_); -lean_dec_ref(v_entries_3931_); -v___y_3672_ = v___y_3917_; -v___y_3673_ = v___y_3918_; -v___y_3674_ = v___x_3933_; -v___y_3675_ = v___x_3932_; -v___y_3676_ = v___x_3927_; -v___y_3677_ = v___x_3940_; -goto v___jp_3671_; -} -} -else -{ -size_t v___x_3941_; size_t v___x_3942_; lean_object* v___x_3943_; -v___x_3941_ = ((size_t)0ULL); -v___x_3942_ = lean_usize_of_nat(v___x_3934_); -v___x_3943_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_3931_, v___x_3941_, v___x_3942_, v___x_3935_); -lean_dec_ref(v_entries_3931_); -v___y_3672_ = v___y_3917_; -v___y_3673_ = v___y_3918_; -v___y_3674_ = v___x_3933_; -v___y_3675_ = v___x_3932_; -v___y_3676_ = v___x_3927_; -v___y_3677_ = v___x_3943_; -goto v___jp_3671_; -} -} -} -} -} -v___jp_3944_: -{ -lean_object* v___x_3949_; lean_object* v_i_3950_; lean_object* v___x_3951_; lean_object* v_entries_3952_; lean_object* v_indexes_3953_; lean_object* v___x_3954_; -v___x_3949_ = l_Std_Http_Header_Name_connection; -v_i_3950_ = lean_array_get_size(v_entries_3947_); -v___x_3951_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61); -v_entries_3952_ = lean_array_push(v_entries_3947_, v___x_3951_); -v_indexes_3953_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3950_, v_indexes_3948_, v___x_3949_); -v___x_3954_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3954_, 0, v_entries_3952_); -lean_ctor_set(v___x_3954_, 1, v_indexes_3953_); -v___y_3917_ = v___y_3945_; -v___y_3918_ = v___y_3946_; -v___y_3919_ = v___x_3954_; -goto v___jp_3916_; -} -v___jp_3955_: -{ -lean_object* v___x_3960_; lean_object* v_i_3961_; lean_object* v___x_3962_; lean_object* v_entries_3963_; lean_object* v_indexes_3964_; lean_object* v___x_3965_; -v___x_3960_ = l_Std_Http_Header_Name_connection; -v_i_3961_ = lean_array_get_size(v_entries_3958_); -v___x_3962_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__62); -v_entries_3963_ = lean_array_push(v_entries_3958_, v___x_3962_); -v_indexes_3964_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_3961_, v_indexes_3959_, v___x_3960_); -v___x_3965_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_3965_, 0, v_entries_3963_); -lean_ctor_set(v___x_3965_, 1, v_indexes_3964_); -v___y_3917_ = v___y_3956_; -v___y_3918_ = v___y_3957_; -v___y_3919_ = v___x_3965_; -goto v___jp_3916_; -} -v___jp_3966_: -{ -if (v___y_3967_ == 0) -{ -lean_object* v___x_3970_; lean_object* v___f_3971_; lean_object* v___f_3972_; uint8_t v___x_3973_; -v___x_3970_ = l_Std_Http_Header_Name_connection; -v___f_3971_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3972_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3973_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3971_, v___f_3972_, v___x_3970_, v___y_3969_); -if (v___x_3973_ == 0) -{ -lean_object* v_entries_3974_; lean_object* v_indexes_3975_; -v_entries_3974_ = lean_ctor_get(v___y_3969_, 0); -lean_inc_ref(v_entries_3974_); -v_indexes_3975_ = lean_ctor_get(v___y_3969_, 1); -lean_inc_ref(v_indexes_3975_); -lean_dec_ref(v___y_3969_); -v___y_3945_ = v___y_3967_; -v___y_3946_ = v___y_3968_; -v_entries_3947_ = v_entries_3974_; -v_indexes_3948_ = v_indexes_3975_; -goto v___jp_3944_; -} -else -{ -lean_object* v_entries_3976_; lean_object* v_indexes_3977_; lean_object* v___x_3978_; lean_object* v___x_3979_; lean_object* v___x_3980_; lean_object* v___x_3981_; lean_object* v_entries_3982_; lean_object* v___x_3983_; size_t v_sz_3984_; size_t v___x_3985_; lean_object* v___x_3986_; lean_object* v_fst_3987_; -v_entries_3976_ = lean_ctor_get(v___y_3969_, 0); -v_indexes_3977_ = lean_ctor_get(v___y_3969_, 1); -v___x_3978_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__0___redArg(v_indexes_3977_, v___x_3970_); -v___x_3979_ = lean_array_get_size(v___x_3978_); -v___x_3980_ = lean_unsigned_to_nat(0u); -v___x_3981_ = lean_mk_empty_array_with_capacity(v___x_3979_); -v_entries_3982_ = l_Array_mapFinIdxM_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__1___redArg(v___y_3969_, v___x_3978_, v___x_3979_, v___x_3980_, v___x_3981_); -lean_dec(v___x_3978_); -v___x_3983_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1)); -v_sz_3984_ = lean_array_size(v_entries_3982_); -v___x_3985_ = ((size_t)0ULL); -v___x_3986_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__10(v_entries_3982_, v_sz_3984_, v___x_3985_, v___x_3983_); -lean_dec_ref(v_entries_3982_); -v_fst_3987_ = lean_ctor_get(v___x_3986_, 0); -lean_inc(v_fst_3987_); -lean_dec_ref(v___x_3986_); -if (lean_obj_tag(v_fst_3987_) == 0) -{ -lean_inc_ref(v_indexes_3977_); -lean_inc_ref(v_entries_3976_); -lean_dec_ref(v___y_3969_); -v___y_3945_ = v___y_3967_; -v___y_3946_ = v___y_3968_; -v_entries_3947_ = v_entries_3976_; -v_indexes_3948_ = v_indexes_3977_; -goto v___jp_3944_; -} -else -{ -lean_object* v_val_3988_; -v_val_3988_ = lean_ctor_get(v_fst_3987_, 0); -lean_inc(v_val_3988_); -lean_dec_ref(v_fst_3987_); -if (lean_obj_tag(v_val_3988_) == 0) -{ -lean_inc_ref(v_indexes_3977_); -lean_inc_ref(v_entries_3976_); -lean_dec_ref(v___y_3969_); -v___y_3945_ = v___y_3967_; -v___y_3946_ = v___y_3968_; -v_entries_3947_ = v_entries_3976_; -v_indexes_3948_ = v_indexes_3977_; -goto v___jp_3944_; -} -else -{ -lean_dec_ref(v_val_3988_); -v___y_3917_ = v___y_3967_; -v___y_3918_ = v___y_3968_; -v___y_3919_ = v___y_3969_; -goto v___jp_3916_; -} -} -} -} -else -{ -uint8_t v___x_3989_; uint8_t v___x_3990_; uint8_t v___x_3991_; -v___x_3989_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2892_, v_messageHead_2922_); -v___x_3990_ = 0; -v___x_3991_ = l_Std_Http_instBEqVersion_beq(v___x_3989_, v___x_3990_); -if (v___x_3991_ == 0) -{ -v___y_3917_ = v___y_3967_; -v___y_3918_ = v___y_3968_; -v___y_3919_ = v___y_3969_; -goto v___jp_3916_; -} -else -{ -lean_object* v___x_3992_; lean_object* v___f_3993_; lean_object* v___f_3994_; uint8_t v___x_3995_; -v___x_3992_ = l_Std_Http_Header_Name_connection; -v___f_3993_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_3994_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_3995_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_3993_, v___f_3994_, v___x_3992_, v___y_3969_); -if (v___x_3995_ == 0) +lean_object* v___x_4486_; lean_object* v___f_4487_; lean_object* v___f_4488_; uint8_t v___x_4489_; +v___x_4486_ = l_Std_Http_Header_Name_connection; +v___f_4487_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_4488_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_4489_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_4487_, v___f_4488_, v___x_4486_, v___y_4485_); +if (v___x_4489_ == 0) { -lean_object* v_entries_3996_; lean_object* v_indexes_3997_; -v_entries_3996_ = lean_ctor_get(v___y_3969_, 0); -lean_inc_ref(v_entries_3996_); -v_indexes_3997_ = lean_ctor_get(v___y_3969_, 1); -lean_inc_ref(v_indexes_3997_); -lean_dec_ref(v___y_3969_); -v___y_3956_ = v___y_3967_; -v___y_3957_ = v___y_3968_; -v_entries_3958_ = v_entries_3996_; -v_indexes_3959_ = v_indexes_3997_; -goto v___jp_3955_; +v___y_4428_ = v___y_4483_; +v___y_4429_ = v___y_4484_; +v___y_4430_ = v___x_4486_; +v___y_4431_ = v___y_4485_; +goto v___jp_4427_; } else { -lean_object* v_entries_3998_; lean_object* v_indexes_3999_; lean_object* v___x_4000_; lean_object* v___x_4001_; lean_object* v___x_4002_; lean_object* v___x_4003_; lean_object* v_entries_4004_; lean_object* v___x_4005_; size_t v_sz_4006_; size_t v___x_4007_; lean_object* v___x_4008_; lean_object* v_fst_4009_; -v_entries_3998_ = lean_ctor_get(v___y_3969_, 0); -v_indexes_3999_ = lean_ctor_get(v___y_3969_, 1); -v___x_4000_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__0___redArg(v_indexes_3999_, v___x_3992_); -v___x_4001_ = lean_array_get_size(v___x_4000_); -v___x_4002_ = lean_unsigned_to_nat(0u); -v___x_4003_ = lean_mk_empty_array_with_capacity(v___x_4001_); -v_entries_4004_ = l_Array_mapFinIdxM_map___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__1___redArg(v___y_3969_, v___x_4000_, v___x_4001_, v___x_4002_, v___x_4003_); -lean_dec(v___x_4000_); -v___x_4005_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9___closed__1)); -v_sz_4006_ = lean_array_size(v_entries_4004_); -v___x_4007_ = ((size_t)0ULL); -v___x_4008_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(v_entries_4004_, v_sz_4006_, v___x_4007_, v___x_4005_); -lean_dec_ref(v_entries_4004_); -v_fst_4009_ = lean_ctor_get(v___x_4008_, 0); -lean_inc(v_fst_4009_); -lean_dec_ref(v___x_4008_); -if (lean_obj_tag(v_fst_4009_) == 0) +lean_object* v_entries_4490_; lean_object* v___x_4491_; lean_object* v___x_4492_; lean_object* v___x_4493_; lean_object* v___x_4494_; uint8_t v___x_4495_; +v_entries_4490_ = lean_ctor_get(v___y_4485_, 0); +lean_inc_ref(v_entries_4490_); +lean_dec_ref(v___y_4485_); +v___x_4491_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_4492_ = lean_unsigned_to_nat(0u); +v___x_4493_ = lean_array_get_size(v_entries_4490_); +v___x_4494_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_4495_ = lean_nat_dec_lt(v___x_4492_, v___x_4493_); +if (v___x_4495_ == 0) { -lean_inc_ref(v_indexes_3999_); -lean_inc_ref(v_entries_3998_); -lean_dec_ref(v___y_3969_); -v___y_3956_ = v___y_3967_; -v___y_3957_ = v___y_3968_; -v_entries_3958_ = v_entries_3998_; -v_indexes_3959_ = v_indexes_3999_; -goto v___jp_3955_; +lean_dec_ref(v_entries_4490_); +v___y_4467_ = v___y_4483_; +v___y_4468_ = v___x_4492_; +v___y_4469_ = v___y_4484_; +v___y_4470_ = v___x_4486_; +v___y_4471_ = v___x_4491_; +v___y_4472_ = v___x_4494_; +goto v___jp_4466_; } else { -lean_object* v_val_4010_; -v_val_4010_ = lean_ctor_get(v_fst_4009_, 0); -lean_inc(v_val_4010_); -lean_dec_ref(v_fst_4009_); -if (lean_obj_tag(v_val_4010_) == 0) +uint8_t v___x_4496_; +v___x_4496_ = lean_nat_dec_le(v___x_4493_, v___x_4493_); +if (v___x_4496_ == 0) +{ +if (v___x_4495_ == 0) { -lean_inc_ref(v_indexes_3999_); -lean_inc_ref(v_entries_3998_); -lean_dec_ref(v___y_3969_); -v___y_3956_ = v___y_3967_; -v___y_3957_ = v___y_3968_; -v_entries_3958_ = v_entries_3998_; -v_indexes_3959_ = v_indexes_3999_; -goto v___jp_3955_; +lean_dec_ref(v_entries_4490_); +v___y_4467_ = v___y_4483_; +v___y_4468_ = v___x_4492_; +v___y_4469_ = v___y_4484_; +v___y_4470_ = v___x_4486_; +v___y_4471_ = v___x_4491_; +v___y_4472_ = v___x_4494_; +goto v___jp_4466_; } else { -lean_dec_ref(v_val_4010_); -v___y_3917_ = v___y_3967_; -v___y_3918_ = v___y_3968_; -v___y_3919_ = v___y_3969_; -goto v___jp_3916_; +size_t v___x_4497_; size_t v___x_4498_; lean_object* v___x_4499_; +v___x_4497_ = ((size_t)0ULL); +v___x_4498_ = lean_usize_of_nat(v___x_4493_); +v___x_4499_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(v_entries_4490_, v___x_4497_, v___x_4498_, v___x_4494_); +lean_dec_ref(v_entries_4490_); +v___y_4467_ = v___y_4483_; +v___y_4468_ = v___x_4492_; +v___y_4469_ = v___y_4484_; +v___y_4470_ = v___x_4486_; +v___y_4471_ = v___x_4491_; +v___y_4472_ = v___x_4499_; +goto v___jp_4466_; } } +else +{ +size_t v___x_4500_; size_t v___x_4501_; lean_object* v___x_4502_; +v___x_4500_ = ((size_t)0ULL); +v___x_4501_ = lean_usize_of_nat(v___x_4493_); +v___x_4502_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__9(v_entries_4490_, v___x_4500_, v___x_4501_, v___x_4494_); +lean_dec_ref(v_entries_4490_); +v___y_4467_ = v___y_4483_; +v___y_4468_ = v___x_4492_; +v___y_4469_ = v___y_4484_; +v___y_4470_ = v___x_4486_; +v___y_4471_ = v___x_4491_; +v___y_4472_ = v___x_4502_; +goto v___jp_4466_; } } } } -v___jp_4011_: +v___jp_4503_: { -lean_object* v_size_4014_; lean_object* v_headers_4015_; -v_size_4014_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_2896_); -v_headers_4015_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_4012_, v_messageHead_2893_); -if (v_dir_2892_ == 0) +lean_object* v_headers_4508_; +v_headers_4508_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_4505_, v_messageHead_2860_); +if (v_dir_2859_ == 0) { -if (lean_obj_tag(v_agentName_2925_) == 0) +if (lean_obj_tag(v_agentName_4507_) == 0) { -v___y_3967_ = v___y_4013_; -v___y_3968_ = v_size_4014_; -v___y_3969_ = v_headers_4015_; -goto v___jp_3966_; +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v_headers_4508_; +goto v___jp_4482_; } else { -lean_object* v_val_4016_; lean_object* v_entries_4017_; lean_object* v_indexes_4018_; lean_object* v___x_4020_; uint8_t v_isShared_4021_; uint8_t v_isSharedCheck_4030_; -v_val_4016_ = lean_ctor_get(v_agentName_2925_, 0); -v_entries_4017_ = lean_ctor_get(v_headers_4015_, 0); -v_indexes_4018_ = lean_ctor_get(v_headers_4015_, 1); -v_isSharedCheck_4030_ = !lean_is_exclusive(v_headers_4015_); -if (v_isSharedCheck_4030_ == 0) +lean_object* v_val_4509_; lean_object* v_entries_4510_; lean_object* v_indexes_4511_; lean_object* v___x_4512_; uint8_t v___x_4513_; +v_val_4509_ = lean_ctor_get(v_agentName_4507_, 0); +lean_inc(v_val_4509_); +lean_dec_ref(v_agentName_4507_); +v_entries_4510_ = lean_ctor_get(v_headers_4508_, 0); +lean_inc_ref(v_entries_4510_); +v_indexes_4511_ = lean_ctor_get(v_headers_4508_, 1); +lean_inc_ref(v_indexes_4511_); +v___x_4512_ = l_Std_Http_Header_Name_server; +v___x_4513_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_4511_, v___x_4512_); +if (v___x_4513_ == 0) +{ +lean_object* v___x_4515_; uint8_t v_isShared_4516_; uint8_t v_isSharedCheck_4524_; +v_isSharedCheck_4524_ = !lean_is_exclusive(v_headers_4508_); +if (v_isSharedCheck_4524_ == 0) { -v___x_4020_ = v_headers_4015_; -v_isShared_4021_ = v_isSharedCheck_4030_; -goto v_resetjp_4019_; +lean_object* v_unused_4525_; lean_object* v_unused_4526_; +v_unused_4525_ = lean_ctor_get(v_headers_4508_, 1); +lean_dec(v_unused_4525_); +v_unused_4526_ = lean_ctor_get(v_headers_4508_, 0); +lean_dec(v_unused_4526_); +v___x_4515_ = v_headers_4508_; +v_isShared_4516_ = v_isSharedCheck_4524_; +goto v_resetjp_4514_; } else { -lean_inc(v_indexes_4018_); -lean_inc(v_entries_4017_); -lean_dec(v_headers_4015_); -v___x_4020_ = lean_box(0); -v_isShared_4021_ = v_isSharedCheck_4030_; -goto v_resetjp_4019_; +lean_dec(v_headers_4508_); +v___x_4515_ = lean_box(0); +v_isShared_4516_ = v_isSharedCheck_4524_; +goto v_resetjp_4514_; } -v_resetjp_4019_: +v_resetjp_4514_: { -lean_object* v___x_4022_; lean_object* v_i_4023_; lean_object* v___x_4024_; lean_object* v_entries_4025_; lean_object* v_indexes_4026_; lean_object* v___x_4028_; -v___x_4022_ = l_Std_Http_Header_Name_server; -v_i_4023_ = lean_array_get_size(v_entries_4017_); -lean_inc(v_val_4016_); -v___x_4024_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_4024_, 0, v___x_4022_); -lean_ctor_set(v___x_4024_, 1, v_val_4016_); -v_entries_4025_ = lean_array_push(v_entries_4017_, v___x_4024_); -v_indexes_4026_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4023_, v_indexes_4018_, v___x_4022_); -if (v_isShared_4021_ == 0) +lean_object* v_i_4517_; lean_object* v___x_4518_; lean_object* v_entries_4519_; lean_object* v_indexes_4520_; lean_object* v___x_4522_; +v_i_4517_ = lean_array_get_size(v_entries_4510_); +v___x_4518_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4518_, 0, v___x_4512_); +lean_ctor_set(v___x_4518_, 1, v_val_4509_); +v_entries_4519_ = lean_array_push(v_entries_4510_, v___x_4518_); +v_indexes_4520_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4517_, v_indexes_4511_, v___x_4512_); +if (v_isShared_4516_ == 0) { -lean_ctor_set(v___x_4020_, 1, v_indexes_4026_); -lean_ctor_set(v___x_4020_, 0, v_entries_4025_); -v___x_4028_ = v___x_4020_; -goto v_reusejp_4027_; +lean_ctor_set(v___x_4515_, 1, v_indexes_4520_); +lean_ctor_set(v___x_4515_, 0, v_entries_4519_); +v___x_4522_ = v___x_4515_; +goto v_reusejp_4521_; } else { -lean_object* v_reuseFailAlloc_4029_; -v_reuseFailAlloc_4029_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4029_, 0, v_entries_4025_); -lean_ctor_set(v_reuseFailAlloc_4029_, 1, v_indexes_4026_); -v___x_4028_ = v_reuseFailAlloc_4029_; -goto v_reusejp_4027_; +lean_object* v_reuseFailAlloc_4523_; +v_reuseFailAlloc_4523_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4523_, 0, v_entries_4519_); +lean_ctor_set(v_reuseFailAlloc_4523_, 1, v_indexes_4520_); +v___x_4522_ = v_reuseFailAlloc_4523_; +goto v_reusejp_4521_; } -v_reusejp_4027_: +v_reusejp_4521_: { -v___y_3967_ = v___y_4013_; -v___y_3968_ = v_size_4014_; -v___y_3969_ = v___x_4028_; -goto v___jp_3966_; +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v___x_4522_; +goto v___jp_4482_; +} +} } +else +{ +lean_dec_ref(v_indexes_4511_); +lean_dec_ref(v_entries_4510_); +lean_dec(v_val_4509_); +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v_headers_4508_; +goto v___jp_4482_; +} +} +} +else +{ +if (lean_obj_tag(v_agentName_4507_) == 0) +{ +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v_headers_4508_; +goto v___jp_4482_; +} +else +{ +lean_object* v_val_4527_; lean_object* v_entries_4528_; lean_object* v_indexes_4529_; lean_object* v___x_4530_; uint8_t v___x_4531_; +v_val_4527_ = lean_ctor_get(v_agentName_4507_, 0); +lean_inc(v_val_4527_); +lean_dec_ref(v_agentName_4507_); +v_entries_4528_ = lean_ctor_get(v_headers_4508_, 0); +lean_inc_ref(v_entries_4528_); +v_indexes_4529_ = lean_ctor_get(v_headers_4508_, 1); +lean_inc_ref(v_indexes_4529_); +v___x_4530_ = l_Std_Http_Header_Name_userAgent; +v___x_4531_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_4529_, v___x_4530_); +if (v___x_4531_ == 0) +{ +lean_object* v___x_4533_; uint8_t v_isShared_4534_; uint8_t v_isSharedCheck_4542_; +v_isSharedCheck_4542_ = !lean_is_exclusive(v_headers_4508_); +if (v_isSharedCheck_4542_ == 0) +{ +lean_object* v_unused_4543_; lean_object* v_unused_4544_; +v_unused_4543_ = lean_ctor_get(v_headers_4508_, 1); +lean_dec(v_unused_4543_); +v_unused_4544_ = lean_ctor_get(v_headers_4508_, 0); +lean_dec(v_unused_4544_); +v___x_4533_ = v_headers_4508_; +v_isShared_4534_ = v_isSharedCheck_4542_; +goto v_resetjp_4532_; } +else +{ +lean_dec(v_headers_4508_); +v___x_4533_ = lean_box(0); +v_isShared_4534_ = v_isSharedCheck_4542_; +goto v_resetjp_4532_; } +v_resetjp_4532_: +{ +lean_object* v_i_4535_; lean_object* v___x_4536_; lean_object* v_entries_4537_; lean_object* v_indexes_4538_; lean_object* v___x_4540_; +v_i_4535_ = lean_array_get_size(v_entries_4528_); +v___x_4536_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_4536_, 0, v___x_4530_); +lean_ctor_set(v___x_4536_, 1, v_val_4527_); +v_entries_4537_ = lean_array_push(v_entries_4528_, v___x_4536_); +v_indexes_4538_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4535_, v_indexes_4529_, v___x_4530_); +if (v_isShared_4534_ == 0) +{ +lean_ctor_set(v___x_4533_, 1, v_indexes_4538_); +lean_ctor_set(v___x_4533_, 0, v_entries_4537_); +v___x_4540_ = v___x_4533_; +goto v_reusejp_4539_; } else { -if (lean_obj_tag(v_agentName_2925_) == 0) +lean_object* v_reuseFailAlloc_4541_; +v_reuseFailAlloc_4541_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_4541_, 0, v_entries_4537_); +lean_ctor_set(v_reuseFailAlloc_4541_, 1, v_indexes_4538_); +v___x_4540_ = v_reuseFailAlloc_4541_; +goto v_reusejp_4539_; +} +v_reusejp_4539_: { -v___y_3967_ = v___y_4013_; -v___y_3968_ = v_size_4014_; -v___y_3969_ = v_headers_4015_; -goto v___jp_3966_; +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v___x_4540_; +goto v___jp_4482_; +} +} } else { -lean_object* v_val_4031_; lean_object* v_entries_4032_; lean_object* v_indexes_4033_; lean_object* v___x_4035_; uint8_t v_isShared_4036_; uint8_t v_isSharedCheck_4045_; -v_val_4031_ = lean_ctor_get(v_agentName_2925_, 0); -v_entries_4032_ = lean_ctor_get(v_headers_4015_, 0); -v_indexes_4033_ = lean_ctor_get(v_headers_4015_, 1); -v_isSharedCheck_4045_ = !lean_is_exclusive(v_headers_4015_); -if (v_isSharedCheck_4045_ == 0) +lean_dec_ref(v_indexes_4529_); +lean_dec_ref(v_entries_4528_); +lean_dec(v_val_4527_); +v___y_4483_ = v___y_4506_; +v___y_4484_ = v___y_4504_; +v___y_4485_ = v_headers_4508_; +goto v___jp_4482_; +} +} +} +} +v___jp_4545_: { -v___x_4035_ = v_headers_4015_; -v_isShared_4036_ = v_isSharedCheck_4045_; -goto v_resetjp_4034_; +lean_object* v___x_4549_; +lean_inc(v_instant_2887_); +lean_inc(v_error_2886_); +lean_inc_ref(v_events_2885_); +lean_inc_ref(v_config_2883_); +lean_inc_ref(v_writer_2884_); +lean_inc_ref(v_reader_2882_); +if (v_isShared_2893_ == 0) +{ +v___x_4549_ = v___x_2892_; +goto v_reusejp_4548_; } else { -lean_inc(v_indexes_4033_); -lean_inc(v_entries_4032_); -lean_dec(v_headers_4015_); -v___x_4035_ = lean_box(0); -v_isShared_4036_ = v_isSharedCheck_4045_; -goto v_resetjp_4034_; +lean_object* v_reuseFailAlloc_4554_; +v_reuseFailAlloc_4554_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4554_, 0, v_reader_2882_); +lean_ctor_set(v_reuseFailAlloc_4554_, 1, v_writer_2884_); +lean_ctor_set(v_reuseFailAlloc_4554_, 2, v_config_2883_); +lean_ctor_set(v_reuseFailAlloc_4554_, 3, v_events_2885_); +lean_ctor_set(v_reuseFailAlloc_4554_, 4, v_error_2886_); +lean_ctor_set(v_reuseFailAlloc_4554_, 5, v_instant_2887_); +lean_ctor_set_uint8(v_reuseFailAlloc_4554_, sizeof(void*)*6 + 1, v_forcedFlush_2889_); +lean_ctor_set_uint8(v_reuseFailAlloc_4554_, sizeof(void*)*6 + 2, v_pullBodyStalled_2890_); +v___x_4549_ = v_reuseFailAlloc_4554_; +goto v_reusejp_4548_; } -v_resetjp_4034_: +v_reusejp_4548_: +{ +lean_object* v_size_4550_; +lean_ctor_set_uint8(v___x_4549_, sizeof(void*)*6, v___y_4547_); +v_size_4550_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_2884_); +if (v_dir_2859_ == 0) { -lean_object* v___x_4037_; lean_object* v_i_4038_; lean_object* v___x_4039_; lean_object* v_entries_4040_; lean_object* v_indexes_4041_; lean_object* v___x_4043_; -v___x_4037_ = l_Std_Http_Header_Name_userAgent; -v_i_4038_ = lean_array_get_size(v_entries_4032_); -lean_inc(v_val_4031_); -v___x_4039_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_4039_, 0, v___x_4037_); -lean_ctor_set(v___x_4039_, 1, v_val_4031_); -v_entries_4040_ = lean_array_push(v_entries_4032_, v___x_4039_); -v_indexes_4041_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_4038_, v_indexes_4033_, v___x_4037_); -if (v_isShared_4036_ == 0) +uint8_t v___x_4551_; +v___x_4551_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_2859_, v_messageHead_2894_); +if (v___x_4551_ == 0) { -lean_ctor_set(v___x_4035_, 1, v_indexes_4041_); -lean_ctor_set(v___x_4035_, 0, v_entries_4040_); -v___x_4043_ = v___x_4035_; -goto v_reusejp_4042_; +if (lean_obj_tag(v_size_4550_) == 0) +{ +uint8_t v___x_4552_; lean_object* v___x_4553_; +lean_dec_ref(v___x_4549_); +v___x_4552_ = 0; +v___x_4553_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_4553_, 0, v_reader_2882_); +lean_ctor_set(v___x_4553_, 1, v_writer_2884_); +lean_ctor_set(v___x_4553_, 2, v_config_2883_); +lean_ctor_set(v___x_4553_, 3, v_events_2885_); +lean_ctor_set(v___x_4553_, 4, v_error_2886_); +lean_ctor_set(v___x_4553_, 5, v_instant_2887_); +lean_ctor_set_uint8(v___x_4553_, sizeof(void*)*6, v___x_4552_); +lean_ctor_set_uint8(v___x_4553_, sizeof(void*)*6 + 1, v_forcedFlush_2889_); +lean_ctor_set_uint8(v___x_4553_, sizeof(void*)*6 + 2, v_pullBodyStalled_2890_); +v___y_4504_ = v_size_4550_; +v___y_4505_ = v___y_4546_; +v___y_4506_ = v___x_4553_; +v_agentName_4507_ = v_agentName_2897_; +goto v___jp_4503_; } else { -lean_object* v_reuseFailAlloc_4044_; -v_reuseFailAlloc_4044_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_4044_, 0, v_entries_4040_); -lean_ctor_set(v_reuseFailAlloc_4044_, 1, v_indexes_4041_); -v___x_4043_ = v_reuseFailAlloc_4044_; -goto v_reusejp_4042_; +lean_dec(v_instant_2887_); +lean_dec(v_error_2886_); +lean_dec_ref(v_events_2885_); +lean_dec_ref(v_writer_2884_); +lean_dec_ref(v_config_2883_); +lean_dec_ref(v_reader_2882_); +v___y_4504_ = v_size_4550_; +v___y_4505_ = v___y_4546_; +v___y_4506_ = v___x_4549_; +v_agentName_4507_ = v_agentName_2897_; +goto v___jp_4503_; +} } -v_reusejp_4042_: +else { -v___y_3967_ = v___y_4013_; -v___y_3968_ = v_size_4014_; -v___y_3969_ = v___x_4043_; -goto v___jp_3966_; +lean_dec(v_instant_2887_); +lean_dec(v_error_2886_); +lean_dec_ref(v_events_2885_); +lean_dec_ref(v_writer_2884_); +lean_dec_ref(v_config_2883_); +lean_dec_ref(v_reader_2882_); +v___y_4504_ = v_size_4550_; +v___y_4505_ = v___y_4546_; +v___y_4506_ = v___x_4549_; +v_agentName_4507_ = v_agentName_2897_; +goto v___jp_4503_; } } +else +{ +lean_dec(v_instant_2887_); +lean_dec(v_error_2886_); +lean_dec_ref(v_events_2885_); +lean_dec_ref(v_writer_2884_); +lean_dec_ref(v_config_2883_); +lean_dec_ref(v_reader_2882_); +v___y_4504_ = v_size_4550_; +v___y_4505_ = v___y_4546_; +v___y_4506_ = v___x_4549_; +v_agentName_4507_ = v_agentName_2897_; +goto v___jp_4503_; } } } -v___jp_4046_: +v___jp_4555_: { -if (v___y_4047_ == 0) +if (v___y_4556_ == 0) { -v___y_4012_ = v___y_4048_; -v___y_4013_ = v___y_4047_; -goto v___jp_4011_; +v___y_4546_ = v___y_4557_; +v___y_4547_ = v___y_4556_; +goto v___jp_4545_; } else { -uint8_t v_shouldKeepAlive_4049_; -v_shouldKeepAlive_4049_ = l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(v___y_4048_, v_messageHead_2893_); -v___y_4012_ = v___y_4048_; -v___y_4013_ = v_shouldKeepAlive_4049_; -goto v___jp_4011_; +uint8_t v_shouldKeepAlive_4558_; +v_shouldKeepAlive_4558_ = l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(v___y_4557_, v_messageHead_2860_); +v___y_4546_ = v___y_4557_; +v___y_4547_ = v_shouldKeepAlive_4558_; +goto v___jp_4545_; } } -v___jp_4050_: +v___jp_4559_: { -if (v_dir_2892_ == 0) +if (v_dir_2859_ == 0) { -uint8_t v___x_4052_; -v___x_4052_ = 1; -v___y_4047_ = v___y_4051_; -v___y_4048_ = v___x_4052_; -goto v___jp_4046_; +uint8_t v___x_4561_; +v___x_4561_ = 1; +v___y_4556_ = v___y_4560_; +v___y_4557_ = v___x_4561_; +goto v___jp_4555_; } else { -uint8_t v___x_4053_; -v___x_4053_ = 0; -v___y_4047_ = v___y_4051_; -v___y_4048_ = v___x_4053_; -goto v___jp_4046_; +uint8_t v___x_4562_; +v___x_4562_ = 0; +v___y_4556_ = v___y_4560_; +v___y_4557_ = v___x_4562_; +goto v___jp_4555_; } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___boxed(lean_object* v_dir_4057_, lean_object* v_messageHead_4058_, lean_object* v_machine_4059_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___boxed(lean_object* v_dir_4566_, lean_object* v_messageHead_4567_, lean_object* v_machine_4568_){ _start: { -uint8_t v_dir_boxed_4060_; lean_object* v_res_4061_; -v_dir_boxed_4060_ = lean_unbox(v_dir_4057_); -v_res_4061_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(v_dir_boxed_4060_, v_messageHead_4058_, v_machine_4059_); -return v_res_4061_; +uint8_t v_dir_boxed_4569_; lean_object* v_res_4570_; +v_dir_boxed_4569_ = lean_unbox(v_dir_4566_); +v_res_4570_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(v_dir_boxed_4569_, v_messageHead_4567_, v_machine_4568_); +return v_res_4570_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1(lean_object* v___x_4062_, lean_object* v___x_4063_, lean_object* v___x_4064_, lean_object* v_inst_4065_, lean_object* v_R_4066_, lean_object* v_a_4067_, lean_object* v_b_4068_, lean_object* v_c_4069_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1(lean_object* v___x_4571_, lean_object* v___x_4572_, lean_object* v___x_4573_, lean_object* v_inst_4574_, lean_object* v_R_4575_, lean_object* v_a_4576_, lean_object* v_b_4577_, lean_object* v_c_4578_){ _start: { -lean_object* v___x_4070_; -v___x_4070_ = l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1___redArg(v___x_4062_, v___x_4063_, v___x_4064_, v_a_4067_, v_b_4068_); -return v___x_4070_; +lean_object* v___x_4579_; +v___x_4579_ = l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1___redArg(v___x_4571_, v___x_4572_, v___x_4573_, v_a_4576_, v_b_4577_); +return v___x_4579_; } } -LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1___boxed(lean_object* v___x_4071_, lean_object* v___x_4072_, lean_object* v___x_4073_, lean_object* v_inst_4074_, lean_object* v_R_4075_, lean_object* v_a_4076_, lean_object* v_b_4077_, lean_object* v_c_4078_){ +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1___boxed(lean_object* v___x_4580_, lean_object* v___x_4581_, lean_object* v___x_4582_, lean_object* v_inst_4583_, lean_object* v_R_4584_, lean_object* v_a_4585_, lean_object* v_b_4586_, lean_object* v_c_4587_){ _start: { -lean_object* v_res_4079_; -v_res_4079_ = l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1(v___x_4071_, v___x_4072_, v___x_4073_, v_inst_4074_, v_R_4075_, v_a_4076_, v_b_4077_, v_c_4078_); -lean_dec_ref(v___x_4072_); -lean_dec_ref(v___x_4071_); -return v_res_4079_; +lean_object* v_res_4588_; +v_res_4588_ = l_WellFounded_opaqueFix_u2083___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__1(v___x_4580_, v___x_4581_, v___x_4582_, v_inst_4583_, v_R_4584_, v_a_4585_, v_b_4586_, v_c_4587_); +lean_dec_ref(v___x_4581_); +lean_dec_ref(v___x_4580_); +return v_res_4588_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4(lean_object* v_00_u03b2_4080_, lean_object* v_data_4081_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4(lean_object* v_00_u03b2_4589_, lean_object* v_data_4590_){ _start: { -lean_object* v___x_4082_; -v___x_4082_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_data_4081_); -return v___x_4082_; +lean_object* v___x_4591_; +v___x_4591_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_data_4590_); +return v___x_4591_; } } -LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6(lean_object* v_00_u03b2_4083_, lean_object* v_i_4084_, lean_object* v_source_4085_, lean_object* v_target_4086_){ +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6(lean_object* v_00_u03b2_4592_, lean_object* v_i_4593_, lean_object* v_source_4594_, lean_object* v_target_4595_){ _start: { -lean_object* v___x_4087_; -v___x_4087_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(v_i_4084_, v_source_4085_, v_target_4086_); -return v___x_4087_; +lean_object* v___x_4596_; +v___x_4596_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6___redArg(v_i_4593_, v_source_4594_, v_target_4595_); +return v___x_4596_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12(lean_object* v_00_u03b2_4088_, lean_object* v_x_4089_, lean_object* v_x_4090_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11(lean_object* v_00_u03b2_4597_, lean_object* v_x_4598_, lean_object* v_x_4599_){ _start: { -lean_object* v___x_4091_; -v___x_4091_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__12___redArg(v_x_4089_, v_x_4090_); -return v___x_4091_; +lean_object* v___x_4600_; +v___x_4600_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4_spec__6_spec__11___redArg(v_x_4598_, v_x_4599_); +return v___x_4600_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___redArg(lean_object* v_machine_4092_, lean_object* v_data_4093_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___redArg(lean_object* v_machine_4601_, lean_object* v_data_4602_){ _start: { -lean_object* v_reader_4094_; lean_object* v_state_4095_; -v_reader_4094_ = lean_ctor_get(v_machine_4092_, 0); -lean_inc_ref(v_reader_4094_); -v_state_4095_ = lean_ctor_get(v_reader_4094_, 0); -lean_inc(v_state_4095_); -if (lean_obj_tag(v_state_4095_) == 6) +lean_object* v_reader_4603_; lean_object* v_state_4604_; +v_reader_4603_ = lean_ctor_get(v_machine_4601_, 0); +lean_inc_ref(v_reader_4603_); +v_state_4604_ = lean_ctor_get(v_reader_4603_, 0); +lean_inc(v_state_4604_); +if (lean_obj_tag(v_state_4604_) == 6) { -lean_dec_ref(v_reader_4094_); -lean_dec_ref(v_data_4093_); -return v_machine_4092_; +lean_dec_ref(v_reader_4603_); +lean_dec_ref(v_data_4602_); +return v_machine_4601_; } else { -if (lean_obj_tag(v_state_4095_) == 7) +if (lean_obj_tag(v_state_4604_) == 7) { -lean_dec_ref(v_state_4095_); -lean_dec_ref(v_reader_4094_); -lean_dec_ref(v_data_4093_); -return v_machine_4092_; +lean_dec_ref(v_state_4604_); +lean_dec_ref(v_reader_4603_); +lean_dec_ref(v_data_4602_); +return v_machine_4601_; } else { -lean_object* v_input_4096_; lean_object* v_writer_4097_; lean_object* v_config_4098_; lean_object* v_events_4099_; lean_object* v_error_4100_; lean_object* v_instant_4101_; uint8_t v_keepAlive_4102_; uint8_t v_forcedFlush_4103_; lean_object* v___x_4105_; uint8_t v_isShared_4106_; uint8_t v_isSharedCheck_4160_; -v_input_4096_ = lean_ctor_get(v_reader_4094_, 1); -lean_inc_ref(v_input_4096_); -v_writer_4097_ = lean_ctor_get(v_machine_4092_, 1); -v_config_4098_ = lean_ctor_get(v_machine_4092_, 2); -v_events_4099_ = lean_ctor_get(v_machine_4092_, 3); -v_error_4100_ = lean_ctor_get(v_machine_4092_, 4); -v_instant_4101_ = lean_ctor_get(v_machine_4092_, 5); -v_keepAlive_4102_ = lean_ctor_get_uint8(v_machine_4092_, sizeof(void*)*6); -v_forcedFlush_4103_ = lean_ctor_get_uint8(v_machine_4092_, sizeof(void*)*6 + 1); -v_isSharedCheck_4160_ = !lean_is_exclusive(v_machine_4092_); -if (v_isSharedCheck_4160_ == 0) +lean_object* v_input_4605_; lean_object* v_writer_4606_; lean_object* v_config_4607_; lean_object* v_events_4608_; lean_object* v_error_4609_; lean_object* v_instant_4610_; uint8_t v_keepAlive_4611_; uint8_t v_forcedFlush_4612_; lean_object* v___x_4614_; uint8_t v_isShared_4615_; uint8_t v_isSharedCheck_4669_; +v_input_4605_ = lean_ctor_get(v_reader_4603_, 1); +lean_inc_ref(v_input_4605_); +v_writer_4606_ = lean_ctor_get(v_machine_4601_, 1); +v_config_4607_ = lean_ctor_get(v_machine_4601_, 2); +v_events_4608_ = lean_ctor_get(v_machine_4601_, 3); +v_error_4609_ = lean_ctor_get(v_machine_4601_, 4); +v_instant_4610_ = lean_ctor_get(v_machine_4601_, 5); +v_keepAlive_4611_ = lean_ctor_get_uint8(v_machine_4601_, sizeof(void*)*6); +v_forcedFlush_4612_ = lean_ctor_get_uint8(v_machine_4601_, sizeof(void*)*6 + 1); +v_isSharedCheck_4669_ = !lean_is_exclusive(v_machine_4601_); +if (v_isSharedCheck_4669_ == 0) { -lean_object* v_unused_4161_; -v_unused_4161_ = lean_ctor_get(v_machine_4092_, 0); -lean_dec(v_unused_4161_); -v___x_4105_ = v_machine_4092_; -v_isShared_4106_ = v_isSharedCheck_4160_; -goto v_resetjp_4104_; +lean_object* v_unused_4670_; +v_unused_4670_ = lean_ctor_get(v_machine_4601_, 0); +lean_dec(v_unused_4670_); +v___x_4614_ = v_machine_4601_; +v_isShared_4615_ = v_isSharedCheck_4669_; +goto v_resetjp_4613_; } else { -lean_inc(v_instant_4101_); -lean_inc(v_error_4100_); -lean_inc(v_events_4099_); -lean_inc(v_config_4098_); -lean_inc(v_writer_4097_); -lean_dec(v_machine_4092_); -v___x_4105_ = lean_box(0); -v_isShared_4106_ = v_isSharedCheck_4160_; -goto v_resetjp_4104_; +lean_inc(v_instant_4610_); +lean_inc(v_error_4609_); +lean_inc(v_events_4608_); +lean_inc(v_config_4607_); +lean_inc(v_writer_4606_); +lean_dec(v_machine_4601_); +v___x_4614_ = lean_box(0); +v_isShared_4615_ = v_isSharedCheck_4669_; +goto v_resetjp_4613_; } -v_resetjp_4104_: +v_resetjp_4613_: { -lean_object* v_messageHead_4107_; lean_object* v_messageCount_4108_; lean_object* v_bodyBytesRead_4109_; lean_object* v_headerBytesRead_4110_; uint8_t v_noMoreInput_4111_; lean_object* v___x_4113_; uint8_t v_isShared_4114_; uint8_t v_isSharedCheck_4157_; -v_messageHead_4107_ = lean_ctor_get(v_reader_4094_, 2); -v_messageCount_4108_ = lean_ctor_get(v_reader_4094_, 3); -v_bodyBytesRead_4109_ = lean_ctor_get(v_reader_4094_, 4); -v_headerBytesRead_4110_ = lean_ctor_get(v_reader_4094_, 5); -v_noMoreInput_4111_ = lean_ctor_get_uint8(v_reader_4094_, sizeof(void*)*6); -v_isSharedCheck_4157_ = !lean_is_exclusive(v_reader_4094_); -if (v_isSharedCheck_4157_ == 0) +lean_object* v_messageHead_4616_; lean_object* v_messageCount_4617_; lean_object* v_bodyBytesRead_4618_; lean_object* v_headerBytesRead_4619_; uint8_t v_noMoreInput_4620_; lean_object* v___x_4622_; uint8_t v_isShared_4623_; uint8_t v_isSharedCheck_4666_; +v_messageHead_4616_ = lean_ctor_get(v_reader_4603_, 2); +v_messageCount_4617_ = lean_ctor_get(v_reader_4603_, 3); +v_bodyBytesRead_4618_ = lean_ctor_get(v_reader_4603_, 4); +v_headerBytesRead_4619_ = lean_ctor_get(v_reader_4603_, 5); +v_noMoreInput_4620_ = lean_ctor_get_uint8(v_reader_4603_, sizeof(void*)*6); +v_isSharedCheck_4666_ = !lean_is_exclusive(v_reader_4603_); +if (v_isSharedCheck_4666_ == 0) { -lean_object* v_unused_4158_; lean_object* v_unused_4159_; -v_unused_4158_ = lean_ctor_get(v_reader_4094_, 1); -lean_dec(v_unused_4158_); -v_unused_4159_ = lean_ctor_get(v_reader_4094_, 0); -lean_dec(v_unused_4159_); -v___x_4113_ = v_reader_4094_; -v_isShared_4114_ = v_isSharedCheck_4157_; -goto v_resetjp_4112_; +lean_object* v_unused_4667_; lean_object* v_unused_4668_; +v_unused_4667_ = lean_ctor_get(v_reader_4603_, 1); +lean_dec(v_unused_4667_); +v_unused_4668_ = lean_ctor_get(v_reader_4603_, 0); +lean_dec(v_unused_4668_); +v___x_4622_ = v_reader_4603_; +v_isShared_4623_ = v_isSharedCheck_4666_; +goto v_resetjp_4621_; } else { -lean_inc(v_headerBytesRead_4110_); -lean_inc(v_bodyBytesRead_4109_); -lean_inc(v_messageCount_4108_); -lean_inc(v_messageHead_4107_); -lean_dec(v_reader_4094_); -v___x_4113_ = lean_box(0); -v_isShared_4114_ = v_isSharedCheck_4157_; -goto v_resetjp_4112_; +lean_inc(v_headerBytesRead_4619_); +lean_inc(v_bodyBytesRead_4618_); +lean_inc(v_messageCount_4617_); +lean_inc(v_messageHead_4616_); +lean_dec(v_reader_4603_); +v___x_4622_ = lean_box(0); +v_isShared_4623_ = v_isSharedCheck_4666_; +goto v_resetjp_4621_; } -v_resetjp_4112_: +v_resetjp_4621_: { -lean_object* v_array_4115_; lean_object* v_idx_4116_; uint8_t v___x_4117_; lean_object* v___y_4119_; lean_object* v___x_4148_; uint8_t v___x_4149_; -v_array_4115_ = lean_ctor_get(v_input_4096_, 0); -lean_inc_ref(v_array_4115_); -v_idx_4116_ = lean_ctor_get(v_input_4096_, 1); -lean_inc(v_idx_4116_); -lean_dec_ref(v_input_4096_); -v___x_4117_ = 0; -v___x_4148_ = lean_byte_array_size(v_array_4115_); -v___x_4149_ = lean_nat_dec_le(v___x_4148_, v_idx_4116_); -if (v___x_4149_ == 0) +lean_object* v_array_4624_; lean_object* v_idx_4625_; uint8_t v___x_4626_; lean_object* v___y_4628_; lean_object* v___x_4657_; uint8_t v___x_4658_; +v_array_4624_ = lean_ctor_get(v_input_4605_, 0); +lean_inc_ref(v_array_4624_); +v_idx_4625_ = lean_ctor_get(v_input_4605_, 1); +lean_inc(v_idx_4625_); +lean_dec_ref(v_input_4605_); +v___x_4626_ = 0; +v___x_4657_ = lean_byte_array_size(v_array_4624_); +v___x_4658_ = lean_nat_dec_le(v___x_4657_, v_idx_4625_); +if (v___x_4658_ == 0) { -lean_object* v___x_4150_; lean_object* v___x_4151_; lean_object* v___x_4152_; lean_object* v___x_4153_; lean_object* v___x_4154_; lean_object* v___x_4155_; -v___x_4150_ = l_ByteArray_extract(v_array_4115_, v_idx_4116_, v___x_4148_); -lean_dec_ref(v_array_4115_); -v___x_4151_ = lean_unsigned_to_nat(0u); -v___x_4152_ = lean_byte_array_size(v___x_4150_); -v___x_4153_ = lean_byte_array_size(v_data_4093_); -v___x_4154_ = lean_byte_array_copy_slice(v_data_4093_, v___x_4151_, v___x_4150_, v___x_4152_, v___x_4153_, v___x_4149_); -lean_dec_ref(v_data_4093_); -v___x_4155_ = l_ByteArray_mkIterator(v___x_4154_); -v___y_4119_ = v___x_4155_; -goto v___jp_4118_; +lean_object* v___x_4659_; lean_object* v___x_4660_; lean_object* v___x_4661_; lean_object* v___x_4662_; lean_object* v___x_4663_; lean_object* v___x_4664_; +v___x_4659_ = l_ByteArray_extract(v_array_4624_, v_idx_4625_, v___x_4657_); +lean_dec_ref(v_array_4624_); +v___x_4660_ = lean_unsigned_to_nat(0u); +v___x_4661_ = lean_byte_array_size(v___x_4659_); +v___x_4662_ = lean_byte_array_size(v_data_4602_); +v___x_4663_ = lean_byte_array_copy_slice(v_data_4602_, v___x_4660_, v___x_4659_, v___x_4661_, v___x_4662_, v___x_4658_); +lean_dec_ref(v_data_4602_); +v___x_4664_ = l_ByteArray_mkIterator(v___x_4663_); +v___y_4628_ = v___x_4664_; +goto v___jp_4627_; } else { -lean_object* v___x_4156_; -lean_dec(v_idx_4116_); -lean_dec_ref(v_array_4115_); -v___x_4156_ = l_ByteArray_mkIterator(v_data_4093_); -v___y_4119_ = v___x_4156_; -goto v___jp_4118_; +lean_object* v___x_4665_; +lean_dec(v_idx_4625_); +lean_dec_ref(v_array_4624_); +v___x_4665_ = l_ByteArray_mkIterator(v_data_4602_); +v___y_4628_ = v___x_4665_; +goto v___jp_4627_; } -v___jp_4118_: +v___jp_4627_: { -lean_object* v_maxHeaderBytes_4120_; lean_object* v_maxStartLineLength_4121_; lean_object* v_maxChunkLineLength_4122_; lean_object* v_maxBodySize_4123_; lean_object* v_array_4124_; lean_object* v_idx_4125_; lean_object* v___x_4126_; lean_object* v___x_4127_; lean_object* v___x_4128_; lean_object* v___x_4129_; lean_object* v___x_4130_; uint8_t v___x_4131_; -v_maxHeaderBytes_4120_ = lean_ctor_get(v_config_4098_, 2); -v_maxStartLineLength_4121_ = lean_ctor_get(v_config_4098_, 5); -v_maxChunkLineLength_4122_ = lean_ctor_get(v_config_4098_, 13); -v_maxBodySize_4123_ = lean_ctor_get(v_config_4098_, 15); -v_array_4124_ = lean_ctor_get(v___y_4119_, 0); -v_idx_4125_ = lean_ctor_get(v___y_4119_, 1); -v___x_4126_ = lean_nat_add(v_maxBodySize_4123_, v_maxHeaderBytes_4120_); -v___x_4127_ = lean_nat_add(v___x_4126_, v_maxStartLineLength_4121_); -lean_dec(v___x_4126_); -v___x_4128_ = lean_nat_add(v___x_4127_, v_maxChunkLineLength_4122_); -lean_dec(v___x_4127_); -v___x_4129_ = lean_byte_array_size(v_array_4124_); -v___x_4130_ = lean_nat_sub(v___x_4129_, v_idx_4125_); -v___x_4131_ = lean_nat_dec_lt(v___x_4128_, v___x_4130_); -lean_dec(v___x_4130_); -lean_dec(v___x_4128_); -if (v___x_4131_ == 0) +lean_object* v_maxHeaderBytes_4629_; lean_object* v_maxStartLineLength_4630_; lean_object* v_maxChunkLineLength_4631_; lean_object* v_maxBodySize_4632_; lean_object* v_array_4633_; lean_object* v_idx_4634_; lean_object* v___x_4635_; lean_object* v___x_4636_; lean_object* v___x_4637_; lean_object* v___x_4638_; lean_object* v___x_4639_; uint8_t v___x_4640_; +v_maxHeaderBytes_4629_ = lean_ctor_get(v_config_4607_, 2); +v_maxStartLineLength_4630_ = lean_ctor_get(v_config_4607_, 5); +v_maxChunkLineLength_4631_ = lean_ctor_get(v_config_4607_, 13); +v_maxBodySize_4632_ = lean_ctor_get(v_config_4607_, 15); +v_array_4633_ = lean_ctor_get(v___y_4628_, 0); +v_idx_4634_ = lean_ctor_get(v___y_4628_, 1); +v___x_4635_ = lean_nat_add(v_maxBodySize_4632_, v_maxHeaderBytes_4629_); +v___x_4636_ = lean_nat_add(v___x_4635_, v_maxStartLineLength_4630_); +lean_dec(v___x_4635_); +v___x_4637_ = lean_nat_add(v___x_4636_, v_maxChunkLineLength_4631_); +lean_dec(v___x_4636_); +v___x_4638_ = lean_byte_array_size(v_array_4633_); +v___x_4639_ = lean_nat_sub(v___x_4638_, v_idx_4634_); +v___x_4640_ = lean_nat_dec_lt(v___x_4637_, v___x_4639_); +lean_dec(v___x_4639_); +lean_dec(v___x_4637_); +if (v___x_4640_ == 0) { -lean_object* v___x_4133_; -if (v_isShared_4114_ == 0) +lean_object* v___x_4642_; +if (v_isShared_4623_ == 0) { -lean_ctor_set(v___x_4113_, 1, v___y_4119_); -v___x_4133_ = v___x_4113_; -goto v_reusejp_4132_; +lean_ctor_set(v___x_4622_, 1, v___y_4628_); +v___x_4642_ = v___x_4622_; +goto v_reusejp_4641_; } else { -lean_object* v_reuseFailAlloc_4137_; -v_reuseFailAlloc_4137_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4137_, 0, v_state_4095_); -lean_ctor_set(v_reuseFailAlloc_4137_, 1, v___y_4119_); -lean_ctor_set(v_reuseFailAlloc_4137_, 2, v_messageHead_4107_); -lean_ctor_set(v_reuseFailAlloc_4137_, 3, v_messageCount_4108_); -lean_ctor_set(v_reuseFailAlloc_4137_, 4, v_bodyBytesRead_4109_); -lean_ctor_set(v_reuseFailAlloc_4137_, 5, v_headerBytesRead_4110_); -lean_ctor_set_uint8(v_reuseFailAlloc_4137_, sizeof(void*)*6, v_noMoreInput_4111_); -v___x_4133_ = v_reuseFailAlloc_4137_; -goto v_reusejp_4132_; +lean_object* v_reuseFailAlloc_4646_; +v_reuseFailAlloc_4646_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4646_, 0, v_state_4604_); +lean_ctor_set(v_reuseFailAlloc_4646_, 1, v___y_4628_); +lean_ctor_set(v_reuseFailAlloc_4646_, 2, v_messageHead_4616_); +lean_ctor_set(v_reuseFailAlloc_4646_, 3, v_messageCount_4617_); +lean_ctor_set(v_reuseFailAlloc_4646_, 4, v_bodyBytesRead_4618_); +lean_ctor_set(v_reuseFailAlloc_4646_, 5, v_headerBytesRead_4619_); +lean_ctor_set_uint8(v_reuseFailAlloc_4646_, sizeof(void*)*6, v_noMoreInput_4620_); +v___x_4642_ = v_reuseFailAlloc_4646_; +goto v_reusejp_4641_; } -v_reusejp_4132_: +v_reusejp_4641_: { -lean_object* v_machine_4135_; -if (v_isShared_4106_ == 0) +lean_object* v_machine_4644_; +if (v_isShared_4615_ == 0) { -lean_ctor_set(v___x_4105_, 0, v___x_4133_); -v_machine_4135_ = v___x_4105_; -goto v_reusejp_4134_; +lean_ctor_set(v___x_4614_, 0, v___x_4642_); +v_machine_4644_ = v___x_4614_; +goto v_reusejp_4643_; } else { -lean_object* v_reuseFailAlloc_4136_; -v_reuseFailAlloc_4136_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4136_, 0, v___x_4133_); -lean_ctor_set(v_reuseFailAlloc_4136_, 1, v_writer_4097_); -lean_ctor_set(v_reuseFailAlloc_4136_, 2, v_config_4098_); -lean_ctor_set(v_reuseFailAlloc_4136_, 3, v_events_4099_); -lean_ctor_set(v_reuseFailAlloc_4136_, 4, v_error_4100_); -lean_ctor_set(v_reuseFailAlloc_4136_, 5, v_instant_4101_); -lean_ctor_set_uint8(v_reuseFailAlloc_4136_, sizeof(void*)*6, v_keepAlive_4102_); -lean_ctor_set_uint8(v_reuseFailAlloc_4136_, sizeof(void*)*6 + 1, v_forcedFlush_4103_); -v_machine_4135_ = v_reuseFailAlloc_4136_; -goto v_reusejp_4134_; +lean_object* v_reuseFailAlloc_4645_; +v_reuseFailAlloc_4645_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4645_, 0, v___x_4642_); +lean_ctor_set(v_reuseFailAlloc_4645_, 1, v_writer_4606_); +lean_ctor_set(v_reuseFailAlloc_4645_, 2, v_config_4607_); +lean_ctor_set(v_reuseFailAlloc_4645_, 3, v_events_4608_); +lean_ctor_set(v_reuseFailAlloc_4645_, 4, v_error_4609_); +lean_ctor_set(v_reuseFailAlloc_4645_, 5, v_instant_4610_); +lean_ctor_set_uint8(v_reuseFailAlloc_4645_, sizeof(void*)*6, v_keepAlive_4611_); +lean_ctor_set_uint8(v_reuseFailAlloc_4645_, sizeof(void*)*6 + 1, v_forcedFlush_4612_); +v_machine_4644_ = v_reuseFailAlloc_4645_; +goto v_reusejp_4643_; } -v_reusejp_4134_: +v_reusejp_4643_: { -lean_ctor_set_uint8(v_machine_4135_, sizeof(void*)*6 + 2, v___x_4117_); -return v_machine_4135_; +lean_ctor_set_uint8(v_machine_4644_, sizeof(void*)*6 + 2, v___x_4626_); +return v_machine_4644_; } } } else { -lean_object* v___x_4138_; lean_object* v___x_4139_; lean_object* v___x_4140_; lean_object* v___x_4142_; -lean_dec(v_error_4100_); -lean_dec(v_state_4095_); -v___x_4138_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_4139_ = lean_array_push(v_events_4099_, v___x_4138_); -v___x_4140_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_4114_ == 0) +lean_object* v___x_4647_; lean_object* v___x_4648_; lean_object* v___x_4649_; lean_object* v___x_4651_; +lean_dec(v_error_4609_); +lean_dec(v_state_4604_); +v___x_4647_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_4648_ = lean_array_push(v_events_4608_, v___x_4647_); +v___x_4649_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_4623_ == 0) { -lean_ctor_set(v___x_4113_, 1, v___y_4119_); -lean_ctor_set(v___x_4113_, 0, v___x_4140_); -v___x_4142_ = v___x_4113_; -goto v_reusejp_4141_; +lean_ctor_set(v___x_4622_, 1, v___y_4628_); +lean_ctor_set(v___x_4622_, 0, v___x_4649_); +v___x_4651_ = v___x_4622_; +goto v_reusejp_4650_; } else { -lean_object* v_reuseFailAlloc_4147_; -v_reuseFailAlloc_4147_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4147_, 0, v___x_4140_); -lean_ctor_set(v_reuseFailAlloc_4147_, 1, v___y_4119_); -lean_ctor_set(v_reuseFailAlloc_4147_, 2, v_messageHead_4107_); -lean_ctor_set(v_reuseFailAlloc_4147_, 3, v_messageCount_4108_); -lean_ctor_set(v_reuseFailAlloc_4147_, 4, v_bodyBytesRead_4109_); -lean_ctor_set(v_reuseFailAlloc_4147_, 5, v_headerBytesRead_4110_); -lean_ctor_set_uint8(v_reuseFailAlloc_4147_, sizeof(void*)*6, v_noMoreInput_4111_); -v___x_4142_ = v_reuseFailAlloc_4147_; -goto v_reusejp_4141_; +lean_object* v_reuseFailAlloc_4656_; +v_reuseFailAlloc_4656_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4656_, 0, v___x_4649_); +lean_ctor_set(v_reuseFailAlloc_4656_, 1, v___y_4628_); +lean_ctor_set(v_reuseFailAlloc_4656_, 2, v_messageHead_4616_); +lean_ctor_set(v_reuseFailAlloc_4656_, 3, v_messageCount_4617_); +lean_ctor_set(v_reuseFailAlloc_4656_, 4, v_bodyBytesRead_4618_); +lean_ctor_set(v_reuseFailAlloc_4656_, 5, v_headerBytesRead_4619_); +lean_ctor_set_uint8(v_reuseFailAlloc_4656_, sizeof(void*)*6, v_noMoreInput_4620_); +v___x_4651_ = v_reuseFailAlloc_4656_; +goto v_reusejp_4650_; } -v_reusejp_4141_: +v_reusejp_4650_: { -lean_object* v___x_4143_; lean_object* v___x_4145_; -v___x_4143_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_4106_ == 0) +lean_object* v___x_4652_; lean_object* v___x_4654_; +v___x_4652_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_4615_ == 0) { -lean_ctor_set(v___x_4105_, 4, v___x_4143_); -lean_ctor_set(v___x_4105_, 3, v___x_4139_); -lean_ctor_set(v___x_4105_, 0, v___x_4142_); -v___x_4145_ = v___x_4105_; -goto v_reusejp_4144_; +lean_ctor_set(v___x_4614_, 4, v___x_4652_); +lean_ctor_set(v___x_4614_, 3, v___x_4648_); +lean_ctor_set(v___x_4614_, 0, v___x_4651_); +v___x_4654_ = v___x_4614_; +goto v_reusejp_4653_; } else { -lean_object* v_reuseFailAlloc_4146_; -v_reuseFailAlloc_4146_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4146_, 0, v___x_4142_); -lean_ctor_set(v_reuseFailAlloc_4146_, 1, v_writer_4097_); -lean_ctor_set(v_reuseFailAlloc_4146_, 2, v_config_4098_); -lean_ctor_set(v_reuseFailAlloc_4146_, 3, v___x_4139_); -lean_ctor_set(v_reuseFailAlloc_4146_, 4, v___x_4143_); -lean_ctor_set(v_reuseFailAlloc_4146_, 5, v_instant_4101_); -lean_ctor_set_uint8(v_reuseFailAlloc_4146_, sizeof(void*)*6, v_keepAlive_4102_); -lean_ctor_set_uint8(v_reuseFailAlloc_4146_, sizeof(void*)*6 + 1, v_forcedFlush_4103_); -v___x_4145_ = v_reuseFailAlloc_4146_; -goto v_reusejp_4144_; +lean_object* v_reuseFailAlloc_4655_; +v_reuseFailAlloc_4655_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4655_, 0, v___x_4651_); +lean_ctor_set(v_reuseFailAlloc_4655_, 1, v_writer_4606_); +lean_ctor_set(v_reuseFailAlloc_4655_, 2, v_config_4607_); +lean_ctor_set(v_reuseFailAlloc_4655_, 3, v___x_4648_); +lean_ctor_set(v_reuseFailAlloc_4655_, 4, v___x_4652_); +lean_ctor_set(v_reuseFailAlloc_4655_, 5, v_instant_4610_); +lean_ctor_set_uint8(v_reuseFailAlloc_4655_, sizeof(void*)*6, v_keepAlive_4611_); +lean_ctor_set_uint8(v_reuseFailAlloc_4655_, sizeof(void*)*6 + 1, v_forcedFlush_4612_); +v___x_4654_ = v_reuseFailAlloc_4655_; +goto v_reusejp_4653_; } -v_reusejp_4144_: +v_reusejp_4653_: { -lean_ctor_set_uint8(v___x_4145_, sizeof(void*)*6 + 2, v___x_4117_); -return v___x_4145_; +lean_ctor_set_uint8(v___x_4654_, sizeof(void*)*6 + 2, v___x_4626_); +return v___x_4654_; } } } @@ -15044,1994 +16575,261 @@ return v___x_4145_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed(uint8_t v_dir_4162_, lean_object* v_machine_4163_, lean_object* v_data_4164_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed(uint8_t v_dir_4671_, lean_object* v_machine_4672_, lean_object* v_data_4673_){ _start: { -lean_object* v_reader_4165_; lean_object* v_state_4166_; -v_reader_4165_ = lean_ctor_get(v_machine_4163_, 0); -lean_inc_ref(v_reader_4165_); -v_state_4166_ = lean_ctor_get(v_reader_4165_, 0); -lean_inc(v_state_4166_); -if (lean_obj_tag(v_state_4166_) == 6) +lean_object* v_reader_4674_; lean_object* v_state_4675_; +v_reader_4674_ = lean_ctor_get(v_machine_4672_, 0); +lean_inc_ref(v_reader_4674_); +v_state_4675_ = lean_ctor_get(v_reader_4674_, 0); +lean_inc(v_state_4675_); +if (lean_obj_tag(v_state_4675_) == 6) { -lean_dec_ref(v_reader_4165_); -lean_dec_ref(v_data_4164_); -return v_machine_4163_; +lean_dec_ref(v_reader_4674_); +lean_dec_ref(v_data_4673_); +return v_machine_4672_; } else { -if (lean_obj_tag(v_state_4166_) == 7) +if (lean_obj_tag(v_state_4675_) == 7) { -lean_dec_ref(v_state_4166_); -lean_dec_ref(v_reader_4165_); -lean_dec_ref(v_data_4164_); -return v_machine_4163_; +lean_dec_ref(v_state_4675_); +lean_dec_ref(v_reader_4674_); +lean_dec_ref(v_data_4673_); +return v_machine_4672_; } else { -lean_object* v_input_4167_; lean_object* v_writer_4168_; lean_object* v_config_4169_; lean_object* v_events_4170_; lean_object* v_error_4171_; lean_object* v_instant_4172_; uint8_t v_keepAlive_4173_; uint8_t v_forcedFlush_4174_; lean_object* v___x_4176_; uint8_t v_isShared_4177_; uint8_t v_isSharedCheck_4231_; -v_input_4167_ = lean_ctor_get(v_reader_4165_, 1); -lean_inc_ref(v_input_4167_); -v_writer_4168_ = lean_ctor_get(v_machine_4163_, 1); -v_config_4169_ = lean_ctor_get(v_machine_4163_, 2); -v_events_4170_ = lean_ctor_get(v_machine_4163_, 3); -v_error_4171_ = lean_ctor_get(v_machine_4163_, 4); -v_instant_4172_ = lean_ctor_get(v_machine_4163_, 5); -v_keepAlive_4173_ = lean_ctor_get_uint8(v_machine_4163_, sizeof(void*)*6); -v_forcedFlush_4174_ = lean_ctor_get_uint8(v_machine_4163_, sizeof(void*)*6 + 1); -v_isSharedCheck_4231_ = !lean_is_exclusive(v_machine_4163_); -if (v_isSharedCheck_4231_ == 0) +lean_object* v_input_4676_; lean_object* v_writer_4677_; lean_object* v_config_4678_; lean_object* v_events_4679_; lean_object* v_error_4680_; lean_object* v_instant_4681_; uint8_t v_keepAlive_4682_; uint8_t v_forcedFlush_4683_; lean_object* v___x_4685_; uint8_t v_isShared_4686_; uint8_t v_isSharedCheck_4740_; +v_input_4676_ = lean_ctor_get(v_reader_4674_, 1); +lean_inc_ref(v_input_4676_); +v_writer_4677_ = lean_ctor_get(v_machine_4672_, 1); +v_config_4678_ = lean_ctor_get(v_machine_4672_, 2); +v_events_4679_ = lean_ctor_get(v_machine_4672_, 3); +v_error_4680_ = lean_ctor_get(v_machine_4672_, 4); +v_instant_4681_ = lean_ctor_get(v_machine_4672_, 5); +v_keepAlive_4682_ = lean_ctor_get_uint8(v_machine_4672_, sizeof(void*)*6); +v_forcedFlush_4683_ = lean_ctor_get_uint8(v_machine_4672_, sizeof(void*)*6 + 1); +v_isSharedCheck_4740_ = !lean_is_exclusive(v_machine_4672_); +if (v_isSharedCheck_4740_ == 0) { -lean_object* v_unused_4232_; -v_unused_4232_ = lean_ctor_get(v_machine_4163_, 0); -lean_dec(v_unused_4232_); -v___x_4176_ = v_machine_4163_; -v_isShared_4177_ = v_isSharedCheck_4231_; -goto v_resetjp_4175_; +lean_object* v_unused_4741_; +v_unused_4741_ = lean_ctor_get(v_machine_4672_, 0); +lean_dec(v_unused_4741_); +v___x_4685_ = v_machine_4672_; +v_isShared_4686_ = v_isSharedCheck_4740_; +goto v_resetjp_4684_; } else { -lean_inc(v_instant_4172_); -lean_inc(v_error_4171_); -lean_inc(v_events_4170_); -lean_inc(v_config_4169_); -lean_inc(v_writer_4168_); -lean_dec(v_machine_4163_); -v___x_4176_ = lean_box(0); -v_isShared_4177_ = v_isSharedCheck_4231_; -goto v_resetjp_4175_; +lean_inc(v_instant_4681_); +lean_inc(v_error_4680_); +lean_inc(v_events_4679_); +lean_inc(v_config_4678_); +lean_inc(v_writer_4677_); +lean_dec(v_machine_4672_); +v___x_4685_ = lean_box(0); +v_isShared_4686_ = v_isSharedCheck_4740_; +goto v_resetjp_4684_; } -v_resetjp_4175_: +v_resetjp_4684_: { -lean_object* v_messageHead_4178_; lean_object* v_messageCount_4179_; lean_object* v_bodyBytesRead_4180_; lean_object* v_headerBytesRead_4181_; uint8_t v_noMoreInput_4182_; lean_object* v___x_4184_; uint8_t v_isShared_4185_; uint8_t v_isSharedCheck_4228_; -v_messageHead_4178_ = lean_ctor_get(v_reader_4165_, 2); -v_messageCount_4179_ = lean_ctor_get(v_reader_4165_, 3); -v_bodyBytesRead_4180_ = lean_ctor_get(v_reader_4165_, 4); -v_headerBytesRead_4181_ = lean_ctor_get(v_reader_4165_, 5); -v_noMoreInput_4182_ = lean_ctor_get_uint8(v_reader_4165_, sizeof(void*)*6); -v_isSharedCheck_4228_ = !lean_is_exclusive(v_reader_4165_); -if (v_isSharedCheck_4228_ == 0) +lean_object* v_messageHead_4687_; lean_object* v_messageCount_4688_; lean_object* v_bodyBytesRead_4689_; lean_object* v_headerBytesRead_4690_; uint8_t v_noMoreInput_4691_; lean_object* v___x_4693_; uint8_t v_isShared_4694_; uint8_t v_isSharedCheck_4737_; +v_messageHead_4687_ = lean_ctor_get(v_reader_4674_, 2); +v_messageCount_4688_ = lean_ctor_get(v_reader_4674_, 3); +v_bodyBytesRead_4689_ = lean_ctor_get(v_reader_4674_, 4); +v_headerBytesRead_4690_ = lean_ctor_get(v_reader_4674_, 5); +v_noMoreInput_4691_ = lean_ctor_get_uint8(v_reader_4674_, sizeof(void*)*6); +v_isSharedCheck_4737_ = !lean_is_exclusive(v_reader_4674_); +if (v_isSharedCheck_4737_ == 0) { -lean_object* v_unused_4229_; lean_object* v_unused_4230_; -v_unused_4229_ = lean_ctor_get(v_reader_4165_, 1); -lean_dec(v_unused_4229_); -v_unused_4230_ = lean_ctor_get(v_reader_4165_, 0); -lean_dec(v_unused_4230_); -v___x_4184_ = v_reader_4165_; -v_isShared_4185_ = v_isSharedCheck_4228_; -goto v_resetjp_4183_; +lean_object* v_unused_4738_; lean_object* v_unused_4739_; +v_unused_4738_ = lean_ctor_get(v_reader_4674_, 1); +lean_dec(v_unused_4738_); +v_unused_4739_ = lean_ctor_get(v_reader_4674_, 0); +lean_dec(v_unused_4739_); +v___x_4693_ = v_reader_4674_; +v_isShared_4694_ = v_isSharedCheck_4737_; +goto v_resetjp_4692_; } else { -lean_inc(v_headerBytesRead_4181_); -lean_inc(v_bodyBytesRead_4180_); -lean_inc(v_messageCount_4179_); -lean_inc(v_messageHead_4178_); -lean_dec(v_reader_4165_); -v___x_4184_ = lean_box(0); -v_isShared_4185_ = v_isSharedCheck_4228_; -goto v_resetjp_4183_; +lean_inc(v_headerBytesRead_4690_); +lean_inc(v_bodyBytesRead_4689_); +lean_inc(v_messageCount_4688_); +lean_inc(v_messageHead_4687_); +lean_dec(v_reader_4674_); +v___x_4693_ = lean_box(0); +v_isShared_4694_ = v_isSharedCheck_4737_; +goto v_resetjp_4692_; } -v_resetjp_4183_: +v_resetjp_4692_: { -lean_object* v_array_4186_; lean_object* v_idx_4187_; uint8_t v___x_4188_; lean_object* v___y_4190_; lean_object* v___x_4219_; uint8_t v___x_4220_; -v_array_4186_ = lean_ctor_get(v_input_4167_, 0); -lean_inc_ref(v_array_4186_); -v_idx_4187_ = lean_ctor_get(v_input_4167_, 1); -lean_inc(v_idx_4187_); -lean_dec_ref(v_input_4167_); -v___x_4188_ = 0; -v___x_4219_ = lean_byte_array_size(v_array_4186_); -v___x_4220_ = lean_nat_dec_le(v___x_4219_, v_idx_4187_); -if (v___x_4220_ == 0) +lean_object* v_array_4695_; lean_object* v_idx_4696_; uint8_t v___x_4697_; lean_object* v___y_4699_; lean_object* v___x_4728_; uint8_t v___x_4729_; +v_array_4695_ = lean_ctor_get(v_input_4676_, 0); +lean_inc_ref(v_array_4695_); +v_idx_4696_ = lean_ctor_get(v_input_4676_, 1); +lean_inc(v_idx_4696_); +lean_dec_ref(v_input_4676_); +v___x_4697_ = 0; +v___x_4728_ = lean_byte_array_size(v_array_4695_); +v___x_4729_ = lean_nat_dec_le(v___x_4728_, v_idx_4696_); +if (v___x_4729_ == 0) { -lean_object* v___x_4221_; lean_object* v___x_4222_; lean_object* v___x_4223_; lean_object* v___x_4224_; lean_object* v___x_4225_; lean_object* v___x_4226_; -v___x_4221_ = l_ByteArray_extract(v_array_4186_, v_idx_4187_, v___x_4219_); -lean_dec_ref(v_array_4186_); -v___x_4222_ = lean_unsigned_to_nat(0u); -v___x_4223_ = lean_byte_array_size(v___x_4221_); -v___x_4224_ = lean_byte_array_size(v_data_4164_); -v___x_4225_ = lean_byte_array_copy_slice(v_data_4164_, v___x_4222_, v___x_4221_, v___x_4223_, v___x_4224_, v___x_4220_); -lean_dec_ref(v_data_4164_); -v___x_4226_ = l_ByteArray_mkIterator(v___x_4225_); -v___y_4190_ = v___x_4226_; -goto v___jp_4189_; +lean_object* v___x_4730_; lean_object* v___x_4731_; lean_object* v___x_4732_; lean_object* v___x_4733_; lean_object* v___x_4734_; lean_object* v___x_4735_; +v___x_4730_ = l_ByteArray_extract(v_array_4695_, v_idx_4696_, v___x_4728_); +lean_dec_ref(v_array_4695_); +v___x_4731_ = lean_unsigned_to_nat(0u); +v___x_4732_ = lean_byte_array_size(v___x_4730_); +v___x_4733_ = lean_byte_array_size(v_data_4673_); +v___x_4734_ = lean_byte_array_copy_slice(v_data_4673_, v___x_4731_, v___x_4730_, v___x_4732_, v___x_4733_, v___x_4729_); +lean_dec_ref(v_data_4673_); +v___x_4735_ = l_ByteArray_mkIterator(v___x_4734_); +v___y_4699_ = v___x_4735_; +goto v___jp_4698_; } else { -lean_object* v___x_4227_; -lean_dec(v_idx_4187_); -lean_dec_ref(v_array_4186_); -v___x_4227_ = l_ByteArray_mkIterator(v_data_4164_); -v___y_4190_ = v___x_4227_; -goto v___jp_4189_; -} -v___jp_4189_: -{ -lean_object* v_maxHeaderBytes_4191_; lean_object* v_maxStartLineLength_4192_; lean_object* v_maxChunkLineLength_4193_; lean_object* v_maxBodySize_4194_; lean_object* v_array_4195_; lean_object* v_idx_4196_; lean_object* v___x_4197_; lean_object* v___x_4198_; lean_object* v___x_4199_; lean_object* v___x_4200_; lean_object* v___x_4201_; uint8_t v___x_4202_; -v_maxHeaderBytes_4191_ = lean_ctor_get(v_config_4169_, 2); -v_maxStartLineLength_4192_ = lean_ctor_get(v_config_4169_, 5); -v_maxChunkLineLength_4193_ = lean_ctor_get(v_config_4169_, 13); -v_maxBodySize_4194_ = lean_ctor_get(v_config_4169_, 15); -v_array_4195_ = lean_ctor_get(v___y_4190_, 0); -v_idx_4196_ = lean_ctor_get(v___y_4190_, 1); -v___x_4197_ = lean_nat_add(v_maxBodySize_4194_, v_maxHeaderBytes_4191_); -v___x_4198_ = lean_nat_add(v___x_4197_, v_maxStartLineLength_4192_); -lean_dec(v___x_4197_); -v___x_4199_ = lean_nat_add(v___x_4198_, v_maxChunkLineLength_4193_); -lean_dec(v___x_4198_); -v___x_4200_ = lean_byte_array_size(v_array_4195_); -v___x_4201_ = lean_nat_sub(v___x_4200_, v_idx_4196_); -v___x_4202_ = lean_nat_dec_lt(v___x_4199_, v___x_4201_); -lean_dec(v___x_4201_); -lean_dec(v___x_4199_); -if (v___x_4202_ == 0) -{ -lean_object* v___x_4204_; -if (v_isShared_4185_ == 0) -{ -lean_ctor_set(v___x_4184_, 1, v___y_4190_); -v___x_4204_ = v___x_4184_; -goto v_reusejp_4203_; -} -else -{ -lean_object* v_reuseFailAlloc_4208_; -v_reuseFailAlloc_4208_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4208_, 0, v_state_4166_); -lean_ctor_set(v_reuseFailAlloc_4208_, 1, v___y_4190_); -lean_ctor_set(v_reuseFailAlloc_4208_, 2, v_messageHead_4178_); -lean_ctor_set(v_reuseFailAlloc_4208_, 3, v_messageCount_4179_); -lean_ctor_set(v_reuseFailAlloc_4208_, 4, v_bodyBytesRead_4180_); -lean_ctor_set(v_reuseFailAlloc_4208_, 5, v_headerBytesRead_4181_); -lean_ctor_set_uint8(v_reuseFailAlloc_4208_, sizeof(void*)*6, v_noMoreInput_4182_); -v___x_4204_ = v_reuseFailAlloc_4208_; -goto v_reusejp_4203_; -} -v_reusejp_4203_: -{ -lean_object* v_machine_4206_; -if (v_isShared_4177_ == 0) -{ -lean_ctor_set(v___x_4176_, 0, v___x_4204_); -v_machine_4206_ = v___x_4176_; -goto v_reusejp_4205_; -} -else -{ -lean_object* v_reuseFailAlloc_4207_; -v_reuseFailAlloc_4207_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4207_, 0, v___x_4204_); -lean_ctor_set(v_reuseFailAlloc_4207_, 1, v_writer_4168_); -lean_ctor_set(v_reuseFailAlloc_4207_, 2, v_config_4169_); -lean_ctor_set(v_reuseFailAlloc_4207_, 3, v_events_4170_); -lean_ctor_set(v_reuseFailAlloc_4207_, 4, v_error_4171_); -lean_ctor_set(v_reuseFailAlloc_4207_, 5, v_instant_4172_); -lean_ctor_set_uint8(v_reuseFailAlloc_4207_, sizeof(void*)*6, v_keepAlive_4173_); -lean_ctor_set_uint8(v_reuseFailAlloc_4207_, sizeof(void*)*6 + 1, v_forcedFlush_4174_); -v_machine_4206_ = v_reuseFailAlloc_4207_; -goto v_reusejp_4205_; -} -v_reusejp_4205_: -{ -lean_ctor_set_uint8(v_machine_4206_, sizeof(void*)*6 + 2, v___x_4188_); -return v_machine_4206_; -} -} -} -else -{ -lean_object* v___x_4209_; lean_object* v___x_4210_; lean_object* v___x_4211_; lean_object* v___x_4213_; -lean_dec(v_error_4171_); -lean_dec(v_state_4166_); -v___x_4209_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_4210_ = lean_array_push(v_events_4170_, v___x_4209_); -v___x_4211_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_4185_ == 0) -{ -lean_ctor_set(v___x_4184_, 1, v___y_4190_); -lean_ctor_set(v___x_4184_, 0, v___x_4211_); -v___x_4213_ = v___x_4184_; -goto v_reusejp_4212_; -} -else -{ -lean_object* v_reuseFailAlloc_4218_; -v_reuseFailAlloc_4218_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4218_, 0, v___x_4211_); -lean_ctor_set(v_reuseFailAlloc_4218_, 1, v___y_4190_); -lean_ctor_set(v_reuseFailAlloc_4218_, 2, v_messageHead_4178_); -lean_ctor_set(v_reuseFailAlloc_4218_, 3, v_messageCount_4179_); -lean_ctor_set(v_reuseFailAlloc_4218_, 4, v_bodyBytesRead_4180_); -lean_ctor_set(v_reuseFailAlloc_4218_, 5, v_headerBytesRead_4181_); -lean_ctor_set_uint8(v_reuseFailAlloc_4218_, sizeof(void*)*6, v_noMoreInput_4182_); -v___x_4213_ = v_reuseFailAlloc_4218_; -goto v_reusejp_4212_; -} -v_reusejp_4212_: -{ -lean_object* v___x_4214_; lean_object* v___x_4216_; -v___x_4214_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_4177_ == 0) -{ -lean_ctor_set(v___x_4176_, 4, v___x_4214_); -lean_ctor_set(v___x_4176_, 3, v___x_4210_); -lean_ctor_set(v___x_4176_, 0, v___x_4213_); -v___x_4216_ = v___x_4176_; -goto v_reusejp_4215_; -} -else -{ -lean_object* v_reuseFailAlloc_4217_; -v_reuseFailAlloc_4217_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4217_, 0, v___x_4213_); -lean_ctor_set(v_reuseFailAlloc_4217_, 1, v_writer_4168_); -lean_ctor_set(v_reuseFailAlloc_4217_, 2, v_config_4169_); -lean_ctor_set(v_reuseFailAlloc_4217_, 3, v___x_4210_); -lean_ctor_set(v_reuseFailAlloc_4217_, 4, v___x_4214_); -lean_ctor_set(v_reuseFailAlloc_4217_, 5, v_instant_4172_); -lean_ctor_set_uint8(v_reuseFailAlloc_4217_, sizeof(void*)*6, v_keepAlive_4173_); -lean_ctor_set_uint8(v_reuseFailAlloc_4217_, sizeof(void*)*6 + 1, v_forcedFlush_4174_); -v___x_4216_ = v_reuseFailAlloc_4217_; -goto v_reusejp_4215_; -} -v_reusejp_4215_: -{ -lean_ctor_set_uint8(v___x_4216_, sizeof(void*)*6 + 2, v___x_4188_); -return v___x_4216_; -} -} -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___boxed(lean_object* v_dir_4233_, lean_object* v_machine_4234_, lean_object* v_data_4235_){ -_start: -{ -uint8_t v_dir_boxed_4236_; lean_object* v_res_4237_; -v_dir_boxed_4236_ = lean_unbox(v_dir_4233_); -v_res_4237_ = l_Std_Http_Protocol_H1_Machine_feed(v_dir_boxed_4236_, v_machine_4234_, v_data_4235_); -return v_res_4237_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader___redArg(lean_object* v_machine_4238_){ -_start: -{ -lean_object* v_reader_4239_; lean_object* v_writer_4240_; lean_object* v_config_4241_; lean_object* v_events_4242_; lean_object* v_error_4243_; lean_object* v_instant_4244_; uint8_t v_keepAlive_4245_; uint8_t v_forcedFlush_4246_; uint8_t v_pullBodyStalled_4247_; lean_object* v___x_4249_; uint8_t v_isShared_4250_; uint8_t v_isSharedCheck_4268_; -v_reader_4239_ = lean_ctor_get(v_machine_4238_, 0); -v_writer_4240_ = lean_ctor_get(v_machine_4238_, 1); -v_config_4241_ = lean_ctor_get(v_machine_4238_, 2); -v_events_4242_ = lean_ctor_get(v_machine_4238_, 3); -v_error_4243_ = lean_ctor_get(v_machine_4238_, 4); -v_instant_4244_ = lean_ctor_get(v_machine_4238_, 5); -v_keepAlive_4245_ = lean_ctor_get_uint8(v_machine_4238_, sizeof(void*)*6); -v_forcedFlush_4246_ = lean_ctor_get_uint8(v_machine_4238_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4247_ = lean_ctor_get_uint8(v_machine_4238_, sizeof(void*)*6 + 2); -v_isSharedCheck_4268_ = !lean_is_exclusive(v_machine_4238_); -if (v_isSharedCheck_4268_ == 0) -{ -v___x_4249_ = v_machine_4238_; -v_isShared_4250_ = v_isSharedCheck_4268_; -goto v_resetjp_4248_; -} -else -{ -lean_inc(v_instant_4244_); -lean_inc(v_error_4243_); -lean_inc(v_events_4242_); -lean_inc(v_config_4241_); -lean_inc(v_writer_4240_); -lean_inc(v_reader_4239_); -lean_dec(v_machine_4238_); -v___x_4249_ = lean_box(0); -v_isShared_4250_ = v_isSharedCheck_4268_; -goto v_resetjp_4248_; -} -v_resetjp_4248_: -{ -lean_object* v_state_4251_; lean_object* v_input_4252_; lean_object* v_messageHead_4253_; lean_object* v_messageCount_4254_; lean_object* v_bodyBytesRead_4255_; lean_object* v_headerBytesRead_4256_; lean_object* v___x_4258_; uint8_t v_isShared_4259_; uint8_t v_isSharedCheck_4267_; -v_state_4251_ = lean_ctor_get(v_reader_4239_, 0); -v_input_4252_ = lean_ctor_get(v_reader_4239_, 1); -v_messageHead_4253_ = lean_ctor_get(v_reader_4239_, 2); -v_messageCount_4254_ = lean_ctor_get(v_reader_4239_, 3); -v_bodyBytesRead_4255_ = lean_ctor_get(v_reader_4239_, 4); -v_headerBytesRead_4256_ = lean_ctor_get(v_reader_4239_, 5); -v_isSharedCheck_4267_ = !lean_is_exclusive(v_reader_4239_); -if (v_isSharedCheck_4267_ == 0) -{ -v___x_4258_ = v_reader_4239_; -v_isShared_4259_ = v_isSharedCheck_4267_; -goto v_resetjp_4257_; -} -else -{ -lean_inc(v_headerBytesRead_4256_); -lean_inc(v_bodyBytesRead_4255_); -lean_inc(v_messageCount_4254_); -lean_inc(v_messageHead_4253_); -lean_inc(v_input_4252_); -lean_inc(v_state_4251_); -lean_dec(v_reader_4239_); -v___x_4258_ = lean_box(0); -v_isShared_4259_ = v_isSharedCheck_4267_; -goto v_resetjp_4257_; -} -v_resetjp_4257_: -{ -uint8_t v___x_4260_; lean_object* v___x_4262_; -v___x_4260_ = 1; -if (v_isShared_4259_ == 0) -{ -v___x_4262_ = v___x_4258_; -goto v_reusejp_4261_; -} -else -{ -lean_object* v_reuseFailAlloc_4266_; -v_reuseFailAlloc_4266_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4266_, 0, v_state_4251_); -lean_ctor_set(v_reuseFailAlloc_4266_, 1, v_input_4252_); -lean_ctor_set(v_reuseFailAlloc_4266_, 2, v_messageHead_4253_); -lean_ctor_set(v_reuseFailAlloc_4266_, 3, v_messageCount_4254_); -lean_ctor_set(v_reuseFailAlloc_4266_, 4, v_bodyBytesRead_4255_); -lean_ctor_set(v_reuseFailAlloc_4266_, 5, v_headerBytesRead_4256_); -v___x_4262_ = v_reuseFailAlloc_4266_; -goto v_reusejp_4261_; -} -v_reusejp_4261_: -{ -lean_object* v___x_4264_; -lean_ctor_set_uint8(v___x_4262_, sizeof(void*)*6, v___x_4260_); -if (v_isShared_4250_ == 0) -{ -lean_ctor_set(v___x_4249_, 0, v___x_4262_); -v___x_4264_ = v___x_4249_; -goto v_reusejp_4263_; -} -else -{ -lean_object* v_reuseFailAlloc_4265_; -v_reuseFailAlloc_4265_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4265_, 0, v___x_4262_); -lean_ctor_set(v_reuseFailAlloc_4265_, 1, v_writer_4240_); -lean_ctor_set(v_reuseFailAlloc_4265_, 2, v_config_4241_); -lean_ctor_set(v_reuseFailAlloc_4265_, 3, v_events_4242_); -lean_ctor_set(v_reuseFailAlloc_4265_, 4, v_error_4243_); -lean_ctor_set(v_reuseFailAlloc_4265_, 5, v_instant_4244_); -lean_ctor_set_uint8(v_reuseFailAlloc_4265_, sizeof(void*)*6, v_keepAlive_4245_); -lean_ctor_set_uint8(v_reuseFailAlloc_4265_, sizeof(void*)*6 + 1, v_forcedFlush_4246_); -lean_ctor_set_uint8(v_reuseFailAlloc_4265_, sizeof(void*)*6 + 2, v_pullBodyStalled_4247_); -v___x_4264_ = v_reuseFailAlloc_4265_; -goto v_reusejp_4263_; -} -v_reusejp_4263_: -{ -return v___x_4264_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader(uint8_t v_dir_4269_, lean_object* v_machine_4270_){ -_start: -{ -lean_object* v_reader_4271_; lean_object* v_writer_4272_; lean_object* v_config_4273_; lean_object* v_events_4274_; lean_object* v_error_4275_; lean_object* v_instant_4276_; uint8_t v_keepAlive_4277_; uint8_t v_forcedFlush_4278_; uint8_t v_pullBodyStalled_4279_; lean_object* v___x_4281_; uint8_t v_isShared_4282_; uint8_t v_isSharedCheck_4300_; -v_reader_4271_ = lean_ctor_get(v_machine_4270_, 0); -v_writer_4272_ = lean_ctor_get(v_machine_4270_, 1); -v_config_4273_ = lean_ctor_get(v_machine_4270_, 2); -v_events_4274_ = lean_ctor_get(v_machine_4270_, 3); -v_error_4275_ = lean_ctor_get(v_machine_4270_, 4); -v_instant_4276_ = lean_ctor_get(v_machine_4270_, 5); -v_keepAlive_4277_ = lean_ctor_get_uint8(v_machine_4270_, sizeof(void*)*6); -v_forcedFlush_4278_ = lean_ctor_get_uint8(v_machine_4270_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4279_ = lean_ctor_get_uint8(v_machine_4270_, sizeof(void*)*6 + 2); -v_isSharedCheck_4300_ = !lean_is_exclusive(v_machine_4270_); -if (v_isSharedCheck_4300_ == 0) -{ -v___x_4281_ = v_machine_4270_; -v_isShared_4282_ = v_isSharedCheck_4300_; -goto v_resetjp_4280_; -} -else -{ -lean_inc(v_instant_4276_); -lean_inc(v_error_4275_); -lean_inc(v_events_4274_); -lean_inc(v_config_4273_); -lean_inc(v_writer_4272_); -lean_inc(v_reader_4271_); -lean_dec(v_machine_4270_); -v___x_4281_ = lean_box(0); -v_isShared_4282_ = v_isSharedCheck_4300_; -goto v_resetjp_4280_; -} -v_resetjp_4280_: -{ -lean_object* v_state_4283_; lean_object* v_input_4284_; lean_object* v_messageHead_4285_; lean_object* v_messageCount_4286_; lean_object* v_bodyBytesRead_4287_; lean_object* v_headerBytesRead_4288_; lean_object* v___x_4290_; uint8_t v_isShared_4291_; uint8_t v_isSharedCheck_4299_; -v_state_4283_ = lean_ctor_get(v_reader_4271_, 0); -v_input_4284_ = lean_ctor_get(v_reader_4271_, 1); -v_messageHead_4285_ = lean_ctor_get(v_reader_4271_, 2); -v_messageCount_4286_ = lean_ctor_get(v_reader_4271_, 3); -v_bodyBytesRead_4287_ = lean_ctor_get(v_reader_4271_, 4); -v_headerBytesRead_4288_ = lean_ctor_get(v_reader_4271_, 5); -v_isSharedCheck_4299_ = !lean_is_exclusive(v_reader_4271_); -if (v_isSharedCheck_4299_ == 0) -{ -v___x_4290_ = v_reader_4271_; -v_isShared_4291_ = v_isSharedCheck_4299_; -goto v_resetjp_4289_; -} -else -{ -lean_inc(v_headerBytesRead_4288_); -lean_inc(v_bodyBytesRead_4287_); -lean_inc(v_messageCount_4286_); -lean_inc(v_messageHead_4285_); -lean_inc(v_input_4284_); -lean_inc(v_state_4283_); -lean_dec(v_reader_4271_); -v___x_4290_ = lean_box(0); -v_isShared_4291_ = v_isSharedCheck_4299_; -goto v_resetjp_4289_; -} -v_resetjp_4289_: -{ -uint8_t v___x_4292_; lean_object* v___x_4294_; -v___x_4292_ = 1; -if (v_isShared_4291_ == 0) -{ -v___x_4294_ = v___x_4290_; -goto v_reusejp_4293_; -} -else -{ -lean_object* v_reuseFailAlloc_4298_; -v_reuseFailAlloc_4298_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4298_, 0, v_state_4283_); -lean_ctor_set(v_reuseFailAlloc_4298_, 1, v_input_4284_); -lean_ctor_set(v_reuseFailAlloc_4298_, 2, v_messageHead_4285_); -lean_ctor_set(v_reuseFailAlloc_4298_, 3, v_messageCount_4286_); -lean_ctor_set(v_reuseFailAlloc_4298_, 4, v_bodyBytesRead_4287_); -lean_ctor_set(v_reuseFailAlloc_4298_, 5, v_headerBytesRead_4288_); -v___x_4294_ = v_reuseFailAlloc_4298_; -goto v_reusejp_4293_; -} -v_reusejp_4293_: -{ -lean_object* v___x_4296_; -lean_ctor_set_uint8(v___x_4294_, sizeof(void*)*6, v___x_4292_); -if (v_isShared_4282_ == 0) -{ -lean_ctor_set(v___x_4281_, 0, v___x_4294_); -v___x_4296_ = v___x_4281_; -goto v_reusejp_4295_; -} -else -{ -lean_object* v_reuseFailAlloc_4297_; -v_reuseFailAlloc_4297_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4297_, 0, v___x_4294_); -lean_ctor_set(v_reuseFailAlloc_4297_, 1, v_writer_4272_); -lean_ctor_set(v_reuseFailAlloc_4297_, 2, v_config_4273_); -lean_ctor_set(v_reuseFailAlloc_4297_, 3, v_events_4274_); -lean_ctor_set(v_reuseFailAlloc_4297_, 4, v_error_4275_); -lean_ctor_set(v_reuseFailAlloc_4297_, 5, v_instant_4276_); -lean_ctor_set_uint8(v_reuseFailAlloc_4297_, sizeof(void*)*6, v_keepAlive_4277_); -lean_ctor_set_uint8(v_reuseFailAlloc_4297_, sizeof(void*)*6 + 1, v_forcedFlush_4278_); -lean_ctor_set_uint8(v_reuseFailAlloc_4297_, sizeof(void*)*6 + 2, v_pullBodyStalled_4279_); -v___x_4296_ = v_reuseFailAlloc_4297_; -goto v_reusejp_4295_; -} -v_reusejp_4295_: -{ -return v___x_4296_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader___boxed(lean_object* v_dir_4301_, lean_object* v_machine_4302_){ -_start: -{ -uint8_t v_dir_boxed_4303_; lean_object* v_res_4304_; -v_dir_boxed_4303_ = lean_unbox(v_dir_4301_); -v_res_4304_ = l_Std_Http_Protocol_H1_Machine_closeReader(v_dir_boxed_4303_, v_machine_4302_); -return v_res_4304_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter___redArg(lean_object* v_machine_4305_){ -_start: -{ -lean_object* v_writer_4306_; lean_object* v_reader_4307_; lean_object* v_config_4308_; lean_object* v_events_4309_; lean_object* v_error_4310_; lean_object* v_instant_4311_; uint8_t v_keepAlive_4312_; uint8_t v_forcedFlush_4313_; uint8_t v_pullBodyStalled_4314_; lean_object* v___x_4316_; uint8_t v_isShared_4317_; uint8_t v_isSharedCheck_4338_; -v_writer_4306_ = lean_ctor_get(v_machine_4305_, 1); -v_reader_4307_ = lean_ctor_get(v_machine_4305_, 0); -v_config_4308_ = lean_ctor_get(v_machine_4305_, 2); -v_events_4309_ = lean_ctor_get(v_machine_4305_, 3); -v_error_4310_ = lean_ctor_get(v_machine_4305_, 4); -v_instant_4311_ = lean_ctor_get(v_machine_4305_, 5); -v_keepAlive_4312_ = lean_ctor_get_uint8(v_machine_4305_, sizeof(void*)*6); -v_forcedFlush_4313_ = lean_ctor_get_uint8(v_machine_4305_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4314_ = lean_ctor_get_uint8(v_machine_4305_, sizeof(void*)*6 + 2); -v_isSharedCheck_4338_ = !lean_is_exclusive(v_machine_4305_); -if (v_isSharedCheck_4338_ == 0) -{ -v___x_4316_ = v_machine_4305_; -v_isShared_4317_ = v_isSharedCheck_4338_; -goto v_resetjp_4315_; -} -else -{ -lean_inc(v_instant_4311_); -lean_inc(v_error_4310_); -lean_inc(v_events_4309_); -lean_inc(v_config_4308_); -lean_inc(v_writer_4306_); -lean_inc(v_reader_4307_); -lean_dec(v_machine_4305_); -v___x_4316_ = lean_box(0); -v_isShared_4317_ = v_isSharedCheck_4338_; -goto v_resetjp_4315_; -} -v_resetjp_4315_: -{ -lean_object* v_userData_4318_; lean_object* v_outputData_4319_; lean_object* v_knownSize_4320_; lean_object* v_messageHead_4321_; uint8_t v_sentMessage_4322_; uint8_t v_omitBody_4323_; lean_object* v_userDataBytes_4324_; lean_object* v___x_4326_; uint8_t v_isShared_4327_; uint8_t v_isSharedCheck_4336_; -v_userData_4318_ = lean_ctor_get(v_writer_4306_, 0); -v_outputData_4319_ = lean_ctor_get(v_writer_4306_, 1); -v_knownSize_4320_ = lean_ctor_get(v_writer_4306_, 3); -v_messageHead_4321_ = lean_ctor_get(v_writer_4306_, 4); -v_sentMessage_4322_ = lean_ctor_get_uint8(v_writer_4306_, sizeof(void*)*6); -v_omitBody_4323_ = lean_ctor_get_uint8(v_writer_4306_, sizeof(void*)*6 + 2); -v_userDataBytes_4324_ = lean_ctor_get(v_writer_4306_, 5); -v_isSharedCheck_4336_ = !lean_is_exclusive(v_writer_4306_); -if (v_isSharedCheck_4336_ == 0) -{ -lean_object* v_unused_4337_; -v_unused_4337_ = lean_ctor_get(v_writer_4306_, 2); -lean_dec(v_unused_4337_); -v___x_4326_ = v_writer_4306_; -v_isShared_4327_ = v_isSharedCheck_4336_; -goto v_resetjp_4325_; -} -else -{ -lean_inc(v_userDataBytes_4324_); -lean_inc(v_messageHead_4321_); -lean_inc(v_knownSize_4320_); -lean_inc(v_outputData_4319_); -lean_inc(v_userData_4318_); -lean_dec(v_writer_4306_); -v___x_4326_ = lean_box(0); -v_isShared_4327_ = v_isSharedCheck_4336_; -goto v_resetjp_4325_; -} -v_resetjp_4325_: -{ -lean_object* v___x_4328_; uint8_t v___x_4329_; lean_object* v___x_4331_; -v___x_4328_ = lean_box(5); -v___x_4329_ = 1; -if (v_isShared_4327_ == 0) -{ -lean_ctor_set(v___x_4326_, 2, v___x_4328_); -v___x_4331_ = v___x_4326_; -goto v_reusejp_4330_; -} -else -{ -lean_object* v_reuseFailAlloc_4335_; -v_reuseFailAlloc_4335_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4335_, 0, v_userData_4318_); -lean_ctor_set(v_reuseFailAlloc_4335_, 1, v_outputData_4319_); -lean_ctor_set(v_reuseFailAlloc_4335_, 2, v___x_4328_); -lean_ctor_set(v_reuseFailAlloc_4335_, 3, v_knownSize_4320_); -lean_ctor_set(v_reuseFailAlloc_4335_, 4, v_messageHead_4321_); -lean_ctor_set(v_reuseFailAlloc_4335_, 5, v_userDataBytes_4324_); -lean_ctor_set_uint8(v_reuseFailAlloc_4335_, sizeof(void*)*6, v_sentMessage_4322_); -lean_ctor_set_uint8(v_reuseFailAlloc_4335_, sizeof(void*)*6 + 2, v_omitBody_4323_); -v___x_4331_ = v_reuseFailAlloc_4335_; -goto v_reusejp_4330_; -} -v_reusejp_4330_: -{ -lean_object* v___x_4333_; -lean_ctor_set_uint8(v___x_4331_, sizeof(void*)*6 + 1, v___x_4329_); -if (v_isShared_4317_ == 0) -{ -lean_ctor_set(v___x_4316_, 1, v___x_4331_); -v___x_4333_ = v___x_4316_; -goto v_reusejp_4332_; -} -else -{ -lean_object* v_reuseFailAlloc_4334_; -v_reuseFailAlloc_4334_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4334_, 0, v_reader_4307_); -lean_ctor_set(v_reuseFailAlloc_4334_, 1, v___x_4331_); -lean_ctor_set(v_reuseFailAlloc_4334_, 2, v_config_4308_); -lean_ctor_set(v_reuseFailAlloc_4334_, 3, v_events_4309_); -lean_ctor_set(v_reuseFailAlloc_4334_, 4, v_error_4310_); -lean_ctor_set(v_reuseFailAlloc_4334_, 5, v_instant_4311_); -lean_ctor_set_uint8(v_reuseFailAlloc_4334_, sizeof(void*)*6, v_keepAlive_4312_); -lean_ctor_set_uint8(v_reuseFailAlloc_4334_, sizeof(void*)*6 + 1, v_forcedFlush_4313_); -lean_ctor_set_uint8(v_reuseFailAlloc_4334_, sizeof(void*)*6 + 2, v_pullBodyStalled_4314_); -v___x_4333_ = v_reuseFailAlloc_4334_; -goto v_reusejp_4332_; -} -v_reusejp_4332_: -{ -return v___x_4333_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter(uint8_t v_dir_4339_, lean_object* v_machine_4340_){ -_start: -{ -lean_object* v_writer_4341_; lean_object* v_reader_4342_; lean_object* v_config_4343_; lean_object* v_events_4344_; lean_object* v_error_4345_; lean_object* v_instant_4346_; uint8_t v_keepAlive_4347_; uint8_t v_forcedFlush_4348_; uint8_t v_pullBodyStalled_4349_; lean_object* v___x_4351_; uint8_t v_isShared_4352_; uint8_t v_isSharedCheck_4373_; -v_writer_4341_ = lean_ctor_get(v_machine_4340_, 1); -v_reader_4342_ = lean_ctor_get(v_machine_4340_, 0); -v_config_4343_ = lean_ctor_get(v_machine_4340_, 2); -v_events_4344_ = lean_ctor_get(v_machine_4340_, 3); -v_error_4345_ = lean_ctor_get(v_machine_4340_, 4); -v_instant_4346_ = lean_ctor_get(v_machine_4340_, 5); -v_keepAlive_4347_ = lean_ctor_get_uint8(v_machine_4340_, sizeof(void*)*6); -v_forcedFlush_4348_ = lean_ctor_get_uint8(v_machine_4340_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4349_ = lean_ctor_get_uint8(v_machine_4340_, sizeof(void*)*6 + 2); -v_isSharedCheck_4373_ = !lean_is_exclusive(v_machine_4340_); -if (v_isSharedCheck_4373_ == 0) -{ -v___x_4351_ = v_machine_4340_; -v_isShared_4352_ = v_isSharedCheck_4373_; -goto v_resetjp_4350_; -} -else -{ -lean_inc(v_instant_4346_); -lean_inc(v_error_4345_); -lean_inc(v_events_4344_); -lean_inc(v_config_4343_); -lean_inc(v_writer_4341_); -lean_inc(v_reader_4342_); -lean_dec(v_machine_4340_); -v___x_4351_ = lean_box(0); -v_isShared_4352_ = v_isSharedCheck_4373_; -goto v_resetjp_4350_; -} -v_resetjp_4350_: -{ -lean_object* v_userData_4353_; lean_object* v_outputData_4354_; lean_object* v_knownSize_4355_; lean_object* v_messageHead_4356_; uint8_t v_sentMessage_4357_; uint8_t v_omitBody_4358_; lean_object* v_userDataBytes_4359_; lean_object* v___x_4361_; uint8_t v_isShared_4362_; uint8_t v_isSharedCheck_4371_; -v_userData_4353_ = lean_ctor_get(v_writer_4341_, 0); -v_outputData_4354_ = lean_ctor_get(v_writer_4341_, 1); -v_knownSize_4355_ = lean_ctor_get(v_writer_4341_, 3); -v_messageHead_4356_ = lean_ctor_get(v_writer_4341_, 4); -v_sentMessage_4357_ = lean_ctor_get_uint8(v_writer_4341_, sizeof(void*)*6); -v_omitBody_4358_ = lean_ctor_get_uint8(v_writer_4341_, sizeof(void*)*6 + 2); -v_userDataBytes_4359_ = lean_ctor_get(v_writer_4341_, 5); -v_isSharedCheck_4371_ = !lean_is_exclusive(v_writer_4341_); -if (v_isSharedCheck_4371_ == 0) -{ -lean_object* v_unused_4372_; -v_unused_4372_ = lean_ctor_get(v_writer_4341_, 2); -lean_dec(v_unused_4372_); -v___x_4361_ = v_writer_4341_; -v_isShared_4362_ = v_isSharedCheck_4371_; -goto v_resetjp_4360_; -} -else -{ -lean_inc(v_userDataBytes_4359_); -lean_inc(v_messageHead_4356_); -lean_inc(v_knownSize_4355_); -lean_inc(v_outputData_4354_); -lean_inc(v_userData_4353_); -lean_dec(v_writer_4341_); -v___x_4361_ = lean_box(0); -v_isShared_4362_ = v_isSharedCheck_4371_; -goto v_resetjp_4360_; -} -v_resetjp_4360_: -{ -lean_object* v___x_4363_; uint8_t v___x_4364_; lean_object* v___x_4366_; -v___x_4363_ = lean_box(5); -v___x_4364_ = 1; -if (v_isShared_4362_ == 0) -{ -lean_ctor_set(v___x_4361_, 2, v___x_4363_); -v___x_4366_ = v___x_4361_; -goto v_reusejp_4365_; -} -else -{ -lean_object* v_reuseFailAlloc_4370_; -v_reuseFailAlloc_4370_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4370_, 0, v_userData_4353_); -lean_ctor_set(v_reuseFailAlloc_4370_, 1, v_outputData_4354_); -lean_ctor_set(v_reuseFailAlloc_4370_, 2, v___x_4363_); -lean_ctor_set(v_reuseFailAlloc_4370_, 3, v_knownSize_4355_); -lean_ctor_set(v_reuseFailAlloc_4370_, 4, v_messageHead_4356_); -lean_ctor_set(v_reuseFailAlloc_4370_, 5, v_userDataBytes_4359_); -lean_ctor_set_uint8(v_reuseFailAlloc_4370_, sizeof(void*)*6, v_sentMessage_4357_); -lean_ctor_set_uint8(v_reuseFailAlloc_4370_, sizeof(void*)*6 + 2, v_omitBody_4358_); -v___x_4366_ = v_reuseFailAlloc_4370_; -goto v_reusejp_4365_; -} -v_reusejp_4365_: -{ -lean_object* v___x_4368_; -lean_ctor_set_uint8(v___x_4366_, sizeof(void*)*6 + 1, v___x_4364_); -if (v_isShared_4352_ == 0) -{ -lean_ctor_set(v___x_4351_, 1, v___x_4366_); -v___x_4368_ = v___x_4351_; -goto v_reusejp_4367_; -} -else -{ -lean_object* v_reuseFailAlloc_4369_; -v_reuseFailAlloc_4369_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4369_, 0, v_reader_4342_); -lean_ctor_set(v_reuseFailAlloc_4369_, 1, v___x_4366_); -lean_ctor_set(v_reuseFailAlloc_4369_, 2, v_config_4343_); -lean_ctor_set(v_reuseFailAlloc_4369_, 3, v_events_4344_); -lean_ctor_set(v_reuseFailAlloc_4369_, 4, v_error_4345_); -lean_ctor_set(v_reuseFailAlloc_4369_, 5, v_instant_4346_); -lean_ctor_set_uint8(v_reuseFailAlloc_4369_, sizeof(void*)*6, v_keepAlive_4347_); -lean_ctor_set_uint8(v_reuseFailAlloc_4369_, sizeof(void*)*6 + 1, v_forcedFlush_4348_); -lean_ctor_set_uint8(v_reuseFailAlloc_4369_, sizeof(void*)*6 + 2, v_pullBodyStalled_4349_); -v___x_4368_ = v_reuseFailAlloc_4369_; -goto v_reusejp_4367_; -} -v_reusejp_4367_: -{ -return v___x_4368_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter___boxed(lean_object* v_dir_4374_, lean_object* v_machine_4375_){ -_start: -{ -uint8_t v_dir_boxed_4376_; lean_object* v_res_4377_; -v_dir_boxed_4376_ = lean_unbox(v_dir_4374_); -v_res_4377_ = l_Std_Http_Protocol_H1_Machine_closeWriter(v_dir_boxed_4376_, v_machine_4375_); -return v_res_4377_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody___redArg(lean_object* v_machine_4378_){ -_start: -{ -lean_object* v_writer_4379_; lean_object* v_reader_4380_; lean_object* v_config_4381_; lean_object* v_events_4382_; lean_object* v_error_4383_; lean_object* v_instant_4384_; uint8_t v_keepAlive_4385_; uint8_t v_forcedFlush_4386_; uint8_t v_pullBodyStalled_4387_; lean_object* v___x_4389_; uint8_t v_isShared_4390_; uint8_t v_isSharedCheck_4410_; -v_writer_4379_ = lean_ctor_get(v_machine_4378_, 1); -v_reader_4380_ = lean_ctor_get(v_machine_4378_, 0); -v_config_4381_ = lean_ctor_get(v_machine_4378_, 2); -v_events_4382_ = lean_ctor_get(v_machine_4378_, 3); -v_error_4383_ = lean_ctor_get(v_machine_4378_, 4); -v_instant_4384_ = lean_ctor_get(v_machine_4378_, 5); -v_keepAlive_4385_ = lean_ctor_get_uint8(v_machine_4378_, sizeof(void*)*6); -v_forcedFlush_4386_ = lean_ctor_get_uint8(v_machine_4378_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4387_ = lean_ctor_get_uint8(v_machine_4378_, sizeof(void*)*6 + 2); -v_isSharedCheck_4410_ = !lean_is_exclusive(v_machine_4378_); -if (v_isSharedCheck_4410_ == 0) -{ -v___x_4389_ = v_machine_4378_; -v_isShared_4390_ = v_isSharedCheck_4410_; -goto v_resetjp_4388_; -} -else -{ -lean_inc(v_instant_4384_); -lean_inc(v_error_4383_); -lean_inc(v_events_4382_); -lean_inc(v_config_4381_); -lean_inc(v_writer_4379_); -lean_inc(v_reader_4380_); -lean_dec(v_machine_4378_); -v___x_4389_ = lean_box(0); -v_isShared_4390_ = v_isSharedCheck_4410_; -goto v_resetjp_4388_; -} -v_resetjp_4388_: -{ -lean_object* v_userData_4391_; lean_object* v_outputData_4392_; lean_object* v_state_4393_; lean_object* v_knownSize_4394_; lean_object* v_messageHead_4395_; uint8_t v_sentMessage_4396_; uint8_t v_omitBody_4397_; lean_object* v_userDataBytes_4398_; lean_object* v___x_4400_; uint8_t v_isShared_4401_; uint8_t v_isSharedCheck_4409_; -v_userData_4391_ = lean_ctor_get(v_writer_4379_, 0); -v_outputData_4392_ = lean_ctor_get(v_writer_4379_, 1); -v_state_4393_ = lean_ctor_get(v_writer_4379_, 2); -v_knownSize_4394_ = lean_ctor_get(v_writer_4379_, 3); -v_messageHead_4395_ = lean_ctor_get(v_writer_4379_, 4); -v_sentMessage_4396_ = lean_ctor_get_uint8(v_writer_4379_, sizeof(void*)*6); -v_omitBody_4397_ = lean_ctor_get_uint8(v_writer_4379_, sizeof(void*)*6 + 2); -v_userDataBytes_4398_ = lean_ctor_get(v_writer_4379_, 5); -v_isSharedCheck_4409_ = !lean_is_exclusive(v_writer_4379_); -if (v_isSharedCheck_4409_ == 0) -{ -v___x_4400_ = v_writer_4379_; -v_isShared_4401_ = v_isSharedCheck_4409_; -goto v_resetjp_4399_; -} -else -{ -lean_inc(v_userDataBytes_4398_); -lean_inc(v_messageHead_4395_); -lean_inc(v_knownSize_4394_); -lean_inc(v_state_4393_); -lean_inc(v_outputData_4392_); -lean_inc(v_userData_4391_); -lean_dec(v_writer_4379_); -v___x_4400_ = lean_box(0); -v_isShared_4401_ = v_isSharedCheck_4409_; -goto v_resetjp_4399_; -} -v_resetjp_4399_: -{ -uint8_t v___x_4402_; lean_object* v___x_4404_; -v___x_4402_ = 1; -if (v_isShared_4401_ == 0) -{ -v___x_4404_ = v___x_4400_; -goto v_reusejp_4403_; -} -else -{ -lean_object* v_reuseFailAlloc_4408_; -v_reuseFailAlloc_4408_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4408_, 0, v_userData_4391_); -lean_ctor_set(v_reuseFailAlloc_4408_, 1, v_outputData_4392_); -lean_ctor_set(v_reuseFailAlloc_4408_, 2, v_state_4393_); -lean_ctor_set(v_reuseFailAlloc_4408_, 3, v_knownSize_4394_); -lean_ctor_set(v_reuseFailAlloc_4408_, 4, v_messageHead_4395_); -lean_ctor_set(v_reuseFailAlloc_4408_, 5, v_userDataBytes_4398_); -lean_ctor_set_uint8(v_reuseFailAlloc_4408_, sizeof(void*)*6, v_sentMessage_4396_); -lean_ctor_set_uint8(v_reuseFailAlloc_4408_, sizeof(void*)*6 + 2, v_omitBody_4397_); -v___x_4404_ = v_reuseFailAlloc_4408_; -goto v_reusejp_4403_; -} -v_reusejp_4403_: -{ -lean_object* v___x_4406_; -lean_ctor_set_uint8(v___x_4404_, sizeof(void*)*6 + 1, v___x_4402_); -if (v_isShared_4390_ == 0) -{ -lean_ctor_set(v___x_4389_, 1, v___x_4404_); -v___x_4406_ = v___x_4389_; -goto v_reusejp_4405_; -} -else -{ -lean_object* v_reuseFailAlloc_4407_; -v_reuseFailAlloc_4407_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4407_, 0, v_reader_4380_); -lean_ctor_set(v_reuseFailAlloc_4407_, 1, v___x_4404_); -lean_ctor_set(v_reuseFailAlloc_4407_, 2, v_config_4381_); -lean_ctor_set(v_reuseFailAlloc_4407_, 3, v_events_4382_); -lean_ctor_set(v_reuseFailAlloc_4407_, 4, v_error_4383_); -lean_ctor_set(v_reuseFailAlloc_4407_, 5, v_instant_4384_); -lean_ctor_set_uint8(v_reuseFailAlloc_4407_, sizeof(void*)*6, v_keepAlive_4385_); -lean_ctor_set_uint8(v_reuseFailAlloc_4407_, sizeof(void*)*6 + 1, v_forcedFlush_4386_); -lean_ctor_set_uint8(v_reuseFailAlloc_4407_, sizeof(void*)*6 + 2, v_pullBodyStalled_4387_); -v___x_4406_ = v_reuseFailAlloc_4407_; -goto v_reusejp_4405_; -} -v_reusejp_4405_: -{ -return v___x_4406_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody(uint8_t v_dir_4411_, lean_object* v_machine_4412_){ -_start: -{ -lean_object* v_writer_4413_; lean_object* v_reader_4414_; lean_object* v_config_4415_; lean_object* v_events_4416_; lean_object* v_error_4417_; lean_object* v_instant_4418_; uint8_t v_keepAlive_4419_; uint8_t v_forcedFlush_4420_; uint8_t v_pullBodyStalled_4421_; lean_object* v___x_4423_; uint8_t v_isShared_4424_; uint8_t v_isSharedCheck_4444_; -v_writer_4413_ = lean_ctor_get(v_machine_4412_, 1); -v_reader_4414_ = lean_ctor_get(v_machine_4412_, 0); -v_config_4415_ = lean_ctor_get(v_machine_4412_, 2); -v_events_4416_ = lean_ctor_get(v_machine_4412_, 3); -v_error_4417_ = lean_ctor_get(v_machine_4412_, 4); -v_instant_4418_ = lean_ctor_get(v_machine_4412_, 5); -v_keepAlive_4419_ = lean_ctor_get_uint8(v_machine_4412_, sizeof(void*)*6); -v_forcedFlush_4420_ = lean_ctor_get_uint8(v_machine_4412_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4421_ = lean_ctor_get_uint8(v_machine_4412_, sizeof(void*)*6 + 2); -v_isSharedCheck_4444_ = !lean_is_exclusive(v_machine_4412_); -if (v_isSharedCheck_4444_ == 0) -{ -v___x_4423_ = v_machine_4412_; -v_isShared_4424_ = v_isSharedCheck_4444_; -goto v_resetjp_4422_; -} -else -{ -lean_inc(v_instant_4418_); -lean_inc(v_error_4417_); -lean_inc(v_events_4416_); -lean_inc(v_config_4415_); -lean_inc(v_writer_4413_); -lean_inc(v_reader_4414_); -lean_dec(v_machine_4412_); -v___x_4423_ = lean_box(0); -v_isShared_4424_ = v_isSharedCheck_4444_; -goto v_resetjp_4422_; -} -v_resetjp_4422_: -{ -lean_object* v_userData_4425_; lean_object* v_outputData_4426_; lean_object* v_state_4427_; lean_object* v_knownSize_4428_; lean_object* v_messageHead_4429_; uint8_t v_sentMessage_4430_; uint8_t v_omitBody_4431_; lean_object* v_userDataBytes_4432_; lean_object* v___x_4434_; uint8_t v_isShared_4435_; uint8_t v_isSharedCheck_4443_; -v_userData_4425_ = lean_ctor_get(v_writer_4413_, 0); -v_outputData_4426_ = lean_ctor_get(v_writer_4413_, 1); -v_state_4427_ = lean_ctor_get(v_writer_4413_, 2); -v_knownSize_4428_ = lean_ctor_get(v_writer_4413_, 3); -v_messageHead_4429_ = lean_ctor_get(v_writer_4413_, 4); -v_sentMessage_4430_ = lean_ctor_get_uint8(v_writer_4413_, sizeof(void*)*6); -v_omitBody_4431_ = lean_ctor_get_uint8(v_writer_4413_, sizeof(void*)*6 + 2); -v_userDataBytes_4432_ = lean_ctor_get(v_writer_4413_, 5); -v_isSharedCheck_4443_ = !lean_is_exclusive(v_writer_4413_); -if (v_isSharedCheck_4443_ == 0) -{ -v___x_4434_ = v_writer_4413_; -v_isShared_4435_ = v_isSharedCheck_4443_; -goto v_resetjp_4433_; -} -else -{ -lean_inc(v_userDataBytes_4432_); -lean_inc(v_messageHead_4429_); -lean_inc(v_knownSize_4428_); -lean_inc(v_state_4427_); -lean_inc(v_outputData_4426_); -lean_inc(v_userData_4425_); -lean_dec(v_writer_4413_); -v___x_4434_ = lean_box(0); -v_isShared_4435_ = v_isSharedCheck_4443_; -goto v_resetjp_4433_; -} -v_resetjp_4433_: -{ -uint8_t v___x_4436_; lean_object* v___x_4438_; -v___x_4436_ = 1; -if (v_isShared_4435_ == 0) -{ -v___x_4438_ = v___x_4434_; -goto v_reusejp_4437_; -} -else -{ -lean_object* v_reuseFailAlloc_4442_; -v_reuseFailAlloc_4442_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4442_, 0, v_userData_4425_); -lean_ctor_set(v_reuseFailAlloc_4442_, 1, v_outputData_4426_); -lean_ctor_set(v_reuseFailAlloc_4442_, 2, v_state_4427_); -lean_ctor_set(v_reuseFailAlloc_4442_, 3, v_knownSize_4428_); -lean_ctor_set(v_reuseFailAlloc_4442_, 4, v_messageHead_4429_); -lean_ctor_set(v_reuseFailAlloc_4442_, 5, v_userDataBytes_4432_); -lean_ctor_set_uint8(v_reuseFailAlloc_4442_, sizeof(void*)*6, v_sentMessage_4430_); -lean_ctor_set_uint8(v_reuseFailAlloc_4442_, sizeof(void*)*6 + 2, v_omitBody_4431_); -v___x_4438_ = v_reuseFailAlloc_4442_; -goto v_reusejp_4437_; -} -v_reusejp_4437_: -{ -lean_object* v___x_4440_; -lean_ctor_set_uint8(v___x_4438_, sizeof(void*)*6 + 1, v___x_4436_); -if (v_isShared_4424_ == 0) -{ -lean_ctor_set(v___x_4423_, 1, v___x_4438_); -v___x_4440_ = v___x_4423_; -goto v_reusejp_4439_; -} -else -{ -lean_object* v_reuseFailAlloc_4441_; -v_reuseFailAlloc_4441_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4441_, 0, v_reader_4414_); -lean_ctor_set(v_reuseFailAlloc_4441_, 1, v___x_4438_); -lean_ctor_set(v_reuseFailAlloc_4441_, 2, v_config_4415_); -lean_ctor_set(v_reuseFailAlloc_4441_, 3, v_events_4416_); -lean_ctor_set(v_reuseFailAlloc_4441_, 4, v_error_4417_); -lean_ctor_set(v_reuseFailAlloc_4441_, 5, v_instant_4418_); -lean_ctor_set_uint8(v_reuseFailAlloc_4441_, sizeof(void*)*6, v_keepAlive_4419_); -lean_ctor_set_uint8(v_reuseFailAlloc_4441_, sizeof(void*)*6 + 1, v_forcedFlush_4420_); -lean_ctor_set_uint8(v_reuseFailAlloc_4441_, sizeof(void*)*6 + 2, v_pullBodyStalled_4421_); -v___x_4440_ = v_reuseFailAlloc_4441_; -goto v_reusejp_4439_; -} -v_reusejp_4439_: -{ -return v___x_4440_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody___boxed(lean_object* v_dir_4445_, lean_object* v_machine_4446_){ -_start: -{ -uint8_t v_dir_boxed_4447_; lean_object* v_res_4448_; -v_dir_boxed_4447_ = lean_unbox(v_dir_4445_); -v_res_4448_ = l_Std_Http_Protocol_H1_Machine_userClosedBody(v_dir_boxed_4447_, v_machine_4446_); -return v_res_4448_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput___redArg(lean_object* v_machine_4449_){ -_start: -{ -lean_object* v_reader_4450_; lean_object* v_writer_4451_; lean_object* v_config_4452_; lean_object* v_events_4453_; lean_object* v_error_4454_; lean_object* v_instant_4455_; uint8_t v_keepAlive_4456_; uint8_t v_forcedFlush_4457_; lean_object* v___x_4459_; uint8_t v_isShared_4460_; uint8_t v_isSharedCheck_4479_; -v_reader_4450_ = lean_ctor_get(v_machine_4449_, 0); -v_writer_4451_ = lean_ctor_get(v_machine_4449_, 1); -v_config_4452_ = lean_ctor_get(v_machine_4449_, 2); -v_events_4453_ = lean_ctor_get(v_machine_4449_, 3); -v_error_4454_ = lean_ctor_get(v_machine_4449_, 4); -v_instant_4455_ = lean_ctor_get(v_machine_4449_, 5); -v_keepAlive_4456_ = lean_ctor_get_uint8(v_machine_4449_, sizeof(void*)*6); -v_forcedFlush_4457_ = lean_ctor_get_uint8(v_machine_4449_, sizeof(void*)*6 + 1); -v_isSharedCheck_4479_ = !lean_is_exclusive(v_machine_4449_); -if (v_isSharedCheck_4479_ == 0) -{ -v___x_4459_ = v_machine_4449_; -v_isShared_4460_ = v_isSharedCheck_4479_; -goto v_resetjp_4458_; -} -else -{ -lean_inc(v_instant_4455_); -lean_inc(v_error_4454_); -lean_inc(v_events_4453_); -lean_inc(v_config_4452_); -lean_inc(v_writer_4451_); -lean_inc(v_reader_4450_); -lean_dec(v_machine_4449_); -v___x_4459_ = lean_box(0); -v_isShared_4460_ = v_isSharedCheck_4479_; -goto v_resetjp_4458_; -} -v_resetjp_4458_: -{ -lean_object* v_state_4461_; lean_object* v_input_4462_; lean_object* v_messageHead_4463_; lean_object* v_messageCount_4464_; lean_object* v_bodyBytesRead_4465_; lean_object* v_headerBytesRead_4466_; lean_object* v___x_4468_; uint8_t v_isShared_4469_; uint8_t v_isSharedCheck_4478_; -v_state_4461_ = lean_ctor_get(v_reader_4450_, 0); -v_input_4462_ = lean_ctor_get(v_reader_4450_, 1); -v_messageHead_4463_ = lean_ctor_get(v_reader_4450_, 2); -v_messageCount_4464_ = lean_ctor_get(v_reader_4450_, 3); -v_bodyBytesRead_4465_ = lean_ctor_get(v_reader_4450_, 4); -v_headerBytesRead_4466_ = lean_ctor_get(v_reader_4450_, 5); -v_isSharedCheck_4478_ = !lean_is_exclusive(v_reader_4450_); -if (v_isSharedCheck_4478_ == 0) -{ -v___x_4468_ = v_reader_4450_; -v_isShared_4469_ = v_isSharedCheck_4478_; -goto v_resetjp_4467_; -} -else -{ -lean_inc(v_headerBytesRead_4466_); -lean_inc(v_bodyBytesRead_4465_); -lean_inc(v_messageCount_4464_); -lean_inc(v_messageHead_4463_); -lean_inc(v_input_4462_); -lean_inc(v_state_4461_); -lean_dec(v_reader_4450_); -v___x_4468_ = lean_box(0); -v_isShared_4469_ = v_isSharedCheck_4478_; -goto v_resetjp_4467_; -} -v_resetjp_4467_: -{ -uint8_t v___x_4470_; lean_object* v___x_4472_; -v___x_4470_ = 1; -if (v_isShared_4469_ == 0) -{ -v___x_4472_ = v___x_4468_; -goto v_reusejp_4471_; -} -else -{ -lean_object* v_reuseFailAlloc_4477_; -v_reuseFailAlloc_4477_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4477_, 0, v_state_4461_); -lean_ctor_set(v_reuseFailAlloc_4477_, 1, v_input_4462_); -lean_ctor_set(v_reuseFailAlloc_4477_, 2, v_messageHead_4463_); -lean_ctor_set(v_reuseFailAlloc_4477_, 3, v_messageCount_4464_); -lean_ctor_set(v_reuseFailAlloc_4477_, 4, v_bodyBytesRead_4465_); -lean_ctor_set(v_reuseFailAlloc_4477_, 5, v_headerBytesRead_4466_); -v___x_4472_ = v_reuseFailAlloc_4477_; -goto v_reusejp_4471_; -} -v_reusejp_4471_: -{ -uint8_t v___x_4473_; lean_object* v___x_4475_; -lean_ctor_set_uint8(v___x_4472_, sizeof(void*)*6, v___x_4470_); -v___x_4473_ = 0; -if (v_isShared_4460_ == 0) -{ -lean_ctor_set(v___x_4459_, 0, v___x_4472_); -v___x_4475_ = v___x_4459_; -goto v_reusejp_4474_; -} -else -{ -lean_object* v_reuseFailAlloc_4476_; -v_reuseFailAlloc_4476_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4476_, 0, v___x_4472_); -lean_ctor_set(v_reuseFailAlloc_4476_, 1, v_writer_4451_); -lean_ctor_set(v_reuseFailAlloc_4476_, 2, v_config_4452_); -lean_ctor_set(v_reuseFailAlloc_4476_, 3, v_events_4453_); -lean_ctor_set(v_reuseFailAlloc_4476_, 4, v_error_4454_); -lean_ctor_set(v_reuseFailAlloc_4476_, 5, v_instant_4455_); -lean_ctor_set_uint8(v_reuseFailAlloc_4476_, sizeof(void*)*6, v_keepAlive_4456_); -lean_ctor_set_uint8(v_reuseFailAlloc_4476_, sizeof(void*)*6 + 1, v_forcedFlush_4457_); -v___x_4475_ = v_reuseFailAlloc_4476_; -goto v_reusejp_4474_; -} -v_reusejp_4474_: -{ -lean_ctor_set_uint8(v___x_4475_, sizeof(void*)*6 + 2, v___x_4473_); -return v___x_4475_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput(uint8_t v_dir_4480_, lean_object* v_machine_4481_){ -_start: -{ -lean_object* v_reader_4482_; lean_object* v_writer_4483_; lean_object* v_config_4484_; lean_object* v_events_4485_; lean_object* v_error_4486_; lean_object* v_instant_4487_; uint8_t v_keepAlive_4488_; uint8_t v_forcedFlush_4489_; lean_object* v___x_4491_; uint8_t v_isShared_4492_; uint8_t v_isSharedCheck_4511_; -v_reader_4482_ = lean_ctor_get(v_machine_4481_, 0); -v_writer_4483_ = lean_ctor_get(v_machine_4481_, 1); -v_config_4484_ = lean_ctor_get(v_machine_4481_, 2); -v_events_4485_ = lean_ctor_get(v_machine_4481_, 3); -v_error_4486_ = lean_ctor_get(v_machine_4481_, 4); -v_instant_4487_ = lean_ctor_get(v_machine_4481_, 5); -v_keepAlive_4488_ = lean_ctor_get_uint8(v_machine_4481_, sizeof(void*)*6); -v_forcedFlush_4489_ = lean_ctor_get_uint8(v_machine_4481_, sizeof(void*)*6 + 1); -v_isSharedCheck_4511_ = !lean_is_exclusive(v_machine_4481_); -if (v_isSharedCheck_4511_ == 0) -{ -v___x_4491_ = v_machine_4481_; -v_isShared_4492_ = v_isSharedCheck_4511_; -goto v_resetjp_4490_; -} -else -{ -lean_inc(v_instant_4487_); -lean_inc(v_error_4486_); -lean_inc(v_events_4485_); -lean_inc(v_config_4484_); -lean_inc(v_writer_4483_); -lean_inc(v_reader_4482_); -lean_dec(v_machine_4481_); -v___x_4491_ = lean_box(0); -v_isShared_4492_ = v_isSharedCheck_4511_; -goto v_resetjp_4490_; -} -v_resetjp_4490_: -{ -lean_object* v_state_4493_; lean_object* v_input_4494_; lean_object* v_messageHead_4495_; lean_object* v_messageCount_4496_; lean_object* v_bodyBytesRead_4497_; lean_object* v_headerBytesRead_4498_; lean_object* v___x_4500_; uint8_t v_isShared_4501_; uint8_t v_isSharedCheck_4510_; -v_state_4493_ = lean_ctor_get(v_reader_4482_, 0); -v_input_4494_ = lean_ctor_get(v_reader_4482_, 1); -v_messageHead_4495_ = lean_ctor_get(v_reader_4482_, 2); -v_messageCount_4496_ = lean_ctor_get(v_reader_4482_, 3); -v_bodyBytesRead_4497_ = lean_ctor_get(v_reader_4482_, 4); -v_headerBytesRead_4498_ = lean_ctor_get(v_reader_4482_, 5); -v_isSharedCheck_4510_ = !lean_is_exclusive(v_reader_4482_); -if (v_isSharedCheck_4510_ == 0) -{ -v___x_4500_ = v_reader_4482_; -v_isShared_4501_ = v_isSharedCheck_4510_; -goto v_resetjp_4499_; -} -else -{ -lean_inc(v_headerBytesRead_4498_); -lean_inc(v_bodyBytesRead_4497_); -lean_inc(v_messageCount_4496_); -lean_inc(v_messageHead_4495_); -lean_inc(v_input_4494_); -lean_inc(v_state_4493_); -lean_dec(v_reader_4482_); -v___x_4500_ = lean_box(0); -v_isShared_4501_ = v_isSharedCheck_4510_; -goto v_resetjp_4499_; -} -v_resetjp_4499_: -{ -uint8_t v___x_4502_; lean_object* v___x_4504_; -v___x_4502_ = 1; -if (v_isShared_4501_ == 0) -{ -v___x_4504_ = v___x_4500_; -goto v_reusejp_4503_; -} -else -{ -lean_object* v_reuseFailAlloc_4509_; -v_reuseFailAlloc_4509_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4509_, 0, v_state_4493_); -lean_ctor_set(v_reuseFailAlloc_4509_, 1, v_input_4494_); -lean_ctor_set(v_reuseFailAlloc_4509_, 2, v_messageHead_4495_); -lean_ctor_set(v_reuseFailAlloc_4509_, 3, v_messageCount_4496_); -lean_ctor_set(v_reuseFailAlloc_4509_, 4, v_bodyBytesRead_4497_); -lean_ctor_set(v_reuseFailAlloc_4509_, 5, v_headerBytesRead_4498_); -v___x_4504_ = v_reuseFailAlloc_4509_; -goto v_reusejp_4503_; -} -v_reusejp_4503_: -{ -uint8_t v___x_4505_; lean_object* v___x_4507_; -lean_ctor_set_uint8(v___x_4504_, sizeof(void*)*6, v___x_4502_); -v___x_4505_ = 0; -if (v_isShared_4492_ == 0) -{ -lean_ctor_set(v___x_4491_, 0, v___x_4504_); -v___x_4507_ = v___x_4491_; -goto v_reusejp_4506_; -} -else -{ -lean_object* v_reuseFailAlloc_4508_; -v_reuseFailAlloc_4508_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4508_, 0, v___x_4504_); -lean_ctor_set(v_reuseFailAlloc_4508_, 1, v_writer_4483_); -lean_ctor_set(v_reuseFailAlloc_4508_, 2, v_config_4484_); -lean_ctor_set(v_reuseFailAlloc_4508_, 3, v_events_4485_); -lean_ctor_set(v_reuseFailAlloc_4508_, 4, v_error_4486_); -lean_ctor_set(v_reuseFailAlloc_4508_, 5, v_instant_4487_); -lean_ctor_set_uint8(v_reuseFailAlloc_4508_, sizeof(void*)*6, v_keepAlive_4488_); -lean_ctor_set_uint8(v_reuseFailAlloc_4508_, sizeof(void*)*6 + 1, v_forcedFlush_4489_); -v___x_4507_ = v_reuseFailAlloc_4508_; -goto v_reusejp_4506_; -} -v_reusejp_4506_: -{ -lean_ctor_set_uint8(v___x_4507_, sizeof(void*)*6 + 2, v___x_4505_); -return v___x_4507_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput___boxed(lean_object* v_dir_4512_, lean_object* v_machine_4513_){ -_start: -{ -uint8_t v_dir_boxed_4514_; lean_object* v_res_4515_; -v_dir_boxed_4514_ = lean_unbox(v_dir_4512_); -v_res_4515_ = l_Std_Http_Protocol_H1_Machine_noMoreInput(v_dir_boxed_4514_, v_machine_4513_); -return v_res_4515_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize___redArg(lean_object* v_machine_4516_, lean_object* v_size_4517_){ -_start: -{ -lean_object* v_writer_4518_; lean_object* v_reader_4519_; lean_object* v_config_4520_; lean_object* v_events_4521_; lean_object* v_error_4522_; lean_object* v_instant_4523_; uint8_t v_keepAlive_4524_; uint8_t v_forcedFlush_4525_; uint8_t v_pullBodyStalled_4526_; lean_object* v___x_4528_; uint8_t v_isShared_4529_; uint8_t v_isSharedCheck_4550_; -v_writer_4518_ = lean_ctor_get(v_machine_4516_, 1); -v_reader_4519_ = lean_ctor_get(v_machine_4516_, 0); -v_config_4520_ = lean_ctor_get(v_machine_4516_, 2); -v_events_4521_ = lean_ctor_get(v_machine_4516_, 3); -v_error_4522_ = lean_ctor_get(v_machine_4516_, 4); -v_instant_4523_ = lean_ctor_get(v_machine_4516_, 5); -v_keepAlive_4524_ = lean_ctor_get_uint8(v_machine_4516_, sizeof(void*)*6); -v_forcedFlush_4525_ = lean_ctor_get_uint8(v_machine_4516_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4526_ = lean_ctor_get_uint8(v_machine_4516_, sizeof(void*)*6 + 2); -v_isSharedCheck_4550_ = !lean_is_exclusive(v_machine_4516_); -if (v_isSharedCheck_4550_ == 0) -{ -v___x_4528_ = v_machine_4516_; -v_isShared_4529_ = v_isSharedCheck_4550_; -goto v_resetjp_4527_; -} -else -{ -lean_inc(v_instant_4523_); -lean_inc(v_error_4522_); -lean_inc(v_events_4521_); -lean_inc(v_config_4520_); -lean_inc(v_writer_4518_); -lean_inc(v_reader_4519_); -lean_dec(v_machine_4516_); -v___x_4528_ = lean_box(0); -v_isShared_4529_ = v_isSharedCheck_4550_; -goto v_resetjp_4527_; -} -v_resetjp_4527_: -{ -lean_object* v_userData_4530_; lean_object* v_outputData_4531_; lean_object* v_state_4532_; lean_object* v_messageHead_4533_; uint8_t v_sentMessage_4534_; uint8_t v_userClosedBody_4535_; uint8_t v_omitBody_4536_; lean_object* v_userDataBytes_4537_; lean_object* v___x_4539_; uint8_t v_isShared_4540_; uint8_t v_isSharedCheck_4548_; -v_userData_4530_ = lean_ctor_get(v_writer_4518_, 0); -v_outputData_4531_ = lean_ctor_get(v_writer_4518_, 1); -v_state_4532_ = lean_ctor_get(v_writer_4518_, 2); -v_messageHead_4533_ = lean_ctor_get(v_writer_4518_, 4); -v_sentMessage_4534_ = lean_ctor_get_uint8(v_writer_4518_, sizeof(void*)*6); -v_userClosedBody_4535_ = lean_ctor_get_uint8(v_writer_4518_, sizeof(void*)*6 + 1); -v_omitBody_4536_ = lean_ctor_get_uint8(v_writer_4518_, sizeof(void*)*6 + 2); -v_userDataBytes_4537_ = lean_ctor_get(v_writer_4518_, 5); -v_isSharedCheck_4548_ = !lean_is_exclusive(v_writer_4518_); -if (v_isSharedCheck_4548_ == 0) -{ -lean_object* v_unused_4549_; -v_unused_4549_ = lean_ctor_get(v_writer_4518_, 3); -lean_dec(v_unused_4549_); -v___x_4539_ = v_writer_4518_; -v_isShared_4540_ = v_isSharedCheck_4548_; -goto v_resetjp_4538_; -} -else -{ -lean_inc(v_userDataBytes_4537_); -lean_inc(v_messageHead_4533_); -lean_inc(v_state_4532_); -lean_inc(v_outputData_4531_); -lean_inc(v_userData_4530_); -lean_dec(v_writer_4518_); -v___x_4539_ = lean_box(0); -v_isShared_4540_ = v_isSharedCheck_4548_; -goto v_resetjp_4538_; -} -v_resetjp_4538_: -{ -lean_object* v___x_4541_; lean_object* v___x_4543_; -v___x_4541_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_4541_, 0, v_size_4517_); -if (v_isShared_4540_ == 0) -{ -lean_ctor_set(v___x_4539_, 3, v___x_4541_); -v___x_4543_ = v___x_4539_; -goto v_reusejp_4542_; -} -else -{ -lean_object* v_reuseFailAlloc_4547_; -v_reuseFailAlloc_4547_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4547_, 0, v_userData_4530_); -lean_ctor_set(v_reuseFailAlloc_4547_, 1, v_outputData_4531_); -lean_ctor_set(v_reuseFailAlloc_4547_, 2, v_state_4532_); -lean_ctor_set(v_reuseFailAlloc_4547_, 3, v___x_4541_); -lean_ctor_set(v_reuseFailAlloc_4547_, 4, v_messageHead_4533_); -lean_ctor_set(v_reuseFailAlloc_4547_, 5, v_userDataBytes_4537_); -lean_ctor_set_uint8(v_reuseFailAlloc_4547_, sizeof(void*)*6, v_sentMessage_4534_); -lean_ctor_set_uint8(v_reuseFailAlloc_4547_, sizeof(void*)*6 + 1, v_userClosedBody_4535_); -lean_ctor_set_uint8(v_reuseFailAlloc_4547_, sizeof(void*)*6 + 2, v_omitBody_4536_); -v___x_4543_ = v_reuseFailAlloc_4547_; -goto v_reusejp_4542_; -} -v_reusejp_4542_: -{ -lean_object* v___x_4545_; -if (v_isShared_4529_ == 0) -{ -lean_ctor_set(v___x_4528_, 1, v___x_4543_); -v___x_4545_ = v___x_4528_; -goto v_reusejp_4544_; -} -else -{ -lean_object* v_reuseFailAlloc_4546_; -v_reuseFailAlloc_4546_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4546_, 0, v_reader_4519_); -lean_ctor_set(v_reuseFailAlloc_4546_, 1, v___x_4543_); -lean_ctor_set(v_reuseFailAlloc_4546_, 2, v_config_4520_); -lean_ctor_set(v_reuseFailAlloc_4546_, 3, v_events_4521_); -lean_ctor_set(v_reuseFailAlloc_4546_, 4, v_error_4522_); -lean_ctor_set(v_reuseFailAlloc_4546_, 5, v_instant_4523_); -lean_ctor_set_uint8(v_reuseFailAlloc_4546_, sizeof(void*)*6, v_keepAlive_4524_); -lean_ctor_set_uint8(v_reuseFailAlloc_4546_, sizeof(void*)*6 + 1, v_forcedFlush_4525_); -lean_ctor_set_uint8(v_reuseFailAlloc_4546_, sizeof(void*)*6 + 2, v_pullBodyStalled_4526_); -v___x_4545_ = v_reuseFailAlloc_4546_; -goto v_reusejp_4544_; -} -v_reusejp_4544_: -{ -return v___x_4545_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize(uint8_t v_dir_4551_, lean_object* v_machine_4552_, lean_object* v_size_4553_){ -_start: -{ -lean_object* v_writer_4554_; lean_object* v_reader_4555_; lean_object* v_config_4556_; lean_object* v_events_4557_; lean_object* v_error_4558_; lean_object* v_instant_4559_; uint8_t v_keepAlive_4560_; uint8_t v_forcedFlush_4561_; uint8_t v_pullBodyStalled_4562_; lean_object* v___x_4564_; uint8_t v_isShared_4565_; uint8_t v_isSharedCheck_4586_; -v_writer_4554_ = lean_ctor_get(v_machine_4552_, 1); -v_reader_4555_ = lean_ctor_get(v_machine_4552_, 0); -v_config_4556_ = lean_ctor_get(v_machine_4552_, 2); -v_events_4557_ = lean_ctor_get(v_machine_4552_, 3); -v_error_4558_ = lean_ctor_get(v_machine_4552_, 4); -v_instant_4559_ = lean_ctor_get(v_machine_4552_, 5); -v_keepAlive_4560_ = lean_ctor_get_uint8(v_machine_4552_, sizeof(void*)*6); -v_forcedFlush_4561_ = lean_ctor_get_uint8(v_machine_4552_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4562_ = lean_ctor_get_uint8(v_machine_4552_, sizeof(void*)*6 + 2); -v_isSharedCheck_4586_ = !lean_is_exclusive(v_machine_4552_); -if (v_isSharedCheck_4586_ == 0) -{ -v___x_4564_ = v_machine_4552_; -v_isShared_4565_ = v_isSharedCheck_4586_; -goto v_resetjp_4563_; -} -else -{ -lean_inc(v_instant_4559_); -lean_inc(v_error_4558_); -lean_inc(v_events_4557_); -lean_inc(v_config_4556_); -lean_inc(v_writer_4554_); -lean_inc(v_reader_4555_); -lean_dec(v_machine_4552_); -v___x_4564_ = lean_box(0); -v_isShared_4565_ = v_isSharedCheck_4586_; -goto v_resetjp_4563_; -} -v_resetjp_4563_: -{ -lean_object* v_userData_4566_; lean_object* v_outputData_4567_; lean_object* v_state_4568_; lean_object* v_messageHead_4569_; uint8_t v_sentMessage_4570_; uint8_t v_userClosedBody_4571_; uint8_t v_omitBody_4572_; lean_object* v_userDataBytes_4573_; lean_object* v___x_4575_; uint8_t v_isShared_4576_; uint8_t v_isSharedCheck_4584_; -v_userData_4566_ = lean_ctor_get(v_writer_4554_, 0); -v_outputData_4567_ = lean_ctor_get(v_writer_4554_, 1); -v_state_4568_ = lean_ctor_get(v_writer_4554_, 2); -v_messageHead_4569_ = lean_ctor_get(v_writer_4554_, 4); -v_sentMessage_4570_ = lean_ctor_get_uint8(v_writer_4554_, sizeof(void*)*6); -v_userClosedBody_4571_ = lean_ctor_get_uint8(v_writer_4554_, sizeof(void*)*6 + 1); -v_omitBody_4572_ = lean_ctor_get_uint8(v_writer_4554_, sizeof(void*)*6 + 2); -v_userDataBytes_4573_ = lean_ctor_get(v_writer_4554_, 5); -v_isSharedCheck_4584_ = !lean_is_exclusive(v_writer_4554_); -if (v_isSharedCheck_4584_ == 0) -{ -lean_object* v_unused_4585_; -v_unused_4585_ = lean_ctor_get(v_writer_4554_, 3); -lean_dec(v_unused_4585_); -v___x_4575_ = v_writer_4554_; -v_isShared_4576_ = v_isSharedCheck_4584_; -goto v_resetjp_4574_; -} -else -{ -lean_inc(v_userDataBytes_4573_); -lean_inc(v_messageHead_4569_); -lean_inc(v_state_4568_); -lean_inc(v_outputData_4567_); -lean_inc(v_userData_4566_); -lean_dec(v_writer_4554_); -v___x_4575_ = lean_box(0); -v_isShared_4576_ = v_isSharedCheck_4584_; -goto v_resetjp_4574_; -} -v_resetjp_4574_: -{ -lean_object* v___x_4577_; lean_object* v___x_4579_; -v___x_4577_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_4577_, 0, v_size_4553_); -if (v_isShared_4576_ == 0) -{ -lean_ctor_set(v___x_4575_, 3, v___x_4577_); -v___x_4579_ = v___x_4575_; -goto v_reusejp_4578_; -} -else -{ -lean_object* v_reuseFailAlloc_4583_; -v_reuseFailAlloc_4583_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4583_, 0, v_userData_4566_); -lean_ctor_set(v_reuseFailAlloc_4583_, 1, v_outputData_4567_); -lean_ctor_set(v_reuseFailAlloc_4583_, 2, v_state_4568_); -lean_ctor_set(v_reuseFailAlloc_4583_, 3, v___x_4577_); -lean_ctor_set(v_reuseFailAlloc_4583_, 4, v_messageHead_4569_); -lean_ctor_set(v_reuseFailAlloc_4583_, 5, v_userDataBytes_4573_); -lean_ctor_set_uint8(v_reuseFailAlloc_4583_, sizeof(void*)*6, v_sentMessage_4570_); -lean_ctor_set_uint8(v_reuseFailAlloc_4583_, sizeof(void*)*6 + 1, v_userClosedBody_4571_); -lean_ctor_set_uint8(v_reuseFailAlloc_4583_, sizeof(void*)*6 + 2, v_omitBody_4572_); -v___x_4579_ = v_reuseFailAlloc_4583_; -goto v_reusejp_4578_; -} -v_reusejp_4578_: -{ -lean_object* v___x_4581_; -if (v_isShared_4565_ == 0) -{ -lean_ctor_set(v___x_4564_, 1, v___x_4579_); -v___x_4581_ = v___x_4564_; -goto v_reusejp_4580_; -} -else -{ -lean_object* v_reuseFailAlloc_4582_; -v_reuseFailAlloc_4582_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4582_, 0, v_reader_4555_); -lean_ctor_set(v_reuseFailAlloc_4582_, 1, v___x_4579_); -lean_ctor_set(v_reuseFailAlloc_4582_, 2, v_config_4556_); -lean_ctor_set(v_reuseFailAlloc_4582_, 3, v_events_4557_); -lean_ctor_set(v_reuseFailAlloc_4582_, 4, v_error_4558_); -lean_ctor_set(v_reuseFailAlloc_4582_, 5, v_instant_4559_); -lean_ctor_set_uint8(v_reuseFailAlloc_4582_, sizeof(void*)*6, v_keepAlive_4560_); -lean_ctor_set_uint8(v_reuseFailAlloc_4582_, sizeof(void*)*6 + 1, v_forcedFlush_4561_); -lean_ctor_set_uint8(v_reuseFailAlloc_4582_, sizeof(void*)*6 + 2, v_pullBodyStalled_4562_); -v___x_4581_ = v_reuseFailAlloc_4582_; -goto v_reusejp_4580_; -} -v_reusejp_4580_: -{ -return v___x_4581_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize___boxed(lean_object* v_dir_4587_, lean_object* v_machine_4588_, lean_object* v_size_4589_){ -_start: -{ -uint8_t v_dir_boxed_4590_; lean_object* v_res_4591_; -v_dir_boxed_4590_ = lean_unbox(v_dir_4587_); -v_res_4591_ = l_Std_Http_Protocol_H1_Machine_setKnownSize(v_dir_boxed_4590_, v_machine_4588_, v_size_4589_); -return v_res_4591_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg(lean_object* v_machine_4598_, uint8_t v_forceZero_4599_){ -_start: -{ -lean_object* v_reader_4600_; lean_object* v_writer_4601_; lean_object* v_config_4602_; lean_object* v_events_4603_; lean_object* v_error_4604_; lean_object* v_instant_4605_; uint8_t v_keepAlive_4606_; uint8_t v_forcedFlush_4607_; uint8_t v_pullBodyStalled_4608_; lean_object* v___x_4610_; uint8_t v_isShared_4611_; uint8_t v_isSharedCheck_4636_; -v_reader_4600_ = lean_ctor_get(v_machine_4598_, 0); -v_writer_4601_ = lean_ctor_get(v_machine_4598_, 1); -v_config_4602_ = lean_ctor_get(v_machine_4598_, 2); -v_events_4603_ = lean_ctor_get(v_machine_4598_, 3); -v_error_4604_ = lean_ctor_get(v_machine_4598_, 4); -v_instant_4605_ = lean_ctor_get(v_machine_4598_, 5); -v_keepAlive_4606_ = lean_ctor_get_uint8(v_machine_4598_, sizeof(void*)*6); -v_forcedFlush_4607_ = lean_ctor_get_uint8(v_machine_4598_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4608_ = lean_ctor_get_uint8(v_machine_4598_, sizeof(void*)*6 + 2); -v_isSharedCheck_4636_ = !lean_is_exclusive(v_machine_4598_); -if (v_isSharedCheck_4636_ == 0) -{ -v___x_4610_ = v_machine_4598_; -v_isShared_4611_ = v_isSharedCheck_4636_; -goto v_resetjp_4609_; -} -else -{ -lean_inc(v_instant_4605_); -lean_inc(v_error_4604_); -lean_inc(v_events_4603_); -lean_inc(v_config_4602_); -lean_inc(v_writer_4601_); -lean_inc(v_reader_4600_); -lean_dec(v_machine_4598_); -v___x_4610_ = lean_box(0); -v_isShared_4611_ = v_isSharedCheck_4636_; -goto v_resetjp_4609_; -} -v_resetjp_4609_: -{ -uint8_t v___x_4612_; lean_object* v___y_4614_; -v___x_4612_ = 1; -if (v_forceZero_4599_ == 0) -{ -lean_object* v_knownSize_4634_; -v_knownSize_4634_ = lean_ctor_get(v_writer_4601_, 3); -lean_inc(v_knownSize_4634_); -v___y_4614_ = v_knownSize_4634_; -goto v___jp_4613_; -} -else -{ -lean_object* v___x_4635_; -v___x_4635_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); -v___y_4614_ = v___x_4635_; -goto v___jp_4613_; -} -v___jp_4613_: -{ -lean_object* v_outputData_4615_; lean_object* v_state_4616_; lean_object* v_messageHead_4617_; uint8_t v_sentMessage_4618_; lean_object* v___x_4620_; uint8_t v_isShared_4621_; uint8_t v_isSharedCheck_4630_; -v_outputData_4615_ = lean_ctor_get(v_writer_4601_, 1); -v_state_4616_ = lean_ctor_get(v_writer_4601_, 2); -v_messageHead_4617_ = lean_ctor_get(v_writer_4601_, 4); -v_sentMessage_4618_ = lean_ctor_get_uint8(v_writer_4601_, sizeof(void*)*6); -v_isSharedCheck_4630_ = !lean_is_exclusive(v_writer_4601_); -if (v_isSharedCheck_4630_ == 0) -{ -lean_object* v_unused_4631_; lean_object* v_unused_4632_; lean_object* v_unused_4633_; -v_unused_4631_ = lean_ctor_get(v_writer_4601_, 5); -lean_dec(v_unused_4631_); -v_unused_4632_ = lean_ctor_get(v_writer_4601_, 3); -lean_dec(v_unused_4632_); -v_unused_4633_ = lean_ctor_get(v_writer_4601_, 0); -lean_dec(v_unused_4633_); -v___x_4620_ = v_writer_4601_; -v_isShared_4621_ = v_isSharedCheck_4630_; -goto v_resetjp_4619_; -} -else -{ -lean_inc(v_messageHead_4617_); -lean_inc(v_state_4616_); -lean_inc(v_outputData_4615_); -lean_dec(v_writer_4601_); -v___x_4620_ = lean_box(0); -v_isShared_4621_ = v_isSharedCheck_4630_; -goto v_resetjp_4619_; -} -v_resetjp_4619_: -{ -lean_object* v___x_4622_; lean_object* v___x_4623_; lean_object* v___x_4625_; -v___x_4622_ = lean_unsigned_to_nat(0u); -v___x_4623_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); -if (v_isShared_4621_ == 0) -{ -lean_ctor_set(v___x_4620_, 5, v___x_4622_); -lean_ctor_set(v___x_4620_, 3, v___y_4614_); -lean_ctor_set(v___x_4620_, 0, v___x_4623_); -v___x_4625_ = v___x_4620_; -goto v_reusejp_4624_; -} -else -{ -lean_object* v_reuseFailAlloc_4629_; -v_reuseFailAlloc_4629_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4629_, 0, v___x_4623_); -lean_ctor_set(v_reuseFailAlloc_4629_, 1, v_outputData_4615_); -lean_ctor_set(v_reuseFailAlloc_4629_, 2, v_state_4616_); -lean_ctor_set(v_reuseFailAlloc_4629_, 3, v___y_4614_); -lean_ctor_set(v_reuseFailAlloc_4629_, 4, v_messageHead_4617_); -lean_ctor_set(v_reuseFailAlloc_4629_, 5, v___x_4622_); -lean_ctor_set_uint8(v_reuseFailAlloc_4629_, sizeof(void*)*6, v_sentMessage_4618_); -v___x_4625_ = v_reuseFailAlloc_4629_; -goto v_reusejp_4624_; -} -v_reusejp_4624_: -{ -lean_object* v___x_4627_; -lean_ctor_set_uint8(v___x_4625_, sizeof(void*)*6 + 1, v___x_4612_); -lean_ctor_set_uint8(v___x_4625_, sizeof(void*)*6 + 2, v___x_4612_); -if (v_isShared_4611_ == 0) -{ -lean_ctor_set(v___x_4610_, 1, v___x_4625_); -v___x_4627_ = v___x_4610_; -goto v_reusejp_4626_; -} -else -{ -lean_object* v_reuseFailAlloc_4628_; -v_reuseFailAlloc_4628_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4628_, 0, v_reader_4600_); -lean_ctor_set(v_reuseFailAlloc_4628_, 1, v___x_4625_); -lean_ctor_set(v_reuseFailAlloc_4628_, 2, v_config_4602_); -lean_ctor_set(v_reuseFailAlloc_4628_, 3, v_events_4603_); -lean_ctor_set(v_reuseFailAlloc_4628_, 4, v_error_4604_); -lean_ctor_set(v_reuseFailAlloc_4628_, 5, v_instant_4605_); -lean_ctor_set_uint8(v_reuseFailAlloc_4628_, sizeof(void*)*6, v_keepAlive_4606_); -lean_ctor_set_uint8(v_reuseFailAlloc_4628_, sizeof(void*)*6 + 1, v_forcedFlush_4607_); -lean_ctor_set_uint8(v_reuseFailAlloc_4628_, sizeof(void*)*6 + 2, v_pullBodyStalled_4608_); -v___x_4627_ = v_reuseFailAlloc_4628_; -goto v_reusejp_4626_; -} -v_reusejp_4626_: -{ -return v___x_4627_; -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___boxed(lean_object* v_machine_4637_, lean_object* v_forceZero_4638_){ -_start: -{ -uint8_t v_forceZero_boxed_4639_; lean_object* v_res_4640_; -v_forceZero_boxed_4639_ = lean_unbox(v_forceZero_4638_); -v_res_4640_ = l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg(v_machine_4637_, v_forceZero_boxed_4639_); -return v_res_4640_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody(uint8_t v_dir_4641_, lean_object* v_machine_4642_, uint8_t v_forceZero_4643_){ -_start: -{ -lean_object* v_reader_4644_; lean_object* v_writer_4645_; lean_object* v_config_4646_; lean_object* v_events_4647_; lean_object* v_error_4648_; lean_object* v_instant_4649_; uint8_t v_keepAlive_4650_; uint8_t v_forcedFlush_4651_; uint8_t v_pullBodyStalled_4652_; lean_object* v___x_4654_; uint8_t v_isShared_4655_; uint8_t v_isSharedCheck_4680_; -v_reader_4644_ = lean_ctor_get(v_machine_4642_, 0); -v_writer_4645_ = lean_ctor_get(v_machine_4642_, 1); -v_config_4646_ = lean_ctor_get(v_machine_4642_, 2); -v_events_4647_ = lean_ctor_get(v_machine_4642_, 3); -v_error_4648_ = lean_ctor_get(v_machine_4642_, 4); -v_instant_4649_ = lean_ctor_get(v_machine_4642_, 5); -v_keepAlive_4650_ = lean_ctor_get_uint8(v_machine_4642_, sizeof(void*)*6); -v_forcedFlush_4651_ = lean_ctor_get_uint8(v_machine_4642_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4652_ = lean_ctor_get_uint8(v_machine_4642_, sizeof(void*)*6 + 2); -v_isSharedCheck_4680_ = !lean_is_exclusive(v_machine_4642_); -if (v_isSharedCheck_4680_ == 0) -{ -v___x_4654_ = v_machine_4642_; -v_isShared_4655_ = v_isSharedCheck_4680_; -goto v_resetjp_4653_; -} -else -{ -lean_inc(v_instant_4649_); -lean_inc(v_error_4648_); -lean_inc(v_events_4647_); -lean_inc(v_config_4646_); -lean_inc(v_writer_4645_); -lean_inc(v_reader_4644_); -lean_dec(v_machine_4642_); -v___x_4654_ = lean_box(0); -v_isShared_4655_ = v_isSharedCheck_4680_; -goto v_resetjp_4653_; -} -v_resetjp_4653_: -{ -uint8_t v___x_4656_; lean_object* v___y_4658_; -v___x_4656_ = 1; -if (v_forceZero_4643_ == 0) -{ -lean_object* v_knownSize_4678_; -v_knownSize_4678_ = lean_ctor_get(v_writer_4645_, 3); -lean_inc(v_knownSize_4678_); -v___y_4658_ = v_knownSize_4678_; -goto v___jp_4657_; -} -else -{ -lean_object* v___x_4679_; -v___x_4679_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); -v___y_4658_ = v___x_4679_; -goto v___jp_4657_; -} -v___jp_4657_: -{ -lean_object* v_outputData_4659_; lean_object* v_state_4660_; lean_object* v_messageHead_4661_; uint8_t v_sentMessage_4662_; lean_object* v___x_4664_; uint8_t v_isShared_4665_; uint8_t v_isSharedCheck_4674_; -v_outputData_4659_ = lean_ctor_get(v_writer_4645_, 1); -v_state_4660_ = lean_ctor_get(v_writer_4645_, 2); -v_messageHead_4661_ = lean_ctor_get(v_writer_4645_, 4); -v_sentMessage_4662_ = lean_ctor_get_uint8(v_writer_4645_, sizeof(void*)*6); -v_isSharedCheck_4674_ = !lean_is_exclusive(v_writer_4645_); -if (v_isSharedCheck_4674_ == 0) -{ -lean_object* v_unused_4675_; lean_object* v_unused_4676_; lean_object* v_unused_4677_; -v_unused_4675_ = lean_ctor_get(v_writer_4645_, 5); -lean_dec(v_unused_4675_); -v_unused_4676_ = lean_ctor_get(v_writer_4645_, 3); -lean_dec(v_unused_4676_); -v_unused_4677_ = lean_ctor_get(v_writer_4645_, 0); -lean_dec(v_unused_4677_); -v___x_4664_ = v_writer_4645_; -v_isShared_4665_ = v_isSharedCheck_4674_; -goto v_resetjp_4663_; -} -else -{ -lean_inc(v_messageHead_4661_); -lean_inc(v_state_4660_); -lean_inc(v_outputData_4659_); -lean_dec(v_writer_4645_); -v___x_4664_ = lean_box(0); -v_isShared_4665_ = v_isSharedCheck_4674_; -goto v_resetjp_4663_; -} -v_resetjp_4663_: -{ -lean_object* v___x_4666_; lean_object* v___x_4667_; lean_object* v___x_4669_; -v___x_4666_ = lean_unsigned_to_nat(0u); -v___x_4667_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); -if (v_isShared_4665_ == 0) -{ -lean_ctor_set(v___x_4664_, 5, v___x_4666_); -lean_ctor_set(v___x_4664_, 3, v___y_4658_); -lean_ctor_set(v___x_4664_, 0, v___x_4667_); -v___x_4669_ = v___x_4664_; -goto v_reusejp_4668_; -} -else -{ -lean_object* v_reuseFailAlloc_4673_; -v_reuseFailAlloc_4673_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4673_, 0, v___x_4667_); -lean_ctor_set(v_reuseFailAlloc_4673_, 1, v_outputData_4659_); -lean_ctor_set(v_reuseFailAlloc_4673_, 2, v_state_4660_); -lean_ctor_set(v_reuseFailAlloc_4673_, 3, v___y_4658_); -lean_ctor_set(v_reuseFailAlloc_4673_, 4, v_messageHead_4661_); -lean_ctor_set(v_reuseFailAlloc_4673_, 5, v___x_4666_); -lean_ctor_set_uint8(v_reuseFailAlloc_4673_, sizeof(void*)*6, v_sentMessage_4662_); -v___x_4669_ = v_reuseFailAlloc_4673_; -goto v_reusejp_4668_; -} -v_reusejp_4668_: -{ -lean_object* v___x_4671_; -lean_ctor_set_uint8(v___x_4669_, sizeof(void*)*6 + 1, v___x_4656_); -lean_ctor_set_uint8(v___x_4669_, sizeof(void*)*6 + 2, v___x_4656_); -if (v_isShared_4655_ == 0) -{ -lean_ctor_set(v___x_4654_, 1, v___x_4669_); -v___x_4671_ = v___x_4654_; -goto v_reusejp_4670_; -} -else -{ -lean_object* v_reuseFailAlloc_4672_; -v_reuseFailAlloc_4672_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4672_, 0, v_reader_4644_); -lean_ctor_set(v_reuseFailAlloc_4672_, 1, v___x_4669_); -lean_ctor_set(v_reuseFailAlloc_4672_, 2, v_config_4646_); -lean_ctor_set(v_reuseFailAlloc_4672_, 3, v_events_4647_); -lean_ctor_set(v_reuseFailAlloc_4672_, 4, v_error_4648_); -lean_ctor_set(v_reuseFailAlloc_4672_, 5, v_instant_4649_); -lean_ctor_set_uint8(v_reuseFailAlloc_4672_, sizeof(void*)*6, v_keepAlive_4650_); -lean_ctor_set_uint8(v_reuseFailAlloc_4672_, sizeof(void*)*6 + 1, v_forcedFlush_4651_); -lean_ctor_set_uint8(v_reuseFailAlloc_4672_, sizeof(void*)*6 + 2, v_pullBodyStalled_4652_); -v___x_4671_ = v_reuseFailAlloc_4672_; -goto v_reusejp_4670_; -} -v_reusejp_4670_: -{ -return v___x_4671_; -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___boxed(lean_object* v_dir_4681_, lean_object* v_machine_4682_, lean_object* v_forceZero_4683_){ -_start: -{ -uint8_t v_dir_boxed_4684_; uint8_t v_forceZero_boxed_4685_; lean_object* v_res_4686_; -v_dir_boxed_4684_ = lean_unbox(v_dir_4681_); -v_forceZero_boxed_4685_ = lean_unbox(v_forceZero_4683_); -v_res_4686_ = l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody(v_dir_boxed_4684_, v_machine_4682_, v_forceZero_boxed_4685_); -return v_res_4686_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg(lean_object* v_machine_4687_, uint8_t v_framingInHeaders_4688_){ -_start: -{ -if (v_framingInHeaders_4688_ == 0) -{ -return v_machine_4687_; -} -else -{ -lean_object* v_reader_4689_; lean_object* v_writer_4690_; lean_object* v_config_4691_; lean_object* v_events_4692_; lean_object* v_instant_4693_; uint8_t v_keepAlive_4694_; uint8_t v_forcedFlush_4695_; uint8_t v_pullBodyStalled_4696_; lean_object* v___x_4698_; uint8_t v_isShared_4699_; uint8_t v_isSharedCheck_4721_; -v_reader_4689_ = lean_ctor_get(v_machine_4687_, 0); -v_writer_4690_ = lean_ctor_get(v_machine_4687_, 1); -v_config_4691_ = lean_ctor_get(v_machine_4687_, 2); -v_events_4692_ = lean_ctor_get(v_machine_4687_, 3); -v_instant_4693_ = lean_ctor_get(v_machine_4687_, 5); -v_keepAlive_4694_ = lean_ctor_get_uint8(v_machine_4687_, sizeof(void*)*6); -v_forcedFlush_4695_ = lean_ctor_get_uint8(v_machine_4687_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4696_ = lean_ctor_get_uint8(v_machine_4687_, sizeof(void*)*6 + 2); -v_isSharedCheck_4721_ = !lean_is_exclusive(v_machine_4687_); -if (v_isSharedCheck_4721_ == 0) -{ -lean_object* v_unused_4722_; -v_unused_4722_ = lean_ctor_get(v_machine_4687_, 4); -lean_dec(v_unused_4722_); -v___x_4698_ = v_machine_4687_; -v_isShared_4699_ = v_isSharedCheck_4721_; -goto v_resetjp_4697_; -} -else -{ -lean_inc(v_instant_4693_); -lean_inc(v_events_4692_); -lean_inc(v_config_4691_); -lean_inc(v_writer_4690_); -lean_inc(v_reader_4689_); -lean_dec(v_machine_4687_); -v___x_4698_ = lean_box(0); -v_isShared_4699_ = v_isSharedCheck_4721_; -goto v_resetjp_4697_; -} -v_resetjp_4697_: -{ -lean_object* v_input_4700_; lean_object* v_messageHead_4701_; lean_object* v_messageCount_4702_; lean_object* v_bodyBytesRead_4703_; lean_object* v_headerBytesRead_4704_; uint8_t v_noMoreInput_4705_; lean_object* v___x_4707_; uint8_t v_isShared_4708_; uint8_t v_isSharedCheck_4719_; -v_input_4700_ = lean_ctor_get(v_reader_4689_, 1); -v_messageHead_4701_ = lean_ctor_get(v_reader_4689_, 2); -v_messageCount_4702_ = lean_ctor_get(v_reader_4689_, 3); -v_bodyBytesRead_4703_ = lean_ctor_get(v_reader_4689_, 4); -v_headerBytesRead_4704_ = lean_ctor_get(v_reader_4689_, 5); -v_noMoreInput_4705_ = lean_ctor_get_uint8(v_reader_4689_, sizeof(void*)*6); -v_isSharedCheck_4719_ = !lean_is_exclusive(v_reader_4689_); -if (v_isSharedCheck_4719_ == 0) -{ -lean_object* v_unused_4720_; -v_unused_4720_ = lean_ctor_get(v_reader_4689_, 0); -lean_dec(v_unused_4720_); -v___x_4707_ = v_reader_4689_; -v_isShared_4708_ = v_isSharedCheck_4719_; -goto v_resetjp_4706_; -} -else -{ -lean_inc(v_headerBytesRead_4704_); -lean_inc(v_bodyBytesRead_4703_); -lean_inc(v_messageCount_4702_); -lean_inc(v_messageHead_4701_); -lean_inc(v_input_4700_); -lean_dec(v_reader_4689_); -v___x_4707_ = lean_box(0); -v_isShared_4708_ = v_isSharedCheck_4719_; -goto v_resetjp_4706_; -} -v_resetjp_4706_: -{ -lean_object* v___x_4709_; lean_object* v___x_4710_; lean_object* v___x_4711_; lean_object* v___x_4713_; -v___x_4709_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_4710_ = lean_array_push(v_events_4692_, v___x_4709_); -v___x_4711_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_4708_ == 0) -{ -lean_ctor_set(v___x_4707_, 0, v___x_4711_); -v___x_4713_ = v___x_4707_; +lean_object* v___x_4736_; +lean_dec(v_idx_4696_); +lean_dec_ref(v_array_4695_); +v___x_4736_ = l_ByteArray_mkIterator(v_data_4673_); +v___y_4699_ = v___x_4736_; +goto v___jp_4698_; +} +v___jp_4698_: +{ +lean_object* v_maxHeaderBytes_4700_; lean_object* v_maxStartLineLength_4701_; lean_object* v_maxChunkLineLength_4702_; lean_object* v_maxBodySize_4703_; lean_object* v_array_4704_; lean_object* v_idx_4705_; lean_object* v___x_4706_; lean_object* v___x_4707_; lean_object* v___x_4708_; lean_object* v___x_4709_; lean_object* v___x_4710_; uint8_t v___x_4711_; +v_maxHeaderBytes_4700_ = lean_ctor_get(v_config_4678_, 2); +v_maxStartLineLength_4701_ = lean_ctor_get(v_config_4678_, 5); +v_maxChunkLineLength_4702_ = lean_ctor_get(v_config_4678_, 13); +v_maxBodySize_4703_ = lean_ctor_get(v_config_4678_, 15); +v_array_4704_ = lean_ctor_get(v___y_4699_, 0); +v_idx_4705_ = lean_ctor_get(v___y_4699_, 1); +v___x_4706_ = lean_nat_add(v_maxBodySize_4703_, v_maxHeaderBytes_4700_); +v___x_4707_ = lean_nat_add(v___x_4706_, v_maxStartLineLength_4701_); +lean_dec(v___x_4706_); +v___x_4708_ = lean_nat_add(v___x_4707_, v_maxChunkLineLength_4702_); +lean_dec(v___x_4707_); +v___x_4709_ = lean_byte_array_size(v_array_4704_); +v___x_4710_ = lean_nat_sub(v___x_4709_, v_idx_4705_); +v___x_4711_ = lean_nat_dec_lt(v___x_4708_, v___x_4710_); +lean_dec(v___x_4710_); +lean_dec(v___x_4708_); +if (v___x_4711_ == 0) +{ +lean_object* v___x_4713_; +if (v_isShared_4694_ == 0) +{ +lean_ctor_set(v___x_4693_, 1, v___y_4699_); +v___x_4713_ = v___x_4693_; goto v_reusejp_4712_; } else { -lean_object* v_reuseFailAlloc_4718_; -v_reuseFailAlloc_4718_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4718_, 0, v___x_4711_); -lean_ctor_set(v_reuseFailAlloc_4718_, 1, v_input_4700_); -lean_ctor_set(v_reuseFailAlloc_4718_, 2, v_messageHead_4701_); -lean_ctor_set(v_reuseFailAlloc_4718_, 3, v_messageCount_4702_); -lean_ctor_set(v_reuseFailAlloc_4718_, 4, v_bodyBytesRead_4703_); -lean_ctor_set(v_reuseFailAlloc_4718_, 5, v_headerBytesRead_4704_); -lean_ctor_set_uint8(v_reuseFailAlloc_4718_, sizeof(void*)*6, v_noMoreInput_4705_); -v___x_4713_ = v_reuseFailAlloc_4718_; -goto v_reusejp_4712_; -} -v_reusejp_4712_: -{ -lean_object* v___x_4714_; lean_object* v___x_4716_; -v___x_4714_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_4699_ == 0) -{ -lean_ctor_set(v___x_4698_, 4, v___x_4714_); -lean_ctor_set(v___x_4698_, 3, v___x_4710_); -lean_ctor_set(v___x_4698_, 0, v___x_4713_); -v___x_4716_ = v___x_4698_; -goto v_reusejp_4715_; -} -else -{ lean_object* v_reuseFailAlloc_4717_; -v_reuseFailAlloc_4717_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4717_, 0, v___x_4713_); -lean_ctor_set(v_reuseFailAlloc_4717_, 1, v_writer_4690_); -lean_ctor_set(v_reuseFailAlloc_4717_, 2, v_config_4691_); -lean_ctor_set(v_reuseFailAlloc_4717_, 3, v___x_4710_); -lean_ctor_set(v_reuseFailAlloc_4717_, 4, v___x_4714_); -lean_ctor_set(v_reuseFailAlloc_4717_, 5, v_instant_4693_); -lean_ctor_set_uint8(v_reuseFailAlloc_4717_, sizeof(void*)*6, v_keepAlive_4694_); -lean_ctor_set_uint8(v_reuseFailAlloc_4717_, sizeof(void*)*6 + 1, v_forcedFlush_4695_); -lean_ctor_set_uint8(v_reuseFailAlloc_4717_, sizeof(void*)*6 + 2, v_pullBodyStalled_4696_); -v___x_4716_ = v_reuseFailAlloc_4717_; -goto v_reusejp_4715_; +v_reuseFailAlloc_4717_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4717_, 0, v_state_4675_); +lean_ctor_set(v_reuseFailAlloc_4717_, 1, v___y_4699_); +lean_ctor_set(v_reuseFailAlloc_4717_, 2, v_messageHead_4687_); +lean_ctor_set(v_reuseFailAlloc_4717_, 3, v_messageCount_4688_); +lean_ctor_set(v_reuseFailAlloc_4717_, 4, v_bodyBytesRead_4689_); +lean_ctor_set(v_reuseFailAlloc_4717_, 5, v_headerBytesRead_4690_); +lean_ctor_set_uint8(v_reuseFailAlloc_4717_, sizeof(void*)*6, v_noMoreInput_4691_); +v___x_4713_ = v_reuseFailAlloc_4717_; +goto v_reusejp_4712_; } -v_reusejp_4715_: +v_reusejp_4712_: { -return v___x_4716_; +lean_object* v_machine_4715_; +if (v_isShared_4686_ == 0) +{ +lean_ctor_set(v___x_4685_, 0, v___x_4713_); +v_machine_4715_ = v___x_4685_; +goto v_reusejp_4714_; +} +else +{ +lean_object* v_reuseFailAlloc_4716_; +v_reuseFailAlloc_4716_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4716_, 0, v___x_4713_); +lean_ctor_set(v_reuseFailAlloc_4716_, 1, v_writer_4677_); +lean_ctor_set(v_reuseFailAlloc_4716_, 2, v_config_4678_); +lean_ctor_set(v_reuseFailAlloc_4716_, 3, v_events_4679_); +lean_ctor_set(v_reuseFailAlloc_4716_, 4, v_error_4680_); +lean_ctor_set(v_reuseFailAlloc_4716_, 5, v_instant_4681_); +lean_ctor_set_uint8(v_reuseFailAlloc_4716_, sizeof(void*)*6, v_keepAlive_4682_); +lean_ctor_set_uint8(v_reuseFailAlloc_4716_, sizeof(void*)*6 + 1, v_forcedFlush_4683_); +v_machine_4715_ = v_reuseFailAlloc_4716_; +goto v_reusejp_4714_; +} +v_reusejp_4714_: +{ +lean_ctor_set_uint8(v_machine_4715_, sizeof(void*)*6 + 2, v___x_4697_); +return v_machine_4715_; +} +} +} +else +{ +lean_object* v___x_4718_; lean_object* v___x_4719_; lean_object* v___x_4720_; lean_object* v___x_4722_; +lean_dec(v_error_4680_); +lean_dec(v_state_4675_); +v___x_4718_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_4719_ = lean_array_push(v_events_4679_, v___x_4718_); +v___x_4720_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_4694_ == 0) +{ +lean_ctor_set(v___x_4693_, 1, v___y_4699_); +lean_ctor_set(v___x_4693_, 0, v___x_4720_); +v___x_4722_ = v___x_4693_; +goto v_reusejp_4721_; +} +else +{ +lean_object* v_reuseFailAlloc_4727_; +v_reuseFailAlloc_4727_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4727_, 0, v___x_4720_); +lean_ctor_set(v_reuseFailAlloc_4727_, 1, v___y_4699_); +lean_ctor_set(v_reuseFailAlloc_4727_, 2, v_messageHead_4687_); +lean_ctor_set(v_reuseFailAlloc_4727_, 3, v_messageCount_4688_); +lean_ctor_set(v_reuseFailAlloc_4727_, 4, v_bodyBytesRead_4689_); +lean_ctor_set(v_reuseFailAlloc_4727_, 5, v_headerBytesRead_4690_); +lean_ctor_set_uint8(v_reuseFailAlloc_4727_, sizeof(void*)*6, v_noMoreInput_4691_); +v___x_4722_ = v_reuseFailAlloc_4727_; +goto v_reusejp_4721_; +} +v_reusejp_4721_: +{ +lean_object* v___x_4723_; lean_object* v___x_4725_; +v___x_4723_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_4686_ == 0) +{ +lean_ctor_set(v___x_4685_, 4, v___x_4723_); +lean_ctor_set(v___x_4685_, 3, v___x_4719_); +lean_ctor_set(v___x_4685_, 0, v___x_4722_); +v___x_4725_ = v___x_4685_; +goto v_reusejp_4724_; +} +else +{ +lean_object* v_reuseFailAlloc_4726_; +v_reuseFailAlloc_4726_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4726_, 0, v___x_4722_); +lean_ctor_set(v_reuseFailAlloc_4726_, 1, v_writer_4677_); +lean_ctor_set(v_reuseFailAlloc_4726_, 2, v_config_4678_); +lean_ctor_set(v_reuseFailAlloc_4726_, 3, v___x_4719_); +lean_ctor_set(v_reuseFailAlloc_4726_, 4, v___x_4723_); +lean_ctor_set(v_reuseFailAlloc_4726_, 5, v_instant_4681_); +lean_ctor_set_uint8(v_reuseFailAlloc_4726_, sizeof(void*)*6, v_keepAlive_4682_); +lean_ctor_set_uint8(v_reuseFailAlloc_4726_, sizeof(void*)*6 + 1, v_forcedFlush_4683_); +v___x_4725_ = v_reuseFailAlloc_4726_; +goto v_reusejp_4724_; +} +v_reusejp_4724_: +{ +lean_ctor_set_uint8(v___x_4725_, sizeof(void*)*6 + 2, v___x_4697_); +return v___x_4725_; } } } @@ -17039,1804 +16837,1732 @@ return v___x_4716_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg___boxed(lean_object* v_machine_4723_, lean_object* v_framingInHeaders_4724_){ +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_feed___boxed(lean_object* v_dir_4742_, lean_object* v_machine_4743_, lean_object* v_data_4744_){ _start: { -uint8_t v_framingInHeaders_boxed_4725_; lean_object* v_res_4726_; -v_framingInHeaders_boxed_4725_ = lean_unbox(v_framingInHeaders_4724_); -v_res_4726_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg(v_machine_4723_, v_framingInHeaders_boxed_4725_); -return v_res_4726_; +uint8_t v_dir_boxed_4745_; lean_object* v_res_4746_; +v_dir_boxed_4745_ = lean_unbox(v_dir_4742_); +v_res_4746_ = l_Std_Http_Protocol_H1_Machine_feed(v_dir_boxed_4745_, v_machine_4743_, v_data_4744_); +return v_res_4746_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders(uint8_t v_dir_4727_, lean_object* v_machine_4728_, uint8_t v_framingInHeaders_4729_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader___redArg(lean_object* v_machine_4747_){ _start: { -if (v_framingInHeaders_4729_ == 0) +lean_object* v_reader_4748_; lean_object* v_writer_4749_; lean_object* v_config_4750_; lean_object* v_events_4751_; lean_object* v_error_4752_; lean_object* v_instant_4753_; uint8_t v_keepAlive_4754_; uint8_t v_forcedFlush_4755_; uint8_t v_pullBodyStalled_4756_; lean_object* v___x_4758_; uint8_t v_isShared_4759_; uint8_t v_isSharedCheck_4777_; +v_reader_4748_ = lean_ctor_get(v_machine_4747_, 0); +v_writer_4749_ = lean_ctor_get(v_machine_4747_, 1); +v_config_4750_ = lean_ctor_get(v_machine_4747_, 2); +v_events_4751_ = lean_ctor_get(v_machine_4747_, 3); +v_error_4752_ = lean_ctor_get(v_machine_4747_, 4); +v_instant_4753_ = lean_ctor_get(v_machine_4747_, 5); +v_keepAlive_4754_ = lean_ctor_get_uint8(v_machine_4747_, sizeof(void*)*6); +v_forcedFlush_4755_ = lean_ctor_get_uint8(v_machine_4747_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4756_ = lean_ctor_get_uint8(v_machine_4747_, sizeof(void*)*6 + 2); +v_isSharedCheck_4777_ = !lean_is_exclusive(v_machine_4747_); +if (v_isSharedCheck_4777_ == 0) { -return v_machine_4728_; +v___x_4758_ = v_machine_4747_; +v_isShared_4759_ = v_isSharedCheck_4777_; +goto v_resetjp_4757_; } else { -lean_object* v_reader_4730_; lean_object* v_writer_4731_; lean_object* v_config_4732_; lean_object* v_events_4733_; lean_object* v_instant_4734_; uint8_t v_keepAlive_4735_; uint8_t v_forcedFlush_4736_; uint8_t v_pullBodyStalled_4737_; lean_object* v___x_4739_; uint8_t v_isShared_4740_; uint8_t v_isSharedCheck_4762_; -v_reader_4730_ = lean_ctor_get(v_machine_4728_, 0); -v_writer_4731_ = lean_ctor_get(v_machine_4728_, 1); -v_config_4732_ = lean_ctor_get(v_machine_4728_, 2); -v_events_4733_ = lean_ctor_get(v_machine_4728_, 3); -v_instant_4734_ = lean_ctor_get(v_machine_4728_, 5); -v_keepAlive_4735_ = lean_ctor_get_uint8(v_machine_4728_, sizeof(void*)*6); -v_forcedFlush_4736_ = lean_ctor_get_uint8(v_machine_4728_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4737_ = lean_ctor_get_uint8(v_machine_4728_, sizeof(void*)*6 + 2); -v_isSharedCheck_4762_ = !lean_is_exclusive(v_machine_4728_); -if (v_isSharedCheck_4762_ == 0) +lean_inc(v_instant_4753_); +lean_inc(v_error_4752_); +lean_inc(v_events_4751_); +lean_inc(v_config_4750_); +lean_inc(v_writer_4749_); +lean_inc(v_reader_4748_); +lean_dec(v_machine_4747_); +v___x_4758_ = lean_box(0); +v_isShared_4759_ = v_isSharedCheck_4777_; +goto v_resetjp_4757_; +} +v_resetjp_4757_: { -lean_object* v_unused_4763_; -v_unused_4763_ = lean_ctor_get(v_machine_4728_, 4); -lean_dec(v_unused_4763_); -v___x_4739_ = v_machine_4728_; -v_isShared_4740_ = v_isSharedCheck_4762_; -goto v_resetjp_4738_; +lean_object* v_state_4760_; lean_object* v_input_4761_; lean_object* v_messageHead_4762_; lean_object* v_messageCount_4763_; lean_object* v_bodyBytesRead_4764_; lean_object* v_headerBytesRead_4765_; lean_object* v___x_4767_; uint8_t v_isShared_4768_; uint8_t v_isSharedCheck_4776_; +v_state_4760_ = lean_ctor_get(v_reader_4748_, 0); +v_input_4761_ = lean_ctor_get(v_reader_4748_, 1); +v_messageHead_4762_ = lean_ctor_get(v_reader_4748_, 2); +v_messageCount_4763_ = lean_ctor_get(v_reader_4748_, 3); +v_bodyBytesRead_4764_ = lean_ctor_get(v_reader_4748_, 4); +v_headerBytesRead_4765_ = lean_ctor_get(v_reader_4748_, 5); +v_isSharedCheck_4776_ = !lean_is_exclusive(v_reader_4748_); +if (v_isSharedCheck_4776_ == 0) +{ +v___x_4767_ = v_reader_4748_; +v_isShared_4768_ = v_isSharedCheck_4776_; +goto v_resetjp_4766_; } else { -lean_inc(v_instant_4734_); -lean_inc(v_events_4733_); -lean_inc(v_config_4732_); -lean_inc(v_writer_4731_); -lean_inc(v_reader_4730_); -lean_dec(v_machine_4728_); -v___x_4739_ = lean_box(0); -v_isShared_4740_ = v_isSharedCheck_4762_; -goto v_resetjp_4738_; +lean_inc(v_headerBytesRead_4765_); +lean_inc(v_bodyBytesRead_4764_); +lean_inc(v_messageCount_4763_); +lean_inc(v_messageHead_4762_); +lean_inc(v_input_4761_); +lean_inc(v_state_4760_); +lean_dec(v_reader_4748_); +v___x_4767_ = lean_box(0); +v_isShared_4768_ = v_isSharedCheck_4776_; +goto v_resetjp_4766_; } -v_resetjp_4738_: +v_resetjp_4766_: { -lean_object* v_input_4741_; lean_object* v_messageHead_4742_; lean_object* v_messageCount_4743_; lean_object* v_bodyBytesRead_4744_; lean_object* v_headerBytesRead_4745_; uint8_t v_noMoreInput_4746_; lean_object* v___x_4748_; uint8_t v_isShared_4749_; uint8_t v_isSharedCheck_4760_; -v_input_4741_ = lean_ctor_get(v_reader_4730_, 1); -v_messageHead_4742_ = lean_ctor_get(v_reader_4730_, 2); -v_messageCount_4743_ = lean_ctor_get(v_reader_4730_, 3); -v_bodyBytesRead_4744_ = lean_ctor_get(v_reader_4730_, 4); -v_headerBytesRead_4745_ = lean_ctor_get(v_reader_4730_, 5); -v_noMoreInput_4746_ = lean_ctor_get_uint8(v_reader_4730_, sizeof(void*)*6); -v_isSharedCheck_4760_ = !lean_is_exclusive(v_reader_4730_); -if (v_isSharedCheck_4760_ == 0) +uint8_t v___x_4769_; lean_object* v___x_4771_; +v___x_4769_ = 1; +if (v_isShared_4768_ == 0) { -lean_object* v_unused_4761_; -v_unused_4761_ = lean_ctor_get(v_reader_4730_, 0); -lean_dec(v_unused_4761_); -v___x_4748_ = v_reader_4730_; -v_isShared_4749_ = v_isSharedCheck_4760_; -goto v_resetjp_4747_; +v___x_4771_ = v___x_4767_; +goto v_reusejp_4770_; } else { -lean_inc(v_headerBytesRead_4745_); -lean_inc(v_bodyBytesRead_4744_); -lean_inc(v_messageCount_4743_); -lean_inc(v_messageHead_4742_); -lean_inc(v_input_4741_); -lean_dec(v_reader_4730_); -v___x_4748_ = lean_box(0); -v_isShared_4749_ = v_isSharedCheck_4760_; -goto v_resetjp_4747_; +lean_object* v_reuseFailAlloc_4775_; +v_reuseFailAlloc_4775_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4775_, 0, v_state_4760_); +lean_ctor_set(v_reuseFailAlloc_4775_, 1, v_input_4761_); +lean_ctor_set(v_reuseFailAlloc_4775_, 2, v_messageHead_4762_); +lean_ctor_set(v_reuseFailAlloc_4775_, 3, v_messageCount_4763_); +lean_ctor_set(v_reuseFailAlloc_4775_, 4, v_bodyBytesRead_4764_); +lean_ctor_set(v_reuseFailAlloc_4775_, 5, v_headerBytesRead_4765_); +v___x_4771_ = v_reuseFailAlloc_4775_; +goto v_reusejp_4770_; } -v_resetjp_4747_: +v_reusejp_4770_: { -lean_object* v___x_4750_; lean_object* v___x_4751_; lean_object* v___x_4752_; lean_object* v___x_4754_; -v___x_4750_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_4751_ = lean_array_push(v_events_4733_, v___x_4750_); -v___x_4752_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_4749_ == 0) +lean_object* v___x_4773_; +lean_ctor_set_uint8(v___x_4771_, sizeof(void*)*6, v___x_4769_); +if (v_isShared_4759_ == 0) { -lean_ctor_set(v___x_4748_, 0, v___x_4752_); -v___x_4754_ = v___x_4748_; -goto v_reusejp_4753_; +lean_ctor_set(v___x_4758_, 0, v___x_4771_); +v___x_4773_ = v___x_4758_; +goto v_reusejp_4772_; } else { -lean_object* v_reuseFailAlloc_4759_; -v_reuseFailAlloc_4759_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4759_, 0, v___x_4752_); -lean_ctor_set(v_reuseFailAlloc_4759_, 1, v_input_4741_); -lean_ctor_set(v_reuseFailAlloc_4759_, 2, v_messageHead_4742_); -lean_ctor_set(v_reuseFailAlloc_4759_, 3, v_messageCount_4743_); -lean_ctor_set(v_reuseFailAlloc_4759_, 4, v_bodyBytesRead_4744_); -lean_ctor_set(v_reuseFailAlloc_4759_, 5, v_headerBytesRead_4745_); -lean_ctor_set_uint8(v_reuseFailAlloc_4759_, sizeof(void*)*6, v_noMoreInput_4746_); -v___x_4754_ = v_reuseFailAlloc_4759_; -goto v_reusejp_4753_; +lean_object* v_reuseFailAlloc_4774_; +v_reuseFailAlloc_4774_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4774_, 0, v___x_4771_); +lean_ctor_set(v_reuseFailAlloc_4774_, 1, v_writer_4749_); +lean_ctor_set(v_reuseFailAlloc_4774_, 2, v_config_4750_); +lean_ctor_set(v_reuseFailAlloc_4774_, 3, v_events_4751_); +lean_ctor_set(v_reuseFailAlloc_4774_, 4, v_error_4752_); +lean_ctor_set(v_reuseFailAlloc_4774_, 5, v_instant_4753_); +lean_ctor_set_uint8(v_reuseFailAlloc_4774_, sizeof(void*)*6, v_keepAlive_4754_); +lean_ctor_set_uint8(v_reuseFailAlloc_4774_, sizeof(void*)*6 + 1, v_forcedFlush_4755_); +lean_ctor_set_uint8(v_reuseFailAlloc_4774_, sizeof(void*)*6 + 2, v_pullBodyStalled_4756_); +v___x_4773_ = v_reuseFailAlloc_4774_; +goto v_reusejp_4772_; } -v_reusejp_4753_: +v_reusejp_4772_: { -lean_object* v___x_4755_; lean_object* v___x_4757_; -v___x_4755_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_4740_ == 0) -{ -lean_ctor_set(v___x_4739_, 4, v___x_4755_); -lean_ctor_set(v___x_4739_, 3, v___x_4751_); -lean_ctor_set(v___x_4739_, 0, v___x_4754_); -v___x_4757_ = v___x_4739_; -goto v_reusejp_4756_; -} -else -{ -lean_object* v_reuseFailAlloc_4758_; -v_reuseFailAlloc_4758_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4758_, 0, v___x_4754_); -lean_ctor_set(v_reuseFailAlloc_4758_, 1, v_writer_4731_); -lean_ctor_set(v_reuseFailAlloc_4758_, 2, v_config_4732_); -lean_ctor_set(v_reuseFailAlloc_4758_, 3, v___x_4751_); -lean_ctor_set(v_reuseFailAlloc_4758_, 4, v___x_4755_); -lean_ctor_set(v_reuseFailAlloc_4758_, 5, v_instant_4734_); -lean_ctor_set_uint8(v_reuseFailAlloc_4758_, sizeof(void*)*6, v_keepAlive_4735_); -lean_ctor_set_uint8(v_reuseFailAlloc_4758_, sizeof(void*)*6 + 1, v_forcedFlush_4736_); -lean_ctor_set_uint8(v_reuseFailAlloc_4758_, sizeof(void*)*6 + 2, v_pullBodyStalled_4737_); -v___x_4757_ = v_reuseFailAlloc_4758_; -goto v_reusejp_4756_; -} -v_reusejp_4756_: -{ -return v___x_4757_; +return v___x_4773_; } } } } } } -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___boxed(lean_object* v_dir_4764_, lean_object* v_machine_4765_, lean_object* v_framingInHeaders_4766_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader(uint8_t v_dir_4778_, lean_object* v_machine_4779_){ _start: { -uint8_t v_dir_boxed_4767_; uint8_t v_framingInHeaders_boxed_4768_; lean_object* v_res_4769_; -v_dir_boxed_4767_ = lean_unbox(v_dir_4764_); -v_framingInHeaders_boxed_4768_ = lean_unbox(v_framingInHeaders_4766_); -v_res_4769_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders(v_dir_boxed_4767_, v_machine_4765_, v_framingInHeaders_boxed_4768_); -return v_res_4769_; +lean_object* v_reader_4780_; lean_object* v_writer_4781_; lean_object* v_config_4782_; lean_object* v_events_4783_; lean_object* v_error_4784_; lean_object* v_instant_4785_; uint8_t v_keepAlive_4786_; uint8_t v_forcedFlush_4787_; uint8_t v_pullBodyStalled_4788_; lean_object* v___x_4790_; uint8_t v_isShared_4791_; uint8_t v_isSharedCheck_4809_; +v_reader_4780_ = lean_ctor_get(v_machine_4779_, 0); +v_writer_4781_ = lean_ctor_get(v_machine_4779_, 1); +v_config_4782_ = lean_ctor_get(v_machine_4779_, 2); +v_events_4783_ = lean_ctor_get(v_machine_4779_, 3); +v_error_4784_ = lean_ctor_get(v_machine_4779_, 4); +v_instant_4785_ = lean_ctor_get(v_machine_4779_, 5); +v_keepAlive_4786_ = lean_ctor_get_uint8(v_machine_4779_, sizeof(void*)*6); +v_forcedFlush_4787_ = lean_ctor_get_uint8(v_machine_4779_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4788_ = lean_ctor_get_uint8(v_machine_4779_, sizeof(void*)*6 + 2); +v_isSharedCheck_4809_ = !lean_is_exclusive(v_machine_4779_); +if (v_isSharedCheck_4809_ == 0) +{ +v___x_4790_ = v_machine_4779_; +v_isShared_4791_ = v_isSharedCheck_4809_; +goto v_resetjp_4789_; +} +else +{ +lean_inc(v_instant_4785_); +lean_inc(v_error_4784_); +lean_inc(v_events_4783_); +lean_inc(v_config_4782_); +lean_inc(v_writer_4781_); +lean_inc(v_reader_4780_); +lean_dec(v_machine_4779_); +v___x_4790_ = lean_box(0); +v_isShared_4791_ = v_isSharedCheck_4809_; +goto v_resetjp_4789_; +} +v_resetjp_4789_: +{ +lean_object* v_state_4792_; lean_object* v_input_4793_; lean_object* v_messageHead_4794_; lean_object* v_messageCount_4795_; lean_object* v_bodyBytesRead_4796_; lean_object* v_headerBytesRead_4797_; lean_object* v___x_4799_; uint8_t v_isShared_4800_; uint8_t v_isSharedCheck_4808_; +v_state_4792_ = lean_ctor_get(v_reader_4780_, 0); +v_input_4793_ = lean_ctor_get(v_reader_4780_, 1); +v_messageHead_4794_ = lean_ctor_get(v_reader_4780_, 2); +v_messageCount_4795_ = lean_ctor_get(v_reader_4780_, 3); +v_bodyBytesRead_4796_ = lean_ctor_get(v_reader_4780_, 4); +v_headerBytesRead_4797_ = lean_ctor_get(v_reader_4780_, 5); +v_isSharedCheck_4808_ = !lean_is_exclusive(v_reader_4780_); +if (v_isSharedCheck_4808_ == 0) +{ +v___x_4799_ = v_reader_4780_; +v_isShared_4800_ = v_isSharedCheck_4808_; +goto v_resetjp_4798_; +} +else +{ +lean_inc(v_headerBytesRead_4797_); +lean_inc(v_bodyBytesRead_4796_); +lean_inc(v_messageCount_4795_); +lean_inc(v_messageHead_4794_); +lean_inc(v_input_4793_); +lean_inc(v_state_4792_); +lean_dec(v_reader_4780_); +v___x_4799_ = lean_box(0); +v_isShared_4800_ = v_isSharedCheck_4808_; +goto v_resetjp_4798_; +} +v_resetjp_4798_: +{ +uint8_t v___x_4801_; lean_object* v___x_4803_; +v___x_4801_ = 1; +if (v_isShared_4800_ == 0) +{ +v___x_4803_ = v___x_4799_; +goto v_reusejp_4802_; +} +else +{ +lean_object* v_reuseFailAlloc_4807_; +v_reuseFailAlloc_4807_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4807_, 0, v_state_4792_); +lean_ctor_set(v_reuseFailAlloc_4807_, 1, v_input_4793_); +lean_ctor_set(v_reuseFailAlloc_4807_, 2, v_messageHead_4794_); +lean_ctor_set(v_reuseFailAlloc_4807_, 3, v_messageCount_4795_); +lean_ctor_set(v_reuseFailAlloc_4807_, 4, v_bodyBytesRead_4796_); +lean_ctor_set(v_reuseFailAlloc_4807_, 5, v_headerBytesRead_4797_); +v___x_4803_ = v_reuseFailAlloc_4807_; +goto v_reusejp_4802_; +} +v_reusejp_4802_: +{ +lean_object* v___x_4805_; +lean_ctor_set_uint8(v___x_4803_, sizeof(void*)*6, v___x_4801_); +if (v_isShared_4791_ == 0) +{ +lean_ctor_set(v___x_4790_, 0, v___x_4803_); +v___x_4805_ = v___x_4790_; +goto v_reusejp_4804_; +} +else +{ +lean_object* v_reuseFailAlloc_4806_; +v_reuseFailAlloc_4806_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4806_, 0, v___x_4803_); +lean_ctor_set(v_reuseFailAlloc_4806_, 1, v_writer_4781_); +lean_ctor_set(v_reuseFailAlloc_4806_, 2, v_config_4782_); +lean_ctor_set(v_reuseFailAlloc_4806_, 3, v_events_4783_); +lean_ctor_set(v_reuseFailAlloc_4806_, 4, v_error_4784_); +lean_ctor_set(v_reuseFailAlloc_4806_, 5, v_instant_4785_); +lean_ctor_set_uint8(v_reuseFailAlloc_4806_, sizeof(void*)*6, v_keepAlive_4786_); +lean_ctor_set_uint8(v_reuseFailAlloc_4806_, sizeof(void*)*6 + 1, v_forcedFlush_4787_); +lean_ctor_set_uint8(v_reuseFailAlloc_4806_, sizeof(void*)*6 + 2, v_pullBodyStalled_4788_); +v___x_4805_ = v_reuseFailAlloc_4806_; +goto v_reusejp_4804_; +} +v_reusejp_4804_: +{ +return v___x_4805_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(lean_object* v_machine_4770_, lean_object* v_headerSize_4771_, uint8_t v_framingInHeaders_4772_){ +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeReader___boxed(lean_object* v_dir_4810_, lean_object* v_machine_4811_){ _start: { -lean_object* v_writer_4773_; lean_object* v_knownSize_4774_; -v_writer_4773_ = lean_ctor_get(v_machine_4770_, 1); -lean_inc_ref(v_writer_4773_); -v_knownSize_4774_ = lean_ctor_get(v_writer_4773_, 3); -if (lean_obj_tag(v_knownSize_4774_) == 0) -{ -if (lean_obj_tag(v_headerSize_4771_) == 0) -{ -if (v_framingInHeaders_4772_ == 0) -{ -lean_dec_ref(v_writer_4773_); -return v_machine_4770_; -} -else -{ -lean_object* v_reader_4775_; lean_object* v_config_4776_; lean_object* v_events_4777_; lean_object* v_instant_4778_; uint8_t v_keepAlive_4779_; uint8_t v_forcedFlush_4780_; uint8_t v_pullBodyStalled_4781_; lean_object* v___x_4783_; uint8_t v_isShared_4784_; uint8_t v_isSharedCheck_4806_; -v_reader_4775_ = lean_ctor_get(v_machine_4770_, 0); -v_config_4776_ = lean_ctor_get(v_machine_4770_, 2); -v_events_4777_ = lean_ctor_get(v_machine_4770_, 3); -v_instant_4778_ = lean_ctor_get(v_machine_4770_, 5); -v_keepAlive_4779_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6); -v_forcedFlush_4780_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4781_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 2); -v_isSharedCheck_4806_ = !lean_is_exclusive(v_machine_4770_); -if (v_isSharedCheck_4806_ == 0) -{ -lean_object* v_unused_4807_; lean_object* v_unused_4808_; -v_unused_4807_ = lean_ctor_get(v_machine_4770_, 4); -lean_dec(v_unused_4807_); -v_unused_4808_ = lean_ctor_get(v_machine_4770_, 1); -lean_dec(v_unused_4808_); -v___x_4783_ = v_machine_4770_; -v_isShared_4784_ = v_isSharedCheck_4806_; -goto v_resetjp_4782_; -} -else -{ -lean_inc(v_instant_4778_); -lean_inc(v_events_4777_); -lean_inc(v_config_4776_); -lean_inc(v_reader_4775_); -lean_dec(v_machine_4770_); -v___x_4783_ = lean_box(0); -v_isShared_4784_ = v_isSharedCheck_4806_; -goto v_resetjp_4782_; -} -v_resetjp_4782_: -{ -lean_object* v_input_4785_; lean_object* v_messageHead_4786_; lean_object* v_messageCount_4787_; lean_object* v_bodyBytesRead_4788_; lean_object* v_headerBytesRead_4789_; uint8_t v_noMoreInput_4790_; lean_object* v___x_4792_; uint8_t v_isShared_4793_; uint8_t v_isSharedCheck_4804_; -v_input_4785_ = lean_ctor_get(v_reader_4775_, 1); -v_messageHead_4786_ = lean_ctor_get(v_reader_4775_, 2); -v_messageCount_4787_ = lean_ctor_get(v_reader_4775_, 3); -v_bodyBytesRead_4788_ = lean_ctor_get(v_reader_4775_, 4); -v_headerBytesRead_4789_ = lean_ctor_get(v_reader_4775_, 5); -v_noMoreInput_4790_ = lean_ctor_get_uint8(v_reader_4775_, sizeof(void*)*6); -v_isSharedCheck_4804_ = !lean_is_exclusive(v_reader_4775_); -if (v_isSharedCheck_4804_ == 0) -{ -lean_object* v_unused_4805_; -v_unused_4805_ = lean_ctor_get(v_reader_4775_, 0); -lean_dec(v_unused_4805_); -v___x_4792_ = v_reader_4775_; -v_isShared_4793_ = v_isSharedCheck_4804_; -goto v_resetjp_4791_; -} -else -{ -lean_inc(v_headerBytesRead_4789_); -lean_inc(v_bodyBytesRead_4788_); -lean_inc(v_messageCount_4787_); -lean_inc(v_messageHead_4786_); -lean_inc(v_input_4785_); -lean_dec(v_reader_4775_); -v___x_4792_ = lean_box(0); -v_isShared_4793_ = v_isSharedCheck_4804_; -goto v_resetjp_4791_; -} -v_resetjp_4791_: -{ -lean_object* v___x_4794_; lean_object* v___x_4795_; lean_object* v___x_4796_; lean_object* v___x_4798_; -v___x_4794_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_4795_ = lean_array_push(v_events_4777_, v___x_4794_); -v___x_4796_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_4793_ == 0) -{ -lean_ctor_set(v___x_4792_, 0, v___x_4796_); -v___x_4798_ = v___x_4792_; -goto v_reusejp_4797_; -} -else -{ -lean_object* v_reuseFailAlloc_4803_; -v_reuseFailAlloc_4803_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4803_, 0, v___x_4796_); -lean_ctor_set(v_reuseFailAlloc_4803_, 1, v_input_4785_); -lean_ctor_set(v_reuseFailAlloc_4803_, 2, v_messageHead_4786_); -lean_ctor_set(v_reuseFailAlloc_4803_, 3, v_messageCount_4787_); -lean_ctor_set(v_reuseFailAlloc_4803_, 4, v_bodyBytesRead_4788_); -lean_ctor_set(v_reuseFailAlloc_4803_, 5, v_headerBytesRead_4789_); -lean_ctor_set_uint8(v_reuseFailAlloc_4803_, sizeof(void*)*6, v_noMoreInput_4790_); -v___x_4798_ = v_reuseFailAlloc_4803_; -goto v_reusejp_4797_; -} -v_reusejp_4797_: -{ -lean_object* v___x_4799_; lean_object* v___x_4801_; -v___x_4799_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_4784_ == 0) -{ -lean_ctor_set(v___x_4783_, 4, v___x_4799_); -lean_ctor_set(v___x_4783_, 3, v___x_4795_); -lean_ctor_set(v___x_4783_, 0, v___x_4798_); -v___x_4801_ = v___x_4783_; -goto v_reusejp_4800_; -} -else -{ -lean_object* v_reuseFailAlloc_4802_; -v_reuseFailAlloc_4802_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4802_, 0, v___x_4798_); -lean_ctor_set(v_reuseFailAlloc_4802_, 1, v_writer_4773_); -lean_ctor_set(v_reuseFailAlloc_4802_, 2, v_config_4776_); -lean_ctor_set(v_reuseFailAlloc_4802_, 3, v___x_4795_); -lean_ctor_set(v_reuseFailAlloc_4802_, 4, v___x_4799_); -lean_ctor_set(v_reuseFailAlloc_4802_, 5, v_instant_4778_); -lean_ctor_set_uint8(v_reuseFailAlloc_4802_, sizeof(void*)*6, v_keepAlive_4779_); -lean_ctor_set_uint8(v_reuseFailAlloc_4802_, sizeof(void*)*6 + 1, v_forcedFlush_4780_); -lean_ctor_set_uint8(v_reuseFailAlloc_4802_, sizeof(void*)*6 + 2, v_pullBodyStalled_4781_); -v___x_4801_ = v_reuseFailAlloc_4802_; -goto v_reusejp_4800_; -} -v_reusejp_4800_: -{ -return v___x_4801_; +uint8_t v_dir_boxed_4812_; lean_object* v_res_4813_; +v_dir_boxed_4812_ = lean_unbox(v_dir_4810_); +v_res_4813_ = l_Std_Http_Protocol_H1_Machine_closeReader(v_dir_boxed_4812_, v_machine_4811_); +return v_res_4813_; } } -} -} -} -} -else -{ -lean_object* v_reader_4809_; lean_object* v_config_4810_; lean_object* v_events_4811_; lean_object* v_error_4812_; lean_object* v_instant_4813_; uint8_t v_keepAlive_4814_; uint8_t v_forcedFlush_4815_; uint8_t v_pullBodyStalled_4816_; lean_object* v___x_4818_; uint8_t v_isShared_4819_; uint8_t v_isSharedCheck_4839_; -v_reader_4809_ = lean_ctor_get(v_machine_4770_, 0); -v_config_4810_ = lean_ctor_get(v_machine_4770_, 2); -v_events_4811_ = lean_ctor_get(v_machine_4770_, 3); -v_error_4812_ = lean_ctor_get(v_machine_4770_, 4); -v_instant_4813_ = lean_ctor_get(v_machine_4770_, 5); -v_keepAlive_4814_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6); -v_forcedFlush_4815_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4816_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 2); -v_isSharedCheck_4839_ = !lean_is_exclusive(v_machine_4770_); -if (v_isSharedCheck_4839_ == 0) -{ -lean_object* v_unused_4840_; -v_unused_4840_ = lean_ctor_get(v_machine_4770_, 1); -lean_dec(v_unused_4840_); -v___x_4818_ = v_machine_4770_; -v_isShared_4819_ = v_isSharedCheck_4839_; -goto v_resetjp_4817_; -} -else -{ -lean_inc(v_instant_4813_); -lean_inc(v_error_4812_); -lean_inc(v_events_4811_); -lean_inc(v_config_4810_); -lean_inc(v_reader_4809_); -lean_dec(v_machine_4770_); -v___x_4818_ = lean_box(0); -v_isShared_4819_ = v_isSharedCheck_4839_; -goto v_resetjp_4817_; -} -v_resetjp_4817_: -{ -lean_object* v_userData_4820_; lean_object* v_outputData_4821_; lean_object* v_state_4822_; lean_object* v_messageHead_4823_; uint8_t v_sentMessage_4824_; uint8_t v_userClosedBody_4825_; uint8_t v_omitBody_4826_; lean_object* v_userDataBytes_4827_; lean_object* v___x_4829_; uint8_t v_isShared_4830_; uint8_t v_isSharedCheck_4837_; -v_userData_4820_ = lean_ctor_get(v_writer_4773_, 0); -v_outputData_4821_ = lean_ctor_get(v_writer_4773_, 1); -v_state_4822_ = lean_ctor_get(v_writer_4773_, 2); -v_messageHead_4823_ = lean_ctor_get(v_writer_4773_, 4); -v_sentMessage_4824_ = lean_ctor_get_uint8(v_writer_4773_, sizeof(void*)*6); -v_userClosedBody_4825_ = lean_ctor_get_uint8(v_writer_4773_, sizeof(void*)*6 + 1); -v_omitBody_4826_ = lean_ctor_get_uint8(v_writer_4773_, sizeof(void*)*6 + 2); -v_userDataBytes_4827_ = lean_ctor_get(v_writer_4773_, 5); -v_isSharedCheck_4837_ = !lean_is_exclusive(v_writer_4773_); -if (v_isSharedCheck_4837_ == 0) -{ -lean_object* v_unused_4838_; -v_unused_4838_ = lean_ctor_get(v_writer_4773_, 3); -lean_dec(v_unused_4838_); -v___x_4829_ = v_writer_4773_; -v_isShared_4830_ = v_isSharedCheck_4837_; -goto v_resetjp_4828_; -} -else -{ -lean_inc(v_userDataBytes_4827_); -lean_inc(v_messageHead_4823_); -lean_inc(v_state_4822_); -lean_inc(v_outputData_4821_); -lean_inc(v_userData_4820_); -lean_dec(v_writer_4773_); -v___x_4829_ = lean_box(0); -v_isShared_4830_ = v_isSharedCheck_4837_; -goto v_resetjp_4828_; -} -v_resetjp_4828_: -{ -lean_object* v___x_4832_; -if (v_isShared_4830_ == 0) -{ -lean_ctor_set(v___x_4829_, 3, v_headerSize_4771_); -v___x_4832_ = v___x_4829_; -goto v_reusejp_4831_; -} -else -{ -lean_object* v_reuseFailAlloc_4836_; -v_reuseFailAlloc_4836_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4836_, 0, v_userData_4820_); -lean_ctor_set(v_reuseFailAlloc_4836_, 1, v_outputData_4821_); -lean_ctor_set(v_reuseFailAlloc_4836_, 2, v_state_4822_); -lean_ctor_set(v_reuseFailAlloc_4836_, 3, v_headerSize_4771_); -lean_ctor_set(v_reuseFailAlloc_4836_, 4, v_messageHead_4823_); -lean_ctor_set(v_reuseFailAlloc_4836_, 5, v_userDataBytes_4827_); -lean_ctor_set_uint8(v_reuseFailAlloc_4836_, sizeof(void*)*6, v_sentMessage_4824_); -lean_ctor_set_uint8(v_reuseFailAlloc_4836_, sizeof(void*)*6 + 1, v_userClosedBody_4825_); -lean_ctor_set_uint8(v_reuseFailAlloc_4836_, sizeof(void*)*6 + 2, v_omitBody_4826_); -v___x_4832_ = v_reuseFailAlloc_4836_; -goto v_reusejp_4831_; -} -v_reusejp_4831_: -{ -lean_object* v___x_4834_; -if (v_isShared_4819_ == 0) -{ -lean_ctor_set(v___x_4818_, 1, v___x_4832_); -v___x_4834_ = v___x_4818_; -goto v_reusejp_4833_; -} -else -{ -lean_object* v_reuseFailAlloc_4835_; -v_reuseFailAlloc_4835_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4835_, 0, v_reader_4809_); -lean_ctor_set(v_reuseFailAlloc_4835_, 1, v___x_4832_); -lean_ctor_set(v_reuseFailAlloc_4835_, 2, v_config_4810_); -lean_ctor_set(v_reuseFailAlloc_4835_, 3, v_events_4811_); -lean_ctor_set(v_reuseFailAlloc_4835_, 4, v_error_4812_); -lean_ctor_set(v_reuseFailAlloc_4835_, 5, v_instant_4813_); -lean_ctor_set_uint8(v_reuseFailAlloc_4835_, sizeof(void*)*6, v_keepAlive_4814_); -lean_ctor_set_uint8(v_reuseFailAlloc_4835_, sizeof(void*)*6 + 1, v_forcedFlush_4815_); -lean_ctor_set_uint8(v_reuseFailAlloc_4835_, sizeof(void*)*6 + 2, v_pullBodyStalled_4816_); -v___x_4834_ = v_reuseFailAlloc_4835_; -goto v_reusejp_4833_; -} -v_reusejp_4833_: -{ -return v___x_4834_; -} -} -} -} -} -} -else -{ -if (lean_obj_tag(v_headerSize_4771_) == 0) -{ -if (v_framingInHeaders_4772_ == 0) -{ -lean_dec_ref(v_writer_4773_); -return v_machine_4770_; -} -else -{ -lean_object* v_reader_4841_; lean_object* v_config_4842_; lean_object* v_events_4843_; lean_object* v_instant_4844_; uint8_t v_keepAlive_4845_; uint8_t v_forcedFlush_4846_; uint8_t v_pullBodyStalled_4847_; lean_object* v___x_4849_; uint8_t v_isShared_4850_; uint8_t v_isSharedCheck_4872_; -v_reader_4841_ = lean_ctor_get(v_machine_4770_, 0); -v_config_4842_ = lean_ctor_get(v_machine_4770_, 2); -v_events_4843_ = lean_ctor_get(v_machine_4770_, 3); -v_instant_4844_ = lean_ctor_get(v_machine_4770_, 5); -v_keepAlive_4845_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6); -v_forcedFlush_4846_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4847_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 2); -v_isSharedCheck_4872_ = !lean_is_exclusive(v_machine_4770_); -if (v_isSharedCheck_4872_ == 0) -{ -lean_object* v_unused_4873_; lean_object* v_unused_4874_; -v_unused_4873_ = lean_ctor_get(v_machine_4770_, 4); -lean_dec(v_unused_4873_); -v_unused_4874_ = lean_ctor_get(v_machine_4770_, 1); -lean_dec(v_unused_4874_); -v___x_4849_ = v_machine_4770_; -v_isShared_4850_ = v_isSharedCheck_4872_; -goto v_resetjp_4848_; -} -else -{ -lean_inc(v_instant_4844_); -lean_inc(v_events_4843_); -lean_inc(v_config_4842_); -lean_inc(v_reader_4841_); -lean_dec(v_machine_4770_); -v___x_4849_ = lean_box(0); -v_isShared_4850_ = v_isSharedCheck_4872_; -goto v_resetjp_4848_; -} -v_resetjp_4848_: -{ -lean_object* v_input_4851_; lean_object* v_messageHead_4852_; lean_object* v_messageCount_4853_; lean_object* v_bodyBytesRead_4854_; lean_object* v_headerBytesRead_4855_; uint8_t v_noMoreInput_4856_; lean_object* v___x_4858_; uint8_t v_isShared_4859_; uint8_t v_isSharedCheck_4870_; -v_input_4851_ = lean_ctor_get(v_reader_4841_, 1); -v_messageHead_4852_ = lean_ctor_get(v_reader_4841_, 2); -v_messageCount_4853_ = lean_ctor_get(v_reader_4841_, 3); -v_bodyBytesRead_4854_ = lean_ctor_get(v_reader_4841_, 4); -v_headerBytesRead_4855_ = lean_ctor_get(v_reader_4841_, 5); -v_noMoreInput_4856_ = lean_ctor_get_uint8(v_reader_4841_, sizeof(void*)*6); -v_isSharedCheck_4870_ = !lean_is_exclusive(v_reader_4841_); -if (v_isSharedCheck_4870_ == 0) -{ -lean_object* v_unused_4871_; -v_unused_4871_ = lean_ctor_get(v_reader_4841_, 0); -lean_dec(v_unused_4871_); -v___x_4858_ = v_reader_4841_; -v_isShared_4859_ = v_isSharedCheck_4870_; -goto v_resetjp_4857_; -} -else -{ -lean_inc(v_headerBytesRead_4855_); -lean_inc(v_bodyBytesRead_4854_); -lean_inc(v_messageCount_4853_); -lean_inc(v_messageHead_4852_); -lean_inc(v_input_4851_); -lean_dec(v_reader_4841_); -v___x_4858_ = lean_box(0); -v_isShared_4859_ = v_isSharedCheck_4870_; -goto v_resetjp_4857_; -} -v_resetjp_4857_: -{ -lean_object* v___x_4860_; lean_object* v___x_4861_; lean_object* v___x_4862_; lean_object* v___x_4864_; -v___x_4860_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_4861_ = lean_array_push(v_events_4843_, v___x_4860_); -v___x_4862_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_4859_ == 0) -{ -lean_ctor_set(v___x_4858_, 0, v___x_4862_); -v___x_4864_ = v___x_4858_; -goto v_reusejp_4863_; -} -else -{ -lean_object* v_reuseFailAlloc_4869_; -v_reuseFailAlloc_4869_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4869_, 0, v___x_4862_); -lean_ctor_set(v_reuseFailAlloc_4869_, 1, v_input_4851_); -lean_ctor_set(v_reuseFailAlloc_4869_, 2, v_messageHead_4852_); -lean_ctor_set(v_reuseFailAlloc_4869_, 3, v_messageCount_4853_); -lean_ctor_set(v_reuseFailAlloc_4869_, 4, v_bodyBytesRead_4854_); -lean_ctor_set(v_reuseFailAlloc_4869_, 5, v_headerBytesRead_4855_); -lean_ctor_set_uint8(v_reuseFailAlloc_4869_, sizeof(void*)*6, v_noMoreInput_4856_); -v___x_4864_ = v_reuseFailAlloc_4869_; -goto v_reusejp_4863_; -} -v_reusejp_4863_: -{ -lean_object* v___x_4865_; lean_object* v___x_4867_; -v___x_4865_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_4850_ == 0) -{ -lean_ctor_set(v___x_4849_, 4, v___x_4865_); -lean_ctor_set(v___x_4849_, 3, v___x_4861_); -lean_ctor_set(v___x_4849_, 0, v___x_4864_); -v___x_4867_ = v___x_4849_; -goto v_reusejp_4866_; -} -else -{ -lean_object* v_reuseFailAlloc_4868_; -v_reuseFailAlloc_4868_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4868_, 0, v___x_4864_); -lean_ctor_set(v_reuseFailAlloc_4868_, 1, v_writer_4773_); -lean_ctor_set(v_reuseFailAlloc_4868_, 2, v_config_4842_); -lean_ctor_set(v_reuseFailAlloc_4868_, 3, v___x_4861_); -lean_ctor_set(v_reuseFailAlloc_4868_, 4, v___x_4865_); -lean_ctor_set(v_reuseFailAlloc_4868_, 5, v_instant_4844_); -lean_ctor_set_uint8(v_reuseFailAlloc_4868_, sizeof(void*)*6, v_keepAlive_4845_); -lean_ctor_set_uint8(v_reuseFailAlloc_4868_, sizeof(void*)*6 + 1, v_forcedFlush_4846_); -lean_ctor_set_uint8(v_reuseFailAlloc_4868_, sizeof(void*)*6 + 2, v_pullBodyStalled_4847_); -v___x_4867_ = v_reuseFailAlloc_4868_; -goto v_reusejp_4866_; -} -v_reusejp_4866_: -{ -return v___x_4867_; -} -} -} -} -} -} -else -{ -lean_object* v_reader_4875_; lean_object* v_config_4876_; lean_object* v_events_4877_; lean_object* v_instant_4878_; uint8_t v_keepAlive_4879_; uint8_t v_forcedFlush_4880_; uint8_t v_pullBodyStalled_4881_; lean_object* v_val_4882_; lean_object* v_val_4883_; uint8_t v___x_4884_; -v_reader_4875_ = lean_ctor_get(v_machine_4770_, 0); -lean_inc_ref(v_reader_4875_); -v_config_4876_ = lean_ctor_get(v_machine_4770_, 2); -v_events_4877_ = lean_ctor_get(v_machine_4770_, 3); -v_instant_4878_ = lean_ctor_get(v_machine_4770_, 5); -v_keepAlive_4879_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6); -v_forcedFlush_4880_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 1); -v_pullBodyStalled_4881_ = lean_ctor_get_uint8(v_machine_4770_, sizeof(void*)*6 + 2); -v_val_4882_ = lean_ctor_get(v_knownSize_4774_, 0); -v_val_4883_ = lean_ctor_get(v_headerSize_4771_, 0); -lean_inc(v_val_4883_); -lean_dec_ref(v_headerSize_4771_); -v___x_4884_ = l_Std_Http_Body_instBEqLength_beq(v_val_4882_, v_val_4883_); -lean_dec(v_val_4883_); -if (v___x_4884_ == 0) -{ -lean_object* v___x_4886_; uint8_t v_isShared_4887_; uint8_t v_isSharedCheck_4909_; -lean_inc(v_instant_4878_); -lean_inc_ref(v_events_4877_); -lean_inc_ref(v_config_4876_); -v_isSharedCheck_4909_ = !lean_is_exclusive(v_machine_4770_); -if (v_isSharedCheck_4909_ == 0) -{ -lean_object* v_unused_4910_; lean_object* v_unused_4911_; lean_object* v_unused_4912_; lean_object* v_unused_4913_; lean_object* v_unused_4914_; lean_object* v_unused_4915_; -v_unused_4910_ = lean_ctor_get(v_machine_4770_, 5); -lean_dec(v_unused_4910_); -v_unused_4911_ = lean_ctor_get(v_machine_4770_, 4); -lean_dec(v_unused_4911_); -v_unused_4912_ = lean_ctor_get(v_machine_4770_, 3); -lean_dec(v_unused_4912_); -v_unused_4913_ = lean_ctor_get(v_machine_4770_, 2); -lean_dec(v_unused_4913_); -v_unused_4914_ = lean_ctor_get(v_machine_4770_, 1); -lean_dec(v_unused_4914_); -v_unused_4915_ = lean_ctor_get(v_machine_4770_, 0); -lean_dec(v_unused_4915_); -v___x_4886_ = v_machine_4770_; -v_isShared_4887_ = v_isSharedCheck_4909_; -goto v_resetjp_4885_; -} -else -{ -lean_dec(v_machine_4770_); -v___x_4886_ = lean_box(0); -v_isShared_4887_ = v_isSharedCheck_4909_; -goto v_resetjp_4885_; -} -v_resetjp_4885_: -{ -lean_object* v_input_4888_; lean_object* v_messageHead_4889_; lean_object* v_messageCount_4890_; lean_object* v_bodyBytesRead_4891_; lean_object* v_headerBytesRead_4892_; uint8_t v_noMoreInput_4893_; lean_object* v___x_4895_; uint8_t v_isShared_4896_; uint8_t v_isSharedCheck_4907_; -v_input_4888_ = lean_ctor_get(v_reader_4875_, 1); -v_messageHead_4889_ = lean_ctor_get(v_reader_4875_, 2); -v_messageCount_4890_ = lean_ctor_get(v_reader_4875_, 3); -v_bodyBytesRead_4891_ = lean_ctor_get(v_reader_4875_, 4); -v_headerBytesRead_4892_ = lean_ctor_get(v_reader_4875_, 5); -v_noMoreInput_4893_ = lean_ctor_get_uint8(v_reader_4875_, sizeof(void*)*6); -v_isSharedCheck_4907_ = !lean_is_exclusive(v_reader_4875_); -if (v_isSharedCheck_4907_ == 0) -{ -lean_object* v_unused_4908_; -v_unused_4908_ = lean_ctor_get(v_reader_4875_, 0); -lean_dec(v_unused_4908_); -v___x_4895_ = v_reader_4875_; -v_isShared_4896_ = v_isSharedCheck_4907_; -goto v_resetjp_4894_; -} -else -{ -lean_inc(v_headerBytesRead_4892_); -lean_inc(v_bodyBytesRead_4891_); -lean_inc(v_messageCount_4890_); -lean_inc(v_messageHead_4889_); -lean_inc(v_input_4888_); -lean_dec(v_reader_4875_); -v___x_4895_ = lean_box(0); -v_isShared_4896_ = v_isSharedCheck_4907_; -goto v_resetjp_4894_; -} -v_resetjp_4894_: -{ -lean_object* v___x_4897_; lean_object* v___x_4898_; lean_object* v___x_4899_; lean_object* v___x_4901_; -v___x_4897_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_4898_ = lean_array_push(v_events_4877_, v___x_4897_); -v___x_4899_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_4896_ == 0) -{ -lean_ctor_set(v___x_4895_, 0, v___x_4899_); -v___x_4901_ = v___x_4895_; -goto v_reusejp_4900_; -} -else -{ -lean_object* v_reuseFailAlloc_4906_; -v_reuseFailAlloc_4906_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_4906_, 0, v___x_4899_); -lean_ctor_set(v_reuseFailAlloc_4906_, 1, v_input_4888_); -lean_ctor_set(v_reuseFailAlloc_4906_, 2, v_messageHead_4889_); -lean_ctor_set(v_reuseFailAlloc_4906_, 3, v_messageCount_4890_); -lean_ctor_set(v_reuseFailAlloc_4906_, 4, v_bodyBytesRead_4891_); -lean_ctor_set(v_reuseFailAlloc_4906_, 5, v_headerBytesRead_4892_); -lean_ctor_set_uint8(v_reuseFailAlloc_4906_, sizeof(void*)*6, v_noMoreInput_4893_); -v___x_4901_ = v_reuseFailAlloc_4906_; -goto v_reusejp_4900_; -} -v_reusejp_4900_: -{ -lean_object* v___x_4902_; lean_object* v___x_4904_; -v___x_4902_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_4887_ == 0) -{ -lean_ctor_set(v___x_4886_, 4, v___x_4902_); -lean_ctor_set(v___x_4886_, 3, v___x_4898_); -lean_ctor_set(v___x_4886_, 0, v___x_4901_); -v___x_4904_ = v___x_4886_; -goto v_reusejp_4903_; -} -else -{ -lean_object* v_reuseFailAlloc_4905_; -v_reuseFailAlloc_4905_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_4905_, 0, v___x_4901_); -lean_ctor_set(v_reuseFailAlloc_4905_, 1, v_writer_4773_); -lean_ctor_set(v_reuseFailAlloc_4905_, 2, v_config_4876_); -lean_ctor_set(v_reuseFailAlloc_4905_, 3, v___x_4898_); -lean_ctor_set(v_reuseFailAlloc_4905_, 4, v___x_4902_); -lean_ctor_set(v_reuseFailAlloc_4905_, 5, v_instant_4878_); -lean_ctor_set_uint8(v_reuseFailAlloc_4905_, sizeof(void*)*6, v_keepAlive_4879_); -lean_ctor_set_uint8(v_reuseFailAlloc_4905_, sizeof(void*)*6 + 1, v_forcedFlush_4880_); -lean_ctor_set_uint8(v_reuseFailAlloc_4905_, sizeof(void*)*6 + 2, v_pullBodyStalled_4881_); -v___x_4904_ = v_reuseFailAlloc_4905_; -goto v_reusejp_4903_; -} -v_reusejp_4903_: -{ -return v___x_4904_; -} -} -} -} -} -else -{ -lean_dec_ref(v_reader_4875_); -lean_dec_ref(v_writer_4773_); -return v_machine_4770_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg___boxed(lean_object* v_machine_4916_, lean_object* v_headerSize_4917_, lean_object* v_framingInHeaders_4918_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter___redArg(lean_object* v_machine_4814_){ _start: { -uint8_t v_framingInHeaders_boxed_4919_; lean_object* v_res_4920_; -v_framingInHeaders_boxed_4919_ = lean_unbox(v_framingInHeaders_4918_); -v_res_4920_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v_machine_4916_, v_headerSize_4917_, v_framingInHeaders_boxed_4919_); -return v_res_4920_; +lean_object* v_writer_4815_; lean_object* v_reader_4816_; lean_object* v_config_4817_; lean_object* v_events_4818_; lean_object* v_error_4819_; lean_object* v_instant_4820_; uint8_t v_keepAlive_4821_; uint8_t v_forcedFlush_4822_; uint8_t v_pullBodyStalled_4823_; lean_object* v___x_4825_; uint8_t v_isShared_4826_; uint8_t v_isSharedCheck_4847_; +v_writer_4815_ = lean_ctor_get(v_machine_4814_, 1); +v_reader_4816_ = lean_ctor_get(v_machine_4814_, 0); +v_config_4817_ = lean_ctor_get(v_machine_4814_, 2); +v_events_4818_ = lean_ctor_get(v_machine_4814_, 3); +v_error_4819_ = lean_ctor_get(v_machine_4814_, 4); +v_instant_4820_ = lean_ctor_get(v_machine_4814_, 5); +v_keepAlive_4821_ = lean_ctor_get_uint8(v_machine_4814_, sizeof(void*)*6); +v_forcedFlush_4822_ = lean_ctor_get_uint8(v_machine_4814_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4823_ = lean_ctor_get_uint8(v_machine_4814_, sizeof(void*)*6 + 2); +v_isSharedCheck_4847_ = !lean_is_exclusive(v_machine_4814_); +if (v_isSharedCheck_4847_ == 0) +{ +v___x_4825_ = v_machine_4814_; +v_isShared_4826_ = v_isSharedCheck_4847_; +goto v_resetjp_4824_; +} +else +{ +lean_inc(v_instant_4820_); +lean_inc(v_error_4819_); +lean_inc(v_events_4818_); +lean_inc(v_config_4817_); +lean_inc(v_writer_4815_); +lean_inc(v_reader_4816_); +lean_dec(v_machine_4814_); +v___x_4825_ = lean_box(0); +v_isShared_4826_ = v_isSharedCheck_4847_; +goto v_resetjp_4824_; +} +v_resetjp_4824_: +{ +lean_object* v_userData_4827_; lean_object* v_outputData_4828_; lean_object* v_knownSize_4829_; lean_object* v_messageHead_4830_; uint8_t v_sentMessage_4831_; uint8_t v_omitBody_4832_; lean_object* v_userDataBytes_4833_; lean_object* v___x_4835_; uint8_t v_isShared_4836_; uint8_t v_isSharedCheck_4845_; +v_userData_4827_ = lean_ctor_get(v_writer_4815_, 0); +v_outputData_4828_ = lean_ctor_get(v_writer_4815_, 1); +v_knownSize_4829_ = lean_ctor_get(v_writer_4815_, 3); +v_messageHead_4830_ = lean_ctor_get(v_writer_4815_, 4); +v_sentMessage_4831_ = lean_ctor_get_uint8(v_writer_4815_, sizeof(void*)*6); +v_omitBody_4832_ = lean_ctor_get_uint8(v_writer_4815_, sizeof(void*)*6 + 2); +v_userDataBytes_4833_ = lean_ctor_get(v_writer_4815_, 5); +v_isSharedCheck_4845_ = !lean_is_exclusive(v_writer_4815_); +if (v_isSharedCheck_4845_ == 0) +{ +lean_object* v_unused_4846_; +v_unused_4846_ = lean_ctor_get(v_writer_4815_, 2); +lean_dec(v_unused_4846_); +v___x_4835_ = v_writer_4815_; +v_isShared_4836_ = v_isSharedCheck_4845_; +goto v_resetjp_4834_; +} +else +{ +lean_inc(v_userDataBytes_4833_); +lean_inc(v_messageHead_4830_); +lean_inc(v_knownSize_4829_); +lean_inc(v_outputData_4828_); +lean_inc(v_userData_4827_); +lean_dec(v_writer_4815_); +v___x_4835_ = lean_box(0); +v_isShared_4836_ = v_isSharedCheck_4845_; +goto v_resetjp_4834_; +} +v_resetjp_4834_: +{ +lean_object* v___x_4837_; uint8_t v___x_4838_; lean_object* v___x_4840_; +v___x_4837_ = lean_box(7); +v___x_4838_ = 1; +if (v_isShared_4836_ == 0) +{ +lean_ctor_set(v___x_4835_, 2, v___x_4837_); +v___x_4840_ = v___x_4835_; +goto v_reusejp_4839_; +} +else +{ +lean_object* v_reuseFailAlloc_4844_; +v_reuseFailAlloc_4844_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4844_, 0, v_userData_4827_); +lean_ctor_set(v_reuseFailAlloc_4844_, 1, v_outputData_4828_); +lean_ctor_set(v_reuseFailAlloc_4844_, 2, v___x_4837_); +lean_ctor_set(v_reuseFailAlloc_4844_, 3, v_knownSize_4829_); +lean_ctor_set(v_reuseFailAlloc_4844_, 4, v_messageHead_4830_); +lean_ctor_set(v_reuseFailAlloc_4844_, 5, v_userDataBytes_4833_); +lean_ctor_set_uint8(v_reuseFailAlloc_4844_, sizeof(void*)*6, v_sentMessage_4831_); +lean_ctor_set_uint8(v_reuseFailAlloc_4844_, sizeof(void*)*6 + 2, v_omitBody_4832_); +v___x_4840_ = v_reuseFailAlloc_4844_; +goto v_reusejp_4839_; +} +v_reusejp_4839_: +{ +lean_object* v___x_4842_; +lean_ctor_set_uint8(v___x_4840_, sizeof(void*)*6 + 1, v___x_4838_); +if (v_isShared_4826_ == 0) +{ +lean_ctor_set(v___x_4825_, 1, v___x_4840_); +v___x_4842_ = v___x_4825_; +goto v_reusejp_4841_; +} +else +{ +lean_object* v_reuseFailAlloc_4843_; +v_reuseFailAlloc_4843_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4843_, 0, v_reader_4816_); +lean_ctor_set(v_reuseFailAlloc_4843_, 1, v___x_4840_); +lean_ctor_set(v_reuseFailAlloc_4843_, 2, v_config_4817_); +lean_ctor_set(v_reuseFailAlloc_4843_, 3, v_events_4818_); +lean_ctor_set(v_reuseFailAlloc_4843_, 4, v_error_4819_); +lean_ctor_set(v_reuseFailAlloc_4843_, 5, v_instant_4820_); +lean_ctor_set_uint8(v_reuseFailAlloc_4843_, sizeof(void*)*6, v_keepAlive_4821_); +lean_ctor_set_uint8(v_reuseFailAlloc_4843_, sizeof(void*)*6 + 1, v_forcedFlush_4822_); +lean_ctor_set_uint8(v_reuseFailAlloc_4843_, sizeof(void*)*6 + 2, v_pullBodyStalled_4823_); +v___x_4842_ = v_reuseFailAlloc_4843_; +goto v_reusejp_4841_; +} +v_reusejp_4841_: +{ +return v___x_4842_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(uint8_t v_dir_4921_, lean_object* v_machine_4922_, lean_object* v_headerSize_4923_, uint8_t v_framingInHeaders_4924_){ +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter(uint8_t v_dir_4848_, lean_object* v_machine_4849_){ _start: { -lean_object* v___x_4925_; -v___x_4925_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v_machine_4922_, v_headerSize_4923_, v_framingInHeaders_4924_); -return v___x_4925_; +lean_object* v_writer_4850_; lean_object* v_reader_4851_; lean_object* v_config_4852_; lean_object* v_events_4853_; lean_object* v_error_4854_; lean_object* v_instant_4855_; uint8_t v_keepAlive_4856_; uint8_t v_forcedFlush_4857_; uint8_t v_pullBodyStalled_4858_; lean_object* v___x_4860_; uint8_t v_isShared_4861_; uint8_t v_isSharedCheck_4882_; +v_writer_4850_ = lean_ctor_get(v_machine_4849_, 1); +v_reader_4851_ = lean_ctor_get(v_machine_4849_, 0); +v_config_4852_ = lean_ctor_get(v_machine_4849_, 2); +v_events_4853_ = lean_ctor_get(v_machine_4849_, 3); +v_error_4854_ = lean_ctor_get(v_machine_4849_, 4); +v_instant_4855_ = lean_ctor_get(v_machine_4849_, 5); +v_keepAlive_4856_ = lean_ctor_get_uint8(v_machine_4849_, sizeof(void*)*6); +v_forcedFlush_4857_ = lean_ctor_get_uint8(v_machine_4849_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4858_ = lean_ctor_get_uint8(v_machine_4849_, sizeof(void*)*6 + 2); +v_isSharedCheck_4882_ = !lean_is_exclusive(v_machine_4849_); +if (v_isSharedCheck_4882_ == 0) +{ +v___x_4860_ = v_machine_4849_; +v_isShared_4861_ = v_isSharedCheck_4882_; +goto v_resetjp_4859_; +} +else +{ +lean_inc(v_instant_4855_); +lean_inc(v_error_4854_); +lean_inc(v_events_4853_); +lean_inc(v_config_4852_); +lean_inc(v_writer_4850_); +lean_inc(v_reader_4851_); +lean_dec(v_machine_4849_); +v___x_4860_ = lean_box(0); +v_isShared_4861_ = v_isSharedCheck_4882_; +goto v_resetjp_4859_; +} +v_resetjp_4859_: +{ +lean_object* v_userData_4862_; lean_object* v_outputData_4863_; lean_object* v_knownSize_4864_; lean_object* v_messageHead_4865_; uint8_t v_sentMessage_4866_; uint8_t v_omitBody_4867_; lean_object* v_userDataBytes_4868_; lean_object* v___x_4870_; uint8_t v_isShared_4871_; uint8_t v_isSharedCheck_4880_; +v_userData_4862_ = lean_ctor_get(v_writer_4850_, 0); +v_outputData_4863_ = lean_ctor_get(v_writer_4850_, 1); +v_knownSize_4864_ = lean_ctor_get(v_writer_4850_, 3); +v_messageHead_4865_ = lean_ctor_get(v_writer_4850_, 4); +v_sentMessage_4866_ = lean_ctor_get_uint8(v_writer_4850_, sizeof(void*)*6); +v_omitBody_4867_ = lean_ctor_get_uint8(v_writer_4850_, sizeof(void*)*6 + 2); +v_userDataBytes_4868_ = lean_ctor_get(v_writer_4850_, 5); +v_isSharedCheck_4880_ = !lean_is_exclusive(v_writer_4850_); +if (v_isSharedCheck_4880_ == 0) +{ +lean_object* v_unused_4881_; +v_unused_4881_ = lean_ctor_get(v_writer_4850_, 2); +lean_dec(v_unused_4881_); +v___x_4870_ = v_writer_4850_; +v_isShared_4871_ = v_isSharedCheck_4880_; +goto v_resetjp_4869_; +} +else +{ +lean_inc(v_userDataBytes_4868_); +lean_inc(v_messageHead_4865_); +lean_inc(v_knownSize_4864_); +lean_inc(v_outputData_4863_); +lean_inc(v_userData_4862_); +lean_dec(v_writer_4850_); +v___x_4870_ = lean_box(0); +v_isShared_4871_ = v_isSharedCheck_4880_; +goto v_resetjp_4869_; +} +v_resetjp_4869_: +{ +lean_object* v___x_4872_; uint8_t v___x_4873_; lean_object* v___x_4875_; +v___x_4872_ = lean_box(7); +v___x_4873_ = 1; +if (v_isShared_4871_ == 0) +{ +lean_ctor_set(v___x_4870_, 2, v___x_4872_); +v___x_4875_ = v___x_4870_; +goto v_reusejp_4874_; +} +else +{ +lean_object* v_reuseFailAlloc_4879_; +v_reuseFailAlloc_4879_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4879_, 0, v_userData_4862_); +lean_ctor_set(v_reuseFailAlloc_4879_, 1, v_outputData_4863_); +lean_ctor_set(v_reuseFailAlloc_4879_, 2, v___x_4872_); +lean_ctor_set(v_reuseFailAlloc_4879_, 3, v_knownSize_4864_); +lean_ctor_set(v_reuseFailAlloc_4879_, 4, v_messageHead_4865_); +lean_ctor_set(v_reuseFailAlloc_4879_, 5, v_userDataBytes_4868_); +lean_ctor_set_uint8(v_reuseFailAlloc_4879_, sizeof(void*)*6, v_sentMessage_4866_); +lean_ctor_set_uint8(v_reuseFailAlloc_4879_, sizeof(void*)*6 + 2, v_omitBody_4867_); +v___x_4875_ = v_reuseFailAlloc_4879_; +goto v_reusejp_4874_; +} +v_reusejp_4874_: +{ +lean_object* v___x_4877_; +lean_ctor_set_uint8(v___x_4875_, sizeof(void*)*6 + 1, v___x_4873_); +if (v_isShared_4861_ == 0) +{ +lean_ctor_set(v___x_4860_, 1, v___x_4875_); +v___x_4877_ = v___x_4860_; +goto v_reusejp_4876_; +} +else +{ +lean_object* v_reuseFailAlloc_4878_; +v_reuseFailAlloc_4878_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4878_, 0, v_reader_4851_); +lean_ctor_set(v_reuseFailAlloc_4878_, 1, v___x_4875_); +lean_ctor_set(v_reuseFailAlloc_4878_, 2, v_config_4852_); +lean_ctor_set(v_reuseFailAlloc_4878_, 3, v_events_4853_); +lean_ctor_set(v_reuseFailAlloc_4878_, 4, v_error_4854_); +lean_ctor_set(v_reuseFailAlloc_4878_, 5, v_instant_4855_); +lean_ctor_set_uint8(v_reuseFailAlloc_4878_, sizeof(void*)*6, v_keepAlive_4856_); +lean_ctor_set_uint8(v_reuseFailAlloc_4878_, sizeof(void*)*6 + 1, v_forcedFlush_4857_); +lean_ctor_set_uint8(v_reuseFailAlloc_4878_, sizeof(void*)*6 + 2, v_pullBodyStalled_4858_); +v___x_4877_ = v_reuseFailAlloc_4878_; +goto v_reusejp_4876_; +} +v_reusejp_4876_: +{ +return v___x_4877_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___boxed(lean_object* v_dir_4926_, lean_object* v_machine_4927_, lean_object* v_headerSize_4928_, lean_object* v_framingInHeaders_4929_){ +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWriter___boxed(lean_object* v_dir_4883_, lean_object* v_machine_4884_){ _start: { -uint8_t v_dir_boxed_4930_; uint8_t v_framingInHeaders_boxed_4931_; lean_object* v_res_4932_; -v_dir_boxed_4930_ = lean_unbox(v_dir_4926_); -v_framingInHeaders_boxed_4931_ = lean_unbox(v_framingInHeaders_4929_); -v_res_4932_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(v_dir_boxed_4930_, v_machine_4927_, v_headerSize_4928_, v_framingInHeaders_boxed_4931_); -return v_res_4932_; +uint8_t v_dir_boxed_4885_; lean_object* v_res_4886_; +v_dir_boxed_4885_ = lean_unbox(v_dir_4883_); +v_res_4886_ = l_Std_Http_Protocol_H1_Machine_closeWriter(v_dir_boxed_4885_, v_machine_4884_); +return v_res_4886_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(uint8_t v_dir_4933_, lean_object* v_machine_4934_, lean_object* v_message_4935_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody___redArg(lean_object* v_machine_4887_){ _start: { -lean_object* v___y_4937_; uint8_t v___y_4938_; uint8_t v___y_4939_; lean_object* v___y_4940_; lean_object* v___y_4941_; lean_object* v_outputData_4942_; lean_object* v_state_4943_; lean_object* v_messageHead_4944_; uint8_t v_sentMessage_4945_; uint8_t v___y_4946_; lean_object* v___y_4947_; lean_object* v___y_4948_; uint8_t v___y_4949_; lean_object* v___y_4950_; lean_object* v___y_4956_; uint8_t v___y_4957_; lean_object* v___y_4958_; uint8_t v___y_4959_; lean_object* v___y_4960_; lean_object* v___y_4961_; lean_object* v___y_4962_; uint8_t v___y_4963_; lean_object* v___y_4964_; uint8_t v___y_4965_; uint8_t v___y_4978_; lean_object* v___y_4979_; uint8_t v___y_4980_; uint8_t v___y_4981_; lean_object* v___y_4982_; lean_object* v___y_4983_; lean_object* v___y_4984_; uint8_t v___y_4985_; uint8_t v___y_4986_; lean_object* v___y_4987_; lean_object* v___y_4988_; uint8_t v___y_4989_; lean_object* v___y_4991_; lean_object* v___y_4992_; uint8_t v___y_4993_; uint8_t v___y_4994_; lean_object* v___y_4995_; uint8_t v___y_4996_; lean_object* v___y_4997_; lean_object* v___y_4998_; lean_object* v___y_4999_; uint8_t v___y_5000_; uint8_t v___y_5001_; lean_object* v___y_5002_; -if (v_dir_4933_ == 0) +lean_object* v_writer_4888_; lean_object* v_reader_4889_; lean_object* v_config_4890_; lean_object* v_events_4891_; lean_object* v_error_4892_; lean_object* v_instant_4893_; uint8_t v_keepAlive_4894_; uint8_t v_forcedFlush_4895_; uint8_t v_pullBodyStalled_4896_; lean_object* v___x_4898_; uint8_t v_isShared_4899_; uint8_t v_isSharedCheck_4919_; +v_writer_4888_ = lean_ctor_get(v_machine_4887_, 1); +v_reader_4889_ = lean_ctor_get(v_machine_4887_, 0); +v_config_4890_ = lean_ctor_get(v_machine_4887_, 2); +v_events_4891_ = lean_ctor_get(v_machine_4887_, 3); +v_error_4892_ = lean_ctor_get(v_machine_4887_, 4); +v_instant_4893_ = lean_ctor_get(v_machine_4887_, 5); +v_keepAlive_4894_ = lean_ctor_get_uint8(v_machine_4887_, sizeof(void*)*6); +v_forcedFlush_4895_ = lean_ctor_get_uint8(v_machine_4887_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4896_ = lean_ctor_get_uint8(v_machine_4887_, sizeof(void*)*6 + 2); +v_isSharedCheck_4919_ = !lean_is_exclusive(v_machine_4887_); +if (v_isSharedCheck_4919_ == 0) { -lean_object* v_status_5005_; uint8_t v___y_5007_; uint16_t v___x_5027_; lean_object* v_code_5028_; lean_object* v___x_5034_; uint8_t v___x_5035_; -v_status_5005_ = lean_ctor_get(v_message_4935_, 0); -v___x_5027_ = l_Std_Http_Status_toCode(v_status_5005_); -v_code_5028_ = lean_uint16_to_nat(v___x_5027_); -v___x_5034_ = lean_unsigned_to_nat(100u); -v___x_5035_ = lean_nat_dec_le(v___x_5034_, v_code_5028_); -if (v___x_5035_ == 0) -{ -goto v___jp_5029_; +v___x_4898_ = v_machine_4887_; +v_isShared_4899_ = v_isSharedCheck_4919_; +goto v_resetjp_4897_; } else { -lean_object* v___x_5036_; uint8_t v___x_5037_; -v___x_5036_ = lean_unsigned_to_nat(200u); -v___x_5037_ = lean_nat_dec_lt(v_code_5028_, v___x_5036_); -if (v___x_5037_ == 0) +lean_inc(v_instant_4893_); +lean_inc(v_error_4892_); +lean_inc(v_events_4891_); +lean_inc(v_config_4890_); +lean_inc(v_writer_4888_); +lean_inc(v_reader_4889_); +lean_dec(v_machine_4887_); +v___x_4898_ = lean_box(0); +v_isShared_4899_ = v_isSharedCheck_4919_; +goto v_resetjp_4897_; +} +v_resetjp_4897_: { -goto v___jp_5029_; +lean_object* v_userData_4900_; lean_object* v_outputData_4901_; lean_object* v_state_4902_; lean_object* v_knownSize_4903_; lean_object* v_messageHead_4904_; uint8_t v_sentMessage_4905_; uint8_t v_omitBody_4906_; lean_object* v_userDataBytes_4907_; lean_object* v___x_4909_; uint8_t v_isShared_4910_; uint8_t v_isSharedCheck_4918_; +v_userData_4900_ = lean_ctor_get(v_writer_4888_, 0); +v_outputData_4901_ = lean_ctor_get(v_writer_4888_, 1); +v_state_4902_ = lean_ctor_get(v_writer_4888_, 2); +v_knownSize_4903_ = lean_ctor_get(v_writer_4888_, 3); +v_messageHead_4904_ = lean_ctor_get(v_writer_4888_, 4); +v_sentMessage_4905_ = lean_ctor_get_uint8(v_writer_4888_, sizeof(void*)*6); +v_omitBody_4906_ = lean_ctor_get_uint8(v_writer_4888_, sizeof(void*)*6 + 2); +v_userDataBytes_4907_ = lean_ctor_get(v_writer_4888_, 5); +v_isSharedCheck_4918_ = !lean_is_exclusive(v_writer_4888_); +if (v_isSharedCheck_4918_ == 0) +{ +v___x_4909_ = v_writer_4888_; +v_isShared_4910_ = v_isSharedCheck_4918_; +goto v_resetjp_4908_; } else { -v___y_5007_ = v___x_5037_; -goto v___jp_5006_; +lean_inc(v_userDataBytes_4907_); +lean_inc(v_messageHead_4904_); +lean_inc(v_knownSize_4903_); +lean_inc(v_state_4902_); +lean_inc(v_outputData_4901_); +lean_inc(v_userData_4900_); +lean_dec(v_writer_4888_); +v___x_4909_ = lean_box(0); +v_isShared_4910_ = v_isSharedCheck_4918_; +goto v_resetjp_4908_; } -} -v___jp_5006_: +v_resetjp_4908_: { -lean_object* v_reader_5008_; lean_object* v_messageHead_5009_; lean_object* v_writer_5010_; lean_object* v_config_5011_; lean_object* v_events_5012_; lean_object* v_error_5013_; lean_object* v_instant_5014_; uint8_t v_keepAlive_5015_; uint8_t v_forcedFlush_5016_; uint8_t v_pullBodyStalled_5017_; uint8_t v_method_5018_; uint8_t v___x_5019_; uint8_t v_suppressByMethod_5020_; uint16_t v___x_5021_; lean_object* v_code_5022_; lean_object* v___x_5023_; uint8_t v___x_5024_; -v_reader_5008_ = lean_ctor_get(v_machine_4934_, 0); -v_messageHead_5009_ = lean_ctor_get(v_reader_5008_, 2); -v_writer_5010_ = lean_ctor_get(v_machine_4934_, 1); -v_config_5011_ = lean_ctor_get(v_machine_4934_, 2); -v_events_5012_ = lean_ctor_get(v_machine_4934_, 3); -v_error_5013_ = lean_ctor_get(v_machine_4934_, 4); -v_instant_5014_ = lean_ctor_get(v_machine_4934_, 5); -v_keepAlive_5015_ = lean_ctor_get_uint8(v_machine_4934_, sizeof(void*)*6); -v_forcedFlush_5016_ = lean_ctor_get_uint8(v_machine_4934_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5017_ = lean_ctor_get_uint8(v_machine_4934_, sizeof(void*)*6 + 2); -v_method_5018_ = lean_ctor_get_uint8(v_messageHead_5009_, sizeof(void*)*2); -v___x_5019_ = 9; -v_suppressByMethod_5020_ = l_Std_Http_instBEqMethod_beq(v_method_5018_, v___x_5019_); -v___x_5021_ = l_Std_Http_Status_toCode(v_status_5005_); -v_code_5022_ = lean_uint16_to_nat(v___x_5021_); -v___x_5023_ = lean_unsigned_to_nat(100u); -v___x_5024_ = lean_nat_dec_le(v___x_5023_, v_code_5022_); -if (v___x_5024_ == 0) +uint8_t v___x_4911_; lean_object* v___x_4913_; +v___x_4911_ = 1; +if (v_isShared_4910_ == 0) { -lean_inc(v_error_5013_); -lean_inc_ref(v_events_5012_); -lean_inc_ref(v_config_5011_); -lean_inc_ref(v_writer_5010_); -lean_inc(v_instant_5014_); -lean_inc_ref(v_reader_5008_); -v___y_4991_ = v_code_5022_; -v___y_4992_ = v_reader_5008_; -v___y_4993_ = v_suppressByMethod_5020_; -v___y_4994_ = v_pullBodyStalled_5017_; -v___y_4995_ = v_instant_5014_; -v___y_4996_ = v_forcedFlush_5016_; -v___y_4997_ = v_writer_5010_; -v___y_4998_ = v_config_5011_; -v___y_4999_ = v_events_5012_; -v___y_5000_ = v_keepAlive_5015_; -v___y_5001_ = v___y_5007_; -v___y_5002_ = v_error_5013_; -goto v___jp_4990_; +v___x_4913_ = v___x_4909_; +goto v_reusejp_4912_; } else { -lean_object* v___x_5025_; uint8_t v___x_5026_; -v___x_5025_ = lean_unsigned_to_nat(200u); -v___x_5026_ = lean_nat_dec_lt(v_code_5022_, v___x_5025_); -if (v___x_5026_ == 0) +lean_object* v_reuseFailAlloc_4917_; +v_reuseFailAlloc_4917_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4917_, 0, v_userData_4900_); +lean_ctor_set(v_reuseFailAlloc_4917_, 1, v_outputData_4901_); +lean_ctor_set(v_reuseFailAlloc_4917_, 2, v_state_4902_); +lean_ctor_set(v_reuseFailAlloc_4917_, 3, v_knownSize_4903_); +lean_ctor_set(v_reuseFailAlloc_4917_, 4, v_messageHead_4904_); +lean_ctor_set(v_reuseFailAlloc_4917_, 5, v_userDataBytes_4907_); +lean_ctor_set_uint8(v_reuseFailAlloc_4917_, sizeof(void*)*6, v_sentMessage_4905_); +lean_ctor_set_uint8(v_reuseFailAlloc_4917_, sizeof(void*)*6 + 2, v_omitBody_4906_); +v___x_4913_ = v_reuseFailAlloc_4917_; +goto v_reusejp_4912_; +} +v_reusejp_4912_: { -lean_inc(v_error_5013_); -lean_inc_ref(v_events_5012_); -lean_inc_ref(v_config_5011_); -lean_inc_ref(v_writer_5010_); -lean_inc(v_instant_5014_); -lean_inc_ref(v_reader_5008_); -v___y_4991_ = v_code_5022_; -v___y_4992_ = v_reader_5008_; -v___y_4993_ = v_suppressByMethod_5020_; -v___y_4994_ = v_pullBodyStalled_5017_; -v___y_4995_ = v_instant_5014_; -v___y_4996_ = v_forcedFlush_5016_; -v___y_4997_ = v_writer_5010_; -v___y_4998_ = v_config_5011_; -v___y_4999_ = v_events_5012_; -v___y_5000_ = v_keepAlive_5015_; -v___y_5001_ = v___y_5007_; -v___y_5002_ = v_error_5013_; -goto v___jp_4990_; +lean_object* v___x_4915_; +lean_ctor_set_uint8(v___x_4913_, sizeof(void*)*6 + 1, v___x_4911_); +if (v_isShared_4899_ == 0) +{ +lean_ctor_set(v___x_4898_, 1, v___x_4913_); +v___x_4915_ = v___x_4898_; +goto v_reusejp_4914_; } else { -lean_inc(v_error_5013_); -lean_inc_ref(v_events_5012_); -lean_inc_ref(v_writer_5010_); -lean_inc_ref(v_config_5011_); -lean_inc(v_instant_5014_); -lean_inc_ref(v_reader_5008_); -v___y_4978_ = v_suppressByMethod_5020_; -v___y_4979_ = v_reader_5008_; -v___y_4980_ = v_pullBodyStalled_5017_; -v___y_4981_ = v_forcedFlush_5016_; -v___y_4982_ = v_instant_5014_; -v___y_4983_ = v_config_5011_; -v___y_4984_ = v_writer_5010_; -v___y_4985_ = v___y_5007_; -v___y_4986_ = v_keepAlive_5015_; -v___y_4987_ = v_events_5012_; -v___y_4988_ = v_error_5013_; -v___y_4989_ = v___x_5026_; -goto v___jp_4977_; +lean_object* v_reuseFailAlloc_4916_; +v_reuseFailAlloc_4916_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4916_, 0, v_reader_4889_); +lean_ctor_set(v_reuseFailAlloc_4916_, 1, v___x_4913_); +lean_ctor_set(v_reuseFailAlloc_4916_, 2, v_config_4890_); +lean_ctor_set(v_reuseFailAlloc_4916_, 3, v_events_4891_); +lean_ctor_set(v_reuseFailAlloc_4916_, 4, v_error_4892_); +lean_ctor_set(v_reuseFailAlloc_4916_, 5, v_instant_4893_); +lean_ctor_set_uint8(v_reuseFailAlloc_4916_, sizeof(void*)*6, v_keepAlive_4894_); +lean_ctor_set_uint8(v_reuseFailAlloc_4916_, sizeof(void*)*6 + 1, v_forcedFlush_4895_); +lean_ctor_set_uint8(v_reuseFailAlloc_4916_, sizeof(void*)*6 + 2, v_pullBodyStalled_4896_); +v___x_4915_ = v_reuseFailAlloc_4916_; +goto v_reusejp_4914_; } -} -} -v___jp_5029_: +v_reusejp_4914_: { -lean_object* v___x_5030_; uint8_t v___x_5031_; -v___x_5030_ = lean_unsigned_to_nat(204u); -v___x_5031_ = lean_nat_dec_eq(v_code_5028_, v___x_5030_); -if (v___x_5031_ == 0) -{ -lean_object* v___x_5032_; uint8_t v___x_5033_; -v___x_5032_ = lean_unsigned_to_nat(304u); -v___x_5033_ = lean_nat_dec_eq(v_code_5028_, v___x_5032_); -v___y_5007_ = v___x_5033_; -goto v___jp_5006_; -} -else -{ -v___y_5007_ = v___x_5031_; -goto v___jp_5006_; +return v___x_4915_; } } } -else -{ -return v_machine_4934_; -} -v___jp_4936_: -{ -lean_object* v___x_4951_; lean_object* v___x_4952_; lean_object* v___x_4953_; lean_object* v___x_4954_; -v___x_4951_ = lean_unsigned_to_nat(0u); -v___x_4952_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); -v___x_4953_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_4953_, 0, v___x_4952_); -lean_ctor_set(v___x_4953_, 1, v_outputData_4942_); -lean_ctor_set(v___x_4953_, 2, v_state_4943_); -lean_ctor_set(v___x_4953_, 3, v___y_4950_); -lean_ctor_set(v___x_4953_, 4, v_messageHead_4944_); -lean_ctor_set(v___x_4953_, 5, v___x_4951_); -lean_ctor_set_uint8(v___x_4953_, sizeof(void*)*6, v_sentMessage_4945_); -lean_ctor_set_uint8(v___x_4953_, sizeof(void*)*6 + 1, v___y_4949_); -lean_ctor_set_uint8(v___x_4953_, sizeof(void*)*6 + 2, v___y_4949_); -v___x_4954_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_4954_, 0, v___y_4937_); -lean_ctor_set(v___x_4954_, 1, v___x_4953_); -lean_ctor_set(v___x_4954_, 2, v___y_4941_); -lean_ctor_set(v___x_4954_, 3, v___y_4947_); -lean_ctor_set(v___x_4954_, 4, v___y_4948_); -lean_ctor_set(v___x_4954_, 5, v___y_4940_); -lean_ctor_set_uint8(v___x_4954_, sizeof(void*)*6, v___y_4946_); -lean_ctor_set_uint8(v___x_4954_, sizeof(void*)*6 + 1, v___y_4939_); -lean_ctor_set_uint8(v___x_4954_, sizeof(void*)*6 + 2, v___y_4938_); -return v___x_4954_; -} -v___jp_4955_: -{ -uint8_t v___x_4966_; -v___x_4966_ = 1; -if (v___y_4965_ == 0) -{ -lean_object* v_outputData_4967_; lean_object* v_state_4968_; lean_object* v_knownSize_4969_; lean_object* v_messageHead_4970_; uint8_t v_sentMessage_4971_; -v_outputData_4967_ = lean_ctor_get(v___y_4960_, 1); -lean_inc_ref(v_outputData_4967_); -v_state_4968_ = lean_ctor_get(v___y_4960_, 2); -lean_inc(v_state_4968_); -v_knownSize_4969_ = lean_ctor_get(v___y_4960_, 3); -lean_inc(v_knownSize_4969_); -v_messageHead_4970_ = lean_ctor_get(v___y_4960_, 4); -lean_inc(v_messageHead_4970_); -v_sentMessage_4971_ = lean_ctor_get_uint8(v___y_4960_, sizeof(void*)*6); -lean_dec_ref(v___y_4960_); -v___y_4937_ = v___y_4956_; -v___y_4938_ = v___y_4957_; -v___y_4939_ = v___y_4959_; -v___y_4940_ = v___y_4958_; -v___y_4941_ = v___y_4961_; -v_outputData_4942_ = v_outputData_4967_; -v_state_4943_ = v_state_4968_; -v_messageHead_4944_ = v_messageHead_4970_; -v_sentMessage_4945_ = v_sentMessage_4971_; -v___y_4946_ = v___y_4963_; -v___y_4947_ = v___y_4962_; -v___y_4948_ = v___y_4964_; -v___y_4949_ = v___x_4966_; -v___y_4950_ = v_knownSize_4969_; -goto v___jp_4936_; -} -else -{ -lean_object* v_outputData_4972_; lean_object* v_state_4973_; lean_object* v_messageHead_4974_; uint8_t v_sentMessage_4975_; lean_object* v___x_4976_; -v_outputData_4972_ = lean_ctor_get(v___y_4960_, 1); -lean_inc_ref(v_outputData_4972_); -v_state_4973_ = lean_ctor_get(v___y_4960_, 2); -lean_inc(v_state_4973_); -v_messageHead_4974_ = lean_ctor_get(v___y_4960_, 4); -lean_inc(v_messageHead_4974_); -v_sentMessage_4975_ = lean_ctor_get_uint8(v___y_4960_, sizeof(void*)*6); -lean_dec_ref(v___y_4960_); -v___x_4976_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); -v___y_4937_ = v___y_4956_; -v___y_4938_ = v___y_4957_; -v___y_4939_ = v___y_4959_; -v___y_4940_ = v___y_4958_; -v___y_4941_ = v___y_4961_; -v_outputData_4942_ = v_outputData_4972_; -v_state_4943_ = v_state_4973_; -v_messageHead_4944_ = v_messageHead_4974_; -v_sentMessage_4945_ = v_sentMessage_4975_; -v___y_4946_ = v___y_4963_; -v___y_4947_ = v___y_4962_; -v___y_4948_ = v___y_4964_; -v___y_4949_ = v___x_4966_; -v___y_4950_ = v___x_4976_; -goto v___jp_4936_; -} -} -v___jp_4977_: -{ -if (v___y_4985_ == 0) -{ -if (v___y_4978_ == 0) -{ -lean_dec(v___y_4988_); -lean_dec_ref(v___y_4987_); -lean_dec_ref(v___y_4984_); -lean_dec_ref(v___y_4983_); -lean_dec(v___y_4982_); -lean_dec_ref(v___y_4979_); -return v_machine_4934_; -} -else -{ -lean_dec_ref(v_machine_4934_); -v___y_4956_ = v___y_4979_; -v___y_4957_ = v___y_4980_; -v___y_4958_ = v___y_4982_; -v___y_4959_ = v___y_4981_; -v___y_4960_ = v___y_4984_; -v___y_4961_ = v___y_4983_; -v___y_4962_ = v___y_4987_; -v___y_4963_ = v___y_4986_; -v___y_4964_ = v___y_4988_; -v___y_4965_ = v___y_4989_; -goto v___jp_4955_; -} -} -else -{ -lean_dec_ref(v_machine_4934_); -v___y_4956_ = v___y_4979_; -v___y_4957_ = v___y_4980_; -v___y_4958_ = v___y_4982_; -v___y_4959_ = v___y_4981_; -v___y_4960_ = v___y_4984_; -v___y_4961_ = v___y_4983_; -v___y_4962_ = v___y_4987_; -v___y_4963_ = v___y_4986_; -v___y_4964_ = v___y_4988_; -v___y_4965_ = v___y_4989_; -goto v___jp_4955_; -} -} -v___jp_4990_: -{ -lean_object* v___x_5003_; uint8_t v___x_5004_; -v___x_5003_ = lean_unsigned_to_nat(204u); -v___x_5004_ = lean_nat_dec_eq(v___y_4991_, v___x_5003_); -lean_dec(v___y_4991_); -v___y_4978_ = v___y_4993_; -v___y_4979_ = v___y_4992_; -v___y_4980_ = v___y_4994_; -v___y_4981_ = v___y_4996_; -v___y_4982_ = v___y_4995_; -v___y_4983_ = v___y_4998_; -v___y_4984_ = v___y_4997_; -v___y_4985_ = v___y_5001_; -v___y_4986_ = v___y_5000_; -v___y_4987_ = v___y_4999_; -v___y_4988_ = v___y_5002_; -v___y_4989_ = v___x_5004_; -goto v___jp_4977_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody___boxed(lean_object* v_dir_5038_, lean_object* v_machine_5039_, lean_object* v_message_5040_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody(uint8_t v_dir_4920_, lean_object* v_machine_4921_){ _start: { -uint8_t v_dir_boxed_5041_; lean_object* v_res_5042_; -v_dir_boxed_5041_ = lean_unbox(v_dir_5038_); -v_res_5042_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_boxed_5041_, v_machine_5039_, v_message_5040_); -lean_dec(v_message_5040_); -return v_res_5042_; +lean_object* v_writer_4922_; lean_object* v_reader_4923_; lean_object* v_config_4924_; lean_object* v_events_4925_; lean_object* v_error_4926_; lean_object* v_instant_4927_; uint8_t v_keepAlive_4928_; uint8_t v_forcedFlush_4929_; uint8_t v_pullBodyStalled_4930_; lean_object* v___x_4932_; uint8_t v_isShared_4933_; uint8_t v_isSharedCheck_4953_; +v_writer_4922_ = lean_ctor_get(v_machine_4921_, 1); +v_reader_4923_ = lean_ctor_get(v_machine_4921_, 0); +v_config_4924_ = lean_ctor_get(v_machine_4921_, 2); +v_events_4925_ = lean_ctor_get(v_machine_4921_, 3); +v_error_4926_ = lean_ctor_get(v_machine_4921_, 4); +v_instant_4927_ = lean_ctor_get(v_machine_4921_, 5); +v_keepAlive_4928_ = lean_ctor_get_uint8(v_machine_4921_, sizeof(void*)*6); +v_forcedFlush_4929_ = lean_ctor_get_uint8(v_machine_4921_, sizeof(void*)*6 + 1); +v_pullBodyStalled_4930_ = lean_ctor_get_uint8(v_machine_4921_, sizeof(void*)*6 + 2); +v_isSharedCheck_4953_ = !lean_is_exclusive(v_machine_4921_); +if (v_isSharedCheck_4953_ == 0) +{ +v___x_4932_ = v_machine_4921_; +v_isShared_4933_ = v_isSharedCheck_4953_; +goto v_resetjp_4931_; +} +else +{ +lean_inc(v_instant_4927_); +lean_inc(v_error_4926_); +lean_inc(v_events_4925_); +lean_inc(v_config_4924_); +lean_inc(v_writer_4922_); +lean_inc(v_reader_4923_); +lean_dec(v_machine_4921_); +v___x_4932_ = lean_box(0); +v_isShared_4933_ = v_isSharedCheck_4953_; +goto v_resetjp_4931_; +} +v_resetjp_4931_: +{ +lean_object* v_userData_4934_; lean_object* v_outputData_4935_; lean_object* v_state_4936_; lean_object* v_knownSize_4937_; lean_object* v_messageHead_4938_; uint8_t v_sentMessage_4939_; uint8_t v_omitBody_4940_; lean_object* v_userDataBytes_4941_; lean_object* v___x_4943_; uint8_t v_isShared_4944_; uint8_t v_isSharedCheck_4952_; +v_userData_4934_ = lean_ctor_get(v_writer_4922_, 0); +v_outputData_4935_ = lean_ctor_get(v_writer_4922_, 1); +v_state_4936_ = lean_ctor_get(v_writer_4922_, 2); +v_knownSize_4937_ = lean_ctor_get(v_writer_4922_, 3); +v_messageHead_4938_ = lean_ctor_get(v_writer_4922_, 4); +v_sentMessage_4939_ = lean_ctor_get_uint8(v_writer_4922_, sizeof(void*)*6); +v_omitBody_4940_ = lean_ctor_get_uint8(v_writer_4922_, sizeof(void*)*6 + 2); +v_userDataBytes_4941_ = lean_ctor_get(v_writer_4922_, 5); +v_isSharedCheck_4952_ = !lean_is_exclusive(v_writer_4922_); +if (v_isSharedCheck_4952_ == 0) +{ +v___x_4943_ = v_writer_4922_; +v_isShared_4944_ = v_isSharedCheck_4952_; +goto v_resetjp_4942_; +} +else +{ +lean_inc(v_userDataBytes_4941_); +lean_inc(v_messageHead_4938_); +lean_inc(v_knownSize_4937_); +lean_inc(v_state_4936_); +lean_inc(v_outputData_4935_); +lean_inc(v_userData_4934_); +lean_dec(v_writer_4922_); +v___x_4943_ = lean_box(0); +v_isShared_4944_ = v_isSharedCheck_4952_; +goto v_resetjp_4942_; +} +v_resetjp_4942_: +{ +uint8_t v___x_4945_; lean_object* v___x_4947_; +v___x_4945_ = 1; +if (v_isShared_4944_ == 0) +{ +v___x_4947_ = v___x_4943_; +goto v_reusejp_4946_; +} +else +{ +lean_object* v_reuseFailAlloc_4951_; +v_reuseFailAlloc_4951_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4951_, 0, v_userData_4934_); +lean_ctor_set(v_reuseFailAlloc_4951_, 1, v_outputData_4935_); +lean_ctor_set(v_reuseFailAlloc_4951_, 2, v_state_4936_); +lean_ctor_set(v_reuseFailAlloc_4951_, 3, v_knownSize_4937_); +lean_ctor_set(v_reuseFailAlloc_4951_, 4, v_messageHead_4938_); +lean_ctor_set(v_reuseFailAlloc_4951_, 5, v_userDataBytes_4941_); +lean_ctor_set_uint8(v_reuseFailAlloc_4951_, sizeof(void*)*6, v_sentMessage_4939_); +lean_ctor_set_uint8(v_reuseFailAlloc_4951_, sizeof(void*)*6 + 2, v_omitBody_4940_); +v___x_4947_ = v_reuseFailAlloc_4951_; +goto v_reusejp_4946_; +} +v_reusejp_4946_: +{ +lean_object* v___x_4949_; +lean_ctor_set_uint8(v___x_4947_, sizeof(void*)*6 + 1, v___x_4945_); +if (v_isShared_4933_ == 0) +{ +lean_ctor_set(v___x_4932_, 1, v___x_4947_); +v___x_4949_ = v___x_4932_; +goto v_reusejp_4948_; +} +else +{ +lean_object* v_reuseFailAlloc_4950_; +v_reuseFailAlloc_4950_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4950_, 0, v_reader_4923_); +lean_ctor_set(v_reuseFailAlloc_4950_, 1, v___x_4947_); +lean_ctor_set(v_reuseFailAlloc_4950_, 2, v_config_4924_); +lean_ctor_set(v_reuseFailAlloc_4950_, 3, v_events_4925_); +lean_ctor_set(v_reuseFailAlloc_4950_, 4, v_error_4926_); +lean_ctor_set(v_reuseFailAlloc_4950_, 5, v_instant_4927_); +lean_ctor_set_uint8(v_reuseFailAlloc_4950_, sizeof(void*)*6, v_keepAlive_4928_); +lean_ctor_set_uint8(v_reuseFailAlloc_4950_, sizeof(void*)*6 + 1, v_forcedFlush_4929_); +lean_ctor_set_uint8(v_reuseFailAlloc_4950_, sizeof(void*)*6 + 2, v_pullBodyStalled_4930_); +v___x_4949_ = v_reuseFailAlloc_4950_; +goto v_reusejp_4948_; +} +v_reusejp_4948_: +{ +return v___x_4949_; } } -LEAN_EXPORT uint8_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg(lean_object* v_machine_5043_){ +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_userClosedBody___boxed(lean_object* v_dir_4954_, lean_object* v_machine_4955_){ _start: { -lean_object* v_writer_5044_; lean_object* v_state_5045_; -v_writer_5044_ = lean_ctor_get(v_machine_5043_, 1); -v_state_5045_ = lean_ctor_get(v_writer_5044_, 2); -if (lean_obj_tag(v_state_5045_) == 5) -{ -uint8_t v___x_5046_; -v___x_5046_ = 1; -return v___x_5046_; -} -else -{ -uint8_t v___x_5047_; -v___x_5047_ = 0; -return v___x_5047_; +uint8_t v_dir_boxed_4956_; lean_object* v_res_4957_; +v_dir_boxed_4956_ = lean_unbox(v_dir_4954_); +v_res_4957_ = l_Std_Http_Protocol_H1_Machine_userClosedBody(v_dir_boxed_4956_, v_machine_4955_); +return v_res_4957_; } } -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg___boxed(lean_object* v_machine_5048_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput___redArg(lean_object* v_machine_4958_){ _start: { -uint8_t v_res_5049_; lean_object* v_r_5050_; -v_res_5049_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg(v_machine_5048_); -lean_dec_ref(v_machine_5048_); -v_r_5050_ = lean_box(v_res_5049_); -return v_r_5050_; +lean_object* v_reader_4959_; lean_object* v_writer_4960_; lean_object* v_config_4961_; lean_object* v_events_4962_; lean_object* v_error_4963_; lean_object* v_instant_4964_; uint8_t v_keepAlive_4965_; uint8_t v_forcedFlush_4966_; lean_object* v___x_4968_; uint8_t v_isShared_4969_; uint8_t v_isSharedCheck_4988_; +v_reader_4959_ = lean_ctor_get(v_machine_4958_, 0); +v_writer_4960_ = lean_ctor_get(v_machine_4958_, 1); +v_config_4961_ = lean_ctor_get(v_machine_4958_, 2); +v_events_4962_ = lean_ctor_get(v_machine_4958_, 3); +v_error_4963_ = lean_ctor_get(v_machine_4958_, 4); +v_instant_4964_ = lean_ctor_get(v_machine_4958_, 5); +v_keepAlive_4965_ = lean_ctor_get_uint8(v_machine_4958_, sizeof(void*)*6); +v_forcedFlush_4966_ = lean_ctor_get_uint8(v_machine_4958_, sizeof(void*)*6 + 1); +v_isSharedCheck_4988_ = !lean_is_exclusive(v_machine_4958_); +if (v_isSharedCheck_4988_ == 0) +{ +v___x_4968_ = v_machine_4958_; +v_isShared_4969_ = v_isSharedCheck_4988_; +goto v_resetjp_4967_; +} +else +{ +lean_inc(v_instant_4964_); +lean_inc(v_error_4963_); +lean_inc(v_events_4962_); +lean_inc(v_config_4961_); +lean_inc(v_writer_4960_); +lean_inc(v_reader_4959_); +lean_dec(v_machine_4958_); +v___x_4968_ = lean_box(0); +v_isShared_4969_ = v_isSharedCheck_4988_; +goto v_resetjp_4967_; +} +v_resetjp_4967_: +{ +lean_object* v_state_4970_; lean_object* v_input_4971_; lean_object* v_messageHead_4972_; lean_object* v_messageCount_4973_; lean_object* v_bodyBytesRead_4974_; lean_object* v_headerBytesRead_4975_; lean_object* v___x_4977_; uint8_t v_isShared_4978_; uint8_t v_isSharedCheck_4987_; +v_state_4970_ = lean_ctor_get(v_reader_4959_, 0); +v_input_4971_ = lean_ctor_get(v_reader_4959_, 1); +v_messageHead_4972_ = lean_ctor_get(v_reader_4959_, 2); +v_messageCount_4973_ = lean_ctor_get(v_reader_4959_, 3); +v_bodyBytesRead_4974_ = lean_ctor_get(v_reader_4959_, 4); +v_headerBytesRead_4975_ = lean_ctor_get(v_reader_4959_, 5); +v_isSharedCheck_4987_ = !lean_is_exclusive(v_reader_4959_); +if (v_isSharedCheck_4987_ == 0) +{ +v___x_4977_ = v_reader_4959_; +v_isShared_4978_ = v_isSharedCheck_4987_; +goto v_resetjp_4976_; +} +else +{ +lean_inc(v_headerBytesRead_4975_); +lean_inc(v_bodyBytesRead_4974_); +lean_inc(v_messageCount_4973_); +lean_inc(v_messageHead_4972_); +lean_inc(v_input_4971_); +lean_inc(v_state_4970_); +lean_dec(v_reader_4959_); +v___x_4977_ = lean_box(0); +v_isShared_4978_ = v_isSharedCheck_4987_; +goto v_resetjp_4976_; +} +v_resetjp_4976_: +{ +uint8_t v___x_4979_; lean_object* v___x_4981_; +v___x_4979_ = 1; +if (v_isShared_4978_ == 0) +{ +v___x_4981_ = v___x_4977_; +goto v_reusejp_4980_; +} +else +{ +lean_object* v_reuseFailAlloc_4986_; +v_reuseFailAlloc_4986_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_4986_, 0, v_state_4970_); +lean_ctor_set(v_reuseFailAlloc_4986_, 1, v_input_4971_); +lean_ctor_set(v_reuseFailAlloc_4986_, 2, v_messageHead_4972_); +lean_ctor_set(v_reuseFailAlloc_4986_, 3, v_messageCount_4973_); +lean_ctor_set(v_reuseFailAlloc_4986_, 4, v_bodyBytesRead_4974_); +lean_ctor_set(v_reuseFailAlloc_4986_, 5, v_headerBytesRead_4975_); +v___x_4981_ = v_reuseFailAlloc_4986_; +goto v_reusejp_4980_; +} +v_reusejp_4980_: +{ +uint8_t v___x_4982_; lean_object* v___x_4984_; +lean_ctor_set_uint8(v___x_4981_, sizeof(void*)*6, v___x_4979_); +v___x_4982_ = 0; +if (v_isShared_4969_ == 0) +{ +lean_ctor_set(v___x_4968_, 0, v___x_4981_); +v___x_4984_ = v___x_4968_; +goto v_reusejp_4983_; +} +else +{ +lean_object* v_reuseFailAlloc_4985_; +v_reuseFailAlloc_4985_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_4985_, 0, v___x_4981_); +lean_ctor_set(v_reuseFailAlloc_4985_, 1, v_writer_4960_); +lean_ctor_set(v_reuseFailAlloc_4985_, 2, v_config_4961_); +lean_ctor_set(v_reuseFailAlloc_4985_, 3, v_events_4962_); +lean_ctor_set(v_reuseFailAlloc_4985_, 4, v_error_4963_); +lean_ctor_set(v_reuseFailAlloc_4985_, 5, v_instant_4964_); +lean_ctor_set_uint8(v_reuseFailAlloc_4985_, sizeof(void*)*6, v_keepAlive_4965_); +lean_ctor_set_uint8(v_reuseFailAlloc_4985_, sizeof(void*)*6 + 1, v_forcedFlush_4966_); +v___x_4984_ = v_reuseFailAlloc_4985_; +goto v_reusejp_4983_; +} +v_reusejp_4983_: +{ +lean_ctor_set_uint8(v___x_4984_, sizeof(void*)*6 + 2, v___x_4982_); +return v___x_4984_; } } -LEAN_EXPORT uint8_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed(uint8_t v_dir_5051_, lean_object* v_machine_5052_){ +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput(uint8_t v_dir_4989_, lean_object* v_machine_4990_){ _start: { -lean_object* v_writer_5053_; lean_object* v_state_5054_; -v_writer_5053_ = lean_ctor_get(v_machine_5052_, 1); -v_state_5054_ = lean_ctor_get(v_writer_5053_, 2); -if (lean_obj_tag(v_state_5054_) == 5) +lean_object* v_reader_4991_; lean_object* v_writer_4992_; lean_object* v_config_4993_; lean_object* v_events_4994_; lean_object* v_error_4995_; lean_object* v_instant_4996_; uint8_t v_keepAlive_4997_; uint8_t v_forcedFlush_4998_; lean_object* v___x_5000_; uint8_t v_isShared_5001_; uint8_t v_isSharedCheck_5020_; +v_reader_4991_ = lean_ctor_get(v_machine_4990_, 0); +v_writer_4992_ = lean_ctor_get(v_machine_4990_, 1); +v_config_4993_ = lean_ctor_get(v_machine_4990_, 2); +v_events_4994_ = lean_ctor_get(v_machine_4990_, 3); +v_error_4995_ = lean_ctor_get(v_machine_4990_, 4); +v_instant_4996_ = lean_ctor_get(v_machine_4990_, 5); +v_keepAlive_4997_ = lean_ctor_get_uint8(v_machine_4990_, sizeof(void*)*6); +v_forcedFlush_4998_ = lean_ctor_get_uint8(v_machine_4990_, sizeof(void*)*6 + 1); +v_isSharedCheck_5020_ = !lean_is_exclusive(v_machine_4990_); +if (v_isSharedCheck_5020_ == 0) { -uint8_t v___x_5055_; -v___x_5055_ = 1; -return v___x_5055_; +v___x_5000_ = v_machine_4990_; +v_isShared_5001_ = v_isSharedCheck_5020_; +goto v_resetjp_4999_; } else { -uint8_t v___x_5056_; -v___x_5056_ = 0; -return v___x_5056_; +lean_inc(v_instant_4996_); +lean_inc(v_error_4995_); +lean_inc(v_events_4994_); +lean_inc(v_config_4993_); +lean_inc(v_writer_4992_); +lean_inc(v_reader_4991_); +lean_dec(v_machine_4990_); +v___x_5000_ = lean_box(0); +v_isShared_5001_ = v_isSharedCheck_5020_; +goto v_resetjp_4999_; +} +v_resetjp_4999_: +{ +lean_object* v_state_5002_; lean_object* v_input_5003_; lean_object* v_messageHead_5004_; lean_object* v_messageCount_5005_; lean_object* v_bodyBytesRead_5006_; lean_object* v_headerBytesRead_5007_; lean_object* v___x_5009_; uint8_t v_isShared_5010_; uint8_t v_isSharedCheck_5019_; +v_state_5002_ = lean_ctor_get(v_reader_4991_, 0); +v_input_5003_ = lean_ctor_get(v_reader_4991_, 1); +v_messageHead_5004_ = lean_ctor_get(v_reader_4991_, 2); +v_messageCount_5005_ = lean_ctor_get(v_reader_4991_, 3); +v_bodyBytesRead_5006_ = lean_ctor_get(v_reader_4991_, 4); +v_headerBytesRead_5007_ = lean_ctor_get(v_reader_4991_, 5); +v_isSharedCheck_5019_ = !lean_is_exclusive(v_reader_4991_); +if (v_isSharedCheck_5019_ == 0) +{ +v___x_5009_ = v_reader_4991_; +v_isShared_5010_ = v_isSharedCheck_5019_; +goto v_resetjp_5008_; +} +else +{ +lean_inc(v_headerBytesRead_5007_); +lean_inc(v_bodyBytesRead_5006_); +lean_inc(v_messageCount_5005_); +lean_inc(v_messageHead_5004_); +lean_inc(v_input_5003_); +lean_inc(v_state_5002_); +lean_dec(v_reader_4991_); +v___x_5009_ = lean_box(0); +v_isShared_5010_ = v_isSharedCheck_5019_; +goto v_resetjp_5008_; +} +v_resetjp_5008_: +{ +uint8_t v___x_5011_; lean_object* v___x_5013_; +v___x_5011_ = 1; +if (v_isShared_5010_ == 0) +{ +v___x_5013_ = v___x_5009_; +goto v_reusejp_5012_; +} +else +{ +lean_object* v_reuseFailAlloc_5018_; +v_reuseFailAlloc_5018_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5018_, 0, v_state_5002_); +lean_ctor_set(v_reuseFailAlloc_5018_, 1, v_input_5003_); +lean_ctor_set(v_reuseFailAlloc_5018_, 2, v_messageHead_5004_); +lean_ctor_set(v_reuseFailAlloc_5018_, 3, v_messageCount_5005_); +lean_ctor_set(v_reuseFailAlloc_5018_, 4, v_bodyBytesRead_5006_); +lean_ctor_set(v_reuseFailAlloc_5018_, 5, v_headerBytesRead_5007_); +v___x_5013_ = v_reuseFailAlloc_5018_; +goto v_reusejp_5012_; +} +v_reusejp_5012_: +{ +uint8_t v___x_5014_; lean_object* v___x_5016_; +lean_ctor_set_uint8(v___x_5013_, sizeof(void*)*6, v___x_5011_); +v___x_5014_ = 0; +if (v_isShared_5001_ == 0) +{ +lean_ctor_set(v___x_5000_, 0, v___x_5013_); +v___x_5016_ = v___x_5000_; +goto v_reusejp_5015_; +} +else +{ +lean_object* v_reuseFailAlloc_5017_; +v_reuseFailAlloc_5017_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5017_, 0, v___x_5013_); +lean_ctor_set(v_reuseFailAlloc_5017_, 1, v_writer_4992_); +lean_ctor_set(v_reuseFailAlloc_5017_, 2, v_config_4993_); +lean_ctor_set(v_reuseFailAlloc_5017_, 3, v_events_4994_); +lean_ctor_set(v_reuseFailAlloc_5017_, 4, v_error_4995_); +lean_ctor_set(v_reuseFailAlloc_5017_, 5, v_instant_4996_); +lean_ctor_set_uint8(v_reuseFailAlloc_5017_, sizeof(void*)*6, v_keepAlive_4997_); +lean_ctor_set_uint8(v_reuseFailAlloc_5017_, sizeof(void*)*6 + 1, v_forcedFlush_4998_); +v___x_5016_ = v_reuseFailAlloc_5017_; +goto v_reusejp_5015_; +} +v_reusejp_5015_: +{ +lean_ctor_set_uint8(v___x_5016_, sizeof(void*)*6 + 2, v___x_5014_); +return v___x_5016_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___boxed(lean_object* v_dir_5057_, lean_object* v_machine_5058_){ +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_noMoreInput___boxed(lean_object* v_dir_5021_, lean_object* v_machine_5022_){ _start: { -uint8_t v_dir_boxed_5059_; uint8_t v_res_5060_; lean_object* v_r_5061_; -v_dir_boxed_5059_ = lean_unbox(v_dir_5057_); -v_res_5060_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed(v_dir_boxed_5059_, v_machine_5058_); -lean_dec_ref(v_machine_5058_); -v_r_5061_ = lean_box(v_res_5060_); -return v_r_5061_; +uint8_t v_dir_boxed_5023_; lean_object* v_res_5024_; +v_dir_boxed_5023_ = lean_unbox(v_dir_5021_); +v_res_5024_ = l_Std_Http_Protocol_H1_Machine_noMoreInput(v_dir_boxed_5023_, v_machine_5022_); +return v_res_5024_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_send(uint8_t v_dir_5062_, lean_object* v_machine_5063_, lean_object* v_message_5064_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize___redArg(lean_object* v_machine_5025_, lean_object* v_size_5026_){ _start: { -lean_object* v___y_5066_; lean_object* v___y_5149_; uint8_t v___y_5150_; uint8_t v___y_5151_; uint8_t v___y_5153_; lean_object* v___y_5154_; uint8_t v___y_5155_; uint8_t v___y_5156_; uint8_t v___y_5157_; uint8_t v___y_5158_; uint8_t v___y_5165_; lean_object* v___y_5166_; uint8_t v___y_5167_; uint8_t v___y_5168_; uint8_t v___y_5169_; lean_object* v_writer_5178_; lean_object* v_reader_5179_; lean_object* v_config_5180_; lean_object* v_events_5181_; lean_object* v_error_5182_; lean_object* v_instant_5183_; uint8_t v_keepAlive_5184_; uint8_t v_forcedFlush_5185_; uint8_t v_pullBodyStalled_5186_; lean_object* v_userData_5187_; lean_object* v_outputData_5188_; lean_object* v_state_5189_; lean_object* v_knownSize_5190_; lean_object* v_messageHead_5191_; uint8_t v_sentMessage_5192_; uint8_t v_userClosedBody_5193_; uint8_t v_omitBody_5194_; lean_object* v_userDataBytes_5195_; lean_object* v___x_5197_; uint8_t v_isShared_5198_; uint8_t v_isSharedCheck_5241_; -v_writer_5178_ = lean_ctor_get(v_machine_5063_, 1); -lean_inc_ref(v_writer_5178_); -v_reader_5179_ = lean_ctor_get(v_machine_5063_, 0); -v_config_5180_ = lean_ctor_get(v_machine_5063_, 2); -v_events_5181_ = lean_ctor_get(v_machine_5063_, 3); -v_error_5182_ = lean_ctor_get(v_machine_5063_, 4); -v_instant_5183_ = lean_ctor_get(v_machine_5063_, 5); -v_keepAlive_5184_ = lean_ctor_get_uint8(v_machine_5063_, sizeof(void*)*6); -v_forcedFlush_5185_ = lean_ctor_get_uint8(v_machine_5063_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5186_ = lean_ctor_get_uint8(v_machine_5063_, sizeof(void*)*6 + 2); -v_userData_5187_ = lean_ctor_get(v_writer_5178_, 0); -v_outputData_5188_ = lean_ctor_get(v_writer_5178_, 1); -v_state_5189_ = lean_ctor_get(v_writer_5178_, 2); -v_knownSize_5190_ = lean_ctor_get(v_writer_5178_, 3); -v_messageHead_5191_ = lean_ctor_get(v_writer_5178_, 4); -v_sentMessage_5192_ = lean_ctor_get_uint8(v_writer_5178_, sizeof(void*)*6); -v_userClosedBody_5193_ = lean_ctor_get_uint8(v_writer_5178_, sizeof(void*)*6 + 1); -v_omitBody_5194_ = lean_ctor_get_uint8(v_writer_5178_, sizeof(void*)*6 + 2); -v_userDataBytes_5195_ = lean_ctor_get(v_writer_5178_, 5); -v_isSharedCheck_5241_ = !lean_is_exclusive(v_writer_5178_); -if (v_isSharedCheck_5241_ == 0) +lean_object* v_writer_5027_; lean_object* v_reader_5028_; lean_object* v_config_5029_; lean_object* v_events_5030_; lean_object* v_error_5031_; lean_object* v_instant_5032_; uint8_t v_keepAlive_5033_; uint8_t v_forcedFlush_5034_; uint8_t v_pullBodyStalled_5035_; lean_object* v___x_5037_; uint8_t v_isShared_5038_; uint8_t v_isSharedCheck_5059_; +v_writer_5027_ = lean_ctor_get(v_machine_5025_, 1); +v_reader_5028_ = lean_ctor_get(v_machine_5025_, 0); +v_config_5029_ = lean_ctor_get(v_machine_5025_, 2); +v_events_5030_ = lean_ctor_get(v_machine_5025_, 3); +v_error_5031_ = lean_ctor_get(v_machine_5025_, 4); +v_instant_5032_ = lean_ctor_get(v_machine_5025_, 5); +v_keepAlive_5033_ = lean_ctor_get_uint8(v_machine_5025_, sizeof(void*)*6); +v_forcedFlush_5034_ = lean_ctor_get_uint8(v_machine_5025_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5035_ = lean_ctor_get_uint8(v_machine_5025_, sizeof(void*)*6 + 2); +v_isSharedCheck_5059_ = !lean_is_exclusive(v_machine_5025_); +if (v_isSharedCheck_5059_ == 0) { -v___x_5197_ = v_writer_5178_; -v_isShared_5198_ = v_isSharedCheck_5241_; -goto v_resetjp_5196_; +v___x_5037_ = v_machine_5025_; +v_isShared_5038_ = v_isSharedCheck_5059_; +goto v_resetjp_5036_; } else { -lean_inc(v_userDataBytes_5195_); -lean_inc(v_messageHead_5191_); -lean_inc(v_knownSize_5190_); -lean_inc(v_state_5189_); -lean_inc(v_outputData_5188_); -lean_inc(v_userData_5187_); -lean_dec(v_writer_5178_); -v___x_5197_ = lean_box(0); -v_isShared_5198_ = v_isSharedCheck_5241_; -goto v_resetjp_5196_; +lean_inc(v_instant_5032_); +lean_inc(v_error_5031_); +lean_inc(v_events_5030_); +lean_inc(v_config_5029_); +lean_inc(v_writer_5027_); +lean_inc(v_reader_5028_); +lean_dec(v_machine_5025_); +v___x_5037_ = lean_box(0); +v_isShared_5038_ = v_isSharedCheck_5059_; +goto v_resetjp_5036_; } -v___jp_5065_: +v_resetjp_5036_: { -if (v_dir_5062_ == 0) +lean_object* v_userData_5039_; lean_object* v_outputData_5040_; lean_object* v_state_5041_; lean_object* v_messageHead_5042_; uint8_t v_sentMessage_5043_; uint8_t v_userClosedBody_5044_; uint8_t v_omitBody_5045_; lean_object* v_userDataBytes_5046_; lean_object* v___x_5048_; uint8_t v_isShared_5049_; uint8_t v_isSharedCheck_5057_; +v_userData_5039_ = lean_ctor_get(v_writer_5027_, 0); +v_outputData_5040_ = lean_ctor_get(v_writer_5027_, 1); +v_state_5041_ = lean_ctor_get(v_writer_5027_, 2); +v_messageHead_5042_ = lean_ctor_get(v_writer_5027_, 4); +v_sentMessage_5043_ = lean_ctor_get_uint8(v_writer_5027_, sizeof(void*)*6); +v_userClosedBody_5044_ = lean_ctor_get_uint8(v_writer_5027_, sizeof(void*)*6 + 1); +v_omitBody_5045_ = lean_ctor_get_uint8(v_writer_5027_, sizeof(void*)*6 + 2); +v_userDataBytes_5046_ = lean_ctor_get(v_writer_5027_, 5); +v_isSharedCheck_5057_ = !lean_is_exclusive(v_writer_5027_); +if (v_isSharedCheck_5057_ == 0) { -lean_object* v_writer_5067_; lean_object* v_reader_5068_; lean_object* v_config_5069_; lean_object* v_events_5070_; lean_object* v_error_5071_; lean_object* v_instant_5072_; uint8_t v_keepAlive_5073_; uint8_t v_forcedFlush_5074_; uint8_t v_pullBodyStalled_5075_; lean_object* v___x_5077_; uint8_t v_isShared_5078_; uint8_t v_isSharedCheck_5099_; -v_writer_5067_ = lean_ctor_get(v___y_5066_, 1); -v_reader_5068_ = lean_ctor_get(v___y_5066_, 0); -v_config_5069_ = lean_ctor_get(v___y_5066_, 2); -v_events_5070_ = lean_ctor_get(v___y_5066_, 3); -v_error_5071_ = lean_ctor_get(v___y_5066_, 4); -v_instant_5072_ = lean_ctor_get(v___y_5066_, 5); -v_keepAlive_5073_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6); -v_forcedFlush_5074_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5075_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6 + 2); -v_isSharedCheck_5099_ = !lean_is_exclusive(v___y_5066_); -if (v_isSharedCheck_5099_ == 0) -{ -v___x_5077_ = v___y_5066_; -v_isShared_5078_ = v_isSharedCheck_5099_; -goto v_resetjp_5076_; +lean_object* v_unused_5058_; +v_unused_5058_ = lean_ctor_get(v_writer_5027_, 3); +lean_dec(v_unused_5058_); +v___x_5048_ = v_writer_5027_; +v_isShared_5049_ = v_isSharedCheck_5057_; +goto v_resetjp_5047_; } else { -lean_inc(v_instant_5072_); -lean_inc(v_error_5071_); -lean_inc(v_events_5070_); -lean_inc(v_config_5069_); -lean_inc(v_writer_5067_); -lean_inc(v_reader_5068_); -lean_dec(v___y_5066_); -v___x_5077_ = lean_box(0); -v_isShared_5078_ = v_isSharedCheck_5099_; -goto v_resetjp_5076_; +lean_inc(v_userDataBytes_5046_); +lean_inc(v_messageHead_5042_); +lean_inc(v_state_5041_); +lean_inc(v_outputData_5040_); +lean_inc(v_userData_5039_); +lean_dec(v_writer_5027_); +v___x_5048_ = lean_box(0); +v_isShared_5049_ = v_isSharedCheck_5057_; +goto v_resetjp_5047_; } -v_resetjp_5076_: +v_resetjp_5047_: { -lean_object* v_userData_5079_; lean_object* v_outputData_5080_; lean_object* v_knownSize_5081_; lean_object* v_messageHead_5082_; uint8_t v_sentMessage_5083_; uint8_t v_userClosedBody_5084_; uint8_t v_omitBody_5085_; lean_object* v_userDataBytes_5086_; lean_object* v___x_5088_; uint8_t v_isShared_5089_; uint8_t v_isSharedCheck_5097_; -v_userData_5079_ = lean_ctor_get(v_writer_5067_, 0); -v_outputData_5080_ = lean_ctor_get(v_writer_5067_, 1); -v_knownSize_5081_ = lean_ctor_get(v_writer_5067_, 3); -v_messageHead_5082_ = lean_ctor_get(v_writer_5067_, 4); -v_sentMessage_5083_ = lean_ctor_get_uint8(v_writer_5067_, sizeof(void*)*6); -v_userClosedBody_5084_ = lean_ctor_get_uint8(v_writer_5067_, sizeof(void*)*6 + 1); -v_omitBody_5085_ = lean_ctor_get_uint8(v_writer_5067_, sizeof(void*)*6 + 2); -v_userDataBytes_5086_ = lean_ctor_get(v_writer_5067_, 5); -v_isSharedCheck_5097_ = !lean_is_exclusive(v_writer_5067_); -if (v_isSharedCheck_5097_ == 0) +lean_object* v___x_5050_; lean_object* v___x_5052_; +v___x_5050_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5050_, 0, v_size_5026_); +if (v_isShared_5049_ == 0) { -lean_object* v_unused_5098_; -v_unused_5098_ = lean_ctor_get(v_writer_5067_, 2); -lean_dec(v_unused_5098_); -v___x_5088_ = v_writer_5067_; -v_isShared_5089_ = v_isSharedCheck_5097_; -goto v_resetjp_5087_; +lean_ctor_set(v___x_5048_, 3, v___x_5050_); +v___x_5052_ = v___x_5048_; +goto v_reusejp_5051_; } else { -lean_inc(v_userDataBytes_5086_); -lean_inc(v_messageHead_5082_); -lean_inc(v_knownSize_5081_); -lean_inc(v_outputData_5080_); -lean_inc(v_userData_5079_); -lean_dec(v_writer_5067_); -v___x_5088_ = lean_box(0); -v_isShared_5089_ = v_isSharedCheck_5097_; -goto v_resetjp_5087_; +lean_object* v_reuseFailAlloc_5056_; +v_reuseFailAlloc_5056_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5056_, 0, v_userData_5039_); +lean_ctor_set(v_reuseFailAlloc_5056_, 1, v_outputData_5040_); +lean_ctor_set(v_reuseFailAlloc_5056_, 2, v_state_5041_); +lean_ctor_set(v_reuseFailAlloc_5056_, 3, v___x_5050_); +lean_ctor_set(v_reuseFailAlloc_5056_, 4, v_messageHead_5042_); +lean_ctor_set(v_reuseFailAlloc_5056_, 5, v_userDataBytes_5046_); +lean_ctor_set_uint8(v_reuseFailAlloc_5056_, sizeof(void*)*6, v_sentMessage_5043_); +lean_ctor_set_uint8(v_reuseFailAlloc_5056_, sizeof(void*)*6 + 1, v_userClosedBody_5044_); +lean_ctor_set_uint8(v_reuseFailAlloc_5056_, sizeof(void*)*6 + 2, v_omitBody_5045_); +v___x_5052_ = v_reuseFailAlloc_5056_; +goto v_reusejp_5051_; } -v_resetjp_5087_: +v_reusejp_5051_: { -lean_object* v___x_5090_; lean_object* v___x_5092_; -v___x_5090_ = lean_box(2); -if (v_isShared_5089_ == 0) +lean_object* v___x_5054_; +if (v_isShared_5038_ == 0) { -lean_ctor_set(v___x_5088_, 2, v___x_5090_); -v___x_5092_ = v___x_5088_; -goto v_reusejp_5091_; +lean_ctor_set(v___x_5037_, 1, v___x_5052_); +v___x_5054_ = v___x_5037_; +goto v_reusejp_5053_; } else { -lean_object* v_reuseFailAlloc_5096_; -v_reuseFailAlloc_5096_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5096_, 0, v_userData_5079_); -lean_ctor_set(v_reuseFailAlloc_5096_, 1, v_outputData_5080_); -lean_ctor_set(v_reuseFailAlloc_5096_, 2, v___x_5090_); -lean_ctor_set(v_reuseFailAlloc_5096_, 3, v_knownSize_5081_); -lean_ctor_set(v_reuseFailAlloc_5096_, 4, v_messageHead_5082_); -lean_ctor_set(v_reuseFailAlloc_5096_, 5, v_userDataBytes_5086_); -lean_ctor_set_uint8(v_reuseFailAlloc_5096_, sizeof(void*)*6, v_sentMessage_5083_); -lean_ctor_set_uint8(v_reuseFailAlloc_5096_, sizeof(void*)*6 + 1, v_userClosedBody_5084_); -lean_ctor_set_uint8(v_reuseFailAlloc_5096_, sizeof(void*)*6 + 2, v_omitBody_5085_); -v___x_5092_ = v_reuseFailAlloc_5096_; -goto v_reusejp_5091_; +lean_object* v_reuseFailAlloc_5055_; +v_reuseFailAlloc_5055_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5055_, 0, v_reader_5028_); +lean_ctor_set(v_reuseFailAlloc_5055_, 1, v___x_5052_); +lean_ctor_set(v_reuseFailAlloc_5055_, 2, v_config_5029_); +lean_ctor_set(v_reuseFailAlloc_5055_, 3, v_events_5030_); +lean_ctor_set(v_reuseFailAlloc_5055_, 4, v_error_5031_); +lean_ctor_set(v_reuseFailAlloc_5055_, 5, v_instant_5032_); +lean_ctor_set_uint8(v_reuseFailAlloc_5055_, sizeof(void*)*6, v_keepAlive_5033_); +lean_ctor_set_uint8(v_reuseFailAlloc_5055_, sizeof(void*)*6 + 1, v_forcedFlush_5034_); +lean_ctor_set_uint8(v_reuseFailAlloc_5055_, sizeof(void*)*6 + 2, v_pullBodyStalled_5035_); +v___x_5054_ = v_reuseFailAlloc_5055_; +goto v_reusejp_5053_; } -v_reusejp_5091_: +v_reusejp_5053_: { -lean_object* v___x_5094_; -if (v_isShared_5078_ == 0) +return v___x_5054_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize(uint8_t v_dir_5060_, lean_object* v_machine_5061_, lean_object* v_size_5062_){ +_start: { -lean_ctor_set(v___x_5077_, 1, v___x_5092_); -v___x_5094_ = v___x_5077_; -goto v_reusejp_5093_; +lean_object* v_writer_5063_; lean_object* v_reader_5064_; lean_object* v_config_5065_; lean_object* v_events_5066_; lean_object* v_error_5067_; lean_object* v_instant_5068_; uint8_t v_keepAlive_5069_; uint8_t v_forcedFlush_5070_; uint8_t v_pullBodyStalled_5071_; lean_object* v___x_5073_; uint8_t v_isShared_5074_; uint8_t v_isSharedCheck_5095_; +v_writer_5063_ = lean_ctor_get(v_machine_5061_, 1); +v_reader_5064_ = lean_ctor_get(v_machine_5061_, 0); +v_config_5065_ = lean_ctor_get(v_machine_5061_, 2); +v_events_5066_ = lean_ctor_get(v_machine_5061_, 3); +v_error_5067_ = lean_ctor_get(v_machine_5061_, 4); +v_instant_5068_ = lean_ctor_get(v_machine_5061_, 5); +v_keepAlive_5069_ = lean_ctor_get_uint8(v_machine_5061_, sizeof(void*)*6); +v_forcedFlush_5070_ = lean_ctor_get_uint8(v_machine_5061_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5071_ = lean_ctor_get_uint8(v_machine_5061_, sizeof(void*)*6 + 2); +v_isSharedCheck_5095_ = !lean_is_exclusive(v_machine_5061_); +if (v_isSharedCheck_5095_ == 0) +{ +v___x_5073_ = v_machine_5061_; +v_isShared_5074_ = v_isSharedCheck_5095_; +goto v_resetjp_5072_; } else { -lean_object* v_reuseFailAlloc_5095_; -v_reuseFailAlloc_5095_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5095_, 0, v_reader_5068_); -lean_ctor_set(v_reuseFailAlloc_5095_, 1, v___x_5092_); -lean_ctor_set(v_reuseFailAlloc_5095_, 2, v_config_5069_); -lean_ctor_set(v_reuseFailAlloc_5095_, 3, v_events_5070_); -lean_ctor_set(v_reuseFailAlloc_5095_, 4, v_error_5071_); -lean_ctor_set(v_reuseFailAlloc_5095_, 5, v_instant_5072_); -lean_ctor_set_uint8(v_reuseFailAlloc_5095_, sizeof(void*)*6, v_keepAlive_5073_); -lean_ctor_set_uint8(v_reuseFailAlloc_5095_, sizeof(void*)*6 + 1, v_forcedFlush_5074_); -lean_ctor_set_uint8(v_reuseFailAlloc_5095_, sizeof(void*)*6 + 2, v_pullBodyStalled_5075_); -v___x_5094_ = v_reuseFailAlloc_5095_; -goto v_reusejp_5093_; +lean_inc(v_instant_5068_); +lean_inc(v_error_5067_); +lean_inc(v_events_5066_); +lean_inc(v_config_5065_); +lean_inc(v_writer_5063_); +lean_inc(v_reader_5064_); +lean_dec(v_machine_5061_); +v___x_5073_ = lean_box(0); +v_isShared_5074_ = v_isSharedCheck_5095_; +goto v_resetjp_5072_; } -v_reusejp_5093_: +v_resetjp_5072_: { -return v___x_5094_; -} -} -} -} +lean_object* v_userData_5075_; lean_object* v_outputData_5076_; lean_object* v_state_5077_; lean_object* v_messageHead_5078_; uint8_t v_sentMessage_5079_; uint8_t v_userClosedBody_5080_; uint8_t v_omitBody_5081_; lean_object* v_userDataBytes_5082_; lean_object* v___x_5084_; uint8_t v_isShared_5085_; uint8_t v_isSharedCheck_5093_; +v_userData_5075_ = lean_ctor_get(v_writer_5063_, 0); +v_outputData_5076_ = lean_ctor_get(v_writer_5063_, 1); +v_state_5077_ = lean_ctor_get(v_writer_5063_, 2); +v_messageHead_5078_ = lean_ctor_get(v_writer_5063_, 4); +v_sentMessage_5079_ = lean_ctor_get_uint8(v_writer_5063_, sizeof(void*)*6); +v_userClosedBody_5080_ = lean_ctor_get_uint8(v_writer_5063_, sizeof(void*)*6 + 1); +v_omitBody_5081_ = lean_ctor_get_uint8(v_writer_5063_, sizeof(void*)*6 + 2); +v_userDataBytes_5082_ = lean_ctor_get(v_writer_5063_, 5); +v_isSharedCheck_5093_ = !lean_is_exclusive(v_writer_5063_); +if (v_isSharedCheck_5093_ == 0) +{ +lean_object* v_unused_5094_; +v_unused_5094_ = lean_ctor_get(v_writer_5063_, 3); +lean_dec(v_unused_5094_); +v___x_5084_ = v_writer_5063_; +v_isShared_5085_ = v_isSharedCheck_5093_; +goto v_resetjp_5083_; } else { -lean_object* v_writer_5100_; lean_object* v_reader_5101_; lean_object* v_config_5102_; lean_object* v_events_5103_; lean_object* v_error_5104_; lean_object* v_instant_5105_; uint8_t v_keepAlive_5106_; uint8_t v_forcedFlush_5107_; uint8_t v_pullBodyStalled_5108_; lean_object* v___x_5110_; uint8_t v_isShared_5111_; uint8_t v_isSharedCheck_5147_; -v_writer_5100_ = lean_ctor_get(v___y_5066_, 1); -v_reader_5101_ = lean_ctor_get(v___y_5066_, 0); -v_config_5102_ = lean_ctor_get(v___y_5066_, 2); -v_events_5103_ = lean_ctor_get(v___y_5066_, 3); -v_error_5104_ = lean_ctor_get(v___y_5066_, 4); -v_instant_5105_ = lean_ctor_get(v___y_5066_, 5); -v_keepAlive_5106_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6); -v_forcedFlush_5107_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5108_ = lean_ctor_get_uint8(v___y_5066_, sizeof(void*)*6 + 2); -v_isSharedCheck_5147_ = !lean_is_exclusive(v___y_5066_); -if (v_isSharedCheck_5147_ == 0) +lean_inc(v_userDataBytes_5082_); +lean_inc(v_messageHead_5078_); +lean_inc(v_state_5077_); +lean_inc(v_outputData_5076_); +lean_inc(v_userData_5075_); +lean_dec(v_writer_5063_); +v___x_5084_ = lean_box(0); +v_isShared_5085_ = v_isSharedCheck_5093_; +goto v_resetjp_5083_; +} +v_resetjp_5083_: { -v___x_5110_ = v___y_5066_; -v_isShared_5111_ = v_isSharedCheck_5147_; -goto v_resetjp_5109_; +lean_object* v___x_5086_; lean_object* v___x_5088_; +v___x_5086_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5086_, 0, v_size_5062_); +if (v_isShared_5085_ == 0) +{ +lean_ctor_set(v___x_5084_, 3, v___x_5086_); +v___x_5088_ = v___x_5084_; +goto v_reusejp_5087_; } else { -lean_inc(v_instant_5105_); -lean_inc(v_error_5104_); -lean_inc(v_events_5103_); -lean_inc(v_config_5102_); -lean_inc(v_writer_5100_); -lean_inc(v_reader_5101_); -lean_dec(v___y_5066_); -v___x_5110_ = lean_box(0); -v_isShared_5111_ = v_isSharedCheck_5147_; -goto v_resetjp_5109_; +lean_object* v_reuseFailAlloc_5092_; +v_reuseFailAlloc_5092_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5092_, 0, v_userData_5075_); +lean_ctor_set(v_reuseFailAlloc_5092_, 1, v_outputData_5076_); +lean_ctor_set(v_reuseFailAlloc_5092_, 2, v_state_5077_); +lean_ctor_set(v_reuseFailAlloc_5092_, 3, v___x_5086_); +lean_ctor_set(v_reuseFailAlloc_5092_, 4, v_messageHead_5078_); +lean_ctor_set(v_reuseFailAlloc_5092_, 5, v_userDataBytes_5082_); +lean_ctor_set_uint8(v_reuseFailAlloc_5092_, sizeof(void*)*6, v_sentMessage_5079_); +lean_ctor_set_uint8(v_reuseFailAlloc_5092_, sizeof(void*)*6 + 1, v_userClosedBody_5080_); +lean_ctor_set_uint8(v_reuseFailAlloc_5092_, sizeof(void*)*6 + 2, v_omitBody_5081_); +v___x_5088_ = v_reuseFailAlloc_5092_; +goto v_reusejp_5087_; } -v_resetjp_5109_: +v_reusejp_5087_: { -lean_object* v_userData_5112_; lean_object* v_outputData_5113_; lean_object* v_knownSize_5114_; lean_object* v_messageHead_5115_; uint8_t v_sentMessage_5116_; uint8_t v_userClosedBody_5117_; uint8_t v_omitBody_5118_; lean_object* v_userDataBytes_5119_; lean_object* v___x_5121_; uint8_t v_isShared_5122_; uint8_t v_isSharedCheck_5145_; -v_userData_5112_ = lean_ctor_get(v_writer_5100_, 0); -v_outputData_5113_ = lean_ctor_get(v_writer_5100_, 1); -v_knownSize_5114_ = lean_ctor_get(v_writer_5100_, 3); -v_messageHead_5115_ = lean_ctor_get(v_writer_5100_, 4); -v_sentMessage_5116_ = lean_ctor_get_uint8(v_writer_5100_, sizeof(void*)*6); -v_userClosedBody_5117_ = lean_ctor_get_uint8(v_writer_5100_, sizeof(void*)*6 + 1); -v_omitBody_5118_ = lean_ctor_get_uint8(v_writer_5100_, sizeof(void*)*6 + 2); -v_userDataBytes_5119_ = lean_ctor_get(v_writer_5100_, 5); -v_isSharedCheck_5145_ = !lean_is_exclusive(v_writer_5100_); +lean_object* v___x_5090_; +if (v_isShared_5074_ == 0) +{ +lean_ctor_set(v___x_5073_, 1, v___x_5088_); +v___x_5090_ = v___x_5073_; +goto v_reusejp_5089_; +} +else +{ +lean_object* v_reuseFailAlloc_5091_; +v_reuseFailAlloc_5091_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5091_, 0, v_reader_5064_); +lean_ctor_set(v_reuseFailAlloc_5091_, 1, v___x_5088_); +lean_ctor_set(v_reuseFailAlloc_5091_, 2, v_config_5065_); +lean_ctor_set(v_reuseFailAlloc_5091_, 3, v_events_5066_); +lean_ctor_set(v_reuseFailAlloc_5091_, 4, v_error_5067_); +lean_ctor_set(v_reuseFailAlloc_5091_, 5, v_instant_5068_); +lean_ctor_set_uint8(v_reuseFailAlloc_5091_, sizeof(void*)*6, v_keepAlive_5069_); +lean_ctor_set_uint8(v_reuseFailAlloc_5091_, sizeof(void*)*6 + 1, v_forcedFlush_5070_); +lean_ctor_set_uint8(v_reuseFailAlloc_5091_, sizeof(void*)*6 + 2, v_pullBodyStalled_5071_); +v___x_5090_ = v_reuseFailAlloc_5091_; +goto v_reusejp_5089_; +} +v_reusejp_5089_: +{ +return v___x_5090_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_setKnownSize___boxed(lean_object* v_dir_5096_, lean_object* v_machine_5097_, lean_object* v_size_5098_){ +_start: +{ +uint8_t v_dir_boxed_5099_; lean_object* v_res_5100_; +v_dir_boxed_5099_ = lean_unbox(v_dir_5096_); +v_res_5100_ = l_Std_Http_Protocol_H1_Machine_setKnownSize(v_dir_boxed_5099_, v_machine_5097_, v_size_5098_); +return v_res_5100_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg(lean_object* v_machine_5107_, uint8_t v_forceZero_5108_){ +_start: +{ +lean_object* v_reader_5109_; lean_object* v_writer_5110_; lean_object* v_config_5111_; lean_object* v_events_5112_; lean_object* v_error_5113_; lean_object* v_instant_5114_; uint8_t v_keepAlive_5115_; uint8_t v_forcedFlush_5116_; uint8_t v_pullBodyStalled_5117_; lean_object* v___x_5119_; uint8_t v_isShared_5120_; uint8_t v_isSharedCheck_5145_; +v_reader_5109_ = lean_ctor_get(v_machine_5107_, 0); +v_writer_5110_ = lean_ctor_get(v_machine_5107_, 1); +v_config_5111_ = lean_ctor_get(v_machine_5107_, 2); +v_events_5112_ = lean_ctor_get(v_machine_5107_, 3); +v_error_5113_ = lean_ctor_get(v_machine_5107_, 4); +v_instant_5114_ = lean_ctor_get(v_machine_5107_, 5); +v_keepAlive_5115_ = lean_ctor_get_uint8(v_machine_5107_, sizeof(void*)*6); +v_forcedFlush_5116_ = lean_ctor_get_uint8(v_machine_5107_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5117_ = lean_ctor_get_uint8(v_machine_5107_, sizeof(void*)*6 + 2); +v_isSharedCheck_5145_ = !lean_is_exclusive(v_machine_5107_); if (v_isSharedCheck_5145_ == 0) { -lean_object* v_unused_5146_; -v_unused_5146_ = lean_ctor_get(v_writer_5100_, 2); -lean_dec(v_unused_5146_); -v___x_5121_ = v_writer_5100_; -v_isShared_5122_ = v_isSharedCheck_5145_; -goto v_resetjp_5120_; +v___x_5119_ = v_machine_5107_; +v_isShared_5120_ = v_isSharedCheck_5145_; +goto v_resetjp_5118_; } else { -lean_inc(v_userDataBytes_5119_); -lean_inc(v_messageHead_5115_); -lean_inc(v_knownSize_5114_); -lean_inc(v_outputData_5113_); -lean_inc(v_userData_5112_); -lean_dec(v_writer_5100_); -v___x_5121_ = lean_box(0); -v_isShared_5122_ = v_isSharedCheck_5145_; -goto v_resetjp_5120_; +lean_inc(v_instant_5114_); +lean_inc(v_error_5113_); +lean_inc(v_events_5112_); +lean_inc(v_config_5111_); +lean_inc(v_writer_5110_); +lean_inc(v_reader_5109_); +lean_dec(v_machine_5107_); +v___x_5119_ = lean_box(0); +v_isShared_5120_ = v_isSharedCheck_5145_; +goto v_resetjp_5118_; } -v_resetjp_5120_: +v_resetjp_5118_: { -lean_object* v_input_5123_; lean_object* v_messageHead_5124_; lean_object* v_messageCount_5125_; lean_object* v_bodyBytesRead_5126_; lean_object* v_headerBytesRead_5127_; uint8_t v_noMoreInput_5128_; lean_object* v___x_5130_; uint8_t v_isShared_5131_; uint8_t v_isSharedCheck_5143_; -v_input_5123_ = lean_ctor_get(v_reader_5101_, 1); -v_messageHead_5124_ = lean_ctor_get(v_reader_5101_, 2); -v_messageCount_5125_ = lean_ctor_get(v_reader_5101_, 3); -v_bodyBytesRead_5126_ = lean_ctor_get(v_reader_5101_, 4); -v_headerBytesRead_5127_ = lean_ctor_get(v_reader_5101_, 5); -v_noMoreInput_5128_ = lean_ctor_get_uint8(v_reader_5101_, sizeof(void*)*6); -v_isSharedCheck_5143_ = !lean_is_exclusive(v_reader_5101_); -if (v_isSharedCheck_5143_ == 0) +uint8_t v___x_5121_; lean_object* v___y_5123_; +v___x_5121_ = 1; +if (v_forceZero_5108_ == 0) { -lean_object* v_unused_5144_; -v_unused_5144_ = lean_ctor_get(v_reader_5101_, 0); -lean_dec(v_unused_5144_); -v___x_5130_ = v_reader_5101_; -v_isShared_5131_ = v_isSharedCheck_5143_; -goto v_resetjp_5129_; +lean_object* v_knownSize_5143_; +v_knownSize_5143_ = lean_ctor_get(v_writer_5110_, 3); +lean_inc(v_knownSize_5143_); +v___y_5123_ = v_knownSize_5143_; +goto v___jp_5122_; } else { -lean_inc(v_headerBytesRead_5127_); -lean_inc(v_bodyBytesRead_5126_); -lean_inc(v_messageCount_5125_); -lean_inc(v_messageHead_5124_); -lean_inc(v_input_5123_); -lean_dec(v_reader_5101_); -v___x_5130_ = lean_box(0); -v_isShared_5131_ = v_isSharedCheck_5143_; -goto v_resetjp_5129_; +lean_object* v___x_5144_; +v___x_5144_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); +v___y_5123_ = v___x_5144_; +goto v___jp_5122_; } -v_resetjp_5129_: +v___jp_5122_: { -lean_object* v___x_5132_; lean_object* v___x_5134_; -v___x_5132_ = lean_box(2); -if (v_isShared_5122_ == 0) +lean_object* v_outputData_5124_; lean_object* v_state_5125_; lean_object* v_messageHead_5126_; uint8_t v_sentMessage_5127_; lean_object* v___x_5129_; uint8_t v_isShared_5130_; uint8_t v_isSharedCheck_5139_; +v_outputData_5124_ = lean_ctor_get(v_writer_5110_, 1); +v_state_5125_ = lean_ctor_get(v_writer_5110_, 2); +v_messageHead_5126_ = lean_ctor_get(v_writer_5110_, 4); +v_sentMessage_5127_ = lean_ctor_get_uint8(v_writer_5110_, sizeof(void*)*6); +v_isSharedCheck_5139_ = !lean_is_exclusive(v_writer_5110_); +if (v_isSharedCheck_5139_ == 0) { -lean_ctor_set(v___x_5121_, 2, v___x_5132_); -v___x_5134_ = v___x_5121_; +lean_object* v_unused_5140_; lean_object* v_unused_5141_; lean_object* v_unused_5142_; +v_unused_5140_ = lean_ctor_get(v_writer_5110_, 5); +lean_dec(v_unused_5140_); +v_unused_5141_ = lean_ctor_get(v_writer_5110_, 3); +lean_dec(v_unused_5141_); +v_unused_5142_ = lean_ctor_get(v_writer_5110_, 0); +lean_dec(v_unused_5142_); +v___x_5129_ = v_writer_5110_; +v_isShared_5130_ = v_isSharedCheck_5139_; +goto v_resetjp_5128_; +} +else +{ +lean_inc(v_messageHead_5126_); +lean_inc(v_state_5125_); +lean_inc(v_outputData_5124_); +lean_dec(v_writer_5110_); +v___x_5129_ = lean_box(0); +v_isShared_5130_ = v_isSharedCheck_5139_; +goto v_resetjp_5128_; +} +v_resetjp_5128_: +{ +lean_object* v___x_5131_; lean_object* v___x_5132_; lean_object* v___x_5134_; +v___x_5131_ = lean_unsigned_to_nat(0u); +v___x_5132_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); +if (v_isShared_5130_ == 0) +{ +lean_ctor_set(v___x_5129_, 5, v___x_5131_); +lean_ctor_set(v___x_5129_, 3, v___y_5123_); +lean_ctor_set(v___x_5129_, 0, v___x_5132_); +v___x_5134_ = v___x_5129_; goto v_reusejp_5133_; } else { -lean_object* v_reuseFailAlloc_5142_; -v_reuseFailAlloc_5142_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5142_, 0, v_userData_5112_); -lean_ctor_set(v_reuseFailAlloc_5142_, 1, v_outputData_5113_); -lean_ctor_set(v_reuseFailAlloc_5142_, 2, v___x_5132_); -lean_ctor_set(v_reuseFailAlloc_5142_, 3, v_knownSize_5114_); -lean_ctor_set(v_reuseFailAlloc_5142_, 4, v_messageHead_5115_); -lean_ctor_set(v_reuseFailAlloc_5142_, 5, v_userDataBytes_5119_); -lean_ctor_set_uint8(v_reuseFailAlloc_5142_, sizeof(void*)*6, v_sentMessage_5116_); -lean_ctor_set_uint8(v_reuseFailAlloc_5142_, sizeof(void*)*6 + 1, v_userClosedBody_5117_); -lean_ctor_set_uint8(v_reuseFailAlloc_5142_, sizeof(void*)*6 + 2, v_omitBody_5118_); -v___x_5134_ = v_reuseFailAlloc_5142_; +lean_object* v_reuseFailAlloc_5138_; +v_reuseFailAlloc_5138_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5138_, 0, v___x_5132_); +lean_ctor_set(v_reuseFailAlloc_5138_, 1, v_outputData_5124_); +lean_ctor_set(v_reuseFailAlloc_5138_, 2, v_state_5125_); +lean_ctor_set(v_reuseFailAlloc_5138_, 3, v___y_5123_); +lean_ctor_set(v_reuseFailAlloc_5138_, 4, v_messageHead_5126_); +lean_ctor_set(v_reuseFailAlloc_5138_, 5, v___x_5131_); +lean_ctor_set_uint8(v_reuseFailAlloc_5138_, sizeof(void*)*6, v_sentMessage_5127_); +v___x_5134_ = v_reuseFailAlloc_5138_; goto v_reusejp_5133_; } v_reusejp_5133_: { -lean_object* v___x_5135_; lean_object* v___x_5137_; -v___x_5135_ = lean_box(0); -if (v_isShared_5131_ == 0) +lean_object* v___x_5136_; +lean_ctor_set_uint8(v___x_5134_, sizeof(void*)*6 + 1, v___x_5121_); +lean_ctor_set_uint8(v___x_5134_, sizeof(void*)*6 + 2, v___x_5121_); +if (v_isShared_5120_ == 0) { -lean_ctor_set(v___x_5130_, 0, v___x_5135_); -v___x_5137_ = v___x_5130_; -goto v_reusejp_5136_; +lean_ctor_set(v___x_5119_, 1, v___x_5134_); +v___x_5136_ = v___x_5119_; +goto v_reusejp_5135_; } else { -lean_object* v_reuseFailAlloc_5141_; -v_reuseFailAlloc_5141_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_5141_, 0, v___x_5135_); -lean_ctor_set(v_reuseFailAlloc_5141_, 1, v_input_5123_); -lean_ctor_set(v_reuseFailAlloc_5141_, 2, v_messageHead_5124_); -lean_ctor_set(v_reuseFailAlloc_5141_, 3, v_messageCount_5125_); -lean_ctor_set(v_reuseFailAlloc_5141_, 4, v_bodyBytesRead_5126_); -lean_ctor_set(v_reuseFailAlloc_5141_, 5, v_headerBytesRead_5127_); -lean_ctor_set_uint8(v_reuseFailAlloc_5141_, sizeof(void*)*6, v_noMoreInput_5128_); -v___x_5137_ = v_reuseFailAlloc_5141_; -goto v_reusejp_5136_; +lean_object* v_reuseFailAlloc_5137_; +v_reuseFailAlloc_5137_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5137_, 0, v_reader_5109_); +lean_ctor_set(v_reuseFailAlloc_5137_, 1, v___x_5134_); +lean_ctor_set(v_reuseFailAlloc_5137_, 2, v_config_5111_); +lean_ctor_set(v_reuseFailAlloc_5137_, 3, v_events_5112_); +lean_ctor_set(v_reuseFailAlloc_5137_, 4, v_error_5113_); +lean_ctor_set(v_reuseFailAlloc_5137_, 5, v_instant_5114_); +lean_ctor_set_uint8(v_reuseFailAlloc_5137_, sizeof(void*)*6, v_keepAlive_5115_); +lean_ctor_set_uint8(v_reuseFailAlloc_5137_, sizeof(void*)*6 + 1, v_forcedFlush_5116_); +lean_ctor_set_uint8(v_reuseFailAlloc_5137_, sizeof(void*)*6 + 2, v_pullBodyStalled_5117_); +v___x_5136_ = v_reuseFailAlloc_5137_; +goto v_reusejp_5135_; } -v_reusejp_5136_: +v_reusejp_5135_: { -lean_object* v___x_5139_; -if (v_isShared_5111_ == 0) +return v___x_5136_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___boxed(lean_object* v_machine_5146_, lean_object* v_forceZero_5147_){ +_start: { -lean_ctor_set(v___x_5110_, 1, v___x_5134_); -lean_ctor_set(v___x_5110_, 0, v___x_5137_); -v___x_5139_ = v___x_5110_; -goto v_reusejp_5138_; +uint8_t v_forceZero_boxed_5148_; lean_object* v_res_5149_; +v_forceZero_boxed_5148_ = lean_unbox(v_forceZero_5147_); +v_res_5149_ = l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg(v_machine_5146_, v_forceZero_boxed_5148_); +return v_res_5149_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody(uint8_t v_dir_5150_, lean_object* v_machine_5151_, uint8_t v_forceZero_5152_){ +_start: +{ +lean_object* v_reader_5153_; lean_object* v_writer_5154_; lean_object* v_config_5155_; lean_object* v_events_5156_; lean_object* v_error_5157_; lean_object* v_instant_5158_; uint8_t v_keepAlive_5159_; uint8_t v_forcedFlush_5160_; uint8_t v_pullBodyStalled_5161_; lean_object* v___x_5163_; uint8_t v_isShared_5164_; uint8_t v_isSharedCheck_5189_; +v_reader_5153_ = lean_ctor_get(v_machine_5151_, 0); +v_writer_5154_ = lean_ctor_get(v_machine_5151_, 1); +v_config_5155_ = lean_ctor_get(v_machine_5151_, 2); +v_events_5156_ = lean_ctor_get(v_machine_5151_, 3); +v_error_5157_ = lean_ctor_get(v_machine_5151_, 4); +v_instant_5158_ = lean_ctor_get(v_machine_5151_, 5); +v_keepAlive_5159_ = lean_ctor_get_uint8(v_machine_5151_, sizeof(void*)*6); +v_forcedFlush_5160_ = lean_ctor_get_uint8(v_machine_5151_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5161_ = lean_ctor_get_uint8(v_machine_5151_, sizeof(void*)*6 + 2); +v_isSharedCheck_5189_ = !lean_is_exclusive(v_machine_5151_); +if (v_isSharedCheck_5189_ == 0) +{ +v___x_5163_ = v_machine_5151_; +v_isShared_5164_ = v_isSharedCheck_5189_; +goto v_resetjp_5162_; } else { -lean_object* v_reuseFailAlloc_5140_; -v_reuseFailAlloc_5140_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5140_, 0, v___x_5137_); -lean_ctor_set(v_reuseFailAlloc_5140_, 1, v___x_5134_); -lean_ctor_set(v_reuseFailAlloc_5140_, 2, v_config_5102_); -lean_ctor_set(v_reuseFailAlloc_5140_, 3, v_events_5103_); -lean_ctor_set(v_reuseFailAlloc_5140_, 4, v_error_5104_); -lean_ctor_set(v_reuseFailAlloc_5140_, 5, v_instant_5105_); -lean_ctor_set_uint8(v_reuseFailAlloc_5140_, sizeof(void*)*6, v_keepAlive_5106_); -lean_ctor_set_uint8(v_reuseFailAlloc_5140_, sizeof(void*)*6 + 1, v_forcedFlush_5107_); -lean_ctor_set_uint8(v_reuseFailAlloc_5140_, sizeof(void*)*6 + 2, v_pullBodyStalled_5108_); -v___x_5139_ = v_reuseFailAlloc_5140_; -goto v_reusejp_5138_; +lean_inc(v_instant_5158_); +lean_inc(v_error_5157_); +lean_inc(v_events_5156_); +lean_inc(v_config_5155_); +lean_inc(v_writer_5154_); +lean_inc(v_reader_5153_); +lean_dec(v_machine_5151_); +v___x_5163_ = lean_box(0); +v_isShared_5164_ = v_isSharedCheck_5189_; +goto v_resetjp_5162_; } -v_reusejp_5138_: +v_resetjp_5162_: { -return v___x_5139_; -} -} -} -} -} -} -} -} -v___jp_5148_: +uint8_t v___x_5165_; lean_object* v___y_5167_; +v___x_5165_ = 1; +if (v_forceZero_5152_ == 0) { -if (v___y_5151_ == 0) -{ -v___y_5066_ = v___y_5149_; -goto v___jp_5065_; +lean_object* v_knownSize_5187_; +v_knownSize_5187_ = lean_ctor_get(v_writer_5154_, 3); +lean_inc(v_knownSize_5187_); +v___y_5167_ = v_knownSize_5187_; +goto v___jp_5166_; } else { -if (v___y_5150_ == 0) +lean_object* v___x_5188_; +v___x_5188_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); +v___y_5167_ = v___x_5188_; +goto v___jp_5166_; +} +v___jp_5166_: { -return v___y_5149_; +lean_object* v_outputData_5168_; lean_object* v_state_5169_; lean_object* v_messageHead_5170_; uint8_t v_sentMessage_5171_; lean_object* v___x_5173_; uint8_t v_isShared_5174_; uint8_t v_isSharedCheck_5183_; +v_outputData_5168_ = lean_ctor_get(v_writer_5154_, 1); +v_state_5169_ = lean_ctor_get(v_writer_5154_, 2); +v_messageHead_5170_ = lean_ctor_get(v_writer_5154_, 4); +v_sentMessage_5171_ = lean_ctor_get_uint8(v_writer_5154_, sizeof(void*)*6); +v_isSharedCheck_5183_ = !lean_is_exclusive(v_writer_5154_); +if (v_isSharedCheck_5183_ == 0) +{ +lean_object* v_unused_5184_; lean_object* v_unused_5185_; lean_object* v_unused_5186_; +v_unused_5184_ = lean_ctor_get(v_writer_5154_, 5); +lean_dec(v_unused_5184_); +v_unused_5185_ = lean_ctor_get(v_writer_5154_, 3); +lean_dec(v_unused_5185_); +v_unused_5186_ = lean_ctor_get(v_writer_5154_, 0); +lean_dec(v_unused_5186_); +v___x_5173_ = v_writer_5154_; +v_isShared_5174_ = v_isSharedCheck_5183_; +goto v_resetjp_5172_; } else { -v___y_5066_ = v___y_5149_; -goto v___jp_5065_; +lean_inc(v_messageHead_5170_); +lean_inc(v_state_5169_); +lean_inc(v_outputData_5168_); +lean_dec(v_writer_5154_); +v___x_5173_ = lean_box(0); +v_isShared_5174_ = v_isSharedCheck_5183_; +goto v_resetjp_5172_; } -} -} -v___jp_5152_: +v_resetjp_5172_: { -lean_object* v_headerSize_5159_; lean_object* v_machine_5160_; lean_object* v_machine_5161_; lean_object* v_reader_5162_; lean_object* v_state_5163_; -v_headerSize_5159_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_5157_, v_message_5064_, v___y_5153_); -v_machine_5160_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_5154_, v_headerSize_5159_, v___y_5158_); -v_machine_5161_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_5062_, v_machine_5160_, v_message_5064_); -lean_dec(v_message_5064_); -v_reader_5162_ = lean_ctor_get(v_machine_5161_, 0); -lean_inc_ref(v_reader_5162_); -v_state_5163_ = lean_ctor_get(v_reader_5162_, 0); -lean_inc(v_state_5163_); -lean_dec_ref(v_reader_5162_); -if (lean_obj_tag(v_state_5163_) == 7) +lean_object* v___x_5175_; lean_object* v___x_5176_; lean_object* v___x_5178_; +v___x_5175_ = lean_unsigned_to_nat(0u); +v___x_5176_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); +if (v_isShared_5174_ == 0) { -lean_dec_ref(v_state_5163_); -v___y_5149_ = v_machine_5161_; -v___y_5150_ = v___y_5156_; -v___y_5151_ = v___y_5155_; -goto v___jp_5148_; +lean_ctor_set(v___x_5173_, 5, v___x_5175_); +lean_ctor_set(v___x_5173_, 3, v___y_5167_); +lean_ctor_set(v___x_5173_, 0, v___x_5176_); +v___x_5178_ = v___x_5173_; +goto v_reusejp_5177_; } else { -lean_dec(v_state_5163_); -v___y_5149_ = v_machine_5161_; -v___y_5150_ = v___y_5156_; -v___y_5151_ = v___y_5153_; -goto v___jp_5148_; +lean_object* v_reuseFailAlloc_5182_; +v_reuseFailAlloc_5182_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5182_, 0, v___x_5176_); +lean_ctor_set(v_reuseFailAlloc_5182_, 1, v_outputData_5168_); +lean_ctor_set(v_reuseFailAlloc_5182_, 2, v_state_5169_); +lean_ctor_set(v_reuseFailAlloc_5182_, 3, v___y_5167_); +lean_ctor_set(v_reuseFailAlloc_5182_, 4, v_messageHead_5170_); +lean_ctor_set(v_reuseFailAlloc_5182_, 5, v___x_5175_); +lean_ctor_set_uint8(v_reuseFailAlloc_5182_, sizeof(void*)*6, v_sentMessage_5171_); +v___x_5178_ = v_reuseFailAlloc_5182_; +goto v_reusejp_5177_; } -} -v___jp_5164_: +v_reusejp_5177_: { -lean_object* v___x_5170_; lean_object* v_indexes_5171_; lean_object* v___x_5172_; lean_object* v___f_5173_; lean_object* v___f_5174_; uint8_t v___x_5175_; -v___x_5170_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_5169_, v_message_5064_); -v_indexes_5171_ = lean_ctor_get(v___x_5170_, 1); -lean_inc_ref(v_indexes_5171_); -lean_dec_ref(v___x_5170_); -v___x_5172_ = l_Std_Http_Header_Name_contentLength; -v___f_5173_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); -v___f_5174_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); -v___x_5175_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_5173_, v___f_5174_, v_indexes_5171_, v___x_5172_); -if (v___x_5175_ == 0) +lean_object* v___x_5180_; +lean_ctor_set_uint8(v___x_5178_, sizeof(void*)*6 + 1, v___x_5165_); +lean_ctor_set_uint8(v___x_5178_, sizeof(void*)*6 + 2, v___x_5165_); +if (v_isShared_5164_ == 0) { -lean_object* v___x_5176_; uint8_t v___x_5177_; -v___x_5176_ = l_Std_Http_Header_Name_transferEncoding; -v___x_5177_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_5173_, v___f_5174_, v_indexes_5171_, v___x_5176_); -lean_dec_ref(v_indexes_5171_); -v___y_5153_ = v___y_5165_; -v___y_5154_ = v___y_5166_; -v___y_5155_ = v___y_5167_; -v___y_5156_ = v___y_5168_; -v___y_5157_ = v___y_5169_; -v___y_5158_ = v___x_5177_; -goto v___jp_5152_; +lean_ctor_set(v___x_5163_, 1, v___x_5178_); +v___x_5180_ = v___x_5163_; +goto v_reusejp_5179_; } else { -lean_dec_ref(v_indexes_5171_); -v___y_5153_ = v___y_5165_; -v___y_5154_ = v___y_5166_; -v___y_5155_ = v___y_5167_; -v___y_5156_ = v___y_5168_; -v___y_5157_ = v___y_5169_; -v___y_5158_ = v___x_5175_; -goto v___jp_5152_; +lean_object* v_reuseFailAlloc_5181_; +v_reuseFailAlloc_5181_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5181_, 0, v_reader_5153_); +lean_ctor_set(v_reuseFailAlloc_5181_, 1, v___x_5178_); +lean_ctor_set(v_reuseFailAlloc_5181_, 2, v_config_5155_); +lean_ctor_set(v_reuseFailAlloc_5181_, 3, v_events_5156_); +lean_ctor_set(v_reuseFailAlloc_5181_, 4, v_error_5157_); +lean_ctor_set(v_reuseFailAlloc_5181_, 5, v_instant_5158_); +lean_ctor_set_uint8(v_reuseFailAlloc_5181_, sizeof(void*)*6, v_keepAlive_5159_); +lean_ctor_set_uint8(v_reuseFailAlloc_5181_, sizeof(void*)*6 + 1, v_forcedFlush_5160_); +lean_ctor_set_uint8(v_reuseFailAlloc_5181_, sizeof(void*)*6 + 2, v_pullBodyStalled_5161_); +v___x_5180_ = v_reuseFailAlloc_5181_; +goto v_reusejp_5179_; +} +v_reusejp_5179_: +{ +return v___x_5180_; } } -v_resetjp_5196_: +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___boxed(lean_object* v_dir_5190_, lean_object* v_machine_5191_, lean_object* v_forceZero_5192_){ +_start: { -uint8_t v___y_5200_; uint8_t v___y_5201_; uint8_t v___y_5202_; uint8_t v___y_5210_; uint8_t v___y_5211_; uint8_t v___y_5214_; lean_object* v___x_5239_; uint8_t v___x_5240_; -v___x_5239_ = lean_box(1); -v___x_5240_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5189_, v___x_5239_); -if (v___x_5240_ == 0) +uint8_t v_dir_boxed_5193_; uint8_t v_forceZero_boxed_5194_; lean_object* v_res_5195_; +v_dir_boxed_5193_ = lean_unbox(v_dir_5190_); +v_forceZero_boxed_5194_ = lean_unbox(v_forceZero_5192_); +v_res_5195_ = l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody(v_dir_boxed_5193_, v_machine_5191_, v_forceZero_boxed_5194_); +return v_res_5195_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg(lean_object* v_machine_5196_, uint8_t v_framingInHeaders_5197_){ +_start: { -v___y_5214_ = v___x_5240_; -goto v___jp_5213_; +if (v_framingInHeaders_5197_ == 0) +{ +return v_machine_5196_; } else { -if (v_sentMessage_5192_ == 0) +lean_object* v_reader_5198_; lean_object* v_writer_5199_; lean_object* v_config_5200_; lean_object* v_events_5201_; lean_object* v_instant_5202_; uint8_t v_keepAlive_5203_; uint8_t v_forcedFlush_5204_; uint8_t v_pullBodyStalled_5205_; lean_object* v___x_5207_; uint8_t v_isShared_5208_; uint8_t v_isSharedCheck_5230_; +v_reader_5198_ = lean_ctor_get(v_machine_5196_, 0); +v_writer_5199_ = lean_ctor_get(v_machine_5196_, 1); +v_config_5200_ = lean_ctor_get(v_machine_5196_, 2); +v_events_5201_ = lean_ctor_get(v_machine_5196_, 3); +v_instant_5202_ = lean_ctor_get(v_machine_5196_, 5); +v_keepAlive_5203_ = lean_ctor_get_uint8(v_machine_5196_, sizeof(void*)*6); +v_forcedFlush_5204_ = lean_ctor_get_uint8(v_machine_5196_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5205_ = lean_ctor_get_uint8(v_machine_5196_, sizeof(void*)*6 + 2); +v_isSharedCheck_5230_ = !lean_is_exclusive(v_machine_5196_); +if (v_isSharedCheck_5230_ == 0) { -v___y_5214_ = v___x_5240_; -goto v___jp_5213_; +lean_object* v_unused_5231_; +v_unused_5231_ = lean_ctor_get(v_machine_5196_, 4); +lean_dec(v_unused_5231_); +v___x_5207_ = v_machine_5196_; +v_isShared_5208_ = v_isSharedCheck_5230_; +goto v_resetjp_5206_; } else { -lean_del_object(v___x_5197_); -lean_dec(v_userDataBytes_5195_); -lean_dec(v_messageHead_5191_); -lean_dec(v_knownSize_5190_); -lean_dec(v_state_5189_); -lean_dec_ref(v_outputData_5188_); -lean_dec_ref(v_userData_5187_); -lean_dec(v_message_5064_); -return v_machine_5063_; +lean_inc(v_instant_5202_); +lean_inc(v_events_5201_); +lean_inc(v_config_5200_); +lean_inc(v_writer_5199_); +lean_inc(v_reader_5198_); +lean_dec(v_machine_5196_); +v___x_5207_ = lean_box(0); +v_isShared_5208_ = v_isSharedCheck_5230_; +goto v_resetjp_5206_; } -} -v___jp_5199_: +v_resetjp_5206_: { -lean_object* v___x_5204_; -lean_inc(v_message_5064_); -if (v_isShared_5198_ == 0) +lean_object* v_input_5209_; lean_object* v_messageHead_5210_; lean_object* v_messageCount_5211_; lean_object* v_bodyBytesRead_5212_; lean_object* v_headerBytesRead_5213_; uint8_t v_noMoreInput_5214_; lean_object* v___x_5216_; uint8_t v_isShared_5217_; uint8_t v_isSharedCheck_5228_; +v_input_5209_ = lean_ctor_get(v_reader_5198_, 1); +v_messageHead_5210_ = lean_ctor_get(v_reader_5198_, 2); +v_messageCount_5211_ = lean_ctor_get(v_reader_5198_, 3); +v_bodyBytesRead_5212_ = lean_ctor_get(v_reader_5198_, 4); +v_headerBytesRead_5213_ = lean_ctor_get(v_reader_5198_, 5); +v_noMoreInput_5214_ = lean_ctor_get_uint8(v_reader_5198_, sizeof(void*)*6); +v_isSharedCheck_5228_ = !lean_is_exclusive(v_reader_5198_); +if (v_isSharedCheck_5228_ == 0) { -lean_ctor_set(v___x_5197_, 4, v_message_5064_); -v___x_5204_ = v___x_5197_; -goto v_reusejp_5203_; -} -else -{ -lean_object* v_reuseFailAlloc_5208_; -v_reuseFailAlloc_5208_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5208_, 0, v_userData_5187_); -lean_ctor_set(v_reuseFailAlloc_5208_, 1, v_outputData_5188_); -lean_ctor_set(v_reuseFailAlloc_5208_, 2, v_state_5189_); -lean_ctor_set(v_reuseFailAlloc_5208_, 3, v_knownSize_5190_); -lean_ctor_set(v_reuseFailAlloc_5208_, 4, v_message_5064_); -lean_ctor_set(v_reuseFailAlloc_5208_, 5, v_userDataBytes_5195_); -lean_ctor_set_uint8(v_reuseFailAlloc_5208_, sizeof(void*)*6 + 1, v_userClosedBody_5193_); -lean_ctor_set_uint8(v_reuseFailAlloc_5208_, sizeof(void*)*6 + 2, v_omitBody_5194_); -v___x_5204_ = v_reuseFailAlloc_5208_; -goto v_reusejp_5203_; -} -v_reusejp_5203_: -{ -lean_object* v_machine_5205_; -lean_ctor_set_uint8(v___x_5204_, sizeof(void*)*6, v___y_5201_); -v_machine_5205_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_machine_5205_, 0, v_reader_5179_); -lean_ctor_set(v_machine_5205_, 1, v___x_5204_); -lean_ctor_set(v_machine_5205_, 2, v_config_5180_); -lean_ctor_set(v_machine_5205_, 3, v_events_5181_); -lean_ctor_set(v_machine_5205_, 4, v_error_5182_); -lean_ctor_set(v_machine_5205_, 5, v_instant_5183_); -lean_ctor_set_uint8(v_machine_5205_, sizeof(void*)*6, v_keepAlive_5184_); -lean_ctor_set_uint8(v_machine_5205_, sizeof(void*)*6 + 1, v_forcedFlush_5185_); -lean_ctor_set_uint8(v_machine_5205_, sizeof(void*)*6 + 2, v_pullBodyStalled_5186_); -if (v_dir_5062_ == 0) -{ -uint8_t v___x_5206_; -v___x_5206_ = 1; -v___y_5165_ = v___y_5200_; -v___y_5166_ = v_machine_5205_; -v___y_5167_ = v___y_5201_; -v___y_5168_ = v___y_5202_; -v___y_5169_ = v___x_5206_; -goto v___jp_5164_; -} -else -{ -uint8_t v___x_5207_; -v___x_5207_ = 0; -v___y_5165_ = v___y_5200_; -v___y_5166_ = v_machine_5205_; -v___y_5167_ = v___y_5201_; -v___y_5168_ = v___y_5202_; -v___y_5169_ = v___x_5207_; -goto v___jp_5164_; -} -} -} -v___jp_5209_: -{ -lean_object* v_state_5212_; -v_state_5212_ = lean_ctor_get(v_reader_5179_, 0); -if (lean_obj_tag(v_state_5212_) == 7) -{ -v___y_5200_ = v___y_5211_; -v___y_5201_ = v___y_5210_; -v___y_5202_ = v___y_5210_; -goto v___jp_5199_; -} -else -{ -v___y_5200_ = v___y_5211_; -v___y_5201_ = v___y_5210_; -v___y_5202_ = v___y_5211_; -goto v___jp_5199_; -} -} -v___jp_5213_: -{ -if (v___y_5214_ == 0) -{ -lean_del_object(v___x_5197_); -lean_dec(v_userDataBytes_5195_); -lean_dec(v_messageHead_5191_); -lean_dec(v_knownSize_5190_); -lean_dec(v_state_5189_); -lean_dec_ref(v_outputData_5188_); -lean_dec_ref(v_userData_5187_); -lean_dec(v_message_5064_); -return v_machine_5063_; -} -else -{ -lean_object* v___x_5216_; uint8_t v_isShared_5217_; uint8_t v_isSharedCheck_5232_; -lean_inc(v_instant_5183_); -lean_inc(v_error_5182_); -lean_inc_ref(v_events_5181_); -lean_inc_ref(v_config_5180_); -lean_inc_ref(v_reader_5179_); -v_isSharedCheck_5232_ = !lean_is_exclusive(v_machine_5063_); -if (v_isSharedCheck_5232_ == 0) -{ -lean_object* v_unused_5233_; lean_object* v_unused_5234_; lean_object* v_unused_5235_; lean_object* v_unused_5236_; lean_object* v_unused_5237_; lean_object* v_unused_5238_; -v_unused_5233_ = lean_ctor_get(v_machine_5063_, 5); -lean_dec(v_unused_5233_); -v_unused_5234_ = lean_ctor_get(v_machine_5063_, 4); -lean_dec(v_unused_5234_); -v_unused_5235_ = lean_ctor_get(v_machine_5063_, 3); -lean_dec(v_unused_5235_); -v_unused_5236_ = lean_ctor_get(v_machine_5063_, 2); -lean_dec(v_unused_5236_); -v_unused_5237_ = lean_ctor_get(v_machine_5063_, 1); -lean_dec(v_unused_5237_); -v_unused_5238_ = lean_ctor_get(v_machine_5063_, 0); -lean_dec(v_unused_5238_); -v___x_5216_ = v_machine_5063_; -v_isShared_5217_ = v_isSharedCheck_5232_; +lean_object* v_unused_5229_; +v_unused_5229_ = lean_ctor_get(v_reader_5198_, 0); +lean_dec(v_unused_5229_); +v___x_5216_ = v_reader_5198_; +v_isShared_5217_ = v_isSharedCheck_5228_; goto v_resetjp_5215_; } else { -lean_dec(v_machine_5063_); +lean_inc(v_headerBytesRead_5213_); +lean_inc(v_bodyBytesRead_5212_); +lean_inc(v_messageCount_5211_); +lean_inc(v_messageHead_5210_); +lean_inc(v_input_5209_); +lean_dec(v_reader_5198_); v___x_5216_ = lean_box(0); -v_isShared_5217_ = v_isSharedCheck_5232_; +v_isShared_5217_ = v_isSharedCheck_5228_; goto v_resetjp_5215_; } v_resetjp_5215_: { -uint8_t v___x_5218_; -v___x_5218_ = 0; -if (v_dir_5062_ == 0) -{ -lean_object* v_status_5219_; uint16_t v___x_5220_; uint16_t v___x_5221_; uint8_t v___x_5222_; -v_status_5219_ = lean_ctor_get(v_message_5064_, 0); -v___x_5220_ = 100; -v___x_5221_ = l_Std_Http_Status_toCode(v_status_5219_); -v___x_5222_ = lean_uint16_dec_le(v___x_5220_, v___x_5221_); -if (v___x_5222_ == 0) -{ -lean_del_object(v___x_5216_); -lean_dec(v_messageHead_5191_); -v___y_5210_ = v___y_5214_; -v___y_5211_ = v___x_5218_; -goto v___jp_5209_; -} -else -{ -uint16_t v___x_5223_; uint8_t v___x_5224_; -v___x_5223_ = 200; -v___x_5224_ = lean_uint16_dec_lt(v___x_5221_, v___x_5223_); -if (v___x_5224_ == 0) -{ -lean_del_object(v___x_5216_); -lean_dec(v_messageHead_5191_); -v___y_5210_ = v___y_5214_; -v___y_5211_ = v___x_5218_; -goto v___jp_5209_; -} -else -{ -uint8_t v___x_5225_; lean_object* v___x_1677__overap_5226_; lean_object* v___x_5227_; lean_object* v___x_5228_; lean_object* v___x_5230_; -lean_del_object(v___x_5197_); -v___x_5225_ = 1; -v___x_1677__overap_5226_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___x_5225_); -v___x_5227_ = lean_apply_2(v___x_1677__overap_5226_, v_outputData_5188_, v_message_5064_); -v___x_5228_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5228_, 0, v_userData_5187_); -lean_ctor_set(v___x_5228_, 1, v___x_5227_); -lean_ctor_set(v___x_5228_, 2, v_state_5189_); -lean_ctor_set(v___x_5228_, 3, v_knownSize_5190_); -lean_ctor_set(v___x_5228_, 4, v_messageHead_5191_); -lean_ctor_set(v___x_5228_, 5, v_userDataBytes_5195_); -lean_ctor_set_uint8(v___x_5228_, sizeof(void*)*6, v_sentMessage_5192_); -lean_ctor_set_uint8(v___x_5228_, sizeof(void*)*6 + 1, v_userClosedBody_5193_); -lean_ctor_set_uint8(v___x_5228_, sizeof(void*)*6 + 2, v_omitBody_5194_); +lean_object* v___x_5218_; lean_object* v___x_5219_; lean_object* v___x_5220_; lean_object* v___x_5222_; +v___x_5218_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_5219_ = lean_array_push(v_events_5201_, v___x_5218_); +v___x_5220_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); if (v_isShared_5217_ == 0) { -lean_ctor_set(v___x_5216_, 1, v___x_5228_); -v___x_5230_ = v___x_5216_; -goto v_reusejp_5229_; +lean_ctor_set(v___x_5216_, 0, v___x_5220_); +v___x_5222_ = v___x_5216_; +goto v_reusejp_5221_; } else { -lean_object* v_reuseFailAlloc_5231_; -v_reuseFailAlloc_5231_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5231_, 0, v_reader_5179_); -lean_ctor_set(v_reuseFailAlloc_5231_, 1, v___x_5228_); -lean_ctor_set(v_reuseFailAlloc_5231_, 2, v_config_5180_); -lean_ctor_set(v_reuseFailAlloc_5231_, 3, v_events_5181_); -lean_ctor_set(v_reuseFailAlloc_5231_, 4, v_error_5182_); -lean_ctor_set(v_reuseFailAlloc_5231_, 5, v_instant_5183_); -lean_ctor_set_uint8(v_reuseFailAlloc_5231_, sizeof(void*)*6, v_keepAlive_5184_); -lean_ctor_set_uint8(v_reuseFailAlloc_5231_, sizeof(void*)*6 + 1, v_forcedFlush_5185_); -lean_ctor_set_uint8(v_reuseFailAlloc_5231_, sizeof(void*)*6 + 2, v_pullBodyStalled_5186_); -v___x_5230_ = v_reuseFailAlloc_5231_; -goto v_reusejp_5229_; +lean_object* v_reuseFailAlloc_5227_; +v_reuseFailAlloc_5227_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5227_, 0, v___x_5220_); +lean_ctor_set(v_reuseFailAlloc_5227_, 1, v_input_5209_); +lean_ctor_set(v_reuseFailAlloc_5227_, 2, v_messageHead_5210_); +lean_ctor_set(v_reuseFailAlloc_5227_, 3, v_messageCount_5211_); +lean_ctor_set(v_reuseFailAlloc_5227_, 4, v_bodyBytesRead_5212_); +lean_ctor_set(v_reuseFailAlloc_5227_, 5, v_headerBytesRead_5213_); +lean_ctor_set_uint8(v_reuseFailAlloc_5227_, sizeof(void*)*6, v_noMoreInput_5214_); +v___x_5222_ = v_reuseFailAlloc_5227_; +goto v_reusejp_5221_; } -v_reusejp_5229_: +v_reusejp_5221_: { -return v___x_5230_; -} -} -} +lean_object* v___x_5223_; lean_object* v___x_5225_; +v___x_5223_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_5208_ == 0) +{ +lean_ctor_set(v___x_5207_, 4, v___x_5223_); +lean_ctor_set(v___x_5207_, 3, v___x_5219_); +lean_ctor_set(v___x_5207_, 0, v___x_5222_); +v___x_5225_ = v___x_5207_; +goto v_reusejp_5224_; } else { -lean_del_object(v___x_5216_); -lean_dec(v_messageHead_5191_); -v___y_5210_ = v___y_5214_; -v___y_5211_ = v___x_5218_; -goto v___jp_5209_; +lean_object* v_reuseFailAlloc_5226_; +v_reuseFailAlloc_5226_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5226_, 0, v___x_5222_); +lean_ctor_set(v_reuseFailAlloc_5226_, 1, v_writer_5199_); +lean_ctor_set(v_reuseFailAlloc_5226_, 2, v_config_5200_); +lean_ctor_set(v_reuseFailAlloc_5226_, 3, v___x_5219_); +lean_ctor_set(v_reuseFailAlloc_5226_, 4, v___x_5223_); +lean_ctor_set(v_reuseFailAlloc_5226_, 5, v_instant_5202_); +lean_ctor_set_uint8(v_reuseFailAlloc_5226_, sizeof(void*)*6, v_keepAlive_5203_); +lean_ctor_set_uint8(v_reuseFailAlloc_5226_, sizeof(void*)*6 + 1, v_forcedFlush_5204_); +lean_ctor_set_uint8(v_reuseFailAlloc_5226_, sizeof(void*)*6 + 2, v_pullBodyStalled_5205_); +v___x_5225_ = v_reuseFailAlloc_5226_; +goto v_reusejp_5224_; +} +v_reusejp_5224_: +{ +return v___x_5225_; } } } @@ -18844,450 +18570,702 @@ goto v___jp_5209_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_send___boxed(lean_object* v_dir_5242_, lean_object* v_machine_5243_, lean_object* v_message_5244_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg___boxed(lean_object* v_machine_5232_, lean_object* v_framingInHeaders_5233_){ _start: { -uint8_t v_dir_boxed_5245_; lean_object* v_res_5246_; -v_dir_boxed_5245_ = lean_unbox(v_dir_5242_); -v_res_5246_ = l_Std_Http_Protocol_H1_Machine_send(v_dir_boxed_5245_, v_machine_5243_, v_message_5244_); -return v_res_5246_; +uint8_t v_framingInHeaders_boxed_5234_; lean_object* v_res_5235_; +v_framingInHeaders_boxed_5234_ = lean_unbox(v_framingInHeaders_5233_); +v_res_5235_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___redArg(v_machine_5232_, v_framingInHeaders_boxed_5234_); +return v_res_5235_; } } -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0(void){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders(uint8_t v_dir_5236_, lean_object* v_machine_5237_, uint8_t v_framingInHeaders_5238_){ _start: { -lean_object* v___x_5247_; lean_object* v___x_5248_; -v___x_5247_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); -v___x_5248_ = lean_string_to_utf8(v___x_5247_); -return v___x_5248_; -} -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__1(void){ -_start: +if (v_framingInHeaders_5238_ == 0) { -lean_object* v___x_5249_; lean_object* v___x_5250_; -v___x_5249_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__0, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__0_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0); -v___x_5250_ = lean_byte_array_size(v___x_5249_); -return v___x_5250_; +return v_machine_5237_; } -} -static uint16_t _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__2(void){ -_start: +else { -lean_object* v___x_5251_; uint16_t v___x_5252_; -v___x_5251_ = lean_box(0); -v___x_5252_ = l_Std_Http_Status_toCode(v___x_5251_); -return v___x_5252_; -} -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__3(void){ -_start: +lean_object* v_reader_5239_; lean_object* v_writer_5240_; lean_object* v_config_5241_; lean_object* v_events_5242_; lean_object* v_instant_5243_; uint8_t v_keepAlive_5244_; uint8_t v_forcedFlush_5245_; uint8_t v_pullBodyStalled_5246_; lean_object* v___x_5248_; uint8_t v_isShared_5249_; uint8_t v_isSharedCheck_5271_; +v_reader_5239_ = lean_ctor_get(v_machine_5237_, 0); +v_writer_5240_ = lean_ctor_get(v_machine_5237_, 1); +v_config_5241_ = lean_ctor_get(v_machine_5237_, 2); +v_events_5242_ = lean_ctor_get(v_machine_5237_, 3); +v_instant_5243_ = lean_ctor_get(v_machine_5237_, 5); +v_keepAlive_5244_ = lean_ctor_get_uint8(v_machine_5237_, sizeof(void*)*6); +v_forcedFlush_5245_ = lean_ctor_get_uint8(v_machine_5237_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5246_ = lean_ctor_get_uint8(v_machine_5237_, sizeof(void*)*6 + 2); +v_isSharedCheck_5271_ = !lean_is_exclusive(v_machine_5237_); +if (v_isSharedCheck_5271_ == 0) { -uint16_t v___x_5253_; lean_object* v___x_5254_; -v___x_5253_ = lean_uint16_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__2, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__2_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__2); -v___x_5254_ = lean_uint16_to_nat(v___x_5253_); -return v___x_5254_; +lean_object* v_unused_5272_; +v_unused_5272_ = lean_ctor_get(v_machine_5237_, 4); +lean_dec(v_unused_5272_); +v___x_5248_ = v_machine_5237_; +v_isShared_5249_ = v_isSharedCheck_5271_; +goto v_resetjp_5247_; } -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__4(void){ -_start: +else { -lean_object* v___x_5255_; lean_object* v___x_5256_; -v___x_5255_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__3, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__3_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__3); -v___x_5256_ = l_Nat_reprFast(v___x_5255_); -return v___x_5256_; +lean_inc(v_instant_5243_); +lean_inc(v_events_5242_); +lean_inc(v_config_5241_); +lean_inc(v_writer_5240_); +lean_inc(v_reader_5239_); +lean_dec(v_machine_5237_); +v___x_5248_ = lean_box(0); +v_isShared_5249_ = v_isSharedCheck_5271_; +goto v_resetjp_5247_; } -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5(void){ -_start: +v_resetjp_5247_: { -lean_object* v___x_5257_; lean_object* v___x_5258_; -v___x_5257_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__4, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__4_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__4); -v___x_5258_ = lean_string_to_utf8(v___x_5257_); -return v___x_5258_; -} -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__6(void){ -_start: +lean_object* v_input_5250_; lean_object* v_messageHead_5251_; lean_object* v_messageCount_5252_; lean_object* v_bodyBytesRead_5253_; lean_object* v_headerBytesRead_5254_; uint8_t v_noMoreInput_5255_; lean_object* v___x_5257_; uint8_t v_isShared_5258_; uint8_t v_isSharedCheck_5269_; +v_input_5250_ = lean_ctor_get(v_reader_5239_, 1); +v_messageHead_5251_ = lean_ctor_get(v_reader_5239_, 2); +v_messageCount_5252_ = lean_ctor_get(v_reader_5239_, 3); +v_bodyBytesRead_5253_ = lean_ctor_get(v_reader_5239_, 4); +v_headerBytesRead_5254_ = lean_ctor_get(v_reader_5239_, 5); +v_noMoreInput_5255_ = lean_ctor_get_uint8(v_reader_5239_, sizeof(void*)*6); +v_isSharedCheck_5269_ = !lean_is_exclusive(v_reader_5239_); +if (v_isSharedCheck_5269_ == 0) { -lean_object* v___x_5259_; lean_object* v___x_5260_; -v___x_5259_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__5, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__5_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5); -v___x_5260_ = lean_byte_array_size(v___x_5259_); -return v___x_5260_; +lean_object* v_unused_5270_; +v_unused_5270_ = lean_ctor_get(v_reader_5239_, 0); +lean_dec(v_unused_5270_); +v___x_5257_ = v_reader_5239_; +v_isShared_5258_ = v_isSharedCheck_5269_; +goto v_resetjp_5256_; } -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__7(void){ -_start: +else { -lean_object* v___x_5261_; lean_object* v___x_5262_; -v___x_5261_ = lean_box(0); -v___x_5262_ = l_Std_Http_Status_reasonPhrase(v___x_5261_); -return v___x_5262_; +lean_inc(v_headerBytesRead_5254_); +lean_inc(v_bodyBytesRead_5253_); +lean_inc(v_messageCount_5252_); +lean_inc(v_messageHead_5251_); +lean_inc(v_input_5250_); +lean_dec(v_reader_5239_); +v___x_5257_ = lean_box(0); +v_isShared_5258_ = v_isSharedCheck_5269_; +goto v_resetjp_5256_; } -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8(void){ -_start: +v_resetjp_5256_: { -lean_object* v___x_5263_; lean_object* v___x_5264_; -v___x_5263_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__7, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__7_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__7); -v___x_5264_ = lean_string_to_utf8(v___x_5263_); -return v___x_5264_; -} -} -static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__9(void){ -_start: +lean_object* v___x_5259_; lean_object* v___x_5260_; lean_object* v___x_5261_; lean_object* v___x_5263_; +v___x_5259_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_5260_ = lean_array_push(v_events_5242_, v___x_5259_); +v___x_5261_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); +if (v_isShared_5258_ == 0) +{ +lean_ctor_set(v___x_5257_, 0, v___x_5261_); +v___x_5263_ = v___x_5257_; +goto v_reusejp_5262_; +} +else +{ +lean_object* v_reuseFailAlloc_5268_; +v_reuseFailAlloc_5268_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5268_, 0, v___x_5261_); +lean_ctor_set(v_reuseFailAlloc_5268_, 1, v_input_5250_); +lean_ctor_set(v_reuseFailAlloc_5268_, 2, v_messageHead_5251_); +lean_ctor_set(v_reuseFailAlloc_5268_, 3, v_messageCount_5252_); +lean_ctor_set(v_reuseFailAlloc_5268_, 4, v_bodyBytesRead_5253_); +lean_ctor_set(v_reuseFailAlloc_5268_, 5, v_headerBytesRead_5254_); +lean_ctor_set_uint8(v_reuseFailAlloc_5268_, sizeof(void*)*6, v_noMoreInput_5255_); +v___x_5263_ = v_reuseFailAlloc_5268_; +goto v_reusejp_5262_; +} +v_reusejp_5262_: +{ +lean_object* v___x_5264_; lean_object* v___x_5266_; +v___x_5264_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_5249_ == 0) +{ +lean_ctor_set(v___x_5248_, 4, v___x_5264_); +lean_ctor_set(v___x_5248_, 3, v___x_5260_); +lean_ctor_set(v___x_5248_, 0, v___x_5263_); +v___x_5266_ = v___x_5248_; +goto v_reusejp_5265_; +} +else +{ +lean_object* v_reuseFailAlloc_5267_; +v_reuseFailAlloc_5267_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5267_, 0, v___x_5263_); +lean_ctor_set(v_reuseFailAlloc_5267_, 1, v_writer_5240_); +lean_ctor_set(v_reuseFailAlloc_5267_, 2, v_config_5241_); +lean_ctor_set(v_reuseFailAlloc_5267_, 3, v___x_5260_); +lean_ctor_set(v_reuseFailAlloc_5267_, 4, v___x_5264_); +lean_ctor_set(v_reuseFailAlloc_5267_, 5, v_instant_5243_); +lean_ctor_set_uint8(v_reuseFailAlloc_5267_, sizeof(void*)*6, v_keepAlive_5244_); +lean_ctor_set_uint8(v_reuseFailAlloc_5267_, sizeof(void*)*6 + 1, v_forcedFlush_5245_); +lean_ctor_set_uint8(v_reuseFailAlloc_5267_, sizeof(void*)*6 + 2, v_pullBodyStalled_5246_); +v___x_5266_ = v_reuseFailAlloc_5267_; +goto v_reusejp_5265_; +} +v_reusejp_5265_: { -lean_object* v___x_5265_; lean_object* v___x_5266_; -v___x_5265_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__8, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__8_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8); -v___x_5266_ = lean_byte_array_size(v___x_5265_); return v___x_5266_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue(uint8_t v_dir_5267_, lean_object* v_machine_5268_, lean_object* v_status_5269_){ +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders___boxed(lean_object* v_dir_5273_, lean_object* v_machine_5274_, lean_object* v_framingInHeaders_5275_){ _start: { -if (v_dir_5267_ == 0) +uint8_t v_dir_boxed_5276_; uint8_t v_framingInHeaders_boxed_5277_; lean_object* v_res_5278_; +v_dir_boxed_5276_ = lean_unbox(v_dir_5273_); +v_framingInHeaders_boxed_5277_ = lean_unbox(v_framingInHeaders_5275_); +v_res_5278_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failOnFramingHeaders(v_dir_boxed_5276_, v_machine_5274_, v_framingInHeaders_boxed_5277_); +return v_res_5278_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(lean_object* v_machine_5279_, lean_object* v_headerSize_5280_, uint8_t v_framingInHeaders_5281_){ +_start: { -lean_object* v_reader_5270_; lean_object* v_state_5271_; -v_reader_5270_ = lean_ctor_get(v_machine_5268_, 0); -lean_inc_ref(v_reader_5270_); -v_state_5271_ = lean_ctor_get(v_reader_5270_, 0); -if (lean_obj_tag(v_state_5271_) == 3) +lean_object* v_writer_5282_; lean_object* v_knownSize_5283_; +v_writer_5282_ = lean_ctor_get(v_machine_5279_, 1); +lean_inc_ref(v_writer_5282_); +v_knownSize_5283_ = lean_ctor_get(v_writer_5282_, 3); +if (lean_obj_tag(v_knownSize_5283_) == 0) { -lean_object* v_writer_5272_; lean_object* v_config_5273_; lean_object* v_events_5274_; lean_object* v_error_5275_; lean_object* v_instant_5276_; uint8_t v_keepAlive_5277_; uint8_t v_forcedFlush_5278_; uint8_t v_pullBodyStalled_5279_; lean_object* v___x_5281_; uint8_t v_isShared_5282_; uint8_t v_isSharedCheck_5503_; -v_writer_5272_ = lean_ctor_get(v_machine_5268_, 1); -v_config_5273_ = lean_ctor_get(v_machine_5268_, 2); -v_events_5274_ = lean_ctor_get(v_machine_5268_, 3); -v_error_5275_ = lean_ctor_get(v_machine_5268_, 4); -v_instant_5276_ = lean_ctor_get(v_machine_5268_, 5); -v_keepAlive_5277_ = lean_ctor_get_uint8(v_machine_5268_, sizeof(void*)*6); -v_forcedFlush_5278_ = lean_ctor_get_uint8(v_machine_5268_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5279_ = lean_ctor_get_uint8(v_machine_5268_, sizeof(void*)*6 + 2); -v_isSharedCheck_5503_ = !lean_is_exclusive(v_machine_5268_); -if (v_isSharedCheck_5503_ == 0) +if (lean_obj_tag(v_headerSize_5280_) == 0) { -lean_object* v_unused_5504_; -v_unused_5504_ = lean_ctor_get(v_machine_5268_, 0); -lean_dec(v_unused_5504_); -v___x_5281_ = v_machine_5268_; -v_isShared_5282_ = v_isSharedCheck_5503_; -goto v_resetjp_5280_; +if (v_framingInHeaders_5281_ == 0) +{ +lean_dec_ref(v_writer_5282_); +return v_machine_5279_; } else { -lean_inc(v_instant_5276_); -lean_inc(v_error_5275_); -lean_inc(v_events_5274_); -lean_inc(v_config_5273_); -lean_inc(v_writer_5272_); -lean_dec(v_machine_5268_); -v___x_5281_ = lean_box(0); -v_isShared_5282_ = v_isSharedCheck_5503_; -goto v_resetjp_5280_; -} -v_resetjp_5280_: +lean_object* v_reader_5284_; lean_object* v_config_5285_; lean_object* v_events_5286_; lean_object* v_instant_5287_; uint8_t v_keepAlive_5288_; uint8_t v_forcedFlush_5289_; uint8_t v_pullBodyStalled_5290_; lean_object* v___x_5292_; uint8_t v_isShared_5293_; uint8_t v_isSharedCheck_5315_; +v_reader_5284_ = lean_ctor_get(v_machine_5279_, 0); +v_config_5285_ = lean_ctor_get(v_machine_5279_, 2); +v_events_5286_ = lean_ctor_get(v_machine_5279_, 3); +v_instant_5287_ = lean_ctor_get(v_machine_5279_, 5); +v_keepAlive_5288_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6); +v_forcedFlush_5289_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5290_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 2); +v_isSharedCheck_5315_ = !lean_is_exclusive(v_machine_5279_); +if (v_isSharedCheck_5315_ == 0) { -lean_object* v_input_5283_; lean_object* v_messageHead_5284_; lean_object* v_messageCount_5285_; lean_object* v_bodyBytesRead_5286_; lean_object* v_headerBytesRead_5287_; uint8_t v_noMoreInput_5288_; lean_object* v_a_5289_; lean_object* v___x_5290_; uint8_t v___x_5291_; lean_object* v_input_5293_; lean_object* v_messageHead_5294_; lean_object* v_messageCount_5295_; lean_object* v_bodyBytesRead_5296_; lean_object* v_headerBytesRead_5297_; lean_object* v_userData_5298_; lean_object* v_outputData_5299_; lean_object* v_state_5300_; lean_object* v_messageHead_5301_; uint8_t v_sentMessage_5302_; uint8_t v_omitBody_5303_; lean_object* v_userDataBytes_5304_; lean_object* v_config_5305_; lean_object* v_events_5306_; lean_object* v_error_5307_; lean_object* v_instant_5308_; uint8_t v_forcedFlush_5309_; uint8_t v_pullBodyStalled_5310_; lean_object* v_reader_5320_; lean_object* v_userData_5321_; lean_object* v_outputData_5322_; lean_object* v_state_5323_; lean_object* v_messageHead_5324_; uint8_t v_sentMessage_5325_; uint8_t v_omitBody_5326_; lean_object* v_userDataBytes_5327_; lean_object* v_config_5328_; lean_object* v_events_5329_; lean_object* v_error_5330_; lean_object* v_instant_5331_; uint8_t v_forcedFlush_5332_; uint8_t v_pullBodyStalled_5333_; lean_object* v___y_5340_; uint8_t v___y_5357_; lean_object* v___y_5358_; uint8_t v___y_5359_; -v_input_5283_ = lean_ctor_get(v_reader_5270_, 1); -v_messageHead_5284_ = lean_ctor_get(v_reader_5270_, 2); -v_messageCount_5285_ = lean_ctor_get(v_reader_5270_, 3); -v_bodyBytesRead_5286_ = lean_ctor_get(v_reader_5270_, 4); -v_headerBytesRead_5287_ = lean_ctor_get(v_reader_5270_, 5); -v_noMoreInput_5288_ = lean_ctor_get_uint8(v_reader_5270_, sizeof(void*)*6); -v_a_5289_ = lean_ctor_get(v_state_5271_, 0); -v___x_5290_ = lean_box(0); -v___x_5291_ = l_Std_Http_instBEqStatus_beq(v_status_5269_, v___x_5290_); -if (v___x_5291_ == 0) -{ -lean_object* v_userData_5375_; lean_object* v_outputData_5376_; lean_object* v_state_5377_; lean_object* v_knownSize_5378_; lean_object* v_messageHead_5379_; uint8_t v_sentMessage_5380_; uint8_t v_userClosedBody_5381_; uint8_t v_omitBody_5382_; lean_object* v_userDataBytes_5383_; lean_object* v___x_5385_; uint8_t v_isShared_5386_; uint8_t v_isSharedCheck_5427_; -v_userData_5375_ = lean_ctor_get(v_writer_5272_, 0); -v_outputData_5376_ = lean_ctor_get(v_writer_5272_, 1); -v_state_5377_ = lean_ctor_get(v_writer_5272_, 2); -v_knownSize_5378_ = lean_ctor_get(v_writer_5272_, 3); -v_messageHead_5379_ = lean_ctor_get(v_writer_5272_, 4); -v_sentMessage_5380_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6); -v_userClosedBody_5381_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6 + 1); -v_omitBody_5382_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6 + 2); -v_userDataBytes_5383_ = lean_ctor_get(v_writer_5272_, 5); -v_isSharedCheck_5427_ = !lean_is_exclusive(v_writer_5272_); -if (v_isSharedCheck_5427_ == 0) -{ -v___x_5385_ = v_writer_5272_; -v_isShared_5386_ = v_isSharedCheck_5427_; -goto v_resetjp_5384_; +lean_object* v_unused_5316_; lean_object* v_unused_5317_; +v_unused_5316_ = lean_ctor_get(v_machine_5279_, 4); +lean_dec(v_unused_5316_); +v_unused_5317_ = lean_ctor_get(v_machine_5279_, 1); +lean_dec(v_unused_5317_); +v___x_5292_ = v_machine_5279_; +v_isShared_5293_ = v_isSharedCheck_5315_; +goto v_resetjp_5291_; } else { -lean_inc(v_userDataBytes_5383_); -lean_inc(v_messageHead_5379_); -lean_inc(v_knownSize_5378_); -lean_inc(v_state_5377_); -lean_inc(v_outputData_5376_); -lean_inc(v_userData_5375_); -lean_dec(v_writer_5272_); -v___x_5385_ = lean_box(0); -v_isShared_5386_ = v_isSharedCheck_5427_; -goto v_resetjp_5384_; +lean_inc(v_instant_5287_); +lean_inc(v_events_5286_); +lean_inc(v_config_5285_); +lean_inc(v_reader_5284_); +lean_dec(v_machine_5279_); +v___x_5292_ = lean_box(0); +v_isShared_5293_ = v_isSharedCheck_5315_; +goto v_resetjp_5291_; } -v_resetjp_5384_: +v_resetjp_5291_: { -uint8_t v___x_5387_; lean_object* v___x_5388_; lean_object* v___x_5389_; lean_object* v___y_5391_; uint8_t v___y_5392_; uint8_t v___y_5393_; uint8_t v___y_5394_; uint8_t v___y_5395_; uint8_t v___y_5402_; uint8_t v___y_5403_; uint8_t v___y_5416_; lean_object* v___x_5425_; uint8_t v___x_5426_; -v___x_5387_ = 1; -v___x_5388_ = l_Std_Http_Headers_empty; -lean_inc(v_status_5269_); -v___x_5389_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_5389_, 0, v_status_5269_); -lean_ctor_set(v___x_5389_, 1, v___x_5388_); -lean_ctor_set_uint8(v___x_5389_, sizeof(void*)*2, v___x_5387_); -v___x_5425_ = lean_box(1); -v___x_5426_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5377_, v___x_5425_); -if (v___x_5426_ == 0) +lean_object* v_input_5294_; lean_object* v_messageHead_5295_; lean_object* v_messageCount_5296_; lean_object* v_bodyBytesRead_5297_; lean_object* v_headerBytesRead_5298_; uint8_t v_noMoreInput_5299_; lean_object* v___x_5301_; uint8_t v_isShared_5302_; uint8_t v_isSharedCheck_5313_; +v_input_5294_ = lean_ctor_get(v_reader_5284_, 1); +v_messageHead_5295_ = lean_ctor_get(v_reader_5284_, 2); +v_messageCount_5296_ = lean_ctor_get(v_reader_5284_, 3); +v_bodyBytesRead_5297_ = lean_ctor_get(v_reader_5284_, 4); +v_headerBytesRead_5298_ = lean_ctor_get(v_reader_5284_, 5); +v_noMoreInput_5299_ = lean_ctor_get_uint8(v_reader_5284_, sizeof(void*)*6); +v_isSharedCheck_5313_ = !lean_is_exclusive(v_reader_5284_); +if (v_isSharedCheck_5313_ == 0) { -v___y_5416_ = v___x_5426_; -goto v___jp_5415_; +lean_object* v_unused_5314_; +v_unused_5314_ = lean_ctor_get(v_reader_5284_, 0); +lean_dec(v_unused_5314_); +v___x_5301_ = v_reader_5284_; +v_isShared_5302_ = v_isSharedCheck_5313_; +goto v_resetjp_5300_; } else { -if (v_sentMessage_5380_ == 0) +lean_inc(v_headerBytesRead_5298_); +lean_inc(v_bodyBytesRead_5297_); +lean_inc(v_messageCount_5296_); +lean_inc(v_messageHead_5295_); +lean_inc(v_input_5294_); +lean_dec(v_reader_5284_); +v___x_5301_ = lean_box(0); +v_isShared_5302_ = v_isSharedCheck_5313_; +goto v_resetjp_5300_; +} +v_resetjp_5300_: { -v___y_5416_ = v___x_5426_; -goto v___jp_5415_; +lean_object* v___x_5303_; lean_object* v___x_5304_; lean_object* v___x_5305_; lean_object* v___x_5307_; +v___x_5303_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_5304_ = lean_array_push(v_events_5286_, v___x_5303_); +v___x_5305_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); +if (v_isShared_5302_ == 0) +{ +lean_ctor_set(v___x_5301_, 0, v___x_5305_); +v___x_5307_ = v___x_5301_; +goto v_reusejp_5306_; } else { -if (v___x_5291_ == 0) +lean_object* v_reuseFailAlloc_5312_; +v_reuseFailAlloc_5312_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5312_, 0, v___x_5305_); +lean_ctor_set(v_reuseFailAlloc_5312_, 1, v_input_5294_); +lean_ctor_set(v_reuseFailAlloc_5312_, 2, v_messageHead_5295_); +lean_ctor_set(v_reuseFailAlloc_5312_, 3, v_messageCount_5296_); +lean_ctor_set(v_reuseFailAlloc_5312_, 4, v_bodyBytesRead_5297_); +lean_ctor_set(v_reuseFailAlloc_5312_, 5, v_headerBytesRead_5298_); +lean_ctor_set_uint8(v_reuseFailAlloc_5312_, sizeof(void*)*6, v_noMoreInput_5299_); +v___x_5307_ = v_reuseFailAlloc_5312_; +goto v_reusejp_5306_; +} +v_reusejp_5306_: { -lean_inc(v_headerBytesRead_5287_); -lean_inc(v_bodyBytesRead_5286_); -lean_inc(v_messageCount_5285_); -lean_inc(v_messageHead_5284_); -lean_inc_ref(v_input_5283_); -lean_dec_ref(v___x_5389_); -lean_del_object(v___x_5385_); -lean_dec(v_knownSize_5378_); -lean_dec_ref(v_reader_5270_); -lean_dec(v_status_5269_); -v_input_5293_ = v_input_5283_; -v_messageHead_5294_ = v_messageHead_5284_; -v_messageCount_5295_ = v_messageCount_5285_; -v_bodyBytesRead_5296_ = v_bodyBytesRead_5286_; -v_headerBytesRead_5297_ = v_headerBytesRead_5287_; -v_userData_5298_ = v_userData_5375_; -v_outputData_5299_ = v_outputData_5376_; -v_state_5300_ = v_state_5377_; -v_messageHead_5301_ = v_messageHead_5379_; -v_sentMessage_5302_ = v_sentMessage_5380_; -v_omitBody_5303_ = v_omitBody_5382_; -v_userDataBytes_5304_ = v_userDataBytes_5383_; -v_config_5305_ = v_config_5273_; -v_events_5306_ = v_events_5274_; -v_error_5307_ = v_error_5275_; -v_instant_5308_ = v_instant_5276_; -v_forcedFlush_5309_ = v_forcedFlush_5278_; -v_pullBodyStalled_5310_ = v_pullBodyStalled_5279_; -goto v___jp_5292_; +lean_object* v___x_5308_; lean_object* v___x_5310_; +v___x_5308_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_5293_ == 0) +{ +lean_ctor_set(v___x_5292_, 4, v___x_5308_); +lean_ctor_set(v___x_5292_, 3, v___x_5304_); +lean_ctor_set(v___x_5292_, 0, v___x_5307_); +v___x_5310_ = v___x_5292_; +goto v_reusejp_5309_; } else { -v___y_5416_ = v___x_5426_; -goto v___jp_5415_; +lean_object* v_reuseFailAlloc_5311_; +v_reuseFailAlloc_5311_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5311_, 0, v___x_5307_); +lean_ctor_set(v_reuseFailAlloc_5311_, 1, v_writer_5282_); +lean_ctor_set(v_reuseFailAlloc_5311_, 2, v_config_5285_); +lean_ctor_set(v_reuseFailAlloc_5311_, 3, v___x_5304_); +lean_ctor_set(v_reuseFailAlloc_5311_, 4, v___x_5308_); +lean_ctor_set(v_reuseFailAlloc_5311_, 5, v_instant_5287_); +lean_ctor_set_uint8(v_reuseFailAlloc_5311_, sizeof(void*)*6, v_keepAlive_5288_); +lean_ctor_set_uint8(v_reuseFailAlloc_5311_, sizeof(void*)*6 + 1, v_forcedFlush_5289_); +lean_ctor_set_uint8(v_reuseFailAlloc_5311_, sizeof(void*)*6 + 2, v_pullBodyStalled_5290_); +v___x_5310_ = v_reuseFailAlloc_5311_; +goto v_reusejp_5309_; } -} -} -v___jp_5390_: +v_reusejp_5309_: { -lean_object* v_headerSize_5396_; lean_object* v_machine_5397_; lean_object* v_machine_5398_; lean_object* v_reader_5399_; lean_object* v_state_5400_; -v_headerSize_5396_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_5394_, v___x_5389_, v___y_5393_); -v_machine_5397_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_5391_, v_headerSize_5396_, v___y_5395_); -v_machine_5398_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_5267_, v_machine_5397_, v___x_5389_); -lean_dec_ref(v___x_5389_); -v_reader_5399_ = lean_ctor_get(v_machine_5398_, 0); -lean_inc_ref(v_reader_5399_); -v_state_5400_ = lean_ctor_get(v_reader_5399_, 0); -lean_inc(v_state_5400_); -lean_dec_ref(v_reader_5399_); -if (lean_obj_tag(v_state_5400_) == 7) -{ -lean_dec_ref(v_state_5400_); -v___y_5357_ = v___y_5393_; -v___y_5358_ = v_machine_5398_; -v___y_5359_ = v___y_5392_; -goto v___jp_5356_; +return v___x_5310_; +} +} +} +} +} } else { -lean_dec(v_state_5400_); -v___y_5357_ = v___y_5393_; -v___y_5358_ = v_machine_5398_; -v___y_5359_ = v___y_5393_; -goto v___jp_5356_; +lean_object* v_reader_5318_; lean_object* v_config_5319_; lean_object* v_events_5320_; lean_object* v_error_5321_; lean_object* v_instant_5322_; uint8_t v_keepAlive_5323_; uint8_t v_forcedFlush_5324_; uint8_t v_pullBodyStalled_5325_; lean_object* v___x_5327_; uint8_t v_isShared_5328_; uint8_t v_isSharedCheck_5348_; +v_reader_5318_ = lean_ctor_get(v_machine_5279_, 0); +v_config_5319_ = lean_ctor_get(v_machine_5279_, 2); +v_events_5320_ = lean_ctor_get(v_machine_5279_, 3); +v_error_5321_ = lean_ctor_get(v_machine_5279_, 4); +v_instant_5322_ = lean_ctor_get(v_machine_5279_, 5); +v_keepAlive_5323_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6); +v_forcedFlush_5324_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5325_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 2); +v_isSharedCheck_5348_ = !lean_is_exclusive(v_machine_5279_); +if (v_isSharedCheck_5348_ == 0) +{ +lean_object* v_unused_5349_; +v_unused_5349_ = lean_ctor_get(v_machine_5279_, 1); +lean_dec(v_unused_5349_); +v___x_5327_ = v_machine_5279_; +v_isShared_5328_ = v_isSharedCheck_5348_; +goto v_resetjp_5326_; +} +else +{ +lean_inc(v_instant_5322_); +lean_inc(v_error_5321_); +lean_inc(v_events_5320_); +lean_inc(v_config_5319_); +lean_inc(v_reader_5318_); +lean_dec(v_machine_5279_); +v___x_5327_ = lean_box(0); +v_isShared_5328_ = v_isSharedCheck_5348_; +goto v_resetjp_5326_; +} +v_resetjp_5326_: +{ +lean_object* v_userData_5329_; lean_object* v_outputData_5330_; lean_object* v_state_5331_; lean_object* v_messageHead_5332_; uint8_t v_sentMessage_5333_; uint8_t v_userClosedBody_5334_; uint8_t v_omitBody_5335_; lean_object* v_userDataBytes_5336_; lean_object* v___x_5338_; uint8_t v_isShared_5339_; uint8_t v_isSharedCheck_5346_; +v_userData_5329_ = lean_ctor_get(v_writer_5282_, 0); +v_outputData_5330_ = lean_ctor_get(v_writer_5282_, 1); +v_state_5331_ = lean_ctor_get(v_writer_5282_, 2); +v_messageHead_5332_ = lean_ctor_get(v_writer_5282_, 4); +v_sentMessage_5333_ = lean_ctor_get_uint8(v_writer_5282_, sizeof(void*)*6); +v_userClosedBody_5334_ = lean_ctor_get_uint8(v_writer_5282_, sizeof(void*)*6 + 1); +v_omitBody_5335_ = lean_ctor_get_uint8(v_writer_5282_, sizeof(void*)*6 + 2); +v_userDataBytes_5336_ = lean_ctor_get(v_writer_5282_, 5); +v_isSharedCheck_5346_ = !lean_is_exclusive(v_writer_5282_); +if (v_isSharedCheck_5346_ == 0) +{ +lean_object* v_unused_5347_; +v_unused_5347_ = lean_ctor_get(v_writer_5282_, 3); +lean_dec(v_unused_5347_); +v___x_5338_ = v_writer_5282_; +v_isShared_5339_ = v_isSharedCheck_5346_; +goto v_resetjp_5337_; +} +else +{ +lean_inc(v_userDataBytes_5336_); +lean_inc(v_messageHead_5332_); +lean_inc(v_state_5331_); +lean_inc(v_outputData_5330_); +lean_inc(v_userData_5329_); +lean_dec(v_writer_5282_); +v___x_5338_ = lean_box(0); +v_isShared_5339_ = v_isSharedCheck_5346_; +goto v_resetjp_5337_; +} +v_resetjp_5337_: +{ +lean_object* v___x_5341_; +if (v_isShared_5339_ == 0) +{ +lean_ctor_set(v___x_5338_, 3, v_headerSize_5280_); +v___x_5341_ = v___x_5338_; +goto v_reusejp_5340_; +} +else +{ +lean_object* v_reuseFailAlloc_5345_; +v_reuseFailAlloc_5345_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5345_, 0, v_userData_5329_); +lean_ctor_set(v_reuseFailAlloc_5345_, 1, v_outputData_5330_); +lean_ctor_set(v_reuseFailAlloc_5345_, 2, v_state_5331_); +lean_ctor_set(v_reuseFailAlloc_5345_, 3, v_headerSize_5280_); +lean_ctor_set(v_reuseFailAlloc_5345_, 4, v_messageHead_5332_); +lean_ctor_set(v_reuseFailAlloc_5345_, 5, v_userDataBytes_5336_); +lean_ctor_set_uint8(v_reuseFailAlloc_5345_, sizeof(void*)*6, v_sentMessage_5333_); +lean_ctor_set_uint8(v_reuseFailAlloc_5345_, sizeof(void*)*6 + 1, v_userClosedBody_5334_); +lean_ctor_set_uint8(v_reuseFailAlloc_5345_, sizeof(void*)*6 + 2, v_omitBody_5335_); +v___x_5341_ = v_reuseFailAlloc_5345_; +goto v_reusejp_5340_; +} +v_reusejp_5340_: +{ +lean_object* v___x_5343_; +if (v_isShared_5328_ == 0) +{ +lean_ctor_set(v___x_5327_, 1, v___x_5341_); +v___x_5343_ = v___x_5327_; +goto v_reusejp_5342_; +} +else +{ +lean_object* v_reuseFailAlloc_5344_; +v_reuseFailAlloc_5344_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5344_, 0, v_reader_5318_); +lean_ctor_set(v_reuseFailAlloc_5344_, 1, v___x_5341_); +lean_ctor_set(v_reuseFailAlloc_5344_, 2, v_config_5319_); +lean_ctor_set(v_reuseFailAlloc_5344_, 3, v_events_5320_); +lean_ctor_set(v_reuseFailAlloc_5344_, 4, v_error_5321_); +lean_ctor_set(v_reuseFailAlloc_5344_, 5, v_instant_5322_); +lean_ctor_set_uint8(v_reuseFailAlloc_5344_, sizeof(void*)*6, v_keepAlive_5323_); +lean_ctor_set_uint8(v_reuseFailAlloc_5344_, sizeof(void*)*6 + 1, v_forcedFlush_5324_); +lean_ctor_set_uint8(v_reuseFailAlloc_5344_, sizeof(void*)*6 + 2, v_pullBodyStalled_5325_); +v___x_5343_ = v_reuseFailAlloc_5344_; +goto v_reusejp_5342_; +} +v_reusejp_5342_: +{ +return v___x_5343_; } } -v___jp_5401_: +} +} +} +} +else { -uint8_t v___x_5404_; lean_object* v___x_5405_; lean_object* v_indexes_5406_; lean_object* v___x_5408_; -v___x_5404_ = 1; -v___x_5405_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_5404_, v___x_5389_); -v_indexes_5406_ = lean_ctor_get(v___x_5405_, 1); -lean_inc_ref(v_indexes_5406_); -lean_dec_ref(v___x_5405_); -lean_inc_ref(v___x_5389_); -if (v_isShared_5386_ == 0) +if (lean_obj_tag(v_headerSize_5280_) == 0) { -lean_ctor_set(v___x_5385_, 4, v___x_5389_); -v___x_5408_ = v___x_5385_; -goto v_reusejp_5407_; +if (v_framingInHeaders_5281_ == 0) +{ +lean_dec_ref(v_writer_5282_); +return v_machine_5279_; +} +else +{ +lean_object* v_reader_5350_; lean_object* v_config_5351_; lean_object* v_events_5352_; lean_object* v_instant_5353_; uint8_t v_keepAlive_5354_; uint8_t v_forcedFlush_5355_; uint8_t v_pullBodyStalled_5356_; lean_object* v___x_5358_; uint8_t v_isShared_5359_; uint8_t v_isSharedCheck_5381_; +v_reader_5350_ = lean_ctor_get(v_machine_5279_, 0); +v_config_5351_ = lean_ctor_get(v_machine_5279_, 2); +v_events_5352_ = lean_ctor_get(v_machine_5279_, 3); +v_instant_5353_ = lean_ctor_get(v_machine_5279_, 5); +v_keepAlive_5354_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6); +v_forcedFlush_5355_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5356_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 2); +v_isSharedCheck_5381_ = !lean_is_exclusive(v_machine_5279_); +if (v_isSharedCheck_5381_ == 0) +{ +lean_object* v_unused_5382_; lean_object* v_unused_5383_; +v_unused_5382_ = lean_ctor_get(v_machine_5279_, 4); +lean_dec(v_unused_5382_); +v_unused_5383_ = lean_ctor_get(v_machine_5279_, 1); +lean_dec(v_unused_5383_); +v___x_5358_ = v_machine_5279_; +v_isShared_5359_ = v_isSharedCheck_5381_; +goto v_resetjp_5357_; +} +else +{ +lean_inc(v_instant_5353_); +lean_inc(v_events_5352_); +lean_inc(v_config_5351_); +lean_inc(v_reader_5350_); +lean_dec(v_machine_5279_); +v___x_5358_ = lean_box(0); +v_isShared_5359_ = v_isSharedCheck_5381_; +goto v_resetjp_5357_; +} +v_resetjp_5357_: +{ +lean_object* v_input_5360_; lean_object* v_messageHead_5361_; lean_object* v_messageCount_5362_; lean_object* v_bodyBytesRead_5363_; lean_object* v_headerBytesRead_5364_; uint8_t v_noMoreInput_5365_; lean_object* v___x_5367_; uint8_t v_isShared_5368_; uint8_t v_isSharedCheck_5379_; +v_input_5360_ = lean_ctor_get(v_reader_5350_, 1); +v_messageHead_5361_ = lean_ctor_get(v_reader_5350_, 2); +v_messageCount_5362_ = lean_ctor_get(v_reader_5350_, 3); +v_bodyBytesRead_5363_ = lean_ctor_get(v_reader_5350_, 4); +v_headerBytesRead_5364_ = lean_ctor_get(v_reader_5350_, 5); +v_noMoreInput_5365_ = lean_ctor_get_uint8(v_reader_5350_, sizeof(void*)*6); +v_isSharedCheck_5379_ = !lean_is_exclusive(v_reader_5350_); +if (v_isSharedCheck_5379_ == 0) +{ +lean_object* v_unused_5380_; +v_unused_5380_ = lean_ctor_get(v_reader_5350_, 0); +lean_dec(v_unused_5380_); +v___x_5367_ = v_reader_5350_; +v_isShared_5368_ = v_isSharedCheck_5379_; +goto v_resetjp_5366_; +} +else +{ +lean_inc(v_headerBytesRead_5364_); +lean_inc(v_bodyBytesRead_5363_); +lean_inc(v_messageCount_5362_); +lean_inc(v_messageHead_5361_); +lean_inc(v_input_5360_); +lean_dec(v_reader_5350_); +v___x_5367_ = lean_box(0); +v_isShared_5368_ = v_isSharedCheck_5379_; +goto v_resetjp_5366_; +} +v_resetjp_5366_: +{ +lean_object* v___x_5369_; lean_object* v___x_5370_; lean_object* v___x_5371_; lean_object* v___x_5373_; +v___x_5369_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_5370_ = lean_array_push(v_events_5352_, v___x_5369_); +v___x_5371_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); +if (v_isShared_5368_ == 0) +{ +lean_ctor_set(v___x_5367_, 0, v___x_5371_); +v___x_5373_ = v___x_5367_; +goto v_reusejp_5372_; +} +else +{ +lean_object* v_reuseFailAlloc_5378_; +v_reuseFailAlloc_5378_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5378_, 0, v___x_5371_); +lean_ctor_set(v_reuseFailAlloc_5378_, 1, v_input_5360_); +lean_ctor_set(v_reuseFailAlloc_5378_, 2, v_messageHead_5361_); +lean_ctor_set(v_reuseFailAlloc_5378_, 3, v_messageCount_5362_); +lean_ctor_set(v_reuseFailAlloc_5378_, 4, v_bodyBytesRead_5363_); +lean_ctor_set(v_reuseFailAlloc_5378_, 5, v_headerBytesRead_5364_); +lean_ctor_set_uint8(v_reuseFailAlloc_5378_, sizeof(void*)*6, v_noMoreInput_5365_); +v___x_5373_ = v_reuseFailAlloc_5378_; +goto v_reusejp_5372_; +} +v_reusejp_5372_: +{ +lean_object* v___x_5374_; lean_object* v___x_5376_; +v___x_5374_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_5359_ == 0) +{ +lean_ctor_set(v___x_5358_, 4, v___x_5374_); +lean_ctor_set(v___x_5358_, 3, v___x_5370_); +lean_ctor_set(v___x_5358_, 0, v___x_5373_); +v___x_5376_ = v___x_5358_; +goto v_reusejp_5375_; +} +else +{ +lean_object* v_reuseFailAlloc_5377_; +v_reuseFailAlloc_5377_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5377_, 0, v___x_5373_); +lean_ctor_set(v_reuseFailAlloc_5377_, 1, v_writer_5282_); +lean_ctor_set(v_reuseFailAlloc_5377_, 2, v_config_5351_); +lean_ctor_set(v_reuseFailAlloc_5377_, 3, v___x_5370_); +lean_ctor_set(v_reuseFailAlloc_5377_, 4, v___x_5374_); +lean_ctor_set(v_reuseFailAlloc_5377_, 5, v_instant_5353_); +lean_ctor_set_uint8(v_reuseFailAlloc_5377_, sizeof(void*)*6, v_keepAlive_5354_); +lean_ctor_set_uint8(v_reuseFailAlloc_5377_, sizeof(void*)*6 + 1, v_forcedFlush_5355_); +lean_ctor_set_uint8(v_reuseFailAlloc_5377_, sizeof(void*)*6 + 2, v_pullBodyStalled_5356_); +v___x_5376_ = v_reuseFailAlloc_5377_; +goto v_reusejp_5375_; +} +v_reusejp_5375_: +{ +return v___x_5376_; +} +} +} +} +} +} +else +{ +lean_object* v_reader_5384_; lean_object* v_config_5385_; lean_object* v_events_5386_; lean_object* v_instant_5387_; uint8_t v_keepAlive_5388_; uint8_t v_forcedFlush_5389_; uint8_t v_pullBodyStalled_5390_; lean_object* v_val_5391_; lean_object* v_val_5392_; uint8_t v___x_5393_; +v_reader_5384_ = lean_ctor_get(v_machine_5279_, 0); +lean_inc_ref(v_reader_5384_); +v_config_5385_ = lean_ctor_get(v_machine_5279_, 2); +v_events_5386_ = lean_ctor_get(v_machine_5279_, 3); +v_instant_5387_ = lean_ctor_get(v_machine_5279_, 5); +v_keepAlive_5388_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6); +v_forcedFlush_5389_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5390_ = lean_ctor_get_uint8(v_machine_5279_, sizeof(void*)*6 + 2); +v_val_5391_ = lean_ctor_get(v_knownSize_5283_, 0); +v_val_5392_ = lean_ctor_get(v_headerSize_5280_, 0); +lean_inc(v_val_5392_); +lean_dec_ref(v_headerSize_5280_); +v___x_5393_ = l_Std_Http_Body_instBEqLength_beq(v_val_5391_, v_val_5392_); +lean_dec(v_val_5392_); +if (v___x_5393_ == 0) +{ +lean_object* v___x_5395_; uint8_t v_isShared_5396_; uint8_t v_isSharedCheck_5418_; +lean_inc(v_instant_5387_); +lean_inc_ref(v_events_5386_); +lean_inc_ref(v_config_5385_); +v_isSharedCheck_5418_ = !lean_is_exclusive(v_machine_5279_); +if (v_isSharedCheck_5418_ == 0) +{ +lean_object* v_unused_5419_; lean_object* v_unused_5420_; lean_object* v_unused_5421_; lean_object* v_unused_5422_; lean_object* v_unused_5423_; lean_object* v_unused_5424_; +v_unused_5419_ = lean_ctor_get(v_machine_5279_, 5); +lean_dec(v_unused_5419_); +v_unused_5420_ = lean_ctor_get(v_machine_5279_, 4); +lean_dec(v_unused_5420_); +v_unused_5421_ = lean_ctor_get(v_machine_5279_, 3); +lean_dec(v_unused_5421_); +v_unused_5422_ = lean_ctor_get(v_machine_5279_, 2); +lean_dec(v_unused_5422_); +v_unused_5423_ = lean_ctor_get(v_machine_5279_, 1); +lean_dec(v_unused_5423_); +v_unused_5424_ = lean_ctor_get(v_machine_5279_, 0); +lean_dec(v_unused_5424_); +v___x_5395_ = v_machine_5279_; +v_isShared_5396_ = v_isSharedCheck_5418_; +goto v_resetjp_5394_; +} +else +{ +lean_dec(v_machine_5279_); +v___x_5395_ = lean_box(0); +v_isShared_5396_ = v_isSharedCheck_5418_; +goto v_resetjp_5394_; +} +v_resetjp_5394_: +{ +lean_object* v_input_5397_; lean_object* v_messageHead_5398_; lean_object* v_messageCount_5399_; lean_object* v_bodyBytesRead_5400_; lean_object* v_headerBytesRead_5401_; uint8_t v_noMoreInput_5402_; lean_object* v___x_5404_; uint8_t v_isShared_5405_; uint8_t v_isSharedCheck_5416_; +v_input_5397_ = lean_ctor_get(v_reader_5384_, 1); +v_messageHead_5398_ = lean_ctor_get(v_reader_5384_, 2); +v_messageCount_5399_ = lean_ctor_get(v_reader_5384_, 3); +v_bodyBytesRead_5400_ = lean_ctor_get(v_reader_5384_, 4); +v_headerBytesRead_5401_ = lean_ctor_get(v_reader_5384_, 5); +v_noMoreInput_5402_ = lean_ctor_get_uint8(v_reader_5384_, sizeof(void*)*6); +v_isSharedCheck_5416_ = !lean_is_exclusive(v_reader_5384_); +if (v_isSharedCheck_5416_ == 0) +{ +lean_object* v_unused_5417_; +v_unused_5417_ = lean_ctor_get(v_reader_5384_, 0); +lean_dec(v_unused_5417_); +v___x_5404_ = v_reader_5384_; +v_isShared_5405_ = v_isSharedCheck_5416_; +goto v_resetjp_5403_; +} +else +{ +lean_inc(v_headerBytesRead_5401_); +lean_inc(v_bodyBytesRead_5400_); +lean_inc(v_messageCount_5399_); +lean_inc(v_messageHead_5398_); +lean_inc(v_input_5397_); +lean_dec(v_reader_5384_); +v___x_5404_ = lean_box(0); +v_isShared_5405_ = v_isSharedCheck_5416_; +goto v_resetjp_5403_; +} +v_resetjp_5403_: +{ +lean_object* v___x_5406_; lean_object* v___x_5407_; lean_object* v___x_5408_; lean_object* v___x_5410_; +v___x_5406_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_5407_ = lean_array_push(v_events_5386_, v___x_5406_); +v___x_5408_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); +if (v_isShared_5405_ == 0) +{ +lean_ctor_set(v___x_5404_, 0, v___x_5408_); +v___x_5410_ = v___x_5404_; +goto v_reusejp_5409_; +} +else +{ +lean_object* v_reuseFailAlloc_5415_; +v_reuseFailAlloc_5415_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5415_, 0, v___x_5408_); +lean_ctor_set(v_reuseFailAlloc_5415_, 1, v_input_5397_); +lean_ctor_set(v_reuseFailAlloc_5415_, 2, v_messageHead_5398_); +lean_ctor_set(v_reuseFailAlloc_5415_, 3, v_messageCount_5399_); +lean_ctor_set(v_reuseFailAlloc_5415_, 4, v_bodyBytesRead_5400_); +lean_ctor_set(v_reuseFailAlloc_5415_, 5, v_headerBytesRead_5401_); +lean_ctor_set_uint8(v_reuseFailAlloc_5415_, sizeof(void*)*6, v_noMoreInput_5402_); +v___x_5410_ = v_reuseFailAlloc_5415_; +goto v_reusejp_5409_; +} +v_reusejp_5409_: +{ +lean_object* v___x_5411_; lean_object* v___x_5413_; +v___x_5411_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_5396_ == 0) +{ +lean_ctor_set(v___x_5395_, 4, v___x_5411_); +lean_ctor_set(v___x_5395_, 3, v___x_5407_); +lean_ctor_set(v___x_5395_, 0, v___x_5410_); +v___x_5413_ = v___x_5395_; +goto v_reusejp_5412_; } else { lean_object* v_reuseFailAlloc_5414_; v_reuseFailAlloc_5414_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5414_, 0, v_userData_5375_); -lean_ctor_set(v_reuseFailAlloc_5414_, 1, v_outputData_5376_); -lean_ctor_set(v_reuseFailAlloc_5414_, 2, v_state_5377_); -lean_ctor_set(v_reuseFailAlloc_5414_, 3, v_knownSize_5378_); -lean_ctor_set(v_reuseFailAlloc_5414_, 4, v___x_5389_); -lean_ctor_set(v_reuseFailAlloc_5414_, 5, v_userDataBytes_5383_); -lean_ctor_set_uint8(v_reuseFailAlloc_5414_, sizeof(void*)*6 + 1, v_userClosedBody_5381_); -lean_ctor_set_uint8(v_reuseFailAlloc_5414_, sizeof(void*)*6 + 2, v_omitBody_5382_); -v___x_5408_ = v_reuseFailAlloc_5414_; -goto v_reusejp_5407_; +lean_ctor_set(v_reuseFailAlloc_5414_, 0, v___x_5410_); +lean_ctor_set(v_reuseFailAlloc_5414_, 1, v_writer_5282_); +lean_ctor_set(v_reuseFailAlloc_5414_, 2, v_config_5385_); +lean_ctor_set(v_reuseFailAlloc_5414_, 3, v___x_5407_); +lean_ctor_set(v_reuseFailAlloc_5414_, 4, v___x_5411_); +lean_ctor_set(v_reuseFailAlloc_5414_, 5, v_instant_5387_); +lean_ctor_set_uint8(v_reuseFailAlloc_5414_, sizeof(void*)*6, v_keepAlive_5388_); +lean_ctor_set_uint8(v_reuseFailAlloc_5414_, sizeof(void*)*6 + 1, v_forcedFlush_5389_); +lean_ctor_set_uint8(v_reuseFailAlloc_5414_, sizeof(void*)*6 + 2, v_pullBodyStalled_5390_); +v___x_5413_ = v_reuseFailAlloc_5414_; +goto v_reusejp_5412_; } -v_reusejp_5407_: +v_reusejp_5412_: { -lean_object* v_machine_5409_; lean_object* v___x_5410_; uint8_t v___x_5411_; -lean_ctor_set_uint8(v___x_5408_, sizeof(void*)*6, v___y_5402_); -v_machine_5409_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_machine_5409_, 0, v_reader_5270_); -lean_ctor_set(v_machine_5409_, 1, v___x_5408_); -lean_ctor_set(v_machine_5409_, 2, v_config_5273_); -lean_ctor_set(v_machine_5409_, 3, v_events_5274_); -lean_ctor_set(v_machine_5409_, 4, v_error_5275_); -lean_ctor_set(v_machine_5409_, 5, v_instant_5276_); -lean_ctor_set_uint8(v_machine_5409_, sizeof(void*)*6, v_keepAlive_5277_); -lean_ctor_set_uint8(v_machine_5409_, sizeof(void*)*6 + 1, v_forcedFlush_5278_); -lean_ctor_set_uint8(v_machine_5409_, sizeof(void*)*6 + 2, v_pullBodyStalled_5279_); -v___x_5410_ = l_Std_Http_Header_Name_contentLength; -v___x_5411_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_5406_, v___x_5410_); -if (v___x_5411_ == 0) -{ -lean_object* v___x_5412_; uint8_t v___x_5413_; -v___x_5412_ = l_Std_Http_Header_Name_transferEncoding; -v___x_5413_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_5406_, v___x_5412_); -lean_dec_ref(v_indexes_5406_); -v___y_5391_ = v_machine_5409_; -v___y_5392_ = v___y_5402_; -v___y_5393_ = v___y_5403_; -v___y_5394_ = v___x_5404_; -v___y_5395_ = v___x_5413_; -goto v___jp_5390_; -} -else -{ -lean_dec_ref(v_indexes_5406_); -v___y_5391_ = v_machine_5409_; -v___y_5392_ = v___y_5402_; -v___y_5393_ = v___y_5403_; -v___y_5394_ = v___x_5404_; -v___y_5395_ = v___x_5411_; -goto v___jp_5390_; -} -} -} -v___jp_5415_: -{ -if (v___y_5416_ == 0) -{ -lean_inc(v_headerBytesRead_5287_); -lean_inc(v_bodyBytesRead_5286_); -lean_inc(v_messageCount_5285_); -lean_inc(v_messageHead_5284_); -lean_inc_ref(v_input_5283_); -lean_dec_ref(v___x_5389_); -lean_del_object(v___x_5385_); -lean_dec(v_knownSize_5378_); -lean_dec_ref(v_reader_5270_); -lean_dec(v_status_5269_); -v_input_5293_ = v_input_5283_; -v_messageHead_5294_ = v_messageHead_5284_; -v_messageCount_5295_ = v_messageCount_5285_; -v_bodyBytesRead_5296_ = v_bodyBytesRead_5286_; -v_headerBytesRead_5297_ = v_headerBytesRead_5287_; -v_userData_5298_ = v_userData_5375_; -v_outputData_5299_ = v_outputData_5376_; -v_state_5300_ = v_state_5377_; -v_messageHead_5301_ = v_messageHead_5379_; -v_sentMessage_5302_ = v_sentMessage_5380_; -v_omitBody_5303_ = v_omitBody_5382_; -v_userDataBytes_5304_ = v_userDataBytes_5383_; -v_config_5305_ = v_config_5273_; -v_events_5306_ = v_events_5274_; -v_error_5307_ = v_error_5275_; -v_instant_5308_ = v_instant_5276_; -v_forcedFlush_5309_ = v_forcedFlush_5278_; -v_pullBodyStalled_5310_ = v_pullBodyStalled_5279_; -goto v___jp_5292_; -} -else -{ -uint16_t v___x_5417_; uint16_t v___x_5418_; uint8_t v___x_5419_; -v___x_5417_ = 100; -v___x_5418_ = l_Std_Http_Status_toCode(v_status_5269_); -lean_dec(v_status_5269_); -v___x_5419_ = lean_uint16_dec_le(v___x_5417_, v___x_5418_); -if (v___x_5419_ == 0) -{ -lean_dec(v_messageHead_5379_); -v___y_5402_ = v___y_5416_; -v___y_5403_ = v___x_5291_; -goto v___jp_5401_; -} -else -{ -uint16_t v___x_5420_; uint8_t v___x_5421_; -v___x_5420_ = 200; -v___x_5421_ = lean_uint16_dec_lt(v___x_5418_, v___x_5420_); -if (v___x_5421_ == 0) -{ -lean_dec(v_messageHead_5379_); -v___y_5402_ = v___y_5416_; -v___y_5403_ = v___x_5291_; -goto v___jp_5401_; -} -else -{ -uint8_t v___x_5422_; lean_object* v___x_2748__overap_5423_; lean_object* v___x_5424_; -lean_inc(v_headerBytesRead_5287_); -lean_inc(v_bodyBytesRead_5286_); -lean_inc(v_messageCount_5285_); -lean_inc(v_messageHead_5284_); -lean_inc_ref(v_input_5283_); -lean_del_object(v___x_5385_); -lean_dec(v_knownSize_5378_); -lean_dec_ref(v_reader_5270_); -v___x_5422_ = 1; -v___x_2748__overap_5423_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___x_5422_); -v___x_5424_ = lean_apply_2(v___x_2748__overap_5423_, v_outputData_5376_, v___x_5389_); -v_input_5293_ = v_input_5283_; -v_messageHead_5294_ = v_messageHead_5284_; -v_messageCount_5295_ = v_messageCount_5285_; -v_bodyBytesRead_5296_ = v_bodyBytesRead_5286_; -v_headerBytesRead_5297_ = v_headerBytesRead_5287_; -v_userData_5298_ = v_userData_5375_; -v_outputData_5299_ = v___x_5424_; -v_state_5300_ = v_state_5377_; -v_messageHead_5301_ = v_messageHead_5379_; -v_sentMessage_5302_ = v_sentMessage_5380_; -v_omitBody_5303_ = v_omitBody_5382_; -v_userDataBytes_5304_ = v_userDataBytes_5383_; -v_config_5305_ = v_config_5273_; -v_events_5306_ = v_events_5274_; -v_error_5307_ = v_error_5275_; -v_instant_5308_ = v_instant_5276_; -v_forcedFlush_5309_ = v_forcedFlush_5278_; -v_pullBodyStalled_5310_ = v_pullBodyStalled_5279_; -goto v___jp_5292_; -} +return v___x_5413_; } } } @@ -19295,2818 +19273,2733 @@ goto v___jp_5292_; } else { -lean_object* v___x_5429_; uint8_t v_isShared_5430_; uint8_t v_isSharedCheck_5496_; -lean_inc(v_a_5289_); -lean_inc(v_headerBytesRead_5287_); -lean_inc(v_bodyBytesRead_5286_); -lean_inc(v_messageCount_5285_); -lean_inc(v_messageHead_5284_); -lean_inc_ref(v_input_5283_); -lean_del_object(v___x_5281_); -lean_dec(v_status_5269_); -v_isSharedCheck_5496_ = !lean_is_exclusive(v_reader_5270_); -if (v_isSharedCheck_5496_ == 0) -{ -lean_object* v_unused_5497_; lean_object* v_unused_5498_; lean_object* v_unused_5499_; lean_object* v_unused_5500_; lean_object* v_unused_5501_; lean_object* v_unused_5502_; -v_unused_5497_ = lean_ctor_get(v_reader_5270_, 5); -lean_dec(v_unused_5497_); -v_unused_5498_ = lean_ctor_get(v_reader_5270_, 4); -lean_dec(v_unused_5498_); -v_unused_5499_ = lean_ctor_get(v_reader_5270_, 3); -lean_dec(v_unused_5499_); -v_unused_5500_ = lean_ctor_get(v_reader_5270_, 2); -lean_dec(v_unused_5500_); -v_unused_5501_ = lean_ctor_get(v_reader_5270_, 1); -lean_dec(v_unused_5501_); -v_unused_5502_ = lean_ctor_get(v_reader_5270_, 0); -lean_dec(v_unused_5502_); -v___x_5429_ = v_reader_5270_; -v_isShared_5430_ = v_isSharedCheck_5496_; -goto v_resetjp_5428_; -} -else -{ -lean_dec(v_reader_5270_); -v___x_5429_ = lean_box(0); -v_isShared_5430_ = v_isSharedCheck_5496_; -goto v_resetjp_5428_; -} -v_resetjp_5428_: -{ -lean_object* v_outputData_5431_; lean_object* v_userData_5432_; lean_object* v_state_5433_; lean_object* v_knownSize_5434_; lean_object* v_messageHead_5435_; uint8_t v_sentMessage_5436_; uint8_t v_userClosedBody_5437_; uint8_t v_omitBody_5438_; lean_object* v_userDataBytes_5439_; lean_object* v___x_5441_; uint8_t v_isShared_5442_; uint8_t v_isSharedCheck_5495_; -v_outputData_5431_ = lean_ctor_get(v_writer_5272_, 1); -v_userData_5432_ = lean_ctor_get(v_writer_5272_, 0); -v_state_5433_ = lean_ctor_get(v_writer_5272_, 2); -v_knownSize_5434_ = lean_ctor_get(v_writer_5272_, 3); -v_messageHead_5435_ = lean_ctor_get(v_writer_5272_, 4); -v_sentMessage_5436_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6); -v_userClosedBody_5437_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6 + 1); -v_omitBody_5438_ = lean_ctor_get_uint8(v_writer_5272_, sizeof(void*)*6 + 2); -v_userDataBytes_5439_ = lean_ctor_get(v_writer_5272_, 5); -v_isSharedCheck_5495_ = !lean_is_exclusive(v_writer_5272_); -if (v_isSharedCheck_5495_ == 0) -{ -v___x_5441_ = v_writer_5272_; -v_isShared_5442_ = v_isSharedCheck_5495_; -goto v_resetjp_5440_; -} -else -{ -lean_inc(v_userDataBytes_5439_); -lean_inc(v_messageHead_5435_); -lean_inc(v_knownSize_5434_); -lean_inc(v_state_5433_); -lean_inc(v_outputData_5431_); -lean_inc(v_userData_5432_); -lean_dec(v_writer_5272_); -v___x_5441_ = lean_box(0); -v_isShared_5442_ = v_isSharedCheck_5495_; -goto v_resetjp_5440_; -} -v_resetjp_5440_: -{ -lean_object* v_data_5443_; lean_object* v_size_5444_; lean_object* v___x_5446_; uint8_t v_isShared_5447_; uint8_t v_isSharedCheck_5494_; -v_data_5443_ = lean_ctor_get(v_outputData_5431_, 0); -v_size_5444_ = lean_ctor_get(v_outputData_5431_, 1); -v_isSharedCheck_5494_ = !lean_is_exclusive(v_outputData_5431_); -if (v_isSharedCheck_5494_ == 0) -{ -v___x_5446_ = v_outputData_5431_; -v_isShared_5447_ = v_isSharedCheck_5494_; -goto v_resetjp_5445_; -} -else -{ -lean_inc(v_size_5444_); -lean_inc(v_data_5443_); -lean_dec(v_outputData_5431_); -v___x_5446_ = lean_box(0); -v_isShared_5447_ = v_isSharedCheck_5494_; -goto v_resetjp_5445_; -} -v_resetjp_5445_: -{ -lean_object* v___f_5448_; lean_object* v___x_5449_; lean_object* v___x_5450_; lean_object* v___x_5451_; lean_object* v___x_5452_; lean_object* v___x_5453_; lean_object* v___x_5454_; lean_object* v___x_5455_; lean_object* v___x_5456_; lean_object* v___x_5457_; lean_object* v___x_5458_; lean_object* v___x_5459_; lean_object* v___x_5460_; lean_object* v___x_5461_; lean_object* v___x_5462_; lean_object* v___x_5463_; lean_object* v___x_5464_; lean_object* v___x_5465_; lean_object* v___x_5466_; lean_object* v___x_5467_; lean_object* v___x_5468_; lean_object* v___x_5469_; lean_object* v___x_5470_; lean_object* v___x_5471_; lean_object* v_buffer_5473_; -v___f_5448_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__0)); -v___x_5449_ = l_Std_Http_Headers_empty; -v___x_5450_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__0, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__0_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0); -v___x_5451_ = lean_array_push(v_data_5443_, v___x_5450_); -v___x_5452_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__1, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__1_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__1); -v___x_5453_ = lean_nat_add(v_size_5444_, v___x_5452_); -lean_dec(v_size_5444_); -v___x_5454_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); -v___x_5455_ = lean_array_push(v___x_5451_, v___x_5454_); -v___x_5456_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); -v___x_5457_ = lean_nat_add(v___x_5453_, v___x_5456_); -lean_dec(v___x_5453_); -v___x_5458_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__5, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__5_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5); -v___x_5459_ = lean_array_push(v___x_5455_, v___x_5458_); -v___x_5460_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__6, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__6_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__6); -v___x_5461_ = lean_nat_add(v___x_5457_, v___x_5460_); -lean_dec(v___x_5457_); -v___x_5462_ = lean_array_push(v___x_5459_, v___x_5454_); -v___x_5463_ = lean_nat_add(v___x_5461_, v___x_5456_); -lean_dec(v___x_5461_); -v___x_5464_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__8, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__8_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8); -v___x_5465_ = lean_array_push(v___x_5462_, v___x_5464_); -v___x_5466_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__9, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__9_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__9); -v___x_5467_ = lean_nat_add(v___x_5463_, v___x_5466_); -lean_dec(v___x_5463_); -v___x_5468_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); -v___x_5469_ = lean_array_push(v___x_5465_, v___x_5468_); -v___x_5470_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); -v___x_5471_ = lean_nat_add(v___x_5467_, v___x_5470_); -lean_dec(v___x_5467_); -if (v_isShared_5447_ == 0) -{ -lean_ctor_set(v___x_5446_, 1, v___x_5471_); -lean_ctor_set(v___x_5446_, 0, v___x_5469_); -v_buffer_5473_ = v___x_5446_; -goto v_reusejp_5472_; -} -else -{ -lean_object* v_reuseFailAlloc_5493_; -v_reuseFailAlloc_5493_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5493_, 0, v___x_5469_); -lean_ctor_set(v_reuseFailAlloc_5493_, 1, v___x_5471_); -v_buffer_5473_ = v_reuseFailAlloc_5493_; -goto v_reusejp_5472_; -} -v_reusejp_5472_: -{ -lean_object* v_buffer_5474_; lean_object* v_data_5475_; lean_object* v_size_5476_; lean_object* v___x_5478_; uint8_t v_isShared_5479_; uint8_t v_isSharedCheck_5492_; -v_buffer_5474_ = l_Std_Http_Headers_fold___redArg(v___x_5449_, v_buffer_5473_, v___f_5448_); -v_data_5475_ = lean_ctor_get(v_buffer_5474_, 0); -v_size_5476_ = lean_ctor_get(v_buffer_5474_, 1); -v_isSharedCheck_5492_ = !lean_is_exclusive(v_buffer_5474_); -if (v_isSharedCheck_5492_ == 0) -{ -v___x_5478_ = v_buffer_5474_; -v_isShared_5479_ = v_isSharedCheck_5492_; -goto v_resetjp_5477_; -} -else -{ -lean_inc(v_size_5476_); -lean_inc(v_data_5475_); -lean_dec(v_buffer_5474_); -v___x_5478_ = lean_box(0); -v_isShared_5479_ = v_isSharedCheck_5492_; -goto v_resetjp_5477_; -} -v_resetjp_5477_: -{ -lean_object* v___x_5480_; lean_object* v___x_5481_; lean_object* v___x_5483_; -v___x_5480_ = lean_array_push(v_data_5475_, v___x_5468_); -v___x_5481_ = lean_nat_add(v_size_5476_, v___x_5470_); -lean_dec(v_size_5476_); -if (v_isShared_5479_ == 0) -{ -lean_ctor_set(v___x_5478_, 1, v___x_5481_); -lean_ctor_set(v___x_5478_, 0, v___x_5480_); -v___x_5483_ = v___x_5478_; -goto v_reusejp_5482_; -} -else -{ -lean_object* v_reuseFailAlloc_5491_; -v_reuseFailAlloc_5491_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5491_, 0, v___x_5480_); -lean_ctor_set(v_reuseFailAlloc_5491_, 1, v___x_5481_); -v___x_5483_ = v_reuseFailAlloc_5491_; -goto v_reusejp_5482_; -} -v_reusejp_5482_: -{ -lean_object* v___x_5485_; -if (v_isShared_5442_ == 0) -{ -lean_ctor_set(v___x_5441_, 1, v___x_5483_); -v___x_5485_ = v___x_5441_; -goto v_reusejp_5484_; -} -else -{ -lean_object* v_reuseFailAlloc_5490_; -v_reuseFailAlloc_5490_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5490_, 0, v_userData_5432_); -lean_ctor_set(v_reuseFailAlloc_5490_, 1, v___x_5483_); -lean_ctor_set(v_reuseFailAlloc_5490_, 2, v_state_5433_); -lean_ctor_set(v_reuseFailAlloc_5490_, 3, v_knownSize_5434_); -lean_ctor_set(v_reuseFailAlloc_5490_, 4, v_messageHead_5435_); -lean_ctor_set(v_reuseFailAlloc_5490_, 5, v_userDataBytes_5439_); -lean_ctor_set_uint8(v_reuseFailAlloc_5490_, sizeof(void*)*6, v_sentMessage_5436_); -lean_ctor_set_uint8(v_reuseFailAlloc_5490_, sizeof(void*)*6 + 1, v_userClosedBody_5437_); -lean_ctor_set_uint8(v_reuseFailAlloc_5490_, sizeof(void*)*6 + 2, v_omitBody_5438_); -v___x_5485_ = v_reuseFailAlloc_5490_; -goto v_reusejp_5484_; -} -v_reusejp_5484_: -{ -lean_object* v___x_5487_; -if (v_isShared_5430_ == 0) -{ -lean_ctor_set(v___x_5429_, 0, v_a_5289_); -v___x_5487_ = v___x_5429_; -goto v_reusejp_5486_; -} -else -{ -lean_object* v_reuseFailAlloc_5489_; -v_reuseFailAlloc_5489_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_5489_, 0, v_a_5289_); -lean_ctor_set(v_reuseFailAlloc_5489_, 1, v_input_5283_); -lean_ctor_set(v_reuseFailAlloc_5489_, 2, v_messageHead_5284_); -lean_ctor_set(v_reuseFailAlloc_5489_, 3, v_messageCount_5285_); -lean_ctor_set(v_reuseFailAlloc_5489_, 4, v_bodyBytesRead_5286_); -lean_ctor_set(v_reuseFailAlloc_5489_, 5, v_headerBytesRead_5287_); -lean_ctor_set_uint8(v_reuseFailAlloc_5489_, sizeof(void*)*6, v_noMoreInput_5288_); -v___x_5487_ = v_reuseFailAlloc_5489_; -goto v_reusejp_5486_; -} -v_reusejp_5486_: -{ -lean_object* v___x_5488_; -v___x_5488_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5488_, 0, v___x_5487_); -lean_ctor_set(v___x_5488_, 1, v___x_5485_); -lean_ctor_set(v___x_5488_, 2, v_config_5273_); -lean_ctor_set(v___x_5488_, 3, v_events_5274_); -lean_ctor_set(v___x_5488_, 4, v_error_5275_); -lean_ctor_set(v___x_5488_, 5, v_instant_5276_); -lean_ctor_set_uint8(v___x_5488_, sizeof(void*)*6, v_keepAlive_5277_); -lean_ctor_set_uint8(v___x_5488_, sizeof(void*)*6 + 1, v_forcedFlush_5278_); -lean_ctor_set_uint8(v___x_5488_, sizeof(void*)*6 + 2, v_pullBodyStalled_5279_); -return v___x_5488_; +lean_dec_ref(v_reader_5384_); +lean_dec_ref(v_writer_5282_); +return v_machine_5279_; } } } } } -} -} -} -} -v___jp_5292_: -{ -lean_object* v___x_5311_; uint8_t v___x_5312_; lean_object* v___x_5313_; lean_object* v___x_5314_; lean_object* v___x_5315_; lean_object* v___x_5317_; -v___x_5311_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); -v___x_5312_ = 1; -v___x_5313_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5313_, 0, v_userData_5298_); -lean_ctor_set(v___x_5313_, 1, v_outputData_5299_); -lean_ctor_set(v___x_5313_, 2, v_state_5300_); -lean_ctor_set(v___x_5313_, 3, v___x_5311_); -lean_ctor_set(v___x_5313_, 4, v_messageHead_5301_); -lean_ctor_set(v___x_5313_, 5, v_userDataBytes_5304_); -lean_ctor_set_uint8(v___x_5313_, sizeof(void*)*6, v_sentMessage_5302_); -lean_ctor_set_uint8(v___x_5313_, sizeof(void*)*6 + 1, v___x_5312_); -lean_ctor_set_uint8(v___x_5313_, sizeof(void*)*6 + 2, v_omitBody_5303_); -v___x_5314_ = lean_box(6); -v___x_5315_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v___x_5315_, 0, v___x_5314_); -lean_ctor_set(v___x_5315_, 1, v_input_5293_); -lean_ctor_set(v___x_5315_, 2, v_messageHead_5294_); -lean_ctor_set(v___x_5315_, 3, v_messageCount_5295_); -lean_ctor_set(v___x_5315_, 4, v_bodyBytesRead_5296_); -lean_ctor_set(v___x_5315_, 5, v_headerBytesRead_5297_); -lean_ctor_set_uint8(v___x_5315_, sizeof(void*)*6, v___x_5312_); -if (v_isShared_5282_ == 0) -{ -lean_ctor_set(v___x_5281_, 5, v_instant_5308_); -lean_ctor_set(v___x_5281_, 4, v_error_5307_); -lean_ctor_set(v___x_5281_, 3, v_events_5306_); -lean_ctor_set(v___x_5281_, 2, v_config_5305_); -lean_ctor_set(v___x_5281_, 1, v___x_5313_); -lean_ctor_set(v___x_5281_, 0, v___x_5315_); -v___x_5317_ = v___x_5281_; -goto v_reusejp_5316_; -} -else -{ -lean_object* v_reuseFailAlloc_5318_; -v_reuseFailAlloc_5318_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5318_, 0, v___x_5315_); -lean_ctor_set(v_reuseFailAlloc_5318_, 1, v___x_5313_); -lean_ctor_set(v_reuseFailAlloc_5318_, 2, v_config_5305_); -lean_ctor_set(v_reuseFailAlloc_5318_, 3, v_events_5306_); -lean_ctor_set(v_reuseFailAlloc_5318_, 4, v_error_5307_); -lean_ctor_set(v_reuseFailAlloc_5318_, 5, v_instant_5308_); -v___x_5317_ = v_reuseFailAlloc_5318_; -goto v_reusejp_5316_; -} -v_reusejp_5316_: -{ -lean_ctor_set_uint8(v___x_5317_, sizeof(void*)*6, v___x_5291_); -lean_ctor_set_uint8(v___x_5317_, sizeof(void*)*6 + 1, v_forcedFlush_5309_); -lean_ctor_set_uint8(v___x_5317_, sizeof(void*)*6 + 2, v_pullBodyStalled_5310_); -return v___x_5317_; -} -} -v___jp_5319_: -{ -lean_object* v_input_5334_; lean_object* v_messageHead_5335_; lean_object* v_messageCount_5336_; lean_object* v_bodyBytesRead_5337_; lean_object* v_headerBytesRead_5338_; -v_input_5334_ = lean_ctor_get(v_reader_5320_, 1); -lean_inc_ref(v_input_5334_); -v_messageHead_5335_ = lean_ctor_get(v_reader_5320_, 2); -lean_inc(v_messageHead_5335_); -v_messageCount_5336_ = lean_ctor_get(v_reader_5320_, 3); -lean_inc(v_messageCount_5336_); -v_bodyBytesRead_5337_ = lean_ctor_get(v_reader_5320_, 4); -lean_inc(v_bodyBytesRead_5337_); -v_headerBytesRead_5338_ = lean_ctor_get(v_reader_5320_, 5); -lean_inc(v_headerBytesRead_5338_); -lean_dec_ref(v_reader_5320_); -v_input_5293_ = v_input_5334_; -v_messageHead_5294_ = v_messageHead_5335_; -v_messageCount_5295_ = v_messageCount_5336_; -v_bodyBytesRead_5296_ = v_bodyBytesRead_5337_; -v_headerBytesRead_5297_ = v_headerBytesRead_5338_; -v_userData_5298_ = v_userData_5321_; -v_outputData_5299_ = v_outputData_5322_; -v_state_5300_ = v_state_5323_; -v_messageHead_5301_ = v_messageHead_5324_; -v_sentMessage_5302_ = v_sentMessage_5325_; -v_omitBody_5303_ = v_omitBody_5326_; -v_userDataBytes_5304_ = v_userDataBytes_5327_; -v_config_5305_ = v_config_5328_; -v_events_5306_ = v_events_5329_; -v_error_5307_ = v_error_5330_; -v_instant_5308_ = v_instant_5331_; -v_forcedFlush_5309_ = v_forcedFlush_5332_; -v_pullBodyStalled_5310_ = v_pullBodyStalled_5333_; -goto v___jp_5292_; -} -v___jp_5339_: -{ -lean_object* v_writer_5341_; lean_object* v_reader_5342_; lean_object* v_config_5343_; lean_object* v_events_5344_; lean_object* v_error_5345_; lean_object* v_instant_5346_; uint8_t v_forcedFlush_5347_; uint8_t v_pullBodyStalled_5348_; lean_object* v_userData_5349_; lean_object* v_outputData_5350_; lean_object* v_messageHead_5351_; uint8_t v_sentMessage_5352_; uint8_t v_omitBody_5353_; lean_object* v_userDataBytes_5354_; lean_object* v___x_5355_; -v_writer_5341_ = lean_ctor_get(v___y_5340_, 1); -lean_inc_ref(v_writer_5341_); -v_reader_5342_ = lean_ctor_get(v___y_5340_, 0); -lean_inc_ref(v_reader_5342_); -v_config_5343_ = lean_ctor_get(v___y_5340_, 2); -lean_inc_ref(v_config_5343_); -v_events_5344_ = lean_ctor_get(v___y_5340_, 3); -lean_inc_ref(v_events_5344_); -v_error_5345_ = lean_ctor_get(v___y_5340_, 4); -lean_inc(v_error_5345_); -v_instant_5346_ = lean_ctor_get(v___y_5340_, 5); -lean_inc(v_instant_5346_); -v_forcedFlush_5347_ = lean_ctor_get_uint8(v___y_5340_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5348_ = lean_ctor_get_uint8(v___y_5340_, sizeof(void*)*6 + 2); -lean_dec_ref(v___y_5340_); -v_userData_5349_ = lean_ctor_get(v_writer_5341_, 0); -lean_inc_ref(v_userData_5349_); -v_outputData_5350_ = lean_ctor_get(v_writer_5341_, 1); -lean_inc_ref(v_outputData_5350_); -v_messageHead_5351_ = lean_ctor_get(v_writer_5341_, 4); -lean_inc(v_messageHead_5351_); -v_sentMessage_5352_ = lean_ctor_get_uint8(v_writer_5341_, sizeof(void*)*6); -v_omitBody_5353_ = lean_ctor_get_uint8(v_writer_5341_, sizeof(void*)*6 + 2); -v_userDataBytes_5354_ = lean_ctor_get(v_writer_5341_, 5); -lean_inc(v_userDataBytes_5354_); -lean_dec_ref(v_writer_5341_); -v___x_5355_ = lean_box(2); -v_reader_5320_ = v_reader_5342_; -v_userData_5321_ = v_userData_5349_; -v_outputData_5322_ = v_outputData_5350_; -v_state_5323_ = v___x_5355_; -v_messageHead_5324_ = v_messageHead_5351_; -v_sentMessage_5325_ = v_sentMessage_5352_; -v_omitBody_5326_ = v_omitBody_5353_; -v_userDataBytes_5327_ = v_userDataBytes_5354_; -v_config_5328_ = v_config_5343_; -v_events_5329_ = v_events_5344_; -v_error_5330_ = v_error_5345_; -v_instant_5331_ = v_instant_5346_; -v_forcedFlush_5332_ = v_forcedFlush_5347_; -v_pullBodyStalled_5333_ = v_pullBodyStalled_5348_; -goto v___jp_5319_; -} -v___jp_5356_: -{ -if (v___y_5359_ == 0) -{ -v___y_5340_ = v___y_5358_; -goto v___jp_5339_; -} -else -{ -if (v___y_5357_ == 0) -{ -lean_object* v_writer_5360_; lean_object* v_reader_5361_; lean_object* v_config_5362_; lean_object* v_events_5363_; lean_object* v_error_5364_; lean_object* v_instant_5365_; uint8_t v_forcedFlush_5366_; uint8_t v_pullBodyStalled_5367_; lean_object* v_userData_5368_; lean_object* v_outputData_5369_; lean_object* v_state_5370_; lean_object* v_messageHead_5371_; uint8_t v_sentMessage_5372_; uint8_t v_omitBody_5373_; lean_object* v_userDataBytes_5374_; -v_writer_5360_ = lean_ctor_get(v___y_5358_, 1); -lean_inc_ref(v_writer_5360_); -v_reader_5361_ = lean_ctor_get(v___y_5358_, 0); -lean_inc_ref(v_reader_5361_); -v_config_5362_ = lean_ctor_get(v___y_5358_, 2); -lean_inc_ref(v_config_5362_); -v_events_5363_ = lean_ctor_get(v___y_5358_, 3); -lean_inc_ref(v_events_5363_); -v_error_5364_ = lean_ctor_get(v___y_5358_, 4); -lean_inc(v_error_5364_); -v_instant_5365_ = lean_ctor_get(v___y_5358_, 5); -lean_inc(v_instant_5365_); -v_forcedFlush_5366_ = lean_ctor_get_uint8(v___y_5358_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5367_ = lean_ctor_get_uint8(v___y_5358_, sizeof(void*)*6 + 2); -lean_dec_ref(v___y_5358_); -v_userData_5368_ = lean_ctor_get(v_writer_5360_, 0); -lean_inc_ref(v_userData_5368_); -v_outputData_5369_ = lean_ctor_get(v_writer_5360_, 1); -lean_inc_ref(v_outputData_5369_); -v_state_5370_ = lean_ctor_get(v_writer_5360_, 2); -lean_inc(v_state_5370_); -v_messageHead_5371_ = lean_ctor_get(v_writer_5360_, 4); -lean_inc(v_messageHead_5371_); -v_sentMessage_5372_ = lean_ctor_get_uint8(v_writer_5360_, sizeof(void*)*6); -v_omitBody_5373_ = lean_ctor_get_uint8(v_writer_5360_, sizeof(void*)*6 + 2); -v_userDataBytes_5374_ = lean_ctor_get(v_writer_5360_, 5); -lean_inc(v_userDataBytes_5374_); -lean_dec_ref(v_writer_5360_); -v_reader_5320_ = v_reader_5361_; -v_userData_5321_ = v_userData_5368_; -v_outputData_5322_ = v_outputData_5369_; -v_state_5323_ = v_state_5370_; -v_messageHead_5324_ = v_messageHead_5371_; -v_sentMessage_5325_ = v_sentMessage_5372_; -v_omitBody_5326_ = v_omitBody_5373_; -v_userDataBytes_5327_ = v_userDataBytes_5374_; -v_config_5328_ = v_config_5362_; -v_events_5329_ = v_events_5363_; -v_error_5330_ = v_error_5364_; -v_instant_5331_ = v_instant_5365_; -v_forcedFlush_5332_ = v_forcedFlush_5366_; -v_pullBodyStalled_5333_ = v_pullBodyStalled_5367_; -goto v___jp_5319_; -} -else -{ -v___y_5340_ = v___y_5358_; -goto v___jp_5339_; -} -} -} -} -} -else -{ -lean_dec_ref(v_reader_5270_); -lean_dec(v_status_5269_); -return v_machine_5268_; -} -} -else -{ -lean_dec(v_status_5269_); -return v_machine_5268_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue___boxed(lean_object* v_dir_5505_, lean_object* v_machine_5506_, lean_object* v_status_5507_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg___boxed(lean_object* v_machine_5425_, lean_object* v_headerSize_5426_, lean_object* v_framingInHeaders_5427_){ _start: { -uint8_t v_dir_boxed_5508_; lean_object* v_res_5509_; -v_dir_boxed_5508_ = lean_unbox(v_dir_5505_); -v_res_5509_ = l_Std_Http_Protocol_H1_Machine_canContinue(v_dir_boxed_5508_, v_machine_5506_, v_status_5507_); -return v_res_5509_; +uint8_t v_framingInHeaders_boxed_5428_; lean_object* v_res_5429_; +v_framingInHeaders_boxed_5428_ = lean_unbox(v_framingInHeaders_5427_); +v_res_5429_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v_machine_5425_, v_headerSize_5426_, v_framingInHeaders_boxed_5428_); +return v_res_5429_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(lean_object* v_a_5510_, lean_object* v_x_5511_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(uint8_t v_dir_5430_, lean_object* v_machine_5431_, lean_object* v_headerSize_5432_, uint8_t v_framingInHeaders_5433_){ _start: { -lean_object* v___x_5512_; lean_object* v_entries_5513_; lean_object* v_i_5514_; -v___x_5512_ = l_Std_Http_Headers_empty; -v_entries_5513_ = lean_ctor_get(v___x_5512_, 0); -v_i_5514_ = lean_array_get_size(v_entries_5513_); -if (lean_obj_tag(v_x_5511_) == 0) -{ -lean_object* v___x_5515_; lean_object* v___x_5516_; lean_object* v_val_5517_; lean_object* v___x_5518_; -v___x_5515_ = lean_box(0); -v___x_5516_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_5514_, v___x_5515_); -v_val_5517_ = lean_ctor_get(v___x_5516_, 0); -lean_inc(v_val_5517_); -lean_dec(v___x_5516_); -v___x_5518_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v___x_5518_, 0, v_a_5510_); -lean_ctor_set(v___x_5518_, 1, v_val_5517_); -lean_ctor_set(v___x_5518_, 2, v_x_5511_); -return v___x_5518_; -} -else -{ -lean_object* v_key_5519_; lean_object* v_value_5520_; lean_object* v_tail_5521_; lean_object* v___x_5523_; uint8_t v_isShared_5524_; uint8_t v_isSharedCheck_5536_; -v_key_5519_ = lean_ctor_get(v_x_5511_, 0); -v_value_5520_ = lean_ctor_get(v_x_5511_, 1); -v_tail_5521_ = lean_ctor_get(v_x_5511_, 2); -v_isSharedCheck_5536_ = !lean_is_exclusive(v_x_5511_); -if (v_isSharedCheck_5536_ == 0) -{ -v___x_5523_ = v_x_5511_; -v_isShared_5524_ = v_isSharedCheck_5536_; -goto v_resetjp_5522_; -} -else -{ -lean_inc(v_tail_5521_); -lean_inc(v_value_5520_); -lean_inc(v_key_5519_); -lean_dec(v_x_5511_); -v___x_5523_ = lean_box(0); -v_isShared_5524_ = v_isSharedCheck_5536_; -goto v_resetjp_5522_; -} -v_resetjp_5522_: -{ -uint8_t v___x_5525_; -v___x_5525_ = lean_string_dec_eq(v_key_5519_, v_a_5510_); -if (v___x_5525_ == 0) -{ -lean_object* v_tail_5526_; lean_object* v___x_5528_; -v_tail_5526_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(v_a_5510_, v_tail_5521_); -if (v_isShared_5524_ == 0) -{ -lean_ctor_set(v___x_5523_, 2, v_tail_5526_); -v___x_5528_ = v___x_5523_; -goto v_reusejp_5527_; -} -else -{ -lean_object* v_reuseFailAlloc_5529_; -v_reuseFailAlloc_5529_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v_reuseFailAlloc_5529_, 0, v_key_5519_); -lean_ctor_set(v_reuseFailAlloc_5529_, 1, v_value_5520_); -lean_ctor_set(v_reuseFailAlloc_5529_, 2, v_tail_5526_); -v___x_5528_ = v_reuseFailAlloc_5529_; -goto v_reusejp_5527_; -} -v_reusejp_5527_: -{ -return v___x_5528_; +lean_object* v___x_5434_; +v___x_5434_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v_machine_5431_, v_headerSize_5432_, v_framingInHeaders_5433_); +return v___x_5434_; } } -else -{ -lean_object* v___x_5530_; lean_object* v___x_5531_; lean_object* v_val_5532_; lean_object* v___x_5534_; -lean_dec(v_key_5519_); -v___x_5530_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_5530_, 0, v_value_5520_); -v___x_5531_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_5514_, v___x_5530_); -v_val_5532_ = lean_ctor_get(v___x_5531_, 0); -lean_inc(v_val_5532_); -lean_dec(v___x_5531_); -if (v_isShared_5524_ == 0) -{ -lean_ctor_set(v___x_5523_, 1, v_val_5532_); -lean_ctor_set(v___x_5523_, 0, v_a_5510_); -v___x_5534_ = v___x_5523_; -goto v_reusejp_5533_; -} -else -{ -lean_object* v_reuseFailAlloc_5535_; -v_reuseFailAlloc_5535_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v_reuseFailAlloc_5535_, 0, v_a_5510_); -lean_ctor_set(v_reuseFailAlloc_5535_, 1, v_val_5532_); -lean_ctor_set(v_reuseFailAlloc_5535_, 2, v_tail_5521_); -v___x_5534_ = v_reuseFailAlloc_5535_; -goto v_reusejp_5533_; -} -v_reusejp_5533_: -{ -return v___x_5534_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0(lean_object* v_m_5537_, lean_object* v_a_5538_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___boxed(lean_object* v_dir_5435_, lean_object* v_machine_5436_, lean_object* v_headerSize_5437_, lean_object* v_framingInHeaders_5438_){ _start: { -lean_object* v___x_5539_; lean_object* v_entries_5540_; lean_object* v_size_5541_; lean_object* v_buckets_5542_; lean_object* v___x_5544_; uint8_t v_isShared_5545_; uint8_t v_isSharedCheck_5593_; -v___x_5539_ = l_Std_Http_Headers_empty; -v_entries_5540_ = lean_ctor_get(v___x_5539_, 0); -v_size_5541_ = lean_ctor_get(v_m_5537_, 0); -v_buckets_5542_ = lean_ctor_get(v_m_5537_, 1); -v_isSharedCheck_5593_ = !lean_is_exclusive(v_m_5537_); -if (v_isSharedCheck_5593_ == 0) -{ -v___x_5544_ = v_m_5537_; -v_isShared_5545_ = v_isSharedCheck_5593_; -goto v_resetjp_5543_; -} -else -{ -lean_inc(v_buckets_5542_); -lean_inc(v_size_5541_); -lean_dec(v_m_5537_); -v___x_5544_ = lean_box(0); -v_isShared_5545_ = v_isSharedCheck_5593_; -goto v_resetjp_5543_; -} -v_resetjp_5543_: -{ -lean_object* v___x_5546_; uint64_t v___x_5547_; uint64_t v___x_5548_; uint64_t v___x_5549_; uint64_t v_fold_5550_; uint64_t v___x_5551_; uint64_t v___x_5552_; uint64_t v___x_5553_; size_t v___x_5554_; size_t v___x_5555_; size_t v___x_5556_; size_t v___x_5557_; size_t v___x_5558_; lean_object* v_bkt_5559_; uint8_t v___x_5560_; -v___x_5546_ = lean_array_get_size(v_buckets_5542_); -v___x_5547_ = lean_string_hash(v_a_5538_); -v___x_5548_ = 32ULL; -v___x_5549_ = lean_uint64_shift_right(v___x_5547_, v___x_5548_); -v_fold_5550_ = lean_uint64_xor(v___x_5547_, v___x_5549_); -v___x_5551_ = 16ULL; -v___x_5552_ = lean_uint64_shift_right(v_fold_5550_, v___x_5551_); -v___x_5553_ = lean_uint64_xor(v_fold_5550_, v___x_5552_); -v___x_5554_ = lean_uint64_to_usize(v___x_5553_); -v___x_5555_ = lean_usize_of_nat(v___x_5546_); -v___x_5556_ = ((size_t)1ULL); -v___x_5557_ = lean_usize_sub(v___x_5555_, v___x_5556_); -v___x_5558_ = lean_usize_land(v___x_5554_, v___x_5557_); -v_bkt_5559_ = lean_array_uget_borrowed(v_buckets_5542_, v___x_5558_); -v___x_5560_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_5538_, v_bkt_5559_); -if (v___x_5560_ == 0) -{ -lean_object* v_i_5561_; lean_object* v___x_5562_; lean_object* v___x_5563_; lean_object* v___x_5564_; lean_object* v_size_x27_5565_; lean_object* v___x_5566_; lean_object* v_buckets_x27_5567_; lean_object* v___x_5568_; lean_object* v___x_5569_; lean_object* v___x_5570_; lean_object* v___x_5571_; lean_object* v___x_5572_; uint8_t v___x_5573_; -v_i_5561_ = lean_array_get_size(v_entries_5540_); -v___x_5562_ = lean_unsigned_to_nat(1u); -v___x_5563_ = lean_mk_empty_array_with_capacity(v___x_5562_); -v___x_5564_ = lean_array_push(v___x_5563_, v_i_5561_); -v_size_x27_5565_ = lean_nat_add(v_size_5541_, v___x_5562_); -lean_dec(v_size_5541_); -lean_inc(v_bkt_5559_); -v___x_5566_ = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(v___x_5566_, 0, v_a_5538_); -lean_ctor_set(v___x_5566_, 1, v___x_5564_); -lean_ctor_set(v___x_5566_, 2, v_bkt_5559_); -v_buckets_x27_5567_ = lean_array_uset(v_buckets_5542_, v___x_5558_, v___x_5566_); -v___x_5568_ = lean_unsigned_to_nat(4u); -v___x_5569_ = lean_nat_mul(v_size_x27_5565_, v___x_5568_); -v___x_5570_ = lean_unsigned_to_nat(3u); -v___x_5571_ = lean_nat_div(v___x_5569_, v___x_5570_); -lean_dec(v___x_5569_); -v___x_5572_ = lean_array_get_size(v_buckets_x27_5567_); -v___x_5573_ = lean_nat_dec_le(v___x_5571_, v___x_5572_); -lean_dec(v___x_5571_); -if (v___x_5573_ == 0) -{ -lean_object* v_val_5574_; lean_object* v___x_5576_; -v_val_5574_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_buckets_x27_5567_); -if (v_isShared_5545_ == 0) -{ -lean_ctor_set(v___x_5544_, 1, v_val_5574_); -lean_ctor_set(v___x_5544_, 0, v_size_x27_5565_); -v___x_5576_ = v___x_5544_; -goto v_reusejp_5575_; -} -else -{ -lean_object* v_reuseFailAlloc_5577_; -v_reuseFailAlloc_5577_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5577_, 0, v_size_x27_5565_); -lean_ctor_set(v_reuseFailAlloc_5577_, 1, v_val_5574_); -v___x_5576_ = v_reuseFailAlloc_5577_; -goto v_reusejp_5575_; -} -v_reusejp_5575_: -{ -return v___x_5576_; +uint8_t v_dir_boxed_5439_; uint8_t v_framingInHeaders_boxed_5440_; lean_object* v_res_5441_; +v_dir_boxed_5439_ = lean_unbox(v_dir_5435_); +v_framingInHeaders_boxed_5440_ = lean_unbox(v_framingInHeaders_5438_); +v_res_5441_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(v_dir_boxed_5439_, v_machine_5436_, v_headerSize_5437_, v_framingInHeaders_boxed_5440_); +return v_res_5441_; } } -else -{ -lean_object* v___x_5579_; -if (v_isShared_5545_ == 0) -{ -lean_ctor_set(v___x_5544_, 1, v_buckets_x27_5567_); -lean_ctor_set(v___x_5544_, 0, v_size_x27_5565_); -v___x_5579_ = v___x_5544_; -goto v_reusejp_5578_; -} -else -{ -lean_object* v_reuseFailAlloc_5580_; -v_reuseFailAlloc_5580_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5580_, 0, v_size_x27_5565_); -lean_ctor_set(v_reuseFailAlloc_5580_, 1, v_buckets_x27_5567_); -v___x_5579_ = v_reuseFailAlloc_5580_; -goto v_reusejp_5578_; -} -v_reusejp_5578_: -{ -return v___x_5579_; -} -} -} -else -{ -lean_object* v___x_5581_; lean_object* v_buckets_x27_5582_; lean_object* v_bkt_x27_5583_; lean_object* v___y_5585_; uint8_t v___x_5590_; -lean_inc(v_bkt_5559_); -v___x_5581_ = lean_box(0); -v_buckets_x27_5582_ = lean_array_uset(v_buckets_5542_, v___x_5558_, v___x_5581_); -lean_inc_ref(v_a_5538_); -v_bkt_x27_5583_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(v_a_5538_, v_bkt_5559_); -v___x_5590_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_5538_, v_bkt_x27_5583_); -lean_dec_ref(v_a_5538_); -if (v___x_5590_ == 0) -{ -lean_object* v___x_5591_; lean_object* v___x_5592_; -v___x_5591_ = lean_unsigned_to_nat(1u); -v___x_5592_ = lean_nat_sub(v_size_5541_, v___x_5591_); -lean_dec(v_size_5541_); -v___y_5585_ = v___x_5592_; -goto v___jp_5584_; -} -else -{ -v___y_5585_ = v_size_5541_; -goto v___jp_5584_; -} -v___jp_5584_: -{ -lean_object* v___x_5586_; lean_object* v___x_5588_; -v___x_5586_ = lean_array_uset(v_buckets_x27_5582_, v___x_5558_, v_bkt_x27_5583_); -if (v_isShared_5545_ == 0) -{ -lean_ctor_set(v___x_5544_, 1, v___x_5586_); -lean_ctor_set(v___x_5544_, 0, v___y_5585_); -v___x_5588_ = v___x_5544_; -goto v_reusejp_5587_; -} -else -{ -lean_object* v_reuseFailAlloc_5589_; -v_reuseFailAlloc_5589_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_5589_, 0, v___y_5585_); -lean_ctor_set(v_reuseFailAlloc_5589_, 1, v___x_5586_); -v___x_5588_ = v_reuseFailAlloc_5589_; -goto v_reusejp_5587_; -} -v_reusejp_5587_: -{ -return v___x_5588_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError(lean_object* v_machine_5594_, lean_object* v_status_5595_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(uint8_t v_dir_5442_, lean_object* v_machine_5443_, lean_object* v_message_5444_){ _start: { -uint8_t v___y_5597_; lean_object* v_reader_5598_; lean_object* v_userData_5599_; lean_object* v_outputData_5600_; lean_object* v_state_5601_; lean_object* v_knownSize_5602_; lean_object* v_messageHead_5603_; uint8_t v_sentMessage_5604_; uint8_t v_omitBody_5605_; lean_object* v_userDataBytes_5606_; lean_object* v_config_5607_; lean_object* v_events_5608_; lean_object* v_error_5609_; lean_object* v_instant_5610_; uint8_t v_keepAlive_5611_; uint8_t v_forcedFlush_5612_; uint8_t v___y_5630_; lean_object* v___y_5631_; uint8_t v___y_5649_; lean_object* v___y_5650_; uint8_t v___y_5651_; uint8_t v___y_5652_; lean_object* v_writer_5669_; lean_object* v_reader_5670_; lean_object* v_config_5671_; lean_object* v_events_5672_; lean_object* v_error_5673_; lean_object* v_instant_5674_; uint8_t v_keepAlive_5675_; uint8_t v_forcedFlush_5676_; uint8_t v_pullBodyStalled_5677_; lean_object* v___x_5679_; uint8_t v_isShared_5680_; uint8_t v_isSharedCheck_5783_; -v_writer_5669_ = lean_ctor_get(v_machine_5594_, 1); -v_reader_5670_ = lean_ctor_get(v_machine_5594_, 0); -v_config_5671_ = lean_ctor_get(v_machine_5594_, 2); -v_events_5672_ = lean_ctor_get(v_machine_5594_, 3); -v_error_5673_ = lean_ctor_get(v_machine_5594_, 4); -v_instant_5674_ = lean_ctor_get(v_machine_5594_, 5); -v_keepAlive_5675_ = lean_ctor_get_uint8(v_machine_5594_, sizeof(void*)*6); -v_forcedFlush_5676_ = lean_ctor_get_uint8(v_machine_5594_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5677_ = lean_ctor_get_uint8(v_machine_5594_, sizeof(void*)*6 + 2); -v_isSharedCheck_5783_ = !lean_is_exclusive(v_machine_5594_); -if (v_isSharedCheck_5783_ == 0) +lean_object* v___y_5446_; lean_object* v___y_5447_; uint8_t v___y_5448_; lean_object* v___y_5449_; uint8_t v___y_5450_; lean_object* v___y_5451_; uint8_t v___y_5452_; uint8_t v___y_5453_; lean_object* v___y_5454_; lean_object* v_outputData_5455_; lean_object* v_state_5456_; lean_object* v_messageHead_5457_; uint8_t v_sentMessage_5458_; lean_object* v___y_5459_; lean_object* v___y_5465_; lean_object* v___y_5466_; uint8_t v___y_5467_; lean_object* v___y_5468_; uint8_t v___y_5469_; lean_object* v___y_5470_; uint8_t v___y_5471_; lean_object* v___y_5472_; uint8_t v___y_5473_; lean_object* v___y_5474_; lean_object* v___y_5487_; lean_object* v___y_5488_; uint8_t v___y_5489_; lean_object* v___y_5490_; uint8_t v___y_5491_; uint8_t v___y_5492_; lean_object* v___y_5493_; uint8_t v___y_5494_; uint8_t v___y_5495_; lean_object* v___y_5496_; lean_object* v___y_5497_; uint8_t v___y_5498_; lean_object* v___y_5500_; lean_object* v___y_5501_; lean_object* v___y_5502_; uint8_t v___y_5503_; lean_object* v___y_5504_; uint8_t v___y_5505_; lean_object* v___y_5506_; uint8_t v___y_5507_; uint8_t v___y_5508_; lean_object* v___y_5509_; uint8_t v___y_5510_; lean_object* v___y_5511_; +if (v_dir_5442_ == 0) { -v___x_5679_ = v_machine_5594_; -v_isShared_5680_ = v_isSharedCheck_5783_; -goto v_resetjp_5678_; +lean_object* v_status_5514_; uint8_t v___y_5516_; uint16_t v___x_5536_; lean_object* v_code_5537_; lean_object* v___x_5543_; uint8_t v___x_5544_; +v_status_5514_ = lean_ctor_get(v_message_5444_, 0); +v___x_5536_ = l_Std_Http_Status_toCode(v_status_5514_); +v_code_5537_ = lean_uint16_to_nat(v___x_5536_); +v___x_5543_ = lean_unsigned_to_nat(100u); +v___x_5544_ = lean_nat_dec_le(v___x_5543_, v_code_5537_); +if (v___x_5544_ == 0) +{ +goto v___jp_5538_; } else { -lean_inc(v_instant_5674_); -lean_inc(v_error_5673_); -lean_inc(v_events_5672_); -lean_inc(v_config_5671_); -lean_inc(v_writer_5669_); -lean_inc(v_reader_5670_); -lean_dec(v_machine_5594_); -v___x_5679_ = lean_box(0); -v_isShared_5680_ = v_isSharedCheck_5783_; -goto v_resetjp_5678_; -} -v___jp_5596_: +lean_object* v___x_5545_; uint8_t v___x_5546_; +v___x_5545_ = lean_unsigned_to_nat(200u); +v___x_5546_ = lean_nat_dec_lt(v_code_5537_, v___x_5545_); +if (v___x_5546_ == 0) { -lean_object* v_state_5613_; lean_object* v_input_5614_; lean_object* v_messageHead_5615_; lean_object* v_messageCount_5616_; lean_object* v_bodyBytesRead_5617_; lean_object* v_headerBytesRead_5618_; lean_object* v___x_5620_; uint8_t v_isShared_5621_; uint8_t v_isSharedCheck_5628_; -v_state_5613_ = lean_ctor_get(v_reader_5598_, 0); -v_input_5614_ = lean_ctor_get(v_reader_5598_, 1); -v_messageHead_5615_ = lean_ctor_get(v_reader_5598_, 2); -v_messageCount_5616_ = lean_ctor_get(v_reader_5598_, 3); -v_bodyBytesRead_5617_ = lean_ctor_get(v_reader_5598_, 4); -v_headerBytesRead_5618_ = lean_ctor_get(v_reader_5598_, 5); -v_isSharedCheck_5628_ = !lean_is_exclusive(v_reader_5598_); -if (v_isSharedCheck_5628_ == 0) -{ -v___x_5620_ = v_reader_5598_; -v_isShared_5621_ = v_isSharedCheck_5628_; -goto v_resetjp_5619_; +goto v___jp_5538_; } else { -lean_inc(v_headerBytesRead_5618_); -lean_inc(v_bodyBytesRead_5617_); -lean_inc(v_messageCount_5616_); -lean_inc(v_messageHead_5615_); -lean_inc(v_input_5614_); -lean_inc(v_state_5613_); -lean_dec(v_reader_5598_); -v___x_5620_ = lean_box(0); -v_isShared_5621_ = v_isSharedCheck_5628_; -goto v_resetjp_5619_; +v___y_5516_ = v___x_5546_; +goto v___jp_5515_; } -v_resetjp_5619_: +} +v___jp_5515_: { -lean_object* v___x_5622_; lean_object* v___x_5624_; -v___x_5622_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5622_, 0, v_userData_5599_); -lean_ctor_set(v___x_5622_, 1, v_outputData_5600_); -lean_ctor_set(v___x_5622_, 2, v_state_5601_); -lean_ctor_set(v___x_5622_, 3, v_knownSize_5602_); -lean_ctor_set(v___x_5622_, 4, v_messageHead_5603_); -lean_ctor_set(v___x_5622_, 5, v_userDataBytes_5606_); -lean_ctor_set_uint8(v___x_5622_, sizeof(void*)*6, v_sentMessage_5604_); -lean_ctor_set_uint8(v___x_5622_, sizeof(void*)*6 + 1, v___y_5597_); -lean_ctor_set_uint8(v___x_5622_, sizeof(void*)*6 + 2, v_omitBody_5605_); -if (v_isShared_5621_ == 0) +lean_object* v_reader_5517_; lean_object* v_messageHead_5518_; lean_object* v_writer_5519_; lean_object* v_config_5520_; lean_object* v_events_5521_; lean_object* v_error_5522_; lean_object* v_instant_5523_; uint8_t v_keepAlive_5524_; uint8_t v_forcedFlush_5525_; uint8_t v_pullBodyStalled_5526_; uint8_t v_method_5527_; uint8_t v___x_5528_; uint8_t v_suppressByMethod_5529_; uint16_t v___x_5530_; lean_object* v_code_5531_; lean_object* v___x_5532_; uint8_t v___x_5533_; +v_reader_5517_ = lean_ctor_get(v_machine_5443_, 0); +v_messageHead_5518_ = lean_ctor_get(v_reader_5517_, 2); +v_writer_5519_ = lean_ctor_get(v_machine_5443_, 1); +v_config_5520_ = lean_ctor_get(v_machine_5443_, 2); +v_events_5521_ = lean_ctor_get(v_machine_5443_, 3); +v_error_5522_ = lean_ctor_get(v_machine_5443_, 4); +v_instant_5523_ = lean_ctor_get(v_machine_5443_, 5); +v_keepAlive_5524_ = lean_ctor_get_uint8(v_machine_5443_, sizeof(void*)*6); +v_forcedFlush_5525_ = lean_ctor_get_uint8(v_machine_5443_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5526_ = lean_ctor_get_uint8(v_machine_5443_, sizeof(void*)*6 + 2); +v_method_5527_ = lean_ctor_get_uint8(v_messageHead_5518_, sizeof(void*)*2); +v___x_5528_ = 9; +v_suppressByMethod_5529_ = l_Std_Http_instBEqMethod_beq(v_method_5527_, v___x_5528_); +v___x_5530_ = l_Std_Http_Status_toCode(v_status_5514_); +v_code_5531_ = lean_uint16_to_nat(v___x_5530_); +v___x_5532_ = lean_unsigned_to_nat(100u); +v___x_5533_ = lean_nat_dec_le(v___x_5532_, v_code_5531_); +if (v___x_5533_ == 0) { -v___x_5624_ = v___x_5620_; -goto v_reusejp_5623_; +lean_inc_ref(v_writer_5519_); +lean_inc_ref(v_config_5520_); +lean_inc(v_instant_5523_); +lean_inc(v_error_5522_); +lean_inc_ref(v_reader_5517_); +lean_inc_ref(v_events_5521_); +v___y_5500_ = v_events_5521_; +v___y_5501_ = v_code_5531_; +v___y_5502_ = v_reader_5517_; +v___y_5503_ = v_suppressByMethod_5529_; +v___y_5504_ = v_error_5522_; +v___y_5505_ = v_pullBodyStalled_5526_; +v___y_5506_ = v_instant_5523_; +v___y_5507_ = v___y_5516_; +v___y_5508_ = v_forcedFlush_5525_; +v___y_5509_ = v_config_5520_; +v___y_5510_ = v_keepAlive_5524_; +v___y_5511_ = v_writer_5519_; +goto v___jp_5499_; } else { -lean_object* v_reuseFailAlloc_5627_; -v_reuseFailAlloc_5627_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_5627_, 0, v_state_5613_); -lean_ctor_set(v_reuseFailAlloc_5627_, 1, v_input_5614_); -lean_ctor_set(v_reuseFailAlloc_5627_, 2, v_messageHead_5615_); -lean_ctor_set(v_reuseFailAlloc_5627_, 3, v_messageCount_5616_); -lean_ctor_set(v_reuseFailAlloc_5627_, 4, v_bodyBytesRead_5617_); -lean_ctor_set(v_reuseFailAlloc_5627_, 5, v_headerBytesRead_5618_); -v___x_5624_ = v_reuseFailAlloc_5627_; -goto v_reusejp_5623_; -} -v_reusejp_5623_: +lean_object* v___x_5534_; uint8_t v___x_5535_; +v___x_5534_ = lean_unsigned_to_nat(200u); +v___x_5535_ = lean_nat_dec_lt(v_code_5531_, v___x_5534_); +if (v___x_5535_ == 0) { -uint8_t v___x_5625_; lean_object* v___x_5626_; -lean_ctor_set_uint8(v___x_5624_, sizeof(void*)*6, v___y_5597_); -v___x_5625_ = 0; -v___x_5626_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5626_, 0, v___x_5624_); -lean_ctor_set(v___x_5626_, 1, v___x_5622_); -lean_ctor_set(v___x_5626_, 2, v_config_5607_); -lean_ctor_set(v___x_5626_, 3, v_events_5608_); -lean_ctor_set(v___x_5626_, 4, v_error_5609_); -lean_ctor_set(v___x_5626_, 5, v_instant_5610_); -lean_ctor_set_uint8(v___x_5626_, sizeof(void*)*6, v_keepAlive_5611_); -lean_ctor_set_uint8(v___x_5626_, sizeof(void*)*6 + 1, v_forcedFlush_5612_); -lean_ctor_set_uint8(v___x_5626_, sizeof(void*)*6 + 2, v___x_5625_); -return v___x_5626_; -} -} -} -v___jp_5629_: -{ -lean_object* v_writer_5632_; lean_object* v_reader_5633_; lean_object* v_config_5634_; lean_object* v_events_5635_; lean_object* v_error_5636_; lean_object* v_instant_5637_; uint8_t v_keepAlive_5638_; uint8_t v_forcedFlush_5639_; lean_object* v_userData_5640_; lean_object* v_outputData_5641_; lean_object* v_knownSize_5642_; lean_object* v_messageHead_5643_; uint8_t v_sentMessage_5644_; uint8_t v_omitBody_5645_; lean_object* v_userDataBytes_5646_; lean_object* v___x_5647_; -v_writer_5632_ = lean_ctor_get(v___y_5631_, 1); -lean_inc_ref(v_writer_5632_); -v_reader_5633_ = lean_ctor_get(v___y_5631_, 0); -lean_inc_ref(v_reader_5633_); -v_config_5634_ = lean_ctor_get(v___y_5631_, 2); -lean_inc_ref(v_config_5634_); -v_events_5635_ = lean_ctor_get(v___y_5631_, 3); -lean_inc_ref(v_events_5635_); -v_error_5636_ = lean_ctor_get(v___y_5631_, 4); -lean_inc(v_error_5636_); -v_instant_5637_ = lean_ctor_get(v___y_5631_, 5); -lean_inc(v_instant_5637_); -v_keepAlive_5638_ = lean_ctor_get_uint8(v___y_5631_, sizeof(void*)*6); -v_forcedFlush_5639_ = lean_ctor_get_uint8(v___y_5631_, sizeof(void*)*6 + 1); -lean_dec_ref(v___y_5631_); -v_userData_5640_ = lean_ctor_get(v_writer_5632_, 0); -lean_inc_ref(v_userData_5640_); -v_outputData_5641_ = lean_ctor_get(v_writer_5632_, 1); -lean_inc_ref(v_outputData_5641_); -v_knownSize_5642_ = lean_ctor_get(v_writer_5632_, 3); -lean_inc(v_knownSize_5642_); -v_messageHead_5643_ = lean_ctor_get(v_writer_5632_, 4); -lean_inc(v_messageHead_5643_); -v_sentMessage_5644_ = lean_ctor_get_uint8(v_writer_5632_, sizeof(void*)*6); -v_omitBody_5645_ = lean_ctor_get_uint8(v_writer_5632_, sizeof(void*)*6 + 2); -v_userDataBytes_5646_ = lean_ctor_get(v_writer_5632_, 5); -lean_inc(v_userDataBytes_5646_); -lean_dec_ref(v_writer_5632_); -v___x_5647_ = lean_box(2); -v___y_5597_ = v___y_5630_; -v_reader_5598_ = v_reader_5633_; -v_userData_5599_ = v_userData_5640_; -v_outputData_5600_ = v_outputData_5641_; -v_state_5601_ = v___x_5647_; -v_knownSize_5602_ = v_knownSize_5642_; -v_messageHead_5603_ = v_messageHead_5643_; -v_sentMessage_5604_ = v_sentMessage_5644_; -v_omitBody_5605_ = v_omitBody_5645_; -v_userDataBytes_5606_ = v_userDataBytes_5646_; -v_config_5607_ = v_config_5634_; -v_events_5608_ = v_events_5635_; -v_error_5609_ = v_error_5636_; -v_instant_5610_ = v_instant_5637_; -v_keepAlive_5611_ = v_keepAlive_5638_; -v_forcedFlush_5612_ = v_forcedFlush_5639_; -goto v___jp_5596_; -} -v___jp_5648_: -{ -if (v___y_5652_ == 0) -{ -v___y_5630_ = v___y_5649_; -v___y_5631_ = v___y_5650_; -goto v___jp_5629_; +lean_inc_ref(v_writer_5519_); +lean_inc_ref(v_config_5520_); +lean_inc(v_instant_5523_); +lean_inc(v_error_5522_); +lean_inc_ref(v_reader_5517_); +lean_inc_ref(v_events_5521_); +v___y_5500_ = v_events_5521_; +v___y_5501_ = v_code_5531_; +v___y_5502_ = v_reader_5517_; +v___y_5503_ = v_suppressByMethod_5529_; +v___y_5504_ = v_error_5522_; +v___y_5505_ = v_pullBodyStalled_5526_; +v___y_5506_ = v_instant_5523_; +v___y_5507_ = v___y_5516_; +v___y_5508_ = v_forcedFlush_5525_; +v___y_5509_ = v_config_5520_; +v___y_5510_ = v_keepAlive_5524_; +v___y_5511_ = v_writer_5519_; +goto v___jp_5499_; } else { -if (v___y_5651_ == 0) +lean_inc_ref(v_writer_5519_); +lean_inc_ref(v_config_5520_); +lean_inc(v_instant_5523_); +lean_inc(v_error_5522_); +lean_inc_ref(v_reader_5517_); +lean_inc_ref(v_events_5521_); +v___y_5487_ = v_events_5521_; +v___y_5488_ = v_reader_5517_; +v___y_5489_ = v_suppressByMethod_5529_; +v___y_5490_ = v_error_5522_; +v___y_5491_ = v_pullBodyStalled_5526_; +v___y_5492_ = v___y_5516_; +v___y_5493_ = v_instant_5523_; +v___y_5494_ = v_forcedFlush_5525_; +v___y_5495_ = v_keepAlive_5524_; +v___y_5496_ = v_config_5520_; +v___y_5497_ = v_writer_5519_; +v___y_5498_ = v___x_5535_; +goto v___jp_5486_; +} +} +} +v___jp_5538_: { -lean_object* v_writer_5653_; lean_object* v_reader_5654_; lean_object* v_config_5655_; lean_object* v_events_5656_; lean_object* v_error_5657_; lean_object* v_instant_5658_; uint8_t v_keepAlive_5659_; uint8_t v_forcedFlush_5660_; lean_object* v_userData_5661_; lean_object* v_outputData_5662_; lean_object* v_state_5663_; lean_object* v_knownSize_5664_; lean_object* v_messageHead_5665_; uint8_t v_sentMessage_5666_; uint8_t v_omitBody_5667_; lean_object* v_userDataBytes_5668_; -v_writer_5653_ = lean_ctor_get(v___y_5650_, 1); -lean_inc_ref(v_writer_5653_); -v_reader_5654_ = lean_ctor_get(v___y_5650_, 0); -lean_inc_ref(v_reader_5654_); -v_config_5655_ = lean_ctor_get(v___y_5650_, 2); -lean_inc_ref(v_config_5655_); -v_events_5656_ = lean_ctor_get(v___y_5650_, 3); -lean_inc_ref(v_events_5656_); -v_error_5657_ = lean_ctor_get(v___y_5650_, 4); -lean_inc(v_error_5657_); -v_instant_5658_ = lean_ctor_get(v___y_5650_, 5); -lean_inc(v_instant_5658_); -v_keepAlive_5659_ = lean_ctor_get_uint8(v___y_5650_, sizeof(void*)*6); -v_forcedFlush_5660_ = lean_ctor_get_uint8(v___y_5650_, sizeof(void*)*6 + 1); -lean_dec_ref(v___y_5650_); -v_userData_5661_ = lean_ctor_get(v_writer_5653_, 0); -lean_inc_ref(v_userData_5661_); -v_outputData_5662_ = lean_ctor_get(v_writer_5653_, 1); -lean_inc_ref(v_outputData_5662_); -v_state_5663_ = lean_ctor_get(v_writer_5653_, 2); -lean_inc(v_state_5663_); -v_knownSize_5664_ = lean_ctor_get(v_writer_5653_, 3); -lean_inc(v_knownSize_5664_); -v_messageHead_5665_ = lean_ctor_get(v_writer_5653_, 4); -lean_inc(v_messageHead_5665_); -v_sentMessage_5666_ = lean_ctor_get_uint8(v_writer_5653_, sizeof(void*)*6); -v_omitBody_5667_ = lean_ctor_get_uint8(v_writer_5653_, sizeof(void*)*6 + 2); -v_userDataBytes_5668_ = lean_ctor_get(v_writer_5653_, 5); -lean_inc(v_userDataBytes_5668_); -lean_dec_ref(v_writer_5653_); -v___y_5597_ = v___y_5649_; -v_reader_5598_ = v_reader_5654_; -v_userData_5599_ = v_userData_5661_; -v_outputData_5600_ = v_outputData_5662_; -v_state_5601_ = v_state_5663_; -v_knownSize_5602_ = v_knownSize_5664_; -v_messageHead_5603_ = v_messageHead_5665_; -v_sentMessage_5604_ = v_sentMessage_5666_; -v_omitBody_5605_ = v_omitBody_5667_; -v_userDataBytes_5606_ = v_userDataBytes_5668_; -v_config_5607_ = v_config_5655_; -v_events_5608_ = v_events_5656_; -v_error_5609_ = v_error_5657_; -v_instant_5610_ = v_instant_5658_; -v_keepAlive_5611_ = v_keepAlive_5659_; -v_forcedFlush_5612_ = v_forcedFlush_5660_; -goto v___jp_5596_; +lean_object* v___x_5539_; uint8_t v___x_5540_; +v___x_5539_ = lean_unsigned_to_nat(204u); +v___x_5540_ = lean_nat_dec_eq(v_code_5537_, v___x_5539_); +if (v___x_5540_ == 0) +{ +lean_object* v___x_5541_; uint8_t v___x_5542_; +v___x_5541_ = lean_unsigned_to_nat(304u); +v___x_5542_ = lean_nat_dec_eq(v_code_5537_, v___x_5541_); +v___y_5516_ = v___x_5542_; +goto v___jp_5515_; } else { -v___y_5630_ = v___y_5649_; -v___y_5631_ = v___y_5650_; -goto v___jp_5629_; +v___y_5516_ = v___x_5540_; +goto v___jp_5515_; } } } -v_resetjp_5678_: -{ -lean_object* v_userData_5681_; lean_object* v_outputData_5682_; lean_object* v_state_5683_; lean_object* v_knownSize_5684_; lean_object* v_messageHead_5685_; uint8_t v_sentMessage_5686_; uint8_t v_userClosedBody_5687_; uint8_t v_omitBody_5688_; lean_object* v_userDataBytes_5689_; lean_object* v___x_5691_; uint8_t v_isShared_5692_; uint8_t v_isSharedCheck_5782_; -v_userData_5681_ = lean_ctor_get(v_writer_5669_, 0); -v_outputData_5682_ = lean_ctor_get(v_writer_5669_, 1); -v_state_5683_ = lean_ctor_get(v_writer_5669_, 2); -v_knownSize_5684_ = lean_ctor_get(v_writer_5669_, 3); -v_messageHead_5685_ = lean_ctor_get(v_writer_5669_, 4); -v_sentMessage_5686_ = lean_ctor_get_uint8(v_writer_5669_, sizeof(void*)*6); -v_userClosedBody_5687_ = lean_ctor_get_uint8(v_writer_5669_, sizeof(void*)*6 + 1); -v_omitBody_5688_ = lean_ctor_get_uint8(v_writer_5669_, sizeof(void*)*6 + 2); -v_userDataBytes_5689_ = lean_ctor_get(v_writer_5669_, 5); -v_isSharedCheck_5782_ = !lean_is_exclusive(v_writer_5669_); -if (v_isSharedCheck_5782_ == 0) -{ -v___x_5691_ = v_writer_5669_; -v_isShared_5692_ = v_isSharedCheck_5782_; -goto v_resetjp_5690_; -} else { -lean_inc(v_userDataBytes_5689_); -lean_inc(v_messageHead_5685_); -lean_inc(v_knownSize_5684_); -lean_inc(v_state_5683_); -lean_inc(v_outputData_5682_); -lean_inc(v_userData_5681_); -lean_dec(v_writer_5669_); -v___x_5691_ = lean_box(0); -v_isShared_5692_ = v_isSharedCheck_5782_; -goto v_resetjp_5690_; +return v_machine_5443_; } -v_resetjp_5690_: +v___jp_5445_: { -uint8_t v___y_5694_; uint8_t v___x_5716_; uint8_t v___y_5718_; uint8_t v___y_5719_; lean_object* v___y_5720_; uint8_t v___y_5721_; uint8_t v___y_5722_; lean_object* v___y_5723_; uint8_t v___y_5724_; uint8_t v___y_5725_; uint8_t v___y_5732_; uint8_t v___y_5733_; uint8_t v___y_5734_; lean_object* v___y_5735_; uint8_t v___y_5736_; uint8_t v___y_5747_; uint8_t v___y_5748_; lean_object* v___y_5749_; uint8_t v___y_5750_; uint8_t v___y_5753_; lean_object* v___y_5754_; uint8_t v___y_5755_; uint8_t v___y_5766_; lean_object* v___x_5779_; uint8_t v___x_5780_; -v___x_5716_ = 0; -v___x_5779_ = lean_box(1); -v___x_5780_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5683_, v___x_5779_); -if (v___x_5780_ == 0) +lean_object* v___x_5460_; lean_object* v___x_5461_; lean_object* v___x_5462_; lean_object* v___x_5463_; +v___x_5460_ = lean_unsigned_to_nat(0u); +v___x_5461_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); +v___x_5462_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_5462_, 0, v___x_5461_); +lean_ctor_set(v___x_5462_, 1, v_outputData_5455_); +lean_ctor_set(v___x_5462_, 2, v_state_5456_); +lean_ctor_set(v___x_5462_, 3, v___y_5459_); +lean_ctor_set(v___x_5462_, 4, v_messageHead_5457_); +lean_ctor_set(v___x_5462_, 5, v___x_5460_); +lean_ctor_set_uint8(v___x_5462_, sizeof(void*)*6, v_sentMessage_5458_); +lean_ctor_set_uint8(v___x_5462_, sizeof(void*)*6 + 1, v___y_5448_); +lean_ctor_set_uint8(v___x_5462_, sizeof(void*)*6 + 2, v___y_5448_); +v___x_5463_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_5463_, 0, v___y_5447_); +lean_ctor_set(v___x_5463_, 1, v___x_5462_); +lean_ctor_set(v___x_5463_, 2, v___y_5454_); +lean_ctor_set(v___x_5463_, 3, v___y_5446_); +lean_ctor_set(v___x_5463_, 4, v___y_5449_); +lean_ctor_set(v___x_5463_, 5, v___y_5451_); +lean_ctor_set_uint8(v___x_5463_, sizeof(void*)*6, v___y_5453_); +lean_ctor_set_uint8(v___x_5463_, sizeof(void*)*6 + 1, v___y_5452_); +lean_ctor_set_uint8(v___x_5463_, sizeof(void*)*6 + 2, v___y_5450_); +return v___x_5463_; +} +v___jp_5464_: { -v___y_5766_ = v___x_5780_; -goto v___jp_5765_; +uint8_t v___x_5475_; +v___x_5475_ = 1; +if (v___y_5467_ == 0) +{ +lean_object* v_outputData_5476_; lean_object* v_state_5477_; lean_object* v_knownSize_5478_; lean_object* v_messageHead_5479_; uint8_t v_sentMessage_5480_; +v_outputData_5476_ = lean_ctor_get(v___y_5474_, 1); +lean_inc_ref(v_outputData_5476_); +v_state_5477_ = lean_ctor_get(v___y_5474_, 2); +lean_inc(v_state_5477_); +v_knownSize_5478_ = lean_ctor_get(v___y_5474_, 3); +lean_inc(v_knownSize_5478_); +v_messageHead_5479_ = lean_ctor_get(v___y_5474_, 4); +lean_inc(v_messageHead_5479_); +v_sentMessage_5480_ = lean_ctor_get_uint8(v___y_5474_, sizeof(void*)*6); +lean_dec_ref(v___y_5474_); +v___y_5446_ = v___y_5465_; +v___y_5447_ = v___y_5466_; +v___y_5448_ = v___x_5475_; +v___y_5449_ = v___y_5468_; +v___y_5450_ = v___y_5469_; +v___y_5451_ = v___y_5470_; +v___y_5452_ = v___y_5471_; +v___y_5453_ = v___y_5473_; +v___y_5454_ = v___y_5472_; +v_outputData_5455_ = v_outputData_5476_; +v_state_5456_ = v_state_5477_; +v_messageHead_5457_ = v_messageHead_5479_; +v_sentMessage_5458_ = v_sentMessage_5480_; +v___y_5459_ = v_knownSize_5478_; +goto v___jp_5445_; } else { -if (v_sentMessage_5686_ == 0) +lean_object* v_outputData_5481_; lean_object* v_state_5482_; lean_object* v_messageHead_5483_; uint8_t v_sentMessage_5484_; lean_object* v___x_5485_; +v_outputData_5481_ = lean_ctor_get(v___y_5474_, 1); +lean_inc_ref(v_outputData_5481_); +v_state_5482_ = lean_ctor_get(v___y_5474_, 2); +lean_inc(v_state_5482_); +v_messageHead_5483_ = lean_ctor_get(v___y_5474_, 4); +lean_inc(v_messageHead_5483_); +v_sentMessage_5484_ = lean_ctor_get_uint8(v___y_5474_, sizeof(void*)*6); +lean_dec_ref(v___y_5474_); +v___x_5485_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); +v___y_5446_ = v___y_5465_; +v___y_5447_ = v___y_5466_; +v___y_5448_ = v___x_5475_; +v___y_5449_ = v___y_5468_; +v___y_5450_ = v___y_5469_; +v___y_5451_ = v___y_5470_; +v___y_5452_ = v___y_5471_; +v___y_5453_ = v___y_5473_; +v___y_5454_ = v___y_5472_; +v_outputData_5455_ = v_outputData_5481_; +v_state_5456_ = v_state_5482_; +v_messageHead_5457_ = v_messageHead_5483_; +v_sentMessage_5458_ = v_sentMessage_5484_; +v___y_5459_ = v___x_5485_; +goto v___jp_5445_; +} +} +v___jp_5486_: { -v___y_5766_ = v___x_5780_; -goto v___jp_5765_; +if (v___y_5492_ == 0) +{ +if (v___y_5489_ == 0) +{ +lean_dec_ref(v___y_5497_); +lean_dec_ref(v___y_5496_); +lean_dec(v___y_5493_); +lean_dec(v___y_5490_); +lean_dec_ref(v___y_5488_); +lean_dec_ref(v___y_5487_); +return v_machine_5443_; } else { -uint8_t v___x_5781_; -lean_dec(v_state_5683_); -lean_dec(v_status_5595_); -v___x_5781_ = 0; -v___y_5694_ = v___x_5781_; -goto v___jp_5693_; +lean_dec_ref(v_machine_5443_); +v___y_5465_ = v___y_5487_; +v___y_5466_ = v___y_5488_; +v___y_5467_ = v___y_5498_; +v___y_5468_ = v___y_5490_; +v___y_5469_ = v___y_5491_; +v___y_5470_ = v___y_5493_; +v___y_5471_ = v___y_5494_; +v___y_5472_ = v___y_5496_; +v___y_5473_ = v___y_5495_; +v___y_5474_ = v___y_5497_; +goto v___jp_5464_; } } -v___jp_5693_: -{ -lean_object* v_state_5695_; lean_object* v_input_5696_; lean_object* v_messageHead_5697_; lean_object* v_messageCount_5698_; lean_object* v_bodyBytesRead_5699_; lean_object* v_headerBytesRead_5700_; lean_object* v___x_5702_; uint8_t v_isShared_5703_; uint8_t v_isSharedCheck_5715_; -v_state_5695_ = lean_ctor_get(v_reader_5670_, 0); -v_input_5696_ = lean_ctor_get(v_reader_5670_, 1); -v_messageHead_5697_ = lean_ctor_get(v_reader_5670_, 2); -v_messageCount_5698_ = lean_ctor_get(v_reader_5670_, 3); -v_bodyBytesRead_5699_ = lean_ctor_get(v_reader_5670_, 4); -v_headerBytesRead_5700_ = lean_ctor_get(v_reader_5670_, 5); -v_isSharedCheck_5715_ = !lean_is_exclusive(v_reader_5670_); -if (v_isSharedCheck_5715_ == 0) -{ -v___x_5702_ = v_reader_5670_; -v_isShared_5703_ = v_isSharedCheck_5715_; -goto v_resetjp_5701_; -} else { -lean_inc(v_headerBytesRead_5700_); -lean_inc(v_bodyBytesRead_5699_); -lean_inc(v_messageCount_5698_); -lean_inc(v_messageHead_5697_); -lean_inc(v_input_5696_); -lean_inc(v_state_5695_); -lean_dec(v_reader_5670_); -v___x_5702_ = lean_box(0); -v_isShared_5703_ = v_isSharedCheck_5715_; -goto v_resetjp_5701_; +lean_dec_ref(v_machine_5443_); +v___y_5465_ = v___y_5487_; +v___y_5466_ = v___y_5488_; +v___y_5467_ = v___y_5498_; +v___y_5468_ = v___y_5490_; +v___y_5469_ = v___y_5491_; +v___y_5470_ = v___y_5493_; +v___y_5471_ = v___y_5494_; +v___y_5472_ = v___y_5496_; +v___y_5473_ = v___y_5495_; +v___y_5474_ = v___y_5497_; +goto v___jp_5464_; } -v_resetjp_5701_: +} +v___jp_5499_: { -lean_object* v___x_5704_; uint8_t v___x_5705_; lean_object* v___x_5707_; -v___x_5704_ = lean_box(5); -v___x_5705_ = 1; -if (v_isShared_5692_ == 0) +lean_object* v___x_5512_; uint8_t v___x_5513_; +v___x_5512_ = lean_unsigned_to_nat(204u); +v___x_5513_ = lean_nat_dec_eq(v___y_5501_, v___x_5512_); +lean_dec(v___y_5501_); +v___y_5487_ = v___y_5500_; +v___y_5488_ = v___y_5502_; +v___y_5489_ = v___y_5503_; +v___y_5490_ = v___y_5504_; +v___y_5491_ = v___y_5505_; +v___y_5492_ = v___y_5507_; +v___y_5493_ = v___y_5506_; +v___y_5494_ = v___y_5508_; +v___y_5495_ = v___y_5510_; +v___y_5496_ = v___y_5509_; +v___y_5497_ = v___y_5511_; +v___y_5498_ = v___x_5513_; +goto v___jp_5486_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody___boxed(lean_object* v_dir_5547_, lean_object* v_machine_5548_, lean_object* v_message_5549_){ +_start: { -lean_ctor_set(v___x_5691_, 2, v___x_5704_); -v___x_5707_ = v___x_5691_; -goto v_reusejp_5706_; +uint8_t v_dir_boxed_5550_; lean_object* v_res_5551_; +v_dir_boxed_5550_ = lean_unbox(v_dir_5547_); +v_res_5551_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_boxed_5550_, v_machine_5548_, v_message_5549_); +lean_dec(v_message_5549_); +return v_res_5551_; +} +} +LEAN_EXPORT uint8_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg(lean_object* v_machine_5552_){ +_start: +{ +lean_object* v_writer_5553_; lean_object* v_state_5554_; +v_writer_5553_ = lean_ctor_get(v_machine_5552_, 1); +v_state_5554_ = lean_ctor_get(v_writer_5553_, 2); +if (lean_obj_tag(v_state_5554_) == 7) +{ +uint8_t v___x_5555_; +v___x_5555_ = 1; +return v___x_5555_; } else { -lean_object* v_reuseFailAlloc_5714_; -v_reuseFailAlloc_5714_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5714_, 0, v_userData_5681_); -lean_ctor_set(v_reuseFailAlloc_5714_, 1, v_outputData_5682_); -lean_ctor_set(v_reuseFailAlloc_5714_, 2, v___x_5704_); -lean_ctor_set(v_reuseFailAlloc_5714_, 3, v_knownSize_5684_); -lean_ctor_set(v_reuseFailAlloc_5714_, 4, v_messageHead_5685_); -lean_ctor_set(v_reuseFailAlloc_5714_, 5, v_userDataBytes_5689_); -lean_ctor_set_uint8(v_reuseFailAlloc_5714_, sizeof(void*)*6, v_sentMessage_5686_); -lean_ctor_set_uint8(v_reuseFailAlloc_5714_, sizeof(void*)*6 + 2, v_omitBody_5688_); -v___x_5707_ = v_reuseFailAlloc_5714_; -goto v_reusejp_5706_; +uint8_t v___x_5556_; +v___x_5556_ = 0; +return v___x_5556_; } -v_reusejp_5706_: +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg___boxed(lean_object* v_machine_5557_){ +_start: { -lean_object* v___x_5709_; -lean_ctor_set_uint8(v___x_5707_, sizeof(void*)*6 + 1, v___x_5705_); -if (v_isShared_5703_ == 0) +uint8_t v_res_5558_; lean_object* v_r_5559_; +v_res_5558_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___redArg(v_machine_5557_); +lean_dec_ref(v_machine_5557_); +v_r_5559_ = lean_box(v_res_5558_); +return v_r_5559_; +} +} +LEAN_EXPORT uint8_t l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed(uint8_t v_dir_5560_, lean_object* v_machine_5561_){ +_start: { -v___x_5709_ = v___x_5702_; -goto v_reusejp_5708_; +lean_object* v_writer_5562_; lean_object* v_state_5563_; +v_writer_5562_ = lean_ctor_get(v_machine_5561_, 1); +v_state_5563_ = lean_ctor_get(v_writer_5562_, 2); +if (lean_obj_tag(v_state_5563_) == 7) +{ +uint8_t v___x_5564_; +v___x_5564_ = 1; +return v___x_5564_; } else { -lean_object* v_reuseFailAlloc_5713_; -v_reuseFailAlloc_5713_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_5713_, 0, v_state_5695_); -lean_ctor_set(v_reuseFailAlloc_5713_, 1, v_input_5696_); -lean_ctor_set(v_reuseFailAlloc_5713_, 2, v_messageHead_5697_); -lean_ctor_set(v_reuseFailAlloc_5713_, 3, v_messageCount_5698_); -lean_ctor_set(v_reuseFailAlloc_5713_, 4, v_bodyBytesRead_5699_); -lean_ctor_set(v_reuseFailAlloc_5713_, 5, v_headerBytesRead_5700_); -v___x_5709_ = v_reuseFailAlloc_5713_; -goto v_reusejp_5708_; +uint8_t v___x_5565_; +v___x_5565_ = 0; +return v___x_5565_; } -v_reusejp_5708_: +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed___boxed(lean_object* v_dir_5566_, lean_object* v_machine_5567_){ +_start: { -lean_object* v___x_5711_; -lean_ctor_set_uint8(v___x_5709_, sizeof(void*)*6, v___x_5705_); -if (v_isShared_5680_ == 0) +uint8_t v_dir_boxed_5568_; uint8_t v_res_5569_; lean_object* v_r_5570_; +v_dir_boxed_5568_ = lean_unbox(v_dir_5566_); +v_res_5569_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_isWriterClosed(v_dir_boxed_5568_, v_machine_5567_); +lean_dec_ref(v_machine_5567_); +v_r_5570_ = lean_box(v_res_5569_); +return v_r_5570_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_send(uint8_t v_dir_5571_, lean_object* v_machine_5572_, lean_object* v_message_5573_){ +_start: { -lean_ctor_set(v___x_5679_, 1, v___x_5707_); -lean_ctor_set(v___x_5679_, 0, v___x_5709_); -v___x_5711_ = v___x_5679_; -goto v_reusejp_5710_; +lean_object* v___y_5575_; lean_object* v___y_5658_; uint8_t v___y_5659_; uint8_t v___y_5660_; uint8_t v___y_5662_; lean_object* v___y_5663_; uint8_t v___y_5664_; uint8_t v___y_5665_; uint8_t v___y_5666_; uint8_t v___y_5667_; uint8_t v___y_5674_; lean_object* v___y_5675_; uint8_t v___y_5676_; uint8_t v___y_5677_; uint8_t v___y_5678_; lean_object* v_writer_5687_; lean_object* v_reader_5688_; lean_object* v_config_5689_; lean_object* v_events_5690_; lean_object* v_error_5691_; lean_object* v_instant_5692_; uint8_t v_keepAlive_5693_; uint8_t v_forcedFlush_5694_; uint8_t v_pullBodyStalled_5695_; lean_object* v_userData_5696_; lean_object* v_outputData_5697_; lean_object* v_state_5698_; lean_object* v_knownSize_5699_; lean_object* v_messageHead_5700_; uint8_t v_sentMessage_5701_; uint8_t v_userClosedBody_5702_; uint8_t v_omitBody_5703_; lean_object* v_userDataBytes_5704_; lean_object* v___x_5706_; uint8_t v_isShared_5707_; uint8_t v_isSharedCheck_5835_; +v_writer_5687_ = lean_ctor_get(v_machine_5572_, 1); +lean_inc_ref(v_writer_5687_); +v_reader_5688_ = lean_ctor_get(v_machine_5572_, 0); +v_config_5689_ = lean_ctor_get(v_machine_5572_, 2); +v_events_5690_ = lean_ctor_get(v_machine_5572_, 3); +v_error_5691_ = lean_ctor_get(v_machine_5572_, 4); +v_instant_5692_ = lean_ctor_get(v_machine_5572_, 5); +v_keepAlive_5693_ = lean_ctor_get_uint8(v_machine_5572_, sizeof(void*)*6); +v_forcedFlush_5694_ = lean_ctor_get_uint8(v_machine_5572_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5695_ = lean_ctor_get_uint8(v_machine_5572_, sizeof(void*)*6 + 2); +v_userData_5696_ = lean_ctor_get(v_writer_5687_, 0); +v_outputData_5697_ = lean_ctor_get(v_writer_5687_, 1); +v_state_5698_ = lean_ctor_get(v_writer_5687_, 2); +v_knownSize_5699_ = lean_ctor_get(v_writer_5687_, 3); +v_messageHead_5700_ = lean_ctor_get(v_writer_5687_, 4); +v_sentMessage_5701_ = lean_ctor_get_uint8(v_writer_5687_, sizeof(void*)*6); +v_userClosedBody_5702_ = lean_ctor_get_uint8(v_writer_5687_, sizeof(void*)*6 + 1); +v_omitBody_5703_ = lean_ctor_get_uint8(v_writer_5687_, sizeof(void*)*6 + 2); +v_userDataBytes_5704_ = lean_ctor_get(v_writer_5687_, 5); +v_isSharedCheck_5835_ = !lean_is_exclusive(v_writer_5687_); +if (v_isSharedCheck_5835_ == 0) +{ +v___x_5706_ = v_writer_5687_; +v_isShared_5707_ = v_isSharedCheck_5835_; +goto v_resetjp_5705_; } else { -lean_object* v_reuseFailAlloc_5712_; -v_reuseFailAlloc_5712_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5712_, 0, v___x_5709_); -lean_ctor_set(v_reuseFailAlloc_5712_, 1, v___x_5707_); -lean_ctor_set(v_reuseFailAlloc_5712_, 2, v_config_5671_); -lean_ctor_set(v_reuseFailAlloc_5712_, 3, v_events_5672_); -lean_ctor_set(v_reuseFailAlloc_5712_, 4, v_error_5673_); -lean_ctor_set(v_reuseFailAlloc_5712_, 5, v_instant_5674_); -lean_ctor_set_uint8(v_reuseFailAlloc_5712_, sizeof(void*)*6, v_keepAlive_5675_); -lean_ctor_set_uint8(v_reuseFailAlloc_5712_, sizeof(void*)*6 + 1, v_forcedFlush_5676_); -v___x_5711_ = v_reuseFailAlloc_5712_; -goto v_reusejp_5710_; +lean_inc(v_userDataBytes_5704_); +lean_inc(v_messageHead_5700_); +lean_inc(v_knownSize_5699_); +lean_inc(v_state_5698_); +lean_inc(v_outputData_5697_); +lean_inc(v_userData_5696_); +lean_dec(v_writer_5687_); +v___x_5706_ = lean_box(0); +v_isShared_5707_ = v_isSharedCheck_5835_; +goto v_resetjp_5705_; } -v_reusejp_5710_: +v___jp_5574_: { -lean_ctor_set_uint8(v___x_5711_, sizeof(void*)*6 + 2, v___y_5694_); -return v___x_5711_; -} -} -} -} -} -v___jp_5717_: +if (v_dir_5571_ == 0) +{ +lean_object* v_writer_5576_; lean_object* v_reader_5577_; lean_object* v_config_5578_; lean_object* v_events_5579_; lean_object* v_error_5580_; lean_object* v_instant_5581_; uint8_t v_keepAlive_5582_; uint8_t v_forcedFlush_5583_; uint8_t v_pullBodyStalled_5584_; lean_object* v___x_5586_; uint8_t v_isShared_5587_; uint8_t v_isSharedCheck_5608_; +v_writer_5576_ = lean_ctor_get(v___y_5575_, 1); +v_reader_5577_ = lean_ctor_get(v___y_5575_, 0); +v_config_5578_ = lean_ctor_get(v___y_5575_, 2); +v_events_5579_ = lean_ctor_get(v___y_5575_, 3); +v_error_5580_ = lean_ctor_get(v___y_5575_, 4); +v_instant_5581_ = lean_ctor_get(v___y_5575_, 5); +v_keepAlive_5582_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6); +v_forcedFlush_5583_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5584_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6 + 2); +v_isSharedCheck_5608_ = !lean_is_exclusive(v___y_5575_); +if (v_isSharedCheck_5608_ == 0) +{ +v___x_5586_ = v___y_5575_; +v_isShared_5587_ = v_isSharedCheck_5608_; +goto v_resetjp_5585_; +} +else +{ +lean_inc(v_instant_5581_); +lean_inc(v_error_5580_); +lean_inc(v_events_5579_); +lean_inc(v_config_5578_); +lean_inc(v_writer_5576_); +lean_inc(v_reader_5577_); +lean_dec(v___y_5575_); +v___x_5586_ = lean_box(0); +v_isShared_5587_ = v_isSharedCheck_5608_; +goto v_resetjp_5585_; +} +v_resetjp_5585_: +{ +lean_object* v_userData_5588_; lean_object* v_outputData_5589_; lean_object* v_knownSize_5590_; lean_object* v_messageHead_5591_; uint8_t v_sentMessage_5592_; uint8_t v_userClosedBody_5593_; uint8_t v_omitBody_5594_; lean_object* v_userDataBytes_5595_; lean_object* v___x_5597_; uint8_t v_isShared_5598_; uint8_t v_isSharedCheck_5606_; +v_userData_5588_ = lean_ctor_get(v_writer_5576_, 0); +v_outputData_5589_ = lean_ctor_get(v_writer_5576_, 1); +v_knownSize_5590_ = lean_ctor_get(v_writer_5576_, 3); +v_messageHead_5591_ = lean_ctor_get(v_writer_5576_, 4); +v_sentMessage_5592_ = lean_ctor_get_uint8(v_writer_5576_, sizeof(void*)*6); +v_userClosedBody_5593_ = lean_ctor_get_uint8(v_writer_5576_, sizeof(void*)*6 + 1); +v_omitBody_5594_ = lean_ctor_get_uint8(v_writer_5576_, sizeof(void*)*6 + 2); +v_userDataBytes_5595_ = lean_ctor_get(v_writer_5576_, 5); +v_isSharedCheck_5606_ = !lean_is_exclusive(v_writer_5576_); +if (v_isSharedCheck_5606_ == 0) +{ +lean_object* v_unused_5607_; +v_unused_5607_ = lean_ctor_get(v_writer_5576_, 2); +lean_dec(v_unused_5607_); +v___x_5597_ = v_writer_5576_; +v_isShared_5598_ = v_isSharedCheck_5606_; +goto v_resetjp_5596_; +} +else +{ +lean_inc(v_userDataBytes_5595_); +lean_inc(v_messageHead_5591_); +lean_inc(v_knownSize_5590_); +lean_inc(v_outputData_5589_); +lean_inc(v_userData_5588_); +lean_dec(v_writer_5576_); +v___x_5597_ = lean_box(0); +v_isShared_5598_ = v_isSharedCheck_5606_; +goto v_resetjp_5596_; +} +v_resetjp_5596_: +{ +lean_object* v___x_5599_; lean_object* v___x_5601_; +v___x_5599_ = lean_box(2); +if (v_isShared_5598_ == 0) +{ +lean_ctor_set(v___x_5597_, 2, v___x_5599_); +v___x_5601_ = v___x_5597_; +goto v_reusejp_5600_; +} +else +{ +lean_object* v_reuseFailAlloc_5605_; +v_reuseFailAlloc_5605_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5605_, 0, v_userData_5588_); +lean_ctor_set(v_reuseFailAlloc_5605_, 1, v_outputData_5589_); +lean_ctor_set(v_reuseFailAlloc_5605_, 2, v___x_5599_); +lean_ctor_set(v_reuseFailAlloc_5605_, 3, v_knownSize_5590_); +lean_ctor_set(v_reuseFailAlloc_5605_, 4, v_messageHead_5591_); +lean_ctor_set(v_reuseFailAlloc_5605_, 5, v_userDataBytes_5595_); +lean_ctor_set_uint8(v_reuseFailAlloc_5605_, sizeof(void*)*6, v_sentMessage_5592_); +lean_ctor_set_uint8(v_reuseFailAlloc_5605_, sizeof(void*)*6 + 1, v_userClosedBody_5593_); +lean_ctor_set_uint8(v_reuseFailAlloc_5605_, sizeof(void*)*6 + 2, v_omitBody_5594_); +v___x_5601_ = v_reuseFailAlloc_5605_; +goto v_reusejp_5600_; +} +v_reusejp_5600_: +{ +lean_object* v___x_5603_; +if (v_isShared_5587_ == 0) +{ +lean_ctor_set(v___x_5586_, 1, v___x_5601_); +v___x_5603_ = v___x_5586_; +goto v_reusejp_5602_; +} +else +{ +lean_object* v_reuseFailAlloc_5604_; +v_reuseFailAlloc_5604_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5604_, 0, v_reader_5577_); +lean_ctor_set(v_reuseFailAlloc_5604_, 1, v___x_5601_); +lean_ctor_set(v_reuseFailAlloc_5604_, 2, v_config_5578_); +lean_ctor_set(v_reuseFailAlloc_5604_, 3, v_events_5579_); +lean_ctor_set(v_reuseFailAlloc_5604_, 4, v_error_5580_); +lean_ctor_set(v_reuseFailAlloc_5604_, 5, v_instant_5581_); +lean_ctor_set_uint8(v_reuseFailAlloc_5604_, sizeof(void*)*6, v_keepAlive_5582_); +lean_ctor_set_uint8(v_reuseFailAlloc_5604_, sizeof(void*)*6 + 1, v_forcedFlush_5583_); +lean_ctor_set_uint8(v_reuseFailAlloc_5604_, sizeof(void*)*6 + 2, v_pullBodyStalled_5584_); +v___x_5603_ = v_reuseFailAlloc_5604_; +goto v_reusejp_5602_; +} +v_reusejp_5602_: +{ +return v___x_5603_; +} +} +} +} +} +else +{ +lean_object* v_writer_5609_; lean_object* v_reader_5610_; lean_object* v_config_5611_; lean_object* v_events_5612_; lean_object* v_error_5613_; lean_object* v_instant_5614_; uint8_t v_keepAlive_5615_; uint8_t v_forcedFlush_5616_; uint8_t v_pullBodyStalled_5617_; lean_object* v___x_5619_; uint8_t v_isShared_5620_; uint8_t v_isSharedCheck_5656_; +v_writer_5609_ = lean_ctor_get(v___y_5575_, 1); +v_reader_5610_ = lean_ctor_get(v___y_5575_, 0); +v_config_5611_ = lean_ctor_get(v___y_5575_, 2); +v_events_5612_ = lean_ctor_get(v___y_5575_, 3); +v_error_5613_ = lean_ctor_get(v___y_5575_, 4); +v_instant_5614_ = lean_ctor_get(v___y_5575_, 5); +v_keepAlive_5615_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6); +v_forcedFlush_5616_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5617_ = lean_ctor_get_uint8(v___y_5575_, sizeof(void*)*6 + 2); +v_isSharedCheck_5656_ = !lean_is_exclusive(v___y_5575_); +if (v_isSharedCheck_5656_ == 0) +{ +v___x_5619_ = v___y_5575_; +v_isShared_5620_ = v_isSharedCheck_5656_; +goto v_resetjp_5618_; +} +else +{ +lean_inc(v_instant_5614_); +lean_inc(v_error_5613_); +lean_inc(v_events_5612_); +lean_inc(v_config_5611_); +lean_inc(v_writer_5609_); +lean_inc(v_reader_5610_); +lean_dec(v___y_5575_); +v___x_5619_ = lean_box(0); +v_isShared_5620_ = v_isSharedCheck_5656_; +goto v_resetjp_5618_; +} +v_resetjp_5618_: +{ +lean_object* v_userData_5621_; lean_object* v_outputData_5622_; lean_object* v_knownSize_5623_; lean_object* v_messageHead_5624_; uint8_t v_sentMessage_5625_; uint8_t v_userClosedBody_5626_; uint8_t v_omitBody_5627_; lean_object* v_userDataBytes_5628_; lean_object* v___x_5630_; uint8_t v_isShared_5631_; uint8_t v_isSharedCheck_5654_; +v_userData_5621_ = lean_ctor_get(v_writer_5609_, 0); +v_outputData_5622_ = lean_ctor_get(v_writer_5609_, 1); +v_knownSize_5623_ = lean_ctor_get(v_writer_5609_, 3); +v_messageHead_5624_ = lean_ctor_get(v_writer_5609_, 4); +v_sentMessage_5625_ = lean_ctor_get_uint8(v_writer_5609_, sizeof(void*)*6); +v_userClosedBody_5626_ = lean_ctor_get_uint8(v_writer_5609_, sizeof(void*)*6 + 1); +v_omitBody_5627_ = lean_ctor_get_uint8(v_writer_5609_, sizeof(void*)*6 + 2); +v_userDataBytes_5628_ = lean_ctor_get(v_writer_5609_, 5); +v_isSharedCheck_5654_ = !lean_is_exclusive(v_writer_5609_); +if (v_isSharedCheck_5654_ == 0) +{ +lean_object* v_unused_5655_; +v_unused_5655_ = lean_ctor_get(v_writer_5609_, 2); +lean_dec(v_unused_5655_); +v___x_5630_ = v_writer_5609_; +v_isShared_5631_ = v_isSharedCheck_5654_; +goto v_resetjp_5629_; +} +else +{ +lean_inc(v_userDataBytes_5628_); +lean_inc(v_messageHead_5624_); +lean_inc(v_knownSize_5623_); +lean_inc(v_outputData_5622_); +lean_inc(v_userData_5621_); +lean_dec(v_writer_5609_); +v___x_5630_ = lean_box(0); +v_isShared_5631_ = v_isSharedCheck_5654_; +goto v_resetjp_5629_; +} +v_resetjp_5629_: +{ +lean_object* v_input_5632_; lean_object* v_messageHead_5633_; lean_object* v_messageCount_5634_; lean_object* v_bodyBytesRead_5635_; lean_object* v_headerBytesRead_5636_; uint8_t v_noMoreInput_5637_; lean_object* v___x_5639_; uint8_t v_isShared_5640_; uint8_t v_isSharedCheck_5652_; +v_input_5632_ = lean_ctor_get(v_reader_5610_, 1); +v_messageHead_5633_ = lean_ctor_get(v_reader_5610_, 2); +v_messageCount_5634_ = lean_ctor_get(v_reader_5610_, 3); +v_bodyBytesRead_5635_ = lean_ctor_get(v_reader_5610_, 4); +v_headerBytesRead_5636_ = lean_ctor_get(v_reader_5610_, 5); +v_noMoreInput_5637_ = lean_ctor_get_uint8(v_reader_5610_, sizeof(void*)*6); +v_isSharedCheck_5652_ = !lean_is_exclusive(v_reader_5610_); +if (v_isSharedCheck_5652_ == 0) +{ +lean_object* v_unused_5653_; +v_unused_5653_ = lean_ctor_get(v_reader_5610_, 0); +lean_dec(v_unused_5653_); +v___x_5639_ = v_reader_5610_; +v_isShared_5640_ = v_isSharedCheck_5652_; +goto v_resetjp_5638_; +} +else +{ +lean_inc(v_headerBytesRead_5636_); +lean_inc(v_bodyBytesRead_5635_); +lean_inc(v_messageCount_5634_); +lean_inc(v_messageHead_5633_); +lean_inc(v_input_5632_); +lean_dec(v_reader_5610_); +v___x_5639_ = lean_box(0); +v_isShared_5640_ = v_isSharedCheck_5652_; +goto v_resetjp_5638_; +} +v_resetjp_5638_: +{ +lean_object* v___x_5641_; lean_object* v___x_5643_; +v___x_5641_ = lean_box(2); +if (v_isShared_5631_ == 0) +{ +lean_ctor_set(v___x_5630_, 2, v___x_5641_); +v___x_5643_ = v___x_5630_; +goto v_reusejp_5642_; +} +else +{ +lean_object* v_reuseFailAlloc_5651_; +v_reuseFailAlloc_5651_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5651_, 0, v_userData_5621_); +lean_ctor_set(v_reuseFailAlloc_5651_, 1, v_outputData_5622_); +lean_ctor_set(v_reuseFailAlloc_5651_, 2, v___x_5641_); +lean_ctor_set(v_reuseFailAlloc_5651_, 3, v_knownSize_5623_); +lean_ctor_set(v_reuseFailAlloc_5651_, 4, v_messageHead_5624_); +lean_ctor_set(v_reuseFailAlloc_5651_, 5, v_userDataBytes_5628_); +lean_ctor_set_uint8(v_reuseFailAlloc_5651_, sizeof(void*)*6, v_sentMessage_5625_); +lean_ctor_set_uint8(v_reuseFailAlloc_5651_, sizeof(void*)*6 + 1, v_userClosedBody_5626_); +lean_ctor_set_uint8(v_reuseFailAlloc_5651_, sizeof(void*)*6 + 2, v_omitBody_5627_); +v___x_5643_ = v_reuseFailAlloc_5651_; +goto v_reusejp_5642_; +} +v_reusejp_5642_: +{ +lean_object* v___x_5644_; lean_object* v___x_5646_; +v___x_5644_ = lean_box(0); +if (v_isShared_5640_ == 0) +{ +lean_ctor_set(v___x_5639_, 0, v___x_5644_); +v___x_5646_ = v___x_5639_; +goto v_reusejp_5645_; +} +else +{ +lean_object* v_reuseFailAlloc_5650_; +v_reuseFailAlloc_5650_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_5650_, 0, v___x_5644_); +lean_ctor_set(v_reuseFailAlloc_5650_, 1, v_input_5632_); +lean_ctor_set(v_reuseFailAlloc_5650_, 2, v_messageHead_5633_); +lean_ctor_set(v_reuseFailAlloc_5650_, 3, v_messageCount_5634_); +lean_ctor_set(v_reuseFailAlloc_5650_, 4, v_bodyBytesRead_5635_); +lean_ctor_set(v_reuseFailAlloc_5650_, 5, v_headerBytesRead_5636_); +lean_ctor_set_uint8(v_reuseFailAlloc_5650_, sizeof(void*)*6, v_noMoreInput_5637_); +v___x_5646_ = v_reuseFailAlloc_5650_; +goto v_reusejp_5645_; +} +v_reusejp_5645_: +{ +lean_object* v___x_5648_; +if (v_isShared_5620_ == 0) +{ +lean_ctor_set(v___x_5619_, 1, v___x_5643_); +lean_ctor_set(v___x_5619_, 0, v___x_5646_); +v___x_5648_ = v___x_5619_; +goto v_reusejp_5647_; +} +else +{ +lean_object* v_reuseFailAlloc_5649_; +v_reuseFailAlloc_5649_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5649_, 0, v___x_5646_); +lean_ctor_set(v_reuseFailAlloc_5649_, 1, v___x_5643_); +lean_ctor_set(v_reuseFailAlloc_5649_, 2, v_config_5611_); +lean_ctor_set(v_reuseFailAlloc_5649_, 3, v_events_5612_); +lean_ctor_set(v_reuseFailAlloc_5649_, 4, v_error_5613_); +lean_ctor_set(v_reuseFailAlloc_5649_, 5, v_instant_5614_); +lean_ctor_set_uint8(v_reuseFailAlloc_5649_, sizeof(void*)*6, v_keepAlive_5615_); +lean_ctor_set_uint8(v_reuseFailAlloc_5649_, sizeof(void*)*6 + 1, v_forcedFlush_5616_); +lean_ctor_set_uint8(v_reuseFailAlloc_5649_, sizeof(void*)*6 + 2, v_pullBodyStalled_5617_); +v___x_5648_ = v_reuseFailAlloc_5649_; +goto v_reusejp_5647_; +} +v_reusejp_5647_: +{ +return v___x_5648_; +} +} +} +} +} +} +} +} +v___jp_5657_: +{ +if (v___y_5660_ == 0) +{ +v___y_5575_ = v___y_5658_; +goto v___jp_5574_; +} +else +{ +if (v___y_5659_ == 0) +{ +return v___y_5658_; +} +else +{ +v___y_5575_ = v___y_5658_; +goto v___jp_5574_; +} +} +} +v___jp_5661_: +{ +lean_object* v_headerSize_5668_; lean_object* v_machine_5669_; lean_object* v_machine_5670_; lean_object* v_reader_5671_; lean_object* v_state_5672_; +v_headerSize_5668_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_5666_, v_message_5573_, v___y_5662_); +v_machine_5669_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_5663_, v_headerSize_5668_, v___y_5667_); +v_machine_5670_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_5571_, v_machine_5669_, v_message_5573_); +lean_dec(v_message_5573_); +v_reader_5671_ = lean_ctor_get(v_machine_5670_, 0); +lean_inc_ref(v_reader_5671_); +v_state_5672_ = lean_ctor_get(v_reader_5671_, 0); +lean_inc(v_state_5672_); +lean_dec_ref(v_reader_5671_); +if (lean_obj_tag(v_state_5672_) == 7) +{ +lean_dec_ref(v_state_5672_); +v___y_5658_ = v_machine_5670_; +v___y_5659_ = v___y_5664_; +v___y_5660_ = v___y_5665_; +goto v___jp_5657_; +} +else +{ +lean_dec(v_state_5672_); +v___y_5658_ = v_machine_5670_; +v___y_5659_ = v___y_5664_; +v___y_5660_ = v___y_5662_; +goto v___jp_5657_; +} +} +v___jp_5673_: +{ +lean_object* v___x_5679_; lean_object* v_indexes_5680_; lean_object* v___x_5681_; lean_object* v___f_5682_; lean_object* v___f_5683_; uint8_t v___x_5684_; +v___x_5679_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_5678_, v_message_5573_); +v_indexes_5680_ = lean_ctor_get(v___x_5679_, 1); +lean_inc_ref(v_indexes_5680_); +lean_dec_ref(v___x_5679_); +v___x_5681_ = l_Std_Http_Header_Name_contentLength; +v___f_5682_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_5683_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_5684_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_5682_, v___f_5683_, v_indexes_5680_, v___x_5681_); +if (v___x_5684_ == 0) +{ +lean_object* v___x_5685_; uint8_t v___x_5686_; +v___x_5685_ = l_Std_Http_Header_Name_transferEncoding; +v___x_5686_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_5682_, v___f_5683_, v_indexes_5680_, v___x_5685_); +lean_dec_ref(v_indexes_5680_); +v___y_5662_ = v___y_5674_; +v___y_5663_ = v___y_5675_; +v___y_5664_ = v___y_5676_; +v___y_5665_ = v___y_5677_; +v___y_5666_ = v___y_5678_; +v___y_5667_ = v___x_5686_; +goto v___jp_5661_; +} +else +{ +lean_dec_ref(v_indexes_5680_); +v___y_5662_ = v___y_5674_; +v___y_5663_ = v___y_5675_; +v___y_5664_ = v___y_5676_; +v___y_5665_ = v___y_5677_; +v___y_5666_ = v___y_5678_; +v___y_5667_ = v___x_5684_; +goto v___jp_5661_; +} +} +v_resetjp_5705_: +{ +uint8_t v___y_5709_; lean_object* v___y_5710_; uint8_t v___y_5719_; lean_object* v___y_5720_; lean_object* v___y_5721_; lean_object* v___y_5722_; lean_object* v___y_5723_; uint8_t v___y_5735_; lean_object* v___y_5736_; lean_object* v___y_5737_; lean_object* v___y_5738_; lean_object* v___y_5739_; lean_object* v___y_5740_; uint8_t v___y_5756_; uint8_t v___y_5757_; lean_object* v___y_5758_; lean_object* v___y_5766_; uint8_t v___y_5767_; lean_object* v___y_5768_; uint8_t v___y_5769_; lean_object* v___y_5770_; lean_object* v___y_5771_; uint8_t v___y_5783_; lean_object* v___y_5784_; uint8_t v___y_5785_; lean_object* v___y_5786_; lean_object* v___y_5787_; lean_object* v___y_5788_; lean_object* v___y_5789_; uint8_t v___y_5805_; uint8_t v___y_5806_; uint8_t v___y_5807_; uint8_t v___y_5813_; uint8_t v___y_5814_; uint8_t v___y_5817_; lean_object* v___x_5833_; uint8_t v___x_5834_; +v___x_5833_ = lean_box(1); +v___x_5834_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5698_, v___x_5833_); +if (v___x_5834_ == 0) +{ +v___y_5817_ = v___x_5834_; +goto v___jp_5816_; +} +else +{ +if (v_sentMessage_5701_ == 0) +{ +v___y_5817_ = v___x_5834_; +goto v___jp_5816_; +} +else +{ +lean_del_object(v___x_5706_); +lean_dec(v_userDataBytes_5704_); +lean_dec(v_messageHead_5700_); +lean_dec(v_knownSize_5699_); +lean_dec(v_state_5698_); +lean_dec_ref(v_outputData_5697_); +lean_dec_ref(v_userData_5696_); +lean_dec(v_message_5573_); +return v_machine_5572_; +} +} +v___jp_5708_: +{ +lean_object* v_message_5711_; lean_object* v___x_3211__overap_5712_; lean_object* v___x_5713_; lean_object* v___x_5715_; +v_message_5711_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_5709_, v_message_5573_, v___y_5710_); +v___x_3211__overap_5712_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_5709_); +v___x_5713_ = lean_apply_2(v___x_3211__overap_5712_, v_outputData_5697_, v_message_5711_); +if (v_isShared_5707_ == 0) +{ +lean_ctor_set(v___x_5706_, 1, v___x_5713_); +v___x_5715_ = v___x_5706_; +goto v_reusejp_5714_; +} +else +{ +lean_object* v_reuseFailAlloc_5717_; +v_reuseFailAlloc_5717_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5717_, 0, v_userData_5696_); +lean_ctor_set(v_reuseFailAlloc_5717_, 1, v___x_5713_); +lean_ctor_set(v_reuseFailAlloc_5717_, 2, v_state_5698_); +lean_ctor_set(v_reuseFailAlloc_5717_, 3, v_knownSize_5699_); +lean_ctor_set(v_reuseFailAlloc_5717_, 4, v_messageHead_5700_); +lean_ctor_set(v_reuseFailAlloc_5717_, 5, v_userDataBytes_5704_); +lean_ctor_set_uint8(v_reuseFailAlloc_5717_, sizeof(void*)*6, v_sentMessage_5701_); +lean_ctor_set_uint8(v_reuseFailAlloc_5717_, sizeof(void*)*6 + 1, v_userClosedBody_5702_); +lean_ctor_set_uint8(v_reuseFailAlloc_5717_, sizeof(void*)*6 + 2, v_omitBody_5703_); +v___x_5715_ = v_reuseFailAlloc_5717_; +goto v_reusejp_5714_; +} +v_reusejp_5714_: +{ +lean_object* v___x_5716_; +v___x_5716_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_5716_, 0, v_reader_5688_); +lean_ctor_set(v___x_5716_, 1, v___x_5715_); +lean_ctor_set(v___x_5716_, 2, v_config_5689_); +lean_ctor_set(v___x_5716_, 3, v_events_5690_); +lean_ctor_set(v___x_5716_, 4, v_error_5691_); +lean_ctor_set(v___x_5716_, 5, v_instant_5692_); +lean_ctor_set_uint8(v___x_5716_, sizeof(void*)*6, v_keepAlive_5693_); +lean_ctor_set_uint8(v___x_5716_, sizeof(void*)*6 + 1, v_forcedFlush_5694_); +lean_ctor_set_uint8(v___x_5716_, sizeof(void*)*6 + 2, v_pullBodyStalled_5695_); +return v___x_5716_; +} +} +v___jp_5718_: +{ +lean_object* v___x_5724_; lean_object* v___x_5725_; uint8_t v___x_5726_; +v___x_5724_ = lean_array_get_size(v___y_5723_); +v___x_5725_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_5726_ = lean_nat_dec_lt(v___y_5722_, v___x_5724_); +if (v___x_5726_ == 0) { -lean_object* v_headerSize_5726_; lean_object* v_machine_5727_; lean_object* v_machine_5728_; lean_object* v_reader_5729_; lean_object* v_state_5730_; -v_headerSize_5726_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_5724_, v___y_5723_, v___y_5721_); -v_machine_5727_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_5720_, v_headerSize_5726_, v___y_5725_); -v_machine_5728_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v___x_5716_, v_machine_5727_, v___y_5723_); lean_dec_ref(v___y_5723_); -v_reader_5729_ = lean_ctor_get(v_machine_5728_, 0); -lean_inc_ref(v_reader_5729_); -v_state_5730_ = lean_ctor_get(v_reader_5729_, 0); -lean_inc(v_state_5730_); -lean_dec_ref(v_reader_5729_); -if (lean_obj_tag(v_state_5730_) == 7) -{ -lean_dec_ref(v_state_5730_); -v___y_5649_ = v___y_5719_; -v___y_5650_ = v_machine_5728_; -v___y_5651_ = v___y_5722_; -v___y_5652_ = v___y_5718_; -goto v___jp_5648_; +v___y_5709_ = v___y_5719_; +v___y_5710_ = v___y_5720_; +goto v___jp_5708_; } else { -lean_dec(v_state_5730_); -v___y_5649_ = v___y_5719_; -v___y_5650_ = v_machine_5728_; -v___y_5651_ = v___y_5722_; -v___y_5652_ = v___y_5721_; -goto v___jp_5648_; -} -} -v___jp_5731_: +uint8_t v___x_5727_; +v___x_5727_ = lean_nat_dec_le(v___x_5724_, v___x_5724_); +if (v___x_5727_ == 0) { -uint8_t v___x_5737_; lean_object* v___x_5738_; lean_object* v_indexes_5739_; lean_object* v___x_5740_; lean_object* v_machine_5741_; lean_object* v___x_5742_; uint8_t v___x_5743_; -v___x_5737_ = 1; -v___x_5738_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_5737_, v___y_5735_); -v_indexes_5739_ = lean_ctor_get(v___x_5738_, 1); -lean_inc_ref(v_indexes_5739_); -lean_dec_ref(v___x_5738_); -lean_inc_ref(v___y_5735_); -v___x_5740_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_5740_, 0, v_userData_5681_); -lean_ctor_set(v___x_5740_, 1, v_outputData_5682_); -lean_ctor_set(v___x_5740_, 2, v_state_5683_); -lean_ctor_set(v___x_5740_, 3, v_knownSize_5684_); -lean_ctor_set(v___x_5740_, 4, v___y_5735_); -lean_ctor_set(v___x_5740_, 5, v_userDataBytes_5689_); -lean_ctor_set_uint8(v___x_5740_, sizeof(void*)*6, v___y_5733_); -lean_ctor_set_uint8(v___x_5740_, sizeof(void*)*6 + 1, v_userClosedBody_5687_); -lean_ctor_set_uint8(v___x_5740_, sizeof(void*)*6 + 2, v_omitBody_5688_); -v_machine_5741_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_machine_5741_, 0, v_reader_5670_); -lean_ctor_set(v_machine_5741_, 1, v___x_5740_); -lean_ctor_set(v_machine_5741_, 2, v_config_5671_); -lean_ctor_set(v_machine_5741_, 3, v_events_5672_); -lean_ctor_set(v_machine_5741_, 4, v_error_5673_); -lean_ctor_set(v_machine_5741_, 5, v_instant_5674_); -lean_ctor_set_uint8(v_machine_5741_, sizeof(void*)*6, v_keepAlive_5675_); -lean_ctor_set_uint8(v_machine_5741_, sizeof(void*)*6 + 1, v_forcedFlush_5676_); -lean_ctor_set_uint8(v_machine_5741_, sizeof(void*)*6 + 2, v_pullBodyStalled_5677_); -v___x_5742_ = l_Std_Http_Header_Name_contentLength; -v___x_5743_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_5739_, v___x_5742_); -if (v___x_5743_ == 0) +if (v___x_5726_ == 0) { -lean_object* v___x_5744_; uint8_t v___x_5745_; -v___x_5744_ = l_Std_Http_Header_Name_transferEncoding; -v___x_5745_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_5739_, v___x_5744_); -lean_dec_ref(v_indexes_5739_); -v___y_5718_ = v___y_5733_; -v___y_5719_ = v___y_5732_; -v___y_5720_ = v_machine_5741_; -v___y_5721_ = v___y_5734_; -v___y_5722_ = v___y_5736_; -v___y_5723_ = v___y_5735_; -v___y_5724_ = v___x_5737_; -v___y_5725_ = v___x_5745_; -goto v___jp_5717_; +lean_dec_ref(v___y_5723_); +v___y_5709_ = v___y_5719_; +v___y_5710_ = v___y_5720_; +goto v___jp_5708_; } else { -lean_dec_ref(v_indexes_5739_); -v___y_5718_ = v___y_5733_; -v___y_5719_ = v___y_5732_; -v___y_5720_ = v_machine_5741_; -v___y_5721_ = v___y_5734_; -v___y_5722_ = v___y_5736_; -v___y_5723_ = v___y_5735_; -v___y_5724_ = v___x_5737_; -v___y_5725_ = v___x_5743_; -goto v___jp_5717_; +size_t v___x_5728_; size_t v___x_5729_; lean_object* v___x_5730_; +v___x_5728_ = ((size_t)0ULL); +v___x_5729_ = lean_usize_of_nat(v___x_5724_); +lean_inc_ref(v___y_5721_); +v___x_5730_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5725_, v___y_5721_, v___y_5723_, v___x_5728_, v___x_5729_, v___y_5720_); +v___y_5709_ = v___y_5719_; +v___y_5710_ = v___x_5730_; +goto v___jp_5708_; } } -v___jp_5746_: -{ -lean_object* v_state_5751_; -v_state_5751_ = lean_ctor_get(v_reader_5670_, 0); -if (lean_obj_tag(v_state_5751_) == 7) -{ -v___y_5732_ = v___y_5748_; -v___y_5733_ = v___y_5747_; -v___y_5734_ = v___y_5750_; -v___y_5735_ = v___y_5749_; -v___y_5736_ = v___y_5747_; -goto v___jp_5731_; -} else { -v___y_5732_ = v___y_5748_; -v___y_5733_ = v___y_5747_; -v___y_5734_ = v___y_5750_; -v___y_5735_ = v___y_5749_; -v___y_5736_ = v___y_5750_; -goto v___jp_5731_; +size_t v___x_5731_; size_t v___x_5732_; lean_object* v___x_5733_; +v___x_5731_ = ((size_t)0ULL); +v___x_5732_ = lean_usize_of_nat(v___x_5724_); +lean_inc_ref(v___y_5721_); +v___x_5733_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5725_, v___y_5721_, v___y_5723_, v___x_5731_, v___x_5732_, v___y_5720_); +v___y_5709_ = v___y_5719_; +v___y_5710_ = v___x_5733_; +goto v___jp_5708_; } } -v___jp_5752_: +} +v___jp_5734_: { -if (v___y_5755_ == 0) +lean_object* v_entries_5741_; lean_object* v___x_5742_; lean_object* v___x_5743_; lean_object* v___x_5744_; lean_object* v___x_5745_; lean_object* v___x_5746_; uint8_t v___x_5747_; +v_entries_5741_ = lean_ctor_get(v___y_5738_, 0); +lean_inc_ref(v_entries_5741_); +lean_dec_ref(v___y_5738_); +v___x_5742_ = l_Std_Internal_IndexMultiMap_empty(lean_box(0), lean_box(0), v___y_5737_, v___y_5736_); +lean_dec_ref(v___y_5736_); +lean_dec_ref(v___y_5737_); +v___x_5743_ = lean_unsigned_to_nat(0u); +v___x_5744_ = lean_array_get_size(v_entries_5741_); +v___x_5745_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_5746_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_5747_ = lean_nat_dec_lt(v___x_5743_, v___x_5744_); +if (v___x_5747_ == 0) { -lean_dec_ref(v___y_5754_); -lean_dec(v_status_5595_); -v___y_5597_ = v___y_5753_; -v_reader_5598_ = v_reader_5670_; -v_userData_5599_ = v_userData_5681_; -v_outputData_5600_ = v_outputData_5682_; -v_state_5601_ = v_state_5683_; -v_knownSize_5602_ = v_knownSize_5684_; -v_messageHead_5603_ = v_messageHead_5685_; -v_sentMessage_5604_ = v_sentMessage_5686_; -v_omitBody_5605_ = v_omitBody_5688_; -v_userDataBytes_5606_ = v_userDataBytes_5689_; -v_config_5607_ = v_config_5671_; -v_events_5608_ = v_events_5672_; -v_error_5609_ = v_error_5673_; -v_instant_5610_ = v_instant_5674_; -v_keepAlive_5611_ = v_keepAlive_5675_; -v_forcedFlush_5612_ = v_forcedFlush_5676_; -goto v___jp_5596_; +lean_dec_ref(v_entries_5741_); +v___y_5719_ = v___y_5735_; +v___y_5720_ = v___x_5742_; +v___y_5721_ = v___y_5740_; +v___y_5722_ = v___x_5743_; +v___y_5723_ = v___x_5745_; +goto v___jp_5718_; } else { -uint8_t v___x_5756_; uint16_t v___x_5757_; uint16_t v___x_5758_; uint8_t v___x_5759_; -v___x_5756_ = 0; -v___x_5757_ = 100; -v___x_5758_ = l_Std_Http_Status_toCode(v_status_5595_); -lean_dec(v_status_5595_); -v___x_5759_ = lean_uint16_dec_le(v___x_5757_, v___x_5758_); -if (v___x_5759_ == 0) +uint8_t v___x_5748_; +v___x_5748_ = lean_nat_dec_le(v___x_5744_, v___x_5744_); +if (v___x_5748_ == 0) { -lean_dec(v_messageHead_5685_); -v___y_5747_ = v___y_5755_; -v___y_5748_ = v___y_5753_; -v___y_5749_ = v___y_5754_; -v___y_5750_ = v___x_5756_; -goto v___jp_5746_; +if (v___x_5747_ == 0) +{ +lean_dec_ref(v_entries_5741_); +v___y_5719_ = v___y_5735_; +v___y_5720_ = v___x_5742_; +v___y_5721_ = v___y_5740_; +v___y_5722_ = v___x_5743_; +v___y_5723_ = v___x_5745_; +goto v___jp_5718_; } else { -uint16_t v___x_5760_; uint8_t v___x_5761_; -v___x_5760_ = 200; -v___x_5761_ = lean_uint16_dec_lt(v___x_5758_, v___x_5760_); -if (v___x_5761_ == 0) -{ -lean_dec(v_messageHead_5685_); -v___y_5747_ = v___y_5755_; -v___y_5748_ = v___y_5753_; -v___y_5749_ = v___y_5754_; -v___y_5750_ = v___x_5756_; -goto v___jp_5746_; +size_t v___x_5749_; size_t v___x_5750_; lean_object* v___x_5751_; +v___x_5749_ = ((size_t)0ULL); +v___x_5750_ = lean_usize_of_nat(v___x_5744_); +lean_inc_ref(v___y_5739_); +v___x_5751_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5746_, v___y_5739_, v_entries_5741_, v___x_5749_, v___x_5750_, v___x_5745_); +v___y_5719_ = v___y_5735_; +v___y_5720_ = v___x_5742_; +v___y_5721_ = v___y_5740_; +v___y_5722_ = v___x_5743_; +v___y_5723_ = v___x_5751_; +goto v___jp_5718_; +} } else { -uint8_t v___x_5762_; lean_object* v___x_762__overap_5763_; lean_object* v___x_5764_; -v___x_5762_ = 1; -v___x_762__overap_5763_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___x_5762_); -v___x_5764_ = lean_apply_2(v___x_762__overap_5763_, v_outputData_5682_, v___y_5754_); -v___y_5597_ = v___y_5753_; -v_reader_5598_ = v_reader_5670_; -v_userData_5599_ = v_userData_5681_; -v_outputData_5600_ = v___x_5764_; -v_state_5601_ = v_state_5683_; -v_knownSize_5602_ = v_knownSize_5684_; -v_messageHead_5603_ = v_messageHead_5685_; -v_sentMessage_5604_ = v_sentMessage_5686_; -v_omitBody_5605_ = v_omitBody_5688_; -v_userDataBytes_5606_ = v_userDataBytes_5689_; -v_config_5607_ = v_config_5671_; -v_events_5608_ = v_events_5672_; -v_error_5609_ = v_error_5673_; -v_instant_5610_ = v_instant_5674_; -v_keepAlive_5611_ = v_keepAlive_5675_; -v_forcedFlush_5612_ = v_forcedFlush_5676_; -goto v___jp_5596_; +size_t v___x_5752_; size_t v___x_5753_; lean_object* v___x_5754_; +v___x_5752_ = ((size_t)0ULL); +v___x_5753_ = lean_usize_of_nat(v___x_5744_); +lean_inc_ref(v___y_5739_); +v___x_5754_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5746_, v___y_5739_, v_entries_5741_, v___x_5752_, v___x_5753_, v___x_5745_); +v___y_5719_ = v___y_5735_; +v___y_5720_ = v___x_5742_; +v___y_5721_ = v___y_5740_; +v___y_5722_ = v___x_5743_; +v___y_5723_ = v___x_5754_; +goto v___jp_5718_; } } } +v___jp_5755_: +{ +lean_object* v___x_5759_; lean_object* v___f_5760_; lean_object* v___f_5761_; lean_object* v___f_5762_; lean_object* v___f_5763_; uint8_t v___x_5764_; +v___x_5759_ = l_Std_Http_Header_Name_transferEncoding; +v___f_5760_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__4, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__4_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__4); +v___f_5761_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_5762_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___f_5763_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__1)); +v___x_5764_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_5761_, v___f_5762_, v___x_5759_, v___y_5758_); +if (v___x_5764_ == 0) +{ +if (v___y_5757_ == 0) +{ +v___y_5735_ = v___y_5756_; +v___y_5736_ = v___f_5762_; +v___y_5737_ = v___f_5761_; +v___y_5738_ = v___y_5758_; +v___y_5739_ = v___f_5760_; +v___y_5740_ = v___f_5763_; +goto v___jp_5734_; +} +else +{ +v___y_5709_ = v___y_5756_; +v___y_5710_ = v___y_5758_; +goto v___jp_5708_; +} +} +else +{ +v___y_5735_ = v___y_5756_; +v___y_5736_ = v___f_5762_; +v___y_5737_ = v___f_5761_; +v___y_5738_ = v___y_5758_; +v___y_5739_ = v___f_5760_; +v___y_5740_ = v___f_5763_; +goto v___jp_5734_; +} } v___jp_5765_: { -if (v___y_5766_ == 0) +lean_object* v___x_5772_; lean_object* v___x_5773_; uint8_t v___x_5774_; +v___x_5772_ = lean_array_get_size(v___y_5771_); +v___x_5773_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_5774_ = lean_nat_dec_lt(v___y_5768_, v___x_5772_); +if (v___x_5774_ == 0) { -lean_dec(v_state_5683_); -lean_dec(v_status_5595_); -v___y_5694_ = v___y_5766_; -goto v___jp_5693_; +lean_dec_ref(v___y_5771_); +v___y_5756_ = v___y_5767_; +v___y_5757_ = v___y_5769_; +v___y_5758_ = v___y_5770_; +goto v___jp_5755_; } else { -lean_object* v___x_5767_; lean_object* v_entries_5768_; lean_object* v_indexes_5769_; lean_object* v___x_5770_; lean_object* v___x_5771_; uint8_t v___x_5772_; lean_object* v_entries_5773_; lean_object* v_indexes_5774_; lean_object* v___x_5775_; lean_object* v___x_5776_; lean_object* v___x_5777_; uint8_t v___x_5778_; -lean_del_object(v___x_5691_); -lean_del_object(v___x_5679_); -v___x_5767_ = l_Std_Http_Headers_empty; -v_entries_5768_ = lean_ctor_get(v___x_5767_, 0); -v_indexes_5769_ = lean_ctor_get(v___x_5767_, 1); -v___x_5770_ = l_Std_Http_Header_Name_connection; -v___x_5771_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61); -v___x_5772_ = 1; -lean_inc_ref(v_entries_5768_); -v_entries_5773_ = lean_array_push(v_entries_5768_, v___x_5771_); -lean_inc_ref(v_indexes_5769_); -v_indexes_5774_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0(v_indexes_5769_, v___x_5770_); -v___x_5775_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5775_, 0, v_entries_5773_); -lean_ctor_set(v___x_5775_, 1, v_indexes_5774_); -lean_inc(v_status_5595_); -v___x_5776_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_5776_, 0, v_status_5595_); -lean_ctor_set(v___x_5776_, 1, v___x_5775_); -lean_ctor_set_uint8(v___x_5776_, sizeof(void*)*2, v___x_5772_); -v___x_5777_ = lean_box(1); -v___x_5778_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5683_, v___x_5777_); -if (v___x_5778_ == 0) +uint8_t v___x_5775_; +v___x_5775_ = lean_nat_dec_le(v___x_5772_, v___x_5772_); +if (v___x_5775_ == 0) { -v___y_5753_ = v___y_5766_; -v___y_5754_ = v___x_5776_; -v___y_5755_ = v___x_5778_; -goto v___jp_5752_; +if (v___x_5774_ == 0) +{ +lean_dec_ref(v___y_5771_); +v___y_5756_ = v___y_5767_; +v___y_5757_ = v___y_5769_; +v___y_5758_ = v___y_5770_; +goto v___jp_5755_; } else { -if (v_sentMessage_5686_ == 0) -{ -v___y_5753_ = v___y_5766_; -v___y_5754_ = v___x_5776_; -v___y_5755_ = v___x_5778_; -goto v___jp_5752_; +size_t v___x_5776_; size_t v___x_5777_; lean_object* v___x_5778_; +v___x_5776_ = ((size_t)0ULL); +v___x_5777_ = lean_usize_of_nat(v___x_5772_); +lean_inc_ref(v___y_5766_); +v___x_5778_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5773_, v___y_5766_, v___y_5771_, v___x_5776_, v___x_5777_, v___y_5770_); +v___y_5756_ = v___y_5767_; +v___y_5757_ = v___y_5769_; +v___y_5758_ = v___x_5778_; +goto v___jp_5755_; +} } else { -lean_dec_ref(v___x_5776_); -lean_dec(v_status_5595_); -v___y_5597_ = v___y_5766_; -v_reader_5598_ = v_reader_5670_; -v_userData_5599_ = v_userData_5681_; -v_outputData_5600_ = v_outputData_5682_; -v_state_5601_ = v_state_5683_; -v_knownSize_5602_ = v_knownSize_5684_; -v_messageHead_5603_ = v_messageHead_5685_; -v_sentMessage_5604_ = v_sentMessage_5686_; -v_omitBody_5605_ = v_omitBody_5688_; -v_userDataBytes_5606_ = v_userDataBytes_5689_; -v_config_5607_ = v_config_5671_; -v_events_5608_ = v_events_5672_; -v_error_5609_ = v_error_5673_; -v_instant_5610_ = v_instant_5674_; -v_keepAlive_5611_ = v_keepAlive_5675_; -v_forcedFlush_5612_ = v_forcedFlush_5676_; -goto v___jp_5596_; +size_t v___x_5779_; size_t v___x_5780_; lean_object* v___x_5781_; +v___x_5779_ = ((size_t)0ULL); +v___x_5780_ = lean_usize_of_nat(v___x_5772_); +lean_inc_ref(v___y_5766_); +v___x_5781_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5773_, v___y_5766_, v___y_5771_, v___x_5779_, v___x_5780_, v___y_5770_); +v___y_5756_ = v___y_5767_; +v___y_5757_ = v___y_5769_; +v___y_5758_ = v___x_5781_; +goto v___jp_5755_; } } } -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0(lean_object* v_x1_5784_, lean_object* v_x2_5785_){ -_start: +v___jp_5782_: { -lean_object* v_data_5786_; lean_object* v___x_5787_; lean_object* v___x_5788_; -v_data_5786_ = lean_ctor_get(v_x2_5785_, 0); -v___x_5787_ = lean_byte_array_size(v_data_5786_); -v___x_5788_ = lean_nat_add(v_x1_5784_, v___x_5787_); -return v___x_5788_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0___boxed(lean_object* v_x1_5789_, lean_object* v_x2_5790_){ -_start: +lean_object* v_entries_5790_; lean_object* v___x_5791_; lean_object* v___x_5792_; lean_object* v___x_5793_; lean_object* v___x_5794_; lean_object* v___x_5795_; uint8_t v___x_5796_; +v_entries_5790_ = lean_ctor_get(v___y_5786_, 0); +lean_inc_ref(v_entries_5790_); +lean_dec_ref(v___y_5786_); +v___x_5791_ = l_Std_Internal_IndexMultiMap_empty(lean_box(0), lean_box(0), v___y_5788_, v___y_5787_); +lean_dec_ref(v___y_5787_); +lean_dec_ref(v___y_5788_); +v___x_5792_ = lean_unsigned_to_nat(0u); +v___x_5793_ = lean_array_get_size(v_entries_5790_); +v___x_5794_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_5795_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_5796_ = lean_nat_dec_lt(v___x_5792_, v___x_5793_); +if (v___x_5796_ == 0) { -lean_object* v_res_5791_; -v_res_5791_ = l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0(v_x1_5789_, v_x2_5790_); -lean_dec_ref(v_x2_5790_); -lean_dec(v_x1_5789_); -return v_res_5791_; +lean_dec_ref(v_entries_5790_); +v___y_5766_ = v___y_5784_; +v___y_5767_ = v___y_5783_; +v___y_5768_ = v___x_5792_; +v___y_5769_ = v___y_5785_; +v___y_5770_ = v___x_5791_; +v___y_5771_ = v___x_5794_; +goto v___jp_5765_; } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg(lean_object* v_machine_5793_, lean_object* v_data_5794_){ -_start: +else { -lean_object* v___x_5795_; lean_object* v___x_5796_; uint8_t v___x_5797_; -v___x_5795_ = lean_array_get_size(v_data_5794_); -v___x_5796_ = lean_unsigned_to_nat(0u); -v___x_5797_ = lean_nat_dec_eq(v___x_5795_, v___x_5796_); +uint8_t v___x_5797_; +v___x_5797_ = lean_nat_dec_le(v___x_5793_, v___x_5793_); if (v___x_5797_ == 0) { -lean_object* v_reader_5798_; lean_object* v_writer_5799_; lean_object* v_config_5800_; lean_object* v_events_5801_; lean_object* v_error_5802_; lean_object* v_instant_5803_; uint8_t v_keepAlive_5804_; uint8_t v_forcedFlush_5805_; uint8_t v_pullBodyStalled_5806_; lean_object* v___x_5808_; uint8_t v_isShared_5809_; uint8_t v_isSharedCheck_5843_; -v_reader_5798_ = lean_ctor_get(v_machine_5793_, 0); -v_writer_5799_ = lean_ctor_get(v_machine_5793_, 1); -v_config_5800_ = lean_ctor_get(v_machine_5793_, 2); -v_events_5801_ = lean_ctor_get(v_machine_5793_, 3); -v_error_5802_ = lean_ctor_get(v_machine_5793_, 4); -v_instant_5803_ = lean_ctor_get(v_machine_5793_, 5); -v_keepAlive_5804_ = lean_ctor_get_uint8(v_machine_5793_, sizeof(void*)*6); -v_forcedFlush_5805_ = lean_ctor_get_uint8(v_machine_5793_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5806_ = lean_ctor_get_uint8(v_machine_5793_, sizeof(void*)*6 + 2); -v_isSharedCheck_5843_ = !lean_is_exclusive(v_machine_5793_); -if (v_isSharedCheck_5843_ == 0) +if (v___x_5796_ == 0) { -v___x_5808_ = v_machine_5793_; -v_isShared_5809_ = v_isSharedCheck_5843_; -goto v_resetjp_5807_; +lean_dec_ref(v_entries_5790_); +v___y_5766_ = v___y_5784_; +v___y_5767_ = v___y_5783_; +v___y_5768_ = v___x_5792_; +v___y_5769_ = v___y_5785_; +v___y_5770_ = v___x_5791_; +v___y_5771_ = v___x_5794_; +goto v___jp_5765_; } else { -lean_inc(v_instant_5803_); -lean_inc(v_error_5802_); -lean_inc(v_events_5801_); -lean_inc(v_config_5800_); -lean_inc(v_writer_5799_); -lean_inc(v_reader_5798_); -lean_dec(v_machine_5793_); -v___x_5808_ = lean_box(0); -v_isShared_5809_ = v_isSharedCheck_5843_; -goto v_resetjp_5807_; -} -v_resetjp_5807_: -{ -lean_object* v___y_5811_; lean_object* v___x_5833_; uint8_t v___x_5834_; -v___x_5833_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); -v___x_5834_ = lean_nat_dec_lt(v___x_5796_, v___x_5795_); -if (v___x_5834_ == 0) -{ -v___y_5811_ = v___x_5796_; -goto v___jp_5810_; -} -else -{ -lean_object* v___f_5835_; uint8_t v___x_5836_; -v___f_5835_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_sendData___redArg___closed__0)); -v___x_5836_ = lean_nat_dec_le(v___x_5795_, v___x_5795_); -if (v___x_5836_ == 0) -{ -if (v___x_5834_ == 0) -{ -v___y_5811_ = v___x_5796_; -goto v___jp_5810_; -} -else -{ -size_t v___x_5837_; size_t v___x_5838_; lean_object* v___x_5839_; -v___x_5837_ = ((size_t)0ULL); -v___x_5838_ = lean_usize_of_nat(v___x_5795_); -lean_inc_ref(v_data_5794_); -v___x_5839_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5833_, v___f_5835_, v_data_5794_, v___x_5837_, v___x_5838_, v___x_5796_); -v___y_5811_ = v___x_5839_; -goto v___jp_5810_; +size_t v___x_5798_; size_t v___x_5799_; lean_object* v___x_5800_; +v___x_5798_ = ((size_t)0ULL); +v___x_5799_ = lean_usize_of_nat(v___x_5793_); +lean_inc_ref(v___y_5789_); +v___x_5800_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5795_, v___y_5789_, v_entries_5790_, v___x_5798_, v___x_5799_, v___x_5794_); +v___y_5766_ = v___y_5784_; +v___y_5767_ = v___y_5783_; +v___y_5768_ = v___x_5792_; +v___y_5769_ = v___y_5785_; +v___y_5770_ = v___x_5791_; +v___y_5771_ = v___x_5800_; +goto v___jp_5765_; } } else { -size_t v___x_5840_; size_t v___x_5841_; lean_object* v___x_5842_; -v___x_5840_ = ((size_t)0ULL); -v___x_5841_ = lean_usize_of_nat(v___x_5795_); -lean_inc_ref(v_data_5794_); -v___x_5842_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5833_, v___f_5835_, v_data_5794_, v___x_5840_, v___x_5841_, v___x_5796_); -v___y_5811_ = v___x_5842_; -goto v___jp_5810_; +size_t v___x_5801_; size_t v___x_5802_; lean_object* v___x_5803_; +v___x_5801_ = ((size_t)0ULL); +v___x_5802_ = lean_usize_of_nat(v___x_5793_); +lean_inc_ref(v___y_5789_); +v___x_5803_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5795_, v___y_5789_, v_entries_5790_, v___x_5801_, v___x_5802_, v___x_5794_); +v___y_5766_ = v___y_5784_; +v___y_5767_ = v___y_5783_; +v___y_5768_ = v___x_5792_; +v___y_5769_ = v___y_5785_; +v___y_5770_ = v___x_5791_; +v___y_5771_ = v___x_5803_; +goto v___jp_5765_; } } -v___jp_5810_: +} +v___jp_5804_: { -lean_object* v_userData_5812_; lean_object* v_outputData_5813_; lean_object* v_state_5814_; lean_object* v_knownSize_5815_; lean_object* v_messageHead_5816_; uint8_t v_sentMessage_5817_; uint8_t v_userClosedBody_5818_; uint8_t v_omitBody_5819_; lean_object* v_userDataBytes_5820_; lean_object* v___x_5822_; uint8_t v_isShared_5823_; uint8_t v_isSharedCheck_5832_; -v_userData_5812_ = lean_ctor_get(v_writer_5799_, 0); -v_outputData_5813_ = lean_ctor_get(v_writer_5799_, 1); -v_state_5814_ = lean_ctor_get(v_writer_5799_, 2); -v_knownSize_5815_ = lean_ctor_get(v_writer_5799_, 3); -v_messageHead_5816_ = lean_ctor_get(v_writer_5799_, 4); -v_sentMessage_5817_ = lean_ctor_get_uint8(v_writer_5799_, sizeof(void*)*6); -v_userClosedBody_5818_ = lean_ctor_get_uint8(v_writer_5799_, sizeof(void*)*6 + 1); -v_omitBody_5819_ = lean_ctor_get_uint8(v_writer_5799_, sizeof(void*)*6 + 2); -v_userDataBytes_5820_ = lean_ctor_get(v_writer_5799_, 5); -v_isSharedCheck_5832_ = !lean_is_exclusive(v_writer_5799_); -if (v_isSharedCheck_5832_ == 0) +lean_object* v___x_5808_; lean_object* v_machine_5809_; +lean_inc(v_message_5573_); +v___x_5808_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_5808_, 0, v_userData_5696_); +lean_ctor_set(v___x_5808_, 1, v_outputData_5697_); +lean_ctor_set(v___x_5808_, 2, v_state_5698_); +lean_ctor_set(v___x_5808_, 3, v_knownSize_5699_); +lean_ctor_set(v___x_5808_, 4, v_message_5573_); +lean_ctor_set(v___x_5808_, 5, v_userDataBytes_5704_); +lean_ctor_set_uint8(v___x_5808_, sizeof(void*)*6, v___y_5806_); +lean_ctor_set_uint8(v___x_5808_, sizeof(void*)*6 + 1, v_userClosedBody_5702_); +lean_ctor_set_uint8(v___x_5808_, sizeof(void*)*6 + 2, v_omitBody_5703_); +v_machine_5809_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_5809_, 0, v_reader_5688_); +lean_ctor_set(v_machine_5809_, 1, v___x_5808_); +lean_ctor_set(v_machine_5809_, 2, v_config_5689_); +lean_ctor_set(v_machine_5809_, 3, v_events_5690_); +lean_ctor_set(v_machine_5809_, 4, v_error_5691_); +lean_ctor_set(v_machine_5809_, 5, v_instant_5692_); +lean_ctor_set_uint8(v_machine_5809_, sizeof(void*)*6, v_keepAlive_5693_); +lean_ctor_set_uint8(v_machine_5809_, sizeof(void*)*6 + 1, v_forcedFlush_5694_); +lean_ctor_set_uint8(v_machine_5809_, sizeof(void*)*6 + 2, v_pullBodyStalled_5695_); +if (v_dir_5571_ == 0) { -v___x_5822_ = v_writer_5799_; -v_isShared_5823_ = v_isSharedCheck_5832_; -goto v_resetjp_5821_; +uint8_t v___x_5810_; +v___x_5810_ = 1; +v___y_5674_ = v___y_5805_; +v___y_5675_ = v_machine_5809_; +v___y_5676_ = v___y_5807_; +v___y_5677_ = v___y_5806_; +v___y_5678_ = v___x_5810_; +goto v___jp_5673_; } else { -lean_inc(v_userDataBytes_5820_); -lean_inc(v_messageHead_5816_); -lean_inc(v_knownSize_5815_); -lean_inc(v_state_5814_); -lean_inc(v_outputData_5813_); -lean_inc(v_userData_5812_); -lean_dec(v_writer_5799_); -v___x_5822_ = lean_box(0); -v_isShared_5823_ = v_isSharedCheck_5832_; -goto v_resetjp_5821_; +uint8_t v___x_5811_; +v___x_5811_ = 0; +v___y_5674_ = v___y_5805_; +v___y_5675_ = v_machine_5809_; +v___y_5676_ = v___y_5807_; +v___y_5677_ = v___y_5806_; +v___y_5678_ = v___x_5811_; +goto v___jp_5673_; } -v_resetjp_5821_: +} +v___jp_5812_: { -lean_object* v___x_5824_; lean_object* v___x_5825_; lean_object* v___x_5827_; -v___x_5824_ = l_Array_append___redArg(v_userData_5812_, v_data_5794_); -lean_dec_ref(v_data_5794_); -v___x_5825_ = lean_nat_add(v_userDataBytes_5820_, v___y_5811_); -lean_dec(v___y_5811_); -lean_dec(v_userDataBytes_5820_); -if (v_isShared_5823_ == 0) +lean_object* v_state_5815_; +v_state_5815_ = lean_ctor_get(v_reader_5688_, 0); +if (lean_obj_tag(v_state_5815_) == 7) { -lean_ctor_set(v___x_5822_, 5, v___x_5825_); -lean_ctor_set(v___x_5822_, 0, v___x_5824_); -v___x_5827_ = v___x_5822_; -goto v_reusejp_5826_; +v___y_5805_ = v___y_5814_; +v___y_5806_ = v___y_5813_; +v___y_5807_ = v___y_5813_; +goto v___jp_5804_; } else { -lean_object* v_reuseFailAlloc_5831_; -v_reuseFailAlloc_5831_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5831_, 0, v___x_5824_); -lean_ctor_set(v_reuseFailAlloc_5831_, 1, v_outputData_5813_); -lean_ctor_set(v_reuseFailAlloc_5831_, 2, v_state_5814_); -lean_ctor_set(v_reuseFailAlloc_5831_, 3, v_knownSize_5815_); -lean_ctor_set(v_reuseFailAlloc_5831_, 4, v_messageHead_5816_); -lean_ctor_set(v_reuseFailAlloc_5831_, 5, v___x_5825_); -lean_ctor_set_uint8(v_reuseFailAlloc_5831_, sizeof(void*)*6, v_sentMessage_5817_); -lean_ctor_set_uint8(v_reuseFailAlloc_5831_, sizeof(void*)*6 + 1, v_userClosedBody_5818_); -lean_ctor_set_uint8(v_reuseFailAlloc_5831_, sizeof(void*)*6 + 2, v_omitBody_5819_); -v___x_5827_ = v_reuseFailAlloc_5831_; -goto v_reusejp_5826_; +v___y_5805_ = v___y_5814_; +v___y_5806_ = v___y_5813_; +v___y_5807_ = v___y_5814_; +goto v___jp_5804_; } -v_reusejp_5826_: +} +v___jp_5816_: { -lean_object* v___x_5829_; -if (v_isShared_5809_ == 0) +if (v___y_5817_ == 0) { -lean_ctor_set(v___x_5808_, 1, v___x_5827_); -v___x_5829_ = v___x_5808_; -goto v_reusejp_5828_; +lean_del_object(v___x_5706_); +lean_dec(v_userDataBytes_5704_); +lean_dec(v_messageHead_5700_); +lean_dec(v_knownSize_5699_); +lean_dec(v_state_5698_); +lean_dec_ref(v_outputData_5697_); +lean_dec_ref(v_userData_5696_); +lean_dec(v_message_5573_); +return v_machine_5572_; } else { -lean_object* v_reuseFailAlloc_5830_; -v_reuseFailAlloc_5830_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5830_, 0, v_reader_5798_); -lean_ctor_set(v_reuseFailAlloc_5830_, 1, v___x_5827_); -lean_ctor_set(v_reuseFailAlloc_5830_, 2, v_config_5800_); -lean_ctor_set(v_reuseFailAlloc_5830_, 3, v_events_5801_); -lean_ctor_set(v_reuseFailAlloc_5830_, 4, v_error_5802_); -lean_ctor_set(v_reuseFailAlloc_5830_, 5, v_instant_5803_); -lean_ctor_set_uint8(v_reuseFailAlloc_5830_, sizeof(void*)*6, v_keepAlive_5804_); -lean_ctor_set_uint8(v_reuseFailAlloc_5830_, sizeof(void*)*6 + 1, v_forcedFlush_5805_); -lean_ctor_set_uint8(v_reuseFailAlloc_5830_, sizeof(void*)*6 + 2, v_pullBodyStalled_5806_); -v___x_5829_ = v_reuseFailAlloc_5830_; -goto v_reusejp_5828_; -} -v_reusejp_5828_: +uint8_t v___x_5818_; +lean_inc(v_instant_5692_); +lean_inc(v_error_5691_); +lean_inc_ref(v_events_5690_); +lean_inc_ref(v_config_5689_); +lean_inc_ref(v_reader_5688_); +lean_dec_ref(v_machine_5572_); +v___x_5818_ = 0; +if (v_dir_5571_ == 0) { -return v___x_5829_; +lean_object* v_status_5819_; uint16_t v___x_5820_; uint16_t v___x_5821_; uint8_t v___x_5822_; +v_status_5819_ = lean_ctor_get(v_message_5573_, 0); +v___x_5820_ = 100; +v___x_5821_ = l_Std_Http_Status_toCode(v_status_5819_); +v___x_5822_ = lean_uint16_dec_le(v___x_5820_, v___x_5821_); +if (v___x_5822_ == 0) +{ +lean_del_object(v___x_5706_); +lean_dec(v_messageHead_5700_); +v___y_5813_ = v___y_5817_; +v___y_5814_ = v___x_5818_; +goto v___jp_5812_; +} +else +{ +uint16_t v___x_5823_; uint8_t v___x_5824_; +v___x_5823_ = 200; +v___x_5824_ = lean_uint16_dec_lt(v___x_5821_, v___x_5823_); +if (v___x_5824_ == 0) +{ +lean_del_object(v___x_5706_); +lean_dec(v_messageHead_5700_); +v___y_5813_ = v___y_5817_; +v___y_5814_ = v___x_5818_; +goto v___jp_5812_; +} +else +{ +uint8_t v___x_5825_; lean_object* v___x_5826_; lean_object* v___x_5827_; lean_object* v___f_5828_; lean_object* v___f_5829_; lean_object* v___f_5830_; lean_object* v___f_5831_; uint8_t v___x_5832_; +v___x_5825_ = 1; +v___x_5826_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_5825_, v_message_5573_); +v___x_5827_ = l_Std_Http_Header_Name_contentLength; +v___f_5828_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__5, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__5_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__5); +v___f_5829_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_5830_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___f_5831_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__1)); +v___x_5832_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_5829_, v___f_5830_, v___x_5827_, v___x_5826_); +if (v___x_5832_ == 0) +{ +if (v___x_5824_ == 0) +{ +v___y_5783_ = v___x_5825_; +v___y_5784_ = v___f_5831_; +v___y_5785_ = v___x_5824_; +v___y_5786_ = v___x_5826_; +v___y_5787_ = v___f_5830_; +v___y_5788_ = v___f_5829_; +v___y_5789_ = v___f_5828_; +goto v___jp_5782_; +} +else +{ +v___y_5756_ = v___x_5825_; +v___y_5757_ = v___x_5824_; +v___y_5758_ = v___x_5826_; +goto v___jp_5755_; } } +else +{ +v___y_5783_ = v___x_5825_; +v___y_5784_ = v___f_5831_; +v___y_5785_ = v___x_5824_; +v___y_5786_ = v___x_5826_; +v___y_5787_ = v___f_5830_; +v___y_5788_ = v___f_5829_; +v___y_5789_ = v___f_5828_; +goto v___jp_5782_; } } } } else { -lean_dec_ref(v_data_5794_); -return v_machine_5793_; +lean_del_object(v___x_5706_); +lean_dec(v_messageHead_5700_); +v___y_5813_ = v___y_5817_; +v___y_5814_ = v___x_5818_; +goto v___jp_5812_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData(uint8_t v_dir_5844_, lean_object* v_machine_5845_, lean_object* v_data_5846_){ +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_send___boxed(lean_object* v_dir_5836_, lean_object* v_machine_5837_, lean_object* v_message_5838_){ _start: { -lean_object* v___x_5847_; lean_object* v___x_5848_; uint8_t v___x_5849_; -v___x_5847_ = lean_array_get_size(v_data_5846_); -v___x_5848_ = lean_unsigned_to_nat(0u); -v___x_5849_ = lean_nat_dec_eq(v___x_5847_, v___x_5848_); -if (v___x_5849_ == 0) -{ -lean_object* v_reader_5850_; lean_object* v_writer_5851_; lean_object* v_config_5852_; lean_object* v_events_5853_; lean_object* v_error_5854_; lean_object* v_instant_5855_; uint8_t v_keepAlive_5856_; uint8_t v_forcedFlush_5857_; uint8_t v_pullBodyStalled_5858_; lean_object* v___x_5860_; uint8_t v_isShared_5861_; uint8_t v_isSharedCheck_5895_; -v_reader_5850_ = lean_ctor_get(v_machine_5845_, 0); -v_writer_5851_ = lean_ctor_get(v_machine_5845_, 1); -v_config_5852_ = lean_ctor_get(v_machine_5845_, 2); -v_events_5853_ = lean_ctor_get(v_machine_5845_, 3); -v_error_5854_ = lean_ctor_get(v_machine_5845_, 4); -v_instant_5855_ = lean_ctor_get(v_machine_5845_, 5); -v_keepAlive_5856_ = lean_ctor_get_uint8(v_machine_5845_, sizeof(void*)*6); -v_forcedFlush_5857_ = lean_ctor_get_uint8(v_machine_5845_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5858_ = lean_ctor_get_uint8(v_machine_5845_, sizeof(void*)*6 + 2); -v_isSharedCheck_5895_ = !lean_is_exclusive(v_machine_5845_); -if (v_isSharedCheck_5895_ == 0) -{ -v___x_5860_ = v_machine_5845_; -v_isShared_5861_ = v_isSharedCheck_5895_; -goto v_resetjp_5859_; -} -else -{ -lean_inc(v_instant_5855_); -lean_inc(v_error_5854_); -lean_inc(v_events_5853_); -lean_inc(v_config_5852_); -lean_inc(v_writer_5851_); -lean_inc(v_reader_5850_); -lean_dec(v_machine_5845_); -v___x_5860_ = lean_box(0); -v_isShared_5861_ = v_isSharedCheck_5895_; -goto v_resetjp_5859_; -} -v_resetjp_5859_: -{ -lean_object* v___y_5863_; lean_object* v___x_5885_; uint8_t v___x_5886_; -v___x_5885_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); -v___x_5886_ = lean_nat_dec_lt(v___x_5848_, v___x_5847_); -if (v___x_5886_ == 0) -{ -v___y_5863_ = v___x_5848_; -goto v___jp_5862_; -} -else -{ -lean_object* v___f_5887_; uint8_t v___x_5888_; -v___f_5887_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_sendData___redArg___closed__0)); -v___x_5888_ = lean_nat_dec_le(v___x_5847_, v___x_5847_); -if (v___x_5888_ == 0) -{ -if (v___x_5886_ == 0) -{ -v___y_5863_ = v___x_5848_; -goto v___jp_5862_; -} -else -{ -size_t v___x_5889_; size_t v___x_5890_; lean_object* v___x_5891_; -v___x_5889_ = ((size_t)0ULL); -v___x_5890_ = lean_usize_of_nat(v___x_5847_); -lean_inc_ref(v_data_5846_); -v___x_5891_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5885_, v___f_5887_, v_data_5846_, v___x_5889_, v___x_5890_, v___x_5848_); -v___y_5863_ = v___x_5891_; -goto v___jp_5862_; +uint8_t v_dir_boxed_5839_; lean_object* v_res_5840_; +v_dir_boxed_5839_ = lean_unbox(v_dir_5836_); +v_res_5840_ = l_Std_Http_Protocol_H1_Machine_send(v_dir_boxed_5839_, v_machine_5837_, v_message_5838_); +return v_res_5840_; } } -else -{ -size_t v___x_5892_; size_t v___x_5893_; lean_object* v___x_5894_; -v___x_5892_ = ((size_t)0ULL); -v___x_5893_ = lean_usize_of_nat(v___x_5847_); -lean_inc_ref(v_data_5846_); -v___x_5894_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_5885_, v___f_5887_, v_data_5846_, v___x_5892_, v___x_5893_, v___x_5848_); -v___y_5863_ = v___x_5894_; -goto v___jp_5862_; -} -} -v___jp_5862_: -{ -lean_object* v_userData_5864_; lean_object* v_outputData_5865_; lean_object* v_state_5866_; lean_object* v_knownSize_5867_; lean_object* v_messageHead_5868_; uint8_t v_sentMessage_5869_; uint8_t v_userClosedBody_5870_; uint8_t v_omitBody_5871_; lean_object* v_userDataBytes_5872_; lean_object* v___x_5874_; uint8_t v_isShared_5875_; uint8_t v_isSharedCheck_5884_; -v_userData_5864_ = lean_ctor_get(v_writer_5851_, 0); -v_outputData_5865_ = lean_ctor_get(v_writer_5851_, 1); -v_state_5866_ = lean_ctor_get(v_writer_5851_, 2); -v_knownSize_5867_ = lean_ctor_get(v_writer_5851_, 3); -v_messageHead_5868_ = lean_ctor_get(v_writer_5851_, 4); -v_sentMessage_5869_ = lean_ctor_get_uint8(v_writer_5851_, sizeof(void*)*6); -v_userClosedBody_5870_ = lean_ctor_get_uint8(v_writer_5851_, sizeof(void*)*6 + 1); -v_omitBody_5871_ = lean_ctor_get_uint8(v_writer_5851_, sizeof(void*)*6 + 2); -v_userDataBytes_5872_ = lean_ctor_get(v_writer_5851_, 5); -v_isSharedCheck_5884_ = !lean_is_exclusive(v_writer_5851_); -if (v_isSharedCheck_5884_ == 0) -{ -v___x_5874_ = v_writer_5851_; -v_isShared_5875_ = v_isSharedCheck_5884_; -goto v_resetjp_5873_; -} -else -{ -lean_inc(v_userDataBytes_5872_); -lean_inc(v_messageHead_5868_); -lean_inc(v_knownSize_5867_); -lean_inc(v_state_5866_); -lean_inc(v_outputData_5865_); -lean_inc(v_userData_5864_); -lean_dec(v_writer_5851_); -v___x_5874_ = lean_box(0); -v_isShared_5875_ = v_isSharedCheck_5884_; -goto v_resetjp_5873_; -} -v_resetjp_5873_: -{ -lean_object* v___x_5876_; lean_object* v___x_5877_; lean_object* v___x_5879_; -v___x_5876_ = l_Array_append___redArg(v_userData_5864_, v_data_5846_); -lean_dec_ref(v_data_5846_); -v___x_5877_ = lean_nat_add(v_userDataBytes_5872_, v___y_5863_); -lean_dec(v___y_5863_); -lean_dec(v_userDataBytes_5872_); -if (v_isShared_5875_ == 0) -{ -lean_ctor_set(v___x_5874_, 5, v___x_5877_); -lean_ctor_set(v___x_5874_, 0, v___x_5876_); -v___x_5879_ = v___x_5874_; -goto v_reusejp_5878_; -} -else -{ -lean_object* v_reuseFailAlloc_5883_; -v_reuseFailAlloc_5883_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5883_, 0, v___x_5876_); -lean_ctor_set(v_reuseFailAlloc_5883_, 1, v_outputData_5865_); -lean_ctor_set(v_reuseFailAlloc_5883_, 2, v_state_5866_); -lean_ctor_set(v_reuseFailAlloc_5883_, 3, v_knownSize_5867_); -lean_ctor_set(v_reuseFailAlloc_5883_, 4, v_messageHead_5868_); -lean_ctor_set(v_reuseFailAlloc_5883_, 5, v___x_5877_); -lean_ctor_set_uint8(v_reuseFailAlloc_5883_, sizeof(void*)*6, v_sentMessage_5869_); -lean_ctor_set_uint8(v_reuseFailAlloc_5883_, sizeof(void*)*6 + 1, v_userClosedBody_5870_); -lean_ctor_set_uint8(v_reuseFailAlloc_5883_, sizeof(void*)*6 + 2, v_omitBody_5871_); -v___x_5879_ = v_reuseFailAlloc_5883_; -goto v_reusejp_5878_; -} -v_reusejp_5878_: -{ -lean_object* v___x_5881_; -if (v_isShared_5861_ == 0) -{ -lean_ctor_set(v___x_5860_, 1, v___x_5879_); -v___x_5881_ = v___x_5860_; -goto v_reusejp_5880_; -} -else -{ -lean_object* v_reuseFailAlloc_5882_; -v_reuseFailAlloc_5882_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5882_, 0, v_reader_5850_); -lean_ctor_set(v_reuseFailAlloc_5882_, 1, v___x_5879_); -lean_ctor_set(v_reuseFailAlloc_5882_, 2, v_config_5852_); -lean_ctor_set(v_reuseFailAlloc_5882_, 3, v_events_5853_); -lean_ctor_set(v_reuseFailAlloc_5882_, 4, v_error_5854_); -lean_ctor_set(v_reuseFailAlloc_5882_, 5, v_instant_5855_); -lean_ctor_set_uint8(v_reuseFailAlloc_5882_, sizeof(void*)*6, v_keepAlive_5856_); -lean_ctor_set_uint8(v_reuseFailAlloc_5882_, sizeof(void*)*6 + 1, v_forcedFlush_5857_); -lean_ctor_set_uint8(v_reuseFailAlloc_5882_, sizeof(void*)*6 + 2, v_pullBodyStalled_5858_); -v___x_5881_ = v_reuseFailAlloc_5882_; -goto v_reusejp_5880_; -} -v_reusejp_5880_: -{ -return v___x_5881_; -} -} -} -} -} -} -else -{ -lean_dec_ref(v_data_5846_); -return v_machine_5845_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___boxed(lean_object* v_dir_5896_, lean_object* v_machine_5897_, lean_object* v_data_5898_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0(void){ _start: { -uint8_t v_dir_boxed_5899_; lean_object* v_res_5900_; -v_dir_boxed_5899_ = lean_unbox(v_dir_5896_); -v_res_5900_ = l_Std_Http_Protocol_H1_Machine_sendData(v_dir_boxed_5899_, v_machine_5897_, v_data_5898_); -return v_res_5900_; +lean_object* v___x_5841_; lean_object* v___x_5842_; +v___x_5841_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__4)); +v___x_5842_ = lean_string_to_utf8(v___x_5841_); +return v___x_5842_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents___redArg(lean_object* v_machine_5903_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__1(void){ _start: { -lean_object* v_reader_5904_; lean_object* v_writer_5905_; lean_object* v_config_5906_; lean_object* v_events_5907_; lean_object* v_error_5908_; lean_object* v_instant_5909_; uint8_t v_keepAlive_5910_; uint8_t v_forcedFlush_5911_; uint8_t v_pullBodyStalled_5912_; lean_object* v___x_5914_; uint8_t v_isShared_5915_; uint8_t v_isSharedCheck_5921_; -v_reader_5904_ = lean_ctor_get(v_machine_5903_, 0); -v_writer_5905_ = lean_ctor_get(v_machine_5903_, 1); -v_config_5906_ = lean_ctor_get(v_machine_5903_, 2); -v_events_5907_ = lean_ctor_get(v_machine_5903_, 3); -v_error_5908_ = lean_ctor_get(v_machine_5903_, 4); -v_instant_5909_ = lean_ctor_get(v_machine_5903_, 5); -v_keepAlive_5910_ = lean_ctor_get_uint8(v_machine_5903_, sizeof(void*)*6); -v_forcedFlush_5911_ = lean_ctor_get_uint8(v_machine_5903_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5912_ = lean_ctor_get_uint8(v_machine_5903_, sizeof(void*)*6 + 2); -v_isSharedCheck_5921_ = !lean_is_exclusive(v_machine_5903_); -if (v_isSharedCheck_5921_ == 0) -{ -v___x_5914_ = v_machine_5903_; -v_isShared_5915_ = v_isSharedCheck_5921_; -goto v_resetjp_5913_; -} -else -{ -lean_inc(v_instant_5909_); -lean_inc(v_error_5908_); -lean_inc(v_events_5907_); -lean_inc(v_config_5906_); -lean_inc(v_writer_5905_); -lean_inc(v_reader_5904_); -lean_dec(v_machine_5903_); -v___x_5914_ = lean_box(0); -v_isShared_5915_ = v_isSharedCheck_5921_; -goto v_resetjp_5913_; -} -v_resetjp_5913_: -{ -lean_object* v___x_5916_; lean_object* v___x_5918_; -v___x_5916_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); -if (v_isShared_5915_ == 0) -{ -lean_ctor_set(v___x_5914_, 3, v___x_5916_); -v___x_5918_ = v___x_5914_; -goto v_reusejp_5917_; -} -else -{ -lean_object* v_reuseFailAlloc_5920_; -v_reuseFailAlloc_5920_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5920_, 0, v_reader_5904_); -lean_ctor_set(v_reuseFailAlloc_5920_, 1, v_writer_5905_); -lean_ctor_set(v_reuseFailAlloc_5920_, 2, v_config_5906_); -lean_ctor_set(v_reuseFailAlloc_5920_, 3, v___x_5916_); -lean_ctor_set(v_reuseFailAlloc_5920_, 4, v_error_5908_); -lean_ctor_set(v_reuseFailAlloc_5920_, 5, v_instant_5909_); -lean_ctor_set_uint8(v_reuseFailAlloc_5920_, sizeof(void*)*6, v_keepAlive_5910_); -lean_ctor_set_uint8(v_reuseFailAlloc_5920_, sizeof(void*)*6 + 1, v_forcedFlush_5911_); -lean_ctor_set_uint8(v_reuseFailAlloc_5920_, sizeof(void*)*6 + 2, v_pullBodyStalled_5912_); -v___x_5918_ = v_reuseFailAlloc_5920_; -goto v_reusejp_5917_; -} -v_reusejp_5917_: -{ -lean_object* v___x_5919_; -v___x_5919_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5919_, 0, v___x_5918_); -lean_ctor_set(v___x_5919_, 1, v_events_5907_); -return v___x_5919_; +lean_object* v___x_5843_; lean_object* v___x_5844_; +v___x_5843_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__0, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__0_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0); +v___x_5844_ = lean_byte_array_size(v___x_5843_); +return v___x_5844_; } } -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents(uint8_t v_dir_5922_, lean_object* v_machine_5923_){ +static uint16_t _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__2(void){ _start: { -lean_object* v_reader_5924_; lean_object* v_writer_5925_; lean_object* v_config_5926_; lean_object* v_events_5927_; lean_object* v_error_5928_; lean_object* v_instant_5929_; uint8_t v_keepAlive_5930_; uint8_t v_forcedFlush_5931_; uint8_t v_pullBodyStalled_5932_; lean_object* v___x_5934_; uint8_t v_isShared_5935_; uint8_t v_isSharedCheck_5941_; -v_reader_5924_ = lean_ctor_get(v_machine_5923_, 0); -v_writer_5925_ = lean_ctor_get(v_machine_5923_, 1); -v_config_5926_ = lean_ctor_get(v_machine_5923_, 2); -v_events_5927_ = lean_ctor_get(v_machine_5923_, 3); -v_error_5928_ = lean_ctor_get(v_machine_5923_, 4); -v_instant_5929_ = lean_ctor_get(v_machine_5923_, 5); -v_keepAlive_5930_ = lean_ctor_get_uint8(v_machine_5923_, sizeof(void*)*6); -v_forcedFlush_5931_ = lean_ctor_get_uint8(v_machine_5923_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5932_ = lean_ctor_get_uint8(v_machine_5923_, sizeof(void*)*6 + 2); -v_isSharedCheck_5941_ = !lean_is_exclusive(v_machine_5923_); -if (v_isSharedCheck_5941_ == 0) -{ -v___x_5934_ = v_machine_5923_; -v_isShared_5935_ = v_isSharedCheck_5941_; -goto v_resetjp_5933_; -} -else -{ -lean_inc(v_instant_5929_); -lean_inc(v_error_5928_); -lean_inc(v_events_5927_); -lean_inc(v_config_5926_); -lean_inc(v_writer_5925_); -lean_inc(v_reader_5924_); -lean_dec(v_machine_5923_); -v___x_5934_ = lean_box(0); -v_isShared_5935_ = v_isSharedCheck_5941_; -goto v_resetjp_5933_; -} -v_resetjp_5933_: -{ -lean_object* v___x_5936_; lean_object* v___x_5938_; -v___x_5936_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); -if (v_isShared_5935_ == 0) -{ -lean_ctor_set(v___x_5934_, 3, v___x_5936_); -v___x_5938_ = v___x_5934_; -goto v_reusejp_5937_; -} -else -{ -lean_object* v_reuseFailAlloc_5940_; -v_reuseFailAlloc_5940_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5940_, 0, v_reader_5924_); -lean_ctor_set(v_reuseFailAlloc_5940_, 1, v_writer_5925_); -lean_ctor_set(v_reuseFailAlloc_5940_, 2, v_config_5926_); -lean_ctor_set(v_reuseFailAlloc_5940_, 3, v___x_5936_); -lean_ctor_set(v_reuseFailAlloc_5940_, 4, v_error_5928_); -lean_ctor_set(v_reuseFailAlloc_5940_, 5, v_instant_5929_); -lean_ctor_set_uint8(v_reuseFailAlloc_5940_, sizeof(void*)*6, v_keepAlive_5930_); -lean_ctor_set_uint8(v_reuseFailAlloc_5940_, sizeof(void*)*6 + 1, v_forcedFlush_5931_); -lean_ctor_set_uint8(v_reuseFailAlloc_5940_, sizeof(void*)*6 + 2, v_pullBodyStalled_5932_); -v___x_5938_ = v_reuseFailAlloc_5940_; -goto v_reusejp_5937_; -} -v_reusejp_5937_: -{ -lean_object* v___x_5939_; -v___x_5939_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5939_, 0, v___x_5938_); -lean_ctor_set(v___x_5939_, 1, v_events_5927_); -return v___x_5939_; +lean_object* v___x_5845_; uint16_t v___x_5846_; +v___x_5845_ = lean_box(0); +v___x_5846_ = l_Std_Http_Status_toCode(v___x_5845_); +return v___x_5846_; } } -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents___boxed(lean_object* v_dir_5942_, lean_object* v_machine_5943_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__3(void){ _start: { -uint8_t v_dir_boxed_5944_; lean_object* v_res_5945_; -v_dir_boxed_5944_ = lean_unbox(v_dir_5942_); -v_res_5945_ = l_Std_Http_Protocol_H1_Machine_takeEvents(v_dir_boxed_5944_, v_machine_5943_); -return v_res_5945_; +uint16_t v___x_5847_; lean_object* v___x_5848_; +v___x_5847_ = lean_uint16_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__2, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__2_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__2); +v___x_5848_ = lean_uint16_to_nat(v___x_5847_); +return v___x_5848_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput___redArg(lean_object* v_machine_5951_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__4(void){ _start: { -lean_object* v_writer_5952_; lean_object* v_reader_5953_; lean_object* v_config_5954_; lean_object* v_events_5955_; lean_object* v_error_5956_; lean_object* v_instant_5957_; uint8_t v_keepAlive_5958_; uint8_t v_forcedFlush_5959_; uint8_t v_pullBodyStalled_5960_; lean_object* v___x_5962_; uint8_t v_isShared_5963_; uint8_t v_isSharedCheck_5985_; -v_writer_5952_ = lean_ctor_get(v_machine_5951_, 1); -v_reader_5953_ = lean_ctor_get(v_machine_5951_, 0); -v_config_5954_ = lean_ctor_get(v_machine_5951_, 2); -v_events_5955_ = lean_ctor_get(v_machine_5951_, 3); -v_error_5956_ = lean_ctor_get(v_machine_5951_, 4); -v_instant_5957_ = lean_ctor_get(v_machine_5951_, 5); -v_keepAlive_5958_ = lean_ctor_get_uint8(v_machine_5951_, sizeof(void*)*6); -v_forcedFlush_5959_ = lean_ctor_get_uint8(v_machine_5951_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5960_ = lean_ctor_get_uint8(v_machine_5951_, sizeof(void*)*6 + 2); -v_isSharedCheck_5985_ = !lean_is_exclusive(v_machine_5951_); -if (v_isSharedCheck_5985_ == 0) -{ -v___x_5962_ = v_machine_5951_; -v_isShared_5963_ = v_isSharedCheck_5985_; -goto v_resetjp_5961_; -} -else -{ -lean_inc(v_instant_5957_); -lean_inc(v_error_5956_); -lean_inc(v_events_5955_); -lean_inc(v_config_5954_); -lean_inc(v_writer_5952_); -lean_inc(v_reader_5953_); -lean_dec(v_machine_5951_); -v___x_5962_ = lean_box(0); -v_isShared_5963_ = v_isSharedCheck_5985_; -goto v_resetjp_5961_; -} -v_resetjp_5961_: -{ -lean_object* v_userData_5964_; lean_object* v_outputData_5965_; lean_object* v_state_5966_; lean_object* v_knownSize_5967_; lean_object* v_messageHead_5968_; uint8_t v_sentMessage_5969_; uint8_t v_userClosedBody_5970_; uint8_t v_omitBody_5971_; lean_object* v_userDataBytes_5972_; lean_object* v___x_5974_; uint8_t v_isShared_5975_; uint8_t v_isSharedCheck_5984_; -v_userData_5964_ = lean_ctor_get(v_writer_5952_, 0); -v_outputData_5965_ = lean_ctor_get(v_writer_5952_, 1); -v_state_5966_ = lean_ctor_get(v_writer_5952_, 2); -v_knownSize_5967_ = lean_ctor_get(v_writer_5952_, 3); -v_messageHead_5968_ = lean_ctor_get(v_writer_5952_, 4); -v_sentMessage_5969_ = lean_ctor_get_uint8(v_writer_5952_, sizeof(void*)*6); -v_userClosedBody_5970_ = lean_ctor_get_uint8(v_writer_5952_, sizeof(void*)*6 + 1); -v_omitBody_5971_ = lean_ctor_get_uint8(v_writer_5952_, sizeof(void*)*6 + 2); -v_userDataBytes_5972_ = lean_ctor_get(v_writer_5952_, 5); -v_isSharedCheck_5984_ = !lean_is_exclusive(v_writer_5952_); -if (v_isSharedCheck_5984_ == 0) -{ -v___x_5974_ = v_writer_5952_; -v_isShared_5975_ = v_isSharedCheck_5984_; -goto v_resetjp_5973_; -} -else -{ -lean_inc(v_userDataBytes_5972_); -lean_inc(v_messageHead_5968_); -lean_inc(v_knownSize_5967_); -lean_inc(v_state_5966_); -lean_inc(v_outputData_5965_); -lean_inc(v_userData_5964_); -lean_dec(v_writer_5952_); -v___x_5974_ = lean_box(0); -v_isShared_5975_ = v_isSharedCheck_5984_; -goto v_resetjp_5973_; -} -v_resetjp_5973_: -{ -lean_object* v___x_5976_; lean_object* v___x_5978_; -v___x_5976_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeOutput___redArg___closed__1)); -if (v_isShared_5975_ == 0) -{ -lean_ctor_set(v___x_5974_, 1, v___x_5976_); -v___x_5978_ = v___x_5974_; -goto v_reusejp_5977_; -} -else -{ -lean_object* v_reuseFailAlloc_5983_; -v_reuseFailAlloc_5983_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5983_, 0, v_userData_5964_); -lean_ctor_set(v_reuseFailAlloc_5983_, 1, v___x_5976_); -lean_ctor_set(v_reuseFailAlloc_5983_, 2, v_state_5966_); -lean_ctor_set(v_reuseFailAlloc_5983_, 3, v_knownSize_5967_); -lean_ctor_set(v_reuseFailAlloc_5983_, 4, v_messageHead_5968_); -lean_ctor_set(v_reuseFailAlloc_5983_, 5, v_userDataBytes_5972_); -lean_ctor_set_uint8(v_reuseFailAlloc_5983_, sizeof(void*)*6, v_sentMessage_5969_); -lean_ctor_set_uint8(v_reuseFailAlloc_5983_, sizeof(void*)*6 + 1, v_userClosedBody_5970_); -lean_ctor_set_uint8(v_reuseFailAlloc_5983_, sizeof(void*)*6 + 2, v_omitBody_5971_); -v___x_5978_ = v_reuseFailAlloc_5983_; -goto v_reusejp_5977_; -} -v_reusejp_5977_: -{ -lean_object* v___x_5980_; -if (v_isShared_5963_ == 0) -{ -lean_ctor_set(v___x_5962_, 1, v___x_5978_); -v___x_5980_ = v___x_5962_; -goto v_reusejp_5979_; -} -else -{ -lean_object* v_reuseFailAlloc_5982_; -v_reuseFailAlloc_5982_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_5982_, 0, v_reader_5953_); -lean_ctor_set(v_reuseFailAlloc_5982_, 1, v___x_5978_); -lean_ctor_set(v_reuseFailAlloc_5982_, 2, v_config_5954_); -lean_ctor_set(v_reuseFailAlloc_5982_, 3, v_events_5955_); -lean_ctor_set(v_reuseFailAlloc_5982_, 4, v_error_5956_); -lean_ctor_set(v_reuseFailAlloc_5982_, 5, v_instant_5957_); -lean_ctor_set_uint8(v_reuseFailAlloc_5982_, sizeof(void*)*6, v_keepAlive_5958_); -lean_ctor_set_uint8(v_reuseFailAlloc_5982_, sizeof(void*)*6 + 1, v_forcedFlush_5959_); -lean_ctor_set_uint8(v_reuseFailAlloc_5982_, sizeof(void*)*6 + 2, v_pullBodyStalled_5960_); -v___x_5980_ = v_reuseFailAlloc_5982_; -goto v_reusejp_5979_; -} -v_reusejp_5979_: -{ -lean_object* v___x_5981_; -v___x_5981_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_5981_, 0, v___x_5980_); -lean_ctor_set(v___x_5981_, 1, v_outputData_5965_); -return v___x_5981_; +lean_object* v___x_5849_; lean_object* v___x_5850_; +v___x_5849_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__3, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__3_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__3); +v___x_5850_ = l_Nat_reprFast(v___x_5849_); +return v___x_5850_; } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput(uint8_t v_dir_5986_, lean_object* v_machine_5987_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5(void){ _start: { -lean_object* v_writer_5988_; lean_object* v_reader_5989_; lean_object* v_config_5990_; lean_object* v_events_5991_; lean_object* v_error_5992_; lean_object* v_instant_5993_; uint8_t v_keepAlive_5994_; uint8_t v_forcedFlush_5995_; uint8_t v_pullBodyStalled_5996_; lean_object* v___x_5998_; uint8_t v_isShared_5999_; uint8_t v_isSharedCheck_6021_; -v_writer_5988_ = lean_ctor_get(v_machine_5987_, 1); -v_reader_5989_ = lean_ctor_get(v_machine_5987_, 0); -v_config_5990_ = lean_ctor_get(v_machine_5987_, 2); -v_events_5991_ = lean_ctor_get(v_machine_5987_, 3); -v_error_5992_ = lean_ctor_get(v_machine_5987_, 4); -v_instant_5993_ = lean_ctor_get(v_machine_5987_, 5); -v_keepAlive_5994_ = lean_ctor_get_uint8(v_machine_5987_, sizeof(void*)*6); -v_forcedFlush_5995_ = lean_ctor_get_uint8(v_machine_5987_, sizeof(void*)*6 + 1); -v_pullBodyStalled_5996_ = lean_ctor_get_uint8(v_machine_5987_, sizeof(void*)*6 + 2); -v_isSharedCheck_6021_ = !lean_is_exclusive(v_machine_5987_); -if (v_isSharedCheck_6021_ == 0) -{ -v___x_5998_ = v_machine_5987_; -v_isShared_5999_ = v_isSharedCheck_6021_; -goto v_resetjp_5997_; -} -else -{ -lean_inc(v_instant_5993_); -lean_inc(v_error_5992_); -lean_inc(v_events_5991_); -lean_inc(v_config_5990_); -lean_inc(v_writer_5988_); -lean_inc(v_reader_5989_); -lean_dec(v_machine_5987_); -v___x_5998_ = lean_box(0); -v_isShared_5999_ = v_isSharedCheck_6021_; -goto v_resetjp_5997_; -} -v_resetjp_5997_: -{ -lean_object* v_userData_6000_; lean_object* v_outputData_6001_; lean_object* v_state_6002_; lean_object* v_knownSize_6003_; lean_object* v_messageHead_6004_; uint8_t v_sentMessage_6005_; uint8_t v_userClosedBody_6006_; uint8_t v_omitBody_6007_; lean_object* v_userDataBytes_6008_; lean_object* v___x_6010_; uint8_t v_isShared_6011_; uint8_t v_isSharedCheck_6020_; -v_userData_6000_ = lean_ctor_get(v_writer_5988_, 0); -v_outputData_6001_ = lean_ctor_get(v_writer_5988_, 1); -v_state_6002_ = lean_ctor_get(v_writer_5988_, 2); -v_knownSize_6003_ = lean_ctor_get(v_writer_5988_, 3); -v_messageHead_6004_ = lean_ctor_get(v_writer_5988_, 4); -v_sentMessage_6005_ = lean_ctor_get_uint8(v_writer_5988_, sizeof(void*)*6); -v_userClosedBody_6006_ = lean_ctor_get_uint8(v_writer_5988_, sizeof(void*)*6 + 1); -v_omitBody_6007_ = lean_ctor_get_uint8(v_writer_5988_, sizeof(void*)*6 + 2); -v_userDataBytes_6008_ = lean_ctor_get(v_writer_5988_, 5); -v_isSharedCheck_6020_ = !lean_is_exclusive(v_writer_5988_); -if (v_isSharedCheck_6020_ == 0) -{ -v___x_6010_ = v_writer_5988_; -v_isShared_6011_ = v_isSharedCheck_6020_; -goto v_resetjp_6009_; -} -else -{ -lean_inc(v_userDataBytes_6008_); -lean_inc(v_messageHead_6004_); -lean_inc(v_knownSize_6003_); -lean_inc(v_state_6002_); -lean_inc(v_outputData_6001_); -lean_inc(v_userData_6000_); -lean_dec(v_writer_5988_); -v___x_6010_ = lean_box(0); -v_isShared_6011_ = v_isSharedCheck_6020_; -goto v_resetjp_6009_; -} -v_resetjp_6009_: -{ -lean_object* v___x_6012_; lean_object* v___x_6014_; -v___x_6012_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeOutput___redArg___closed__1)); -if (v_isShared_6011_ == 0) -{ -lean_ctor_set(v___x_6010_, 1, v___x_6012_); -v___x_6014_ = v___x_6010_; -goto v_reusejp_6013_; -} -else -{ -lean_object* v_reuseFailAlloc_6019_; -v_reuseFailAlloc_6019_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6019_, 0, v_userData_6000_); -lean_ctor_set(v_reuseFailAlloc_6019_, 1, v___x_6012_); -lean_ctor_set(v_reuseFailAlloc_6019_, 2, v_state_6002_); -lean_ctor_set(v_reuseFailAlloc_6019_, 3, v_knownSize_6003_); -lean_ctor_set(v_reuseFailAlloc_6019_, 4, v_messageHead_6004_); -lean_ctor_set(v_reuseFailAlloc_6019_, 5, v_userDataBytes_6008_); -lean_ctor_set_uint8(v_reuseFailAlloc_6019_, sizeof(void*)*6, v_sentMessage_6005_); -lean_ctor_set_uint8(v_reuseFailAlloc_6019_, sizeof(void*)*6 + 1, v_userClosedBody_6006_); -lean_ctor_set_uint8(v_reuseFailAlloc_6019_, sizeof(void*)*6 + 2, v_omitBody_6007_); -v___x_6014_ = v_reuseFailAlloc_6019_; -goto v_reusejp_6013_; -} -v_reusejp_6013_: -{ -lean_object* v___x_6016_; -if (v_isShared_5999_ == 0) -{ -lean_ctor_set(v___x_5998_, 1, v___x_6014_); -v___x_6016_ = v___x_5998_; -goto v_reusejp_6015_; -} -else -{ -lean_object* v_reuseFailAlloc_6018_; -v_reuseFailAlloc_6018_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6018_, 0, v_reader_5989_); -lean_ctor_set(v_reuseFailAlloc_6018_, 1, v___x_6014_); -lean_ctor_set(v_reuseFailAlloc_6018_, 2, v_config_5990_); -lean_ctor_set(v_reuseFailAlloc_6018_, 3, v_events_5991_); -lean_ctor_set(v_reuseFailAlloc_6018_, 4, v_error_5992_); -lean_ctor_set(v_reuseFailAlloc_6018_, 5, v_instant_5993_); -lean_ctor_set_uint8(v_reuseFailAlloc_6018_, sizeof(void*)*6, v_keepAlive_5994_); -lean_ctor_set_uint8(v_reuseFailAlloc_6018_, sizeof(void*)*6 + 1, v_forcedFlush_5995_); -lean_ctor_set_uint8(v_reuseFailAlloc_6018_, sizeof(void*)*6 + 2, v_pullBodyStalled_5996_); -v___x_6016_ = v_reuseFailAlloc_6018_; -goto v_reusejp_6015_; -} -v_reusejp_6015_: -{ -lean_object* v___x_6017_; -v___x_6017_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_6017_, 0, v___x_6016_); -lean_ctor_set(v___x_6017_, 1, v_outputData_6001_); -return v___x_6017_; +lean_object* v___x_5851_; lean_object* v___x_5852_; +v___x_5851_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__4, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__4_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__4); +v___x_5852_ = lean_string_to_utf8(v___x_5851_); +return v___x_5852_; } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput___boxed(lean_object* v_dir_6022_, lean_object* v_machine_6023_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__6(void){ _start: { -uint8_t v_dir_boxed_6024_; lean_object* v_res_6025_; -v_dir_boxed_6024_ = lean_unbox(v_dir_6022_); -v_res_6025_ = l_Std_Http_Protocol_H1_Machine_takeOutput(v_dir_boxed_6024_, v_machine_6023_); -return v_res_6025_; +lean_object* v___x_5853_; lean_object* v___x_5854_; +v___x_5853_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__5, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__5_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5); +v___x_5854_ = lean_byte_array_size(v___x_5853_); +return v___x_5854_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage___redArg(lean_object* v_machine_6026_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__7(void){ _start: { -lean_object* v_writer_6027_; lean_object* v_reader_6028_; lean_object* v_config_6029_; lean_object* v_events_6030_; lean_object* v_instant_6031_; uint8_t v_forcedFlush_6032_; uint8_t v_pullBodyStalled_6033_; lean_object* v___x_6035_; uint8_t v_isShared_6036_; uint8_t v_isSharedCheck_6075_; -v_writer_6027_ = lean_ctor_get(v_machine_6026_, 1); -v_reader_6028_ = lean_ctor_get(v_machine_6026_, 0); -v_config_6029_ = lean_ctor_get(v_machine_6026_, 2); -v_events_6030_ = lean_ctor_get(v_machine_6026_, 3); -v_instant_6031_ = lean_ctor_get(v_machine_6026_, 5); -v_forcedFlush_6032_ = lean_ctor_get_uint8(v_machine_6026_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6033_ = lean_ctor_get_uint8(v_machine_6026_, sizeof(void*)*6 + 2); -v_isSharedCheck_6075_ = !lean_is_exclusive(v_machine_6026_); -if (v_isSharedCheck_6075_ == 0) -{ -lean_object* v_unused_6076_; -v_unused_6076_ = lean_ctor_get(v_machine_6026_, 4); -lean_dec(v_unused_6076_); -v___x_6035_ = v_machine_6026_; -v_isShared_6036_ = v_isSharedCheck_6075_; -goto v_resetjp_6034_; -} -else -{ -lean_inc(v_instant_6031_); -lean_inc(v_events_6030_); -lean_inc(v_config_6029_); -lean_inc(v_writer_6027_); -lean_inc(v_reader_6028_); -lean_dec(v_machine_6026_); -v___x_6035_ = lean_box(0); -v_isShared_6036_ = v_isSharedCheck_6075_; -goto v_resetjp_6034_; -} -v_resetjp_6034_: -{ -lean_object* v_userData_6037_; lean_object* v_outputData_6038_; lean_object* v_knownSize_6039_; lean_object* v_messageHead_6040_; uint8_t v_sentMessage_6041_; uint8_t v_omitBody_6042_; lean_object* v_userDataBytes_6043_; lean_object* v___x_6045_; uint8_t v_isShared_6046_; uint8_t v_isSharedCheck_6073_; -v_userData_6037_ = lean_ctor_get(v_writer_6027_, 0); -v_outputData_6038_ = lean_ctor_get(v_writer_6027_, 1); -v_knownSize_6039_ = lean_ctor_get(v_writer_6027_, 3); -v_messageHead_6040_ = lean_ctor_get(v_writer_6027_, 4); -v_sentMessage_6041_ = lean_ctor_get_uint8(v_writer_6027_, sizeof(void*)*6); -v_omitBody_6042_ = lean_ctor_get_uint8(v_writer_6027_, sizeof(void*)*6 + 2); -v_userDataBytes_6043_ = lean_ctor_get(v_writer_6027_, 5); -v_isSharedCheck_6073_ = !lean_is_exclusive(v_writer_6027_); -if (v_isSharedCheck_6073_ == 0) -{ -lean_object* v_unused_6074_; -v_unused_6074_ = lean_ctor_get(v_writer_6027_, 2); -lean_dec(v_unused_6074_); -v___x_6045_ = v_writer_6027_; -v_isShared_6046_ = v_isSharedCheck_6073_; -goto v_resetjp_6044_; -} -else -{ -lean_inc(v_userDataBytes_6043_); -lean_inc(v_messageHead_6040_); -lean_inc(v_knownSize_6039_); -lean_inc(v_outputData_6038_); -lean_inc(v_userData_6037_); -lean_dec(v_writer_6027_); -v___x_6045_ = lean_box(0); -v_isShared_6046_ = v_isSharedCheck_6073_; -goto v_resetjp_6044_; -} -v_resetjp_6044_: -{ -lean_object* v_input_6047_; lean_object* v_messageHead_6048_; lean_object* v_messageCount_6049_; lean_object* v_bodyBytesRead_6050_; lean_object* v_headerBytesRead_6051_; lean_object* v___x_6053_; uint8_t v_isShared_6054_; uint8_t v_isSharedCheck_6071_; -v_input_6047_ = lean_ctor_get(v_reader_6028_, 1); -v_messageHead_6048_ = lean_ctor_get(v_reader_6028_, 2); -v_messageCount_6049_ = lean_ctor_get(v_reader_6028_, 3); -v_bodyBytesRead_6050_ = lean_ctor_get(v_reader_6028_, 4); -v_headerBytesRead_6051_ = lean_ctor_get(v_reader_6028_, 5); -v_isSharedCheck_6071_ = !lean_is_exclusive(v_reader_6028_); -if (v_isSharedCheck_6071_ == 0) -{ -lean_object* v_unused_6072_; -v_unused_6072_ = lean_ctor_get(v_reader_6028_, 0); -lean_dec(v_unused_6072_); -v___x_6053_ = v_reader_6028_; -v_isShared_6054_ = v_isSharedCheck_6071_; -goto v_resetjp_6052_; -} -else -{ -lean_inc(v_headerBytesRead_6051_); -lean_inc(v_bodyBytesRead_6050_); -lean_inc(v_messageCount_6049_); -lean_inc(v_messageHead_6048_); -lean_inc(v_input_6047_); -lean_dec(v_reader_6028_); -v___x_6053_ = lean_box(0); -v_isShared_6054_ = v_isSharedCheck_6071_; -goto v_resetjp_6052_; -} -v_resetjp_6052_: -{ -lean_object* v___x_6055_; uint8_t v___x_6056_; lean_object* v___x_6057_; uint8_t v___x_6058_; lean_object* v___x_6060_; -v___x_6055_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6056_ = 0; -v___x_6057_ = lean_box(5); -v___x_6058_ = 1; -if (v_isShared_6046_ == 0) -{ -lean_ctor_set(v___x_6045_, 2, v___x_6057_); -v___x_6060_ = v___x_6045_; -goto v_reusejp_6059_; -} -else -{ -lean_object* v_reuseFailAlloc_6070_; -v_reuseFailAlloc_6070_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6070_, 0, v_userData_6037_); -lean_ctor_set(v_reuseFailAlloc_6070_, 1, v_outputData_6038_); -lean_ctor_set(v_reuseFailAlloc_6070_, 2, v___x_6057_); -lean_ctor_set(v_reuseFailAlloc_6070_, 3, v_knownSize_6039_); -lean_ctor_set(v_reuseFailAlloc_6070_, 4, v_messageHead_6040_); -lean_ctor_set(v_reuseFailAlloc_6070_, 5, v_userDataBytes_6043_); -lean_ctor_set_uint8(v_reuseFailAlloc_6070_, sizeof(void*)*6, v_sentMessage_6041_); -lean_ctor_set_uint8(v_reuseFailAlloc_6070_, sizeof(void*)*6 + 2, v_omitBody_6042_); -v___x_6060_ = v_reuseFailAlloc_6070_; -goto v_reusejp_6059_; -} -v_reusejp_6059_: -{ -lean_object* v___x_6061_; lean_object* v___x_6063_; -lean_ctor_set_uint8(v___x_6060_, sizeof(void*)*6 + 1, v___x_6058_); -v___x_6061_ = lean_box(6); -if (v_isShared_6054_ == 0) -{ -lean_ctor_set(v___x_6053_, 0, v___x_6061_); -v___x_6063_ = v___x_6053_; -goto v_reusejp_6062_; -} -else -{ -lean_object* v_reuseFailAlloc_6069_; -v_reuseFailAlloc_6069_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6069_, 0, v___x_6061_); -lean_ctor_set(v_reuseFailAlloc_6069_, 1, v_input_6047_); -lean_ctor_set(v_reuseFailAlloc_6069_, 2, v_messageHead_6048_); -lean_ctor_set(v_reuseFailAlloc_6069_, 3, v_messageCount_6049_); -lean_ctor_set(v_reuseFailAlloc_6069_, 4, v_bodyBytesRead_6050_); -lean_ctor_set(v_reuseFailAlloc_6069_, 5, v_headerBytesRead_6051_); -v___x_6063_ = v_reuseFailAlloc_6069_; -goto v_reusejp_6062_; -} -v_reusejp_6062_: -{ -lean_object* v___x_6064_; lean_object* v___x_6065_; lean_object* v___x_6067_; -lean_ctor_set_uint8(v___x_6063_, sizeof(void*)*6, v___x_6058_); -v___x_6064_ = lean_box(3); -v___x_6065_ = lean_array_push(v_events_6030_, v___x_6064_); -if (v_isShared_6036_ == 0) -{ -lean_ctor_set(v___x_6035_, 4, v___x_6055_); -lean_ctor_set(v___x_6035_, 3, v___x_6065_); -lean_ctor_set(v___x_6035_, 1, v___x_6060_); -lean_ctor_set(v___x_6035_, 0, v___x_6063_); -v___x_6067_ = v___x_6035_; -goto v_reusejp_6066_; -} -else -{ -lean_object* v_reuseFailAlloc_6068_; -v_reuseFailAlloc_6068_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6068_, 0, v___x_6063_); -lean_ctor_set(v_reuseFailAlloc_6068_, 1, v___x_6060_); -lean_ctor_set(v_reuseFailAlloc_6068_, 2, v_config_6029_); -lean_ctor_set(v_reuseFailAlloc_6068_, 3, v___x_6065_); -lean_ctor_set(v_reuseFailAlloc_6068_, 4, v___x_6055_); -lean_ctor_set(v_reuseFailAlloc_6068_, 5, v_instant_6031_); -lean_ctor_set_uint8(v_reuseFailAlloc_6068_, sizeof(void*)*6 + 1, v_forcedFlush_6032_); -lean_ctor_set_uint8(v_reuseFailAlloc_6068_, sizeof(void*)*6 + 2, v_pullBodyStalled_6033_); -v___x_6067_ = v_reuseFailAlloc_6068_; -goto v_reusejp_6066_; -} -v_reusejp_6066_: -{ -lean_ctor_set_uint8(v___x_6067_, sizeof(void*)*6, v___x_6056_); -return v___x_6067_; +lean_object* v___x_5855_; lean_object* v___x_5856_; +v___x_5855_ = lean_box(0); +v___x_5856_ = l_Std_Http_Status_reasonPhrase(v___x_5855_); +return v___x_5856_; } } -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage(uint8_t v_dir_6077_, lean_object* v_machine_6078_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8(void){ _start: { -lean_object* v_writer_6079_; lean_object* v_reader_6080_; lean_object* v_config_6081_; lean_object* v_events_6082_; lean_object* v_instant_6083_; uint8_t v_forcedFlush_6084_; uint8_t v_pullBodyStalled_6085_; lean_object* v___x_6087_; uint8_t v_isShared_6088_; uint8_t v_isSharedCheck_6127_; -v_writer_6079_ = lean_ctor_get(v_machine_6078_, 1); -v_reader_6080_ = lean_ctor_get(v_machine_6078_, 0); -v_config_6081_ = lean_ctor_get(v_machine_6078_, 2); -v_events_6082_ = lean_ctor_get(v_machine_6078_, 3); -v_instant_6083_ = lean_ctor_get(v_machine_6078_, 5); -v_forcedFlush_6084_ = lean_ctor_get_uint8(v_machine_6078_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6085_ = lean_ctor_get_uint8(v_machine_6078_, sizeof(void*)*6 + 2); -v_isSharedCheck_6127_ = !lean_is_exclusive(v_machine_6078_); -if (v_isSharedCheck_6127_ == 0) -{ -lean_object* v_unused_6128_; -v_unused_6128_ = lean_ctor_get(v_machine_6078_, 4); -lean_dec(v_unused_6128_); -v___x_6087_ = v_machine_6078_; -v_isShared_6088_ = v_isSharedCheck_6127_; -goto v_resetjp_6086_; -} -else -{ -lean_inc(v_instant_6083_); -lean_inc(v_events_6082_); -lean_inc(v_config_6081_); -lean_inc(v_writer_6079_); -lean_inc(v_reader_6080_); -lean_dec(v_machine_6078_); -v___x_6087_ = lean_box(0); -v_isShared_6088_ = v_isSharedCheck_6127_; -goto v_resetjp_6086_; -} -v_resetjp_6086_: -{ -lean_object* v_userData_6089_; lean_object* v_outputData_6090_; lean_object* v_knownSize_6091_; lean_object* v_messageHead_6092_; uint8_t v_sentMessage_6093_; uint8_t v_omitBody_6094_; lean_object* v_userDataBytes_6095_; lean_object* v___x_6097_; uint8_t v_isShared_6098_; uint8_t v_isSharedCheck_6125_; -v_userData_6089_ = lean_ctor_get(v_writer_6079_, 0); -v_outputData_6090_ = lean_ctor_get(v_writer_6079_, 1); -v_knownSize_6091_ = lean_ctor_get(v_writer_6079_, 3); -v_messageHead_6092_ = lean_ctor_get(v_writer_6079_, 4); -v_sentMessage_6093_ = lean_ctor_get_uint8(v_writer_6079_, sizeof(void*)*6); -v_omitBody_6094_ = lean_ctor_get_uint8(v_writer_6079_, sizeof(void*)*6 + 2); -v_userDataBytes_6095_ = lean_ctor_get(v_writer_6079_, 5); -v_isSharedCheck_6125_ = !lean_is_exclusive(v_writer_6079_); -if (v_isSharedCheck_6125_ == 0) -{ -lean_object* v_unused_6126_; -v_unused_6126_ = lean_ctor_get(v_writer_6079_, 2); -lean_dec(v_unused_6126_); -v___x_6097_ = v_writer_6079_; -v_isShared_6098_ = v_isSharedCheck_6125_; -goto v_resetjp_6096_; -} -else -{ -lean_inc(v_userDataBytes_6095_); -lean_inc(v_messageHead_6092_); -lean_inc(v_knownSize_6091_); -lean_inc(v_outputData_6090_); -lean_inc(v_userData_6089_); -lean_dec(v_writer_6079_); -v___x_6097_ = lean_box(0); -v_isShared_6098_ = v_isSharedCheck_6125_; -goto v_resetjp_6096_; -} -v_resetjp_6096_: -{ -lean_object* v_input_6099_; lean_object* v_messageHead_6100_; lean_object* v_messageCount_6101_; lean_object* v_bodyBytesRead_6102_; lean_object* v_headerBytesRead_6103_; lean_object* v___x_6105_; uint8_t v_isShared_6106_; uint8_t v_isSharedCheck_6123_; -v_input_6099_ = lean_ctor_get(v_reader_6080_, 1); -v_messageHead_6100_ = lean_ctor_get(v_reader_6080_, 2); -v_messageCount_6101_ = lean_ctor_get(v_reader_6080_, 3); -v_bodyBytesRead_6102_ = lean_ctor_get(v_reader_6080_, 4); -v_headerBytesRead_6103_ = lean_ctor_get(v_reader_6080_, 5); -v_isSharedCheck_6123_ = !lean_is_exclusive(v_reader_6080_); -if (v_isSharedCheck_6123_ == 0) -{ -lean_object* v_unused_6124_; -v_unused_6124_ = lean_ctor_get(v_reader_6080_, 0); -lean_dec(v_unused_6124_); -v___x_6105_ = v_reader_6080_; -v_isShared_6106_ = v_isSharedCheck_6123_; -goto v_resetjp_6104_; -} -else -{ -lean_inc(v_headerBytesRead_6103_); -lean_inc(v_bodyBytesRead_6102_); -lean_inc(v_messageCount_6101_); -lean_inc(v_messageHead_6100_); -lean_inc(v_input_6099_); -lean_dec(v_reader_6080_); -v___x_6105_ = lean_box(0); -v_isShared_6106_ = v_isSharedCheck_6123_; -goto v_resetjp_6104_; -} -v_resetjp_6104_: -{ -lean_object* v___x_6107_; uint8_t v___x_6108_; lean_object* v___x_6109_; uint8_t v___x_6110_; lean_object* v___x_6112_; -v___x_6107_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6108_ = 0; -v___x_6109_ = lean_box(5); -v___x_6110_ = 1; -if (v_isShared_6098_ == 0) -{ -lean_ctor_set(v___x_6097_, 2, v___x_6109_); -v___x_6112_ = v___x_6097_; -goto v_reusejp_6111_; -} -else -{ -lean_object* v_reuseFailAlloc_6122_; -v_reuseFailAlloc_6122_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6122_, 0, v_userData_6089_); -lean_ctor_set(v_reuseFailAlloc_6122_, 1, v_outputData_6090_); -lean_ctor_set(v_reuseFailAlloc_6122_, 2, v___x_6109_); -lean_ctor_set(v_reuseFailAlloc_6122_, 3, v_knownSize_6091_); -lean_ctor_set(v_reuseFailAlloc_6122_, 4, v_messageHead_6092_); -lean_ctor_set(v_reuseFailAlloc_6122_, 5, v_userDataBytes_6095_); -lean_ctor_set_uint8(v_reuseFailAlloc_6122_, sizeof(void*)*6, v_sentMessage_6093_); -lean_ctor_set_uint8(v_reuseFailAlloc_6122_, sizeof(void*)*6 + 2, v_omitBody_6094_); -v___x_6112_ = v_reuseFailAlloc_6122_; -goto v_reusejp_6111_; -} -v_reusejp_6111_: -{ -lean_object* v___x_6113_; lean_object* v___x_6115_; -lean_ctor_set_uint8(v___x_6112_, sizeof(void*)*6 + 1, v___x_6110_); -v___x_6113_ = lean_box(6); -if (v_isShared_6106_ == 0) -{ -lean_ctor_set(v___x_6105_, 0, v___x_6113_); -v___x_6115_ = v___x_6105_; -goto v_reusejp_6114_; -} -else -{ -lean_object* v_reuseFailAlloc_6121_; -v_reuseFailAlloc_6121_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6121_, 0, v___x_6113_); -lean_ctor_set(v_reuseFailAlloc_6121_, 1, v_input_6099_); -lean_ctor_set(v_reuseFailAlloc_6121_, 2, v_messageHead_6100_); -lean_ctor_set(v_reuseFailAlloc_6121_, 3, v_messageCount_6101_); -lean_ctor_set(v_reuseFailAlloc_6121_, 4, v_bodyBytesRead_6102_); -lean_ctor_set(v_reuseFailAlloc_6121_, 5, v_headerBytesRead_6103_); -v___x_6115_ = v_reuseFailAlloc_6121_; -goto v_reusejp_6114_; -} -v_reusejp_6114_: -{ -lean_object* v___x_6116_; lean_object* v___x_6117_; lean_object* v___x_6119_; -lean_ctor_set_uint8(v___x_6115_, sizeof(void*)*6, v___x_6110_); -v___x_6116_ = lean_box(3); -v___x_6117_ = lean_array_push(v_events_6082_, v___x_6116_); -if (v_isShared_6088_ == 0) -{ -lean_ctor_set(v___x_6087_, 4, v___x_6107_); -lean_ctor_set(v___x_6087_, 3, v___x_6117_); -lean_ctor_set(v___x_6087_, 1, v___x_6112_); -lean_ctor_set(v___x_6087_, 0, v___x_6115_); -v___x_6119_ = v___x_6087_; -goto v_reusejp_6118_; -} -else -{ -lean_object* v_reuseFailAlloc_6120_; -v_reuseFailAlloc_6120_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6120_, 0, v___x_6115_); -lean_ctor_set(v_reuseFailAlloc_6120_, 1, v___x_6112_); -lean_ctor_set(v_reuseFailAlloc_6120_, 2, v_config_6081_); -lean_ctor_set(v_reuseFailAlloc_6120_, 3, v___x_6117_); -lean_ctor_set(v_reuseFailAlloc_6120_, 4, v___x_6107_); -lean_ctor_set(v_reuseFailAlloc_6120_, 5, v_instant_6083_); -lean_ctor_set_uint8(v_reuseFailAlloc_6120_, sizeof(void*)*6 + 1, v_forcedFlush_6084_); -lean_ctor_set_uint8(v_reuseFailAlloc_6120_, sizeof(void*)*6 + 2, v_pullBodyStalled_6085_); -v___x_6119_ = v_reuseFailAlloc_6120_; -goto v_reusejp_6118_; -} -v_reusejp_6118_: -{ -lean_ctor_set_uint8(v___x_6119_, sizeof(void*)*6, v___x_6108_); -return v___x_6119_; +lean_object* v___x_5857_; lean_object* v___x_5858_; +v___x_5857_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__7, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__7_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__7); +v___x_5858_ = lean_string_to_utf8(v___x_5857_); +return v___x_5858_; } } -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage___boxed(lean_object* v_dir_6129_, lean_object* v_machine_6130_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__9(void){ _start: { -uint8_t v_dir_boxed_6131_; lean_object* v_res_6132_; -v_dir_boxed_6131_ = lean_unbox(v_dir_6129_); -v_res_6132_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage(v_dir_boxed_6131_, v_machine_6130_); -return v_res_6132_; +lean_object* v___x_5859_; lean_object* v___x_5860_; +v___x_5859_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__8, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__8_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8); +v___x_5860_ = lean_byte_array_size(v___x_5859_); +return v___x_5860_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg(lean_object* v_writer_6133_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue(uint8_t v_dir_5861_, lean_object* v_machine_5862_, lean_object* v_status_5863_){ _start: { -lean_object* v_userDataBytes_6134_; -v_userDataBytes_6134_ = lean_ctor_get(v_writer_6133_, 5); -lean_inc(v_userDataBytes_6134_); -return v_userDataBytes_6134_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg___boxed(lean_object* v_writer_6135_){ -_start: +if (v_dir_5861_ == 0) { -lean_object* v_res_6136_; -v_res_6136_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg(v_writer_6135_); -lean_dec_ref(v_writer_6135_); -return v_res_6136_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes(uint8_t v_dir_6137_, lean_object* v_writer_6138_){ -_start: +lean_object* v_reader_5864_; lean_object* v_state_5865_; +v_reader_5864_ = lean_ctor_get(v_machine_5862_, 0); +lean_inc_ref(v_reader_5864_); +v_state_5865_ = lean_ctor_get(v_reader_5864_, 0); +if (lean_obj_tag(v_state_5865_) == 3) { -lean_object* v_userDataBytes_6139_; -v_userDataBytes_6139_ = lean_ctor_get(v_writer_6138_, 5); -lean_inc(v_userDataBytes_6139_); -return v_userDataBytes_6139_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___boxed(lean_object* v_dir_6140_, lean_object* v_writer_6141_){ -_start: +lean_object* v_writer_5866_; lean_object* v_config_5867_; lean_object* v_events_5868_; lean_object* v_error_5869_; lean_object* v_instant_5870_; uint8_t v_keepAlive_5871_; uint8_t v_forcedFlush_5872_; uint8_t v_pullBodyStalled_5873_; lean_object* v___x_5875_; uint8_t v_isShared_5876_; uint8_t v_isSharedCheck_6178_; +v_writer_5866_ = lean_ctor_get(v_machine_5862_, 1); +v_config_5867_ = lean_ctor_get(v_machine_5862_, 2); +v_events_5868_ = lean_ctor_get(v_machine_5862_, 3); +v_error_5869_ = lean_ctor_get(v_machine_5862_, 4); +v_instant_5870_ = lean_ctor_get(v_machine_5862_, 5); +v_keepAlive_5871_ = lean_ctor_get_uint8(v_machine_5862_, sizeof(void*)*6); +v_forcedFlush_5872_ = lean_ctor_get_uint8(v_machine_5862_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5873_ = lean_ctor_get_uint8(v_machine_5862_, sizeof(void*)*6 + 2); +v_isSharedCheck_6178_ = !lean_is_exclusive(v_machine_5862_); +if (v_isSharedCheck_6178_ == 0) { -uint8_t v_dir_boxed_6142_; lean_object* v_res_6143_; -v_dir_boxed_6142_ = lean_unbox(v_dir_6140_); -v_res_6143_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes(v_dir_boxed_6142_, v_writer_6141_); -lean_dec_ref(v_writer_6141_); -return v_res_6143_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(uint8_t v_dir_6144_, lean_object* v_machine_6145_){ -_start: -{ -lean_object* v_reader_6146_; lean_object* v_writer_6147_; lean_object* v_config_6148_; lean_object* v_events_6149_; lean_object* v_error_6150_; lean_object* v_instant_6151_; uint8_t v_keepAlive_6152_; uint8_t v_forcedFlush_6153_; uint8_t v_pullBodyStalled_6154_; lean_object* v_state_6188_; -v_reader_6146_ = lean_ctor_get(v_machine_6145_, 0); -v_writer_6147_ = lean_ctor_get(v_machine_6145_, 1); -lean_inc_ref(v_writer_6147_); -v_config_6148_ = lean_ctor_get(v_machine_6145_, 2); -v_events_6149_ = lean_ctor_get(v_machine_6145_, 3); -v_error_6150_ = lean_ctor_get(v_machine_6145_, 4); -v_instant_6151_ = lean_ctor_get(v_machine_6145_, 5); -v_keepAlive_6152_ = lean_ctor_get_uint8(v_machine_6145_, sizeof(void*)*6); -v_forcedFlush_6153_ = lean_ctor_get_uint8(v_machine_6145_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6154_ = lean_ctor_get_uint8(v_machine_6145_, sizeof(void*)*6 + 2); -v_state_6188_ = lean_ctor_get(v_reader_6146_, 0); -if (lean_obj_tag(v_state_6188_) == 5) -{ -if (v_keepAlive_6152_ == 0) -{ -lean_object* v___x_6190_; uint8_t v_isShared_6191_; uint8_t v_isSharedCheck_6214_; -lean_inc(v_instant_6151_); -lean_inc(v_error_6150_); -lean_inc_ref(v_events_6149_); -lean_inc_ref(v_config_6148_); -lean_inc_ref(v_reader_6146_); -v_isSharedCheck_6214_ = !lean_is_exclusive(v_machine_6145_); -if (v_isSharedCheck_6214_ == 0) -{ -lean_object* v_unused_6215_; lean_object* v_unused_6216_; lean_object* v_unused_6217_; lean_object* v_unused_6218_; lean_object* v_unused_6219_; lean_object* v_unused_6220_; -v_unused_6215_ = lean_ctor_get(v_machine_6145_, 5); -lean_dec(v_unused_6215_); -v_unused_6216_ = lean_ctor_get(v_machine_6145_, 4); -lean_dec(v_unused_6216_); -v_unused_6217_ = lean_ctor_get(v_machine_6145_, 3); -lean_dec(v_unused_6217_); -v_unused_6218_ = lean_ctor_get(v_machine_6145_, 2); -lean_dec(v_unused_6218_); -v_unused_6219_ = lean_ctor_get(v_machine_6145_, 1); -lean_dec(v_unused_6219_); -v_unused_6220_ = lean_ctor_get(v_machine_6145_, 0); -lean_dec(v_unused_6220_); -v___x_6190_ = v_machine_6145_; -v_isShared_6191_ = v_isSharedCheck_6214_; -goto v_resetjp_6189_; +lean_object* v_unused_6179_; +v_unused_6179_ = lean_ctor_get(v_machine_5862_, 0); +lean_dec(v_unused_6179_); +v___x_5875_ = v_machine_5862_; +v_isShared_5876_ = v_isSharedCheck_6178_; +goto v_resetjp_5874_; } else { -lean_dec(v_machine_6145_); +lean_inc(v_instant_5870_); +lean_inc(v_error_5869_); +lean_inc(v_events_5868_); +lean_inc(v_config_5867_); +lean_inc(v_writer_5866_); +lean_dec(v_machine_5862_); +v___x_5875_ = lean_box(0); +v_isShared_5876_ = v_isSharedCheck_6178_; +goto v_resetjp_5874_; +} +v_resetjp_5874_: +{ +lean_object* v_input_5877_; lean_object* v_messageHead_5878_; lean_object* v_messageCount_5879_; lean_object* v_bodyBytesRead_5880_; lean_object* v_headerBytesRead_5881_; uint8_t v_noMoreInput_5882_; lean_object* v_a_5883_; lean_object* v___x_5884_; uint8_t v___x_5885_; lean_object* v_input_5887_; lean_object* v_messageHead_5888_; lean_object* v_messageCount_5889_; lean_object* v_bodyBytesRead_5890_; lean_object* v_headerBytesRead_5891_; lean_object* v_userData_5892_; lean_object* v_outputData_5893_; lean_object* v_state_5894_; lean_object* v_messageHead_5895_; uint8_t v_sentMessage_5896_; uint8_t v_omitBody_5897_; lean_object* v_userDataBytes_5898_; lean_object* v_config_5899_; lean_object* v_events_5900_; lean_object* v_error_5901_; lean_object* v_instant_5902_; uint8_t v_forcedFlush_5903_; uint8_t v_pullBodyStalled_5904_; lean_object* v_reader_5914_; lean_object* v_userData_5915_; lean_object* v_outputData_5916_; lean_object* v_state_5917_; lean_object* v_messageHead_5918_; uint8_t v_sentMessage_5919_; uint8_t v_omitBody_5920_; lean_object* v_userDataBytes_5921_; lean_object* v_config_5922_; lean_object* v_events_5923_; lean_object* v_error_5924_; lean_object* v_instant_5925_; uint8_t v_forcedFlush_5926_; uint8_t v_pullBodyStalled_5927_; lean_object* v___y_5934_; lean_object* v___y_5951_; uint8_t v___y_5952_; uint8_t v___y_5953_; +v_input_5877_ = lean_ctor_get(v_reader_5864_, 1); +v_messageHead_5878_ = lean_ctor_get(v_reader_5864_, 2); +v_messageCount_5879_ = lean_ctor_get(v_reader_5864_, 3); +v_bodyBytesRead_5880_ = lean_ctor_get(v_reader_5864_, 4); +v_headerBytesRead_5881_ = lean_ctor_get(v_reader_5864_, 5); +v_noMoreInput_5882_ = lean_ctor_get_uint8(v_reader_5864_, sizeof(void*)*6); +v_a_5883_ = lean_ctor_get(v_state_5865_, 0); +v___x_5884_ = lean_box(0); +v___x_5885_ = l_Std_Http_instBEqStatus_beq(v_status_5863_, v___x_5884_); +if (v___x_5885_ == 0) +{ +lean_object* v_userData_5969_; lean_object* v_outputData_5970_; lean_object* v_state_5971_; lean_object* v_knownSize_5972_; lean_object* v_messageHead_5973_; uint8_t v_sentMessage_5974_; uint8_t v_userClosedBody_5975_; uint8_t v_omitBody_5976_; lean_object* v_userDataBytes_5977_; lean_object* v___x_5979_; uint8_t v_isShared_5980_; uint8_t v_isSharedCheck_6102_; +v_userData_5969_ = lean_ctor_get(v_writer_5866_, 0); +v_outputData_5970_ = lean_ctor_get(v_writer_5866_, 1); +v_state_5971_ = lean_ctor_get(v_writer_5866_, 2); +v_knownSize_5972_ = lean_ctor_get(v_writer_5866_, 3); +v_messageHead_5973_ = lean_ctor_get(v_writer_5866_, 4); +v_sentMessage_5974_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6); +v_userClosedBody_5975_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6 + 1); +v_omitBody_5976_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6 + 2); +v_userDataBytes_5977_ = lean_ctor_get(v_writer_5866_, 5); +v_isSharedCheck_6102_ = !lean_is_exclusive(v_writer_5866_); +if (v_isSharedCheck_6102_ == 0) +{ +v___x_5979_ = v_writer_5866_; +v_isShared_5980_ = v_isSharedCheck_6102_; +goto v_resetjp_5978_; +} +else +{ +lean_inc(v_userDataBytes_5977_); +lean_inc(v_messageHead_5973_); +lean_inc(v_knownSize_5972_); +lean_inc(v_state_5971_); +lean_inc(v_outputData_5970_); +lean_inc(v_userData_5969_); +lean_dec(v_writer_5866_); +v___x_5979_ = lean_box(0); +v_isShared_5980_ = v_isSharedCheck_6102_; +goto v_resetjp_5978_; +} +v_resetjp_5978_: +{ +uint8_t v___x_5981_; lean_object* v___x_5982_; lean_object* v___x_5983_; lean_object* v___y_5985_; uint8_t v___y_5986_; uint8_t v___y_5987_; uint8_t v___y_5988_; uint8_t v___y_5989_; uint8_t v___y_5996_; uint8_t v___y_5997_; uint8_t v___y_6010_; lean_object* v___y_6011_; lean_object* v___y_6016_; lean_object* v___y_6017_; uint8_t v___y_6018_; lean_object* v___y_6019_; uint8_t v___y_6030_; lean_object* v___y_6031_; uint8_t v___y_6032_; uint8_t v___y_6047_; uint8_t v___y_6048_; lean_object* v___y_6049_; uint8_t v___y_6055_; uint8_t v___y_6056_; lean_object* v___y_6057_; lean_object* v___y_6058_; lean_object* v___y_6059_; lean_object* v___y_6070_; uint8_t v___y_6071_; uint8_t v___y_6072_; uint8_t v___y_6073_; uint8_t v___y_6088_; lean_object* v___x_6100_; uint8_t v___x_6101_; +v___x_5981_ = 1; +v___x_5982_ = l_Std_Http_Headers_empty; +lean_inc(v_status_5863_); +v___x_5983_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_5983_, 0, v_status_5863_); +lean_ctor_set(v___x_5983_, 1, v___x_5982_); +lean_ctor_set_uint8(v___x_5983_, sizeof(void*)*2, v___x_5981_); +v___x_6100_ = lean_box(1); +v___x_6101_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_5971_, v___x_6100_); +if (v___x_6101_ == 0) +{ +v___y_6088_ = v___x_6101_; +goto v___jp_6087_; +} +else +{ +if (v_sentMessage_5974_ == 0) +{ +v___y_6088_ = v___x_6101_; +goto v___jp_6087_; +} +else +{ +if (v___x_5885_ == 0) +{ +lean_inc(v_headerBytesRead_5881_); +lean_inc(v_bodyBytesRead_5880_); +lean_inc(v_messageCount_5879_); +lean_inc(v_messageHead_5878_); +lean_inc_ref(v_input_5877_); +lean_dec_ref(v___x_5983_); +lean_del_object(v___x_5979_); +lean_dec(v_knownSize_5972_); +lean_dec_ref(v_reader_5864_); +lean_dec(v_status_5863_); +v_input_5887_ = v_input_5877_; +v_messageHead_5888_ = v_messageHead_5878_; +v_messageCount_5889_ = v_messageCount_5879_; +v_bodyBytesRead_5890_ = v_bodyBytesRead_5880_; +v_headerBytesRead_5891_ = v_headerBytesRead_5881_; +v_userData_5892_ = v_userData_5969_; +v_outputData_5893_ = v_outputData_5970_; +v_state_5894_ = v_state_5971_; +v_messageHead_5895_ = v_messageHead_5973_; +v_sentMessage_5896_ = v_sentMessage_5974_; +v_omitBody_5897_ = v_omitBody_5976_; +v_userDataBytes_5898_ = v_userDataBytes_5977_; +v_config_5899_ = v_config_5867_; +v_events_5900_ = v_events_5868_; +v_error_5901_ = v_error_5869_; +v_instant_5902_ = v_instant_5870_; +v_forcedFlush_5903_ = v_forcedFlush_5872_; +v_pullBodyStalled_5904_ = v_pullBodyStalled_5873_; +goto v___jp_5886_; +} +else +{ +v___y_6088_ = v___x_6101_; +goto v___jp_6087_; +} +} +} +v___jp_5984_: +{ +lean_object* v_headerSize_5990_; lean_object* v_machine_5991_; lean_object* v_machine_5992_; lean_object* v_reader_5993_; lean_object* v_state_5994_; +v_headerSize_5990_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_5987_, v___x_5983_, v___y_5986_); +v_machine_5991_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_5985_, v_headerSize_5990_, v___y_5989_); +v_machine_5992_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_5861_, v_machine_5991_, v___x_5983_); +lean_dec_ref(v___x_5983_); +v_reader_5993_ = lean_ctor_get(v_machine_5992_, 0); +lean_inc_ref(v_reader_5993_); +v_state_5994_ = lean_ctor_get(v_reader_5993_, 0); +lean_inc(v_state_5994_); +lean_dec_ref(v_reader_5993_); +if (lean_obj_tag(v_state_5994_) == 7) +{ +lean_dec_ref(v_state_5994_); +v___y_5951_ = v_machine_5992_; +v___y_5952_ = v___y_5986_; +v___y_5953_ = v___y_5988_; +goto v___jp_5950_; +} +else +{ +lean_dec(v_state_5994_); +v___y_5951_ = v_machine_5992_; +v___y_5952_ = v___y_5986_; +v___y_5953_ = v___y_5986_; +goto v___jp_5950_; +} +} +v___jp_5995_: +{ +uint8_t v___x_5998_; lean_object* v___x_5999_; lean_object* v_indexes_6000_; lean_object* v___x_6002_; +v___x_5998_ = 1; +v___x_5999_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_5998_, v___x_5983_); +v_indexes_6000_ = lean_ctor_get(v___x_5999_, 1); +lean_inc_ref(v_indexes_6000_); +lean_dec_ref(v___x_5999_); +lean_inc_ref(v___x_5983_); +if (v_isShared_5980_ == 0) +{ +lean_ctor_set(v___x_5979_, 4, v___x_5983_); +v___x_6002_ = v___x_5979_; +goto v_reusejp_6001_; +} +else +{ +lean_object* v_reuseFailAlloc_6008_; +v_reuseFailAlloc_6008_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6008_, 0, v_userData_5969_); +lean_ctor_set(v_reuseFailAlloc_6008_, 1, v_outputData_5970_); +lean_ctor_set(v_reuseFailAlloc_6008_, 2, v_state_5971_); +lean_ctor_set(v_reuseFailAlloc_6008_, 3, v_knownSize_5972_); +lean_ctor_set(v_reuseFailAlloc_6008_, 4, v___x_5983_); +lean_ctor_set(v_reuseFailAlloc_6008_, 5, v_userDataBytes_5977_); +lean_ctor_set_uint8(v_reuseFailAlloc_6008_, sizeof(void*)*6 + 1, v_userClosedBody_5975_); +lean_ctor_set_uint8(v_reuseFailAlloc_6008_, sizeof(void*)*6 + 2, v_omitBody_5976_); +v___x_6002_ = v_reuseFailAlloc_6008_; +goto v_reusejp_6001_; +} +v_reusejp_6001_: +{ +lean_object* v_machine_6003_; lean_object* v___x_6004_; uint8_t v___x_6005_; +lean_ctor_set_uint8(v___x_6002_, sizeof(void*)*6, v___y_5996_); +v_machine_6003_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_6003_, 0, v_reader_5864_); +lean_ctor_set(v_machine_6003_, 1, v___x_6002_); +lean_ctor_set(v_machine_6003_, 2, v_config_5867_); +lean_ctor_set(v_machine_6003_, 3, v_events_5868_); +lean_ctor_set(v_machine_6003_, 4, v_error_5869_); +lean_ctor_set(v_machine_6003_, 5, v_instant_5870_); +lean_ctor_set_uint8(v_machine_6003_, sizeof(void*)*6, v_keepAlive_5871_); +lean_ctor_set_uint8(v_machine_6003_, sizeof(void*)*6 + 1, v_forcedFlush_5872_); +lean_ctor_set_uint8(v_machine_6003_, sizeof(void*)*6 + 2, v_pullBodyStalled_5873_); +v___x_6004_ = l_Std_Http_Header_Name_contentLength; +v___x_6005_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_6000_, v___x_6004_); +if (v___x_6005_ == 0) +{ +lean_object* v___x_6006_; uint8_t v___x_6007_; +v___x_6006_ = l_Std_Http_Header_Name_transferEncoding; +v___x_6007_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_6000_, v___x_6006_); +lean_dec_ref(v_indexes_6000_); +v___y_5985_ = v_machine_6003_; +v___y_5986_ = v___y_5997_; +v___y_5987_ = v___x_5998_; +v___y_5988_ = v___y_5996_; +v___y_5989_ = v___x_6007_; +goto v___jp_5984_; +} +else +{ +lean_dec_ref(v_indexes_6000_); +v___y_5985_ = v_machine_6003_; +v___y_5986_ = v___y_5997_; +v___y_5987_ = v___x_5998_; +v___y_5988_ = v___y_5996_; +v___y_5989_ = v___x_6005_; +goto v___jp_5984_; +} +} +} +v___jp_6009_: +{ +lean_object* v_message_6012_; lean_object* v___x_3263__overap_6013_; lean_object* v___x_6014_; +v_message_6012_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_6010_, v___x_5983_, v___y_6011_); +v___x_3263__overap_6013_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_6010_); +v___x_6014_ = lean_apply_2(v___x_3263__overap_6013_, v_outputData_5970_, v_message_6012_); +v_input_5887_ = v_input_5877_; +v_messageHead_5888_ = v_messageHead_5878_; +v_messageCount_5889_ = v_messageCount_5879_; +v_bodyBytesRead_5890_ = v_bodyBytesRead_5880_; +v_headerBytesRead_5891_ = v_headerBytesRead_5881_; +v_userData_5892_ = v_userData_5969_; +v_outputData_5893_ = v___x_6014_; +v_state_5894_ = v_state_5971_; +v_messageHead_5895_ = v_messageHead_5973_; +v_sentMessage_5896_ = v_sentMessage_5974_; +v_omitBody_5897_ = v_omitBody_5976_; +v_userDataBytes_5898_ = v_userDataBytes_5977_; +v_config_5899_ = v_config_5867_; +v_events_5900_ = v_events_5868_; +v_error_5901_ = v_error_5869_; +v_instant_5902_ = v_instant_5870_; +v_forcedFlush_5903_ = v_forcedFlush_5872_; +v_pullBodyStalled_5904_ = v_pullBodyStalled_5873_; +goto v___jp_5886_; +} +v___jp_6015_: +{ +lean_object* v___x_6020_; uint8_t v___x_6021_; +v___x_6020_ = lean_array_get_size(v___y_6019_); +v___x_6021_ = lean_nat_dec_lt(v___y_6017_, v___x_6020_); +if (v___x_6021_ == 0) +{ +lean_dec_ref(v___y_6019_); +lean_inc_ref(v___y_6016_); +v___y_6010_ = v___y_6018_; +v___y_6011_ = v___y_6016_; +goto v___jp_6009_; +} +else +{ +uint8_t v___x_6022_; +v___x_6022_ = lean_nat_dec_le(v___x_6020_, v___x_6020_); +if (v___x_6022_ == 0) +{ +if (v___x_6021_ == 0) +{ +lean_dec_ref(v___y_6019_); +lean_inc_ref(v___y_6016_); +v___y_6010_ = v___y_6018_; +v___y_6011_ = v___y_6016_; +goto v___jp_6009_; +} +else +{ +size_t v___x_6023_; size_t v___x_6024_; lean_object* v___x_6025_; +v___x_6023_ = ((size_t)0ULL); +v___x_6024_ = lean_usize_of_nat(v___x_6020_); +lean_inc_ref(v___y_6016_); +v___x_6025_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6019_, v___x_6023_, v___x_6024_, v___y_6016_); +lean_dec_ref(v___y_6019_); +v___y_6010_ = v___y_6018_; +v___y_6011_ = v___x_6025_; +goto v___jp_6009_; +} +} +else +{ +size_t v___x_6026_; size_t v___x_6027_; lean_object* v___x_6028_; +v___x_6026_ = ((size_t)0ULL); +v___x_6027_ = lean_usize_of_nat(v___x_6020_); +lean_inc_ref(v___y_6016_); +v___x_6028_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6019_, v___x_6026_, v___x_6027_, v___y_6016_); +lean_dec_ref(v___y_6019_); +v___y_6010_ = v___y_6018_; +v___y_6011_ = v___x_6028_; +goto v___jp_6009_; +} +} +} +v___jp_6029_: +{ +if (v___y_6032_ == 0) +{ +lean_object* v_entries_6033_; lean_object* v___x_6034_; lean_object* v___x_6035_; lean_object* v___x_6036_; lean_object* v___x_6037_; uint8_t v___x_6038_; +v_entries_6033_ = lean_ctor_get(v___y_6031_, 0); +lean_inc_ref(v_entries_6033_); +lean_dec_ref(v___y_6031_); +v___x_6034_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_6035_ = lean_unsigned_to_nat(0u); +v___x_6036_ = lean_array_get_size(v_entries_6033_); +v___x_6037_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_6038_ = lean_nat_dec_lt(v___x_6035_, v___x_6036_); +if (v___x_6038_ == 0) +{ +lean_dec_ref(v_entries_6033_); +v___y_6016_ = v___x_6034_; +v___y_6017_ = v___x_6035_; +v___y_6018_ = v___y_6030_; +v___y_6019_ = v___x_6037_; +goto v___jp_6015_; +} +else +{ +uint8_t v___x_6039_; +v___x_6039_ = lean_nat_dec_le(v___x_6036_, v___x_6036_); +if (v___x_6039_ == 0) +{ +if (v___x_6038_ == 0) +{ +lean_dec_ref(v_entries_6033_); +v___y_6016_ = v___x_6034_; +v___y_6017_ = v___x_6035_; +v___y_6018_ = v___y_6030_; +v___y_6019_ = v___x_6037_; +goto v___jp_6015_; +} +else +{ +size_t v___x_6040_; size_t v___x_6041_; lean_object* v___x_6042_; +v___x_6040_ = ((size_t)0ULL); +v___x_6041_ = lean_usize_of_nat(v___x_6036_); +v___x_6042_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_6033_, v___x_6040_, v___x_6041_, v___x_6037_); +lean_dec_ref(v_entries_6033_); +v___y_6016_ = v___x_6034_; +v___y_6017_ = v___x_6035_; +v___y_6018_ = v___y_6030_; +v___y_6019_ = v___x_6042_; +goto v___jp_6015_; +} +} +else +{ +size_t v___x_6043_; size_t v___x_6044_; lean_object* v___x_6045_; +v___x_6043_ = ((size_t)0ULL); +v___x_6044_ = lean_usize_of_nat(v___x_6036_); +v___x_6045_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_6033_, v___x_6043_, v___x_6044_, v___x_6037_); +lean_dec_ref(v_entries_6033_); +v___y_6016_ = v___x_6034_; +v___y_6017_ = v___x_6035_; +v___y_6018_ = v___y_6030_; +v___y_6019_ = v___x_6045_; +goto v___jp_6015_; +} +} +} +else +{ +v___y_6010_ = v___y_6030_; +v___y_6011_ = v___y_6031_; +goto v___jp_6009_; +} +} +v___jp_6046_: +{ +lean_object* v___x_6050_; lean_object* v___f_6051_; lean_object* v___f_6052_; uint8_t v___x_6053_; +v___x_6050_ = l_Std_Http_Header_Name_transferEncoding; +v___f_6051_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_6052_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_6053_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_6051_, v___f_6052_, v___x_6050_, v___y_6049_); +if (v___x_6053_ == 0) +{ +v___y_6030_ = v___y_6048_; +v___y_6031_ = v___y_6049_; +v___y_6032_ = v___y_6047_; +goto v___jp_6029_; +} +else +{ +v___y_6030_ = v___y_6048_; +v___y_6031_ = v___y_6049_; +v___y_6032_ = v___x_5885_; +goto v___jp_6029_; +} +} +v___jp_6054_: +{ +lean_object* v___x_6060_; uint8_t v___x_6061_; +v___x_6060_ = lean_array_get_size(v___y_6059_); +v___x_6061_ = lean_nat_dec_lt(v___y_6058_, v___x_6060_); +if (v___x_6061_ == 0) +{ +lean_dec_ref(v___y_6059_); +lean_inc_ref(v___y_6057_); +v___y_6047_ = v___y_6056_; +v___y_6048_ = v___y_6055_; +v___y_6049_ = v___y_6057_; +goto v___jp_6046_; +} +else +{ +uint8_t v___x_6062_; +v___x_6062_ = lean_nat_dec_le(v___x_6060_, v___x_6060_); +if (v___x_6062_ == 0) +{ +if (v___x_6061_ == 0) +{ +lean_dec_ref(v___y_6059_); +lean_inc_ref(v___y_6057_); +v___y_6047_ = v___y_6056_; +v___y_6048_ = v___y_6055_; +v___y_6049_ = v___y_6057_; +goto v___jp_6046_; +} +else +{ +size_t v___x_6063_; size_t v___x_6064_; lean_object* v___x_6065_; +v___x_6063_ = ((size_t)0ULL); +v___x_6064_ = lean_usize_of_nat(v___x_6060_); +lean_inc_ref(v___y_6057_); +v___x_6065_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6059_, v___x_6063_, v___x_6064_, v___y_6057_); +lean_dec_ref(v___y_6059_); +v___y_6047_ = v___y_6056_; +v___y_6048_ = v___y_6055_; +v___y_6049_ = v___x_6065_; +goto v___jp_6046_; +} +} +else +{ +size_t v___x_6066_; size_t v___x_6067_; lean_object* v___x_6068_; +v___x_6066_ = ((size_t)0ULL); +v___x_6067_ = lean_usize_of_nat(v___x_6060_); +lean_inc_ref(v___y_6057_); +v___x_6068_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6059_, v___x_6066_, v___x_6067_, v___y_6057_); +lean_dec_ref(v___y_6059_); +v___y_6047_ = v___y_6056_; +v___y_6048_ = v___y_6055_; +v___y_6049_ = v___x_6068_; +goto v___jp_6046_; +} +} +} +v___jp_6069_: +{ +if (v___y_6073_ == 0) +{ +lean_object* v_entries_6074_; lean_object* v___x_6075_; lean_object* v___x_6076_; lean_object* v___x_6077_; lean_object* v___x_6078_; uint8_t v___x_6079_; +v_entries_6074_ = lean_ctor_get(v___y_6070_, 0); +lean_inc_ref(v_entries_6074_); +lean_dec_ref(v___y_6070_); +v___x_6075_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_6076_ = lean_unsigned_to_nat(0u); +v___x_6077_ = lean_array_get_size(v_entries_6074_); +v___x_6078_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_6079_ = lean_nat_dec_lt(v___x_6076_, v___x_6077_); +if (v___x_6079_ == 0) +{ +lean_dec_ref(v_entries_6074_); +v___y_6055_ = v___y_6072_; +v___y_6056_ = v___y_6071_; +v___y_6057_ = v___x_6075_; +v___y_6058_ = v___x_6076_; +v___y_6059_ = v___x_6078_; +goto v___jp_6054_; +} +else +{ +uint8_t v___x_6080_; +v___x_6080_ = lean_nat_dec_le(v___x_6077_, v___x_6077_); +if (v___x_6080_ == 0) +{ +if (v___x_6079_ == 0) +{ +lean_dec_ref(v_entries_6074_); +v___y_6055_ = v___y_6072_; +v___y_6056_ = v___y_6071_; +v___y_6057_ = v___x_6075_; +v___y_6058_ = v___x_6076_; +v___y_6059_ = v___x_6078_; +goto v___jp_6054_; +} +else +{ +size_t v___x_6081_; size_t v___x_6082_; lean_object* v___x_6083_; +v___x_6081_ = ((size_t)0ULL); +v___x_6082_ = lean_usize_of_nat(v___x_6077_); +v___x_6083_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_6074_, v___x_6081_, v___x_6082_, v___x_6078_); +lean_dec_ref(v_entries_6074_); +v___y_6055_ = v___y_6072_; +v___y_6056_ = v___y_6071_; +v___y_6057_ = v___x_6075_; +v___y_6058_ = v___x_6076_; +v___y_6059_ = v___x_6083_; +goto v___jp_6054_; +} +} +else +{ +size_t v___x_6084_; size_t v___x_6085_; lean_object* v___x_6086_; +v___x_6084_ = ((size_t)0ULL); +v___x_6085_ = lean_usize_of_nat(v___x_6077_); +v___x_6086_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_6074_, v___x_6084_, v___x_6085_, v___x_6078_); +lean_dec_ref(v_entries_6074_); +v___y_6055_ = v___y_6072_; +v___y_6056_ = v___y_6071_; +v___y_6057_ = v___x_6075_; +v___y_6058_ = v___x_6076_; +v___y_6059_ = v___x_6086_; +goto v___jp_6054_; +} +} +} +else +{ +v___y_6047_ = v___y_6071_; +v___y_6048_ = v___y_6072_; +v___y_6049_ = v___y_6070_; +goto v___jp_6046_; +} +} +v___jp_6087_: +{ +if (v___y_6088_ == 0) +{ +lean_inc(v_headerBytesRead_5881_); +lean_inc(v_bodyBytesRead_5880_); +lean_inc(v_messageCount_5879_); +lean_inc(v_messageHead_5878_); +lean_inc_ref(v_input_5877_); +lean_dec_ref(v___x_5983_); +lean_del_object(v___x_5979_); +lean_dec(v_knownSize_5972_); +lean_dec_ref(v_reader_5864_); +lean_dec(v_status_5863_); +v_input_5887_ = v_input_5877_; +v_messageHead_5888_ = v_messageHead_5878_; +v_messageCount_5889_ = v_messageCount_5879_; +v_bodyBytesRead_5890_ = v_bodyBytesRead_5880_; +v_headerBytesRead_5891_ = v_headerBytesRead_5881_; +v_userData_5892_ = v_userData_5969_; +v_outputData_5893_ = v_outputData_5970_; +v_state_5894_ = v_state_5971_; +v_messageHead_5895_ = v_messageHead_5973_; +v_sentMessage_5896_ = v_sentMessage_5974_; +v_omitBody_5897_ = v_omitBody_5976_; +v_userDataBytes_5898_ = v_userDataBytes_5977_; +v_config_5899_ = v_config_5867_; +v_events_5900_ = v_events_5868_; +v_error_5901_ = v_error_5869_; +v_instant_5902_ = v_instant_5870_; +v_forcedFlush_5903_ = v_forcedFlush_5872_; +v_pullBodyStalled_5904_ = v_pullBodyStalled_5873_; +goto v___jp_5886_; +} +else +{ +uint16_t v___x_6089_; uint16_t v___x_6090_; uint8_t v___x_6091_; +v___x_6089_ = 100; +v___x_6090_ = l_Std_Http_Status_toCode(v_status_5863_); +lean_dec(v_status_5863_); +v___x_6091_ = lean_uint16_dec_le(v___x_6089_, v___x_6090_); +if (v___x_6091_ == 0) +{ +lean_dec(v_messageHead_5973_); +v___y_5996_ = v___y_6088_; +v___y_5997_ = v___x_5885_; +goto v___jp_5995_; +} +else +{ +uint16_t v___x_6092_; uint8_t v___x_6093_; +v___x_6092_ = 200; +v___x_6093_ = lean_uint16_dec_lt(v___x_6090_, v___x_6092_); +if (v___x_6093_ == 0) +{ +lean_dec(v_messageHead_5973_); +v___y_5996_ = v___y_6088_; +v___y_5997_ = v___x_5885_; +goto v___jp_5995_; +} +else +{ +uint8_t v___x_6094_; lean_object* v___x_6095_; lean_object* v___x_6096_; lean_object* v___f_6097_; lean_object* v___f_6098_; uint8_t v___x_6099_; +lean_inc(v_headerBytesRead_5881_); +lean_inc(v_bodyBytesRead_5880_); +lean_inc(v_messageCount_5879_); +lean_inc(v_messageHead_5878_); +lean_inc_ref(v_input_5877_); +lean_del_object(v___x_5979_); +lean_dec(v_knownSize_5972_); +lean_dec_ref(v_reader_5864_); +v___x_6094_ = 1; +v___x_6095_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_6094_, v___x_5983_); +v___x_6096_ = l_Std_Http_Header_Name_contentLength; +v___f_6097_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_6098_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_6099_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_6097_, v___f_6098_, v___x_6096_, v___x_6095_); +if (v___x_6099_ == 0) +{ +v___y_6070_ = v___x_6095_; +v___y_6071_ = v___x_6093_; +v___y_6072_ = v___x_6094_; +v___y_6073_ = v___x_6093_; +goto v___jp_6069_; +} +else +{ +v___y_6070_ = v___x_6095_; +v___y_6071_ = v___x_6093_; +v___y_6072_ = v___x_6094_; +v___y_6073_ = v___x_5885_; +goto v___jp_6069_; +} +} +} +} +} +} +} +else +{ +lean_object* v___x_6104_; uint8_t v_isShared_6105_; uint8_t v_isSharedCheck_6171_; +lean_inc(v_a_5883_); +lean_inc(v_headerBytesRead_5881_); +lean_inc(v_bodyBytesRead_5880_); +lean_inc(v_messageCount_5879_); +lean_inc(v_messageHead_5878_); +lean_inc_ref(v_input_5877_); +lean_del_object(v___x_5875_); +lean_dec(v_status_5863_); +v_isSharedCheck_6171_ = !lean_is_exclusive(v_reader_5864_); +if (v_isSharedCheck_6171_ == 0) +{ +lean_object* v_unused_6172_; lean_object* v_unused_6173_; lean_object* v_unused_6174_; lean_object* v_unused_6175_; lean_object* v_unused_6176_; lean_object* v_unused_6177_; +v_unused_6172_ = lean_ctor_get(v_reader_5864_, 5); +lean_dec(v_unused_6172_); +v_unused_6173_ = lean_ctor_get(v_reader_5864_, 4); +lean_dec(v_unused_6173_); +v_unused_6174_ = lean_ctor_get(v_reader_5864_, 3); +lean_dec(v_unused_6174_); +v_unused_6175_ = lean_ctor_get(v_reader_5864_, 2); +lean_dec(v_unused_6175_); +v_unused_6176_ = lean_ctor_get(v_reader_5864_, 1); +lean_dec(v_unused_6176_); +v_unused_6177_ = lean_ctor_get(v_reader_5864_, 0); +lean_dec(v_unused_6177_); +v___x_6104_ = v_reader_5864_; +v_isShared_6105_ = v_isSharedCheck_6171_; +goto v_resetjp_6103_; +} +else +{ +lean_dec(v_reader_5864_); +v___x_6104_ = lean_box(0); +v_isShared_6105_ = v_isSharedCheck_6171_; +goto v_resetjp_6103_; +} +v_resetjp_6103_: +{ +lean_object* v_outputData_6106_; lean_object* v_userData_6107_; lean_object* v_state_6108_; lean_object* v_knownSize_6109_; lean_object* v_messageHead_6110_; uint8_t v_sentMessage_6111_; uint8_t v_userClosedBody_6112_; uint8_t v_omitBody_6113_; lean_object* v_userDataBytes_6114_; lean_object* v___x_6116_; uint8_t v_isShared_6117_; uint8_t v_isSharedCheck_6170_; +v_outputData_6106_ = lean_ctor_get(v_writer_5866_, 1); +v_userData_6107_ = lean_ctor_get(v_writer_5866_, 0); +v_state_6108_ = lean_ctor_get(v_writer_5866_, 2); +v_knownSize_6109_ = lean_ctor_get(v_writer_5866_, 3); +v_messageHead_6110_ = lean_ctor_get(v_writer_5866_, 4); +v_sentMessage_6111_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6); +v_userClosedBody_6112_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6 + 1); +v_omitBody_6113_ = lean_ctor_get_uint8(v_writer_5866_, sizeof(void*)*6 + 2); +v_userDataBytes_6114_ = lean_ctor_get(v_writer_5866_, 5); +v_isSharedCheck_6170_ = !lean_is_exclusive(v_writer_5866_); +if (v_isSharedCheck_6170_ == 0) +{ +v___x_6116_ = v_writer_5866_; +v_isShared_6117_ = v_isSharedCheck_6170_; +goto v_resetjp_6115_; +} +else +{ +lean_inc(v_userDataBytes_6114_); +lean_inc(v_messageHead_6110_); +lean_inc(v_knownSize_6109_); +lean_inc(v_state_6108_); +lean_inc(v_outputData_6106_); +lean_inc(v_userData_6107_); +lean_dec(v_writer_5866_); +v___x_6116_ = lean_box(0); +v_isShared_6117_ = v_isSharedCheck_6170_; +goto v_resetjp_6115_; +} +v_resetjp_6115_: +{ +lean_object* v_data_6118_; lean_object* v_size_6119_; lean_object* v___x_6121_; uint8_t v_isShared_6122_; uint8_t v_isSharedCheck_6169_; +v_data_6118_ = lean_ctor_get(v_outputData_6106_, 0); +v_size_6119_ = lean_ctor_get(v_outputData_6106_, 1); +v_isSharedCheck_6169_ = !lean_is_exclusive(v_outputData_6106_); +if (v_isSharedCheck_6169_ == 0) +{ +v___x_6121_ = v_outputData_6106_; +v_isShared_6122_ = v_isSharedCheck_6169_; +goto v_resetjp_6120_; +} +else +{ +lean_inc(v_size_6119_); +lean_inc(v_data_6118_); +lean_dec(v_outputData_6106_); +v___x_6121_ = lean_box(0); +v_isShared_6122_ = v_isSharedCheck_6169_; +goto v_resetjp_6120_; +} +v_resetjp_6120_: +{ +lean_object* v___f_6123_; lean_object* v___x_6124_; lean_object* v___x_6125_; lean_object* v___x_6126_; lean_object* v___x_6127_; lean_object* v___x_6128_; lean_object* v___x_6129_; lean_object* v___x_6130_; lean_object* v___x_6131_; lean_object* v___x_6132_; lean_object* v___x_6133_; lean_object* v___x_6134_; lean_object* v___x_6135_; lean_object* v___x_6136_; lean_object* v___x_6137_; lean_object* v___x_6138_; lean_object* v___x_6139_; lean_object* v___x_6140_; lean_object* v___x_6141_; lean_object* v___x_6142_; lean_object* v___x_6143_; lean_object* v___x_6144_; lean_object* v___x_6145_; lean_object* v___x_6146_; lean_object* v_buffer_6148_; +v___f_6123_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__0)); +v___x_6124_ = l_Std_Http_Headers_empty; +v___x_6125_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__0, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__0_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__0); +v___x_6126_ = lean_array_push(v_data_6118_, v___x_6125_); +v___x_6127_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__1, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__1_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__1); +v___x_6128_ = lean_nat_add(v_size_6119_, v___x_6127_); +lean_dec(v_size_6119_); +v___x_6129_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__15); +v___x_6130_ = lean_array_push(v___x_6126_, v___x_6129_); +v___x_6131_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__16); +v___x_6132_ = lean_nat_add(v___x_6128_, v___x_6131_); +lean_dec(v___x_6128_); +v___x_6133_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__5, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__5_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__5); +v___x_6134_ = lean_array_push(v___x_6130_, v___x_6133_); +v___x_6135_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__6, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__6_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__6); +v___x_6136_ = lean_nat_add(v___x_6132_, v___x_6135_); +lean_dec(v___x_6132_); +v___x_6137_ = lean_array_push(v___x_6134_, v___x_6129_); +v___x_6138_ = lean_nat_add(v___x_6136_, v___x_6131_); +lean_dec(v___x_6136_); +v___x_6139_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__8, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__8_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__8); +v___x_6140_ = lean_array_push(v___x_6137_, v___x_6139_); +v___x_6141_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_canContinue___closed__9, &l_Std_Http_Protocol_H1_Machine_canContinue___closed__9_once, _init_l_Std_Http_Protocol_H1_Machine_canContinue___closed__9); +v___x_6142_ = lean_nat_add(v___x_6138_, v___x_6141_); +lean_dec(v___x_6138_); +v___x_6143_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__1); +v___x_6144_ = lean_array_push(v___x_6140_, v___x_6143_); +v___x_6145_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__2); +v___x_6146_ = lean_nat_add(v___x_6142_, v___x_6145_); +lean_dec(v___x_6142_); +if (v_isShared_6122_ == 0) +{ +lean_ctor_set(v___x_6121_, 1, v___x_6146_); +lean_ctor_set(v___x_6121_, 0, v___x_6144_); +v_buffer_6148_ = v___x_6121_; +goto v_reusejp_6147_; +} +else +{ +lean_object* v_reuseFailAlloc_6168_; +v_reuseFailAlloc_6168_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_6168_, 0, v___x_6144_); +lean_ctor_set(v_reuseFailAlloc_6168_, 1, v___x_6146_); +v_buffer_6148_ = v_reuseFailAlloc_6168_; +goto v_reusejp_6147_; +} +v_reusejp_6147_: +{ +lean_object* v_buffer_6149_; lean_object* v_data_6150_; lean_object* v_size_6151_; lean_object* v___x_6153_; uint8_t v_isShared_6154_; uint8_t v_isSharedCheck_6167_; +v_buffer_6149_ = l_Std_Http_Headers_fold___redArg(v___x_6124_, v_buffer_6148_, v___f_6123_); +v_data_6150_ = lean_ctor_get(v_buffer_6149_, 0); +v_size_6151_ = lean_ctor_get(v_buffer_6149_, 1); +v_isSharedCheck_6167_ = !lean_is_exclusive(v_buffer_6149_); +if (v_isSharedCheck_6167_ == 0) +{ +v___x_6153_ = v_buffer_6149_; +v_isShared_6154_ = v_isSharedCheck_6167_; +goto v_resetjp_6152_; +} +else +{ +lean_inc(v_size_6151_); +lean_inc(v_data_6150_); +lean_dec(v_buffer_6149_); +v___x_6153_ = lean_box(0); +v_isShared_6154_ = v_isSharedCheck_6167_; +goto v_resetjp_6152_; +} +v_resetjp_6152_: +{ +lean_object* v___x_6155_; lean_object* v___x_6156_; lean_object* v___x_6158_; +v___x_6155_ = lean_array_push(v_data_6150_, v___x_6143_); +v___x_6156_ = lean_nat_add(v_size_6151_, v___x_6145_); +lean_dec(v_size_6151_); +if (v_isShared_6154_ == 0) +{ +lean_ctor_set(v___x_6153_, 1, v___x_6156_); +lean_ctor_set(v___x_6153_, 0, v___x_6155_); +v___x_6158_ = v___x_6153_; +goto v_reusejp_6157_; +} +else +{ +lean_object* v_reuseFailAlloc_6166_; +v_reuseFailAlloc_6166_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_6166_, 0, v___x_6155_); +lean_ctor_set(v_reuseFailAlloc_6166_, 1, v___x_6156_); +v___x_6158_ = v_reuseFailAlloc_6166_; +goto v_reusejp_6157_; +} +v_reusejp_6157_: +{ +lean_object* v___x_6160_; +if (v_isShared_6117_ == 0) +{ +lean_ctor_set(v___x_6116_, 1, v___x_6158_); +v___x_6160_ = v___x_6116_; +goto v_reusejp_6159_; +} +else +{ +lean_object* v_reuseFailAlloc_6165_; +v_reuseFailAlloc_6165_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6165_, 0, v_userData_6107_); +lean_ctor_set(v_reuseFailAlloc_6165_, 1, v___x_6158_); +lean_ctor_set(v_reuseFailAlloc_6165_, 2, v_state_6108_); +lean_ctor_set(v_reuseFailAlloc_6165_, 3, v_knownSize_6109_); +lean_ctor_set(v_reuseFailAlloc_6165_, 4, v_messageHead_6110_); +lean_ctor_set(v_reuseFailAlloc_6165_, 5, v_userDataBytes_6114_); +lean_ctor_set_uint8(v_reuseFailAlloc_6165_, sizeof(void*)*6, v_sentMessage_6111_); +lean_ctor_set_uint8(v_reuseFailAlloc_6165_, sizeof(void*)*6 + 1, v_userClosedBody_6112_); +lean_ctor_set_uint8(v_reuseFailAlloc_6165_, sizeof(void*)*6 + 2, v_omitBody_6113_); +v___x_6160_ = v_reuseFailAlloc_6165_; +goto v_reusejp_6159_; +} +v_reusejp_6159_: +{ +lean_object* v___x_6162_; +if (v_isShared_6105_ == 0) +{ +lean_ctor_set(v___x_6104_, 0, v_a_5883_); +v___x_6162_ = v___x_6104_; +goto v_reusejp_6161_; +} +else +{ +lean_object* v_reuseFailAlloc_6164_; +v_reuseFailAlloc_6164_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_6164_, 0, v_a_5883_); +lean_ctor_set(v_reuseFailAlloc_6164_, 1, v_input_5877_); +lean_ctor_set(v_reuseFailAlloc_6164_, 2, v_messageHead_5878_); +lean_ctor_set(v_reuseFailAlloc_6164_, 3, v_messageCount_5879_); +lean_ctor_set(v_reuseFailAlloc_6164_, 4, v_bodyBytesRead_5880_); +lean_ctor_set(v_reuseFailAlloc_6164_, 5, v_headerBytesRead_5881_); +lean_ctor_set_uint8(v_reuseFailAlloc_6164_, sizeof(void*)*6, v_noMoreInput_5882_); +v___x_6162_ = v_reuseFailAlloc_6164_; +goto v_reusejp_6161_; +} +v_reusejp_6161_: +{ +lean_object* v___x_6163_; +v___x_6163_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_6163_, 0, v___x_6162_); +lean_ctor_set(v___x_6163_, 1, v___x_6160_); +lean_ctor_set(v___x_6163_, 2, v_config_5867_); +lean_ctor_set(v___x_6163_, 3, v_events_5868_); +lean_ctor_set(v___x_6163_, 4, v_error_5869_); +lean_ctor_set(v___x_6163_, 5, v_instant_5870_); +lean_ctor_set_uint8(v___x_6163_, sizeof(void*)*6, v_keepAlive_5871_); +lean_ctor_set_uint8(v___x_6163_, sizeof(void*)*6 + 1, v_forcedFlush_5872_); +lean_ctor_set_uint8(v___x_6163_, sizeof(void*)*6 + 2, v_pullBodyStalled_5873_); +return v___x_6163_; +} +} +} +} +} +} +} +} +} +v___jp_5886_: +{ +lean_object* v___x_5905_; uint8_t v___x_5906_; lean_object* v___x_5907_; lean_object* v___x_5908_; lean_object* v___x_5909_; lean_object* v___x_5911_; +v___x_5905_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__2)); +v___x_5906_ = 1; +v___x_5907_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_5907_, 0, v_userData_5892_); +lean_ctor_set(v___x_5907_, 1, v_outputData_5893_); +lean_ctor_set(v___x_5907_, 2, v_state_5894_); +lean_ctor_set(v___x_5907_, 3, v___x_5905_); +lean_ctor_set(v___x_5907_, 4, v_messageHead_5895_); +lean_ctor_set(v___x_5907_, 5, v_userDataBytes_5898_); +lean_ctor_set_uint8(v___x_5907_, sizeof(void*)*6, v_sentMessage_5896_); +lean_ctor_set_uint8(v___x_5907_, sizeof(void*)*6 + 1, v___x_5906_); +lean_ctor_set_uint8(v___x_5907_, sizeof(void*)*6 + 2, v_omitBody_5897_); +v___x_5908_ = lean_box(6); +v___x_5909_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_5909_, 0, v___x_5908_); +lean_ctor_set(v___x_5909_, 1, v_input_5887_); +lean_ctor_set(v___x_5909_, 2, v_messageHead_5888_); +lean_ctor_set(v___x_5909_, 3, v_messageCount_5889_); +lean_ctor_set(v___x_5909_, 4, v_bodyBytesRead_5890_); +lean_ctor_set(v___x_5909_, 5, v_headerBytesRead_5891_); +lean_ctor_set_uint8(v___x_5909_, sizeof(void*)*6, v___x_5906_); +if (v_isShared_5876_ == 0) +{ +lean_ctor_set(v___x_5875_, 5, v_instant_5902_); +lean_ctor_set(v___x_5875_, 4, v_error_5901_); +lean_ctor_set(v___x_5875_, 3, v_events_5900_); +lean_ctor_set(v___x_5875_, 2, v_config_5899_); +lean_ctor_set(v___x_5875_, 1, v___x_5907_); +lean_ctor_set(v___x_5875_, 0, v___x_5909_); +v___x_5911_ = v___x_5875_; +goto v_reusejp_5910_; +} +else +{ +lean_object* v_reuseFailAlloc_5912_; +v_reuseFailAlloc_5912_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_5912_, 0, v___x_5909_); +lean_ctor_set(v_reuseFailAlloc_5912_, 1, v___x_5907_); +lean_ctor_set(v_reuseFailAlloc_5912_, 2, v_config_5899_); +lean_ctor_set(v_reuseFailAlloc_5912_, 3, v_events_5900_); +lean_ctor_set(v_reuseFailAlloc_5912_, 4, v_error_5901_); +lean_ctor_set(v_reuseFailAlloc_5912_, 5, v_instant_5902_); +v___x_5911_ = v_reuseFailAlloc_5912_; +goto v_reusejp_5910_; +} +v_reusejp_5910_: +{ +lean_ctor_set_uint8(v___x_5911_, sizeof(void*)*6, v___x_5885_); +lean_ctor_set_uint8(v___x_5911_, sizeof(void*)*6 + 1, v_forcedFlush_5903_); +lean_ctor_set_uint8(v___x_5911_, sizeof(void*)*6 + 2, v_pullBodyStalled_5904_); +return v___x_5911_; +} +} +v___jp_5913_: +{ +lean_object* v_input_5928_; lean_object* v_messageHead_5929_; lean_object* v_messageCount_5930_; lean_object* v_bodyBytesRead_5931_; lean_object* v_headerBytesRead_5932_; +v_input_5928_ = lean_ctor_get(v_reader_5914_, 1); +lean_inc_ref(v_input_5928_); +v_messageHead_5929_ = lean_ctor_get(v_reader_5914_, 2); +lean_inc(v_messageHead_5929_); +v_messageCount_5930_ = lean_ctor_get(v_reader_5914_, 3); +lean_inc(v_messageCount_5930_); +v_bodyBytesRead_5931_ = lean_ctor_get(v_reader_5914_, 4); +lean_inc(v_bodyBytesRead_5931_); +v_headerBytesRead_5932_ = lean_ctor_get(v_reader_5914_, 5); +lean_inc(v_headerBytesRead_5932_); +lean_dec_ref(v_reader_5914_); +v_input_5887_ = v_input_5928_; +v_messageHead_5888_ = v_messageHead_5929_; +v_messageCount_5889_ = v_messageCount_5930_; +v_bodyBytesRead_5890_ = v_bodyBytesRead_5931_; +v_headerBytesRead_5891_ = v_headerBytesRead_5932_; +v_userData_5892_ = v_userData_5915_; +v_outputData_5893_ = v_outputData_5916_; +v_state_5894_ = v_state_5917_; +v_messageHead_5895_ = v_messageHead_5918_; +v_sentMessage_5896_ = v_sentMessage_5919_; +v_omitBody_5897_ = v_omitBody_5920_; +v_userDataBytes_5898_ = v_userDataBytes_5921_; +v_config_5899_ = v_config_5922_; +v_events_5900_ = v_events_5923_; +v_error_5901_ = v_error_5924_; +v_instant_5902_ = v_instant_5925_; +v_forcedFlush_5903_ = v_forcedFlush_5926_; +v_pullBodyStalled_5904_ = v_pullBodyStalled_5927_; +goto v___jp_5886_; +} +v___jp_5933_: +{ +lean_object* v_writer_5935_; lean_object* v_reader_5936_; lean_object* v_config_5937_; lean_object* v_events_5938_; lean_object* v_error_5939_; lean_object* v_instant_5940_; uint8_t v_forcedFlush_5941_; uint8_t v_pullBodyStalled_5942_; lean_object* v_userData_5943_; lean_object* v_outputData_5944_; lean_object* v_messageHead_5945_; uint8_t v_sentMessage_5946_; uint8_t v_omitBody_5947_; lean_object* v_userDataBytes_5948_; lean_object* v___x_5949_; +v_writer_5935_ = lean_ctor_get(v___y_5934_, 1); +lean_inc_ref(v_writer_5935_); +v_reader_5936_ = lean_ctor_get(v___y_5934_, 0); +lean_inc_ref(v_reader_5936_); +v_config_5937_ = lean_ctor_get(v___y_5934_, 2); +lean_inc_ref(v_config_5937_); +v_events_5938_ = lean_ctor_get(v___y_5934_, 3); +lean_inc_ref(v_events_5938_); +v_error_5939_ = lean_ctor_get(v___y_5934_, 4); +lean_inc(v_error_5939_); +v_instant_5940_ = lean_ctor_get(v___y_5934_, 5); +lean_inc(v_instant_5940_); +v_forcedFlush_5941_ = lean_ctor_get_uint8(v___y_5934_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5942_ = lean_ctor_get_uint8(v___y_5934_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_5934_); +v_userData_5943_ = lean_ctor_get(v_writer_5935_, 0); +lean_inc_ref(v_userData_5943_); +v_outputData_5944_ = lean_ctor_get(v_writer_5935_, 1); +lean_inc_ref(v_outputData_5944_); +v_messageHead_5945_ = lean_ctor_get(v_writer_5935_, 4); +lean_inc(v_messageHead_5945_); +v_sentMessage_5946_ = lean_ctor_get_uint8(v_writer_5935_, sizeof(void*)*6); +v_omitBody_5947_ = lean_ctor_get_uint8(v_writer_5935_, sizeof(void*)*6 + 2); +v_userDataBytes_5948_ = lean_ctor_get(v_writer_5935_, 5); +lean_inc(v_userDataBytes_5948_); +lean_dec_ref(v_writer_5935_); +v___x_5949_ = lean_box(2); +v_reader_5914_ = v_reader_5936_; +v_userData_5915_ = v_userData_5943_; +v_outputData_5916_ = v_outputData_5944_; +v_state_5917_ = v___x_5949_; +v_messageHead_5918_ = v_messageHead_5945_; +v_sentMessage_5919_ = v_sentMessage_5946_; +v_omitBody_5920_ = v_omitBody_5947_; +v_userDataBytes_5921_ = v_userDataBytes_5948_; +v_config_5922_ = v_config_5937_; +v_events_5923_ = v_events_5938_; +v_error_5924_ = v_error_5939_; +v_instant_5925_ = v_instant_5940_; +v_forcedFlush_5926_ = v_forcedFlush_5941_; +v_pullBodyStalled_5927_ = v_pullBodyStalled_5942_; +goto v___jp_5913_; +} +v___jp_5950_: +{ +if (v___y_5953_ == 0) +{ +v___y_5934_ = v___y_5951_; +goto v___jp_5933_; +} +else +{ +if (v___y_5952_ == 0) +{ +lean_object* v_writer_5954_; lean_object* v_reader_5955_; lean_object* v_config_5956_; lean_object* v_events_5957_; lean_object* v_error_5958_; lean_object* v_instant_5959_; uint8_t v_forcedFlush_5960_; uint8_t v_pullBodyStalled_5961_; lean_object* v_userData_5962_; lean_object* v_outputData_5963_; lean_object* v_state_5964_; lean_object* v_messageHead_5965_; uint8_t v_sentMessage_5966_; uint8_t v_omitBody_5967_; lean_object* v_userDataBytes_5968_; +v_writer_5954_ = lean_ctor_get(v___y_5951_, 1); +lean_inc_ref(v_writer_5954_); +v_reader_5955_ = lean_ctor_get(v___y_5951_, 0); +lean_inc_ref(v_reader_5955_); +v_config_5956_ = lean_ctor_get(v___y_5951_, 2); +lean_inc_ref(v_config_5956_); +v_events_5957_ = lean_ctor_get(v___y_5951_, 3); +lean_inc_ref(v_events_5957_); +v_error_5958_ = lean_ctor_get(v___y_5951_, 4); +lean_inc(v_error_5958_); +v_instant_5959_ = lean_ctor_get(v___y_5951_, 5); +lean_inc(v_instant_5959_); +v_forcedFlush_5960_ = lean_ctor_get_uint8(v___y_5951_, sizeof(void*)*6 + 1); +v_pullBodyStalled_5961_ = lean_ctor_get_uint8(v___y_5951_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_5951_); +v_userData_5962_ = lean_ctor_get(v_writer_5954_, 0); +lean_inc_ref(v_userData_5962_); +v_outputData_5963_ = lean_ctor_get(v_writer_5954_, 1); +lean_inc_ref(v_outputData_5963_); +v_state_5964_ = lean_ctor_get(v_writer_5954_, 2); +lean_inc(v_state_5964_); +v_messageHead_5965_ = lean_ctor_get(v_writer_5954_, 4); +lean_inc(v_messageHead_5965_); +v_sentMessage_5966_ = lean_ctor_get_uint8(v_writer_5954_, sizeof(void*)*6); +v_omitBody_5967_ = lean_ctor_get_uint8(v_writer_5954_, sizeof(void*)*6 + 2); +v_userDataBytes_5968_ = lean_ctor_get(v_writer_5954_, 5); +lean_inc(v_userDataBytes_5968_); +lean_dec_ref(v_writer_5954_); +v_reader_5914_ = v_reader_5955_; +v_userData_5915_ = v_userData_5962_; +v_outputData_5916_ = v_outputData_5963_; +v_state_5917_ = v_state_5964_; +v_messageHead_5918_ = v_messageHead_5965_; +v_sentMessage_5919_ = v_sentMessage_5966_; +v_omitBody_5920_ = v_omitBody_5967_; +v_userDataBytes_5921_ = v_userDataBytes_5968_; +v_config_5922_ = v_config_5956_; +v_events_5923_ = v_events_5957_; +v_error_5924_ = v_error_5958_; +v_instant_5925_ = v_instant_5959_; +v_forcedFlush_5926_ = v_forcedFlush_5960_; +v_pullBodyStalled_5927_ = v_pullBodyStalled_5961_; +goto v___jp_5913_; +} +else +{ +v___y_5934_ = v___y_5951_; +goto v___jp_5933_; +} +} +} +} +} +else +{ +lean_dec_ref(v_reader_5864_); +lean_dec(v_status_5863_); +return v_machine_5862_; +} +} +else +{ +lean_dec(v_status_5863_); +return v_machine_5862_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_canContinue___boxed(lean_object* v_dir_6180_, lean_object* v_machine_6181_, lean_object* v_status_6182_){ +_start: +{ +uint8_t v_dir_boxed_6183_; lean_object* v_res_6184_; +v_dir_boxed_6183_ = lean_unbox(v_dir_6180_); +v_res_6184_ = l_Std_Http_Protocol_H1_Machine_canContinue(v_dir_boxed_6183_, v_machine_6181_, v_status_6182_); +return v_res_6184_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(lean_object* v_a_6185_, lean_object* v_x_6186_){ +_start: +{ +lean_object* v___x_6187_; lean_object* v_entries_6188_; lean_object* v_i_6189_; +v___x_6187_ = l_Std_Http_Headers_empty; +v_entries_6188_ = lean_ctor_get(v___x_6187_, 0); +v_i_6189_ = lean_array_get_size(v_entries_6188_); +if (lean_obj_tag(v_x_6186_) == 0) +{ +lean_object* v___x_6190_; lean_object* v___x_6191_; lean_object* v_val_6192_; lean_object* v___x_6193_; v___x_6190_ = lean_box(0); -v_isShared_6191_ = v_isSharedCheck_6214_; -goto v_resetjp_6189_; -} -v_resetjp_6189_: -{ -lean_object* v_userData_6192_; lean_object* v_outputData_6193_; lean_object* v_knownSize_6194_; lean_object* v_messageHead_6195_; uint8_t v_sentMessage_6196_; uint8_t v_userClosedBody_6197_; uint8_t v_omitBody_6198_; lean_object* v_userDataBytes_6199_; lean_object* v___x_6201_; uint8_t v_isShared_6202_; uint8_t v_isSharedCheck_6212_; -v_userData_6192_ = lean_ctor_get(v_writer_6147_, 0); -v_outputData_6193_ = lean_ctor_get(v_writer_6147_, 1); -v_knownSize_6194_ = lean_ctor_get(v_writer_6147_, 3); -v_messageHead_6195_ = lean_ctor_get(v_writer_6147_, 4); -v_sentMessage_6196_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6); -v_userClosedBody_6197_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 1); -v_omitBody_6198_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 2); -v_userDataBytes_6199_ = lean_ctor_get(v_writer_6147_, 5); -v_isSharedCheck_6212_ = !lean_is_exclusive(v_writer_6147_); -if (v_isSharedCheck_6212_ == 0) -{ -lean_object* v_unused_6213_; -v_unused_6213_ = lean_ctor_get(v_writer_6147_, 2); -lean_dec(v_unused_6213_); -v___x_6201_ = v_writer_6147_; -v_isShared_6202_ = v_isSharedCheck_6212_; -goto v_resetjp_6200_; +v___x_6191_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_6189_, v___x_6190_); +v_val_6192_ = lean_ctor_get(v___x_6191_, 0); +lean_inc(v_val_6192_); +lean_dec(v___x_6191_); +v___x_6193_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_6193_, 0, v_a_6185_); +lean_ctor_set(v___x_6193_, 1, v_val_6192_); +lean_ctor_set(v___x_6193_, 2, v_x_6186_); +return v___x_6193_; } else { -lean_inc(v_userDataBytes_6199_); -lean_inc(v_messageHead_6195_); -lean_inc(v_knownSize_6194_); -lean_inc(v_outputData_6193_); -lean_inc(v_userData_6192_); -lean_dec(v_writer_6147_); -v___x_6201_ = lean_box(0); -v_isShared_6202_ = v_isSharedCheck_6212_; -goto v_resetjp_6200_; -} -v_resetjp_6200_: +lean_object* v_key_6194_; lean_object* v_value_6195_; lean_object* v_tail_6196_; lean_object* v___x_6198_; uint8_t v_isShared_6199_; uint8_t v_isSharedCheck_6211_; +v_key_6194_ = lean_ctor_get(v_x_6186_, 0); +v_value_6195_ = lean_ctor_get(v_x_6186_, 1); +v_tail_6196_ = lean_ctor_get(v_x_6186_, 2); +v_isSharedCheck_6211_ = !lean_is_exclusive(v_x_6186_); +if (v_isSharedCheck_6211_ == 0) { -lean_object* v___x_6203_; lean_object* v___x_6205_; -v___x_6203_ = lean_box(5); -if (v_isShared_6202_ == 0) -{ -lean_ctor_set(v___x_6201_, 2, v___x_6203_); -v___x_6205_ = v___x_6201_; -goto v_reusejp_6204_; +v___x_6198_ = v_x_6186_; +v_isShared_6199_ = v_isSharedCheck_6211_; +goto v_resetjp_6197_; } else { -lean_object* v_reuseFailAlloc_6211_; -v_reuseFailAlloc_6211_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6211_, 0, v_userData_6192_); -lean_ctor_set(v_reuseFailAlloc_6211_, 1, v_outputData_6193_); -lean_ctor_set(v_reuseFailAlloc_6211_, 2, v___x_6203_); -lean_ctor_set(v_reuseFailAlloc_6211_, 3, v_knownSize_6194_); -lean_ctor_set(v_reuseFailAlloc_6211_, 4, v_messageHead_6195_); -lean_ctor_set(v_reuseFailAlloc_6211_, 5, v_userDataBytes_6199_); -lean_ctor_set_uint8(v_reuseFailAlloc_6211_, sizeof(void*)*6, v_sentMessage_6196_); -lean_ctor_set_uint8(v_reuseFailAlloc_6211_, sizeof(void*)*6 + 1, v_userClosedBody_6197_); -lean_ctor_set_uint8(v_reuseFailAlloc_6211_, sizeof(void*)*6 + 2, v_omitBody_6198_); -v___x_6205_ = v_reuseFailAlloc_6211_; -goto v_reusejp_6204_; +lean_inc(v_tail_6196_); +lean_inc(v_value_6195_); +lean_inc(v_key_6194_); +lean_dec(v_x_6186_); +v___x_6198_ = lean_box(0); +v_isShared_6199_ = v_isSharedCheck_6211_; +goto v_resetjp_6197_; } -v_reusejp_6204_: +v_resetjp_6197_: { -lean_object* v___x_6206_; lean_object* v___x_6207_; lean_object* v___x_6209_; -v___x_6206_ = lean_box(3); -v___x_6207_ = lean_array_push(v_events_6149_, v___x_6206_); -if (v_isShared_6191_ == 0) +uint8_t v___x_6200_; +v___x_6200_ = lean_string_dec_eq(v_key_6194_, v_a_6185_); +if (v___x_6200_ == 0) { -lean_ctor_set(v___x_6190_, 3, v___x_6207_); -lean_ctor_set(v___x_6190_, 1, v___x_6205_); -v___x_6209_ = v___x_6190_; +lean_object* v_tail_6201_; lean_object* v___x_6203_; +v_tail_6201_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(v_a_6185_, v_tail_6196_); +if (v_isShared_6199_ == 0) +{ +lean_ctor_set(v___x_6198_, 2, v_tail_6201_); +v___x_6203_ = v___x_6198_; +goto v_reusejp_6202_; +} +else +{ +lean_object* v_reuseFailAlloc_6204_; +v_reuseFailAlloc_6204_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_6204_, 0, v_key_6194_); +lean_ctor_set(v_reuseFailAlloc_6204_, 1, v_value_6195_); +lean_ctor_set(v_reuseFailAlloc_6204_, 2, v_tail_6201_); +v___x_6203_ = v_reuseFailAlloc_6204_; +goto v_reusejp_6202_; +} +v_reusejp_6202_: +{ +return v___x_6203_; +} +} +else +{ +lean_object* v___x_6205_; lean_object* v___x_6206_; lean_object* v_val_6207_; lean_object* v___x_6209_; +lean_dec(v_key_6194_); +v___x_6205_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_6205_, 0, v_value_6195_); +v___x_6206_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___lam__0(v_i_6189_, v___x_6205_); +v_val_6207_ = lean_ctor_get(v___x_6206_, 0); +lean_inc(v_val_6207_); +lean_dec(v___x_6206_); +if (v_isShared_6199_ == 0) +{ +lean_ctor_set(v___x_6198_, 1, v_val_6207_); +lean_ctor_set(v___x_6198_, 0, v_a_6185_); +v___x_6209_ = v___x_6198_; goto v_reusejp_6208_; } else { lean_object* v_reuseFailAlloc_6210_; -v_reuseFailAlloc_6210_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6210_, 0, v_reader_6146_); -lean_ctor_set(v_reuseFailAlloc_6210_, 1, v___x_6205_); -lean_ctor_set(v_reuseFailAlloc_6210_, 2, v_config_6148_); -lean_ctor_set(v_reuseFailAlloc_6210_, 3, v___x_6207_); -lean_ctor_set(v_reuseFailAlloc_6210_, 4, v_error_6150_); -lean_ctor_set(v_reuseFailAlloc_6210_, 5, v_instant_6151_); -lean_ctor_set_uint8(v_reuseFailAlloc_6210_, sizeof(void*)*6, v_keepAlive_6152_); -lean_ctor_set_uint8(v_reuseFailAlloc_6210_, sizeof(void*)*6 + 1, v_forcedFlush_6153_); -lean_ctor_set_uint8(v_reuseFailAlloc_6210_, sizeof(void*)*6 + 2, v_pullBodyStalled_6154_); +v_reuseFailAlloc_6210_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_6210_, 0, v_a_6185_); +lean_ctor_set(v_reuseFailAlloc_6210_, 1, v_val_6207_); +lean_ctor_set(v_reuseFailAlloc_6210_, 2, v_tail_6196_); v___x_6209_ = v_reuseFailAlloc_6210_; goto v_reusejp_6208_; } @@ -22118,2607 +22011,5411 @@ return v___x_6209_; } } } -else -{ -lean_object* v___x_6221_; -lean_dec_ref(v_writer_6147_); -v___x_6221_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_resetForNextMessage(v_dir_6144_, v_machine_6145_); -return v___x_6221_; } -} -else -{ -if (lean_obj_tag(v_state_6188_) == 6) -{ -lean_object* v___x_6223_; uint8_t v_isShared_6224_; uint8_t v_isSharedCheck_6247_; -lean_inc(v_instant_6151_); -lean_inc(v_error_6150_); -lean_inc_ref(v_events_6149_); -lean_inc_ref(v_config_6148_); -lean_inc_ref(v_reader_6146_); -v_isSharedCheck_6247_ = !lean_is_exclusive(v_machine_6145_); -if (v_isSharedCheck_6247_ == 0) -{ -lean_object* v_unused_6248_; lean_object* v_unused_6249_; lean_object* v_unused_6250_; lean_object* v_unused_6251_; lean_object* v_unused_6252_; lean_object* v_unused_6253_; -v_unused_6248_ = lean_ctor_get(v_machine_6145_, 5); -lean_dec(v_unused_6248_); -v_unused_6249_ = lean_ctor_get(v_machine_6145_, 4); -lean_dec(v_unused_6249_); -v_unused_6250_ = lean_ctor_get(v_machine_6145_, 3); -lean_dec(v_unused_6250_); -v_unused_6251_ = lean_ctor_get(v_machine_6145_, 2); -lean_dec(v_unused_6251_); -v_unused_6252_ = lean_ctor_get(v_machine_6145_, 1); -lean_dec(v_unused_6252_); -v_unused_6253_ = lean_ctor_get(v_machine_6145_, 0); -lean_dec(v_unused_6253_); -v___x_6223_ = v_machine_6145_; -v_isShared_6224_ = v_isSharedCheck_6247_; -goto v_resetjp_6222_; -} -else -{ -lean_dec(v_machine_6145_); -v___x_6223_ = lean_box(0); -v_isShared_6224_ = v_isSharedCheck_6247_; -goto v_resetjp_6222_; -} -v_resetjp_6222_: -{ -lean_object* v_userData_6225_; lean_object* v_outputData_6226_; lean_object* v_knownSize_6227_; lean_object* v_messageHead_6228_; uint8_t v_sentMessage_6229_; uint8_t v_userClosedBody_6230_; uint8_t v_omitBody_6231_; lean_object* v_userDataBytes_6232_; lean_object* v___x_6234_; uint8_t v_isShared_6235_; uint8_t v_isSharedCheck_6245_; -v_userData_6225_ = lean_ctor_get(v_writer_6147_, 0); -v_outputData_6226_ = lean_ctor_get(v_writer_6147_, 1); -v_knownSize_6227_ = lean_ctor_get(v_writer_6147_, 3); -v_messageHead_6228_ = lean_ctor_get(v_writer_6147_, 4); -v_sentMessage_6229_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6); -v_userClosedBody_6230_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 1); -v_omitBody_6231_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 2); -v_userDataBytes_6232_ = lean_ctor_get(v_writer_6147_, 5); -v_isSharedCheck_6245_ = !lean_is_exclusive(v_writer_6147_); -if (v_isSharedCheck_6245_ == 0) -{ -lean_object* v_unused_6246_; -v_unused_6246_ = lean_ctor_get(v_writer_6147_, 2); -lean_dec(v_unused_6246_); -v___x_6234_ = v_writer_6147_; -v_isShared_6235_ = v_isSharedCheck_6245_; -goto v_resetjp_6233_; -} -else -{ -lean_inc(v_userDataBytes_6232_); -lean_inc(v_messageHead_6228_); -lean_inc(v_knownSize_6227_); -lean_inc(v_outputData_6226_); -lean_inc(v_userData_6225_); -lean_dec(v_writer_6147_); -v___x_6234_ = lean_box(0); -v_isShared_6235_ = v_isSharedCheck_6245_; -goto v_resetjp_6233_; -} -v_resetjp_6233_: -{ -lean_object* v___x_6236_; lean_object* v___x_6238_; -v___x_6236_ = lean_box(5); -if (v_isShared_6235_ == 0) -{ -lean_ctor_set(v___x_6234_, 2, v___x_6236_); -v___x_6238_ = v___x_6234_; -goto v_reusejp_6237_; -} -else -{ -lean_object* v_reuseFailAlloc_6244_; -v_reuseFailAlloc_6244_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6244_, 0, v_userData_6225_); -lean_ctor_set(v_reuseFailAlloc_6244_, 1, v_outputData_6226_); -lean_ctor_set(v_reuseFailAlloc_6244_, 2, v___x_6236_); -lean_ctor_set(v_reuseFailAlloc_6244_, 3, v_knownSize_6227_); -lean_ctor_set(v_reuseFailAlloc_6244_, 4, v_messageHead_6228_); -lean_ctor_set(v_reuseFailAlloc_6244_, 5, v_userDataBytes_6232_); -lean_ctor_set_uint8(v_reuseFailAlloc_6244_, sizeof(void*)*6, v_sentMessage_6229_); -lean_ctor_set_uint8(v_reuseFailAlloc_6244_, sizeof(void*)*6 + 1, v_userClosedBody_6230_); -lean_ctor_set_uint8(v_reuseFailAlloc_6244_, sizeof(void*)*6 + 2, v_omitBody_6231_); -v___x_6238_ = v_reuseFailAlloc_6244_; -goto v_reusejp_6237_; -} -v_reusejp_6237_: -{ -lean_object* v___x_6239_; lean_object* v___x_6240_; lean_object* v___x_6242_; -v___x_6239_ = lean_box(3); -v___x_6240_ = lean_array_push(v_events_6149_, v___x_6239_); -if (v_isShared_6224_ == 0) -{ -lean_ctor_set(v___x_6223_, 3, v___x_6240_); -lean_ctor_set(v___x_6223_, 1, v___x_6238_); -v___x_6242_ = v___x_6223_; -goto v_reusejp_6241_; -} -else -{ -lean_object* v_reuseFailAlloc_6243_; -v_reuseFailAlloc_6243_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6243_, 0, v_reader_6146_); -lean_ctor_set(v_reuseFailAlloc_6243_, 1, v___x_6238_); -lean_ctor_set(v_reuseFailAlloc_6243_, 2, v_config_6148_); -lean_ctor_set(v_reuseFailAlloc_6243_, 3, v___x_6240_); -lean_ctor_set(v_reuseFailAlloc_6243_, 4, v_error_6150_); -lean_ctor_set(v_reuseFailAlloc_6243_, 5, v_instant_6151_); -lean_ctor_set_uint8(v_reuseFailAlloc_6243_, sizeof(void*)*6, v_keepAlive_6152_); -lean_ctor_set_uint8(v_reuseFailAlloc_6243_, sizeof(void*)*6 + 1, v_forcedFlush_6153_); -lean_ctor_set_uint8(v_reuseFailAlloc_6243_, sizeof(void*)*6 + 2, v_pullBodyStalled_6154_); -v___x_6242_ = v_reuseFailAlloc_6243_; -goto v_reusejp_6241_; -} -v_reusejp_6241_: -{ -return v___x_6242_; -} -} -} -} -} -else -{ -if (v_dir_6144_ == 0) -{ -if (lean_obj_tag(v_state_6188_) == 3) -{ -lean_object* v___x_6255_; uint8_t v_isShared_6256_; uint8_t v_isSharedCheck_6279_; -lean_inc(v_instant_6151_); -lean_inc(v_error_6150_); -lean_inc_ref(v_events_6149_); -lean_inc_ref(v_config_6148_); -lean_inc_ref(v_reader_6146_); -v_isSharedCheck_6279_ = !lean_is_exclusive(v_machine_6145_); -if (v_isSharedCheck_6279_ == 0) -{ -lean_object* v_unused_6280_; lean_object* v_unused_6281_; lean_object* v_unused_6282_; lean_object* v_unused_6283_; lean_object* v_unused_6284_; lean_object* v_unused_6285_; -v_unused_6280_ = lean_ctor_get(v_machine_6145_, 5); -lean_dec(v_unused_6280_); -v_unused_6281_ = lean_ctor_get(v_machine_6145_, 4); -lean_dec(v_unused_6281_); -v_unused_6282_ = lean_ctor_get(v_machine_6145_, 3); -lean_dec(v_unused_6282_); -v_unused_6283_ = lean_ctor_get(v_machine_6145_, 2); -lean_dec(v_unused_6283_); -v_unused_6284_ = lean_ctor_get(v_machine_6145_, 1); -lean_dec(v_unused_6284_); -v_unused_6285_ = lean_ctor_get(v_machine_6145_, 0); -lean_dec(v_unused_6285_); -v___x_6255_ = v_machine_6145_; -v_isShared_6256_ = v_isSharedCheck_6279_; -goto v_resetjp_6254_; -} -else -{ -lean_dec(v_machine_6145_); -v___x_6255_ = lean_box(0); -v_isShared_6256_ = v_isSharedCheck_6279_; -goto v_resetjp_6254_; -} -v_resetjp_6254_: -{ -lean_object* v_userData_6257_; lean_object* v_outputData_6258_; lean_object* v_knownSize_6259_; lean_object* v_messageHead_6260_; uint8_t v_sentMessage_6261_; uint8_t v_userClosedBody_6262_; uint8_t v_omitBody_6263_; lean_object* v_userDataBytes_6264_; lean_object* v___x_6266_; uint8_t v_isShared_6267_; uint8_t v_isSharedCheck_6277_; -v_userData_6257_ = lean_ctor_get(v_writer_6147_, 0); -v_outputData_6258_ = lean_ctor_get(v_writer_6147_, 1); -v_knownSize_6259_ = lean_ctor_get(v_writer_6147_, 3); -v_messageHead_6260_ = lean_ctor_get(v_writer_6147_, 4); -v_sentMessage_6261_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6); -v_userClosedBody_6262_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 1); -v_omitBody_6263_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 2); -v_userDataBytes_6264_ = lean_ctor_get(v_writer_6147_, 5); -v_isSharedCheck_6277_ = !lean_is_exclusive(v_writer_6147_); -if (v_isSharedCheck_6277_ == 0) -{ -lean_object* v_unused_6278_; -v_unused_6278_ = lean_ctor_get(v_writer_6147_, 2); -lean_dec(v_unused_6278_); -v___x_6266_ = v_writer_6147_; -v_isShared_6267_ = v_isSharedCheck_6277_; -goto v_resetjp_6265_; -} -else -{ -lean_inc(v_userDataBytes_6264_); -lean_inc(v_messageHead_6260_); -lean_inc(v_knownSize_6259_); -lean_inc(v_outputData_6258_); -lean_inc(v_userData_6257_); -lean_dec(v_writer_6147_); -v___x_6266_ = lean_box(0); -v_isShared_6267_ = v_isSharedCheck_6277_; -goto v_resetjp_6265_; -} -v_resetjp_6265_: -{ -lean_object* v___x_6268_; lean_object* v___x_6270_; -v___x_6268_ = lean_box(5); -if (v_isShared_6267_ == 0) -{ -lean_ctor_set(v___x_6266_, 2, v___x_6268_); -v___x_6270_ = v___x_6266_; -goto v_reusejp_6269_; -} -else -{ -lean_object* v_reuseFailAlloc_6276_; -v_reuseFailAlloc_6276_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6276_, 0, v_userData_6257_); -lean_ctor_set(v_reuseFailAlloc_6276_, 1, v_outputData_6258_); -lean_ctor_set(v_reuseFailAlloc_6276_, 2, v___x_6268_); -lean_ctor_set(v_reuseFailAlloc_6276_, 3, v_knownSize_6259_); -lean_ctor_set(v_reuseFailAlloc_6276_, 4, v_messageHead_6260_); -lean_ctor_set(v_reuseFailAlloc_6276_, 5, v_userDataBytes_6264_); -lean_ctor_set_uint8(v_reuseFailAlloc_6276_, sizeof(void*)*6, v_sentMessage_6261_); -lean_ctor_set_uint8(v_reuseFailAlloc_6276_, sizeof(void*)*6 + 1, v_userClosedBody_6262_); -lean_ctor_set_uint8(v_reuseFailAlloc_6276_, sizeof(void*)*6 + 2, v_omitBody_6263_); -v___x_6270_ = v_reuseFailAlloc_6276_; -goto v_reusejp_6269_; -} -v_reusejp_6269_: -{ -lean_object* v___x_6271_; lean_object* v___x_6272_; lean_object* v___x_6274_; -v___x_6271_ = lean_box(3); -v___x_6272_ = lean_array_push(v_events_6149_, v___x_6271_); -if (v_isShared_6256_ == 0) -{ -lean_ctor_set(v___x_6255_, 3, v___x_6272_); -lean_ctor_set(v___x_6255_, 1, v___x_6270_); -v___x_6274_ = v___x_6255_; -goto v_reusejp_6273_; -} -else -{ -lean_object* v_reuseFailAlloc_6275_; -v_reuseFailAlloc_6275_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6275_, 0, v_reader_6146_); -lean_ctor_set(v_reuseFailAlloc_6275_, 1, v___x_6270_); -lean_ctor_set(v_reuseFailAlloc_6275_, 2, v_config_6148_); -lean_ctor_set(v_reuseFailAlloc_6275_, 3, v___x_6272_); -lean_ctor_set(v_reuseFailAlloc_6275_, 4, v_error_6150_); -lean_ctor_set(v_reuseFailAlloc_6275_, 5, v_instant_6151_); -lean_ctor_set_uint8(v_reuseFailAlloc_6275_, sizeof(void*)*6, v_keepAlive_6152_); -lean_ctor_set_uint8(v_reuseFailAlloc_6275_, sizeof(void*)*6 + 1, v_forcedFlush_6153_); -lean_ctor_set_uint8(v_reuseFailAlloc_6275_, sizeof(void*)*6 + 2, v_pullBodyStalled_6154_); -v___x_6274_ = v_reuseFailAlloc_6275_; -goto v_reusejp_6273_; -} -v_reusejp_6273_: -{ -return v___x_6274_; -} -} -} -} -} -else -{ -goto v___jp_6155_; -} -} -else -{ -goto v___jp_6155_; -} -} -} -v___jp_6155_: -{ -if (v_keepAlive_6152_ == 0) -{ -lean_object* v___x_6157_; uint8_t v_isShared_6158_; uint8_t v_isSharedCheck_6181_; -lean_inc(v_instant_6151_); -lean_inc(v_error_6150_); -lean_inc_ref(v_events_6149_); -lean_inc_ref(v_config_6148_); -lean_inc_ref(v_reader_6146_); -v_isSharedCheck_6181_ = !lean_is_exclusive(v_machine_6145_); -if (v_isSharedCheck_6181_ == 0) -{ -lean_object* v_unused_6182_; lean_object* v_unused_6183_; lean_object* v_unused_6184_; lean_object* v_unused_6185_; lean_object* v_unused_6186_; lean_object* v_unused_6187_; -v_unused_6182_ = lean_ctor_get(v_machine_6145_, 5); -lean_dec(v_unused_6182_); -v_unused_6183_ = lean_ctor_get(v_machine_6145_, 4); -lean_dec(v_unused_6183_); -v_unused_6184_ = lean_ctor_get(v_machine_6145_, 3); -lean_dec(v_unused_6184_); -v_unused_6185_ = lean_ctor_get(v_machine_6145_, 2); -lean_dec(v_unused_6185_); -v_unused_6186_ = lean_ctor_get(v_machine_6145_, 1); -lean_dec(v_unused_6186_); -v_unused_6187_ = lean_ctor_get(v_machine_6145_, 0); -lean_dec(v_unused_6187_); -v___x_6157_ = v_machine_6145_; -v_isShared_6158_ = v_isSharedCheck_6181_; -goto v_resetjp_6156_; -} -else -{ -lean_dec(v_machine_6145_); -v___x_6157_ = lean_box(0); -v_isShared_6158_ = v_isSharedCheck_6181_; -goto v_resetjp_6156_; -} -v_resetjp_6156_: -{ -lean_object* v_userData_6159_; lean_object* v_outputData_6160_; lean_object* v_knownSize_6161_; lean_object* v_messageHead_6162_; uint8_t v_sentMessage_6163_; uint8_t v_userClosedBody_6164_; uint8_t v_omitBody_6165_; lean_object* v_userDataBytes_6166_; lean_object* v___x_6168_; uint8_t v_isShared_6169_; uint8_t v_isSharedCheck_6179_; -v_userData_6159_ = lean_ctor_get(v_writer_6147_, 0); -v_outputData_6160_ = lean_ctor_get(v_writer_6147_, 1); -v_knownSize_6161_ = lean_ctor_get(v_writer_6147_, 3); -v_messageHead_6162_ = lean_ctor_get(v_writer_6147_, 4); -v_sentMessage_6163_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6); -v_userClosedBody_6164_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 1); -v_omitBody_6165_ = lean_ctor_get_uint8(v_writer_6147_, sizeof(void*)*6 + 2); -v_userDataBytes_6166_ = lean_ctor_get(v_writer_6147_, 5); -v_isSharedCheck_6179_ = !lean_is_exclusive(v_writer_6147_); -if (v_isSharedCheck_6179_ == 0) -{ -lean_object* v_unused_6180_; -v_unused_6180_ = lean_ctor_get(v_writer_6147_, 2); -lean_dec(v_unused_6180_); -v___x_6168_ = v_writer_6147_; -v_isShared_6169_ = v_isSharedCheck_6179_; -goto v_resetjp_6167_; -} -else -{ -lean_inc(v_userDataBytes_6166_); -lean_inc(v_messageHead_6162_); -lean_inc(v_knownSize_6161_); -lean_inc(v_outputData_6160_); -lean_inc(v_userData_6159_); -lean_dec(v_writer_6147_); -v___x_6168_ = lean_box(0); -v_isShared_6169_ = v_isSharedCheck_6179_; -goto v_resetjp_6167_; -} -v_resetjp_6167_: -{ -lean_object* v___x_6170_; lean_object* v___x_6172_; -v___x_6170_ = lean_box(5); -if (v_isShared_6169_ == 0) -{ -lean_ctor_set(v___x_6168_, 2, v___x_6170_); -v___x_6172_ = v___x_6168_; -goto v_reusejp_6171_; -} -else -{ -lean_object* v_reuseFailAlloc_6178_; -v_reuseFailAlloc_6178_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6178_, 0, v_userData_6159_); -lean_ctor_set(v_reuseFailAlloc_6178_, 1, v_outputData_6160_); -lean_ctor_set(v_reuseFailAlloc_6178_, 2, v___x_6170_); -lean_ctor_set(v_reuseFailAlloc_6178_, 3, v_knownSize_6161_); -lean_ctor_set(v_reuseFailAlloc_6178_, 4, v_messageHead_6162_); -lean_ctor_set(v_reuseFailAlloc_6178_, 5, v_userDataBytes_6166_); -lean_ctor_set_uint8(v_reuseFailAlloc_6178_, sizeof(void*)*6, v_sentMessage_6163_); -lean_ctor_set_uint8(v_reuseFailAlloc_6178_, sizeof(void*)*6 + 1, v_userClosedBody_6164_); -lean_ctor_set_uint8(v_reuseFailAlloc_6178_, sizeof(void*)*6 + 2, v_omitBody_6165_); -v___x_6172_ = v_reuseFailAlloc_6178_; -goto v_reusejp_6171_; -} -v_reusejp_6171_: -{ -lean_object* v___x_6173_; lean_object* v___x_6174_; lean_object* v___x_6176_; -v___x_6173_ = lean_box(3); -v___x_6174_ = lean_array_push(v_events_6149_, v___x_6173_); -if (v_isShared_6158_ == 0) -{ -lean_ctor_set(v___x_6157_, 3, v___x_6174_); -lean_ctor_set(v___x_6157_, 1, v___x_6172_); -v___x_6176_ = v___x_6157_; -goto v_reusejp_6175_; -} -else -{ -lean_object* v_reuseFailAlloc_6177_; -v_reuseFailAlloc_6177_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6177_, 0, v_reader_6146_); -lean_ctor_set(v_reuseFailAlloc_6177_, 1, v___x_6172_); -lean_ctor_set(v_reuseFailAlloc_6177_, 2, v_config_6148_); -lean_ctor_set(v_reuseFailAlloc_6177_, 3, v___x_6174_); -lean_ctor_set(v_reuseFailAlloc_6177_, 4, v_error_6150_); -lean_ctor_set(v_reuseFailAlloc_6177_, 5, v_instant_6151_); -lean_ctor_set_uint8(v_reuseFailAlloc_6177_, sizeof(void*)*6, v_keepAlive_6152_); -lean_ctor_set_uint8(v_reuseFailAlloc_6177_, sizeof(void*)*6 + 1, v_forcedFlush_6153_); -lean_ctor_set_uint8(v_reuseFailAlloc_6177_, sizeof(void*)*6 + 2, v_pullBodyStalled_6154_); -v___x_6176_ = v_reuseFailAlloc_6177_; -goto v_reusejp_6175_; -} -v_reusejp_6175_: -{ -return v___x_6176_; -} -} -} -} -} -else -{ -lean_dec_ref(v_writer_6147_); -return v_machine_6145_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep___boxed(lean_object* v_dir_6286_, lean_object* v_machine_6287_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0(lean_object* v_m_6212_, lean_object* v_a_6213_){ _start: { -uint8_t v_dir_boxed_6288_; lean_object* v_res_6289_; -v_dir_boxed_6288_ = lean_unbox(v_dir_6286_); -v_res_6289_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(v_dir_boxed_6288_, v_machine_6287_); -return v_res_6289_; +lean_object* v___x_6214_; lean_object* v_entries_6215_; lean_object* v_size_6216_; lean_object* v_buckets_6217_; lean_object* v___x_6219_; uint8_t v_isShared_6220_; uint8_t v_isSharedCheck_6268_; +v___x_6214_ = l_Std_Http_Headers_empty; +v_entries_6215_ = lean_ctor_get(v___x_6214_, 0); +v_size_6216_ = lean_ctor_get(v_m_6212_, 0); +v_buckets_6217_ = lean_ctor_get(v_m_6212_, 1); +v_isSharedCheck_6268_ = !lean_is_exclusive(v_m_6212_); +if (v_isSharedCheck_6268_ == 0) +{ +v___x_6219_ = v_m_6212_; +v_isShared_6220_ = v_isSharedCheck_6268_; +goto v_resetjp_6218_; +} +else +{ +lean_inc(v_buckets_6217_); +lean_inc(v_size_6216_); +lean_dec(v_m_6212_); +v___x_6219_ = lean_box(0); +v_isShared_6220_ = v_isSharedCheck_6268_; +goto v_resetjp_6218_; +} +v_resetjp_6218_: +{ +lean_object* v___x_6221_; uint64_t v___x_6222_; uint64_t v___x_6223_; uint64_t v___x_6224_; uint64_t v_fold_6225_; uint64_t v___x_6226_; uint64_t v___x_6227_; uint64_t v___x_6228_; size_t v___x_6229_; size_t v___x_6230_; size_t v___x_6231_; size_t v___x_6232_; size_t v___x_6233_; lean_object* v_bkt_6234_; uint8_t v___x_6235_; +v___x_6221_ = lean_array_get_size(v_buckets_6217_); +v___x_6222_ = lean_string_hash(v_a_6213_); +v___x_6223_ = 32ULL; +v___x_6224_ = lean_uint64_shift_right(v___x_6222_, v___x_6223_); +v_fold_6225_ = lean_uint64_xor(v___x_6222_, v___x_6224_); +v___x_6226_ = 16ULL; +v___x_6227_ = lean_uint64_shift_right(v_fold_6225_, v___x_6226_); +v___x_6228_ = lean_uint64_xor(v_fold_6225_, v___x_6227_); +v___x_6229_ = lean_uint64_to_usize(v___x_6228_); +v___x_6230_ = lean_usize_of_nat(v___x_6221_); +v___x_6231_ = ((size_t)1ULL); +v___x_6232_ = lean_usize_sub(v___x_6230_, v___x_6231_); +v___x_6233_ = lean_usize_land(v___x_6229_, v___x_6232_); +v_bkt_6234_ = lean_array_uget_borrowed(v_buckets_6217_, v___x_6233_); +v___x_6235_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_6213_, v_bkt_6234_); +if (v___x_6235_ == 0) +{ +lean_object* v_i_6236_; lean_object* v___x_6237_; lean_object* v___x_6238_; lean_object* v___x_6239_; lean_object* v_size_x27_6240_; lean_object* v___x_6241_; lean_object* v_buckets_x27_6242_; lean_object* v___x_6243_; lean_object* v___x_6244_; lean_object* v___x_6245_; lean_object* v___x_6246_; lean_object* v___x_6247_; uint8_t v___x_6248_; +v_i_6236_ = lean_array_get_size(v_entries_6215_); +v___x_6237_ = lean_unsigned_to_nat(1u); +v___x_6238_ = lean_mk_empty_array_with_capacity(v___x_6237_); +v___x_6239_ = lean_array_push(v___x_6238_, v_i_6236_); +v_size_x27_6240_ = lean_nat_add(v_size_6216_, v___x_6237_); +lean_dec(v_size_6216_); +lean_inc(v_bkt_6234_); +v___x_6241_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_6241_, 0, v_a_6213_); +lean_ctor_set(v___x_6241_, 1, v___x_6239_); +lean_ctor_set(v___x_6241_, 2, v_bkt_6234_); +v_buckets_x27_6242_ = lean_array_uset(v_buckets_6217_, v___x_6233_, v___x_6241_); +v___x_6243_ = lean_unsigned_to_nat(4u); +v___x_6244_ = lean_nat_mul(v_size_x27_6240_, v___x_6243_); +v___x_6245_ = lean_unsigned_to_nat(3u); +v___x_6246_ = lean_nat_div(v___x_6244_, v___x_6245_); +lean_dec(v___x_6244_); +v___x_6247_ = lean_array_get_size(v_buckets_x27_6242_); +v___x_6248_ = lean_nat_dec_le(v___x_6246_, v___x_6247_); +lean_dec(v___x_6246_); +if (v___x_6248_ == 0) +{ +lean_object* v_val_6249_; lean_object* v___x_6251_; +v_val_6249_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4_spec__4___redArg(v_buckets_x27_6242_); +if (v_isShared_6220_ == 0) +{ +lean_ctor_set(v___x_6219_, 1, v_val_6249_); +lean_ctor_set(v___x_6219_, 0, v_size_x27_6240_); +v___x_6251_ = v___x_6219_; +goto v_reusejp_6250_; +} +else +{ +lean_object* v_reuseFailAlloc_6252_; +v_reuseFailAlloc_6252_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_6252_, 0, v_size_x27_6240_); +lean_ctor_set(v_reuseFailAlloc_6252_, 1, v_val_6249_); +v___x_6251_ = v_reuseFailAlloc_6252_; +goto v_reusejp_6250_; +} +v_reusejp_6250_: +{ +return v___x_6251_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___redArg(lean_object* v_machine_6290_){ +else +{ +lean_object* v___x_6254_; +if (v_isShared_6220_ == 0) +{ +lean_ctor_set(v___x_6219_, 1, v_buckets_x27_6242_); +lean_ctor_set(v___x_6219_, 0, v_size_x27_6240_); +v___x_6254_ = v___x_6219_; +goto v_reusejp_6253_; +} +else +{ +lean_object* v_reuseFailAlloc_6255_; +v_reuseFailAlloc_6255_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_6255_, 0, v_size_x27_6240_); +lean_ctor_set(v_reuseFailAlloc_6255_, 1, v_buckets_x27_6242_); +v___x_6254_ = v_reuseFailAlloc_6255_; +goto v_reusejp_6253_; +} +v_reusejp_6253_: +{ +return v___x_6254_; +} +} +} +else +{ +lean_object* v___x_6256_; lean_object* v_buckets_x27_6257_; lean_object* v_bkt_x27_6258_; lean_object* v___y_6260_; uint8_t v___x_6265_; +lean_inc(v_bkt_6234_); +v___x_6256_ = lean_box(0); +v_buckets_x27_6257_ = lean_array_uset(v_buckets_6217_, v___x_6233_, v___x_6256_); +lean_inc_ref(v_a_6213_); +v_bkt_x27_6258_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0_spec__0(v_a_6213_, v_bkt_6234_); +v___x_6265_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2_spec__3___redArg(v_a_6213_, v_bkt_x27_6258_); +lean_dec_ref(v_a_6213_); +if (v___x_6265_ == 0) +{ +lean_object* v___x_6266_; lean_object* v___x_6267_; +v___x_6266_ = lean_unsigned_to_nat(1u); +v___x_6267_ = lean_nat_sub(v_size_6216_, v___x_6266_); +lean_dec(v_size_6216_); +v___y_6260_ = v___x_6267_; +goto v___jp_6259_; +} +else +{ +v___y_6260_ = v_size_6216_; +goto v___jp_6259_; +} +v___jp_6259_: +{ +lean_object* v___x_6261_; lean_object* v___x_6263_; +v___x_6261_ = lean_array_uset(v_buckets_x27_6257_, v___x_6233_, v_bkt_x27_6258_); +if (v_isShared_6220_ == 0) +{ +lean_ctor_set(v___x_6219_, 1, v___x_6261_); +lean_ctor_set(v___x_6219_, 0, v___y_6260_); +v___x_6263_ = v___x_6219_; +goto v_reusejp_6262_; +} +else +{ +lean_object* v_reuseFailAlloc_6264_; +v_reuseFailAlloc_6264_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_6264_, 0, v___y_6260_); +lean_ctor_set(v_reuseFailAlloc_6264_, 1, v___x_6261_); +v___x_6263_ = v_reuseFailAlloc_6264_; +goto v_reusejp_6262_; +} +v_reusejp_6262_: +{ +return v___x_6263_; +} +} +} +} +} +} +static lean_object* _init_l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0(void){ _start: { -lean_object* v_writer_6291_; uint8_t v_userClosedBody_6292_; -v_writer_6291_ = lean_ctor_get(v_machine_6290_, 1); -lean_inc_ref(v_writer_6291_); -v_userClosedBody_6292_ = lean_ctor_get_uint8(v_writer_6291_, sizeof(void*)*6 + 1); -if (v_userClosedBody_6292_ == 0) -{ -lean_dec_ref(v_writer_6291_); -return v_machine_6290_; -} -else -{ -lean_object* v_reader_6293_; lean_object* v_config_6294_; lean_object* v_events_6295_; lean_object* v_instant_6296_; uint8_t v_forcedFlush_6297_; uint8_t v_pullBodyStalled_6298_; lean_object* v___x_6300_; uint8_t v_isShared_6301_; uint8_t v_isSharedCheck_6339_; -v_reader_6293_ = lean_ctor_get(v_machine_6290_, 0); -v_config_6294_ = lean_ctor_get(v_machine_6290_, 2); -v_events_6295_ = lean_ctor_get(v_machine_6290_, 3); -v_instant_6296_ = lean_ctor_get(v_machine_6290_, 5); -v_forcedFlush_6297_ = lean_ctor_get_uint8(v_machine_6290_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6298_ = lean_ctor_get_uint8(v_machine_6290_, sizeof(void*)*6 + 2); -v_isSharedCheck_6339_ = !lean_is_exclusive(v_machine_6290_); -if (v_isSharedCheck_6339_ == 0) -{ -lean_object* v_unused_6340_; lean_object* v_unused_6341_; -v_unused_6340_ = lean_ctor_get(v_machine_6290_, 4); -lean_dec(v_unused_6340_); -v_unused_6341_ = lean_ctor_get(v_machine_6290_, 1); -lean_dec(v_unused_6341_); -v___x_6300_ = v_machine_6290_; -v_isShared_6301_ = v_isSharedCheck_6339_; -goto v_resetjp_6299_; -} -else -{ -lean_inc(v_instant_6296_); -lean_inc(v_events_6295_); -lean_inc(v_config_6294_); -lean_inc(v_reader_6293_); -lean_dec(v_machine_6290_); -v___x_6300_ = lean_box(0); -v_isShared_6301_ = v_isSharedCheck_6339_; -goto v_resetjp_6299_; -} -v_resetjp_6299_: -{ -lean_object* v_userData_6302_; lean_object* v_outputData_6303_; lean_object* v_knownSize_6304_; lean_object* v_messageHead_6305_; uint8_t v_sentMessage_6306_; uint8_t v_omitBody_6307_; lean_object* v_userDataBytes_6308_; lean_object* v___x_6310_; uint8_t v_isShared_6311_; uint8_t v_isSharedCheck_6337_; -v_userData_6302_ = lean_ctor_get(v_writer_6291_, 0); -v_outputData_6303_ = lean_ctor_get(v_writer_6291_, 1); -v_knownSize_6304_ = lean_ctor_get(v_writer_6291_, 3); -v_messageHead_6305_ = lean_ctor_get(v_writer_6291_, 4); -v_sentMessage_6306_ = lean_ctor_get_uint8(v_writer_6291_, sizeof(void*)*6); -v_omitBody_6307_ = lean_ctor_get_uint8(v_writer_6291_, sizeof(void*)*6 + 2); -v_userDataBytes_6308_ = lean_ctor_get(v_writer_6291_, 5); -v_isSharedCheck_6337_ = !lean_is_exclusive(v_writer_6291_); -if (v_isSharedCheck_6337_ == 0) -{ -lean_object* v_unused_6338_; -v_unused_6338_ = lean_ctor_get(v_writer_6291_, 2); -lean_dec(v_unused_6338_); -v___x_6310_ = v_writer_6291_; -v_isShared_6311_ = v_isSharedCheck_6337_; -goto v_resetjp_6309_; -} -else -{ -lean_inc(v_userDataBytes_6308_); -lean_inc(v_messageHead_6305_); -lean_inc(v_knownSize_6304_); -lean_inc(v_outputData_6303_); -lean_inc(v_userData_6302_); -lean_dec(v_writer_6291_); -v___x_6310_ = lean_box(0); -v_isShared_6311_ = v_isSharedCheck_6337_; -goto v_resetjp_6309_; -} -v_resetjp_6309_: -{ -lean_object* v_input_6312_; lean_object* v_messageHead_6313_; lean_object* v_messageCount_6314_; lean_object* v_bodyBytesRead_6315_; lean_object* v_headerBytesRead_6316_; lean_object* v___x_6318_; uint8_t v_isShared_6319_; uint8_t v_isSharedCheck_6335_; -v_input_6312_ = lean_ctor_get(v_reader_6293_, 1); -v_messageHead_6313_ = lean_ctor_get(v_reader_6293_, 2); -v_messageCount_6314_ = lean_ctor_get(v_reader_6293_, 3); -v_bodyBytesRead_6315_ = lean_ctor_get(v_reader_6293_, 4); -v_headerBytesRead_6316_ = lean_ctor_get(v_reader_6293_, 5); -v_isSharedCheck_6335_ = !lean_is_exclusive(v_reader_6293_); -if (v_isSharedCheck_6335_ == 0) -{ -lean_object* v_unused_6336_; -v_unused_6336_ = lean_ctor_get(v_reader_6293_, 0); -lean_dec(v_unused_6336_); -v___x_6318_ = v_reader_6293_; -v_isShared_6319_ = v_isSharedCheck_6335_; -goto v_resetjp_6317_; -} -else -{ -lean_inc(v_headerBytesRead_6316_); -lean_inc(v_bodyBytesRead_6315_); -lean_inc(v_messageCount_6314_); -lean_inc(v_messageHead_6313_); -lean_inc(v_input_6312_); -lean_dec(v_reader_6293_); -v___x_6318_ = lean_box(0); -v_isShared_6319_ = v_isSharedCheck_6335_; -goto v_resetjp_6317_; -} -v_resetjp_6317_: -{ -lean_object* v___x_6320_; uint8_t v___x_6321_; lean_object* v___x_6322_; lean_object* v___x_6324_; -v___x_6320_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6321_ = 0; -v___x_6322_ = lean_box(5); -if (v_isShared_6311_ == 0) -{ -lean_ctor_set(v___x_6310_, 2, v___x_6322_); -v___x_6324_ = v___x_6310_; -goto v_reusejp_6323_; -} -else -{ -lean_object* v_reuseFailAlloc_6334_; -v_reuseFailAlloc_6334_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6334_, 0, v_userData_6302_); -lean_ctor_set(v_reuseFailAlloc_6334_, 1, v_outputData_6303_); -lean_ctor_set(v_reuseFailAlloc_6334_, 2, v___x_6322_); -lean_ctor_set(v_reuseFailAlloc_6334_, 3, v_knownSize_6304_); -lean_ctor_set(v_reuseFailAlloc_6334_, 4, v_messageHead_6305_); -lean_ctor_set(v_reuseFailAlloc_6334_, 5, v_userDataBytes_6308_); -lean_ctor_set_uint8(v_reuseFailAlloc_6334_, sizeof(void*)*6, v_sentMessage_6306_); -lean_ctor_set_uint8(v_reuseFailAlloc_6334_, sizeof(void*)*6 + 1, v_userClosedBody_6292_); -lean_ctor_set_uint8(v_reuseFailAlloc_6334_, sizeof(void*)*6 + 2, v_omitBody_6307_); -v___x_6324_ = v_reuseFailAlloc_6334_; -goto v_reusejp_6323_; -} -v_reusejp_6323_: -{ -lean_object* v___x_6325_; lean_object* v___x_6327_; -v___x_6325_ = lean_box(6); -if (v_isShared_6319_ == 0) -{ -lean_ctor_set(v___x_6318_, 0, v___x_6325_); -v___x_6327_ = v___x_6318_; -goto v_reusejp_6326_; -} -else -{ -lean_object* v_reuseFailAlloc_6333_; -v_reuseFailAlloc_6333_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6333_, 0, v___x_6325_); -lean_ctor_set(v_reuseFailAlloc_6333_, 1, v_input_6312_); -lean_ctor_set(v_reuseFailAlloc_6333_, 2, v_messageHead_6313_); -lean_ctor_set(v_reuseFailAlloc_6333_, 3, v_messageCount_6314_); -lean_ctor_set(v_reuseFailAlloc_6333_, 4, v_bodyBytesRead_6315_); -lean_ctor_set(v_reuseFailAlloc_6333_, 5, v_headerBytesRead_6316_); -v___x_6327_ = v_reuseFailAlloc_6333_; -goto v_reusejp_6326_; -} -v_reusejp_6326_: -{ -lean_object* v___x_6328_; lean_object* v___x_6329_; lean_object* v___x_6331_; -lean_ctor_set_uint8(v___x_6327_, sizeof(void*)*6, v_userClosedBody_6292_); -v___x_6328_ = lean_box(3); -v___x_6329_ = lean_array_push(v_events_6295_, v___x_6328_); -if (v_isShared_6301_ == 0) -{ -lean_ctor_set(v___x_6300_, 4, v___x_6320_); -lean_ctor_set(v___x_6300_, 3, v___x_6329_); -lean_ctor_set(v___x_6300_, 1, v___x_6324_); -lean_ctor_set(v___x_6300_, 0, v___x_6327_); -v___x_6331_ = v___x_6300_; -goto v_reusejp_6330_; -} -else -{ -lean_object* v_reuseFailAlloc_6332_; -v_reuseFailAlloc_6332_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6332_, 0, v___x_6327_); -lean_ctor_set(v_reuseFailAlloc_6332_, 1, v___x_6324_); -lean_ctor_set(v_reuseFailAlloc_6332_, 2, v_config_6294_); -lean_ctor_set(v_reuseFailAlloc_6332_, 3, v___x_6329_); -lean_ctor_set(v_reuseFailAlloc_6332_, 4, v___x_6320_); -lean_ctor_set(v_reuseFailAlloc_6332_, 5, v_instant_6296_); -lean_ctor_set_uint8(v_reuseFailAlloc_6332_, sizeof(void*)*6 + 1, v_forcedFlush_6297_); -lean_ctor_set_uint8(v_reuseFailAlloc_6332_, sizeof(void*)*6 + 2, v_pullBodyStalled_6298_); -v___x_6331_ = v_reuseFailAlloc_6332_; -goto v_reusejp_6330_; -} -v_reusejp_6330_: -{ -lean_ctor_set_uint8(v___x_6331_, sizeof(void*)*6, v___x_6321_); -return v___x_6331_; +lean_object* v___x_6269_; lean_object* v___x_6270_; lean_object* v___x_6271_; +v___x_6269_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__61)); +v___x_6270_ = l_Std_Http_Header_Name_connection; +v___x_6271_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6271_, 0, v___x_6270_); +lean_ctor_set(v___x_6271_, 1, v___x_6269_); +return v___x_6271_; } } -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody(uint8_t v_dir_6342_, lean_object* v_machine_6343_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError(lean_object* v_machine_6272_, lean_object* v_status_6273_){ _start: { -lean_object* v_writer_6344_; uint8_t v_userClosedBody_6345_; -v_writer_6344_ = lean_ctor_get(v_machine_6343_, 1); -lean_inc_ref(v_writer_6344_); -v_userClosedBody_6345_ = lean_ctor_get_uint8(v_writer_6344_, sizeof(void*)*6 + 1); -if (v_userClosedBody_6345_ == 0) +uint8_t v___y_6275_; lean_object* v_reader_6276_; lean_object* v_userData_6277_; lean_object* v_outputData_6278_; lean_object* v_state_6279_; lean_object* v_knownSize_6280_; lean_object* v_messageHead_6281_; uint8_t v_sentMessage_6282_; uint8_t v_omitBody_6283_; lean_object* v_userDataBytes_6284_; lean_object* v_config_6285_; lean_object* v_events_6286_; lean_object* v_error_6287_; lean_object* v_instant_6288_; uint8_t v_keepAlive_6289_; uint8_t v_forcedFlush_6290_; uint8_t v___y_6308_; lean_object* v___y_6309_; uint8_t v___y_6327_; lean_object* v___y_6328_; uint8_t v___y_6329_; uint8_t v___y_6330_; lean_object* v_writer_6347_; lean_object* v_reader_6348_; lean_object* v_config_6349_; lean_object* v_events_6350_; lean_object* v_error_6351_; lean_object* v_instant_6352_; uint8_t v_keepAlive_6353_; uint8_t v_forcedFlush_6354_; uint8_t v_pullBodyStalled_6355_; lean_object* v___x_6357_; uint8_t v_isShared_6358_; uint8_t v_isSharedCheck_6558_; +v_writer_6347_ = lean_ctor_get(v_machine_6272_, 1); +v_reader_6348_ = lean_ctor_get(v_machine_6272_, 0); +v_config_6349_ = lean_ctor_get(v_machine_6272_, 2); +v_events_6350_ = lean_ctor_get(v_machine_6272_, 3); +v_error_6351_ = lean_ctor_get(v_machine_6272_, 4); +v_instant_6352_ = lean_ctor_get(v_machine_6272_, 5); +v_keepAlive_6353_ = lean_ctor_get_uint8(v_machine_6272_, sizeof(void*)*6); +v_forcedFlush_6354_ = lean_ctor_get_uint8(v_machine_6272_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6355_ = lean_ctor_get_uint8(v_machine_6272_, sizeof(void*)*6 + 2); +v_isSharedCheck_6558_ = !lean_is_exclusive(v_machine_6272_); +if (v_isSharedCheck_6558_ == 0) { -lean_dec_ref(v_writer_6344_); -return v_machine_6343_; +v___x_6357_ = v_machine_6272_; +v_isShared_6358_ = v_isSharedCheck_6558_; +goto v_resetjp_6356_; } else { -lean_object* v_reader_6346_; lean_object* v_config_6347_; lean_object* v_events_6348_; lean_object* v_instant_6349_; uint8_t v_forcedFlush_6350_; uint8_t v_pullBodyStalled_6351_; lean_object* v___x_6353_; uint8_t v_isShared_6354_; uint8_t v_isSharedCheck_6392_; -v_reader_6346_ = lean_ctor_get(v_machine_6343_, 0); -v_config_6347_ = lean_ctor_get(v_machine_6343_, 2); -v_events_6348_ = lean_ctor_get(v_machine_6343_, 3); -v_instant_6349_ = lean_ctor_get(v_machine_6343_, 5); -v_forcedFlush_6350_ = lean_ctor_get_uint8(v_machine_6343_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6351_ = lean_ctor_get_uint8(v_machine_6343_, sizeof(void*)*6 + 2); -v_isSharedCheck_6392_ = !lean_is_exclusive(v_machine_6343_); -if (v_isSharedCheck_6392_ == 0) +lean_inc(v_instant_6352_); +lean_inc(v_error_6351_); +lean_inc(v_events_6350_); +lean_inc(v_config_6349_); +lean_inc(v_writer_6347_); +lean_inc(v_reader_6348_); +lean_dec(v_machine_6272_); +v___x_6357_ = lean_box(0); +v_isShared_6358_ = v_isSharedCheck_6558_; +goto v_resetjp_6356_; +} +v___jp_6274_: { -lean_object* v_unused_6393_; lean_object* v_unused_6394_; -v_unused_6393_ = lean_ctor_get(v_machine_6343_, 4); -lean_dec(v_unused_6393_); -v_unused_6394_ = lean_ctor_get(v_machine_6343_, 1); -lean_dec(v_unused_6394_); -v___x_6353_ = v_machine_6343_; -v_isShared_6354_ = v_isSharedCheck_6392_; -goto v_resetjp_6352_; +lean_object* v_state_6291_; lean_object* v_input_6292_; lean_object* v_messageHead_6293_; lean_object* v_messageCount_6294_; lean_object* v_bodyBytesRead_6295_; lean_object* v_headerBytesRead_6296_; lean_object* v___x_6298_; uint8_t v_isShared_6299_; uint8_t v_isSharedCheck_6306_; +v_state_6291_ = lean_ctor_get(v_reader_6276_, 0); +v_input_6292_ = lean_ctor_get(v_reader_6276_, 1); +v_messageHead_6293_ = lean_ctor_get(v_reader_6276_, 2); +v_messageCount_6294_ = lean_ctor_get(v_reader_6276_, 3); +v_bodyBytesRead_6295_ = lean_ctor_get(v_reader_6276_, 4); +v_headerBytesRead_6296_ = lean_ctor_get(v_reader_6276_, 5); +v_isSharedCheck_6306_ = !lean_is_exclusive(v_reader_6276_); +if (v_isSharedCheck_6306_ == 0) +{ +v___x_6298_ = v_reader_6276_; +v_isShared_6299_ = v_isSharedCheck_6306_; +goto v_resetjp_6297_; } else { -lean_inc(v_instant_6349_); -lean_inc(v_events_6348_); -lean_inc(v_config_6347_); -lean_inc(v_reader_6346_); -lean_dec(v_machine_6343_); -v___x_6353_ = lean_box(0); -v_isShared_6354_ = v_isSharedCheck_6392_; -goto v_resetjp_6352_; +lean_inc(v_headerBytesRead_6296_); +lean_inc(v_bodyBytesRead_6295_); +lean_inc(v_messageCount_6294_); +lean_inc(v_messageHead_6293_); +lean_inc(v_input_6292_); +lean_inc(v_state_6291_); +lean_dec(v_reader_6276_); +v___x_6298_ = lean_box(0); +v_isShared_6299_ = v_isSharedCheck_6306_; +goto v_resetjp_6297_; } -v_resetjp_6352_: +v_resetjp_6297_: { -lean_object* v_userData_6355_; lean_object* v_outputData_6356_; lean_object* v_knownSize_6357_; lean_object* v_messageHead_6358_; uint8_t v_sentMessage_6359_; uint8_t v_omitBody_6360_; lean_object* v_userDataBytes_6361_; lean_object* v___x_6363_; uint8_t v_isShared_6364_; uint8_t v_isSharedCheck_6390_; -v_userData_6355_ = lean_ctor_get(v_writer_6344_, 0); -v_outputData_6356_ = lean_ctor_get(v_writer_6344_, 1); -v_knownSize_6357_ = lean_ctor_get(v_writer_6344_, 3); -v_messageHead_6358_ = lean_ctor_get(v_writer_6344_, 4); -v_sentMessage_6359_ = lean_ctor_get_uint8(v_writer_6344_, sizeof(void*)*6); -v_omitBody_6360_ = lean_ctor_get_uint8(v_writer_6344_, sizeof(void*)*6 + 2); -v_userDataBytes_6361_ = lean_ctor_get(v_writer_6344_, 5); -v_isSharedCheck_6390_ = !lean_is_exclusive(v_writer_6344_); -if (v_isSharedCheck_6390_ == 0) +lean_object* v___x_6300_; lean_object* v___x_6302_; +v___x_6300_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_6300_, 0, v_userData_6277_); +lean_ctor_set(v___x_6300_, 1, v_outputData_6278_); +lean_ctor_set(v___x_6300_, 2, v_state_6279_); +lean_ctor_set(v___x_6300_, 3, v_knownSize_6280_); +lean_ctor_set(v___x_6300_, 4, v_messageHead_6281_); +lean_ctor_set(v___x_6300_, 5, v_userDataBytes_6284_); +lean_ctor_set_uint8(v___x_6300_, sizeof(void*)*6, v_sentMessage_6282_); +lean_ctor_set_uint8(v___x_6300_, sizeof(void*)*6 + 1, v___y_6275_); +lean_ctor_set_uint8(v___x_6300_, sizeof(void*)*6 + 2, v_omitBody_6283_); +if (v_isShared_6299_ == 0) { -lean_object* v_unused_6391_; -v_unused_6391_ = lean_ctor_get(v_writer_6344_, 2); -lean_dec(v_unused_6391_); -v___x_6363_ = v_writer_6344_; -v_isShared_6364_ = v_isSharedCheck_6390_; -goto v_resetjp_6362_; +v___x_6302_ = v___x_6298_; +goto v_reusejp_6301_; } else { -lean_inc(v_userDataBytes_6361_); -lean_inc(v_messageHead_6358_); -lean_inc(v_knownSize_6357_); -lean_inc(v_outputData_6356_); -lean_inc(v_userData_6355_); -lean_dec(v_writer_6344_); -v___x_6363_ = lean_box(0); -v_isShared_6364_ = v_isSharedCheck_6390_; -goto v_resetjp_6362_; +lean_object* v_reuseFailAlloc_6305_; +v_reuseFailAlloc_6305_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_6305_, 0, v_state_6291_); +lean_ctor_set(v_reuseFailAlloc_6305_, 1, v_input_6292_); +lean_ctor_set(v_reuseFailAlloc_6305_, 2, v_messageHead_6293_); +lean_ctor_set(v_reuseFailAlloc_6305_, 3, v_messageCount_6294_); +lean_ctor_set(v_reuseFailAlloc_6305_, 4, v_bodyBytesRead_6295_); +lean_ctor_set(v_reuseFailAlloc_6305_, 5, v_headerBytesRead_6296_); +v___x_6302_ = v_reuseFailAlloc_6305_; +goto v_reusejp_6301_; } -v_resetjp_6362_: +v_reusejp_6301_: { -lean_object* v_input_6365_; lean_object* v_messageHead_6366_; lean_object* v_messageCount_6367_; lean_object* v_bodyBytesRead_6368_; lean_object* v_headerBytesRead_6369_; lean_object* v___x_6371_; uint8_t v_isShared_6372_; uint8_t v_isSharedCheck_6388_; -v_input_6365_ = lean_ctor_get(v_reader_6346_, 1); -v_messageHead_6366_ = lean_ctor_get(v_reader_6346_, 2); -v_messageCount_6367_ = lean_ctor_get(v_reader_6346_, 3); -v_bodyBytesRead_6368_ = lean_ctor_get(v_reader_6346_, 4); -v_headerBytesRead_6369_ = lean_ctor_get(v_reader_6346_, 5); -v_isSharedCheck_6388_ = !lean_is_exclusive(v_reader_6346_); -if (v_isSharedCheck_6388_ == 0) +uint8_t v___x_6303_; lean_object* v___x_6304_; +lean_ctor_set_uint8(v___x_6302_, sizeof(void*)*6, v___y_6275_); +v___x_6303_ = 0; +v___x_6304_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_6304_, 0, v___x_6302_); +lean_ctor_set(v___x_6304_, 1, v___x_6300_); +lean_ctor_set(v___x_6304_, 2, v_config_6285_); +lean_ctor_set(v___x_6304_, 3, v_events_6286_); +lean_ctor_set(v___x_6304_, 4, v_error_6287_); +lean_ctor_set(v___x_6304_, 5, v_instant_6288_); +lean_ctor_set_uint8(v___x_6304_, sizeof(void*)*6, v_keepAlive_6289_); +lean_ctor_set_uint8(v___x_6304_, sizeof(void*)*6 + 1, v_forcedFlush_6290_); +lean_ctor_set_uint8(v___x_6304_, sizeof(void*)*6 + 2, v___x_6303_); +return v___x_6304_; +} +} +} +v___jp_6307_: { -lean_object* v_unused_6389_; -v_unused_6389_ = lean_ctor_get(v_reader_6346_, 0); -lean_dec(v_unused_6389_); -v___x_6371_ = v_reader_6346_; -v_isShared_6372_ = v_isSharedCheck_6388_; -goto v_resetjp_6370_; +lean_object* v_writer_6310_; lean_object* v_reader_6311_; lean_object* v_config_6312_; lean_object* v_events_6313_; lean_object* v_error_6314_; lean_object* v_instant_6315_; uint8_t v_keepAlive_6316_; uint8_t v_forcedFlush_6317_; lean_object* v_userData_6318_; lean_object* v_outputData_6319_; lean_object* v_knownSize_6320_; lean_object* v_messageHead_6321_; uint8_t v_sentMessage_6322_; uint8_t v_omitBody_6323_; lean_object* v_userDataBytes_6324_; lean_object* v___x_6325_; +v_writer_6310_ = lean_ctor_get(v___y_6309_, 1); +lean_inc_ref(v_writer_6310_); +v_reader_6311_ = lean_ctor_get(v___y_6309_, 0); +lean_inc_ref(v_reader_6311_); +v_config_6312_ = lean_ctor_get(v___y_6309_, 2); +lean_inc_ref(v_config_6312_); +v_events_6313_ = lean_ctor_get(v___y_6309_, 3); +lean_inc_ref(v_events_6313_); +v_error_6314_ = lean_ctor_get(v___y_6309_, 4); +lean_inc(v_error_6314_); +v_instant_6315_ = lean_ctor_get(v___y_6309_, 5); +lean_inc(v_instant_6315_); +v_keepAlive_6316_ = lean_ctor_get_uint8(v___y_6309_, sizeof(void*)*6); +v_forcedFlush_6317_ = lean_ctor_get_uint8(v___y_6309_, sizeof(void*)*6 + 1); +lean_dec_ref(v___y_6309_); +v_userData_6318_ = lean_ctor_get(v_writer_6310_, 0); +lean_inc_ref(v_userData_6318_); +v_outputData_6319_ = lean_ctor_get(v_writer_6310_, 1); +lean_inc_ref(v_outputData_6319_); +v_knownSize_6320_ = lean_ctor_get(v_writer_6310_, 3); +lean_inc(v_knownSize_6320_); +v_messageHead_6321_ = lean_ctor_get(v_writer_6310_, 4); +lean_inc(v_messageHead_6321_); +v_sentMessage_6322_ = lean_ctor_get_uint8(v_writer_6310_, sizeof(void*)*6); +v_omitBody_6323_ = lean_ctor_get_uint8(v_writer_6310_, sizeof(void*)*6 + 2); +v_userDataBytes_6324_ = lean_ctor_get(v_writer_6310_, 5); +lean_inc(v_userDataBytes_6324_); +lean_dec_ref(v_writer_6310_); +v___x_6325_ = lean_box(2); +v___y_6275_ = v___y_6308_; +v_reader_6276_ = v_reader_6311_; +v_userData_6277_ = v_userData_6318_; +v_outputData_6278_ = v_outputData_6319_; +v_state_6279_ = v___x_6325_; +v_knownSize_6280_ = v_knownSize_6320_; +v_messageHead_6281_ = v_messageHead_6321_; +v_sentMessage_6282_ = v_sentMessage_6322_; +v_omitBody_6283_ = v_omitBody_6323_; +v_userDataBytes_6284_ = v_userDataBytes_6324_; +v_config_6285_ = v_config_6312_; +v_events_6286_ = v_events_6313_; +v_error_6287_ = v_error_6314_; +v_instant_6288_ = v_instant_6315_; +v_keepAlive_6289_ = v_keepAlive_6316_; +v_forcedFlush_6290_ = v_forcedFlush_6317_; +goto v___jp_6274_; +} +v___jp_6326_: +{ +if (v___y_6330_ == 0) +{ +v___y_6308_ = v___y_6327_; +v___y_6309_ = v___y_6328_; +goto v___jp_6307_; } else { -lean_inc(v_headerBytesRead_6369_); -lean_inc(v_bodyBytesRead_6368_); -lean_inc(v_messageCount_6367_); -lean_inc(v_messageHead_6366_); -lean_inc(v_input_6365_); -lean_dec(v_reader_6346_); -v___x_6371_ = lean_box(0); -v_isShared_6372_ = v_isSharedCheck_6388_; -goto v_resetjp_6370_; -} -v_resetjp_6370_: +if (v___y_6329_ == 0) { -lean_object* v___x_6373_; uint8_t v___x_6374_; lean_object* v___x_6375_; lean_object* v___x_6377_; -v___x_6373_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6374_ = 0; -v___x_6375_ = lean_box(5); -if (v_isShared_6364_ == 0) -{ -lean_ctor_set(v___x_6363_, 2, v___x_6375_); -v___x_6377_ = v___x_6363_; -goto v_reusejp_6376_; +lean_object* v_writer_6331_; lean_object* v_reader_6332_; lean_object* v_config_6333_; lean_object* v_events_6334_; lean_object* v_error_6335_; lean_object* v_instant_6336_; uint8_t v_keepAlive_6337_; uint8_t v_forcedFlush_6338_; lean_object* v_userData_6339_; lean_object* v_outputData_6340_; lean_object* v_state_6341_; lean_object* v_knownSize_6342_; lean_object* v_messageHead_6343_; uint8_t v_sentMessage_6344_; uint8_t v_omitBody_6345_; lean_object* v_userDataBytes_6346_; +v_writer_6331_ = lean_ctor_get(v___y_6328_, 1); +lean_inc_ref(v_writer_6331_); +v_reader_6332_ = lean_ctor_get(v___y_6328_, 0); +lean_inc_ref(v_reader_6332_); +v_config_6333_ = lean_ctor_get(v___y_6328_, 2); +lean_inc_ref(v_config_6333_); +v_events_6334_ = lean_ctor_get(v___y_6328_, 3); +lean_inc_ref(v_events_6334_); +v_error_6335_ = lean_ctor_get(v___y_6328_, 4); +lean_inc(v_error_6335_); +v_instant_6336_ = lean_ctor_get(v___y_6328_, 5); +lean_inc(v_instant_6336_); +v_keepAlive_6337_ = lean_ctor_get_uint8(v___y_6328_, sizeof(void*)*6); +v_forcedFlush_6338_ = lean_ctor_get_uint8(v___y_6328_, sizeof(void*)*6 + 1); +lean_dec_ref(v___y_6328_); +v_userData_6339_ = lean_ctor_get(v_writer_6331_, 0); +lean_inc_ref(v_userData_6339_); +v_outputData_6340_ = lean_ctor_get(v_writer_6331_, 1); +lean_inc_ref(v_outputData_6340_); +v_state_6341_ = lean_ctor_get(v_writer_6331_, 2); +lean_inc(v_state_6341_); +v_knownSize_6342_ = lean_ctor_get(v_writer_6331_, 3); +lean_inc(v_knownSize_6342_); +v_messageHead_6343_ = lean_ctor_get(v_writer_6331_, 4); +lean_inc(v_messageHead_6343_); +v_sentMessage_6344_ = lean_ctor_get_uint8(v_writer_6331_, sizeof(void*)*6); +v_omitBody_6345_ = lean_ctor_get_uint8(v_writer_6331_, sizeof(void*)*6 + 2); +v_userDataBytes_6346_ = lean_ctor_get(v_writer_6331_, 5); +lean_inc(v_userDataBytes_6346_); +lean_dec_ref(v_writer_6331_); +v___y_6275_ = v___y_6327_; +v_reader_6276_ = v_reader_6332_; +v_userData_6277_ = v_userData_6339_; +v_outputData_6278_ = v_outputData_6340_; +v_state_6279_ = v_state_6341_; +v_knownSize_6280_ = v_knownSize_6342_; +v_messageHead_6281_ = v_messageHead_6343_; +v_sentMessage_6282_ = v_sentMessage_6344_; +v_omitBody_6283_ = v_omitBody_6345_; +v_userDataBytes_6284_ = v_userDataBytes_6346_; +v_config_6285_ = v_config_6333_; +v_events_6286_ = v_events_6334_; +v_error_6287_ = v_error_6335_; +v_instant_6288_ = v_instant_6336_; +v_keepAlive_6289_ = v_keepAlive_6337_; +v_forcedFlush_6290_ = v_forcedFlush_6338_; +goto v___jp_6274_; } else { -lean_object* v_reuseFailAlloc_6387_; -v_reuseFailAlloc_6387_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6387_, 0, v_userData_6355_); -lean_ctor_set(v_reuseFailAlloc_6387_, 1, v_outputData_6356_); -lean_ctor_set(v_reuseFailAlloc_6387_, 2, v___x_6375_); -lean_ctor_set(v_reuseFailAlloc_6387_, 3, v_knownSize_6357_); -lean_ctor_set(v_reuseFailAlloc_6387_, 4, v_messageHead_6358_); -lean_ctor_set(v_reuseFailAlloc_6387_, 5, v_userDataBytes_6361_); -lean_ctor_set_uint8(v_reuseFailAlloc_6387_, sizeof(void*)*6, v_sentMessage_6359_); -lean_ctor_set_uint8(v_reuseFailAlloc_6387_, sizeof(void*)*6 + 1, v_userClosedBody_6345_); -lean_ctor_set_uint8(v_reuseFailAlloc_6387_, sizeof(void*)*6 + 2, v_omitBody_6360_); -v___x_6377_ = v_reuseFailAlloc_6387_; -goto v_reusejp_6376_; +v___y_6308_ = v___y_6327_; +v___y_6309_ = v___y_6328_; +goto v___jp_6307_; } -v_reusejp_6376_: +} +} +v_resetjp_6356_: { -lean_object* v___x_6378_; lean_object* v___x_6380_; -v___x_6378_ = lean_box(6); -if (v_isShared_6372_ == 0) +lean_object* v_userData_6359_; lean_object* v_outputData_6360_; lean_object* v_state_6361_; lean_object* v_knownSize_6362_; lean_object* v_messageHead_6363_; uint8_t v_sentMessage_6364_; uint8_t v_userClosedBody_6365_; uint8_t v_omitBody_6366_; lean_object* v_userDataBytes_6367_; lean_object* v___x_6369_; uint8_t v_isShared_6370_; uint8_t v_isSharedCheck_6557_; +v_userData_6359_ = lean_ctor_get(v_writer_6347_, 0); +v_outputData_6360_ = lean_ctor_get(v_writer_6347_, 1); +v_state_6361_ = lean_ctor_get(v_writer_6347_, 2); +v_knownSize_6362_ = lean_ctor_get(v_writer_6347_, 3); +v_messageHead_6363_ = lean_ctor_get(v_writer_6347_, 4); +v_sentMessage_6364_ = lean_ctor_get_uint8(v_writer_6347_, sizeof(void*)*6); +v_userClosedBody_6365_ = lean_ctor_get_uint8(v_writer_6347_, sizeof(void*)*6 + 1); +v_omitBody_6366_ = lean_ctor_get_uint8(v_writer_6347_, sizeof(void*)*6 + 2); +v_userDataBytes_6367_ = lean_ctor_get(v_writer_6347_, 5); +v_isSharedCheck_6557_ = !lean_is_exclusive(v_writer_6347_); +if (v_isSharedCheck_6557_ == 0) { -lean_ctor_set(v___x_6371_, 0, v___x_6378_); -v___x_6380_ = v___x_6371_; -goto v_reusejp_6379_; +v___x_6369_ = v_writer_6347_; +v_isShared_6370_ = v_isSharedCheck_6557_; +goto v_resetjp_6368_; } else { -lean_object* v_reuseFailAlloc_6386_; -v_reuseFailAlloc_6386_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6386_, 0, v___x_6378_); -lean_ctor_set(v_reuseFailAlloc_6386_, 1, v_input_6365_); -lean_ctor_set(v_reuseFailAlloc_6386_, 2, v_messageHead_6366_); -lean_ctor_set(v_reuseFailAlloc_6386_, 3, v_messageCount_6367_); -lean_ctor_set(v_reuseFailAlloc_6386_, 4, v_bodyBytesRead_6368_); -lean_ctor_set(v_reuseFailAlloc_6386_, 5, v_headerBytesRead_6369_); -v___x_6380_ = v_reuseFailAlloc_6386_; -goto v_reusejp_6379_; +lean_inc(v_userDataBytes_6367_); +lean_inc(v_messageHead_6363_); +lean_inc(v_knownSize_6362_); +lean_inc(v_state_6361_); +lean_inc(v_outputData_6360_); +lean_inc(v_userData_6359_); +lean_dec(v_writer_6347_); +v___x_6369_ = lean_box(0); +v_isShared_6370_ = v_isSharedCheck_6557_; +goto v_resetjp_6368_; } -v_reusejp_6379_: +v_resetjp_6368_: { -lean_object* v___x_6381_; lean_object* v___x_6382_; lean_object* v___x_6384_; -lean_ctor_set_uint8(v___x_6380_, sizeof(void*)*6, v_userClosedBody_6345_); -v___x_6381_ = lean_box(3); -v___x_6382_ = lean_array_push(v_events_6348_, v___x_6381_); -if (v_isShared_6354_ == 0) +uint8_t v___y_6372_; lean_object* v___y_6373_; uint8_t v___y_6374_; lean_object* v___y_6375_; uint8_t v___y_6380_; lean_object* v___y_6381_; lean_object* v___y_6382_; uint8_t v___y_6383_; lean_object* v___y_6384_; lean_object* v___y_6385_; uint8_t v___y_6396_; lean_object* v___y_6397_; lean_object* v___y_6398_; uint8_t v___y_6399_; uint8_t v___y_6414_; lean_object* v___y_6415_; lean_object* v___y_6416_; uint8_t v___y_6417_; lean_object* v___y_6418_; uint8_t v___y_6419_; lean_object* v___y_6420_; lean_object* v___y_6424_; uint8_t v___y_6425_; lean_object* v___y_6426_; lean_object* v___y_6427_; uint8_t v___y_6428_; lean_object* v___y_6429_; uint8_t v___y_6430_; lean_object* v___y_6431_; lean_object* v___y_6432_; uint8_t v___y_6443_; lean_object* v___y_6444_; lean_object* v___y_6445_; uint8_t v___y_6446_; lean_object* v___y_6447_; uint8_t v___y_6448_; lean_object* v___y_6449_; uint8_t v___y_6464_; uint8_t v___x_6486_; uint8_t v___y_6488_; uint8_t v___y_6489_; uint8_t v___y_6490_; lean_object* v___y_6491_; uint8_t v___y_6492_; uint8_t v___y_6493_; lean_object* v___y_6494_; uint8_t v___y_6495_; uint8_t v___y_6502_; uint8_t v___y_6503_; lean_object* v___y_6504_; uint8_t v___y_6505_; uint8_t v___y_6506_; uint8_t v___y_6517_; lean_object* v___y_6518_; uint8_t v___y_6519_; uint8_t v___y_6520_; lean_object* v___y_6523_; uint8_t v___y_6524_; lean_object* v___y_6525_; lean_object* v___y_6526_; uint8_t v___y_6527_; uint8_t v___y_6539_; lean_object* v___x_6554_; uint8_t v___x_6555_; +v___x_6486_ = 0; +v___x_6554_ = lean_box(1); +v___x_6555_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_6361_, v___x_6554_); +if (v___x_6555_ == 0) { -lean_ctor_set(v___x_6353_, 4, v___x_6373_); -lean_ctor_set(v___x_6353_, 3, v___x_6382_); -lean_ctor_set(v___x_6353_, 1, v___x_6377_); -lean_ctor_set(v___x_6353_, 0, v___x_6380_); -v___x_6384_ = v___x_6353_; -goto v_reusejp_6383_; +v___y_6539_ = v___x_6555_; +goto v___jp_6538_; } else { -lean_object* v_reuseFailAlloc_6385_; -v_reuseFailAlloc_6385_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6385_, 0, v___x_6380_); -lean_ctor_set(v_reuseFailAlloc_6385_, 1, v___x_6377_); -lean_ctor_set(v_reuseFailAlloc_6385_, 2, v_config_6347_); -lean_ctor_set(v_reuseFailAlloc_6385_, 3, v___x_6382_); -lean_ctor_set(v_reuseFailAlloc_6385_, 4, v___x_6373_); -lean_ctor_set(v_reuseFailAlloc_6385_, 5, v_instant_6349_); -lean_ctor_set_uint8(v_reuseFailAlloc_6385_, sizeof(void*)*6 + 1, v_forcedFlush_6350_); -lean_ctor_set_uint8(v_reuseFailAlloc_6385_, sizeof(void*)*6 + 2, v_pullBodyStalled_6351_); -v___x_6384_ = v_reuseFailAlloc_6385_; -goto v_reusejp_6383_; -} -v_reusejp_6383_: +if (v_sentMessage_6364_ == 0) { -lean_ctor_set_uint8(v___x_6384_, sizeof(void*)*6, v___x_6374_); -return v___x_6384_; -} -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___boxed(lean_object* v_dir_6395_, lean_object* v_machine_6396_){ -_start: -{ -uint8_t v_dir_boxed_6397_; lean_object* v_res_6398_; -v_dir_boxed_6397_ = lean_unbox(v_dir_6395_); -v_res_6398_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody(v_dir_boxed_6397_, v_machine_6396_); -return v_res_6398_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(uint8_t v_dir_6399_, lean_object* v_machine_6400_){ -_start: -{ -lean_object* v_writer_6401_; lean_object* v_reader_6402_; lean_object* v_config_6403_; lean_object* v_events_6404_; lean_object* v_error_6405_; lean_object* v_instant_6406_; uint8_t v_keepAlive_6407_; uint8_t v_forcedFlush_6408_; uint8_t v_pullBodyStalled_6409_; lean_object* v___x_6411_; uint8_t v_isShared_6412_; uint8_t v_isSharedCheck_6435_; -v_writer_6401_ = lean_ctor_get(v_machine_6400_, 1); -v_reader_6402_ = lean_ctor_get(v_machine_6400_, 0); -v_config_6403_ = lean_ctor_get(v_machine_6400_, 2); -v_events_6404_ = lean_ctor_get(v_machine_6400_, 3); -v_error_6405_ = lean_ctor_get(v_machine_6400_, 4); -v_instant_6406_ = lean_ctor_get(v_machine_6400_, 5); -v_keepAlive_6407_ = lean_ctor_get_uint8(v_machine_6400_, sizeof(void*)*6); -v_forcedFlush_6408_ = lean_ctor_get_uint8(v_machine_6400_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6409_ = lean_ctor_get_uint8(v_machine_6400_, sizeof(void*)*6 + 2); -v_isSharedCheck_6435_ = !lean_is_exclusive(v_machine_6400_); -if (v_isSharedCheck_6435_ == 0) -{ -v___x_6411_ = v_machine_6400_; -v_isShared_6412_ = v_isSharedCheck_6435_; -goto v_resetjp_6410_; +v___y_6539_ = v___x_6555_; +goto v___jp_6538_; } else { -lean_inc(v_instant_6406_); -lean_inc(v_error_6405_); -lean_inc(v_events_6404_); -lean_inc(v_config_6403_); -lean_inc(v_writer_6401_); -lean_inc(v_reader_6402_); -lean_dec(v_machine_6400_); -v___x_6411_ = lean_box(0); -v_isShared_6412_ = v_isSharedCheck_6435_; -goto v_resetjp_6410_; +uint8_t v___x_6556_; +lean_dec(v_state_6361_); +lean_dec(v_status_6273_); +v___x_6556_ = 0; +v___y_6464_ = v___x_6556_; +goto v___jp_6463_; } -v_resetjp_6410_: +} +v___jp_6371_: { -lean_object* v_outputData_6413_; lean_object* v_state_6414_; lean_object* v_knownSize_6415_; lean_object* v_messageHead_6416_; uint8_t v_sentMessage_6417_; uint8_t v_userClosedBody_6418_; uint8_t v_omitBody_6419_; lean_object* v___x_6421_; uint8_t v_isShared_6422_; uint8_t v_isSharedCheck_6432_; -v_outputData_6413_ = lean_ctor_get(v_writer_6401_, 1); -v_state_6414_ = lean_ctor_get(v_writer_6401_, 2); -v_knownSize_6415_ = lean_ctor_get(v_writer_6401_, 3); -v_messageHead_6416_ = lean_ctor_get(v_writer_6401_, 4); -v_sentMessage_6417_ = lean_ctor_get_uint8(v_writer_6401_, sizeof(void*)*6); -v_userClosedBody_6418_ = lean_ctor_get_uint8(v_writer_6401_, sizeof(void*)*6 + 1); -v_omitBody_6419_ = lean_ctor_get_uint8(v_writer_6401_, sizeof(void*)*6 + 2); -v_isSharedCheck_6432_ = !lean_is_exclusive(v_writer_6401_); -if (v_isSharedCheck_6432_ == 0) +lean_object* v_message_6376_; lean_object* v___x_1106__overap_6377_; lean_object* v___x_6378_; +v_message_6376_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_6374_, v___y_6373_, v___y_6375_); +v___x_1106__overap_6377_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_6374_); +v___x_6378_ = lean_apply_2(v___x_1106__overap_6377_, v_outputData_6360_, v_message_6376_); +v___y_6275_ = v___y_6372_; +v_reader_6276_ = v_reader_6348_; +v_userData_6277_ = v_userData_6359_; +v_outputData_6278_ = v___x_6378_; +v_state_6279_ = v_state_6361_; +v_knownSize_6280_ = v_knownSize_6362_; +v_messageHead_6281_ = v_messageHead_6363_; +v_sentMessage_6282_ = v_sentMessage_6364_; +v_omitBody_6283_ = v_omitBody_6366_; +v_userDataBytes_6284_ = v_userDataBytes_6367_; +v_config_6285_ = v_config_6349_; +v_events_6286_ = v_events_6350_; +v_error_6287_ = v_error_6351_; +v_instant_6288_ = v_instant_6352_; +v_keepAlive_6289_ = v_keepAlive_6353_; +v_forcedFlush_6290_ = v_forcedFlush_6354_; +goto v___jp_6274_; +} +v___jp_6379_: { -lean_object* v_unused_6433_; lean_object* v_unused_6434_; -v_unused_6433_ = lean_ctor_get(v_writer_6401_, 5); -lean_dec(v_unused_6433_); -v_unused_6434_ = lean_ctor_get(v_writer_6401_, 0); -lean_dec(v_unused_6434_); -v___x_6421_ = v_writer_6401_; -v_isShared_6422_ = v_isSharedCheck_6432_; -goto v_resetjp_6420_; +lean_object* v___x_6386_; uint8_t v___x_6387_; +v___x_6386_ = lean_array_get_size(v___y_6385_); +v___x_6387_ = lean_nat_dec_lt(v___y_6381_, v___x_6386_); +if (v___x_6387_ == 0) +{ +lean_dec_ref(v___y_6385_); +lean_inc_ref(v___y_6384_); +v___y_6372_ = v___y_6380_; +v___y_6373_ = v___y_6382_; +v___y_6374_ = v___y_6383_; +v___y_6375_ = v___y_6384_; +goto v___jp_6371_; } else { -lean_inc(v_messageHead_6416_); -lean_inc(v_knownSize_6415_); -lean_inc(v_state_6414_); -lean_inc(v_outputData_6413_); -lean_dec(v_writer_6401_); -v___x_6421_ = lean_box(0); -v_isShared_6422_ = v_isSharedCheck_6432_; -goto v_resetjp_6420_; -} -v_resetjp_6420_: +uint8_t v___x_6388_; +v___x_6388_ = lean_nat_dec_le(v___x_6386_, v___x_6386_); +if (v___x_6388_ == 0) { -lean_object* v___x_6423_; lean_object* v___x_6424_; lean_object* v___x_6426_; -v___x_6423_ = lean_unsigned_to_nat(0u); -v___x_6424_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); -if (v_isShared_6422_ == 0) +if (v___x_6387_ == 0) { -lean_ctor_set(v___x_6421_, 5, v___x_6423_); -lean_ctor_set(v___x_6421_, 0, v___x_6424_); -v___x_6426_ = v___x_6421_; -goto v_reusejp_6425_; +lean_dec_ref(v___y_6385_); +lean_inc_ref(v___y_6384_); +v___y_6372_ = v___y_6380_; +v___y_6373_ = v___y_6382_; +v___y_6374_ = v___y_6383_; +v___y_6375_ = v___y_6384_; +goto v___jp_6371_; } else { -lean_object* v_reuseFailAlloc_6431_; -v_reuseFailAlloc_6431_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6431_, 0, v___x_6424_); -lean_ctor_set(v_reuseFailAlloc_6431_, 1, v_outputData_6413_); -lean_ctor_set(v_reuseFailAlloc_6431_, 2, v_state_6414_); -lean_ctor_set(v_reuseFailAlloc_6431_, 3, v_knownSize_6415_); -lean_ctor_set(v_reuseFailAlloc_6431_, 4, v_messageHead_6416_); -lean_ctor_set(v_reuseFailAlloc_6431_, 5, v___x_6423_); -lean_ctor_set_uint8(v_reuseFailAlloc_6431_, sizeof(void*)*6, v_sentMessage_6417_); -lean_ctor_set_uint8(v_reuseFailAlloc_6431_, sizeof(void*)*6 + 1, v_userClosedBody_6418_); -lean_ctor_set_uint8(v_reuseFailAlloc_6431_, sizeof(void*)*6 + 2, v_omitBody_6419_); -v___x_6426_ = v_reuseFailAlloc_6431_; -goto v_reusejp_6425_; -} -v_reusejp_6425_: -{ -lean_object* v___x_6428_; -if (v_isShared_6412_ == 0) -{ -lean_ctor_set(v___x_6411_, 1, v___x_6426_); -v___x_6428_ = v___x_6411_; -goto v_reusejp_6427_; -} -else -{ -lean_object* v_reuseFailAlloc_6430_; -v_reuseFailAlloc_6430_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6430_, 0, v_reader_6402_); -lean_ctor_set(v_reuseFailAlloc_6430_, 1, v___x_6426_); -lean_ctor_set(v_reuseFailAlloc_6430_, 2, v_config_6403_); -lean_ctor_set(v_reuseFailAlloc_6430_, 3, v_events_6404_); -lean_ctor_set(v_reuseFailAlloc_6430_, 4, v_error_6405_); -lean_ctor_set(v_reuseFailAlloc_6430_, 5, v_instant_6406_); -lean_ctor_set_uint8(v_reuseFailAlloc_6430_, sizeof(void*)*6, v_keepAlive_6407_); -lean_ctor_set_uint8(v_reuseFailAlloc_6430_, sizeof(void*)*6 + 1, v_forcedFlush_6408_); -lean_ctor_set_uint8(v_reuseFailAlloc_6430_, sizeof(void*)*6 + 2, v_pullBodyStalled_6409_); -v___x_6428_ = v_reuseFailAlloc_6430_; -goto v_reusejp_6427_; -} -v_reusejp_6427_: -{ -lean_object* v___x_6429_; -v___x_6429_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_6399_, v___x_6428_); -return v___x_6429_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(uint8_t v_dir_6436_, lean_object* v_machine_6437_){ -_start: -{ -lean_object* v_writer_6438_; uint8_t v_omitBody_6439_; -v_writer_6438_ = lean_ctor_get(v_machine_6437_, 1); -v_omitBody_6439_ = lean_ctor_get_uint8(v_writer_6438_, sizeof(void*)*6 + 2); -if (v_omitBody_6439_ == 0) -{ -uint8_t v_userClosedBody_6440_; -v_userClosedBody_6440_ = lean_ctor_get_uint8(v_writer_6438_, sizeof(void*)*6 + 1); -if (v_userClosedBody_6440_ == 0) -{ -lean_object* v_reader_6441_; lean_object* v_config_6442_; lean_object* v_events_6443_; lean_object* v_error_6444_; lean_object* v_instant_6445_; uint8_t v_keepAlive_6446_; uint8_t v_forcedFlush_6447_; uint8_t v_pullBodyStalled_6448_; lean_object* v_userData_6449_; lean_object* v___x_6450_; lean_object* v___x_6451_; uint8_t v___x_6452_; -v_reader_6441_ = lean_ctor_get(v_machine_6437_, 0); -v_config_6442_ = lean_ctor_get(v_machine_6437_, 2); -v_events_6443_ = lean_ctor_get(v_machine_6437_, 3); -v_error_6444_ = lean_ctor_get(v_machine_6437_, 4); -v_instant_6445_ = lean_ctor_get(v_machine_6437_, 5); -v_keepAlive_6446_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6); -v_forcedFlush_6447_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6448_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6 + 2); -v_userData_6449_ = lean_ctor_get(v_writer_6438_, 0); -v___x_6450_ = lean_unsigned_to_nat(0u); -v___x_6451_ = lean_array_get_size(v_userData_6449_); -v___x_6452_ = lean_nat_dec_lt(v___x_6450_, v___x_6451_); -if (v___x_6452_ == 0) -{ -return v_machine_6437_; -} -else -{ -lean_object* v___x_6454_; uint8_t v_isShared_6455_; uint8_t v_isSharedCheck_6461_; -lean_inc(v_instant_6445_); -lean_inc(v_error_6444_); -lean_inc_ref(v_events_6443_); -lean_inc_ref(v_config_6442_); -lean_inc_ref(v_reader_6441_); -lean_inc_ref(v_writer_6438_); -v_isSharedCheck_6461_ = !lean_is_exclusive(v_machine_6437_); -if (v_isSharedCheck_6461_ == 0) -{ -lean_object* v_unused_6462_; lean_object* v_unused_6463_; lean_object* v_unused_6464_; lean_object* v_unused_6465_; lean_object* v_unused_6466_; lean_object* v_unused_6467_; -v_unused_6462_ = lean_ctor_get(v_machine_6437_, 5); -lean_dec(v_unused_6462_); -v_unused_6463_ = lean_ctor_get(v_machine_6437_, 4); -lean_dec(v_unused_6463_); -v_unused_6464_ = lean_ctor_get(v_machine_6437_, 3); -lean_dec(v_unused_6464_); -v_unused_6465_ = lean_ctor_get(v_machine_6437_, 2); -lean_dec(v_unused_6465_); -v_unused_6466_ = lean_ctor_get(v_machine_6437_, 1); -lean_dec(v_unused_6466_); -v_unused_6467_ = lean_ctor_get(v_machine_6437_, 0); -lean_dec(v_unused_6467_); -v___x_6454_ = v_machine_6437_; -v_isShared_6455_ = v_isSharedCheck_6461_; -goto v_resetjp_6453_; -} -else -{ -lean_dec(v_machine_6437_); -v___x_6454_ = lean_box(0); -v_isShared_6455_ = v_isSharedCheck_6461_; -goto v_resetjp_6453_; -} -v_resetjp_6453_: -{ -lean_object* v___x_6456_; lean_object* v___x_6458_; -v___x_6456_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_6438_); -if (v_isShared_6455_ == 0) -{ -lean_ctor_set(v___x_6454_, 1, v___x_6456_); -v___x_6458_ = v___x_6454_; -goto v_reusejp_6457_; -} -else -{ -lean_object* v_reuseFailAlloc_6460_; -v_reuseFailAlloc_6460_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6460_, 0, v_reader_6441_); -lean_ctor_set(v_reuseFailAlloc_6460_, 1, v___x_6456_); -lean_ctor_set(v_reuseFailAlloc_6460_, 2, v_config_6442_); -lean_ctor_set(v_reuseFailAlloc_6460_, 3, v_events_6443_); -lean_ctor_set(v_reuseFailAlloc_6460_, 4, v_error_6444_); -lean_ctor_set(v_reuseFailAlloc_6460_, 5, v_instant_6445_); -lean_ctor_set_uint8(v_reuseFailAlloc_6460_, sizeof(void*)*6, v_keepAlive_6446_); -lean_ctor_set_uint8(v_reuseFailAlloc_6460_, sizeof(void*)*6 + 1, v_forcedFlush_6447_); -lean_ctor_set_uint8(v_reuseFailAlloc_6460_, sizeof(void*)*6 + 2, v_pullBodyStalled_6448_); -v___x_6458_ = v_reuseFailAlloc_6460_; -goto v_reusejp_6457_; -} -v_reusejp_6457_: -{ -lean_object* v___x_6459_; -v___x_6459_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_6436_, v___x_6458_); -return v___x_6459_; -} -} +size_t v___x_6389_; size_t v___x_6390_; lean_object* v___x_6391_; +v___x_6389_ = ((size_t)0ULL); +v___x_6390_ = lean_usize_of_nat(v___x_6386_); +lean_inc_ref(v___y_6384_); +v___x_6391_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6385_, v___x_6389_, v___x_6390_, v___y_6384_); +lean_dec_ref(v___y_6385_); +v___y_6372_ = v___y_6380_; +v___y_6373_ = v___y_6382_; +v___y_6374_ = v___y_6383_; +v___y_6375_ = v___x_6391_; +goto v___jp_6371_; } } else { -lean_object* v_reader_6468_; lean_object* v_config_6469_; lean_object* v_events_6470_; lean_object* v_error_6471_; lean_object* v_instant_6472_; uint8_t v_keepAlive_6473_; uint8_t v_forcedFlush_6474_; uint8_t v_pullBodyStalled_6475_; lean_object* v___x_6477_; uint8_t v_isShared_6478_; uint8_t v_isSharedCheck_6484_; -lean_inc_ref(v_writer_6438_); -v_reader_6468_ = lean_ctor_get(v_machine_6437_, 0); -v_config_6469_ = lean_ctor_get(v_machine_6437_, 2); -v_events_6470_ = lean_ctor_get(v_machine_6437_, 3); -v_error_6471_ = lean_ctor_get(v_machine_6437_, 4); -v_instant_6472_ = lean_ctor_get(v_machine_6437_, 5); -v_keepAlive_6473_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6); -v_forcedFlush_6474_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6475_ = lean_ctor_get_uint8(v_machine_6437_, sizeof(void*)*6 + 2); -v_isSharedCheck_6484_ = !lean_is_exclusive(v_machine_6437_); -if (v_isSharedCheck_6484_ == 0) +size_t v___x_6392_; size_t v___x_6393_; lean_object* v___x_6394_; +v___x_6392_ = ((size_t)0ULL); +v___x_6393_ = lean_usize_of_nat(v___x_6386_); +lean_inc_ref(v___y_6384_); +v___x_6394_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6385_, v___x_6392_, v___x_6393_, v___y_6384_); +lean_dec_ref(v___y_6385_); +v___y_6372_ = v___y_6380_; +v___y_6373_ = v___y_6382_; +v___y_6374_ = v___y_6383_; +v___y_6375_ = v___x_6394_; +goto v___jp_6371_; +} +} +} +v___jp_6395_: { -lean_object* v_unused_6485_; -v_unused_6485_ = lean_ctor_get(v_machine_6437_, 1); -lean_dec(v_unused_6485_); -v___x_6477_ = v_machine_6437_; -v_isShared_6478_ = v_isSharedCheck_6484_; -goto v_resetjp_6476_; +lean_object* v_entries_6400_; lean_object* v___x_6401_; lean_object* v___x_6402_; lean_object* v___x_6403_; lean_object* v___x_6404_; uint8_t v___x_6405_; +v_entries_6400_ = lean_ctor_get(v___y_6397_, 0); +lean_inc_ref(v_entries_6400_); +lean_dec_ref(v___y_6397_); +v___x_6401_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_6402_ = lean_unsigned_to_nat(0u); +v___x_6403_ = lean_array_get_size(v_entries_6400_); +v___x_6404_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_6405_ = lean_nat_dec_lt(v___x_6402_, v___x_6403_); +if (v___x_6405_ == 0) +{ +lean_dec_ref(v_entries_6400_); +v___y_6380_ = v___y_6396_; +v___y_6381_ = v___x_6402_; +v___y_6382_ = v___y_6398_; +v___y_6383_ = v___y_6399_; +v___y_6384_ = v___x_6401_; +v___y_6385_ = v___x_6404_; +goto v___jp_6379_; } else { -lean_inc(v_instant_6472_); -lean_inc(v_error_6471_); -lean_inc(v_events_6470_); -lean_inc(v_config_6469_); -lean_inc(v_reader_6468_); -lean_dec(v_machine_6437_); -v___x_6477_ = lean_box(0); -v_isShared_6478_ = v_isSharedCheck_6484_; -goto v_resetjp_6476_; +uint8_t v___x_6406_; +v___x_6406_ = lean_nat_dec_le(v___x_6403_, v___x_6403_); +if (v___x_6406_ == 0) +{ +if (v___x_6405_ == 0) +{ +lean_dec_ref(v_entries_6400_); +v___y_6380_ = v___y_6396_; +v___y_6381_ = v___x_6402_; +v___y_6382_ = v___y_6398_; +v___y_6383_ = v___y_6399_; +v___y_6384_ = v___x_6401_; +v___y_6385_ = v___x_6404_; +goto v___jp_6379_; } -v_resetjp_6476_: +else { -lean_object* v___x_6479_; lean_object* v___x_6481_; -v___x_6479_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(v_writer_6438_); -if (v_isShared_6478_ == 0) +size_t v___x_6407_; size_t v___x_6408_; lean_object* v___x_6409_; +v___x_6407_ = ((size_t)0ULL); +v___x_6408_ = lean_usize_of_nat(v___x_6403_); +v___x_6409_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_6400_, v___x_6407_, v___x_6408_, v___x_6404_); +lean_dec_ref(v_entries_6400_); +v___y_6380_ = v___y_6396_; +v___y_6381_ = v___x_6402_; +v___y_6382_ = v___y_6398_; +v___y_6383_ = v___y_6399_; +v___y_6384_ = v___x_6401_; +v___y_6385_ = v___x_6409_; +goto v___jp_6379_; +} +} +else { -lean_ctor_set(v___x_6477_, 1, v___x_6479_); -v___x_6481_ = v___x_6477_; -goto v_reusejp_6480_; +size_t v___x_6410_; size_t v___x_6411_; lean_object* v___x_6412_; +v___x_6410_ = ((size_t)0ULL); +v___x_6411_ = lean_usize_of_nat(v___x_6403_); +v___x_6412_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_6400_, v___x_6410_, v___x_6411_, v___x_6404_); +lean_dec_ref(v_entries_6400_); +v___y_6380_ = v___y_6396_; +v___y_6381_ = v___x_6402_; +v___y_6382_ = v___y_6398_; +v___y_6383_ = v___y_6399_; +v___y_6384_ = v___x_6401_; +v___y_6385_ = v___x_6412_; +goto v___jp_6379_; +} +} +} +v___jp_6413_: +{ +lean_object* v___x_6421_; uint8_t v___x_6422_; +v___x_6421_ = l_Std_Http_Header_Name_transferEncoding; +lean_inc_ref(v___y_6415_); +lean_inc_ref(v___y_6416_); +v___x_6422_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___y_6416_, v___y_6415_, v___x_6421_, v___y_6420_); +if (v___x_6422_ == 0) +{ +if (v___y_6417_ == 0) +{ +v___y_6396_ = v___y_6414_; +v___y_6397_ = v___y_6420_; +v___y_6398_ = v___y_6418_; +v___y_6399_ = v___y_6419_; +goto v___jp_6395_; +} +else +{ +v___y_6372_ = v___y_6414_; +v___y_6373_ = v___y_6418_; +v___y_6374_ = v___y_6419_; +v___y_6375_ = v___y_6420_; +goto v___jp_6371_; +} +} +else +{ +v___y_6396_ = v___y_6414_; +v___y_6397_ = v___y_6420_; +v___y_6398_ = v___y_6418_; +v___y_6399_ = v___y_6419_; +goto v___jp_6395_; +} +} +v___jp_6423_: +{ +lean_object* v___x_6433_; uint8_t v___x_6434_; +v___x_6433_ = lean_array_get_size(v___y_6432_); +v___x_6434_ = lean_nat_dec_lt(v___y_6431_, v___x_6433_); +if (v___x_6434_ == 0) +{ +lean_dec_ref(v___y_6432_); +lean_inc_ref(v___y_6426_); +v___y_6414_ = v___y_6425_; +v___y_6415_ = v___y_6424_; +v___y_6416_ = v___y_6427_; +v___y_6417_ = v___y_6428_; +v___y_6418_ = v___y_6429_; +v___y_6419_ = v___y_6430_; +v___y_6420_ = v___y_6426_; +goto v___jp_6413_; +} +else +{ +uint8_t v___x_6435_; +v___x_6435_ = lean_nat_dec_le(v___x_6433_, v___x_6433_); +if (v___x_6435_ == 0) +{ +if (v___x_6434_ == 0) +{ +lean_dec_ref(v___y_6432_); +lean_inc_ref(v___y_6426_); +v___y_6414_ = v___y_6425_; +v___y_6415_ = v___y_6424_; +v___y_6416_ = v___y_6427_; +v___y_6417_ = v___y_6428_; +v___y_6418_ = v___y_6429_; +v___y_6419_ = v___y_6430_; +v___y_6420_ = v___y_6426_; +goto v___jp_6413_; +} +else +{ +size_t v___x_6436_; size_t v___x_6437_; lean_object* v___x_6438_; +v___x_6436_ = ((size_t)0ULL); +v___x_6437_ = lean_usize_of_nat(v___x_6433_); +lean_inc_ref(v___y_6426_); +v___x_6438_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6432_, v___x_6436_, v___x_6437_, v___y_6426_); +lean_dec_ref(v___y_6432_); +v___y_6414_ = v___y_6425_; +v___y_6415_ = v___y_6424_; +v___y_6416_ = v___y_6427_; +v___y_6417_ = v___y_6428_; +v___y_6418_ = v___y_6429_; +v___y_6419_ = v___y_6430_; +v___y_6420_ = v___x_6438_; +goto v___jp_6413_; +} +} +else +{ +size_t v___x_6439_; size_t v___x_6440_; lean_object* v___x_6441_; +v___x_6439_ = ((size_t)0ULL); +v___x_6440_ = lean_usize_of_nat(v___x_6433_); +lean_inc_ref(v___y_6426_); +v___x_6441_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_6432_, v___x_6439_, v___x_6440_, v___y_6426_); +lean_dec_ref(v___y_6432_); +v___y_6414_ = v___y_6425_; +v___y_6415_ = v___y_6424_; +v___y_6416_ = v___y_6427_; +v___y_6417_ = v___y_6428_; +v___y_6418_ = v___y_6429_; +v___y_6419_ = v___y_6430_; +v___y_6420_ = v___x_6441_; +goto v___jp_6413_; +} +} +} +v___jp_6442_: +{ +lean_object* v_entries_6450_; lean_object* v___x_6451_; lean_object* v___x_6452_; lean_object* v___x_6453_; lean_object* v___x_6454_; uint8_t v___x_6455_; +v_entries_6450_ = lean_ctor_get(v___y_6449_, 0); +lean_inc_ref(v_entries_6450_); +lean_dec_ref(v___y_6449_); +v___x_6451_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_6452_ = lean_unsigned_to_nat(0u); +v___x_6453_ = lean_array_get_size(v_entries_6450_); +v___x_6454_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_6455_ = lean_nat_dec_lt(v___x_6452_, v___x_6453_); +if (v___x_6455_ == 0) +{ +lean_dec_ref(v_entries_6450_); +v___y_6424_ = v___y_6444_; +v___y_6425_ = v___y_6443_; +v___y_6426_ = v___x_6451_; +v___y_6427_ = v___y_6445_; +v___y_6428_ = v___y_6446_; +v___y_6429_ = v___y_6447_; +v___y_6430_ = v___y_6448_; +v___y_6431_ = v___x_6452_; +v___y_6432_ = v___x_6454_; +goto v___jp_6423_; +} +else +{ +uint8_t v___x_6456_; +v___x_6456_ = lean_nat_dec_le(v___x_6453_, v___x_6453_); +if (v___x_6456_ == 0) +{ +if (v___x_6455_ == 0) +{ +lean_dec_ref(v_entries_6450_); +v___y_6424_ = v___y_6444_; +v___y_6425_ = v___y_6443_; +v___y_6426_ = v___x_6451_; +v___y_6427_ = v___y_6445_; +v___y_6428_ = v___y_6446_; +v___y_6429_ = v___y_6447_; +v___y_6430_ = v___y_6448_; +v___y_6431_ = v___x_6452_; +v___y_6432_ = v___x_6454_; +goto v___jp_6423_; +} +else +{ +size_t v___x_6457_; size_t v___x_6458_; lean_object* v___x_6459_; +v___x_6457_ = ((size_t)0ULL); +v___x_6458_ = lean_usize_of_nat(v___x_6453_); +v___x_6459_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_6450_, v___x_6457_, v___x_6458_, v___x_6454_); +lean_dec_ref(v_entries_6450_); +v___y_6424_ = v___y_6444_; +v___y_6425_ = v___y_6443_; +v___y_6426_ = v___x_6451_; +v___y_6427_ = v___y_6445_; +v___y_6428_ = v___y_6446_; +v___y_6429_ = v___y_6447_; +v___y_6430_ = v___y_6448_; +v___y_6431_ = v___x_6452_; +v___y_6432_ = v___x_6459_; +goto v___jp_6423_; +} +} +else +{ +size_t v___x_6460_; size_t v___x_6461_; lean_object* v___x_6462_; +v___x_6460_ = ((size_t)0ULL); +v___x_6461_ = lean_usize_of_nat(v___x_6453_); +v___x_6462_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_6450_, v___x_6460_, v___x_6461_, v___x_6454_); +lean_dec_ref(v_entries_6450_); +v___y_6424_ = v___y_6444_; +v___y_6425_ = v___y_6443_; +v___y_6426_ = v___x_6451_; +v___y_6427_ = v___y_6445_; +v___y_6428_ = v___y_6446_; +v___y_6429_ = v___y_6447_; +v___y_6430_ = v___y_6448_; +v___y_6431_ = v___x_6452_; +v___y_6432_ = v___x_6462_; +goto v___jp_6423_; +} +} +} +v___jp_6463_: +{ +lean_object* v_state_6465_; lean_object* v_input_6466_; lean_object* v_messageHead_6467_; lean_object* v_messageCount_6468_; lean_object* v_bodyBytesRead_6469_; lean_object* v_headerBytesRead_6470_; lean_object* v___x_6472_; uint8_t v_isShared_6473_; uint8_t v_isSharedCheck_6485_; +v_state_6465_ = lean_ctor_get(v_reader_6348_, 0); +v_input_6466_ = lean_ctor_get(v_reader_6348_, 1); +v_messageHead_6467_ = lean_ctor_get(v_reader_6348_, 2); +v_messageCount_6468_ = lean_ctor_get(v_reader_6348_, 3); +v_bodyBytesRead_6469_ = lean_ctor_get(v_reader_6348_, 4); +v_headerBytesRead_6470_ = lean_ctor_get(v_reader_6348_, 5); +v_isSharedCheck_6485_ = !lean_is_exclusive(v_reader_6348_); +if (v_isSharedCheck_6485_ == 0) +{ +v___x_6472_ = v_reader_6348_; +v_isShared_6473_ = v_isSharedCheck_6485_; +goto v_resetjp_6471_; +} +else +{ +lean_inc(v_headerBytesRead_6470_); +lean_inc(v_bodyBytesRead_6469_); +lean_inc(v_messageCount_6468_); +lean_inc(v_messageHead_6467_); +lean_inc(v_input_6466_); +lean_inc(v_state_6465_); +lean_dec(v_reader_6348_); +v___x_6472_ = lean_box(0); +v_isShared_6473_ = v_isSharedCheck_6485_; +goto v_resetjp_6471_; +} +v_resetjp_6471_: +{ +lean_object* v___x_6474_; uint8_t v___x_6475_; lean_object* v___x_6477_; +v___x_6474_ = lean_box(7); +v___x_6475_ = 1; +if (v_isShared_6370_ == 0) +{ +lean_ctor_set(v___x_6369_, 2, v___x_6474_); +v___x_6477_ = v___x_6369_; +goto v_reusejp_6476_; +} +else +{ +lean_object* v_reuseFailAlloc_6484_; +v_reuseFailAlloc_6484_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6484_, 0, v_userData_6359_); +lean_ctor_set(v_reuseFailAlloc_6484_, 1, v_outputData_6360_); +lean_ctor_set(v_reuseFailAlloc_6484_, 2, v___x_6474_); +lean_ctor_set(v_reuseFailAlloc_6484_, 3, v_knownSize_6362_); +lean_ctor_set(v_reuseFailAlloc_6484_, 4, v_messageHead_6363_); +lean_ctor_set(v_reuseFailAlloc_6484_, 5, v_userDataBytes_6367_); +lean_ctor_set_uint8(v_reuseFailAlloc_6484_, sizeof(void*)*6, v_sentMessage_6364_); +lean_ctor_set_uint8(v_reuseFailAlloc_6484_, sizeof(void*)*6 + 2, v_omitBody_6366_); +v___x_6477_ = v_reuseFailAlloc_6484_; +goto v_reusejp_6476_; +} +v_reusejp_6476_: +{ +lean_object* v___x_6479_; +lean_ctor_set_uint8(v___x_6477_, sizeof(void*)*6 + 1, v___x_6475_); +if (v_isShared_6473_ == 0) +{ +v___x_6479_ = v___x_6472_; +goto v_reusejp_6478_; } else { lean_object* v_reuseFailAlloc_6483_; -v_reuseFailAlloc_6483_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6483_, 0, v_reader_6468_); -lean_ctor_set(v_reuseFailAlloc_6483_, 1, v___x_6479_); -lean_ctor_set(v_reuseFailAlloc_6483_, 2, v_config_6469_); -lean_ctor_set(v_reuseFailAlloc_6483_, 3, v_events_6470_); -lean_ctor_set(v_reuseFailAlloc_6483_, 4, v_error_6471_); -lean_ctor_set(v_reuseFailAlloc_6483_, 5, v_instant_6472_); -lean_ctor_set_uint8(v_reuseFailAlloc_6483_, sizeof(void*)*6, v_keepAlive_6473_); -lean_ctor_set_uint8(v_reuseFailAlloc_6483_, sizeof(void*)*6 + 1, v_forcedFlush_6474_); -lean_ctor_set_uint8(v_reuseFailAlloc_6483_, sizeof(void*)*6 + 2, v_pullBodyStalled_6475_); -v___x_6481_ = v_reuseFailAlloc_6483_; +v_reuseFailAlloc_6483_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_6483_, 0, v_state_6465_); +lean_ctor_set(v_reuseFailAlloc_6483_, 1, v_input_6466_); +lean_ctor_set(v_reuseFailAlloc_6483_, 2, v_messageHead_6467_); +lean_ctor_set(v_reuseFailAlloc_6483_, 3, v_messageCount_6468_); +lean_ctor_set(v_reuseFailAlloc_6483_, 4, v_bodyBytesRead_6469_); +lean_ctor_set(v_reuseFailAlloc_6483_, 5, v_headerBytesRead_6470_); +v___x_6479_ = v_reuseFailAlloc_6483_; +goto v_reusejp_6478_; +} +v_reusejp_6478_: +{ +lean_object* v___x_6481_; +lean_ctor_set_uint8(v___x_6479_, sizeof(void*)*6, v___x_6475_); +if (v_isShared_6358_ == 0) +{ +lean_ctor_set(v___x_6357_, 1, v___x_6477_); +lean_ctor_set(v___x_6357_, 0, v___x_6479_); +v___x_6481_ = v___x_6357_; +goto v_reusejp_6480_; +} +else +{ +lean_object* v_reuseFailAlloc_6482_; +v_reuseFailAlloc_6482_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6482_, 0, v___x_6479_); +lean_ctor_set(v_reuseFailAlloc_6482_, 1, v___x_6477_); +lean_ctor_set(v_reuseFailAlloc_6482_, 2, v_config_6349_); +lean_ctor_set(v_reuseFailAlloc_6482_, 3, v_events_6350_); +lean_ctor_set(v_reuseFailAlloc_6482_, 4, v_error_6351_); +lean_ctor_set(v_reuseFailAlloc_6482_, 5, v_instant_6352_); +lean_ctor_set_uint8(v_reuseFailAlloc_6482_, sizeof(void*)*6, v_keepAlive_6353_); +lean_ctor_set_uint8(v_reuseFailAlloc_6482_, sizeof(void*)*6 + 1, v_forcedFlush_6354_); +v___x_6481_ = v_reuseFailAlloc_6482_; goto v_reusejp_6480_; } v_reusejp_6480_: { -lean_object* v___x_6482_; -v___x_6482_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_6436_, v___x_6481_); -return v___x_6482_; +lean_ctor_set_uint8(v___x_6481_, sizeof(void*)*6 + 2, v___y_6464_); +return v___x_6481_; } } } } +} +v___jp_6487_: +{ +lean_object* v_headerSize_6496_; lean_object* v_machine_6497_; lean_object* v_machine_6498_; lean_object* v_reader_6499_; lean_object* v_state_6500_; +v_headerSize_6496_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_6489_, v___y_6491_, v___y_6490_); +v_machine_6497_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_6494_, v_headerSize_6496_, v___y_6495_); +v_machine_6498_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v___x_6486_, v_machine_6497_, v___y_6491_); +lean_dec_ref(v___y_6491_); +v_reader_6499_ = lean_ctor_get(v_machine_6498_, 0); +lean_inc_ref(v_reader_6499_); +v_state_6500_ = lean_ctor_get(v_reader_6499_, 0); +lean_inc(v_state_6500_); +lean_dec_ref(v_reader_6499_); +if (lean_obj_tag(v_state_6500_) == 7) +{ +lean_dec_ref(v_state_6500_); +v___y_6327_ = v___y_6488_; +v___y_6328_ = v_machine_6498_; +v___y_6329_ = v___y_6493_; +v___y_6330_ = v___y_6492_; +goto v___jp_6326_; +} else { -lean_object* v___x_6486_; -v___x_6486_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_6436_, v_machine_6437_); -return v___x_6486_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(uint8_t v_dir_6489_, lean_object* v_machine_6490_, lean_object* v_n_6491_){ -_start: -{ -lean_object* v_reader_6492_; lean_object* v_writer_6493_; lean_object* v_config_6494_; lean_object* v_events_6495_; lean_object* v_error_6496_; lean_object* v_instant_6497_; uint8_t v_keepAlive_6498_; uint8_t v_forcedFlush_6499_; uint8_t v_pullBodyStalled_6500_; lean_object* v_userData_6585_; lean_object* v_outputData_6586_; lean_object* v_knownSize_6587_; lean_object* v_messageHead_6588_; uint8_t v_sentMessage_6589_; uint8_t v_userClosedBody_6590_; uint8_t v_omitBody_6591_; lean_object* v_userDataBytes_6592_; uint8_t v___x_6593_; -v_reader_6492_ = lean_ctor_get(v_machine_6490_, 0); -lean_inc_ref(v_reader_6492_); -v_writer_6493_ = lean_ctor_get(v_machine_6490_, 1); -lean_inc_ref(v_writer_6493_); -v_config_6494_ = lean_ctor_get(v_machine_6490_, 2); -v_events_6495_ = lean_ctor_get(v_machine_6490_, 3); -v_error_6496_ = lean_ctor_get(v_machine_6490_, 4); -v_instant_6497_ = lean_ctor_get(v_machine_6490_, 5); -v_keepAlive_6498_ = lean_ctor_get_uint8(v_machine_6490_, sizeof(void*)*6); -v_forcedFlush_6499_ = lean_ctor_get_uint8(v_machine_6490_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6500_ = lean_ctor_get_uint8(v_machine_6490_, sizeof(void*)*6 + 2); -v_userData_6585_ = lean_ctor_get(v_writer_6493_, 0); -v_outputData_6586_ = lean_ctor_get(v_writer_6493_, 1); -v_knownSize_6587_ = lean_ctor_get(v_writer_6493_, 3); -v_messageHead_6588_ = lean_ctor_get(v_writer_6493_, 4); -v_sentMessage_6589_ = lean_ctor_get_uint8(v_writer_6493_, sizeof(void*)*6); -v_userClosedBody_6590_ = lean_ctor_get_uint8(v_writer_6493_, sizeof(void*)*6 + 1); -v_omitBody_6591_ = lean_ctor_get_uint8(v_writer_6493_, sizeof(void*)*6 + 2); -v_userDataBytes_6592_ = lean_ctor_get(v_writer_6493_, 5); -v___x_6593_ = lean_nat_dec_lt(v_n_6491_, v_userDataBytes_6592_); -if (v___x_6593_ == 0) -{ -uint8_t v___x_6594_; -v___x_6594_ = lean_nat_dec_eq(v_userDataBytes_6592_, v_n_6491_); -if (v___x_6594_ == 0) -{ -lean_inc(v_instant_6497_); -lean_inc(v_error_6496_); -lean_inc_ref(v_events_6495_); -lean_inc_ref(v_config_6494_); -lean_dec_ref(v_machine_6490_); -goto v___jp_6501_; -} -else -{ -if (v_userClosedBody_6590_ == 0) -{ -lean_dec_ref(v_writer_6493_); -lean_dec_ref(v_reader_6492_); -lean_dec(v_n_6491_); -return v_machine_6490_; -} -else -{ -lean_inc(v_instant_6497_); -lean_inc(v_error_6496_); -lean_inc_ref(v_events_6495_); -lean_inc_ref(v_config_6494_); -lean_dec_ref(v_machine_6490_); -goto v___jp_6501_; -} -} -} -else -{ -lean_object* v___x_6596_; uint8_t v_isShared_6597_; uint8_t v_isSharedCheck_6633_; -lean_inc(v_userDataBytes_6592_); -lean_inc(v_messageHead_6588_); -lean_inc(v_knownSize_6587_); -lean_inc_ref(v_outputData_6586_); -lean_inc_ref(v_userData_6585_); -lean_inc(v_instant_6497_); -lean_inc_ref(v_events_6495_); -lean_inc_ref(v_config_6494_); -lean_dec(v_n_6491_); -v_isSharedCheck_6633_ = !lean_is_exclusive(v_machine_6490_); -if (v_isSharedCheck_6633_ == 0) -{ -lean_object* v_unused_6634_; lean_object* v_unused_6635_; lean_object* v_unused_6636_; lean_object* v_unused_6637_; lean_object* v_unused_6638_; lean_object* v_unused_6639_; -v_unused_6634_ = lean_ctor_get(v_machine_6490_, 5); -lean_dec(v_unused_6634_); -v_unused_6635_ = lean_ctor_get(v_machine_6490_, 4); -lean_dec(v_unused_6635_); -v_unused_6636_ = lean_ctor_get(v_machine_6490_, 3); -lean_dec(v_unused_6636_); -v_unused_6637_ = lean_ctor_get(v_machine_6490_, 2); -lean_dec(v_unused_6637_); -v_unused_6638_ = lean_ctor_get(v_machine_6490_, 1); -lean_dec(v_unused_6638_); -v_unused_6639_ = lean_ctor_get(v_machine_6490_, 0); -lean_dec(v_unused_6639_); -v___x_6596_ = v_machine_6490_; -v_isShared_6597_ = v_isSharedCheck_6633_; -goto v_resetjp_6595_; -} -else -{ -lean_dec(v_machine_6490_); -v___x_6596_ = lean_box(0); -v_isShared_6597_ = v_isSharedCheck_6633_; -goto v_resetjp_6595_; -} -v_resetjp_6595_: -{ -lean_object* v___x_6599_; uint8_t v_isShared_6600_; uint8_t v_isSharedCheck_6626_; -v_isSharedCheck_6626_ = !lean_is_exclusive(v_writer_6493_); -if (v_isSharedCheck_6626_ == 0) -{ -lean_object* v_unused_6627_; lean_object* v_unused_6628_; lean_object* v_unused_6629_; lean_object* v_unused_6630_; lean_object* v_unused_6631_; lean_object* v_unused_6632_; -v_unused_6627_ = lean_ctor_get(v_writer_6493_, 5); -lean_dec(v_unused_6627_); -v_unused_6628_ = lean_ctor_get(v_writer_6493_, 4); -lean_dec(v_unused_6628_); -v_unused_6629_ = lean_ctor_get(v_writer_6493_, 3); -lean_dec(v_unused_6629_); -v_unused_6630_ = lean_ctor_get(v_writer_6493_, 2); -lean_dec(v_unused_6630_); -v_unused_6631_ = lean_ctor_get(v_writer_6493_, 1); -lean_dec(v_unused_6631_); -v_unused_6632_ = lean_ctor_get(v_writer_6493_, 0); -lean_dec(v_unused_6632_); -v___x_6599_ = v_writer_6493_; -v_isShared_6600_ = v_isSharedCheck_6626_; -goto v_resetjp_6598_; -} -else -{ -lean_dec(v_writer_6493_); -v___x_6599_ = lean_box(0); -v_isShared_6600_ = v_isSharedCheck_6626_; -goto v_resetjp_6598_; -} -v_resetjp_6598_: -{ -lean_object* v_input_6601_; lean_object* v_messageHead_6602_; lean_object* v_messageCount_6603_; lean_object* v_bodyBytesRead_6604_; lean_object* v_headerBytesRead_6605_; lean_object* v___x_6607_; uint8_t v_isShared_6608_; uint8_t v_isSharedCheck_6624_; -v_input_6601_ = lean_ctor_get(v_reader_6492_, 1); -v_messageHead_6602_ = lean_ctor_get(v_reader_6492_, 2); -v_messageCount_6603_ = lean_ctor_get(v_reader_6492_, 3); -v_bodyBytesRead_6604_ = lean_ctor_get(v_reader_6492_, 4); -v_headerBytesRead_6605_ = lean_ctor_get(v_reader_6492_, 5); -v_isSharedCheck_6624_ = !lean_is_exclusive(v_reader_6492_); -if (v_isSharedCheck_6624_ == 0) -{ -lean_object* v_unused_6625_; -v_unused_6625_ = lean_ctor_get(v_reader_6492_, 0); -lean_dec(v_unused_6625_); -v___x_6607_ = v_reader_6492_; -v_isShared_6608_ = v_isSharedCheck_6624_; -goto v_resetjp_6606_; -} -else -{ -lean_inc(v_headerBytesRead_6605_); -lean_inc(v_bodyBytesRead_6604_); -lean_inc(v_messageCount_6603_); -lean_inc(v_messageHead_6602_); -lean_inc(v_input_6601_); -lean_dec(v_reader_6492_); -v___x_6607_ = lean_box(0); -v_isShared_6608_ = v_isSharedCheck_6624_; -goto v_resetjp_6606_; -} -v_resetjp_6606_: -{ -lean_object* v___x_6609_; uint8_t v___x_6610_; lean_object* v___x_6611_; lean_object* v___x_6613_; -v___x_6609_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6610_ = 0; -v___x_6611_ = lean_box(5); -if (v_isShared_6600_ == 0) -{ -lean_ctor_set(v___x_6599_, 2, v___x_6611_); -v___x_6613_ = v___x_6599_; -goto v_reusejp_6612_; -} -else -{ -lean_object* v_reuseFailAlloc_6623_; -v_reuseFailAlloc_6623_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6623_, 0, v_userData_6585_); -lean_ctor_set(v_reuseFailAlloc_6623_, 1, v_outputData_6586_); -lean_ctor_set(v_reuseFailAlloc_6623_, 2, v___x_6611_); -lean_ctor_set(v_reuseFailAlloc_6623_, 3, v_knownSize_6587_); -lean_ctor_set(v_reuseFailAlloc_6623_, 4, v_messageHead_6588_); -lean_ctor_set(v_reuseFailAlloc_6623_, 5, v_userDataBytes_6592_); -lean_ctor_set_uint8(v_reuseFailAlloc_6623_, sizeof(void*)*6, v_sentMessage_6589_); -lean_ctor_set_uint8(v_reuseFailAlloc_6623_, sizeof(void*)*6 + 2, v_omitBody_6591_); -v___x_6613_ = v_reuseFailAlloc_6623_; -goto v_reusejp_6612_; -} -v_reusejp_6612_: -{ -lean_object* v___x_6614_; lean_object* v___x_6616_; -lean_ctor_set_uint8(v___x_6613_, sizeof(void*)*6 + 1, v___x_6593_); -v___x_6614_ = lean_box(6); -if (v_isShared_6608_ == 0) -{ -lean_ctor_set(v___x_6607_, 0, v___x_6614_); -v___x_6616_ = v___x_6607_; -goto v_reusejp_6615_; -} -else -{ -lean_object* v_reuseFailAlloc_6622_; -v_reuseFailAlloc_6622_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6622_, 0, v___x_6614_); -lean_ctor_set(v_reuseFailAlloc_6622_, 1, v_input_6601_); -lean_ctor_set(v_reuseFailAlloc_6622_, 2, v_messageHead_6602_); -lean_ctor_set(v_reuseFailAlloc_6622_, 3, v_messageCount_6603_); -lean_ctor_set(v_reuseFailAlloc_6622_, 4, v_bodyBytesRead_6604_); -lean_ctor_set(v_reuseFailAlloc_6622_, 5, v_headerBytesRead_6605_); -v___x_6616_ = v_reuseFailAlloc_6622_; -goto v_reusejp_6615_; -} -v_reusejp_6615_: -{ -lean_object* v___x_6617_; lean_object* v___x_6618_; lean_object* v___x_6620_; -lean_ctor_set_uint8(v___x_6616_, sizeof(void*)*6, v___x_6593_); -v___x_6617_ = lean_box(3); -v___x_6618_ = lean_array_push(v_events_6495_, v___x_6617_); -if (v_isShared_6597_ == 0) -{ -lean_ctor_set(v___x_6596_, 4, v___x_6609_); -lean_ctor_set(v___x_6596_, 3, v___x_6618_); -lean_ctor_set(v___x_6596_, 1, v___x_6613_); -lean_ctor_set(v___x_6596_, 0, v___x_6616_); -v___x_6620_ = v___x_6596_; -goto v_reusejp_6619_; -} -else -{ -lean_object* v_reuseFailAlloc_6621_; -v_reuseFailAlloc_6621_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6621_, 0, v___x_6616_); -lean_ctor_set(v_reuseFailAlloc_6621_, 1, v___x_6613_); -lean_ctor_set(v_reuseFailAlloc_6621_, 2, v_config_6494_); -lean_ctor_set(v_reuseFailAlloc_6621_, 3, v___x_6618_); -lean_ctor_set(v_reuseFailAlloc_6621_, 4, v___x_6609_); -lean_ctor_set(v_reuseFailAlloc_6621_, 5, v_instant_6497_); -lean_ctor_set_uint8(v_reuseFailAlloc_6621_, sizeof(void*)*6 + 1, v_forcedFlush_6499_); -lean_ctor_set_uint8(v_reuseFailAlloc_6621_, sizeof(void*)*6 + 2, v_pullBodyStalled_6500_); -v___x_6620_ = v_reuseFailAlloc_6621_; -goto v_reusejp_6619_; -} -v_reusejp_6619_: -{ -lean_ctor_set_uint8(v___x_6620_, sizeof(void*)*6, v___x_6610_); -return v___x_6620_; -} -} -} -} -} +lean_dec(v_state_6500_); +v___y_6327_ = v___y_6488_; +v___y_6328_ = v_machine_6498_; +v___y_6329_ = v___y_6493_; +v___y_6330_ = v___y_6490_; +goto v___jp_6326_; } } v___jp_6501_: { -lean_object* v___x_6502_; lean_object* v_fst_6503_; lean_object* v_snd_6504_; lean_object* v___x_6505_; uint8_t v___x_6506_; -v___x_6502_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(v_writer_6493_, v_n_6491_); -v_fst_6503_ = lean_ctor_get(v___x_6502_, 0); -lean_inc(v_fst_6503_); -v_snd_6504_ = lean_ctor_get(v___x_6502_, 1); -lean_inc(v_snd_6504_); -lean_dec_ref(v___x_6502_); -v___x_6505_ = lean_unsigned_to_nat(0u); -v___x_6506_ = lean_nat_dec_eq(v_snd_6504_, v___x_6505_); -if (v___x_6506_ == 0) +uint8_t v___x_6507_; lean_object* v___x_6508_; lean_object* v_indexes_6509_; lean_object* v___x_6510_; lean_object* v_machine_6511_; lean_object* v___x_6512_; uint8_t v___x_6513_; +v___x_6507_ = 1; +v___x_6508_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_6507_, v___y_6504_); +v_indexes_6509_ = lean_ctor_get(v___x_6508_, 1); +lean_inc_ref(v_indexes_6509_); +lean_dec_ref(v___x_6508_); +lean_inc_ref(v___y_6504_); +v___x_6510_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_6510_, 0, v_userData_6359_); +lean_ctor_set(v___x_6510_, 1, v_outputData_6360_); +lean_ctor_set(v___x_6510_, 2, v_state_6361_); +lean_ctor_set(v___x_6510_, 3, v_knownSize_6362_); +lean_ctor_set(v___x_6510_, 4, v___y_6504_); +lean_ctor_set(v___x_6510_, 5, v_userDataBytes_6367_); +lean_ctor_set_uint8(v___x_6510_, sizeof(void*)*6, v___y_6505_); +lean_ctor_set_uint8(v___x_6510_, sizeof(void*)*6 + 1, v_userClosedBody_6365_); +lean_ctor_set_uint8(v___x_6510_, sizeof(void*)*6 + 2, v_omitBody_6366_); +v_machine_6511_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_6511_, 0, v_reader_6348_); +lean_ctor_set(v_machine_6511_, 1, v___x_6510_); +lean_ctor_set(v_machine_6511_, 2, v_config_6349_); +lean_ctor_set(v_machine_6511_, 3, v_events_6350_); +lean_ctor_set(v_machine_6511_, 4, v_error_6351_); +lean_ctor_set(v_machine_6511_, 5, v_instant_6352_); +lean_ctor_set_uint8(v_machine_6511_, sizeof(void*)*6, v_keepAlive_6353_); +lean_ctor_set_uint8(v_machine_6511_, sizeof(void*)*6 + 1, v_forcedFlush_6354_); +lean_ctor_set_uint8(v_machine_6511_, sizeof(void*)*6 + 2, v_pullBodyStalled_6355_); +v___x_6512_ = l_Std_Http_Header_Name_contentLength; +v___x_6513_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_6509_, v___x_6512_); +if (v___x_6513_ == 0) { -lean_object* v_userData_6507_; lean_object* v_outputData_6508_; lean_object* v_knownSize_6509_; lean_object* v_messageHead_6510_; uint8_t v_sentMessage_6511_; uint8_t v_userClosedBody_6512_; uint8_t v_omitBody_6513_; lean_object* v_userDataBytes_6514_; lean_object* v___x_6516_; uint8_t v_isShared_6517_; uint8_t v_isSharedCheck_6524_; -v_userData_6507_ = lean_ctor_get(v_fst_6503_, 0); -v_outputData_6508_ = lean_ctor_get(v_fst_6503_, 1); -v_knownSize_6509_ = lean_ctor_get(v_fst_6503_, 3); -v_messageHead_6510_ = lean_ctor_get(v_fst_6503_, 4); -v_sentMessage_6511_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6); -v_userClosedBody_6512_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6 + 1); -v_omitBody_6513_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6 + 2); -v_userDataBytes_6514_ = lean_ctor_get(v_fst_6503_, 5); -v_isSharedCheck_6524_ = !lean_is_exclusive(v_fst_6503_); -if (v_isSharedCheck_6524_ == 0) -{ -lean_object* v_unused_6525_; -v_unused_6525_ = lean_ctor_get(v_fst_6503_, 2); -lean_dec(v_unused_6525_); -v___x_6516_ = v_fst_6503_; -v_isShared_6517_ = v_isSharedCheck_6524_; -goto v_resetjp_6515_; +lean_object* v___x_6514_; uint8_t v___x_6515_; +v___x_6514_ = l_Std_Http_Header_Name_transferEncoding; +v___x_6515_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_6509_, v___x_6514_); +lean_dec_ref(v_indexes_6509_); +v___y_6488_ = v___y_6502_; +v___y_6489_ = v___x_6507_; +v___y_6490_ = v___y_6503_; +v___y_6491_ = v___y_6504_; +v___y_6492_ = v___y_6505_; +v___y_6493_ = v___y_6506_; +v___y_6494_ = v_machine_6511_; +v___y_6495_ = v___x_6515_; +goto v___jp_6487_; } else { -lean_inc(v_userDataBytes_6514_); -lean_inc(v_messageHead_6510_); -lean_inc(v_knownSize_6509_); -lean_inc(v_outputData_6508_); -lean_inc(v_userData_6507_); -lean_dec(v_fst_6503_); -v___x_6516_ = lean_box(0); -v_isShared_6517_ = v_isSharedCheck_6524_; -goto v_resetjp_6515_; +lean_dec_ref(v_indexes_6509_); +v___y_6488_ = v___y_6502_; +v___y_6489_ = v___x_6507_; +v___y_6490_ = v___y_6503_; +v___y_6491_ = v___y_6504_; +v___y_6492_ = v___y_6505_; +v___y_6493_ = v___y_6506_; +v___y_6494_ = v_machine_6511_; +v___y_6495_ = v___x_6513_; +goto v___jp_6487_; } -v_resetjp_6515_: +} +v___jp_6516_: { -lean_object* v___x_6518_; lean_object* v___x_6519_; lean_object* v___x_6521_; -v___x_6518_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_6518_, 0, v_snd_6504_); -v___x_6519_ = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(v___x_6519_, 0, v___x_6518_); -if (v_isShared_6517_ == 0) +lean_object* v_state_6521_; +v_state_6521_ = lean_ctor_get(v_reader_6348_, 0); +if (lean_obj_tag(v_state_6521_) == 7) { -lean_ctor_set(v___x_6516_, 2, v___x_6519_); -v___x_6521_ = v___x_6516_; -goto v_reusejp_6520_; +v___y_6502_ = v___y_6517_; +v___y_6503_ = v___y_6520_; +v___y_6504_ = v___y_6518_; +v___y_6505_ = v___y_6519_; +v___y_6506_ = v___y_6519_; +goto v___jp_6501_; } else { -lean_object* v_reuseFailAlloc_6523_; -v_reuseFailAlloc_6523_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6523_, 0, v_userData_6507_); -lean_ctor_set(v_reuseFailAlloc_6523_, 1, v_outputData_6508_); -lean_ctor_set(v_reuseFailAlloc_6523_, 2, v___x_6519_); -lean_ctor_set(v_reuseFailAlloc_6523_, 3, v_knownSize_6509_); -lean_ctor_set(v_reuseFailAlloc_6523_, 4, v_messageHead_6510_); -lean_ctor_set(v_reuseFailAlloc_6523_, 5, v_userDataBytes_6514_); -lean_ctor_set_uint8(v_reuseFailAlloc_6523_, sizeof(void*)*6, v_sentMessage_6511_); -lean_ctor_set_uint8(v_reuseFailAlloc_6523_, sizeof(void*)*6 + 1, v_userClosedBody_6512_); -lean_ctor_set_uint8(v_reuseFailAlloc_6523_, sizeof(void*)*6 + 2, v_omitBody_6513_); -v___x_6521_ = v_reuseFailAlloc_6523_; -goto v_reusejp_6520_; +v___y_6502_ = v___y_6517_; +v___y_6503_ = v___y_6520_; +v___y_6504_ = v___y_6518_; +v___y_6505_ = v___y_6519_; +v___y_6506_ = v___y_6520_; +goto v___jp_6501_; } -v_reusejp_6520_: +} +v___jp_6522_: { -lean_object* v___x_6522_; -v___x_6522_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_6522_, 0, v_reader_6492_); -lean_ctor_set(v___x_6522_, 1, v___x_6521_); -lean_ctor_set(v___x_6522_, 2, v_config_6494_); -lean_ctor_set(v___x_6522_, 3, v_events_6495_); -lean_ctor_set(v___x_6522_, 4, v_error_6496_); -lean_ctor_set(v___x_6522_, 5, v_instant_6497_); -lean_ctor_set_uint8(v___x_6522_, sizeof(void*)*6, v_keepAlive_6498_); -lean_ctor_set_uint8(v___x_6522_, sizeof(void*)*6 + 1, v_forcedFlush_6499_); -lean_ctor_set_uint8(v___x_6522_, sizeof(void*)*6 + 2, v_pullBodyStalled_6500_); -return v___x_6522_; +if (v___y_6527_ == 0) +{ +lean_dec_ref(v___y_6526_); +lean_dec(v_status_6273_); +v___y_6275_ = v___y_6524_; +v_reader_6276_ = v_reader_6348_; +v_userData_6277_ = v_userData_6359_; +v_outputData_6278_ = v_outputData_6360_; +v_state_6279_ = v_state_6361_; +v_knownSize_6280_ = v_knownSize_6362_; +v_messageHead_6281_ = v_messageHead_6363_; +v_sentMessage_6282_ = v_sentMessage_6364_; +v_omitBody_6283_ = v_omitBody_6366_; +v_userDataBytes_6284_ = v_userDataBytes_6367_; +v_config_6285_ = v_config_6349_; +v_events_6286_ = v_events_6350_; +v_error_6287_ = v_error_6351_; +v_instant_6288_ = v_instant_6352_; +v_keepAlive_6289_ = v_keepAlive_6353_; +v_forcedFlush_6290_ = v_forcedFlush_6354_; +goto v___jp_6274_; } +else +{ +uint8_t v___x_6528_; uint16_t v___x_6529_; uint16_t v___x_6530_; uint8_t v___x_6531_; +v___x_6528_ = 0; +v___x_6529_ = 100; +v___x_6530_ = l_Std_Http_Status_toCode(v_status_6273_); +lean_dec(v_status_6273_); +v___x_6531_ = lean_uint16_dec_le(v___x_6529_, v___x_6530_); +if (v___x_6531_ == 0) +{ +lean_dec(v_messageHead_6363_); +v___y_6517_ = v___y_6524_; +v___y_6518_ = v___y_6526_; +v___y_6519_ = v___y_6527_; +v___y_6520_ = v___x_6528_; +goto v___jp_6516_; +} +else +{ +uint16_t v___x_6532_; uint8_t v___x_6533_; +v___x_6532_ = 200; +v___x_6533_ = lean_uint16_dec_lt(v___x_6530_, v___x_6532_); +if (v___x_6533_ == 0) +{ +lean_dec(v_messageHead_6363_); +v___y_6517_ = v___y_6524_; +v___y_6518_ = v___y_6526_; +v___y_6519_ = v___y_6527_; +v___y_6520_ = v___x_6528_; +goto v___jp_6516_; +} +else +{ +uint8_t v___x_6534_; lean_object* v___x_6535_; lean_object* v___x_6536_; uint8_t v___x_6537_; +v___x_6534_ = 1; +v___x_6535_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_6534_, v___y_6526_); +v___x_6536_ = l_Std_Http_Header_Name_contentLength; +lean_inc_ref(v___y_6523_); +lean_inc_ref(v___y_6525_); +v___x_6537_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___y_6525_, v___y_6523_, v___x_6536_, v___x_6535_); +if (v___x_6537_ == 0) +{ +if (v___x_6533_ == 0) +{ +v___y_6443_ = v___y_6524_; +v___y_6444_ = v___y_6523_; +v___y_6445_ = v___y_6525_; +v___y_6446_ = v___x_6533_; +v___y_6447_ = v___y_6526_; +v___y_6448_ = v___x_6534_; +v___y_6449_ = v___x_6535_; +goto v___jp_6442_; +} +else +{ +v___y_6414_ = v___y_6524_; +v___y_6415_ = v___y_6523_; +v___y_6416_ = v___y_6525_; +v___y_6417_ = v___x_6533_; +v___y_6418_ = v___y_6526_; +v___y_6419_ = v___x_6534_; +v___y_6420_ = v___x_6535_; +goto v___jp_6413_; } } else { -lean_object* v_userData_6526_; lean_object* v_outputData_6527_; lean_object* v_knownSize_6528_; lean_object* v_messageHead_6529_; uint8_t v_sentMessage_6530_; uint8_t v_userClosedBody_6531_; uint8_t v_omitBody_6532_; lean_object* v_userDataBytes_6533_; lean_object* v___x_6534_; uint8_t v___x_6535_; -lean_dec(v_snd_6504_); -v_userData_6526_ = lean_ctor_get(v_fst_6503_, 0); -v_outputData_6527_ = lean_ctor_get(v_fst_6503_, 1); -v_knownSize_6528_ = lean_ctor_get(v_fst_6503_, 3); -v_messageHead_6529_ = lean_ctor_get(v_fst_6503_, 4); -v_sentMessage_6530_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6); -v_userClosedBody_6531_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6 + 1); -v_omitBody_6532_ = lean_ctor_get_uint8(v_fst_6503_, sizeof(void*)*6 + 2); -v_userDataBytes_6533_ = lean_ctor_get(v_fst_6503_, 5); -v___x_6534_ = lean_array_get_size(v_userData_6526_); -v___x_6535_ = lean_nat_dec_eq(v___x_6534_, v___x_6505_); -if (v___x_6535_ == 0) +v___y_6443_ = v___y_6524_; +v___y_6444_ = v___y_6523_; +v___y_6445_ = v___y_6525_; +v___y_6446_ = v___x_6533_; +v___y_6447_ = v___y_6526_; +v___y_6448_ = v___x_6534_; +v___y_6449_ = v___x_6535_; +goto v___jp_6442_; +} +} +} +} +} +v___jp_6538_: { -lean_object* v___x_6537_; uint8_t v_isShared_6538_; uint8_t v_isSharedCheck_6561_; -lean_inc(v_userDataBytes_6533_); -lean_inc(v_messageHead_6529_); -lean_inc(v_knownSize_6528_); -lean_inc_ref(v_outputData_6527_); -lean_inc_ref(v_userData_6526_); -lean_dec(v_error_6496_); -v_isSharedCheck_6561_ = !lean_is_exclusive(v_fst_6503_); -if (v_isSharedCheck_6561_ == 0) +if (v___y_6539_ == 0) { -lean_object* v_unused_6562_; lean_object* v_unused_6563_; lean_object* v_unused_6564_; lean_object* v_unused_6565_; lean_object* v_unused_6566_; lean_object* v_unused_6567_; -v_unused_6562_ = lean_ctor_get(v_fst_6503_, 5); -lean_dec(v_unused_6562_); -v_unused_6563_ = lean_ctor_get(v_fst_6503_, 4); -lean_dec(v_unused_6563_); -v_unused_6564_ = lean_ctor_get(v_fst_6503_, 3); -lean_dec(v_unused_6564_); -v_unused_6565_ = lean_ctor_get(v_fst_6503_, 2); -lean_dec(v_unused_6565_); -v_unused_6566_ = lean_ctor_get(v_fst_6503_, 1); -lean_dec(v_unused_6566_); -v_unused_6567_ = lean_ctor_get(v_fst_6503_, 0); -lean_dec(v_unused_6567_); -v___x_6537_ = v_fst_6503_; -v_isShared_6538_ = v_isSharedCheck_6561_; -goto v_resetjp_6536_; +lean_dec(v_state_6361_); +lean_dec(v_status_6273_); +v___y_6464_ = v___y_6539_; +goto v___jp_6463_; } else { -lean_dec(v_fst_6503_); -v___x_6537_ = lean_box(0); -v_isShared_6538_ = v_isSharedCheck_6561_; -goto v_resetjp_6536_; -} -v_resetjp_6536_: +lean_object* v___x_6540_; lean_object* v_entries_6541_; lean_object* v_indexes_6542_; lean_object* v___x_6543_; lean_object* v___x_6544_; uint8_t v___x_6545_; lean_object* v___f_6546_; lean_object* v___f_6547_; lean_object* v_entries_6548_; lean_object* v_indexes_6549_; lean_object* v___x_6550_; lean_object* v___x_6551_; lean_object* v___x_6552_; uint8_t v___x_6553_; +lean_del_object(v___x_6369_); +lean_del_object(v___x_6357_); +v___x_6540_ = l_Std_Http_Headers_empty; +v_entries_6541_ = lean_ctor_get(v___x_6540_, 0); +v_indexes_6542_ = lean_ctor_get(v___x_6540_, 1); +v___x_6543_ = l_Std_Http_Header_Name_connection; +v___x_6544_ = lean_obj_once(&l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0, &l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0_once, _init_l_Std_Http_Protocol_H1_Machine_closeWithError___closed__0); +v___x_6545_ = 1; +v___f_6546_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_6547_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +lean_inc_ref(v_entries_6541_); +v_entries_6548_ = lean_array_push(v_entries_6541_, v___x_6544_); +lean_inc_ref(v_indexes_6542_); +v_indexes_6549_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00Std_Http_Protocol_H1_Machine_closeWithError_spec__0(v_indexes_6542_, v___x_6543_); +v___x_6550_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6550_, 0, v_entries_6548_); +lean_ctor_set(v___x_6550_, 1, v_indexes_6549_); +lean_inc(v_status_6273_); +v___x_6551_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_6551_, 0, v_status_6273_); +lean_ctor_set(v___x_6551_, 1, v___x_6550_); +lean_ctor_set_uint8(v___x_6551_, sizeof(void*)*2, v___x_6545_); +v___x_6552_ = lean_box(1); +v___x_6553_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_6361_, v___x_6552_); +if (v___x_6553_ == 0) { -lean_object* v_input_6539_; lean_object* v_messageHead_6540_; lean_object* v_messageCount_6541_; lean_object* v_bodyBytesRead_6542_; lean_object* v_headerBytesRead_6543_; lean_object* v___x_6545_; uint8_t v_isShared_6546_; uint8_t v_isSharedCheck_6559_; -v_input_6539_ = lean_ctor_get(v_reader_6492_, 1); -v_messageHead_6540_ = lean_ctor_get(v_reader_6492_, 2); -v_messageCount_6541_ = lean_ctor_get(v_reader_6492_, 3); -v_bodyBytesRead_6542_ = lean_ctor_get(v_reader_6492_, 4); -v_headerBytesRead_6543_ = lean_ctor_get(v_reader_6492_, 5); -v_isSharedCheck_6559_ = !lean_is_exclusive(v_reader_6492_); -if (v_isSharedCheck_6559_ == 0) -{ -lean_object* v_unused_6560_; -v_unused_6560_ = lean_ctor_get(v_reader_6492_, 0); -lean_dec(v_unused_6560_); -v___x_6545_ = v_reader_6492_; -v_isShared_6546_ = v_isSharedCheck_6559_; -goto v_resetjp_6544_; +v___y_6523_ = v___f_6547_; +v___y_6524_ = v___y_6539_; +v___y_6525_ = v___f_6546_; +v___y_6526_ = v___x_6551_; +v___y_6527_ = v___x_6553_; +goto v___jp_6522_; } else { -lean_inc(v_headerBytesRead_6543_); -lean_inc(v_bodyBytesRead_6542_); -lean_inc(v_messageCount_6541_); -lean_inc(v_messageHead_6540_); -lean_inc(v_input_6539_); -lean_dec(v_reader_6492_); -v___x_6545_ = lean_box(0); -v_isShared_6546_ = v_isSharedCheck_6559_; -goto v_resetjp_6544_; -} -v_resetjp_6544_: +if (v_sentMessage_6364_ == 0) { -lean_object* v___x_6547_; lean_object* v___x_6548_; lean_object* v___x_6550_; -v___x_6547_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6548_ = lean_box(5); -if (v_isShared_6538_ == 0) -{ -lean_ctor_set(v___x_6537_, 2, v___x_6548_); -v___x_6550_ = v___x_6537_; -goto v_reusejp_6549_; +v___y_6523_ = v___f_6547_; +v___y_6524_ = v___y_6539_; +v___y_6525_ = v___f_6546_; +v___y_6526_ = v___x_6551_; +v___y_6527_ = v___x_6553_; +goto v___jp_6522_; } else { -lean_object* v_reuseFailAlloc_6558_; -v_reuseFailAlloc_6558_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6558_, 0, v_userData_6526_); -lean_ctor_set(v_reuseFailAlloc_6558_, 1, v_outputData_6527_); -lean_ctor_set(v_reuseFailAlloc_6558_, 2, v___x_6548_); -lean_ctor_set(v_reuseFailAlloc_6558_, 3, v_knownSize_6528_); -lean_ctor_set(v_reuseFailAlloc_6558_, 4, v_messageHead_6529_); -lean_ctor_set(v_reuseFailAlloc_6558_, 5, v_userDataBytes_6533_); -lean_ctor_set_uint8(v_reuseFailAlloc_6558_, sizeof(void*)*6, v_sentMessage_6530_); -lean_ctor_set_uint8(v_reuseFailAlloc_6558_, sizeof(void*)*6 + 2, v_omitBody_6532_); -v___x_6550_ = v_reuseFailAlloc_6558_; -goto v_reusejp_6549_; -} -v_reusejp_6549_: -{ -lean_object* v___x_6551_; lean_object* v___x_6553_; -lean_ctor_set_uint8(v___x_6550_, sizeof(void*)*6 + 1, v___x_6506_); -v___x_6551_ = lean_box(6); -if (v_isShared_6546_ == 0) -{ -lean_ctor_set(v___x_6545_, 0, v___x_6551_); -v___x_6553_ = v___x_6545_; -goto v_reusejp_6552_; -} -else -{ -lean_object* v_reuseFailAlloc_6557_; -v_reuseFailAlloc_6557_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6557_, 0, v___x_6551_); -lean_ctor_set(v_reuseFailAlloc_6557_, 1, v_input_6539_); -lean_ctor_set(v_reuseFailAlloc_6557_, 2, v_messageHead_6540_); -lean_ctor_set(v_reuseFailAlloc_6557_, 3, v_messageCount_6541_); -lean_ctor_set(v_reuseFailAlloc_6557_, 4, v_bodyBytesRead_6542_); -lean_ctor_set(v_reuseFailAlloc_6557_, 5, v_headerBytesRead_6543_); -v___x_6553_ = v_reuseFailAlloc_6557_; -goto v_reusejp_6552_; -} -v_reusejp_6552_: -{ -lean_object* v___x_6554_; lean_object* v___x_6555_; lean_object* v___x_6556_; -lean_ctor_set_uint8(v___x_6553_, sizeof(void*)*6, v___x_6506_); -v___x_6554_ = lean_box(3); -v___x_6555_ = lean_array_push(v_events_6495_, v___x_6554_); -v___x_6556_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_6556_, 0, v___x_6553_); -lean_ctor_set(v___x_6556_, 1, v___x_6550_); -lean_ctor_set(v___x_6556_, 2, v_config_6494_); -lean_ctor_set(v___x_6556_, 3, v___x_6555_); -lean_ctor_set(v___x_6556_, 4, v___x_6547_); -lean_ctor_set(v___x_6556_, 5, v_instant_6497_); -lean_ctor_set_uint8(v___x_6556_, sizeof(void*)*6, v___x_6535_); -lean_ctor_set_uint8(v___x_6556_, sizeof(void*)*6 + 1, v_forcedFlush_6499_); -lean_ctor_set_uint8(v___x_6556_, sizeof(void*)*6 + 2, v_pullBodyStalled_6500_); -return v___x_6556_; -} -} -} -} -} -else -{ -if (v_userClosedBody_6531_ == 0) -{ -lean_object* v___x_6569_; uint8_t v_isShared_6570_; uint8_t v_isSharedCheck_6576_; -lean_inc(v_userDataBytes_6533_); -lean_inc(v_messageHead_6529_); -lean_inc(v_knownSize_6528_); -lean_inc_ref(v_outputData_6527_); -lean_inc_ref(v_userData_6526_); -v_isSharedCheck_6576_ = !lean_is_exclusive(v_fst_6503_); -if (v_isSharedCheck_6576_ == 0) -{ -lean_object* v_unused_6577_; lean_object* v_unused_6578_; lean_object* v_unused_6579_; lean_object* v_unused_6580_; lean_object* v_unused_6581_; lean_object* v_unused_6582_; -v_unused_6577_ = lean_ctor_get(v_fst_6503_, 5); -lean_dec(v_unused_6577_); -v_unused_6578_ = lean_ctor_get(v_fst_6503_, 4); -lean_dec(v_unused_6578_); -v_unused_6579_ = lean_ctor_get(v_fst_6503_, 3); -lean_dec(v_unused_6579_); -v_unused_6580_ = lean_ctor_get(v_fst_6503_, 2); -lean_dec(v_unused_6580_); -v_unused_6581_ = lean_ctor_get(v_fst_6503_, 1); -lean_dec(v_unused_6581_); -v_unused_6582_ = lean_ctor_get(v_fst_6503_, 0); -lean_dec(v_unused_6582_); -v___x_6569_ = v_fst_6503_; -v_isShared_6570_ = v_isSharedCheck_6576_; -goto v_resetjp_6568_; -} -else -{ -lean_dec(v_fst_6503_); -v___x_6569_ = lean_box(0); -v_isShared_6570_ = v_isSharedCheck_6576_; -goto v_resetjp_6568_; -} -v_resetjp_6568_: -{ -lean_object* v___x_6571_; lean_object* v___x_6573_; -v___x_6571_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0)); -if (v_isShared_6570_ == 0) -{ -lean_ctor_set(v___x_6569_, 2, v___x_6571_); -v___x_6573_ = v___x_6569_; -goto v_reusejp_6572_; -} -else -{ -lean_object* v_reuseFailAlloc_6575_; -v_reuseFailAlloc_6575_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6575_, 0, v_userData_6526_); -lean_ctor_set(v_reuseFailAlloc_6575_, 1, v_outputData_6527_); -lean_ctor_set(v_reuseFailAlloc_6575_, 2, v___x_6571_); -lean_ctor_set(v_reuseFailAlloc_6575_, 3, v_knownSize_6528_); -lean_ctor_set(v_reuseFailAlloc_6575_, 4, v_messageHead_6529_); -lean_ctor_set(v_reuseFailAlloc_6575_, 5, v_userDataBytes_6533_); -lean_ctor_set_uint8(v_reuseFailAlloc_6575_, sizeof(void*)*6, v_sentMessage_6530_); -lean_ctor_set_uint8(v_reuseFailAlloc_6575_, sizeof(void*)*6 + 1, v_userClosedBody_6531_); -lean_ctor_set_uint8(v_reuseFailAlloc_6575_, sizeof(void*)*6 + 2, v_omitBody_6532_); -v___x_6573_ = v_reuseFailAlloc_6575_; -goto v_reusejp_6572_; -} -v_reusejp_6572_: -{ -lean_object* v___x_6574_; -v___x_6574_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_6574_, 0, v_reader_6492_); -lean_ctor_set(v___x_6574_, 1, v___x_6573_); -lean_ctor_set(v___x_6574_, 2, v_config_6494_); -lean_ctor_set(v___x_6574_, 3, v_events_6495_); -lean_ctor_set(v___x_6574_, 4, v_error_6496_); -lean_ctor_set(v___x_6574_, 5, v_instant_6497_); -lean_ctor_set_uint8(v___x_6574_, sizeof(void*)*6, v_keepAlive_6498_); -lean_ctor_set_uint8(v___x_6574_, sizeof(void*)*6 + 1, v_forcedFlush_6499_); -lean_ctor_set_uint8(v___x_6574_, sizeof(void*)*6 + 2, v_pullBodyStalled_6500_); -return v___x_6574_; -} -} -} -else -{ -lean_object* v_machine_6583_; lean_object* v___x_6584_; -v_machine_6583_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_machine_6583_, 0, v_reader_6492_); -lean_ctor_set(v_machine_6583_, 1, v_fst_6503_); -lean_ctor_set(v_machine_6583_, 2, v_config_6494_); -lean_ctor_set(v_machine_6583_, 3, v_events_6495_); -lean_ctor_set(v_machine_6583_, 4, v_error_6496_); -lean_ctor_set(v_machine_6583_, 5, v_instant_6497_); -lean_ctor_set_uint8(v_machine_6583_, sizeof(void*)*6, v_keepAlive_6498_); -lean_ctor_set_uint8(v_machine_6583_, sizeof(void*)*6 + 1, v_forcedFlush_6499_); -lean_ctor_set_uint8(v_machine_6583_, sizeof(void*)*6 + 2, v_pullBodyStalled_6500_); -v___x_6584_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_6489_, v_machine_6583_); -return v___x_6584_; +lean_dec_ref(v___x_6551_); +lean_dec(v_status_6273_); +v___y_6275_ = v___y_6539_; +v_reader_6276_ = v_reader_6348_; +v_userData_6277_ = v_userData_6359_; +v_outputData_6278_ = v_outputData_6360_; +v_state_6279_ = v_state_6361_; +v_knownSize_6280_ = v_knownSize_6362_; +v_messageHead_6281_ = v_messageHead_6363_; +v_sentMessage_6282_ = v_sentMessage_6364_; +v_omitBody_6283_ = v_omitBody_6366_; +v_userDataBytes_6284_ = v_userDataBytes_6367_; +v_config_6285_ = v_config_6349_; +v_events_6286_ = v_events_6350_; +v_error_6287_ = v_error_6351_; +v_instant_6288_ = v_instant_6352_; +v_keepAlive_6289_ = v_keepAlive_6353_; +v_forcedFlush_6290_ = v_forcedFlush_6354_; +goto v___jp_6274_; } } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(uint8_t v_dir_6640_, lean_object* v_machine_6641_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0(lean_object* v_x1_6559_, lean_object* v_x2_6560_){ _start: { -lean_object* v_writer_6642_; lean_object* v_reader_6643_; lean_object* v_config_6644_; lean_object* v_events_6645_; lean_object* v_instant_6646_; uint8_t v_forcedFlush_6647_; uint8_t v_pullBodyStalled_6648_; lean_object* v_userData_6649_; lean_object* v_outputData_6650_; lean_object* v_knownSize_6651_; lean_object* v_messageHead_6652_; uint8_t v_sentMessage_6653_; uint8_t v_userClosedBody_6654_; uint8_t v_omitBody_6655_; lean_object* v_userDataBytes_6656_; lean_object* v___x_6658_; uint8_t v_isShared_6659_; uint8_t v_isSharedCheck_6699_; -v_writer_6642_ = lean_ctor_get(v_machine_6641_, 1); -lean_inc_ref(v_writer_6642_); -v_reader_6643_ = lean_ctor_get(v_machine_6641_, 0); -lean_inc_ref(v_reader_6643_); -v_config_6644_ = lean_ctor_get(v_machine_6641_, 2); -v_events_6645_ = lean_ctor_get(v_machine_6641_, 3); -v_instant_6646_ = lean_ctor_get(v_machine_6641_, 5); -v_forcedFlush_6647_ = lean_ctor_get_uint8(v_machine_6641_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6648_ = lean_ctor_get_uint8(v_machine_6641_, sizeof(void*)*6 + 2); -v_userData_6649_ = lean_ctor_get(v_writer_6642_, 0); -v_outputData_6650_ = lean_ctor_get(v_writer_6642_, 1); -v_knownSize_6651_ = lean_ctor_get(v_writer_6642_, 3); -v_messageHead_6652_ = lean_ctor_get(v_writer_6642_, 4); -v_sentMessage_6653_ = lean_ctor_get_uint8(v_writer_6642_, sizeof(void*)*6); -v_userClosedBody_6654_ = lean_ctor_get_uint8(v_writer_6642_, sizeof(void*)*6 + 1); -v_omitBody_6655_ = lean_ctor_get_uint8(v_writer_6642_, sizeof(void*)*6 + 2); -v_userDataBytes_6656_ = lean_ctor_get(v_writer_6642_, 5); -v_isSharedCheck_6699_ = !lean_is_exclusive(v_writer_6642_); -if (v_isSharedCheck_6699_ == 0) -{ -lean_object* v_unused_6700_; -v_unused_6700_ = lean_ctor_get(v_writer_6642_, 2); -lean_dec(v_unused_6700_); -v___x_6658_ = v_writer_6642_; -v_isShared_6659_ = v_isSharedCheck_6699_; -goto v_resetjp_6657_; -} -else -{ -lean_inc(v_userDataBytes_6656_); -lean_inc(v_messageHead_6652_); -lean_inc(v_knownSize_6651_); -lean_inc(v_outputData_6650_); -lean_inc(v_userData_6649_); -lean_dec(v_writer_6642_); -v___x_6658_ = lean_box(0); -v_isShared_6659_ = v_isSharedCheck_6699_; -goto v_resetjp_6657_; -} -v_resetjp_6657_: -{ -lean_object* v___x_6660_; lean_object* v___x_6661_; uint8_t v___x_6662_; -v___x_6660_ = lean_array_get_size(v_userData_6649_); -v___x_6661_ = lean_unsigned_to_nat(0u); -v___x_6662_ = lean_nat_dec_eq(v___x_6660_, v___x_6661_); -if (v___x_6662_ == 0) -{ -lean_object* v___x_6664_; uint8_t v_isShared_6665_; uint8_t v_isSharedCheck_6691_; -lean_inc(v_instant_6646_); -lean_inc_ref(v_events_6645_); -lean_inc_ref(v_config_6644_); -v_isSharedCheck_6691_ = !lean_is_exclusive(v_machine_6641_); -if (v_isSharedCheck_6691_ == 0) -{ -lean_object* v_unused_6692_; lean_object* v_unused_6693_; lean_object* v_unused_6694_; lean_object* v_unused_6695_; lean_object* v_unused_6696_; lean_object* v_unused_6697_; -v_unused_6692_ = lean_ctor_get(v_machine_6641_, 5); -lean_dec(v_unused_6692_); -v_unused_6693_ = lean_ctor_get(v_machine_6641_, 4); -lean_dec(v_unused_6693_); -v_unused_6694_ = lean_ctor_get(v_machine_6641_, 3); -lean_dec(v_unused_6694_); -v_unused_6695_ = lean_ctor_get(v_machine_6641_, 2); -lean_dec(v_unused_6695_); -v_unused_6696_ = lean_ctor_get(v_machine_6641_, 1); -lean_dec(v_unused_6696_); -v_unused_6697_ = lean_ctor_get(v_machine_6641_, 0); -lean_dec(v_unused_6697_); -v___x_6664_ = v_machine_6641_; -v_isShared_6665_ = v_isSharedCheck_6691_; -goto v_resetjp_6663_; -} -else -{ -lean_dec(v_machine_6641_); -v___x_6664_ = lean_box(0); -v_isShared_6665_ = v_isSharedCheck_6691_; -goto v_resetjp_6663_; -} -v_resetjp_6663_: -{ -lean_object* v_input_6666_; lean_object* v_messageHead_6667_; lean_object* v_messageCount_6668_; lean_object* v_bodyBytesRead_6669_; lean_object* v_headerBytesRead_6670_; lean_object* v___x_6672_; uint8_t v_isShared_6673_; uint8_t v_isSharedCheck_6689_; -v_input_6666_ = lean_ctor_get(v_reader_6643_, 1); -v_messageHead_6667_ = lean_ctor_get(v_reader_6643_, 2); -v_messageCount_6668_ = lean_ctor_get(v_reader_6643_, 3); -v_bodyBytesRead_6669_ = lean_ctor_get(v_reader_6643_, 4); -v_headerBytesRead_6670_ = lean_ctor_get(v_reader_6643_, 5); -v_isSharedCheck_6689_ = !lean_is_exclusive(v_reader_6643_); -if (v_isSharedCheck_6689_ == 0) -{ -lean_object* v_unused_6690_; -v_unused_6690_ = lean_ctor_get(v_reader_6643_, 0); -lean_dec(v_unused_6690_); -v___x_6672_ = v_reader_6643_; -v_isShared_6673_ = v_isSharedCheck_6689_; -goto v_resetjp_6671_; -} -else -{ -lean_inc(v_headerBytesRead_6670_); -lean_inc(v_bodyBytesRead_6669_); -lean_inc(v_messageCount_6668_); -lean_inc(v_messageHead_6667_); -lean_inc(v_input_6666_); -lean_dec(v_reader_6643_); -v___x_6672_ = lean_box(0); -v_isShared_6673_ = v_isSharedCheck_6689_; -goto v_resetjp_6671_; -} -v_resetjp_6671_: -{ -lean_object* v___x_6674_; lean_object* v___x_6675_; uint8_t v___x_6676_; lean_object* v___x_6678_; -v___x_6674_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6675_ = lean_box(5); -v___x_6676_ = 1; -if (v_isShared_6659_ == 0) -{ -lean_ctor_set(v___x_6658_, 2, v___x_6675_); -v___x_6678_ = v___x_6658_; -goto v_reusejp_6677_; -} -else -{ -lean_object* v_reuseFailAlloc_6688_; -v_reuseFailAlloc_6688_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6688_, 0, v_userData_6649_); -lean_ctor_set(v_reuseFailAlloc_6688_, 1, v_outputData_6650_); -lean_ctor_set(v_reuseFailAlloc_6688_, 2, v___x_6675_); -lean_ctor_set(v_reuseFailAlloc_6688_, 3, v_knownSize_6651_); -lean_ctor_set(v_reuseFailAlloc_6688_, 4, v_messageHead_6652_); -lean_ctor_set(v_reuseFailAlloc_6688_, 5, v_userDataBytes_6656_); -lean_ctor_set_uint8(v_reuseFailAlloc_6688_, sizeof(void*)*6, v_sentMessage_6653_); -lean_ctor_set_uint8(v_reuseFailAlloc_6688_, sizeof(void*)*6 + 2, v_omitBody_6655_); -v___x_6678_ = v_reuseFailAlloc_6688_; -goto v_reusejp_6677_; -} -v_reusejp_6677_: -{ -lean_object* v___x_6679_; lean_object* v___x_6681_; -lean_ctor_set_uint8(v___x_6678_, sizeof(void*)*6 + 1, v___x_6676_); -v___x_6679_ = lean_box(6); -if (v_isShared_6673_ == 0) -{ -lean_ctor_set(v___x_6672_, 0, v___x_6679_); -v___x_6681_ = v___x_6672_; -goto v_reusejp_6680_; -} -else -{ -lean_object* v_reuseFailAlloc_6687_; -v_reuseFailAlloc_6687_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6687_, 0, v___x_6679_); -lean_ctor_set(v_reuseFailAlloc_6687_, 1, v_input_6666_); -lean_ctor_set(v_reuseFailAlloc_6687_, 2, v_messageHead_6667_); -lean_ctor_set(v_reuseFailAlloc_6687_, 3, v_messageCount_6668_); -lean_ctor_set(v_reuseFailAlloc_6687_, 4, v_bodyBytesRead_6669_); -lean_ctor_set(v_reuseFailAlloc_6687_, 5, v_headerBytesRead_6670_); -v___x_6681_ = v_reuseFailAlloc_6687_; -goto v_reusejp_6680_; -} -v_reusejp_6680_: -{ -lean_object* v___x_6682_; lean_object* v___x_6683_; lean_object* v___x_6685_; -lean_ctor_set_uint8(v___x_6681_, sizeof(void*)*6, v___x_6676_); -v___x_6682_ = lean_box(3); -v___x_6683_ = lean_array_push(v_events_6645_, v___x_6682_); -if (v_isShared_6665_ == 0) -{ -lean_ctor_set(v___x_6664_, 4, v___x_6674_); -lean_ctor_set(v___x_6664_, 3, v___x_6683_); -lean_ctor_set(v___x_6664_, 1, v___x_6678_); -lean_ctor_set(v___x_6664_, 0, v___x_6681_); -v___x_6685_ = v___x_6664_; -goto v_reusejp_6684_; -} -else -{ -lean_object* v_reuseFailAlloc_6686_; -v_reuseFailAlloc_6686_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6686_, 0, v___x_6681_); -lean_ctor_set(v_reuseFailAlloc_6686_, 1, v___x_6678_); -lean_ctor_set(v_reuseFailAlloc_6686_, 2, v_config_6644_); -lean_ctor_set(v_reuseFailAlloc_6686_, 3, v___x_6683_); -lean_ctor_set(v_reuseFailAlloc_6686_, 4, v___x_6674_); -lean_ctor_set(v_reuseFailAlloc_6686_, 5, v_instant_6646_); -lean_ctor_set_uint8(v_reuseFailAlloc_6686_, sizeof(void*)*6 + 1, v_forcedFlush_6647_); -lean_ctor_set_uint8(v_reuseFailAlloc_6686_, sizeof(void*)*6 + 2, v_pullBodyStalled_6648_); -v___x_6685_ = v_reuseFailAlloc_6686_; -goto v_reusejp_6684_; -} -v_reusejp_6684_: -{ -lean_ctor_set_uint8(v___x_6685_, sizeof(void*)*6, v___x_6662_); -return v___x_6685_; +lean_object* v_data_6561_; lean_object* v___x_6562_; lean_object* v___x_6563_; +v_data_6561_ = lean_ctor_get(v_x2_6560_, 0); +v___x_6562_ = lean_byte_array_size(v_data_6561_); +v___x_6563_ = lean_nat_add(v_x1_6559_, v___x_6562_); +return v___x_6563_; } } -} -} -} -} -else -{ -lean_del_object(v___x_6658_); -lean_dec(v_userDataBytes_6656_); -lean_dec(v_messageHead_6652_); -lean_dec(v_knownSize_6651_); -lean_dec_ref(v_outputData_6650_); -lean_dec_ref(v_userData_6649_); -lean_dec_ref(v_reader_6643_); -if (v_userClosedBody_6654_ == 0) -{ -return v_machine_6641_; -} -else -{ -lean_object* v___x_6698_; -v___x_6698_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_6640_, v_machine_6641_); -return v___x_6698_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(uint8_t v_dir_6701_, lean_object* v_machine_6702_, lean_object* v_n_6703_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0___boxed(lean_object* v_x1_6564_, lean_object* v_x2_6565_){ _start: { -lean_object* v_writer_6704_; uint8_t v_omitBody_6705_; -v_writer_6704_ = lean_ctor_get(v_machine_6702_, 1); -lean_inc_ref(v_writer_6704_); -v_omitBody_6705_ = lean_ctor_get_uint8(v_writer_6704_, sizeof(void*)*6 + 2); -if (v_omitBody_6705_ == 0) -{ -lean_object* v_reader_6706_; lean_object* v_config_6707_; lean_object* v_events_6708_; lean_object* v_instant_6709_; uint8_t v_forcedFlush_6710_; uint8_t v_pullBodyStalled_6711_; lean_object* v_userData_6712_; lean_object* v_outputData_6713_; lean_object* v_knownSize_6714_; lean_object* v_messageHead_6715_; uint8_t v_sentMessage_6716_; uint8_t v_userClosedBody_6717_; lean_object* v_userDataBytes_6718_; lean_object* v___x_6720_; uint8_t v_isShared_6721_; uint8_t v_isSharedCheck_6762_; -v_reader_6706_ = lean_ctor_get(v_machine_6702_, 0); -lean_inc_ref(v_reader_6706_); -v_config_6707_ = lean_ctor_get(v_machine_6702_, 2); -v_events_6708_ = lean_ctor_get(v_machine_6702_, 3); -v_instant_6709_ = lean_ctor_get(v_machine_6702_, 5); -v_forcedFlush_6710_ = lean_ctor_get_uint8(v_machine_6702_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6711_ = lean_ctor_get_uint8(v_machine_6702_, sizeof(void*)*6 + 2); -v_userData_6712_ = lean_ctor_get(v_writer_6704_, 0); -v_outputData_6713_ = lean_ctor_get(v_writer_6704_, 1); -v_knownSize_6714_ = lean_ctor_get(v_writer_6704_, 3); -v_messageHead_6715_ = lean_ctor_get(v_writer_6704_, 4); -v_sentMessage_6716_ = lean_ctor_get_uint8(v_writer_6704_, sizeof(void*)*6); -v_userClosedBody_6717_ = lean_ctor_get_uint8(v_writer_6704_, sizeof(void*)*6 + 1); -v_userDataBytes_6718_ = lean_ctor_get(v_writer_6704_, 5); -v_isSharedCheck_6762_ = !lean_is_exclusive(v_writer_6704_); -if (v_isSharedCheck_6762_ == 0) -{ -lean_object* v_unused_6763_; -v_unused_6763_ = lean_ctor_get(v_writer_6704_, 2); -lean_dec(v_unused_6763_); -v___x_6720_ = v_writer_6704_; -v_isShared_6721_ = v_isSharedCheck_6762_; -goto v_resetjp_6719_; -} -else -{ -lean_inc(v_userDataBytes_6718_); -lean_inc(v_messageHead_6715_); -lean_inc(v_knownSize_6714_); -lean_inc(v_outputData_6713_); -lean_inc(v_userData_6712_); -lean_dec(v_writer_6704_); -v___x_6720_ = lean_box(0); -v_isShared_6721_ = v_isSharedCheck_6762_; -goto v_resetjp_6719_; -} -v_resetjp_6719_: -{ -lean_object* v___x_6722_; uint8_t v___x_6723_; -v___x_6722_ = lean_unsigned_to_nat(0u); -v___x_6723_ = lean_nat_dec_eq(v_n_6703_, v___x_6722_); -if (v___x_6723_ == 0) -{ -lean_object* v___x_6724_; uint8_t v___x_6725_; -v___x_6724_ = lean_array_get_size(v_userData_6712_); -v___x_6725_ = lean_nat_dec_lt(v___x_6722_, v___x_6724_); -if (v___x_6725_ == 0) -{ -lean_dec(v_n_6703_); -if (v_userClosedBody_6717_ == 0) -{ -lean_del_object(v___x_6720_); -lean_dec(v_userDataBytes_6718_); -lean_dec(v_messageHead_6715_); -lean_dec(v_knownSize_6714_); -lean_dec_ref(v_outputData_6713_); -lean_dec_ref(v_userData_6712_); -lean_dec_ref(v_reader_6706_); -return v_machine_6702_; -} -else -{ -lean_object* v___x_6727_; uint8_t v_isShared_6728_; uint8_t v_isSharedCheck_6753_; -lean_inc(v_instant_6709_); -lean_inc_ref(v_events_6708_); -lean_inc_ref(v_config_6707_); -v_isSharedCheck_6753_ = !lean_is_exclusive(v_machine_6702_); -if (v_isSharedCheck_6753_ == 0) -{ -lean_object* v_unused_6754_; lean_object* v_unused_6755_; lean_object* v_unused_6756_; lean_object* v_unused_6757_; lean_object* v_unused_6758_; lean_object* v_unused_6759_; -v_unused_6754_ = lean_ctor_get(v_machine_6702_, 5); -lean_dec(v_unused_6754_); -v_unused_6755_ = lean_ctor_get(v_machine_6702_, 4); -lean_dec(v_unused_6755_); -v_unused_6756_ = lean_ctor_get(v_machine_6702_, 3); -lean_dec(v_unused_6756_); -v_unused_6757_ = lean_ctor_get(v_machine_6702_, 2); -lean_dec(v_unused_6757_); -v_unused_6758_ = lean_ctor_get(v_machine_6702_, 1); -lean_dec(v_unused_6758_); -v_unused_6759_ = lean_ctor_get(v_machine_6702_, 0); -lean_dec(v_unused_6759_); -v___x_6727_ = v_machine_6702_; -v_isShared_6728_ = v_isSharedCheck_6753_; -goto v_resetjp_6726_; -} -else -{ -lean_dec(v_machine_6702_); -v___x_6727_ = lean_box(0); -v_isShared_6728_ = v_isSharedCheck_6753_; -goto v_resetjp_6726_; -} -v_resetjp_6726_: -{ -lean_object* v_input_6729_; lean_object* v_messageHead_6730_; lean_object* v_messageCount_6731_; lean_object* v_bodyBytesRead_6732_; lean_object* v_headerBytesRead_6733_; lean_object* v___x_6735_; uint8_t v_isShared_6736_; uint8_t v_isSharedCheck_6751_; -v_input_6729_ = lean_ctor_get(v_reader_6706_, 1); -v_messageHead_6730_ = lean_ctor_get(v_reader_6706_, 2); -v_messageCount_6731_ = lean_ctor_get(v_reader_6706_, 3); -v_bodyBytesRead_6732_ = lean_ctor_get(v_reader_6706_, 4); -v_headerBytesRead_6733_ = lean_ctor_get(v_reader_6706_, 5); -v_isSharedCheck_6751_ = !lean_is_exclusive(v_reader_6706_); -if (v_isSharedCheck_6751_ == 0) -{ -lean_object* v_unused_6752_; -v_unused_6752_ = lean_ctor_get(v_reader_6706_, 0); -lean_dec(v_unused_6752_); -v___x_6735_ = v_reader_6706_; -v_isShared_6736_ = v_isSharedCheck_6751_; -goto v_resetjp_6734_; -} -else -{ -lean_inc(v_headerBytesRead_6733_); -lean_inc(v_bodyBytesRead_6732_); -lean_inc(v_messageCount_6731_); -lean_inc(v_messageHead_6730_); -lean_inc(v_input_6729_); -lean_dec(v_reader_6706_); -v___x_6735_ = lean_box(0); -v_isShared_6736_ = v_isSharedCheck_6751_; -goto v_resetjp_6734_; -} -v_resetjp_6734_: -{ -lean_object* v___x_6737_; lean_object* v___x_6738_; lean_object* v___x_6740_; -v___x_6737_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6738_ = lean_box(5); -if (v_isShared_6721_ == 0) -{ -lean_ctor_set(v___x_6720_, 2, v___x_6738_); -v___x_6740_ = v___x_6720_; -goto v_reusejp_6739_; -} -else -{ -lean_object* v_reuseFailAlloc_6750_; -v_reuseFailAlloc_6750_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6750_, 0, v_userData_6712_); -lean_ctor_set(v_reuseFailAlloc_6750_, 1, v_outputData_6713_); -lean_ctor_set(v_reuseFailAlloc_6750_, 2, v___x_6738_); -lean_ctor_set(v_reuseFailAlloc_6750_, 3, v_knownSize_6714_); -lean_ctor_set(v_reuseFailAlloc_6750_, 4, v_messageHead_6715_); -lean_ctor_set(v_reuseFailAlloc_6750_, 5, v_userDataBytes_6718_); -lean_ctor_set_uint8(v_reuseFailAlloc_6750_, sizeof(void*)*6, v_sentMessage_6716_); -lean_ctor_set_uint8(v_reuseFailAlloc_6750_, sizeof(void*)*6 + 1, v_userClosedBody_6717_); -lean_ctor_set_uint8(v_reuseFailAlloc_6750_, sizeof(void*)*6 + 2, v_omitBody_6705_); -v___x_6740_ = v_reuseFailAlloc_6750_; -goto v_reusejp_6739_; -} -v_reusejp_6739_: -{ -lean_object* v___x_6741_; lean_object* v___x_6743_; -v___x_6741_ = lean_box(6); -if (v_isShared_6736_ == 0) -{ -lean_ctor_set(v___x_6735_, 0, v___x_6741_); -v___x_6743_ = v___x_6735_; -goto v_reusejp_6742_; -} -else -{ -lean_object* v_reuseFailAlloc_6749_; -v_reuseFailAlloc_6749_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6749_, 0, v___x_6741_); -lean_ctor_set(v_reuseFailAlloc_6749_, 1, v_input_6729_); -lean_ctor_set(v_reuseFailAlloc_6749_, 2, v_messageHead_6730_); -lean_ctor_set(v_reuseFailAlloc_6749_, 3, v_messageCount_6731_); -lean_ctor_set(v_reuseFailAlloc_6749_, 4, v_bodyBytesRead_6732_); -lean_ctor_set(v_reuseFailAlloc_6749_, 5, v_headerBytesRead_6733_); -v___x_6743_ = v_reuseFailAlloc_6749_; -goto v_reusejp_6742_; -} -v_reusejp_6742_: -{ -lean_object* v___x_6744_; lean_object* v___x_6745_; lean_object* v___x_6747_; -lean_ctor_set_uint8(v___x_6743_, sizeof(void*)*6, v_userClosedBody_6717_); -v___x_6744_ = lean_box(3); -v___x_6745_ = lean_array_push(v_events_6708_, v___x_6744_); -if (v_isShared_6728_ == 0) -{ -lean_ctor_set(v___x_6727_, 4, v___x_6737_); -lean_ctor_set(v___x_6727_, 3, v___x_6745_); -lean_ctor_set(v___x_6727_, 1, v___x_6740_); -lean_ctor_set(v___x_6727_, 0, v___x_6743_); -v___x_6747_ = v___x_6727_; -goto v_reusejp_6746_; -} -else -{ -lean_object* v_reuseFailAlloc_6748_; -v_reuseFailAlloc_6748_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6748_, 0, v___x_6743_); -lean_ctor_set(v_reuseFailAlloc_6748_, 1, v___x_6740_); -lean_ctor_set(v_reuseFailAlloc_6748_, 2, v_config_6707_); -lean_ctor_set(v_reuseFailAlloc_6748_, 3, v___x_6745_); -lean_ctor_set(v_reuseFailAlloc_6748_, 4, v___x_6737_); -lean_ctor_set(v_reuseFailAlloc_6748_, 5, v_instant_6709_); -lean_ctor_set_uint8(v_reuseFailAlloc_6748_, sizeof(void*)*6 + 1, v_forcedFlush_6710_); -lean_ctor_set_uint8(v_reuseFailAlloc_6748_, sizeof(void*)*6 + 2, v_pullBodyStalled_6711_); -v___x_6747_ = v_reuseFailAlloc_6748_; -goto v_reusejp_6746_; -} -v_reusejp_6746_: -{ -lean_ctor_set_uint8(v___x_6747_, sizeof(void*)*6, v_omitBody_6705_); -return v___x_6747_; +lean_object* v_res_6566_; +v_res_6566_ = l_Std_Http_Protocol_H1_Machine_sendData___redArg___lam__0(v_x1_6564_, v_x2_6565_); +lean_dec_ref(v_x2_6565_); +lean_dec(v_x1_6564_); +return v_res_6566_; } } -} -} -} -} -} -else -{ -lean_object* v___x_6760_; -lean_del_object(v___x_6720_); -lean_dec(v_userDataBytes_6718_); -lean_dec(v_messageHead_6715_); -lean_dec(v_knownSize_6714_); -lean_dec_ref(v_outputData_6713_); -lean_dec_ref(v_userData_6712_); -lean_dec_ref(v_reader_6706_); -v___x_6760_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(v_dir_6701_, v_machine_6702_, v_n_6703_); -return v___x_6760_; -} -} -else -{ -lean_object* v___x_6761_; -lean_del_object(v___x_6720_); -lean_dec(v_userDataBytes_6718_); -lean_dec(v_messageHead_6715_); -lean_dec(v_knownSize_6714_); -lean_dec_ref(v_outputData_6713_); -lean_dec_ref(v_userData_6712_); -lean_dec_ref(v_reader_6706_); -lean_dec(v_n_6703_); -v___x_6761_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(v_dir_6701_, v_machine_6702_); -return v___x_6761_; -} -} -} -else -{ -lean_object* v___x_6764_; -lean_dec_ref(v_writer_6704_); -lean_dec(v_n_6703_); -v___x_6764_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_6701_, v_machine_6702_); -return v___x_6764_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processWrite(uint8_t v_dir_6765_, lean_object* v_machine_6766_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___redArg(lean_object* v_machine_6568_, lean_object* v_data_6569_){ _start: { -lean_object* v_writer_6767_; lean_object* v_reader_6768_; lean_object* v_config_6769_; lean_object* v_events_6770_; lean_object* v_error_6771_; lean_object* v_instant_6772_; uint8_t v_keepAlive_6773_; uint8_t v_forcedFlush_6774_; uint8_t v_pullBodyStalled_6775_; lean_object* v_userData_6776_; lean_object* v_outputData_6777_; lean_object* v_state_6778_; lean_object* v_knownSize_6779_; lean_object* v_messageHead_6780_; uint8_t v_sentMessage_6781_; uint8_t v_userClosedBody_6782_; uint8_t v_omitBody_6783_; lean_object* v_userDataBytes_6784_; -v_writer_6767_ = lean_ctor_get(v_machine_6766_, 1); -lean_inc_ref(v_writer_6767_); -v_reader_6768_ = lean_ctor_get(v_machine_6766_, 0); -lean_inc_ref(v_reader_6768_); -v_config_6769_ = lean_ctor_get(v_machine_6766_, 2); -v_events_6770_ = lean_ctor_get(v_machine_6766_, 3); -v_error_6771_ = lean_ctor_get(v_machine_6766_, 4); -v_instant_6772_ = lean_ctor_get(v_machine_6766_, 5); -v_keepAlive_6773_ = lean_ctor_get_uint8(v_machine_6766_, sizeof(void*)*6); -v_forcedFlush_6774_ = lean_ctor_get_uint8(v_machine_6766_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6775_ = lean_ctor_get_uint8(v_machine_6766_, sizeof(void*)*6 + 2); -v_userData_6776_ = lean_ctor_get(v_writer_6767_, 0); -v_outputData_6777_ = lean_ctor_get(v_writer_6767_, 1); -v_state_6778_ = lean_ctor_get(v_writer_6767_, 2); -v_knownSize_6779_ = lean_ctor_get(v_writer_6767_, 3); -v_messageHead_6780_ = lean_ctor_get(v_writer_6767_, 4); -v_sentMessage_6781_ = lean_ctor_get_uint8(v_writer_6767_, sizeof(void*)*6); -v_userClosedBody_6782_ = lean_ctor_get_uint8(v_writer_6767_, sizeof(void*)*6 + 1); -v_omitBody_6783_ = lean_ctor_get_uint8(v_writer_6767_, sizeof(void*)*6 + 2); -v_userDataBytes_6784_ = lean_ctor_get(v_writer_6767_, 5); -switch(lean_obj_tag(v_state_6778_)) +lean_object* v___x_6570_; lean_object* v___x_6571_; uint8_t v___x_6572_; +v___x_6570_ = lean_array_get_size(v_data_6569_); +v___x_6571_ = lean_unsigned_to_nat(0u); +v___x_6572_ = lean_nat_dec_eq(v___x_6570_, v___x_6571_); +if (v___x_6572_ == 0) +{ +lean_object* v_reader_6573_; lean_object* v_writer_6574_; lean_object* v_config_6575_; lean_object* v_events_6576_; lean_object* v_error_6577_; lean_object* v_instant_6578_; uint8_t v_keepAlive_6579_; uint8_t v_forcedFlush_6580_; uint8_t v_pullBodyStalled_6581_; lean_object* v___x_6583_; uint8_t v_isShared_6584_; uint8_t v_isSharedCheck_6618_; +v_reader_6573_ = lean_ctor_get(v_machine_6568_, 0); +v_writer_6574_ = lean_ctor_get(v_machine_6568_, 1); +v_config_6575_ = lean_ctor_get(v_machine_6568_, 2); +v_events_6576_ = lean_ctor_get(v_machine_6568_, 3); +v_error_6577_ = lean_ctor_get(v_machine_6568_, 4); +v_instant_6578_ = lean_ctor_get(v_machine_6568_, 5); +v_keepAlive_6579_ = lean_ctor_get_uint8(v_machine_6568_, sizeof(void*)*6); +v_forcedFlush_6580_ = lean_ctor_get_uint8(v_machine_6568_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6581_ = lean_ctor_get_uint8(v_machine_6568_, sizeof(void*)*6 + 2); +v_isSharedCheck_6618_ = !lean_is_exclusive(v_machine_6568_); +if (v_isSharedCheck_6618_ == 0) +{ +v___x_6583_ = v_machine_6568_; +v_isShared_6584_ = v_isSharedCheck_6618_; +goto v_resetjp_6582_; +} +else +{ +lean_inc(v_instant_6578_); +lean_inc(v_error_6577_); +lean_inc(v_events_6576_); +lean_inc(v_config_6575_); +lean_inc(v_writer_6574_); +lean_inc(v_reader_6573_); +lean_dec(v_machine_6568_); +v___x_6583_ = lean_box(0); +v_isShared_6584_ = v_isSharedCheck_6618_; +goto v_resetjp_6582_; +} +v_resetjp_6582_: +{ +lean_object* v___y_6586_; lean_object* v___x_6608_; uint8_t v___x_6609_; +v___x_6608_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_6609_ = lean_nat_dec_lt(v___x_6571_, v___x_6570_); +if (v___x_6609_ == 0) +{ +v___y_6586_ = v___x_6571_; +goto v___jp_6585_; +} +else +{ +lean_object* v___f_6610_; uint8_t v___x_6611_; +v___f_6610_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_sendData___redArg___closed__0)); +v___x_6611_ = lean_nat_dec_le(v___x_6570_, v___x_6570_); +if (v___x_6611_ == 0) +{ +if (v___x_6609_ == 0) +{ +v___y_6586_ = v___x_6571_; +goto v___jp_6585_; +} +else +{ +size_t v___x_6612_; size_t v___x_6613_; lean_object* v___x_6614_; +v___x_6612_ = ((size_t)0ULL); +v___x_6613_ = lean_usize_of_nat(v___x_6570_); +lean_inc_ref(v_data_6569_); +v___x_6614_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_6608_, v___f_6610_, v_data_6569_, v___x_6612_, v___x_6613_, v___x_6571_); +v___y_6586_ = v___x_6614_; +goto v___jp_6585_; +} +} +else +{ +size_t v___x_6615_; size_t v___x_6616_; lean_object* v___x_6617_; +v___x_6615_ = ((size_t)0ULL); +v___x_6616_ = lean_usize_of_nat(v___x_6570_); +lean_inc_ref(v_data_6569_); +v___x_6617_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_6608_, v___f_6610_, v_data_6569_, v___x_6615_, v___x_6616_, v___x_6571_); +v___y_6586_ = v___x_6617_; +goto v___jp_6585_; +} +} +v___jp_6585_: +{ +lean_object* v_userData_6587_; lean_object* v_outputData_6588_; lean_object* v_state_6589_; lean_object* v_knownSize_6590_; lean_object* v_messageHead_6591_; uint8_t v_sentMessage_6592_; uint8_t v_userClosedBody_6593_; uint8_t v_omitBody_6594_; lean_object* v_userDataBytes_6595_; lean_object* v___x_6597_; uint8_t v_isShared_6598_; uint8_t v_isSharedCheck_6607_; +v_userData_6587_ = lean_ctor_get(v_writer_6574_, 0); +v_outputData_6588_ = lean_ctor_get(v_writer_6574_, 1); +v_state_6589_ = lean_ctor_get(v_writer_6574_, 2); +v_knownSize_6590_ = lean_ctor_get(v_writer_6574_, 3); +v_messageHead_6591_ = lean_ctor_get(v_writer_6574_, 4); +v_sentMessage_6592_ = lean_ctor_get_uint8(v_writer_6574_, sizeof(void*)*6); +v_userClosedBody_6593_ = lean_ctor_get_uint8(v_writer_6574_, sizeof(void*)*6 + 1); +v_omitBody_6594_ = lean_ctor_get_uint8(v_writer_6574_, sizeof(void*)*6 + 2); +v_userDataBytes_6595_ = lean_ctor_get(v_writer_6574_, 5); +v_isSharedCheck_6607_ = !lean_is_exclusive(v_writer_6574_); +if (v_isSharedCheck_6607_ == 0) +{ +v___x_6597_ = v_writer_6574_; +v_isShared_6598_ = v_isSharedCheck_6607_; +goto v_resetjp_6596_; +} +else +{ +lean_inc(v_userDataBytes_6595_); +lean_inc(v_messageHead_6591_); +lean_inc(v_knownSize_6590_); +lean_inc(v_state_6589_); +lean_inc(v_outputData_6588_); +lean_inc(v_userData_6587_); +lean_dec(v_writer_6574_); +v___x_6597_ = lean_box(0); +v_isShared_6598_ = v_isSharedCheck_6607_; +goto v_resetjp_6596_; +} +v_resetjp_6596_: +{ +lean_object* v___x_6599_; lean_object* v___x_6600_; lean_object* v___x_6602_; +v___x_6599_ = l_Array_append___redArg(v_userData_6587_, v_data_6569_); +lean_dec_ref(v_data_6569_); +v___x_6600_ = lean_nat_add(v_userDataBytes_6595_, v___y_6586_); +lean_dec(v___y_6586_); +lean_dec(v_userDataBytes_6595_); +if (v_isShared_6598_ == 0) +{ +lean_ctor_set(v___x_6597_, 5, v___x_6600_); +lean_ctor_set(v___x_6597_, 0, v___x_6599_); +v___x_6602_ = v___x_6597_; +goto v_reusejp_6601_; +} +else +{ +lean_object* v_reuseFailAlloc_6606_; +v_reuseFailAlloc_6606_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6606_, 0, v___x_6599_); +lean_ctor_set(v_reuseFailAlloc_6606_, 1, v_outputData_6588_); +lean_ctor_set(v_reuseFailAlloc_6606_, 2, v_state_6589_); +lean_ctor_set(v_reuseFailAlloc_6606_, 3, v_knownSize_6590_); +lean_ctor_set(v_reuseFailAlloc_6606_, 4, v_messageHead_6591_); +lean_ctor_set(v_reuseFailAlloc_6606_, 5, v___x_6600_); +lean_ctor_set_uint8(v_reuseFailAlloc_6606_, sizeof(void*)*6, v_sentMessage_6592_); +lean_ctor_set_uint8(v_reuseFailAlloc_6606_, sizeof(void*)*6 + 1, v_userClosedBody_6593_); +lean_ctor_set_uint8(v_reuseFailAlloc_6606_, sizeof(void*)*6 + 2, v_omitBody_6594_); +v___x_6602_ = v_reuseFailAlloc_6606_; +goto v_reusejp_6601_; +} +v_reusejp_6601_: +{ +lean_object* v___x_6604_; +if (v_isShared_6584_ == 0) +{ +lean_ctor_set(v___x_6583_, 1, v___x_6602_); +v___x_6604_ = v___x_6583_; +goto v_reusejp_6603_; +} +else +{ +lean_object* v_reuseFailAlloc_6605_; +v_reuseFailAlloc_6605_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6605_, 0, v_reader_6573_); +lean_ctor_set(v_reuseFailAlloc_6605_, 1, v___x_6602_); +lean_ctor_set(v_reuseFailAlloc_6605_, 2, v_config_6575_); +lean_ctor_set(v_reuseFailAlloc_6605_, 3, v_events_6576_); +lean_ctor_set(v_reuseFailAlloc_6605_, 4, v_error_6577_); +lean_ctor_set(v_reuseFailAlloc_6605_, 5, v_instant_6578_); +lean_ctor_set_uint8(v_reuseFailAlloc_6605_, sizeof(void*)*6, v_keepAlive_6579_); +lean_ctor_set_uint8(v_reuseFailAlloc_6605_, sizeof(void*)*6 + 1, v_forcedFlush_6580_); +lean_ctor_set_uint8(v_reuseFailAlloc_6605_, sizeof(void*)*6 + 2, v_pullBodyStalled_6581_); +v___x_6604_ = v_reuseFailAlloc_6605_; +goto v_reusejp_6603_; +} +v_reusejp_6603_: +{ +return v___x_6604_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v_data_6569_); +return v_machine_6568_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData(uint8_t v_dir_6619_, lean_object* v_machine_6620_, lean_object* v_data_6621_){ +_start: +{ +lean_object* v___x_6622_; lean_object* v___x_6623_; uint8_t v___x_6624_; +v___x_6622_ = lean_array_get_size(v_data_6621_); +v___x_6623_ = lean_unsigned_to_nat(0u); +v___x_6624_ = lean_nat_dec_eq(v___x_6622_, v___x_6623_); +if (v___x_6624_ == 0) +{ +lean_object* v_reader_6625_; lean_object* v_writer_6626_; lean_object* v_config_6627_; lean_object* v_events_6628_; lean_object* v_error_6629_; lean_object* v_instant_6630_; uint8_t v_keepAlive_6631_; uint8_t v_forcedFlush_6632_; uint8_t v_pullBodyStalled_6633_; lean_object* v___x_6635_; uint8_t v_isShared_6636_; uint8_t v_isSharedCheck_6670_; +v_reader_6625_ = lean_ctor_get(v_machine_6620_, 0); +v_writer_6626_ = lean_ctor_get(v_machine_6620_, 1); +v_config_6627_ = lean_ctor_get(v_machine_6620_, 2); +v_events_6628_ = lean_ctor_get(v_machine_6620_, 3); +v_error_6629_ = lean_ctor_get(v_machine_6620_, 4); +v_instant_6630_ = lean_ctor_get(v_machine_6620_, 5); +v_keepAlive_6631_ = lean_ctor_get_uint8(v_machine_6620_, sizeof(void*)*6); +v_forcedFlush_6632_ = lean_ctor_get_uint8(v_machine_6620_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6633_ = lean_ctor_get_uint8(v_machine_6620_, sizeof(void*)*6 + 2); +v_isSharedCheck_6670_ = !lean_is_exclusive(v_machine_6620_); +if (v_isSharedCheck_6670_ == 0) +{ +v___x_6635_ = v_machine_6620_; +v_isShared_6636_ = v_isSharedCheck_6670_; +goto v_resetjp_6634_; +} +else +{ +lean_inc(v_instant_6630_); +lean_inc(v_error_6629_); +lean_inc(v_events_6628_); +lean_inc(v_config_6627_); +lean_inc(v_writer_6626_); +lean_inc(v_reader_6625_); +lean_dec(v_machine_6620_); +v___x_6635_ = lean_box(0); +v_isShared_6636_ = v_isSharedCheck_6670_; +goto v_resetjp_6634_; +} +v_resetjp_6634_: +{ +lean_object* v___y_6638_; lean_object* v___x_6660_; uint8_t v___x_6661_; +v___x_6660_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__11)); +v___x_6661_ = lean_nat_dec_lt(v___x_6623_, v___x_6622_); +if (v___x_6661_ == 0) +{ +v___y_6638_ = v___x_6623_; +goto v___jp_6637_; +} +else +{ +lean_object* v___f_6662_; uint8_t v___x_6663_; +v___f_6662_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_sendData___redArg___closed__0)); +v___x_6663_ = lean_nat_dec_le(v___x_6622_, v___x_6622_); +if (v___x_6663_ == 0) +{ +if (v___x_6661_ == 0) +{ +v___y_6638_ = v___x_6623_; +goto v___jp_6637_; +} +else +{ +size_t v___x_6664_; size_t v___x_6665_; lean_object* v___x_6666_; +v___x_6664_ = ((size_t)0ULL); +v___x_6665_ = lean_usize_of_nat(v___x_6622_); +lean_inc_ref(v_data_6621_); +v___x_6666_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_6660_, v___f_6662_, v_data_6621_, v___x_6664_, v___x_6665_, v___x_6623_); +v___y_6638_ = v___x_6666_; +goto v___jp_6637_; +} +} +else +{ +size_t v___x_6667_; size_t v___x_6668_; lean_object* v___x_6669_; +v___x_6667_ = ((size_t)0ULL); +v___x_6668_ = lean_usize_of_nat(v___x_6622_); +lean_inc_ref(v_data_6621_); +v___x_6669_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_6660_, v___f_6662_, v_data_6621_, v___x_6667_, v___x_6668_, v___x_6623_); +v___y_6638_ = v___x_6669_; +goto v___jp_6637_; +} +} +v___jp_6637_: +{ +lean_object* v_userData_6639_; lean_object* v_outputData_6640_; lean_object* v_state_6641_; lean_object* v_knownSize_6642_; lean_object* v_messageHead_6643_; uint8_t v_sentMessage_6644_; uint8_t v_userClosedBody_6645_; uint8_t v_omitBody_6646_; lean_object* v_userDataBytes_6647_; lean_object* v___x_6649_; uint8_t v_isShared_6650_; uint8_t v_isSharedCheck_6659_; +v_userData_6639_ = lean_ctor_get(v_writer_6626_, 0); +v_outputData_6640_ = lean_ctor_get(v_writer_6626_, 1); +v_state_6641_ = lean_ctor_get(v_writer_6626_, 2); +v_knownSize_6642_ = lean_ctor_get(v_writer_6626_, 3); +v_messageHead_6643_ = lean_ctor_get(v_writer_6626_, 4); +v_sentMessage_6644_ = lean_ctor_get_uint8(v_writer_6626_, sizeof(void*)*6); +v_userClosedBody_6645_ = lean_ctor_get_uint8(v_writer_6626_, sizeof(void*)*6 + 1); +v_omitBody_6646_ = lean_ctor_get_uint8(v_writer_6626_, sizeof(void*)*6 + 2); +v_userDataBytes_6647_ = lean_ctor_get(v_writer_6626_, 5); +v_isSharedCheck_6659_ = !lean_is_exclusive(v_writer_6626_); +if (v_isSharedCheck_6659_ == 0) +{ +v___x_6649_ = v_writer_6626_; +v_isShared_6650_ = v_isSharedCheck_6659_; +goto v_resetjp_6648_; +} +else +{ +lean_inc(v_userDataBytes_6647_); +lean_inc(v_messageHead_6643_); +lean_inc(v_knownSize_6642_); +lean_inc(v_state_6641_); +lean_inc(v_outputData_6640_); +lean_inc(v_userData_6639_); +lean_dec(v_writer_6626_); +v___x_6649_ = lean_box(0); +v_isShared_6650_ = v_isSharedCheck_6659_; +goto v_resetjp_6648_; +} +v_resetjp_6648_: +{ +lean_object* v___x_6651_; lean_object* v___x_6652_; lean_object* v___x_6654_; +v___x_6651_ = l_Array_append___redArg(v_userData_6639_, v_data_6621_); +lean_dec_ref(v_data_6621_); +v___x_6652_ = lean_nat_add(v_userDataBytes_6647_, v___y_6638_); +lean_dec(v___y_6638_); +lean_dec(v_userDataBytes_6647_); +if (v_isShared_6650_ == 0) +{ +lean_ctor_set(v___x_6649_, 5, v___x_6652_); +lean_ctor_set(v___x_6649_, 0, v___x_6651_); +v___x_6654_ = v___x_6649_; +goto v_reusejp_6653_; +} +else +{ +lean_object* v_reuseFailAlloc_6658_; +v_reuseFailAlloc_6658_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6658_, 0, v___x_6651_); +lean_ctor_set(v_reuseFailAlloc_6658_, 1, v_outputData_6640_); +lean_ctor_set(v_reuseFailAlloc_6658_, 2, v_state_6641_); +lean_ctor_set(v_reuseFailAlloc_6658_, 3, v_knownSize_6642_); +lean_ctor_set(v_reuseFailAlloc_6658_, 4, v_messageHead_6643_); +lean_ctor_set(v_reuseFailAlloc_6658_, 5, v___x_6652_); +lean_ctor_set_uint8(v_reuseFailAlloc_6658_, sizeof(void*)*6, v_sentMessage_6644_); +lean_ctor_set_uint8(v_reuseFailAlloc_6658_, sizeof(void*)*6 + 1, v_userClosedBody_6645_); +lean_ctor_set_uint8(v_reuseFailAlloc_6658_, sizeof(void*)*6 + 2, v_omitBody_6646_); +v___x_6654_ = v_reuseFailAlloc_6658_; +goto v_reusejp_6653_; +} +v_reusejp_6653_: +{ +lean_object* v___x_6656_; +if (v_isShared_6636_ == 0) +{ +lean_ctor_set(v___x_6635_, 1, v___x_6654_); +v___x_6656_ = v___x_6635_; +goto v_reusejp_6655_; +} +else +{ +lean_object* v_reuseFailAlloc_6657_; +v_reuseFailAlloc_6657_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6657_, 0, v_reader_6625_); +lean_ctor_set(v_reuseFailAlloc_6657_, 1, v___x_6654_); +lean_ctor_set(v_reuseFailAlloc_6657_, 2, v_config_6627_); +lean_ctor_set(v_reuseFailAlloc_6657_, 3, v_events_6628_); +lean_ctor_set(v_reuseFailAlloc_6657_, 4, v_error_6629_); +lean_ctor_set(v_reuseFailAlloc_6657_, 5, v_instant_6630_); +lean_ctor_set_uint8(v_reuseFailAlloc_6657_, sizeof(void*)*6, v_keepAlive_6631_); +lean_ctor_set_uint8(v_reuseFailAlloc_6657_, sizeof(void*)*6 + 1, v_forcedFlush_6632_); +lean_ctor_set_uint8(v_reuseFailAlloc_6657_, sizeof(void*)*6 + 2, v_pullBodyStalled_6633_); +v___x_6656_ = v_reuseFailAlloc_6657_; +goto v_reusejp_6655_; +} +v_reusejp_6655_: +{ +return v___x_6656_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v_data_6621_); +return v_machine_6620_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_sendData___boxed(lean_object* v_dir_6671_, lean_object* v_machine_6672_, lean_object* v_data_6673_){ +_start: +{ +uint8_t v_dir_boxed_6674_; lean_object* v_res_6675_; +v_dir_boxed_6674_ = lean_unbox(v_dir_6671_); +v_res_6675_ = l_Std_Http_Protocol_H1_Machine_sendData(v_dir_boxed_6674_, v_machine_6672_, v_data_6673_); +return v_res_6675_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents___redArg(lean_object* v_machine_6678_){ +_start: +{ +lean_object* v_reader_6679_; lean_object* v_writer_6680_; lean_object* v_config_6681_; lean_object* v_events_6682_; lean_object* v_error_6683_; lean_object* v_instant_6684_; uint8_t v_keepAlive_6685_; uint8_t v_forcedFlush_6686_; uint8_t v_pullBodyStalled_6687_; lean_object* v___x_6689_; uint8_t v_isShared_6690_; uint8_t v_isSharedCheck_6696_; +v_reader_6679_ = lean_ctor_get(v_machine_6678_, 0); +v_writer_6680_ = lean_ctor_get(v_machine_6678_, 1); +v_config_6681_ = lean_ctor_get(v_machine_6678_, 2); +v_events_6682_ = lean_ctor_get(v_machine_6678_, 3); +v_error_6683_ = lean_ctor_get(v_machine_6678_, 4); +v_instant_6684_ = lean_ctor_get(v_machine_6678_, 5); +v_keepAlive_6685_ = lean_ctor_get_uint8(v_machine_6678_, sizeof(void*)*6); +v_forcedFlush_6686_ = lean_ctor_get_uint8(v_machine_6678_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6687_ = lean_ctor_get_uint8(v_machine_6678_, sizeof(void*)*6 + 2); +v_isSharedCheck_6696_ = !lean_is_exclusive(v_machine_6678_); +if (v_isSharedCheck_6696_ == 0) +{ +v___x_6689_ = v_machine_6678_; +v_isShared_6690_ = v_isSharedCheck_6696_; +goto v_resetjp_6688_; +} +else +{ +lean_inc(v_instant_6684_); +lean_inc(v_error_6683_); +lean_inc(v_events_6682_); +lean_inc(v_config_6681_); +lean_inc(v_writer_6680_); +lean_inc(v_reader_6679_); +lean_dec(v_machine_6678_); +v___x_6689_ = lean_box(0); +v_isShared_6690_ = v_isSharedCheck_6696_; +goto v_resetjp_6688_; +} +v_resetjp_6688_: +{ +lean_object* v___x_6691_; lean_object* v___x_6693_; +v___x_6691_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); +if (v_isShared_6690_ == 0) +{ +lean_ctor_set(v___x_6689_, 3, v___x_6691_); +v___x_6693_ = v___x_6689_; +goto v_reusejp_6692_; +} +else +{ +lean_object* v_reuseFailAlloc_6695_; +v_reuseFailAlloc_6695_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6695_, 0, v_reader_6679_); +lean_ctor_set(v_reuseFailAlloc_6695_, 1, v_writer_6680_); +lean_ctor_set(v_reuseFailAlloc_6695_, 2, v_config_6681_); +lean_ctor_set(v_reuseFailAlloc_6695_, 3, v___x_6691_); +lean_ctor_set(v_reuseFailAlloc_6695_, 4, v_error_6683_); +lean_ctor_set(v_reuseFailAlloc_6695_, 5, v_instant_6684_); +lean_ctor_set_uint8(v_reuseFailAlloc_6695_, sizeof(void*)*6, v_keepAlive_6685_); +lean_ctor_set_uint8(v_reuseFailAlloc_6695_, sizeof(void*)*6 + 1, v_forcedFlush_6686_); +lean_ctor_set_uint8(v_reuseFailAlloc_6695_, sizeof(void*)*6 + 2, v_pullBodyStalled_6687_); +v___x_6693_ = v_reuseFailAlloc_6695_; +goto v_reusejp_6692_; +} +v_reusejp_6692_: +{ +lean_object* v___x_6694_; +v___x_6694_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6694_, 0, v___x_6693_); +lean_ctor_set(v___x_6694_, 1, v_events_6682_); +return v___x_6694_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents(uint8_t v_dir_6697_, lean_object* v_machine_6698_){ +_start: +{ +lean_object* v_reader_6699_; lean_object* v_writer_6700_; lean_object* v_config_6701_; lean_object* v_events_6702_; lean_object* v_error_6703_; lean_object* v_instant_6704_; uint8_t v_keepAlive_6705_; uint8_t v_forcedFlush_6706_; uint8_t v_pullBodyStalled_6707_; lean_object* v___x_6709_; uint8_t v_isShared_6710_; uint8_t v_isSharedCheck_6716_; +v_reader_6699_ = lean_ctor_get(v_machine_6698_, 0); +v_writer_6700_ = lean_ctor_get(v_machine_6698_, 1); +v_config_6701_ = lean_ctor_get(v_machine_6698_, 2); +v_events_6702_ = lean_ctor_get(v_machine_6698_, 3); +v_error_6703_ = lean_ctor_get(v_machine_6698_, 4); +v_instant_6704_ = lean_ctor_get(v_machine_6698_, 5); +v_keepAlive_6705_ = lean_ctor_get_uint8(v_machine_6698_, sizeof(void*)*6); +v_forcedFlush_6706_ = lean_ctor_get_uint8(v_machine_6698_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6707_ = lean_ctor_get_uint8(v_machine_6698_, sizeof(void*)*6 + 2); +v_isSharedCheck_6716_ = !lean_is_exclusive(v_machine_6698_); +if (v_isSharedCheck_6716_ == 0) +{ +v___x_6709_ = v_machine_6698_; +v_isShared_6710_ = v_isSharedCheck_6716_; +goto v_resetjp_6708_; +} +else +{ +lean_inc(v_instant_6704_); +lean_inc(v_error_6703_); +lean_inc(v_events_6702_); +lean_inc(v_config_6701_); +lean_inc(v_writer_6700_); +lean_inc(v_reader_6699_); +lean_dec(v_machine_6698_); +v___x_6709_ = lean_box(0); +v_isShared_6710_ = v_isSharedCheck_6716_; +goto v_resetjp_6708_; +} +v_resetjp_6708_: +{ +lean_object* v___x_6711_; lean_object* v___x_6713_; +v___x_6711_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); +if (v_isShared_6710_ == 0) +{ +lean_ctor_set(v___x_6709_, 3, v___x_6711_); +v___x_6713_ = v___x_6709_; +goto v_reusejp_6712_; +} +else +{ +lean_object* v_reuseFailAlloc_6715_; +v_reuseFailAlloc_6715_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6715_, 0, v_reader_6699_); +lean_ctor_set(v_reuseFailAlloc_6715_, 1, v_writer_6700_); +lean_ctor_set(v_reuseFailAlloc_6715_, 2, v_config_6701_); +lean_ctor_set(v_reuseFailAlloc_6715_, 3, v___x_6711_); +lean_ctor_set(v_reuseFailAlloc_6715_, 4, v_error_6703_); +lean_ctor_set(v_reuseFailAlloc_6715_, 5, v_instant_6704_); +lean_ctor_set_uint8(v_reuseFailAlloc_6715_, sizeof(void*)*6, v_keepAlive_6705_); +lean_ctor_set_uint8(v_reuseFailAlloc_6715_, sizeof(void*)*6 + 1, v_forcedFlush_6706_); +lean_ctor_set_uint8(v_reuseFailAlloc_6715_, sizeof(void*)*6 + 2, v_pullBodyStalled_6707_); +v___x_6713_ = v_reuseFailAlloc_6715_; +goto v_reusejp_6712_; +} +v_reusejp_6712_: +{ +lean_object* v___x_6714_; +v___x_6714_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6714_, 0, v___x_6713_); +lean_ctor_set(v___x_6714_, 1, v_events_6702_); +return v___x_6714_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeEvents___boxed(lean_object* v_dir_6717_, lean_object* v_machine_6718_){ +_start: +{ +uint8_t v_dir_boxed_6719_; lean_object* v_res_6720_; +v_dir_boxed_6719_ = lean_unbox(v_dir_6717_); +v_res_6720_ = l_Std_Http_Protocol_H1_Machine_takeEvents(v_dir_boxed_6719_, v_machine_6718_); +return v_res_6720_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput___redArg(lean_object* v_machine_6726_){ +_start: +{ +lean_object* v_writer_6727_; lean_object* v_reader_6728_; lean_object* v_config_6729_; lean_object* v_events_6730_; lean_object* v_error_6731_; lean_object* v_instant_6732_; uint8_t v_keepAlive_6733_; uint8_t v_forcedFlush_6734_; uint8_t v_pullBodyStalled_6735_; lean_object* v___x_6737_; uint8_t v_isShared_6738_; uint8_t v_isSharedCheck_6760_; +v_writer_6727_ = lean_ctor_get(v_machine_6726_, 1); +v_reader_6728_ = lean_ctor_get(v_machine_6726_, 0); +v_config_6729_ = lean_ctor_get(v_machine_6726_, 2); +v_events_6730_ = lean_ctor_get(v_machine_6726_, 3); +v_error_6731_ = lean_ctor_get(v_machine_6726_, 4); +v_instant_6732_ = lean_ctor_get(v_machine_6726_, 5); +v_keepAlive_6733_ = lean_ctor_get_uint8(v_machine_6726_, sizeof(void*)*6); +v_forcedFlush_6734_ = lean_ctor_get_uint8(v_machine_6726_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6735_ = lean_ctor_get_uint8(v_machine_6726_, sizeof(void*)*6 + 2); +v_isSharedCheck_6760_ = !lean_is_exclusive(v_machine_6726_); +if (v_isSharedCheck_6760_ == 0) +{ +v___x_6737_ = v_machine_6726_; +v_isShared_6738_ = v_isSharedCheck_6760_; +goto v_resetjp_6736_; +} +else +{ +lean_inc(v_instant_6732_); +lean_inc(v_error_6731_); +lean_inc(v_events_6730_); +lean_inc(v_config_6729_); +lean_inc(v_writer_6727_); +lean_inc(v_reader_6728_); +lean_dec(v_machine_6726_); +v___x_6737_ = lean_box(0); +v_isShared_6738_ = v_isSharedCheck_6760_; +goto v_resetjp_6736_; +} +v_resetjp_6736_: +{ +lean_object* v_userData_6739_; lean_object* v_outputData_6740_; lean_object* v_state_6741_; lean_object* v_knownSize_6742_; lean_object* v_messageHead_6743_; uint8_t v_sentMessage_6744_; uint8_t v_userClosedBody_6745_; uint8_t v_omitBody_6746_; lean_object* v_userDataBytes_6747_; lean_object* v___x_6749_; uint8_t v_isShared_6750_; uint8_t v_isSharedCheck_6759_; +v_userData_6739_ = lean_ctor_get(v_writer_6727_, 0); +v_outputData_6740_ = lean_ctor_get(v_writer_6727_, 1); +v_state_6741_ = lean_ctor_get(v_writer_6727_, 2); +v_knownSize_6742_ = lean_ctor_get(v_writer_6727_, 3); +v_messageHead_6743_ = lean_ctor_get(v_writer_6727_, 4); +v_sentMessage_6744_ = lean_ctor_get_uint8(v_writer_6727_, sizeof(void*)*6); +v_userClosedBody_6745_ = lean_ctor_get_uint8(v_writer_6727_, sizeof(void*)*6 + 1); +v_omitBody_6746_ = lean_ctor_get_uint8(v_writer_6727_, sizeof(void*)*6 + 2); +v_userDataBytes_6747_ = lean_ctor_get(v_writer_6727_, 5); +v_isSharedCheck_6759_ = !lean_is_exclusive(v_writer_6727_); +if (v_isSharedCheck_6759_ == 0) +{ +v___x_6749_ = v_writer_6727_; +v_isShared_6750_ = v_isSharedCheck_6759_; +goto v_resetjp_6748_; +} +else +{ +lean_inc(v_userDataBytes_6747_); +lean_inc(v_messageHead_6743_); +lean_inc(v_knownSize_6742_); +lean_inc(v_state_6741_); +lean_inc(v_outputData_6740_); +lean_inc(v_userData_6739_); +lean_dec(v_writer_6727_); +v___x_6749_ = lean_box(0); +v_isShared_6750_ = v_isSharedCheck_6759_; +goto v_resetjp_6748_; +} +v_resetjp_6748_: +{ +lean_object* v___x_6751_; lean_object* v___x_6753_; +v___x_6751_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeOutput___redArg___closed__1)); +if (v_isShared_6750_ == 0) +{ +lean_ctor_set(v___x_6749_, 1, v___x_6751_); +v___x_6753_ = v___x_6749_; +goto v_reusejp_6752_; +} +else +{ +lean_object* v_reuseFailAlloc_6758_; +v_reuseFailAlloc_6758_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6758_, 0, v_userData_6739_); +lean_ctor_set(v_reuseFailAlloc_6758_, 1, v___x_6751_); +lean_ctor_set(v_reuseFailAlloc_6758_, 2, v_state_6741_); +lean_ctor_set(v_reuseFailAlloc_6758_, 3, v_knownSize_6742_); +lean_ctor_set(v_reuseFailAlloc_6758_, 4, v_messageHead_6743_); +lean_ctor_set(v_reuseFailAlloc_6758_, 5, v_userDataBytes_6747_); +lean_ctor_set_uint8(v_reuseFailAlloc_6758_, sizeof(void*)*6, v_sentMessage_6744_); +lean_ctor_set_uint8(v_reuseFailAlloc_6758_, sizeof(void*)*6 + 1, v_userClosedBody_6745_); +lean_ctor_set_uint8(v_reuseFailAlloc_6758_, sizeof(void*)*6 + 2, v_omitBody_6746_); +v___x_6753_ = v_reuseFailAlloc_6758_; +goto v_reusejp_6752_; +} +v_reusejp_6752_: +{ +lean_object* v___x_6755_; +if (v_isShared_6738_ == 0) +{ +lean_ctor_set(v___x_6737_, 1, v___x_6753_); +v___x_6755_ = v___x_6737_; +goto v_reusejp_6754_; +} +else +{ +lean_object* v_reuseFailAlloc_6757_; +v_reuseFailAlloc_6757_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6757_, 0, v_reader_6728_); +lean_ctor_set(v_reuseFailAlloc_6757_, 1, v___x_6753_); +lean_ctor_set(v_reuseFailAlloc_6757_, 2, v_config_6729_); +lean_ctor_set(v_reuseFailAlloc_6757_, 3, v_events_6730_); +lean_ctor_set(v_reuseFailAlloc_6757_, 4, v_error_6731_); +lean_ctor_set(v_reuseFailAlloc_6757_, 5, v_instant_6732_); +lean_ctor_set_uint8(v_reuseFailAlloc_6757_, sizeof(void*)*6, v_keepAlive_6733_); +lean_ctor_set_uint8(v_reuseFailAlloc_6757_, sizeof(void*)*6 + 1, v_forcedFlush_6734_); +lean_ctor_set_uint8(v_reuseFailAlloc_6757_, sizeof(void*)*6 + 2, v_pullBodyStalled_6735_); +v___x_6755_ = v_reuseFailAlloc_6757_; +goto v_reusejp_6754_; +} +v_reusejp_6754_: +{ +lean_object* v___x_6756_; +v___x_6756_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6756_, 0, v___x_6755_); +lean_ctor_set(v___x_6756_, 1, v_outputData_6740_); +return v___x_6756_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput(uint8_t v_dir_6761_, lean_object* v_machine_6762_){ +_start: +{ +lean_object* v_writer_6763_; lean_object* v_reader_6764_; lean_object* v_config_6765_; lean_object* v_events_6766_; lean_object* v_error_6767_; lean_object* v_instant_6768_; uint8_t v_keepAlive_6769_; uint8_t v_forcedFlush_6770_; uint8_t v_pullBodyStalled_6771_; lean_object* v___x_6773_; uint8_t v_isShared_6774_; uint8_t v_isSharedCheck_6796_; +v_writer_6763_ = lean_ctor_get(v_machine_6762_, 1); +v_reader_6764_ = lean_ctor_get(v_machine_6762_, 0); +v_config_6765_ = lean_ctor_get(v_machine_6762_, 2); +v_events_6766_ = lean_ctor_get(v_machine_6762_, 3); +v_error_6767_ = lean_ctor_get(v_machine_6762_, 4); +v_instant_6768_ = lean_ctor_get(v_machine_6762_, 5); +v_keepAlive_6769_ = lean_ctor_get_uint8(v_machine_6762_, sizeof(void*)*6); +v_forcedFlush_6770_ = lean_ctor_get_uint8(v_machine_6762_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6771_ = lean_ctor_get_uint8(v_machine_6762_, sizeof(void*)*6 + 2); +v_isSharedCheck_6796_ = !lean_is_exclusive(v_machine_6762_); +if (v_isSharedCheck_6796_ == 0) +{ +v___x_6773_ = v_machine_6762_; +v_isShared_6774_ = v_isSharedCheck_6796_; +goto v_resetjp_6772_; +} +else +{ +lean_inc(v_instant_6768_); +lean_inc(v_error_6767_); +lean_inc(v_events_6766_); +lean_inc(v_config_6765_); +lean_inc(v_writer_6763_); +lean_inc(v_reader_6764_); +lean_dec(v_machine_6762_); +v___x_6773_ = lean_box(0); +v_isShared_6774_ = v_isSharedCheck_6796_; +goto v_resetjp_6772_; +} +v_resetjp_6772_: +{ +lean_object* v_userData_6775_; lean_object* v_outputData_6776_; lean_object* v_state_6777_; lean_object* v_knownSize_6778_; lean_object* v_messageHead_6779_; uint8_t v_sentMessage_6780_; uint8_t v_userClosedBody_6781_; uint8_t v_omitBody_6782_; lean_object* v_userDataBytes_6783_; lean_object* v___x_6785_; uint8_t v_isShared_6786_; uint8_t v_isSharedCheck_6795_; +v_userData_6775_ = lean_ctor_get(v_writer_6763_, 0); +v_outputData_6776_ = lean_ctor_get(v_writer_6763_, 1); +v_state_6777_ = lean_ctor_get(v_writer_6763_, 2); +v_knownSize_6778_ = lean_ctor_get(v_writer_6763_, 3); +v_messageHead_6779_ = lean_ctor_get(v_writer_6763_, 4); +v_sentMessage_6780_ = lean_ctor_get_uint8(v_writer_6763_, sizeof(void*)*6); +v_userClosedBody_6781_ = lean_ctor_get_uint8(v_writer_6763_, sizeof(void*)*6 + 1); +v_omitBody_6782_ = lean_ctor_get_uint8(v_writer_6763_, sizeof(void*)*6 + 2); +v_userDataBytes_6783_ = lean_ctor_get(v_writer_6763_, 5); +v_isSharedCheck_6795_ = !lean_is_exclusive(v_writer_6763_); +if (v_isSharedCheck_6795_ == 0) +{ +v___x_6785_ = v_writer_6763_; +v_isShared_6786_ = v_isSharedCheck_6795_; +goto v_resetjp_6784_; +} +else +{ +lean_inc(v_userDataBytes_6783_); +lean_inc(v_messageHead_6779_); +lean_inc(v_knownSize_6778_); +lean_inc(v_state_6777_); +lean_inc(v_outputData_6776_); +lean_inc(v_userData_6775_); +lean_dec(v_writer_6763_); +v___x_6785_ = lean_box(0); +v_isShared_6786_ = v_isSharedCheck_6795_; +goto v_resetjp_6784_; +} +v_resetjp_6784_: +{ +lean_object* v___x_6787_; lean_object* v___x_6789_; +v___x_6787_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeOutput___redArg___closed__1)); +if (v_isShared_6786_ == 0) +{ +lean_ctor_set(v___x_6785_, 1, v___x_6787_); +v___x_6789_ = v___x_6785_; +goto v_reusejp_6788_; +} +else +{ +lean_object* v_reuseFailAlloc_6794_; +v_reuseFailAlloc_6794_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6794_, 0, v_userData_6775_); +lean_ctor_set(v_reuseFailAlloc_6794_, 1, v___x_6787_); +lean_ctor_set(v_reuseFailAlloc_6794_, 2, v_state_6777_); +lean_ctor_set(v_reuseFailAlloc_6794_, 3, v_knownSize_6778_); +lean_ctor_set(v_reuseFailAlloc_6794_, 4, v_messageHead_6779_); +lean_ctor_set(v_reuseFailAlloc_6794_, 5, v_userDataBytes_6783_); +lean_ctor_set_uint8(v_reuseFailAlloc_6794_, sizeof(void*)*6, v_sentMessage_6780_); +lean_ctor_set_uint8(v_reuseFailAlloc_6794_, sizeof(void*)*6 + 1, v_userClosedBody_6781_); +lean_ctor_set_uint8(v_reuseFailAlloc_6794_, sizeof(void*)*6 + 2, v_omitBody_6782_); +v___x_6789_ = v_reuseFailAlloc_6794_; +goto v_reusejp_6788_; +} +v_reusejp_6788_: +{ +lean_object* v___x_6791_; +if (v_isShared_6774_ == 0) +{ +lean_ctor_set(v___x_6773_, 1, v___x_6789_); +v___x_6791_ = v___x_6773_; +goto v_reusejp_6790_; +} +else +{ +lean_object* v_reuseFailAlloc_6793_; +v_reuseFailAlloc_6793_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6793_, 0, v_reader_6764_); +lean_ctor_set(v_reuseFailAlloc_6793_, 1, v___x_6789_); +lean_ctor_set(v_reuseFailAlloc_6793_, 2, v_config_6765_); +lean_ctor_set(v_reuseFailAlloc_6793_, 3, v_events_6766_); +lean_ctor_set(v_reuseFailAlloc_6793_, 4, v_error_6767_); +lean_ctor_set(v_reuseFailAlloc_6793_, 5, v_instant_6768_); +lean_ctor_set_uint8(v_reuseFailAlloc_6793_, sizeof(void*)*6, v_keepAlive_6769_); +lean_ctor_set_uint8(v_reuseFailAlloc_6793_, sizeof(void*)*6 + 1, v_forcedFlush_6770_); +lean_ctor_set_uint8(v_reuseFailAlloc_6793_, sizeof(void*)*6 + 2, v_pullBodyStalled_6771_); +v___x_6791_ = v_reuseFailAlloc_6793_; +goto v_reusejp_6790_; +} +v_reusejp_6790_: +{ +lean_object* v___x_6792_; +v___x_6792_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_6792_, 0, v___x_6791_); +lean_ctor_set(v___x_6792_, 1, v_outputData_6776_); +return v___x_6792_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_takeOutput___boxed(lean_object* v_dir_6797_, lean_object* v_machine_6798_){ +_start: +{ +uint8_t v_dir_boxed_6799_; lean_object* v_res_6800_; +v_dir_boxed_6799_ = lean_unbox(v_dir_6797_); +v_res_6800_ = l_Std_Http_Protocol_H1_Machine_takeOutput(v_dir_boxed_6799_, v_machine_6798_); +return v_res_6800_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage___redArg(lean_object* v_machine_6801_){ +_start: +{ +lean_object* v_writer_6802_; lean_object* v_reader_6803_; lean_object* v_config_6804_; lean_object* v_events_6805_; lean_object* v_instant_6806_; uint8_t v_forcedFlush_6807_; uint8_t v_pullBodyStalled_6808_; lean_object* v___x_6810_; uint8_t v_isShared_6811_; uint8_t v_isSharedCheck_6850_; +v_writer_6802_ = lean_ctor_get(v_machine_6801_, 1); +v_reader_6803_ = lean_ctor_get(v_machine_6801_, 0); +v_config_6804_ = lean_ctor_get(v_machine_6801_, 2); +v_events_6805_ = lean_ctor_get(v_machine_6801_, 3); +v_instant_6806_ = lean_ctor_get(v_machine_6801_, 5); +v_forcedFlush_6807_ = lean_ctor_get_uint8(v_machine_6801_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6808_ = lean_ctor_get_uint8(v_machine_6801_, sizeof(void*)*6 + 2); +v_isSharedCheck_6850_ = !lean_is_exclusive(v_machine_6801_); +if (v_isSharedCheck_6850_ == 0) +{ +lean_object* v_unused_6851_; +v_unused_6851_ = lean_ctor_get(v_machine_6801_, 4); +lean_dec(v_unused_6851_); +v___x_6810_ = v_machine_6801_; +v_isShared_6811_ = v_isSharedCheck_6850_; +goto v_resetjp_6809_; +} +else +{ +lean_inc(v_instant_6806_); +lean_inc(v_events_6805_); +lean_inc(v_config_6804_); +lean_inc(v_writer_6802_); +lean_inc(v_reader_6803_); +lean_dec(v_machine_6801_); +v___x_6810_ = lean_box(0); +v_isShared_6811_ = v_isSharedCheck_6850_; +goto v_resetjp_6809_; +} +v_resetjp_6809_: +{ +lean_object* v_userData_6812_; lean_object* v_outputData_6813_; lean_object* v_knownSize_6814_; lean_object* v_messageHead_6815_; uint8_t v_sentMessage_6816_; uint8_t v_omitBody_6817_; lean_object* v_userDataBytes_6818_; lean_object* v___x_6820_; uint8_t v_isShared_6821_; uint8_t v_isSharedCheck_6848_; +v_userData_6812_ = lean_ctor_get(v_writer_6802_, 0); +v_outputData_6813_ = lean_ctor_get(v_writer_6802_, 1); +v_knownSize_6814_ = lean_ctor_get(v_writer_6802_, 3); +v_messageHead_6815_ = lean_ctor_get(v_writer_6802_, 4); +v_sentMessage_6816_ = lean_ctor_get_uint8(v_writer_6802_, sizeof(void*)*6); +v_omitBody_6817_ = lean_ctor_get_uint8(v_writer_6802_, sizeof(void*)*6 + 2); +v_userDataBytes_6818_ = lean_ctor_get(v_writer_6802_, 5); +v_isSharedCheck_6848_ = !lean_is_exclusive(v_writer_6802_); +if (v_isSharedCheck_6848_ == 0) +{ +lean_object* v_unused_6849_; +v_unused_6849_ = lean_ctor_get(v_writer_6802_, 2); +lean_dec(v_unused_6849_); +v___x_6820_ = v_writer_6802_; +v_isShared_6821_ = v_isSharedCheck_6848_; +goto v_resetjp_6819_; +} +else +{ +lean_inc(v_userDataBytes_6818_); +lean_inc(v_messageHead_6815_); +lean_inc(v_knownSize_6814_); +lean_inc(v_outputData_6813_); +lean_inc(v_userData_6812_); +lean_dec(v_writer_6802_); +v___x_6820_ = lean_box(0); +v_isShared_6821_ = v_isSharedCheck_6848_; +goto v_resetjp_6819_; +} +v_resetjp_6819_: +{ +lean_object* v_input_6822_; lean_object* v_messageHead_6823_; lean_object* v_messageCount_6824_; lean_object* v_bodyBytesRead_6825_; lean_object* v_headerBytesRead_6826_; lean_object* v___x_6828_; uint8_t v_isShared_6829_; uint8_t v_isSharedCheck_6846_; +v_input_6822_ = lean_ctor_get(v_reader_6803_, 1); +v_messageHead_6823_ = lean_ctor_get(v_reader_6803_, 2); +v_messageCount_6824_ = lean_ctor_get(v_reader_6803_, 3); +v_bodyBytesRead_6825_ = lean_ctor_get(v_reader_6803_, 4); +v_headerBytesRead_6826_ = lean_ctor_get(v_reader_6803_, 5); +v_isSharedCheck_6846_ = !lean_is_exclusive(v_reader_6803_); +if (v_isSharedCheck_6846_ == 0) +{ +lean_object* v_unused_6847_; +v_unused_6847_ = lean_ctor_get(v_reader_6803_, 0); +lean_dec(v_unused_6847_); +v___x_6828_ = v_reader_6803_; +v_isShared_6829_ = v_isSharedCheck_6846_; +goto v_resetjp_6827_; +} +else +{ +lean_inc(v_headerBytesRead_6826_); +lean_inc(v_bodyBytesRead_6825_); +lean_inc(v_messageCount_6824_); +lean_inc(v_messageHead_6823_); +lean_inc(v_input_6822_); +lean_dec(v_reader_6803_); +v___x_6828_ = lean_box(0); +v_isShared_6829_ = v_isSharedCheck_6846_; +goto v_resetjp_6827_; +} +v_resetjp_6827_: +{ +lean_object* v___x_6830_; uint8_t v___x_6831_; lean_object* v___x_6832_; uint8_t v___x_6833_; lean_object* v___x_6835_; +v___x_6830_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_6831_ = 0; +v___x_6832_ = lean_box(7); +v___x_6833_ = 1; +if (v_isShared_6821_ == 0) +{ +lean_ctor_set(v___x_6820_, 2, v___x_6832_); +v___x_6835_ = v___x_6820_; +goto v_reusejp_6834_; +} +else +{ +lean_object* v_reuseFailAlloc_6845_; +v_reuseFailAlloc_6845_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6845_, 0, v_userData_6812_); +lean_ctor_set(v_reuseFailAlloc_6845_, 1, v_outputData_6813_); +lean_ctor_set(v_reuseFailAlloc_6845_, 2, v___x_6832_); +lean_ctor_set(v_reuseFailAlloc_6845_, 3, v_knownSize_6814_); +lean_ctor_set(v_reuseFailAlloc_6845_, 4, v_messageHead_6815_); +lean_ctor_set(v_reuseFailAlloc_6845_, 5, v_userDataBytes_6818_); +lean_ctor_set_uint8(v_reuseFailAlloc_6845_, sizeof(void*)*6, v_sentMessage_6816_); +lean_ctor_set_uint8(v_reuseFailAlloc_6845_, sizeof(void*)*6 + 2, v_omitBody_6817_); +v___x_6835_ = v_reuseFailAlloc_6845_; +goto v_reusejp_6834_; +} +v_reusejp_6834_: +{ +lean_object* v___x_6836_; lean_object* v___x_6838_; +lean_ctor_set_uint8(v___x_6835_, sizeof(void*)*6 + 1, v___x_6833_); +v___x_6836_ = lean_box(6); +if (v_isShared_6829_ == 0) +{ +lean_ctor_set(v___x_6828_, 0, v___x_6836_); +v___x_6838_ = v___x_6828_; +goto v_reusejp_6837_; +} +else +{ +lean_object* v_reuseFailAlloc_6844_; +v_reuseFailAlloc_6844_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_6844_, 0, v___x_6836_); +lean_ctor_set(v_reuseFailAlloc_6844_, 1, v_input_6822_); +lean_ctor_set(v_reuseFailAlloc_6844_, 2, v_messageHead_6823_); +lean_ctor_set(v_reuseFailAlloc_6844_, 3, v_messageCount_6824_); +lean_ctor_set(v_reuseFailAlloc_6844_, 4, v_bodyBytesRead_6825_); +lean_ctor_set(v_reuseFailAlloc_6844_, 5, v_headerBytesRead_6826_); +v___x_6838_ = v_reuseFailAlloc_6844_; +goto v_reusejp_6837_; +} +v_reusejp_6837_: +{ +lean_object* v___x_6839_; lean_object* v___x_6840_; lean_object* v___x_6842_; +lean_ctor_set_uint8(v___x_6838_, sizeof(void*)*6, v___x_6833_); +v___x_6839_ = lean_box(3); +v___x_6840_ = lean_array_push(v_events_6805_, v___x_6839_); +if (v_isShared_6811_ == 0) +{ +lean_ctor_set(v___x_6810_, 4, v___x_6830_); +lean_ctor_set(v___x_6810_, 3, v___x_6840_); +lean_ctor_set(v___x_6810_, 1, v___x_6835_); +lean_ctor_set(v___x_6810_, 0, v___x_6838_); +v___x_6842_ = v___x_6810_; +goto v_reusejp_6841_; +} +else +{ +lean_object* v_reuseFailAlloc_6843_; +v_reuseFailAlloc_6843_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6843_, 0, v___x_6838_); +lean_ctor_set(v_reuseFailAlloc_6843_, 1, v___x_6835_); +lean_ctor_set(v_reuseFailAlloc_6843_, 2, v_config_6804_); +lean_ctor_set(v_reuseFailAlloc_6843_, 3, v___x_6840_); +lean_ctor_set(v_reuseFailAlloc_6843_, 4, v___x_6830_); +lean_ctor_set(v_reuseFailAlloc_6843_, 5, v_instant_6806_); +lean_ctor_set_uint8(v_reuseFailAlloc_6843_, sizeof(void*)*6 + 1, v_forcedFlush_6807_); +lean_ctor_set_uint8(v_reuseFailAlloc_6843_, sizeof(void*)*6 + 2, v_pullBodyStalled_6808_); +v___x_6842_ = v_reuseFailAlloc_6843_; +goto v_reusejp_6841_; +} +v_reusejp_6841_: +{ +lean_ctor_set_uint8(v___x_6842_, sizeof(void*)*6, v___x_6831_); +return v___x_6842_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage(uint8_t v_dir_6852_, lean_object* v_machine_6853_){ +_start: +{ +lean_object* v_writer_6854_; lean_object* v_reader_6855_; lean_object* v_config_6856_; lean_object* v_events_6857_; lean_object* v_instant_6858_; uint8_t v_forcedFlush_6859_; uint8_t v_pullBodyStalled_6860_; lean_object* v___x_6862_; uint8_t v_isShared_6863_; uint8_t v_isSharedCheck_6902_; +v_writer_6854_ = lean_ctor_get(v_machine_6853_, 1); +v_reader_6855_ = lean_ctor_get(v_machine_6853_, 0); +v_config_6856_ = lean_ctor_get(v_machine_6853_, 2); +v_events_6857_ = lean_ctor_get(v_machine_6853_, 3); +v_instant_6858_ = lean_ctor_get(v_machine_6853_, 5); +v_forcedFlush_6859_ = lean_ctor_get_uint8(v_machine_6853_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6860_ = lean_ctor_get_uint8(v_machine_6853_, sizeof(void*)*6 + 2); +v_isSharedCheck_6902_ = !lean_is_exclusive(v_machine_6853_); +if (v_isSharedCheck_6902_ == 0) +{ +lean_object* v_unused_6903_; +v_unused_6903_ = lean_ctor_get(v_machine_6853_, 4); +lean_dec(v_unused_6903_); +v___x_6862_ = v_machine_6853_; +v_isShared_6863_ = v_isSharedCheck_6902_; +goto v_resetjp_6861_; +} +else +{ +lean_inc(v_instant_6858_); +lean_inc(v_events_6857_); +lean_inc(v_config_6856_); +lean_inc(v_writer_6854_); +lean_inc(v_reader_6855_); +lean_dec(v_machine_6853_); +v___x_6862_ = lean_box(0); +v_isShared_6863_ = v_isSharedCheck_6902_; +goto v_resetjp_6861_; +} +v_resetjp_6861_: +{ +lean_object* v_userData_6864_; lean_object* v_outputData_6865_; lean_object* v_knownSize_6866_; lean_object* v_messageHead_6867_; uint8_t v_sentMessage_6868_; uint8_t v_omitBody_6869_; lean_object* v_userDataBytes_6870_; lean_object* v___x_6872_; uint8_t v_isShared_6873_; uint8_t v_isSharedCheck_6900_; +v_userData_6864_ = lean_ctor_get(v_writer_6854_, 0); +v_outputData_6865_ = lean_ctor_get(v_writer_6854_, 1); +v_knownSize_6866_ = lean_ctor_get(v_writer_6854_, 3); +v_messageHead_6867_ = lean_ctor_get(v_writer_6854_, 4); +v_sentMessage_6868_ = lean_ctor_get_uint8(v_writer_6854_, sizeof(void*)*6); +v_omitBody_6869_ = lean_ctor_get_uint8(v_writer_6854_, sizeof(void*)*6 + 2); +v_userDataBytes_6870_ = lean_ctor_get(v_writer_6854_, 5); +v_isSharedCheck_6900_ = !lean_is_exclusive(v_writer_6854_); +if (v_isSharedCheck_6900_ == 0) +{ +lean_object* v_unused_6901_; +v_unused_6901_ = lean_ctor_get(v_writer_6854_, 2); +lean_dec(v_unused_6901_); +v___x_6872_ = v_writer_6854_; +v_isShared_6873_ = v_isSharedCheck_6900_; +goto v_resetjp_6871_; +} +else +{ +lean_inc(v_userDataBytes_6870_); +lean_inc(v_messageHead_6867_); +lean_inc(v_knownSize_6866_); +lean_inc(v_outputData_6865_); +lean_inc(v_userData_6864_); +lean_dec(v_writer_6854_); +v___x_6872_ = lean_box(0); +v_isShared_6873_ = v_isSharedCheck_6900_; +goto v_resetjp_6871_; +} +v_resetjp_6871_: +{ +lean_object* v_input_6874_; lean_object* v_messageHead_6875_; lean_object* v_messageCount_6876_; lean_object* v_bodyBytesRead_6877_; lean_object* v_headerBytesRead_6878_; lean_object* v___x_6880_; uint8_t v_isShared_6881_; uint8_t v_isSharedCheck_6898_; +v_input_6874_ = lean_ctor_get(v_reader_6855_, 1); +v_messageHead_6875_ = lean_ctor_get(v_reader_6855_, 2); +v_messageCount_6876_ = lean_ctor_get(v_reader_6855_, 3); +v_bodyBytesRead_6877_ = lean_ctor_get(v_reader_6855_, 4); +v_headerBytesRead_6878_ = lean_ctor_get(v_reader_6855_, 5); +v_isSharedCheck_6898_ = !lean_is_exclusive(v_reader_6855_); +if (v_isSharedCheck_6898_ == 0) +{ +lean_object* v_unused_6899_; +v_unused_6899_ = lean_ctor_get(v_reader_6855_, 0); +lean_dec(v_unused_6899_); +v___x_6880_ = v_reader_6855_; +v_isShared_6881_ = v_isSharedCheck_6898_; +goto v_resetjp_6879_; +} +else +{ +lean_inc(v_headerBytesRead_6878_); +lean_inc(v_bodyBytesRead_6877_); +lean_inc(v_messageCount_6876_); +lean_inc(v_messageHead_6875_); +lean_inc(v_input_6874_); +lean_dec(v_reader_6855_); +v___x_6880_ = lean_box(0); +v_isShared_6881_ = v_isSharedCheck_6898_; +goto v_resetjp_6879_; +} +v_resetjp_6879_: +{ +lean_object* v___x_6882_; uint8_t v___x_6883_; lean_object* v___x_6884_; uint8_t v___x_6885_; lean_object* v___x_6887_; +v___x_6882_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_6883_ = 0; +v___x_6884_ = lean_box(7); +v___x_6885_ = 1; +if (v_isShared_6873_ == 0) +{ +lean_ctor_set(v___x_6872_, 2, v___x_6884_); +v___x_6887_ = v___x_6872_; +goto v_reusejp_6886_; +} +else +{ +lean_object* v_reuseFailAlloc_6897_; +v_reuseFailAlloc_6897_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6897_, 0, v_userData_6864_); +lean_ctor_set(v_reuseFailAlloc_6897_, 1, v_outputData_6865_); +lean_ctor_set(v_reuseFailAlloc_6897_, 2, v___x_6884_); +lean_ctor_set(v_reuseFailAlloc_6897_, 3, v_knownSize_6866_); +lean_ctor_set(v_reuseFailAlloc_6897_, 4, v_messageHead_6867_); +lean_ctor_set(v_reuseFailAlloc_6897_, 5, v_userDataBytes_6870_); +lean_ctor_set_uint8(v_reuseFailAlloc_6897_, sizeof(void*)*6, v_sentMessage_6868_); +lean_ctor_set_uint8(v_reuseFailAlloc_6897_, sizeof(void*)*6 + 2, v_omitBody_6869_); +v___x_6887_ = v_reuseFailAlloc_6897_; +goto v_reusejp_6886_; +} +v_reusejp_6886_: +{ +lean_object* v___x_6888_; lean_object* v___x_6890_; +lean_ctor_set_uint8(v___x_6887_, sizeof(void*)*6 + 1, v___x_6885_); +v___x_6888_ = lean_box(6); +if (v_isShared_6881_ == 0) +{ +lean_ctor_set(v___x_6880_, 0, v___x_6888_); +v___x_6890_ = v___x_6880_; +goto v_reusejp_6889_; +} +else +{ +lean_object* v_reuseFailAlloc_6896_; +v_reuseFailAlloc_6896_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_6896_, 0, v___x_6888_); +lean_ctor_set(v_reuseFailAlloc_6896_, 1, v_input_6874_); +lean_ctor_set(v_reuseFailAlloc_6896_, 2, v_messageHead_6875_); +lean_ctor_set(v_reuseFailAlloc_6896_, 3, v_messageCount_6876_); +lean_ctor_set(v_reuseFailAlloc_6896_, 4, v_bodyBytesRead_6877_); +lean_ctor_set(v_reuseFailAlloc_6896_, 5, v_headerBytesRead_6878_); +v___x_6890_ = v_reuseFailAlloc_6896_; +goto v_reusejp_6889_; +} +v_reusejp_6889_: +{ +lean_object* v___x_6891_; lean_object* v___x_6892_; lean_object* v___x_6894_; +lean_ctor_set_uint8(v___x_6890_, sizeof(void*)*6, v___x_6885_); +v___x_6891_ = lean_box(3); +v___x_6892_ = lean_array_push(v_events_6857_, v___x_6891_); +if (v_isShared_6863_ == 0) +{ +lean_ctor_set(v___x_6862_, 4, v___x_6882_); +lean_ctor_set(v___x_6862_, 3, v___x_6892_); +lean_ctor_set(v___x_6862_, 1, v___x_6887_); +lean_ctor_set(v___x_6862_, 0, v___x_6890_); +v___x_6894_ = v___x_6862_; +goto v_reusejp_6893_; +} +else +{ +lean_object* v_reuseFailAlloc_6895_; +v_reuseFailAlloc_6895_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6895_, 0, v___x_6890_); +lean_ctor_set(v_reuseFailAlloc_6895_, 1, v___x_6887_); +lean_ctor_set(v_reuseFailAlloc_6895_, 2, v_config_6856_); +lean_ctor_set(v_reuseFailAlloc_6895_, 3, v___x_6892_); +lean_ctor_set(v_reuseFailAlloc_6895_, 4, v___x_6882_); +lean_ctor_set(v_reuseFailAlloc_6895_, 5, v_instant_6858_); +lean_ctor_set_uint8(v_reuseFailAlloc_6895_, sizeof(void*)*6 + 1, v_forcedFlush_6859_); +lean_ctor_set_uint8(v_reuseFailAlloc_6895_, sizeof(void*)*6 + 2, v_pullBodyStalled_6860_); +v___x_6894_ = v_reuseFailAlloc_6895_; +goto v_reusejp_6893_; +} +v_reusejp_6893_: +{ +lean_ctor_set_uint8(v___x_6894_, sizeof(void*)*6, v___x_6883_); +return v___x_6894_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage___boxed(lean_object* v_dir_6904_, lean_object* v_machine_6905_){ +_start: +{ +uint8_t v_dir_boxed_6906_; lean_object* v_res_6907_; +v_dir_boxed_6906_ = lean_unbox(v_dir_6904_); +v_res_6907_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_closeOnBadMessage(v_dir_boxed_6906_, v_machine_6905_); +return v_res_6907_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg(lean_object* v_writer_6908_){ +_start: +{ +lean_object* v_userDataBytes_6909_; +v_userDataBytes_6909_ = lean_ctor_get(v_writer_6908_, 5); +lean_inc(v_userDataBytes_6909_); +return v_userDataBytes_6909_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg___boxed(lean_object* v_writer_6910_){ +_start: +{ +lean_object* v_res_6911_; +v_res_6911_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___redArg(v_writer_6910_); +lean_dec_ref(v_writer_6910_); +return v_res_6911_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes(uint8_t v_dir_6912_, lean_object* v_writer_6913_){ +_start: +{ +lean_object* v_userDataBytes_6914_; +v_userDataBytes_6914_ = lean_ctor_get(v_writer_6913_, 5); +lean_inc(v_userDataBytes_6914_); +return v_userDataBytes_6914_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes___boxed(lean_object* v_dir_6915_, lean_object* v_writer_6916_){ +_start: +{ +uint8_t v_dir_boxed_6917_; lean_object* v_res_6918_; +v_dir_boxed_6917_ = lean_unbox(v_dir_6915_); +v_res_6918_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bufferedUserDataBytes(v_dir_boxed_6917_, v_writer_6916_); +lean_dec_ref(v_writer_6916_); +return v_res_6918_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(uint8_t v_dir_6919_, lean_object* v_machine_6920_){ +_start: +{ +lean_object* v_reader_6921_; lean_object* v_writer_6922_; lean_object* v_config_6923_; lean_object* v_events_6924_; lean_object* v_error_6925_; lean_object* v_instant_6926_; uint8_t v_keepAlive_6927_; uint8_t v_forcedFlush_6928_; uint8_t v_pullBodyStalled_6929_; lean_object* v_state_6963_; +v_reader_6921_ = lean_ctor_get(v_machine_6920_, 0); +v_writer_6922_ = lean_ctor_get(v_machine_6920_, 1); +lean_inc_ref(v_writer_6922_); +v_config_6923_ = lean_ctor_get(v_machine_6920_, 2); +v_events_6924_ = lean_ctor_get(v_machine_6920_, 3); +v_error_6925_ = lean_ctor_get(v_machine_6920_, 4); +v_instant_6926_ = lean_ctor_get(v_machine_6920_, 5); +v_keepAlive_6927_ = lean_ctor_get_uint8(v_machine_6920_, sizeof(void*)*6); +v_forcedFlush_6928_ = lean_ctor_get_uint8(v_machine_6920_, sizeof(void*)*6 + 1); +v_pullBodyStalled_6929_ = lean_ctor_get_uint8(v_machine_6920_, sizeof(void*)*6 + 2); +v_state_6963_ = lean_ctor_get(v_reader_6921_, 0); +if (lean_obj_tag(v_state_6963_) == 5) +{ +if (v_keepAlive_6927_ == 0) +{ +lean_object* v___x_6965_; uint8_t v_isShared_6966_; uint8_t v_isSharedCheck_6989_; +lean_inc(v_instant_6926_); +lean_inc(v_error_6925_); +lean_inc_ref(v_events_6924_); +lean_inc_ref(v_config_6923_); +lean_inc_ref(v_reader_6921_); +v_isSharedCheck_6989_ = !lean_is_exclusive(v_machine_6920_); +if (v_isSharedCheck_6989_ == 0) +{ +lean_object* v_unused_6990_; lean_object* v_unused_6991_; lean_object* v_unused_6992_; lean_object* v_unused_6993_; lean_object* v_unused_6994_; lean_object* v_unused_6995_; +v_unused_6990_ = lean_ctor_get(v_machine_6920_, 5); +lean_dec(v_unused_6990_); +v_unused_6991_ = lean_ctor_get(v_machine_6920_, 4); +lean_dec(v_unused_6991_); +v_unused_6992_ = lean_ctor_get(v_machine_6920_, 3); +lean_dec(v_unused_6992_); +v_unused_6993_ = lean_ctor_get(v_machine_6920_, 2); +lean_dec(v_unused_6993_); +v_unused_6994_ = lean_ctor_get(v_machine_6920_, 1); +lean_dec(v_unused_6994_); +v_unused_6995_ = lean_ctor_get(v_machine_6920_, 0); +lean_dec(v_unused_6995_); +v___x_6965_ = v_machine_6920_; +v_isShared_6966_ = v_isSharedCheck_6989_; +goto v_resetjp_6964_; +} +else +{ +lean_dec(v_machine_6920_); +v___x_6965_ = lean_box(0); +v_isShared_6966_ = v_isSharedCheck_6989_; +goto v_resetjp_6964_; +} +v_resetjp_6964_: +{ +lean_object* v_userData_6967_; lean_object* v_outputData_6968_; lean_object* v_knownSize_6969_; lean_object* v_messageHead_6970_; uint8_t v_sentMessage_6971_; uint8_t v_userClosedBody_6972_; uint8_t v_omitBody_6973_; lean_object* v_userDataBytes_6974_; lean_object* v___x_6976_; uint8_t v_isShared_6977_; uint8_t v_isSharedCheck_6987_; +v_userData_6967_ = lean_ctor_get(v_writer_6922_, 0); +v_outputData_6968_ = lean_ctor_get(v_writer_6922_, 1); +v_knownSize_6969_ = lean_ctor_get(v_writer_6922_, 3); +v_messageHead_6970_ = lean_ctor_get(v_writer_6922_, 4); +v_sentMessage_6971_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6); +v_userClosedBody_6972_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 1); +v_omitBody_6973_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 2); +v_userDataBytes_6974_ = lean_ctor_get(v_writer_6922_, 5); +v_isSharedCheck_6987_ = !lean_is_exclusive(v_writer_6922_); +if (v_isSharedCheck_6987_ == 0) +{ +lean_object* v_unused_6988_; +v_unused_6988_ = lean_ctor_get(v_writer_6922_, 2); +lean_dec(v_unused_6988_); +v___x_6976_ = v_writer_6922_; +v_isShared_6977_ = v_isSharedCheck_6987_; +goto v_resetjp_6975_; +} +else +{ +lean_inc(v_userDataBytes_6974_); +lean_inc(v_messageHead_6970_); +lean_inc(v_knownSize_6969_); +lean_inc(v_outputData_6968_); +lean_inc(v_userData_6967_); +lean_dec(v_writer_6922_); +v___x_6976_ = lean_box(0); +v_isShared_6977_ = v_isSharedCheck_6987_; +goto v_resetjp_6975_; +} +v_resetjp_6975_: +{ +lean_object* v___x_6978_; lean_object* v___x_6980_; +v___x_6978_ = lean_box(7); +if (v_isShared_6977_ == 0) +{ +lean_ctor_set(v___x_6976_, 2, v___x_6978_); +v___x_6980_ = v___x_6976_; +goto v_reusejp_6979_; +} +else +{ +lean_object* v_reuseFailAlloc_6986_; +v_reuseFailAlloc_6986_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6986_, 0, v_userData_6967_); +lean_ctor_set(v_reuseFailAlloc_6986_, 1, v_outputData_6968_); +lean_ctor_set(v_reuseFailAlloc_6986_, 2, v___x_6978_); +lean_ctor_set(v_reuseFailAlloc_6986_, 3, v_knownSize_6969_); +lean_ctor_set(v_reuseFailAlloc_6986_, 4, v_messageHead_6970_); +lean_ctor_set(v_reuseFailAlloc_6986_, 5, v_userDataBytes_6974_); +lean_ctor_set_uint8(v_reuseFailAlloc_6986_, sizeof(void*)*6, v_sentMessage_6971_); +lean_ctor_set_uint8(v_reuseFailAlloc_6986_, sizeof(void*)*6 + 1, v_userClosedBody_6972_); +lean_ctor_set_uint8(v_reuseFailAlloc_6986_, sizeof(void*)*6 + 2, v_omitBody_6973_); +v___x_6980_ = v_reuseFailAlloc_6986_; +goto v_reusejp_6979_; +} +v_reusejp_6979_: +{ +lean_object* v___x_6981_; lean_object* v___x_6982_; lean_object* v___x_6984_; +v___x_6981_ = lean_box(3); +v___x_6982_ = lean_array_push(v_events_6924_, v___x_6981_); +if (v_isShared_6966_ == 0) +{ +lean_ctor_set(v___x_6965_, 3, v___x_6982_); +lean_ctor_set(v___x_6965_, 1, v___x_6980_); +v___x_6984_ = v___x_6965_; +goto v_reusejp_6983_; +} +else +{ +lean_object* v_reuseFailAlloc_6985_; +v_reuseFailAlloc_6985_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6985_, 0, v_reader_6921_); +lean_ctor_set(v_reuseFailAlloc_6985_, 1, v___x_6980_); +lean_ctor_set(v_reuseFailAlloc_6985_, 2, v_config_6923_); +lean_ctor_set(v_reuseFailAlloc_6985_, 3, v___x_6982_); +lean_ctor_set(v_reuseFailAlloc_6985_, 4, v_error_6925_); +lean_ctor_set(v_reuseFailAlloc_6985_, 5, v_instant_6926_); +lean_ctor_set_uint8(v_reuseFailAlloc_6985_, sizeof(void*)*6, v_keepAlive_6927_); +lean_ctor_set_uint8(v_reuseFailAlloc_6985_, sizeof(void*)*6 + 1, v_forcedFlush_6928_); +lean_ctor_set_uint8(v_reuseFailAlloc_6985_, sizeof(void*)*6 + 2, v_pullBodyStalled_6929_); +v___x_6984_ = v_reuseFailAlloc_6985_; +goto v_reusejp_6983_; +} +v_reusejp_6983_: +{ +return v___x_6984_; +} +} +} +} +} +else +{ +lean_object* v___x_6996_; +lean_dec_ref(v_writer_6922_); +v___x_6996_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_resetForNextMessage(v_dir_6919_, v_machine_6920_); +return v___x_6996_; +} +} +else +{ +if (lean_obj_tag(v_state_6963_) == 6) +{ +lean_object* v___x_6998_; uint8_t v_isShared_6999_; uint8_t v_isSharedCheck_7022_; +lean_inc(v_instant_6926_); +lean_inc(v_error_6925_); +lean_inc_ref(v_events_6924_); +lean_inc_ref(v_config_6923_); +lean_inc_ref(v_reader_6921_); +v_isSharedCheck_7022_ = !lean_is_exclusive(v_machine_6920_); +if (v_isSharedCheck_7022_ == 0) +{ +lean_object* v_unused_7023_; lean_object* v_unused_7024_; lean_object* v_unused_7025_; lean_object* v_unused_7026_; lean_object* v_unused_7027_; lean_object* v_unused_7028_; +v_unused_7023_ = lean_ctor_get(v_machine_6920_, 5); +lean_dec(v_unused_7023_); +v_unused_7024_ = lean_ctor_get(v_machine_6920_, 4); +lean_dec(v_unused_7024_); +v_unused_7025_ = lean_ctor_get(v_machine_6920_, 3); +lean_dec(v_unused_7025_); +v_unused_7026_ = lean_ctor_get(v_machine_6920_, 2); +lean_dec(v_unused_7026_); +v_unused_7027_ = lean_ctor_get(v_machine_6920_, 1); +lean_dec(v_unused_7027_); +v_unused_7028_ = lean_ctor_get(v_machine_6920_, 0); +lean_dec(v_unused_7028_); +v___x_6998_ = v_machine_6920_; +v_isShared_6999_ = v_isSharedCheck_7022_; +goto v_resetjp_6997_; +} +else +{ +lean_dec(v_machine_6920_); +v___x_6998_ = lean_box(0); +v_isShared_6999_ = v_isSharedCheck_7022_; +goto v_resetjp_6997_; +} +v_resetjp_6997_: +{ +lean_object* v_userData_7000_; lean_object* v_outputData_7001_; lean_object* v_knownSize_7002_; lean_object* v_messageHead_7003_; uint8_t v_sentMessage_7004_; uint8_t v_userClosedBody_7005_; uint8_t v_omitBody_7006_; lean_object* v_userDataBytes_7007_; lean_object* v___x_7009_; uint8_t v_isShared_7010_; uint8_t v_isSharedCheck_7020_; +v_userData_7000_ = lean_ctor_get(v_writer_6922_, 0); +v_outputData_7001_ = lean_ctor_get(v_writer_6922_, 1); +v_knownSize_7002_ = lean_ctor_get(v_writer_6922_, 3); +v_messageHead_7003_ = lean_ctor_get(v_writer_6922_, 4); +v_sentMessage_7004_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6); +v_userClosedBody_7005_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 1); +v_omitBody_7006_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 2); +v_userDataBytes_7007_ = lean_ctor_get(v_writer_6922_, 5); +v_isSharedCheck_7020_ = !lean_is_exclusive(v_writer_6922_); +if (v_isSharedCheck_7020_ == 0) +{ +lean_object* v_unused_7021_; +v_unused_7021_ = lean_ctor_get(v_writer_6922_, 2); +lean_dec(v_unused_7021_); +v___x_7009_ = v_writer_6922_; +v_isShared_7010_ = v_isSharedCheck_7020_; +goto v_resetjp_7008_; +} +else +{ +lean_inc(v_userDataBytes_7007_); +lean_inc(v_messageHead_7003_); +lean_inc(v_knownSize_7002_); +lean_inc(v_outputData_7001_); +lean_inc(v_userData_7000_); +lean_dec(v_writer_6922_); +v___x_7009_ = lean_box(0); +v_isShared_7010_ = v_isSharedCheck_7020_; +goto v_resetjp_7008_; +} +v_resetjp_7008_: +{ +lean_object* v___x_7011_; lean_object* v___x_7013_; +v___x_7011_ = lean_box(7); +if (v_isShared_7010_ == 0) +{ +lean_ctor_set(v___x_7009_, 2, v___x_7011_); +v___x_7013_ = v___x_7009_; +goto v_reusejp_7012_; +} +else +{ +lean_object* v_reuseFailAlloc_7019_; +v_reuseFailAlloc_7019_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7019_, 0, v_userData_7000_); +lean_ctor_set(v_reuseFailAlloc_7019_, 1, v_outputData_7001_); +lean_ctor_set(v_reuseFailAlloc_7019_, 2, v___x_7011_); +lean_ctor_set(v_reuseFailAlloc_7019_, 3, v_knownSize_7002_); +lean_ctor_set(v_reuseFailAlloc_7019_, 4, v_messageHead_7003_); +lean_ctor_set(v_reuseFailAlloc_7019_, 5, v_userDataBytes_7007_); +lean_ctor_set_uint8(v_reuseFailAlloc_7019_, sizeof(void*)*6, v_sentMessage_7004_); +lean_ctor_set_uint8(v_reuseFailAlloc_7019_, sizeof(void*)*6 + 1, v_userClosedBody_7005_); +lean_ctor_set_uint8(v_reuseFailAlloc_7019_, sizeof(void*)*6 + 2, v_omitBody_7006_); +v___x_7013_ = v_reuseFailAlloc_7019_; +goto v_reusejp_7012_; +} +v_reusejp_7012_: +{ +lean_object* v___x_7014_; lean_object* v___x_7015_; lean_object* v___x_7017_; +v___x_7014_ = lean_box(3); +v___x_7015_ = lean_array_push(v_events_6924_, v___x_7014_); +if (v_isShared_6999_ == 0) +{ +lean_ctor_set(v___x_6998_, 3, v___x_7015_); +lean_ctor_set(v___x_6998_, 1, v___x_7013_); +v___x_7017_ = v___x_6998_; +goto v_reusejp_7016_; +} +else +{ +lean_object* v_reuseFailAlloc_7018_; +v_reuseFailAlloc_7018_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7018_, 0, v_reader_6921_); +lean_ctor_set(v_reuseFailAlloc_7018_, 1, v___x_7013_); +lean_ctor_set(v_reuseFailAlloc_7018_, 2, v_config_6923_); +lean_ctor_set(v_reuseFailAlloc_7018_, 3, v___x_7015_); +lean_ctor_set(v_reuseFailAlloc_7018_, 4, v_error_6925_); +lean_ctor_set(v_reuseFailAlloc_7018_, 5, v_instant_6926_); +lean_ctor_set_uint8(v_reuseFailAlloc_7018_, sizeof(void*)*6, v_keepAlive_6927_); +lean_ctor_set_uint8(v_reuseFailAlloc_7018_, sizeof(void*)*6 + 1, v_forcedFlush_6928_); +lean_ctor_set_uint8(v_reuseFailAlloc_7018_, sizeof(void*)*6 + 2, v_pullBodyStalled_6929_); +v___x_7017_ = v_reuseFailAlloc_7018_; +goto v_reusejp_7016_; +} +v_reusejp_7016_: +{ +return v___x_7017_; +} +} +} +} +} +else +{ +if (v_dir_6919_ == 0) +{ +if (lean_obj_tag(v_state_6963_) == 3) +{ +lean_object* v___x_7030_; uint8_t v_isShared_7031_; uint8_t v_isSharedCheck_7054_; +lean_inc(v_instant_6926_); +lean_inc(v_error_6925_); +lean_inc_ref(v_events_6924_); +lean_inc_ref(v_config_6923_); +lean_inc_ref(v_reader_6921_); +v_isSharedCheck_7054_ = !lean_is_exclusive(v_machine_6920_); +if (v_isSharedCheck_7054_ == 0) +{ +lean_object* v_unused_7055_; lean_object* v_unused_7056_; lean_object* v_unused_7057_; lean_object* v_unused_7058_; lean_object* v_unused_7059_; lean_object* v_unused_7060_; +v_unused_7055_ = lean_ctor_get(v_machine_6920_, 5); +lean_dec(v_unused_7055_); +v_unused_7056_ = lean_ctor_get(v_machine_6920_, 4); +lean_dec(v_unused_7056_); +v_unused_7057_ = lean_ctor_get(v_machine_6920_, 3); +lean_dec(v_unused_7057_); +v_unused_7058_ = lean_ctor_get(v_machine_6920_, 2); +lean_dec(v_unused_7058_); +v_unused_7059_ = lean_ctor_get(v_machine_6920_, 1); +lean_dec(v_unused_7059_); +v_unused_7060_ = lean_ctor_get(v_machine_6920_, 0); +lean_dec(v_unused_7060_); +v___x_7030_ = v_machine_6920_; +v_isShared_7031_ = v_isSharedCheck_7054_; +goto v_resetjp_7029_; +} +else +{ +lean_dec(v_machine_6920_); +v___x_7030_ = lean_box(0); +v_isShared_7031_ = v_isSharedCheck_7054_; +goto v_resetjp_7029_; +} +v_resetjp_7029_: +{ +lean_object* v_userData_7032_; lean_object* v_outputData_7033_; lean_object* v_knownSize_7034_; lean_object* v_messageHead_7035_; uint8_t v_sentMessage_7036_; uint8_t v_userClosedBody_7037_; uint8_t v_omitBody_7038_; lean_object* v_userDataBytes_7039_; lean_object* v___x_7041_; uint8_t v_isShared_7042_; uint8_t v_isSharedCheck_7052_; +v_userData_7032_ = lean_ctor_get(v_writer_6922_, 0); +v_outputData_7033_ = lean_ctor_get(v_writer_6922_, 1); +v_knownSize_7034_ = lean_ctor_get(v_writer_6922_, 3); +v_messageHead_7035_ = lean_ctor_get(v_writer_6922_, 4); +v_sentMessage_7036_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6); +v_userClosedBody_7037_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 1); +v_omitBody_7038_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 2); +v_userDataBytes_7039_ = lean_ctor_get(v_writer_6922_, 5); +v_isSharedCheck_7052_ = !lean_is_exclusive(v_writer_6922_); +if (v_isSharedCheck_7052_ == 0) +{ +lean_object* v_unused_7053_; +v_unused_7053_ = lean_ctor_get(v_writer_6922_, 2); +lean_dec(v_unused_7053_); +v___x_7041_ = v_writer_6922_; +v_isShared_7042_ = v_isSharedCheck_7052_; +goto v_resetjp_7040_; +} +else +{ +lean_inc(v_userDataBytes_7039_); +lean_inc(v_messageHead_7035_); +lean_inc(v_knownSize_7034_); +lean_inc(v_outputData_7033_); +lean_inc(v_userData_7032_); +lean_dec(v_writer_6922_); +v___x_7041_ = lean_box(0); +v_isShared_7042_ = v_isSharedCheck_7052_; +goto v_resetjp_7040_; +} +v_resetjp_7040_: +{ +lean_object* v___x_7043_; lean_object* v___x_7045_; +v___x_7043_ = lean_box(7); +if (v_isShared_7042_ == 0) +{ +lean_ctor_set(v___x_7041_, 2, v___x_7043_); +v___x_7045_ = v___x_7041_; +goto v_reusejp_7044_; +} +else +{ +lean_object* v_reuseFailAlloc_7051_; +v_reuseFailAlloc_7051_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7051_, 0, v_userData_7032_); +lean_ctor_set(v_reuseFailAlloc_7051_, 1, v_outputData_7033_); +lean_ctor_set(v_reuseFailAlloc_7051_, 2, v___x_7043_); +lean_ctor_set(v_reuseFailAlloc_7051_, 3, v_knownSize_7034_); +lean_ctor_set(v_reuseFailAlloc_7051_, 4, v_messageHead_7035_); +lean_ctor_set(v_reuseFailAlloc_7051_, 5, v_userDataBytes_7039_); +lean_ctor_set_uint8(v_reuseFailAlloc_7051_, sizeof(void*)*6, v_sentMessage_7036_); +lean_ctor_set_uint8(v_reuseFailAlloc_7051_, sizeof(void*)*6 + 1, v_userClosedBody_7037_); +lean_ctor_set_uint8(v_reuseFailAlloc_7051_, sizeof(void*)*6 + 2, v_omitBody_7038_); +v___x_7045_ = v_reuseFailAlloc_7051_; +goto v_reusejp_7044_; +} +v_reusejp_7044_: +{ +lean_object* v___x_7046_; lean_object* v___x_7047_; lean_object* v___x_7049_; +v___x_7046_ = lean_box(3); +v___x_7047_ = lean_array_push(v_events_6924_, v___x_7046_); +if (v_isShared_7031_ == 0) +{ +lean_ctor_set(v___x_7030_, 3, v___x_7047_); +lean_ctor_set(v___x_7030_, 1, v___x_7045_); +v___x_7049_ = v___x_7030_; +goto v_reusejp_7048_; +} +else +{ +lean_object* v_reuseFailAlloc_7050_; +v_reuseFailAlloc_7050_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7050_, 0, v_reader_6921_); +lean_ctor_set(v_reuseFailAlloc_7050_, 1, v___x_7045_); +lean_ctor_set(v_reuseFailAlloc_7050_, 2, v_config_6923_); +lean_ctor_set(v_reuseFailAlloc_7050_, 3, v___x_7047_); +lean_ctor_set(v_reuseFailAlloc_7050_, 4, v_error_6925_); +lean_ctor_set(v_reuseFailAlloc_7050_, 5, v_instant_6926_); +lean_ctor_set_uint8(v_reuseFailAlloc_7050_, sizeof(void*)*6, v_keepAlive_6927_); +lean_ctor_set_uint8(v_reuseFailAlloc_7050_, sizeof(void*)*6 + 1, v_forcedFlush_6928_); +lean_ctor_set_uint8(v_reuseFailAlloc_7050_, sizeof(void*)*6 + 2, v_pullBodyStalled_6929_); +v___x_7049_ = v_reuseFailAlloc_7050_; +goto v_reusejp_7048_; +} +v_reusejp_7048_: +{ +return v___x_7049_; +} +} +} +} +} +else +{ +goto v___jp_6930_; +} +} +else +{ +goto v___jp_6930_; +} +} +} +v___jp_6930_: +{ +if (v_keepAlive_6927_ == 0) +{ +lean_object* v___x_6932_; uint8_t v_isShared_6933_; uint8_t v_isSharedCheck_6956_; +lean_inc(v_instant_6926_); +lean_inc(v_error_6925_); +lean_inc_ref(v_events_6924_); +lean_inc_ref(v_config_6923_); +lean_inc_ref(v_reader_6921_); +v_isSharedCheck_6956_ = !lean_is_exclusive(v_machine_6920_); +if (v_isSharedCheck_6956_ == 0) +{ +lean_object* v_unused_6957_; lean_object* v_unused_6958_; lean_object* v_unused_6959_; lean_object* v_unused_6960_; lean_object* v_unused_6961_; lean_object* v_unused_6962_; +v_unused_6957_ = lean_ctor_get(v_machine_6920_, 5); +lean_dec(v_unused_6957_); +v_unused_6958_ = lean_ctor_get(v_machine_6920_, 4); +lean_dec(v_unused_6958_); +v_unused_6959_ = lean_ctor_get(v_machine_6920_, 3); +lean_dec(v_unused_6959_); +v_unused_6960_ = lean_ctor_get(v_machine_6920_, 2); +lean_dec(v_unused_6960_); +v_unused_6961_ = lean_ctor_get(v_machine_6920_, 1); +lean_dec(v_unused_6961_); +v_unused_6962_ = lean_ctor_get(v_machine_6920_, 0); +lean_dec(v_unused_6962_); +v___x_6932_ = v_machine_6920_; +v_isShared_6933_ = v_isSharedCheck_6956_; +goto v_resetjp_6931_; +} +else +{ +lean_dec(v_machine_6920_); +v___x_6932_ = lean_box(0); +v_isShared_6933_ = v_isSharedCheck_6956_; +goto v_resetjp_6931_; +} +v_resetjp_6931_: +{ +lean_object* v_userData_6934_; lean_object* v_outputData_6935_; lean_object* v_knownSize_6936_; lean_object* v_messageHead_6937_; uint8_t v_sentMessage_6938_; uint8_t v_userClosedBody_6939_; uint8_t v_omitBody_6940_; lean_object* v_userDataBytes_6941_; lean_object* v___x_6943_; uint8_t v_isShared_6944_; uint8_t v_isSharedCheck_6954_; +v_userData_6934_ = lean_ctor_get(v_writer_6922_, 0); +v_outputData_6935_ = lean_ctor_get(v_writer_6922_, 1); +v_knownSize_6936_ = lean_ctor_get(v_writer_6922_, 3); +v_messageHead_6937_ = lean_ctor_get(v_writer_6922_, 4); +v_sentMessage_6938_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6); +v_userClosedBody_6939_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 1); +v_omitBody_6940_ = lean_ctor_get_uint8(v_writer_6922_, sizeof(void*)*6 + 2); +v_userDataBytes_6941_ = lean_ctor_get(v_writer_6922_, 5); +v_isSharedCheck_6954_ = !lean_is_exclusive(v_writer_6922_); +if (v_isSharedCheck_6954_ == 0) +{ +lean_object* v_unused_6955_; +v_unused_6955_ = lean_ctor_get(v_writer_6922_, 2); +lean_dec(v_unused_6955_); +v___x_6943_ = v_writer_6922_; +v_isShared_6944_ = v_isSharedCheck_6954_; +goto v_resetjp_6942_; +} +else +{ +lean_inc(v_userDataBytes_6941_); +lean_inc(v_messageHead_6937_); +lean_inc(v_knownSize_6936_); +lean_inc(v_outputData_6935_); +lean_inc(v_userData_6934_); +lean_dec(v_writer_6922_); +v___x_6943_ = lean_box(0); +v_isShared_6944_ = v_isSharedCheck_6954_; +goto v_resetjp_6942_; +} +v_resetjp_6942_: +{ +lean_object* v___x_6945_; lean_object* v___x_6947_; +v___x_6945_ = lean_box(7); +if (v_isShared_6944_ == 0) +{ +lean_ctor_set(v___x_6943_, 2, v___x_6945_); +v___x_6947_ = v___x_6943_; +goto v_reusejp_6946_; +} +else +{ +lean_object* v_reuseFailAlloc_6953_; +v_reuseFailAlloc_6953_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6953_, 0, v_userData_6934_); +lean_ctor_set(v_reuseFailAlloc_6953_, 1, v_outputData_6935_); +lean_ctor_set(v_reuseFailAlloc_6953_, 2, v___x_6945_); +lean_ctor_set(v_reuseFailAlloc_6953_, 3, v_knownSize_6936_); +lean_ctor_set(v_reuseFailAlloc_6953_, 4, v_messageHead_6937_); +lean_ctor_set(v_reuseFailAlloc_6953_, 5, v_userDataBytes_6941_); +lean_ctor_set_uint8(v_reuseFailAlloc_6953_, sizeof(void*)*6, v_sentMessage_6938_); +lean_ctor_set_uint8(v_reuseFailAlloc_6953_, sizeof(void*)*6 + 1, v_userClosedBody_6939_); +lean_ctor_set_uint8(v_reuseFailAlloc_6953_, sizeof(void*)*6 + 2, v_omitBody_6940_); +v___x_6947_ = v_reuseFailAlloc_6953_; +goto v_reusejp_6946_; +} +v_reusejp_6946_: +{ +lean_object* v___x_6948_; lean_object* v___x_6949_; lean_object* v___x_6951_; +v___x_6948_ = lean_box(3); +v___x_6949_ = lean_array_push(v_events_6924_, v___x_6948_); +if (v_isShared_6933_ == 0) +{ +lean_ctor_set(v___x_6932_, 3, v___x_6949_); +lean_ctor_set(v___x_6932_, 1, v___x_6947_); +v___x_6951_ = v___x_6932_; +goto v_reusejp_6950_; +} +else +{ +lean_object* v_reuseFailAlloc_6952_; +v_reuseFailAlloc_6952_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_6952_, 0, v_reader_6921_); +lean_ctor_set(v_reuseFailAlloc_6952_, 1, v___x_6947_); +lean_ctor_set(v_reuseFailAlloc_6952_, 2, v_config_6923_); +lean_ctor_set(v_reuseFailAlloc_6952_, 3, v___x_6949_); +lean_ctor_set(v_reuseFailAlloc_6952_, 4, v_error_6925_); +lean_ctor_set(v_reuseFailAlloc_6952_, 5, v_instant_6926_); +lean_ctor_set_uint8(v_reuseFailAlloc_6952_, sizeof(void*)*6, v_keepAlive_6927_); +lean_ctor_set_uint8(v_reuseFailAlloc_6952_, sizeof(void*)*6 + 1, v_forcedFlush_6928_); +lean_ctor_set_uint8(v_reuseFailAlloc_6952_, sizeof(void*)*6 + 2, v_pullBodyStalled_6929_); +v___x_6951_ = v_reuseFailAlloc_6952_; +goto v_reusejp_6950_; +} +v_reusejp_6950_: +{ +return v___x_6951_; +} +} +} +} +} +else +{ +lean_dec_ref(v_writer_6922_); +return v_machine_6920_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep___boxed(lean_object* v_dir_7061_, lean_object* v_machine_7062_){ +_start: +{ +uint8_t v_dir_boxed_7063_; lean_object* v_res_7064_; +v_dir_boxed_7063_ = lean_unbox(v_dir_7061_); +v_res_7064_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(v_dir_boxed_7063_, v_machine_7062_); +return v_res_7064_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___redArg(lean_object* v_machine_7065_){ +_start: +{ +lean_object* v_writer_7066_; uint8_t v_userClosedBody_7067_; +v_writer_7066_ = lean_ctor_get(v_machine_7065_, 1); +lean_inc_ref(v_writer_7066_); +v_userClosedBody_7067_ = lean_ctor_get_uint8(v_writer_7066_, sizeof(void*)*6 + 1); +if (v_userClosedBody_7067_ == 0) +{ +lean_dec_ref(v_writer_7066_); +return v_machine_7065_; +} +else +{ +lean_object* v_reader_7068_; lean_object* v_config_7069_; lean_object* v_events_7070_; lean_object* v_instant_7071_; uint8_t v_forcedFlush_7072_; uint8_t v_pullBodyStalled_7073_; lean_object* v___x_7075_; uint8_t v_isShared_7076_; uint8_t v_isSharedCheck_7114_; +v_reader_7068_ = lean_ctor_get(v_machine_7065_, 0); +v_config_7069_ = lean_ctor_get(v_machine_7065_, 2); +v_events_7070_ = lean_ctor_get(v_machine_7065_, 3); +v_instant_7071_ = lean_ctor_get(v_machine_7065_, 5); +v_forcedFlush_7072_ = lean_ctor_get_uint8(v_machine_7065_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7073_ = lean_ctor_get_uint8(v_machine_7065_, sizeof(void*)*6 + 2); +v_isSharedCheck_7114_ = !lean_is_exclusive(v_machine_7065_); +if (v_isSharedCheck_7114_ == 0) +{ +lean_object* v_unused_7115_; lean_object* v_unused_7116_; +v_unused_7115_ = lean_ctor_get(v_machine_7065_, 4); +lean_dec(v_unused_7115_); +v_unused_7116_ = lean_ctor_get(v_machine_7065_, 1); +lean_dec(v_unused_7116_); +v___x_7075_ = v_machine_7065_; +v_isShared_7076_ = v_isSharedCheck_7114_; +goto v_resetjp_7074_; +} +else +{ +lean_inc(v_instant_7071_); +lean_inc(v_events_7070_); +lean_inc(v_config_7069_); +lean_inc(v_reader_7068_); +lean_dec(v_machine_7065_); +v___x_7075_ = lean_box(0); +v_isShared_7076_ = v_isSharedCheck_7114_; +goto v_resetjp_7074_; +} +v_resetjp_7074_: +{ +lean_object* v_userData_7077_; lean_object* v_outputData_7078_; lean_object* v_knownSize_7079_; lean_object* v_messageHead_7080_; uint8_t v_sentMessage_7081_; uint8_t v_omitBody_7082_; lean_object* v_userDataBytes_7083_; lean_object* v___x_7085_; uint8_t v_isShared_7086_; uint8_t v_isSharedCheck_7112_; +v_userData_7077_ = lean_ctor_get(v_writer_7066_, 0); +v_outputData_7078_ = lean_ctor_get(v_writer_7066_, 1); +v_knownSize_7079_ = lean_ctor_get(v_writer_7066_, 3); +v_messageHead_7080_ = lean_ctor_get(v_writer_7066_, 4); +v_sentMessage_7081_ = lean_ctor_get_uint8(v_writer_7066_, sizeof(void*)*6); +v_omitBody_7082_ = lean_ctor_get_uint8(v_writer_7066_, sizeof(void*)*6 + 2); +v_userDataBytes_7083_ = lean_ctor_get(v_writer_7066_, 5); +v_isSharedCheck_7112_ = !lean_is_exclusive(v_writer_7066_); +if (v_isSharedCheck_7112_ == 0) +{ +lean_object* v_unused_7113_; +v_unused_7113_ = lean_ctor_get(v_writer_7066_, 2); +lean_dec(v_unused_7113_); +v___x_7085_ = v_writer_7066_; +v_isShared_7086_ = v_isSharedCheck_7112_; +goto v_resetjp_7084_; +} +else +{ +lean_inc(v_userDataBytes_7083_); +lean_inc(v_messageHead_7080_); +lean_inc(v_knownSize_7079_); +lean_inc(v_outputData_7078_); +lean_inc(v_userData_7077_); +lean_dec(v_writer_7066_); +v___x_7085_ = lean_box(0); +v_isShared_7086_ = v_isSharedCheck_7112_; +goto v_resetjp_7084_; +} +v_resetjp_7084_: +{ +lean_object* v_input_7087_; lean_object* v_messageHead_7088_; lean_object* v_messageCount_7089_; lean_object* v_bodyBytesRead_7090_; lean_object* v_headerBytesRead_7091_; lean_object* v___x_7093_; uint8_t v_isShared_7094_; uint8_t v_isSharedCheck_7110_; +v_input_7087_ = lean_ctor_get(v_reader_7068_, 1); +v_messageHead_7088_ = lean_ctor_get(v_reader_7068_, 2); +v_messageCount_7089_ = lean_ctor_get(v_reader_7068_, 3); +v_bodyBytesRead_7090_ = lean_ctor_get(v_reader_7068_, 4); +v_headerBytesRead_7091_ = lean_ctor_get(v_reader_7068_, 5); +v_isSharedCheck_7110_ = !lean_is_exclusive(v_reader_7068_); +if (v_isSharedCheck_7110_ == 0) +{ +lean_object* v_unused_7111_; +v_unused_7111_ = lean_ctor_get(v_reader_7068_, 0); +lean_dec(v_unused_7111_); +v___x_7093_ = v_reader_7068_; +v_isShared_7094_ = v_isSharedCheck_7110_; +goto v_resetjp_7092_; +} +else +{ +lean_inc(v_headerBytesRead_7091_); +lean_inc(v_bodyBytesRead_7090_); +lean_inc(v_messageCount_7089_); +lean_inc(v_messageHead_7088_); +lean_inc(v_input_7087_); +lean_dec(v_reader_7068_); +v___x_7093_ = lean_box(0); +v_isShared_7094_ = v_isSharedCheck_7110_; +goto v_resetjp_7092_; +} +v_resetjp_7092_: +{ +lean_object* v___x_7095_; uint8_t v___x_7096_; lean_object* v___x_7097_; lean_object* v___x_7099_; +v___x_7095_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7096_ = 0; +v___x_7097_ = lean_box(7); +if (v_isShared_7086_ == 0) +{ +lean_ctor_set(v___x_7085_, 2, v___x_7097_); +v___x_7099_ = v___x_7085_; +goto v_reusejp_7098_; +} +else +{ +lean_object* v_reuseFailAlloc_7109_; +v_reuseFailAlloc_7109_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7109_, 0, v_userData_7077_); +lean_ctor_set(v_reuseFailAlloc_7109_, 1, v_outputData_7078_); +lean_ctor_set(v_reuseFailAlloc_7109_, 2, v___x_7097_); +lean_ctor_set(v_reuseFailAlloc_7109_, 3, v_knownSize_7079_); +lean_ctor_set(v_reuseFailAlloc_7109_, 4, v_messageHead_7080_); +lean_ctor_set(v_reuseFailAlloc_7109_, 5, v_userDataBytes_7083_); +lean_ctor_set_uint8(v_reuseFailAlloc_7109_, sizeof(void*)*6, v_sentMessage_7081_); +lean_ctor_set_uint8(v_reuseFailAlloc_7109_, sizeof(void*)*6 + 1, v_userClosedBody_7067_); +lean_ctor_set_uint8(v_reuseFailAlloc_7109_, sizeof(void*)*6 + 2, v_omitBody_7082_); +v___x_7099_ = v_reuseFailAlloc_7109_; +goto v_reusejp_7098_; +} +v_reusejp_7098_: +{ +lean_object* v___x_7100_; lean_object* v___x_7102_; +v___x_7100_ = lean_box(6); +if (v_isShared_7094_ == 0) +{ +lean_ctor_set(v___x_7093_, 0, v___x_7100_); +v___x_7102_ = v___x_7093_; +goto v_reusejp_7101_; +} +else +{ +lean_object* v_reuseFailAlloc_7108_; +v_reuseFailAlloc_7108_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7108_, 0, v___x_7100_); +lean_ctor_set(v_reuseFailAlloc_7108_, 1, v_input_7087_); +lean_ctor_set(v_reuseFailAlloc_7108_, 2, v_messageHead_7088_); +lean_ctor_set(v_reuseFailAlloc_7108_, 3, v_messageCount_7089_); +lean_ctor_set(v_reuseFailAlloc_7108_, 4, v_bodyBytesRead_7090_); +lean_ctor_set(v_reuseFailAlloc_7108_, 5, v_headerBytesRead_7091_); +v___x_7102_ = v_reuseFailAlloc_7108_; +goto v_reusejp_7101_; +} +v_reusejp_7101_: +{ +lean_object* v___x_7103_; lean_object* v___x_7104_; lean_object* v___x_7106_; +lean_ctor_set_uint8(v___x_7102_, sizeof(void*)*6, v_userClosedBody_7067_); +v___x_7103_ = lean_box(3); +v___x_7104_ = lean_array_push(v_events_7070_, v___x_7103_); +if (v_isShared_7076_ == 0) +{ +lean_ctor_set(v___x_7075_, 4, v___x_7095_); +lean_ctor_set(v___x_7075_, 3, v___x_7104_); +lean_ctor_set(v___x_7075_, 1, v___x_7099_); +lean_ctor_set(v___x_7075_, 0, v___x_7102_); +v___x_7106_ = v___x_7075_; +goto v_reusejp_7105_; +} +else +{ +lean_object* v_reuseFailAlloc_7107_; +v_reuseFailAlloc_7107_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7107_, 0, v___x_7102_); +lean_ctor_set(v_reuseFailAlloc_7107_, 1, v___x_7099_); +lean_ctor_set(v_reuseFailAlloc_7107_, 2, v_config_7069_); +lean_ctor_set(v_reuseFailAlloc_7107_, 3, v___x_7104_); +lean_ctor_set(v_reuseFailAlloc_7107_, 4, v___x_7095_); +lean_ctor_set(v_reuseFailAlloc_7107_, 5, v_instant_7071_); +lean_ctor_set_uint8(v_reuseFailAlloc_7107_, sizeof(void*)*6 + 1, v_forcedFlush_7072_); +lean_ctor_set_uint8(v_reuseFailAlloc_7107_, sizeof(void*)*6 + 2, v_pullBodyStalled_7073_); +v___x_7106_ = v_reuseFailAlloc_7107_; +goto v_reusejp_7105_; +} +v_reusejp_7105_: +{ +lean_ctor_set_uint8(v___x_7106_, sizeof(void*)*6, v___x_7096_); +return v___x_7106_; +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody(uint8_t v_dir_7117_, lean_object* v_machine_7118_){ +_start: +{ +lean_object* v_writer_7119_; uint8_t v_userClosedBody_7120_; +v_writer_7119_ = lean_ctor_get(v_machine_7118_, 1); +lean_inc_ref(v_writer_7119_); +v_userClosedBody_7120_ = lean_ctor_get_uint8(v_writer_7119_, sizeof(void*)*6 + 1); +if (v_userClosedBody_7120_ == 0) +{ +lean_dec_ref(v_writer_7119_); +return v_machine_7118_; +} +else +{ +lean_object* v_reader_7121_; lean_object* v_config_7122_; lean_object* v_events_7123_; lean_object* v_instant_7124_; uint8_t v_forcedFlush_7125_; uint8_t v_pullBodyStalled_7126_; lean_object* v___x_7128_; uint8_t v_isShared_7129_; uint8_t v_isSharedCheck_7167_; +v_reader_7121_ = lean_ctor_get(v_machine_7118_, 0); +v_config_7122_ = lean_ctor_get(v_machine_7118_, 2); +v_events_7123_ = lean_ctor_get(v_machine_7118_, 3); +v_instant_7124_ = lean_ctor_get(v_machine_7118_, 5); +v_forcedFlush_7125_ = lean_ctor_get_uint8(v_machine_7118_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7126_ = lean_ctor_get_uint8(v_machine_7118_, sizeof(void*)*6 + 2); +v_isSharedCheck_7167_ = !lean_is_exclusive(v_machine_7118_); +if (v_isSharedCheck_7167_ == 0) +{ +lean_object* v_unused_7168_; lean_object* v_unused_7169_; +v_unused_7168_ = lean_ctor_get(v_machine_7118_, 4); +lean_dec(v_unused_7168_); +v_unused_7169_ = lean_ctor_get(v_machine_7118_, 1); +lean_dec(v_unused_7169_); +v___x_7128_ = v_machine_7118_; +v_isShared_7129_ = v_isSharedCheck_7167_; +goto v_resetjp_7127_; +} +else +{ +lean_inc(v_instant_7124_); +lean_inc(v_events_7123_); +lean_inc(v_config_7122_); +lean_inc(v_reader_7121_); +lean_dec(v_machine_7118_); +v___x_7128_ = lean_box(0); +v_isShared_7129_ = v_isSharedCheck_7167_; +goto v_resetjp_7127_; +} +v_resetjp_7127_: +{ +lean_object* v_userData_7130_; lean_object* v_outputData_7131_; lean_object* v_knownSize_7132_; lean_object* v_messageHead_7133_; uint8_t v_sentMessage_7134_; uint8_t v_omitBody_7135_; lean_object* v_userDataBytes_7136_; lean_object* v___x_7138_; uint8_t v_isShared_7139_; uint8_t v_isSharedCheck_7165_; +v_userData_7130_ = lean_ctor_get(v_writer_7119_, 0); +v_outputData_7131_ = lean_ctor_get(v_writer_7119_, 1); +v_knownSize_7132_ = lean_ctor_get(v_writer_7119_, 3); +v_messageHead_7133_ = lean_ctor_get(v_writer_7119_, 4); +v_sentMessage_7134_ = lean_ctor_get_uint8(v_writer_7119_, sizeof(void*)*6); +v_omitBody_7135_ = lean_ctor_get_uint8(v_writer_7119_, sizeof(void*)*6 + 2); +v_userDataBytes_7136_ = lean_ctor_get(v_writer_7119_, 5); +v_isSharedCheck_7165_ = !lean_is_exclusive(v_writer_7119_); +if (v_isSharedCheck_7165_ == 0) +{ +lean_object* v_unused_7166_; +v_unused_7166_ = lean_ctor_get(v_writer_7119_, 2); +lean_dec(v_unused_7166_); +v___x_7138_ = v_writer_7119_; +v_isShared_7139_ = v_isSharedCheck_7165_; +goto v_resetjp_7137_; +} +else +{ +lean_inc(v_userDataBytes_7136_); +lean_inc(v_messageHead_7133_); +lean_inc(v_knownSize_7132_); +lean_inc(v_outputData_7131_); +lean_inc(v_userData_7130_); +lean_dec(v_writer_7119_); +v___x_7138_ = lean_box(0); +v_isShared_7139_ = v_isSharedCheck_7165_; +goto v_resetjp_7137_; +} +v_resetjp_7137_: +{ +lean_object* v_input_7140_; lean_object* v_messageHead_7141_; lean_object* v_messageCount_7142_; lean_object* v_bodyBytesRead_7143_; lean_object* v_headerBytesRead_7144_; lean_object* v___x_7146_; uint8_t v_isShared_7147_; uint8_t v_isSharedCheck_7163_; +v_input_7140_ = lean_ctor_get(v_reader_7121_, 1); +v_messageHead_7141_ = lean_ctor_get(v_reader_7121_, 2); +v_messageCount_7142_ = lean_ctor_get(v_reader_7121_, 3); +v_bodyBytesRead_7143_ = lean_ctor_get(v_reader_7121_, 4); +v_headerBytesRead_7144_ = lean_ctor_get(v_reader_7121_, 5); +v_isSharedCheck_7163_ = !lean_is_exclusive(v_reader_7121_); +if (v_isSharedCheck_7163_ == 0) +{ +lean_object* v_unused_7164_; +v_unused_7164_ = lean_ctor_get(v_reader_7121_, 0); +lean_dec(v_unused_7164_); +v___x_7146_ = v_reader_7121_; +v_isShared_7147_ = v_isSharedCheck_7163_; +goto v_resetjp_7145_; +} +else +{ +lean_inc(v_headerBytesRead_7144_); +lean_inc(v_bodyBytesRead_7143_); +lean_inc(v_messageCount_7142_); +lean_inc(v_messageHead_7141_); +lean_inc(v_input_7140_); +lean_dec(v_reader_7121_); +v___x_7146_ = lean_box(0); +v_isShared_7147_ = v_isSharedCheck_7163_; +goto v_resetjp_7145_; +} +v_resetjp_7145_: +{ +lean_object* v___x_7148_; uint8_t v___x_7149_; lean_object* v___x_7150_; lean_object* v___x_7152_; +v___x_7148_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7149_ = 0; +v___x_7150_ = lean_box(7); +if (v_isShared_7139_ == 0) +{ +lean_ctor_set(v___x_7138_, 2, v___x_7150_); +v___x_7152_ = v___x_7138_; +goto v_reusejp_7151_; +} +else +{ +lean_object* v_reuseFailAlloc_7162_; +v_reuseFailAlloc_7162_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7162_, 0, v_userData_7130_); +lean_ctor_set(v_reuseFailAlloc_7162_, 1, v_outputData_7131_); +lean_ctor_set(v_reuseFailAlloc_7162_, 2, v___x_7150_); +lean_ctor_set(v_reuseFailAlloc_7162_, 3, v_knownSize_7132_); +lean_ctor_set(v_reuseFailAlloc_7162_, 4, v_messageHead_7133_); +lean_ctor_set(v_reuseFailAlloc_7162_, 5, v_userDataBytes_7136_); +lean_ctor_set_uint8(v_reuseFailAlloc_7162_, sizeof(void*)*6, v_sentMessage_7134_); +lean_ctor_set_uint8(v_reuseFailAlloc_7162_, sizeof(void*)*6 + 1, v_userClosedBody_7120_); +lean_ctor_set_uint8(v_reuseFailAlloc_7162_, sizeof(void*)*6 + 2, v_omitBody_7135_); +v___x_7152_ = v_reuseFailAlloc_7162_; +goto v_reusejp_7151_; +} +v_reusejp_7151_: +{ +lean_object* v___x_7153_; lean_object* v___x_7155_; +v___x_7153_ = lean_box(6); +if (v_isShared_7147_ == 0) +{ +lean_ctor_set(v___x_7146_, 0, v___x_7153_); +v___x_7155_ = v___x_7146_; +goto v_reusejp_7154_; +} +else +{ +lean_object* v_reuseFailAlloc_7161_; +v_reuseFailAlloc_7161_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7161_, 0, v___x_7153_); +lean_ctor_set(v_reuseFailAlloc_7161_, 1, v_input_7140_); +lean_ctor_set(v_reuseFailAlloc_7161_, 2, v_messageHead_7141_); +lean_ctor_set(v_reuseFailAlloc_7161_, 3, v_messageCount_7142_); +lean_ctor_set(v_reuseFailAlloc_7161_, 4, v_bodyBytesRead_7143_); +lean_ctor_set(v_reuseFailAlloc_7161_, 5, v_headerBytesRead_7144_); +v___x_7155_ = v_reuseFailAlloc_7161_; +goto v_reusejp_7154_; +} +v_reusejp_7154_: +{ +lean_object* v___x_7156_; lean_object* v___x_7157_; lean_object* v___x_7159_; +lean_ctor_set_uint8(v___x_7155_, sizeof(void*)*6, v_userClosedBody_7120_); +v___x_7156_ = lean_box(3); +v___x_7157_ = lean_array_push(v_events_7123_, v___x_7156_); +if (v_isShared_7129_ == 0) +{ +lean_ctor_set(v___x_7128_, 4, v___x_7148_); +lean_ctor_set(v___x_7128_, 3, v___x_7157_); +lean_ctor_set(v___x_7128_, 1, v___x_7152_); +lean_ctor_set(v___x_7128_, 0, v___x_7155_); +v___x_7159_ = v___x_7128_; +goto v_reusejp_7158_; +} +else +{ +lean_object* v_reuseFailAlloc_7160_; +v_reuseFailAlloc_7160_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7160_, 0, v___x_7155_); +lean_ctor_set(v_reuseFailAlloc_7160_, 1, v___x_7152_); +lean_ctor_set(v_reuseFailAlloc_7160_, 2, v_config_7122_); +lean_ctor_set(v_reuseFailAlloc_7160_, 3, v___x_7157_); +lean_ctor_set(v_reuseFailAlloc_7160_, 4, v___x_7148_); +lean_ctor_set(v_reuseFailAlloc_7160_, 5, v_instant_7124_); +lean_ctor_set_uint8(v_reuseFailAlloc_7160_, sizeof(void*)*6 + 1, v_forcedFlush_7125_); +lean_ctor_set_uint8(v_reuseFailAlloc_7160_, sizeof(void*)*6 + 2, v_pullBodyStalled_7126_); +v___x_7159_ = v_reuseFailAlloc_7160_; +goto v_reusejp_7158_; +} +v_reusejp_7158_: +{ +lean_ctor_set_uint8(v___x_7159_, sizeof(void*)*6, v___x_7149_); +return v___x_7159_; +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody___boxed(lean_object* v_dir_7170_, lean_object* v_machine_7171_){ +_start: +{ +uint8_t v_dir_boxed_7172_; lean_object* v_res_7173_; +v_dir_boxed_7172_ = lean_unbox(v_dir_7170_); +v_res_7173_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedIdleBody(v_dir_boxed_7172_, v_machine_7171_); +return v_res_7173_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(uint8_t v_dir_7176_, lean_object* v_machine_7177_, lean_object* v_n_7178_){ +_start: +{ +lean_object* v_reader_7179_; lean_object* v_writer_7180_; lean_object* v_config_7181_; lean_object* v_events_7182_; lean_object* v_error_7183_; lean_object* v_instant_7184_; uint8_t v_keepAlive_7185_; uint8_t v_forcedFlush_7186_; uint8_t v_pullBodyStalled_7187_; lean_object* v_userData_7271_; lean_object* v_outputData_7272_; lean_object* v_knownSize_7273_; lean_object* v_messageHead_7274_; uint8_t v_sentMessage_7275_; uint8_t v_userClosedBody_7276_; uint8_t v_omitBody_7277_; lean_object* v_userDataBytes_7278_; uint8_t v___x_7279_; +v_reader_7179_ = lean_ctor_get(v_machine_7177_, 0); +lean_inc_ref(v_reader_7179_); +v_writer_7180_ = lean_ctor_get(v_machine_7177_, 1); +lean_inc_ref(v_writer_7180_); +v_config_7181_ = lean_ctor_get(v_machine_7177_, 2); +v_events_7182_ = lean_ctor_get(v_machine_7177_, 3); +v_error_7183_ = lean_ctor_get(v_machine_7177_, 4); +v_instant_7184_ = lean_ctor_get(v_machine_7177_, 5); +v_keepAlive_7185_ = lean_ctor_get_uint8(v_machine_7177_, sizeof(void*)*6); +v_forcedFlush_7186_ = lean_ctor_get_uint8(v_machine_7177_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7187_ = lean_ctor_get_uint8(v_machine_7177_, sizeof(void*)*6 + 2); +v_userData_7271_ = lean_ctor_get(v_writer_7180_, 0); +v_outputData_7272_ = lean_ctor_get(v_writer_7180_, 1); +v_knownSize_7273_ = lean_ctor_get(v_writer_7180_, 3); +v_messageHead_7274_ = lean_ctor_get(v_writer_7180_, 4); +v_sentMessage_7275_ = lean_ctor_get_uint8(v_writer_7180_, sizeof(void*)*6); +v_userClosedBody_7276_ = lean_ctor_get_uint8(v_writer_7180_, sizeof(void*)*6 + 1); +v_omitBody_7277_ = lean_ctor_get_uint8(v_writer_7180_, sizeof(void*)*6 + 2); +v_userDataBytes_7278_ = lean_ctor_get(v_writer_7180_, 5); +v___x_7279_ = lean_nat_dec_lt(v_n_7178_, v_userDataBytes_7278_); +if (v___x_7279_ == 0) +{ +uint8_t v___x_7280_; +v___x_7280_ = lean_nat_dec_eq(v_userDataBytes_7278_, v_n_7178_); +if (v___x_7280_ == 0) +{ +lean_inc(v_instant_7184_); +lean_inc(v_error_7183_); +lean_inc_ref(v_events_7182_); +lean_inc_ref(v_config_7181_); +lean_dec_ref(v_machine_7177_); +goto v___jp_7188_; +} +else +{ +if (v_userClosedBody_7276_ == 0) +{ +lean_dec_ref(v_writer_7180_); +lean_dec_ref(v_reader_7179_); +lean_dec(v_n_7178_); +return v_machine_7177_; +} +else +{ +lean_inc(v_instant_7184_); +lean_inc(v_error_7183_); +lean_inc_ref(v_events_7182_); +lean_inc_ref(v_config_7181_); +lean_dec_ref(v_machine_7177_); +goto v___jp_7188_; +} +} +} +else +{ +lean_object* v___x_7282_; uint8_t v_isShared_7283_; uint8_t v_isSharedCheck_7319_; +lean_inc(v_userDataBytes_7278_); +lean_inc(v_messageHead_7274_); +lean_inc(v_knownSize_7273_); +lean_inc_ref(v_outputData_7272_); +lean_inc_ref(v_userData_7271_); +lean_inc(v_instant_7184_); +lean_inc_ref(v_events_7182_); +lean_inc_ref(v_config_7181_); +lean_dec(v_n_7178_); +v_isSharedCheck_7319_ = !lean_is_exclusive(v_machine_7177_); +if (v_isSharedCheck_7319_ == 0) +{ +lean_object* v_unused_7320_; lean_object* v_unused_7321_; lean_object* v_unused_7322_; lean_object* v_unused_7323_; lean_object* v_unused_7324_; lean_object* v_unused_7325_; +v_unused_7320_ = lean_ctor_get(v_machine_7177_, 5); +lean_dec(v_unused_7320_); +v_unused_7321_ = lean_ctor_get(v_machine_7177_, 4); +lean_dec(v_unused_7321_); +v_unused_7322_ = lean_ctor_get(v_machine_7177_, 3); +lean_dec(v_unused_7322_); +v_unused_7323_ = lean_ctor_get(v_machine_7177_, 2); +lean_dec(v_unused_7323_); +v_unused_7324_ = lean_ctor_get(v_machine_7177_, 1); +lean_dec(v_unused_7324_); +v_unused_7325_ = lean_ctor_get(v_machine_7177_, 0); +lean_dec(v_unused_7325_); +v___x_7282_ = v_machine_7177_; +v_isShared_7283_ = v_isSharedCheck_7319_; +goto v_resetjp_7281_; +} +else +{ +lean_dec(v_machine_7177_); +v___x_7282_ = lean_box(0); +v_isShared_7283_ = v_isSharedCheck_7319_; +goto v_resetjp_7281_; +} +v_resetjp_7281_: +{ +lean_object* v___x_7285_; uint8_t v_isShared_7286_; uint8_t v_isSharedCheck_7312_; +v_isSharedCheck_7312_ = !lean_is_exclusive(v_writer_7180_); +if (v_isSharedCheck_7312_ == 0) +{ +lean_object* v_unused_7313_; lean_object* v_unused_7314_; lean_object* v_unused_7315_; lean_object* v_unused_7316_; lean_object* v_unused_7317_; lean_object* v_unused_7318_; +v_unused_7313_ = lean_ctor_get(v_writer_7180_, 5); +lean_dec(v_unused_7313_); +v_unused_7314_ = lean_ctor_get(v_writer_7180_, 4); +lean_dec(v_unused_7314_); +v_unused_7315_ = lean_ctor_get(v_writer_7180_, 3); +lean_dec(v_unused_7315_); +v_unused_7316_ = lean_ctor_get(v_writer_7180_, 2); +lean_dec(v_unused_7316_); +v_unused_7317_ = lean_ctor_get(v_writer_7180_, 1); +lean_dec(v_unused_7317_); +v_unused_7318_ = lean_ctor_get(v_writer_7180_, 0); +lean_dec(v_unused_7318_); +v___x_7285_ = v_writer_7180_; +v_isShared_7286_ = v_isSharedCheck_7312_; +goto v_resetjp_7284_; +} +else +{ +lean_dec(v_writer_7180_); +v___x_7285_ = lean_box(0); +v_isShared_7286_ = v_isSharedCheck_7312_; +goto v_resetjp_7284_; +} +v_resetjp_7284_: +{ +lean_object* v_input_7287_; lean_object* v_messageHead_7288_; lean_object* v_messageCount_7289_; lean_object* v_bodyBytesRead_7290_; lean_object* v_headerBytesRead_7291_; lean_object* v___x_7293_; uint8_t v_isShared_7294_; uint8_t v_isSharedCheck_7310_; +v_input_7287_ = lean_ctor_get(v_reader_7179_, 1); +v_messageHead_7288_ = lean_ctor_get(v_reader_7179_, 2); +v_messageCount_7289_ = lean_ctor_get(v_reader_7179_, 3); +v_bodyBytesRead_7290_ = lean_ctor_get(v_reader_7179_, 4); +v_headerBytesRead_7291_ = lean_ctor_get(v_reader_7179_, 5); +v_isSharedCheck_7310_ = !lean_is_exclusive(v_reader_7179_); +if (v_isSharedCheck_7310_ == 0) +{ +lean_object* v_unused_7311_; +v_unused_7311_ = lean_ctor_get(v_reader_7179_, 0); +lean_dec(v_unused_7311_); +v___x_7293_ = v_reader_7179_; +v_isShared_7294_ = v_isSharedCheck_7310_; +goto v_resetjp_7292_; +} +else +{ +lean_inc(v_headerBytesRead_7291_); +lean_inc(v_bodyBytesRead_7290_); +lean_inc(v_messageCount_7289_); +lean_inc(v_messageHead_7288_); +lean_inc(v_input_7287_); +lean_dec(v_reader_7179_); +v___x_7293_ = lean_box(0); +v_isShared_7294_ = v_isSharedCheck_7310_; +goto v_resetjp_7292_; +} +v_resetjp_7292_: +{ +lean_object* v___x_7295_; uint8_t v___x_7296_; lean_object* v___x_7297_; lean_object* v___x_7299_; +v___x_7295_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7296_ = 0; +v___x_7297_ = lean_box(7); +if (v_isShared_7286_ == 0) +{ +lean_ctor_set(v___x_7285_, 2, v___x_7297_); +v___x_7299_ = v___x_7285_; +goto v_reusejp_7298_; +} +else +{ +lean_object* v_reuseFailAlloc_7309_; +v_reuseFailAlloc_7309_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7309_, 0, v_userData_7271_); +lean_ctor_set(v_reuseFailAlloc_7309_, 1, v_outputData_7272_); +lean_ctor_set(v_reuseFailAlloc_7309_, 2, v___x_7297_); +lean_ctor_set(v_reuseFailAlloc_7309_, 3, v_knownSize_7273_); +lean_ctor_set(v_reuseFailAlloc_7309_, 4, v_messageHead_7274_); +lean_ctor_set(v_reuseFailAlloc_7309_, 5, v_userDataBytes_7278_); +lean_ctor_set_uint8(v_reuseFailAlloc_7309_, sizeof(void*)*6, v_sentMessage_7275_); +lean_ctor_set_uint8(v_reuseFailAlloc_7309_, sizeof(void*)*6 + 2, v_omitBody_7277_); +v___x_7299_ = v_reuseFailAlloc_7309_; +goto v_reusejp_7298_; +} +v_reusejp_7298_: +{ +lean_object* v___x_7300_; lean_object* v___x_7302_; +lean_ctor_set_uint8(v___x_7299_, sizeof(void*)*6 + 1, v___x_7279_); +v___x_7300_ = lean_box(6); +if (v_isShared_7294_ == 0) +{ +lean_ctor_set(v___x_7293_, 0, v___x_7300_); +v___x_7302_ = v___x_7293_; +goto v_reusejp_7301_; +} +else +{ +lean_object* v_reuseFailAlloc_7308_; +v_reuseFailAlloc_7308_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7308_, 0, v___x_7300_); +lean_ctor_set(v_reuseFailAlloc_7308_, 1, v_input_7287_); +lean_ctor_set(v_reuseFailAlloc_7308_, 2, v_messageHead_7288_); +lean_ctor_set(v_reuseFailAlloc_7308_, 3, v_messageCount_7289_); +lean_ctor_set(v_reuseFailAlloc_7308_, 4, v_bodyBytesRead_7290_); +lean_ctor_set(v_reuseFailAlloc_7308_, 5, v_headerBytesRead_7291_); +v___x_7302_ = v_reuseFailAlloc_7308_; +goto v_reusejp_7301_; +} +v_reusejp_7301_: +{ +lean_object* v___x_7303_; lean_object* v___x_7304_; lean_object* v___x_7306_; +lean_ctor_set_uint8(v___x_7302_, sizeof(void*)*6, v___x_7279_); +v___x_7303_ = lean_box(3); +v___x_7304_ = lean_array_push(v_events_7182_, v___x_7303_); +if (v_isShared_7283_ == 0) +{ +lean_ctor_set(v___x_7282_, 4, v___x_7295_); +lean_ctor_set(v___x_7282_, 3, v___x_7304_); +lean_ctor_set(v___x_7282_, 1, v___x_7299_); +lean_ctor_set(v___x_7282_, 0, v___x_7302_); +v___x_7306_ = v___x_7282_; +goto v_reusejp_7305_; +} +else +{ +lean_object* v_reuseFailAlloc_7307_; +v_reuseFailAlloc_7307_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7307_, 0, v___x_7302_); +lean_ctor_set(v_reuseFailAlloc_7307_, 1, v___x_7299_); +lean_ctor_set(v_reuseFailAlloc_7307_, 2, v_config_7181_); +lean_ctor_set(v_reuseFailAlloc_7307_, 3, v___x_7304_); +lean_ctor_set(v_reuseFailAlloc_7307_, 4, v___x_7295_); +lean_ctor_set(v_reuseFailAlloc_7307_, 5, v_instant_7184_); +lean_ctor_set_uint8(v_reuseFailAlloc_7307_, sizeof(void*)*6 + 1, v_forcedFlush_7186_); +lean_ctor_set_uint8(v_reuseFailAlloc_7307_, sizeof(void*)*6 + 2, v_pullBodyStalled_7187_); +v___x_7306_ = v_reuseFailAlloc_7307_; +goto v_reusejp_7305_; +} +v_reusejp_7305_: +{ +lean_ctor_set_uint8(v___x_7306_, sizeof(void*)*6, v___x_7296_); +return v___x_7306_; +} +} +} +} +} +} +} +v___jp_7188_: +{ +lean_object* v___x_7189_; lean_object* v_fst_7190_; lean_object* v_snd_7191_; lean_object* v___x_7192_; uint8_t v___x_7193_; +v___x_7189_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(v_writer_7180_, v_n_7178_); +v_fst_7190_ = lean_ctor_get(v___x_7189_, 0); +lean_inc(v_fst_7190_); +v_snd_7191_ = lean_ctor_get(v___x_7189_, 1); +lean_inc(v_snd_7191_); +lean_dec_ref(v___x_7189_); +v___x_7192_ = lean_unsigned_to_nat(0u); +v___x_7193_ = lean_nat_dec_eq(v_snd_7191_, v___x_7192_); +if (v___x_7193_ == 0) +{ +lean_object* v_userData_7194_; lean_object* v_outputData_7195_; lean_object* v_knownSize_7196_; lean_object* v_messageHead_7197_; uint8_t v_sentMessage_7198_; uint8_t v_userClosedBody_7199_; uint8_t v_omitBody_7200_; lean_object* v_userDataBytes_7201_; lean_object* v___x_7203_; uint8_t v_isShared_7204_; uint8_t v_isSharedCheck_7210_; +v_userData_7194_ = lean_ctor_get(v_fst_7190_, 0); +v_outputData_7195_ = lean_ctor_get(v_fst_7190_, 1); +v_knownSize_7196_ = lean_ctor_get(v_fst_7190_, 3); +v_messageHead_7197_ = lean_ctor_get(v_fst_7190_, 4); +v_sentMessage_7198_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6); +v_userClosedBody_7199_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6 + 1); +v_omitBody_7200_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6 + 2); +v_userDataBytes_7201_ = lean_ctor_get(v_fst_7190_, 5); +v_isSharedCheck_7210_ = !lean_is_exclusive(v_fst_7190_); +if (v_isSharedCheck_7210_ == 0) +{ +lean_object* v_unused_7211_; +v_unused_7211_ = lean_ctor_get(v_fst_7190_, 2); +lean_dec(v_unused_7211_); +v___x_7203_ = v_fst_7190_; +v_isShared_7204_ = v_isSharedCheck_7210_; +goto v_resetjp_7202_; +} +else +{ +lean_inc(v_userDataBytes_7201_); +lean_inc(v_messageHead_7197_); +lean_inc(v_knownSize_7196_); +lean_inc(v_outputData_7195_); +lean_inc(v_userData_7194_); +lean_dec(v_fst_7190_); +v___x_7203_ = lean_box(0); +v_isShared_7204_ = v_isSharedCheck_7210_; +goto v_resetjp_7202_; +} +v_resetjp_7202_: +{ +lean_object* v___x_7205_; lean_object* v___x_7207_; +v___x_7205_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_7205_, 0, v_snd_7191_); +if (v_isShared_7204_ == 0) +{ +lean_ctor_set(v___x_7203_, 2, v___x_7205_); +v___x_7207_ = v___x_7203_; +goto v_reusejp_7206_; +} +else +{ +lean_object* v_reuseFailAlloc_7209_; +v_reuseFailAlloc_7209_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7209_, 0, v_userData_7194_); +lean_ctor_set(v_reuseFailAlloc_7209_, 1, v_outputData_7195_); +lean_ctor_set(v_reuseFailAlloc_7209_, 2, v___x_7205_); +lean_ctor_set(v_reuseFailAlloc_7209_, 3, v_knownSize_7196_); +lean_ctor_set(v_reuseFailAlloc_7209_, 4, v_messageHead_7197_); +lean_ctor_set(v_reuseFailAlloc_7209_, 5, v_userDataBytes_7201_); +lean_ctor_set_uint8(v_reuseFailAlloc_7209_, sizeof(void*)*6, v_sentMessage_7198_); +lean_ctor_set_uint8(v_reuseFailAlloc_7209_, sizeof(void*)*6 + 1, v_userClosedBody_7199_); +lean_ctor_set_uint8(v_reuseFailAlloc_7209_, sizeof(void*)*6 + 2, v_omitBody_7200_); +v___x_7207_ = v_reuseFailAlloc_7209_; +goto v_reusejp_7206_; +} +v_reusejp_7206_: +{ +lean_object* v___x_7208_; +v___x_7208_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_7208_, 0, v_reader_7179_); +lean_ctor_set(v___x_7208_, 1, v___x_7207_); +lean_ctor_set(v___x_7208_, 2, v_config_7181_); +lean_ctor_set(v___x_7208_, 3, v_events_7182_); +lean_ctor_set(v___x_7208_, 4, v_error_7183_); +lean_ctor_set(v___x_7208_, 5, v_instant_7184_); +lean_ctor_set_uint8(v___x_7208_, sizeof(void*)*6, v_keepAlive_7185_); +lean_ctor_set_uint8(v___x_7208_, sizeof(void*)*6 + 1, v_forcedFlush_7186_); +lean_ctor_set_uint8(v___x_7208_, sizeof(void*)*6 + 2, v_pullBodyStalled_7187_); +return v___x_7208_; +} +} +} +else +{ +lean_object* v_userData_7212_; lean_object* v_outputData_7213_; lean_object* v_knownSize_7214_; lean_object* v_messageHead_7215_; uint8_t v_sentMessage_7216_; uint8_t v_userClosedBody_7217_; uint8_t v_omitBody_7218_; lean_object* v_userDataBytes_7219_; lean_object* v___x_7220_; uint8_t v___x_7221_; +lean_dec(v_snd_7191_); +v_userData_7212_ = lean_ctor_get(v_fst_7190_, 0); +v_outputData_7213_ = lean_ctor_get(v_fst_7190_, 1); +v_knownSize_7214_ = lean_ctor_get(v_fst_7190_, 3); +v_messageHead_7215_ = lean_ctor_get(v_fst_7190_, 4); +v_sentMessage_7216_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6); +v_userClosedBody_7217_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6 + 1); +v_omitBody_7218_ = lean_ctor_get_uint8(v_fst_7190_, sizeof(void*)*6 + 2); +v_userDataBytes_7219_ = lean_ctor_get(v_fst_7190_, 5); +v___x_7220_ = lean_array_get_size(v_userData_7212_); +v___x_7221_ = lean_nat_dec_eq(v___x_7220_, v___x_7192_); +if (v___x_7221_ == 0) +{ +lean_object* v___x_7223_; uint8_t v_isShared_7224_; uint8_t v_isSharedCheck_7247_; +lean_inc(v_userDataBytes_7219_); +lean_inc(v_messageHead_7215_); +lean_inc(v_knownSize_7214_); +lean_inc_ref(v_outputData_7213_); +lean_inc_ref(v_userData_7212_); +lean_dec(v_error_7183_); +v_isSharedCheck_7247_ = !lean_is_exclusive(v_fst_7190_); +if (v_isSharedCheck_7247_ == 0) +{ +lean_object* v_unused_7248_; lean_object* v_unused_7249_; lean_object* v_unused_7250_; lean_object* v_unused_7251_; lean_object* v_unused_7252_; lean_object* v_unused_7253_; +v_unused_7248_ = lean_ctor_get(v_fst_7190_, 5); +lean_dec(v_unused_7248_); +v_unused_7249_ = lean_ctor_get(v_fst_7190_, 4); +lean_dec(v_unused_7249_); +v_unused_7250_ = lean_ctor_get(v_fst_7190_, 3); +lean_dec(v_unused_7250_); +v_unused_7251_ = lean_ctor_get(v_fst_7190_, 2); +lean_dec(v_unused_7251_); +v_unused_7252_ = lean_ctor_get(v_fst_7190_, 1); +lean_dec(v_unused_7252_); +v_unused_7253_ = lean_ctor_get(v_fst_7190_, 0); +lean_dec(v_unused_7253_); +v___x_7223_ = v_fst_7190_; +v_isShared_7224_ = v_isSharedCheck_7247_; +goto v_resetjp_7222_; +} +else +{ +lean_dec(v_fst_7190_); +v___x_7223_ = lean_box(0); +v_isShared_7224_ = v_isSharedCheck_7247_; +goto v_resetjp_7222_; +} +v_resetjp_7222_: +{ +lean_object* v_input_7225_; lean_object* v_messageHead_7226_; lean_object* v_messageCount_7227_; lean_object* v_bodyBytesRead_7228_; lean_object* v_headerBytesRead_7229_; lean_object* v___x_7231_; uint8_t v_isShared_7232_; uint8_t v_isSharedCheck_7245_; +v_input_7225_ = lean_ctor_get(v_reader_7179_, 1); +v_messageHead_7226_ = lean_ctor_get(v_reader_7179_, 2); +v_messageCount_7227_ = lean_ctor_get(v_reader_7179_, 3); +v_bodyBytesRead_7228_ = lean_ctor_get(v_reader_7179_, 4); +v_headerBytesRead_7229_ = lean_ctor_get(v_reader_7179_, 5); +v_isSharedCheck_7245_ = !lean_is_exclusive(v_reader_7179_); +if (v_isSharedCheck_7245_ == 0) +{ +lean_object* v_unused_7246_; +v_unused_7246_ = lean_ctor_get(v_reader_7179_, 0); +lean_dec(v_unused_7246_); +v___x_7231_ = v_reader_7179_; +v_isShared_7232_ = v_isSharedCheck_7245_; +goto v_resetjp_7230_; +} +else +{ +lean_inc(v_headerBytesRead_7229_); +lean_inc(v_bodyBytesRead_7228_); +lean_inc(v_messageCount_7227_); +lean_inc(v_messageHead_7226_); +lean_inc(v_input_7225_); +lean_dec(v_reader_7179_); +v___x_7231_ = lean_box(0); +v_isShared_7232_ = v_isSharedCheck_7245_; +goto v_resetjp_7230_; +} +v_resetjp_7230_: +{ +lean_object* v___x_7233_; lean_object* v___x_7234_; lean_object* v___x_7236_; +v___x_7233_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7234_ = lean_box(7); +if (v_isShared_7224_ == 0) +{ +lean_ctor_set(v___x_7223_, 2, v___x_7234_); +v___x_7236_ = v___x_7223_; +goto v_reusejp_7235_; +} +else +{ +lean_object* v_reuseFailAlloc_7244_; +v_reuseFailAlloc_7244_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7244_, 0, v_userData_7212_); +lean_ctor_set(v_reuseFailAlloc_7244_, 1, v_outputData_7213_); +lean_ctor_set(v_reuseFailAlloc_7244_, 2, v___x_7234_); +lean_ctor_set(v_reuseFailAlloc_7244_, 3, v_knownSize_7214_); +lean_ctor_set(v_reuseFailAlloc_7244_, 4, v_messageHead_7215_); +lean_ctor_set(v_reuseFailAlloc_7244_, 5, v_userDataBytes_7219_); +lean_ctor_set_uint8(v_reuseFailAlloc_7244_, sizeof(void*)*6, v_sentMessage_7216_); +lean_ctor_set_uint8(v_reuseFailAlloc_7244_, sizeof(void*)*6 + 2, v_omitBody_7218_); +v___x_7236_ = v_reuseFailAlloc_7244_; +goto v_reusejp_7235_; +} +v_reusejp_7235_: +{ +lean_object* v___x_7237_; lean_object* v___x_7239_; +lean_ctor_set_uint8(v___x_7236_, sizeof(void*)*6 + 1, v___x_7193_); +v___x_7237_ = lean_box(6); +if (v_isShared_7232_ == 0) +{ +lean_ctor_set(v___x_7231_, 0, v___x_7237_); +v___x_7239_ = v___x_7231_; +goto v_reusejp_7238_; +} +else +{ +lean_object* v_reuseFailAlloc_7243_; +v_reuseFailAlloc_7243_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7243_, 0, v___x_7237_); +lean_ctor_set(v_reuseFailAlloc_7243_, 1, v_input_7225_); +lean_ctor_set(v_reuseFailAlloc_7243_, 2, v_messageHead_7226_); +lean_ctor_set(v_reuseFailAlloc_7243_, 3, v_messageCount_7227_); +lean_ctor_set(v_reuseFailAlloc_7243_, 4, v_bodyBytesRead_7228_); +lean_ctor_set(v_reuseFailAlloc_7243_, 5, v_headerBytesRead_7229_); +v___x_7239_ = v_reuseFailAlloc_7243_; +goto v_reusejp_7238_; +} +v_reusejp_7238_: +{ +lean_object* v___x_7240_; lean_object* v___x_7241_; lean_object* v___x_7242_; +lean_ctor_set_uint8(v___x_7239_, sizeof(void*)*6, v___x_7193_); +v___x_7240_ = lean_box(3); +v___x_7241_ = lean_array_push(v_events_7182_, v___x_7240_); +v___x_7242_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_7242_, 0, v___x_7239_); +lean_ctor_set(v___x_7242_, 1, v___x_7236_); +lean_ctor_set(v___x_7242_, 2, v_config_7181_); +lean_ctor_set(v___x_7242_, 3, v___x_7241_); +lean_ctor_set(v___x_7242_, 4, v___x_7233_); +lean_ctor_set(v___x_7242_, 5, v_instant_7184_); +lean_ctor_set_uint8(v___x_7242_, sizeof(void*)*6, v___x_7221_); +lean_ctor_set_uint8(v___x_7242_, sizeof(void*)*6 + 1, v_forcedFlush_7186_); +lean_ctor_set_uint8(v___x_7242_, sizeof(void*)*6 + 2, v_pullBodyStalled_7187_); +return v___x_7242_; +} +} +} +} +} +else +{ +if (v_userClosedBody_7217_ == 0) +{ +lean_object* v___x_7255_; uint8_t v_isShared_7256_; uint8_t v_isSharedCheck_7262_; +lean_inc(v_userDataBytes_7219_); +lean_inc(v_messageHead_7215_); +lean_inc(v_knownSize_7214_); +lean_inc_ref(v_outputData_7213_); +lean_inc_ref(v_userData_7212_); +v_isSharedCheck_7262_ = !lean_is_exclusive(v_fst_7190_); +if (v_isSharedCheck_7262_ == 0) +{ +lean_object* v_unused_7263_; lean_object* v_unused_7264_; lean_object* v_unused_7265_; lean_object* v_unused_7266_; lean_object* v_unused_7267_; lean_object* v_unused_7268_; +v_unused_7263_ = lean_ctor_get(v_fst_7190_, 5); +lean_dec(v_unused_7263_); +v_unused_7264_ = lean_ctor_get(v_fst_7190_, 4); +lean_dec(v_unused_7264_); +v_unused_7265_ = lean_ctor_get(v_fst_7190_, 3); +lean_dec(v_unused_7265_); +v_unused_7266_ = lean_ctor_get(v_fst_7190_, 2); +lean_dec(v_unused_7266_); +v_unused_7267_ = lean_ctor_get(v_fst_7190_, 1); +lean_dec(v_unused_7267_); +v_unused_7268_ = lean_ctor_get(v_fst_7190_, 0); +lean_dec(v_unused_7268_); +v___x_7255_ = v_fst_7190_; +v_isShared_7256_ = v_isSharedCheck_7262_; +goto v_resetjp_7254_; +} +else +{ +lean_dec(v_fst_7190_); +v___x_7255_ = lean_box(0); +v_isShared_7256_ = v_isSharedCheck_7262_; +goto v_resetjp_7254_; +} +v_resetjp_7254_: +{ +lean_object* v___x_7257_; lean_object* v___x_7259_; +v___x_7257_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___closed__0)); +if (v_isShared_7256_ == 0) +{ +lean_ctor_set(v___x_7255_, 2, v___x_7257_); +v___x_7259_ = v___x_7255_; +goto v_reusejp_7258_; +} +else +{ +lean_object* v_reuseFailAlloc_7261_; +v_reuseFailAlloc_7261_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7261_, 0, v_userData_7212_); +lean_ctor_set(v_reuseFailAlloc_7261_, 1, v_outputData_7213_); +lean_ctor_set(v_reuseFailAlloc_7261_, 2, v___x_7257_); +lean_ctor_set(v_reuseFailAlloc_7261_, 3, v_knownSize_7214_); +lean_ctor_set(v_reuseFailAlloc_7261_, 4, v_messageHead_7215_); +lean_ctor_set(v_reuseFailAlloc_7261_, 5, v_userDataBytes_7219_); +lean_ctor_set_uint8(v_reuseFailAlloc_7261_, sizeof(void*)*6, v_sentMessage_7216_); +lean_ctor_set_uint8(v_reuseFailAlloc_7261_, sizeof(void*)*6 + 1, v_userClosedBody_7217_); +lean_ctor_set_uint8(v_reuseFailAlloc_7261_, sizeof(void*)*6 + 2, v_omitBody_7218_); +v___x_7259_ = v_reuseFailAlloc_7261_; +goto v_reusejp_7258_; +} +v_reusejp_7258_: +{ +lean_object* v___x_7260_; +v___x_7260_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_7260_, 0, v_reader_7179_); +lean_ctor_set(v___x_7260_, 1, v___x_7259_); +lean_ctor_set(v___x_7260_, 2, v_config_7181_); +lean_ctor_set(v___x_7260_, 3, v_events_7182_); +lean_ctor_set(v___x_7260_, 4, v_error_7183_); +lean_ctor_set(v___x_7260_, 5, v_instant_7184_); +lean_ctor_set_uint8(v___x_7260_, sizeof(void*)*6, v_keepAlive_7185_); +lean_ctor_set_uint8(v___x_7260_, sizeof(void*)*6 + 1, v_forcedFlush_7186_); +lean_ctor_set_uint8(v___x_7260_, sizeof(void*)*6 + 2, v_pullBodyStalled_7187_); +return v___x_7260_; +} +} +} +else +{ +lean_object* v_machine_7269_; lean_object* v___x_7270_; +v_machine_7269_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_7269_, 0, v_reader_7179_); +lean_ctor_set(v_machine_7269_, 1, v_fst_7190_); +lean_ctor_set(v_machine_7269_, 2, v_config_7181_); +lean_ctor_set(v_machine_7269_, 3, v_events_7182_); +lean_ctor_set(v_machine_7269_, 4, v_error_7183_); +lean_ctor_set(v_machine_7269_, 5, v_instant_7184_); +lean_ctor_set_uint8(v_machine_7269_, sizeof(void*)*6, v_keepAlive_7185_); +lean_ctor_set_uint8(v_machine_7269_, sizeof(void*)*6 + 1, v_forcedFlush_7186_); +lean_ctor_set_uint8(v_machine_7269_, sizeof(void*)*6 + 2, v_pullBodyStalled_7187_); +v___x_7270_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_7176_, v_machine_7269_); +return v___x_7270_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(uint8_t v_dir_7326_, lean_object* v_machine_7327_){ +_start: +{ +lean_object* v_writer_7328_; lean_object* v_reader_7329_; lean_object* v_config_7330_; lean_object* v_events_7331_; lean_object* v_instant_7332_; uint8_t v_forcedFlush_7333_; uint8_t v_pullBodyStalled_7334_; lean_object* v_userData_7335_; lean_object* v_outputData_7336_; lean_object* v_knownSize_7337_; lean_object* v_messageHead_7338_; uint8_t v_sentMessage_7339_; uint8_t v_userClosedBody_7340_; uint8_t v_omitBody_7341_; lean_object* v_userDataBytes_7342_; lean_object* v___x_7344_; uint8_t v_isShared_7345_; uint8_t v_isSharedCheck_7385_; +v_writer_7328_ = lean_ctor_get(v_machine_7327_, 1); +lean_inc_ref(v_writer_7328_); +v_reader_7329_ = lean_ctor_get(v_machine_7327_, 0); +lean_inc_ref(v_reader_7329_); +v_config_7330_ = lean_ctor_get(v_machine_7327_, 2); +v_events_7331_ = lean_ctor_get(v_machine_7327_, 3); +v_instant_7332_ = lean_ctor_get(v_machine_7327_, 5); +v_forcedFlush_7333_ = lean_ctor_get_uint8(v_machine_7327_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7334_ = lean_ctor_get_uint8(v_machine_7327_, sizeof(void*)*6 + 2); +v_userData_7335_ = lean_ctor_get(v_writer_7328_, 0); +v_outputData_7336_ = lean_ctor_get(v_writer_7328_, 1); +v_knownSize_7337_ = lean_ctor_get(v_writer_7328_, 3); +v_messageHead_7338_ = lean_ctor_get(v_writer_7328_, 4); +v_sentMessage_7339_ = lean_ctor_get_uint8(v_writer_7328_, sizeof(void*)*6); +v_userClosedBody_7340_ = lean_ctor_get_uint8(v_writer_7328_, sizeof(void*)*6 + 1); +v_omitBody_7341_ = lean_ctor_get_uint8(v_writer_7328_, sizeof(void*)*6 + 2); +v_userDataBytes_7342_ = lean_ctor_get(v_writer_7328_, 5); +v_isSharedCheck_7385_ = !lean_is_exclusive(v_writer_7328_); +if (v_isSharedCheck_7385_ == 0) +{ +lean_object* v_unused_7386_; +v_unused_7386_ = lean_ctor_get(v_writer_7328_, 2); +lean_dec(v_unused_7386_); +v___x_7344_ = v_writer_7328_; +v_isShared_7345_ = v_isSharedCheck_7385_; +goto v_resetjp_7343_; +} +else +{ +lean_inc(v_userDataBytes_7342_); +lean_inc(v_messageHead_7338_); +lean_inc(v_knownSize_7337_); +lean_inc(v_outputData_7336_); +lean_inc(v_userData_7335_); +lean_dec(v_writer_7328_); +v___x_7344_ = lean_box(0); +v_isShared_7345_ = v_isSharedCheck_7385_; +goto v_resetjp_7343_; +} +v_resetjp_7343_: +{ +lean_object* v___x_7346_; lean_object* v___x_7347_; uint8_t v___x_7348_; +v___x_7346_ = lean_array_get_size(v_userData_7335_); +v___x_7347_ = lean_unsigned_to_nat(0u); +v___x_7348_ = lean_nat_dec_eq(v___x_7346_, v___x_7347_); +if (v___x_7348_ == 0) +{ +lean_object* v___x_7350_; uint8_t v_isShared_7351_; uint8_t v_isSharedCheck_7377_; +lean_inc(v_instant_7332_); +lean_inc_ref(v_events_7331_); +lean_inc_ref(v_config_7330_); +v_isSharedCheck_7377_ = !lean_is_exclusive(v_machine_7327_); +if (v_isSharedCheck_7377_ == 0) +{ +lean_object* v_unused_7378_; lean_object* v_unused_7379_; lean_object* v_unused_7380_; lean_object* v_unused_7381_; lean_object* v_unused_7382_; lean_object* v_unused_7383_; +v_unused_7378_ = lean_ctor_get(v_machine_7327_, 5); +lean_dec(v_unused_7378_); +v_unused_7379_ = lean_ctor_get(v_machine_7327_, 4); +lean_dec(v_unused_7379_); +v_unused_7380_ = lean_ctor_get(v_machine_7327_, 3); +lean_dec(v_unused_7380_); +v_unused_7381_ = lean_ctor_get(v_machine_7327_, 2); +lean_dec(v_unused_7381_); +v_unused_7382_ = lean_ctor_get(v_machine_7327_, 1); +lean_dec(v_unused_7382_); +v_unused_7383_ = lean_ctor_get(v_machine_7327_, 0); +lean_dec(v_unused_7383_); +v___x_7350_ = v_machine_7327_; +v_isShared_7351_ = v_isSharedCheck_7377_; +goto v_resetjp_7349_; +} +else +{ +lean_dec(v_machine_7327_); +v___x_7350_ = lean_box(0); +v_isShared_7351_ = v_isSharedCheck_7377_; +goto v_resetjp_7349_; +} +v_resetjp_7349_: +{ +lean_object* v_input_7352_; lean_object* v_messageHead_7353_; lean_object* v_messageCount_7354_; lean_object* v_bodyBytesRead_7355_; lean_object* v_headerBytesRead_7356_; lean_object* v___x_7358_; uint8_t v_isShared_7359_; uint8_t v_isSharedCheck_7375_; +v_input_7352_ = lean_ctor_get(v_reader_7329_, 1); +v_messageHead_7353_ = lean_ctor_get(v_reader_7329_, 2); +v_messageCount_7354_ = lean_ctor_get(v_reader_7329_, 3); +v_bodyBytesRead_7355_ = lean_ctor_get(v_reader_7329_, 4); +v_headerBytesRead_7356_ = lean_ctor_get(v_reader_7329_, 5); +v_isSharedCheck_7375_ = !lean_is_exclusive(v_reader_7329_); +if (v_isSharedCheck_7375_ == 0) +{ +lean_object* v_unused_7376_; +v_unused_7376_ = lean_ctor_get(v_reader_7329_, 0); +lean_dec(v_unused_7376_); +v___x_7358_ = v_reader_7329_; +v_isShared_7359_ = v_isSharedCheck_7375_; +goto v_resetjp_7357_; +} +else +{ +lean_inc(v_headerBytesRead_7356_); +lean_inc(v_bodyBytesRead_7355_); +lean_inc(v_messageCount_7354_); +lean_inc(v_messageHead_7353_); +lean_inc(v_input_7352_); +lean_dec(v_reader_7329_); +v___x_7358_ = lean_box(0); +v_isShared_7359_ = v_isSharedCheck_7375_; +goto v_resetjp_7357_; +} +v_resetjp_7357_: +{ +lean_object* v___x_7360_; lean_object* v___x_7361_; uint8_t v___x_7362_; lean_object* v___x_7364_; +v___x_7360_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7361_ = lean_box(7); +v___x_7362_ = 1; +if (v_isShared_7345_ == 0) +{ +lean_ctor_set(v___x_7344_, 2, v___x_7361_); +v___x_7364_ = v___x_7344_; +goto v_reusejp_7363_; +} +else +{ +lean_object* v_reuseFailAlloc_7374_; +v_reuseFailAlloc_7374_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7374_, 0, v_userData_7335_); +lean_ctor_set(v_reuseFailAlloc_7374_, 1, v_outputData_7336_); +lean_ctor_set(v_reuseFailAlloc_7374_, 2, v___x_7361_); +lean_ctor_set(v_reuseFailAlloc_7374_, 3, v_knownSize_7337_); +lean_ctor_set(v_reuseFailAlloc_7374_, 4, v_messageHead_7338_); +lean_ctor_set(v_reuseFailAlloc_7374_, 5, v_userDataBytes_7342_); +lean_ctor_set_uint8(v_reuseFailAlloc_7374_, sizeof(void*)*6, v_sentMessage_7339_); +lean_ctor_set_uint8(v_reuseFailAlloc_7374_, sizeof(void*)*6 + 2, v_omitBody_7341_); +v___x_7364_ = v_reuseFailAlloc_7374_; +goto v_reusejp_7363_; +} +v_reusejp_7363_: +{ +lean_object* v___x_7365_; lean_object* v___x_7367_; +lean_ctor_set_uint8(v___x_7364_, sizeof(void*)*6 + 1, v___x_7362_); +v___x_7365_ = lean_box(6); +if (v_isShared_7359_ == 0) +{ +lean_ctor_set(v___x_7358_, 0, v___x_7365_); +v___x_7367_ = v___x_7358_; +goto v_reusejp_7366_; +} +else +{ +lean_object* v_reuseFailAlloc_7373_; +v_reuseFailAlloc_7373_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7373_, 0, v___x_7365_); +lean_ctor_set(v_reuseFailAlloc_7373_, 1, v_input_7352_); +lean_ctor_set(v_reuseFailAlloc_7373_, 2, v_messageHead_7353_); +lean_ctor_set(v_reuseFailAlloc_7373_, 3, v_messageCount_7354_); +lean_ctor_set(v_reuseFailAlloc_7373_, 4, v_bodyBytesRead_7355_); +lean_ctor_set(v_reuseFailAlloc_7373_, 5, v_headerBytesRead_7356_); +v___x_7367_ = v_reuseFailAlloc_7373_; +goto v_reusejp_7366_; +} +v_reusejp_7366_: +{ +lean_object* v___x_7368_; lean_object* v___x_7369_; lean_object* v___x_7371_; +lean_ctor_set_uint8(v___x_7367_, sizeof(void*)*6, v___x_7362_); +v___x_7368_ = lean_box(3); +v___x_7369_ = lean_array_push(v_events_7331_, v___x_7368_); +if (v_isShared_7351_ == 0) +{ +lean_ctor_set(v___x_7350_, 4, v___x_7360_); +lean_ctor_set(v___x_7350_, 3, v___x_7369_); +lean_ctor_set(v___x_7350_, 1, v___x_7364_); +lean_ctor_set(v___x_7350_, 0, v___x_7367_); +v___x_7371_ = v___x_7350_; +goto v_reusejp_7370_; +} +else +{ +lean_object* v_reuseFailAlloc_7372_; +v_reuseFailAlloc_7372_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7372_, 0, v___x_7367_); +lean_ctor_set(v_reuseFailAlloc_7372_, 1, v___x_7364_); +lean_ctor_set(v_reuseFailAlloc_7372_, 2, v_config_7330_); +lean_ctor_set(v_reuseFailAlloc_7372_, 3, v___x_7369_); +lean_ctor_set(v_reuseFailAlloc_7372_, 4, v___x_7360_); +lean_ctor_set(v_reuseFailAlloc_7372_, 5, v_instant_7332_); +lean_ctor_set_uint8(v_reuseFailAlloc_7372_, sizeof(void*)*6 + 1, v_forcedFlush_7333_); +lean_ctor_set_uint8(v_reuseFailAlloc_7372_, sizeof(void*)*6 + 2, v_pullBodyStalled_7334_); +v___x_7371_ = v_reuseFailAlloc_7372_; +goto v_reusejp_7370_; +} +v_reusejp_7370_: +{ +lean_ctor_set_uint8(v___x_7371_, sizeof(void*)*6, v___x_7348_); +return v___x_7371_; +} +} +} +} +} +} +else +{ +lean_del_object(v___x_7344_); +lean_dec(v_userDataBytes_7342_); +lean_dec(v_messageHead_7338_); +lean_dec(v_knownSize_7337_); +lean_dec_ref(v_outputData_7336_); +lean_dec_ref(v_userData_7335_); +lean_dec_ref(v_reader_7329_); +if (v_userClosedBody_7340_ == 0) +{ +return v_machine_7327_; +} +else +{ +lean_object* v___x_7384_; +v___x_7384_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_7326_, v_machine_7327_); +return v___x_7384_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(uint8_t v_dir_7387_, lean_object* v_machine_7388_){ +_start: +{ +lean_object* v_writer_7389_; lean_object* v_reader_7390_; lean_object* v_config_7391_; lean_object* v_events_7392_; lean_object* v_error_7393_; lean_object* v_instant_7394_; uint8_t v_keepAlive_7395_; uint8_t v_forcedFlush_7396_; uint8_t v_pullBodyStalled_7397_; lean_object* v___x_7399_; uint8_t v_isShared_7400_; uint8_t v_isSharedCheck_7423_; +v_writer_7389_ = lean_ctor_get(v_machine_7388_, 1); +v_reader_7390_ = lean_ctor_get(v_machine_7388_, 0); +v_config_7391_ = lean_ctor_get(v_machine_7388_, 2); +v_events_7392_ = lean_ctor_get(v_machine_7388_, 3); +v_error_7393_ = lean_ctor_get(v_machine_7388_, 4); +v_instant_7394_ = lean_ctor_get(v_machine_7388_, 5); +v_keepAlive_7395_ = lean_ctor_get_uint8(v_machine_7388_, sizeof(void*)*6); +v_forcedFlush_7396_ = lean_ctor_get_uint8(v_machine_7388_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7397_ = lean_ctor_get_uint8(v_machine_7388_, sizeof(void*)*6 + 2); +v_isSharedCheck_7423_ = !lean_is_exclusive(v_machine_7388_); +if (v_isSharedCheck_7423_ == 0) +{ +v___x_7399_ = v_machine_7388_; +v_isShared_7400_ = v_isSharedCheck_7423_; +goto v_resetjp_7398_; +} +else +{ +lean_inc(v_instant_7394_); +lean_inc(v_error_7393_); +lean_inc(v_events_7392_); +lean_inc(v_config_7391_); +lean_inc(v_writer_7389_); +lean_inc(v_reader_7390_); +lean_dec(v_machine_7388_); +v___x_7399_ = lean_box(0); +v_isShared_7400_ = v_isSharedCheck_7423_; +goto v_resetjp_7398_; +} +v_resetjp_7398_: +{ +lean_object* v_outputData_7401_; lean_object* v_state_7402_; lean_object* v_knownSize_7403_; lean_object* v_messageHead_7404_; uint8_t v_sentMessage_7405_; uint8_t v_userClosedBody_7406_; uint8_t v_omitBody_7407_; lean_object* v___x_7409_; uint8_t v_isShared_7410_; uint8_t v_isSharedCheck_7420_; +v_outputData_7401_ = lean_ctor_get(v_writer_7389_, 1); +v_state_7402_ = lean_ctor_get(v_writer_7389_, 2); +v_knownSize_7403_ = lean_ctor_get(v_writer_7389_, 3); +v_messageHead_7404_ = lean_ctor_get(v_writer_7389_, 4); +v_sentMessage_7405_ = lean_ctor_get_uint8(v_writer_7389_, sizeof(void*)*6); +v_userClosedBody_7406_ = lean_ctor_get_uint8(v_writer_7389_, sizeof(void*)*6 + 1); +v_omitBody_7407_ = lean_ctor_get_uint8(v_writer_7389_, sizeof(void*)*6 + 2); +v_isSharedCheck_7420_ = !lean_is_exclusive(v_writer_7389_); +if (v_isSharedCheck_7420_ == 0) +{ +lean_object* v_unused_7421_; lean_object* v_unused_7422_; +v_unused_7421_ = lean_ctor_get(v_writer_7389_, 5); +lean_dec(v_unused_7421_); +v_unused_7422_ = lean_ctor_get(v_writer_7389_, 0); +lean_dec(v_unused_7422_); +v___x_7409_ = v_writer_7389_; +v_isShared_7410_ = v_isSharedCheck_7420_; +goto v_resetjp_7408_; +} +else +{ +lean_inc(v_messageHead_7404_); +lean_inc(v_knownSize_7403_); +lean_inc(v_state_7402_); +lean_inc(v_outputData_7401_); +lean_dec(v_writer_7389_); +v___x_7409_ = lean_box(0); +v_isShared_7410_ = v_isSharedCheck_7420_; +goto v_resetjp_7408_; +} +v_resetjp_7408_: +{ +lean_object* v___x_7411_; lean_object* v___x_7412_; lean_object* v___x_7414_; +v___x_7411_ = lean_unsigned_to_nat(0u); +v___x_7412_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_suppressOutgoingBody___redArg___closed__0)); +if (v_isShared_7410_ == 0) +{ +lean_ctor_set(v___x_7409_, 5, v___x_7411_); +lean_ctor_set(v___x_7409_, 0, v___x_7412_); +v___x_7414_ = v___x_7409_; +goto v_reusejp_7413_; +} +else +{ +lean_object* v_reuseFailAlloc_7419_; +v_reuseFailAlloc_7419_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7419_, 0, v___x_7412_); +lean_ctor_set(v_reuseFailAlloc_7419_, 1, v_outputData_7401_); +lean_ctor_set(v_reuseFailAlloc_7419_, 2, v_state_7402_); +lean_ctor_set(v_reuseFailAlloc_7419_, 3, v_knownSize_7403_); +lean_ctor_set(v_reuseFailAlloc_7419_, 4, v_messageHead_7404_); +lean_ctor_set(v_reuseFailAlloc_7419_, 5, v___x_7411_); +lean_ctor_set_uint8(v_reuseFailAlloc_7419_, sizeof(void*)*6, v_sentMessage_7405_); +lean_ctor_set_uint8(v_reuseFailAlloc_7419_, sizeof(void*)*6 + 1, v_userClosedBody_7406_); +lean_ctor_set_uint8(v_reuseFailAlloc_7419_, sizeof(void*)*6 + 2, v_omitBody_7407_); +v___x_7414_ = v_reuseFailAlloc_7419_; +goto v_reusejp_7413_; +} +v_reusejp_7413_: +{ +lean_object* v___x_7416_; +if (v_isShared_7400_ == 0) +{ +lean_ctor_set(v___x_7399_, 1, v___x_7414_); +v___x_7416_ = v___x_7399_; +goto v_reusejp_7415_; +} +else +{ +lean_object* v_reuseFailAlloc_7418_; +v_reuseFailAlloc_7418_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7418_, 0, v_reader_7390_); +lean_ctor_set(v_reuseFailAlloc_7418_, 1, v___x_7414_); +lean_ctor_set(v_reuseFailAlloc_7418_, 2, v_config_7391_); +lean_ctor_set(v_reuseFailAlloc_7418_, 3, v_events_7392_); +lean_ctor_set(v_reuseFailAlloc_7418_, 4, v_error_7393_); +lean_ctor_set(v_reuseFailAlloc_7418_, 5, v_instant_7394_); +lean_ctor_set_uint8(v_reuseFailAlloc_7418_, sizeof(void*)*6, v_keepAlive_7395_); +lean_ctor_set_uint8(v_reuseFailAlloc_7418_, sizeof(void*)*6 + 1, v_forcedFlush_7396_); +lean_ctor_set_uint8(v_reuseFailAlloc_7418_, sizeof(void*)*6 + 2, v_pullBodyStalled_7397_); +v___x_7416_ = v_reuseFailAlloc_7418_; +goto v_reusejp_7415_; +} +v_reusejp_7415_: +{ +lean_object* v___x_7417_; +v___x_7417_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_7387_, v___x_7416_); +return v___x_7417_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(uint8_t v_dir_7424_, lean_object* v_machine_7425_, lean_object* v_n_7426_){ +_start: +{ +lean_object* v_writer_7427_; uint8_t v_omitBody_7428_; +v_writer_7427_ = lean_ctor_get(v_machine_7425_, 1); +lean_inc_ref(v_writer_7427_); +v_omitBody_7428_ = lean_ctor_get_uint8(v_writer_7427_, sizeof(void*)*6 + 2); +if (v_omitBody_7428_ == 0) +{ +lean_object* v_reader_7429_; lean_object* v_config_7430_; lean_object* v_events_7431_; lean_object* v_instant_7432_; uint8_t v_forcedFlush_7433_; uint8_t v_pullBodyStalled_7434_; lean_object* v_userData_7435_; lean_object* v_outputData_7436_; lean_object* v_knownSize_7437_; lean_object* v_messageHead_7438_; uint8_t v_sentMessage_7439_; uint8_t v_userClosedBody_7440_; lean_object* v_userDataBytes_7441_; lean_object* v___x_7443_; uint8_t v_isShared_7444_; uint8_t v_isSharedCheck_7485_; +v_reader_7429_ = lean_ctor_get(v_machine_7425_, 0); +lean_inc_ref(v_reader_7429_); +v_config_7430_ = lean_ctor_get(v_machine_7425_, 2); +v_events_7431_ = lean_ctor_get(v_machine_7425_, 3); +v_instant_7432_ = lean_ctor_get(v_machine_7425_, 5); +v_forcedFlush_7433_ = lean_ctor_get_uint8(v_machine_7425_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7434_ = lean_ctor_get_uint8(v_machine_7425_, sizeof(void*)*6 + 2); +v_userData_7435_ = lean_ctor_get(v_writer_7427_, 0); +v_outputData_7436_ = lean_ctor_get(v_writer_7427_, 1); +v_knownSize_7437_ = lean_ctor_get(v_writer_7427_, 3); +v_messageHead_7438_ = lean_ctor_get(v_writer_7427_, 4); +v_sentMessage_7439_ = lean_ctor_get_uint8(v_writer_7427_, sizeof(void*)*6); +v_userClosedBody_7440_ = lean_ctor_get_uint8(v_writer_7427_, sizeof(void*)*6 + 1); +v_userDataBytes_7441_ = lean_ctor_get(v_writer_7427_, 5); +v_isSharedCheck_7485_ = !lean_is_exclusive(v_writer_7427_); +if (v_isSharedCheck_7485_ == 0) +{ +lean_object* v_unused_7486_; +v_unused_7486_ = lean_ctor_get(v_writer_7427_, 2); +lean_dec(v_unused_7486_); +v___x_7443_ = v_writer_7427_; +v_isShared_7444_ = v_isSharedCheck_7485_; +goto v_resetjp_7442_; +} +else +{ +lean_inc(v_userDataBytes_7441_); +lean_inc(v_messageHead_7438_); +lean_inc(v_knownSize_7437_); +lean_inc(v_outputData_7436_); +lean_inc(v_userData_7435_); +lean_dec(v_writer_7427_); +v___x_7443_ = lean_box(0); +v_isShared_7444_ = v_isSharedCheck_7485_; +goto v_resetjp_7442_; +} +v_resetjp_7442_: +{ +lean_object* v___x_7445_; uint8_t v___x_7446_; +v___x_7445_ = lean_unsigned_to_nat(0u); +v___x_7446_ = lean_nat_dec_eq(v_n_7426_, v___x_7445_); +if (v___x_7446_ == 0) +{ +lean_object* v___x_7447_; uint8_t v___x_7448_; +v___x_7447_ = lean_array_get_size(v_userData_7435_); +v___x_7448_ = lean_nat_dec_lt(v___x_7445_, v___x_7447_); +if (v___x_7448_ == 0) +{ +lean_dec(v_n_7426_); +if (v_userClosedBody_7440_ == 0) +{ +lean_del_object(v___x_7443_); +lean_dec(v_userDataBytes_7441_); +lean_dec(v_messageHead_7438_); +lean_dec(v_knownSize_7437_); +lean_dec_ref(v_outputData_7436_); +lean_dec_ref(v_userData_7435_); +lean_dec_ref(v_reader_7429_); +return v_machine_7425_; +} +else +{ +lean_object* v___x_7450_; uint8_t v_isShared_7451_; uint8_t v_isSharedCheck_7476_; +lean_inc(v_instant_7432_); +lean_inc_ref(v_events_7431_); +lean_inc_ref(v_config_7430_); +v_isSharedCheck_7476_ = !lean_is_exclusive(v_machine_7425_); +if (v_isSharedCheck_7476_ == 0) +{ +lean_object* v_unused_7477_; lean_object* v_unused_7478_; lean_object* v_unused_7479_; lean_object* v_unused_7480_; lean_object* v_unused_7481_; lean_object* v_unused_7482_; +v_unused_7477_ = lean_ctor_get(v_machine_7425_, 5); +lean_dec(v_unused_7477_); +v_unused_7478_ = lean_ctor_get(v_machine_7425_, 4); +lean_dec(v_unused_7478_); +v_unused_7479_ = lean_ctor_get(v_machine_7425_, 3); +lean_dec(v_unused_7479_); +v_unused_7480_ = lean_ctor_get(v_machine_7425_, 2); +lean_dec(v_unused_7480_); +v_unused_7481_ = lean_ctor_get(v_machine_7425_, 1); +lean_dec(v_unused_7481_); +v_unused_7482_ = lean_ctor_get(v_machine_7425_, 0); +lean_dec(v_unused_7482_); +v___x_7450_ = v_machine_7425_; +v_isShared_7451_ = v_isSharedCheck_7476_; +goto v_resetjp_7449_; +} +else +{ +lean_dec(v_machine_7425_); +v___x_7450_ = lean_box(0); +v_isShared_7451_ = v_isSharedCheck_7476_; +goto v_resetjp_7449_; +} +v_resetjp_7449_: +{ +lean_object* v_input_7452_; lean_object* v_messageHead_7453_; lean_object* v_messageCount_7454_; lean_object* v_bodyBytesRead_7455_; lean_object* v_headerBytesRead_7456_; lean_object* v___x_7458_; uint8_t v_isShared_7459_; uint8_t v_isSharedCheck_7474_; +v_input_7452_ = lean_ctor_get(v_reader_7429_, 1); +v_messageHead_7453_ = lean_ctor_get(v_reader_7429_, 2); +v_messageCount_7454_ = lean_ctor_get(v_reader_7429_, 3); +v_bodyBytesRead_7455_ = lean_ctor_get(v_reader_7429_, 4); +v_headerBytesRead_7456_ = lean_ctor_get(v_reader_7429_, 5); +v_isSharedCheck_7474_ = !lean_is_exclusive(v_reader_7429_); +if (v_isSharedCheck_7474_ == 0) +{ +lean_object* v_unused_7475_; +v_unused_7475_ = lean_ctor_get(v_reader_7429_, 0); +lean_dec(v_unused_7475_); +v___x_7458_ = v_reader_7429_; +v_isShared_7459_ = v_isSharedCheck_7474_; +goto v_resetjp_7457_; +} +else +{ +lean_inc(v_headerBytesRead_7456_); +lean_inc(v_bodyBytesRead_7455_); +lean_inc(v_messageCount_7454_); +lean_inc(v_messageHead_7453_); +lean_inc(v_input_7452_); +lean_dec(v_reader_7429_); +v___x_7458_ = lean_box(0); +v_isShared_7459_ = v_isSharedCheck_7474_; +goto v_resetjp_7457_; +} +v_resetjp_7457_: +{ +lean_object* v___x_7460_; lean_object* v___x_7461_; lean_object* v___x_7463_; +v___x_7460_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7461_ = lean_box(7); +if (v_isShared_7444_ == 0) +{ +lean_ctor_set(v___x_7443_, 2, v___x_7461_); +v___x_7463_ = v___x_7443_; +goto v_reusejp_7462_; +} +else +{ +lean_object* v_reuseFailAlloc_7473_; +v_reuseFailAlloc_7473_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7473_, 0, v_userData_7435_); +lean_ctor_set(v_reuseFailAlloc_7473_, 1, v_outputData_7436_); +lean_ctor_set(v_reuseFailAlloc_7473_, 2, v___x_7461_); +lean_ctor_set(v_reuseFailAlloc_7473_, 3, v_knownSize_7437_); +lean_ctor_set(v_reuseFailAlloc_7473_, 4, v_messageHead_7438_); +lean_ctor_set(v_reuseFailAlloc_7473_, 5, v_userDataBytes_7441_); +lean_ctor_set_uint8(v_reuseFailAlloc_7473_, sizeof(void*)*6, v_sentMessage_7439_); +lean_ctor_set_uint8(v_reuseFailAlloc_7473_, sizeof(void*)*6 + 1, v_userClosedBody_7440_); +lean_ctor_set_uint8(v_reuseFailAlloc_7473_, sizeof(void*)*6 + 2, v_omitBody_7428_); +v___x_7463_ = v_reuseFailAlloc_7473_; +goto v_reusejp_7462_; +} +v_reusejp_7462_: +{ +lean_object* v___x_7464_; lean_object* v___x_7466_; +v___x_7464_ = lean_box(6); +if (v_isShared_7459_ == 0) +{ +lean_ctor_set(v___x_7458_, 0, v___x_7464_); +v___x_7466_ = v___x_7458_; +goto v_reusejp_7465_; +} +else +{ +lean_object* v_reuseFailAlloc_7472_; +v_reuseFailAlloc_7472_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7472_, 0, v___x_7464_); +lean_ctor_set(v_reuseFailAlloc_7472_, 1, v_input_7452_); +lean_ctor_set(v_reuseFailAlloc_7472_, 2, v_messageHead_7453_); +lean_ctor_set(v_reuseFailAlloc_7472_, 3, v_messageCount_7454_); +lean_ctor_set(v_reuseFailAlloc_7472_, 4, v_bodyBytesRead_7455_); +lean_ctor_set(v_reuseFailAlloc_7472_, 5, v_headerBytesRead_7456_); +v___x_7466_ = v_reuseFailAlloc_7472_; +goto v_reusejp_7465_; +} +v_reusejp_7465_: +{ +lean_object* v___x_7467_; lean_object* v___x_7468_; lean_object* v___x_7470_; +lean_ctor_set_uint8(v___x_7466_, sizeof(void*)*6, v_userClosedBody_7440_); +v___x_7467_ = lean_box(3); +v___x_7468_ = lean_array_push(v_events_7431_, v___x_7467_); +if (v_isShared_7451_ == 0) +{ +lean_ctor_set(v___x_7450_, 4, v___x_7460_); +lean_ctor_set(v___x_7450_, 3, v___x_7468_); +lean_ctor_set(v___x_7450_, 1, v___x_7463_); +lean_ctor_set(v___x_7450_, 0, v___x_7466_); +v___x_7470_ = v___x_7450_; +goto v_reusejp_7469_; +} +else +{ +lean_object* v_reuseFailAlloc_7471_; +v_reuseFailAlloc_7471_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7471_, 0, v___x_7466_); +lean_ctor_set(v_reuseFailAlloc_7471_, 1, v___x_7463_); +lean_ctor_set(v_reuseFailAlloc_7471_, 2, v_config_7430_); +lean_ctor_set(v_reuseFailAlloc_7471_, 3, v___x_7468_); +lean_ctor_set(v_reuseFailAlloc_7471_, 4, v___x_7460_); +lean_ctor_set(v_reuseFailAlloc_7471_, 5, v_instant_7432_); +lean_ctor_set_uint8(v_reuseFailAlloc_7471_, sizeof(void*)*6 + 1, v_forcedFlush_7433_); +lean_ctor_set_uint8(v_reuseFailAlloc_7471_, sizeof(void*)*6 + 2, v_pullBodyStalled_7434_); +v___x_7470_ = v_reuseFailAlloc_7471_; +goto v_reusejp_7469_; +} +v_reusejp_7469_: +{ +lean_ctor_set_uint8(v___x_7470_, sizeof(void*)*6, v_omitBody_7428_); +return v___x_7470_; +} +} +} +} +} +} +} +else +{ +lean_object* v___x_7483_; +lean_del_object(v___x_7443_); +lean_dec(v_userDataBytes_7441_); +lean_dec(v_messageHead_7438_); +lean_dec(v_knownSize_7437_); +lean_dec_ref(v_outputData_7436_); +lean_dec_ref(v_userData_7435_); +lean_dec_ref(v_reader_7429_); +v___x_7483_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(v_dir_7424_, v_machine_7425_, v_n_7426_); +return v___x_7483_; +} +} +else +{ +lean_object* v___x_7484_; +lean_del_object(v___x_7443_); +lean_dec(v_userDataBytes_7441_); +lean_dec(v_messageHead_7438_); +lean_dec(v_knownSize_7437_); +lean_dec_ref(v_outputData_7436_); +lean_dec_ref(v_userData_7435_); +lean_dec_ref(v_reader_7429_); +lean_dec(v_n_7426_); +v___x_7484_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(v_dir_7424_, v_machine_7425_); +return v___x_7484_; +} +} +} +else +{ +lean_object* v___x_7487_; +lean_dec_ref(v_writer_7427_); +lean_dec(v_n_7426_); +v___x_7487_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_7424_, v_machine_7425_); +return v___x_7487_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(uint8_t v_dir_7488_, lean_object* v_machine_7489_){ +_start: +{ +lean_object* v_writer_7490_; uint8_t v_omitBody_7491_; +v_writer_7490_ = lean_ctor_get(v_machine_7489_, 1); +v_omitBody_7491_ = lean_ctor_get_uint8(v_writer_7490_, sizeof(void*)*6 + 2); +if (v_omitBody_7491_ == 0) +{ +uint8_t v_userClosedBody_7492_; +v_userClosedBody_7492_ = lean_ctor_get_uint8(v_writer_7490_, sizeof(void*)*6 + 1); +if (v_userClosedBody_7492_ == 0) +{ +lean_object* v_reader_7493_; lean_object* v_config_7494_; lean_object* v_events_7495_; lean_object* v_error_7496_; lean_object* v_instant_7497_; uint8_t v_keepAlive_7498_; uint8_t v_forcedFlush_7499_; uint8_t v_pullBodyStalled_7500_; lean_object* v_userData_7501_; lean_object* v___x_7502_; lean_object* v___x_7503_; uint8_t v___x_7504_; +v_reader_7493_ = lean_ctor_get(v_machine_7489_, 0); +v_config_7494_ = lean_ctor_get(v_machine_7489_, 2); +v_events_7495_ = lean_ctor_get(v_machine_7489_, 3); +v_error_7496_ = lean_ctor_get(v_machine_7489_, 4); +v_instant_7497_ = lean_ctor_get(v_machine_7489_, 5); +v_keepAlive_7498_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6); +v_forcedFlush_7499_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7500_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6 + 2); +v_userData_7501_ = lean_ctor_get(v_writer_7490_, 0); +v___x_7502_ = lean_unsigned_to_nat(0u); +v___x_7503_ = lean_array_get_size(v_userData_7501_); +v___x_7504_ = lean_nat_dec_lt(v___x_7502_, v___x_7503_); +if (v___x_7504_ == 0) +{ +return v_machine_7489_; +} +else +{ +lean_object* v___x_7506_; uint8_t v_isShared_7507_; uint8_t v_isSharedCheck_7513_; +lean_inc(v_instant_7497_); +lean_inc(v_error_7496_); +lean_inc_ref(v_events_7495_); +lean_inc_ref(v_config_7494_); +lean_inc_ref(v_reader_7493_); +lean_inc_ref(v_writer_7490_); +v_isSharedCheck_7513_ = !lean_is_exclusive(v_machine_7489_); +if (v_isSharedCheck_7513_ == 0) +{ +lean_object* v_unused_7514_; lean_object* v_unused_7515_; lean_object* v_unused_7516_; lean_object* v_unused_7517_; lean_object* v_unused_7518_; lean_object* v_unused_7519_; +v_unused_7514_ = lean_ctor_get(v_machine_7489_, 5); +lean_dec(v_unused_7514_); +v_unused_7515_ = lean_ctor_get(v_machine_7489_, 4); +lean_dec(v_unused_7515_); +v_unused_7516_ = lean_ctor_get(v_machine_7489_, 3); +lean_dec(v_unused_7516_); +v_unused_7517_ = lean_ctor_get(v_machine_7489_, 2); +lean_dec(v_unused_7517_); +v_unused_7518_ = lean_ctor_get(v_machine_7489_, 1); +lean_dec(v_unused_7518_); +v_unused_7519_ = lean_ctor_get(v_machine_7489_, 0); +lean_dec(v_unused_7519_); +v___x_7506_ = v_machine_7489_; +v_isShared_7507_ = v_isSharedCheck_7513_; +goto v_resetjp_7505_; +} +else +{ +lean_dec(v_machine_7489_); +v___x_7506_ = lean_box(0); +v_isShared_7507_ = v_isSharedCheck_7513_; +goto v_resetjp_7505_; +} +v_resetjp_7505_: +{ +lean_object* v___x_7508_; lean_object* v___x_7510_; +v___x_7508_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_7490_); +if (v_isShared_7507_ == 0) +{ +lean_ctor_set(v___x_7506_, 1, v___x_7508_); +v___x_7510_ = v___x_7506_; +goto v_reusejp_7509_; +} +else +{ +lean_object* v_reuseFailAlloc_7512_; +v_reuseFailAlloc_7512_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7512_, 0, v_reader_7493_); +lean_ctor_set(v_reuseFailAlloc_7512_, 1, v___x_7508_); +lean_ctor_set(v_reuseFailAlloc_7512_, 2, v_config_7494_); +lean_ctor_set(v_reuseFailAlloc_7512_, 3, v_events_7495_); +lean_ctor_set(v_reuseFailAlloc_7512_, 4, v_error_7496_); +lean_ctor_set(v_reuseFailAlloc_7512_, 5, v_instant_7497_); +lean_ctor_set_uint8(v_reuseFailAlloc_7512_, sizeof(void*)*6, v_keepAlive_7498_); +lean_ctor_set_uint8(v_reuseFailAlloc_7512_, sizeof(void*)*6 + 1, v_forcedFlush_7499_); +lean_ctor_set_uint8(v_reuseFailAlloc_7512_, sizeof(void*)*6 + 2, v_pullBodyStalled_7500_); +v___x_7510_ = v_reuseFailAlloc_7512_; +goto v_reusejp_7509_; +} +v_reusejp_7509_: +{ +lean_object* v___x_7511_; +v___x_7511_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_7488_, v___x_7510_); +return v___x_7511_; +} +} +} +} +else +{ +lean_object* v_reader_7520_; lean_object* v_config_7521_; lean_object* v_events_7522_; lean_object* v_error_7523_; lean_object* v_instant_7524_; uint8_t v_keepAlive_7525_; uint8_t v_forcedFlush_7526_; uint8_t v_pullBodyStalled_7527_; lean_object* v___x_7529_; uint8_t v_isShared_7530_; uint8_t v_isSharedCheck_7536_; +lean_inc_ref(v_writer_7490_); +v_reader_7520_ = lean_ctor_get(v_machine_7489_, 0); +v_config_7521_ = lean_ctor_get(v_machine_7489_, 2); +v_events_7522_ = lean_ctor_get(v_machine_7489_, 3); +v_error_7523_ = lean_ctor_get(v_machine_7489_, 4); +v_instant_7524_ = lean_ctor_get(v_machine_7489_, 5); +v_keepAlive_7525_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6); +v_forcedFlush_7526_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7527_ = lean_ctor_get_uint8(v_machine_7489_, sizeof(void*)*6 + 2); +v_isSharedCheck_7536_ = !lean_is_exclusive(v_machine_7489_); +if (v_isSharedCheck_7536_ == 0) +{ +lean_object* v_unused_7537_; +v_unused_7537_ = lean_ctor_get(v_machine_7489_, 1); +lean_dec(v_unused_7537_); +v___x_7529_ = v_machine_7489_; +v_isShared_7530_ = v_isSharedCheck_7536_; +goto v_resetjp_7528_; +} +else +{ +lean_inc(v_instant_7524_); +lean_inc(v_error_7523_); +lean_inc(v_events_7522_); +lean_inc(v_config_7521_); +lean_inc(v_reader_7520_); +lean_dec(v_machine_7489_); +v___x_7529_ = lean_box(0); +v_isShared_7530_ = v_isSharedCheck_7536_; +goto v_resetjp_7528_; +} +v_resetjp_7528_: +{ +lean_object* v___x_7531_; lean_object* v___x_7533_; +v___x_7531_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(v_writer_7490_); +if (v_isShared_7530_ == 0) +{ +lean_ctor_set(v___x_7529_, 1, v___x_7531_); +v___x_7533_ = v___x_7529_; +goto v_reusejp_7532_; +} +else +{ +lean_object* v_reuseFailAlloc_7535_; +v_reuseFailAlloc_7535_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7535_, 0, v_reader_7520_); +lean_ctor_set(v_reuseFailAlloc_7535_, 1, v___x_7531_); +lean_ctor_set(v_reuseFailAlloc_7535_, 2, v_config_7521_); +lean_ctor_set(v_reuseFailAlloc_7535_, 3, v_events_7522_); +lean_ctor_set(v_reuseFailAlloc_7535_, 4, v_error_7523_); +lean_ctor_set(v_reuseFailAlloc_7535_, 5, v_instant_7524_); +lean_ctor_set_uint8(v_reuseFailAlloc_7535_, sizeof(void*)*6, v_keepAlive_7525_); +lean_ctor_set_uint8(v_reuseFailAlloc_7535_, sizeof(void*)*6 + 1, v_forcedFlush_7526_); +lean_ctor_set_uint8(v_reuseFailAlloc_7535_, sizeof(void*)*6 + 2, v_pullBodyStalled_7527_); +v___x_7533_ = v_reuseFailAlloc_7535_; +goto v_reusejp_7532_; +} +v_reusejp_7532_: +{ +lean_object* v___x_7534_; +v___x_7534_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_7488_, v___x_7533_); +return v___x_7534_; +} +} +} +} +else +{ +lean_object* v___x_7538_; +v___x_7538_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_7488_, v_machine_7489_); +return v___x_7538_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody(uint8_t v_dir_7539_, lean_object* v_machine_7540_){ +_start: +{ +lean_object* v_writer_7541_; uint8_t v_omitBody_7542_; +v_writer_7541_ = lean_ctor_get(v_machine_7540_, 1); +v_omitBody_7542_ = lean_ctor_get_uint8(v_writer_7541_, sizeof(void*)*6 + 2); +if (v_omitBody_7542_ == 0) +{ +uint8_t v_userClosedBody_7543_; +v_userClosedBody_7543_ = lean_ctor_get_uint8(v_writer_7541_, sizeof(void*)*6 + 1); +if (v_userClosedBody_7543_ == 0) +{ +lean_object* v_reader_7544_; lean_object* v_config_7545_; lean_object* v_events_7546_; lean_object* v_error_7547_; lean_object* v_instant_7548_; uint8_t v_keepAlive_7549_; uint8_t v_forcedFlush_7550_; uint8_t v_pullBodyStalled_7551_; lean_object* v_userData_7552_; lean_object* v___x_7553_; lean_object* v___x_7554_; uint8_t v___x_7555_; +v_reader_7544_ = lean_ctor_get(v_machine_7540_, 0); +v_config_7545_ = lean_ctor_get(v_machine_7540_, 2); +v_events_7546_ = lean_ctor_get(v_machine_7540_, 3); +v_error_7547_ = lean_ctor_get(v_machine_7540_, 4); +v_instant_7548_ = lean_ctor_get(v_machine_7540_, 5); +v_keepAlive_7549_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6); +v_forcedFlush_7550_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7551_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6 + 2); +v_userData_7552_ = lean_ctor_get(v_writer_7541_, 0); +v___x_7553_ = lean_unsigned_to_nat(0u); +v___x_7554_ = lean_array_get_size(v_userData_7552_); +v___x_7555_ = lean_nat_dec_lt(v___x_7553_, v___x_7554_); +if (v___x_7555_ == 0) +{ +return v_machine_7540_; +} +else +{ +lean_object* v___x_7557_; uint8_t v_isShared_7558_; uint8_t v_isSharedCheck_7564_; +lean_inc(v_instant_7548_); +lean_inc(v_error_7547_); +lean_inc_ref(v_events_7546_); +lean_inc_ref(v_config_7545_); +lean_inc_ref(v_reader_7544_); +lean_inc_ref(v_writer_7541_); +v_isSharedCheck_7564_ = !lean_is_exclusive(v_machine_7540_); +if (v_isSharedCheck_7564_ == 0) +{ +lean_object* v_unused_7565_; lean_object* v_unused_7566_; lean_object* v_unused_7567_; lean_object* v_unused_7568_; lean_object* v_unused_7569_; lean_object* v_unused_7570_; +v_unused_7565_ = lean_ctor_get(v_machine_7540_, 5); +lean_dec(v_unused_7565_); +v_unused_7566_ = lean_ctor_get(v_machine_7540_, 4); +lean_dec(v_unused_7566_); +v_unused_7567_ = lean_ctor_get(v_machine_7540_, 3); +lean_dec(v_unused_7567_); +v_unused_7568_ = lean_ctor_get(v_machine_7540_, 2); +lean_dec(v_unused_7568_); +v_unused_7569_ = lean_ctor_get(v_machine_7540_, 1); +lean_dec(v_unused_7569_); +v_unused_7570_ = lean_ctor_get(v_machine_7540_, 0); +lean_dec(v_unused_7570_); +v___x_7557_ = v_machine_7540_; +v_isShared_7558_ = v_isSharedCheck_7564_; +goto v_resetjp_7556_; +} +else +{ +lean_dec(v_machine_7540_); +v___x_7557_ = lean_box(0); +v_isShared_7558_ = v_isSharedCheck_7564_; +goto v_resetjp_7556_; +} +v_resetjp_7556_: +{ +lean_object* v___x_7559_; lean_object* v___x_7561_; +v___x_7559_ = l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(v_writer_7541_); +if (v_isShared_7558_ == 0) +{ +lean_ctor_set(v___x_7557_, 1, v___x_7559_); +v___x_7561_ = v___x_7557_; +goto v_reusejp_7560_; +} +else +{ +lean_object* v_reuseFailAlloc_7563_; +v_reuseFailAlloc_7563_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7563_, 0, v_reader_7544_); +lean_ctor_set(v_reuseFailAlloc_7563_, 1, v___x_7559_); +lean_ctor_set(v_reuseFailAlloc_7563_, 2, v_config_7545_); +lean_ctor_set(v_reuseFailAlloc_7563_, 3, v_events_7546_); +lean_ctor_set(v_reuseFailAlloc_7563_, 4, v_error_7547_); +lean_ctor_set(v_reuseFailAlloc_7563_, 5, v_instant_7548_); +lean_ctor_set_uint8(v_reuseFailAlloc_7563_, sizeof(void*)*6, v_keepAlive_7549_); +lean_ctor_set_uint8(v_reuseFailAlloc_7563_, sizeof(void*)*6 + 1, v_forcedFlush_7550_); +lean_ctor_set_uint8(v_reuseFailAlloc_7563_, sizeof(void*)*6 + 2, v_pullBodyStalled_7551_); +v___x_7561_ = v_reuseFailAlloc_7563_; +goto v_reusejp_7560_; +} +v_reusejp_7560_: +{ +lean_object* v___x_7562_; +v___x_7562_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_7539_, v___x_7561_); +return v___x_7562_; +} +} +} +} +else +{ +lean_object* v_reader_7571_; lean_object* v_config_7572_; lean_object* v_events_7573_; lean_object* v_error_7574_; lean_object* v_instant_7575_; uint8_t v_keepAlive_7576_; uint8_t v_forcedFlush_7577_; uint8_t v_pullBodyStalled_7578_; lean_object* v___x_7580_; uint8_t v_isShared_7581_; uint8_t v_isSharedCheck_7587_; +lean_inc_ref(v_writer_7541_); +v_reader_7571_ = lean_ctor_get(v_machine_7540_, 0); +v_config_7572_ = lean_ctor_get(v_machine_7540_, 2); +v_events_7573_ = lean_ctor_get(v_machine_7540_, 3); +v_error_7574_ = lean_ctor_get(v_machine_7540_, 4); +v_instant_7575_ = lean_ctor_get(v_machine_7540_, 5); +v_keepAlive_7576_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6); +v_forcedFlush_7577_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7578_ = lean_ctor_get_uint8(v_machine_7540_, sizeof(void*)*6 + 2); +v_isSharedCheck_7587_ = !lean_is_exclusive(v_machine_7540_); +if (v_isSharedCheck_7587_ == 0) +{ +lean_object* v_unused_7588_; +v_unused_7588_ = lean_ctor_get(v_machine_7540_, 1); +lean_dec(v_unused_7588_); +v___x_7580_ = v_machine_7540_; +v_isShared_7581_ = v_isSharedCheck_7587_; +goto v_resetjp_7579_; +} +else +{ +lean_inc(v_instant_7575_); +lean_inc(v_error_7574_); +lean_inc(v_events_7573_); +lean_inc(v_config_7572_); +lean_inc(v_reader_7571_); +lean_dec(v_machine_7540_); +v___x_7580_ = lean_box(0); +v_isShared_7581_ = v_isSharedCheck_7587_; +goto v_resetjp_7579_; +} +v_resetjp_7579_: +{ +lean_object* v___x_7582_; lean_object* v___x_7584_; +v___x_7582_ = l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(v_writer_7541_); +if (v_isShared_7581_ == 0) +{ +lean_ctor_set(v___x_7580_, 1, v___x_7582_); +v___x_7584_ = v___x_7580_; +goto v_reusejp_7583_; +} +else +{ +lean_object* v_reuseFailAlloc_7586_; +v_reuseFailAlloc_7586_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7586_, 0, v_reader_7571_); +lean_ctor_set(v_reuseFailAlloc_7586_, 1, v___x_7582_); +lean_ctor_set(v_reuseFailAlloc_7586_, 2, v_config_7572_); +lean_ctor_set(v_reuseFailAlloc_7586_, 3, v_events_7573_); +lean_ctor_set(v_reuseFailAlloc_7586_, 4, v_error_7574_); +lean_ctor_set(v_reuseFailAlloc_7586_, 5, v_instant_7575_); +lean_ctor_set_uint8(v_reuseFailAlloc_7586_, sizeof(void*)*6, v_keepAlive_7576_); +lean_ctor_set_uint8(v_reuseFailAlloc_7586_, sizeof(void*)*6 + 1, v_forcedFlush_7577_); +lean_ctor_set_uint8(v_reuseFailAlloc_7586_, sizeof(void*)*6 + 2, v_pullBodyStalled_7578_); +v___x_7584_ = v_reuseFailAlloc_7586_; +goto v_reusejp_7583_; +} +v_reusejp_7583_: +{ +lean_object* v___x_7585_; +v___x_7585_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_7539_, v___x_7584_); +return v___x_7585_; +} +} +} +} +else +{ +lean_object* v___x_7589_; +v___x_7589_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_7539_, v_machine_7540_); +return v___x_7589_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processWrite(uint8_t v_dir_7590_, lean_object* v_machine_7591_){ +_start: +{ +lean_object* v_writer_7592_; lean_object* v_reader_7593_; lean_object* v_config_7594_; lean_object* v_events_7595_; lean_object* v_error_7596_; lean_object* v_instant_7597_; uint8_t v_keepAlive_7598_; uint8_t v_forcedFlush_7599_; uint8_t v_pullBodyStalled_7600_; lean_object* v_userData_7601_; lean_object* v_outputData_7602_; lean_object* v_state_7603_; lean_object* v_knownSize_7604_; lean_object* v_messageHead_7605_; uint8_t v_sentMessage_7606_; uint8_t v_userClosedBody_7607_; uint8_t v_omitBody_7608_; lean_object* v_userDataBytes_7609_; +v_writer_7592_ = lean_ctor_get(v_machine_7591_, 1); +lean_inc_ref(v_writer_7592_); +v_reader_7593_ = lean_ctor_get(v_machine_7591_, 0); +lean_inc_ref(v_reader_7593_); +v_config_7594_ = lean_ctor_get(v_machine_7591_, 2); +v_events_7595_ = lean_ctor_get(v_machine_7591_, 3); +v_error_7596_ = lean_ctor_get(v_machine_7591_, 4); +v_instant_7597_ = lean_ctor_get(v_machine_7591_, 5); +v_keepAlive_7598_ = lean_ctor_get_uint8(v_machine_7591_, sizeof(void*)*6); +v_forcedFlush_7599_ = lean_ctor_get_uint8(v_machine_7591_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7600_ = lean_ctor_get_uint8(v_machine_7591_, sizeof(void*)*6 + 2); +v_userData_7601_ = lean_ctor_get(v_writer_7592_, 0); +v_outputData_7602_ = lean_ctor_get(v_writer_7592_, 1); +v_state_7603_ = lean_ctor_get(v_writer_7592_, 2); +v_knownSize_7604_ = lean_ctor_get(v_writer_7592_, 3); +v_messageHead_7605_ = lean_ctor_get(v_writer_7592_, 4); +v_sentMessage_7606_ = lean_ctor_get_uint8(v_writer_7592_, sizeof(void*)*6); +v_userClosedBody_7607_ = lean_ctor_get_uint8(v_writer_7592_, sizeof(void*)*6 + 1); +v_omitBody_7608_ = lean_ctor_get_uint8(v_writer_7592_, sizeof(void*)*6 + 2); +v_userDataBytes_7609_ = lean_ctor_get(v_writer_7592_, 5); +switch(lean_obj_tag(v_state_7603_)) { case 0: { -lean_object* v___x_6789_; uint8_t v_isShared_6790_; uint8_t v_isSharedCheck_6810_; -lean_inc(v_userDataBytes_6784_); -lean_inc(v_messageHead_6780_); -lean_inc(v_knownSize_6779_); -lean_inc_ref(v_outputData_6777_); -lean_inc_ref(v_userData_6776_); -v_isSharedCheck_6810_ = !lean_is_exclusive(v_writer_6767_); -if (v_isSharedCheck_6810_ == 0) +lean_object* v___x_7614_; uint8_t v_isShared_7615_; uint8_t v_isSharedCheck_7635_; +lean_inc(v_userDataBytes_7609_); +lean_inc(v_messageHead_7605_); +lean_inc(v_knownSize_7604_); +lean_inc_ref(v_outputData_7602_); +lean_inc_ref(v_userData_7601_); +v_isSharedCheck_7635_ = !lean_is_exclusive(v_writer_7592_); +if (v_isSharedCheck_7635_ == 0) { -lean_object* v_unused_6811_; lean_object* v_unused_6812_; lean_object* v_unused_6813_; lean_object* v_unused_6814_; lean_object* v_unused_6815_; lean_object* v_unused_6816_; -v_unused_6811_ = lean_ctor_get(v_writer_6767_, 5); -lean_dec(v_unused_6811_); -v_unused_6812_ = lean_ctor_get(v_writer_6767_, 4); -lean_dec(v_unused_6812_); -v_unused_6813_ = lean_ctor_get(v_writer_6767_, 3); -lean_dec(v_unused_6813_); -v_unused_6814_ = lean_ctor_get(v_writer_6767_, 2); -lean_dec(v_unused_6814_); -v_unused_6815_ = lean_ctor_get(v_writer_6767_, 1); -lean_dec(v_unused_6815_); -v_unused_6816_ = lean_ctor_get(v_writer_6767_, 0); -lean_dec(v_unused_6816_); -v___x_6789_ = v_writer_6767_; -v_isShared_6790_ = v_isSharedCheck_6810_; -goto v_resetjp_6788_; +lean_object* v_unused_7636_; lean_object* v_unused_7637_; lean_object* v_unused_7638_; lean_object* v_unused_7639_; lean_object* v_unused_7640_; lean_object* v_unused_7641_; +v_unused_7636_ = lean_ctor_get(v_writer_7592_, 5); +lean_dec(v_unused_7636_); +v_unused_7637_ = lean_ctor_get(v_writer_7592_, 4); +lean_dec(v_unused_7637_); +v_unused_7638_ = lean_ctor_get(v_writer_7592_, 3); +lean_dec(v_unused_7638_); +v_unused_7639_ = lean_ctor_get(v_writer_7592_, 2); +lean_dec(v_unused_7639_); +v_unused_7640_ = lean_ctor_get(v_writer_7592_, 1); +lean_dec(v_unused_7640_); +v_unused_7641_ = lean_ctor_get(v_writer_7592_, 0); +lean_dec(v_unused_7641_); +v___x_7614_ = v_writer_7592_; +v_isShared_7615_ = v_isSharedCheck_7635_; +goto v_resetjp_7613_; } else { -lean_dec(v_writer_6767_); -v___x_6789_ = lean_box(0); -v_isShared_6790_ = v_isSharedCheck_6810_; -goto v_resetjp_6788_; +lean_dec(v_writer_7592_); +v___x_7614_ = lean_box(0); +v_isShared_7615_ = v_isSharedCheck_7635_; +goto v_resetjp_7613_; } -v_resetjp_6788_: +v_resetjp_7613_: { -lean_object* v_state_6791_; -v_state_6791_ = lean_ctor_get(v_reader_6768_, 0); -if (lean_obj_tag(v_state_6791_) == 6) +lean_object* v_state_7616_; +v_state_7616_ = lean_ctor_get(v_reader_7593_, 0); +if (lean_obj_tag(v_state_7616_) == 6) { -lean_object* v___x_6793_; uint8_t v_isShared_6794_; uint8_t v_isSharedCheck_6803_; -lean_inc(v_instant_6772_); -lean_inc(v_error_6771_); -lean_inc_ref(v_events_6770_); -lean_inc_ref(v_config_6769_); -v_isSharedCheck_6803_ = !lean_is_exclusive(v_machine_6766_); -if (v_isSharedCheck_6803_ == 0) +lean_object* v___x_7618_; uint8_t v_isShared_7619_; uint8_t v_isSharedCheck_7628_; +lean_inc(v_instant_7597_); +lean_inc(v_error_7596_); +lean_inc_ref(v_events_7595_); +lean_inc_ref(v_config_7594_); +v_isSharedCheck_7628_ = !lean_is_exclusive(v_machine_7591_); +if (v_isSharedCheck_7628_ == 0) { -lean_object* v_unused_6804_; lean_object* v_unused_6805_; lean_object* v_unused_6806_; lean_object* v_unused_6807_; lean_object* v_unused_6808_; lean_object* v_unused_6809_; -v_unused_6804_ = lean_ctor_get(v_machine_6766_, 5); -lean_dec(v_unused_6804_); -v_unused_6805_ = lean_ctor_get(v_machine_6766_, 4); -lean_dec(v_unused_6805_); -v_unused_6806_ = lean_ctor_get(v_machine_6766_, 3); -lean_dec(v_unused_6806_); -v_unused_6807_ = lean_ctor_get(v_machine_6766_, 2); -lean_dec(v_unused_6807_); -v_unused_6808_ = lean_ctor_get(v_machine_6766_, 1); -lean_dec(v_unused_6808_); -v_unused_6809_ = lean_ctor_get(v_machine_6766_, 0); -lean_dec(v_unused_6809_); -v___x_6793_ = v_machine_6766_; -v_isShared_6794_ = v_isSharedCheck_6803_; -goto v_resetjp_6792_; +lean_object* v_unused_7629_; lean_object* v_unused_7630_; lean_object* v_unused_7631_; lean_object* v_unused_7632_; lean_object* v_unused_7633_; lean_object* v_unused_7634_; +v_unused_7629_ = lean_ctor_get(v_machine_7591_, 5); +lean_dec(v_unused_7629_); +v_unused_7630_ = lean_ctor_get(v_machine_7591_, 4); +lean_dec(v_unused_7630_); +v_unused_7631_ = lean_ctor_get(v_machine_7591_, 3); +lean_dec(v_unused_7631_); +v_unused_7632_ = lean_ctor_get(v_machine_7591_, 2); +lean_dec(v_unused_7632_); +v_unused_7633_ = lean_ctor_get(v_machine_7591_, 1); +lean_dec(v_unused_7633_); +v_unused_7634_ = lean_ctor_get(v_machine_7591_, 0); +lean_dec(v_unused_7634_); +v___x_7618_ = v_machine_7591_; +v_isShared_7619_ = v_isSharedCheck_7628_; +goto v_resetjp_7617_; } else { -lean_dec(v_machine_6766_); -v___x_6793_ = lean_box(0); -v_isShared_6794_ = v_isSharedCheck_6803_; -goto v_resetjp_6792_; +lean_dec(v_machine_7591_); +v___x_7618_ = lean_box(0); +v_isShared_7619_ = v_isSharedCheck_7628_; +goto v_resetjp_7617_; } -v_resetjp_6792_: +v_resetjp_7617_: { -uint8_t v___x_6795_; lean_object* v___x_6796_; lean_object* v___x_6798_; -v___x_6795_ = 1; -v___x_6796_ = lean_box(5); -if (v_isShared_6790_ == 0) +uint8_t v___x_7620_; lean_object* v___x_7621_; lean_object* v___x_7623_; +v___x_7620_ = 1; +v___x_7621_ = lean_box(7); +if (v_isShared_7615_ == 0) { -lean_ctor_set(v___x_6789_, 2, v___x_6796_); -v___x_6798_ = v___x_6789_; -goto v_reusejp_6797_; +lean_ctor_set(v___x_7614_, 2, v___x_7621_); +v___x_7623_ = v___x_7614_; +goto v_reusejp_7622_; } else { -lean_object* v_reuseFailAlloc_6802_; -v_reuseFailAlloc_6802_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6802_, 0, v_userData_6776_); -lean_ctor_set(v_reuseFailAlloc_6802_, 1, v_outputData_6777_); -lean_ctor_set(v_reuseFailAlloc_6802_, 2, v___x_6796_); -lean_ctor_set(v_reuseFailAlloc_6802_, 3, v_knownSize_6779_); -lean_ctor_set(v_reuseFailAlloc_6802_, 4, v_messageHead_6780_); -lean_ctor_set(v_reuseFailAlloc_6802_, 5, v_userDataBytes_6784_); -lean_ctor_set_uint8(v_reuseFailAlloc_6802_, sizeof(void*)*6, v_sentMessage_6781_); -lean_ctor_set_uint8(v_reuseFailAlloc_6802_, sizeof(void*)*6 + 2, v_omitBody_6783_); -v___x_6798_ = v_reuseFailAlloc_6802_; -goto v_reusejp_6797_; +lean_object* v_reuseFailAlloc_7627_; +v_reuseFailAlloc_7627_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7627_, 0, v_userData_7601_); +lean_ctor_set(v_reuseFailAlloc_7627_, 1, v_outputData_7602_); +lean_ctor_set(v_reuseFailAlloc_7627_, 2, v___x_7621_); +lean_ctor_set(v_reuseFailAlloc_7627_, 3, v_knownSize_7604_); +lean_ctor_set(v_reuseFailAlloc_7627_, 4, v_messageHead_7605_); +lean_ctor_set(v_reuseFailAlloc_7627_, 5, v_userDataBytes_7609_); +lean_ctor_set_uint8(v_reuseFailAlloc_7627_, sizeof(void*)*6, v_sentMessage_7606_); +lean_ctor_set_uint8(v_reuseFailAlloc_7627_, sizeof(void*)*6 + 2, v_omitBody_7608_); +v___x_7623_ = v_reuseFailAlloc_7627_; +goto v_reusejp_7622_; } -v_reusejp_6797_: +v_reusejp_7622_: { -lean_object* v___x_6800_; -lean_ctor_set_uint8(v___x_6798_, sizeof(void*)*6 + 1, v___x_6795_); -if (v_isShared_6794_ == 0) +lean_object* v___x_7625_; +lean_ctor_set_uint8(v___x_7623_, sizeof(void*)*6 + 1, v___x_7620_); +if (v_isShared_7619_ == 0) { -lean_ctor_set(v___x_6793_, 1, v___x_6798_); -v___x_6800_ = v___x_6793_; -goto v_reusejp_6799_; +lean_ctor_set(v___x_7618_, 1, v___x_7623_); +v___x_7625_ = v___x_7618_; +goto v_reusejp_7624_; } else { -lean_object* v_reuseFailAlloc_6801_; -v_reuseFailAlloc_6801_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6801_, 0, v_reader_6768_); -lean_ctor_set(v_reuseFailAlloc_6801_, 1, v___x_6798_); -lean_ctor_set(v_reuseFailAlloc_6801_, 2, v_config_6769_); -lean_ctor_set(v_reuseFailAlloc_6801_, 3, v_events_6770_); -lean_ctor_set(v_reuseFailAlloc_6801_, 4, v_error_6771_); -lean_ctor_set(v_reuseFailAlloc_6801_, 5, v_instant_6772_); -lean_ctor_set_uint8(v_reuseFailAlloc_6801_, sizeof(void*)*6, v_keepAlive_6773_); -lean_ctor_set_uint8(v_reuseFailAlloc_6801_, sizeof(void*)*6 + 1, v_forcedFlush_6774_); -lean_ctor_set_uint8(v_reuseFailAlloc_6801_, sizeof(void*)*6 + 2, v_pullBodyStalled_6775_); -v___x_6800_ = v_reuseFailAlloc_6801_; -goto v_reusejp_6799_; +lean_object* v_reuseFailAlloc_7626_; +v_reuseFailAlloc_7626_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7626_, 0, v_reader_7593_); +lean_ctor_set(v_reuseFailAlloc_7626_, 1, v___x_7623_); +lean_ctor_set(v_reuseFailAlloc_7626_, 2, v_config_7594_); +lean_ctor_set(v_reuseFailAlloc_7626_, 3, v_events_7595_); +lean_ctor_set(v_reuseFailAlloc_7626_, 4, v_error_7596_); +lean_ctor_set(v_reuseFailAlloc_7626_, 5, v_instant_7597_); +lean_ctor_set_uint8(v_reuseFailAlloc_7626_, sizeof(void*)*6, v_keepAlive_7598_); +lean_ctor_set_uint8(v_reuseFailAlloc_7626_, sizeof(void*)*6 + 1, v_forcedFlush_7599_); +lean_ctor_set_uint8(v_reuseFailAlloc_7626_, sizeof(void*)*6 + 2, v_pullBodyStalled_7600_); +v___x_7625_ = v_reuseFailAlloc_7626_; +goto v_reusejp_7624_; } -v_reusejp_6799_: +v_reusejp_7624_: { -return v___x_6800_; +return v___x_7625_; } } } } else { -lean_del_object(v___x_6789_); -lean_dec(v_userDataBytes_6784_); -lean_dec(v_messageHead_6780_); -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_outputData_6777_); -lean_dec_ref(v_userData_6776_); -lean_dec_ref(v_reader_6768_); -return v_machine_6766_; +lean_del_object(v___x_7614_); +lean_dec(v_userDataBytes_7609_); +lean_dec(v_messageHead_7605_); +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_outputData_7602_); +lean_dec_ref(v_userData_7601_); +lean_dec_ref(v_reader_7593_); +return v_machine_7591_; } } } case 1: { -if (v_dir_6765_ == 0) +if (v_dir_7590_ == 0) { -lean_object* v___x_6818_; uint8_t v_isShared_6819_; uint8_t v_isSharedCheck_6854_; -lean_inc(v_userDataBytes_6784_); -lean_inc(v_messageHead_6780_); -lean_inc(v_knownSize_6779_); -lean_inc_ref(v_outputData_6777_); -lean_inc_ref(v_userData_6776_); -v_isSharedCheck_6854_ = !lean_is_exclusive(v_writer_6767_); -if (v_isSharedCheck_6854_ == 0) +lean_object* v___x_7643_; uint8_t v_isShared_7644_; uint8_t v_isSharedCheck_7679_; +lean_inc(v_userDataBytes_7609_); +lean_inc(v_messageHead_7605_); +lean_inc(v_knownSize_7604_); +lean_inc_ref(v_outputData_7602_); +lean_inc_ref(v_userData_7601_); +v_isSharedCheck_7679_ = !lean_is_exclusive(v_writer_7592_); +if (v_isSharedCheck_7679_ == 0) { -lean_object* v_unused_6855_; lean_object* v_unused_6856_; lean_object* v_unused_6857_; lean_object* v_unused_6858_; lean_object* v_unused_6859_; lean_object* v_unused_6860_; -v_unused_6855_ = lean_ctor_get(v_writer_6767_, 5); -lean_dec(v_unused_6855_); -v_unused_6856_ = lean_ctor_get(v_writer_6767_, 4); -lean_dec(v_unused_6856_); -v_unused_6857_ = lean_ctor_get(v_writer_6767_, 3); -lean_dec(v_unused_6857_); -v_unused_6858_ = lean_ctor_get(v_writer_6767_, 2); -lean_dec(v_unused_6858_); -v_unused_6859_ = lean_ctor_get(v_writer_6767_, 1); -lean_dec(v_unused_6859_); -v_unused_6860_ = lean_ctor_get(v_writer_6767_, 0); -lean_dec(v_unused_6860_); -v___x_6818_ = v_writer_6767_; -v_isShared_6819_ = v_isSharedCheck_6854_; -goto v_resetjp_6817_; +lean_object* v_unused_7680_; lean_object* v_unused_7681_; lean_object* v_unused_7682_; lean_object* v_unused_7683_; lean_object* v_unused_7684_; lean_object* v_unused_7685_; +v_unused_7680_ = lean_ctor_get(v_writer_7592_, 5); +lean_dec(v_unused_7680_); +v_unused_7681_ = lean_ctor_get(v_writer_7592_, 4); +lean_dec(v_unused_7681_); +v_unused_7682_ = lean_ctor_get(v_writer_7592_, 3); +lean_dec(v_unused_7682_); +v_unused_7683_ = lean_ctor_get(v_writer_7592_, 2); +lean_dec(v_unused_7683_); +v_unused_7684_ = lean_ctor_get(v_writer_7592_, 1); +lean_dec(v_unused_7684_); +v_unused_7685_ = lean_ctor_get(v_writer_7592_, 0); +lean_dec(v_unused_7685_); +v___x_7643_ = v_writer_7592_; +v_isShared_7644_ = v_isSharedCheck_7679_; +goto v_resetjp_7642_; } else { -lean_dec(v_writer_6767_); -v___x_6818_ = lean_box(0); -v_isShared_6819_ = v_isSharedCheck_6854_; -goto v_resetjp_6817_; +lean_dec(v_writer_7592_); +v___x_7643_ = lean_box(0); +v_isShared_7644_ = v_isSharedCheck_7679_; +goto v_resetjp_7642_; } -v_resetjp_6817_: +v_resetjp_7642_: { -if (v_sentMessage_6781_ == 0) +if (v_sentMessage_7606_ == 0) { -if (v_userClosedBody_6782_ == 0) +if (v_userClosedBody_7607_ == 0) { -lean_del_object(v___x_6818_); -lean_dec(v_userDataBytes_6784_); -lean_dec(v_messageHead_6780_); -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_outputData_6777_); -lean_dec_ref(v_userData_6776_); -lean_dec_ref(v_reader_6768_); -return v_machine_6766_; +lean_del_object(v___x_7643_); +lean_dec(v_userDataBytes_7609_); +lean_dec(v_messageHead_7605_); +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_outputData_7602_); +lean_dec_ref(v_userData_7601_); +lean_dec_ref(v_reader_7593_); +return v_machine_7591_; } else { -lean_object* v___x_6821_; uint8_t v_isShared_6822_; uint8_t v_isSharedCheck_6847_; -lean_inc(v_instant_6772_); -lean_inc_ref(v_events_6770_); -lean_inc_ref(v_config_6769_); -v_isSharedCheck_6847_ = !lean_is_exclusive(v_machine_6766_); -if (v_isSharedCheck_6847_ == 0) +lean_object* v___x_7646_; uint8_t v_isShared_7647_; uint8_t v_isSharedCheck_7672_; +lean_inc(v_instant_7597_); +lean_inc_ref(v_events_7595_); +lean_inc_ref(v_config_7594_); +v_isSharedCheck_7672_ = !lean_is_exclusive(v_machine_7591_); +if (v_isSharedCheck_7672_ == 0) { -lean_object* v_unused_6848_; lean_object* v_unused_6849_; lean_object* v_unused_6850_; lean_object* v_unused_6851_; lean_object* v_unused_6852_; lean_object* v_unused_6853_; -v_unused_6848_ = lean_ctor_get(v_machine_6766_, 5); -lean_dec(v_unused_6848_); -v_unused_6849_ = lean_ctor_get(v_machine_6766_, 4); -lean_dec(v_unused_6849_); -v_unused_6850_ = lean_ctor_get(v_machine_6766_, 3); -lean_dec(v_unused_6850_); -v_unused_6851_ = lean_ctor_get(v_machine_6766_, 2); -lean_dec(v_unused_6851_); -v_unused_6852_ = lean_ctor_get(v_machine_6766_, 1); -lean_dec(v_unused_6852_); -v_unused_6853_ = lean_ctor_get(v_machine_6766_, 0); -lean_dec(v_unused_6853_); -v___x_6821_ = v_machine_6766_; -v_isShared_6822_ = v_isSharedCheck_6847_; -goto v_resetjp_6820_; +lean_object* v_unused_7673_; lean_object* v_unused_7674_; lean_object* v_unused_7675_; lean_object* v_unused_7676_; lean_object* v_unused_7677_; lean_object* v_unused_7678_; +v_unused_7673_ = lean_ctor_get(v_machine_7591_, 5); +lean_dec(v_unused_7673_); +v_unused_7674_ = lean_ctor_get(v_machine_7591_, 4); +lean_dec(v_unused_7674_); +v_unused_7675_ = lean_ctor_get(v_machine_7591_, 3); +lean_dec(v_unused_7675_); +v_unused_7676_ = lean_ctor_get(v_machine_7591_, 2); +lean_dec(v_unused_7676_); +v_unused_7677_ = lean_ctor_get(v_machine_7591_, 1); +lean_dec(v_unused_7677_); +v_unused_7678_ = lean_ctor_get(v_machine_7591_, 0); +lean_dec(v_unused_7678_); +v___x_7646_ = v_machine_7591_; +v_isShared_7647_ = v_isSharedCheck_7672_; +goto v_resetjp_7645_; } else { -lean_dec(v_machine_6766_); -v___x_6821_ = lean_box(0); -v_isShared_6822_ = v_isSharedCheck_6847_; -goto v_resetjp_6820_; +lean_dec(v_machine_7591_); +v___x_7646_ = lean_box(0); +v_isShared_7647_ = v_isSharedCheck_7672_; +goto v_resetjp_7645_; } -v_resetjp_6820_: +v_resetjp_7645_: { -lean_object* v_input_6823_; lean_object* v_messageHead_6824_; lean_object* v_messageCount_6825_; lean_object* v_bodyBytesRead_6826_; lean_object* v_headerBytesRead_6827_; lean_object* v___x_6829_; uint8_t v_isShared_6830_; uint8_t v_isSharedCheck_6845_; -v_input_6823_ = lean_ctor_get(v_reader_6768_, 1); -v_messageHead_6824_ = lean_ctor_get(v_reader_6768_, 2); -v_messageCount_6825_ = lean_ctor_get(v_reader_6768_, 3); -v_bodyBytesRead_6826_ = lean_ctor_get(v_reader_6768_, 4); -v_headerBytesRead_6827_ = lean_ctor_get(v_reader_6768_, 5); -v_isSharedCheck_6845_ = !lean_is_exclusive(v_reader_6768_); -if (v_isSharedCheck_6845_ == 0) +lean_object* v_input_7648_; lean_object* v_messageHead_7649_; lean_object* v_messageCount_7650_; lean_object* v_bodyBytesRead_7651_; lean_object* v_headerBytesRead_7652_; lean_object* v___x_7654_; uint8_t v_isShared_7655_; uint8_t v_isSharedCheck_7670_; +v_input_7648_ = lean_ctor_get(v_reader_7593_, 1); +v_messageHead_7649_ = lean_ctor_get(v_reader_7593_, 2); +v_messageCount_7650_ = lean_ctor_get(v_reader_7593_, 3); +v_bodyBytesRead_7651_ = lean_ctor_get(v_reader_7593_, 4); +v_headerBytesRead_7652_ = lean_ctor_get(v_reader_7593_, 5); +v_isSharedCheck_7670_ = !lean_is_exclusive(v_reader_7593_); +if (v_isSharedCheck_7670_ == 0) { -lean_object* v_unused_6846_; -v_unused_6846_ = lean_ctor_get(v_reader_6768_, 0); -lean_dec(v_unused_6846_); -v___x_6829_ = v_reader_6768_; -v_isShared_6830_ = v_isSharedCheck_6845_; -goto v_resetjp_6828_; +lean_object* v_unused_7671_; +v_unused_7671_ = lean_ctor_get(v_reader_7593_, 0); +lean_dec(v_unused_7671_); +v___x_7654_ = v_reader_7593_; +v_isShared_7655_ = v_isSharedCheck_7670_; +goto v_resetjp_7653_; } else { -lean_inc(v_headerBytesRead_6827_); -lean_inc(v_bodyBytesRead_6826_); -lean_inc(v_messageCount_6825_); -lean_inc(v_messageHead_6824_); -lean_inc(v_input_6823_); -lean_dec(v_reader_6768_); -v___x_6829_ = lean_box(0); -v_isShared_6830_ = v_isSharedCheck_6845_; -goto v_resetjp_6828_; +lean_inc(v_headerBytesRead_7652_); +lean_inc(v_bodyBytesRead_7651_); +lean_inc(v_messageCount_7650_); +lean_inc(v_messageHead_7649_); +lean_inc(v_input_7648_); +lean_dec(v_reader_7593_); +v___x_7654_ = lean_box(0); +v_isShared_7655_ = v_isSharedCheck_7670_; +goto v_resetjp_7653_; } -v_resetjp_6828_: +v_resetjp_7653_: { -lean_object* v___x_6831_; lean_object* v___x_6832_; lean_object* v___x_6834_; -v___x_6831_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -v___x_6832_ = lean_box(5); -if (v_isShared_6819_ == 0) +lean_object* v___x_7656_; lean_object* v___x_7657_; lean_object* v___x_7659_; +v___x_7656_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +v___x_7657_ = lean_box(7); +if (v_isShared_7644_ == 0) { -lean_ctor_set(v___x_6818_, 2, v___x_6832_); -v___x_6834_ = v___x_6818_; -goto v_reusejp_6833_; +lean_ctor_set(v___x_7643_, 2, v___x_7657_); +v___x_7659_ = v___x_7643_; +goto v_reusejp_7658_; } else { -lean_object* v_reuseFailAlloc_6844_; -v_reuseFailAlloc_6844_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6844_, 0, v_userData_6776_); -lean_ctor_set(v_reuseFailAlloc_6844_, 1, v_outputData_6777_); -lean_ctor_set(v_reuseFailAlloc_6844_, 2, v___x_6832_); -lean_ctor_set(v_reuseFailAlloc_6844_, 3, v_knownSize_6779_); -lean_ctor_set(v_reuseFailAlloc_6844_, 4, v_messageHead_6780_); -lean_ctor_set(v_reuseFailAlloc_6844_, 5, v_userDataBytes_6784_); -lean_ctor_set_uint8(v_reuseFailAlloc_6844_, sizeof(void*)*6, v_sentMessage_6781_); -lean_ctor_set_uint8(v_reuseFailAlloc_6844_, sizeof(void*)*6 + 1, v_userClosedBody_6782_); -lean_ctor_set_uint8(v_reuseFailAlloc_6844_, sizeof(void*)*6 + 2, v_omitBody_6783_); -v___x_6834_ = v_reuseFailAlloc_6844_; -goto v_reusejp_6833_; +lean_object* v_reuseFailAlloc_7669_; +v_reuseFailAlloc_7669_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7669_, 0, v_userData_7601_); +lean_ctor_set(v_reuseFailAlloc_7669_, 1, v_outputData_7602_); +lean_ctor_set(v_reuseFailAlloc_7669_, 2, v___x_7657_); +lean_ctor_set(v_reuseFailAlloc_7669_, 3, v_knownSize_7604_); +lean_ctor_set(v_reuseFailAlloc_7669_, 4, v_messageHead_7605_); +lean_ctor_set(v_reuseFailAlloc_7669_, 5, v_userDataBytes_7609_); +lean_ctor_set_uint8(v_reuseFailAlloc_7669_, sizeof(void*)*6, v_sentMessage_7606_); +lean_ctor_set_uint8(v_reuseFailAlloc_7669_, sizeof(void*)*6 + 1, v_userClosedBody_7607_); +lean_ctor_set_uint8(v_reuseFailAlloc_7669_, sizeof(void*)*6 + 2, v_omitBody_7608_); +v___x_7659_ = v_reuseFailAlloc_7669_; +goto v_reusejp_7658_; } -v_reusejp_6833_: +v_reusejp_7658_: { -lean_object* v___x_6835_; lean_object* v___x_6837_; -v___x_6835_ = lean_box(6); -if (v_isShared_6830_ == 0) +lean_object* v___x_7660_; lean_object* v___x_7662_; +v___x_7660_ = lean_box(6); +if (v_isShared_7655_ == 0) { -lean_ctor_set(v___x_6829_, 0, v___x_6835_); -v___x_6837_ = v___x_6829_; -goto v_reusejp_6836_; +lean_ctor_set(v___x_7654_, 0, v___x_7660_); +v___x_7662_ = v___x_7654_; +goto v_reusejp_7661_; } else { -lean_object* v_reuseFailAlloc_6843_; -v_reuseFailAlloc_6843_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6843_, 0, v___x_6835_); -lean_ctor_set(v_reuseFailAlloc_6843_, 1, v_input_6823_); -lean_ctor_set(v_reuseFailAlloc_6843_, 2, v_messageHead_6824_); -lean_ctor_set(v_reuseFailAlloc_6843_, 3, v_messageCount_6825_); -lean_ctor_set(v_reuseFailAlloc_6843_, 4, v_bodyBytesRead_6826_); -lean_ctor_set(v_reuseFailAlloc_6843_, 5, v_headerBytesRead_6827_); -v___x_6837_ = v_reuseFailAlloc_6843_; -goto v_reusejp_6836_; +lean_object* v_reuseFailAlloc_7668_; +v_reuseFailAlloc_7668_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7668_, 0, v___x_7660_); +lean_ctor_set(v_reuseFailAlloc_7668_, 1, v_input_7648_); +lean_ctor_set(v_reuseFailAlloc_7668_, 2, v_messageHead_7649_); +lean_ctor_set(v_reuseFailAlloc_7668_, 3, v_messageCount_7650_); +lean_ctor_set(v_reuseFailAlloc_7668_, 4, v_bodyBytesRead_7651_); +lean_ctor_set(v_reuseFailAlloc_7668_, 5, v_headerBytesRead_7652_); +v___x_7662_ = v_reuseFailAlloc_7668_; +goto v_reusejp_7661_; } -v_reusejp_6836_: +v_reusejp_7661_: { -lean_object* v___x_6838_; lean_object* v___x_6839_; lean_object* v___x_6841_; -lean_ctor_set_uint8(v___x_6837_, sizeof(void*)*6, v_userClosedBody_6782_); -v___x_6838_ = lean_box(3); -v___x_6839_ = lean_array_push(v_events_6770_, v___x_6838_); -if (v_isShared_6822_ == 0) +lean_object* v___x_7663_; lean_object* v___x_7664_; lean_object* v___x_7666_; +lean_ctor_set_uint8(v___x_7662_, sizeof(void*)*6, v_userClosedBody_7607_); +v___x_7663_ = lean_box(3); +v___x_7664_ = lean_array_push(v_events_7595_, v___x_7663_); +if (v_isShared_7647_ == 0) { -lean_ctor_set(v___x_6821_, 4, v___x_6831_); -lean_ctor_set(v___x_6821_, 3, v___x_6839_); -lean_ctor_set(v___x_6821_, 1, v___x_6834_); -lean_ctor_set(v___x_6821_, 0, v___x_6837_); -v___x_6841_ = v___x_6821_; -goto v_reusejp_6840_; +lean_ctor_set(v___x_7646_, 4, v___x_7656_); +lean_ctor_set(v___x_7646_, 3, v___x_7664_); +lean_ctor_set(v___x_7646_, 1, v___x_7659_); +lean_ctor_set(v___x_7646_, 0, v___x_7662_); +v___x_7666_ = v___x_7646_; +goto v_reusejp_7665_; } else { -lean_object* v_reuseFailAlloc_6842_; -v_reuseFailAlloc_6842_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6842_, 0, v___x_6837_); -lean_ctor_set(v_reuseFailAlloc_6842_, 1, v___x_6834_); -lean_ctor_set(v_reuseFailAlloc_6842_, 2, v_config_6769_); -lean_ctor_set(v_reuseFailAlloc_6842_, 3, v___x_6839_); -lean_ctor_set(v_reuseFailAlloc_6842_, 4, v___x_6831_); -lean_ctor_set(v_reuseFailAlloc_6842_, 5, v_instant_6772_); -lean_ctor_set_uint8(v_reuseFailAlloc_6842_, sizeof(void*)*6 + 1, v_forcedFlush_6774_); -lean_ctor_set_uint8(v_reuseFailAlloc_6842_, sizeof(void*)*6 + 2, v_pullBodyStalled_6775_); -v___x_6841_ = v_reuseFailAlloc_6842_; -goto v_reusejp_6840_; +lean_object* v_reuseFailAlloc_7667_; +v_reuseFailAlloc_7667_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7667_, 0, v___x_7662_); +lean_ctor_set(v_reuseFailAlloc_7667_, 1, v___x_7659_); +lean_ctor_set(v_reuseFailAlloc_7667_, 2, v_config_7594_); +lean_ctor_set(v_reuseFailAlloc_7667_, 3, v___x_7664_); +lean_ctor_set(v_reuseFailAlloc_7667_, 4, v___x_7656_); +lean_ctor_set(v_reuseFailAlloc_7667_, 5, v_instant_7597_); +lean_ctor_set_uint8(v_reuseFailAlloc_7667_, sizeof(void*)*6 + 1, v_forcedFlush_7599_); +lean_ctor_set_uint8(v_reuseFailAlloc_7667_, sizeof(void*)*6 + 2, v_pullBodyStalled_7600_); +v___x_7666_ = v_reuseFailAlloc_7667_; +goto v_reusejp_7665_; } -v_reusejp_6840_: +v_reusejp_7665_: { -lean_ctor_set_uint8(v___x_6841_, sizeof(void*)*6, v_sentMessage_6781_); -return v___x_6841_; +lean_ctor_set_uint8(v___x_7666_, sizeof(void*)*6, v_sentMessage_7606_); +return v___x_7666_; } } } @@ -24728,4418 +27425,1108 @@ return v___x_6841_; } else { -lean_del_object(v___x_6818_); -lean_dec(v_userDataBytes_6784_); -lean_dec(v_messageHead_6780_); -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_outputData_6777_); -lean_dec_ref(v_userData_6776_); -lean_dec_ref(v_reader_6768_); -return v_machine_6766_; +lean_del_object(v___x_7643_); +lean_dec(v_userDataBytes_7609_); +lean_dec(v_messageHead_7605_); +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_outputData_7602_); +lean_dec_ref(v_userData_7601_); +lean_dec_ref(v_reader_7593_); +return v_machine_7591_; } } } else { -lean_object* v___x_6862_; uint8_t v_isShared_6863_; uint8_t v_isSharedCheck_6869_; -lean_inc(v_instant_6772_); -lean_inc(v_error_6771_); -lean_inc_ref(v_events_6770_); -lean_inc_ref(v_config_6769_); -v_isSharedCheck_6869_ = !lean_is_exclusive(v_machine_6766_); -if (v_isSharedCheck_6869_ == 0) +lean_object* v___x_7687_; uint8_t v_isShared_7688_; uint8_t v_isSharedCheck_7694_; +lean_inc(v_instant_7597_); +lean_inc(v_error_7596_); +lean_inc_ref(v_events_7595_); +lean_inc_ref(v_config_7594_); +v_isSharedCheck_7694_ = !lean_is_exclusive(v_machine_7591_); +if (v_isSharedCheck_7694_ == 0) { -lean_object* v_unused_6870_; lean_object* v_unused_6871_; lean_object* v_unused_6872_; lean_object* v_unused_6873_; lean_object* v_unused_6874_; lean_object* v_unused_6875_; -v_unused_6870_ = lean_ctor_get(v_machine_6766_, 5); -lean_dec(v_unused_6870_); -v_unused_6871_ = lean_ctor_get(v_machine_6766_, 4); -lean_dec(v_unused_6871_); -v_unused_6872_ = lean_ctor_get(v_machine_6766_, 3); -lean_dec(v_unused_6872_); -v_unused_6873_ = lean_ctor_get(v_machine_6766_, 2); -lean_dec(v_unused_6873_); -v_unused_6874_ = lean_ctor_get(v_machine_6766_, 1); -lean_dec(v_unused_6874_); -v_unused_6875_ = lean_ctor_get(v_machine_6766_, 0); -lean_dec(v_unused_6875_); -v___x_6862_ = v_machine_6766_; -v_isShared_6863_ = v_isSharedCheck_6869_; -goto v_resetjp_6861_; +lean_object* v_unused_7695_; lean_object* v_unused_7696_; lean_object* v_unused_7697_; lean_object* v_unused_7698_; lean_object* v_unused_7699_; lean_object* v_unused_7700_; +v_unused_7695_ = lean_ctor_get(v_machine_7591_, 5); +lean_dec(v_unused_7695_); +v_unused_7696_ = lean_ctor_get(v_machine_7591_, 4); +lean_dec(v_unused_7696_); +v_unused_7697_ = lean_ctor_get(v_machine_7591_, 3); +lean_dec(v_unused_7697_); +v_unused_7698_ = lean_ctor_get(v_machine_7591_, 2); +lean_dec(v_unused_7698_); +v_unused_7699_ = lean_ctor_get(v_machine_7591_, 1); +lean_dec(v_unused_7699_); +v_unused_7700_ = lean_ctor_get(v_machine_7591_, 0); +lean_dec(v_unused_7700_); +v___x_7687_ = v_machine_7591_; +v_isShared_7688_ = v_isSharedCheck_7694_; +goto v_resetjp_7686_; } else { -lean_dec(v_machine_6766_); -v___x_6862_ = lean_box(0); -v_isShared_6863_ = v_isSharedCheck_6869_; -goto v_resetjp_6861_; +lean_dec(v_machine_7591_); +v___x_7687_ = lean_box(0); +v_isShared_7688_ = v_isSharedCheck_7694_; +goto v_resetjp_7686_; } -v_resetjp_6861_: +v_resetjp_7686_: { -lean_object* v___x_6864_; lean_object* v___x_6865_; lean_object* v___x_6867_; -v___x_6864_ = lean_box(5); -v___x_6865_ = lean_array_push(v_events_6770_, v___x_6864_); -if (v_isShared_6863_ == 0) +lean_object* v___x_7689_; lean_object* v___x_7690_; lean_object* v___x_7692_; +v___x_7689_ = lean_box(5); +v___x_7690_ = lean_array_push(v_events_7595_, v___x_7689_); +if (v_isShared_7688_ == 0) { -lean_ctor_set(v___x_6862_, 3, v___x_6865_); -v___x_6867_ = v___x_6862_; -goto v_reusejp_6866_; +lean_ctor_set(v___x_7687_, 3, v___x_7690_); +v___x_7692_ = v___x_7687_; +goto v_reusejp_7691_; } else { -lean_object* v_reuseFailAlloc_6868_; -v_reuseFailAlloc_6868_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6868_, 0, v_reader_6768_); -lean_ctor_set(v_reuseFailAlloc_6868_, 1, v_writer_6767_); -lean_ctor_set(v_reuseFailAlloc_6868_, 2, v_config_6769_); -lean_ctor_set(v_reuseFailAlloc_6868_, 3, v___x_6865_); -lean_ctor_set(v_reuseFailAlloc_6868_, 4, v_error_6771_); -lean_ctor_set(v_reuseFailAlloc_6868_, 5, v_instant_6772_); -lean_ctor_set_uint8(v_reuseFailAlloc_6868_, sizeof(void*)*6, v_keepAlive_6773_); -lean_ctor_set_uint8(v_reuseFailAlloc_6868_, sizeof(void*)*6 + 1, v_forcedFlush_6774_); -lean_ctor_set_uint8(v_reuseFailAlloc_6868_, sizeof(void*)*6 + 2, v_pullBodyStalled_6775_); -v___x_6867_ = v_reuseFailAlloc_6868_; -goto v_reusejp_6866_; +lean_object* v_reuseFailAlloc_7693_; +v_reuseFailAlloc_7693_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7693_, 0, v_reader_7593_); +lean_ctor_set(v_reuseFailAlloc_7693_, 1, v_writer_7592_); +lean_ctor_set(v_reuseFailAlloc_7693_, 2, v_config_7594_); +lean_ctor_set(v_reuseFailAlloc_7693_, 3, v___x_7690_); +lean_ctor_set(v_reuseFailAlloc_7693_, 4, v_error_7596_); +lean_ctor_set(v_reuseFailAlloc_7693_, 5, v_instant_7597_); +lean_ctor_set_uint8(v_reuseFailAlloc_7693_, sizeof(void*)*6, v_keepAlive_7598_); +lean_ctor_set_uint8(v_reuseFailAlloc_7693_, sizeof(void*)*6 + 1, v_forcedFlush_7599_); +lean_ctor_set_uint8(v_reuseFailAlloc_7693_, sizeof(void*)*6 + 2, v_pullBodyStalled_7600_); +v___x_7692_ = v_reuseFailAlloc_7693_; +goto v_reusejp_7691_; } -v_reusejp_6866_: +v_reusejp_7691_: { -return v___x_6867_; +return v___x_7692_; } } } } case 2: { -lean_object* v_state_6876_; -lean_inc(v_messageHead_6780_); -lean_inc(v_knownSize_6779_); -lean_inc_ref(v_userData_6776_); -lean_dec_ref(v_writer_6767_); -v_state_6876_ = lean_ctor_get(v_reader_6768_, 0); -lean_inc(v_state_6876_); -lean_dec_ref(v_reader_6768_); -if (lean_obj_tag(v_state_6876_) == 7) +lean_object* v_state_7701_; +lean_inc(v_messageHead_7605_); +lean_inc(v_knownSize_7604_); +lean_inc_ref(v_userData_7601_); +lean_dec_ref(v_writer_7592_); +v_state_7701_ = lean_ctor_get(v_reader_7593_, 0); +lean_inc(v_state_7701_); +lean_dec_ref(v_reader_7593_); +if (lean_obj_tag(v_state_7701_) == 7) { -lean_dec_ref(v_state_6876_); -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_userData_6776_); -goto v___jp_6785_; +lean_dec_ref(v_state_7701_); +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_userData_7601_); +goto v___jp_7610_; } else { -lean_object* v___x_6877_; uint8_t v___x_6878_; -v___x_6877_ = lean_box(6); -v___x_6878_ = l_Std_Http_Protocol_H1_Reader_instBEqState_beq___redArg(v_state_6876_, v___x_6877_); -lean_dec(v_state_6876_); -if (v___x_6878_ == 0) +lean_object* v___x_7702_; uint8_t v___x_7703_; +v___x_7702_ = lean_box(6); +v___x_7703_ = l_Std_Http_Protocol_H1_Reader_instBEqState_beq___redArg(v_state_7701_, v___x_7702_); +lean_dec(v_state_7701_); +if (v___x_7703_ == 0) { -if (v_userClosedBody_6782_ == 0) +if (v_userClosedBody_7607_ == 0) { -if (lean_obj_tag(v_knownSize_6779_) == 0) +if (lean_obj_tag(v_knownSize_7604_) == 0) { -lean_object* v___x_6879_; lean_object* v___x_6880_; uint8_t v___x_6881_; -v___x_6879_ = lean_unsigned_to_nat(0u); -v___x_6880_ = lean_array_get_size(v_userData_6776_); -lean_dec_ref(v_userData_6776_); -v___x_6881_ = lean_nat_dec_lt(v___x_6879_, v___x_6880_); -if (v___x_6881_ == 0) +lean_object* v___x_7704_; lean_object* v___x_7705_; uint8_t v___x_7706_; +v___x_7704_ = lean_unsigned_to_nat(0u); +v___x_7705_ = lean_array_get_size(v_userData_7601_); +lean_dec_ref(v_userData_7601_); +v___x_7706_ = lean_nat_dec_lt(v___x_7704_, v___x_7705_); +if (v___x_7706_ == 0) { -lean_dec(v_messageHead_6780_); -return v_machine_6766_; +lean_dec(v_messageHead_7605_); +return v_machine_7591_; } else { -goto v___jp_6785_; +goto v___jp_7610_; } } else { -lean_dec_ref(v_knownSize_6779_); -lean_dec_ref(v_userData_6776_); -goto v___jp_6785_; +lean_dec_ref(v_knownSize_7604_); +lean_dec_ref(v_userData_7601_); +goto v___jp_7610_; } } else { -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_userData_6776_); -goto v___jp_6785_; +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_userData_7601_); +goto v___jp_7610_; } } else { -lean_dec(v_knownSize_6779_); -lean_dec_ref(v_userData_6776_); -if (v___x_6878_ == 0) +lean_dec(v_knownSize_7604_); +lean_dec_ref(v_userData_7601_); +if (v___x_7703_ == 0) { -lean_dec(v_messageHead_6780_); -return v_machine_6766_; +lean_dec(v_messageHead_7605_); +return v_machine_7591_; } else { -goto v___jp_6785_; +goto v___jp_7610_; } } } } case 3: { -lean_object* v_mode_6882_; -lean_inc_ref(v_state_6778_); -lean_dec_ref(v_reader_6768_); -lean_dec_ref(v_writer_6767_); -v_mode_6882_ = lean_ctor_get(v_state_6778_, 0); -lean_inc(v_mode_6882_); -lean_dec_ref(v_state_6778_); -if (lean_obj_tag(v_mode_6882_) == 0) -{ -lean_object* v___x_6883_; -v___x_6883_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(v_dir_6765_, v_machine_6766_); -return v___x_6883_; -} -else -{ -lean_object* v_n_6884_; lean_object* v___x_6885_; -v_n_6884_ = lean_ctor_get(v_mode_6882_, 0); -lean_inc(v_n_6884_); -lean_dec_ref(v_mode_6882_); -v___x_6885_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(v_dir_6765_, v_machine_6766_, v_n_6884_); -return v___x_6885_; -} +lean_object* v_n_7707_; lean_object* v___x_7708_; +lean_inc_ref(v_state_7603_); +lean_dec_ref(v_reader_7593_); +lean_dec_ref(v_writer_7592_); +v_n_7707_ = lean_ctor_get(v_state_7603_, 0); +lean_inc(v_n_7707_); +lean_dec_ref(v_state_7603_); +v___x_7708_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(v_dir_7590_, v_machine_7591_, v_n_7707_); +return v___x_7708_; } case 4: { -lean_object* v___x_6886_; -lean_dec_ref(v_reader_6768_); -lean_dec_ref(v_writer_6767_); -v___x_6886_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(v_dir_6765_, v_machine_6766_); -return v___x_6886_; +lean_object* v___x_7709_; +lean_dec_ref(v_reader_7593_); +lean_dec_ref(v_writer_7592_); +v___x_7709_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(v_dir_7590_, v_machine_7591_); +return v___x_7709_; +} +case 5: +{ +lean_object* v___x_7710_; +lean_dec_ref(v_reader_7593_); +lean_dec_ref(v_writer_7592_); +v___x_7710_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody(v_dir_7590_, v_machine_7591_); +return v___x_7710_; +} +case 6: +{ +lean_object* v___x_7711_; +lean_dec_ref(v_reader_7593_); +lean_dec_ref(v_writer_7592_); +v___x_7711_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processCompleteStep(v_dir_7590_, v_machine_7591_); +return v___x_7711_; } default: { -lean_dec_ref(v_reader_6768_); -lean_dec_ref(v_writer_6767_); -return v_machine_6766_; +lean_dec_ref(v_reader_7593_); +lean_dec_ref(v_writer_7592_); +return v_machine_7591_; } } -v___jp_6785_: +v___jp_7610_: { -lean_object* v___x_6786_; -v___x_6786_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(v_dir_6765_, v_messageHead_6780_, v_machine_6766_); -v_machine_6766_ = v___x_6786_; +lean_object* v___x_7611_; +v___x_7611_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead(v_dir_7590_, v_messageHead_7605_, v_machine_7591_); +v_machine_7591_ = v___x_7611_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(uint8_t v_dir_6887_, lean_object* v_machine_6888_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(uint8_t v_dir_7712_, lean_object* v_machine_7713_){ _start: { -lean_object* v_writer_6889_; lean_object* v_reader_6890_; lean_object* v_config_6891_; lean_object* v_events_6892_; lean_object* v_error_6893_; lean_object* v_instant_6894_; uint8_t v_keepAlive_6895_; uint8_t v_forcedFlush_6896_; uint8_t v_pullBodyStalled_6897_; lean_object* v___x_6899_; uint8_t v_isShared_6900_; uint8_t v_isSharedCheck_6922_; -v_writer_6889_ = lean_ctor_get(v_machine_6888_, 1); -v_reader_6890_ = lean_ctor_get(v_machine_6888_, 0); -v_config_6891_ = lean_ctor_get(v_machine_6888_, 2); -v_events_6892_ = lean_ctor_get(v_machine_6888_, 3); -v_error_6893_ = lean_ctor_get(v_machine_6888_, 4); -v_instant_6894_ = lean_ctor_get(v_machine_6888_, 5); -v_keepAlive_6895_ = lean_ctor_get_uint8(v_machine_6888_, sizeof(void*)*6); -v_forcedFlush_6896_ = lean_ctor_get_uint8(v_machine_6888_, sizeof(void*)*6 + 1); -v_pullBodyStalled_6897_ = lean_ctor_get_uint8(v_machine_6888_, sizeof(void*)*6 + 2); -v_isSharedCheck_6922_ = !lean_is_exclusive(v_machine_6888_); -if (v_isSharedCheck_6922_ == 0) +lean_object* v_writer_7714_; lean_object* v_reader_7715_; lean_object* v_config_7716_; lean_object* v_events_7717_; lean_object* v_error_7718_; lean_object* v_instant_7719_; uint8_t v_keepAlive_7720_; uint8_t v_forcedFlush_7721_; uint8_t v_pullBodyStalled_7722_; lean_object* v___x_7724_; uint8_t v_isShared_7725_; uint8_t v_isSharedCheck_7747_; +v_writer_7714_ = lean_ctor_get(v_machine_7713_, 1); +v_reader_7715_ = lean_ctor_get(v_machine_7713_, 0); +v_config_7716_ = lean_ctor_get(v_machine_7713_, 2); +v_events_7717_ = lean_ctor_get(v_machine_7713_, 3); +v_error_7718_ = lean_ctor_get(v_machine_7713_, 4); +v_instant_7719_ = lean_ctor_get(v_machine_7713_, 5); +v_keepAlive_7720_ = lean_ctor_get_uint8(v_machine_7713_, sizeof(void*)*6); +v_forcedFlush_7721_ = lean_ctor_get_uint8(v_machine_7713_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7722_ = lean_ctor_get_uint8(v_machine_7713_, sizeof(void*)*6 + 2); +v_isSharedCheck_7747_ = !lean_is_exclusive(v_machine_7713_); +if (v_isSharedCheck_7747_ == 0) { -v___x_6899_ = v_machine_6888_; -v_isShared_6900_ = v_isSharedCheck_6922_; -goto v_resetjp_6898_; +v___x_7724_ = v_machine_7713_; +v_isShared_7725_ = v_isSharedCheck_7747_; +goto v_resetjp_7723_; } else { -lean_inc(v_instant_6894_); -lean_inc(v_error_6893_); -lean_inc(v_events_6892_); -lean_inc(v_config_6891_); -lean_inc(v_writer_6889_); -lean_inc(v_reader_6890_); -lean_dec(v_machine_6888_); -v___x_6899_ = lean_box(0); -v_isShared_6900_ = v_isSharedCheck_6922_; -goto v_resetjp_6898_; +lean_inc(v_instant_7719_); +lean_inc(v_error_7718_); +lean_inc(v_events_7717_); +lean_inc(v_config_7716_); +lean_inc(v_writer_7714_); +lean_inc(v_reader_7715_); +lean_dec(v_machine_7713_); +v___x_7724_ = lean_box(0); +v_isShared_7725_ = v_isSharedCheck_7747_; +goto v_resetjp_7723_; } -v_resetjp_6898_: +v_resetjp_7723_: { -lean_object* v_userData_6901_; lean_object* v_outputData_6902_; lean_object* v_knownSize_6903_; lean_object* v_messageHead_6904_; uint8_t v_sentMessage_6905_; uint8_t v_userClosedBody_6906_; uint8_t v_omitBody_6907_; lean_object* v_userDataBytes_6908_; lean_object* v___x_6910_; uint8_t v_isShared_6911_; uint8_t v_isSharedCheck_6920_; -v_userData_6901_ = lean_ctor_get(v_writer_6889_, 0); -v_outputData_6902_ = lean_ctor_get(v_writer_6889_, 1); -v_knownSize_6903_ = lean_ctor_get(v_writer_6889_, 3); -v_messageHead_6904_ = lean_ctor_get(v_writer_6889_, 4); -v_sentMessage_6905_ = lean_ctor_get_uint8(v_writer_6889_, sizeof(void*)*6); -v_userClosedBody_6906_ = lean_ctor_get_uint8(v_writer_6889_, sizeof(void*)*6 + 1); -v_omitBody_6907_ = lean_ctor_get_uint8(v_writer_6889_, sizeof(void*)*6 + 2); -v_userDataBytes_6908_ = lean_ctor_get(v_writer_6889_, 5); -v_isSharedCheck_6920_ = !lean_is_exclusive(v_writer_6889_); -if (v_isSharedCheck_6920_ == 0) +lean_object* v_userData_7726_; lean_object* v_outputData_7727_; lean_object* v_knownSize_7728_; lean_object* v_messageHead_7729_; uint8_t v_sentMessage_7730_; uint8_t v_userClosedBody_7731_; uint8_t v_omitBody_7732_; lean_object* v_userDataBytes_7733_; lean_object* v___x_7735_; uint8_t v_isShared_7736_; uint8_t v_isSharedCheck_7745_; +v_userData_7726_ = lean_ctor_get(v_writer_7714_, 0); +v_outputData_7727_ = lean_ctor_get(v_writer_7714_, 1); +v_knownSize_7728_ = lean_ctor_get(v_writer_7714_, 3); +v_messageHead_7729_ = lean_ctor_get(v_writer_7714_, 4); +v_sentMessage_7730_ = lean_ctor_get_uint8(v_writer_7714_, sizeof(void*)*6); +v_userClosedBody_7731_ = lean_ctor_get_uint8(v_writer_7714_, sizeof(void*)*6 + 1); +v_omitBody_7732_ = lean_ctor_get_uint8(v_writer_7714_, sizeof(void*)*6 + 2); +v_userDataBytes_7733_ = lean_ctor_get(v_writer_7714_, 5); +v_isSharedCheck_7745_ = !lean_is_exclusive(v_writer_7714_); +if (v_isSharedCheck_7745_ == 0) { -lean_object* v_unused_6921_; -v_unused_6921_ = lean_ctor_get(v_writer_6889_, 2); -lean_dec(v_unused_6921_); -v___x_6910_ = v_writer_6889_; -v_isShared_6911_ = v_isSharedCheck_6920_; -goto v_resetjp_6909_; +lean_object* v_unused_7746_; +v_unused_7746_ = lean_ctor_get(v_writer_7714_, 2); +lean_dec(v_unused_7746_); +v___x_7735_ = v_writer_7714_; +v_isShared_7736_ = v_isSharedCheck_7745_; +goto v_resetjp_7734_; } else { -lean_inc(v_userDataBytes_6908_); -lean_inc(v_messageHead_6904_); -lean_inc(v_knownSize_6903_); -lean_inc(v_outputData_6902_); -lean_inc(v_userData_6901_); -lean_dec(v_writer_6889_); -v___x_6910_ = lean_box(0); -v_isShared_6911_ = v_isSharedCheck_6920_; -goto v_resetjp_6909_; +lean_inc(v_userDataBytes_7733_); +lean_inc(v_messageHead_7729_); +lean_inc(v_knownSize_7728_); +lean_inc(v_outputData_7727_); +lean_inc(v_userData_7726_); +lean_dec(v_writer_7714_); +v___x_7735_ = lean_box(0); +v_isShared_7736_ = v_isSharedCheck_7745_; +goto v_resetjp_7734_; } -v_resetjp_6909_: +v_resetjp_7734_: { -lean_object* v___x_6912_; lean_object* v___x_6914_; -v___x_6912_ = lean_box(4); -if (v_isShared_6911_ == 0) +lean_object* v___x_7737_; lean_object* v___x_7739_; +v___x_7737_ = lean_box(6); +if (v_isShared_7736_ == 0) { -lean_ctor_set(v___x_6910_, 2, v___x_6912_); -v___x_6914_ = v___x_6910_; -goto v_reusejp_6913_; +lean_ctor_set(v___x_7735_, 2, v___x_7737_); +v___x_7739_ = v___x_7735_; +goto v_reusejp_7738_; } else { -lean_object* v_reuseFailAlloc_6919_; -v_reuseFailAlloc_6919_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6919_, 0, v_userData_6901_); -lean_ctor_set(v_reuseFailAlloc_6919_, 1, v_outputData_6902_); -lean_ctor_set(v_reuseFailAlloc_6919_, 2, v___x_6912_); -lean_ctor_set(v_reuseFailAlloc_6919_, 3, v_knownSize_6903_); -lean_ctor_set(v_reuseFailAlloc_6919_, 4, v_messageHead_6904_); -lean_ctor_set(v_reuseFailAlloc_6919_, 5, v_userDataBytes_6908_); -lean_ctor_set_uint8(v_reuseFailAlloc_6919_, sizeof(void*)*6, v_sentMessage_6905_); -lean_ctor_set_uint8(v_reuseFailAlloc_6919_, sizeof(void*)*6 + 1, v_userClosedBody_6906_); -lean_ctor_set_uint8(v_reuseFailAlloc_6919_, sizeof(void*)*6 + 2, v_omitBody_6907_); -v___x_6914_ = v_reuseFailAlloc_6919_; -goto v_reusejp_6913_; +lean_object* v_reuseFailAlloc_7744_; +v_reuseFailAlloc_7744_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7744_, 0, v_userData_7726_); +lean_ctor_set(v_reuseFailAlloc_7744_, 1, v_outputData_7727_); +lean_ctor_set(v_reuseFailAlloc_7744_, 2, v___x_7737_); +lean_ctor_set(v_reuseFailAlloc_7744_, 3, v_knownSize_7728_); +lean_ctor_set(v_reuseFailAlloc_7744_, 4, v_messageHead_7729_); +lean_ctor_set(v_reuseFailAlloc_7744_, 5, v_userDataBytes_7733_); +lean_ctor_set_uint8(v_reuseFailAlloc_7744_, sizeof(void*)*6, v_sentMessage_7730_); +lean_ctor_set_uint8(v_reuseFailAlloc_7744_, sizeof(void*)*6 + 1, v_userClosedBody_7731_); +lean_ctor_set_uint8(v_reuseFailAlloc_7744_, sizeof(void*)*6 + 2, v_omitBody_7732_); +v___x_7739_ = v_reuseFailAlloc_7744_; +goto v_reusejp_7738_; } -v_reusejp_6913_: +v_reusejp_7738_: { -lean_object* v___x_6916_; -if (v_isShared_6900_ == 0) +lean_object* v___x_7741_; +if (v_isShared_7725_ == 0) { -lean_ctor_set(v___x_6899_, 1, v___x_6914_); -v___x_6916_ = v___x_6899_; -goto v_reusejp_6915_; +lean_ctor_set(v___x_7724_, 1, v___x_7739_); +v___x_7741_ = v___x_7724_; +goto v_reusejp_7740_; } else { -lean_object* v_reuseFailAlloc_6918_; -v_reuseFailAlloc_6918_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_6918_, 0, v_reader_6890_); -lean_ctor_set(v_reuseFailAlloc_6918_, 1, v___x_6914_); -lean_ctor_set(v_reuseFailAlloc_6918_, 2, v_config_6891_); -lean_ctor_set(v_reuseFailAlloc_6918_, 3, v_events_6892_); -lean_ctor_set(v_reuseFailAlloc_6918_, 4, v_error_6893_); -lean_ctor_set(v_reuseFailAlloc_6918_, 5, v_instant_6894_); -lean_ctor_set_uint8(v_reuseFailAlloc_6918_, sizeof(void*)*6, v_keepAlive_6895_); -lean_ctor_set_uint8(v_reuseFailAlloc_6918_, sizeof(void*)*6 + 1, v_forcedFlush_6896_); -lean_ctor_set_uint8(v_reuseFailAlloc_6918_, sizeof(void*)*6 + 2, v_pullBodyStalled_6897_); -v___x_6916_ = v_reuseFailAlloc_6918_; -goto v_reusejp_6915_; +lean_object* v_reuseFailAlloc_7743_; +v_reuseFailAlloc_7743_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_7743_, 0, v_reader_7715_); +lean_ctor_set(v_reuseFailAlloc_7743_, 1, v___x_7739_); +lean_ctor_set(v_reuseFailAlloc_7743_, 2, v_config_7716_); +lean_ctor_set(v_reuseFailAlloc_7743_, 3, v_events_7717_); +lean_ctor_set(v_reuseFailAlloc_7743_, 4, v_error_7718_); +lean_ctor_set(v_reuseFailAlloc_7743_, 5, v_instant_7719_); +lean_ctor_set_uint8(v_reuseFailAlloc_7743_, sizeof(void*)*6, v_keepAlive_7720_); +lean_ctor_set_uint8(v_reuseFailAlloc_7743_, sizeof(void*)*6 + 1, v_forcedFlush_7721_); +lean_ctor_set_uint8(v_reuseFailAlloc_7743_, sizeof(void*)*6 + 2, v_pullBodyStalled_7722_); +v___x_7741_ = v_reuseFailAlloc_7743_; +goto v_reusejp_7740_; } -v_reusejp_6915_: +v_reusejp_7740_: { -lean_object* v___x_6917_; -v___x_6917_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_6887_, v___x_6916_); -return v___x_6917_; +lean_object* v___x_7742_; +v___x_7742_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_7712_, v___x_7741_); +return v___x_7742_; } } } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage___boxed(lean_object* v_dir_6923_, lean_object* v_machine_6924_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage___boxed(lean_object* v_dir_7748_, lean_object* v_machine_7749_){ _start: { -uint8_t v_dir_boxed_6925_; lean_object* v_res_6926_; -v_dir_boxed_6925_ = lean_unbox(v_dir_6923_); -v_res_6926_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_boxed_6925_, v_machine_6924_); -return v_res_6926_; +uint8_t v_dir_boxed_7750_; lean_object* v_res_7751_; +v_dir_boxed_7750_ = lean_unbox(v_dir_7748_); +v_res_7751_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeWriterMessage(v_dir_boxed_7750_, v_machine_7749_); +return v_res_7751_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody___boxed(lean_object* v_dir_6927_, lean_object* v_machine_6928_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody___boxed(lean_object* v_dir_7752_, lean_object* v_machine_7753_){ _start: { -uint8_t v_dir_boxed_6929_; lean_object* v_res_6930_; -v_dir_boxed_6929_ = lean_unbox(v_dir_6927_); -v_res_6930_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_boxed_6929_, v_machine_6928_); -return v_res_6930_; +uint8_t v_dir_boxed_7754_; lean_object* v_res_7755_; +v_dir_boxed_7754_ = lean_unbox(v_dir_7752_); +v_res_7755_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_completeOmittedBody(v_dir_boxed_7754_, v_machine_7753_); +return v_res_7755_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody___boxed(lean_object* v_dir_6931_, lean_object* v_machine_6932_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody___boxed(lean_object* v_dir_7756_, lean_object* v_machine_7757_){ _start: { -uint8_t v_dir_boxed_6933_; lean_object* v_res_6934_; -v_dir_boxed_6933_ = lean_unbox(v_dir_6931_); -v_res_6934_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(v_dir_boxed_6933_, v_machine_6932_); -return v_res_6934_; +uint8_t v_dir_boxed_7758_; lean_object* v_res_7759_; +v_dir_boxed_7758_ = lean_unbox(v_dir_7756_); +v_res_7759_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processChunkedBody(v_dir_boxed_7758_, v_machine_7757_); +return v_res_7759_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody___boxed(lean_object* v_dir_6935_, lean_object* v_machine_6936_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody___boxed(lean_object* v_dir_7760_, lean_object* v_machine_7761_){ _start: { -uint8_t v_dir_boxed_6937_; lean_object* v_res_6938_; -v_dir_boxed_6937_ = lean_unbox(v_dir_6935_); -v_res_6938_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(v_dir_boxed_6937_, v_machine_6936_); -return v_res_6938_; +uint8_t v_dir_boxed_7762_; lean_object* v_res_7763_; +v_dir_boxed_7762_ = lean_unbox(v_dir_7760_); +v_res_7763_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processClosingFrameBody(v_dir_boxed_7762_, v_machine_7761_); +return v_res_7763_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody___boxed(lean_object* v_dir_6939_, lean_object* v_machine_6940_, lean_object* v_n_6941_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody___boxed(lean_object* v_dir_7764_, lean_object* v_machine_7765_){ _start: { -uint8_t v_dir_boxed_6942_; lean_object* v_res_6943_; -v_dir_boxed_6942_ = lean_unbox(v_dir_6939_); -v_res_6943_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(v_dir_boxed_6942_, v_machine_6940_, v_n_6941_); -return v_res_6943_; +uint8_t v_dir_boxed_7766_; lean_object* v_res_7767_; +v_dir_boxed_7766_ = lean_unbox(v_dir_7764_); +v_res_7767_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedZeroBody(v_dir_boxed_7766_, v_machine_7765_); +return v_res_7767_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___boxed(lean_object* v_dir_6944_, lean_object* v_machine_6945_, lean_object* v_n_6946_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody___boxed(lean_object* v_dir_7768_, lean_object* v_machine_7769_, lean_object* v_n_7770_){ _start: { -uint8_t v_dir_boxed_6947_; lean_object* v_res_6948_; -v_dir_boxed_6947_ = lean_unbox(v_dir_6944_); -v_res_6948_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(v_dir_boxed_6947_, v_machine_6945_, v_n_6946_); -return v_res_6948_; +uint8_t v_dir_boxed_7771_; lean_object* v_res_7772_; +v_dir_boxed_7771_ = lean_unbox(v_dir_7768_); +v_res_7772_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBody(v_dir_boxed_7771_, v_machine_7769_, v_n_7770_); +return v_res_7772_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processWrite___boxed(lean_object* v_dir_6949_, lean_object* v_machine_6950_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody___boxed(lean_object* v_dir_7773_, lean_object* v_machine_7774_, lean_object* v_n_7775_){ _start: { -uint8_t v_dir_boxed_6951_; lean_object* v_res_6952_; -v_dir_boxed_6951_ = lean_unbox(v_dir_6949_); -v_res_6952_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_boxed_6951_, v_machine_6950_); -return v_res_6952_; +uint8_t v_dir_boxed_7776_; lean_object* v_res_7777_; +v_dir_boxed_7776_ = lean_unbox(v_dir_7773_); +v_res_7777_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processFixedBufferedBody(v_dir_boxed_7776_, v_machine_7774_, v_n_7775_); +return v_res_7777_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(lean_object* v_error_6953_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processWrite___boxed(lean_object* v_dir_7778_, lean_object* v_machine_7779_){ _start: { -switch(lean_obj_tag(v_error_6953_)) +uint8_t v_dir_boxed_7780_; lean_object* v_res_7781_; +v_dir_boxed_7780_ = lean_unbox(v_dir_7778_); +v_res_7781_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_boxed_7780_, v_machine_7779_); +return v_res_7781_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(lean_object* v_error_7782_){ +_start: +{ +switch(lean_obj_tag(v_error_7782_)) { case 5: { -lean_object* v___x_6954_; -v___x_6954_ = lean_box(57); -return v___x_6954_; +lean_object* v___x_7783_; +v___x_7783_ = lean_box(57); +return v___x_7783_; } case 3: { -lean_object* v___x_6955_; -v___x_6955_ = lean_box(36); -return v___x_6955_; +lean_object* v___x_7784_; +v___x_7784_ = lean_box(36); +return v___x_7784_; } case 4: { -lean_object* v___x_6956_; -v___x_6956_ = lean_box(37); -return v___x_6956_; +lean_object* v___x_7785_; +v___x_7785_ = lean_box(37); +return v___x_7785_; } case 9: { -lean_object* v___x_6957_; -v___x_6957_ = lean_box(50); -return v___x_6957_; +lean_object* v___x_7786_; +v___x_7786_ = lean_box(50); +return v___x_7786_; } case 10: { -lean_object* v___x_6958_; -v___x_6958_ = lean_box(50); -return v___x_6958_; +lean_object* v___x_7787_; +v___x_7787_ = lean_box(50); +return v___x_7787_; } default: { -lean_object* v___x_6959_; -v___x_6959_ = lean_box(23); -return v___x_6959_; +lean_object* v___x_7788_; +v___x_7788_ = lean_box(23); +return v___x_7788_; } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus___boxed(lean_object* v_error_6960_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus___boxed(lean_object* v_error_7789_){ _start: { -lean_object* v_res_6961_; -v_res_6961_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(v_error_6960_); -lean_dec(v_error_6960_); -return v_res_6961_; +lean_object* v_res_7790_; +v_res_7790_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(v_error_7789_); +lean_dec(v_error_7789_); +return v_res_7790_; } } static uint8_t _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0(void){ _start: { -lean_object* v___x_6962_; uint8_t v___x_6963_; -v___x_6962_ = lean_box(1); -v___x_6963_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v___x_6962_, v___x_6962_); -return v___x_6963_; +lean_object* v___x_7791_; uint8_t v___x_7792_; +v___x_7791_ = lean_box(1); +v___x_7792_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v___x_7791_, v___x_7791_); +return v___x_7792_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(uint8_t v_dir_6964_, lean_object* v_machine_6965_, lean_object* v_error_6966_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(uint8_t v_dir_7793_, lean_object* v_machine_7794_, lean_object* v_error_7795_){ _start: { -lean_object* v_reader_6968_; lean_object* v_writer_6969_; lean_object* v_config_6970_; lean_object* v_events_6971_; lean_object* v_instant_6972_; uint8_t v_keepAlive_6973_; uint8_t v_forcedFlush_6974_; uint8_t v_pullBodyStalled_6975_; lean_object* v_reader_6994_; lean_object* v_userData_6995_; lean_object* v_outputData_6996_; lean_object* v_state_6997_; lean_object* v_knownSize_6998_; lean_object* v_messageHead_6999_; uint8_t v_sentMessage_7000_; uint8_t v_omitBody_7001_; lean_object* v_userDataBytes_7002_; lean_object* v_config_7003_; lean_object* v_events_7004_; lean_object* v_instant_7005_; uint8_t v_keepAlive_7006_; uint8_t v_forcedFlush_7007_; uint8_t v_pullBodyStalled_7008_; lean_object* v___y_7012_; lean_object* v___y_7030_; uint8_t v___y_7031_; uint8_t v___y_7032_; -if (v_dir_6964_ == 0) -{ -lean_object* v_writer_7049_; uint8_t v_sentMessage_7050_; -v_writer_7049_ = lean_ctor_get(v_machine_6965_, 1); -lean_inc_ref(v_writer_7049_); -v_sentMessage_7050_ = lean_ctor_get_uint8(v_writer_7049_, sizeof(void*)*6); -if (v_sentMessage_7050_ == 0) -{ -lean_object* v_state_7051_; -v_state_7051_ = lean_ctor_get(v_writer_7049_, 2); -if (lean_obj_tag(v_state_7051_) == 5) -{ -lean_object* v_reader_7052_; lean_object* v_config_7053_; lean_object* v_events_7054_; lean_object* v_instant_7055_; uint8_t v_keepAlive_7056_; uint8_t v_forcedFlush_7057_; uint8_t v_pullBodyStalled_7058_; -v_reader_7052_ = lean_ctor_get(v_machine_6965_, 0); -lean_inc_ref(v_reader_7052_); -v_config_7053_ = lean_ctor_get(v_machine_6965_, 2); -lean_inc_ref(v_config_7053_); -v_events_7054_ = lean_ctor_get(v_machine_6965_, 3); -lean_inc_ref(v_events_7054_); -v_instant_7055_ = lean_ctor_get(v_machine_6965_, 5); -lean_inc(v_instant_7055_); -v_keepAlive_7056_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6); -v_forcedFlush_7057_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7058_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 2); -lean_dec_ref(v_machine_6965_); -v_reader_6968_ = v_reader_7052_; -v_writer_6969_ = v_writer_7049_; -v_config_6970_ = v_config_7053_; -v_events_6971_ = v_events_7054_; -v_instant_6972_ = v_instant_7055_; -v_keepAlive_6973_ = v_keepAlive_7056_; -v_forcedFlush_6974_ = v_forcedFlush_7057_; -v_pullBodyStalled_6975_ = v_pullBodyStalled_7058_; -goto v___jp_6967_; -} -else -{ -lean_object* v_reader_7059_; lean_object* v_config_7060_; lean_object* v_events_7061_; lean_object* v_error_7062_; lean_object* v_instant_7063_; uint8_t v_forcedFlush_7064_; uint8_t v_pullBodyStalled_7065_; lean_object* v___x_7067_; uint8_t v_isShared_7068_; uint8_t v_isSharedCheck_7128_; -v_reader_7059_ = lean_ctor_get(v_machine_6965_, 0); -v_config_7060_ = lean_ctor_get(v_machine_6965_, 2); -v_events_7061_ = lean_ctor_get(v_machine_6965_, 3); -v_error_7062_ = lean_ctor_get(v_machine_6965_, 4); -v_instant_7063_ = lean_ctor_get(v_machine_6965_, 5); -v_forcedFlush_7064_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7065_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 2); -v_isSharedCheck_7128_ = !lean_is_exclusive(v_machine_6965_); -if (v_isSharedCheck_7128_ == 0) -{ -lean_object* v_unused_7129_; -v_unused_7129_ = lean_ctor_get(v_machine_6965_, 1); -lean_dec(v_unused_7129_); -v___x_7067_ = v_machine_6965_; -v_isShared_7068_ = v_isSharedCheck_7128_; -goto v_resetjp_7066_; -} -else -{ -lean_inc(v_instant_7063_); -lean_inc(v_error_7062_); -lean_inc(v_events_7061_); -lean_inc(v_config_7060_); -lean_inc(v_reader_7059_); -lean_dec(v_machine_6965_); -v___x_7067_ = lean_box(0); -v_isShared_7068_ = v_isSharedCheck_7128_; -goto v_resetjp_7066_; -} -v_resetjp_7066_: -{ -lean_object* v_userData_7069_; lean_object* v_outputData_7070_; lean_object* v_knownSize_7071_; lean_object* v_messageHead_7072_; uint8_t v_userClosedBody_7073_; uint8_t v_omitBody_7074_; lean_object* v_userDataBytes_7075_; lean_object* v___x_7077_; uint8_t v_isShared_7078_; uint8_t v_isSharedCheck_7126_; -v_userData_7069_ = lean_ctor_get(v_writer_7049_, 0); -v_outputData_7070_ = lean_ctor_get(v_writer_7049_, 1); -v_knownSize_7071_ = lean_ctor_get(v_writer_7049_, 3); -v_messageHead_7072_ = lean_ctor_get(v_writer_7049_, 4); -v_userClosedBody_7073_ = lean_ctor_get_uint8(v_writer_7049_, sizeof(void*)*6 + 1); -v_omitBody_7074_ = lean_ctor_get_uint8(v_writer_7049_, sizeof(void*)*6 + 2); -v_userDataBytes_7075_ = lean_ctor_get(v_writer_7049_, 5); -v_isSharedCheck_7126_ = !lean_is_exclusive(v_writer_7049_); -if (v_isSharedCheck_7126_ == 0) -{ -lean_object* v_unused_7127_; -v_unused_7127_ = lean_ctor_get(v_writer_7049_, 2); -lean_dec(v_unused_7127_); -v___x_7077_ = v_writer_7049_; -v_isShared_7078_ = v_isSharedCheck_7126_; -goto v_resetjp_7076_; -} -else -{ -lean_inc(v_userDataBytes_7075_); -lean_inc(v_messageHead_7072_); -lean_inc(v_knownSize_7071_); -lean_inc(v_outputData_7070_); -lean_inc(v_userData_7069_); -lean_dec(v_writer_7049_); -v___x_7077_ = lean_box(0); -v_isShared_7078_ = v_isSharedCheck_7126_; -goto v_resetjp_7076_; -} -v_resetjp_7076_: -{ -lean_object* v___x_7079_; uint8_t v___x_7080_; -v___x_7079_ = lean_box(1); -v___x_7080_ = lean_uint8_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0); -if (v___x_7080_ == 0) -{ -lean_del_object(v___x_7077_); -lean_del_object(v___x_7067_); -lean_dec(v_error_7062_); -v_reader_6994_ = v_reader_7059_; -v_userData_6995_ = v_userData_7069_; -v_outputData_6996_ = v_outputData_7070_; -v_state_6997_ = v___x_7079_; -v_knownSize_6998_ = v_knownSize_7071_; -v_messageHead_6999_ = v_messageHead_7072_; -v_sentMessage_7000_ = v_sentMessage_7050_; -v_omitBody_7001_ = v_omitBody_7074_; -v_userDataBytes_7002_ = v_userDataBytes_7075_; -v_config_7003_ = v_config_7060_; -v_events_7004_ = v_events_7061_; -v_instant_7005_ = v_instant_7063_; -v_keepAlive_7006_ = v_sentMessage_7050_; -v_forcedFlush_7007_ = v_forcedFlush_7064_; -v_pullBodyStalled_7008_ = v_pullBodyStalled_7065_; -goto v___jp_6993_; -} -else -{ -lean_object* v___x_7081_; uint8_t v___x_7082_; lean_object* v___x_7083_; lean_object* v___x_7084_; uint8_t v___y_7086_; lean_object* v___y_7087_; uint8_t v___y_7088_; uint8_t v___y_7089_; uint8_t v___y_7090_; uint8_t v___y_7091_; uint8_t v___y_7098_; uint8_t v___y_7099_; uint8_t v___y_7100_; uint8_t v___y_7115_; uint8_t v___y_7116_; uint16_t v___x_7118_; uint16_t v___x_7119_; uint8_t v___x_7120_; -v___x_7081_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(v_error_6966_); -v___x_7082_ = 1; -v___x_7083_ = l_Std_Http_Headers_empty; -lean_inc(v___x_7081_); -v___x_7084_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_7084_, 0, v___x_7081_); -lean_ctor_set(v___x_7084_, 1, v___x_7083_); -lean_ctor_set_uint8(v___x_7084_, sizeof(void*)*2, v___x_7082_); -v___x_7118_ = 100; -v___x_7119_ = l_Std_Http_Status_toCode(v___x_7081_); -lean_dec(v___x_7081_); -v___x_7120_ = lean_uint16_dec_le(v___x_7118_, v___x_7119_); -if (v___x_7120_ == 0) -{ -lean_dec(v_messageHead_7072_); -v___y_7115_ = v___x_7080_; -v___y_7116_ = v_sentMessage_7050_; -goto v___jp_7114_; -} -else -{ -uint16_t v___x_7121_; uint8_t v___x_7122_; -v___x_7121_ = 200; -v___x_7122_ = lean_uint16_dec_lt(v___x_7119_, v___x_7121_); -if (v___x_7122_ == 0) -{ -lean_dec(v_messageHead_7072_); -v___y_7115_ = v___x_7080_; -v___y_7116_ = v_sentMessage_7050_; -goto v___jp_7114_; -} -else -{ -uint8_t v___x_7123_; lean_object* v___x_1382__overap_7124_; lean_object* v___x_7125_; -lean_del_object(v___x_7077_); -lean_del_object(v___x_7067_); -lean_dec(v_error_7062_); -v___x_7123_ = 1; -v___x_1382__overap_7124_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___x_7123_); -v___x_7125_ = lean_apply_2(v___x_1382__overap_7124_, v_outputData_7070_, v___x_7084_); -v_reader_6994_ = v_reader_7059_; -v_userData_6995_ = v_userData_7069_; -v_outputData_6996_ = v___x_7125_; -v_state_6997_ = v___x_7079_; -v_knownSize_6998_ = v_knownSize_7071_; -v_messageHead_6999_ = v_messageHead_7072_; -v_sentMessage_7000_ = v_sentMessage_7050_; -v_omitBody_7001_ = v_omitBody_7074_; -v_userDataBytes_7002_ = v_userDataBytes_7075_; -v_config_7003_ = v_config_7060_; -v_events_7004_ = v_events_7061_; -v_instant_7005_ = v_instant_7063_; -v_keepAlive_7006_ = v_sentMessage_7050_; -v_forcedFlush_7007_ = v_forcedFlush_7064_; -v_pullBodyStalled_7008_ = v_pullBodyStalled_7065_; -goto v___jp_6993_; -} -} -v___jp_7085_: -{ -lean_object* v_headerSize_7092_; lean_object* v_machine_7093_; lean_object* v_machine_7094_; lean_object* v_reader_7095_; lean_object* v_state_7096_; -v_headerSize_7092_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_7089_, v___x_7084_, v___y_7088_); -v_machine_7093_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_7087_, v_headerSize_7092_, v___y_7091_); -v_machine_7094_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_6964_, v_machine_7093_, v___x_7084_); -lean_dec_ref(v___x_7084_); -v_reader_7095_ = lean_ctor_get(v_machine_7094_, 0); -lean_inc_ref(v_reader_7095_); -v_state_7096_ = lean_ctor_get(v_reader_7095_, 0); -lean_inc(v_state_7096_); -lean_dec_ref(v_reader_7095_); -if (lean_obj_tag(v_state_7096_) == 7) -{ -lean_dec_ref(v_state_7096_); -v___y_7030_ = v_machine_7094_; -v___y_7031_ = v___y_7090_; -v___y_7032_ = v___y_7086_; -goto v___jp_7029_; -} -else -{ -lean_dec(v_state_7096_); -v___y_7030_ = v_machine_7094_; -v___y_7031_ = v___y_7090_; -v___y_7032_ = v___y_7088_; -goto v___jp_7029_; -} -} -v___jp_7097_: -{ -uint8_t v___x_7101_; lean_object* v___x_7102_; lean_object* v_indexes_7103_; lean_object* v___x_7105_; -v___x_7101_ = 1; -v___x_7102_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_7101_, v___x_7084_); -v_indexes_7103_ = lean_ctor_get(v___x_7102_, 1); -lean_inc_ref(v_indexes_7103_); -lean_dec_ref(v___x_7102_); -lean_inc_ref(v___x_7084_); -if (v_isShared_7078_ == 0) -{ -lean_ctor_set(v___x_7077_, 4, v___x_7084_); -lean_ctor_set(v___x_7077_, 2, v___x_7079_); -v___x_7105_ = v___x_7077_; -goto v_reusejp_7104_; -} -else -{ -lean_object* v_reuseFailAlloc_7113_; -v_reuseFailAlloc_7113_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7113_, 0, v_userData_7069_); -lean_ctor_set(v_reuseFailAlloc_7113_, 1, v_outputData_7070_); -lean_ctor_set(v_reuseFailAlloc_7113_, 2, v___x_7079_); -lean_ctor_set(v_reuseFailAlloc_7113_, 3, v_knownSize_7071_); -lean_ctor_set(v_reuseFailAlloc_7113_, 4, v___x_7084_); -lean_ctor_set(v_reuseFailAlloc_7113_, 5, v_userDataBytes_7075_); -lean_ctor_set_uint8(v_reuseFailAlloc_7113_, sizeof(void*)*6 + 1, v_userClosedBody_7073_); -lean_ctor_set_uint8(v_reuseFailAlloc_7113_, sizeof(void*)*6 + 2, v_omitBody_7074_); -v___x_7105_ = v_reuseFailAlloc_7113_; -goto v_reusejp_7104_; -} -v_reusejp_7104_: -{ -lean_object* v_machine_7107_; -lean_ctor_set_uint8(v___x_7105_, sizeof(void*)*6, v___y_7098_); -if (v_isShared_7068_ == 0) -{ -lean_ctor_set(v___x_7067_, 1, v___x_7105_); -v_machine_7107_ = v___x_7067_; -goto v_reusejp_7106_; -} -else -{ -lean_object* v_reuseFailAlloc_7112_; -v_reuseFailAlloc_7112_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7112_, 0, v_reader_7059_); -lean_ctor_set(v_reuseFailAlloc_7112_, 1, v___x_7105_); -lean_ctor_set(v_reuseFailAlloc_7112_, 2, v_config_7060_); -lean_ctor_set(v_reuseFailAlloc_7112_, 3, v_events_7061_); -lean_ctor_set(v_reuseFailAlloc_7112_, 4, v_error_7062_); -lean_ctor_set(v_reuseFailAlloc_7112_, 5, v_instant_7063_); -lean_ctor_set_uint8(v_reuseFailAlloc_7112_, sizeof(void*)*6 + 1, v_forcedFlush_7064_); -lean_ctor_set_uint8(v_reuseFailAlloc_7112_, sizeof(void*)*6 + 2, v_pullBodyStalled_7065_); -v_machine_7107_ = v_reuseFailAlloc_7112_; -goto v_reusejp_7106_; -} -v_reusejp_7106_: -{ -lean_object* v___x_7108_; uint8_t v___x_7109_; -lean_ctor_set_uint8(v_machine_7107_, sizeof(void*)*6, v_sentMessage_7050_); -v___x_7108_ = l_Std_Http_Header_Name_contentLength; -v___x_7109_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_7103_, v___x_7108_); -if (v___x_7109_ == 0) -{ -lean_object* v___x_7110_; uint8_t v___x_7111_; -v___x_7110_ = l_Std_Http_Header_Name_transferEncoding; -v___x_7111_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_7103_, v___x_7110_); -lean_dec_ref(v_indexes_7103_); -v___y_7086_ = v___y_7098_; -v___y_7087_ = v_machine_7107_; -v___y_7088_ = v___y_7099_; -v___y_7089_ = v___x_7101_; -v___y_7090_ = v___y_7100_; -v___y_7091_ = v___x_7111_; -goto v___jp_7085_; -} -else -{ -lean_dec_ref(v_indexes_7103_); -v___y_7086_ = v___y_7098_; -v___y_7087_ = v_machine_7107_; -v___y_7088_ = v___y_7099_; -v___y_7089_ = v___x_7101_; -v___y_7090_ = v___y_7100_; -v___y_7091_ = v___x_7109_; -goto v___jp_7085_; -} -} -} -} -v___jp_7114_: -{ -lean_object* v_state_7117_; -v_state_7117_ = lean_ctor_get(v_reader_7059_, 0); -if (lean_obj_tag(v_state_7117_) == 7) -{ -v___y_7098_ = v___y_7115_; -v___y_7099_ = v___y_7116_; -v___y_7100_ = v___y_7115_; -goto v___jp_7097_; -} -else -{ -v___y_7098_ = v___y_7115_; -v___y_7099_ = v___y_7116_; -v___y_7100_ = v___y_7116_; -goto v___jp_7097_; -} -} -} -} -} -} -} -else -{ -lean_object* v_reader_7130_; lean_object* v_config_7131_; lean_object* v_events_7132_; lean_object* v_instant_7133_; uint8_t v_keepAlive_7134_; uint8_t v_forcedFlush_7135_; uint8_t v_pullBodyStalled_7136_; -v_reader_7130_ = lean_ctor_get(v_machine_6965_, 0); -lean_inc_ref(v_reader_7130_); -v_config_7131_ = lean_ctor_get(v_machine_6965_, 2); -lean_inc_ref(v_config_7131_); -v_events_7132_ = lean_ctor_get(v_machine_6965_, 3); -lean_inc_ref(v_events_7132_); -v_instant_7133_ = lean_ctor_get(v_machine_6965_, 5); -lean_inc(v_instant_7133_); -v_keepAlive_7134_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6); -v_forcedFlush_7135_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7136_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 2); -lean_dec_ref(v_machine_6965_); -v_reader_6968_ = v_reader_7130_; -v_writer_6969_ = v_writer_7049_; -v_config_6970_ = v_config_7131_; -v_events_6971_ = v_events_7132_; -v_instant_6972_ = v_instant_7133_; -v_keepAlive_6973_ = v_keepAlive_7134_; -v_forcedFlush_6974_ = v_forcedFlush_7135_; -v_pullBodyStalled_6975_ = v_pullBodyStalled_7136_; -goto v___jp_6967_; -} -} -else -{ -lean_object* v_reader_7137_; lean_object* v_writer_7138_; lean_object* v_config_7139_; lean_object* v_events_7140_; lean_object* v_instant_7141_; uint8_t v_keepAlive_7142_; uint8_t v_forcedFlush_7143_; uint8_t v_pullBodyStalled_7144_; -v_reader_7137_ = lean_ctor_get(v_machine_6965_, 0); -lean_inc_ref(v_reader_7137_); -v_writer_7138_ = lean_ctor_get(v_machine_6965_, 1); -lean_inc_ref(v_writer_7138_); -v_config_7139_ = lean_ctor_get(v_machine_6965_, 2); -lean_inc_ref(v_config_7139_); -v_events_7140_ = lean_ctor_get(v_machine_6965_, 3); -lean_inc_ref(v_events_7140_); -v_instant_7141_ = lean_ctor_get(v_machine_6965_, 5); -lean_inc(v_instant_7141_); -v_keepAlive_7142_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6); -v_forcedFlush_7143_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7144_ = lean_ctor_get_uint8(v_machine_6965_, sizeof(void*)*6 + 2); -lean_dec_ref(v_machine_6965_); -v_reader_6968_ = v_reader_7137_; -v_writer_6969_ = v_writer_7138_; -v_config_6970_ = v_config_7139_; -v_events_6971_ = v_events_7140_; -v_instant_6972_ = v_instant_7141_; -v_keepAlive_6973_ = v_keepAlive_7142_; -v_forcedFlush_6974_ = v_forcedFlush_7143_; -v_pullBodyStalled_6975_ = v_pullBodyStalled_7144_; -goto v___jp_6967_; -} -v___jp_6967_: -{ -lean_object* v_input_6976_; lean_object* v_messageHead_6977_; lean_object* v_messageCount_6978_; lean_object* v_bodyBytesRead_6979_; lean_object* v_headerBytesRead_6980_; uint8_t v_noMoreInput_6981_; lean_object* v___x_6983_; uint8_t v_isShared_6984_; uint8_t v_isSharedCheck_6991_; -v_input_6976_ = lean_ctor_get(v_reader_6968_, 1); -v_messageHead_6977_ = lean_ctor_get(v_reader_6968_, 2); -v_messageCount_6978_ = lean_ctor_get(v_reader_6968_, 3); -v_bodyBytesRead_6979_ = lean_ctor_get(v_reader_6968_, 4); -v_headerBytesRead_6980_ = lean_ctor_get(v_reader_6968_, 5); -v_noMoreInput_6981_ = lean_ctor_get_uint8(v_reader_6968_, sizeof(void*)*6); -v_isSharedCheck_6991_ = !lean_is_exclusive(v_reader_6968_); -if (v_isSharedCheck_6991_ == 0) -{ -lean_object* v_unused_6992_; -v_unused_6992_ = lean_ctor_get(v_reader_6968_, 0); -lean_dec(v_unused_6992_); -v___x_6983_ = v_reader_6968_; -v_isShared_6984_ = v_isSharedCheck_6991_; -goto v_resetjp_6982_; -} -else -{ -lean_inc(v_headerBytesRead_6980_); -lean_inc(v_bodyBytesRead_6979_); -lean_inc(v_messageCount_6978_); -lean_inc(v_messageHead_6977_); -lean_inc(v_input_6976_); -lean_dec(v_reader_6968_); -v___x_6983_ = lean_box(0); -v_isShared_6984_ = v_isSharedCheck_6991_; -goto v_resetjp_6982_; -} -v_resetjp_6982_: -{ -lean_object* v___x_6985_; lean_object* v___x_6987_; -v___x_6985_ = lean_box(6); -if (v_isShared_6984_ == 0) -{ -lean_ctor_set(v___x_6983_, 0, v___x_6985_); -v___x_6987_ = v___x_6983_; -goto v_reusejp_6986_; -} -else -{ -lean_object* v_reuseFailAlloc_6990_; -v_reuseFailAlloc_6990_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_6990_, 0, v___x_6985_); -lean_ctor_set(v_reuseFailAlloc_6990_, 1, v_input_6976_); -lean_ctor_set(v_reuseFailAlloc_6990_, 2, v_messageHead_6977_); -lean_ctor_set(v_reuseFailAlloc_6990_, 3, v_messageCount_6978_); -lean_ctor_set(v_reuseFailAlloc_6990_, 4, v_bodyBytesRead_6979_); -lean_ctor_set(v_reuseFailAlloc_6990_, 5, v_headerBytesRead_6980_); -lean_ctor_set_uint8(v_reuseFailAlloc_6990_, sizeof(void*)*6, v_noMoreInput_6981_); -v___x_6987_ = v_reuseFailAlloc_6990_; -goto v_reusejp_6986_; -} -v_reusejp_6986_: -{ -lean_object* v___x_6988_; lean_object* v___x_6989_; -v___x_6988_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_6988_, 0, v_error_6966_); -v___x_6989_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_6989_, 0, v___x_6987_); -lean_ctor_set(v___x_6989_, 1, v_writer_6969_); -lean_ctor_set(v___x_6989_, 2, v_config_6970_); -lean_ctor_set(v___x_6989_, 3, v_events_6971_); -lean_ctor_set(v___x_6989_, 4, v___x_6988_); -lean_ctor_set(v___x_6989_, 5, v_instant_6972_); -lean_ctor_set_uint8(v___x_6989_, sizeof(void*)*6, v_keepAlive_6973_); -lean_ctor_set_uint8(v___x_6989_, sizeof(void*)*6 + 1, v_forcedFlush_6974_); -lean_ctor_set_uint8(v___x_6989_, sizeof(void*)*6 + 2, v_pullBodyStalled_6975_); -return v___x_6989_; -} -} -} -v___jp_6993_: -{ -uint8_t v___x_7009_; lean_object* v___x_7010_; -v___x_7009_ = 1; -v___x_7010_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_7010_, 0, v_userData_6995_); -lean_ctor_set(v___x_7010_, 1, v_outputData_6996_); -lean_ctor_set(v___x_7010_, 2, v_state_6997_); -lean_ctor_set(v___x_7010_, 3, v_knownSize_6998_); -lean_ctor_set(v___x_7010_, 4, v_messageHead_6999_); -lean_ctor_set(v___x_7010_, 5, v_userDataBytes_7002_); -lean_ctor_set_uint8(v___x_7010_, sizeof(void*)*6, v_sentMessage_7000_); -lean_ctor_set_uint8(v___x_7010_, sizeof(void*)*6 + 1, v___x_7009_); -lean_ctor_set_uint8(v___x_7010_, sizeof(void*)*6 + 2, v_omitBody_7001_); -v_reader_6968_ = v_reader_6994_; -v_writer_6969_ = v___x_7010_; -v_config_6970_ = v_config_7003_; -v_events_6971_ = v_events_7004_; -v_instant_6972_ = v_instant_7005_; -v_keepAlive_6973_ = v_keepAlive_7006_; -v_forcedFlush_6974_ = v_forcedFlush_7007_; -v_pullBodyStalled_6975_ = v_pullBodyStalled_7008_; -goto v___jp_6967_; -} -v___jp_7011_: -{ -lean_object* v_writer_7013_; lean_object* v_reader_7014_; lean_object* v_config_7015_; lean_object* v_events_7016_; lean_object* v_instant_7017_; uint8_t v_keepAlive_7018_; uint8_t v_forcedFlush_7019_; uint8_t v_pullBodyStalled_7020_; lean_object* v_userData_7021_; lean_object* v_outputData_7022_; lean_object* v_knownSize_7023_; lean_object* v_messageHead_7024_; uint8_t v_sentMessage_7025_; uint8_t v_omitBody_7026_; lean_object* v_userDataBytes_7027_; lean_object* v___x_7028_; -v_writer_7013_ = lean_ctor_get(v___y_7012_, 1); -lean_inc_ref(v_writer_7013_); -v_reader_7014_ = lean_ctor_get(v___y_7012_, 0); -lean_inc_ref(v_reader_7014_); -v_config_7015_ = lean_ctor_get(v___y_7012_, 2); -lean_inc_ref(v_config_7015_); -v_events_7016_ = lean_ctor_get(v___y_7012_, 3); -lean_inc_ref(v_events_7016_); -v_instant_7017_ = lean_ctor_get(v___y_7012_, 5); -lean_inc(v_instant_7017_); -v_keepAlive_7018_ = lean_ctor_get_uint8(v___y_7012_, sizeof(void*)*6); -v_forcedFlush_7019_ = lean_ctor_get_uint8(v___y_7012_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7020_ = lean_ctor_get_uint8(v___y_7012_, sizeof(void*)*6 + 2); -lean_dec_ref(v___y_7012_); -v_userData_7021_ = lean_ctor_get(v_writer_7013_, 0); -lean_inc_ref(v_userData_7021_); -v_outputData_7022_ = lean_ctor_get(v_writer_7013_, 1); -lean_inc_ref(v_outputData_7022_); -v_knownSize_7023_ = lean_ctor_get(v_writer_7013_, 3); -lean_inc(v_knownSize_7023_); -v_messageHead_7024_ = lean_ctor_get(v_writer_7013_, 4); -lean_inc(v_messageHead_7024_); -v_sentMessage_7025_ = lean_ctor_get_uint8(v_writer_7013_, sizeof(void*)*6); -v_omitBody_7026_ = lean_ctor_get_uint8(v_writer_7013_, sizeof(void*)*6 + 2); -v_userDataBytes_7027_ = lean_ctor_get(v_writer_7013_, 5); -lean_inc(v_userDataBytes_7027_); -lean_dec_ref(v_writer_7013_); -v___x_7028_ = lean_box(2); -v_reader_6994_ = v_reader_7014_; -v_userData_6995_ = v_userData_7021_; -v_outputData_6996_ = v_outputData_7022_; -v_state_6997_ = v___x_7028_; -v_knownSize_6998_ = v_knownSize_7023_; -v_messageHead_6999_ = v_messageHead_7024_; -v_sentMessage_7000_ = v_sentMessage_7025_; -v_omitBody_7001_ = v_omitBody_7026_; -v_userDataBytes_7002_ = v_userDataBytes_7027_; -v_config_7003_ = v_config_7015_; -v_events_7004_ = v_events_7016_; -v_instant_7005_ = v_instant_7017_; -v_keepAlive_7006_ = v_keepAlive_7018_; -v_forcedFlush_7007_ = v_forcedFlush_7019_; -v_pullBodyStalled_7008_ = v_pullBodyStalled_7020_; -goto v___jp_6993_; -} -v___jp_7029_: -{ -if (v___y_7032_ == 0) -{ -v___y_7012_ = v___y_7030_; -goto v___jp_7011_; -} -else -{ -if (v___y_7031_ == 0) -{ -lean_object* v_writer_7033_; lean_object* v_reader_7034_; lean_object* v_config_7035_; lean_object* v_events_7036_; lean_object* v_instant_7037_; uint8_t v_keepAlive_7038_; uint8_t v_forcedFlush_7039_; uint8_t v_pullBodyStalled_7040_; lean_object* v_userData_7041_; lean_object* v_outputData_7042_; lean_object* v_state_7043_; lean_object* v_knownSize_7044_; lean_object* v_messageHead_7045_; uint8_t v_sentMessage_7046_; uint8_t v_omitBody_7047_; lean_object* v_userDataBytes_7048_; -v_writer_7033_ = lean_ctor_get(v___y_7030_, 1); -lean_inc_ref(v_writer_7033_); -v_reader_7034_ = lean_ctor_get(v___y_7030_, 0); -lean_inc_ref(v_reader_7034_); -v_config_7035_ = lean_ctor_get(v___y_7030_, 2); -lean_inc_ref(v_config_7035_); -v_events_7036_ = lean_ctor_get(v___y_7030_, 3); -lean_inc_ref(v_events_7036_); -v_instant_7037_ = lean_ctor_get(v___y_7030_, 5); -lean_inc(v_instant_7037_); -v_keepAlive_7038_ = lean_ctor_get_uint8(v___y_7030_, sizeof(void*)*6); -v_forcedFlush_7039_ = lean_ctor_get_uint8(v___y_7030_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7040_ = lean_ctor_get_uint8(v___y_7030_, sizeof(void*)*6 + 2); -lean_dec_ref(v___y_7030_); -v_userData_7041_ = lean_ctor_get(v_writer_7033_, 0); -lean_inc_ref(v_userData_7041_); -v_outputData_7042_ = lean_ctor_get(v_writer_7033_, 1); -lean_inc_ref(v_outputData_7042_); -v_state_7043_ = lean_ctor_get(v_writer_7033_, 2); -lean_inc(v_state_7043_); -v_knownSize_7044_ = lean_ctor_get(v_writer_7033_, 3); -lean_inc(v_knownSize_7044_); -v_messageHead_7045_ = lean_ctor_get(v_writer_7033_, 4); -lean_inc(v_messageHead_7045_); -v_sentMessage_7046_ = lean_ctor_get_uint8(v_writer_7033_, sizeof(void*)*6); -v_omitBody_7047_ = lean_ctor_get_uint8(v_writer_7033_, sizeof(void*)*6 + 2); -v_userDataBytes_7048_ = lean_ctor_get(v_writer_7033_, 5); -lean_inc(v_userDataBytes_7048_); -lean_dec_ref(v_writer_7033_); -v_reader_6994_ = v_reader_7034_; -v_userData_6995_ = v_userData_7041_; -v_outputData_6996_ = v_outputData_7042_; -v_state_6997_ = v_state_7043_; -v_knownSize_6998_ = v_knownSize_7044_; -v_messageHead_6999_ = v_messageHead_7045_; -v_sentMessage_7000_ = v_sentMessage_7046_; -v_omitBody_7001_ = v_omitBody_7047_; -v_userDataBytes_7002_ = v_userDataBytes_7048_; -v_config_7003_ = v_config_7035_; -v_events_7004_ = v_events_7036_; -v_instant_7005_ = v_instant_7037_; -v_keepAlive_7006_ = v_keepAlive_7038_; -v_forcedFlush_7007_ = v_forcedFlush_7039_; -v_pullBodyStalled_7008_ = v_pullBodyStalled_7040_; -goto v___jp_6993_; -} -else -{ -v___y_7012_ = v___y_7030_; -goto v___jp_7011_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___boxed(lean_object* v_dir_7145_, lean_object* v_machine_7146_, lean_object* v_error_7147_){ -_start: -{ -uint8_t v_dir_boxed_7148_; lean_object* v_res_7149_; -v_dir_boxed_7148_ = lean_unbox(v_dir_7145_); -v_res_7149_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(v_dir_boxed_7148_, v_machine_7146_, v_error_7147_); -return v_res_7149_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg(lean_object* v_machine_7154_){ -_start: -{ -lean_object* v___x_7155_; lean_object* v___x_7156_; -v___x_7155_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); -v___x_7156_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7156_, 0, v_machine_7154_); -lean_ctor_set(v___x_7156_, 1, v___x_7155_); -return v___x_7156_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress(uint8_t v_dir_7157_, lean_object* v_machine_7158_){ -_start: -{ -lean_object* v___x_7159_; lean_object* v___x_7160_; -v___x_7159_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); -v___x_7160_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7160_, 0, v_machine_7158_); -lean_ctor_set(v___x_7160_, 1, v___x_7159_); -return v___x_7160_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___boxed(lean_object* v_dir_7161_, lean_object* v_machine_7162_){ -_start: -{ -uint8_t v_dir_boxed_7163_; lean_object* v_res_7164_; -v_dir_boxed_7163_ = lean_unbox(v_dir_7161_); -v_res_7164_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress(v_dir_boxed_7163_, v_machine_7162_); -return v_res_7164_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge___redArg(lean_object* v_machine_7165_){ -_start: -{ -lean_object* v_reader_7166_; lean_object* v_writer_7167_; lean_object* v_config_7168_; lean_object* v_events_7169_; lean_object* v_instant_7170_; uint8_t v_keepAlive_7171_; uint8_t v_forcedFlush_7172_; uint8_t v_pullBodyStalled_7173_; lean_object* v___x_7175_; uint8_t v_isShared_7176_; uint8_t v_isSharedCheck_7200_; -v_reader_7166_ = lean_ctor_get(v_machine_7165_, 0); -v_writer_7167_ = lean_ctor_get(v_machine_7165_, 1); -v_config_7168_ = lean_ctor_get(v_machine_7165_, 2); -v_events_7169_ = lean_ctor_get(v_machine_7165_, 3); -v_instant_7170_ = lean_ctor_get(v_machine_7165_, 5); -v_keepAlive_7171_ = lean_ctor_get_uint8(v_machine_7165_, sizeof(void*)*6); -v_forcedFlush_7172_ = lean_ctor_get_uint8(v_machine_7165_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7173_ = lean_ctor_get_uint8(v_machine_7165_, sizeof(void*)*6 + 2); -v_isSharedCheck_7200_ = !lean_is_exclusive(v_machine_7165_); -if (v_isSharedCheck_7200_ == 0) -{ -lean_object* v_unused_7201_; -v_unused_7201_ = lean_ctor_get(v_machine_7165_, 4); -lean_dec(v_unused_7201_); -v___x_7175_ = v_machine_7165_; -v_isShared_7176_ = v_isSharedCheck_7200_; -goto v_resetjp_7174_; -} -else -{ -lean_inc(v_instant_7170_); -lean_inc(v_events_7169_); -lean_inc(v_config_7168_); -lean_inc(v_writer_7167_); -lean_inc(v_reader_7166_); -lean_dec(v_machine_7165_); -v___x_7175_ = lean_box(0); -v_isShared_7176_ = v_isSharedCheck_7200_; -goto v_resetjp_7174_; -} -v_resetjp_7174_: -{ -lean_object* v_input_7177_; lean_object* v_messageHead_7178_; lean_object* v_messageCount_7179_; lean_object* v_bodyBytesRead_7180_; lean_object* v_headerBytesRead_7181_; uint8_t v_noMoreInput_7182_; lean_object* v___x_7184_; uint8_t v_isShared_7185_; uint8_t v_isSharedCheck_7198_; -v_input_7177_ = lean_ctor_get(v_reader_7166_, 1); -v_messageHead_7178_ = lean_ctor_get(v_reader_7166_, 2); -v_messageCount_7179_ = lean_ctor_get(v_reader_7166_, 3); -v_bodyBytesRead_7180_ = lean_ctor_get(v_reader_7166_, 4); -v_headerBytesRead_7181_ = lean_ctor_get(v_reader_7166_, 5); -v_noMoreInput_7182_ = lean_ctor_get_uint8(v_reader_7166_, sizeof(void*)*6); -v_isSharedCheck_7198_ = !lean_is_exclusive(v_reader_7166_); -if (v_isSharedCheck_7198_ == 0) -{ -lean_object* v_unused_7199_; -v_unused_7199_ = lean_ctor_get(v_reader_7166_, 0); -lean_dec(v_unused_7199_); -v___x_7184_ = v_reader_7166_; -v_isShared_7185_ = v_isSharedCheck_7198_; -goto v_resetjp_7183_; -} -else -{ -lean_inc(v_headerBytesRead_7181_); -lean_inc(v_bodyBytesRead_7180_); -lean_inc(v_messageCount_7179_); -lean_inc(v_messageHead_7178_); -lean_inc(v_input_7177_); -lean_dec(v_reader_7166_); -v___x_7184_ = lean_box(0); -v_isShared_7185_ = v_isSharedCheck_7198_; -goto v_resetjp_7183_; -} -v_resetjp_7183_: -{ -lean_object* v___x_7186_; lean_object* v___x_7187_; lean_object* v___x_7188_; lean_object* v___x_7190_; -v___x_7186_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_7187_ = lean_array_push(v_events_7169_, v___x_7186_); -v___x_7188_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_7185_ == 0) -{ -lean_ctor_set(v___x_7184_, 0, v___x_7188_); -v___x_7190_ = v___x_7184_; -goto v_reusejp_7189_; -} -else -{ -lean_object* v_reuseFailAlloc_7197_; -v_reuseFailAlloc_7197_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7197_, 0, v___x_7188_); -lean_ctor_set(v_reuseFailAlloc_7197_, 1, v_input_7177_); -lean_ctor_set(v_reuseFailAlloc_7197_, 2, v_messageHead_7178_); -lean_ctor_set(v_reuseFailAlloc_7197_, 3, v_messageCount_7179_); -lean_ctor_set(v_reuseFailAlloc_7197_, 4, v_bodyBytesRead_7180_); -lean_ctor_set(v_reuseFailAlloc_7197_, 5, v_headerBytesRead_7181_); -lean_ctor_set_uint8(v_reuseFailAlloc_7197_, sizeof(void*)*6, v_noMoreInput_7182_); -v___x_7190_ = v_reuseFailAlloc_7197_; -goto v_reusejp_7189_; -} -v_reusejp_7189_: -{ -lean_object* v___x_7191_; lean_object* v___x_7193_; -v___x_7191_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_7176_ == 0) -{ -lean_ctor_set(v___x_7175_, 4, v___x_7191_); -lean_ctor_set(v___x_7175_, 3, v___x_7187_); -lean_ctor_set(v___x_7175_, 0, v___x_7190_); -v___x_7193_ = v___x_7175_; -goto v_reusejp_7192_; -} -else -{ -lean_object* v_reuseFailAlloc_7196_; -v_reuseFailAlloc_7196_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7196_, 0, v___x_7190_); -lean_ctor_set(v_reuseFailAlloc_7196_, 1, v_writer_7167_); -lean_ctor_set(v_reuseFailAlloc_7196_, 2, v_config_7168_); -lean_ctor_set(v_reuseFailAlloc_7196_, 3, v___x_7187_); -lean_ctor_set(v_reuseFailAlloc_7196_, 4, v___x_7191_); -lean_ctor_set(v_reuseFailAlloc_7196_, 5, v_instant_7170_); -lean_ctor_set_uint8(v_reuseFailAlloc_7196_, sizeof(void*)*6, v_keepAlive_7171_); -lean_ctor_set_uint8(v_reuseFailAlloc_7196_, sizeof(void*)*6 + 1, v_forcedFlush_7172_); -lean_ctor_set_uint8(v_reuseFailAlloc_7196_, sizeof(void*)*6 + 2, v_pullBodyStalled_7173_); -v___x_7193_ = v_reuseFailAlloc_7196_; -goto v_reusejp_7192_; -} -v_reusejp_7192_: -{ -lean_object* v___x_7194_; lean_object* v___x_7195_; -v___x_7194_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); -v___x_7195_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7195_, 0, v___x_7193_); -lean_ctor_set(v___x_7195_, 1, v___x_7194_); -return v___x_7195_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge(uint8_t v_dir_7202_, lean_object* v_machine_7203_){ -_start: -{ -lean_object* v_reader_7204_; lean_object* v_writer_7205_; lean_object* v_config_7206_; lean_object* v_events_7207_; lean_object* v_instant_7208_; uint8_t v_keepAlive_7209_; uint8_t v_forcedFlush_7210_; uint8_t v_pullBodyStalled_7211_; lean_object* v___x_7213_; uint8_t v_isShared_7214_; uint8_t v_isSharedCheck_7238_; -v_reader_7204_ = lean_ctor_get(v_machine_7203_, 0); -v_writer_7205_ = lean_ctor_get(v_machine_7203_, 1); -v_config_7206_ = lean_ctor_get(v_machine_7203_, 2); -v_events_7207_ = lean_ctor_get(v_machine_7203_, 3); -v_instant_7208_ = lean_ctor_get(v_machine_7203_, 5); -v_keepAlive_7209_ = lean_ctor_get_uint8(v_machine_7203_, sizeof(void*)*6); -v_forcedFlush_7210_ = lean_ctor_get_uint8(v_machine_7203_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7211_ = lean_ctor_get_uint8(v_machine_7203_, sizeof(void*)*6 + 2); -v_isSharedCheck_7238_ = !lean_is_exclusive(v_machine_7203_); -if (v_isSharedCheck_7238_ == 0) -{ -lean_object* v_unused_7239_; -v_unused_7239_ = lean_ctor_get(v_machine_7203_, 4); -lean_dec(v_unused_7239_); -v___x_7213_ = v_machine_7203_; -v_isShared_7214_ = v_isSharedCheck_7238_; -goto v_resetjp_7212_; -} -else -{ -lean_inc(v_instant_7208_); -lean_inc(v_events_7207_); -lean_inc(v_config_7206_); -lean_inc(v_writer_7205_); -lean_inc(v_reader_7204_); -lean_dec(v_machine_7203_); -v___x_7213_ = lean_box(0); -v_isShared_7214_ = v_isSharedCheck_7238_; -goto v_resetjp_7212_; -} -v_resetjp_7212_: -{ -lean_object* v_input_7215_; lean_object* v_messageHead_7216_; lean_object* v_messageCount_7217_; lean_object* v_bodyBytesRead_7218_; lean_object* v_headerBytesRead_7219_; uint8_t v_noMoreInput_7220_; lean_object* v___x_7222_; uint8_t v_isShared_7223_; uint8_t v_isSharedCheck_7236_; -v_input_7215_ = lean_ctor_get(v_reader_7204_, 1); -v_messageHead_7216_ = lean_ctor_get(v_reader_7204_, 2); -v_messageCount_7217_ = lean_ctor_get(v_reader_7204_, 3); -v_bodyBytesRead_7218_ = lean_ctor_get(v_reader_7204_, 4); -v_headerBytesRead_7219_ = lean_ctor_get(v_reader_7204_, 5); -v_noMoreInput_7220_ = lean_ctor_get_uint8(v_reader_7204_, sizeof(void*)*6); -v_isSharedCheck_7236_ = !lean_is_exclusive(v_reader_7204_); -if (v_isSharedCheck_7236_ == 0) -{ -lean_object* v_unused_7237_; -v_unused_7237_ = lean_ctor_get(v_reader_7204_, 0); -lean_dec(v_unused_7237_); -v___x_7222_ = v_reader_7204_; -v_isShared_7223_ = v_isSharedCheck_7236_; -goto v_resetjp_7221_; -} -else -{ -lean_inc(v_headerBytesRead_7219_); -lean_inc(v_bodyBytesRead_7218_); -lean_inc(v_messageCount_7217_); -lean_inc(v_messageHead_7216_); -lean_inc(v_input_7215_); -lean_dec(v_reader_7204_); -v___x_7222_ = lean_box(0); -v_isShared_7223_ = v_isSharedCheck_7236_; -goto v_resetjp_7221_; -} -v_resetjp_7221_: -{ -lean_object* v___x_7224_; lean_object* v___x_7225_; lean_object* v___x_7226_; lean_object* v___x_7228_; -v___x_7224_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_7225_ = lean_array_push(v_events_7207_, v___x_7224_); -v___x_7226_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_7223_ == 0) -{ -lean_ctor_set(v___x_7222_, 0, v___x_7226_); -v___x_7228_ = v___x_7222_; -goto v_reusejp_7227_; -} -else -{ -lean_object* v_reuseFailAlloc_7235_; -v_reuseFailAlloc_7235_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7235_, 0, v___x_7226_); -lean_ctor_set(v_reuseFailAlloc_7235_, 1, v_input_7215_); -lean_ctor_set(v_reuseFailAlloc_7235_, 2, v_messageHead_7216_); -lean_ctor_set(v_reuseFailAlloc_7235_, 3, v_messageCount_7217_); -lean_ctor_set(v_reuseFailAlloc_7235_, 4, v_bodyBytesRead_7218_); -lean_ctor_set(v_reuseFailAlloc_7235_, 5, v_headerBytesRead_7219_); -lean_ctor_set_uint8(v_reuseFailAlloc_7235_, sizeof(void*)*6, v_noMoreInput_7220_); -v___x_7228_ = v_reuseFailAlloc_7235_; -goto v_reusejp_7227_; -} -v_reusejp_7227_: -{ -lean_object* v___x_7229_; lean_object* v___x_7231_; -v___x_7229_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_7214_ == 0) -{ -lean_ctor_set(v___x_7213_, 4, v___x_7229_); -lean_ctor_set(v___x_7213_, 3, v___x_7225_); -lean_ctor_set(v___x_7213_, 0, v___x_7228_); -v___x_7231_ = v___x_7213_; -goto v_reusejp_7230_; -} -else -{ -lean_object* v_reuseFailAlloc_7234_; -v_reuseFailAlloc_7234_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7234_, 0, v___x_7228_); -lean_ctor_set(v_reuseFailAlloc_7234_, 1, v_writer_7205_); -lean_ctor_set(v_reuseFailAlloc_7234_, 2, v_config_7206_); -lean_ctor_set(v_reuseFailAlloc_7234_, 3, v___x_7225_); -lean_ctor_set(v_reuseFailAlloc_7234_, 4, v___x_7229_); -lean_ctor_set(v_reuseFailAlloc_7234_, 5, v_instant_7208_); -lean_ctor_set_uint8(v_reuseFailAlloc_7234_, sizeof(void*)*6, v_keepAlive_7209_); -lean_ctor_set_uint8(v_reuseFailAlloc_7234_, sizeof(void*)*6 + 1, v_forcedFlush_7210_); -lean_ctor_set_uint8(v_reuseFailAlloc_7234_, sizeof(void*)*6 + 2, v_pullBodyStalled_7211_); -v___x_7231_ = v_reuseFailAlloc_7234_; -goto v_reusejp_7230_; -} -v_reusejp_7230_: -{ -lean_object* v___x_7232_; lean_object* v___x_7233_; -v___x_7232_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); -v___x_7233_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7233_, 0, v___x_7231_); -lean_ctor_set(v___x_7233_, 1, v___x_7232_); -return v___x_7233_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge___boxed(lean_object* v_dir_7240_, lean_object* v_machine_7241_){ -_start: -{ -uint8_t v_dir_boxed_7242_; lean_object* v_res_7243_; -v_dir_boxed_7242_ = lean_unbox(v_dir_7240_); -v_res_7243_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge(v_dir_boxed_7242_, v_machine_7241_); -return v_res_7243_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(uint8_t v_dir_7244_, lean_object* v_machine_7245_, lean_object* v_nextState_7246_, uint8_t v_final_7247_, uint8_t v_incomplete_7248_, lean_object* v_extensions_7249_, lean_object* v_data_7250_, uint8_t v_closeBody_7251_){ -_start: -{ -lean_object* v_reader_7252_; lean_object* v_config_7253_; lean_object* v_writer_7254_; lean_object* v_events_7255_; lean_object* v_error_7256_; lean_object* v_instant_7257_; uint8_t v_keepAlive_7258_; uint8_t v_forcedFlush_7259_; uint8_t v_pullBodyStalled_7260_; lean_object* v___x_7262_; uint8_t v_isShared_7263_; uint8_t v_isSharedCheck_7330_; -v_reader_7252_ = lean_ctor_get(v_machine_7245_, 0); -v_config_7253_ = lean_ctor_get(v_machine_7245_, 2); -v_writer_7254_ = lean_ctor_get(v_machine_7245_, 1); -v_events_7255_ = lean_ctor_get(v_machine_7245_, 3); -v_error_7256_ = lean_ctor_get(v_machine_7245_, 4); -v_instant_7257_ = lean_ctor_get(v_machine_7245_, 5); -v_keepAlive_7258_ = lean_ctor_get_uint8(v_machine_7245_, sizeof(void*)*6); -v_forcedFlush_7259_ = lean_ctor_get_uint8(v_machine_7245_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7260_ = lean_ctor_get_uint8(v_machine_7245_, sizeof(void*)*6 + 2); -v_isSharedCheck_7330_ = !lean_is_exclusive(v_machine_7245_); -if (v_isSharedCheck_7330_ == 0) -{ -v___x_7262_ = v_machine_7245_; -v_isShared_7263_ = v_isSharedCheck_7330_; -goto v_resetjp_7261_; -} -else -{ -lean_inc(v_instant_7257_); -lean_inc(v_error_7256_); -lean_inc(v_events_7255_); -lean_inc(v_config_7253_); -lean_inc(v_writer_7254_); -lean_inc(v_reader_7252_); -lean_dec(v_machine_7245_); -v___x_7262_ = lean_box(0); -v_isShared_7263_ = v_isSharedCheck_7330_; -goto v_resetjp_7261_; -} -v_resetjp_7261_: -{ -lean_object* v_input_7264_; lean_object* v_messageHead_7265_; lean_object* v_messageCount_7266_; lean_object* v_bodyBytesRead_7267_; lean_object* v_headerBytesRead_7268_; uint8_t v_noMoreInput_7269_; lean_object* v___x_7271_; uint8_t v_isShared_7272_; uint8_t v_isSharedCheck_7328_; -v_input_7264_ = lean_ctor_get(v_reader_7252_, 1); -v_messageHead_7265_ = lean_ctor_get(v_reader_7252_, 2); -v_messageCount_7266_ = lean_ctor_get(v_reader_7252_, 3); -v_bodyBytesRead_7267_ = lean_ctor_get(v_reader_7252_, 4); -v_headerBytesRead_7268_ = lean_ctor_get(v_reader_7252_, 5); -v_noMoreInput_7269_ = lean_ctor_get_uint8(v_reader_7252_, sizeof(void*)*6); -v_isSharedCheck_7328_ = !lean_is_exclusive(v_reader_7252_); -if (v_isSharedCheck_7328_ == 0) -{ -lean_object* v_unused_7329_; -v_unused_7329_ = lean_ctor_get(v_reader_7252_, 0); -lean_dec(v_unused_7329_); -v___x_7271_ = v_reader_7252_; -v_isShared_7272_ = v_isSharedCheck_7328_; -goto v_resetjp_7270_; -} -else -{ -lean_inc(v_headerBytesRead_7268_); -lean_inc(v_bodyBytesRead_7267_); -lean_inc(v_messageCount_7266_); -lean_inc(v_messageHead_7265_); -lean_inc(v_input_7264_); -lean_dec(v_reader_7252_); -v___x_7271_ = lean_box(0); -v_isShared_7272_ = v_isSharedCheck_7328_; -goto v_resetjp_7270_; -} -v_resetjp_7270_: -{ -lean_object* v_maxBodySize_7273_; lean_object* v_bodySize_7274_; lean_object* v___x_7275_; uint8_t v___x_7276_; lean_object* v___y_7278_; lean_object* v___y_7279_; lean_object* v___y_7284_; lean_object* v___y_7290_; -v_maxBodySize_7273_ = lean_ctor_get(v_config_7253_, 15); -v_bodySize_7274_ = l_ByteSlice_size(v_data_7250_); -v___x_7275_ = lean_nat_add(v_bodyBytesRead_7267_, v_bodySize_7274_); -lean_dec(v_bodySize_7274_); -v___x_7276_ = lean_nat_dec_le(v___x_7275_, v_maxBodySize_7273_); -if (v___x_7276_ == 0) -{ -lean_object* v___x_7303_; lean_object* v___x_7304_; lean_object* v___x_7305_; lean_object* v___x_7307_; -lean_dec(v___x_7275_); -lean_dec(v_error_7256_); -lean_dec_ref(v_data_7250_); -lean_dec_ref(v_extensions_7249_); -lean_dec(v_nextState_7246_); -v___x_7303_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_7304_ = lean_array_push(v_events_7255_, v___x_7303_); -v___x_7305_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_7272_ == 0) -{ -lean_ctor_set(v___x_7271_, 0, v___x_7305_); -v___x_7307_ = v___x_7271_; -goto v_reusejp_7306_; -} -else -{ -lean_object* v_reuseFailAlloc_7316_; -v_reuseFailAlloc_7316_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7316_, 0, v___x_7305_); -lean_ctor_set(v_reuseFailAlloc_7316_, 1, v_input_7264_); -lean_ctor_set(v_reuseFailAlloc_7316_, 2, v_messageHead_7265_); -lean_ctor_set(v_reuseFailAlloc_7316_, 3, v_messageCount_7266_); -lean_ctor_set(v_reuseFailAlloc_7316_, 4, v_bodyBytesRead_7267_); -lean_ctor_set(v_reuseFailAlloc_7316_, 5, v_headerBytesRead_7268_); -lean_ctor_set_uint8(v_reuseFailAlloc_7316_, sizeof(void*)*6, v_noMoreInput_7269_); -v___x_7307_ = v_reuseFailAlloc_7316_; -goto v_reusejp_7306_; -} -v_reusejp_7306_: -{ -lean_object* v___x_7308_; lean_object* v___x_7310_; -v___x_7308_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_7263_ == 0) -{ -lean_ctor_set(v___x_7262_, 4, v___x_7308_); -lean_ctor_set(v___x_7262_, 3, v___x_7304_); -lean_ctor_set(v___x_7262_, 0, v___x_7307_); -v___x_7310_ = v___x_7262_; -goto v_reusejp_7309_; -} -else -{ -lean_object* v_reuseFailAlloc_7315_; -v_reuseFailAlloc_7315_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7315_, 0, v___x_7307_); -lean_ctor_set(v_reuseFailAlloc_7315_, 1, v_writer_7254_); -lean_ctor_set(v_reuseFailAlloc_7315_, 2, v_config_7253_); -lean_ctor_set(v_reuseFailAlloc_7315_, 3, v___x_7304_); -lean_ctor_set(v_reuseFailAlloc_7315_, 4, v___x_7308_); -lean_ctor_set(v_reuseFailAlloc_7315_, 5, v_instant_7257_); -lean_ctor_set_uint8(v_reuseFailAlloc_7315_, sizeof(void*)*6, v_keepAlive_7258_); -lean_ctor_set_uint8(v_reuseFailAlloc_7315_, sizeof(void*)*6 + 1, v_forcedFlush_7259_); -lean_ctor_set_uint8(v_reuseFailAlloc_7315_, sizeof(void*)*6 + 2, v_pullBodyStalled_7260_); -v___x_7310_ = v_reuseFailAlloc_7315_; -goto v_reusejp_7309_; -} -v_reusejp_7309_: -{ -lean_object* v___x_7311_; lean_object* v___x_7312_; lean_object* v___x_7313_; lean_object* v___x_7314_; -v___x_7311_ = lean_box(0); -v___x_7312_ = lean_box(v___x_7276_); -v___x_7313_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7313_, 0, v___x_7311_); -lean_ctor_set(v___x_7313_, 1, v___x_7312_); -v___x_7314_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7314_, 0, v___x_7310_); -lean_ctor_set(v___x_7314_, 1, v___x_7313_); -return v___x_7314_; -} -} -} -else -{ -lean_object* v___x_7318_; -lean_dec(v_bodyBytesRead_7267_); -if (v_isShared_7272_ == 0) -{ -lean_ctor_set(v___x_7271_, 4, v___x_7275_); -lean_ctor_set(v___x_7271_, 0, v_nextState_7246_); -v___x_7318_ = v___x_7271_; -goto v_reusejp_7317_; -} -else -{ -lean_object* v_reuseFailAlloc_7327_; -v_reuseFailAlloc_7327_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7327_, 0, v_nextState_7246_); -lean_ctor_set(v_reuseFailAlloc_7327_, 1, v_input_7264_); -lean_ctor_set(v_reuseFailAlloc_7327_, 2, v_messageHead_7265_); -lean_ctor_set(v_reuseFailAlloc_7327_, 3, v_messageCount_7266_); -lean_ctor_set(v_reuseFailAlloc_7327_, 4, v___x_7275_); -lean_ctor_set(v_reuseFailAlloc_7327_, 5, v_headerBytesRead_7268_); -lean_ctor_set_uint8(v_reuseFailAlloc_7327_, sizeof(void*)*6, v_noMoreInput_7269_); -v___x_7318_ = v_reuseFailAlloc_7327_; -goto v_reusejp_7317_; -} -v_reusejp_7317_: -{ -if (v_closeBody_7251_ == 0) -{ -lean_object* v_machine_7320_; -if (v_isShared_7263_ == 0) -{ -lean_ctor_set(v___x_7262_, 0, v___x_7318_); -v_machine_7320_ = v___x_7262_; -goto v_reusejp_7319_; -} -else -{ -lean_object* v_reuseFailAlloc_7321_; -v_reuseFailAlloc_7321_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7321_, 0, v___x_7318_); -lean_ctor_set(v_reuseFailAlloc_7321_, 1, v_writer_7254_); -lean_ctor_set(v_reuseFailAlloc_7321_, 2, v_config_7253_); -lean_ctor_set(v_reuseFailAlloc_7321_, 3, v_events_7255_); -lean_ctor_set(v_reuseFailAlloc_7321_, 4, v_error_7256_); -lean_ctor_set(v_reuseFailAlloc_7321_, 5, v_instant_7257_); -lean_ctor_set_uint8(v_reuseFailAlloc_7321_, sizeof(void*)*6, v_keepAlive_7258_); -lean_ctor_set_uint8(v_reuseFailAlloc_7321_, sizeof(void*)*6 + 1, v_forcedFlush_7259_); -lean_ctor_set_uint8(v_reuseFailAlloc_7321_, sizeof(void*)*6 + 2, v_pullBodyStalled_7260_); -v_machine_7320_ = v_reuseFailAlloc_7321_; -goto v_reusejp_7319_; -} -v_reusejp_7319_: -{ -v___y_7290_ = v_machine_7320_; -goto v___jp_7289_; -} -} -else -{ -lean_object* v___x_7322_; lean_object* v___x_7323_; lean_object* v___x_7325_; -v___x_7322_ = lean_box(4); -v___x_7323_ = lean_array_push(v_events_7255_, v___x_7322_); -if (v_isShared_7263_ == 0) -{ -lean_ctor_set(v___x_7262_, 3, v___x_7323_); -lean_ctor_set(v___x_7262_, 0, v___x_7318_); -v___x_7325_ = v___x_7262_; -goto v_reusejp_7324_; -} -else -{ -lean_object* v_reuseFailAlloc_7326_; -v_reuseFailAlloc_7326_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7326_, 0, v___x_7318_); -lean_ctor_set(v_reuseFailAlloc_7326_, 1, v_writer_7254_); -lean_ctor_set(v_reuseFailAlloc_7326_, 2, v_config_7253_); -lean_ctor_set(v_reuseFailAlloc_7326_, 3, v___x_7323_); -lean_ctor_set(v_reuseFailAlloc_7326_, 4, v_error_7256_); -lean_ctor_set(v_reuseFailAlloc_7326_, 5, v_instant_7257_); -lean_ctor_set_uint8(v_reuseFailAlloc_7326_, sizeof(void*)*6, v_keepAlive_7258_); -lean_ctor_set_uint8(v_reuseFailAlloc_7326_, sizeof(void*)*6 + 1, v_forcedFlush_7259_); -lean_ctor_set_uint8(v_reuseFailAlloc_7326_, sizeof(void*)*6 + 2, v_pullBodyStalled_7260_); -v___x_7325_ = v_reuseFailAlloc_7326_; -goto v_reusejp_7324_; -} -v_reusejp_7324_: -{ -v___y_7290_ = v___x_7325_; -goto v___jp_7289_; -} -} -} -} -v___jp_7277_: -{ -lean_object* v___x_7280_; lean_object* v___x_7281_; lean_object* v___x_7282_; -v___x_7280_ = lean_box(v___x_7276_); -v___x_7281_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7281_, 0, v___y_7279_); -lean_ctor_set(v___x_7281_, 1, v___x_7280_); -v___x_7282_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7282_, 0, v___y_7278_); -lean_ctor_set(v___x_7282_, 1, v___x_7281_); -return v___x_7282_; -} -v___jp_7283_: -{ -lean_object* v___x_7285_; lean_object* v___x_7286_; lean_object* v___x_7287_; lean_object* v___x_7288_; -v___x_7285_ = l_ByteSlice_toByteArray(v_data_7250_); -v___x_7286_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7286_, 0, v___x_7285_); -lean_ctor_set(v___x_7286_, 1, v_extensions_7249_); -v___x_7287_ = lean_alloc_ctor(0, 1, 2); -lean_ctor_set(v___x_7287_, 0, v___x_7286_); -lean_ctor_set_uint8(v___x_7287_, sizeof(void*)*1, v_final_7247_); -lean_ctor_set_uint8(v___x_7287_, sizeof(void*)*1 + 1, v_incomplete_7248_); -v___x_7288_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_7288_, 0, v___x_7287_); -v___y_7278_ = v___y_7284_; -v___y_7279_ = v___x_7288_; -goto v___jp_7277_; -} -v___jp_7289_: -{ -if (v_dir_7244_ == 0) -{ -lean_object* v_writer_7291_; uint8_t v_sentMessage_7292_; -v_writer_7291_ = lean_ctor_get(v___y_7290_, 1); -v_sentMessage_7292_ = lean_ctor_get_uint8(v_writer_7291_, sizeof(void*)*6); -if (v_sentMessage_7292_ == 0) -{ -v___y_7284_ = v___y_7290_; -goto v___jp_7283_; -} -else -{ -lean_object* v___x_7293_; -lean_dec_ref(v_data_7250_); -lean_dec_ref(v_extensions_7249_); -v___x_7293_ = lean_box(0); -v___y_7278_ = v___y_7290_; -v___y_7279_ = v___x_7293_; -goto v___jp_7277_; -} -} -else -{ -lean_object* v_reader_7294_; lean_object* v_messageHead_7295_; lean_object* v_status_7296_; uint16_t v___x_7297_; uint16_t v___x_7298_; uint8_t v___x_7299_; -v_reader_7294_ = lean_ctor_get(v___y_7290_, 0); -v_messageHead_7295_ = lean_ctor_get(v_reader_7294_, 2); -v_status_7296_ = lean_ctor_get(v_messageHead_7295_, 0); -v___x_7297_ = 100; -v___x_7298_ = l_Std_Http_Status_toCode(v_status_7296_); -v___x_7299_ = lean_uint16_dec_le(v___x_7297_, v___x_7298_); -if (v___x_7299_ == 0) -{ -v___y_7284_ = v___y_7290_; -goto v___jp_7283_; -} -else -{ -uint16_t v___x_7300_; uint8_t v___x_7301_; -v___x_7300_ = 200; -v___x_7301_ = lean_uint16_dec_lt(v___x_7298_, v___x_7300_); -if (v___x_7301_ == 0) -{ -v___y_7284_ = v___y_7290_; -goto v___jp_7283_; -} -else -{ -lean_object* v___x_7302_; -lean_dec_ref(v_data_7250_); -lean_dec_ref(v_extensions_7249_); -v___x_7302_ = lean_box(0); -v___y_7278_ = v___y_7290_; -v___y_7279_ = v___x_7302_; -goto v___jp_7277_; -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk___boxed(lean_object* v_dir_7331_, lean_object* v_machine_7332_, lean_object* v_nextState_7333_, lean_object* v_final_7334_, lean_object* v_incomplete_7335_, lean_object* v_extensions_7336_, lean_object* v_data_7337_, lean_object* v_closeBody_7338_){ -_start: -{ -uint8_t v_dir_boxed_7339_; uint8_t v_final_boxed_7340_; uint8_t v_incomplete_boxed_7341_; uint8_t v_closeBody_boxed_7342_; lean_object* v_res_7343_; -v_dir_boxed_7339_ = lean_unbox(v_dir_7331_); -v_final_boxed_7340_ = lean_unbox(v_final_7334_); -v_incomplete_boxed_7341_ = lean_unbox(v_incomplete_7335_); -v_closeBody_boxed_7342_ = lean_unbox(v_closeBody_7338_); -v_res_7343_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_boxed_7339_, v_machine_7332_, v_nextState_7333_, v_final_boxed_7340_, v_incomplete_boxed_7341_, v_extensions_7336_, v_data_7337_, v_closeBody_boxed_7342_); -return v_res_7343_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(uint8_t v_dir_7346_, lean_object* v_machine_7347_){ -_start: -{ -lean_object* v___x_7348_; uint8_t v___x_7349_; uint8_t v___x_7350_; lean_object* v___x_7351_; lean_object* v___x_7352_; lean_object* v___x_7353_; -v___x_7348_ = lean_box(5); -v___x_7349_ = 1; -v___x_7350_ = 0; -v___x_7351_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); -v___x_7352_ = l_ByteSlice_empty; -v___x_7353_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7346_, v_machine_7347_, v___x_7348_, v___x_7349_, v___x_7350_, v___x_7351_, v___x_7352_, v___x_7349_); -return v___x_7353_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___boxed(lean_object* v_dir_7354_, lean_object* v_machine_7355_){ -_start: -{ -uint8_t v_dir_boxed_7356_; lean_object* v_res_7357_; -v_dir_boxed_7356_ = lean_unbox(v_dir_7354_); -v_res_7357_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(v_dir_boxed_7356_, v_machine_7355_); -return v_res_7357_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0(lean_object* v_x_7358_){ -_start: -{ -lean_object* v___x_7359_; -v___x_7359_ = lean_box(8); -return v___x_7359_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0___boxed(lean_object* v_x_7360_){ -_start: -{ -lean_object* v_res_7361_; -v_res_7361_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0(v_x_7360_); -lean_dec(v_x_7360_); -return v_res_7361_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(uint8_t v_dir_7367_, lean_object* v_machine_7368_, lean_object* v_size_7369_){ -_start: -{ -lean_object* v___f_7370_; lean_object* v___x_7371_; lean_object* v___x_7372_; lean_object* v___x_7373_; lean_object* v___x_7374_; lean_object* v_snd_7375_; -v___f_7370_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); -lean_inc(v_size_7369_); -v___x_7371_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseFixedSizeData___boxed), 2, 1); -lean_closure_set(v___x_7371_, 0, v_size_7369_); -v___x_7372_ = lean_box(0); -v___x_7373_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_7373_, 0, v_size_7369_); -v___x_7374_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_7368_, v___x_7371_, v___x_7372_, v___x_7373_, v___f_7370_); -v_snd_7375_ = lean_ctor_get(v___x_7374_, 1); -lean_inc(v_snd_7375_); -if (lean_obj_tag(v_snd_7375_) == 0) -{ -lean_object* v_fst_7376_; lean_object* v___x_7378_; uint8_t v_isShared_7379_; uint8_t v_isSharedCheck_7384_; -v_fst_7376_ = lean_ctor_get(v___x_7374_, 0); -v_isSharedCheck_7384_ = !lean_is_exclusive(v___x_7374_); -if (v_isSharedCheck_7384_ == 0) -{ -lean_object* v_unused_7385_; -v_unused_7385_ = lean_ctor_get(v___x_7374_, 1); -lean_dec(v_unused_7385_); -v___x_7378_ = v___x_7374_; -v_isShared_7379_ = v_isSharedCheck_7384_; -goto v_resetjp_7377_; -} -else -{ -lean_inc(v_fst_7376_); -lean_dec(v___x_7374_); -v___x_7378_ = lean_box(0); -v_isShared_7379_ = v_isSharedCheck_7384_; -goto v_resetjp_7377_; -} -v_resetjp_7377_: -{ -lean_object* v___x_7380_; lean_object* v___x_7382_; -v___x_7380_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); -if (v_isShared_7379_ == 0) -{ -lean_ctor_set(v___x_7378_, 1, v___x_7380_); -v___x_7382_ = v___x_7378_; -goto v_reusejp_7381_; -} -else -{ -lean_object* v_reuseFailAlloc_7383_; -v_reuseFailAlloc_7383_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7383_, 0, v_fst_7376_); -lean_ctor_set(v_reuseFailAlloc_7383_, 1, v___x_7380_); -v___x_7382_ = v_reuseFailAlloc_7383_; -goto v_reusejp_7381_; -} -v_reusejp_7381_: -{ -return v___x_7382_; -} -} -} -else -{ -lean_object* v_val_7386_; lean_object* v___x_7388_; uint8_t v_isShared_7389_; uint8_t v_isSharedCheck_7407_; -v_val_7386_ = lean_ctor_get(v_snd_7375_, 0); -v_isSharedCheck_7407_ = !lean_is_exclusive(v_snd_7375_); -if (v_isSharedCheck_7407_ == 0) -{ -v___x_7388_ = v_snd_7375_; -v_isShared_7389_ = v_isSharedCheck_7407_; -goto v_resetjp_7387_; -} -else -{ -lean_inc(v_val_7386_); -lean_dec(v_snd_7375_); -v___x_7388_ = lean_box(0); -v_isShared_7389_ = v_isSharedCheck_7407_; -goto v_resetjp_7387_; -} -v_resetjp_7387_: -{ -if (lean_obj_tag(v_val_7386_) == 0) -{ -lean_object* v_fst_7390_; lean_object* v_data_7391_; lean_object* v___x_7392_; uint8_t v___x_7393_; uint8_t v___x_7394_; lean_object* v___x_7395_; lean_object* v___x_7396_; -lean_del_object(v___x_7388_); -v_fst_7390_ = lean_ctor_get(v___x_7374_, 0); -lean_inc(v_fst_7390_); -lean_dec_ref(v___x_7374_); -v_data_7391_ = lean_ctor_get(v_val_7386_, 0); -lean_inc_ref(v_data_7391_); -lean_dec_ref(v_val_7386_); -v___x_7392_ = lean_box(5); -v___x_7393_ = 1; -v___x_7394_ = 0; -v___x_7395_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); -v___x_7396_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7367_, v_fst_7390_, v___x_7392_, v___x_7393_, v___x_7394_, v___x_7395_, v_data_7391_, v___x_7393_); -return v___x_7396_; -} -else -{ -lean_object* v_fst_7397_; lean_object* v_data_7398_; lean_object* v_remaining_7399_; lean_object* v___x_7401_; -v_fst_7397_ = lean_ctor_get(v___x_7374_, 0); -lean_inc(v_fst_7397_); -lean_dec_ref(v___x_7374_); -v_data_7398_ = lean_ctor_get(v_val_7386_, 0); -lean_inc_ref(v_data_7398_); -v_remaining_7399_ = lean_ctor_get(v_val_7386_, 1); -lean_inc(v_remaining_7399_); -lean_dec_ref(v_val_7386_); -if (v_isShared_7389_ == 0) -{ -lean_ctor_set_tag(v___x_7388_, 0); -lean_ctor_set(v___x_7388_, 0, v_remaining_7399_); -v___x_7401_ = v___x_7388_; -goto v_reusejp_7400_; -} -else -{ -lean_object* v_reuseFailAlloc_7406_; -v_reuseFailAlloc_7406_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_7406_, 0, v_remaining_7399_); -v___x_7401_ = v_reuseFailAlloc_7406_; -goto v_reusejp_7400_; -} -v_reusejp_7400_: -{ -lean_object* v___x_7402_; uint8_t v___x_7403_; lean_object* v___x_7404_; lean_object* v___x_7405_; -v___x_7402_ = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(v___x_7402_, 0, v___x_7401_); -v___x_7403_ = 0; -v___x_7404_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); -v___x_7405_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7367_, v_fst_7397_, v___x_7402_, v___x_7403_, v___x_7403_, v___x_7404_, v_data_7398_, v___x_7403_); -return v___x_7405_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___boxed(lean_object* v_dir_7408_, lean_object* v_machine_7409_, lean_object* v_size_7410_){ -_start: -{ -uint8_t v_dir_boxed_7411_; lean_object* v_res_7412_; -v_dir_boxed_7411_ = lean_unbox(v_dir_7408_); -v_res_7412_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(v_dir_boxed_7411_, v_machine_7409_, v_size_7410_); -return v_res_7412_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(lean_object* v_machine_7413_){ -_start: -{ -lean_object* v_config_7414_; lean_object* v_maxChunkLineLength_7415_; lean_object* v___f_7416_; lean_object* v___x_7417_; lean_object* v___x_7418_; lean_object* v___x_7419_; lean_object* v___x_7420_; lean_object* v_snd_7421_; -v_config_7414_ = lean_ctor_get(v_machine_7413_, 2); -v_maxChunkLineLength_7415_ = lean_ctor_get(v_config_7414_, 13); -v___f_7416_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); -lean_inc_ref(v_config_7414_); -v___x_7417_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseChunkSize), 2, 1); -lean_closure_set(v___x_7417_, 0, v_config_7414_); -lean_inc(v_maxChunkLineLength_7415_); -v___x_7418_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_7418_, 0, v_maxChunkLineLength_7415_); -v___x_7419_ = lean_box(0); -v___x_7420_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_7413_, v___x_7417_, v___x_7418_, v___x_7419_, v___f_7416_); -v_snd_7421_ = lean_ctor_get(v___x_7420_, 1); -lean_inc(v_snd_7421_); -if (lean_obj_tag(v_snd_7421_) == 0) -{ -lean_object* v_fst_7422_; lean_object* v___x_7424_; uint8_t v_isShared_7425_; uint8_t v_isSharedCheck_7430_; -v_fst_7422_ = lean_ctor_get(v___x_7420_, 0); -v_isSharedCheck_7430_ = !lean_is_exclusive(v___x_7420_); -if (v_isSharedCheck_7430_ == 0) -{ -lean_object* v_unused_7431_; -v_unused_7431_ = lean_ctor_get(v___x_7420_, 1); -lean_dec(v_unused_7431_); -v___x_7424_ = v___x_7420_; -v_isShared_7425_ = v_isSharedCheck_7430_; -goto v_resetjp_7423_; -} -else -{ -lean_inc(v_fst_7422_); -lean_dec(v___x_7420_); -v___x_7424_ = lean_box(0); -v_isShared_7425_ = v_isSharedCheck_7430_; -goto v_resetjp_7423_; -} -v_resetjp_7423_: -{ -lean_object* v___x_7426_; lean_object* v___x_7428_; -v___x_7426_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); -if (v_isShared_7425_ == 0) -{ -lean_ctor_set(v___x_7424_, 1, v___x_7426_); -v___x_7428_ = v___x_7424_; -goto v_reusejp_7427_; -} -else -{ -lean_object* v_reuseFailAlloc_7429_; -v_reuseFailAlloc_7429_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7429_, 0, v_fst_7422_); -lean_ctor_set(v_reuseFailAlloc_7429_, 1, v___x_7426_); -v___x_7428_ = v_reuseFailAlloc_7429_; -goto v_reusejp_7427_; -} -v_reusejp_7427_: -{ -return v___x_7428_; -} -} -} -else -{ -lean_object* v_val_7432_; lean_object* v___x_7434_; uint8_t v_isShared_7435_; uint8_t v_isSharedCheck_7537_; -v_val_7432_ = lean_ctor_get(v_snd_7421_, 0); -v_isSharedCheck_7537_ = !lean_is_exclusive(v_snd_7421_); -if (v_isSharedCheck_7537_ == 0) -{ -v___x_7434_ = v_snd_7421_; -v_isShared_7435_ = v_isSharedCheck_7537_; -goto v_resetjp_7433_; -} -else -{ -lean_inc(v_val_7432_); -lean_dec(v_snd_7421_); -v___x_7434_ = lean_box(0); -v_isShared_7435_ = v_isSharedCheck_7537_; -goto v_resetjp_7433_; -} -v_resetjp_7433_: -{ -lean_object* v_fst_7436_; lean_object* v___x_7438_; uint8_t v_isShared_7439_; uint8_t v_isSharedCheck_7535_; -v_fst_7436_ = lean_ctor_get(v___x_7420_, 0); -v_isSharedCheck_7535_ = !lean_is_exclusive(v___x_7420_); -if (v_isSharedCheck_7535_ == 0) -{ -lean_object* v_unused_7536_; -v_unused_7536_ = lean_ctor_get(v___x_7420_, 1); -lean_dec(v_unused_7536_); -v___x_7438_ = v___x_7420_; -v_isShared_7439_ = v_isSharedCheck_7535_; -goto v_resetjp_7437_; -} -else -{ -lean_inc(v_fst_7436_); -lean_dec(v___x_7420_); -v___x_7438_ = lean_box(0); -v_isShared_7439_ = v_isSharedCheck_7535_; -goto v_resetjp_7437_; -} -v_resetjp_7437_: -{ -lean_object* v_config_7440_; lean_object* v_fst_7441_; lean_object* v_snd_7442_; lean_object* v___x_7444_; uint8_t v_isShared_7445_; uint8_t v_isSharedCheck_7534_; -v_config_7440_ = lean_ctor_get(v_fst_7436_, 2); -lean_inc_ref(v_config_7440_); -v_fst_7441_ = lean_ctor_get(v_val_7432_, 0); -v_snd_7442_ = lean_ctor_get(v_val_7432_, 1); -v_isSharedCheck_7534_ = !lean_is_exclusive(v_val_7432_); -if (v_isSharedCheck_7534_ == 0) -{ -v___x_7444_ = v_val_7432_; -v_isShared_7445_ = v_isSharedCheck_7534_; -goto v_resetjp_7443_; -} -else -{ -lean_inc(v_snd_7442_); -lean_inc(v_fst_7441_); -lean_dec(v_val_7432_); -v___x_7444_ = lean_box(0); -v_isShared_7445_ = v_isSharedCheck_7534_; -goto v_resetjp_7443_; -} -v_resetjp_7443_: -{ -lean_object* v_reader_7446_; lean_object* v_writer_7447_; lean_object* v_events_7448_; lean_object* v_error_7449_; lean_object* v_instant_7450_; uint8_t v_keepAlive_7451_; uint8_t v_forcedFlush_7452_; uint8_t v_pullBodyStalled_7453_; lean_object* v___x_7455_; uint8_t v_isShared_7456_; uint8_t v_isSharedCheck_7532_; -v_reader_7446_ = lean_ctor_get(v_fst_7436_, 0); -v_writer_7447_ = lean_ctor_get(v_fst_7436_, 1); -v_events_7448_ = lean_ctor_get(v_fst_7436_, 3); -v_error_7449_ = lean_ctor_get(v_fst_7436_, 4); -v_instant_7450_ = lean_ctor_get(v_fst_7436_, 5); -v_keepAlive_7451_ = lean_ctor_get_uint8(v_fst_7436_, sizeof(void*)*6); -v_forcedFlush_7452_ = lean_ctor_get_uint8(v_fst_7436_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7453_ = lean_ctor_get_uint8(v_fst_7436_, sizeof(void*)*6 + 2); -v_isSharedCheck_7532_ = !lean_is_exclusive(v_fst_7436_); -if (v_isSharedCheck_7532_ == 0) -{ -lean_object* v_unused_7533_; -v_unused_7533_ = lean_ctor_get(v_fst_7436_, 2); -lean_dec(v_unused_7533_); -v___x_7455_ = v_fst_7436_; -v_isShared_7456_ = v_isSharedCheck_7532_; -goto v_resetjp_7454_; -} -else -{ -lean_inc(v_instant_7450_); -lean_inc(v_error_7449_); -lean_inc(v_events_7448_); -lean_inc(v_writer_7447_); -lean_inc(v_reader_7446_); -lean_dec(v_fst_7436_); -v___x_7455_ = lean_box(0); -v_isShared_7456_ = v_isSharedCheck_7532_; -goto v_resetjp_7454_; -} -v_resetjp_7454_: -{ -lean_object* v_maxChunkSize_7457_; lean_object* v_maxBodySize_7458_; uint8_t v___x_7459_; -v_maxChunkSize_7457_ = lean_ctor_get(v_config_7440_, 14); -v_maxBodySize_7458_ = lean_ctor_get(v_config_7440_, 15); -v___x_7459_ = lean_nat_dec_lt(v_maxChunkSize_7457_, v_fst_7441_); -if (v___x_7459_ == 0) -{ -lean_object* v_input_7460_; lean_object* v_messageHead_7461_; lean_object* v_messageCount_7462_; lean_object* v_bodyBytesRead_7463_; lean_object* v_headerBytesRead_7464_; uint8_t v_noMoreInput_7465_; lean_object* v___x_7467_; uint8_t v_isShared_7468_; uint8_t v_isSharedCheck_7505_; -v_input_7460_ = lean_ctor_get(v_reader_7446_, 1); -v_messageHead_7461_ = lean_ctor_get(v_reader_7446_, 2); -v_messageCount_7462_ = lean_ctor_get(v_reader_7446_, 3); -v_bodyBytesRead_7463_ = lean_ctor_get(v_reader_7446_, 4); -v_headerBytesRead_7464_ = lean_ctor_get(v_reader_7446_, 5); -v_noMoreInput_7465_ = lean_ctor_get_uint8(v_reader_7446_, sizeof(void*)*6); -v_isSharedCheck_7505_ = !lean_is_exclusive(v_reader_7446_); -if (v_isSharedCheck_7505_ == 0) -{ -lean_object* v_unused_7506_; -v_unused_7506_ = lean_ctor_get(v_reader_7446_, 0); -lean_dec(v_unused_7506_); -v___x_7467_ = v_reader_7446_; -v_isShared_7468_ = v_isSharedCheck_7505_; -goto v_resetjp_7466_; -} -else -{ -lean_inc(v_headerBytesRead_7464_); -lean_inc(v_bodyBytesRead_7463_); -lean_inc(v_messageCount_7462_); -lean_inc(v_messageHead_7461_); -lean_inc(v_input_7460_); -lean_dec(v_reader_7446_); -v___x_7467_ = lean_box(0); -v_isShared_7468_ = v_isSharedCheck_7505_; -goto v_resetjp_7466_; -} -v_resetjp_7466_: -{ -lean_object* v___x_7469_; uint8_t v___x_7470_; -v___x_7469_ = lean_nat_add(v_bodyBytesRead_7463_, v_fst_7441_); -v___x_7470_ = lean_nat_dec_le(v___x_7469_, v_maxBodySize_7458_); -lean_dec(v___x_7469_); -if (v___x_7470_ == 0) -{ -lean_object* v___x_7471_; lean_object* v___x_7472_; lean_object* v___x_7473_; lean_object* v___x_7475_; -lean_dec(v_error_7449_); -lean_dec(v_snd_7442_); -lean_dec(v_fst_7441_); -lean_del_object(v___x_7434_); -v___x_7471_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_7472_ = lean_array_push(v_events_7448_, v___x_7471_); -v___x_7473_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_7468_ == 0) -{ -lean_ctor_set(v___x_7467_, 0, v___x_7473_); -v___x_7475_ = v___x_7467_; -goto v_reusejp_7474_; -} -else -{ -lean_object* v_reuseFailAlloc_7487_; -v_reuseFailAlloc_7487_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7487_, 0, v___x_7473_); -lean_ctor_set(v_reuseFailAlloc_7487_, 1, v_input_7460_); -lean_ctor_set(v_reuseFailAlloc_7487_, 2, v_messageHead_7461_); -lean_ctor_set(v_reuseFailAlloc_7487_, 3, v_messageCount_7462_); -lean_ctor_set(v_reuseFailAlloc_7487_, 4, v_bodyBytesRead_7463_); -lean_ctor_set(v_reuseFailAlloc_7487_, 5, v_headerBytesRead_7464_); -lean_ctor_set_uint8(v_reuseFailAlloc_7487_, sizeof(void*)*6, v_noMoreInput_7465_); -v___x_7475_ = v_reuseFailAlloc_7487_; -goto v_reusejp_7474_; -} -v_reusejp_7474_: -{ -lean_object* v___x_7476_; lean_object* v___x_7478_; -v___x_7476_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_7456_ == 0) -{ -lean_ctor_set(v___x_7455_, 4, v___x_7476_); -lean_ctor_set(v___x_7455_, 3, v___x_7472_); -lean_ctor_set(v___x_7455_, 0, v___x_7475_); -v___x_7478_ = v___x_7455_; -goto v_reusejp_7477_; -} -else -{ -lean_object* v_reuseFailAlloc_7486_; -v_reuseFailAlloc_7486_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7486_, 0, v___x_7475_); -lean_ctor_set(v_reuseFailAlloc_7486_, 1, v_writer_7447_); -lean_ctor_set(v_reuseFailAlloc_7486_, 2, v_config_7440_); -lean_ctor_set(v_reuseFailAlloc_7486_, 3, v___x_7472_); -lean_ctor_set(v_reuseFailAlloc_7486_, 4, v___x_7476_); -lean_ctor_set(v_reuseFailAlloc_7486_, 5, v_instant_7450_); -lean_ctor_set_uint8(v_reuseFailAlloc_7486_, sizeof(void*)*6, v_keepAlive_7451_); -lean_ctor_set_uint8(v_reuseFailAlloc_7486_, sizeof(void*)*6 + 1, v_forcedFlush_7452_); -lean_ctor_set_uint8(v_reuseFailAlloc_7486_, sizeof(void*)*6 + 2, v_pullBodyStalled_7453_); -v___x_7478_ = v_reuseFailAlloc_7486_; -goto v_reusejp_7477_; -} -v_reusejp_7477_: -{ -lean_object* v___x_7479_; lean_object* v___x_7481_; -v___x_7479_ = lean_box(v___x_7470_); -if (v_isShared_7445_ == 0) -{ -lean_ctor_set(v___x_7444_, 1, v___x_7479_); -lean_ctor_set(v___x_7444_, 0, v___x_7419_); -v___x_7481_ = v___x_7444_; -goto v_reusejp_7480_; -} -else -{ -lean_object* v_reuseFailAlloc_7485_; -v_reuseFailAlloc_7485_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7485_, 0, v___x_7419_); -lean_ctor_set(v_reuseFailAlloc_7485_, 1, v___x_7479_); -v___x_7481_ = v_reuseFailAlloc_7485_; -goto v_reusejp_7480_; -} -v_reusejp_7480_: -{ -lean_object* v___x_7483_; -if (v_isShared_7439_ == 0) -{ -lean_ctor_set(v___x_7438_, 1, v___x_7481_); -lean_ctor_set(v___x_7438_, 0, v___x_7478_); -v___x_7483_ = v___x_7438_; -goto v_reusejp_7482_; -} -else -{ -lean_object* v_reuseFailAlloc_7484_; -v_reuseFailAlloc_7484_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7484_, 0, v___x_7478_); -lean_ctor_set(v_reuseFailAlloc_7484_, 1, v___x_7481_); -v___x_7483_ = v_reuseFailAlloc_7484_; -goto v_reusejp_7482_; -} -v_reusejp_7482_: -{ -return v___x_7483_; -} -} -} -} -} -else -{ -lean_object* v___x_7488_; lean_object* v___x_7490_; -v___x_7488_ = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(v___x_7488_, 0, v_snd_7442_); -lean_ctor_set(v___x_7488_, 1, v_fst_7441_); -if (v_isShared_7435_ == 0) -{ -lean_ctor_set_tag(v___x_7434_, 2); -lean_ctor_set(v___x_7434_, 0, v___x_7488_); -v___x_7490_ = v___x_7434_; -goto v_reusejp_7489_; -} -else -{ -lean_object* v_reuseFailAlloc_7504_; -v_reuseFailAlloc_7504_ = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(v_reuseFailAlloc_7504_, 0, v___x_7488_); -v___x_7490_ = v_reuseFailAlloc_7504_; -goto v_reusejp_7489_; -} -v_reusejp_7489_: -{ -lean_object* v___x_7492_; -if (v_isShared_7468_ == 0) -{ -lean_ctor_set(v___x_7467_, 0, v___x_7490_); -v___x_7492_ = v___x_7467_; -goto v_reusejp_7491_; -} -else -{ -lean_object* v_reuseFailAlloc_7503_; -v_reuseFailAlloc_7503_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7503_, 0, v___x_7490_); -lean_ctor_set(v_reuseFailAlloc_7503_, 1, v_input_7460_); -lean_ctor_set(v_reuseFailAlloc_7503_, 2, v_messageHead_7461_); -lean_ctor_set(v_reuseFailAlloc_7503_, 3, v_messageCount_7462_); -lean_ctor_set(v_reuseFailAlloc_7503_, 4, v_bodyBytesRead_7463_); -lean_ctor_set(v_reuseFailAlloc_7503_, 5, v_headerBytesRead_7464_); -lean_ctor_set_uint8(v_reuseFailAlloc_7503_, sizeof(void*)*6, v_noMoreInput_7465_); -v___x_7492_ = v_reuseFailAlloc_7503_; -goto v_reusejp_7491_; -} -v_reusejp_7491_: -{ -lean_object* v___x_7494_; -if (v_isShared_7456_ == 0) -{ -lean_ctor_set(v___x_7455_, 0, v___x_7492_); -v___x_7494_ = v___x_7455_; -goto v_reusejp_7493_; -} -else -{ -lean_object* v_reuseFailAlloc_7502_; -v_reuseFailAlloc_7502_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7502_, 0, v___x_7492_); -lean_ctor_set(v_reuseFailAlloc_7502_, 1, v_writer_7447_); -lean_ctor_set(v_reuseFailAlloc_7502_, 2, v_config_7440_); -lean_ctor_set(v_reuseFailAlloc_7502_, 3, v_events_7448_); -lean_ctor_set(v_reuseFailAlloc_7502_, 4, v_error_7449_); -lean_ctor_set(v_reuseFailAlloc_7502_, 5, v_instant_7450_); -lean_ctor_set_uint8(v_reuseFailAlloc_7502_, sizeof(void*)*6, v_keepAlive_7451_); -lean_ctor_set_uint8(v_reuseFailAlloc_7502_, sizeof(void*)*6 + 1, v_forcedFlush_7452_); -lean_ctor_set_uint8(v_reuseFailAlloc_7502_, sizeof(void*)*6 + 2, v_pullBodyStalled_7453_); -v___x_7494_ = v_reuseFailAlloc_7502_; -goto v_reusejp_7493_; -} -v_reusejp_7493_: -{ -lean_object* v___x_7495_; lean_object* v___x_7497_; -v___x_7495_ = lean_box(v___x_7470_); -if (v_isShared_7445_ == 0) -{ -lean_ctor_set(v___x_7444_, 1, v___x_7495_); -lean_ctor_set(v___x_7444_, 0, v___x_7419_); -v___x_7497_ = v___x_7444_; -goto v_reusejp_7496_; -} -else -{ -lean_object* v_reuseFailAlloc_7501_; -v_reuseFailAlloc_7501_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7501_, 0, v___x_7419_); -lean_ctor_set(v_reuseFailAlloc_7501_, 1, v___x_7495_); -v___x_7497_ = v_reuseFailAlloc_7501_; -goto v_reusejp_7496_; -} -v_reusejp_7496_: -{ -lean_object* v___x_7499_; -if (v_isShared_7439_ == 0) -{ -lean_ctor_set(v___x_7438_, 1, v___x_7497_); -lean_ctor_set(v___x_7438_, 0, v___x_7494_); -v___x_7499_ = v___x_7438_; -goto v_reusejp_7498_; -} -else -{ -lean_object* v_reuseFailAlloc_7500_; -v_reuseFailAlloc_7500_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7500_, 0, v___x_7494_); -lean_ctor_set(v_reuseFailAlloc_7500_, 1, v___x_7497_); -v___x_7499_ = v_reuseFailAlloc_7500_; -goto v_reusejp_7498_; -} -v_reusejp_7498_: -{ -return v___x_7499_; -} -} -} -} -} -} -} -} -else -{ -lean_object* v_input_7507_; lean_object* v_messageHead_7508_; lean_object* v_messageCount_7509_; lean_object* v_bodyBytesRead_7510_; lean_object* v_headerBytesRead_7511_; uint8_t v_noMoreInput_7512_; lean_object* v___x_7514_; uint8_t v_isShared_7515_; uint8_t v_isSharedCheck_7530_; -lean_dec(v_error_7449_); -lean_dec(v_snd_7442_); -lean_dec(v_fst_7441_); -lean_del_object(v___x_7438_); -lean_del_object(v___x_7434_); -v_input_7507_ = lean_ctor_get(v_reader_7446_, 1); -v_messageHead_7508_ = lean_ctor_get(v_reader_7446_, 2); -v_messageCount_7509_ = lean_ctor_get(v_reader_7446_, 3); -v_bodyBytesRead_7510_ = lean_ctor_get(v_reader_7446_, 4); -v_headerBytesRead_7511_ = lean_ctor_get(v_reader_7446_, 5); -v_noMoreInput_7512_ = lean_ctor_get_uint8(v_reader_7446_, sizeof(void*)*6); -v_isSharedCheck_7530_ = !lean_is_exclusive(v_reader_7446_); -if (v_isSharedCheck_7530_ == 0) -{ -lean_object* v_unused_7531_; -v_unused_7531_ = lean_ctor_get(v_reader_7446_, 0); -lean_dec(v_unused_7531_); -v___x_7514_ = v_reader_7446_; -v_isShared_7515_ = v_isSharedCheck_7530_; -goto v_resetjp_7513_; -} -else -{ -lean_inc(v_headerBytesRead_7511_); -lean_inc(v_bodyBytesRead_7510_); -lean_inc(v_messageCount_7509_); -lean_inc(v_messageHead_7508_); -lean_inc(v_input_7507_); -lean_dec(v_reader_7446_); -v___x_7514_ = lean_box(0); -v_isShared_7515_ = v_isSharedCheck_7530_; -goto v_resetjp_7513_; -} -v_resetjp_7513_: -{ -lean_object* v___x_7516_; lean_object* v___x_7517_; lean_object* v___x_7518_; lean_object* v___x_7520_; -v___x_7516_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); -v___x_7517_ = lean_array_push(v_events_7448_, v___x_7516_); -v___x_7518_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); -if (v_isShared_7515_ == 0) -{ -lean_ctor_set(v___x_7514_, 0, v___x_7518_); -v___x_7520_ = v___x_7514_; -goto v_reusejp_7519_; -} -else -{ -lean_object* v_reuseFailAlloc_7529_; -v_reuseFailAlloc_7529_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7529_, 0, v___x_7518_); -lean_ctor_set(v_reuseFailAlloc_7529_, 1, v_input_7507_); -lean_ctor_set(v_reuseFailAlloc_7529_, 2, v_messageHead_7508_); -lean_ctor_set(v_reuseFailAlloc_7529_, 3, v_messageCount_7509_); -lean_ctor_set(v_reuseFailAlloc_7529_, 4, v_bodyBytesRead_7510_); -lean_ctor_set(v_reuseFailAlloc_7529_, 5, v_headerBytesRead_7511_); -lean_ctor_set_uint8(v_reuseFailAlloc_7529_, sizeof(void*)*6, v_noMoreInput_7512_); -v___x_7520_ = v_reuseFailAlloc_7529_; -goto v_reusejp_7519_; -} -v_reusejp_7519_: -{ -lean_object* v___x_7521_; lean_object* v___x_7523_; -v___x_7521_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); -if (v_isShared_7456_ == 0) -{ -lean_ctor_set(v___x_7455_, 4, v___x_7521_); -lean_ctor_set(v___x_7455_, 3, v___x_7517_); -lean_ctor_set(v___x_7455_, 0, v___x_7520_); -v___x_7523_ = v___x_7455_; -goto v_reusejp_7522_; -} -else -{ -lean_object* v_reuseFailAlloc_7528_; -v_reuseFailAlloc_7528_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7528_, 0, v___x_7520_); -lean_ctor_set(v_reuseFailAlloc_7528_, 1, v_writer_7447_); -lean_ctor_set(v_reuseFailAlloc_7528_, 2, v_config_7440_); -lean_ctor_set(v_reuseFailAlloc_7528_, 3, v___x_7517_); -lean_ctor_set(v_reuseFailAlloc_7528_, 4, v___x_7521_); -lean_ctor_set(v_reuseFailAlloc_7528_, 5, v_instant_7450_); -lean_ctor_set_uint8(v_reuseFailAlloc_7528_, sizeof(void*)*6, v_keepAlive_7451_); -lean_ctor_set_uint8(v_reuseFailAlloc_7528_, sizeof(void*)*6 + 1, v_forcedFlush_7452_); -lean_ctor_set_uint8(v_reuseFailAlloc_7528_, sizeof(void*)*6 + 2, v_pullBodyStalled_7453_); -v___x_7523_ = v_reuseFailAlloc_7528_; -goto v_reusejp_7522_; -} -v_reusejp_7522_: -{ -lean_object* v___x_7524_; lean_object* v___x_7526_; -v___x_7524_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); -if (v_isShared_7445_ == 0) -{ -lean_ctor_set(v___x_7444_, 1, v___x_7524_); -lean_ctor_set(v___x_7444_, 0, v___x_7523_); -v___x_7526_ = v___x_7444_; -goto v_reusejp_7525_; -} -else -{ -lean_object* v_reuseFailAlloc_7527_; -v_reuseFailAlloc_7527_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7527_, 0, v___x_7523_); -lean_ctor_set(v_reuseFailAlloc_7527_, 1, v___x_7524_); -v___x_7526_ = v_reuseFailAlloc_7527_; -goto v_reusejp_7525_; -} -v_reusejp_7525_: -{ -return v___x_7526_; -} -} -} -} -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody(uint8_t v_dir_7538_, lean_object* v_machine_7539_){ -_start: -{ -lean_object* v___x_7540_; -v___x_7540_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(v_machine_7539_); -return v___x_7540_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___boxed(lean_object* v_dir_7541_, lean_object* v_machine_7542_){ -_start: -{ -uint8_t v_dir_boxed_7543_; lean_object* v_res_7544_; -v_dir_boxed_7543_ = lean_unbox(v_dir_7541_); -v_res_7544_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody(v_dir_boxed_7543_, v_machine_7542_); -return v_res_7544_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(uint8_t v_dir_7545_, lean_object* v_machine_7546_, lean_object* v_ext_7547_){ -_start: -{ -lean_object* v_config_7548_; lean_object* v___f_7549_; lean_object* v___x_7550_; lean_object* v___x_7551_; lean_object* v___x_7552_; lean_object* v_snd_7553_; -v_config_7548_ = lean_ctor_get(v_machine_7546_, 2); -v___f_7549_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); -lean_inc_ref(v_config_7548_); -v___x_7550_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseLastChunkBody), 2, 1); -lean_closure_set(v___x_7550_, 0, v_config_7548_); -v___x_7551_ = lean_box(0); -v___x_7552_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_7546_, v___x_7550_, v___x_7551_, v___x_7551_, v___f_7549_); -v_snd_7553_ = lean_ctor_get(v___x_7552_, 1); -lean_inc(v_snd_7553_); -if (lean_obj_tag(v_snd_7553_) == 0) -{ -lean_object* v_fst_7554_; lean_object* v___x_7556_; uint8_t v_isShared_7557_; uint8_t v_isSharedCheck_7562_; -lean_dec_ref(v_ext_7547_); -v_fst_7554_ = lean_ctor_get(v___x_7552_, 0); -v_isSharedCheck_7562_ = !lean_is_exclusive(v___x_7552_); -if (v_isSharedCheck_7562_ == 0) -{ -lean_object* v_unused_7563_; -v_unused_7563_ = lean_ctor_get(v___x_7552_, 1); -lean_dec(v_unused_7563_); -v___x_7556_ = v___x_7552_; -v_isShared_7557_ = v_isSharedCheck_7562_; -goto v_resetjp_7555_; -} -else -{ -lean_inc(v_fst_7554_); -lean_dec(v___x_7552_); -v___x_7556_ = lean_box(0); -v_isShared_7557_ = v_isSharedCheck_7562_; -goto v_resetjp_7555_; -} -v_resetjp_7555_: -{ -lean_object* v___x_7558_; lean_object* v___x_7560_; -v___x_7558_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); -if (v_isShared_7557_ == 0) -{ -lean_ctor_set(v___x_7556_, 1, v___x_7558_); -v___x_7560_ = v___x_7556_; -goto v_reusejp_7559_; -} -else -{ -lean_object* v_reuseFailAlloc_7561_; -v_reuseFailAlloc_7561_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7561_, 0, v_fst_7554_); -lean_ctor_set(v_reuseFailAlloc_7561_, 1, v___x_7558_); -v___x_7560_ = v_reuseFailAlloc_7561_; -goto v_reusejp_7559_; -} -v_reusejp_7559_: -{ -return v___x_7560_; -} -} -} -else -{ -lean_object* v_fst_7564_; lean_object* v___x_7565_; uint8_t v___x_7566_; uint8_t v___x_7567_; lean_object* v___x_7568_; lean_object* v___x_7569_; -lean_dec_ref(v_snd_7553_); -v_fst_7564_ = lean_ctor_get(v___x_7552_, 0); -lean_inc(v_fst_7564_); -lean_dec_ref(v___x_7552_); -v___x_7565_ = lean_box(5); -v___x_7566_ = 1; -v___x_7567_ = 0; -v___x_7568_ = l_ByteSlice_empty; -v___x_7569_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7545_, v_fst_7564_, v___x_7565_, v___x_7566_, v___x_7567_, v_ext_7547_, v___x_7568_, v___x_7566_); -return v___x_7569_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState___boxed(lean_object* v_dir_7570_, lean_object* v_machine_7571_, lean_object* v_ext_7572_){ -_start: -{ -uint8_t v_dir_boxed_7573_; lean_object* v_res_7574_; -v_dir_boxed_7573_ = lean_unbox(v_dir_7570_); -v_res_7574_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(v_dir_boxed_7573_, v_machine_7571_, v_ext_7572_); -return v_res_7574_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(uint8_t v_dir_7575_, lean_object* v_machine_7576_, lean_object* v_ext_7577_, lean_object* v_size_7578_){ -_start: -{ -lean_object* v___f_7579_; lean_object* v___x_7580_; lean_object* v___x_7581_; lean_object* v___x_7582_; lean_object* v___x_7583_; lean_object* v_snd_7584_; -v___f_7579_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); -lean_inc(v_size_7578_); -v___x_7580_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseChunkSizedData___boxed), 2, 1); -lean_closure_set(v___x_7580_, 0, v_size_7578_); -v___x_7581_ = lean_box(0); -v___x_7582_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_7582_, 0, v_size_7578_); -v___x_7583_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_7576_, v___x_7580_, v___x_7581_, v___x_7582_, v___f_7579_); -v_snd_7584_ = lean_ctor_get(v___x_7583_, 1); -lean_inc(v_snd_7584_); -if (lean_obj_tag(v_snd_7584_) == 0) -{ -lean_object* v_fst_7585_; lean_object* v___x_7587_; uint8_t v_isShared_7588_; uint8_t v_isSharedCheck_7593_; -lean_dec_ref(v_ext_7577_); -v_fst_7585_ = lean_ctor_get(v___x_7583_, 0); -v_isSharedCheck_7593_ = !lean_is_exclusive(v___x_7583_); -if (v_isSharedCheck_7593_ == 0) -{ -lean_object* v_unused_7594_; -v_unused_7594_ = lean_ctor_get(v___x_7583_, 1); -lean_dec(v_unused_7594_); -v___x_7587_ = v___x_7583_; -v_isShared_7588_ = v_isSharedCheck_7593_; -goto v_resetjp_7586_; -} -else -{ -lean_inc(v_fst_7585_); -lean_dec(v___x_7583_); -v___x_7587_ = lean_box(0); -v_isShared_7588_ = v_isSharedCheck_7593_; -goto v_resetjp_7586_; -} -v_resetjp_7586_: -{ -lean_object* v___x_7589_; lean_object* v___x_7591_; -v___x_7589_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); -if (v_isShared_7588_ == 0) -{ -lean_ctor_set(v___x_7587_, 1, v___x_7589_); -v___x_7591_ = v___x_7587_; -goto v_reusejp_7590_; -} -else -{ -lean_object* v_reuseFailAlloc_7592_; -v_reuseFailAlloc_7592_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7592_, 0, v_fst_7585_); -lean_ctor_set(v_reuseFailAlloc_7592_, 1, v___x_7589_); -v___x_7591_ = v_reuseFailAlloc_7592_; -goto v_reusejp_7590_; -} -v_reusejp_7590_: -{ -return v___x_7591_; -} -} -} -else -{ -lean_object* v_val_7595_; lean_object* v___x_7597_; uint8_t v_isShared_7598_; uint8_t v_isSharedCheck_7620_; -v_val_7595_ = lean_ctor_get(v_snd_7584_, 0); -v_isSharedCheck_7620_ = !lean_is_exclusive(v_snd_7584_); -if (v_isSharedCheck_7620_ == 0) -{ -v___x_7597_ = v_snd_7584_; -v_isShared_7598_ = v_isSharedCheck_7620_; -goto v_resetjp_7596_; -} -else -{ -lean_inc(v_val_7595_); -lean_dec(v_snd_7584_); -v___x_7597_ = lean_box(0); -v_isShared_7598_ = v_isSharedCheck_7620_; -goto v_resetjp_7596_; -} -v_resetjp_7596_: -{ -if (lean_obj_tag(v_val_7595_) == 0) -{ -lean_object* v_fst_7599_; lean_object* v_data_7600_; lean_object* v___x_7601_; uint8_t v___x_7602_; lean_object* v___x_7603_; -lean_del_object(v___x_7597_); -v_fst_7599_ = lean_ctor_get(v___x_7583_, 0); -lean_inc(v_fst_7599_); -lean_dec_ref(v___x_7583_); -v_data_7600_ = lean_ctor_get(v_val_7595_, 0); -lean_inc_ref(v_data_7600_); -lean_dec_ref(v_val_7595_); -v___x_7601_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_readerStateForMode___redArg___closed__0)); -v___x_7602_ = 0; -v___x_7603_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7575_, v_fst_7599_, v___x_7601_, v___x_7602_, v___x_7602_, v_ext_7577_, v_data_7600_, v___x_7602_); -return v___x_7603_; -} -else -{ -lean_object* v_fst_7604_; lean_object* v_data_7605_; lean_object* v_remaining_7606_; lean_object* v___x_7608_; uint8_t v_isShared_7609_; uint8_t v_isSharedCheck_7619_; -v_fst_7604_ = lean_ctor_get(v___x_7583_, 0); -lean_inc(v_fst_7604_); -lean_dec_ref(v___x_7583_); -v_data_7605_ = lean_ctor_get(v_val_7595_, 0); -v_remaining_7606_ = lean_ctor_get(v_val_7595_, 1); -v_isSharedCheck_7619_ = !lean_is_exclusive(v_val_7595_); -if (v_isSharedCheck_7619_ == 0) -{ -v___x_7608_ = v_val_7595_; -v_isShared_7609_ = v_isSharedCheck_7619_; -goto v_resetjp_7607_; -} -else -{ -lean_inc(v_remaining_7606_); -lean_inc(v_data_7605_); -lean_dec(v_val_7595_); -v___x_7608_ = lean_box(0); -v_isShared_7609_ = v_isSharedCheck_7619_; -goto v_resetjp_7607_; -} -v_resetjp_7607_: -{ -lean_object* v___x_7611_; -lean_inc_ref(v_ext_7577_); -if (v_isShared_7609_ == 0) -{ -lean_ctor_set_tag(v___x_7608_, 2); -lean_ctor_set(v___x_7608_, 0, v_ext_7577_); -v___x_7611_ = v___x_7608_; -goto v_reusejp_7610_; -} -else -{ -lean_object* v_reuseFailAlloc_7618_; -v_reuseFailAlloc_7618_ = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7618_, 0, v_ext_7577_); -lean_ctor_set(v_reuseFailAlloc_7618_, 1, v_remaining_7606_); -v___x_7611_ = v_reuseFailAlloc_7618_; -goto v_reusejp_7610_; -} -v_reusejp_7610_: -{ -lean_object* v___x_7613_; -if (v_isShared_7598_ == 0) -{ -lean_ctor_set_tag(v___x_7597_, 2); -lean_ctor_set(v___x_7597_, 0, v___x_7611_); -v___x_7613_ = v___x_7597_; -goto v_reusejp_7612_; -} -else -{ -lean_object* v_reuseFailAlloc_7617_; -v_reuseFailAlloc_7617_ = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(v_reuseFailAlloc_7617_, 0, v___x_7611_); -v___x_7613_ = v_reuseFailAlloc_7617_; -goto v_reusejp_7612_; -} -v_reusejp_7612_: -{ -uint8_t v___x_7614_; uint8_t v___x_7615_; lean_object* v___x_7616_; -v___x_7614_ = 0; -v___x_7615_ = 1; -v___x_7616_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7575_, v_fst_7604_, v___x_7613_, v___x_7614_, v___x_7615_, v_ext_7577_, v_data_7605_, v___x_7614_); -return v___x_7616_; -} -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState___boxed(lean_object* v_dir_7621_, lean_object* v_machine_7622_, lean_object* v_ext_7623_, lean_object* v_size_7624_){ -_start: -{ -uint8_t v_dir_boxed_7625_; lean_object* v_res_7626_; -v_dir_boxed_7625_ = lean_unbox(v_dir_7621_); -v_res_7626_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(v_dir_boxed_7625_, v_machine_7622_, v_ext_7623_, v_size_7624_); -return v_res_7626_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(uint8_t v_dir_7629_, lean_object* v_machine_7630_){ -_start: -{ -lean_object* v_reader_7631_; lean_object* v_input_7632_; lean_object* v_writer_7633_; lean_object* v_config_7634_; lean_object* v_events_7635_; lean_object* v_error_7636_; lean_object* v_instant_7637_; uint8_t v_keepAlive_7638_; uint8_t v_forcedFlush_7639_; uint8_t v_pullBodyStalled_7640_; lean_object* v_state_7641_; lean_object* v_messageHead_7642_; lean_object* v_messageCount_7643_; lean_object* v_bodyBytesRead_7644_; lean_object* v_headerBytesRead_7645_; uint8_t v_noMoreInput_7646_; lean_object* v_array_7647_; lean_object* v_idx_7648_; lean_object* v___x_7650_; uint8_t v_isShared_7651_; uint8_t v_isSharedCheck_7693_; -v_reader_7631_ = lean_ctor_get(v_machine_7630_, 0); -v_input_7632_ = lean_ctor_get(v_reader_7631_, 1); -lean_inc_ref(v_input_7632_); -v_writer_7633_ = lean_ctor_get(v_machine_7630_, 1); -v_config_7634_ = lean_ctor_get(v_machine_7630_, 2); -v_events_7635_ = lean_ctor_get(v_machine_7630_, 3); -v_error_7636_ = lean_ctor_get(v_machine_7630_, 4); -v_instant_7637_ = lean_ctor_get(v_machine_7630_, 5); -v_keepAlive_7638_ = lean_ctor_get_uint8(v_machine_7630_, sizeof(void*)*6); -v_forcedFlush_7639_ = lean_ctor_get_uint8(v_machine_7630_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7640_ = lean_ctor_get_uint8(v_machine_7630_, sizeof(void*)*6 + 2); -v_state_7641_ = lean_ctor_get(v_reader_7631_, 0); -v_messageHead_7642_ = lean_ctor_get(v_reader_7631_, 2); -v_messageCount_7643_ = lean_ctor_get(v_reader_7631_, 3); -v_bodyBytesRead_7644_ = lean_ctor_get(v_reader_7631_, 4); -v_headerBytesRead_7645_ = lean_ctor_get(v_reader_7631_, 5); -v_noMoreInput_7646_ = lean_ctor_get_uint8(v_reader_7631_, sizeof(void*)*6); -v_array_7647_ = lean_ctor_get(v_input_7632_, 0); -v_idx_7648_ = lean_ctor_get(v_input_7632_, 1); -v_isSharedCheck_7693_ = !lean_is_exclusive(v_input_7632_); -if (v_isSharedCheck_7693_ == 0) -{ -v___x_7650_ = v_input_7632_; -v_isShared_7651_ = v_isSharedCheck_7693_; -goto v_resetjp_7649_; -} -else -{ -lean_inc(v_idx_7648_); -lean_inc(v_array_7647_); -lean_dec(v_input_7632_); -v___x_7650_ = lean_box(0); -v_isShared_7651_ = v_isSharedCheck_7693_; -goto v_resetjp_7649_; -} -v_resetjp_7649_: -{ -lean_object* v___x_7652_; uint8_t v___x_7653_; lean_object* v___y_7655_; -v___x_7652_ = lean_byte_array_size(v_array_7647_); -v___x_7653_ = lean_nat_dec_le(v___x_7652_, v_idx_7648_); -if (v___x_7653_ == 0) -{ -lean_object* v___x_7667_; uint8_t v___x_7668_; -lean_inc(v_headerBytesRead_7645_); -lean_inc(v_bodyBytesRead_7644_); -lean_inc(v_messageCount_7643_); -lean_inc(v_messageHead_7642_); -lean_inc(v_state_7641_); -lean_inc(v_instant_7637_); -lean_inc(v_error_7636_); -lean_inc_ref(v_events_7635_); -lean_inc_ref(v_config_7634_); -lean_inc_ref(v_writer_7633_); -lean_dec_ref(v_machine_7630_); -v___x_7667_ = lean_unsigned_to_nat(0u); -v___x_7668_ = lean_nat_dec_le(v_idx_7648_, v___x_7667_); -if (v___x_7668_ == 0) -{ -lean_inc(v_idx_7648_); -v___y_7655_ = v_idx_7648_; -goto v___jp_7654_; -} -else -{ -v___y_7655_ = v___x_7667_; -goto v___jp_7654_; -} -} -else -{ -lean_del_object(v___x_7650_); -lean_dec(v_idx_7648_); -lean_dec_ref(v_array_7647_); -if (v_noMoreInput_7646_ == 0) -{ -lean_object* v___x_7670_; uint8_t v_isShared_7671_; uint8_t v_isSharedCheck_7681_; -lean_inc(v_instant_7637_); -lean_inc(v_error_7636_); -lean_inc_ref(v_events_7635_); -lean_inc_ref(v_config_7634_); -lean_inc_ref(v_writer_7633_); -lean_inc_ref(v_reader_7631_); -v_isSharedCheck_7681_ = !lean_is_exclusive(v_machine_7630_); -if (v_isSharedCheck_7681_ == 0) -{ -lean_object* v_unused_7682_; lean_object* v_unused_7683_; lean_object* v_unused_7684_; lean_object* v_unused_7685_; lean_object* v_unused_7686_; lean_object* v_unused_7687_; -v_unused_7682_ = lean_ctor_get(v_machine_7630_, 5); -lean_dec(v_unused_7682_); -v_unused_7683_ = lean_ctor_get(v_machine_7630_, 4); -lean_dec(v_unused_7683_); -v_unused_7684_ = lean_ctor_get(v_machine_7630_, 3); -lean_dec(v_unused_7684_); -v_unused_7685_ = lean_ctor_get(v_machine_7630_, 2); -lean_dec(v_unused_7685_); -v_unused_7686_ = lean_ctor_get(v_machine_7630_, 1); -lean_dec(v_unused_7686_); -v_unused_7687_ = lean_ctor_get(v_machine_7630_, 0); -lean_dec(v_unused_7687_); -v___x_7670_ = v_machine_7630_; -v_isShared_7671_ = v_isSharedCheck_7681_; -goto v_resetjp_7669_; -} -else -{ -lean_dec(v_machine_7630_); -v___x_7670_ = lean_box(0); -v_isShared_7671_ = v_isSharedCheck_7681_; -goto v_resetjp_7669_; -} -v_resetjp_7669_: -{ -lean_object* v___x_7672_; lean_object* v___x_7673_; lean_object* v___x_7674_; lean_object* v___x_7676_; -v___x_7672_ = lean_box(0); -v___x_7673_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___closed__0)); -v___x_7674_ = lean_array_push(v_events_7635_, v___x_7673_); -if (v_isShared_7671_ == 0) -{ -lean_ctor_set(v___x_7670_, 3, v___x_7674_); -v___x_7676_ = v___x_7670_; -goto v_reusejp_7675_; -} -else -{ -lean_object* v_reuseFailAlloc_7680_; -v_reuseFailAlloc_7680_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7680_, 0, v_reader_7631_); -lean_ctor_set(v_reuseFailAlloc_7680_, 1, v_writer_7633_); -lean_ctor_set(v_reuseFailAlloc_7680_, 2, v_config_7634_); -lean_ctor_set(v_reuseFailAlloc_7680_, 3, v___x_7674_); -lean_ctor_set(v_reuseFailAlloc_7680_, 4, v_error_7636_); -lean_ctor_set(v_reuseFailAlloc_7680_, 5, v_instant_7637_); -lean_ctor_set_uint8(v_reuseFailAlloc_7680_, sizeof(void*)*6, v_keepAlive_7638_); -lean_ctor_set_uint8(v_reuseFailAlloc_7680_, sizeof(void*)*6 + 1, v_forcedFlush_7639_); -lean_ctor_set_uint8(v_reuseFailAlloc_7680_, sizeof(void*)*6 + 2, v_pullBodyStalled_7640_); -v___x_7676_ = v_reuseFailAlloc_7680_; -goto v_reusejp_7675_; -} -v_reusejp_7675_: -{ -lean_object* v___x_7677_; lean_object* v___x_7678_; lean_object* v___x_7679_; -v___x_7677_ = lean_box(v_noMoreInput_7646_); -v___x_7678_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7678_, 0, v___x_7672_); -lean_ctor_set(v___x_7678_, 1, v___x_7677_); -v___x_7679_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7679_, 0, v___x_7676_); -lean_ctor_set(v___x_7679_, 1, v___x_7678_); -return v___x_7679_; -} -} -} -else -{ -lean_object* v___x_7688_; uint8_t v___x_7689_; lean_object* v___x_7690_; lean_object* v___x_7691_; lean_object* v___x_7692_; -v___x_7688_ = lean_box(5); -v___x_7689_ = 0; -v___x_7690_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); -v___x_7691_ = l_ByteSlice_empty; -v___x_7692_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7629_, v_machine_7630_, v___x_7688_, v_noMoreInput_7646_, v___x_7689_, v___x_7690_, v___x_7691_, v_noMoreInput_7646_); -return v___x_7692_; -} -} -v___jp_7654_: -{ -lean_object* v___x_7656_; lean_object* v___x_7657_; lean_object* v___x_7658_; lean_object* v___x_7660_; -lean_inc_ref(v_array_7647_); -v___x_7656_ = l_ByteArray_toByteSlice(v_array_7647_, v___y_7655_, v___x_7652_); -v___x_7657_ = lean_nat_sub(v___x_7652_, v_idx_7648_); -v___x_7658_ = lean_nat_add(v_idx_7648_, v___x_7657_); -lean_dec(v___x_7657_); -lean_dec(v_idx_7648_); -if (v_isShared_7651_ == 0) -{ -lean_ctor_set(v___x_7650_, 1, v___x_7658_); -v___x_7660_ = v___x_7650_; -goto v_reusejp_7659_; -} -else -{ -lean_object* v_reuseFailAlloc_7666_; -v_reuseFailAlloc_7666_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_7666_, 0, v_array_7647_); -lean_ctor_set(v_reuseFailAlloc_7666_, 1, v___x_7658_); -v___x_7660_ = v_reuseFailAlloc_7666_; -goto v_reusejp_7659_; -} -v_reusejp_7659_: -{ -lean_object* v___x_7661_; lean_object* v_machine_7662_; lean_object* v___x_7663_; lean_object* v___x_7664_; lean_object* v___x_7665_; -v___x_7661_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v___x_7661_, 0, v_state_7641_); -lean_ctor_set(v___x_7661_, 1, v___x_7660_); -lean_ctor_set(v___x_7661_, 2, v_messageHead_7642_); -lean_ctor_set(v___x_7661_, 3, v_messageCount_7643_); -lean_ctor_set(v___x_7661_, 4, v_bodyBytesRead_7644_); -lean_ctor_set(v___x_7661_, 5, v_headerBytesRead_7645_); -lean_ctor_set_uint8(v___x_7661_, sizeof(void*)*6, v_noMoreInput_7646_); -v_machine_7662_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_machine_7662_, 0, v___x_7661_); -lean_ctor_set(v_machine_7662_, 1, v_writer_7633_); -lean_ctor_set(v_machine_7662_, 2, v_config_7634_); -lean_ctor_set(v_machine_7662_, 3, v_events_7635_); -lean_ctor_set(v_machine_7662_, 4, v_error_7636_); -lean_ctor_set(v_machine_7662_, 5, v_instant_7637_); -lean_ctor_set_uint8(v_machine_7662_, sizeof(void*)*6, v_keepAlive_7638_); -lean_ctor_set_uint8(v_machine_7662_, sizeof(void*)*6 + 1, v_forcedFlush_7639_); -lean_ctor_set_uint8(v_machine_7662_, sizeof(void*)*6 + 2, v_pullBodyStalled_7640_); -v___x_7663_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_readerStateForMode___redArg___closed__1)); -v___x_7664_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); -v___x_7665_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_7629_, v_machine_7662_, v___x_7663_, v___x_7653_, v___x_7653_, v___x_7664_, v___x_7656_, v___x_7653_); -return v___x_7665_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___boxed(lean_object* v_dir_7694_, lean_object* v_machine_7695_){ -_start: -{ -uint8_t v_dir_boxed_7696_; lean_object* v_res_7697_; -v_dir_boxed_7696_ = lean_unbox(v_dir_7694_); -v_res_7697_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(v_dir_boxed_7696_, v_machine_7695_); -return v_res_7697_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(uint8_t v_dir_7698_, lean_object* v_machine_7699_, lean_object* v_x_7700_){ -_start: -{ -switch(lean_obj_tag(v_x_7700_)) -{ -case 0: -{ -lean_object* v_remaining_7701_; lean_object* v___x_7702_; uint8_t v___x_7703_; -v_remaining_7701_ = lean_ctor_get(v_x_7700_, 0); -lean_inc(v_remaining_7701_); -lean_dec_ref(v_x_7700_); -v___x_7702_ = lean_unsigned_to_nat(0u); -v___x_7703_ = lean_nat_dec_eq(v_remaining_7701_, v___x_7702_); -if (v___x_7703_ == 0) -{ -lean_object* v___x_7704_; -v___x_7704_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(v_dir_7698_, v_machine_7699_, v_remaining_7701_); -return v___x_7704_; -} -else -{ -lean_object* v___x_7705_; -lean_dec(v_remaining_7701_); -v___x_7705_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(v_dir_7698_, v_machine_7699_); -return v___x_7705_; -} -} -case 1: -{ -lean_object* v___x_7706_; -v___x_7706_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(v_machine_7699_); -return v___x_7706_; -} -case 2: -{ -lean_object* v_ext_7707_; lean_object* v_remaining_7708_; lean_object* v___x_7709_; uint8_t v___x_7710_; -v_ext_7707_ = lean_ctor_get(v_x_7700_, 0); -lean_inc_ref(v_ext_7707_); -v_remaining_7708_ = lean_ctor_get(v_x_7700_, 1); -lean_inc(v_remaining_7708_); -lean_dec_ref(v_x_7700_); -v___x_7709_ = lean_unsigned_to_nat(0u); -v___x_7710_ = lean_nat_dec_eq(v_remaining_7708_, v___x_7709_); -if (v___x_7710_ == 0) -{ -lean_object* v___x_7711_; -v___x_7711_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(v_dir_7698_, v_machine_7699_, v_ext_7707_, v_remaining_7708_); -return v___x_7711_; -} -else -{ -lean_object* v___x_7712_; -lean_dec(v_remaining_7708_); -v___x_7712_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(v_dir_7698_, v_machine_7699_, v_ext_7707_); -return v___x_7712_; -} -} -default: -{ -lean_object* v___x_7713_; -v___x_7713_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(v_dir_7698_, v_machine_7699_); -return v___x_7713_; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody___boxed(lean_object* v_dir_7714_, lean_object* v_machine_7715_, lean_object* v_x_7716_){ -_start: -{ -uint8_t v_dir_boxed_7717_; lean_object* v_res_7718_; -v_dir_boxed_7717_ = lean_unbox(v_dir_7714_); -v_res_7718_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_boxed_7717_, v_machine_7715_, v_x_7716_); -return v_res_7718_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_typedHeader_x3f(lean_object* v_name_7719_, lean_object* v_value_7720_){ -_start: -{ -lean_object* v___x_7721_; -v___x_7721_ = l_Std_Http_Header_Name_ofString_x3f(v_name_7719_); -if (lean_obj_tag(v___x_7721_) == 0) -{ -lean_object* v___x_7722_; -lean_dec_ref(v_value_7720_); -v___x_7722_ = lean_box(0); -return v___x_7722_; -} -else -{ -lean_object* v_val_7723_; lean_object* v___x_7724_; -v_val_7723_ = lean_ctor_get(v___x_7721_, 0); -lean_inc(v_val_7723_); -lean_dec_ref(v___x_7721_); -v___x_7724_ = l_Std_Http_Header_Value_ofString_x3f(v_value_7720_); -if (lean_obj_tag(v___x_7724_) == 0) -{ -lean_object* v___x_7725_; -lean_dec(v_val_7723_); -v___x_7725_ = lean_box(0); -return v___x_7725_; -} -else -{ -lean_object* v_val_7726_; lean_object* v___x_7728_; uint8_t v_isShared_7729_; uint8_t v_isSharedCheck_7734_; -v_val_7726_ = lean_ctor_get(v___x_7724_, 0); -v_isSharedCheck_7734_ = !lean_is_exclusive(v___x_7724_); -if (v_isSharedCheck_7734_ == 0) -{ -v___x_7728_ = v___x_7724_; -v_isShared_7729_ = v_isSharedCheck_7734_; -goto v_resetjp_7727_; -} -else -{ -lean_inc(v_val_7726_); -lean_dec(v___x_7724_); -v___x_7728_ = lean_box(0); -v_isShared_7729_ = v_isSharedCheck_7734_; -goto v_resetjp_7727_; -} -v_resetjp_7727_: -{ -lean_object* v___x_7730_; lean_object* v___x_7732_; -v___x_7730_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_7730_, 0, v_val_7723_); -lean_ctor_set(v___x_7730_, 1, v_val_7726_); -if (v_isShared_7729_ == 0) -{ -lean_ctor_set(v___x_7728_, 0, v___x_7730_); -v___x_7732_ = v___x_7728_; -goto v_reusejp_7731_; -} -else -{ -lean_object* v_reuseFailAlloc_7733_; -v_reuseFailAlloc_7733_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_7733_, 0, v___x_7730_); -v___x_7732_ = v_reuseFailAlloc_7733_; -goto v_reusejp_7731_; -} -v_reusejp_7731_: -{ -return v___x_7732_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError(lean_object* v_x_7736_){ -_start: -{ -if (lean_obj_tag(v_x_7736_) == 1) -{ -lean_object* v_s_7737_; lean_object* v___x_7738_; uint8_t v___x_7739_; -v_s_7737_ = lean_ctor_get(v_x_7736_, 0); -v___x_7738_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___closed__0)); -v___x_7739_ = lean_string_dec_eq(v_s_7737_, v___x_7738_); -if (v___x_7739_ == 0) -{ -lean_object* v___x_7740_; -v___x_7740_ = lean_box(8); -return v___x_7740_; -} -else -{ -lean_object* v___x_7741_; -v___x_7741_ = lean_box(4); -return v___x_7741_; -} -} -else -{ -lean_object* v___x_7742_; -v___x_7742_ = lean_box(8); -return v___x_7742_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___boxed(lean_object* v_x_7743_){ -_start: -{ -lean_object* v_res_7744_; -v_res_7744_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError(v_x_7743_); -lean_dec(v_x_7743_); -return v_res_7744_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(uint8_t v_dir_7745_, lean_object* v_machine_7746_){ -_start: -{ -if (v_dir_7745_ == 1) -{ -lean_object* v_reader_7747_; lean_object* v_writer_7748_; lean_object* v_config_7749_; lean_object* v_events_7750_; lean_object* v_error_7751_; lean_object* v_instant_7752_; uint8_t v_keepAlive_7753_; uint8_t v_forcedFlush_7754_; uint8_t v_pullBodyStalled_7755_; lean_object* v_input_7756_; lean_object* v_messageHead_7757_; lean_object* v_messageCount_7758_; lean_object* v_bodyBytesRead_7759_; lean_object* v_headerBytesRead_7760_; uint8_t v_noMoreInput_7761_; lean_object* v___x_7763_; uint8_t v_isShared_7764_; uint8_t v_isSharedCheck_7800_; -v_reader_7747_ = lean_ctor_get(v_machine_7746_, 0); -lean_inc_ref(v_reader_7747_); -v_writer_7748_ = lean_ctor_get(v_machine_7746_, 1); -v_config_7749_ = lean_ctor_get(v_machine_7746_, 2); -v_events_7750_ = lean_ctor_get(v_machine_7746_, 3); -v_error_7751_ = lean_ctor_get(v_machine_7746_, 4); -v_instant_7752_ = lean_ctor_get(v_machine_7746_, 5); -v_keepAlive_7753_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6); -v_forcedFlush_7754_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7755_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6 + 2); -v_input_7756_ = lean_ctor_get(v_reader_7747_, 1); -v_messageHead_7757_ = lean_ctor_get(v_reader_7747_, 2); -v_messageCount_7758_ = lean_ctor_get(v_reader_7747_, 3); -v_bodyBytesRead_7759_ = lean_ctor_get(v_reader_7747_, 4); -v_headerBytesRead_7760_ = lean_ctor_get(v_reader_7747_, 5); -v_noMoreInput_7761_ = lean_ctor_get_uint8(v_reader_7747_, sizeof(void*)*6); -v_isSharedCheck_7800_ = !lean_is_exclusive(v_reader_7747_); -if (v_isSharedCheck_7800_ == 0) -{ -lean_object* v_unused_7801_; -v_unused_7801_ = lean_ctor_get(v_reader_7747_, 0); -lean_dec(v_unused_7801_); -v___x_7763_ = v_reader_7747_; -v_isShared_7764_ = v_isSharedCheck_7800_; -goto v_resetjp_7762_; -} -else -{ -lean_inc(v_headerBytesRead_7760_); -lean_inc(v_bodyBytesRead_7759_); -lean_inc(v_messageCount_7758_); -lean_inc(v_messageHead_7757_); -lean_inc(v_input_7756_); -lean_dec(v_reader_7747_); -v___x_7763_ = lean_box(0); -v_isShared_7764_ = v_isSharedCheck_7800_; -goto v_resetjp_7762_; -} -v_resetjp_7762_: -{ -lean_object* v_status_7777_; uint16_t v___x_7778_; uint16_t v___x_7779_; uint8_t v___x_7780_; -v_status_7777_ = lean_ctor_get(v_messageHead_7757_, 0); -v___x_7778_ = 100; -v___x_7779_ = l_Std_Http_Status_toCode(v_status_7777_); -v___x_7780_ = lean_uint16_dec_le(v___x_7778_, v___x_7779_); -if (v___x_7780_ == 0) -{ -goto v___jp_7772_; -} -else -{ -uint16_t v___x_7781_; uint8_t v___x_7782_; -v___x_7781_ = 200; -v___x_7782_ = lean_uint16_dec_lt(v___x_7779_, v___x_7781_); -if (v___x_7782_ == 0) -{ -goto v___jp_7772_; -} -else -{ -lean_object* v___x_7784_; uint8_t v_isShared_7785_; uint8_t v_isSharedCheck_7793_; -lean_inc(v_instant_7752_); -lean_inc(v_error_7751_); -lean_inc_ref(v_events_7750_); -lean_inc_ref(v_config_7749_); -lean_inc_ref(v_writer_7748_); -lean_del_object(v___x_7763_); -lean_dec(v_headerBytesRead_7760_); -lean_dec(v_bodyBytesRead_7759_); -lean_dec(v_messageHead_7757_); -v_isSharedCheck_7793_ = !lean_is_exclusive(v_machine_7746_); -if (v_isSharedCheck_7793_ == 0) -{ -lean_object* v_unused_7794_; lean_object* v_unused_7795_; lean_object* v_unused_7796_; lean_object* v_unused_7797_; lean_object* v_unused_7798_; lean_object* v_unused_7799_; -v_unused_7794_ = lean_ctor_get(v_machine_7746_, 5); -lean_dec(v_unused_7794_); -v_unused_7795_ = lean_ctor_get(v_machine_7746_, 4); -lean_dec(v_unused_7795_); -v_unused_7796_ = lean_ctor_get(v_machine_7746_, 3); -lean_dec(v_unused_7796_); -v_unused_7797_ = lean_ctor_get(v_machine_7746_, 2); -lean_dec(v_unused_7797_); -v_unused_7798_ = lean_ctor_get(v_machine_7746_, 1); -lean_dec(v_unused_7798_); -v_unused_7799_ = lean_ctor_get(v_machine_7746_, 0); -lean_dec(v_unused_7799_); -v___x_7784_ = v_machine_7746_; -v_isShared_7785_ = v_isSharedCheck_7793_; -goto v_resetjp_7783_; -} -else -{ -lean_dec(v_machine_7746_); -v___x_7784_ = lean_box(0); -v_isShared_7785_ = v_isSharedCheck_7793_; -goto v_resetjp_7783_; -} -v_resetjp_7783_: -{ -lean_object* v___x_7786_; lean_object* v___x_7787_; lean_object* v___x_7788_; lean_object* v___x_7789_; lean_object* v___x_7791_; -v___x_7786_ = lean_box(0); -v___x_7787_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v_dir_7745_); -v___x_7788_ = lean_unsigned_to_nat(0u); -v___x_7789_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v___x_7789_, 0, v___x_7786_); -lean_ctor_set(v___x_7789_, 1, v_input_7756_); -lean_ctor_set(v___x_7789_, 2, v___x_7787_); -lean_ctor_set(v___x_7789_, 3, v_messageCount_7758_); -lean_ctor_set(v___x_7789_, 4, v___x_7788_); -lean_ctor_set(v___x_7789_, 5, v___x_7788_); -lean_ctor_set_uint8(v___x_7789_, sizeof(void*)*6, v_noMoreInput_7761_); -if (v_isShared_7785_ == 0) -{ -lean_ctor_set(v___x_7784_, 0, v___x_7789_); -v___x_7791_ = v___x_7784_; -goto v_reusejp_7790_; -} -else -{ -lean_object* v_reuseFailAlloc_7792_; -v_reuseFailAlloc_7792_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7792_, 0, v___x_7789_); -lean_ctor_set(v_reuseFailAlloc_7792_, 1, v_writer_7748_); -lean_ctor_set(v_reuseFailAlloc_7792_, 2, v_config_7749_); -lean_ctor_set(v_reuseFailAlloc_7792_, 3, v_events_7750_); -lean_ctor_set(v_reuseFailAlloc_7792_, 4, v_error_7751_); -lean_ctor_set(v_reuseFailAlloc_7792_, 5, v_instant_7752_); -lean_ctor_set_uint8(v_reuseFailAlloc_7792_, sizeof(void*)*6, v_keepAlive_7753_); -lean_ctor_set_uint8(v_reuseFailAlloc_7792_, sizeof(void*)*6 + 1, v_forcedFlush_7754_); -lean_ctor_set_uint8(v_reuseFailAlloc_7792_, sizeof(void*)*6 + 2, v_pullBodyStalled_7755_); -v___x_7791_ = v_reuseFailAlloc_7792_; -goto v_reusejp_7790_; -} -v_reusejp_7790_: -{ -return v___x_7791_; -} -} -} -} -v___jp_7765_: -{ -lean_object* v___x_7766_; lean_object* v___x_7768_; -v___x_7766_ = lean_box(6); -if (v_isShared_7764_ == 0) -{ -lean_ctor_set(v___x_7763_, 0, v___x_7766_); -v___x_7768_ = v___x_7763_; -goto v_reusejp_7767_; -} -else -{ -lean_object* v_reuseFailAlloc_7770_; -v_reuseFailAlloc_7770_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7770_, 0, v___x_7766_); -lean_ctor_set(v_reuseFailAlloc_7770_, 1, v_input_7756_); -lean_ctor_set(v_reuseFailAlloc_7770_, 2, v_messageHead_7757_); -lean_ctor_set(v_reuseFailAlloc_7770_, 3, v_messageCount_7758_); -lean_ctor_set(v_reuseFailAlloc_7770_, 4, v_bodyBytesRead_7759_); -lean_ctor_set(v_reuseFailAlloc_7770_, 5, v_headerBytesRead_7760_); -lean_ctor_set_uint8(v_reuseFailAlloc_7770_, sizeof(void*)*6, v_noMoreInput_7761_); -v___x_7768_ = v_reuseFailAlloc_7770_; -goto v_reusejp_7767_; -} -v_reusejp_7767_: -{ -lean_object* v___x_7769_; -v___x_7769_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_7769_, 0, v___x_7768_); -lean_ctor_set(v___x_7769_, 1, v_writer_7748_); -lean_ctor_set(v___x_7769_, 2, v_config_7749_); -lean_ctor_set(v___x_7769_, 3, v_events_7750_); -lean_ctor_set(v___x_7769_, 4, v_error_7751_); -lean_ctor_set(v___x_7769_, 5, v_instant_7752_); -lean_ctor_set_uint8(v___x_7769_, sizeof(void*)*6, v_keepAlive_7753_); -lean_ctor_set_uint8(v___x_7769_, sizeof(void*)*6 + 1, v_forcedFlush_7754_); -lean_ctor_set_uint8(v___x_7769_, sizeof(void*)*6 + 2, v_pullBodyStalled_7755_); -return v___x_7769_; -} -} -v___jp_7771_: -{ -if (v_keepAlive_7753_ == 0) -{ -lean_inc(v_instant_7752_); -lean_inc(v_error_7751_); -lean_inc_ref(v_events_7750_); -lean_inc_ref(v_config_7749_); -lean_inc_ref(v_writer_7748_); -lean_dec_ref(v_machine_7746_); -goto v___jp_7765_; -} -else -{ -lean_del_object(v___x_7763_); -lean_dec(v_headerBytesRead_7760_); -lean_dec(v_bodyBytesRead_7759_); -lean_dec(v_messageCount_7758_); -lean_dec(v_messageHead_7757_); -lean_dec_ref(v_input_7756_); -return v_machine_7746_; -} -} -v___jp_7772_: -{ -if (v_noMoreInput_7761_ == 0) -{ -goto v___jp_7771_; -} -else -{ -lean_object* v_array_7773_; lean_object* v_idx_7774_; lean_object* v___x_7775_; uint8_t v___x_7776_; -v_array_7773_ = lean_ctor_get(v_input_7756_, 0); -v_idx_7774_ = lean_ctor_get(v_input_7756_, 1); -v___x_7775_ = lean_byte_array_size(v_array_7773_); -v___x_7776_ = lean_nat_dec_le(v___x_7775_, v_idx_7774_); -if (v___x_7776_ == 0) -{ -goto v___jp_7771_; -} -else -{ -lean_inc(v_instant_7752_); -lean_inc(v_error_7751_); -lean_inc_ref(v_events_7750_); -lean_inc_ref(v_config_7749_); -lean_inc_ref(v_writer_7748_); -lean_dec_ref(v_machine_7746_); -goto v___jp_7765_; -} -} -} -} -} -else -{ -lean_object* v_reader_7802_; lean_object* v_writer_7803_; lean_object* v_config_7804_; lean_object* v_events_7805_; lean_object* v_error_7806_; lean_object* v_instant_7807_; uint8_t v_keepAlive_7808_; uint8_t v_forcedFlush_7809_; uint8_t v_pullBodyStalled_7810_; lean_object* v_input_7811_; lean_object* v_messageHead_7812_; lean_object* v_messageCount_7813_; lean_object* v_bodyBytesRead_7814_; lean_object* v_headerBytesRead_7815_; uint8_t v_noMoreInput_7816_; lean_object* v___x_7818_; uint8_t v_isShared_7819_; uint8_t v_isSharedCheck_7831_; -v_reader_7802_ = lean_ctor_get(v_machine_7746_, 0); -lean_inc_ref(v_reader_7802_); -v_writer_7803_ = lean_ctor_get(v_machine_7746_, 1); -v_config_7804_ = lean_ctor_get(v_machine_7746_, 2); -v_events_7805_ = lean_ctor_get(v_machine_7746_, 3); -v_error_7806_ = lean_ctor_get(v_machine_7746_, 4); -v_instant_7807_ = lean_ctor_get(v_machine_7746_, 5); -v_keepAlive_7808_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6); -v_forcedFlush_7809_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7810_ = lean_ctor_get_uint8(v_machine_7746_, sizeof(void*)*6 + 2); -v_input_7811_ = lean_ctor_get(v_reader_7802_, 1); -v_messageHead_7812_ = lean_ctor_get(v_reader_7802_, 2); -v_messageCount_7813_ = lean_ctor_get(v_reader_7802_, 3); -v_bodyBytesRead_7814_ = lean_ctor_get(v_reader_7802_, 4); -v_headerBytesRead_7815_ = lean_ctor_get(v_reader_7802_, 5); -v_noMoreInput_7816_ = lean_ctor_get_uint8(v_reader_7802_, sizeof(void*)*6); -v_isSharedCheck_7831_ = !lean_is_exclusive(v_reader_7802_); -if (v_isSharedCheck_7831_ == 0) -{ -lean_object* v_unused_7832_; -v_unused_7832_ = lean_ctor_get(v_reader_7802_, 0); -lean_dec(v_unused_7832_); -v___x_7818_ = v_reader_7802_; -v_isShared_7819_ = v_isSharedCheck_7831_; -goto v_resetjp_7817_; -} -else -{ -lean_inc(v_headerBytesRead_7815_); -lean_inc(v_bodyBytesRead_7814_); -lean_inc(v_messageCount_7813_); -lean_inc(v_messageHead_7812_); -lean_inc(v_input_7811_); -lean_dec(v_reader_7802_); -v___x_7818_ = lean_box(0); -v_isShared_7819_ = v_isSharedCheck_7831_; -goto v_resetjp_7817_; -} -v_resetjp_7817_: -{ -if (v_noMoreInput_7816_ == 0) -{ -goto v___jp_7826_; -} -else -{ -lean_object* v_array_7827_; lean_object* v_idx_7828_; lean_object* v___x_7829_; uint8_t v___x_7830_; -v_array_7827_ = lean_ctor_get(v_input_7811_, 0); -v_idx_7828_ = lean_ctor_get(v_input_7811_, 1); -v___x_7829_ = lean_byte_array_size(v_array_7827_); -v___x_7830_ = lean_nat_dec_le(v___x_7829_, v_idx_7828_); -if (v___x_7830_ == 0) -{ -goto v___jp_7826_; -} -else -{ -lean_inc(v_instant_7807_); -lean_inc(v_error_7806_); -lean_inc_ref(v_events_7805_); -lean_inc_ref(v_config_7804_); -lean_inc_ref(v_writer_7803_); -lean_dec_ref(v_machine_7746_); -goto v___jp_7820_; -} -} -v___jp_7820_: -{ -lean_object* v___x_7821_; lean_object* v___x_7823_; -v___x_7821_ = lean_box(6); -if (v_isShared_7819_ == 0) -{ -lean_ctor_set(v___x_7818_, 0, v___x_7821_); -v___x_7823_ = v___x_7818_; -goto v_reusejp_7822_; -} -else -{ -lean_object* v_reuseFailAlloc_7825_; -v_reuseFailAlloc_7825_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7825_, 0, v___x_7821_); -lean_ctor_set(v_reuseFailAlloc_7825_, 1, v_input_7811_); -lean_ctor_set(v_reuseFailAlloc_7825_, 2, v_messageHead_7812_); -lean_ctor_set(v_reuseFailAlloc_7825_, 3, v_messageCount_7813_); -lean_ctor_set(v_reuseFailAlloc_7825_, 4, v_bodyBytesRead_7814_); -lean_ctor_set(v_reuseFailAlloc_7825_, 5, v_headerBytesRead_7815_); -lean_ctor_set_uint8(v_reuseFailAlloc_7825_, sizeof(void*)*6, v_noMoreInput_7816_); -v___x_7823_ = v_reuseFailAlloc_7825_; -goto v_reusejp_7822_; -} -v_reusejp_7822_: -{ -lean_object* v___x_7824_; -v___x_7824_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_7824_, 0, v___x_7823_); -lean_ctor_set(v___x_7824_, 1, v_writer_7803_); -lean_ctor_set(v___x_7824_, 2, v_config_7804_); -lean_ctor_set(v___x_7824_, 3, v_events_7805_); -lean_ctor_set(v___x_7824_, 4, v_error_7806_); -lean_ctor_set(v___x_7824_, 5, v_instant_7807_); -lean_ctor_set_uint8(v___x_7824_, sizeof(void*)*6, v_keepAlive_7808_); -lean_ctor_set_uint8(v___x_7824_, sizeof(void*)*6 + 1, v_forcedFlush_7809_); -lean_ctor_set_uint8(v___x_7824_, sizeof(void*)*6 + 2, v_pullBodyStalled_7810_); -return v___x_7824_; -} -} -v___jp_7826_: -{ -if (v_keepAlive_7808_ == 0) -{ -lean_inc(v_instant_7807_); -lean_inc(v_error_7806_); -lean_inc_ref(v_events_7805_); -lean_inc_ref(v_config_7804_); -lean_inc_ref(v_writer_7803_); -lean_dec_ref(v_machine_7746_); -goto v___jp_7820_; -} -else -{ -lean_del_object(v___x_7818_); -lean_dec(v_headerBytesRead_7815_); -lean_dec(v_bodyBytesRead_7814_); -lean_dec(v_messageCount_7813_); -lean_dec(v_messageHead_7812_); -lean_dec_ref(v_input_7811_); -return v_machine_7746_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState___boxed(lean_object* v_dir_7833_, lean_object* v_machine_7834_){ -_start: -{ -uint8_t v_dir_boxed_7835_; lean_object* v_res_7836_; -v_dir_boxed_7835_ = lean_unbox(v_dir_7833_); -v_res_7836_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(v_dir_boxed_7835_, v_machine_7834_); -return v_res_7836_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0(lean_object* v___y_7837_){ -_start: -{ -if (lean_obj_tag(v___y_7837_) == 1) -{ -lean_object* v_s_7838_; lean_object* v___x_7839_; uint8_t v___x_7840_; -v_s_7838_ = lean_ctor_get(v___y_7837_, 0); -v___x_7839_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___closed__0)); -v___x_7840_ = lean_string_dec_eq(v_s_7838_, v___x_7839_); -if (v___x_7840_ == 0) -{ -lean_object* v___x_7841_; -v___x_7841_ = lean_box(8); -return v___x_7841_; -} -else -{ -lean_object* v___x_7842_; -v___x_7842_ = lean_box(4); -return v___x_7842_; -} -} -else -{ -lean_object* v___x_7843_; -v___x_7843_ = lean_box(8); -return v___x_7843_; -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0___boxed(lean_object* v___y_7844_){ -_start: -{ -lean_object* v_res_7845_; -v_res_7845_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0(v___y_7844_); -lean_dec(v___y_7844_); -return v_res_7845_; -} -} -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(lean_object* v_x_7846_, lean_object* v_x_7847_){ -_start: -{ -if (lean_obj_tag(v_x_7846_) == 0) -{ -if (lean_obj_tag(v_x_7847_) == 0) -{ -uint8_t v___x_7848_; -v___x_7848_ = 1; -return v___x_7848_; -} -else -{ -uint8_t v___x_7849_; -v___x_7849_ = 0; -return v___x_7849_; -} -} -else -{ -if (lean_obj_tag(v_x_7847_) == 0) -{ -uint8_t v___x_7850_; -v___x_7850_ = 0; -return v___x_7850_; -} -else -{ -lean_object* v_val_7851_; lean_object* v_val_7852_; uint8_t v___x_7853_; uint8_t v___x_7854_; uint8_t v___x_7855_; -v_val_7851_ = lean_ctor_get(v_x_7846_, 0); -v_val_7852_ = lean_ctor_get(v_x_7847_, 0); -v___x_7853_ = lean_unbox(v_val_7851_); -v___x_7854_ = lean_unbox(v_val_7852_); -v___x_7855_ = l_Std_Http_instBEqVersion_beq(v___x_7853_, v___x_7854_); -return v___x_7855_; -} -} -} -} -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6___boxed(lean_object* v_x_7856_, lean_object* v_x_7857_){ -_start: -{ -uint8_t v_res_7858_; lean_object* v_r_7859_; -v_res_7858_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_x_7856_, v_x_7857_); -lean_dec(v_x_7857_); -lean_dec(v_x_7856_); -v_r_7859_ = lean_box(v_res_7858_); -return v_r_7859_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0(lean_object* v_x_7860_){ -_start: -{ -lean_object* v___x_7861_; -v___x_7861_ = lean_box(8); -return v___x_7861_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0___boxed(lean_object* v_x_7862_){ -_start: -{ -lean_object* v_res_7863_; -v_res_7863_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0(v_x_7862_); -lean_dec(v_x_7862_); -return v_res_7863_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine(lean_object* v_machine_7874_){ -_start: -{ -lean_object* v_config_7875_; lean_object* v_maxStartLineLength_7876_; lean_object* v___f_7877_; lean_object* v___x_7878_; lean_object* v___x_7879_; lean_object* v___x_7880_; lean_object* v___x_7881_; lean_object* v_fst_7882_; lean_object* v_snd_7883_; -v_config_7875_ = lean_ctor_get(v_machine_7874_, 2); -v_maxStartLineLength_7876_ = lean_ctor_get(v_config_7875_, 5); -v___f_7877_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__0)); -lean_inc_ref(v_config_7875_); -v___x_7878_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseRequestLineRawVersion___boxed), 2, 1); -lean_closure_set(v___x_7878_, 0, v_config_7875_); -lean_inc(v_maxStartLineLength_7876_); -v___x_7879_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_7879_, 0, v_maxStartLineLength_7876_); -v___x_7880_ = lean_box(0); -v___x_7881_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_7874_, v___x_7878_, v___x_7879_, v___x_7880_, v___f_7877_); -v_fst_7882_ = lean_ctor_get(v___x_7881_, 0); -lean_inc(v_fst_7882_); -v_snd_7883_ = lean_ctor_get(v___x_7881_, 1); -lean_inc(v_snd_7883_); -lean_dec_ref(v___x_7881_); -if (lean_obj_tag(v_snd_7883_) == 0) -{ -return v_fst_7882_; -} -else -{ -lean_object* v_val_7919_; lean_object* v_snd_7920_; lean_object* v_snd_7921_; -v_val_7919_ = lean_ctor_get(v_snd_7883_, 0); -lean_inc(v_val_7919_); -lean_dec_ref(v_snd_7883_); -v_snd_7920_ = lean_ctor_get(v_val_7919_, 1); -lean_inc(v_snd_7920_); -v_snd_7921_ = lean_ctor_get(v_snd_7920_, 1); -lean_inc(v_snd_7921_); -if (lean_obj_tag(v_snd_7921_) == 1) -{ -lean_object* v_fst_7922_; lean_object* v_fst_7923_; lean_object* v_val_7924_; uint8_t v___x_7925_; uint8_t v___x_7926_; -v_fst_7922_ = lean_ctor_get(v_val_7919_, 0); -lean_inc(v_fst_7922_); -lean_dec(v_val_7919_); -v_fst_7923_ = lean_ctor_get(v_snd_7920_, 0); -lean_inc(v_fst_7923_); -lean_dec(v_snd_7920_); -v_val_7924_ = lean_ctor_get(v_snd_7921_, 0); -lean_inc(v_val_7924_); -lean_dec_ref(v_snd_7921_); -v___x_7925_ = 0; -v___x_7926_ = lean_unbox(v_val_7924_); -switch(v___x_7926_) -{ -case 1: -{ -lean_object* v_reader_7927_; lean_object* v_writer_7928_; lean_object* v_config_7929_; lean_object* v_events_7930_; lean_object* v_error_7931_; lean_object* v_instant_7932_; uint8_t v_keepAlive_7933_; uint8_t v_forcedFlush_7934_; uint8_t v_pullBodyStalled_7935_; lean_object* v___x_7937_; uint8_t v_isShared_7938_; uint8_t v_isSharedCheck_7962_; -v_reader_7927_ = lean_ctor_get(v_fst_7882_, 0); -v_writer_7928_ = lean_ctor_get(v_fst_7882_, 1); -v_config_7929_ = lean_ctor_get(v_fst_7882_, 2); -v_events_7930_ = lean_ctor_get(v_fst_7882_, 3); -v_error_7931_ = lean_ctor_get(v_fst_7882_, 4); -v_instant_7932_ = lean_ctor_get(v_fst_7882_, 5); -v_keepAlive_7933_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6); -v_forcedFlush_7934_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7935_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 2); -v_isSharedCheck_7962_ = !lean_is_exclusive(v_fst_7882_); -if (v_isSharedCheck_7962_ == 0) -{ -v___x_7937_ = v_fst_7882_; -v_isShared_7938_ = v_isSharedCheck_7962_; -goto v_resetjp_7936_; -} -else -{ -lean_inc(v_instant_7932_); -lean_inc(v_error_7931_); -lean_inc(v_events_7930_); -lean_inc(v_config_7929_); -lean_inc(v_writer_7928_); -lean_inc(v_reader_7927_); -lean_dec(v_fst_7882_); -v___x_7937_ = lean_box(0); -v_isShared_7938_ = v_isSharedCheck_7962_; -goto v_resetjp_7936_; -} -v_resetjp_7936_: -{ -lean_object* v_input_7939_; lean_object* v_messageCount_7940_; lean_object* v_bodyBytesRead_7941_; lean_object* v_headerBytesRead_7942_; uint8_t v_noMoreInput_7943_; lean_object* v___x_7945_; uint8_t v_isShared_7946_; uint8_t v_isSharedCheck_7959_; -v_input_7939_ = lean_ctor_get(v_reader_7927_, 1); -v_messageCount_7940_ = lean_ctor_get(v_reader_7927_, 3); -v_bodyBytesRead_7941_ = lean_ctor_get(v_reader_7927_, 4); -v_headerBytesRead_7942_ = lean_ctor_get(v_reader_7927_, 5); -v_noMoreInput_7943_ = lean_ctor_get_uint8(v_reader_7927_, sizeof(void*)*6); -v_isSharedCheck_7959_ = !lean_is_exclusive(v_reader_7927_); -if (v_isSharedCheck_7959_ == 0) -{ -lean_object* v_unused_7960_; lean_object* v_unused_7961_; -v_unused_7960_ = lean_ctor_get(v_reader_7927_, 2); -lean_dec(v_unused_7960_); -v_unused_7961_ = lean_ctor_get(v_reader_7927_, 0); -lean_dec(v_unused_7961_); -v___x_7945_ = v_reader_7927_; -v_isShared_7946_ = v_isSharedCheck_7959_; -goto v_resetjp_7944_; -} -else -{ -lean_inc(v_headerBytesRead_7942_); -lean_inc(v_bodyBytesRead_7941_); -lean_inc(v_messageCount_7940_); -lean_inc(v_input_7939_); -lean_dec(v_reader_7927_); -v___x_7945_ = lean_box(0); -v_isShared_7946_ = v_isSharedCheck_7959_; -goto v_resetjp_7944_; -} -v_resetjp_7944_: -{ -lean_object* v___x_7947_; lean_object* v___x_7948_; uint8_t v___x_7949_; uint8_t v___x_7950_; lean_object* v___x_7951_; lean_object* v___x_7953_; -v___x_7947_ = l_Std_Http_Headers_empty; -v___x_7948_ = lean_alloc_ctor(0, 2, 2); -lean_ctor_set(v___x_7948_, 0, v_fst_7923_); -lean_ctor_set(v___x_7948_, 1, v___x_7947_); -v___x_7949_ = lean_unbox(v_fst_7922_); -lean_dec(v_fst_7922_); -lean_ctor_set_uint8(v___x_7948_, sizeof(void*)*2, v___x_7949_); -v___x_7950_ = lean_unbox(v_val_7924_); -lean_dec(v_val_7924_); -lean_ctor_set_uint8(v___x_7948_, sizeof(void*)*2 + 1, v___x_7950_); -v___x_7951_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); -if (v_isShared_7946_ == 0) -{ -lean_ctor_set(v___x_7945_, 2, v___x_7948_); -lean_ctor_set(v___x_7945_, 0, v___x_7951_); -v___x_7953_ = v___x_7945_; -goto v_reusejp_7952_; -} -else -{ -lean_object* v_reuseFailAlloc_7958_; -v_reuseFailAlloc_7958_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7958_, 0, v___x_7951_); -lean_ctor_set(v_reuseFailAlloc_7958_, 1, v_input_7939_); -lean_ctor_set(v_reuseFailAlloc_7958_, 2, v___x_7948_); -lean_ctor_set(v_reuseFailAlloc_7958_, 3, v_messageCount_7940_); -lean_ctor_set(v_reuseFailAlloc_7958_, 4, v_bodyBytesRead_7941_); -lean_ctor_set(v_reuseFailAlloc_7958_, 5, v_headerBytesRead_7942_); -lean_ctor_set_uint8(v_reuseFailAlloc_7958_, sizeof(void*)*6, v_noMoreInput_7943_); -v___x_7953_ = v_reuseFailAlloc_7958_; -goto v_reusejp_7952_; -} -v_reusejp_7952_: -{ -lean_object* v___x_7955_; -if (v_isShared_7938_ == 0) -{ -lean_ctor_set(v___x_7937_, 0, v___x_7953_); -v___x_7955_ = v___x_7937_; -goto v_reusejp_7954_; -} -else -{ -lean_object* v_reuseFailAlloc_7957_; -v_reuseFailAlloc_7957_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7957_, 0, v___x_7953_); -lean_ctor_set(v_reuseFailAlloc_7957_, 1, v_writer_7928_); -lean_ctor_set(v_reuseFailAlloc_7957_, 2, v_config_7929_); -lean_ctor_set(v_reuseFailAlloc_7957_, 3, v_events_7930_); -lean_ctor_set(v_reuseFailAlloc_7957_, 4, v_error_7931_); -lean_ctor_set(v_reuseFailAlloc_7957_, 5, v_instant_7932_); -lean_ctor_set_uint8(v_reuseFailAlloc_7957_, sizeof(void*)*6, v_keepAlive_7933_); -lean_ctor_set_uint8(v_reuseFailAlloc_7957_, sizeof(void*)*6 + 1, v_forcedFlush_7934_); -lean_ctor_set_uint8(v_reuseFailAlloc_7957_, sizeof(void*)*6 + 2, v_pullBodyStalled_7935_); -v___x_7955_ = v_reuseFailAlloc_7957_; -goto v_reusejp_7954_; -} -v_reusejp_7954_: -{ -lean_object* v___x_7956_; -v___x_7956_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_7925_, v___x_7955_); -return v___x_7956_; -} -} -} -} -} -case 0: -{ -lean_object* v_reader_7963_; lean_object* v_writer_7964_; lean_object* v_config_7965_; lean_object* v_events_7966_; lean_object* v_error_7967_; lean_object* v_instant_7968_; uint8_t v_keepAlive_7969_; uint8_t v_forcedFlush_7970_; uint8_t v_pullBodyStalled_7971_; lean_object* v___x_7973_; uint8_t v_isShared_7974_; uint8_t v_isSharedCheck_7998_; -v_reader_7963_ = lean_ctor_get(v_fst_7882_, 0); -v_writer_7964_ = lean_ctor_get(v_fst_7882_, 1); -v_config_7965_ = lean_ctor_get(v_fst_7882_, 2); -v_events_7966_ = lean_ctor_get(v_fst_7882_, 3); -v_error_7967_ = lean_ctor_get(v_fst_7882_, 4); -v_instant_7968_ = lean_ctor_get(v_fst_7882_, 5); -v_keepAlive_7969_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6); -v_forcedFlush_7970_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7971_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 2); -v_isSharedCheck_7998_ = !lean_is_exclusive(v_fst_7882_); -if (v_isSharedCheck_7998_ == 0) -{ -v___x_7973_ = v_fst_7882_; -v_isShared_7974_ = v_isSharedCheck_7998_; -goto v_resetjp_7972_; -} -else -{ -lean_inc(v_instant_7968_); -lean_inc(v_error_7967_); -lean_inc(v_events_7966_); -lean_inc(v_config_7965_); -lean_inc(v_writer_7964_); -lean_inc(v_reader_7963_); -lean_dec(v_fst_7882_); -v___x_7973_ = lean_box(0); -v_isShared_7974_ = v_isSharedCheck_7998_; -goto v_resetjp_7972_; -} -v_resetjp_7972_: -{ -lean_object* v_input_7975_; lean_object* v_messageCount_7976_; lean_object* v_bodyBytesRead_7977_; lean_object* v_headerBytesRead_7978_; uint8_t v_noMoreInput_7979_; lean_object* v___x_7981_; uint8_t v_isShared_7982_; uint8_t v_isSharedCheck_7995_; -v_input_7975_ = lean_ctor_get(v_reader_7963_, 1); -v_messageCount_7976_ = lean_ctor_get(v_reader_7963_, 3); -v_bodyBytesRead_7977_ = lean_ctor_get(v_reader_7963_, 4); -v_headerBytesRead_7978_ = lean_ctor_get(v_reader_7963_, 5); -v_noMoreInput_7979_ = lean_ctor_get_uint8(v_reader_7963_, sizeof(void*)*6); -v_isSharedCheck_7995_ = !lean_is_exclusive(v_reader_7963_); -if (v_isSharedCheck_7995_ == 0) -{ -lean_object* v_unused_7996_; lean_object* v_unused_7997_; -v_unused_7996_ = lean_ctor_get(v_reader_7963_, 2); -lean_dec(v_unused_7996_); -v_unused_7997_ = lean_ctor_get(v_reader_7963_, 0); -lean_dec(v_unused_7997_); -v___x_7981_ = v_reader_7963_; -v_isShared_7982_ = v_isSharedCheck_7995_; -goto v_resetjp_7980_; -} -else -{ -lean_inc(v_headerBytesRead_7978_); -lean_inc(v_bodyBytesRead_7977_); -lean_inc(v_messageCount_7976_); -lean_inc(v_input_7975_); -lean_dec(v_reader_7963_); -v___x_7981_ = lean_box(0); -v_isShared_7982_ = v_isSharedCheck_7995_; -goto v_resetjp_7980_; -} -v_resetjp_7980_: -{ -lean_object* v___x_7983_; lean_object* v___x_7984_; uint8_t v___x_7985_; uint8_t v___x_7986_; lean_object* v___x_7987_; lean_object* v___x_7989_; -v___x_7983_ = l_Std_Http_Headers_empty; -v___x_7984_ = lean_alloc_ctor(0, 2, 2); -lean_ctor_set(v___x_7984_, 0, v_fst_7923_); -lean_ctor_set(v___x_7984_, 1, v___x_7983_); -v___x_7985_ = lean_unbox(v_fst_7922_); -lean_dec(v_fst_7922_); -lean_ctor_set_uint8(v___x_7984_, sizeof(void*)*2, v___x_7985_); -v___x_7986_ = lean_unbox(v_val_7924_); -lean_dec(v_val_7924_); -lean_ctor_set_uint8(v___x_7984_, sizeof(void*)*2 + 1, v___x_7986_); -v___x_7987_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); -if (v_isShared_7982_ == 0) -{ -lean_ctor_set(v___x_7981_, 2, v___x_7984_); -lean_ctor_set(v___x_7981_, 0, v___x_7987_); -v___x_7989_ = v___x_7981_; -goto v_reusejp_7988_; -} -else -{ -lean_object* v_reuseFailAlloc_7994_; -v_reuseFailAlloc_7994_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7994_, 0, v___x_7987_); -lean_ctor_set(v_reuseFailAlloc_7994_, 1, v_input_7975_); -lean_ctor_set(v_reuseFailAlloc_7994_, 2, v___x_7984_); -lean_ctor_set(v_reuseFailAlloc_7994_, 3, v_messageCount_7976_); -lean_ctor_set(v_reuseFailAlloc_7994_, 4, v_bodyBytesRead_7977_); -lean_ctor_set(v_reuseFailAlloc_7994_, 5, v_headerBytesRead_7978_); -lean_ctor_set_uint8(v_reuseFailAlloc_7994_, sizeof(void*)*6, v_noMoreInput_7979_); -v___x_7989_ = v_reuseFailAlloc_7994_; -goto v_reusejp_7988_; -} -v_reusejp_7988_: -{ -lean_object* v___x_7991_; -if (v_isShared_7974_ == 0) -{ -lean_ctor_set(v___x_7973_, 0, v___x_7989_); -v___x_7991_ = v___x_7973_; -goto v_reusejp_7990_; -} -else -{ -lean_object* v_reuseFailAlloc_7993_; -v_reuseFailAlloc_7993_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7993_, 0, v___x_7989_); -lean_ctor_set(v_reuseFailAlloc_7993_, 1, v_writer_7964_); -lean_ctor_set(v_reuseFailAlloc_7993_, 2, v_config_7965_); -lean_ctor_set(v_reuseFailAlloc_7993_, 3, v_events_7966_); -lean_ctor_set(v_reuseFailAlloc_7993_, 4, v_error_7967_); -lean_ctor_set(v_reuseFailAlloc_7993_, 5, v_instant_7968_); -lean_ctor_set_uint8(v_reuseFailAlloc_7993_, sizeof(void*)*6, v_keepAlive_7969_); -lean_ctor_set_uint8(v_reuseFailAlloc_7993_, sizeof(void*)*6 + 1, v_forcedFlush_7970_); -lean_ctor_set_uint8(v_reuseFailAlloc_7993_, sizeof(void*)*6 + 2, v_pullBodyStalled_7971_); -v___x_7991_ = v_reuseFailAlloc_7993_; -goto v_reusejp_7990_; -} -v_reusejp_7990_: -{ -lean_object* v___x_7992_; -v___x_7992_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_7925_, v___x_7991_); -return v___x_7992_; -} -} -} -} -} -default: -{ -lean_dec(v_val_7924_); -lean_dec(v_fst_7923_); -lean_dec(v_fst_7922_); -goto v___jp_7884_; -} -} -} -else -{ -lean_dec(v_snd_7921_); -lean_dec(v_snd_7920_); -lean_dec(v_val_7919_); -goto v___jp_7884_; -} -} -v___jp_7884_: -{ -lean_object* v_reader_7885_; lean_object* v_writer_7886_; lean_object* v_config_7887_; lean_object* v_events_7888_; lean_object* v_instant_7889_; uint8_t v_keepAlive_7890_; uint8_t v_forcedFlush_7891_; uint8_t v_pullBodyStalled_7892_; lean_object* v___x_7894_; uint8_t v_isShared_7895_; uint8_t v_isSharedCheck_7917_; -v_reader_7885_ = lean_ctor_get(v_fst_7882_, 0); -v_writer_7886_ = lean_ctor_get(v_fst_7882_, 1); -v_config_7887_ = lean_ctor_get(v_fst_7882_, 2); -v_events_7888_ = lean_ctor_get(v_fst_7882_, 3); -v_instant_7889_ = lean_ctor_get(v_fst_7882_, 5); -v_keepAlive_7890_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6); -v_forcedFlush_7891_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 1); -v_pullBodyStalled_7892_ = lean_ctor_get_uint8(v_fst_7882_, sizeof(void*)*6 + 2); -v_isSharedCheck_7917_ = !lean_is_exclusive(v_fst_7882_); -if (v_isSharedCheck_7917_ == 0) -{ -lean_object* v_unused_7918_; -v_unused_7918_ = lean_ctor_get(v_fst_7882_, 4); -lean_dec(v_unused_7918_); -v___x_7894_ = v_fst_7882_; -v_isShared_7895_ = v_isSharedCheck_7917_; -goto v_resetjp_7893_; -} -else -{ -lean_inc(v_instant_7889_); -lean_inc(v_events_7888_); -lean_inc(v_config_7887_); -lean_inc(v_writer_7886_); -lean_inc(v_reader_7885_); -lean_dec(v_fst_7882_); -v___x_7894_ = lean_box(0); -v_isShared_7895_ = v_isSharedCheck_7917_; -goto v_resetjp_7893_; -} -v_resetjp_7893_: -{ -lean_object* v_input_7896_; lean_object* v_messageHead_7897_; lean_object* v_messageCount_7898_; lean_object* v_bodyBytesRead_7899_; lean_object* v_headerBytesRead_7900_; uint8_t v_noMoreInput_7901_; lean_object* v___x_7903_; uint8_t v_isShared_7904_; uint8_t v_isSharedCheck_7915_; -v_input_7896_ = lean_ctor_get(v_reader_7885_, 1); -v_messageHead_7897_ = lean_ctor_get(v_reader_7885_, 2); -v_messageCount_7898_ = lean_ctor_get(v_reader_7885_, 3); -v_bodyBytesRead_7899_ = lean_ctor_get(v_reader_7885_, 4); -v_headerBytesRead_7900_ = lean_ctor_get(v_reader_7885_, 5); -v_noMoreInput_7901_ = lean_ctor_get_uint8(v_reader_7885_, sizeof(void*)*6); -v_isSharedCheck_7915_ = !lean_is_exclusive(v_reader_7885_); -if (v_isSharedCheck_7915_ == 0) -{ -lean_object* v_unused_7916_; -v_unused_7916_ = lean_ctor_get(v_reader_7885_, 0); -lean_dec(v_unused_7916_); -v___x_7903_ = v_reader_7885_; -v_isShared_7904_ = v_isSharedCheck_7915_; -goto v_resetjp_7902_; -} -else -{ -lean_inc(v_headerBytesRead_7900_); -lean_inc(v_bodyBytesRead_7899_); -lean_inc(v_messageCount_7898_); -lean_inc(v_messageHead_7897_); -lean_inc(v_input_7896_); -lean_dec(v_reader_7885_); -v___x_7903_ = lean_box(0); -v_isShared_7904_ = v_isSharedCheck_7915_; -goto v_resetjp_7902_; -} -v_resetjp_7902_: -{ -lean_object* v___x_7905_; lean_object* v___x_7906_; lean_object* v___x_7907_; lean_object* v___x_7909_; -v___x_7905_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__1)); -v___x_7906_ = lean_array_push(v_events_7888_, v___x_7905_); -v___x_7907_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__2)); -if (v_isShared_7904_ == 0) -{ -lean_ctor_set(v___x_7903_, 0, v___x_7907_); -v___x_7909_ = v___x_7903_; -goto v_reusejp_7908_; -} -else -{ -lean_object* v_reuseFailAlloc_7914_; -v_reuseFailAlloc_7914_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_7914_, 0, v___x_7907_); -lean_ctor_set(v_reuseFailAlloc_7914_, 1, v_input_7896_); -lean_ctor_set(v_reuseFailAlloc_7914_, 2, v_messageHead_7897_); -lean_ctor_set(v_reuseFailAlloc_7914_, 3, v_messageCount_7898_); -lean_ctor_set(v_reuseFailAlloc_7914_, 4, v_bodyBytesRead_7899_); -lean_ctor_set(v_reuseFailAlloc_7914_, 5, v_headerBytesRead_7900_); -lean_ctor_set_uint8(v_reuseFailAlloc_7914_, sizeof(void*)*6, v_noMoreInput_7901_); -v___x_7909_ = v_reuseFailAlloc_7914_; -goto v_reusejp_7908_; -} -v_reusejp_7908_: -{ -lean_object* v___x_7910_; lean_object* v___x_7912_; -v___x_7910_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__3)); -if (v_isShared_7895_ == 0) -{ -lean_ctor_set(v___x_7894_, 4, v___x_7910_); -lean_ctor_set(v___x_7894_, 3, v___x_7906_); -lean_ctor_set(v___x_7894_, 0, v___x_7909_); -v___x_7912_ = v___x_7894_; -goto v_reusejp_7911_; -} -else -{ -lean_object* v_reuseFailAlloc_7913_; -v_reuseFailAlloc_7913_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_7913_, 0, v___x_7909_); -lean_ctor_set(v_reuseFailAlloc_7913_, 1, v_writer_7886_); -lean_ctor_set(v_reuseFailAlloc_7913_, 2, v_config_7887_); -lean_ctor_set(v_reuseFailAlloc_7913_, 3, v___x_7906_); -lean_ctor_set(v_reuseFailAlloc_7913_, 4, v___x_7910_); -lean_ctor_set(v_reuseFailAlloc_7913_, 5, v_instant_7889_); -lean_ctor_set_uint8(v_reuseFailAlloc_7913_, sizeof(void*)*6, v_keepAlive_7890_); -lean_ctor_set_uint8(v_reuseFailAlloc_7913_, sizeof(void*)*6 + 1, v_forcedFlush_7891_); -lean_ctor_set_uint8(v_reuseFailAlloc_7913_, sizeof(void*)*6 + 2, v_pullBodyStalled_7892_); -v___x_7912_ = v_reuseFailAlloc_7913_; -goto v_reusejp_7911_; -} -v_reusejp_7911_: -{ -return v___x_7912_; -} -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine(lean_object* v_machine_8005_){ -_start: -{ -lean_object* v_config_8006_; lean_object* v_maxStartLineLength_8007_; lean_object* v___f_8008_; lean_object* v___x_8009_; lean_object* v___x_8010_; lean_object* v___x_8011_; lean_object* v___x_8012_; lean_object* v_snd_8013_; -v_config_8006_ = lean_ctor_get(v_machine_8005_, 2); -v_maxStartLineLength_8007_ = lean_ctor_get(v_config_8006_, 5); -v___f_8008_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___closed__0)); -lean_inc_ref(v_config_8006_); -v___x_8009_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseStatusLineRawVersion___boxed), 2, 1); -lean_closure_set(v___x_8009_, 0, v_config_8006_); -lean_inc(v_maxStartLineLength_8007_); -v___x_8010_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_8010_, 0, v_maxStartLineLength_8007_); -v___x_8011_ = lean_box(0); -v___x_8012_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8005_, v___x_8009_, v___x_8010_, v___x_8011_, v___f_8008_); -v_snd_8013_ = lean_ctor_get(v___x_8012_, 1); -lean_inc(v_snd_8013_); -if (lean_obj_tag(v_snd_8013_) == 0) -{ -lean_object* v_fst_8014_; -v_fst_8014_ = lean_ctor_get(v___x_8012_, 0); -lean_inc(v_fst_8014_); -lean_dec_ref(v___x_8012_); -return v_fst_8014_; -} -else -{ -lean_object* v_val_8015_; lean_object* v_fst_8016_; lean_object* v_fst_8017_; lean_object* v_snd_8018_; uint8_t v___x_8019_; uint8_t v___x_8020_; lean_object* v___x_8021_; uint8_t v___x_8022_; -v_val_8015_ = lean_ctor_get(v_snd_8013_, 0); -lean_inc(v_val_8015_); -lean_dec_ref(v_snd_8013_); -v_fst_8016_ = lean_ctor_get(v___x_8012_, 0); -lean_inc(v_fst_8016_); -lean_dec_ref(v___x_8012_); -v_fst_8017_ = lean_ctor_get(v_val_8015_, 0); -lean_inc(v_fst_8017_); -v_snd_8018_ = lean_ctor_get(v_val_8015_, 1); -lean_inc(v_snd_8018_); -lean_dec(v_val_8015_); -v___x_8019_ = 1; -v___x_8020_ = 1; -v___x_8021_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine___closed__0)); -v___x_8022_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_snd_8018_, v___x_8021_); -if (v___x_8022_ == 0) -{ -uint8_t v___x_8023_; lean_object* v___x_8024_; uint8_t v___x_8025_; -v___x_8023_ = 0; -v___x_8024_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine___closed__1)); -v___x_8025_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_snd_8018_, v___x_8024_); -lean_dec(v_snd_8018_); +lean_object* v_reader_7797_; lean_object* v_writer_7798_; lean_object* v_config_7799_; lean_object* v_events_7800_; lean_object* v_instant_7801_; uint8_t v_keepAlive_7802_; uint8_t v_forcedFlush_7803_; uint8_t v_pullBodyStalled_7804_; lean_object* v_reader_7823_; lean_object* v_userData_7824_; lean_object* v_outputData_7825_; lean_object* v_state_7826_; lean_object* v_knownSize_7827_; lean_object* v_messageHead_7828_; uint8_t v_sentMessage_7829_; uint8_t v_omitBody_7830_; lean_object* v_userDataBytes_7831_; lean_object* v_config_7832_; lean_object* v_events_7833_; lean_object* v_instant_7834_; uint8_t v_keepAlive_7835_; uint8_t v_forcedFlush_7836_; uint8_t v_pullBodyStalled_7837_; lean_object* v___y_7841_; uint8_t v___y_7859_; lean_object* v___y_7860_; uint8_t v___y_7861_; +if (v_dir_7793_ == 0) +{ +lean_object* v_writer_7878_; uint8_t v_sentMessage_7879_; +v_writer_7878_ = lean_ctor_get(v_machine_7794_, 1); +lean_inc_ref(v_writer_7878_); +v_sentMessage_7879_ = lean_ctor_get_uint8(v_writer_7878_, sizeof(void*)*6); +if (v_sentMessage_7879_ == 0) +{ +lean_object* v_state_7880_; +v_state_7880_ = lean_ctor_get(v_writer_7878_, 2); +if (lean_obj_tag(v_state_7880_) == 7) +{ +lean_object* v_reader_7881_; lean_object* v_config_7882_; lean_object* v_events_7883_; lean_object* v_instant_7884_; uint8_t v_keepAlive_7885_; uint8_t v_forcedFlush_7886_; uint8_t v_pullBodyStalled_7887_; +v_reader_7881_ = lean_ctor_get(v_machine_7794_, 0); +lean_inc_ref(v_reader_7881_); +v_config_7882_ = lean_ctor_get(v_machine_7794_, 2); +lean_inc_ref(v_config_7882_); +v_events_7883_ = lean_ctor_get(v_machine_7794_, 3); +lean_inc_ref(v_events_7883_); +v_instant_7884_ = lean_ctor_get(v_machine_7794_, 5); +lean_inc(v_instant_7884_); +v_keepAlive_7885_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6); +v_forcedFlush_7886_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7887_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 2); +lean_dec_ref(v_machine_7794_); +v_reader_7797_ = v_reader_7881_; +v_writer_7798_ = v_writer_7878_; +v_config_7799_ = v_config_7882_; +v_events_7800_ = v_events_7883_; +v_instant_7801_ = v_instant_7884_; +v_keepAlive_7802_ = v_keepAlive_7885_; +v_forcedFlush_7803_ = v_forcedFlush_7886_; +v_pullBodyStalled_7804_ = v_pullBodyStalled_7887_; +goto v___jp_7796_; +} +else +{ +lean_object* v_reader_7888_; lean_object* v_config_7889_; lean_object* v_events_7890_; lean_object* v_error_7891_; lean_object* v_instant_7892_; uint8_t v_forcedFlush_7893_; uint8_t v_pullBodyStalled_7894_; lean_object* v___x_7896_; uint8_t v_isShared_7897_; uint8_t v_isSharedCheck_8036_; +v_reader_7888_ = lean_ctor_get(v_machine_7794_, 0); +v_config_7889_ = lean_ctor_get(v_machine_7794_, 2); +v_events_7890_ = lean_ctor_get(v_machine_7794_, 3); +v_error_7891_ = lean_ctor_get(v_machine_7794_, 4); +v_instant_7892_ = lean_ctor_get(v_machine_7794_, 5); +v_forcedFlush_7893_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7894_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 2); +v_isSharedCheck_8036_ = !lean_is_exclusive(v_machine_7794_); +if (v_isSharedCheck_8036_ == 0) +{ +lean_object* v_unused_8037_; +v_unused_8037_ = lean_ctor_get(v_machine_7794_, 1); +lean_dec(v_unused_8037_); +v___x_7896_ = v_machine_7794_; +v_isShared_7897_ = v_isSharedCheck_8036_; +goto v_resetjp_7895_; +} +else +{ +lean_inc(v_instant_7892_); +lean_inc(v_error_7891_); +lean_inc(v_events_7890_); +lean_inc(v_config_7889_); +lean_inc(v_reader_7888_); +lean_dec(v_machine_7794_); +v___x_7896_ = lean_box(0); +v_isShared_7897_ = v_isSharedCheck_8036_; +goto v_resetjp_7895_; +} +v_resetjp_7895_: +{ +lean_object* v_userData_7898_; lean_object* v_outputData_7899_; lean_object* v_knownSize_7900_; lean_object* v_messageHead_7901_; uint8_t v_userClosedBody_7902_; uint8_t v_omitBody_7903_; lean_object* v_userDataBytes_7904_; lean_object* v___x_7906_; uint8_t v_isShared_7907_; uint8_t v_isSharedCheck_8034_; +v_userData_7898_ = lean_ctor_get(v_writer_7878_, 0); +v_outputData_7899_ = lean_ctor_get(v_writer_7878_, 1); +v_knownSize_7900_ = lean_ctor_get(v_writer_7878_, 3); +v_messageHead_7901_ = lean_ctor_get(v_writer_7878_, 4); +v_userClosedBody_7902_ = lean_ctor_get_uint8(v_writer_7878_, sizeof(void*)*6 + 1); +v_omitBody_7903_ = lean_ctor_get_uint8(v_writer_7878_, sizeof(void*)*6 + 2); +v_userDataBytes_7904_ = lean_ctor_get(v_writer_7878_, 5); +v_isSharedCheck_8034_ = !lean_is_exclusive(v_writer_7878_); +if (v_isSharedCheck_8034_ == 0) +{ +lean_object* v_unused_8035_; +v_unused_8035_ = lean_ctor_get(v_writer_7878_, 2); +lean_dec(v_unused_8035_); +v___x_7906_ = v_writer_7878_; +v_isShared_7907_ = v_isSharedCheck_8034_; +goto v_resetjp_7905_; +} +else +{ +lean_inc(v_userDataBytes_7904_); +lean_inc(v_messageHead_7901_); +lean_inc(v_knownSize_7900_); +lean_inc(v_outputData_7899_); +lean_inc(v_userData_7898_); +lean_dec(v_writer_7878_); +v___x_7906_ = lean_box(0); +v_isShared_7907_ = v_isSharedCheck_8034_; +goto v_resetjp_7905_; +} +v_resetjp_7905_: +{ +lean_object* v___x_7908_; uint8_t v___x_7909_; +v___x_7908_ = lean_box(1); +v___x_7909_ = lean_uint8_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___closed__0); +if (v___x_7909_ == 0) +{ +lean_del_object(v___x_7906_); +lean_del_object(v___x_7896_); +lean_dec(v_error_7891_); +v_reader_7823_ = v_reader_7888_; +v_userData_7824_ = v_userData_7898_; +v_outputData_7825_ = v_outputData_7899_; +v_state_7826_ = v___x_7908_; +v_knownSize_7827_ = v_knownSize_7900_; +v_messageHead_7828_ = v_messageHead_7901_; +v_sentMessage_7829_ = v_sentMessage_7879_; +v_omitBody_7830_ = v_omitBody_7903_; +v_userDataBytes_7831_ = v_userDataBytes_7904_; +v_config_7832_ = v_config_7889_; +v_events_7833_ = v_events_7890_; +v_instant_7834_ = v_instant_7892_; +v_keepAlive_7835_ = v_sentMessage_7879_; +v_forcedFlush_7836_ = v_forcedFlush_7893_; +v_pullBodyStalled_7837_ = v_pullBodyStalled_7894_; +goto v___jp_7822_; +} +else +{ +lean_object* v___x_7910_; uint8_t v___x_7911_; lean_object* v___x_7912_; lean_object* v___x_7913_; uint8_t v___y_7915_; lean_object* v___y_7916_; uint8_t v___y_7921_; lean_object* v___y_7922_; lean_object* v___y_7923_; lean_object* v___y_7924_; uint8_t v___y_7935_; lean_object* v___y_7936_; uint8_t v___y_7951_; uint8_t v___y_7952_; lean_object* v___y_7953_; uint8_t v___y_7959_; lean_object* v___y_7960_; uint8_t v___y_7961_; lean_object* v___y_7962_; lean_object* v___y_7963_; lean_object* v___y_7974_; uint8_t v___y_7975_; uint8_t v___y_7976_; uint8_t v___y_7991_; uint8_t v___y_7992_; uint8_t v___y_7993_; uint8_t v___y_7994_; lean_object* v___y_7995_; uint8_t v___y_7996_; uint8_t v___y_8003_; uint8_t v___y_8004_; uint8_t v___y_8005_; uint8_t v___y_8020_; uint8_t v___y_8021_; uint16_t v___x_8023_; uint16_t v___x_8024_; uint8_t v___x_8025_; +v___x_7910_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_errorResponseStatus(v_error_7795_); +v___x_7911_ = 1; +v___x_7912_ = l_Std_Http_Headers_empty; +lean_inc(v___x_7910_); +v___x_7913_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_7913_, 0, v___x_7910_); +lean_ctor_set(v___x_7913_, 1, v___x_7912_); +lean_ctor_set_uint8(v___x_7913_, sizeof(void*)*2, v___x_7911_); +v___x_8023_ = 100; +v___x_8024_ = l_Std_Http_Status_toCode(v___x_7910_); +lean_dec(v___x_7910_); +v___x_8025_ = lean_uint16_dec_le(v___x_8023_, v___x_8024_); if (v___x_8025_ == 0) { -lean_object* v_reader_8026_; lean_object* v_writer_8027_; lean_object* v_config_8028_; lean_object* v_events_8029_; lean_object* v_instant_8030_; uint8_t v_keepAlive_8031_; uint8_t v_forcedFlush_8032_; uint8_t v_pullBodyStalled_8033_; lean_object* v___x_8035_; uint8_t v_isShared_8036_; uint8_t v_isSharedCheck_8058_; -lean_dec(v_fst_8017_); -v_reader_8026_ = lean_ctor_get(v_fst_8016_, 0); -v_writer_8027_ = lean_ctor_get(v_fst_8016_, 1); -v_config_8028_ = lean_ctor_get(v_fst_8016_, 2); -v_events_8029_ = lean_ctor_get(v_fst_8016_, 3); -v_instant_8030_ = lean_ctor_get(v_fst_8016_, 5); -v_keepAlive_8031_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6); -v_forcedFlush_8032_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8033_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 2); -v_isSharedCheck_8058_ = !lean_is_exclusive(v_fst_8016_); -if (v_isSharedCheck_8058_ == 0) -{ -lean_object* v_unused_8059_; -v_unused_8059_ = lean_ctor_get(v_fst_8016_, 4); -lean_dec(v_unused_8059_); -v___x_8035_ = v_fst_8016_; -v_isShared_8036_ = v_isSharedCheck_8058_; -goto v_resetjp_8034_; +lean_dec(v_messageHead_7901_); +v___y_8020_ = v___x_7909_; +v___y_8021_ = v_sentMessage_7879_; +goto v___jp_8019_; } else { -lean_inc(v_instant_8030_); -lean_inc(v_events_8029_); -lean_inc(v_config_8028_); -lean_inc(v_writer_8027_); -lean_inc(v_reader_8026_); -lean_dec(v_fst_8016_); -v___x_8035_ = lean_box(0); -v_isShared_8036_ = v_isSharedCheck_8058_; -goto v_resetjp_8034_; -} -v_resetjp_8034_: +uint16_t v___x_8026_; uint8_t v___x_8027_; +v___x_8026_ = 200; +v___x_8027_ = lean_uint16_dec_lt(v___x_8024_, v___x_8026_); +if (v___x_8027_ == 0) { -lean_object* v_input_8037_; lean_object* v_messageHead_8038_; lean_object* v_messageCount_8039_; lean_object* v_bodyBytesRead_8040_; lean_object* v_headerBytesRead_8041_; uint8_t v_noMoreInput_8042_; lean_object* v___x_8044_; uint8_t v_isShared_8045_; uint8_t v_isSharedCheck_8056_; -v_input_8037_ = lean_ctor_get(v_reader_8026_, 1); -v_messageHead_8038_ = lean_ctor_get(v_reader_8026_, 2); -v_messageCount_8039_ = lean_ctor_get(v_reader_8026_, 3); -v_bodyBytesRead_8040_ = lean_ctor_get(v_reader_8026_, 4); -v_headerBytesRead_8041_ = lean_ctor_get(v_reader_8026_, 5); -v_noMoreInput_8042_ = lean_ctor_get_uint8(v_reader_8026_, sizeof(void*)*6); -v_isSharedCheck_8056_ = !lean_is_exclusive(v_reader_8026_); -if (v_isSharedCheck_8056_ == 0) -{ -lean_object* v_unused_8057_; -v_unused_8057_ = lean_ctor_get(v_reader_8026_, 0); -lean_dec(v_unused_8057_); -v___x_8044_ = v_reader_8026_; -v_isShared_8045_ = v_isSharedCheck_8056_; -goto v_resetjp_8043_; +lean_dec(v_messageHead_7901_); +v___y_8020_ = v___x_7909_; +v___y_8021_ = v_sentMessage_7879_; +goto v___jp_8019_; } else { -lean_inc(v_headerBytesRead_8041_); -lean_inc(v_bodyBytesRead_8040_); -lean_inc(v_messageCount_8039_); -lean_inc(v_messageHead_8038_); -lean_inc(v_input_8037_); -lean_dec(v_reader_8026_); -v___x_8044_ = lean_box(0); -v_isShared_8045_ = v_isSharedCheck_8056_; -goto v_resetjp_8043_; -} -v_resetjp_8043_: +uint8_t v___x_8028_; lean_object* v___x_8029_; lean_object* v___x_8030_; lean_object* v___f_8031_; lean_object* v___f_8032_; uint8_t v___x_8033_; +lean_del_object(v___x_7906_); +lean_del_object(v___x_7896_); +lean_dec(v_error_7891_); +v___x_8028_ = 1; +v___x_8029_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_8028_, v___x_7913_); +v___x_8030_ = l_Std_Http_Header_Name_contentLength; +v___f_8031_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_8032_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_8033_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_8031_, v___f_8032_, v___x_8030_, v___x_8029_); +if (v___x_8033_ == 0) { -lean_object* v___x_8046_; lean_object* v___x_8047_; lean_object* v___x_8048_; lean_object* v___x_8050_; -v___x_8046_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__1)); -v___x_8047_ = lean_array_push(v_events_8029_, v___x_8046_); -v___x_8048_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__2)); -if (v_isShared_8045_ == 0) +if (v___x_8027_ == 0) { -lean_ctor_set(v___x_8044_, 0, v___x_8048_); -v___x_8050_ = v___x_8044_; -goto v_reusejp_8049_; +v___y_7974_ = v___x_8029_; +v___y_7975_ = v___x_8028_; +v___y_7976_ = v___x_8027_; +goto v___jp_7973_; } else { -lean_object* v_reuseFailAlloc_8055_; -v_reuseFailAlloc_8055_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8055_, 0, v___x_8048_); -lean_ctor_set(v_reuseFailAlloc_8055_, 1, v_input_8037_); -lean_ctor_set(v_reuseFailAlloc_8055_, 2, v_messageHead_8038_); -lean_ctor_set(v_reuseFailAlloc_8055_, 3, v_messageCount_8039_); -lean_ctor_set(v_reuseFailAlloc_8055_, 4, v_bodyBytesRead_8040_); -lean_ctor_set(v_reuseFailAlloc_8055_, 5, v_headerBytesRead_8041_); -lean_ctor_set_uint8(v_reuseFailAlloc_8055_, sizeof(void*)*6, v_noMoreInput_8042_); -v___x_8050_ = v_reuseFailAlloc_8055_; -goto v_reusejp_8049_; -} -v_reusejp_8049_: -{ -lean_object* v___x_8051_; lean_object* v___x_8053_; -v___x_8051_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__3)); -if (v_isShared_8036_ == 0) -{ -lean_ctor_set(v___x_8035_, 4, v___x_8051_); -lean_ctor_set(v___x_8035_, 3, v___x_8047_); -lean_ctor_set(v___x_8035_, 0, v___x_8050_); -v___x_8053_ = v___x_8035_; -goto v_reusejp_8052_; -} -else -{ -lean_object* v_reuseFailAlloc_8054_; -v_reuseFailAlloc_8054_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8054_, 0, v___x_8050_); -lean_ctor_set(v_reuseFailAlloc_8054_, 1, v_writer_8027_); -lean_ctor_set(v_reuseFailAlloc_8054_, 2, v_config_8028_); -lean_ctor_set(v_reuseFailAlloc_8054_, 3, v___x_8047_); -lean_ctor_set(v_reuseFailAlloc_8054_, 4, v___x_8051_); -lean_ctor_set(v_reuseFailAlloc_8054_, 5, v_instant_8030_); -lean_ctor_set_uint8(v_reuseFailAlloc_8054_, sizeof(void*)*6, v_keepAlive_8031_); -lean_ctor_set_uint8(v_reuseFailAlloc_8054_, sizeof(void*)*6 + 1, v_forcedFlush_8032_); -lean_ctor_set_uint8(v_reuseFailAlloc_8054_, sizeof(void*)*6 + 2, v_pullBodyStalled_8033_); -v___x_8053_ = v_reuseFailAlloc_8054_; -goto v_reusejp_8052_; -} -v_reusejp_8052_: -{ -return v___x_8053_; -} -} -} +v___y_7951_ = v___x_8028_; +v___y_7952_ = v___x_8027_; +v___y_7953_ = v___x_8029_; +goto v___jp_7950_; } } else { -lean_object* v_reader_8060_; lean_object* v_writer_8061_; lean_object* v_config_8062_; lean_object* v_events_8063_; lean_object* v_error_8064_; lean_object* v_instant_8065_; uint8_t v_keepAlive_8066_; uint8_t v_forcedFlush_8067_; uint8_t v_pullBodyStalled_8068_; lean_object* v___x_8070_; uint8_t v_isShared_8071_; uint8_t v_isSharedCheck_8093_; -v_reader_8060_ = lean_ctor_get(v_fst_8016_, 0); -v_writer_8061_ = lean_ctor_get(v_fst_8016_, 1); -v_config_8062_ = lean_ctor_get(v_fst_8016_, 2); -v_events_8063_ = lean_ctor_get(v_fst_8016_, 3); -v_error_8064_ = lean_ctor_get(v_fst_8016_, 4); -v_instant_8065_ = lean_ctor_get(v_fst_8016_, 5); -v_keepAlive_8066_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6); -v_forcedFlush_8067_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8068_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 2); -v_isSharedCheck_8093_ = !lean_is_exclusive(v_fst_8016_); -if (v_isSharedCheck_8093_ == 0) +v___y_7974_ = v___x_8029_; +v___y_7975_ = v___x_8028_; +v___y_7976_ = v___x_8027_; +goto v___jp_7973_; +} +} +} +v___jp_7914_: { -v___x_8070_ = v_fst_8016_; -v_isShared_8071_ = v_isSharedCheck_8093_; -goto v_resetjp_8069_; +lean_object* v_message_7917_; lean_object* v___x_2466__overap_7918_; lean_object* v___x_7919_; +v_message_7917_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_7915_, v___x_7913_, v___y_7916_); +v___x_2466__overap_7918_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_7915_); +v___x_7919_ = lean_apply_2(v___x_2466__overap_7918_, v_outputData_7899_, v_message_7917_); +v_reader_7823_ = v_reader_7888_; +v_userData_7824_ = v_userData_7898_; +v_outputData_7825_ = v___x_7919_; +v_state_7826_ = v___x_7908_; +v_knownSize_7827_ = v_knownSize_7900_; +v_messageHead_7828_ = v_messageHead_7901_; +v_sentMessage_7829_ = v_sentMessage_7879_; +v_omitBody_7830_ = v_omitBody_7903_; +v_userDataBytes_7831_ = v_userDataBytes_7904_; +v_config_7832_ = v_config_7889_; +v_events_7833_ = v_events_7890_; +v_instant_7834_ = v_instant_7892_; +v_keepAlive_7835_ = v_sentMessage_7879_; +v_forcedFlush_7836_ = v_forcedFlush_7893_; +v_pullBodyStalled_7837_ = v_pullBodyStalled_7894_; +goto v___jp_7822_; +} +v___jp_7920_: +{ +lean_object* v___x_7925_; uint8_t v___x_7926_; +v___x_7925_ = lean_array_get_size(v___y_7924_); +v___x_7926_ = lean_nat_dec_lt(v___y_7923_, v___x_7925_); +if (v___x_7926_ == 0) +{ +lean_dec_ref(v___y_7924_); +lean_inc_ref(v___y_7922_); +v___y_7915_ = v___y_7921_; +v___y_7916_ = v___y_7922_; +goto v___jp_7914_; } else { -lean_inc(v_instant_8065_); -lean_inc(v_error_8064_); -lean_inc(v_events_8063_); -lean_inc(v_config_8062_); -lean_inc(v_writer_8061_); -lean_inc(v_reader_8060_); -lean_dec(v_fst_8016_); -v___x_8070_ = lean_box(0); -v_isShared_8071_ = v_isSharedCheck_8093_; -goto v_resetjp_8069_; -} -v_resetjp_8069_: +uint8_t v___x_7927_; +v___x_7927_ = lean_nat_dec_le(v___x_7925_, v___x_7925_); +if (v___x_7927_ == 0) { -lean_object* v_input_8072_; lean_object* v_messageCount_8073_; lean_object* v_bodyBytesRead_8074_; lean_object* v_headerBytesRead_8075_; uint8_t v_noMoreInput_8076_; lean_object* v___x_8078_; uint8_t v_isShared_8079_; uint8_t v_isSharedCheck_8090_; -v_input_8072_ = lean_ctor_get(v_reader_8060_, 1); -v_messageCount_8073_ = lean_ctor_get(v_reader_8060_, 3); -v_bodyBytesRead_8074_ = lean_ctor_get(v_reader_8060_, 4); -v_headerBytesRead_8075_ = lean_ctor_get(v_reader_8060_, 5); -v_noMoreInput_8076_ = lean_ctor_get_uint8(v_reader_8060_, sizeof(void*)*6); -v_isSharedCheck_8090_ = !lean_is_exclusive(v_reader_8060_); -if (v_isSharedCheck_8090_ == 0) +if (v___x_7926_ == 0) { -lean_object* v_unused_8091_; lean_object* v_unused_8092_; -v_unused_8091_ = lean_ctor_get(v_reader_8060_, 2); -lean_dec(v_unused_8091_); -v_unused_8092_ = lean_ctor_get(v_reader_8060_, 0); -lean_dec(v_unused_8092_); -v___x_8078_ = v_reader_8060_; -v_isShared_8079_ = v_isSharedCheck_8090_; -goto v_resetjp_8077_; +lean_dec_ref(v___y_7924_); +lean_inc_ref(v___y_7922_); +v___y_7915_ = v___y_7921_; +v___y_7916_ = v___y_7922_; +goto v___jp_7914_; } else { -lean_inc(v_headerBytesRead_8075_); -lean_inc(v_bodyBytesRead_8074_); -lean_inc(v_messageCount_8073_); -lean_inc(v_input_8072_); -lean_dec(v_reader_8060_); -v___x_8078_ = lean_box(0); -v_isShared_8079_ = v_isSharedCheck_8090_; -goto v_resetjp_8077_; +size_t v___x_7928_; size_t v___x_7929_; lean_object* v___x_7930_; +v___x_7928_ = ((size_t)0ULL); +v___x_7929_ = lean_usize_of_nat(v___x_7925_); +lean_inc_ref(v___y_7922_); +v___x_7930_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_7924_, v___x_7928_, v___x_7929_, v___y_7922_); +lean_dec_ref(v___y_7924_); +v___y_7915_ = v___y_7921_; +v___y_7916_ = v___x_7930_; +goto v___jp_7914_; } -v_resetjp_8077_: -{ -lean_object* v___x_8080_; lean_object* v___x_8081_; lean_object* v___x_8082_; lean_object* v___x_8084_; -v___x_8080_ = l_Std_Http_Headers_empty; -v___x_8081_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_8081_, 0, v_fst_8017_); -lean_ctor_set(v___x_8081_, 1, v___x_8080_); -lean_ctor_set_uint8(v___x_8081_, sizeof(void*)*2, v___x_8023_); -v___x_8082_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); -if (v_isShared_8079_ == 0) -{ -lean_ctor_set(v___x_8078_, 2, v___x_8081_); -lean_ctor_set(v___x_8078_, 0, v___x_8082_); -v___x_8084_ = v___x_8078_; -goto v_reusejp_8083_; } else { -lean_object* v_reuseFailAlloc_8089_; -v_reuseFailAlloc_8089_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8089_, 0, v___x_8082_); -lean_ctor_set(v_reuseFailAlloc_8089_, 1, v_input_8072_); -lean_ctor_set(v_reuseFailAlloc_8089_, 2, v___x_8081_); -lean_ctor_set(v_reuseFailAlloc_8089_, 3, v_messageCount_8073_); -lean_ctor_set(v_reuseFailAlloc_8089_, 4, v_bodyBytesRead_8074_); -lean_ctor_set(v_reuseFailAlloc_8089_, 5, v_headerBytesRead_8075_); -lean_ctor_set_uint8(v_reuseFailAlloc_8089_, sizeof(void*)*6, v_noMoreInput_8076_); -v___x_8084_ = v_reuseFailAlloc_8089_; -goto v_reusejp_8083_; +size_t v___x_7931_; size_t v___x_7932_; lean_object* v___x_7933_; +v___x_7931_ = ((size_t)0ULL); +v___x_7932_ = lean_usize_of_nat(v___x_7925_); +lean_inc_ref(v___y_7922_); +v___x_7933_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_7924_, v___x_7931_, v___x_7932_, v___y_7922_); +lean_dec_ref(v___y_7924_); +v___y_7915_ = v___y_7921_; +v___y_7916_ = v___x_7933_; +goto v___jp_7914_; } -v_reusejp_8083_: +} +} +v___jp_7934_: { -lean_object* v___x_8086_; -if (v_isShared_8071_ == 0) +lean_object* v_entries_7937_; lean_object* v___x_7938_; lean_object* v___x_7939_; lean_object* v___x_7940_; lean_object* v___x_7941_; uint8_t v___x_7942_; +v_entries_7937_ = lean_ctor_get(v___y_7936_, 0); +lean_inc_ref(v_entries_7937_); +lean_dec_ref(v___y_7936_); +v___x_7938_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_7939_ = lean_unsigned_to_nat(0u); +v___x_7940_ = lean_array_get_size(v_entries_7937_); +v___x_7941_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_7942_ = lean_nat_dec_lt(v___x_7939_, v___x_7940_); +if (v___x_7942_ == 0) { -lean_ctor_set(v___x_8070_, 0, v___x_8084_); -v___x_8086_ = v___x_8070_; -goto v_reusejp_8085_; +lean_dec_ref(v_entries_7937_); +v___y_7921_ = v___y_7935_; +v___y_7922_ = v___x_7938_; +v___y_7923_ = v___x_7939_; +v___y_7924_ = v___x_7941_; +goto v___jp_7920_; } else { -lean_object* v_reuseFailAlloc_8088_; -v_reuseFailAlloc_8088_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8088_, 0, v___x_8084_); -lean_ctor_set(v_reuseFailAlloc_8088_, 1, v_writer_8061_); -lean_ctor_set(v_reuseFailAlloc_8088_, 2, v_config_8062_); -lean_ctor_set(v_reuseFailAlloc_8088_, 3, v_events_8063_); -lean_ctor_set(v_reuseFailAlloc_8088_, 4, v_error_8064_); -lean_ctor_set(v_reuseFailAlloc_8088_, 5, v_instant_8065_); -lean_ctor_set_uint8(v_reuseFailAlloc_8088_, sizeof(void*)*6, v_keepAlive_8066_); -lean_ctor_set_uint8(v_reuseFailAlloc_8088_, sizeof(void*)*6 + 1, v_forcedFlush_8067_); -lean_ctor_set_uint8(v_reuseFailAlloc_8088_, sizeof(void*)*6 + 2, v_pullBodyStalled_8068_); -v___x_8086_ = v_reuseFailAlloc_8088_; -goto v_reusejp_8085_; -} -v_reusejp_8085_: +uint8_t v___x_7943_; +v___x_7943_ = lean_nat_dec_le(v___x_7940_, v___x_7940_); +if (v___x_7943_ == 0) { -lean_object* v___x_8087_; -v___x_8087_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8019_, v___x_8086_); -return v___x_8087_; +if (v___x_7942_ == 0) +{ +lean_dec_ref(v_entries_7937_); +v___y_7921_ = v___y_7935_; +v___y_7922_ = v___x_7938_; +v___y_7923_ = v___x_7939_; +v___y_7924_ = v___x_7941_; +goto v___jp_7920_; +} +else +{ +size_t v___x_7944_; size_t v___x_7945_; lean_object* v___x_7946_; +v___x_7944_ = ((size_t)0ULL); +v___x_7945_ = lean_usize_of_nat(v___x_7940_); +v___x_7946_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_7937_, v___x_7944_, v___x_7945_, v___x_7941_); +lean_dec_ref(v_entries_7937_); +v___y_7921_ = v___y_7935_; +v___y_7922_ = v___x_7938_; +v___y_7923_ = v___x_7939_; +v___y_7924_ = v___x_7946_; +goto v___jp_7920_; +} +} +else +{ +size_t v___x_7947_; size_t v___x_7948_; lean_object* v___x_7949_; +v___x_7947_ = ((size_t)0ULL); +v___x_7948_ = lean_usize_of_nat(v___x_7940_); +v___x_7949_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__7(v_entries_7937_, v___x_7947_, v___x_7948_, v___x_7941_); +lean_dec_ref(v_entries_7937_); +v___y_7921_ = v___y_7935_; +v___y_7922_ = v___x_7938_; +v___y_7923_ = v___x_7939_; +v___y_7924_ = v___x_7949_; +goto v___jp_7920_; +} +} +} +v___jp_7950_: +{ +lean_object* v___x_7954_; lean_object* v___f_7955_; lean_object* v___f_7956_; uint8_t v___x_7957_; +v___x_7954_ = l_Std_Http_Header_Name_transferEncoding; +v___f_7955_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__0)); +v___f_7956_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_hasSingleAcceptedHostHeader___closed__1)); +v___x_7957_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_7955_, v___f_7956_, v___x_7954_, v___y_7953_); +if (v___x_7957_ == 0) +{ +if (v___y_7952_ == 0) +{ +v___y_7935_ = v___y_7951_; +v___y_7936_ = v___y_7953_; +goto v___jp_7934_; +} +else +{ +v___y_7915_ = v___y_7951_; +v___y_7916_ = v___y_7953_; +goto v___jp_7914_; +} +} +else +{ +v___y_7935_ = v___y_7951_; +v___y_7936_ = v___y_7953_; +goto v___jp_7934_; +} +} +v___jp_7958_: +{ +lean_object* v___x_7964_; uint8_t v___x_7965_; +v___x_7964_ = lean_array_get_size(v___y_7963_); +v___x_7965_ = lean_nat_dec_lt(v___y_7962_, v___x_7964_); +if (v___x_7965_ == 0) +{ +lean_dec_ref(v___y_7963_); +lean_inc_ref(v___y_7960_); +v___y_7951_ = v___y_7959_; +v___y_7952_ = v___y_7961_; +v___y_7953_ = v___y_7960_; +goto v___jp_7950_; +} +else +{ +uint8_t v___x_7966_; +v___x_7966_ = lean_nat_dec_le(v___x_7964_, v___x_7964_); +if (v___x_7966_ == 0) +{ +if (v___x_7965_ == 0) +{ +lean_dec_ref(v___y_7963_); +lean_inc_ref(v___y_7960_); +v___y_7951_ = v___y_7959_; +v___y_7952_ = v___y_7961_; +v___y_7953_ = v___y_7960_; +goto v___jp_7950_; +} +else +{ +size_t v___x_7967_; size_t v___x_7968_; lean_object* v___x_7969_; +v___x_7967_ = ((size_t)0ULL); +v___x_7968_ = lean_usize_of_nat(v___x_7964_); +lean_inc_ref(v___y_7960_); +v___x_7969_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_7963_, v___x_7967_, v___x_7968_, v___y_7960_); +lean_dec_ref(v___y_7963_); +v___y_7951_ = v___y_7959_; +v___y_7952_ = v___y_7961_; +v___y_7953_ = v___x_7969_; +goto v___jp_7950_; +} +} +else +{ +size_t v___x_7970_; size_t v___x_7971_; lean_object* v___x_7972_; +v___x_7970_ = ((size_t)0ULL); +v___x_7971_ = lean_usize_of_nat(v___x_7964_); +lean_inc_ref(v___y_7960_); +v___x_7972_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__6(v___y_7963_, v___x_7970_, v___x_7971_, v___y_7960_); +lean_dec_ref(v___y_7963_); +v___y_7951_ = v___y_7959_; +v___y_7952_ = v___y_7961_; +v___y_7953_ = v___x_7972_; +goto v___jp_7950_; +} +} +} +v___jp_7973_: +{ +lean_object* v_entries_7977_; lean_object* v___x_7978_; lean_object* v___x_7979_; lean_object* v___x_7980_; lean_object* v___x_7981_; uint8_t v___x_7982_; +v_entries_7977_ = lean_ctor_get(v___y_7974_, 0); +lean_inc_ref(v_entries_7977_); +lean_dec_ref(v___y_7974_); +v___x_7978_ = lean_obj_once(&l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60, &l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60_once, _init_l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead___closed__60); +v___x_7979_ = lean_unsigned_to_nat(0u); +v___x_7980_ = lean_array_get_size(v_entries_7977_); +v___x_7981_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_normalizeFramingHeaders___closed__3)); +v___x_7982_ = lean_nat_dec_lt(v___x_7979_, v___x_7980_); +if (v___x_7982_ == 0) +{ +lean_dec_ref(v_entries_7977_); +v___y_7959_ = v___y_7975_; +v___y_7960_ = v___x_7978_; +v___y_7961_ = v___y_7976_; +v___y_7962_ = v___x_7979_; +v___y_7963_ = v___x_7981_; +goto v___jp_7958_; +} +else +{ +uint8_t v___x_7983_; +v___x_7983_ = lean_nat_dec_le(v___x_7980_, v___x_7980_); +if (v___x_7983_ == 0) +{ +if (v___x_7982_ == 0) +{ +lean_dec_ref(v_entries_7977_); +v___y_7959_ = v___y_7975_; +v___y_7960_ = v___x_7978_; +v___y_7961_ = v___y_7976_; +v___y_7962_ = v___x_7979_; +v___y_7963_ = v___x_7981_; +goto v___jp_7958_; +} +else +{ +size_t v___x_7984_; size_t v___x_7985_; lean_object* v___x_7986_; +v___x_7984_ = ((size_t)0ULL); +v___x_7985_ = lean_usize_of_nat(v___x_7980_); +v___x_7986_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_7977_, v___x_7984_, v___x_7985_, v___x_7981_); +lean_dec_ref(v_entries_7977_); +v___y_7959_ = v___y_7975_; +v___y_7960_ = v___x_7978_; +v___y_7961_ = v___y_7976_; +v___y_7962_ = v___x_7979_; +v___y_7963_ = v___x_7986_; +goto v___jp_7958_; +} +} +else +{ +size_t v___x_7987_; size_t v___x_7988_; lean_object* v___x_7989_; +v___x_7987_ = ((size_t)0ULL); +v___x_7988_ = lean_usize_of_nat(v___x_7980_); +v___x_7989_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__8(v_entries_7977_, v___x_7987_, v___x_7988_, v___x_7981_); +lean_dec_ref(v_entries_7977_); +v___y_7959_ = v___y_7975_; +v___y_7960_ = v___x_7978_; +v___y_7961_ = v___y_7976_; +v___y_7962_ = v___x_7979_; +v___y_7963_ = v___x_7989_; +goto v___jp_7958_; +} +} +} +v___jp_7990_: +{ +lean_object* v_headerSize_7997_; lean_object* v_machine_7998_; lean_object* v_machine_7999_; lean_object* v_reader_8000_; lean_object* v_state_8001_; +v_headerSize_7997_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_7994_, v___x_7913_, v___y_7991_); +v_machine_7998_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming___redArg(v___y_7995_, v_headerSize_7997_, v___y_7996_); +v_machine_7999_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v_dir_7793_, v_machine_7998_, v___x_7913_); +lean_dec_ref(v___x_7913_); +v_reader_8000_ = lean_ctor_get(v_machine_7999_, 0); +lean_inc_ref(v_reader_8000_); +v_state_8001_ = lean_ctor_get(v_reader_8000_, 0); +lean_inc(v_state_8001_); +lean_dec_ref(v_reader_8000_); +if (lean_obj_tag(v_state_8001_) == 7) +{ +lean_dec_ref(v_state_8001_); +v___y_7859_ = v___y_7993_; +v___y_7860_ = v_machine_7999_; +v___y_7861_ = v___y_7992_; +goto v___jp_7858_; +} +else +{ +lean_dec(v_state_8001_); +v___y_7859_ = v___y_7993_; +v___y_7860_ = v_machine_7999_; +v___y_7861_ = v___y_7991_; +goto v___jp_7858_; +} +} +v___jp_8002_: +{ +uint8_t v___x_8006_; lean_object* v___x_8007_; lean_object* v_indexes_8008_; lean_object* v___x_8010_; +v___x_8006_ = 1; +v___x_8007_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_8006_, v___x_7913_); +v_indexes_8008_ = lean_ctor_get(v___x_8007_, 1); +lean_inc_ref(v_indexes_8008_); +lean_dec_ref(v___x_8007_); +lean_inc_ref(v___x_7913_); +if (v_isShared_7907_ == 0) +{ +lean_ctor_set(v___x_7906_, 4, v___x_7913_); +lean_ctor_set(v___x_7906_, 2, v___x_7908_); +v___x_8010_ = v___x_7906_; +goto v_reusejp_8009_; +} +else +{ +lean_object* v_reuseFailAlloc_8018_; +v_reuseFailAlloc_8018_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8018_, 0, v_userData_7898_); +lean_ctor_set(v_reuseFailAlloc_8018_, 1, v_outputData_7899_); +lean_ctor_set(v_reuseFailAlloc_8018_, 2, v___x_7908_); +lean_ctor_set(v_reuseFailAlloc_8018_, 3, v_knownSize_7900_); +lean_ctor_set(v_reuseFailAlloc_8018_, 4, v___x_7913_); +lean_ctor_set(v_reuseFailAlloc_8018_, 5, v_userDataBytes_7904_); +lean_ctor_set_uint8(v_reuseFailAlloc_8018_, sizeof(void*)*6 + 1, v_userClosedBody_7902_); +lean_ctor_set_uint8(v_reuseFailAlloc_8018_, sizeof(void*)*6 + 2, v_omitBody_7903_); +v___x_8010_ = v_reuseFailAlloc_8018_; +goto v_reusejp_8009_; +} +v_reusejp_8009_: +{ +lean_object* v_machine_8012_; +lean_ctor_set_uint8(v___x_8010_, sizeof(void*)*6, v___y_8004_); +if (v_isShared_7897_ == 0) +{ +lean_ctor_set(v___x_7896_, 1, v___x_8010_); +v_machine_8012_ = v___x_7896_; +goto v_reusejp_8011_; +} +else +{ +lean_object* v_reuseFailAlloc_8017_; +v_reuseFailAlloc_8017_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8017_, 0, v_reader_7888_); +lean_ctor_set(v_reuseFailAlloc_8017_, 1, v___x_8010_); +lean_ctor_set(v_reuseFailAlloc_8017_, 2, v_config_7889_); +lean_ctor_set(v_reuseFailAlloc_8017_, 3, v_events_7890_); +lean_ctor_set(v_reuseFailAlloc_8017_, 4, v_error_7891_); +lean_ctor_set(v_reuseFailAlloc_8017_, 5, v_instant_7892_); +lean_ctor_set_uint8(v_reuseFailAlloc_8017_, sizeof(void*)*6 + 1, v_forcedFlush_7893_); +lean_ctor_set_uint8(v_reuseFailAlloc_8017_, sizeof(void*)*6 + 2, v_pullBodyStalled_7894_); +v_machine_8012_ = v_reuseFailAlloc_8017_; +goto v_reusejp_8011_; +} +v_reusejp_8011_: +{ +lean_object* v___x_8013_; uint8_t v___x_8014_; +lean_ctor_set_uint8(v_machine_8012_, sizeof(void*)*6, v_sentMessage_7879_); +v___x_8013_ = l_Std_Http_Header_Name_contentLength; +v___x_8014_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_8008_, v___x_8013_); +if (v___x_8014_ == 0) +{ +lean_object* v___x_8015_; uint8_t v___x_8016_; +v___x_8015_ = l_Std_Http_Header_Name_transferEncoding; +v___x_8016_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_checkReceivingMessageHead_spec__2___redArg(v_indexes_8008_, v___x_8015_); +lean_dec_ref(v_indexes_8008_); +v___y_7991_ = v___y_8003_; +v___y_7992_ = v___y_8004_; +v___y_7993_ = v___y_8005_; +v___y_7994_ = v___x_8006_; +v___y_7995_ = v_machine_8012_; +v___y_7996_ = v___x_8016_; +goto v___jp_7990_; +} +else +{ +lean_dec_ref(v_indexes_8008_); +v___y_7991_ = v___y_8003_; +v___y_7992_ = v___y_8004_; +v___y_7993_ = v___y_8005_; +v___y_7994_ = v___x_8006_; +v___y_7995_ = v_machine_8012_; +v___y_7996_ = v___x_8014_; +goto v___jp_7990_; +} +} +} +} +v___jp_8019_: +{ +lean_object* v_state_8022_; +v_state_8022_ = lean_ctor_get(v_reader_7888_, 0); +if (lean_obj_tag(v_state_8022_) == 7) +{ +v___y_8003_ = v___y_8021_; +v___y_8004_ = v___y_8020_; +v___y_8005_ = v___y_8020_; +goto v___jp_8002_; +} +else +{ +v___y_8003_ = v___y_8021_; +v___y_8004_ = v___y_8020_; +v___y_8005_ = v___y_8021_; +goto v___jp_8002_; +} } } } @@ -29148,633 +28535,4262 @@ return v___x_8087_; } else { -lean_object* v_reader_8094_; lean_object* v_writer_8095_; lean_object* v_config_8096_; lean_object* v_events_8097_; lean_object* v_error_8098_; lean_object* v_instant_8099_; uint8_t v_keepAlive_8100_; uint8_t v_forcedFlush_8101_; uint8_t v_pullBodyStalled_8102_; lean_object* v___x_8104_; uint8_t v_isShared_8105_; uint8_t v_isSharedCheck_8127_; -lean_dec(v_snd_8018_); -v_reader_8094_ = lean_ctor_get(v_fst_8016_, 0); -v_writer_8095_ = lean_ctor_get(v_fst_8016_, 1); -v_config_8096_ = lean_ctor_get(v_fst_8016_, 2); -v_events_8097_ = lean_ctor_get(v_fst_8016_, 3); -v_error_8098_ = lean_ctor_get(v_fst_8016_, 4); -v_instant_8099_ = lean_ctor_get(v_fst_8016_, 5); -v_keepAlive_8100_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6); -v_forcedFlush_8101_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8102_ = lean_ctor_get_uint8(v_fst_8016_, sizeof(void*)*6 + 2); -v_isSharedCheck_8127_ = !lean_is_exclusive(v_fst_8016_); -if (v_isSharedCheck_8127_ == 0) -{ -v___x_8104_ = v_fst_8016_; -v_isShared_8105_ = v_isSharedCheck_8127_; -goto v_resetjp_8103_; +lean_object* v_reader_8038_; lean_object* v_config_8039_; lean_object* v_events_8040_; lean_object* v_instant_8041_; uint8_t v_keepAlive_8042_; uint8_t v_forcedFlush_8043_; uint8_t v_pullBodyStalled_8044_; +v_reader_8038_ = lean_ctor_get(v_machine_7794_, 0); +lean_inc_ref(v_reader_8038_); +v_config_8039_ = lean_ctor_get(v_machine_7794_, 2); +lean_inc_ref(v_config_8039_); +v_events_8040_ = lean_ctor_get(v_machine_7794_, 3); +lean_inc_ref(v_events_8040_); +v_instant_8041_ = lean_ctor_get(v_machine_7794_, 5); +lean_inc(v_instant_8041_); +v_keepAlive_8042_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6); +v_forcedFlush_8043_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8044_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 2); +lean_dec_ref(v_machine_7794_); +v_reader_7797_ = v_reader_8038_; +v_writer_7798_ = v_writer_7878_; +v_config_7799_ = v_config_8039_; +v_events_7800_ = v_events_8040_; +v_instant_7801_ = v_instant_8041_; +v_keepAlive_7802_ = v_keepAlive_8042_; +v_forcedFlush_7803_ = v_forcedFlush_8043_; +v_pullBodyStalled_7804_ = v_pullBodyStalled_8044_; +goto v___jp_7796_; +} } else { -lean_inc(v_instant_8099_); -lean_inc(v_error_8098_); -lean_inc(v_events_8097_); -lean_inc(v_config_8096_); -lean_inc(v_writer_8095_); -lean_inc(v_reader_8094_); -lean_dec(v_fst_8016_); -v___x_8104_ = lean_box(0); -v_isShared_8105_ = v_isSharedCheck_8127_; -goto v_resetjp_8103_; +lean_object* v_reader_8045_; lean_object* v_writer_8046_; lean_object* v_config_8047_; lean_object* v_events_8048_; lean_object* v_instant_8049_; uint8_t v_keepAlive_8050_; uint8_t v_forcedFlush_8051_; uint8_t v_pullBodyStalled_8052_; +v_reader_8045_ = lean_ctor_get(v_machine_7794_, 0); +lean_inc_ref(v_reader_8045_); +v_writer_8046_ = lean_ctor_get(v_machine_7794_, 1); +lean_inc_ref(v_writer_8046_); +v_config_8047_ = lean_ctor_get(v_machine_7794_, 2); +lean_inc_ref(v_config_8047_); +v_events_8048_ = lean_ctor_get(v_machine_7794_, 3); +lean_inc_ref(v_events_8048_); +v_instant_8049_ = lean_ctor_get(v_machine_7794_, 5); +lean_inc(v_instant_8049_); +v_keepAlive_8050_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6); +v_forcedFlush_8051_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8052_ = lean_ctor_get_uint8(v_machine_7794_, sizeof(void*)*6 + 2); +lean_dec_ref(v_machine_7794_); +v_reader_7797_ = v_reader_8045_; +v_writer_7798_ = v_writer_8046_; +v_config_7799_ = v_config_8047_; +v_events_7800_ = v_events_8048_; +v_instant_7801_ = v_instant_8049_; +v_keepAlive_7802_ = v_keepAlive_8050_; +v_forcedFlush_7803_ = v_forcedFlush_8051_; +v_pullBodyStalled_7804_ = v_pullBodyStalled_8052_; +goto v___jp_7796_; } -v_resetjp_8103_: +v___jp_7796_: { -lean_object* v_input_8106_; lean_object* v_messageCount_8107_; lean_object* v_bodyBytesRead_8108_; lean_object* v_headerBytesRead_8109_; uint8_t v_noMoreInput_8110_; lean_object* v___x_8112_; uint8_t v_isShared_8113_; uint8_t v_isSharedCheck_8124_; -v_input_8106_ = lean_ctor_get(v_reader_8094_, 1); -v_messageCount_8107_ = lean_ctor_get(v_reader_8094_, 3); -v_bodyBytesRead_8108_ = lean_ctor_get(v_reader_8094_, 4); -v_headerBytesRead_8109_ = lean_ctor_get(v_reader_8094_, 5); -v_noMoreInput_8110_ = lean_ctor_get_uint8(v_reader_8094_, sizeof(void*)*6); -v_isSharedCheck_8124_ = !lean_is_exclusive(v_reader_8094_); -if (v_isSharedCheck_8124_ == 0) +lean_object* v_input_7805_; lean_object* v_messageHead_7806_; lean_object* v_messageCount_7807_; lean_object* v_bodyBytesRead_7808_; lean_object* v_headerBytesRead_7809_; uint8_t v_noMoreInput_7810_; lean_object* v___x_7812_; uint8_t v_isShared_7813_; uint8_t v_isSharedCheck_7820_; +v_input_7805_ = lean_ctor_get(v_reader_7797_, 1); +v_messageHead_7806_ = lean_ctor_get(v_reader_7797_, 2); +v_messageCount_7807_ = lean_ctor_get(v_reader_7797_, 3); +v_bodyBytesRead_7808_ = lean_ctor_get(v_reader_7797_, 4); +v_headerBytesRead_7809_ = lean_ctor_get(v_reader_7797_, 5); +v_noMoreInput_7810_ = lean_ctor_get_uint8(v_reader_7797_, sizeof(void*)*6); +v_isSharedCheck_7820_ = !lean_is_exclusive(v_reader_7797_); +if (v_isSharedCheck_7820_ == 0) { -lean_object* v_unused_8125_; lean_object* v_unused_8126_; -v_unused_8125_ = lean_ctor_get(v_reader_8094_, 2); -lean_dec(v_unused_8125_); -v_unused_8126_ = lean_ctor_get(v_reader_8094_, 0); -lean_dec(v_unused_8126_); -v___x_8112_ = v_reader_8094_; -v_isShared_8113_ = v_isSharedCheck_8124_; -goto v_resetjp_8111_; +lean_object* v_unused_7821_; +v_unused_7821_ = lean_ctor_get(v_reader_7797_, 0); +lean_dec(v_unused_7821_); +v___x_7812_ = v_reader_7797_; +v_isShared_7813_ = v_isSharedCheck_7820_; +goto v_resetjp_7811_; } else { -lean_inc(v_headerBytesRead_8109_); -lean_inc(v_bodyBytesRead_8108_); -lean_inc(v_messageCount_8107_); -lean_inc(v_input_8106_); -lean_dec(v_reader_8094_); -v___x_8112_ = lean_box(0); -v_isShared_8113_ = v_isSharedCheck_8124_; -goto v_resetjp_8111_; +lean_inc(v_headerBytesRead_7809_); +lean_inc(v_bodyBytesRead_7808_); +lean_inc(v_messageCount_7807_); +lean_inc(v_messageHead_7806_); +lean_inc(v_input_7805_); +lean_dec(v_reader_7797_); +v___x_7812_ = lean_box(0); +v_isShared_7813_ = v_isSharedCheck_7820_; +goto v_resetjp_7811_; } -v_resetjp_8111_: +v_resetjp_7811_: { -lean_object* v___x_8114_; lean_object* v___x_8115_; lean_object* v___x_8116_; lean_object* v___x_8118_; -v___x_8114_ = l_Std_Http_Headers_empty; -v___x_8115_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_8115_, 0, v_fst_8017_); -lean_ctor_set(v___x_8115_, 1, v___x_8114_); -lean_ctor_set_uint8(v___x_8115_, sizeof(void*)*2, v___x_8020_); -v___x_8116_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); -if (v_isShared_8113_ == 0) +lean_object* v___x_7814_; lean_object* v___x_7816_; +v___x_7814_ = lean_box(6); +if (v_isShared_7813_ == 0) { -lean_ctor_set(v___x_8112_, 2, v___x_8115_); -lean_ctor_set(v___x_8112_, 0, v___x_8116_); -v___x_8118_ = v___x_8112_; -goto v_reusejp_8117_; +lean_ctor_set(v___x_7812_, 0, v___x_7814_); +v___x_7816_ = v___x_7812_; +goto v_reusejp_7815_; } else { -lean_object* v_reuseFailAlloc_8123_; -v_reuseFailAlloc_8123_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8123_, 0, v___x_8116_); -lean_ctor_set(v_reuseFailAlloc_8123_, 1, v_input_8106_); -lean_ctor_set(v_reuseFailAlloc_8123_, 2, v___x_8115_); -lean_ctor_set(v_reuseFailAlloc_8123_, 3, v_messageCount_8107_); -lean_ctor_set(v_reuseFailAlloc_8123_, 4, v_bodyBytesRead_8108_); -lean_ctor_set(v_reuseFailAlloc_8123_, 5, v_headerBytesRead_8109_); -lean_ctor_set_uint8(v_reuseFailAlloc_8123_, sizeof(void*)*6, v_noMoreInput_8110_); -v___x_8118_ = v_reuseFailAlloc_8123_; -goto v_reusejp_8117_; +lean_object* v_reuseFailAlloc_7819_; +v_reuseFailAlloc_7819_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_7819_, 0, v___x_7814_); +lean_ctor_set(v_reuseFailAlloc_7819_, 1, v_input_7805_); +lean_ctor_set(v_reuseFailAlloc_7819_, 2, v_messageHead_7806_); +lean_ctor_set(v_reuseFailAlloc_7819_, 3, v_messageCount_7807_); +lean_ctor_set(v_reuseFailAlloc_7819_, 4, v_bodyBytesRead_7808_); +lean_ctor_set(v_reuseFailAlloc_7819_, 5, v_headerBytesRead_7809_); +lean_ctor_set_uint8(v_reuseFailAlloc_7819_, sizeof(void*)*6, v_noMoreInput_7810_); +v___x_7816_ = v_reuseFailAlloc_7819_; +goto v_reusejp_7815_; } -v_reusejp_8117_: +v_reusejp_7815_: { -lean_object* v___x_8120_; -if (v_isShared_8105_ == 0) +lean_object* v___x_7817_; lean_object* v___x_7818_; +v___x_7817_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_7817_, 0, v_error_7795_); +v___x_7818_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_7818_, 0, v___x_7816_); +lean_ctor_set(v___x_7818_, 1, v_writer_7798_); +lean_ctor_set(v___x_7818_, 2, v_config_7799_); +lean_ctor_set(v___x_7818_, 3, v_events_7800_); +lean_ctor_set(v___x_7818_, 4, v___x_7817_); +lean_ctor_set(v___x_7818_, 5, v_instant_7801_); +lean_ctor_set_uint8(v___x_7818_, sizeof(void*)*6, v_keepAlive_7802_); +lean_ctor_set_uint8(v___x_7818_, sizeof(void*)*6 + 1, v_forcedFlush_7803_); +lean_ctor_set_uint8(v___x_7818_, sizeof(void*)*6 + 2, v_pullBodyStalled_7804_); +return v___x_7818_; +} +} +} +v___jp_7822_: { -lean_ctor_set(v___x_8104_, 0, v___x_8118_); -v___x_8120_ = v___x_8104_; -goto v_reusejp_8119_; +uint8_t v___x_7838_; lean_object* v___x_7839_; +v___x_7838_ = 1; +v___x_7839_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_7839_, 0, v_userData_7824_); +lean_ctor_set(v___x_7839_, 1, v_outputData_7825_); +lean_ctor_set(v___x_7839_, 2, v_state_7826_); +lean_ctor_set(v___x_7839_, 3, v_knownSize_7827_); +lean_ctor_set(v___x_7839_, 4, v_messageHead_7828_); +lean_ctor_set(v___x_7839_, 5, v_userDataBytes_7831_); +lean_ctor_set_uint8(v___x_7839_, sizeof(void*)*6, v_sentMessage_7829_); +lean_ctor_set_uint8(v___x_7839_, sizeof(void*)*6 + 1, v___x_7838_); +lean_ctor_set_uint8(v___x_7839_, sizeof(void*)*6 + 2, v_omitBody_7830_); +v_reader_7797_ = v_reader_7823_; +v_writer_7798_ = v___x_7839_; +v_config_7799_ = v_config_7832_; +v_events_7800_ = v_events_7833_; +v_instant_7801_ = v_instant_7834_; +v_keepAlive_7802_ = v_keepAlive_7835_; +v_forcedFlush_7803_ = v_forcedFlush_7836_; +v_pullBodyStalled_7804_ = v_pullBodyStalled_7837_; +goto v___jp_7796_; +} +v___jp_7840_: +{ +lean_object* v_writer_7842_; lean_object* v_reader_7843_; lean_object* v_config_7844_; lean_object* v_events_7845_; lean_object* v_instant_7846_; uint8_t v_keepAlive_7847_; uint8_t v_forcedFlush_7848_; uint8_t v_pullBodyStalled_7849_; lean_object* v_userData_7850_; lean_object* v_outputData_7851_; lean_object* v_knownSize_7852_; lean_object* v_messageHead_7853_; uint8_t v_sentMessage_7854_; uint8_t v_omitBody_7855_; lean_object* v_userDataBytes_7856_; lean_object* v___x_7857_; +v_writer_7842_ = lean_ctor_get(v___y_7841_, 1); +lean_inc_ref(v_writer_7842_); +v_reader_7843_ = lean_ctor_get(v___y_7841_, 0); +lean_inc_ref(v_reader_7843_); +v_config_7844_ = lean_ctor_get(v___y_7841_, 2); +lean_inc_ref(v_config_7844_); +v_events_7845_ = lean_ctor_get(v___y_7841_, 3); +lean_inc_ref(v_events_7845_); +v_instant_7846_ = lean_ctor_get(v___y_7841_, 5); +lean_inc(v_instant_7846_); +v_keepAlive_7847_ = lean_ctor_get_uint8(v___y_7841_, sizeof(void*)*6); +v_forcedFlush_7848_ = lean_ctor_get_uint8(v___y_7841_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7849_ = lean_ctor_get_uint8(v___y_7841_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_7841_); +v_userData_7850_ = lean_ctor_get(v_writer_7842_, 0); +lean_inc_ref(v_userData_7850_); +v_outputData_7851_ = lean_ctor_get(v_writer_7842_, 1); +lean_inc_ref(v_outputData_7851_); +v_knownSize_7852_ = lean_ctor_get(v_writer_7842_, 3); +lean_inc(v_knownSize_7852_); +v_messageHead_7853_ = lean_ctor_get(v_writer_7842_, 4); +lean_inc(v_messageHead_7853_); +v_sentMessage_7854_ = lean_ctor_get_uint8(v_writer_7842_, sizeof(void*)*6); +v_omitBody_7855_ = lean_ctor_get_uint8(v_writer_7842_, sizeof(void*)*6 + 2); +v_userDataBytes_7856_ = lean_ctor_get(v_writer_7842_, 5); +lean_inc(v_userDataBytes_7856_); +lean_dec_ref(v_writer_7842_); +v___x_7857_ = lean_box(2); +v_reader_7823_ = v_reader_7843_; +v_userData_7824_ = v_userData_7850_; +v_outputData_7825_ = v_outputData_7851_; +v_state_7826_ = v___x_7857_; +v_knownSize_7827_ = v_knownSize_7852_; +v_messageHead_7828_ = v_messageHead_7853_; +v_sentMessage_7829_ = v_sentMessage_7854_; +v_omitBody_7830_ = v_omitBody_7855_; +v_userDataBytes_7831_ = v_userDataBytes_7856_; +v_config_7832_ = v_config_7844_; +v_events_7833_ = v_events_7845_; +v_instant_7834_ = v_instant_7846_; +v_keepAlive_7835_ = v_keepAlive_7847_; +v_forcedFlush_7836_ = v_forcedFlush_7848_; +v_pullBodyStalled_7837_ = v_pullBodyStalled_7849_; +goto v___jp_7822_; +} +v___jp_7858_: +{ +if (v___y_7861_ == 0) +{ +v___y_7841_ = v___y_7860_; +goto v___jp_7840_; } else { -lean_object* v_reuseFailAlloc_8122_; -v_reuseFailAlloc_8122_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8122_, 0, v___x_8118_); -lean_ctor_set(v_reuseFailAlloc_8122_, 1, v_writer_8095_); -lean_ctor_set(v_reuseFailAlloc_8122_, 2, v_config_8096_); -lean_ctor_set(v_reuseFailAlloc_8122_, 3, v_events_8097_); -lean_ctor_set(v_reuseFailAlloc_8122_, 4, v_error_8098_); -lean_ctor_set(v_reuseFailAlloc_8122_, 5, v_instant_8099_); -lean_ctor_set_uint8(v_reuseFailAlloc_8122_, sizeof(void*)*6, v_keepAlive_8100_); -lean_ctor_set_uint8(v_reuseFailAlloc_8122_, sizeof(void*)*6 + 1, v_forcedFlush_8101_); -lean_ctor_set_uint8(v_reuseFailAlloc_8122_, sizeof(void*)*6 + 2, v_pullBodyStalled_8102_); -v___x_8120_ = v_reuseFailAlloc_8122_; -goto v_reusejp_8119_; -} -v_reusejp_8119_: +if (v___y_7859_ == 0) { -lean_object* v___x_8121_; -v___x_8121_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8019_, v___x_8120_); -return v___x_8121_; +lean_object* v_writer_7862_; lean_object* v_reader_7863_; lean_object* v_config_7864_; lean_object* v_events_7865_; lean_object* v_instant_7866_; uint8_t v_keepAlive_7867_; uint8_t v_forcedFlush_7868_; uint8_t v_pullBodyStalled_7869_; lean_object* v_userData_7870_; lean_object* v_outputData_7871_; lean_object* v_state_7872_; lean_object* v_knownSize_7873_; lean_object* v_messageHead_7874_; uint8_t v_sentMessage_7875_; uint8_t v_omitBody_7876_; lean_object* v_userDataBytes_7877_; +v_writer_7862_ = lean_ctor_get(v___y_7860_, 1); +lean_inc_ref(v_writer_7862_); +v_reader_7863_ = lean_ctor_get(v___y_7860_, 0); +lean_inc_ref(v_reader_7863_); +v_config_7864_ = lean_ctor_get(v___y_7860_, 2); +lean_inc_ref(v_config_7864_); +v_events_7865_ = lean_ctor_get(v___y_7860_, 3); +lean_inc_ref(v_events_7865_); +v_instant_7866_ = lean_ctor_get(v___y_7860_, 5); +lean_inc(v_instant_7866_); +v_keepAlive_7867_ = lean_ctor_get_uint8(v___y_7860_, sizeof(void*)*6); +v_forcedFlush_7868_ = lean_ctor_get_uint8(v___y_7860_, sizeof(void*)*6 + 1); +v_pullBodyStalled_7869_ = lean_ctor_get_uint8(v___y_7860_, sizeof(void*)*6 + 2); +lean_dec_ref(v___y_7860_); +v_userData_7870_ = lean_ctor_get(v_writer_7862_, 0); +lean_inc_ref(v_userData_7870_); +v_outputData_7871_ = lean_ctor_get(v_writer_7862_, 1); +lean_inc_ref(v_outputData_7871_); +v_state_7872_ = lean_ctor_get(v_writer_7862_, 2); +lean_inc(v_state_7872_); +v_knownSize_7873_ = lean_ctor_get(v_writer_7862_, 3); +lean_inc(v_knownSize_7873_); +v_messageHead_7874_ = lean_ctor_get(v_writer_7862_, 4); +lean_inc(v_messageHead_7874_); +v_sentMessage_7875_ = lean_ctor_get_uint8(v_writer_7862_, sizeof(void*)*6); +v_omitBody_7876_ = lean_ctor_get_uint8(v_writer_7862_, sizeof(void*)*6 + 2); +v_userDataBytes_7877_ = lean_ctor_get(v_writer_7862_, 5); +lean_inc(v_userDataBytes_7877_); +lean_dec_ref(v_writer_7862_); +v_reader_7823_ = v_reader_7863_; +v_userData_7824_ = v_userData_7870_; +v_outputData_7825_ = v_outputData_7871_; +v_state_7826_ = v_state_7872_; +v_knownSize_7827_ = v_knownSize_7873_; +v_messageHead_7828_ = v_messageHead_7874_; +v_sentMessage_7829_ = v_sentMessage_7875_; +v_omitBody_7830_ = v_omitBody_7876_; +v_userDataBytes_7831_ = v_userDataBytes_7877_; +v_config_7832_ = v_config_7864_; +v_events_7833_ = v_events_7865_; +v_instant_7834_ = v_instant_7866_; +v_keepAlive_7835_ = v_keepAlive_7867_; +v_forcedFlush_7836_ = v_forcedFlush_7868_; +v_pullBodyStalled_7837_ = v_pullBodyStalled_7869_; +goto v___jp_7822_; +} +else +{ +v___y_7841_ = v___y_7860_; +goto v___jp_7840_; } } } } } -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(uint8_t v_dir_8128_, lean_object* v_machine_8129_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed___boxed(lean_object* v_dir_8053_, lean_object* v_machine_8054_, lean_object* v_error_8055_){ _start: { -lean_object* v_reader_8130_; lean_object* v_writer_8131_; lean_object* v_config_8132_; lean_object* v_events_8133_; lean_object* v_error_8134_; lean_object* v_instant_8135_; uint8_t v_keepAlive_8136_; uint8_t v_forcedFlush_8137_; uint8_t v_pullBodyStalled_8138_; lean_object* v_input_8139_; lean_object* v_messageHead_8140_; lean_object* v_messageCount_8141_; lean_object* v_bodyBytesRead_8142_; lean_object* v_headerBytesRead_8143_; uint8_t v_noMoreInput_8144_; -v_reader_8130_ = lean_ctor_get(v_machine_8129_, 0); -lean_inc_ref(v_reader_8130_); -v_writer_8131_ = lean_ctor_get(v_machine_8129_, 1); -v_config_8132_ = lean_ctor_get(v_machine_8129_, 2); -v_events_8133_ = lean_ctor_get(v_machine_8129_, 3); -v_error_8134_ = lean_ctor_get(v_machine_8129_, 4); -v_instant_8135_ = lean_ctor_get(v_machine_8129_, 5); -v_keepAlive_8136_ = lean_ctor_get_uint8(v_machine_8129_, sizeof(void*)*6); -v_forcedFlush_8137_ = lean_ctor_get_uint8(v_machine_8129_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8138_ = lean_ctor_get_uint8(v_machine_8129_, sizeof(void*)*6 + 2); -v_input_8139_ = lean_ctor_get(v_reader_8130_, 1); -v_messageHead_8140_ = lean_ctor_get(v_reader_8130_, 2); -v_messageCount_8141_ = lean_ctor_get(v_reader_8130_, 3); -v_bodyBytesRead_8142_ = lean_ctor_get(v_reader_8130_, 4); -v_headerBytesRead_8143_ = lean_ctor_get(v_reader_8130_, 5); -v_noMoreInput_8144_ = lean_ctor_get_uint8(v_reader_8130_, sizeof(void*)*6); -if (v_noMoreInput_8144_ == 0) -{ -goto v___jp_8145_; -} -else -{ -lean_object* v_array_8167_; lean_object* v_idx_8168_; lean_object* v___x_8169_; uint8_t v___x_8170_; -v_array_8167_ = lean_ctor_get(v_input_8139_, 0); -v_idx_8168_ = lean_ctor_get(v_input_8139_, 1); -v___x_8169_ = lean_byte_array_size(v_array_8167_); -v___x_8170_ = lean_nat_dec_le(v___x_8169_, v_idx_8168_); -if (v___x_8170_ == 0) -{ -goto v___jp_8145_; -} -else -{ -lean_object* v___x_8172_; uint8_t v_isShared_8173_; uint8_t v_isSharedCheck_8191_; -lean_inc(v_headerBytesRead_8143_); -lean_inc(v_bodyBytesRead_8142_); -lean_inc(v_messageCount_8141_); -lean_inc(v_messageHead_8140_); -lean_inc_ref(v_input_8139_); -lean_inc(v_instant_8135_); -lean_inc(v_error_8134_); -lean_inc_ref(v_events_8133_); -lean_inc_ref(v_config_8132_); -lean_inc_ref(v_writer_8131_); -v_isSharedCheck_8191_ = !lean_is_exclusive(v_machine_8129_); -if (v_isSharedCheck_8191_ == 0) -{ -lean_object* v_unused_8192_; lean_object* v_unused_8193_; lean_object* v_unused_8194_; lean_object* v_unused_8195_; lean_object* v_unused_8196_; lean_object* v_unused_8197_; -v_unused_8192_ = lean_ctor_get(v_machine_8129_, 5); -lean_dec(v_unused_8192_); -v_unused_8193_ = lean_ctor_get(v_machine_8129_, 4); -lean_dec(v_unused_8193_); -v_unused_8194_ = lean_ctor_get(v_machine_8129_, 3); -lean_dec(v_unused_8194_); -v_unused_8195_ = lean_ctor_get(v_machine_8129_, 2); -lean_dec(v_unused_8195_); -v_unused_8196_ = lean_ctor_get(v_machine_8129_, 1); -lean_dec(v_unused_8196_); -v_unused_8197_ = lean_ctor_get(v_machine_8129_, 0); -lean_dec(v_unused_8197_); -v___x_8172_ = v_machine_8129_; -v_isShared_8173_ = v_isSharedCheck_8191_; -goto v_resetjp_8171_; -} -else -{ -lean_dec(v_machine_8129_); -v___x_8172_ = lean_box(0); -v_isShared_8173_ = v_isSharedCheck_8191_; -goto v_resetjp_8171_; -} -v_resetjp_8171_: -{ -lean_object* v___x_8175_; uint8_t v_isShared_8176_; uint8_t v_isSharedCheck_8184_; -v_isSharedCheck_8184_ = !lean_is_exclusive(v_reader_8130_); -if (v_isSharedCheck_8184_ == 0) -{ -lean_object* v_unused_8185_; lean_object* v_unused_8186_; lean_object* v_unused_8187_; lean_object* v_unused_8188_; lean_object* v_unused_8189_; lean_object* v_unused_8190_; -v_unused_8185_ = lean_ctor_get(v_reader_8130_, 5); -lean_dec(v_unused_8185_); -v_unused_8186_ = lean_ctor_get(v_reader_8130_, 4); -lean_dec(v_unused_8186_); -v_unused_8187_ = lean_ctor_get(v_reader_8130_, 3); -lean_dec(v_unused_8187_); -v_unused_8188_ = lean_ctor_get(v_reader_8130_, 2); -lean_dec(v_unused_8188_); -v_unused_8189_ = lean_ctor_get(v_reader_8130_, 1); -lean_dec(v_unused_8189_); -v_unused_8190_ = lean_ctor_get(v_reader_8130_, 0); -lean_dec(v_unused_8190_); -v___x_8175_ = v_reader_8130_; -v_isShared_8176_ = v_isSharedCheck_8184_; -goto v_resetjp_8174_; -} -else -{ -lean_dec(v_reader_8130_); -v___x_8175_ = lean_box(0); -v_isShared_8176_ = v_isSharedCheck_8184_; -goto v_resetjp_8174_; -} -v_resetjp_8174_: -{ -lean_object* v___x_8177_; lean_object* v___x_8179_; -v___x_8177_ = lean_box(6); -if (v_isShared_8176_ == 0) -{ -lean_ctor_set(v___x_8175_, 0, v___x_8177_); -v___x_8179_ = v___x_8175_; -goto v_reusejp_8178_; -} -else -{ -lean_object* v_reuseFailAlloc_8183_; -v_reuseFailAlloc_8183_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8183_, 0, v___x_8177_); -lean_ctor_set(v_reuseFailAlloc_8183_, 1, v_input_8139_); -lean_ctor_set(v_reuseFailAlloc_8183_, 2, v_messageHead_8140_); -lean_ctor_set(v_reuseFailAlloc_8183_, 3, v_messageCount_8141_); -lean_ctor_set(v_reuseFailAlloc_8183_, 4, v_bodyBytesRead_8142_); -lean_ctor_set(v_reuseFailAlloc_8183_, 5, v_headerBytesRead_8143_); -lean_ctor_set_uint8(v_reuseFailAlloc_8183_, sizeof(void*)*6, v_noMoreInput_8144_); -v___x_8179_ = v_reuseFailAlloc_8183_; -goto v_reusejp_8178_; -} -v_reusejp_8178_: -{ -lean_object* v___x_8181_; -if (v_isShared_8173_ == 0) -{ -lean_ctor_set(v___x_8172_, 0, v___x_8179_); -v___x_8181_ = v___x_8172_; -goto v_reusejp_8180_; -} -else -{ -lean_object* v_reuseFailAlloc_8182_; -v_reuseFailAlloc_8182_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8182_, 0, v___x_8179_); -lean_ctor_set(v_reuseFailAlloc_8182_, 1, v_writer_8131_); -lean_ctor_set(v_reuseFailAlloc_8182_, 2, v_config_8132_); -lean_ctor_set(v_reuseFailAlloc_8182_, 3, v_events_8133_); -lean_ctor_set(v_reuseFailAlloc_8182_, 4, v_error_8134_); -lean_ctor_set(v_reuseFailAlloc_8182_, 5, v_instant_8135_); -lean_ctor_set_uint8(v_reuseFailAlloc_8182_, sizeof(void*)*6, v_keepAlive_8136_); -lean_ctor_set_uint8(v_reuseFailAlloc_8182_, sizeof(void*)*6 + 1, v_forcedFlush_8137_); -lean_ctor_set_uint8(v_reuseFailAlloc_8182_, sizeof(void*)*6 + 2, v_pullBodyStalled_8138_); -v___x_8181_ = v_reuseFailAlloc_8182_; -goto v_reusejp_8180_; -} -v_reusejp_8180_: -{ -return v___x_8181_; +uint8_t v_dir_boxed_8056_; lean_object* v_res_8057_; +v_dir_boxed_8056_ = lean_unbox(v_dir_8053_); +v_res_8057_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(v_dir_boxed_8056_, v_machine_8054_, v_error_8055_); +return v_res_8057_; } } -} -} -} -} -v___jp_8145_: -{ -lean_object* v_array_8146_; lean_object* v_idx_8147_; lean_object* v___x_8148_; uint8_t v___x_8149_; -v_array_8146_ = lean_ctor_get(v_input_8139_, 0); -v_idx_8147_ = lean_ctor_get(v_input_8139_, 1); -v___x_8148_ = lean_byte_array_size(v_array_8146_); -v___x_8149_ = lean_nat_dec_le(v___x_8148_, v_idx_8147_); -if (v___x_8149_ == 0) -{ -lean_dec_ref(v_reader_8130_); -if (v_dir_8128_ == 0) -{ -lean_object* v___x_8150_; -v___x_8150_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine(v_machine_8129_); -return v___x_8150_; -} -else -{ -lean_object* v___x_8151_; -v___x_8151_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine(v_machine_8129_); -return v___x_8151_; -} -} -else -{ -lean_object* v___x_8153_; uint8_t v_isShared_8154_; uint8_t v_isSharedCheck_8160_; -lean_inc(v_instant_8135_); -lean_inc(v_error_8134_); -lean_inc_ref(v_events_8133_); -lean_inc_ref(v_config_8132_); -lean_inc_ref(v_writer_8131_); -v_isSharedCheck_8160_ = !lean_is_exclusive(v_machine_8129_); -if (v_isSharedCheck_8160_ == 0) -{ -lean_object* v_unused_8161_; lean_object* v_unused_8162_; lean_object* v_unused_8163_; lean_object* v_unused_8164_; lean_object* v_unused_8165_; lean_object* v_unused_8166_; -v_unused_8161_ = lean_ctor_get(v_machine_8129_, 5); -lean_dec(v_unused_8161_); -v_unused_8162_ = lean_ctor_get(v_machine_8129_, 4); -lean_dec(v_unused_8162_); -v_unused_8163_ = lean_ctor_get(v_machine_8129_, 3); -lean_dec(v_unused_8163_); -v_unused_8164_ = lean_ctor_get(v_machine_8129_, 2); -lean_dec(v_unused_8164_); -v_unused_8165_ = lean_ctor_get(v_machine_8129_, 1); -lean_dec(v_unused_8165_); -v_unused_8166_ = lean_ctor_get(v_machine_8129_, 0); -lean_dec(v_unused_8166_); -v___x_8153_ = v_machine_8129_; -v_isShared_8154_ = v_isSharedCheck_8160_; -goto v_resetjp_8152_; -} -else -{ -lean_dec(v_machine_8129_); -v___x_8153_ = lean_box(0); -v_isShared_8154_ = v_isSharedCheck_8160_; -goto v_resetjp_8152_; -} -v_resetjp_8152_: -{ -lean_object* v___x_8155_; lean_object* v___x_8156_; lean_object* v___x_8158_; -v___x_8155_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___closed__0)); -v___x_8156_ = lean_array_push(v_events_8133_, v___x_8155_); -if (v_isShared_8154_ == 0) -{ -lean_ctor_set(v___x_8153_, 3, v___x_8156_); -v___x_8158_ = v___x_8153_; -goto v_reusejp_8157_; -} -else -{ -lean_object* v_reuseFailAlloc_8159_; -v_reuseFailAlloc_8159_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8159_, 0, v_reader_8130_); -lean_ctor_set(v_reuseFailAlloc_8159_, 1, v_writer_8131_); -lean_ctor_set(v_reuseFailAlloc_8159_, 2, v_config_8132_); -lean_ctor_set(v_reuseFailAlloc_8159_, 3, v___x_8156_); -lean_ctor_set(v_reuseFailAlloc_8159_, 4, v_error_8134_); -lean_ctor_set(v_reuseFailAlloc_8159_, 5, v_instant_8135_); -lean_ctor_set_uint8(v_reuseFailAlloc_8159_, sizeof(void*)*6, v_keepAlive_8136_); -lean_ctor_set_uint8(v_reuseFailAlloc_8159_, sizeof(void*)*6 + 1, v_forcedFlush_8137_); -lean_ctor_set_uint8(v_reuseFailAlloc_8159_, sizeof(void*)*6 + 2, v_pullBodyStalled_8138_); -v___x_8158_ = v_reuseFailAlloc_8159_; -goto v_reusejp_8157_; -} -v_reusejp_8157_: -{ -return v___x_8158_; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(uint8_t v_dir_8198_, lean_object* v_machine_8199_, lean_object* v_bodyState_8200_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg(lean_object* v_machine_8062_){ _start: { -if (v_dir_8198_ == 0) -{ -lean_object* v_writer_8209_; uint8_t v_sentMessage_8210_; -v_writer_8209_ = lean_ctor_get(v_machine_8199_, 1); -v_sentMessage_8210_ = lean_ctor_get_uint8(v_writer_8209_, sizeof(void*)*6); -if (v_sentMessage_8210_ == 0) -{ -lean_dec(v_bodyState_8200_); -return v_machine_8199_; -} -else -{ -goto v___jp_8201_; +lean_object* v___x_8063_; lean_object* v___x_8064_; +v___x_8063_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); +v___x_8064_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8064_, 0, v_machine_8062_); +lean_ctor_set(v___x_8064_, 1, v___x_8063_); +return v___x_8064_; } } -else -{ -lean_object* v_reader_8211_; lean_object* v_messageHead_8212_; lean_object* v_status_8213_; uint16_t v___x_8214_; uint16_t v___x_8215_; uint8_t v___x_8216_; -v_reader_8211_ = lean_ctor_get(v_machine_8199_, 0); -v_messageHead_8212_ = lean_ctor_get(v_reader_8211_, 2); -v_status_8213_ = lean_ctor_get(v_messageHead_8212_, 0); -v___x_8214_ = 100; -v___x_8215_ = l_Std_Http_Status_toCode(v_status_8213_); -v___x_8216_ = lean_uint16_dec_le(v___x_8214_, v___x_8215_); -if (v___x_8216_ == 0) -{ -lean_dec(v_bodyState_8200_); -return v_machine_8199_; -} -else -{ -uint16_t v___x_8217_; uint8_t v___x_8218_; -v___x_8217_ = 200; -v___x_8218_ = lean_uint16_dec_lt(v___x_8215_, v___x_8217_); -if (v___x_8218_ == 0) -{ -lean_dec(v_bodyState_8200_); -return v_machine_8199_; -} -else -{ -goto v___jp_8201_; -} -} -} -v___jp_8201_: -{ -lean_object* v___x_8202_; lean_object* v_snd_8203_; lean_object* v_snd_8204_; uint8_t v___x_8205_; -v___x_8202_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_8198_, v_machine_8199_, v_bodyState_8200_); -v_snd_8203_ = lean_ctor_get(v___x_8202_, 1); -lean_inc(v_snd_8203_); -v_snd_8204_ = lean_ctor_get(v_snd_8203_, 1); -lean_inc(v_snd_8204_); -lean_dec(v_snd_8203_); -v___x_8205_ = lean_unbox(v_snd_8204_); -lean_dec(v_snd_8204_); -if (v___x_8205_ == 0) -{ -lean_object* v_fst_8206_; -v_fst_8206_ = lean_ctor_get(v___x_8202_, 0); -lean_inc(v_fst_8206_); -lean_dec_ref(v___x_8202_); -return v_fst_8206_; -} -else -{ -lean_object* v_fst_8207_; lean_object* v___x_8208_; -v_fst_8207_ = lean_ctor_get(v___x_8202_, 0); -lean_inc(v_fst_8207_); -lean_dec_ref(v___x_8202_); -v___x_8208_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_8198_, v_fst_8207_); -return v___x_8208_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processRead(uint8_t v_dir_8219_, lean_object* v_machine_8220_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress(uint8_t v_dir_8065_, lean_object* v_machine_8066_){ _start: { -lean_object* v_reader_8221_; lean_object* v_state_8222_; -v_reader_8221_ = lean_ctor_get(v_machine_8220_, 0); -lean_inc_ref(v_reader_8221_); -v_state_8222_ = lean_ctor_get(v_reader_8221_, 0); -switch(lean_obj_tag(v_state_8222_)) +lean_object* v___x_8067_; lean_object* v___x_8068_; +v___x_8067_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); +v___x_8068_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8068_, 0, v_machine_8066_); +lean_ctor_set(v___x_8068_, 1, v___x_8067_); +return v___x_8068_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___boxed(lean_object* v_dir_8069_, lean_object* v_machine_8070_){ +_start: +{ +uint8_t v_dir_boxed_8071_; lean_object* v_res_8072_; +v_dir_boxed_8071_ = lean_unbox(v_dir_8069_); +v_res_8072_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress(v_dir_boxed_8071_, v_machine_8070_); +return v_res_8072_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge___redArg(lean_object* v_machine_8073_){ +_start: +{ +lean_object* v_reader_8074_; lean_object* v_writer_8075_; lean_object* v_config_8076_; lean_object* v_events_8077_; lean_object* v_instant_8078_; uint8_t v_keepAlive_8079_; uint8_t v_forcedFlush_8080_; uint8_t v_pullBodyStalled_8081_; lean_object* v___x_8083_; uint8_t v_isShared_8084_; uint8_t v_isSharedCheck_8108_; +v_reader_8074_ = lean_ctor_get(v_machine_8073_, 0); +v_writer_8075_ = lean_ctor_get(v_machine_8073_, 1); +v_config_8076_ = lean_ctor_get(v_machine_8073_, 2); +v_events_8077_ = lean_ctor_get(v_machine_8073_, 3); +v_instant_8078_ = lean_ctor_get(v_machine_8073_, 5); +v_keepAlive_8079_ = lean_ctor_get_uint8(v_machine_8073_, sizeof(void*)*6); +v_forcedFlush_8080_ = lean_ctor_get_uint8(v_machine_8073_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8081_ = lean_ctor_get_uint8(v_machine_8073_, sizeof(void*)*6 + 2); +v_isSharedCheck_8108_ = !lean_is_exclusive(v_machine_8073_); +if (v_isSharedCheck_8108_ == 0) +{ +lean_object* v_unused_8109_; +v_unused_8109_ = lean_ctor_get(v_machine_8073_, 4); +lean_dec(v_unused_8109_); +v___x_8083_ = v_machine_8073_; +v_isShared_8084_ = v_isSharedCheck_8108_; +goto v_resetjp_8082_; +} +else +{ +lean_inc(v_instant_8078_); +lean_inc(v_events_8077_); +lean_inc(v_config_8076_); +lean_inc(v_writer_8075_); +lean_inc(v_reader_8074_); +lean_dec(v_machine_8073_); +v___x_8083_ = lean_box(0); +v_isShared_8084_ = v_isSharedCheck_8108_; +goto v_resetjp_8082_; +} +v_resetjp_8082_: +{ +lean_object* v_input_8085_; lean_object* v_messageHead_8086_; lean_object* v_messageCount_8087_; lean_object* v_bodyBytesRead_8088_; lean_object* v_headerBytesRead_8089_; uint8_t v_noMoreInput_8090_; lean_object* v___x_8092_; uint8_t v_isShared_8093_; uint8_t v_isSharedCheck_8106_; +v_input_8085_ = lean_ctor_get(v_reader_8074_, 1); +v_messageHead_8086_ = lean_ctor_get(v_reader_8074_, 2); +v_messageCount_8087_ = lean_ctor_get(v_reader_8074_, 3); +v_bodyBytesRead_8088_ = lean_ctor_get(v_reader_8074_, 4); +v_headerBytesRead_8089_ = lean_ctor_get(v_reader_8074_, 5); +v_noMoreInput_8090_ = lean_ctor_get_uint8(v_reader_8074_, sizeof(void*)*6); +v_isSharedCheck_8106_ = !lean_is_exclusive(v_reader_8074_); +if (v_isSharedCheck_8106_ == 0) +{ +lean_object* v_unused_8107_; +v_unused_8107_ = lean_ctor_get(v_reader_8074_, 0); +lean_dec(v_unused_8107_); +v___x_8092_ = v_reader_8074_; +v_isShared_8093_ = v_isSharedCheck_8106_; +goto v_resetjp_8091_; +} +else +{ +lean_inc(v_headerBytesRead_8089_); +lean_inc(v_bodyBytesRead_8088_); +lean_inc(v_messageCount_8087_); +lean_inc(v_messageHead_8086_); +lean_inc(v_input_8085_); +lean_dec(v_reader_8074_); +v___x_8092_ = lean_box(0); +v_isShared_8093_ = v_isSharedCheck_8106_; +goto v_resetjp_8091_; +} +v_resetjp_8091_: +{ +lean_object* v___x_8094_; lean_object* v___x_8095_; lean_object* v___x_8096_; lean_object* v___x_8098_; +v___x_8094_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_8095_ = lean_array_push(v_events_8077_, v___x_8094_); +v___x_8096_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_8093_ == 0) +{ +lean_ctor_set(v___x_8092_, 0, v___x_8096_); +v___x_8098_ = v___x_8092_; +goto v_reusejp_8097_; +} +else +{ +lean_object* v_reuseFailAlloc_8105_; +v_reuseFailAlloc_8105_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8105_, 0, v___x_8096_); +lean_ctor_set(v_reuseFailAlloc_8105_, 1, v_input_8085_); +lean_ctor_set(v_reuseFailAlloc_8105_, 2, v_messageHead_8086_); +lean_ctor_set(v_reuseFailAlloc_8105_, 3, v_messageCount_8087_); +lean_ctor_set(v_reuseFailAlloc_8105_, 4, v_bodyBytesRead_8088_); +lean_ctor_set(v_reuseFailAlloc_8105_, 5, v_headerBytesRead_8089_); +lean_ctor_set_uint8(v_reuseFailAlloc_8105_, sizeof(void*)*6, v_noMoreInput_8090_); +v___x_8098_ = v_reuseFailAlloc_8105_; +goto v_reusejp_8097_; +} +v_reusejp_8097_: +{ +lean_object* v___x_8099_; lean_object* v___x_8101_; +v___x_8099_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_8084_ == 0) +{ +lean_ctor_set(v___x_8083_, 4, v___x_8099_); +lean_ctor_set(v___x_8083_, 3, v___x_8095_); +lean_ctor_set(v___x_8083_, 0, v___x_8098_); +v___x_8101_ = v___x_8083_; +goto v_reusejp_8100_; +} +else +{ +lean_object* v_reuseFailAlloc_8104_; +v_reuseFailAlloc_8104_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8104_, 0, v___x_8098_); +lean_ctor_set(v_reuseFailAlloc_8104_, 1, v_writer_8075_); +lean_ctor_set(v_reuseFailAlloc_8104_, 2, v_config_8076_); +lean_ctor_set(v_reuseFailAlloc_8104_, 3, v___x_8095_); +lean_ctor_set(v_reuseFailAlloc_8104_, 4, v___x_8099_); +lean_ctor_set(v_reuseFailAlloc_8104_, 5, v_instant_8078_); +lean_ctor_set_uint8(v_reuseFailAlloc_8104_, sizeof(void*)*6, v_keepAlive_8079_); +lean_ctor_set_uint8(v_reuseFailAlloc_8104_, sizeof(void*)*6 + 1, v_forcedFlush_8080_); +lean_ctor_set_uint8(v_reuseFailAlloc_8104_, sizeof(void*)*6 + 2, v_pullBodyStalled_8081_); +v___x_8101_ = v_reuseFailAlloc_8104_; +goto v_reusejp_8100_; +} +v_reusejp_8100_: +{ +lean_object* v___x_8102_; lean_object* v___x_8103_; +v___x_8102_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); +v___x_8103_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8103_, 0, v___x_8101_); +lean_ctor_set(v___x_8103_, 1, v___x_8102_); +return v___x_8103_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge(uint8_t v_dir_8110_, lean_object* v_machine_8111_){ +_start: +{ +lean_object* v_reader_8112_; lean_object* v_writer_8113_; lean_object* v_config_8114_; lean_object* v_events_8115_; lean_object* v_instant_8116_; uint8_t v_keepAlive_8117_; uint8_t v_forcedFlush_8118_; uint8_t v_pullBodyStalled_8119_; lean_object* v___x_8121_; uint8_t v_isShared_8122_; uint8_t v_isSharedCheck_8146_; +v_reader_8112_ = lean_ctor_get(v_machine_8111_, 0); +v_writer_8113_ = lean_ctor_get(v_machine_8111_, 1); +v_config_8114_ = lean_ctor_get(v_machine_8111_, 2); +v_events_8115_ = lean_ctor_get(v_machine_8111_, 3); +v_instant_8116_ = lean_ctor_get(v_machine_8111_, 5); +v_keepAlive_8117_ = lean_ctor_get_uint8(v_machine_8111_, sizeof(void*)*6); +v_forcedFlush_8118_ = lean_ctor_get_uint8(v_machine_8111_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8119_ = lean_ctor_get_uint8(v_machine_8111_, sizeof(void*)*6 + 2); +v_isSharedCheck_8146_ = !lean_is_exclusive(v_machine_8111_); +if (v_isSharedCheck_8146_ == 0) +{ +lean_object* v_unused_8147_; +v_unused_8147_ = lean_ctor_get(v_machine_8111_, 4); +lean_dec(v_unused_8147_); +v___x_8121_ = v_machine_8111_; +v_isShared_8122_ = v_isSharedCheck_8146_; +goto v_resetjp_8120_; +} +else +{ +lean_inc(v_instant_8116_); +lean_inc(v_events_8115_); +lean_inc(v_config_8114_); +lean_inc(v_writer_8113_); +lean_inc(v_reader_8112_); +lean_dec(v_machine_8111_); +v___x_8121_ = lean_box(0); +v_isShared_8122_ = v_isSharedCheck_8146_; +goto v_resetjp_8120_; +} +v_resetjp_8120_: +{ +lean_object* v_input_8123_; lean_object* v_messageHead_8124_; lean_object* v_messageCount_8125_; lean_object* v_bodyBytesRead_8126_; lean_object* v_headerBytesRead_8127_; uint8_t v_noMoreInput_8128_; lean_object* v___x_8130_; uint8_t v_isShared_8131_; uint8_t v_isSharedCheck_8144_; +v_input_8123_ = lean_ctor_get(v_reader_8112_, 1); +v_messageHead_8124_ = lean_ctor_get(v_reader_8112_, 2); +v_messageCount_8125_ = lean_ctor_get(v_reader_8112_, 3); +v_bodyBytesRead_8126_ = lean_ctor_get(v_reader_8112_, 4); +v_headerBytesRead_8127_ = lean_ctor_get(v_reader_8112_, 5); +v_noMoreInput_8128_ = lean_ctor_get_uint8(v_reader_8112_, sizeof(void*)*6); +v_isSharedCheck_8144_ = !lean_is_exclusive(v_reader_8112_); +if (v_isSharedCheck_8144_ == 0) +{ +lean_object* v_unused_8145_; +v_unused_8145_ = lean_ctor_get(v_reader_8112_, 0); +lean_dec(v_unused_8145_); +v___x_8130_ = v_reader_8112_; +v_isShared_8131_ = v_isSharedCheck_8144_; +goto v_resetjp_8129_; +} +else +{ +lean_inc(v_headerBytesRead_8127_); +lean_inc(v_bodyBytesRead_8126_); +lean_inc(v_messageCount_8125_); +lean_inc(v_messageHead_8124_); +lean_inc(v_input_8123_); +lean_dec(v_reader_8112_); +v___x_8130_ = lean_box(0); +v_isShared_8131_ = v_isSharedCheck_8144_; +goto v_resetjp_8129_; +} +v_resetjp_8129_: +{ +lean_object* v___x_8132_; lean_object* v___x_8133_; lean_object* v___x_8134_; lean_object* v___x_8136_; +v___x_8132_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_8133_ = lean_array_push(v_events_8115_, v___x_8132_); +v___x_8134_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_8131_ == 0) +{ +lean_ctor_set(v___x_8130_, 0, v___x_8134_); +v___x_8136_ = v___x_8130_; +goto v_reusejp_8135_; +} +else +{ +lean_object* v_reuseFailAlloc_8143_; +v_reuseFailAlloc_8143_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8143_, 0, v___x_8134_); +lean_ctor_set(v_reuseFailAlloc_8143_, 1, v_input_8123_); +lean_ctor_set(v_reuseFailAlloc_8143_, 2, v_messageHead_8124_); +lean_ctor_set(v_reuseFailAlloc_8143_, 3, v_messageCount_8125_); +lean_ctor_set(v_reuseFailAlloc_8143_, 4, v_bodyBytesRead_8126_); +lean_ctor_set(v_reuseFailAlloc_8143_, 5, v_headerBytesRead_8127_); +lean_ctor_set_uint8(v_reuseFailAlloc_8143_, sizeof(void*)*6, v_noMoreInput_8128_); +v___x_8136_ = v_reuseFailAlloc_8143_; +goto v_reusejp_8135_; +} +v_reusejp_8135_: +{ +lean_object* v___x_8137_; lean_object* v___x_8139_; +v___x_8137_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_8122_ == 0) +{ +lean_ctor_set(v___x_8121_, 4, v___x_8137_); +lean_ctor_set(v___x_8121_, 3, v___x_8133_); +lean_ctor_set(v___x_8121_, 0, v___x_8136_); +v___x_8139_ = v___x_8121_; +goto v_reusejp_8138_; +} +else +{ +lean_object* v_reuseFailAlloc_8142_; +v_reuseFailAlloc_8142_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8142_, 0, v___x_8136_); +lean_ctor_set(v_reuseFailAlloc_8142_, 1, v_writer_8113_); +lean_ctor_set(v_reuseFailAlloc_8142_, 2, v_config_8114_); +lean_ctor_set(v_reuseFailAlloc_8142_, 3, v___x_8133_); +lean_ctor_set(v_reuseFailAlloc_8142_, 4, v___x_8137_); +lean_ctor_set(v_reuseFailAlloc_8142_, 5, v_instant_8116_); +lean_ctor_set_uint8(v_reuseFailAlloc_8142_, sizeof(void*)*6, v_keepAlive_8117_); +lean_ctor_set_uint8(v_reuseFailAlloc_8142_, sizeof(void*)*6 + 1, v_forcedFlush_8118_); +lean_ctor_set_uint8(v_reuseFailAlloc_8142_, sizeof(void*)*6 + 2, v_pullBodyStalled_8119_); +v___x_8139_ = v_reuseFailAlloc_8142_; +goto v_reusejp_8138_; +} +v_reusejp_8138_: +{ +lean_object* v___x_8140_; lean_object* v___x_8141_; +v___x_8140_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyNoProgress___redArg___closed__0)); +v___x_8141_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8141_, 0, v___x_8139_); +lean_ctor_set(v___x_8141_, 1, v___x_8140_); +return v___x_8141_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge___boxed(lean_object* v_dir_8148_, lean_object* v_machine_8149_){ +_start: +{ +uint8_t v_dir_boxed_8150_; lean_object* v_res_8151_; +v_dir_boxed_8150_ = lean_unbox(v_dir_8148_); +v_res_8151_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_bodyTooLarge(v_dir_boxed_8150_, v_machine_8149_); +return v_res_8151_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(uint8_t v_dir_8152_, lean_object* v_machine_8153_, lean_object* v_nextState_8154_, uint8_t v_final_8155_, uint8_t v_incomplete_8156_, lean_object* v_extensions_8157_, lean_object* v_data_8158_, uint8_t v_closeBody_8159_){ +_start: +{ +lean_object* v_reader_8160_; lean_object* v_config_8161_; lean_object* v_writer_8162_; lean_object* v_events_8163_; lean_object* v_error_8164_; lean_object* v_instant_8165_; uint8_t v_keepAlive_8166_; uint8_t v_forcedFlush_8167_; uint8_t v_pullBodyStalled_8168_; lean_object* v___x_8170_; uint8_t v_isShared_8171_; uint8_t v_isSharedCheck_8238_; +v_reader_8160_ = lean_ctor_get(v_machine_8153_, 0); +v_config_8161_ = lean_ctor_get(v_machine_8153_, 2); +v_writer_8162_ = lean_ctor_get(v_machine_8153_, 1); +v_events_8163_ = lean_ctor_get(v_machine_8153_, 3); +v_error_8164_ = lean_ctor_get(v_machine_8153_, 4); +v_instant_8165_ = lean_ctor_get(v_machine_8153_, 5); +v_keepAlive_8166_ = lean_ctor_get_uint8(v_machine_8153_, sizeof(void*)*6); +v_forcedFlush_8167_ = lean_ctor_get_uint8(v_machine_8153_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8168_ = lean_ctor_get_uint8(v_machine_8153_, sizeof(void*)*6 + 2); +v_isSharedCheck_8238_ = !lean_is_exclusive(v_machine_8153_); +if (v_isSharedCheck_8238_ == 0) +{ +v___x_8170_ = v_machine_8153_; +v_isShared_8171_ = v_isSharedCheck_8238_; +goto v_resetjp_8169_; +} +else +{ +lean_inc(v_instant_8165_); +lean_inc(v_error_8164_); +lean_inc(v_events_8163_); +lean_inc(v_config_8161_); +lean_inc(v_writer_8162_); +lean_inc(v_reader_8160_); +lean_dec(v_machine_8153_); +v___x_8170_ = lean_box(0); +v_isShared_8171_ = v_isSharedCheck_8238_; +goto v_resetjp_8169_; +} +v_resetjp_8169_: +{ +lean_object* v_input_8172_; lean_object* v_messageHead_8173_; lean_object* v_messageCount_8174_; lean_object* v_bodyBytesRead_8175_; lean_object* v_headerBytesRead_8176_; uint8_t v_noMoreInput_8177_; lean_object* v___x_8179_; uint8_t v_isShared_8180_; uint8_t v_isSharedCheck_8236_; +v_input_8172_ = lean_ctor_get(v_reader_8160_, 1); +v_messageHead_8173_ = lean_ctor_get(v_reader_8160_, 2); +v_messageCount_8174_ = lean_ctor_get(v_reader_8160_, 3); +v_bodyBytesRead_8175_ = lean_ctor_get(v_reader_8160_, 4); +v_headerBytesRead_8176_ = lean_ctor_get(v_reader_8160_, 5); +v_noMoreInput_8177_ = lean_ctor_get_uint8(v_reader_8160_, sizeof(void*)*6); +v_isSharedCheck_8236_ = !lean_is_exclusive(v_reader_8160_); +if (v_isSharedCheck_8236_ == 0) +{ +lean_object* v_unused_8237_; +v_unused_8237_ = lean_ctor_get(v_reader_8160_, 0); +lean_dec(v_unused_8237_); +v___x_8179_ = v_reader_8160_; +v_isShared_8180_ = v_isSharedCheck_8236_; +goto v_resetjp_8178_; +} +else +{ +lean_inc(v_headerBytesRead_8176_); +lean_inc(v_bodyBytesRead_8175_); +lean_inc(v_messageCount_8174_); +lean_inc(v_messageHead_8173_); +lean_inc(v_input_8172_); +lean_dec(v_reader_8160_); +v___x_8179_ = lean_box(0); +v_isShared_8180_ = v_isSharedCheck_8236_; +goto v_resetjp_8178_; +} +v_resetjp_8178_: +{ +lean_object* v_maxBodySize_8181_; lean_object* v_bodySize_8182_; lean_object* v___x_8183_; uint8_t v___x_8184_; lean_object* v___y_8186_; lean_object* v___y_8187_; lean_object* v___y_8192_; lean_object* v___y_8198_; +v_maxBodySize_8181_ = lean_ctor_get(v_config_8161_, 15); +v_bodySize_8182_ = l_ByteSlice_size(v_data_8158_); +v___x_8183_ = lean_nat_add(v_bodyBytesRead_8175_, v_bodySize_8182_); +lean_dec(v_bodySize_8182_); +v___x_8184_ = lean_nat_dec_le(v___x_8183_, v_maxBodySize_8181_); +if (v___x_8184_ == 0) +{ +lean_object* v___x_8211_; lean_object* v___x_8212_; lean_object* v___x_8213_; lean_object* v___x_8215_; +lean_dec(v___x_8183_); +lean_dec(v_error_8164_); +lean_dec_ref(v_data_8158_); +lean_dec_ref(v_extensions_8157_); +lean_dec(v_nextState_8154_); +v___x_8211_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_8212_ = lean_array_push(v_events_8163_, v___x_8211_); +v___x_8213_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_8180_ == 0) +{ +lean_ctor_set(v___x_8179_, 0, v___x_8213_); +v___x_8215_ = v___x_8179_; +goto v_reusejp_8214_; +} +else +{ +lean_object* v_reuseFailAlloc_8224_; +v_reuseFailAlloc_8224_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8224_, 0, v___x_8213_); +lean_ctor_set(v_reuseFailAlloc_8224_, 1, v_input_8172_); +lean_ctor_set(v_reuseFailAlloc_8224_, 2, v_messageHead_8173_); +lean_ctor_set(v_reuseFailAlloc_8224_, 3, v_messageCount_8174_); +lean_ctor_set(v_reuseFailAlloc_8224_, 4, v_bodyBytesRead_8175_); +lean_ctor_set(v_reuseFailAlloc_8224_, 5, v_headerBytesRead_8176_); +lean_ctor_set_uint8(v_reuseFailAlloc_8224_, sizeof(void*)*6, v_noMoreInput_8177_); +v___x_8215_ = v_reuseFailAlloc_8224_; +goto v_reusejp_8214_; +} +v_reusejp_8214_: +{ +lean_object* v___x_8216_; lean_object* v___x_8218_; +v___x_8216_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_8171_ == 0) +{ +lean_ctor_set(v___x_8170_, 4, v___x_8216_); +lean_ctor_set(v___x_8170_, 3, v___x_8212_); +lean_ctor_set(v___x_8170_, 0, v___x_8215_); +v___x_8218_ = v___x_8170_; +goto v_reusejp_8217_; +} +else +{ +lean_object* v_reuseFailAlloc_8223_; +v_reuseFailAlloc_8223_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8223_, 0, v___x_8215_); +lean_ctor_set(v_reuseFailAlloc_8223_, 1, v_writer_8162_); +lean_ctor_set(v_reuseFailAlloc_8223_, 2, v_config_8161_); +lean_ctor_set(v_reuseFailAlloc_8223_, 3, v___x_8212_); +lean_ctor_set(v_reuseFailAlloc_8223_, 4, v___x_8216_); +lean_ctor_set(v_reuseFailAlloc_8223_, 5, v_instant_8165_); +lean_ctor_set_uint8(v_reuseFailAlloc_8223_, sizeof(void*)*6, v_keepAlive_8166_); +lean_ctor_set_uint8(v_reuseFailAlloc_8223_, sizeof(void*)*6 + 1, v_forcedFlush_8167_); +lean_ctor_set_uint8(v_reuseFailAlloc_8223_, sizeof(void*)*6 + 2, v_pullBodyStalled_8168_); +v___x_8218_ = v_reuseFailAlloc_8223_; +goto v_reusejp_8217_; +} +v_reusejp_8217_: +{ +lean_object* v___x_8219_; lean_object* v___x_8220_; lean_object* v___x_8221_; lean_object* v___x_8222_; +v___x_8219_ = lean_box(0); +v___x_8220_ = lean_box(v___x_8184_); +v___x_8221_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8221_, 0, v___x_8219_); +lean_ctor_set(v___x_8221_, 1, v___x_8220_); +v___x_8222_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8222_, 0, v___x_8218_); +lean_ctor_set(v___x_8222_, 1, v___x_8221_); +return v___x_8222_; +} +} +} +else +{ +lean_object* v___x_8226_; +lean_dec(v_bodyBytesRead_8175_); +if (v_isShared_8180_ == 0) +{ +lean_ctor_set(v___x_8179_, 4, v___x_8183_); +lean_ctor_set(v___x_8179_, 0, v_nextState_8154_); +v___x_8226_ = v___x_8179_; +goto v_reusejp_8225_; +} +else +{ +lean_object* v_reuseFailAlloc_8235_; +v_reuseFailAlloc_8235_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8235_, 0, v_nextState_8154_); +lean_ctor_set(v_reuseFailAlloc_8235_, 1, v_input_8172_); +lean_ctor_set(v_reuseFailAlloc_8235_, 2, v_messageHead_8173_); +lean_ctor_set(v_reuseFailAlloc_8235_, 3, v_messageCount_8174_); +lean_ctor_set(v_reuseFailAlloc_8235_, 4, v___x_8183_); +lean_ctor_set(v_reuseFailAlloc_8235_, 5, v_headerBytesRead_8176_); +lean_ctor_set_uint8(v_reuseFailAlloc_8235_, sizeof(void*)*6, v_noMoreInput_8177_); +v___x_8226_ = v_reuseFailAlloc_8235_; +goto v_reusejp_8225_; +} +v_reusejp_8225_: +{ +if (v_closeBody_8159_ == 0) +{ +lean_object* v_machine_8228_; +if (v_isShared_8171_ == 0) +{ +lean_ctor_set(v___x_8170_, 0, v___x_8226_); +v_machine_8228_ = v___x_8170_; +goto v_reusejp_8227_; +} +else +{ +lean_object* v_reuseFailAlloc_8229_; +v_reuseFailAlloc_8229_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8229_, 0, v___x_8226_); +lean_ctor_set(v_reuseFailAlloc_8229_, 1, v_writer_8162_); +lean_ctor_set(v_reuseFailAlloc_8229_, 2, v_config_8161_); +lean_ctor_set(v_reuseFailAlloc_8229_, 3, v_events_8163_); +lean_ctor_set(v_reuseFailAlloc_8229_, 4, v_error_8164_); +lean_ctor_set(v_reuseFailAlloc_8229_, 5, v_instant_8165_); +lean_ctor_set_uint8(v_reuseFailAlloc_8229_, sizeof(void*)*6, v_keepAlive_8166_); +lean_ctor_set_uint8(v_reuseFailAlloc_8229_, sizeof(void*)*6 + 1, v_forcedFlush_8167_); +lean_ctor_set_uint8(v_reuseFailAlloc_8229_, sizeof(void*)*6 + 2, v_pullBodyStalled_8168_); +v_machine_8228_ = v_reuseFailAlloc_8229_; +goto v_reusejp_8227_; +} +v_reusejp_8227_: +{ +v___y_8198_ = v_machine_8228_; +goto v___jp_8197_; +} +} +else +{ +lean_object* v___x_8230_; lean_object* v___x_8231_; lean_object* v___x_8233_; +v___x_8230_ = lean_box(4); +v___x_8231_ = lean_array_push(v_events_8163_, v___x_8230_); +if (v_isShared_8171_ == 0) +{ +lean_ctor_set(v___x_8170_, 3, v___x_8231_); +lean_ctor_set(v___x_8170_, 0, v___x_8226_); +v___x_8233_ = v___x_8170_; +goto v_reusejp_8232_; +} +else +{ +lean_object* v_reuseFailAlloc_8234_; +v_reuseFailAlloc_8234_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8234_, 0, v___x_8226_); +lean_ctor_set(v_reuseFailAlloc_8234_, 1, v_writer_8162_); +lean_ctor_set(v_reuseFailAlloc_8234_, 2, v_config_8161_); +lean_ctor_set(v_reuseFailAlloc_8234_, 3, v___x_8231_); +lean_ctor_set(v_reuseFailAlloc_8234_, 4, v_error_8164_); +lean_ctor_set(v_reuseFailAlloc_8234_, 5, v_instant_8165_); +lean_ctor_set_uint8(v_reuseFailAlloc_8234_, sizeof(void*)*6, v_keepAlive_8166_); +lean_ctor_set_uint8(v_reuseFailAlloc_8234_, sizeof(void*)*6 + 1, v_forcedFlush_8167_); +lean_ctor_set_uint8(v_reuseFailAlloc_8234_, sizeof(void*)*6 + 2, v_pullBodyStalled_8168_); +v___x_8233_ = v_reuseFailAlloc_8234_; +goto v_reusejp_8232_; +} +v_reusejp_8232_: +{ +v___y_8198_ = v___x_8233_; +goto v___jp_8197_; +} +} +} +} +v___jp_8185_: +{ +lean_object* v___x_8188_; lean_object* v___x_8189_; lean_object* v___x_8190_; +v___x_8188_ = lean_box(v___x_8184_); +v___x_8189_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8189_, 0, v___y_8187_); +lean_ctor_set(v___x_8189_, 1, v___x_8188_); +v___x_8190_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8190_, 0, v___y_8186_); +lean_ctor_set(v___x_8190_, 1, v___x_8189_); +return v___x_8190_; +} +v___jp_8191_: +{ +lean_object* v___x_8193_; lean_object* v___x_8194_; lean_object* v___x_8195_; lean_object* v___x_8196_; +v___x_8193_ = l_ByteSlice_toByteArray(v_data_8158_); +v___x_8194_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8194_, 0, v___x_8193_); +lean_ctor_set(v___x_8194_, 1, v_extensions_8157_); +v___x_8195_ = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(v___x_8195_, 0, v___x_8194_); +lean_ctor_set_uint8(v___x_8195_, sizeof(void*)*1, v_final_8155_); +lean_ctor_set_uint8(v___x_8195_, sizeof(void*)*1 + 1, v_incomplete_8156_); +v___x_8196_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8196_, 0, v___x_8195_); +v___y_8186_ = v___y_8192_; +v___y_8187_ = v___x_8196_; +goto v___jp_8185_; +} +v___jp_8197_: +{ +if (v_dir_8152_ == 0) +{ +lean_object* v_writer_8199_; uint8_t v_sentMessage_8200_; +v_writer_8199_ = lean_ctor_get(v___y_8198_, 1); +v_sentMessage_8200_ = lean_ctor_get_uint8(v_writer_8199_, sizeof(void*)*6); +if (v_sentMessage_8200_ == 0) +{ +v___y_8192_ = v___y_8198_; +goto v___jp_8191_; +} +else +{ +lean_object* v___x_8201_; +lean_dec_ref(v_data_8158_); +lean_dec_ref(v_extensions_8157_); +v___x_8201_ = lean_box(0); +v___y_8186_ = v___y_8198_; +v___y_8187_ = v___x_8201_; +goto v___jp_8185_; +} +} +else +{ +lean_object* v_reader_8202_; lean_object* v_messageHead_8203_; lean_object* v_status_8204_; uint16_t v___x_8205_; uint16_t v___x_8206_; uint8_t v___x_8207_; +v_reader_8202_ = lean_ctor_get(v___y_8198_, 0); +v_messageHead_8203_ = lean_ctor_get(v_reader_8202_, 2); +v_status_8204_ = lean_ctor_get(v_messageHead_8203_, 0); +v___x_8205_ = 100; +v___x_8206_ = l_Std_Http_Status_toCode(v_status_8204_); +v___x_8207_ = lean_uint16_dec_le(v___x_8205_, v___x_8206_); +if (v___x_8207_ == 0) +{ +v___y_8192_ = v___y_8198_; +goto v___jp_8191_; +} +else +{ +uint16_t v___x_8208_; uint8_t v___x_8209_; +v___x_8208_ = 200; +v___x_8209_ = lean_uint16_dec_lt(v___x_8206_, v___x_8208_); +if (v___x_8209_ == 0) +{ +v___y_8192_ = v___y_8198_; +goto v___jp_8191_; +} +else +{ +lean_object* v___x_8210_; +lean_dec_ref(v_data_8158_); +lean_dec_ref(v_extensions_8157_); +v___x_8210_ = lean_box(0); +v___y_8186_ = v___y_8198_; +v___y_8187_ = v___x_8210_; +goto v___jp_8185_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk___boxed(lean_object* v_dir_8239_, lean_object* v_machine_8240_, lean_object* v_nextState_8241_, lean_object* v_final_8242_, lean_object* v_incomplete_8243_, lean_object* v_extensions_8244_, lean_object* v_data_8245_, lean_object* v_closeBody_8246_){ +_start: +{ +uint8_t v_dir_boxed_8247_; uint8_t v_final_boxed_8248_; uint8_t v_incomplete_boxed_8249_; uint8_t v_closeBody_boxed_8250_; lean_object* v_res_8251_; +v_dir_boxed_8247_ = lean_unbox(v_dir_8239_); +v_final_boxed_8248_ = lean_unbox(v_final_8242_); +v_incomplete_boxed_8249_ = lean_unbox(v_incomplete_8243_); +v_closeBody_boxed_8250_ = lean_unbox(v_closeBody_8246_); +v_res_8251_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_boxed_8247_, v_machine_8240_, v_nextState_8241_, v_final_boxed_8248_, v_incomplete_boxed_8249_, v_extensions_8244_, v_data_8245_, v_closeBody_boxed_8250_); +return v_res_8251_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(uint8_t v_dir_8254_, lean_object* v_machine_8255_){ +_start: +{ +lean_object* v___x_8256_; uint8_t v___x_8257_; uint8_t v___x_8258_; lean_object* v___x_8259_; lean_object* v___x_8260_; lean_object* v___x_8261_; +v___x_8256_ = lean_box(5); +v___x_8257_ = 1; +v___x_8258_ = 0; +v___x_8259_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); +v___x_8260_ = l_ByteSlice_empty; +v___x_8261_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8254_, v_machine_8255_, v___x_8256_, v___x_8257_, v___x_8258_, v___x_8259_, v___x_8260_, v___x_8257_); +return v___x_8261_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___boxed(lean_object* v_dir_8262_, lean_object* v_machine_8263_){ +_start: +{ +uint8_t v_dir_boxed_8264_; lean_object* v_res_8265_; +v_dir_boxed_8264_ = lean_unbox(v_dir_8262_); +v_res_8265_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(v_dir_boxed_8264_, v_machine_8263_); +return v_res_8265_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0(lean_object* v_x_8266_){ +_start: +{ +lean_object* v___x_8267_; +v___x_8267_ = lean_box(8); +return v___x_8267_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0___boxed(lean_object* v_x_8268_){ +_start: +{ +lean_object* v_res_8269_; +v_res_8269_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___lam__0(v_x_8268_); +lean_dec(v_x_8268_); +return v_res_8269_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(uint8_t v_dir_8275_, lean_object* v_machine_8276_, lean_object* v_size_8277_){ +_start: +{ +lean_object* v___f_8278_; lean_object* v___x_8279_; lean_object* v___x_8280_; lean_object* v___x_8281_; lean_object* v___x_8282_; lean_object* v_snd_8283_; +v___f_8278_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); +lean_inc(v_size_8277_); +v___x_8279_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseFixedSizeData___boxed), 2, 1); +lean_closure_set(v___x_8279_, 0, v_size_8277_); +v___x_8280_ = lean_box(0); +v___x_8281_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8281_, 0, v_size_8277_); +v___x_8282_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8276_, v___x_8279_, v___x_8280_, v___x_8281_, v___f_8278_); +v_snd_8283_ = lean_ctor_get(v___x_8282_, 1); +lean_inc(v_snd_8283_); +if (lean_obj_tag(v_snd_8283_) == 0) +{ +lean_object* v_fst_8284_; lean_object* v___x_8286_; uint8_t v_isShared_8287_; uint8_t v_isSharedCheck_8292_; +v_fst_8284_ = lean_ctor_get(v___x_8282_, 0); +v_isSharedCheck_8292_ = !lean_is_exclusive(v___x_8282_); +if (v_isSharedCheck_8292_ == 0) +{ +lean_object* v_unused_8293_; +v_unused_8293_ = lean_ctor_get(v___x_8282_, 1); +lean_dec(v_unused_8293_); +v___x_8286_ = v___x_8282_; +v_isShared_8287_ = v_isSharedCheck_8292_; +goto v_resetjp_8285_; +} +else +{ +lean_inc(v_fst_8284_); +lean_dec(v___x_8282_); +v___x_8286_ = lean_box(0); +v_isShared_8287_ = v_isSharedCheck_8292_; +goto v_resetjp_8285_; +} +v_resetjp_8285_: +{ +lean_object* v___x_8288_; lean_object* v___x_8290_; +v___x_8288_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); +if (v_isShared_8287_ == 0) +{ +lean_ctor_set(v___x_8286_, 1, v___x_8288_); +v___x_8290_ = v___x_8286_; +goto v_reusejp_8289_; +} +else +{ +lean_object* v_reuseFailAlloc_8291_; +v_reuseFailAlloc_8291_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8291_, 0, v_fst_8284_); +lean_ctor_set(v_reuseFailAlloc_8291_, 1, v___x_8288_); +v___x_8290_ = v_reuseFailAlloc_8291_; +goto v_reusejp_8289_; +} +v_reusejp_8289_: +{ +return v___x_8290_; +} +} +} +else +{ +lean_object* v_val_8294_; lean_object* v___x_8296_; uint8_t v_isShared_8297_; uint8_t v_isSharedCheck_8315_; +v_val_8294_ = lean_ctor_get(v_snd_8283_, 0); +v_isSharedCheck_8315_ = !lean_is_exclusive(v_snd_8283_); +if (v_isSharedCheck_8315_ == 0) +{ +v___x_8296_ = v_snd_8283_; +v_isShared_8297_ = v_isSharedCheck_8315_; +goto v_resetjp_8295_; +} +else +{ +lean_inc(v_val_8294_); +lean_dec(v_snd_8283_); +v___x_8296_ = lean_box(0); +v_isShared_8297_ = v_isSharedCheck_8315_; +goto v_resetjp_8295_; +} +v_resetjp_8295_: +{ +if (lean_obj_tag(v_val_8294_) == 0) +{ +lean_object* v_fst_8298_; lean_object* v_data_8299_; lean_object* v___x_8300_; uint8_t v___x_8301_; uint8_t v___x_8302_; lean_object* v___x_8303_; lean_object* v___x_8304_; +lean_del_object(v___x_8296_); +v_fst_8298_ = lean_ctor_get(v___x_8282_, 0); +lean_inc(v_fst_8298_); +lean_dec_ref(v___x_8282_); +v_data_8299_ = lean_ctor_get(v_val_8294_, 0); +lean_inc_ref(v_data_8299_); +lean_dec_ref(v_val_8294_); +v___x_8300_ = lean_box(5); +v___x_8301_ = 1; +v___x_8302_ = 0; +v___x_8303_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); +v___x_8304_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8275_, v_fst_8298_, v___x_8300_, v___x_8301_, v___x_8302_, v___x_8303_, v_data_8299_, v___x_8301_); +return v___x_8304_; +} +else +{ +lean_object* v_fst_8305_; lean_object* v_data_8306_; lean_object* v_remaining_8307_; lean_object* v___x_8309_; +v_fst_8305_ = lean_ctor_get(v___x_8282_, 0); +lean_inc(v_fst_8305_); +lean_dec_ref(v___x_8282_); +v_data_8306_ = lean_ctor_get(v_val_8294_, 0); +lean_inc_ref(v_data_8306_); +v_remaining_8307_ = lean_ctor_get(v_val_8294_, 1); +lean_inc(v_remaining_8307_); +lean_dec_ref(v_val_8294_); +if (v_isShared_8297_ == 0) +{ +lean_ctor_set_tag(v___x_8296_, 0); +lean_ctor_set(v___x_8296_, 0, v_remaining_8307_); +v___x_8309_ = v___x_8296_; +goto v_reusejp_8308_; +} +else +{ +lean_object* v_reuseFailAlloc_8314_; +v_reuseFailAlloc_8314_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_8314_, 0, v_remaining_8307_); +v___x_8309_ = v_reuseFailAlloc_8314_; +goto v_reusejp_8308_; +} +v_reusejp_8308_: +{ +lean_object* v___x_8310_; uint8_t v___x_8311_; lean_object* v___x_8312_; lean_object* v___x_8313_; +v___x_8310_ = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(v___x_8310_, 0, v___x_8309_); +v___x_8311_ = 0; +v___x_8312_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); +v___x_8313_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8275_, v_fst_8305_, v___x_8310_, v___x_8311_, v___x_8311_, v___x_8312_, v_data_8306_, v___x_8311_); +return v___x_8313_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___boxed(lean_object* v_dir_8316_, lean_object* v_machine_8317_, lean_object* v_size_8318_){ +_start: +{ +uint8_t v_dir_boxed_8319_; lean_object* v_res_8320_; +v_dir_boxed_8319_ = lean_unbox(v_dir_8316_); +v_res_8320_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(v_dir_boxed_8319_, v_machine_8317_, v_size_8318_); +return v_res_8320_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(lean_object* v_machine_8321_){ +_start: +{ +lean_object* v_config_8322_; lean_object* v_maxChunkLineLength_8323_; lean_object* v___f_8324_; lean_object* v___x_8325_; lean_object* v___x_8326_; lean_object* v___x_8327_; lean_object* v___x_8328_; lean_object* v_snd_8329_; +v_config_8322_ = lean_ctor_get(v_machine_8321_, 2); +v_maxChunkLineLength_8323_ = lean_ctor_get(v_config_8322_, 13); +v___f_8324_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); +lean_inc_ref(v_config_8322_); +v___x_8325_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseChunkSize), 2, 1); +lean_closure_set(v___x_8325_, 0, v_config_8322_); +lean_inc(v_maxChunkLineLength_8323_); +v___x_8326_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8326_, 0, v_maxChunkLineLength_8323_); +v___x_8327_ = lean_box(0); +v___x_8328_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8321_, v___x_8325_, v___x_8326_, v___x_8327_, v___f_8324_); +v_snd_8329_ = lean_ctor_get(v___x_8328_, 1); +lean_inc(v_snd_8329_); +if (lean_obj_tag(v_snd_8329_) == 0) +{ +lean_object* v_fst_8330_; lean_object* v___x_8332_; uint8_t v_isShared_8333_; uint8_t v_isSharedCheck_8338_; +v_fst_8330_ = lean_ctor_get(v___x_8328_, 0); +v_isSharedCheck_8338_ = !lean_is_exclusive(v___x_8328_); +if (v_isSharedCheck_8338_ == 0) +{ +lean_object* v_unused_8339_; +v_unused_8339_ = lean_ctor_get(v___x_8328_, 1); +lean_dec(v_unused_8339_); +v___x_8332_ = v___x_8328_; +v_isShared_8333_ = v_isSharedCheck_8338_; +goto v_resetjp_8331_; +} +else +{ +lean_inc(v_fst_8330_); +lean_dec(v___x_8328_); +v___x_8332_ = lean_box(0); +v_isShared_8333_ = v_isSharedCheck_8338_; +goto v_resetjp_8331_; +} +v_resetjp_8331_: +{ +lean_object* v___x_8334_; lean_object* v___x_8336_; +v___x_8334_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); +if (v_isShared_8333_ == 0) +{ +lean_ctor_set(v___x_8332_, 1, v___x_8334_); +v___x_8336_ = v___x_8332_; +goto v_reusejp_8335_; +} +else +{ +lean_object* v_reuseFailAlloc_8337_; +v_reuseFailAlloc_8337_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8337_, 0, v_fst_8330_); +lean_ctor_set(v_reuseFailAlloc_8337_, 1, v___x_8334_); +v___x_8336_ = v_reuseFailAlloc_8337_; +goto v_reusejp_8335_; +} +v_reusejp_8335_: +{ +return v___x_8336_; +} +} +} +else +{ +lean_object* v_val_8340_; lean_object* v___x_8342_; uint8_t v_isShared_8343_; uint8_t v_isSharedCheck_8445_; +v_val_8340_ = lean_ctor_get(v_snd_8329_, 0); +v_isSharedCheck_8445_ = !lean_is_exclusive(v_snd_8329_); +if (v_isSharedCheck_8445_ == 0) +{ +v___x_8342_ = v_snd_8329_; +v_isShared_8343_ = v_isSharedCheck_8445_; +goto v_resetjp_8341_; +} +else +{ +lean_inc(v_val_8340_); +lean_dec(v_snd_8329_); +v___x_8342_ = lean_box(0); +v_isShared_8343_ = v_isSharedCheck_8445_; +goto v_resetjp_8341_; +} +v_resetjp_8341_: +{ +lean_object* v_fst_8344_; lean_object* v___x_8346_; uint8_t v_isShared_8347_; uint8_t v_isSharedCheck_8443_; +v_fst_8344_ = lean_ctor_get(v___x_8328_, 0); +v_isSharedCheck_8443_ = !lean_is_exclusive(v___x_8328_); +if (v_isSharedCheck_8443_ == 0) +{ +lean_object* v_unused_8444_; +v_unused_8444_ = lean_ctor_get(v___x_8328_, 1); +lean_dec(v_unused_8444_); +v___x_8346_ = v___x_8328_; +v_isShared_8347_ = v_isSharedCheck_8443_; +goto v_resetjp_8345_; +} +else +{ +lean_inc(v_fst_8344_); +lean_dec(v___x_8328_); +v___x_8346_ = lean_box(0); +v_isShared_8347_ = v_isSharedCheck_8443_; +goto v_resetjp_8345_; +} +v_resetjp_8345_: +{ +lean_object* v_config_8348_; lean_object* v_fst_8349_; lean_object* v_snd_8350_; lean_object* v___x_8352_; uint8_t v_isShared_8353_; uint8_t v_isSharedCheck_8442_; +v_config_8348_ = lean_ctor_get(v_fst_8344_, 2); +lean_inc_ref(v_config_8348_); +v_fst_8349_ = lean_ctor_get(v_val_8340_, 0); +v_snd_8350_ = lean_ctor_get(v_val_8340_, 1); +v_isSharedCheck_8442_ = !lean_is_exclusive(v_val_8340_); +if (v_isSharedCheck_8442_ == 0) +{ +v___x_8352_ = v_val_8340_; +v_isShared_8353_ = v_isSharedCheck_8442_; +goto v_resetjp_8351_; +} +else +{ +lean_inc(v_snd_8350_); +lean_inc(v_fst_8349_); +lean_dec(v_val_8340_); +v___x_8352_ = lean_box(0); +v_isShared_8353_ = v_isSharedCheck_8442_; +goto v_resetjp_8351_; +} +v_resetjp_8351_: +{ +lean_object* v_reader_8354_; lean_object* v_writer_8355_; lean_object* v_events_8356_; lean_object* v_error_8357_; lean_object* v_instant_8358_; uint8_t v_keepAlive_8359_; uint8_t v_forcedFlush_8360_; uint8_t v_pullBodyStalled_8361_; lean_object* v___x_8363_; uint8_t v_isShared_8364_; uint8_t v_isSharedCheck_8440_; +v_reader_8354_ = lean_ctor_get(v_fst_8344_, 0); +v_writer_8355_ = lean_ctor_get(v_fst_8344_, 1); +v_events_8356_ = lean_ctor_get(v_fst_8344_, 3); +v_error_8357_ = lean_ctor_get(v_fst_8344_, 4); +v_instant_8358_ = lean_ctor_get(v_fst_8344_, 5); +v_keepAlive_8359_ = lean_ctor_get_uint8(v_fst_8344_, sizeof(void*)*6); +v_forcedFlush_8360_ = lean_ctor_get_uint8(v_fst_8344_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8361_ = lean_ctor_get_uint8(v_fst_8344_, sizeof(void*)*6 + 2); +v_isSharedCheck_8440_ = !lean_is_exclusive(v_fst_8344_); +if (v_isSharedCheck_8440_ == 0) +{ +lean_object* v_unused_8441_; +v_unused_8441_ = lean_ctor_get(v_fst_8344_, 2); +lean_dec(v_unused_8441_); +v___x_8363_ = v_fst_8344_; +v_isShared_8364_ = v_isSharedCheck_8440_; +goto v_resetjp_8362_; +} +else +{ +lean_inc(v_instant_8358_); +lean_inc(v_error_8357_); +lean_inc(v_events_8356_); +lean_inc(v_writer_8355_); +lean_inc(v_reader_8354_); +lean_dec(v_fst_8344_); +v___x_8363_ = lean_box(0); +v_isShared_8364_ = v_isSharedCheck_8440_; +goto v_resetjp_8362_; +} +v_resetjp_8362_: +{ +lean_object* v_maxChunkSize_8365_; lean_object* v_maxBodySize_8366_; uint8_t v___x_8367_; +v_maxChunkSize_8365_ = lean_ctor_get(v_config_8348_, 14); +v_maxBodySize_8366_ = lean_ctor_get(v_config_8348_, 15); +v___x_8367_ = lean_nat_dec_lt(v_maxChunkSize_8365_, v_fst_8349_); +if (v___x_8367_ == 0) +{ +lean_object* v_input_8368_; lean_object* v_messageHead_8369_; lean_object* v_messageCount_8370_; lean_object* v_bodyBytesRead_8371_; lean_object* v_headerBytesRead_8372_; uint8_t v_noMoreInput_8373_; lean_object* v___x_8375_; uint8_t v_isShared_8376_; uint8_t v_isSharedCheck_8413_; +v_input_8368_ = lean_ctor_get(v_reader_8354_, 1); +v_messageHead_8369_ = lean_ctor_get(v_reader_8354_, 2); +v_messageCount_8370_ = lean_ctor_get(v_reader_8354_, 3); +v_bodyBytesRead_8371_ = lean_ctor_get(v_reader_8354_, 4); +v_headerBytesRead_8372_ = lean_ctor_get(v_reader_8354_, 5); +v_noMoreInput_8373_ = lean_ctor_get_uint8(v_reader_8354_, sizeof(void*)*6); +v_isSharedCheck_8413_ = !lean_is_exclusive(v_reader_8354_); +if (v_isSharedCheck_8413_ == 0) +{ +lean_object* v_unused_8414_; +v_unused_8414_ = lean_ctor_get(v_reader_8354_, 0); +lean_dec(v_unused_8414_); +v___x_8375_ = v_reader_8354_; +v_isShared_8376_ = v_isSharedCheck_8413_; +goto v_resetjp_8374_; +} +else +{ +lean_inc(v_headerBytesRead_8372_); +lean_inc(v_bodyBytesRead_8371_); +lean_inc(v_messageCount_8370_); +lean_inc(v_messageHead_8369_); +lean_inc(v_input_8368_); +lean_dec(v_reader_8354_); +v___x_8375_ = lean_box(0); +v_isShared_8376_ = v_isSharedCheck_8413_; +goto v_resetjp_8374_; +} +v_resetjp_8374_: +{ +lean_object* v___x_8377_; uint8_t v___x_8378_; +v___x_8377_ = lean_nat_add(v_bodyBytesRead_8371_, v_fst_8349_); +v___x_8378_ = lean_nat_dec_le(v___x_8377_, v_maxBodySize_8366_); +lean_dec(v___x_8377_); +if (v___x_8378_ == 0) +{ +lean_object* v___x_8379_; lean_object* v___x_8380_; lean_object* v___x_8381_; lean_object* v___x_8383_; +lean_dec(v_error_8357_); +lean_dec(v_snd_8350_); +lean_dec(v_fst_8349_); +lean_del_object(v___x_8342_); +v___x_8379_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_8380_ = lean_array_push(v_events_8356_, v___x_8379_); +v___x_8381_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_8376_ == 0) +{ +lean_ctor_set(v___x_8375_, 0, v___x_8381_); +v___x_8383_ = v___x_8375_; +goto v_reusejp_8382_; +} +else +{ +lean_object* v_reuseFailAlloc_8395_; +v_reuseFailAlloc_8395_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8395_, 0, v___x_8381_); +lean_ctor_set(v_reuseFailAlloc_8395_, 1, v_input_8368_); +lean_ctor_set(v_reuseFailAlloc_8395_, 2, v_messageHead_8369_); +lean_ctor_set(v_reuseFailAlloc_8395_, 3, v_messageCount_8370_); +lean_ctor_set(v_reuseFailAlloc_8395_, 4, v_bodyBytesRead_8371_); +lean_ctor_set(v_reuseFailAlloc_8395_, 5, v_headerBytesRead_8372_); +lean_ctor_set_uint8(v_reuseFailAlloc_8395_, sizeof(void*)*6, v_noMoreInput_8373_); +v___x_8383_ = v_reuseFailAlloc_8395_; +goto v_reusejp_8382_; +} +v_reusejp_8382_: +{ +lean_object* v___x_8384_; lean_object* v___x_8386_; +v___x_8384_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_8364_ == 0) +{ +lean_ctor_set(v___x_8363_, 4, v___x_8384_); +lean_ctor_set(v___x_8363_, 3, v___x_8380_); +lean_ctor_set(v___x_8363_, 0, v___x_8383_); +v___x_8386_ = v___x_8363_; +goto v_reusejp_8385_; +} +else +{ +lean_object* v_reuseFailAlloc_8394_; +v_reuseFailAlloc_8394_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8394_, 0, v___x_8383_); +lean_ctor_set(v_reuseFailAlloc_8394_, 1, v_writer_8355_); +lean_ctor_set(v_reuseFailAlloc_8394_, 2, v_config_8348_); +lean_ctor_set(v_reuseFailAlloc_8394_, 3, v___x_8380_); +lean_ctor_set(v_reuseFailAlloc_8394_, 4, v___x_8384_); +lean_ctor_set(v_reuseFailAlloc_8394_, 5, v_instant_8358_); +lean_ctor_set_uint8(v_reuseFailAlloc_8394_, sizeof(void*)*6, v_keepAlive_8359_); +lean_ctor_set_uint8(v_reuseFailAlloc_8394_, sizeof(void*)*6 + 1, v_forcedFlush_8360_); +lean_ctor_set_uint8(v_reuseFailAlloc_8394_, sizeof(void*)*6 + 2, v_pullBodyStalled_8361_); +v___x_8386_ = v_reuseFailAlloc_8394_; +goto v_reusejp_8385_; +} +v_reusejp_8385_: +{ +lean_object* v___x_8387_; lean_object* v___x_8389_; +v___x_8387_ = lean_box(v___x_8378_); +if (v_isShared_8353_ == 0) +{ +lean_ctor_set(v___x_8352_, 1, v___x_8387_); +lean_ctor_set(v___x_8352_, 0, v___x_8327_); +v___x_8389_ = v___x_8352_; +goto v_reusejp_8388_; +} +else +{ +lean_object* v_reuseFailAlloc_8393_; +v_reuseFailAlloc_8393_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8393_, 0, v___x_8327_); +lean_ctor_set(v_reuseFailAlloc_8393_, 1, v___x_8387_); +v___x_8389_ = v_reuseFailAlloc_8393_; +goto v_reusejp_8388_; +} +v_reusejp_8388_: +{ +lean_object* v___x_8391_; +if (v_isShared_8347_ == 0) +{ +lean_ctor_set(v___x_8346_, 1, v___x_8389_); +lean_ctor_set(v___x_8346_, 0, v___x_8386_); +v___x_8391_ = v___x_8346_; +goto v_reusejp_8390_; +} +else +{ +lean_object* v_reuseFailAlloc_8392_; +v_reuseFailAlloc_8392_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8392_, 0, v___x_8386_); +lean_ctor_set(v_reuseFailAlloc_8392_, 1, v___x_8389_); +v___x_8391_ = v_reuseFailAlloc_8392_; +goto v_reusejp_8390_; +} +v_reusejp_8390_: +{ +return v___x_8391_; +} +} +} +} +} +else +{ +lean_object* v___x_8396_; lean_object* v___x_8398_; +v___x_8396_ = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(v___x_8396_, 0, v_snd_8350_); +lean_ctor_set(v___x_8396_, 1, v_fst_8349_); +if (v_isShared_8343_ == 0) +{ +lean_ctor_set_tag(v___x_8342_, 2); +lean_ctor_set(v___x_8342_, 0, v___x_8396_); +v___x_8398_ = v___x_8342_; +goto v_reusejp_8397_; +} +else +{ +lean_object* v_reuseFailAlloc_8412_; +v_reuseFailAlloc_8412_ = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(v_reuseFailAlloc_8412_, 0, v___x_8396_); +v___x_8398_ = v_reuseFailAlloc_8412_; +goto v_reusejp_8397_; +} +v_reusejp_8397_: +{ +lean_object* v___x_8400_; +if (v_isShared_8376_ == 0) +{ +lean_ctor_set(v___x_8375_, 0, v___x_8398_); +v___x_8400_ = v___x_8375_; +goto v_reusejp_8399_; +} +else +{ +lean_object* v_reuseFailAlloc_8411_; +v_reuseFailAlloc_8411_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8411_, 0, v___x_8398_); +lean_ctor_set(v_reuseFailAlloc_8411_, 1, v_input_8368_); +lean_ctor_set(v_reuseFailAlloc_8411_, 2, v_messageHead_8369_); +lean_ctor_set(v_reuseFailAlloc_8411_, 3, v_messageCount_8370_); +lean_ctor_set(v_reuseFailAlloc_8411_, 4, v_bodyBytesRead_8371_); +lean_ctor_set(v_reuseFailAlloc_8411_, 5, v_headerBytesRead_8372_); +lean_ctor_set_uint8(v_reuseFailAlloc_8411_, sizeof(void*)*6, v_noMoreInput_8373_); +v___x_8400_ = v_reuseFailAlloc_8411_; +goto v_reusejp_8399_; +} +v_reusejp_8399_: +{ +lean_object* v___x_8402_; +if (v_isShared_8364_ == 0) +{ +lean_ctor_set(v___x_8363_, 0, v___x_8400_); +v___x_8402_ = v___x_8363_; +goto v_reusejp_8401_; +} +else +{ +lean_object* v_reuseFailAlloc_8410_; +v_reuseFailAlloc_8410_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8410_, 0, v___x_8400_); +lean_ctor_set(v_reuseFailAlloc_8410_, 1, v_writer_8355_); +lean_ctor_set(v_reuseFailAlloc_8410_, 2, v_config_8348_); +lean_ctor_set(v_reuseFailAlloc_8410_, 3, v_events_8356_); +lean_ctor_set(v_reuseFailAlloc_8410_, 4, v_error_8357_); +lean_ctor_set(v_reuseFailAlloc_8410_, 5, v_instant_8358_); +lean_ctor_set_uint8(v_reuseFailAlloc_8410_, sizeof(void*)*6, v_keepAlive_8359_); +lean_ctor_set_uint8(v_reuseFailAlloc_8410_, sizeof(void*)*6 + 1, v_forcedFlush_8360_); +lean_ctor_set_uint8(v_reuseFailAlloc_8410_, sizeof(void*)*6 + 2, v_pullBodyStalled_8361_); +v___x_8402_ = v_reuseFailAlloc_8410_; +goto v_reusejp_8401_; +} +v_reusejp_8401_: +{ +lean_object* v___x_8403_; lean_object* v___x_8405_; +v___x_8403_ = lean_box(v___x_8378_); +if (v_isShared_8353_ == 0) +{ +lean_ctor_set(v___x_8352_, 1, v___x_8403_); +lean_ctor_set(v___x_8352_, 0, v___x_8327_); +v___x_8405_ = v___x_8352_; +goto v_reusejp_8404_; +} +else +{ +lean_object* v_reuseFailAlloc_8409_; +v_reuseFailAlloc_8409_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8409_, 0, v___x_8327_); +lean_ctor_set(v_reuseFailAlloc_8409_, 1, v___x_8403_); +v___x_8405_ = v_reuseFailAlloc_8409_; +goto v_reusejp_8404_; +} +v_reusejp_8404_: +{ +lean_object* v___x_8407_; +if (v_isShared_8347_ == 0) +{ +lean_ctor_set(v___x_8346_, 1, v___x_8405_); +lean_ctor_set(v___x_8346_, 0, v___x_8402_); +v___x_8407_ = v___x_8346_; +goto v_reusejp_8406_; +} +else +{ +lean_object* v_reuseFailAlloc_8408_; +v_reuseFailAlloc_8408_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8408_, 0, v___x_8402_); +lean_ctor_set(v_reuseFailAlloc_8408_, 1, v___x_8405_); +v___x_8407_ = v_reuseFailAlloc_8408_; +goto v_reusejp_8406_; +} +v_reusejp_8406_: +{ +return v___x_8407_; +} +} +} +} +} +} +} +} +else +{ +lean_object* v_input_8415_; lean_object* v_messageHead_8416_; lean_object* v_messageCount_8417_; lean_object* v_bodyBytesRead_8418_; lean_object* v_headerBytesRead_8419_; uint8_t v_noMoreInput_8420_; lean_object* v___x_8422_; uint8_t v_isShared_8423_; uint8_t v_isSharedCheck_8438_; +lean_dec(v_error_8357_); +lean_dec(v_snd_8350_); +lean_dec(v_fst_8349_); +lean_del_object(v___x_8346_); +lean_del_object(v___x_8342_); +v_input_8415_ = lean_ctor_get(v_reader_8354_, 1); +v_messageHead_8416_ = lean_ctor_get(v_reader_8354_, 2); +v_messageCount_8417_ = lean_ctor_get(v_reader_8354_, 3); +v_bodyBytesRead_8418_ = lean_ctor_get(v_reader_8354_, 4); +v_headerBytesRead_8419_ = lean_ctor_get(v_reader_8354_, 5); +v_noMoreInput_8420_ = lean_ctor_get_uint8(v_reader_8354_, sizeof(void*)*6); +v_isSharedCheck_8438_ = !lean_is_exclusive(v_reader_8354_); +if (v_isSharedCheck_8438_ == 0) +{ +lean_object* v_unused_8439_; +v_unused_8439_ = lean_ctor_get(v_reader_8354_, 0); +lean_dec(v_unused_8439_); +v___x_8422_ = v_reader_8354_; +v_isShared_8423_ = v_isSharedCheck_8438_; +goto v_resetjp_8421_; +} +else +{ +lean_inc(v_headerBytesRead_8419_); +lean_inc(v_bodyBytesRead_8418_); +lean_inc(v_messageCount_8417_); +lean_inc(v_messageHead_8416_); +lean_inc(v_input_8415_); +lean_dec(v_reader_8354_); +v___x_8422_ = lean_box(0); +v_isShared_8423_ = v_isSharedCheck_8438_; +goto v_resetjp_8421_; +} +v_resetjp_8421_: +{ +lean_object* v___x_8424_; lean_object* v___x_8425_; lean_object* v___x_8426_; lean_object* v___x_8428_; +v___x_8424_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__0)); +v___x_8425_ = lean_array_push(v_events_8356_, v___x_8424_); +v___x_8426_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__1)); +if (v_isShared_8423_ == 0) +{ +lean_ctor_set(v___x_8422_, 0, v___x_8426_); +v___x_8428_ = v___x_8422_; +goto v_reusejp_8427_; +} +else +{ +lean_object* v_reuseFailAlloc_8437_; +v_reuseFailAlloc_8437_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8437_, 0, v___x_8426_); +lean_ctor_set(v_reuseFailAlloc_8437_, 1, v_input_8415_); +lean_ctor_set(v_reuseFailAlloc_8437_, 2, v_messageHead_8416_); +lean_ctor_set(v_reuseFailAlloc_8437_, 3, v_messageCount_8417_); +lean_ctor_set(v_reuseFailAlloc_8437_, 4, v_bodyBytesRead_8418_); +lean_ctor_set(v_reuseFailAlloc_8437_, 5, v_headerBytesRead_8419_); +lean_ctor_set_uint8(v_reuseFailAlloc_8437_, sizeof(void*)*6, v_noMoreInput_8420_); +v___x_8428_ = v_reuseFailAlloc_8437_; +goto v_reusejp_8427_; +} +v_reusejp_8427_: +{ +lean_object* v___x_8429_; lean_object* v___x_8431_; +v___x_8429_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders___closed__2)); +if (v_isShared_8364_ == 0) +{ +lean_ctor_set(v___x_8363_, 4, v___x_8429_); +lean_ctor_set(v___x_8363_, 3, v___x_8425_); +lean_ctor_set(v___x_8363_, 0, v___x_8428_); +v___x_8431_ = v___x_8363_; +goto v_reusejp_8430_; +} +else +{ +lean_object* v_reuseFailAlloc_8436_; +v_reuseFailAlloc_8436_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8436_, 0, v___x_8428_); +lean_ctor_set(v_reuseFailAlloc_8436_, 1, v_writer_8355_); +lean_ctor_set(v_reuseFailAlloc_8436_, 2, v_config_8348_); +lean_ctor_set(v_reuseFailAlloc_8436_, 3, v___x_8425_); +lean_ctor_set(v_reuseFailAlloc_8436_, 4, v___x_8429_); +lean_ctor_set(v_reuseFailAlloc_8436_, 5, v_instant_8358_); +lean_ctor_set_uint8(v_reuseFailAlloc_8436_, sizeof(void*)*6, v_keepAlive_8359_); +lean_ctor_set_uint8(v_reuseFailAlloc_8436_, sizeof(void*)*6 + 1, v_forcedFlush_8360_); +lean_ctor_set_uint8(v_reuseFailAlloc_8436_, sizeof(void*)*6 + 2, v_pullBodyStalled_8361_); +v___x_8431_ = v_reuseFailAlloc_8436_; +goto v_reusejp_8430_; +} +v_reusejp_8430_: +{ +lean_object* v___x_8432_; lean_object* v___x_8434_; +v___x_8432_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); +if (v_isShared_8353_ == 0) +{ +lean_ctor_set(v___x_8352_, 1, v___x_8432_); +lean_ctor_set(v___x_8352_, 0, v___x_8431_); +v___x_8434_ = v___x_8352_; +goto v_reusejp_8433_; +} +else +{ +lean_object* v_reuseFailAlloc_8435_; +v_reuseFailAlloc_8435_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8435_, 0, v___x_8431_); +lean_ctor_set(v_reuseFailAlloc_8435_, 1, v___x_8432_); +v___x_8434_ = v_reuseFailAlloc_8435_; +goto v_reusejp_8433_; +} +v_reusejp_8433_: +{ +return v___x_8434_; +} +} +} +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody(uint8_t v_dir_8446_, lean_object* v_machine_8447_){ +_start: +{ +lean_object* v___x_8448_; +v___x_8448_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(v_machine_8447_); +return v___x_8448_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___boxed(lean_object* v_dir_8449_, lean_object* v_machine_8450_){ +_start: +{ +uint8_t v_dir_boxed_8451_; lean_object* v_res_8452_; +v_dir_boxed_8451_ = lean_unbox(v_dir_8449_); +v_res_8452_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody(v_dir_boxed_8451_, v_machine_8450_); +return v_res_8452_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(uint8_t v_dir_8453_, lean_object* v_machine_8454_, lean_object* v_ext_8455_){ +_start: +{ +lean_object* v_config_8456_; lean_object* v___f_8457_; lean_object* v___x_8458_; lean_object* v___x_8459_; lean_object* v___x_8460_; lean_object* v_snd_8461_; +v_config_8456_ = lean_ctor_get(v_machine_8454_, 2); +v___f_8457_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); +lean_inc_ref(v_config_8456_); +v___x_8458_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseLastChunkBody), 2, 1); +lean_closure_set(v___x_8458_, 0, v_config_8456_); +v___x_8459_ = lean_box(0); +v___x_8460_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8454_, v___x_8458_, v___x_8459_, v___x_8459_, v___f_8457_); +v_snd_8461_ = lean_ctor_get(v___x_8460_, 1); +lean_inc(v_snd_8461_); +if (lean_obj_tag(v_snd_8461_) == 0) +{ +lean_object* v_fst_8462_; lean_object* v___x_8464_; uint8_t v_isShared_8465_; uint8_t v_isSharedCheck_8470_; +lean_dec_ref(v_ext_8455_); +v_fst_8462_ = lean_ctor_get(v___x_8460_, 0); +v_isSharedCheck_8470_ = !lean_is_exclusive(v___x_8460_); +if (v_isSharedCheck_8470_ == 0) +{ +lean_object* v_unused_8471_; +v_unused_8471_ = lean_ctor_get(v___x_8460_, 1); +lean_dec(v_unused_8471_); +v___x_8464_ = v___x_8460_; +v_isShared_8465_ = v_isSharedCheck_8470_; +goto v_resetjp_8463_; +} +else +{ +lean_inc(v_fst_8462_); +lean_dec(v___x_8460_); +v___x_8464_ = lean_box(0); +v_isShared_8465_ = v_isSharedCheck_8470_; +goto v_resetjp_8463_; +} +v_resetjp_8463_: +{ +lean_object* v___x_8466_; lean_object* v___x_8468_; +v___x_8466_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); +if (v_isShared_8465_ == 0) +{ +lean_ctor_set(v___x_8464_, 1, v___x_8466_); +v___x_8468_ = v___x_8464_; +goto v_reusejp_8467_; +} +else +{ +lean_object* v_reuseFailAlloc_8469_; +v_reuseFailAlloc_8469_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8469_, 0, v_fst_8462_); +lean_ctor_set(v_reuseFailAlloc_8469_, 1, v___x_8466_); +v___x_8468_ = v_reuseFailAlloc_8469_; +goto v_reusejp_8467_; +} +v_reusejp_8467_: +{ +return v___x_8468_; +} +} +} +else +{ +lean_object* v_fst_8472_; lean_object* v___x_8473_; uint8_t v___x_8474_; uint8_t v___x_8475_; lean_object* v___x_8476_; lean_object* v___x_8477_; +lean_dec_ref(v_snd_8461_); +v_fst_8472_ = lean_ctor_get(v___x_8460_, 0); +lean_inc(v_fst_8472_); +lean_dec_ref(v___x_8460_); +v___x_8473_ = lean_box(5); +v___x_8474_ = 1; +v___x_8475_ = 0; +v___x_8476_ = l_ByteSlice_empty; +v___x_8477_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8453_, v_fst_8472_, v___x_8473_, v___x_8474_, v___x_8475_, v_ext_8455_, v___x_8476_, v___x_8474_); +return v___x_8477_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState___boxed(lean_object* v_dir_8478_, lean_object* v_machine_8479_, lean_object* v_ext_8480_){ +_start: +{ +uint8_t v_dir_boxed_8481_; lean_object* v_res_8482_; +v_dir_boxed_8481_ = lean_unbox(v_dir_8478_); +v_res_8482_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(v_dir_boxed_8481_, v_machine_8479_, v_ext_8480_); +return v_res_8482_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(uint8_t v_dir_8483_, lean_object* v_machine_8484_, lean_object* v_ext_8485_, lean_object* v_size_8486_){ +_start: +{ +lean_object* v___f_8487_; lean_object* v___x_8488_; lean_object* v___x_8489_; lean_object* v___x_8490_; lean_object* v___x_8491_; lean_object* v_snd_8492_; +v___f_8487_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__0)); +lean_inc(v_size_8486_); +v___x_8488_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseChunkSizedData___boxed), 2, 1); +lean_closure_set(v___x_8488_, 0, v_size_8486_); +v___x_8489_ = lean_box(0); +v___x_8490_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8490_, 0, v_size_8486_); +v___x_8491_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8484_, v___x_8488_, v___x_8489_, v___x_8490_, v___f_8487_); +v_snd_8492_ = lean_ctor_get(v___x_8491_, 1); +lean_inc(v_snd_8492_); +if (lean_obj_tag(v_snd_8492_) == 0) +{ +lean_object* v_fst_8493_; lean_object* v___x_8495_; uint8_t v_isShared_8496_; uint8_t v_isSharedCheck_8501_; +lean_dec_ref(v_ext_8485_); +v_fst_8493_ = lean_ctor_get(v___x_8491_, 0); +v_isSharedCheck_8501_ = !lean_is_exclusive(v___x_8491_); +if (v_isSharedCheck_8501_ == 0) +{ +lean_object* v_unused_8502_; +v_unused_8502_ = lean_ctor_get(v___x_8491_, 1); +lean_dec(v_unused_8502_); +v___x_8495_ = v___x_8491_; +v_isShared_8496_ = v_isSharedCheck_8501_; +goto v_resetjp_8494_; +} +else +{ +lean_inc(v_fst_8493_); +lean_dec(v___x_8491_); +v___x_8495_ = lean_box(0); +v_isShared_8496_ = v_isSharedCheck_8501_; +goto v_resetjp_8494_; +} +v_resetjp_8494_: +{ +lean_object* v___x_8497_; lean_object* v___x_8499_; +v___x_8497_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody___closed__1)); +if (v_isShared_8496_ == 0) +{ +lean_ctor_set(v___x_8495_, 1, v___x_8497_); +v___x_8499_ = v___x_8495_; +goto v_reusejp_8498_; +} +else +{ +lean_object* v_reuseFailAlloc_8500_; +v_reuseFailAlloc_8500_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8500_, 0, v_fst_8493_); +lean_ctor_set(v_reuseFailAlloc_8500_, 1, v___x_8497_); +v___x_8499_ = v_reuseFailAlloc_8500_; +goto v_reusejp_8498_; +} +v_reusejp_8498_: +{ +return v___x_8499_; +} +} +} +else +{ +lean_object* v_val_8503_; lean_object* v___x_8505_; uint8_t v_isShared_8506_; uint8_t v_isSharedCheck_8528_; +v_val_8503_ = lean_ctor_get(v_snd_8492_, 0); +v_isSharedCheck_8528_ = !lean_is_exclusive(v_snd_8492_); +if (v_isSharedCheck_8528_ == 0) +{ +v___x_8505_ = v_snd_8492_; +v_isShared_8506_ = v_isSharedCheck_8528_; +goto v_resetjp_8504_; +} +else +{ +lean_inc(v_val_8503_); +lean_dec(v_snd_8492_); +v___x_8505_ = lean_box(0); +v_isShared_8506_ = v_isSharedCheck_8528_; +goto v_resetjp_8504_; +} +v_resetjp_8504_: +{ +if (lean_obj_tag(v_val_8503_) == 0) +{ +lean_object* v_fst_8507_; lean_object* v_data_8508_; lean_object* v___x_8509_; uint8_t v___x_8510_; lean_object* v___x_8511_; +lean_del_object(v___x_8505_); +v_fst_8507_ = lean_ctor_get(v___x_8491_, 0); +lean_inc(v_fst_8507_); +lean_dec_ref(v___x_8491_); +v_data_8508_ = lean_ctor_get(v_val_8503_, 0); +lean_inc_ref(v_data_8508_); +lean_dec_ref(v_val_8503_); +v___x_8509_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_readerStateForMode___redArg___closed__0)); +v___x_8510_ = 0; +v___x_8511_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8483_, v_fst_8507_, v___x_8509_, v___x_8510_, v___x_8510_, v_ext_8485_, v_data_8508_, v___x_8510_); +return v___x_8511_; +} +else +{ +lean_object* v_fst_8512_; lean_object* v_data_8513_; lean_object* v_remaining_8514_; lean_object* v___x_8516_; uint8_t v_isShared_8517_; uint8_t v_isSharedCheck_8527_; +v_fst_8512_ = lean_ctor_get(v___x_8491_, 0); +lean_inc(v_fst_8512_); +lean_dec_ref(v___x_8491_); +v_data_8513_ = lean_ctor_get(v_val_8503_, 0); +v_remaining_8514_ = lean_ctor_get(v_val_8503_, 1); +v_isSharedCheck_8527_ = !lean_is_exclusive(v_val_8503_); +if (v_isSharedCheck_8527_ == 0) +{ +v___x_8516_ = v_val_8503_; +v_isShared_8517_ = v_isSharedCheck_8527_; +goto v_resetjp_8515_; +} +else +{ +lean_inc(v_remaining_8514_); +lean_inc(v_data_8513_); +lean_dec(v_val_8503_); +v___x_8516_ = lean_box(0); +v_isShared_8517_ = v_isSharedCheck_8527_; +goto v_resetjp_8515_; +} +v_resetjp_8515_: +{ +lean_object* v___x_8519_; +lean_inc_ref(v_ext_8485_); +if (v_isShared_8517_ == 0) +{ +lean_ctor_set_tag(v___x_8516_, 2); +lean_ctor_set(v___x_8516_, 0, v_ext_8485_); +v___x_8519_ = v___x_8516_; +goto v_reusejp_8518_; +} +else +{ +lean_object* v_reuseFailAlloc_8526_; +v_reuseFailAlloc_8526_ = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8526_, 0, v_ext_8485_); +lean_ctor_set(v_reuseFailAlloc_8526_, 1, v_remaining_8514_); +v___x_8519_ = v_reuseFailAlloc_8526_; +goto v_reusejp_8518_; +} +v_reusejp_8518_: +{ +lean_object* v___x_8521_; +if (v_isShared_8506_ == 0) +{ +lean_ctor_set_tag(v___x_8505_, 2); +lean_ctor_set(v___x_8505_, 0, v___x_8519_); +v___x_8521_ = v___x_8505_; +goto v_reusejp_8520_; +} +else +{ +lean_object* v_reuseFailAlloc_8525_; +v_reuseFailAlloc_8525_ = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(v_reuseFailAlloc_8525_, 0, v___x_8519_); +v___x_8521_ = v_reuseFailAlloc_8525_; +goto v_reusejp_8520_; +} +v_reusejp_8520_: +{ +uint8_t v___x_8522_; uint8_t v___x_8523_; lean_object* v___x_8524_; +v___x_8522_ = 0; +v___x_8523_ = 1; +v___x_8524_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8483_, v_fst_8512_, v___x_8521_, v___x_8522_, v___x_8523_, v_ext_8485_, v_data_8513_, v___x_8522_); +return v___x_8524_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState___boxed(lean_object* v_dir_8529_, lean_object* v_machine_8530_, lean_object* v_ext_8531_, lean_object* v_size_8532_){ +_start: +{ +uint8_t v_dir_boxed_8533_; lean_object* v_res_8534_; +v_dir_boxed_8533_ = lean_unbox(v_dir_8529_); +v_res_8534_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(v_dir_boxed_8533_, v_machine_8530_, v_ext_8531_, v_size_8532_); +return v_res_8534_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(uint8_t v_dir_8537_, lean_object* v_machine_8538_){ +_start: +{ +lean_object* v_reader_8539_; lean_object* v_input_8540_; lean_object* v_writer_8541_; lean_object* v_config_8542_; lean_object* v_events_8543_; lean_object* v_error_8544_; lean_object* v_instant_8545_; uint8_t v_keepAlive_8546_; uint8_t v_forcedFlush_8547_; uint8_t v_pullBodyStalled_8548_; lean_object* v_state_8549_; lean_object* v_messageHead_8550_; lean_object* v_messageCount_8551_; lean_object* v_bodyBytesRead_8552_; lean_object* v_headerBytesRead_8553_; uint8_t v_noMoreInput_8554_; lean_object* v_array_8555_; lean_object* v_idx_8556_; lean_object* v___x_8558_; uint8_t v_isShared_8559_; uint8_t v_isSharedCheck_8601_; +v_reader_8539_ = lean_ctor_get(v_machine_8538_, 0); +v_input_8540_ = lean_ctor_get(v_reader_8539_, 1); +lean_inc_ref(v_input_8540_); +v_writer_8541_ = lean_ctor_get(v_machine_8538_, 1); +v_config_8542_ = lean_ctor_get(v_machine_8538_, 2); +v_events_8543_ = lean_ctor_get(v_machine_8538_, 3); +v_error_8544_ = lean_ctor_get(v_machine_8538_, 4); +v_instant_8545_ = lean_ctor_get(v_machine_8538_, 5); +v_keepAlive_8546_ = lean_ctor_get_uint8(v_machine_8538_, sizeof(void*)*6); +v_forcedFlush_8547_ = lean_ctor_get_uint8(v_machine_8538_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8548_ = lean_ctor_get_uint8(v_machine_8538_, sizeof(void*)*6 + 2); +v_state_8549_ = lean_ctor_get(v_reader_8539_, 0); +v_messageHead_8550_ = lean_ctor_get(v_reader_8539_, 2); +v_messageCount_8551_ = lean_ctor_get(v_reader_8539_, 3); +v_bodyBytesRead_8552_ = lean_ctor_get(v_reader_8539_, 4); +v_headerBytesRead_8553_ = lean_ctor_get(v_reader_8539_, 5); +v_noMoreInput_8554_ = lean_ctor_get_uint8(v_reader_8539_, sizeof(void*)*6); +v_array_8555_ = lean_ctor_get(v_input_8540_, 0); +v_idx_8556_ = lean_ctor_get(v_input_8540_, 1); +v_isSharedCheck_8601_ = !lean_is_exclusive(v_input_8540_); +if (v_isSharedCheck_8601_ == 0) +{ +v___x_8558_ = v_input_8540_; +v_isShared_8559_ = v_isSharedCheck_8601_; +goto v_resetjp_8557_; +} +else +{ +lean_inc(v_idx_8556_); +lean_inc(v_array_8555_); +lean_dec(v_input_8540_); +v___x_8558_ = lean_box(0); +v_isShared_8559_ = v_isSharedCheck_8601_; +goto v_resetjp_8557_; +} +v_resetjp_8557_: +{ +lean_object* v___x_8560_; uint8_t v___x_8561_; lean_object* v___y_8563_; +v___x_8560_ = lean_byte_array_size(v_array_8555_); +v___x_8561_ = lean_nat_dec_le(v___x_8560_, v_idx_8556_); +if (v___x_8561_ == 0) +{ +lean_object* v___x_8575_; uint8_t v___x_8576_; +lean_inc(v_headerBytesRead_8553_); +lean_inc(v_bodyBytesRead_8552_); +lean_inc(v_messageCount_8551_); +lean_inc(v_messageHead_8550_); +lean_inc(v_state_8549_); +lean_inc(v_instant_8545_); +lean_inc(v_error_8544_); +lean_inc_ref(v_events_8543_); +lean_inc_ref(v_config_8542_); +lean_inc_ref(v_writer_8541_); +lean_dec_ref(v_machine_8538_); +v___x_8575_ = lean_unsigned_to_nat(0u); +v___x_8576_ = lean_nat_dec_le(v_idx_8556_, v___x_8575_); +if (v___x_8576_ == 0) +{ +lean_inc(v_idx_8556_); +v___y_8563_ = v_idx_8556_; +goto v___jp_8562_; +} +else +{ +v___y_8563_ = v___x_8575_; +goto v___jp_8562_; +} +} +else +{ +lean_del_object(v___x_8558_); +lean_dec(v_idx_8556_); +lean_dec_ref(v_array_8555_); +if (v_noMoreInput_8554_ == 0) +{ +lean_object* v___x_8578_; uint8_t v_isShared_8579_; uint8_t v_isSharedCheck_8589_; +lean_inc(v_instant_8545_); +lean_inc(v_error_8544_); +lean_inc_ref(v_events_8543_); +lean_inc_ref(v_config_8542_); +lean_inc_ref(v_writer_8541_); +lean_inc_ref(v_reader_8539_); +v_isSharedCheck_8589_ = !lean_is_exclusive(v_machine_8538_); +if (v_isSharedCheck_8589_ == 0) +{ +lean_object* v_unused_8590_; lean_object* v_unused_8591_; lean_object* v_unused_8592_; lean_object* v_unused_8593_; lean_object* v_unused_8594_; lean_object* v_unused_8595_; +v_unused_8590_ = lean_ctor_get(v_machine_8538_, 5); +lean_dec(v_unused_8590_); +v_unused_8591_ = lean_ctor_get(v_machine_8538_, 4); +lean_dec(v_unused_8591_); +v_unused_8592_ = lean_ctor_get(v_machine_8538_, 3); +lean_dec(v_unused_8592_); +v_unused_8593_ = lean_ctor_get(v_machine_8538_, 2); +lean_dec(v_unused_8593_); +v_unused_8594_ = lean_ctor_get(v_machine_8538_, 1); +lean_dec(v_unused_8594_); +v_unused_8595_ = lean_ctor_get(v_machine_8538_, 0); +lean_dec(v_unused_8595_); +v___x_8578_ = v_machine_8538_; +v_isShared_8579_ = v_isSharedCheck_8589_; +goto v_resetjp_8577_; +} +else +{ +lean_dec(v_machine_8538_); +v___x_8578_ = lean_box(0); +v_isShared_8579_ = v_isSharedCheck_8589_; +goto v_resetjp_8577_; +} +v_resetjp_8577_: +{ +lean_object* v___x_8580_; lean_object* v___x_8581_; lean_object* v___x_8582_; lean_object* v___x_8584_; +v___x_8580_ = lean_box(0); +v___x_8581_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___closed__0)); +v___x_8582_ = lean_array_push(v_events_8543_, v___x_8581_); +if (v_isShared_8579_ == 0) +{ +lean_ctor_set(v___x_8578_, 3, v___x_8582_); +v___x_8584_ = v___x_8578_; +goto v_reusejp_8583_; +} +else +{ +lean_object* v_reuseFailAlloc_8588_; +v_reuseFailAlloc_8588_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8588_, 0, v_reader_8539_); +lean_ctor_set(v_reuseFailAlloc_8588_, 1, v_writer_8541_); +lean_ctor_set(v_reuseFailAlloc_8588_, 2, v_config_8542_); +lean_ctor_set(v_reuseFailAlloc_8588_, 3, v___x_8582_); +lean_ctor_set(v_reuseFailAlloc_8588_, 4, v_error_8544_); +lean_ctor_set(v_reuseFailAlloc_8588_, 5, v_instant_8545_); +lean_ctor_set_uint8(v_reuseFailAlloc_8588_, sizeof(void*)*6, v_keepAlive_8546_); +lean_ctor_set_uint8(v_reuseFailAlloc_8588_, sizeof(void*)*6 + 1, v_forcedFlush_8547_); +lean_ctor_set_uint8(v_reuseFailAlloc_8588_, sizeof(void*)*6 + 2, v_pullBodyStalled_8548_); +v___x_8584_ = v_reuseFailAlloc_8588_; +goto v_reusejp_8583_; +} +v_reusejp_8583_: +{ +lean_object* v___x_8585_; lean_object* v___x_8586_; lean_object* v___x_8587_; +v___x_8585_ = lean_box(v_noMoreInput_8554_); +v___x_8586_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8586_, 0, v___x_8580_); +lean_ctor_set(v___x_8586_, 1, v___x_8585_); +v___x_8587_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8587_, 0, v___x_8584_); +lean_ctor_set(v___x_8587_, 1, v___x_8586_); +return v___x_8587_; +} +} +} +else +{ +lean_object* v___x_8596_; uint8_t v___x_8597_; lean_object* v___x_8598_; lean_object* v___x_8599_; lean_object* v___x_8600_; +v___x_8596_ = lean_box(5); +v___x_8597_ = 0; +v___x_8598_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); +v___x_8599_ = l_ByteSlice_empty; +v___x_8600_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8537_, v_machine_8538_, v___x_8596_, v_noMoreInput_8554_, v___x_8597_, v___x_8598_, v___x_8599_, v_noMoreInput_8554_); +return v___x_8600_; +} +} +v___jp_8562_: +{ +lean_object* v___x_8564_; lean_object* v___x_8565_; lean_object* v___x_8566_; lean_object* v___x_8568_; +lean_inc_ref(v_array_8555_); +v___x_8564_ = l_ByteArray_toByteSlice(v_array_8555_, v___y_8563_, v___x_8560_); +v___x_8565_ = lean_nat_sub(v___x_8560_, v_idx_8556_); +v___x_8566_ = lean_nat_add(v_idx_8556_, v___x_8565_); +lean_dec(v___x_8565_); +lean_dec(v_idx_8556_); +if (v_isShared_8559_ == 0) +{ +lean_ctor_set(v___x_8558_, 1, v___x_8566_); +v___x_8568_ = v___x_8558_; +goto v_reusejp_8567_; +} +else +{ +lean_object* v_reuseFailAlloc_8574_; +v_reuseFailAlloc_8574_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_8574_, 0, v_array_8555_); +lean_ctor_set(v_reuseFailAlloc_8574_, 1, v___x_8566_); +v___x_8568_ = v_reuseFailAlloc_8574_; +goto v_reusejp_8567_; +} +v_reusejp_8567_: +{ +lean_object* v___x_8569_; lean_object* v_machine_8570_; lean_object* v___x_8571_; lean_object* v___x_8572_; lean_object* v___x_8573_; +v___x_8569_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_8569_, 0, v_state_8549_); +lean_ctor_set(v___x_8569_, 1, v___x_8568_); +lean_ctor_set(v___x_8569_, 2, v_messageHead_8550_); +lean_ctor_set(v___x_8569_, 3, v_messageCount_8551_); +lean_ctor_set(v___x_8569_, 4, v_bodyBytesRead_8552_); +lean_ctor_set(v___x_8569_, 5, v_headerBytesRead_8553_); +lean_ctor_set_uint8(v___x_8569_, sizeof(void*)*6, v_noMoreInput_8554_); +v_machine_8570_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_8570_, 0, v___x_8569_); +lean_ctor_set(v_machine_8570_, 1, v_writer_8541_); +lean_ctor_set(v_machine_8570_, 2, v_config_8542_); +lean_ctor_set(v_machine_8570_, 3, v_events_8543_); +lean_ctor_set(v_machine_8570_, 4, v_error_8544_); +lean_ctor_set(v_machine_8570_, 5, v_instant_8545_); +lean_ctor_set_uint8(v_machine_8570_, sizeof(void*)*6, v_keepAlive_8546_); +lean_ctor_set_uint8(v_machine_8570_, sizeof(void*)*6 + 1, v_forcedFlush_8547_); +lean_ctor_set_uint8(v_machine_8570_, sizeof(void*)*6 + 2, v_pullBodyStalled_8548_); +v___x_8571_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_readerStateForMode___redArg___closed__1)); +v___x_8572_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody___closed__0)); +v___x_8573_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_emitBodyChunk(v_dir_8537_, v_machine_8570_, v___x_8571_, v___x_8561_, v___x_8561_, v___x_8572_, v___x_8564_, v___x_8561_); +return v___x_8573_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___boxed(lean_object* v_dir_8602_, lean_object* v_machine_8603_){ +_start: +{ +uint8_t v_dir_boxed_8604_; lean_object* v_res_8605_; +v_dir_boxed_8604_ = lean_unbox(v_dir_8602_); +v_res_8605_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(v_dir_boxed_8604_, v_machine_8603_); +return v_res_8605_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(uint8_t v_dir_8606_, lean_object* v_machine_8607_, lean_object* v_x_8608_){ +_start: +{ +switch(lean_obj_tag(v_x_8608_)) { case 0: { -lean_object* v___x_8223_; -lean_dec_ref(v_reader_8221_); -v___x_8223_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(v_dir_8219_, v_machine_8220_); -return v___x_8223_; +lean_object* v_remaining_8609_; lean_object* v___x_8610_; uint8_t v___x_8611_; +v_remaining_8609_ = lean_ctor_get(v_x_8608_, 0); +lean_inc(v_remaining_8609_); +lean_dec_ref(v_x_8608_); +v___x_8610_ = lean_unsigned_to_nat(0u); +v___x_8611_ = lean_nat_dec_eq(v_remaining_8609_, v___x_8610_); +if (v___x_8611_ == 0) +{ +lean_object* v___x_8612_; +v___x_8612_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedBody(v_dir_8606_, v_machine_8607_, v_remaining_8609_); +return v___x_8612_; +} +else +{ +lean_object* v___x_8613_; +lean_dec(v_remaining_8609_); +v___x_8613_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseFixedZeroBody(v_dir_8606_, v_machine_8607_); +return v___x_8613_; +} } case 1: { -lean_object* v_a_8224_; lean_object* v___x_8225_; -lean_inc_ref(v_state_8222_); -lean_dec_ref(v_reader_8221_); -v_a_8224_ = lean_ctor_get(v_state_8222_, 0); -lean_inc(v_a_8224_); -lean_dec_ref(v_state_8222_); -v___x_8225_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(v_dir_8219_, v_machine_8220_, v_a_8224_); -lean_dec(v_a_8224_); -return v___x_8225_; +lean_object* v___x_8614_; +v___x_8614_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkSizeBody___redArg(v_machine_8607_); +return v___x_8614_; } case 2: { -lean_object* v_a_8226_; lean_object* v___x_8227_; -lean_inc_ref(v_state_8222_); -lean_dec_ref(v_reader_8221_); -v_a_8226_ = lean_ctor_get(v_state_8222_, 0); -lean_inc(v_a_8226_); -lean_dec_ref(v_state_8222_); -v___x_8227_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(v_dir_8219_, v_machine_8220_, v_a_8226_); -return v___x_8227_; +lean_object* v_ext_8615_; lean_object* v_remaining_8616_; lean_object* v___x_8617_; uint8_t v___x_8618_; +v_ext_8615_ = lean_ctor_get(v_x_8608_, 0); +lean_inc_ref(v_ext_8615_); +v_remaining_8616_ = lean_ctor_get(v_x_8608_, 1); +lean_inc(v_remaining_8616_); +lean_dec_ref(v_x_8608_); +v___x_8617_ = lean_unsigned_to_nat(0u); +v___x_8618_ = lean_nat_dec_eq(v_remaining_8616_, v___x_8617_); +if (v___x_8618_ == 0) +{ +lean_object* v___x_8619_; +v___x_8619_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseChunkedBodyState(v_dir_8606_, v_machine_8607_, v_ext_8615_, v_remaining_8616_); +return v___x_8619_; +} +else +{ +lean_object* v___x_8620_; +lean_dec(v_remaining_8616_); +v___x_8620_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseLastChunkBodyState(v_dir_8606_, v_machine_8607_, v_ext_8615_); +return v___x_8620_; +} +} +default: +{ +lean_object* v___x_8621_; +v___x_8621_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody(v_dir_8606_, v_machine_8607_); +return v___x_8621_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody___boxed(lean_object* v_dir_8622_, lean_object* v_machine_8623_, lean_object* v_x_8624_){ +_start: +{ +uint8_t v_dir_boxed_8625_; lean_object* v_res_8626_; +v_dir_boxed_8625_ = lean_unbox(v_dir_8622_); +v_res_8626_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_boxed_8625_, v_machine_8623_, v_x_8624_); +return v_res_8626_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_typedHeader_x3f(lean_object* v_name_8627_, lean_object* v_value_8628_){ +_start: +{ +lean_object* v___x_8629_; +v___x_8629_ = l_Std_Http_Header_Name_ofString_x3f(v_name_8627_); +if (lean_obj_tag(v___x_8629_) == 0) +{ +lean_object* v___x_8630_; +lean_dec_ref(v_value_8628_); +v___x_8630_ = lean_box(0); +return v___x_8630_; +} +else +{ +lean_object* v_val_8631_; lean_object* v___x_8632_; +v_val_8631_ = lean_ctor_get(v___x_8629_, 0); +lean_inc(v_val_8631_); +lean_dec_ref(v___x_8629_); +v___x_8632_ = l_Std_Http_Header_Value_ofString_x3f(v_value_8628_); +if (lean_obj_tag(v___x_8632_) == 0) +{ +lean_object* v___x_8633_; +lean_dec(v_val_8631_); +v___x_8633_ = lean_box(0); +return v___x_8633_; +} +else +{ +lean_object* v_val_8634_; lean_object* v___x_8636_; uint8_t v_isShared_8637_; uint8_t v_isSharedCheck_8642_; +v_val_8634_ = lean_ctor_get(v___x_8632_, 0); +v_isSharedCheck_8642_ = !lean_is_exclusive(v___x_8632_); +if (v_isSharedCheck_8642_ == 0) +{ +v___x_8636_ = v___x_8632_; +v_isShared_8637_ = v_isSharedCheck_8642_; +goto v_resetjp_8635_; +} +else +{ +lean_inc(v_val_8634_); +lean_dec(v___x_8632_); +v___x_8636_ = lean_box(0); +v_isShared_8637_ = v_isSharedCheck_8642_; +goto v_resetjp_8635_; +} +v_resetjp_8635_: +{ +lean_object* v___x_8638_; lean_object* v___x_8640_; +v___x_8638_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_8638_, 0, v_val_8631_); +lean_ctor_set(v___x_8638_, 1, v_val_8634_); +if (v_isShared_8637_ == 0) +{ +lean_ctor_set(v___x_8636_, 0, v___x_8638_); +v___x_8640_ = v___x_8636_; +goto v_reusejp_8639_; +} +else +{ +lean_object* v_reuseFailAlloc_8641_; +v_reuseFailAlloc_8641_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_8641_, 0, v___x_8638_); +v___x_8640_ = v_reuseFailAlloc_8641_; +goto v_reusejp_8639_; +} +v_reusejp_8639_: +{ +return v___x_8640_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError(lean_object* v_x_8644_){ +_start: +{ +if (lean_obj_tag(v_x_8644_) == 1) +{ +lean_object* v_s_8645_; lean_object* v___x_8646_; uint8_t v___x_8647_; +v_s_8645_ = lean_ctor_get(v_x_8644_, 0); +v___x_8646_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___closed__0)); +v___x_8647_ = lean_string_dec_eq(v_s_8645_, v___x_8646_); +if (v___x_8647_ == 0) +{ +lean_object* v___x_8648_; +v___x_8648_ = lean_box(8); +return v___x_8648_; +} +else +{ +lean_object* v___x_8649_; +v___x_8649_ = lean_box(4); +return v___x_8649_; +} +} +else +{ +lean_object* v___x_8650_; +v___x_8650_ = lean_box(8); +return v___x_8650_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___boxed(lean_object* v_x_8651_){ +_start: +{ +lean_object* v_res_8652_; +v_res_8652_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError(v_x_8651_); +lean_dec(v_x_8651_); +return v_res_8652_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(uint8_t v_dir_8653_, lean_object* v_machine_8654_){ +_start: +{ +if (v_dir_8653_ == 1) +{ +lean_object* v_reader_8655_; lean_object* v_writer_8656_; lean_object* v_config_8657_; lean_object* v_events_8658_; lean_object* v_error_8659_; lean_object* v_instant_8660_; uint8_t v_keepAlive_8661_; uint8_t v_forcedFlush_8662_; uint8_t v_pullBodyStalled_8663_; lean_object* v_input_8664_; lean_object* v_messageHead_8665_; lean_object* v_messageCount_8666_; lean_object* v_bodyBytesRead_8667_; lean_object* v_headerBytesRead_8668_; uint8_t v_noMoreInput_8669_; lean_object* v___x_8671_; uint8_t v_isShared_8672_; uint8_t v_isSharedCheck_8708_; +v_reader_8655_ = lean_ctor_get(v_machine_8654_, 0); +lean_inc_ref(v_reader_8655_); +v_writer_8656_ = lean_ctor_get(v_machine_8654_, 1); +v_config_8657_ = lean_ctor_get(v_machine_8654_, 2); +v_events_8658_ = lean_ctor_get(v_machine_8654_, 3); +v_error_8659_ = lean_ctor_get(v_machine_8654_, 4); +v_instant_8660_ = lean_ctor_get(v_machine_8654_, 5); +v_keepAlive_8661_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6); +v_forcedFlush_8662_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8663_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6 + 2); +v_input_8664_ = lean_ctor_get(v_reader_8655_, 1); +v_messageHead_8665_ = lean_ctor_get(v_reader_8655_, 2); +v_messageCount_8666_ = lean_ctor_get(v_reader_8655_, 3); +v_bodyBytesRead_8667_ = lean_ctor_get(v_reader_8655_, 4); +v_headerBytesRead_8668_ = lean_ctor_get(v_reader_8655_, 5); +v_noMoreInput_8669_ = lean_ctor_get_uint8(v_reader_8655_, sizeof(void*)*6); +v_isSharedCheck_8708_ = !lean_is_exclusive(v_reader_8655_); +if (v_isSharedCheck_8708_ == 0) +{ +lean_object* v_unused_8709_; +v_unused_8709_ = lean_ctor_get(v_reader_8655_, 0); +lean_dec(v_unused_8709_); +v___x_8671_ = v_reader_8655_; +v_isShared_8672_ = v_isSharedCheck_8708_; +goto v_resetjp_8670_; +} +else +{ +lean_inc(v_headerBytesRead_8668_); +lean_inc(v_bodyBytesRead_8667_); +lean_inc(v_messageCount_8666_); +lean_inc(v_messageHead_8665_); +lean_inc(v_input_8664_); +lean_dec(v_reader_8655_); +v___x_8671_ = lean_box(0); +v_isShared_8672_ = v_isSharedCheck_8708_; +goto v_resetjp_8670_; +} +v_resetjp_8670_: +{ +lean_object* v_status_8685_; uint16_t v___x_8686_; uint16_t v___x_8687_; uint8_t v___x_8688_; +v_status_8685_ = lean_ctor_get(v_messageHead_8665_, 0); +v___x_8686_ = 100; +v___x_8687_ = l_Std_Http_Status_toCode(v_status_8685_); +v___x_8688_ = lean_uint16_dec_le(v___x_8686_, v___x_8687_); +if (v___x_8688_ == 0) +{ +goto v___jp_8680_; +} +else +{ +uint16_t v___x_8689_; uint8_t v___x_8690_; +v___x_8689_ = 200; +v___x_8690_ = lean_uint16_dec_lt(v___x_8687_, v___x_8689_); +if (v___x_8690_ == 0) +{ +goto v___jp_8680_; +} +else +{ +lean_object* v___x_8692_; uint8_t v_isShared_8693_; uint8_t v_isSharedCheck_8701_; +lean_inc(v_instant_8660_); +lean_inc(v_error_8659_); +lean_inc_ref(v_events_8658_); +lean_inc_ref(v_config_8657_); +lean_inc_ref(v_writer_8656_); +lean_del_object(v___x_8671_); +lean_dec(v_headerBytesRead_8668_); +lean_dec(v_bodyBytesRead_8667_); +lean_dec(v_messageHead_8665_); +v_isSharedCheck_8701_ = !lean_is_exclusive(v_machine_8654_); +if (v_isSharedCheck_8701_ == 0) +{ +lean_object* v_unused_8702_; lean_object* v_unused_8703_; lean_object* v_unused_8704_; lean_object* v_unused_8705_; lean_object* v_unused_8706_; lean_object* v_unused_8707_; +v_unused_8702_ = lean_ctor_get(v_machine_8654_, 5); +lean_dec(v_unused_8702_); +v_unused_8703_ = lean_ctor_get(v_machine_8654_, 4); +lean_dec(v_unused_8703_); +v_unused_8704_ = lean_ctor_get(v_machine_8654_, 3); +lean_dec(v_unused_8704_); +v_unused_8705_ = lean_ctor_get(v_machine_8654_, 2); +lean_dec(v_unused_8705_); +v_unused_8706_ = lean_ctor_get(v_machine_8654_, 1); +lean_dec(v_unused_8706_); +v_unused_8707_ = lean_ctor_get(v_machine_8654_, 0); +lean_dec(v_unused_8707_); +v___x_8692_ = v_machine_8654_; +v_isShared_8693_ = v_isSharedCheck_8701_; +goto v_resetjp_8691_; +} +else +{ +lean_dec(v_machine_8654_); +v___x_8692_ = lean_box(0); +v_isShared_8693_ = v_isSharedCheck_8701_; +goto v_resetjp_8691_; +} +v_resetjp_8691_: +{ +lean_object* v___x_8694_; lean_object* v___x_8695_; lean_object* v___x_8696_; lean_object* v___x_8697_; lean_object* v___x_8699_; +v___x_8694_ = lean_box(0); +v___x_8695_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v_dir_8653_); +v___x_8696_ = lean_unsigned_to_nat(0u); +v___x_8697_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_8697_, 0, v___x_8694_); +lean_ctor_set(v___x_8697_, 1, v_input_8664_); +lean_ctor_set(v___x_8697_, 2, v___x_8695_); +lean_ctor_set(v___x_8697_, 3, v_messageCount_8666_); +lean_ctor_set(v___x_8697_, 4, v___x_8696_); +lean_ctor_set(v___x_8697_, 5, v___x_8696_); +lean_ctor_set_uint8(v___x_8697_, sizeof(void*)*6, v_noMoreInput_8669_); +if (v_isShared_8693_ == 0) +{ +lean_ctor_set(v___x_8692_, 0, v___x_8697_); +v___x_8699_ = v___x_8692_; +goto v_reusejp_8698_; +} +else +{ +lean_object* v_reuseFailAlloc_8700_; +v_reuseFailAlloc_8700_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8700_, 0, v___x_8697_); +lean_ctor_set(v_reuseFailAlloc_8700_, 1, v_writer_8656_); +lean_ctor_set(v_reuseFailAlloc_8700_, 2, v_config_8657_); +lean_ctor_set(v_reuseFailAlloc_8700_, 3, v_events_8658_); +lean_ctor_set(v_reuseFailAlloc_8700_, 4, v_error_8659_); +lean_ctor_set(v_reuseFailAlloc_8700_, 5, v_instant_8660_); +lean_ctor_set_uint8(v_reuseFailAlloc_8700_, sizeof(void*)*6, v_keepAlive_8661_); +lean_ctor_set_uint8(v_reuseFailAlloc_8700_, sizeof(void*)*6 + 1, v_forcedFlush_8662_); +lean_ctor_set_uint8(v_reuseFailAlloc_8700_, sizeof(void*)*6 + 2, v_pullBodyStalled_8663_); +v___x_8699_ = v_reuseFailAlloc_8700_; +goto v_reusejp_8698_; +} +v_reusejp_8698_: +{ +return v___x_8699_; +} +} +} +} +v___jp_8673_: +{ +lean_object* v___x_8674_; lean_object* v___x_8676_; +v___x_8674_ = lean_box(6); +if (v_isShared_8672_ == 0) +{ +lean_ctor_set(v___x_8671_, 0, v___x_8674_); +v___x_8676_ = v___x_8671_; +goto v_reusejp_8675_; +} +else +{ +lean_object* v_reuseFailAlloc_8678_; +v_reuseFailAlloc_8678_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8678_, 0, v___x_8674_); +lean_ctor_set(v_reuseFailAlloc_8678_, 1, v_input_8664_); +lean_ctor_set(v_reuseFailAlloc_8678_, 2, v_messageHead_8665_); +lean_ctor_set(v_reuseFailAlloc_8678_, 3, v_messageCount_8666_); +lean_ctor_set(v_reuseFailAlloc_8678_, 4, v_bodyBytesRead_8667_); +lean_ctor_set(v_reuseFailAlloc_8678_, 5, v_headerBytesRead_8668_); +lean_ctor_set_uint8(v_reuseFailAlloc_8678_, sizeof(void*)*6, v_noMoreInput_8669_); +v___x_8676_ = v_reuseFailAlloc_8678_; +goto v_reusejp_8675_; +} +v_reusejp_8675_: +{ +lean_object* v___x_8677_; +v___x_8677_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_8677_, 0, v___x_8676_); +lean_ctor_set(v___x_8677_, 1, v_writer_8656_); +lean_ctor_set(v___x_8677_, 2, v_config_8657_); +lean_ctor_set(v___x_8677_, 3, v_events_8658_); +lean_ctor_set(v___x_8677_, 4, v_error_8659_); +lean_ctor_set(v___x_8677_, 5, v_instant_8660_); +lean_ctor_set_uint8(v___x_8677_, sizeof(void*)*6, v_keepAlive_8661_); +lean_ctor_set_uint8(v___x_8677_, sizeof(void*)*6 + 1, v_forcedFlush_8662_); +lean_ctor_set_uint8(v___x_8677_, sizeof(void*)*6 + 2, v_pullBodyStalled_8663_); +return v___x_8677_; +} +} +v___jp_8679_: +{ +if (v_keepAlive_8661_ == 0) +{ +lean_inc(v_instant_8660_); +lean_inc(v_error_8659_); +lean_inc_ref(v_events_8658_); +lean_inc_ref(v_config_8657_); +lean_inc_ref(v_writer_8656_); +lean_dec_ref(v_machine_8654_); +goto v___jp_8673_; +} +else +{ +lean_del_object(v___x_8671_); +lean_dec(v_headerBytesRead_8668_); +lean_dec(v_bodyBytesRead_8667_); +lean_dec(v_messageCount_8666_); +lean_dec(v_messageHead_8665_); +lean_dec_ref(v_input_8664_); +return v_machine_8654_; +} +} +v___jp_8680_: +{ +if (v_noMoreInput_8669_ == 0) +{ +goto v___jp_8679_; +} +else +{ +lean_object* v_array_8681_; lean_object* v_idx_8682_; lean_object* v___x_8683_; uint8_t v___x_8684_; +v_array_8681_ = lean_ctor_get(v_input_8664_, 0); +v_idx_8682_ = lean_ctor_get(v_input_8664_, 1); +v___x_8683_ = lean_byte_array_size(v_array_8681_); +v___x_8684_ = lean_nat_dec_le(v___x_8683_, v_idx_8682_); +if (v___x_8684_ == 0) +{ +goto v___jp_8679_; +} +else +{ +lean_inc(v_instant_8660_); +lean_inc(v_error_8659_); +lean_inc_ref(v_events_8658_); +lean_inc_ref(v_config_8657_); +lean_inc_ref(v_writer_8656_); +lean_dec_ref(v_machine_8654_); +goto v___jp_8673_; +} +} +} +} +} +else +{ +lean_object* v_reader_8710_; lean_object* v_writer_8711_; lean_object* v_config_8712_; lean_object* v_events_8713_; lean_object* v_error_8714_; lean_object* v_instant_8715_; uint8_t v_keepAlive_8716_; uint8_t v_forcedFlush_8717_; uint8_t v_pullBodyStalled_8718_; lean_object* v_input_8719_; lean_object* v_messageHead_8720_; lean_object* v_messageCount_8721_; lean_object* v_bodyBytesRead_8722_; lean_object* v_headerBytesRead_8723_; uint8_t v_noMoreInput_8724_; lean_object* v___x_8726_; uint8_t v_isShared_8727_; uint8_t v_isSharedCheck_8739_; +v_reader_8710_ = lean_ctor_get(v_machine_8654_, 0); +lean_inc_ref(v_reader_8710_); +v_writer_8711_ = lean_ctor_get(v_machine_8654_, 1); +v_config_8712_ = lean_ctor_get(v_machine_8654_, 2); +v_events_8713_ = lean_ctor_get(v_machine_8654_, 3); +v_error_8714_ = lean_ctor_get(v_machine_8654_, 4); +v_instant_8715_ = lean_ctor_get(v_machine_8654_, 5); +v_keepAlive_8716_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6); +v_forcedFlush_8717_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8718_ = lean_ctor_get_uint8(v_machine_8654_, sizeof(void*)*6 + 2); +v_input_8719_ = lean_ctor_get(v_reader_8710_, 1); +v_messageHead_8720_ = lean_ctor_get(v_reader_8710_, 2); +v_messageCount_8721_ = lean_ctor_get(v_reader_8710_, 3); +v_bodyBytesRead_8722_ = lean_ctor_get(v_reader_8710_, 4); +v_headerBytesRead_8723_ = lean_ctor_get(v_reader_8710_, 5); +v_noMoreInput_8724_ = lean_ctor_get_uint8(v_reader_8710_, sizeof(void*)*6); +v_isSharedCheck_8739_ = !lean_is_exclusive(v_reader_8710_); +if (v_isSharedCheck_8739_ == 0) +{ +lean_object* v_unused_8740_; +v_unused_8740_ = lean_ctor_get(v_reader_8710_, 0); +lean_dec(v_unused_8740_); +v___x_8726_ = v_reader_8710_; +v_isShared_8727_ = v_isSharedCheck_8739_; +goto v_resetjp_8725_; +} +else +{ +lean_inc(v_headerBytesRead_8723_); +lean_inc(v_bodyBytesRead_8722_); +lean_inc(v_messageCount_8721_); +lean_inc(v_messageHead_8720_); +lean_inc(v_input_8719_); +lean_dec(v_reader_8710_); +v___x_8726_ = lean_box(0); +v_isShared_8727_ = v_isSharedCheck_8739_; +goto v_resetjp_8725_; +} +v_resetjp_8725_: +{ +if (v_noMoreInput_8724_ == 0) +{ +goto v___jp_8734_; +} +else +{ +lean_object* v_array_8735_; lean_object* v_idx_8736_; lean_object* v___x_8737_; uint8_t v___x_8738_; +v_array_8735_ = lean_ctor_get(v_input_8719_, 0); +v_idx_8736_ = lean_ctor_get(v_input_8719_, 1); +v___x_8737_ = lean_byte_array_size(v_array_8735_); +v___x_8738_ = lean_nat_dec_le(v___x_8737_, v_idx_8736_); +if (v___x_8738_ == 0) +{ +goto v___jp_8734_; +} +else +{ +lean_inc(v_instant_8715_); +lean_inc(v_error_8714_); +lean_inc_ref(v_events_8713_); +lean_inc_ref(v_config_8712_); +lean_inc_ref(v_writer_8711_); +lean_dec_ref(v_machine_8654_); +goto v___jp_8728_; +} +} +v___jp_8728_: +{ +lean_object* v___x_8729_; lean_object* v___x_8731_; +v___x_8729_ = lean_box(6); +if (v_isShared_8727_ == 0) +{ +lean_ctor_set(v___x_8726_, 0, v___x_8729_); +v___x_8731_ = v___x_8726_; +goto v_reusejp_8730_; +} +else +{ +lean_object* v_reuseFailAlloc_8733_; +v_reuseFailAlloc_8733_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8733_, 0, v___x_8729_); +lean_ctor_set(v_reuseFailAlloc_8733_, 1, v_input_8719_); +lean_ctor_set(v_reuseFailAlloc_8733_, 2, v_messageHead_8720_); +lean_ctor_set(v_reuseFailAlloc_8733_, 3, v_messageCount_8721_); +lean_ctor_set(v_reuseFailAlloc_8733_, 4, v_bodyBytesRead_8722_); +lean_ctor_set(v_reuseFailAlloc_8733_, 5, v_headerBytesRead_8723_); +lean_ctor_set_uint8(v_reuseFailAlloc_8733_, sizeof(void*)*6, v_noMoreInput_8724_); +v___x_8731_ = v_reuseFailAlloc_8733_; +goto v_reusejp_8730_; +} +v_reusejp_8730_: +{ +lean_object* v___x_8732_; +v___x_8732_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_8732_, 0, v___x_8731_); +lean_ctor_set(v___x_8732_, 1, v_writer_8711_); +lean_ctor_set(v___x_8732_, 2, v_config_8712_); +lean_ctor_set(v___x_8732_, 3, v_events_8713_); +lean_ctor_set(v___x_8732_, 4, v_error_8714_); +lean_ctor_set(v___x_8732_, 5, v_instant_8715_); +lean_ctor_set_uint8(v___x_8732_, sizeof(void*)*6, v_keepAlive_8716_); +lean_ctor_set_uint8(v___x_8732_, sizeof(void*)*6 + 1, v_forcedFlush_8717_); +lean_ctor_set_uint8(v___x_8732_, sizeof(void*)*6 + 2, v_pullBodyStalled_8718_); +return v___x_8732_; +} +} +v___jp_8734_: +{ +if (v_keepAlive_8716_ == 0) +{ +lean_inc(v_instant_8715_); +lean_inc(v_error_8714_); +lean_inc_ref(v_events_8713_); +lean_inc_ref(v_config_8712_); +lean_inc_ref(v_writer_8711_); +lean_dec_ref(v_machine_8654_); +goto v___jp_8728_; +} +else +{ +lean_del_object(v___x_8726_); +lean_dec(v_headerBytesRead_8723_); +lean_dec(v_bodyBytesRead_8722_); +lean_dec(v_messageCount_8721_); +lean_dec(v_messageHead_8720_); +lean_dec_ref(v_input_8719_); +return v_machine_8654_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState___boxed(lean_object* v_dir_8741_, lean_object* v_machine_8742_){ +_start: +{ +uint8_t v_dir_boxed_8743_; lean_object* v_res_8744_; +v_dir_boxed_8743_ = lean_unbox(v_dir_8741_); +v_res_8744_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(v_dir_boxed_8743_, v_machine_8742_); +return v_res_8744_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0(lean_object* v___y_8745_){ +_start: +{ +if (lean_obj_tag(v___y_8745_) == 1) +{ +lean_object* v_s_8746_; lean_object* v___x_8747_; uint8_t v___x_8748_; +v_s_8746_ = lean_ctor_get(v___y_8745_, 0); +v___x_8747_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_classifyStartLineHardError___closed__0)); +v___x_8748_ = lean_string_dec_eq(v_s_8746_, v___x_8747_); +if (v___x_8748_ == 0) +{ +lean_object* v___x_8749_; +v___x_8749_ = lean_box(8); +return v___x_8749_; +} +else +{ +lean_object* v___x_8750_; +v___x_8750_ = lean_box(4); +return v___x_8750_; +} +} +else +{ +lean_object* v___x_8751_; +v___x_8751_ = lean_box(8); +return v___x_8751_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0___boxed(lean_object* v___y_8752_){ +_start: +{ +lean_object* v_res_8753_; +v_res_8753_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___lam__0(v___y_8752_); +lean_dec(v___y_8752_); +return v_res_8753_; +} +} +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(lean_object* v_x_8754_, lean_object* v_x_8755_){ +_start: +{ +if (lean_obj_tag(v_x_8754_) == 0) +{ +if (lean_obj_tag(v_x_8755_) == 0) +{ +uint8_t v___x_8756_; +v___x_8756_ = 1; +return v___x_8756_; +} +else +{ +uint8_t v___x_8757_; +v___x_8757_ = 0; +return v___x_8757_; +} +} +else +{ +if (lean_obj_tag(v_x_8755_) == 0) +{ +uint8_t v___x_8758_; +v___x_8758_ = 0; +return v___x_8758_; +} +else +{ +lean_object* v_val_8759_; lean_object* v_val_8760_; uint8_t v___x_8761_; uint8_t v___x_8762_; uint8_t v___x_8763_; +v_val_8759_ = lean_ctor_get(v_x_8754_, 0); +v_val_8760_ = lean_ctor_get(v_x_8755_, 0); +v___x_8761_ = lean_unbox(v_val_8759_); +v___x_8762_ = lean_unbox(v_val_8760_); +v___x_8763_ = l_Std_Http_instBEqVersion_beq(v___x_8761_, v___x_8762_); +return v___x_8763_; +} +} +} +} +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6___boxed(lean_object* v_x_8764_, lean_object* v_x_8765_){ +_start: +{ +uint8_t v_res_8766_; lean_object* v_r_8767_; +v_res_8766_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_x_8764_, v_x_8765_); +lean_dec(v_x_8765_); +lean_dec(v_x_8764_); +v_r_8767_ = lean_box(v_res_8766_); +return v_r_8767_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0(lean_object* v_x_8768_){ +_start: +{ +lean_object* v___x_8769_; +v___x_8769_ = lean_box(8); +return v___x_8769_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0___boxed(lean_object* v_x_8770_){ +_start: +{ +lean_object* v_res_8771_; +v_res_8771_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___lam__0(v_x_8770_); +lean_dec(v_x_8770_); +return v_res_8771_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine(lean_object* v_machine_8782_){ +_start: +{ +lean_object* v_config_8783_; lean_object* v_maxStartLineLength_8784_; lean_object* v___f_8785_; lean_object* v___x_8786_; lean_object* v___x_8787_; lean_object* v___x_8788_; lean_object* v___x_8789_; lean_object* v_fst_8790_; lean_object* v_snd_8791_; +v_config_8783_ = lean_ctor_get(v_machine_8782_, 2); +v_maxStartLineLength_8784_ = lean_ctor_get(v_config_8783_, 5); +v___f_8785_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__0)); +lean_inc_ref(v_config_8783_); +v___x_8786_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseRequestLineRawVersion___boxed), 2, 1); +lean_closure_set(v___x_8786_, 0, v_config_8783_); +lean_inc(v_maxStartLineLength_8784_); +v___x_8787_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8787_, 0, v_maxStartLineLength_8784_); +v___x_8788_ = lean_box(0); +v___x_8789_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8782_, v___x_8786_, v___x_8787_, v___x_8788_, v___f_8785_); +v_fst_8790_ = lean_ctor_get(v___x_8789_, 0); +lean_inc(v_fst_8790_); +v_snd_8791_ = lean_ctor_get(v___x_8789_, 1); +lean_inc(v_snd_8791_); +lean_dec_ref(v___x_8789_); +if (lean_obj_tag(v_snd_8791_) == 0) +{ +return v_fst_8790_; +} +else +{ +lean_object* v_val_8827_; lean_object* v_snd_8828_; lean_object* v_snd_8829_; +v_val_8827_ = lean_ctor_get(v_snd_8791_, 0); +lean_inc(v_val_8827_); +lean_dec_ref(v_snd_8791_); +v_snd_8828_ = lean_ctor_get(v_val_8827_, 1); +lean_inc(v_snd_8828_); +v_snd_8829_ = lean_ctor_get(v_snd_8828_, 1); +lean_inc(v_snd_8829_); +if (lean_obj_tag(v_snd_8829_) == 1) +{ +lean_object* v_fst_8830_; lean_object* v_fst_8831_; lean_object* v_val_8832_; uint8_t v___x_8833_; uint8_t v___x_8834_; +v_fst_8830_ = lean_ctor_get(v_val_8827_, 0); +lean_inc(v_fst_8830_); +lean_dec(v_val_8827_); +v_fst_8831_ = lean_ctor_get(v_snd_8828_, 0); +lean_inc(v_fst_8831_); +lean_dec(v_snd_8828_); +v_val_8832_ = lean_ctor_get(v_snd_8829_, 0); +lean_inc(v_val_8832_); +lean_dec_ref(v_snd_8829_); +v___x_8833_ = 0; +v___x_8834_ = lean_unbox(v_val_8832_); +switch(v___x_8834_) +{ +case 1: +{ +lean_object* v_reader_8835_; lean_object* v_writer_8836_; lean_object* v_config_8837_; lean_object* v_events_8838_; lean_object* v_error_8839_; lean_object* v_instant_8840_; uint8_t v_keepAlive_8841_; uint8_t v_forcedFlush_8842_; uint8_t v_pullBodyStalled_8843_; lean_object* v___x_8845_; uint8_t v_isShared_8846_; uint8_t v_isSharedCheck_8870_; +v_reader_8835_ = lean_ctor_get(v_fst_8790_, 0); +v_writer_8836_ = lean_ctor_get(v_fst_8790_, 1); +v_config_8837_ = lean_ctor_get(v_fst_8790_, 2); +v_events_8838_ = lean_ctor_get(v_fst_8790_, 3); +v_error_8839_ = lean_ctor_get(v_fst_8790_, 4); +v_instant_8840_ = lean_ctor_get(v_fst_8790_, 5); +v_keepAlive_8841_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6); +v_forcedFlush_8842_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8843_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 2); +v_isSharedCheck_8870_ = !lean_is_exclusive(v_fst_8790_); +if (v_isSharedCheck_8870_ == 0) +{ +v___x_8845_ = v_fst_8790_; +v_isShared_8846_ = v_isSharedCheck_8870_; +goto v_resetjp_8844_; +} +else +{ +lean_inc(v_instant_8840_); +lean_inc(v_error_8839_); +lean_inc(v_events_8838_); +lean_inc(v_config_8837_); +lean_inc(v_writer_8836_); +lean_inc(v_reader_8835_); +lean_dec(v_fst_8790_); +v___x_8845_ = lean_box(0); +v_isShared_8846_ = v_isSharedCheck_8870_; +goto v_resetjp_8844_; +} +v_resetjp_8844_: +{ +lean_object* v_input_8847_; lean_object* v_messageCount_8848_; lean_object* v_bodyBytesRead_8849_; lean_object* v_headerBytesRead_8850_; uint8_t v_noMoreInput_8851_; lean_object* v___x_8853_; uint8_t v_isShared_8854_; uint8_t v_isSharedCheck_8867_; +v_input_8847_ = lean_ctor_get(v_reader_8835_, 1); +v_messageCount_8848_ = lean_ctor_get(v_reader_8835_, 3); +v_bodyBytesRead_8849_ = lean_ctor_get(v_reader_8835_, 4); +v_headerBytesRead_8850_ = lean_ctor_get(v_reader_8835_, 5); +v_noMoreInput_8851_ = lean_ctor_get_uint8(v_reader_8835_, sizeof(void*)*6); +v_isSharedCheck_8867_ = !lean_is_exclusive(v_reader_8835_); +if (v_isSharedCheck_8867_ == 0) +{ +lean_object* v_unused_8868_; lean_object* v_unused_8869_; +v_unused_8868_ = lean_ctor_get(v_reader_8835_, 2); +lean_dec(v_unused_8868_); +v_unused_8869_ = lean_ctor_get(v_reader_8835_, 0); +lean_dec(v_unused_8869_); +v___x_8853_ = v_reader_8835_; +v_isShared_8854_ = v_isSharedCheck_8867_; +goto v_resetjp_8852_; +} +else +{ +lean_inc(v_headerBytesRead_8850_); +lean_inc(v_bodyBytesRead_8849_); +lean_inc(v_messageCount_8848_); +lean_inc(v_input_8847_); +lean_dec(v_reader_8835_); +v___x_8853_ = lean_box(0); +v_isShared_8854_ = v_isSharedCheck_8867_; +goto v_resetjp_8852_; +} +v_resetjp_8852_: +{ +lean_object* v___x_8855_; lean_object* v___x_8856_; uint8_t v___x_8857_; uint8_t v___x_8858_; lean_object* v___x_8859_; lean_object* v___x_8861_; +v___x_8855_ = l_Std_Http_Headers_empty; +v___x_8856_ = lean_alloc_ctor(0, 2, 2); +lean_ctor_set(v___x_8856_, 0, v_fst_8831_); +lean_ctor_set(v___x_8856_, 1, v___x_8855_); +v___x_8857_ = lean_unbox(v_fst_8830_); +lean_dec(v_fst_8830_); +lean_ctor_set_uint8(v___x_8856_, sizeof(void*)*2, v___x_8857_); +v___x_8858_ = lean_unbox(v_val_8832_); +lean_dec(v_val_8832_); +lean_ctor_set_uint8(v___x_8856_, sizeof(void*)*2 + 1, v___x_8858_); +v___x_8859_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); +if (v_isShared_8854_ == 0) +{ +lean_ctor_set(v___x_8853_, 2, v___x_8856_); +lean_ctor_set(v___x_8853_, 0, v___x_8859_); +v___x_8861_ = v___x_8853_; +goto v_reusejp_8860_; +} +else +{ +lean_object* v_reuseFailAlloc_8866_; +v_reuseFailAlloc_8866_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8866_, 0, v___x_8859_); +lean_ctor_set(v_reuseFailAlloc_8866_, 1, v_input_8847_); +lean_ctor_set(v_reuseFailAlloc_8866_, 2, v___x_8856_); +lean_ctor_set(v_reuseFailAlloc_8866_, 3, v_messageCount_8848_); +lean_ctor_set(v_reuseFailAlloc_8866_, 4, v_bodyBytesRead_8849_); +lean_ctor_set(v_reuseFailAlloc_8866_, 5, v_headerBytesRead_8850_); +lean_ctor_set_uint8(v_reuseFailAlloc_8866_, sizeof(void*)*6, v_noMoreInput_8851_); +v___x_8861_ = v_reuseFailAlloc_8866_; +goto v_reusejp_8860_; +} +v_reusejp_8860_: +{ +lean_object* v___x_8863_; +if (v_isShared_8846_ == 0) +{ +lean_ctor_set(v___x_8845_, 0, v___x_8861_); +v___x_8863_ = v___x_8845_; +goto v_reusejp_8862_; +} +else +{ +lean_object* v_reuseFailAlloc_8865_; +v_reuseFailAlloc_8865_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8865_, 0, v___x_8861_); +lean_ctor_set(v_reuseFailAlloc_8865_, 1, v_writer_8836_); +lean_ctor_set(v_reuseFailAlloc_8865_, 2, v_config_8837_); +lean_ctor_set(v_reuseFailAlloc_8865_, 3, v_events_8838_); +lean_ctor_set(v_reuseFailAlloc_8865_, 4, v_error_8839_); +lean_ctor_set(v_reuseFailAlloc_8865_, 5, v_instant_8840_); +lean_ctor_set_uint8(v_reuseFailAlloc_8865_, sizeof(void*)*6, v_keepAlive_8841_); +lean_ctor_set_uint8(v_reuseFailAlloc_8865_, sizeof(void*)*6 + 1, v_forcedFlush_8842_); +lean_ctor_set_uint8(v_reuseFailAlloc_8865_, sizeof(void*)*6 + 2, v_pullBodyStalled_8843_); +v___x_8863_ = v_reuseFailAlloc_8865_; +goto v_reusejp_8862_; +} +v_reusejp_8862_: +{ +lean_object* v___x_8864_; +v___x_8864_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8833_, v___x_8863_); +return v___x_8864_; +} +} +} +} +} +case 0: +{ +lean_object* v_reader_8871_; lean_object* v_writer_8872_; lean_object* v_config_8873_; lean_object* v_events_8874_; lean_object* v_error_8875_; lean_object* v_instant_8876_; uint8_t v_keepAlive_8877_; uint8_t v_forcedFlush_8878_; uint8_t v_pullBodyStalled_8879_; lean_object* v___x_8881_; uint8_t v_isShared_8882_; uint8_t v_isSharedCheck_8906_; +v_reader_8871_ = lean_ctor_get(v_fst_8790_, 0); +v_writer_8872_ = lean_ctor_get(v_fst_8790_, 1); +v_config_8873_ = lean_ctor_get(v_fst_8790_, 2); +v_events_8874_ = lean_ctor_get(v_fst_8790_, 3); +v_error_8875_ = lean_ctor_get(v_fst_8790_, 4); +v_instant_8876_ = lean_ctor_get(v_fst_8790_, 5); +v_keepAlive_8877_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6); +v_forcedFlush_8878_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8879_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 2); +v_isSharedCheck_8906_ = !lean_is_exclusive(v_fst_8790_); +if (v_isSharedCheck_8906_ == 0) +{ +v___x_8881_ = v_fst_8790_; +v_isShared_8882_ = v_isSharedCheck_8906_; +goto v_resetjp_8880_; +} +else +{ +lean_inc(v_instant_8876_); +lean_inc(v_error_8875_); +lean_inc(v_events_8874_); +lean_inc(v_config_8873_); +lean_inc(v_writer_8872_); +lean_inc(v_reader_8871_); +lean_dec(v_fst_8790_); +v___x_8881_ = lean_box(0); +v_isShared_8882_ = v_isSharedCheck_8906_; +goto v_resetjp_8880_; +} +v_resetjp_8880_: +{ +lean_object* v_input_8883_; lean_object* v_messageCount_8884_; lean_object* v_bodyBytesRead_8885_; lean_object* v_headerBytesRead_8886_; uint8_t v_noMoreInput_8887_; lean_object* v___x_8889_; uint8_t v_isShared_8890_; uint8_t v_isSharedCheck_8903_; +v_input_8883_ = lean_ctor_get(v_reader_8871_, 1); +v_messageCount_8884_ = lean_ctor_get(v_reader_8871_, 3); +v_bodyBytesRead_8885_ = lean_ctor_get(v_reader_8871_, 4); +v_headerBytesRead_8886_ = lean_ctor_get(v_reader_8871_, 5); +v_noMoreInput_8887_ = lean_ctor_get_uint8(v_reader_8871_, sizeof(void*)*6); +v_isSharedCheck_8903_ = !lean_is_exclusive(v_reader_8871_); +if (v_isSharedCheck_8903_ == 0) +{ +lean_object* v_unused_8904_; lean_object* v_unused_8905_; +v_unused_8904_ = lean_ctor_get(v_reader_8871_, 2); +lean_dec(v_unused_8904_); +v_unused_8905_ = lean_ctor_get(v_reader_8871_, 0); +lean_dec(v_unused_8905_); +v___x_8889_ = v_reader_8871_; +v_isShared_8890_ = v_isSharedCheck_8903_; +goto v_resetjp_8888_; +} +else +{ +lean_inc(v_headerBytesRead_8886_); +lean_inc(v_bodyBytesRead_8885_); +lean_inc(v_messageCount_8884_); +lean_inc(v_input_8883_); +lean_dec(v_reader_8871_); +v___x_8889_ = lean_box(0); +v_isShared_8890_ = v_isSharedCheck_8903_; +goto v_resetjp_8888_; +} +v_resetjp_8888_: +{ +lean_object* v___x_8891_; lean_object* v___x_8892_; uint8_t v___x_8893_; uint8_t v___x_8894_; lean_object* v___x_8895_; lean_object* v___x_8897_; +v___x_8891_ = l_Std_Http_Headers_empty; +v___x_8892_ = lean_alloc_ctor(0, 2, 2); +lean_ctor_set(v___x_8892_, 0, v_fst_8831_); +lean_ctor_set(v___x_8892_, 1, v___x_8891_); +v___x_8893_ = lean_unbox(v_fst_8830_); +lean_dec(v_fst_8830_); +lean_ctor_set_uint8(v___x_8892_, sizeof(void*)*2, v___x_8893_); +v___x_8894_ = lean_unbox(v_val_8832_); +lean_dec(v_val_8832_); +lean_ctor_set_uint8(v___x_8892_, sizeof(void*)*2 + 1, v___x_8894_); +v___x_8895_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); +if (v_isShared_8890_ == 0) +{ +lean_ctor_set(v___x_8889_, 2, v___x_8892_); +lean_ctor_set(v___x_8889_, 0, v___x_8895_); +v___x_8897_ = v___x_8889_; +goto v_reusejp_8896_; +} +else +{ +lean_object* v_reuseFailAlloc_8902_; +v_reuseFailAlloc_8902_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8902_, 0, v___x_8895_); +lean_ctor_set(v_reuseFailAlloc_8902_, 1, v_input_8883_); +lean_ctor_set(v_reuseFailAlloc_8902_, 2, v___x_8892_); +lean_ctor_set(v_reuseFailAlloc_8902_, 3, v_messageCount_8884_); +lean_ctor_set(v_reuseFailAlloc_8902_, 4, v_bodyBytesRead_8885_); +lean_ctor_set(v_reuseFailAlloc_8902_, 5, v_headerBytesRead_8886_); +lean_ctor_set_uint8(v_reuseFailAlloc_8902_, sizeof(void*)*6, v_noMoreInput_8887_); +v___x_8897_ = v_reuseFailAlloc_8902_; +goto v_reusejp_8896_; +} +v_reusejp_8896_: +{ +lean_object* v___x_8899_; +if (v_isShared_8882_ == 0) +{ +lean_ctor_set(v___x_8881_, 0, v___x_8897_); +v___x_8899_ = v___x_8881_; +goto v_reusejp_8898_; +} +else +{ +lean_object* v_reuseFailAlloc_8901_; +v_reuseFailAlloc_8901_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8901_, 0, v___x_8897_); +lean_ctor_set(v_reuseFailAlloc_8901_, 1, v_writer_8872_); +lean_ctor_set(v_reuseFailAlloc_8901_, 2, v_config_8873_); +lean_ctor_set(v_reuseFailAlloc_8901_, 3, v_events_8874_); +lean_ctor_set(v_reuseFailAlloc_8901_, 4, v_error_8875_); +lean_ctor_set(v_reuseFailAlloc_8901_, 5, v_instant_8876_); +lean_ctor_set_uint8(v_reuseFailAlloc_8901_, sizeof(void*)*6, v_keepAlive_8877_); +lean_ctor_set_uint8(v_reuseFailAlloc_8901_, sizeof(void*)*6 + 1, v_forcedFlush_8878_); +lean_ctor_set_uint8(v_reuseFailAlloc_8901_, sizeof(void*)*6 + 2, v_pullBodyStalled_8879_); +v___x_8899_ = v_reuseFailAlloc_8901_; +goto v_reusejp_8898_; +} +v_reusejp_8898_: +{ +lean_object* v___x_8900_; +v___x_8900_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8833_, v___x_8899_); +return v___x_8900_; +} +} +} +} +} +default: +{ +lean_dec(v_val_8832_); +lean_dec(v_fst_8831_); +lean_dec(v_fst_8830_); +goto v___jp_8792_; +} +} +} +else +{ +lean_dec(v_snd_8829_); +lean_dec(v_snd_8828_); +lean_dec(v_val_8827_); +goto v___jp_8792_; +} +} +v___jp_8792_: +{ +lean_object* v_reader_8793_; lean_object* v_writer_8794_; lean_object* v_config_8795_; lean_object* v_events_8796_; lean_object* v_instant_8797_; uint8_t v_keepAlive_8798_; uint8_t v_forcedFlush_8799_; uint8_t v_pullBodyStalled_8800_; lean_object* v___x_8802_; uint8_t v_isShared_8803_; uint8_t v_isSharedCheck_8825_; +v_reader_8793_ = lean_ctor_get(v_fst_8790_, 0); +v_writer_8794_ = lean_ctor_get(v_fst_8790_, 1); +v_config_8795_ = lean_ctor_get(v_fst_8790_, 2); +v_events_8796_ = lean_ctor_get(v_fst_8790_, 3); +v_instant_8797_ = lean_ctor_get(v_fst_8790_, 5); +v_keepAlive_8798_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6); +v_forcedFlush_8799_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8800_ = lean_ctor_get_uint8(v_fst_8790_, sizeof(void*)*6 + 2); +v_isSharedCheck_8825_ = !lean_is_exclusive(v_fst_8790_); +if (v_isSharedCheck_8825_ == 0) +{ +lean_object* v_unused_8826_; +v_unused_8826_ = lean_ctor_get(v_fst_8790_, 4); +lean_dec(v_unused_8826_); +v___x_8802_ = v_fst_8790_; +v_isShared_8803_ = v_isSharedCheck_8825_; +goto v_resetjp_8801_; +} +else +{ +lean_inc(v_instant_8797_); +lean_inc(v_events_8796_); +lean_inc(v_config_8795_); +lean_inc(v_writer_8794_); +lean_inc(v_reader_8793_); +lean_dec(v_fst_8790_); +v___x_8802_ = lean_box(0); +v_isShared_8803_ = v_isSharedCheck_8825_; +goto v_resetjp_8801_; +} +v_resetjp_8801_: +{ +lean_object* v_input_8804_; lean_object* v_messageHead_8805_; lean_object* v_messageCount_8806_; lean_object* v_bodyBytesRead_8807_; lean_object* v_headerBytesRead_8808_; uint8_t v_noMoreInput_8809_; lean_object* v___x_8811_; uint8_t v_isShared_8812_; uint8_t v_isSharedCheck_8823_; +v_input_8804_ = lean_ctor_get(v_reader_8793_, 1); +v_messageHead_8805_ = lean_ctor_get(v_reader_8793_, 2); +v_messageCount_8806_ = lean_ctor_get(v_reader_8793_, 3); +v_bodyBytesRead_8807_ = lean_ctor_get(v_reader_8793_, 4); +v_headerBytesRead_8808_ = lean_ctor_get(v_reader_8793_, 5); +v_noMoreInput_8809_ = lean_ctor_get_uint8(v_reader_8793_, sizeof(void*)*6); +v_isSharedCheck_8823_ = !lean_is_exclusive(v_reader_8793_); +if (v_isSharedCheck_8823_ == 0) +{ +lean_object* v_unused_8824_; +v_unused_8824_ = lean_ctor_get(v_reader_8793_, 0); +lean_dec(v_unused_8824_); +v___x_8811_ = v_reader_8793_; +v_isShared_8812_ = v_isSharedCheck_8823_; +goto v_resetjp_8810_; +} +else +{ +lean_inc(v_headerBytesRead_8808_); +lean_inc(v_bodyBytesRead_8807_); +lean_inc(v_messageCount_8806_); +lean_inc(v_messageHead_8805_); +lean_inc(v_input_8804_); +lean_dec(v_reader_8793_); +v___x_8811_ = lean_box(0); +v_isShared_8812_ = v_isSharedCheck_8823_; +goto v_resetjp_8810_; +} +v_resetjp_8810_: +{ +lean_object* v___x_8813_; lean_object* v___x_8814_; lean_object* v___x_8815_; lean_object* v___x_8817_; +v___x_8813_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__1)); +v___x_8814_ = lean_array_push(v_events_8796_, v___x_8813_); +v___x_8815_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__2)); +if (v_isShared_8812_ == 0) +{ +lean_ctor_set(v___x_8811_, 0, v___x_8815_); +v___x_8817_ = v___x_8811_; +goto v_reusejp_8816_; +} +else +{ +lean_object* v_reuseFailAlloc_8822_; +v_reuseFailAlloc_8822_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8822_, 0, v___x_8815_); +lean_ctor_set(v_reuseFailAlloc_8822_, 1, v_input_8804_); +lean_ctor_set(v_reuseFailAlloc_8822_, 2, v_messageHead_8805_); +lean_ctor_set(v_reuseFailAlloc_8822_, 3, v_messageCount_8806_); +lean_ctor_set(v_reuseFailAlloc_8822_, 4, v_bodyBytesRead_8807_); +lean_ctor_set(v_reuseFailAlloc_8822_, 5, v_headerBytesRead_8808_); +lean_ctor_set_uint8(v_reuseFailAlloc_8822_, sizeof(void*)*6, v_noMoreInput_8809_); +v___x_8817_ = v_reuseFailAlloc_8822_; +goto v_reusejp_8816_; +} +v_reusejp_8816_: +{ +lean_object* v___x_8818_; lean_object* v___x_8820_; +v___x_8818_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__3)); +if (v_isShared_8803_ == 0) +{ +lean_ctor_set(v___x_8802_, 4, v___x_8818_); +lean_ctor_set(v___x_8802_, 3, v___x_8814_); +lean_ctor_set(v___x_8802_, 0, v___x_8817_); +v___x_8820_ = v___x_8802_; +goto v_reusejp_8819_; +} +else +{ +lean_object* v_reuseFailAlloc_8821_; +v_reuseFailAlloc_8821_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8821_, 0, v___x_8817_); +lean_ctor_set(v_reuseFailAlloc_8821_, 1, v_writer_8794_); +lean_ctor_set(v_reuseFailAlloc_8821_, 2, v_config_8795_); +lean_ctor_set(v_reuseFailAlloc_8821_, 3, v___x_8814_); +lean_ctor_set(v_reuseFailAlloc_8821_, 4, v___x_8818_); +lean_ctor_set(v_reuseFailAlloc_8821_, 5, v_instant_8797_); +lean_ctor_set_uint8(v_reuseFailAlloc_8821_, sizeof(void*)*6, v_keepAlive_8798_); +lean_ctor_set_uint8(v_reuseFailAlloc_8821_, sizeof(void*)*6 + 1, v_forcedFlush_8799_); +lean_ctor_set_uint8(v_reuseFailAlloc_8821_, sizeof(void*)*6 + 2, v_pullBodyStalled_8800_); +v___x_8820_ = v_reuseFailAlloc_8821_; +goto v_reusejp_8819_; +} +v_reusejp_8819_: +{ +return v___x_8820_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine(lean_object* v_machine_8913_){ +_start: +{ +lean_object* v_config_8914_; lean_object* v_maxStartLineLength_8915_; lean_object* v___f_8916_; lean_object* v___x_8917_; lean_object* v___x_8918_; lean_object* v___x_8919_; lean_object* v___x_8920_; lean_object* v_snd_8921_; +v_config_8914_ = lean_ctor_get(v_machine_8913_, 2); +v_maxStartLineLength_8915_ = lean_ctor_get(v_config_8914_, 5); +v___f_8916_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___closed__0)); +lean_inc_ref(v_config_8914_); +v___x_8917_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseStatusLineRawVersion___boxed), 2, 1); +lean_closure_set(v___x_8917_, 0, v_config_8914_); +lean_inc(v_maxStartLineLength_8915_); +v___x_8918_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_8918_, 0, v_maxStartLineLength_8915_); +v___x_8919_ = lean_box(0); +v___x_8920_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8913_, v___x_8917_, v___x_8918_, v___x_8919_, v___f_8916_); +v_snd_8921_ = lean_ctor_get(v___x_8920_, 1); +lean_inc(v_snd_8921_); +if (lean_obj_tag(v_snd_8921_) == 0) +{ +lean_object* v_fst_8922_; +v_fst_8922_ = lean_ctor_get(v___x_8920_, 0); +lean_inc(v_fst_8922_); +lean_dec_ref(v___x_8920_); +return v_fst_8922_; +} +else +{ +lean_object* v_val_8923_; lean_object* v_fst_8924_; lean_object* v_fst_8925_; lean_object* v_snd_8926_; uint8_t v___x_8927_; uint8_t v___x_8928_; lean_object* v___x_8929_; uint8_t v___x_8930_; +v_val_8923_ = lean_ctor_get(v_snd_8921_, 0); +lean_inc(v_val_8923_); +lean_dec_ref(v_snd_8921_); +v_fst_8924_ = lean_ctor_get(v___x_8920_, 0); +lean_inc(v_fst_8924_); +lean_dec_ref(v___x_8920_); +v_fst_8925_ = lean_ctor_get(v_val_8923_, 0); +lean_inc(v_fst_8925_); +v_snd_8926_ = lean_ctor_get(v_val_8923_, 1); +lean_inc(v_snd_8926_); +lean_dec(v_val_8923_); +v___x_8927_ = 1; +v___x_8928_ = 1; +v___x_8929_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine___closed__0)); +v___x_8930_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_snd_8926_, v___x_8929_); +if (v___x_8930_ == 0) +{ +uint8_t v___x_8931_; lean_object* v___x_8932_; uint8_t v___x_8933_; +v___x_8931_ = 0; +v___x_8932_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine___closed__1)); +v___x_8933_ = l_Option_instBEq_beq___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine_spec__6(v_snd_8926_, v___x_8932_); +lean_dec(v_snd_8926_); +if (v___x_8933_ == 0) +{ +lean_object* v_reader_8934_; lean_object* v_writer_8935_; lean_object* v_config_8936_; lean_object* v_events_8937_; lean_object* v_instant_8938_; uint8_t v_keepAlive_8939_; uint8_t v_forcedFlush_8940_; uint8_t v_pullBodyStalled_8941_; lean_object* v___x_8943_; uint8_t v_isShared_8944_; uint8_t v_isSharedCheck_8966_; +lean_dec(v_fst_8925_); +v_reader_8934_ = lean_ctor_get(v_fst_8924_, 0); +v_writer_8935_ = lean_ctor_get(v_fst_8924_, 1); +v_config_8936_ = lean_ctor_get(v_fst_8924_, 2); +v_events_8937_ = lean_ctor_get(v_fst_8924_, 3); +v_instant_8938_ = lean_ctor_get(v_fst_8924_, 5); +v_keepAlive_8939_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6); +v_forcedFlush_8940_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8941_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 2); +v_isSharedCheck_8966_ = !lean_is_exclusive(v_fst_8924_); +if (v_isSharedCheck_8966_ == 0) +{ +lean_object* v_unused_8967_; +v_unused_8967_ = lean_ctor_get(v_fst_8924_, 4); +lean_dec(v_unused_8967_); +v___x_8943_ = v_fst_8924_; +v_isShared_8944_ = v_isSharedCheck_8966_; +goto v_resetjp_8942_; +} +else +{ +lean_inc(v_instant_8938_); +lean_inc(v_events_8937_); +lean_inc(v_config_8936_); +lean_inc(v_writer_8935_); +lean_inc(v_reader_8934_); +lean_dec(v_fst_8924_); +v___x_8943_ = lean_box(0); +v_isShared_8944_ = v_isSharedCheck_8966_; +goto v_resetjp_8942_; +} +v_resetjp_8942_: +{ +lean_object* v_input_8945_; lean_object* v_messageHead_8946_; lean_object* v_messageCount_8947_; lean_object* v_bodyBytesRead_8948_; lean_object* v_headerBytesRead_8949_; uint8_t v_noMoreInput_8950_; lean_object* v___x_8952_; uint8_t v_isShared_8953_; uint8_t v_isSharedCheck_8964_; +v_input_8945_ = lean_ctor_get(v_reader_8934_, 1); +v_messageHead_8946_ = lean_ctor_get(v_reader_8934_, 2); +v_messageCount_8947_ = lean_ctor_get(v_reader_8934_, 3); +v_bodyBytesRead_8948_ = lean_ctor_get(v_reader_8934_, 4); +v_headerBytesRead_8949_ = lean_ctor_get(v_reader_8934_, 5); +v_noMoreInput_8950_ = lean_ctor_get_uint8(v_reader_8934_, sizeof(void*)*6); +v_isSharedCheck_8964_ = !lean_is_exclusive(v_reader_8934_); +if (v_isSharedCheck_8964_ == 0) +{ +lean_object* v_unused_8965_; +v_unused_8965_ = lean_ctor_get(v_reader_8934_, 0); +lean_dec(v_unused_8965_); +v___x_8952_ = v_reader_8934_; +v_isShared_8953_ = v_isSharedCheck_8964_; +goto v_resetjp_8951_; +} +else +{ +lean_inc(v_headerBytesRead_8949_); +lean_inc(v_bodyBytesRead_8948_); +lean_inc(v_messageCount_8947_); +lean_inc(v_messageHead_8946_); +lean_inc(v_input_8945_); +lean_dec(v_reader_8934_); +v___x_8952_ = lean_box(0); +v_isShared_8953_ = v_isSharedCheck_8964_; +goto v_resetjp_8951_; +} +v_resetjp_8951_: +{ +lean_object* v___x_8954_; lean_object* v___x_8955_; lean_object* v___x_8956_; lean_object* v___x_8958_; +v___x_8954_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__1)); +v___x_8955_ = lean_array_push(v_events_8937_, v___x_8954_); +v___x_8956_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__2)); +if (v_isShared_8953_ == 0) +{ +lean_ctor_set(v___x_8952_, 0, v___x_8956_); +v___x_8958_ = v___x_8952_; +goto v_reusejp_8957_; +} +else +{ +lean_object* v_reuseFailAlloc_8963_; +v_reuseFailAlloc_8963_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8963_, 0, v___x_8956_); +lean_ctor_set(v_reuseFailAlloc_8963_, 1, v_input_8945_); +lean_ctor_set(v_reuseFailAlloc_8963_, 2, v_messageHead_8946_); +lean_ctor_set(v_reuseFailAlloc_8963_, 3, v_messageCount_8947_); +lean_ctor_set(v_reuseFailAlloc_8963_, 4, v_bodyBytesRead_8948_); +lean_ctor_set(v_reuseFailAlloc_8963_, 5, v_headerBytesRead_8949_); +lean_ctor_set_uint8(v_reuseFailAlloc_8963_, sizeof(void*)*6, v_noMoreInput_8950_); +v___x_8958_ = v_reuseFailAlloc_8963_; +goto v_reusejp_8957_; +} +v_reusejp_8957_: +{ +lean_object* v___x_8959_; lean_object* v___x_8961_; +v___x_8959_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__3)); +if (v_isShared_8944_ == 0) +{ +lean_ctor_set(v___x_8943_, 4, v___x_8959_); +lean_ctor_set(v___x_8943_, 3, v___x_8955_); +lean_ctor_set(v___x_8943_, 0, v___x_8958_); +v___x_8961_ = v___x_8943_; +goto v_reusejp_8960_; +} +else +{ +lean_object* v_reuseFailAlloc_8962_; +v_reuseFailAlloc_8962_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8962_, 0, v___x_8958_); +lean_ctor_set(v_reuseFailAlloc_8962_, 1, v_writer_8935_); +lean_ctor_set(v_reuseFailAlloc_8962_, 2, v_config_8936_); +lean_ctor_set(v_reuseFailAlloc_8962_, 3, v___x_8955_); +lean_ctor_set(v_reuseFailAlloc_8962_, 4, v___x_8959_); +lean_ctor_set(v_reuseFailAlloc_8962_, 5, v_instant_8938_); +lean_ctor_set_uint8(v_reuseFailAlloc_8962_, sizeof(void*)*6, v_keepAlive_8939_); +lean_ctor_set_uint8(v_reuseFailAlloc_8962_, sizeof(void*)*6 + 1, v_forcedFlush_8940_); +lean_ctor_set_uint8(v_reuseFailAlloc_8962_, sizeof(void*)*6 + 2, v_pullBodyStalled_8941_); +v___x_8961_ = v_reuseFailAlloc_8962_; +goto v_reusejp_8960_; +} +v_reusejp_8960_: +{ +return v___x_8961_; +} +} +} +} +} +else +{ +lean_object* v_reader_8968_; lean_object* v_writer_8969_; lean_object* v_config_8970_; lean_object* v_events_8971_; lean_object* v_error_8972_; lean_object* v_instant_8973_; uint8_t v_keepAlive_8974_; uint8_t v_forcedFlush_8975_; uint8_t v_pullBodyStalled_8976_; lean_object* v___x_8978_; uint8_t v_isShared_8979_; uint8_t v_isSharedCheck_9001_; +v_reader_8968_ = lean_ctor_get(v_fst_8924_, 0); +v_writer_8969_ = lean_ctor_get(v_fst_8924_, 1); +v_config_8970_ = lean_ctor_get(v_fst_8924_, 2); +v_events_8971_ = lean_ctor_get(v_fst_8924_, 3); +v_error_8972_ = lean_ctor_get(v_fst_8924_, 4); +v_instant_8973_ = lean_ctor_get(v_fst_8924_, 5); +v_keepAlive_8974_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6); +v_forcedFlush_8975_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 1); +v_pullBodyStalled_8976_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 2); +v_isSharedCheck_9001_ = !lean_is_exclusive(v_fst_8924_); +if (v_isSharedCheck_9001_ == 0) +{ +v___x_8978_ = v_fst_8924_; +v_isShared_8979_ = v_isSharedCheck_9001_; +goto v_resetjp_8977_; +} +else +{ +lean_inc(v_instant_8973_); +lean_inc(v_error_8972_); +lean_inc(v_events_8971_); +lean_inc(v_config_8970_); +lean_inc(v_writer_8969_); +lean_inc(v_reader_8968_); +lean_dec(v_fst_8924_); +v___x_8978_ = lean_box(0); +v_isShared_8979_ = v_isSharedCheck_9001_; +goto v_resetjp_8977_; +} +v_resetjp_8977_: +{ +lean_object* v_input_8980_; lean_object* v_messageCount_8981_; lean_object* v_bodyBytesRead_8982_; lean_object* v_headerBytesRead_8983_; uint8_t v_noMoreInput_8984_; lean_object* v___x_8986_; uint8_t v_isShared_8987_; uint8_t v_isSharedCheck_8998_; +v_input_8980_ = lean_ctor_get(v_reader_8968_, 1); +v_messageCount_8981_ = lean_ctor_get(v_reader_8968_, 3); +v_bodyBytesRead_8982_ = lean_ctor_get(v_reader_8968_, 4); +v_headerBytesRead_8983_ = lean_ctor_get(v_reader_8968_, 5); +v_noMoreInput_8984_ = lean_ctor_get_uint8(v_reader_8968_, sizeof(void*)*6); +v_isSharedCheck_8998_ = !lean_is_exclusive(v_reader_8968_); +if (v_isSharedCheck_8998_ == 0) +{ +lean_object* v_unused_8999_; lean_object* v_unused_9000_; +v_unused_8999_ = lean_ctor_get(v_reader_8968_, 2); +lean_dec(v_unused_8999_); +v_unused_9000_ = lean_ctor_get(v_reader_8968_, 0); +lean_dec(v_unused_9000_); +v___x_8986_ = v_reader_8968_; +v_isShared_8987_ = v_isSharedCheck_8998_; +goto v_resetjp_8985_; +} +else +{ +lean_inc(v_headerBytesRead_8983_); +lean_inc(v_bodyBytesRead_8982_); +lean_inc(v_messageCount_8981_); +lean_inc(v_input_8980_); +lean_dec(v_reader_8968_); +v___x_8986_ = lean_box(0); +v_isShared_8987_ = v_isSharedCheck_8998_; +goto v_resetjp_8985_; +} +v_resetjp_8985_: +{ +lean_object* v___x_8988_; lean_object* v___x_8989_; lean_object* v___x_8990_; lean_object* v___x_8992_; +v___x_8988_ = l_Std_Http_Headers_empty; +v___x_8989_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_8989_, 0, v_fst_8925_); +lean_ctor_set(v___x_8989_, 1, v___x_8988_); +lean_ctor_set_uint8(v___x_8989_, sizeof(void*)*2, v___x_8931_); +v___x_8990_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); +if (v_isShared_8987_ == 0) +{ +lean_ctor_set(v___x_8986_, 2, v___x_8989_); +lean_ctor_set(v___x_8986_, 0, v___x_8990_); +v___x_8992_ = v___x_8986_; +goto v_reusejp_8991_; +} +else +{ +lean_object* v_reuseFailAlloc_8997_; +v_reuseFailAlloc_8997_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_8997_, 0, v___x_8990_); +lean_ctor_set(v_reuseFailAlloc_8997_, 1, v_input_8980_); +lean_ctor_set(v_reuseFailAlloc_8997_, 2, v___x_8989_); +lean_ctor_set(v_reuseFailAlloc_8997_, 3, v_messageCount_8981_); +lean_ctor_set(v_reuseFailAlloc_8997_, 4, v_bodyBytesRead_8982_); +lean_ctor_set(v_reuseFailAlloc_8997_, 5, v_headerBytesRead_8983_); +lean_ctor_set_uint8(v_reuseFailAlloc_8997_, sizeof(void*)*6, v_noMoreInput_8984_); +v___x_8992_ = v_reuseFailAlloc_8997_; +goto v_reusejp_8991_; +} +v_reusejp_8991_: +{ +lean_object* v___x_8994_; +if (v_isShared_8979_ == 0) +{ +lean_ctor_set(v___x_8978_, 0, v___x_8992_); +v___x_8994_ = v___x_8978_; +goto v_reusejp_8993_; +} +else +{ +lean_object* v_reuseFailAlloc_8996_; +v_reuseFailAlloc_8996_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_8996_, 0, v___x_8992_); +lean_ctor_set(v_reuseFailAlloc_8996_, 1, v_writer_8969_); +lean_ctor_set(v_reuseFailAlloc_8996_, 2, v_config_8970_); +lean_ctor_set(v_reuseFailAlloc_8996_, 3, v_events_8971_); +lean_ctor_set(v_reuseFailAlloc_8996_, 4, v_error_8972_); +lean_ctor_set(v_reuseFailAlloc_8996_, 5, v_instant_8973_); +lean_ctor_set_uint8(v_reuseFailAlloc_8996_, sizeof(void*)*6, v_keepAlive_8974_); +lean_ctor_set_uint8(v_reuseFailAlloc_8996_, sizeof(void*)*6 + 1, v_forcedFlush_8975_); +lean_ctor_set_uint8(v_reuseFailAlloc_8996_, sizeof(void*)*6 + 2, v_pullBodyStalled_8976_); +v___x_8994_ = v_reuseFailAlloc_8996_; +goto v_reusejp_8993_; +} +v_reusejp_8993_: +{ +lean_object* v___x_8995_; +v___x_8995_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8927_, v___x_8994_); +return v___x_8995_; +} +} +} +} +} +} +else +{ +lean_object* v_reader_9002_; lean_object* v_writer_9003_; lean_object* v_config_9004_; lean_object* v_events_9005_; lean_object* v_error_9006_; lean_object* v_instant_9007_; uint8_t v_keepAlive_9008_; uint8_t v_forcedFlush_9009_; uint8_t v_pullBodyStalled_9010_; lean_object* v___x_9012_; uint8_t v_isShared_9013_; uint8_t v_isSharedCheck_9035_; +lean_dec(v_snd_8926_); +v_reader_9002_ = lean_ctor_get(v_fst_8924_, 0); +v_writer_9003_ = lean_ctor_get(v_fst_8924_, 1); +v_config_9004_ = lean_ctor_get(v_fst_8924_, 2); +v_events_9005_ = lean_ctor_get(v_fst_8924_, 3); +v_error_9006_ = lean_ctor_get(v_fst_8924_, 4); +v_instant_9007_ = lean_ctor_get(v_fst_8924_, 5); +v_keepAlive_9008_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6); +v_forcedFlush_9009_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 1); +v_pullBodyStalled_9010_ = lean_ctor_get_uint8(v_fst_8924_, sizeof(void*)*6 + 2); +v_isSharedCheck_9035_ = !lean_is_exclusive(v_fst_8924_); +if (v_isSharedCheck_9035_ == 0) +{ +v___x_9012_ = v_fst_8924_; +v_isShared_9013_ = v_isSharedCheck_9035_; +goto v_resetjp_9011_; +} +else +{ +lean_inc(v_instant_9007_); +lean_inc(v_error_9006_); +lean_inc(v_events_9005_); +lean_inc(v_config_9004_); +lean_inc(v_writer_9003_); +lean_inc(v_reader_9002_); +lean_dec(v_fst_8924_); +v___x_9012_ = lean_box(0); +v_isShared_9013_ = v_isSharedCheck_9035_; +goto v_resetjp_9011_; +} +v_resetjp_9011_: +{ +lean_object* v_input_9014_; lean_object* v_messageCount_9015_; lean_object* v_bodyBytesRead_9016_; lean_object* v_headerBytesRead_9017_; uint8_t v_noMoreInput_9018_; lean_object* v___x_9020_; uint8_t v_isShared_9021_; uint8_t v_isSharedCheck_9032_; +v_input_9014_ = lean_ctor_get(v_reader_9002_, 1); +v_messageCount_9015_ = lean_ctor_get(v_reader_9002_, 3); +v_bodyBytesRead_9016_ = lean_ctor_get(v_reader_9002_, 4); +v_headerBytesRead_9017_ = lean_ctor_get(v_reader_9002_, 5); +v_noMoreInput_9018_ = lean_ctor_get_uint8(v_reader_9002_, sizeof(void*)*6); +v_isSharedCheck_9032_ = !lean_is_exclusive(v_reader_9002_); +if (v_isSharedCheck_9032_ == 0) +{ +lean_object* v_unused_9033_; lean_object* v_unused_9034_; +v_unused_9033_ = lean_ctor_get(v_reader_9002_, 2); +lean_dec(v_unused_9033_); +v_unused_9034_ = lean_ctor_get(v_reader_9002_, 0); +lean_dec(v_unused_9034_); +v___x_9020_ = v_reader_9002_; +v_isShared_9021_ = v_isSharedCheck_9032_; +goto v_resetjp_9019_; +} +else +{ +lean_inc(v_headerBytesRead_9017_); +lean_inc(v_bodyBytesRead_9016_); +lean_inc(v_messageCount_9015_); +lean_inc(v_input_9014_); +lean_dec(v_reader_9002_); +v___x_9020_ = lean_box(0); +v_isShared_9021_ = v_isSharedCheck_9032_; +goto v_resetjp_9019_; +} +v_resetjp_9019_: +{ +lean_object* v___x_9022_; lean_object* v___x_9023_; lean_object* v___x_9024_; lean_object* v___x_9026_; +v___x_9022_ = l_Std_Http_Headers_empty; +v___x_9023_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_9023_, 0, v_fst_8925_); +lean_ctor_set(v___x_9023_, 1, v___x_9022_); +lean_ctor_set_uint8(v___x_9023_, sizeof(void*)*2, v___x_8928_); +v___x_9024_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine___closed__4)); +if (v_isShared_9021_ == 0) +{ +lean_ctor_set(v___x_9020_, 2, v___x_9023_); +lean_ctor_set(v___x_9020_, 0, v___x_9024_); +v___x_9026_ = v___x_9020_; +goto v_reusejp_9025_; +} +else +{ +lean_object* v_reuseFailAlloc_9031_; +v_reuseFailAlloc_9031_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_9031_, 0, v___x_9024_); +lean_ctor_set(v_reuseFailAlloc_9031_, 1, v_input_9014_); +lean_ctor_set(v_reuseFailAlloc_9031_, 2, v___x_9023_); +lean_ctor_set(v_reuseFailAlloc_9031_, 3, v_messageCount_9015_); +lean_ctor_set(v_reuseFailAlloc_9031_, 4, v_bodyBytesRead_9016_); +lean_ctor_set(v_reuseFailAlloc_9031_, 5, v_headerBytesRead_9017_); +lean_ctor_set_uint8(v_reuseFailAlloc_9031_, sizeof(void*)*6, v_noMoreInput_9018_); +v___x_9026_ = v_reuseFailAlloc_9031_; +goto v_reusejp_9025_; +} +v_reusejp_9025_: +{ +lean_object* v___x_9028_; +if (v_isShared_9013_ == 0) +{ +lean_ctor_set(v___x_9012_, 0, v___x_9026_); +v___x_9028_ = v___x_9012_; +goto v_reusejp_9027_; +} +else +{ +lean_object* v_reuseFailAlloc_9030_; +v_reuseFailAlloc_9030_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9030_, 0, v___x_9026_); +lean_ctor_set(v_reuseFailAlloc_9030_, 1, v_writer_9003_); +lean_ctor_set(v_reuseFailAlloc_9030_, 2, v_config_9004_); +lean_ctor_set(v_reuseFailAlloc_9030_, 3, v_events_9005_); +lean_ctor_set(v_reuseFailAlloc_9030_, 4, v_error_9006_); +lean_ctor_set(v_reuseFailAlloc_9030_, 5, v_instant_9007_); +lean_ctor_set_uint8(v_reuseFailAlloc_9030_, sizeof(void*)*6, v_keepAlive_9008_); +lean_ctor_set_uint8(v_reuseFailAlloc_9030_, sizeof(void*)*6 + 1, v_forcedFlush_9009_); +lean_ctor_set_uint8(v_reuseFailAlloc_9030_, sizeof(void*)*6 + 2, v_pullBodyStalled_9010_); +v___x_9028_ = v_reuseFailAlloc_9030_; +goto v_reusejp_9027_; +} +v_reusejp_9027_: +{ +lean_object* v___x_9029_; +v___x_9029_ = l_Std_Http_Protocol_H1_Machine_processRead(v___x_8927_, v___x_9028_); +return v___x_9029_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(uint8_t v_dir_9036_, lean_object* v_machine_9037_){ +_start: +{ +lean_object* v_reader_9038_; lean_object* v_writer_9039_; lean_object* v_config_9040_; lean_object* v_events_9041_; lean_object* v_error_9042_; lean_object* v_instant_9043_; uint8_t v_keepAlive_9044_; uint8_t v_forcedFlush_9045_; uint8_t v_pullBodyStalled_9046_; lean_object* v_input_9047_; lean_object* v_messageHead_9048_; lean_object* v_messageCount_9049_; lean_object* v_bodyBytesRead_9050_; lean_object* v_headerBytesRead_9051_; uint8_t v_noMoreInput_9052_; +v_reader_9038_ = lean_ctor_get(v_machine_9037_, 0); +lean_inc_ref(v_reader_9038_); +v_writer_9039_ = lean_ctor_get(v_machine_9037_, 1); +v_config_9040_ = lean_ctor_get(v_machine_9037_, 2); +v_events_9041_ = lean_ctor_get(v_machine_9037_, 3); +v_error_9042_ = lean_ctor_get(v_machine_9037_, 4); +v_instant_9043_ = lean_ctor_get(v_machine_9037_, 5); +v_keepAlive_9044_ = lean_ctor_get_uint8(v_machine_9037_, sizeof(void*)*6); +v_forcedFlush_9045_ = lean_ctor_get_uint8(v_machine_9037_, sizeof(void*)*6 + 1); +v_pullBodyStalled_9046_ = lean_ctor_get_uint8(v_machine_9037_, sizeof(void*)*6 + 2); +v_input_9047_ = lean_ctor_get(v_reader_9038_, 1); +v_messageHead_9048_ = lean_ctor_get(v_reader_9038_, 2); +v_messageCount_9049_ = lean_ctor_get(v_reader_9038_, 3); +v_bodyBytesRead_9050_ = lean_ctor_get(v_reader_9038_, 4); +v_headerBytesRead_9051_ = lean_ctor_get(v_reader_9038_, 5); +v_noMoreInput_9052_ = lean_ctor_get_uint8(v_reader_9038_, sizeof(void*)*6); +if (v_noMoreInput_9052_ == 0) +{ +goto v___jp_9053_; +} +else +{ +lean_object* v_array_9075_; lean_object* v_idx_9076_; lean_object* v___x_9077_; uint8_t v___x_9078_; +v_array_9075_ = lean_ctor_get(v_input_9047_, 0); +v_idx_9076_ = lean_ctor_get(v_input_9047_, 1); +v___x_9077_ = lean_byte_array_size(v_array_9075_); +v___x_9078_ = lean_nat_dec_le(v___x_9077_, v_idx_9076_); +if (v___x_9078_ == 0) +{ +goto v___jp_9053_; +} +else +{ +lean_object* v___x_9080_; uint8_t v_isShared_9081_; uint8_t v_isSharedCheck_9099_; +lean_inc(v_headerBytesRead_9051_); +lean_inc(v_bodyBytesRead_9050_); +lean_inc(v_messageCount_9049_); +lean_inc(v_messageHead_9048_); +lean_inc_ref(v_input_9047_); +lean_inc(v_instant_9043_); +lean_inc(v_error_9042_); +lean_inc_ref(v_events_9041_); +lean_inc_ref(v_config_9040_); +lean_inc_ref(v_writer_9039_); +v_isSharedCheck_9099_ = !lean_is_exclusive(v_machine_9037_); +if (v_isSharedCheck_9099_ == 0) +{ +lean_object* v_unused_9100_; lean_object* v_unused_9101_; lean_object* v_unused_9102_; lean_object* v_unused_9103_; lean_object* v_unused_9104_; lean_object* v_unused_9105_; +v_unused_9100_ = lean_ctor_get(v_machine_9037_, 5); +lean_dec(v_unused_9100_); +v_unused_9101_ = lean_ctor_get(v_machine_9037_, 4); +lean_dec(v_unused_9101_); +v_unused_9102_ = lean_ctor_get(v_machine_9037_, 3); +lean_dec(v_unused_9102_); +v_unused_9103_ = lean_ctor_get(v_machine_9037_, 2); +lean_dec(v_unused_9103_); +v_unused_9104_ = lean_ctor_get(v_machine_9037_, 1); +lean_dec(v_unused_9104_); +v_unused_9105_ = lean_ctor_get(v_machine_9037_, 0); +lean_dec(v_unused_9105_); +v___x_9080_ = v_machine_9037_; +v_isShared_9081_ = v_isSharedCheck_9099_; +goto v_resetjp_9079_; +} +else +{ +lean_dec(v_machine_9037_); +v___x_9080_ = lean_box(0); +v_isShared_9081_ = v_isSharedCheck_9099_; +goto v_resetjp_9079_; +} +v_resetjp_9079_: +{ +lean_object* v___x_9083_; uint8_t v_isShared_9084_; uint8_t v_isSharedCheck_9092_; +v_isSharedCheck_9092_ = !lean_is_exclusive(v_reader_9038_); +if (v_isSharedCheck_9092_ == 0) +{ +lean_object* v_unused_9093_; lean_object* v_unused_9094_; lean_object* v_unused_9095_; lean_object* v_unused_9096_; lean_object* v_unused_9097_; lean_object* v_unused_9098_; +v_unused_9093_ = lean_ctor_get(v_reader_9038_, 5); +lean_dec(v_unused_9093_); +v_unused_9094_ = lean_ctor_get(v_reader_9038_, 4); +lean_dec(v_unused_9094_); +v_unused_9095_ = lean_ctor_get(v_reader_9038_, 3); +lean_dec(v_unused_9095_); +v_unused_9096_ = lean_ctor_get(v_reader_9038_, 2); +lean_dec(v_unused_9096_); +v_unused_9097_ = lean_ctor_get(v_reader_9038_, 1); +lean_dec(v_unused_9097_); +v_unused_9098_ = lean_ctor_get(v_reader_9038_, 0); +lean_dec(v_unused_9098_); +v___x_9083_ = v_reader_9038_; +v_isShared_9084_ = v_isSharedCheck_9092_; +goto v_resetjp_9082_; +} +else +{ +lean_dec(v_reader_9038_); +v___x_9083_ = lean_box(0); +v_isShared_9084_ = v_isSharedCheck_9092_; +goto v_resetjp_9082_; +} +v_resetjp_9082_: +{ +lean_object* v___x_9085_; lean_object* v___x_9087_; +v___x_9085_ = lean_box(6); +if (v_isShared_9084_ == 0) +{ +lean_ctor_set(v___x_9083_, 0, v___x_9085_); +v___x_9087_ = v___x_9083_; +goto v_reusejp_9086_; +} +else +{ +lean_object* v_reuseFailAlloc_9091_; +v_reuseFailAlloc_9091_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_9091_, 0, v___x_9085_); +lean_ctor_set(v_reuseFailAlloc_9091_, 1, v_input_9047_); +lean_ctor_set(v_reuseFailAlloc_9091_, 2, v_messageHead_9048_); +lean_ctor_set(v_reuseFailAlloc_9091_, 3, v_messageCount_9049_); +lean_ctor_set(v_reuseFailAlloc_9091_, 4, v_bodyBytesRead_9050_); +lean_ctor_set(v_reuseFailAlloc_9091_, 5, v_headerBytesRead_9051_); +lean_ctor_set_uint8(v_reuseFailAlloc_9091_, sizeof(void*)*6, v_noMoreInput_9052_); +v___x_9087_ = v_reuseFailAlloc_9091_; +goto v_reusejp_9086_; +} +v_reusejp_9086_: +{ +lean_object* v___x_9089_; +if (v_isShared_9081_ == 0) +{ +lean_ctor_set(v___x_9080_, 0, v___x_9087_); +v___x_9089_ = v___x_9080_; +goto v_reusejp_9088_; +} +else +{ +lean_object* v_reuseFailAlloc_9090_; +v_reuseFailAlloc_9090_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9090_, 0, v___x_9087_); +lean_ctor_set(v_reuseFailAlloc_9090_, 1, v_writer_9039_); +lean_ctor_set(v_reuseFailAlloc_9090_, 2, v_config_9040_); +lean_ctor_set(v_reuseFailAlloc_9090_, 3, v_events_9041_); +lean_ctor_set(v_reuseFailAlloc_9090_, 4, v_error_9042_); +lean_ctor_set(v_reuseFailAlloc_9090_, 5, v_instant_9043_); +lean_ctor_set_uint8(v_reuseFailAlloc_9090_, sizeof(void*)*6, v_keepAlive_9044_); +lean_ctor_set_uint8(v_reuseFailAlloc_9090_, sizeof(void*)*6 + 1, v_forcedFlush_9045_); +lean_ctor_set_uint8(v_reuseFailAlloc_9090_, sizeof(void*)*6 + 2, v_pullBodyStalled_9046_); +v___x_9089_ = v_reuseFailAlloc_9090_; +goto v_reusejp_9088_; +} +v_reusejp_9088_: +{ +return v___x_9089_; +} +} +} +} +} +} +v___jp_9053_: +{ +lean_object* v_array_9054_; lean_object* v_idx_9055_; lean_object* v___x_9056_; uint8_t v___x_9057_; +v_array_9054_ = lean_ctor_get(v_input_9047_, 0); +v_idx_9055_ = lean_ctor_get(v_input_9047_, 1); +v___x_9056_ = lean_byte_array_size(v_array_9054_); +v___x_9057_ = lean_nat_dec_le(v___x_9056_, v_idx_9055_); +if (v___x_9057_ == 0) +{ +lean_dec_ref(v_reader_9038_); +if (v_dir_9036_ == 0) +{ +lean_object* v___x_9058_; +v___x_9058_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReceivingStartLine(v_machine_9037_); +return v___x_9058_; +} +else +{ +lean_object* v___x_9059_; +v___x_9059_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processSendingStartLine(v_machine_9037_); +return v___x_9059_; +} +} +else +{ +lean_object* v___x_9061_; uint8_t v_isShared_9062_; uint8_t v_isSharedCheck_9068_; +lean_inc(v_instant_9043_); +lean_inc(v_error_9042_); +lean_inc_ref(v_events_9041_); +lean_inc_ref(v_config_9040_); +lean_inc_ref(v_writer_9039_); +v_isSharedCheck_9068_ = !lean_is_exclusive(v_machine_9037_); +if (v_isSharedCheck_9068_ == 0) +{ +lean_object* v_unused_9069_; lean_object* v_unused_9070_; lean_object* v_unused_9071_; lean_object* v_unused_9072_; lean_object* v_unused_9073_; lean_object* v_unused_9074_; +v_unused_9069_ = lean_ctor_get(v_machine_9037_, 5); +lean_dec(v_unused_9069_); +v_unused_9070_ = lean_ctor_get(v_machine_9037_, 4); +lean_dec(v_unused_9070_); +v_unused_9071_ = lean_ctor_get(v_machine_9037_, 3); +lean_dec(v_unused_9071_); +v_unused_9072_ = lean_ctor_get(v_machine_9037_, 2); +lean_dec(v_unused_9072_); +v_unused_9073_ = lean_ctor_get(v_machine_9037_, 1); +lean_dec(v_unused_9073_); +v_unused_9074_ = lean_ctor_get(v_machine_9037_, 0); +lean_dec(v_unused_9074_); +v___x_9061_ = v_machine_9037_; +v_isShared_9062_ = v_isSharedCheck_9068_; +goto v_resetjp_9060_; +} +else +{ +lean_dec(v_machine_9037_); +v___x_9061_ = lean_box(0); +v_isShared_9062_ = v_isSharedCheck_9068_; +goto v_resetjp_9060_; +} +v_resetjp_9060_: +{ +lean_object* v___x_9063_; lean_object* v___x_9064_; lean_object* v___x_9066_; +v___x_9063_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseCloseDelimitedBody___closed__0)); +v___x_9064_ = lean_array_push(v_events_9041_, v___x_9063_); +if (v_isShared_9062_ == 0) +{ +lean_ctor_set(v___x_9061_, 3, v___x_9064_); +v___x_9066_ = v___x_9061_; +goto v_reusejp_9065_; +} +else +{ +lean_object* v_reuseFailAlloc_9067_; +v_reuseFailAlloc_9067_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9067_, 0, v_reader_9038_); +lean_ctor_set(v_reuseFailAlloc_9067_, 1, v_writer_9039_); +lean_ctor_set(v_reuseFailAlloc_9067_, 2, v_config_9040_); +lean_ctor_set(v_reuseFailAlloc_9067_, 3, v___x_9064_); +lean_ctor_set(v_reuseFailAlloc_9067_, 4, v_error_9042_); +lean_ctor_set(v_reuseFailAlloc_9067_, 5, v_instant_9043_); +lean_ctor_set_uint8(v_reuseFailAlloc_9067_, sizeof(void*)*6, v_keepAlive_9044_); +lean_ctor_set_uint8(v_reuseFailAlloc_9067_, sizeof(void*)*6 + 1, v_forcedFlush_9045_); +lean_ctor_set_uint8(v_reuseFailAlloc_9067_, sizeof(void*)*6 + 2, v_pullBodyStalled_9046_); +v___x_9066_ = v_reuseFailAlloc_9067_; +goto v_reusejp_9065_; +} +v_reusejp_9065_: +{ +return v___x_9066_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(uint8_t v_dir_9106_, lean_object* v_machine_9107_, lean_object* v_bodyState_9108_){ +_start: +{ +if (v_dir_9106_ == 0) +{ +lean_object* v_writer_9117_; uint8_t v_sentMessage_9118_; +v_writer_9117_ = lean_ctor_get(v_machine_9107_, 1); +v_sentMessage_9118_ = lean_ctor_get_uint8(v_writer_9117_, sizeof(void*)*6); +if (v_sentMessage_9118_ == 0) +{ +lean_dec(v_bodyState_9108_); +return v_machine_9107_; +} +else +{ +goto v___jp_9109_; +} +} +else +{ +lean_object* v_reader_9119_; lean_object* v_messageHead_9120_; lean_object* v_status_9121_; uint16_t v___x_9122_; uint16_t v___x_9123_; uint8_t v___x_9124_; +v_reader_9119_ = lean_ctor_get(v_machine_9107_, 0); +v_messageHead_9120_ = lean_ctor_get(v_reader_9119_, 2); +v_status_9121_ = lean_ctor_get(v_messageHead_9120_, 0); +v___x_9122_ = 100; +v___x_9123_ = l_Std_Http_Status_toCode(v_status_9121_); +v___x_9124_ = lean_uint16_dec_le(v___x_9122_, v___x_9123_); +if (v___x_9124_ == 0) +{ +lean_dec(v_bodyState_9108_); +return v_machine_9107_; +} +else +{ +uint16_t v___x_9125_; uint8_t v___x_9126_; +v___x_9125_ = 200; +v___x_9126_ = lean_uint16_dec_lt(v___x_9123_, v___x_9125_); +if (v___x_9126_ == 0) +{ +lean_dec(v_bodyState_9108_); +return v_machine_9107_; +} +else +{ +goto v___jp_9109_; +} +} +} +v___jp_9109_: +{ +lean_object* v___x_9110_; lean_object* v_snd_9111_; lean_object* v_snd_9112_; uint8_t v___x_9113_; +v___x_9110_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_9106_, v_machine_9107_, v_bodyState_9108_); +v_snd_9111_ = lean_ctor_get(v___x_9110_, 1); +lean_inc(v_snd_9111_); +v_snd_9112_ = lean_ctor_get(v_snd_9111_, 1); +lean_inc(v_snd_9112_); +lean_dec(v_snd_9111_); +v___x_9113_ = lean_unbox(v_snd_9112_); +lean_dec(v_snd_9112_); +if (v___x_9113_ == 0) +{ +lean_object* v_fst_9114_; +v_fst_9114_ = lean_ctor_get(v___x_9110_, 0); +lean_inc(v_fst_9114_); +lean_dec_ref(v___x_9110_); +return v_fst_9114_; +} +else +{ +lean_object* v_fst_9115_; lean_object* v___x_9116_; +v_fst_9115_ = lean_ctor_get(v___x_9110_, 0); +lean_inc(v_fst_9115_); +lean_dec_ref(v___x_9110_); +v___x_9116_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_9106_, v_fst_9115_); +return v___x_9116_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processRead(uint8_t v_dir_9127_, lean_object* v_machine_9128_){ +_start: +{ +lean_object* v_reader_9129_; lean_object* v_state_9130_; +v_reader_9129_ = lean_ctor_get(v_machine_9128_, 0); +lean_inc_ref(v_reader_9129_); +v_state_9130_ = lean_ctor_get(v_reader_9129_, 0); +switch(lean_obj_tag(v_state_9130_)) +{ +case 0: +{ +lean_object* v___x_9131_; +lean_dec_ref(v_reader_9129_); +v___x_9131_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(v_dir_9127_, v_machine_9128_); +return v___x_9131_; +} +case 1: +{ +lean_object* v_a_9132_; lean_object* v___x_9133_; +lean_inc_ref(v_state_9130_); +lean_dec_ref(v_reader_9129_); +v_a_9132_ = lean_ctor_get(v_state_9130_, 0); +lean_inc(v_a_9132_); +lean_dec_ref(v_state_9130_); +v___x_9133_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(v_dir_9127_, v_machine_9128_, v_a_9132_); +lean_dec(v_a_9132_); +return v___x_9133_; +} +case 2: +{ +lean_object* v_a_9134_; lean_object* v___x_9135_; +lean_inc_ref(v_state_9130_); +lean_dec_ref(v_reader_9129_); +v_a_9134_ = lean_ctor_get(v_state_9130_, 0); +lean_inc(v_a_9134_); +lean_dec_ref(v_state_9130_); +v___x_9135_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(v_dir_9127_, v_machine_9128_, v_a_9134_); +return v___x_9135_; } case 4: { -lean_object* v_writer_8228_; lean_object* v_state_8229_; -v_writer_8228_ = lean_ctor_get(v_machine_8220_, 1); -v_state_8229_ = lean_ctor_get(v_writer_8228_, 2); -if (lean_obj_tag(v_state_8229_) == 5) +lean_object* v_writer_9136_; lean_object* v_state_9137_; +v_writer_9136_ = lean_ctor_get(v_machine_9128_, 1); +v_state_9137_ = lean_ctor_get(v_writer_9136_, 2); +if (lean_obj_tag(v_state_9137_) == 7) { -lean_object* v_config_8230_; lean_object* v_events_8231_; lean_object* v_error_8232_; lean_object* v_instant_8233_; uint8_t v_keepAlive_8234_; uint8_t v_forcedFlush_8235_; uint8_t v_pullBodyStalled_8236_; lean_object* v___x_8238_; uint8_t v_isShared_8239_; uint8_t v_isSharedCheck_8258_; -lean_inc_ref(v_writer_8228_); -v_config_8230_ = lean_ctor_get(v_machine_8220_, 2); -v_events_8231_ = lean_ctor_get(v_machine_8220_, 3); -v_error_8232_ = lean_ctor_get(v_machine_8220_, 4); -v_instant_8233_ = lean_ctor_get(v_machine_8220_, 5); -v_keepAlive_8234_ = lean_ctor_get_uint8(v_machine_8220_, sizeof(void*)*6); -v_forcedFlush_8235_ = lean_ctor_get_uint8(v_machine_8220_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8236_ = lean_ctor_get_uint8(v_machine_8220_, sizeof(void*)*6 + 2); -v_isSharedCheck_8258_ = !lean_is_exclusive(v_machine_8220_); -if (v_isSharedCheck_8258_ == 0) +lean_object* v_config_9138_; lean_object* v_events_9139_; lean_object* v_error_9140_; lean_object* v_instant_9141_; uint8_t v_keepAlive_9142_; uint8_t v_forcedFlush_9143_; uint8_t v_pullBodyStalled_9144_; lean_object* v___x_9146_; uint8_t v_isShared_9147_; uint8_t v_isSharedCheck_9166_; +lean_inc_ref(v_writer_9136_); +v_config_9138_ = lean_ctor_get(v_machine_9128_, 2); +v_events_9139_ = lean_ctor_get(v_machine_9128_, 3); +v_error_9140_ = lean_ctor_get(v_machine_9128_, 4); +v_instant_9141_ = lean_ctor_get(v_machine_9128_, 5); +v_keepAlive_9142_ = lean_ctor_get_uint8(v_machine_9128_, sizeof(void*)*6); +v_forcedFlush_9143_ = lean_ctor_get_uint8(v_machine_9128_, sizeof(void*)*6 + 1); +v_pullBodyStalled_9144_ = lean_ctor_get_uint8(v_machine_9128_, sizeof(void*)*6 + 2); +v_isSharedCheck_9166_ = !lean_is_exclusive(v_machine_9128_); +if (v_isSharedCheck_9166_ == 0) { -lean_object* v_unused_8259_; lean_object* v_unused_8260_; -v_unused_8259_ = lean_ctor_get(v_machine_8220_, 1); -lean_dec(v_unused_8259_); -v_unused_8260_ = lean_ctor_get(v_machine_8220_, 0); -lean_dec(v_unused_8260_); -v___x_8238_ = v_machine_8220_; -v_isShared_8239_ = v_isSharedCheck_8258_; -goto v_resetjp_8237_; +lean_object* v_unused_9167_; lean_object* v_unused_9168_; +v_unused_9167_ = lean_ctor_get(v_machine_9128_, 1); +lean_dec(v_unused_9167_); +v_unused_9168_ = lean_ctor_get(v_machine_9128_, 0); +lean_dec(v_unused_9168_); +v___x_9146_ = v_machine_9128_; +v_isShared_9147_ = v_isSharedCheck_9166_; +goto v_resetjp_9145_; } else { -lean_inc(v_instant_8233_); -lean_inc(v_error_8232_); -lean_inc(v_events_8231_); -lean_inc(v_config_8230_); -lean_dec(v_machine_8220_); -v___x_8238_ = lean_box(0); -v_isShared_8239_ = v_isSharedCheck_8258_; -goto v_resetjp_8237_; +lean_inc(v_instant_9141_); +lean_inc(v_error_9140_); +lean_inc(v_events_9139_); +lean_inc(v_config_9138_); +lean_dec(v_machine_9128_); +v___x_9146_ = lean_box(0); +v_isShared_9147_ = v_isSharedCheck_9166_; +goto v_resetjp_9145_; } -v_resetjp_8237_: +v_resetjp_9145_: { -lean_object* v_input_8240_; lean_object* v_messageHead_8241_; lean_object* v_messageCount_8242_; lean_object* v_bodyBytesRead_8243_; lean_object* v_headerBytesRead_8244_; uint8_t v_noMoreInput_8245_; lean_object* v___x_8247_; uint8_t v_isShared_8248_; uint8_t v_isSharedCheck_8256_; -v_input_8240_ = lean_ctor_get(v_reader_8221_, 1); -v_messageHead_8241_ = lean_ctor_get(v_reader_8221_, 2); -v_messageCount_8242_ = lean_ctor_get(v_reader_8221_, 3); -v_bodyBytesRead_8243_ = lean_ctor_get(v_reader_8221_, 4); -v_headerBytesRead_8244_ = lean_ctor_get(v_reader_8221_, 5); -v_noMoreInput_8245_ = lean_ctor_get_uint8(v_reader_8221_, sizeof(void*)*6); -v_isSharedCheck_8256_ = !lean_is_exclusive(v_reader_8221_); -if (v_isSharedCheck_8256_ == 0) +lean_object* v_input_9148_; lean_object* v_messageHead_9149_; lean_object* v_messageCount_9150_; lean_object* v_bodyBytesRead_9151_; lean_object* v_headerBytesRead_9152_; uint8_t v_noMoreInput_9153_; lean_object* v___x_9155_; uint8_t v_isShared_9156_; uint8_t v_isSharedCheck_9164_; +v_input_9148_ = lean_ctor_get(v_reader_9129_, 1); +v_messageHead_9149_ = lean_ctor_get(v_reader_9129_, 2); +v_messageCount_9150_ = lean_ctor_get(v_reader_9129_, 3); +v_bodyBytesRead_9151_ = lean_ctor_get(v_reader_9129_, 4); +v_headerBytesRead_9152_ = lean_ctor_get(v_reader_9129_, 5); +v_noMoreInput_9153_ = lean_ctor_get_uint8(v_reader_9129_, sizeof(void*)*6); +v_isSharedCheck_9164_ = !lean_is_exclusive(v_reader_9129_); +if (v_isSharedCheck_9164_ == 0) { -lean_object* v_unused_8257_; -v_unused_8257_ = lean_ctor_get(v_reader_8221_, 0); -lean_dec(v_unused_8257_); -v___x_8247_ = v_reader_8221_; -v_isShared_8248_ = v_isSharedCheck_8256_; -goto v_resetjp_8246_; +lean_object* v_unused_9165_; +v_unused_9165_ = lean_ctor_get(v_reader_9129_, 0); +lean_dec(v_unused_9165_); +v___x_9155_ = v_reader_9129_; +v_isShared_9156_ = v_isSharedCheck_9164_; +goto v_resetjp_9154_; } else { -lean_inc(v_headerBytesRead_8244_); -lean_inc(v_bodyBytesRead_8243_); -lean_inc(v_messageCount_8242_); -lean_inc(v_messageHead_8241_); -lean_inc(v_input_8240_); -lean_dec(v_reader_8221_); -v___x_8247_ = lean_box(0); -v_isShared_8248_ = v_isSharedCheck_8256_; -goto v_resetjp_8246_; +lean_inc(v_headerBytesRead_9152_); +lean_inc(v_bodyBytesRead_9151_); +lean_inc(v_messageCount_9150_); +lean_inc(v_messageHead_9149_); +lean_inc(v_input_9148_); +lean_dec(v_reader_9129_); +v___x_9155_ = lean_box(0); +v_isShared_9156_ = v_isSharedCheck_9164_; +goto v_resetjp_9154_; } -v_resetjp_8246_: +v_resetjp_9154_: { -lean_object* v___x_8249_; lean_object* v___x_8251_; -v___x_8249_ = lean_box(6); -if (v_isShared_8248_ == 0) +lean_object* v___x_9157_; lean_object* v___x_9159_; +v___x_9157_ = lean_box(6); +if (v_isShared_9156_ == 0) { -lean_ctor_set(v___x_8247_, 0, v___x_8249_); -v___x_8251_ = v___x_8247_; -goto v_reusejp_8250_; +lean_ctor_set(v___x_9155_, 0, v___x_9157_); +v___x_9159_ = v___x_9155_; +goto v_reusejp_9158_; } else { -lean_object* v_reuseFailAlloc_8255_; -v_reuseFailAlloc_8255_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8255_, 0, v___x_8249_); -lean_ctor_set(v_reuseFailAlloc_8255_, 1, v_input_8240_); -lean_ctor_set(v_reuseFailAlloc_8255_, 2, v_messageHead_8241_); -lean_ctor_set(v_reuseFailAlloc_8255_, 3, v_messageCount_8242_); -lean_ctor_set(v_reuseFailAlloc_8255_, 4, v_bodyBytesRead_8243_); -lean_ctor_set(v_reuseFailAlloc_8255_, 5, v_headerBytesRead_8244_); -lean_ctor_set_uint8(v_reuseFailAlloc_8255_, sizeof(void*)*6, v_noMoreInput_8245_); -v___x_8251_ = v_reuseFailAlloc_8255_; -goto v_reusejp_8250_; +lean_object* v_reuseFailAlloc_9163_; +v_reuseFailAlloc_9163_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_9163_, 0, v___x_9157_); +lean_ctor_set(v_reuseFailAlloc_9163_, 1, v_input_9148_); +lean_ctor_set(v_reuseFailAlloc_9163_, 2, v_messageHead_9149_); +lean_ctor_set(v_reuseFailAlloc_9163_, 3, v_messageCount_9150_); +lean_ctor_set(v_reuseFailAlloc_9163_, 4, v_bodyBytesRead_9151_); +lean_ctor_set(v_reuseFailAlloc_9163_, 5, v_headerBytesRead_9152_); +lean_ctor_set_uint8(v_reuseFailAlloc_9163_, sizeof(void*)*6, v_noMoreInput_9153_); +v___x_9159_ = v_reuseFailAlloc_9163_; +goto v_reusejp_9158_; } -v_reusejp_8250_: +v_reusejp_9158_: { -lean_object* v___x_8253_; -if (v_isShared_8239_ == 0) +lean_object* v___x_9161_; +if (v_isShared_9147_ == 0) { -lean_ctor_set(v___x_8238_, 0, v___x_8251_); -v___x_8253_ = v___x_8238_; -goto v_reusejp_8252_; +lean_ctor_set(v___x_9146_, 0, v___x_9159_); +v___x_9161_ = v___x_9146_; +goto v_reusejp_9160_; } else { -lean_object* v_reuseFailAlloc_8254_; -v_reuseFailAlloc_8254_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8254_, 0, v___x_8251_); -lean_ctor_set(v_reuseFailAlloc_8254_, 1, v_writer_8228_); -lean_ctor_set(v_reuseFailAlloc_8254_, 2, v_config_8230_); -lean_ctor_set(v_reuseFailAlloc_8254_, 3, v_events_8231_); -lean_ctor_set(v_reuseFailAlloc_8254_, 4, v_error_8232_); -lean_ctor_set(v_reuseFailAlloc_8254_, 5, v_instant_8233_); -lean_ctor_set_uint8(v_reuseFailAlloc_8254_, sizeof(void*)*6, v_keepAlive_8234_); -lean_ctor_set_uint8(v_reuseFailAlloc_8254_, sizeof(void*)*6 + 1, v_forcedFlush_8235_); -lean_ctor_set_uint8(v_reuseFailAlloc_8254_, sizeof(void*)*6 + 2, v_pullBodyStalled_8236_); -v___x_8253_ = v_reuseFailAlloc_8254_; -goto v_reusejp_8252_; +lean_object* v_reuseFailAlloc_9162_; +v_reuseFailAlloc_9162_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9162_, 0, v___x_9159_); +lean_ctor_set(v_reuseFailAlloc_9162_, 1, v_writer_9136_); +lean_ctor_set(v_reuseFailAlloc_9162_, 2, v_config_9138_); +lean_ctor_set(v_reuseFailAlloc_9162_, 3, v_events_9139_); +lean_ctor_set(v_reuseFailAlloc_9162_, 4, v_error_9140_); +lean_ctor_set(v_reuseFailAlloc_9162_, 5, v_instant_9141_); +lean_ctor_set_uint8(v_reuseFailAlloc_9162_, sizeof(void*)*6, v_keepAlive_9142_); +lean_ctor_set_uint8(v_reuseFailAlloc_9162_, sizeof(void*)*6 + 1, v_forcedFlush_9143_); +lean_ctor_set_uint8(v_reuseFailAlloc_9162_, sizeof(void*)*6 + 2, v_pullBodyStalled_9144_); +v___x_9161_ = v_reuseFailAlloc_9162_; +goto v_reusejp_9160_; } -v_reusejp_8252_: +v_reusejp_9160_: { -return v___x_8253_; +return v___x_9161_; } } } @@ -29782,251 +32798,251 @@ return v___x_8253_; } else { -lean_dec_ref(v_reader_8221_); -return v_machine_8220_; +lean_dec_ref(v_reader_9129_); +return v_machine_9128_; } } case 5: { -lean_object* v___x_8261_; -lean_dec_ref(v_reader_8221_); -v___x_8261_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(v_dir_8219_, v_machine_8220_); -return v___x_8261_; +lean_object* v___x_9169_; +lean_dec_ref(v_reader_9129_); +v___x_9169_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReaderCompleteState(v_dir_9127_, v_machine_9128_); +return v___x_9169_; } case 7: { -lean_object* v_error_8262_; lean_object* v___x_8263_; -lean_inc_ref(v_state_8222_); -lean_dec_ref(v_reader_8221_); -v_error_8262_ = lean_ctor_get(v_state_8222_, 0); -lean_inc(v_error_8262_); -lean_dec_ref(v_state_8222_); -v___x_8263_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(v_dir_8219_, v_machine_8220_, v_error_8262_); -return v___x_8263_; +lean_object* v_error_9170_; lean_object* v___x_9171_; +lean_inc_ref(v_state_9130_); +lean_dec_ref(v_reader_9129_); +v_error_9170_ = lean_ctor_get(v_state_9130_, 0); +lean_inc(v_error_9170_); +lean_dec_ref(v_state_9130_); +v___x_9171_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_handleReaderFailed(v_dir_9127_, v_machine_9128_, v_error_9170_); +return v___x_9171_; } default: { -lean_dec_ref(v_reader_8221_); -return v_machine_8220_; +lean_dec_ref(v_reader_9129_); +return v_machine_9128_; } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(uint8_t v_dir_8276_, lean_object* v_machine_8277_, lean_object* v_headerCount_8278_, lean_object* v_startRemaining_8279_, lean_object* v_name_8280_, lean_object* v_value_8281_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(uint8_t v_dir_9184_, lean_object* v_machine_9185_, lean_object* v_headerCount_9186_, lean_object* v_startRemaining_9187_, lean_object* v_name_9188_, lean_object* v_value_9189_){ _start: { -lean_object* v_config_8282_; lean_object* v_reader_8283_; lean_object* v_writer_8284_; lean_object* v_events_8285_; lean_object* v_error_8286_; lean_object* v_instant_8287_; uint8_t v_keepAlive_8288_; uint8_t v_forcedFlush_8289_; uint8_t v_pullBodyStalled_8290_; lean_object* v___x_8292_; uint8_t v_isShared_8293_; uint8_t v_isSharedCheck_8418_; -v_config_8282_ = lean_ctor_get(v_machine_8277_, 2); -v_reader_8283_ = lean_ctor_get(v_machine_8277_, 0); -v_writer_8284_ = lean_ctor_get(v_machine_8277_, 1); -v_events_8285_ = lean_ctor_get(v_machine_8277_, 3); -v_error_8286_ = lean_ctor_get(v_machine_8277_, 4); -v_instant_8287_ = lean_ctor_get(v_machine_8277_, 5); -v_keepAlive_8288_ = lean_ctor_get_uint8(v_machine_8277_, sizeof(void*)*6); -v_forcedFlush_8289_ = lean_ctor_get_uint8(v_machine_8277_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8290_ = lean_ctor_get_uint8(v_machine_8277_, sizeof(void*)*6 + 2); -v_isSharedCheck_8418_ = !lean_is_exclusive(v_machine_8277_); -if (v_isSharedCheck_8418_ == 0) +lean_object* v_config_9190_; lean_object* v_reader_9191_; lean_object* v_writer_9192_; lean_object* v_events_9193_; lean_object* v_error_9194_; lean_object* v_instant_9195_; uint8_t v_keepAlive_9196_; uint8_t v_forcedFlush_9197_; uint8_t v_pullBodyStalled_9198_; lean_object* v___x_9200_; uint8_t v_isShared_9201_; uint8_t v_isSharedCheck_9326_; +v_config_9190_ = lean_ctor_get(v_machine_9185_, 2); +v_reader_9191_ = lean_ctor_get(v_machine_9185_, 0); +v_writer_9192_ = lean_ctor_get(v_machine_9185_, 1); +v_events_9193_ = lean_ctor_get(v_machine_9185_, 3); +v_error_9194_ = lean_ctor_get(v_machine_9185_, 4); +v_instant_9195_ = lean_ctor_get(v_machine_9185_, 5); +v_keepAlive_9196_ = lean_ctor_get_uint8(v_machine_9185_, sizeof(void*)*6); +v_forcedFlush_9197_ = lean_ctor_get_uint8(v_machine_9185_, sizeof(void*)*6 + 1); +v_pullBodyStalled_9198_ = lean_ctor_get_uint8(v_machine_9185_, sizeof(void*)*6 + 2); +v_isSharedCheck_9326_ = !lean_is_exclusive(v_machine_9185_); +if (v_isSharedCheck_9326_ == 0) { -v___x_8292_ = v_machine_8277_; -v_isShared_8293_ = v_isSharedCheck_8418_; -goto v_resetjp_8291_; +v___x_9200_ = v_machine_9185_; +v_isShared_9201_ = v_isSharedCheck_9326_; +goto v_resetjp_9199_; } else { -lean_inc(v_instant_8287_); -lean_inc(v_error_8286_); -lean_inc(v_events_8285_); -lean_inc(v_config_8282_); -lean_inc(v_writer_8284_); -lean_inc(v_reader_8283_); -lean_dec(v_machine_8277_); -v___x_8292_ = lean_box(0); -v_isShared_8293_ = v_isSharedCheck_8418_; -goto v_resetjp_8291_; +lean_inc(v_instant_9195_); +lean_inc(v_error_9194_); +lean_inc(v_events_9193_); +lean_inc(v_config_9190_); +lean_inc(v_writer_9192_); +lean_inc(v_reader_9191_); +lean_dec(v_machine_9185_); +v___x_9200_ = lean_box(0); +v_isShared_9201_ = v_isSharedCheck_9326_; +goto v_resetjp_9199_; } -v_resetjp_8291_: +v_resetjp_9199_: { -lean_object* v_maxHeaders_8294_; lean_object* v_maxHeaderBytes_8295_; uint8_t v___x_8296_; -v_maxHeaders_8294_ = lean_ctor_get(v_config_8282_, 1); -v_maxHeaderBytes_8295_ = lean_ctor_get(v_config_8282_, 2); -v___x_8296_ = lean_nat_dec_le(v_maxHeaders_8294_, v_headerCount_8278_); -if (v___x_8296_ == 0) +lean_object* v_maxHeaders_9202_; lean_object* v_maxHeaderBytes_9203_; uint8_t v___x_9204_; +v_maxHeaders_9202_ = lean_ctor_get(v_config_9190_, 1); +v_maxHeaderBytes_9203_ = lean_ctor_get(v_config_9190_, 2); +v___x_9204_ = lean_nat_dec_le(v_maxHeaders_9202_, v_headerCount_9186_); +if (v___x_9204_ == 0) { -lean_object* v_input_8297_; lean_object* v_messageHead_8298_; lean_object* v_messageCount_8299_; lean_object* v_bodyBytesRead_8300_; lean_object* v_headerBytesRead_8301_; uint8_t v_noMoreInput_8302_; lean_object* v___x_8304_; uint8_t v_isShared_8305_; uint8_t v_isSharedCheck_8395_; -v_input_8297_ = lean_ctor_get(v_reader_8283_, 1); -v_messageHead_8298_ = lean_ctor_get(v_reader_8283_, 2); -v_messageCount_8299_ = lean_ctor_get(v_reader_8283_, 3); -v_bodyBytesRead_8300_ = lean_ctor_get(v_reader_8283_, 4); -v_headerBytesRead_8301_ = lean_ctor_get(v_reader_8283_, 5); -v_noMoreInput_8302_ = lean_ctor_get_uint8(v_reader_8283_, sizeof(void*)*6); -v_isSharedCheck_8395_ = !lean_is_exclusive(v_reader_8283_); -if (v_isSharedCheck_8395_ == 0) +lean_object* v_input_9205_; lean_object* v_messageHead_9206_; lean_object* v_messageCount_9207_; lean_object* v_bodyBytesRead_9208_; lean_object* v_headerBytesRead_9209_; uint8_t v_noMoreInput_9210_; lean_object* v___x_9212_; uint8_t v_isShared_9213_; uint8_t v_isSharedCheck_9303_; +v_input_9205_ = lean_ctor_get(v_reader_9191_, 1); +v_messageHead_9206_ = lean_ctor_get(v_reader_9191_, 2); +v_messageCount_9207_ = lean_ctor_get(v_reader_9191_, 3); +v_bodyBytesRead_9208_ = lean_ctor_get(v_reader_9191_, 4); +v_headerBytesRead_9209_ = lean_ctor_get(v_reader_9191_, 5); +v_noMoreInput_9210_ = lean_ctor_get_uint8(v_reader_9191_, sizeof(void*)*6); +v_isSharedCheck_9303_ = !lean_is_exclusive(v_reader_9191_); +if (v_isSharedCheck_9303_ == 0) { -lean_object* v_unused_8396_; -v_unused_8396_ = lean_ctor_get(v_reader_8283_, 0); -lean_dec(v_unused_8396_); -v___x_8304_ = v_reader_8283_; -v_isShared_8305_ = v_isSharedCheck_8395_; -goto v_resetjp_8303_; +lean_object* v_unused_9304_; +v_unused_9304_ = lean_ctor_get(v_reader_9191_, 0); +lean_dec(v_unused_9304_); +v___x_9212_ = v_reader_9191_; +v_isShared_9213_ = v_isSharedCheck_9303_; +goto v_resetjp_9211_; } else { -lean_inc(v_headerBytesRead_8301_); -lean_inc(v_bodyBytesRead_8300_); -lean_inc(v_messageCount_8299_); -lean_inc(v_messageHead_8298_); -lean_inc(v_input_8297_); -lean_dec(v_reader_8283_); -v___x_8304_ = lean_box(0); -v_isShared_8305_ = v_isSharedCheck_8395_; -goto v_resetjp_8303_; +lean_inc(v_headerBytesRead_9209_); +lean_inc(v_bodyBytesRead_9208_); +lean_inc(v_messageCount_9207_); +lean_inc(v_messageHead_9206_); +lean_inc(v_input_9205_); +lean_dec(v_reader_9191_); +v___x_9212_ = lean_box(0); +v_isShared_9213_ = v_isSharedCheck_9303_; +goto v_resetjp_9211_; } -v_resetjp_8303_: +v_resetjp_9211_: { -lean_object* v___x_8317_; lean_object* v_headerBytes_8318_; lean_object* v_input_8320_; lean_object* v_messageHead_8321_; lean_object* v_messageCount_8322_; lean_object* v_bodyBytesRead_8323_; lean_object* v_headerBytesRead_8324_; uint8_t v_noMoreInput_8325_; lean_object* v___x_8333_; uint8_t v___x_8334_; -v___x_8317_ = l_ByteArray_Iterator_remainingBytes(v_input_8297_); -v_headerBytes_8318_ = lean_nat_sub(v_startRemaining_8279_, v___x_8317_); -lean_dec(v___x_8317_); -v___x_8333_ = lean_nat_add(v_headerBytesRead_8301_, v_headerBytes_8318_); -v___x_8334_ = lean_nat_dec_lt(v_maxHeaderBytes_8295_, v___x_8333_); -lean_dec(v___x_8333_); -if (v___x_8334_ == 0) +lean_object* v___x_9225_; lean_object* v_headerBytes_9226_; lean_object* v_input_9228_; lean_object* v_messageHead_9229_; lean_object* v_messageCount_9230_; lean_object* v_bodyBytesRead_9231_; lean_object* v_headerBytesRead_9232_; uint8_t v_noMoreInput_9233_; lean_object* v___x_9241_; uint8_t v___x_9242_; +v___x_9225_ = l_ByteArray_Iterator_remainingBytes(v_input_9205_); +v_headerBytes_9226_ = lean_nat_sub(v_startRemaining_9187_, v___x_9225_); +lean_dec(v___x_9225_); +v___x_9241_ = lean_nat_add(v_headerBytesRead_9209_, v_headerBytes_9226_); +v___x_9242_ = lean_nat_dec_lt(v_maxHeaderBytes_9203_, v___x_9241_); +lean_dec(v___x_9241_); +if (v___x_9242_ == 0) { -lean_object* v___x_8335_; -v___x_8335_ = l_Std_Http_Header_Name_ofString_x3f(v_name_8280_); -if (lean_obj_tag(v___x_8335_) == 0) +lean_object* v___x_9243_; +v___x_9243_ = l_Std_Http_Header_Name_ofString_x3f(v_name_9188_); +if (lean_obj_tag(v___x_9243_) == 0) { -lean_dec(v_headerBytes_8318_); -lean_dec(v_error_8286_); -lean_dec_ref(v_value_8281_); -goto v___jp_8306_; +lean_dec(v_headerBytes_9226_); +lean_dec(v_error_9194_); +lean_dec_ref(v_value_9189_); +goto v___jp_9214_; } else { -lean_object* v_val_8336_; lean_object* v___x_8337_; -v_val_8336_ = lean_ctor_get(v___x_8335_, 0); -lean_inc(v_val_8336_); -lean_dec_ref(v___x_8335_); -v___x_8337_ = l_Std_Http_Header_Value_ofString_x3f(v_value_8281_); -if (lean_obj_tag(v___x_8337_) == 0) +lean_object* v_val_9244_; lean_object* v___x_9245_; +v_val_9244_ = lean_ctor_get(v___x_9243_, 0); +lean_inc(v_val_9244_); +lean_dec_ref(v___x_9243_); +v___x_9245_ = l_Std_Http_Header_Value_ofString_x3f(v_value_9189_); +if (lean_obj_tag(v___x_9245_) == 0) { -lean_dec(v_val_8336_); -lean_dec(v_headerBytes_8318_); -lean_dec(v_error_8286_); -goto v___jp_8306_; +lean_dec(v_val_9244_); +lean_dec(v_headerBytes_9226_); +lean_dec(v_error_9194_); +goto v___jp_9214_; } else { -lean_object* v_val_8338_; lean_object* v___x_8339_; -lean_del_object(v___x_8304_); -lean_del_object(v___x_8292_); -v_val_8338_ = lean_ctor_get(v___x_8337_, 0); -lean_inc(v_val_8338_); -lean_dec_ref(v___x_8337_); -lean_inc(v_val_8336_); -v___x_8339_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_8339_, 0, v_val_8336_); -lean_ctor_set(v___x_8339_, 1, v_val_8338_); -if (v_dir_8276_ == 0) +lean_object* v_val_9246_; lean_object* v___x_9247_; +lean_del_object(v___x_9212_); +lean_del_object(v___x_9200_); +v_val_9246_ = lean_ctor_get(v___x_9245_, 0); +lean_inc(v_val_9246_); +lean_dec_ref(v___x_9245_); +lean_inc(v_val_9244_); +v___x_9247_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_9247_, 0, v_val_9244_); +lean_ctor_set(v___x_9247_, 1, v_val_9246_); +if (v_dir_9184_ == 0) { -uint8_t v_method_8340_; uint8_t v_version_8341_; lean_object* v_uri_8342_; lean_object* v___x_8343_; lean_object* v___x_8345_; uint8_t v_isShared_8346_; uint8_t v_isSharedCheck_8362_; -v_method_8340_ = lean_ctor_get_uint8(v_messageHead_8298_, sizeof(void*)*2); -v_version_8341_ = lean_ctor_get_uint8(v_messageHead_8298_, sizeof(void*)*2 + 1); -v_uri_8342_ = lean_ctor_get(v_messageHead_8298_, 0); -lean_inc(v_uri_8342_); -v___x_8343_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_8276_, v_messageHead_8298_); -v_isSharedCheck_8362_ = !lean_is_exclusive(v_messageHead_8298_); -if (v_isSharedCheck_8362_ == 0) +uint8_t v_method_9248_; uint8_t v_version_9249_; lean_object* v_uri_9250_; lean_object* v___x_9251_; lean_object* v___x_9253_; uint8_t v_isShared_9254_; uint8_t v_isSharedCheck_9270_; +v_method_9248_ = lean_ctor_get_uint8(v_messageHead_9206_, sizeof(void*)*2); +v_version_9249_ = lean_ctor_get_uint8(v_messageHead_9206_, sizeof(void*)*2 + 1); +v_uri_9250_ = lean_ctor_get(v_messageHead_9206_, 0); +lean_inc(v_uri_9250_); +v___x_9251_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_9184_, v_messageHead_9206_); +v_isSharedCheck_9270_ = !lean_is_exclusive(v_messageHead_9206_); +if (v_isSharedCheck_9270_ == 0) { -lean_object* v_unused_8363_; lean_object* v_unused_8364_; -v_unused_8363_ = lean_ctor_get(v_messageHead_8298_, 1); -lean_dec(v_unused_8363_); -v_unused_8364_ = lean_ctor_get(v_messageHead_8298_, 0); -lean_dec(v_unused_8364_); -v___x_8345_ = v_messageHead_8298_; -v_isShared_8346_ = v_isSharedCheck_8362_; -goto v_resetjp_8344_; +lean_object* v_unused_9271_; lean_object* v_unused_9272_; +v_unused_9271_ = lean_ctor_get(v_messageHead_9206_, 1); +lean_dec(v_unused_9271_); +v_unused_9272_ = lean_ctor_get(v_messageHead_9206_, 0); +lean_dec(v_unused_9272_); +v___x_9253_ = v_messageHead_9206_; +v_isShared_9254_ = v_isSharedCheck_9270_; +goto v_resetjp_9252_; } else { -lean_dec(v_messageHead_8298_); -v___x_8345_ = lean_box(0); -v_isShared_8346_ = v_isSharedCheck_8362_; -goto v_resetjp_8344_; +lean_dec(v_messageHead_9206_); +v___x_9253_ = lean_box(0); +v_isShared_9254_ = v_isSharedCheck_9270_; +goto v_resetjp_9252_; } -v_resetjp_8344_: +v_resetjp_9252_: { -lean_object* v_entries_8347_; lean_object* v_indexes_8348_; lean_object* v___x_8350_; uint8_t v_isShared_8351_; uint8_t v_isSharedCheck_8361_; -v_entries_8347_ = lean_ctor_get(v___x_8343_, 0); -v_indexes_8348_ = lean_ctor_get(v___x_8343_, 1); -v_isSharedCheck_8361_ = !lean_is_exclusive(v___x_8343_); -if (v_isSharedCheck_8361_ == 0) +lean_object* v_entries_9255_; lean_object* v_indexes_9256_; lean_object* v___x_9258_; uint8_t v_isShared_9259_; uint8_t v_isSharedCheck_9269_; +v_entries_9255_ = lean_ctor_get(v___x_9251_, 0); +v_indexes_9256_ = lean_ctor_get(v___x_9251_, 1); +v_isSharedCheck_9269_ = !lean_is_exclusive(v___x_9251_); +if (v_isSharedCheck_9269_ == 0) { -v___x_8350_ = v___x_8343_; -v_isShared_8351_ = v_isSharedCheck_8361_; -goto v_resetjp_8349_; +v___x_9258_ = v___x_9251_; +v_isShared_9259_ = v_isSharedCheck_9269_; +goto v_resetjp_9257_; } else { -lean_inc(v_indexes_8348_); -lean_inc(v_entries_8347_); -lean_dec(v___x_8343_); -v___x_8350_ = lean_box(0); -v_isShared_8351_ = v_isSharedCheck_8361_; -goto v_resetjp_8349_; +lean_inc(v_indexes_9256_); +lean_inc(v_entries_9255_); +lean_dec(v___x_9251_); +v___x_9258_ = lean_box(0); +v_isShared_9259_ = v_isSharedCheck_9269_; +goto v_resetjp_9257_; } -v_resetjp_8349_: +v_resetjp_9257_: { -lean_object* v_i_8352_; lean_object* v_entries_8353_; lean_object* v_indexes_8354_; lean_object* v___x_8356_; -v_i_8352_ = lean_array_get_size(v_entries_8347_); -v_entries_8353_ = lean_array_push(v_entries_8347_, v___x_8339_); -v_indexes_8354_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_8352_, v_indexes_8348_, v_val_8336_); -if (v_isShared_8351_ == 0) +lean_object* v_i_9260_; lean_object* v_entries_9261_; lean_object* v_indexes_9262_; lean_object* v___x_9264_; +v_i_9260_ = lean_array_get_size(v_entries_9255_); +v_entries_9261_ = lean_array_push(v_entries_9255_, v___x_9247_); +v_indexes_9262_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_9260_, v_indexes_9256_, v_val_9244_); +if (v_isShared_9259_ == 0) { -lean_ctor_set(v___x_8350_, 1, v_indexes_8354_); -lean_ctor_set(v___x_8350_, 0, v_entries_8353_); -v___x_8356_ = v___x_8350_; -goto v_reusejp_8355_; +lean_ctor_set(v___x_9258_, 1, v_indexes_9262_); +lean_ctor_set(v___x_9258_, 0, v_entries_9261_); +v___x_9264_ = v___x_9258_; +goto v_reusejp_9263_; } else { -lean_object* v_reuseFailAlloc_8360_; -v_reuseFailAlloc_8360_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_8360_, 0, v_entries_8353_); -lean_ctor_set(v_reuseFailAlloc_8360_, 1, v_indexes_8354_); -v___x_8356_ = v_reuseFailAlloc_8360_; -goto v_reusejp_8355_; +lean_object* v_reuseFailAlloc_9268_; +v_reuseFailAlloc_9268_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_9268_, 0, v_entries_9261_); +lean_ctor_set(v_reuseFailAlloc_9268_, 1, v_indexes_9262_); +v___x_9264_ = v_reuseFailAlloc_9268_; +goto v_reusejp_9263_; } -v_reusejp_8355_: +v_reusejp_9263_: { -lean_object* v___x_8358_; -if (v_isShared_8346_ == 0) +lean_object* v___x_9266_; +if (v_isShared_9254_ == 0) { -lean_ctor_set(v___x_8345_, 1, v___x_8356_); -v___x_8358_ = v___x_8345_; -goto v_reusejp_8357_; +lean_ctor_set(v___x_9253_, 1, v___x_9264_); +v___x_9266_ = v___x_9253_; +goto v_reusejp_9265_; } else { -lean_object* v_reuseFailAlloc_8359_; -v_reuseFailAlloc_8359_ = lean_alloc_ctor(0, 2, 2); -lean_ctor_set(v_reuseFailAlloc_8359_, 0, v_uri_8342_); -lean_ctor_set(v_reuseFailAlloc_8359_, 1, v___x_8356_); -lean_ctor_set_uint8(v_reuseFailAlloc_8359_, sizeof(void*)*2, v_method_8340_); -lean_ctor_set_uint8(v_reuseFailAlloc_8359_, sizeof(void*)*2 + 1, v_version_8341_); -v___x_8358_ = v_reuseFailAlloc_8359_; -goto v_reusejp_8357_; +lean_object* v_reuseFailAlloc_9267_; +v_reuseFailAlloc_9267_ = lean_alloc_ctor(0, 2, 2); +lean_ctor_set(v_reuseFailAlloc_9267_, 0, v_uri_9250_); +lean_ctor_set(v_reuseFailAlloc_9267_, 1, v___x_9264_); +lean_ctor_set_uint8(v_reuseFailAlloc_9267_, sizeof(void*)*2, v_method_9248_); +lean_ctor_set_uint8(v_reuseFailAlloc_9267_, sizeof(void*)*2 + 1, v_version_9249_); +v___x_9266_ = v_reuseFailAlloc_9267_; +goto v_reusejp_9265_; } -v_reusejp_8357_: +v_reusejp_9265_: { -v_input_8320_ = v_input_8297_; -v_messageHead_8321_ = v___x_8358_; -v_messageCount_8322_ = v_messageCount_8299_; -v_bodyBytesRead_8323_ = v_bodyBytesRead_8300_; -v_headerBytesRead_8324_ = v_headerBytesRead_8301_; -v_noMoreInput_8325_ = v_noMoreInput_8302_; -goto v___jp_8319_; +v_input_9228_ = v_input_9205_; +v_messageHead_9229_ = v___x_9266_; +v_messageCount_9230_ = v_messageCount_9207_; +v_bodyBytesRead_9231_ = v_bodyBytesRead_9208_; +v_headerBytesRead_9232_ = v_headerBytesRead_9209_; +v_noMoreInput_9233_ = v_noMoreInput_9210_; +goto v___jp_9227_; } } } @@ -30034,101 +33050,101 @@ goto v___jp_8319_; } else { -lean_object* v_status_8365_; uint8_t v_version_8366_; lean_object* v___x_8367_; lean_object* v___x_8369_; uint8_t v_isShared_8370_; uint8_t v_isSharedCheck_8386_; -v_status_8365_ = lean_ctor_get(v_messageHead_8298_, 0); -lean_inc(v_status_8365_); -v_version_8366_ = lean_ctor_get_uint8(v_messageHead_8298_, sizeof(void*)*2); -v___x_8367_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_8276_, v_messageHead_8298_); -v_isSharedCheck_8386_ = !lean_is_exclusive(v_messageHead_8298_); -if (v_isSharedCheck_8386_ == 0) +lean_object* v_status_9273_; uint8_t v_version_9274_; lean_object* v___x_9275_; lean_object* v___x_9277_; uint8_t v_isShared_9278_; uint8_t v_isSharedCheck_9294_; +v_status_9273_ = lean_ctor_get(v_messageHead_9206_, 0); +lean_inc(v_status_9273_); +v_version_9274_ = lean_ctor_get_uint8(v_messageHead_9206_, sizeof(void*)*2); +v___x_9275_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_9184_, v_messageHead_9206_); +v_isSharedCheck_9294_ = !lean_is_exclusive(v_messageHead_9206_); +if (v_isSharedCheck_9294_ == 0) { -lean_object* v_unused_8387_; lean_object* v_unused_8388_; -v_unused_8387_ = lean_ctor_get(v_messageHead_8298_, 1); -lean_dec(v_unused_8387_); -v_unused_8388_ = lean_ctor_get(v_messageHead_8298_, 0); -lean_dec(v_unused_8388_); -v___x_8369_ = v_messageHead_8298_; -v_isShared_8370_ = v_isSharedCheck_8386_; -goto v_resetjp_8368_; +lean_object* v_unused_9295_; lean_object* v_unused_9296_; +v_unused_9295_ = lean_ctor_get(v_messageHead_9206_, 1); +lean_dec(v_unused_9295_); +v_unused_9296_ = lean_ctor_get(v_messageHead_9206_, 0); +lean_dec(v_unused_9296_); +v___x_9277_ = v_messageHead_9206_; +v_isShared_9278_ = v_isSharedCheck_9294_; +goto v_resetjp_9276_; } else { -lean_dec(v_messageHead_8298_); -v___x_8369_ = lean_box(0); -v_isShared_8370_ = v_isSharedCheck_8386_; -goto v_resetjp_8368_; +lean_dec(v_messageHead_9206_); +v___x_9277_ = lean_box(0); +v_isShared_9278_ = v_isSharedCheck_9294_; +goto v_resetjp_9276_; } -v_resetjp_8368_: +v_resetjp_9276_: { -lean_object* v_entries_8371_; lean_object* v_indexes_8372_; lean_object* v___x_8374_; uint8_t v_isShared_8375_; uint8_t v_isSharedCheck_8385_; -v_entries_8371_ = lean_ctor_get(v___x_8367_, 0); -v_indexes_8372_ = lean_ctor_get(v___x_8367_, 1); -v_isSharedCheck_8385_ = !lean_is_exclusive(v___x_8367_); -if (v_isSharedCheck_8385_ == 0) +lean_object* v_entries_9279_; lean_object* v_indexes_9280_; lean_object* v___x_9282_; uint8_t v_isShared_9283_; uint8_t v_isSharedCheck_9293_; +v_entries_9279_ = lean_ctor_get(v___x_9275_, 0); +v_indexes_9280_ = lean_ctor_get(v___x_9275_, 1); +v_isSharedCheck_9293_ = !lean_is_exclusive(v___x_9275_); +if (v_isSharedCheck_9293_ == 0) { -v___x_8374_ = v___x_8367_; -v_isShared_8375_ = v_isSharedCheck_8385_; -goto v_resetjp_8373_; +v___x_9282_ = v___x_9275_; +v_isShared_9283_ = v_isSharedCheck_9293_; +goto v_resetjp_9281_; } else { -lean_inc(v_indexes_8372_); -lean_inc(v_entries_8371_); -lean_dec(v___x_8367_); -v___x_8374_ = lean_box(0); -v_isShared_8375_ = v_isSharedCheck_8385_; -goto v_resetjp_8373_; +lean_inc(v_indexes_9280_); +lean_inc(v_entries_9279_); +lean_dec(v___x_9275_); +v___x_9282_ = lean_box(0); +v_isShared_9283_ = v_isSharedCheck_9293_; +goto v_resetjp_9281_; } -v_resetjp_8373_: +v_resetjp_9281_: { -lean_object* v_i_8376_; lean_object* v_entries_8377_; lean_object* v_indexes_8378_; lean_object* v___x_8380_; -v_i_8376_ = lean_array_get_size(v_entries_8371_); -v_entries_8377_ = lean_array_push(v_entries_8371_, v___x_8339_); -v_indexes_8378_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_8376_, v_indexes_8372_, v_val_8336_); -if (v_isShared_8375_ == 0) +lean_object* v_i_9284_; lean_object* v_entries_9285_; lean_object* v_indexes_9286_; lean_object* v___x_9288_; +v_i_9284_ = lean_array_get_size(v_entries_9279_); +v_entries_9285_ = lean_array_push(v_entries_9279_, v___x_9247_); +v_indexes_9286_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_writeHead_spec__4(v_i_9284_, v_indexes_9280_, v_val_9244_); +if (v_isShared_9283_ == 0) { -lean_ctor_set(v___x_8374_, 1, v_indexes_8378_); -lean_ctor_set(v___x_8374_, 0, v_entries_8377_); -v___x_8380_ = v___x_8374_; -goto v_reusejp_8379_; +lean_ctor_set(v___x_9282_, 1, v_indexes_9286_); +lean_ctor_set(v___x_9282_, 0, v_entries_9285_); +v___x_9288_ = v___x_9282_; +goto v_reusejp_9287_; } else { -lean_object* v_reuseFailAlloc_8384_; -v_reuseFailAlloc_8384_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_8384_, 0, v_entries_8377_); -lean_ctor_set(v_reuseFailAlloc_8384_, 1, v_indexes_8378_); -v___x_8380_ = v_reuseFailAlloc_8384_; -goto v_reusejp_8379_; +lean_object* v_reuseFailAlloc_9292_; +v_reuseFailAlloc_9292_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_9292_, 0, v_entries_9285_); +lean_ctor_set(v_reuseFailAlloc_9292_, 1, v_indexes_9286_); +v___x_9288_ = v_reuseFailAlloc_9292_; +goto v_reusejp_9287_; } -v_reusejp_8379_: +v_reusejp_9287_: { -lean_object* v___x_8382_; -if (v_isShared_8370_ == 0) +lean_object* v___x_9290_; +if (v_isShared_9278_ == 0) { -lean_ctor_set(v___x_8369_, 1, v___x_8380_); -v___x_8382_ = v___x_8369_; -goto v_reusejp_8381_; +lean_ctor_set(v___x_9277_, 1, v___x_9288_); +v___x_9290_ = v___x_9277_; +goto v_reusejp_9289_; } else { -lean_object* v_reuseFailAlloc_8383_; -v_reuseFailAlloc_8383_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v_reuseFailAlloc_8383_, 0, v_status_8365_); -lean_ctor_set(v_reuseFailAlloc_8383_, 1, v___x_8380_); -lean_ctor_set_uint8(v_reuseFailAlloc_8383_, sizeof(void*)*2, v_version_8366_); -v___x_8382_ = v_reuseFailAlloc_8383_; -goto v_reusejp_8381_; +lean_object* v_reuseFailAlloc_9291_; +v_reuseFailAlloc_9291_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v_reuseFailAlloc_9291_, 0, v_status_9273_); +lean_ctor_set(v_reuseFailAlloc_9291_, 1, v___x_9288_); +lean_ctor_set_uint8(v_reuseFailAlloc_9291_, sizeof(void*)*2, v_version_9274_); +v___x_9290_ = v_reuseFailAlloc_9291_; +goto v_reusejp_9289_; } -v_reusejp_8381_: +v_reusejp_9289_: { -v_input_8320_ = v_input_8297_; -v_messageHead_8321_ = v___x_8382_; -v_messageCount_8322_ = v_messageCount_8299_; -v_bodyBytesRead_8323_ = v_bodyBytesRead_8300_; -v_headerBytesRead_8324_ = v_headerBytesRead_8301_; -v_noMoreInput_8325_ = v_noMoreInput_8302_; -goto v___jp_8319_; +v_input_9228_ = v_input_9205_; +v_messageHead_9229_ = v___x_9290_; +v_messageCount_9230_ = v_messageCount_9207_; +v_bodyBytesRead_9231_ = v_bodyBytesRead_9208_; +v_headerBytesRead_9232_ = v_headerBytesRead_9209_; +v_noMoreInput_9233_ = v_noMoreInput_9210_; +goto v___jp_9227_; } } } @@ -30139,221 +33155,221 @@ goto v___jp_8319_; } else { -lean_object* v___x_8389_; lean_object* v___x_8390_; lean_object* v___x_8391_; lean_object* v___x_8392_; lean_object* v___x_8393_; lean_object* v___x_8394_; -lean_dec(v_headerBytes_8318_); -lean_del_object(v___x_8304_); -lean_del_object(v___x_8292_); -lean_dec(v_error_8286_); -lean_dec_ref(v_value_8281_); -lean_dec_ref(v_name_8280_); -v___x_8389_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__0)); -v___x_8390_ = lean_array_push(v_events_8285_, v___x_8389_); -v___x_8391_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__1)); -v___x_8392_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v___x_8392_, 0, v___x_8391_); -lean_ctor_set(v___x_8392_, 1, v_input_8297_); -lean_ctor_set(v___x_8392_, 2, v_messageHead_8298_); -lean_ctor_set(v___x_8392_, 3, v_messageCount_8299_); -lean_ctor_set(v___x_8392_, 4, v_bodyBytesRead_8300_); -lean_ctor_set(v___x_8392_, 5, v_headerBytesRead_8301_); -lean_ctor_set_uint8(v___x_8392_, sizeof(void*)*6, v_noMoreInput_8302_); -v___x_8393_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__2)); -v___x_8394_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_8394_, 0, v___x_8392_); -lean_ctor_set(v___x_8394_, 1, v_writer_8284_); -lean_ctor_set(v___x_8394_, 2, v_config_8282_); -lean_ctor_set(v___x_8394_, 3, v___x_8390_); -lean_ctor_set(v___x_8394_, 4, v___x_8393_); -lean_ctor_set(v___x_8394_, 5, v_instant_8287_); -lean_ctor_set_uint8(v___x_8394_, sizeof(void*)*6, v_keepAlive_8288_); -lean_ctor_set_uint8(v___x_8394_, sizeof(void*)*6 + 1, v_forcedFlush_8289_); -lean_ctor_set_uint8(v___x_8394_, sizeof(void*)*6 + 2, v_pullBodyStalled_8290_); -return v___x_8394_; +lean_object* v___x_9297_; lean_object* v___x_9298_; lean_object* v___x_9299_; lean_object* v___x_9300_; lean_object* v___x_9301_; lean_object* v___x_9302_; +lean_dec(v_headerBytes_9226_); +lean_del_object(v___x_9212_); +lean_del_object(v___x_9200_); +lean_dec(v_error_9194_); +lean_dec_ref(v_value_9189_); +lean_dec_ref(v_name_9188_); +v___x_9297_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__0)); +v___x_9298_ = lean_array_push(v_events_9193_, v___x_9297_); +v___x_9299_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__1)); +v___x_9300_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_9300_, 0, v___x_9299_); +lean_ctor_set(v___x_9300_, 1, v_input_9205_); +lean_ctor_set(v___x_9300_, 2, v_messageHead_9206_); +lean_ctor_set(v___x_9300_, 3, v_messageCount_9207_); +lean_ctor_set(v___x_9300_, 4, v_bodyBytesRead_9208_); +lean_ctor_set(v___x_9300_, 5, v_headerBytesRead_9209_); +lean_ctor_set_uint8(v___x_9300_, sizeof(void*)*6, v_noMoreInput_9210_); +v___x_9301_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__2)); +v___x_9302_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_9302_, 0, v___x_9300_); +lean_ctor_set(v___x_9302_, 1, v_writer_9192_); +lean_ctor_set(v___x_9302_, 2, v_config_9190_); +lean_ctor_set(v___x_9302_, 3, v___x_9298_); +lean_ctor_set(v___x_9302_, 4, v___x_9301_); +lean_ctor_set(v___x_9302_, 5, v_instant_9195_); +lean_ctor_set_uint8(v___x_9302_, sizeof(void*)*6, v_keepAlive_9196_); +lean_ctor_set_uint8(v___x_9302_, sizeof(void*)*6 + 1, v_forcedFlush_9197_); +lean_ctor_set_uint8(v___x_9302_, sizeof(void*)*6 + 2, v_pullBodyStalled_9198_); +return v___x_9302_; } -v___jp_8306_: +v___jp_9214_: { -lean_object* v___x_8307_; lean_object* v___x_8308_; lean_object* v___x_8309_; lean_object* v___x_8311_; -v___x_8307_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); -v___x_8308_ = lean_array_push(v_events_8285_, v___x_8307_); -v___x_8309_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); -if (v_isShared_8305_ == 0) +lean_object* v___x_9215_; lean_object* v___x_9216_; lean_object* v___x_9217_; lean_object* v___x_9219_; +v___x_9215_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__0)); +v___x_9216_ = lean_array_push(v_events_9193_, v___x_9215_); +v___x_9217_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__1)); +if (v_isShared_9213_ == 0) { -lean_ctor_set(v___x_8304_, 0, v___x_8309_); -v___x_8311_ = v___x_8304_; -goto v_reusejp_8310_; +lean_ctor_set(v___x_9212_, 0, v___x_9217_); +v___x_9219_ = v___x_9212_; +goto v_reusejp_9218_; } else { -lean_object* v_reuseFailAlloc_8316_; -v_reuseFailAlloc_8316_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8316_, 0, v___x_8309_); -lean_ctor_set(v_reuseFailAlloc_8316_, 1, v_input_8297_); -lean_ctor_set(v_reuseFailAlloc_8316_, 2, v_messageHead_8298_); -lean_ctor_set(v_reuseFailAlloc_8316_, 3, v_messageCount_8299_); -lean_ctor_set(v_reuseFailAlloc_8316_, 4, v_bodyBytesRead_8300_); -lean_ctor_set(v_reuseFailAlloc_8316_, 5, v_headerBytesRead_8301_); -lean_ctor_set_uint8(v_reuseFailAlloc_8316_, sizeof(void*)*6, v_noMoreInput_8302_); -v___x_8311_ = v_reuseFailAlloc_8316_; -goto v_reusejp_8310_; +lean_object* v_reuseFailAlloc_9224_; +v_reuseFailAlloc_9224_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_9224_, 0, v___x_9217_); +lean_ctor_set(v_reuseFailAlloc_9224_, 1, v_input_9205_); +lean_ctor_set(v_reuseFailAlloc_9224_, 2, v_messageHead_9206_); +lean_ctor_set(v_reuseFailAlloc_9224_, 3, v_messageCount_9207_); +lean_ctor_set(v_reuseFailAlloc_9224_, 4, v_bodyBytesRead_9208_); +lean_ctor_set(v_reuseFailAlloc_9224_, 5, v_headerBytesRead_9209_); +lean_ctor_set_uint8(v_reuseFailAlloc_9224_, sizeof(void*)*6, v_noMoreInput_9210_); +v___x_9219_ = v_reuseFailAlloc_9224_; +goto v_reusejp_9218_; } -v_reusejp_8310_: +v_reusejp_9218_: { -lean_object* v___x_8312_; lean_object* v___x_8314_; -v___x_8312_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); -if (v_isShared_8293_ == 0) +lean_object* v___x_9220_; lean_object* v___x_9222_; +v___x_9220_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_failBadMessage___redArg___closed__2)); +if (v_isShared_9201_ == 0) { -lean_ctor_set(v___x_8292_, 4, v___x_8312_); -lean_ctor_set(v___x_8292_, 3, v___x_8308_); -lean_ctor_set(v___x_8292_, 0, v___x_8311_); -v___x_8314_ = v___x_8292_; -goto v_reusejp_8313_; +lean_ctor_set(v___x_9200_, 4, v___x_9220_); +lean_ctor_set(v___x_9200_, 3, v___x_9216_); +lean_ctor_set(v___x_9200_, 0, v___x_9219_); +v___x_9222_ = v___x_9200_; +goto v_reusejp_9221_; } else { -lean_object* v_reuseFailAlloc_8315_; -v_reuseFailAlloc_8315_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8315_, 0, v___x_8311_); -lean_ctor_set(v_reuseFailAlloc_8315_, 1, v_writer_8284_); -lean_ctor_set(v_reuseFailAlloc_8315_, 2, v_config_8282_); -lean_ctor_set(v_reuseFailAlloc_8315_, 3, v___x_8308_); -lean_ctor_set(v_reuseFailAlloc_8315_, 4, v___x_8312_); -lean_ctor_set(v_reuseFailAlloc_8315_, 5, v_instant_8287_); -lean_ctor_set_uint8(v_reuseFailAlloc_8315_, sizeof(void*)*6, v_keepAlive_8288_); -lean_ctor_set_uint8(v_reuseFailAlloc_8315_, sizeof(void*)*6 + 1, v_forcedFlush_8289_); -lean_ctor_set_uint8(v_reuseFailAlloc_8315_, sizeof(void*)*6 + 2, v_pullBodyStalled_8290_); -v___x_8314_ = v_reuseFailAlloc_8315_; -goto v_reusejp_8313_; +lean_object* v_reuseFailAlloc_9223_; +v_reuseFailAlloc_9223_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9223_, 0, v___x_9219_); +lean_ctor_set(v_reuseFailAlloc_9223_, 1, v_writer_9192_); +lean_ctor_set(v_reuseFailAlloc_9223_, 2, v_config_9190_); +lean_ctor_set(v_reuseFailAlloc_9223_, 3, v___x_9216_); +lean_ctor_set(v_reuseFailAlloc_9223_, 4, v___x_9220_); +lean_ctor_set(v_reuseFailAlloc_9223_, 5, v_instant_9195_); +lean_ctor_set_uint8(v_reuseFailAlloc_9223_, sizeof(void*)*6, v_keepAlive_9196_); +lean_ctor_set_uint8(v_reuseFailAlloc_9223_, sizeof(void*)*6 + 1, v_forcedFlush_9197_); +lean_ctor_set_uint8(v_reuseFailAlloc_9223_, sizeof(void*)*6 + 2, v_pullBodyStalled_9198_); +v___x_9222_ = v_reuseFailAlloc_9223_; +goto v_reusejp_9221_; } -v_reusejp_8313_: +v_reusejp_9221_: { -return v___x_8314_; +return v___x_9222_; } } } -v___jp_8319_: +v___jp_9227_: { -lean_object* v___x_8326_; lean_object* v___x_8327_; lean_object* v___x_8328_; lean_object* v___x_8329_; lean_object* v___x_8330_; lean_object* v___x_8331_; lean_object* v___x_8332_; -v___x_8326_ = lean_nat_add(v_headerBytesRead_8324_, v_headerBytes_8318_); -lean_dec(v_headerBytes_8318_); -lean_dec(v_headerBytesRead_8324_); -v___x_8327_ = lean_unsigned_to_nat(1u); -v___x_8328_ = lean_nat_add(v_headerCount_8278_, v___x_8327_); -v___x_8329_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_8329_, 0, v___x_8328_); -v___x_8330_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v___x_8330_, 0, v___x_8329_); -lean_ctor_set(v___x_8330_, 1, v_input_8320_); -lean_ctor_set(v___x_8330_, 2, v_messageHead_8321_); -lean_ctor_set(v___x_8330_, 3, v_messageCount_8322_); -lean_ctor_set(v___x_8330_, 4, v_bodyBytesRead_8323_); -lean_ctor_set(v___x_8330_, 5, v___x_8326_); -lean_ctor_set_uint8(v___x_8330_, sizeof(void*)*6, v_noMoreInput_8325_); -v___x_8331_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_8331_, 0, v___x_8330_); -lean_ctor_set(v___x_8331_, 1, v_writer_8284_); -lean_ctor_set(v___x_8331_, 2, v_config_8282_); -lean_ctor_set(v___x_8331_, 3, v_events_8285_); -lean_ctor_set(v___x_8331_, 4, v_error_8286_); -lean_ctor_set(v___x_8331_, 5, v_instant_8287_); -lean_ctor_set_uint8(v___x_8331_, sizeof(void*)*6, v_keepAlive_8288_); -lean_ctor_set_uint8(v___x_8331_, sizeof(void*)*6 + 1, v_forcedFlush_8289_); -lean_ctor_set_uint8(v___x_8331_, sizeof(void*)*6 + 2, v_pullBodyStalled_8290_); -v___x_8332_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_8276_, v___x_8331_); -return v___x_8332_; +lean_object* v___x_9234_; lean_object* v___x_9235_; lean_object* v___x_9236_; lean_object* v___x_9237_; lean_object* v___x_9238_; lean_object* v___x_9239_; lean_object* v___x_9240_; +v___x_9234_ = lean_nat_add(v_headerBytesRead_9232_, v_headerBytes_9226_); +lean_dec(v_headerBytes_9226_); +lean_dec(v_headerBytesRead_9232_); +v___x_9235_ = lean_unsigned_to_nat(1u); +v___x_9236_ = lean_nat_add(v_headerCount_9186_, v___x_9235_); +v___x_9237_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_9237_, 0, v___x_9236_); +v___x_9238_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_9238_, 0, v___x_9237_); +lean_ctor_set(v___x_9238_, 1, v_input_9228_); +lean_ctor_set(v___x_9238_, 2, v_messageHead_9229_); +lean_ctor_set(v___x_9238_, 3, v_messageCount_9230_); +lean_ctor_set(v___x_9238_, 4, v_bodyBytesRead_9231_); +lean_ctor_set(v___x_9238_, 5, v___x_9234_); +lean_ctor_set_uint8(v___x_9238_, sizeof(void*)*6, v_noMoreInput_9233_); +v___x_9239_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_9239_, 0, v___x_9238_); +lean_ctor_set(v___x_9239_, 1, v_writer_9192_); +lean_ctor_set(v___x_9239_, 2, v_config_9190_); +lean_ctor_set(v___x_9239_, 3, v_events_9193_); +lean_ctor_set(v___x_9239_, 4, v_error_9194_); +lean_ctor_set(v___x_9239_, 5, v_instant_9195_); +lean_ctor_set_uint8(v___x_9239_, sizeof(void*)*6, v_keepAlive_9196_); +lean_ctor_set_uint8(v___x_9239_, sizeof(void*)*6 + 1, v_forcedFlush_9197_); +lean_ctor_set_uint8(v___x_9239_, sizeof(void*)*6 + 2, v_pullBodyStalled_9198_); +v___x_9240_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_9184_, v___x_9239_); +return v___x_9240_; } } } else { -lean_object* v_input_8397_; lean_object* v_messageHead_8398_; lean_object* v_messageCount_8399_; lean_object* v_bodyBytesRead_8400_; lean_object* v_headerBytesRead_8401_; uint8_t v_noMoreInput_8402_; lean_object* v___x_8404_; uint8_t v_isShared_8405_; uint8_t v_isSharedCheck_8416_; -lean_dec(v_error_8286_); -lean_dec_ref(v_value_8281_); -lean_dec_ref(v_name_8280_); -v_input_8397_ = lean_ctor_get(v_reader_8283_, 1); -v_messageHead_8398_ = lean_ctor_get(v_reader_8283_, 2); -v_messageCount_8399_ = lean_ctor_get(v_reader_8283_, 3); -v_bodyBytesRead_8400_ = lean_ctor_get(v_reader_8283_, 4); -v_headerBytesRead_8401_ = lean_ctor_get(v_reader_8283_, 5); -v_noMoreInput_8402_ = lean_ctor_get_uint8(v_reader_8283_, sizeof(void*)*6); -v_isSharedCheck_8416_ = !lean_is_exclusive(v_reader_8283_); -if (v_isSharedCheck_8416_ == 0) +lean_object* v_input_9305_; lean_object* v_messageHead_9306_; lean_object* v_messageCount_9307_; lean_object* v_bodyBytesRead_9308_; lean_object* v_headerBytesRead_9309_; uint8_t v_noMoreInput_9310_; lean_object* v___x_9312_; uint8_t v_isShared_9313_; uint8_t v_isSharedCheck_9324_; +lean_dec(v_error_9194_); +lean_dec_ref(v_value_9189_); +lean_dec_ref(v_name_9188_); +v_input_9305_ = lean_ctor_get(v_reader_9191_, 1); +v_messageHead_9306_ = lean_ctor_get(v_reader_9191_, 2); +v_messageCount_9307_ = lean_ctor_get(v_reader_9191_, 3); +v_bodyBytesRead_9308_ = lean_ctor_get(v_reader_9191_, 4); +v_headerBytesRead_9309_ = lean_ctor_get(v_reader_9191_, 5); +v_noMoreInput_9310_ = lean_ctor_get_uint8(v_reader_9191_, sizeof(void*)*6); +v_isSharedCheck_9324_ = !lean_is_exclusive(v_reader_9191_); +if (v_isSharedCheck_9324_ == 0) { -lean_object* v_unused_8417_; -v_unused_8417_ = lean_ctor_get(v_reader_8283_, 0); -lean_dec(v_unused_8417_); -v___x_8404_ = v_reader_8283_; -v_isShared_8405_ = v_isSharedCheck_8416_; -goto v_resetjp_8403_; +lean_object* v_unused_9325_; +v_unused_9325_ = lean_ctor_get(v_reader_9191_, 0); +lean_dec(v_unused_9325_); +v___x_9312_ = v_reader_9191_; +v_isShared_9313_ = v_isSharedCheck_9324_; +goto v_resetjp_9311_; } else { -lean_inc(v_headerBytesRead_8401_); -lean_inc(v_bodyBytesRead_8400_); -lean_inc(v_messageCount_8399_); -lean_inc(v_messageHead_8398_); -lean_inc(v_input_8397_); -lean_dec(v_reader_8283_); -v___x_8404_ = lean_box(0); -v_isShared_8405_ = v_isSharedCheck_8416_; -goto v_resetjp_8403_; +lean_inc(v_headerBytesRead_9309_); +lean_inc(v_bodyBytesRead_9308_); +lean_inc(v_messageCount_9307_); +lean_inc(v_messageHead_9306_); +lean_inc(v_input_9305_); +lean_dec(v_reader_9191_); +v___x_9312_ = lean_box(0); +v_isShared_9313_ = v_isSharedCheck_9324_; +goto v_resetjp_9311_; } -v_resetjp_8403_: +v_resetjp_9311_: { -lean_object* v___x_8406_; lean_object* v___x_8407_; lean_object* v___x_8408_; lean_object* v___x_8410_; -v___x_8406_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__3)); -v___x_8407_ = lean_array_push(v_events_8285_, v___x_8406_); -v___x_8408_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__4)); -if (v_isShared_8405_ == 0) +lean_object* v___x_9314_; lean_object* v___x_9315_; lean_object* v___x_9316_; lean_object* v___x_9318_; +v___x_9314_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__3)); +v___x_9315_ = lean_array_push(v_events_9193_, v___x_9314_); +v___x_9316_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__4)); +if (v_isShared_9313_ == 0) { -lean_ctor_set(v___x_8404_, 0, v___x_8408_); -v___x_8410_ = v___x_8404_; -goto v_reusejp_8409_; +lean_ctor_set(v___x_9312_, 0, v___x_9316_); +v___x_9318_ = v___x_9312_; +goto v_reusejp_9317_; } else { -lean_object* v_reuseFailAlloc_8415_; -v_reuseFailAlloc_8415_ = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(v_reuseFailAlloc_8415_, 0, v___x_8408_); -lean_ctor_set(v_reuseFailAlloc_8415_, 1, v_input_8397_); -lean_ctor_set(v_reuseFailAlloc_8415_, 2, v_messageHead_8398_); -lean_ctor_set(v_reuseFailAlloc_8415_, 3, v_messageCount_8399_); -lean_ctor_set(v_reuseFailAlloc_8415_, 4, v_bodyBytesRead_8400_); -lean_ctor_set(v_reuseFailAlloc_8415_, 5, v_headerBytesRead_8401_); -lean_ctor_set_uint8(v_reuseFailAlloc_8415_, sizeof(void*)*6, v_noMoreInput_8402_); -v___x_8410_ = v_reuseFailAlloc_8415_; -goto v_reusejp_8409_; +lean_object* v_reuseFailAlloc_9323_; +v_reuseFailAlloc_9323_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_9323_, 0, v___x_9316_); +lean_ctor_set(v_reuseFailAlloc_9323_, 1, v_input_9305_); +lean_ctor_set(v_reuseFailAlloc_9323_, 2, v_messageHead_9306_); +lean_ctor_set(v_reuseFailAlloc_9323_, 3, v_messageCount_9307_); +lean_ctor_set(v_reuseFailAlloc_9323_, 4, v_bodyBytesRead_9308_); +lean_ctor_set(v_reuseFailAlloc_9323_, 5, v_headerBytesRead_9309_); +lean_ctor_set_uint8(v_reuseFailAlloc_9323_, sizeof(void*)*6, v_noMoreInput_9310_); +v___x_9318_ = v_reuseFailAlloc_9323_; +goto v_reusejp_9317_; } -v_reusejp_8409_: +v_reusejp_9317_: { -lean_object* v___x_8411_; lean_object* v___x_8413_; -v___x_8411_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__5)); -if (v_isShared_8293_ == 0) +lean_object* v___x_9319_; lean_object* v___x_9321_; +v___x_9319_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___closed__5)); +if (v_isShared_9201_ == 0) { -lean_ctor_set(v___x_8292_, 4, v___x_8411_); -lean_ctor_set(v___x_8292_, 3, v___x_8407_); -lean_ctor_set(v___x_8292_, 0, v___x_8410_); -v___x_8413_ = v___x_8292_; -goto v_reusejp_8412_; +lean_ctor_set(v___x_9200_, 4, v___x_9319_); +lean_ctor_set(v___x_9200_, 3, v___x_9315_); +lean_ctor_set(v___x_9200_, 0, v___x_9318_); +v___x_9321_ = v___x_9200_; +goto v_reusejp_9320_; } else { -lean_object* v_reuseFailAlloc_8414_; -v_reuseFailAlloc_8414_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8414_, 0, v___x_8410_); -lean_ctor_set(v_reuseFailAlloc_8414_, 1, v_writer_8284_); -lean_ctor_set(v_reuseFailAlloc_8414_, 2, v_config_8282_); -lean_ctor_set(v_reuseFailAlloc_8414_, 3, v___x_8407_); -lean_ctor_set(v_reuseFailAlloc_8414_, 4, v___x_8411_); -lean_ctor_set(v_reuseFailAlloc_8414_, 5, v_instant_8287_); -lean_ctor_set_uint8(v_reuseFailAlloc_8414_, sizeof(void*)*6, v_keepAlive_8288_); -lean_ctor_set_uint8(v_reuseFailAlloc_8414_, sizeof(void*)*6 + 1, v_forcedFlush_8289_); -lean_ctor_set_uint8(v_reuseFailAlloc_8414_, sizeof(void*)*6 + 2, v_pullBodyStalled_8290_); -v___x_8413_ = v_reuseFailAlloc_8414_; -goto v_reusejp_8412_; +lean_object* v_reuseFailAlloc_9322_; +v_reuseFailAlloc_9322_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9322_, 0, v___x_9318_); +lean_ctor_set(v_reuseFailAlloc_9322_, 1, v_writer_9192_); +lean_ctor_set(v_reuseFailAlloc_9322_, 2, v_config_9190_); +lean_ctor_set(v_reuseFailAlloc_9322_, 3, v___x_9315_); +lean_ctor_set(v_reuseFailAlloc_9322_, 4, v___x_9319_); +lean_ctor_set(v_reuseFailAlloc_9322_, 5, v_instant_9195_); +lean_ctor_set_uint8(v_reuseFailAlloc_9322_, sizeof(void*)*6, v_keepAlive_9196_); +lean_ctor_set_uint8(v_reuseFailAlloc_9322_, sizeof(void*)*6 + 1, v_forcedFlush_9197_); +lean_ctor_set_uint8(v_reuseFailAlloc_9322_, sizeof(void*)*6 + 2, v_pullBodyStalled_9198_); +v___x_9321_ = v_reuseFailAlloc_9322_; +goto v_reusejp_9320_; } -v_reusejp_8412_: +v_reusejp_9320_: { -return v___x_8413_; +return v___x_9321_; } } } @@ -30361,600 +33377,600 @@ return v___x_8413_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(uint8_t v_dir_8419_, lean_object* v_machine_8420_, lean_object* v_headerCount_8421_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(uint8_t v_dir_9327_, lean_object* v_machine_9328_, lean_object* v_headerCount_9329_){ _start: { -lean_object* v_reader_8422_; lean_object* v_config_8423_; lean_object* v___f_8424_; lean_object* v___x_8425_; lean_object* v___x_8426_; lean_object* v___x_8427_; lean_object* v_snd_8428_; -v_reader_8422_ = lean_ctor_get(v_machine_8420_, 0); -lean_inc_ref(v_reader_8422_); -v_config_8423_ = lean_ctor_get(v_machine_8420_, 2); -v___f_8424_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___closed__0)); -lean_inc_ref(v_config_8423_); -v___x_8425_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseSingleHeader___boxed), 2, 1); -lean_closure_set(v___x_8425_, 0, v_config_8423_); -v___x_8426_ = lean_box(0); -v___x_8427_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_8420_, v___x_8425_, v___x_8426_, v___x_8426_, v___f_8424_); -v_snd_8428_ = lean_ctor_get(v___x_8427_, 1); -lean_inc(v_snd_8428_); -if (lean_obj_tag(v_snd_8428_) == 0) +lean_object* v_reader_9330_; lean_object* v_config_9331_; lean_object* v___f_9332_; lean_object* v___x_9333_; lean_object* v___x_9334_; lean_object* v___x_9335_; lean_object* v_snd_9336_; +v_reader_9330_ = lean_ctor_get(v_machine_9328_, 0); +lean_inc_ref(v_reader_9330_); +v_config_9331_ = lean_ctor_get(v_machine_9328_, 2); +v___f_9332_ = ((lean_object*)(l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___closed__0)); +lean_inc_ref(v_config_9331_); +v___x_9333_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_parseSingleHeader___boxed), 2, 1); +lean_closure_set(v___x_9333_, 0, v_config_9331_); +v___x_9334_ = lean_box(0); +v___x_9335_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseWith___redArg(v_machine_9328_, v___x_9333_, v___x_9334_, v___x_9334_, v___f_9332_); +v_snd_9336_ = lean_ctor_get(v___x_9335_, 1); +lean_inc(v_snd_9336_); +if (lean_obj_tag(v_snd_9336_) == 0) { -lean_object* v_fst_8429_; -lean_dec_ref(v_reader_8422_); -v_fst_8429_ = lean_ctor_get(v___x_8427_, 0); -lean_inc(v_fst_8429_); -lean_dec_ref(v___x_8427_); -return v_fst_8429_; +lean_object* v_fst_9337_; +lean_dec_ref(v_reader_9330_); +v_fst_9337_ = lean_ctor_get(v___x_9335_, 0); +lean_inc(v_fst_9337_); +lean_dec_ref(v___x_9335_); +return v_fst_9337_; } else { -lean_object* v_val_8430_; -v_val_8430_ = lean_ctor_get(v_snd_8428_, 0); -lean_inc(v_val_8430_); -lean_dec_ref(v_snd_8428_); -if (lean_obj_tag(v_val_8430_) == 0) +lean_object* v_val_9338_; +v_val_9338_ = lean_ctor_get(v_snd_9336_, 0); +lean_inc(v_val_9338_); +lean_dec_ref(v_snd_9336_); +if (lean_obj_tag(v_val_9338_) == 0) { -lean_object* v_fst_8431_; lean_object* v___x_8432_; lean_object* v___x_8433_; -lean_dec_ref(v_reader_8422_); -v_fst_8431_ = lean_ctor_get(v___x_8427_, 0); -lean_inc(v_fst_8431_); -lean_dec_ref(v___x_8427_); -v___x_8432_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders(v_dir_8419_, v_fst_8431_); -v___x_8433_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_8419_, v___x_8432_); -return v___x_8433_; +lean_object* v_fst_9339_; lean_object* v___x_9340_; lean_object* v___x_9341_; +lean_dec_ref(v_reader_9330_); +v_fst_9339_ = lean_ctor_get(v___x_9335_, 0); +lean_inc(v_fst_9339_); +lean_dec_ref(v___x_9335_); +v___x_9340_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processHeaders(v_dir_9327_, v_fst_9339_); +v___x_9341_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_9327_, v___x_9340_); +return v___x_9341_; } else { -lean_object* v_val_8434_; lean_object* v_fst_8435_; lean_object* v_fst_8436_; lean_object* v_snd_8437_; lean_object* v_input_8438_; lean_object* v_start_8439_; lean_object* v___x_8440_; -v_val_8434_ = lean_ctor_get(v_val_8430_, 0); -lean_inc(v_val_8434_); -lean_dec_ref(v_val_8430_); -v_fst_8435_ = lean_ctor_get(v___x_8427_, 0); -lean_inc(v_fst_8435_); -lean_dec_ref(v___x_8427_); -v_fst_8436_ = lean_ctor_get(v_val_8434_, 0); -lean_inc(v_fst_8436_); -v_snd_8437_ = lean_ctor_get(v_val_8434_, 1); -lean_inc(v_snd_8437_); -lean_dec(v_val_8434_); -v_input_8438_ = lean_ctor_get(v_reader_8422_, 1); -lean_inc_ref(v_input_8438_); -lean_dec_ref(v_reader_8422_); -v_start_8439_ = l_ByteArray_Iterator_remainingBytes(v_input_8438_); -lean_dec_ref(v_input_8438_); -v___x_8440_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(v_dir_8419_, v_fst_8435_, v_headerCount_8421_, v_start_8439_, v_fst_8436_, v_snd_8437_); -lean_dec(v_start_8439_); -return v___x_8440_; +lean_object* v_val_9342_; lean_object* v_fst_9343_; lean_object* v_fst_9344_; lean_object* v_snd_9345_; lean_object* v_input_9346_; lean_object* v_start_9347_; lean_object* v___x_9348_; +v_val_9342_ = lean_ctor_get(v_val_9338_, 0); +lean_inc(v_val_9342_); +lean_dec_ref(v_val_9338_); +v_fst_9343_ = lean_ctor_get(v___x_9335_, 0); +lean_inc(v_fst_9343_); +lean_dec_ref(v___x_9335_); +v_fst_9344_ = lean_ctor_get(v_val_9342_, 0); +lean_inc(v_fst_9344_); +v_snd_9345_ = lean_ctor_get(v_val_9342_, 1); +lean_inc(v_snd_9345_); +lean_dec(v_val_9342_); +v_input_9346_ = lean_ctor_get(v_reader_9330_, 1); +lean_inc_ref(v_input_9346_); +lean_dec_ref(v_reader_9330_); +v_start_9347_ = l_ByteArray_Iterator_remainingBytes(v_input_9346_); +lean_dec_ref(v_input_9346_); +v___x_9348_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(v_dir_9327_, v_fst_9343_, v_headerCount_9329_, v_start_9347_, v_fst_9344_, v_snd_9345_); +lean_dec(v_start_9347_); +return v___x_9348_; } } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___boxed(lean_object* v_dir_8441_, lean_object* v_machine_8442_, lean_object* v_headerCount_8443_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader___boxed(lean_object* v_dir_9349_, lean_object* v_machine_9350_, lean_object* v_headerCount_9351_){ _start: { -uint8_t v_dir_boxed_8444_; lean_object* v_res_8445_; -v_dir_boxed_8444_ = lean_unbox(v_dir_8441_); -v_res_8445_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(v_dir_boxed_8444_, v_machine_8442_, v_headerCount_8443_); -lean_dec(v_headerCount_8443_); -return v_res_8445_; +uint8_t v_dir_boxed_9352_; lean_object* v_res_9353_; +v_dir_boxed_9352_ = lean_unbox(v_dir_9349_); +v_res_9353_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedHeader(v_dir_boxed_9352_, v_machine_9350_, v_headerCount_9351_); +lean_dec(v_headerCount_9351_); +return v_res_9353_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processRead___boxed(lean_object* v_dir_8446_, lean_object* v_machine_8447_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_processRead___boxed(lean_object* v_dir_9354_, lean_object* v_machine_9355_){ _start: { -uint8_t v_dir_boxed_8448_; lean_object* v_res_8449_; -v_dir_boxed_8448_ = lean_unbox(v_dir_8446_); -v_res_8449_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_boxed_8448_, v_machine_8447_); -return v_res_8449_; +uint8_t v_dir_boxed_9356_; lean_object* v_res_9357_; +v_dir_boxed_9356_ = lean_unbox(v_dir_9354_); +v_res_9357_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_boxed_9356_, v_machine_9355_); +return v_res_9357_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine___boxed(lean_object* v_dir_8450_, lean_object* v_machine_8451_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine___boxed(lean_object* v_dir_9358_, lean_object* v_machine_9359_){ _start: { -uint8_t v_dir_boxed_8452_; lean_object* v_res_8453_; -v_dir_boxed_8452_ = lean_unbox(v_dir_8450_); -v_res_8453_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(v_dir_boxed_8452_, v_machine_8451_); -return v_res_8453_; +uint8_t v_dir_boxed_9360_; lean_object* v_res_9361_; +v_dir_boxed_9360_ = lean_unbox(v_dir_9358_); +v_res_9361_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processNeedStartLine(v_dir_boxed_9360_, v_machine_9359_); +return v_res_9361_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState___boxed(lean_object* v_dir_8454_, lean_object* v_machine_8455_, lean_object* v_bodyState_8456_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState___boxed(lean_object* v_dir_9362_, lean_object* v_machine_9363_, lean_object* v_bodyState_9364_){ _start: { -uint8_t v_dir_boxed_8457_; lean_object* v_res_8458_; -v_dir_boxed_8457_ = lean_unbox(v_dir_8454_); -v_res_8458_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(v_dir_boxed_8457_, v_machine_8455_, v_bodyState_8456_); -return v_res_8458_; +uint8_t v_dir_boxed_9365_; lean_object* v_res_9366_; +v_dir_boxed_9365_ = lean_unbox(v_dir_9362_); +v_res_9366_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processReadBodyState(v_dir_boxed_9365_, v_machine_9363_, v_bodyState_9364_); +return v_res_9366_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___boxed(lean_object* v_dir_8459_, lean_object* v_machine_8460_, lean_object* v_headerCount_8461_, lean_object* v_startRemaining_8462_, lean_object* v_name_8463_, lean_object* v_value_8464_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader___boxed(lean_object* v_dir_9367_, lean_object* v_machine_9368_, lean_object* v_headerCount_9369_, lean_object* v_startRemaining_9370_, lean_object* v_name_9371_, lean_object* v_value_9372_){ _start: { -uint8_t v_dir_boxed_8465_; lean_object* v_res_8466_; -v_dir_boxed_8465_ = lean_unbox(v_dir_8459_); -v_res_8466_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(v_dir_boxed_8465_, v_machine_8460_, v_headerCount_8461_, v_startRemaining_8462_, v_name_8463_, v_value_8464_); -lean_dec(v_startRemaining_8462_); -lean_dec(v_headerCount_8461_); -return v_res_8466_; +uint8_t v_dir_boxed_9373_; lean_object* v_res_9374_; +v_dir_boxed_9373_ = lean_unbox(v_dir_9367_); +v_res_9374_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_processParsedHeader(v_dir_boxed_9373_, v_machine_9368_, v_headerCount_9369_, v_startRemaining_9370_, v_name_9371_, v_value_9372_); +lean_dec(v_startRemaining_9370_); +lean_dec(v_headerCount_9369_); +return v_res_9374_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_step(uint8_t v_dir_8470_, lean_object* v_machine_8471_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_step(uint8_t v_dir_9378_, lean_object* v_machine_9379_){ _start: { -lean_object* v___x_8472_; lean_object* v_machine_8473_; lean_object* v_writer_8474_; lean_object* v_reader_8475_; lean_object* v_config_8476_; lean_object* v_events_8477_; lean_object* v_error_8478_; lean_object* v_instant_8479_; uint8_t v_keepAlive_8480_; uint8_t v_forcedFlush_8481_; uint8_t v_pullBodyStalled_8482_; lean_object* v___x_8484_; uint8_t v_isShared_8485_; uint8_t v_isSharedCheck_8509_; -v___x_8472_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_8470_, v_machine_8471_); -v_machine_8473_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_8470_, v___x_8472_); -v_writer_8474_ = lean_ctor_get(v_machine_8473_, 1); -v_reader_8475_ = lean_ctor_get(v_machine_8473_, 0); -v_config_8476_ = lean_ctor_get(v_machine_8473_, 2); -v_events_8477_ = lean_ctor_get(v_machine_8473_, 3); -v_error_8478_ = lean_ctor_get(v_machine_8473_, 4); -v_instant_8479_ = lean_ctor_get(v_machine_8473_, 5); -v_keepAlive_8480_ = lean_ctor_get_uint8(v_machine_8473_, sizeof(void*)*6); -v_forcedFlush_8481_ = lean_ctor_get_uint8(v_machine_8473_, sizeof(void*)*6 + 1); -v_pullBodyStalled_8482_ = lean_ctor_get_uint8(v_machine_8473_, sizeof(void*)*6 + 2); -v_isSharedCheck_8509_ = !lean_is_exclusive(v_machine_8473_); -if (v_isSharedCheck_8509_ == 0) +lean_object* v___x_9380_; lean_object* v_machine_9381_; lean_object* v_writer_9382_; lean_object* v_reader_9383_; lean_object* v_config_9384_; lean_object* v_events_9385_; lean_object* v_error_9386_; lean_object* v_instant_9387_; uint8_t v_keepAlive_9388_; uint8_t v_forcedFlush_9389_; uint8_t v_pullBodyStalled_9390_; lean_object* v___x_9392_; uint8_t v_isShared_9393_; uint8_t v_isSharedCheck_9417_; +v___x_9380_ = l_Std_Http_Protocol_H1_Machine_processRead(v_dir_9378_, v_machine_9379_); +v_machine_9381_ = l_Std_Http_Protocol_H1_Machine_processWrite(v_dir_9378_, v___x_9380_); +v_writer_9382_ = lean_ctor_get(v_machine_9381_, 1); +v_reader_9383_ = lean_ctor_get(v_machine_9381_, 0); +v_config_9384_ = lean_ctor_get(v_machine_9381_, 2); +v_events_9385_ = lean_ctor_get(v_machine_9381_, 3); +v_error_9386_ = lean_ctor_get(v_machine_9381_, 4); +v_instant_9387_ = lean_ctor_get(v_machine_9381_, 5); +v_keepAlive_9388_ = lean_ctor_get_uint8(v_machine_9381_, sizeof(void*)*6); +v_forcedFlush_9389_ = lean_ctor_get_uint8(v_machine_9381_, sizeof(void*)*6 + 1); +v_pullBodyStalled_9390_ = lean_ctor_get_uint8(v_machine_9381_, sizeof(void*)*6 + 2); +v_isSharedCheck_9417_ = !lean_is_exclusive(v_machine_9381_); +if (v_isSharedCheck_9417_ == 0) { -v___x_8484_ = v_machine_8473_; -v_isShared_8485_ = v_isSharedCheck_8509_; -goto v_resetjp_8483_; +v___x_9392_ = v_machine_9381_; +v_isShared_9393_ = v_isSharedCheck_9417_; +goto v_resetjp_9391_; } else { -lean_inc(v_instant_8479_); -lean_inc(v_error_8478_); -lean_inc(v_events_8477_); -lean_inc(v_config_8476_); -lean_inc(v_writer_8474_); -lean_inc(v_reader_8475_); -lean_dec(v_machine_8473_); -v___x_8484_ = lean_box(0); -v_isShared_8485_ = v_isSharedCheck_8509_; -goto v_resetjp_8483_; +lean_inc(v_instant_9387_); +lean_inc(v_error_9386_); +lean_inc(v_events_9385_); +lean_inc(v_config_9384_); +lean_inc(v_writer_9382_); +lean_inc(v_reader_9383_); +lean_dec(v_machine_9381_); +v___x_9392_ = lean_box(0); +v_isShared_9393_ = v_isSharedCheck_9417_; +goto v_resetjp_9391_; } -v_resetjp_8483_: +v_resetjp_9391_: { -lean_object* v_userData_8486_; lean_object* v_outputData_8487_; lean_object* v_state_8488_; lean_object* v_knownSize_8489_; lean_object* v_messageHead_8490_; uint8_t v_sentMessage_8491_; uint8_t v_userClosedBody_8492_; uint8_t v_omitBody_8493_; lean_object* v_userDataBytes_8494_; lean_object* v___x_8496_; uint8_t v_isShared_8497_; uint8_t v_isSharedCheck_8508_; -v_userData_8486_ = lean_ctor_get(v_writer_8474_, 0); -v_outputData_8487_ = lean_ctor_get(v_writer_8474_, 1); -v_state_8488_ = lean_ctor_get(v_writer_8474_, 2); -v_knownSize_8489_ = lean_ctor_get(v_writer_8474_, 3); -v_messageHead_8490_ = lean_ctor_get(v_writer_8474_, 4); -v_sentMessage_8491_ = lean_ctor_get_uint8(v_writer_8474_, sizeof(void*)*6); -v_userClosedBody_8492_ = lean_ctor_get_uint8(v_writer_8474_, sizeof(void*)*6 + 1); -v_omitBody_8493_ = lean_ctor_get_uint8(v_writer_8474_, sizeof(void*)*6 + 2); -v_userDataBytes_8494_ = lean_ctor_get(v_writer_8474_, 5); -v_isSharedCheck_8508_ = !lean_is_exclusive(v_writer_8474_); -if (v_isSharedCheck_8508_ == 0) +lean_object* v_userData_9394_; lean_object* v_outputData_9395_; lean_object* v_state_9396_; lean_object* v_knownSize_9397_; lean_object* v_messageHead_9398_; uint8_t v_sentMessage_9399_; uint8_t v_userClosedBody_9400_; uint8_t v_omitBody_9401_; lean_object* v_userDataBytes_9402_; lean_object* v___x_9404_; uint8_t v_isShared_9405_; uint8_t v_isSharedCheck_9416_; +v_userData_9394_ = lean_ctor_get(v_writer_9382_, 0); +v_outputData_9395_ = lean_ctor_get(v_writer_9382_, 1); +v_state_9396_ = lean_ctor_get(v_writer_9382_, 2); +v_knownSize_9397_ = lean_ctor_get(v_writer_9382_, 3); +v_messageHead_9398_ = lean_ctor_get(v_writer_9382_, 4); +v_sentMessage_9399_ = lean_ctor_get_uint8(v_writer_9382_, sizeof(void*)*6); +v_userClosedBody_9400_ = lean_ctor_get_uint8(v_writer_9382_, sizeof(void*)*6 + 1); +v_omitBody_9401_ = lean_ctor_get_uint8(v_writer_9382_, sizeof(void*)*6 + 2); +v_userDataBytes_9402_ = lean_ctor_get(v_writer_9382_, 5); +v_isSharedCheck_9416_ = !lean_is_exclusive(v_writer_9382_); +if (v_isSharedCheck_9416_ == 0) { -v___x_8496_ = v_writer_8474_; -v_isShared_8497_ = v_isSharedCheck_8508_; -goto v_resetjp_8495_; +v___x_9404_ = v_writer_9382_; +v_isShared_9405_ = v_isSharedCheck_9416_; +goto v_resetjp_9403_; } else { -lean_inc(v_userDataBytes_8494_); -lean_inc(v_messageHead_8490_); -lean_inc(v_knownSize_8489_); -lean_inc(v_state_8488_); -lean_inc(v_outputData_8487_); -lean_inc(v_userData_8486_); -lean_dec(v_writer_8474_); -v___x_8496_ = lean_box(0); -v_isShared_8497_ = v_isSharedCheck_8508_; -goto v_resetjp_8495_; +lean_inc(v_userDataBytes_9402_); +lean_inc(v_messageHead_9398_); +lean_inc(v_knownSize_9397_); +lean_inc(v_state_9396_); +lean_inc(v_outputData_9395_); +lean_inc(v_userData_9394_); +lean_dec(v_writer_9382_); +v___x_9404_ = lean_box(0); +v_isShared_9405_ = v_isSharedCheck_9416_; +goto v_resetjp_9403_; } -v_resetjp_8495_: +v_resetjp_9403_: { -lean_object* v___x_8498_; lean_object* v___x_8499_; lean_object* v___x_8501_; -v___x_8498_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); -v___x_8499_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_step___closed__0)); -if (v_isShared_8497_ == 0) +lean_object* v___x_9406_; lean_object* v___x_9407_; lean_object* v___x_9409_; +v___x_9406_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_takeEvents___redArg___closed__0)); +v___x_9407_ = ((lean_object*)(l_Std_Http_Protocol_H1_Machine_step___closed__0)); +if (v_isShared_9405_ == 0) { -lean_ctor_set(v___x_8496_, 1, v___x_8499_); -v___x_8501_ = v___x_8496_; -goto v_reusejp_8500_; +lean_ctor_set(v___x_9404_, 1, v___x_9407_); +v___x_9409_ = v___x_9404_; +goto v_reusejp_9408_; } else { -lean_object* v_reuseFailAlloc_8507_; -v_reuseFailAlloc_8507_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8507_, 0, v_userData_8486_); -lean_ctor_set(v_reuseFailAlloc_8507_, 1, v___x_8499_); -lean_ctor_set(v_reuseFailAlloc_8507_, 2, v_state_8488_); -lean_ctor_set(v_reuseFailAlloc_8507_, 3, v_knownSize_8489_); -lean_ctor_set(v_reuseFailAlloc_8507_, 4, v_messageHead_8490_); -lean_ctor_set(v_reuseFailAlloc_8507_, 5, v_userDataBytes_8494_); -lean_ctor_set_uint8(v_reuseFailAlloc_8507_, sizeof(void*)*6, v_sentMessage_8491_); -lean_ctor_set_uint8(v_reuseFailAlloc_8507_, sizeof(void*)*6 + 1, v_userClosedBody_8492_); -lean_ctor_set_uint8(v_reuseFailAlloc_8507_, sizeof(void*)*6 + 2, v_omitBody_8493_); -v___x_8501_ = v_reuseFailAlloc_8507_; -goto v_reusejp_8500_; +lean_object* v_reuseFailAlloc_9415_; +v_reuseFailAlloc_9415_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9415_, 0, v_userData_9394_); +lean_ctor_set(v_reuseFailAlloc_9415_, 1, v___x_9407_); +lean_ctor_set(v_reuseFailAlloc_9415_, 2, v_state_9396_); +lean_ctor_set(v_reuseFailAlloc_9415_, 3, v_knownSize_9397_); +lean_ctor_set(v_reuseFailAlloc_9415_, 4, v_messageHead_9398_); +lean_ctor_set(v_reuseFailAlloc_9415_, 5, v_userDataBytes_9402_); +lean_ctor_set_uint8(v_reuseFailAlloc_9415_, sizeof(void*)*6, v_sentMessage_9399_); +lean_ctor_set_uint8(v_reuseFailAlloc_9415_, sizeof(void*)*6 + 1, v_userClosedBody_9400_); +lean_ctor_set_uint8(v_reuseFailAlloc_9415_, sizeof(void*)*6 + 2, v_omitBody_9401_); +v___x_9409_ = v_reuseFailAlloc_9415_; +goto v_reusejp_9408_; } -v_reusejp_8500_: +v_reusejp_9408_: { -lean_object* v___x_8503_; -if (v_isShared_8485_ == 0) +lean_object* v___x_9411_; +if (v_isShared_9393_ == 0) { -lean_ctor_set(v___x_8484_, 3, v___x_8498_); -lean_ctor_set(v___x_8484_, 1, v___x_8501_); -v___x_8503_ = v___x_8484_; -goto v_reusejp_8502_; +lean_ctor_set(v___x_9392_, 3, v___x_9406_); +lean_ctor_set(v___x_9392_, 1, v___x_9409_); +v___x_9411_ = v___x_9392_; +goto v_reusejp_9410_; } else { -lean_object* v_reuseFailAlloc_8506_; -v_reuseFailAlloc_8506_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8506_, 0, v_reader_8475_); -lean_ctor_set(v_reuseFailAlloc_8506_, 1, v___x_8501_); -lean_ctor_set(v_reuseFailAlloc_8506_, 2, v_config_8476_); -lean_ctor_set(v_reuseFailAlloc_8506_, 3, v___x_8498_); -lean_ctor_set(v_reuseFailAlloc_8506_, 4, v_error_8478_); -lean_ctor_set(v_reuseFailAlloc_8506_, 5, v_instant_8479_); -lean_ctor_set_uint8(v_reuseFailAlloc_8506_, sizeof(void*)*6, v_keepAlive_8480_); -lean_ctor_set_uint8(v_reuseFailAlloc_8506_, sizeof(void*)*6 + 1, v_forcedFlush_8481_); -lean_ctor_set_uint8(v_reuseFailAlloc_8506_, sizeof(void*)*6 + 2, v_pullBodyStalled_8482_); -v___x_8503_ = v_reuseFailAlloc_8506_; -goto v_reusejp_8502_; +lean_object* v_reuseFailAlloc_9414_; +v_reuseFailAlloc_9414_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9414_, 0, v_reader_9383_); +lean_ctor_set(v_reuseFailAlloc_9414_, 1, v___x_9409_); +lean_ctor_set(v_reuseFailAlloc_9414_, 2, v_config_9384_); +lean_ctor_set(v_reuseFailAlloc_9414_, 3, v___x_9406_); +lean_ctor_set(v_reuseFailAlloc_9414_, 4, v_error_9386_); +lean_ctor_set(v_reuseFailAlloc_9414_, 5, v_instant_9387_); +lean_ctor_set_uint8(v_reuseFailAlloc_9414_, sizeof(void*)*6, v_keepAlive_9388_); +lean_ctor_set_uint8(v_reuseFailAlloc_9414_, sizeof(void*)*6 + 1, v_forcedFlush_9389_); +lean_ctor_set_uint8(v_reuseFailAlloc_9414_, sizeof(void*)*6 + 2, v_pullBodyStalled_9390_); +v___x_9411_ = v_reuseFailAlloc_9414_; +goto v_reusejp_9410_; } -v_reusejp_8502_: +v_reusejp_9410_: { -lean_object* v___x_8504_; lean_object* v___x_8505_; -v___x_8504_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_8504_, 0, v_events_8477_); -lean_ctor_set(v___x_8504_, 1, v_outputData_8487_); -v___x_8505_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_8505_, 0, v___x_8503_); -lean_ctor_set(v___x_8505_, 1, v___x_8504_); -return v___x_8505_; +lean_object* v___x_9412_; lean_object* v___x_9413_; +v___x_9412_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_9412_, 0, v_events_9385_); +lean_ctor_set(v___x_9412_, 1, v_outputData_9395_); +v___x_9413_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_9413_, 0, v___x_9411_); +lean_ctor_set(v___x_9413_, 1, v___x_9412_); +return v___x_9413_; } } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_step___boxed(lean_object* v_dir_8510_, lean_object* v_machine_8511_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_step___boxed(lean_object* v_dir_9418_, lean_object* v_machine_9419_){ _start: { -uint8_t v_dir_boxed_8512_; lean_object* v_res_8513_; -v_dir_boxed_8512_ = lean_unbox(v_dir_8510_); -v_res_8513_ = l_Std_Http_Protocol_H1_Machine_step(v_dir_boxed_8512_, v_machine_8511_); -return v_res_8513_; +uint8_t v_dir_boxed_9420_; lean_object* v_res_9421_; +v_dir_boxed_9420_ = lean_unbox(v_dir_9418_); +v_res_9421_ = l_Std_Http_Protocol_H1_Machine_step(v_dir_boxed_9420_, v_machine_9419_); +return v_res_9421_; } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(uint8_t v_dir_8514_, lean_object* v_machine_8515_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(uint8_t v_dir_9422_, lean_object* v_machine_9423_){ _start: { -lean_object* v_reader_8516_; lean_object* v_state_8517_; -v_reader_8516_ = lean_ctor_get(v_machine_8515_, 0); -v_state_8517_ = lean_ctor_get(v_reader_8516_, 0); -if (lean_obj_tag(v_state_8517_) == 2) +lean_object* v_reader_9424_; lean_object* v_state_9425_; +v_reader_9424_ = lean_ctor_get(v_machine_9423_, 0); +v_state_9425_ = lean_ctor_get(v_reader_9424_, 0); +if (lean_obj_tag(v_state_9425_) == 2) { -lean_object* v_a_8518_; lean_object* v___x_8519_; lean_object* v_snd_8520_; lean_object* v_fst_8521_; -v_a_8518_ = lean_ctor_get(v_state_8517_, 0); -lean_inc(v_a_8518_); -v___x_8519_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_8514_, v_machine_8515_, v_a_8518_); -v_snd_8520_ = lean_ctor_get(v___x_8519_, 1); -lean_inc(v_snd_8520_); -v_fst_8521_ = lean_ctor_get(v_snd_8520_, 0); -lean_inc(v_fst_8521_); -if (lean_obj_tag(v_fst_8521_) == 0) +lean_object* v_a_9426_; lean_object* v___x_9427_; lean_object* v_snd_9428_; lean_object* v_fst_9429_; +v_a_9426_ = lean_ctor_get(v_state_9425_, 0); +lean_inc(v_a_9426_); +v___x_9427_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_parseBody(v_dir_9422_, v_machine_9423_, v_a_9426_); +v_snd_9428_ = lean_ctor_get(v___x_9427_, 1); +lean_inc(v_snd_9428_); +v_fst_9429_ = lean_ctor_get(v_snd_9428_, 0); +lean_inc(v_fst_9429_); +if (lean_obj_tag(v_fst_9429_) == 0) { -lean_object* v_snd_8522_; lean_object* v___x_8524_; uint8_t v_isShared_8525_; uint8_t v_isSharedCheck_8533_; -v_snd_8522_ = lean_ctor_get(v_snd_8520_, 1); -v_isSharedCheck_8533_ = !lean_is_exclusive(v_snd_8520_); -if (v_isSharedCheck_8533_ == 0) +lean_object* v_snd_9430_; lean_object* v___x_9432_; uint8_t v_isShared_9433_; uint8_t v_isSharedCheck_9441_; +v_snd_9430_ = lean_ctor_get(v_snd_9428_, 1); +v_isSharedCheck_9441_ = !lean_is_exclusive(v_snd_9428_); +if (v_isSharedCheck_9441_ == 0) { -lean_object* v_unused_8534_; -v_unused_8534_ = lean_ctor_get(v_snd_8520_, 0); -lean_dec(v_unused_8534_); -v___x_8524_ = v_snd_8520_; -v_isShared_8525_ = v_isSharedCheck_8533_; -goto v_resetjp_8523_; +lean_object* v_unused_9442_; +v_unused_9442_ = lean_ctor_get(v_snd_9428_, 0); +lean_dec(v_unused_9442_); +v___x_9432_ = v_snd_9428_; +v_isShared_9433_ = v_isSharedCheck_9441_; +goto v_resetjp_9431_; } else { -lean_inc(v_snd_8522_); -lean_dec(v_snd_8520_); -v___x_8524_ = lean_box(0); -v_isShared_8525_ = v_isSharedCheck_8533_; -goto v_resetjp_8523_; +lean_inc(v_snd_9430_); +lean_dec(v_snd_9428_); +v___x_9432_ = lean_box(0); +v_isShared_9433_ = v_isSharedCheck_9441_; +goto v_resetjp_9431_; } -v_resetjp_8523_: +v_resetjp_9431_: { -uint8_t v___x_8526_; -v___x_8526_ = lean_unbox(v_snd_8522_); -lean_dec(v_snd_8522_); -if (v___x_8526_ == 0) +uint8_t v___x_9434_; +v___x_9434_ = lean_unbox(v_snd_9430_); +lean_dec(v_snd_9430_); +if (v___x_9434_ == 0) { -lean_object* v_fst_8527_; lean_object* v___x_8529_; -v_fst_8527_ = lean_ctor_get(v___x_8519_, 0); -lean_inc(v_fst_8527_); -lean_dec_ref(v___x_8519_); -if (v_isShared_8525_ == 0) +lean_object* v_fst_9435_; lean_object* v___x_9437_; +v_fst_9435_ = lean_ctor_get(v___x_9427_, 0); +lean_inc(v_fst_9435_); +lean_dec_ref(v___x_9427_); +if (v_isShared_9433_ == 0) { -lean_ctor_set(v___x_8524_, 1, v_fst_8521_); -lean_ctor_set(v___x_8524_, 0, v_fst_8527_); -v___x_8529_ = v___x_8524_; -goto v_reusejp_8528_; +lean_ctor_set(v___x_9432_, 1, v_fst_9429_); +lean_ctor_set(v___x_9432_, 0, v_fst_9435_); +v___x_9437_ = v___x_9432_; +goto v_reusejp_9436_; } else { -lean_object* v_reuseFailAlloc_8530_; -v_reuseFailAlloc_8530_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_8530_, 0, v_fst_8527_); -lean_ctor_set(v_reuseFailAlloc_8530_, 1, v_fst_8521_); -v___x_8529_ = v_reuseFailAlloc_8530_; -goto v_reusejp_8528_; +lean_object* v_reuseFailAlloc_9438_; +v_reuseFailAlloc_9438_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_9438_, 0, v_fst_9435_); +lean_ctor_set(v_reuseFailAlloc_9438_, 1, v_fst_9429_); +v___x_9437_ = v_reuseFailAlloc_9438_; +goto v_reusejp_9436_; } -v_reusejp_8528_: +v_reusejp_9436_: { -return v___x_8529_; +return v___x_9437_; } } else { -lean_object* v_fst_8531_; -lean_del_object(v___x_8524_); -v_fst_8531_ = lean_ctor_get(v___x_8519_, 0); -lean_inc(v_fst_8531_); -lean_dec_ref(v___x_8519_); -v_machine_8515_ = v_fst_8531_; +lean_object* v_fst_9439_; +lean_del_object(v___x_9432_); +v_fst_9439_ = lean_ctor_get(v___x_9427_, 0); +lean_inc(v_fst_9439_); +lean_dec_ref(v___x_9427_); +v_machine_9423_ = v_fst_9439_; goto _start; } } } else { -lean_object* v___x_8536_; uint8_t v_isShared_8537_; uint8_t v_isSharedCheck_8542_; -v_isSharedCheck_8542_ = !lean_is_exclusive(v_snd_8520_); -if (v_isSharedCheck_8542_ == 0) +lean_object* v___x_9444_; uint8_t v_isShared_9445_; uint8_t v_isSharedCheck_9450_; +v_isSharedCheck_9450_ = !lean_is_exclusive(v_snd_9428_); +if (v_isSharedCheck_9450_ == 0) { -lean_object* v_unused_8543_; lean_object* v_unused_8544_; -v_unused_8543_ = lean_ctor_get(v_snd_8520_, 1); -lean_dec(v_unused_8543_); -v_unused_8544_ = lean_ctor_get(v_snd_8520_, 0); -lean_dec(v_unused_8544_); -v___x_8536_ = v_snd_8520_; -v_isShared_8537_ = v_isSharedCheck_8542_; -goto v_resetjp_8535_; +lean_object* v_unused_9451_; lean_object* v_unused_9452_; +v_unused_9451_ = lean_ctor_get(v_snd_9428_, 1); +lean_dec(v_unused_9451_); +v_unused_9452_ = lean_ctor_get(v_snd_9428_, 0); +lean_dec(v_unused_9452_); +v___x_9444_ = v_snd_9428_; +v_isShared_9445_ = v_isSharedCheck_9450_; +goto v_resetjp_9443_; } else { -lean_dec(v_snd_8520_); -v___x_8536_ = lean_box(0); -v_isShared_8537_ = v_isSharedCheck_8542_; -goto v_resetjp_8535_; +lean_dec(v_snd_9428_); +v___x_9444_ = lean_box(0); +v_isShared_9445_ = v_isSharedCheck_9450_; +goto v_resetjp_9443_; } -v_resetjp_8535_: +v_resetjp_9443_: { -lean_object* v_fst_8538_; lean_object* v___x_8540_; -v_fst_8538_ = lean_ctor_get(v___x_8519_, 0); -lean_inc(v_fst_8538_); -lean_dec_ref(v___x_8519_); -if (v_isShared_8537_ == 0) +lean_object* v_fst_9446_; lean_object* v___x_9448_; +v_fst_9446_ = lean_ctor_get(v___x_9427_, 0); +lean_inc(v_fst_9446_); +lean_dec_ref(v___x_9427_); +if (v_isShared_9445_ == 0) { -lean_ctor_set(v___x_8536_, 1, v_fst_8521_); -lean_ctor_set(v___x_8536_, 0, v_fst_8538_); -v___x_8540_ = v___x_8536_; -goto v_reusejp_8539_; +lean_ctor_set(v___x_9444_, 1, v_fst_9429_); +lean_ctor_set(v___x_9444_, 0, v_fst_9446_); +v___x_9448_ = v___x_9444_; +goto v_reusejp_9447_; } else { -lean_object* v_reuseFailAlloc_8541_; -v_reuseFailAlloc_8541_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_8541_, 0, v_fst_8538_); -lean_ctor_set(v_reuseFailAlloc_8541_, 1, v_fst_8521_); -v___x_8540_ = v_reuseFailAlloc_8541_; -goto v_reusejp_8539_; +lean_object* v_reuseFailAlloc_9449_; +v_reuseFailAlloc_9449_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_9449_, 0, v_fst_9446_); +lean_ctor_set(v_reuseFailAlloc_9449_, 1, v_fst_9429_); +v___x_9448_ = v_reuseFailAlloc_9449_; +goto v_reusejp_9447_; } -v_reusejp_8539_: +v_reusejp_9447_: { -return v___x_8540_; +return v___x_9448_; } } } } else { -lean_object* v___x_8545_; lean_object* v___x_8546_; -v___x_8545_ = lean_box(0); -v___x_8546_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_8546_, 0, v_machine_8515_); -lean_ctor_set(v___x_8546_, 1, v___x_8545_); -return v___x_8546_; +lean_object* v___x_9453_; lean_object* v___x_9454_; +v___x_9453_ = lean_box(0); +v___x_9454_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_9454_, 0, v_machine_9423_); +lean_ctor_set(v___x_9454_, 1, v___x_9453_); +return v___x_9454_; } } } -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk___boxed(lean_object* v_dir_8547_, lean_object* v_machine_8548_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk___boxed(lean_object* v_dir_9455_, lean_object* v_machine_9456_){ _start: { -uint8_t v_dir_boxed_8549_; lean_object* v_res_8550_; -v_dir_boxed_8549_ = lean_unbox(v_dir_8547_); -v_res_8550_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v_dir_boxed_8549_, v_machine_8548_); -return v_res_8550_; +uint8_t v_dir_boxed_9457_; lean_object* v_res_9458_; +v_dir_boxed_9457_ = lean_unbox(v_dir_9455_); +v_res_9458_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v_dir_boxed_9457_, v_machine_9456_); +return v_res_9458_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_pullBody(uint8_t v_dir_8551_, lean_object* v_machine_8552_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_pullBody(uint8_t v_dir_9459_, lean_object* v_machine_9460_){ _start: { -lean_object* v___x_8553_; lean_object* v_fst_8554_; lean_object* v_snd_8555_; lean_object* v___x_8557_; uint8_t v_isShared_8558_; uint8_t v_isSharedCheck_8593_; -v___x_8553_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v_dir_8551_, v_machine_8552_); -v_fst_8554_ = lean_ctor_get(v___x_8553_, 0); -v_snd_8555_ = lean_ctor_get(v___x_8553_, 1); -v_isSharedCheck_8593_ = !lean_is_exclusive(v___x_8553_); -if (v_isSharedCheck_8593_ == 0) +lean_object* v___x_9461_; lean_object* v_fst_9462_; lean_object* v_snd_9463_; lean_object* v___x_9465_; uint8_t v_isShared_9466_; uint8_t v_isSharedCheck_9501_; +v___x_9461_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v_dir_9459_, v_machine_9460_); +v_fst_9462_ = lean_ctor_get(v___x_9461_, 0); +v_snd_9463_ = lean_ctor_get(v___x_9461_, 1); +v_isSharedCheck_9501_ = !lean_is_exclusive(v___x_9461_); +if (v_isSharedCheck_9501_ == 0) { -v___x_8557_ = v___x_8553_; -v_isShared_8558_ = v_isSharedCheck_8593_; -goto v_resetjp_8556_; +v___x_9465_ = v___x_9461_; +v_isShared_9466_ = v_isSharedCheck_9501_; +goto v_resetjp_9464_; } else { -lean_inc(v_snd_8555_); -lean_inc(v_fst_8554_); -lean_dec(v___x_8553_); -v___x_8557_ = lean_box(0); -v_isShared_8558_ = v_isSharedCheck_8593_; -goto v_resetjp_8556_; +lean_inc(v_snd_9463_); +lean_inc(v_fst_9462_); +lean_dec(v___x_9461_); +v___x_9465_ = lean_box(0); +v_isShared_9466_ = v_isSharedCheck_9501_; +goto v_resetjp_9464_; } -v_resetjp_8556_: +v_resetjp_9464_: { -lean_object* v_reader_8559_; lean_object* v_writer_8560_; lean_object* v_config_8561_; lean_object* v_events_8562_; lean_object* v_error_8563_; lean_object* v_instant_8564_; uint8_t v_keepAlive_8565_; uint8_t v_forcedFlush_8566_; lean_object* v___x_8568_; uint8_t v_isShared_8569_; uint8_t v_isSharedCheck_8592_; -v_reader_8559_ = lean_ctor_get(v_fst_8554_, 0); -v_writer_8560_ = lean_ctor_get(v_fst_8554_, 1); -v_config_8561_ = lean_ctor_get(v_fst_8554_, 2); -v_events_8562_ = lean_ctor_get(v_fst_8554_, 3); -v_error_8563_ = lean_ctor_get(v_fst_8554_, 4); -v_instant_8564_ = lean_ctor_get(v_fst_8554_, 5); -v_keepAlive_8565_ = lean_ctor_get_uint8(v_fst_8554_, sizeof(void*)*6); -v_forcedFlush_8566_ = lean_ctor_get_uint8(v_fst_8554_, sizeof(void*)*6 + 1); -v_isSharedCheck_8592_ = !lean_is_exclusive(v_fst_8554_); -if (v_isSharedCheck_8592_ == 0) +lean_object* v_reader_9467_; lean_object* v_writer_9468_; lean_object* v_config_9469_; lean_object* v_events_9470_; lean_object* v_error_9471_; lean_object* v_instant_9472_; uint8_t v_keepAlive_9473_; uint8_t v_forcedFlush_9474_; lean_object* v___x_9476_; uint8_t v_isShared_9477_; uint8_t v_isSharedCheck_9500_; +v_reader_9467_ = lean_ctor_get(v_fst_9462_, 0); +v_writer_9468_ = lean_ctor_get(v_fst_9462_, 1); +v_config_9469_ = lean_ctor_get(v_fst_9462_, 2); +v_events_9470_ = lean_ctor_get(v_fst_9462_, 3); +v_error_9471_ = lean_ctor_get(v_fst_9462_, 4); +v_instant_9472_ = lean_ctor_get(v_fst_9462_, 5); +v_keepAlive_9473_ = lean_ctor_get_uint8(v_fst_9462_, sizeof(void*)*6); +v_forcedFlush_9474_ = lean_ctor_get_uint8(v_fst_9462_, sizeof(void*)*6 + 1); +v_isSharedCheck_9500_ = !lean_is_exclusive(v_fst_9462_); +if (v_isSharedCheck_9500_ == 0) { -v___x_8568_ = v_fst_8554_; -v_isShared_8569_ = v_isSharedCheck_8592_; -goto v_resetjp_8567_; +v___x_9476_ = v_fst_9462_; +v_isShared_9477_ = v_isSharedCheck_9500_; +goto v_resetjp_9475_; } else { -lean_inc(v_instant_8564_); -lean_inc(v_error_8563_); -lean_inc(v_events_8562_); -lean_inc(v_config_8561_); -lean_inc(v_writer_8560_); -lean_inc(v_reader_8559_); -lean_dec(v_fst_8554_); -v___x_8568_ = lean_box(0); -v_isShared_8569_ = v_isSharedCheck_8592_; -goto v_resetjp_8567_; +lean_inc(v_instant_9472_); +lean_inc(v_error_9471_); +lean_inc(v_events_9470_); +lean_inc(v_config_9469_); +lean_inc(v_writer_9468_); +lean_inc(v_reader_9467_); +lean_dec(v_fst_9462_); +v___x_9476_ = lean_box(0); +v_isShared_9477_ = v_isSharedCheck_9500_; +goto v_resetjp_9475_; } -v_resetjp_8567_: +v_resetjp_9475_: { -uint8_t v___y_8571_; lean_object* v_state_8578_; lean_object* v_messageHead_8579_; uint8_t v___y_8581_; -v_state_8578_ = lean_ctor_get(v_reader_8559_, 0); -v_messageHead_8579_ = lean_ctor_get(v_reader_8559_, 2); -if (v_dir_8551_ == 0) +uint8_t v___y_9479_; lean_object* v_state_9486_; lean_object* v_messageHead_9487_; uint8_t v___y_9489_; +v_state_9486_ = lean_ctor_get(v_reader_9467_, 0); +v_messageHead_9487_ = lean_ctor_get(v_reader_9467_, 2); +if (v_dir_9459_ == 0) { -uint8_t v_sentMessage_8585_; -v_sentMessage_8585_ = lean_ctor_get_uint8(v_writer_8560_, sizeof(void*)*6); -v___y_8581_ = v_sentMessage_8585_; -goto v___jp_8580_; +uint8_t v_sentMessage_9493_; +v_sentMessage_9493_ = lean_ctor_get_uint8(v_writer_9468_, sizeof(void*)*6); +v___y_9489_ = v_sentMessage_9493_; +goto v___jp_9488_; } else { -lean_object* v_status_8586_; uint16_t v___x_8587_; uint16_t v___x_8588_; uint8_t v___x_8589_; -v_status_8586_ = lean_ctor_get(v_messageHead_8579_, 0); -v___x_8587_ = 100; -v___x_8588_ = l_Std_Http_Status_toCode(v_status_8586_); -v___x_8589_ = lean_uint16_dec_le(v___x_8587_, v___x_8588_); -if (v___x_8589_ == 0) +lean_object* v_status_9494_; uint16_t v___x_9495_; uint16_t v___x_9496_; uint8_t v___x_9497_; +v_status_9494_ = lean_ctor_get(v_messageHead_9487_, 0); +v___x_9495_ = 100; +v___x_9496_ = l_Std_Http_Status_toCode(v_status_9494_); +v___x_9497_ = lean_uint16_dec_le(v___x_9495_, v___x_9496_); +if (v___x_9497_ == 0) { -v___y_8581_ = v___x_8589_; -goto v___jp_8580_; +v___y_9489_ = v___x_9497_; +goto v___jp_9488_; } else { -uint16_t v___x_8590_; uint8_t v___x_8591_; -v___x_8590_ = 200; -v___x_8591_ = lean_uint16_dec_lt(v___x_8588_, v___x_8590_); -v___y_8581_ = v___x_8591_; -goto v___jp_8580_; +uint16_t v___x_9498_; uint8_t v___x_9499_; +v___x_9498_ = 200; +v___x_9499_ = lean_uint16_dec_lt(v___x_9496_, v___x_9498_); +v___y_9489_ = v___x_9499_; +goto v___jp_9488_; } } -v___jp_8570_: +v___jp_9478_: { -lean_object* v___x_8573_; -if (v_isShared_8569_ == 0) +lean_object* v___x_9481_; +if (v_isShared_9477_ == 0) { -v___x_8573_ = v___x_8568_; -goto v_reusejp_8572_; +v___x_9481_ = v___x_9476_; +goto v_reusejp_9480_; } else { -lean_object* v_reuseFailAlloc_8577_; -v_reuseFailAlloc_8577_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_8577_, 0, v_reader_8559_); -lean_ctor_set(v_reuseFailAlloc_8577_, 1, v_writer_8560_); -lean_ctor_set(v_reuseFailAlloc_8577_, 2, v_config_8561_); -lean_ctor_set(v_reuseFailAlloc_8577_, 3, v_events_8562_); -lean_ctor_set(v_reuseFailAlloc_8577_, 4, v_error_8563_); -lean_ctor_set(v_reuseFailAlloc_8577_, 5, v_instant_8564_); -lean_ctor_set_uint8(v_reuseFailAlloc_8577_, sizeof(void*)*6, v_keepAlive_8565_); -lean_ctor_set_uint8(v_reuseFailAlloc_8577_, sizeof(void*)*6 + 1, v_forcedFlush_8566_); -v___x_8573_ = v_reuseFailAlloc_8577_; -goto v_reusejp_8572_; +lean_object* v_reuseFailAlloc_9485_; +v_reuseFailAlloc_9485_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_9485_, 0, v_reader_9467_); +lean_ctor_set(v_reuseFailAlloc_9485_, 1, v_writer_9468_); +lean_ctor_set(v_reuseFailAlloc_9485_, 2, v_config_9469_); +lean_ctor_set(v_reuseFailAlloc_9485_, 3, v_events_9470_); +lean_ctor_set(v_reuseFailAlloc_9485_, 4, v_error_9471_); +lean_ctor_set(v_reuseFailAlloc_9485_, 5, v_instant_9472_); +lean_ctor_set_uint8(v_reuseFailAlloc_9485_, sizeof(void*)*6, v_keepAlive_9473_); +lean_ctor_set_uint8(v_reuseFailAlloc_9485_, sizeof(void*)*6 + 1, v_forcedFlush_9474_); +v___x_9481_ = v_reuseFailAlloc_9485_; +goto v_reusejp_9480_; } -v_reusejp_8572_: +v_reusejp_9480_: { -lean_object* v___x_8575_; -lean_ctor_set_uint8(v___x_8573_, sizeof(void*)*6 + 2, v___y_8571_); -if (v_isShared_8558_ == 0) +lean_object* v___x_9483_; +lean_ctor_set_uint8(v___x_9481_, sizeof(void*)*6 + 2, v___y_9479_); +if (v_isShared_9466_ == 0) { -lean_ctor_set(v___x_8557_, 0, v___x_8573_); -v___x_8575_ = v___x_8557_; -goto v_reusejp_8574_; +lean_ctor_set(v___x_9465_, 0, v___x_9481_); +v___x_9483_ = v___x_9465_; +goto v_reusejp_9482_; } else { -lean_object* v_reuseFailAlloc_8576_; -v_reuseFailAlloc_8576_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_8576_, 0, v___x_8573_); -lean_ctor_set(v_reuseFailAlloc_8576_, 1, v_snd_8555_); -v___x_8575_ = v_reuseFailAlloc_8576_; -goto v_reusejp_8574_; +lean_object* v_reuseFailAlloc_9484_; +v_reuseFailAlloc_9484_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_9484_, 0, v___x_9481_); +lean_ctor_set(v_reuseFailAlloc_9484_, 1, v_snd_9463_); +v___x_9483_ = v_reuseFailAlloc_9484_; +goto v_reusejp_9482_; } -v_reusejp_8574_: +v_reusejp_9482_: { -return v___x_8575_; +return v___x_9483_; } } } -v___jp_8580_: +v___jp_9488_: { -if (lean_obj_tag(v_snd_8555_) == 0) +if (lean_obj_tag(v_snd_9463_) == 0) { -if (v___y_8581_ == 0) +if (v___y_9489_ == 0) { -if (lean_obj_tag(v_state_8578_) == 2) +if (lean_obj_tag(v_state_9486_) == 2) { -uint8_t v___x_8582_; -v___x_8582_ = 1; -v___y_8571_ = v___x_8582_; -goto v___jp_8570_; +uint8_t v___x_9490_; +v___x_9490_ = 1; +v___y_9479_ = v___x_9490_; +goto v___jp_9478_; } else { -v___y_8571_ = v___y_8581_; -goto v___jp_8570_; +v___y_9479_ = v___y_9489_; +goto v___jp_9478_; } } else { -uint8_t v___x_8583_; -v___x_8583_ = 0; -v___y_8571_ = v___x_8583_; -goto v___jp_8570_; +uint8_t v___x_9491_; +v___x_9491_ = 0; +v___y_9479_ = v___x_9491_; +goto v___jp_9478_; } } else { -uint8_t v___x_8584_; -v___x_8584_ = 0; -v___y_8571_ = v___x_8584_; -goto v___jp_8570_; +uint8_t v___x_9492_; +v___x_9492_ = 0; +v___y_9479_ = v___x_9492_; +goto v___jp_9478_; } } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_pullBody___boxed(lean_object* v_dir_8594_, lean_object* v_machine_8595_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Machine_pullBody___boxed(lean_object* v_dir_9502_, lean_object* v_machine_9503_){ _start: { -uint8_t v_dir_boxed_8596_; lean_object* v_res_8597_; -v_dir_boxed_8596_ = lean_unbox(v_dir_8594_); -v_res_8597_ = l_Std_Http_Protocol_H1_Machine_pullBody(v_dir_boxed_8596_, v_machine_8595_); -return v_res_8597_; +uint8_t v_dir_boxed_9504_; lean_object* v_res_9505_; +v_dir_boxed_9504_ = lean_unbox(v_dir_9502_); +v_res_9505_ = l_Std_Http_Protocol_H1_Machine_pullBody(v_dir_boxed_9504_, v_machine_9503_); +return v_res_9505_; } } lean_object* runtime_initialize_Std_Time(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Protocol/H1/Message.c b/stage0/stdlib/Std/Internal/Http/Protocol/H1/Message.c index d2278752eb..2365210913 100644 --- a/stage0/stdlib/Std/Internal/Http/Protocol/H1/Message.c +++ b/stage0/stdlib/Std/Internal/Http/Protocol/H1/Message.c @@ -86,7 +86,7 @@ lean_object* l_Std_Http_Header_Connection_parse(lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); extern lean_object* l_Std_Http_Header_Name_transferEncoding; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_String_Slice_toNat_x3f(lean_object*); +lean_object* l_Std_Http_Header_ContentLength_parse(lean_object*); lean_object* l_Std_Http_Header_TransferEncoding_parse(lean_object*); uint8_t l_Std_Http_Header_TransferEncoding_isChunked(lean_object*); extern lean_object* l_Std_Http_Header_Name_contentLength; @@ -115,6 +115,8 @@ LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Direction_swap(uint8_t); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Direction_swap___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_headers(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_headers___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Message_Head_version(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_version___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(lean_object*, lean_object*); @@ -559,395 +561,501 @@ lean_dec(v_m_77_); return v_res_79_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Message_Head_version(uint8_t v_dir_80_, lean_object* v_m_81_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders(uint8_t v_dir_80_, lean_object* v_m_81_, lean_object* v_headers_82_){ _start: { if (v_dir_80_ == 0) { -uint8_t v_version_82_; -v_version_82_ = lean_ctor_get_uint8(v_m_81_, sizeof(void*)*2 + 1); -return v_version_82_; +uint8_t v_method_83_; uint8_t v_version_84_; lean_object* v_uri_85_; lean_object* v___x_87_; uint8_t v_isShared_88_; uint8_t v_isSharedCheck_92_; +v_method_83_ = lean_ctor_get_uint8(v_m_81_, sizeof(void*)*2); +v_version_84_ = lean_ctor_get_uint8(v_m_81_, sizeof(void*)*2 + 1); +v_uri_85_ = lean_ctor_get(v_m_81_, 0); +v_isSharedCheck_92_ = !lean_is_exclusive(v_m_81_); +if (v_isSharedCheck_92_ == 0) +{ +lean_object* v_unused_93_; +v_unused_93_ = lean_ctor_get(v_m_81_, 1); +lean_dec(v_unused_93_); +v___x_87_ = v_m_81_; +v_isShared_88_ = v_isSharedCheck_92_; +goto v_resetjp_86_; } else { -uint8_t v_version_83_; -v_version_83_ = lean_ctor_get_uint8(v_m_81_, sizeof(void*)*2); -return v_version_83_; +lean_inc(v_uri_85_); +lean_dec(v_m_81_); +v___x_87_ = lean_box(0); +v_isShared_88_ = v_isSharedCheck_92_; +goto v_resetjp_86_; +} +v_resetjp_86_: +{ +lean_object* v___x_90_; +if (v_isShared_88_ == 0) +{ +lean_ctor_set(v___x_87_, 1, v_headers_82_); +v___x_90_ = v___x_87_; +goto v_reusejp_89_; +} +else +{ +lean_object* v_reuseFailAlloc_91_; +v_reuseFailAlloc_91_ = lean_alloc_ctor(0, 2, 2); +lean_ctor_set(v_reuseFailAlloc_91_, 0, v_uri_85_); +lean_ctor_set(v_reuseFailAlloc_91_, 1, v_headers_82_); +lean_ctor_set_uint8(v_reuseFailAlloc_91_, sizeof(void*)*2, v_method_83_); +lean_ctor_set_uint8(v_reuseFailAlloc_91_, sizeof(void*)*2 + 1, v_version_84_); +v___x_90_ = v_reuseFailAlloc_91_; +goto v_reusejp_89_; +} +v_reusejp_89_: +{ +return v___x_90_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_version___boxed(lean_object* v_dir_84_, lean_object* v_m_85_){ +else +{ +lean_object* v_status_94_; uint8_t v_version_95_; lean_object* v___x_97_; uint8_t v_isShared_98_; uint8_t v_isSharedCheck_102_; +v_status_94_ = lean_ctor_get(v_m_81_, 0); +v_version_95_ = lean_ctor_get_uint8(v_m_81_, sizeof(void*)*2); +v_isSharedCheck_102_ = !lean_is_exclusive(v_m_81_); +if (v_isSharedCheck_102_ == 0) +{ +lean_object* v_unused_103_; +v_unused_103_ = lean_ctor_get(v_m_81_, 1); +lean_dec(v_unused_103_); +v___x_97_ = v_m_81_; +v_isShared_98_ = v_isSharedCheck_102_; +goto v_resetjp_96_; +} +else +{ +lean_inc(v_status_94_); +lean_dec(v_m_81_); +v___x_97_ = lean_box(0); +v_isShared_98_ = v_isSharedCheck_102_; +goto v_resetjp_96_; +} +v_resetjp_96_: +{ +lean_object* v___x_100_; +if (v_isShared_98_ == 0) +{ +lean_ctor_set(v___x_97_, 1, v_headers_82_); +v___x_100_ = v___x_97_; +goto v_reusejp_99_; +} +else +{ +lean_object* v_reuseFailAlloc_101_; +v_reuseFailAlloc_101_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v_reuseFailAlloc_101_, 0, v_status_94_); +lean_ctor_set(v_reuseFailAlloc_101_, 1, v_headers_82_); +lean_ctor_set_uint8(v_reuseFailAlloc_101_, sizeof(void*)*2, v_version_95_); +v___x_100_ = v_reuseFailAlloc_101_; +goto v_reusejp_99_; +} +v_reusejp_99_: +{ +return v___x_100_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders___boxed(lean_object* v_dir_104_, lean_object* v_m_105_, lean_object* v_headers_106_){ _start: { -uint8_t v_dir_boxed_86_; uint8_t v_res_87_; lean_object* v_r_88_; -v_dir_boxed_86_ = lean_unbox(v_dir_84_); -v_res_87_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_boxed_86_, v_m_85_); -lean_dec(v_m_85_); -v_r_88_ = lean_box(v_res_87_); -return v_r_88_; +uint8_t v_dir_boxed_107_; lean_object* v_res_108_; +v_dir_boxed_107_ = lean_unbox(v_dir_104_); +v_res_108_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v_dir_boxed_107_, v_m_105_, v_headers_106_); +return v_res_108_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(lean_object* v_a_89_, lean_object* v_x_90_){ +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Message_Head_version(uint8_t v_dir_109_, lean_object* v_m_110_){ _start: { -lean_object* v_key_91_; lean_object* v_value_92_; lean_object* v_tail_93_; uint8_t v___x_94_; -v_key_91_ = lean_ctor_get(v_x_90_, 0); -v_value_92_ = lean_ctor_get(v_x_90_, 1); -v_tail_93_ = lean_ctor_get(v_x_90_, 2); -v___x_94_ = lean_string_dec_eq(v_key_91_, v_a_89_); -if (v___x_94_ == 0) +if (v_dir_109_ == 0) { -v_x_90_ = v_tail_93_; +uint8_t v_version_111_; +v_version_111_ = lean_ctor_get_uint8(v_m_110_, sizeof(void*)*2 + 1); +return v_version_111_; +} +else +{ +uint8_t v_version_112_; +v_version_112_ = lean_ctor_get_uint8(v_m_110_, sizeof(void*)*2); +return v_version_112_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_version___boxed(lean_object* v_dir_113_, lean_object* v_m_114_){ +_start: +{ +uint8_t v_dir_boxed_115_; uint8_t v_res_116_; lean_object* v_r_117_; +v_dir_boxed_115_ = lean_unbox(v_dir_113_); +v_res_116_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_boxed_115_, v_m_114_); +lean_dec(v_m_114_); +v_r_117_ = lean_box(v_res_116_); +return v_r_117_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(lean_object* v_a_118_, lean_object* v_x_119_){ +_start: +{ +lean_object* v_key_120_; lean_object* v_value_121_; lean_object* v_tail_122_; uint8_t v___x_123_; +v_key_120_ = lean_ctor_get(v_x_119_, 0); +v_value_121_ = lean_ctor_get(v_x_119_, 1); +v_tail_122_ = lean_ctor_get(v_x_119_, 2); +v___x_123_ = lean_string_dec_eq(v_key_120_, v_a_118_); +if (v___x_123_ == 0) +{ +v_x_119_ = v_tail_122_; goto _start; } else { -lean_inc(v_value_92_); -return v_value_92_; +lean_inc(v_value_121_); +return v_value_121_; } } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg___boxed(lean_object* v_a_96_, lean_object* v_x_97_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg___boxed(lean_object* v_a_125_, lean_object* v_x_126_){ _start: { -lean_object* v_res_98_; -v_res_98_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_96_, v_x_97_); -lean_dec(v_x_97_); -lean_dec_ref(v_a_96_); -return v_res_98_; +lean_object* v_res_127_; +v_res_127_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_125_, v_x_126_); +lean_dec(v_x_126_); +lean_dec_ref(v_a_125_); +return v_res_127_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(lean_object* v_m_99_, lean_object* v_a_100_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(lean_object* v_m_128_, lean_object* v_a_129_){ _start: { -lean_object* v_buckets_101_; lean_object* v___x_102_; uint64_t v___x_103_; uint64_t v___x_104_; uint64_t v___x_105_; uint64_t v_fold_106_; uint64_t v___x_107_; uint64_t v___x_108_; uint64_t v___x_109_; size_t v___x_110_; size_t v___x_111_; size_t v___x_112_; size_t v___x_113_; size_t v___x_114_; lean_object* v___x_115_; lean_object* v___x_116_; -v_buckets_101_ = lean_ctor_get(v_m_99_, 1); -v___x_102_ = lean_array_get_size(v_buckets_101_); -v___x_103_ = lean_string_hash(v_a_100_); -v___x_104_ = 32ULL; -v___x_105_ = lean_uint64_shift_right(v___x_103_, v___x_104_); -v_fold_106_ = lean_uint64_xor(v___x_103_, v___x_105_); -v___x_107_ = 16ULL; -v___x_108_ = lean_uint64_shift_right(v_fold_106_, v___x_107_); -v___x_109_ = lean_uint64_xor(v_fold_106_, v___x_108_); -v___x_110_ = lean_uint64_to_usize(v___x_109_); -v___x_111_ = lean_usize_of_nat(v___x_102_); -v___x_112_ = ((size_t)1ULL); -v___x_113_ = lean_usize_sub(v___x_111_, v___x_112_); -v___x_114_ = lean_usize_land(v___x_110_, v___x_113_); -v___x_115_ = lean_array_uget_borrowed(v_buckets_101_, v___x_114_); -v___x_116_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_100_, v___x_115_); -return v___x_116_; +lean_object* v_buckets_130_; lean_object* v___x_131_; uint64_t v___x_132_; uint64_t v___x_133_; uint64_t v___x_134_; uint64_t v_fold_135_; uint64_t v___x_136_; uint64_t v___x_137_; uint64_t v___x_138_; size_t v___x_139_; size_t v___x_140_; size_t v___x_141_; size_t v___x_142_; size_t v___x_143_; lean_object* v___x_144_; lean_object* v___x_145_; +v_buckets_130_ = lean_ctor_get(v_m_128_, 1); +v___x_131_ = lean_array_get_size(v_buckets_130_); +v___x_132_ = lean_string_hash(v_a_129_); +v___x_133_ = 32ULL; +v___x_134_ = lean_uint64_shift_right(v___x_132_, v___x_133_); +v_fold_135_ = lean_uint64_xor(v___x_132_, v___x_134_); +v___x_136_ = 16ULL; +v___x_137_ = lean_uint64_shift_right(v_fold_135_, v___x_136_); +v___x_138_ = lean_uint64_xor(v_fold_135_, v___x_137_); +v___x_139_ = lean_uint64_to_usize(v___x_138_); +v___x_140_ = lean_usize_of_nat(v___x_131_); +v___x_141_ = ((size_t)1ULL); +v___x_142_ = lean_usize_sub(v___x_140_, v___x_141_); +v___x_143_ = lean_usize_land(v___x_139_, v___x_142_); +v___x_144_ = lean_array_uget_borrowed(v_buckets_130_, v___x_143_); +v___x_145_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_129_, v___x_144_); +return v___x_145_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg___boxed(lean_object* v_m_117_, lean_object* v_a_118_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg___boxed(lean_object* v_m_146_, lean_object* v_a_147_){ _start: { -lean_object* v_res_119_; -v_res_119_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_m_117_, v_a_118_); -lean_dec_ref(v_a_118_); -lean_dec_ref(v_m_117_); -return v_res_119_; +lean_object* v_res_148_; +v_res_148_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_m_146_, v_a_147_); +lean_dec_ref(v_a_147_); +lean_dec_ref(v_m_146_); +return v_res_148_; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(lean_object* v___x_120_, lean_object* v___x_121_, lean_object* v_i_122_, lean_object* v_j_123_, lean_object* v_bs_124_){ +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(lean_object* v___x_149_, lean_object* v___x_150_, lean_object* v_i_151_, lean_object* v_j_152_, lean_object* v_bs_153_){ _start: { -lean_object* v_zero_125_; uint8_t v_isZero_126_; -v_zero_125_ = lean_unsigned_to_nat(0u); -v_isZero_126_ = lean_nat_dec_eq(v_i_122_, v_zero_125_); -if (v_isZero_126_ == 1) +lean_object* v_zero_154_; uint8_t v_isZero_155_; +v_zero_154_ = lean_unsigned_to_nat(0u); +v_isZero_155_ = lean_nat_dec_eq(v_i_151_, v_zero_154_); +if (v_isZero_155_ == 1) { -lean_dec(v_j_123_); -lean_dec(v_i_122_); -return v_bs_124_; +lean_dec(v_j_152_); +lean_dec(v_i_151_); +return v_bs_153_; } else { -lean_object* v_entries_127_; lean_object* v___x_128_; lean_object* v___x_129_; lean_object* v_snd_130_; lean_object* v_one_131_; lean_object* v_n_132_; lean_object* v___x_133_; lean_object* v___x_134_; -v_entries_127_ = lean_ctor_get(v___x_120_, 0); -v___x_128_ = lean_array_fget_borrowed(v___x_121_, v_j_123_); -v___x_129_ = lean_array_fget_borrowed(v_entries_127_, v___x_128_); -v_snd_130_ = lean_ctor_get(v___x_129_, 1); -v_one_131_ = lean_unsigned_to_nat(1u); -v_n_132_ = lean_nat_sub(v_i_122_, v_one_131_); -lean_dec(v_i_122_); -v___x_133_ = lean_nat_add(v_j_123_, v_one_131_); -lean_dec(v_j_123_); -lean_inc(v_snd_130_); -v___x_134_ = lean_array_push(v_bs_124_, v_snd_130_); -v_i_122_ = v_n_132_; -v_j_123_ = v___x_133_; -v_bs_124_ = v___x_134_; +lean_object* v_entries_156_; lean_object* v___x_157_; lean_object* v___x_158_; lean_object* v_snd_159_; lean_object* v_one_160_; lean_object* v_n_161_; lean_object* v___x_162_; lean_object* v___x_163_; +v_entries_156_ = lean_ctor_get(v___x_149_, 0); +v___x_157_ = lean_array_fget_borrowed(v___x_150_, v_j_152_); +v___x_158_ = lean_array_fget_borrowed(v_entries_156_, v___x_157_); +v_snd_159_ = lean_ctor_get(v___x_158_, 1); +v_one_160_ = lean_unsigned_to_nat(1u); +v_n_161_ = lean_nat_sub(v_i_151_, v_one_160_); +lean_dec(v_i_151_); +v___x_162_ = lean_nat_add(v_j_152_, v_one_160_); +lean_dec(v_j_152_); +lean_inc(v_snd_159_); +v___x_163_ = lean_array_push(v_bs_153_, v_snd_159_); +v_i_151_ = v_n_161_; +v_j_152_ = v___x_162_; +v_bs_153_ = v___x_163_; goto _start; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg___boxed(lean_object* v___x_136_, lean_object* v___x_137_, lean_object* v_i_138_, lean_object* v_j_139_, lean_object* v_bs_140_){ +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg___boxed(lean_object* v___x_165_, lean_object* v___x_166_, lean_object* v_i_167_, lean_object* v_j_168_, lean_object* v_bs_169_){ _start: { -lean_object* v_res_141_; -v_res_141_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_136_, v___x_137_, v_i_138_, v_j_139_, v_bs_140_); -lean_dec_ref(v___x_137_); -lean_dec_ref(v___x_136_); -return v_res_141_; +lean_object* v_res_170_; +v_res_170_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_165_, v___x_166_, v_i_167_, v_j_168_, v_bs_169_); +lean_dec_ref(v___x_166_); +lean_dec_ref(v___x_165_); +return v_res_170_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize(uint8_t v_dir_150_, lean_object* v_message_151_, uint8_t v_allowEOFBody_152_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize(uint8_t v_dir_179_, lean_object* v_message_180_, uint8_t v_allowEOFBody_181_){ _start: { -lean_object* v___x_153_; lean_object* v___y_155_; lean_object* v___x_210_; lean_object* v___f_211_; lean_object* v___f_212_; uint8_t v___x_213_; -v___x_153_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_150_, v_message_151_); -v___x_210_ = l_Std_Http_Header_Name_contentLength; -v___f_211_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); -v___f_212_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); -v___x_213_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_211_, v___f_212_, v___x_210_, v___x_153_); -if (v___x_213_ == 0) +lean_object* v___x_182_; lean_object* v___y_184_; lean_object* v___x_237_; lean_object* v___f_238_; lean_object* v___f_239_; uint8_t v___x_240_; +v___x_182_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_179_, v_message_180_); +v___x_237_ = l_Std_Http_Header_Name_contentLength; +v___f_238_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); +v___f_239_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); +v___x_240_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_238_, v___f_239_, v___x_237_, v___x_182_); +if (v___x_240_ == 0) { -lean_object* v___x_214_; -v___x_214_ = lean_box(0); -v___y_155_ = v___x_214_; -goto v___jp_154_; +lean_object* v___x_241_; +v___x_241_ = lean_box(0); +v___y_184_ = v___x_241_; +goto v___jp_183_; } else { -lean_object* v_indexes_215_; lean_object* v___x_216_; lean_object* v___x_217_; lean_object* v___x_218_; lean_object* v___x_219_; lean_object* v_entries_220_; lean_object* v___x_221_; -v_indexes_215_ = lean_ctor_get(v___x_153_, 1); +lean_object* v_indexes_242_; lean_object* v___x_243_; lean_object* v___x_244_; lean_object* v___x_245_; lean_object* v___x_246_; lean_object* v_entries_247_; lean_object* v___x_248_; +v_indexes_242_ = lean_ctor_get(v___x_182_, 1); +lean_inc_ref(v_indexes_242_); +v___x_243_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_242_, v___x_237_); +lean_dec_ref(v_indexes_242_); +v___x_244_ = lean_array_get_size(v___x_243_); +v___x_245_ = lean_unsigned_to_nat(0u); +v___x_246_ = lean_mk_empty_array_with_capacity(v___x_244_); +v_entries_247_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_182_, v___x_243_, v___x_244_, v___x_245_, v___x_246_); +lean_dec(v___x_243_); +v___x_248_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_248_, 0, v_entries_247_); +v___y_184_ = v___x_248_; +goto v___jp_183_; +} +v___jp_183_: +{ +lean_object* v___x_185_; lean_object* v___f_186_; lean_object* v___f_187_; uint8_t v___x_188_; +v___x_185_ = l_Std_Http_Header_Name_transferEncoding; +v___f_186_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); +v___f_187_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); +v___x_188_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_186_, v___f_187_, v___x_185_, v___x_182_); +if (v___x_188_ == 0) +{ +lean_dec_ref(v___x_182_); +if (lean_obj_tag(v___y_184_) == 0) +{ +if (v_allowEOFBody_181_ == 0) +{ +lean_object* v___x_189_; +v___x_189_ = lean_box(0); +return v___x_189_; +} +else +{ +lean_object* v___x_190_; +v___x_190_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__3)); +return v___x_190_; +} +} +else +{ +lean_object* v_val_191_; lean_object* v___x_193_; uint8_t v_isShared_194_; uint8_t v_isSharedCheck_214_; +v_val_191_ = lean_ctor_get(v___y_184_, 0); +v_isSharedCheck_214_ = !lean_is_exclusive(v___y_184_); +if (v_isSharedCheck_214_ == 0) +{ +v___x_193_ = v___y_184_; +v_isShared_194_ = v_isSharedCheck_214_; +goto v_resetjp_192_; +} +else +{ +lean_inc(v_val_191_); +lean_dec(v___y_184_); +v___x_193_ = lean_box(0); +v_isShared_194_ = v_isSharedCheck_214_; +goto v_resetjp_192_; +} +v_resetjp_192_: +{ +lean_object* v___x_195_; lean_object* v___x_196_; uint8_t v___x_197_; +v___x_195_ = lean_array_get_size(v_val_191_); +v___x_196_ = lean_unsigned_to_nat(1u); +v___x_197_ = lean_nat_dec_eq(v___x_195_, v___x_196_); +if (v___x_197_ == 0) +{ +lean_object* v___x_198_; +lean_del_object(v___x_193_); +lean_dec(v_val_191_); +v___x_198_ = lean_box(0); +return v___x_198_; +} +else +{ +lean_object* v___x_199_; lean_object* v___x_200_; lean_object* v___x_201_; +v___x_199_ = lean_unsigned_to_nat(0u); +v___x_200_ = lean_array_fget(v_val_191_, v___x_199_); +lean_dec(v_val_191_); +v___x_201_ = l_Std_Http_Header_ContentLength_parse(v___x_200_); +if (lean_obj_tag(v___x_201_) == 0) +{ +lean_object* v___x_202_; +lean_del_object(v___x_193_); +v___x_202_ = lean_box(0); +return v___x_202_; +} +else +{ +lean_object* v_val_203_; lean_object* v___x_205_; uint8_t v_isShared_206_; uint8_t v_isSharedCheck_213_; +v_val_203_ = lean_ctor_get(v___x_201_, 0); +v_isSharedCheck_213_ = !lean_is_exclusive(v___x_201_); +if (v_isSharedCheck_213_ == 0) +{ +v___x_205_ = v___x_201_; +v_isShared_206_ = v_isSharedCheck_213_; +goto v_resetjp_204_; +} +else +{ +lean_inc(v_val_203_); +lean_dec(v___x_201_); +v___x_205_ = lean_box(0); +v_isShared_206_ = v_isSharedCheck_213_; +goto v_resetjp_204_; +} +v_resetjp_204_: +{ +lean_object* v___x_208_; +if (v_isShared_194_ == 0) +{ +lean_ctor_set(v___x_193_, 0, v_val_203_); +v___x_208_ = v___x_193_; +goto v_reusejp_207_; +} +else +{ +lean_object* v_reuseFailAlloc_212_; +v_reuseFailAlloc_212_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_212_, 0, v_val_203_); +v___x_208_ = v_reuseFailAlloc_212_; +goto v_reusejp_207_; +} +v_reusejp_207_: +{ +lean_object* v___x_210_; +if (v_isShared_206_ == 0) +{ +lean_ctor_set(v___x_205_, 0, v___x_208_); +v___x_210_ = v___x_205_; +goto v_reusejp_209_; +} +else +{ +lean_object* v_reuseFailAlloc_211_; +v_reuseFailAlloc_211_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_211_, 0, v___x_208_); +v___x_210_ = v_reuseFailAlloc_211_; +goto v_reusejp_209_; +} +v_reusejp_209_: +{ +return v___x_210_; +} +} +} +} +} +} +} +} +else +{ +lean_object* v_indexes_215_; lean_object* v___x_216_; lean_object* v___x_217_; lean_object* v___x_218_; lean_object* v___x_219_; lean_object* v_entries_220_; lean_object* v___x_221_; lean_object* v___x_222_; uint8_t v___x_223_; +v_indexes_215_ = lean_ctor_get(v___x_182_, 1); lean_inc_ref(v_indexes_215_); -v___x_216_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_215_, v___x_210_); +v___x_216_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_215_, v___x_185_); lean_dec_ref(v_indexes_215_); v___x_217_ = lean_array_get_size(v___x_216_); v___x_218_ = lean_unsigned_to_nat(0u); v___x_219_ = lean_mk_empty_array_with_capacity(v___x_217_); -v_entries_220_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_153_, v___x_216_, v___x_217_, v___x_218_, v___x_219_); +v_entries_220_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_182_, v___x_216_, v___x_217_, v___x_218_, v___x_219_); lean_dec(v___x_216_); -v___x_221_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_221_, 0, v_entries_220_); -v___y_155_ = v___x_221_; -goto v___jp_154_; -} -v___jp_154_: +lean_dec_ref(v___x_182_); +v___x_221_ = lean_array_get_size(v_entries_220_); +v___x_222_ = lean_unsigned_to_nat(1u); +v___x_223_ = lean_nat_dec_eq(v___x_221_, v___x_222_); +if (v___x_223_ == 0) { -lean_object* v___x_156_; lean_object* v___f_157_; lean_object* v___f_158_; uint8_t v___x_159_; -v___x_156_ = l_Std_Http_Header_Name_transferEncoding; -v___f_157_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); -v___f_158_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); -v___x_159_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_157_, v___f_158_, v___x_156_, v___x_153_); -if (v___x_159_ == 0) -{ -lean_dec_ref(v___x_153_); -if (lean_obj_tag(v___y_155_) == 0) -{ -if (v_allowEOFBody_152_ == 0) -{ -lean_object* v___x_160_; -v___x_160_ = lean_box(0); -return v___x_160_; +lean_object* v___x_224_; +lean_dec_ref(v_entries_220_); +lean_dec(v___y_184_); +v___x_224_ = lean_box(0); +return v___x_224_; } else { -lean_object* v___x_161_; -v___x_161_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__3)); -return v___x_161_; +lean_object* v___x_225_; lean_object* v_te_226_; +v___x_225_ = lean_array_fget(v_entries_220_, v___x_218_); +lean_dec_ref(v_entries_220_); +v_te_226_ = l_Std_Http_Header_TransferEncoding_parse(v___x_225_); +if (lean_obj_tag(v_te_226_) == 0) +{ +lean_object* v___x_227_; +lean_dec(v___y_184_); +v___x_227_ = lean_box(0); +return v___x_227_; +} +else +{ +lean_object* v_val_228_; uint8_t v___x_229_; +v_val_228_ = lean_ctor_get(v_te_226_, 0); +lean_inc(v_val_228_); +lean_dec_ref(v_te_226_); +v___x_229_ = l_Std_Http_Header_TransferEncoding_isChunked(v_val_228_); +lean_dec(v_val_228_); +if (v___x_229_ == 1) +{ +if (lean_obj_tag(v___y_184_) == 0) +{ +uint8_t v___x_230_; uint8_t v___x_231_; uint8_t v___x_232_; +v___x_230_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_179_, v_message_180_); +v___x_231_ = 0; +v___x_232_ = l_Std_Http_instBEqVersion_beq(v___x_230_, v___x_231_); +if (v___x_232_ == 0) +{ +lean_object* v___x_233_; +v___x_233_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__4)); +return v___x_233_; +} +else +{ +lean_object* v___x_234_; +v___x_234_ = lean_box(0); +return v___x_234_; } } else { -lean_object* v_val_162_; lean_object* v___x_164_; uint8_t v_isShared_165_; uint8_t v_isSharedCheck_187_; -v_val_162_ = lean_ctor_get(v___y_155_, 0); -v_isSharedCheck_187_ = !lean_is_exclusive(v___y_155_); -if (v_isSharedCheck_187_ == 0) -{ -v___x_164_ = v___y_155_; -v_isShared_165_ = v_isSharedCheck_187_; -goto v_resetjp_163_; -} -else -{ -lean_inc(v_val_162_); -lean_dec(v___y_155_); -v___x_164_ = lean_box(0); -v_isShared_165_ = v_isSharedCheck_187_; -goto v_resetjp_163_; -} -v_resetjp_163_: -{ -lean_object* v___x_166_; lean_object* v___x_167_; uint8_t v___x_168_; -v___x_166_ = lean_array_get_size(v_val_162_); -v___x_167_ = lean_unsigned_to_nat(1u); -v___x_168_ = lean_nat_dec_eq(v___x_166_, v___x_167_); -if (v___x_168_ == 0) -{ -lean_object* v___x_169_; -lean_del_object(v___x_164_); -lean_dec(v_val_162_); -v___x_169_ = lean_box(0); -return v___x_169_; -} -else -{ -lean_object* v___x_170_; lean_object* v___x_171_; lean_object* v___x_172_; lean_object* v___x_173_; lean_object* v___x_174_; -v___x_170_ = lean_unsigned_to_nat(0u); -v___x_171_ = lean_array_fget(v_val_162_, v___x_170_); -lean_dec(v_val_162_); -v___x_172_ = lean_string_utf8_byte_size(v___x_171_); -v___x_173_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_173_, 0, v___x_171_); -lean_ctor_set(v___x_173_, 1, v___x_170_); -lean_ctor_set(v___x_173_, 2, v___x_172_); -v___x_174_ = l_String_Slice_toNat_x3f(v___x_173_); -lean_dec_ref(v___x_173_); -if (lean_obj_tag(v___x_174_) == 0) -{ -lean_object* v___x_175_; -lean_del_object(v___x_164_); -v___x_175_ = lean_box(0); -return v___x_175_; -} -else -{ -lean_object* v_val_176_; lean_object* v___x_178_; uint8_t v_isShared_179_; uint8_t v_isSharedCheck_186_; -v_val_176_ = lean_ctor_get(v___x_174_, 0); -v_isSharedCheck_186_ = !lean_is_exclusive(v___x_174_); -if (v_isSharedCheck_186_ == 0) -{ -v___x_178_ = v___x_174_; -v_isShared_179_ = v_isSharedCheck_186_; -goto v_resetjp_177_; -} -else -{ -lean_inc(v_val_176_); -lean_dec(v___x_174_); -v___x_178_ = lean_box(0); -v_isShared_179_ = v_isSharedCheck_186_; -goto v_resetjp_177_; -} -v_resetjp_177_: -{ -lean_object* v___x_181_; -if (v_isShared_165_ == 0) -{ -lean_ctor_set(v___x_164_, 0, v_val_176_); -v___x_181_ = v___x_164_; -goto v_reusejp_180_; -} -else -{ -lean_object* v_reuseFailAlloc_185_; -v_reuseFailAlloc_185_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_185_, 0, v_val_176_); -v___x_181_ = v_reuseFailAlloc_185_; -goto v_reusejp_180_; -} -v_reusejp_180_: -{ -lean_object* v___x_183_; -if (v_isShared_179_ == 0) -{ -lean_ctor_set(v___x_178_, 0, v___x_181_); -v___x_183_ = v___x_178_; -goto v_reusejp_182_; -} -else -{ -lean_object* v_reuseFailAlloc_184_; -v_reuseFailAlloc_184_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_184_, 0, v___x_181_); -v___x_183_ = v_reuseFailAlloc_184_; -goto v_reusejp_182_; -} -v_reusejp_182_: -{ -return v___x_183_; -} -} -} -} -} -} +lean_object* v___x_235_; +lean_dec(v___y_184_); +v___x_235_ = lean_box(0); +return v___x_235_; } } else { -lean_object* v_indexes_188_; lean_object* v___x_189_; lean_object* v___x_190_; lean_object* v___x_191_; lean_object* v___x_192_; lean_object* v_entries_193_; lean_object* v___x_194_; lean_object* v___x_195_; uint8_t v___x_196_; -v_indexes_188_ = lean_ctor_get(v___x_153_, 1); -lean_inc_ref(v_indexes_188_); -v___x_189_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_188_, v___x_156_); -lean_dec_ref(v_indexes_188_); -v___x_190_ = lean_array_get_size(v___x_189_); -v___x_191_ = lean_unsigned_to_nat(0u); -v___x_192_ = lean_mk_empty_array_with_capacity(v___x_190_); -v_entries_193_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_153_, v___x_189_, v___x_190_, v___x_191_, v___x_192_); -lean_dec(v___x_189_); -lean_dec_ref(v___x_153_); -v___x_194_ = lean_array_get_size(v_entries_193_); -v___x_195_ = lean_unsigned_to_nat(1u); -v___x_196_ = lean_nat_dec_eq(v___x_194_, v___x_195_); -if (v___x_196_ == 0) -{ -lean_object* v___x_197_; -lean_dec_ref(v_entries_193_); -lean_dec(v___y_155_); -v___x_197_ = lean_box(0); -return v___x_197_; -} -else -{ -lean_object* v___x_198_; lean_object* v_te_199_; -v___x_198_ = lean_array_fget(v_entries_193_, v___x_191_); -lean_dec_ref(v_entries_193_); -v_te_199_ = l_Std_Http_Header_TransferEncoding_parse(v___x_198_); -if (lean_obj_tag(v_te_199_) == 0) -{ -lean_object* v___x_200_; -lean_dec(v___y_155_); -v___x_200_ = lean_box(0); -return v___x_200_; -} -else -{ -lean_object* v_val_201_; uint8_t v___x_202_; -v_val_201_ = lean_ctor_get(v_te_199_, 0); -lean_inc(v_val_201_); -lean_dec_ref(v_te_199_); -v___x_202_ = l_Std_Http_Header_TransferEncoding_isChunked(v_val_201_); -lean_dec(v_val_201_); -if (v___x_202_ == 1) -{ -if (lean_obj_tag(v___y_155_) == 0) -{ -uint8_t v___x_203_; uint8_t v___x_204_; uint8_t v___x_205_; -v___x_203_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_150_, v_message_151_); -v___x_204_ = 0; -v___x_205_ = l_Std_Http_instBEqVersion_beq(v___x_203_, v___x_204_); -if (v___x_205_ == 0) -{ -lean_object* v___x_206_; -v___x_206_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__4)); -return v___x_206_; -} -else -{ -lean_object* v___x_207_; -v___x_207_ = lean_box(0); -return v___x_207_; -} -} -else -{ -lean_object* v___x_208_; -lean_dec(v___y_155_); -v___x_208_ = lean_box(0); -return v___x_208_; -} -} -else -{ -lean_object* v___x_209_; -lean_dec(v___y_155_); -v___x_209_ = lean_box(0); -return v___x_209_; +lean_object* v___x_236_; +lean_dec(v___y_184_); +v___x_236_ = lean_box(0); +return v___x_236_; } } } @@ -955,235 +1063,235 @@ return v___x_209_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize___boxed(lean_object* v_dir_222_, lean_object* v_message_223_, lean_object* v_allowEOFBody_224_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize___boxed(lean_object* v_dir_249_, lean_object* v_message_250_, lean_object* v_allowEOFBody_251_){ _start: { -uint8_t v_dir_boxed_225_; uint8_t v_allowEOFBody_boxed_226_; lean_object* v_res_227_; -v_dir_boxed_225_ = lean_unbox(v_dir_222_); -v_allowEOFBody_boxed_226_ = lean_unbox(v_allowEOFBody_224_); -v_res_227_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v_dir_boxed_225_, v_message_223_, v_allowEOFBody_boxed_226_); -lean_dec(v_message_223_); -return v_res_227_; +uint8_t v_dir_boxed_252_; uint8_t v_allowEOFBody_boxed_253_; lean_object* v_res_254_; +v_dir_boxed_252_ = lean_unbox(v_dir_249_); +v_allowEOFBody_boxed_253_ = lean_unbox(v_allowEOFBody_251_); +v_res_254_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v_dir_boxed_252_, v_message_250_, v_allowEOFBody_boxed_253_); +lean_dec(v_message_250_); +return v_res_254_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0(lean_object* v_00_u03b2_228_, lean_object* v_m_229_, lean_object* v_a_230_, lean_object* v_hma_231_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0(lean_object* v_00_u03b2_255_, lean_object* v_m_256_, lean_object* v_a_257_, lean_object* v_hma_258_){ _start: { -lean_object* v___x_232_; -v___x_232_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_m_229_, v_a_230_); -return v___x_232_; +lean_object* v___x_259_; +v___x_259_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_m_256_, v_a_257_); +return v___x_259_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___boxed(lean_object* v_00_u03b2_233_, lean_object* v_m_234_, lean_object* v_a_235_, lean_object* v_hma_236_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___boxed(lean_object* v_00_u03b2_260_, lean_object* v_m_261_, lean_object* v_a_262_, lean_object* v_hma_263_){ _start: { -lean_object* v_res_237_; -v_res_237_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0(v_00_u03b2_233_, v_m_234_, v_a_235_, v_hma_236_); -lean_dec_ref(v_a_235_); -lean_dec_ref(v_m_234_); -return v_res_237_; +lean_object* v_res_264_; +v_res_264_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0(v_00_u03b2_260_, v_m_261_, v_a_262_, v_hma_263_); +lean_dec_ref(v_a_262_); +lean_dec_ref(v_m_261_); +return v_res_264_; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1(lean_object* v___x_238_, lean_object* v___x_239_, lean_object* v_as_240_, lean_object* v_i_241_, lean_object* v_j_242_, lean_object* v_inv_243_, lean_object* v_bs_244_){ +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1(lean_object* v___x_265_, lean_object* v___x_266_, lean_object* v_as_267_, lean_object* v_i_268_, lean_object* v_j_269_, lean_object* v_inv_270_, lean_object* v_bs_271_){ _start: { -lean_object* v___x_245_; -v___x_245_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_238_, v___x_239_, v_i_241_, v_j_242_, v_bs_244_); -return v___x_245_; +lean_object* v___x_272_; +v___x_272_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_265_, v___x_266_, v_i_268_, v_j_269_, v_bs_271_); +return v___x_272_; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___boxed(lean_object* v___x_246_, lean_object* v___x_247_, lean_object* v_as_248_, lean_object* v_i_249_, lean_object* v_j_250_, lean_object* v_inv_251_, lean_object* v_bs_252_){ +LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___boxed(lean_object* v___x_273_, lean_object* v___x_274_, lean_object* v_as_275_, lean_object* v_i_276_, lean_object* v_j_277_, lean_object* v_inv_278_, lean_object* v_bs_279_){ _start: { -lean_object* v_res_253_; -v_res_253_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1(v___x_246_, v___x_247_, v_as_248_, v_i_249_, v_j_250_, v_inv_251_, v_bs_252_); -lean_dec_ref(v_as_248_); -lean_dec_ref(v___x_247_); -lean_dec_ref(v___x_246_); -return v_res_253_; +lean_object* v_res_280_; +v_res_280_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1(v___x_273_, v___x_274_, v_as_275_, v_i_276_, v_j_277_, v_inv_278_, v_bs_279_); +lean_dec_ref(v_as_275_); +lean_dec_ref(v___x_274_); +lean_dec_ref(v___x_273_); +return v_res_280_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0(lean_object* v_00_u03b2_254_, lean_object* v_a_255_, lean_object* v_x_256_, lean_object* v_x_257_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0(lean_object* v_00_u03b2_281_, lean_object* v_a_282_, lean_object* v_x_283_, lean_object* v_x_284_){ _start: { -lean_object* v___x_258_; -v___x_258_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_255_, v_x_256_); -return v___x_258_; +lean_object* v___x_285_; +v___x_285_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___redArg(v_a_282_, v_x_283_); +return v___x_285_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___boxed(lean_object* v_00_u03b2_259_, lean_object* v_a_260_, lean_object* v_x_261_, lean_object* v_x_262_){ +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0___boxed(lean_object* v_00_u03b2_286_, lean_object* v_a_287_, lean_object* v_x_288_, lean_object* v_x_289_){ _start: { -lean_object* v_res_263_; -v_res_263_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0(v_00_u03b2_259_, v_a_260_, v_x_261_, v_x_262_); -lean_dec(v_x_261_); -lean_dec_ref(v_a_260_); -return v_res_263_; +lean_object* v_res_290_; +v_res_290_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0_spec__0(v_00_u03b2_286_, v_a_287_, v_x_288_, v_x_289_); +lean_dec(v_x_288_); +lean_dec_ref(v_a_287_); +return v_res_290_; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(lean_object* v_as_265_, size_t v_i_266_, size_t v_stop_267_){ +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(lean_object* v_as_292_, size_t v_i_293_, size_t v_stop_294_){ _start: { -uint8_t v___x_268_; -v___x_268_ = lean_usize_dec_eq(v_i_266_, v_stop_267_); -if (v___x_268_ == 0) +uint8_t v___x_295_; +v___x_295_ = lean_usize_dec_eq(v_i_293_, v_stop_294_); +if (v___x_295_ == 0) { -lean_object* v___x_269_; lean_object* v___x_270_; uint8_t v___x_271_; -v___x_269_ = lean_array_uget_borrowed(v_as_265_, v_i_266_); -v___x_270_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1___closed__0)); -v___x_271_ = lean_string_dec_eq(v___x_269_, v___x_270_); -if (v___x_271_ == 0) +lean_object* v___x_296_; lean_object* v___x_297_; uint8_t v___x_298_; +v___x_296_ = lean_array_uget_borrowed(v_as_292_, v_i_293_); +v___x_297_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1___closed__0)); +v___x_298_ = lean_string_dec_eq(v___x_296_, v___x_297_); +if (v___x_298_ == 0) { -size_t v___x_272_; size_t v___x_273_; -v___x_272_ = ((size_t)1ULL); -v___x_273_ = lean_usize_add(v_i_266_, v___x_272_); -v_i_266_ = v___x_273_; +size_t v___x_299_; size_t v___x_300_; +v___x_299_ = ((size_t)1ULL); +v___x_300_ = lean_usize_add(v_i_293_, v___x_299_); +v_i_293_ = v___x_300_; goto _start; } else { -return v___x_271_; +return v___x_298_; } } else { -uint8_t v___x_275_; -v___x_275_ = 0; -return v___x_275_; +uint8_t v___x_302_; +v___x_302_ = 0; +return v___x_302_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1___boxed(lean_object* v_as_276_, lean_object* v_i_277_, lean_object* v_stop_278_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1___boxed(lean_object* v_as_303_, lean_object* v_i_304_, lean_object* v_stop_305_){ _start: { -size_t v_i_boxed_279_; size_t v_stop_boxed_280_; uint8_t v_res_281_; lean_object* v_r_282_; -v_i_boxed_279_ = lean_unbox_usize(v_i_277_); -lean_dec(v_i_277_); -v_stop_boxed_280_ = lean_unbox_usize(v_stop_278_); -lean_dec(v_stop_278_); -v_res_281_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(v_as_276_, v_i_boxed_279_, v_stop_boxed_280_); -lean_dec_ref(v_as_276_); -v_r_282_ = lean_box(v_res_281_); -return v_r_282_; +size_t v_i_boxed_306_; size_t v_stop_boxed_307_; uint8_t v_res_308_; lean_object* v_r_309_; +v_i_boxed_306_ = lean_unbox_usize(v_i_304_); +lean_dec(v_i_304_); +v_stop_boxed_307_ = lean_unbox_usize(v_stop_305_); +lean_dec(v_stop_305_); +v_res_308_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(v_as_303_, v_i_boxed_306_, v_stop_boxed_307_); +lean_dec_ref(v_as_303_); +v_r_309_ = lean_box(v_res_308_); +return v_r_309_; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(lean_object* v_as_284_, size_t v_i_285_, size_t v_stop_286_){ +LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(lean_object* v_as_311_, size_t v_i_312_, size_t v_stop_313_){ _start: { -uint8_t v___x_287_; -v___x_287_ = lean_usize_dec_eq(v_i_285_, v_stop_286_); -if (v___x_287_ == 0) +uint8_t v___x_314_; +v___x_314_ = lean_usize_dec_eq(v_i_312_, v_stop_313_); +if (v___x_314_ == 0) { -lean_object* v___x_288_; lean_object* v___x_289_; uint8_t v___x_290_; -v___x_288_ = lean_array_uget_borrowed(v_as_284_, v_i_285_); -v___x_289_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0___closed__0)); -v___x_290_ = lean_string_dec_eq(v___x_288_, v___x_289_); -if (v___x_290_ == 0) +lean_object* v___x_315_; lean_object* v___x_316_; uint8_t v___x_317_; +v___x_315_ = lean_array_uget_borrowed(v_as_311_, v_i_312_); +v___x_316_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0___closed__0)); +v___x_317_ = lean_string_dec_eq(v___x_315_, v___x_316_); +if (v___x_317_ == 0) { -size_t v___x_291_; size_t v___x_292_; -v___x_291_ = ((size_t)1ULL); -v___x_292_ = lean_usize_add(v_i_285_, v___x_291_); -v_i_285_ = v___x_292_; +size_t v___x_318_; size_t v___x_319_; +v___x_318_ = ((size_t)1ULL); +v___x_319_ = lean_usize_add(v_i_312_, v___x_318_); +v_i_312_ = v___x_319_; goto _start; } else { -return v___x_290_; +return v___x_317_; } } else { -uint8_t v___x_294_; -v___x_294_ = 0; -return v___x_294_; +uint8_t v___x_321_; +v___x_321_ = 0; +return v___x_321_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0___boxed(lean_object* v_as_295_, lean_object* v_i_296_, lean_object* v_stop_297_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0___boxed(lean_object* v_as_322_, lean_object* v_i_323_, lean_object* v_stop_324_){ _start: { -size_t v_i_boxed_298_; size_t v_stop_boxed_299_; uint8_t v_res_300_; lean_object* v_r_301_; -v_i_boxed_298_ = lean_unbox_usize(v_i_296_); -lean_dec(v_i_296_); -v_stop_boxed_299_ = lean_unbox_usize(v_stop_297_); -lean_dec(v_stop_297_); -v_res_300_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(v_as_295_, v_i_boxed_298_, v_stop_boxed_299_); -lean_dec_ref(v_as_295_); -v_r_301_ = lean_box(v_res_300_); -return v_r_301_; +size_t v_i_boxed_325_; size_t v_stop_boxed_326_; uint8_t v_res_327_; lean_object* v_r_328_; +v_i_boxed_325_ = lean_unbox_usize(v_i_323_); +lean_dec(v_i_323_); +v_stop_boxed_326_ = lean_unbox_usize(v_stop_324_); +lean_dec(v_stop_324_); +v_res_327_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(v_as_322_, v_i_boxed_325_, v_stop_boxed_326_); +lean_dec_ref(v_as_322_); +v_r_328_ = lean_box(v_res_327_); +return v_r_328_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(lean_object* v_as_302_, size_t v_i_303_, size_t v_stop_304_, lean_object* v_b_305_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(lean_object* v_as_329_, size_t v_i_330_, size_t v_stop_331_, lean_object* v_b_332_){ _start: { -lean_object* v___y_307_; uint8_t v___x_311_; -v___x_311_ = lean_usize_dec_eq(v_i_303_, v_stop_304_); -if (v___x_311_ == 0) +lean_object* v___y_334_; uint8_t v___x_338_; +v___x_338_ = lean_usize_dec_eq(v_i_330_, v_stop_331_); +if (v___x_338_ == 0) { -if (lean_obj_tag(v_b_305_) == 0) +if (lean_obj_tag(v_b_332_) == 0) { -v___y_307_ = v_b_305_; -goto v___jp_306_; +v___y_334_ = v_b_332_; +goto v___jp_333_; } else { -lean_object* v_val_312_; lean_object* v___x_313_; lean_object* v___x_314_; -v_val_312_ = lean_ctor_get(v_b_305_, 0); -lean_inc(v_val_312_); -lean_dec_ref(v_b_305_); -v___x_313_ = lean_array_uget_borrowed(v_as_302_, v_i_303_); -lean_inc(v___x_313_); -v___x_314_ = l_Std_Http_Header_Connection_parse(v___x_313_); -if (lean_obj_tag(v___x_314_) == 0) +lean_object* v_val_339_; lean_object* v___x_340_; lean_object* v___x_341_; +v_val_339_ = lean_ctor_get(v_b_332_, 0); +lean_inc(v_val_339_); +lean_dec_ref(v_b_332_); +v___x_340_ = lean_array_uget_borrowed(v_as_329_, v_i_330_); +lean_inc(v___x_340_); +v___x_341_ = l_Std_Http_Header_Connection_parse(v___x_340_); +if (lean_obj_tag(v___x_341_) == 0) { -lean_object* v___x_315_; -lean_dec(v_val_312_); -v___x_315_ = lean_box(0); -v___y_307_ = v___x_315_; -goto v___jp_306_; +lean_object* v___x_342_; +lean_dec(v_val_339_); +v___x_342_ = lean_box(0); +v___y_334_ = v___x_342_; +goto v___jp_333_; } else { -lean_object* v_val_316_; lean_object* v___x_318_; uint8_t v_isShared_319_; uint8_t v_isSharedCheck_324_; -v_val_316_ = lean_ctor_get(v___x_314_, 0); -v_isSharedCheck_324_ = !lean_is_exclusive(v___x_314_); -if (v_isSharedCheck_324_ == 0) +lean_object* v_val_343_; lean_object* v___x_345_; uint8_t v_isShared_346_; uint8_t v_isSharedCheck_351_; +v_val_343_ = lean_ctor_get(v___x_341_, 0); +v_isSharedCheck_351_ = !lean_is_exclusive(v___x_341_); +if (v_isSharedCheck_351_ == 0) { -v___x_318_ = v___x_314_; -v_isShared_319_ = v_isSharedCheck_324_; -goto v_resetjp_317_; +v___x_345_ = v___x_341_; +v_isShared_346_ = v_isSharedCheck_351_; +goto v_resetjp_344_; } else { -lean_inc(v_val_316_); -lean_dec(v___x_314_); -v___x_318_ = lean_box(0); -v_isShared_319_ = v_isSharedCheck_324_; -goto v_resetjp_317_; +lean_inc(v_val_343_); +lean_dec(v___x_341_); +v___x_345_ = lean_box(0); +v_isShared_346_ = v_isSharedCheck_351_; +goto v_resetjp_344_; } -v_resetjp_317_: +v_resetjp_344_: { -lean_object* v___x_320_; lean_object* v___x_322_; -v___x_320_ = l_Array_append___redArg(v_val_312_, v_val_316_); -lean_dec(v_val_316_); -if (v_isShared_319_ == 0) +lean_object* v___x_347_; lean_object* v___x_349_; +v___x_347_ = l_Array_append___redArg(v_val_339_, v_val_343_); +lean_dec(v_val_343_); +if (v_isShared_346_ == 0) { -lean_ctor_set(v___x_318_, 0, v___x_320_); -v___x_322_ = v___x_318_; -goto v_reusejp_321_; +lean_ctor_set(v___x_345_, 0, v___x_347_); +v___x_349_ = v___x_345_; +goto v_reusejp_348_; } else { -lean_object* v_reuseFailAlloc_323_; -v_reuseFailAlloc_323_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_323_, 0, v___x_320_); -v___x_322_ = v_reuseFailAlloc_323_; -goto v_reusejp_321_; +lean_object* v_reuseFailAlloc_350_; +v_reuseFailAlloc_350_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_350_, 0, v___x_347_); +v___x_349_ = v_reuseFailAlloc_350_; +goto v_reusejp_348_; } -v_reusejp_321_: +v_reusejp_348_: { -v___y_307_ = v___x_322_; -goto v___jp_306_; +v___y_334_ = v___x_349_; +goto v___jp_333_; } } } @@ -1191,2108 +1299,2108 @@ goto v___jp_306_; } else { -return v_b_305_; +return v_b_332_; } -v___jp_306_: +v___jp_333_: { -size_t v___x_308_; size_t v___x_309_; -v___x_308_ = ((size_t)1ULL); -v___x_309_ = lean_usize_add(v_i_303_, v___x_308_); -v_i_303_ = v___x_309_; -v_b_305_ = v___y_307_; +size_t v___x_335_; size_t v___x_336_; +v___x_335_ = ((size_t)1ULL); +v___x_336_ = lean_usize_add(v_i_330_, v___x_335_); +v_i_330_ = v___x_336_; +v_b_332_ = v___y_334_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2___boxed(lean_object* v_as_325_, lean_object* v_i_326_, lean_object* v_stop_327_, lean_object* v_b_328_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2___boxed(lean_object* v_as_352_, lean_object* v_i_353_, lean_object* v_stop_354_, lean_object* v_b_355_){ _start: { -size_t v_i_boxed_329_; size_t v_stop_boxed_330_; lean_object* v_res_331_; -v_i_boxed_329_ = lean_unbox_usize(v_i_326_); -lean_dec(v_i_326_); -v_stop_boxed_330_ = lean_unbox_usize(v_stop_327_); -lean_dec(v_stop_327_); -v_res_331_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_as_325_, v_i_boxed_329_, v_stop_boxed_330_, v_b_328_); -lean_dec_ref(v_as_325_); -return v_res_331_; +size_t v_i_boxed_356_; size_t v_stop_boxed_357_; lean_object* v_res_358_; +v_i_boxed_356_ = lean_unbox_usize(v_i_353_); +lean_dec(v_i_353_); +v_stop_boxed_357_ = lean_unbox_usize(v_stop_354_); +lean_dec(v_stop_354_); +v_res_358_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_as_352_, v_i_boxed_356_, v_stop_boxed_357_, v_b_355_); +lean_dec_ref(v_as_352_); +return v_res_358_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(uint8_t v_dir_336_, lean_object* v_message_337_){ +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(uint8_t v_dir_363_, lean_object* v_message_364_){ _start: { -lean_object* v_val_339_; lean_object* v___y_357_; lean_object* v___x_360_; lean_object* v___x_361_; lean_object* v___f_362_; lean_object* v___f_363_; uint8_t v___x_364_; -v___x_360_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_336_, v_message_337_); -v___x_361_ = l_Std_Http_Header_Name_connection; -v___f_362_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); -v___f_363_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); -v___x_364_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_362_, v___f_363_, v___x_361_, v___x_360_); -if (v___x_364_ == 0) -{ -lean_object* v___x_365_; -lean_dec_ref(v___x_360_); -v___x_365_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__0)); -v_val_339_ = v___x_365_; -goto v___jp_338_; -} -else -{ -lean_object* v_indexes_366_; lean_object* v___x_367_; lean_object* v___x_368_; lean_object* v___x_369_; lean_object* v___x_370_; lean_object* v_entries_371_; lean_object* v___x_372_; lean_object* v___x_373_; uint8_t v___x_374_; -v_indexes_366_ = lean_ctor_get(v___x_360_, 1); -lean_inc_ref(v_indexes_366_); -v___x_367_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_366_, v___x_361_); -lean_dec_ref(v_indexes_366_); -v___x_368_ = lean_array_get_size(v___x_367_); -v___x_369_ = lean_unsigned_to_nat(0u); -v___x_370_ = lean_mk_empty_array_with_capacity(v___x_368_); -v_entries_371_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_360_, v___x_367_, v___x_368_, v___x_369_, v___x_370_); -lean_dec(v___x_367_); -lean_dec_ref(v___x_360_); -v___x_372_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__0)); -v___x_373_ = lean_array_get_size(v_entries_371_); -v___x_374_ = lean_nat_dec_lt(v___x_369_, v___x_373_); -if (v___x_374_ == 0) -{ -lean_dec_ref(v_entries_371_); -v_val_339_ = v___x_372_; -goto v___jp_338_; -} -else -{ -lean_object* v___x_375_; uint8_t v___x_376_; -v___x_375_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__1)); -v___x_376_ = lean_nat_dec_le(v___x_373_, v___x_373_); -if (v___x_376_ == 0) -{ -if (v___x_374_ == 0) -{ -lean_dec_ref(v_entries_371_); -v_val_339_ = v___x_372_; -goto v___jp_338_; -} -else -{ -size_t v___x_377_; size_t v___x_378_; lean_object* v___x_379_; -v___x_377_ = ((size_t)0ULL); -v___x_378_ = lean_usize_of_nat(v___x_373_); -v___x_379_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_entries_371_, v___x_377_, v___x_378_, v___x_375_); -lean_dec_ref(v_entries_371_); -v___y_357_ = v___x_379_; -goto v___jp_356_; -} -} -else -{ -size_t v___x_380_; size_t v___x_381_; lean_object* v___x_382_; -v___x_380_ = ((size_t)0ULL); -v___x_381_ = lean_usize_of_nat(v___x_373_); -v___x_382_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_entries_371_, v___x_380_, v___x_381_, v___x_375_); -lean_dec_ref(v_entries_371_); -v___y_357_ = v___x_382_; -goto v___jp_356_; -} -} -} -v___jp_338_: -{ -uint8_t v___x_340_; uint8_t v___x_341_; uint8_t v___x_342_; -v___x_340_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_336_, v_message_337_); -v___x_341_ = 1; -v___x_342_ = l_Std_Http_instBEqVersion_beq(v___x_340_, v___x_341_); -if (v___x_342_ == 0) -{ -lean_object* v___x_343_; lean_object* v___x_344_; uint8_t v___x_345_; -v___x_343_ = lean_unsigned_to_nat(0u); -v___x_344_ = lean_array_get_size(v_val_339_); -v___x_345_ = lean_nat_dec_lt(v___x_343_, v___x_344_); -if (v___x_345_ == 0) -{ -lean_dec_ref(v_val_339_); -return v___x_342_; -} -else -{ -if (v___x_345_ == 0) -{ -lean_dec_ref(v_val_339_); -return v___x_342_; -} -else -{ -size_t v___x_346_; size_t v___x_347_; uint8_t v___x_348_; -v___x_346_ = ((size_t)0ULL); -v___x_347_ = lean_usize_of_nat(v___x_344_); -v___x_348_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(v_val_339_, v___x_346_, v___x_347_); -lean_dec_ref(v_val_339_); -return v___x_348_; -} -} -} -else -{ -lean_object* v___x_349_; lean_object* v___x_350_; uint8_t v___x_351_; -v___x_349_ = lean_unsigned_to_nat(0u); -v___x_350_ = lean_array_get_size(v_val_339_); -v___x_351_ = lean_nat_dec_lt(v___x_349_, v___x_350_); -if (v___x_351_ == 0) -{ -lean_dec_ref(v_val_339_); -return v___x_342_; -} -else -{ -if (v___x_351_ == 0) -{ -lean_dec_ref(v_val_339_); -return v___x_342_; -} -else -{ -size_t v___x_352_; size_t v___x_353_; uint8_t v___x_354_; -v___x_352_ = ((size_t)0ULL); -v___x_353_ = lean_usize_of_nat(v___x_350_); -v___x_354_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(v_val_339_, v___x_352_, v___x_353_); -lean_dec_ref(v_val_339_); -if (v___x_354_ == 0) -{ -return v___x_342_; -} -else -{ -uint8_t v___x_355_; -v___x_355_ = 0; -return v___x_355_; -} -} -} -} -} -v___jp_356_: -{ -if (lean_obj_tag(v___y_357_) == 0) -{ -uint8_t v___x_358_; -v___x_358_ = 0; -return v___x_358_; -} -else -{ -lean_object* v_val_359_; -v_val_359_ = lean_ctor_get(v___y_357_, 0); -lean_inc(v_val_359_); -lean_dec_ref(v___y_357_); -v_val_339_ = v_val_359_; -goto v___jp_338_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___boxed(lean_object* v_dir_383_, lean_object* v_message_384_){ -_start: -{ -uint8_t v_dir_boxed_385_; uint8_t v_res_386_; lean_object* v_r_387_; -v_dir_boxed_385_ = lean_unbox(v_dir_383_); -v_res_386_ = l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(v_dir_boxed_385_, v_message_384_); -lean_dec(v_message_384_); -v_r_387_ = lean_box(v_res_386_); -return v_r_387_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1___redArg(lean_object* v_x_388_){ -_start: -{ -lean_object* v___x_389_; -v___x_389_ = l_Std_Http_Request_instReprHead_repr___redArg(v_x_388_); -return v___x_389_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1(lean_object* v_x_390_, lean_object* v_prec_391_){ -_start: +lean_object* v_val_366_; lean_object* v___y_384_; lean_object* v___x_387_; lean_object* v___x_388_; lean_object* v___f_389_; lean_object* v___f_390_; uint8_t v___x_391_; +v___x_387_ = l_Std_Http_Protocol_H1_Message_Head_headers(v_dir_363_, v_message_364_); +v___x_388_ = l_Std_Http_Header_Name_connection; +v___f_389_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__0)); +v___f_390_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_getSize___closed__1)); +v___x_391_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_389_, v___f_390_, v___x_388_, v___x_387_); +if (v___x_391_ == 0) { lean_object* v___x_392_; -v___x_392_ = l_Std_Http_Request_instReprHead_repr___redArg(v_x_390_); -return v___x_392_; +lean_dec_ref(v___x_387_); +v___x_392_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__0)); +v_val_366_ = v___x_392_; +goto v___jp_365_; +} +else +{ +lean_object* v_indexes_393_; lean_object* v___x_394_; lean_object* v___x_395_; lean_object* v___x_396_; lean_object* v___x_397_; lean_object* v_entries_398_; lean_object* v___x_399_; lean_object* v___x_400_; uint8_t v___x_401_; +v_indexes_393_ = lean_ctor_get(v___x_387_, 1); +lean_inc_ref(v_indexes_393_); +v___x_394_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__0___redArg(v_indexes_393_, v___x_388_); +lean_dec_ref(v_indexes_393_); +v___x_395_ = lean_array_get_size(v___x_394_); +v___x_396_ = lean_unsigned_to_nat(0u); +v___x_397_ = lean_mk_empty_array_with_capacity(v___x_395_); +v_entries_398_ = l_Array_mapFinIdxM_map___at___00Std_Http_Protocol_H1_Message_Head_getSize_spec__1___redArg(v___x_387_, v___x_394_, v___x_395_, v___x_396_, v___x_397_); +lean_dec(v___x_394_); +lean_dec_ref(v___x_387_); +v___x_399_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__0)); +v___x_400_ = lean_array_get_size(v_entries_398_); +v___x_401_ = lean_nat_dec_lt(v___x_396_, v___x_400_); +if (v___x_401_ == 0) +{ +lean_dec_ref(v_entries_398_); +v_val_366_ = v___x_399_; +goto v___jp_365_; +} +else +{ +lean_object* v___x_402_; uint8_t v___x_403_; +v___x_402_ = ((lean_object*)(l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___closed__1)); +v___x_403_ = lean_nat_dec_le(v___x_400_, v___x_400_); +if (v___x_403_ == 0) +{ +if (v___x_401_ == 0) +{ +lean_dec_ref(v_entries_398_); +v_val_366_ = v___x_399_; +goto v___jp_365_; +} +else +{ +size_t v___x_404_; size_t v___x_405_; lean_object* v___x_406_; +v___x_404_ = ((size_t)0ULL); +v___x_405_ = lean_usize_of_nat(v___x_400_); +v___x_406_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_entries_398_, v___x_404_, v___x_405_, v___x_402_); +lean_dec_ref(v_entries_398_); +v___y_384_ = v___x_406_; +goto v___jp_383_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1___boxed(lean_object* v_x_393_, lean_object* v_prec_394_){ +else +{ +size_t v___x_407_; size_t v___x_408_; lean_object* v___x_409_; +v___x_407_ = ((size_t)0ULL); +v___x_408_ = lean_usize_of_nat(v___x_400_); +v___x_409_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__2(v_entries_398_, v___x_407_, v___x_408_, v___x_402_); +lean_dec_ref(v_entries_398_); +v___y_384_ = v___x_409_; +goto v___jp_383_; +} +} +} +v___jp_365_: +{ +uint8_t v___x_367_; uint8_t v___x_368_; uint8_t v___x_369_; +v___x_367_ = l_Std_Http_Protocol_H1_Message_Head_version(v_dir_363_, v_message_364_); +v___x_368_ = 1; +v___x_369_ = l_Std_Http_instBEqVersion_beq(v___x_367_, v___x_368_); +if (v___x_369_ == 0) +{ +lean_object* v___x_370_; lean_object* v___x_371_; uint8_t v___x_372_; +v___x_370_ = lean_unsigned_to_nat(0u); +v___x_371_ = lean_array_get_size(v_val_366_); +v___x_372_ = lean_nat_dec_lt(v___x_370_, v___x_371_); +if (v___x_372_ == 0) +{ +lean_dec_ref(v_val_366_); +return v___x_369_; +} +else +{ +if (v___x_372_ == 0) +{ +lean_dec_ref(v_val_366_); +return v___x_369_; +} +else +{ +size_t v___x_373_; size_t v___x_374_; uint8_t v___x_375_; +v___x_373_ = ((size_t)0ULL); +v___x_374_ = lean_usize_of_nat(v___x_371_); +v___x_375_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__0(v_val_366_, v___x_373_, v___x_374_); +lean_dec_ref(v_val_366_); +return v___x_375_; +} +} +} +else +{ +lean_object* v___x_376_; lean_object* v___x_377_; uint8_t v___x_378_; +v___x_376_ = lean_unsigned_to_nat(0u); +v___x_377_ = lean_array_get_size(v_val_366_); +v___x_378_ = lean_nat_dec_lt(v___x_376_, v___x_377_); +if (v___x_378_ == 0) +{ +lean_dec_ref(v_val_366_); +return v___x_369_; +} +else +{ +if (v___x_378_ == 0) +{ +lean_dec_ref(v_val_366_); +return v___x_369_; +} +else +{ +size_t v___x_379_; size_t v___x_380_; uint8_t v___x_381_; +v___x_379_ = ((size_t)0ULL); +v___x_380_ = lean_usize_of_nat(v___x_377_); +v___x_381_ = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Std_Http_Protocol_H1_Message_Head_shouldKeepAlive_spec__1(v_val_366_, v___x_379_, v___x_380_); +lean_dec_ref(v_val_366_); +if (v___x_381_ == 0) +{ +return v___x_369_; +} +else +{ +uint8_t v___x_382_; +v___x_382_ = 0; +return v___x_382_; +} +} +} +} +} +v___jp_383_: +{ +if (lean_obj_tag(v___y_384_) == 0) +{ +uint8_t v___x_385_; +v___x_385_ = 0; +return v___x_385_; +} +else +{ +lean_object* v_val_386_; +v_val_386_ = lean_ctor_get(v___y_384_, 0); +lean_inc(v_val_386_); +lean_dec_ref(v___y_384_); +v_val_366_ = v_val_386_; +goto v___jp_365_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive___boxed(lean_object* v_dir_410_, lean_object* v_message_411_){ _start: { -lean_object* v_res_395_; -v_res_395_ = l_Std_Http_Protocol_H1_instReprHead___aux__1(v_x_393_, v_prec_394_); -lean_dec(v_prec_394_); -return v_res_395_; +uint8_t v_dir_boxed_412_; uint8_t v_res_413_; lean_object* v_r_414_; +v_dir_boxed_412_ = lean_unbox(v_dir_410_); +v_res_413_ = l_Std_Http_Protocol_H1_Message_Head_shouldKeepAlive(v_dir_boxed_412_, v_message_411_); +lean_dec(v_message_411_); +v_r_414_ = lean_box(v_res_413_); +return v_r_414_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3___redArg(lean_object* v_x_396_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1___redArg(lean_object* v_x_415_){ _start: { -lean_object* v___x_397_; -v___x_397_ = l_Std_Http_Response_instReprHead_repr___redArg(v_x_396_); -return v___x_397_; +lean_object* v___x_416_; +v___x_416_ = l_Std_Http_Request_instReprHead_repr___redArg(v_x_415_); +return v___x_416_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3(lean_object* v_x_398_, lean_object* v_prec_399_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1(lean_object* v_x_417_, lean_object* v_prec_418_){ _start: { -lean_object* v___x_400_; -v___x_400_ = l_Std_Http_Response_instReprHead_repr___redArg(v_x_398_); -return v___x_400_; +lean_object* v___x_419_; +v___x_419_ = l_Std_Http_Request_instReprHead_repr___redArg(v_x_417_); +return v___x_419_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3___boxed(lean_object* v_x_401_, lean_object* v_prec_402_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__1___boxed(lean_object* v_x_420_, lean_object* v_prec_421_){ _start: { -lean_object* v_res_403_; -v_res_403_ = l_Std_Http_Protocol_H1_instReprHead___aux__3(v_x_401_, v_prec_402_); -lean_dec(v_prec_402_); -return v_res_403_; +lean_object* v_res_422_; +v_res_422_ = l_Std_Http_Protocol_H1_instReprHead___aux__1(v_x_420_, v_prec_421_); +lean_dec(v_prec_421_); +return v_res_422_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead(uint8_t v_dir_406_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3___redArg(lean_object* v_x_423_){ _start: { -if (v_dir_406_ == 0) -{ -lean_object* v___x_407_; -v___x_407_ = ((lean_object*)(l_Std_Http_Protocol_H1_instReprHead___closed__0)); -return v___x_407_; -} -else -{ -lean_object* v___x_408_; -v___x_408_ = ((lean_object*)(l_Std_Http_Protocol_H1_instReprHead___closed__1)); -return v___x_408_; +lean_object* v___x_424_; +v___x_424_ = l_Std_Http_Response_instReprHead_repr___redArg(v_x_423_); +return v___x_424_; } } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___boxed(lean_object* v_dir_409_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3(lean_object* v_x_425_, lean_object* v_prec_426_){ _start: { -uint8_t v_dir_boxed_410_; lean_object* v_res_411_; -v_dir_boxed_410_ = lean_unbox(v_dir_409_); -v_res_411_ = l_Std_Http_Protocol_H1_instReprHead(v_dir_boxed_410_); -return v_res_411_; +lean_object* v___x_427_; +v___x_427_ = l_Std_Http_Response_instReprHead_repr___redArg(v_x_425_); +return v___x_427_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__0(lean_object* v_x_412_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___aux__3___boxed(lean_object* v_x_428_, lean_object* v_prec_429_){ _start: { -lean_object* v___x_413_; -v___x_413_ = lean_string_from_utf8_unchecked(v_x_412_); -return v___x_413_; +lean_object* v_res_430_; +v_res_430_ = l_Std_Http_Protocol_H1_instReprHead___aux__3(v_x_428_, v_prec_429_); +lean_dec(v_prec_429_); +return v_res_430_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__1(lean_object* v_x_414_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead(uint8_t v_dir_433_){ _start: { -lean_object* v_fst_415_; lean_object* v_snd_416_; lean_object* v___x_417_; -v_fst_415_ = lean_ctor_get(v_x_414_, 0); -lean_inc(v_fst_415_); -v_snd_416_ = lean_ctor_get(v_x_414_, 1); -lean_inc(v_snd_416_); -lean_dec_ref(v_x_414_); -v___x_417_ = l_Std_Http_URI_Query_formatQueryParam(v_fst_415_, v_snd_416_); -return v___x_417_; +if (v_dir_433_ == 0) +{ +lean_object* v___x_434_; +v___x_434_ = ((lean_object*)(l_Std_Http_Protocol_H1_instReprHead___closed__0)); +return v___x_434_; +} +else +{ +lean_object* v___x_435_; +v___x_435_ = ((lean_object*)(l_Std_Http_Protocol_H1_instReprHead___closed__1)); +return v___x_435_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2(lean_object* v___x_418_, lean_object* v___x_419_, lean_object* v___x_420_, lean_object* v_name_421_, lean_object* v___x_422_, uint32_t v___x_423_, lean_object* v___x_424_, lean_object* v_it_425_, lean_object* v_acc_426_, lean_object* v_hP_427_, lean_object* v_recur_428_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instReprHead___boxed(lean_object* v_dir_436_){ _start: { -lean_object* v_it_430_; lean_object* v_out_431_; lean_object* v_it_447_; lean_object* v_startInclusive_448_; lean_object* v_endExclusive_449_; -if (lean_obj_tag(v_it_425_) == 0) -{ -lean_object* v_currPos_461_; lean_object* v_searcher_462_; lean_object* v___x_464_; uint8_t v_isShared_465_; uint8_t v_isSharedCheck_484_; -v_currPos_461_ = lean_ctor_get(v_it_425_, 0); -v_searcher_462_ = lean_ctor_get(v_it_425_, 1); -v_isSharedCheck_484_ = !lean_is_exclusive(v_it_425_); -if (v_isSharedCheck_484_ == 0) -{ -v___x_464_ = v_it_425_; -v_isShared_465_ = v_isSharedCheck_484_; -goto v_resetjp_463_; -} -else -{ -lean_inc(v_searcher_462_); -lean_inc(v_currPos_461_); -lean_dec(v_it_425_); -v___x_464_ = lean_box(0); -v_isShared_465_ = v_isSharedCheck_484_; -goto v_resetjp_463_; -} -v_resetjp_463_: -{ -uint8_t v___x_466_; -v___x_466_ = lean_nat_dec_eq(v_searcher_462_, v___x_422_); -if (v___x_466_ == 0) -{ -uint32_t v___x_467_; uint8_t v___x_468_; -lean_dec(v___x_422_); -v___x_467_ = lean_string_utf8_get_fast(v_name_421_, v_searcher_462_); -v___x_468_ = lean_uint32_dec_eq(v___x_467_, v___x_423_); -if (v___x_468_ == 0) -{ -lean_object* v___x_469_; lean_object* v___x_471_; -v___x_469_ = lean_string_utf8_next_fast(v_name_421_, v_searcher_462_); -lean_dec(v_searcher_462_); -if (v_isShared_465_ == 0) -{ -lean_ctor_set(v___x_464_, 1, v___x_469_); -v___x_471_ = v___x_464_; -goto v_reusejp_470_; -} -else -{ -lean_object* v_reuseFailAlloc_473_; -v_reuseFailAlloc_473_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_473_, 0, v_currPos_461_); -lean_ctor_set(v_reuseFailAlloc_473_, 1, v___x_469_); -v___x_471_ = v_reuseFailAlloc_473_; -goto v_reusejp_470_; -} -v_reusejp_470_: -{ -lean_object* v___x_472_; -v___x_472_ = lean_apply_4(v_recur_428_, v___x_471_, v_acc_426_, lean_box(0), lean_box(0)); -return v___x_472_; +uint8_t v_dir_boxed_437_; lean_object* v_res_438_; +v_dir_boxed_437_ = lean_unbox(v_dir_436_); +v_res_438_ = l_Std_Http_Protocol_H1_instReprHead(v_dir_boxed_437_); +return v_res_438_; } } -else -{ -lean_object* v___x_474_; lean_object* v___x_475_; lean_object* v___x_476_; lean_object* v_slice_477_; lean_object* v_nextIt_479_; -v___x_474_ = lean_string_utf8_next_fast(v_name_421_, v_searcher_462_); -v___x_475_ = lean_nat_sub(v___x_474_, v_searcher_462_); -v___x_476_ = lean_nat_add(v_searcher_462_, v___x_475_); -lean_dec(v___x_475_); -v_slice_477_ = l_String_Slice_subslice_x21(v___x_424_, v_currPos_461_, v_searcher_462_); -lean_inc(v___x_476_); -if (v_isShared_465_ == 0) -{ -lean_ctor_set(v___x_464_, 1, v___x_476_); -lean_ctor_set(v___x_464_, 0, v___x_476_); -v_nextIt_479_ = v___x_464_; -goto v_reusejp_478_; -} -else -{ -lean_object* v_reuseFailAlloc_482_; -v_reuseFailAlloc_482_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_482_, 0, v___x_476_); -lean_ctor_set(v_reuseFailAlloc_482_, 1, v___x_476_); -v_nextIt_479_ = v_reuseFailAlloc_482_; -goto v_reusejp_478_; -} -v_reusejp_478_: -{ -lean_object* v_startInclusive_480_; lean_object* v_endExclusive_481_; -v_startInclusive_480_ = lean_ctor_get(v_slice_477_, 0); -lean_inc(v_startInclusive_480_); -v_endExclusive_481_ = lean_ctor_get(v_slice_477_, 1); -lean_inc(v_endExclusive_481_); -lean_dec_ref(v_slice_477_); -v_it_447_ = v_nextIt_479_; -v_startInclusive_448_ = v_startInclusive_480_; -v_endExclusive_449_ = v_endExclusive_481_; -goto v___jp_446_; -} -} -} -else -{ -lean_object* v___x_483_; -lean_del_object(v___x_464_); -lean_dec(v_searcher_462_); -v___x_483_ = lean_box(1); -v_it_447_ = v___x_483_; -v_startInclusive_448_ = v_currPos_461_; -v_endExclusive_449_ = v___x_422_; -goto v___jp_446_; -} -} -} -else -{ -lean_dec_ref(v_recur_428_); -lean_dec(v___x_422_); -return v_acc_426_; -} -v___jp_429_: -{ -if (lean_obj_tag(v_acc_426_) == 0) -{ -lean_object* v___x_432_; lean_object* v___x_433_; -v___x_432_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_432_, 0, v_out_431_); -v___x_433_ = lean_apply_4(v_recur_428_, v_it_430_, v___x_432_, lean_box(0), lean_box(0)); -return v___x_433_; -} -else -{ -lean_object* v_val_434_; lean_object* v___x_436_; uint8_t v_isShared_437_; uint8_t v_isSharedCheck_445_; -v_val_434_ = lean_ctor_get(v_acc_426_, 0); -v_isSharedCheck_445_ = !lean_is_exclusive(v_acc_426_); -if (v_isSharedCheck_445_ == 0) -{ -v___x_436_ = v_acc_426_; -v_isShared_437_ = v_isSharedCheck_445_; -goto v_resetjp_435_; -} -else -{ -lean_inc(v_val_434_); -lean_dec(v_acc_426_); -v___x_436_ = lean_box(0); -v_isShared_437_ = v_isSharedCheck_445_; -goto v_resetjp_435_; -} -v_resetjp_435_: -{ -lean_object* v___x_438_; lean_object* v___x_439_; lean_object* v___x_440_; lean_object* v___x_442_; -v___x_438_ = lean_string_utf8_extract(v___x_418_, v___x_419_, v___x_420_); -v___x_439_ = lean_string_append(v_val_434_, v___x_438_); -lean_dec_ref(v___x_438_); -v___x_440_ = lean_string_append(v___x_439_, v_out_431_); -lean_dec_ref(v_out_431_); -if (v_isShared_437_ == 0) -{ -lean_ctor_set(v___x_436_, 0, v___x_440_); -v___x_442_ = v___x_436_; -goto v_reusejp_441_; -} -else -{ -lean_object* v_reuseFailAlloc_444_; -v_reuseFailAlloc_444_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_444_, 0, v___x_440_); -v___x_442_ = v_reuseFailAlloc_444_; -goto v_reusejp_441_; -} -v_reusejp_441_: -{ -lean_object* v___x_443_; -v___x_443_ = lean_apply_4(v_recur_428_, v_it_430_, v___x_442_, lean_box(0), lean_box(0)); -return v___x_443_; -} -} -} -} -v___jp_446_: -{ -lean_object* v___x_450_; uint32_t v___x_451_; uint32_t v___x_452_; uint8_t v___x_453_; -v___x_450_ = lean_string_utf8_extract(v_name_421_, v_startInclusive_448_, v_endExclusive_449_); -lean_dec(v_endExclusive_449_); -lean_dec(v_startInclusive_448_); -v___x_451_ = lean_string_utf8_get(v___x_450_, v___x_419_); -v___x_452_ = 97; -v___x_453_ = lean_uint32_dec_le(v___x_452_, v___x_451_); -if (v___x_453_ == 0) -{ -lean_object* v___x_454_; -v___x_454_ = lean_string_utf8_set(v___x_450_, v___x_419_, v___x_451_); -v_it_430_ = v_it_447_; -v_out_431_ = v___x_454_; -goto v___jp_429_; -} -else -{ -uint32_t v___x_455_; uint8_t v___x_456_; -v___x_455_ = 122; -v___x_456_ = lean_uint32_dec_le(v___x_451_, v___x_455_); -if (v___x_456_ == 0) -{ -lean_object* v___x_457_; -v___x_457_ = lean_string_utf8_set(v___x_450_, v___x_419_, v___x_451_); -v_it_430_ = v_it_447_; -v_out_431_ = v___x_457_; -goto v___jp_429_; -} -else -{ -uint32_t v___x_458_; uint32_t v___x_459_; lean_object* v___x_460_; -v___x_458_ = 4294967264; -v___x_459_ = lean_uint32_add(v___x_451_, v___x_458_); -v___x_460_ = lean_string_utf8_set(v___x_450_, v___x_419_, v___x_459_); -v_it_430_ = v_it_447_; -v_out_431_ = v___x_460_; -goto v___jp_429_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2___boxed(lean_object* v___x_485_, lean_object* v___x_486_, lean_object* v___x_487_, lean_object* v_name_488_, lean_object* v___x_489_, lean_object* v___x_490_, lean_object* v___x_491_, lean_object* v_it_492_, lean_object* v_acc_493_, lean_object* v_hP_494_, lean_object* v_recur_495_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__0(lean_object* v_x_439_){ _start: { -uint32_t v___x_2817__boxed_496_; lean_object* v_res_497_; -v___x_2817__boxed_496_ = lean_unbox_uint32(v___x_490_); -lean_dec(v___x_490_); -v_res_497_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2(v___x_485_, v___x_486_, v___x_487_, v_name_488_, v___x_489_, v___x_2817__boxed_496_, v___x_491_, v_it_492_, v_acc_493_, v_hP_494_, v_recur_495_); -lean_dec_ref(v___x_491_); -lean_dec_ref(v_name_488_); -lean_dec(v___x_487_); -lean_dec(v___x_486_); -lean_dec_ref(v___x_485_); -return v_res_497_; +lean_object* v___x_440_; +v___x_440_ = lean_string_from_utf8_unchecked(v_x_439_); +return v___x_440_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__1(lean_object* v_x_441_){ +_start: +{ +lean_object* v_fst_442_; lean_object* v_snd_443_; lean_object* v___x_444_; +v_fst_442_ = lean_ctor_get(v_x_441_, 0); +lean_inc(v_fst_442_); +v_snd_443_ = lean_ctor_get(v_x_441_, 1); +lean_inc(v_snd_443_); +lean_dec_ref(v_x_441_); +v___x_444_ = l_Std_Http_URI_Query_formatQueryParam(v_fst_442_, v_snd_443_); +return v___x_444_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2(lean_object* v___x_445_, lean_object* v___x_446_, lean_object* v___x_447_, lean_object* v_name_448_, lean_object* v___x_449_, uint32_t v___x_450_, lean_object* v___x_451_, lean_object* v_it_452_, lean_object* v_acc_453_, lean_object* v_hP_454_, lean_object* v_recur_455_){ +_start: +{ +lean_object* v_it_457_; lean_object* v_out_458_; lean_object* v_it_474_; lean_object* v_startInclusive_475_; lean_object* v_endExclusive_476_; +if (lean_obj_tag(v_it_452_) == 0) +{ +lean_object* v_currPos_488_; lean_object* v_searcher_489_; lean_object* v___x_491_; uint8_t v_isShared_492_; uint8_t v_isSharedCheck_511_; +v_currPos_488_ = lean_ctor_get(v_it_452_, 0); +v_searcher_489_ = lean_ctor_get(v_it_452_, 1); +v_isSharedCheck_511_ = !lean_is_exclusive(v_it_452_); +if (v_isSharedCheck_511_ == 0) +{ +v___x_491_ = v_it_452_; +v_isShared_492_ = v_isSharedCheck_511_; +goto v_resetjp_490_; +} +else +{ +lean_inc(v_searcher_489_); +lean_inc(v_currPos_488_); +lean_dec(v_it_452_); +v___x_491_ = lean_box(0); +v_isShared_492_ = v_isSharedCheck_511_; +goto v_resetjp_490_; +} +v_resetjp_490_: +{ +uint8_t v___x_493_; +v___x_493_ = lean_nat_dec_eq(v_searcher_489_, v___x_449_); +if (v___x_493_ == 0) +{ +uint32_t v___x_494_; uint8_t v___x_495_; +lean_dec(v___x_449_); +v___x_494_ = lean_string_utf8_get_fast(v_name_448_, v_searcher_489_); +v___x_495_ = lean_uint32_dec_eq(v___x_494_, v___x_450_); +if (v___x_495_ == 0) +{ +lean_object* v___x_496_; lean_object* v___x_498_; +v___x_496_ = lean_string_utf8_next_fast(v_name_448_, v_searcher_489_); +lean_dec(v_searcher_489_); +if (v_isShared_492_ == 0) +{ +lean_ctor_set(v___x_491_, 1, v___x_496_); +v___x_498_ = v___x_491_; +goto v_reusejp_497_; +} +else +{ +lean_object* v_reuseFailAlloc_500_; +v_reuseFailAlloc_500_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_500_, 0, v_currPos_488_); +lean_ctor_set(v_reuseFailAlloc_500_, 1, v___x_496_); +v___x_498_ = v_reuseFailAlloc_500_; +goto v_reusejp_497_; +} +v_reusejp_497_: +{ +lean_object* v___x_499_; +v___x_499_ = lean_apply_4(v_recur_455_, v___x_498_, v_acc_453_, lean_box(0), lean_box(0)); +return v___x_499_; +} +} +else +{ +lean_object* v___x_501_; lean_object* v___x_502_; lean_object* v___x_503_; lean_object* v_slice_504_; lean_object* v_nextIt_506_; +v___x_501_ = lean_string_utf8_next_fast(v_name_448_, v_searcher_489_); +v___x_502_ = lean_nat_sub(v___x_501_, v_searcher_489_); +v___x_503_ = lean_nat_add(v_searcher_489_, v___x_502_); +lean_dec(v___x_502_); +v_slice_504_ = l_String_Slice_subslice_x21(v___x_451_, v_currPos_488_, v_searcher_489_); +lean_inc(v___x_503_); +if (v_isShared_492_ == 0) +{ +lean_ctor_set(v___x_491_, 1, v___x_503_); +lean_ctor_set(v___x_491_, 0, v___x_503_); +v_nextIt_506_ = v___x_491_; +goto v_reusejp_505_; +} +else +{ +lean_object* v_reuseFailAlloc_509_; +v_reuseFailAlloc_509_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_509_, 0, v___x_503_); +lean_ctor_set(v_reuseFailAlloc_509_, 1, v___x_503_); +v_nextIt_506_ = v_reuseFailAlloc_509_; +goto v_reusejp_505_; +} +v_reusejp_505_: +{ +lean_object* v_startInclusive_507_; lean_object* v_endExclusive_508_; +v_startInclusive_507_ = lean_ctor_get(v_slice_504_, 0); +lean_inc(v_startInclusive_507_); +v_endExclusive_508_ = lean_ctor_get(v_slice_504_, 1); +lean_inc(v_endExclusive_508_); +lean_dec_ref(v_slice_504_); +v_it_474_ = v_nextIt_506_; +v_startInclusive_475_ = v_startInclusive_507_; +v_endExclusive_476_ = v_endExclusive_508_; +goto v___jp_473_; +} +} +} +else +{ +lean_object* v___x_510_; +lean_del_object(v___x_491_); +lean_dec(v_searcher_489_); +v___x_510_ = lean_box(1); +v_it_474_ = v___x_510_; +v_startInclusive_475_ = v_currPos_488_; +v_endExclusive_476_ = v___x_449_; +goto v___jp_473_; +} +} +} +else +{ +lean_dec_ref(v_recur_455_); +lean_dec(v___x_449_); +return v_acc_453_; +} +v___jp_456_: +{ +if (lean_obj_tag(v_acc_453_) == 0) +{ +lean_object* v___x_459_; lean_object* v___x_460_; +v___x_459_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_459_, 0, v_out_458_); +v___x_460_ = lean_apply_4(v_recur_455_, v_it_457_, v___x_459_, lean_box(0), lean_box(0)); +return v___x_460_; +} +else +{ +lean_object* v_val_461_; lean_object* v___x_463_; uint8_t v_isShared_464_; uint8_t v_isSharedCheck_472_; +v_val_461_ = lean_ctor_get(v_acc_453_, 0); +v_isSharedCheck_472_ = !lean_is_exclusive(v_acc_453_); +if (v_isSharedCheck_472_ == 0) +{ +v___x_463_ = v_acc_453_; +v_isShared_464_ = v_isSharedCheck_472_; +goto v_resetjp_462_; +} +else +{ +lean_inc(v_val_461_); +lean_dec(v_acc_453_); +v___x_463_ = lean_box(0); +v_isShared_464_ = v_isSharedCheck_472_; +goto v_resetjp_462_; +} +v_resetjp_462_: +{ +lean_object* v___x_465_; lean_object* v___x_466_; lean_object* v___x_467_; lean_object* v___x_469_; +v___x_465_ = lean_string_utf8_extract(v___x_445_, v___x_446_, v___x_447_); +v___x_466_ = lean_string_append(v_val_461_, v___x_465_); +lean_dec_ref(v___x_465_); +v___x_467_ = lean_string_append(v___x_466_, v_out_458_); +lean_dec_ref(v_out_458_); +if (v_isShared_464_ == 0) +{ +lean_ctor_set(v___x_463_, 0, v___x_467_); +v___x_469_ = v___x_463_; +goto v_reusejp_468_; +} +else +{ +lean_object* v_reuseFailAlloc_471_; +v_reuseFailAlloc_471_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_471_, 0, v___x_467_); +v___x_469_ = v_reuseFailAlloc_471_; +goto v_reusejp_468_; +} +v_reusejp_468_: +{ +lean_object* v___x_470_; +v___x_470_ = lean_apply_4(v_recur_455_, v_it_457_, v___x_469_, lean_box(0), lean_box(0)); +return v___x_470_; +} +} +} +} +v___jp_473_: +{ +lean_object* v___x_477_; uint32_t v___x_478_; uint32_t v___x_479_; uint8_t v___x_480_; +v___x_477_ = lean_string_utf8_extract(v_name_448_, v_startInclusive_475_, v_endExclusive_476_); +lean_dec(v_endExclusive_476_); +lean_dec(v_startInclusive_475_); +v___x_478_ = lean_string_utf8_get(v___x_477_, v___x_446_); +v___x_479_ = 97; +v___x_480_ = lean_uint32_dec_le(v___x_479_, v___x_478_); +if (v___x_480_ == 0) +{ +lean_object* v___x_481_; +v___x_481_ = lean_string_utf8_set(v___x_477_, v___x_446_, v___x_478_); +v_it_457_ = v_it_474_; +v_out_458_ = v___x_481_; +goto v___jp_456_; +} +else +{ +uint32_t v___x_482_; uint8_t v___x_483_; +v___x_482_ = 122; +v___x_483_ = lean_uint32_dec_le(v___x_478_, v___x_482_); +if (v___x_483_ == 0) +{ +lean_object* v___x_484_; +v___x_484_ = lean_string_utf8_set(v___x_477_, v___x_446_, v___x_478_); +v_it_457_ = v_it_474_; +v_out_458_ = v___x_484_; +goto v___jp_456_; +} +else +{ +uint32_t v___x_485_; uint32_t v___x_486_; lean_object* v___x_487_; +v___x_485_ = 4294967264; +v___x_486_ = lean_uint32_add(v___x_478_, v___x_485_); +v___x_487_ = lean_string_utf8_set(v___x_477_, v___x_446_, v___x_486_); +v_it_457_ = v_it_474_; +v_out_458_ = v___x_487_; +goto v___jp_456_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2___boxed(lean_object* v___x_512_, lean_object* v___x_513_, lean_object* v___x_514_, lean_object* v_name_515_, lean_object* v___x_516_, lean_object* v___x_517_, lean_object* v___x_518_, lean_object* v_it_519_, lean_object* v_acc_520_, lean_object* v_hP_521_, lean_object* v_recur_522_){ +_start: +{ +uint32_t v___x_2817__boxed_523_; lean_object* v_res_524_; +v___x_2817__boxed_523_ = lean_unbox_uint32(v___x_517_); +lean_dec(v___x_517_); +v_res_524_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2(v___x_512_, v___x_513_, v___x_514_, v_name_515_, v___x_516_, v___x_2817__boxed_523_, v___x_518_, v_it_519_, v_acc_520_, v_hP_521_, v_recur_522_); +lean_dec_ref(v___x_518_); +lean_dec_ref(v_name_515_); +lean_dec(v___x_514_); +lean_dec(v___x_513_); +lean_dec_ref(v___x_512_); +return v_res_524_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4(void){ _start: { -lean_object* v___x_502_; lean_object* v___x_503_; -v___x_502_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__3)); -v___x_503_ = lean_string_utf8_byte_size(v___x_502_); -return v___x_503_; +lean_object* v___x_529_; lean_object* v___x_530_; +v___x_529_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__3)); +v___x_530_ = lean_string_utf8_byte_size(v___x_529_); +return v___x_530_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___boxed__const__1(void){ _start: { -uint32_t v___x_505_; lean_object* v___x_506_; -v___x_505_ = 45; -v___x_506_ = lean_box_uint32(v___x_505_); -return v___x_506_; +uint32_t v___x_532_; lean_object* v___x_533_; +v___x_532_ = 45; +v___x_533_ = lean_box_uint32(v___x_532_); +return v___x_533_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3(lean_object* v_buf_507_, lean_object* v_name_508_, lean_object* v_value_509_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3(lean_object* v_buf_534_, lean_object* v_name_535_, lean_object* v_value_536_){ _start: { -lean_object* v___y_511_; lean_object* v___f_530_; lean_object* v___x_531_; lean_object* v___x_532_; lean_object* v___x_533_; lean_object* v_it_534_; lean_object* v___x_535_; lean_object* v___x_536_; lean_object* v___x_537_; lean_object* v___f_538_; lean_object* v___x_539_; lean_object* v___x_540_; -v___f_530_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__2)); -v___x_531_ = lean_unsigned_to_nat(0u); -v___x_532_ = lean_string_utf8_byte_size(v_name_508_); -lean_inc_ref(v_name_508_); -v___x_533_ = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(v___x_533_, 0, v_name_508_); -lean_ctor_set(v___x_533_, 1, v___x_531_); -lean_ctor_set(v___x_533_, 2, v___x_532_); -lean_inc_ref(v___x_533_); -v_it_534_ = l_String_Slice_splitToSubslice___redArg(v___x_533_, v___f_530_); -v___x_535_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__3)); -v___x_536_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4); -v___x_537_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___boxed__const__1; -v___f_538_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2___boxed), 11, 7); -lean_closure_set(v___f_538_, 0, v___x_535_); -lean_closure_set(v___f_538_, 1, v___x_531_); -lean_closure_set(v___f_538_, 2, v___x_536_); -lean_closure_set(v___f_538_, 3, v_name_508_); -lean_closure_set(v___f_538_, 4, v___x_532_); -lean_closure_set(v___f_538_, 5, v___x_537_); -lean_closure_set(v___f_538_, 6, v___x_533_); -v___x_539_ = lean_box(0); -v___x_540_ = l_WellFounded_opaqueFix_u2083___redArg(v___f_538_, v_it_534_, v___x_539_, lean_box(0)); -if (lean_obj_tag(v___x_540_) == 0) +lean_object* v___y_538_; lean_object* v___f_557_; lean_object* v___x_558_; lean_object* v___x_559_; lean_object* v___x_560_; lean_object* v_it_561_; lean_object* v___x_562_; lean_object* v___x_563_; lean_object* v___x_564_; lean_object* v___f_565_; lean_object* v___x_566_; lean_object* v___x_567_; +v___f_557_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__2)); +v___x_558_ = lean_unsigned_to_nat(0u); +v___x_559_ = lean_string_utf8_byte_size(v_name_535_); +lean_inc_ref(v_name_535_); +v___x_560_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_560_, 0, v_name_535_); +lean_ctor_set(v___x_560_, 1, v___x_558_); +lean_ctor_set(v___x_560_, 2, v___x_559_); +lean_inc_ref(v___x_560_); +v_it_561_ = l_String_Slice_splitToSubslice___redArg(v___x_560_, v___f_557_); +v___x_562_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__3)); +v___x_563_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__4); +v___x_564_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___boxed__const__1; +v___f_565_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__2___boxed), 11, 7); +lean_closure_set(v___f_565_, 0, v___x_562_); +lean_closure_set(v___f_565_, 1, v___x_558_); +lean_closure_set(v___f_565_, 2, v___x_563_); +lean_closure_set(v___f_565_, 3, v_name_535_); +lean_closure_set(v___f_565_, 4, v___x_559_); +lean_closure_set(v___f_565_, 5, v___x_564_); +lean_closure_set(v___f_565_, 6, v___x_560_); +v___x_566_ = lean_box(0); +v___x_567_ = l_WellFounded_opaqueFix_u2083___redArg(v___f_565_, v_it_561_, v___x_566_, lean_box(0)); +if (lean_obj_tag(v___x_567_) == 0) { -lean_object* v___x_541_; -v___x_541_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_511_ = v___x_541_; -goto v___jp_510_; +lean_object* v___x_568_; +v___x_568_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_538_ = v___x_568_; +goto v___jp_537_; } else { -lean_object* v_val_542_; -v_val_542_ = lean_ctor_get(v___x_540_, 0); -lean_inc(v_val_542_); -lean_dec_ref(v___x_540_); -v___y_511_ = v_val_542_; -goto v___jp_510_; +lean_object* v_val_569_; +v_val_569_ = lean_ctor_get(v___x_567_, 0); +lean_inc(v_val_569_); +lean_dec_ref(v___x_567_); +v___y_538_ = v_val_569_; +goto v___jp_537_; } -v___jp_510_: +v___jp_537_: { -lean_object* v_data_512_; lean_object* v_size_513_; lean_object* v___x_515_; uint8_t v_isShared_516_; uint8_t v_isSharedCheck_529_; -v_data_512_ = lean_ctor_get(v_buf_507_, 0); -v_size_513_ = lean_ctor_get(v_buf_507_, 1); -v_isSharedCheck_529_ = !lean_is_exclusive(v_buf_507_); -if (v_isSharedCheck_529_ == 0) +lean_object* v_data_539_; lean_object* v_size_540_; lean_object* v___x_542_; uint8_t v_isShared_543_; uint8_t v_isSharedCheck_556_; +v_data_539_ = lean_ctor_get(v_buf_534_, 0); +v_size_540_ = lean_ctor_get(v_buf_534_, 1); +v_isSharedCheck_556_ = !lean_is_exclusive(v_buf_534_); +if (v_isSharedCheck_556_ == 0) { -v___x_515_ = v_buf_507_; -v_isShared_516_ = v_isSharedCheck_529_; -goto v_resetjp_514_; +v___x_542_ = v_buf_534_; +v_isShared_543_ = v_isSharedCheck_556_; +goto v_resetjp_541_; } else { -lean_inc(v_size_513_); -lean_inc(v_data_512_); -lean_dec(v_buf_507_); -v___x_515_ = lean_box(0); -v_isShared_516_ = v_isSharedCheck_529_; -goto v_resetjp_514_; +lean_inc(v_size_540_); +lean_inc(v_data_539_); +lean_dec(v_buf_534_); +v___x_542_ = lean_box(0); +v_isShared_543_ = v_isSharedCheck_556_; +goto v_resetjp_541_; } -v_resetjp_514_: +v_resetjp_541_: { -lean_object* v___x_517_; lean_object* v___x_518_; lean_object* v___x_519_; lean_object* v___x_520_; lean_object* v___x_521_; lean_object* v___x_522_; lean_object* v___x_523_; lean_object* v___x_524_; lean_object* v___x_525_; lean_object* v___x_527_; -v___x_517_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__0)); -v___x_518_ = lean_string_append(v___y_511_, v___x_517_); -v___x_519_ = lean_string_append(v___x_518_, v_value_509_); -v___x_520_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__1)); -v___x_521_ = lean_string_append(v___x_519_, v___x_520_); -v___x_522_ = lean_string_to_utf8(v___x_521_); -lean_dec_ref(v___x_521_); -lean_inc_ref(v___x_522_); -v___x_523_ = lean_array_push(v_data_512_, v___x_522_); -v___x_524_ = lean_byte_array_size(v___x_522_); -lean_dec_ref(v___x_522_); -v___x_525_ = lean_nat_add(v_size_513_, v___x_524_); -lean_dec(v_size_513_); -if (v_isShared_516_ == 0) +lean_object* v___x_544_; lean_object* v___x_545_; lean_object* v___x_546_; lean_object* v___x_547_; lean_object* v___x_548_; lean_object* v___x_549_; lean_object* v___x_550_; lean_object* v___x_551_; lean_object* v___x_552_; lean_object* v___x_554_; +v___x_544_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__0)); +v___x_545_ = lean_string_append(v___y_538_, v___x_544_); +v___x_546_ = lean_string_append(v___x_545_, v_value_536_); +v___x_547_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__1)); +v___x_548_ = lean_string_append(v___x_546_, v___x_547_); +v___x_549_ = lean_string_to_utf8(v___x_548_); +lean_dec_ref(v___x_548_); +lean_inc_ref(v___x_549_); +v___x_550_ = lean_array_push(v_data_539_, v___x_549_); +v___x_551_ = lean_byte_array_size(v___x_549_); +lean_dec_ref(v___x_549_); +v___x_552_ = lean_nat_add(v_size_540_, v___x_551_); +lean_dec(v_size_540_); +if (v_isShared_543_ == 0) { -lean_ctor_set(v___x_515_, 1, v___x_525_); -lean_ctor_set(v___x_515_, 0, v___x_523_); -v___x_527_ = v___x_515_; -goto v_reusejp_526_; +lean_ctor_set(v___x_542_, 1, v___x_552_); +lean_ctor_set(v___x_542_, 0, v___x_550_); +v___x_554_ = v___x_542_; +goto v_reusejp_553_; } else { -lean_object* v_reuseFailAlloc_528_; -v_reuseFailAlloc_528_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_528_, 0, v___x_523_); -lean_ctor_set(v_reuseFailAlloc_528_, 1, v___x_525_); -v___x_527_ = v_reuseFailAlloc_528_; -goto v_reusejp_526_; +lean_object* v_reuseFailAlloc_555_; +v_reuseFailAlloc_555_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_555_, 0, v___x_550_); +lean_ctor_set(v_reuseFailAlloc_555_, 1, v___x_552_); +v___x_554_ = v_reuseFailAlloc_555_; +goto v_reusejp_553_; } -v_reusejp_526_: +v_reusejp_553_: { -return v___x_527_; +return v___x_554_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___boxed(lean_object* v_buf_543_, lean_object* v_name_544_, lean_object* v_value_545_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___boxed(lean_object* v_buf_570_, lean_object* v_name_571_, lean_object* v_value_572_){ _start: { -lean_object* v_res_546_; -v_res_546_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3(v_buf_543_, v_name_544_, v_value_545_); -lean_dec_ref(v_value_545_); -return v_res_546_; +lean_object* v_res_573_; +v_res_573_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3(v_buf_570_, v_name_571_, v_value_572_); +lean_dec_ref(v_value_572_); +return v_res_573_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3(void){ _start: { -lean_object* v___x_550_; lean_object* v___x_551_; -v___x_550_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__1)); -v___x_551_ = lean_string_to_utf8(v___x_550_); -return v___x_551_; +lean_object* v___x_577_; lean_object* v___x_578_; +v___x_577_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__1)); +v___x_578_ = lean_string_to_utf8(v___x_577_); +return v___x_578_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4(void){ _start: { -lean_object* v___x_552_; lean_object* v___x_553_; -v___x_552_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); -v___x_553_ = lean_byte_array_size(v___x_552_); -return v___x_553_; +lean_object* v___x_579_; lean_object* v___x_580_; +v___x_579_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); +v___x_580_ = lean_byte_array_size(v___x_579_); +return v___x_580_; } } static uint8_t _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26(void){ _start: { -uint32_t v___x_584_; uint8_t v___x_585_; -v___x_584_ = 32; -v___x_585_ = lean_uint32_to_uint8(v___x_584_); -return v___x_585_; +uint32_t v___x_611_; uint8_t v___x_612_; +v___x_611_ = 32; +v___x_612_ = lean_uint32_to_uint8(v___x_611_); +return v___x_612_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27(void){ _start: { -uint8_t v___x_586_; lean_object* v___x_587_; lean_object* v___x_588_; lean_object* v___x_589_; lean_object* v___x_590_; lean_object* v___x_591_; -v___x_586_ = lean_uint8_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26); -v___x_587_ = lean_unsigned_to_nat(1u); -v___x_588_ = lean_mk_empty_array_with_capacity(v___x_587_); -v___x_589_ = lean_box(v___x_586_); -v___x_590_ = lean_array_push(v___x_588_, v___x_589_); -v___x_591_ = lean_byte_array_mk(v___x_590_); -return v___x_591_; +uint8_t v___x_613_; lean_object* v___x_614_; lean_object* v___x_615_; lean_object* v___x_616_; lean_object* v___x_617_; lean_object* v___x_618_; +v___x_613_ = lean_uint8_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__26); +v___x_614_ = lean_unsigned_to_nat(1u); +v___x_615_ = lean_mk_empty_array_with_capacity(v___x_614_); +v___x_616_ = lean_box(v___x_613_); +v___x_617_ = lean_array_push(v___x_615_, v___x_616_); +v___x_618_ = lean_byte_array_mk(v___x_617_); +return v___x_618_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28(void){ _start: { -lean_object* v___x_592_; lean_object* v___x_593_; -v___x_592_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); -v___x_593_ = lean_byte_array_size(v___x_592_); -return v___x_593_; +lean_object* v___x_619_; lean_object* v___x_620_; +v___x_619_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); +v___x_620_ = lean_byte_array_size(v___x_619_); +return v___x_620_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1(lean_object* v_buffer_637_, lean_object* v_req_638_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1(lean_object* v_buffer_664_, lean_object* v_req_665_){ _start: { -uint8_t v_method_639_; uint8_t v_version_640_; lean_object* v_uri_641_; lean_object* v_headers_642_; lean_object* v___f_643_; lean_object* v___f_644_; lean_object* v___f_645_; lean_object* v___y_647_; lean_object* v___y_648_; lean_object* v___y_649_; lean_object* v___y_672_; lean_object* v___y_673_; lean_object* v___y_674_; lean_object* v___y_675_; lean_object* v___y_676_; lean_object* v___y_688_; lean_object* v___y_689_; lean_object* v___y_690_; lean_object* v___y_691_; lean_object* v___y_692_; lean_object* v___y_693_; lean_object* v___y_707_; lean_object* v___y_708_; lean_object* v___y_709_; lean_object* v___y_710_; lean_object* v___y_711_; lean_object* v___y_712_; lean_object* v___y_713_; lean_object* v___y_714_; lean_object* v___y_715_; lean_object* v___y_723_; lean_object* v___y_724_; lean_object* v___y_725_; lean_object* v___y_726_; lean_object* v___y_727_; lean_object* v___y_728_; lean_object* v___y_729_; lean_object* v___y_730_; lean_object* v___y_731_; lean_object* v___y_739_; lean_object* v___y_740_; lean_object* v___y_741_; lean_object* v___y_742_; lean_object* v___y_743_; lean_object* v___y_744_; lean_object* v___y_745_; lean_object* v___y_749_; lean_object* v___y_750_; lean_object* v___y_751_; lean_object* v_port_752_; lean_object* v___y_753_; lean_object* v___y_754_; lean_object* v___y_755_; lean_object* v___y_764_; lean_object* v___y_765_; lean_object* v___y_766_; lean_object* v_host_767_; lean_object* v_port_768_; lean_object* v___y_769_; lean_object* v___y_770_; lean_object* v___y_781_; lean_object* v___y_782_; lean_object* v___y_783_; lean_object* v___y_784_; lean_object* v___y_785_; lean_object* v___y_786_; lean_object* v___y_787_; lean_object* v___y_788_; lean_object* v___y_789_; lean_object* v___y_802_; lean_object* v___y_803_; lean_object* v___y_804_; lean_object* v___y_805_; lean_object* v___y_806_; lean_object* v___y_807_; lean_object* v___y_808_; lean_object* v___y_809_; lean_object* v___y_810_; lean_object* v___y_822_; lean_object* v___y_823_; lean_object* v___y_824_; lean_object* v___y_825_; lean_object* v___y_826_; lean_object* v___y_827_; lean_object* v___y_828_; lean_object* v___y_829_; lean_object* v___y_830_; lean_object* v___y_831_; lean_object* v___y_832_; lean_object* v___y_833_; lean_object* v___y_838_; lean_object* v___y_839_; lean_object* v___y_840_; lean_object* v___y_841_; lean_object* v___y_842_; lean_object* v___y_843_; lean_object* v___y_844_; lean_object* v___y_845_; lean_object* v_port_846_; lean_object* v___y_847_; lean_object* v___y_848_; lean_object* v___y_849_; lean_object* v___y_858_; lean_object* v___y_859_; lean_object* v___y_860_; lean_object* v___y_861_; lean_object* v___y_862_; lean_object* v___y_863_; lean_object* v___y_864_; lean_object* v___y_865_; lean_object* v_host_866_; lean_object* v_port_867_; lean_object* v___y_868_; lean_object* v___y_869_; lean_object* v___y_880_; -v_method_639_ = lean_ctor_get_uint8(v_req_638_, sizeof(void*)*2); -v_version_640_ = lean_ctor_get_uint8(v_req_638_, sizeof(void*)*2 + 1); -v_uri_641_ = lean_ctor_get(v_req_638_, 0); -lean_inc(v_uri_641_); -v_headers_642_ = lean_ctor_get(v_req_638_, 1); -lean_inc_ref(v_headers_642_); -lean_dec_ref(v_req_638_); -v___f_643_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__0)); -v___f_644_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__1)); -v___f_645_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__2)); -switch(v_method_639_) +uint8_t v_method_666_; uint8_t v_version_667_; lean_object* v_uri_668_; lean_object* v_headers_669_; lean_object* v___f_670_; lean_object* v___f_671_; lean_object* v___f_672_; lean_object* v___y_674_; lean_object* v___y_675_; lean_object* v___y_676_; lean_object* v___y_699_; lean_object* v___y_700_; lean_object* v___y_701_; lean_object* v___y_702_; lean_object* v___y_703_; lean_object* v___y_715_; lean_object* v___y_716_; lean_object* v___y_717_; lean_object* v___y_718_; lean_object* v___y_719_; lean_object* v___y_720_; lean_object* v___y_734_; lean_object* v___y_735_; lean_object* v___y_736_; lean_object* v___y_737_; lean_object* v___y_738_; lean_object* v___y_739_; lean_object* v___y_740_; lean_object* v___y_741_; lean_object* v___y_742_; lean_object* v___y_750_; lean_object* v___y_751_; lean_object* v___y_752_; lean_object* v___y_753_; lean_object* v___y_754_; lean_object* v___y_755_; lean_object* v___y_756_; lean_object* v___y_757_; lean_object* v___y_758_; lean_object* v___y_766_; lean_object* v___y_767_; lean_object* v___y_768_; lean_object* v___y_769_; lean_object* v___y_770_; lean_object* v___y_771_; lean_object* v___y_772_; lean_object* v___y_776_; lean_object* v___y_777_; lean_object* v___y_778_; lean_object* v___y_779_; lean_object* v___y_780_; lean_object* v_port_781_; lean_object* v___y_782_; lean_object* v___y_791_; lean_object* v___y_792_; lean_object* v___y_793_; lean_object* v___y_794_; lean_object* v_host_795_; lean_object* v_port_796_; lean_object* v___y_797_; lean_object* v___y_808_; lean_object* v___y_809_; lean_object* v___y_810_; lean_object* v___y_811_; lean_object* v___y_812_; lean_object* v___y_813_; lean_object* v___y_814_; lean_object* v___y_815_; lean_object* v___y_816_; lean_object* v___y_829_; lean_object* v___y_830_; lean_object* v___y_831_; lean_object* v___y_832_; lean_object* v___y_833_; lean_object* v___y_834_; lean_object* v___y_835_; lean_object* v___y_836_; lean_object* v___y_837_; lean_object* v___y_849_; lean_object* v___y_850_; lean_object* v___y_851_; lean_object* v___y_852_; lean_object* v___y_853_; lean_object* v___y_854_; lean_object* v___y_855_; lean_object* v___y_856_; lean_object* v___y_857_; lean_object* v___y_858_; lean_object* v___y_859_; lean_object* v___y_860_; lean_object* v___y_865_; lean_object* v___y_866_; lean_object* v___y_867_; lean_object* v___y_868_; lean_object* v_port_869_; lean_object* v___y_870_; lean_object* v___y_871_; lean_object* v___y_872_; lean_object* v___y_873_; lean_object* v___y_874_; lean_object* v___y_875_; lean_object* v___y_876_; lean_object* v___y_885_; lean_object* v___y_886_; lean_object* v___y_887_; lean_object* v___y_888_; lean_object* v___y_889_; lean_object* v___y_890_; lean_object* v_host_891_; lean_object* v_port_892_; lean_object* v___y_893_; lean_object* v___y_894_; lean_object* v___y_895_; lean_object* v___y_896_; lean_object* v___y_907_; +v_method_666_ = lean_ctor_get_uint8(v_req_665_, sizeof(void*)*2); +v_version_667_ = lean_ctor_get_uint8(v_req_665_, sizeof(void*)*2 + 1); +v_uri_668_ = lean_ctor_get(v_req_665_, 0); +lean_inc(v_uri_668_); +v_headers_669_ = lean_ctor_get(v_req_665_, 1); +lean_inc_ref(v_headers_669_); +lean_dec_ref(v_req_665_); +v___f_670_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__0)); +v___f_671_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__1)); +v___f_672_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__2)); +switch(v_method_666_) { case 0: { -lean_object* v___x_960_; -v___x_960_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__32)); -v___y_880_ = v___x_960_; -goto v___jp_879_; +lean_object* v___x_987_; +v___x_987_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__32)); +v___y_907_ = v___x_987_; +goto v___jp_906_; } case 1: { -lean_object* v___x_961_; -v___x_961_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__33)); -v___y_880_ = v___x_961_; -goto v___jp_879_; +lean_object* v___x_988_; +v___x_988_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__33)); +v___y_907_ = v___x_988_; +goto v___jp_906_; } case 2: { -lean_object* v___x_962_; -v___x_962_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__34)); -v___y_880_ = v___x_962_; -goto v___jp_879_; +lean_object* v___x_989_; +v___x_989_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__34)); +v___y_907_ = v___x_989_; +goto v___jp_906_; } case 3: { -lean_object* v___x_963_; -v___x_963_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__35)); -v___y_880_ = v___x_963_; -goto v___jp_879_; +lean_object* v___x_990_; +v___x_990_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__35)); +v___y_907_ = v___x_990_; +goto v___jp_906_; } case 4: { -lean_object* v___x_964_; -v___x_964_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__36)); -v___y_880_ = v___x_964_; -goto v___jp_879_; +lean_object* v___x_991_; +v___x_991_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__36)); +v___y_907_ = v___x_991_; +goto v___jp_906_; } case 5: { -lean_object* v___x_965_; -v___x_965_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__37)); -v___y_880_ = v___x_965_; -goto v___jp_879_; +lean_object* v___x_992_; +v___x_992_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__37)); +v___y_907_ = v___x_992_; +goto v___jp_906_; } case 6: { -lean_object* v___x_966_; -v___x_966_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__38)); -v___y_880_ = v___x_966_; -goto v___jp_879_; +lean_object* v___x_993_; +v___x_993_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__38)); +v___y_907_ = v___x_993_; +goto v___jp_906_; } case 7: { -lean_object* v___x_967_; -v___x_967_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__39)); -v___y_880_ = v___x_967_; -goto v___jp_879_; +lean_object* v___x_994_; +v___x_994_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__39)); +v___y_907_ = v___x_994_; +goto v___jp_906_; } case 8: { -lean_object* v___x_968_; -v___x_968_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__40)); -v___y_880_ = v___x_968_; -goto v___jp_879_; +lean_object* v___x_995_; +v___x_995_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__40)); +v___y_907_ = v___x_995_; +goto v___jp_906_; } case 9: { -lean_object* v___x_969_; -v___x_969_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__41)); -v___y_880_ = v___x_969_; -goto v___jp_879_; +lean_object* v___x_996_; +v___x_996_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__41)); +v___y_907_ = v___x_996_; +goto v___jp_906_; } case 10: { -lean_object* v___x_970_; -v___x_970_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__42)); -v___y_880_ = v___x_970_; -goto v___jp_879_; +lean_object* v___x_997_; +v___x_997_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__42)); +v___y_907_ = v___x_997_; +goto v___jp_906_; } case 11: { -lean_object* v___x_971_; -v___x_971_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__43)); -v___y_880_ = v___x_971_; -goto v___jp_879_; +lean_object* v___x_998_; +v___x_998_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__43)); +v___y_907_ = v___x_998_; +goto v___jp_906_; } case 12: { -lean_object* v___x_972_; -v___x_972_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__44)); -v___y_880_ = v___x_972_; -goto v___jp_879_; +lean_object* v___x_999_; +v___x_999_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__44)); +v___y_907_ = v___x_999_; +goto v___jp_906_; } case 13: { -lean_object* v___x_973_; -v___x_973_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__45)); -v___y_880_ = v___x_973_; -goto v___jp_879_; +lean_object* v___x_1000_; +v___x_1000_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__45)); +v___y_907_ = v___x_1000_; +goto v___jp_906_; } case 14: { -lean_object* v___x_974_; -v___x_974_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__46)); -v___y_880_ = v___x_974_; -goto v___jp_879_; +lean_object* v___x_1001_; +v___x_1001_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__46)); +v___y_907_ = v___x_1001_; +goto v___jp_906_; } case 15: { -lean_object* v___x_975_; -v___x_975_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__47)); -v___y_880_ = v___x_975_; -goto v___jp_879_; +lean_object* v___x_1002_; +v___x_1002_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__47)); +v___y_907_ = v___x_1002_; +goto v___jp_906_; } case 16: { -lean_object* v___x_976_; -v___x_976_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__48)); -v___y_880_ = v___x_976_; -goto v___jp_879_; +lean_object* v___x_1003_; +v___x_1003_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__48)); +v___y_907_ = v___x_1003_; +goto v___jp_906_; } case 17: { -lean_object* v___x_977_; -v___x_977_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__49)); -v___y_880_ = v___x_977_; -goto v___jp_879_; +lean_object* v___x_1004_; +v___x_1004_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__49)); +v___y_907_ = v___x_1004_; +goto v___jp_906_; } case 18: { -lean_object* v___x_978_; -v___x_978_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__50)); -v___y_880_ = v___x_978_; -goto v___jp_879_; +lean_object* v___x_1005_; +v___x_1005_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__50)); +v___y_907_ = v___x_1005_; +goto v___jp_906_; } case 19: { -lean_object* v___x_979_; -v___x_979_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__51)); -v___y_880_ = v___x_979_; -goto v___jp_879_; +lean_object* v___x_1006_; +v___x_1006_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__51)); +v___y_907_ = v___x_1006_; +goto v___jp_906_; } case 20: { -lean_object* v___x_980_; -v___x_980_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__52)); -v___y_880_ = v___x_980_; -goto v___jp_879_; +lean_object* v___x_1007_; +v___x_1007_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__52)); +v___y_907_ = v___x_1007_; +goto v___jp_906_; } case 21: { -lean_object* v___x_981_; -v___x_981_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__53)); -v___y_880_ = v___x_981_; -goto v___jp_879_; +lean_object* v___x_1008_; +v___x_1008_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__53)); +v___y_907_ = v___x_1008_; +goto v___jp_906_; } case 22: { -lean_object* v___x_982_; -v___x_982_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__54)); -v___y_880_ = v___x_982_; -goto v___jp_879_; +lean_object* v___x_1009_; +v___x_1009_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__54)); +v___y_907_ = v___x_1009_; +goto v___jp_906_; } case 23: { -lean_object* v___x_983_; -v___x_983_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__55)); -v___y_880_ = v___x_983_; -goto v___jp_879_; +lean_object* v___x_1010_; +v___x_1010_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__55)); +v___y_907_ = v___x_1010_; +goto v___jp_906_; } case 24: { -lean_object* v___x_984_; -v___x_984_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__56)); -v___y_880_ = v___x_984_; -goto v___jp_879_; +lean_object* v___x_1011_; +v___x_1011_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__56)); +v___y_907_ = v___x_1011_; +goto v___jp_906_; } case 25: { -lean_object* v___x_985_; -v___x_985_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__57)); -v___y_880_ = v___x_985_; -goto v___jp_879_; +lean_object* v___x_1012_; +v___x_1012_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__57)); +v___y_907_ = v___x_1012_; +goto v___jp_906_; } case 26: { -lean_object* v___x_986_; -v___x_986_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__58)); -v___y_880_ = v___x_986_; -goto v___jp_879_; +lean_object* v___x_1013_; +v___x_1013_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__58)); +v___y_907_ = v___x_1013_; +goto v___jp_906_; } case 27: { -lean_object* v___x_987_; -v___x_987_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__59)); -v___y_880_ = v___x_987_; -goto v___jp_879_; +lean_object* v___x_1014_; +v___x_1014_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__59)); +v___y_907_ = v___x_1014_; +goto v___jp_906_; } case 28: { -lean_object* v___x_988_; -v___x_988_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__60)); -v___y_880_ = v___x_988_; -goto v___jp_879_; +lean_object* v___x_1015_; +v___x_1015_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__60)); +v___y_907_ = v___x_1015_; +goto v___jp_906_; } case 29: { -lean_object* v___x_989_; -v___x_989_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__61)); -v___y_880_ = v___x_989_; -goto v___jp_879_; +lean_object* v___x_1016_; +v___x_1016_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__61)); +v___y_907_ = v___x_1016_; +goto v___jp_906_; } case 30: { -lean_object* v___x_990_; -v___x_990_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__62)); -v___y_880_ = v___x_990_; -goto v___jp_879_; +lean_object* v___x_1017_; +v___x_1017_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__62)); +v___y_907_ = v___x_1017_; +goto v___jp_906_; } case 31: { -lean_object* v___x_991_; -v___x_991_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__63)); -v___y_880_ = v___x_991_; -goto v___jp_879_; +lean_object* v___x_1018_; +v___x_1018_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__63)); +v___y_907_ = v___x_1018_; +goto v___jp_906_; } case 32: { -lean_object* v___x_992_; -v___x_992_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__64)); -v___y_880_ = v___x_992_; -goto v___jp_879_; +lean_object* v___x_1019_; +v___x_1019_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__64)); +v___y_907_ = v___x_1019_; +goto v___jp_906_; } case 33: { -lean_object* v___x_993_; -v___x_993_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__65)); -v___y_880_ = v___x_993_; -goto v___jp_879_; +lean_object* v___x_1020_; +v___x_1020_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__65)); +v___y_907_ = v___x_1020_; +goto v___jp_906_; } case 34: { -lean_object* v___x_994_; -v___x_994_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__66)); -v___y_880_ = v___x_994_; -goto v___jp_879_; +lean_object* v___x_1021_; +v___x_1021_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__66)); +v___y_907_ = v___x_1021_; +goto v___jp_906_; } case 35: { -lean_object* v___x_995_; -v___x_995_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__67)); -v___y_880_ = v___x_995_; -goto v___jp_879_; +lean_object* v___x_1022_; +v___x_1022_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__67)); +v___y_907_ = v___x_1022_; +goto v___jp_906_; } case 36: { -lean_object* v___x_996_; -v___x_996_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__68)); -v___y_880_ = v___x_996_; -goto v___jp_879_; +lean_object* v___x_1023_; +v___x_1023_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__68)); +v___y_907_ = v___x_1023_; +goto v___jp_906_; } case 37: { -lean_object* v___x_997_; -v___x_997_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__69)); -v___y_880_ = v___x_997_; -goto v___jp_879_; +lean_object* v___x_1024_; +v___x_1024_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__69)); +v___y_907_ = v___x_1024_; +goto v___jp_906_; } case 38: { -lean_object* v___x_998_; -v___x_998_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__70)); -v___y_880_ = v___x_998_; -goto v___jp_879_; +lean_object* v___x_1025_; +v___x_1025_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__70)); +v___y_907_ = v___x_1025_; +goto v___jp_906_; } default: { -lean_object* v___x_999_; -v___x_999_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__71)); -v___y_880_ = v___x_999_; -goto v___jp_879_; +lean_object* v___x_1026_; +v___x_1026_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__71)); +v___y_907_ = v___x_1026_; +goto v___jp_906_; } } -v___jp_646_: +v___jp_673_: { -lean_object* v___x_650_; lean_object* v___x_651_; lean_object* v___x_652_; lean_object* v___x_653_; lean_object* v___x_654_; lean_object* v___x_655_; lean_object* v___x_656_; lean_object* v___x_657_; lean_object* v_buffer_658_; lean_object* v_buffer_659_; lean_object* v_data_660_; lean_object* v_size_661_; lean_object* v___x_663_; uint8_t v_isShared_664_; uint8_t v_isSharedCheck_670_; -v___x_650_ = lean_string_to_utf8(v___y_649_); -lean_inc_ref(v___x_650_); -v___x_651_ = lean_array_push(v___y_648_, v___x_650_); -v___x_652_ = lean_byte_array_size(v___x_650_); -lean_dec_ref(v___x_650_); -v___x_653_ = lean_nat_add(v___y_647_, v___x_652_); -lean_dec(v___y_647_); -v___x_654_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); -v___x_655_ = lean_array_push(v___x_651_, v___x_654_); -v___x_656_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4); -v___x_657_ = lean_nat_add(v___x_653_, v___x_656_); -lean_dec(v___x_653_); -v_buffer_658_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_buffer_658_, 0, v___x_655_); -lean_ctor_set(v_buffer_658_, 1, v___x_657_); -v_buffer_659_ = l_Std_Http_Headers_fold___redArg(v_headers_642_, v_buffer_658_, v___f_645_); -lean_dec_ref(v_headers_642_); -v_data_660_ = lean_ctor_get(v_buffer_659_, 0); -v_size_661_ = lean_ctor_get(v_buffer_659_, 1); -v_isSharedCheck_670_ = !lean_is_exclusive(v_buffer_659_); -if (v_isSharedCheck_670_ == 0) -{ -v___x_663_ = v_buffer_659_; -v_isShared_664_ = v_isSharedCheck_670_; -goto v_resetjp_662_; -} -else -{ -lean_inc(v_size_661_); -lean_inc(v_data_660_); -lean_dec(v_buffer_659_); -v___x_663_ = lean_box(0); -v_isShared_664_ = v_isSharedCheck_670_; -goto v_resetjp_662_; -} -v_resetjp_662_: -{ -lean_object* v___x_665_; lean_object* v___x_666_; lean_object* v___x_668_; -v___x_665_ = lean_array_push(v_data_660_, v___x_654_); -v___x_666_ = lean_nat_add(v_size_661_, v___x_656_); -lean_dec(v_size_661_); -if (v_isShared_664_ == 0) -{ -lean_ctor_set(v___x_663_, 1, v___x_666_); -lean_ctor_set(v___x_663_, 0, v___x_665_); -v___x_668_ = v___x_663_; -goto v_reusejp_667_; -} -else -{ -lean_object* v_reuseFailAlloc_669_; -v_reuseFailAlloc_669_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_669_, 0, v___x_665_); -lean_ctor_set(v_reuseFailAlloc_669_, 1, v___x_666_); -v___x_668_ = v_reuseFailAlloc_669_; -goto v_reusejp_667_; -} -v_reusejp_667_: -{ -return v___x_668_; -} -} -} -v___jp_671_: -{ -lean_object* v___x_677_; lean_object* v___x_678_; lean_object* v___x_679_; lean_object* v___x_680_; lean_object* v___x_681_; lean_object* v___x_682_; +lean_object* v___x_677_; lean_object* v___x_678_; lean_object* v___x_679_; lean_object* v___x_680_; lean_object* v___x_681_; lean_object* v___x_682_; lean_object* v___x_683_; lean_object* v___x_684_; lean_object* v_buffer_685_; lean_object* v_buffer_686_; lean_object* v_data_687_; lean_object* v_size_688_; lean_object* v___x_690_; uint8_t v_isShared_691_; uint8_t v_isSharedCheck_697_; v___x_677_ = lean_string_to_utf8(v___y_676_); -lean_dec_ref(v___y_676_); lean_inc_ref(v___x_677_); -v___x_678_ = lean_array_push(v___y_673_, v___x_677_); +v___x_678_ = lean_array_push(v___y_675_, v___x_677_); v___x_679_ = lean_byte_array_size(v___x_677_); lean_dec_ref(v___x_677_); -v___x_680_ = lean_nat_add(v___y_672_, v___x_679_); -lean_dec(v___y_672_); -v___x_681_ = lean_array_push(v___x_678_, v___y_674_); -v___x_682_ = lean_nat_add(v___x_680_, v___y_675_); +v___x_680_ = lean_nat_add(v___y_674_, v___x_679_); +lean_dec(v___y_674_); +v___x_681_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); +v___x_682_ = lean_array_push(v___x_678_, v___x_681_); +v___x_683_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4); +v___x_684_ = lean_nat_add(v___x_680_, v___x_683_); lean_dec(v___x_680_); -switch(v_version_640_) +v_buffer_685_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_buffer_685_, 0, v___x_682_); +lean_ctor_set(v_buffer_685_, 1, v___x_684_); +v_buffer_686_ = l_Std_Http_Headers_fold___redArg(v_headers_669_, v_buffer_685_, v___f_672_); +lean_dec_ref(v_headers_669_); +v_data_687_ = lean_ctor_get(v_buffer_686_, 0); +v_size_688_ = lean_ctor_get(v_buffer_686_, 1); +v_isSharedCheck_697_ = !lean_is_exclusive(v_buffer_686_); +if (v_isSharedCheck_697_ == 0) { -case 0: -{ -lean_object* v___x_683_; -v___x_683_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__5)); -v___y_647_ = v___x_682_; -v___y_648_ = v___x_681_; -v___y_649_ = v___x_683_; -goto v___jp_646_; -} -case 1: -{ -lean_object* v___x_684_; -v___x_684_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__6)); -v___y_647_ = v___x_682_; -v___y_648_ = v___x_681_; -v___y_649_ = v___x_684_; -goto v___jp_646_; -} -case 2: -{ -lean_object* v___x_685_; -v___x_685_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__7)); -v___y_647_ = v___x_682_; -v___y_648_ = v___x_681_; -v___y_649_ = v___x_685_; -goto v___jp_646_; -} -default: -{ -lean_object* v___x_686_; -v___x_686_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__8)); -v___y_647_ = v___x_682_; -v___y_648_ = v___x_681_; -v___y_649_ = v___x_686_; -goto v___jp_646_; -} -} -} -v___jp_687_: -{ -if (lean_obj_tag(v___y_691_) == 0) -{ -v___y_672_ = v___y_689_; -v___y_673_ = v___y_688_; -v___y_674_ = v___y_690_; -v___y_675_ = v___y_692_; -v___y_676_ = v___y_693_; -goto v___jp_671_; +v___x_690_ = v_buffer_686_; +v_isShared_691_ = v_isSharedCheck_697_; +goto v_resetjp_689_; } else { -lean_object* v_val_694_; lean_object* v___x_695_; lean_object* v___x_696_; uint8_t v___x_697_; -v_val_694_ = lean_ctor_get(v___y_691_, 0); -lean_inc(v_val_694_); -lean_dec_ref(v___y_691_); -v___x_695_ = lean_array_get_size(v_val_694_); -v___x_696_ = lean_unsigned_to_nat(0u); -v___x_697_ = lean_nat_dec_eq(v___x_695_, v___x_696_); -if (v___x_697_ == 0) +lean_inc(v_size_688_); +lean_inc(v_data_687_); +lean_dec(v_buffer_686_); +v___x_690_ = lean_box(0); +v_isShared_691_ = v_isSharedCheck_697_; +goto v_resetjp_689_; +} +v_resetjp_689_: { -lean_object* v___x_698_; lean_object* v___x_699_; lean_object* v_encodedParams_700_; lean_object* v___x_701_; lean_object* v___x_702_; lean_object* v___x_703_; lean_object* v___x_704_; lean_object* v___x_705_; -v___x_698_ = lean_array_to_list(v_val_694_); -v___x_699_ = lean_box(0); -v_encodedParams_700_ = l_List_mapTR_loop___redArg(v___f_644_, v___x_698_, v___x_699_); -v___x_701_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__9)); -v___x_702_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__10)); -v___x_703_ = l_String_intercalate(v___x_702_, v_encodedParams_700_); -v___x_704_ = lean_string_append(v___x_701_, v___x_703_); -lean_dec_ref(v___x_703_); -v___x_705_ = lean_string_append(v___y_693_, v___x_704_); +lean_object* v___x_692_; lean_object* v___x_693_; lean_object* v___x_695_; +v___x_692_ = lean_array_push(v_data_687_, v___x_681_); +v___x_693_ = lean_nat_add(v_size_688_, v___x_683_); +lean_dec(v_size_688_); +if (v_isShared_691_ == 0) +{ +lean_ctor_set(v___x_690_, 1, v___x_693_); +lean_ctor_set(v___x_690_, 0, v___x_692_); +v___x_695_ = v___x_690_; +goto v_reusejp_694_; +} +else +{ +lean_object* v_reuseFailAlloc_696_; +v_reuseFailAlloc_696_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_696_, 0, v___x_692_); +lean_ctor_set(v_reuseFailAlloc_696_, 1, v___x_693_); +v___x_695_ = v_reuseFailAlloc_696_; +goto v_reusejp_694_; +} +v_reusejp_694_: +{ +return v___x_695_; +} +} +} +v___jp_698_: +{ +lean_object* v___x_704_; lean_object* v___x_705_; lean_object* v___x_706_; lean_object* v___x_707_; lean_object* v___x_708_; lean_object* v___x_709_; +v___x_704_ = lean_string_to_utf8(v___y_703_); +lean_dec_ref(v___y_703_); +lean_inc_ref(v___x_704_); +v___x_705_ = lean_array_push(v___y_702_, v___x_704_); +v___x_706_ = lean_byte_array_size(v___x_704_); lean_dec_ref(v___x_704_); -v___y_672_ = v___y_689_; -v___y_673_ = v___y_688_; -v___y_674_ = v___y_690_; -v___y_675_ = v___y_692_; -v___y_676_ = v___x_705_; -goto v___jp_671_; -} -else -{ -lean_dec(v_val_694_); -v___y_672_ = v___y_689_; -v___y_673_ = v___y_688_; -v___y_674_ = v___y_690_; -v___y_675_ = v___y_692_; -v___y_676_ = v___y_693_; -goto v___jp_671_; -} -} -} -v___jp_706_: -{ -lean_object* v___x_716_; lean_object* v___x_717_; lean_object* v___x_718_; lean_object* v___x_719_; lean_object* v___x_720_; lean_object* v___x_721_; -v___x_716_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___x_717_ = lean_string_append(v___y_712_, v___x_716_); -v___x_718_ = lean_string_append(v___x_717_, v___y_713_); -lean_dec_ref(v___y_713_); -v___x_719_ = lean_string_append(v___x_718_, v___y_709_); -lean_dec_ref(v___y_709_); -v___x_720_ = lean_string_append(v___x_719_, v___y_711_); -lean_dec_ref(v___y_711_); -v___x_721_ = lean_string_append(v___x_720_, v___y_715_); -lean_dec_ref(v___y_715_); -v___y_672_ = v___y_708_; -v___y_673_ = v___y_707_; -v___y_674_ = v___y_710_; -v___y_675_ = v___y_714_; -v___y_676_ = v___x_721_; -goto v___jp_671_; -} -v___jp_722_: -{ -if (lean_obj_tag(v___y_728_) == 0) -{ -lean_object* v___x_732_; -v___x_732_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_707_ = v___y_725_; -v___y_708_ = v___y_724_; -v___y_709_ = v___y_723_; -v___y_710_ = v___y_726_; -v___y_711_ = v___y_731_; -v___y_712_ = v___y_727_; -v___y_713_ = v___y_729_; -v___y_714_ = v___y_730_; -v___y_715_ = v___x_732_; -goto v___jp_706_; -} -else -{ -lean_object* v_val_733_; lean_object* v___x_734_; lean_object* v___x_735_; lean_object* v___x_736_; lean_object* v___x_737_; -v_val_733_ = lean_ctor_get(v___y_728_, 0); -lean_inc(v_val_733_); -lean_dec_ref(v___y_728_); -v___x_734_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__12)); -v___x_735_ = l_Std_Http_URI_EncodedFragment_encode(v_val_733_); -lean_dec(v_val_733_); -v___x_736_ = lean_string_from_utf8_unchecked(v___x_735_); -v___x_737_ = lean_string_append(v___x_734_, v___x_736_); -lean_dec_ref(v___x_736_); -v___y_707_ = v___y_725_; -v___y_708_ = v___y_724_; -v___y_709_ = v___y_723_; -v___y_710_ = v___y_726_; -v___y_711_ = v___y_731_; -v___y_712_ = v___y_727_; -v___y_713_ = v___y_729_; -v___y_714_ = v___y_730_; -v___y_715_ = v___x_737_; -goto v___jp_706_; -} -} -v___jp_738_: -{ -lean_object* v___x_746_; lean_object* v___x_747_; -v___x_746_ = lean_string_append(v___y_744_, v___y_741_); -lean_dec_ref(v___y_741_); -v___x_747_ = lean_string_append(v___x_746_, v___y_745_); -lean_dec_ref(v___y_745_); -v___y_672_ = v___y_740_; -v___y_673_ = v___y_739_; -v___y_674_ = v___y_742_; -v___y_675_ = v___y_743_; -v___y_676_ = v___x_747_; -goto v___jp_671_; -} -v___jp_748_: -{ -switch(lean_obj_tag(v_port_752_)) +v___x_707_ = lean_nat_add(v___y_701_, v___x_706_); +lean_dec(v___y_701_); +v___x_708_ = lean_array_push(v___x_705_, v___y_699_); +v___x_709_ = lean_nat_add(v___x_707_, v___y_700_); +lean_dec(v___x_707_); +switch(v_version_667_) { case 0: { -lean_object* v___x_756_; -v___x_756_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_739_ = v___y_750_; -v___y_740_ = v___y_749_; -v___y_741_ = v___y_755_; -v___y_742_ = v___y_751_; -v___y_743_ = v___y_754_; -v___y_744_ = v___y_753_; -v___y_745_ = v___x_756_; -goto v___jp_738_; +lean_object* v___x_710_; +v___x_710_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__5)); +v___y_674_ = v___x_709_; +v___y_675_ = v___x_708_; +v___y_676_ = v___x_710_; +goto v___jp_673_; } case 1: { -lean_object* v___x_757_; -v___x_757_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___y_739_ = v___y_750_; -v___y_740_ = v___y_749_; -v___y_741_ = v___y_755_; -v___y_742_ = v___y_751_; -v___y_743_ = v___y_754_; -v___y_744_ = v___y_753_; -v___y_745_ = v___x_757_; -goto v___jp_738_; +lean_object* v___x_711_; +v___x_711_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__6)); +v___y_674_ = v___x_709_; +v___y_675_ = v___x_708_; +v___y_676_ = v___x_711_; +goto v___jp_673_; +} +case 2: +{ +lean_object* v___x_712_; +v___x_712_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__7)); +v___y_674_ = v___x_709_; +v___y_675_ = v___x_708_; +v___y_676_ = v___x_712_; +goto v___jp_673_; } default: { -uint16_t v_port_758_; lean_object* v___x_759_; lean_object* v___x_760_; lean_object* v___x_761_; lean_object* v___x_762_; -v_port_758_ = lean_ctor_get_uint16(v_port_752_, 0); -lean_dec_ref(v_port_752_); -v___x_759_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___x_760_ = lean_uint16_to_nat(v_port_758_); -v___x_761_ = l_Nat_reprFast(v___x_760_); -v___x_762_ = lean_string_append(v___x_759_, v___x_761_); -lean_dec_ref(v___x_761_); -v___y_739_ = v___y_750_; -v___y_740_ = v___y_749_; -v___y_741_ = v___y_755_; -v___y_742_ = v___y_751_; -v___y_743_ = v___y_754_; -v___y_744_ = v___y_753_; -v___y_745_ = v___x_762_; -goto v___jp_738_; +lean_object* v___x_713_; +v___x_713_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__8)); +v___y_674_ = v___x_709_; +v___y_675_ = v___x_708_; +v___y_676_ = v___x_713_; +goto v___jp_673_; } } } -v___jp_763_: +v___jp_714_: { -switch(lean_obj_tag(v_host_767_)) +if (lean_obj_tag(v___y_716_) == 0) +{ +v___y_699_ = v___y_715_; +v___y_700_ = v___y_718_; +v___y_701_ = v___y_717_; +v___y_702_ = v___y_719_; +v___y_703_ = v___y_720_; +goto v___jp_698_; +} +else +{ +lean_object* v_val_721_; lean_object* v___x_722_; lean_object* v___x_723_; uint8_t v___x_724_; +v_val_721_ = lean_ctor_get(v___y_716_, 0); +lean_inc(v_val_721_); +lean_dec_ref(v___y_716_); +v___x_722_ = lean_array_get_size(v_val_721_); +v___x_723_ = lean_unsigned_to_nat(0u); +v___x_724_ = lean_nat_dec_eq(v___x_722_, v___x_723_); +if (v___x_724_ == 0) +{ +lean_object* v___x_725_; lean_object* v___x_726_; lean_object* v_encodedParams_727_; lean_object* v___x_728_; lean_object* v___x_729_; lean_object* v___x_730_; lean_object* v___x_731_; lean_object* v___x_732_; +v___x_725_ = lean_array_to_list(v_val_721_); +v___x_726_ = lean_box(0); +v_encodedParams_727_ = l_List_mapTR_loop___redArg(v___f_671_, v___x_725_, v___x_726_); +v___x_728_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__9)); +v___x_729_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__10)); +v___x_730_ = l_String_intercalate(v___x_729_, v_encodedParams_727_); +v___x_731_ = lean_string_append(v___x_728_, v___x_730_); +lean_dec_ref(v___x_730_); +v___x_732_ = lean_string_append(v___y_720_, v___x_731_); +lean_dec_ref(v___x_731_); +v___y_699_ = v___y_715_; +v___y_700_ = v___y_718_; +v___y_701_ = v___y_717_; +v___y_702_ = v___y_719_; +v___y_703_ = v___x_732_; +goto v___jp_698_; +} +else +{ +lean_dec(v_val_721_); +v___y_699_ = v___y_715_; +v___y_700_ = v___y_718_; +v___y_701_ = v___y_717_; +v___y_702_ = v___y_719_; +v___y_703_ = v___y_720_; +goto v___jp_698_; +} +} +} +v___jp_733_: +{ +lean_object* v___x_743_; lean_object* v___x_744_; lean_object* v___x_745_; lean_object* v___x_746_; lean_object* v___x_747_; lean_object* v___x_748_; +v___x_743_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___x_744_ = lean_string_append(v___y_741_, v___x_743_); +v___x_745_ = lean_string_append(v___x_744_, v___y_734_); +lean_dec_ref(v___y_734_); +v___x_746_ = lean_string_append(v___x_745_, v___y_740_); +lean_dec_ref(v___y_740_); +v___x_747_ = lean_string_append(v___x_746_, v___y_739_); +lean_dec_ref(v___y_739_); +v___x_748_ = lean_string_append(v___x_747_, v___y_742_); +lean_dec_ref(v___y_742_); +v___y_699_ = v___y_735_; +v___y_700_ = v___y_737_; +v___y_701_ = v___y_736_; +v___y_702_ = v___y_738_; +v___y_703_ = v___x_748_; +goto v___jp_698_; +} +v___jp_749_: +{ +if (lean_obj_tag(v___y_751_) == 0) +{ +lean_object* v___x_759_; +v___x_759_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_734_ = v___y_750_; +v___y_735_ = v___y_752_; +v___y_736_ = v___y_754_; +v___y_737_ = v___y_753_; +v___y_738_ = v___y_755_; +v___y_739_ = v___y_758_; +v___y_740_ = v___y_757_; +v___y_741_ = v___y_756_; +v___y_742_ = v___x_759_; +goto v___jp_733_; +} +else +{ +lean_object* v_val_760_; lean_object* v___x_761_; lean_object* v___x_762_; lean_object* v___x_763_; lean_object* v___x_764_; +v_val_760_ = lean_ctor_get(v___y_751_, 0); +lean_inc(v_val_760_); +lean_dec_ref(v___y_751_); +v___x_761_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__12)); +v___x_762_ = l_Std_Http_URI_EncodedFragment_encode(v_val_760_); +lean_dec(v_val_760_); +v___x_763_ = lean_string_from_utf8_unchecked(v___x_762_); +v___x_764_ = lean_string_append(v___x_761_, v___x_763_); +lean_dec_ref(v___x_763_); +v___y_734_ = v___y_750_; +v___y_735_ = v___y_752_; +v___y_736_ = v___y_754_; +v___y_737_ = v___y_753_; +v___y_738_ = v___y_755_; +v___y_739_ = v___y_758_; +v___y_740_ = v___y_757_; +v___y_741_ = v___y_756_; +v___y_742_ = v___x_764_; +goto v___jp_733_; +} +} +v___jp_765_: +{ +lean_object* v___x_773_; lean_object* v___x_774_; +v___x_773_ = lean_string_append(v___y_768_, v___y_766_); +lean_dec_ref(v___y_766_); +v___x_774_ = lean_string_append(v___x_773_, v___y_772_); +lean_dec_ref(v___y_772_); +v___y_699_ = v___y_767_; +v___y_700_ = v___y_770_; +v___y_701_ = v___y_769_; +v___y_702_ = v___y_771_; +v___y_703_ = v___x_774_; +goto v___jp_698_; +} +v___jp_775_: +{ +switch(lean_obj_tag(v_port_781_)) { case 0: { -lean_object* v_name_771_; -v_name_771_ = lean_ctor_get(v_host_767_, 0); -lean_inc_ref(v_name_771_); -lean_dec_ref(v_host_767_); -v___y_749_ = v___y_765_; -v___y_750_ = v___y_764_; -v___y_751_ = v___y_766_; -v_port_752_ = v_port_768_; -v___y_753_ = v___y_770_; -v___y_754_ = v___y_769_; -v___y_755_ = v_name_771_; -goto v___jp_748_; +lean_object* v___x_783_; +v___x_783_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_766_ = v___y_782_; +v___y_767_ = v___y_776_; +v___y_768_ = v___y_777_; +v___y_769_ = v___y_779_; +v___y_770_ = v___y_778_; +v___y_771_ = v___y_780_; +v___y_772_ = v___x_783_; +goto v___jp_765_; } case 1: { -lean_object* v_ipv4_772_; lean_object* v___x_773_; -v_ipv4_772_ = lean_ctor_get(v_host_767_, 0); -lean_inc_ref(v_ipv4_772_); -lean_dec_ref(v_host_767_); -v___x_773_ = lean_uv_ntop_v4(v_ipv4_772_); -lean_dec_ref(v_ipv4_772_); -v___y_749_ = v___y_765_; -v___y_750_ = v___y_764_; -v___y_751_ = v___y_766_; -v_port_752_ = v_port_768_; -v___y_753_ = v___y_770_; -v___y_754_ = v___y_769_; -v___y_755_ = v___x_773_; -goto v___jp_748_; +lean_object* v___x_784_; +v___x_784_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___y_766_ = v___y_782_; +v___y_767_ = v___y_776_; +v___y_768_ = v___y_777_; +v___y_769_ = v___y_779_; +v___y_770_ = v___y_778_; +v___y_771_ = v___y_780_; +v___y_772_ = v___x_784_; +goto v___jp_765_; } default: { -lean_object* v_ipv6_774_; lean_object* v___x_775_; lean_object* v___x_776_; lean_object* v___x_777_; lean_object* v___x_778_; lean_object* v___x_779_; -v_ipv6_774_ = lean_ctor_get(v_host_767_, 0); -lean_inc_ref(v_ipv6_774_); -lean_dec_ref(v_host_767_); -v___x_775_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__13)); -v___x_776_ = lean_uv_ntop_v6(v_ipv6_774_); -lean_dec_ref(v_ipv6_774_); -v___x_777_ = lean_string_append(v___x_775_, v___x_776_); -lean_dec_ref(v___x_776_); -v___x_778_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__14)); -v___x_779_ = lean_string_append(v___x_777_, v___x_778_); -v___y_749_ = v___y_765_; -v___y_750_ = v___y_764_; -v___y_751_ = v___y_766_; -v_port_752_ = v_port_768_; -v___y_753_ = v___y_770_; -v___y_754_ = v___y_769_; -v___y_755_ = v___x_779_; -goto v___jp_748_; +uint16_t v_port_785_; lean_object* v___x_786_; lean_object* v___x_787_; lean_object* v___x_788_; lean_object* v___x_789_; +v_port_785_ = lean_ctor_get_uint16(v_port_781_, 0); +lean_dec_ref(v_port_781_); +v___x_786_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___x_787_ = lean_uint16_to_nat(v_port_785_); +v___x_788_ = l_Nat_reprFast(v___x_787_); +v___x_789_ = lean_string_append(v___x_786_, v___x_788_); +lean_dec_ref(v___x_788_); +v___y_766_ = v___y_782_; +v___y_767_ = v___y_776_; +v___y_768_ = v___y_777_; +v___y_769_ = v___y_779_; +v___y_770_ = v___y_778_; +v___y_771_ = v___y_780_; +v___y_772_ = v___x_789_; +goto v___jp_765_; } } } -v___jp_780_: +v___jp_790_: { -lean_object* v___x_790_; lean_object* v___x_791_; uint8_t v___x_792_; -v___x_790_ = lean_array_get_size(v___y_785_); -v___x_791_ = lean_unsigned_to_nat(0u); -v___x_792_ = lean_nat_dec_eq(v___x_790_, v___x_791_); -if (v___x_792_ == 0) -{ -lean_object* v___x_793_; lean_object* v___x_794_; lean_object* v_encodedParams_795_; lean_object* v___x_796_; lean_object* v___x_797_; lean_object* v___x_798_; lean_object* v___x_799_; -v___x_793_ = lean_array_to_list(v___y_785_); -v___x_794_ = lean_box(0); -v_encodedParams_795_ = l_List_mapTR_loop___redArg(v___f_644_, v___x_793_, v___x_794_); -v___x_796_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__9)); -v___x_797_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__10)); -v___x_798_ = l_String_intercalate(v___x_797_, v_encodedParams_795_); -v___x_799_ = lean_string_append(v___x_796_, v___x_798_); -lean_dec_ref(v___x_798_); -v___y_723_ = v___y_789_; -v___y_724_ = v___y_782_; -v___y_725_ = v___y_781_; -v___y_726_ = v___y_783_; -v___y_727_ = v___y_784_; -v___y_728_ = v___y_786_; -v___y_729_ = v___y_787_; -v___y_730_ = v___y_788_; -v___y_731_ = v___x_799_; -goto v___jp_722_; -} -else -{ -lean_object* v___x_800_; -lean_dec_ref(v___y_785_); -v___x_800_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_723_ = v___y_789_; -v___y_724_ = v___y_782_; -v___y_725_ = v___y_781_; -v___y_726_ = v___y_783_; -v___y_727_ = v___y_784_; -v___y_728_ = v___y_786_; -v___y_729_ = v___y_787_; -v___y_730_ = v___y_788_; -v___y_731_ = v___x_800_; -goto v___jp_722_; -} -} -v___jp_801_: -{ -lean_object* v_segments_811_; uint8_t v_absolute_812_; lean_object* v___x_813_; lean_object* v___x_814_; size_t v_sz_815_; size_t v___x_816_; lean_object* v___x_817_; lean_object* v___x_818_; lean_object* v_result_819_; -v_segments_811_ = lean_ctor_get(v___y_809_, 0); -lean_inc_ref(v_segments_811_); -v_absolute_812_ = lean_ctor_get_uint8(v___y_809_, sizeof(void*)*1); -lean_dec_ref(v___y_809_); -v___x_813_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__15)); -v___x_814_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__25)); -v_sz_815_ = lean_array_size(v_segments_811_); -v___x_816_ = ((size_t)0ULL); -v___x_817_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), v___x_814_, v___f_643_, v_sz_815_, v___x_816_, v_segments_811_); -v___x_818_ = lean_array_to_list(v___x_817_); -v_result_819_ = l_String_intercalate(v___x_813_, v___x_818_); -if (v_absolute_812_ == 0) -{ -v___y_781_ = v___y_803_; -v___y_782_ = v___y_802_; -v___y_783_ = v___y_804_; -v___y_784_ = v___y_805_; -v___y_785_ = v___y_806_; -v___y_786_ = v___y_807_; -v___y_787_ = v___y_810_; -v___y_788_ = v___y_808_; -v___y_789_ = v_result_819_; -goto v___jp_780_; -} -else -{ -lean_object* v___x_820_; -v___x_820_ = lean_string_append(v___x_813_, v_result_819_); -lean_dec_ref(v_result_819_); -v___y_781_ = v___y_803_; -v___y_782_ = v___y_802_; -v___y_783_ = v___y_804_; -v___y_784_ = v___y_805_; -v___y_785_ = v___y_806_; -v___y_786_ = v___y_807_; -v___y_787_ = v___y_810_; -v___y_788_ = v___y_808_; -v___y_789_ = v___x_820_; -goto v___jp_780_; -} -} -v___jp_821_: -{ -lean_object* v___x_834_; lean_object* v___x_835_; lean_object* v___x_836_; -v___x_834_ = lean_string_append(v___y_827_, v___y_832_); -lean_dec_ref(v___y_832_); -v___x_835_ = lean_string_append(v___x_834_, v___y_833_); -lean_dec_ref(v___y_833_); -lean_inc_ref(v___y_825_); -v___x_836_ = lean_string_append(v___y_825_, v___x_835_); -lean_dec_ref(v___x_835_); -v___y_802_ = v___y_823_; -v___y_803_ = v___y_822_; -v___y_804_ = v___y_824_; -v___y_805_ = v___y_826_; -v___y_806_ = v___y_828_; -v___y_807_ = v___y_829_; -v___y_808_ = v___y_830_; -v___y_809_ = v___y_831_; -v___y_810_ = v___x_836_; -goto v___jp_801_; -} -v___jp_837_: -{ -switch(lean_obj_tag(v_port_846_)) +switch(lean_obj_tag(v_host_795_)) { case 0: { -lean_object* v___x_850_; -v___x_850_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_822_ = v___y_839_; -v___y_823_ = v___y_838_; -v___y_824_ = v___y_840_; -v___y_825_ = v___y_841_; -v___y_826_ = v___y_843_; -v___y_827_ = v___y_842_; -v___y_828_ = v___y_844_; -v___y_829_ = v___y_845_; -v___y_830_ = v___y_847_; -v___y_831_ = v___y_848_; -v___y_832_ = v___y_849_; -v___y_833_ = v___x_850_; -goto v___jp_821_; +lean_object* v_name_798_; +v_name_798_ = lean_ctor_get(v_host_795_, 0); +lean_inc_ref(v_name_798_); +lean_dec_ref(v_host_795_); +v___y_776_ = v___y_791_; +v___y_777_ = v___y_797_; +v___y_778_ = v___y_793_; +v___y_779_ = v___y_792_; +v___y_780_ = v___y_794_; +v_port_781_ = v_port_796_; +v___y_782_ = v_name_798_; +goto v___jp_775_; } case 1: { -lean_object* v___x_851_; -v___x_851_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___y_822_ = v___y_839_; -v___y_823_ = v___y_838_; -v___y_824_ = v___y_840_; -v___y_825_ = v___y_841_; -v___y_826_ = v___y_843_; -v___y_827_ = v___y_842_; -v___y_828_ = v___y_844_; -v___y_829_ = v___y_845_; -v___y_830_ = v___y_847_; -v___y_831_ = v___y_848_; -v___y_832_ = v___y_849_; -v___y_833_ = v___x_851_; -goto v___jp_821_; +lean_object* v_ipv4_799_; lean_object* v___x_800_; +v_ipv4_799_ = lean_ctor_get(v_host_795_, 0); +lean_inc_ref(v_ipv4_799_); +lean_dec_ref(v_host_795_); +v___x_800_ = lean_uv_ntop_v4(v_ipv4_799_); +lean_dec_ref(v_ipv4_799_); +v___y_776_ = v___y_791_; +v___y_777_ = v___y_797_; +v___y_778_ = v___y_793_; +v___y_779_ = v___y_792_; +v___y_780_ = v___y_794_; +v_port_781_ = v_port_796_; +v___y_782_ = v___x_800_; +goto v___jp_775_; } default: { -uint16_t v_port_852_; lean_object* v___x_853_; lean_object* v___x_854_; lean_object* v___x_855_; lean_object* v___x_856_; -v_port_852_ = lean_ctor_get_uint16(v_port_846_, 0); -lean_dec_ref(v_port_846_); -v___x_853_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___x_854_ = lean_uint16_to_nat(v_port_852_); -v___x_855_ = l_Nat_reprFast(v___x_854_); -v___x_856_ = lean_string_append(v___x_853_, v___x_855_); -lean_dec_ref(v___x_855_); -v___y_822_ = v___y_839_; -v___y_823_ = v___y_838_; -v___y_824_ = v___y_840_; -v___y_825_ = v___y_841_; -v___y_826_ = v___y_843_; -v___y_827_ = v___y_842_; -v___y_828_ = v___y_844_; -v___y_829_ = v___y_845_; -v___y_830_ = v___y_847_; -v___y_831_ = v___y_848_; -v___y_832_ = v___y_849_; -v___y_833_ = v___x_856_; -goto v___jp_821_; +lean_object* v_ipv6_801_; lean_object* v___x_802_; lean_object* v___x_803_; lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; +v_ipv6_801_ = lean_ctor_get(v_host_795_, 0); +lean_inc_ref(v_ipv6_801_); +lean_dec_ref(v_host_795_); +v___x_802_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__13)); +v___x_803_ = lean_uv_ntop_v6(v_ipv6_801_); +lean_dec_ref(v_ipv6_801_); +v___x_804_ = lean_string_append(v___x_802_, v___x_803_); +lean_dec_ref(v___x_803_); +v___x_805_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__14)); +v___x_806_ = lean_string_append(v___x_804_, v___x_805_); +v___y_776_ = v___y_791_; +v___y_777_ = v___y_797_; +v___y_778_ = v___y_793_; +v___y_779_ = v___y_792_; +v___y_780_ = v___y_794_; +v_port_781_ = v_port_796_; +v___y_782_ = v___x_806_; +goto v___jp_775_; } } } -v___jp_857_: +v___jp_807_: { -switch(lean_obj_tag(v_host_866_)) +lean_object* v___x_817_; lean_object* v___x_818_; uint8_t v___x_819_; +v___x_817_ = lean_array_get_size(v___y_810_); +v___x_818_ = lean_unsigned_to_nat(0u); +v___x_819_ = lean_nat_dec_eq(v___x_817_, v___x_818_); +if (v___x_819_ == 0) +{ +lean_object* v___x_820_; lean_object* v___x_821_; lean_object* v_encodedParams_822_; lean_object* v___x_823_; lean_object* v___x_824_; lean_object* v___x_825_; lean_object* v___x_826_; +v___x_820_ = lean_array_to_list(v___y_810_); +v___x_821_ = lean_box(0); +v_encodedParams_822_ = l_List_mapTR_loop___redArg(v___f_671_, v___x_820_, v___x_821_); +v___x_823_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__9)); +v___x_824_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__10)); +v___x_825_ = l_String_intercalate(v___x_824_, v_encodedParams_822_); +v___x_826_ = lean_string_append(v___x_823_, v___x_825_); +lean_dec_ref(v___x_825_); +v___y_750_ = v___y_808_; +v___y_751_ = v___y_809_; +v___y_752_ = v___y_811_; +v___y_753_ = v___y_813_; +v___y_754_ = v___y_812_; +v___y_755_ = v___y_814_; +v___y_756_ = v___y_815_; +v___y_757_ = v___y_816_; +v___y_758_ = v___x_826_; +goto v___jp_749_; +} +else +{ +lean_object* v___x_827_; +lean_dec_ref(v___y_810_); +v___x_827_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_750_ = v___y_808_; +v___y_751_ = v___y_809_; +v___y_752_ = v___y_811_; +v___y_753_ = v___y_813_; +v___y_754_ = v___y_812_; +v___y_755_ = v___y_814_; +v___y_756_ = v___y_815_; +v___y_757_ = v___y_816_; +v___y_758_ = v___x_827_; +goto v___jp_749_; +} +} +v___jp_828_: +{ +lean_object* v_segments_838_; uint8_t v_absolute_839_; lean_object* v___x_840_; lean_object* v___x_841_; size_t v_sz_842_; size_t v___x_843_; lean_object* v___x_844_; lean_object* v___x_845_; lean_object* v_result_846_; +v_segments_838_ = lean_ctor_get(v___y_834_, 0); +lean_inc_ref(v_segments_838_); +v_absolute_839_ = lean_ctor_get_uint8(v___y_834_, sizeof(void*)*1); +lean_dec_ref(v___y_834_); +v___x_840_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__15)); +v___x_841_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__25)); +v_sz_842_ = lean_array_size(v_segments_838_); +v___x_843_ = ((size_t)0ULL); +v___x_844_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), v___x_841_, v___f_670_, v_sz_842_, v___x_843_, v_segments_838_); +v___x_845_ = lean_array_to_list(v___x_844_); +v_result_846_ = l_String_intercalate(v___x_840_, v___x_845_); +if (v_absolute_839_ == 0) +{ +v___y_808_ = v___y_837_; +v___y_809_ = v___y_829_; +v___y_810_ = v___y_830_; +v___y_811_ = v___y_831_; +v___y_812_ = v___y_833_; +v___y_813_ = v___y_832_; +v___y_814_ = v___y_835_; +v___y_815_ = v___y_836_; +v___y_816_ = v_result_846_; +goto v___jp_807_; +} +else +{ +lean_object* v___x_847_; +v___x_847_ = lean_string_append(v___x_840_, v_result_846_); +lean_dec_ref(v_result_846_); +v___y_808_ = v___y_837_; +v___y_809_ = v___y_829_; +v___y_810_ = v___y_830_; +v___y_811_ = v___y_831_; +v___y_812_ = v___y_833_; +v___y_813_ = v___y_832_; +v___y_814_ = v___y_835_; +v___y_815_ = v___y_836_; +v___y_816_ = v___x_847_; +goto v___jp_807_; +} +} +v___jp_848_: +{ +lean_object* v___x_861_; lean_object* v___x_862_; lean_object* v___x_863_; +v___x_861_ = lean_string_append(v___y_859_, v___y_858_); +lean_dec_ref(v___y_858_); +v___x_862_ = lean_string_append(v___x_861_, v___y_860_); +lean_dec_ref(v___y_860_); +lean_inc_ref(v___y_852_); +v___x_863_ = lean_string_append(v___y_852_, v___x_862_); +lean_dec_ref(v___x_862_); +v___y_829_ = v___y_849_; +v___y_830_ = v___y_850_; +v___y_831_ = v___y_851_; +v___y_832_ = v___y_854_; +v___y_833_ = v___y_853_; +v___y_834_ = v___y_856_; +v___y_835_ = v___y_855_; +v___y_836_ = v___y_857_; +v___y_837_ = v___x_863_; +goto v___jp_828_; +} +v___jp_864_: +{ +switch(lean_obj_tag(v_port_869_)) { case 0: { -lean_object* v_name_870_; -v_name_870_ = lean_ctor_get(v_host_866_, 0); -lean_inc_ref(v_name_870_); -lean_dec_ref(v_host_866_); -v___y_838_ = v___y_859_; -v___y_839_ = v___y_858_; -v___y_840_ = v___y_860_; -v___y_841_ = v___y_861_; -v___y_842_ = v___y_869_; -v___y_843_ = v___y_862_; -v___y_844_ = v___y_863_; -v___y_845_ = v___y_864_; -v_port_846_ = v_port_867_; -v___y_847_ = v___y_865_; -v___y_848_ = v___y_868_; -v___y_849_ = v_name_870_; -goto v___jp_837_; +lean_object* v___x_877_; +v___x_877_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_849_ = v___y_865_; +v___y_850_ = v___y_866_; +v___y_851_ = v___y_867_; +v___y_852_ = v___y_868_; +v___y_853_ = v___y_871_; +v___y_854_ = v___y_870_; +v___y_855_ = v___y_873_; +v___y_856_ = v___y_872_; +v___y_857_ = v___y_875_; +v___y_858_ = v___y_876_; +v___y_859_ = v___y_874_; +v___y_860_ = v___x_877_; +goto v___jp_848_; } case 1: { -lean_object* v_ipv4_871_; lean_object* v___x_872_; -v_ipv4_871_ = lean_ctor_get(v_host_866_, 0); -lean_inc_ref(v_ipv4_871_); -lean_dec_ref(v_host_866_); -v___x_872_ = lean_uv_ntop_v4(v_ipv4_871_); -lean_dec_ref(v_ipv4_871_); -v___y_838_ = v___y_859_; -v___y_839_ = v___y_858_; -v___y_840_ = v___y_860_; -v___y_841_ = v___y_861_; -v___y_842_ = v___y_869_; -v___y_843_ = v___y_862_; -v___y_844_ = v___y_863_; -v___y_845_ = v___y_864_; -v_port_846_ = v_port_867_; -v___y_847_ = v___y_865_; -v___y_848_ = v___y_868_; -v___y_849_ = v___x_872_; -goto v___jp_837_; +lean_object* v___x_878_; +v___x_878_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___y_849_ = v___y_865_; +v___y_850_ = v___y_866_; +v___y_851_ = v___y_867_; +v___y_852_ = v___y_868_; +v___y_853_ = v___y_871_; +v___y_854_ = v___y_870_; +v___y_855_ = v___y_873_; +v___y_856_ = v___y_872_; +v___y_857_ = v___y_875_; +v___y_858_ = v___y_876_; +v___y_859_ = v___y_874_; +v___y_860_ = v___x_878_; +goto v___jp_848_; } default: { -lean_object* v_ipv6_873_; lean_object* v___x_874_; lean_object* v___x_875_; lean_object* v___x_876_; lean_object* v___x_877_; lean_object* v___x_878_; -v_ipv6_873_ = lean_ctor_get(v_host_866_, 0); -lean_inc_ref(v_ipv6_873_); -lean_dec_ref(v_host_866_); -v___x_874_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__13)); -v___x_875_ = lean_uv_ntop_v6(v_ipv6_873_); -lean_dec_ref(v_ipv6_873_); -v___x_876_ = lean_string_append(v___x_874_, v___x_875_); -lean_dec_ref(v___x_875_); -v___x_877_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__14)); -v___x_878_ = lean_string_append(v___x_876_, v___x_877_); -v___y_838_ = v___y_859_; -v___y_839_ = v___y_858_; -v___y_840_ = v___y_860_; -v___y_841_ = v___y_861_; -v___y_842_ = v___y_869_; -v___y_843_ = v___y_862_; -v___y_844_ = v___y_863_; -v___y_845_ = v___y_864_; -v_port_846_ = v_port_867_; -v___y_847_ = v___y_865_; -v___y_848_ = v___y_868_; -v___y_849_ = v___x_878_; -goto v___jp_837_; +uint16_t v_port_879_; lean_object* v___x_880_; lean_object* v___x_881_; lean_object* v___x_882_; lean_object* v___x_883_; +v_port_879_ = lean_ctor_get_uint16(v_port_869_, 0); +lean_dec_ref(v_port_869_); +v___x_880_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___x_881_ = lean_uint16_to_nat(v_port_879_); +v___x_882_ = l_Nat_reprFast(v___x_881_); +v___x_883_ = lean_string_append(v___x_880_, v___x_882_); +lean_dec_ref(v___x_882_); +v___y_849_ = v___y_865_; +v___y_850_ = v___y_866_; +v___y_851_ = v___y_867_; +v___y_852_ = v___y_868_; +v___y_853_ = v___y_871_; +v___y_854_ = v___y_870_; +v___y_855_ = v___y_873_; +v___y_856_ = v___y_872_; +v___y_857_ = v___y_875_; +v___y_858_ = v___y_876_; +v___y_859_ = v___y_874_; +v___y_860_ = v___x_883_; +goto v___jp_848_; } } } -v___jp_879_: +v___jp_884_: { -lean_object* v_data_881_; lean_object* v_size_882_; lean_object* v___x_883_; lean_object* v___x_884_; lean_object* v___x_885_; lean_object* v___x_886_; lean_object* v___x_887_; lean_object* v___x_888_; lean_object* v___x_889_; lean_object* v___x_890_; -v_data_881_ = lean_ctor_get(v_buffer_637_, 0); -lean_inc_ref(v_data_881_); -v_size_882_ = lean_ctor_get(v_buffer_637_, 1); -lean_inc(v_size_882_); -lean_dec_ref(v_buffer_637_); -v___x_883_ = lean_string_to_utf8(v___y_880_); -lean_inc_ref(v___x_883_); -v___x_884_ = lean_array_push(v_data_881_, v___x_883_); -v___x_885_ = lean_byte_array_size(v___x_883_); -lean_dec_ref(v___x_883_); -v___x_886_ = lean_nat_add(v_size_882_, v___x_885_); -lean_dec(v_size_882_); -v___x_887_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); -v___x_888_ = lean_array_push(v___x_884_, v___x_887_); -v___x_889_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28); -v___x_890_ = lean_nat_add(v___x_886_, v___x_889_); -lean_dec(v___x_886_); -switch(lean_obj_tag(v_uri_641_)) +switch(lean_obj_tag(v_host_891_)) { case 0: { -lean_object* v_path_891_; lean_object* v_query_892_; lean_object* v_segments_893_; uint8_t v_absolute_894_; lean_object* v___x_895_; lean_object* v___x_896_; size_t v_sz_897_; size_t v___x_898_; lean_object* v___x_899_; lean_object* v___x_900_; lean_object* v_result_901_; -v_path_891_ = lean_ctor_get(v_uri_641_, 0); -lean_inc_ref(v_path_891_); -v_query_892_ = lean_ctor_get(v_uri_641_, 1); -lean_inc(v_query_892_); -lean_dec_ref(v_uri_641_); -v_segments_893_ = lean_ctor_get(v_path_891_, 0); -lean_inc_ref(v_segments_893_); -v_absolute_894_ = lean_ctor_get_uint8(v_path_891_, sizeof(void*)*1); -lean_dec_ref(v_path_891_); -v___x_895_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__15)); -v___x_896_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__25)); -v_sz_897_ = lean_array_size(v_segments_893_); -v___x_898_ = ((size_t)0ULL); -v___x_899_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), v___x_896_, v___f_643_, v_sz_897_, v___x_898_, v_segments_893_); -v___x_900_ = lean_array_to_list(v___x_899_); -v_result_901_ = l_String_intercalate(v___x_895_, v___x_900_); -if (v_absolute_894_ == 0) +lean_object* v_name_897_; +v_name_897_ = lean_ctor_get(v_host_891_, 0); +lean_inc_ref(v_name_897_); +lean_dec_ref(v_host_891_); +v___y_865_ = v___y_885_; +v___y_866_ = v___y_886_; +v___y_867_ = v___y_887_; +v___y_868_ = v___y_888_; +v_port_869_ = v_port_892_; +v___y_870_ = v___y_890_; +v___y_871_ = v___y_889_; +v___y_872_ = v___y_894_; +v___y_873_ = v___y_893_; +v___y_874_ = v___y_896_; +v___y_875_ = v___y_895_; +v___y_876_ = v_name_897_; +goto v___jp_864_; +} +case 1: { -v___y_688_ = v___x_888_; -v___y_689_ = v___x_890_; -v___y_690_ = v___x_887_; -v___y_691_ = v_query_892_; -v___y_692_ = v___x_889_; -v___y_693_ = v_result_901_; -goto v___jp_687_; +lean_object* v_ipv4_898_; lean_object* v___x_899_; +v_ipv4_898_ = lean_ctor_get(v_host_891_, 0); +lean_inc_ref(v_ipv4_898_); +lean_dec_ref(v_host_891_); +v___x_899_ = lean_uv_ntop_v4(v_ipv4_898_); +lean_dec_ref(v_ipv4_898_); +v___y_865_ = v___y_885_; +v___y_866_ = v___y_886_; +v___y_867_ = v___y_887_; +v___y_868_ = v___y_888_; +v_port_869_ = v_port_892_; +v___y_870_ = v___y_890_; +v___y_871_ = v___y_889_; +v___y_872_ = v___y_894_; +v___y_873_ = v___y_893_; +v___y_874_ = v___y_896_; +v___y_875_ = v___y_895_; +v___y_876_ = v___x_899_; +goto v___jp_864_; +} +default: +{ +lean_object* v_ipv6_900_; lean_object* v___x_901_; lean_object* v___x_902_; lean_object* v___x_903_; lean_object* v___x_904_; lean_object* v___x_905_; +v_ipv6_900_ = lean_ctor_get(v_host_891_, 0); +lean_inc_ref(v_ipv6_900_); +lean_dec_ref(v_host_891_); +v___x_901_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__13)); +v___x_902_ = lean_uv_ntop_v6(v_ipv6_900_); +lean_dec_ref(v_ipv6_900_); +v___x_903_ = lean_string_append(v___x_901_, v___x_902_); +lean_dec_ref(v___x_902_); +v___x_904_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__14)); +v___x_905_ = lean_string_append(v___x_903_, v___x_904_); +v___y_865_ = v___y_885_; +v___y_866_ = v___y_886_; +v___y_867_ = v___y_887_; +v___y_868_ = v___y_888_; +v_port_869_ = v_port_892_; +v___y_870_ = v___y_890_; +v___y_871_ = v___y_889_; +v___y_872_ = v___y_894_; +v___y_873_ = v___y_893_; +v___y_874_ = v___y_896_; +v___y_875_ = v___y_895_; +v___y_876_ = v___x_905_; +goto v___jp_864_; +} +} +} +v___jp_906_: +{ +lean_object* v_data_908_; lean_object* v_size_909_; lean_object* v___x_910_; lean_object* v___x_911_; lean_object* v___x_912_; lean_object* v___x_913_; lean_object* v___x_914_; lean_object* v___x_915_; lean_object* v___x_916_; lean_object* v___x_917_; +v_data_908_ = lean_ctor_get(v_buffer_664_, 0); +lean_inc_ref(v_data_908_); +v_size_909_ = lean_ctor_get(v_buffer_664_, 1); +lean_inc(v_size_909_); +lean_dec_ref(v_buffer_664_); +v___x_910_ = lean_string_to_utf8(v___y_907_); +lean_inc_ref(v___x_910_); +v___x_911_ = lean_array_push(v_data_908_, v___x_910_); +v___x_912_ = lean_byte_array_size(v___x_910_); +lean_dec_ref(v___x_910_); +v___x_913_ = lean_nat_add(v_size_909_, v___x_912_); +lean_dec(v_size_909_); +v___x_914_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); +v___x_915_ = lean_array_push(v___x_911_, v___x_914_); +v___x_916_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28); +v___x_917_ = lean_nat_add(v___x_913_, v___x_916_); +lean_dec(v___x_913_); +switch(lean_obj_tag(v_uri_668_)) +{ +case 0: +{ +lean_object* v_path_918_; lean_object* v_query_919_; lean_object* v_segments_920_; uint8_t v_absolute_921_; lean_object* v___x_922_; lean_object* v___x_923_; size_t v_sz_924_; size_t v___x_925_; lean_object* v___x_926_; lean_object* v___x_927_; lean_object* v_result_928_; +v_path_918_ = lean_ctor_get(v_uri_668_, 0); +lean_inc_ref(v_path_918_); +v_query_919_ = lean_ctor_get(v_uri_668_, 1); +lean_inc(v_query_919_); +lean_dec_ref(v_uri_668_); +v_segments_920_ = lean_ctor_get(v_path_918_, 0); +lean_inc_ref(v_segments_920_); +v_absolute_921_ = lean_ctor_get_uint8(v_path_918_, sizeof(void*)*1); +lean_dec_ref(v_path_918_); +v___x_922_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__15)); +v___x_923_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__25)); +v_sz_924_ = lean_array_size(v_segments_920_); +v___x_925_ = ((size_t)0ULL); +v___x_926_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), v___x_923_, v___f_670_, v_sz_924_, v___x_925_, v_segments_920_); +v___x_927_ = lean_array_to_list(v___x_926_); +v_result_928_ = l_String_intercalate(v___x_922_, v___x_927_); +if (v_absolute_921_ == 0) +{ +v___y_715_ = v___x_914_; +v___y_716_ = v_query_919_; +v___y_717_ = v___x_917_; +v___y_718_ = v___x_916_; +v___y_719_ = v___x_915_; +v___y_720_ = v_result_928_; +goto v___jp_714_; } else { -lean_object* v___x_902_; -v___x_902_ = lean_string_append(v___x_895_, v_result_901_); -lean_dec_ref(v_result_901_); -v___y_688_ = v___x_888_; -v___y_689_ = v___x_890_; -v___y_690_ = v___x_887_; -v___y_691_ = v_query_892_; -v___y_692_ = v___x_889_; -v___y_693_ = v___x_902_; -goto v___jp_687_; +lean_object* v___x_929_; +v___x_929_ = lean_string_append(v___x_922_, v_result_928_); +lean_dec_ref(v_result_928_); +v___y_715_ = v___x_914_; +v___y_716_ = v_query_919_; +v___y_717_ = v___x_917_; +v___y_718_ = v___x_916_; +v___y_719_ = v___x_915_; +v___y_720_ = v___x_929_; +goto v___jp_714_; } } case 1: { -lean_object* v_uri_903_; lean_object* v_authority_904_; -v_uri_903_ = lean_ctor_get(v_uri_641_, 0); -lean_inc_ref(v_uri_903_); -lean_dec_ref(v_uri_641_); -v_authority_904_ = lean_ctor_get(v_uri_903_, 1); -if (lean_obj_tag(v_authority_904_) == 0) +lean_object* v_uri_930_; lean_object* v_authority_931_; +v_uri_930_ = lean_ctor_get(v_uri_668_, 0); +lean_inc_ref(v_uri_930_); +lean_dec_ref(v_uri_668_); +v_authority_931_ = lean_ctor_get(v_uri_930_, 1); +if (lean_obj_tag(v_authority_931_) == 0) { -lean_object* v_scheme_905_; lean_object* v_path_906_; lean_object* v_query_907_; lean_object* v_fragment_908_; lean_object* v___x_909_; -v_scheme_905_ = lean_ctor_get(v_uri_903_, 0); -lean_inc_ref(v_scheme_905_); -v_path_906_ = lean_ctor_get(v_uri_903_, 2); -lean_inc_ref(v_path_906_); -v_query_907_ = lean_ctor_get(v_uri_903_, 3); -lean_inc_ref(v_query_907_); -v_fragment_908_ = lean_ctor_get(v_uri_903_, 4); -lean_inc(v_fragment_908_); -lean_dec_ref(v_uri_903_); -v___x_909_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_802_ = v___x_890_; -v___y_803_ = v___x_888_; -v___y_804_ = v___x_887_; -v___y_805_ = v_scheme_905_; -v___y_806_ = v_query_907_; -v___y_807_ = v_fragment_908_; -v___y_808_ = v___x_889_; -v___y_809_ = v_path_906_; -v___y_810_ = v___x_909_; -goto v___jp_801_; +lean_object* v_scheme_932_; lean_object* v_path_933_; lean_object* v_query_934_; lean_object* v_fragment_935_; lean_object* v___x_936_; +v_scheme_932_ = lean_ctor_get(v_uri_930_, 0); +lean_inc_ref(v_scheme_932_); +v_path_933_ = lean_ctor_get(v_uri_930_, 2); +lean_inc_ref(v_path_933_); +v_query_934_ = lean_ctor_get(v_uri_930_, 3); +lean_inc_ref(v_query_934_); +v_fragment_935_ = lean_ctor_get(v_uri_930_, 4); +lean_inc(v_fragment_935_); +lean_dec_ref(v_uri_930_); +v___x_936_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_829_ = v_fragment_935_; +v___y_830_ = v_query_934_; +v___y_831_ = v___x_914_; +v___y_832_ = v___x_916_; +v___y_833_ = v___x_917_; +v___y_834_ = v_path_933_; +v___y_835_ = v___x_915_; +v___y_836_ = v_scheme_932_; +v___y_837_ = v___x_936_; +goto v___jp_828_; } else { -lean_object* v_val_910_; lean_object* v_scheme_911_; lean_object* v_path_912_; lean_object* v_query_913_; lean_object* v_fragment_914_; lean_object* v_userInfo_915_; lean_object* v_host_916_; lean_object* v_port_917_; lean_object* v___x_918_; -v_val_910_ = lean_ctor_get(v_authority_904_, 0); -lean_inc(v_val_910_); -v_scheme_911_ = lean_ctor_get(v_uri_903_, 0); -lean_inc_ref(v_scheme_911_); -v_path_912_ = lean_ctor_get(v_uri_903_, 2); -lean_inc_ref(v_path_912_); -v_query_913_ = lean_ctor_get(v_uri_903_, 3); -lean_inc_ref(v_query_913_); -v_fragment_914_ = lean_ctor_get(v_uri_903_, 4); -lean_inc(v_fragment_914_); -lean_dec_ref(v_uri_903_); -v_userInfo_915_ = lean_ctor_get(v_val_910_, 0); -lean_inc(v_userInfo_915_); -v_host_916_ = lean_ctor_get(v_val_910_, 1); -lean_inc_ref(v_host_916_); -v_port_917_ = lean_ctor_get(v_val_910_, 2); -lean_inc(v_port_917_); -lean_dec(v_val_910_); -v___x_918_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__29)); -if (lean_obj_tag(v_userInfo_915_) == 0) +lean_object* v_val_937_; lean_object* v_scheme_938_; lean_object* v_path_939_; lean_object* v_query_940_; lean_object* v_fragment_941_; lean_object* v_userInfo_942_; lean_object* v_host_943_; lean_object* v_port_944_; lean_object* v___x_945_; +v_val_937_ = lean_ctor_get(v_authority_931_, 0); +lean_inc(v_val_937_); +v_scheme_938_ = lean_ctor_get(v_uri_930_, 0); +lean_inc_ref(v_scheme_938_); +v_path_939_ = lean_ctor_get(v_uri_930_, 2); +lean_inc_ref(v_path_939_); +v_query_940_ = lean_ctor_get(v_uri_930_, 3); +lean_inc_ref(v_query_940_); +v_fragment_941_ = lean_ctor_get(v_uri_930_, 4); +lean_inc(v_fragment_941_); +lean_dec_ref(v_uri_930_); +v_userInfo_942_ = lean_ctor_get(v_val_937_, 0); +lean_inc(v_userInfo_942_); +v_host_943_ = lean_ctor_get(v_val_937_, 1); +lean_inc_ref(v_host_943_); +v_port_944_ = lean_ctor_get(v_val_937_, 2); +lean_inc(v_port_944_); +lean_dec(v_val_937_); +v___x_945_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__29)); +if (lean_obj_tag(v_userInfo_942_) == 0) { -lean_object* v___x_919_; -v___x_919_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_858_ = v___x_888_; -v___y_859_ = v___x_890_; -v___y_860_ = v___x_887_; -v___y_861_ = v___x_918_; -v___y_862_ = v_scheme_911_; -v___y_863_ = v_query_913_; -v___y_864_ = v_fragment_914_; -v___y_865_ = v___x_889_; -v_host_866_ = v_host_916_; -v_port_867_ = v_port_917_; -v___y_868_ = v_path_912_; -v___y_869_ = v___x_919_; -goto v___jp_857_; +lean_object* v___x_946_; +v___x_946_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_885_ = v_fragment_941_; +v___y_886_ = v_query_940_; +v___y_887_ = v___x_914_; +v___y_888_ = v___x_945_; +v___y_889_ = v___x_917_; +v___y_890_ = v___x_916_; +v_host_891_ = v_host_943_; +v_port_892_ = v_port_944_; +v___y_893_ = v___x_915_; +v___y_894_ = v_path_939_; +v___y_895_ = v_scheme_938_; +v___y_896_ = v___x_946_; +goto v___jp_884_; } else { -lean_object* v_val_920_; lean_object* v_password_921_; -v_val_920_ = lean_ctor_get(v_userInfo_915_, 0); -lean_inc(v_val_920_); -lean_dec_ref(v_userInfo_915_); -v_password_921_ = lean_ctor_get(v_val_920_, 1); -if (lean_obj_tag(v_password_921_) == 0) +lean_object* v_val_947_; lean_object* v_password_948_; +v_val_947_ = lean_ctor_get(v_userInfo_942_, 0); +lean_inc(v_val_947_); +lean_dec_ref(v_userInfo_942_); +v_password_948_ = lean_ctor_get(v_val_947_, 1); +if (lean_obj_tag(v_password_948_) == 0) { -lean_object* v_username_922_; lean_object* v___x_923_; lean_object* v___x_924_; lean_object* v___x_925_; -v_username_922_ = lean_ctor_get(v_val_920_, 0); -lean_inc_ref(v_username_922_); -lean_dec(v_val_920_); -v___x_923_ = lean_string_from_utf8_unchecked(v_username_922_); -v___x_924_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); -v___x_925_ = lean_string_append(v___x_923_, v___x_924_); -v___y_858_ = v___x_888_; -v___y_859_ = v___x_890_; -v___y_860_ = v___x_887_; -v___y_861_ = v___x_918_; -v___y_862_ = v_scheme_911_; -v___y_863_ = v_query_913_; -v___y_864_ = v_fragment_914_; -v___y_865_ = v___x_889_; -v_host_866_ = v_host_916_; -v_port_867_ = v_port_917_; -v___y_868_ = v_path_912_; -v___y_869_ = v___x_925_; -goto v___jp_857_; +lean_object* v_username_949_; lean_object* v___x_950_; lean_object* v___x_951_; lean_object* v___x_952_; +v_username_949_ = lean_ctor_get(v_val_947_, 0); +lean_inc_ref(v_username_949_); +lean_dec(v_val_947_); +v___x_950_ = lean_string_from_utf8_unchecked(v_username_949_); +v___x_951_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); +v___x_952_ = lean_string_append(v___x_950_, v___x_951_); +v___y_885_ = v_fragment_941_; +v___y_886_ = v_query_940_; +v___y_887_ = v___x_914_; +v___y_888_ = v___x_945_; +v___y_889_ = v___x_917_; +v___y_890_ = v___x_916_; +v_host_891_ = v_host_943_; +v_port_892_ = v_port_944_; +v___y_893_ = v___x_915_; +v___y_894_ = v_path_939_; +v___y_895_ = v_scheme_938_; +v___y_896_ = v___x_952_; +goto v___jp_884_; } else { -lean_object* v_username_926_; lean_object* v_val_927_; lean_object* v___x_928_; lean_object* v___x_929_; lean_object* v___x_930_; lean_object* v___x_931_; lean_object* v___x_932_; lean_object* v___x_933_; lean_object* v___x_934_; -lean_inc_ref(v_password_921_); -v_username_926_ = lean_ctor_get(v_val_920_, 0); -lean_inc_ref(v_username_926_); -lean_dec(v_val_920_); -v_val_927_ = lean_ctor_get(v_password_921_, 0); -lean_inc(v_val_927_); -lean_dec_ref(v_password_921_); -v___x_928_ = lean_string_from_utf8_unchecked(v_username_926_); -v___x_929_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___x_930_ = lean_string_append(v___x_928_, v___x_929_); -v___x_931_ = lean_string_from_utf8_unchecked(v_val_927_); -v___x_932_ = lean_string_append(v___x_930_, v___x_931_); -lean_dec_ref(v___x_931_); -v___x_933_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); -v___x_934_ = lean_string_append(v___x_932_, v___x_933_); -v___y_858_ = v___x_888_; -v___y_859_ = v___x_890_; -v___y_860_ = v___x_887_; -v___y_861_ = v___x_918_; -v___y_862_ = v_scheme_911_; -v___y_863_ = v_query_913_; -v___y_864_ = v_fragment_914_; -v___y_865_ = v___x_889_; -v_host_866_ = v_host_916_; -v_port_867_ = v_port_917_; -v___y_868_ = v_path_912_; -v___y_869_ = v___x_934_; -goto v___jp_857_; +lean_object* v_username_953_; lean_object* v_val_954_; lean_object* v___x_955_; lean_object* v___x_956_; lean_object* v___x_957_; lean_object* v___x_958_; lean_object* v___x_959_; lean_object* v___x_960_; lean_object* v___x_961_; +lean_inc_ref(v_password_948_); +v_username_953_ = lean_ctor_get(v_val_947_, 0); +lean_inc_ref(v_username_953_); +lean_dec(v_val_947_); +v_val_954_ = lean_ctor_get(v_password_948_, 0); +lean_inc(v_val_954_); +lean_dec_ref(v_password_948_); +v___x_955_ = lean_string_from_utf8_unchecked(v_username_953_); +v___x_956_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___x_957_ = lean_string_append(v___x_955_, v___x_956_); +v___x_958_ = lean_string_from_utf8_unchecked(v_val_954_); +v___x_959_ = lean_string_append(v___x_957_, v___x_958_); +lean_dec_ref(v___x_958_); +v___x_960_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); +v___x_961_ = lean_string_append(v___x_959_, v___x_960_); +v___y_885_ = v_fragment_941_; +v___y_886_ = v_query_940_; +v___y_887_ = v___x_914_; +v___y_888_ = v___x_945_; +v___y_889_ = v___x_917_; +v___y_890_ = v___x_916_; +v_host_891_ = v_host_943_; +v_port_892_ = v_port_944_; +v___y_893_ = v___x_915_; +v___y_894_ = v_path_939_; +v___y_895_ = v_scheme_938_; +v___y_896_ = v___x_961_; +goto v___jp_884_; } } } } case 2: { -lean_object* v_authority_935_; lean_object* v_userInfo_936_; -v_authority_935_ = lean_ctor_get(v_uri_641_, 0); -lean_inc_ref(v_authority_935_); -lean_dec_ref(v_uri_641_); -v_userInfo_936_ = lean_ctor_get(v_authority_935_, 0); -if (lean_obj_tag(v_userInfo_936_) == 0) +lean_object* v_authority_962_; lean_object* v_userInfo_963_; +v_authority_962_ = lean_ctor_get(v_uri_668_, 0); +lean_inc_ref(v_authority_962_); +lean_dec_ref(v_uri_668_); +v_userInfo_963_ = lean_ctor_get(v_authority_962_, 0); +if (lean_obj_tag(v_userInfo_963_) == 0) { -lean_object* v_host_937_; lean_object* v_port_938_; lean_object* v___x_939_; -v_host_937_ = lean_ctor_get(v_authority_935_, 1); -lean_inc_ref(v_host_937_); -v_port_938_ = lean_ctor_get(v_authority_935_, 2); -lean_inc(v_port_938_); -lean_dec_ref(v_authority_935_); -v___x_939_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); -v___y_764_ = v___x_888_; -v___y_765_ = v___x_890_; -v___y_766_ = v___x_887_; -v_host_767_ = v_host_937_; -v_port_768_ = v_port_938_; -v___y_769_ = v___x_889_; -v___y_770_ = v___x_939_; -goto v___jp_763_; +lean_object* v_host_964_; lean_object* v_port_965_; lean_object* v___x_966_; +v_host_964_ = lean_ctor_get(v_authority_962_, 1); +lean_inc_ref(v_host_964_); +v_port_965_ = lean_ctor_get(v_authority_962_, 2); +lean_inc(v_port_965_); +lean_dec_ref(v_authority_962_); +v___x_966_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___lam__3___closed__5)); +v___y_791_ = v___x_914_; +v___y_792_ = v___x_917_; +v___y_793_ = v___x_916_; +v___y_794_ = v___x_915_; +v_host_795_ = v_host_964_; +v_port_796_ = v_port_965_; +v___y_797_ = v___x_966_; +goto v___jp_790_; } else { -lean_object* v_val_940_; lean_object* v_password_941_; -v_val_940_ = lean_ctor_get(v_userInfo_936_, 0); -lean_inc(v_val_940_); -v_password_941_ = lean_ctor_get(v_val_940_, 1); -if (lean_obj_tag(v_password_941_) == 0) +lean_object* v_val_967_; lean_object* v_password_968_; +v_val_967_ = lean_ctor_get(v_userInfo_963_, 0); +lean_inc(v_val_967_); +v_password_968_ = lean_ctor_get(v_val_967_, 1); +if (lean_obj_tag(v_password_968_) == 0) { -lean_object* v_host_942_; lean_object* v_port_943_; lean_object* v_username_944_; lean_object* v___x_945_; lean_object* v___x_946_; lean_object* v___x_947_; -v_host_942_ = lean_ctor_get(v_authority_935_, 1); -lean_inc_ref(v_host_942_); -v_port_943_ = lean_ctor_get(v_authority_935_, 2); -lean_inc(v_port_943_); -lean_dec_ref(v_authority_935_); -v_username_944_ = lean_ctor_get(v_val_940_, 0); -lean_inc_ref(v_username_944_); -lean_dec(v_val_940_); -v___x_945_ = lean_string_from_utf8_unchecked(v_username_944_); -v___x_946_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); -v___x_947_ = lean_string_append(v___x_945_, v___x_946_); -v___y_764_ = v___x_888_; -v___y_765_ = v___x_890_; -v___y_766_ = v___x_887_; -v_host_767_ = v_host_942_; -v_port_768_ = v_port_943_; -v___y_769_ = v___x_889_; -v___y_770_ = v___x_947_; -goto v___jp_763_; +lean_object* v_host_969_; lean_object* v_port_970_; lean_object* v_username_971_; lean_object* v___x_972_; lean_object* v___x_973_; lean_object* v___x_974_; +v_host_969_ = lean_ctor_get(v_authority_962_, 1); +lean_inc_ref(v_host_969_); +v_port_970_ = lean_ctor_get(v_authority_962_, 2); +lean_inc(v_port_970_); +lean_dec_ref(v_authority_962_); +v_username_971_ = lean_ctor_get(v_val_967_, 0); +lean_inc_ref(v_username_971_); +lean_dec(v_val_967_); +v___x_972_ = lean_string_from_utf8_unchecked(v_username_971_); +v___x_973_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); +v___x_974_ = lean_string_append(v___x_972_, v___x_973_); +v___y_791_ = v___x_914_; +v___y_792_ = v___x_917_; +v___y_793_ = v___x_916_; +v___y_794_ = v___x_915_; +v_host_795_ = v_host_969_; +v_port_796_ = v_port_970_; +v___y_797_ = v___x_974_; +goto v___jp_790_; } else { -lean_object* v_host_948_; lean_object* v_port_949_; lean_object* v_username_950_; lean_object* v_val_951_; lean_object* v___x_952_; lean_object* v___x_953_; lean_object* v___x_954_; lean_object* v___x_955_; lean_object* v___x_956_; lean_object* v___x_957_; lean_object* v___x_958_; -lean_inc_ref(v_password_941_); -v_host_948_ = lean_ctor_get(v_authority_935_, 1); -lean_inc_ref(v_host_948_); -v_port_949_ = lean_ctor_get(v_authority_935_, 2); -lean_inc(v_port_949_); -lean_dec_ref(v_authority_935_); -v_username_950_ = lean_ctor_get(v_val_940_, 0); -lean_inc_ref(v_username_950_); -lean_dec(v_val_940_); -v_val_951_ = lean_ctor_get(v_password_941_, 0); -lean_inc(v_val_951_); -lean_dec_ref(v_password_941_); -v___x_952_ = lean_string_from_utf8_unchecked(v_username_950_); -v___x_953_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); -v___x_954_ = lean_string_append(v___x_952_, v___x_953_); -v___x_955_ = lean_string_from_utf8_unchecked(v_val_951_); -v___x_956_ = lean_string_append(v___x_954_, v___x_955_); -lean_dec_ref(v___x_955_); -v___x_957_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); -v___x_958_ = lean_string_append(v___x_956_, v___x_957_); -v___y_764_ = v___x_888_; -v___y_765_ = v___x_890_; -v___y_766_ = v___x_887_; -v_host_767_ = v_host_948_; -v_port_768_ = v_port_949_; -v___y_769_ = v___x_889_; -v___y_770_ = v___x_958_; -goto v___jp_763_; +lean_object* v_host_975_; lean_object* v_port_976_; lean_object* v_username_977_; lean_object* v_val_978_; lean_object* v___x_979_; lean_object* v___x_980_; lean_object* v___x_981_; lean_object* v___x_982_; lean_object* v___x_983_; lean_object* v___x_984_; lean_object* v___x_985_; +lean_inc_ref(v_password_968_); +v_host_975_ = lean_ctor_get(v_authority_962_, 1); +lean_inc_ref(v_host_975_); +v_port_976_ = lean_ctor_get(v_authority_962_, 2); +lean_inc(v_port_976_); +lean_dec_ref(v_authority_962_); +v_username_977_ = lean_ctor_get(v_val_967_, 0); +lean_inc_ref(v_username_977_); +lean_dec(v_val_967_); +v_val_978_ = lean_ctor_get(v_password_968_, 0); +lean_inc(v_val_978_); +lean_dec_ref(v_password_968_); +v___x_979_ = lean_string_from_utf8_unchecked(v_username_977_); +v___x_980_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__11)); +v___x_981_ = lean_string_append(v___x_979_, v___x_980_); +v___x_982_ = lean_string_from_utf8_unchecked(v_val_978_); +v___x_983_ = lean_string_append(v___x_981_, v___x_982_); +lean_dec_ref(v___x_982_); +v___x_984_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__30)); +v___x_985_ = lean_string_append(v___x_983_, v___x_984_); +v___y_791_ = v___x_914_; +v___y_792_ = v___x_917_; +v___y_793_ = v___x_916_; +v___y_794_ = v___x_915_; +v_host_795_ = v_host_975_; +v_port_796_ = v_port_976_; +v___y_797_ = v___x_985_; +goto v___jp_790_; } } } default: { -lean_object* v___x_959_; -v___x_959_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__31)); -v___y_672_ = v___x_890_; -v___y_673_ = v___x_888_; -v___y_674_ = v___x_887_; -v___y_675_ = v___x_889_; -v___y_676_ = v___x_959_; -goto v___jp_671_; +lean_object* v___x_986_; +v___x_986_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__31)); +v___y_699_ = v___x_914_; +v___y_700_ = v___x_916_; +v___y_701_ = v___x_917_; +v___y_702_ = v___x_915_; +v___y_703_ = v___x_986_; +goto v___jp_698_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3(lean_object* v_buffer_1000_, lean_object* v_r_1001_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3(lean_object* v_buffer_1027_, lean_object* v_r_1028_){ _start: { -lean_object* v_status_1002_; uint8_t v_version_1003_; lean_object* v_headers_1004_; lean_object* v___f_1005_; lean_object* v___y_1007_; -v_status_1002_ = lean_ctor_get(v_r_1001_, 0); -v_version_1003_ = lean_ctor_get_uint8(v_r_1001_, sizeof(void*)*2); -v_headers_1004_ = lean_ctor_get(v_r_1001_, 1); -v___f_1005_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__2)); -switch(v_version_1003_) +lean_object* v_status_1029_; uint8_t v_version_1030_; lean_object* v_headers_1031_; lean_object* v___f_1032_; lean_object* v___y_1034_; +v_status_1029_ = lean_ctor_get(v_r_1028_, 0); +v_version_1030_ = lean_ctor_get_uint8(v_r_1028_, sizeof(void*)*2); +v_headers_1031_ = lean_ctor_get(v_r_1028_, 1); +v___f_1032_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__2)); +switch(v_version_1030_) { case 0: { -lean_object* v___x_1057_; -v___x_1057_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__5)); -v___y_1007_ = v___x_1057_; -goto v___jp_1006_; +lean_object* v___x_1084_; +v___x_1084_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__5)); +v___y_1034_ = v___x_1084_; +goto v___jp_1033_; } case 1: { -lean_object* v___x_1058_; -v___x_1058_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__6)); -v___y_1007_ = v___x_1058_; -goto v___jp_1006_; +lean_object* v___x_1085_; +v___x_1085_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__6)); +v___y_1034_ = v___x_1085_; +goto v___jp_1033_; } case 2: { -lean_object* v___x_1059_; -v___x_1059_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__7)); -v___y_1007_ = v___x_1059_; -goto v___jp_1006_; +lean_object* v___x_1086_; +v___x_1086_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__7)); +v___y_1034_ = v___x_1086_; +goto v___jp_1033_; } default: { -lean_object* v___x_1060_; -v___x_1060_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__8)); -v___y_1007_ = v___x_1060_; -goto v___jp_1006_; +lean_object* v___x_1087_; +v___x_1087_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__8)); +v___y_1034_ = v___x_1087_; +goto v___jp_1033_; } } -v___jp_1006_: +v___jp_1033_: { -lean_object* v_data_1008_; lean_object* v_size_1009_; lean_object* v___x_1011_; uint8_t v_isShared_1012_; uint8_t v_isSharedCheck_1056_; -v_data_1008_ = lean_ctor_get(v_buffer_1000_, 0); -v_size_1009_ = lean_ctor_get(v_buffer_1000_, 1); -v_isSharedCheck_1056_ = !lean_is_exclusive(v_buffer_1000_); -if (v_isSharedCheck_1056_ == 0) +lean_object* v_data_1035_; lean_object* v_size_1036_; lean_object* v___x_1038_; uint8_t v_isShared_1039_; uint8_t v_isSharedCheck_1083_; +v_data_1035_ = lean_ctor_get(v_buffer_1027_, 0); +v_size_1036_ = lean_ctor_get(v_buffer_1027_, 1); +v_isSharedCheck_1083_ = !lean_is_exclusive(v_buffer_1027_); +if (v_isSharedCheck_1083_ == 0) { -v___x_1011_ = v_buffer_1000_; -v_isShared_1012_ = v_isSharedCheck_1056_; -goto v_resetjp_1010_; +v___x_1038_ = v_buffer_1027_; +v_isShared_1039_ = v_isSharedCheck_1083_; +goto v_resetjp_1037_; } else { -lean_inc(v_size_1009_); -lean_inc(v_data_1008_); -lean_dec(v_buffer_1000_); -v___x_1011_ = lean_box(0); -v_isShared_1012_ = v_isSharedCheck_1056_; -goto v_resetjp_1010_; +lean_inc(v_size_1036_); +lean_inc(v_data_1035_); +lean_dec(v_buffer_1027_); +v___x_1038_ = lean_box(0); +v_isShared_1039_ = v_isSharedCheck_1083_; +goto v_resetjp_1037_; } -v_resetjp_1010_: +v_resetjp_1037_: { -lean_object* v___x_1013_; lean_object* v___x_1014_; lean_object* v___x_1015_; lean_object* v___x_1016_; lean_object* v___x_1017_; lean_object* v___x_1018_; lean_object* v___x_1019_; lean_object* v___x_1020_; lean_object* v___x_1021_; lean_object* v___x_1022_; uint16_t v___x_1023_; lean_object* v___x_1024_; lean_object* v___x_1025_; lean_object* v___x_1026_; lean_object* v___x_1027_; lean_object* v___x_1028_; lean_object* v___x_1029_; lean_object* v___x_1030_; lean_object* v___x_1031_; lean_object* v___x_1032_; lean_object* v___x_1033_; lean_object* v___x_1034_; lean_object* v___x_1035_; lean_object* v___x_1036_; lean_object* v___x_1037_; lean_object* v___x_1038_; lean_object* v___x_1039_; lean_object* v___x_1040_; lean_object* v_buffer_1042_; -v___x_1013_ = lean_string_to_utf8(v___y_1007_); -lean_inc_ref(v___x_1013_); -v___x_1014_ = lean_array_push(v_data_1008_, v___x_1013_); -v___x_1015_ = lean_byte_array_size(v___x_1013_); -lean_dec_ref(v___x_1013_); -v___x_1016_ = lean_nat_add(v_size_1009_, v___x_1015_); -lean_dec(v_size_1009_); -v___x_1017_ = lean_unsigned_to_nat(1u); -v___x_1018_ = lean_mk_empty_array_with_capacity(v___x_1017_); -lean_dec_ref(v___x_1018_); -v___x_1019_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); -v___x_1020_ = lean_array_push(v___x_1014_, v___x_1019_); -v___x_1021_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28); -v___x_1022_ = lean_nat_add(v___x_1016_, v___x_1021_); -lean_dec(v___x_1016_); -v___x_1023_ = l_Std_Http_Status_toCode(v_status_1002_); -v___x_1024_ = lean_uint16_to_nat(v___x_1023_); -v___x_1025_ = l_Nat_reprFast(v___x_1024_); -v___x_1026_ = lean_string_to_utf8(v___x_1025_); -lean_dec_ref(v___x_1025_); -lean_inc_ref(v___x_1026_); -v___x_1027_ = lean_array_push(v___x_1020_, v___x_1026_); -v___x_1028_ = lean_byte_array_size(v___x_1026_); -lean_dec_ref(v___x_1026_); -v___x_1029_ = lean_nat_add(v___x_1022_, v___x_1028_); -lean_dec(v___x_1022_); -v___x_1030_ = lean_array_push(v___x_1027_, v___x_1019_); -v___x_1031_ = lean_nat_add(v___x_1029_, v___x_1021_); -lean_dec(v___x_1029_); -v___x_1032_ = l_Std_Http_Status_reasonPhrase(v_status_1002_); -v___x_1033_ = lean_string_to_utf8(v___x_1032_); -lean_dec_ref(v___x_1032_); -lean_inc_ref(v___x_1033_); -v___x_1034_ = lean_array_push(v___x_1030_, v___x_1033_); -v___x_1035_ = lean_byte_array_size(v___x_1033_); -lean_dec_ref(v___x_1033_); -v___x_1036_ = lean_nat_add(v___x_1031_, v___x_1035_); -lean_dec(v___x_1031_); -v___x_1037_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); -v___x_1038_ = lean_array_push(v___x_1034_, v___x_1037_); -v___x_1039_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4); -v___x_1040_ = lean_nat_add(v___x_1036_, v___x_1039_); -lean_dec(v___x_1036_); -if (v_isShared_1012_ == 0) +lean_object* v___x_1040_; lean_object* v___x_1041_; lean_object* v___x_1042_; lean_object* v___x_1043_; lean_object* v___x_1044_; lean_object* v___x_1045_; lean_object* v___x_1046_; lean_object* v___x_1047_; lean_object* v___x_1048_; lean_object* v___x_1049_; uint16_t v___x_1050_; lean_object* v___x_1051_; lean_object* v___x_1052_; lean_object* v___x_1053_; lean_object* v___x_1054_; lean_object* v___x_1055_; lean_object* v___x_1056_; lean_object* v___x_1057_; lean_object* v___x_1058_; lean_object* v___x_1059_; lean_object* v___x_1060_; lean_object* v___x_1061_; lean_object* v___x_1062_; lean_object* v___x_1063_; lean_object* v___x_1064_; lean_object* v___x_1065_; lean_object* v___x_1066_; lean_object* v___x_1067_; lean_object* v_buffer_1069_; +v___x_1040_ = lean_string_to_utf8(v___y_1034_); +lean_inc_ref(v___x_1040_); +v___x_1041_ = lean_array_push(v_data_1035_, v___x_1040_); +v___x_1042_ = lean_byte_array_size(v___x_1040_); +lean_dec_ref(v___x_1040_); +v___x_1043_ = lean_nat_add(v_size_1036_, v___x_1042_); +lean_dec(v_size_1036_); +v___x_1044_ = lean_unsigned_to_nat(1u); +v___x_1045_ = lean_mk_empty_array_with_capacity(v___x_1044_); +lean_dec_ref(v___x_1045_); +v___x_1046_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__27); +v___x_1047_ = lean_array_push(v___x_1041_, v___x_1046_); +v___x_1048_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__28); +v___x_1049_ = lean_nat_add(v___x_1043_, v___x_1048_); +lean_dec(v___x_1043_); +v___x_1050_ = l_Std_Http_Status_toCode(v_status_1029_); +v___x_1051_ = lean_uint16_to_nat(v___x_1050_); +v___x_1052_ = l_Nat_reprFast(v___x_1051_); +v___x_1053_ = lean_string_to_utf8(v___x_1052_); +lean_dec_ref(v___x_1052_); +lean_inc_ref(v___x_1053_); +v___x_1054_ = lean_array_push(v___x_1047_, v___x_1053_); +v___x_1055_ = lean_byte_array_size(v___x_1053_); +lean_dec_ref(v___x_1053_); +v___x_1056_ = lean_nat_add(v___x_1049_, v___x_1055_); +lean_dec(v___x_1049_); +v___x_1057_ = lean_array_push(v___x_1054_, v___x_1046_); +v___x_1058_ = lean_nat_add(v___x_1056_, v___x_1048_); +lean_dec(v___x_1056_); +v___x_1059_ = l_Std_Http_Status_reasonPhrase(v_status_1029_); +v___x_1060_ = lean_string_to_utf8(v___x_1059_); +lean_dec_ref(v___x_1059_); +lean_inc_ref(v___x_1060_); +v___x_1061_ = lean_array_push(v___x_1057_, v___x_1060_); +v___x_1062_ = lean_byte_array_size(v___x_1060_); +lean_dec_ref(v___x_1060_); +v___x_1063_ = lean_nat_add(v___x_1058_, v___x_1062_); +lean_dec(v___x_1058_); +v___x_1064_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__3); +v___x_1065_ = lean_array_push(v___x_1061_, v___x_1064_); +v___x_1066_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4, &l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4_once, _init_l_Std_Http_Protocol_H1_instEncodeV11Head___aux__1___closed__4); +v___x_1067_ = lean_nat_add(v___x_1063_, v___x_1066_); +lean_dec(v___x_1063_); +if (v_isShared_1039_ == 0) { -lean_ctor_set(v___x_1011_, 1, v___x_1040_); -lean_ctor_set(v___x_1011_, 0, v___x_1038_); -v_buffer_1042_ = v___x_1011_; -goto v_reusejp_1041_; +lean_ctor_set(v___x_1038_, 1, v___x_1067_); +lean_ctor_set(v___x_1038_, 0, v___x_1065_); +v_buffer_1069_ = v___x_1038_; +goto v_reusejp_1068_; } else { -lean_object* v_reuseFailAlloc_1055_; -v_reuseFailAlloc_1055_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1055_, 0, v___x_1038_); -lean_ctor_set(v_reuseFailAlloc_1055_, 1, v___x_1040_); -v_buffer_1042_ = v_reuseFailAlloc_1055_; -goto v_reusejp_1041_; +lean_object* v_reuseFailAlloc_1082_; +v_reuseFailAlloc_1082_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1082_, 0, v___x_1065_); +lean_ctor_set(v_reuseFailAlloc_1082_, 1, v___x_1067_); +v_buffer_1069_ = v_reuseFailAlloc_1082_; +goto v_reusejp_1068_; } -v_reusejp_1041_: +v_reusejp_1068_: { -lean_object* v_buffer_1043_; lean_object* v_data_1044_; lean_object* v_size_1045_; lean_object* v___x_1047_; uint8_t v_isShared_1048_; uint8_t v_isSharedCheck_1054_; -v_buffer_1043_ = l_Std_Http_Headers_fold___redArg(v_headers_1004_, v_buffer_1042_, v___f_1005_); -v_data_1044_ = lean_ctor_get(v_buffer_1043_, 0); -v_size_1045_ = lean_ctor_get(v_buffer_1043_, 1); -v_isSharedCheck_1054_ = !lean_is_exclusive(v_buffer_1043_); -if (v_isSharedCheck_1054_ == 0) +lean_object* v_buffer_1070_; lean_object* v_data_1071_; lean_object* v_size_1072_; lean_object* v___x_1074_; uint8_t v_isShared_1075_; uint8_t v_isSharedCheck_1081_; +v_buffer_1070_ = l_Std_Http_Headers_fold___redArg(v_headers_1031_, v_buffer_1069_, v___f_1032_); +v_data_1071_ = lean_ctor_get(v_buffer_1070_, 0); +v_size_1072_ = lean_ctor_get(v_buffer_1070_, 1); +v_isSharedCheck_1081_ = !lean_is_exclusive(v_buffer_1070_); +if (v_isSharedCheck_1081_ == 0) { -v___x_1047_ = v_buffer_1043_; -v_isShared_1048_ = v_isSharedCheck_1054_; -goto v_resetjp_1046_; +v___x_1074_ = v_buffer_1070_; +v_isShared_1075_ = v_isSharedCheck_1081_; +goto v_resetjp_1073_; } else { -lean_inc(v_size_1045_); -lean_inc(v_data_1044_); -lean_dec(v_buffer_1043_); -v___x_1047_ = lean_box(0); -v_isShared_1048_ = v_isSharedCheck_1054_; -goto v_resetjp_1046_; +lean_inc(v_size_1072_); +lean_inc(v_data_1071_); +lean_dec(v_buffer_1070_); +v___x_1074_ = lean_box(0); +v_isShared_1075_ = v_isSharedCheck_1081_; +goto v_resetjp_1073_; } -v_resetjp_1046_: +v_resetjp_1073_: { -lean_object* v___x_1049_; lean_object* v___x_1050_; lean_object* v___x_1052_; -v___x_1049_ = lean_array_push(v_data_1044_, v___x_1037_); -v___x_1050_ = lean_nat_add(v_size_1045_, v___x_1039_); -lean_dec(v_size_1045_); -if (v_isShared_1048_ == 0) +lean_object* v___x_1076_; lean_object* v___x_1077_; lean_object* v___x_1079_; +v___x_1076_ = lean_array_push(v_data_1071_, v___x_1064_); +v___x_1077_ = lean_nat_add(v_size_1072_, v___x_1066_); +lean_dec(v_size_1072_); +if (v_isShared_1075_ == 0) { -lean_ctor_set(v___x_1047_, 1, v___x_1050_); -lean_ctor_set(v___x_1047_, 0, v___x_1049_); -v___x_1052_ = v___x_1047_; -goto v_reusejp_1051_; +lean_ctor_set(v___x_1074_, 1, v___x_1077_); +lean_ctor_set(v___x_1074_, 0, v___x_1076_); +v___x_1079_ = v___x_1074_; +goto v_reusejp_1078_; } else { -lean_object* v_reuseFailAlloc_1053_; -v_reuseFailAlloc_1053_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_1053_, 0, v___x_1049_); -lean_ctor_set(v_reuseFailAlloc_1053_, 1, v___x_1050_); -v___x_1052_ = v_reuseFailAlloc_1053_; -goto v_reusejp_1051_; +lean_object* v_reuseFailAlloc_1080_; +v_reuseFailAlloc_1080_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1080_, 0, v___x_1076_); +lean_ctor_set(v_reuseFailAlloc_1080_, 1, v___x_1077_); +v___x_1079_ = v_reuseFailAlloc_1080_; +goto v_reusejp_1078_; } -v_reusejp_1051_: +v_reusejp_1078_: { -return v___x_1052_; +return v___x_1079_; } } } @@ -3300,95 +3408,95 @@ return v___x_1052_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3___boxed(lean_object* v_buffer_1061_, lean_object* v_r_1062_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3___boxed(lean_object* v_buffer_1088_, lean_object* v_r_1089_){ _start: { -lean_object* v_res_1063_; -v_res_1063_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3(v_buffer_1061_, v_r_1062_); -lean_dec_ref(v_r_1062_); -return v_res_1063_; +lean_object* v_res_1090_; +v_res_1090_ = l_Std_Http_Protocol_H1_instEncodeV11Head___aux__3(v_buffer_1088_, v_r_1089_); +lean_dec_ref(v_r_1089_); +return v_res_1090_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t v_dir_1066_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t v_dir_1093_){ _start: { -if (v_dir_1066_ == 0) +if (v_dir_1093_ == 0) { -lean_object* v___x_1067_; -v___x_1067_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___closed__0)); -return v___x_1067_; +lean_object* v___x_1094_; +v___x_1094_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___closed__0)); +return v___x_1094_; } else { -lean_object* v___x_1068_; -v___x_1068_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___closed__1)); -return v___x_1068_; +lean_object* v___x_1095_; +v___x_1095_ = ((lean_object*)(l_Std_Http_Protocol_H1_instEncodeV11Head___closed__1)); +return v___x_1095_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___boxed(lean_object* v_dir_1069_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head___boxed(lean_object* v_dir_1096_){ _start: { -uint8_t v_dir_boxed_1070_; lean_object* v_res_1071_; -v_dir_boxed_1070_ = lean_unbox(v_dir_1069_); -v_res_1071_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v_dir_boxed_1070_); -return v_res_1071_; +uint8_t v_dir_boxed_1097_; lean_object* v_res_1098_; +v_dir_boxed_1097_ = lean_unbox(v_dir_1096_); +v_res_1098_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v_dir_boxed_1097_); +return v_res_1098_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0(void){ _start: { -lean_object* v___x_1072_; lean_object* v___x_1073_; uint8_t v___x_1074_; uint8_t v___x_1075_; lean_object* v___x_1076_; -v___x_1072_ = l_Std_Http_Headers_empty; -v___x_1073_ = lean_box(3); -v___x_1074_ = 1; -v___x_1075_ = 8; -v___x_1076_ = lean_alloc_ctor(0, 2, 2); -lean_ctor_set(v___x_1076_, 0, v___x_1073_); -lean_ctor_set(v___x_1076_, 1, v___x_1072_); -lean_ctor_set_uint8(v___x_1076_, sizeof(void*)*2, v___x_1075_); -lean_ctor_set_uint8(v___x_1076_, sizeof(void*)*2 + 1, v___x_1074_); -return v___x_1076_; +lean_object* v___x_1099_; lean_object* v___x_1100_; uint8_t v___x_1101_; uint8_t v___x_1102_; lean_object* v___x_1103_; +v___x_1099_ = l_Std_Http_Headers_empty; +v___x_1100_ = lean_box(3); +v___x_1101_ = 1; +v___x_1102_ = 8; +v___x_1103_ = lean_alloc_ctor(0, 2, 2); +lean_ctor_set(v___x_1103_, 0, v___x_1100_); +lean_ctor_set(v___x_1103_, 1, v___x_1099_); +lean_ctor_set_uint8(v___x_1103_, sizeof(void*)*2, v___x_1102_); +lean_ctor_set_uint8(v___x_1103_, sizeof(void*)*2 + 1, v___x_1101_); +return v___x_1103_; } } static lean_object* _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1(void){ _start: { -lean_object* v___x_1077_; uint8_t v___x_1078_; lean_object* v___x_1079_; lean_object* v___x_1080_; -v___x_1077_ = l_Std_Http_Headers_empty; -v___x_1078_ = 1; -v___x_1079_ = lean_box(4); -v___x_1080_ = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(v___x_1080_, 0, v___x_1079_); -lean_ctor_set(v___x_1080_, 1, v___x_1077_); -lean_ctor_set_uint8(v___x_1080_, sizeof(void*)*2, v___x_1078_); -return v___x_1080_; +lean_object* v___x_1104_; uint8_t v___x_1105_; lean_object* v___x_1106_; lean_object* v___x_1107_; +v___x_1104_ = l_Std_Http_Headers_empty; +v___x_1105_ = 1; +v___x_1106_ = lean_box(4); +v___x_1107_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_1107_, 0, v___x_1106_); +lean_ctor_set(v___x_1107_, 1, v___x_1104_); +lean_ctor_set_uint8(v___x_1107_, sizeof(void*)*2, v___x_1105_); +return v___x_1107_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead(uint8_t v_dir_1081_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead(uint8_t v_dir_1108_){ _start: { -if (v_dir_1081_ == 0) +if (v_dir_1108_ == 0) { -lean_object* v___x_1082_; -v___x_1082_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0, &l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0_once, _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0); -return v___x_1082_; +lean_object* v___x_1109_; +v___x_1109_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0, &l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0_once, _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__0); +return v___x_1109_; } else { -lean_object* v___x_1083_; -v___x_1083_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1, &l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1_once, _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1); -return v___x_1083_; +lean_object* v___x_1110_; +v___x_1110_ = lean_obj_once(&l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1, &l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1_once, _init_l_Std_Http_Protocol_H1_instEmptyCollectionHead___closed__1); +return v___x_1110_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead___boxed(lean_object* v_dir_1084_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead___boxed(lean_object* v_dir_1111_){ _start: { -uint8_t v_dir_boxed_1085_; lean_object* v_res_1086_; -v_dir_boxed_1085_ = lean_unbox(v_dir_1084_); -v_res_1086_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v_dir_boxed_1085_); -return v_res_1086_; +uint8_t v_dir_boxed_1112_; lean_object* v_res_1113_; +v_dir_boxed_1112_ = lean_unbox(v_dir_1111_); +v_res_1113_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v_dir_boxed_1112_); +return v_res_1113_; } } lean_object* runtime_initialize_Init_Data_Array(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Protocol/H1/Writer.c b/stage0/stdlib/Std/Internal/Http/Protocol/H1/Writer.c index 835108ed28..1291ca9265 100644 --- a/stage0/stdlib/Std/Internal/Http/Protocol/H1/Writer.c +++ b/stage0/stdlib/Std/Internal/Http/Protocol/H1/Writer.c @@ -26,20 +26,21 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t); lean_object* lean_byte_array_size(lean_object*); lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +size_t lean_usize_add(size_t, size_t); +uint8_t lean_usize_dec_eq(size_t, size_t); +uint8_t l_ByteArray_isEmpty(lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_string_to_utf8(lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); -lean_object* l_Std_Http_Body_instReprLength_repr(lean_object*, lean_object*); -uint8_t l_Std_Http_Body_instBEqLength_beq(lean_object*, lean_object*); -lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_reprFast(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -size_t lean_usize_add(size_t, size_t); -uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Nat_toDigits(lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); @@ -48,7 +49,6 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t lean_uint32_to_uint8(uint32_t); lean_object* lean_byte_array_mk(lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Std_Http_Chunk_ExtensionValue_quote(lean_object*); lean_object* l_Std_Http_Protocol_H1_Message_Head_headers(uint8_t, lean_object*); @@ -84,8 +84,12 @@ LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBody_elim___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBody_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyFixed_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyFixed_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyChunked_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyChunked_elim(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyClosingFrame_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyClosingFrame_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_closed_elim___redArg(lean_object*, lean_object*); @@ -104,24 +108,32 @@ static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__4 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__4_value; static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__4_value)}}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__5 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__5_value; -static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 43, .m_capacity = 43, .m_length = 42, .m_data = "Std.Http.Protocol.H1.Writer.State.complete"}; +static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 53, .m_capacity = 53, .m_length = 52, .m_data = "Std.Http.Protocol.H1.Writer.State.writingBodyChunked"}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__6 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__6_value; static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__6_value)}}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__7 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__7_value; -static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 41, .m_capacity = 41, .m_length = 40, .m_data = "Std.Http.Protocol.H1.Writer.State.closed"}; +static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 58, .m_capacity = 58, .m_length = 57, .m_data = "Std.Http.Protocol.H1.Writer.State.writingBodyClosingFrame"}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__8 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__8_value; static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__8_value)}}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__9 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__9_value; -static lean_once_cell_t l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10; -static lean_once_cell_t l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; -static lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11; -static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 46, .m_capacity = 46, .m_length = 45, .m_data = "Std.Http.Protocol.H1.Writer.State.writingBody"}; +static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 43, .m_capacity = 43, .m_length = 42, .m_data = "Std.Http.Protocol.H1.Writer.State.complete"}; +static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_value; +static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_value)}}; +static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_value; +static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 41, .m_capacity = 41, .m_length = 40, .m_data = "Std.Http.Protocol.H1.Writer.State.closed"}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__12 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__12_value; static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__13_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__12_value)}}; static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__13 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__13_value; -static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 5}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__13_value),((lean_object*)(((size_t)(1) << 1) | 1))}}; -static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_value; +static lean_once_cell_t l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14; +static lean_once_cell_t l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15; +static const lean_string_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__16_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 51, .m_capacity = 51, .m_length = 50, .m_data = "Std.Http.Protocol.H1.Writer.State.writingBodyFixed"}; +static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__16 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__16_value; +static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__17_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 3}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__16_value)}}; +static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__17 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__17_value; +static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__18_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 5}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__17_value),((lean_object*)(((size_t)(1) << 1) | 1))}}; +static const lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__18 = (const lean_object*)&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__18_value; LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___boxed(lean_object*, lean_object*); static const lean_closure_object l_Std_Http_Protocol_H1_Writer_instReprState___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Protocol_H1_Writer_instReprState_repr___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; @@ -195,6 +207,8 @@ static const lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg_ LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0___boxed(lean_object*, lean_object*, lean_object*); static const lean_string_object l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ";"}; @@ -225,6 +239,11 @@ static lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___clo LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0(uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); static const lean_ctor_object l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg___closed__0_value),((lean_object*)(((size_t)(0) << 1) | 1))}}; @@ -292,708 +311,674 @@ lean_object* v___x_6_; v___x_6_ = lean_unsigned_to_nat(4u); return v___x_6_; } -default: +case 5: { lean_object* v___x_7_; v___x_7_ = lean_unsigned_to_nat(5u); return v___x_7_; } +case 6: +{ +lean_object* v___x_8_; +v___x_8_ = lean_unsigned_to_nat(6u); +return v___x_8_; +} +default: +{ +lean_object* v___x_9_; +v___x_9_ = lean_unsigned_to_nat(7u); +return v___x_9_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorIdx___boxed(lean_object* v_x_8_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorIdx___boxed(lean_object* v_x_10_){ _start: { -lean_object* v_res_9_; -v_res_9_ = l_Std_Http_Protocol_H1_Writer_State_ctorIdx(v_x_8_); -lean_dec(v_x_8_); -return v_res_9_; +lean_object* v_res_11_; +v_res_11_ = l_Std_Http_Protocol_H1_Writer_State_ctorIdx(v_x_10_); +lean_dec(v_x_10_); +return v_res_11_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(lean_object* v_t_10_, lean_object* v_k_11_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(lean_object* v_t_12_, lean_object* v_k_13_){ _start: { -if (lean_obj_tag(v_t_10_) == 3) +if (lean_obj_tag(v_t_12_) == 3) { -lean_object* v_mode_12_; lean_object* v___x_13_; -v_mode_12_ = lean_ctor_get(v_t_10_, 0); -lean_inc(v_mode_12_); -lean_dec_ref(v_t_10_); -v___x_13_ = lean_apply_1(v_k_11_, v_mode_12_); -return v___x_13_; +lean_object* v_n_14_; lean_object* v___x_15_; +v_n_14_ = lean_ctor_get(v_t_12_, 0); +lean_inc(v_n_14_); +lean_dec_ref(v_t_12_); +v___x_15_ = lean_apply_1(v_k_13_, v_n_14_); +return v___x_15_; } else { -lean_dec(v_t_10_); -return v_k_11_; +lean_dec(v_t_12_); +return v_k_13_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim(lean_object* v_motive_14_, lean_object* v_ctorIdx_15_, lean_object* v_t_16_, lean_object* v_h_17_, lean_object* v_k_18_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim(lean_object* v_motive_16_, lean_object* v_ctorIdx_17_, lean_object* v_t_18_, lean_object* v_h_19_, lean_object* v_k_20_){ _start: { -lean_object* v___x_19_; -v___x_19_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_16_, v_k_18_); -return v___x_19_; +lean_object* v___x_21_; +v___x_21_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_18_, v_k_20_); +return v___x_21_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim___boxed(lean_object* v_motive_20_, lean_object* v_ctorIdx_21_, lean_object* v_t_22_, lean_object* v_h_23_, lean_object* v_k_24_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_ctorElim___boxed(lean_object* v_motive_22_, lean_object* v_ctorIdx_23_, lean_object* v_t_24_, lean_object* v_h_25_, lean_object* v_k_26_){ _start: { -lean_object* v_res_25_; -v_res_25_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim(v_motive_20_, v_ctorIdx_21_, v_t_22_, v_h_23_, v_k_24_); -lean_dec(v_ctorIdx_21_); -return v_res_25_; +lean_object* v_res_27_; +v_res_27_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim(v_motive_22_, v_ctorIdx_23_, v_t_24_, v_h_25_, v_k_26_); +lean_dec(v_ctorIdx_23_); +return v_res_27_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_pending_elim___redArg(lean_object* v_t_26_, lean_object* v_pending_27_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_pending_elim___redArg(lean_object* v_t_28_, lean_object* v_pending_29_){ _start: { -lean_object* v___x_28_; -v___x_28_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_26_, v_pending_27_); -return v___x_28_; +lean_object* v___x_30_; +v___x_30_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_28_, v_pending_29_); +return v___x_30_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_pending_elim(lean_object* v_motive_29_, lean_object* v_t_30_, lean_object* v_h_31_, lean_object* v_pending_32_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_pending_elim(lean_object* v_motive_31_, lean_object* v_t_32_, lean_object* v_h_33_, lean_object* v_pending_34_){ _start: { -lean_object* v___x_33_; -v___x_33_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_30_, v_pending_32_); -return v___x_33_; +lean_object* v___x_35_; +v___x_35_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_32_, v_pending_34_); +return v___x_35_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim___redArg(lean_object* v_t_34_, lean_object* v_waitingHeaders_35_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim___redArg(lean_object* v_t_36_, lean_object* v_waitingHeaders_37_){ _start: { -lean_object* v___x_36_; -v___x_36_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_34_, v_waitingHeaders_35_); -return v___x_36_; +lean_object* v___x_38_; +v___x_38_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_36_, v_waitingHeaders_37_); +return v___x_38_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim(lean_object* v_motive_37_, lean_object* v_t_38_, lean_object* v_h_39_, lean_object* v_waitingHeaders_40_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingHeaders_elim(lean_object* v_motive_39_, lean_object* v_t_40_, lean_object* v_h_41_, lean_object* v_waitingHeaders_42_){ _start: { -lean_object* v___x_41_; -v___x_41_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_38_, v_waitingHeaders_40_); -return v___x_41_; +lean_object* v___x_43_; +v___x_43_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_40_, v_waitingHeaders_42_); +return v___x_43_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim___redArg(lean_object* v_t_42_, lean_object* v_waitingForFlush_43_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim___redArg(lean_object* v_t_44_, lean_object* v_waitingForFlush_45_){ _start: { -lean_object* v___x_44_; -v___x_44_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_42_, v_waitingForFlush_43_); -return v___x_44_; +lean_object* v___x_46_; +v___x_46_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_44_, v_waitingForFlush_45_); +return v___x_46_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim(lean_object* v_motive_45_, lean_object* v_t_46_, lean_object* v_h_47_, lean_object* v_waitingForFlush_48_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_waitingForFlush_elim(lean_object* v_motive_47_, lean_object* v_t_48_, lean_object* v_h_49_, lean_object* v_waitingForFlush_50_){ _start: { -lean_object* v___x_49_; -v___x_49_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_46_, v_waitingForFlush_48_); -return v___x_49_; +lean_object* v___x_51_; +v___x_51_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_48_, v_waitingForFlush_50_); +return v___x_51_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBody_elim___redArg(lean_object* v_t_50_, lean_object* v_writingBody_51_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyFixed_elim___redArg(lean_object* v_t_52_, lean_object* v_writingBodyFixed_53_){ _start: { -lean_object* v___x_52_; -v___x_52_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_50_, v_writingBody_51_); -return v___x_52_; +lean_object* v___x_54_; +v___x_54_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_52_, v_writingBodyFixed_53_); +return v___x_54_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBody_elim(lean_object* v_motive_53_, lean_object* v_t_54_, lean_object* v_h_55_, lean_object* v_writingBody_56_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyFixed_elim(lean_object* v_motive_55_, lean_object* v_t_56_, lean_object* v_h_57_, lean_object* v_writingBodyFixed_58_){ _start: { -lean_object* v___x_57_; -v___x_57_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_54_, v_writingBody_56_); -return v___x_57_; +lean_object* v___x_59_; +v___x_59_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_56_, v_writingBodyFixed_58_); +return v___x_59_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim___redArg(lean_object* v_t_58_, lean_object* v_complete_59_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyChunked_elim___redArg(lean_object* v_t_60_, lean_object* v_writingBodyChunked_61_){ _start: { -lean_object* v___x_60_; -v___x_60_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_58_, v_complete_59_); -return v___x_60_; +lean_object* v___x_62_; +v___x_62_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_60_, v_writingBodyChunked_61_); +return v___x_62_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim(lean_object* v_motive_61_, lean_object* v_t_62_, lean_object* v_h_63_, lean_object* v_complete_64_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyChunked_elim(lean_object* v_motive_63_, lean_object* v_t_64_, lean_object* v_h_65_, lean_object* v_writingBodyChunked_66_){ _start: { -lean_object* v___x_65_; -v___x_65_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_62_, v_complete_64_); -return v___x_65_; +lean_object* v___x_67_; +v___x_67_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_64_, v_writingBodyChunked_66_); +return v___x_67_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_closed_elim___redArg(lean_object* v_t_66_, lean_object* v_closed_67_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyClosingFrame_elim___redArg(lean_object* v_t_68_, lean_object* v_writingBodyClosingFrame_69_){ _start: { -lean_object* v___x_68_; -v___x_68_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_66_, v_closed_67_); -return v___x_68_; +lean_object* v___x_70_; +v___x_70_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_68_, v_writingBodyClosingFrame_69_); +return v___x_70_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_closed_elim(lean_object* v_motive_69_, lean_object* v_t_70_, lean_object* v_h_71_, lean_object* v_closed_72_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_writingBodyClosingFrame_elim(lean_object* v_motive_71_, lean_object* v_t_72_, lean_object* v_h_73_, lean_object* v_writingBodyClosingFrame_74_){ _start: { -lean_object* v___x_73_; -v___x_73_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_70_, v_closed_72_); -return v___x_73_; +lean_object* v___x_75_; +v___x_75_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_72_, v_writingBodyClosingFrame_74_); +return v___x_75_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim___redArg(lean_object* v_t_76_, lean_object* v_complete_77_){ +_start: +{ +lean_object* v___x_78_; +v___x_78_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_76_, v_complete_77_); +return v___x_78_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_complete_elim(lean_object* v_motive_79_, lean_object* v_t_80_, lean_object* v_h_81_, lean_object* v_complete_82_){ +_start: +{ +lean_object* v___x_83_; +v___x_83_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_80_, v_complete_82_); +return v___x_83_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_closed_elim___redArg(lean_object* v_t_84_, lean_object* v_closed_85_){ +_start: +{ +lean_object* v___x_86_; +v___x_86_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_84_, v_closed_85_); +return v___x_86_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_State_closed_elim(lean_object* v_motive_87_, lean_object* v_t_88_, lean_object* v_h_89_, lean_object* v_closed_90_){ +_start: +{ +lean_object* v___x_91_; +v___x_91_ = l_Std_Http_Protocol_H1_Writer_State_ctorElim___redArg(v_t_88_, v_closed_90_); +return v___x_91_; } } static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instInhabitedState_default(void){ _start: { -lean_object* v___x_74_; -v___x_74_ = lean_box(0); -return v___x_74_; +lean_object* v___x_92_; +v___x_92_ = lean_box(0); +return v___x_92_; } } static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instInhabitedState(void){ _start: { -lean_object* v___x_75_; -v___x_75_ = lean_box(0); -return v___x_75_; +lean_object* v___x_93_; +v___x_93_ = lean_box(0); +return v___x_93_; } } -static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10(void){ +static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14(void){ _start: { -lean_object* v___x_91_; lean_object* v___x_92_; -v___x_91_ = lean_unsigned_to_nat(2u); -v___x_92_ = lean_nat_to_int(v___x_91_); -return v___x_92_; -} -} -static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11(void){ -_start: -{ -lean_object* v___x_93_; lean_object* v___x_94_; -v___x_93_ = lean_unsigned_to_nat(1u); -v___x_94_ = lean_nat_to_int(v___x_93_); -return v___x_94_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr(lean_object* v_x_101_, lean_object* v_prec_102_){ -_start: -{ -lean_object* v___y_104_; lean_object* v___y_111_; lean_object* v___y_118_; lean_object* v___y_125_; lean_object* v___y_132_; -switch(lean_obj_tag(v_x_101_)) -{ -case 0: -{ -lean_object* v___x_138_; uint8_t v___x_139_; -v___x_138_ = lean_unsigned_to_nat(1024u); -v___x_139_ = lean_nat_dec_le(v___x_138_, v_prec_102_); -if (v___x_139_ == 0) -{ -lean_object* v___x_140_; -v___x_140_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_118_ = v___x_140_; -goto v___jp_117_; -} -else -{ -lean_object* v___x_141_; -v___x_141_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_118_ = v___x_141_; -goto v___jp_117_; -} -} -case 1: -{ -lean_object* v___x_142_; uint8_t v___x_143_; -v___x_142_ = lean_unsigned_to_nat(1024u); -v___x_143_ = lean_nat_dec_le(v___x_142_, v_prec_102_); -if (v___x_143_ == 0) -{ -lean_object* v___x_144_; -v___x_144_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_111_ = v___x_144_; -goto v___jp_110_; -} -else -{ -lean_object* v___x_145_; -v___x_145_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_111_ = v___x_145_; -goto v___jp_110_; -} -} -case 2: -{ -lean_object* v___x_146_; uint8_t v___x_147_; -v___x_146_ = lean_unsigned_to_nat(1024u); -v___x_147_ = lean_nat_dec_le(v___x_146_, v_prec_102_); -if (v___x_147_ == 0) -{ -lean_object* v___x_148_; -v___x_148_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_104_ = v___x_148_; -goto v___jp_103_; -} -else -{ -lean_object* v___x_149_; -v___x_149_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_104_ = v___x_149_; -goto v___jp_103_; -} -} -case 3: -{ -lean_object* v_mode_150_; lean_object* v___y_152_; lean_object* v___x_161_; uint8_t v___x_162_; -v_mode_150_ = lean_ctor_get(v_x_101_, 0); -lean_inc(v_mode_150_); -lean_dec_ref(v_x_101_); -v___x_161_ = lean_unsigned_to_nat(1024u); -v___x_162_ = lean_nat_dec_le(v___x_161_, v_prec_102_); -if (v___x_162_ == 0) -{ -lean_object* v___x_163_; -v___x_163_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_152_ = v___x_163_; -goto v___jp_151_; -} -else -{ -lean_object* v___x_164_; -v___x_164_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_152_ = v___x_164_; -goto v___jp_151_; -} -v___jp_151_: -{ -lean_object* v___x_153_; lean_object* v___x_154_; lean_object* v___x_155_; lean_object* v___x_156_; lean_object* v___x_157_; uint8_t v___x_158_; lean_object* v___x_159_; lean_object* v___x_160_; -v___x_153_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14)); -v___x_154_ = lean_unsigned_to_nat(1024u); -v___x_155_ = l_Std_Http_Body_instReprLength_repr(v_mode_150_, v___x_154_); -v___x_156_ = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(v___x_156_, 0, v___x_153_); -lean_ctor_set(v___x_156_, 1, v___x_155_); -lean_inc(v___y_152_); -v___x_157_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_157_, 0, v___y_152_); -lean_ctor_set(v___x_157_, 1, v___x_156_); -v___x_158_ = 0; -v___x_159_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_159_, 0, v___x_157_); -lean_ctor_set_uint8(v___x_159_, sizeof(void*)*1, v___x_158_); -v___x_160_ = l_Repr_addAppParen(v___x_159_, v_prec_102_); -return v___x_160_; -} -} -case 4: -{ -lean_object* v___x_165_; uint8_t v___x_166_; -v___x_165_ = lean_unsigned_to_nat(1024u); -v___x_166_ = lean_nat_dec_le(v___x_165_, v_prec_102_); -if (v___x_166_ == 0) -{ -lean_object* v___x_167_; -v___x_167_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_125_ = v___x_167_; -goto v___jp_124_; -} -else -{ -lean_object* v___x_168_; -v___x_168_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_125_ = v___x_168_; -goto v___jp_124_; -} -} -default: -{ -lean_object* v___x_169_; uint8_t v___x_170_; -v___x_169_ = lean_unsigned_to_nat(1024u); -v___x_170_ = lean_nat_dec_le(v___x_169_, v_prec_102_); -if (v___x_170_ == 0) -{ -lean_object* v___x_171_; -v___x_171_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__10); -v___y_132_ = v___x_171_; -goto v___jp_131_; -} -else -{ -lean_object* v___x_172_; -v___x_172_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11); -v___y_132_ = v___x_172_; -goto v___jp_131_; -} -} -} -v___jp_103_: -{ -lean_object* v___x_105_; lean_object* v___x_106_; uint8_t v___x_107_; lean_object* v___x_108_; lean_object* v___x_109_; -v___x_105_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__1)); -lean_inc(v___y_104_); -v___x_106_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_106_, 0, v___y_104_); -lean_ctor_set(v___x_106_, 1, v___x_105_); -v___x_107_ = 0; -v___x_108_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_108_, 0, v___x_106_); -lean_ctor_set_uint8(v___x_108_, sizeof(void*)*1, v___x_107_); -v___x_109_ = l_Repr_addAppParen(v___x_108_, v_prec_102_); -return v___x_109_; -} -v___jp_110_: -{ -lean_object* v___x_112_; lean_object* v___x_113_; uint8_t v___x_114_; lean_object* v___x_115_; lean_object* v___x_116_; -v___x_112_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__3)); -lean_inc(v___y_111_); -v___x_113_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_113_, 0, v___y_111_); -lean_ctor_set(v___x_113_, 1, v___x_112_); -v___x_114_ = 0; -v___x_115_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_115_, 0, v___x_113_); -lean_ctor_set_uint8(v___x_115_, sizeof(void*)*1, v___x_114_); -v___x_116_ = l_Repr_addAppParen(v___x_115_, v_prec_102_); +lean_object* v___x_115_; lean_object* v___x_116_; +v___x_115_ = lean_unsigned_to_nat(2u); +v___x_116_ = lean_nat_to_int(v___x_115_); return v___x_116_; } -v___jp_117_: -{ -lean_object* v___x_119_; lean_object* v___x_120_; uint8_t v___x_121_; lean_object* v___x_122_; lean_object* v___x_123_; -v___x_119_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__5)); -lean_inc(v___y_118_); -v___x_120_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_120_, 0, v___y_118_); -lean_ctor_set(v___x_120_, 1, v___x_119_); -v___x_121_ = 0; -v___x_122_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_122_, 0, v___x_120_); -lean_ctor_set_uint8(v___x_122_, sizeof(void*)*1, v___x_121_); -v___x_123_ = l_Repr_addAppParen(v___x_122_, v_prec_102_); -return v___x_123_; } -v___jp_124_: -{ -lean_object* v___x_126_; lean_object* v___x_127_; uint8_t v___x_128_; lean_object* v___x_129_; lean_object* v___x_130_; -v___x_126_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__7)); -lean_inc(v___y_125_); -v___x_127_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_127_, 0, v___y_125_); -lean_ctor_set(v___x_127_, 1, v___x_126_); -v___x_128_ = 0; -v___x_129_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_129_, 0, v___x_127_); -lean_ctor_set_uint8(v___x_129_, sizeof(void*)*1, v___x_128_); -v___x_130_ = l_Repr_addAppParen(v___x_129_, v_prec_102_); -return v___x_130_; -} -v___jp_131_: -{ -lean_object* v___x_133_; lean_object* v___x_134_; uint8_t v___x_135_; lean_object* v___x_136_; lean_object* v___x_137_; -v___x_133_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__9)); -lean_inc(v___y_132_); -v___x_134_ = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(v___x_134_, 0, v___y_132_); -lean_ctor_set(v___x_134_, 1, v___x_133_); -v___x_135_ = 0; -v___x_136_ = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(v___x_136_, 0, v___x_134_); -lean_ctor_set_uint8(v___x_136_, sizeof(void*)*1, v___x_135_); -v___x_137_ = l_Repr_addAppParen(v___x_136_, v_prec_102_); -return v___x_137_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___boxed(lean_object* v_x_173_, lean_object* v_prec_174_){ +static lean_object* _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15(void){ _start: { -lean_object* v_res_175_; -v_res_175_ = l_Std_Http_Protocol_H1_Writer_instReprState_repr(v_x_173_, v_prec_174_); -lean_dec(v_prec_174_); -return v_res_175_; +lean_object* v___x_117_; lean_object* v___x_118_; +v___x_117_ = lean_unsigned_to_nat(1u); +v___x_118_ = lean_nat_to_int(v___x_117_); +return v___x_118_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_instBEqState_beq(lean_object* v_x_178_, lean_object* v_x_179_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr(lean_object* v_x_125_, lean_object* v_prec_126_){ _start: { -switch(lean_obj_tag(v_x_178_)) +lean_object* v___y_128_; lean_object* v___y_135_; lean_object* v___y_142_; lean_object* v___y_149_; lean_object* v___y_156_; lean_object* v___y_163_; lean_object* v___y_170_; +switch(lean_obj_tag(v_x_125_)) { case 0: { -if (lean_obj_tag(v_x_179_) == 0) +lean_object* v___x_176_; uint8_t v___x_177_; +v___x_176_ = lean_unsigned_to_nat(1024u); +v___x_177_ = lean_nat_dec_le(v___x_176_, v_prec_126_); +if (v___x_177_ == 0) { -uint8_t v___x_180_; -v___x_180_ = 1; -return v___x_180_; +lean_object* v___x_178_; +v___x_178_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_142_ = v___x_178_; +goto v___jp_141_; } else { -uint8_t v___x_181_; -v___x_181_ = 0; -return v___x_181_; +lean_object* v___x_179_; +v___x_179_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_142_ = v___x_179_; +goto v___jp_141_; } } case 1: { -if (lean_obj_tag(v_x_179_) == 1) +lean_object* v___x_180_; uint8_t v___x_181_; +v___x_180_ = lean_unsigned_to_nat(1024u); +v___x_181_ = lean_nat_dec_le(v___x_180_, v_prec_126_); +if (v___x_181_ == 0) { -uint8_t v___x_182_; -v___x_182_ = 1; -return v___x_182_; +lean_object* v___x_182_; +v___x_182_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_135_ = v___x_182_; +goto v___jp_134_; } else { -uint8_t v___x_183_; -v___x_183_ = 0; -return v___x_183_; +lean_object* v___x_183_; +v___x_183_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_135_ = v___x_183_; +goto v___jp_134_; } } case 2: { -if (lean_obj_tag(v_x_179_) == 2) +lean_object* v___x_184_; uint8_t v___x_185_; +v___x_184_ = lean_unsigned_to_nat(1024u); +v___x_185_ = lean_nat_dec_le(v___x_184_, v_prec_126_); +if (v___x_185_ == 0) { -uint8_t v___x_184_; -v___x_184_ = 1; -return v___x_184_; +lean_object* v___x_186_; +v___x_186_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_128_ = v___x_186_; +goto v___jp_127_; } else { -uint8_t v___x_185_; -v___x_185_ = 0; -return v___x_185_; +lean_object* v___x_187_; +v___x_187_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_128_ = v___x_187_; +goto v___jp_127_; } } case 3: { -if (lean_obj_tag(v_x_179_) == 3) +lean_object* v_n_188_; lean_object* v___x_190_; uint8_t v_isShared_191_; uint8_t v_isSharedCheck_208_; +v_n_188_ = lean_ctor_get(v_x_125_, 0); +v_isSharedCheck_208_ = !lean_is_exclusive(v_x_125_); +if (v_isSharedCheck_208_ == 0) { -lean_object* v_mode_186_; lean_object* v_mode_187_; uint8_t v___x_188_; -v_mode_186_ = lean_ctor_get(v_x_178_, 0); -v_mode_187_ = lean_ctor_get(v_x_179_, 0); -v___x_188_ = l_Std_Http_Body_instBEqLength_beq(v_mode_186_, v_mode_187_); -return v___x_188_; +v___x_190_ = v_x_125_; +v_isShared_191_ = v_isSharedCheck_208_; +goto v_resetjp_189_; } else { -uint8_t v___x_189_; -v___x_189_ = 0; -return v___x_189_; +lean_inc(v_n_188_); +lean_dec(v_x_125_); +v___x_190_ = lean_box(0); +v_isShared_191_ = v_isSharedCheck_208_; +goto v_resetjp_189_; } -} -case 4: +v_resetjp_189_: { -if (lean_obj_tag(v_x_179_) == 4) +lean_object* v___y_193_; lean_object* v___x_204_; uint8_t v___x_205_; +v___x_204_ = lean_unsigned_to_nat(1024u); +v___x_205_ = lean_nat_dec_le(v___x_204_, v_prec_126_); +if (v___x_205_ == 0) { -uint8_t v___x_190_; -v___x_190_ = 1; -return v___x_190_; +lean_object* v___x_206_; +v___x_206_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_193_ = v___x_206_; +goto v___jp_192_; } else { -uint8_t v___x_191_; -v___x_191_ = 0; -return v___x_191_; +lean_object* v___x_207_; +v___x_207_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_193_ = v___x_207_; +goto v___jp_192_; } -} -default: +v___jp_192_: { -if (lean_obj_tag(v_x_179_) == 5) +lean_object* v___x_194_; lean_object* v___x_195_; lean_object* v___x_197_; +v___x_194_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__18)); +v___x_195_ = l_Nat_reprFast(v_n_188_); +if (v_isShared_191_ == 0) { -uint8_t v___x_192_; -v___x_192_ = 1; -return v___x_192_; +lean_ctor_set(v___x_190_, 0, v___x_195_); +v___x_197_ = v___x_190_; +goto v_reusejp_196_; } else { -uint8_t v___x_193_; -v___x_193_ = 0; -return v___x_193_; +lean_object* v_reuseFailAlloc_203_; +v_reuseFailAlloc_203_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v_reuseFailAlloc_203_, 0, v___x_195_); +v___x_197_ = v_reuseFailAlloc_203_; +goto v_reusejp_196_; } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instBEqState_beq___boxed(lean_object* v_x_194_, lean_object* v_x_195_){ -_start: +v_reusejp_196_: { -uint8_t v_res_196_; lean_object* v_r_197_; -v_res_196_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_x_194_, v_x_195_); -lean_dec(v_x_195_); -lean_dec(v_x_194_); -v_r_197_ = lean_box(v_res_196_); -return v_r_197_; -} -} -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg(lean_object* v_writer_200_){ -_start: -{ -lean_object* v_state_201_; -v_state_201_ = lean_ctor_get(v_writer_200_, 2); -switch(lean_obj_tag(v_state_201_)) -{ -case 5: -{ -uint8_t v___x_202_; -v___x_202_ = 1; +lean_object* v___x_198_; lean_object* v___x_199_; uint8_t v___x_200_; lean_object* v___x_201_; lean_object* v___x_202_; +v___x_198_ = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(v___x_198_, 0, v___x_194_); +lean_ctor_set(v___x_198_, 1, v___x_197_); +lean_inc(v___y_193_); +v___x_199_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_199_, 0, v___y_193_); +lean_ctor_set(v___x_199_, 1, v___x_198_); +v___x_200_ = 0; +v___x_201_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_201_, 0, v___x_199_); +lean_ctor_set_uint8(v___x_201_, sizeof(void*)*1, v___x_200_); +v___x_202_ = l_Repr_addAppParen(v___x_201_, v_prec_126_); return v___x_202_; } +} +} +} case 4: { -uint8_t v___x_203_; -v___x_203_ = 1; -return v___x_203_; -} -default: +lean_object* v___x_209_; uint8_t v___x_210_; +v___x_209_ = lean_unsigned_to_nat(1024u); +v___x_210_ = lean_nat_dec_le(v___x_209_, v_prec_126_); +if (v___x_210_ == 0) { -uint8_t v_userClosedBody_204_; -v_userClosedBody_204_ = lean_ctor_get_uint8(v_writer_200_, sizeof(void*)*6 + 1); -return v_userClosedBody_204_; +lean_object* v___x_211_; +v___x_211_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_149_ = v___x_211_; +goto v___jp_148_; } -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg___boxed(lean_object* v_writer_205_){ -_start: +else { -uint8_t v_res_206_; lean_object* v_r_207_; -v_res_206_ = l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg(v_writer_205_); -lean_dec_ref(v_writer_205_); -v_r_207_ = lean_box(v_res_206_); -return v_r_207_; +lean_object* v___x_212_; +v___x_212_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_149_ = v___x_212_; +goto v___jp_148_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_noMoreUserData(uint8_t v_dir_208_, lean_object* v_writer_209_){ -_start: -{ -lean_object* v_state_210_; -v_state_210_ = lean_ctor_get(v_writer_209_, 2); -switch(lean_obj_tag(v_state_210_)) -{ case 5: { -uint8_t v___x_211_; -v___x_211_ = 1; -return v___x_211_; -} -case 4: +lean_object* v___x_213_; uint8_t v___x_214_; +v___x_213_ = lean_unsigned_to_nat(1024u); +v___x_214_ = lean_nat_dec_le(v___x_213_, v_prec_126_); +if (v___x_214_ == 0) { -uint8_t v___x_212_; -v___x_212_ = 1; -return v___x_212_; +lean_object* v___x_215_; +v___x_215_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_156_ = v___x_215_; +goto v___jp_155_; +} +else +{ +lean_object* v___x_216_; +v___x_216_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_156_ = v___x_216_; +goto v___jp_155_; +} +} +case 6: +{ +lean_object* v___x_217_; uint8_t v___x_218_; +v___x_217_ = lean_unsigned_to_nat(1024u); +v___x_218_ = lean_nat_dec_le(v___x_217_, v_prec_126_); +if (v___x_218_ == 0) +{ +lean_object* v___x_219_; +v___x_219_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_163_ = v___x_219_; +goto v___jp_162_; +} +else +{ +lean_object* v___x_220_; +v___x_220_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_163_ = v___x_220_; +goto v___jp_162_; +} } default: { -uint8_t v_userClosedBody_213_; -v_userClosedBody_213_ = lean_ctor_get_uint8(v_writer_209_, sizeof(void*)*6 + 1); -return v_userClosedBody_213_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_noMoreUserData___boxed(lean_object* v_dir_214_, lean_object* v_writer_215_){ -_start: +lean_object* v___x_221_; uint8_t v___x_222_; +v___x_221_ = lean_unsigned_to_nat(1024u); +v___x_222_ = lean_nat_dec_le(v___x_221_, v_prec_126_); +if (v___x_222_ == 0) { -uint8_t v_dir_boxed_216_; uint8_t v_res_217_; lean_object* v_r_218_; -v_dir_boxed_216_ = lean_unbox(v_dir_214_); -v_res_217_ = l_Std_Http_Protocol_H1_Writer_noMoreUserData(v_dir_boxed_216_, v_writer_215_); -lean_dec_ref(v_writer_215_); -v_r_218_ = lean_box(v_res_217_); -return v_r_218_; -} -} -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isClosed___redArg(lean_object* v_writer_219_){ -_start: -{ -lean_object* v_state_220_; -v_state_220_ = lean_ctor_get(v_writer_219_, 2); -if (lean_obj_tag(v_state_220_) == 5) -{ -uint8_t v___x_221_; -v___x_221_ = 1; -return v___x_221_; +lean_object* v___x_223_; +v___x_223_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__14); +v___y_170_ = v___x_223_; +goto v___jp_169_; } else { -uint8_t v___x_222_; -v___x_222_ = 0; -return v___x_222_; +lean_object* v___x_224_; +v___x_224_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15, &l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15_once, _init_l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__15); +v___y_170_ = v___x_224_; +goto v___jp_169_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isClosed___redArg___boxed(lean_object* v_writer_223_){ +v___jp_127_: +{ +lean_object* v___x_129_; lean_object* v___x_130_; uint8_t v___x_131_; lean_object* v___x_132_; lean_object* v___x_133_; +v___x_129_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__1)); +lean_inc(v___y_128_); +v___x_130_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_130_, 0, v___y_128_); +lean_ctor_set(v___x_130_, 1, v___x_129_); +v___x_131_ = 0; +v___x_132_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_132_, 0, v___x_130_); +lean_ctor_set_uint8(v___x_132_, sizeof(void*)*1, v___x_131_); +v___x_133_ = l_Repr_addAppParen(v___x_132_, v_prec_126_); +return v___x_133_; +} +v___jp_134_: +{ +lean_object* v___x_136_; lean_object* v___x_137_; uint8_t v___x_138_; lean_object* v___x_139_; lean_object* v___x_140_; +v___x_136_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__3)); +lean_inc(v___y_135_); +v___x_137_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_137_, 0, v___y_135_); +lean_ctor_set(v___x_137_, 1, v___x_136_); +v___x_138_ = 0; +v___x_139_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_139_, 0, v___x_137_); +lean_ctor_set_uint8(v___x_139_, sizeof(void*)*1, v___x_138_); +v___x_140_ = l_Repr_addAppParen(v___x_139_, v_prec_126_); +return v___x_140_; +} +v___jp_141_: +{ +lean_object* v___x_143_; lean_object* v___x_144_; uint8_t v___x_145_; lean_object* v___x_146_; lean_object* v___x_147_; +v___x_143_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__5)); +lean_inc(v___y_142_); +v___x_144_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_144_, 0, v___y_142_); +lean_ctor_set(v___x_144_, 1, v___x_143_); +v___x_145_ = 0; +v___x_146_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_146_, 0, v___x_144_); +lean_ctor_set_uint8(v___x_146_, sizeof(void*)*1, v___x_145_); +v___x_147_ = l_Repr_addAppParen(v___x_146_, v_prec_126_); +return v___x_147_; +} +v___jp_148_: +{ +lean_object* v___x_150_; lean_object* v___x_151_; uint8_t v___x_152_; lean_object* v___x_153_; lean_object* v___x_154_; +v___x_150_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__7)); +lean_inc(v___y_149_); +v___x_151_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_151_, 0, v___y_149_); +lean_ctor_set(v___x_151_, 1, v___x_150_); +v___x_152_ = 0; +v___x_153_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_153_, 0, v___x_151_); +lean_ctor_set_uint8(v___x_153_, sizeof(void*)*1, v___x_152_); +v___x_154_ = l_Repr_addAppParen(v___x_153_, v_prec_126_); +return v___x_154_; +} +v___jp_155_: +{ +lean_object* v___x_157_; lean_object* v___x_158_; uint8_t v___x_159_; lean_object* v___x_160_; lean_object* v___x_161_; +v___x_157_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__9)); +lean_inc(v___y_156_); +v___x_158_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_158_, 0, v___y_156_); +lean_ctor_set(v___x_158_, 1, v___x_157_); +v___x_159_ = 0; +v___x_160_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_160_, 0, v___x_158_); +lean_ctor_set_uint8(v___x_160_, sizeof(void*)*1, v___x_159_); +v___x_161_ = l_Repr_addAppParen(v___x_160_, v_prec_126_); +return v___x_161_; +} +v___jp_162_: +{ +lean_object* v___x_164_; lean_object* v___x_165_; uint8_t v___x_166_; lean_object* v___x_167_; lean_object* v___x_168_; +v___x_164_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__11)); +lean_inc(v___y_163_); +v___x_165_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_165_, 0, v___y_163_); +lean_ctor_set(v___x_165_, 1, v___x_164_); +v___x_166_ = 0; +v___x_167_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_167_, 0, v___x_165_); +lean_ctor_set_uint8(v___x_167_, sizeof(void*)*1, v___x_166_); +v___x_168_ = l_Repr_addAppParen(v___x_167_, v_prec_126_); +return v___x_168_; +} +v___jp_169_: +{ +lean_object* v___x_171_; lean_object* v___x_172_; uint8_t v___x_173_; lean_object* v___x_174_; lean_object* v___x_175_; +v___x_171_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_instReprState_repr___closed__13)); +lean_inc(v___y_170_); +v___x_172_ = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(v___x_172_, 0, v___y_170_); +lean_ctor_set(v___x_172_, 1, v___x_171_); +v___x_173_ = 0; +v___x_174_ = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(v___x_174_, 0, v___x_172_); +lean_ctor_set_uint8(v___x_174_, sizeof(void*)*1, v___x_173_); +v___x_175_ = l_Repr_addAppParen(v___x_174_, v_prec_126_); +return v___x_175_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instReprState_repr___boxed(lean_object* v_x_225_, lean_object* v_prec_226_){ _start: { -uint8_t v_res_224_; lean_object* v_r_225_; -v_res_224_ = l_Std_Http_Protocol_H1_Writer_isClosed___redArg(v_writer_223_); -lean_dec_ref(v_writer_223_); -v_r_225_ = lean_box(v_res_224_); -return v_r_225_; +lean_object* v_res_227_; +v_res_227_ = l_Std_Http_Protocol_H1_Writer_instReprState_repr(v_x_225_, v_prec_226_); +lean_dec(v_prec_226_); +return v_res_227_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isClosed(uint8_t v_dir_226_, lean_object* v_writer_227_){ +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_instBEqState_beq(lean_object* v_x_230_, lean_object* v_x_231_){ _start: { -lean_object* v_state_228_; -v_state_228_ = lean_ctor_get(v_writer_227_, 2); -if (lean_obj_tag(v_state_228_) == 5) +switch(lean_obj_tag(v_x_230_)) { -uint8_t v___x_229_; -v___x_229_ = 1; -return v___x_229_; +case 0: +{ +if (lean_obj_tag(v_x_231_) == 0) +{ +uint8_t v___x_232_; +v___x_232_ = 1; +return v___x_232_; } else { -uint8_t v___x_230_; -v___x_230_ = 0; -return v___x_230_; +uint8_t v___x_233_; +v___x_233_ = 0; +return v___x_233_; } } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isClosed___boxed(lean_object* v_dir_231_, lean_object* v_writer_232_){ -_start: +case 1: { -uint8_t v_dir_boxed_233_; uint8_t v_res_234_; lean_object* v_r_235_; -v_dir_boxed_233_ = lean_unbox(v_dir_231_); -v_res_234_ = l_Std_Http_Protocol_H1_Writer_isClosed(v_dir_boxed_233_, v_writer_232_); -lean_dec_ref(v_writer_232_); -v_r_235_ = lean_box(v_res_234_); -return v_r_235_; -} -} -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isComplete___redArg(lean_object* v_writer_236_){ -_start: +if (lean_obj_tag(v_x_231_) == 1) { -lean_object* v_state_237_; -v_state_237_ = lean_ctor_get(v_writer_236_, 2); -if (lean_obj_tag(v_state_237_) == 4) -{ -uint8_t v___x_238_; -v___x_238_ = 1; -return v___x_238_; +uint8_t v___x_234_; +v___x_234_ = 1; +return v___x_234_; } else { -uint8_t v___x_239_; -v___x_239_ = 0; -return v___x_239_; +uint8_t v___x_235_; +v___x_235_ = 0; +return v___x_235_; } } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isComplete___redArg___boxed(lean_object* v_writer_240_){ -_start: +case 2: { -uint8_t v_res_241_; lean_object* v_r_242_; -v_res_241_ = l_Std_Http_Protocol_H1_Writer_isComplete___redArg(v_writer_240_); -lean_dec_ref(v_writer_240_); -v_r_242_ = lean_box(v_res_241_); -return v_r_242_; -} -} -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isComplete(uint8_t v_dir_243_, lean_object* v_writer_244_){ -_start: +if (lean_obj_tag(v_x_231_) == 2) { -lean_object* v_state_245_; -v_state_245_ = lean_ctor_get(v_writer_244_, 2); -if (lean_obj_tag(v_state_245_) == 4) +uint8_t v___x_236_; +v___x_236_ = 1; +return v___x_236_; +} +else +{ +uint8_t v___x_237_; +v___x_237_ = 0; +return v___x_237_; +} +} +case 3: +{ +if (lean_obj_tag(v_x_231_) == 3) +{ +lean_object* v_n_238_; lean_object* v_n_239_; uint8_t v___x_240_; +v_n_238_ = lean_ctor_get(v_x_230_, 0); +v_n_239_ = lean_ctor_get(v_x_231_, 0); +v___x_240_ = lean_nat_dec_eq(v_n_238_, v_n_239_); +return v___x_240_; +} +else +{ +uint8_t v___x_241_; +v___x_241_ = 0; +return v___x_241_; +} +} +case 4: +{ +if (lean_obj_tag(v_x_231_) == 4) +{ +uint8_t v___x_242_; +v___x_242_ = 1; +return v___x_242_; +} +else +{ +uint8_t v___x_243_; +v___x_243_ = 0; +return v___x_243_; +} +} +case 5: +{ +if (lean_obj_tag(v_x_231_) == 5) +{ +uint8_t v___x_244_; +v___x_244_ = 1; +return v___x_244_; +} +else +{ +uint8_t v___x_245_; +v___x_245_ = 0; +return v___x_245_; +} +} +case 6: +{ +if (lean_obj_tag(v_x_231_) == 6) { uint8_t v___x_246_; v___x_246_ = 1; @@ -1006,894 +991,1204 @@ v___x_247_ = 0; return v___x_247_; } } +default: +{ +if (lean_obj_tag(v_x_231_) == 7) +{ +uint8_t v___x_248_; +v___x_248_ = 1; +return v___x_248_; } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isComplete___boxed(lean_object* v_dir_248_, lean_object* v_writer_249_){ +else +{ +uint8_t v___x_249_; +v___x_249_ = 0; +return v___x_249_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_instBEqState_beq___boxed(lean_object* v_x_250_, lean_object* v_x_251_){ _start: { -uint8_t v_dir_boxed_250_; uint8_t v_res_251_; lean_object* v_r_252_; -v_dir_boxed_250_ = lean_unbox(v_dir_248_); -v_res_251_ = l_Std_Http_Protocol_H1_Writer_isComplete(v_dir_boxed_250_, v_writer_249_); -lean_dec_ref(v_writer_249_); -v_r_252_ = lean_box(v_res_251_); -return v_r_252_; +uint8_t v_res_252_; lean_object* v_r_253_; +v_res_252_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_x_250_, v_x_251_); +lean_dec(v_x_251_); +lean_dec(v_x_250_); +v_r_253_ = lean_box(v_res_252_); +return v_r_253_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg(lean_object* v_writer_253_){ +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg(lean_object* v_writer_256_){ _start: { -lean_object* v_state_254_; -v_state_254_ = lean_ctor_get(v_writer_253_, 2); -switch(lean_obj_tag(v_state_254_)) +lean_object* v_state_257_; +v_state_257_ = lean_ctor_get(v_writer_256_, 2); +switch(lean_obj_tag(v_state_257_)) { -case 1: -{ -uint8_t v___x_255_; -v___x_255_ = 1; -return v___x_255_; -} -case 2: -{ -uint8_t v___x_256_; -v___x_256_ = 1; -return v___x_256_; -} -case 3: -{ -uint8_t v_userClosedBody_257_; -v_userClosedBody_257_ = lean_ctor_get_uint8(v_writer_253_, sizeof(void*)*6 + 1); -if (v_userClosedBody_257_ == 0) +case 7: { uint8_t v___x_258_; v___x_258_ = 1; return v___x_258_; } -else +case 6: { uint8_t v___x_259_; -v___x_259_ = 0; +v___x_259_ = 1; return v___x_259_; } -} default: { -uint8_t v___x_260_; -v___x_260_ = 0; -return v___x_260_; +uint8_t v_userClosedBody_260_; +v_userClosedBody_260_ = lean_ctor_get_uint8(v_writer_256_, sizeof(void*)*6 + 1); +return v_userClosedBody_260_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg___boxed(lean_object* v_writer_261_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg___boxed(lean_object* v_writer_261_){ _start: { uint8_t v_res_262_; lean_object* v_r_263_; -v_res_262_ = l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg(v_writer_261_); +v_res_262_ = l_Std_Http_Protocol_H1_Writer_noMoreUserData___redArg(v_writer_261_); lean_dec_ref(v_writer_261_); v_r_263_ = lean_box(v_res_262_); return v_r_263_; } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_canAcceptData(uint8_t v_dir_264_, lean_object* v_writer_265_){ +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_noMoreUserData(uint8_t v_dir_264_, lean_object* v_writer_265_){ _start: { lean_object* v_state_266_; v_state_266_ = lean_ctor_get(v_writer_265_, 2); switch(lean_obj_tag(v_state_266_)) { -case 1: +case 7: { uint8_t v___x_267_; v___x_267_ = 1; return v___x_267_; } -case 2: +case 6: { uint8_t v___x_268_; v___x_268_ = 1; return v___x_268_; } -case 3: +default: { uint8_t v_userClosedBody_269_; v_userClosedBody_269_ = lean_ctor_get_uint8(v_writer_265_, sizeof(void*)*6 + 1); -if (v_userClosedBody_269_ == 0) +return v_userClosedBody_269_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_noMoreUserData___boxed(lean_object* v_dir_270_, lean_object* v_writer_271_){ +_start: { -uint8_t v___x_270_; -v___x_270_ = 1; -return v___x_270_; +uint8_t v_dir_boxed_272_; uint8_t v_res_273_; lean_object* v_r_274_; +v_dir_boxed_272_ = lean_unbox(v_dir_270_); +v_res_273_ = l_Std_Http_Protocol_H1_Writer_noMoreUserData(v_dir_boxed_272_, v_writer_271_); +lean_dec_ref(v_writer_271_); +v_r_274_ = lean_box(v_res_273_); +return v_r_274_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isClosed___redArg(lean_object* v_writer_275_){ +_start: +{ +lean_object* v_state_276_; +v_state_276_ = lean_ctor_get(v_writer_275_, 2); +if (lean_obj_tag(v_state_276_) == 7) +{ +uint8_t v___x_277_; +v___x_277_ = 1; +return v___x_277_; } else { -uint8_t v___x_271_; -v___x_271_ = 0; -return v___x_271_; +uint8_t v___x_278_; +v___x_278_ = 0; +return v___x_278_; } } +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isClosed___redArg___boxed(lean_object* v_writer_279_){ +_start: +{ +uint8_t v_res_280_; lean_object* v_r_281_; +v_res_280_ = l_Std_Http_Protocol_H1_Writer_isClosed___redArg(v_writer_279_); +lean_dec_ref(v_writer_279_); +v_r_281_ = lean_box(v_res_280_); +return v_r_281_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isClosed(uint8_t v_dir_282_, lean_object* v_writer_283_){ +_start: +{ +lean_object* v_state_284_; +v_state_284_ = lean_ctor_get(v_writer_283_, 2); +if (lean_obj_tag(v_state_284_) == 7) +{ +uint8_t v___x_285_; +v___x_285_ = 1; +return v___x_285_; +} +else +{ +uint8_t v___x_286_; +v___x_286_ = 0; +return v___x_286_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isClosed___boxed(lean_object* v_dir_287_, lean_object* v_writer_288_){ +_start: +{ +uint8_t v_dir_boxed_289_; uint8_t v_res_290_; lean_object* v_r_291_; +v_dir_boxed_289_ = lean_unbox(v_dir_287_); +v_res_290_ = l_Std_Http_Protocol_H1_Writer_isClosed(v_dir_boxed_289_, v_writer_288_); +lean_dec_ref(v_writer_288_); +v_r_291_ = lean_box(v_res_290_); +return v_r_291_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isComplete___redArg(lean_object* v_writer_292_){ +_start: +{ +lean_object* v_state_293_; +v_state_293_ = lean_ctor_get(v_writer_292_, 2); +if (lean_obj_tag(v_state_293_) == 6) +{ +uint8_t v___x_294_; +v___x_294_ = 1; +return v___x_294_; +} +else +{ +uint8_t v___x_295_; +v___x_295_ = 0; +return v___x_295_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isComplete___redArg___boxed(lean_object* v_writer_296_){ +_start: +{ +uint8_t v_res_297_; lean_object* v_r_298_; +v_res_297_ = l_Std_Http_Protocol_H1_Writer_isComplete___redArg(v_writer_296_); +lean_dec_ref(v_writer_296_); +v_r_298_ = lean_box(v_res_297_); +return v_r_298_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_isComplete(uint8_t v_dir_299_, lean_object* v_writer_300_){ +_start: +{ +lean_object* v_state_301_; +v_state_301_ = lean_ctor_get(v_writer_300_, 2); +if (lean_obj_tag(v_state_301_) == 6) +{ +uint8_t v___x_302_; +v___x_302_ = 1; +return v___x_302_; +} +else +{ +uint8_t v___x_303_; +v___x_303_ = 0; +return v___x_303_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_isComplete___boxed(lean_object* v_dir_304_, lean_object* v_writer_305_){ +_start: +{ +uint8_t v_dir_boxed_306_; uint8_t v_res_307_; lean_object* v_r_308_; +v_dir_boxed_306_ = lean_unbox(v_dir_304_); +v_res_307_ = l_Std_Http_Protocol_H1_Writer_isComplete(v_dir_boxed_306_, v_writer_305_); +lean_dec_ref(v_writer_305_); +v_r_308_ = lean_box(v_res_307_); +return v_r_308_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg(lean_object* v_writer_309_){ +_start: +{ +lean_object* v_state_310_; uint8_t v_userClosedBody_311_; +v_state_310_ = lean_ctor_get(v_writer_309_, 2); +v_userClosedBody_311_ = lean_ctor_get_uint8(v_writer_309_, sizeof(void*)*6 + 1); +switch(lean_obj_tag(v_state_310_)) +{ +case 1: +{ +uint8_t v___x_315_; +v___x_315_ = 1; +return v___x_315_; +} +case 2: +{ +uint8_t v___x_316_; +v___x_316_ = 1; +return v___x_316_; +} +case 3: +{ +if (v_userClosedBody_311_ == 0) +{ +uint8_t v___x_317_; +v___x_317_ = 1; +return v___x_317_; +} +else +{ +uint8_t v___x_318_; +v___x_318_ = 0; +return v___x_318_; +} +} +case 4: +{ +goto v___jp_312_; +} +case 5: +{ +goto v___jp_312_; +} default: { -uint8_t v___x_272_; -v___x_272_ = 0; -return v___x_272_; +uint8_t v___x_319_; +v___x_319_ = 0; +return v___x_319_; } } -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_canAcceptData___boxed(lean_object* v_dir_273_, lean_object* v_writer_274_){ -_start: +v___jp_312_: { -uint8_t v_dir_boxed_275_; uint8_t v_res_276_; lean_object* v_r_277_; -v_dir_boxed_275_ = lean_unbox(v_dir_273_); -v_res_276_ = l_Std_Http_Protocol_H1_Writer_canAcceptData(v_dir_boxed_275_, v_writer_274_); -lean_dec_ref(v_writer_274_); -v_r_277_ = lean_box(v_res_276_); -return v_r_277_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody___redArg(lean_object* v_writer_278_){ -_start: +if (v_userClosedBody_311_ == 0) { -lean_object* v_userData_279_; lean_object* v_outputData_280_; lean_object* v_state_281_; lean_object* v_knownSize_282_; lean_object* v_messageHead_283_; uint8_t v_sentMessage_284_; uint8_t v_omitBody_285_; lean_object* v_userDataBytes_286_; lean_object* v___x_288_; uint8_t v_isShared_289_; uint8_t v_isSharedCheck_294_; -v_userData_279_ = lean_ctor_get(v_writer_278_, 0); -v_outputData_280_ = lean_ctor_get(v_writer_278_, 1); -v_state_281_ = lean_ctor_get(v_writer_278_, 2); -v_knownSize_282_ = lean_ctor_get(v_writer_278_, 3); -v_messageHead_283_ = lean_ctor_get(v_writer_278_, 4); -v_sentMessage_284_ = lean_ctor_get_uint8(v_writer_278_, sizeof(void*)*6); -v_omitBody_285_ = lean_ctor_get_uint8(v_writer_278_, sizeof(void*)*6 + 2); -v_userDataBytes_286_ = lean_ctor_get(v_writer_278_, 5); -v_isSharedCheck_294_ = !lean_is_exclusive(v_writer_278_); -if (v_isSharedCheck_294_ == 0) -{ -v___x_288_ = v_writer_278_; -v_isShared_289_ = v_isSharedCheck_294_; -goto v_resetjp_287_; +uint8_t v___x_313_; +v___x_313_ = 1; +return v___x_313_; } else { -lean_inc(v_userDataBytes_286_); -lean_inc(v_messageHead_283_); -lean_inc(v_knownSize_282_); -lean_inc(v_state_281_); -lean_inc(v_outputData_280_); -lean_inc(v_userData_279_); -lean_dec(v_writer_278_); -v___x_288_ = lean_box(0); -v_isShared_289_ = v_isSharedCheck_294_; -goto v_resetjp_287_; +uint8_t v___x_314_; +v___x_314_ = 0; +return v___x_314_; } -v_resetjp_287_: +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg___boxed(lean_object* v_writer_320_){ +_start: { -uint8_t v___x_290_; lean_object* v___x_292_; -v___x_290_ = 1; -if (v_isShared_289_ == 0) +uint8_t v_res_321_; lean_object* v_r_322_; +v_res_321_ = l_Std_Http_Protocol_H1_Writer_canAcceptData___redArg(v_writer_320_); +lean_dec_ref(v_writer_320_); +v_r_322_ = lean_box(v_res_321_); +return v_r_322_; +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_canAcceptData(uint8_t v_dir_323_, lean_object* v_writer_324_){ +_start: { -v___x_292_ = v___x_288_; -goto v_reusejp_291_; +lean_object* v_state_325_; uint8_t v_userClosedBody_326_; +v_state_325_ = lean_ctor_get(v_writer_324_, 2); +v_userClosedBody_326_ = lean_ctor_get_uint8(v_writer_324_, sizeof(void*)*6 + 1); +switch(lean_obj_tag(v_state_325_)) +{ +case 1: +{ +uint8_t v___x_330_; +v___x_330_ = 1; +return v___x_330_; +} +case 2: +{ +uint8_t v___x_331_; +v___x_331_ = 1; +return v___x_331_; +} +case 3: +{ +if (v_userClosedBody_326_ == 0) +{ +uint8_t v___x_332_; +v___x_332_ = 1; +return v___x_332_; } else { -lean_object* v_reuseFailAlloc_293_; -v_reuseFailAlloc_293_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_293_, 0, v_userData_279_); -lean_ctor_set(v_reuseFailAlloc_293_, 1, v_outputData_280_); -lean_ctor_set(v_reuseFailAlloc_293_, 2, v_state_281_); -lean_ctor_set(v_reuseFailAlloc_293_, 3, v_knownSize_282_); -lean_ctor_set(v_reuseFailAlloc_293_, 4, v_messageHead_283_); -lean_ctor_set(v_reuseFailAlloc_293_, 5, v_userDataBytes_286_); -lean_ctor_set_uint8(v_reuseFailAlloc_293_, sizeof(void*)*6, v_sentMessage_284_); -lean_ctor_set_uint8(v_reuseFailAlloc_293_, sizeof(void*)*6 + 2, v_omitBody_285_); -v___x_292_ = v_reuseFailAlloc_293_; -goto v_reusejp_291_; +uint8_t v___x_333_; +v___x_333_ = 0; +return v___x_333_; } -v_reusejp_291_: +} +case 4: { -lean_ctor_set_uint8(v___x_292_, sizeof(void*)*6 + 1, v___x_290_); -return v___x_292_; +goto v___jp_327_; } -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody(uint8_t v_dir_295_, lean_object* v_writer_296_){ -_start: +case 5: { -lean_object* v_userData_297_; lean_object* v_outputData_298_; lean_object* v_state_299_; lean_object* v_knownSize_300_; lean_object* v_messageHead_301_; uint8_t v_sentMessage_302_; uint8_t v_omitBody_303_; lean_object* v_userDataBytes_304_; lean_object* v___x_306_; uint8_t v_isShared_307_; uint8_t v_isSharedCheck_312_; -v_userData_297_ = lean_ctor_get(v_writer_296_, 0); -v_outputData_298_ = lean_ctor_get(v_writer_296_, 1); -v_state_299_ = lean_ctor_get(v_writer_296_, 2); -v_knownSize_300_ = lean_ctor_get(v_writer_296_, 3); -v_messageHead_301_ = lean_ctor_get(v_writer_296_, 4); -v_sentMessage_302_ = lean_ctor_get_uint8(v_writer_296_, sizeof(void*)*6); -v_omitBody_303_ = lean_ctor_get_uint8(v_writer_296_, sizeof(void*)*6 + 2); -v_userDataBytes_304_ = lean_ctor_get(v_writer_296_, 5); -v_isSharedCheck_312_ = !lean_is_exclusive(v_writer_296_); -if (v_isSharedCheck_312_ == 0) +goto v___jp_327_; +} +default: { -v___x_306_ = v_writer_296_; -v_isShared_307_ = v_isSharedCheck_312_; -goto v_resetjp_305_; +uint8_t v___x_334_; +v___x_334_ = 0; +return v___x_334_; } -else +} +v___jp_327_: { -lean_inc(v_userDataBytes_304_); -lean_inc(v_messageHead_301_); -lean_inc(v_knownSize_300_); -lean_inc(v_state_299_); -lean_inc(v_outputData_298_); -lean_inc(v_userData_297_); -lean_dec(v_writer_296_); -v___x_306_ = lean_box(0); -v_isShared_307_ = v_isSharedCheck_312_; -goto v_resetjp_305_; -} -v_resetjp_305_: +if (v_userClosedBody_326_ == 0) { -uint8_t v___x_308_; lean_object* v___x_310_; -v___x_308_ = 1; -if (v_isShared_307_ == 0) -{ -v___x_310_ = v___x_306_; -goto v_reusejp_309_; -} -else -{ -lean_object* v_reuseFailAlloc_311_; -v_reuseFailAlloc_311_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_311_, 0, v_userData_297_); -lean_ctor_set(v_reuseFailAlloc_311_, 1, v_outputData_298_); -lean_ctor_set(v_reuseFailAlloc_311_, 2, v_state_299_); -lean_ctor_set(v_reuseFailAlloc_311_, 3, v_knownSize_300_); -lean_ctor_set(v_reuseFailAlloc_311_, 4, v_messageHead_301_); -lean_ctor_set(v_reuseFailAlloc_311_, 5, v_userDataBytes_304_); -lean_ctor_set_uint8(v_reuseFailAlloc_311_, sizeof(void*)*6, v_sentMessage_302_); -lean_ctor_set_uint8(v_reuseFailAlloc_311_, sizeof(void*)*6 + 2, v_omitBody_303_); -v___x_310_ = v_reuseFailAlloc_311_; -goto v_reusejp_309_; -} -v_reusejp_309_: -{ -lean_ctor_set_uint8(v___x_310_, sizeof(void*)*6 + 1, v___x_308_); -return v___x_310_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody___boxed(lean_object* v_dir_313_, lean_object* v_writer_314_){ -_start: -{ -uint8_t v_dir_boxed_315_; lean_object* v_res_316_; -v_dir_boxed_315_ = lean_unbox(v_dir_313_); -v_res_316_ = l_Std_Http_Protocol_H1_Writer_closeBody(v_dir_boxed_315_, v_writer_314_); -return v_res_316_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(lean_object* v_writer_317_){ -_start: -{ -lean_object* v_knownSize_318_; -v_knownSize_318_ = lean_ctor_get(v_writer_317_, 3); -if (lean_obj_tag(v_knownSize_318_) == 1) -{ -lean_object* v_val_319_; -v_val_319_ = lean_ctor_get(v_knownSize_318_, 0); -lean_inc(v_val_319_); -return v_val_319_; -} -else -{ -uint8_t v_userClosedBody_320_; -v_userClosedBody_320_ = lean_ctor_get_uint8(v_writer_317_, sizeof(void*)*6 + 1); -if (v_userClosedBody_320_ == 0) -{ -lean_object* v___x_321_; -v___x_321_ = lean_box(0); -return v___x_321_; -} -else -{ -lean_object* v_userDataBytes_322_; lean_object* v___x_323_; -v_userDataBytes_322_ = lean_ctor_get(v_writer_317_, 5); -lean_inc(v_userDataBytes_322_); -v___x_323_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_323_, 0, v_userDataBytes_322_); -return v___x_323_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg___boxed(lean_object* v_writer_324_){ -_start: -{ -lean_object* v_res_325_; -v_res_325_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_324_); -lean_dec_ref(v_writer_324_); -return v_res_325_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode(uint8_t v_dir_326_, lean_object* v_writer_327_){ -_start: -{ -lean_object* v___x_328_; -v___x_328_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_327_); +uint8_t v___x_328_; +v___x_328_ = 1; return v___x_328_; } +else +{ +uint8_t v___x_329_; +v___x_329_ = 0; +return v___x_329_; } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___boxed(lean_object* v_dir_329_, lean_object* v_writer_330_){ +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_canAcceptData___boxed(lean_object* v_dir_335_, lean_object* v_writer_336_){ _start: { -uint8_t v_dir_boxed_331_; lean_object* v_res_332_; -v_dir_boxed_331_ = lean_unbox(v_dir_329_); -v_res_332_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode(v_dir_boxed_331_, v_writer_330_); -lean_dec_ref(v_writer_330_); -return v_res_332_; +uint8_t v_dir_boxed_337_; uint8_t v_res_338_; lean_object* v_r_339_; +v_dir_boxed_337_ = lean_unbox(v_dir_335_); +v_res_338_ = l_Std_Http_Protocol_H1_Writer_canAcceptData(v_dir_boxed_337_, v_writer_336_); +lean_dec_ref(v_writer_336_); +v_r_339_ = lean_box(v_res_338_); +return v_r_339_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0(lean_object* v_x1_333_, lean_object* v_x2_334_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody___redArg(lean_object* v_writer_340_){ _start: { -lean_object* v_data_335_; lean_object* v___x_336_; lean_object* v___x_337_; -v_data_335_ = lean_ctor_get(v_x2_334_, 0); -v___x_336_ = lean_byte_array_size(v_data_335_); -v___x_337_ = lean_nat_add(v_x1_333_, v___x_336_); -return v___x_337_; +lean_object* v_userData_341_; lean_object* v_outputData_342_; lean_object* v_state_343_; lean_object* v_knownSize_344_; lean_object* v_messageHead_345_; uint8_t v_sentMessage_346_; uint8_t v_omitBody_347_; lean_object* v_userDataBytes_348_; lean_object* v___x_350_; uint8_t v_isShared_351_; uint8_t v_isSharedCheck_356_; +v_userData_341_ = lean_ctor_get(v_writer_340_, 0); +v_outputData_342_ = lean_ctor_get(v_writer_340_, 1); +v_state_343_ = lean_ctor_get(v_writer_340_, 2); +v_knownSize_344_ = lean_ctor_get(v_writer_340_, 3); +v_messageHead_345_ = lean_ctor_get(v_writer_340_, 4); +v_sentMessage_346_ = lean_ctor_get_uint8(v_writer_340_, sizeof(void*)*6); +v_omitBody_347_ = lean_ctor_get_uint8(v_writer_340_, sizeof(void*)*6 + 2); +v_userDataBytes_348_ = lean_ctor_get(v_writer_340_, 5); +v_isSharedCheck_356_ = !lean_is_exclusive(v_writer_340_); +if (v_isSharedCheck_356_ == 0) +{ +v___x_350_ = v_writer_340_; +v_isShared_351_ = v_isSharedCheck_356_; +goto v_resetjp_349_; +} +else +{ +lean_inc(v_userDataBytes_348_); +lean_inc(v_messageHead_345_); +lean_inc(v_knownSize_344_); +lean_inc(v_state_343_); +lean_inc(v_outputData_342_); +lean_inc(v_userData_341_); +lean_dec(v_writer_340_); +v___x_350_ = lean_box(0); +v_isShared_351_ = v_isSharedCheck_356_; +goto v_resetjp_349_; +} +v_resetjp_349_: +{ +uint8_t v___x_352_; lean_object* v___x_354_; +v___x_352_ = 1; +if (v_isShared_351_ == 0) +{ +v___x_354_ = v___x_350_; +goto v_reusejp_353_; +} +else +{ +lean_object* v_reuseFailAlloc_355_; +v_reuseFailAlloc_355_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_355_, 0, v_userData_341_); +lean_ctor_set(v_reuseFailAlloc_355_, 1, v_outputData_342_); +lean_ctor_set(v_reuseFailAlloc_355_, 2, v_state_343_); +lean_ctor_set(v_reuseFailAlloc_355_, 3, v_knownSize_344_); +lean_ctor_set(v_reuseFailAlloc_355_, 4, v_messageHead_345_); +lean_ctor_set(v_reuseFailAlloc_355_, 5, v_userDataBytes_348_); +lean_ctor_set_uint8(v_reuseFailAlloc_355_, sizeof(void*)*6, v_sentMessage_346_); +lean_ctor_set_uint8(v_reuseFailAlloc_355_, sizeof(void*)*6 + 2, v_omitBody_347_); +v___x_354_ = v_reuseFailAlloc_355_; +goto v_reusejp_353_; +} +v_reusejp_353_: +{ +lean_ctor_set_uint8(v___x_354_, sizeof(void*)*6 + 1, v___x_352_); +return v___x_354_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0___boxed(lean_object* v_x1_338_, lean_object* v_x2_339_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody(uint8_t v_dir_357_, lean_object* v_writer_358_){ _start: { -lean_object* v_res_340_; -v_res_340_ = l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0(v_x1_338_, v_x2_339_); -lean_dec_ref(v_x2_339_); -lean_dec(v_x1_338_); -return v_res_340_; +lean_object* v_userData_359_; lean_object* v_outputData_360_; lean_object* v_state_361_; lean_object* v_knownSize_362_; lean_object* v_messageHead_363_; uint8_t v_sentMessage_364_; uint8_t v_omitBody_365_; lean_object* v_userDataBytes_366_; lean_object* v___x_368_; uint8_t v_isShared_369_; uint8_t v_isSharedCheck_374_; +v_userData_359_ = lean_ctor_get(v_writer_358_, 0); +v_outputData_360_ = lean_ctor_get(v_writer_358_, 1); +v_state_361_ = lean_ctor_get(v_writer_358_, 2); +v_knownSize_362_ = lean_ctor_get(v_writer_358_, 3); +v_messageHead_363_ = lean_ctor_get(v_writer_358_, 4); +v_sentMessage_364_ = lean_ctor_get_uint8(v_writer_358_, sizeof(void*)*6); +v_omitBody_365_ = lean_ctor_get_uint8(v_writer_358_, sizeof(void*)*6 + 2); +v_userDataBytes_366_ = lean_ctor_get(v_writer_358_, 5); +v_isSharedCheck_374_ = !lean_is_exclusive(v_writer_358_); +if (v_isSharedCheck_374_ == 0) +{ +v___x_368_ = v_writer_358_; +v_isShared_369_ = v_isSharedCheck_374_; +goto v_resetjp_367_; +} +else +{ +lean_inc(v_userDataBytes_366_); +lean_inc(v_messageHead_363_); +lean_inc(v_knownSize_362_); +lean_inc(v_state_361_); +lean_inc(v_outputData_360_); +lean_inc(v_userData_359_); +lean_dec(v_writer_358_); +v___x_368_ = lean_box(0); +v_isShared_369_ = v_isSharedCheck_374_; +goto v_resetjp_367_; +} +v_resetjp_367_: +{ +uint8_t v___x_370_; lean_object* v___x_372_; +v___x_370_ = 1; +if (v_isShared_369_ == 0) +{ +v___x_372_ = v___x_368_; +goto v_reusejp_371_; +} +else +{ +lean_object* v_reuseFailAlloc_373_; +v_reuseFailAlloc_373_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_373_, 0, v_userData_359_); +lean_ctor_set(v_reuseFailAlloc_373_, 1, v_outputData_360_); +lean_ctor_set(v_reuseFailAlloc_373_, 2, v_state_361_); +lean_ctor_set(v_reuseFailAlloc_373_, 3, v_knownSize_362_); +lean_ctor_set(v_reuseFailAlloc_373_, 4, v_messageHead_363_); +lean_ctor_set(v_reuseFailAlloc_373_, 5, v_userDataBytes_366_); +lean_ctor_set_uint8(v_reuseFailAlloc_373_, sizeof(void*)*6, v_sentMessage_364_); +lean_ctor_set_uint8(v_reuseFailAlloc_373_, sizeof(void*)*6 + 2, v_omitBody_365_); +v___x_372_ = v_reuseFailAlloc_373_; +goto v_reusejp_371_; +} +v_reusejp_371_: +{ +lean_ctor_set_uint8(v___x_372_, sizeof(void*)*6 + 1, v___x_370_); +return v___x_372_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg(lean_object* v_data_361_, lean_object* v_writer_362_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_closeBody___boxed(lean_object* v_dir_375_, lean_object* v_writer_376_){ _start: { -lean_object* v_userData_363_; lean_object* v_outputData_364_; lean_object* v_state_365_; lean_object* v_knownSize_366_; lean_object* v_messageHead_367_; uint8_t v_sentMessage_368_; uint8_t v_userClosedBody_369_; uint8_t v_omitBody_370_; lean_object* v_userDataBytes_371_; lean_object* v___y_373_; lean_object* v___f_377_; -v_userData_363_ = lean_ctor_get(v_writer_362_, 0); -v_outputData_364_ = lean_ctor_get(v_writer_362_, 1); -v_state_365_ = lean_ctor_get(v_writer_362_, 2); -v_knownSize_366_ = lean_ctor_get(v_writer_362_, 3); -v_messageHead_367_ = lean_ctor_get(v_writer_362_, 4); -v_sentMessage_368_ = lean_ctor_get_uint8(v_writer_362_, sizeof(void*)*6); -v_userClosedBody_369_ = lean_ctor_get_uint8(v_writer_362_, sizeof(void*)*6 + 1); -v_omitBody_370_ = lean_ctor_get_uint8(v_writer_362_, sizeof(void*)*6 + 2); -v_userDataBytes_371_ = lean_ctor_get(v_writer_362_, 5); -v___f_377_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__0)); -switch(lean_obj_tag(v_state_365_)) +uint8_t v_dir_boxed_377_; lean_object* v_res_378_; +v_dir_boxed_377_ = lean_unbox(v_dir_375_); +v_res_378_ = l_Std_Http_Protocol_H1_Writer_closeBody(v_dir_boxed_377_, v_writer_376_); +return v_res_378_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(lean_object* v_writer_379_){ +_start: +{ +lean_object* v_knownSize_380_; +v_knownSize_380_ = lean_ctor_get(v_writer_379_, 3); +if (lean_obj_tag(v_knownSize_380_) == 1) +{ +lean_object* v_val_381_; +v_val_381_ = lean_ctor_get(v_knownSize_380_, 0); +lean_inc(v_val_381_); +return v_val_381_; +} +else +{ +uint8_t v_userClosedBody_382_; +v_userClosedBody_382_ = lean_ctor_get_uint8(v_writer_379_, sizeof(void*)*6 + 1); +if (v_userClosedBody_382_ == 0) +{ +lean_object* v___x_383_; +v___x_383_ = lean_box(0); +return v___x_383_; +} +else +{ +lean_object* v_userDataBytes_384_; lean_object* v___x_385_; +v_userDataBytes_384_ = lean_ctor_get(v_writer_379_, 5); +lean_inc(v_userDataBytes_384_); +v___x_385_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_385_, 0, v_userDataBytes_384_); +return v___x_385_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg___boxed(lean_object* v_writer_386_){ +_start: +{ +lean_object* v_res_387_; +v_res_387_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_386_); +lean_dec_ref(v_writer_386_); +return v_res_387_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode(uint8_t v_dir_388_, lean_object* v_writer_389_){ +_start: +{ +lean_object* v___x_390_; +v___x_390_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode___redArg(v_writer_389_); +return v___x_390_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_determineTransferMode___boxed(lean_object* v_dir_391_, lean_object* v_writer_392_){ +_start: +{ +uint8_t v_dir_boxed_393_; lean_object* v_res_394_; +v_dir_boxed_393_ = lean_unbox(v_dir_391_); +v_res_394_ = l_Std_Http_Protocol_H1_Writer_determineTransferMode(v_dir_boxed_393_, v_writer_392_); +lean_dec_ref(v_writer_392_); +return v_res_394_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0(lean_object* v_x1_395_, lean_object* v_x2_396_){ +_start: +{ +lean_object* v_data_397_; lean_object* v___x_398_; lean_object* v___x_399_; +v_data_397_ = lean_ctor_get(v_x2_396_, 0); +v___x_398_ = lean_byte_array_size(v_data_397_); +v___x_399_ = lean_nat_add(v_x1_395_, v___x_398_); +return v___x_399_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0___boxed(lean_object* v_x1_400_, lean_object* v_x2_401_){ +_start: +{ +lean_object* v_res_402_; +v_res_402_ = l_Std_Http_Protocol_H1_Writer_addUserData___redArg___lam__0(v_x1_400_, v_x2_401_); +lean_dec_ref(v_x2_401_); +lean_dec(v_x1_400_); +return v_res_402_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___redArg(lean_object* v_data_423_, lean_object* v_writer_424_){ +_start: +{ +lean_object* v_userData_425_; lean_object* v_outputData_426_; lean_object* v_state_427_; lean_object* v_knownSize_428_; lean_object* v_messageHead_429_; uint8_t v_sentMessage_430_; uint8_t v_userClosedBody_431_; uint8_t v_omitBody_432_; lean_object* v_userDataBytes_433_; lean_object* v___y_435_; lean_object* v___f_439_; +v_userData_425_ = lean_ctor_get(v_writer_424_, 0); +v_outputData_426_ = lean_ctor_get(v_writer_424_, 1); +v_state_427_ = lean_ctor_get(v_writer_424_, 2); +v_knownSize_428_ = lean_ctor_get(v_writer_424_, 3); +v_messageHead_429_ = lean_ctor_get(v_writer_424_, 4); +v_sentMessage_430_ = lean_ctor_get_uint8(v_writer_424_, sizeof(void*)*6); +v_userClosedBody_431_ = lean_ctor_get_uint8(v_writer_424_, sizeof(void*)*6 + 1); +v_omitBody_432_ = lean_ctor_get_uint8(v_writer_424_, sizeof(void*)*6 + 2); +v_userDataBytes_433_ = lean_ctor_get(v_writer_424_, 5); +v___f_439_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__0)); +switch(lean_obj_tag(v_state_427_)) { case 1: { -lean_inc(v_state_365_); -lean_inc(v_userDataBytes_371_); -lean_inc(v_messageHead_367_); -lean_inc(v_knownSize_366_); -lean_inc_ref(v_outputData_364_); -lean_inc_ref(v_userData_363_); -lean_dec_ref(v_writer_362_); -goto v___jp_378_; +lean_inc(v_state_427_); +lean_inc(v_userDataBytes_433_); +lean_inc(v_messageHead_429_); +lean_inc(v_knownSize_428_); +lean_inc_ref(v_outputData_426_); +lean_inc_ref(v_userData_425_); +lean_dec_ref(v_writer_424_); +goto v___jp_440_; } case 2: { -lean_inc(v_state_365_); -lean_inc(v_userDataBytes_371_); -lean_inc(v_messageHead_367_); -lean_inc(v_knownSize_366_); -lean_inc_ref(v_outputData_364_); -lean_inc_ref(v_userData_363_); -lean_dec_ref(v_writer_362_); -goto v___jp_378_; +lean_inc(v_state_427_); +lean_inc(v_userDataBytes_433_); +lean_inc(v_messageHead_429_); +lean_inc(v_knownSize_428_); +lean_inc_ref(v_outputData_426_); +lean_inc_ref(v_userData_425_); +lean_dec_ref(v_writer_424_); +goto v___jp_440_; } case 3: { -if (v_userClosedBody_369_ == 0) +if (v_userClosedBody_431_ == 0) { -lean_inc_ref(v_state_365_); -lean_inc(v_userDataBytes_371_); -lean_inc(v_messageHead_367_); -lean_inc(v_knownSize_366_); -lean_inc_ref(v_outputData_364_); -lean_inc_ref(v_userData_363_); -lean_dec_ref(v_writer_362_); -goto v___jp_378_; +lean_inc_ref(v_state_427_); +lean_inc(v_userDataBytes_433_); +lean_inc(v_messageHead_429_); +lean_inc(v_knownSize_428_); +lean_inc_ref(v_outputData_426_); +lean_inc_ref(v_userData_425_); +lean_dec_ref(v_writer_424_); +goto v___jp_440_; } else { -lean_dec_ref(v_data_361_); -return v_writer_362_; +lean_dec_ref(v_data_423_); +return v_writer_424_; } } +case 4: +{ +goto v___jp_452_; +} +case 5: +{ +goto v___jp_452_; +} default: { -lean_dec_ref(v_data_361_); -return v_writer_362_; +lean_dec_ref(v_data_423_); +return v_writer_424_; } } -v___jp_372_: +v___jp_434_: { -lean_object* v___x_374_; lean_object* v___x_375_; lean_object* v___x_376_; -v___x_374_ = l_Array_append___redArg(v_userData_363_, v_data_361_); -lean_dec_ref(v_data_361_); -v___x_375_ = lean_nat_add(v_userDataBytes_371_, v___y_373_); -lean_dec(v___y_373_); -lean_dec(v_userDataBytes_371_); -v___x_376_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_376_, 0, v___x_374_); -lean_ctor_set(v___x_376_, 1, v_outputData_364_); -lean_ctor_set(v___x_376_, 2, v_state_365_); -lean_ctor_set(v___x_376_, 3, v_knownSize_366_); -lean_ctor_set(v___x_376_, 4, v_messageHead_367_); -lean_ctor_set(v___x_376_, 5, v___x_375_); -lean_ctor_set_uint8(v___x_376_, sizeof(void*)*6, v_sentMessage_368_); -lean_ctor_set_uint8(v___x_376_, sizeof(void*)*6 + 1, v_userClosedBody_369_); -lean_ctor_set_uint8(v___x_376_, sizeof(void*)*6 + 2, v_omitBody_370_); -return v___x_376_; +lean_object* v___x_436_; lean_object* v___x_437_; lean_object* v___x_438_; +v___x_436_ = l_Array_append___redArg(v_userData_425_, v_data_423_); +lean_dec_ref(v_data_423_); +v___x_437_ = lean_nat_add(v_userDataBytes_433_, v___y_435_); +lean_dec(v___y_435_); +lean_dec(v_userDataBytes_433_); +v___x_438_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_438_, 0, v___x_436_); +lean_ctor_set(v___x_438_, 1, v_outputData_426_); +lean_ctor_set(v___x_438_, 2, v_state_427_); +lean_ctor_set(v___x_438_, 3, v_knownSize_428_); +lean_ctor_set(v___x_438_, 4, v_messageHead_429_); +lean_ctor_set(v___x_438_, 5, v___x_437_); +lean_ctor_set_uint8(v___x_438_, sizeof(void*)*6, v_sentMessage_430_); +lean_ctor_set_uint8(v___x_438_, sizeof(void*)*6 + 1, v_userClosedBody_431_); +lean_ctor_set_uint8(v___x_438_, sizeof(void*)*6 + 2, v_omitBody_432_); +return v___x_438_; } -v___jp_378_: +v___jp_440_: { -lean_object* v___x_379_; lean_object* v___x_380_; lean_object* v___x_381_; uint8_t v___x_382_; -v___x_379_ = lean_unsigned_to_nat(0u); -v___x_380_ = lean_array_get_size(v_data_361_); -v___x_381_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); -v___x_382_ = lean_nat_dec_lt(v___x_379_, v___x_380_); -if (v___x_382_ == 0) +lean_object* v___x_441_; lean_object* v___x_442_; lean_object* v___x_443_; uint8_t v___x_444_; +v___x_441_ = lean_unsigned_to_nat(0u); +v___x_442_ = lean_array_get_size(v_data_423_); +v___x_443_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); +v___x_444_ = lean_nat_dec_lt(v___x_441_, v___x_442_); +if (v___x_444_ == 0) { -v___y_373_ = v___x_379_; -goto v___jp_372_; +v___y_435_ = v___x_441_; +goto v___jp_434_; } else { -uint8_t v___x_383_; -v___x_383_ = lean_nat_dec_le(v___x_380_, v___x_380_); -if (v___x_383_ == 0) +uint8_t v___x_445_; +v___x_445_ = lean_nat_dec_le(v___x_442_, v___x_442_); +if (v___x_445_ == 0) { -if (v___x_382_ == 0) +if (v___x_444_ == 0) { -v___y_373_ = v___x_379_; -goto v___jp_372_; +v___y_435_ = v___x_441_; +goto v___jp_434_; } else { -size_t v___x_384_; size_t v___x_385_; lean_object* v___x_386_; -v___x_384_ = ((size_t)0ULL); -v___x_385_ = lean_usize_of_nat(v___x_380_); -lean_inc_ref(v_data_361_); -v___x_386_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_381_, v___f_377_, v_data_361_, v___x_384_, v___x_385_, v___x_379_); -v___y_373_ = v___x_386_; -goto v___jp_372_; +size_t v___x_446_; size_t v___x_447_; lean_object* v___x_448_; +v___x_446_ = ((size_t)0ULL); +v___x_447_ = lean_usize_of_nat(v___x_442_); +lean_inc_ref(v_data_423_); +v___x_448_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_443_, v___f_439_, v_data_423_, v___x_446_, v___x_447_, v___x_441_); +v___y_435_ = v___x_448_; +goto v___jp_434_; } } else { -size_t v___x_387_; size_t v___x_388_; lean_object* v___x_389_; -v___x_387_ = ((size_t)0ULL); -v___x_388_ = lean_usize_of_nat(v___x_380_); -lean_inc_ref(v_data_361_); -v___x_389_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_381_, v___f_377_, v_data_361_, v___x_387_, v___x_388_, v___x_379_); -v___y_373_ = v___x_389_; -goto v___jp_372_; +size_t v___x_449_; size_t v___x_450_; lean_object* v___x_451_; +v___x_449_ = ((size_t)0ULL); +v___x_450_ = lean_usize_of_nat(v___x_442_); +lean_inc_ref(v_data_423_); +v___x_451_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_443_, v___f_439_, v_data_423_, v___x_449_, v___x_450_, v___x_441_); +v___y_435_ = v___x_451_; +goto v___jp_434_; +} +} +} +v___jp_452_: +{ +if (v_userClosedBody_431_ == 0) +{ +lean_inc(v_userDataBytes_433_); +lean_inc(v_messageHead_429_); +lean_inc(v_knownSize_428_); +lean_inc(v_state_427_); +lean_inc_ref(v_outputData_426_); +lean_inc_ref(v_userData_425_); +lean_dec_ref(v_writer_424_); +goto v___jp_440_; +} +else +{ +lean_dec_ref(v_data_423_); +return v_writer_424_; } } } } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData(uint8_t v_dir_390_, lean_object* v_data_391_, lean_object* v_writer_392_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData(uint8_t v_dir_453_, lean_object* v_data_454_, lean_object* v_writer_455_){ _start: { -lean_object* v_userData_393_; lean_object* v_outputData_394_; lean_object* v_state_395_; lean_object* v_knownSize_396_; lean_object* v_messageHead_397_; uint8_t v_sentMessage_398_; uint8_t v_userClosedBody_399_; uint8_t v_omitBody_400_; lean_object* v_userDataBytes_401_; lean_object* v___y_403_; lean_object* v___f_407_; -v_userData_393_ = lean_ctor_get(v_writer_392_, 0); -v_outputData_394_ = lean_ctor_get(v_writer_392_, 1); -v_state_395_ = lean_ctor_get(v_writer_392_, 2); -v_knownSize_396_ = lean_ctor_get(v_writer_392_, 3); -v_messageHead_397_ = lean_ctor_get(v_writer_392_, 4); -v_sentMessage_398_ = lean_ctor_get_uint8(v_writer_392_, sizeof(void*)*6); -v_userClosedBody_399_ = lean_ctor_get_uint8(v_writer_392_, sizeof(void*)*6 + 1); -v_omitBody_400_ = lean_ctor_get_uint8(v_writer_392_, sizeof(void*)*6 + 2); -v_userDataBytes_401_ = lean_ctor_get(v_writer_392_, 5); -v___f_407_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__0)); -switch(lean_obj_tag(v_state_395_)) +lean_object* v_userData_456_; lean_object* v_outputData_457_; lean_object* v_state_458_; lean_object* v_knownSize_459_; lean_object* v_messageHead_460_; uint8_t v_sentMessage_461_; uint8_t v_userClosedBody_462_; uint8_t v_omitBody_463_; lean_object* v_userDataBytes_464_; lean_object* v___y_466_; lean_object* v___f_470_; +v_userData_456_ = lean_ctor_get(v_writer_455_, 0); +v_outputData_457_ = lean_ctor_get(v_writer_455_, 1); +v_state_458_ = lean_ctor_get(v_writer_455_, 2); +v_knownSize_459_ = lean_ctor_get(v_writer_455_, 3); +v_messageHead_460_ = lean_ctor_get(v_writer_455_, 4); +v_sentMessage_461_ = lean_ctor_get_uint8(v_writer_455_, sizeof(void*)*6); +v_userClosedBody_462_ = lean_ctor_get_uint8(v_writer_455_, sizeof(void*)*6 + 1); +v_omitBody_463_ = lean_ctor_get_uint8(v_writer_455_, sizeof(void*)*6 + 2); +v_userDataBytes_464_ = lean_ctor_get(v_writer_455_, 5); +v___f_470_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__0)); +switch(lean_obj_tag(v_state_458_)) { case 1: { -lean_inc(v_state_395_); -lean_inc(v_userDataBytes_401_); -lean_inc(v_messageHead_397_); -lean_inc(v_knownSize_396_); -lean_inc_ref(v_outputData_394_); -lean_inc_ref(v_userData_393_); -lean_dec_ref(v_writer_392_); -goto v___jp_408_; +lean_inc(v_state_458_); +lean_inc(v_userDataBytes_464_); +lean_inc(v_messageHead_460_); +lean_inc(v_knownSize_459_); +lean_inc_ref(v_outputData_457_); +lean_inc_ref(v_userData_456_); +lean_dec_ref(v_writer_455_); +goto v___jp_471_; } case 2: { -lean_inc(v_state_395_); -lean_inc(v_userDataBytes_401_); -lean_inc(v_messageHead_397_); -lean_inc(v_knownSize_396_); -lean_inc_ref(v_outputData_394_); -lean_inc_ref(v_userData_393_); -lean_dec_ref(v_writer_392_); -goto v___jp_408_; +lean_inc(v_state_458_); +lean_inc(v_userDataBytes_464_); +lean_inc(v_messageHead_460_); +lean_inc(v_knownSize_459_); +lean_inc_ref(v_outputData_457_); +lean_inc_ref(v_userData_456_); +lean_dec_ref(v_writer_455_); +goto v___jp_471_; } case 3: { -if (v_userClosedBody_399_ == 0) +if (v_userClosedBody_462_ == 0) { -lean_inc_ref(v_state_395_); -lean_inc(v_userDataBytes_401_); -lean_inc(v_messageHead_397_); -lean_inc(v_knownSize_396_); -lean_inc_ref(v_outputData_394_); -lean_inc_ref(v_userData_393_); -lean_dec_ref(v_writer_392_); -goto v___jp_408_; +lean_inc_ref(v_state_458_); +lean_inc(v_userDataBytes_464_); +lean_inc(v_messageHead_460_); +lean_inc(v_knownSize_459_); +lean_inc_ref(v_outputData_457_); +lean_inc_ref(v_userData_456_); +lean_dec_ref(v_writer_455_); +goto v___jp_471_; } else { -lean_dec_ref(v_data_391_); -return v_writer_392_; +lean_dec_ref(v_data_454_); +return v_writer_455_; } } +case 4: +{ +goto v___jp_483_; +} +case 5: +{ +goto v___jp_483_; +} default: { -lean_dec_ref(v_data_391_); -return v_writer_392_; +lean_dec_ref(v_data_454_); +return v_writer_455_; } } -v___jp_402_: +v___jp_465_: { -lean_object* v___x_404_; lean_object* v___x_405_; lean_object* v___x_406_; -v___x_404_ = l_Array_append___redArg(v_userData_393_, v_data_391_); -lean_dec_ref(v_data_391_); -v___x_405_ = lean_nat_add(v_userDataBytes_401_, v___y_403_); -lean_dec(v___y_403_); -lean_dec(v_userDataBytes_401_); -v___x_406_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_406_, 0, v___x_404_); -lean_ctor_set(v___x_406_, 1, v_outputData_394_); -lean_ctor_set(v___x_406_, 2, v_state_395_); -lean_ctor_set(v___x_406_, 3, v_knownSize_396_); -lean_ctor_set(v___x_406_, 4, v_messageHead_397_); -lean_ctor_set(v___x_406_, 5, v___x_405_); -lean_ctor_set_uint8(v___x_406_, sizeof(void*)*6, v_sentMessage_398_); -lean_ctor_set_uint8(v___x_406_, sizeof(void*)*6 + 1, v_userClosedBody_399_); -lean_ctor_set_uint8(v___x_406_, sizeof(void*)*6 + 2, v_omitBody_400_); -return v___x_406_; +lean_object* v___x_467_; lean_object* v___x_468_; lean_object* v___x_469_; +v___x_467_ = l_Array_append___redArg(v_userData_456_, v_data_454_); +lean_dec_ref(v_data_454_); +v___x_468_ = lean_nat_add(v_userDataBytes_464_, v___y_466_); +lean_dec(v___y_466_); +lean_dec(v_userDataBytes_464_); +v___x_469_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_469_, 0, v___x_467_); +lean_ctor_set(v___x_469_, 1, v_outputData_457_); +lean_ctor_set(v___x_469_, 2, v_state_458_); +lean_ctor_set(v___x_469_, 3, v_knownSize_459_); +lean_ctor_set(v___x_469_, 4, v_messageHead_460_); +lean_ctor_set(v___x_469_, 5, v___x_468_); +lean_ctor_set_uint8(v___x_469_, sizeof(void*)*6, v_sentMessage_461_); +lean_ctor_set_uint8(v___x_469_, sizeof(void*)*6 + 1, v_userClosedBody_462_); +lean_ctor_set_uint8(v___x_469_, sizeof(void*)*6 + 2, v_omitBody_463_); +return v___x_469_; } -v___jp_408_: +v___jp_471_: { -lean_object* v___x_409_; lean_object* v___x_410_; lean_object* v___x_411_; uint8_t v___x_412_; -v___x_409_ = lean_unsigned_to_nat(0u); -v___x_410_ = lean_array_get_size(v_data_391_); -v___x_411_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); -v___x_412_ = lean_nat_dec_lt(v___x_409_, v___x_410_); -if (v___x_412_ == 0) +lean_object* v___x_472_; lean_object* v___x_473_; lean_object* v___x_474_; uint8_t v___x_475_; +v___x_472_ = lean_unsigned_to_nat(0u); +v___x_473_ = lean_array_get_size(v_data_454_); +v___x_474_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); +v___x_475_ = lean_nat_dec_lt(v___x_472_, v___x_473_); +if (v___x_475_ == 0) { -v___y_403_ = v___x_409_; -goto v___jp_402_; +v___y_466_ = v___x_472_; +goto v___jp_465_; } else { -uint8_t v___x_413_; -v___x_413_ = lean_nat_dec_le(v___x_410_, v___x_410_); -if (v___x_413_ == 0) +uint8_t v___x_476_; +v___x_476_ = lean_nat_dec_le(v___x_473_, v___x_473_); +if (v___x_476_ == 0) { -if (v___x_412_ == 0) +if (v___x_475_ == 0) { -v___y_403_ = v___x_409_; -goto v___jp_402_; +v___y_466_ = v___x_472_; +goto v___jp_465_; } else { -size_t v___x_414_; size_t v___x_415_; lean_object* v___x_416_; -v___x_414_ = ((size_t)0ULL); -v___x_415_ = lean_usize_of_nat(v___x_410_); -lean_inc_ref(v_data_391_); -v___x_416_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_411_, v___f_407_, v_data_391_, v___x_414_, v___x_415_, v___x_409_); -v___y_403_ = v___x_416_; -goto v___jp_402_; +size_t v___x_477_; size_t v___x_478_; lean_object* v___x_479_; +v___x_477_ = ((size_t)0ULL); +v___x_478_ = lean_usize_of_nat(v___x_473_); +lean_inc_ref(v_data_454_); +v___x_479_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_474_, v___f_470_, v_data_454_, v___x_477_, v___x_478_, v___x_472_); +v___y_466_ = v___x_479_; +goto v___jp_465_; } } else { -size_t v___x_417_; size_t v___x_418_; lean_object* v___x_419_; -v___x_417_ = ((size_t)0ULL); -v___x_418_ = lean_usize_of_nat(v___x_410_); -lean_inc_ref(v_data_391_); -v___x_419_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_411_, v___f_407_, v_data_391_, v___x_417_, v___x_418_, v___x_409_); -v___y_403_ = v___x_419_; -goto v___jp_402_; +size_t v___x_480_; size_t v___x_481_; lean_object* v___x_482_; +v___x_480_ = ((size_t)0ULL); +v___x_481_ = lean_usize_of_nat(v___x_473_); +lean_inc_ref(v_data_454_); +v___x_482_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_474_, v___f_470_, v_data_454_, v___x_480_, v___x_481_, v___x_472_); +v___y_466_ = v___x_482_; +goto v___jp_465_; +} +} +} +v___jp_483_: +{ +if (v_userClosedBody_462_ == 0) +{ +lean_inc(v_userDataBytes_464_); +lean_inc(v_messageHead_460_); +lean_inc(v_knownSize_459_); +lean_inc(v_state_458_); +lean_inc_ref(v_outputData_457_); +lean_inc_ref(v_userData_456_); +lean_dec_ref(v_writer_455_); +goto v___jp_471_; +} +else +{ +lean_dec_ref(v_data_454_); +return v_writer_455_; } } } } -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___boxed(lean_object* v_dir_420_, lean_object* v_data_421_, lean_object* v_writer_422_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_addUserData___boxed(lean_object* v_dir_484_, lean_object* v_data_485_, lean_object* v_writer_486_){ _start: { -uint8_t v_dir_boxed_423_; lean_object* v_res_424_; -v_dir_boxed_423_ = lean_unbox(v_dir_420_); -v_res_424_ = l_Std_Http_Protocol_H1_Writer_addUserData(v_dir_boxed_423_, v_data_421_, v_writer_422_); -return v_res_424_; +uint8_t v_dir_boxed_487_; lean_object* v_res_488_; +v_dir_boxed_487_ = lean_unbox(v_dir_484_); +v_res_488_ = l_Std_Http_Protocol_H1_Writer_addUserData(v_dir_boxed_487_, v_data_485_, v_writer_486_); +return v_res_488_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(lean_object* v_limitSize_425_, lean_object* v_as_426_, size_t v_i_427_, size_t v_stop_428_, lean_object* v_b_429_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(lean_object* v_limitSize_489_, lean_object* v_as_490_, size_t v_i_491_, size_t v_stop_492_, lean_object* v_b_493_){ _start: { -lean_object* v___y_431_; uint8_t v___x_435_; -v___x_435_ = lean_usize_dec_eq(v_i_427_, v_stop_428_); -if (v___x_435_ == 0) +lean_object* v___y_495_; uint8_t v___x_499_; +v___x_499_ = lean_usize_dec_eq(v_i_491_, v_stop_492_); +if (v___x_499_ == 0) { -lean_object* v_snd_436_; lean_object* v_fst_437_; lean_object* v___x_439_; uint8_t v_isShared_440_; uint8_t v_isSharedCheck_493_; -v_snd_436_ = lean_ctor_get(v_b_429_, 1); -v_fst_437_ = lean_ctor_get(v_b_429_, 0); -v_isSharedCheck_493_ = !lean_is_exclusive(v_b_429_); -if (v_isSharedCheck_493_ == 0) +lean_object* v_snd_500_; lean_object* v_fst_501_; lean_object* v___x_503_; uint8_t v_isShared_504_; uint8_t v_isSharedCheck_557_; +v_snd_500_ = lean_ctor_get(v_b_493_, 1); +v_fst_501_ = lean_ctor_get(v_b_493_, 0); +v_isSharedCheck_557_ = !lean_is_exclusive(v_b_493_); +if (v_isSharedCheck_557_ == 0) { -v___x_439_ = v_b_429_; -v_isShared_440_ = v_isSharedCheck_493_; -goto v_resetjp_438_; +v___x_503_ = v_b_493_; +v_isShared_504_ = v_isSharedCheck_557_; +goto v_resetjp_502_; } else { -lean_inc(v_snd_436_); -lean_inc(v_fst_437_); -lean_dec(v_b_429_); -v___x_439_ = lean_box(0); -v_isShared_440_ = v_isSharedCheck_493_; -goto v_resetjp_438_; +lean_inc(v_snd_500_); +lean_inc(v_fst_501_); +lean_dec(v_b_493_); +v___x_503_ = lean_box(0); +v_isShared_504_ = v_isSharedCheck_557_; +goto v_resetjp_502_; } -v_resetjp_438_: +v_resetjp_502_: { -lean_object* v_fst_441_; lean_object* v_snd_442_; lean_object* v___x_444_; uint8_t v_isShared_445_; uint8_t v_isSharedCheck_492_; -v_fst_441_ = lean_ctor_get(v_snd_436_, 0); -v_snd_442_ = lean_ctor_get(v_snd_436_, 1); -v_isSharedCheck_492_ = !lean_is_exclusive(v_snd_436_); -if (v_isSharedCheck_492_ == 0) +lean_object* v_fst_505_; lean_object* v_snd_506_; lean_object* v___x_508_; uint8_t v_isShared_509_; uint8_t v_isSharedCheck_556_; +v_fst_505_ = lean_ctor_get(v_snd_500_, 0); +v_snd_506_ = lean_ctor_get(v_snd_500_, 1); +v_isSharedCheck_556_ = !lean_is_exclusive(v_snd_500_); +if (v_isSharedCheck_556_ == 0) { -v___x_444_ = v_snd_436_; -v_isShared_445_ = v_isSharedCheck_492_; -goto v_resetjp_443_; +v___x_508_ = v_snd_500_; +v_isShared_509_ = v_isSharedCheck_556_; +goto v_resetjp_507_; } else { -lean_inc(v_snd_442_); -lean_inc(v_fst_441_); -lean_dec(v_snd_436_); -v___x_444_ = lean_box(0); -v_isShared_445_ = v_isSharedCheck_492_; -goto v_resetjp_443_; +lean_inc(v_snd_506_); +lean_inc(v_fst_505_); +lean_dec(v_snd_500_); +v___x_508_ = lean_box(0); +v_isShared_509_ = v_isSharedCheck_556_; +goto v_resetjp_507_; } -v_resetjp_443_: +v_resetjp_507_: { -lean_object* v___x_446_; uint8_t v___x_447_; -v___x_446_ = lean_array_uget(v_as_426_, v_i_427_); -v___x_447_ = lean_nat_dec_le(v_limitSize_425_, v_snd_442_); -if (v___x_447_ == 0) +lean_object* v___x_510_; uint8_t v___x_511_; +v___x_510_ = lean_array_uget(v_as_490_, v_i_491_); +v___x_511_ = lean_nat_dec_le(v_limitSize_489_, v_snd_506_); +if (v___x_511_ == 0) { -lean_object* v_data_448_; lean_object* v_extensions_449_; lean_object* v___x_451_; uint8_t v_isShared_452_; uint8_t v_isSharedCheck_484_; -v_data_448_ = lean_ctor_get(v___x_446_, 0); -v_extensions_449_ = lean_ctor_get(v___x_446_, 1); -v_isSharedCheck_484_ = !lean_is_exclusive(v___x_446_); -if (v_isSharedCheck_484_ == 0) +lean_object* v_data_512_; lean_object* v_extensions_513_; lean_object* v___x_515_; uint8_t v_isShared_516_; uint8_t v_isSharedCheck_548_; +v_data_512_ = lean_ctor_get(v___x_510_, 0); +v_extensions_513_ = lean_ctor_get(v___x_510_, 1); +v_isSharedCheck_548_ = !lean_is_exclusive(v___x_510_); +if (v_isSharedCheck_548_ == 0) { -v___x_451_ = v___x_446_; -v_isShared_452_ = v_isSharedCheck_484_; -goto v_resetjp_450_; +v___x_515_ = v___x_510_; +v_isShared_516_ = v_isSharedCheck_548_; +goto v_resetjp_514_; } else { -lean_inc(v_extensions_449_); -lean_inc(v_data_448_); -lean_dec(v___x_446_); -v___x_451_ = lean_box(0); -v_isShared_452_ = v_isSharedCheck_484_; -goto v_resetjp_450_; +lean_inc(v_extensions_513_); +lean_inc(v_data_512_); +lean_dec(v___x_510_); +v___x_515_ = lean_box(0); +v_isShared_516_ = v_isSharedCheck_548_; +goto v_resetjp_514_; } -v_resetjp_450_: +v_resetjp_514_: { -lean_object* v___x_453_; lean_object* v_remaining_454_; lean_object* v___x_455_; lean_object* v___y_457_; lean_object* v___y_458_; lean_object* v___y_479_; uint8_t v___x_483_; -v___x_453_ = lean_unsigned_to_nat(0u); -v_remaining_454_ = lean_nat_sub(v_limitSize_425_, v_snd_442_); -v___x_455_ = lean_byte_array_size(v_data_448_); -v___x_483_ = lean_nat_dec_le(v___x_455_, v_remaining_454_); -if (v___x_483_ == 0) +lean_object* v___x_517_; lean_object* v_remaining_518_; lean_object* v___x_519_; lean_object* v___y_521_; lean_object* v___y_522_; lean_object* v___y_543_; uint8_t v___x_547_; +v___x_517_ = lean_unsigned_to_nat(0u); +v_remaining_518_ = lean_nat_sub(v_limitSize_489_, v_snd_506_); +v___x_519_ = lean_byte_array_size(v_data_512_); +v___x_547_ = lean_nat_dec_le(v___x_519_, v_remaining_518_); +if (v___x_547_ == 0) { -v___y_479_ = v_remaining_454_; -goto v___jp_478_; +v___y_543_ = v_remaining_518_; +goto v___jp_542_; } else { -lean_dec(v_remaining_454_); -v___y_479_ = v___x_455_; -goto v___jp_478_; +lean_dec(v_remaining_518_); +v___y_543_ = v___x_519_; +goto v___jp_542_; } -v___jp_456_: +v___jp_520_: { -lean_object* v_size_459_; uint8_t v___x_460_; -v_size_459_ = lean_nat_add(v_snd_442_, v___y_457_); -lean_dec(v_snd_442_); -v___x_460_ = lean_nat_dec_lt(v___y_457_, v___x_455_); -if (v___x_460_ == 0) +lean_object* v_size_523_; uint8_t v___x_524_; +v_size_523_ = lean_nat_add(v_snd_506_, v___y_521_); +lean_dec(v_snd_506_); +v___x_524_ = lean_nat_dec_lt(v___y_521_, v___x_519_); +if (v___x_524_ == 0) { -lean_object* v___x_462_; -lean_dec(v___y_457_); -lean_del_object(v___x_451_); -lean_dec_ref(v_extensions_449_); -lean_dec_ref(v_data_448_); -if (v_isShared_445_ == 0) +lean_object* v___x_526_; +lean_dec(v___y_521_); +lean_del_object(v___x_515_); +lean_dec_ref(v_extensions_513_); +lean_dec_ref(v_data_512_); +if (v_isShared_509_ == 0) { -lean_ctor_set(v___x_444_, 1, v_size_459_); -v___x_462_ = v___x_444_; -goto v_reusejp_461_; +lean_ctor_set(v___x_508_, 1, v_size_523_); +v___x_526_ = v___x_508_; +goto v_reusejp_525_; } else { -lean_object* v_reuseFailAlloc_466_; -v_reuseFailAlloc_466_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_466_, 0, v_fst_441_); -lean_ctor_set(v_reuseFailAlloc_466_, 1, v_size_459_); -v___x_462_ = v_reuseFailAlloc_466_; -goto v_reusejp_461_; +lean_object* v_reuseFailAlloc_530_; +v_reuseFailAlloc_530_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_530_, 0, v_fst_505_); +lean_ctor_set(v_reuseFailAlloc_530_, 1, v_size_523_); +v___x_526_ = v_reuseFailAlloc_530_; +goto v_reusejp_525_; } -v_reusejp_461_: +v_reusejp_525_: { -lean_object* v___x_464_; -if (v_isShared_440_ == 0) +lean_object* v___x_528_; +if (v_isShared_504_ == 0) { -lean_ctor_set(v___x_439_, 1, v___x_462_); -lean_ctor_set(v___x_439_, 0, v___y_458_); -v___x_464_ = v___x_439_; -goto v_reusejp_463_; +lean_ctor_set(v___x_503_, 1, v___x_526_); +lean_ctor_set(v___x_503_, 0, v___y_522_); +v___x_528_ = v___x_503_; +goto v_reusejp_527_; } else { -lean_object* v_reuseFailAlloc_465_; -v_reuseFailAlloc_465_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_465_, 0, v___y_458_); -lean_ctor_set(v_reuseFailAlloc_465_, 1, v___x_462_); -v___x_464_ = v_reuseFailAlloc_465_; -goto v_reusejp_463_; +lean_object* v_reuseFailAlloc_529_; +v_reuseFailAlloc_529_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_529_, 0, v___y_522_); +lean_ctor_set(v_reuseFailAlloc_529_, 1, v___x_526_); +v___x_528_ = v_reuseFailAlloc_529_; +goto v_reusejp_527_; } -v_reusejp_463_: +v_reusejp_527_: { -v___y_431_ = v___x_464_; -goto v___jp_430_; +v___y_495_ = v___x_528_; +goto v___jp_494_; } } } else { -lean_object* v___x_467_; lean_object* v_pendingChunk_469_; -v___x_467_ = l_ByteArray_extract(v_data_448_, v___y_457_, v___x_455_); -lean_dec_ref(v_data_448_); -if (v_isShared_452_ == 0) +lean_object* v___x_531_; lean_object* v_pendingChunk_533_; +v___x_531_ = l_ByteArray_extract(v_data_512_, v___y_521_, v___x_519_); +lean_dec_ref(v_data_512_); +if (v_isShared_516_ == 0) { -lean_ctor_set(v___x_451_, 0, v___x_467_); -v_pendingChunk_469_ = v___x_451_; -goto v_reusejp_468_; +lean_ctor_set(v___x_515_, 0, v___x_531_); +v_pendingChunk_533_ = v___x_515_; +goto v_reusejp_532_; } else { -lean_object* v_reuseFailAlloc_477_; -v_reuseFailAlloc_477_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_477_, 0, v___x_467_); -lean_ctor_set(v_reuseFailAlloc_477_, 1, v_extensions_449_); -v_pendingChunk_469_ = v_reuseFailAlloc_477_; -goto v_reusejp_468_; +lean_object* v_reuseFailAlloc_541_; +v_reuseFailAlloc_541_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_541_, 0, v___x_531_); +lean_ctor_set(v_reuseFailAlloc_541_, 1, v_extensions_513_); +v_pendingChunk_533_ = v_reuseFailAlloc_541_; +goto v_reusejp_532_; } -v_reusejp_468_: +v_reusejp_532_: { -lean_object* v___x_470_; lean_object* v___x_472_; -v___x_470_ = lean_array_push(v_fst_441_, v_pendingChunk_469_); -if (v_isShared_445_ == 0) +lean_object* v___x_534_; lean_object* v___x_536_; +v___x_534_ = lean_array_push(v_fst_505_, v_pendingChunk_533_); +if (v_isShared_509_ == 0) { -lean_ctor_set(v___x_444_, 1, v_size_459_); -lean_ctor_set(v___x_444_, 0, v___x_470_); -v___x_472_ = v___x_444_; -goto v_reusejp_471_; +lean_ctor_set(v___x_508_, 1, v_size_523_); +lean_ctor_set(v___x_508_, 0, v___x_534_); +v___x_536_ = v___x_508_; +goto v_reusejp_535_; } else { -lean_object* v_reuseFailAlloc_476_; -v_reuseFailAlloc_476_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_476_, 0, v___x_470_); -lean_ctor_set(v_reuseFailAlloc_476_, 1, v_size_459_); -v___x_472_ = v_reuseFailAlloc_476_; -goto v_reusejp_471_; +lean_object* v_reuseFailAlloc_540_; +v_reuseFailAlloc_540_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_540_, 0, v___x_534_); +lean_ctor_set(v_reuseFailAlloc_540_, 1, v_size_523_); +v___x_536_ = v_reuseFailAlloc_540_; +goto v_reusejp_535_; } -v_reusejp_471_: +v_reusejp_535_: { -lean_object* v___x_474_; -if (v_isShared_440_ == 0) +lean_object* v___x_538_; +if (v_isShared_504_ == 0) { -lean_ctor_set(v___x_439_, 1, v___x_472_); -lean_ctor_set(v___x_439_, 0, v___y_458_); -v___x_474_ = v___x_439_; -goto v_reusejp_473_; +lean_ctor_set(v___x_503_, 1, v___x_536_); +lean_ctor_set(v___x_503_, 0, v___y_522_); +v___x_538_ = v___x_503_; +goto v_reusejp_537_; } else { -lean_object* v_reuseFailAlloc_475_; -v_reuseFailAlloc_475_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_475_, 0, v___y_458_); -lean_ctor_set(v_reuseFailAlloc_475_, 1, v___x_472_); -v___x_474_ = v_reuseFailAlloc_475_; -goto v_reusejp_473_; +lean_object* v_reuseFailAlloc_539_; +v_reuseFailAlloc_539_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_539_, 0, v___y_522_); +lean_ctor_set(v_reuseFailAlloc_539_, 1, v___x_536_); +v___x_538_ = v_reuseFailAlloc_539_; +goto v_reusejp_537_; } -v_reusejp_473_: +v_reusejp_537_: { -v___y_431_ = v___x_474_; -goto v___jp_430_; +v___y_495_ = v___x_538_; +goto v___jp_494_; } } } } } -v___jp_478_: +v___jp_542_: { -uint8_t v___x_480_; -v___x_480_ = lean_nat_dec_eq(v___y_479_, v___x_453_); -if (v___x_480_ == 0) +uint8_t v___x_544_; +v___x_544_ = lean_nat_dec_eq(v___y_543_, v___x_517_); +if (v___x_544_ == 0) { -lean_object* v_dataPart_481_; lean_object* v___x_482_; -v_dataPart_481_ = l_ByteArray_extract(v_data_448_, v___x_453_, v___y_479_); -v___x_482_ = lean_array_push(v_fst_437_, v_dataPart_481_); -v___y_457_ = v___y_479_; -v___y_458_ = v___x_482_; -goto v___jp_456_; +lean_object* v_dataPart_545_; lean_object* v___x_546_; +v_dataPart_545_ = l_ByteArray_extract(v_data_512_, v___x_517_, v___y_543_); +v___x_546_ = lean_array_push(v_fst_501_, v_dataPart_545_); +v___y_521_ = v___y_543_; +v___y_522_ = v___x_546_; +goto v___jp_520_; } else { -v___y_457_ = v___y_479_; -v___y_458_ = v_fst_437_; -goto v___jp_456_; +v___y_521_ = v___y_543_; +v___y_522_ = v_fst_501_; +goto v___jp_520_; } } } } else { -lean_object* v___x_485_; lean_object* v___x_487_; -v___x_485_ = lean_array_push(v_fst_441_, v___x_446_); -if (v_isShared_445_ == 0) +lean_object* v___x_549_; lean_object* v___x_551_; +v___x_549_ = lean_array_push(v_fst_505_, v___x_510_); +if (v_isShared_509_ == 0) { -lean_ctor_set(v___x_444_, 0, v___x_485_); -v___x_487_ = v___x_444_; -goto v_reusejp_486_; +lean_ctor_set(v___x_508_, 0, v___x_549_); +v___x_551_ = v___x_508_; +goto v_reusejp_550_; } else { -lean_object* v_reuseFailAlloc_491_; -v_reuseFailAlloc_491_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_491_, 0, v___x_485_); -lean_ctor_set(v_reuseFailAlloc_491_, 1, v_snd_442_); -v___x_487_ = v_reuseFailAlloc_491_; -goto v_reusejp_486_; +lean_object* v_reuseFailAlloc_555_; +v_reuseFailAlloc_555_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_555_, 0, v___x_549_); +lean_ctor_set(v_reuseFailAlloc_555_, 1, v_snd_506_); +v___x_551_ = v_reuseFailAlloc_555_; +goto v_reusejp_550_; } -v_reusejp_486_: +v_reusejp_550_: { -lean_object* v___x_489_; -if (v_isShared_440_ == 0) +lean_object* v___x_553_; +if (v_isShared_504_ == 0) { -lean_ctor_set(v___x_439_, 1, v___x_487_); -v___x_489_ = v___x_439_; -goto v_reusejp_488_; +lean_ctor_set(v___x_503_, 1, v___x_551_); +v___x_553_ = v___x_503_; +goto v_reusejp_552_; } else { -lean_object* v_reuseFailAlloc_490_; -v_reuseFailAlloc_490_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_490_, 0, v_fst_437_); -lean_ctor_set(v_reuseFailAlloc_490_, 1, v___x_487_); -v___x_489_ = v_reuseFailAlloc_490_; -goto v_reusejp_488_; +lean_object* v_reuseFailAlloc_554_; +v_reuseFailAlloc_554_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_554_, 0, v_fst_501_); +lean_ctor_set(v_reuseFailAlloc_554_, 1, v___x_551_); +v___x_553_ = v_reuseFailAlloc_554_; +goto v_reusejp_552_; } -v_reusejp_488_: +v_reusejp_552_: { -v___y_431_ = v___x_489_; -goto v___jp_430_; +v___y_495_ = v___x_553_; +goto v___jp_494_; } } } @@ -1902,712 +2197,765 @@ goto v___jp_430_; } else { -return v_b_429_; +return v_b_493_; } -v___jp_430_: +v___jp_494_: { -size_t v___x_432_; size_t v___x_433_; -v___x_432_ = ((size_t)1ULL); -v___x_433_ = lean_usize_add(v_i_427_, v___x_432_); -v_i_427_ = v___x_433_; -v_b_429_ = v___y_431_; +size_t v___x_496_; size_t v___x_497_; +v___x_496_ = ((size_t)1ULL); +v___x_497_ = lean_usize_add(v_i_491_, v___x_496_); +v_i_491_ = v___x_497_; +v_b_493_ = v___y_495_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1___boxed(lean_object* v_limitSize_494_, lean_object* v_as_495_, lean_object* v_i_496_, lean_object* v_stop_497_, lean_object* v_b_498_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1___boxed(lean_object* v_limitSize_558_, lean_object* v_as_559_, lean_object* v_i_560_, lean_object* v_stop_561_, lean_object* v_b_562_){ _start: { -size_t v_i_boxed_499_; size_t v_stop_boxed_500_; lean_object* v_res_501_; -v_i_boxed_499_ = lean_unbox_usize(v_i_496_); -lean_dec(v_i_496_); -v_stop_boxed_500_ = lean_unbox_usize(v_stop_497_); -lean_dec(v_stop_497_); -v_res_501_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_494_, v_as_495_, v_i_boxed_499_, v_stop_boxed_500_, v_b_498_); -lean_dec_ref(v_as_495_); -lean_dec(v_limitSize_494_); -return v_res_501_; +size_t v_i_boxed_563_; size_t v_stop_boxed_564_; lean_object* v_res_565_; +v_i_boxed_563_ = lean_unbox_usize(v_i_560_); +lean_dec(v_i_560_); +v_stop_boxed_564_ = lean_unbox_usize(v_stop_561_); +lean_dec(v_stop_561_); +v_res_565_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_558_, v_as_559_, v_i_boxed_563_, v_stop_boxed_564_, v_b_562_); +lean_dec_ref(v_as_559_); +lean_dec(v_limitSize_558_); +return v_res_565_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(lean_object* v_as_502_, size_t v_i_503_, size_t v_stop_504_, lean_object* v_b_505_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(lean_object* v_as_566_, size_t v_i_567_, size_t v_stop_568_, lean_object* v_b_569_){ _start: { -uint8_t v___x_506_; -v___x_506_ = lean_usize_dec_eq(v_i_503_, v_stop_504_); -if (v___x_506_ == 0) +uint8_t v___x_570_; +v___x_570_ = lean_usize_dec_eq(v_i_567_, v_stop_568_); +if (v___x_570_ == 0) { -lean_object* v___x_507_; lean_object* v___x_508_; lean_object* v___x_509_; size_t v___x_510_; size_t v___x_511_; -v___x_507_ = lean_array_uget_borrowed(v_as_502_, v_i_503_); -v___x_508_ = lean_byte_array_size(v___x_507_); -v___x_509_ = lean_nat_add(v_b_505_, v___x_508_); -lean_dec(v_b_505_); -v___x_510_ = ((size_t)1ULL); -v___x_511_ = lean_usize_add(v_i_503_, v___x_510_); -v_i_503_ = v___x_511_; -v_b_505_ = v___x_509_; +lean_object* v___x_571_; lean_object* v___x_572_; lean_object* v___x_573_; size_t v___x_574_; size_t v___x_575_; +v___x_571_ = lean_array_uget_borrowed(v_as_566_, v_i_567_); +v___x_572_ = lean_byte_array_size(v___x_571_); +v___x_573_ = lean_nat_add(v_b_569_, v___x_572_); +lean_dec(v_b_569_); +v___x_574_ = ((size_t)1ULL); +v___x_575_ = lean_usize_add(v_i_567_, v___x_574_); +v_i_567_ = v___x_575_; +v_b_569_ = v___x_573_; goto _start; } else { -return v_b_505_; +return v_b_569_; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0___boxed(lean_object* v_as_513_, lean_object* v_i_514_, lean_object* v_stop_515_, lean_object* v_b_516_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0___boxed(lean_object* v_as_577_, lean_object* v_i_578_, lean_object* v_stop_579_, lean_object* v_b_580_){ _start: { -size_t v_i_boxed_517_; size_t v_stop_boxed_518_; lean_object* v_res_519_; -v_i_boxed_517_ = lean_unbox_usize(v_i_514_); -lean_dec(v_i_514_); -v_stop_boxed_518_ = lean_unbox_usize(v_stop_515_); -lean_dec(v_stop_515_); -v_res_519_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_as_513_, v_i_boxed_517_, v_stop_boxed_518_, v_b_516_); -lean_dec_ref(v_as_513_); -return v_res_519_; +size_t v_i_boxed_581_; size_t v_stop_boxed_582_; lean_object* v_res_583_; +v_i_boxed_581_ = lean_unbox_usize(v_i_578_); +lean_dec(v_i_578_); +v_stop_boxed_582_ = lean_unbox_usize(v_stop_579_); +lean_dec(v_stop_579_); +v_res_583_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_as_577_, v_i_boxed_581_, v_stop_boxed_582_, v_b_580_); +lean_dec_ref(v_as_577_); +return v_res_583_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(lean_object* v_writer_528_, lean_object* v_limitSize_529_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(lean_object* v_writer_592_, lean_object* v_limitSize_593_){ _start: { -lean_object* v___y_531_; lean_object* v___y_532_; lean_object* v___y_533_; lean_object* v___y_534_; lean_object* v___y_535_; uint8_t v___y_536_; uint8_t v___y_537_; uint8_t v___y_538_; lean_object* v___y_539_; lean_object* v___y_540_; lean_object* v___y_541_; lean_object* v_userData_565_; lean_object* v_outputData_566_; lean_object* v_state_567_; lean_object* v_knownSize_568_; lean_object* v_messageHead_569_; uint8_t v_sentMessage_570_; uint8_t v_userClosedBody_571_; uint8_t v_omitBody_572_; lean_object* v_userDataBytes_573_; lean_object* v_fst_575_; lean_object* v_fst_576_; lean_object* v_snd_577_; lean_object* v___y_593_; lean_object* v___x_598_; lean_object* v___x_599_; uint8_t v___x_600_; -v_userData_565_ = lean_ctor_get(v_writer_528_, 0); -v_outputData_566_ = lean_ctor_get(v_writer_528_, 1); -v_state_567_ = lean_ctor_get(v_writer_528_, 2); -v_knownSize_568_ = lean_ctor_get(v_writer_528_, 3); -v_messageHead_569_ = lean_ctor_get(v_writer_528_, 4); -v_sentMessage_570_ = lean_ctor_get_uint8(v_writer_528_, sizeof(void*)*6); -v_userClosedBody_571_ = lean_ctor_get_uint8(v_writer_528_, sizeof(void*)*6 + 1); -v_omitBody_572_ = lean_ctor_get_uint8(v_writer_528_, sizeof(void*)*6 + 2); -v_userDataBytes_573_ = lean_ctor_get(v_writer_528_, 5); -v___x_598_ = lean_array_get_size(v_userData_565_); -v___x_599_ = lean_unsigned_to_nat(0u); -v___x_600_ = lean_nat_dec_eq(v___x_598_, v___x_599_); -if (v___x_600_ == 0) +lean_object* v___y_595_; lean_object* v___y_596_; lean_object* v___y_597_; lean_object* v___y_598_; uint8_t v___y_599_; uint8_t v___y_600_; lean_object* v___y_601_; lean_object* v___y_602_; lean_object* v___y_603_; uint8_t v___y_604_; lean_object* v___y_605_; lean_object* v_userData_629_; lean_object* v_outputData_630_; lean_object* v_state_631_; lean_object* v_knownSize_632_; lean_object* v_messageHead_633_; uint8_t v_sentMessage_634_; uint8_t v_userClosedBody_635_; uint8_t v_omitBody_636_; lean_object* v_userDataBytes_637_; lean_object* v_fst_639_; lean_object* v_fst_640_; lean_object* v_snd_641_; lean_object* v___y_657_; lean_object* v___x_662_; lean_object* v___x_663_; uint8_t v___x_664_; +v_userData_629_ = lean_ctor_get(v_writer_592_, 0); +v_outputData_630_ = lean_ctor_get(v_writer_592_, 1); +v_state_631_ = lean_ctor_get(v_writer_592_, 2); +v_knownSize_632_ = lean_ctor_get(v_writer_592_, 3); +v_messageHead_633_ = lean_ctor_get(v_writer_592_, 4); +v_sentMessage_634_ = lean_ctor_get_uint8(v_writer_592_, sizeof(void*)*6); +v_userClosedBody_635_ = lean_ctor_get_uint8(v_writer_592_, sizeof(void*)*6 + 1); +v_omitBody_636_ = lean_ctor_get_uint8(v_writer_592_, sizeof(void*)*6 + 2); +v_userDataBytes_637_ = lean_ctor_get(v_writer_592_, 5); +v___x_662_ = lean_array_get_size(v_userData_629_); +v___x_663_ = lean_unsigned_to_nat(0u); +v___x_664_ = lean_nat_dec_eq(v___x_662_, v___x_663_); +if (v___x_664_ == 0) { -lean_object* v___x_601_; uint8_t v___x_602_; -lean_inc(v_userDataBytes_573_); -lean_inc(v_messageHead_569_); -lean_inc(v_knownSize_568_); -lean_inc(v_state_567_); -lean_inc_ref(v_outputData_566_); -lean_inc_ref(v_userData_565_); -lean_dec_ref(v_writer_528_); -v___x_601_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg___closed__0)); -v___x_602_ = lean_nat_dec_lt(v___x_599_, v___x_598_); -if (v___x_602_ == 0) +lean_object* v___x_665_; uint8_t v___x_666_; +lean_inc(v_userDataBytes_637_); +lean_inc(v_messageHead_633_); +lean_inc(v_knownSize_632_); +lean_inc(v_state_631_); +lean_inc_ref(v_outputData_630_); +lean_inc_ref(v_userData_629_); +lean_dec_ref(v_writer_592_); +v___x_665_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg___closed__0)); +v___x_666_ = lean_nat_dec_lt(v___x_663_, v___x_662_); +if (v___x_666_ == 0) { -lean_dec_ref(v_userData_565_); -v_fst_575_ = v___x_601_; -v_fst_576_ = v___x_601_; -v_snd_577_ = v___x_599_; -goto v___jp_574_; +lean_dec_ref(v_userData_629_); +v_fst_639_ = v___x_665_; +v_fst_640_ = v___x_665_; +v_snd_641_ = v___x_663_; +goto v___jp_638_; } else { -lean_object* v___x_603_; uint8_t v___x_604_; -v___x_603_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg___closed__2)); -v___x_604_ = lean_nat_dec_le(v___x_598_, v___x_598_); -if (v___x_604_ == 0) +lean_object* v___x_667_; uint8_t v___x_668_; +v___x_667_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg___closed__2)); +v___x_668_ = lean_nat_dec_le(v___x_662_, v___x_662_); +if (v___x_668_ == 0) { -if (v___x_602_ == 0) +if (v___x_666_ == 0) { -lean_dec_ref(v_userData_565_); -v_fst_575_ = v___x_601_; -v_fst_576_ = v___x_601_; -v_snd_577_ = v___x_599_; -goto v___jp_574_; +lean_dec_ref(v_userData_629_); +v_fst_639_ = v___x_665_; +v_fst_640_ = v___x_665_; +v_snd_641_ = v___x_663_; +goto v___jp_638_; } else { -size_t v___x_605_; size_t v___x_606_; lean_object* v___x_607_; -v___x_605_ = ((size_t)0ULL); -v___x_606_ = lean_usize_of_nat(v___x_598_); -v___x_607_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_529_, v_userData_565_, v___x_605_, v___x_606_, v___x_603_); -lean_dec_ref(v_userData_565_); -v___y_593_ = v___x_607_; -goto v___jp_592_; +size_t v___x_669_; size_t v___x_670_; lean_object* v___x_671_; +v___x_669_ = ((size_t)0ULL); +v___x_670_ = lean_usize_of_nat(v___x_662_); +v___x_671_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_593_, v_userData_629_, v___x_669_, v___x_670_, v___x_667_); +lean_dec_ref(v_userData_629_); +v___y_657_ = v___x_671_; +goto v___jp_656_; } } else { -size_t v___x_608_; size_t v___x_609_; lean_object* v___x_610_; -v___x_608_ = ((size_t)0ULL); -v___x_609_ = lean_usize_of_nat(v___x_598_); -v___x_610_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_529_, v_userData_565_, v___x_608_, v___x_609_, v___x_603_); -lean_dec_ref(v_userData_565_); -v___y_593_ = v___x_610_; -goto v___jp_592_; +size_t v___x_672_; size_t v___x_673_; lean_object* v___x_674_; +v___x_672_ = ((size_t)0ULL); +v___x_673_ = lean_usize_of_nat(v___x_662_); +v___x_674_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__1(v_limitSize_593_, v_userData_629_, v___x_672_, v___x_673_, v___x_667_); +lean_dec_ref(v_userData_629_); +v___y_657_ = v___x_674_; +goto v___jp_656_; } } } else { -lean_object* v___x_611_; -v___x_611_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_611_, 0, v_writer_528_); -lean_ctor_set(v___x_611_, 1, v_limitSize_529_); -return v___x_611_; +lean_object* v___x_675_; +v___x_675_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_675_, 0, v_writer_592_); +lean_ctor_set(v___x_675_, 1, v_limitSize_593_); +return v___x_675_; } -v___jp_530_: +v___jp_594_: { -lean_object* v_data_542_; lean_object* v_size_543_; lean_object* v___x_545_; uint8_t v_isShared_546_; uint8_t v_isSharedCheck_564_; -v_data_542_ = lean_ctor_get(v___y_533_, 0); -v_size_543_ = lean_ctor_get(v___y_533_, 1); -v_isSharedCheck_564_ = !lean_is_exclusive(v___y_533_); -if (v_isSharedCheck_564_ == 0) +lean_object* v_data_606_; lean_object* v_size_607_; lean_object* v___x_609_; uint8_t v_isShared_610_; uint8_t v_isSharedCheck_628_; +v_data_606_ = lean_ctor_get(v___y_596_, 0); +v_size_607_ = lean_ctor_get(v___y_596_, 1); +v_isSharedCheck_628_ = !lean_is_exclusive(v___y_596_); +if (v_isSharedCheck_628_ == 0) { -v___x_545_ = v___y_533_; -v_isShared_546_ = v_isSharedCheck_564_; -goto v_resetjp_544_; +v___x_609_ = v___y_596_; +v_isShared_610_ = v_isSharedCheck_628_; +goto v_resetjp_608_; } else { -lean_inc(v_size_543_); -lean_inc(v_data_542_); -lean_dec(v___y_533_); -v___x_545_ = lean_box(0); -v_isShared_546_ = v_isSharedCheck_564_; -goto v_resetjp_544_; +lean_inc(v_size_607_); +lean_inc(v_data_606_); +lean_dec(v___y_596_); +v___x_609_ = lean_box(0); +v_isShared_610_ = v_isSharedCheck_628_; +goto v_resetjp_608_; } -v_resetjp_544_: +v_resetjp_608_: { -lean_object* v_data_547_; lean_object* v_size_548_; lean_object* v___x_550_; uint8_t v_isShared_551_; uint8_t v_isSharedCheck_563_; -v_data_547_ = lean_ctor_get(v___y_541_, 0); -v_size_548_ = lean_ctor_get(v___y_541_, 1); -v_isSharedCheck_563_ = !lean_is_exclusive(v___y_541_); -if (v_isSharedCheck_563_ == 0) +lean_object* v_data_611_; lean_object* v_size_612_; lean_object* v___x_614_; uint8_t v_isShared_615_; uint8_t v_isSharedCheck_627_; +v_data_611_ = lean_ctor_get(v___y_605_, 0); +v_size_612_ = lean_ctor_get(v___y_605_, 1); +v_isSharedCheck_627_ = !lean_is_exclusive(v___y_605_); +if (v_isSharedCheck_627_ == 0) { -v___x_550_ = v___y_541_; -v_isShared_551_ = v_isSharedCheck_563_; -goto v_resetjp_549_; +v___x_614_ = v___y_605_; +v_isShared_615_ = v_isSharedCheck_627_; +goto v_resetjp_613_; } else { -lean_inc(v_size_548_); -lean_inc(v_data_547_); -lean_dec(v___y_541_); -v___x_550_ = lean_box(0); -v_isShared_551_ = v_isSharedCheck_563_; -goto v_resetjp_549_; +lean_inc(v_size_612_); +lean_inc(v_data_611_); +lean_dec(v___y_605_); +v___x_614_ = lean_box(0); +v_isShared_615_ = v_isSharedCheck_627_; +goto v_resetjp_613_; } -v_resetjp_549_: +v_resetjp_613_: { -lean_object* v___x_552_; lean_object* v___x_553_; lean_object* v_outputData_555_; -v___x_552_ = l_Array_append___redArg(v_data_542_, v_data_547_); -lean_dec_ref(v_data_547_); -v___x_553_ = lean_nat_add(v_size_543_, v_size_548_); -lean_dec(v_size_548_); -lean_dec(v_size_543_); -if (v_isShared_551_ == 0) +lean_object* v___x_616_; lean_object* v___x_617_; lean_object* v_outputData_619_; +v___x_616_ = l_Array_append___redArg(v_data_606_, v_data_611_); +lean_dec_ref(v_data_611_); +v___x_617_ = lean_nat_add(v_size_607_, v_size_612_); +lean_dec(v_size_612_); +lean_dec(v_size_607_); +if (v_isShared_615_ == 0) { -lean_ctor_set(v___x_550_, 1, v___x_553_); -lean_ctor_set(v___x_550_, 0, v___x_552_); -v_outputData_555_ = v___x_550_; -goto v_reusejp_554_; +lean_ctor_set(v___x_614_, 1, v___x_617_); +lean_ctor_set(v___x_614_, 0, v___x_616_); +v_outputData_619_ = v___x_614_; +goto v_reusejp_618_; } else { -lean_object* v_reuseFailAlloc_562_; -v_reuseFailAlloc_562_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_562_, 0, v___x_552_); -lean_ctor_set(v_reuseFailAlloc_562_, 1, v___x_553_); -v_outputData_555_ = v_reuseFailAlloc_562_; -goto v_reusejp_554_; +lean_object* v_reuseFailAlloc_626_; +v_reuseFailAlloc_626_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_626_, 0, v___x_616_); +lean_ctor_set(v_reuseFailAlloc_626_, 1, v___x_617_); +v_outputData_619_ = v_reuseFailAlloc_626_; +goto v_reusejp_618_; } -v_reusejp_554_: +v_reusejp_618_: { -lean_object* v_remaining_556_; lean_object* v___x_557_; lean_object* v___x_558_; lean_object* v___x_560_; -v_remaining_556_ = lean_nat_sub(v_limitSize_529_, v___y_531_); -lean_dec(v_limitSize_529_); -v___x_557_ = lean_nat_sub(v___y_539_, v___y_531_); -lean_dec(v___y_531_); -lean_dec(v___y_539_); -v___x_558_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v___x_558_, 0, v___y_535_); -lean_ctor_set(v___x_558_, 1, v_outputData_555_); -lean_ctor_set(v___x_558_, 2, v___y_534_); -lean_ctor_set(v___x_558_, 3, v___y_532_); -lean_ctor_set(v___x_558_, 4, v___y_540_); -lean_ctor_set(v___x_558_, 5, v___x_557_); -lean_ctor_set_uint8(v___x_558_, sizeof(void*)*6, v___y_536_); -lean_ctor_set_uint8(v___x_558_, sizeof(void*)*6 + 1, v___y_538_); -lean_ctor_set_uint8(v___x_558_, sizeof(void*)*6 + 2, v___y_537_); -if (v_isShared_546_ == 0) +lean_object* v_remaining_620_; lean_object* v___x_621_; lean_object* v___x_622_; lean_object* v___x_624_; +v_remaining_620_ = lean_nat_sub(v_limitSize_593_, v___y_603_); +lean_dec(v_limitSize_593_); +v___x_621_ = lean_nat_sub(v___y_597_, v___y_603_); +lean_dec(v___y_603_); +lean_dec(v___y_597_); +v___x_622_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_622_, 0, v___y_602_); +lean_ctor_set(v___x_622_, 1, v_outputData_619_); +lean_ctor_set(v___x_622_, 2, v___y_595_); +lean_ctor_set(v___x_622_, 3, v___y_601_); +lean_ctor_set(v___x_622_, 4, v___y_598_); +lean_ctor_set(v___x_622_, 5, v___x_621_); +lean_ctor_set_uint8(v___x_622_, sizeof(void*)*6, v___y_600_); +lean_ctor_set_uint8(v___x_622_, sizeof(void*)*6 + 1, v___y_604_); +lean_ctor_set_uint8(v___x_622_, sizeof(void*)*6 + 2, v___y_599_); +if (v_isShared_610_ == 0) { -lean_ctor_set(v___x_545_, 1, v_remaining_556_); -lean_ctor_set(v___x_545_, 0, v___x_558_); -v___x_560_ = v___x_545_; -goto v_reusejp_559_; +lean_ctor_set(v___x_609_, 1, v_remaining_620_); +lean_ctor_set(v___x_609_, 0, v___x_622_); +v___x_624_ = v___x_609_; +goto v_reusejp_623_; } else { -lean_object* v_reuseFailAlloc_561_; -v_reuseFailAlloc_561_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_561_, 0, v___x_558_); -lean_ctor_set(v_reuseFailAlloc_561_, 1, v_remaining_556_); -v___x_560_ = v_reuseFailAlloc_561_; -goto v_reusejp_559_; +lean_object* v_reuseFailAlloc_625_; +v_reuseFailAlloc_625_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_625_, 0, v___x_622_); +lean_ctor_set(v_reuseFailAlloc_625_, 1, v_remaining_620_); +v___x_624_ = v_reuseFailAlloc_625_; +goto v_reusejp_623_; } -v_reusejp_559_: +v_reusejp_623_: { -return v___x_560_; +return v___x_624_; } } } } } -v___jp_574_: +v___jp_638_: { -lean_object* v___x_578_; lean_object* v___x_579_; uint8_t v___x_580_; -v___x_578_ = lean_unsigned_to_nat(0u); -v___x_579_ = lean_array_get_size(v_fst_575_); -v___x_580_ = lean_nat_dec_lt(v___x_578_, v___x_579_); -if (v___x_580_ == 0) +lean_object* v___x_642_; lean_object* v___x_643_; uint8_t v___x_644_; +v___x_642_ = lean_unsigned_to_nat(0u); +v___x_643_ = lean_array_get_size(v_fst_639_); +v___x_644_ = lean_nat_dec_lt(v___x_642_, v___x_643_); +if (v___x_644_ == 0) { -lean_object* v___x_581_; -v___x_581_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_581_, 0, v_fst_575_); -lean_ctor_set(v___x_581_, 1, v___x_578_); -v___y_531_ = v_snd_577_; -v___y_532_ = v_knownSize_568_; -v___y_533_ = v_outputData_566_; -v___y_534_ = v_state_567_; -v___y_535_ = v_fst_576_; -v___y_536_ = v_sentMessage_570_; -v___y_537_ = v_omitBody_572_; -v___y_538_ = v_userClosedBody_571_; -v___y_539_ = v_userDataBytes_573_; -v___y_540_ = v_messageHead_569_; -v___y_541_ = v___x_581_; -goto v___jp_530_; +lean_object* v___x_645_; +v___x_645_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_645_, 0, v_fst_639_); +lean_ctor_set(v___x_645_, 1, v___x_642_); +v___y_595_ = v_state_631_; +v___y_596_ = v_outputData_630_; +v___y_597_ = v_userDataBytes_637_; +v___y_598_ = v_messageHead_633_; +v___y_599_ = v_omitBody_636_; +v___y_600_ = v_sentMessage_634_; +v___y_601_ = v_knownSize_632_; +v___y_602_ = v_fst_640_; +v___y_603_ = v_snd_641_; +v___y_604_ = v_userClosedBody_635_; +v___y_605_ = v___x_645_; +goto v___jp_594_; } else { -uint8_t v___x_582_; -v___x_582_ = lean_nat_dec_le(v___x_579_, v___x_579_); -if (v___x_582_ == 0) +uint8_t v___x_646_; +v___x_646_ = lean_nat_dec_le(v___x_643_, v___x_643_); +if (v___x_646_ == 0) { -if (v___x_580_ == 0) +if (v___x_644_ == 0) { -lean_object* v___x_583_; -v___x_583_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_583_, 0, v_fst_575_); -lean_ctor_set(v___x_583_, 1, v___x_578_); -v___y_531_ = v_snd_577_; -v___y_532_ = v_knownSize_568_; -v___y_533_ = v_outputData_566_; -v___y_534_ = v_state_567_; -v___y_535_ = v_fst_576_; -v___y_536_ = v_sentMessage_570_; -v___y_537_ = v_omitBody_572_; -v___y_538_ = v_userClosedBody_571_; -v___y_539_ = v_userDataBytes_573_; -v___y_540_ = v_messageHead_569_; -v___y_541_ = v___x_583_; -goto v___jp_530_; +lean_object* v___x_647_; +v___x_647_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_647_, 0, v_fst_639_); +lean_ctor_set(v___x_647_, 1, v___x_642_); +v___y_595_ = v_state_631_; +v___y_596_ = v_outputData_630_; +v___y_597_ = v_userDataBytes_637_; +v___y_598_ = v_messageHead_633_; +v___y_599_ = v_omitBody_636_; +v___y_600_ = v_sentMessage_634_; +v___y_601_ = v_knownSize_632_; +v___y_602_ = v_fst_640_; +v___y_603_ = v_snd_641_; +v___y_604_ = v_userClosedBody_635_; +v___y_605_ = v___x_647_; +goto v___jp_594_; } else { -size_t v___x_584_; size_t v___x_585_; lean_object* v___x_586_; lean_object* v___x_587_; -v___x_584_ = ((size_t)0ULL); -v___x_585_ = lean_usize_of_nat(v___x_579_); -v___x_586_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_fst_575_, v___x_584_, v___x_585_, v___x_578_); -v___x_587_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_587_, 0, v_fst_575_); -lean_ctor_set(v___x_587_, 1, v___x_586_); -v___y_531_ = v_snd_577_; -v___y_532_ = v_knownSize_568_; -v___y_533_ = v_outputData_566_; -v___y_534_ = v_state_567_; -v___y_535_ = v_fst_576_; -v___y_536_ = v_sentMessage_570_; -v___y_537_ = v_omitBody_572_; -v___y_538_ = v_userClosedBody_571_; -v___y_539_ = v_userDataBytes_573_; -v___y_540_ = v_messageHead_569_; -v___y_541_ = v___x_587_; -goto v___jp_530_; +size_t v___x_648_; size_t v___x_649_; lean_object* v___x_650_; lean_object* v___x_651_; +v___x_648_ = ((size_t)0ULL); +v___x_649_ = lean_usize_of_nat(v___x_643_); +v___x_650_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_fst_639_, v___x_648_, v___x_649_, v___x_642_); +v___x_651_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_651_, 0, v_fst_639_); +lean_ctor_set(v___x_651_, 1, v___x_650_); +v___y_595_ = v_state_631_; +v___y_596_ = v_outputData_630_; +v___y_597_ = v_userDataBytes_637_; +v___y_598_ = v_messageHead_633_; +v___y_599_ = v_omitBody_636_; +v___y_600_ = v_sentMessage_634_; +v___y_601_ = v_knownSize_632_; +v___y_602_ = v_fst_640_; +v___y_603_ = v_snd_641_; +v___y_604_ = v_userClosedBody_635_; +v___y_605_ = v___x_651_; +goto v___jp_594_; } } else { -size_t v___x_588_; size_t v___x_589_; lean_object* v___x_590_; lean_object* v___x_591_; -v___x_588_ = ((size_t)0ULL); -v___x_589_ = lean_usize_of_nat(v___x_579_); -v___x_590_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_fst_575_, v___x_588_, v___x_589_, v___x_578_); -v___x_591_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_591_, 0, v_fst_575_); -lean_ctor_set(v___x_591_, 1, v___x_590_); -v___y_531_ = v_snd_577_; -v___y_532_ = v_knownSize_568_; -v___y_533_ = v_outputData_566_; -v___y_534_ = v_state_567_; -v___y_535_ = v_fst_576_; -v___y_536_ = v_sentMessage_570_; -v___y_537_ = v_omitBody_572_; -v___y_538_ = v_userClosedBody_571_; -v___y_539_ = v_userDataBytes_573_; -v___y_540_ = v_messageHead_569_; -v___y_541_ = v___x_591_; -goto v___jp_530_; +size_t v___x_652_; size_t v___x_653_; lean_object* v___x_654_; lean_object* v___x_655_; +v___x_652_ = ((size_t)0ULL); +v___x_653_ = lean_usize_of_nat(v___x_643_); +v___x_654_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v_fst_639_, v___x_652_, v___x_653_, v___x_642_); +v___x_655_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_655_, 0, v_fst_639_); +lean_ctor_set(v___x_655_, 1, v___x_654_); +v___y_595_ = v_state_631_; +v___y_596_ = v_outputData_630_; +v___y_597_ = v_userDataBytes_637_; +v___y_598_ = v_messageHead_633_; +v___y_599_ = v_omitBody_636_; +v___y_600_ = v_sentMessage_634_; +v___y_601_ = v_knownSize_632_; +v___y_602_ = v_fst_640_; +v___y_603_ = v_snd_641_; +v___y_604_ = v_userClosedBody_635_; +v___y_605_ = v___x_655_; +goto v___jp_594_; } } } -v___jp_592_: +v___jp_656_: { -lean_object* v_snd_594_; lean_object* v_fst_595_; lean_object* v_fst_596_; lean_object* v_snd_597_; -v_snd_594_ = lean_ctor_get(v___y_593_, 1); -lean_inc(v_snd_594_); -v_fst_595_ = lean_ctor_get(v___y_593_, 0); -lean_inc(v_fst_595_); -lean_dec_ref(v___y_593_); -v_fst_596_ = lean_ctor_get(v_snd_594_, 0); -lean_inc(v_fst_596_); -v_snd_597_ = lean_ctor_get(v_snd_594_, 1); -lean_inc(v_snd_597_); -lean_dec(v_snd_594_); -v_fst_575_ = v_fst_595_; -v_fst_576_ = v_fst_596_; -v_snd_577_ = v_snd_597_; -goto v___jp_574_; +lean_object* v_snd_658_; lean_object* v_fst_659_; lean_object* v_fst_660_; lean_object* v_snd_661_; +v_snd_658_ = lean_ctor_get(v___y_657_, 1); +lean_inc(v_snd_658_); +v_fst_659_ = lean_ctor_get(v___y_657_, 0); +lean_inc(v_fst_659_); +lean_dec_ref(v___y_657_); +v_fst_660_ = lean_ctor_get(v_snd_658_, 0); +lean_inc(v_fst_660_); +v_snd_661_ = lean_ctor_get(v_snd_658_, 1); +lean_inc(v_snd_661_); +lean_dec(v_snd_658_); +v_fst_639_ = v_fst_659_; +v_fst_640_ = v_fst_660_; +v_snd_641_ = v_snd_661_; +goto v___jp_638_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody(uint8_t v_dir_612_, lean_object* v_writer_613_, lean_object* v_limitSize_614_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody(uint8_t v_dir_676_, lean_object* v_writer_677_, lean_object* v_limitSize_678_){ _start: { -lean_object* v___x_615_; -v___x_615_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(v_writer_613_, v_limitSize_614_); -return v___x_615_; +lean_object* v___x_679_; +v___x_679_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody___redArg(v_writer_677_, v_limitSize_678_); +return v___x_679_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___boxed(lean_object* v_dir_616_, lean_object* v_writer_617_, lean_object* v_limitSize_618_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFixedBody___boxed(lean_object* v_dir_680_, lean_object* v_writer_681_, lean_object* v_limitSize_682_){ _start: { -uint8_t v_dir_boxed_619_; lean_object* v_res_620_; -v_dir_boxed_619_ = lean_unbox(v_dir_616_); -v_res_620_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody(v_dir_boxed_619_, v_writer_617_, v_limitSize_618_); -return v_res_620_; +uint8_t v_dir_boxed_683_; lean_object* v_res_684_; +v_dir_boxed_683_ = lean_unbox(v_dir_680_); +v_res_684_ = l_Std_Http_Protocol_H1_Writer_writeFixedBody(v_dir_boxed_683_, v_writer_681_, v_limitSize_682_); +return v_res_684_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(size_t v_sz_621_, size_t v_i_622_, lean_object* v_bs_623_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3(lean_object* v_as_685_, size_t v_i_686_, size_t v_stop_687_, lean_object* v_b_688_){ _start: { -uint8_t v___x_624_; -v___x_624_ = lean_usize_dec_lt(v_i_622_, v_sz_621_); -if (v___x_624_ == 0) +lean_object* v___y_690_; uint8_t v___x_694_; +v___x_694_ = lean_usize_dec_eq(v_i_686_, v_stop_687_); +if (v___x_694_ == 0) { -return v_bs_623_; +lean_object* v___x_695_; lean_object* v_data_696_; uint8_t v___x_697_; +v___x_695_ = lean_array_uget_borrowed(v_as_685_, v_i_686_); +v_data_696_ = lean_ctor_get(v___x_695_, 0); +v___x_697_ = l_ByteArray_isEmpty(v_data_696_); +if (v___x_697_ == 0) +{ +lean_object* v___x_698_; +lean_inc(v___x_695_); +v___x_698_ = lean_array_push(v_b_688_, v___x_695_); +v___y_690_ = v___x_698_; +goto v___jp_689_; } else { -lean_object* v_v_625_; lean_object* v___x_626_; lean_object* v_bs_x27_627_; uint32_t v___x_628_; uint8_t v___x_629_; size_t v___x_630_; size_t v___x_631_; lean_object* v___x_632_; lean_object* v___x_633_; -v_v_625_ = lean_array_uget(v_bs_623_, v_i_622_); -v___x_626_ = lean_unsigned_to_nat(0u); -v_bs_x27_627_ = lean_array_uset(v_bs_623_, v_i_622_, v___x_626_); -v___x_628_ = lean_unbox_uint32(v_v_625_); -lean_dec(v_v_625_); -v___x_629_ = lean_uint32_to_uint8(v___x_628_); -v___x_630_ = ((size_t)1ULL); -v___x_631_ = lean_usize_add(v_i_622_, v___x_630_); -v___x_632_ = lean_box(v___x_629_); -v___x_633_ = lean_array_uset(v_bs_x27_627_, v_i_622_, v___x_632_); -v_i_622_ = v___x_631_; -v_bs_623_ = v___x_633_; +v___y_690_ = v_b_688_; +goto v___jp_689_; +} +} +else +{ +return v_b_688_; +} +v___jp_689_: +{ +size_t v___x_691_; size_t v___x_692_; +v___x_691_ = ((size_t)1ULL); +v___x_692_ = lean_usize_add(v_i_686_, v___x_691_); +v_i_686_ = v___x_692_; +v_b_688_ = v___y_690_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0___boxed(lean_object* v_sz_635_, lean_object* v_i_636_, lean_object* v_bs_637_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3___boxed(lean_object* v_as_699_, lean_object* v_i_700_, lean_object* v_stop_701_, lean_object* v_b_702_){ _start: { -size_t v_sz_boxed_638_; size_t v_i_boxed_639_; lean_object* v_res_640_; -v_sz_boxed_638_ = lean_unbox_usize(v_sz_635_); -lean_dec(v_sz_635_); -v_i_boxed_639_ = lean_unbox_usize(v_i_636_); -lean_dec(v_i_636_); -v_res_640_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(v_sz_boxed_638_, v_i_boxed_639_, v_bs_637_); -return v_res_640_; +size_t v_i_boxed_703_; size_t v_stop_boxed_704_; lean_object* v_res_705_; +v_i_boxed_703_ = lean_unbox_usize(v_i_700_); +lean_dec(v_i_700_); +v_stop_boxed_704_ = lean_unbox_usize(v_stop_701_); +lean_dec(v_stop_701_); +v_res_705_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3(v_as_699_, v_i_boxed_703_, v_stop_boxed_704_, v_b_702_); +lean_dec_ref(v_as_699_); +return v_res_705_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(lean_object* v_as_643_, size_t v_i_644_, size_t v_stop_645_, lean_object* v_b_646_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(size_t v_sz_706_, size_t v_i_707_, lean_object* v_bs_708_){ _start: { -lean_object* v___y_648_; uint8_t v___x_652_; -v___x_652_ = lean_usize_dec_eq(v_i_644_, v_stop_645_); -if (v___x_652_ == 0) +uint8_t v___x_709_; +v___x_709_ = lean_usize_dec_lt(v_i_707_, v_sz_706_); +if (v___x_709_ == 0) { -lean_object* v___x_653_; lean_object* v_fst_654_; lean_object* v_snd_655_; lean_object* v___x_656_; lean_object* v___x_657_; lean_object* v___x_658_; -v___x_653_ = lean_array_uget_borrowed(v_as_643_, v_i_644_); -v_fst_654_ = lean_ctor_get(v___x_653_, 0); -v_snd_655_ = lean_ctor_get(v___x_653_, 1); -v___x_656_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___closed__0)); -v___x_657_ = lean_string_append(v_b_646_, v___x_656_); -v___x_658_ = lean_string_append(v___x_657_, v_fst_654_); -if (lean_obj_tag(v_snd_655_) == 0) -{ -v___y_648_ = v___x_658_; -goto v___jp_647_; +return v_bs_708_; } else { -lean_object* v_val_659_; lean_object* v___x_660_; lean_object* v___x_661_; lean_object* v___x_662_; lean_object* v___x_663_; -v_val_659_ = lean_ctor_get(v_snd_655_, 0); -v___x_660_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___closed__1)); -lean_inc(v_val_659_); -v___x_661_ = l_Std_Http_Chunk_ExtensionValue_quote(v_val_659_); -v___x_662_ = lean_string_append(v___x_660_, v___x_661_); -lean_dec_ref(v___x_661_); -v___x_663_ = lean_string_append(v___x_658_, v___x_662_); -lean_dec_ref(v___x_662_); -v___y_648_ = v___x_663_; -goto v___jp_647_; -} -} -else -{ -return v_b_646_; -} -v___jp_647_: -{ -size_t v___x_649_; size_t v___x_650_; -v___x_649_ = ((size_t)1ULL); -v___x_650_ = lean_usize_add(v_i_644_, v___x_649_); -v_i_644_ = v___x_650_; -v_b_646_ = v___y_648_; +lean_object* v_v_710_; lean_object* v___x_711_; lean_object* v_bs_x27_712_; uint32_t v___x_713_; uint8_t v___x_714_; size_t v___x_715_; size_t v___x_716_; lean_object* v___x_717_; lean_object* v___x_718_; +v_v_710_ = lean_array_uget(v_bs_708_, v_i_707_); +v___x_711_ = lean_unsigned_to_nat(0u); +v_bs_x27_712_ = lean_array_uset(v_bs_708_, v_i_707_, v___x_711_); +v___x_713_ = lean_unbox_uint32(v_v_710_); +lean_dec(v_v_710_); +v___x_714_ = lean_uint32_to_uint8(v___x_713_); +v___x_715_ = ((size_t)1ULL); +v___x_716_ = lean_usize_add(v_i_707_, v___x_715_); +v___x_717_ = lean_box(v___x_714_); +v___x_718_ = lean_array_uset(v_bs_x27_712_, v_i_707_, v___x_717_); +v_i_707_ = v___x_716_; +v_bs_708_ = v___x_718_; goto _start; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___boxed(lean_object* v_as_664_, lean_object* v_i_665_, lean_object* v_stop_666_, lean_object* v_b_667_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0___boxed(lean_object* v_sz_720_, lean_object* v_i_721_, lean_object* v_bs_722_){ _start: { -size_t v_i_boxed_668_; size_t v_stop_boxed_669_; lean_object* v_res_670_; -v_i_boxed_668_ = lean_unbox_usize(v_i_665_); -lean_dec(v_i_665_); -v_stop_boxed_669_ = lean_unbox_usize(v_stop_666_); -lean_dec(v_stop_666_); -v_res_670_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_as_664_, v_i_boxed_668_, v_stop_boxed_669_, v_b_667_); -lean_dec_ref(v_as_664_); -return v_res_670_; +size_t v_sz_boxed_723_; size_t v_i_boxed_724_; lean_object* v_res_725_; +v_sz_boxed_723_ = lean_unbox_usize(v_sz_720_); +lean_dec(v_sz_720_); +v_i_boxed_724_ = lean_unbox_usize(v_i_721_); +lean_dec(v_i_721_); +v_res_725_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(v_sz_boxed_723_, v_i_boxed_724_, v_bs_722_); +return v_res_725_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(lean_object* v_as_728_, size_t v_i_729_, size_t v_stop_730_, lean_object* v_b_731_){ +_start: +{ +lean_object* v___y_733_; uint8_t v___x_737_; +v___x_737_ = lean_usize_dec_eq(v_i_729_, v_stop_730_); +if (v___x_737_ == 0) +{ +lean_object* v___x_738_; lean_object* v_fst_739_; lean_object* v_snd_740_; lean_object* v___x_741_; lean_object* v___x_742_; lean_object* v___x_743_; +v___x_738_ = lean_array_uget_borrowed(v_as_728_, v_i_729_); +v_fst_739_ = lean_ctor_get(v___x_738_, 0); +v_snd_740_ = lean_ctor_get(v___x_738_, 1); +v___x_741_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___closed__0)); +v___x_742_ = lean_string_append(v_b_731_, v___x_741_); +v___x_743_ = lean_string_append(v___x_742_, v_fst_739_); +if (lean_obj_tag(v_snd_740_) == 0) +{ +v___y_733_ = v___x_743_; +goto v___jp_732_; +} +else +{ +lean_object* v_val_744_; lean_object* v___x_745_; lean_object* v___x_746_; lean_object* v___x_747_; lean_object* v___x_748_; +v_val_744_ = lean_ctor_get(v_snd_740_, 0); +v___x_745_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___closed__1)); +lean_inc(v_val_744_); +v___x_746_ = l_Std_Http_Chunk_ExtensionValue_quote(v_val_744_); +v___x_747_ = lean_string_append(v___x_745_, v___x_746_); +lean_dec_ref(v___x_746_); +v___x_748_ = lean_string_append(v___x_743_, v___x_747_); +lean_dec_ref(v___x_747_); +v___y_733_ = v___x_748_; +goto v___jp_732_; +} +} +else +{ +return v_b_731_; +} +v___jp_732_: +{ +size_t v___x_734_; size_t v___x_735_; +v___x_734_ = ((size_t)1ULL); +v___x_735_ = lean_usize_add(v_i_729_, v___x_734_); +v_i_729_ = v___x_735_; +v_b_731_ = v___y_733_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1___boxed(lean_object* v_as_749_, lean_object* v_i_750_, lean_object* v_stop_751_, lean_object* v_b_752_){ +_start: +{ +size_t v_i_boxed_753_; size_t v_stop_boxed_754_; lean_object* v_res_755_; +v_i_boxed_753_ = lean_unbox_usize(v_i_750_); +lean_dec(v_i_750_); +v_stop_boxed_754_ = lean_unbox_usize(v_stop_751_); +lean_dec(v_stop_751_); +v_res_755_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_as_749_, v_i_boxed_753_, v_stop_boxed_754_, v_b_752_); +lean_dec_ref(v_as_749_); +return v_res_755_; } } static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1(void){ _start: { -lean_object* v___x_672_; lean_object* v___x_673_; -v___x_672_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__0)); -v___x_673_ = lean_string_to_utf8(v___x_672_); -return v___x_673_; +lean_object* v___x_757_; lean_object* v___x_758_; +v___x_757_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__0)); +v___x_758_ = lean_string_to_utf8(v___x_757_); +return v___x_758_; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(lean_object* v_as_675_, size_t v_i_676_, size_t v_stop_677_, lean_object* v_b_678_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(lean_object* v_as_760_, size_t v_i_761_, size_t v_stop_762_, lean_object* v_b_763_){ _start: { -lean_object* v___y_680_; uint8_t v___x_697_; -v___x_697_ = lean_usize_dec_eq(v_i_676_, v_stop_677_); -if (v___x_697_ == 0) +lean_object* v___y_765_; uint8_t v___x_782_; +v___x_782_ = lean_usize_dec_eq(v_i_761_, v_stop_762_); +if (v___x_782_ == 0) { -lean_object* v___x_698_; lean_object* v_data_699_; lean_object* v_extensions_700_; lean_object* v___x_702_; uint8_t v_isShared_703_; uint8_t v_isSharedCheck_754_; -v___x_698_ = lean_array_uget(v_as_675_, v_i_676_); -v_data_699_ = lean_ctor_get(v___x_698_, 0); -v_extensions_700_ = lean_ctor_get(v___x_698_, 1); -v_isSharedCheck_754_ = !lean_is_exclusive(v___x_698_); -if (v_isSharedCheck_754_ == 0) +lean_object* v___x_783_; lean_object* v_data_784_; lean_object* v_extensions_785_; lean_object* v___x_787_; uint8_t v_isShared_788_; uint8_t v_isSharedCheck_839_; +v___x_783_ = lean_array_uget(v_as_760_, v_i_761_); +v_data_784_ = lean_ctor_get(v___x_783_, 0); +v_extensions_785_ = lean_ctor_get(v___x_783_, 1); +v_isSharedCheck_839_ = !lean_is_exclusive(v___x_783_); +if (v_isSharedCheck_839_ == 0) { -v___x_702_ = v___x_698_; -v_isShared_703_ = v_isSharedCheck_754_; -goto v_resetjp_701_; +v___x_787_ = v___x_783_; +v_isShared_788_ = v_isSharedCheck_839_; +goto v_resetjp_786_; } else { -lean_inc(v_extensions_700_); -lean_inc(v_data_699_); -lean_dec(v___x_698_); -v___x_702_ = lean_box(0); -v_isShared_703_ = v_isSharedCheck_754_; -goto v_resetjp_701_; +lean_inc(v_extensions_785_); +lean_inc(v_data_784_); +lean_dec(v___x_783_); +v___x_787_ = lean_box(0); +v_isShared_788_ = v_isSharedCheck_839_; +goto v_resetjp_786_; } -v_resetjp_701_: +v_resetjp_786_: { -lean_object* v_chunkLen_704_; lean_object* v___y_706_; lean_object* v___x_743_; lean_object* v___x_744_; lean_object* v___x_745_; uint8_t v___x_746_; -v_chunkLen_704_ = lean_byte_array_size(v_data_699_); -v___x_743_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__2)); -v___x_744_ = lean_unsigned_to_nat(0u); -v___x_745_ = lean_array_get_size(v_extensions_700_); -v___x_746_ = lean_nat_dec_lt(v___x_744_, v___x_745_); -if (v___x_746_ == 0) +lean_object* v_chunkLen_789_; lean_object* v___y_791_; lean_object* v___x_828_; lean_object* v___x_829_; lean_object* v___x_830_; uint8_t v___x_831_; +v_chunkLen_789_ = lean_byte_array_size(v_data_784_); +v___x_828_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__2)); +v___x_829_ = lean_unsigned_to_nat(0u); +v___x_830_ = lean_array_get_size(v_extensions_785_); +v___x_831_ = lean_nat_dec_lt(v___x_829_, v___x_830_); +if (v___x_831_ == 0) { -lean_dec_ref(v_extensions_700_); -v___y_706_ = v___x_743_; -goto v___jp_705_; +lean_dec_ref(v_extensions_785_); +v___y_791_ = v___x_828_; +goto v___jp_790_; } else { -uint8_t v___x_747_; -v___x_747_ = lean_nat_dec_le(v___x_745_, v___x_745_); -if (v___x_747_ == 0) +uint8_t v___x_832_; +v___x_832_ = lean_nat_dec_le(v___x_830_, v___x_830_); +if (v___x_832_ == 0) { -if (v___x_746_ == 0) +if (v___x_831_ == 0) { -lean_dec_ref(v_extensions_700_); -v___y_706_ = v___x_743_; -goto v___jp_705_; +lean_dec_ref(v_extensions_785_); +v___y_791_ = v___x_828_; +goto v___jp_790_; } else { -size_t v___x_748_; size_t v___x_749_; lean_object* v___x_750_; -v___x_748_ = ((size_t)0ULL); -v___x_749_ = lean_usize_of_nat(v___x_745_); -v___x_750_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_extensions_700_, v___x_748_, v___x_749_, v___x_743_); -lean_dec_ref(v_extensions_700_); -v___y_706_ = v___x_750_; -goto v___jp_705_; +size_t v___x_833_; size_t v___x_834_; lean_object* v___x_835_; +v___x_833_ = ((size_t)0ULL); +v___x_834_ = lean_usize_of_nat(v___x_830_); +v___x_835_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_extensions_785_, v___x_833_, v___x_834_, v___x_828_); +lean_dec_ref(v_extensions_785_); +v___y_791_ = v___x_835_; +goto v___jp_790_; } } else { -size_t v___x_751_; size_t v___x_752_; lean_object* v___x_753_; -v___x_751_ = ((size_t)0ULL); -v___x_752_ = lean_usize_of_nat(v___x_745_); -v___x_753_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_extensions_700_, v___x_751_, v___x_752_, v___x_743_); -lean_dec_ref(v_extensions_700_); -v___y_706_ = v___x_753_; -goto v___jp_705_; +size_t v___x_836_; size_t v___x_837_; lean_object* v___x_838_; +v___x_836_ = ((size_t)0ULL); +v___x_837_ = lean_usize_of_nat(v___x_830_); +v___x_838_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__1(v_extensions_785_, v___x_836_, v___x_837_, v___x_828_); +lean_dec_ref(v_extensions_785_); +v___y_791_ = v___x_838_; +goto v___jp_790_; } } -v___jp_705_: +v___jp_790_: { -lean_object* v___x_707_; lean_object* v___x_708_; lean_object* v___x_709_; size_t v_sz_710_; size_t v___x_711_; lean_object* v___x_712_; lean_object* v_size_713_; lean_object* v___x_714_; lean_object* v___x_715_; lean_object* v___x_716_; lean_object* v___x_717_; lean_object* v___x_718_; lean_object* v___x_719_; lean_object* v___x_720_; lean_object* v___x_721_; lean_object* v___x_722_; lean_object* v___x_723_; lean_object* v___x_724_; uint8_t v___x_725_; -v___x_707_ = lean_unsigned_to_nat(16u); -v___x_708_ = l_Nat_toDigits(v___x_707_, v_chunkLen_704_); -v___x_709_ = lean_array_mk(v___x_708_); -v_sz_710_ = lean_array_size(v___x_709_); -v___x_711_ = ((size_t)0ULL); -v___x_712_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(v_sz_710_, v___x_711_, v___x_709_); -v_size_713_ = lean_byte_array_mk(v___x_712_); -v___x_714_ = lean_string_to_utf8(v___y_706_); -lean_dec_ref(v___y_706_); -v___x_715_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1, &l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1_once, _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1); -v___x_716_ = lean_unsigned_to_nat(5u); -v___x_717_ = lean_mk_empty_array_with_capacity(v___x_716_); -v___x_718_ = lean_array_push(v___x_717_, v_size_713_); -v___x_719_ = lean_array_push(v___x_718_, v___x_714_); -v___x_720_ = lean_array_push(v___x_719_, v___x_715_); -v___x_721_ = lean_array_push(v___x_720_, v_data_699_); -v___x_722_ = lean_array_push(v___x_721_, v___x_715_); -v___x_723_ = lean_unsigned_to_nat(0u); -v___x_724_ = lean_array_get_size(v___x_722_); -v___x_725_ = lean_nat_dec_lt(v___x_723_, v___x_724_); -if (v___x_725_ == 0) +lean_object* v___x_792_; lean_object* v___x_793_; lean_object* v___x_794_; size_t v_sz_795_; size_t v___x_796_; lean_object* v___x_797_; lean_object* v_size_798_; lean_object* v___x_799_; lean_object* v___x_800_; lean_object* v___x_801_; lean_object* v___x_802_; lean_object* v___x_803_; lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___x_808_; lean_object* v___x_809_; uint8_t v___x_810_; +v___x_792_ = lean_unsigned_to_nat(16u); +v___x_793_ = l_Nat_toDigits(v___x_792_, v_chunkLen_789_); +v___x_794_ = lean_array_mk(v___x_793_); +v_sz_795_ = lean_array_size(v___x_794_); +v___x_796_ = ((size_t)0ULL); +v___x_797_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__0(v_sz_795_, v___x_796_, v___x_794_); +v_size_798_ = lean_byte_array_mk(v___x_797_); +v___x_799_ = lean_string_to_utf8(v___y_791_); +lean_dec_ref(v___y_791_); +v___x_800_ = lean_obj_once(&l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1, &l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1_once, _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___closed__1); +v___x_801_ = lean_unsigned_to_nat(5u); +v___x_802_ = lean_mk_empty_array_with_capacity(v___x_801_); +v___x_803_ = lean_array_push(v___x_802_, v_size_798_); +v___x_804_ = lean_array_push(v___x_803_, v___x_799_); +v___x_805_ = lean_array_push(v___x_804_, v___x_800_); +v___x_806_ = lean_array_push(v___x_805_, v_data_784_); +v___x_807_ = lean_array_push(v___x_806_, v___x_800_); +v___x_808_ = lean_unsigned_to_nat(0u); +v___x_809_ = lean_array_get_size(v___x_807_); +v___x_810_ = lean_nat_dec_lt(v___x_808_, v___x_809_); +if (v___x_810_ == 0) { -lean_object* v___x_727_; -if (v_isShared_703_ == 0) +lean_object* v___x_812_; +if (v_isShared_788_ == 0) { -lean_ctor_set(v___x_702_, 1, v___x_723_); -lean_ctor_set(v___x_702_, 0, v___x_722_); -v___x_727_ = v___x_702_; -goto v_reusejp_726_; +lean_ctor_set(v___x_787_, 1, v___x_808_); +lean_ctor_set(v___x_787_, 0, v___x_807_); +v___x_812_ = v___x_787_; +goto v_reusejp_811_; } else { -lean_object* v_reuseFailAlloc_728_; -v_reuseFailAlloc_728_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_728_, 0, v___x_722_); -lean_ctor_set(v_reuseFailAlloc_728_, 1, v___x_723_); -v___x_727_ = v_reuseFailAlloc_728_; -goto v_reusejp_726_; +lean_object* v_reuseFailAlloc_813_; +v_reuseFailAlloc_813_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_813_, 0, v___x_807_); +lean_ctor_set(v_reuseFailAlloc_813_, 1, v___x_808_); +v___x_812_ = v_reuseFailAlloc_813_; +goto v_reusejp_811_; } -v_reusejp_726_: +v_reusejp_811_: { -v___y_680_ = v___x_727_; -goto v___jp_679_; +v___y_765_ = v___x_812_; +goto v___jp_764_; } } else { -uint8_t v___x_729_; -v___x_729_ = lean_nat_dec_le(v___x_724_, v___x_724_); -if (v___x_729_ == 0) +uint8_t v___x_814_; +v___x_814_ = lean_nat_dec_le(v___x_809_, v___x_809_); +if (v___x_814_ == 0) { -if (v___x_725_ == 0) +if (v___x_810_ == 0) { -lean_object* v___x_731_; -if (v_isShared_703_ == 0) +lean_object* v___x_816_; +if (v_isShared_788_ == 0) { -lean_ctor_set(v___x_702_, 1, v___x_723_); -lean_ctor_set(v___x_702_, 0, v___x_722_); -v___x_731_ = v___x_702_; -goto v_reusejp_730_; +lean_ctor_set(v___x_787_, 1, v___x_808_); +lean_ctor_set(v___x_787_, 0, v___x_807_); +v___x_816_ = v___x_787_; +goto v_reusejp_815_; } else { -lean_object* v_reuseFailAlloc_732_; -v_reuseFailAlloc_732_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_732_, 0, v___x_722_); -lean_ctor_set(v_reuseFailAlloc_732_, 1, v___x_723_); -v___x_731_ = v_reuseFailAlloc_732_; -goto v_reusejp_730_; +lean_object* v_reuseFailAlloc_817_; +v_reuseFailAlloc_817_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_817_, 0, v___x_807_); +lean_ctor_set(v_reuseFailAlloc_817_, 1, v___x_808_); +v___x_816_ = v_reuseFailAlloc_817_; +goto v_reusejp_815_; } -v_reusejp_730_: +v_reusejp_815_: { -v___y_680_ = v___x_731_; -goto v___jp_679_; +v___y_765_ = v___x_816_; +goto v___jp_764_; } } else { -size_t v___x_733_; lean_object* v___x_734_; lean_object* v___x_736_; -v___x_733_ = lean_usize_of_nat(v___x_724_); -v___x_734_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v___x_722_, v___x_711_, v___x_733_, v___x_723_); -if (v_isShared_703_ == 0) +size_t v___x_818_; lean_object* v___x_819_; lean_object* v___x_821_; +v___x_818_ = lean_usize_of_nat(v___x_809_); +v___x_819_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v___x_807_, v___x_796_, v___x_818_, v___x_808_); +if (v_isShared_788_ == 0) { -lean_ctor_set(v___x_702_, 1, v___x_734_); -lean_ctor_set(v___x_702_, 0, v___x_722_); -v___x_736_ = v___x_702_; -goto v_reusejp_735_; +lean_ctor_set(v___x_787_, 1, v___x_819_); +lean_ctor_set(v___x_787_, 0, v___x_807_); +v___x_821_ = v___x_787_; +goto v_reusejp_820_; } else { -lean_object* v_reuseFailAlloc_737_; -v_reuseFailAlloc_737_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_737_, 0, v___x_722_); -lean_ctor_set(v_reuseFailAlloc_737_, 1, v___x_734_); -v___x_736_ = v_reuseFailAlloc_737_; -goto v_reusejp_735_; +lean_object* v_reuseFailAlloc_822_; +v_reuseFailAlloc_822_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_822_, 0, v___x_807_); +lean_ctor_set(v_reuseFailAlloc_822_, 1, v___x_819_); +v___x_821_ = v_reuseFailAlloc_822_; +goto v_reusejp_820_; } -v_reusejp_735_: +v_reusejp_820_: { -v___y_680_ = v___x_736_; -goto v___jp_679_; +v___y_765_ = v___x_821_; +goto v___jp_764_; } } } else { -size_t v___x_738_; lean_object* v___x_739_; lean_object* v___x_741_; -v___x_738_ = lean_usize_of_nat(v___x_724_); -v___x_739_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v___x_722_, v___x_711_, v___x_738_, v___x_723_); -if (v_isShared_703_ == 0) +size_t v___x_823_; lean_object* v___x_824_; lean_object* v___x_826_; +v___x_823_ = lean_usize_of_nat(v___x_809_); +v___x_824_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeFixedBody_spec__0(v___x_807_, v___x_796_, v___x_823_, v___x_808_); +if (v_isShared_788_ == 0) { -lean_ctor_set(v___x_702_, 1, v___x_739_); -lean_ctor_set(v___x_702_, 0, v___x_722_); -v___x_741_ = v___x_702_; -goto v_reusejp_740_; +lean_ctor_set(v___x_787_, 1, v___x_824_); +lean_ctor_set(v___x_787_, 0, v___x_807_); +v___x_826_ = v___x_787_; +goto v_reusejp_825_; } else { -lean_object* v_reuseFailAlloc_742_; -v_reuseFailAlloc_742_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_742_, 0, v___x_722_); -lean_ctor_set(v_reuseFailAlloc_742_, 1, v___x_739_); -v___x_741_ = v_reuseFailAlloc_742_; -goto v_reusejp_740_; +lean_object* v_reuseFailAlloc_827_; +v_reuseFailAlloc_827_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_827_, 0, v___x_807_); +lean_ctor_set(v_reuseFailAlloc_827_, 1, v___x_824_); +v___x_826_ = v_reuseFailAlloc_827_; +goto v_reusejp_825_; } -v_reusejp_740_: +v_reusejp_825_: { -v___y_680_ = v___x_741_; -goto v___jp_679_; +v___y_765_ = v___x_826_; +goto v___jp_764_; } } } @@ -2616,1256 +2964,1087 @@ goto v___jp_679_; } else { -return v_b_678_; +return v_b_763_; } -v___jp_679_: +v___jp_764_: { -lean_object* v_data_681_; lean_object* v_size_682_; lean_object* v_data_683_; lean_object* v_size_684_; lean_object* v___x_686_; uint8_t v_isShared_687_; uint8_t v_isSharedCheck_696_; -v_data_681_ = lean_ctor_get(v_b_678_, 0); -lean_inc_ref(v_data_681_); -v_size_682_ = lean_ctor_get(v_b_678_, 1); -lean_inc(v_size_682_); -lean_dec_ref(v_b_678_); -v_data_683_ = lean_ctor_get(v___y_680_, 0); -v_size_684_ = lean_ctor_get(v___y_680_, 1); -v_isSharedCheck_696_ = !lean_is_exclusive(v___y_680_); -if (v_isSharedCheck_696_ == 0) +lean_object* v_data_766_; lean_object* v_size_767_; lean_object* v_data_768_; lean_object* v_size_769_; lean_object* v___x_771_; uint8_t v_isShared_772_; uint8_t v_isSharedCheck_781_; +v_data_766_ = lean_ctor_get(v_b_763_, 0); +lean_inc_ref(v_data_766_); +v_size_767_ = lean_ctor_get(v_b_763_, 1); +lean_inc(v_size_767_); +lean_dec_ref(v_b_763_); +v_data_768_ = lean_ctor_get(v___y_765_, 0); +v_size_769_ = lean_ctor_get(v___y_765_, 1); +v_isSharedCheck_781_ = !lean_is_exclusive(v___y_765_); +if (v_isSharedCheck_781_ == 0) { -v___x_686_ = v___y_680_; -v_isShared_687_ = v_isSharedCheck_696_; -goto v_resetjp_685_; +v___x_771_ = v___y_765_; +v_isShared_772_ = v_isSharedCheck_781_; +goto v_resetjp_770_; } else { -lean_inc(v_size_684_); -lean_inc(v_data_683_); -lean_dec(v___y_680_); -v___x_686_ = lean_box(0); -v_isShared_687_ = v_isSharedCheck_696_; -goto v_resetjp_685_; +lean_inc(v_size_769_); +lean_inc(v_data_768_); +lean_dec(v___y_765_); +v___x_771_ = lean_box(0); +v_isShared_772_ = v_isSharedCheck_781_; +goto v_resetjp_770_; } -v_resetjp_685_: +v_resetjp_770_: { -lean_object* v___x_688_; lean_object* v___x_689_; lean_object* v___x_691_; -v___x_688_ = l_Array_append___redArg(v_data_681_, v_data_683_); -lean_dec_ref(v_data_683_); -v___x_689_ = lean_nat_add(v_size_682_, v_size_684_); -lean_dec(v_size_684_); -lean_dec(v_size_682_); -if (v_isShared_687_ == 0) +lean_object* v___x_773_; lean_object* v___x_774_; lean_object* v___x_776_; +v___x_773_ = l_Array_append___redArg(v_data_766_, v_data_768_); +lean_dec_ref(v_data_768_); +v___x_774_ = lean_nat_add(v_size_767_, v_size_769_); +lean_dec(v_size_769_); +lean_dec(v_size_767_); +if (v_isShared_772_ == 0) { -lean_ctor_set(v___x_686_, 1, v___x_689_); -lean_ctor_set(v___x_686_, 0, v___x_688_); -v___x_691_ = v___x_686_; -goto v_reusejp_690_; +lean_ctor_set(v___x_771_, 1, v___x_774_); +lean_ctor_set(v___x_771_, 0, v___x_773_); +v___x_776_ = v___x_771_; +goto v_reusejp_775_; } else { -lean_object* v_reuseFailAlloc_695_; -v_reuseFailAlloc_695_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_695_, 0, v___x_688_); -lean_ctor_set(v_reuseFailAlloc_695_, 1, v___x_689_); -v___x_691_ = v_reuseFailAlloc_695_; -goto v_reusejp_690_; +lean_object* v_reuseFailAlloc_780_; +v_reuseFailAlloc_780_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_780_, 0, v___x_773_); +lean_ctor_set(v_reuseFailAlloc_780_, 1, v___x_774_); +v___x_776_ = v_reuseFailAlloc_780_; +goto v_reusejp_775_; } -v_reusejp_690_: +v_reusejp_775_: { -size_t v___x_692_; size_t v___x_693_; -v___x_692_ = ((size_t)1ULL); -v___x_693_ = lean_usize_add(v_i_676_, v___x_692_); -v_i_676_ = v___x_693_; -v_b_678_ = v___x_691_; +size_t v___x_777_; size_t v___x_778_; +v___x_777_ = ((size_t)1ULL); +v___x_778_ = lean_usize_add(v_i_761_, v___x_777_); +v_i_761_ = v___x_778_; +v_b_763_ = v___x_776_; goto _start; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___boxed(lean_object* v_as_755_, lean_object* v_i_756_, lean_object* v_stop_757_, lean_object* v_b_758_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2___boxed(lean_object* v_as_840_, lean_object* v_i_841_, lean_object* v_stop_842_, lean_object* v_b_843_){ _start: { -size_t v_i_boxed_759_; size_t v_stop_boxed_760_; lean_object* v_res_761_; -v_i_boxed_759_ = lean_unbox_usize(v_i_756_); -lean_dec(v_i_756_); -v_stop_boxed_760_ = lean_unbox_usize(v_stop_757_); -lean_dec(v_stop_757_); -v_res_761_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v_as_755_, v_i_boxed_759_, v_stop_boxed_760_, v_b_758_); -lean_dec_ref(v_as_755_); -return v_res_761_; +size_t v_i_boxed_844_; size_t v_stop_boxed_845_; lean_object* v_res_846_; +v_i_boxed_844_ = lean_unbox_usize(v_i_841_); +lean_dec(v_i_841_); +v_stop_boxed_845_ = lean_unbox_usize(v_stop_842_); +lean_dec(v_stop_842_); +v_res_846_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v_as_840_, v_i_boxed_844_, v_stop_boxed_845_, v_b_843_); +lean_dec_ref(v_as_840_); +return v_res_846_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(lean_object* v_writer_764_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(lean_object* v_writer_849_){ _start: { -lean_object* v_userData_765_; lean_object* v_outputData_766_; lean_object* v_state_767_; lean_object* v_knownSize_768_; lean_object* v_messageHead_769_; uint8_t v_sentMessage_770_; uint8_t v_userClosedBody_771_; uint8_t v_omitBody_772_; lean_object* v___x_773_; lean_object* v___x_774_; uint8_t v___x_775_; -v_userData_765_ = lean_ctor_get(v_writer_764_, 0); -v_outputData_766_ = lean_ctor_get(v_writer_764_, 1); -v_state_767_ = lean_ctor_get(v_writer_764_, 2); -v_knownSize_768_ = lean_ctor_get(v_writer_764_, 3); -v_messageHead_769_ = lean_ctor_get(v_writer_764_, 4); -v_sentMessage_770_ = lean_ctor_get_uint8(v_writer_764_, sizeof(void*)*6); -v_userClosedBody_771_ = lean_ctor_get_uint8(v_writer_764_, sizeof(void*)*6 + 1); -v_omitBody_772_ = lean_ctor_get_uint8(v_writer_764_, sizeof(void*)*6 + 2); -v___x_773_ = lean_array_get_size(v_userData_765_); -v___x_774_ = lean_unsigned_to_nat(0u); -v___x_775_ = lean_nat_dec_eq(v___x_773_, v___x_774_); -if (v___x_775_ == 0) +lean_object* v_userData_850_; lean_object* v_outputData_851_; lean_object* v_state_852_; lean_object* v_knownSize_853_; lean_object* v_messageHead_854_; uint8_t v_sentMessage_855_; uint8_t v_userClosedBody_856_; uint8_t v_omitBody_857_; lean_object* v___x_858_; lean_object* v___x_859_; lean_object* v___y_861_; uint8_t v___x_876_; +v_userData_850_ = lean_ctor_get(v_writer_849_, 0); +v_outputData_851_ = lean_ctor_get(v_writer_849_, 1); +v_state_852_ = lean_ctor_get(v_writer_849_, 2); +v_knownSize_853_ = lean_ctor_get(v_writer_849_, 3); +v_messageHead_854_ = lean_ctor_get(v_writer_849_, 4); +v_sentMessage_855_ = lean_ctor_get_uint8(v_writer_849_, sizeof(void*)*6); +v_userClosedBody_856_ = lean_ctor_get_uint8(v_writer_849_, sizeof(void*)*6 + 1); +v_omitBody_857_ = lean_ctor_get_uint8(v_writer_849_, sizeof(void*)*6 + 2); +v___x_858_ = lean_array_get_size(v_userData_850_); +v___x_859_ = lean_unsigned_to_nat(0u); +v___x_876_ = lean_nat_dec_eq(v___x_858_, v___x_859_); +if (v___x_876_ == 0) { -lean_object* v___x_777_; uint8_t v_isShared_778_; uint8_t v_isSharedCheck_800_; -lean_inc(v_messageHead_769_); -lean_inc(v_knownSize_768_); -lean_inc(v_state_767_); -lean_inc_ref(v_outputData_766_); -lean_inc_ref(v_userData_765_); -v_isSharedCheck_800_ = !lean_is_exclusive(v_writer_764_); -if (v_isSharedCheck_800_ == 0) +lean_object* v___x_877_; uint8_t v___x_878_; +lean_inc(v_messageHead_854_); +lean_inc(v_knownSize_853_); +lean_inc(v_state_852_); +lean_inc_ref(v_outputData_851_); +lean_inc_ref(v_userData_850_); +lean_dec_ref(v_writer_849_); +v___x_877_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg___closed__0)); +v___x_878_ = lean_nat_dec_lt(v___x_859_, v___x_858_); +if (v___x_878_ == 0) { -lean_object* v_unused_801_; lean_object* v_unused_802_; lean_object* v_unused_803_; lean_object* v_unused_804_; lean_object* v_unused_805_; lean_object* v_unused_806_; -v_unused_801_ = lean_ctor_get(v_writer_764_, 5); -lean_dec(v_unused_801_); -v_unused_802_ = lean_ctor_get(v_writer_764_, 4); -lean_dec(v_unused_802_); -v_unused_803_ = lean_ctor_get(v_writer_764_, 3); -lean_dec(v_unused_803_); -v_unused_804_ = lean_ctor_get(v_writer_764_, 2); -lean_dec(v_unused_804_); -v_unused_805_ = lean_ctor_get(v_writer_764_, 1); -lean_dec(v_unused_805_); -v_unused_806_ = lean_ctor_get(v_writer_764_, 0); -lean_dec(v_unused_806_); -v___x_777_ = v_writer_764_; -v_isShared_778_ = v_isSharedCheck_800_; -goto v_resetjp_776_; +lean_dec_ref(v_userData_850_); +v___y_861_ = v___x_877_; +goto v___jp_860_; } else { -lean_dec(v_writer_764_); -v___x_777_ = lean_box(0); -v_isShared_778_ = v_isSharedCheck_800_; -goto v_resetjp_776_; -} -v_resetjp_776_: +uint8_t v___x_879_; +v___x_879_ = lean_nat_dec_le(v___x_858_, v___x_858_); +if (v___x_879_ == 0) { -lean_object* v___x_779_; uint8_t v___x_780_; -v___x_779_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg___closed__0)); -v___x_780_ = lean_nat_dec_lt(v___x_774_, v___x_773_); -if (v___x_780_ == 0) +if (v___x_878_ == 0) { -lean_object* v___x_782_; -lean_dec_ref(v_userData_765_); -if (v_isShared_778_ == 0) -{ -lean_ctor_set(v___x_777_, 5, v___x_774_); -lean_ctor_set(v___x_777_, 0, v___x_779_); -v___x_782_ = v___x_777_; -goto v_reusejp_781_; +lean_dec_ref(v_userData_850_); +v___y_861_ = v___x_877_; +goto v___jp_860_; } else { -lean_object* v_reuseFailAlloc_783_; -v_reuseFailAlloc_783_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_783_, 0, v___x_779_); -lean_ctor_set(v_reuseFailAlloc_783_, 1, v_outputData_766_); -lean_ctor_set(v_reuseFailAlloc_783_, 2, v_state_767_); -lean_ctor_set(v_reuseFailAlloc_783_, 3, v_knownSize_768_); -lean_ctor_set(v_reuseFailAlloc_783_, 4, v_messageHead_769_); -lean_ctor_set(v_reuseFailAlloc_783_, 5, v___x_774_); -lean_ctor_set_uint8(v_reuseFailAlloc_783_, sizeof(void*)*6, v_sentMessage_770_); -lean_ctor_set_uint8(v_reuseFailAlloc_783_, sizeof(void*)*6 + 1, v_userClosedBody_771_); -lean_ctor_set_uint8(v_reuseFailAlloc_783_, sizeof(void*)*6 + 2, v_omitBody_772_); -v___x_782_ = v_reuseFailAlloc_783_; -goto v_reusejp_781_; -} -v_reusejp_781_: -{ -return v___x_782_; +size_t v___x_880_; size_t v___x_881_; lean_object* v___x_882_; +v___x_880_ = ((size_t)0ULL); +v___x_881_ = lean_usize_of_nat(v___x_858_); +v___x_882_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3(v_userData_850_, v___x_880_, v___x_881_, v___x_877_); +lean_dec_ref(v_userData_850_); +v___y_861_ = v___x_882_; +goto v___jp_860_; } } else { -uint8_t v___x_784_; -v___x_784_ = lean_nat_dec_le(v___x_773_, v___x_773_); -if (v___x_784_ == 0) -{ -if (v___x_780_ == 0) -{ -lean_object* v___x_786_; -lean_dec_ref(v_userData_765_); -if (v_isShared_778_ == 0) -{ -lean_ctor_set(v___x_777_, 5, v___x_774_); -lean_ctor_set(v___x_777_, 0, v___x_779_); -v___x_786_ = v___x_777_; -goto v_reusejp_785_; -} -else -{ -lean_object* v_reuseFailAlloc_787_; -v_reuseFailAlloc_787_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_787_, 0, v___x_779_); -lean_ctor_set(v_reuseFailAlloc_787_, 1, v_outputData_766_); -lean_ctor_set(v_reuseFailAlloc_787_, 2, v_state_767_); -lean_ctor_set(v_reuseFailAlloc_787_, 3, v_knownSize_768_); -lean_ctor_set(v_reuseFailAlloc_787_, 4, v_messageHead_769_); -lean_ctor_set(v_reuseFailAlloc_787_, 5, v___x_774_); -lean_ctor_set_uint8(v_reuseFailAlloc_787_, sizeof(void*)*6, v_sentMessage_770_); -lean_ctor_set_uint8(v_reuseFailAlloc_787_, sizeof(void*)*6 + 1, v_userClosedBody_771_); -lean_ctor_set_uint8(v_reuseFailAlloc_787_, sizeof(void*)*6 + 2, v_omitBody_772_); -v___x_786_ = v_reuseFailAlloc_787_; -goto v_reusejp_785_; -} -v_reusejp_785_: -{ -return v___x_786_; -} -} -else -{ -size_t v___x_788_; size_t v___x_789_; lean_object* v___x_790_; lean_object* v___x_792_; -v___x_788_ = ((size_t)0ULL); -v___x_789_ = lean_usize_of_nat(v___x_773_); -v___x_790_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v_userData_765_, v___x_788_, v___x_789_, v_outputData_766_); -lean_dec_ref(v_userData_765_); -if (v_isShared_778_ == 0) -{ -lean_ctor_set(v___x_777_, 5, v___x_774_); -lean_ctor_set(v___x_777_, 1, v___x_790_); -lean_ctor_set(v___x_777_, 0, v___x_779_); -v___x_792_ = v___x_777_; -goto v_reusejp_791_; -} -else -{ -lean_object* v_reuseFailAlloc_793_; -v_reuseFailAlloc_793_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_793_, 0, v___x_779_); -lean_ctor_set(v_reuseFailAlloc_793_, 1, v___x_790_); -lean_ctor_set(v_reuseFailAlloc_793_, 2, v_state_767_); -lean_ctor_set(v_reuseFailAlloc_793_, 3, v_knownSize_768_); -lean_ctor_set(v_reuseFailAlloc_793_, 4, v_messageHead_769_); -lean_ctor_set(v_reuseFailAlloc_793_, 5, v___x_774_); -lean_ctor_set_uint8(v_reuseFailAlloc_793_, sizeof(void*)*6, v_sentMessage_770_); -lean_ctor_set_uint8(v_reuseFailAlloc_793_, sizeof(void*)*6 + 1, v_userClosedBody_771_); -lean_ctor_set_uint8(v_reuseFailAlloc_793_, sizeof(void*)*6 + 2, v_omitBody_772_); -v___x_792_ = v_reuseFailAlloc_793_; -goto v_reusejp_791_; -} -v_reusejp_791_: -{ -return v___x_792_; +size_t v___x_883_; size_t v___x_884_; lean_object* v___x_885_; +v___x_883_ = ((size_t)0ULL); +v___x_884_ = lean_usize_of_nat(v___x_858_); +v___x_885_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__3(v_userData_850_, v___x_883_, v___x_884_, v___x_877_); +lean_dec_ref(v_userData_850_); +v___y_861_ = v___x_885_; +goto v___jp_860_; } } } else { -size_t v___x_794_; size_t v___x_795_; lean_object* v___x_796_; lean_object* v___x_798_; -v___x_794_ = ((size_t)0ULL); -v___x_795_ = lean_usize_of_nat(v___x_773_); -v___x_796_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v_userData_765_, v___x_794_, v___x_795_, v_outputData_766_); -lean_dec_ref(v_userData_765_); -if (v_isShared_778_ == 0) +return v_writer_849_; +} +v___jp_860_: { -lean_ctor_set(v___x_777_, 5, v___x_774_); -lean_ctor_set(v___x_777_, 1, v___x_796_); -lean_ctor_set(v___x_777_, 0, v___x_779_); -v___x_798_ = v___x_777_; -goto v_reusejp_797_; +lean_object* v___x_862_; lean_object* v___x_863_; uint8_t v___x_864_; +v___x_862_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg___closed__0)); +v___x_863_ = lean_array_get_size(v___y_861_); +v___x_864_ = lean_nat_dec_lt(v___x_859_, v___x_863_); +if (v___x_864_ == 0) +{ +lean_object* v___x_865_; +lean_dec_ref(v___y_861_); +v___x_865_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_865_, 0, v___x_862_); +lean_ctor_set(v___x_865_, 1, v_outputData_851_); +lean_ctor_set(v___x_865_, 2, v_state_852_); +lean_ctor_set(v___x_865_, 3, v_knownSize_853_); +lean_ctor_set(v___x_865_, 4, v_messageHead_854_); +lean_ctor_set(v___x_865_, 5, v___x_859_); +lean_ctor_set_uint8(v___x_865_, sizeof(void*)*6, v_sentMessage_855_); +lean_ctor_set_uint8(v___x_865_, sizeof(void*)*6 + 1, v_userClosedBody_856_); +lean_ctor_set_uint8(v___x_865_, sizeof(void*)*6 + 2, v_omitBody_857_); +return v___x_865_; } else { -lean_object* v_reuseFailAlloc_799_; -v_reuseFailAlloc_799_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_799_, 0, v___x_779_); -lean_ctor_set(v_reuseFailAlloc_799_, 1, v___x_796_); -lean_ctor_set(v_reuseFailAlloc_799_, 2, v_state_767_); -lean_ctor_set(v_reuseFailAlloc_799_, 3, v_knownSize_768_); -lean_ctor_set(v_reuseFailAlloc_799_, 4, v_messageHead_769_); -lean_ctor_set(v_reuseFailAlloc_799_, 5, v___x_774_); -lean_ctor_set_uint8(v_reuseFailAlloc_799_, sizeof(void*)*6, v_sentMessage_770_); -lean_ctor_set_uint8(v_reuseFailAlloc_799_, sizeof(void*)*6 + 1, v_userClosedBody_771_); -lean_ctor_set_uint8(v_reuseFailAlloc_799_, sizeof(void*)*6 + 2, v_omitBody_772_); -v___x_798_ = v_reuseFailAlloc_799_; -goto v_reusejp_797_; -} -v_reusejp_797_: +uint8_t v___x_866_; +v___x_866_ = lean_nat_dec_le(v___x_863_, v___x_863_); +if (v___x_866_ == 0) { -return v___x_798_; -} -} +if (v___x_864_ == 0) +{ +lean_object* v___x_867_; +lean_dec_ref(v___y_861_); +v___x_867_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_867_, 0, v___x_862_); +lean_ctor_set(v___x_867_, 1, v_outputData_851_); +lean_ctor_set(v___x_867_, 2, v_state_852_); +lean_ctor_set(v___x_867_, 3, v_knownSize_853_); +lean_ctor_set(v___x_867_, 4, v_messageHead_854_); +lean_ctor_set(v___x_867_, 5, v___x_859_); +lean_ctor_set_uint8(v___x_867_, sizeof(void*)*6, v_sentMessage_855_); +lean_ctor_set_uint8(v___x_867_, sizeof(void*)*6 + 1, v_userClosedBody_856_); +lean_ctor_set_uint8(v___x_867_, sizeof(void*)*6 + 2, v_omitBody_857_); +return v___x_867_; } +else +{ +size_t v___x_868_; size_t v___x_869_; lean_object* v___x_870_; lean_object* v___x_871_; +v___x_868_ = ((size_t)0ULL); +v___x_869_ = lean_usize_of_nat(v___x_863_); +v___x_870_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v___y_861_, v___x_868_, v___x_869_, v_outputData_851_); +lean_dec_ref(v___y_861_); +v___x_871_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_871_, 0, v___x_862_); +lean_ctor_set(v___x_871_, 1, v___x_870_); +lean_ctor_set(v___x_871_, 2, v_state_852_); +lean_ctor_set(v___x_871_, 3, v_knownSize_853_); +lean_ctor_set(v___x_871_, 4, v_messageHead_854_); +lean_ctor_set(v___x_871_, 5, v___x_859_); +lean_ctor_set_uint8(v___x_871_, sizeof(void*)*6, v_sentMessage_855_); +lean_ctor_set_uint8(v___x_871_, sizeof(void*)*6 + 1, v_userClosedBody_856_); +lean_ctor_set_uint8(v___x_871_, sizeof(void*)*6 + 2, v_omitBody_857_); +return v___x_871_; } } else { -return v_writer_764_; +size_t v___x_872_; size_t v___x_873_; lean_object* v___x_874_; lean_object* v___x_875_; +v___x_872_ = ((size_t)0ULL); +v___x_873_ = lean_usize_of_nat(v___x_863_); +v___x_874_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeChunkedBody_spec__2(v___y_861_, v___x_872_, v___x_873_, v_outputData_851_); +lean_dec_ref(v___y_861_); +v___x_875_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_875_, 0, v___x_862_); +lean_ctor_set(v___x_875_, 1, v___x_874_); +lean_ctor_set(v___x_875_, 2, v_state_852_); +lean_ctor_set(v___x_875_, 3, v_knownSize_853_); +lean_ctor_set(v___x_875_, 4, v_messageHead_854_); +lean_ctor_set(v___x_875_, 5, v___x_859_); +lean_ctor_set_uint8(v___x_875_, sizeof(void*)*6, v_sentMessage_855_); +lean_ctor_set_uint8(v___x_875_, sizeof(void*)*6 + 1, v_userClosedBody_856_); +lean_ctor_set_uint8(v___x_875_, sizeof(void*)*6 + 2, v_omitBody_857_); +return v___x_875_; } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody(uint8_t v_dir_807_, lean_object* v_writer_808_){ +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody(uint8_t v_dir_886_, lean_object* v_writer_887_){ _start: { -lean_object* v___x_809_; -v___x_809_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_808_); -return v___x_809_; +lean_object* v___x_888_; +v___x_888_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_887_); +return v___x_888_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody___boxed(lean_object* v_dir_810_, lean_object* v_writer_811_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeChunkedBody___boxed(lean_object* v_dir_889_, lean_object* v_writer_890_){ _start: { -uint8_t v_dir_boxed_812_; lean_object* v_res_813_; -v_dir_boxed_812_ = lean_unbox(v_dir_810_); -v_res_813_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody(v_dir_boxed_812_, v_writer_811_); -return v_res_813_; +uint8_t v_dir_boxed_891_; lean_object* v_res_892_; +v_dir_boxed_891_ = lean_unbox(v_dir_889_); +v_res_892_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody(v_dir_boxed_891_, v_writer_890_); +return v_res_892_; } } static lean_object* _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1(void){ _start: { -lean_object* v___x_815_; lean_object* v___x_816_; -v___x_815_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__0)); -v___x_816_ = lean_string_to_utf8(v___x_815_); -return v___x_816_; +lean_object* v___x_894_; lean_object* v___x_895_; +v___x_894_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__0)); +v___x_895_ = lean_string_to_utf8(v___x_894_); +return v___x_895_; } } static lean_object* _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2(void){ _start: { -lean_object* v___x_817_; lean_object* v___x_818_; -v___x_817_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1); -v___x_818_ = lean_byte_array_size(v___x_817_); -return v___x_818_; +lean_object* v___x_896_; lean_object* v___x_897_; +v___x_896_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1); +v___x_897_ = lean_byte_array_size(v___x_896_); +return v___x_897_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(lean_object* v_writer_819_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(lean_object* v_writer_898_){ _start: { -lean_object* v_writer_820_; lean_object* v_outputData_821_; lean_object* v_userData_822_; lean_object* v_knownSize_823_; lean_object* v_messageHead_824_; uint8_t v_sentMessage_825_; uint8_t v_userClosedBody_826_; uint8_t v_omitBody_827_; lean_object* v_userDataBytes_828_; lean_object* v___x_830_; uint8_t v_isShared_831_; uint8_t v_isSharedCheck_849_; -v_writer_820_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_819_); -v_outputData_821_ = lean_ctor_get(v_writer_820_, 1); -v_userData_822_ = lean_ctor_get(v_writer_820_, 0); -v_knownSize_823_ = lean_ctor_get(v_writer_820_, 3); -v_messageHead_824_ = lean_ctor_get(v_writer_820_, 4); -v_sentMessage_825_ = lean_ctor_get_uint8(v_writer_820_, sizeof(void*)*6); -v_userClosedBody_826_ = lean_ctor_get_uint8(v_writer_820_, sizeof(void*)*6 + 1); -v_omitBody_827_ = lean_ctor_get_uint8(v_writer_820_, sizeof(void*)*6 + 2); -v_userDataBytes_828_ = lean_ctor_get(v_writer_820_, 5); -v_isSharedCheck_849_ = !lean_is_exclusive(v_writer_820_); -if (v_isSharedCheck_849_ == 0) +lean_object* v_writer_899_; lean_object* v_outputData_900_; lean_object* v_userData_901_; lean_object* v_knownSize_902_; lean_object* v_messageHead_903_; uint8_t v_sentMessage_904_; uint8_t v_userClosedBody_905_; uint8_t v_omitBody_906_; lean_object* v_userDataBytes_907_; lean_object* v___x_909_; uint8_t v_isShared_910_; uint8_t v_isSharedCheck_928_; +v_writer_899_ = l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg(v_writer_898_); +v_outputData_900_ = lean_ctor_get(v_writer_899_, 1); +v_userData_901_ = lean_ctor_get(v_writer_899_, 0); +v_knownSize_902_ = lean_ctor_get(v_writer_899_, 3); +v_messageHead_903_ = lean_ctor_get(v_writer_899_, 4); +v_sentMessage_904_ = lean_ctor_get_uint8(v_writer_899_, sizeof(void*)*6); +v_userClosedBody_905_ = lean_ctor_get_uint8(v_writer_899_, sizeof(void*)*6 + 1); +v_omitBody_906_ = lean_ctor_get_uint8(v_writer_899_, sizeof(void*)*6 + 2); +v_userDataBytes_907_ = lean_ctor_get(v_writer_899_, 5); +v_isSharedCheck_928_ = !lean_is_exclusive(v_writer_899_); +if (v_isSharedCheck_928_ == 0) { -lean_object* v_unused_850_; -v_unused_850_ = lean_ctor_get(v_writer_820_, 2); -lean_dec(v_unused_850_); -v___x_830_ = v_writer_820_; -v_isShared_831_ = v_isSharedCheck_849_; -goto v_resetjp_829_; +lean_object* v_unused_929_; +v_unused_929_ = lean_ctor_get(v_writer_899_, 2); +lean_dec(v_unused_929_); +v___x_909_ = v_writer_899_; +v_isShared_910_ = v_isSharedCheck_928_; +goto v_resetjp_908_; } else { -lean_inc(v_userDataBytes_828_); -lean_inc(v_messageHead_824_); -lean_inc(v_knownSize_823_); -lean_inc(v_outputData_821_); -lean_inc(v_userData_822_); -lean_dec(v_writer_820_); -v___x_830_ = lean_box(0); -v_isShared_831_ = v_isSharedCheck_849_; -goto v_resetjp_829_; +lean_inc(v_userDataBytes_907_); +lean_inc(v_messageHead_903_); +lean_inc(v_knownSize_902_); +lean_inc(v_outputData_900_); +lean_inc(v_userData_901_); +lean_dec(v_writer_899_); +v___x_909_ = lean_box(0); +v_isShared_910_ = v_isSharedCheck_928_; +goto v_resetjp_908_; } -v_resetjp_829_: +v_resetjp_908_: { -lean_object* v_data_832_; lean_object* v_size_833_; lean_object* v___x_835_; uint8_t v_isShared_836_; uint8_t v_isSharedCheck_848_; -v_data_832_ = lean_ctor_get(v_outputData_821_, 0); -v_size_833_ = lean_ctor_get(v_outputData_821_, 1); -v_isSharedCheck_848_ = !lean_is_exclusive(v_outputData_821_); -if (v_isSharedCheck_848_ == 0) +lean_object* v_data_911_; lean_object* v_size_912_; lean_object* v___x_914_; uint8_t v_isShared_915_; uint8_t v_isSharedCheck_927_; +v_data_911_ = lean_ctor_get(v_outputData_900_, 0); +v_size_912_ = lean_ctor_get(v_outputData_900_, 1); +v_isSharedCheck_927_ = !lean_is_exclusive(v_outputData_900_); +if (v_isSharedCheck_927_ == 0) { -v___x_835_ = v_outputData_821_; -v_isShared_836_ = v_isSharedCheck_848_; -goto v_resetjp_834_; +v___x_914_ = v_outputData_900_; +v_isShared_915_ = v_isSharedCheck_927_; +goto v_resetjp_913_; } else { -lean_inc(v_size_833_); -lean_inc(v_data_832_); -lean_dec(v_outputData_821_); -v___x_835_ = lean_box(0); -v_isShared_836_ = v_isSharedCheck_848_; -goto v_resetjp_834_; +lean_inc(v_size_912_); +lean_inc(v_data_911_); +lean_dec(v_outputData_900_); +v___x_914_ = lean_box(0); +v_isShared_915_ = v_isSharedCheck_927_; +goto v_resetjp_913_; } -v_resetjp_834_: +v_resetjp_913_: { -lean_object* v___x_837_; lean_object* v___x_838_; lean_object* v___x_839_; lean_object* v___x_840_; lean_object* v___x_842_; -v___x_837_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1); -v___x_838_ = lean_array_push(v_data_832_, v___x_837_); -v___x_839_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2); -v___x_840_ = lean_nat_add(v_size_833_, v___x_839_); -lean_dec(v_size_833_); -if (v_isShared_836_ == 0) +lean_object* v___x_916_; lean_object* v___x_917_; lean_object* v___x_918_; lean_object* v___x_919_; lean_object* v___x_921_; +v___x_916_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__1); +v___x_917_ = lean_array_push(v_data_911_, v___x_916_); +v___x_918_ = lean_obj_once(&l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2, &l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2_once, _init_l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg___closed__2); +v___x_919_ = lean_nat_add(v_size_912_, v___x_918_); +lean_dec(v_size_912_); +if (v_isShared_915_ == 0) { -lean_ctor_set(v___x_835_, 1, v___x_840_); -lean_ctor_set(v___x_835_, 0, v___x_838_); -v___x_842_ = v___x_835_; -goto v_reusejp_841_; +lean_ctor_set(v___x_914_, 1, v___x_919_); +lean_ctor_set(v___x_914_, 0, v___x_917_); +v___x_921_ = v___x_914_; +goto v_reusejp_920_; } else { -lean_object* v_reuseFailAlloc_847_; -v_reuseFailAlloc_847_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v_reuseFailAlloc_847_, 0, v___x_838_); -lean_ctor_set(v_reuseFailAlloc_847_, 1, v___x_840_); -v___x_842_ = v_reuseFailAlloc_847_; -goto v_reusejp_841_; +lean_object* v_reuseFailAlloc_926_; +v_reuseFailAlloc_926_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_926_, 0, v___x_917_); +lean_ctor_set(v_reuseFailAlloc_926_, 1, v___x_919_); +v___x_921_ = v_reuseFailAlloc_926_; +goto v_reusejp_920_; } -v_reusejp_841_: +v_reusejp_920_: { -lean_object* v___x_843_; lean_object* v___x_845_; -v___x_843_ = lean_box(4); -if (v_isShared_831_ == 0) +lean_object* v___x_922_; lean_object* v___x_924_; +v___x_922_ = lean_box(6); +if (v_isShared_910_ == 0) { -lean_ctor_set(v___x_830_, 2, v___x_843_); -lean_ctor_set(v___x_830_, 1, v___x_842_); -v___x_845_ = v___x_830_; -goto v_reusejp_844_; +lean_ctor_set(v___x_909_, 2, v___x_922_); +lean_ctor_set(v___x_909_, 1, v___x_921_); +v___x_924_ = v___x_909_; +goto v_reusejp_923_; } else { -lean_object* v_reuseFailAlloc_846_; -v_reuseFailAlloc_846_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_846_, 0, v_userData_822_); -lean_ctor_set(v_reuseFailAlloc_846_, 1, v___x_842_); -lean_ctor_set(v_reuseFailAlloc_846_, 2, v___x_843_); -lean_ctor_set(v_reuseFailAlloc_846_, 3, v_knownSize_823_); -lean_ctor_set(v_reuseFailAlloc_846_, 4, v_messageHead_824_); -lean_ctor_set(v_reuseFailAlloc_846_, 5, v_userDataBytes_828_); -lean_ctor_set_uint8(v_reuseFailAlloc_846_, sizeof(void*)*6, v_sentMessage_825_); -lean_ctor_set_uint8(v_reuseFailAlloc_846_, sizeof(void*)*6 + 1, v_userClosedBody_826_); -lean_ctor_set_uint8(v_reuseFailAlloc_846_, sizeof(void*)*6 + 2, v_omitBody_827_); -v___x_845_ = v_reuseFailAlloc_846_; -goto v_reusejp_844_; +lean_object* v_reuseFailAlloc_925_; +v_reuseFailAlloc_925_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_925_, 0, v_userData_901_); +lean_ctor_set(v_reuseFailAlloc_925_, 1, v___x_921_); +lean_ctor_set(v_reuseFailAlloc_925_, 2, v___x_922_); +lean_ctor_set(v_reuseFailAlloc_925_, 3, v_knownSize_902_); +lean_ctor_set(v_reuseFailAlloc_925_, 4, v_messageHead_903_); +lean_ctor_set(v_reuseFailAlloc_925_, 5, v_userDataBytes_907_); +lean_ctor_set_uint8(v_reuseFailAlloc_925_, sizeof(void*)*6, v_sentMessage_904_); +lean_ctor_set_uint8(v_reuseFailAlloc_925_, sizeof(void*)*6 + 1, v_userClosedBody_905_); +lean_ctor_set_uint8(v_reuseFailAlloc_925_, sizeof(void*)*6 + 2, v_omitBody_906_); +v___x_924_ = v_reuseFailAlloc_925_; +goto v_reusejp_923_; } -v_reusejp_844_: +v_reusejp_923_: { -return v___x_845_; +return v___x_924_; } } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk(uint8_t v_dir_851_, lean_object* v_writer_852_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk(uint8_t v_dir_930_, lean_object* v_writer_931_){ _start: { -lean_object* v___x_853_; -v___x_853_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(v_writer_852_); -return v___x_853_; +lean_object* v___x_932_; +v___x_932_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk___redArg(v_writer_931_); +return v___x_932_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___boxed(lean_object* v_dir_854_, lean_object* v_writer_855_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeFinalChunk___boxed(lean_object* v_dir_933_, lean_object* v_writer_934_){ _start: { -uint8_t v_dir_boxed_856_; lean_object* v_res_857_; -v_dir_boxed_856_ = lean_unbox(v_dir_854_); -v_res_857_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk(v_dir_boxed_856_, v_writer_855_); -return v_res_857_; +uint8_t v_dir_boxed_935_; lean_object* v_res_936_; +v_dir_boxed_935_ = lean_unbox(v_dir_933_); +v_res_936_ = l_Std_Http_Protocol_H1_Writer_writeFinalChunk(v_dir_boxed_935_, v_writer_934_); +return v_res_936_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0(uint8_t v___x_858_, lean_object* v_x1_859_, lean_object* v_x2_860_){ +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0(lean_object* v_as_937_, size_t v_i_938_, size_t v_stop_939_, lean_object* v_b_940_){ _start: { -lean_object* v___x_861_; lean_object* v___x_862_; lean_object* v___x_863_; lean_object* v___x_864_; -v___x_861_ = lean_unsigned_to_nat(0u); -v___x_862_ = lean_byte_array_size(v_x1_859_); -v___x_863_ = lean_byte_array_size(v_x2_860_); -v___x_864_ = lean_byte_array_copy_slice(v_x2_860_, v___x_861_, v_x1_859_, v___x_862_, v___x_863_, v___x_858_); -return v___x_864_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed(lean_object* v___x_865_, lean_object* v_x1_866_, lean_object* v_x2_867_){ -_start: -{ -uint8_t v___x_120__boxed_868_; lean_object* v_res_869_; -v___x_120__boxed_868_ = lean_unbox(v___x_865_); -v_res_869_ = l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0(v___x_120__boxed_868_, v_x1_866_, v_x2_867_); -lean_dec_ref(v_x2_867_); -return v_res_869_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg(lean_object* v_writer_873_){ -_start: -{ -lean_object* v_userData_874_; lean_object* v_outputData_875_; lean_object* v_state_876_; lean_object* v_knownSize_877_; lean_object* v_messageHead_878_; uint8_t v_sentMessage_879_; uint8_t v_userClosedBody_880_; uint8_t v_omitBody_881_; lean_object* v_userDataBytes_882_; lean_object* v___x_884_; uint8_t v_isShared_885_; uint8_t v_isSharedCheck_914_; -v_userData_874_ = lean_ctor_get(v_writer_873_, 0); -v_outputData_875_ = lean_ctor_get(v_writer_873_, 1); -v_state_876_ = lean_ctor_get(v_writer_873_, 2); -v_knownSize_877_ = lean_ctor_get(v_writer_873_, 3); -v_messageHead_878_ = lean_ctor_get(v_writer_873_, 4); -v_sentMessage_879_ = lean_ctor_get_uint8(v_writer_873_, sizeof(void*)*6); -v_userClosedBody_880_ = lean_ctor_get_uint8(v_writer_873_, sizeof(void*)*6 + 1); -v_omitBody_881_ = lean_ctor_get_uint8(v_writer_873_, sizeof(void*)*6 + 2); -v_userDataBytes_882_ = lean_ctor_get(v_writer_873_, 5); -v_isSharedCheck_914_ = !lean_is_exclusive(v_writer_873_); -if (v_isSharedCheck_914_ == 0) -{ -v___x_884_ = v_writer_873_; -v_isShared_885_ = v_isSharedCheck_914_; -goto v_resetjp_883_; -} -else -{ -lean_inc(v_userDataBytes_882_); -lean_inc(v_messageHead_878_); -lean_inc(v_knownSize_877_); -lean_inc(v_state_876_); -lean_inc(v_outputData_875_); -lean_inc(v_userData_874_); -lean_dec(v_writer_873_); -v___x_884_ = lean_box(0); -v_isShared_885_ = v_isSharedCheck_914_; -goto v_resetjp_883_; -} -v_resetjp_883_: -{ -lean_object* v___y_887_; lean_object* v_data_894_; lean_object* v_size_895_; lean_object* v___x_896_; lean_object* v___x_897_; uint8_t v___x_898_; -v_data_894_ = lean_ctor_get(v_outputData_875_, 0); -lean_inc_ref(v_data_894_); -v_size_895_ = lean_ctor_get(v_outputData_875_, 1); -lean_inc(v_size_895_); -lean_dec_ref(v_outputData_875_); -v___x_896_ = lean_unsigned_to_nat(1u); -v___x_897_ = lean_array_get_size(v_data_894_); -v___x_898_ = lean_nat_dec_eq(v___x_896_, v___x_897_); -if (v___x_898_ == 0) -{ -lean_object* v___x_899_; lean_object* v___x_900_; lean_object* v___x_901_; uint8_t v___x_902_; -v___x_899_ = lean_mk_empty_byte_array(v_size_895_); -lean_dec(v_size_895_); -v___x_900_ = lean_unsigned_to_nat(0u); -v___x_901_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); -v___x_902_ = lean_nat_dec_lt(v___x_900_, v___x_897_); -if (v___x_902_ == 0) -{ -lean_dec_ref(v_data_894_); -v___y_887_ = v___x_899_; -goto v___jp_886_; -} -else -{ -lean_object* v___x_903_; lean_object* v___f_904_; uint8_t v___x_905_; -v___x_903_ = lean_box(v___x_898_); -v___f_904_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed), 3, 1); -lean_closure_set(v___f_904_, 0, v___x_903_); -v___x_905_ = lean_nat_dec_le(v___x_897_, v___x_897_); -if (v___x_905_ == 0) -{ -if (v___x_902_ == 0) -{ -lean_dec_ref(v___f_904_); -lean_dec_ref(v_data_894_); -v___y_887_ = v___x_899_; -goto v___jp_886_; -} -else -{ -size_t v___x_906_; size_t v___x_907_; lean_object* v___x_908_; -v___x_906_ = ((size_t)0ULL); -v___x_907_ = lean_usize_of_nat(v___x_897_); -v___x_908_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_901_, v___f_904_, v_data_894_, v___x_906_, v___x_907_, v___x_899_); -v___y_887_ = v___x_908_; -goto v___jp_886_; -} -} -else -{ -size_t v___x_909_; size_t v___x_910_; lean_object* v___x_911_; -v___x_909_ = ((size_t)0ULL); -v___x_910_ = lean_usize_of_nat(v___x_897_); -v___x_911_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_901_, v___f_904_, v_data_894_, v___x_909_, v___x_910_, v___x_899_); -v___y_887_ = v___x_911_; -goto v___jp_886_; -} -} -} -else -{ -lean_object* v___x_912_; lean_object* v___x_913_; -lean_dec(v_size_895_); -v___x_912_ = lean_unsigned_to_nat(0u); -v___x_913_ = lean_array_fget(v_data_894_, v___x_912_); -lean_dec_ref(v_data_894_); -v___y_887_ = v___x_913_; -goto v___jp_886_; -} -v___jp_886_: -{ -lean_object* v___x_888_; lean_object* v___x_890_; -v___x_888_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___closed__0)); -if (v_isShared_885_ == 0) -{ -lean_ctor_set(v___x_884_, 1, v___x_888_); -v___x_890_ = v___x_884_; -goto v_reusejp_889_; -} -else -{ -lean_object* v_reuseFailAlloc_893_; -v_reuseFailAlloc_893_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_893_, 0, v_userData_874_); -lean_ctor_set(v_reuseFailAlloc_893_, 1, v___x_888_); -lean_ctor_set(v_reuseFailAlloc_893_, 2, v_state_876_); -lean_ctor_set(v_reuseFailAlloc_893_, 3, v_knownSize_877_); -lean_ctor_set(v_reuseFailAlloc_893_, 4, v_messageHead_878_); -lean_ctor_set(v_reuseFailAlloc_893_, 5, v_userDataBytes_882_); -lean_ctor_set_uint8(v_reuseFailAlloc_893_, sizeof(void*)*6, v_sentMessage_879_); -lean_ctor_set_uint8(v_reuseFailAlloc_893_, sizeof(void*)*6 + 1, v_userClosedBody_880_); -lean_ctor_set_uint8(v_reuseFailAlloc_893_, sizeof(void*)*6 + 2, v_omitBody_881_); -v___x_890_ = v_reuseFailAlloc_893_; -goto v_reusejp_889_; -} -v_reusejp_889_: -{ -lean_object* v___x_891_; lean_object* v___x_892_; -v___x_891_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_891_, 0, v___x_890_); -lean_ctor_set(v___x_891_, 1, v___y_887_); -v___x_892_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_892_, 0, v___x_891_); -return v___x_892_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput(uint8_t v_dir_915_, lean_object* v_writer_916_){ -_start: -{ -lean_object* v_userData_917_; lean_object* v_outputData_918_; lean_object* v_state_919_; lean_object* v_knownSize_920_; lean_object* v_messageHead_921_; uint8_t v_sentMessage_922_; uint8_t v_userClosedBody_923_; uint8_t v_omitBody_924_; lean_object* v_userDataBytes_925_; lean_object* v___x_927_; uint8_t v_isShared_928_; uint8_t v_isSharedCheck_957_; -v_userData_917_ = lean_ctor_get(v_writer_916_, 0); -v_outputData_918_ = lean_ctor_get(v_writer_916_, 1); -v_state_919_ = lean_ctor_get(v_writer_916_, 2); -v_knownSize_920_ = lean_ctor_get(v_writer_916_, 3); -v_messageHead_921_ = lean_ctor_get(v_writer_916_, 4); -v_sentMessage_922_ = lean_ctor_get_uint8(v_writer_916_, sizeof(void*)*6); -v_userClosedBody_923_ = lean_ctor_get_uint8(v_writer_916_, sizeof(void*)*6 + 1); -v_omitBody_924_ = lean_ctor_get_uint8(v_writer_916_, sizeof(void*)*6 + 2); -v_userDataBytes_925_ = lean_ctor_get(v_writer_916_, 5); -v_isSharedCheck_957_ = !lean_is_exclusive(v_writer_916_); -if (v_isSharedCheck_957_ == 0) -{ -v___x_927_ = v_writer_916_; -v_isShared_928_ = v_isSharedCheck_957_; -goto v_resetjp_926_; -} -else -{ -lean_inc(v_userDataBytes_925_); -lean_inc(v_messageHead_921_); -lean_inc(v_knownSize_920_); -lean_inc(v_state_919_); -lean_inc(v_outputData_918_); -lean_inc(v_userData_917_); -lean_dec(v_writer_916_); -v___x_927_ = lean_box(0); -v_isShared_928_ = v_isSharedCheck_957_; -goto v_resetjp_926_; -} -v_resetjp_926_: -{ -lean_object* v___y_930_; lean_object* v_data_937_; lean_object* v_size_938_; lean_object* v___x_939_; lean_object* v___x_940_; uint8_t v___x_941_; -v_data_937_ = lean_ctor_get(v_outputData_918_, 0); -lean_inc_ref(v_data_937_); -v_size_938_ = lean_ctor_get(v_outputData_918_, 1); -lean_inc(v_size_938_); -lean_dec_ref(v_outputData_918_); -v___x_939_ = lean_unsigned_to_nat(1u); -v___x_940_ = lean_array_get_size(v_data_937_); -v___x_941_ = lean_nat_dec_eq(v___x_939_, v___x_940_); +uint8_t v___x_941_; +v___x_941_ = lean_usize_dec_eq(v_i_938_, v_stop_939_); if (v___x_941_ == 0) { -lean_object* v___x_942_; lean_object* v___x_943_; lean_object* v___x_944_; uint8_t v___x_945_; -v___x_942_ = lean_mk_empty_byte_array(v_size_938_); -lean_dec(v_size_938_); -v___x_943_ = lean_unsigned_to_nat(0u); -v___x_944_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); -v___x_945_ = lean_nat_dec_lt(v___x_943_, v___x_940_); -if (v___x_945_ == 0) +lean_object* v___x_942_; lean_object* v_data_943_; lean_object* v_data_944_; lean_object* v_size_945_; lean_object* v___x_947_; uint8_t v_isShared_948_; uint8_t v_isSharedCheck_958_; +v___x_942_ = lean_array_uget_borrowed(v_as_937_, v_i_938_); +v_data_943_ = lean_ctor_get(v___x_942_, 0); +v_data_944_ = lean_ctor_get(v_b_940_, 0); +v_size_945_ = lean_ctor_get(v_b_940_, 1); +v_isSharedCheck_958_ = !lean_is_exclusive(v_b_940_); +if (v_isSharedCheck_958_ == 0) { -lean_dec_ref(v_data_937_); -v___y_930_ = v___x_942_; -goto v___jp_929_; +v___x_947_ = v_b_940_; +v_isShared_948_ = v_isSharedCheck_958_; +goto v_resetjp_946_; } else { -lean_object* v___x_946_; lean_object* v___f_947_; uint8_t v___x_948_; -v___x_946_ = lean_box(v___x_941_); -v___f_947_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed), 3, 1); -lean_closure_set(v___f_947_, 0, v___x_946_); -v___x_948_ = lean_nat_dec_le(v___x_940_, v___x_940_); -if (v___x_948_ == 0) +lean_inc(v_size_945_); +lean_inc(v_data_944_); +lean_dec(v_b_940_); +v___x_947_ = lean_box(0); +v_isShared_948_ = v_isSharedCheck_958_; +goto v_resetjp_946_; +} +v_resetjp_946_: { -if (v___x_945_ == 0) +lean_object* v___x_949_; lean_object* v___x_950_; lean_object* v___x_951_; lean_object* v___x_953_; +lean_inc_ref(v_data_943_); +v___x_949_ = lean_array_push(v_data_944_, v_data_943_); +v___x_950_ = lean_byte_array_size(v_data_943_); +v___x_951_ = lean_nat_add(v_size_945_, v___x_950_); +lean_dec(v_size_945_); +if (v_isShared_948_ == 0) { -lean_dec_ref(v___f_947_); -lean_dec_ref(v_data_937_); -v___y_930_ = v___x_942_; -goto v___jp_929_; +lean_ctor_set(v___x_947_, 1, v___x_951_); +lean_ctor_set(v___x_947_, 0, v___x_949_); +v___x_953_ = v___x_947_; +goto v_reusejp_952_; } else { -size_t v___x_949_; size_t v___x_950_; lean_object* v___x_951_; -v___x_949_ = ((size_t)0ULL); -v___x_950_ = lean_usize_of_nat(v___x_940_); -v___x_951_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_944_, v___f_947_, v_data_937_, v___x_949_, v___x_950_, v___x_942_); -v___y_930_ = v___x_951_; -goto v___jp_929_; +lean_object* v_reuseFailAlloc_957_; +v_reuseFailAlloc_957_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_957_, 0, v___x_949_); +lean_ctor_set(v_reuseFailAlloc_957_, 1, v___x_951_); +v___x_953_ = v_reuseFailAlloc_957_; +goto v_reusejp_952_; } -} -else +v_reusejp_952_: { -size_t v___x_952_; size_t v___x_953_; lean_object* v___x_954_; -v___x_952_ = ((size_t)0ULL); -v___x_953_ = lean_usize_of_nat(v___x_940_); -v___x_954_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_944_, v___f_947_, v_data_937_, v___x_952_, v___x_953_, v___x_942_); -v___y_930_ = v___x_954_; -goto v___jp_929_; -} -} -} -else -{ -lean_object* v___x_955_; lean_object* v___x_956_; -lean_dec(v_size_938_); -v___x_955_ = lean_unsigned_to_nat(0u); -v___x_956_ = lean_array_fget(v_data_937_, v___x_955_); -lean_dec_ref(v_data_937_); -v___y_930_ = v___x_956_; -goto v___jp_929_; -} -v___jp_929_: -{ -lean_object* v___x_931_; lean_object* v___x_933_; -v___x_931_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___closed__0)); -if (v_isShared_928_ == 0) -{ -lean_ctor_set(v___x_927_, 1, v___x_931_); -v___x_933_ = v___x_927_; -goto v_reusejp_932_; -} -else -{ -lean_object* v_reuseFailAlloc_936_; -v_reuseFailAlloc_936_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_936_, 0, v_userData_917_); -lean_ctor_set(v_reuseFailAlloc_936_, 1, v___x_931_); -lean_ctor_set(v_reuseFailAlloc_936_, 2, v_state_919_); -lean_ctor_set(v_reuseFailAlloc_936_, 3, v_knownSize_920_); -lean_ctor_set(v_reuseFailAlloc_936_, 4, v_messageHead_921_); -lean_ctor_set(v_reuseFailAlloc_936_, 5, v_userDataBytes_925_); -lean_ctor_set_uint8(v_reuseFailAlloc_936_, sizeof(void*)*6, v_sentMessage_922_); -lean_ctor_set_uint8(v_reuseFailAlloc_936_, sizeof(void*)*6 + 1, v_userClosedBody_923_); -lean_ctor_set_uint8(v_reuseFailAlloc_936_, sizeof(void*)*6 + 2, v_omitBody_924_); -v___x_933_ = v_reuseFailAlloc_936_; -goto v_reusejp_932_; -} -v_reusejp_932_: -{ -lean_object* v___x_934_; lean_object* v___x_935_; -v___x_934_ = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(v___x_934_, 0, v___x_933_); -lean_ctor_set(v___x_934_, 1, v___y_930_); -v___x_935_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_935_, 0, v___x_934_); -return v___x_935_; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___boxed(lean_object* v_dir_958_, lean_object* v_writer_959_){ -_start: -{ -uint8_t v_dir_boxed_960_; lean_object* v_res_961_; -v_dir_boxed_960_ = lean_unbox(v_dir_958_); -v_res_961_ = l_Std_Http_Protocol_H1_Writer_takeOutput(v_dir_boxed_960_, v_writer_959_); -return v_res_961_; -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState___redArg(lean_object* v_state_962_, lean_object* v_writer_963_){ -_start: -{ -lean_object* v_userData_964_; lean_object* v_outputData_965_; lean_object* v_knownSize_966_; lean_object* v_messageHead_967_; uint8_t v_sentMessage_968_; uint8_t v_userClosedBody_969_; uint8_t v_omitBody_970_; lean_object* v_userDataBytes_971_; lean_object* v___x_973_; uint8_t v_isShared_974_; uint8_t v_isSharedCheck_978_; -v_userData_964_ = lean_ctor_get(v_writer_963_, 0); -v_outputData_965_ = lean_ctor_get(v_writer_963_, 1); -v_knownSize_966_ = lean_ctor_get(v_writer_963_, 3); -v_messageHead_967_ = lean_ctor_get(v_writer_963_, 4); -v_sentMessage_968_ = lean_ctor_get_uint8(v_writer_963_, sizeof(void*)*6); -v_userClosedBody_969_ = lean_ctor_get_uint8(v_writer_963_, sizeof(void*)*6 + 1); -v_omitBody_970_ = lean_ctor_get_uint8(v_writer_963_, sizeof(void*)*6 + 2); -v_userDataBytes_971_ = lean_ctor_get(v_writer_963_, 5); -v_isSharedCheck_978_ = !lean_is_exclusive(v_writer_963_); -if (v_isSharedCheck_978_ == 0) -{ -lean_object* v_unused_979_; -v_unused_979_ = lean_ctor_get(v_writer_963_, 2); -lean_dec(v_unused_979_); -v___x_973_ = v_writer_963_; -v_isShared_974_ = v_isSharedCheck_978_; -goto v_resetjp_972_; -} -else -{ -lean_inc(v_userDataBytes_971_); -lean_inc(v_messageHead_967_); -lean_inc(v_knownSize_966_); -lean_inc(v_outputData_965_); -lean_inc(v_userData_964_); -lean_dec(v_writer_963_); -v___x_973_ = lean_box(0); -v_isShared_974_ = v_isSharedCheck_978_; -goto v_resetjp_972_; -} -v_resetjp_972_: -{ -lean_object* v___x_976_; -if (v_isShared_974_ == 0) -{ -lean_ctor_set(v___x_973_, 2, v_state_962_); -v___x_976_ = v___x_973_; -goto v_reusejp_975_; -} -else -{ -lean_object* v_reuseFailAlloc_977_; -v_reuseFailAlloc_977_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_977_, 0, v_userData_964_); -lean_ctor_set(v_reuseFailAlloc_977_, 1, v_outputData_965_); -lean_ctor_set(v_reuseFailAlloc_977_, 2, v_state_962_); -lean_ctor_set(v_reuseFailAlloc_977_, 3, v_knownSize_966_); -lean_ctor_set(v_reuseFailAlloc_977_, 4, v_messageHead_967_); -lean_ctor_set(v_reuseFailAlloc_977_, 5, v_userDataBytes_971_); -lean_ctor_set_uint8(v_reuseFailAlloc_977_, sizeof(void*)*6, v_sentMessage_968_); -lean_ctor_set_uint8(v_reuseFailAlloc_977_, sizeof(void*)*6 + 1, v_userClosedBody_969_); -lean_ctor_set_uint8(v_reuseFailAlloc_977_, sizeof(void*)*6 + 2, v_omitBody_970_); -v___x_976_ = v_reuseFailAlloc_977_; -goto v_reusejp_975_; -} -v_reusejp_975_: -{ -return v___x_976_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState(uint8_t v_dir_980_, lean_object* v_state_981_, lean_object* v_writer_982_){ -_start: -{ -lean_object* v_userData_983_; lean_object* v_outputData_984_; lean_object* v_knownSize_985_; lean_object* v_messageHead_986_; uint8_t v_sentMessage_987_; uint8_t v_userClosedBody_988_; uint8_t v_omitBody_989_; lean_object* v_userDataBytes_990_; lean_object* v___x_992_; uint8_t v_isShared_993_; uint8_t v_isSharedCheck_997_; -v_userData_983_ = lean_ctor_get(v_writer_982_, 0); -v_outputData_984_ = lean_ctor_get(v_writer_982_, 1); -v_knownSize_985_ = lean_ctor_get(v_writer_982_, 3); -v_messageHead_986_ = lean_ctor_get(v_writer_982_, 4); -v_sentMessage_987_ = lean_ctor_get_uint8(v_writer_982_, sizeof(void*)*6); -v_userClosedBody_988_ = lean_ctor_get_uint8(v_writer_982_, sizeof(void*)*6 + 1); -v_omitBody_989_ = lean_ctor_get_uint8(v_writer_982_, sizeof(void*)*6 + 2); -v_userDataBytes_990_ = lean_ctor_get(v_writer_982_, 5); -v_isSharedCheck_997_ = !lean_is_exclusive(v_writer_982_); -if (v_isSharedCheck_997_ == 0) -{ -lean_object* v_unused_998_; -v_unused_998_ = lean_ctor_get(v_writer_982_, 2); -lean_dec(v_unused_998_); -v___x_992_ = v_writer_982_; -v_isShared_993_ = v_isSharedCheck_997_; -goto v_resetjp_991_; -} -else -{ -lean_inc(v_userDataBytes_990_); -lean_inc(v_messageHead_986_); -lean_inc(v_knownSize_985_); -lean_inc(v_outputData_984_); -lean_inc(v_userData_983_); -lean_dec(v_writer_982_); -v___x_992_ = lean_box(0); -v_isShared_993_ = v_isSharedCheck_997_; -goto v_resetjp_991_; -} -v_resetjp_991_: -{ -lean_object* v___x_995_; -if (v_isShared_993_ == 0) -{ -lean_ctor_set(v___x_992_, 2, v_state_981_); -v___x_995_ = v___x_992_; -goto v_reusejp_994_; -} -else -{ -lean_object* v_reuseFailAlloc_996_; -v_reuseFailAlloc_996_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_996_, 0, v_userData_983_); -lean_ctor_set(v_reuseFailAlloc_996_, 1, v_outputData_984_); -lean_ctor_set(v_reuseFailAlloc_996_, 2, v_state_981_); -lean_ctor_set(v_reuseFailAlloc_996_, 3, v_knownSize_985_); -lean_ctor_set(v_reuseFailAlloc_996_, 4, v_messageHead_986_); -lean_ctor_set(v_reuseFailAlloc_996_, 5, v_userDataBytes_990_); -lean_ctor_set_uint8(v_reuseFailAlloc_996_, sizeof(void*)*6, v_sentMessage_987_); -lean_ctor_set_uint8(v_reuseFailAlloc_996_, sizeof(void*)*6 + 1, v_userClosedBody_988_); -lean_ctor_set_uint8(v_reuseFailAlloc_996_, sizeof(void*)*6 + 2, v_omitBody_989_); -v___x_995_ = v_reuseFailAlloc_996_; -goto v_reusejp_994_; -} -v_reusejp_994_: -{ -return v___x_995_; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState___boxed(lean_object* v_dir_999_, lean_object* v_state_1000_, lean_object* v_writer_1001_){ -_start: -{ -uint8_t v_dir_boxed_1002_; lean_object* v_res_1003_; -v_dir_boxed_1002_ = lean_unbox(v_dir_999_); -v_res_1003_ = l_Std_Http_Protocol_H1_Writer_setState(v_dir_boxed_1002_, v_state_1000_, v_writer_1001_); -return v_res_1003_; -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders(uint8_t v_dir_1004_, lean_object* v_messageHead_1005_, lean_object* v_writer_1006_){ -_start: -{ -lean_object* v_userData_1007_; lean_object* v_outputData_1008_; lean_object* v_state_1009_; lean_object* v_knownSize_1010_; lean_object* v_messageHead_1011_; uint8_t v_sentMessage_1012_; uint8_t v_userClosedBody_1013_; uint8_t v_omitBody_1014_; lean_object* v_userDataBytes_1015_; lean_object* v___x_1017_; uint8_t v_isShared_1018_; uint8_t v_isSharedCheck_1028_; -v_userData_1007_ = lean_ctor_get(v_writer_1006_, 0); -v_outputData_1008_ = lean_ctor_get(v_writer_1006_, 1); -v_state_1009_ = lean_ctor_get(v_writer_1006_, 2); -v_knownSize_1010_ = lean_ctor_get(v_writer_1006_, 3); -v_messageHead_1011_ = lean_ctor_get(v_writer_1006_, 4); -v_sentMessage_1012_ = lean_ctor_get_uint8(v_writer_1006_, sizeof(void*)*6); -v_userClosedBody_1013_ = lean_ctor_get_uint8(v_writer_1006_, sizeof(void*)*6 + 1); -v_omitBody_1014_ = lean_ctor_get_uint8(v_writer_1006_, sizeof(void*)*6 + 2); -v_userDataBytes_1015_ = lean_ctor_get(v_writer_1006_, 5); -v_isSharedCheck_1028_ = !lean_is_exclusive(v_writer_1006_); -if (v_isSharedCheck_1028_ == 0) -{ -v___x_1017_ = v_writer_1006_; -v_isShared_1018_ = v_isSharedCheck_1028_; -goto v_resetjp_1016_; -} -else -{ -lean_inc(v_userDataBytes_1015_); -lean_inc(v_messageHead_1011_); -lean_inc(v_knownSize_1010_); -lean_inc(v_state_1009_); -lean_inc(v_outputData_1008_); -lean_inc(v_userData_1007_); -lean_dec(v_writer_1006_); -v___x_1017_ = lean_box(0); -v_isShared_1018_ = v_isSharedCheck_1028_; -goto v_resetjp_1016_; -} -v_resetjp_1016_: -{ -uint8_t v___y_1020_; -if (v_dir_1004_ == 0) -{ -uint8_t v___x_1026_; -v___x_1026_ = 1; -v___y_1020_ = v___x_1026_; -goto v___jp_1019_; -} -else -{ -uint8_t v___x_1027_; -v___x_1027_ = 0; -v___y_1020_ = v___x_1027_; -goto v___jp_1019_; -} -v___jp_1019_: -{ -lean_object* v___x_6__overap_1021_; lean_object* v___x_1022_; lean_object* v___x_1024_; -v___x_6__overap_1021_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_1020_); -v___x_1022_ = lean_apply_2(v___x_6__overap_1021_, v_outputData_1008_, v_messageHead_1005_); -if (v_isShared_1018_ == 0) -{ -lean_ctor_set(v___x_1017_, 1, v___x_1022_); -v___x_1024_ = v___x_1017_; -goto v_reusejp_1023_; -} -else -{ -lean_object* v_reuseFailAlloc_1025_; -v_reuseFailAlloc_1025_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_1025_, 0, v_userData_1007_); -lean_ctor_set(v_reuseFailAlloc_1025_, 1, v___x_1022_); -lean_ctor_set(v_reuseFailAlloc_1025_, 2, v_state_1009_); -lean_ctor_set(v_reuseFailAlloc_1025_, 3, v_knownSize_1010_); -lean_ctor_set(v_reuseFailAlloc_1025_, 4, v_messageHead_1011_); -lean_ctor_set(v_reuseFailAlloc_1025_, 5, v_userDataBytes_1015_); -lean_ctor_set_uint8(v_reuseFailAlloc_1025_, sizeof(void*)*6, v_sentMessage_1012_); -lean_ctor_set_uint8(v_reuseFailAlloc_1025_, sizeof(void*)*6 + 1, v_userClosedBody_1013_); -lean_ctor_set_uint8(v_reuseFailAlloc_1025_, sizeof(void*)*6 + 2, v_omitBody_1014_); -v___x_1024_ = v_reuseFailAlloc_1025_; -goto v_reusejp_1023_; -} -v_reusejp_1023_: -{ -return v___x_1024_; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders___boxed(lean_object* v_dir_1029_, lean_object* v_messageHead_1030_, lean_object* v_writer_1031_){ -_start: -{ -uint8_t v_dir_boxed_1032_; lean_object* v_res_1033_; -v_dir_boxed_1032_ = lean_unbox(v_dir_1029_); -v_res_1033_ = l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders(v_dir_boxed_1032_, v_messageHead_1030_, v_writer_1031_); -return v_res_1033_; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(lean_object* v_a_1034_, lean_object* v_x_1035_){ -_start: -{ -lean_object* v_key_1036_; lean_object* v_value_1037_; lean_object* v_tail_1038_; uint8_t v___x_1039_; -v_key_1036_ = lean_ctor_get(v_x_1035_, 0); -v_value_1037_ = lean_ctor_get(v_x_1035_, 1); -v_tail_1038_ = lean_ctor_get(v_x_1035_, 2); -v___x_1039_ = lean_string_dec_eq(v_key_1036_, v_a_1034_); -if (v___x_1039_ == 0) -{ -v_x_1035_ = v_tail_1038_; -goto _start; -} -else -{ -lean_inc(v_value_1037_); -return v_value_1037_; -} -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg___boxed(lean_object* v_a_1041_, lean_object* v_x_1042_){ -_start: -{ -lean_object* v_res_1043_; -v_res_1043_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1041_, v_x_1042_); -lean_dec(v_x_1042_); -lean_dec_ref(v_a_1041_); -return v_res_1043_; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(lean_object* v_m_1044_, lean_object* v_a_1045_){ -_start: -{ -lean_object* v_buckets_1046_; lean_object* v___x_1047_; uint64_t v___x_1048_; uint64_t v___x_1049_; uint64_t v___x_1050_; uint64_t v_fold_1051_; uint64_t v___x_1052_; uint64_t v___x_1053_; uint64_t v___x_1054_; size_t v___x_1055_; size_t v___x_1056_; size_t v___x_1057_; size_t v___x_1058_; size_t v___x_1059_; lean_object* v___x_1060_; lean_object* v___x_1061_; -v_buckets_1046_ = lean_ctor_get(v_m_1044_, 1); -v___x_1047_ = lean_array_get_size(v_buckets_1046_); -v___x_1048_ = lean_string_hash(v_a_1045_); -v___x_1049_ = 32ULL; -v___x_1050_ = lean_uint64_shift_right(v___x_1048_, v___x_1049_); -v_fold_1051_ = lean_uint64_xor(v___x_1048_, v___x_1050_); -v___x_1052_ = 16ULL; -v___x_1053_ = lean_uint64_shift_right(v_fold_1051_, v___x_1052_); -v___x_1054_ = lean_uint64_xor(v_fold_1051_, v___x_1053_); -v___x_1055_ = lean_uint64_to_usize(v___x_1054_); -v___x_1056_ = lean_usize_of_nat(v___x_1047_); -v___x_1057_ = ((size_t)1ULL); -v___x_1058_ = lean_usize_sub(v___x_1056_, v___x_1057_); -v___x_1059_ = lean_usize_land(v___x_1055_, v___x_1058_); -v___x_1060_ = lean_array_uget_borrowed(v_buckets_1046_, v___x_1059_); -v___x_1061_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1045_, v___x_1060_); -return v___x_1061_; -} -} -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg___boxed(lean_object* v_m_1062_, lean_object* v_a_1063_){ -_start: -{ -lean_object* v_res_1064_; -v_res_1064_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_m_1062_, v_a_1063_); -lean_dec_ref(v_a_1063_); -lean_dec_ref(v_m_1062_); -return v_res_1064_; -} -} -LEAN_EXPORT lean_object* l_String_mapAux___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__1(lean_object* v_s_1065_, lean_object* v_p_1066_){ -_start: -{ -uint32_t v___y_1068_; lean_object* v___x_1073_; uint8_t v___x_1074_; -v___x_1073_ = lean_string_utf8_byte_size(v_s_1065_); -v___x_1074_ = lean_nat_dec_eq(v_p_1066_, v___x_1073_); -if (v___x_1074_ == 0) -{ -uint32_t v___x_1075_; uint32_t v___x_1076_; uint8_t v___x_1077_; -v___x_1075_ = lean_string_utf8_get_fast(v_s_1065_, v_p_1066_); -v___x_1076_ = 65; -v___x_1077_ = lean_uint32_dec_le(v___x_1076_, v___x_1075_); -if (v___x_1077_ == 0) -{ -v___y_1068_ = v___x_1075_; -goto v___jp_1067_; -} -else -{ -uint32_t v___x_1078_; uint8_t v___x_1079_; -v___x_1078_ = 90; -v___x_1079_ = lean_uint32_dec_le(v___x_1075_, v___x_1078_); -if (v___x_1079_ == 0) -{ -v___y_1068_ = v___x_1075_; -goto v___jp_1067_; -} -else -{ -uint32_t v___x_1080_; uint32_t v___x_1081_; -v___x_1080_ = 32; -v___x_1081_ = lean_uint32_add(v___x_1075_, v___x_1080_); -v___y_1068_ = v___x_1081_; -goto v___jp_1067_; -} -} -} -else -{ -lean_dec(v_p_1066_); -return v_s_1065_; -} -v___jp_1067_: -{ -lean_object* v___x_1069_; lean_object* v___x_1070_; lean_object* v___x_1071_; -lean_inc(v_p_1066_); -v___x_1069_ = lean_string_utf8_set(v_s_1065_, v_p_1066_, v___y_1068_); -v___x_1070_ = l_Char_utf8Size(v___y_1068_); -v___x_1071_ = lean_nat_add(v_p_1066_, v___x_1070_); -lean_dec(v___x_1070_); -lean_dec(v_p_1066_); -v_s_1065_ = v___x_1069_; -v_p_1066_ = v___x_1071_; +size_t v___x_954_; size_t v___x_955_; +v___x_954_ = ((size_t)1ULL); +v___x_955_ = lean_usize_add(v_i_938_, v___x_954_); +v_i_938_ = v___x_955_; +v_b_940_ = v___x_953_; goto _start; } } } -LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_shouldKeepAlive(uint8_t v_dir_1085_, lean_object* v_writer_1086_){ +else +{ +return v_b_940_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0___boxed(lean_object* v_as_959_, lean_object* v_i_960_, lean_object* v_stop_961_, lean_object* v_b_962_){ _start: { -uint8_t v___y_1088_; -if (v_dir_1085_ == 0) +size_t v_i_boxed_963_; size_t v_stop_boxed_964_; lean_object* v_res_965_; +v_i_boxed_963_ = lean_unbox_usize(v_i_960_); +lean_dec(v_i_960_); +v_stop_boxed_964_ = lean_unbox_usize(v_stop_961_); +lean_dec(v_stop_961_); +v_res_965_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0(v_as_959_, v_i_boxed_963_, v_stop_boxed_964_, v_b_962_); +lean_dec_ref(v_as_959_); +return v_res_965_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(lean_object* v_writer_966_){ +_start: { -uint8_t v___x_1107_; -v___x_1107_ = 1; -v___y_1088_ = v___x_1107_; -goto v___jp_1087_; +lean_object* v_userData_967_; lean_object* v_outputData_968_; lean_object* v_state_969_; lean_object* v_knownSize_970_; lean_object* v_messageHead_971_; uint8_t v_sentMessage_972_; uint8_t v_userClosedBody_973_; uint8_t v_omitBody_974_; lean_object* v___x_976_; uint8_t v_isShared_977_; uint8_t v_isSharedCheck_1001_; +v_userData_967_ = lean_ctor_get(v_writer_966_, 0); +v_outputData_968_ = lean_ctor_get(v_writer_966_, 1); +v_state_969_ = lean_ctor_get(v_writer_966_, 2); +v_knownSize_970_ = lean_ctor_get(v_writer_966_, 3); +v_messageHead_971_ = lean_ctor_get(v_writer_966_, 4); +v_sentMessage_972_ = lean_ctor_get_uint8(v_writer_966_, sizeof(void*)*6); +v_userClosedBody_973_ = lean_ctor_get_uint8(v_writer_966_, sizeof(void*)*6 + 1); +v_omitBody_974_ = lean_ctor_get_uint8(v_writer_966_, sizeof(void*)*6 + 2); +v_isSharedCheck_1001_ = !lean_is_exclusive(v_writer_966_); +if (v_isSharedCheck_1001_ == 0) +{ +lean_object* v_unused_1002_; +v_unused_1002_ = lean_ctor_get(v_writer_966_, 5); +lean_dec(v_unused_1002_); +v___x_976_ = v_writer_966_; +v_isShared_977_ = v_isSharedCheck_1001_; +goto v_resetjp_975_; } else { -uint8_t v___x_1108_; -v___x_1108_ = 0; -v___y_1088_ = v___x_1108_; -goto v___jp_1087_; +lean_inc(v_messageHead_971_); +lean_inc(v_knownSize_970_); +lean_inc(v_state_969_); +lean_inc(v_outputData_968_); +lean_inc(v_userData_967_); +lean_dec(v_writer_966_); +v___x_976_ = lean_box(0); +v_isShared_977_ = v_isSharedCheck_1001_; +goto v_resetjp_975_; } -v___jp_1087_: +v_resetjp_975_: { -lean_object* v_messageHead_1089_; lean_object* v___x_1090_; lean_object* v___x_1091_; lean_object* v___f_1092_; lean_object* v___f_1093_; uint8_t v___x_1094_; -v_messageHead_1089_ = lean_ctor_get(v_writer_1086_, 4); -v___x_1090_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_1088_, v_messageHead_1089_); -v___x_1091_ = l_Std_Http_Header_Name_connection; -v___f_1092_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__0)); -v___f_1093_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__1)); -v___x_1094_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1092_, v___f_1093_, v___x_1091_, v___x_1090_); -if (v___x_1094_ == 0) +lean_object* v___x_978_; lean_object* v___x_979_; lean_object* v___x_980_; uint8_t v___x_981_; +v___x_978_ = lean_unsigned_to_nat(0u); +v___x_979_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_writeChunkedBody___redArg___closed__0)); +v___x_980_ = lean_array_get_size(v_userData_967_); +v___x_981_ = lean_nat_dec_lt(v___x_978_, v___x_980_); +if (v___x_981_ == 0) { -uint8_t v___x_1095_; -lean_dec_ref(v___x_1090_); -v___x_1095_ = 1; -return v___x_1095_; +lean_object* v___x_983_; +lean_dec_ref(v_userData_967_); +if (v_isShared_977_ == 0) +{ +lean_ctor_set(v___x_976_, 5, v___x_978_); +lean_ctor_set(v___x_976_, 0, v___x_979_); +v___x_983_ = v___x_976_; +goto v_reusejp_982_; } else { -lean_object* v_entries_1096_; lean_object* v_indexes_1097_; lean_object* v___x_1098_; lean_object* v___x_1099_; lean_object* v_entry_1100_; lean_object* v___x_1101_; lean_object* v_snd_1102_; lean_object* v___x_1103_; lean_object* v___x_1104_; uint8_t v___x_1105_; -v_entries_1096_ = lean_ctor_get(v___x_1090_, 0); -lean_inc_ref(v_entries_1096_); -v_indexes_1097_ = lean_ctor_get(v___x_1090_, 1); -lean_inc_ref(v_indexes_1097_); -lean_dec_ref(v___x_1090_); -v___x_1098_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_indexes_1097_, v___x_1091_); -lean_dec_ref(v_indexes_1097_); -v___x_1099_ = lean_unsigned_to_nat(0u); -v_entry_1100_ = lean_array_fget(v___x_1098_, v___x_1099_); -lean_dec(v___x_1098_); -v___x_1101_ = lean_array_fget(v_entries_1096_, v_entry_1100_); -lean_dec(v_entry_1100_); -lean_dec_ref(v_entries_1096_); -v_snd_1102_ = lean_ctor_get(v___x_1101_, 1); -lean_inc(v_snd_1102_); -lean_dec(v___x_1101_); -v___x_1103_ = l_String_mapAux___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__1(v_snd_1102_, v___x_1099_); -v___x_1104_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__2)); -v___x_1105_ = lean_string_dec_eq(v___x_1103_, v___x_1104_); -lean_dec_ref(v___x_1103_); -if (v___x_1105_ == 0) +lean_object* v_reuseFailAlloc_984_; +v_reuseFailAlloc_984_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_984_, 0, v___x_979_); +lean_ctor_set(v_reuseFailAlloc_984_, 1, v_outputData_968_); +lean_ctor_set(v_reuseFailAlloc_984_, 2, v_state_969_); +lean_ctor_set(v_reuseFailAlloc_984_, 3, v_knownSize_970_); +lean_ctor_set(v_reuseFailAlloc_984_, 4, v_messageHead_971_); +lean_ctor_set(v_reuseFailAlloc_984_, 5, v___x_978_); +lean_ctor_set_uint8(v_reuseFailAlloc_984_, sizeof(void*)*6, v_sentMessage_972_); +lean_ctor_set_uint8(v_reuseFailAlloc_984_, sizeof(void*)*6 + 1, v_userClosedBody_973_); +lean_ctor_set_uint8(v_reuseFailAlloc_984_, sizeof(void*)*6 + 2, v_omitBody_974_); +v___x_983_ = v_reuseFailAlloc_984_; +goto v_reusejp_982_; +} +v_reusejp_982_: { -return v___x_1094_; +return v___x_983_; +} } else { -uint8_t v___x_1106_; -v___x_1106_ = 0; -return v___x_1106_; +uint8_t v___x_985_; +v___x_985_ = lean_nat_dec_le(v___x_980_, v___x_980_); +if (v___x_985_ == 0) +{ +if (v___x_981_ == 0) +{ +lean_object* v___x_987_; +lean_dec_ref(v_userData_967_); +if (v_isShared_977_ == 0) +{ +lean_ctor_set(v___x_976_, 5, v___x_978_); +lean_ctor_set(v___x_976_, 0, v___x_979_); +v___x_987_ = v___x_976_; +goto v_reusejp_986_; +} +else +{ +lean_object* v_reuseFailAlloc_988_; +v_reuseFailAlloc_988_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_988_, 0, v___x_979_); +lean_ctor_set(v_reuseFailAlloc_988_, 1, v_outputData_968_); +lean_ctor_set(v_reuseFailAlloc_988_, 2, v_state_969_); +lean_ctor_set(v_reuseFailAlloc_988_, 3, v_knownSize_970_); +lean_ctor_set(v_reuseFailAlloc_988_, 4, v_messageHead_971_); +lean_ctor_set(v_reuseFailAlloc_988_, 5, v___x_978_); +lean_ctor_set_uint8(v_reuseFailAlloc_988_, sizeof(void*)*6, v_sentMessage_972_); +lean_ctor_set_uint8(v_reuseFailAlloc_988_, sizeof(void*)*6 + 1, v_userClosedBody_973_); +lean_ctor_set_uint8(v_reuseFailAlloc_988_, sizeof(void*)*6 + 2, v_omitBody_974_); +v___x_987_ = v_reuseFailAlloc_988_; +goto v_reusejp_986_; +} +v_reusejp_986_: +{ +return v___x_987_; +} +} +else +{ +size_t v___x_989_; size_t v___x_990_; lean_object* v___x_991_; lean_object* v___x_993_; +v___x_989_ = ((size_t)0ULL); +v___x_990_ = lean_usize_of_nat(v___x_980_); +v___x_991_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0(v_userData_967_, v___x_989_, v___x_990_, v_outputData_968_); +lean_dec_ref(v_userData_967_); +if (v_isShared_977_ == 0) +{ +lean_ctor_set(v___x_976_, 5, v___x_978_); +lean_ctor_set(v___x_976_, 1, v___x_991_); +lean_ctor_set(v___x_976_, 0, v___x_979_); +v___x_993_ = v___x_976_; +goto v_reusejp_992_; +} +else +{ +lean_object* v_reuseFailAlloc_994_; +v_reuseFailAlloc_994_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_994_, 0, v___x_979_); +lean_ctor_set(v_reuseFailAlloc_994_, 1, v___x_991_); +lean_ctor_set(v_reuseFailAlloc_994_, 2, v_state_969_); +lean_ctor_set(v_reuseFailAlloc_994_, 3, v_knownSize_970_); +lean_ctor_set(v_reuseFailAlloc_994_, 4, v_messageHead_971_); +lean_ctor_set(v_reuseFailAlloc_994_, 5, v___x_978_); +lean_ctor_set_uint8(v_reuseFailAlloc_994_, sizeof(void*)*6, v_sentMessage_972_); +lean_ctor_set_uint8(v_reuseFailAlloc_994_, sizeof(void*)*6 + 1, v_userClosedBody_973_); +lean_ctor_set_uint8(v_reuseFailAlloc_994_, sizeof(void*)*6 + 2, v_omitBody_974_); +v___x_993_ = v_reuseFailAlloc_994_; +goto v_reusejp_992_; +} +v_reusejp_992_: +{ +return v___x_993_; +} +} +} +else +{ +size_t v___x_995_; size_t v___x_996_; lean_object* v___x_997_; lean_object* v___x_999_; +v___x_995_ = ((size_t)0ULL); +v___x_996_ = lean_usize_of_nat(v___x_980_); +v___x_997_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Std_Http_Protocol_H1_Writer_writeRawBody_spec__0(v_userData_967_, v___x_995_, v___x_996_, v_outputData_968_); +lean_dec_ref(v_userData_967_); +if (v_isShared_977_ == 0) +{ +lean_ctor_set(v___x_976_, 5, v___x_978_); +lean_ctor_set(v___x_976_, 1, v___x_997_); +lean_ctor_set(v___x_976_, 0, v___x_979_); +v___x_999_ = v___x_976_; +goto v_reusejp_998_; +} +else +{ +lean_object* v_reuseFailAlloc_1000_; +v_reuseFailAlloc_1000_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1000_, 0, v___x_979_); +lean_ctor_set(v_reuseFailAlloc_1000_, 1, v___x_997_); +lean_ctor_set(v_reuseFailAlloc_1000_, 2, v_state_969_); +lean_ctor_set(v_reuseFailAlloc_1000_, 3, v_knownSize_970_); +lean_ctor_set(v_reuseFailAlloc_1000_, 4, v_messageHead_971_); +lean_ctor_set(v_reuseFailAlloc_1000_, 5, v___x_978_); +lean_ctor_set_uint8(v_reuseFailAlloc_1000_, sizeof(void*)*6, v_sentMessage_972_); +lean_ctor_set_uint8(v_reuseFailAlloc_1000_, sizeof(void*)*6 + 1, v_userClosedBody_973_); +lean_ctor_set_uint8(v_reuseFailAlloc_1000_, sizeof(void*)*6 + 2, v_omitBody_974_); +v___x_999_ = v_reuseFailAlloc_1000_; +goto v_reusejp_998_; +} +v_reusejp_998_: +{ +return v___x_999_; } } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___boxed(lean_object* v_dir_1109_, lean_object* v_writer_1110_){ +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody(uint8_t v_dir_1003_, lean_object* v_writer_1004_){ _start: { -uint8_t v_dir_boxed_1111_; uint8_t v_res_1112_; lean_object* v_r_1113_; -v_dir_boxed_1111_ = lean_unbox(v_dir_1109_); -v_res_1112_ = l_Std_Http_Protocol_H1_Writer_shouldKeepAlive(v_dir_boxed_1111_, v_writer_1110_); -lean_dec_ref(v_writer_1110_); -v_r_1113_ = lean_box(v_res_1112_); -return v_r_1113_; +lean_object* v___x_1005_; +v___x_1005_ = l_Std_Http_Protocol_H1_Writer_writeRawBody___redArg(v_writer_1004_); +return v___x_1005_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0(lean_object* v_00_u03b2_1114_, lean_object* v_m_1115_, lean_object* v_a_1116_, lean_object* v_hma_1117_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_writeRawBody___boxed(lean_object* v_dir_1006_, lean_object* v_writer_1007_){ _start: { -lean_object* v___x_1118_; -v___x_1118_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_m_1115_, v_a_1116_); -return v___x_1118_; +uint8_t v_dir_boxed_1008_; lean_object* v_res_1009_; +v_dir_boxed_1008_ = lean_unbox(v_dir_1006_); +v_res_1009_ = l_Std_Http_Protocol_H1_Writer_writeRawBody(v_dir_boxed_1008_, v_writer_1007_); +return v_res_1009_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___boxed(lean_object* v_00_u03b2_1119_, lean_object* v_m_1120_, lean_object* v_a_1121_, lean_object* v_hma_1122_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0(uint8_t v___x_1010_, lean_object* v_x1_1011_, lean_object* v_x2_1012_){ _start: { -lean_object* v_res_1123_; -v_res_1123_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0(v_00_u03b2_1119_, v_m_1120_, v_a_1121_, v_hma_1122_); -lean_dec_ref(v_a_1121_); -lean_dec_ref(v_m_1120_); -return v_res_1123_; +lean_object* v___x_1013_; lean_object* v___x_1014_; lean_object* v___x_1015_; lean_object* v___x_1016_; +v___x_1013_ = lean_unsigned_to_nat(0u); +v___x_1014_ = lean_byte_array_size(v_x1_1011_); +v___x_1015_ = lean_byte_array_size(v_x2_1012_); +v___x_1016_ = lean_byte_array_copy_slice(v_x2_1012_, v___x_1013_, v_x1_1011_, v___x_1014_, v___x_1015_, v___x_1010_); +return v___x_1016_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0(lean_object* v_00_u03b2_1124_, lean_object* v_a_1125_, lean_object* v_x_1126_, lean_object* v_x_1127_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed(lean_object* v___x_1017_, lean_object* v_x1_1018_, lean_object* v_x2_1019_){ _start: { +uint8_t v___x_120__boxed_1020_; lean_object* v_res_1021_; +v___x_120__boxed_1020_ = lean_unbox(v___x_1017_); +v_res_1021_ = l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0(v___x_120__boxed_1020_, v_x1_1018_, v_x2_1019_); +lean_dec_ref(v_x2_1019_); +return v_res_1021_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___redArg(lean_object* v_writer_1025_){ +_start: +{ +lean_object* v_userData_1026_; lean_object* v_outputData_1027_; lean_object* v_state_1028_; lean_object* v_knownSize_1029_; lean_object* v_messageHead_1030_; uint8_t v_sentMessage_1031_; uint8_t v_userClosedBody_1032_; uint8_t v_omitBody_1033_; lean_object* v_userDataBytes_1034_; lean_object* v___x_1036_; uint8_t v_isShared_1037_; uint8_t v_isSharedCheck_1066_; +v_userData_1026_ = lean_ctor_get(v_writer_1025_, 0); +v_outputData_1027_ = lean_ctor_get(v_writer_1025_, 1); +v_state_1028_ = lean_ctor_get(v_writer_1025_, 2); +v_knownSize_1029_ = lean_ctor_get(v_writer_1025_, 3); +v_messageHead_1030_ = lean_ctor_get(v_writer_1025_, 4); +v_sentMessage_1031_ = lean_ctor_get_uint8(v_writer_1025_, sizeof(void*)*6); +v_userClosedBody_1032_ = lean_ctor_get_uint8(v_writer_1025_, sizeof(void*)*6 + 1); +v_omitBody_1033_ = lean_ctor_get_uint8(v_writer_1025_, sizeof(void*)*6 + 2); +v_userDataBytes_1034_ = lean_ctor_get(v_writer_1025_, 5); +v_isSharedCheck_1066_ = !lean_is_exclusive(v_writer_1025_); +if (v_isSharedCheck_1066_ == 0) +{ +v___x_1036_ = v_writer_1025_; +v_isShared_1037_ = v_isSharedCheck_1066_; +goto v_resetjp_1035_; +} +else +{ +lean_inc(v_userDataBytes_1034_); +lean_inc(v_messageHead_1030_); +lean_inc(v_knownSize_1029_); +lean_inc(v_state_1028_); +lean_inc(v_outputData_1027_); +lean_inc(v_userData_1026_); +lean_dec(v_writer_1025_); +v___x_1036_ = lean_box(0); +v_isShared_1037_ = v_isSharedCheck_1066_; +goto v_resetjp_1035_; +} +v_resetjp_1035_: +{ +lean_object* v___y_1039_; lean_object* v_data_1046_; lean_object* v_size_1047_; lean_object* v___x_1048_; lean_object* v___x_1049_; uint8_t v___x_1050_; +v_data_1046_ = lean_ctor_get(v_outputData_1027_, 0); +lean_inc_ref(v_data_1046_); +v_size_1047_ = lean_ctor_get(v_outputData_1027_, 1); +lean_inc(v_size_1047_); +lean_dec_ref(v_outputData_1027_); +v___x_1048_ = lean_unsigned_to_nat(1u); +v___x_1049_ = lean_array_get_size(v_data_1046_); +v___x_1050_ = lean_nat_dec_eq(v___x_1048_, v___x_1049_); +if (v___x_1050_ == 0) +{ +lean_object* v___x_1051_; lean_object* v___x_1052_; lean_object* v___x_1053_; uint8_t v___x_1054_; +v___x_1051_ = lean_mk_empty_byte_array(v_size_1047_); +lean_dec(v_size_1047_); +v___x_1052_ = lean_unsigned_to_nat(0u); +v___x_1053_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); +v___x_1054_ = lean_nat_dec_lt(v___x_1052_, v___x_1049_); +if (v___x_1054_ == 0) +{ +lean_dec_ref(v_data_1046_); +v___y_1039_ = v___x_1051_; +goto v___jp_1038_; +} +else +{ +lean_object* v___x_1055_; lean_object* v___f_1056_; uint8_t v___x_1057_; +v___x_1055_ = lean_box(v___x_1050_); +v___f_1056_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1056_, 0, v___x_1055_); +v___x_1057_ = lean_nat_dec_le(v___x_1049_, v___x_1049_); +if (v___x_1057_ == 0) +{ +if (v___x_1054_ == 0) +{ +lean_dec_ref(v___f_1056_); +lean_dec_ref(v_data_1046_); +v___y_1039_ = v___x_1051_; +goto v___jp_1038_; +} +else +{ +size_t v___x_1058_; size_t v___x_1059_; lean_object* v___x_1060_; +v___x_1058_ = ((size_t)0ULL); +v___x_1059_ = lean_usize_of_nat(v___x_1049_); +v___x_1060_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1053_, v___f_1056_, v_data_1046_, v___x_1058_, v___x_1059_, v___x_1051_); +v___y_1039_ = v___x_1060_; +goto v___jp_1038_; +} +} +else +{ +size_t v___x_1061_; size_t v___x_1062_; lean_object* v___x_1063_; +v___x_1061_ = ((size_t)0ULL); +v___x_1062_ = lean_usize_of_nat(v___x_1049_); +v___x_1063_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1053_, v___f_1056_, v_data_1046_, v___x_1061_, v___x_1062_, v___x_1051_); +v___y_1039_ = v___x_1063_; +goto v___jp_1038_; +} +} +} +else +{ +lean_object* v___x_1064_; lean_object* v___x_1065_; +lean_dec(v_size_1047_); +v___x_1064_ = lean_unsigned_to_nat(0u); +v___x_1065_ = lean_array_fget(v_data_1046_, v___x_1064_); +lean_dec_ref(v_data_1046_); +v___y_1039_ = v___x_1065_; +goto v___jp_1038_; +} +v___jp_1038_: +{ +lean_object* v___x_1040_; lean_object* v___x_1042_; +v___x_1040_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___closed__0)); +if (v_isShared_1037_ == 0) +{ +lean_ctor_set(v___x_1036_, 1, v___x_1040_); +v___x_1042_ = v___x_1036_; +goto v_reusejp_1041_; +} +else +{ +lean_object* v_reuseFailAlloc_1045_; +v_reuseFailAlloc_1045_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1045_, 0, v_userData_1026_); +lean_ctor_set(v_reuseFailAlloc_1045_, 1, v___x_1040_); +lean_ctor_set(v_reuseFailAlloc_1045_, 2, v_state_1028_); +lean_ctor_set(v_reuseFailAlloc_1045_, 3, v_knownSize_1029_); +lean_ctor_set(v_reuseFailAlloc_1045_, 4, v_messageHead_1030_); +lean_ctor_set(v_reuseFailAlloc_1045_, 5, v_userDataBytes_1034_); +lean_ctor_set_uint8(v_reuseFailAlloc_1045_, sizeof(void*)*6, v_sentMessage_1031_); +lean_ctor_set_uint8(v_reuseFailAlloc_1045_, sizeof(void*)*6 + 1, v_userClosedBody_1032_); +lean_ctor_set_uint8(v_reuseFailAlloc_1045_, sizeof(void*)*6 + 2, v_omitBody_1033_); +v___x_1042_ = v_reuseFailAlloc_1045_; +goto v_reusejp_1041_; +} +v_reusejp_1041_: +{ +lean_object* v___x_1043_; lean_object* v___x_1044_; +v___x_1043_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1043_, 0, v___x_1042_); +lean_ctor_set(v___x_1043_, 1, v___y_1039_); +v___x_1044_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1044_, 0, v___x_1043_); +return v___x_1044_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput(uint8_t v_dir_1067_, lean_object* v_writer_1068_){ +_start: +{ +lean_object* v_userData_1069_; lean_object* v_outputData_1070_; lean_object* v_state_1071_; lean_object* v_knownSize_1072_; lean_object* v_messageHead_1073_; uint8_t v_sentMessage_1074_; uint8_t v_userClosedBody_1075_; uint8_t v_omitBody_1076_; lean_object* v_userDataBytes_1077_; lean_object* v___x_1079_; uint8_t v_isShared_1080_; uint8_t v_isSharedCheck_1109_; +v_userData_1069_ = lean_ctor_get(v_writer_1068_, 0); +v_outputData_1070_ = lean_ctor_get(v_writer_1068_, 1); +v_state_1071_ = lean_ctor_get(v_writer_1068_, 2); +v_knownSize_1072_ = lean_ctor_get(v_writer_1068_, 3); +v_messageHead_1073_ = lean_ctor_get(v_writer_1068_, 4); +v_sentMessage_1074_ = lean_ctor_get_uint8(v_writer_1068_, sizeof(void*)*6); +v_userClosedBody_1075_ = lean_ctor_get_uint8(v_writer_1068_, sizeof(void*)*6 + 1); +v_omitBody_1076_ = lean_ctor_get_uint8(v_writer_1068_, sizeof(void*)*6 + 2); +v_userDataBytes_1077_ = lean_ctor_get(v_writer_1068_, 5); +v_isSharedCheck_1109_ = !lean_is_exclusive(v_writer_1068_); +if (v_isSharedCheck_1109_ == 0) +{ +v___x_1079_ = v_writer_1068_; +v_isShared_1080_ = v_isSharedCheck_1109_; +goto v_resetjp_1078_; +} +else +{ +lean_inc(v_userDataBytes_1077_); +lean_inc(v_messageHead_1073_); +lean_inc(v_knownSize_1072_); +lean_inc(v_state_1071_); +lean_inc(v_outputData_1070_); +lean_inc(v_userData_1069_); +lean_dec(v_writer_1068_); +v___x_1079_ = lean_box(0); +v_isShared_1080_ = v_isSharedCheck_1109_; +goto v_resetjp_1078_; +} +v_resetjp_1078_: +{ +lean_object* v___y_1082_; lean_object* v_data_1089_; lean_object* v_size_1090_; lean_object* v___x_1091_; lean_object* v___x_1092_; uint8_t v___x_1093_; +v_data_1089_ = lean_ctor_get(v_outputData_1070_, 0); +lean_inc_ref(v_data_1089_); +v_size_1090_ = lean_ctor_get(v_outputData_1070_, 1); +lean_inc(v_size_1090_); +lean_dec_ref(v_outputData_1070_); +v___x_1091_ = lean_unsigned_to_nat(1u); +v___x_1092_ = lean_array_get_size(v_data_1089_); +v___x_1093_ = lean_nat_dec_eq(v___x_1091_, v___x_1092_); +if (v___x_1093_ == 0) +{ +lean_object* v___x_1094_; lean_object* v___x_1095_; lean_object* v___x_1096_; uint8_t v___x_1097_; +v___x_1094_ = lean_mk_empty_byte_array(v_size_1090_); +lean_dec(v_size_1090_); +v___x_1095_ = lean_unsigned_to_nat(0u); +v___x_1096_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_addUserData___redArg___closed__10)); +v___x_1097_ = lean_nat_dec_lt(v___x_1095_, v___x_1092_); +if (v___x_1097_ == 0) +{ +lean_dec_ref(v_data_1089_); +v___y_1082_ = v___x_1094_; +goto v___jp_1081_; +} +else +{ +lean_object* v___x_1098_; lean_object* v___f_1099_; uint8_t v___x_1100_; +v___x_1098_ = lean_box(v___x_1093_); +v___f_1099_ = lean_alloc_closure((void*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1099_, 0, v___x_1098_); +v___x_1100_ = lean_nat_dec_le(v___x_1092_, v___x_1092_); +if (v___x_1100_ == 0) +{ +if (v___x_1097_ == 0) +{ +lean_dec_ref(v___f_1099_); +lean_dec_ref(v_data_1089_); +v___y_1082_ = v___x_1094_; +goto v___jp_1081_; +} +else +{ +size_t v___x_1101_; size_t v___x_1102_; lean_object* v___x_1103_; +v___x_1101_ = ((size_t)0ULL); +v___x_1102_ = lean_usize_of_nat(v___x_1092_); +v___x_1103_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1096_, v___f_1099_, v_data_1089_, v___x_1101_, v___x_1102_, v___x_1094_); +v___y_1082_ = v___x_1103_; +goto v___jp_1081_; +} +} +else +{ +size_t v___x_1104_; size_t v___x_1105_; lean_object* v___x_1106_; +v___x_1104_ = ((size_t)0ULL); +v___x_1105_ = lean_usize_of_nat(v___x_1092_); +v___x_1106_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1096_, v___f_1099_, v_data_1089_, v___x_1104_, v___x_1105_, v___x_1094_); +v___y_1082_ = v___x_1106_; +goto v___jp_1081_; +} +} +} +else +{ +lean_object* v___x_1107_; lean_object* v___x_1108_; +lean_dec(v_size_1090_); +v___x_1107_ = lean_unsigned_to_nat(0u); +v___x_1108_ = lean_array_fget(v_data_1089_, v___x_1107_); +lean_dec_ref(v_data_1089_); +v___y_1082_ = v___x_1108_; +goto v___jp_1081_; +} +v___jp_1081_: +{ +lean_object* v___x_1083_; lean_object* v___x_1085_; +v___x_1083_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_takeOutput___redArg___closed__0)); +if (v_isShared_1080_ == 0) +{ +lean_ctor_set(v___x_1079_, 1, v___x_1083_); +v___x_1085_ = v___x_1079_; +goto v_reusejp_1084_; +} +else +{ +lean_object* v_reuseFailAlloc_1088_; +v_reuseFailAlloc_1088_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1088_, 0, v_userData_1069_); +lean_ctor_set(v_reuseFailAlloc_1088_, 1, v___x_1083_); +lean_ctor_set(v_reuseFailAlloc_1088_, 2, v_state_1071_); +lean_ctor_set(v_reuseFailAlloc_1088_, 3, v_knownSize_1072_); +lean_ctor_set(v_reuseFailAlloc_1088_, 4, v_messageHead_1073_); +lean_ctor_set(v_reuseFailAlloc_1088_, 5, v_userDataBytes_1077_); +lean_ctor_set_uint8(v_reuseFailAlloc_1088_, sizeof(void*)*6, v_sentMessage_1074_); +lean_ctor_set_uint8(v_reuseFailAlloc_1088_, sizeof(void*)*6 + 1, v_userClosedBody_1075_); +lean_ctor_set_uint8(v_reuseFailAlloc_1088_, sizeof(void*)*6 + 2, v_omitBody_1076_); +v___x_1085_ = v_reuseFailAlloc_1088_; +goto v_reusejp_1084_; +} +v_reusejp_1084_: +{ +lean_object* v___x_1086_; lean_object* v___x_1087_; +v___x_1086_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1086_, 0, v___x_1085_); +lean_ctor_set(v___x_1086_, 1, v___y_1082_); +v___x_1087_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1087_, 0, v___x_1086_); +return v___x_1087_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_takeOutput___boxed(lean_object* v_dir_1110_, lean_object* v_writer_1111_){ +_start: +{ +uint8_t v_dir_boxed_1112_; lean_object* v_res_1113_; +v_dir_boxed_1112_ = lean_unbox(v_dir_1110_); +v_res_1113_ = l_Std_Http_Protocol_H1_Writer_takeOutput(v_dir_boxed_1112_, v_writer_1111_); +return v_res_1113_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState___redArg(lean_object* v_state_1114_, lean_object* v_writer_1115_){ +_start: +{ +lean_object* v_userData_1116_; lean_object* v_outputData_1117_; lean_object* v_knownSize_1118_; lean_object* v_messageHead_1119_; uint8_t v_sentMessage_1120_; uint8_t v_userClosedBody_1121_; uint8_t v_omitBody_1122_; lean_object* v_userDataBytes_1123_; lean_object* v___x_1125_; uint8_t v_isShared_1126_; uint8_t v_isSharedCheck_1130_; +v_userData_1116_ = lean_ctor_get(v_writer_1115_, 0); +v_outputData_1117_ = lean_ctor_get(v_writer_1115_, 1); +v_knownSize_1118_ = lean_ctor_get(v_writer_1115_, 3); +v_messageHead_1119_ = lean_ctor_get(v_writer_1115_, 4); +v_sentMessage_1120_ = lean_ctor_get_uint8(v_writer_1115_, sizeof(void*)*6); +v_userClosedBody_1121_ = lean_ctor_get_uint8(v_writer_1115_, sizeof(void*)*6 + 1); +v_omitBody_1122_ = lean_ctor_get_uint8(v_writer_1115_, sizeof(void*)*6 + 2); +v_userDataBytes_1123_ = lean_ctor_get(v_writer_1115_, 5); +v_isSharedCheck_1130_ = !lean_is_exclusive(v_writer_1115_); +if (v_isSharedCheck_1130_ == 0) +{ +lean_object* v_unused_1131_; +v_unused_1131_ = lean_ctor_get(v_writer_1115_, 2); +lean_dec(v_unused_1131_); +v___x_1125_ = v_writer_1115_; +v_isShared_1126_ = v_isSharedCheck_1130_; +goto v_resetjp_1124_; +} +else +{ +lean_inc(v_userDataBytes_1123_); +lean_inc(v_messageHead_1119_); +lean_inc(v_knownSize_1118_); +lean_inc(v_outputData_1117_); +lean_inc(v_userData_1116_); +lean_dec(v_writer_1115_); +v___x_1125_ = lean_box(0); +v_isShared_1126_ = v_isSharedCheck_1130_; +goto v_resetjp_1124_; +} +v_resetjp_1124_: +{ lean_object* v___x_1128_; -v___x_1128_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1125_, v_x_1126_); +if (v_isShared_1126_ == 0) +{ +lean_ctor_set(v___x_1125_, 2, v_state_1114_); +v___x_1128_ = v___x_1125_; +goto v_reusejp_1127_; +} +else +{ +lean_object* v_reuseFailAlloc_1129_; +v_reuseFailAlloc_1129_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1129_, 0, v_userData_1116_); +lean_ctor_set(v_reuseFailAlloc_1129_, 1, v_outputData_1117_); +lean_ctor_set(v_reuseFailAlloc_1129_, 2, v_state_1114_); +lean_ctor_set(v_reuseFailAlloc_1129_, 3, v_knownSize_1118_); +lean_ctor_set(v_reuseFailAlloc_1129_, 4, v_messageHead_1119_); +lean_ctor_set(v_reuseFailAlloc_1129_, 5, v_userDataBytes_1123_); +lean_ctor_set_uint8(v_reuseFailAlloc_1129_, sizeof(void*)*6, v_sentMessage_1120_); +lean_ctor_set_uint8(v_reuseFailAlloc_1129_, sizeof(void*)*6 + 1, v_userClosedBody_1121_); +lean_ctor_set_uint8(v_reuseFailAlloc_1129_, sizeof(void*)*6 + 2, v_omitBody_1122_); +v___x_1128_ = v_reuseFailAlloc_1129_; +goto v_reusejp_1127_; +} +v_reusejp_1127_: +{ return v___x_1128_; } } -LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___boxed(lean_object* v_00_u03b2_1129_, lean_object* v_a_1130_, lean_object* v_x_1131_, lean_object* v_x_1132_){ -_start: -{ -lean_object* v_res_1133_; -v_res_1133_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0(v_00_u03b2_1129_, v_a_1130_, v_x_1131_, v_x_1132_); -lean_dec(v_x_1131_); -lean_dec_ref(v_a_1130_); -return v_res_1133_; } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close___redArg(lean_object* v_writer_1134_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState(uint8_t v_dir_1132_, lean_object* v_state_1133_, lean_object* v_writer_1134_){ _start: { -lean_object* v_userData_1135_; lean_object* v_outputData_1136_; lean_object* v_knownSize_1137_; lean_object* v_messageHead_1138_; uint8_t v_sentMessage_1139_; uint8_t v_userClosedBody_1140_; uint8_t v_omitBody_1141_; lean_object* v_userDataBytes_1142_; lean_object* v___x_1144_; uint8_t v_isShared_1145_; uint8_t v_isSharedCheck_1150_; +lean_object* v_userData_1135_; lean_object* v_outputData_1136_; lean_object* v_knownSize_1137_; lean_object* v_messageHead_1138_; uint8_t v_sentMessage_1139_; uint8_t v_userClosedBody_1140_; uint8_t v_omitBody_1141_; lean_object* v_userDataBytes_1142_; lean_object* v___x_1144_; uint8_t v_isShared_1145_; uint8_t v_isSharedCheck_1149_; v_userData_1135_ = lean_ctor_get(v_writer_1134_, 0); v_outputData_1136_ = lean_ctor_get(v_writer_1134_, 1); v_knownSize_1137_ = lean_ctor_get(v_writer_1134_, 3); @@ -3874,14 +4053,14 @@ v_sentMessage_1139_ = lean_ctor_get_uint8(v_writer_1134_, sizeof(void*)*6); v_userClosedBody_1140_ = lean_ctor_get_uint8(v_writer_1134_, sizeof(void*)*6 + 1); v_omitBody_1141_ = lean_ctor_get_uint8(v_writer_1134_, sizeof(void*)*6 + 2); v_userDataBytes_1142_ = lean_ctor_get(v_writer_1134_, 5); -v_isSharedCheck_1150_ = !lean_is_exclusive(v_writer_1134_); -if (v_isSharedCheck_1150_ == 0) +v_isSharedCheck_1149_ = !lean_is_exclusive(v_writer_1134_); +if (v_isSharedCheck_1149_ == 0) { -lean_object* v_unused_1151_; -v_unused_1151_ = lean_ctor_get(v_writer_1134_, 2); -lean_dec(v_unused_1151_); +lean_object* v_unused_1150_; +v_unused_1150_ = lean_ctor_get(v_writer_1134_, 2); +lean_dec(v_unused_1150_); v___x_1144_ = v_writer_1134_; -v_isShared_1145_ = v_isSharedCheck_1150_; +v_isShared_1145_ = v_isSharedCheck_1149_; goto v_resetjp_1143_; } else @@ -3893,116 +4072,523 @@ lean_inc(v_outputData_1136_); lean_inc(v_userData_1135_); lean_dec(v_writer_1134_); v___x_1144_ = lean_box(0); -v_isShared_1145_ = v_isSharedCheck_1150_; +v_isShared_1145_ = v_isSharedCheck_1149_; goto v_resetjp_1143_; } v_resetjp_1143_: { -lean_object* v___x_1146_; lean_object* v___x_1148_; -v___x_1146_ = lean_box(5); +lean_object* v___x_1147_; if (v_isShared_1145_ == 0) { -lean_ctor_set(v___x_1144_, 2, v___x_1146_); -v___x_1148_ = v___x_1144_; -goto v_reusejp_1147_; +lean_ctor_set(v___x_1144_, 2, v_state_1133_); +v___x_1147_ = v___x_1144_; +goto v_reusejp_1146_; } else { -lean_object* v_reuseFailAlloc_1149_; -v_reuseFailAlloc_1149_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_1149_, 0, v_userData_1135_); -lean_ctor_set(v_reuseFailAlloc_1149_, 1, v_outputData_1136_); -lean_ctor_set(v_reuseFailAlloc_1149_, 2, v___x_1146_); -lean_ctor_set(v_reuseFailAlloc_1149_, 3, v_knownSize_1137_); -lean_ctor_set(v_reuseFailAlloc_1149_, 4, v_messageHead_1138_); -lean_ctor_set(v_reuseFailAlloc_1149_, 5, v_userDataBytes_1142_); -lean_ctor_set_uint8(v_reuseFailAlloc_1149_, sizeof(void*)*6, v_sentMessage_1139_); -lean_ctor_set_uint8(v_reuseFailAlloc_1149_, sizeof(void*)*6 + 1, v_userClosedBody_1140_); -lean_ctor_set_uint8(v_reuseFailAlloc_1149_, sizeof(void*)*6 + 2, v_omitBody_1141_); -v___x_1148_ = v_reuseFailAlloc_1149_; -goto v_reusejp_1147_; +lean_object* v_reuseFailAlloc_1148_; +v_reuseFailAlloc_1148_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1148_, 0, v_userData_1135_); +lean_ctor_set(v_reuseFailAlloc_1148_, 1, v_outputData_1136_); +lean_ctor_set(v_reuseFailAlloc_1148_, 2, v_state_1133_); +lean_ctor_set(v_reuseFailAlloc_1148_, 3, v_knownSize_1137_); +lean_ctor_set(v_reuseFailAlloc_1148_, 4, v_messageHead_1138_); +lean_ctor_set(v_reuseFailAlloc_1148_, 5, v_userDataBytes_1142_); +lean_ctor_set_uint8(v_reuseFailAlloc_1148_, sizeof(void*)*6, v_sentMessage_1139_); +lean_ctor_set_uint8(v_reuseFailAlloc_1148_, sizeof(void*)*6 + 1, v_userClosedBody_1140_); +lean_ctor_set_uint8(v_reuseFailAlloc_1148_, sizeof(void*)*6 + 2, v_omitBody_1141_); +v___x_1147_ = v_reuseFailAlloc_1148_; +goto v_reusejp_1146_; } -v_reusejp_1147_: +v_reusejp_1146_: { -return v___x_1148_; +return v___x_1147_; } } } } -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close(uint8_t v_dir_1152_, lean_object* v_writer_1153_){ +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_setState___boxed(lean_object* v_dir_1151_, lean_object* v_state_1152_, lean_object* v_writer_1153_){ _start: { -lean_object* v_userData_1154_; lean_object* v_outputData_1155_; lean_object* v_knownSize_1156_; lean_object* v_messageHead_1157_; uint8_t v_sentMessage_1158_; uint8_t v_userClosedBody_1159_; uint8_t v_omitBody_1160_; lean_object* v_userDataBytes_1161_; lean_object* v___x_1163_; uint8_t v_isShared_1164_; uint8_t v_isSharedCheck_1169_; -v_userData_1154_ = lean_ctor_get(v_writer_1153_, 0); -v_outputData_1155_ = lean_ctor_get(v_writer_1153_, 1); -v_knownSize_1156_ = lean_ctor_get(v_writer_1153_, 3); -v_messageHead_1157_ = lean_ctor_get(v_writer_1153_, 4); -v_sentMessage_1158_ = lean_ctor_get_uint8(v_writer_1153_, sizeof(void*)*6); -v_userClosedBody_1159_ = lean_ctor_get_uint8(v_writer_1153_, sizeof(void*)*6 + 1); -v_omitBody_1160_ = lean_ctor_get_uint8(v_writer_1153_, sizeof(void*)*6 + 2); -v_userDataBytes_1161_ = lean_ctor_get(v_writer_1153_, 5); -v_isSharedCheck_1169_ = !lean_is_exclusive(v_writer_1153_); -if (v_isSharedCheck_1169_ == 0) -{ -lean_object* v_unused_1170_; -v_unused_1170_ = lean_ctor_get(v_writer_1153_, 2); -lean_dec(v_unused_1170_); -v___x_1163_ = v_writer_1153_; -v_isShared_1164_ = v_isSharedCheck_1169_; -goto v_resetjp_1162_; -} -else -{ -lean_inc(v_userDataBytes_1161_); -lean_inc(v_messageHead_1157_); -lean_inc(v_knownSize_1156_); -lean_inc(v_outputData_1155_); -lean_inc(v_userData_1154_); -lean_dec(v_writer_1153_); -v___x_1163_ = lean_box(0); -v_isShared_1164_ = v_isSharedCheck_1169_; -goto v_resetjp_1162_; -} -v_resetjp_1162_: -{ -lean_object* v___x_1165_; lean_object* v___x_1167_; -v___x_1165_ = lean_box(5); -if (v_isShared_1164_ == 0) -{ -lean_ctor_set(v___x_1163_, 2, v___x_1165_); -v___x_1167_ = v___x_1163_; -goto v_reusejp_1166_; -} -else -{ -lean_object* v_reuseFailAlloc_1168_; -v_reuseFailAlloc_1168_ = lean_alloc_ctor(0, 6, 3); -lean_ctor_set(v_reuseFailAlloc_1168_, 0, v_userData_1154_); -lean_ctor_set(v_reuseFailAlloc_1168_, 1, v_outputData_1155_); -lean_ctor_set(v_reuseFailAlloc_1168_, 2, v___x_1165_); -lean_ctor_set(v_reuseFailAlloc_1168_, 3, v_knownSize_1156_); -lean_ctor_set(v_reuseFailAlloc_1168_, 4, v_messageHead_1157_); -lean_ctor_set(v_reuseFailAlloc_1168_, 5, v_userDataBytes_1161_); -lean_ctor_set_uint8(v_reuseFailAlloc_1168_, sizeof(void*)*6, v_sentMessage_1158_); -lean_ctor_set_uint8(v_reuseFailAlloc_1168_, sizeof(void*)*6 + 1, v_userClosedBody_1159_); -lean_ctor_set_uint8(v_reuseFailAlloc_1168_, sizeof(void*)*6 + 2, v_omitBody_1160_); -v___x_1167_ = v_reuseFailAlloc_1168_; -goto v_reusejp_1166_; -} -v_reusejp_1166_: -{ -return v___x_1167_; +uint8_t v_dir_boxed_1154_; lean_object* v_res_1155_; +v_dir_boxed_1154_ = lean_unbox(v_dir_1151_); +v_res_1155_ = l_Std_Http_Protocol_H1_Writer_setState(v_dir_boxed_1154_, v_state_1152_, v_writer_1153_); +return v_res_1155_; } } -} -} -LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close___boxed(lean_object* v_dir_1171_, lean_object* v_writer_1172_){ +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders(uint8_t v_dir_1156_, lean_object* v_messageHead_1157_, lean_object* v_writer_1158_){ _start: { -uint8_t v_dir_boxed_1173_; lean_object* v_res_1174_; -v_dir_boxed_1173_ = lean_unbox(v_dir_1171_); -v_res_1174_ = l_Std_Http_Protocol_H1_Writer_close(v_dir_boxed_1173_, v_writer_1172_); -return v_res_1174_; +lean_object* v_userData_1159_; lean_object* v_outputData_1160_; lean_object* v_state_1161_; lean_object* v_knownSize_1162_; lean_object* v_messageHead_1163_; uint8_t v_sentMessage_1164_; uint8_t v_userClosedBody_1165_; uint8_t v_omitBody_1166_; lean_object* v_userDataBytes_1167_; lean_object* v___x_1169_; uint8_t v_isShared_1170_; uint8_t v_isSharedCheck_1180_; +v_userData_1159_ = lean_ctor_get(v_writer_1158_, 0); +v_outputData_1160_ = lean_ctor_get(v_writer_1158_, 1); +v_state_1161_ = lean_ctor_get(v_writer_1158_, 2); +v_knownSize_1162_ = lean_ctor_get(v_writer_1158_, 3); +v_messageHead_1163_ = lean_ctor_get(v_writer_1158_, 4); +v_sentMessage_1164_ = lean_ctor_get_uint8(v_writer_1158_, sizeof(void*)*6); +v_userClosedBody_1165_ = lean_ctor_get_uint8(v_writer_1158_, sizeof(void*)*6 + 1); +v_omitBody_1166_ = lean_ctor_get_uint8(v_writer_1158_, sizeof(void*)*6 + 2); +v_userDataBytes_1167_ = lean_ctor_get(v_writer_1158_, 5); +v_isSharedCheck_1180_ = !lean_is_exclusive(v_writer_1158_); +if (v_isSharedCheck_1180_ == 0) +{ +v___x_1169_ = v_writer_1158_; +v_isShared_1170_ = v_isSharedCheck_1180_; +goto v_resetjp_1168_; +} +else +{ +lean_inc(v_userDataBytes_1167_); +lean_inc(v_messageHead_1163_); +lean_inc(v_knownSize_1162_); +lean_inc(v_state_1161_); +lean_inc(v_outputData_1160_); +lean_inc(v_userData_1159_); +lean_dec(v_writer_1158_); +v___x_1169_ = lean_box(0); +v_isShared_1170_ = v_isSharedCheck_1180_; +goto v_resetjp_1168_; +} +v_resetjp_1168_: +{ +uint8_t v___y_1172_; +if (v_dir_1156_ == 0) +{ +uint8_t v___x_1178_; +v___x_1178_ = 1; +v___y_1172_ = v___x_1178_; +goto v___jp_1171_; +} +else +{ +uint8_t v___x_1179_; +v___x_1179_ = 0; +v___y_1172_ = v___x_1179_; +goto v___jp_1171_; +} +v___jp_1171_: +{ +lean_object* v___x_6__overap_1173_; lean_object* v___x_1174_; lean_object* v___x_1176_; +v___x_6__overap_1173_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_1172_); +v___x_1174_ = lean_apply_2(v___x_6__overap_1173_, v_outputData_1160_, v_messageHead_1157_); +if (v_isShared_1170_ == 0) +{ +lean_ctor_set(v___x_1169_, 1, v___x_1174_); +v___x_1176_ = v___x_1169_; +goto v_reusejp_1175_; +} +else +{ +lean_object* v_reuseFailAlloc_1177_; +v_reuseFailAlloc_1177_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1177_, 0, v_userData_1159_); +lean_ctor_set(v_reuseFailAlloc_1177_, 1, v___x_1174_); +lean_ctor_set(v_reuseFailAlloc_1177_, 2, v_state_1161_); +lean_ctor_set(v_reuseFailAlloc_1177_, 3, v_knownSize_1162_); +lean_ctor_set(v_reuseFailAlloc_1177_, 4, v_messageHead_1163_); +lean_ctor_set(v_reuseFailAlloc_1177_, 5, v_userDataBytes_1167_); +lean_ctor_set_uint8(v_reuseFailAlloc_1177_, sizeof(void*)*6, v_sentMessage_1164_); +lean_ctor_set_uint8(v_reuseFailAlloc_1177_, sizeof(void*)*6 + 1, v_userClosedBody_1165_); +lean_ctor_set_uint8(v_reuseFailAlloc_1177_, sizeof(void*)*6 + 2, v_omitBody_1166_); +v___x_1176_ = v_reuseFailAlloc_1177_; +goto v_reusejp_1175_; +} +v_reusejp_1175_: +{ +return v___x_1176_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders___boxed(lean_object* v_dir_1181_, lean_object* v_messageHead_1182_, lean_object* v_writer_1183_){ +_start: +{ +uint8_t v_dir_boxed_1184_; lean_object* v_res_1185_; +v_dir_boxed_1184_ = lean_unbox(v_dir_1181_); +v_res_1185_ = l___private_Std_Internal_Http_Protocol_H1_Writer_0__Std_Http_Protocol_H1_Writer_writeHeaders(v_dir_boxed_1184_, v_messageHead_1182_, v_writer_1183_); +return v_res_1185_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(lean_object* v_a_1186_, lean_object* v_x_1187_){ +_start: +{ +lean_object* v_key_1188_; lean_object* v_value_1189_; lean_object* v_tail_1190_; uint8_t v___x_1191_; +v_key_1188_ = lean_ctor_get(v_x_1187_, 0); +v_value_1189_ = lean_ctor_get(v_x_1187_, 1); +v_tail_1190_ = lean_ctor_get(v_x_1187_, 2); +v___x_1191_ = lean_string_dec_eq(v_key_1188_, v_a_1186_); +if (v___x_1191_ == 0) +{ +v_x_1187_ = v_tail_1190_; +goto _start; +} +else +{ +lean_inc(v_value_1189_); +return v_value_1189_; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg___boxed(lean_object* v_a_1193_, lean_object* v_x_1194_){ +_start: +{ +lean_object* v_res_1195_; +v_res_1195_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1193_, v_x_1194_); +lean_dec(v_x_1194_); +lean_dec_ref(v_a_1193_); +return v_res_1195_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(lean_object* v_m_1196_, lean_object* v_a_1197_){ +_start: +{ +lean_object* v_buckets_1198_; lean_object* v___x_1199_; uint64_t v___x_1200_; uint64_t v___x_1201_; uint64_t v___x_1202_; uint64_t v_fold_1203_; uint64_t v___x_1204_; uint64_t v___x_1205_; uint64_t v___x_1206_; size_t v___x_1207_; size_t v___x_1208_; size_t v___x_1209_; size_t v___x_1210_; size_t v___x_1211_; lean_object* v___x_1212_; lean_object* v___x_1213_; +v_buckets_1198_ = lean_ctor_get(v_m_1196_, 1); +v___x_1199_ = lean_array_get_size(v_buckets_1198_); +v___x_1200_ = lean_string_hash(v_a_1197_); +v___x_1201_ = 32ULL; +v___x_1202_ = lean_uint64_shift_right(v___x_1200_, v___x_1201_); +v_fold_1203_ = lean_uint64_xor(v___x_1200_, v___x_1202_); +v___x_1204_ = 16ULL; +v___x_1205_ = lean_uint64_shift_right(v_fold_1203_, v___x_1204_); +v___x_1206_ = lean_uint64_xor(v_fold_1203_, v___x_1205_); +v___x_1207_ = lean_uint64_to_usize(v___x_1206_); +v___x_1208_ = lean_usize_of_nat(v___x_1199_); +v___x_1209_ = ((size_t)1ULL); +v___x_1210_ = lean_usize_sub(v___x_1208_, v___x_1209_); +v___x_1211_ = lean_usize_land(v___x_1207_, v___x_1210_); +v___x_1212_ = lean_array_uget_borrowed(v_buckets_1198_, v___x_1211_); +v___x_1213_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1197_, v___x_1212_); +return v___x_1213_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg___boxed(lean_object* v_m_1214_, lean_object* v_a_1215_){ +_start: +{ +lean_object* v_res_1216_; +v_res_1216_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_m_1214_, v_a_1215_); +lean_dec_ref(v_a_1215_); +lean_dec_ref(v_m_1214_); +return v_res_1216_; +} +} +LEAN_EXPORT lean_object* l_String_mapAux___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__1(lean_object* v_s_1217_, lean_object* v_p_1218_){ +_start: +{ +uint32_t v___y_1220_; lean_object* v___x_1225_; uint8_t v___x_1226_; +v___x_1225_ = lean_string_utf8_byte_size(v_s_1217_); +v___x_1226_ = lean_nat_dec_eq(v_p_1218_, v___x_1225_); +if (v___x_1226_ == 0) +{ +uint32_t v___x_1227_; uint32_t v___x_1228_; uint8_t v___x_1229_; +v___x_1227_ = lean_string_utf8_get_fast(v_s_1217_, v_p_1218_); +v___x_1228_ = 65; +v___x_1229_ = lean_uint32_dec_le(v___x_1228_, v___x_1227_); +if (v___x_1229_ == 0) +{ +v___y_1220_ = v___x_1227_; +goto v___jp_1219_; +} +else +{ +uint32_t v___x_1230_; uint8_t v___x_1231_; +v___x_1230_ = 90; +v___x_1231_ = lean_uint32_dec_le(v___x_1227_, v___x_1230_); +if (v___x_1231_ == 0) +{ +v___y_1220_ = v___x_1227_; +goto v___jp_1219_; +} +else +{ +uint32_t v___x_1232_; uint32_t v___x_1233_; +v___x_1232_ = 32; +v___x_1233_ = lean_uint32_add(v___x_1227_, v___x_1232_); +v___y_1220_ = v___x_1233_; +goto v___jp_1219_; +} +} +} +else +{ +lean_dec(v_p_1218_); +return v_s_1217_; +} +v___jp_1219_: +{ +lean_object* v___x_1221_; lean_object* v___x_1222_; lean_object* v___x_1223_; +lean_inc(v_p_1218_); +v___x_1221_ = lean_string_utf8_set(v_s_1217_, v_p_1218_, v___y_1220_); +v___x_1222_ = l_Char_utf8Size(v___y_1220_); +v___x_1223_ = lean_nat_add(v_p_1218_, v___x_1222_); +lean_dec(v___x_1222_); +lean_dec(v_p_1218_); +v_s_1217_ = v___x_1221_; +v_p_1218_ = v___x_1223_; +goto _start; +} +} +} +LEAN_EXPORT uint8_t l_Std_Http_Protocol_H1_Writer_shouldKeepAlive(uint8_t v_dir_1237_, lean_object* v_writer_1238_){ +_start: +{ +uint8_t v___y_1240_; +if (v_dir_1237_ == 0) +{ +uint8_t v___x_1259_; +v___x_1259_ = 1; +v___y_1240_ = v___x_1259_; +goto v___jp_1239_; +} +else +{ +uint8_t v___x_1260_; +v___x_1260_ = 0; +v___y_1240_ = v___x_1260_; +goto v___jp_1239_; +} +v___jp_1239_: +{ +lean_object* v_messageHead_1241_; lean_object* v___x_1242_; lean_object* v___x_1243_; lean_object* v___f_1244_; lean_object* v___f_1245_; uint8_t v___x_1246_; +v_messageHead_1241_ = lean_ctor_get(v_writer_1238_, 4); +v___x_1242_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___y_1240_, v_messageHead_1241_); +v___x_1243_ = l_Std_Http_Header_Name_connection; +v___f_1244_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__0)); +v___f_1245_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__1)); +v___x_1246_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1244_, v___f_1245_, v___x_1243_, v___x_1242_); +if (v___x_1246_ == 0) +{ +uint8_t v___x_1247_; +lean_dec_ref(v___x_1242_); +v___x_1247_ = 1; +return v___x_1247_; +} +else +{ +lean_object* v_entries_1248_; lean_object* v_indexes_1249_; lean_object* v___x_1250_; lean_object* v___x_1251_; lean_object* v_entry_1252_; lean_object* v___x_1253_; lean_object* v_snd_1254_; lean_object* v___x_1255_; lean_object* v___x_1256_; uint8_t v___x_1257_; +v_entries_1248_ = lean_ctor_get(v___x_1242_, 0); +lean_inc_ref(v_entries_1248_); +v_indexes_1249_ = lean_ctor_get(v___x_1242_, 1); +lean_inc_ref(v_indexes_1249_); +lean_dec_ref(v___x_1242_); +v___x_1250_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_indexes_1249_, v___x_1243_); +lean_dec_ref(v_indexes_1249_); +v___x_1251_ = lean_unsigned_to_nat(0u); +v_entry_1252_ = lean_array_fget(v___x_1250_, v___x_1251_); +lean_dec(v___x_1250_); +v___x_1253_ = lean_array_fget(v_entries_1248_, v_entry_1252_); +lean_dec(v_entry_1252_); +lean_dec_ref(v_entries_1248_); +v_snd_1254_ = lean_ctor_get(v___x_1253_, 1); +lean_inc(v_snd_1254_); +lean_dec(v___x_1253_); +v___x_1255_ = l_String_mapAux___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__1(v_snd_1254_, v___x_1251_); +v___x_1256_ = ((lean_object*)(l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___closed__2)); +v___x_1257_ = lean_string_dec_eq(v___x_1255_, v___x_1256_); +lean_dec_ref(v___x_1255_); +if (v___x_1257_ == 0) +{ +return v___x_1246_; +} +else +{ +uint8_t v___x_1258_; +v___x_1258_ = 0; +return v___x_1258_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_shouldKeepAlive___boxed(lean_object* v_dir_1261_, lean_object* v_writer_1262_){ +_start: +{ +uint8_t v_dir_boxed_1263_; uint8_t v_res_1264_; lean_object* v_r_1265_; +v_dir_boxed_1263_ = lean_unbox(v_dir_1261_); +v_res_1264_ = l_Std_Http_Protocol_H1_Writer_shouldKeepAlive(v_dir_boxed_1263_, v_writer_1262_); +lean_dec_ref(v_writer_1262_); +v_r_1265_ = lean_box(v_res_1264_); +return v_r_1265_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0(lean_object* v_00_u03b2_1266_, lean_object* v_m_1267_, lean_object* v_a_1268_, lean_object* v_hma_1269_){ +_start: +{ +lean_object* v___x_1270_; +v___x_1270_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___redArg(v_m_1267_, v_a_1268_); +return v___x_1270_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0___boxed(lean_object* v_00_u03b2_1271_, lean_object* v_m_1272_, lean_object* v_a_1273_, lean_object* v_hma_1274_){ +_start: +{ +lean_object* v_res_1275_; +v_res_1275_ = l_Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0(v_00_u03b2_1271_, v_m_1272_, v_a_1273_, v_hma_1274_); +lean_dec_ref(v_a_1273_); +lean_dec_ref(v_m_1272_); +return v_res_1275_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0(lean_object* v_00_u03b2_1276_, lean_object* v_a_1277_, lean_object* v_x_1278_, lean_object* v_x_1279_){ +_start: +{ +lean_object* v___x_1280_; +v___x_1280_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___redArg(v_a_1277_, v_x_1278_); +return v___x_1280_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0___boxed(lean_object* v_00_u03b2_1281_, lean_object* v_a_1282_, lean_object* v_x_1283_, lean_object* v_x_1284_){ +_start: +{ +lean_object* v_res_1285_; +v_res_1285_ = l_Std_DHashMap_Internal_AssocList_get___at___00Std_DHashMap_Internal_Raw_u2080_Const_get___at___00Std_Http_Protocol_H1_Writer_shouldKeepAlive_spec__0_spec__0(v_00_u03b2_1281_, v_a_1282_, v_x_1283_, v_x_1284_); +lean_dec(v_x_1283_); +lean_dec_ref(v_a_1282_); +return v_res_1285_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close___redArg(lean_object* v_writer_1286_){ +_start: +{ +lean_object* v_userData_1287_; lean_object* v_outputData_1288_; lean_object* v_knownSize_1289_; lean_object* v_messageHead_1290_; uint8_t v_sentMessage_1291_; uint8_t v_userClosedBody_1292_; uint8_t v_omitBody_1293_; lean_object* v_userDataBytes_1294_; lean_object* v___x_1296_; uint8_t v_isShared_1297_; uint8_t v_isSharedCheck_1302_; +v_userData_1287_ = lean_ctor_get(v_writer_1286_, 0); +v_outputData_1288_ = lean_ctor_get(v_writer_1286_, 1); +v_knownSize_1289_ = lean_ctor_get(v_writer_1286_, 3); +v_messageHead_1290_ = lean_ctor_get(v_writer_1286_, 4); +v_sentMessage_1291_ = lean_ctor_get_uint8(v_writer_1286_, sizeof(void*)*6); +v_userClosedBody_1292_ = lean_ctor_get_uint8(v_writer_1286_, sizeof(void*)*6 + 1); +v_omitBody_1293_ = lean_ctor_get_uint8(v_writer_1286_, sizeof(void*)*6 + 2); +v_userDataBytes_1294_ = lean_ctor_get(v_writer_1286_, 5); +v_isSharedCheck_1302_ = !lean_is_exclusive(v_writer_1286_); +if (v_isSharedCheck_1302_ == 0) +{ +lean_object* v_unused_1303_; +v_unused_1303_ = lean_ctor_get(v_writer_1286_, 2); +lean_dec(v_unused_1303_); +v___x_1296_ = v_writer_1286_; +v_isShared_1297_ = v_isSharedCheck_1302_; +goto v_resetjp_1295_; +} +else +{ +lean_inc(v_userDataBytes_1294_); +lean_inc(v_messageHead_1290_); +lean_inc(v_knownSize_1289_); +lean_inc(v_outputData_1288_); +lean_inc(v_userData_1287_); +lean_dec(v_writer_1286_); +v___x_1296_ = lean_box(0); +v_isShared_1297_ = v_isSharedCheck_1302_; +goto v_resetjp_1295_; +} +v_resetjp_1295_: +{ +lean_object* v___x_1298_; lean_object* v___x_1300_; +v___x_1298_ = lean_box(7); +if (v_isShared_1297_ == 0) +{ +lean_ctor_set(v___x_1296_, 2, v___x_1298_); +v___x_1300_ = v___x_1296_; +goto v_reusejp_1299_; +} +else +{ +lean_object* v_reuseFailAlloc_1301_; +v_reuseFailAlloc_1301_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1301_, 0, v_userData_1287_); +lean_ctor_set(v_reuseFailAlloc_1301_, 1, v_outputData_1288_); +lean_ctor_set(v_reuseFailAlloc_1301_, 2, v___x_1298_); +lean_ctor_set(v_reuseFailAlloc_1301_, 3, v_knownSize_1289_); +lean_ctor_set(v_reuseFailAlloc_1301_, 4, v_messageHead_1290_); +lean_ctor_set(v_reuseFailAlloc_1301_, 5, v_userDataBytes_1294_); +lean_ctor_set_uint8(v_reuseFailAlloc_1301_, sizeof(void*)*6, v_sentMessage_1291_); +lean_ctor_set_uint8(v_reuseFailAlloc_1301_, sizeof(void*)*6 + 1, v_userClosedBody_1292_); +lean_ctor_set_uint8(v_reuseFailAlloc_1301_, sizeof(void*)*6 + 2, v_omitBody_1293_); +v___x_1300_ = v_reuseFailAlloc_1301_; +goto v_reusejp_1299_; +} +v_reusejp_1299_: +{ +return v___x_1300_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close(uint8_t v_dir_1304_, lean_object* v_writer_1305_){ +_start: +{ +lean_object* v_userData_1306_; lean_object* v_outputData_1307_; lean_object* v_knownSize_1308_; lean_object* v_messageHead_1309_; uint8_t v_sentMessage_1310_; uint8_t v_userClosedBody_1311_; uint8_t v_omitBody_1312_; lean_object* v_userDataBytes_1313_; lean_object* v___x_1315_; uint8_t v_isShared_1316_; uint8_t v_isSharedCheck_1321_; +v_userData_1306_ = lean_ctor_get(v_writer_1305_, 0); +v_outputData_1307_ = lean_ctor_get(v_writer_1305_, 1); +v_knownSize_1308_ = lean_ctor_get(v_writer_1305_, 3); +v_messageHead_1309_ = lean_ctor_get(v_writer_1305_, 4); +v_sentMessage_1310_ = lean_ctor_get_uint8(v_writer_1305_, sizeof(void*)*6); +v_userClosedBody_1311_ = lean_ctor_get_uint8(v_writer_1305_, sizeof(void*)*6 + 1); +v_omitBody_1312_ = lean_ctor_get_uint8(v_writer_1305_, sizeof(void*)*6 + 2); +v_userDataBytes_1313_ = lean_ctor_get(v_writer_1305_, 5); +v_isSharedCheck_1321_ = !lean_is_exclusive(v_writer_1305_); +if (v_isSharedCheck_1321_ == 0) +{ +lean_object* v_unused_1322_; +v_unused_1322_ = lean_ctor_get(v_writer_1305_, 2); +lean_dec(v_unused_1322_); +v___x_1315_ = v_writer_1305_; +v_isShared_1316_ = v_isSharedCheck_1321_; +goto v_resetjp_1314_; +} +else +{ +lean_inc(v_userDataBytes_1313_); +lean_inc(v_messageHead_1309_); +lean_inc(v_knownSize_1308_); +lean_inc(v_outputData_1307_); +lean_inc(v_userData_1306_); +lean_dec(v_writer_1305_); +v___x_1315_ = lean_box(0); +v_isShared_1316_ = v_isSharedCheck_1321_; +goto v_resetjp_1314_; +} +v_resetjp_1314_: +{ +lean_object* v___x_1317_; lean_object* v___x_1319_; +v___x_1317_ = lean_box(7); +if (v_isShared_1316_ == 0) +{ +lean_ctor_set(v___x_1315_, 2, v___x_1317_); +v___x_1319_ = v___x_1315_; +goto v_reusejp_1318_; +} +else +{ +lean_object* v_reuseFailAlloc_1320_; +v_reuseFailAlloc_1320_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1320_, 0, v_userData_1306_); +lean_ctor_set(v_reuseFailAlloc_1320_, 1, v_outputData_1307_); +lean_ctor_set(v_reuseFailAlloc_1320_, 2, v___x_1317_); +lean_ctor_set(v_reuseFailAlloc_1320_, 3, v_knownSize_1308_); +lean_ctor_set(v_reuseFailAlloc_1320_, 4, v_messageHead_1309_); +lean_ctor_set(v_reuseFailAlloc_1320_, 5, v_userDataBytes_1313_); +lean_ctor_set_uint8(v_reuseFailAlloc_1320_, sizeof(void*)*6, v_sentMessage_1310_); +lean_ctor_set_uint8(v_reuseFailAlloc_1320_, sizeof(void*)*6 + 1, v_userClosedBody_1311_); +lean_ctor_set_uint8(v_reuseFailAlloc_1320_, sizeof(void*)*6 + 2, v_omitBody_1312_); +v___x_1319_ = v_reuseFailAlloc_1320_; +goto v_reusejp_1318_; +} +v_reusejp_1318_: +{ +return v___x_1319_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Protocol_H1_Writer_close___boxed(lean_object* v_dir_1323_, lean_object* v_writer_1324_){ +_start: +{ +uint8_t v_dir_boxed_1325_; lean_object* v_res_1326_; +v_dir_boxed_1325_ = lean_unbox(v_dir_1323_); +v_res_1326_ = l_Std_Http_Protocol_H1_Writer_close(v_dir_boxed_1325_, v_writer_1324_); +return v_res_1326_; } } lean_object* runtime_initialize_Std_Time(uint8_t builtin); diff --git a/stage0/stdlib/Std/Internal/Http/Server.c b/stage0/stdlib/Std/Internal/Http/Server.c new file mode 100644 index 0000000000..1fded62bdf --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Server.c @@ -0,0 +1,4929 @@ +// Lean compiler output +// Module: Std.Internal.Http.Server +// Imports: public import Std.Internal.Async public import Std.Internal.Async.TCP public import Std.Sync.CancellationToken public import Std.Sync.Semaphore public import Std.Internal.Http.Server.Config public import Std.Internal.Http.Server.Handler public import Std.Internal.Http.Server.Connection +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_StateRefT_x27_instMonad___aux__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Mutex_atomically___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Semaphore_release(lean_object*); +lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Std_CancellationToken_selector(lean_object*); +extern lean_object* l_Std_Internal_IO_Async_ContextAsync_instMonad; +uint8_t l_Std_CancellationToken_isCancelled(lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Std_Channel_send___redArg(lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*); +extern lean_object* l_Std_Http_instTransportClient; +lean_object* l_Std_CancellationContext_cancel(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_ContextAsync_instMonadLiftBaseIO___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_instMonadLiftT___lam__0___boxed(lean_object*, lean_object*); +lean_object* l_instMonadLiftTOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_ContextAsync_instMonadFinally___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Http_Server_serveConnection___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Except_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_as_task(lean_object*, lean_object*); +lean_object* l_Std_CancellationContext_fork(lean_object*); +extern lean_object* l_Std_Http_Extensions_empty; +extern lean_object* l_Std_Http_Server_instImpl_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_; +lean_object* l_Std_Http_Extensions_compareName___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Dynamic_0__Dynamic_typeNameImpl(lean_object*); +lean_object* l_Std_DTreeMap_Internal_Impl_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_uv_tcp_getpeername(lean_object*); +lean_object* l_Std_Internal_IO_Async_TCP_Socket_Server_acceptSelector(lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_object*); +lean_object* l_Std_Semaphore_acquire(lean_object*); +lean_object* l_IO_Promise_result_x21___redArg(lean_object*); +lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_uv_tcp_nodelay(lean_object*); +lean_object* lean_uv_tcp_listen(lean_object*, uint32_t); +lean_object* lean_uv_tcp_bind(lean_object*, lean_object*); +lean_object* lean_uv_tcp_new(); +lean_object* l_Std_CancellationContext_new(); +lean_object* l_Std_Mutex_new___redArg(lean_object*); +lean_object* l_Std_CloseableChannel_new___redArg(lean_object*); +lean_object* l_Std_Semaphore_new(lean_object*); +lean_object* l_Std_Channel_recv___redArg(lean_object*, lean_object*); +lean_object* l_Std_Channel_recvSelector___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_new(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_new___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdown(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdown___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Server_waitShutdown___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_waitShutdown___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_waitShutdown___closed__0 = (const lean_object*)&l_Std_Http_Server_waitShutdown___closed__0_value; +static const lean_closure_object l_Std_Http_Server_waitShutdown___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_waitShutdown___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Server_waitShutdown___closed__0_value)} }; +static const lean_object* l_Std_Http_Server_waitShutdown___closed__1 = (const lean_object*)&l_Std_Http_Server_waitShutdown___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdownSelector(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___lam__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6___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_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_ContextAsync_instMonadLiftBaseIO___lam__0___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftT___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftTOfMonadLift___redArg___lam__0, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__2_value),((lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__1_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_ContextAsync_instMonadFinally___lam__1___boxed, .m_arity = 6, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__6 = (const lean_object*)&l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__6_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__2(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__2___boxed(lean_object*); +static const lean_ctor_object l_Std_Http_Server_serve___redArg___lam__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Server_serve___redArg___lam__3___closed__0 = (const lean_object*)&l_Std_Http_Server_serve___redArg___lam__3___closed__0_value; +static const lean_ctor_object l_Std_Http_Server_serve___redArg___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Server_serve___redArg___lam__3___closed__0_value)}}; +static const lean_object* l_Std_Http_Server_serve___redArg___lam__3___closed__1 = (const lean_object*)&l_Std_Http_Server_serve___redArg___lam__3___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__3(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__4(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__7(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__8(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__9(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__10(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__12(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__11(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__14___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__15___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__16(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__17___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__18(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Std_Http_Server_serve___redArg___lam__20___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serve___redArg___lam__20___closed__0; +static lean_once_cell_t l_Std_Http_Server_serve___redArg___lam__20___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serve___redArg___lam__20___closed__1; +static const lean_closure_object l_Std_Http_Server_serve___redArg___lam__20___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Extensions_compareName___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___lam__20___closed__2 = (const lean_object*)&l_Std_Http_Server_serve___redArg___lam__20___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__20(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__19(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__19___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__21(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__22(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__22___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__23(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__24(uint8_t, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__25(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__27(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__26(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Server_serve___redArg___lam__28___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__8___boxed, .m_arity = 4, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l_Std_Http_Server_serve___redArg___lam__28___closed__0 = (const lean_object*)&l_Std_Http_Server_serve___redArg___lam__28___closed__0_value; +static const lean_closure_object l_Std_Http_Server_serve___redArg___lam__28___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__5___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l_Std_Http_Server_serve___redArg___lam__28___closed__1 = (const lean_object*)&l_Std_Http_Server_serve___redArg___lam__28___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__28___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__29(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__29___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__30(lean_object*, lean_object*, uint32_t, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__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_object*, lean_object*, uint32_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__31___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__32(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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 const lean_closure_object l_Std_Http_Server_serve___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___closed__0 = (const lean_object*)&l_Std_Http_Server_serve___redArg___closed__0_value; +static const lean_closure_object l_Std_Http_Server_serve___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__2___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___closed__1 = (const lean_object*)&l_Std_Http_Server_serve___redArg___closed__1_value; +static const lean_closure_object l_Std_Http_Server_serve___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__3___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___closed__2 = (const lean_object*)&l_Std_Http_Server_serve___redArg___closed__2_value; +static const lean_closure_object l_Std_Http_Server_serve___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___closed__3 = (const lean_object*)&l_Std_Http_Server_serve___redArg___closed__3_value; +static const lean_closure_object l_Std_Http_Server_serve___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_serve___redArg___lam__4___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_serve___redArg___closed__4 = (const lean_object*)&l_Std_Http_Server_serve___redArg___closed__4_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint32_t); +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_new(lean_object* v_config_1_){ +_start: +{ +lean_object* v___x_3_; lean_object* v___x_4_; lean_object* v___x_5_; lean_object* v_connectionLimit_7_; lean_object* v_maxConnections_12_; uint8_t v___x_13_; +v___x_3_ = l_Std_CancellationContext_new(); +v___x_4_ = lean_unsigned_to_nat(0u); +v___x_5_ = l_Std_Mutex_new___redArg(v___x_4_); +v_maxConnections_12_ = lean_ctor_get(v_config_1_, 0); +v___x_13_ = lean_nat_dec_eq(v_maxConnections_12_, v___x_4_); +if (v___x_13_ == 0) +{ +lean_object* v___x_14_; lean_object* v___x_15_; +lean_inc(v_maxConnections_12_); +v___x_14_ = l_Std_Semaphore_new(v_maxConnections_12_); +v___x_15_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_15_, 0, v___x_14_); +v_connectionLimit_7_ = v___x_15_; +goto v___jp_6_; +} +else +{ +lean_object* v___x_16_; +v___x_16_ = lean_box(0); +v_connectionLimit_7_ = v___x_16_; +goto v___jp_6_; +} +v___jp_6_: +{ +lean_object* v___x_8_; lean_object* v___x_9_; lean_object* v___x_10_; lean_object* v___x_11_; +v___x_8_ = lean_box(0); +v___x_9_ = l_Std_CloseableChannel_new___redArg(v___x_8_); +v___x_10_ = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(v___x_10_, 0, v___x_3_); +lean_ctor_set(v___x_10_, 1, v___x_5_); +lean_ctor_set(v___x_10_, 2, v_connectionLimit_7_); +lean_ctor_set(v___x_10_, 3, v___x_9_); +lean_ctor_set(v___x_10_, 4, v_config_1_); +v___x_11_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_11_, 0, v___x_10_); +return v___x_11_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_new___boxed(lean_object* v_config_17_, lean_object* v_a_18_){ +_start: +{ +lean_object* v_res_19_; +v_res_19_ = l_Std_Http_Server_new(v_config_17_); +return v_res_19_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdown(lean_object* v_s_20_){ +_start: +{ +lean_object* v_context_22_; lean_object* v___x_23_; lean_object* v___x_24_; lean_object* v___x_25_; lean_object* v___x_26_; +v_context_22_ = lean_ctor_get(v_s_20_, 0); +lean_inc_ref(v_context_22_); +lean_dec_ref(v_s_20_); +v___x_23_ = lean_box(1); +v___x_24_ = l_Std_CancellationContext_cancel(v_context_22_, v___x_23_); +v___x_25_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_25_, 0, v___x_24_); +v___x_26_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_26_, 0, v___x_25_); +return v___x_26_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdown___boxed(lean_object* v_s_27_, lean_object* v_a_28_){ +_start: +{ +lean_object* v_res_29_; +v_res_29_ = l_Std_Http_Server_shutdown(v_s_27_); +return v_res_29_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__0(lean_object* v_a_30_){ +_start: +{ +lean_object* v___x_31_; +v___x_31_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_31_, 0, v_a_30_); +return v___x_31_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__1(lean_object* v___f_32_, lean_object* v_x_33_){ +_start: +{ +if (lean_obj_tag(v_x_33_) == 0) +{ +lean_object* v_a_35_; lean_object* v___x_37_; uint8_t v_isShared_38_; uint8_t v_isSharedCheck_43_; +lean_dec_ref(v___f_32_); +v_a_35_ = lean_ctor_get(v_x_33_, 0); +v_isSharedCheck_43_ = !lean_is_exclusive(v_x_33_); +if (v_isSharedCheck_43_ == 0) +{ +v___x_37_ = v_x_33_; +v_isShared_38_ = v_isSharedCheck_43_; +goto v_resetjp_36_; +} +else +{ +lean_inc(v_a_35_); +lean_dec(v_x_33_); +v___x_37_ = lean_box(0); +v_isShared_38_ = v_isSharedCheck_43_; +goto v_resetjp_36_; +} +v_resetjp_36_: +{ +lean_object* v___x_40_; +if (v_isShared_38_ == 0) +{ +v___x_40_ = v___x_37_; +goto v_reusejp_39_; +} +else +{ +lean_object* v_reuseFailAlloc_42_; +v_reuseFailAlloc_42_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_42_, 0, v_a_35_); +v___x_40_ = v_reuseFailAlloc_42_; +goto v_reusejp_39_; +} +v_reusejp_39_: +{ +lean_object* v___x_41_; +v___x_41_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_41_, 0, v___x_40_); +return v___x_41_; +} +} +} +else +{ +lean_object* v_a_44_; lean_object* v___x_45_; uint8_t v___x_46_; lean_object* v___x_47_; lean_object* v___x_48_; +v_a_44_ = lean_ctor_get(v_x_33_, 0); +lean_inc(v_a_44_); +lean_dec_ref(v_x_33_); +v___x_45_ = lean_unsigned_to_nat(0u); +v___x_46_ = 0; +v___x_47_ = lean_task_map(v___f_32_, v_a_44_, v___x_45_, v___x_46_); +v___x_48_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_48_, 0, v___x_47_); +return v___x_48_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___lam__1___boxed(lean_object* v___f_49_, lean_object* v_x_50_, lean_object* v___y_51_){ +_start: +{ +lean_object* v_res_52_; +v_res_52_ = l_Std_Http_Server_waitShutdown___lam__1(v___f_49_, v_x_50_); +return v_res_52_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown(lean_object* v_s_56_){ +_start: +{ +lean_object* v_shutdownPromise_58_; lean_object* v___x_59_; lean_object* v___x_60_; lean_object* v___f_61_; lean_object* v___x_62_; lean_object* v___x_63_; lean_object* v___x_64_; uint8_t v___x_65_; lean_object* v___x_66_; +v_shutdownPromise_58_ = lean_ctor_get(v_s_56_, 3); +lean_inc_ref(v_shutdownPromise_58_); +lean_dec_ref(v_s_56_); +v___x_59_ = lean_box(0); +v___x_60_ = l_Std_Channel_recv___redArg(v___x_59_, v_shutdownPromise_58_); +v___f_61_ = ((lean_object*)(l_Std_Http_Server_waitShutdown___closed__1)); +v___x_62_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_62_, 0, v___x_60_); +v___x_63_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_63_, 0, v___x_62_); +v___x_64_ = lean_unsigned_to_nat(0u); +v___x_65_ = 0; +v___x_66_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_64_, v___x_65_, v___x_63_, v___f_61_); +return v___x_66_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdown___boxed(lean_object* v_s_67_, lean_object* v_a_68_){ +_start: +{ +lean_object* v_res_69_; +v_res_69_ = l_Std_Http_Server_waitShutdown(v_s_67_); +return v_res_69_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_waitShutdownSelector(lean_object* v_s_70_){ +_start: +{ +lean_object* v_shutdownPromise_71_; lean_object* v___x_72_; lean_object* v___x_73_; +v_shutdownPromise_71_ = lean_ctor_get(v_s_70_, 3); +lean_inc_ref(v_shutdownPromise_71_); +lean_dec_ref(v_s_70_); +v___x_72_ = lean_box(0); +v___x_73_ = l_Std_Channel_recvSelector___redArg(v___x_72_, v_shutdownPromise_71_); +return v___x_73_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___lam__2(lean_object* v_shutdownPromise_74_, lean_object* v___f_75_, lean_object* v_x_76_){ +_start: +{ +if (lean_obj_tag(v_x_76_) == 0) +{ +lean_object* v___x_78_; +lean_dec_ref(v___f_75_); +lean_dec_ref(v_shutdownPromise_74_); +v___x_78_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_78_, 0, v_x_76_); +return v___x_78_; +} +else +{ +lean_object* v___x_80_; uint8_t v_isShared_81_; uint8_t v_isSharedCheck_91_; +v_isSharedCheck_91_ = !lean_is_exclusive(v_x_76_); +if (v_isSharedCheck_91_ == 0) +{ +lean_object* v_unused_92_; +v_unused_92_ = lean_ctor_get(v_x_76_, 0); +lean_dec(v_unused_92_); +v___x_80_ = v_x_76_; +v_isShared_81_ = v_isSharedCheck_91_; +goto v_resetjp_79_; +} +else +{ +lean_dec(v_x_76_); +v___x_80_ = lean_box(0); +v_isShared_81_ = v_isSharedCheck_91_; +goto v_resetjp_79_; +} +v_resetjp_79_: +{ +lean_object* v___x_82_; lean_object* v___x_83_; lean_object* v___x_85_; +v___x_82_ = lean_box(0); +v___x_83_ = l_Std_Channel_recv___redArg(v___x_82_, v_shutdownPromise_74_); +if (v_isShared_81_ == 0) +{ +lean_ctor_set(v___x_80_, 0, v___x_83_); +v___x_85_ = v___x_80_; +goto v_reusejp_84_; +} +else +{ +lean_object* v_reuseFailAlloc_90_; +v_reuseFailAlloc_90_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_90_, 0, v___x_83_); +v___x_85_ = v_reuseFailAlloc_90_; +goto v_reusejp_84_; +} +v_reusejp_84_: +{ +lean_object* v___x_86_; lean_object* v___x_87_; uint8_t v___x_88_; lean_object* v___x_89_; +v___x_86_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_86_, 0, v___x_85_); +v___x_87_ = lean_unsigned_to_nat(0u); +v___x_88_ = 0; +v___x_89_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_87_, v___x_88_, v___x_86_, v___f_75_); +return v___x_89_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___lam__2___boxed(lean_object* v_shutdownPromise_93_, lean_object* v___f_94_, lean_object* v_x_95_, lean_object* v___y_96_){ +_start: +{ +lean_object* v_res_97_; +v_res_97_ = l_Std_Http_Server_shutdownAndWait___lam__2(v_shutdownPromise_93_, v___f_94_, v_x_95_); +return v_res_97_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait(lean_object* v_s_98_){ +_start: +{ +lean_object* v_context_100_; lean_object* v_shutdownPromise_101_; lean_object* v___x_102_; lean_object* v___x_103_; lean_object* v___f_104_; lean_object* v___f_105_; lean_object* v___x_106_; lean_object* v___x_107_; lean_object* v___x_108_; uint8_t v___x_109_; lean_object* v___x_110_; +v_context_100_ = lean_ctor_get(v_s_98_, 0); +lean_inc_ref(v_context_100_); +v_shutdownPromise_101_ = lean_ctor_get(v_s_98_, 3); +lean_inc_ref(v_shutdownPromise_101_); +lean_dec_ref(v_s_98_); +v___x_102_ = lean_box(1); +v___x_103_ = l_Std_CancellationContext_cancel(v_context_100_, v___x_102_); +v___f_104_ = ((lean_object*)(l_Std_Http_Server_waitShutdown___closed__1)); +v___f_105_ = lean_alloc_closure((void*)(l_Std_Http_Server_shutdownAndWait___lam__2___boxed), 4, 2); +lean_closure_set(v___f_105_, 0, v_shutdownPromise_101_); +lean_closure_set(v___f_105_, 1, v___f_104_); +v___x_106_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_106_, 0, v___x_103_); +v___x_107_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_107_, 0, v___x_106_); +v___x_108_ = lean_unsigned_to_nat(0u); +v___x_109_ = 0; +v___x_110_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_108_, v___x_109_, v___x_107_, v___f_105_); +return v___x_110_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_shutdownAndWait___boxed(lean_object* v_s_111_, lean_object* v_a_112_){ +_start: +{ +lean_object* v_res_113_; +v_res_113_ = l_Std_Http_Server_shutdownAndWait(v_s_111_); +return v_res_113_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0(lean_object* v___y_118_, lean_object* v___y_119_){ +_start: +{ +lean_object* v___x_121_; lean_object* v___x_122_; lean_object* v___x_123_; lean_object* v___x_124_; lean_object* v___x_125_; +v___x_121_ = lean_st_ref_take(v___y_118_); +v___x_122_ = lean_unsigned_to_nat(1u); +v___x_123_ = lean_nat_add(v___x_121_, v___x_122_); +lean_dec(v___x_121_); +v___x_124_ = lean_st_ref_set(v___y_118_, v___x_123_); +v___x_125_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +return v___x_125_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___boxed(lean_object* v___y_126_, lean_object* v___y_127_, lean_object* v___y_128_){ +_start: +{ +lean_object* v_res_129_; +v_res_129_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0(v___y_126_, v___y_127_); +lean_dec_ref(v___y_127_); +lean_dec(v___y_126_); +return v_res_129_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1(lean_object* v___y_130_, lean_object* v___y_131_){ +_start: +{ +lean_object* v___x_133_; lean_object* v___x_134_; lean_object* v___x_135_; lean_object* v___x_136_; lean_object* v___x_137_; +v___x_133_ = lean_st_ref_take(v___y_130_); +v___x_134_ = lean_unsigned_to_nat(1u); +v___x_135_ = lean_nat_sub(v___x_133_, v___x_134_); +lean_dec(v___x_133_); +v___x_136_ = lean_st_ref_set(v___y_130_, v___x_135_); +v___x_137_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +return v___x_137_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1___boxed(lean_object* v___y_138_, lean_object* v___y_139_, lean_object* v___y_140_){ +_start: +{ +lean_object* v_res_141_; +v_res_141_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__1(v___y_138_, v___y_139_); +lean_dec_ref(v___y_139_); +lean_dec(v___y_138_); +return v_res_141_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2(lean_object* v_a_142_, lean_object* v_shutdownPromise_143_, lean_object* v_x_144_){ +_start: +{ +if (lean_obj_tag(v_x_144_) == 0) +{ +lean_object* v_a_148_; lean_object* v___x_150_; uint8_t v_isShared_151_; uint8_t v_isSharedCheck_156_; +lean_dec_ref(v_shutdownPromise_143_); +v_a_148_ = lean_ctor_get(v_x_144_, 0); +v_isSharedCheck_156_ = !lean_is_exclusive(v_x_144_); +if (v_isSharedCheck_156_ == 0) +{ +v___x_150_ = v_x_144_; +v_isShared_151_ = v_isSharedCheck_156_; +goto v_resetjp_149_; +} +else +{ +lean_inc(v_a_148_); +lean_dec(v_x_144_); +v___x_150_ = lean_box(0); +v_isShared_151_ = v_isSharedCheck_156_; +goto v_resetjp_149_; +} +v_resetjp_149_: +{ +lean_object* v___x_153_; +if (v_isShared_151_ == 0) +{ +v___x_153_ = v___x_150_; +goto v_reusejp_152_; +} +else +{ +lean_object* v_reuseFailAlloc_155_; +v_reuseFailAlloc_155_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_155_, 0, v_a_148_); +v___x_153_ = v_reuseFailAlloc_155_; +goto v_reusejp_152_; +} +v_reusejp_152_: +{ +lean_object* v___x_154_; +v___x_154_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_154_, 0, v___x_153_); +return v___x_154_; +} +} +} +else +{ +lean_object* v_a_157_; lean_object* v___x_158_; uint8_t v___x_159_; +v_a_157_ = lean_ctor_get(v_x_144_, 0); +lean_inc(v_a_157_); +lean_dec_ref(v_x_144_); +v___x_158_ = lean_unsigned_to_nat(0u); +v___x_159_ = lean_nat_dec_eq(v_a_142_, v___x_158_); +if (v___x_159_ == 0) +{ +lean_dec(v_a_157_); +lean_dec_ref(v_shutdownPromise_143_); +goto v___jp_146_; +} +else +{ +uint8_t v___x_160_; +v___x_160_ = lean_unbox(v_a_157_); +lean_dec(v_a_157_); +if (v___x_160_ == 0) +{ +lean_dec_ref(v_shutdownPromise_143_); +goto v___jp_146_; +} +else +{ +lean_object* v___x_161_; lean_object* v___x_162_; lean_object* v___x_163_; +v___x_161_ = lean_box(0); +v___x_162_ = l_Std_Channel_send___redArg(v_shutdownPromise_143_, v___x_161_); +lean_dec_ref(v___x_162_); +v___x_163_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +return v___x_163_; +} +} +} +v___jp_146_: +{ +lean_object* v___x_147_; +v___x_147_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +return v___x_147_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2___boxed(lean_object* v_a_164_, lean_object* v_shutdownPromise_165_, lean_object* v_x_166_, lean_object* v___y_167_){ +_start: +{ +lean_object* v_res_168_; +v_res_168_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2(v_a_164_, v_shutdownPromise_165_, v_x_166_); +lean_dec(v_a_164_); +return v_res_168_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3(lean_object* v_context_169_, lean_object* v_shutdownPromise_170_, lean_object* v_x_171_){ +_start: +{ +if (lean_obj_tag(v_x_171_) == 0) +{ +lean_object* v_a_173_; lean_object* v___x_175_; uint8_t v_isShared_176_; uint8_t v_isSharedCheck_181_; +lean_dec_ref(v_shutdownPromise_170_); +lean_dec_ref(v_context_169_); +v_a_173_ = lean_ctor_get(v_x_171_, 0); +v_isSharedCheck_181_ = !lean_is_exclusive(v_x_171_); +if (v_isSharedCheck_181_ == 0) +{ +v___x_175_ = v_x_171_; +v_isShared_176_ = v_isSharedCheck_181_; +goto v_resetjp_174_; +} +else +{ +lean_inc(v_a_173_); +lean_dec(v_x_171_); +v___x_175_ = lean_box(0); +v_isShared_176_ = v_isSharedCheck_181_; +goto v_resetjp_174_; +} +v_resetjp_174_: +{ +lean_object* v___x_178_; +if (v_isShared_176_ == 0) +{ +v___x_178_ = v___x_175_; +goto v_reusejp_177_; +} +else +{ +lean_object* v_reuseFailAlloc_180_; +v_reuseFailAlloc_180_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_180_, 0, v_a_173_); +v___x_178_ = v_reuseFailAlloc_180_; +goto v_reusejp_177_; +} +v_reusejp_177_: +{ +lean_object* v___x_179_; +v___x_179_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_179_, 0, v___x_178_); +return v___x_179_; +} +} +} +else +{ +lean_object* v_a_182_; lean_object* v___x_184_; uint8_t v_isShared_185_; uint8_t v_isSharedCheck_197_; +v_a_182_ = lean_ctor_get(v_x_171_, 0); +v_isSharedCheck_197_ = !lean_is_exclusive(v_x_171_); +if (v_isSharedCheck_197_ == 0) +{ +v___x_184_ = v_x_171_; +v_isShared_185_ = v_isSharedCheck_197_; +goto v_resetjp_183_; +} +else +{ +lean_inc(v_a_182_); +lean_dec(v_x_171_); +v___x_184_ = lean_box(0); +v_isShared_185_ = v_isSharedCheck_197_; +goto v_resetjp_183_; +} +v_resetjp_183_: +{ +lean_object* v_token_186_; uint8_t v___x_187_; lean_object* v___f_188_; lean_object* v___x_189_; lean_object* v___x_191_; +v_token_186_ = lean_ctor_get(v_context_169_, 1); +lean_inc_ref(v_token_186_); +lean_dec_ref(v_context_169_); +v___x_187_ = l_Std_CancellationToken_isCancelled(v_token_186_); +v___f_188_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2___boxed), 4, 2); +lean_closure_set(v___f_188_, 0, v_a_182_); +lean_closure_set(v___f_188_, 1, v_shutdownPromise_170_); +v___x_189_ = lean_box(v___x_187_); +if (v_isShared_185_ == 0) +{ +lean_ctor_set(v___x_184_, 0, v___x_189_); +v___x_191_ = v___x_184_; +goto v_reusejp_190_; +} +else +{ +lean_object* v_reuseFailAlloc_196_; +v_reuseFailAlloc_196_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_196_, 0, v___x_189_); +v___x_191_ = v_reuseFailAlloc_196_; +goto v_reusejp_190_; +} +v_reusejp_190_: +{ +lean_object* v___x_192_; lean_object* v___x_193_; uint8_t v___x_194_; lean_object* v___x_195_; +v___x_192_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_192_, 0, v___x_191_); +v___x_193_ = lean_unsigned_to_nat(0u); +v___x_194_ = 0; +v___x_195_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_193_, v___x_194_, v___x_192_, v___f_188_); +return v___x_195_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3___boxed(lean_object* v_context_198_, lean_object* v_shutdownPromise_199_, lean_object* v_x_200_, lean_object* v___y_201_){ +_start: +{ +lean_object* v_res_202_; +v_res_202_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3(v_context_198_, v_shutdownPromise_199_, v_x_200_); +return v_res_202_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4(lean_object* v___f_203_, lean_object* v_____r_204_, lean_object* v___y_205_, lean_object* v___y_206_){ +_start: +{ +lean_object* v___x_208_; lean_object* v___x_209_; lean_object* v___x_210_; lean_object* v___x_211_; uint8_t v___x_212_; lean_object* v___x_213_; +v___x_208_ = lean_st_ref_get(v___y_205_); +v___x_209_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_209_, 0, v___x_208_); +v___x_210_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_210_, 0, v___x_209_); +v___x_211_ = lean_unsigned_to_nat(0u); +v___x_212_ = 0; +v___x_213_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_211_, v___x_212_, v___x_210_, v___f_203_); +return v___x_213_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4___boxed(lean_object* v___f_214_, lean_object* v_____r_215_, lean_object* v___y_216_, lean_object* v___y_217_, lean_object* v___y_218_){ +_start: +{ +lean_object* v_res_219_; +v_res_219_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4(v___f_214_, v_____r_215_, v___y_216_, v___y_217_); +lean_dec_ref(v___y_217_); +lean_dec(v___y_216_); +return v_res_219_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5(lean_object* v_x_220_){ +_start: +{ +lean_object* v_fst_221_; +v_fst_221_ = lean_ctor_get(v_x_220_, 0); +lean_inc(v_fst_221_); +return v_fst_221_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5___boxed(lean_object* v_x_222_){ +_start: +{ +lean_object* v_res_223_; +v_res_223_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__5(v_x_222_); +lean_dec_ref(v_x_222_); +return v_res_223_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6(lean_object* v___x_224_, lean_object* v___f_225_, lean_object* v___f_226_, lean_object* v___f_227_, lean_object* v___f_228_, lean_object* v_activeConnections_229_, lean_object* v_____r_230_, lean_object* v___y_231_){ +_start: +{ +lean_object* v___x_233_; lean_object* v___x_2353__overap_234_; lean_object* v___x_235_; +lean_inc_ref(v___x_224_); +v___x_233_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_233_, 0, lean_box(0)); +lean_closure_set(v___x_233_, 1, lean_box(0)); +lean_closure_set(v___x_233_, 2, lean_box(0)); +lean_closure_set(v___x_233_, 3, v___x_224_); +lean_closure_set(v___x_233_, 4, lean_box(0)); +lean_closure_set(v___x_233_, 5, lean_box(0)); +lean_closure_set(v___x_233_, 6, v___f_225_); +lean_closure_set(v___x_233_, 7, v___f_226_); +v___x_2353__overap_234_ = l_Std_Mutex_atomically___redArg(v___x_224_, v___f_227_, v___f_228_, v_activeConnections_229_, v___x_233_); +lean_inc_ref(v___y_231_); +v___x_235_ = lean_apply_2(v___x_2353__overap_234_, v___y_231_, lean_box(0)); +return v___x_235_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6___boxed(lean_object* v___x_236_, lean_object* v___f_237_, lean_object* v___f_238_, lean_object* v___f_239_, lean_object* v___f_240_, lean_object* v_activeConnections_241_, lean_object* v_____r_242_, lean_object* v___y_243_, lean_object* v___y_244_){ +_start: +{ +lean_object* v_res_245_; +v_res_245_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6(v___x_236_, v___f_237_, v___f_238_, v___f_239_, v___f_240_, v_activeConnections_241_, v_____r_242_, v___y_243_); +lean_dec_ref(v___y_243_); +return v_res_245_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7(lean_object* v___f_246_, lean_object* v_a_247_, lean_object* v_x_248_){ +_start: +{ +if (lean_obj_tag(v_x_248_) == 0) +{ +lean_object* v___x_250_; +lean_dec_ref(v___f_246_); +v___x_250_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_250_, 0, v_x_248_); +return v___x_250_; +} +else +{ +lean_object* v_a_251_; lean_object* v___x_252_; +v_a_251_ = lean_ctor_get(v_x_248_, 0); +lean_inc(v_a_251_); +lean_dec_ref(v_x_248_); +lean_inc_ref(v_a_247_); +v___x_252_ = lean_apply_3(v___f_246_, v_a_251_, v_a_247_, lean_box(0)); +return v___x_252_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7___boxed(lean_object* v___f_253_, lean_object* v_a_254_, lean_object* v_x_255_, lean_object* v___y_256_){ +_start: +{ +lean_object* v_res_257_; +v_res_257_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7(v___f_253_, v_a_254_, v_x_255_); +lean_dec_ref(v_a_254_); +return v_res_257_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8(uint8_t v_releaseConnectionPermit_258_, lean_object* v___f_259_, lean_object* v_a_260_, lean_object* v_connectionLimit_261_, lean_object* v___f_262_, lean_object* v_opt_263_){ +_start: +{ +if (v_releaseConnectionPermit_258_ == 0) +{ +lean_object* v___x_265_; lean_object* v___x_266_; +lean_dec_ref(v___f_262_); +lean_dec(v_connectionLimit_261_); +v___x_265_ = lean_box(0); +lean_inc_ref(v_a_260_); +v___x_266_ = lean_apply_3(v___f_259_, v___x_265_, v_a_260_, lean_box(0)); +return v___x_266_; +} +else +{ +if (lean_obj_tag(v_connectionLimit_261_) == 1) +{ +lean_object* v_val_267_; lean_object* v___x_269_; uint8_t v_isShared_270_; uint8_t v_isSharedCheck_279_; +lean_dec_ref(v___f_259_); +v_val_267_ = lean_ctor_get(v_connectionLimit_261_, 0); +v_isSharedCheck_279_ = !lean_is_exclusive(v_connectionLimit_261_); +if (v_isSharedCheck_279_ == 0) +{ +v___x_269_ = v_connectionLimit_261_; +v_isShared_270_ = v_isSharedCheck_279_; +goto v_resetjp_268_; +} +else +{ +lean_inc(v_val_267_); +lean_dec(v_connectionLimit_261_); +v___x_269_ = lean_box(0); +v_isShared_270_ = v_isSharedCheck_279_; +goto v_resetjp_268_; +} +v_resetjp_268_: +{ +lean_object* v___x_271_; lean_object* v___x_273_; +v___x_271_ = l_Std_Semaphore_release(v_val_267_); +if (v_isShared_270_ == 0) +{ +lean_ctor_set(v___x_269_, 0, v___x_271_); +v___x_273_ = v___x_269_; +goto v_reusejp_272_; +} +else +{ +lean_object* v_reuseFailAlloc_278_; +v_reuseFailAlloc_278_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_278_, 0, v___x_271_); +v___x_273_ = v_reuseFailAlloc_278_; +goto v_reusejp_272_; +} +v_reusejp_272_: +{ +lean_object* v___x_274_; lean_object* v___x_275_; uint8_t v___x_276_; lean_object* v___x_277_; +v___x_274_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_274_, 0, v___x_273_); +v___x_275_ = lean_unsigned_to_nat(0u); +v___x_276_ = 0; +v___x_277_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_275_, v___x_276_, v___x_274_, v___f_262_); +return v___x_277_; +} +} +} +else +{ +lean_object* v___x_280_; lean_object* v___x_281_; +lean_dec_ref(v___f_262_); +lean_dec(v_connectionLimit_261_); +v___x_280_ = lean_box(0); +lean_inc_ref(v_a_260_); +v___x_281_ = lean_apply_3(v___f_259_, v___x_280_, v_a_260_, lean_box(0)); +return v___x_281_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8___boxed(lean_object* v_releaseConnectionPermit_282_, lean_object* v___f_283_, lean_object* v_a_284_, lean_object* v_connectionLimit_285_, lean_object* v___f_286_, lean_object* v_opt_287_, lean_object* v___y_288_){ +_start: +{ +uint8_t v_releaseConnectionPermit_boxed_289_; lean_object* v_res_290_; +v_releaseConnectionPermit_boxed_289_ = lean_unbox(v_releaseConnectionPermit_282_); +v_res_290_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8(v_releaseConnectionPermit_boxed_289_, v___f_283_, v_a_284_, v_connectionLimit_285_, v___f_286_, v_opt_287_); +lean_dec(v_opt_287_); +lean_dec_ref(v_a_284_); +return v_res_290_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9(lean_object* v_action_291_, lean_object* v_a_292_, lean_object* v___f_293_, lean_object* v___f_294_, lean_object* v_x_295_){ +_start: +{ +if (lean_obj_tag(v_x_295_) == 0) +{ +lean_object* v_a_297_; lean_object* v___x_299_; uint8_t v_isShared_300_; uint8_t v_isSharedCheck_305_; +lean_dec(v___f_294_); +lean_dec_ref(v___f_293_); +lean_dec_ref(v_action_291_); +v_a_297_ = lean_ctor_get(v_x_295_, 0); +v_isSharedCheck_305_ = !lean_is_exclusive(v_x_295_); +if (v_isSharedCheck_305_ == 0) +{ +v___x_299_ = v_x_295_; +v_isShared_300_ = v_isSharedCheck_305_; +goto v_resetjp_298_; +} +else +{ +lean_inc(v_a_297_); +lean_dec(v_x_295_); +v___x_299_ = lean_box(0); +v_isShared_300_ = v_isSharedCheck_305_; +goto v_resetjp_298_; +} +v_resetjp_298_: +{ +lean_object* v___x_302_; +if (v_isShared_300_ == 0) +{ +v___x_302_ = v___x_299_; +goto v_reusejp_301_; +} +else +{ +lean_object* v_reuseFailAlloc_304_; +v_reuseFailAlloc_304_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_304_, 0, v_a_297_); +v___x_302_ = v_reuseFailAlloc_304_; +goto v_reusejp_301_; +} +v_reusejp_301_: +{ +lean_object* v___x_303_; +v___x_303_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_303_, 0, v___x_302_); +return v___x_303_; +} +} +} +else +{ +lean_object* v___x_306_; lean_object* v___x_307_; uint8_t v___x_308_; lean_object* v___x_309_; lean_object* v___y_311_; +lean_dec_ref(v_x_295_); +lean_inc_ref(v_a_292_); +v___x_306_ = lean_apply_1(v_action_291_, v_a_292_); +v___x_307_ = lean_unsigned_to_nat(0u); +v___x_308_ = 0; +v___x_309_ = l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(v___x_306_, v___f_293_, v___x_307_, v___x_308_); +if (lean_obj_tag(v___x_309_) == 0) +{ +lean_object* v_a_313_; +lean_dec(v___f_294_); +v_a_313_ = lean_ctor_get(v___x_309_, 0); +lean_inc(v_a_313_); +lean_dec_ref(v___x_309_); +if (lean_obj_tag(v_a_313_) == 0) +{ +lean_object* v_a_314_; lean_object* v___x_316_; uint8_t v_isShared_317_; uint8_t v_isSharedCheck_321_; +v_a_314_ = lean_ctor_get(v_a_313_, 0); +v_isSharedCheck_321_ = !lean_is_exclusive(v_a_313_); +if (v_isSharedCheck_321_ == 0) +{ +v___x_316_ = v_a_313_; +v_isShared_317_ = v_isSharedCheck_321_; +goto v_resetjp_315_; +} +else +{ +lean_inc(v_a_314_); +lean_dec(v_a_313_); +v___x_316_ = lean_box(0); +v_isShared_317_ = v_isSharedCheck_321_; +goto v_resetjp_315_; +} +v_resetjp_315_: +{ +lean_object* v___x_319_; +if (v_isShared_317_ == 0) +{ +v___x_319_ = v___x_316_; +goto v_reusejp_318_; +} +else +{ +lean_object* v_reuseFailAlloc_320_; +v_reuseFailAlloc_320_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_320_, 0, v_a_314_); +v___x_319_ = v_reuseFailAlloc_320_; +goto v_reusejp_318_; +} +v_reusejp_318_: +{ +v___y_311_ = v___x_319_; +goto v___jp_310_; +} +} +} +else +{ +lean_object* v_a_322_; lean_object* v___x_324_; uint8_t v_isShared_325_; uint8_t v_isSharedCheck_330_; +v_a_322_ = lean_ctor_get(v_a_313_, 0); +v_isSharedCheck_330_ = !lean_is_exclusive(v_a_313_); +if (v_isSharedCheck_330_ == 0) +{ +v___x_324_ = v_a_313_; +v_isShared_325_ = v_isSharedCheck_330_; +goto v_resetjp_323_; +} +else +{ +lean_inc(v_a_322_); +lean_dec(v_a_313_); +v___x_324_ = lean_box(0); +v_isShared_325_ = v_isSharedCheck_330_; +goto v_resetjp_323_; +} +v_resetjp_323_: +{ +lean_object* v_fst_326_; lean_object* v___x_328_; +v_fst_326_ = lean_ctor_get(v_a_322_, 0); +lean_inc(v_fst_326_); +lean_dec(v_a_322_); +if (v_isShared_325_ == 0) +{ +lean_ctor_set(v___x_324_, 0, v_fst_326_); +v___x_328_ = v___x_324_; +goto v_reusejp_327_; +} +else +{ +lean_object* v_reuseFailAlloc_329_; +v_reuseFailAlloc_329_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_329_, 0, v_fst_326_); +v___x_328_ = v_reuseFailAlloc_329_; +goto v_reusejp_327_; +} +v_reusejp_327_: +{ +v___y_311_ = v___x_328_; +goto v___jp_310_; +} +} +} +} +else +{ +lean_object* v_a_331_; lean_object* v___x_333_; uint8_t v_isShared_334_; uint8_t v_isSharedCheck_340_; +v_a_331_ = lean_ctor_get(v___x_309_, 0); +v_isSharedCheck_340_ = !lean_is_exclusive(v___x_309_); +if (v_isSharedCheck_340_ == 0) +{ +v___x_333_ = v___x_309_; +v_isShared_334_ = v_isSharedCheck_340_; +goto v_resetjp_332_; +} +else +{ +lean_inc(v_a_331_); +lean_dec(v___x_309_); +v___x_333_ = lean_box(0); +v_isShared_334_ = v_isSharedCheck_340_; +goto v_resetjp_332_; +} +v_resetjp_332_: +{ +lean_object* v___x_335_; lean_object* v___x_336_; lean_object* v___x_338_; +v___x_335_ = lean_alloc_closure((void*)(l_Except_map), 5, 4); +lean_closure_set(v___x_335_, 0, lean_box(0)); +lean_closure_set(v___x_335_, 1, lean_box(0)); +lean_closure_set(v___x_335_, 2, lean_box(0)); +lean_closure_set(v___x_335_, 3, v___f_294_); +v___x_336_ = lean_task_map(v___x_335_, v_a_331_, v___x_307_, v___x_308_); +if (v_isShared_334_ == 0) +{ +lean_ctor_set(v___x_333_, 0, v___x_336_); +v___x_338_ = v___x_333_; +goto v_reusejp_337_; +} +else +{ +lean_object* v_reuseFailAlloc_339_; +v_reuseFailAlloc_339_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_339_, 0, v___x_336_); +v___x_338_ = v_reuseFailAlloc_339_; +goto v_reusejp_337_; +} +v_reusejp_337_: +{ +return v___x_338_; +} +} +} +v___jp_310_: +{ +lean_object* v___x_312_; +v___x_312_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_312_, 0, v___y_311_); +return v___x_312_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9___boxed(lean_object* v_action_341_, lean_object* v_a_342_, lean_object* v___f_343_, lean_object* v___f_344_, lean_object* v_x_345_, lean_object* v___y_346_){ +_start: +{ +lean_object* v_res_347_; +v_res_347_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9(v_action_341_, v_a_342_, v___f_343_, v___f_344_, v_x_345_); +lean_dec_ref(v_a_342_); +return v_res_347_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg(lean_object* v_s_357_, uint8_t v_releaseConnectionPermit_358_, lean_object* v_action_359_, lean_object* v_a_360_){ +_start: +{ +lean_object* v___x_362_; lean_object* v_context_363_; lean_object* v_activeConnections_364_; lean_object* v_connectionLimit_365_; lean_object* v_shutdownPromise_366_; lean_object* v___f_367_; lean_object* v___f_368_; lean_object* v___f_369_; lean_object* v___x_1520__overap_370_; lean_object* v___x_371_; lean_object* v___f_372_; lean_object* v___f_373_; lean_object* v___f_374_; lean_object* v___f_375_; lean_object* v___f_376_; lean_object* v___f_377_; lean_object* v___x_378_; lean_object* v___f_379_; lean_object* v___f_380_; lean_object* v___x_381_; uint8_t v___x_382_; lean_object* v___x_383_; +v___x_362_ = l_Std_Internal_IO_Async_ContextAsync_instMonad; +v_context_363_ = lean_ctor_get(v_s_357_, 0); +lean_inc_ref(v_context_363_); +v_activeConnections_364_ = lean_ctor_get(v_s_357_, 1); +lean_inc_ref_n(v_activeConnections_364_, 2); +v_connectionLimit_365_ = lean_ctor_get(v_s_357_, 2); +lean_inc(v_connectionLimit_365_); +v_shutdownPromise_366_ = lean_ctor_get(v_s_357_, 3); +lean_inc_ref(v_shutdownPromise_366_); +lean_dec_ref(v_s_357_); +v___f_367_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0)); +v___f_368_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3)); +v___f_369_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4)); +v___x_1520__overap_370_ = l_Std_Mutex_atomically___redArg(v___x_362_, v___f_368_, v___f_369_, v_activeConnections_364_, v___f_367_); +lean_inc_ref_n(v_a_360_, 4); +v___x_371_ = lean_apply_2(v___x_1520__overap_370_, v_a_360_, lean_box(0)); +v___f_372_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5)); +v___f_373_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3___boxed), 4, 2); +lean_closure_set(v___f_373_, 0, v_context_363_); +lean_closure_set(v___f_373_, 1, v_shutdownPromise_366_); +v___f_374_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4___boxed), 5, 1); +lean_closure_set(v___f_374_, 0, v___f_373_); +v___f_375_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__6)); +v___f_376_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6___boxed), 9, 6); +lean_closure_set(v___f_376_, 0, v___x_362_); +lean_closure_set(v___f_376_, 1, v___f_372_); +lean_closure_set(v___f_376_, 2, v___f_374_); +lean_closure_set(v___f_376_, 3, v___f_368_); +lean_closure_set(v___f_376_, 4, v___f_369_); +lean_closure_set(v___f_376_, 5, v_activeConnections_364_); +lean_inc_ref(v___f_376_); +v___f_377_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7___boxed), 4, 2); +lean_closure_set(v___f_377_, 0, v___f_376_); +lean_closure_set(v___f_377_, 1, v_a_360_); +v___x_378_ = lean_box(v_releaseConnectionPermit_358_); +v___f_379_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8___boxed), 7, 5); +lean_closure_set(v___f_379_, 0, v___x_378_); +lean_closure_set(v___f_379_, 1, v___f_376_); +lean_closure_set(v___f_379_, 2, v_a_360_); +lean_closure_set(v___f_379_, 3, v_connectionLimit_365_); +lean_closure_set(v___f_379_, 4, v___f_377_); +v___f_380_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9___boxed), 6, 4); +lean_closure_set(v___f_380_, 0, v_action_359_); +lean_closure_set(v___f_380_, 1, v_a_360_); +lean_closure_set(v___f_380_, 2, v___f_379_); +lean_closure_set(v___f_380_, 3, v___f_375_); +v___x_381_ = lean_unsigned_to_nat(0u); +v___x_382_ = 0; +v___x_383_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_381_, v___x_382_, v___x_371_, v___f_380_); +return v___x_383_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___boxed(lean_object* v_s_384_, lean_object* v_releaseConnectionPermit_385_, lean_object* v_action_386_, lean_object* v_a_387_, lean_object* v_a_388_){ +_start: +{ +uint8_t v_releaseConnectionPermit_boxed_389_; lean_object* v_res_390_; +v_releaseConnectionPermit_boxed_389_ = lean_unbox(v_releaseConnectionPermit_385_); +v_res_390_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg(v_s_384_, v_releaseConnectionPermit_boxed_389_, v_action_386_, v_a_387_); +lean_dec_ref(v_a_387_); +return v_res_390_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation(lean_object* v_00_u03b1_391_, lean_object* v_s_392_, uint8_t v_releaseConnectionPermit_393_, lean_object* v_action_394_, lean_object* v_a_395_){ +_start: +{ +lean_object* v___x_397_; lean_object* v_context_398_; lean_object* v_activeConnections_399_; lean_object* v_connectionLimit_400_; lean_object* v_shutdownPromise_401_; lean_object* v___f_402_; lean_object* v___f_403_; lean_object* v___f_404_; lean_object* v___x_2130__overap_405_; lean_object* v___x_406_; lean_object* v___f_407_; lean_object* v___f_408_; lean_object* v___f_409_; lean_object* v___f_410_; lean_object* v___f_411_; lean_object* v___f_412_; lean_object* v___x_413_; lean_object* v___f_414_; lean_object* v___f_415_; lean_object* v___x_416_; uint8_t v___x_417_; lean_object* v___x_418_; +v___x_397_ = l_Std_Internal_IO_Async_ContextAsync_instMonad; +v_context_398_ = lean_ctor_get(v_s_392_, 0); +lean_inc_ref(v_context_398_); +v_activeConnections_399_ = lean_ctor_get(v_s_392_, 1); +lean_inc_ref_n(v_activeConnections_399_, 2); +v_connectionLimit_400_ = lean_ctor_get(v_s_392_, 2); +lean_inc(v_connectionLimit_400_); +v_shutdownPromise_401_ = lean_ctor_get(v_s_392_, 3); +lean_inc_ref(v_shutdownPromise_401_); +lean_dec_ref(v_s_392_); +v___f_402_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0)); +v___f_403_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3)); +v___f_404_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4)); +v___x_2130__overap_405_ = l_Std_Mutex_atomically___redArg(v___x_397_, v___f_403_, v___f_404_, v_activeConnections_399_, v___f_402_); +lean_inc_ref_n(v_a_395_, 4); +v___x_406_ = lean_apply_2(v___x_2130__overap_405_, v_a_395_, lean_box(0)); +v___f_407_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5)); +v___f_408_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__3___boxed), 4, 2); +lean_closure_set(v___f_408_, 0, v_context_398_); +lean_closure_set(v___f_408_, 1, v_shutdownPromise_401_); +v___f_409_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4___boxed), 5, 1); +lean_closure_set(v___f_409_, 0, v___f_408_); +v___f_410_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__6)); +v___f_411_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6___boxed), 9, 6); +lean_closure_set(v___f_411_, 0, v___x_397_); +lean_closure_set(v___f_411_, 1, v___f_407_); +lean_closure_set(v___f_411_, 2, v___f_409_); +lean_closure_set(v___f_411_, 3, v___f_403_); +lean_closure_set(v___f_411_, 4, v___f_404_); +lean_closure_set(v___f_411_, 5, v_activeConnections_399_); +lean_inc_ref(v___f_411_); +v___f_412_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__7___boxed), 4, 2); +lean_closure_set(v___f_412_, 0, v___f_411_); +lean_closure_set(v___f_412_, 1, v_a_395_); +v___x_413_ = lean_box(v_releaseConnectionPermit_393_); +v___f_414_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__8___boxed), 7, 5); +lean_closure_set(v___f_414_, 0, v___x_413_); +lean_closure_set(v___f_414_, 1, v___f_411_); +lean_closure_set(v___f_414_, 2, v_a_395_); +lean_closure_set(v___f_414_, 3, v_connectionLimit_400_); +lean_closure_set(v___f_414_, 4, v___f_412_); +v___f_415_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__9___boxed), 6, 4); +lean_closure_set(v___f_415_, 0, v_action_394_); +lean_closure_set(v___f_415_, 1, v_a_395_); +lean_closure_set(v___f_415_, 2, v___f_414_); +lean_closure_set(v___f_415_, 3, v___f_410_); +v___x_416_ = lean_unsigned_to_nat(0u); +v___x_417_ = 0; +v___x_418_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_416_, v___x_417_, v___x_406_, v___f_415_); +return v___x_418_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___boxed(lean_object* v_00_u03b1_419_, lean_object* v_s_420_, lean_object* v_releaseConnectionPermit_421_, lean_object* v_action_422_, lean_object* v_a_423_, lean_object* v_a_424_){ +_start: +{ +uint8_t v_releaseConnectionPermit_boxed_425_; lean_object* v_res_426_; +v_releaseConnectionPermit_boxed_425_ = lean_unbox(v_releaseConnectionPermit_421_); +v_res_426_ = l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation(v_00_u03b1_419_, v_s_420_, v_releaseConnectionPermit_boxed_425_, v_action_422_, v_a_423_); +lean_dec_ref(v_a_423_); +return v_res_426_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__0(lean_object* v_x_427_){ +_start: +{ +if (lean_obj_tag(v_x_427_) == 0) +{ +lean_object* v___x_429_; +v___x_429_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_429_, 0, v_x_427_); +return v___x_429_; +} +else +{ +lean_object* v___x_430_; +lean_dec_ref(v_x_427_); +v___x_430_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +return v___x_430_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__0___boxed(lean_object* v_x_431_, lean_object* v___y_432_){ +_start: +{ +lean_object* v_res_433_; +v_res_433_ = l_Std_Http_Server_serve___redArg___lam__0(v_x_431_); +return v_res_433_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__2(lean_object* v_x_434_){ +_start: +{ +lean_object* v_fst_435_; +v_fst_435_ = lean_ctor_get(v_x_434_, 0); +lean_inc(v_fst_435_); +return v_fst_435_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__2___boxed(lean_object* v_x_436_){ +_start: +{ +lean_object* v_res_437_; +v_res_437_ = l_Std_Http_Server_serve___redArg___lam__2(v_x_436_); +lean_dec_ref(v_x_436_); +return v_res_437_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__3(lean_object* v_x_442_){ +_start: +{ +lean_object* v___x_444_; +v___x_444_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___lam__3___closed__1)); +return v___x_444_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__3___boxed(lean_object* v_x_445_, lean_object* v___y_446_){ +_start: +{ +lean_object* v_res_447_; +v_res_447_ = l_Std_Http_Server_serve___redArg___lam__3(v_x_445_); +return v_res_447_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__1(lean_object* v_x_448_){ +_start: +{ +lean_object* v___x_450_; lean_object* v___x_451_; lean_object* v___x_452_; +v___x_450_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_450_, 0, v_x_448_); +v___x_451_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_451_, 0, v___x_450_); +v___x_452_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_452_, 0, v___x_451_); +return v___x_452_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__1___boxed(lean_object* v_x_453_, lean_object* v___y_454_){ +_start: +{ +lean_object* v_res_455_; +v_res_455_ = l_Std_Http_Server_serve___redArg___lam__1(v_x_453_); +return v_res_455_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__4(lean_object* v_x_456_){ +_start: +{ +if (lean_obj_tag(v_x_456_) == 0) +{ +lean_object* v_a_458_; lean_object* v___x_460_; uint8_t v_isShared_461_; uint8_t v_isSharedCheck_466_; +v_a_458_ = lean_ctor_get(v_x_456_, 0); +v_isSharedCheck_466_ = !lean_is_exclusive(v_x_456_); +if (v_isSharedCheck_466_ == 0) +{ +v___x_460_ = v_x_456_; +v_isShared_461_ = v_isSharedCheck_466_; +goto v_resetjp_459_; +} +else +{ +lean_inc(v_a_458_); +lean_dec(v_x_456_); +v___x_460_ = lean_box(0); +v_isShared_461_ = v_isSharedCheck_466_; +goto v_resetjp_459_; +} +v_resetjp_459_: +{ +lean_object* v___x_463_; +if (v_isShared_461_ == 0) +{ +v___x_463_ = v___x_460_; +goto v_reusejp_462_; +} +else +{ +lean_object* v_reuseFailAlloc_465_; +v_reuseFailAlloc_465_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_465_, 0, v_a_458_); +v___x_463_ = v_reuseFailAlloc_465_; +goto v_reusejp_462_; +} +v_reusejp_462_: +{ +lean_object* v___x_464_; +v___x_464_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_464_, 0, v___x_463_); +return v___x_464_; +} +} +} +else +{ +lean_object* v_a_467_; lean_object* v___x_469_; uint8_t v_isShared_470_; uint8_t v_isSharedCheck_477_; +v_a_467_ = lean_ctor_get(v_x_456_, 0); +v_isSharedCheck_477_ = !lean_is_exclusive(v_x_456_); +if (v_isSharedCheck_477_ == 0) +{ +v___x_469_ = v_x_456_; +v_isShared_470_ = v_isSharedCheck_477_; +goto v_resetjp_468_; +} +else +{ +lean_inc(v_a_467_); +lean_dec(v_x_456_); +v___x_469_ = lean_box(0); +v_isShared_470_ = v_isSharedCheck_477_; +goto v_resetjp_468_; +} +v_resetjp_468_: +{ +lean_object* v_token_471_; lean_object* v___x_472_; lean_object* v___x_474_; +v_token_471_ = lean_ctor_get(v_a_467_, 1); +lean_inc_ref(v_token_471_); +lean_dec(v_a_467_); +v___x_472_ = l_Std_CancellationToken_selector(v_token_471_); +if (v_isShared_470_ == 0) +{ +lean_ctor_set(v___x_469_, 0, v___x_472_); +v___x_474_ = v___x_469_; +goto v_reusejp_473_; +} +else +{ +lean_object* v_reuseFailAlloc_476_; +v_reuseFailAlloc_476_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_476_, 0, v___x_472_); +v___x_474_ = v_reuseFailAlloc_476_; +goto v_reusejp_473_; +} +v_reusejp_473_: +{ +lean_object* v___x_475_; +v___x_475_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_475_, 0, v___x_474_); +return v___x_475_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__4___boxed(lean_object* v_x_478_, lean_object* v___y_479_){ +_start: +{ +lean_object* v_res_480_; +v_res_480_ = l_Std_Http_Server_serve___redArg___lam__4(v_x_478_); +return v_res_480_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__6(lean_object* v_x_481_, lean_object* v_x_482_){ +_start: +{ +if (lean_obj_tag(v_x_482_) == 0) +{ +lean_object* v_a_484_; lean_object* v___x_486_; uint8_t v_isShared_487_; uint8_t v_isSharedCheck_492_; +lean_dec_ref(v_x_481_); +v_a_484_ = lean_ctor_get(v_x_482_, 0); +v_isSharedCheck_492_ = !lean_is_exclusive(v_x_482_); +if (v_isSharedCheck_492_ == 0) +{ +v___x_486_ = v_x_482_; +v_isShared_487_ = v_isSharedCheck_492_; +goto v_resetjp_485_; +} +else +{ +lean_inc(v_a_484_); +lean_dec(v_x_482_); +v___x_486_ = lean_box(0); +v_isShared_487_ = v_isSharedCheck_492_; +goto v_resetjp_485_; +} +v_resetjp_485_: +{ +lean_object* v___x_489_; +if (v_isShared_487_ == 0) +{ +v___x_489_ = v___x_486_; +goto v_reusejp_488_; +} +else +{ +lean_object* v_reuseFailAlloc_491_; +v_reuseFailAlloc_491_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_491_, 0, v_a_484_); +v___x_489_ = v_reuseFailAlloc_491_; +goto v_reusejp_488_; +} +v_reusejp_488_: +{ +lean_object* v___x_490_; +v___x_490_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_490_, 0, v___x_489_); +return v___x_490_; +} +} +} +else +{ +lean_object* v___x_493_; +lean_dec_ref(v_x_482_); +v___x_493_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_493_, 0, v_x_481_); +return v___x_493_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__6___boxed(lean_object* v_x_494_, lean_object* v_x_495_, lean_object* v___y_496_){ +_start: +{ +lean_object* v_res_497_; +v_res_497_ = l_Std_Http_Server_serve___redArg___lam__6(v_x_494_, v_x_495_); +return v_res_497_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__7(lean_object* v_a_498_, lean_object* v_x_499_){ +_start: +{ +if (lean_obj_tag(v_x_499_) == 0) +{ +lean_object* v_a_501_; lean_object* v___x_503_; uint8_t v_isShared_504_; uint8_t v_isSharedCheck_509_; +lean_dec_ref(v_a_498_); +v_a_501_ = lean_ctor_get(v_x_499_, 0); +v_isSharedCheck_509_ = !lean_is_exclusive(v_x_499_); +if (v_isSharedCheck_509_ == 0) +{ +v___x_503_ = v_x_499_; +v_isShared_504_ = v_isSharedCheck_509_; +goto v_resetjp_502_; +} +else +{ +lean_inc(v_a_501_); +lean_dec(v_x_499_); +v___x_503_ = lean_box(0); +v_isShared_504_ = v_isSharedCheck_509_; +goto v_resetjp_502_; +} +v_resetjp_502_: +{ +lean_object* v___x_506_; +if (v_isShared_504_ == 0) +{ +v___x_506_ = v___x_503_; +goto v_reusejp_505_; +} +else +{ +lean_object* v_reuseFailAlloc_508_; +v_reuseFailAlloc_508_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_508_, 0, v_a_501_); +v___x_506_ = v_reuseFailAlloc_508_; +goto v_reusejp_505_; +} +v_reusejp_505_: +{ +lean_object* v___x_507_; +v___x_507_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_507_, 0, v___x_506_); +return v___x_507_; +} +} +} +else +{ +lean_object* v_context_510_; lean_object* v_a_511_; lean_object* v___x_513_; uint8_t v_isShared_514_; uint8_t v_isSharedCheck_527_; +v_context_510_ = lean_ctor_get(v_a_498_, 0); +lean_inc_ref(v_context_510_); +v_a_511_ = lean_ctor_get(v_x_499_, 0); +v_isSharedCheck_527_ = !lean_is_exclusive(v_x_499_); +if (v_isSharedCheck_527_ == 0) +{ +v___x_513_ = v_x_499_; +v_isShared_514_ = v_isSharedCheck_527_; +goto v_resetjp_512_; +} +else +{ +lean_inc(v_a_511_); +lean_dec(v_x_499_); +v___x_513_ = lean_box(0); +v_isShared_514_ = v_isSharedCheck_527_; +goto v_resetjp_512_; +} +v_resetjp_512_: +{ +lean_object* v_shutdownPromise_515_; lean_object* v_token_516_; uint8_t v___x_517_; lean_object* v___f_518_; lean_object* v___x_519_; lean_object* v___x_521_; +v_shutdownPromise_515_ = lean_ctor_get(v_a_498_, 3); +lean_inc_ref(v_shutdownPromise_515_); +lean_dec_ref(v_a_498_); +v_token_516_ = lean_ctor_get(v_context_510_, 1); +lean_inc_ref(v_token_516_); +lean_dec_ref(v_context_510_); +v___x_517_ = l_Std_CancellationToken_isCancelled(v_token_516_); +v___f_518_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__2___boxed), 4, 2); +lean_closure_set(v___f_518_, 0, v_a_511_); +lean_closure_set(v___f_518_, 1, v_shutdownPromise_515_); +v___x_519_ = lean_box(v___x_517_); +if (v_isShared_514_ == 0) +{ +lean_ctor_set(v___x_513_, 0, v___x_519_); +v___x_521_ = v___x_513_; +goto v_reusejp_520_; +} +else +{ +lean_object* v_reuseFailAlloc_526_; +v_reuseFailAlloc_526_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_526_, 0, v___x_519_); +v___x_521_ = v_reuseFailAlloc_526_; +goto v_reusejp_520_; +} +v_reusejp_520_: +{ +lean_object* v___x_522_; lean_object* v___x_523_; uint8_t v___x_524_; lean_object* v___x_525_; +v___x_522_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_522_, 0, v___x_521_); +v___x_523_ = lean_unsigned_to_nat(0u); +v___x_524_ = 0; +v___x_525_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_523_, v___x_524_, v___x_522_, v___f_518_); +return v___x_525_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__7___boxed(lean_object* v_a_528_, lean_object* v_x_529_, lean_object* v___y_530_){ +_start: +{ +lean_object* v_res_531_; +v_res_531_ = l_Std_Http_Server_serve___redArg___lam__7(v_a_528_, v_x_529_); +return v_res_531_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__8(lean_object* v___x_532_, lean_object* v_____r_533_, lean_object* v___y_534_){ +_start: +{ +lean_object* v___x_536_; lean_object* v___x_537_; lean_object* v___x_538_; +v___x_536_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_536_, 0, v___x_532_); +v___x_537_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_537_, 0, v___x_536_); +v___x_538_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_538_, 0, v___x_537_); +return v___x_538_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__8___boxed(lean_object* v___x_539_, lean_object* v_____r_540_, lean_object* v___y_541_, lean_object* v___y_542_){ +_start: +{ +lean_object* v_res_543_; +v_res_543_ = l_Std_Http_Server_serve___redArg___lam__8(v___x_539_, v_____r_540_, v___y_541_); +lean_dec_ref(v___y_541_); +return v_res_543_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__5(lean_object* v___x_544_, lean_object* v_x_545_){ +_start: +{ +if (lean_obj_tag(v_x_545_) == 0) +{ +lean_object* v_a_547_; lean_object* v___x_549_; uint8_t v_isShared_550_; uint8_t v_isSharedCheck_555_; +v_a_547_ = lean_ctor_get(v_x_545_, 0); +v_isSharedCheck_555_ = !lean_is_exclusive(v_x_545_); +if (v_isSharedCheck_555_ == 0) +{ +v___x_549_ = v_x_545_; +v_isShared_550_ = v_isSharedCheck_555_; +goto v_resetjp_548_; +} +else +{ +lean_inc(v_a_547_); +lean_dec(v_x_545_); +v___x_549_ = lean_box(0); +v_isShared_550_ = v_isSharedCheck_555_; +goto v_resetjp_548_; +} +v_resetjp_548_: +{ +lean_object* v___x_552_; +if (v_isShared_550_ == 0) +{ +v___x_552_ = v___x_549_; +goto v_reusejp_551_; +} +else +{ +lean_object* v_reuseFailAlloc_554_; +v_reuseFailAlloc_554_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_554_, 0, v_a_547_); +v___x_552_ = v_reuseFailAlloc_554_; +goto v_reusejp_551_; +} +v_reusejp_551_: +{ +lean_object* v___x_553_; +v___x_553_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_553_, 0, v___x_552_); +return v___x_553_; +} +} +} +else +{ +lean_object* v___x_557_; uint8_t v_isShared_558_; uint8_t v_isSharedCheck_564_; +v_isSharedCheck_564_ = !lean_is_exclusive(v_x_545_); +if (v_isSharedCheck_564_ == 0) +{ +lean_object* v_unused_565_; +v_unused_565_ = lean_ctor_get(v_x_545_, 0); +lean_dec(v_unused_565_); +v___x_557_ = v_x_545_; +v_isShared_558_ = v_isSharedCheck_564_; +goto v_resetjp_556_; +} +else +{ +lean_dec(v_x_545_); +v___x_557_ = lean_box(0); +v_isShared_558_ = v_isSharedCheck_564_; +goto v_resetjp_556_; +} +v_resetjp_556_: +{ +lean_object* v___x_559_; lean_object* v___x_561_; +v___x_559_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_559_, 0, v___x_544_); +if (v_isShared_558_ == 0) +{ +lean_ctor_set(v___x_557_, 0, v___x_559_); +v___x_561_ = v___x_557_; +goto v_reusejp_560_; +} +else +{ +lean_object* v_reuseFailAlloc_563_; +v_reuseFailAlloc_563_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_563_, 0, v___x_559_); +v___x_561_ = v_reuseFailAlloc_563_; +goto v_reusejp_560_; +} +v_reusejp_560_: +{ +lean_object* v___x_562_; +v___x_562_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_562_, 0, v___x_561_); +return v___x_562_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__5___boxed(lean_object* v___x_566_, lean_object* v_x_567_, lean_object* v___y_568_){ +_start: +{ +lean_object* v_res_569_; +v_res_569_ = l_Std_Http_Server_serve___redArg___lam__5(v___x_566_, v_x_567_); +return v_res_569_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__9(lean_object* v___f_570_, lean_object* v___y_571_, lean_object* v_x_572_){ +_start: +{ +if (lean_obj_tag(v_x_572_) == 0) +{ +lean_object* v_a_574_; lean_object* v___x_576_; uint8_t v_isShared_577_; uint8_t v_isSharedCheck_582_; +lean_dec_ref(v___f_570_); +v_a_574_ = lean_ctor_get(v_x_572_, 0); +v_isSharedCheck_582_ = !lean_is_exclusive(v_x_572_); +if (v_isSharedCheck_582_ == 0) +{ +v___x_576_ = v_x_572_; +v_isShared_577_ = v_isSharedCheck_582_; +goto v_resetjp_575_; +} +else +{ +lean_inc(v_a_574_); +lean_dec(v_x_572_); +v___x_576_ = lean_box(0); +v_isShared_577_ = v_isSharedCheck_582_; +goto v_resetjp_575_; +} +v_resetjp_575_: +{ +lean_object* v___x_579_; +if (v_isShared_577_ == 0) +{ +v___x_579_ = v___x_576_; +goto v_reusejp_578_; +} +else +{ +lean_object* v_reuseFailAlloc_581_; +v_reuseFailAlloc_581_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_581_, 0, v_a_574_); +v___x_579_ = v_reuseFailAlloc_581_; +goto v_reusejp_578_; +} +v_reusejp_578_: +{ +lean_object* v___x_580_; +v___x_580_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_580_, 0, v___x_579_); +return v___x_580_; +} +} +} +else +{ +lean_object* v_a_583_; lean_object* v___x_584_; +v_a_583_ = lean_ctor_get(v_x_572_, 0); +lean_inc(v_a_583_); +lean_dec_ref(v_x_572_); +lean_inc_ref(v___y_571_); +v___x_584_ = lean_apply_3(v___f_570_, v_a_583_, v___y_571_, lean_box(0)); +return v___x_584_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__9___boxed(lean_object* v___f_585_, lean_object* v___y_586_, lean_object* v_x_587_, lean_object* v___y_588_){ +_start: +{ +lean_object* v_res_589_; +v_res_589_ = l_Std_Http_Server_serve___redArg___lam__9(v___f_585_, v___y_586_, v_x_587_); +lean_dec_ref(v___y_586_); +return v_res_589_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__10(lean_object* v_a_590_, lean_object* v_x_591_){ +_start: +{ +if (lean_obj_tag(v_x_591_) == 0) +{ +lean_object* v___x_593_; +lean_dec_ref(v_a_590_); +v___x_593_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_593_, 0, v_x_591_); +return v___x_593_; +} +else +{ +lean_object* v___x_595_; uint8_t v_isShared_596_; uint8_t v_isSharedCheck_603_; +v_isSharedCheck_603_ = !lean_is_exclusive(v_x_591_); +if (v_isSharedCheck_603_ == 0) +{ +lean_object* v_unused_604_; +v_unused_604_ = lean_ctor_get(v_x_591_, 0); +lean_dec(v_unused_604_); +v___x_595_ = v_x_591_; +v_isShared_596_ = v_isSharedCheck_603_; +goto v_resetjp_594_; +} +else +{ +lean_dec(v_x_591_); +v___x_595_ = lean_box(0); +v_isShared_596_ = v_isSharedCheck_603_; +goto v_resetjp_594_; +} +v_resetjp_594_: +{ +lean_object* v___x_597_; lean_object* v___x_598_; lean_object* v___x_600_; +v___x_597_ = lean_box(2); +v___x_598_ = l_Std_CancellationContext_cancel(v_a_590_, v___x_597_); +if (v_isShared_596_ == 0) +{ +lean_ctor_set(v___x_595_, 0, v___x_598_); +v___x_600_ = v___x_595_; +goto v_reusejp_599_; +} +else +{ +lean_object* v_reuseFailAlloc_602_; +v_reuseFailAlloc_602_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_602_, 0, v___x_598_); +v___x_600_ = v_reuseFailAlloc_602_; +goto v_reusejp_599_; +} +v_reusejp_599_: +{ +lean_object* v___x_601_; +v___x_601_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_601_, 0, v___x_600_); +return v___x_601_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__10___boxed(lean_object* v_a_605_, lean_object* v_x_606_, lean_object* v___y_607_){ +_start: +{ +lean_object* v_res_608_; +v_res_608_ = l_Std_Http_Server_serve___redArg___lam__10(v_a_605_, v_x_606_); +return v_res_608_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__12(lean_object* v___f_609_, lean_object* v_a_610_, lean_object* v_x_611_){ +_start: +{ +if (lean_obj_tag(v_x_611_) == 0) +{ +lean_object* v___x_613_; +lean_dec_ref(v_a_610_); +lean_dec_ref(v___f_609_); +v___x_613_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_613_, 0, v_x_611_); +return v___x_613_; +} +else +{ +lean_object* v_a_614_; lean_object* v___x_615_; +v_a_614_ = lean_ctor_get(v_x_611_, 0); +lean_inc(v_a_614_); +lean_dec_ref(v_x_611_); +v___x_615_ = lean_apply_3(v___f_609_, v_a_614_, v_a_610_, lean_box(0)); +return v___x_615_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__12___boxed(lean_object* v___f_616_, lean_object* v_a_617_, lean_object* v_x_618_, lean_object* v___y_619_){ +_start: +{ +lean_object* v_res_620_; +v_res_620_ = l_Std_Http_Server_serve___redArg___lam__12(v___f_616_, v_a_617_, v_x_618_); +return v_res_620_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__11(uint8_t v_permitAcquired_621_, lean_object* v___f_622_, lean_object* v___x_623_, lean_object* v_a_624_, lean_object* v_connectionLimit_625_, lean_object* v___x_626_, uint8_t v___x_627_, lean_object* v___f_628_, lean_object* v_opt_629_){ +_start: +{ +if (v_permitAcquired_621_ == 0) +{ +lean_object* v___x_631_; +lean_dec_ref(v___f_628_); +lean_dec(v___x_626_); +lean_dec(v_connectionLimit_625_); +v___x_631_ = lean_apply_3(v___f_622_, v___x_623_, v_a_624_, lean_box(0)); +return v___x_631_; +} +else +{ +if (lean_obj_tag(v_connectionLimit_625_) == 1) +{ +lean_object* v_val_632_; lean_object* v___x_634_; uint8_t v_isShared_635_; uint8_t v_isSharedCheck_642_; +lean_dec_ref(v_a_624_); +lean_dec_ref(v___f_622_); +v_val_632_ = lean_ctor_get(v_connectionLimit_625_, 0); +v_isSharedCheck_642_ = !lean_is_exclusive(v_connectionLimit_625_); +if (v_isSharedCheck_642_ == 0) +{ +v___x_634_ = v_connectionLimit_625_; +v_isShared_635_ = v_isSharedCheck_642_; +goto v_resetjp_633_; +} +else +{ +lean_inc(v_val_632_); +lean_dec(v_connectionLimit_625_); +v___x_634_ = lean_box(0); +v_isShared_635_ = v_isSharedCheck_642_; +goto v_resetjp_633_; +} +v_resetjp_633_: +{ +lean_object* v___x_636_; lean_object* v___x_638_; +v___x_636_ = l_Std_Semaphore_release(v_val_632_); +if (v_isShared_635_ == 0) +{ +lean_ctor_set(v___x_634_, 0, v___x_636_); +v___x_638_ = v___x_634_; +goto v_reusejp_637_; +} +else +{ +lean_object* v_reuseFailAlloc_641_; +v_reuseFailAlloc_641_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_641_, 0, v___x_636_); +v___x_638_ = v_reuseFailAlloc_641_; +goto v_reusejp_637_; +} +v_reusejp_637_: +{ +lean_object* v___x_639_; lean_object* v___x_640_; +v___x_639_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_639_, 0, v___x_638_); +v___x_640_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_626_, v___x_627_, v___x_639_, v___f_628_); +return v___x_640_; +} +} +} +else +{ +lean_object* v___x_643_; +lean_dec_ref(v___f_628_); +lean_dec(v___x_626_); +lean_dec(v_connectionLimit_625_); +v___x_643_ = lean_apply_3(v___f_622_, v___x_623_, v_a_624_, lean_box(0)); +return v___x_643_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__11___boxed(lean_object* v_permitAcquired_644_, lean_object* v___f_645_, lean_object* v___x_646_, lean_object* v_a_647_, lean_object* v_connectionLimit_648_, lean_object* v___x_649_, lean_object* v___x_650_, lean_object* v___f_651_, lean_object* v_opt_652_, lean_object* v___y_653_){ +_start: +{ +uint8_t v_permitAcquired_boxed_654_; uint8_t v___x_11148__boxed_655_; lean_object* v_res_656_; +v_permitAcquired_boxed_654_ = lean_unbox(v_permitAcquired_644_); +v___x_11148__boxed_655_ = lean_unbox(v___x_650_); +v_res_656_ = l_Std_Http_Server_serve___redArg___lam__11(v_permitAcquired_boxed_654_, v___f_645_, v___x_646_, v_a_647_, v_connectionLimit_648_, v___x_649_, v___x_11148__boxed_655_, v___f_651_, v_opt_652_); +lean_dec(v_opt_652_); +return v_res_656_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__13(lean_object* v___x_657_, lean_object* v_inst_658_, lean_object* v_val_659_, lean_object* v_handler_660_, lean_object* v_config_661_, lean_object* v_extensions_662_, lean_object* v_a_663_, lean_object* v___f_664_, lean_object* v___x_665_, uint8_t v___x_666_, lean_object* v___f_667_, lean_object* v_x_668_){ +_start: +{ +if (lean_obj_tag(v_x_668_) == 0) +{ +lean_object* v___x_670_; +lean_dec_ref(v___f_667_); +lean_dec(v___x_665_); +lean_dec_ref(v___f_664_); +lean_dec_ref(v_a_663_); +lean_dec(v_extensions_662_); +lean_dec_ref(v_config_661_); +lean_dec(v_handler_660_); +lean_dec(v_val_659_); +lean_dec_ref(v_inst_658_); +lean_dec_ref(v___x_657_); +v___x_670_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_670_, 0, v_x_668_); +return v___x_670_; +} +else +{ +lean_object* v___x_672_; uint8_t v_isShared_673_; uint8_t v_isSharedCheck_709_; +v_isSharedCheck_709_ = !lean_is_exclusive(v_x_668_); +if (v_isSharedCheck_709_ == 0) +{ +lean_object* v_unused_710_; +v_unused_710_ = lean_ctor_get(v_x_668_, 0); +lean_dec(v_unused_710_); +v___x_672_ = v_x_668_; +v_isShared_673_ = v_isSharedCheck_709_; +goto v_resetjp_671_; +} +else +{ +lean_dec(v_x_668_); +v___x_672_ = lean_box(0); +v_isShared_673_ = v_isSharedCheck_709_; +goto v_resetjp_671_; +} +v_resetjp_671_: +{ +lean_object* v___x_674_; lean_object* v___x_675_; lean_object* v___y_677_; +v___x_674_ = lean_alloc_closure((void*)(l_Std_Http_Server_serveConnection___boxed), 10, 9); +lean_closure_set(v___x_674_, 0, lean_box(0)); +lean_closure_set(v___x_674_, 1, lean_box(0)); +lean_closure_set(v___x_674_, 2, v___x_657_); +lean_closure_set(v___x_674_, 3, v_inst_658_); +lean_closure_set(v___x_674_, 4, v_val_659_); +lean_closure_set(v___x_674_, 5, v_handler_660_); +lean_closure_set(v___x_674_, 6, v_config_661_); +lean_closure_set(v___x_674_, 7, v_extensions_662_); +lean_closure_set(v___x_674_, 8, v_a_663_); +lean_inc(v___x_665_); +v___x_675_ = l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(v___x_674_, v___f_664_, v___x_665_, v___x_666_); +if (lean_obj_tag(v___x_675_) == 0) +{ +lean_object* v_a_681_; +lean_dec_ref(v___f_667_); +lean_dec(v___x_665_); +v_a_681_ = lean_ctor_get(v___x_675_, 0); +lean_inc(v_a_681_); +lean_dec_ref(v___x_675_); +if (lean_obj_tag(v_a_681_) == 0) +{ +lean_object* v_a_682_; lean_object* v___x_684_; uint8_t v_isShared_685_; uint8_t v_isSharedCheck_689_; +v_a_682_ = lean_ctor_get(v_a_681_, 0); +v_isSharedCheck_689_ = !lean_is_exclusive(v_a_681_); +if (v_isSharedCheck_689_ == 0) +{ +v___x_684_ = v_a_681_; +v_isShared_685_ = v_isSharedCheck_689_; +goto v_resetjp_683_; +} +else +{ +lean_inc(v_a_682_); +lean_dec(v_a_681_); +v___x_684_ = lean_box(0); +v_isShared_685_ = v_isSharedCheck_689_; +goto v_resetjp_683_; +} +v_resetjp_683_: +{ +lean_object* v___x_687_; +if (v_isShared_685_ == 0) +{ +v___x_687_ = v___x_684_; +goto v_reusejp_686_; +} +else +{ +lean_object* v_reuseFailAlloc_688_; +v_reuseFailAlloc_688_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_688_, 0, v_a_682_); +v___x_687_ = v_reuseFailAlloc_688_; +goto v_reusejp_686_; +} +v_reusejp_686_: +{ +v___y_677_ = v___x_687_; +goto v___jp_676_; +} +} +} +else +{ +lean_object* v_a_690_; lean_object* v___x_692_; uint8_t v_isShared_693_; uint8_t v_isSharedCheck_698_; +v_a_690_ = lean_ctor_get(v_a_681_, 0); +v_isSharedCheck_698_ = !lean_is_exclusive(v_a_681_); +if (v_isSharedCheck_698_ == 0) +{ +v___x_692_ = v_a_681_; +v_isShared_693_ = v_isSharedCheck_698_; +goto v_resetjp_691_; +} +else +{ +lean_inc(v_a_690_); +lean_dec(v_a_681_); +v___x_692_ = lean_box(0); +v_isShared_693_ = v_isSharedCheck_698_; +goto v_resetjp_691_; +} +v_resetjp_691_: +{ +lean_object* v_fst_694_; lean_object* v___x_696_; +v_fst_694_ = lean_ctor_get(v_a_690_, 0); +lean_inc(v_fst_694_); +lean_dec(v_a_690_); +if (v_isShared_693_ == 0) +{ +lean_ctor_set(v___x_692_, 0, v_fst_694_); +v___x_696_ = v___x_692_; +goto v_reusejp_695_; +} +else +{ +lean_object* v_reuseFailAlloc_697_; +v_reuseFailAlloc_697_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_697_, 0, v_fst_694_); +v___x_696_ = v_reuseFailAlloc_697_; +goto v_reusejp_695_; +} +v_reusejp_695_: +{ +v___y_677_ = v___x_696_; +goto v___jp_676_; +} +} +} +} +else +{ +lean_object* v_a_699_; lean_object* v___x_701_; uint8_t v_isShared_702_; uint8_t v_isSharedCheck_708_; +lean_del_object(v___x_672_); +v_a_699_ = lean_ctor_get(v___x_675_, 0); +v_isSharedCheck_708_ = !lean_is_exclusive(v___x_675_); +if (v_isSharedCheck_708_ == 0) +{ +v___x_701_ = v___x_675_; +v_isShared_702_ = v_isSharedCheck_708_; +goto v_resetjp_700_; +} +else +{ +lean_inc(v_a_699_); +lean_dec(v___x_675_); +v___x_701_ = lean_box(0); +v_isShared_702_ = v_isSharedCheck_708_; +goto v_resetjp_700_; +} +v_resetjp_700_: +{ +lean_object* v___x_703_; lean_object* v___x_704_; lean_object* v___x_706_; +v___x_703_ = lean_alloc_closure((void*)(l_Except_map), 5, 4); +lean_closure_set(v___x_703_, 0, lean_box(0)); +lean_closure_set(v___x_703_, 1, lean_box(0)); +lean_closure_set(v___x_703_, 2, lean_box(0)); +lean_closure_set(v___x_703_, 3, v___f_667_); +v___x_704_ = lean_task_map(v___x_703_, v_a_699_, v___x_665_, v___x_666_); +if (v_isShared_702_ == 0) +{ +lean_ctor_set(v___x_701_, 0, v___x_704_); +v___x_706_ = v___x_701_; +goto v_reusejp_705_; +} +else +{ +lean_object* v_reuseFailAlloc_707_; +v_reuseFailAlloc_707_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_707_, 0, v___x_704_); +v___x_706_ = v_reuseFailAlloc_707_; +goto v_reusejp_705_; +} +v_reusejp_705_: +{ +return v___x_706_; +} +} +} +v___jp_676_: +{ +lean_object* v___x_679_; +if (v_isShared_673_ == 0) +{ +lean_ctor_set_tag(v___x_672_, 0); +lean_ctor_set(v___x_672_, 0, v___y_677_); +v___x_679_ = v___x_672_; +goto v_reusejp_678_; +} +else +{ +lean_object* v_reuseFailAlloc_680_; +v_reuseFailAlloc_680_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_680_, 0, v___y_677_); +v___x_679_ = v_reuseFailAlloc_680_; +goto v_reusejp_678_; +} +v_reusejp_678_: +{ +return v___x_679_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__13___boxed(lean_object* v___x_711_, lean_object* v_inst_712_, lean_object* v_val_713_, lean_object* v_handler_714_, lean_object* v_config_715_, lean_object* v_extensions_716_, lean_object* v_a_717_, lean_object* v___f_718_, lean_object* v___x_719_, lean_object* v___x_720_, lean_object* v___f_721_, lean_object* v_x_722_, lean_object* v___y_723_){ +_start: +{ +uint8_t v___x_11197__boxed_724_; lean_object* v_res_725_; +v___x_11197__boxed_724_ = lean_unbox(v___x_720_); +v_res_725_ = l_Std_Http_Server_serve___redArg___lam__13(v___x_711_, v_inst_712_, v_val_713_, v_handler_714_, v_config_715_, v_extensions_716_, v_a_717_, v___f_718_, v___x_719_, v___x_11197__boxed_724_, v___f_721_, v_x_722_); +return v_res_725_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__14(lean_object* v___x_726_, lean_object* v_activeConnections_727_, lean_object* v___f_728_, lean_object* v_a_729_, lean_object* v___f_730_, lean_object* v___f_731_, uint8_t v_permitAcquired_732_, lean_object* v___x_733_, lean_object* v_connectionLimit_734_, lean_object* v___x_735_, uint8_t v___x_736_, lean_object* v___x_737_, lean_object* v_inst_738_, lean_object* v_val_739_, lean_object* v_handler_740_, lean_object* v_config_741_, lean_object* v_extensions_742_, lean_object* v___f_743_, lean_object* v___f_744_){ +_start: +{ +lean_object* v___f_746_; lean_object* v___f_747_; lean_object* v___x_10350__overap_748_; lean_object* v___x_749_; lean_object* v___f_750_; lean_object* v___f_751_; lean_object* v___x_752_; lean_object* v___x_753_; lean_object* v___f_754_; lean_object* v___x_755_; lean_object* v___f_756_; lean_object* v___x_757_; lean_object* v___x_758_; +v___f_746_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__3)); +v___f_747_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__4)); +lean_inc_ref(v_activeConnections_727_); +lean_inc_ref(v___x_726_); +v___x_10350__overap_748_ = l_Std_Mutex_atomically___redArg(v___x_726_, v___f_746_, v___f_747_, v_activeConnections_727_, v___f_728_); +lean_inc_ref_n(v_a_729_, 3); +v___x_749_ = lean_apply_2(v___x_10350__overap_748_, v_a_729_, lean_box(0)); +v___f_750_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__6___boxed), 9, 6); +lean_closure_set(v___f_750_, 0, v___x_726_); +lean_closure_set(v___f_750_, 1, v___f_730_); +lean_closure_set(v___f_750_, 2, v___f_731_); +lean_closure_set(v___f_750_, 3, v___f_746_); +lean_closure_set(v___f_750_, 4, v___f_747_); +lean_closure_set(v___f_750_, 5, v_activeConnections_727_); +lean_inc_ref(v___f_750_); +v___f_751_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__12___boxed), 4, 2); +lean_closure_set(v___f_751_, 0, v___f_750_); +lean_closure_set(v___f_751_, 1, v_a_729_); +v___x_752_ = lean_box(v_permitAcquired_732_); +v___x_753_ = lean_box(v___x_736_); +lean_inc_n(v___x_735_, 3); +v___f_754_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__11___boxed), 10, 8); +lean_closure_set(v___f_754_, 0, v___x_752_); +lean_closure_set(v___f_754_, 1, v___f_750_); +lean_closure_set(v___f_754_, 2, v___x_733_); +lean_closure_set(v___f_754_, 3, v_a_729_); +lean_closure_set(v___f_754_, 4, v_connectionLimit_734_); +lean_closure_set(v___f_754_, 5, v___x_735_); +lean_closure_set(v___f_754_, 6, v___x_753_); +lean_closure_set(v___f_754_, 7, v___f_751_); +v___x_755_ = lean_box(v___x_736_); +v___f_756_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__13___boxed), 13, 11); +lean_closure_set(v___f_756_, 0, v___x_737_); +lean_closure_set(v___f_756_, 1, v_inst_738_); +lean_closure_set(v___f_756_, 2, v_val_739_); +lean_closure_set(v___f_756_, 3, v_handler_740_); +lean_closure_set(v___f_756_, 4, v_config_741_); +lean_closure_set(v___f_756_, 5, v_extensions_742_); +lean_closure_set(v___f_756_, 6, v_a_729_); +lean_closure_set(v___f_756_, 7, v___f_754_); +lean_closure_set(v___f_756_, 8, v___x_735_); +lean_closure_set(v___f_756_, 9, v___x_755_); +lean_closure_set(v___f_756_, 10, v___f_743_); +v___x_757_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_735_, v___x_736_, v___x_749_, v___f_756_); +v___x_758_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_735_, v___x_736_, v___x_757_, v___f_744_); +return v___x_758_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__14___boxed(lean_object** _args){ +lean_object* v___x_759_ = _args[0]; +lean_object* v_activeConnections_760_ = _args[1]; +lean_object* v___f_761_ = _args[2]; +lean_object* v_a_762_ = _args[3]; +lean_object* v___f_763_ = _args[4]; +lean_object* v___f_764_ = _args[5]; +lean_object* v_permitAcquired_765_ = _args[6]; +lean_object* v___x_766_ = _args[7]; +lean_object* v_connectionLimit_767_ = _args[8]; +lean_object* v___x_768_ = _args[9]; +lean_object* v___x_769_ = _args[10]; +lean_object* v___x_770_ = _args[11]; +lean_object* v_inst_771_ = _args[12]; +lean_object* v_val_772_ = _args[13]; +lean_object* v_handler_773_ = _args[14]; +lean_object* v_config_774_ = _args[15]; +lean_object* v_extensions_775_ = _args[16]; +lean_object* v___f_776_ = _args[17]; +lean_object* v___f_777_ = _args[18]; +lean_object* v___y_778_ = _args[19]; +_start: +{ +uint8_t v_permitAcquired_boxed_779_; uint8_t v___x_11316__boxed_780_; lean_object* v_res_781_; +v_permitAcquired_boxed_779_ = lean_unbox(v_permitAcquired_765_); +v___x_11316__boxed_780_ = lean_unbox(v___x_769_); +v_res_781_ = l_Std_Http_Server_serve___redArg___lam__14(v___x_759_, v_activeConnections_760_, v___f_761_, v_a_762_, v___f_763_, v___f_764_, v_permitAcquired_boxed_779_, v___x_766_, v_connectionLimit_767_, v___x_768_, v___x_11316__boxed_780_, v___x_770_, v_inst_771_, v_val_772_, v_handler_773_, v_config_774_, v_extensions_775_, v___f_776_, v___f_777_); +return v_res_781_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__15(lean_object* v___x_782_, lean_object* v_activeConnections_783_, lean_object* v___f_784_, lean_object* v___f_785_, lean_object* v___f_786_, uint8_t v_permitAcquired_787_, lean_object* v___x_788_, lean_object* v_connectionLimit_789_, lean_object* v___x_790_, uint8_t v___x_791_, lean_object* v___x_792_, lean_object* v_inst_793_, lean_object* v_val_794_, lean_object* v_handler_795_, lean_object* v_config_796_, lean_object* v_extensions_797_, lean_object* v___f_798_, lean_object* v_x_799_){ +_start: +{ +if (lean_obj_tag(v_x_799_) == 0) +{ +lean_object* v_a_801_; lean_object* v___x_803_; uint8_t v_isShared_804_; uint8_t v_isSharedCheck_809_; +lean_dec_ref(v___f_798_); +lean_dec(v_extensions_797_); +lean_dec_ref(v_config_796_); +lean_dec(v_handler_795_); +lean_dec(v_val_794_); +lean_dec_ref(v_inst_793_); +lean_dec_ref(v___x_792_); +lean_dec(v___x_790_); +lean_dec(v_connectionLimit_789_); +lean_dec_ref(v___f_786_); +lean_dec_ref(v___f_785_); +lean_dec_ref(v___f_784_); +lean_dec_ref(v_activeConnections_783_); +lean_dec_ref(v___x_782_); +v_a_801_ = lean_ctor_get(v_x_799_, 0); +v_isSharedCheck_809_ = !lean_is_exclusive(v_x_799_); +if (v_isSharedCheck_809_ == 0) +{ +v___x_803_ = v_x_799_; +v_isShared_804_ = v_isSharedCheck_809_; +goto v_resetjp_802_; +} +else +{ +lean_inc(v_a_801_); +lean_dec(v_x_799_); +v___x_803_ = lean_box(0); +v_isShared_804_ = v_isSharedCheck_809_; +goto v_resetjp_802_; +} +v_resetjp_802_: +{ +lean_object* v___x_806_; +if (v_isShared_804_ == 0) +{ +v___x_806_ = v___x_803_; +goto v_reusejp_805_; +} +else +{ +lean_object* v_reuseFailAlloc_808_; +v_reuseFailAlloc_808_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_808_, 0, v_a_801_); +v___x_806_ = v_reuseFailAlloc_808_; +goto v_reusejp_805_; +} +v_reusejp_805_: +{ +lean_object* v___x_807_; +v___x_807_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_807_, 0, v___x_806_); +return v___x_807_; +} +} +} +else +{ +lean_object* v_a_810_; lean_object* v___x_812_; uint8_t v_isShared_813_; uint8_t v_isSharedCheck_824_; +v_a_810_ = lean_ctor_get(v_x_799_, 0); +v_isSharedCheck_824_ = !lean_is_exclusive(v_x_799_); +if (v_isSharedCheck_824_ == 0) +{ +v___x_812_ = v_x_799_; +v_isShared_813_ = v_isSharedCheck_824_; +goto v_resetjp_811_; +} +else +{ +lean_inc(v_a_810_); +lean_dec(v_x_799_); +v___x_812_ = lean_box(0); +v_isShared_813_ = v_isSharedCheck_824_; +goto v_resetjp_811_; +} +v_resetjp_811_: +{ +lean_object* v___f_814_; lean_object* v___x_815_; lean_object* v___x_816_; lean_object* v___f_817_; lean_object* v___x_818_; lean_object* v___x_819_; lean_object* v___x_821_; +lean_inc(v_a_810_); +v___f_814_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__10___boxed), 3, 1); +lean_closure_set(v___f_814_, 0, v_a_810_); +v___x_815_ = lean_box(v_permitAcquired_787_); +v___x_816_ = lean_box(v___x_791_); +lean_inc(v___x_790_); +v___f_817_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__14___boxed), 20, 19); +lean_closure_set(v___f_817_, 0, v___x_782_); +lean_closure_set(v___f_817_, 1, v_activeConnections_783_); +lean_closure_set(v___f_817_, 2, v___f_784_); +lean_closure_set(v___f_817_, 3, v_a_810_); +lean_closure_set(v___f_817_, 4, v___f_785_); +lean_closure_set(v___f_817_, 5, v___f_786_); +lean_closure_set(v___f_817_, 6, v___x_815_); +lean_closure_set(v___f_817_, 7, v___x_788_); +lean_closure_set(v___f_817_, 8, v_connectionLimit_789_); +lean_closure_set(v___f_817_, 9, v___x_790_); +lean_closure_set(v___f_817_, 10, v___x_816_); +lean_closure_set(v___f_817_, 11, v___x_792_); +lean_closure_set(v___f_817_, 12, v_inst_793_); +lean_closure_set(v___f_817_, 13, v_val_794_); +lean_closure_set(v___f_817_, 14, v_handler_795_); +lean_closure_set(v___f_817_, 15, v_config_796_); +lean_closure_set(v___f_817_, 16, v_extensions_797_); +lean_closure_set(v___f_817_, 17, v___f_798_); +lean_closure_set(v___f_817_, 18, v___f_814_); +v___x_818_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed), 3, 2); +lean_closure_set(v___x_818_, 0, lean_box(0)); +lean_closure_set(v___x_818_, 1, v___f_817_); +v___x_819_ = lean_io_as_task(v___x_818_, v___x_790_); +lean_dec_ref(v___x_819_); +if (v_isShared_813_ == 0) +{ +lean_ctor_set(v___x_812_, 0, v___x_788_); +v___x_821_ = v___x_812_; +goto v_reusejp_820_; +} +else +{ +lean_object* v_reuseFailAlloc_823_; +v_reuseFailAlloc_823_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_823_, 0, v___x_788_); +v___x_821_ = v_reuseFailAlloc_823_; +goto v_reusejp_820_; +} +v_reusejp_820_: +{ +lean_object* v___x_822_; +v___x_822_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_822_, 0, v___x_821_); +return v___x_822_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__15___boxed(lean_object** _args){ +lean_object* v___x_825_ = _args[0]; +lean_object* v_activeConnections_826_ = _args[1]; +lean_object* v___f_827_ = _args[2]; +lean_object* v___f_828_ = _args[3]; +lean_object* v___f_829_ = _args[4]; +lean_object* v_permitAcquired_830_ = _args[5]; +lean_object* v___x_831_ = _args[6]; +lean_object* v_connectionLimit_832_ = _args[7]; +lean_object* v___x_833_ = _args[8]; +lean_object* v___x_834_ = _args[9]; +lean_object* v___x_835_ = _args[10]; +lean_object* v_inst_836_ = _args[11]; +lean_object* v_val_837_ = _args[12]; +lean_object* v_handler_838_ = _args[13]; +lean_object* v_config_839_ = _args[14]; +lean_object* v_extensions_840_ = _args[15]; +lean_object* v___f_841_ = _args[16]; +lean_object* v_x_842_ = _args[17]; +lean_object* v___y_843_ = _args[18]; +_start: +{ +uint8_t v_permitAcquired_boxed_844_; uint8_t v___x_11383__boxed_845_; lean_object* v_res_846_; +v_permitAcquired_boxed_844_ = lean_unbox(v_permitAcquired_830_); +v___x_11383__boxed_845_ = lean_unbox(v___x_834_); +v_res_846_ = l_Std_Http_Server_serve___redArg___lam__15(v___x_825_, v_activeConnections_826_, v___f_827_, v___f_828_, v___f_829_, v_permitAcquired_boxed_844_, v___x_831_, v_connectionLimit_832_, v___x_833_, v___x_11383__boxed_845_, v___x_835_, v_inst_836_, v_val_837_, v_handler_838_, v_config_839_, v_extensions_840_, v___f_841_, v_x_842_); +return v_res_846_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__16(lean_object* v___x_847_, uint8_t v___x_848_, lean_object* v___f_849_, lean_object* v_x_850_){ +_start: +{ +if (lean_obj_tag(v_x_850_) == 0) +{ +lean_object* v_a_852_; lean_object* v___x_854_; uint8_t v_isShared_855_; uint8_t v_isSharedCheck_860_; +lean_dec_ref(v___f_849_); +lean_dec(v___x_847_); +v_a_852_ = lean_ctor_get(v_x_850_, 0); +v_isSharedCheck_860_ = !lean_is_exclusive(v_x_850_); +if (v_isSharedCheck_860_ == 0) +{ +v___x_854_ = v_x_850_; +v_isShared_855_ = v_isSharedCheck_860_; +goto v_resetjp_853_; +} +else +{ +lean_inc(v_a_852_); +lean_dec(v_x_850_); +v___x_854_ = lean_box(0); +v_isShared_855_ = v_isSharedCheck_860_; +goto v_resetjp_853_; +} +v_resetjp_853_: +{ +lean_object* v___x_857_; +if (v_isShared_855_ == 0) +{ +v___x_857_ = v___x_854_; +goto v_reusejp_856_; +} +else +{ +lean_object* v_reuseFailAlloc_859_; +v_reuseFailAlloc_859_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_859_, 0, v_a_852_); +v___x_857_ = v_reuseFailAlloc_859_; +goto v_reusejp_856_; +} +v_reusejp_856_: +{ +lean_object* v___x_858_; +v___x_858_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_858_, 0, v___x_857_); +return v___x_858_; +} +} +} +else +{ +lean_object* v_a_861_; lean_object* v___x_863_; uint8_t v_isShared_864_; uint8_t v_isSharedCheck_871_; +v_a_861_ = lean_ctor_get(v_x_850_, 0); +v_isSharedCheck_871_ = !lean_is_exclusive(v_x_850_); +if (v_isSharedCheck_871_ == 0) +{ +v___x_863_ = v_x_850_; +v_isShared_864_ = v_isSharedCheck_871_; +goto v_resetjp_862_; +} +else +{ +lean_inc(v_a_861_); +lean_dec(v_x_850_); +v___x_863_ = lean_box(0); +v_isShared_864_ = v_isSharedCheck_871_; +goto v_resetjp_862_; +} +v_resetjp_862_: +{ +lean_object* v___x_865_; lean_object* v___x_867_; +v___x_865_ = l_Std_CancellationContext_fork(v_a_861_); +if (v_isShared_864_ == 0) +{ +lean_ctor_set(v___x_863_, 0, v___x_865_); +v___x_867_ = v___x_863_; +goto v_reusejp_866_; +} +else +{ +lean_object* v_reuseFailAlloc_870_; +v_reuseFailAlloc_870_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_870_, 0, v___x_865_); +v___x_867_ = v_reuseFailAlloc_870_; +goto v_reusejp_866_; +} +v_reusejp_866_: +{ +lean_object* v___x_868_; lean_object* v___x_869_; +v___x_868_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_868_, 0, v___x_867_); +v___x_869_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_847_, v___x_848_, v___x_868_, v___f_849_); +return v___x_869_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__16___boxed(lean_object* v___x_872_, lean_object* v___x_873_, lean_object* v___f_874_, lean_object* v_x_875_, lean_object* v___y_876_){ +_start: +{ +uint8_t v___x_11465__boxed_877_; lean_object* v_res_878_; +v___x_11465__boxed_877_ = lean_unbox(v___x_873_); +v_res_878_ = l_Std_Http_Server_serve___redArg___lam__16(v___x_872_, v___x_11465__boxed_877_, v___f_874_, v_x_875_); +return v_res_878_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__17(lean_object* v___x_879_, lean_object* v_activeConnections_880_, lean_object* v___f_881_, lean_object* v___f_882_, lean_object* v___f_883_, uint8_t v_permitAcquired_884_, lean_object* v___x_885_, lean_object* v_connectionLimit_886_, uint8_t v___x_887_, lean_object* v_inst_888_, lean_object* v_val_889_, lean_object* v_handler_890_, lean_object* v_config_891_, lean_object* v___f_892_, lean_object* v___f_893_, lean_object* v_extensions_894_, lean_object* v___y_895_){ +_start: +{ +lean_object* v___x_897_; lean_object* v___x_898_; lean_object* v___x_899_; lean_object* v___x_900_; lean_object* v___f_901_; lean_object* v___x_902_; lean_object* v___f_903_; lean_object* v___x_904_; lean_object* v___x_905_; lean_object* v___x_906_; lean_object* v___x_907_; +v___x_897_ = l_Std_Http_instTransportClient; +v___x_898_ = lean_unsigned_to_nat(0u); +v___x_899_ = lean_box(v_permitAcquired_884_); +v___x_900_ = lean_box(v___x_887_); +v___f_901_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__15___boxed), 19, 17); +lean_closure_set(v___f_901_, 0, v___x_879_); +lean_closure_set(v___f_901_, 1, v_activeConnections_880_); +lean_closure_set(v___f_901_, 2, v___f_881_); +lean_closure_set(v___f_901_, 3, v___f_882_); +lean_closure_set(v___f_901_, 4, v___f_883_); +lean_closure_set(v___f_901_, 5, v___x_899_); +lean_closure_set(v___f_901_, 6, v___x_885_); +lean_closure_set(v___f_901_, 7, v_connectionLimit_886_); +lean_closure_set(v___f_901_, 8, v___x_898_); +lean_closure_set(v___f_901_, 9, v___x_900_); +lean_closure_set(v___f_901_, 10, v___x_897_); +lean_closure_set(v___f_901_, 11, v_inst_888_); +lean_closure_set(v___f_901_, 12, v_val_889_); +lean_closure_set(v___f_901_, 13, v_handler_890_); +lean_closure_set(v___f_901_, 14, v_config_891_); +lean_closure_set(v___f_901_, 15, v_extensions_894_); +lean_closure_set(v___f_901_, 16, v___f_892_); +v___x_902_ = lean_box(v___x_887_); +v___f_903_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__16___boxed), 5, 3); +lean_closure_set(v___f_903_, 0, v___x_898_); +lean_closure_set(v___f_903_, 1, v___x_902_); +lean_closure_set(v___f_903_, 2, v___f_901_); +lean_inc_ref(v___y_895_); +v___x_904_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_904_, 0, v___y_895_); +v___x_905_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_905_, 0, v___x_904_); +v___x_906_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_898_, v___x_887_, v___x_905_, v___f_903_); +v___x_907_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_898_, v___x_887_, v___x_906_, v___f_893_); +return v___x_907_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__17___boxed(lean_object** _args){ +lean_object* v___x_908_ = _args[0]; +lean_object* v_activeConnections_909_ = _args[1]; +lean_object* v___f_910_ = _args[2]; +lean_object* v___f_911_ = _args[3]; +lean_object* v___f_912_ = _args[4]; +lean_object* v_permitAcquired_913_ = _args[5]; +lean_object* v___x_914_ = _args[6]; +lean_object* v_connectionLimit_915_ = _args[7]; +lean_object* v___x_916_ = _args[8]; +lean_object* v_inst_917_ = _args[9]; +lean_object* v_val_918_ = _args[10]; +lean_object* v_handler_919_ = _args[11]; +lean_object* v_config_920_ = _args[12]; +lean_object* v___f_921_ = _args[13]; +lean_object* v___f_922_ = _args[14]; +lean_object* v_extensions_923_ = _args[15]; +lean_object* v___y_924_ = _args[16]; +lean_object* v___y_925_ = _args[17]; +_start: +{ +uint8_t v_permitAcquired_boxed_926_; uint8_t v___x_11524__boxed_927_; lean_object* v_res_928_; +v_permitAcquired_boxed_926_ = lean_unbox(v_permitAcquired_913_); +v___x_11524__boxed_927_ = lean_unbox(v___x_916_); +v_res_928_ = l_Std_Http_Server_serve___redArg___lam__17(v___x_908_, v_activeConnections_909_, v___f_910_, v___f_911_, v___f_912_, v_permitAcquired_boxed_926_, v___x_914_, v_connectionLimit_915_, v___x_11524__boxed_927_, v_inst_917_, v_val_918_, v_handler_919_, v_config_920_, v___f_921_, v___f_922_, v_extensions_923_, v___y_924_); +lean_dec_ref(v___y_924_); +return v_res_928_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__18(lean_object* v___f_929_, lean_object* v___y_930_, lean_object* v_x_931_){ +_start: +{ +if (lean_obj_tag(v_x_931_) == 0) +{ +lean_object* v_a_933_; lean_object* v___x_935_; uint8_t v_isShared_936_; uint8_t v_isSharedCheck_941_; +lean_dec_ref(v___f_929_); +v_a_933_ = lean_ctor_get(v_x_931_, 0); +v_isSharedCheck_941_ = !lean_is_exclusive(v_x_931_); +if (v_isSharedCheck_941_ == 0) +{ +v___x_935_ = v_x_931_; +v_isShared_936_ = v_isSharedCheck_941_; +goto v_resetjp_934_; +} +else +{ +lean_inc(v_a_933_); +lean_dec(v_x_931_); +v___x_935_ = lean_box(0); +v_isShared_936_ = v_isSharedCheck_941_; +goto v_resetjp_934_; +} +v_resetjp_934_: +{ +lean_object* v___x_938_; +if (v_isShared_936_ == 0) +{ +v___x_938_ = v___x_935_; +goto v_reusejp_937_; +} +else +{ +lean_object* v_reuseFailAlloc_940_; +v_reuseFailAlloc_940_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_940_, 0, v_a_933_); +v___x_938_ = v_reuseFailAlloc_940_; +goto v_reusejp_937_; +} +v_reusejp_937_: +{ +lean_object* v___x_939_; +v___x_939_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_939_, 0, v___x_938_); +return v___x_939_; +} +} +} +else +{ +lean_object* v_a_942_; lean_object* v___x_943_; +v_a_942_ = lean_ctor_get(v_x_931_, 0); +lean_inc(v_a_942_); +lean_dec_ref(v_x_931_); +lean_inc_ref(v___y_930_); +v___x_943_ = lean_apply_3(v___f_929_, v_a_942_, v___y_930_, lean_box(0)); +return v___x_943_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__18___boxed(lean_object* v___f_944_, lean_object* v___y_945_, lean_object* v_x_946_, lean_object* v___y_947_){ +_start: +{ +lean_object* v_res_948_; +v_res_948_ = l_Std_Http_Server_serve___redArg___lam__18(v___f_944_, v___y_945_, v_x_946_); +lean_dec_ref(v___y_945_); +return v_res_948_; +} +} +static lean_object* _init_l_Std_Http_Server_serve___redArg___lam__20___closed__0(void){ +_start: +{ +lean_object* v___x_949_; lean_object* v___x_950_; +v___x_949_ = l_Std_Http_Extensions_empty; +v___x_950_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_950_, 0, v___x_949_); +return v___x_950_; +} +} +static lean_object* _init_l_Std_Http_Server_serve___redArg___lam__20___closed__1(void){ +_start: +{ +lean_object* v___x_951_; lean_object* v___x_952_; +v___x_951_ = lean_obj_once(&l_Std_Http_Server_serve___redArg___lam__20___closed__0, &l_Std_Http_Server_serve___redArg___lam__20___closed__0_once, _init_l_Std_Http_Server_serve___redArg___lam__20___closed__0); +v___x_952_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_952_, 0, v___x_951_); +return v___x_952_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__20(uint8_t v___x_954_, lean_object* v___f_955_, lean_object* v___f_956_, lean_object* v_x_957_){ +_start: +{ +if (lean_obj_tag(v_x_957_) == 0) +{ +lean_object* v_a_959_; lean_object* v___x_961_; uint8_t v_isShared_962_; uint8_t v_isSharedCheck_967_; +lean_dec_ref(v___f_956_); +lean_dec_ref(v___f_955_); +v_a_959_ = lean_ctor_get(v_x_957_, 0); +v_isSharedCheck_967_ = !lean_is_exclusive(v_x_957_); +if (v_isSharedCheck_967_ == 0) +{ +v___x_961_ = v_x_957_; +v_isShared_962_ = v_isSharedCheck_967_; +goto v_resetjp_960_; +} +else +{ +lean_inc(v_a_959_); +lean_dec(v_x_957_); +v___x_961_ = lean_box(0); +v_isShared_962_ = v_isSharedCheck_967_; +goto v_resetjp_960_; +} +v_resetjp_960_: +{ +lean_object* v___x_964_; +if (v_isShared_962_ == 0) +{ +v___x_964_ = v___x_961_; +goto v_reusejp_963_; +} +else +{ +lean_object* v_reuseFailAlloc_966_; +v_reuseFailAlloc_966_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_966_, 0, v_a_959_); +v___x_964_ = v_reuseFailAlloc_966_; +goto v_reusejp_963_; +} +v_reusejp_963_: +{ +lean_object* v___x_965_; +v___x_965_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_965_, 0, v___x_964_); +return v___x_965_; +} +} +} +else +{ +lean_object* v_a_968_; +v_a_968_ = lean_ctor_get(v_x_957_, 0); +lean_inc(v_a_968_); +lean_dec_ref(v_x_957_); +if (lean_obj_tag(v_a_968_) == 0) +{ +lean_object* v___x_969_; lean_object* v___x_970_; lean_object* v___x_971_; +lean_dec_ref(v_a_968_); +lean_dec_ref(v___f_956_); +v___x_969_ = lean_obj_once(&l_Std_Http_Server_serve___redArg___lam__20___closed__1, &l_Std_Http_Server_serve___redArg___lam__20___closed__1_once, _init_l_Std_Http_Server_serve___redArg___lam__20___closed__1); +v___x_970_ = lean_unsigned_to_nat(0u); +v___x_971_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_970_, v___x_954_, v___x_969_, v___f_955_); +return v___x_971_; +} +else +{ +lean_object* v_a_972_; lean_object* v___x_974_; uint8_t v_isShared_975_; uint8_t v_isSharedCheck_988_; +lean_dec_ref(v___f_955_); +v_a_972_ = lean_ctor_get(v_a_968_, 0); +v_isSharedCheck_988_ = !lean_is_exclusive(v_a_968_); +if (v_isSharedCheck_988_ == 0) +{ +v___x_974_ = v_a_968_; +v_isShared_975_ = v_isSharedCheck_988_; +goto v_resetjp_973_; +} +else +{ +lean_inc(v_a_972_); +lean_dec(v_a_968_); +v___x_974_ = lean_box(0); +v_isShared_975_ = v_isSharedCheck_988_; +goto v_resetjp_973_; +} +v_resetjp_973_: +{ +lean_object* v___x_976_; lean_object* v___x_977_; lean_object* v_dyn_978_; lean_object* v___x_979_; lean_object* v___x_980_; lean_object* v___x_981_; lean_object* v___x_983_; +v___x_976_ = l_Std_Http_Extensions_empty; +v___x_977_ = l_Std_Http_Server_instImpl_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_; +v_dyn_978_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_dyn_978_, 0, v___x_977_); +lean_ctor_set(v_dyn_978_, 1, v_a_972_); +v___x_979_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___lam__20___closed__2)); +v___x_980_ = l___private_Init_Dynamic_0__Dynamic_typeNameImpl(v_dyn_978_); +v___x_981_ = l_Std_DTreeMap_Internal_Impl_insert___redArg(v___x_979_, v___x_980_, v_dyn_978_, v___x_976_); +if (v_isShared_975_ == 0) +{ +lean_ctor_set(v___x_974_, 0, v___x_981_); +v___x_983_ = v___x_974_; +goto v_reusejp_982_; +} +else +{ +lean_object* v_reuseFailAlloc_987_; +v_reuseFailAlloc_987_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_987_, 0, v___x_981_); +v___x_983_ = v_reuseFailAlloc_987_; +goto v_reusejp_982_; +} +v_reusejp_982_: +{ +lean_object* v___x_984_; lean_object* v___x_985_; lean_object* v___x_986_; +v___x_984_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_984_, 0, v___x_983_); +v___x_985_ = lean_unsigned_to_nat(0u); +v___x_986_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_985_, v___x_954_, v___x_984_, v___f_956_); +return v___x_986_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__20___boxed(lean_object* v___x_989_, lean_object* v___f_990_, lean_object* v___f_991_, lean_object* v_x_992_, lean_object* v___y_993_){ +_start: +{ +uint8_t v___x_11621__boxed_994_; lean_object* v_res_995_; +v___x_11621__boxed_994_ = lean_unbox(v___x_989_); +v_res_995_ = l_Std_Http_Server_serve___redArg___lam__20(v___x_11621__boxed_994_, v___f_990_, v___f_991_, v_x_992_); +return v_res_995_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__19(uint8_t v_permitAcquired_996_, lean_object* v___f_997_, lean_object* v___x_998_, lean_object* v___y_999_, lean_object* v_connectionLimit_1000_, uint8_t v___x_1001_, lean_object* v___f_1002_, lean_object* v___x_1003_, lean_object* v_activeConnections_1004_, lean_object* v___f_1005_, lean_object* v___f_1006_, lean_object* v___f_1007_, lean_object* v_inst_1008_, lean_object* v_handler_1009_, lean_object* v_config_1010_, lean_object* v___f_1011_, lean_object* v___f_1012_, lean_object* v_x_1013_){ +_start: +{ +if (lean_obj_tag(v_x_1013_) == 0) +{ +lean_object* v_a_1015_; lean_object* v___x_1017_; uint8_t v_isShared_1018_; uint8_t v_isSharedCheck_1023_; +lean_dec_ref(v___f_1012_); +lean_dec_ref(v___f_1011_); +lean_dec_ref(v_config_1010_); +lean_dec(v_handler_1009_); +lean_dec_ref(v_inst_1008_); +lean_dec_ref(v___f_1007_); +lean_dec_ref(v___f_1006_); +lean_dec_ref(v___f_1005_); +lean_dec_ref(v_activeConnections_1004_); +lean_dec_ref(v___x_1003_); +lean_dec_ref(v___f_1002_); +lean_dec(v_connectionLimit_1000_); +lean_dec_ref(v___f_997_); +v_a_1015_ = lean_ctor_get(v_x_1013_, 0); +v_isSharedCheck_1023_ = !lean_is_exclusive(v_x_1013_); +if (v_isSharedCheck_1023_ == 0) +{ +v___x_1017_ = v_x_1013_; +v_isShared_1018_ = v_isSharedCheck_1023_; +goto v_resetjp_1016_; +} +else +{ +lean_inc(v_a_1015_); +lean_dec(v_x_1013_); +v___x_1017_ = lean_box(0); +v_isShared_1018_ = v_isSharedCheck_1023_; +goto v_resetjp_1016_; +} +v_resetjp_1016_: +{ +lean_object* v___x_1020_; +if (v_isShared_1018_ == 0) +{ +v___x_1020_ = v___x_1017_; +goto v_reusejp_1019_; +} +else +{ +lean_object* v_reuseFailAlloc_1022_; +v_reuseFailAlloc_1022_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1022_, 0, v_a_1015_); +v___x_1020_ = v_reuseFailAlloc_1022_; +goto v_reusejp_1019_; +} +v_reusejp_1019_: +{ +lean_object* v___x_1021_; +v___x_1021_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1021_, 0, v___x_1020_); +return v___x_1021_; +} +} +} +else +{ +lean_object* v_a_1024_; lean_object* v___x_1026_; uint8_t v_isShared_1027_; uint8_t v_isSharedCheck_1082_; +v_a_1024_ = lean_ctor_get(v_x_1013_, 0); +v_isSharedCheck_1082_ = !lean_is_exclusive(v_x_1013_); +if (v_isSharedCheck_1082_ == 0) +{ +v___x_1026_ = v_x_1013_; +v_isShared_1027_ = v_isSharedCheck_1082_; +goto v_resetjp_1025_; +} +else +{ +lean_inc(v_a_1024_); +lean_dec(v_x_1013_); +v___x_1026_ = lean_box(0); +v_isShared_1027_ = v_isSharedCheck_1082_; +goto v_resetjp_1025_; +} +v_resetjp_1025_: +{ +if (lean_obj_tag(v_a_1024_) == 0) +{ +lean_dec_ref(v___f_1012_); +lean_dec_ref(v___f_1011_); +lean_dec_ref(v_config_1010_); +lean_dec(v_handler_1009_); +lean_dec_ref(v_inst_1008_); +lean_dec_ref(v___f_1007_); +lean_dec_ref(v___f_1006_); +lean_dec_ref(v___f_1005_); +lean_dec_ref(v_activeConnections_1004_); +lean_dec_ref(v___x_1003_); +if (v_permitAcquired_996_ == 0) +{ +lean_object* v___x_1028_; +lean_del_object(v___x_1026_); +lean_dec_ref(v___f_1002_); +lean_dec(v_connectionLimit_1000_); +lean_inc_ref(v___y_999_); +v___x_1028_ = lean_apply_3(v___f_997_, v___x_998_, v___y_999_, lean_box(0)); +return v___x_1028_; +} +else +{ +if (lean_obj_tag(v_connectionLimit_1000_) == 1) +{ +lean_object* v_val_1029_; lean_object* v___x_1031_; uint8_t v_isShared_1032_; uint8_t v_isSharedCheck_1042_; +lean_dec_ref(v___f_997_); +v_val_1029_ = lean_ctor_get(v_connectionLimit_1000_, 0); +v_isSharedCheck_1042_ = !lean_is_exclusive(v_connectionLimit_1000_); +if (v_isSharedCheck_1042_ == 0) +{ +v___x_1031_ = v_connectionLimit_1000_; +v_isShared_1032_ = v_isSharedCheck_1042_; +goto v_resetjp_1030_; +} +else +{ +lean_inc(v_val_1029_); +lean_dec(v_connectionLimit_1000_); +v___x_1031_ = lean_box(0); +v_isShared_1032_ = v_isSharedCheck_1042_; +goto v_resetjp_1030_; +} +v_resetjp_1030_: +{ +lean_object* v___x_1033_; lean_object* v___x_1035_; +v___x_1033_ = l_Std_Semaphore_release(v_val_1029_); +if (v_isShared_1027_ == 0) +{ +lean_ctor_set(v___x_1026_, 0, v___x_1033_); +v___x_1035_ = v___x_1026_; +goto v_reusejp_1034_; +} +else +{ +lean_object* v_reuseFailAlloc_1041_; +v_reuseFailAlloc_1041_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1041_, 0, v___x_1033_); +v___x_1035_ = v_reuseFailAlloc_1041_; +goto v_reusejp_1034_; +} +v_reusejp_1034_: +{ +lean_object* v___x_1037_; +if (v_isShared_1032_ == 0) +{ +lean_ctor_set_tag(v___x_1031_, 0); +lean_ctor_set(v___x_1031_, 0, v___x_1035_); +v___x_1037_ = v___x_1031_; +goto v_reusejp_1036_; +} +else +{ +lean_object* v_reuseFailAlloc_1040_; +v_reuseFailAlloc_1040_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1040_, 0, v___x_1035_); +v___x_1037_ = v_reuseFailAlloc_1040_; +goto v_reusejp_1036_; +} +v_reusejp_1036_: +{ +lean_object* v___x_1038_; lean_object* v___x_1039_; +v___x_1038_ = lean_unsigned_to_nat(0u); +v___x_1039_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1038_, v___x_1001_, v___x_1037_, v___f_1002_); +return v___x_1039_; +} +} +} +} +else +{ +lean_object* v___x_1043_; +lean_del_object(v___x_1026_); +lean_dec_ref(v___f_1002_); +lean_dec(v_connectionLimit_1000_); +lean_inc_ref(v___y_999_); +v___x_1043_ = lean_apply_3(v___f_997_, v___x_998_, v___y_999_, lean_box(0)); +return v___x_1043_; +} +} +} +else +{ +lean_object* v_val_1044_; lean_object* v___x_1046_; uint8_t v_isShared_1047_; uint8_t v_isSharedCheck_1081_; +lean_dec_ref(v___f_1002_); +lean_dec_ref(v___f_997_); +v_val_1044_ = lean_ctor_get(v_a_1024_, 0); +v_isSharedCheck_1081_ = !lean_is_exclusive(v_a_1024_); +if (v_isSharedCheck_1081_ == 0) +{ +v___x_1046_ = v_a_1024_; +v_isShared_1047_ = v_isSharedCheck_1081_; +goto v_resetjp_1045_; +} +else +{ +lean_inc(v_val_1044_); +lean_dec(v_a_1024_); +v___x_1046_ = lean_box(0); +v_isShared_1047_ = v_isSharedCheck_1081_; +goto v_resetjp_1045_; +} +v_resetjp_1045_: +{ +lean_object* v___x_1048_; lean_object* v___x_1049_; lean_object* v___f_1050_; lean_object* v___f_1051_; lean_object* v___x_1052_; lean_object* v___f_1053_; lean_object* v_val_1055_; lean_object* v___x_1064_; +v___x_1048_ = lean_box(v_permitAcquired_996_); +v___x_1049_ = lean_box(v___x_1001_); +lean_inc(v_val_1044_); +v___f_1050_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__17___boxed), 18, 15); +lean_closure_set(v___f_1050_, 0, v___x_1003_); +lean_closure_set(v___f_1050_, 1, v_activeConnections_1004_); +lean_closure_set(v___f_1050_, 2, v___f_1005_); +lean_closure_set(v___f_1050_, 3, v___f_1006_); +lean_closure_set(v___f_1050_, 4, v___f_1007_); +lean_closure_set(v___f_1050_, 5, v___x_1048_); +lean_closure_set(v___f_1050_, 6, v___x_998_); +lean_closure_set(v___f_1050_, 7, v_connectionLimit_1000_); +lean_closure_set(v___f_1050_, 8, v___x_1049_); +lean_closure_set(v___f_1050_, 9, v_inst_1008_); +lean_closure_set(v___f_1050_, 10, v_val_1044_); +lean_closure_set(v___f_1050_, 11, v_handler_1009_); +lean_closure_set(v___f_1050_, 12, v_config_1010_); +lean_closure_set(v___f_1050_, 13, v___f_1011_); +lean_closure_set(v___f_1050_, 14, v___f_1012_); +lean_inc_ref(v___y_999_); +v___f_1051_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__18___boxed), 4, 2); +lean_closure_set(v___f_1051_, 0, v___f_1050_); +lean_closure_set(v___f_1051_, 1, v___y_999_); +v___x_1052_ = lean_box(v___x_1001_); +lean_inc_ref(v___f_1051_); +v___f_1053_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__20___boxed), 5, 3); +lean_closure_set(v___f_1053_, 0, v___x_1052_); +lean_closure_set(v___f_1053_, 1, v___f_1051_); +lean_closure_set(v___f_1053_, 2, v___f_1051_); +v___x_1064_ = lean_uv_tcp_getpeername(v_val_1044_); +lean_dec(v_val_1044_); +if (lean_obj_tag(v___x_1064_) == 0) +{ +lean_object* v_a_1065_; lean_object* v___x_1067_; uint8_t v_isShared_1068_; uint8_t v_isSharedCheck_1072_; +v_a_1065_ = lean_ctor_get(v___x_1064_, 0); +v_isSharedCheck_1072_ = !lean_is_exclusive(v___x_1064_); +if (v_isSharedCheck_1072_ == 0) +{ +v___x_1067_ = v___x_1064_; +v_isShared_1068_ = v_isSharedCheck_1072_; +goto v_resetjp_1066_; +} +else +{ +lean_inc(v_a_1065_); +lean_dec(v___x_1064_); +v___x_1067_ = lean_box(0); +v_isShared_1068_ = v_isSharedCheck_1072_; +goto v_resetjp_1066_; +} +v_resetjp_1066_: +{ +lean_object* v___x_1070_; +if (v_isShared_1068_ == 0) +{ +lean_ctor_set_tag(v___x_1067_, 1); +v___x_1070_ = v___x_1067_; +goto v_reusejp_1069_; +} +else +{ +lean_object* v_reuseFailAlloc_1071_; +v_reuseFailAlloc_1071_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1071_, 0, v_a_1065_); +v___x_1070_ = v_reuseFailAlloc_1071_; +goto v_reusejp_1069_; +} +v_reusejp_1069_: +{ +v_val_1055_ = v___x_1070_; +goto v___jp_1054_; +} +} +} +else +{ +lean_object* v_a_1073_; lean_object* v___x_1075_; uint8_t v_isShared_1076_; uint8_t v_isSharedCheck_1080_; +v_a_1073_ = lean_ctor_get(v___x_1064_, 0); +v_isSharedCheck_1080_ = !lean_is_exclusive(v___x_1064_); +if (v_isSharedCheck_1080_ == 0) +{ +v___x_1075_ = v___x_1064_; +v_isShared_1076_ = v_isSharedCheck_1080_; +goto v_resetjp_1074_; +} +else +{ +lean_inc(v_a_1073_); +lean_dec(v___x_1064_); +v___x_1075_ = lean_box(0); +v_isShared_1076_ = v_isSharedCheck_1080_; +goto v_resetjp_1074_; +} +v_resetjp_1074_: +{ +lean_object* v___x_1078_; +if (v_isShared_1076_ == 0) +{ +lean_ctor_set_tag(v___x_1075_, 0); +v___x_1078_ = v___x_1075_; +goto v_reusejp_1077_; +} +else +{ +lean_object* v_reuseFailAlloc_1079_; +v_reuseFailAlloc_1079_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1079_, 0, v_a_1073_); +v___x_1078_ = v_reuseFailAlloc_1079_; +goto v_reusejp_1077_; +} +v_reusejp_1077_: +{ +v_val_1055_ = v___x_1078_; +goto v___jp_1054_; +} +} +} +v___jp_1054_: +{ +lean_object* v___x_1057_; +if (v_isShared_1027_ == 0) +{ +lean_ctor_set(v___x_1026_, 0, v_val_1055_); +v___x_1057_ = v___x_1026_; +goto v_reusejp_1056_; +} +else +{ +lean_object* v_reuseFailAlloc_1063_; +v_reuseFailAlloc_1063_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1063_, 0, v_val_1055_); +v___x_1057_ = v_reuseFailAlloc_1063_; +goto v_reusejp_1056_; +} +v_reusejp_1056_: +{ +lean_object* v___x_1059_; +if (v_isShared_1047_ == 0) +{ +lean_ctor_set_tag(v___x_1046_, 0); +lean_ctor_set(v___x_1046_, 0, v___x_1057_); +v___x_1059_ = v___x_1046_; +goto v_reusejp_1058_; +} +else +{ +lean_object* v_reuseFailAlloc_1062_; +v_reuseFailAlloc_1062_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1062_, 0, v___x_1057_); +v___x_1059_ = v_reuseFailAlloc_1062_; +goto v_reusejp_1058_; +} +v_reusejp_1058_: +{ +lean_object* v___x_1060_; lean_object* v___x_1061_; +v___x_1060_ = lean_unsigned_to_nat(0u); +v___x_1061_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1060_, v___x_1001_, v___x_1059_, v___f_1053_); +return v___x_1061_; +} +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__19___boxed(lean_object** _args){ +lean_object* v_permitAcquired_1083_ = _args[0]; +lean_object* v___f_1084_ = _args[1]; +lean_object* v___x_1085_ = _args[2]; +lean_object* v___y_1086_ = _args[3]; +lean_object* v_connectionLimit_1087_ = _args[4]; +lean_object* v___x_1088_ = _args[5]; +lean_object* v___f_1089_ = _args[6]; +lean_object* v___x_1090_ = _args[7]; +lean_object* v_activeConnections_1091_ = _args[8]; +lean_object* v___f_1092_ = _args[9]; +lean_object* v___f_1093_ = _args[10]; +lean_object* v___f_1094_ = _args[11]; +lean_object* v_inst_1095_ = _args[12]; +lean_object* v_handler_1096_ = _args[13]; +lean_object* v_config_1097_ = _args[14]; +lean_object* v___f_1098_ = _args[15]; +lean_object* v___f_1099_ = _args[16]; +lean_object* v_x_1100_ = _args[17]; +lean_object* v___y_1101_ = _args[18]; +_start: +{ +uint8_t v_permitAcquired_boxed_1102_; uint8_t v___x_11703__boxed_1103_; lean_object* v_res_1104_; +v_permitAcquired_boxed_1102_ = lean_unbox(v_permitAcquired_1083_); +v___x_11703__boxed_1103_ = lean_unbox(v___x_1088_); +v_res_1104_ = l_Std_Http_Server_serve___redArg___lam__19(v_permitAcquired_boxed_1102_, v___f_1084_, v___x_1085_, v___y_1086_, v_connectionLimit_1087_, v___x_11703__boxed_1103_, v___f_1089_, v___x_1090_, v_activeConnections_1091_, v___f_1092_, v___f_1093_, v___f_1094_, v_inst_1095_, v_handler_1096_, v_config_1097_, v___f_1098_, v___f_1099_, v_x_1100_); +lean_dec_ref(v___y_1086_); +return v_res_1104_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__21(lean_object* v_a_1105_, lean_object* v___f_1106_, lean_object* v___f_1107_, uint8_t v___x_1108_, lean_object* v___f_1109_, lean_object* v_x_1110_){ +_start: +{ +if (lean_obj_tag(v_x_1110_) == 0) +{ +lean_object* v_a_1112_; lean_object* v___x_1114_; uint8_t v_isShared_1115_; uint8_t v_isSharedCheck_1120_; +lean_dec_ref(v___f_1109_); +lean_dec_ref(v___f_1107_); +lean_dec_ref(v___f_1106_); +lean_dec(v_a_1105_); +v_a_1112_ = lean_ctor_get(v_x_1110_, 0); +v_isSharedCheck_1120_ = !lean_is_exclusive(v_x_1110_); +if (v_isSharedCheck_1120_ == 0) +{ +v___x_1114_ = v_x_1110_; +v_isShared_1115_ = v_isSharedCheck_1120_; +goto v_resetjp_1113_; +} +else +{ +lean_inc(v_a_1112_); +lean_dec(v_x_1110_); +v___x_1114_ = lean_box(0); +v_isShared_1115_ = v_isSharedCheck_1120_; +goto v_resetjp_1113_; +} +v_resetjp_1113_: +{ +lean_object* v___x_1117_; +if (v_isShared_1115_ == 0) +{ +v___x_1117_ = v___x_1114_; +goto v_reusejp_1116_; +} +else +{ +lean_object* v_reuseFailAlloc_1119_; +v_reuseFailAlloc_1119_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1119_, 0, v_a_1112_); +v___x_1117_ = v_reuseFailAlloc_1119_; +goto v_reusejp_1116_; +} +v_reusejp_1116_: +{ +lean_object* v___x_1118_; +v___x_1118_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1118_, 0, v___x_1117_); +return v___x_1118_; +} +} +} +else +{ +lean_object* v_a_1121_; lean_object* v___x_1122_; lean_object* v___x_1123_; lean_object* v___x_1124_; lean_object* v___x_1125_; lean_object* v___x_1126_; lean_object* v___x_1127_; lean_object* v___x_1128_; lean_object* v___x_1129_; lean_object* v___x_1130_; lean_object* v___x_1131_; +v_a_1121_ = lean_ctor_get(v_x_1110_, 0); +lean_inc(v_a_1121_); +lean_dec_ref(v_x_1110_); +v___x_1122_ = l_Std_Internal_IO_Async_TCP_Socket_Server_acceptSelector(v_a_1105_); +v___x_1123_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1123_, 0, v___x_1122_); +lean_ctor_set(v___x_1123_, 1, v___f_1106_); +v___x_1124_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1124_, 0, v_a_1121_); +lean_ctor_set(v___x_1124_, 1, v___f_1107_); +v___x_1125_ = lean_unsigned_to_nat(2u); +v___x_1126_ = lean_mk_empty_array_with_capacity(v___x_1125_); +v___x_1127_ = lean_array_push(v___x_1126_, v___x_1123_); +v___x_1128_ = lean_array_push(v___x_1127_, v___x_1124_); +v___x_1129_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_1128_); +v___x_1130_ = lean_unsigned_to_nat(0u); +v___x_1131_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1130_, v___x_1108_, v___x_1129_, v___f_1109_); +return v___x_1131_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__21___boxed(lean_object* v_a_1132_, lean_object* v___f_1133_, lean_object* v___f_1134_, lean_object* v___x_1135_, lean_object* v___f_1136_, lean_object* v_x_1137_, lean_object* v___y_1138_){ +_start: +{ +uint8_t v___x_11881__boxed_1139_; lean_object* v_res_1140_; +v___x_11881__boxed_1139_ = lean_unbox(v___x_1135_); +v_res_1140_ = l_Std_Http_Server_serve___redArg___lam__21(v_a_1132_, v___f_1133_, v___f_1134_, v___x_11881__boxed_1139_, v___f_1136_, v_x_1137_); +return v_res_1140_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__22(uint8_t v___x_1141_, lean_object* v___f_1142_, lean_object* v___f_1143_, lean_object* v___x_1144_, lean_object* v_connectionLimit_1145_, lean_object* v___x_1146_, lean_object* v_activeConnections_1147_, lean_object* v___f_1148_, lean_object* v___f_1149_, lean_object* v___f_1150_, lean_object* v_inst_1151_, lean_object* v_handler_1152_, lean_object* v_config_1153_, lean_object* v___f_1154_, lean_object* v___f_1155_, lean_object* v_a_1156_, lean_object* v___f_1157_, lean_object* v___f_1158_, uint8_t v_permitAcquired_1159_, lean_object* v___y_1160_){ +_start: +{ +lean_object* v___x_1162_; lean_object* v___x_1163_; lean_object* v___x_1164_; lean_object* v___x_1165_; lean_object* v___f_1166_; lean_object* v___x_1167_; lean_object* v___x_1168_; lean_object* v___f_1169_; lean_object* v___x_1170_; lean_object* v___f_1171_; lean_object* v___x_1172_; +lean_inc_ref_n(v___y_1160_, 3); +v___x_1162_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1162_, 0, v___y_1160_); +v___x_1163_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1163_, 0, v___x_1162_); +v___x_1164_ = lean_unsigned_to_nat(0u); +v___x_1165_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1164_, v___x_1141_, v___x_1163_, v___f_1142_); +lean_inc_ref(v___f_1143_); +v___f_1166_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__9___boxed), 4, 2); +lean_closure_set(v___f_1166_, 0, v___f_1143_); +lean_closure_set(v___f_1166_, 1, v___y_1160_); +v___x_1167_ = lean_box(v_permitAcquired_1159_); +v___x_1168_ = lean_box(v___x_1141_); +v___f_1169_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__19___boxed), 19, 17); +lean_closure_set(v___f_1169_, 0, v___x_1167_); +lean_closure_set(v___f_1169_, 1, v___f_1143_); +lean_closure_set(v___f_1169_, 2, v___x_1144_); +lean_closure_set(v___f_1169_, 3, v___y_1160_); +lean_closure_set(v___f_1169_, 4, v_connectionLimit_1145_); +lean_closure_set(v___f_1169_, 5, v___x_1168_); +lean_closure_set(v___f_1169_, 6, v___f_1166_); +lean_closure_set(v___f_1169_, 7, v___x_1146_); +lean_closure_set(v___f_1169_, 8, v_activeConnections_1147_); +lean_closure_set(v___f_1169_, 9, v___f_1148_); +lean_closure_set(v___f_1169_, 10, v___f_1149_); +lean_closure_set(v___f_1169_, 11, v___f_1150_); +lean_closure_set(v___f_1169_, 12, v_inst_1151_); +lean_closure_set(v___f_1169_, 13, v_handler_1152_); +lean_closure_set(v___f_1169_, 14, v_config_1153_); +lean_closure_set(v___f_1169_, 15, v___f_1154_); +lean_closure_set(v___f_1169_, 16, v___f_1155_); +v___x_1170_ = lean_box(v___x_1141_); +v___f_1171_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__21___boxed), 7, 5); +lean_closure_set(v___f_1171_, 0, v_a_1156_); +lean_closure_set(v___f_1171_, 1, v___f_1157_); +lean_closure_set(v___f_1171_, 2, v___f_1158_); +lean_closure_set(v___f_1171_, 3, v___x_1170_); +lean_closure_set(v___f_1171_, 4, v___f_1169_); +v___x_1172_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1164_, v___x_1141_, v___x_1165_, v___f_1171_); +return v___x_1172_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__22___boxed(lean_object** _args){ +lean_object* v___x_1173_ = _args[0]; +lean_object* v___f_1174_ = _args[1]; +lean_object* v___f_1175_ = _args[2]; +lean_object* v___x_1176_ = _args[3]; +lean_object* v_connectionLimit_1177_ = _args[4]; +lean_object* v___x_1178_ = _args[5]; +lean_object* v_activeConnections_1179_ = _args[6]; +lean_object* v___f_1180_ = _args[7]; +lean_object* v___f_1181_ = _args[8]; +lean_object* v___f_1182_ = _args[9]; +lean_object* v_inst_1183_ = _args[10]; +lean_object* v_handler_1184_ = _args[11]; +lean_object* v_config_1185_ = _args[12]; +lean_object* v___f_1186_ = _args[13]; +lean_object* v___f_1187_ = _args[14]; +lean_object* v_a_1188_ = _args[15]; +lean_object* v___f_1189_ = _args[16]; +lean_object* v___f_1190_ = _args[17]; +lean_object* v_permitAcquired_1191_ = _args[18]; +lean_object* v___y_1192_ = _args[19]; +lean_object* v___y_1193_ = _args[20]; +_start: +{ +uint8_t v___x_11939__boxed_1194_; uint8_t v_permitAcquired_boxed_1195_; lean_object* v_res_1196_; +v___x_11939__boxed_1194_ = lean_unbox(v___x_1173_); +v_permitAcquired_boxed_1195_ = lean_unbox(v_permitAcquired_1191_); +v_res_1196_ = l_Std_Http_Server_serve___redArg___lam__22(v___x_11939__boxed_1194_, v___f_1174_, v___f_1175_, v___x_1176_, v_connectionLimit_1177_, v___x_1178_, v_activeConnections_1179_, v___f_1180_, v___f_1181_, v___f_1182_, v_inst_1183_, v_handler_1184_, v_config_1185_, v___f_1186_, v___f_1187_, v_a_1188_, v___f_1189_, v___f_1190_, v_permitAcquired_boxed_1195_, v___y_1192_); +lean_dec_ref(v___y_1192_); +return v_res_1196_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__23(lean_object* v___f_1197_, lean_object* v___y_1198_, lean_object* v_x_1199_){ +_start: +{ +if (lean_obj_tag(v_x_1199_) == 0) +{ +lean_object* v_a_1201_; lean_object* v___x_1203_; uint8_t v_isShared_1204_; uint8_t v_isSharedCheck_1209_; +lean_dec_ref(v___f_1197_); +v_a_1201_ = lean_ctor_get(v_x_1199_, 0); +v_isSharedCheck_1209_ = !lean_is_exclusive(v_x_1199_); +if (v_isSharedCheck_1209_ == 0) +{ +v___x_1203_ = v_x_1199_; +v_isShared_1204_ = v_isSharedCheck_1209_; +goto v_resetjp_1202_; +} +else +{ +lean_inc(v_a_1201_); +lean_dec(v_x_1199_); +v___x_1203_ = lean_box(0); +v_isShared_1204_ = v_isSharedCheck_1209_; +goto v_resetjp_1202_; +} +v_resetjp_1202_: +{ +lean_object* v___x_1206_; +if (v_isShared_1204_ == 0) +{ +v___x_1206_ = v___x_1203_; +goto v_reusejp_1205_; +} +else +{ +lean_object* v_reuseFailAlloc_1208_; +v_reuseFailAlloc_1208_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1208_, 0, v_a_1201_); +v___x_1206_ = v_reuseFailAlloc_1208_; +goto v_reusejp_1205_; +} +v_reusejp_1205_: +{ +lean_object* v___x_1207_; +v___x_1207_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1207_, 0, v___x_1206_); +return v___x_1207_; +} +} +} +else +{ +lean_object* v_a_1210_; lean_object* v___x_1211_; +v_a_1210_ = lean_ctor_get(v_x_1199_, 0); +lean_inc(v_a_1210_); +lean_dec_ref(v_x_1199_); +lean_inc_ref(v___y_1198_); +v___x_1211_ = lean_apply_3(v___f_1197_, v_a_1210_, v___y_1198_, lean_box(0)); +return v___x_1211_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__23___boxed(lean_object* v___f_1212_, lean_object* v___y_1213_, lean_object* v_x_1214_, lean_object* v___y_1215_){ +_start: +{ +lean_object* v_res_1216_; +v_res_1216_ = l_Std_Http_Server_serve___redArg___lam__23(v___f_1212_, v___y_1213_, v_x_1214_); +lean_dec_ref(v___y_1213_); +return v_res_1216_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__24(uint8_t v___x_1217_, uint8_t v___x_1218_, lean_object* v___f_1219_, lean_object* v_x_1220_){ +_start: +{ +if (lean_obj_tag(v_x_1220_) == 0) +{ +lean_object* v_a_1222_; lean_object* v___x_1224_; uint8_t v_isShared_1225_; uint8_t v_isSharedCheck_1230_; +lean_dec_ref(v___f_1219_); +v_a_1222_ = lean_ctor_get(v_x_1220_, 0); +v_isSharedCheck_1230_ = !lean_is_exclusive(v_x_1220_); +if (v_isSharedCheck_1230_ == 0) +{ +v___x_1224_ = v_x_1220_; +v_isShared_1225_ = v_isSharedCheck_1230_; +goto v_resetjp_1223_; +} +else +{ +lean_inc(v_a_1222_); +lean_dec(v_x_1220_); +v___x_1224_ = lean_box(0); +v_isShared_1225_ = v_isSharedCheck_1230_; +goto v_resetjp_1223_; +} +v_resetjp_1223_: +{ +lean_object* v___x_1227_; +if (v_isShared_1225_ == 0) +{ +v___x_1227_ = v___x_1224_; +goto v_reusejp_1226_; +} +else +{ +lean_object* v_reuseFailAlloc_1229_; +v_reuseFailAlloc_1229_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1229_, 0, v_a_1222_); +v___x_1227_ = v_reuseFailAlloc_1229_; +goto v_reusejp_1226_; +} +v_reusejp_1226_: +{ +lean_object* v___x_1228_; +v___x_1228_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1228_, 0, v___x_1227_); +return v___x_1228_; +} +} +} +else +{ +lean_object* v___x_1232_; uint8_t v_isShared_1233_; uint8_t v_isSharedCheck_1241_; +v_isSharedCheck_1241_ = !lean_is_exclusive(v_x_1220_); +if (v_isSharedCheck_1241_ == 0) +{ +lean_object* v_unused_1242_; +v_unused_1242_ = lean_ctor_get(v_x_1220_, 0); +lean_dec(v_unused_1242_); +v___x_1232_ = v_x_1220_; +v_isShared_1233_ = v_isSharedCheck_1241_; +goto v_resetjp_1231_; +} +else +{ +lean_dec(v_x_1220_); +v___x_1232_ = lean_box(0); +v_isShared_1233_ = v_isSharedCheck_1241_; +goto v_resetjp_1231_; +} +v_resetjp_1231_: +{ +lean_object* v___x_1234_; lean_object* v___x_1236_; +v___x_1234_ = lean_box(v___x_1217_); +if (v_isShared_1233_ == 0) +{ +lean_ctor_set(v___x_1232_, 0, v___x_1234_); +v___x_1236_ = v___x_1232_; +goto v_reusejp_1235_; +} +else +{ +lean_object* v_reuseFailAlloc_1240_; +v_reuseFailAlloc_1240_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1240_, 0, v___x_1234_); +v___x_1236_ = v_reuseFailAlloc_1240_; +goto v_reusejp_1235_; +} +v_reusejp_1235_: +{ +lean_object* v___x_1237_; lean_object* v___x_1238_; lean_object* v___x_1239_; +v___x_1237_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1237_, 0, v___x_1236_); +v___x_1238_ = lean_unsigned_to_nat(0u); +v___x_1239_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1238_, v___x_1218_, v___x_1237_, v___f_1219_); +return v___x_1239_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__24___boxed(lean_object* v___x_1243_, lean_object* v___x_1244_, lean_object* v___f_1245_, lean_object* v_x_1246_, lean_object* v___y_1247_){ +_start: +{ +uint8_t v___x_12043__boxed_1248_; uint8_t v___x_12044__boxed_1249_; lean_object* v_res_1250_; +v___x_12043__boxed_1248_ = lean_unbox(v___x_1243_); +v___x_12044__boxed_1249_ = lean_unbox(v___x_1244_); +v_res_1250_ = l_Std_Http_Server_serve___redArg___lam__24(v___x_12043__boxed_1248_, v___x_12044__boxed_1249_, v___f_1245_, v_x_1246_); +return v_res_1250_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__25(lean_object* v___f_1251_, uint8_t v___x_1252_, lean_object* v___f_1253_, lean_object* v_x_1254_){ +_start: +{ +if (lean_obj_tag(v_x_1254_) == 0) +{ +lean_object* v_a_1256_; lean_object* v___x_1258_; uint8_t v_isShared_1259_; uint8_t v_isSharedCheck_1264_; +lean_dec_ref(v___f_1253_); +lean_dec_ref(v___f_1251_); +v_a_1256_ = lean_ctor_get(v_x_1254_, 0); +v_isSharedCheck_1264_ = !lean_is_exclusive(v_x_1254_); +if (v_isSharedCheck_1264_ == 0) +{ +v___x_1258_ = v_x_1254_; +v_isShared_1259_ = v_isSharedCheck_1264_; +goto v_resetjp_1257_; +} +else +{ +lean_inc(v_a_1256_); +lean_dec(v_x_1254_); +v___x_1258_ = lean_box(0); +v_isShared_1259_ = v_isSharedCheck_1264_; +goto v_resetjp_1257_; +} +v_resetjp_1257_: +{ +lean_object* v___x_1261_; +if (v_isShared_1259_ == 0) +{ +v___x_1261_ = v___x_1258_; +goto v_reusejp_1260_; +} +else +{ +lean_object* v_reuseFailAlloc_1263_; +v_reuseFailAlloc_1263_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1263_, 0, v_a_1256_); +v___x_1261_ = v_reuseFailAlloc_1263_; +goto v_reusejp_1260_; +} +v_reusejp_1260_: +{ +lean_object* v___x_1262_; +v___x_1262_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1262_, 0, v___x_1261_); +return v___x_1262_; +} +} +} +else +{ +lean_object* v_a_1265_; lean_object* v___x_1266_; lean_object* v___x_1267_; lean_object* v___x_1268_; lean_object* v___x_1269_; lean_object* v___x_1270_; +v_a_1265_ = lean_ctor_get(v_x_1254_, 0); +lean_inc(v_a_1265_); +lean_dec_ref(v_x_1254_); +v___x_1266_ = l_IO_Promise_result_x21___redArg(v_a_1265_); +lean_dec(v_a_1265_); +v___x_1267_ = lean_unsigned_to_nat(0u); +v___x_1268_ = lean_task_map(v___f_1251_, v___x_1266_, v___x_1267_, v___x_1252_); +v___x_1269_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1269_, 0, v___x_1268_); +v___x_1270_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1267_, v___x_1252_, v___x_1269_, v___f_1253_); +return v___x_1270_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__25___boxed(lean_object* v___f_1271_, lean_object* v___x_1272_, lean_object* v___f_1273_, lean_object* v_x_1274_, lean_object* v___y_1275_){ +_start: +{ +uint8_t v___x_12102__boxed_1276_; lean_object* v_res_1277_; +v___x_12102__boxed_1276_ = lean_unbox(v___x_1272_); +v_res_1277_ = l_Std_Http_Server_serve___redArg___lam__25(v___f_1271_, v___x_12102__boxed_1276_, v___f_1273_, v_x_1274_); +return v_res_1277_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__27(lean_object* v_connectionLimit_1278_, lean_object* v___f_1279_, uint8_t v___x_1280_, lean_object* v___f_1281_, lean_object* v_x_1282_, lean_object* v_____s_1283_, lean_object* v___y_1284_){ +_start: +{ +if (lean_obj_tag(v_connectionLimit_1278_) == 1) +{ +lean_object* v_val_1286_; lean_object* v___x_1288_; uint8_t v_isShared_1289_; uint8_t v_isSharedCheck_1304_; +v_val_1286_ = lean_ctor_get(v_connectionLimit_1278_, 0); +v_isSharedCheck_1304_ = !lean_is_exclusive(v_connectionLimit_1278_); +if (v_isSharedCheck_1304_ == 0) +{ +v___x_1288_ = v_connectionLimit_1278_; +v_isShared_1289_ = v_isSharedCheck_1304_; +goto v_resetjp_1287_; +} +else +{ +lean_inc(v_val_1286_); +lean_dec(v_connectionLimit_1278_); +v___x_1288_ = lean_box(0); +v_isShared_1289_ = v_isSharedCheck_1304_; +goto v_resetjp_1287_; +} +v_resetjp_1287_: +{ +lean_object* v___x_1290_; lean_object* v___f_1291_; uint8_t v___x_1292_; lean_object* v___x_1293_; lean_object* v___x_1294_; lean_object* v___f_1295_; lean_object* v___x_1296_; lean_object* v___f_1297_; lean_object* v___x_1299_; +v___x_1290_ = l_Std_Semaphore_acquire(v_val_1286_); +lean_inc_ref(v___y_1284_); +v___f_1291_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__23___boxed), 4, 2); +lean_closure_set(v___f_1291_, 0, v___f_1279_); +lean_closure_set(v___f_1291_, 1, v___y_1284_); +v___x_1292_ = 1; +v___x_1293_ = lean_box(v___x_1292_); +v___x_1294_ = lean_box(v___x_1280_); +v___f_1295_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__24___boxed), 5, 3); +lean_closure_set(v___f_1295_, 0, v___x_1293_); +lean_closure_set(v___f_1295_, 1, v___x_1294_); +lean_closure_set(v___f_1295_, 2, v___f_1291_); +v___x_1296_ = lean_box(v___x_1280_); +v___f_1297_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__25___boxed), 5, 3); +lean_closure_set(v___f_1297_, 0, v___f_1281_); +lean_closure_set(v___f_1297_, 1, v___x_1296_); +lean_closure_set(v___f_1297_, 2, v___f_1295_); +if (v_isShared_1289_ == 0) +{ +lean_ctor_set(v___x_1288_, 0, v___x_1290_); +v___x_1299_ = v___x_1288_; +goto v_reusejp_1298_; +} +else +{ +lean_object* v_reuseFailAlloc_1303_; +v_reuseFailAlloc_1303_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1303_, 0, v___x_1290_); +v___x_1299_ = v_reuseFailAlloc_1303_; +goto v_reusejp_1298_; +} +v_reusejp_1298_: +{ +lean_object* v___x_1300_; lean_object* v___x_1301_; lean_object* v___x_1302_; +v___x_1300_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1300_, 0, v___x_1299_); +v___x_1301_ = lean_unsigned_to_nat(0u); +v___x_1302_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1301_, v___x_1280_, v___x_1300_, v___f_1297_); +return v___x_1302_; +} +} +} +else +{ +lean_object* v___f_1305_; lean_object* v___x_1306_; lean_object* v___x_1307_; lean_object* v___x_1308_; lean_object* v___x_1309_; lean_object* v___x_1310_; +lean_dec_ref(v___f_1281_); +lean_dec(v_connectionLimit_1278_); +lean_inc_ref(v___y_1284_); +v___f_1305_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__23___boxed), 4, 2); +lean_closure_set(v___f_1305_, 0, v___f_1279_); +lean_closure_set(v___f_1305_, 1, v___y_1284_); +v___x_1306_ = lean_box(v___x_1280_); +v___x_1307_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1307_, 0, v___x_1306_); +v___x_1308_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1308_, 0, v___x_1307_); +v___x_1309_ = lean_unsigned_to_nat(0u); +v___x_1310_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1309_, v___x_1280_, v___x_1308_, v___f_1305_); +return v___x_1310_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__27___boxed(lean_object* v_connectionLimit_1311_, lean_object* v___f_1312_, lean_object* v___x_1313_, lean_object* v___f_1314_, lean_object* v_x_1315_, lean_object* v_____s_1316_, lean_object* v___y_1317_, lean_object* v___y_1318_){ +_start: +{ +uint8_t v___x_12147__boxed_1319_; lean_object* v_res_1320_; +v___x_12147__boxed_1319_ = lean_unbox(v___x_1313_); +v_res_1320_ = l_Std_Http_Server_serve___redArg___lam__27(v_connectionLimit_1311_, v___f_1312_, v___x_12147__boxed_1319_, v___f_1314_, v_x_1315_, v_____s_1316_, v___y_1317_); +lean_dec_ref(v___y_1317_); +return v_res_1320_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__26(lean_object* v___x_1321_, lean_object* v___f_1322_, lean_object* v___x_1323_, uint8_t v___x_1324_, lean_object* v___f_1325_, lean_object* v___y_1326_){ +_start: +{ +lean_object* v___x_10650__overap_1328_; lean_object* v___x_1329_; lean_object* v___x_1330_; lean_object* v___x_1331_; +v___x_10650__overap_1328_ = l___private_Init_While_0__Lean_Loop_forIn_loop(lean_box(0), lean_box(0), v___x_1321_, v___f_1322_, v___x_1323_); +v___x_1329_ = lean_apply_2(v___x_10650__overap_1328_, v___y_1326_, lean_box(0)); +v___x_1330_ = lean_unsigned_to_nat(0u); +v___x_1331_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1330_, v___x_1324_, v___x_1329_, v___f_1325_); +return v___x_1331_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__26___boxed(lean_object* v___x_1332_, lean_object* v___f_1333_, lean_object* v___x_1334_, lean_object* v___x_1335_, lean_object* v___f_1336_, lean_object* v___y_1337_, lean_object* v___y_1338_){ +_start: +{ +uint8_t v___x_12220__boxed_1339_; lean_object* v_res_1340_; +v___x_12220__boxed_1339_ = lean_unbox(v___x_1335_); +v_res_1340_ = l_Std_Http_Server_serve___redArg___lam__26(v___x_1332_, v___f_1333_, v___x_1334_, v___x_12220__boxed_1339_, v___f_1336_, v___y_1337_); +return v_res_1340_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__28(lean_object* v_a_1345_, lean_object* v___f_1346_, lean_object* v___x_1347_, lean_object* v___f_1348_, lean_object* v___f_1349_, lean_object* v___f_1350_, lean_object* v_inst_1351_, lean_object* v_handler_1352_, lean_object* v_config_1353_, lean_object* v___f_1354_, lean_object* v_a_1355_, lean_object* v___f_1356_, lean_object* v___f_1357_, lean_object* v___f_1358_, lean_object* v___f_1359_, lean_object* v___f_1360_, lean_object* v_x_1361_){ +_start: +{ +if (lean_obj_tag(v_x_1361_) == 0) +{ +lean_object* v_a_1363_; lean_object* v___x_1365_; uint8_t v_isShared_1366_; uint8_t v_isSharedCheck_1371_; +lean_dec_ref(v___f_1360_); +lean_dec_ref(v___f_1359_); +lean_dec_ref(v___f_1358_); +lean_dec_ref(v___f_1357_); +lean_dec_ref(v___f_1356_); +lean_dec(v_a_1355_); +lean_dec_ref(v___f_1354_); +lean_dec_ref(v_config_1353_); +lean_dec(v_handler_1352_); +lean_dec_ref(v_inst_1351_); +lean_dec_ref(v___f_1350_); +lean_dec_ref(v___f_1349_); +lean_dec_ref(v___f_1348_); +lean_dec_ref(v___x_1347_); +lean_dec_ref(v___f_1346_); +lean_dec_ref(v_a_1345_); +v_a_1363_ = lean_ctor_get(v_x_1361_, 0); +v_isSharedCheck_1371_ = !lean_is_exclusive(v_x_1361_); +if (v_isSharedCheck_1371_ == 0) +{ +v___x_1365_ = v_x_1361_; +v_isShared_1366_ = v_isSharedCheck_1371_; +goto v_resetjp_1364_; +} +else +{ +lean_inc(v_a_1363_); +lean_dec(v_x_1361_); +v___x_1365_ = lean_box(0); +v_isShared_1366_ = v_isSharedCheck_1371_; +goto v_resetjp_1364_; +} +v_resetjp_1364_: +{ +lean_object* v___x_1368_; +if (v_isShared_1366_ == 0) +{ +v___x_1368_ = v___x_1365_; +goto v_reusejp_1367_; +} +else +{ +lean_object* v_reuseFailAlloc_1370_; +v_reuseFailAlloc_1370_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1370_, 0, v_a_1363_); +v___x_1368_ = v_reuseFailAlloc_1370_; +goto v_reusejp_1367_; +} +v_reusejp_1367_: +{ +lean_object* v___x_1369_; +v___x_1369_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1369_, 0, v___x_1368_); +return v___x_1369_; +} +} +} +else +{ +lean_object* v_context_1372_; lean_object* v_activeConnections_1373_; lean_object* v_connectionLimit_1374_; uint8_t v___x_1375_; lean_object* v___x_1376_; lean_object* v___f_1377_; lean_object* v___f_1378_; lean_object* v___x_1379_; lean_object* v___f_1380_; lean_object* v___x_1381_; lean_object* v___f_1382_; lean_object* v___x_1383_; lean_object* v___f_1384_; lean_object* v___x_1385_; lean_object* v___x_1386_; lean_object* v___x_1387_; lean_object* v___x_1388_; lean_object* v___x_1389_; lean_object* v___x_1390_; lean_object* v___x_1391_; +lean_dec_ref(v_x_1361_); +v_context_1372_ = lean_ctor_get(v_a_1345_, 0); +lean_inc_ref(v_context_1372_); +v_activeConnections_1373_ = lean_ctor_get(v_a_1345_, 1); +v_connectionLimit_1374_ = lean_ctor_get(v_a_1345_, 2); +v___x_1375_ = 0; +v___x_1376_ = lean_box(0); +v___f_1377_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___lam__28___closed__0)); +v___f_1378_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___lam__28___closed__1)); +v___x_1379_ = lean_box(v___x_1375_); +lean_inc_ref(v_activeConnections_1373_); +lean_inc_ref(v___x_1347_); +lean_inc_n(v_connectionLimit_1374_, 2); +v___f_1380_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__22___boxed), 21, 18); +lean_closure_set(v___f_1380_, 0, v___x_1379_); +lean_closure_set(v___f_1380_, 1, v___f_1346_); +lean_closure_set(v___f_1380_, 2, v___f_1377_); +lean_closure_set(v___f_1380_, 3, v___x_1376_); +lean_closure_set(v___f_1380_, 4, v_connectionLimit_1374_); +lean_closure_set(v___f_1380_, 5, v___x_1347_); +lean_closure_set(v___f_1380_, 6, v_activeConnections_1373_); +lean_closure_set(v___f_1380_, 7, v___f_1348_); +lean_closure_set(v___f_1380_, 8, v___f_1349_); +lean_closure_set(v___f_1380_, 9, v___f_1350_); +lean_closure_set(v___f_1380_, 10, v_inst_1351_); +lean_closure_set(v___f_1380_, 11, v_handler_1352_); +lean_closure_set(v___f_1380_, 12, v_config_1353_); +lean_closure_set(v___f_1380_, 13, v___f_1354_); +lean_closure_set(v___f_1380_, 14, v___f_1378_); +lean_closure_set(v___f_1380_, 15, v_a_1355_); +lean_closure_set(v___f_1380_, 16, v___f_1356_); +lean_closure_set(v___f_1380_, 17, v___f_1357_); +v___x_1381_ = lean_box(v___x_1375_); +v___f_1382_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__27___boxed), 8, 4); +lean_closure_set(v___f_1382_, 0, v_connectionLimit_1374_); +lean_closure_set(v___f_1382_, 1, v___f_1380_); +lean_closure_set(v___f_1382_, 2, v___x_1381_); +lean_closure_set(v___f_1382_, 3, v___f_1358_); +v___x_1383_ = lean_box(v___x_1375_); +v___f_1384_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__26___boxed), 7, 5); +lean_closure_set(v___f_1384_, 0, v___x_1347_); +lean_closure_set(v___f_1384_, 1, v___f_1382_); +lean_closure_set(v___f_1384_, 2, v___x_1376_); +lean_closure_set(v___f_1384_, 3, v___x_1383_); +lean_closure_set(v___f_1384_, 4, v___f_1359_); +v___x_1385_ = lean_box(v___x_1375_); +v___x_1386_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___boxed), 6, 5); +lean_closure_set(v___x_1386_, 0, lean_box(0)); +lean_closure_set(v___x_1386_, 1, v_a_1345_); +lean_closure_set(v___x_1386_, 2, v___x_1385_); +lean_closure_set(v___x_1386_, 3, v___f_1384_); +lean_closure_set(v___x_1386_, 4, v_context_1372_); +v___x_1387_ = lean_unsigned_to_nat(0u); +v___x_1388_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed), 3, 2); +lean_closure_set(v___x_1388_, 0, lean_box(0)); +lean_closure_set(v___x_1388_, 1, v___x_1386_); +v___x_1389_ = lean_io_as_task(v___x_1388_, v___x_1387_); +lean_dec_ref(v___x_1389_); +v___x_1390_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__0___closed__1)); +v___x_1391_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1387_, v___x_1375_, v___x_1390_, v___f_1360_); +return v___x_1391_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__28___boxed(lean_object** _args){ +lean_object* v_a_1392_ = _args[0]; +lean_object* v___f_1393_ = _args[1]; +lean_object* v___x_1394_ = _args[2]; +lean_object* v___f_1395_ = _args[3]; +lean_object* v___f_1396_ = _args[4]; +lean_object* v___f_1397_ = _args[5]; +lean_object* v_inst_1398_ = _args[6]; +lean_object* v_handler_1399_ = _args[7]; +lean_object* v_config_1400_ = _args[8]; +lean_object* v___f_1401_ = _args[9]; +lean_object* v_a_1402_ = _args[10]; +lean_object* v___f_1403_ = _args[11]; +lean_object* v___f_1404_ = _args[12]; +lean_object* v___f_1405_ = _args[13]; +lean_object* v___f_1406_ = _args[14]; +lean_object* v___f_1407_ = _args[15]; +lean_object* v_x_1408_ = _args[16]; +lean_object* v___y_1409_ = _args[17]; +_start: +{ +lean_object* v_res_1410_; +v_res_1410_ = l_Std_Http_Server_serve___redArg___lam__28(v_a_1392_, v___f_1393_, v___x_1394_, v___f_1395_, v___f_1396_, v___f_1397_, v_inst_1398_, v_handler_1399_, v_config_1400_, v___f_1401_, v_a_1402_, v___f_1403_, v___f_1404_, v___f_1405_, v___f_1406_, v___f_1407_, v_x_1408_); +return v_res_1410_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__29(lean_object* v___f_1411_, lean_object* v_a_1412_, lean_object* v_x_1413_){ +_start: +{ +lean_object* v_val_1416_; +if (lean_obj_tag(v_x_1413_) == 0) +{ +lean_object* v_a_1421_; lean_object* v___x_1423_; uint8_t v_isShared_1424_; uint8_t v_isSharedCheck_1429_; +lean_dec_ref(v___f_1411_); +v_a_1421_ = lean_ctor_get(v_x_1413_, 0); +v_isSharedCheck_1429_ = !lean_is_exclusive(v_x_1413_); +if (v_isSharedCheck_1429_ == 0) +{ +v___x_1423_ = v_x_1413_; +v_isShared_1424_ = v_isSharedCheck_1429_; +goto v_resetjp_1422_; +} +else +{ +lean_inc(v_a_1421_); +lean_dec(v_x_1413_); +v___x_1423_ = lean_box(0); +v_isShared_1424_ = v_isSharedCheck_1429_; +goto v_resetjp_1422_; +} +v_resetjp_1422_: +{ +lean_object* v___x_1426_; +if (v_isShared_1424_ == 0) +{ +v___x_1426_ = v___x_1423_; +goto v_reusejp_1425_; +} +else +{ +lean_object* v_reuseFailAlloc_1428_; +v_reuseFailAlloc_1428_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1428_, 0, v_a_1421_); +v___x_1426_ = v_reuseFailAlloc_1428_; +goto v_reusejp_1425_; +} +v_reusejp_1425_: +{ +lean_object* v___x_1427_; +v___x_1427_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1427_, 0, v___x_1426_); +return v___x_1427_; +} +} +} +else +{ +lean_object* v___x_1431_; uint8_t v_isShared_1432_; uint8_t v_isSharedCheck_1442_; +v_isSharedCheck_1442_ = !lean_is_exclusive(v_x_1413_); +if (v_isSharedCheck_1442_ == 0) +{ +lean_object* v_unused_1443_; +v_unused_1443_ = lean_ctor_get(v_x_1413_, 0); +lean_dec(v_unused_1443_); +v___x_1431_ = v_x_1413_; +v_isShared_1432_ = v_isSharedCheck_1442_; +goto v_resetjp_1430_; +} +else +{ +lean_dec(v_x_1413_); +v___x_1431_ = lean_box(0); +v_isShared_1432_ = v_isSharedCheck_1442_; +goto v_resetjp_1430_; +} +v_resetjp_1430_: +{ +lean_object* v___x_1433_; +v___x_1433_ = lean_uv_tcp_nodelay(v_a_1412_); +if (lean_obj_tag(v___x_1433_) == 0) +{ +lean_object* v_a_1434_; lean_object* v___x_1436_; +v_a_1434_ = lean_ctor_get(v___x_1433_, 0); +lean_inc(v_a_1434_); +lean_dec_ref(v___x_1433_); +if (v_isShared_1432_ == 0) +{ +lean_ctor_set(v___x_1431_, 0, v_a_1434_); +v___x_1436_ = v___x_1431_; +goto v_reusejp_1435_; +} +else +{ +lean_object* v_reuseFailAlloc_1437_; +v_reuseFailAlloc_1437_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1437_, 0, v_a_1434_); +v___x_1436_ = v_reuseFailAlloc_1437_; +goto v_reusejp_1435_; +} +v_reusejp_1435_: +{ +v_val_1416_ = v___x_1436_; +goto v___jp_1415_; +} +} +else +{ +lean_object* v_a_1438_; lean_object* v___x_1440_; +v_a_1438_ = lean_ctor_get(v___x_1433_, 0); +lean_inc(v_a_1438_); +lean_dec_ref(v___x_1433_); +if (v_isShared_1432_ == 0) +{ +lean_ctor_set_tag(v___x_1431_, 0); +lean_ctor_set(v___x_1431_, 0, v_a_1438_); +v___x_1440_ = v___x_1431_; +goto v_reusejp_1439_; +} +else +{ +lean_object* v_reuseFailAlloc_1441_; +v_reuseFailAlloc_1441_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1441_, 0, v_a_1438_); +v___x_1440_ = v_reuseFailAlloc_1441_; +goto v_reusejp_1439_; +} +v_reusejp_1439_: +{ +v_val_1416_ = v___x_1440_; +goto v___jp_1415_; +} +} +} +} +v___jp_1415_: +{ +lean_object* v___x_1417_; lean_object* v___x_1418_; uint8_t v___x_1419_; lean_object* v___x_1420_; +v___x_1417_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1417_, 0, v_val_1416_); +v___x_1418_ = lean_unsigned_to_nat(0u); +v___x_1419_ = 0; +v___x_1420_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1418_, v___x_1419_, v___x_1417_, v___f_1411_); +return v___x_1420_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__29___boxed(lean_object* v___f_1444_, lean_object* v_a_1445_, lean_object* v_x_1446_, lean_object* v___y_1447_){ +_start: +{ +lean_object* v_res_1448_; +v_res_1448_ = l_Std_Http_Server_serve___redArg___lam__29(v___f_1444_, v_a_1445_, v_x_1446_); +lean_dec(v_a_1445_); +return v_res_1448_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__30(lean_object* v___f_1449_, lean_object* v_a_1450_, uint32_t v_backlog_1451_, lean_object* v_x_1452_){ +_start: +{ +lean_object* v_val_1455_; +if (lean_obj_tag(v_x_1452_) == 0) +{ +lean_object* v_a_1460_; lean_object* v___x_1462_; uint8_t v_isShared_1463_; uint8_t v_isSharedCheck_1468_; +lean_dec_ref(v___f_1449_); +v_a_1460_ = lean_ctor_get(v_x_1452_, 0); +v_isSharedCheck_1468_ = !lean_is_exclusive(v_x_1452_); +if (v_isSharedCheck_1468_ == 0) +{ +v___x_1462_ = v_x_1452_; +v_isShared_1463_ = v_isSharedCheck_1468_; +goto v_resetjp_1461_; +} +else +{ +lean_inc(v_a_1460_); +lean_dec(v_x_1452_); +v___x_1462_ = lean_box(0); +v_isShared_1463_ = v_isSharedCheck_1468_; +goto v_resetjp_1461_; +} +v_resetjp_1461_: +{ +lean_object* v___x_1465_; +if (v_isShared_1463_ == 0) +{ +v___x_1465_ = v___x_1462_; +goto v_reusejp_1464_; +} +else +{ +lean_object* v_reuseFailAlloc_1467_; +v_reuseFailAlloc_1467_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1467_, 0, v_a_1460_); +v___x_1465_ = v_reuseFailAlloc_1467_; +goto v_reusejp_1464_; +} +v_reusejp_1464_: +{ +lean_object* v___x_1466_; +v___x_1466_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1466_, 0, v___x_1465_); +return v___x_1466_; +} +} +} +else +{ +lean_object* v___x_1470_; uint8_t v_isShared_1471_; uint8_t v_isSharedCheck_1481_; +v_isSharedCheck_1481_ = !lean_is_exclusive(v_x_1452_); +if (v_isSharedCheck_1481_ == 0) +{ +lean_object* v_unused_1482_; +v_unused_1482_ = lean_ctor_get(v_x_1452_, 0); +lean_dec(v_unused_1482_); +v___x_1470_ = v_x_1452_; +v_isShared_1471_ = v_isSharedCheck_1481_; +goto v_resetjp_1469_; +} +else +{ +lean_dec(v_x_1452_); +v___x_1470_ = lean_box(0); +v_isShared_1471_ = v_isSharedCheck_1481_; +goto v_resetjp_1469_; +} +v_resetjp_1469_: +{ +lean_object* v___x_1472_; +v___x_1472_ = lean_uv_tcp_listen(v_a_1450_, v_backlog_1451_); +if (lean_obj_tag(v___x_1472_) == 0) +{ +lean_object* v_a_1473_; lean_object* v___x_1475_; +v_a_1473_ = lean_ctor_get(v___x_1472_, 0); +lean_inc(v_a_1473_); +lean_dec_ref(v___x_1472_); +if (v_isShared_1471_ == 0) +{ +lean_ctor_set(v___x_1470_, 0, v_a_1473_); +v___x_1475_ = v___x_1470_; +goto v_reusejp_1474_; +} +else +{ +lean_object* v_reuseFailAlloc_1476_; +v_reuseFailAlloc_1476_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1476_, 0, v_a_1473_); +v___x_1475_ = v_reuseFailAlloc_1476_; +goto v_reusejp_1474_; +} +v_reusejp_1474_: +{ +v_val_1455_ = v___x_1475_; +goto v___jp_1454_; +} +} +else +{ +lean_object* v_a_1477_; lean_object* v___x_1479_; +v_a_1477_ = lean_ctor_get(v___x_1472_, 0); +lean_inc(v_a_1477_); +lean_dec_ref(v___x_1472_); +if (v_isShared_1471_ == 0) +{ +lean_ctor_set_tag(v___x_1470_, 0); +lean_ctor_set(v___x_1470_, 0, v_a_1477_); +v___x_1479_ = v___x_1470_; +goto v_reusejp_1478_; +} +else +{ +lean_object* v_reuseFailAlloc_1480_; +v_reuseFailAlloc_1480_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1480_, 0, v_a_1477_); +v___x_1479_ = v_reuseFailAlloc_1480_; +goto v_reusejp_1478_; +} +v_reusejp_1478_: +{ +v_val_1455_ = v___x_1479_; +goto v___jp_1454_; +} +} +} +} +v___jp_1454_: +{ +lean_object* v___x_1456_; lean_object* v___x_1457_; uint8_t v___x_1458_; lean_object* v___x_1459_; +v___x_1456_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1456_, 0, v_val_1455_); +v___x_1457_ = lean_unsigned_to_nat(0u); +v___x_1458_ = 0; +v___x_1459_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1457_, v___x_1458_, v___x_1456_, v___f_1449_); +return v___x_1459_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__30___boxed(lean_object* v___f_1483_, lean_object* v_a_1484_, lean_object* v_backlog_1485_, lean_object* v_x_1486_, lean_object* v___y_1487_){ +_start: +{ +uint32_t v_backlog_boxed_1488_; lean_object* v_res_1489_; +v_backlog_boxed_1488_ = lean_unbox_uint32(v_backlog_1485_); +lean_dec(v_backlog_1485_); +v_res_1489_ = l_Std_Http_Server_serve___redArg___lam__30(v___f_1483_, v_a_1484_, v_backlog_boxed_1488_, v_x_1486_); +lean_dec(v_a_1484_); +return v_res_1489_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__31(lean_object* v_a_1490_, lean_object* v___f_1491_, lean_object* v___x_1492_, lean_object* v___f_1493_, lean_object* v___f_1494_, lean_object* v___f_1495_, lean_object* v_inst_1496_, lean_object* v_handler_1497_, lean_object* v_config_1498_, lean_object* v___f_1499_, lean_object* v___f_1500_, lean_object* v___f_1501_, lean_object* v___f_1502_, lean_object* v___f_1503_, lean_object* v___f_1504_, uint32_t v_backlog_1505_, lean_object* v_addr_1506_, lean_object* v_x_1507_){ +_start: +{ +if (lean_obj_tag(v_x_1507_) == 0) +{ +lean_object* v_a_1509_; lean_object* v___x_1511_; uint8_t v_isShared_1512_; uint8_t v_isSharedCheck_1517_; +lean_dec_ref(v___f_1504_); +lean_dec_ref(v___f_1503_); +lean_dec_ref(v___f_1502_); +lean_dec_ref(v___f_1501_); +lean_dec_ref(v___f_1500_); +lean_dec_ref(v___f_1499_); +lean_dec_ref(v_config_1498_); +lean_dec(v_handler_1497_); +lean_dec_ref(v_inst_1496_); +lean_dec_ref(v___f_1495_); +lean_dec_ref(v___f_1494_); +lean_dec_ref(v___f_1493_); +lean_dec_ref(v___x_1492_); +lean_dec_ref(v___f_1491_); +lean_dec_ref(v_a_1490_); +v_a_1509_ = lean_ctor_get(v_x_1507_, 0); +v_isSharedCheck_1517_ = !lean_is_exclusive(v_x_1507_); +if (v_isSharedCheck_1517_ == 0) +{ +v___x_1511_ = v_x_1507_; +v_isShared_1512_ = v_isSharedCheck_1517_; +goto v_resetjp_1510_; +} +else +{ +lean_inc(v_a_1509_); +lean_dec(v_x_1507_); +v___x_1511_ = lean_box(0); +v_isShared_1512_ = v_isSharedCheck_1517_; +goto v_resetjp_1510_; +} +v_resetjp_1510_: +{ +lean_object* v___x_1514_; +if (v_isShared_1512_ == 0) +{ +v___x_1514_ = v___x_1511_; +goto v_reusejp_1513_; +} +else +{ +lean_object* v_reuseFailAlloc_1516_; +v_reuseFailAlloc_1516_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1516_, 0, v_a_1509_); +v___x_1514_ = v_reuseFailAlloc_1516_; +goto v_reusejp_1513_; +} +v_reusejp_1513_: +{ +lean_object* v___x_1515_; +v___x_1515_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1515_, 0, v___x_1514_); +return v___x_1515_; +} +} +} +else +{ +lean_object* v_a_1518_; lean_object* v___x_1520_; uint8_t v_isShared_1521_; uint8_t v_isSharedCheck_1541_; +v_a_1518_ = lean_ctor_get(v_x_1507_, 0); +v_isSharedCheck_1541_ = !lean_is_exclusive(v_x_1507_); +if (v_isSharedCheck_1541_ == 0) +{ +v___x_1520_ = v_x_1507_; +v_isShared_1521_ = v_isSharedCheck_1541_; +goto v_resetjp_1519_; +} +else +{ +lean_inc(v_a_1518_); +lean_dec(v_x_1507_); +v___x_1520_ = lean_box(0); +v_isShared_1521_ = v_isSharedCheck_1541_; +goto v_resetjp_1519_; +} +v_resetjp_1519_: +{ +lean_object* v___f_1522_; lean_object* v___f_1523_; lean_object* v___x_1524_; lean_object* v___f_1525_; lean_object* v_val_1527_; lean_object* v___x_1532_; +lean_inc_n(v_a_1518_, 3); +v___f_1522_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__28___boxed), 18, 16); +lean_closure_set(v___f_1522_, 0, v_a_1490_); +lean_closure_set(v___f_1522_, 1, v___f_1491_); +lean_closure_set(v___f_1522_, 2, v___x_1492_); +lean_closure_set(v___f_1522_, 3, v___f_1493_); +lean_closure_set(v___f_1522_, 4, v___f_1494_); +lean_closure_set(v___f_1522_, 5, v___f_1495_); +lean_closure_set(v___f_1522_, 6, v_inst_1496_); +lean_closure_set(v___f_1522_, 7, v_handler_1497_); +lean_closure_set(v___f_1522_, 8, v_config_1498_); +lean_closure_set(v___f_1522_, 9, v___f_1499_); +lean_closure_set(v___f_1522_, 10, v_a_1518_); +lean_closure_set(v___f_1522_, 11, v___f_1500_); +lean_closure_set(v___f_1522_, 12, v___f_1501_); +lean_closure_set(v___f_1522_, 13, v___f_1502_); +lean_closure_set(v___f_1522_, 14, v___f_1503_); +lean_closure_set(v___f_1522_, 15, v___f_1504_); +v___f_1523_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__29___boxed), 4, 2); +lean_closure_set(v___f_1523_, 0, v___f_1522_); +lean_closure_set(v___f_1523_, 1, v_a_1518_); +v___x_1524_ = lean_box_uint32(v_backlog_1505_); +v___f_1525_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__30___boxed), 5, 3); +lean_closure_set(v___f_1525_, 0, v___f_1523_); +lean_closure_set(v___f_1525_, 1, v_a_1518_); +lean_closure_set(v___f_1525_, 2, v___x_1524_); +v___x_1532_ = lean_uv_tcp_bind(v_a_1518_, v_addr_1506_); +lean_dec(v_a_1518_); +if (lean_obj_tag(v___x_1532_) == 0) +{ +lean_object* v_a_1533_; lean_object* v___x_1535_; +v_a_1533_ = lean_ctor_get(v___x_1532_, 0); +lean_inc(v_a_1533_); +lean_dec_ref(v___x_1532_); +if (v_isShared_1521_ == 0) +{ +lean_ctor_set(v___x_1520_, 0, v_a_1533_); +v___x_1535_ = v___x_1520_; +goto v_reusejp_1534_; +} +else +{ +lean_object* v_reuseFailAlloc_1536_; +v_reuseFailAlloc_1536_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1536_, 0, v_a_1533_); +v___x_1535_ = v_reuseFailAlloc_1536_; +goto v_reusejp_1534_; +} +v_reusejp_1534_: +{ +v_val_1527_ = v___x_1535_; +goto v___jp_1526_; +} +} +else +{ +lean_object* v_a_1537_; lean_object* v___x_1539_; +v_a_1537_ = lean_ctor_get(v___x_1532_, 0); +lean_inc(v_a_1537_); +lean_dec_ref(v___x_1532_); +if (v_isShared_1521_ == 0) +{ +lean_ctor_set_tag(v___x_1520_, 0); +lean_ctor_set(v___x_1520_, 0, v_a_1537_); +v___x_1539_ = v___x_1520_; +goto v_reusejp_1538_; +} +else +{ +lean_object* v_reuseFailAlloc_1540_; +v_reuseFailAlloc_1540_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1540_, 0, v_a_1537_); +v___x_1539_ = v_reuseFailAlloc_1540_; +goto v_reusejp_1538_; +} +v_reusejp_1538_: +{ +v_val_1527_ = v___x_1539_; +goto v___jp_1526_; +} +} +v___jp_1526_: +{ +lean_object* v___x_1528_; lean_object* v___x_1529_; uint8_t v___x_1530_; lean_object* v___x_1531_; +v___x_1528_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1528_, 0, v_val_1527_); +v___x_1529_ = lean_unsigned_to_nat(0u); +v___x_1530_ = 0; +v___x_1531_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1529_, v___x_1530_, v___x_1528_, v___f_1525_); +return v___x_1531_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__31___boxed(lean_object** _args){ +lean_object* v_a_1542_ = _args[0]; +lean_object* v___f_1543_ = _args[1]; +lean_object* v___x_1544_ = _args[2]; +lean_object* v___f_1545_ = _args[3]; +lean_object* v___f_1546_ = _args[4]; +lean_object* v___f_1547_ = _args[5]; +lean_object* v_inst_1548_ = _args[6]; +lean_object* v_handler_1549_ = _args[7]; +lean_object* v_config_1550_ = _args[8]; +lean_object* v___f_1551_ = _args[9]; +lean_object* v___f_1552_ = _args[10]; +lean_object* v___f_1553_ = _args[11]; +lean_object* v___f_1554_ = _args[12]; +lean_object* v___f_1555_ = _args[13]; +lean_object* v___f_1556_ = _args[14]; +lean_object* v_backlog_1557_ = _args[15]; +lean_object* v_addr_1558_ = _args[16]; +lean_object* v_x_1559_ = _args[17]; +lean_object* v___y_1560_ = _args[18]; +_start: +{ +uint32_t v_backlog_boxed_1561_; lean_object* v_res_1562_; +v_backlog_boxed_1561_ = lean_unbox_uint32(v_backlog_1557_); +lean_dec(v_backlog_1557_); +v_res_1562_ = l_Std_Http_Server_serve___redArg___lam__31(v_a_1542_, v___f_1543_, v___x_1544_, v___f_1545_, v___f_1546_, v___f_1547_, v_inst_1548_, v_handler_1549_, v_config_1550_, v___f_1551_, v___f_1552_, v___f_1553_, v___f_1554_, v___f_1555_, v___f_1556_, v_backlog_boxed_1561_, v_addr_1558_, v_x_1559_); +lean_dec_ref(v_addr_1558_); +return v_res_1562_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__32(lean_object* v___f_1563_, lean_object* v___x_1564_, lean_object* v___f_1565_, lean_object* v___f_1566_, lean_object* v_inst_1567_, lean_object* v_handler_1568_, lean_object* v_config_1569_, lean_object* v___f_1570_, lean_object* v___f_1571_, lean_object* v___f_1572_, lean_object* v___f_1573_, lean_object* v___f_1574_, uint32_t v_backlog_1575_, lean_object* v_addr_1576_, lean_object* v_x_1577_){ +_start: +{ +if (lean_obj_tag(v_x_1577_) == 0) +{ +lean_object* v___x_1579_; +lean_dec_ref(v_addr_1576_); +lean_dec_ref(v___f_1574_); +lean_dec_ref(v___f_1573_); +lean_dec_ref(v___f_1572_); +lean_dec_ref(v___f_1571_); +lean_dec_ref(v___f_1570_); +lean_dec_ref(v_config_1569_); +lean_dec(v_handler_1568_); +lean_dec_ref(v_inst_1567_); +lean_dec_ref(v___f_1566_); +lean_dec_ref(v___f_1565_); +lean_dec_ref(v___x_1564_); +lean_dec_ref(v___f_1563_); +v___x_1579_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1579_, 0, v_x_1577_); +return v___x_1579_; +} +else +{ +lean_object* v_a_1580_; lean_object* v___f_1581_; lean_object* v___f_1582_; lean_object* v___f_1583_; lean_object* v___x_1584_; lean_object* v___f_1585_; lean_object* v_val_1587_; lean_object* v___x_1592_; +v_a_1580_ = lean_ctor_get(v_x_1577_, 0); +lean_inc_n(v_a_1580_, 2); +v___f_1581_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__6___boxed), 3, 1); +lean_closure_set(v___f_1581_, 0, v_x_1577_); +v___f_1582_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__7___boxed), 3, 1); +lean_closure_set(v___f_1582_, 0, v_a_1580_); +v___f_1583_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___lam__4___boxed), 5, 1); +lean_closure_set(v___f_1583_, 0, v___f_1582_); +v___x_1584_ = lean_box_uint32(v_backlog_1575_); +v___f_1585_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__31___boxed), 19, 17); +lean_closure_set(v___f_1585_, 0, v_a_1580_); +lean_closure_set(v___f_1585_, 1, v___f_1563_); +lean_closure_set(v___f_1585_, 2, v___x_1564_); +lean_closure_set(v___f_1585_, 3, v___f_1565_); +lean_closure_set(v___f_1585_, 4, v___f_1566_); +lean_closure_set(v___f_1585_, 5, v___f_1583_); +lean_closure_set(v___f_1585_, 6, v_inst_1567_); +lean_closure_set(v___f_1585_, 7, v_handler_1568_); +lean_closure_set(v___f_1585_, 8, v_config_1569_); +lean_closure_set(v___f_1585_, 9, v___f_1570_); +lean_closure_set(v___f_1585_, 10, v___f_1571_); +lean_closure_set(v___f_1585_, 11, v___f_1572_); +lean_closure_set(v___f_1585_, 12, v___f_1573_); +lean_closure_set(v___f_1585_, 13, v___f_1574_); +lean_closure_set(v___f_1585_, 14, v___f_1581_); +lean_closure_set(v___f_1585_, 15, v___x_1584_); +lean_closure_set(v___f_1585_, 16, v_addr_1576_); +v___x_1592_ = lean_uv_tcp_new(); +if (lean_obj_tag(v___x_1592_) == 0) +{ +lean_object* v_a_1593_; lean_object* v___x_1595_; uint8_t v_isShared_1596_; uint8_t v_isSharedCheck_1600_; +v_a_1593_ = lean_ctor_get(v___x_1592_, 0); +v_isSharedCheck_1600_ = !lean_is_exclusive(v___x_1592_); +if (v_isSharedCheck_1600_ == 0) +{ +v___x_1595_ = v___x_1592_; +v_isShared_1596_ = v_isSharedCheck_1600_; +goto v_resetjp_1594_; +} +else +{ +lean_inc(v_a_1593_); +lean_dec(v___x_1592_); +v___x_1595_ = lean_box(0); +v_isShared_1596_ = v_isSharedCheck_1600_; +goto v_resetjp_1594_; +} +v_resetjp_1594_: +{ +lean_object* v___x_1598_; +if (v_isShared_1596_ == 0) +{ +lean_ctor_set_tag(v___x_1595_, 1); +v___x_1598_ = v___x_1595_; +goto v_reusejp_1597_; +} +else +{ +lean_object* v_reuseFailAlloc_1599_; +v_reuseFailAlloc_1599_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1599_, 0, v_a_1593_); +v___x_1598_ = v_reuseFailAlloc_1599_; +goto v_reusejp_1597_; +} +v_reusejp_1597_: +{ +v_val_1587_ = v___x_1598_; +goto v___jp_1586_; +} +} +} +else +{ +lean_object* v_a_1601_; lean_object* v___x_1603_; uint8_t v_isShared_1604_; uint8_t v_isSharedCheck_1608_; +v_a_1601_ = lean_ctor_get(v___x_1592_, 0); +v_isSharedCheck_1608_ = !lean_is_exclusive(v___x_1592_); +if (v_isSharedCheck_1608_ == 0) +{ +v___x_1603_ = v___x_1592_; +v_isShared_1604_ = v_isSharedCheck_1608_; +goto v_resetjp_1602_; +} +else +{ +lean_inc(v_a_1601_); +lean_dec(v___x_1592_); +v___x_1603_ = lean_box(0); +v_isShared_1604_ = v_isSharedCheck_1608_; +goto v_resetjp_1602_; +} +v_resetjp_1602_: +{ +lean_object* v___x_1606_; +if (v_isShared_1604_ == 0) +{ +lean_ctor_set_tag(v___x_1603_, 0); +v___x_1606_ = v___x_1603_; +goto v_reusejp_1605_; +} +else +{ +lean_object* v_reuseFailAlloc_1607_; +v_reuseFailAlloc_1607_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1607_, 0, v_a_1601_); +v___x_1606_ = v_reuseFailAlloc_1607_; +goto v_reusejp_1605_; +} +v_reusejp_1605_: +{ +v_val_1587_ = v___x_1606_; +goto v___jp_1586_; +} +} +} +v___jp_1586_: +{ +lean_object* v___x_1588_; lean_object* v___x_1589_; uint8_t v___x_1590_; lean_object* v___x_1591_; +v___x_1588_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1588_, 0, v_val_1587_); +v___x_1589_ = lean_unsigned_to_nat(0u); +v___x_1590_ = 0; +v___x_1591_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1589_, v___x_1590_, v___x_1588_, v___f_1585_); +return v___x_1591_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___lam__32___boxed(lean_object* v___f_1609_, lean_object* v___x_1610_, lean_object* v___f_1611_, lean_object* v___f_1612_, lean_object* v_inst_1613_, lean_object* v_handler_1614_, lean_object* v_config_1615_, lean_object* v___f_1616_, lean_object* v___f_1617_, lean_object* v___f_1618_, lean_object* v___f_1619_, lean_object* v___f_1620_, lean_object* v_backlog_1621_, lean_object* v_addr_1622_, lean_object* v_x_1623_, lean_object* v___y_1624_){ +_start: +{ +uint32_t v_backlog_boxed_1625_; lean_object* v_res_1626_; +v_backlog_boxed_1625_ = lean_unbox_uint32(v_backlog_1621_); +lean_dec(v_backlog_1621_); +v_res_1626_ = l_Std_Http_Server_serve___redArg___lam__32(v___f_1609_, v___x_1610_, v___f_1611_, v___f_1612_, v_inst_1613_, v_handler_1614_, v_config_1615_, v___f_1616_, v___f_1617_, v___f_1618_, v___f_1619_, v___f_1620_, v_backlog_boxed_1625_, v_addr_1622_, v_x_1623_); +return v_res_1626_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg(lean_object* v_inst_1632_, lean_object* v_addr_1633_, lean_object* v_handler_1634_, lean_object* v_config_1635_, uint32_t v_backlog_1636_){ +_start: +{ +lean_object* v___f_1638_; lean_object* v___f_1639_; lean_object* v___f_1640_; lean_object* v___f_1641_; lean_object* v___f_1642_; lean_object* v___f_1643_; lean_object* v___f_1644_; lean_object* v___f_1645_; lean_object* v___x_1646_; lean_object* v___x_1647_; lean_object* v___f_1648_; lean_object* v_val_1650_; lean_object* v___x_1655_; lean_object* v_a_1656_; lean_object* v___x_1658_; uint8_t v_isShared_1659_; uint8_t v_isSharedCheck_1663_; +v___f_1638_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___closed__0)); +v___f_1639_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__0)); +v___f_1640_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___closed__1)); +v___f_1641_ = ((lean_object*)(l___private_Std_Internal_Http_Server_0__Std_Http_Server_frameCancellation___redArg___closed__5)); +v___f_1642_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___closed__2)); +v___f_1643_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___closed__3)); +v___f_1644_ = ((lean_object*)(l_Std_Http_Server_serve___redArg___closed__4)); +v___f_1645_ = ((lean_object*)(l_Std_Http_Server_waitShutdown___closed__0)); +v___x_1646_ = l_Std_Internal_IO_Async_ContextAsync_instMonad; +v___x_1647_ = lean_box_uint32(v_backlog_1636_); +lean_inc_ref(v_config_1635_); +v___f_1648_ = lean_alloc_closure((void*)(l_Std_Http_Server_serve___redArg___lam__32___boxed), 16, 14); +lean_closure_set(v___f_1648_, 0, v___f_1644_); +lean_closure_set(v___f_1648_, 1, v___x_1646_); +lean_closure_set(v___f_1648_, 2, v___f_1639_); +lean_closure_set(v___f_1648_, 3, v___f_1641_); +lean_closure_set(v___f_1648_, 4, v_inst_1632_); +lean_closure_set(v___f_1648_, 5, v_handler_1634_); +lean_closure_set(v___f_1648_, 6, v_config_1635_); +lean_closure_set(v___f_1648_, 7, v___f_1640_); +lean_closure_set(v___f_1648_, 8, v___f_1643_); +lean_closure_set(v___f_1648_, 9, v___f_1642_); +lean_closure_set(v___f_1648_, 10, v___f_1645_); +lean_closure_set(v___f_1648_, 11, v___f_1638_); +lean_closure_set(v___f_1648_, 12, v___x_1647_); +lean_closure_set(v___f_1648_, 13, v_addr_1633_); +v___x_1655_ = l_Std_Http_Server_new(v_config_1635_); +v_a_1656_ = lean_ctor_get(v___x_1655_, 0); +v_isSharedCheck_1663_ = !lean_is_exclusive(v___x_1655_); +if (v_isSharedCheck_1663_ == 0) +{ +v___x_1658_ = v___x_1655_; +v_isShared_1659_ = v_isSharedCheck_1663_; +goto v_resetjp_1657_; +} +else +{ +lean_inc(v_a_1656_); +lean_dec(v___x_1655_); +v___x_1658_ = lean_box(0); +v_isShared_1659_ = v_isSharedCheck_1663_; +goto v_resetjp_1657_; +} +v___jp_1649_: +{ +lean_object* v___x_1651_; lean_object* v___x_1652_; uint8_t v___x_1653_; lean_object* v___x_1654_; +v___x_1651_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1651_, 0, v_val_1650_); +v___x_1652_ = lean_unsigned_to_nat(0u); +v___x_1653_ = 0; +v___x_1654_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1652_, v___x_1653_, v___x_1651_, v___f_1648_); +return v___x_1654_; +} +v_resetjp_1657_: +{ +lean_object* v___x_1661_; +if (v_isShared_1659_ == 0) +{ +lean_ctor_set_tag(v___x_1658_, 1); +v___x_1661_ = v___x_1658_; +goto v_reusejp_1660_; +} +else +{ +lean_object* v_reuseFailAlloc_1662_; +v_reuseFailAlloc_1662_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1662_, 0, v_a_1656_); +v___x_1661_ = v_reuseFailAlloc_1662_; +goto v_reusejp_1660_; +} +v_reusejp_1660_: +{ +v_val_1650_ = v___x_1661_; +goto v___jp_1649_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___redArg___boxed(lean_object* v_inst_1664_, lean_object* v_addr_1665_, lean_object* v_handler_1666_, lean_object* v_config_1667_, lean_object* v_backlog_1668_, lean_object* v_a_1669_){ +_start: +{ +uint32_t v_backlog_boxed_1670_; lean_object* v_res_1671_; +v_backlog_boxed_1670_ = lean_unbox_uint32(v_backlog_1668_); +lean_dec(v_backlog_1668_); +v_res_1671_ = l_Std_Http_Server_serve___redArg(v_inst_1664_, v_addr_1665_, v_handler_1666_, v_config_1667_, v_backlog_boxed_1670_); +return v_res_1671_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve(lean_object* v_00_u03c3_1672_, lean_object* v_inst_1673_, lean_object* v_addr_1674_, lean_object* v_handler_1675_, lean_object* v_config_1676_, uint32_t v_backlog_1677_){ +_start: +{ +lean_object* v___x_1679_; +v___x_1679_ = l_Std_Http_Server_serve___redArg(v_inst_1673_, v_addr_1674_, v_handler_1675_, v_config_1676_, v_backlog_1677_); +return v___x_1679_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serve___boxed(lean_object* v_00_u03c3_1680_, lean_object* v_inst_1681_, lean_object* v_addr_1682_, lean_object* v_handler_1683_, lean_object* v_config_1684_, lean_object* v_backlog_1685_, lean_object* v_a_1686_){ +_start: +{ +uint32_t v_backlog_boxed_1687_; lean_object* v_res_1688_; +v_backlog_boxed_1687_ = lean_unbox_uint32(v_backlog_1685_); +lean_dec(v_backlog_1685_); +v_res_1688_ = l_Std_Http_Server_serve(v_00_u03c3_1680_, v_inst_1681_, v_addr_1682_, v_handler_1683_, v_config_1684_, v_backlog_boxed_1687_); +return v_res_1688_; +} +} +lean_object* runtime_initialize_Std_Internal_Async(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Async_TCP(uint8_t builtin); +lean_object* runtime_initialize_Std_Sync_CancellationToken(uint8_t builtin); +lean_object* runtime_initialize_Std_Sync_Semaphore(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server_Config(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server_Handler(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server_Connection(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Server(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Async_TCP(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Sync_CancellationToken(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Connection(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Server(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Internal_Async(uint8_t builtin); +lean_object* initialize_Std_Internal_Async_TCP(uint8_t builtin); +lean_object* initialize_Std_Sync_CancellationToken(uint8_t builtin); +lean_object* initialize_Std_Sync_Semaphore(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server_Config(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server_Handler(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server_Connection(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Server(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Async_TCP(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Sync_CancellationToken(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Server_Connection(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Server(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Server(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Internal/Http/Server/Config.c b/stage0/stdlib/Std/Internal/Http/Server/Config.c new file mode 100644 index 0000000000..cace442f4d --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Server/Config.c @@ -0,0 +1,136 @@ +// Lean compiler output +// Module: Std.Internal.Http.Server.Config +// Imports: public import Std.Time public import Std.Internal.Http.Protocol.H1 +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Std_Http_Config_toH1Config(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Config_toH1Config___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Config_toH1Config(lean_object* v_config_1_){ +_start: +{ +lean_object* v_maxRequests_2_; lean_object* v_maxHeaders_3_; lean_object* v_maxHeaderBytes_4_; uint8_t v_enableKeepAlive_5_; lean_object* v_serverName_6_; lean_object* v_maxUriLength_7_; lean_object* v_maxStartLineLength_8_; lean_object* v_maxHeaderNameLength_9_; lean_object* v_maxHeaderValueLength_10_; lean_object* v_maxSpaceSequence_11_; lean_object* v_maxLeadingEmptyLines_12_; lean_object* v_maxChunkExtNameLength_13_; lean_object* v_maxChunkExtValueLength_14_; lean_object* v_maxChunkLineLength_15_; lean_object* v_maxChunkSize_16_; lean_object* v_maxBodySize_17_; lean_object* v_maxReasonPhraseLength_18_; lean_object* v_maxTrailerHeaders_19_; lean_object* v_maxChunkExtensions_20_; lean_object* v___x_21_; +v_maxRequests_2_ = lean_ctor_get(v_config_1_, 1); +v_maxHeaders_3_ = lean_ctor_get(v_config_1_, 2); +v_maxHeaderBytes_4_ = lean_ctor_get(v_config_1_, 3); +v_enableKeepAlive_5_ = lean_ctor_get_uint8(v_config_1_, sizeof(void*)*24); +v_serverName_6_ = lean_ctor_get(v_config_1_, 9); +v_maxUriLength_7_ = lean_ctor_get(v_config_1_, 10); +v_maxStartLineLength_8_ = lean_ctor_get(v_config_1_, 11); +v_maxHeaderNameLength_9_ = lean_ctor_get(v_config_1_, 12); +v_maxHeaderValueLength_10_ = lean_ctor_get(v_config_1_, 13); +v_maxSpaceSequence_11_ = lean_ctor_get(v_config_1_, 14); +v_maxLeadingEmptyLines_12_ = lean_ctor_get(v_config_1_, 15); +v_maxChunkExtNameLength_13_ = lean_ctor_get(v_config_1_, 16); +v_maxChunkExtValueLength_14_ = lean_ctor_get(v_config_1_, 17); +v_maxChunkLineLength_15_ = lean_ctor_get(v_config_1_, 18); +v_maxChunkSize_16_ = lean_ctor_get(v_config_1_, 19); +v_maxBodySize_17_ = lean_ctor_get(v_config_1_, 20); +v_maxReasonPhraseLength_18_ = lean_ctor_get(v_config_1_, 21); +v_maxTrailerHeaders_19_ = lean_ctor_get(v_config_1_, 22); +v_maxChunkExtensions_20_ = lean_ctor_get(v_config_1_, 23); +lean_inc(v_maxTrailerHeaders_19_); +lean_inc(v_maxReasonPhraseLength_18_); +lean_inc(v_maxBodySize_17_); +lean_inc(v_maxChunkSize_16_); +lean_inc(v_maxChunkLineLength_15_); +lean_inc(v_maxChunkExtValueLength_14_); +lean_inc(v_maxChunkExtNameLength_13_); +lean_inc(v_maxChunkExtensions_20_); +lean_inc(v_maxLeadingEmptyLines_12_); +lean_inc(v_maxSpaceSequence_11_); +lean_inc(v_maxHeaderValueLength_10_); +lean_inc(v_maxHeaderNameLength_9_); +lean_inc(v_maxStartLineLength_8_); +lean_inc(v_maxUriLength_7_); +lean_inc(v_serverName_6_); +lean_inc(v_maxHeaderBytes_4_); +lean_inc(v_maxHeaders_3_); +lean_inc(v_maxRequests_2_); +v___x_21_ = lean_alloc_ctor(0, 18, 1); +lean_ctor_set(v___x_21_, 0, v_maxRequests_2_); +lean_ctor_set(v___x_21_, 1, v_maxHeaders_3_); +lean_ctor_set(v___x_21_, 2, v_maxHeaderBytes_4_); +lean_ctor_set(v___x_21_, 3, v_serverName_6_); +lean_ctor_set(v___x_21_, 4, v_maxUriLength_7_); +lean_ctor_set(v___x_21_, 5, v_maxStartLineLength_8_); +lean_ctor_set(v___x_21_, 6, v_maxHeaderNameLength_9_); +lean_ctor_set(v___x_21_, 7, v_maxHeaderValueLength_10_); +lean_ctor_set(v___x_21_, 8, v_maxSpaceSequence_11_); +lean_ctor_set(v___x_21_, 9, v_maxLeadingEmptyLines_12_); +lean_ctor_set(v___x_21_, 10, v_maxChunkExtensions_20_); +lean_ctor_set(v___x_21_, 11, v_maxChunkExtNameLength_13_); +lean_ctor_set(v___x_21_, 12, v_maxChunkExtValueLength_14_); +lean_ctor_set(v___x_21_, 13, v_maxChunkLineLength_15_); +lean_ctor_set(v___x_21_, 14, v_maxChunkSize_16_); +lean_ctor_set(v___x_21_, 15, v_maxBodySize_17_); +lean_ctor_set(v___x_21_, 16, v_maxReasonPhraseLength_18_); +lean_ctor_set(v___x_21_, 17, v_maxTrailerHeaders_19_); +lean_ctor_set_uint8(v___x_21_, sizeof(void*)*18, v_enableKeepAlive_5_); +return v___x_21_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Config_toH1Config___boxed(lean_object* v_config_22_){ +_start: +{ +lean_object* v_res_23_; +v_res_23_ = l_Std_Http_Config_toH1Config(v_config_22_); +lean_dec_ref(v_config_22_); +return v_res_23_; +} +} +lean_object* runtime_initialize_Std_Time(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Server_Config(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Time(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Server_Config(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Time(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Server_Config(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Time(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Server_Config(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Internal/Http/Server/Connection.c b/stage0/stdlib/Std/Internal/Http/Server/Connection.c new file mode 100644 index 0000000000..03a3be332b --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Server/Connection.c @@ -0,0 +1,14474 @@ +// Lean compiler output +// Module: Std.Internal.Http.Server.Connection +// Imports: public import Std.Internal.Async.TCP public import Std.Internal.Async.ContextAsync public import Std.Internal.Http.Transport public import Std.Internal.Http.Protocol.H1 public import Std.Internal.Http.Server.Config public import Std.Internal.Http.Server.Handler +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize(uint8_t, lean_object*, uint8_t); +lean_object* lean_st_ref_take(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_EAsync_instMonad(lean_object*); +lean_object* l_Std_Internal_IO_Async_EAsync_instMonadLiftBaseIO___lam__0___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_instMonadLiftT___lam__0___boxed(lean_object*, lean_object*); +lean_object* l_instMonadLiftTOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_EAsync_instMonadFinally___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Mutex_atomically___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_IO_instMonadLiftSTRealWorldBaseIO___lam__0___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateRefT_x27_instMonad___aux__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Stream_close(lean_object*); +lean_object* lean_mk_io_user_error(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Std_CloseableChannel_new___redArg(lean_object*); +lean_object* l_Std_Http_Body_mkStream(); +lean_object* l_Std_Http_Protocol_H1_Machine_canContinue(uint8_t, lean_object*, lean_object*); +lean_object* lean_task_pure(lean_object*); +lean_object* l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_io_as_task(lean_object*, lean_object*); +lean_object* l_Std_Channel_send___redArg(lean_object*, lean_object*); +lean_object* l_BaseIO_chainTask___redArg(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Channel_recvSelector___redArg(lean_object*, lean_object*); +lean_object* l_Std_CancellationToken_selector(lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_object*); +lean_object* l_Std_Internal_IO_Async_Selector_sleep(lean_object*); +lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*, uint8_t); +extern lean_object* l_instInhabitedError; +lean_object* l_Std_Http_Body_Stream_interestSelector(lean_object*); +lean_object* l_Std_CancellationToken_getCancellationReason(lean_object*); +uint64_t lean_uint64_of_nat(lean_object*); +lean_object* lean_int_neg(lean_object*); +lean_object* lean_nat_to_int(lean_object*); +lean_object* lean_int_mul(lean_object*, lean_object*); +lean_object* lean_int_add(lean_object*, lean_object*); +lean_object* l_Std_Time_Duration_ofNanoseconds(lean_object*); +lean_object* lean_int_ediv(lean_object*, lean_object*); +lean_object* lean_get_current_time(); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_String_decEq___boxed(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +uint64_t lean_string_hash(lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +uint64_t lean_uint64_xor(uint64_t, uint64_t); +size_t lean_uint64_to_usize(uint64_t); +size_t lean_usize_of_nat(lean_object*); +size_t lean_usize_sub(size_t, size_t); +size_t lean_usize_land(size_t, size_t); +lean_object* lean_array_uget_borrowed(lean_object*, size_t); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Stream_hasInterest(lean_object*); +size_t lean_array_size(lean_object*); +lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Functor_discard(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Channel_send___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Function_comp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_IO_Promise_result_x21___redArg(lean_object*); +extern lean_object* l_Std_Http_Header_Name_date; +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +extern lean_object* l_Std_Time_TimeZone_UTC; +lean_object* l_Std_Time_DateTime_toRFC822String(lean_object*, lean_object*); +lean_object* l_Std_Http_Header_Value_ofString_x21(lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(lean_object*); +lean_object* l_Std_Time_PlainDateTime_toTimestampAssumingUTC(lean_object*); +lean_object* l_Std_Time_TimeZone_toSeconds(lean_object*); +lean_object* lean_mk_thunk(lean_object*); +lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders(uint8_t, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t); +lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); +lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Std_Internal_IndexMultiMap_empty(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_Http_Header_Name_transferEncoding; +lean_object* l_String_hash___boxed(lean_object*); +lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(uint8_t, lean_object*, lean_object*, uint8_t); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(uint8_t, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Message_Head_headers(uint8_t, lean_object*); +extern lean_object* l_Std_Http_Header_Name_contentLength; +uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +uint16_t l_Std_Http_Status_toCode(lean_object*); +uint8_t lean_uint16_dec_le(uint16_t, uint16_t); +uint8_t lean_uint16_dec_lt(uint16_t, uint16_t); +uint8_t l_Std_Http_Protocol_H1_Writer_instBEqState_beq(lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Machine_step(uint8_t, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead(uint8_t); +lean_object* lean_mk_empty_byte_array(lean_object*); +lean_object* l_ByteArray_mkIterator(lean_object*); +lean_object* l_Rat_ofInt(lean_object*); +lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError(lean_object*, lean_object*); +lean_object* lean_byte_array_size(lean_object*); +lean_object* l_ByteArray_extract(lean_object*, lean_object*, lean_object*); +lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Array_append___redArg(lean_object*, lean_object*); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(uint8_t, lean_object*); +lean_object* l_Std_Http_Body_Stream_send(lean_object*, lean_object*, uint8_t); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_Http_Config_toH1Config(lean_object*); +lean_object* lean_io_promise_new(); +extern lean_object* l_instMonadBaseIO; +lean_object* lean_uv_ntop_v4(lean_object*); +lean_object* lean_uint16_to_nat(uint16_t); +lean_object* l_Nat_reprFast(lean_object*); +lean_object* lean_uv_ntop_v6(lean_object*); +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Server_instImpl___closed__0_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 4, .m_capacity = 4, .m_length = 3, .m_data = "Std"}; +static const lean_object* l_Std_Http_Server_instImpl___closed__0_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__0_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +static const lean_string_object l_Std_Http_Server_instImpl___closed__1_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "Http"}; +static const lean_object* l_Std_Http_Server_instImpl___closed__1_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__1_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +static const lean_string_object l_Std_Http_Server_instImpl___closed__2_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = "Server"}; +static const lean_object* l_Std_Http_Server_instImpl___closed__2_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__2_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +static const lean_string_object l_Std_Http_Server_instImpl___closed__3_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "RemoteAddr"}; +static const lean_object* l_Std_Http_Server_instImpl___closed__3_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__3_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +static const lean_ctor_object l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_0 = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l_Std_Http_Server_instImpl___closed__0_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value),LEAN_SCALAR_PTR_LITERAL(48, 144, 193, 124, 159, 137, 91, 218)}}; +static const lean_ctor_object l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_1 = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_0),((lean_object*)&l_Std_Http_Server_instImpl___closed__1_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value),LEAN_SCALAR_PTR_LITERAL(62, 74, 245, 198, 196, 207, 141, 173)}}; +static const lean_ctor_object l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_2 = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_1),((lean_object*)&l_Std_Http_Server_instImpl___closed__2_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value),LEAN_SCALAR_PTR_LITERAL(3, 137, 82, 156, 27, 230, 60, 168)}}; +static const lean_ctor_object l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 8, .m_other = 2, .m_tag = 1}, .m_objs = {((lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value_aux_2),((lean_object*)&l_Std_Http_Server_instImpl___closed__3_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value),LEAN_SCALAR_PTR_LITERAL(136, 13, 149, 223, 202, 48, 50, 45)}}; +static const lean_object* l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +LEAN_EXPORT const lean_object* l_Std_Http_Server_instImpl_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8_ = (const lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +LEAN_EXPORT const lean_object* l_Std_Http_Server_instTypeNameRemoteAddr = (const lean_object*)&l_Std_Http_Server_instImpl___closed__4_00___x40_Std_Internal_Http_Server_Connection_3058719504____hygCtx___hyg_8__value; +static const lean_string_object l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ":"}; +static const lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__0_value; +static const lean_string_object l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "["}; +static const lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__1 = (const lean_object*)&l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__1_value; +static const lean_string_object l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "]:"}; +static const lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__2 = (const lean_object*)&l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0___boxed(lean_object*); +static const lean_closure_object l_Std_Http_Server_instToStringRemoteAddr___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_instToStringRemoteAddr___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_instToStringRemoteAddr___closed__0 = (const lean_object*)&l_Std_Http_Server_instToStringRemoteAddr___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Server_instToStringRemoteAddr = (const lean_object*)&l_Std_Http_Server_instToStringRemoteAddr___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bytes_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bytes_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_responseBody_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_responseBody_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bodyInterest_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bodyInterest_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_response_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_response_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_timeout_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_timeout_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_shutdown_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_shutdown_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_close_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_close_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(5) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__1_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(4) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__2_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__2_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__3_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(6) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4(uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__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_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__3_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__4_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__5_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__6 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__6_value; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1(uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__2(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__2, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Int_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_cast___at___00Nat_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__1_spec__4(lean_object*); +LEAN_EXPORT lean_object* l_Nat_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__1(lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__0, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__1___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__3, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__3_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__4___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__4_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__5___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__5_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Id_instMonad___lam__6, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__6 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__6_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__0_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__1_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__7 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__7_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*5 + 0, .m_other = 5, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__7_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__2_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__3_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__4_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__5_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__8 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__8_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__8_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__6_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9_value; +static const lean_array_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__10 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__10_value; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_String_decEq___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_String_hash___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__14_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__5, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__14 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__14_value; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_EAsync_instMonadLiftBaseIO___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftT___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftTOfMonadLift___redArg___lam__0, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__2_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__1_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_EAsync_instMonadFinally___lam__0___boxed, .m_arity = 5, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_IO_instMonadLiftSTRealWorldBaseIO___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__5_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftTOfMonadLift___redArg___lam__0, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__2_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__5_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__6 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__6_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_instMonadLiftTOfMonadLift___redArg___lam__0, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__6_value),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__1_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__7 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__7_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*4, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_StateRefT_x27_get___boxed, .m_arity = 5, .m_num_fixed = 4, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__7_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 20, .m_capacity = 20, .m_length = 19, .m_data = "Invalid status line"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__0_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 15, .m_capacity = 15, .m_length = 14, .m_data = "Invalid header"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__1_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = "Timeout"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__2_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "Entity too large"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__3_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "URI too long"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__4_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 20, .m_capacity = 20, .m_length = 19, .m_data = "Unsupported version"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__5_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "Invalid chunk"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__6 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__6_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 18, .m_capacity = 18, .m_length = 17, .m_data = "Connection closed"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__7 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__7_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 12, .m_capacity = 12, .m_length = 11, .m_data = "Bad message"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__8 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__8_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__9_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "Too many headers"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__9 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__9_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__10_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 18, .m_capacity = 18, .m_length = 17, .m_data = "Headers too large"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__10 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__10_value; +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__11_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 14, .m_capacity = 14, .m_length = 13, .m_data = "Other error: "}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__11 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__11_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14(lean_object*, lean_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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15___boxed(lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 2}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 7}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__1_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 23, .m_capacity = 23, .m_length = 22, .m_data = "request header timeout"}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__0_value; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8(uint8_t, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11___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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19___boxed(lean_object**); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20___boxed(lean_object*, lean_object*, lean_object*, 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 const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0; +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1; +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2; +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3; +static const lean_array_object l_Std_Http_Server_serveConnection___redArg___lam__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__4 = (const lean_object*)&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__4_value; +static const lean_array_object l_Std_Http_Server_serveConnection___redArg___lam__0___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__5 = (const lean_object*)&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__5_value; +static const lean_ctor_object l_Std_Http_Server_serveConnection___redArg___lam__0___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__5_value),((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__6 = (const lean_object*)&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__6_value; +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7; +static lean_once_cell_t l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8; +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___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_Std_Http_Server_instToStringRemoteAddr___lam__0(lean_object* v_addr_15_){ +_start: +{ +if (lean_obj_tag(v_addr_15_) == 0) +{ +lean_object* v_addr_16_; lean_object* v_addr_17_; uint16_t v_port_18_; lean_object* v___x_19_; lean_object* v___x_20_; lean_object* v___x_21_; lean_object* v___x_22_; lean_object* v___x_23_; lean_object* v___x_24_; +v_addr_16_ = lean_ctor_get(v_addr_15_, 0); +v_addr_17_ = lean_ctor_get(v_addr_16_, 0); +v_port_18_ = lean_ctor_get_uint16(v_addr_16_, sizeof(void*)*1); +v___x_19_ = lean_uv_ntop_v4(v_addr_17_); +v___x_20_ = ((lean_object*)(l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__0)); +v___x_21_ = lean_string_append(v___x_19_, v___x_20_); +v___x_22_ = lean_uint16_to_nat(v_port_18_); +v___x_23_ = l_Nat_reprFast(v___x_22_); +v___x_24_ = lean_string_append(v___x_21_, v___x_23_); +lean_dec_ref(v___x_23_); +return v___x_24_; +} +else +{ +lean_object* v_addr_25_; lean_object* v_addr_26_; uint16_t v_port_27_; lean_object* v___x_28_; lean_object* v___x_29_; lean_object* v___x_30_; lean_object* v___x_31_; lean_object* v___x_32_; lean_object* v___x_33_; lean_object* v___x_34_; lean_object* v___x_35_; +v_addr_25_ = lean_ctor_get(v_addr_15_, 0); +v_addr_26_ = lean_ctor_get(v_addr_25_, 0); +v_port_27_ = lean_ctor_get_uint16(v_addr_25_, sizeof(void*)*1); +v___x_28_ = ((lean_object*)(l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__1)); +v___x_29_ = lean_uv_ntop_v6(v_addr_26_); +v___x_30_ = lean_string_append(v___x_28_, v___x_29_); +lean_dec_ref(v___x_29_); +v___x_31_ = ((lean_object*)(l_Std_Http_Server_instToStringRemoteAddr___lam__0___closed__2)); +v___x_32_ = lean_string_append(v___x_30_, v___x_31_); +v___x_33_ = lean_uint16_to_nat(v_port_27_); +v___x_34_ = l_Nat_reprFast(v___x_33_); +v___x_35_ = lean_string_append(v___x_32_, v___x_34_); +lean_dec_ref(v___x_34_); +return v___x_35_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instToStringRemoteAddr___lam__0___boxed(lean_object* v_addr_36_){ +_start: +{ +lean_object* v_res_37_; +v_res_37_ = l_Std_Http_Server_instToStringRemoteAddr___lam__0(v_addr_36_); +lean_dec_ref(v_addr_36_); +return v_res_37_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg(lean_object* v_x_40_){ +_start: +{ +switch(lean_obj_tag(v_x_40_)) +{ +case 0: +{ +lean_object* v___x_41_; +v___x_41_ = lean_unsigned_to_nat(0u); +return v___x_41_; +} +case 1: +{ +lean_object* v___x_42_; +v___x_42_ = lean_unsigned_to_nat(1u); +return v___x_42_; +} +case 2: +{ +lean_object* v___x_43_; +v___x_43_ = lean_unsigned_to_nat(2u); +return v___x_43_; +} +case 3: +{ +lean_object* v___x_44_; +v___x_44_ = lean_unsigned_to_nat(3u); +return v___x_44_; +} +case 4: +{ +lean_object* v___x_45_; +v___x_45_ = lean_unsigned_to_nat(4u); +return v___x_45_; +} +case 5: +{ +lean_object* v___x_46_; +v___x_46_ = lean_unsigned_to_nat(5u); +return v___x_46_; +} +default: +{ +lean_object* v___x_47_; +v___x_47_ = lean_unsigned_to_nat(6u); +return v___x_47_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg___boxed(lean_object* v_x_48_){ +_start: +{ +lean_object* v_res_49_; +v_res_49_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg(v_x_48_); +lean_dec(v_x_48_); +return v_res_49_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx(lean_object* v_00_u03b2_50_, lean_object* v_x_51_){ +_start: +{ +lean_object* v___x_52_; +v___x_52_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___redArg(v_x_51_); +return v___x_52_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx___boxed(lean_object* v_00_u03b2_53_, lean_object* v_x_54_){ +_start: +{ +lean_object* v_res_55_; +v_res_55_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorIdx(v_00_u03b2_53_, v_x_54_); +lean_dec(v_x_54_); +return v_res_55_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(lean_object* v_t_56_, lean_object* v_k_57_){ +_start: +{ +switch(lean_obj_tag(v_t_56_)) +{ +case 0: +{ +lean_object* v_x_58_; lean_object* v___x_59_; +v_x_58_ = lean_ctor_get(v_t_56_, 0); +lean_inc(v_x_58_); +lean_dec_ref(v_t_56_); +v___x_59_ = lean_apply_1(v_k_57_, v_x_58_); +return v___x_59_; +} +case 1: +{ +lean_object* v_x_60_; lean_object* v___x_61_; +v_x_60_ = lean_ctor_get(v_t_56_, 0); +lean_inc(v_x_60_); +lean_dec_ref(v_t_56_); +v___x_61_ = lean_apply_1(v_k_57_, v_x_60_); +return v___x_61_; +} +case 2: +{ +uint8_t v_x_62_; lean_object* v___x_63_; lean_object* v___x_64_; +v_x_62_ = lean_ctor_get_uint8(v_t_56_, 0); +lean_dec_ref(v_t_56_); +v___x_63_ = lean_box(v_x_62_); +v___x_64_ = lean_apply_1(v_k_57_, v___x_63_); +return v___x_64_; +} +case 3: +{ +lean_object* v_x_65_; lean_object* v___x_66_; +v_x_65_ = lean_ctor_get(v_t_56_, 0); +lean_inc_ref(v_x_65_); +lean_dec_ref(v_t_56_); +v___x_66_ = lean_apply_1(v_k_57_, v_x_65_); +return v___x_66_; +} +default: +{ +lean_dec(v_t_56_); +return v_k_57_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim(lean_object* v_00_u03b2_67_, lean_object* v_motive_68_, lean_object* v_ctorIdx_69_, lean_object* v_t_70_, lean_object* v_h_71_, lean_object* v_k_72_){ +_start: +{ +lean_object* v___x_73_; +v___x_73_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_70_, v_k_72_); +return v___x_73_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___boxed(lean_object* v_00_u03b2_74_, lean_object* v_motive_75_, lean_object* v_ctorIdx_76_, lean_object* v_t_77_, lean_object* v_h_78_, lean_object* v_k_79_){ +_start: +{ +lean_object* v_res_80_; +v_res_80_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim(v_00_u03b2_74_, v_motive_75_, v_ctorIdx_76_, v_t_77_, v_h_78_, v_k_79_); +lean_dec(v_ctorIdx_76_); +return v_res_80_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bytes_elim___redArg(lean_object* v_t_81_, lean_object* v_bytes_82_){ +_start: +{ +lean_object* v___x_83_; +v___x_83_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_81_, v_bytes_82_); +return v___x_83_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bytes_elim(lean_object* v_00_u03b2_84_, lean_object* v_motive_85_, lean_object* v_t_86_, lean_object* v_h_87_, lean_object* v_bytes_88_){ +_start: +{ +lean_object* v___x_89_; +v___x_89_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_86_, v_bytes_88_); +return v___x_89_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_responseBody_elim___redArg(lean_object* v_t_90_, lean_object* v_responseBody_91_){ +_start: +{ +lean_object* v___x_92_; +v___x_92_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_90_, v_responseBody_91_); +return v___x_92_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_responseBody_elim(lean_object* v_00_u03b2_93_, lean_object* v_motive_94_, lean_object* v_t_95_, lean_object* v_h_96_, lean_object* v_responseBody_97_){ +_start: +{ +lean_object* v___x_98_; +v___x_98_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_95_, v_responseBody_97_); +return v___x_98_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bodyInterest_elim___redArg(lean_object* v_t_99_, lean_object* v_bodyInterest_100_){ +_start: +{ +lean_object* v___x_101_; +v___x_101_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_99_, v_bodyInterest_100_); +return v___x_101_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_bodyInterest_elim(lean_object* v_00_u03b2_102_, lean_object* v_motive_103_, lean_object* v_t_104_, lean_object* v_h_105_, lean_object* v_bodyInterest_106_){ +_start: +{ +lean_object* v___x_107_; +v___x_107_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_104_, v_bodyInterest_106_); +return v___x_107_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_response_elim___redArg(lean_object* v_t_108_, lean_object* v_response_109_){ +_start: +{ +lean_object* v___x_110_; +v___x_110_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_108_, v_response_109_); +return v___x_110_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_response_elim(lean_object* v_00_u03b2_111_, lean_object* v_motive_112_, lean_object* v_t_113_, lean_object* v_h_114_, lean_object* v_response_115_){ +_start: +{ +lean_object* v___x_116_; +v___x_116_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_113_, v_response_115_); +return v___x_116_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_timeout_elim___redArg(lean_object* v_t_117_, lean_object* v_timeout_118_){ +_start: +{ +lean_object* v___x_119_; +v___x_119_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_117_, v_timeout_118_); +return v___x_119_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_timeout_elim(lean_object* v_00_u03b2_120_, lean_object* v_motive_121_, lean_object* v_t_122_, lean_object* v_h_123_, lean_object* v_timeout_124_){ +_start: +{ +lean_object* v___x_125_; +v___x_125_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_122_, v_timeout_124_); +return v___x_125_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_shutdown_elim___redArg(lean_object* v_t_126_, lean_object* v_shutdown_127_){ +_start: +{ +lean_object* v___x_128_; +v___x_128_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_126_, v_shutdown_127_); +return v___x_128_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_shutdown_elim(lean_object* v_00_u03b2_129_, lean_object* v_motive_130_, lean_object* v_t_131_, lean_object* v_h_132_, lean_object* v_shutdown_133_){ +_start: +{ +lean_object* v___x_134_; +v___x_134_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_131_, v_shutdown_133_); +return v___x_134_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_close_elim___redArg(lean_object* v_t_135_, lean_object* v_close_136_){ +_start: +{ +lean_object* v___x_137_; +v___x_137_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_135_, v_close_136_); +return v___x_137_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_close_elim(lean_object* v_00_u03b2_138_, lean_object* v_motive_139_, lean_object* v_t_140_, lean_object* v_h_141_, lean_object* v_close_142_){ +_start: +{ +lean_object* v___x_143_; +v___x_143_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_Recv_ctorElim___redArg(v_t_140_, v_close_142_); +return v___x_143_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0(lean_object* v_x_152_){ +_start: +{ +if (lean_obj_tag(v_x_152_) == 0) +{ +lean_object* v_a_156_; lean_object* v___x_158_; uint8_t v_isShared_159_; uint8_t v_isSharedCheck_164_; +v_a_156_ = lean_ctor_get(v_x_152_, 0); +v_isSharedCheck_164_ = !lean_is_exclusive(v_x_152_); +if (v_isSharedCheck_164_ == 0) +{ +v___x_158_ = v_x_152_; +v_isShared_159_ = v_isSharedCheck_164_; +goto v_resetjp_157_; +} +else +{ +lean_inc(v_a_156_); +lean_dec(v_x_152_); +v___x_158_ = lean_box(0); +v_isShared_159_ = v_isSharedCheck_164_; +goto v_resetjp_157_; +} +v_resetjp_157_: +{ +lean_object* v___x_161_; +if (v_isShared_159_ == 0) +{ +v___x_161_ = v___x_158_; +goto v_reusejp_160_; +} +else +{ +lean_object* v_reuseFailAlloc_163_; +v_reuseFailAlloc_163_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_163_, 0, v_a_156_); +v___x_161_ = v_reuseFailAlloc_163_; +goto v_reusejp_160_; +} +v_reusejp_160_: +{ +lean_object* v___x_162_; +v___x_162_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_162_, 0, v___x_161_); +return v___x_162_; +} +} +} +else +{ +lean_object* v_a_165_; +v_a_165_ = lean_ctor_get(v_x_152_, 0); +lean_inc(v_a_165_); +lean_dec_ref(v_x_152_); +if (lean_obj_tag(v_a_165_) == 1) +{ +lean_object* v_val_166_; +v_val_166_ = lean_ctor_get(v_a_165_, 0); +lean_inc(v_val_166_); +lean_dec_ref(v_a_165_); +if (lean_obj_tag(v_val_166_) == 0) +{ +lean_object* v___x_167_; +v___x_167_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__3)); +return v___x_167_; +} +else +{ +lean_dec(v_val_166_); +goto v___jp_154_; +} +} +else +{ +lean_dec(v_a_165_); +goto v___jp_154_; +} +} +v___jp_154_: +{ +lean_object* v___x_155_; +v___x_155_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__1)); +return v___x_155_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___boxed(lean_object* v_x_168_, lean_object* v___y_169_){ +_start: +{ +lean_object* v_res_170_; +v_res_170_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0(v_x_168_); +return v_res_170_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1(lean_object* v_x_175_){ +_start: +{ +if (lean_obj_tag(v_x_175_) == 0) +{ +lean_object* v_a_177_; lean_object* v___x_179_; uint8_t v_isShared_180_; uint8_t v_isSharedCheck_185_; +v_a_177_ = lean_ctor_get(v_x_175_, 0); +v_isSharedCheck_185_ = !lean_is_exclusive(v_x_175_); +if (v_isSharedCheck_185_ == 0) +{ +v___x_179_ = v_x_175_; +v_isShared_180_ = v_isSharedCheck_185_; +goto v_resetjp_178_; +} +else +{ +lean_inc(v_a_177_); +lean_dec(v_x_175_); +v___x_179_ = lean_box(0); +v_isShared_180_ = v_isSharedCheck_185_; +goto v_resetjp_178_; +} +v_resetjp_178_: +{ +lean_object* v___x_182_; +if (v_isShared_180_ == 0) +{ +v___x_182_ = v___x_179_; +goto v_reusejp_181_; +} +else +{ +lean_object* v_reuseFailAlloc_184_; +v_reuseFailAlloc_184_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_184_, 0, v_a_177_); +v___x_182_ = v_reuseFailAlloc_184_; +goto v_reusejp_181_; +} +v_reusejp_181_: +{ +lean_object* v___x_183_; +v___x_183_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_183_, 0, v___x_182_); +return v___x_183_; +} +} +} +else +{ +lean_object* v___x_186_; +lean_dec_ref(v_x_175_); +v___x_186_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___closed__1)); +return v___x_186_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1___boxed(lean_object* v_x_187_, lean_object* v___y_188_){ +_start: +{ +lean_object* v_res_189_; +v_res_189_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__1(v_x_187_); +return v_res_189_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2(lean_object* v_inst_190_, lean_object* v_handler_191_, lean_object* v___f_192_, lean_object* v_x_193_){ +_start: +{ +if (lean_obj_tag(v_x_193_) == 0) +{ +lean_object* v_a_195_; lean_object* v_onFailure_196_; lean_object* v___x_197_; lean_object* v___x_198_; uint8_t v___x_199_; lean_object* v___x_200_; +v_a_195_ = lean_ctor_get(v_x_193_, 0); +lean_inc(v_a_195_); +lean_dec_ref(v_x_193_); +v_onFailure_196_ = lean_ctor_get(v_inst_190_, 2); +lean_inc_ref(v_onFailure_196_); +lean_dec_ref(v_inst_190_); +v___x_197_ = lean_apply_3(v_onFailure_196_, v_handler_191_, v_a_195_, lean_box(0)); +v___x_198_ = lean_unsigned_to_nat(0u); +v___x_199_ = 0; +v___x_200_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_198_, v___x_199_, v___x_197_, v___f_192_); +return v___x_200_; +} +else +{ +lean_object* v___x_201_; +lean_dec_ref(v___f_192_); +lean_dec(v_handler_191_); +lean_dec_ref(v_inst_190_); +v___x_201_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_201_, 0, v_x_193_); +return v___x_201_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2___boxed(lean_object* v_inst_202_, lean_object* v_handler_203_, lean_object* v___f_204_, lean_object* v_x_205_, lean_object* v___y_206_){ +_start: +{ +lean_object* v_res_207_; +v_res_207_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2(v_inst_202_, v_handler_203_, v___f_204_, v_x_205_); +return v_res_207_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3(lean_object* v_x_208_){ +_start: +{ +lean_object* v___x_210_; lean_object* v___x_211_; lean_object* v___x_212_; +v___x_210_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_210_, 0, v_x_208_); +v___x_211_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_211_, 0, v___x_210_); +v___x_212_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_212_, 0, v___x_211_); +return v___x_212_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3___boxed(lean_object* v_x_213_, lean_object* v___y_214_){ +_start: +{ +lean_object* v_res_215_; +v_res_215_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__3(v_x_213_); +return v_res_215_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4(uint8_t v_x_216_){ +_start: +{ +lean_object* v___x_218_; lean_object* v___x_219_; lean_object* v___x_220_; +v___x_218_ = lean_alloc_ctor(2, 0, 1); +lean_ctor_set_uint8(v___x_218_, 0, v_x_216_); +v___x_219_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_219_, 0, v___x_218_); +v___x_220_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_220_, 0, v___x_219_); +return v___x_220_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4___boxed(lean_object* v_x_221_, lean_object* v___y_222_){ +_start: +{ +uint8_t v_x_3604__boxed_223_; lean_object* v_res_224_; +v_x_3604__boxed_223_ = lean_unbox(v_x_221_); +v_res_224_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__4(v_x_3604__boxed_223_); +return v_res_224_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5(lean_object* v_x_225_){ +_start: +{ +lean_object* v___x_227_; lean_object* v___x_228_; lean_object* v___x_229_; +v___x_227_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_227_, 0, v_x_225_); +v___x_228_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_228_, 0, v___x_227_); +v___x_229_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_229_, 0, v___x_228_); +return v___x_229_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5___boxed(lean_object* v_x_230_, lean_object* v___y_231_){ +_start: +{ +lean_object* v_res_232_; +v_res_232_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__5(v_x_230_); +return v_res_232_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6(lean_object* v_x_233_){ +_start: +{ +lean_object* v___x_235_; lean_object* v___x_236_; lean_object* v___x_237_; +v___x_235_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_235_, 0, v_x_233_); +v___x_236_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_236_, 0, v___x_235_); +v___x_237_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_237_, 0, v___x_236_); +return v___x_237_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6___boxed(lean_object* v_x_238_, lean_object* v___y_239_){ +_start: +{ +lean_object* v_res_240_; +v_res_240_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__6(v_x_238_); +return v_res_240_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7(lean_object* v_x_241_){ +_start: +{ +lean_object* v___x_243_; +v___x_243_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__0___closed__3)); +return v___x_243_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7___boxed(lean_object* v_x_244_, lean_object* v___y_245_){ +_start: +{ +lean_object* v_res_246_; +v_res_246_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__7(v_x_244_); +return v_res_246_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9(lean_object* v___f_247_, lean_object* v_response_248_, lean_object* v___x_249_, lean_object* v___f_250_, lean_object* v_requestBody_251_, lean_object* v___f_252_, lean_object* v_responseBody_253_, lean_object* v_inst_254_, lean_object* v___f_255_, lean_object* v_____r_256_, lean_object* v_selectables_257_){ +_start: +{ +lean_object* v_selectables_260_; lean_object* v_selectables_266_; lean_object* v_selectables_272_; +if (lean_obj_tag(v_responseBody_253_) == 1) +{ +lean_object* v_val_277_; lean_object* v_recvSelector_278_; lean_object* v___x_279_; lean_object* v___x_280_; lean_object* v_selectables_281_; +v_val_277_ = lean_ctor_get(v_responseBody_253_, 0); +lean_inc(v_val_277_); +lean_dec_ref(v_responseBody_253_); +v_recvSelector_278_ = lean_ctor_get(v_inst_254_, 3); +lean_inc_ref(v_recvSelector_278_); +lean_dec_ref(v_inst_254_); +v___x_279_ = lean_apply_1(v_recvSelector_278_, v_val_277_); +v___x_280_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_280_, 0, v___x_279_); +lean_ctor_set(v___x_280_, 1, v___f_255_); +v_selectables_281_ = lean_array_push(v_selectables_257_, v___x_280_); +v_selectables_272_ = v_selectables_281_; +goto v___jp_271_; +} +else +{ +lean_dec_ref(v___f_255_); +lean_dec_ref(v_inst_254_); +lean_dec(v_responseBody_253_); +v_selectables_272_ = v_selectables_257_; +goto v___jp_271_; +} +v___jp_259_: +{ +lean_object* v___x_261_; lean_object* v___x_262_; uint8_t v___x_263_; lean_object* v___x_264_; +v___x_261_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_260_); +v___x_262_ = lean_unsigned_to_nat(0u); +v___x_263_ = 0; +v___x_264_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_262_, v___x_263_, v___x_261_, v___f_247_); +return v___x_264_; +} +v___jp_265_: +{ +if (lean_obj_tag(v_response_248_) == 1) +{ +lean_object* v_val_267_; lean_object* v___x_268_; lean_object* v___x_269_; lean_object* v_selectables_270_; +v_val_267_ = lean_ctor_get(v_response_248_, 0); +lean_inc(v_val_267_); +lean_dec_ref(v_response_248_); +v___x_268_ = l_Std_Channel_recvSelector___redArg(v___x_249_, v_val_267_); +v___x_269_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_269_, 0, v___x_268_); +lean_ctor_set(v___x_269_, 1, v___f_250_); +v_selectables_270_ = lean_array_push(v_selectables_266_, v___x_269_); +v_selectables_260_ = v_selectables_270_; +goto v___jp_259_; +} +else +{ +lean_dec_ref(v___f_250_); +lean_dec_ref(v___x_249_); +lean_dec(v_response_248_); +v_selectables_260_ = v_selectables_266_; +goto v___jp_259_; +} +} +v___jp_271_: +{ +if (lean_obj_tag(v_requestBody_251_) == 1) +{ +lean_object* v_val_273_; lean_object* v___x_274_; lean_object* v___x_275_; lean_object* v_selectables_276_; +v_val_273_ = lean_ctor_get(v_requestBody_251_, 0); +lean_inc(v_val_273_); +lean_dec_ref(v_requestBody_251_); +v___x_274_ = l_Std_Http_Body_Stream_interestSelector(v_val_273_); +v___x_275_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_275_, 0, v___x_274_); +lean_ctor_set(v___x_275_, 1, v___f_252_); +v_selectables_276_ = lean_array_push(v_selectables_272_, v___x_275_); +v_selectables_266_ = v_selectables_276_; +goto v___jp_265_; +} +else +{ +lean_dec_ref(v___f_252_); +lean_dec(v_requestBody_251_); +v_selectables_266_ = v_selectables_272_; +goto v___jp_265_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9___boxed(lean_object* v___f_282_, lean_object* v_response_283_, lean_object* v___x_284_, lean_object* v___f_285_, lean_object* v_requestBody_286_, lean_object* v___f_287_, lean_object* v_responseBody_288_, lean_object* v_inst_289_, lean_object* v___f_290_, lean_object* v_____r_291_, lean_object* v_selectables_292_, lean_object* v___y_293_){ +_start: +{ +lean_object* v_res_294_; +v_res_294_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9(v___f_282_, v_response_283_, v___x_284_, v___f_285_, v_requestBody_286_, v___f_287_, v_responseBody_288_, v_inst_289_, v___f_290_, v_____r_291_, v_selectables_292_); +return v_res_294_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8(lean_object* v_token_295_, lean_object* v___f_296_, lean_object* v_x_297_){ +_start: +{ +lean_object* v___x_299_; lean_object* v___x_300_; lean_object* v___x_301_; lean_object* v___x_302_; uint8_t v___x_303_; lean_object* v___x_304_; +v___x_299_ = l_Std_CancellationToken_getCancellationReason(v_token_295_); +v___x_300_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_300_, 0, v___x_299_); +v___x_301_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_301_, 0, v___x_300_); +v___x_302_ = lean_unsigned_to_nat(0u); +v___x_303_ = 0; +v___x_304_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_302_, v___x_303_, v___x_301_, v___f_296_); +return v___x_304_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8___boxed(lean_object* v_token_305_, lean_object* v___f_306_, lean_object* v_x_307_, lean_object* v___y_308_){ +_start: +{ +lean_object* v_res_309_; +v_res_309_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8(v_token_305_, v___f_306_, v_x_307_); +return v_res_309_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10(lean_object* v___f_310_, lean_object* v_selectables_311_, lean_object* v___f_312_, lean_object* v_x_313_){ +_start: +{ +if (lean_obj_tag(v_x_313_) == 0) +{ +lean_object* v_a_315_; lean_object* v___x_317_; uint8_t v_isShared_318_; uint8_t v_isSharedCheck_323_; +lean_dec_ref(v___f_312_); +lean_dec_ref(v_selectables_311_); +lean_dec_ref(v___f_310_); +v_a_315_ = lean_ctor_get(v_x_313_, 0); +v_isSharedCheck_323_ = !lean_is_exclusive(v_x_313_); +if (v_isSharedCheck_323_ == 0) +{ +v___x_317_ = v_x_313_; +v_isShared_318_ = v_isSharedCheck_323_; +goto v_resetjp_316_; +} +else +{ +lean_inc(v_a_315_); +lean_dec(v_x_313_); +v___x_317_ = lean_box(0); +v_isShared_318_ = v_isSharedCheck_323_; +goto v_resetjp_316_; +} +v_resetjp_316_: +{ +lean_object* v___x_320_; +if (v_isShared_318_ == 0) +{ +v___x_320_ = v___x_317_; +goto v_reusejp_319_; +} +else +{ +lean_object* v_reuseFailAlloc_322_; +v_reuseFailAlloc_322_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_322_, 0, v_a_315_); +v___x_320_ = v_reuseFailAlloc_322_; +goto v_reusejp_319_; +} +v_reusejp_319_: +{ +lean_object* v___x_321_; +v___x_321_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_321_, 0, v___x_320_); +return v___x_321_; +} +} +} +else +{ +lean_object* v_a_324_; lean_object* v___x_325_; lean_object* v___x_326_; lean_object* v___x_327_; lean_object* v___x_328_; +v_a_324_ = lean_ctor_get(v_x_313_, 0); +lean_inc(v_a_324_); +lean_dec_ref(v_x_313_); +v___x_325_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_325_, 0, v_a_324_); +lean_ctor_set(v___x_325_, 1, v___f_310_); +v___x_326_ = lean_array_push(v_selectables_311_, v___x_325_); +v___x_327_ = lean_box(0); +v___x_328_ = lean_apply_3(v___f_312_, v___x_327_, v___x_326_, lean_box(0)); +return v___x_328_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10___boxed(lean_object* v___f_329_, lean_object* v_selectables_330_, lean_object* v___f_331_, lean_object* v_x_332_, lean_object* v___y_333_){ +_start: +{ +lean_object* v_res_334_; +v_res_334_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10(v___f_329_, v_selectables_330_, v___f_331_, v_x_332_); +return v_res_334_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0(void){ +_start: +{ +lean_object* v___x_335_; lean_object* v___x_336_; +v___x_335_ = lean_unsigned_to_nat(1000000000u); +v___x_336_ = lean_nat_to_int(v___x_335_); +return v___x_336_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1(void){ +_start: +{ +lean_object* v___x_337_; lean_object* v___x_338_; +v___x_337_ = lean_unsigned_to_nat(1000u); +v___x_338_ = lean_nat_to_int(v___x_337_); +return v___x_338_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2(void){ +_start: +{ +lean_object* v___x_339_; lean_object* v___x_340_; +v___x_339_ = lean_unsigned_to_nat(1000000u); +v___x_340_ = lean_nat_to_int(v___x_339_); +return v___x_340_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11(lean_object* v_val_341_, lean_object* v___f_342_, lean_object* v_x_343_){ +_start: +{ +if (lean_obj_tag(v_x_343_) == 0) +{ +lean_object* v_a_345_; lean_object* v___x_347_; uint8_t v_isShared_348_; uint8_t v_isSharedCheck_353_; +lean_dec_ref(v___f_342_); +v_a_345_ = lean_ctor_get(v_x_343_, 0); +v_isSharedCheck_353_ = !lean_is_exclusive(v_x_343_); +if (v_isSharedCheck_353_ == 0) +{ +v___x_347_ = v_x_343_; +v_isShared_348_ = v_isSharedCheck_353_; +goto v_resetjp_346_; +} +else +{ +lean_inc(v_a_345_); +lean_dec(v_x_343_); +v___x_347_ = lean_box(0); +v_isShared_348_ = v_isSharedCheck_353_; +goto v_resetjp_346_; +} +v_resetjp_346_: +{ +lean_object* v___x_350_; +if (v_isShared_348_ == 0) +{ +v___x_350_ = v___x_347_; +goto v_reusejp_349_; +} +else +{ +lean_object* v_reuseFailAlloc_352_; +v_reuseFailAlloc_352_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_352_, 0, v_a_345_); +v___x_350_ = v_reuseFailAlloc_352_; +goto v_reusejp_349_; +} +v_reusejp_349_: +{ +lean_object* v___x_351_; +v___x_351_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_351_, 0, v___x_350_); +return v___x_351_; +} +} +} +else +{ +lean_object* v_a_354_; lean_object* v_second_355_; lean_object* v_nano_356_; lean_object* v_second_357_; lean_object* v_nano_358_; lean_object* v___x_359_; lean_object* v___x_360_; lean_object* v___x_361_; lean_object* v___x_362_; lean_object* v___x_363_; lean_object* v___x_364_; lean_object* v___x_365_; lean_object* v___x_366_; lean_object* v___x_367_; lean_object* v_second_368_; lean_object* v_nano_369_; lean_object* v___x_370_; lean_object* v___x_371_; lean_object* v___x_372_; lean_object* v___x_373_; lean_object* v_millis_374_; lean_object* v___x_375_; lean_object* v___x_376_; uint8_t v___x_377_; lean_object* v___x_378_; +v_a_354_ = lean_ctor_get(v_x_343_, 0); +lean_inc(v_a_354_); +lean_dec_ref(v_x_343_); +v_second_355_ = lean_ctor_get(v_a_354_, 0); +lean_inc(v_second_355_); +v_nano_356_ = lean_ctor_get(v_a_354_, 1); +lean_inc(v_nano_356_); +lean_dec(v_a_354_); +v_second_357_ = lean_ctor_get(v_val_341_, 0); +v_nano_358_ = lean_ctor_get(v_val_341_, 1); +v___x_359_ = lean_int_neg(v_second_355_); +lean_dec(v_second_355_); +v___x_360_ = lean_int_neg(v_nano_356_); +lean_dec(v_nano_356_); +v___x_361_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0); +v___x_362_ = lean_int_mul(v_second_357_, v___x_361_); +v___x_363_ = lean_int_add(v___x_362_, v_nano_358_); +lean_dec(v___x_362_); +v___x_364_ = lean_int_mul(v___x_359_, v___x_361_); +lean_dec(v___x_359_); +v___x_365_ = lean_int_add(v___x_364_, v___x_360_); +lean_dec(v___x_360_); +lean_dec(v___x_364_); +v___x_366_ = lean_int_add(v___x_363_, v___x_365_); +lean_dec(v___x_365_); +lean_dec(v___x_363_); +v___x_367_ = l_Std_Time_Duration_ofNanoseconds(v___x_366_); +lean_dec(v___x_366_); +v_second_368_ = lean_ctor_get(v___x_367_, 0); +lean_inc(v_second_368_); +v_nano_369_ = lean_ctor_get(v___x_367_, 1); +lean_inc(v_nano_369_); +lean_dec_ref(v___x_367_); +v___x_370_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__1); +v___x_371_ = lean_int_mul(v_second_368_, v___x_370_); +lean_dec(v_second_368_); +v___x_372_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2); +v___x_373_ = lean_int_ediv(v_nano_369_, v___x_372_); +lean_dec(v_nano_369_); +v_millis_374_ = lean_int_add(v___x_371_, v___x_373_); +lean_dec(v___x_373_); +lean_dec(v___x_371_); +v___x_375_ = l_Std_Internal_IO_Async_Selector_sleep(v_millis_374_); +lean_dec(v_millis_374_); +v___x_376_ = lean_unsigned_to_nat(0u); +v___x_377_ = 0; +v___x_378_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_376_, v___x_377_, v___x_375_, v___f_342_); +return v___x_378_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___boxed(lean_object* v_val_379_, lean_object* v___f_380_, lean_object* v_x_381_, lean_object* v___y_382_){ +_start: +{ +lean_object* v_res_383_; +v_res_383_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11(v_val_379_, v___f_380_, v_x_381_); +lean_dec_ref(v_val_379_); +return v_res_383_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7(void){ +_start: +{ +lean_object* v___x_391_; lean_object* v___x_392_; +v___x_391_ = l_instInhabitedError; +v___x_392_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_392_, 0, v___x_391_); +return v___x_392_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg(lean_object* v_inst_393_, lean_object* v_inst_394_, lean_object* v_inst_395_, lean_object* v_config_396_, lean_object* v_handler_397_, lean_object* v_sources_398_){ +_start: +{ +lean_object* v___y_401_; lean_object* v_val_402_; lean_object* v_socket_407_; lean_object* v_expect_408_; lean_object* v_response_409_; lean_object* v_responseBody_410_; lean_object* v_requestBody_411_; lean_object* v_timeout_412_; lean_object* v_keepAliveTimeout_413_; lean_object* v_headerTimeout_414_; lean_object* v_connectionContext_415_; lean_object* v___f_416_; lean_object* v___f_417_; lean_object* v___f_418_; lean_object* v___f_419_; lean_object* v___f_420_; lean_object* v___f_421_; lean_object* v___f_422_; lean_object* v___f_423_; lean_object* v___x_424_; lean_object* v___f_425_; lean_object* v___y_427_; lean_object* v___y_472_; +v_socket_407_ = lean_ctor_get(v_sources_398_, 0); +lean_inc(v_socket_407_); +v_expect_408_ = lean_ctor_get(v_sources_398_, 1); +lean_inc(v_expect_408_); +v_response_409_ = lean_ctor_get(v_sources_398_, 2); +lean_inc_n(v_response_409_, 2); +v_responseBody_410_ = lean_ctor_get(v_sources_398_, 3); +lean_inc_n(v_responseBody_410_, 2); +v_requestBody_411_ = lean_ctor_get(v_sources_398_, 4); +lean_inc_n(v_requestBody_411_, 2); +v_timeout_412_ = lean_ctor_get(v_sources_398_, 5); +lean_inc(v_timeout_412_); +v_keepAliveTimeout_413_ = lean_ctor_get(v_sources_398_, 6); +lean_inc(v_keepAliveTimeout_413_); +v_headerTimeout_414_ = lean_ctor_get(v_sources_398_, 7); +lean_inc(v_headerTimeout_414_); +v_connectionContext_415_ = lean_ctor_get(v_sources_398_, 8); +lean_inc_ref(v_connectionContext_415_); +lean_dec_ref(v_sources_398_); +v___f_416_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__0)); +v___f_417_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__1)); +v___f_418_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__2___boxed), 5, 3); +lean_closure_set(v___f_418_, 0, v_inst_394_); +lean_closure_set(v___f_418_, 1, v_handler_397_); +lean_closure_set(v___f_418_, 2, v___f_417_); +v___f_419_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__2)); +v___f_420_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__3)); +v___f_421_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__4)); +v___f_422_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__5)); +v___f_423_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__6)); +v___x_424_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___closed__7); +lean_inc_ref(v_inst_395_); +lean_inc_ref(v___f_418_); +v___f_425_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9___boxed), 12, 9); +lean_closure_set(v___f_425_, 0, v___f_418_); +lean_closure_set(v___f_425_, 1, v_response_409_); +lean_closure_set(v___f_425_, 2, v___x_424_); +lean_closure_set(v___f_425_, 3, v___f_419_); +lean_closure_set(v___f_425_, 4, v_requestBody_411_); +lean_closure_set(v___f_425_, 5, v___f_420_); +lean_closure_set(v___f_425_, 6, v_responseBody_410_); +lean_closure_set(v___f_425_, 7, v_inst_395_); +lean_closure_set(v___f_425_, 8, v___f_421_); +if (lean_obj_tag(v_expect_408_) == 0) +{ +lean_object* v_defaultPayloadBytes_475_; +v_defaultPayloadBytes_475_ = lean_ctor_get(v_config_396_, 8); +lean_inc(v_defaultPayloadBytes_475_); +v___y_472_ = v_defaultPayloadBytes_475_; +goto v___jp_471_; +} +else +{ +lean_object* v_val_476_; +v_val_476_ = lean_ctor_get(v_expect_408_, 0); +lean_inc(v_val_476_); +lean_dec_ref(v_expect_408_); +v___y_472_ = v_val_476_; +goto v___jp_471_; +} +v___jp_400_: +{ +lean_object* v___x_403_; lean_object* v___x_404_; uint8_t v___x_405_; lean_object* v___x_406_; +v___x_403_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_403_, 0, v_val_402_); +v___x_404_ = lean_unsigned_to_nat(0u); +v___x_405_ = 0; +v___x_406_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_404_, v___x_405_, v___x_403_, v___y_401_); +return v___x_406_; +} +v___jp_426_: +{ +lean_object* v_token_428_; lean_object* v___f_429_; lean_object* v___x_430_; lean_object* v___x_431_; lean_object* v___x_432_; lean_object* v___x_433_; lean_object* v_selectables_434_; +v_token_428_ = lean_ctor_get(v_connectionContext_415_, 1); +lean_inc_ref_n(v_token_428_, 2); +lean_dec_ref(v_connectionContext_415_); +v___f_429_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__8___boxed), 4, 2); +lean_closure_set(v___f_429_, 0, v_token_428_); +lean_closure_set(v___f_429_, 1, v___f_416_); +v___x_430_ = l_Std_CancellationToken_selector(v_token_428_); +v___x_431_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_431_, 0, v___x_430_); +lean_ctor_set(v___x_431_, 1, v___f_429_); +v___x_432_ = lean_unsigned_to_nat(1u); +v___x_433_ = lean_mk_empty_array_with_capacity(v___x_432_); +v_selectables_434_ = lean_array_push(v___x_433_, v___x_431_); +if (lean_obj_tag(v_socket_407_) == 1) +{ +lean_object* v_val_435_; lean_object* v_recvSelector_436_; uint64_t v_expectedBytes_437_; lean_object* v___x_438_; lean_object* v___x_439_; lean_object* v___x_440_; lean_object* v_selectables_441_; +v_val_435_ = lean_ctor_get(v_socket_407_, 0); +lean_inc(v_val_435_); +lean_dec_ref(v_socket_407_); +v_recvSelector_436_ = lean_ctor_get(v_inst_393_, 2); +lean_inc_ref(v_recvSelector_436_); +lean_dec_ref(v_inst_393_); +v_expectedBytes_437_ = lean_uint64_of_nat(v___y_427_); +lean_dec(v___y_427_); +v___x_438_ = lean_box_uint64(v_expectedBytes_437_); +v___x_439_ = lean_apply_2(v_recvSelector_436_, v_val_435_, v___x_438_); +v___x_440_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_440_, 0, v___x_439_); +lean_ctor_set(v___x_440_, 1, v___f_422_); +v_selectables_441_ = lean_array_push(v_selectables_434_, v___x_440_); +if (lean_obj_tag(v_keepAliveTimeout_413_) == 0) +{ +lean_dec_ref(v___f_418_); +lean_dec(v_requestBody_411_); +lean_dec(v_responseBody_410_); +lean_dec(v_response_409_); +lean_dec_ref(v_inst_395_); +if (lean_obj_tag(v_headerTimeout_414_) == 1) +{ +lean_object* v_val_442_; lean_object* v___f_443_; lean_object* v___f_444_; lean_object* v___x_445_; +lean_dec(v_timeout_412_); +v_val_442_ = lean_ctor_get(v_headerTimeout_414_, 0); +lean_inc(v_val_442_); +lean_dec_ref(v_headerTimeout_414_); +v___f_443_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10___boxed), 5, 3); +lean_closure_set(v___f_443_, 0, v___f_423_); +lean_closure_set(v___f_443_, 1, v_selectables_441_); +lean_closure_set(v___f_443_, 2, v___f_425_); +v___f_444_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___boxed), 4, 2); +lean_closure_set(v___f_444_, 0, v_val_442_); +lean_closure_set(v___f_444_, 1, v___f_443_); +v___x_445_ = lean_get_current_time(); +if (lean_obj_tag(v___x_445_) == 0) +{ +lean_object* v_a_446_; lean_object* v___x_448_; uint8_t v_isShared_449_; uint8_t v_isSharedCheck_453_; +v_a_446_ = lean_ctor_get(v___x_445_, 0); +v_isSharedCheck_453_ = !lean_is_exclusive(v___x_445_); +if (v_isSharedCheck_453_ == 0) +{ +v___x_448_ = v___x_445_; +v_isShared_449_ = v_isSharedCheck_453_; +goto v_resetjp_447_; +} +else +{ +lean_inc(v_a_446_); +lean_dec(v___x_445_); +v___x_448_ = lean_box(0); +v_isShared_449_ = v_isSharedCheck_453_; +goto v_resetjp_447_; +} +v_resetjp_447_: +{ +lean_object* v___x_451_; +if (v_isShared_449_ == 0) +{ +lean_ctor_set_tag(v___x_448_, 1); +v___x_451_ = v___x_448_; +goto v_reusejp_450_; +} +else +{ +lean_object* v_reuseFailAlloc_452_; +v_reuseFailAlloc_452_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_452_, 0, v_a_446_); +v___x_451_ = v_reuseFailAlloc_452_; +goto v_reusejp_450_; +} +v_reusejp_450_: +{ +v___y_401_ = v___f_444_; +v_val_402_ = v___x_451_; +goto v___jp_400_; +} +} +} +else +{ +lean_object* v_a_454_; lean_object* v___x_456_; uint8_t v_isShared_457_; uint8_t v_isSharedCheck_461_; +v_a_454_ = lean_ctor_get(v___x_445_, 0); +v_isSharedCheck_461_ = !lean_is_exclusive(v___x_445_); +if (v_isSharedCheck_461_ == 0) +{ +v___x_456_ = v___x_445_; +v_isShared_457_ = v_isSharedCheck_461_; +goto v_resetjp_455_; +} +else +{ +lean_inc(v_a_454_); +lean_dec(v___x_445_); +v___x_456_ = lean_box(0); +v_isShared_457_ = v_isSharedCheck_461_; +goto v_resetjp_455_; +} +v_resetjp_455_: +{ +lean_object* v___x_459_; +if (v_isShared_457_ == 0) +{ +lean_ctor_set_tag(v___x_456_, 0); +v___x_459_ = v___x_456_; +goto v_reusejp_458_; +} +else +{ +lean_object* v_reuseFailAlloc_460_; +v_reuseFailAlloc_460_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_460_, 0, v_a_454_); +v___x_459_ = v_reuseFailAlloc_460_; +goto v_reusejp_458_; +} +v_reusejp_458_: +{ +v___y_401_ = v___f_444_; +v_val_402_ = v___x_459_; +goto v___jp_400_; +} +} +} +} +else +{ +lean_object* v___x_462_; lean_object* v___f_463_; lean_object* v___x_464_; uint8_t v___x_465_; lean_object* v___x_466_; +lean_dec(v_headerTimeout_414_); +v___x_462_ = l_Std_Internal_IO_Async_Selector_sleep(v_timeout_412_); +lean_dec(v_timeout_412_); +v___f_463_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__10___boxed), 5, 3); +lean_closure_set(v___f_463_, 0, v___f_423_); +lean_closure_set(v___f_463_, 1, v_selectables_441_); +lean_closure_set(v___f_463_, 2, v___f_425_); +v___x_464_ = lean_unsigned_to_nat(0u); +v___x_465_ = 0; +v___x_466_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_464_, v___x_465_, v___x_462_, v___f_463_); +return v___x_466_; +} +} +else +{ +lean_object* v___x_467_; lean_object* v___x_468_; +lean_dec_ref(v_keepAliveTimeout_413_); +lean_dec_ref(v___f_425_); +lean_dec(v_headerTimeout_414_); +lean_dec(v_timeout_412_); +v___x_467_ = lean_box(0); +v___x_468_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9(v___f_418_, v_response_409_, v___x_424_, v___f_419_, v_requestBody_411_, v___f_420_, v_responseBody_410_, v_inst_395_, v___f_421_, v___x_467_, v_selectables_441_); +return v___x_468_; +} +} +else +{ +lean_object* v___x_469_; lean_object* v___x_470_; +lean_dec(v___y_427_); +lean_dec_ref(v___f_425_); +lean_dec(v_headerTimeout_414_); +lean_dec(v_keepAliveTimeout_413_); +lean_dec(v_timeout_412_); +lean_dec(v_socket_407_); +lean_dec_ref(v_inst_393_); +v___x_469_ = lean_box(0); +v___x_470_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__9(v___f_418_, v_response_409_, v___x_424_, v___f_419_, v_requestBody_411_, v___f_420_, v_responseBody_410_, v_inst_395_, v___f_421_, v___x_469_, v_selectables_434_); +return v___x_470_; +} +} +v___jp_471_: +{ +lean_object* v_maximumRecvSize_473_; uint8_t v___x_474_; +v_maximumRecvSize_473_ = lean_ctor_get(v_config_396_, 7); +lean_inc(v_maximumRecvSize_473_); +lean_dec_ref(v_config_396_); +v___x_474_ = lean_nat_dec_le(v___y_472_, v_maximumRecvSize_473_); +if (v___x_474_ == 0) +{ +lean_dec(v___y_472_); +v___y_427_ = v_maximumRecvSize_473_; +goto v___jp_426_; +} +else +{ +lean_dec(v_maximumRecvSize_473_); +v___y_427_ = v___y_472_; +goto v___jp_426_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___boxed(lean_object* v_inst_477_, lean_object* v_inst_478_, lean_object* v_inst_479_, lean_object* v_config_480_, lean_object* v_handler_481_, lean_object* v_sources_482_, lean_object* v_a_483_){ +_start: +{ +lean_object* v_res_484_; +v_res_484_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg(v_inst_477_, v_inst_478_, v_inst_479_, v_config_480_, v_handler_481_, v_sources_482_); +return v_res_484_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent(lean_object* v_00_u03b1_485_, lean_object* v_00_u03c3_486_, lean_object* v_00_u03b2_487_, lean_object* v_inst_488_, lean_object* v_inst_489_, lean_object* v_inst_490_, lean_object* v_config_491_, lean_object* v_handler_492_, lean_object* v_sources_493_){ +_start: +{ +lean_object* v___x_495_; +v___x_495_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg(v_inst_488_, v_inst_489_, v_inst_490_, v_config_491_, v_handler_492_, v_sources_493_); +return v___x_495_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___boxed(lean_object* v_00_u03b1_496_, lean_object* v_00_u03c3_497_, lean_object* v_00_u03b2_498_, lean_object* v_inst_499_, lean_object* v_inst_500_, lean_object* v_inst_501_, lean_object* v_config_502_, lean_object* v_handler_503_, lean_object* v_sources_504_, lean_object* v_a_505_){ +_start: +{ +lean_object* v_res_506_; +v_res_506_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent(v_00_u03b1_496_, v_00_u03c3_497_, v_00_u03b2_498_, v_inst_499_, v_inst_500_, v_inst_501_, v_config_502_, v_handler_503_, v_sources_504_); +return v_res_506_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0(lean_object* v_machine_507_, lean_object* v_x_508_){ +_start: +{ +lean_object* v___y_511_; uint8_t v___y_512_; +if (lean_obj_tag(v_x_508_) == 0) +{ +lean_object* v_a_517_; lean_object* v___x_519_; uint8_t v_isShared_520_; uint8_t v_isSharedCheck_525_; +lean_dec_ref(v_machine_507_); +v_a_517_ = lean_ctor_get(v_x_508_, 0); +v_isSharedCheck_525_ = !lean_is_exclusive(v_x_508_); +if (v_isSharedCheck_525_ == 0) +{ +v___x_519_ = v_x_508_; +v_isShared_520_ = v_isSharedCheck_525_; +goto v_resetjp_518_; +} +else +{ +lean_inc(v_a_517_); +lean_dec(v_x_508_); +v___x_519_ = lean_box(0); +v_isShared_520_ = v_isSharedCheck_525_; +goto v_resetjp_518_; +} +v_resetjp_518_: +{ +lean_object* v___x_522_; +if (v_isShared_520_ == 0) +{ +v___x_522_ = v___x_519_; +goto v_reusejp_521_; +} +else +{ +lean_object* v_reuseFailAlloc_524_; +v_reuseFailAlloc_524_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_524_, 0, v_a_517_); +v___x_522_ = v_reuseFailAlloc_524_; +goto v_reusejp_521_; +} +v_reusejp_521_: +{ +lean_object* v___x_523_; +v___x_523_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_523_, 0, v___x_522_); +return v___x_523_; +} +} +} +else +{ +lean_object* v_a_526_; lean_object* v___y_528_; uint8_t v___x_534_; +v_a_526_ = lean_ctor_get(v_x_508_, 0); +lean_inc(v_a_526_); +lean_dec_ref(v_x_508_); +v___x_534_ = lean_unbox(v_a_526_); +if (v___x_534_ == 0) +{ +lean_object* v___x_535_; +v___x_535_ = lean_box(40); +v___y_528_ = v___x_535_; +goto v___jp_527_; +} +else +{ +lean_object* v___x_536_; +v___x_536_ = lean_box(0); +v___y_528_ = v___x_536_; +goto v___jp_527_; +} +v___jp_527_: +{ +uint8_t v___x_529_; lean_object* v___x_530_; uint8_t v___x_531_; +v___x_529_ = 0; +lean_inc(v___y_528_); +v___x_530_ = l_Std_Http_Protocol_H1_Machine_canContinue(v___x_529_, v_machine_507_, v___y_528_); +v___x_531_ = lean_unbox(v_a_526_); +lean_dec(v_a_526_); +if (v___x_531_ == 0) +{ +uint8_t v___x_532_; +v___x_532_ = 1; +v___y_511_ = v___x_530_; +v___y_512_ = v___x_532_; +goto v___jp_510_; +} +else +{ +uint8_t v___x_533_; +v___x_533_ = 0; +v___y_511_ = v___x_530_; +v___y_512_ = v___x_533_; +goto v___jp_510_; +} +} +} +v___jp_510_: +{ +lean_object* v___x_513_; lean_object* v___x_514_; lean_object* v___x_515_; lean_object* v___x_516_; +v___x_513_ = lean_box(v___y_512_); +v___x_514_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_514_, 0, v___y_511_); +lean_ctor_set(v___x_514_, 1, v___x_513_); +v___x_515_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_515_, 0, v___x_514_); +v___x_516_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_516_, 0, v___x_515_); +return v___x_516_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0___boxed(lean_object* v_machine_537_, lean_object* v_x_538_, lean_object* v___y_539_){ +_start: +{ +lean_object* v_res_540_; +v_res_540_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0(v_machine_537_, v_x_538_); +return v_res_540_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1(uint8_t v___y_541_){ +_start: +{ +lean_object* v___x_543_; lean_object* v___x_544_; lean_object* v___x_545_; +v___x_543_ = lean_box(v___y_541_); +v___x_544_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_544_, 0, v___x_543_); +v___x_545_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_545_, 0, v___x_544_); +return v___x_545_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1___boxed(lean_object* v___y_546_, lean_object* v___y_547_){ +_start: +{ +uint8_t v___y_1326__boxed_548_; lean_object* v_res_549_; +v___y_1326__boxed_548_ = lean_unbox(v___y_546_); +v_res_549_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__1(v___y_1326__boxed_548_); +return v_res_549_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__2(lean_object* v_x_550_){ +_start: +{ +if (lean_obj_tag(v_x_550_) == 0) +{ +lean_object* v_a_551_; lean_object* v___x_552_; +v_a_551_ = lean_ctor_get(v_x_550_, 0); +lean_inc(v_a_551_); +lean_dec_ref(v_x_550_); +v___x_552_ = lean_task_pure(v_a_551_); +return v___x_552_; +} +else +{ +lean_object* v_a_553_; +v_a_553_ = lean_ctor_get(v_x_550_, 0); +lean_inc_ref(v_a_553_); +lean_dec_ref(v_x_550_); +return v_a_553_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3(lean_object* v_a_554_, lean_object* v_x_555_){ +_start: +{ +if (lean_obj_tag(v_x_555_) == 0) +{ +uint8_t v___x_557_; lean_object* v___x_558_; lean_object* v___x_559_; lean_object* v___x_560_; +lean_dec_ref(v_x_555_); +v___x_557_ = 0; +v___x_558_ = lean_box(v___x_557_); +v___x_559_ = l_Std_Channel_send___redArg(v_a_554_, v___x_558_); +lean_dec_ref(v___x_559_); +v___x_560_ = lean_box(0); +return v___x_560_; +} +else +{ +lean_object* v_a_561_; lean_object* v___x_562_; lean_object* v___x_563_; +v_a_561_ = lean_ctor_get(v_x_555_, 0); +lean_inc(v_a_561_); +lean_dec_ref(v_x_555_); +v___x_562_ = l_Std_Channel_send___redArg(v_a_554_, v_a_561_); +lean_dec_ref(v___x_562_); +v___x_563_ = lean_box(0); +return v___x_563_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3___boxed(lean_object* v_a_564_, lean_object* v_x_565_, lean_object* v___y_566_){ +_start: +{ +lean_object* v_res_567_; +v_res_567_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3(v_a_564_, v_x_565_); +return v_res_567_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4(uint8_t v___x_568_, lean_object* v_x_569_){ +_start: +{ +lean_object* v___x_571_; lean_object* v___x_572_; lean_object* v___x_573_; +v___x_571_ = lean_box(v___x_568_); +v___x_572_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_572_, 0, v___x_571_); +v___x_573_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_573_, 0, v___x_572_); +return v___x_573_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4___boxed(lean_object* v___x_574_, lean_object* v_x_575_, lean_object* v___y_576_){ +_start: +{ +uint8_t v___x_1370__boxed_577_; lean_object* v_res_578_; +v___x_1370__boxed_577_ = lean_unbox(v___x_574_); +v_res_578_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__4(v___x_1370__boxed_577_, v_x_575_); +return v_res_578_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__5(lean_object* v_connectionContext_579_, uint8_t v___x_580_, lean_object* v_a_581_, lean_object* v___f_582_, lean_object* v___f_583_, lean_object* v___x_584_, uint8_t v___x_585_, lean_object* v___f_586_, lean_object* v_x_587_){ +_start: +{ +if (lean_obj_tag(v_x_587_) == 0) +{ +lean_object* v_a_589_; lean_object* v___x_591_; uint8_t v_isShared_592_; uint8_t v_isSharedCheck_597_; +lean_dec_ref(v___f_586_); +lean_dec(v___x_584_); +lean_dec_ref(v___f_583_); +lean_dec_ref(v___f_582_); +lean_dec_ref(v_a_581_); +lean_dec_ref(v_connectionContext_579_); +v_a_589_ = lean_ctor_get(v_x_587_, 0); +v_isSharedCheck_597_ = !lean_is_exclusive(v_x_587_); +if (v_isSharedCheck_597_ == 0) +{ +v___x_591_ = v_x_587_; +v_isShared_592_ = v_isSharedCheck_597_; +goto v_resetjp_590_; +} +else +{ +lean_inc(v_a_589_); +lean_dec(v_x_587_); +v___x_591_ = lean_box(0); +v_isShared_592_ = v_isSharedCheck_597_; +goto v_resetjp_590_; +} +v_resetjp_590_: +{ +lean_object* v___x_594_; +if (v_isShared_592_ == 0) +{ +v___x_594_ = v___x_591_; +goto v_reusejp_593_; +} +else +{ +lean_object* v_reuseFailAlloc_596_; +v_reuseFailAlloc_596_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_596_, 0, v_a_589_); +v___x_594_ = v_reuseFailAlloc_596_; +goto v_reusejp_593_; +} +v_reusejp_593_: +{ +lean_object* v___x_595_; +v___x_595_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_595_, 0, v___x_594_); +return v___x_595_; +} +} +} +else +{ +lean_object* v_a_598_; lean_object* v_token_599_; lean_object* v___x_600_; lean_object* v___x_601_; lean_object* v___x_602_; lean_object* v___x_603_; lean_object* v___x_604_; lean_object* v___x_605_; lean_object* v___x_606_; lean_object* v___x_607_; lean_object* v___x_608_; lean_object* v___x_609_; lean_object* v___x_610_; lean_object* v___x_611_; lean_object* v___x_612_; +v_a_598_ = lean_ctor_get(v_x_587_, 0); +lean_inc(v_a_598_); +lean_dec_ref(v_x_587_); +v_token_599_ = lean_ctor_get(v_connectionContext_579_, 1); +lean_inc_ref(v_token_599_); +lean_dec_ref(v_connectionContext_579_); +v___x_600_ = lean_box(v___x_580_); +v___x_601_ = l_Std_Channel_recvSelector___redArg(v___x_600_, v_a_581_); +v___x_602_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_602_, 0, v___x_601_); +lean_ctor_set(v___x_602_, 1, v___f_582_); +v___x_603_ = l_Std_CancellationToken_selector(v_token_599_); +lean_inc_ref(v___f_583_); +v___x_604_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_604_, 0, v___x_603_); +lean_ctor_set(v___x_604_, 1, v___f_583_); +v___x_605_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_605_, 0, v_a_598_); +lean_ctor_set(v___x_605_, 1, v___f_583_); +v___x_606_ = lean_unsigned_to_nat(3u); +v___x_607_ = lean_mk_empty_array_with_capacity(v___x_606_); +v___x_608_ = lean_array_push(v___x_607_, v___x_602_); +v___x_609_ = lean_array_push(v___x_608_, v___x_604_); +v___x_610_ = lean_array_push(v___x_609_, v___x_605_); +v___x_611_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_610_); +v___x_612_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_584_, v___x_585_, v___x_611_, v___f_586_); +return v___x_612_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__5___boxed(lean_object* v_connectionContext_613_, lean_object* v___x_614_, lean_object* v_a_615_, lean_object* v___f_616_, lean_object* v___f_617_, lean_object* v___x_618_, lean_object* v___x_619_, lean_object* v___f_620_, lean_object* v_x_621_, lean_object* v___y_622_){ +_start: +{ +uint8_t v___x_1385__boxed_623_; uint8_t v___x_1390__boxed_624_; lean_object* v_res_625_; +v___x_1385__boxed_623_ = lean_unbox(v___x_614_); +v___x_1390__boxed_624_ = lean_unbox(v___x_619_); +v_res_625_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__5(v_connectionContext_613_, v___x_1385__boxed_623_, v_a_615_, v___f_616_, v___f_617_, v___x_618_, v___x_1390__boxed_624_, v___f_620_, v_x_621_); +return v_res_625_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6(lean_object* v_config_626_, lean_object* v___x_627_, uint8_t v___x_628_, lean_object* v___f_629_, lean_object* v_x_630_){ +_start: +{ +if (lean_obj_tag(v_x_630_) == 0) +{ +lean_object* v_a_632_; lean_object* v___x_634_; uint8_t v_isShared_635_; uint8_t v_isSharedCheck_640_; +lean_dec_ref(v___f_629_); +lean_dec(v___x_627_); +v_a_632_ = lean_ctor_get(v_x_630_, 0); +v_isSharedCheck_640_ = !lean_is_exclusive(v_x_630_); +if (v_isSharedCheck_640_ == 0) +{ +v___x_634_ = v_x_630_; +v_isShared_635_ = v_isSharedCheck_640_; +goto v_resetjp_633_; +} +else +{ +lean_inc(v_a_632_); +lean_dec(v_x_630_); +v___x_634_ = lean_box(0); +v_isShared_635_ = v_isSharedCheck_640_; +goto v_resetjp_633_; +} +v_resetjp_633_: +{ +lean_object* v___x_637_; +if (v_isShared_635_ == 0) +{ +v___x_637_ = v___x_634_; +goto v_reusejp_636_; +} +else +{ +lean_object* v_reuseFailAlloc_639_; +v_reuseFailAlloc_639_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_639_, 0, v_a_632_); +v___x_637_ = v_reuseFailAlloc_639_; +goto v_reusejp_636_; +} +v_reusejp_636_: +{ +lean_object* v___x_638_; +v___x_638_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_638_, 0, v___x_637_); +return v___x_638_; +} +} +} +else +{ +lean_object* v_lingeringTimeout_641_; lean_object* v___x_642_; lean_object* v___x_643_; +lean_dec_ref(v_x_630_); +v_lingeringTimeout_641_ = lean_ctor_get(v_config_626_, 4); +v___x_642_ = l_Std_Internal_IO_Async_Selector_sleep(v_lingeringTimeout_641_); +v___x_643_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_627_, v___x_628_, v___x_642_, v___f_629_); +return v___x_643_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6___boxed(lean_object* v_config_644_, lean_object* v___x_645_, lean_object* v___x_646_, lean_object* v___f_647_, lean_object* v_x_648_, lean_object* v___y_649_){ +_start: +{ +uint8_t v___x_1459__boxed_650_; lean_object* v_res_651_; +v___x_1459__boxed_650_ = lean_unbox(v___x_646_); +v_res_651_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6(v_config_644_, v___x_645_, v___x_1459__boxed_650_, v___f_647_, v_x_648_); +lean_dec_ref(v_config_644_); +return v_res_651_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7(lean_object* v___f_655_, lean_object* v___x_656_, lean_object* v_connectionContext_657_, uint8_t v___x_658_, lean_object* v_a_659_, lean_object* v___f_660_, lean_object* v___f_661_, lean_object* v_config_662_, lean_object* v_x_663_){ +_start: +{ +if (lean_obj_tag(v_x_663_) == 0) +{ +lean_object* v_a_665_; lean_object* v___x_667_; uint8_t v_isShared_668_; uint8_t v_isSharedCheck_673_; +lean_dec_ref(v_config_662_); +lean_dec_ref(v___f_661_); +lean_dec_ref(v___f_660_); +lean_dec_ref(v_a_659_); +lean_dec_ref(v_connectionContext_657_); +lean_dec(v___x_656_); +lean_dec_ref(v___f_655_); +v_a_665_ = lean_ctor_get(v_x_663_, 0); +v_isSharedCheck_673_ = !lean_is_exclusive(v_x_663_); +if (v_isSharedCheck_673_ == 0) +{ +v___x_667_ = v_x_663_; +v_isShared_668_ = v_isSharedCheck_673_; +goto v_resetjp_666_; +} +else +{ +lean_inc(v_a_665_); +lean_dec(v_x_663_); +v___x_667_ = lean_box(0); +v_isShared_668_ = v_isSharedCheck_673_; +goto v_resetjp_666_; +} +v_resetjp_666_: +{ +lean_object* v___x_670_; +if (v_isShared_668_ == 0) +{ +v___x_670_ = v___x_667_; +goto v_reusejp_669_; +} +else +{ +lean_object* v_reuseFailAlloc_672_; +v_reuseFailAlloc_672_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_672_, 0, v_a_665_); +v___x_670_ = v_reuseFailAlloc_672_; +goto v_reusejp_669_; +} +v_reusejp_669_: +{ +lean_object* v___x_671_; +v___x_671_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_671_, 0, v___x_670_); +return v___x_671_; +} +} +} +else +{ +lean_object* v_a_674_; lean_object* v___x_676_; uint8_t v_isShared_677_; uint8_t v_isSharedCheck_691_; +v_a_674_ = lean_ctor_get(v_x_663_, 0); +v_isSharedCheck_691_ = !lean_is_exclusive(v_x_663_); +if (v_isSharedCheck_691_ == 0) +{ +v___x_676_ = v_x_663_; +v_isShared_677_ = v_isSharedCheck_691_; +goto v_resetjp_675_; +} +else +{ +lean_inc(v_a_674_); +lean_dec(v_x_663_); +v___x_676_ = lean_box(0); +v_isShared_677_ = v_isSharedCheck_691_; +goto v_resetjp_675_; +} +v_resetjp_675_: +{ +uint8_t v___x_678_; lean_object* v___x_679_; lean_object* v___f_680_; lean_object* v___x_681_; lean_object* v___x_682_; lean_object* v___f_683_; lean_object* v___x_684_; lean_object* v___f_685_; lean_object* v___x_687_; +v___x_678_ = 0; +lean_inc_n(v___x_656_, 3); +v___x_679_ = l_BaseIO_chainTask___redArg(v_a_674_, v___f_655_, v___x_656_, v___x_678_); +v___f_680_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___closed__0)); +v___x_681_ = lean_box(v___x_658_); +v___x_682_ = lean_box(v___x_678_); +v___f_683_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__5___boxed), 10, 8); +lean_closure_set(v___f_683_, 0, v_connectionContext_657_); +lean_closure_set(v___f_683_, 1, v___x_681_); +lean_closure_set(v___f_683_, 2, v_a_659_); +lean_closure_set(v___f_683_, 3, v___f_660_); +lean_closure_set(v___f_683_, 4, v___f_680_); +lean_closure_set(v___f_683_, 5, v___x_656_); +lean_closure_set(v___f_683_, 6, v___x_682_); +lean_closure_set(v___f_683_, 7, v___f_661_); +v___x_684_ = lean_box(v___x_678_); +v___f_685_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__6___boxed), 6, 4); +lean_closure_set(v___f_685_, 0, v_config_662_); +lean_closure_set(v___f_685_, 1, v___x_656_); +lean_closure_set(v___f_685_, 2, v___x_684_); +lean_closure_set(v___f_685_, 3, v___f_683_); +if (v_isShared_677_ == 0) +{ +lean_ctor_set(v___x_676_, 0, v___x_679_); +v___x_687_ = v___x_676_; +goto v_reusejp_686_; +} +else +{ +lean_object* v_reuseFailAlloc_690_; +v_reuseFailAlloc_690_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_690_, 0, v___x_679_); +v___x_687_ = v_reuseFailAlloc_690_; +goto v_reusejp_686_; +} +v_reusejp_686_: +{ +lean_object* v___x_688_; lean_object* v___x_689_; +v___x_688_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_688_, 0, v___x_687_); +v___x_689_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_656_, v___x_678_, v___x_688_, v___f_685_); +return v___x_689_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___boxed(lean_object* v___f_692_, lean_object* v___x_693_, lean_object* v_connectionContext_694_, lean_object* v___x_695_, lean_object* v_a_696_, lean_object* v___f_697_, lean_object* v___f_698_, lean_object* v_config_699_, lean_object* v_x_700_, lean_object* v___y_701_){ +_start: +{ +uint8_t v___x_1501__boxed_702_; lean_object* v_res_703_; +v___x_1501__boxed_702_ = lean_unbox(v___x_695_); +v_res_703_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7(v___f_692_, v___x_693_, v_connectionContext_694_, v___x_1501__boxed_702_, v_a_696_, v___f_697_, v___f_698_, v_config_699_, v_x_700_); +return v_res_703_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8(lean_object* v_inst_704_, lean_object* v_handler_705_, lean_object* v_head_706_, lean_object* v_connectionContext_707_, uint8_t v___x_708_, lean_object* v___f_709_, lean_object* v___f_710_, lean_object* v_config_711_, lean_object* v___f_712_, lean_object* v_x_713_){ +_start: +{ +if (lean_obj_tag(v_x_713_) == 0) +{ +lean_object* v_a_715_; lean_object* v___x_717_; uint8_t v_isShared_718_; uint8_t v_isSharedCheck_723_; +lean_dec_ref(v___f_712_); +lean_dec_ref(v_config_711_); +lean_dec_ref(v___f_710_); +lean_dec_ref(v___f_709_); +lean_dec_ref(v_connectionContext_707_); +lean_dec_ref(v_head_706_); +lean_dec(v_handler_705_); +lean_dec_ref(v_inst_704_); +v_a_715_ = lean_ctor_get(v_x_713_, 0); +v_isSharedCheck_723_ = !lean_is_exclusive(v_x_713_); +if (v_isSharedCheck_723_ == 0) +{ +v___x_717_ = v_x_713_; +v_isShared_718_ = v_isSharedCheck_723_; +goto v_resetjp_716_; +} +else +{ +lean_inc(v_a_715_); +lean_dec(v_x_713_); +v___x_717_ = lean_box(0); +v_isShared_718_ = v_isSharedCheck_723_; +goto v_resetjp_716_; +} +v_resetjp_716_: +{ +lean_object* v___x_720_; +if (v_isShared_718_ == 0) +{ +v___x_720_ = v___x_717_; +goto v_reusejp_719_; +} +else +{ +lean_object* v_reuseFailAlloc_722_; +v_reuseFailAlloc_722_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_722_, 0, v_a_715_); +v___x_720_ = v_reuseFailAlloc_722_; +goto v_reusejp_719_; +} +v_reusejp_719_: +{ +lean_object* v___x_721_; +v___x_721_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_721_, 0, v___x_720_); +return v___x_721_; +} +} +} +else +{ +lean_object* v_a_724_; lean_object* v___x_726_; uint8_t v_isShared_727_; uint8_t v_isSharedCheck_744_; +v_a_724_ = lean_ctor_get(v_x_713_, 0); +v_isSharedCheck_744_ = !lean_is_exclusive(v_x_713_); +if (v_isSharedCheck_744_ == 0) +{ +v___x_726_ = v_x_713_; +v_isShared_727_ = v_isSharedCheck_744_; +goto v_resetjp_725_; +} +else +{ +lean_inc(v_a_724_); +lean_dec(v_x_713_); +v___x_726_ = lean_box(0); +v_isShared_727_ = v_isSharedCheck_744_; +goto v_resetjp_725_; +} +v_resetjp_725_: +{ +lean_object* v_onContinue_728_; lean_object* v___x_729_; lean_object* v___x_730_; lean_object* v___x_731_; lean_object* v___x_732_; lean_object* v___f_733_; lean_object* v___x_734_; lean_object* v___f_735_; uint8_t v___x_736_; lean_object* v___x_737_; lean_object* v___x_739_; +v_onContinue_728_ = lean_ctor_get(v_inst_704_, 3); +lean_inc_ref(v_onContinue_728_); +lean_dec_ref(v_inst_704_); +v___x_729_ = lean_apply_2(v_onContinue_728_, v_handler_705_, v_head_706_); +v___x_730_ = lean_unsigned_to_nat(0u); +v___x_731_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed), 3, 2); +lean_closure_set(v___x_731_, 0, lean_box(0)); +lean_closure_set(v___x_731_, 1, v___x_729_); +v___x_732_ = lean_io_as_task(v___x_731_, v___x_730_); +lean_inc(v_a_724_); +v___f_733_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_733_, 0, v_a_724_); +v___x_734_ = lean_box(v___x_708_); +v___f_735_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__7___boxed), 10, 8); +lean_closure_set(v___f_735_, 0, v___f_733_); +lean_closure_set(v___f_735_, 1, v___x_730_); +lean_closure_set(v___f_735_, 2, v_connectionContext_707_); +lean_closure_set(v___f_735_, 3, v___x_734_); +lean_closure_set(v___f_735_, 4, v_a_724_); +lean_closure_set(v___f_735_, 5, v___f_709_); +lean_closure_set(v___f_735_, 6, v___f_710_); +lean_closure_set(v___f_735_, 7, v_config_711_); +v___x_736_ = 1; +v___x_737_ = lean_task_bind(v___x_732_, v___f_712_, v___x_730_, v___x_736_); +if (v_isShared_727_ == 0) +{ +lean_ctor_set(v___x_726_, 0, v___x_737_); +v___x_739_ = v___x_726_; +goto v_reusejp_738_; +} +else +{ +lean_object* v_reuseFailAlloc_743_; +v_reuseFailAlloc_743_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_743_, 0, v___x_737_); +v___x_739_ = v_reuseFailAlloc_743_; +goto v_reusejp_738_; +} +v_reusejp_738_: +{ +lean_object* v___x_740_; uint8_t v___x_741_; lean_object* v___x_742_; +v___x_740_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_740_, 0, v___x_739_); +v___x_741_ = 0; +v___x_742_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_730_, v___x_741_, v___x_740_, v___f_735_); +return v___x_742_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8___boxed(lean_object* v_inst_745_, lean_object* v_handler_746_, lean_object* v_head_747_, lean_object* v_connectionContext_748_, lean_object* v___x_749_, lean_object* v___f_750_, lean_object* v___f_751_, lean_object* v_config_752_, lean_object* v___f_753_, lean_object* v_x_754_, lean_object* v___y_755_){ +_start: +{ +uint8_t v___x_1582__boxed_756_; lean_object* v_res_757_; +v___x_1582__boxed_756_ = lean_unbox(v___x_749_); +v_res_757_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8(v_inst_745_, v_handler_746_, v_head_747_, v_connectionContext_748_, v___x_1582__boxed_756_, v___f_750_, v___f_751_, v_config_752_, v___f_753_, v_x_754_); +return v_res_757_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg(lean_object* v_inst_760_, lean_object* v_handler_761_, lean_object* v_machine_762_, lean_object* v_head_763_, lean_object* v_config_764_, lean_object* v_connectionContext_765_){ +_start: +{ +lean_object* v___x_767_; lean_object* v___x_768_; lean_object* v___f_769_; lean_object* v___f_770_; lean_object* v___f_771_; uint8_t v___x_772_; lean_object* v___x_773_; lean_object* v___f_774_; lean_object* v___x_775_; lean_object* v___x_776_; lean_object* v___x_777_; lean_object* v___x_778_; +v___x_767_ = lean_box(0); +v___x_768_ = l_Std_CloseableChannel_new___redArg(v___x_767_); +v___f_769_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_769_, 0, v_machine_762_); +v___f_770_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__0)); +v___f_771_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___closed__1)); +v___x_772_ = 0; +v___x_773_ = lean_box(v___x_772_); +v___f_774_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___lam__8___boxed), 11, 9); +lean_closure_set(v___f_774_, 0, v_inst_760_); +lean_closure_set(v___f_774_, 1, v_handler_761_); +lean_closure_set(v___f_774_, 2, v_head_763_); +lean_closure_set(v___f_774_, 3, v_connectionContext_765_); +lean_closure_set(v___f_774_, 4, v___x_773_); +lean_closure_set(v___f_774_, 5, v___f_770_); +lean_closure_set(v___f_774_, 6, v___f_769_); +lean_closure_set(v___f_774_, 7, v_config_764_); +lean_closure_set(v___f_774_, 8, v___f_771_); +v___x_775_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_775_, 0, v___x_768_); +v___x_776_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_776_, 0, v___x_775_); +v___x_777_ = lean_unsigned_to_nat(0u); +v___x_778_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_777_, v___x_772_, v___x_776_, v___f_774_); +return v___x_778_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg___boxed(lean_object* v_inst_779_, lean_object* v_handler_780_, lean_object* v_machine_781_, lean_object* v_head_782_, lean_object* v_config_783_, lean_object* v_connectionContext_784_, lean_object* v_a_785_){ +_start: +{ +lean_object* v_res_786_; +v_res_786_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg(v_inst_779_, v_handler_780_, v_machine_781_, v_head_782_, v_config_783_, v_connectionContext_784_); +return v_res_786_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent(lean_object* v_00_u03c3_787_, lean_object* v_inst_788_, lean_object* v_handler_789_, lean_object* v_machine_790_, lean_object* v_head_791_, lean_object* v_config_792_, lean_object* v_connectionContext_793_){ +_start: +{ +lean_object* v___x_795_; +v___x_795_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg(v_inst_788_, v_handler_789_, v_machine_790_, v_head_791_, v_config_792_, v_connectionContext_793_); +return v___x_795_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___boxed(lean_object* v_00_u03c3_796_, lean_object* v_inst_797_, lean_object* v_handler_798_, lean_object* v_machine_799_, lean_object* v_head_800_, lean_object* v_config_801_, lean_object* v_connectionContext_802_, lean_object* v_a_803_){ +_start: +{ +lean_object* v_res_804_; +v_res_804_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent(v_00_u03c3_796_, v_inst_797_, v_handler_798_, v_machine_799_, v_head_800_, v_config_801_, v_connectionContext_802_); +return v_res_804_; +} +} +LEAN_EXPORT lean_object* l_Int_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__2(lean_object* v_a_805_){ +_start: +{ +lean_object* v___x_806_; +v___x_806_ = l_Rat_ofInt(v_a_805_); +return v___x_806_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7___redArg(lean_object* v_x_807_, lean_object* v_x_808_){ +_start: +{ +if (lean_obj_tag(v_x_808_) == 0) +{ +return v_x_807_; +} +else +{ +lean_object* v_key_809_; lean_object* v_value_810_; lean_object* v_tail_811_; lean_object* v___x_813_; uint8_t v_isShared_814_; uint8_t v_isSharedCheck_834_; +v_key_809_ = lean_ctor_get(v_x_808_, 0); +v_value_810_ = lean_ctor_get(v_x_808_, 1); +v_tail_811_ = lean_ctor_get(v_x_808_, 2); +v_isSharedCheck_834_ = !lean_is_exclusive(v_x_808_); +if (v_isSharedCheck_834_ == 0) +{ +v___x_813_ = v_x_808_; +v_isShared_814_ = v_isSharedCheck_834_; +goto v_resetjp_812_; +} +else +{ +lean_inc(v_tail_811_); +lean_inc(v_value_810_); +lean_inc(v_key_809_); +lean_dec(v_x_808_); +v___x_813_ = lean_box(0); +v_isShared_814_ = v_isSharedCheck_834_; +goto v_resetjp_812_; +} +v_resetjp_812_: +{ +lean_object* v___x_815_; uint64_t v___x_816_; uint64_t v___x_817_; uint64_t v___x_818_; uint64_t v_fold_819_; uint64_t v___x_820_; uint64_t v___x_821_; uint64_t v___x_822_; size_t v___x_823_; size_t v___x_824_; size_t v___x_825_; size_t v___x_826_; size_t v___x_827_; lean_object* v___x_828_; lean_object* v___x_830_; +v___x_815_ = lean_array_get_size(v_x_807_); +v___x_816_ = lean_string_hash(v_key_809_); +v___x_817_ = 32ULL; +v___x_818_ = lean_uint64_shift_right(v___x_816_, v___x_817_); +v_fold_819_ = lean_uint64_xor(v___x_816_, v___x_818_); +v___x_820_ = 16ULL; +v___x_821_ = lean_uint64_shift_right(v_fold_819_, v___x_820_); +v___x_822_ = lean_uint64_xor(v_fold_819_, v___x_821_); +v___x_823_ = lean_uint64_to_usize(v___x_822_); +v___x_824_ = lean_usize_of_nat(v___x_815_); +v___x_825_ = ((size_t)1ULL); +v___x_826_ = lean_usize_sub(v___x_824_, v___x_825_); +v___x_827_ = lean_usize_land(v___x_823_, v___x_826_); +v___x_828_ = lean_array_uget_borrowed(v_x_807_, v___x_827_); +lean_inc(v___x_828_); +if (v_isShared_814_ == 0) +{ +lean_ctor_set(v___x_813_, 2, v___x_828_); +v___x_830_ = v___x_813_; +goto v_reusejp_829_; +} +else +{ +lean_object* v_reuseFailAlloc_833_; +v_reuseFailAlloc_833_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_833_, 0, v_key_809_); +lean_ctor_set(v_reuseFailAlloc_833_, 1, v_value_810_); +lean_ctor_set(v_reuseFailAlloc_833_, 2, v___x_828_); +v___x_830_ = v_reuseFailAlloc_833_; +goto v_reusejp_829_; +} +v_reusejp_829_: +{ +lean_object* v___x_831_; +v___x_831_ = lean_array_uset(v_x_807_, v___x_827_, v___x_830_); +v_x_807_ = v___x_831_; +v_x_808_ = v_tail_811_; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3___redArg(lean_object* v_i_835_, lean_object* v_source_836_, lean_object* v_target_837_){ +_start: +{ +lean_object* v___x_838_; uint8_t v___x_839_; +v___x_838_ = lean_array_get_size(v_source_836_); +v___x_839_ = lean_nat_dec_lt(v_i_835_, v___x_838_); +if (v___x_839_ == 0) +{ +lean_dec_ref(v_source_836_); +lean_dec(v_i_835_); +return v_target_837_; +} +else +{ +lean_object* v_es_840_; lean_object* v___x_841_; lean_object* v_source_842_; lean_object* v_target_843_; lean_object* v___x_844_; lean_object* v___x_845_; +v_es_840_ = lean_array_fget(v_source_836_, v_i_835_); +v___x_841_ = lean_box(0); +v_source_842_ = lean_array_fset(v_source_836_, v_i_835_, v___x_841_); +v_target_843_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7___redArg(v_target_837_, v_es_840_); +v___x_844_ = lean_unsigned_to_nat(1u); +v___x_845_ = lean_nat_add(v_i_835_, v___x_844_); +lean_dec(v_i_835_); +v_i_835_ = v___x_845_; +v_source_836_ = v_source_842_; +v_target_837_ = v_target_843_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1___redArg(lean_object* v_data_847_){ +_start: +{ +lean_object* v___x_848_; lean_object* v___x_849_; lean_object* v_nbuckets_850_; lean_object* v___x_851_; lean_object* v___x_852_; lean_object* v___x_853_; lean_object* v___x_854_; +v___x_848_ = lean_array_get_size(v_data_847_); +v___x_849_ = lean_unsigned_to_nat(2u); +v_nbuckets_850_ = lean_nat_mul(v___x_848_, v___x_849_); +v___x_851_ = lean_unsigned_to_nat(0u); +v___x_852_ = lean_box(0); +v___x_853_ = lean_mk_array(v_nbuckets_850_, v___x_852_); +v___x_854_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3___redArg(v___x_851_, v_data_847_, v___x_853_); +return v___x_854_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2___lam__0(lean_object* v_i_855_, lean_object* v_x_856_){ +_start: +{ +if (lean_obj_tag(v_x_856_) == 0) +{ +lean_object* v___x_857_; lean_object* v___x_858_; lean_object* v___x_859_; lean_object* v___x_860_; +v___x_857_ = lean_unsigned_to_nat(1u); +v___x_858_ = lean_mk_empty_array_with_capacity(v___x_857_); +v___x_859_ = lean_array_push(v___x_858_, v_i_855_); +v___x_860_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_860_, 0, v___x_859_); +return v___x_860_; +} +else +{ +lean_object* v_val_861_; lean_object* v___x_863_; uint8_t v_isShared_864_; uint8_t v_isSharedCheck_869_; +v_val_861_ = lean_ctor_get(v_x_856_, 0); +v_isSharedCheck_869_ = !lean_is_exclusive(v_x_856_); +if (v_isSharedCheck_869_ == 0) +{ +v___x_863_ = v_x_856_; +v_isShared_864_ = v_isSharedCheck_869_; +goto v_resetjp_862_; +} +else +{ +lean_inc(v_val_861_); +lean_dec(v_x_856_); +v___x_863_ = lean_box(0); +v_isShared_864_ = v_isSharedCheck_869_; +goto v_resetjp_862_; +} +v_resetjp_862_: +{ +lean_object* v___x_865_; lean_object* v___x_867_; +v___x_865_ = lean_array_push(v_val_861_, v_i_855_); +if (v_isShared_864_ == 0) +{ +lean_ctor_set(v___x_863_, 0, v___x_865_); +v___x_867_ = v___x_863_; +goto v_reusejp_866_; +} +else +{ +lean_object* v_reuseFailAlloc_868_; +v_reuseFailAlloc_868_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_868_, 0, v___x_865_); +v___x_867_ = v_reuseFailAlloc_868_; +goto v_reusejp_866_; +} +v_reusejp_866_: +{ +return v___x_867_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2(lean_object* v_i_870_, lean_object* v_a_871_, lean_object* v_x_872_){ +_start: +{ +if (lean_obj_tag(v_x_872_) == 0) +{ +lean_object* v___x_873_; lean_object* v___x_874_; lean_object* v_val_875_; lean_object* v___x_876_; +v___x_873_ = lean_box(0); +v___x_874_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2___lam__0(v_i_870_, v___x_873_); +v_val_875_ = lean_ctor_get(v___x_874_, 0); +lean_inc(v_val_875_); +lean_dec(v___x_874_); +v___x_876_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_876_, 0, v_a_871_); +lean_ctor_set(v___x_876_, 1, v_val_875_); +lean_ctor_set(v___x_876_, 2, v_x_872_); +return v___x_876_; +} +else +{ +lean_object* v_key_877_; lean_object* v_value_878_; lean_object* v_tail_879_; lean_object* v___x_881_; uint8_t v_isShared_882_; uint8_t v_isSharedCheck_894_; +v_key_877_ = lean_ctor_get(v_x_872_, 0); +v_value_878_ = lean_ctor_get(v_x_872_, 1); +v_tail_879_ = lean_ctor_get(v_x_872_, 2); +v_isSharedCheck_894_ = !lean_is_exclusive(v_x_872_); +if (v_isSharedCheck_894_ == 0) +{ +v___x_881_ = v_x_872_; +v_isShared_882_ = v_isSharedCheck_894_; +goto v_resetjp_880_; +} +else +{ +lean_inc(v_tail_879_); +lean_inc(v_value_878_); +lean_inc(v_key_877_); +lean_dec(v_x_872_); +v___x_881_ = lean_box(0); +v_isShared_882_ = v_isSharedCheck_894_; +goto v_resetjp_880_; +} +v_resetjp_880_: +{ +uint8_t v___x_883_; +v___x_883_ = lean_string_dec_eq(v_key_877_, v_a_871_); +if (v___x_883_ == 0) +{ +lean_object* v_tail_884_; lean_object* v___x_886_; +v_tail_884_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2(v_i_870_, v_a_871_, v_tail_879_); +if (v_isShared_882_ == 0) +{ +lean_ctor_set(v___x_881_, 2, v_tail_884_); +v___x_886_ = v___x_881_; +goto v_reusejp_885_; +} +else +{ +lean_object* v_reuseFailAlloc_887_; +v_reuseFailAlloc_887_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_887_, 0, v_key_877_); +lean_ctor_set(v_reuseFailAlloc_887_, 1, v_value_878_); +lean_ctor_set(v_reuseFailAlloc_887_, 2, v_tail_884_); +v___x_886_ = v_reuseFailAlloc_887_; +goto v_reusejp_885_; +} +v_reusejp_885_: +{ +return v___x_886_; +} +} +else +{ +lean_object* v___x_888_; lean_object* v___x_889_; lean_object* v_val_890_; lean_object* v___x_892_; +lean_dec(v_key_877_); +v___x_888_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_888_, 0, v_value_878_); +v___x_889_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2___lam__0(v_i_870_, v___x_888_); +v_val_890_ = lean_ctor_get(v___x_889_, 0); +lean_inc(v_val_890_); +lean_dec(v___x_889_); +if (v_isShared_882_ == 0) +{ +lean_ctor_set(v___x_881_, 1, v_val_890_); +lean_ctor_set(v___x_881_, 0, v_a_871_); +v___x_892_ = v___x_881_; +goto v_reusejp_891_; +} +else +{ +lean_object* v_reuseFailAlloc_893_; +v_reuseFailAlloc_893_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_893_, 0, v_a_871_); +lean_ctor_set(v_reuseFailAlloc_893_, 1, v_val_890_); +lean_ctor_set(v_reuseFailAlloc_893_, 2, v_tail_879_); +v___x_892_ = v_reuseFailAlloc_893_; +goto v_reusejp_891_; +} +v_reusejp_891_: +{ +return v___x_892_; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(lean_object* v_a_895_, lean_object* v_x_896_){ +_start: +{ +if (lean_obj_tag(v_x_896_) == 0) +{ +uint8_t v___x_897_; +v___x_897_ = 0; +return v___x_897_; +} +else +{ +lean_object* v_key_898_; lean_object* v_tail_899_; uint8_t v___x_900_; +v_key_898_ = lean_ctor_get(v_x_896_, 0); +v_tail_899_ = lean_ctor_get(v_x_896_, 2); +v___x_900_ = lean_string_dec_eq(v_key_898_, v_a_895_); +if (v___x_900_ == 0) +{ +v_x_896_ = v_tail_899_; +goto _start; +} +else +{ +return v___x_900_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg___boxed(lean_object* v_a_902_, lean_object* v_x_903_){ +_start: +{ +uint8_t v_res_904_; lean_object* v_r_905_; +v_res_904_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(v_a_902_, v_x_903_); +lean_dec(v_x_903_); +lean_dec_ref(v_a_902_); +v_r_905_ = lean_box(v_res_904_); +return v_r_905_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0(lean_object* v_i_906_, lean_object* v_m_907_, lean_object* v_a_908_){ +_start: +{ +lean_object* v_size_909_; lean_object* v_buckets_910_; lean_object* v___x_912_; uint8_t v_isShared_913_; uint8_t v_isSharedCheck_960_; +v_size_909_ = lean_ctor_get(v_m_907_, 0); +v_buckets_910_ = lean_ctor_get(v_m_907_, 1); +v_isSharedCheck_960_ = !lean_is_exclusive(v_m_907_); +if (v_isSharedCheck_960_ == 0) +{ +v___x_912_ = v_m_907_; +v_isShared_913_ = v_isSharedCheck_960_; +goto v_resetjp_911_; +} +else +{ +lean_inc(v_buckets_910_); +lean_inc(v_size_909_); +lean_dec(v_m_907_); +v___x_912_ = lean_box(0); +v_isShared_913_ = v_isSharedCheck_960_; +goto v_resetjp_911_; +} +v_resetjp_911_: +{ +lean_object* v___x_914_; uint64_t v___x_915_; uint64_t v___x_916_; uint64_t v___x_917_; uint64_t v_fold_918_; uint64_t v___x_919_; uint64_t v___x_920_; uint64_t v___x_921_; size_t v___x_922_; size_t v___x_923_; size_t v___x_924_; size_t v___x_925_; size_t v___x_926_; lean_object* v_bkt_927_; uint8_t v___x_928_; +v___x_914_ = lean_array_get_size(v_buckets_910_); +v___x_915_ = lean_string_hash(v_a_908_); +v___x_916_ = 32ULL; +v___x_917_ = lean_uint64_shift_right(v___x_915_, v___x_916_); +v_fold_918_ = lean_uint64_xor(v___x_915_, v___x_917_); +v___x_919_ = 16ULL; +v___x_920_ = lean_uint64_shift_right(v_fold_918_, v___x_919_); +v___x_921_ = lean_uint64_xor(v_fold_918_, v___x_920_); +v___x_922_ = lean_uint64_to_usize(v___x_921_); +v___x_923_ = lean_usize_of_nat(v___x_914_); +v___x_924_ = ((size_t)1ULL); +v___x_925_ = lean_usize_sub(v___x_923_, v___x_924_); +v___x_926_ = lean_usize_land(v___x_922_, v___x_925_); +v_bkt_927_ = lean_array_uget_borrowed(v_buckets_910_, v___x_926_); +v___x_928_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(v_a_908_, v_bkt_927_); +if (v___x_928_ == 0) +{ +lean_object* v___x_929_; lean_object* v___x_930_; lean_object* v___x_931_; lean_object* v_size_x27_932_; lean_object* v___x_933_; lean_object* v_buckets_x27_934_; lean_object* v___x_935_; lean_object* v___x_936_; lean_object* v___x_937_; lean_object* v___x_938_; lean_object* v___x_939_; uint8_t v___x_940_; +v___x_929_ = lean_unsigned_to_nat(1u); +v___x_930_ = lean_mk_empty_array_with_capacity(v___x_929_); +v___x_931_ = lean_array_push(v___x_930_, v_i_906_); +v_size_x27_932_ = lean_nat_add(v_size_909_, v___x_929_); +lean_dec(v_size_909_); +lean_inc(v_bkt_927_); +v___x_933_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_933_, 0, v_a_908_); +lean_ctor_set(v___x_933_, 1, v___x_931_); +lean_ctor_set(v___x_933_, 2, v_bkt_927_); +v_buckets_x27_934_ = lean_array_uset(v_buckets_910_, v___x_926_, v___x_933_); +v___x_935_ = lean_unsigned_to_nat(4u); +v___x_936_ = lean_nat_mul(v_size_x27_932_, v___x_935_); +v___x_937_ = lean_unsigned_to_nat(3u); +v___x_938_ = lean_nat_div(v___x_936_, v___x_937_); +lean_dec(v___x_936_); +v___x_939_ = lean_array_get_size(v_buckets_x27_934_); +v___x_940_ = lean_nat_dec_le(v___x_938_, v___x_939_); +lean_dec(v___x_938_); +if (v___x_940_ == 0) +{ +lean_object* v_val_941_; lean_object* v___x_943_; +v_val_941_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1___redArg(v_buckets_x27_934_); +if (v_isShared_913_ == 0) +{ +lean_ctor_set(v___x_912_, 1, v_val_941_); +lean_ctor_set(v___x_912_, 0, v_size_x27_932_); +v___x_943_ = v___x_912_; +goto v_reusejp_942_; +} +else +{ +lean_object* v_reuseFailAlloc_944_; +v_reuseFailAlloc_944_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_944_, 0, v_size_x27_932_); +lean_ctor_set(v_reuseFailAlloc_944_, 1, v_val_941_); +v___x_943_ = v_reuseFailAlloc_944_; +goto v_reusejp_942_; +} +v_reusejp_942_: +{ +return v___x_943_; +} +} +else +{ +lean_object* v___x_946_; +if (v_isShared_913_ == 0) +{ +lean_ctor_set(v___x_912_, 1, v_buckets_x27_934_); +lean_ctor_set(v___x_912_, 0, v_size_x27_932_); +v___x_946_ = v___x_912_; +goto v_reusejp_945_; +} +else +{ +lean_object* v_reuseFailAlloc_947_; +v_reuseFailAlloc_947_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_947_, 0, v_size_x27_932_); +lean_ctor_set(v_reuseFailAlloc_947_, 1, v_buckets_x27_934_); +v___x_946_ = v_reuseFailAlloc_947_; +goto v_reusejp_945_; +} +v_reusejp_945_: +{ +return v___x_946_; +} +} +} +else +{ +lean_object* v___x_948_; lean_object* v_buckets_x27_949_; lean_object* v_bkt_x27_950_; lean_object* v___y_952_; uint8_t v___x_957_; +lean_inc(v_bkt_927_); +v___x_948_ = lean_box(0); +v_buckets_x27_949_ = lean_array_uset(v_buckets_910_, v___x_926_, v___x_948_); +lean_inc_ref(v_a_908_); +v_bkt_x27_950_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2(v_i_906_, v_a_908_, v_bkt_927_); +v___x_957_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(v_a_908_, v_bkt_x27_950_); +lean_dec_ref(v_a_908_); +if (v___x_957_ == 0) +{ +lean_object* v___x_958_; lean_object* v___x_959_; +v___x_958_ = lean_unsigned_to_nat(1u); +v___x_959_ = lean_nat_sub(v_size_909_, v___x_958_); +lean_dec(v_size_909_); +v___y_952_ = v___x_959_; +goto v___jp_951_; +} +else +{ +v___y_952_ = v_size_909_; +goto v___jp_951_; +} +v___jp_951_: +{ +lean_object* v___x_953_; lean_object* v___x_955_; +v___x_953_ = lean_array_uset(v_buckets_x27_949_, v___x_926_, v_bkt_x27_950_); +if (v_isShared_913_ == 0) +{ +lean_ctor_set(v___x_912_, 1, v___x_953_); +lean_ctor_set(v___x_912_, 0, v___y_952_); +v___x_955_ = v___x_912_; +goto v_reusejp_954_; +} +else +{ +lean_object* v_reuseFailAlloc_956_; +v_reuseFailAlloc_956_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_956_, 0, v___y_952_); +lean_ctor_set(v_reuseFailAlloc_956_, 1, v___x_953_); +v___x_955_ = v_reuseFailAlloc_956_; +goto v_reusejp_954_; +} +v_reusejp_954_: +{ +return v___x_955_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0(lean_object* v___x_961_, lean_object* v_entries_962_, lean_object* v_indexes_963_, lean_object* v_status_964_, uint8_t v_version_965_, lean_object* v_x_966_){ +_start: +{ +if (lean_obj_tag(v_x_966_) == 0) +{ +lean_object* v_a_968_; lean_object* v___x_970_; uint8_t v_isShared_971_; uint8_t v_isSharedCheck_976_; +lean_dec(v_status_964_); +lean_dec_ref(v_indexes_963_); +lean_dec_ref(v_entries_962_); +v_a_968_ = lean_ctor_get(v_x_966_, 0); +v_isSharedCheck_976_ = !lean_is_exclusive(v_x_966_); +if (v_isSharedCheck_976_ == 0) +{ +v___x_970_ = v_x_966_; +v_isShared_971_ = v_isSharedCheck_976_; +goto v_resetjp_969_; +} +else +{ +lean_inc(v_a_968_); +lean_dec(v_x_966_); +v___x_970_ = lean_box(0); +v_isShared_971_ = v_isSharedCheck_976_; +goto v_resetjp_969_; +} +v_resetjp_969_: +{ +lean_object* v___x_973_; +if (v_isShared_971_ == 0) +{ +v___x_973_ = v___x_970_; +goto v_reusejp_972_; +} +else +{ +lean_object* v_reuseFailAlloc_975_; +v_reuseFailAlloc_975_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_975_, 0, v_a_968_); +v___x_973_ = v_reuseFailAlloc_975_; +goto v_reusejp_972_; +} +v_reusejp_972_: +{ +lean_object* v___x_974_; +v___x_974_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_974_, 0, v___x_973_); +return v___x_974_; +} +} +} +else +{ +lean_object* v_a_977_; lean_object* v___x_979_; uint8_t v_isShared_980_; uint8_t v_isSharedCheck_994_; +v_a_977_ = lean_ctor_get(v_x_966_, 0); +v_isSharedCheck_994_ = !lean_is_exclusive(v_x_966_); +if (v_isSharedCheck_994_ == 0) +{ +v___x_979_ = v_x_966_; +v_isShared_980_ = v_isSharedCheck_994_; +goto v_resetjp_978_; +} +else +{ +lean_inc(v_a_977_); +lean_dec(v_x_966_); +v___x_979_ = lean_box(0); +v_isShared_980_ = v_isSharedCheck_994_; +goto v_resetjp_978_; +} +v_resetjp_978_: +{ +lean_object* v___x_981_; lean_object* v___x_982_; lean_object* v___x_983_; lean_object* v_i_984_; lean_object* v___x_985_; lean_object* v_entries_986_; lean_object* v_indexes_987_; lean_object* v___x_988_; lean_object* v___x_989_; lean_object* v___x_991_; +v___x_981_ = l_Std_Http_Header_Name_date; +v___x_982_ = l_Std_Time_DateTime_toRFC822String(v___x_961_, v_a_977_); +v___x_983_ = l_Std_Http_Header_Value_ofString_x21(v___x_982_); +v_i_984_ = lean_array_get_size(v_entries_962_); +v___x_985_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_985_, 0, v___x_981_); +lean_ctor_set(v___x_985_, 1, v___x_983_); +v_entries_986_ = lean_array_push(v_entries_962_, v___x_985_); +v_indexes_987_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0(v_i_984_, v_indexes_963_, v___x_981_); +v___x_988_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_988_, 0, v_entries_986_); +lean_ctor_set(v___x_988_, 1, v_indexes_987_); +v___x_989_ = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(v___x_989_, 0, v_status_964_); +lean_ctor_set(v___x_989_, 1, v___x_988_); +lean_ctor_set_uint8(v___x_989_, sizeof(void*)*2, v_version_965_); +if (v_isShared_980_ == 0) +{ +lean_ctor_set(v___x_979_, 0, v___x_989_); +v___x_991_ = v___x_979_; +goto v_reusejp_990_; +} +else +{ +lean_object* v_reuseFailAlloc_993_; +v_reuseFailAlloc_993_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_993_, 0, v___x_989_); +v___x_991_ = v_reuseFailAlloc_993_; +goto v_reusejp_990_; +} +v_reusejp_990_: +{ +lean_object* v___x_992_; +v___x_992_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_992_, 0, v___x_991_); +return v___x_992_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0___boxed(lean_object* v___x_995_, lean_object* v_entries_996_, lean_object* v_indexes_997_, lean_object* v_status_998_, lean_object* v_version_999_, lean_object* v_x_1000_, lean_object* v___y_1001_){ +_start: +{ +uint8_t v_version_boxed_1002_; lean_object* v_res_1003_; +v_version_boxed_1002_ = lean_unbox(v_version_999_); +v_res_1003_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0(v___x_995_, v_entries_996_, v_indexes_997_, v_status_998_, v_version_boxed_1002_, v_x_1000_); +lean_dec_ref(v___x_995_); +return v_res_1003_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1(lean_object* v_a_1004_, lean_object* v___x_1005_, lean_object* v_x_1006_){ +_start: +{ +lean_object* v___x_1007_; lean_object* v___x_1008_; lean_object* v_second_1009_; lean_object* v_nano_1010_; lean_object* v___x_1011_; lean_object* v___x_1012_; lean_object* v___x_1013_; lean_object* v___x_1014_; lean_object* v_second_1015_; lean_object* v_nano_1016_; lean_object* v___x_1017_; lean_object* v___x_1018_; lean_object* v___x_1019_; lean_object* v___x_1020_; lean_object* v___x_1021_; lean_object* v___x_1022_; lean_object* v___x_1023_; +v___x_1007_ = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(v_a_1004_); +v___x_1008_ = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(v___x_1007_); +v_second_1009_ = lean_ctor_get(v___x_1008_, 0); +lean_inc(v_second_1009_); +v_nano_1010_ = lean_ctor_get(v___x_1008_, 1); +lean_inc(v_nano_1010_); +lean_dec_ref(v___x_1008_); +v___x_1011_ = l_Std_Time_TimeZone_toSeconds(v___x_1005_); +v___x_1012_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0); +v___x_1013_ = lean_int_mul(v___x_1011_, v___x_1012_); +lean_dec(v___x_1011_); +v___x_1014_ = l_Std_Time_Duration_ofNanoseconds(v___x_1013_); +lean_dec(v___x_1013_); +v_second_1015_ = lean_ctor_get(v___x_1014_, 0); +lean_inc(v_second_1015_); +v_nano_1016_ = lean_ctor_get(v___x_1014_, 1); +lean_inc(v_nano_1016_); +lean_dec_ref(v___x_1014_); +v___x_1017_ = lean_int_mul(v_second_1009_, v___x_1012_); +lean_dec(v_second_1009_); +v___x_1018_ = lean_int_add(v___x_1017_, v_nano_1010_); +lean_dec(v_nano_1010_); +lean_dec(v___x_1017_); +v___x_1019_ = lean_int_mul(v_second_1015_, v___x_1012_); +lean_dec(v_second_1015_); +v___x_1020_ = lean_int_add(v___x_1019_, v_nano_1016_); +lean_dec(v_nano_1016_); +lean_dec(v___x_1019_); +v___x_1021_ = lean_int_add(v___x_1018_, v___x_1020_); +lean_dec(v___x_1020_); +lean_dec(v___x_1018_); +v___x_1022_ = l_Std_Time_Duration_ofNanoseconds(v___x_1021_); +lean_dec(v___x_1021_); +v___x_1023_ = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(v___x_1022_); +return v___x_1023_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1___boxed(lean_object* v_a_1024_, lean_object* v___x_1025_, lean_object* v_x_1026_){ +_start: +{ +lean_object* v_res_1027_; +v_res_1027_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1(v_a_1024_, v___x_1025_, v_x_1026_); +lean_dec_ref(v___x_1025_); +return v_res_1027_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg(lean_object* v_m_1028_, lean_object* v_a_1029_){ +_start: +{ +lean_object* v_buckets_1030_; lean_object* v___x_1031_; uint64_t v___x_1032_; uint64_t v___x_1033_; uint64_t v___x_1034_; uint64_t v_fold_1035_; uint64_t v___x_1036_; uint64_t v___x_1037_; uint64_t v___x_1038_; size_t v___x_1039_; size_t v___x_1040_; size_t v___x_1041_; size_t v___x_1042_; size_t v___x_1043_; lean_object* v___x_1044_; uint8_t v___x_1045_; +v_buckets_1030_ = lean_ctor_get(v_m_1028_, 1); +v___x_1031_ = lean_array_get_size(v_buckets_1030_); +v___x_1032_ = lean_string_hash(v_a_1029_); +v___x_1033_ = 32ULL; +v___x_1034_ = lean_uint64_shift_right(v___x_1032_, v___x_1033_); +v_fold_1035_ = lean_uint64_xor(v___x_1032_, v___x_1034_); +v___x_1036_ = 16ULL; +v___x_1037_ = lean_uint64_shift_right(v_fold_1035_, v___x_1036_); +v___x_1038_ = lean_uint64_xor(v_fold_1035_, v___x_1037_); +v___x_1039_ = lean_uint64_to_usize(v___x_1038_); +v___x_1040_ = lean_usize_of_nat(v___x_1031_); +v___x_1041_ = ((size_t)1ULL); +v___x_1042_ = lean_usize_sub(v___x_1040_, v___x_1041_); +v___x_1043_ = lean_usize_land(v___x_1039_, v___x_1042_); +v___x_1044_ = lean_array_uget_borrowed(v_buckets_1030_, v___x_1043_); +v___x_1045_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(v_a_1029_, v___x_1044_); +return v___x_1045_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg___boxed(lean_object* v_m_1046_, lean_object* v_a_1047_){ +_start: +{ +uint8_t v_res_1048_; lean_object* v_r_1049_; +v_res_1048_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg(v_m_1046_, v_a_1047_); +lean_dec_ref(v_a_1047_); +lean_dec_ref(v_m_1046_); +v_r_1049_ = lean_box(v_res_1048_); +return v_r_1049_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(lean_object* v_config_1050_, lean_object* v_head_1051_){ +_start: +{ +uint8_t v_generateDate_1056_; +v_generateDate_1056_ = lean_ctor_get_uint8(v_config_1050_, sizeof(void*)*24 + 1); +if (v_generateDate_1056_ == 0) +{ +goto v___jp_1053_; +} +else +{ +lean_object* v_headers_1057_; lean_object* v_status_1058_; uint8_t v_version_1059_; lean_object* v_entries_1060_; lean_object* v_indexes_1061_; lean_object* v___x_1063_; uint8_t v_isShared_1064_; uint8_t v_isSharedCheck_1097_; +v_headers_1057_ = lean_ctor_get(v_head_1051_, 1); +lean_inc_ref(v_headers_1057_); +v_status_1058_ = lean_ctor_get(v_head_1051_, 0); +v_version_1059_ = lean_ctor_get_uint8(v_head_1051_, sizeof(void*)*2); +v_entries_1060_ = lean_ctor_get(v_headers_1057_, 0); +v_indexes_1061_ = lean_ctor_get(v_headers_1057_, 1); +v_isSharedCheck_1097_ = !lean_is_exclusive(v_headers_1057_); +if (v_isSharedCheck_1097_ == 0) +{ +v___x_1063_ = v_headers_1057_; +v_isShared_1064_ = v_isSharedCheck_1097_; +goto v_resetjp_1062_; +} +else +{ +lean_inc(v_indexes_1061_); +lean_inc(v_entries_1060_); +lean_dec(v_headers_1057_); +v___x_1063_ = lean_box(0); +v_isShared_1064_ = v_isSharedCheck_1097_; +goto v_resetjp_1062_; +} +v_resetjp_1062_: +{ +lean_object* v___x_1065_; uint8_t v___x_1066_; +v___x_1065_ = l_Std_Http_Header_Name_date; +v___x_1066_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg(v_indexes_1061_, v___x_1065_); +if (v___x_1066_ == 0) +{ +lean_object* v___x_1067_; lean_object* v___x_1068_; lean_object* v___f_1069_; lean_object* v_val_1071_; lean_object* v___x_1075_; +lean_inc(v_status_1058_); +lean_dec_ref(v_head_1051_); +v___x_1067_ = l_Std_Time_TimeZone_UTC; +v___x_1068_ = lean_box(v_version_1059_); +v___f_1069_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__0___boxed), 7, 5); +lean_closure_set(v___f_1069_, 0, v___x_1067_); +lean_closure_set(v___f_1069_, 1, v_entries_1060_); +lean_closure_set(v___f_1069_, 2, v_indexes_1061_); +lean_closure_set(v___f_1069_, 3, v_status_1058_); +lean_closure_set(v___f_1069_, 4, v___x_1068_); +v___x_1075_ = lean_get_current_time(); +if (lean_obj_tag(v___x_1075_) == 0) +{ +lean_object* v_a_1076_; lean_object* v___x_1078_; uint8_t v_isShared_1079_; uint8_t v_isSharedCheck_1088_; +v_a_1076_ = lean_ctor_get(v___x_1075_, 0); +v_isSharedCheck_1088_ = !lean_is_exclusive(v___x_1075_); +if (v_isSharedCheck_1088_ == 0) +{ +v___x_1078_ = v___x_1075_; +v_isShared_1079_ = v_isSharedCheck_1088_; +goto v_resetjp_1077_; +} +else +{ +lean_inc(v_a_1076_); +lean_dec(v___x_1075_); +v___x_1078_ = lean_box(0); +v_isShared_1079_ = v_isSharedCheck_1088_; +goto v_resetjp_1077_; +} +v_resetjp_1077_: +{ +lean_object* v___f_1080_; lean_object* v___x_1081_; lean_object* v___x_1083_; +lean_inc(v_a_1076_); +v___f_1080_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___lam__1___boxed), 3, 2); +lean_closure_set(v___f_1080_, 0, v_a_1076_); +lean_closure_set(v___f_1080_, 1, v___x_1067_); +v___x_1081_ = lean_mk_thunk(v___f_1080_); +if (v_isShared_1064_ == 0) +{ +lean_ctor_set(v___x_1063_, 1, v___x_1081_); +lean_ctor_set(v___x_1063_, 0, v_a_1076_); +v___x_1083_ = v___x_1063_; +goto v_reusejp_1082_; +} +else +{ +lean_object* v_reuseFailAlloc_1087_; +v_reuseFailAlloc_1087_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1087_, 0, v_a_1076_); +lean_ctor_set(v_reuseFailAlloc_1087_, 1, v___x_1081_); +v___x_1083_ = v_reuseFailAlloc_1087_; +goto v_reusejp_1082_; +} +v_reusejp_1082_: +{ +lean_object* v___x_1085_; +if (v_isShared_1079_ == 0) +{ +lean_ctor_set_tag(v___x_1078_, 1); +lean_ctor_set(v___x_1078_, 0, v___x_1083_); +v___x_1085_ = v___x_1078_; +goto v_reusejp_1084_; +} +else +{ +lean_object* v_reuseFailAlloc_1086_; +v_reuseFailAlloc_1086_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1086_, 0, v___x_1083_); +v___x_1085_ = v_reuseFailAlloc_1086_; +goto v_reusejp_1084_; +} +v_reusejp_1084_: +{ +v_val_1071_ = v___x_1085_; +goto v___jp_1070_; +} +} +} +} +else +{ +lean_object* v_a_1089_; lean_object* v___x_1091_; uint8_t v_isShared_1092_; uint8_t v_isSharedCheck_1096_; +lean_del_object(v___x_1063_); +v_a_1089_ = lean_ctor_get(v___x_1075_, 0); +v_isSharedCheck_1096_ = !lean_is_exclusive(v___x_1075_); +if (v_isSharedCheck_1096_ == 0) +{ +v___x_1091_ = v___x_1075_; +v_isShared_1092_ = v_isSharedCheck_1096_; +goto v_resetjp_1090_; +} +else +{ +lean_inc(v_a_1089_); +lean_dec(v___x_1075_); +v___x_1091_ = lean_box(0); +v_isShared_1092_ = v_isSharedCheck_1096_; +goto v_resetjp_1090_; +} +v_resetjp_1090_: +{ +lean_object* v___x_1094_; +if (v_isShared_1092_ == 0) +{ +lean_ctor_set_tag(v___x_1091_, 0); +v___x_1094_ = v___x_1091_; +goto v_reusejp_1093_; +} +else +{ +lean_object* v_reuseFailAlloc_1095_; +v_reuseFailAlloc_1095_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1095_, 0, v_a_1089_); +v___x_1094_ = v_reuseFailAlloc_1095_; +goto v_reusejp_1093_; +} +v_reusejp_1093_: +{ +v_val_1071_ = v___x_1094_; +goto v___jp_1070_; +} +} +} +v___jp_1070_: +{ +lean_object* v___x_1072_; lean_object* v___x_1073_; lean_object* v___x_1074_; +v___x_1072_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1072_, 0, v_val_1071_); +v___x_1073_ = lean_unsigned_to_nat(0u); +v___x_1074_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1073_, v___x_1066_, v___x_1072_, v___f_1069_); +return v___x_1074_; +} +} +else +{ +lean_del_object(v___x_1063_); +lean_dec_ref(v_indexes_1061_); +lean_dec_ref(v_entries_1060_); +goto v___jp_1053_; +} +} +} +v___jp_1053_: +{ +lean_object* v___x_1054_; lean_object* v___x_1055_; +v___x_1054_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1054_, 0, v_head_1051_); +v___x_1055_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1055_, 0, v___x_1054_); +return v___x_1055_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead___boxed(lean_object* v_config_1098_, lean_object* v_head_1099_, lean_object* v_a_1100_){ +_start: +{ +lean_object* v_res_1101_; +v_res_1101_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(v_config_1098_, v_head_1099_); +lean_dec_ref(v_config_1098_); +return v_res_1101_; +} +} +LEAN_EXPORT lean_object* l_Nat_cast___at___00Nat_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__1_spec__4(lean_object* v_a_1102_){ +_start: +{ +lean_object* v___x_1103_; +v___x_1103_ = lean_nat_to_int(v_a_1102_); +return v___x_1103_; +} +} +LEAN_EXPORT lean_object* l_Nat_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__1(lean_object* v_a_1104_){ +_start: +{ +lean_object* v___x_1105_; lean_object* v___x_1106_; +v___x_1105_ = lean_nat_to_int(v_a_1104_); +v___x_1106_ = l_Rat_ofInt(v___x_1105_); +return v___x_1106_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3(lean_object* v_00_u03b2_1107_, lean_object* v_m_1108_, lean_object* v_a_1109_){ +_start: +{ +uint8_t v___x_1110_; +v___x_1110_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___redArg(v_m_1108_, v_a_1109_); +return v___x_1110_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3___boxed(lean_object* v_00_u03b2_1111_, lean_object* v_m_1112_, lean_object* v_a_1113_){ +_start: +{ +uint8_t v_res_1114_; lean_object* v_r_1115_; +v_res_1114_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__3(v_00_u03b2_1111_, v_m_1112_, v_a_1113_); +lean_dec_ref(v_a_1113_); +lean_dec_ref(v_m_1112_); +v_r_1115_ = lean_box(v_res_1114_); +return v_r_1115_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0(lean_object* v_00_u03b2_1116_, lean_object* v_a_1117_, lean_object* v_x_1118_){ +_start: +{ +uint8_t v___x_1119_; +v___x_1119_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___redArg(v_a_1117_, v_x_1118_); +return v___x_1119_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0___boxed(lean_object* v_00_u03b2_1120_, lean_object* v_a_1121_, lean_object* v_x_1122_){ +_start: +{ +uint8_t v_res_1123_; lean_object* v_r_1124_; +v_res_1123_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__0(v_00_u03b2_1120_, v_a_1121_, v_x_1122_); +lean_dec(v_x_1122_); +lean_dec_ref(v_a_1121_); +v_r_1124_ = lean_box(v_res_1123_); +return v_r_1124_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1(lean_object* v_00_u03b2_1125_, lean_object* v_data_1126_){ +_start: +{ +lean_object* v___x_1127_; +v___x_1127_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1___redArg(v_data_1126_); +return v___x_1127_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3(lean_object* v_00_u03b2_1128_, lean_object* v_i_1129_, lean_object* v_source_1130_, lean_object* v_target_1131_){ +_start: +{ +lean_object* v___x_1132_; +v___x_1132_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3___redArg(v_i_1129_, v_source_1130_, v_target_1131_); +return v___x_1132_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7(lean_object* v_00_u03b2_1133_, lean_object* v_x_1134_, lean_object* v_x_1135_){ +_start: +{ +lean_object* v___x_1136_; +v___x_1136_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__1_spec__3_spec__7___redArg(v_x_1134_, v_x_1135_); +return v___x_1136_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0(lean_object* v___y_1137_, lean_object* v_____r_1138_){ +_start: +{ +lean_object* v___x_1140_; lean_object* v___x_1141_; lean_object* v___x_1142_; lean_object* v___x_1143_; +v___x_1140_ = lean_box(0); +v___x_1141_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1141_, 0, v___y_1137_); +lean_ctor_set(v___x_1141_, 1, v___x_1140_); +v___x_1142_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1142_, 0, v___x_1141_); +v___x_1143_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1143_, 0, v___x_1142_); +return v___x_1143_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0___boxed(lean_object* v___y_1144_, lean_object* v_____r_1145_, lean_object* v___y_1146_){ +_start: +{ +lean_object* v_res_1147_; +v_res_1147_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0(v___y_1144_, v_____r_1145_); +return v_res_1147_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1(lean_object* v___f_1148_, lean_object* v_x_1149_){ +_start: +{ +if (lean_obj_tag(v_x_1149_) == 0) +{ +lean_object* v_a_1151_; lean_object* v___x_1153_; uint8_t v_isShared_1154_; uint8_t v_isSharedCheck_1159_; +lean_dec_ref(v___f_1148_); +v_a_1151_ = lean_ctor_get(v_x_1149_, 0); +v_isSharedCheck_1159_ = !lean_is_exclusive(v_x_1149_); +if (v_isSharedCheck_1159_ == 0) +{ +v___x_1153_ = v_x_1149_; +v_isShared_1154_ = v_isSharedCheck_1159_; +goto v_resetjp_1152_; +} +else +{ +lean_inc(v_a_1151_); +lean_dec(v_x_1149_); +v___x_1153_ = lean_box(0); +v_isShared_1154_ = v_isSharedCheck_1159_; +goto v_resetjp_1152_; +} +v_resetjp_1152_: +{ +lean_object* v___x_1156_; +if (v_isShared_1154_ == 0) +{ +v___x_1156_ = v___x_1153_; +goto v_reusejp_1155_; +} +else +{ +lean_object* v_reuseFailAlloc_1158_; +v_reuseFailAlloc_1158_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1158_, 0, v_a_1151_); +v___x_1156_ = v_reuseFailAlloc_1158_; +goto v_reusejp_1155_; +} +v_reusejp_1155_: +{ +lean_object* v___x_1157_; +v___x_1157_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1157_, 0, v___x_1156_); +return v___x_1157_; +} +} +} +else +{ +lean_object* v_a_1160_; lean_object* v___x_1161_; +v_a_1160_ = lean_ctor_get(v_x_1149_, 0); +lean_inc(v_a_1160_); +lean_dec_ref(v_x_1149_); +v___x_1161_ = lean_apply_2(v___f_1148_, v_a_1160_, lean_box(0)); +return v___x_1161_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1___boxed(lean_object* v___f_1162_, lean_object* v_x_1163_, lean_object* v___y_1164_){ +_start: +{ +lean_object* v_res_1165_; +v_res_1165_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1(v___f_1162_, v_x_1163_); +return v_res_1165_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2(lean_object* v_close_1166_, lean_object* v_body_1167_, lean_object* v___f_1168_, lean_object* v___f_1169_, lean_object* v_x_1170_){ +_start: +{ +if (lean_obj_tag(v_x_1170_) == 0) +{ +lean_object* v_a_1172_; lean_object* v___x_1174_; uint8_t v_isShared_1175_; uint8_t v_isSharedCheck_1180_; +lean_dec_ref(v___f_1169_); +lean_dec_ref(v___f_1168_); +lean_dec(v_body_1167_); +lean_dec_ref(v_close_1166_); +v_a_1172_ = lean_ctor_get(v_x_1170_, 0); +v_isSharedCheck_1180_ = !lean_is_exclusive(v_x_1170_); +if (v_isSharedCheck_1180_ == 0) +{ +v___x_1174_ = v_x_1170_; +v_isShared_1175_ = v_isSharedCheck_1180_; +goto v_resetjp_1173_; +} +else +{ +lean_inc(v_a_1172_); +lean_dec(v_x_1170_); +v___x_1174_ = lean_box(0); +v_isShared_1175_ = v_isSharedCheck_1180_; +goto v_resetjp_1173_; +} +v_resetjp_1173_: +{ +lean_object* v___x_1177_; +if (v_isShared_1175_ == 0) +{ +v___x_1177_ = v___x_1174_; +goto v_reusejp_1176_; +} +else +{ +lean_object* v_reuseFailAlloc_1179_; +v_reuseFailAlloc_1179_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1179_, 0, v_a_1172_); +v___x_1177_ = v_reuseFailAlloc_1179_; +goto v_reusejp_1176_; +} +v_reusejp_1176_: +{ +lean_object* v___x_1178_; +v___x_1178_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1178_, 0, v___x_1177_); +return v___x_1178_; +} +} +} +else +{ +lean_object* v_a_1181_; uint8_t v___x_1182_; +v_a_1181_ = lean_ctor_get(v_x_1170_, 0); +lean_inc(v_a_1181_); +lean_dec_ref(v_x_1170_); +v___x_1182_ = lean_unbox(v_a_1181_); +if (v___x_1182_ == 0) +{ +lean_object* v___x_1183_; lean_object* v___x_1184_; uint8_t v___x_1185_; lean_object* v___x_1186_; +lean_dec_ref(v___f_1169_); +v___x_1183_ = lean_apply_2(v_close_1166_, v_body_1167_, lean_box(0)); +v___x_1184_ = lean_unsigned_to_nat(0u); +v___x_1185_ = lean_unbox(v_a_1181_); +lean_dec(v_a_1181_); +v___x_1186_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1184_, v___x_1185_, v___x_1183_, v___f_1168_); +return v___x_1186_; +} +else +{ +lean_object* v___x_1187_; lean_object* v___x_1188_; +lean_dec(v_a_1181_); +lean_dec_ref(v___f_1168_); +lean_dec(v_body_1167_); +lean_dec_ref(v_close_1166_); +v___x_1187_ = lean_box(0); +v___x_1188_ = lean_apply_2(v___f_1169_, v___x_1187_, lean_box(0)); +return v___x_1188_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2___boxed(lean_object* v_close_1189_, lean_object* v_body_1190_, lean_object* v___f_1191_, lean_object* v___f_1192_, lean_object* v_x_1193_, lean_object* v___y_1194_){ +_start: +{ +lean_object* v_res_1195_; +v_res_1195_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2(v_close_1189_, v_body_1190_, v___f_1191_, v___f_1192_, v_x_1193_); +return v_res_1195_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3(lean_object* v___x_1196_, lean_object* v_x1_1197_, lean_object* v_x2_1198_){ +_start: +{ +lean_object* v_fst_1199_; uint8_t v___x_1200_; +v_fst_1199_ = lean_ctor_get(v_x2_1198_, 0); +v___x_1200_ = lean_string_dec_eq(v_fst_1199_, v___x_1196_); +if (v___x_1200_ == 0) +{ +lean_object* v___x_1201_; +v___x_1201_ = lean_array_push(v_x1_1197_, v_x2_1198_); +return v___x_1201_; +} +else +{ +lean_dec_ref(v_x2_1198_); +return v_x1_1197_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3___boxed(lean_object* v___x_1202_, lean_object* v_x1_1203_, lean_object* v_x2_1204_){ +_start: +{ +lean_object* v_res_1205_; +v_res_1205_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3(v___x_1202_, v_x1_1203_, v_x2_1204_); +lean_dec_ref(v___x_1202_); +return v_res_1205_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__5(lean_object* v___f_1206_, lean_object* v___f_1207_, lean_object* v_x1_1208_, lean_object* v_x2_1209_){ +_start: +{ +lean_object* v_fst_1210_; lean_object* v_entries_1211_; lean_object* v_indexes_1212_; lean_object* v___x_1214_; uint8_t v_isShared_1215_; uint8_t v_isSharedCheck_1223_; +v_fst_1210_ = lean_ctor_get(v_x2_1209_, 0); +lean_inc(v_fst_1210_); +v_entries_1211_ = lean_ctor_get(v_x1_1208_, 0); +v_indexes_1212_ = lean_ctor_get(v_x1_1208_, 1); +v_isSharedCheck_1223_ = !lean_is_exclusive(v_x1_1208_); +if (v_isSharedCheck_1223_ == 0) +{ +v___x_1214_ = v_x1_1208_; +v_isShared_1215_ = v_isSharedCheck_1223_; +goto v_resetjp_1213_; +} +else +{ +lean_inc(v_indexes_1212_); +lean_inc(v_entries_1211_); +lean_dec(v_x1_1208_); +v___x_1214_ = lean_box(0); +v_isShared_1215_ = v_isSharedCheck_1223_; +goto v_resetjp_1213_; +} +v_resetjp_1213_: +{ +lean_object* v_i_1216_; lean_object* v_f_1217_; lean_object* v_entries_1218_; lean_object* v_indexes_1219_; lean_object* v___x_1221_; +v_i_1216_ = lean_array_get_size(v_entries_1211_); +v_f_1217_ = lean_alloc_closure((void*)(l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead_spec__0_spec__2___lam__0), 2, 1); +lean_closure_set(v_f_1217_, 0, v_i_1216_); +v_entries_1218_ = lean_array_push(v_entries_1211_, v_x2_1209_); +v_indexes_1219_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___redArg(v___f_1206_, v___f_1207_, v_indexes_1212_, v_fst_1210_, v_f_1217_); +if (v_isShared_1215_ == 0) +{ +lean_ctor_set(v___x_1214_, 1, v_indexes_1219_); +lean_ctor_set(v___x_1214_, 0, v_entries_1218_); +v___x_1221_ = v___x_1214_; +goto v_reusejp_1220_; +} +else +{ +lean_object* v_reuseFailAlloc_1222_; +v_reuseFailAlloc_1222_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1222_, 0, v_entries_1218_); +lean_ctor_set(v_reuseFailAlloc_1222_, 1, v_indexes_1219_); +v___x_1221_ = v_reuseFailAlloc_1222_; +goto v_reusejp_1220_; +} +v_reusejp_1220_: +{ +return v___x_1221_; +} +} +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11(void){ +_start: +{ +lean_object* v___x_1245_; lean_object* v___f_1246_; +v___x_1245_ = l_Std_Http_Header_Name_transferEncoding; +v___f_1246_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_1246_, 0, v___x_1245_); +return v___f_1246_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15(void){ +_start: +{ +lean_object* v___x_1252_; lean_object* v___f_1253_; +v___x_1252_ = l_Std_Http_Header_Name_contentLength; +v___f_1253_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_1253_, 0, v___x_1252_); +return v___f_1253_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8(lean_object* v___y_1254_, lean_object* v_body_1255_, lean_object* v_isClosed_1256_, lean_object* v_close_1257_, lean_object* v_x_1258_){ +_start: +{ +lean_object* v___y_1261_; uint8_t v_omitBody_1262_; lean_object* v___y_1275_; uint8_t v___y_1310_; lean_object* v___y_1311_; uint8_t v___y_1312_; +if (lean_obj_tag(v_x_1258_) == 0) +{ +lean_object* v_a_1315_; lean_object* v___x_1317_; uint8_t v_isShared_1318_; uint8_t v_isSharedCheck_1323_; +lean_dec_ref(v_close_1257_); +lean_dec_ref(v_isClosed_1256_); +lean_dec(v_body_1255_); +lean_dec_ref(v___y_1254_); +v_a_1315_ = lean_ctor_get(v_x_1258_, 0); +v_isSharedCheck_1323_ = !lean_is_exclusive(v_x_1258_); +if (v_isSharedCheck_1323_ == 0) +{ +v___x_1317_ = v_x_1258_; +v_isShared_1318_ = v_isSharedCheck_1323_; +goto v_resetjp_1316_; +} +else +{ +lean_inc(v_a_1315_); +lean_dec(v_x_1258_); +v___x_1317_ = lean_box(0); +v_isShared_1318_ = v_isSharedCheck_1323_; +goto v_resetjp_1316_; +} +v_resetjp_1316_: +{ +lean_object* v___x_1320_; +if (v_isShared_1318_ == 0) +{ +v___x_1320_ = v___x_1317_; +goto v_reusejp_1319_; +} +else +{ +lean_object* v_reuseFailAlloc_1322_; +v_reuseFailAlloc_1322_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1322_, 0, v_a_1315_); +v___x_1320_ = v_reuseFailAlloc_1322_; +goto v_reusejp_1319_; +} +v_reusejp_1319_: +{ +lean_object* v___x_1321_; +v___x_1321_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1321_, 0, v___x_1320_); +return v___x_1321_; +} +} +} +else +{ +lean_object* v_writer_1324_; lean_object* v_a_1325_; lean_object* v_reader_1326_; lean_object* v_config_1327_; lean_object* v_events_1328_; lean_object* v_error_1329_; lean_object* v_instant_1330_; uint8_t v_keepAlive_1331_; uint8_t v_forcedFlush_1332_; uint8_t v_pullBodyStalled_1333_; lean_object* v_userData_1334_; lean_object* v_outputData_1335_; lean_object* v_state_1336_; lean_object* v_knownSize_1337_; lean_object* v_messageHead_1338_; uint8_t v_sentMessage_1339_; uint8_t v_userClosedBody_1340_; uint8_t v_omitBody_1341_; lean_object* v_userDataBytes_1342_; lean_object* v___x_1344_; uint8_t v_isShared_1345_; uint8_t v_isSharedCheck_1493_; +v_writer_1324_ = lean_ctor_get(v___y_1254_, 1); +lean_inc_ref(v_writer_1324_); +v_a_1325_ = lean_ctor_get(v_x_1258_, 0); +lean_inc(v_a_1325_); +lean_dec_ref(v_x_1258_); +v_reader_1326_ = lean_ctor_get(v___y_1254_, 0); +v_config_1327_ = lean_ctor_get(v___y_1254_, 2); +v_events_1328_ = lean_ctor_get(v___y_1254_, 3); +v_error_1329_ = lean_ctor_get(v___y_1254_, 4); +v_instant_1330_ = lean_ctor_get(v___y_1254_, 5); +v_keepAlive_1331_ = lean_ctor_get_uint8(v___y_1254_, sizeof(void*)*6); +v_forcedFlush_1332_ = lean_ctor_get_uint8(v___y_1254_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1333_ = lean_ctor_get_uint8(v___y_1254_, sizeof(void*)*6 + 2); +v_userData_1334_ = lean_ctor_get(v_writer_1324_, 0); +v_outputData_1335_ = lean_ctor_get(v_writer_1324_, 1); +v_state_1336_ = lean_ctor_get(v_writer_1324_, 2); +v_knownSize_1337_ = lean_ctor_get(v_writer_1324_, 3); +v_messageHead_1338_ = lean_ctor_get(v_writer_1324_, 4); +v_sentMessage_1339_ = lean_ctor_get_uint8(v_writer_1324_, sizeof(void*)*6); +v_userClosedBody_1340_ = lean_ctor_get_uint8(v_writer_1324_, sizeof(void*)*6 + 1); +v_omitBody_1341_ = lean_ctor_get_uint8(v_writer_1324_, sizeof(void*)*6 + 2); +v_userDataBytes_1342_ = lean_ctor_get(v_writer_1324_, 5); +v_isSharedCheck_1493_ = !lean_is_exclusive(v_writer_1324_); +if (v_isSharedCheck_1493_ == 0) +{ +v___x_1344_ = v_writer_1324_; +v_isShared_1345_ = v_isSharedCheck_1493_; +goto v_resetjp_1343_; +} +else +{ +lean_inc(v_userDataBytes_1342_); +lean_inc(v_messageHead_1338_); +lean_inc(v_knownSize_1337_); +lean_inc(v_state_1336_); +lean_inc(v_outputData_1335_); +lean_inc(v_userData_1334_); +lean_dec(v_writer_1324_); +v___x_1344_ = lean_box(0); +v_isShared_1345_ = v_isSharedCheck_1493_; +goto v_resetjp_1343_; +} +v_resetjp_1343_: +{ +uint8_t v___y_1347_; lean_object* v___y_1348_; uint8_t v___y_1357_; lean_object* v___y_1358_; lean_object* v___y_1359_; lean_object* v___y_1360_; lean_object* v___y_1361_; uint8_t v___y_1373_; lean_object* v___y_1374_; lean_object* v___y_1375_; lean_object* v___y_1376_; lean_object* v___y_1377_; lean_object* v___y_1378_; uint8_t v___y_1394_; uint8_t v___y_1395_; lean_object* v___y_1396_; uint8_t v___y_1404_; uint8_t v___y_1405_; lean_object* v___y_1406_; lean_object* v___y_1407_; lean_object* v___y_1408_; lean_object* v___y_1409_; uint8_t v___y_1421_; lean_object* v___y_1422_; lean_object* v___y_1423_; uint8_t v___y_1424_; lean_object* v___y_1425_; lean_object* v___y_1426_; lean_object* v___y_1427_; uint8_t v___x_1442_; uint8_t v___y_1444_; uint8_t v___y_1445_; uint8_t v___y_1446_; lean_object* v___y_1447_; uint8_t v___y_1448_; uint8_t v___y_1449_; uint8_t v___y_1456_; uint8_t v___y_1457_; uint8_t v___y_1458_; uint8_t v___y_1471_; uint8_t v___y_1472_; uint8_t v___y_1475_; lean_object* v___x_1491_; uint8_t v___x_1492_; +v___x_1442_ = 0; +v___x_1491_ = lean_box(1); +v___x_1492_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_1336_, v___x_1491_); +if (v___x_1492_ == 0) +{ +v___y_1475_ = v___x_1492_; +goto v___jp_1474_; +} +else +{ +if (v_sentMessage_1339_ == 0) +{ +v___y_1475_ = v___x_1492_; +goto v___jp_1474_; +} +else +{ +lean_del_object(v___x_1344_); +lean_dec(v_userDataBytes_1342_); +lean_dec(v_messageHead_1338_); +lean_dec(v_knownSize_1337_); +lean_dec(v_state_1336_); +lean_dec_ref(v_outputData_1335_); +lean_dec_ref(v_userData_1334_); +lean_dec(v_a_1325_); +v___y_1261_ = v___y_1254_; +v_omitBody_1262_ = v_omitBody_1341_; +goto v___jp_1260_; +} +} +v___jp_1346_: +{ +lean_object* v_message_1349_; lean_object* v___x_2280__overap_1350_; lean_object* v___x_1351_; lean_object* v___x_1353_; +v_message_1349_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_1347_, v_a_1325_, v___y_1348_); +v___x_2280__overap_1350_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_1347_); +v___x_1351_ = lean_apply_2(v___x_2280__overap_1350_, v_outputData_1335_, v_message_1349_); +if (v_isShared_1345_ == 0) +{ +lean_ctor_set(v___x_1344_, 1, v___x_1351_); +v___x_1353_ = v___x_1344_; +goto v_reusejp_1352_; +} +else +{ +lean_object* v_reuseFailAlloc_1355_; +v_reuseFailAlloc_1355_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1355_, 0, v_userData_1334_); +lean_ctor_set(v_reuseFailAlloc_1355_, 1, v___x_1351_); +lean_ctor_set(v_reuseFailAlloc_1355_, 2, v_state_1336_); +lean_ctor_set(v_reuseFailAlloc_1355_, 3, v_knownSize_1337_); +lean_ctor_set(v_reuseFailAlloc_1355_, 4, v_messageHead_1338_); +lean_ctor_set(v_reuseFailAlloc_1355_, 5, v_userDataBytes_1342_); +lean_ctor_set_uint8(v_reuseFailAlloc_1355_, sizeof(void*)*6, v_sentMessage_1339_); +lean_ctor_set_uint8(v_reuseFailAlloc_1355_, sizeof(void*)*6 + 1, v_userClosedBody_1340_); +lean_ctor_set_uint8(v_reuseFailAlloc_1355_, sizeof(void*)*6 + 2, v_omitBody_1341_); +v___x_1353_ = v_reuseFailAlloc_1355_; +goto v_reusejp_1352_; +} +v_reusejp_1352_: +{ +lean_object* v___x_1354_; +v___x_1354_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_1354_, 0, v_reader_1326_); +lean_ctor_set(v___x_1354_, 1, v___x_1353_); +lean_ctor_set(v___x_1354_, 2, v_config_1327_); +lean_ctor_set(v___x_1354_, 3, v_events_1328_); +lean_ctor_set(v___x_1354_, 4, v_error_1329_); +lean_ctor_set(v___x_1354_, 5, v_instant_1330_); +lean_ctor_set_uint8(v___x_1354_, sizeof(void*)*6, v_keepAlive_1331_); +lean_ctor_set_uint8(v___x_1354_, sizeof(void*)*6 + 1, v_forcedFlush_1332_); +lean_ctor_set_uint8(v___x_1354_, sizeof(void*)*6 + 2, v_pullBodyStalled_1333_); +v___y_1261_ = v___x_1354_; +v_omitBody_1262_ = v_omitBody_1341_; +goto v___jp_1260_; +} +} +v___jp_1356_: +{ +lean_object* v___x_1362_; lean_object* v___x_1363_; uint8_t v___x_1364_; +v___x_1362_ = lean_array_get_size(v___y_1361_); +v___x_1363_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_1364_ = lean_nat_dec_lt(v___y_1358_, v___x_1362_); +if (v___x_1364_ == 0) +{ +lean_dec_ref(v___y_1361_); +v___y_1347_ = v___y_1357_; +v___y_1348_ = v___y_1360_; +goto v___jp_1346_; +} +else +{ +uint8_t v___x_1365_; +v___x_1365_ = lean_nat_dec_le(v___x_1362_, v___x_1362_); +if (v___x_1365_ == 0) +{ +if (v___x_1364_ == 0) +{ +lean_dec_ref(v___y_1361_); +v___y_1347_ = v___y_1357_; +v___y_1348_ = v___y_1360_; +goto v___jp_1346_; +} +else +{ +size_t v___x_1366_; size_t v___x_1367_; lean_object* v___x_1368_; +v___x_1366_ = ((size_t)0ULL); +v___x_1367_ = lean_usize_of_nat(v___x_1362_); +lean_inc_ref(v___y_1359_); +v___x_1368_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1363_, v___y_1359_, v___y_1361_, v___x_1366_, v___x_1367_, v___y_1360_); +v___y_1347_ = v___y_1357_; +v___y_1348_ = v___x_1368_; +goto v___jp_1346_; +} +} +else +{ +size_t v___x_1369_; size_t v___x_1370_; lean_object* v___x_1371_; +v___x_1369_ = ((size_t)0ULL); +v___x_1370_ = lean_usize_of_nat(v___x_1362_); +lean_inc_ref(v___y_1359_); +v___x_1371_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1363_, v___y_1359_, v___y_1361_, v___x_1369_, v___x_1370_, v___y_1360_); +v___y_1347_ = v___y_1357_; +v___y_1348_ = v___x_1371_; +goto v___jp_1346_; +} +} +} +v___jp_1372_: +{ +lean_object* v_entries_1379_; lean_object* v___x_1380_; lean_object* v___x_1381_; lean_object* v___x_1382_; lean_object* v___x_1383_; lean_object* v___x_1384_; uint8_t v___x_1385_; +v_entries_1379_ = lean_ctor_get(v___y_1378_, 0); +lean_inc_ref(v_entries_1379_); +lean_dec_ref(v___y_1378_); +v___x_1380_ = l_Std_Internal_IndexMultiMap_empty(lean_box(0), lean_box(0), v___y_1377_, v___y_1375_); +lean_dec_ref(v___y_1375_); +lean_dec_ref(v___y_1377_); +v___x_1381_ = lean_unsigned_to_nat(0u); +v___x_1382_ = lean_array_get_size(v_entries_1379_); +v___x_1383_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__10)); +v___x_1384_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_1385_ = lean_nat_dec_lt(v___x_1381_, v___x_1382_); +if (v___x_1385_ == 0) +{ +lean_dec_ref(v_entries_1379_); +v___y_1357_ = v___y_1373_; +v___y_1358_ = v___x_1381_; +v___y_1359_ = v___y_1376_; +v___y_1360_ = v___x_1380_; +v___y_1361_ = v___x_1383_; +goto v___jp_1356_; +} +else +{ +uint8_t v___x_1386_; +v___x_1386_ = lean_nat_dec_le(v___x_1382_, v___x_1382_); +if (v___x_1386_ == 0) +{ +if (v___x_1385_ == 0) +{ +lean_dec_ref(v_entries_1379_); +v___y_1357_ = v___y_1373_; +v___y_1358_ = v___x_1381_; +v___y_1359_ = v___y_1376_; +v___y_1360_ = v___x_1380_; +v___y_1361_ = v___x_1383_; +goto v___jp_1356_; +} +else +{ +size_t v___x_1387_; size_t v___x_1388_; lean_object* v___x_1389_; +v___x_1387_ = ((size_t)0ULL); +v___x_1388_ = lean_usize_of_nat(v___x_1382_); +lean_inc_ref(v___y_1374_); +v___x_1389_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1384_, v___y_1374_, v_entries_1379_, v___x_1387_, v___x_1388_, v___x_1383_); +v___y_1357_ = v___y_1373_; +v___y_1358_ = v___x_1381_; +v___y_1359_ = v___y_1376_; +v___y_1360_ = v___x_1380_; +v___y_1361_ = v___x_1389_; +goto v___jp_1356_; +} +} +else +{ +size_t v___x_1390_; size_t v___x_1391_; lean_object* v___x_1392_; +v___x_1390_ = ((size_t)0ULL); +v___x_1391_ = lean_usize_of_nat(v___x_1382_); +lean_inc_ref(v___y_1374_); +v___x_1392_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1384_, v___y_1374_, v_entries_1379_, v___x_1390_, v___x_1391_, v___x_1383_); +v___y_1357_ = v___y_1373_; +v___y_1358_ = v___x_1381_; +v___y_1359_ = v___y_1376_; +v___y_1360_ = v___x_1380_; +v___y_1361_ = v___x_1392_; +goto v___jp_1356_; +} +} +} +v___jp_1393_: +{ +lean_object* v___x_1397_; lean_object* v___f_1398_; lean_object* v___f_1399_; lean_object* v___f_1400_; lean_object* v___f_1401_; uint8_t v___x_1402_; +v___x_1397_ = l_Std_Http_Header_Name_transferEncoding; +v___f_1398_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__11); +v___f_1399_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12)); +v___f_1400_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13)); +v___f_1401_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__14)); +v___x_1402_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1399_, v___f_1400_, v___x_1397_, v___y_1396_); +if (v___x_1402_ == 0) +{ +if (v___y_1395_ == 0) +{ +v___y_1373_ = v___y_1394_; +v___y_1374_ = v___f_1398_; +v___y_1375_ = v___f_1400_; +v___y_1376_ = v___f_1401_; +v___y_1377_ = v___f_1399_; +v___y_1378_ = v___y_1396_; +goto v___jp_1372_; +} +else +{ +v___y_1347_ = v___y_1394_; +v___y_1348_ = v___y_1396_; +goto v___jp_1346_; +} +} +else +{ +v___y_1373_ = v___y_1394_; +v___y_1374_ = v___f_1398_; +v___y_1375_ = v___f_1400_; +v___y_1376_ = v___f_1401_; +v___y_1377_ = v___f_1399_; +v___y_1378_ = v___y_1396_; +goto v___jp_1372_; +} +} +v___jp_1403_: +{ +lean_object* v___x_1410_; lean_object* v___x_1411_; uint8_t v___x_1412_; +v___x_1410_ = lean_array_get_size(v___y_1409_); +v___x_1411_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_1412_ = lean_nat_dec_lt(v___y_1406_, v___x_1410_); +if (v___x_1412_ == 0) +{ +lean_dec_ref(v___y_1409_); +v___y_1394_ = v___y_1404_; +v___y_1395_ = v___y_1405_; +v___y_1396_ = v___y_1407_; +goto v___jp_1393_; +} +else +{ +uint8_t v___x_1413_; +v___x_1413_ = lean_nat_dec_le(v___x_1410_, v___x_1410_); +if (v___x_1413_ == 0) +{ +if (v___x_1412_ == 0) +{ +lean_dec_ref(v___y_1409_); +v___y_1394_ = v___y_1404_; +v___y_1395_ = v___y_1405_; +v___y_1396_ = v___y_1407_; +goto v___jp_1393_; +} +else +{ +size_t v___x_1414_; size_t v___x_1415_; lean_object* v___x_1416_; +v___x_1414_ = ((size_t)0ULL); +v___x_1415_ = lean_usize_of_nat(v___x_1410_); +lean_inc_ref(v___y_1408_); +v___x_1416_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1411_, v___y_1408_, v___y_1409_, v___x_1414_, v___x_1415_, v___y_1407_); +v___y_1394_ = v___y_1404_; +v___y_1395_ = v___y_1405_; +v___y_1396_ = v___x_1416_; +goto v___jp_1393_; +} +} +else +{ +size_t v___x_1417_; size_t v___x_1418_; lean_object* v___x_1419_; +v___x_1417_ = ((size_t)0ULL); +v___x_1418_ = lean_usize_of_nat(v___x_1410_); +lean_inc_ref(v___y_1408_); +v___x_1419_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1411_, v___y_1408_, v___y_1409_, v___x_1417_, v___x_1418_, v___y_1407_); +v___y_1394_ = v___y_1404_; +v___y_1395_ = v___y_1405_; +v___y_1396_ = v___x_1419_; +goto v___jp_1393_; +} +} +} +v___jp_1420_: +{ +lean_object* v_entries_1428_; lean_object* v___x_1429_; lean_object* v___x_1430_; lean_object* v___x_1431_; lean_object* v___x_1432_; lean_object* v___x_1433_; uint8_t v___x_1434_; +v_entries_1428_ = lean_ctor_get(v___y_1422_, 0); +lean_inc_ref(v_entries_1428_); +lean_dec_ref(v___y_1422_); +v___x_1429_ = l_Std_Internal_IndexMultiMap_empty(lean_box(0), lean_box(0), v___y_1423_, v___y_1426_); +lean_dec_ref(v___y_1426_); +lean_dec_ref(v___y_1423_); +v___x_1430_ = lean_unsigned_to_nat(0u); +v___x_1431_ = lean_array_get_size(v_entries_1428_); +v___x_1432_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__10)); +v___x_1433_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_1434_ = lean_nat_dec_lt(v___x_1430_, v___x_1431_); +if (v___x_1434_ == 0) +{ +lean_dec_ref(v_entries_1428_); +v___y_1404_ = v___y_1421_; +v___y_1405_ = v___y_1424_; +v___y_1406_ = v___x_1430_; +v___y_1407_ = v___x_1429_; +v___y_1408_ = v___y_1427_; +v___y_1409_ = v___x_1432_; +goto v___jp_1403_; +} +else +{ +uint8_t v___x_1435_; +v___x_1435_ = lean_nat_dec_le(v___x_1431_, v___x_1431_); +if (v___x_1435_ == 0) +{ +if (v___x_1434_ == 0) +{ +lean_dec_ref(v_entries_1428_); +v___y_1404_ = v___y_1421_; +v___y_1405_ = v___y_1424_; +v___y_1406_ = v___x_1430_; +v___y_1407_ = v___x_1429_; +v___y_1408_ = v___y_1427_; +v___y_1409_ = v___x_1432_; +goto v___jp_1403_; +} +else +{ +size_t v___x_1436_; size_t v___x_1437_; lean_object* v___x_1438_; +v___x_1436_ = ((size_t)0ULL); +v___x_1437_ = lean_usize_of_nat(v___x_1431_); +lean_inc_ref(v___y_1425_); +v___x_1438_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1433_, v___y_1425_, v_entries_1428_, v___x_1436_, v___x_1437_, v___x_1432_); +v___y_1404_ = v___y_1421_; +v___y_1405_ = v___y_1424_; +v___y_1406_ = v___x_1430_; +v___y_1407_ = v___x_1429_; +v___y_1408_ = v___y_1427_; +v___y_1409_ = v___x_1438_; +goto v___jp_1403_; +} +} +else +{ +size_t v___x_1439_; size_t v___x_1440_; lean_object* v___x_1441_; +v___x_1439_ = ((size_t)0ULL); +v___x_1440_ = lean_usize_of_nat(v___x_1431_); +lean_inc_ref(v___y_1425_); +v___x_1441_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_1433_, v___y_1425_, v_entries_1428_, v___x_1439_, v___x_1440_, v___x_1432_); +v___y_1404_ = v___y_1421_; +v___y_1405_ = v___y_1424_; +v___y_1406_ = v___x_1430_; +v___y_1407_ = v___x_1429_; +v___y_1408_ = v___y_1427_; +v___y_1409_ = v___x_1441_; +goto v___jp_1403_; +} +} +} +v___jp_1443_: +{ +lean_object* v_headerSize_1450_; lean_object* v_machine_1451_; lean_object* v_machine_1452_; lean_object* v_reader_1453_; lean_object* v_state_1454_; +v_headerSize_1450_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_1444_, v_a_1325_, v___y_1448_); +v_machine_1451_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(v___x_1442_, v___y_1447_, v_headerSize_1450_, v___y_1449_); +v_machine_1452_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v___x_1442_, v_machine_1451_, v_a_1325_); +lean_dec(v_a_1325_); +v_reader_1453_ = lean_ctor_get(v_machine_1452_, 0); +lean_inc_ref(v_reader_1453_); +v_state_1454_ = lean_ctor_get(v_reader_1453_, 0); +lean_inc(v_state_1454_); +lean_dec_ref(v_reader_1453_); +if (lean_obj_tag(v_state_1454_) == 7) +{ +lean_dec_ref(v_state_1454_); +v___y_1310_ = v___y_1446_; +v___y_1311_ = v_machine_1452_; +v___y_1312_ = v___y_1445_; +goto v___jp_1309_; +} +else +{ +lean_dec(v_state_1454_); +v___y_1310_ = v___y_1446_; +v___y_1311_ = v_machine_1452_; +v___y_1312_ = v___y_1448_; +goto v___jp_1309_; +} +} +v___jp_1455_: +{ +uint8_t v___x_1459_; lean_object* v___x_1460_; lean_object* v_indexes_1461_; lean_object* v___x_1462_; lean_object* v_machine_1463_; lean_object* v___x_1464_; lean_object* v___f_1465_; lean_object* v___f_1466_; uint8_t v___x_1467_; +v___x_1459_ = 1; +v___x_1460_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_1459_, v_a_1325_); +v_indexes_1461_ = lean_ctor_get(v___x_1460_, 1); +lean_inc_ref(v_indexes_1461_); +lean_dec_ref(v___x_1460_); +lean_inc(v_a_1325_); +v___x_1462_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_1462_, 0, v_userData_1334_); +lean_ctor_set(v___x_1462_, 1, v_outputData_1335_); +lean_ctor_set(v___x_1462_, 2, v_state_1336_); +lean_ctor_set(v___x_1462_, 3, v_knownSize_1337_); +lean_ctor_set(v___x_1462_, 4, v_a_1325_); +lean_ctor_set(v___x_1462_, 5, v_userDataBytes_1342_); +lean_ctor_set_uint8(v___x_1462_, sizeof(void*)*6, v___y_1456_); +lean_ctor_set_uint8(v___x_1462_, sizeof(void*)*6 + 1, v_userClosedBody_1340_); +lean_ctor_set_uint8(v___x_1462_, sizeof(void*)*6 + 2, v_omitBody_1341_); +v_machine_1463_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_1463_, 0, v_reader_1326_); +lean_ctor_set(v_machine_1463_, 1, v___x_1462_); +lean_ctor_set(v_machine_1463_, 2, v_config_1327_); +lean_ctor_set(v_machine_1463_, 3, v_events_1328_); +lean_ctor_set(v_machine_1463_, 4, v_error_1329_); +lean_ctor_set(v_machine_1463_, 5, v_instant_1330_); +lean_ctor_set_uint8(v_machine_1463_, sizeof(void*)*6, v_keepAlive_1331_); +lean_ctor_set_uint8(v_machine_1463_, sizeof(void*)*6 + 1, v_forcedFlush_1332_); +lean_ctor_set_uint8(v_machine_1463_, sizeof(void*)*6 + 2, v_pullBodyStalled_1333_); +v___x_1464_ = l_Std_Http_Header_Name_contentLength; +v___f_1465_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12)); +v___f_1466_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13)); +v___x_1467_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_1465_, v___f_1466_, v_indexes_1461_, v___x_1464_); +if (v___x_1467_ == 0) +{ +lean_object* v___x_1468_; uint8_t v___x_1469_; +v___x_1468_ = l_Std_Http_Header_Name_transferEncoding; +v___x_1469_ = l_Std_DHashMap_Internal_Raw_u2080_contains___redArg(v___f_1465_, v___f_1466_, v_indexes_1461_, v___x_1468_); +lean_dec_ref(v_indexes_1461_); +v___y_1444_ = v___x_1459_; +v___y_1445_ = v___y_1456_; +v___y_1446_ = v___y_1458_; +v___y_1447_ = v_machine_1463_; +v___y_1448_ = v___y_1457_; +v___y_1449_ = v___x_1469_; +goto v___jp_1443_; +} +else +{ +lean_dec_ref(v_indexes_1461_); +v___y_1444_ = v___x_1459_; +v___y_1445_ = v___y_1456_; +v___y_1446_ = v___y_1458_; +v___y_1447_ = v_machine_1463_; +v___y_1448_ = v___y_1457_; +v___y_1449_ = v___x_1467_; +goto v___jp_1443_; +} +} +v___jp_1470_: +{ +lean_object* v_state_1473_; +v_state_1473_ = lean_ctor_get(v_reader_1326_, 0); +if (lean_obj_tag(v_state_1473_) == 7) +{ +v___y_1456_ = v___y_1471_; +v___y_1457_ = v___y_1472_; +v___y_1458_ = v___y_1471_; +goto v___jp_1455_; +} +else +{ +v___y_1456_ = v___y_1471_; +v___y_1457_ = v___y_1472_; +v___y_1458_ = v___y_1472_; +goto v___jp_1455_; +} +} +v___jp_1474_: +{ +if (v___y_1475_ == 0) +{ +lean_del_object(v___x_1344_); +lean_dec(v_userDataBytes_1342_); +lean_dec(v_messageHead_1338_); +lean_dec(v_knownSize_1337_); +lean_dec(v_state_1336_); +lean_dec_ref(v_outputData_1335_); +lean_dec_ref(v_userData_1334_); +lean_dec(v_a_1325_); +v___y_1261_ = v___y_1254_; +v_omitBody_1262_ = v_omitBody_1341_; +goto v___jp_1260_; +} +else +{ +lean_object* v_status_1476_; uint8_t v___x_1477_; uint16_t v___x_1478_; uint16_t v___x_1479_; uint8_t v___x_1480_; +lean_inc(v_instant_1330_); +lean_inc(v_error_1329_); +lean_inc_ref(v_events_1328_); +lean_inc_ref(v_config_1327_); +lean_inc_ref(v_reader_1326_); +lean_dec_ref(v___y_1254_); +v_status_1476_ = lean_ctor_get(v_a_1325_, 0); +v___x_1477_ = 0; +v___x_1478_ = 100; +v___x_1479_ = l_Std_Http_Status_toCode(v_status_1476_); +v___x_1480_ = lean_uint16_dec_le(v___x_1478_, v___x_1479_); +if (v___x_1480_ == 0) +{ +lean_del_object(v___x_1344_); +lean_dec(v_messageHead_1338_); +v___y_1471_ = v___y_1475_; +v___y_1472_ = v___x_1477_; +goto v___jp_1470_; +} +else +{ +uint16_t v___x_1481_; uint8_t v___x_1482_; +v___x_1481_ = 200; +v___x_1482_ = lean_uint16_dec_lt(v___x_1479_, v___x_1481_); +if (v___x_1482_ == 0) +{ +lean_del_object(v___x_1344_); +lean_dec(v_messageHead_1338_); +v___y_1471_ = v___y_1475_; +v___y_1472_ = v___x_1477_; +goto v___jp_1470_; +} +else +{ +uint8_t v___x_1483_; lean_object* v___x_1484_; lean_object* v___x_1485_; lean_object* v___f_1486_; lean_object* v___f_1487_; lean_object* v___f_1488_; lean_object* v___f_1489_; uint8_t v___x_1490_; +v___x_1483_ = 1; +v___x_1484_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_1483_, v_a_1325_); +v___x_1485_ = l_Std_Http_Header_Name_contentLength; +v___f_1486_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__15); +v___f_1487_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__12)); +v___f_1488_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__13)); +v___f_1489_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__14)); +v___x_1490_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1487_, v___f_1488_, v___x_1485_, v___x_1484_); +if (v___x_1490_ == 0) +{ +if (v___x_1482_ == 0) +{ +v___y_1421_ = v___x_1483_; +v___y_1422_ = v___x_1484_; +v___y_1423_ = v___f_1487_; +v___y_1424_ = v___x_1482_; +v___y_1425_ = v___f_1486_; +v___y_1426_ = v___f_1488_; +v___y_1427_ = v___f_1489_; +goto v___jp_1420_; +} +else +{ +v___y_1394_ = v___x_1483_; +v___y_1395_ = v___x_1482_; +v___y_1396_ = v___x_1484_; +goto v___jp_1393_; +} +} +else +{ +v___y_1421_ = v___x_1483_; +v___y_1422_ = v___x_1484_; +v___y_1423_ = v___f_1487_; +v___y_1424_ = v___x_1482_; +v___y_1425_ = v___f_1486_; +v___y_1426_ = v___f_1488_; +v___y_1427_ = v___f_1489_; +goto v___jp_1420_; +} +} +} +} +} +} +} +v___jp_1260_: +{ +if (v_omitBody_1262_ == 0) +{ +lean_object* v___x_1263_; lean_object* v___x_1264_; lean_object* v___x_1265_; lean_object* v___x_1266_; +lean_dec_ref(v_close_1257_); +lean_dec_ref(v_isClosed_1256_); +v___x_1263_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1263_, 0, v_body_1255_); +v___x_1264_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1264_, 0, v___y_1261_); +lean_ctor_set(v___x_1264_, 1, v___x_1263_); +v___x_1265_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1265_, 0, v___x_1264_); +v___x_1266_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1266_, 0, v___x_1265_); +return v___x_1266_; +} +else +{ +lean_object* v___x_1267_; lean_object* v___f_1268_; lean_object* v___f_1269_; lean_object* v___f_1270_; lean_object* v___x_1271_; uint8_t v___x_1272_; lean_object* v___x_1273_; +lean_inc(v_body_1255_); +v___x_1267_ = lean_apply_2(v_isClosed_1256_, v_body_1255_, lean_box(0)); +v___f_1268_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1268_, 0, v___y_1261_); +lean_inc_ref(v___f_1268_); +v___f_1269_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_1269_, 0, v___f_1268_); +v___f_1270_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2___boxed), 6, 4); +lean_closure_set(v___f_1270_, 0, v_close_1257_); +lean_closure_set(v___f_1270_, 1, v_body_1255_); +lean_closure_set(v___f_1270_, 2, v___f_1269_); +lean_closure_set(v___f_1270_, 3, v___f_1268_); +v___x_1271_ = lean_unsigned_to_nat(0u); +v___x_1272_ = 0; +v___x_1273_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1271_, v___x_1272_, v___x_1267_, v___f_1270_); +return v___x_1273_; +} +} +v___jp_1274_: +{ +lean_object* v_writer_1276_; lean_object* v_reader_1277_; lean_object* v_config_1278_; lean_object* v_events_1279_; lean_object* v_error_1280_; lean_object* v_instant_1281_; uint8_t v_keepAlive_1282_; uint8_t v_forcedFlush_1283_; uint8_t v_pullBodyStalled_1284_; lean_object* v___x_1286_; uint8_t v_isShared_1287_; uint8_t v_isSharedCheck_1308_; +v_writer_1276_ = lean_ctor_get(v___y_1275_, 1); +v_reader_1277_ = lean_ctor_get(v___y_1275_, 0); +v_config_1278_ = lean_ctor_get(v___y_1275_, 2); +v_events_1279_ = lean_ctor_get(v___y_1275_, 3); +v_error_1280_ = lean_ctor_get(v___y_1275_, 4); +v_instant_1281_ = lean_ctor_get(v___y_1275_, 5); +v_keepAlive_1282_ = lean_ctor_get_uint8(v___y_1275_, sizeof(void*)*6); +v_forcedFlush_1283_ = lean_ctor_get_uint8(v___y_1275_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1284_ = lean_ctor_get_uint8(v___y_1275_, sizeof(void*)*6 + 2); +v_isSharedCheck_1308_ = !lean_is_exclusive(v___y_1275_); +if (v_isSharedCheck_1308_ == 0) +{ +v___x_1286_ = v___y_1275_; +v_isShared_1287_ = v_isSharedCheck_1308_; +goto v_resetjp_1285_; +} +else +{ +lean_inc(v_instant_1281_); +lean_inc(v_error_1280_); +lean_inc(v_events_1279_); +lean_inc(v_config_1278_); +lean_inc(v_writer_1276_); +lean_inc(v_reader_1277_); +lean_dec(v___y_1275_); +v___x_1286_ = lean_box(0); +v_isShared_1287_ = v_isSharedCheck_1308_; +goto v_resetjp_1285_; +} +v_resetjp_1285_: +{ +lean_object* v_userData_1288_; lean_object* v_outputData_1289_; lean_object* v_knownSize_1290_; lean_object* v_messageHead_1291_; uint8_t v_sentMessage_1292_; uint8_t v_userClosedBody_1293_; uint8_t v_omitBody_1294_; lean_object* v_userDataBytes_1295_; lean_object* v___x_1297_; uint8_t v_isShared_1298_; uint8_t v_isSharedCheck_1306_; +v_userData_1288_ = lean_ctor_get(v_writer_1276_, 0); +v_outputData_1289_ = lean_ctor_get(v_writer_1276_, 1); +v_knownSize_1290_ = lean_ctor_get(v_writer_1276_, 3); +v_messageHead_1291_ = lean_ctor_get(v_writer_1276_, 4); +v_sentMessage_1292_ = lean_ctor_get_uint8(v_writer_1276_, sizeof(void*)*6); +v_userClosedBody_1293_ = lean_ctor_get_uint8(v_writer_1276_, sizeof(void*)*6 + 1); +v_omitBody_1294_ = lean_ctor_get_uint8(v_writer_1276_, sizeof(void*)*6 + 2); +v_userDataBytes_1295_ = lean_ctor_get(v_writer_1276_, 5); +v_isSharedCheck_1306_ = !lean_is_exclusive(v_writer_1276_); +if (v_isSharedCheck_1306_ == 0) +{ +lean_object* v_unused_1307_; +v_unused_1307_ = lean_ctor_get(v_writer_1276_, 2); +lean_dec(v_unused_1307_); +v___x_1297_ = v_writer_1276_; +v_isShared_1298_ = v_isSharedCheck_1306_; +goto v_resetjp_1296_; +} +else +{ +lean_inc(v_userDataBytes_1295_); +lean_inc(v_messageHead_1291_); +lean_inc(v_knownSize_1290_); +lean_inc(v_outputData_1289_); +lean_inc(v_userData_1288_); +lean_dec(v_writer_1276_); +v___x_1297_ = lean_box(0); +v_isShared_1298_ = v_isSharedCheck_1306_; +goto v_resetjp_1296_; +} +v_resetjp_1296_: +{ +lean_object* v___x_1299_; lean_object* v___x_1301_; +v___x_1299_ = lean_box(2); +if (v_isShared_1298_ == 0) +{ +lean_ctor_set(v___x_1297_, 2, v___x_1299_); +v___x_1301_ = v___x_1297_; +goto v_reusejp_1300_; +} +else +{ +lean_object* v_reuseFailAlloc_1305_; +v_reuseFailAlloc_1305_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1305_, 0, v_userData_1288_); +lean_ctor_set(v_reuseFailAlloc_1305_, 1, v_outputData_1289_); +lean_ctor_set(v_reuseFailAlloc_1305_, 2, v___x_1299_); +lean_ctor_set(v_reuseFailAlloc_1305_, 3, v_knownSize_1290_); +lean_ctor_set(v_reuseFailAlloc_1305_, 4, v_messageHead_1291_); +lean_ctor_set(v_reuseFailAlloc_1305_, 5, v_userDataBytes_1295_); +lean_ctor_set_uint8(v_reuseFailAlloc_1305_, sizeof(void*)*6, v_sentMessage_1292_); +lean_ctor_set_uint8(v_reuseFailAlloc_1305_, sizeof(void*)*6 + 1, v_userClosedBody_1293_); +lean_ctor_set_uint8(v_reuseFailAlloc_1305_, sizeof(void*)*6 + 2, v_omitBody_1294_); +v___x_1301_ = v_reuseFailAlloc_1305_; +goto v_reusejp_1300_; +} +v_reusejp_1300_: +{ +lean_object* v___x_1303_; +if (v_isShared_1287_ == 0) +{ +lean_ctor_set(v___x_1286_, 1, v___x_1301_); +v___x_1303_ = v___x_1286_; +goto v_reusejp_1302_; +} +else +{ +lean_object* v_reuseFailAlloc_1304_; +v_reuseFailAlloc_1304_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1304_, 0, v_reader_1277_); +lean_ctor_set(v_reuseFailAlloc_1304_, 1, v___x_1301_); +lean_ctor_set(v_reuseFailAlloc_1304_, 2, v_config_1278_); +lean_ctor_set(v_reuseFailAlloc_1304_, 3, v_events_1279_); +lean_ctor_set(v_reuseFailAlloc_1304_, 4, v_error_1280_); +lean_ctor_set(v_reuseFailAlloc_1304_, 5, v_instant_1281_); +lean_ctor_set_uint8(v_reuseFailAlloc_1304_, sizeof(void*)*6, v_keepAlive_1282_); +lean_ctor_set_uint8(v_reuseFailAlloc_1304_, sizeof(void*)*6 + 1, v_forcedFlush_1283_); +lean_ctor_set_uint8(v_reuseFailAlloc_1304_, sizeof(void*)*6 + 2, v_pullBodyStalled_1284_); +v___x_1303_ = v_reuseFailAlloc_1304_; +goto v_reusejp_1302_; +} +v_reusejp_1302_: +{ +v___y_1261_ = v___x_1303_; +v_omitBody_1262_ = v_omitBody_1294_; +goto v___jp_1260_; +} +} +} +} +} +v___jp_1309_: +{ +if (v___y_1312_ == 0) +{ +v___y_1275_ = v___y_1311_; +goto v___jp_1274_; +} +else +{ +if (v___y_1310_ == 0) +{ +lean_object* v_writer_1313_; uint8_t v_omitBody_1314_; +v_writer_1313_ = lean_ctor_get(v___y_1311_, 1); +v_omitBody_1314_ = lean_ctor_get_uint8(v_writer_1313_, sizeof(void*)*6 + 2); +v___y_1261_ = v___y_1311_; +v_omitBody_1262_ = v_omitBody_1314_; +goto v___jp_1260_; +} +else +{ +v___y_1275_ = v___y_1311_; +goto v___jp_1274_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___boxed(lean_object* v___y_1494_, lean_object* v_body_1495_, lean_object* v_isClosed_1496_, lean_object* v_close_1497_, lean_object* v_x_1498_, lean_object* v___y_1499_){ +_start: +{ +lean_object* v_res_1500_; +v_res_1500_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8(v___y_1494_, v_body_1495_, v_isClosed_1496_, v_close_1497_, v_x_1498_); +return v_res_1500_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4(lean_object* v_config_1501_, lean_object* v_line_1502_, lean_object* v_body_1503_, lean_object* v_isClosed_1504_, lean_object* v_close_1505_, lean_object* v_machine_1506_, lean_object* v_x_1507_){ +_start: +{ +lean_object* v___y_1510_; +if (lean_obj_tag(v_x_1507_) == 0) +{ +lean_object* v_a_1516_; lean_object* v___x_1518_; uint8_t v_isShared_1519_; uint8_t v_isSharedCheck_1524_; +lean_dec_ref(v_machine_1506_); +lean_dec_ref(v_close_1505_); +lean_dec_ref(v_isClosed_1504_); +lean_dec(v_body_1503_); +lean_dec_ref(v_line_1502_); +v_a_1516_ = lean_ctor_get(v_x_1507_, 0); +v_isSharedCheck_1524_ = !lean_is_exclusive(v_x_1507_); +if (v_isSharedCheck_1524_ == 0) +{ +v___x_1518_ = v_x_1507_; +v_isShared_1519_ = v_isSharedCheck_1524_; +goto v_resetjp_1517_; +} +else +{ +lean_inc(v_a_1516_); +lean_dec(v_x_1507_); +v___x_1518_ = lean_box(0); +v_isShared_1519_ = v_isSharedCheck_1524_; +goto v_resetjp_1517_; +} +v_resetjp_1517_: +{ +lean_object* v___x_1521_; +if (v_isShared_1519_ == 0) +{ +v___x_1521_ = v___x_1518_; +goto v_reusejp_1520_; +} +else +{ +lean_object* v_reuseFailAlloc_1523_; +v_reuseFailAlloc_1523_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1523_, 0, v_a_1516_); +v___x_1521_ = v_reuseFailAlloc_1523_; +goto v_reusejp_1520_; +} +v_reusejp_1520_: +{ +lean_object* v___x_1522_; +v___x_1522_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1522_, 0, v___x_1521_); +return v___x_1522_; +} +} +} +else +{ +lean_object* v_a_1525_; +v_a_1525_ = lean_ctor_get(v_x_1507_, 0); +lean_inc(v_a_1525_); +lean_dec_ref(v_x_1507_); +if (lean_obj_tag(v_a_1525_) == 1) +{ +lean_object* v_writer_1526_; lean_object* v_reader_1527_; lean_object* v_config_1528_; lean_object* v_events_1529_; lean_object* v_error_1530_; lean_object* v_instant_1531_; uint8_t v_keepAlive_1532_; uint8_t v_forcedFlush_1533_; uint8_t v_pullBodyStalled_1534_; lean_object* v___x_1536_; uint8_t v_isShared_1537_; uint8_t v_isSharedCheck_1557_; +v_writer_1526_ = lean_ctor_get(v_machine_1506_, 1); +v_reader_1527_ = lean_ctor_get(v_machine_1506_, 0); +v_config_1528_ = lean_ctor_get(v_machine_1506_, 2); +v_events_1529_ = lean_ctor_get(v_machine_1506_, 3); +v_error_1530_ = lean_ctor_get(v_machine_1506_, 4); +v_instant_1531_ = lean_ctor_get(v_machine_1506_, 5); +v_keepAlive_1532_ = lean_ctor_get_uint8(v_machine_1506_, sizeof(void*)*6); +v_forcedFlush_1533_ = lean_ctor_get_uint8(v_machine_1506_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1534_ = lean_ctor_get_uint8(v_machine_1506_, sizeof(void*)*6 + 2); +v_isSharedCheck_1557_ = !lean_is_exclusive(v_machine_1506_); +if (v_isSharedCheck_1557_ == 0) +{ +v___x_1536_ = v_machine_1506_; +v_isShared_1537_ = v_isSharedCheck_1557_; +goto v_resetjp_1535_; +} +else +{ +lean_inc(v_instant_1531_); +lean_inc(v_error_1530_); +lean_inc(v_events_1529_); +lean_inc(v_config_1528_); +lean_inc(v_writer_1526_); +lean_inc(v_reader_1527_); +lean_dec(v_machine_1506_); +v___x_1536_ = lean_box(0); +v_isShared_1537_ = v_isSharedCheck_1557_; +goto v_resetjp_1535_; +} +v_resetjp_1535_: +{ +lean_object* v_userData_1538_; lean_object* v_outputData_1539_; lean_object* v_state_1540_; lean_object* v_messageHead_1541_; uint8_t v_sentMessage_1542_; uint8_t v_userClosedBody_1543_; uint8_t v_omitBody_1544_; lean_object* v_userDataBytes_1545_; lean_object* v___x_1547_; uint8_t v_isShared_1548_; uint8_t v_isSharedCheck_1555_; +v_userData_1538_ = lean_ctor_get(v_writer_1526_, 0); +v_outputData_1539_ = lean_ctor_get(v_writer_1526_, 1); +v_state_1540_ = lean_ctor_get(v_writer_1526_, 2); +v_messageHead_1541_ = lean_ctor_get(v_writer_1526_, 4); +v_sentMessage_1542_ = lean_ctor_get_uint8(v_writer_1526_, sizeof(void*)*6); +v_userClosedBody_1543_ = lean_ctor_get_uint8(v_writer_1526_, sizeof(void*)*6 + 1); +v_omitBody_1544_ = lean_ctor_get_uint8(v_writer_1526_, sizeof(void*)*6 + 2); +v_userDataBytes_1545_ = lean_ctor_get(v_writer_1526_, 5); +v_isSharedCheck_1555_ = !lean_is_exclusive(v_writer_1526_); +if (v_isSharedCheck_1555_ == 0) +{ +lean_object* v_unused_1556_; +v_unused_1556_ = lean_ctor_get(v_writer_1526_, 3); +lean_dec(v_unused_1556_); +v___x_1547_ = v_writer_1526_; +v_isShared_1548_ = v_isSharedCheck_1555_; +goto v_resetjp_1546_; +} +else +{ +lean_inc(v_userDataBytes_1545_); +lean_inc(v_messageHead_1541_); +lean_inc(v_state_1540_); +lean_inc(v_outputData_1539_); +lean_inc(v_userData_1538_); +lean_dec(v_writer_1526_); +v___x_1547_ = lean_box(0); +v_isShared_1548_ = v_isSharedCheck_1555_; +goto v_resetjp_1546_; +} +v_resetjp_1546_: +{ +lean_object* v___x_1550_; +if (v_isShared_1548_ == 0) +{ +lean_ctor_set(v___x_1547_, 3, v_a_1525_); +v___x_1550_ = v___x_1547_; +goto v_reusejp_1549_; +} +else +{ +lean_object* v_reuseFailAlloc_1554_; +v_reuseFailAlloc_1554_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1554_, 0, v_userData_1538_); +lean_ctor_set(v_reuseFailAlloc_1554_, 1, v_outputData_1539_); +lean_ctor_set(v_reuseFailAlloc_1554_, 2, v_state_1540_); +lean_ctor_set(v_reuseFailAlloc_1554_, 3, v_a_1525_); +lean_ctor_set(v_reuseFailAlloc_1554_, 4, v_messageHead_1541_); +lean_ctor_set(v_reuseFailAlloc_1554_, 5, v_userDataBytes_1545_); +lean_ctor_set_uint8(v_reuseFailAlloc_1554_, sizeof(void*)*6, v_sentMessage_1542_); +lean_ctor_set_uint8(v_reuseFailAlloc_1554_, sizeof(void*)*6 + 1, v_userClosedBody_1543_); +lean_ctor_set_uint8(v_reuseFailAlloc_1554_, sizeof(void*)*6 + 2, v_omitBody_1544_); +v___x_1550_ = v_reuseFailAlloc_1554_; +goto v_reusejp_1549_; +} +v_reusejp_1549_: +{ +lean_object* v___x_1552_; +if (v_isShared_1537_ == 0) +{ +lean_ctor_set(v___x_1536_, 1, v___x_1550_); +v___x_1552_ = v___x_1536_; +goto v_reusejp_1551_; +} +else +{ +lean_object* v_reuseFailAlloc_1553_; +v_reuseFailAlloc_1553_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1553_, 0, v_reader_1527_); +lean_ctor_set(v_reuseFailAlloc_1553_, 1, v___x_1550_); +lean_ctor_set(v_reuseFailAlloc_1553_, 2, v_config_1528_); +lean_ctor_set(v_reuseFailAlloc_1553_, 3, v_events_1529_); +lean_ctor_set(v_reuseFailAlloc_1553_, 4, v_error_1530_); +lean_ctor_set(v_reuseFailAlloc_1553_, 5, v_instant_1531_); +lean_ctor_set_uint8(v_reuseFailAlloc_1553_, sizeof(void*)*6, v_keepAlive_1532_); +lean_ctor_set_uint8(v_reuseFailAlloc_1553_, sizeof(void*)*6 + 1, v_forcedFlush_1533_); +lean_ctor_set_uint8(v_reuseFailAlloc_1553_, sizeof(void*)*6 + 2, v_pullBodyStalled_1534_); +v___x_1552_ = v_reuseFailAlloc_1553_; +goto v_reusejp_1551_; +} +v_reusejp_1551_: +{ +v___y_1510_ = v___x_1552_; +goto v___jp_1509_; +} +} +} +} +} +else +{ +lean_dec(v_a_1525_); +v___y_1510_ = v_machine_1506_; +goto v___jp_1509_; +} +} +v___jp_1509_: +{ +lean_object* v___x_1511_; lean_object* v___f_1512_; lean_object* v___x_1513_; uint8_t v___x_1514_; lean_object* v___x_1515_; +v___x_1511_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(v_config_1501_, v_line_1502_); +v___f_1512_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___boxed), 6, 4); +lean_closure_set(v___f_1512_, 0, v___y_1510_); +lean_closure_set(v___f_1512_, 1, v_body_1503_); +lean_closure_set(v___f_1512_, 2, v_isClosed_1504_); +lean_closure_set(v___f_1512_, 3, v_close_1505_); +v___x_1513_ = lean_unsigned_to_nat(0u); +v___x_1514_ = 0; +v___x_1515_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1513_, v___x_1514_, v___x_1511_, v___f_1512_); +return v___x_1515_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4___boxed(lean_object* v_config_1558_, lean_object* v_line_1559_, lean_object* v_body_1560_, lean_object* v_isClosed_1561_, lean_object* v_close_1562_, lean_object* v_machine_1563_, lean_object* v_x_1564_, lean_object* v___y_1565_){ +_start: +{ +lean_object* v_res_1566_; +v_res_1566_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4(v_config_1558_, v_line_1559_, v_body_1560_, v_isClosed_1561_, v_close_1562_, v_machine_1563_, v_x_1564_); +lean_dec_ref(v_config_1558_); +return v_res_1566_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg(lean_object* v_inst_1567_, lean_object* v_config_1568_, lean_object* v_machine_1569_, lean_object* v_res_1570_){ +_start: +{ +lean_object* v_close_1572_; lean_object* v_isClosed_1573_; lean_object* v_getKnownSize_1574_; lean_object* v_line_1575_; lean_object* v_body_1576_; lean_object* v___x_1577_; lean_object* v___f_1578_; lean_object* v___x_1579_; uint8_t v___x_1580_; lean_object* v___x_1581_; +v_close_1572_ = lean_ctor_get(v_inst_1567_, 1); +lean_inc_ref(v_close_1572_); +v_isClosed_1573_ = lean_ctor_get(v_inst_1567_, 2); +lean_inc_ref(v_isClosed_1573_); +v_getKnownSize_1574_ = lean_ctor_get(v_inst_1567_, 5); +lean_inc_ref(v_getKnownSize_1574_); +lean_dec_ref(v_inst_1567_); +v_line_1575_ = lean_ctor_get(v_res_1570_, 0); +lean_inc_ref(v_line_1575_); +v_body_1576_ = lean_ctor_get(v_res_1570_, 1); +lean_inc_n(v_body_1576_, 2); +lean_dec_ref(v_res_1570_); +v___x_1577_ = lean_apply_2(v_getKnownSize_1574_, v_body_1576_, lean_box(0)); +v___f_1578_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__4___boxed), 8, 6); +lean_closure_set(v___f_1578_, 0, v_config_1568_); +lean_closure_set(v___f_1578_, 1, v_line_1575_); +lean_closure_set(v___f_1578_, 2, v_body_1576_); +lean_closure_set(v___f_1578_, 3, v_isClosed_1573_); +lean_closure_set(v___f_1578_, 4, v_close_1572_); +lean_closure_set(v___f_1578_, 5, v_machine_1569_); +v___x_1579_ = lean_unsigned_to_nat(0u); +v___x_1580_ = 0; +v___x_1581_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1579_, v___x_1580_, v___x_1577_, v___f_1578_); +return v___x_1581_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___boxed(lean_object* v_inst_1582_, lean_object* v_config_1583_, lean_object* v_machine_1584_, lean_object* v_res_1585_, lean_object* v_a_1586_){ +_start: +{ +lean_object* v_res_1587_; +v_res_1587_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg(v_inst_1582_, v_config_1583_, v_machine_1584_, v_res_1585_); +return v_res_1587_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse(lean_object* v_00_u03b2_1588_, lean_object* v_inst_1589_, lean_object* v_config_1590_, lean_object* v_machine_1591_, lean_object* v_res_1592_){ +_start: +{ +lean_object* v___x_1594_; +v___x_1594_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg(v_inst_1589_, v_config_1590_, v_machine_1591_, v_res_1592_); +return v___x_1594_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___boxed(lean_object* v_00_u03b2_1595_, lean_object* v_inst_1596_, lean_object* v_config_1597_, lean_object* v_machine_1598_, lean_object* v_res_1599_, lean_object* v_a_1600_){ +_start: +{ +lean_object* v_res_1601_; +v_res_1601_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse(v_00_u03b2_1595_, v_inst_1596_, v_config_1597_, v_machine_1598_, v_res_1599_); +return v_res_1601_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0(lean_object* v_____do__lift_1602_, lean_object* v___y_1603_){ +_start: +{ +uint8_t v_closed_1605_; lean_object* v___x_1606_; lean_object* v___x_1607_; lean_object* v___x_1608_; +v_closed_1605_ = lean_ctor_get_uint8(v_____do__lift_1602_, sizeof(void*)*5); +v___x_1606_ = lean_box(v_closed_1605_); +v___x_1607_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1607_, 0, v___x_1606_); +v___x_1608_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1608_, 0, v___x_1607_); +return v___x_1608_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0___boxed(lean_object* v_____do__lift_1609_, lean_object* v___y_1610_, lean_object* v___y_1611_){ +_start: +{ +lean_object* v_res_1612_; +v_res_1612_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__0(v_____do__lift_1609_, v___y_1610_); +lean_dec(v___y_1610_); +lean_dec_ref(v_____do__lift_1609_); +return v_res_1612_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3(lean_object* v___x_1617_, lean_object* v___y_1618_){ +_start: +{ +lean_object* v___x_1620_; lean_object* v_pendingProducer_1621_; lean_object* v_pendingConsumer_1622_; lean_object* v_interestWaiter_1623_; uint8_t v_closed_1624_; lean_object* v_pendingIncompleteChunk_1625_; lean_object* v___x_1627_; uint8_t v_isShared_1628_; uint8_t v_isSharedCheck_1634_; +v___x_1620_ = lean_st_ref_take(v___y_1618_); +v_pendingProducer_1621_ = lean_ctor_get(v___x_1620_, 0); +v_pendingConsumer_1622_ = lean_ctor_get(v___x_1620_, 1); +v_interestWaiter_1623_ = lean_ctor_get(v___x_1620_, 2); +v_closed_1624_ = lean_ctor_get_uint8(v___x_1620_, sizeof(void*)*5); +v_pendingIncompleteChunk_1625_ = lean_ctor_get(v___x_1620_, 4); +v_isSharedCheck_1634_ = !lean_is_exclusive(v___x_1620_); +if (v_isSharedCheck_1634_ == 0) +{ +lean_object* v_unused_1635_; +v_unused_1635_ = lean_ctor_get(v___x_1620_, 3); +lean_dec(v_unused_1635_); +v___x_1627_ = v___x_1620_; +v_isShared_1628_ = v_isSharedCheck_1634_; +goto v_resetjp_1626_; +} +else +{ +lean_inc(v_pendingIncompleteChunk_1625_); +lean_inc(v_interestWaiter_1623_); +lean_inc(v_pendingConsumer_1622_); +lean_inc(v_pendingProducer_1621_); +lean_dec(v___x_1620_); +v___x_1627_ = lean_box(0); +v_isShared_1628_ = v_isSharedCheck_1634_; +goto v_resetjp_1626_; +} +v_resetjp_1626_: +{ +lean_object* v___x_1630_; +if (v_isShared_1628_ == 0) +{ +lean_ctor_set(v___x_1627_, 3, v___x_1617_); +v___x_1630_ = v___x_1627_; +goto v_reusejp_1629_; +} +else +{ +lean_object* v_reuseFailAlloc_1633_; +v_reuseFailAlloc_1633_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_1633_, 0, v_pendingProducer_1621_); +lean_ctor_set(v_reuseFailAlloc_1633_, 1, v_pendingConsumer_1622_); +lean_ctor_set(v_reuseFailAlloc_1633_, 2, v_interestWaiter_1623_); +lean_ctor_set(v_reuseFailAlloc_1633_, 3, v___x_1617_); +lean_ctor_set(v_reuseFailAlloc_1633_, 4, v_pendingIncompleteChunk_1625_); +lean_ctor_set_uint8(v_reuseFailAlloc_1633_, sizeof(void*)*5, v_closed_1624_); +v___x_1630_ = v_reuseFailAlloc_1633_; +goto v_reusejp_1629_; +} +v_reusejp_1629_: +{ +lean_object* v___x_1631_; lean_object* v___x_1632_; +v___x_1631_ = lean_st_ref_set(v___y_1618_, v___x_1630_); +v___x_1632_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___closed__1)); +return v___x_1632_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___boxed(lean_object* v___x_1636_, lean_object* v___y_1637_, lean_object* v___y_1638_){ +_start: +{ +lean_object* v_res_1639_; +v_res_1639_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3(v___x_1636_, v___y_1637_); +lean_dec(v___y_1637_); +return v_res_1639_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1(lean_object* v___x_1640_, lean_object* v_x_1641_){ +_start: +{ +if (lean_obj_tag(v_x_1641_) == 0) +{ +lean_object* v_a_1643_; lean_object* v___x_1645_; uint8_t v_isShared_1646_; uint8_t v_isSharedCheck_1651_; +lean_dec_ref(v___x_1640_); +v_a_1643_ = lean_ctor_get(v_x_1641_, 0); +v_isSharedCheck_1651_ = !lean_is_exclusive(v_x_1641_); +if (v_isSharedCheck_1651_ == 0) +{ +v___x_1645_ = v_x_1641_; +v_isShared_1646_ = v_isSharedCheck_1651_; +goto v_resetjp_1644_; +} +else +{ +lean_inc(v_a_1643_); +lean_dec(v_x_1641_); +v___x_1645_ = lean_box(0); +v_isShared_1646_ = v_isSharedCheck_1651_; +goto v_resetjp_1644_; +} +v_resetjp_1644_: +{ +lean_object* v___x_1648_; +if (v_isShared_1646_ == 0) +{ +v___x_1648_ = v___x_1645_; +goto v_reusejp_1647_; +} +else +{ +lean_object* v_reuseFailAlloc_1650_; +v_reuseFailAlloc_1650_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1650_, 0, v_a_1643_); +v___x_1648_ = v_reuseFailAlloc_1650_; +goto v_reusejp_1647_; +} +v_reusejp_1647_: +{ +lean_object* v___x_1649_; +v___x_1649_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1649_, 0, v___x_1648_); +return v___x_1649_; +} +} +} +else +{ +lean_object* v___x_1653_; uint8_t v_isShared_1654_; uint8_t v_isSharedCheck_1660_; +v_isSharedCheck_1660_ = !lean_is_exclusive(v_x_1641_); +if (v_isSharedCheck_1660_ == 0) +{ +lean_object* v_unused_1661_; +v_unused_1661_ = lean_ctor_get(v_x_1641_, 0); +lean_dec(v_unused_1661_); +v___x_1653_ = v_x_1641_; +v_isShared_1654_ = v_isSharedCheck_1660_; +goto v_resetjp_1652_; +} +else +{ +lean_dec(v_x_1641_); +v___x_1653_ = lean_box(0); +v_isShared_1654_ = v_isSharedCheck_1660_; +goto v_resetjp_1652_; +} +v_resetjp_1652_: +{ +lean_object* v___x_1655_; lean_object* v___x_1657_; +v___x_1655_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1655_, 0, v___x_1640_); +if (v_isShared_1654_ == 0) +{ +lean_ctor_set(v___x_1653_, 0, v___x_1655_); +v___x_1657_ = v___x_1653_; +goto v_reusejp_1656_; +} +else +{ +lean_object* v_reuseFailAlloc_1659_; +v_reuseFailAlloc_1659_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1659_, 0, v___x_1655_); +v___x_1657_ = v_reuseFailAlloc_1659_; +goto v_reusejp_1656_; +} +v_reusejp_1656_: +{ +lean_object* v___x_1658_; +v___x_1658_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1658_, 0, v___x_1657_); +return v___x_1658_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1___boxed(lean_object* v___x_1662_, lean_object* v_x_1663_, lean_object* v___y_1664_){ +_start: +{ +lean_object* v_res_1665_; +v_res_1665_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1(v___x_1662_, v_x_1663_); +return v_res_1665_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2(lean_object* v_machine_1666_, lean_object* v_requestStream_1667_, lean_object* v_keepAliveTimeout_1668_, lean_object* v_currentTimeout_1669_, lean_object* v_headerTimeout_1670_, lean_object* v_response_1671_, lean_object* v_respStream_1672_, lean_object* v_expectData_1673_, uint8_t v_handlerDispatched_1674_, lean_object* v_____r_1675_){ +_start: +{ +uint8_t v___x_1677_; lean_object* v___x_1678_; lean_object* v___x_1679_; lean_object* v___x_1680_; lean_object* v___x_1681_; lean_object* v___x_1682_; +v___x_1677_ = 0; +v___x_1678_ = lean_box(0); +v___x_1679_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_1679_, 0, v_machine_1666_); +lean_ctor_set(v___x_1679_, 1, v_requestStream_1667_); +lean_ctor_set(v___x_1679_, 2, v_keepAliveTimeout_1668_); +lean_ctor_set(v___x_1679_, 3, v_currentTimeout_1669_); +lean_ctor_set(v___x_1679_, 4, v_headerTimeout_1670_); +lean_ctor_set(v___x_1679_, 5, v_response_1671_); +lean_ctor_set(v___x_1679_, 6, v_respStream_1672_); +lean_ctor_set(v___x_1679_, 7, v_expectData_1673_); +lean_ctor_set(v___x_1679_, 8, v___x_1678_); +lean_ctor_set_uint8(v___x_1679_, sizeof(void*)*9, v___x_1677_); +lean_ctor_set_uint8(v___x_1679_, sizeof(void*)*9 + 1, v_handlerDispatched_1674_); +v___x_1680_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1680_, 0, v___x_1679_); +v___x_1681_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1681_, 0, v___x_1680_); +v___x_1682_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1682_, 0, v___x_1681_); +return v___x_1682_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2___boxed(lean_object* v_machine_1683_, lean_object* v_requestStream_1684_, lean_object* v_keepAliveTimeout_1685_, lean_object* v_currentTimeout_1686_, lean_object* v_headerTimeout_1687_, lean_object* v_response_1688_, lean_object* v_respStream_1689_, lean_object* v_expectData_1690_, lean_object* v_handlerDispatched_1691_, lean_object* v_____r_1692_, lean_object* v___y_1693_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_1694_; lean_object* v_res_1695_; +v_handlerDispatched_boxed_1694_ = lean_unbox(v_handlerDispatched_1691_); +v_res_1695_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2(v_machine_1683_, v_requestStream_1684_, v_keepAliveTimeout_1685_, v_currentTimeout_1686_, v_headerTimeout_1687_, v_response_1688_, v_respStream_1689_, v_expectData_1690_, v_handlerDispatched_boxed_1694_, v_____r_1692_); +return v_res_1695_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4(lean_object* v___f_1696_, lean_object* v_x_1697_){ +_start: +{ +if (lean_obj_tag(v_x_1697_) == 0) +{ +lean_object* v_a_1699_; lean_object* v___x_1701_; uint8_t v_isShared_1702_; uint8_t v_isSharedCheck_1707_; +lean_dec_ref(v___f_1696_); +v_a_1699_ = lean_ctor_get(v_x_1697_, 0); +v_isSharedCheck_1707_ = !lean_is_exclusive(v_x_1697_); +if (v_isSharedCheck_1707_ == 0) +{ +v___x_1701_ = v_x_1697_; +v_isShared_1702_ = v_isSharedCheck_1707_; +goto v_resetjp_1700_; +} +else +{ +lean_inc(v_a_1699_); +lean_dec(v_x_1697_); +v___x_1701_ = lean_box(0); +v_isShared_1702_ = v_isSharedCheck_1707_; +goto v_resetjp_1700_; +} +v_resetjp_1700_: +{ +lean_object* v___x_1704_; +if (v_isShared_1702_ == 0) +{ +v___x_1704_ = v___x_1701_; +goto v_reusejp_1703_; +} +else +{ +lean_object* v_reuseFailAlloc_1706_; +v_reuseFailAlloc_1706_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1706_, 0, v_a_1699_); +v___x_1704_ = v_reuseFailAlloc_1706_; +goto v_reusejp_1703_; +} +v_reusejp_1703_: +{ +lean_object* v___x_1705_; +v___x_1705_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1705_, 0, v___x_1704_); +return v___x_1705_; +} +} +} +else +{ +lean_object* v_a_1708_; lean_object* v___x_1709_; +v_a_1708_ = lean_ctor_get(v_x_1697_, 0); +lean_inc(v_a_1708_); +lean_dec_ref(v_x_1697_); +v___x_1709_ = lean_apply_2(v___f_1696_, v_a_1708_, lean_box(0)); +return v___x_1709_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4___boxed(lean_object* v___f_1710_, lean_object* v_x_1711_, lean_object* v___y_1712_){ +_start: +{ +lean_object* v_res_1713_; +v_res_1713_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4(v___f_1710_, v_x_1711_); +return v_res_1713_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5(lean_object* v_requestStream_1714_, lean_object* v___f_1715_, lean_object* v___f_1716_, lean_object* v_x_1717_){ +_start: +{ +if (lean_obj_tag(v_x_1717_) == 0) +{ +lean_object* v_a_1719_; lean_object* v___x_1721_; uint8_t v_isShared_1722_; uint8_t v_isSharedCheck_1727_; +lean_dec_ref(v___f_1716_); +lean_dec_ref(v___f_1715_); +lean_dec_ref(v_requestStream_1714_); +v_a_1719_ = lean_ctor_get(v_x_1717_, 0); +v_isSharedCheck_1727_ = !lean_is_exclusive(v_x_1717_); +if (v_isSharedCheck_1727_ == 0) +{ +v___x_1721_ = v_x_1717_; +v_isShared_1722_ = v_isSharedCheck_1727_; +goto v_resetjp_1720_; +} +else +{ +lean_inc(v_a_1719_); +lean_dec(v_x_1717_); +v___x_1721_ = lean_box(0); +v_isShared_1722_ = v_isSharedCheck_1727_; +goto v_resetjp_1720_; +} +v_resetjp_1720_: +{ +lean_object* v___x_1724_; +if (v_isShared_1722_ == 0) +{ +v___x_1724_ = v___x_1721_; +goto v_reusejp_1723_; +} +else +{ +lean_object* v_reuseFailAlloc_1726_; +v_reuseFailAlloc_1726_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1726_, 0, v_a_1719_); +v___x_1724_ = v_reuseFailAlloc_1726_; +goto v_reusejp_1723_; +} +v_reusejp_1723_: +{ +lean_object* v___x_1725_; +v___x_1725_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1725_, 0, v___x_1724_); +return v___x_1725_; +} +} +} +else +{ +lean_object* v_a_1728_; uint8_t v___x_1729_; +v_a_1728_ = lean_ctor_get(v_x_1717_, 0); +lean_inc(v_a_1728_); +lean_dec_ref(v_x_1717_); +v___x_1729_ = lean_unbox(v_a_1728_); +if (v___x_1729_ == 0) +{ +lean_object* v___x_1730_; lean_object* v___x_1731_; uint8_t v___x_1732_; lean_object* v___x_1733_; +lean_dec_ref(v___f_1716_); +v___x_1730_ = l_Std_Http_Body_Stream_close(v_requestStream_1714_); +v___x_1731_ = lean_unsigned_to_nat(0u); +v___x_1732_ = lean_unbox(v_a_1728_); +lean_dec(v_a_1728_); +v___x_1733_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1731_, v___x_1732_, v___x_1730_, v___f_1715_); +return v___x_1733_; +} +else +{ +lean_object* v___x_1734_; lean_object* v___x_1735_; +lean_dec(v_a_1728_); +lean_dec_ref(v___f_1715_); +lean_dec_ref(v_requestStream_1714_); +v___x_1734_ = lean_box(0); +v___x_1735_ = lean_apply_2(v___f_1716_, v___x_1734_, lean_box(0)); +return v___x_1735_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5___boxed(lean_object* v_requestStream_1736_, lean_object* v___f_1737_, lean_object* v___f_1738_, lean_object* v_x_1739_, lean_object* v___y_1740_){ +_start: +{ +lean_object* v_res_1741_; +v_res_1741_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5(v_requestStream_1736_, v___f_1737_, v___f_1738_, v_x_1739_); +return v_res_1741_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0(void){ +_start: +{ +lean_object* v___x_1742_; +v___x_1742_ = l_Std_Internal_IO_Async_EAsync_instMonad(lean_box(0)); +return v___x_1742_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6(lean_object* v___y_1758_, lean_object* v___f_1759_, lean_object* v_x_1760_){ +_start: +{ +if (lean_obj_tag(v_x_1760_) == 0) +{ +lean_object* v_a_1762_; lean_object* v___x_1764_; uint8_t v_isShared_1765_; uint8_t v_isSharedCheck_1770_; +lean_dec_ref(v___f_1759_); +lean_dec_ref(v___y_1758_); +v_a_1762_ = lean_ctor_get(v_x_1760_, 0); +v_isSharedCheck_1770_ = !lean_is_exclusive(v_x_1760_); +if (v_isSharedCheck_1770_ == 0) +{ +v___x_1764_ = v_x_1760_; +v_isShared_1765_ = v_isSharedCheck_1770_; +goto v_resetjp_1763_; +} +else +{ +lean_inc(v_a_1762_); +lean_dec(v_x_1760_); +v___x_1764_ = lean_box(0); +v_isShared_1765_ = v_isSharedCheck_1770_; +goto v_resetjp_1763_; +} +v_resetjp_1763_: +{ +lean_object* v___x_1767_; +if (v_isShared_1765_ == 0) +{ +v___x_1767_ = v___x_1764_; +goto v_reusejp_1766_; +} +else +{ +lean_object* v_reuseFailAlloc_1769_; +v_reuseFailAlloc_1769_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1769_, 0, v_a_1762_); +v___x_1767_ = v_reuseFailAlloc_1769_; +goto v_reusejp_1766_; +} +v_reusejp_1766_: +{ +lean_object* v___x_1768_; +v___x_1768_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1768_, 0, v___x_1767_); +return v___x_1768_; +} +} +} +else +{ +lean_object* v_machine_1771_; lean_object* v_requestStream_1772_; lean_object* v_keepAliveTimeout_1773_; lean_object* v_currentTimeout_1774_; lean_object* v_headerTimeout_1775_; lean_object* v_response_1776_; lean_object* v_respStream_1777_; lean_object* v_expectData_1778_; uint8_t v_handlerDispatched_1779_; lean_object* v___x_1780_; lean_object* v___f_1781_; lean_object* v___f_1782_; lean_object* v___x_1783_; lean_object* v___x_1784_; lean_object* v___x_4824__overap_1785_; lean_object* v___x_1786_; lean_object* v___x_1787_; lean_object* v___f_1788_; lean_object* v___f_1789_; lean_object* v___f_1790_; lean_object* v___x_1791_; uint8_t v___x_1792_; lean_object* v___x_1793_; +lean_dec_ref(v_x_1760_); +v_machine_1771_ = lean_ctor_get(v___y_1758_, 0); +lean_inc_ref(v_machine_1771_); +v_requestStream_1772_ = lean_ctor_get(v___y_1758_, 1); +lean_inc_ref_n(v_requestStream_1772_, 3); +v_keepAliveTimeout_1773_ = lean_ctor_get(v___y_1758_, 2); +lean_inc(v_keepAliveTimeout_1773_); +v_currentTimeout_1774_ = lean_ctor_get(v___y_1758_, 3); +lean_inc(v_currentTimeout_1774_); +v_headerTimeout_1775_ = lean_ctor_get(v___y_1758_, 4); +lean_inc(v_headerTimeout_1775_); +v_response_1776_ = lean_ctor_get(v___y_1758_, 5); +lean_inc_ref(v_response_1776_); +v_respStream_1777_ = lean_ctor_get(v___y_1758_, 6); +lean_inc(v_respStream_1777_); +v_expectData_1778_ = lean_ctor_get(v___y_1758_, 7); +lean_inc(v_expectData_1778_); +v_handlerDispatched_1779_ = lean_ctor_get_uint8(v___y_1758_, sizeof(void*)*9 + 1); +lean_dec_ref(v___y_1758_); +v___x_1780_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_1781_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_1782_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_1783_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_1784_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_1784_, 0, lean_box(0)); +lean_closure_set(v___x_1784_, 1, lean_box(0)); +lean_closure_set(v___x_1784_, 2, lean_box(0)); +lean_closure_set(v___x_1784_, 3, v___x_1780_); +lean_closure_set(v___x_1784_, 4, lean_box(0)); +lean_closure_set(v___x_1784_, 5, lean_box(0)); +lean_closure_set(v___x_1784_, 6, v___x_1783_); +lean_closure_set(v___x_1784_, 7, v___f_1759_); +v___x_4824__overap_1785_ = l_Std_Mutex_atomically___redArg(v___x_1780_, v___f_1781_, v___f_1782_, v_requestStream_1772_, v___x_1784_); +v___x_1786_ = lean_apply_1(v___x_4824__overap_1785_, lean_box(0)); +v___x_1787_ = lean_box(v_handlerDispatched_1779_); +v___f_1788_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__2___boxed), 11, 9); +lean_closure_set(v___f_1788_, 0, v_machine_1771_); +lean_closure_set(v___f_1788_, 1, v_requestStream_1772_); +lean_closure_set(v___f_1788_, 2, v_keepAliveTimeout_1773_); +lean_closure_set(v___f_1788_, 3, v_currentTimeout_1774_); +lean_closure_set(v___f_1788_, 4, v_headerTimeout_1775_); +lean_closure_set(v___f_1788_, 5, v_response_1776_); +lean_closure_set(v___f_1788_, 6, v_respStream_1777_); +lean_closure_set(v___f_1788_, 7, v_expectData_1778_); +lean_closure_set(v___f_1788_, 8, v___x_1787_); +lean_inc_ref(v___f_1788_); +v___f_1789_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4___boxed), 3, 1); +lean_closure_set(v___f_1789_, 0, v___f_1788_); +v___f_1790_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5___boxed), 5, 3); +lean_closure_set(v___f_1790_, 0, v_requestStream_1772_); +lean_closure_set(v___f_1790_, 1, v___f_1789_); +lean_closure_set(v___f_1790_, 2, v___f_1788_); +v___x_1791_ = lean_unsigned_to_nat(0u); +v___x_1792_ = 0; +v___x_1793_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1791_, v___x_1792_, v___x_1786_, v___f_1790_); +return v___x_1793_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___boxed(lean_object* v___y_1794_, lean_object* v___f_1795_, lean_object* v_x_1796_, lean_object* v___y_1797_){ +_start: +{ +lean_object* v_res_1798_; +v_res_1798_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6(v___y_1794_, v___f_1795_, v_x_1796_); +return v_res_1798_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7(lean_object* v___y_1799_, lean_object* v_x_1800_){ +_start: +{ +if (lean_obj_tag(v_x_1800_) == 0) +{ +lean_object* v_a_1802_; lean_object* v___x_1804_; uint8_t v_isShared_1805_; uint8_t v_isSharedCheck_1810_; +lean_dec_ref(v___y_1799_); +v_a_1802_ = lean_ctor_get(v_x_1800_, 0); +v_isSharedCheck_1810_ = !lean_is_exclusive(v_x_1800_); +if (v_isSharedCheck_1810_ == 0) +{ +v___x_1804_ = v_x_1800_; +v_isShared_1805_ = v_isSharedCheck_1810_; +goto v_resetjp_1803_; +} +else +{ +lean_inc(v_a_1802_); +lean_dec(v_x_1800_); +v___x_1804_ = lean_box(0); +v_isShared_1805_ = v_isSharedCheck_1810_; +goto v_resetjp_1803_; +} +v_resetjp_1803_: +{ +lean_object* v___x_1807_; +if (v_isShared_1805_ == 0) +{ +v___x_1807_ = v___x_1804_; +goto v_reusejp_1806_; +} +else +{ +lean_object* v_reuseFailAlloc_1809_; +v_reuseFailAlloc_1809_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1809_, 0, v_a_1802_); +v___x_1807_ = v_reuseFailAlloc_1809_; +goto v_reusejp_1806_; +} +v_reusejp_1806_: +{ +lean_object* v___x_1808_; +v___x_1808_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1808_, 0, v___x_1807_); +return v___x_1808_; +} +} +} +else +{ +lean_object* v___x_1812_; uint8_t v_isShared_1813_; uint8_t v_isSharedCheck_1819_; +v_isSharedCheck_1819_ = !lean_is_exclusive(v_x_1800_); +if (v_isSharedCheck_1819_ == 0) +{ +lean_object* v_unused_1820_; +v_unused_1820_ = lean_ctor_get(v_x_1800_, 0); +lean_dec(v_unused_1820_); +v___x_1812_ = v_x_1800_; +v_isShared_1813_ = v_isSharedCheck_1819_; +goto v_resetjp_1811_; +} +else +{ +lean_dec(v_x_1800_); +v___x_1812_ = lean_box(0); +v_isShared_1813_ = v_isSharedCheck_1819_; +goto v_resetjp_1811_; +} +v_resetjp_1811_: +{ +lean_object* v___x_1814_; lean_object* v___x_1816_; +v___x_1814_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1814_, 0, v___y_1799_); +if (v_isShared_1813_ == 0) +{ +lean_ctor_set(v___x_1812_, 0, v___x_1814_); +v___x_1816_ = v___x_1812_; +goto v_reusejp_1815_; +} +else +{ +lean_object* v_reuseFailAlloc_1818_; +v_reuseFailAlloc_1818_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1818_, 0, v___x_1814_); +v___x_1816_ = v_reuseFailAlloc_1818_; +goto v_reusejp_1815_; +} +v_reusejp_1815_: +{ +lean_object* v___x_1817_; +v___x_1817_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1817_, 0, v___x_1816_); +return v___x_1817_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7___boxed(lean_object* v___y_1821_, lean_object* v_x_1822_, lean_object* v___y_1823_){ +_start: +{ +lean_object* v_res_1824_; +v_res_1824_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7(v___y_1821_, v_x_1822_); +return v_res_1824_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8(lean_object* v_requestStream_1825_, lean_object* v___f_1826_, lean_object* v___y_1827_, lean_object* v_x_1828_){ +_start: +{ +if (lean_obj_tag(v_x_1828_) == 0) +{ +lean_object* v_a_1830_; lean_object* v___x_1832_; uint8_t v_isShared_1833_; uint8_t v_isSharedCheck_1838_; +lean_dec_ref(v___y_1827_); +lean_dec_ref(v___f_1826_); +lean_dec_ref(v_requestStream_1825_); +v_a_1830_ = lean_ctor_get(v_x_1828_, 0); +v_isSharedCheck_1838_ = !lean_is_exclusive(v_x_1828_); +if (v_isSharedCheck_1838_ == 0) +{ +v___x_1832_ = v_x_1828_; +v_isShared_1833_ = v_isSharedCheck_1838_; +goto v_resetjp_1831_; +} +else +{ +lean_inc(v_a_1830_); +lean_dec(v_x_1828_); +v___x_1832_ = lean_box(0); +v_isShared_1833_ = v_isSharedCheck_1838_; +goto v_resetjp_1831_; +} +v_resetjp_1831_: +{ +lean_object* v___x_1835_; +if (v_isShared_1833_ == 0) +{ +v___x_1835_ = v___x_1832_; +goto v_reusejp_1834_; +} +else +{ +lean_object* v_reuseFailAlloc_1837_; +v_reuseFailAlloc_1837_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1837_, 0, v_a_1830_); +v___x_1835_ = v_reuseFailAlloc_1837_; +goto v_reusejp_1834_; +} +v_reusejp_1834_: +{ +lean_object* v___x_1836_; +v___x_1836_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1836_, 0, v___x_1835_); +return v___x_1836_; +} +} +} +else +{ +lean_object* v_a_1839_; lean_object* v___x_1841_; uint8_t v_isShared_1842_; uint8_t v_isSharedCheck_1853_; +v_a_1839_ = lean_ctor_get(v_x_1828_, 0); +v_isSharedCheck_1853_ = !lean_is_exclusive(v_x_1828_); +if (v_isSharedCheck_1853_ == 0) +{ +v___x_1841_ = v_x_1828_; +v_isShared_1842_ = v_isSharedCheck_1853_; +goto v_resetjp_1840_; +} +else +{ +lean_inc(v_a_1839_); +lean_dec(v_x_1828_); +v___x_1841_ = lean_box(0); +v_isShared_1842_ = v_isSharedCheck_1853_; +goto v_resetjp_1840_; +} +v_resetjp_1840_: +{ +uint8_t v___x_1843_; +v___x_1843_ = lean_unbox(v_a_1839_); +if (v___x_1843_ == 0) +{ +lean_object* v___x_1844_; lean_object* v___x_1845_; uint8_t v___x_1846_; lean_object* v___x_1847_; +lean_del_object(v___x_1841_); +lean_dec_ref(v___y_1827_); +v___x_1844_ = l_Std_Http_Body_Stream_close(v_requestStream_1825_); +v___x_1845_ = lean_unsigned_to_nat(0u); +v___x_1846_ = lean_unbox(v_a_1839_); +lean_dec(v_a_1839_); +v___x_1847_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1845_, v___x_1846_, v___x_1844_, v___f_1826_); +return v___x_1847_; +} +else +{ +lean_object* v___x_1848_; lean_object* v___x_1850_; +lean_dec(v_a_1839_); +lean_dec_ref(v___f_1826_); +lean_dec_ref(v_requestStream_1825_); +v___x_1848_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1848_, 0, v___y_1827_); +if (v_isShared_1842_ == 0) +{ +lean_ctor_set(v___x_1841_, 0, v___x_1848_); +v___x_1850_ = v___x_1841_; +goto v_reusejp_1849_; +} +else +{ +lean_object* v_reuseFailAlloc_1852_; +v_reuseFailAlloc_1852_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1852_, 0, v___x_1848_); +v___x_1850_ = v_reuseFailAlloc_1852_; +goto v_reusejp_1849_; +} +v_reusejp_1849_: +{ +lean_object* v___x_1851_; +v___x_1851_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1851_, 0, v___x_1850_); +return v___x_1851_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8___boxed(lean_object* v_requestStream_1854_, lean_object* v___f_1855_, lean_object* v___y_1856_, lean_object* v_x_1857_, lean_object* v___y_1858_){ +_start: +{ +lean_object* v_res_1859_; +v_res_1859_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8(v_requestStream_1854_, v___f_1855_, v___y_1856_, v_x_1857_); +return v_res_1859_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9(lean_object* v_config_1860_, lean_object* v_machine_1861_, lean_object* v_a_1862_, uint8_t v_requiresData_1863_, lean_object* v_expectData_1864_, lean_object* v_pendingHead_1865_, lean_object* v_x_1866_){ +_start: +{ +if (lean_obj_tag(v_x_1866_) == 0) +{ +lean_object* v_a_1868_; lean_object* v___x_1870_; uint8_t v_isShared_1871_; uint8_t v_isSharedCheck_1876_; +lean_dec(v_pendingHead_1865_); +lean_dec(v_expectData_1864_); +lean_dec_ref(v_a_1862_); +lean_dec_ref(v_machine_1861_); +v_a_1868_ = lean_ctor_get(v_x_1866_, 0); +v_isSharedCheck_1876_ = !lean_is_exclusive(v_x_1866_); +if (v_isSharedCheck_1876_ == 0) +{ +v___x_1870_ = v_x_1866_; +v_isShared_1871_ = v_isSharedCheck_1876_; +goto v_resetjp_1869_; +} +else +{ +lean_inc(v_a_1868_); +lean_dec(v_x_1866_); +v___x_1870_ = lean_box(0); +v_isShared_1871_ = v_isSharedCheck_1876_; +goto v_resetjp_1869_; +} +v_resetjp_1869_: +{ +lean_object* v___x_1873_; +if (v_isShared_1871_ == 0) +{ +v___x_1873_ = v___x_1870_; +goto v_reusejp_1872_; +} +else +{ +lean_object* v_reuseFailAlloc_1875_; +v_reuseFailAlloc_1875_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1875_, 0, v_a_1868_); +v___x_1873_ = v_reuseFailAlloc_1875_; +goto v_reusejp_1872_; +} +v_reusejp_1872_: +{ +lean_object* v___x_1874_; +v___x_1874_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1874_, 0, v___x_1873_); +return v___x_1874_; +} +} +} +else +{ +lean_object* v_a_1877_; lean_object* v___x_1879_; uint8_t v_isShared_1880_; uint8_t v_isSharedCheck_1891_; +v_a_1877_ = lean_ctor_get(v_x_1866_, 0); +v_isSharedCheck_1891_ = !lean_is_exclusive(v_x_1866_); +if (v_isSharedCheck_1891_ == 0) +{ +v___x_1879_ = v_x_1866_; +v_isShared_1880_ = v_isSharedCheck_1891_; +goto v_resetjp_1878_; +} +else +{ +lean_inc(v_a_1877_); +lean_dec(v_x_1866_); +v___x_1879_ = lean_box(0); +v_isShared_1880_ = v_isSharedCheck_1891_; +goto v_resetjp_1878_; +} +v_resetjp_1878_: +{ +lean_object* v_keepAliveTimeout_1881_; lean_object* v___x_1882_; lean_object* v___x_1883_; uint8_t v___x_1884_; lean_object* v___x_1885_; lean_object* v___x_1886_; lean_object* v___x_1888_; +v_keepAliveTimeout_1881_ = lean_ctor_get(v_config_1860_, 5); +lean_inc_n(v_keepAliveTimeout_1881_, 2); +v___x_1882_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1882_, 0, v_keepAliveTimeout_1881_); +v___x_1883_ = lean_box(0); +v___x_1884_ = 0; +v___x_1885_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_1885_, 0, v_machine_1861_); +lean_ctor_set(v___x_1885_, 1, v_a_1862_); +lean_ctor_set(v___x_1885_, 2, v___x_1882_); +lean_ctor_set(v___x_1885_, 3, v_keepAliveTimeout_1881_); +lean_ctor_set(v___x_1885_, 4, v___x_1883_); +lean_ctor_set(v___x_1885_, 5, v_a_1877_); +lean_ctor_set(v___x_1885_, 6, v___x_1883_); +lean_ctor_set(v___x_1885_, 7, v_expectData_1864_); +lean_ctor_set(v___x_1885_, 8, v_pendingHead_1865_); +lean_ctor_set_uint8(v___x_1885_, sizeof(void*)*9, v_requiresData_1863_); +lean_ctor_set_uint8(v___x_1885_, sizeof(void*)*9 + 1, v___x_1884_); +v___x_1886_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1886_, 0, v___x_1885_); +if (v_isShared_1880_ == 0) +{ +lean_ctor_set(v___x_1879_, 0, v___x_1886_); +v___x_1888_ = v___x_1879_; +goto v_reusejp_1887_; +} +else +{ +lean_object* v_reuseFailAlloc_1890_; +v_reuseFailAlloc_1890_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1890_, 0, v___x_1886_); +v___x_1888_ = v_reuseFailAlloc_1890_; +goto v_reusejp_1887_; +} +v_reusejp_1887_: +{ +lean_object* v___x_1889_; +v___x_1889_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1889_, 0, v___x_1888_); +return v___x_1889_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9___boxed(lean_object* v_config_1892_, lean_object* v_machine_1893_, lean_object* v_a_1894_, lean_object* v_requiresData_1895_, lean_object* v_expectData_1896_, lean_object* v_pendingHead_1897_, lean_object* v_x_1898_, lean_object* v___y_1899_){ +_start: +{ +uint8_t v_requiresData_boxed_1900_; lean_object* v_res_1901_; +v_requiresData_boxed_1900_ = lean_unbox(v_requiresData_1895_); +v_res_1901_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9(v_config_1892_, v_machine_1893_, v_a_1894_, v_requiresData_boxed_1900_, v_expectData_1896_, v_pendingHead_1897_, v_x_1898_); +lean_dec_ref(v_config_1892_); +return v_res_1901_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10(lean_object* v_config_1902_, lean_object* v_machine_1903_, uint8_t v_requiresData_1904_, lean_object* v_expectData_1905_, lean_object* v_pendingHead_1906_, lean_object* v_x_1907_){ +_start: +{ +if (lean_obj_tag(v_x_1907_) == 0) +{ +lean_object* v_a_1909_; lean_object* v___x_1911_; uint8_t v_isShared_1912_; uint8_t v_isSharedCheck_1917_; +lean_dec(v_pendingHead_1906_); +lean_dec(v_expectData_1905_); +lean_dec_ref(v_machine_1903_); +lean_dec_ref(v_config_1902_); +v_a_1909_ = lean_ctor_get(v_x_1907_, 0); +v_isSharedCheck_1917_ = !lean_is_exclusive(v_x_1907_); +if (v_isSharedCheck_1917_ == 0) +{ +v___x_1911_ = v_x_1907_; +v_isShared_1912_ = v_isSharedCheck_1917_; +goto v_resetjp_1910_; +} +else +{ +lean_inc(v_a_1909_); +lean_dec(v_x_1907_); +v___x_1911_ = lean_box(0); +v_isShared_1912_ = v_isSharedCheck_1917_; +goto v_resetjp_1910_; +} +v_resetjp_1910_: +{ +lean_object* v___x_1914_; +if (v_isShared_1912_ == 0) +{ +v___x_1914_ = v___x_1911_; +goto v_reusejp_1913_; +} +else +{ +lean_object* v_reuseFailAlloc_1916_; +v_reuseFailAlloc_1916_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1916_, 0, v_a_1909_); +v___x_1914_ = v_reuseFailAlloc_1916_; +goto v_reusejp_1913_; +} +v_reusejp_1913_: +{ +lean_object* v___x_1915_; +v___x_1915_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1915_, 0, v___x_1914_); +return v___x_1915_; +} +} +} +else +{ +lean_object* v_a_1918_; lean_object* v___x_1920_; uint8_t v_isShared_1921_; uint8_t v_isSharedCheck_1933_; +v_a_1918_ = lean_ctor_get(v_x_1907_, 0); +v_isSharedCheck_1933_ = !lean_is_exclusive(v_x_1907_); +if (v_isSharedCheck_1933_ == 0) +{ +v___x_1920_ = v_x_1907_; +v_isShared_1921_ = v_isSharedCheck_1933_; +goto v_resetjp_1919_; +} +else +{ +lean_inc(v_a_1918_); +lean_dec(v_x_1907_); +v___x_1920_ = lean_box(0); +v_isShared_1921_ = v_isSharedCheck_1933_; +goto v_resetjp_1919_; +} +v_resetjp_1919_: +{ +lean_object* v___x_1922_; lean_object* v___x_1923_; lean_object* v___x_1924_; lean_object* v___f_1925_; lean_object* v___x_1927_; +v___x_1922_ = lean_box(0); +v___x_1923_ = l_Std_CloseableChannel_new___redArg(v___x_1922_); +v___x_1924_ = lean_box(v_requiresData_1904_); +v___f_1925_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__9___boxed), 8, 6); +lean_closure_set(v___f_1925_, 0, v_config_1902_); +lean_closure_set(v___f_1925_, 1, v_machine_1903_); +lean_closure_set(v___f_1925_, 2, v_a_1918_); +lean_closure_set(v___f_1925_, 3, v___x_1924_); +lean_closure_set(v___f_1925_, 4, v_expectData_1905_); +lean_closure_set(v___f_1925_, 5, v_pendingHead_1906_); +if (v_isShared_1921_ == 0) +{ +lean_ctor_set(v___x_1920_, 0, v___x_1923_); +v___x_1927_ = v___x_1920_; +goto v_reusejp_1926_; +} +else +{ +lean_object* v_reuseFailAlloc_1932_; +v_reuseFailAlloc_1932_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1932_, 0, v___x_1923_); +v___x_1927_ = v_reuseFailAlloc_1932_; +goto v_reusejp_1926_; +} +v_reusejp_1926_: +{ +lean_object* v___x_1928_; lean_object* v___x_1929_; uint8_t v___x_1930_; lean_object* v___x_1931_; +v___x_1928_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1928_, 0, v___x_1927_); +v___x_1929_ = lean_unsigned_to_nat(0u); +v___x_1930_ = 0; +v___x_1931_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1929_, v___x_1930_, v___x_1928_, v___f_1925_); +return v___x_1931_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10___boxed(lean_object* v_config_1934_, lean_object* v_machine_1935_, lean_object* v_requiresData_1936_, lean_object* v_expectData_1937_, lean_object* v_pendingHead_1938_, lean_object* v_x_1939_, lean_object* v___y_1940_){ +_start: +{ +uint8_t v_requiresData_boxed_1941_; lean_object* v_res_1942_; +v_requiresData_boxed_1941_ = lean_unbox(v_requiresData_1936_); +v_res_1942_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10(v_config_1934_, v_machine_1935_, v_requiresData_boxed_1941_, v_expectData_1937_, v_pendingHead_1938_, v_x_1939_); +return v_res_1942_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11(lean_object* v___f_1943_, lean_object* v_____r_1944_){ +_start: +{ +lean_object* v___x_1946_; lean_object* v___x_1947_; uint8_t v___x_1948_; lean_object* v___x_1949_; +v___x_1946_ = l_Std_Http_Body_mkStream(); +v___x_1947_ = lean_unsigned_to_nat(0u); +v___x_1948_ = 0; +v___x_1949_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1947_, v___x_1948_, v___x_1946_, v___f_1943_); +return v___x_1949_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11___boxed(lean_object* v___f_1950_, lean_object* v_____r_1951_, lean_object* v___y_1952_){ +_start: +{ +lean_object* v_res_1953_; +v_res_1953_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11(v___f_1950_, v_____r_1951_); +return v_res_1953_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13(lean_object* v_close_1954_, lean_object* v_val_1955_, lean_object* v___f_1956_, lean_object* v___f_1957_, lean_object* v_x_1958_){ +_start: +{ +if (lean_obj_tag(v_x_1958_) == 0) +{ +lean_object* v_a_1960_; lean_object* v___x_1962_; uint8_t v_isShared_1963_; uint8_t v_isSharedCheck_1968_; +lean_dec_ref(v___f_1957_); +lean_dec_ref(v___f_1956_); +lean_dec(v_val_1955_); +lean_dec_ref(v_close_1954_); +v_a_1960_ = lean_ctor_get(v_x_1958_, 0); +v_isSharedCheck_1968_ = !lean_is_exclusive(v_x_1958_); +if (v_isSharedCheck_1968_ == 0) +{ +v___x_1962_ = v_x_1958_; +v_isShared_1963_ = v_isSharedCheck_1968_; +goto v_resetjp_1961_; +} +else +{ +lean_inc(v_a_1960_); +lean_dec(v_x_1958_); +v___x_1962_ = lean_box(0); +v_isShared_1963_ = v_isSharedCheck_1968_; +goto v_resetjp_1961_; +} +v_resetjp_1961_: +{ +lean_object* v___x_1965_; +if (v_isShared_1963_ == 0) +{ +v___x_1965_ = v___x_1962_; +goto v_reusejp_1964_; +} +else +{ +lean_object* v_reuseFailAlloc_1967_; +v_reuseFailAlloc_1967_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1967_, 0, v_a_1960_); +v___x_1965_ = v_reuseFailAlloc_1967_; +goto v_reusejp_1964_; +} +v_reusejp_1964_: +{ +lean_object* v___x_1966_; +v___x_1966_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1966_, 0, v___x_1965_); +return v___x_1966_; +} +} +} +else +{ +lean_object* v_a_1969_; uint8_t v___x_1970_; +v_a_1969_ = lean_ctor_get(v_x_1958_, 0); +lean_inc(v_a_1969_); +lean_dec_ref(v_x_1958_); +v___x_1970_ = lean_unbox(v_a_1969_); +if (v___x_1970_ == 0) +{ +lean_object* v___x_1971_; lean_object* v___x_1972_; uint8_t v___x_1973_; lean_object* v___x_1974_; +lean_dec_ref(v___f_1957_); +v___x_1971_ = lean_apply_2(v_close_1954_, v_val_1955_, lean_box(0)); +v___x_1972_ = lean_unsigned_to_nat(0u); +v___x_1973_ = lean_unbox(v_a_1969_); +lean_dec(v_a_1969_); +v___x_1974_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1972_, v___x_1973_, v___x_1971_, v___f_1956_); +return v___x_1974_; +} +else +{ +lean_object* v___x_1975_; lean_object* v___x_1976_; +lean_dec(v_a_1969_); +lean_dec_ref(v___f_1956_); +lean_dec(v_val_1955_); +lean_dec_ref(v_close_1954_); +v___x_1975_ = lean_box(0); +v___x_1976_ = lean_apply_2(v___f_1957_, v___x_1975_, lean_box(0)); +return v___x_1976_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13___boxed(lean_object* v_close_1977_, lean_object* v_val_1978_, lean_object* v___f_1979_, lean_object* v___f_1980_, lean_object* v_x_1981_, lean_object* v___y_1982_){ +_start: +{ +lean_object* v_res_1983_; +v_res_1983_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13(v_close_1977_, v_val_1978_, v___f_1979_, v___f_1980_, v_x_1981_); +return v_res_1983_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12(lean_object* v_respStream_1984_, lean_object* v_inst_1985_, lean_object* v___f_1986_, lean_object* v___f_1987_, lean_object* v_____r_1988_){ +_start: +{ +if (lean_obj_tag(v_respStream_1984_) == 1) +{ +lean_object* v_val_1990_; lean_object* v_close_1991_; lean_object* v_isClosed_1992_; lean_object* v___x_1993_; lean_object* v___f_1994_; lean_object* v___x_1995_; uint8_t v___x_1996_; lean_object* v___x_1997_; +v_val_1990_ = lean_ctor_get(v_respStream_1984_, 0); +lean_inc_n(v_val_1990_, 2); +lean_dec_ref(v_respStream_1984_); +v_close_1991_ = lean_ctor_get(v_inst_1985_, 1); +lean_inc_ref(v_close_1991_); +v_isClosed_1992_ = lean_ctor_get(v_inst_1985_, 2); +lean_inc_ref(v_isClosed_1992_); +lean_dec_ref(v_inst_1985_); +v___x_1993_ = lean_apply_2(v_isClosed_1992_, v_val_1990_, lean_box(0)); +v___f_1994_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__13___boxed), 6, 4); +lean_closure_set(v___f_1994_, 0, v_close_1991_); +lean_closure_set(v___f_1994_, 1, v_val_1990_); +lean_closure_set(v___f_1994_, 2, v___f_1986_); +lean_closure_set(v___f_1994_, 3, v___f_1987_); +v___x_1995_ = lean_unsigned_to_nat(0u); +v___x_1996_ = 0; +v___x_1997_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1995_, v___x_1996_, v___x_1993_, v___f_1994_); +return v___x_1997_; +} +else +{ +lean_object* v___x_1998_; lean_object* v___x_1999_; +lean_dec_ref(v___f_1986_); +lean_dec_ref(v_inst_1985_); +lean_dec(v_respStream_1984_); +v___x_1998_ = lean_box(0); +v___x_1999_ = lean_apply_2(v___f_1987_, v___x_1998_, lean_box(0)); +return v___x_1999_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12___boxed(lean_object* v_respStream_2000_, lean_object* v_inst_2001_, lean_object* v___f_2002_, lean_object* v___f_2003_, lean_object* v_____r_2004_, lean_object* v___y_2005_){ +_start: +{ +lean_object* v_res_2006_; +v_res_2006_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12(v_respStream_2000_, v_inst_2001_, v___f_2002_, v___f_2003_, v_____r_2004_); +return v_res_2006_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16(lean_object* v_requestStream_2007_, lean_object* v_keepAliveTimeout_2008_, lean_object* v_currentTimeout_2009_, lean_object* v_headerTimeout_2010_, lean_object* v_response_2011_, lean_object* v_respStream_2012_, uint8_t v_requiresData_2013_, lean_object* v_expectData_2014_, uint8_t v_handlerDispatched_2015_, lean_object* v_pendingHead_2016_, lean_object* v_x_2017_){ +_start: +{ +if (lean_obj_tag(v_x_2017_) == 0) +{ +lean_object* v_a_2019_; lean_object* v___x_2021_; uint8_t v_isShared_2022_; uint8_t v_isSharedCheck_2027_; +lean_dec(v_pendingHead_2016_); +lean_dec(v_expectData_2014_); +lean_dec(v_respStream_2012_); +lean_dec_ref(v_response_2011_); +lean_dec(v_headerTimeout_2010_); +lean_dec(v_currentTimeout_2009_); +lean_dec(v_keepAliveTimeout_2008_); +lean_dec_ref(v_requestStream_2007_); +v_a_2019_ = lean_ctor_get(v_x_2017_, 0); +v_isSharedCheck_2027_ = !lean_is_exclusive(v_x_2017_); +if (v_isSharedCheck_2027_ == 0) +{ +v___x_2021_ = v_x_2017_; +v_isShared_2022_ = v_isSharedCheck_2027_; +goto v_resetjp_2020_; +} +else +{ +lean_inc(v_a_2019_); +lean_dec(v_x_2017_); +v___x_2021_ = lean_box(0); +v_isShared_2022_ = v_isSharedCheck_2027_; +goto v_resetjp_2020_; +} +v_resetjp_2020_: +{ +lean_object* v___x_2024_; +if (v_isShared_2022_ == 0) +{ +v___x_2024_ = v___x_2021_; +goto v_reusejp_2023_; +} +else +{ +lean_object* v_reuseFailAlloc_2026_; +v_reuseFailAlloc_2026_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2026_, 0, v_a_2019_); +v___x_2024_ = v_reuseFailAlloc_2026_; +goto v_reusejp_2023_; +} +v_reusejp_2023_: +{ +lean_object* v___x_2025_; +v___x_2025_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2025_, 0, v___x_2024_); +return v___x_2025_; +} +} +} +else +{ +lean_object* v_a_2028_; lean_object* v___x_2030_; uint8_t v_isShared_2031_; uint8_t v_isSharedCheck_2049_; +v_a_2028_ = lean_ctor_get(v_x_2017_, 0); +v_isSharedCheck_2049_ = !lean_is_exclusive(v_x_2017_); +if (v_isSharedCheck_2049_ == 0) +{ +v___x_2030_ = v_x_2017_; +v_isShared_2031_ = v_isSharedCheck_2049_; +goto v_resetjp_2029_; +} +else +{ +lean_inc(v_a_2028_); +lean_dec(v_x_2017_); +v___x_2030_ = lean_box(0); +v_isShared_2031_ = v_isSharedCheck_2049_; +goto v_resetjp_2029_; +} +v_resetjp_2029_: +{ +lean_object* v_snd_2032_; uint8_t v___x_2033_; +v_snd_2032_ = lean_ctor_get(v_a_2028_, 1); +v___x_2033_ = lean_unbox(v_snd_2032_); +if (v___x_2033_ == 0) +{ +lean_object* v_fst_2034_; lean_object* v___x_2035_; lean_object* v___x_2036_; lean_object* v___x_2038_; +v_fst_2034_ = lean_ctor_get(v_a_2028_, 0); +lean_inc(v_fst_2034_); +lean_dec(v_a_2028_); +v___x_2035_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2035_, 0, v_fst_2034_); +lean_ctor_set(v___x_2035_, 1, v_requestStream_2007_); +lean_ctor_set(v___x_2035_, 2, v_keepAliveTimeout_2008_); +lean_ctor_set(v___x_2035_, 3, v_currentTimeout_2009_); +lean_ctor_set(v___x_2035_, 4, v_headerTimeout_2010_); +lean_ctor_set(v___x_2035_, 5, v_response_2011_); +lean_ctor_set(v___x_2035_, 6, v_respStream_2012_); +lean_ctor_set(v___x_2035_, 7, v_expectData_2014_); +lean_ctor_set(v___x_2035_, 8, v_pendingHead_2016_); +lean_ctor_set_uint8(v___x_2035_, sizeof(void*)*9, v_requiresData_2013_); +lean_ctor_set_uint8(v___x_2035_, sizeof(void*)*9 + 1, v_handlerDispatched_2015_); +v___x_2036_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2036_, 0, v___x_2035_); +if (v_isShared_2031_ == 0) +{ +lean_ctor_set(v___x_2030_, 0, v___x_2036_); +v___x_2038_ = v___x_2030_; +goto v_reusejp_2037_; +} +else +{ +lean_object* v_reuseFailAlloc_2040_; +v_reuseFailAlloc_2040_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2040_, 0, v___x_2036_); +v___x_2038_ = v_reuseFailAlloc_2040_; +goto v_reusejp_2037_; +} +v_reusejp_2037_: +{ +lean_object* v___x_2039_; +v___x_2039_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2039_, 0, v___x_2038_); +return v___x_2039_; +} +} +else +{ +lean_object* v_fst_2041_; lean_object* v___x_2042_; lean_object* v___x_2043_; lean_object* v___x_2044_; lean_object* v___x_2046_; +lean_dec(v_pendingHead_2016_); +v_fst_2041_ = lean_ctor_get(v_a_2028_, 0); +lean_inc(v_fst_2041_); +lean_dec(v_a_2028_); +v___x_2042_ = lean_box(0); +v___x_2043_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2043_, 0, v_fst_2041_); +lean_ctor_set(v___x_2043_, 1, v_requestStream_2007_); +lean_ctor_set(v___x_2043_, 2, v_keepAliveTimeout_2008_); +lean_ctor_set(v___x_2043_, 3, v_currentTimeout_2009_); +lean_ctor_set(v___x_2043_, 4, v_headerTimeout_2010_); +lean_ctor_set(v___x_2043_, 5, v_response_2011_); +lean_ctor_set(v___x_2043_, 6, v_respStream_2012_); +lean_ctor_set(v___x_2043_, 7, v_expectData_2014_); +lean_ctor_set(v___x_2043_, 8, v___x_2042_); +lean_ctor_set_uint8(v___x_2043_, sizeof(void*)*9, v_requiresData_2013_); +lean_ctor_set_uint8(v___x_2043_, sizeof(void*)*9 + 1, v_handlerDispatched_2015_); +v___x_2044_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2044_, 0, v___x_2043_); +if (v_isShared_2031_ == 0) +{ +lean_ctor_set(v___x_2030_, 0, v___x_2044_); +v___x_2046_ = v___x_2030_; +goto v_reusejp_2045_; +} +else +{ +lean_object* v_reuseFailAlloc_2048_; +v_reuseFailAlloc_2048_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2048_, 0, v___x_2044_); +v___x_2046_ = v_reuseFailAlloc_2048_; +goto v_reusejp_2045_; +} +v_reusejp_2045_: +{ +lean_object* v___x_2047_; +v___x_2047_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2047_, 0, v___x_2046_); +return v___x_2047_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16___boxed(lean_object* v_requestStream_2050_, lean_object* v_keepAliveTimeout_2051_, lean_object* v_currentTimeout_2052_, lean_object* v_headerTimeout_2053_, lean_object* v_response_2054_, lean_object* v_respStream_2055_, lean_object* v_requiresData_2056_, lean_object* v_expectData_2057_, lean_object* v_handlerDispatched_2058_, lean_object* v_pendingHead_2059_, lean_object* v_x_2060_, lean_object* v___y_2061_){ +_start: +{ +uint8_t v_requiresData_boxed_2062_; uint8_t v_handlerDispatched_boxed_2063_; lean_object* v_res_2064_; +v_requiresData_boxed_2062_ = lean_unbox(v_requiresData_2056_); +v_handlerDispatched_boxed_2063_ = lean_unbox(v_handlerDispatched_2058_); +v_res_2064_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16(v_requestStream_2050_, v_keepAliveTimeout_2051_, v_currentTimeout_2052_, v_headerTimeout_2053_, v_response_2054_, v_respStream_2055_, v_requiresData_boxed_2062_, v_expectData_2057_, v_handlerDispatched_boxed_2063_, v_pendingHead_2059_, v_x_2060_); +return v_res_2064_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14(lean_object* v_config_2077_, lean_object* v_inst_2078_, lean_object* v___f_2079_, lean_object* v_handler_2080_, lean_object* v___f_2081_, lean_object* v___f_2082_, lean_object* v_inst_2083_, lean_object* v_connectionContext_2084_, lean_object* v_a_2085_, lean_object* v_x_2086_, lean_object* v___y_2087_){ +_start: +{ +switch(lean_obj_tag(v_a_2085_)) +{ +case 0: +{ +lean_object* v_head_2089_; lean_object* v___x_2091_; uint8_t v_isShared_2092_; uint8_t v_isSharedCheck_2132_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec_ref(v___f_2081_); +lean_dec(v_handler_2080_); +lean_dec_ref(v___f_2079_); +lean_dec_ref(v_inst_2078_); +v_head_2089_ = lean_ctor_get(v_a_2085_, 0); +v_isSharedCheck_2132_ = !lean_is_exclusive(v_a_2085_); +if (v_isSharedCheck_2132_ == 0) +{ +v___x_2091_ = v_a_2085_; +v_isShared_2092_ = v_isSharedCheck_2132_; +goto v_resetjp_2090_; +} +else +{ +lean_inc(v_head_2089_); +lean_dec(v_a_2085_); +v___x_2091_ = lean_box(0); +v_isShared_2092_ = v_isSharedCheck_2132_; +goto v_resetjp_2090_; +} +v_resetjp_2090_: +{ +lean_object* v_machine_2093_; lean_object* v_requestStream_2094_; lean_object* v_response_2095_; lean_object* v_respStream_2096_; uint8_t v_requiresData_2097_; lean_object* v_expectData_2098_; uint8_t v_handlerDispatched_2099_; lean_object* v___x_2101_; uint8_t v_isShared_2102_; uint8_t v_isSharedCheck_2127_; +v_machine_2093_ = lean_ctor_get(v___y_2087_, 0); +v_requestStream_2094_ = lean_ctor_get(v___y_2087_, 1); +v_response_2095_ = lean_ctor_get(v___y_2087_, 5); +v_respStream_2096_ = lean_ctor_get(v___y_2087_, 6); +v_requiresData_2097_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9); +v_expectData_2098_ = lean_ctor_get(v___y_2087_, 7); +v_handlerDispatched_2099_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9 + 1); +v_isSharedCheck_2127_ = !lean_is_exclusive(v___y_2087_); +if (v_isSharedCheck_2127_ == 0) +{ +lean_object* v_unused_2128_; lean_object* v_unused_2129_; lean_object* v_unused_2130_; lean_object* v_unused_2131_; +v_unused_2128_ = lean_ctor_get(v___y_2087_, 8); +lean_dec(v_unused_2128_); +v_unused_2129_ = lean_ctor_get(v___y_2087_, 4); +lean_dec(v_unused_2129_); +v_unused_2130_ = lean_ctor_get(v___y_2087_, 3); +lean_dec(v_unused_2130_); +v_unused_2131_ = lean_ctor_get(v___y_2087_, 2); +lean_dec(v_unused_2131_); +v___x_2101_ = v___y_2087_; +v_isShared_2102_ = v_isSharedCheck_2127_; +goto v_resetjp_2100_; +} +else +{ +lean_inc(v_expectData_2098_); +lean_inc(v_respStream_2096_); +lean_inc(v_response_2095_); +lean_inc(v_requestStream_2094_); +lean_inc(v_machine_2093_); +lean_dec(v___y_2087_); +v___x_2101_ = lean_box(0); +v_isShared_2102_ = v_isSharedCheck_2127_; +goto v_resetjp_2100_; +} +v_resetjp_2100_: +{ +lean_object* v_lingeringTimeout_2103_; lean_object* v___x_2104_; lean_object* v___x_2106_; +v_lingeringTimeout_2103_ = lean_ctor_get(v_config_2077_, 4); +lean_inc(v_lingeringTimeout_2103_); +lean_dec_ref(v_config_2077_); +v___x_2104_ = lean_box(0); +lean_inc(v_head_2089_); +if (v_isShared_2092_ == 0) +{ +lean_ctor_set_tag(v___x_2091_, 1); +v___x_2106_ = v___x_2091_; +goto v_reusejp_2105_; +} +else +{ +lean_object* v_reuseFailAlloc_2126_; +v_reuseFailAlloc_2126_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2126_, 0, v_head_2089_); +v___x_2106_ = v_reuseFailAlloc_2126_; +goto v_reusejp_2105_; +} +v_reusejp_2105_: +{ +lean_object* v___x_2108_; +lean_inc_ref(v_requestStream_2094_); +if (v_isShared_2102_ == 0) +{ +lean_ctor_set(v___x_2101_, 8, v___x_2106_); +lean_ctor_set(v___x_2101_, 4, v___x_2104_); +lean_ctor_set(v___x_2101_, 3, v_lingeringTimeout_2103_); +lean_ctor_set(v___x_2101_, 2, v___x_2104_); +v___x_2108_ = v___x_2101_; +goto v_reusejp_2107_; +} +else +{ +lean_object* v_reuseFailAlloc_2125_; +v_reuseFailAlloc_2125_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2125_, 0, v_machine_2093_); +lean_ctor_set(v_reuseFailAlloc_2125_, 1, v_requestStream_2094_); +lean_ctor_set(v_reuseFailAlloc_2125_, 2, v___x_2104_); +lean_ctor_set(v_reuseFailAlloc_2125_, 3, v_lingeringTimeout_2103_); +lean_ctor_set(v_reuseFailAlloc_2125_, 4, v___x_2104_); +lean_ctor_set(v_reuseFailAlloc_2125_, 5, v_response_2095_); +lean_ctor_set(v_reuseFailAlloc_2125_, 6, v_respStream_2096_); +lean_ctor_set(v_reuseFailAlloc_2125_, 7, v_expectData_2098_); +lean_ctor_set(v_reuseFailAlloc_2125_, 8, v___x_2106_); +lean_ctor_set_uint8(v_reuseFailAlloc_2125_, sizeof(void*)*9, v_requiresData_2097_); +lean_ctor_set_uint8(v_reuseFailAlloc_2125_, sizeof(void*)*9 + 1, v_handlerDispatched_2099_); +v___x_2108_ = v_reuseFailAlloc_2125_; +goto v_reusejp_2107_; +} +v_reusejp_2107_: +{ +uint8_t v___x_2109_; uint8_t v___x_2110_; lean_object* v___x_2111_; +v___x_2109_ = 0; +v___x_2110_ = 1; +v___x_2111_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___x_2109_, v_head_2089_, v___x_2110_); +lean_dec(v_head_2089_); +if (lean_obj_tag(v___x_2111_) == 1) +{ +lean_object* v___f_2112_; lean_object* v___x_2113_; lean_object* v___f_2114_; lean_object* v___f_2115_; lean_object* v___x_5015__overap_2116_; lean_object* v___x_2117_; lean_object* v___f_2118_; lean_object* v___x_2119_; uint8_t v___x_2120_; lean_object* v___x_2121_; +v___f_2112_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_2112_, 0, v___x_2111_); +v___x_2113_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_2114_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_2115_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_5015__overap_2116_ = l_Std_Mutex_atomically___redArg(v___x_2113_, v___f_2114_, v___f_2115_, v_requestStream_2094_, v___f_2112_); +v___x_2117_ = lean_apply_1(v___x_5015__overap_2116_, lean_box(0)); +v___f_2118_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_2118_, 0, v___x_2108_); +v___x_2119_ = lean_unsigned_to_nat(0u); +v___x_2120_ = 0; +v___x_2121_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2119_, v___x_2120_, v___x_2117_, v___f_2118_); +return v___x_2121_; +} +else +{ +lean_object* v___x_2122_; lean_object* v___x_2123_; lean_object* v___x_2124_; +lean_dec(v___x_2111_); +lean_dec_ref(v_requestStream_2094_); +v___x_2122_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2122_, 0, v___x_2108_); +v___x_2123_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2123_, 0, v___x_2122_); +v___x_2124_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2124_, 0, v___x_2123_); +return v___x_2124_; +} +} +} +} +} +} +case 1: +{ +lean_object* v_size_2133_; lean_object* v___x_2135_; uint8_t v_isShared_2136_; uint8_t v_isSharedCheck_2160_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec_ref(v___f_2081_); +lean_dec(v_handler_2080_); +lean_dec_ref(v___f_2079_); +lean_dec_ref(v_inst_2078_); +lean_dec_ref(v_config_2077_); +v_size_2133_ = lean_ctor_get(v_a_2085_, 0); +v_isSharedCheck_2160_ = !lean_is_exclusive(v_a_2085_); +if (v_isSharedCheck_2160_ == 0) +{ +v___x_2135_ = v_a_2085_; +v_isShared_2136_ = v_isSharedCheck_2160_; +goto v_resetjp_2134_; +} +else +{ +lean_inc(v_size_2133_); +lean_dec(v_a_2085_); +v___x_2135_ = lean_box(0); +v_isShared_2136_ = v_isSharedCheck_2160_; +goto v_resetjp_2134_; +} +v_resetjp_2134_: +{ +lean_object* v_machine_2137_; lean_object* v_requestStream_2138_; lean_object* v_keepAliveTimeout_2139_; lean_object* v_currentTimeout_2140_; lean_object* v_headerTimeout_2141_; lean_object* v_response_2142_; lean_object* v_respStream_2143_; uint8_t v_handlerDispatched_2144_; lean_object* v_pendingHead_2145_; lean_object* v___x_2147_; uint8_t v_isShared_2148_; uint8_t v_isSharedCheck_2158_; +v_machine_2137_ = lean_ctor_get(v___y_2087_, 0); +v_requestStream_2138_ = lean_ctor_get(v___y_2087_, 1); +v_keepAliveTimeout_2139_ = lean_ctor_get(v___y_2087_, 2); +v_currentTimeout_2140_ = lean_ctor_get(v___y_2087_, 3); +v_headerTimeout_2141_ = lean_ctor_get(v___y_2087_, 4); +v_response_2142_ = lean_ctor_get(v___y_2087_, 5); +v_respStream_2143_ = lean_ctor_get(v___y_2087_, 6); +v_handlerDispatched_2144_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9 + 1); +v_pendingHead_2145_ = lean_ctor_get(v___y_2087_, 8); +v_isSharedCheck_2158_ = !lean_is_exclusive(v___y_2087_); +if (v_isSharedCheck_2158_ == 0) +{ +lean_object* v_unused_2159_; +v_unused_2159_ = lean_ctor_get(v___y_2087_, 7); +lean_dec(v_unused_2159_); +v___x_2147_ = v___y_2087_; +v_isShared_2148_ = v_isSharedCheck_2158_; +goto v_resetjp_2146_; +} +else +{ +lean_inc(v_pendingHead_2145_); +lean_inc(v_respStream_2143_); +lean_inc(v_response_2142_); +lean_inc(v_headerTimeout_2141_); +lean_inc(v_currentTimeout_2140_); +lean_inc(v_keepAliveTimeout_2139_); +lean_inc(v_requestStream_2138_); +lean_inc(v_machine_2137_); +lean_dec(v___y_2087_); +v___x_2147_ = lean_box(0); +v_isShared_2148_ = v_isSharedCheck_2158_; +goto v_resetjp_2146_; +} +v_resetjp_2146_: +{ +uint8_t v___x_2149_; lean_object* v___x_2151_; +v___x_2149_ = 1; +if (v_isShared_2148_ == 0) +{ +lean_ctor_set(v___x_2147_, 7, v_size_2133_); +v___x_2151_ = v___x_2147_; +goto v_reusejp_2150_; +} +else +{ +lean_object* v_reuseFailAlloc_2157_; +v_reuseFailAlloc_2157_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2157_, 0, v_machine_2137_); +lean_ctor_set(v_reuseFailAlloc_2157_, 1, v_requestStream_2138_); +lean_ctor_set(v_reuseFailAlloc_2157_, 2, v_keepAliveTimeout_2139_); +lean_ctor_set(v_reuseFailAlloc_2157_, 3, v_currentTimeout_2140_); +lean_ctor_set(v_reuseFailAlloc_2157_, 4, v_headerTimeout_2141_); +lean_ctor_set(v_reuseFailAlloc_2157_, 5, v_response_2142_); +lean_ctor_set(v_reuseFailAlloc_2157_, 6, v_respStream_2143_); +lean_ctor_set(v_reuseFailAlloc_2157_, 7, v_size_2133_); +lean_ctor_set(v_reuseFailAlloc_2157_, 8, v_pendingHead_2145_); +lean_ctor_set_uint8(v_reuseFailAlloc_2157_, sizeof(void*)*9 + 1, v_handlerDispatched_2144_); +v___x_2151_ = v_reuseFailAlloc_2157_; +goto v_reusejp_2150_; +} +v_reusejp_2150_: +{ +lean_object* v___x_2153_; +lean_ctor_set_uint8(v___x_2151_, sizeof(void*)*9, v___x_2149_); +if (v_isShared_2136_ == 0) +{ +lean_ctor_set(v___x_2135_, 0, v___x_2151_); +v___x_2153_ = v___x_2135_; +goto v_reusejp_2152_; +} +else +{ +lean_object* v_reuseFailAlloc_2156_; +v_reuseFailAlloc_2156_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2156_, 0, v___x_2151_); +v___x_2153_ = v_reuseFailAlloc_2156_; +goto v_reusejp_2152_; +} +v_reusejp_2152_: +{ +lean_object* v___x_2154_; lean_object* v___x_2155_; +v___x_2154_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2154_, 0, v___x_2153_); +v___x_2155_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2155_, 0, v___x_2154_); +return v___x_2155_; +} +} +} +} +} +case 2: +{ +lean_object* v_err_2161_; lean_object* v_onFailure_2162_; lean_object* v___f_2163_; lean_object* v___y_2165_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec_ref(v___f_2081_); +lean_dec_ref(v_config_2077_); +v_err_2161_ = lean_ctor_get(v_a_2085_, 0); +lean_inc(v_err_2161_); +lean_dec_ref(v_a_2085_); +v_onFailure_2162_ = lean_ctor_get(v_inst_2078_, 2); +lean_inc_ref(v_onFailure_2162_); +lean_dec_ref(v_inst_2078_); +v___f_2163_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___boxed), 4, 2); +lean_closure_set(v___f_2163_, 0, v___y_2087_); +lean_closure_set(v___f_2163_, 1, v___f_2079_); +switch(lean_obj_tag(v_err_2161_)) +{ +case 0: +{ +lean_object* v___x_2171_; +v___x_2171_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__0)); +v___y_2165_ = v___x_2171_; +goto v___jp_2164_; +} +case 1: +{ +lean_object* v___x_2172_; +v___x_2172_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__1)); +v___y_2165_ = v___x_2172_; +goto v___jp_2164_; +} +case 2: +{ +lean_object* v___x_2173_; +v___x_2173_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__2)); +v___y_2165_ = v___x_2173_; +goto v___jp_2164_; +} +case 3: +{ +lean_object* v___x_2174_; +v___x_2174_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__3)); +v___y_2165_ = v___x_2174_; +goto v___jp_2164_; +} +case 4: +{ +lean_object* v___x_2175_; +v___x_2175_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__4)); +v___y_2165_ = v___x_2175_; +goto v___jp_2164_; +} +case 5: +{ +lean_object* v___x_2176_; +v___x_2176_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__5)); +v___y_2165_ = v___x_2176_; +goto v___jp_2164_; +} +case 6: +{ +lean_object* v___x_2177_; +v___x_2177_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__6)); +v___y_2165_ = v___x_2177_; +goto v___jp_2164_; +} +case 7: +{ +lean_object* v___x_2178_; +v___x_2178_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__7)); +v___y_2165_ = v___x_2178_; +goto v___jp_2164_; +} +case 8: +{ +lean_object* v___x_2179_; +v___x_2179_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__8)); +v___y_2165_ = v___x_2179_; +goto v___jp_2164_; +} +case 9: +{ +lean_object* v___x_2180_; +v___x_2180_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__9)); +v___y_2165_ = v___x_2180_; +goto v___jp_2164_; +} +case 10: +{ +lean_object* v___x_2181_; +v___x_2181_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__10)); +v___y_2165_ = v___x_2181_; +goto v___jp_2164_; +} +default: +{ +lean_object* v_message_2182_; lean_object* v___x_2183_; lean_object* v___x_2184_; +v_message_2182_ = lean_ctor_get(v_err_2161_, 0); +lean_inc_ref(v_message_2182_); +lean_dec_ref(v_err_2161_); +v___x_2183_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___closed__11)); +v___x_2184_ = lean_string_append(v___x_2183_, v_message_2182_); +lean_dec_ref(v_message_2182_); +v___y_2165_ = v___x_2184_; +goto v___jp_2164_; +} +} +v___jp_2164_: +{ +lean_object* v___x_2166_; lean_object* v___x_2167_; lean_object* v___x_2168_; uint8_t v___x_2169_; lean_object* v___x_2170_; +v___x_2166_ = lean_mk_io_user_error(v___y_2165_); +v___x_2167_ = lean_apply_3(v_onFailure_2162_, v_handler_2080_, v___x_2166_, lean_box(0)); +v___x_2168_ = lean_unsigned_to_nat(0u); +v___x_2169_ = 0; +v___x_2170_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2168_, v___x_2169_, v___x_2167_, v___f_2163_); +return v___x_2170_; +} +} +case 4: +{ +lean_object* v_requestStream_2185_; lean_object* v___x_2186_; lean_object* v___f_2187_; lean_object* v___f_2188_; lean_object* v___x_2189_; lean_object* v___x_2190_; lean_object* v___x_5068__overap_2191_; lean_object* v___x_2192_; lean_object* v___f_2193_; lean_object* v___f_2194_; lean_object* v___x_2195_; uint8_t v___x_2196_; lean_object* v___x_2197_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec(v_handler_2080_); +lean_dec_ref(v___f_2079_); +lean_dec_ref(v_inst_2078_); +lean_dec_ref(v_config_2077_); +v_requestStream_2185_ = lean_ctor_get(v___y_2087_, 1); +lean_inc_ref_n(v_requestStream_2185_, 2); +v___x_2186_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_2187_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_2188_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_2189_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_2190_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_2190_, 0, lean_box(0)); +lean_closure_set(v___x_2190_, 1, lean_box(0)); +lean_closure_set(v___x_2190_, 2, lean_box(0)); +lean_closure_set(v___x_2190_, 3, v___x_2186_); +lean_closure_set(v___x_2190_, 4, lean_box(0)); +lean_closure_set(v___x_2190_, 5, lean_box(0)); +lean_closure_set(v___x_2190_, 6, v___x_2189_); +lean_closure_set(v___x_2190_, 7, v___f_2081_); +v___x_5068__overap_2191_ = l_Std_Mutex_atomically___redArg(v___x_2186_, v___f_2187_, v___f_2188_, v_requestStream_2185_, v___x_2190_); +v___x_2192_ = lean_apply_1(v___x_5068__overap_2191_, lean_box(0)); +lean_inc_ref(v___y_2087_); +v___f_2193_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__7___boxed), 3, 1); +lean_closure_set(v___f_2193_, 0, v___y_2087_); +v___f_2194_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__8___boxed), 5, 3); +lean_closure_set(v___f_2194_, 0, v_requestStream_2185_); +lean_closure_set(v___f_2194_, 1, v___f_2193_); +lean_closure_set(v___f_2194_, 2, v___y_2087_); +v___x_2195_ = lean_unsigned_to_nat(0u); +v___x_2196_ = 0; +v___x_2197_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2195_, v___x_2196_, v___x_2192_, v___f_2194_); +return v___x_2197_; +} +case 6: +{ +lean_object* v_machine_2198_; lean_object* v_requestStream_2199_; lean_object* v_respStream_2200_; uint8_t v_requiresData_2201_; lean_object* v_expectData_2202_; lean_object* v_pendingHead_2203_; lean_object* v___x_2204_; lean_object* v___f_2205_; lean_object* v___f_2206_; lean_object* v___x_2207_; lean_object* v___x_2208_; lean_object* v___x_5086__overap_2209_; lean_object* v___x_2210_; lean_object* v___x_2211_; lean_object* v___f_2212_; lean_object* v___f_2213_; lean_object* v___f_2214_; lean_object* v___f_2215_; lean_object* v___f_2216_; lean_object* v___f_2217_; lean_object* v___x_2218_; uint8_t v___x_2219_; lean_object* v___x_2220_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v___f_2081_); +lean_dec(v_handler_2080_); +lean_dec_ref(v___f_2079_); +lean_dec_ref(v_inst_2078_); +v_machine_2198_ = lean_ctor_get(v___y_2087_, 0); +lean_inc_ref(v_machine_2198_); +v_requestStream_2199_ = lean_ctor_get(v___y_2087_, 1); +lean_inc_ref_n(v_requestStream_2199_, 2); +v_respStream_2200_ = lean_ctor_get(v___y_2087_, 6); +lean_inc(v_respStream_2200_); +v_requiresData_2201_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9); +v_expectData_2202_ = lean_ctor_get(v___y_2087_, 7); +lean_inc(v_expectData_2202_); +v_pendingHead_2203_ = lean_ctor_get(v___y_2087_, 8); +lean_inc(v_pendingHead_2203_); +lean_dec_ref(v___y_2087_); +v___x_2204_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_2205_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_2206_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_2207_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_2208_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_2208_, 0, lean_box(0)); +lean_closure_set(v___x_2208_, 1, lean_box(0)); +lean_closure_set(v___x_2208_, 2, lean_box(0)); +lean_closure_set(v___x_2208_, 3, v___x_2204_); +lean_closure_set(v___x_2208_, 4, lean_box(0)); +lean_closure_set(v___x_2208_, 5, lean_box(0)); +lean_closure_set(v___x_2208_, 6, v___x_2207_); +lean_closure_set(v___x_2208_, 7, v___f_2082_); +v___x_5086__overap_2209_ = l_Std_Mutex_atomically___redArg(v___x_2204_, v___f_2205_, v___f_2206_, v_requestStream_2199_, v___x_2208_); +v___x_2210_ = lean_apply_1(v___x_5086__overap_2209_, lean_box(0)); +v___x_2211_ = lean_box(v_requiresData_2201_); +v___f_2212_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__10___boxed), 7, 5); +lean_closure_set(v___f_2212_, 0, v_config_2077_); +lean_closure_set(v___f_2212_, 1, v_machine_2198_); +lean_closure_set(v___f_2212_, 2, v___x_2211_); +lean_closure_set(v___f_2212_, 3, v_expectData_2202_); +lean_closure_set(v___f_2212_, 4, v_pendingHead_2203_); +v___f_2213_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__11___boxed), 3, 1); +lean_closure_set(v___f_2213_, 0, v___f_2212_); +lean_inc_ref(v___f_2213_); +v___f_2214_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4___boxed), 3, 1); +lean_closure_set(v___f_2214_, 0, v___f_2213_); +v___f_2215_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__12___boxed), 6, 4); +lean_closure_set(v___f_2215_, 0, v_respStream_2200_); +lean_closure_set(v___f_2215_, 1, v_inst_2083_); +lean_closure_set(v___f_2215_, 2, v___f_2214_); +lean_closure_set(v___f_2215_, 3, v___f_2213_); +lean_inc_ref(v___f_2215_); +v___f_2216_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__4___boxed), 3, 1); +lean_closure_set(v___f_2216_, 0, v___f_2215_); +v___f_2217_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__5___boxed), 5, 3); +lean_closure_set(v___f_2217_, 0, v_requestStream_2199_); +lean_closure_set(v___f_2217_, 1, v___f_2216_); +lean_closure_set(v___f_2217_, 2, v___f_2215_); +v___x_2218_ = lean_unsigned_to_nat(0u); +v___x_2219_ = 0; +v___x_2220_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2218_, v___x_2219_, v___x_2210_, v___f_2217_); +return v___x_2220_; +} +case 7: +{ +lean_object* v_pendingHead_2221_; +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec_ref(v___f_2081_); +lean_dec_ref(v___f_2079_); +v_pendingHead_2221_ = lean_ctor_get(v___y_2087_, 8); +if (lean_obj_tag(v_pendingHead_2221_) == 1) +{ +lean_object* v_machine_2222_; lean_object* v_requestStream_2223_; lean_object* v_keepAliveTimeout_2224_; lean_object* v_currentTimeout_2225_; lean_object* v_headerTimeout_2226_; lean_object* v_response_2227_; lean_object* v_respStream_2228_; uint8_t v_requiresData_2229_; lean_object* v_expectData_2230_; uint8_t v_handlerDispatched_2231_; lean_object* v_val_2232_; lean_object* v___x_2233_; lean_object* v___x_2234_; lean_object* v___x_2235_; lean_object* v___f_2236_; lean_object* v___x_2237_; uint8_t v___x_2238_; lean_object* v___x_2239_; +lean_inc_ref(v_pendingHead_2221_); +v_machine_2222_ = lean_ctor_get(v___y_2087_, 0); +lean_inc_ref(v_machine_2222_); +v_requestStream_2223_ = lean_ctor_get(v___y_2087_, 1); +lean_inc_ref(v_requestStream_2223_); +v_keepAliveTimeout_2224_ = lean_ctor_get(v___y_2087_, 2); +lean_inc(v_keepAliveTimeout_2224_); +v_currentTimeout_2225_ = lean_ctor_get(v___y_2087_, 3); +lean_inc(v_currentTimeout_2225_); +v_headerTimeout_2226_ = lean_ctor_get(v___y_2087_, 4); +lean_inc(v_headerTimeout_2226_); +v_response_2227_ = lean_ctor_get(v___y_2087_, 5); +lean_inc_ref(v_response_2227_); +v_respStream_2228_ = lean_ctor_get(v___y_2087_, 6); +lean_inc(v_respStream_2228_); +v_requiresData_2229_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9); +v_expectData_2230_ = lean_ctor_get(v___y_2087_, 7); +lean_inc(v_expectData_2230_); +v_handlerDispatched_2231_ = lean_ctor_get_uint8(v___y_2087_, sizeof(void*)*9 + 1); +lean_dec_ref(v___y_2087_); +v_val_2232_ = lean_ctor_get(v_pendingHead_2221_, 0); +lean_inc(v_val_2232_); +v___x_2233_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___redArg(v_inst_2078_, v_handler_2080_, v_machine_2222_, v_val_2232_, v_config_2077_, v_connectionContext_2084_); +v___x_2234_ = lean_box(v_requiresData_2229_); +v___x_2235_ = lean_box(v_handlerDispatched_2231_); +v___f_2236_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__16___boxed), 12, 10); +lean_closure_set(v___f_2236_, 0, v_requestStream_2223_); +lean_closure_set(v___f_2236_, 1, v_keepAliveTimeout_2224_); +lean_closure_set(v___f_2236_, 2, v_currentTimeout_2225_); +lean_closure_set(v___f_2236_, 3, v_headerTimeout_2226_); +lean_closure_set(v___f_2236_, 4, v_response_2227_); +lean_closure_set(v___f_2236_, 5, v_respStream_2228_); +lean_closure_set(v___f_2236_, 6, v___x_2234_); +lean_closure_set(v___f_2236_, 7, v_expectData_2230_); +lean_closure_set(v___f_2236_, 8, v___x_2235_); +lean_closure_set(v___f_2236_, 9, v_pendingHead_2221_); +v___x_2237_ = lean_unsigned_to_nat(0u); +v___x_2238_ = 0; +v___x_2239_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2237_, v___x_2238_, v___x_2233_, v___f_2236_); +return v___x_2239_; +} +else +{ +lean_object* v___x_2240_; lean_object* v___x_2241_; lean_object* v___x_2242_; +lean_dec_ref(v_connectionContext_2084_); +lean_dec(v_handler_2080_); +lean_dec_ref(v_inst_2078_); +lean_dec_ref(v_config_2077_); +v___x_2240_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2240_, 0, v___y_2087_); +v___x_2241_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2241_, 0, v___x_2240_); +v___x_2242_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2242_, 0, v___x_2241_); +return v___x_2242_; +} +} +default: +{ +lean_object* v___x_2243_; lean_object* v___x_2244_; lean_object* v___x_2245_; +lean_dec(v_a_2085_); +lean_dec_ref(v_connectionContext_2084_); +lean_dec_ref(v_inst_2083_); +lean_dec_ref(v___f_2082_); +lean_dec_ref(v___f_2081_); +lean_dec(v_handler_2080_); +lean_dec_ref(v___f_2079_); +lean_dec_ref(v_inst_2078_); +lean_dec_ref(v_config_2077_); +v___x_2243_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2243_, 0, v___y_2087_); +v___x_2244_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2244_, 0, v___x_2243_); +v___x_2245_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2245_, 0, v___x_2244_); +return v___x_2245_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___boxed(lean_object* v_config_2246_, lean_object* v_inst_2247_, lean_object* v___f_2248_, lean_object* v_handler_2249_, lean_object* v___f_2250_, lean_object* v___f_2251_, lean_object* v_inst_2252_, lean_object* v_connectionContext_2253_, lean_object* v_a_2254_, lean_object* v_x_2255_, lean_object* v___y_2256_, lean_object* v___y_2257_){ +_start: +{ +lean_object* v_res_2258_; +v_res_2258_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14(v_config_2246_, v_inst_2247_, v___f_2248_, v_handler_2249_, v___f_2250_, v___f_2251_, v_inst_2252_, v_connectionContext_2253_, v_a_2254_, v_x_2255_, v___y_2256_); +return v_res_2258_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15(lean_object* v_x_2259_){ +_start: +{ +lean_object* v___x_2261_; +v___x_2261_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2261_, 0, v_x_2259_); +return v___x_2261_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15___boxed(lean_object* v_x_2262_, lean_object* v___y_2263_){ +_start: +{ +lean_object* v_res_2264_; +v_res_2264_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__15(v_x_2262_); +return v_res_2264_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg(lean_object* v_inst_2267_, lean_object* v_inst_2268_, lean_object* v_handler_2269_, lean_object* v_config_2270_, lean_object* v_connectionContext_2271_, lean_object* v_events_2272_, lean_object* v_state_2273_){ +_start: +{ +lean_object* v___f_2275_; lean_object* v___f_2276_; lean_object* v___x_2277_; size_t v_sz_2278_; size_t v___x_2279_; lean_object* v___x_4027__overap_2280_; lean_object* v___x_2281_; lean_object* v___f_2282_; lean_object* v___x_2283_; uint8_t v___x_2284_; lean_object* v___x_2285_; +v___f_2275_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0)); +v___f_2276_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__14___boxed), 12, 8); +lean_closure_set(v___f_2276_, 0, v_config_2270_); +lean_closure_set(v___f_2276_, 1, v_inst_2267_); +lean_closure_set(v___f_2276_, 2, v___f_2275_); +lean_closure_set(v___f_2276_, 3, v_handler_2269_); +lean_closure_set(v___f_2276_, 4, v___f_2275_); +lean_closure_set(v___f_2276_, 5, v___f_2275_); +lean_closure_set(v___f_2276_, 6, v_inst_2268_); +lean_closure_set(v___f_2276_, 7, v_connectionContext_2271_); +v___x_2277_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v_sz_2278_ = lean_array_size(v_events_2272_); +v___x_2279_ = ((size_t)0ULL); +v___x_4027__overap_2280_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop(lean_box(0), lean_box(0), lean_box(0), v___x_2277_, v_events_2272_, v___f_2276_, v_sz_2278_, v___x_2279_, v_state_2273_); +v___x_2281_ = lean_apply_1(v___x_4027__overap_2280_, lean_box(0)); +v___f_2282_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__1)); +v___x_2283_ = lean_unsigned_to_nat(0u); +v___x_2284_ = 0; +v___x_2285_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2283_, v___x_2284_, v___x_2281_, v___f_2282_); +return v___x_2285_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___boxed(lean_object* v_inst_2286_, lean_object* v_inst_2287_, lean_object* v_handler_2288_, lean_object* v_config_2289_, lean_object* v_connectionContext_2290_, lean_object* v_events_2291_, lean_object* v_state_2292_, lean_object* v_a_2293_){ +_start: +{ +lean_object* v_res_2294_; +v_res_2294_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg(v_inst_2286_, v_inst_2287_, v_handler_2288_, v_config_2289_, v_connectionContext_2290_, v_events_2291_, v_state_2292_); +return v_res_2294_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events(lean_object* v_00_u03c3_2295_, lean_object* v_00_u03b2_2296_, lean_object* v_inst_2297_, lean_object* v_inst_2298_, lean_object* v_handler_2299_, lean_object* v_config_2300_, lean_object* v_connectionContext_2301_, lean_object* v_events_2302_, lean_object* v_state_2303_){ +_start: +{ +lean_object* v___x_2305_; +v___x_2305_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg(v_inst_2297_, v_inst_2298_, v_handler_2299_, v_config_2300_, v_connectionContext_2301_, v_events_2302_, v_state_2303_); +return v___x_2305_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___boxed(lean_object* v_00_u03c3_2306_, lean_object* v_00_u03b2_2307_, lean_object* v_inst_2308_, lean_object* v_inst_2309_, lean_object* v_handler_2310_, lean_object* v_config_2311_, lean_object* v_connectionContext_2312_, lean_object* v_events_2313_, lean_object* v_state_2314_, lean_object* v_a_2315_){ +_start: +{ +lean_object* v_res_2316_; +v_res_2316_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events(v_00_u03c3_2306_, v_00_u03b2_2307_, v_inst_2308_, v_inst_2309_, v_handler_2310_, v_config_2311_, v_connectionContext_2312_, v_events_2313_, v_state_2314_); +return v_res_2316_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__0(lean_object* v_x_2317_){ +_start: +{ +if (lean_obj_tag(v_x_2317_) == 0) +{ +lean_object* v_a_2318_; lean_object* v___x_2319_; +v_a_2318_ = lean_ctor_get(v_x_2317_, 0); +lean_inc(v_a_2318_); +lean_dec_ref(v_x_2317_); +v___x_2319_ = lean_task_pure(v_a_2318_); +return v___x_2319_; +} +else +{ +lean_object* v_a_2320_; +v_a_2320_ = lean_ctor_get(v_x_2317_, 0); +lean_inc_ref(v_a_2320_); +lean_dec_ref(v_x_2317_); +return v_a_2320_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1(lean_object* v_machine_2321_, lean_object* v_requestStream_2322_, lean_object* v_keepAliveTimeout_2323_, lean_object* v_currentTimeout_2324_, lean_object* v_headerTimeout_2325_, lean_object* v_response_2326_, lean_object* v_respStream_2327_, uint8_t v_requiresData_2328_, lean_object* v_expectData_2329_, lean_object* v_x_2330_){ +_start: +{ +if (lean_obj_tag(v_x_2330_) == 0) +{ +lean_object* v_a_2332_; lean_object* v___x_2334_; uint8_t v_isShared_2335_; uint8_t v_isSharedCheck_2340_; +lean_dec(v_expectData_2329_); +lean_dec(v_respStream_2327_); +lean_dec_ref(v_response_2326_); +lean_dec(v_headerTimeout_2325_); +lean_dec(v_currentTimeout_2324_); +lean_dec(v_keepAliveTimeout_2323_); +lean_dec_ref(v_requestStream_2322_); +lean_dec_ref(v_machine_2321_); +v_a_2332_ = lean_ctor_get(v_x_2330_, 0); +v_isSharedCheck_2340_ = !lean_is_exclusive(v_x_2330_); +if (v_isSharedCheck_2340_ == 0) +{ +v___x_2334_ = v_x_2330_; +v_isShared_2335_ = v_isSharedCheck_2340_; +goto v_resetjp_2333_; +} +else +{ +lean_inc(v_a_2332_); +lean_dec(v_x_2330_); +v___x_2334_ = lean_box(0); +v_isShared_2335_ = v_isSharedCheck_2340_; +goto v_resetjp_2333_; +} +v_resetjp_2333_: +{ +lean_object* v___x_2337_; +if (v_isShared_2335_ == 0) +{ +v___x_2337_ = v___x_2334_; +goto v_reusejp_2336_; +} +else +{ +lean_object* v_reuseFailAlloc_2339_; +v_reuseFailAlloc_2339_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2339_, 0, v_a_2332_); +v___x_2337_ = v_reuseFailAlloc_2339_; +goto v_reusejp_2336_; +} +v_reusejp_2336_: +{ +lean_object* v___x_2338_; +v___x_2338_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2338_, 0, v___x_2337_); +return v___x_2338_; +} +} +} +else +{ +lean_object* v___x_2342_; uint8_t v_isShared_2343_; uint8_t v_isSharedCheck_2351_; +v_isSharedCheck_2351_ = !lean_is_exclusive(v_x_2330_); +if (v_isSharedCheck_2351_ == 0) +{ +lean_object* v_unused_2352_; +v_unused_2352_ = lean_ctor_get(v_x_2330_, 0); +lean_dec(v_unused_2352_); +v___x_2342_ = v_x_2330_; +v_isShared_2343_ = v_isSharedCheck_2351_; +goto v_resetjp_2341_; +} +else +{ +lean_dec(v_x_2330_); +v___x_2342_ = lean_box(0); +v_isShared_2343_ = v_isSharedCheck_2351_; +goto v_resetjp_2341_; +} +v_resetjp_2341_: +{ +uint8_t v___x_2344_; lean_object* v___x_2345_; lean_object* v___x_2346_; lean_object* v___x_2348_; +v___x_2344_ = 1; +v___x_2345_ = lean_box(0); +v___x_2346_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2346_, 0, v_machine_2321_); +lean_ctor_set(v___x_2346_, 1, v_requestStream_2322_); +lean_ctor_set(v___x_2346_, 2, v_keepAliveTimeout_2323_); +lean_ctor_set(v___x_2346_, 3, v_currentTimeout_2324_); +lean_ctor_set(v___x_2346_, 4, v_headerTimeout_2325_); +lean_ctor_set(v___x_2346_, 5, v_response_2326_); +lean_ctor_set(v___x_2346_, 6, v_respStream_2327_); +lean_ctor_set(v___x_2346_, 7, v_expectData_2329_); +lean_ctor_set(v___x_2346_, 8, v___x_2345_); +lean_ctor_set_uint8(v___x_2346_, sizeof(void*)*9, v_requiresData_2328_); +lean_ctor_set_uint8(v___x_2346_, sizeof(void*)*9 + 1, v___x_2344_); +if (v_isShared_2343_ == 0) +{ +lean_ctor_set(v___x_2342_, 0, v___x_2346_); +v___x_2348_ = v___x_2342_; +goto v_reusejp_2347_; +} +else +{ +lean_object* v_reuseFailAlloc_2350_; +v_reuseFailAlloc_2350_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2350_, 0, v___x_2346_); +v___x_2348_ = v_reuseFailAlloc_2350_; +goto v_reusejp_2347_; +} +v_reusejp_2347_: +{ +lean_object* v___x_2349_; +v___x_2349_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2349_, 0, v___x_2348_); +return v___x_2349_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1___boxed(lean_object* v_machine_2353_, lean_object* v_requestStream_2354_, lean_object* v_keepAliveTimeout_2355_, lean_object* v_currentTimeout_2356_, lean_object* v_headerTimeout_2357_, lean_object* v_response_2358_, lean_object* v_respStream_2359_, lean_object* v_requiresData_2360_, lean_object* v_expectData_2361_, lean_object* v_x_2362_, lean_object* v___y_2363_){ +_start: +{ +uint8_t v_requiresData_boxed_2364_; lean_object* v_res_2365_; +v_requiresData_boxed_2364_ = lean_unbox(v_requiresData_2360_); +v_res_2365_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1(v_machine_2353_, v_requestStream_2354_, v_keepAliveTimeout_2355_, v_currentTimeout_2356_, v_headerTimeout_2357_, v_response_2358_, v_respStream_2359_, v_requiresData_boxed_2364_, v_expectData_2361_, v_x_2362_); +return v_res_2365_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2(lean_object* v_toFunctor_2366_, lean_object* v_response_2367_, lean_object* v___x_2368_, lean_object* v___f_2369_, lean_object* v_x_2370_){ +_start: +{ +if (lean_obj_tag(v_x_2370_) == 0) +{ +lean_object* v_a_2372_; lean_object* v___x_2374_; uint8_t v_isShared_2375_; uint8_t v_isSharedCheck_2380_; +lean_dec_ref(v___f_2369_); +lean_dec(v___x_2368_); +lean_dec_ref(v_response_2367_); +lean_dec_ref(v_toFunctor_2366_); +v_a_2372_ = lean_ctor_get(v_x_2370_, 0); +v_isSharedCheck_2380_ = !lean_is_exclusive(v_x_2370_); +if (v_isSharedCheck_2380_ == 0) +{ +v___x_2374_ = v_x_2370_; +v_isShared_2375_ = v_isSharedCheck_2380_; +goto v_resetjp_2373_; +} +else +{ +lean_inc(v_a_2372_); +lean_dec(v_x_2370_); +v___x_2374_ = lean_box(0); +v_isShared_2375_ = v_isSharedCheck_2380_; +goto v_resetjp_2373_; +} +v_resetjp_2373_: +{ +lean_object* v___x_2377_; +if (v_isShared_2375_ == 0) +{ +v___x_2377_ = v___x_2374_; +goto v_reusejp_2376_; +} +else +{ +lean_object* v_reuseFailAlloc_2379_; +v_reuseFailAlloc_2379_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2379_, 0, v_a_2372_); +v___x_2377_ = v_reuseFailAlloc_2379_; +goto v_reusejp_2376_; +} +v_reusejp_2376_: +{ +lean_object* v___x_2378_; +v___x_2378_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2378_, 0, v___x_2377_); +return v___x_2378_; +} +} +} +else +{ +lean_object* v_a_2381_; lean_object* v___x_2383_; uint8_t v_isShared_2384_; uint8_t v_isSharedCheck_2395_; +v_a_2381_ = lean_ctor_get(v_x_2370_, 0); +v_isSharedCheck_2395_ = !lean_is_exclusive(v_x_2370_); +if (v_isSharedCheck_2395_ == 0) +{ +v___x_2383_ = v_x_2370_; +v_isShared_2384_ = v_isSharedCheck_2395_; +goto v_resetjp_2382_; +} +else +{ +lean_inc(v_a_2381_); +lean_dec(v_x_2370_); +v___x_2383_ = lean_box(0); +v_isShared_2384_ = v_isSharedCheck_2395_; +goto v_resetjp_2382_; +} +v_resetjp_2382_: +{ +lean_object* v___x_2385_; lean_object* v___x_2386_; lean_object* v___x_2387_; uint8_t v___x_2388_; lean_object* v___x_2389_; lean_object* v___x_2391_; +v___x_2385_ = lean_alloc_closure((void*)(l_Functor_discard), 4, 3); +lean_closure_set(v___x_2385_, 0, lean_box(0)); +lean_closure_set(v___x_2385_, 1, lean_box(0)); +lean_closure_set(v___x_2385_, 2, v_toFunctor_2366_); +v___x_2386_ = lean_alloc_closure((void*)(l_Std_Channel_send___boxed), 4, 2); +lean_closure_set(v___x_2386_, 0, lean_box(0)); +lean_closure_set(v___x_2386_, 1, v_response_2367_); +v___x_2387_ = lean_alloc_closure((void*)(l_Function_comp), 6, 5); +lean_closure_set(v___x_2387_, 0, lean_box(0)); +lean_closure_set(v___x_2387_, 1, lean_box(0)); +lean_closure_set(v___x_2387_, 2, lean_box(0)); +lean_closure_set(v___x_2387_, 3, v___x_2385_); +lean_closure_set(v___x_2387_, 4, v___x_2386_); +v___x_2388_ = 0; +lean_inc(v___x_2368_); +v___x_2389_ = l_BaseIO_chainTask___redArg(v_a_2381_, v___x_2387_, v___x_2368_, v___x_2388_); +if (v_isShared_2384_ == 0) +{ +lean_ctor_set(v___x_2383_, 0, v___x_2389_); +v___x_2391_ = v___x_2383_; +goto v_reusejp_2390_; +} +else +{ +lean_object* v_reuseFailAlloc_2394_; +v_reuseFailAlloc_2394_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2394_, 0, v___x_2389_); +v___x_2391_ = v_reuseFailAlloc_2394_; +goto v_reusejp_2390_; +} +v_reusejp_2390_: +{ +lean_object* v___x_2392_; lean_object* v___x_2393_; +v___x_2392_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2392_, 0, v___x_2391_); +v___x_2393_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2368_, v___x_2388_, v___x_2392_, v___f_2369_); +return v___x_2393_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2___boxed(lean_object* v_toFunctor_2396_, lean_object* v_response_2397_, lean_object* v___x_2398_, lean_object* v___f_2399_, lean_object* v_x_2400_, lean_object* v___y_2401_){ +_start: +{ +lean_object* v_res_2402_; +v_res_2402_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2(v_toFunctor_2396_, v_response_2397_, v___x_2398_, v___f_2399_, v_x_2400_); +return v_res_2402_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg(lean_object* v_inst_2404_, lean_object* v_handler_2405_, lean_object* v_extensions_2406_, lean_object* v_connectionContext_2407_, lean_object* v_state_2408_){ +_start: +{ +lean_object* v___x_2410_; lean_object* v_toApplicative_2411_; lean_object* v_pendingHead_2412_; +v___x_2410_ = l_instMonadBaseIO; +v_toApplicative_2411_ = lean_ctor_get(v___x_2410_, 0); +v_pendingHead_2412_ = lean_ctor_get(v_state_2408_, 8); +lean_inc(v_pendingHead_2412_); +if (lean_obj_tag(v_pendingHead_2412_) == 1) +{ +lean_object* v_toFunctor_2413_; lean_object* v_machine_2414_; lean_object* v_requestStream_2415_; lean_object* v_keepAliveTimeout_2416_; lean_object* v_currentTimeout_2417_; lean_object* v_headerTimeout_2418_; lean_object* v_response_2419_; lean_object* v_respStream_2420_; uint8_t v_requiresData_2421_; lean_object* v_expectData_2422_; lean_object* v_val_2423_; lean_object* v___x_2425_; uint8_t v_isShared_2426_; uint8_t v_isSharedCheck_2445_; +v_toFunctor_2413_ = lean_ctor_get(v_toApplicative_2411_, 0); +v_machine_2414_ = lean_ctor_get(v_state_2408_, 0); +lean_inc_ref(v_machine_2414_); +v_requestStream_2415_ = lean_ctor_get(v_state_2408_, 1); +lean_inc_ref(v_requestStream_2415_); +v_keepAliveTimeout_2416_ = lean_ctor_get(v_state_2408_, 2); +lean_inc(v_keepAliveTimeout_2416_); +v_currentTimeout_2417_ = lean_ctor_get(v_state_2408_, 3); +lean_inc(v_currentTimeout_2417_); +v_headerTimeout_2418_ = lean_ctor_get(v_state_2408_, 4); +lean_inc(v_headerTimeout_2418_); +v_response_2419_ = lean_ctor_get(v_state_2408_, 5); +lean_inc_ref(v_response_2419_); +v_respStream_2420_ = lean_ctor_get(v_state_2408_, 6); +lean_inc(v_respStream_2420_); +v_requiresData_2421_ = lean_ctor_get_uint8(v_state_2408_, sizeof(void*)*9); +v_expectData_2422_ = lean_ctor_get(v_state_2408_, 7); +lean_inc(v_expectData_2422_); +lean_dec_ref(v_state_2408_); +v_val_2423_ = lean_ctor_get(v_pendingHead_2412_, 0); +v_isSharedCheck_2445_ = !lean_is_exclusive(v_pendingHead_2412_); +if (v_isSharedCheck_2445_ == 0) +{ +v___x_2425_ = v_pendingHead_2412_; +v_isShared_2426_ = v_isSharedCheck_2445_; +goto v_resetjp_2424_; +} +else +{ +lean_inc(v_val_2423_); +lean_dec(v_pendingHead_2412_); +v___x_2425_ = lean_box(0); +v_isShared_2426_ = v_isSharedCheck_2445_; +goto v_resetjp_2424_; +} +v_resetjp_2424_: +{ +lean_object* v_onRequest_2427_; lean_object* v___x_2428_; lean_object* v___x_2429_; lean_object* v___x_2430_; lean_object* v___x_2431_; lean_object* v___x_2432_; lean_object* v___f_2433_; lean_object* v___x_2434_; lean_object* v___f_2435_; lean_object* v___f_2436_; uint8_t v___x_2437_; lean_object* v___x_2438_; lean_object* v___x_2440_; +v_onRequest_2427_ = lean_ctor_get(v_inst_2404_, 1); +lean_inc_ref(v_onRequest_2427_); +lean_dec_ref(v_inst_2404_); +lean_inc_ref(v_requestStream_2415_); +v___x_2428_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_2428_, 0, v_val_2423_); +lean_ctor_set(v___x_2428_, 1, v_requestStream_2415_); +lean_ctor_set(v___x_2428_, 2, v_extensions_2406_); +v___x_2429_ = lean_apply_3(v_onRequest_2427_, v_handler_2405_, v___x_2428_, v_connectionContext_2407_); +v___x_2430_ = lean_unsigned_to_nat(0u); +v___x_2431_ = lean_alloc_closure((void*)(l_Std_Internal_IO_Async_BaseAsync_toRawBaseIO___boxed), 3, 2); +lean_closure_set(v___x_2431_, 0, lean_box(0)); +lean_closure_set(v___x_2431_, 1, v___x_2429_); +v___x_2432_ = lean_io_as_task(v___x_2431_, v___x_2430_); +v___f_2433_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___closed__0)); +v___x_2434_ = lean_box(v_requiresData_2421_); +lean_inc_ref(v_response_2419_); +v___f_2435_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__1___boxed), 11, 9); +lean_closure_set(v___f_2435_, 0, v_machine_2414_); +lean_closure_set(v___f_2435_, 1, v_requestStream_2415_); +lean_closure_set(v___f_2435_, 2, v_keepAliveTimeout_2416_); +lean_closure_set(v___f_2435_, 3, v_currentTimeout_2417_); +lean_closure_set(v___f_2435_, 4, v_headerTimeout_2418_); +lean_closure_set(v___f_2435_, 5, v_response_2419_); +lean_closure_set(v___f_2435_, 6, v_respStream_2420_); +lean_closure_set(v___f_2435_, 7, v___x_2434_); +lean_closure_set(v___f_2435_, 8, v_expectData_2422_); +lean_inc_ref(v_toFunctor_2413_); +v___f_2436_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___lam__2___boxed), 6, 4); +lean_closure_set(v___f_2436_, 0, v_toFunctor_2413_); +lean_closure_set(v___f_2436_, 1, v_response_2419_); +lean_closure_set(v___f_2436_, 2, v___x_2430_); +lean_closure_set(v___f_2436_, 3, v___f_2435_); +v___x_2437_ = 1; +v___x_2438_ = lean_task_bind(v___x_2432_, v___f_2433_, v___x_2430_, v___x_2437_); +if (v_isShared_2426_ == 0) +{ +lean_ctor_set(v___x_2425_, 0, v___x_2438_); +v___x_2440_ = v___x_2425_; +goto v_reusejp_2439_; +} +else +{ +lean_object* v_reuseFailAlloc_2444_; +v_reuseFailAlloc_2444_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2444_, 0, v___x_2438_); +v___x_2440_ = v_reuseFailAlloc_2444_; +goto v_reusejp_2439_; +} +v_reusejp_2439_: +{ +lean_object* v___x_2441_; uint8_t v___x_2442_; lean_object* v___x_2443_; +v___x_2441_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2441_, 0, v___x_2440_); +v___x_2442_ = 0; +v___x_2443_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2430_, v___x_2442_, v___x_2441_, v___f_2436_); +return v___x_2443_; +} +} +} +else +{ +lean_object* v___x_2446_; lean_object* v___x_2447_; +lean_dec(v_pendingHead_2412_); +lean_dec_ref(v_connectionContext_2407_); +lean_dec(v_extensions_2406_); +lean_dec(v_handler_2405_); +lean_dec_ref(v_inst_2404_); +v___x_2446_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2446_, 0, v_state_2408_); +v___x_2447_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2447_, 0, v___x_2446_); +return v___x_2447_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg___boxed(lean_object* v_inst_2448_, lean_object* v_handler_2449_, lean_object* v_extensions_2450_, lean_object* v_connectionContext_2451_, lean_object* v_state_2452_, lean_object* v_a_2453_){ +_start: +{ +lean_object* v_res_2454_; +v_res_2454_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg(v_inst_2448_, v_handler_2449_, v_extensions_2450_, v_connectionContext_2451_, v_state_2452_); +return v_res_2454_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest(lean_object* v_00_u03c3_2455_, lean_object* v_inst_2456_, lean_object* v_handler_2457_, lean_object* v_extensions_2458_, lean_object* v_connectionContext_2459_, lean_object* v_state_2460_){ +_start: +{ +lean_object* v___x_2462_; +v___x_2462_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg(v_inst_2456_, v_handler_2457_, v_extensions_2458_, v_connectionContext_2459_, v_state_2460_); +return v___x_2462_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___boxed(lean_object* v_00_u03c3_2463_, lean_object* v_inst_2464_, lean_object* v_handler_2465_, lean_object* v_extensions_2466_, lean_object* v_connectionContext_2467_, lean_object* v_state_2468_, lean_object* v_a_2469_){ +_start: +{ +lean_object* v_res_2470_; +v_res_2470_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest(v_00_u03c3_2463_, v_inst_2464_, v_handler_2465_, v_extensions_2466_, v_connectionContext_2467_, v_state_2468_); +return v_res_2470_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0(lean_object* v_machine_2471_, lean_object* v_____r_2472_){ +_start: +{ +lean_object* v_writer_2474_; lean_object* v_reader_2475_; lean_object* v_config_2476_; lean_object* v_events_2477_; lean_object* v_error_2478_; lean_object* v_instant_2479_; uint8_t v_keepAlive_2480_; uint8_t v_forcedFlush_2481_; uint8_t v_pullBodyStalled_2482_; lean_object* v___x_2484_; uint8_t v_isShared_2485_; uint8_t v_isSharedCheck_2509_; +v_writer_2474_ = lean_ctor_get(v_machine_2471_, 1); +v_reader_2475_ = lean_ctor_get(v_machine_2471_, 0); +v_config_2476_ = lean_ctor_get(v_machine_2471_, 2); +v_events_2477_ = lean_ctor_get(v_machine_2471_, 3); +v_error_2478_ = lean_ctor_get(v_machine_2471_, 4); +v_instant_2479_ = lean_ctor_get(v_machine_2471_, 5); +v_keepAlive_2480_ = lean_ctor_get_uint8(v_machine_2471_, sizeof(void*)*6); +v_forcedFlush_2481_ = lean_ctor_get_uint8(v_machine_2471_, sizeof(void*)*6 + 1); +v_pullBodyStalled_2482_ = lean_ctor_get_uint8(v_machine_2471_, sizeof(void*)*6 + 2); +v_isSharedCheck_2509_ = !lean_is_exclusive(v_machine_2471_); +if (v_isSharedCheck_2509_ == 0) +{ +v___x_2484_ = v_machine_2471_; +v_isShared_2485_ = v_isSharedCheck_2509_; +goto v_resetjp_2483_; +} +else +{ +lean_inc(v_instant_2479_); +lean_inc(v_error_2478_); +lean_inc(v_events_2477_); +lean_inc(v_config_2476_); +lean_inc(v_writer_2474_); +lean_inc(v_reader_2475_); +lean_dec(v_machine_2471_); +v___x_2484_ = lean_box(0); +v_isShared_2485_ = v_isSharedCheck_2509_; +goto v_resetjp_2483_; +} +v_resetjp_2483_: +{ +lean_object* v_userData_2486_; lean_object* v_outputData_2487_; lean_object* v_state_2488_; lean_object* v_knownSize_2489_; lean_object* v_messageHead_2490_; uint8_t v_sentMessage_2491_; uint8_t v_omitBody_2492_; lean_object* v_userDataBytes_2493_; lean_object* v___x_2495_; uint8_t v_isShared_2496_; uint8_t v_isSharedCheck_2508_; +v_userData_2486_ = lean_ctor_get(v_writer_2474_, 0); +v_outputData_2487_ = lean_ctor_get(v_writer_2474_, 1); +v_state_2488_ = lean_ctor_get(v_writer_2474_, 2); +v_knownSize_2489_ = lean_ctor_get(v_writer_2474_, 3); +v_messageHead_2490_ = lean_ctor_get(v_writer_2474_, 4); +v_sentMessage_2491_ = lean_ctor_get_uint8(v_writer_2474_, sizeof(void*)*6); +v_omitBody_2492_ = lean_ctor_get_uint8(v_writer_2474_, sizeof(void*)*6 + 2); +v_userDataBytes_2493_ = lean_ctor_get(v_writer_2474_, 5); +v_isSharedCheck_2508_ = !lean_is_exclusive(v_writer_2474_); +if (v_isSharedCheck_2508_ == 0) +{ +v___x_2495_ = v_writer_2474_; +v_isShared_2496_ = v_isSharedCheck_2508_; +goto v_resetjp_2494_; +} +else +{ +lean_inc(v_userDataBytes_2493_); +lean_inc(v_messageHead_2490_); +lean_inc(v_knownSize_2489_); +lean_inc(v_state_2488_); +lean_inc(v_outputData_2487_); +lean_inc(v_userData_2486_); +lean_dec(v_writer_2474_); +v___x_2495_ = lean_box(0); +v_isShared_2496_ = v_isSharedCheck_2508_; +goto v_resetjp_2494_; +} +v_resetjp_2494_: +{ +uint8_t v___x_2497_; lean_object* v___x_2499_; +v___x_2497_ = 1; +if (v_isShared_2496_ == 0) +{ +v___x_2499_ = v___x_2495_; +goto v_reusejp_2498_; +} +else +{ +lean_object* v_reuseFailAlloc_2507_; +v_reuseFailAlloc_2507_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2507_, 0, v_userData_2486_); +lean_ctor_set(v_reuseFailAlloc_2507_, 1, v_outputData_2487_); +lean_ctor_set(v_reuseFailAlloc_2507_, 2, v_state_2488_); +lean_ctor_set(v_reuseFailAlloc_2507_, 3, v_knownSize_2489_); +lean_ctor_set(v_reuseFailAlloc_2507_, 4, v_messageHead_2490_); +lean_ctor_set(v_reuseFailAlloc_2507_, 5, v_userDataBytes_2493_); +lean_ctor_set_uint8(v_reuseFailAlloc_2507_, sizeof(void*)*6, v_sentMessage_2491_); +lean_ctor_set_uint8(v_reuseFailAlloc_2507_, sizeof(void*)*6 + 2, v_omitBody_2492_); +v___x_2499_ = v_reuseFailAlloc_2507_; +goto v_reusejp_2498_; +} +v_reusejp_2498_: +{ +lean_object* v___x_2501_; +lean_ctor_set_uint8(v___x_2499_, sizeof(void*)*6 + 1, v___x_2497_); +if (v_isShared_2485_ == 0) +{ +lean_ctor_set(v___x_2484_, 1, v___x_2499_); +v___x_2501_ = v___x_2484_; +goto v_reusejp_2500_; +} +else +{ +lean_object* v_reuseFailAlloc_2506_; +v_reuseFailAlloc_2506_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2506_, 0, v_reader_2475_); +lean_ctor_set(v_reuseFailAlloc_2506_, 1, v___x_2499_); +lean_ctor_set(v_reuseFailAlloc_2506_, 2, v_config_2476_); +lean_ctor_set(v_reuseFailAlloc_2506_, 3, v_events_2477_); +lean_ctor_set(v_reuseFailAlloc_2506_, 4, v_error_2478_); +lean_ctor_set(v_reuseFailAlloc_2506_, 5, v_instant_2479_); +lean_ctor_set_uint8(v_reuseFailAlloc_2506_, sizeof(void*)*6, v_keepAlive_2480_); +lean_ctor_set_uint8(v_reuseFailAlloc_2506_, sizeof(void*)*6 + 1, v_forcedFlush_2481_); +lean_ctor_set_uint8(v_reuseFailAlloc_2506_, sizeof(void*)*6 + 2, v_pullBodyStalled_2482_); +v___x_2501_ = v_reuseFailAlloc_2506_; +goto v_reusejp_2500_; +} +v_reusejp_2500_: +{ +lean_object* v___x_2502_; lean_object* v___x_2503_; lean_object* v___x_2504_; lean_object* v___x_2505_; +v___x_2502_ = lean_box(0); +v___x_2503_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2503_, 0, v___x_2501_); +lean_ctor_set(v___x_2503_, 1, v___x_2502_); +v___x_2504_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2504_, 0, v___x_2503_); +v___x_2505_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2505_, 0, v___x_2504_); +return v___x_2505_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0___boxed(lean_object* v_machine_2510_, lean_object* v_____r_2511_, lean_object* v___y_2512_){ +_start: +{ +lean_object* v_res_2513_; +v_res_2513_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0(v_machine_2510_, v_____r_2511_); +return v_res_2513_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3(lean_object* v_x1_2514_, lean_object* v_x2_2515_){ +_start: +{ +lean_object* v_data_2516_; lean_object* v___x_2517_; lean_object* v___x_2518_; +v_data_2516_ = lean_ctor_get(v_x2_2515_, 0); +v___x_2517_ = lean_byte_array_size(v_data_2516_); +v___x_2518_ = lean_nat_add(v_x1_2514_, v___x_2517_); +return v___x_2518_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3___boxed(lean_object* v_x1_2519_, lean_object* v_x2_2520_){ +_start: +{ +lean_object* v_res_2521_; +v_res_2521_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__3(v_x1_2519_, v_x2_2520_); +lean_dec_ref(v_x2_2520_); +lean_dec(v_x1_2519_); +return v_res_2521_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1(lean_object* v_body_2522_, lean_object* v_machine_2523_, lean_object* v_isClosed_2524_, lean_object* v___f_2525_, lean_object* v___f_2526_, lean_object* v_x_2527_){ +_start: +{ +lean_object* v___y_2530_; +if (lean_obj_tag(v_x_2527_) == 0) +{ +lean_object* v_a_2535_; lean_object* v___x_2537_; uint8_t v_isShared_2538_; uint8_t v_isSharedCheck_2543_; +lean_dec_ref(v___f_2526_); +lean_dec_ref(v___f_2525_); +lean_dec_ref(v_isClosed_2524_); +lean_dec_ref(v_machine_2523_); +lean_dec(v_body_2522_); +v_a_2535_ = lean_ctor_get(v_x_2527_, 0); +v_isSharedCheck_2543_ = !lean_is_exclusive(v_x_2527_); +if (v_isSharedCheck_2543_ == 0) +{ +v___x_2537_ = v_x_2527_; +v_isShared_2538_ = v_isSharedCheck_2543_; +goto v_resetjp_2536_; +} +else +{ +lean_inc(v_a_2535_); +lean_dec(v_x_2527_); +v___x_2537_ = lean_box(0); +v_isShared_2538_ = v_isSharedCheck_2543_; +goto v_resetjp_2536_; +} +v_resetjp_2536_: +{ +lean_object* v___x_2540_; +if (v_isShared_2538_ == 0) +{ +v___x_2540_ = v___x_2537_; +goto v_reusejp_2539_; +} +else +{ +lean_object* v_reuseFailAlloc_2542_; +v_reuseFailAlloc_2542_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2542_, 0, v_a_2535_); +v___x_2540_ = v_reuseFailAlloc_2542_; +goto v_reusejp_2539_; +} +v_reusejp_2539_: +{ +lean_object* v___x_2541_; +v___x_2541_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2541_, 0, v___x_2540_); +return v___x_2541_; +} +} +} +else +{ +lean_object* v_a_2544_; lean_object* v___x_2546_; uint8_t v_isShared_2547_; uint8_t v_isSharedCheck_2611_; +v_a_2544_ = lean_ctor_get(v_x_2527_, 0); +v_isSharedCheck_2611_ = !lean_is_exclusive(v_x_2527_); +if (v_isSharedCheck_2611_ == 0) +{ +v___x_2546_ = v_x_2527_; +v_isShared_2547_ = v_isSharedCheck_2611_; +goto v_resetjp_2545_; +} +else +{ +lean_inc(v_a_2544_); +lean_dec(v_x_2527_); +v___x_2546_ = lean_box(0); +v_isShared_2547_ = v_isSharedCheck_2611_; +goto v_resetjp_2545_; +} +v_resetjp_2545_: +{ +if (lean_obj_tag(v_a_2544_) == 0) +{ +lean_object* v___x_2548_; lean_object* v___x_2549_; lean_object* v___x_2551_; +lean_dec_ref(v___f_2526_); +lean_dec_ref(v___f_2525_); +lean_dec_ref(v_isClosed_2524_); +v___x_2548_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2548_, 0, v_body_2522_); +v___x_2549_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2549_, 0, v_machine_2523_); +lean_ctor_set(v___x_2549_, 1, v___x_2548_); +if (v_isShared_2547_ == 0) +{ +lean_ctor_set(v___x_2546_, 0, v___x_2549_); +v___x_2551_ = v___x_2546_; +goto v_reusejp_2550_; +} +else +{ +lean_object* v_reuseFailAlloc_2553_; +v_reuseFailAlloc_2553_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2553_, 0, v___x_2549_); +v___x_2551_ = v_reuseFailAlloc_2553_; +goto v_reusejp_2550_; +} +v_reusejp_2550_: +{ +lean_object* v___x_2552_; +v___x_2552_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2552_, 0, v___x_2551_); +return v___x_2552_; +} +} +else +{ +lean_object* v_val_2554_; +lean_del_object(v___x_2546_); +v_val_2554_ = lean_ctor_get(v_a_2544_, 0); +lean_inc(v_val_2554_); +lean_dec_ref(v_a_2544_); +if (lean_obj_tag(v_val_2554_) == 0) +{ +lean_object* v___x_2555_; lean_object* v___x_2556_; uint8_t v___x_2557_; lean_object* v___x_2558_; +lean_dec_ref(v___f_2526_); +lean_dec_ref(v_machine_2523_); +v___x_2555_ = lean_apply_2(v_isClosed_2524_, v_body_2522_, lean_box(0)); +v___x_2556_ = lean_unsigned_to_nat(0u); +v___x_2557_ = 0; +v___x_2558_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2556_, v___x_2557_, v___x_2555_, v___f_2525_); +return v___x_2558_; +} +else +{ +lean_object* v_val_2559_; lean_object* v___x_2560_; lean_object* v___x_2561_; lean_object* v___x_2562_; lean_object* v___x_2563_; lean_object* v___x_2564_; uint8_t v___x_2565_; +lean_dec_ref(v___f_2525_); +lean_dec_ref(v_isClosed_2524_); +v_val_2559_ = lean_ctor_get(v_val_2554_, 0); +lean_inc(v_val_2559_); +lean_dec_ref(v_val_2554_); +v___x_2560_ = lean_unsigned_to_nat(1u); +v___x_2561_ = lean_mk_empty_array_with_capacity(v___x_2560_); +v___x_2562_ = lean_array_push(v___x_2561_, v_val_2559_); +v___x_2563_ = lean_array_get_size(v___x_2562_); +v___x_2564_ = lean_unsigned_to_nat(0u); +v___x_2565_ = lean_nat_dec_eq(v___x_2563_, v___x_2564_); +if (v___x_2565_ == 0) +{ +lean_object* v_reader_2566_; lean_object* v_writer_2567_; lean_object* v_config_2568_; lean_object* v_events_2569_; lean_object* v_error_2570_; lean_object* v_instant_2571_; uint8_t v_keepAlive_2572_; uint8_t v_forcedFlush_2573_; uint8_t v_pullBodyStalled_2574_; lean_object* v___x_2576_; uint8_t v_isShared_2577_; uint8_t v_isSharedCheck_2610_; +v_reader_2566_ = lean_ctor_get(v_machine_2523_, 0); +v_writer_2567_ = lean_ctor_get(v_machine_2523_, 1); +v_config_2568_ = lean_ctor_get(v_machine_2523_, 2); +v_events_2569_ = lean_ctor_get(v_machine_2523_, 3); +v_error_2570_ = lean_ctor_get(v_machine_2523_, 4); +v_instant_2571_ = lean_ctor_get(v_machine_2523_, 5); +v_keepAlive_2572_ = lean_ctor_get_uint8(v_machine_2523_, sizeof(void*)*6); +v_forcedFlush_2573_ = lean_ctor_get_uint8(v_machine_2523_, sizeof(void*)*6 + 1); +v_pullBodyStalled_2574_ = lean_ctor_get_uint8(v_machine_2523_, sizeof(void*)*6 + 2); +v_isSharedCheck_2610_ = !lean_is_exclusive(v_machine_2523_); +if (v_isSharedCheck_2610_ == 0) +{ +v___x_2576_ = v_machine_2523_; +v_isShared_2577_ = v_isSharedCheck_2610_; +goto v_resetjp_2575_; +} +else +{ +lean_inc(v_instant_2571_); +lean_inc(v_error_2570_); +lean_inc(v_events_2569_); +lean_inc(v_config_2568_); +lean_inc(v_writer_2567_); +lean_inc(v_reader_2566_); +lean_dec(v_machine_2523_); +v___x_2576_ = lean_box(0); +v_isShared_2577_ = v_isSharedCheck_2610_; +goto v_resetjp_2575_; +} +v_resetjp_2575_: +{ +lean_object* v___y_2579_; lean_object* v___x_2601_; uint8_t v___x_2602_; +v___x_2601_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_2602_ = lean_nat_dec_lt(v___x_2564_, v___x_2563_); +if (v___x_2602_ == 0) +{ +lean_dec_ref(v___f_2526_); +v___y_2579_ = v___x_2564_; +goto v___jp_2578_; +} +else +{ +uint8_t v___x_2603_; +v___x_2603_ = lean_nat_dec_le(v___x_2563_, v___x_2563_); +if (v___x_2603_ == 0) +{ +if (v___x_2602_ == 0) +{ +lean_dec_ref(v___f_2526_); +v___y_2579_ = v___x_2564_; +goto v___jp_2578_; +} +else +{ +size_t v___x_2604_; size_t v___x_2605_; lean_object* v___x_2606_; +v___x_2604_ = ((size_t)0ULL); +v___x_2605_ = lean_usize_of_nat(v___x_2563_); +lean_inc_ref(v___x_2562_); +v___x_2606_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_2601_, v___f_2526_, v___x_2562_, v___x_2604_, v___x_2605_, v___x_2564_); +v___y_2579_ = v___x_2606_; +goto v___jp_2578_; +} +} +else +{ +size_t v___x_2607_; size_t v___x_2608_; lean_object* v___x_2609_; +v___x_2607_ = ((size_t)0ULL); +v___x_2608_ = lean_usize_of_nat(v___x_2563_); +lean_inc_ref(v___x_2562_); +v___x_2609_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_2601_, v___f_2526_, v___x_2562_, v___x_2607_, v___x_2608_, v___x_2564_); +v___y_2579_ = v___x_2609_; +goto v___jp_2578_; +} +} +v___jp_2578_: +{ +lean_object* v_userData_2580_; lean_object* v_outputData_2581_; lean_object* v_state_2582_; lean_object* v_knownSize_2583_; lean_object* v_messageHead_2584_; uint8_t v_sentMessage_2585_; uint8_t v_userClosedBody_2586_; uint8_t v_omitBody_2587_; lean_object* v_userDataBytes_2588_; lean_object* v___x_2590_; uint8_t v_isShared_2591_; uint8_t v_isSharedCheck_2600_; +v_userData_2580_ = lean_ctor_get(v_writer_2567_, 0); +v_outputData_2581_ = lean_ctor_get(v_writer_2567_, 1); +v_state_2582_ = lean_ctor_get(v_writer_2567_, 2); +v_knownSize_2583_ = lean_ctor_get(v_writer_2567_, 3); +v_messageHead_2584_ = lean_ctor_get(v_writer_2567_, 4); +v_sentMessage_2585_ = lean_ctor_get_uint8(v_writer_2567_, sizeof(void*)*6); +v_userClosedBody_2586_ = lean_ctor_get_uint8(v_writer_2567_, sizeof(void*)*6 + 1); +v_omitBody_2587_ = lean_ctor_get_uint8(v_writer_2567_, sizeof(void*)*6 + 2); +v_userDataBytes_2588_ = lean_ctor_get(v_writer_2567_, 5); +v_isSharedCheck_2600_ = !lean_is_exclusive(v_writer_2567_); +if (v_isSharedCheck_2600_ == 0) +{ +v___x_2590_ = v_writer_2567_; +v_isShared_2591_ = v_isSharedCheck_2600_; +goto v_resetjp_2589_; +} +else +{ +lean_inc(v_userDataBytes_2588_); +lean_inc(v_messageHead_2584_); +lean_inc(v_knownSize_2583_); +lean_inc(v_state_2582_); +lean_inc(v_outputData_2581_); +lean_inc(v_userData_2580_); +lean_dec(v_writer_2567_); +v___x_2590_ = lean_box(0); +v_isShared_2591_ = v_isSharedCheck_2600_; +goto v_resetjp_2589_; +} +v_resetjp_2589_: +{ +lean_object* v___x_2592_; lean_object* v___x_2593_; lean_object* v___x_2595_; +v___x_2592_ = l_Array_append___redArg(v_userData_2580_, v___x_2562_); +lean_dec_ref(v___x_2562_); +v___x_2593_ = lean_nat_add(v_userDataBytes_2588_, v___y_2579_); +lean_dec(v___y_2579_); +lean_dec(v_userDataBytes_2588_); +if (v_isShared_2591_ == 0) +{ +lean_ctor_set(v___x_2590_, 5, v___x_2593_); +lean_ctor_set(v___x_2590_, 0, v___x_2592_); +v___x_2595_ = v___x_2590_; +goto v_reusejp_2594_; +} +else +{ +lean_object* v_reuseFailAlloc_2599_; +v_reuseFailAlloc_2599_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2599_, 0, v___x_2592_); +lean_ctor_set(v_reuseFailAlloc_2599_, 1, v_outputData_2581_); +lean_ctor_set(v_reuseFailAlloc_2599_, 2, v_state_2582_); +lean_ctor_set(v_reuseFailAlloc_2599_, 3, v_knownSize_2583_); +lean_ctor_set(v_reuseFailAlloc_2599_, 4, v_messageHead_2584_); +lean_ctor_set(v_reuseFailAlloc_2599_, 5, v___x_2593_); +lean_ctor_set_uint8(v_reuseFailAlloc_2599_, sizeof(void*)*6, v_sentMessage_2585_); +lean_ctor_set_uint8(v_reuseFailAlloc_2599_, sizeof(void*)*6 + 1, v_userClosedBody_2586_); +lean_ctor_set_uint8(v_reuseFailAlloc_2599_, sizeof(void*)*6 + 2, v_omitBody_2587_); +v___x_2595_ = v_reuseFailAlloc_2599_; +goto v_reusejp_2594_; +} +v_reusejp_2594_: +{ +lean_object* v___x_2597_; +if (v_isShared_2577_ == 0) +{ +lean_ctor_set(v___x_2576_, 1, v___x_2595_); +v___x_2597_ = v___x_2576_; +goto v_reusejp_2596_; +} +else +{ +lean_object* v_reuseFailAlloc_2598_; +v_reuseFailAlloc_2598_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2598_, 0, v_reader_2566_); +lean_ctor_set(v_reuseFailAlloc_2598_, 1, v___x_2595_); +lean_ctor_set(v_reuseFailAlloc_2598_, 2, v_config_2568_); +lean_ctor_set(v_reuseFailAlloc_2598_, 3, v_events_2569_); +lean_ctor_set(v_reuseFailAlloc_2598_, 4, v_error_2570_); +lean_ctor_set(v_reuseFailAlloc_2598_, 5, v_instant_2571_); +lean_ctor_set_uint8(v_reuseFailAlloc_2598_, sizeof(void*)*6, v_keepAlive_2572_); +lean_ctor_set_uint8(v_reuseFailAlloc_2598_, sizeof(void*)*6 + 1, v_forcedFlush_2573_); +lean_ctor_set_uint8(v_reuseFailAlloc_2598_, sizeof(void*)*6 + 2, v_pullBodyStalled_2574_); +v___x_2597_ = v_reuseFailAlloc_2598_; +goto v_reusejp_2596_; +} +v_reusejp_2596_: +{ +v___y_2530_ = v___x_2597_; +goto v___jp_2529_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v___x_2562_); +lean_dec_ref(v___f_2526_); +v___y_2530_ = v_machine_2523_; +goto v___jp_2529_; +} +} +} +} +} +v___jp_2529_: +{ +lean_object* v___x_2531_; lean_object* v___x_2532_; lean_object* v___x_2533_; lean_object* v___x_2534_; +v___x_2531_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2531_, 0, v_body_2522_); +v___x_2532_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2532_, 0, v___y_2530_); +lean_ctor_set(v___x_2532_, 1, v___x_2531_); +v___x_2533_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2533_, 0, v___x_2532_); +v___x_2534_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2534_, 0, v___x_2533_); +return v___x_2534_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1___boxed(lean_object* v_body_2612_, lean_object* v_machine_2613_, lean_object* v_isClosed_2614_, lean_object* v___f_2615_, lean_object* v___f_2616_, lean_object* v_x_2617_, lean_object* v___y_2618_){ +_start: +{ +lean_object* v_res_2619_; +v_res_2619_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1(v_body_2612_, v_machine_2613_, v_isClosed_2614_, v___f_2615_, v___f_2616_, v_x_2617_); +return v_res_2619_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg(lean_object* v_inst_2621_, lean_object* v_machine_2622_, lean_object* v_body_2623_){ +_start: +{ +lean_object* v_close_2625_; lean_object* v_isClosed_2626_; lean_object* v_tryRecv_2627_; lean_object* v___x_2628_; lean_object* v___f_2629_; lean_object* v___f_2630_; lean_object* v___f_2631_; lean_object* v___f_2632_; lean_object* v___f_2633_; lean_object* v___x_2634_; uint8_t v___x_2635_; lean_object* v___x_2636_; +v_close_2625_ = lean_ctor_get(v_inst_2621_, 1); +lean_inc_ref(v_close_2625_); +v_isClosed_2626_ = lean_ctor_get(v_inst_2621_, 2); +lean_inc_ref(v_isClosed_2626_); +v_tryRecv_2627_ = lean_ctor_get(v_inst_2621_, 4); +lean_inc_ref(v_tryRecv_2627_); +lean_dec_ref(v_inst_2621_); +lean_inc_n(v_body_2623_, 2); +v___x_2628_ = lean_apply_2(v_tryRecv_2627_, v_body_2623_, lean_box(0)); +lean_inc_ref(v_machine_2622_); +v___f_2629_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_2629_, 0, v_machine_2622_); +lean_inc_ref(v___f_2629_); +v___f_2630_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_2630_, 0, v___f_2629_); +v___f_2631_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__2___boxed), 6, 4); +lean_closure_set(v___f_2631_, 0, v_close_2625_); +lean_closure_set(v___f_2631_, 1, v_body_2623_); +lean_closure_set(v___f_2631_, 2, v___f_2630_); +lean_closure_set(v___f_2631_, 3, v___f_2629_); +v___f_2632_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___closed__0)); +v___f_2633_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___lam__1___boxed), 7, 5); +lean_closure_set(v___f_2633_, 0, v_body_2623_); +lean_closure_set(v___f_2633_, 1, v_machine_2622_); +lean_closure_set(v___f_2633_, 2, v_isClosed_2626_); +lean_closure_set(v___f_2633_, 3, v___f_2631_); +lean_closure_set(v___f_2633_, 4, v___f_2632_); +v___x_2634_ = lean_unsigned_to_nat(0u); +v___x_2635_ = 0; +v___x_2636_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2634_, v___x_2635_, v___x_2628_, v___f_2633_); +return v___x_2636_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___boxed(lean_object* v_inst_2637_, lean_object* v_machine_2638_, lean_object* v_body_2639_, lean_object* v_a_2640_){ +_start: +{ +lean_object* v_res_2641_; +v_res_2641_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg(v_inst_2637_, v_machine_2638_, v_body_2639_); +return v_res_2641_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody(lean_object* v_00_u03b2_2642_, lean_object* v_inst_2643_, lean_object* v_machine_2644_, lean_object* v_body_2645_){ +_start: +{ +lean_object* v___x_2647_; +v___x_2647_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg(v_inst_2643_, v_machine_2644_, v_body_2645_); +return v___x_2647_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___boxed(lean_object* v_00_u03b2_2648_, lean_object* v_inst_2649_, lean_object* v_machine_2650_, lean_object* v_body_2651_, lean_object* v_a_2652_){ +_start: +{ +lean_object* v_res_2653_; +v_res_2653_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody(v_00_u03b2_2648_, v_inst_2649_, v_machine_2650_, v_body_2651_); +return v_res_2653_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0(lean_object* v_val_2660_, lean_object* v_____r_2661_, lean_object* v_st_2662_){ +_start: +{ +lean_object* v_machine_2664_; lean_object* v_requestStream_2665_; lean_object* v_keepAliveTimeout_2666_; lean_object* v_currentTimeout_2667_; lean_object* v_headerTimeout_2668_; lean_object* v_response_2669_; lean_object* v_respStream_2670_; uint8_t v_requiresData_2671_; lean_object* v_expectData_2672_; uint8_t v_handlerDispatched_2673_; lean_object* v_pendingHead_2674_; lean_object* v___x_2676_; uint8_t v_isShared_2677_; uint8_t v_isSharedCheck_2756_; +v_machine_2664_ = lean_ctor_get(v_st_2662_, 0); +v_requestStream_2665_ = lean_ctor_get(v_st_2662_, 1); +v_keepAliveTimeout_2666_ = lean_ctor_get(v_st_2662_, 2); +v_currentTimeout_2667_ = lean_ctor_get(v_st_2662_, 3); +v_headerTimeout_2668_ = lean_ctor_get(v_st_2662_, 4); +v_response_2669_ = lean_ctor_get(v_st_2662_, 5); +v_respStream_2670_ = lean_ctor_get(v_st_2662_, 6); +v_requiresData_2671_ = lean_ctor_get_uint8(v_st_2662_, sizeof(void*)*9); +v_expectData_2672_ = lean_ctor_get(v_st_2662_, 7); +v_handlerDispatched_2673_ = lean_ctor_get_uint8(v_st_2662_, sizeof(void*)*9 + 1); +v_pendingHead_2674_ = lean_ctor_get(v_st_2662_, 8); +v_isSharedCheck_2756_ = !lean_is_exclusive(v_st_2662_); +if (v_isSharedCheck_2756_ == 0) +{ +v___x_2676_ = v_st_2662_; +v_isShared_2677_ = v_isSharedCheck_2756_; +goto v_resetjp_2675_; +} +else +{ +lean_inc(v_pendingHead_2674_); +lean_inc(v_expectData_2672_); +lean_inc(v_respStream_2670_); +lean_inc(v_response_2669_); +lean_inc(v_headerTimeout_2668_); +lean_inc(v_currentTimeout_2667_); +lean_inc(v_keepAliveTimeout_2666_); +lean_inc(v_requestStream_2665_); +lean_inc(v_machine_2664_); +lean_dec(v_st_2662_); +v___x_2676_ = lean_box(0); +v_isShared_2677_ = v_isSharedCheck_2756_; +goto v_resetjp_2675_; +} +v_resetjp_2675_: +{ +lean_object* v___y_2679_; lean_object* v_reader_2688_; lean_object* v_state_2689_; +v_reader_2688_ = lean_ctor_get(v_machine_2664_, 0); +lean_inc_ref(v_reader_2688_); +v_state_2689_ = lean_ctor_get(v_reader_2688_, 0); +lean_inc(v_state_2689_); +if (lean_obj_tag(v_state_2689_) == 6) +{ +lean_dec_ref(v_reader_2688_); +lean_dec_ref(v_val_2660_); +v___y_2679_ = v_machine_2664_; +goto v___jp_2678_; +} +else +{ +if (lean_obj_tag(v_state_2689_) == 7) +{ +lean_dec_ref(v_state_2689_); +lean_dec_ref(v_reader_2688_); +lean_dec_ref(v_val_2660_); +v___y_2679_ = v_machine_2664_; +goto v___jp_2678_; +} +else +{ +lean_object* v_input_2690_; lean_object* v_writer_2691_; lean_object* v_config_2692_; lean_object* v_events_2693_; lean_object* v_error_2694_; lean_object* v_instant_2695_; uint8_t v_keepAlive_2696_; uint8_t v_forcedFlush_2697_; lean_object* v___x_2699_; uint8_t v_isShared_2700_; uint8_t v_isSharedCheck_2754_; +v_input_2690_ = lean_ctor_get(v_reader_2688_, 1); +lean_inc_ref(v_input_2690_); +v_writer_2691_ = lean_ctor_get(v_machine_2664_, 1); +v_config_2692_ = lean_ctor_get(v_machine_2664_, 2); +v_events_2693_ = lean_ctor_get(v_machine_2664_, 3); +v_error_2694_ = lean_ctor_get(v_machine_2664_, 4); +v_instant_2695_ = lean_ctor_get(v_machine_2664_, 5); +v_keepAlive_2696_ = lean_ctor_get_uint8(v_machine_2664_, sizeof(void*)*6); +v_forcedFlush_2697_ = lean_ctor_get_uint8(v_machine_2664_, sizeof(void*)*6 + 1); +v_isSharedCheck_2754_ = !lean_is_exclusive(v_machine_2664_); +if (v_isSharedCheck_2754_ == 0) +{ +lean_object* v_unused_2755_; +v_unused_2755_ = lean_ctor_get(v_machine_2664_, 0); +lean_dec(v_unused_2755_); +v___x_2699_ = v_machine_2664_; +v_isShared_2700_ = v_isSharedCheck_2754_; +goto v_resetjp_2698_; +} +else +{ +lean_inc(v_instant_2695_); +lean_inc(v_error_2694_); +lean_inc(v_events_2693_); +lean_inc(v_config_2692_); +lean_inc(v_writer_2691_); +lean_dec(v_machine_2664_); +v___x_2699_ = lean_box(0); +v_isShared_2700_ = v_isSharedCheck_2754_; +goto v_resetjp_2698_; +} +v_resetjp_2698_: +{ +lean_object* v_messageHead_2701_; lean_object* v_messageCount_2702_; lean_object* v_bodyBytesRead_2703_; lean_object* v_headerBytesRead_2704_; uint8_t v_noMoreInput_2705_; lean_object* v___x_2707_; uint8_t v_isShared_2708_; uint8_t v_isSharedCheck_2751_; +v_messageHead_2701_ = lean_ctor_get(v_reader_2688_, 2); +v_messageCount_2702_ = lean_ctor_get(v_reader_2688_, 3); +v_bodyBytesRead_2703_ = lean_ctor_get(v_reader_2688_, 4); +v_headerBytesRead_2704_ = lean_ctor_get(v_reader_2688_, 5); +v_noMoreInput_2705_ = lean_ctor_get_uint8(v_reader_2688_, sizeof(void*)*6); +v_isSharedCheck_2751_ = !lean_is_exclusive(v_reader_2688_); +if (v_isSharedCheck_2751_ == 0) +{ +lean_object* v_unused_2752_; lean_object* v_unused_2753_; +v_unused_2752_ = lean_ctor_get(v_reader_2688_, 1); +lean_dec(v_unused_2752_); +v_unused_2753_ = lean_ctor_get(v_reader_2688_, 0); +lean_dec(v_unused_2753_); +v___x_2707_ = v_reader_2688_; +v_isShared_2708_ = v_isSharedCheck_2751_; +goto v_resetjp_2706_; +} +else +{ +lean_inc(v_headerBytesRead_2704_); +lean_inc(v_bodyBytesRead_2703_); +lean_inc(v_messageCount_2702_); +lean_inc(v_messageHead_2701_); +lean_dec(v_reader_2688_); +v___x_2707_ = lean_box(0); +v_isShared_2708_ = v_isSharedCheck_2751_; +goto v_resetjp_2706_; +} +v_resetjp_2706_: +{ +lean_object* v_array_2709_; lean_object* v_idx_2710_; uint8_t v___x_2711_; lean_object* v___y_2713_; lean_object* v___x_2742_; uint8_t v___x_2743_; +v_array_2709_ = lean_ctor_get(v_input_2690_, 0); +lean_inc_ref(v_array_2709_); +v_idx_2710_ = lean_ctor_get(v_input_2690_, 1); +lean_inc(v_idx_2710_); +lean_dec_ref(v_input_2690_); +v___x_2711_ = 0; +v___x_2742_ = lean_byte_array_size(v_array_2709_); +v___x_2743_ = lean_nat_dec_le(v___x_2742_, v_idx_2710_); +if (v___x_2743_ == 0) +{ +lean_object* v___x_2744_; lean_object* v___x_2745_; lean_object* v___x_2746_; lean_object* v___x_2747_; lean_object* v___x_2748_; lean_object* v___x_2749_; +v___x_2744_ = l_ByteArray_extract(v_array_2709_, v_idx_2710_, v___x_2742_); +lean_dec_ref(v_array_2709_); +v___x_2745_ = lean_unsigned_to_nat(0u); +v___x_2746_ = lean_byte_array_size(v___x_2744_); +v___x_2747_ = lean_byte_array_size(v_val_2660_); +v___x_2748_ = lean_byte_array_copy_slice(v_val_2660_, v___x_2745_, v___x_2744_, v___x_2746_, v___x_2747_, v___x_2743_); +lean_dec_ref(v_val_2660_); +v___x_2749_ = l_ByteArray_mkIterator(v___x_2748_); +v___y_2713_ = v___x_2749_; +goto v___jp_2712_; +} +else +{ +lean_object* v___x_2750_; +lean_dec(v_idx_2710_); +lean_dec_ref(v_array_2709_); +v___x_2750_ = l_ByteArray_mkIterator(v_val_2660_); +v___y_2713_ = v___x_2750_; +goto v___jp_2712_; +} +v___jp_2712_: +{ +lean_object* v_maxHeaderBytes_2714_; lean_object* v_maxStartLineLength_2715_; lean_object* v_maxChunkLineLength_2716_; lean_object* v_maxBodySize_2717_; lean_object* v_array_2718_; lean_object* v_idx_2719_; lean_object* v___x_2720_; lean_object* v___x_2721_; lean_object* v___x_2722_; lean_object* v___x_2723_; lean_object* v___x_2724_; uint8_t v___x_2725_; +v_maxHeaderBytes_2714_ = lean_ctor_get(v_config_2692_, 2); +v_maxStartLineLength_2715_ = lean_ctor_get(v_config_2692_, 5); +v_maxChunkLineLength_2716_ = lean_ctor_get(v_config_2692_, 13); +v_maxBodySize_2717_ = lean_ctor_get(v_config_2692_, 15); +v_array_2718_ = lean_ctor_get(v___y_2713_, 0); +v_idx_2719_ = lean_ctor_get(v___y_2713_, 1); +v___x_2720_ = lean_nat_add(v_maxBodySize_2717_, v_maxHeaderBytes_2714_); +v___x_2721_ = lean_nat_add(v___x_2720_, v_maxStartLineLength_2715_); +lean_dec(v___x_2720_); +v___x_2722_ = lean_nat_add(v___x_2721_, v_maxChunkLineLength_2716_); +lean_dec(v___x_2721_); +v___x_2723_ = lean_byte_array_size(v_array_2718_); +v___x_2724_ = lean_nat_sub(v___x_2723_, v_idx_2719_); +v___x_2725_ = lean_nat_dec_lt(v___x_2722_, v___x_2724_); +lean_dec(v___x_2724_); +lean_dec(v___x_2722_); +if (v___x_2725_ == 0) +{ +lean_object* v___x_2727_; +if (v_isShared_2708_ == 0) +{ +lean_ctor_set(v___x_2707_, 1, v___y_2713_); +v___x_2727_ = v___x_2707_; +goto v_reusejp_2726_; +} +else +{ +lean_object* v_reuseFailAlloc_2731_; +v_reuseFailAlloc_2731_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_2731_, 0, v_state_2689_); +lean_ctor_set(v_reuseFailAlloc_2731_, 1, v___y_2713_); +lean_ctor_set(v_reuseFailAlloc_2731_, 2, v_messageHead_2701_); +lean_ctor_set(v_reuseFailAlloc_2731_, 3, v_messageCount_2702_); +lean_ctor_set(v_reuseFailAlloc_2731_, 4, v_bodyBytesRead_2703_); +lean_ctor_set(v_reuseFailAlloc_2731_, 5, v_headerBytesRead_2704_); +lean_ctor_set_uint8(v_reuseFailAlloc_2731_, sizeof(void*)*6, v_noMoreInput_2705_); +v___x_2727_ = v_reuseFailAlloc_2731_; +goto v_reusejp_2726_; +} +v_reusejp_2726_: +{ +lean_object* v_machine_2729_; +if (v_isShared_2700_ == 0) +{ +lean_ctor_set(v___x_2699_, 0, v___x_2727_); +v_machine_2729_ = v___x_2699_; +goto v_reusejp_2728_; +} +else +{ +lean_object* v_reuseFailAlloc_2730_; +v_reuseFailAlloc_2730_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2730_, 0, v___x_2727_); +lean_ctor_set(v_reuseFailAlloc_2730_, 1, v_writer_2691_); +lean_ctor_set(v_reuseFailAlloc_2730_, 2, v_config_2692_); +lean_ctor_set(v_reuseFailAlloc_2730_, 3, v_events_2693_); +lean_ctor_set(v_reuseFailAlloc_2730_, 4, v_error_2694_); +lean_ctor_set(v_reuseFailAlloc_2730_, 5, v_instant_2695_); +lean_ctor_set_uint8(v_reuseFailAlloc_2730_, sizeof(void*)*6, v_keepAlive_2696_); +lean_ctor_set_uint8(v_reuseFailAlloc_2730_, sizeof(void*)*6 + 1, v_forcedFlush_2697_); +v_machine_2729_ = v_reuseFailAlloc_2730_; +goto v_reusejp_2728_; +} +v_reusejp_2728_: +{ +lean_ctor_set_uint8(v_machine_2729_, sizeof(void*)*6 + 2, v___x_2711_); +v___y_2679_ = v_machine_2729_; +goto v___jp_2678_; +} +} +} +else +{ +lean_object* v___x_2732_; lean_object* v___x_2733_; lean_object* v___x_2734_; lean_object* v___x_2736_; +lean_dec(v_error_2694_); +lean_dec(v_state_2689_); +v___x_2732_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__0)); +v___x_2733_ = lean_array_push(v_events_2693_, v___x_2732_); +v___x_2734_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__1)); +if (v_isShared_2708_ == 0) +{ +lean_ctor_set(v___x_2707_, 1, v___y_2713_); +lean_ctor_set(v___x_2707_, 0, v___x_2734_); +v___x_2736_ = v___x_2707_; +goto v_reusejp_2735_; +} +else +{ +lean_object* v_reuseFailAlloc_2741_; +v_reuseFailAlloc_2741_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_2741_, 0, v___x_2734_); +lean_ctor_set(v_reuseFailAlloc_2741_, 1, v___y_2713_); +lean_ctor_set(v_reuseFailAlloc_2741_, 2, v_messageHead_2701_); +lean_ctor_set(v_reuseFailAlloc_2741_, 3, v_messageCount_2702_); +lean_ctor_set(v_reuseFailAlloc_2741_, 4, v_bodyBytesRead_2703_); +lean_ctor_set(v_reuseFailAlloc_2741_, 5, v_headerBytesRead_2704_); +lean_ctor_set_uint8(v_reuseFailAlloc_2741_, sizeof(void*)*6, v_noMoreInput_2705_); +v___x_2736_ = v_reuseFailAlloc_2741_; +goto v_reusejp_2735_; +} +v_reusejp_2735_: +{ +lean_object* v___x_2737_; lean_object* v___x_2739_; +v___x_2737_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___closed__2)); +if (v_isShared_2700_ == 0) +{ +lean_ctor_set(v___x_2699_, 4, v___x_2737_); +lean_ctor_set(v___x_2699_, 3, v___x_2733_); +lean_ctor_set(v___x_2699_, 0, v___x_2736_); +v___x_2739_ = v___x_2699_; +goto v_reusejp_2738_; +} +else +{ +lean_object* v_reuseFailAlloc_2740_; +v_reuseFailAlloc_2740_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2740_, 0, v___x_2736_); +lean_ctor_set(v_reuseFailAlloc_2740_, 1, v_writer_2691_); +lean_ctor_set(v_reuseFailAlloc_2740_, 2, v_config_2692_); +lean_ctor_set(v_reuseFailAlloc_2740_, 3, v___x_2733_); +lean_ctor_set(v_reuseFailAlloc_2740_, 4, v___x_2737_); +lean_ctor_set(v_reuseFailAlloc_2740_, 5, v_instant_2695_); +lean_ctor_set_uint8(v_reuseFailAlloc_2740_, sizeof(void*)*6, v_keepAlive_2696_); +lean_ctor_set_uint8(v_reuseFailAlloc_2740_, sizeof(void*)*6 + 1, v_forcedFlush_2697_); +v___x_2739_ = v_reuseFailAlloc_2740_; +goto v_reusejp_2738_; +} +v_reusejp_2738_: +{ +lean_ctor_set_uint8(v___x_2739_, sizeof(void*)*6 + 2, v___x_2711_); +v___y_2679_ = v___x_2739_; +goto v___jp_2678_; +} +} +} +} +} +} +} +} +v___jp_2678_: +{ +lean_object* v___x_2681_; +if (v_isShared_2677_ == 0) +{ +lean_ctor_set(v___x_2676_, 0, v___y_2679_); +v___x_2681_ = v___x_2676_; +goto v_reusejp_2680_; +} +else +{ +lean_object* v_reuseFailAlloc_2687_; +v_reuseFailAlloc_2687_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2687_, 0, v___y_2679_); +lean_ctor_set(v_reuseFailAlloc_2687_, 1, v_requestStream_2665_); +lean_ctor_set(v_reuseFailAlloc_2687_, 2, v_keepAliveTimeout_2666_); +lean_ctor_set(v_reuseFailAlloc_2687_, 3, v_currentTimeout_2667_); +lean_ctor_set(v_reuseFailAlloc_2687_, 4, v_headerTimeout_2668_); +lean_ctor_set(v_reuseFailAlloc_2687_, 5, v_response_2669_); +lean_ctor_set(v_reuseFailAlloc_2687_, 6, v_respStream_2670_); +lean_ctor_set(v_reuseFailAlloc_2687_, 7, v_expectData_2672_); +lean_ctor_set(v_reuseFailAlloc_2687_, 8, v_pendingHead_2674_); +lean_ctor_set_uint8(v_reuseFailAlloc_2687_, sizeof(void*)*9, v_requiresData_2671_); +lean_ctor_set_uint8(v_reuseFailAlloc_2687_, sizeof(void*)*9 + 1, v_handlerDispatched_2673_); +v___x_2681_ = v_reuseFailAlloc_2687_; +goto v_reusejp_2680_; +} +v_reusejp_2680_: +{ +uint8_t v___x_2682_; lean_object* v___x_2683_; lean_object* v___x_2684_; lean_object* v___x_2685_; lean_object* v___x_2686_; +v___x_2682_ = 0; +v___x_2683_ = lean_box(v___x_2682_); +v___x_2684_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2684_, 0, v___x_2681_); +lean_ctor_set(v___x_2684_, 1, v___x_2683_); +v___x_2685_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2685_, 0, v___x_2684_); +v___x_2686_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2686_, 0, v___x_2685_); +return v___x_2686_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___boxed(lean_object* v_val_2757_, lean_object* v_____r_2758_, lean_object* v_st_2759_, lean_object* v___y_2760_){ +_start: +{ +lean_object* v_res_2761_; +v_res_2761_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0(v_val_2757_, v_____r_2758_, v_st_2759_); +return v_res_2761_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__1(lean_object* v_config_2762_, lean_object* v_machine_2763_, lean_object* v_requestStream_2764_, lean_object* v_currentTimeout_2765_, lean_object* v_response_2766_, lean_object* v_respStream_2767_, uint8_t v_requiresData_2768_, lean_object* v_expectData_2769_, uint8_t v_handlerDispatched_2770_, lean_object* v_pendingHead_2771_, lean_object* v___f_2772_, lean_object* v_x_2773_){ +_start: +{ +if (lean_obj_tag(v_x_2773_) == 0) +{ +lean_object* v_a_2775_; lean_object* v___x_2777_; uint8_t v_isShared_2778_; uint8_t v_isSharedCheck_2783_; +lean_dec_ref(v___f_2772_); +lean_dec(v_pendingHead_2771_); +lean_dec(v_expectData_2769_); +lean_dec(v_respStream_2767_); +lean_dec_ref(v_response_2766_); +lean_dec(v_currentTimeout_2765_); +lean_dec_ref(v_requestStream_2764_); +lean_dec_ref(v_machine_2763_); +v_a_2775_ = lean_ctor_get(v_x_2773_, 0); +v_isSharedCheck_2783_ = !lean_is_exclusive(v_x_2773_); +if (v_isSharedCheck_2783_ == 0) +{ +v___x_2777_ = v_x_2773_; +v_isShared_2778_ = v_isSharedCheck_2783_; +goto v_resetjp_2776_; +} +else +{ +lean_inc(v_a_2775_); +lean_dec(v_x_2773_); +v___x_2777_ = lean_box(0); +v_isShared_2778_ = v_isSharedCheck_2783_; +goto v_resetjp_2776_; +} +v_resetjp_2776_: +{ +lean_object* v___x_2780_; +if (v_isShared_2778_ == 0) +{ +v___x_2780_ = v___x_2777_; +goto v_reusejp_2779_; +} +else +{ +lean_object* v_reuseFailAlloc_2782_; +v_reuseFailAlloc_2782_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2782_, 0, v_a_2775_); +v___x_2780_ = v_reuseFailAlloc_2782_; +goto v_reusejp_2779_; +} +v_reusejp_2779_: +{ +lean_object* v___x_2781_; +v___x_2781_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2781_, 0, v___x_2780_); +return v___x_2781_; +} +} +} +else +{ +lean_object* v_a_2784_; lean_object* v_headerTimeout_2785_; lean_object* v_second_2786_; lean_object* v_nano_2787_; lean_object* v___x_2788_; lean_object* v___x_2789_; lean_object* v___x_2790_; lean_object* v_second_2791_; lean_object* v_nano_2792_; lean_object* v___x_2793_; lean_object* v___x_2794_; lean_object* v___x_2795_; lean_object* v___x_2796_; lean_object* v___x_2797_; lean_object* v___x_2798_; lean_object* v___x_2799_; lean_object* v___x_2800_; lean_object* v___x_2801_; lean_object* v___x_2802_; lean_object* v___x_2803_; lean_object* v___x_2804_; +v_a_2784_ = lean_ctor_get(v_x_2773_, 0); +lean_inc(v_a_2784_); +lean_dec_ref(v_x_2773_); +v_headerTimeout_2785_ = lean_ctor_get(v_config_2762_, 6); +v_second_2786_ = lean_ctor_get(v_a_2784_, 0); +lean_inc(v_second_2786_); +v_nano_2787_ = lean_ctor_get(v_a_2784_, 1); +lean_inc(v_nano_2787_); +lean_dec(v_a_2784_); +v___x_2788_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__2); +v___x_2789_ = lean_int_mul(v_headerTimeout_2785_, v___x_2788_); +v___x_2790_ = l_Std_Time_Duration_ofNanoseconds(v___x_2789_); +lean_dec(v___x_2789_); +v_second_2791_ = lean_ctor_get(v___x_2790_, 0); +lean_inc(v_second_2791_); +v_nano_2792_ = lean_ctor_get(v___x_2790_, 1); +lean_inc(v_nano_2792_); +lean_dec_ref(v___x_2790_); +v___x_2793_ = lean_box(0); +v___x_2794_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg___lam__11___closed__0); +v___x_2795_ = lean_int_mul(v_second_2786_, v___x_2794_); +lean_dec(v_second_2786_); +v___x_2796_ = lean_int_add(v___x_2795_, v_nano_2787_); +lean_dec(v_nano_2787_); +lean_dec(v___x_2795_); +v___x_2797_ = lean_int_mul(v_second_2791_, v___x_2794_); +lean_dec(v_second_2791_); +v___x_2798_ = lean_int_add(v___x_2797_, v_nano_2792_); +lean_dec(v_nano_2792_); +lean_dec(v___x_2797_); +v___x_2799_ = lean_int_add(v___x_2796_, v___x_2798_); +lean_dec(v___x_2798_); +lean_dec(v___x_2796_); +v___x_2800_ = l_Std_Time_Duration_ofNanoseconds(v___x_2799_); +lean_dec(v___x_2799_); +v___x_2801_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2801_, 0, v___x_2800_); +v___x_2802_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2802_, 0, v_machine_2763_); +lean_ctor_set(v___x_2802_, 1, v_requestStream_2764_); +lean_ctor_set(v___x_2802_, 2, v___x_2793_); +lean_ctor_set(v___x_2802_, 3, v_currentTimeout_2765_); +lean_ctor_set(v___x_2802_, 4, v___x_2801_); +lean_ctor_set(v___x_2802_, 5, v_response_2766_); +lean_ctor_set(v___x_2802_, 6, v_respStream_2767_); +lean_ctor_set(v___x_2802_, 7, v_expectData_2769_); +lean_ctor_set(v___x_2802_, 8, v_pendingHead_2771_); +lean_ctor_set_uint8(v___x_2802_, sizeof(void*)*9, v_requiresData_2768_); +lean_ctor_set_uint8(v___x_2802_, sizeof(void*)*9 + 1, v_handlerDispatched_2770_); +v___x_2803_ = lean_box(0); +v___x_2804_ = lean_apply_3(v___f_2772_, v___x_2803_, v___x_2802_, lean_box(0)); +return v___x_2804_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__1___boxed(lean_object* v_config_2805_, lean_object* v_machine_2806_, lean_object* v_requestStream_2807_, lean_object* v_currentTimeout_2808_, lean_object* v_response_2809_, lean_object* v_respStream_2810_, lean_object* v_requiresData_2811_, lean_object* v_expectData_2812_, lean_object* v_handlerDispatched_2813_, lean_object* v_pendingHead_2814_, lean_object* v___f_2815_, lean_object* v_x_2816_, lean_object* v___y_2817_){ +_start: +{ +uint8_t v_requiresData_boxed_2818_; uint8_t v_handlerDispatched_boxed_2819_; lean_object* v_res_2820_; +v_requiresData_boxed_2818_ = lean_unbox(v_requiresData_2811_); +v_handlerDispatched_boxed_2819_ = lean_unbox(v_handlerDispatched_2813_); +v_res_2820_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__1(v_config_2805_, v_machine_2806_, v_requestStream_2807_, v_currentTimeout_2808_, v_response_2809_, v_respStream_2810_, v_requiresData_boxed_2818_, v_expectData_2812_, v_handlerDispatched_boxed_2819_, v_pendingHead_2814_, v___f_2815_, v_x_2816_); +lean_dec_ref(v_config_2805_); +return v_res_2820_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2(lean_object* v_machine_2821_, lean_object* v_requestStream_2822_, lean_object* v_keepAliveTimeout_2823_, lean_object* v_currentTimeout_2824_, lean_object* v_headerTimeout_2825_, lean_object* v_response_2826_, uint8_t v_requiresData_2827_, lean_object* v_expectData_2828_, uint8_t v_handlerDispatched_2829_, lean_object* v_pendingHead_2830_, lean_object* v_____r_2831_){ +_start: +{ +lean_object* v_writer_2833_; lean_object* v_reader_2834_; lean_object* v_config_2835_; lean_object* v_events_2836_; lean_object* v_error_2837_; lean_object* v_instant_2838_; uint8_t v_keepAlive_2839_; uint8_t v_forcedFlush_2840_; uint8_t v_pullBodyStalled_2841_; lean_object* v___x_2843_; uint8_t v_isShared_2844_; uint8_t v_isSharedCheck_2871_; +v_writer_2833_ = lean_ctor_get(v_machine_2821_, 1); +v_reader_2834_ = lean_ctor_get(v_machine_2821_, 0); +v_config_2835_ = lean_ctor_get(v_machine_2821_, 2); +v_events_2836_ = lean_ctor_get(v_machine_2821_, 3); +v_error_2837_ = lean_ctor_get(v_machine_2821_, 4); +v_instant_2838_ = lean_ctor_get(v_machine_2821_, 5); +v_keepAlive_2839_ = lean_ctor_get_uint8(v_machine_2821_, sizeof(void*)*6); +v_forcedFlush_2840_ = lean_ctor_get_uint8(v_machine_2821_, sizeof(void*)*6 + 1); +v_pullBodyStalled_2841_ = lean_ctor_get_uint8(v_machine_2821_, sizeof(void*)*6 + 2); +v_isSharedCheck_2871_ = !lean_is_exclusive(v_machine_2821_); +if (v_isSharedCheck_2871_ == 0) +{ +v___x_2843_ = v_machine_2821_; +v_isShared_2844_ = v_isSharedCheck_2871_; +goto v_resetjp_2842_; +} +else +{ +lean_inc(v_instant_2838_); +lean_inc(v_error_2837_); +lean_inc(v_events_2836_); +lean_inc(v_config_2835_); +lean_inc(v_writer_2833_); +lean_inc(v_reader_2834_); +lean_dec(v_machine_2821_); +v___x_2843_ = lean_box(0); +v_isShared_2844_ = v_isSharedCheck_2871_; +goto v_resetjp_2842_; +} +v_resetjp_2842_: +{ +lean_object* v_userData_2845_; lean_object* v_outputData_2846_; lean_object* v_state_2847_; lean_object* v_knownSize_2848_; lean_object* v_messageHead_2849_; uint8_t v_sentMessage_2850_; uint8_t v_omitBody_2851_; lean_object* v_userDataBytes_2852_; lean_object* v___x_2854_; uint8_t v_isShared_2855_; uint8_t v_isSharedCheck_2870_; +v_userData_2845_ = lean_ctor_get(v_writer_2833_, 0); +v_outputData_2846_ = lean_ctor_get(v_writer_2833_, 1); +v_state_2847_ = lean_ctor_get(v_writer_2833_, 2); +v_knownSize_2848_ = lean_ctor_get(v_writer_2833_, 3); +v_messageHead_2849_ = lean_ctor_get(v_writer_2833_, 4); +v_sentMessage_2850_ = lean_ctor_get_uint8(v_writer_2833_, sizeof(void*)*6); +v_omitBody_2851_ = lean_ctor_get_uint8(v_writer_2833_, sizeof(void*)*6 + 2); +v_userDataBytes_2852_ = lean_ctor_get(v_writer_2833_, 5); +v_isSharedCheck_2870_ = !lean_is_exclusive(v_writer_2833_); +if (v_isSharedCheck_2870_ == 0) +{ +v___x_2854_ = v_writer_2833_; +v_isShared_2855_ = v_isSharedCheck_2870_; +goto v_resetjp_2853_; +} +else +{ +lean_inc(v_userDataBytes_2852_); +lean_inc(v_messageHead_2849_); +lean_inc(v_knownSize_2848_); +lean_inc(v_state_2847_); +lean_inc(v_outputData_2846_); +lean_inc(v_userData_2845_); +lean_dec(v_writer_2833_); +v___x_2854_ = lean_box(0); +v_isShared_2855_ = v_isSharedCheck_2870_; +goto v_resetjp_2853_; +} +v_resetjp_2853_: +{ +uint8_t v___x_2856_; lean_object* v___x_2858_; +v___x_2856_ = 1; +if (v_isShared_2855_ == 0) +{ +v___x_2858_ = v___x_2854_; +goto v_reusejp_2857_; +} +else +{ +lean_object* v_reuseFailAlloc_2869_; +v_reuseFailAlloc_2869_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2869_, 0, v_userData_2845_); +lean_ctor_set(v_reuseFailAlloc_2869_, 1, v_outputData_2846_); +lean_ctor_set(v_reuseFailAlloc_2869_, 2, v_state_2847_); +lean_ctor_set(v_reuseFailAlloc_2869_, 3, v_knownSize_2848_); +lean_ctor_set(v_reuseFailAlloc_2869_, 4, v_messageHead_2849_); +lean_ctor_set(v_reuseFailAlloc_2869_, 5, v_userDataBytes_2852_); +lean_ctor_set_uint8(v_reuseFailAlloc_2869_, sizeof(void*)*6, v_sentMessage_2850_); +lean_ctor_set_uint8(v_reuseFailAlloc_2869_, sizeof(void*)*6 + 2, v_omitBody_2851_); +v___x_2858_ = v_reuseFailAlloc_2869_; +goto v_reusejp_2857_; +} +v_reusejp_2857_: +{ +lean_object* v___x_2860_; +lean_ctor_set_uint8(v___x_2858_, sizeof(void*)*6 + 1, v___x_2856_); +if (v_isShared_2844_ == 0) +{ +lean_ctor_set(v___x_2843_, 1, v___x_2858_); +v___x_2860_ = v___x_2843_; +goto v_reusejp_2859_; +} +else +{ +lean_object* v_reuseFailAlloc_2868_; +v_reuseFailAlloc_2868_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2868_, 0, v_reader_2834_); +lean_ctor_set(v_reuseFailAlloc_2868_, 1, v___x_2858_); +lean_ctor_set(v_reuseFailAlloc_2868_, 2, v_config_2835_); +lean_ctor_set(v_reuseFailAlloc_2868_, 3, v_events_2836_); +lean_ctor_set(v_reuseFailAlloc_2868_, 4, v_error_2837_); +lean_ctor_set(v_reuseFailAlloc_2868_, 5, v_instant_2838_); +lean_ctor_set_uint8(v_reuseFailAlloc_2868_, sizeof(void*)*6, v_keepAlive_2839_); +lean_ctor_set_uint8(v_reuseFailAlloc_2868_, sizeof(void*)*6 + 1, v_forcedFlush_2840_); +lean_ctor_set_uint8(v_reuseFailAlloc_2868_, sizeof(void*)*6 + 2, v_pullBodyStalled_2841_); +v___x_2860_ = v_reuseFailAlloc_2868_; +goto v_reusejp_2859_; +} +v_reusejp_2859_: +{ +lean_object* v___x_2861_; lean_object* v___x_2862_; uint8_t v___x_2863_; lean_object* v___x_2864_; lean_object* v___x_2865_; lean_object* v___x_2866_; lean_object* v___x_2867_; +v___x_2861_ = lean_box(0); +v___x_2862_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2862_, 0, v___x_2860_); +lean_ctor_set(v___x_2862_, 1, v_requestStream_2822_); +lean_ctor_set(v___x_2862_, 2, v_keepAliveTimeout_2823_); +lean_ctor_set(v___x_2862_, 3, v_currentTimeout_2824_); +lean_ctor_set(v___x_2862_, 4, v_headerTimeout_2825_); +lean_ctor_set(v___x_2862_, 5, v_response_2826_); +lean_ctor_set(v___x_2862_, 6, v___x_2861_); +lean_ctor_set(v___x_2862_, 7, v_expectData_2828_); +lean_ctor_set(v___x_2862_, 8, v_pendingHead_2830_); +lean_ctor_set_uint8(v___x_2862_, sizeof(void*)*9, v_requiresData_2827_); +lean_ctor_set_uint8(v___x_2862_, sizeof(void*)*9 + 1, v_handlerDispatched_2829_); +v___x_2863_ = 0; +v___x_2864_ = lean_box(v___x_2863_); +v___x_2865_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2865_, 0, v___x_2862_); +lean_ctor_set(v___x_2865_, 1, v___x_2864_); +v___x_2866_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2866_, 0, v___x_2865_); +v___x_2867_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2867_, 0, v___x_2866_); +return v___x_2867_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2___boxed(lean_object* v_machine_2872_, lean_object* v_requestStream_2873_, lean_object* v_keepAliveTimeout_2874_, lean_object* v_currentTimeout_2875_, lean_object* v_headerTimeout_2876_, lean_object* v_response_2877_, lean_object* v_requiresData_2878_, lean_object* v_expectData_2879_, lean_object* v_handlerDispatched_2880_, lean_object* v_pendingHead_2881_, lean_object* v_____r_2882_, lean_object* v___y_2883_){ +_start: +{ +uint8_t v_requiresData_boxed_2884_; uint8_t v_handlerDispatched_boxed_2885_; lean_object* v_res_2886_; +v_requiresData_boxed_2884_ = lean_unbox(v_requiresData_2878_); +v_handlerDispatched_boxed_2885_ = lean_unbox(v_handlerDispatched_2880_); +v_res_2886_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2(v_machine_2872_, v_requestStream_2873_, v_keepAliveTimeout_2874_, v_currentTimeout_2875_, v_headerTimeout_2876_, v_response_2877_, v_requiresData_boxed_2884_, v_expectData_2879_, v_handlerDispatched_boxed_2885_, v_pendingHead_2881_, v_____r_2882_); +return v_res_2886_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3(lean_object* v___f_2887_, lean_object* v_x_2888_){ +_start: +{ +if (lean_obj_tag(v_x_2888_) == 0) +{ +lean_object* v_a_2890_; lean_object* v___x_2892_; uint8_t v_isShared_2893_; uint8_t v_isSharedCheck_2898_; +lean_dec_ref(v___f_2887_); +v_a_2890_ = lean_ctor_get(v_x_2888_, 0); +v_isSharedCheck_2898_ = !lean_is_exclusive(v_x_2888_); +if (v_isSharedCheck_2898_ == 0) +{ +v___x_2892_ = v_x_2888_; +v_isShared_2893_ = v_isSharedCheck_2898_; +goto v_resetjp_2891_; +} +else +{ +lean_inc(v_a_2890_); +lean_dec(v_x_2888_); +v___x_2892_ = lean_box(0); +v_isShared_2893_ = v_isSharedCheck_2898_; +goto v_resetjp_2891_; +} +v_resetjp_2891_: +{ +lean_object* v___x_2895_; +if (v_isShared_2893_ == 0) +{ +v___x_2895_ = v___x_2892_; +goto v_reusejp_2894_; +} +else +{ +lean_object* v_reuseFailAlloc_2897_; +v_reuseFailAlloc_2897_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2897_, 0, v_a_2890_); +v___x_2895_ = v_reuseFailAlloc_2897_; +goto v_reusejp_2894_; +} +v_reusejp_2894_: +{ +lean_object* v___x_2896_; +v___x_2896_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2896_, 0, v___x_2895_); +return v___x_2896_; +} +} +} +else +{ +lean_object* v_a_2899_; lean_object* v___x_2900_; +v_a_2899_ = lean_ctor_get(v_x_2888_, 0); +lean_inc(v_a_2899_); +lean_dec_ref(v_x_2888_); +v___x_2900_ = lean_apply_2(v___f_2887_, v_a_2899_, lean_box(0)); +return v___x_2900_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3___boxed(lean_object* v___f_2901_, lean_object* v_x_2902_, lean_object* v___y_2903_){ +_start: +{ +lean_object* v_res_2904_; +v_res_2904_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3(v___f_2901_, v_x_2902_); +return v_res_2904_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4(lean_object* v_close_2905_, lean_object* v_val_2906_, lean_object* v___f_2907_, lean_object* v___f_2908_, lean_object* v_x_2909_){ +_start: +{ +if (lean_obj_tag(v_x_2909_) == 0) +{ +lean_object* v_a_2911_; lean_object* v___x_2913_; uint8_t v_isShared_2914_; uint8_t v_isSharedCheck_2919_; +lean_dec_ref(v___f_2908_); +lean_dec_ref(v___f_2907_); +lean_dec(v_val_2906_); +lean_dec_ref(v_close_2905_); +v_a_2911_ = lean_ctor_get(v_x_2909_, 0); +v_isSharedCheck_2919_ = !lean_is_exclusive(v_x_2909_); +if (v_isSharedCheck_2919_ == 0) +{ +v___x_2913_ = v_x_2909_; +v_isShared_2914_ = v_isSharedCheck_2919_; +goto v_resetjp_2912_; +} +else +{ +lean_inc(v_a_2911_); +lean_dec(v_x_2909_); +v___x_2913_ = lean_box(0); +v_isShared_2914_ = v_isSharedCheck_2919_; +goto v_resetjp_2912_; +} +v_resetjp_2912_: +{ +lean_object* v___x_2916_; +if (v_isShared_2914_ == 0) +{ +v___x_2916_ = v___x_2913_; +goto v_reusejp_2915_; +} +else +{ +lean_object* v_reuseFailAlloc_2918_; +v_reuseFailAlloc_2918_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2918_, 0, v_a_2911_); +v___x_2916_ = v_reuseFailAlloc_2918_; +goto v_reusejp_2915_; +} +v_reusejp_2915_: +{ +lean_object* v___x_2917_; +v___x_2917_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2917_, 0, v___x_2916_); +return v___x_2917_; +} +} +} +else +{ +lean_object* v_a_2920_; uint8_t v___x_2921_; +v_a_2920_ = lean_ctor_get(v_x_2909_, 0); +lean_inc(v_a_2920_); +lean_dec_ref(v_x_2909_); +v___x_2921_ = lean_unbox(v_a_2920_); +if (v___x_2921_ == 0) +{ +lean_object* v___x_2922_; lean_object* v___x_2923_; uint8_t v___x_2924_; lean_object* v___x_2925_; +lean_dec_ref(v___f_2908_); +v___x_2922_ = lean_apply_2(v_close_2905_, v_val_2906_, lean_box(0)); +v___x_2923_ = lean_unsigned_to_nat(0u); +v___x_2924_ = lean_unbox(v_a_2920_); +lean_dec(v_a_2920_); +v___x_2925_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2923_, v___x_2924_, v___x_2922_, v___f_2907_); +return v___x_2925_; +} +else +{ +lean_object* v___x_2926_; lean_object* v___x_2927_; +lean_dec(v_a_2920_); +lean_dec_ref(v___f_2907_); +lean_dec(v_val_2906_); +lean_dec_ref(v_close_2905_); +v___x_2926_ = lean_box(0); +v___x_2927_ = lean_apply_2(v___f_2908_, v___x_2926_, lean_box(0)); +return v___x_2927_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4___boxed(lean_object* v_close_2928_, lean_object* v_val_2929_, lean_object* v___f_2930_, lean_object* v___f_2931_, lean_object* v_x_2932_, lean_object* v___y_2933_){ +_start: +{ +lean_object* v_res_2934_; +v_res_2934_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4(v_close_2928_, v_val_2929_, v___f_2930_, v___f_2931_, v_x_2932_); +return v_res_2934_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6(lean_object* v_inst_2935_, lean_object* v_handler_2936_, lean_object* v_x_2937_){ +_start: +{ +if (lean_obj_tag(v_x_2937_) == 0) +{ +lean_object* v_a_2939_; lean_object* v_onFailure_2940_; lean_object* v___x_2941_; +v_a_2939_ = lean_ctor_get(v_x_2937_, 0); +lean_inc(v_a_2939_); +lean_dec_ref(v_x_2937_); +v_onFailure_2940_ = lean_ctor_get(v_inst_2935_, 2); +lean_inc_ref(v_onFailure_2940_); +lean_dec_ref(v_inst_2935_); +v___x_2941_ = lean_apply_3(v_onFailure_2940_, v_handler_2936_, v_a_2939_, lean_box(0)); +return v___x_2941_; +} +else +{ +lean_object* v___x_2942_; +lean_dec(v_handler_2936_); +lean_dec_ref(v_inst_2935_); +v___x_2942_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2942_, 0, v_x_2937_); +return v___x_2942_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6___boxed(lean_object* v_inst_2943_, lean_object* v_handler_2944_, lean_object* v_x_2945_, lean_object* v___y_2946_){ +_start: +{ +lean_object* v_res_2947_; +v_res_2947_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6(v_inst_2943_, v_handler_2944_, v_x_2945_); +return v_res_2947_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7(lean_object* v_st_2948_, lean_object* v_____r_2949_){ +_start: +{ +uint8_t v___x_2951_; lean_object* v___x_2952_; lean_object* v___x_2953_; lean_object* v___x_2954_; lean_object* v___x_2955_; +v___x_2951_ = 0; +v___x_2952_ = lean_box(v___x_2951_); +v___x_2953_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2953_, 0, v_st_2948_); +lean_ctor_set(v___x_2953_, 1, v___x_2952_); +v___x_2954_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2954_, 0, v___x_2953_); +v___x_2955_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2955_, 0, v___x_2954_); +return v___x_2955_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7___boxed(lean_object* v_st_2956_, lean_object* v_____r_2957_, lean_object* v___y_2958_){ +_start: +{ +lean_object* v_res_2959_; +v_res_2959_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7(v_st_2956_, v_____r_2957_); +return v_res_2959_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8(lean_object* v_requestStream_2960_, lean_object* v___f_2961_, lean_object* v___f_2962_, lean_object* v_x_2963_){ +_start: +{ +if (lean_obj_tag(v_x_2963_) == 0) +{ +lean_object* v_a_2965_; lean_object* v___x_2967_; uint8_t v_isShared_2968_; uint8_t v_isSharedCheck_2973_; +lean_dec_ref(v___f_2962_); +lean_dec_ref(v___f_2961_); +lean_dec_ref(v_requestStream_2960_); +v_a_2965_ = lean_ctor_get(v_x_2963_, 0); +v_isSharedCheck_2973_ = !lean_is_exclusive(v_x_2963_); +if (v_isSharedCheck_2973_ == 0) +{ +v___x_2967_ = v_x_2963_; +v_isShared_2968_ = v_isSharedCheck_2973_; +goto v_resetjp_2966_; +} +else +{ +lean_inc(v_a_2965_); +lean_dec(v_x_2963_); +v___x_2967_ = lean_box(0); +v_isShared_2968_ = v_isSharedCheck_2973_; +goto v_resetjp_2966_; +} +v_resetjp_2966_: +{ +lean_object* v___x_2970_; +if (v_isShared_2968_ == 0) +{ +v___x_2970_ = v___x_2967_; +goto v_reusejp_2969_; +} +else +{ +lean_object* v_reuseFailAlloc_2972_; +v_reuseFailAlloc_2972_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2972_, 0, v_a_2965_); +v___x_2970_ = v_reuseFailAlloc_2972_; +goto v_reusejp_2969_; +} +v_reusejp_2969_: +{ +lean_object* v___x_2971_; +v___x_2971_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2971_, 0, v___x_2970_); +return v___x_2971_; +} +} +} +else +{ +lean_object* v_a_2974_; uint8_t v___x_2975_; +v_a_2974_ = lean_ctor_get(v_x_2963_, 0); +lean_inc(v_a_2974_); +lean_dec_ref(v_x_2963_); +v___x_2975_ = lean_unbox(v_a_2974_); +if (v___x_2975_ == 0) +{ +lean_object* v___x_2976_; lean_object* v___x_2977_; uint8_t v___x_2978_; lean_object* v___x_2979_; +lean_dec_ref(v___f_2962_); +v___x_2976_ = l_Std_Http_Body_Stream_close(v_requestStream_2960_); +v___x_2977_ = lean_unsigned_to_nat(0u); +v___x_2978_ = lean_unbox(v_a_2974_); +lean_dec(v_a_2974_); +v___x_2979_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2977_, v___x_2978_, v___x_2976_, v___f_2961_); +return v___x_2979_; +} +else +{ +lean_object* v___x_2980_; lean_object* v___x_2981_; +lean_dec(v_a_2974_); +lean_dec_ref(v___f_2961_); +lean_dec_ref(v_requestStream_2960_); +v___x_2980_ = lean_box(0); +v___x_2981_ = lean_apply_2(v___f_2962_, v___x_2980_, lean_box(0)); +return v___x_2981_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8___boxed(lean_object* v_requestStream_2982_, lean_object* v___f_2983_, lean_object* v___f_2984_, lean_object* v_x_2985_, lean_object* v___y_2986_){ +_start: +{ +lean_object* v_res_2987_; +v_res_2987_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8(v_requestStream_2982_, v___f_2983_, v___f_2984_, v_x_2985_); +return v_res_2987_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5(uint8_t v_final_2988_, lean_object* v___f_2989_, lean_object* v___f_2990_, lean_object* v_requestStream_2991_, lean_object* v___f_2992_, lean_object* v_x_2993_){ +_start: +{ +if (lean_obj_tag(v_x_2993_) == 0) +{ +lean_object* v_a_2995_; lean_object* v___x_2997_; uint8_t v_isShared_2998_; uint8_t v_isSharedCheck_3003_; +lean_dec_ref(v___f_2992_); +lean_dec_ref(v_requestStream_2991_); +lean_dec_ref(v___f_2990_); +lean_dec_ref(v___f_2989_); +v_a_2995_ = lean_ctor_get(v_x_2993_, 0); +v_isSharedCheck_3003_ = !lean_is_exclusive(v_x_2993_); +if (v_isSharedCheck_3003_ == 0) +{ +v___x_2997_ = v_x_2993_; +v_isShared_2998_ = v_isSharedCheck_3003_; +goto v_resetjp_2996_; +} +else +{ +lean_inc(v_a_2995_); +lean_dec(v_x_2993_); +v___x_2997_ = lean_box(0); +v_isShared_2998_ = v_isSharedCheck_3003_; +goto v_resetjp_2996_; +} +v_resetjp_2996_: +{ +lean_object* v___x_3000_; +if (v_isShared_2998_ == 0) +{ +v___x_3000_ = v___x_2997_; +goto v_reusejp_2999_; +} +else +{ +lean_object* v_reuseFailAlloc_3002_; +v_reuseFailAlloc_3002_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3002_, 0, v_a_2995_); +v___x_3000_ = v_reuseFailAlloc_3002_; +goto v_reusejp_2999_; +} +v_reusejp_2999_: +{ +lean_object* v___x_3001_; +v___x_3001_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3001_, 0, v___x_3000_); +return v___x_3001_; +} +} +} +else +{ +lean_dec_ref(v_x_2993_); +if (v_final_2988_ == 0) +{ +lean_object* v___x_3004_; lean_object* v___x_3005_; +lean_dec_ref(v___f_2992_); +lean_dec_ref(v_requestStream_2991_); +lean_dec_ref(v___f_2990_); +v___x_3004_ = lean_box(0); +v___x_3005_ = lean_apply_2(v___f_2989_, v___x_3004_, lean_box(0)); +return v___x_3005_; +} +else +{ +lean_object* v___x_3006_; lean_object* v___f_3007_; lean_object* v___f_3008_; lean_object* v___x_3009_; lean_object* v___x_3010_; lean_object* v___x_6977__overap_3011_; lean_object* v___x_3012_; lean_object* v___x_3013_; uint8_t v___x_3014_; lean_object* v___x_3015_; +lean_dec_ref(v___f_2989_); +v___x_3006_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_3007_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_3008_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_3009_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_3010_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_3010_, 0, lean_box(0)); +lean_closure_set(v___x_3010_, 1, lean_box(0)); +lean_closure_set(v___x_3010_, 2, lean_box(0)); +lean_closure_set(v___x_3010_, 3, v___x_3006_); +lean_closure_set(v___x_3010_, 4, lean_box(0)); +lean_closure_set(v___x_3010_, 5, lean_box(0)); +lean_closure_set(v___x_3010_, 6, v___x_3009_); +lean_closure_set(v___x_3010_, 7, v___f_2990_); +v___x_6977__overap_3011_ = l_Std_Mutex_atomically___redArg(v___x_3006_, v___f_3007_, v___f_3008_, v_requestStream_2991_, v___x_3010_); +v___x_3012_ = lean_apply_1(v___x_6977__overap_3011_, lean_box(0)); +v___x_3013_ = lean_unsigned_to_nat(0u); +v___x_3014_ = 0; +v___x_3015_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3013_, v___x_3014_, v___x_3012_, v___f_2992_); +return v___x_3015_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5___boxed(lean_object* v_final_3016_, lean_object* v___f_3017_, lean_object* v___f_3018_, lean_object* v_requestStream_3019_, lean_object* v___f_3020_, lean_object* v_x_3021_, lean_object* v___y_3022_){ +_start: +{ +uint8_t v_final_boxed_3023_; lean_object* v_res_3024_; +v_final_boxed_3023_ = lean_unbox(v_final_3016_); +v_res_3024_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5(v_final_boxed_3023_, v___f_3017_, v___f_3018_, v_requestStream_3019_, v___f_3020_, v_x_3021_); +return v_res_3024_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9(lean_object* v_state_3025_, lean_object* v_x_3026_){ +_start: +{ +if (lean_obj_tag(v_x_3026_) == 0) +{ +lean_object* v_a_3028_; lean_object* v___x_3030_; uint8_t v_isShared_3031_; uint8_t v_isSharedCheck_3036_; +lean_dec_ref(v_state_3025_); +v_a_3028_ = lean_ctor_get(v_x_3026_, 0); +v_isSharedCheck_3036_ = !lean_is_exclusive(v_x_3026_); +if (v_isSharedCheck_3036_ == 0) +{ +v___x_3030_ = v_x_3026_; +v_isShared_3031_ = v_isSharedCheck_3036_; +goto v_resetjp_3029_; +} +else +{ +lean_inc(v_a_3028_); +lean_dec(v_x_3026_); +v___x_3030_ = lean_box(0); +v_isShared_3031_ = v_isSharedCheck_3036_; +goto v_resetjp_3029_; +} +v_resetjp_3029_: +{ +lean_object* v___x_3033_; +if (v_isShared_3031_ == 0) +{ +v___x_3033_ = v___x_3030_; +goto v_reusejp_3032_; +} +else +{ +lean_object* v_reuseFailAlloc_3035_; +v_reuseFailAlloc_3035_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3035_, 0, v_a_3028_); +v___x_3033_ = v_reuseFailAlloc_3035_; +goto v_reusejp_3032_; +} +v_reusejp_3032_: +{ +lean_object* v___x_3034_; +v___x_3034_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3034_, 0, v___x_3033_); +return v___x_3034_; +} +} +} +else +{ +lean_object* v___x_3038_; uint8_t v_isShared_3039_; uint8_t v_isSharedCheck_3066_; +v_isSharedCheck_3066_ = !lean_is_exclusive(v_x_3026_); +if (v_isSharedCheck_3066_ == 0) +{ +lean_object* v_unused_3067_; +v_unused_3067_ = lean_ctor_get(v_x_3026_, 0); +lean_dec(v_unused_3067_); +v___x_3038_ = v_x_3026_; +v_isShared_3039_ = v_isSharedCheck_3066_; +goto v_resetjp_3037_; +} +else +{ +lean_dec(v_x_3026_); +v___x_3038_ = lean_box(0); +v_isShared_3039_ = v_isSharedCheck_3066_; +goto v_resetjp_3037_; +} +v_resetjp_3037_: +{ +lean_object* v_machine_3040_; lean_object* v_requestStream_3041_; lean_object* v_keepAliveTimeout_3042_; lean_object* v_currentTimeout_3043_; lean_object* v_headerTimeout_3044_; lean_object* v_response_3045_; lean_object* v_respStream_3046_; uint8_t v_requiresData_3047_; lean_object* v_expectData_3048_; lean_object* v_pendingHead_3049_; lean_object* v___x_3051_; uint8_t v_isShared_3052_; uint8_t v_isSharedCheck_3065_; +v_machine_3040_ = lean_ctor_get(v_state_3025_, 0); +v_requestStream_3041_ = lean_ctor_get(v_state_3025_, 1); +v_keepAliveTimeout_3042_ = lean_ctor_get(v_state_3025_, 2); +v_currentTimeout_3043_ = lean_ctor_get(v_state_3025_, 3); +v_headerTimeout_3044_ = lean_ctor_get(v_state_3025_, 4); +v_response_3045_ = lean_ctor_get(v_state_3025_, 5); +v_respStream_3046_ = lean_ctor_get(v_state_3025_, 6); +v_requiresData_3047_ = lean_ctor_get_uint8(v_state_3025_, sizeof(void*)*9); +v_expectData_3048_ = lean_ctor_get(v_state_3025_, 7); +v_pendingHead_3049_ = lean_ctor_get(v_state_3025_, 8); +v_isSharedCheck_3065_ = !lean_is_exclusive(v_state_3025_); +if (v_isSharedCheck_3065_ == 0) +{ +v___x_3051_ = v_state_3025_; +v_isShared_3052_ = v_isSharedCheck_3065_; +goto v_resetjp_3050_; +} +else +{ +lean_inc(v_pendingHead_3049_); +lean_inc(v_expectData_3048_); +lean_inc(v_respStream_3046_); +lean_inc(v_response_3045_); +lean_inc(v_headerTimeout_3044_); +lean_inc(v_currentTimeout_3043_); +lean_inc(v_keepAliveTimeout_3042_); +lean_inc(v_requestStream_3041_); +lean_inc(v_machine_3040_); +lean_dec(v_state_3025_); +v___x_3051_ = lean_box(0); +v_isShared_3052_ = v_isSharedCheck_3065_; +goto v_resetjp_3050_; +} +v_resetjp_3050_: +{ +lean_object* v___x_3053_; lean_object* v___x_3054_; uint8_t v___x_3055_; lean_object* v___x_3057_; +v___x_3053_ = lean_box(52); +v___x_3054_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_3040_, v___x_3053_); +v___x_3055_ = 0; +if (v_isShared_3052_ == 0) +{ +lean_ctor_set(v___x_3051_, 0, v___x_3054_); +v___x_3057_ = v___x_3051_; +goto v_reusejp_3056_; +} +else +{ +lean_object* v_reuseFailAlloc_3064_; +v_reuseFailAlloc_3064_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3064_, 0, v___x_3054_); +lean_ctor_set(v_reuseFailAlloc_3064_, 1, v_requestStream_3041_); +lean_ctor_set(v_reuseFailAlloc_3064_, 2, v_keepAliveTimeout_3042_); +lean_ctor_set(v_reuseFailAlloc_3064_, 3, v_currentTimeout_3043_); +lean_ctor_set(v_reuseFailAlloc_3064_, 4, v_headerTimeout_3044_); +lean_ctor_set(v_reuseFailAlloc_3064_, 5, v_response_3045_); +lean_ctor_set(v_reuseFailAlloc_3064_, 6, v_respStream_3046_); +lean_ctor_set(v_reuseFailAlloc_3064_, 7, v_expectData_3048_); +lean_ctor_set(v_reuseFailAlloc_3064_, 8, v_pendingHead_3049_); +lean_ctor_set_uint8(v_reuseFailAlloc_3064_, sizeof(void*)*9, v_requiresData_3047_); +v___x_3057_ = v_reuseFailAlloc_3064_; +goto v_reusejp_3056_; +} +v_reusejp_3056_: +{ +lean_object* v___x_3058_; lean_object* v___x_3059_; lean_object* v___x_3061_; +lean_ctor_set_uint8(v___x_3057_, sizeof(void*)*9 + 1, v___x_3055_); +v___x_3058_ = lean_box(v___x_3055_); +v___x_3059_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3059_, 0, v___x_3057_); +lean_ctor_set(v___x_3059_, 1, v___x_3058_); +if (v_isShared_3039_ == 0) +{ +lean_ctor_set(v___x_3038_, 0, v___x_3059_); +v___x_3061_ = v___x_3038_; +goto v_reusejp_3060_; +} +else +{ +lean_object* v_reuseFailAlloc_3063_; +v_reuseFailAlloc_3063_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3063_, 0, v___x_3059_); +v___x_3061_ = v_reuseFailAlloc_3063_; +goto v_reusejp_3060_; +} +v_reusejp_3060_: +{ +lean_object* v___x_3062_; +v___x_3062_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3062_, 0, v___x_3061_); +return v___x_3062_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9___boxed(lean_object* v_state_3068_, lean_object* v_x_3069_, lean_object* v___y_3070_){ +_start: +{ +lean_object* v_res_3071_; +v_res_3071_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9(v_state_3068_, v_x_3069_); +return v_res_3071_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10(lean_object* v_machine_3072_, lean_object* v_requestStream_3073_, lean_object* v_keepAliveTimeout_3074_, lean_object* v_currentTimeout_3075_, lean_object* v_headerTimeout_3076_, lean_object* v_response_3077_, lean_object* v_respStream_3078_, uint8_t v_requiresData_3079_, lean_object* v_expectData_3080_, lean_object* v_pendingHead_3081_, lean_object* v_____r_3082_){ +_start: +{ +uint8_t v___x_3084_; lean_object* v___x_3085_; lean_object* v___x_3086_; lean_object* v___x_3087_; lean_object* v___x_3088_; lean_object* v___x_3089_; +v___x_3084_ = 0; +v___x_3085_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3085_, 0, v_machine_3072_); +lean_ctor_set(v___x_3085_, 1, v_requestStream_3073_); +lean_ctor_set(v___x_3085_, 2, v_keepAliveTimeout_3074_); +lean_ctor_set(v___x_3085_, 3, v_currentTimeout_3075_); +lean_ctor_set(v___x_3085_, 4, v_headerTimeout_3076_); +lean_ctor_set(v___x_3085_, 5, v_response_3077_); +lean_ctor_set(v___x_3085_, 6, v_respStream_3078_); +lean_ctor_set(v___x_3085_, 7, v_expectData_3080_); +lean_ctor_set(v___x_3085_, 8, v_pendingHead_3081_); +lean_ctor_set_uint8(v___x_3085_, sizeof(void*)*9, v_requiresData_3079_); +lean_ctor_set_uint8(v___x_3085_, sizeof(void*)*9 + 1, v___x_3084_); +v___x_3086_ = lean_box(v___x_3084_); +v___x_3087_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3087_, 0, v___x_3085_); +lean_ctor_set(v___x_3087_, 1, v___x_3086_); +v___x_3088_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3088_, 0, v___x_3087_); +v___x_3089_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3089_, 0, v___x_3088_); +return v___x_3089_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10___boxed(lean_object* v_machine_3090_, lean_object* v_requestStream_3091_, lean_object* v_keepAliveTimeout_3092_, lean_object* v_currentTimeout_3093_, lean_object* v_headerTimeout_3094_, lean_object* v_response_3095_, lean_object* v_respStream_3096_, lean_object* v_requiresData_3097_, lean_object* v_expectData_3098_, lean_object* v_pendingHead_3099_, lean_object* v_____r_3100_, lean_object* v___y_3101_){ +_start: +{ +uint8_t v_requiresData_boxed_3102_; lean_object* v_res_3103_; +v_requiresData_boxed_3102_ = lean_unbox(v_requiresData_3097_); +v_res_3103_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10(v_machine_3090_, v_requestStream_3091_, v_keepAliveTimeout_3092_, v_currentTimeout_3093_, v_headerTimeout_3094_, v_response_3095_, v_respStream_3096_, v_requiresData_boxed_3102_, v_expectData_3098_, v_pendingHead_3099_, v_____r_3100_); +return v_res_3103_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12(lean_object* v_close_3104_, lean_object* v_body_3105_, lean_object* v___f_3106_, lean_object* v___f_3107_, lean_object* v_x_3108_){ +_start: +{ +if (lean_obj_tag(v_x_3108_) == 0) +{ +lean_object* v_a_3110_; lean_object* v___x_3112_; uint8_t v_isShared_3113_; uint8_t v_isSharedCheck_3118_; +lean_dec_ref(v___f_3107_); +lean_dec_ref(v___f_3106_); +lean_dec(v_body_3105_); +lean_dec_ref(v_close_3104_); +v_a_3110_ = lean_ctor_get(v_x_3108_, 0); +v_isSharedCheck_3118_ = !lean_is_exclusive(v_x_3108_); +if (v_isSharedCheck_3118_ == 0) +{ +v___x_3112_ = v_x_3108_; +v_isShared_3113_ = v_isSharedCheck_3118_; +goto v_resetjp_3111_; +} +else +{ +lean_inc(v_a_3110_); +lean_dec(v_x_3108_); +v___x_3112_ = lean_box(0); +v_isShared_3113_ = v_isSharedCheck_3118_; +goto v_resetjp_3111_; +} +v_resetjp_3111_: +{ +lean_object* v___x_3115_; +if (v_isShared_3113_ == 0) +{ +v___x_3115_ = v___x_3112_; +goto v_reusejp_3114_; +} +else +{ +lean_object* v_reuseFailAlloc_3117_; +v_reuseFailAlloc_3117_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3117_, 0, v_a_3110_); +v___x_3115_ = v_reuseFailAlloc_3117_; +goto v_reusejp_3114_; +} +v_reusejp_3114_: +{ +lean_object* v___x_3116_; +v___x_3116_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3116_, 0, v___x_3115_); +return v___x_3116_; +} +} +} +else +{ +lean_object* v_a_3119_; uint8_t v___x_3120_; +v_a_3119_ = lean_ctor_get(v_x_3108_, 0); +lean_inc(v_a_3119_); +lean_dec_ref(v_x_3108_); +v___x_3120_ = lean_unbox(v_a_3119_); +if (v___x_3120_ == 0) +{ +lean_object* v___x_3121_; lean_object* v___x_3122_; uint8_t v___x_3123_; lean_object* v___x_3124_; +lean_dec_ref(v___f_3107_); +v___x_3121_ = lean_apply_2(v_close_3104_, v_body_3105_, lean_box(0)); +v___x_3122_ = lean_unsigned_to_nat(0u); +v___x_3123_ = lean_unbox(v_a_3119_); +lean_dec(v_a_3119_); +v___x_3124_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3122_, v___x_3123_, v___x_3121_, v___f_3106_); +return v___x_3124_; +} +else +{ +lean_object* v___x_3125_; lean_object* v___x_3126_; +lean_dec(v_a_3119_); +lean_dec_ref(v___f_3106_); +lean_dec(v_body_3105_); +lean_dec_ref(v_close_3104_); +v___x_3125_ = lean_box(0); +v___x_3126_ = lean_apply_2(v___f_3107_, v___x_3125_, lean_box(0)); +return v___x_3126_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12___boxed(lean_object* v_close_3127_, lean_object* v_body_3128_, lean_object* v___f_3129_, lean_object* v___f_3130_, lean_object* v_x_3131_, lean_object* v___y_3132_){ +_start: +{ +lean_object* v_res_3133_; +v_res_3133_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12(v_close_3127_, v_body_3128_, v___f_3129_, v___f_3130_, v_x_3131_); +return v_res_3133_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11(lean_object* v_requestStream_3134_, lean_object* v_keepAliveTimeout_3135_, lean_object* v_currentTimeout_3136_, lean_object* v_headerTimeout_3137_, lean_object* v_response_3138_, uint8_t v_requiresData_3139_, lean_object* v_expectData_3140_, uint8_t v___x_3141_, lean_object* v_pendingHead_3142_, lean_object* v_____x_3143_){ +_start: +{ +lean_object* v_fst_3145_; lean_object* v_snd_3146_; lean_object* v___x_3148_; uint8_t v_isShared_3149_; uint8_t v_isSharedCheck_3157_; +v_fst_3145_ = lean_ctor_get(v_____x_3143_, 0); +v_snd_3146_ = lean_ctor_get(v_____x_3143_, 1); +v_isSharedCheck_3157_ = !lean_is_exclusive(v_____x_3143_); +if (v_isSharedCheck_3157_ == 0) +{ +v___x_3148_ = v_____x_3143_; +v_isShared_3149_ = v_isSharedCheck_3157_; +goto v_resetjp_3147_; +} +else +{ +lean_inc(v_snd_3146_); +lean_inc(v_fst_3145_); +lean_dec(v_____x_3143_); +v___x_3148_ = lean_box(0); +v_isShared_3149_ = v_isSharedCheck_3157_; +goto v_resetjp_3147_; +} +v_resetjp_3147_: +{ +lean_object* v___x_3150_; lean_object* v___x_3151_; lean_object* v___x_3153_; +v___x_3150_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3150_, 0, v_fst_3145_); +lean_ctor_set(v___x_3150_, 1, v_requestStream_3134_); +lean_ctor_set(v___x_3150_, 2, v_keepAliveTimeout_3135_); +lean_ctor_set(v___x_3150_, 3, v_currentTimeout_3136_); +lean_ctor_set(v___x_3150_, 4, v_headerTimeout_3137_); +lean_ctor_set(v___x_3150_, 5, v_response_3138_); +lean_ctor_set(v___x_3150_, 6, v_snd_3146_); +lean_ctor_set(v___x_3150_, 7, v_expectData_3140_); +lean_ctor_set(v___x_3150_, 8, v_pendingHead_3142_); +lean_ctor_set_uint8(v___x_3150_, sizeof(void*)*9, v_requiresData_3139_); +lean_ctor_set_uint8(v___x_3150_, sizeof(void*)*9 + 1, v___x_3141_); +v___x_3151_ = lean_box(v___x_3141_); +if (v_isShared_3149_ == 0) +{ +lean_ctor_set(v___x_3148_, 1, v___x_3151_); +lean_ctor_set(v___x_3148_, 0, v___x_3150_); +v___x_3153_ = v___x_3148_; +goto v_reusejp_3152_; +} +else +{ +lean_object* v_reuseFailAlloc_3156_; +v_reuseFailAlloc_3156_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_3156_, 0, v___x_3150_); +lean_ctor_set(v_reuseFailAlloc_3156_, 1, v___x_3151_); +v___x_3153_ = v_reuseFailAlloc_3156_; +goto v_reusejp_3152_; +} +v_reusejp_3152_: +{ +lean_object* v___x_3154_; lean_object* v___x_3155_; +v___x_3154_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3154_, 0, v___x_3153_); +v___x_3155_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3155_, 0, v___x_3154_); +return v___x_3155_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11___boxed(lean_object* v_requestStream_3158_, lean_object* v_keepAliveTimeout_3159_, lean_object* v_currentTimeout_3160_, lean_object* v_headerTimeout_3161_, lean_object* v_response_3162_, lean_object* v_requiresData_3163_, lean_object* v_expectData_3164_, lean_object* v___x_3165_, lean_object* v_pendingHead_3166_, lean_object* v_____x_3167_, lean_object* v___y_3168_){ +_start: +{ +uint8_t v_requiresData_boxed_3169_; uint8_t v___x_7723__boxed_3170_; lean_object* v_res_3171_; +v_requiresData_boxed_3169_ = lean_unbox(v_requiresData_3163_); +v___x_7723__boxed_3170_ = lean_unbox(v___x_3165_); +v_res_3171_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11(v_requestStream_3158_, v_keepAliveTimeout_3159_, v_currentTimeout_3160_, v_headerTimeout_3161_, v_response_3162_, v_requiresData_boxed_3169_, v_expectData_3164_, v___x_7723__boxed_3170_, v_pendingHead_3166_, v_____x_3167_); +return v_res_3171_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13(lean_object* v___f_3172_, lean_object* v_x_3173_){ +_start: +{ +if (lean_obj_tag(v_x_3173_) == 0) +{ +lean_object* v_a_3175_; lean_object* v___x_3177_; uint8_t v_isShared_3178_; uint8_t v_isSharedCheck_3183_; +lean_dec_ref(v___f_3172_); +v_a_3175_ = lean_ctor_get(v_x_3173_, 0); +v_isSharedCheck_3183_ = !lean_is_exclusive(v_x_3173_); +if (v_isSharedCheck_3183_ == 0) +{ +v___x_3177_ = v_x_3173_; +v_isShared_3178_ = v_isSharedCheck_3183_; +goto v_resetjp_3176_; +} +else +{ +lean_inc(v_a_3175_); +lean_dec(v_x_3173_); +v___x_3177_ = lean_box(0); +v_isShared_3178_ = v_isSharedCheck_3183_; +goto v_resetjp_3176_; +} +v_resetjp_3176_: +{ +lean_object* v___x_3180_; +if (v_isShared_3178_ == 0) +{ +v___x_3180_ = v___x_3177_; +goto v_reusejp_3179_; +} +else +{ +lean_object* v_reuseFailAlloc_3182_; +v_reuseFailAlloc_3182_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3182_, 0, v_a_3175_); +v___x_3180_ = v_reuseFailAlloc_3182_; +goto v_reusejp_3179_; +} +v_reusejp_3179_: +{ +lean_object* v___x_3181_; +v___x_3181_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3181_, 0, v___x_3180_); +return v___x_3181_; +} +} +} +else +{ +lean_object* v_a_3184_; lean_object* v___x_3185_; +v_a_3184_ = lean_ctor_get(v_x_3173_, 0); +lean_inc(v_a_3184_); +lean_dec_ref(v_x_3173_); +v___x_3185_ = lean_apply_2(v___f_3172_, v_a_3184_, lean_box(0)); +return v___x_3185_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13___boxed(lean_object* v___f_3186_, lean_object* v_x_3187_, lean_object* v___y_3188_){ +_start: +{ +lean_object* v_res_3189_; +v_res_3189_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13(v___f_3186_, v_x_3187_); +return v_res_3189_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15(uint8_t v___x_3190_, lean_object* v___f_3191_, lean_object* v_inst_3192_, lean_object* v___f_3193_, lean_object* v_x_3194_){ +_start: +{ +if (lean_obj_tag(v_x_3194_) == 0) +{ +lean_object* v_a_3196_; lean_object* v___x_3198_; uint8_t v_isShared_3199_; uint8_t v_isSharedCheck_3204_; +lean_dec_ref(v___f_3193_); +lean_dec_ref(v_inst_3192_); +lean_dec_ref(v___f_3191_); +v_a_3196_ = lean_ctor_get(v_x_3194_, 0); +v_isSharedCheck_3204_ = !lean_is_exclusive(v_x_3194_); +if (v_isSharedCheck_3204_ == 0) +{ +v___x_3198_ = v_x_3194_; +v_isShared_3199_ = v_isSharedCheck_3204_; +goto v_resetjp_3197_; +} +else +{ +lean_inc(v_a_3196_); +lean_dec(v_x_3194_); +v___x_3198_ = lean_box(0); +v_isShared_3199_ = v_isSharedCheck_3204_; +goto v_resetjp_3197_; +} +v_resetjp_3197_: +{ +lean_object* v___x_3201_; +if (v_isShared_3199_ == 0) +{ +v___x_3201_ = v___x_3198_; +goto v_reusejp_3200_; +} +else +{ +lean_object* v_reuseFailAlloc_3203_; +v_reuseFailAlloc_3203_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3203_, 0, v_a_3196_); +v___x_3201_ = v_reuseFailAlloc_3203_; +goto v_reusejp_3200_; +} +v_reusejp_3200_: +{ +lean_object* v___x_3202_; +v___x_3202_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3202_, 0, v___x_3201_); +return v___x_3202_; +} +} +} +else +{ +lean_object* v_a_3205_; lean_object* v_snd_3206_; +v_a_3205_ = lean_ctor_get(v_x_3194_, 0); +v_snd_3206_ = lean_ctor_get(v_a_3205_, 1); +if (lean_obj_tag(v_snd_3206_) == 0) +{ +lean_object* v___x_3207_; lean_object* v___x_3208_; lean_object* v___x_3209_; +lean_dec_ref(v___f_3193_); +lean_dec_ref(v_inst_3192_); +v___x_3207_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3207_, 0, v_x_3194_); +v___x_3208_ = lean_unsigned_to_nat(0u); +v___x_3209_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3208_, v___x_3190_, v___x_3207_, v___f_3191_); +return v___x_3209_; +} +else +{ +lean_object* v_fst_3210_; lean_object* v_val_3211_; lean_object* v___x_3212_; lean_object* v___x_3213_; lean_object* v___x_3214_; +lean_inc_ref(v_snd_3206_); +lean_inc(v_a_3205_); +lean_dec_ref(v_x_3194_); +lean_dec_ref(v___f_3191_); +v_fst_3210_ = lean_ctor_get(v_a_3205_, 0); +lean_inc(v_fst_3210_); +lean_dec(v_a_3205_); +v_val_3211_ = lean_ctor_get(v_snd_3206_, 0); +lean_inc(v_val_3211_); +lean_dec_ref(v_snd_3206_); +v___x_3212_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg(v_inst_3192_, v_fst_3210_, v_val_3211_); +v___x_3213_ = lean_unsigned_to_nat(0u); +v___x_3214_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3213_, v___x_3190_, v___x_3212_, v___f_3193_); +return v___x_3214_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15___boxed(lean_object* v___x_3215_, lean_object* v___f_3216_, lean_object* v_inst_3217_, lean_object* v___f_3218_, lean_object* v_x_3219_, lean_object* v___y_3220_){ +_start: +{ +uint8_t v___x_7789__boxed_3221_; lean_object* v_res_3222_; +v___x_7789__boxed_3221_ = lean_unbox(v___x_3215_); +v_res_3222_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15(v___x_7789__boxed_3221_, v___f_3216_, v_inst_3217_, v___f_3218_, v_x_3219_); +return v_res_3222_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14(lean_object* v_state_3223_, lean_object* v_x_3224_){ +_start: +{ +if (lean_obj_tag(v_x_3224_) == 0) +{ +lean_object* v_a_3226_; lean_object* v___x_3228_; uint8_t v_isShared_3229_; uint8_t v_isSharedCheck_3234_; +lean_dec_ref(v_state_3223_); +v_a_3226_ = lean_ctor_get(v_x_3224_, 0); +v_isSharedCheck_3234_ = !lean_is_exclusive(v_x_3224_); +if (v_isSharedCheck_3234_ == 0) +{ +v___x_3228_ = v_x_3224_; +v_isShared_3229_ = v_isSharedCheck_3234_; +goto v_resetjp_3227_; +} +else +{ +lean_inc(v_a_3226_); +lean_dec(v_x_3224_); +v___x_3228_ = lean_box(0); +v_isShared_3229_ = v_isSharedCheck_3234_; +goto v_resetjp_3227_; +} +v_resetjp_3227_: +{ +lean_object* v___x_3231_; +if (v_isShared_3229_ == 0) +{ +v___x_3231_ = v___x_3228_; +goto v_reusejp_3230_; +} +else +{ +lean_object* v_reuseFailAlloc_3233_; +v_reuseFailAlloc_3233_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3233_, 0, v_a_3226_); +v___x_3231_ = v_reuseFailAlloc_3233_; +goto v_reusejp_3230_; +} +v_reusejp_3230_: +{ +lean_object* v___x_3232_; +v___x_3232_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3232_, 0, v___x_3231_); +return v___x_3232_; +} +} +} +else +{ +lean_object* v___x_3236_; uint8_t v_isShared_3237_; uint8_t v_isSharedCheck_3264_; +v_isSharedCheck_3264_ = !lean_is_exclusive(v_x_3224_); +if (v_isSharedCheck_3264_ == 0) +{ +lean_object* v_unused_3265_; +v_unused_3265_ = lean_ctor_get(v_x_3224_, 0); +lean_dec(v_unused_3265_); +v___x_3236_ = v_x_3224_; +v_isShared_3237_ = v_isSharedCheck_3264_; +goto v_resetjp_3235_; +} +else +{ +lean_dec(v_x_3224_); +v___x_3236_ = lean_box(0); +v_isShared_3237_ = v_isSharedCheck_3264_; +goto v_resetjp_3235_; +} +v_resetjp_3235_: +{ +lean_object* v_machine_3238_; lean_object* v_requestStream_3239_; lean_object* v_keepAliveTimeout_3240_; lean_object* v_currentTimeout_3241_; lean_object* v_headerTimeout_3242_; lean_object* v_response_3243_; lean_object* v_respStream_3244_; uint8_t v_requiresData_3245_; lean_object* v_expectData_3246_; lean_object* v_pendingHead_3247_; lean_object* v___x_3249_; uint8_t v_isShared_3250_; uint8_t v_isSharedCheck_3263_; +v_machine_3238_ = lean_ctor_get(v_state_3223_, 0); +v_requestStream_3239_ = lean_ctor_get(v_state_3223_, 1); +v_keepAliveTimeout_3240_ = lean_ctor_get(v_state_3223_, 2); +v_currentTimeout_3241_ = lean_ctor_get(v_state_3223_, 3); +v_headerTimeout_3242_ = lean_ctor_get(v_state_3223_, 4); +v_response_3243_ = lean_ctor_get(v_state_3223_, 5); +v_respStream_3244_ = lean_ctor_get(v_state_3223_, 6); +v_requiresData_3245_ = lean_ctor_get_uint8(v_state_3223_, sizeof(void*)*9); +v_expectData_3246_ = lean_ctor_get(v_state_3223_, 7); +v_pendingHead_3247_ = lean_ctor_get(v_state_3223_, 8); +v_isSharedCheck_3263_ = !lean_is_exclusive(v_state_3223_); +if (v_isSharedCheck_3263_ == 0) +{ +v___x_3249_ = v_state_3223_; +v_isShared_3250_ = v_isSharedCheck_3263_; +goto v_resetjp_3248_; +} +else +{ +lean_inc(v_pendingHead_3247_); +lean_inc(v_expectData_3246_); +lean_inc(v_respStream_3244_); +lean_inc(v_response_3243_); +lean_inc(v_headerTimeout_3242_); +lean_inc(v_currentTimeout_3241_); +lean_inc(v_keepAliveTimeout_3240_); +lean_inc(v_requestStream_3239_); +lean_inc(v_machine_3238_); +lean_dec(v_state_3223_); +v___x_3249_ = lean_box(0); +v_isShared_3250_ = v_isSharedCheck_3263_; +goto v_resetjp_3248_; +} +v_resetjp_3248_: +{ +lean_object* v___x_3251_; lean_object* v___x_3252_; uint8_t v___x_3253_; lean_object* v___x_3255_; +v___x_3251_ = lean_box(31); +v___x_3252_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_3238_, v___x_3251_); +v___x_3253_ = 0; +if (v_isShared_3250_ == 0) +{ +lean_ctor_set(v___x_3249_, 0, v___x_3252_); +v___x_3255_ = v___x_3249_; +goto v_reusejp_3254_; +} +else +{ +lean_object* v_reuseFailAlloc_3262_; +v_reuseFailAlloc_3262_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3262_, 0, v___x_3252_); +lean_ctor_set(v_reuseFailAlloc_3262_, 1, v_requestStream_3239_); +lean_ctor_set(v_reuseFailAlloc_3262_, 2, v_keepAliveTimeout_3240_); +lean_ctor_set(v_reuseFailAlloc_3262_, 3, v_currentTimeout_3241_); +lean_ctor_set(v_reuseFailAlloc_3262_, 4, v_headerTimeout_3242_); +lean_ctor_set(v_reuseFailAlloc_3262_, 5, v_response_3243_); +lean_ctor_set(v_reuseFailAlloc_3262_, 6, v_respStream_3244_); +lean_ctor_set(v_reuseFailAlloc_3262_, 7, v_expectData_3246_); +lean_ctor_set(v_reuseFailAlloc_3262_, 8, v_pendingHead_3247_); +lean_ctor_set_uint8(v_reuseFailAlloc_3262_, sizeof(void*)*9, v_requiresData_3245_); +v___x_3255_ = v_reuseFailAlloc_3262_; +goto v_reusejp_3254_; +} +v_reusejp_3254_: +{ +lean_object* v___x_3256_; lean_object* v___x_3257_; lean_object* v___x_3259_; +lean_ctor_set_uint8(v___x_3255_, sizeof(void*)*9 + 1, v___x_3253_); +v___x_3256_ = lean_box(v___x_3253_); +v___x_3257_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3257_, 0, v___x_3255_); +lean_ctor_set(v___x_3257_, 1, v___x_3256_); +if (v_isShared_3237_ == 0) +{ +lean_ctor_set(v___x_3236_, 0, v___x_3257_); +v___x_3259_ = v___x_3236_; +goto v_reusejp_3258_; +} +else +{ +lean_object* v_reuseFailAlloc_3261_; +v_reuseFailAlloc_3261_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3261_, 0, v___x_3257_); +v___x_3259_ = v_reuseFailAlloc_3261_; +goto v_reusejp_3258_; +} +v_reusejp_3258_: +{ +lean_object* v___x_3260_; +v___x_3260_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3260_, 0, v___x_3259_); +return v___x_3260_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14___boxed(lean_object* v_state_3266_, lean_object* v_x_3267_, lean_object* v___y_3268_){ +_start: +{ +lean_object* v_res_3269_; +v_res_3269_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14(v_state_3266_, v_x_3267_); +return v_res_3269_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1(void){ +_start: +{ +lean_object* v___x_3271_; lean_object* v___x_3272_; +v___x_3271_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__0)); +v___x_3272_ = lean_mk_io_user_error(v___x_3271_); +return v___x_3272_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg(lean_object* v_inst_3273_, lean_object* v_inst_3274_, lean_object* v_handler_3275_, lean_object* v_config_3276_, lean_object* v_event_3277_, lean_object* v_state_3278_){ +_start: +{ +switch(lean_obj_tag(v_event_3277_)) +{ +case 0: +{ +lean_object* v_x_3280_; lean_object* v___x_3282_; uint8_t v_isShared_3283_; uint8_t v_isSharedCheck_3387_; +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3274_); +lean_dec_ref(v_inst_3273_); +v_x_3280_ = lean_ctor_get(v_event_3277_, 0); +v_isSharedCheck_3387_ = !lean_is_exclusive(v_event_3277_); +if (v_isSharedCheck_3387_ == 0) +{ +v___x_3282_ = v_event_3277_; +v_isShared_3283_ = v_isSharedCheck_3387_; +goto v_resetjp_3281_; +} +else +{ +lean_inc(v_x_3280_); +lean_dec(v_event_3277_); +v___x_3282_ = lean_box(0); +v_isShared_3283_ = v_isSharedCheck_3387_; +goto v_resetjp_3281_; +} +v_resetjp_3281_: +{ +if (lean_obj_tag(v_x_3280_) == 0) +{ +lean_object* v_machine_3284_; lean_object* v_reader_3285_; lean_object* v_requestStream_3286_; lean_object* v_keepAliveTimeout_3287_; lean_object* v_currentTimeout_3288_; lean_object* v_headerTimeout_3289_; lean_object* v_response_3290_; lean_object* v_respStream_3291_; uint8_t v_requiresData_3292_; lean_object* v_expectData_3293_; uint8_t v_handlerDispatched_3294_; lean_object* v_pendingHead_3295_; lean_object* v___x_3297_; uint8_t v_isShared_3298_; uint8_t v_isSharedCheck_3338_; +lean_dec_ref(v_config_3276_); +v_machine_3284_ = lean_ctor_get(v_state_3278_, 0); +lean_inc_ref(v_machine_3284_); +v_reader_3285_ = lean_ctor_get(v_machine_3284_, 0); +lean_inc_ref(v_reader_3285_); +v_requestStream_3286_ = lean_ctor_get(v_state_3278_, 1); +v_keepAliveTimeout_3287_ = lean_ctor_get(v_state_3278_, 2); +v_currentTimeout_3288_ = lean_ctor_get(v_state_3278_, 3); +v_headerTimeout_3289_ = lean_ctor_get(v_state_3278_, 4); +v_response_3290_ = lean_ctor_get(v_state_3278_, 5); +v_respStream_3291_ = lean_ctor_get(v_state_3278_, 6); +v_requiresData_3292_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3293_ = lean_ctor_get(v_state_3278_, 7); +v_handlerDispatched_3294_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9 + 1); +v_pendingHead_3295_ = lean_ctor_get(v_state_3278_, 8); +v_isSharedCheck_3338_ = !lean_is_exclusive(v_state_3278_); +if (v_isSharedCheck_3338_ == 0) +{ +lean_object* v_unused_3339_; +v_unused_3339_ = lean_ctor_get(v_state_3278_, 0); +lean_dec(v_unused_3339_); +v___x_3297_ = v_state_3278_; +v_isShared_3298_ = v_isSharedCheck_3338_; +goto v_resetjp_3296_; +} +else +{ +lean_inc(v_pendingHead_3295_); +lean_inc(v_expectData_3293_); +lean_inc(v_respStream_3291_); +lean_inc(v_response_3290_); +lean_inc(v_headerTimeout_3289_); +lean_inc(v_currentTimeout_3288_); +lean_inc(v_keepAliveTimeout_3287_); +lean_inc(v_requestStream_3286_); +lean_dec(v_state_3278_); +v___x_3297_ = lean_box(0); +v_isShared_3298_ = v_isSharedCheck_3338_; +goto v_resetjp_3296_; +} +v_resetjp_3296_: +{ +lean_object* v_writer_3299_; lean_object* v_config_3300_; lean_object* v_events_3301_; lean_object* v_error_3302_; lean_object* v_instant_3303_; uint8_t v_keepAlive_3304_; uint8_t v_forcedFlush_3305_; lean_object* v___x_3307_; uint8_t v_isShared_3308_; uint8_t v_isSharedCheck_3336_; +v_writer_3299_ = lean_ctor_get(v_machine_3284_, 1); +v_config_3300_ = lean_ctor_get(v_machine_3284_, 2); +v_events_3301_ = lean_ctor_get(v_machine_3284_, 3); +v_error_3302_ = lean_ctor_get(v_machine_3284_, 4); +v_instant_3303_ = lean_ctor_get(v_machine_3284_, 5); +v_keepAlive_3304_ = lean_ctor_get_uint8(v_machine_3284_, sizeof(void*)*6); +v_forcedFlush_3305_ = lean_ctor_get_uint8(v_machine_3284_, sizeof(void*)*6 + 1); +v_isSharedCheck_3336_ = !lean_is_exclusive(v_machine_3284_); +if (v_isSharedCheck_3336_ == 0) +{ +lean_object* v_unused_3337_; +v_unused_3337_ = lean_ctor_get(v_machine_3284_, 0); +lean_dec(v_unused_3337_); +v___x_3307_ = v_machine_3284_; +v_isShared_3308_ = v_isSharedCheck_3336_; +goto v_resetjp_3306_; +} +else +{ +lean_inc(v_instant_3303_); +lean_inc(v_error_3302_); +lean_inc(v_events_3301_); +lean_inc(v_config_3300_); +lean_inc(v_writer_3299_); +lean_dec(v_machine_3284_); +v___x_3307_ = lean_box(0); +v_isShared_3308_ = v_isSharedCheck_3336_; +goto v_resetjp_3306_; +} +v_resetjp_3306_: +{ +lean_object* v_state_3309_; lean_object* v_input_3310_; lean_object* v_messageHead_3311_; lean_object* v_messageCount_3312_; lean_object* v_bodyBytesRead_3313_; lean_object* v_headerBytesRead_3314_; lean_object* v___x_3316_; uint8_t v_isShared_3317_; uint8_t v_isSharedCheck_3335_; +v_state_3309_ = lean_ctor_get(v_reader_3285_, 0); +v_input_3310_ = lean_ctor_get(v_reader_3285_, 1); +v_messageHead_3311_ = lean_ctor_get(v_reader_3285_, 2); +v_messageCount_3312_ = lean_ctor_get(v_reader_3285_, 3); +v_bodyBytesRead_3313_ = lean_ctor_get(v_reader_3285_, 4); +v_headerBytesRead_3314_ = lean_ctor_get(v_reader_3285_, 5); +v_isSharedCheck_3335_ = !lean_is_exclusive(v_reader_3285_); +if (v_isSharedCheck_3335_ == 0) +{ +v___x_3316_ = v_reader_3285_; +v_isShared_3317_ = v_isSharedCheck_3335_; +goto v_resetjp_3315_; +} +else +{ +lean_inc(v_headerBytesRead_3314_); +lean_inc(v_bodyBytesRead_3313_); +lean_inc(v_messageCount_3312_); +lean_inc(v_messageHead_3311_); +lean_inc(v_input_3310_); +lean_inc(v_state_3309_); +lean_dec(v_reader_3285_); +v___x_3316_ = lean_box(0); +v_isShared_3317_ = v_isSharedCheck_3335_; +goto v_resetjp_3315_; +} +v_resetjp_3315_: +{ +uint8_t v___x_3318_; lean_object* v___x_3320_; +v___x_3318_ = 1; +if (v_isShared_3317_ == 0) +{ +v___x_3320_ = v___x_3316_; +goto v_reusejp_3319_; +} +else +{ +lean_object* v_reuseFailAlloc_3334_; +v_reuseFailAlloc_3334_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_3334_, 0, v_state_3309_); +lean_ctor_set(v_reuseFailAlloc_3334_, 1, v_input_3310_); +lean_ctor_set(v_reuseFailAlloc_3334_, 2, v_messageHead_3311_); +lean_ctor_set(v_reuseFailAlloc_3334_, 3, v_messageCount_3312_); +lean_ctor_set(v_reuseFailAlloc_3334_, 4, v_bodyBytesRead_3313_); +lean_ctor_set(v_reuseFailAlloc_3334_, 5, v_headerBytesRead_3314_); +v___x_3320_ = v_reuseFailAlloc_3334_; +goto v_reusejp_3319_; +} +v_reusejp_3319_: +{ +uint8_t v___x_3321_; lean_object* v___x_3323_; +lean_ctor_set_uint8(v___x_3320_, sizeof(void*)*6, v___x_3318_); +v___x_3321_ = 0; +if (v_isShared_3308_ == 0) +{ +lean_ctor_set(v___x_3307_, 0, v___x_3320_); +v___x_3323_ = v___x_3307_; +goto v_reusejp_3322_; +} +else +{ +lean_object* v_reuseFailAlloc_3333_; +v_reuseFailAlloc_3333_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_3333_, 0, v___x_3320_); +lean_ctor_set(v_reuseFailAlloc_3333_, 1, v_writer_3299_); +lean_ctor_set(v_reuseFailAlloc_3333_, 2, v_config_3300_); +lean_ctor_set(v_reuseFailAlloc_3333_, 3, v_events_3301_); +lean_ctor_set(v_reuseFailAlloc_3333_, 4, v_error_3302_); +lean_ctor_set(v_reuseFailAlloc_3333_, 5, v_instant_3303_); +lean_ctor_set_uint8(v_reuseFailAlloc_3333_, sizeof(void*)*6, v_keepAlive_3304_); +lean_ctor_set_uint8(v_reuseFailAlloc_3333_, sizeof(void*)*6 + 1, v_forcedFlush_3305_); +v___x_3323_ = v_reuseFailAlloc_3333_; +goto v_reusejp_3322_; +} +v_reusejp_3322_: +{ +lean_object* v___x_3325_; +lean_ctor_set_uint8(v___x_3323_, sizeof(void*)*6 + 2, v___x_3321_); +if (v_isShared_3298_ == 0) +{ +lean_ctor_set(v___x_3297_, 0, v___x_3323_); +v___x_3325_ = v___x_3297_; +goto v_reusejp_3324_; +} +else +{ +lean_object* v_reuseFailAlloc_3332_; +v_reuseFailAlloc_3332_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3332_, 0, v___x_3323_); +lean_ctor_set(v_reuseFailAlloc_3332_, 1, v_requestStream_3286_); +lean_ctor_set(v_reuseFailAlloc_3332_, 2, v_keepAliveTimeout_3287_); +lean_ctor_set(v_reuseFailAlloc_3332_, 3, v_currentTimeout_3288_); +lean_ctor_set(v_reuseFailAlloc_3332_, 4, v_headerTimeout_3289_); +lean_ctor_set(v_reuseFailAlloc_3332_, 5, v_response_3290_); +lean_ctor_set(v_reuseFailAlloc_3332_, 6, v_respStream_3291_); +lean_ctor_set(v_reuseFailAlloc_3332_, 7, v_expectData_3293_); +lean_ctor_set(v_reuseFailAlloc_3332_, 8, v_pendingHead_3295_); +lean_ctor_set_uint8(v_reuseFailAlloc_3332_, sizeof(void*)*9, v_requiresData_3292_); +lean_ctor_set_uint8(v_reuseFailAlloc_3332_, sizeof(void*)*9 + 1, v_handlerDispatched_3294_); +v___x_3325_ = v_reuseFailAlloc_3332_; +goto v_reusejp_3324_; +} +v_reusejp_3324_: +{ +lean_object* v___x_3326_; lean_object* v___x_3327_; lean_object* v___x_3329_; +v___x_3326_ = lean_box(v___x_3321_); +v___x_3327_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3327_, 0, v___x_3325_); +lean_ctor_set(v___x_3327_, 1, v___x_3326_); +if (v_isShared_3283_ == 0) +{ +lean_ctor_set_tag(v___x_3282_, 1); +lean_ctor_set(v___x_3282_, 0, v___x_3327_); +v___x_3329_ = v___x_3282_; +goto v_reusejp_3328_; +} +else +{ +lean_object* v_reuseFailAlloc_3331_; +v_reuseFailAlloc_3331_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3331_, 0, v___x_3327_); +v___x_3329_ = v_reuseFailAlloc_3331_; +goto v_reusejp_3328_; +} +v_reusejp_3328_: +{ +lean_object* v___x_3330_; +v___x_3330_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3330_, 0, v___x_3329_); +return v___x_3330_; +} +} +} +} +} +} +} +} +else +{ +lean_object* v_val_3340_; lean_object* v_machine_3341_; lean_object* v_requestStream_3342_; lean_object* v_keepAliveTimeout_3343_; lean_object* v_currentTimeout_3344_; lean_object* v_response_3345_; lean_object* v_respStream_3346_; uint8_t v_requiresData_3347_; lean_object* v_expectData_3348_; uint8_t v_handlerDispatched_3349_; lean_object* v_pendingHead_3350_; lean_object* v___f_3351_; +lean_del_object(v___x_3282_); +v_val_3340_ = lean_ctor_get(v_x_3280_, 0); +lean_inc_n(v_val_3340_, 2); +lean_dec_ref(v_x_3280_); +v_machine_3341_ = lean_ctor_get(v_state_3278_, 0); +v_requestStream_3342_ = lean_ctor_get(v_state_3278_, 1); +v_keepAliveTimeout_3343_ = lean_ctor_get(v_state_3278_, 2); +lean_inc(v_keepAliveTimeout_3343_); +v_currentTimeout_3344_ = lean_ctor_get(v_state_3278_, 3); +v_response_3345_ = lean_ctor_get(v_state_3278_, 5); +v_respStream_3346_ = lean_ctor_get(v_state_3278_, 6); +v_requiresData_3347_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3348_ = lean_ctor_get(v_state_3278_, 7); +v_handlerDispatched_3349_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9 + 1); +v_pendingHead_3350_ = lean_ctor_get(v_state_3278_, 8); +v___f_3351_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0___boxed), 4, 1); +lean_closure_set(v___f_3351_, 0, v_val_3340_); +if (lean_obj_tag(v_keepAliveTimeout_3343_) == 0) +{ +lean_object* v___x_3352_; lean_object* v___x_3353_; +lean_dec_ref(v___f_3351_); +lean_dec_ref(v_config_3276_); +v___x_3352_ = lean_box(0); +v___x_3353_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__0(v_val_3340_, v___x_3352_, v_state_3278_); +return v___x_3353_; +} +else +{ +lean_object* v___x_3355_; uint8_t v_isShared_3356_; uint8_t v_isSharedCheck_3385_; +lean_inc(v_pendingHead_3350_); +lean_inc(v_expectData_3348_); +lean_inc(v_respStream_3346_); +lean_inc_ref(v_response_3345_); +lean_inc(v_currentTimeout_3344_); +lean_inc_ref(v_requestStream_3342_); +lean_inc_ref(v_machine_3341_); +lean_dec(v_val_3340_); +lean_dec_ref(v_state_3278_); +v_isSharedCheck_3385_ = !lean_is_exclusive(v_keepAliveTimeout_3343_); +if (v_isSharedCheck_3385_ == 0) +{ +lean_object* v_unused_3386_; +v_unused_3386_ = lean_ctor_get(v_keepAliveTimeout_3343_, 0); +lean_dec(v_unused_3386_); +v___x_3355_ = v_keepAliveTimeout_3343_; +v_isShared_3356_ = v_isSharedCheck_3385_; +goto v_resetjp_3354_; +} +else +{ +lean_dec(v_keepAliveTimeout_3343_); +v___x_3355_ = lean_box(0); +v_isShared_3356_ = v_isSharedCheck_3385_; +goto v_resetjp_3354_; +} +v_resetjp_3354_: +{ +lean_object* v___x_3357_; lean_object* v___x_3358_; lean_object* v___f_3359_; lean_object* v_val_3361_; lean_object* v___x_3368_; +v___x_3357_ = lean_box(v_requiresData_3347_); +v___x_3358_ = lean_box(v_handlerDispatched_3349_); +v___f_3359_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__1___boxed), 13, 11); +lean_closure_set(v___f_3359_, 0, v_config_3276_); +lean_closure_set(v___f_3359_, 1, v_machine_3341_); +lean_closure_set(v___f_3359_, 2, v_requestStream_3342_); +lean_closure_set(v___f_3359_, 3, v_currentTimeout_3344_); +lean_closure_set(v___f_3359_, 4, v_response_3345_); +lean_closure_set(v___f_3359_, 5, v_respStream_3346_); +lean_closure_set(v___f_3359_, 6, v___x_3357_); +lean_closure_set(v___f_3359_, 7, v_expectData_3348_); +lean_closure_set(v___f_3359_, 8, v___x_3358_); +lean_closure_set(v___f_3359_, 9, v_pendingHead_3350_); +lean_closure_set(v___f_3359_, 10, v___f_3351_); +v___x_3368_ = lean_get_current_time(); +if (lean_obj_tag(v___x_3368_) == 0) +{ +lean_object* v_a_3369_; lean_object* v___x_3371_; uint8_t v_isShared_3372_; uint8_t v_isSharedCheck_3376_; +v_a_3369_ = lean_ctor_get(v___x_3368_, 0); +v_isSharedCheck_3376_ = !lean_is_exclusive(v___x_3368_); +if (v_isSharedCheck_3376_ == 0) +{ +v___x_3371_ = v___x_3368_; +v_isShared_3372_ = v_isSharedCheck_3376_; +goto v_resetjp_3370_; +} +else +{ +lean_inc(v_a_3369_); +lean_dec(v___x_3368_); +v___x_3371_ = lean_box(0); +v_isShared_3372_ = v_isSharedCheck_3376_; +goto v_resetjp_3370_; +} +v_resetjp_3370_: +{ +lean_object* v___x_3374_; +if (v_isShared_3372_ == 0) +{ +lean_ctor_set_tag(v___x_3371_, 1); +v___x_3374_ = v___x_3371_; +goto v_reusejp_3373_; +} +else +{ +lean_object* v_reuseFailAlloc_3375_; +v_reuseFailAlloc_3375_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3375_, 0, v_a_3369_); +v___x_3374_ = v_reuseFailAlloc_3375_; +goto v_reusejp_3373_; +} +v_reusejp_3373_: +{ +v_val_3361_ = v___x_3374_; +goto v___jp_3360_; +} +} +} +else +{ +lean_object* v_a_3377_; lean_object* v___x_3379_; uint8_t v_isShared_3380_; uint8_t v_isSharedCheck_3384_; +v_a_3377_ = lean_ctor_get(v___x_3368_, 0); +v_isSharedCheck_3384_ = !lean_is_exclusive(v___x_3368_); +if (v_isSharedCheck_3384_ == 0) +{ +v___x_3379_ = v___x_3368_; +v_isShared_3380_ = v_isSharedCheck_3384_; +goto v_resetjp_3378_; +} +else +{ +lean_inc(v_a_3377_); +lean_dec(v___x_3368_); +v___x_3379_ = lean_box(0); +v_isShared_3380_ = v_isSharedCheck_3384_; +goto v_resetjp_3378_; +} +v_resetjp_3378_: +{ +lean_object* v___x_3382_; +if (v_isShared_3380_ == 0) +{ +lean_ctor_set_tag(v___x_3379_, 0); +v___x_3382_ = v___x_3379_; +goto v_reusejp_3381_; +} +else +{ +lean_object* v_reuseFailAlloc_3383_; +v_reuseFailAlloc_3383_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3383_, 0, v_a_3377_); +v___x_3382_ = v_reuseFailAlloc_3383_; +goto v_reusejp_3381_; +} +v_reusejp_3381_: +{ +v_val_3361_ = v___x_3382_; +goto v___jp_3360_; +} +} +} +v___jp_3360_: +{ +lean_object* v___x_3363_; +if (v_isShared_3356_ == 0) +{ +lean_ctor_set_tag(v___x_3355_, 0); +lean_ctor_set(v___x_3355_, 0, v_val_3361_); +v___x_3363_ = v___x_3355_; +goto v_reusejp_3362_; +} +else +{ +lean_object* v_reuseFailAlloc_3367_; +v_reuseFailAlloc_3367_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3367_, 0, v_val_3361_); +v___x_3363_ = v_reuseFailAlloc_3367_; +goto v_reusejp_3362_; +} +v_reusejp_3362_: +{ +lean_object* v___x_3364_; uint8_t v___x_3365_; lean_object* v___x_3366_; +v___x_3364_ = lean_unsigned_to_nat(0u); +v___x_3365_ = 0; +v___x_3366_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3364_, v___x_3365_, v___x_3363_, v___f_3359_); +return v___x_3366_; +} +} +} +} +} +} +} +case 1: +{ +lean_object* v_x_3388_; lean_object* v___x_3390_; uint8_t v_isShared_3391_; uint8_t v_isSharedCheck_3503_; +lean_dec_ref(v_config_3276_); +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3273_); +v_x_3388_ = lean_ctor_get(v_event_3277_, 0); +v_isSharedCheck_3503_ = !lean_is_exclusive(v_event_3277_); +if (v_isSharedCheck_3503_ == 0) +{ +v___x_3390_ = v_event_3277_; +v_isShared_3391_ = v_isSharedCheck_3503_; +goto v_resetjp_3389_; +} +else +{ +lean_inc(v_x_3388_); +lean_dec(v_event_3277_); +v___x_3390_ = lean_box(0); +v_isShared_3391_ = v_isSharedCheck_3503_; +goto v_resetjp_3389_; +} +v_resetjp_3389_: +{ +if (lean_obj_tag(v_x_3388_) == 0) +{ +lean_object* v_machine_3392_; lean_object* v_requestStream_3393_; lean_object* v_keepAliveTimeout_3394_; lean_object* v_currentTimeout_3395_; lean_object* v_headerTimeout_3396_; lean_object* v_response_3397_; lean_object* v_respStream_3398_; uint8_t v_requiresData_3399_; lean_object* v_expectData_3400_; uint8_t v_handlerDispatched_3401_; lean_object* v_pendingHead_3402_; lean_object* v___x_3403_; lean_object* v___x_3404_; lean_object* v___f_3405_; +lean_del_object(v___x_3390_); +v_machine_3392_ = lean_ctor_get(v_state_3278_, 0); +lean_inc_ref_n(v_machine_3392_, 2); +v_requestStream_3393_ = lean_ctor_get(v_state_3278_, 1); +lean_inc_ref_n(v_requestStream_3393_, 2); +v_keepAliveTimeout_3394_ = lean_ctor_get(v_state_3278_, 2); +lean_inc_n(v_keepAliveTimeout_3394_, 2); +v_currentTimeout_3395_ = lean_ctor_get(v_state_3278_, 3); +lean_inc_n(v_currentTimeout_3395_, 2); +v_headerTimeout_3396_ = lean_ctor_get(v_state_3278_, 4); +lean_inc_n(v_headerTimeout_3396_, 2); +v_response_3397_ = lean_ctor_get(v_state_3278_, 5); +lean_inc_ref_n(v_response_3397_, 2); +v_respStream_3398_ = lean_ctor_get(v_state_3278_, 6); +lean_inc(v_respStream_3398_); +v_requiresData_3399_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3400_ = lean_ctor_get(v_state_3278_, 7); +lean_inc_n(v_expectData_3400_, 2); +v_handlerDispatched_3401_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9 + 1); +v_pendingHead_3402_ = lean_ctor_get(v_state_3278_, 8); +lean_inc_n(v_pendingHead_3402_, 2); +lean_dec_ref(v_state_3278_); +v___x_3403_ = lean_box(v_requiresData_3399_); +v___x_3404_ = lean_box(v_handlerDispatched_3401_); +v___f_3405_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2___boxed), 12, 10); +lean_closure_set(v___f_3405_, 0, v_machine_3392_); +lean_closure_set(v___f_3405_, 1, v_requestStream_3393_); +lean_closure_set(v___f_3405_, 2, v_keepAliveTimeout_3394_); +lean_closure_set(v___f_3405_, 3, v_currentTimeout_3395_); +lean_closure_set(v___f_3405_, 4, v_headerTimeout_3396_); +lean_closure_set(v___f_3405_, 5, v_response_3397_); +lean_closure_set(v___f_3405_, 6, v___x_3403_); +lean_closure_set(v___f_3405_, 7, v_expectData_3400_); +lean_closure_set(v___f_3405_, 8, v___x_3404_); +lean_closure_set(v___f_3405_, 9, v_pendingHead_3402_); +if (lean_obj_tag(v_respStream_3398_) == 1) +{ +lean_object* v_val_3406_; lean_object* v_close_3407_; lean_object* v_isClosed_3408_; lean_object* v___x_3409_; lean_object* v___f_3410_; lean_object* v___f_3411_; lean_object* v___x_3412_; uint8_t v___x_3413_; lean_object* v___x_3414_; +lean_dec(v_pendingHead_3402_); +lean_dec(v_expectData_3400_); +lean_dec_ref(v_response_3397_); +lean_dec(v_headerTimeout_3396_); +lean_dec(v_currentTimeout_3395_); +lean_dec(v_keepAliveTimeout_3394_); +lean_dec_ref(v_requestStream_3393_); +lean_dec_ref(v_machine_3392_); +v_val_3406_ = lean_ctor_get(v_respStream_3398_, 0); +lean_inc_n(v_val_3406_, 2); +lean_dec_ref(v_respStream_3398_); +v_close_3407_ = lean_ctor_get(v_inst_3274_, 1); +lean_inc_ref(v_close_3407_); +v_isClosed_3408_ = lean_ctor_get(v_inst_3274_, 2); +lean_inc_ref(v_isClosed_3408_); +lean_dec_ref(v_inst_3274_); +v___x_3409_ = lean_apply_2(v_isClosed_3408_, v_val_3406_, lean_box(0)); +lean_inc_ref(v___f_3405_); +v___f_3410_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_3410_, 0, v___f_3405_); +v___f_3411_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__4___boxed), 6, 4); +lean_closure_set(v___f_3411_, 0, v_close_3407_); +lean_closure_set(v___f_3411_, 1, v_val_3406_); +lean_closure_set(v___f_3411_, 2, v___f_3410_); +lean_closure_set(v___f_3411_, 3, v___f_3405_); +v___x_3412_ = lean_unsigned_to_nat(0u); +v___x_3413_ = 0; +v___x_3414_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3412_, v___x_3413_, v___x_3409_, v___f_3411_); +return v___x_3414_; +} +else +{ +lean_object* v___x_3415_; lean_object* v___x_3416_; +lean_dec_ref(v___f_3405_); +lean_dec(v_respStream_3398_); +lean_dec_ref(v_inst_3274_); +v___x_3415_ = lean_box(0); +v___x_3416_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__2(v_machine_3392_, v_requestStream_3393_, v_keepAliveTimeout_3394_, v_currentTimeout_3395_, v_headerTimeout_3396_, v_response_3397_, v_requiresData_3399_, v_expectData_3400_, v_handlerDispatched_3401_, v_pendingHead_3402_, v___x_3415_); +return v___x_3416_; +} +} +else +{ +lean_object* v_val_3417_; lean_object* v___x_3419_; uint8_t v_isShared_3420_; uint8_t v_isSharedCheck_3502_; +lean_dec_ref(v_inst_3274_); +v_val_3417_ = lean_ctor_get(v_x_3388_, 0); +v_isSharedCheck_3502_ = !lean_is_exclusive(v_x_3388_); +if (v_isSharedCheck_3502_ == 0) +{ +v___x_3419_ = v_x_3388_; +v_isShared_3420_ = v_isSharedCheck_3502_; +goto v_resetjp_3418_; +} +else +{ +lean_inc(v_val_3417_); +lean_dec(v_x_3388_); +v___x_3419_ = lean_box(0); +v_isShared_3420_ = v_isSharedCheck_3502_; +goto v_resetjp_3418_; +} +v_resetjp_3418_: +{ +lean_object* v_machine_3421_; lean_object* v_requestStream_3422_; lean_object* v_keepAliveTimeout_3423_; lean_object* v_currentTimeout_3424_; lean_object* v_headerTimeout_3425_; lean_object* v_response_3426_; lean_object* v_respStream_3427_; uint8_t v_requiresData_3428_; lean_object* v_expectData_3429_; uint8_t v_handlerDispatched_3430_; lean_object* v_pendingHead_3431_; lean_object* v___x_3433_; uint8_t v_isShared_3434_; uint8_t v_isSharedCheck_3501_; +v_machine_3421_ = lean_ctor_get(v_state_3278_, 0); +v_requestStream_3422_ = lean_ctor_get(v_state_3278_, 1); +v_keepAliveTimeout_3423_ = lean_ctor_get(v_state_3278_, 2); +v_currentTimeout_3424_ = lean_ctor_get(v_state_3278_, 3); +v_headerTimeout_3425_ = lean_ctor_get(v_state_3278_, 4); +v_response_3426_ = lean_ctor_get(v_state_3278_, 5); +v_respStream_3427_ = lean_ctor_get(v_state_3278_, 6); +v_requiresData_3428_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3429_ = lean_ctor_get(v_state_3278_, 7); +v_handlerDispatched_3430_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9 + 1); +v_pendingHead_3431_ = lean_ctor_get(v_state_3278_, 8); +v_isSharedCheck_3501_ = !lean_is_exclusive(v_state_3278_); +if (v_isSharedCheck_3501_ == 0) +{ +v___x_3433_ = v_state_3278_; +v_isShared_3434_ = v_isSharedCheck_3501_; +goto v_resetjp_3432_; +} +else +{ +lean_inc(v_pendingHead_3431_); +lean_inc(v_expectData_3429_); +lean_inc(v_respStream_3427_); +lean_inc(v_response_3426_); +lean_inc(v_headerTimeout_3425_); +lean_inc(v_currentTimeout_3424_); +lean_inc(v_keepAliveTimeout_3423_); +lean_inc(v_requestStream_3422_); +lean_inc(v_machine_3421_); +lean_dec(v_state_3278_); +v___x_3433_ = lean_box(0); +v_isShared_3434_ = v_isSharedCheck_3501_; +goto v_resetjp_3432_; +} +v_resetjp_3432_: +{ +lean_object* v___y_3436_; lean_object* v___x_3449_; lean_object* v___x_3450_; lean_object* v___x_3451_; lean_object* v___x_3452_; lean_object* v___x_3453_; uint8_t v___x_3454_; +v___x_3449_ = lean_unsigned_to_nat(1u); +v___x_3450_ = lean_mk_empty_array_with_capacity(v___x_3449_); +v___x_3451_ = lean_array_push(v___x_3450_, v_val_3417_); +v___x_3452_ = lean_array_get_size(v___x_3451_); +v___x_3453_ = lean_unsigned_to_nat(0u); +v___x_3454_ = lean_nat_dec_eq(v___x_3452_, v___x_3453_); +if (v___x_3454_ == 0) +{ +lean_object* v_reader_3455_; lean_object* v_writer_3456_; lean_object* v_config_3457_; lean_object* v_events_3458_; lean_object* v_error_3459_; lean_object* v_instant_3460_; uint8_t v_keepAlive_3461_; uint8_t v_forcedFlush_3462_; uint8_t v_pullBodyStalled_3463_; lean_object* v___x_3465_; uint8_t v_isShared_3466_; uint8_t v_isSharedCheck_3500_; +v_reader_3455_ = lean_ctor_get(v_machine_3421_, 0); +v_writer_3456_ = lean_ctor_get(v_machine_3421_, 1); +v_config_3457_ = lean_ctor_get(v_machine_3421_, 2); +v_events_3458_ = lean_ctor_get(v_machine_3421_, 3); +v_error_3459_ = lean_ctor_get(v_machine_3421_, 4); +v_instant_3460_ = lean_ctor_get(v_machine_3421_, 5); +v_keepAlive_3461_ = lean_ctor_get_uint8(v_machine_3421_, sizeof(void*)*6); +v_forcedFlush_3462_ = lean_ctor_get_uint8(v_machine_3421_, sizeof(void*)*6 + 1); +v_pullBodyStalled_3463_ = lean_ctor_get_uint8(v_machine_3421_, sizeof(void*)*6 + 2); +v_isSharedCheck_3500_ = !lean_is_exclusive(v_machine_3421_); +if (v_isSharedCheck_3500_ == 0) +{ +v___x_3465_ = v_machine_3421_; +v_isShared_3466_ = v_isSharedCheck_3500_; +goto v_resetjp_3464_; +} +else +{ +lean_inc(v_instant_3460_); +lean_inc(v_error_3459_); +lean_inc(v_events_3458_); +lean_inc(v_config_3457_); +lean_inc(v_writer_3456_); +lean_inc(v_reader_3455_); +lean_dec(v_machine_3421_); +v___x_3465_ = lean_box(0); +v_isShared_3466_ = v_isSharedCheck_3500_; +goto v_resetjp_3464_; +} +v_resetjp_3464_: +{ +lean_object* v___y_3468_; lean_object* v___x_3490_; uint8_t v___x_3491_; +v___x_3490_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg___lam__8___closed__9)); +v___x_3491_ = lean_nat_dec_lt(v___x_3453_, v___x_3452_); +if (v___x_3491_ == 0) +{ +v___y_3468_ = v___x_3453_; +goto v___jp_3467_; +} +else +{ +lean_object* v___f_3492_; uint8_t v___x_3493_; +v___f_3492_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___redArg___closed__0)); +v___x_3493_ = lean_nat_dec_le(v___x_3452_, v___x_3452_); +if (v___x_3493_ == 0) +{ +if (v___x_3491_ == 0) +{ +v___y_3468_ = v___x_3453_; +goto v___jp_3467_; +} +else +{ +size_t v___x_3494_; size_t v___x_3495_; lean_object* v___x_3496_; +v___x_3494_ = ((size_t)0ULL); +v___x_3495_ = lean_usize_of_nat(v___x_3452_); +lean_inc_ref(v___x_3451_); +v___x_3496_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_3490_, v___f_3492_, v___x_3451_, v___x_3494_, v___x_3495_, v___x_3453_); +v___y_3468_ = v___x_3496_; +goto v___jp_3467_; +} +} +else +{ +size_t v___x_3497_; size_t v___x_3498_; lean_object* v___x_3499_; +v___x_3497_ = ((size_t)0ULL); +v___x_3498_ = lean_usize_of_nat(v___x_3452_); +lean_inc_ref(v___x_3451_); +v___x_3499_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), v___x_3490_, v___f_3492_, v___x_3451_, v___x_3497_, v___x_3498_, v___x_3453_); +v___y_3468_ = v___x_3499_; +goto v___jp_3467_; +} +} +v___jp_3467_: +{ +lean_object* v_userData_3469_; lean_object* v_outputData_3470_; lean_object* v_state_3471_; lean_object* v_knownSize_3472_; lean_object* v_messageHead_3473_; uint8_t v_sentMessage_3474_; uint8_t v_userClosedBody_3475_; uint8_t v_omitBody_3476_; lean_object* v_userDataBytes_3477_; lean_object* v___x_3479_; uint8_t v_isShared_3480_; uint8_t v_isSharedCheck_3489_; +v_userData_3469_ = lean_ctor_get(v_writer_3456_, 0); +v_outputData_3470_ = lean_ctor_get(v_writer_3456_, 1); +v_state_3471_ = lean_ctor_get(v_writer_3456_, 2); +v_knownSize_3472_ = lean_ctor_get(v_writer_3456_, 3); +v_messageHead_3473_ = lean_ctor_get(v_writer_3456_, 4); +v_sentMessage_3474_ = lean_ctor_get_uint8(v_writer_3456_, sizeof(void*)*6); +v_userClosedBody_3475_ = lean_ctor_get_uint8(v_writer_3456_, sizeof(void*)*6 + 1); +v_omitBody_3476_ = lean_ctor_get_uint8(v_writer_3456_, sizeof(void*)*6 + 2); +v_userDataBytes_3477_ = lean_ctor_get(v_writer_3456_, 5); +v_isSharedCheck_3489_ = !lean_is_exclusive(v_writer_3456_); +if (v_isSharedCheck_3489_ == 0) +{ +v___x_3479_ = v_writer_3456_; +v_isShared_3480_ = v_isSharedCheck_3489_; +goto v_resetjp_3478_; +} +else +{ +lean_inc(v_userDataBytes_3477_); +lean_inc(v_messageHead_3473_); +lean_inc(v_knownSize_3472_); +lean_inc(v_state_3471_); +lean_inc(v_outputData_3470_); +lean_inc(v_userData_3469_); +lean_dec(v_writer_3456_); +v___x_3479_ = lean_box(0); +v_isShared_3480_ = v_isSharedCheck_3489_; +goto v_resetjp_3478_; +} +v_resetjp_3478_: +{ +lean_object* v___x_3481_; lean_object* v___x_3482_; lean_object* v___x_3484_; +v___x_3481_ = l_Array_append___redArg(v_userData_3469_, v___x_3451_); +lean_dec_ref(v___x_3451_); +v___x_3482_ = lean_nat_add(v_userDataBytes_3477_, v___y_3468_); +lean_dec(v___y_3468_); +lean_dec(v_userDataBytes_3477_); +if (v_isShared_3480_ == 0) +{ +lean_ctor_set(v___x_3479_, 5, v___x_3482_); +lean_ctor_set(v___x_3479_, 0, v___x_3481_); +v___x_3484_ = v___x_3479_; +goto v_reusejp_3483_; +} +else +{ +lean_object* v_reuseFailAlloc_3488_; +v_reuseFailAlloc_3488_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_3488_, 0, v___x_3481_); +lean_ctor_set(v_reuseFailAlloc_3488_, 1, v_outputData_3470_); +lean_ctor_set(v_reuseFailAlloc_3488_, 2, v_state_3471_); +lean_ctor_set(v_reuseFailAlloc_3488_, 3, v_knownSize_3472_); +lean_ctor_set(v_reuseFailAlloc_3488_, 4, v_messageHead_3473_); +lean_ctor_set(v_reuseFailAlloc_3488_, 5, v___x_3482_); +lean_ctor_set_uint8(v_reuseFailAlloc_3488_, sizeof(void*)*6, v_sentMessage_3474_); +lean_ctor_set_uint8(v_reuseFailAlloc_3488_, sizeof(void*)*6 + 1, v_userClosedBody_3475_); +lean_ctor_set_uint8(v_reuseFailAlloc_3488_, sizeof(void*)*6 + 2, v_omitBody_3476_); +v___x_3484_ = v_reuseFailAlloc_3488_; +goto v_reusejp_3483_; +} +v_reusejp_3483_: +{ +lean_object* v___x_3486_; +if (v_isShared_3466_ == 0) +{ +lean_ctor_set(v___x_3465_, 1, v___x_3484_); +v___x_3486_ = v___x_3465_; +goto v_reusejp_3485_; +} +else +{ +lean_object* v_reuseFailAlloc_3487_; +v_reuseFailAlloc_3487_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_3487_, 0, v_reader_3455_); +lean_ctor_set(v_reuseFailAlloc_3487_, 1, v___x_3484_); +lean_ctor_set(v_reuseFailAlloc_3487_, 2, v_config_3457_); +lean_ctor_set(v_reuseFailAlloc_3487_, 3, v_events_3458_); +lean_ctor_set(v_reuseFailAlloc_3487_, 4, v_error_3459_); +lean_ctor_set(v_reuseFailAlloc_3487_, 5, v_instant_3460_); +lean_ctor_set_uint8(v_reuseFailAlloc_3487_, sizeof(void*)*6, v_keepAlive_3461_); +lean_ctor_set_uint8(v_reuseFailAlloc_3487_, sizeof(void*)*6 + 1, v_forcedFlush_3462_); +lean_ctor_set_uint8(v_reuseFailAlloc_3487_, sizeof(void*)*6 + 2, v_pullBodyStalled_3463_); +v___x_3486_ = v_reuseFailAlloc_3487_; +goto v_reusejp_3485_; +} +v_reusejp_3485_: +{ +v___y_3436_ = v___x_3486_; +goto v___jp_3435_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v___x_3451_); +v___y_3436_ = v_machine_3421_; +goto v___jp_3435_; +} +v___jp_3435_: +{ +lean_object* v___x_3438_; +if (v_isShared_3434_ == 0) +{ +lean_ctor_set(v___x_3433_, 0, v___y_3436_); +v___x_3438_ = v___x_3433_; +goto v_reusejp_3437_; +} +else +{ +lean_object* v_reuseFailAlloc_3448_; +v_reuseFailAlloc_3448_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3448_, 0, v___y_3436_); +lean_ctor_set(v_reuseFailAlloc_3448_, 1, v_requestStream_3422_); +lean_ctor_set(v_reuseFailAlloc_3448_, 2, v_keepAliveTimeout_3423_); +lean_ctor_set(v_reuseFailAlloc_3448_, 3, v_currentTimeout_3424_); +lean_ctor_set(v_reuseFailAlloc_3448_, 4, v_headerTimeout_3425_); +lean_ctor_set(v_reuseFailAlloc_3448_, 5, v_response_3426_); +lean_ctor_set(v_reuseFailAlloc_3448_, 6, v_respStream_3427_); +lean_ctor_set(v_reuseFailAlloc_3448_, 7, v_expectData_3429_); +lean_ctor_set(v_reuseFailAlloc_3448_, 8, v_pendingHead_3431_); +lean_ctor_set_uint8(v_reuseFailAlloc_3448_, sizeof(void*)*9, v_requiresData_3428_); +lean_ctor_set_uint8(v_reuseFailAlloc_3448_, sizeof(void*)*9 + 1, v_handlerDispatched_3430_); +v___x_3438_ = v_reuseFailAlloc_3448_; +goto v_reusejp_3437_; +} +v_reusejp_3437_: +{ +uint8_t v___x_3439_; lean_object* v___x_3440_; lean_object* v___x_3441_; lean_object* v___x_3443_; +v___x_3439_ = 0; +v___x_3440_ = lean_box(v___x_3439_); +v___x_3441_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3441_, 0, v___x_3438_); +lean_ctor_set(v___x_3441_, 1, v___x_3440_); +if (v_isShared_3420_ == 0) +{ +lean_ctor_set(v___x_3419_, 0, v___x_3441_); +v___x_3443_ = v___x_3419_; +goto v_reusejp_3442_; +} +else +{ +lean_object* v_reuseFailAlloc_3447_; +v_reuseFailAlloc_3447_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3447_, 0, v___x_3441_); +v___x_3443_ = v_reuseFailAlloc_3447_; +goto v_reusejp_3442_; +} +v_reusejp_3442_: +{ +lean_object* v___x_3445_; +if (v_isShared_3391_ == 0) +{ +lean_ctor_set_tag(v___x_3390_, 0); +lean_ctor_set(v___x_3390_, 0, v___x_3443_); +v___x_3445_ = v___x_3390_; +goto v_reusejp_3444_; +} +else +{ +lean_object* v_reuseFailAlloc_3446_; +v_reuseFailAlloc_3446_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3446_, 0, v___x_3443_); +v___x_3445_ = v_reuseFailAlloc_3446_; +goto v_reusejp_3444_; +} +v_reusejp_3444_: +{ +return v___x_3445_; +} +} +} +} +} +} +} +} +} +case 2: +{ +uint8_t v_x_3504_; +lean_dec_ref(v_config_3276_); +lean_dec_ref(v_inst_3274_); +v_x_3504_ = lean_ctor_get_uint8(v_event_3277_, 0); +lean_dec_ref(v_event_3277_); +if (v_x_3504_ == 0) +{ +lean_object* v___x_3505_; lean_object* v___x_3506_; lean_object* v___x_3507_; lean_object* v___x_3508_; +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3273_); +v___x_3505_ = lean_box(v_x_3504_); +v___x_3506_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3506_, 0, v_state_3278_); +lean_ctor_set(v___x_3506_, 1, v___x_3505_); +v___x_3507_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3507_, 0, v___x_3506_); +v___x_3508_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3508_, 0, v___x_3507_); +return v___x_3508_; +} +else +{ +lean_object* v_machine_3509_; lean_object* v_requestStream_3510_; lean_object* v_keepAliveTimeout_3511_; lean_object* v_currentTimeout_3512_; lean_object* v_headerTimeout_3513_; lean_object* v_response_3514_; lean_object* v_respStream_3515_; uint8_t v_requiresData_3516_; lean_object* v_expectData_3517_; uint8_t v_handlerDispatched_3518_; lean_object* v_pendingHead_3519_; lean_object* v___x_3521_; uint8_t v_isShared_3522_; uint8_t v_isSharedCheck_3569_; +v_machine_3509_ = lean_ctor_get(v_state_3278_, 0); +v_requestStream_3510_ = lean_ctor_get(v_state_3278_, 1); +v_keepAliveTimeout_3511_ = lean_ctor_get(v_state_3278_, 2); +v_currentTimeout_3512_ = lean_ctor_get(v_state_3278_, 3); +v_headerTimeout_3513_ = lean_ctor_get(v_state_3278_, 4); +v_response_3514_ = lean_ctor_get(v_state_3278_, 5); +v_respStream_3515_ = lean_ctor_get(v_state_3278_, 6); +v_requiresData_3516_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3517_ = lean_ctor_get(v_state_3278_, 7); +v_handlerDispatched_3518_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9 + 1); +v_pendingHead_3519_ = lean_ctor_get(v_state_3278_, 8); +v_isSharedCheck_3569_ = !lean_is_exclusive(v_state_3278_); +if (v_isSharedCheck_3569_ == 0) +{ +v___x_3521_ = v_state_3278_; +v_isShared_3522_ = v_isSharedCheck_3569_; +goto v_resetjp_3520_; +} +else +{ +lean_inc(v_pendingHead_3519_); +lean_inc(v_expectData_3517_); +lean_inc(v_respStream_3515_); +lean_inc(v_response_3514_); +lean_inc(v_headerTimeout_3513_); +lean_inc(v_currentTimeout_3512_); +lean_inc(v_keepAliveTimeout_3511_); +lean_inc(v_requestStream_3510_); +lean_inc(v_machine_3509_); +lean_dec(v_state_3278_); +v___x_3521_ = lean_box(0); +v_isShared_3522_ = v_isSharedCheck_3569_; +goto v_resetjp_3520_; +} +v_resetjp_3520_: +{ +uint8_t v___x_3523_; lean_object* v___x_3524_; lean_object* v_fst_3525_; lean_object* v_snd_3526_; lean_object* v_reader_3527_; lean_object* v_writer_3528_; lean_object* v_config_3529_; lean_object* v_events_3530_; lean_object* v_error_3531_; lean_object* v_instant_3532_; uint8_t v_keepAlive_3533_; uint8_t v_forcedFlush_3534_; lean_object* v___x_3536_; uint8_t v_isShared_3537_; uint8_t v_isSharedCheck_3568_; +v___x_3523_ = 0; +v___x_3524_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v___x_3523_, v_machine_3509_); +v_fst_3525_ = lean_ctor_get(v___x_3524_, 0); +lean_inc(v_fst_3525_); +v_snd_3526_ = lean_ctor_get(v___x_3524_, 1); +lean_inc(v_snd_3526_); +lean_dec_ref(v___x_3524_); +v_reader_3527_ = lean_ctor_get(v_fst_3525_, 0); +v_writer_3528_ = lean_ctor_get(v_fst_3525_, 1); +v_config_3529_ = lean_ctor_get(v_fst_3525_, 2); +v_events_3530_ = lean_ctor_get(v_fst_3525_, 3); +v_error_3531_ = lean_ctor_get(v_fst_3525_, 4); +v_instant_3532_ = lean_ctor_get(v_fst_3525_, 5); +v_keepAlive_3533_ = lean_ctor_get_uint8(v_fst_3525_, sizeof(void*)*6); +v_forcedFlush_3534_ = lean_ctor_get_uint8(v_fst_3525_, sizeof(void*)*6 + 1); +v_isSharedCheck_3568_ = !lean_is_exclusive(v_fst_3525_); +if (v_isSharedCheck_3568_ == 0) +{ +v___x_3536_ = v_fst_3525_; +v_isShared_3537_ = v_isSharedCheck_3568_; +goto v_resetjp_3535_; +} +else +{ +lean_inc(v_instant_3532_); +lean_inc(v_error_3531_); +lean_inc(v_events_3530_); +lean_inc(v_config_3529_); +lean_inc(v_writer_3528_); +lean_inc(v_reader_3527_); +lean_dec(v_fst_3525_); +v___x_3536_ = lean_box(0); +v_isShared_3537_ = v_isSharedCheck_3568_; +goto v_resetjp_3535_; +} +v_resetjp_3535_: +{ +lean_object* v___f_3538_; lean_object* v___f_3539_; uint8_t v___y_3541_; +v___f_3538_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__6___boxed), 4, 2); +lean_closure_set(v___f_3538_, 0, v_inst_3273_); +lean_closure_set(v___f_3538_, 1, v_handler_3275_); +v___f_3539_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0)); +if (lean_obj_tag(v_snd_3526_) == 0) +{ +uint8_t v_sentMessage_3564_; +v_sentMessage_3564_ = lean_ctor_get_uint8(v_writer_3528_, sizeof(void*)*6); +if (v_sentMessage_3564_ == 0) +{ +lean_object* v_state_3565_; +v_state_3565_ = lean_ctor_get(v_reader_3527_, 0); +if (lean_obj_tag(v_state_3565_) == 2) +{ +v___y_3541_ = v_x_3504_; +goto v___jp_3540_; +} +else +{ +v___y_3541_ = v_sentMessage_3564_; +goto v___jp_3540_; +} +} +else +{ +uint8_t v___x_3566_; +v___x_3566_ = 0; +v___y_3541_ = v___x_3566_; +goto v___jp_3540_; +} +} +else +{ +uint8_t v___x_3567_; +v___x_3567_ = 0; +v___y_3541_ = v___x_3567_; +goto v___jp_3540_; +} +v___jp_3540_: +{ +lean_object* v___x_3543_; +if (v_isShared_3537_ == 0) +{ +v___x_3543_ = v___x_3536_; +goto v_reusejp_3542_; +} +else +{ +lean_object* v_reuseFailAlloc_3563_; +v_reuseFailAlloc_3563_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_3563_, 0, v_reader_3527_); +lean_ctor_set(v_reuseFailAlloc_3563_, 1, v_writer_3528_); +lean_ctor_set(v_reuseFailAlloc_3563_, 2, v_config_3529_); +lean_ctor_set(v_reuseFailAlloc_3563_, 3, v_events_3530_); +lean_ctor_set(v_reuseFailAlloc_3563_, 4, v_error_3531_); +lean_ctor_set(v_reuseFailAlloc_3563_, 5, v_instant_3532_); +lean_ctor_set_uint8(v_reuseFailAlloc_3563_, sizeof(void*)*6, v_keepAlive_3533_); +lean_ctor_set_uint8(v_reuseFailAlloc_3563_, sizeof(void*)*6 + 1, v_forcedFlush_3534_); +v___x_3543_ = v_reuseFailAlloc_3563_; +goto v_reusejp_3542_; +} +v_reusejp_3542_: +{ +lean_object* v_st_3545_; +lean_ctor_set_uint8(v___x_3543_, sizeof(void*)*6 + 2, v___y_3541_); +lean_inc_ref(v_requestStream_3510_); +if (v_isShared_3522_ == 0) +{ +lean_ctor_set(v___x_3521_, 0, v___x_3543_); +v_st_3545_ = v___x_3521_; +goto v_reusejp_3544_; +} +else +{ +lean_object* v_reuseFailAlloc_3562_; +v_reuseFailAlloc_3562_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3562_, 0, v___x_3543_); +lean_ctor_set(v_reuseFailAlloc_3562_, 1, v_requestStream_3510_); +lean_ctor_set(v_reuseFailAlloc_3562_, 2, v_keepAliveTimeout_3511_); +lean_ctor_set(v_reuseFailAlloc_3562_, 3, v_currentTimeout_3512_); +lean_ctor_set(v_reuseFailAlloc_3562_, 4, v_headerTimeout_3513_); +lean_ctor_set(v_reuseFailAlloc_3562_, 5, v_response_3514_); +lean_ctor_set(v_reuseFailAlloc_3562_, 6, v_respStream_3515_); +lean_ctor_set(v_reuseFailAlloc_3562_, 7, v_expectData_3517_); +lean_ctor_set(v_reuseFailAlloc_3562_, 8, v_pendingHead_3519_); +lean_ctor_set_uint8(v_reuseFailAlloc_3562_, sizeof(void*)*9, v_requiresData_3516_); +lean_ctor_set_uint8(v_reuseFailAlloc_3562_, sizeof(void*)*9 + 1, v_handlerDispatched_3518_); +v_st_3545_ = v_reuseFailAlloc_3562_; +goto v_reusejp_3544_; +} +v_reusejp_3544_: +{ +lean_object* v___f_3546_; +lean_inc_ref(v_st_3545_); +v___f_3546_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7___boxed), 3, 1); +lean_closure_set(v___f_3546_, 0, v_st_3545_); +if (lean_obj_tag(v_snd_3526_) == 1) +{ +lean_object* v_val_3547_; uint8_t v_final_3548_; uint8_t v_incomplete_3549_; lean_object* v_chunk_3550_; lean_object* v___x_3551_; lean_object* v___x_3552_; uint8_t v___x_3553_; lean_object* v___x_3554_; lean_object* v___f_3555_; lean_object* v___f_3556_; lean_object* v___x_3557_; lean_object* v___f_3558_; lean_object* v___x_3559_; +lean_dec_ref(v_st_3545_); +v_val_3547_ = lean_ctor_get(v_snd_3526_, 0); +lean_inc(v_val_3547_); +lean_dec_ref(v_snd_3526_); +v_final_3548_ = lean_ctor_get_uint8(v_val_3547_, sizeof(void*)*1); +v_incomplete_3549_ = lean_ctor_get_uint8(v_val_3547_, sizeof(void*)*1 + 1); +v_chunk_3550_ = lean_ctor_get(v_val_3547_, 0); +lean_inc_ref(v_chunk_3550_); +lean_dec(v_val_3547_); +lean_inc_ref_n(v_requestStream_3510_, 2); +v___x_3551_ = l_Std_Http_Body_Stream_send(v_requestStream_3510_, v_chunk_3550_, v_incomplete_3549_); +v___x_3552_ = lean_unsigned_to_nat(0u); +v___x_3553_ = 0; +v___x_3554_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3552_, v___x_3553_, v___x_3551_, v___f_3538_); +lean_inc_ref_n(v___f_3546_, 2); +v___f_3555_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_3555_, 0, v___f_3546_); +v___f_3556_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__8___boxed), 5, 3); +lean_closure_set(v___f_3556_, 0, v_requestStream_3510_); +lean_closure_set(v___f_3556_, 1, v___f_3555_); +lean_closure_set(v___f_3556_, 2, v___f_3546_); +v___x_3557_ = lean_box(v_final_3548_); +v___f_3558_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__5___boxed), 7, 5); +lean_closure_set(v___f_3558_, 0, v___x_3557_); +lean_closure_set(v___f_3558_, 1, v___f_3546_); +lean_closure_set(v___f_3558_, 2, v___f_3539_); +lean_closure_set(v___f_3558_, 3, v_requestStream_3510_); +lean_closure_set(v___f_3558_, 4, v___f_3556_); +v___x_3559_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3552_, v___x_3553_, v___x_3554_, v___f_3558_); +return v___x_3559_; +} +else +{ +lean_object* v___x_3560_; lean_object* v___x_3561_; +lean_dec_ref(v___f_3546_); +lean_dec_ref(v___f_3538_); +lean_dec(v_snd_3526_); +lean_dec_ref(v_requestStream_3510_); +v___x_3560_ = lean_box(0); +v___x_3561_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__7(v_st_3545_, v___x_3560_); +return v___x_3561_; +} +} +} +} +} +} +} +} +case 3: +{ +lean_object* v_x_3570_; +v_x_3570_ = lean_ctor_get(v_event_3277_, 0); +lean_inc_ref(v_x_3570_); +lean_dec_ref(v_event_3277_); +if (lean_obj_tag(v_x_3570_) == 0) +{ +lean_object* v_a_3571_; lean_object* v_onFailure_3572_; lean_object* v___x_3573_; lean_object* v___f_3574_; lean_object* v___x_3575_; uint8_t v___x_3576_; lean_object* v___x_3577_; +lean_dec_ref(v_config_3276_); +lean_dec_ref(v_inst_3274_); +v_a_3571_ = lean_ctor_get(v_x_3570_, 0); +lean_inc(v_a_3571_); +lean_dec_ref(v_x_3570_); +v_onFailure_3572_ = lean_ctor_get(v_inst_3273_, 2); +lean_inc_ref(v_onFailure_3572_); +lean_dec_ref(v_inst_3273_); +v___x_3573_ = lean_apply_3(v_onFailure_3572_, v_handler_3275_, v_a_3571_, lean_box(0)); +v___f_3574_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__9___boxed), 3, 1); +lean_closure_set(v___f_3574_, 0, v_state_3278_); +v___x_3575_ = lean_unsigned_to_nat(0u); +v___x_3576_ = 0; +v___x_3577_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3575_, v___x_3576_, v___x_3573_, v___f_3574_); +return v___x_3577_; +} +else +{ +lean_object* v_machine_3578_; lean_object* v_reader_3579_; lean_object* v_state_3580_; +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3273_); +v_machine_3578_ = lean_ctor_get(v_state_3278_, 0); +lean_inc_ref(v_machine_3578_); +v_reader_3579_ = lean_ctor_get(v_machine_3578_, 0); +v_state_3580_ = lean_ctor_get(v_reader_3579_, 0); +if (lean_obj_tag(v_state_3580_) == 7) +{ +lean_object* v_a_3581_; lean_object* v_requestStream_3582_; lean_object* v_keepAliveTimeout_3583_; lean_object* v_currentTimeout_3584_; lean_object* v_headerTimeout_3585_; lean_object* v_response_3586_; lean_object* v_respStream_3587_; uint8_t v_requiresData_3588_; lean_object* v_expectData_3589_; lean_object* v_pendingHead_3590_; lean_object* v_close_3591_; lean_object* v_isClosed_3592_; lean_object* v_body_3593_; lean_object* v___x_3594_; lean_object* v___x_3595_; lean_object* v___f_3596_; lean_object* v___f_3597_; lean_object* v___f_3598_; lean_object* v___x_3599_; uint8_t v___x_3600_; lean_object* v___x_3601_; +lean_dec_ref(v_config_3276_); +v_a_3581_ = lean_ctor_get(v_x_3570_, 0); +lean_inc(v_a_3581_); +lean_dec_ref(v_x_3570_); +v_requestStream_3582_ = lean_ctor_get(v_state_3278_, 1); +lean_inc_ref(v_requestStream_3582_); +v_keepAliveTimeout_3583_ = lean_ctor_get(v_state_3278_, 2); +lean_inc(v_keepAliveTimeout_3583_); +v_currentTimeout_3584_ = lean_ctor_get(v_state_3278_, 3); +lean_inc(v_currentTimeout_3584_); +v_headerTimeout_3585_ = lean_ctor_get(v_state_3278_, 4); +lean_inc(v_headerTimeout_3585_); +v_response_3586_ = lean_ctor_get(v_state_3278_, 5); +lean_inc_ref(v_response_3586_); +v_respStream_3587_ = lean_ctor_get(v_state_3278_, 6); +lean_inc(v_respStream_3587_); +v_requiresData_3588_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3589_ = lean_ctor_get(v_state_3278_, 7); +lean_inc(v_expectData_3589_); +v_pendingHead_3590_ = lean_ctor_get(v_state_3278_, 8); +lean_inc(v_pendingHead_3590_); +lean_dec_ref(v_state_3278_); +v_close_3591_ = lean_ctor_get(v_inst_3274_, 1); +lean_inc_ref(v_close_3591_); +v_isClosed_3592_ = lean_ctor_get(v_inst_3274_, 2); +lean_inc_ref(v_isClosed_3592_); +lean_dec_ref(v_inst_3274_); +v_body_3593_ = lean_ctor_get(v_a_3581_, 1); +lean_inc_n(v_body_3593_, 2); +lean_dec(v_a_3581_); +v___x_3594_ = lean_apply_2(v_isClosed_3592_, v_body_3593_, lean_box(0)); +v___x_3595_ = lean_box(v_requiresData_3588_); +v___f_3596_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__10___boxed), 12, 10); +lean_closure_set(v___f_3596_, 0, v_machine_3578_); +lean_closure_set(v___f_3596_, 1, v_requestStream_3582_); +lean_closure_set(v___f_3596_, 2, v_keepAliveTimeout_3583_); +lean_closure_set(v___f_3596_, 3, v_currentTimeout_3584_); +lean_closure_set(v___f_3596_, 4, v_headerTimeout_3585_); +lean_closure_set(v___f_3596_, 5, v_response_3586_); +lean_closure_set(v___f_3596_, 6, v_respStream_3587_); +lean_closure_set(v___f_3596_, 7, v___x_3595_); +lean_closure_set(v___f_3596_, 8, v_expectData_3589_); +lean_closure_set(v___f_3596_, 9, v_pendingHead_3590_); +lean_inc_ref(v___f_3596_); +v___f_3597_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_3597_, 0, v___f_3596_); +v___f_3598_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__12___boxed), 6, 4); +lean_closure_set(v___f_3598_, 0, v_close_3591_); +lean_closure_set(v___f_3598_, 1, v_body_3593_); +lean_closure_set(v___f_3598_, 2, v___f_3597_); +lean_closure_set(v___f_3598_, 3, v___f_3596_); +v___x_3599_ = lean_unsigned_to_nat(0u); +v___x_3600_ = 0; +v___x_3601_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3599_, v___x_3600_, v___x_3594_, v___f_3598_); +return v___x_3601_; +} +else +{ +lean_object* v_a_3602_; lean_object* v_requestStream_3603_; lean_object* v_keepAliveTimeout_3604_; lean_object* v_currentTimeout_3605_; lean_object* v_headerTimeout_3606_; lean_object* v_response_3607_; uint8_t v_requiresData_3608_; lean_object* v_expectData_3609_; lean_object* v_pendingHead_3610_; lean_object* v___x_3611_; uint8_t v___x_3612_; lean_object* v___x_3613_; lean_object* v___x_3614_; lean_object* v___f_3615_; lean_object* v___f_3616_; lean_object* v___x_3617_; lean_object* v___f_3618_; lean_object* v___x_3619_; lean_object* v___x_3620_; +v_a_3602_ = lean_ctor_get(v_x_3570_, 0); +lean_inc(v_a_3602_); +lean_dec_ref(v_x_3570_); +v_requestStream_3603_ = lean_ctor_get(v_state_3278_, 1); +lean_inc_ref(v_requestStream_3603_); +v_keepAliveTimeout_3604_ = lean_ctor_get(v_state_3278_, 2); +lean_inc(v_keepAliveTimeout_3604_); +v_currentTimeout_3605_ = lean_ctor_get(v_state_3278_, 3); +lean_inc(v_currentTimeout_3605_); +v_headerTimeout_3606_ = lean_ctor_get(v_state_3278_, 4); +lean_inc(v_headerTimeout_3606_); +v_response_3607_ = lean_ctor_get(v_state_3278_, 5); +lean_inc_ref(v_response_3607_); +v_requiresData_3608_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3609_ = lean_ctor_get(v_state_3278_, 7); +lean_inc(v_expectData_3609_); +v_pendingHead_3610_ = lean_ctor_get(v_state_3278_, 8); +lean_inc(v_pendingHead_3610_); +lean_dec_ref(v_state_3278_); +lean_inc_ref(v_inst_3274_); +v___x_3611_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___redArg(v_inst_3274_, v_config_3276_, v_machine_3578_, v_a_3602_); +v___x_3612_ = 0; +v___x_3613_ = lean_box(v_requiresData_3608_); +v___x_3614_ = lean_box(v___x_3612_); +v___f_3615_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__11___boxed), 11, 9); +lean_closure_set(v___f_3615_, 0, v_requestStream_3603_); +lean_closure_set(v___f_3615_, 1, v_keepAliveTimeout_3604_); +lean_closure_set(v___f_3615_, 2, v_currentTimeout_3605_); +lean_closure_set(v___f_3615_, 3, v_headerTimeout_3606_); +lean_closure_set(v___f_3615_, 4, v_response_3607_); +lean_closure_set(v___f_3615_, 5, v___x_3613_); +lean_closure_set(v___f_3615_, 6, v_expectData_3609_); +lean_closure_set(v___f_3615_, 7, v___x_3614_); +lean_closure_set(v___f_3615_, 8, v_pendingHead_3610_); +v___f_3616_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__13___boxed), 3, 1); +lean_closure_set(v___f_3616_, 0, v___f_3615_); +v___x_3617_ = lean_box(v___x_3612_); +lean_inc_ref(v___f_3616_); +v___f_3618_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__15___boxed), 6, 4); +lean_closure_set(v___f_3618_, 0, v___x_3617_); +lean_closure_set(v___f_3618_, 1, v___f_3616_); +lean_closure_set(v___f_3618_, 2, v_inst_3274_); +lean_closure_set(v___f_3618_, 3, v___f_3616_); +v___x_3619_ = lean_unsigned_to_nat(0u); +v___x_3620_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3619_, v___x_3612_, v___x_3611_, v___f_3618_); +return v___x_3620_; +} +} +} +case 4: +{ +lean_object* v_onFailure_3621_; lean_object* v___x_3622_; lean_object* v___x_3623_; lean_object* v___f_3624_; lean_object* v___x_3625_; uint8_t v___x_3626_; lean_object* v___x_3627_; +lean_dec_ref(v_config_3276_); +lean_dec_ref(v_inst_3274_); +v_onFailure_3621_ = lean_ctor_get(v_inst_3273_, 2); +lean_inc_ref(v_onFailure_3621_); +lean_dec_ref(v_inst_3273_); +v___x_3622_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___closed__1); +v___x_3623_ = lean_apply_3(v_onFailure_3621_, v_handler_3275_, v___x_3622_, lean_box(0)); +v___f_3624_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___lam__14___boxed), 3, 1); +lean_closure_set(v___f_3624_, 0, v_state_3278_); +v___x_3625_ = lean_unsigned_to_nat(0u); +v___x_3626_ = 0; +v___x_3627_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3625_, v___x_3626_, v___x_3623_, v___f_3624_); +return v___x_3627_; +} +case 5: +{ +lean_object* v_machine_3628_; lean_object* v_requestStream_3629_; lean_object* v_keepAliveTimeout_3630_; lean_object* v_currentTimeout_3631_; lean_object* v_headerTimeout_3632_; lean_object* v_response_3633_; lean_object* v_respStream_3634_; uint8_t v_requiresData_3635_; lean_object* v_expectData_3636_; lean_object* v_pendingHead_3637_; lean_object* v___x_3639_; uint8_t v_isShared_3640_; uint8_t v_isSharedCheck_3651_; +lean_dec_ref(v_config_3276_); +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3274_); +lean_dec_ref(v_inst_3273_); +v_machine_3628_ = lean_ctor_get(v_state_3278_, 0); +v_requestStream_3629_ = lean_ctor_get(v_state_3278_, 1); +v_keepAliveTimeout_3630_ = lean_ctor_get(v_state_3278_, 2); +v_currentTimeout_3631_ = lean_ctor_get(v_state_3278_, 3); +v_headerTimeout_3632_ = lean_ctor_get(v_state_3278_, 4); +v_response_3633_ = lean_ctor_get(v_state_3278_, 5); +v_respStream_3634_ = lean_ctor_get(v_state_3278_, 6); +v_requiresData_3635_ = lean_ctor_get_uint8(v_state_3278_, sizeof(void*)*9); +v_expectData_3636_ = lean_ctor_get(v_state_3278_, 7); +v_pendingHead_3637_ = lean_ctor_get(v_state_3278_, 8); +v_isSharedCheck_3651_ = !lean_is_exclusive(v_state_3278_); +if (v_isSharedCheck_3651_ == 0) +{ +v___x_3639_ = v_state_3278_; +v_isShared_3640_ = v_isSharedCheck_3651_; +goto v_resetjp_3638_; +} +else +{ +lean_inc(v_pendingHead_3637_); +lean_inc(v_expectData_3636_); +lean_inc(v_respStream_3634_); +lean_inc(v_response_3633_); +lean_inc(v_headerTimeout_3632_); +lean_inc(v_currentTimeout_3631_); +lean_inc(v_keepAliveTimeout_3630_); +lean_inc(v_requestStream_3629_); +lean_inc(v_machine_3628_); +lean_dec(v_state_3278_); +v___x_3639_ = lean_box(0); +v_isShared_3640_ = v_isSharedCheck_3651_; +goto v_resetjp_3638_; +} +v_resetjp_3638_: +{ +lean_object* v___x_3641_; lean_object* v___x_3642_; uint8_t v___x_3643_; lean_object* v___x_3645_; +v___x_3641_ = lean_box(55); +v___x_3642_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_3628_, v___x_3641_); +v___x_3643_ = 0; +if (v_isShared_3640_ == 0) +{ +lean_ctor_set(v___x_3639_, 0, v___x_3642_); +v___x_3645_ = v___x_3639_; +goto v_reusejp_3644_; +} +else +{ +lean_object* v_reuseFailAlloc_3650_; +v_reuseFailAlloc_3650_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3650_, 0, v___x_3642_); +lean_ctor_set(v_reuseFailAlloc_3650_, 1, v_requestStream_3629_); +lean_ctor_set(v_reuseFailAlloc_3650_, 2, v_keepAliveTimeout_3630_); +lean_ctor_set(v_reuseFailAlloc_3650_, 3, v_currentTimeout_3631_); +lean_ctor_set(v_reuseFailAlloc_3650_, 4, v_headerTimeout_3632_); +lean_ctor_set(v_reuseFailAlloc_3650_, 5, v_response_3633_); +lean_ctor_set(v_reuseFailAlloc_3650_, 6, v_respStream_3634_); +lean_ctor_set(v_reuseFailAlloc_3650_, 7, v_expectData_3636_); +lean_ctor_set(v_reuseFailAlloc_3650_, 8, v_pendingHead_3637_); +lean_ctor_set_uint8(v_reuseFailAlloc_3650_, sizeof(void*)*9, v_requiresData_3635_); +v___x_3645_ = v_reuseFailAlloc_3650_; +goto v_reusejp_3644_; +} +v_reusejp_3644_: +{ +lean_object* v___x_3646_; lean_object* v___x_3647_; lean_object* v___x_3648_; lean_object* v___x_3649_; +lean_ctor_set_uint8(v___x_3645_, sizeof(void*)*9 + 1, v___x_3643_); +v___x_3646_ = lean_box(v___x_3643_); +v___x_3647_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3647_, 0, v___x_3645_); +lean_ctor_set(v___x_3647_, 1, v___x_3646_); +v___x_3648_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3648_, 0, v___x_3647_); +v___x_3649_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3649_, 0, v___x_3648_); +return v___x_3649_; +} +} +} +default: +{ +uint8_t v___x_3652_; lean_object* v___x_3653_; lean_object* v___x_3654_; lean_object* v___x_3655_; lean_object* v___x_3656_; +lean_dec_ref(v_config_3276_); +lean_dec(v_handler_3275_); +lean_dec_ref(v_inst_3274_); +lean_dec_ref(v_inst_3273_); +v___x_3652_ = 1; +v___x_3653_ = lean_box(v___x_3652_); +v___x_3654_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3654_, 0, v_state_3278_); +lean_ctor_set(v___x_3654_, 1, v___x_3653_); +v___x_3655_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3655_, 0, v___x_3654_); +v___x_3656_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3656_, 0, v___x_3655_); +return v___x_3656_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg___boxed(lean_object* v_inst_3657_, lean_object* v_inst_3658_, lean_object* v_handler_3659_, lean_object* v_config_3660_, lean_object* v_event_3661_, lean_object* v_state_3662_, lean_object* v_a_3663_){ +_start: +{ +lean_object* v_res_3664_; +v_res_3664_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg(v_inst_3657_, v_inst_3658_, v_handler_3659_, v_config_3660_, v_event_3661_, v_state_3662_); +return v_res_3664_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent(lean_object* v_00_u03c3_3665_, lean_object* v_00_u03b2_3666_, lean_object* v_inst_3667_, lean_object* v_inst_3668_, lean_object* v_handler_3669_, lean_object* v_config_3670_, lean_object* v_event_3671_, lean_object* v_state_3672_){ +_start: +{ +lean_object* v___x_3674_; +v___x_3674_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg(v_inst_3667_, v_inst_3668_, v_handler_3669_, v_config_3670_, v_event_3671_, v_state_3672_); +return v___x_3674_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___boxed(lean_object* v_00_u03c3_3675_, lean_object* v_00_u03b2_3676_, lean_object* v_inst_3677_, lean_object* v_inst_3678_, lean_object* v_handler_3679_, lean_object* v_config_3680_, lean_object* v_event_3681_, lean_object* v_state_3682_, lean_object* v_a_3683_){ +_start: +{ +lean_object* v_res_3684_; +v_res_3684_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent(v_00_u03c3_3675_, v_00_u03b2_3676_, v_inst_3677_, v_inst_3678_, v_handler_3679_, v_config_3680_, v_event_3681_, v_state_3682_); +return v_res_3684_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0(lean_object* v_connectionContext_3685_, uint8_t v_handlerDispatched_3686_, lean_object* v_headerTimeout_3687_, lean_object* v_expectData_3688_, lean_object* v_keepAliveTimeout_3689_, lean_object* v_currentTimeout_3690_, lean_object* v_respStream_3691_, lean_object* v_response_3692_, lean_object* v_socket_3693_, uint8_t v_requiresData_3694_, uint8_t v_sentMessage_3695_, lean_object* v_reader_3696_, uint8_t v_requestBodyInterested_3697_, lean_object* v_requestBody_3698_){ +_start: +{ +lean_object* v___y_3701_; lean_object* v___y_3702_; lean_object* v___y_3703_; lean_object* v___y_3704_; lean_object* v___y_3705_; lean_object* v___y_3706_; lean_object* v___y_3707_; lean_object* v___y_3712_; +if (v_requiresData_3694_ == 0) +{ +if (v_handlerDispatched_3686_ == 0) +{ +goto v___jp_3715_; +} +else +{ +if (lean_obj_tag(v_respStream_3691_) == 0) +{ +if (v_sentMessage_3695_ == 0) +{ +lean_object* v_state_3719_; +v_state_3719_ = lean_ctor_get(v_reader_3696_, 0); +if (lean_obj_tag(v_state_3719_) == 2) +{ +if (v_requestBodyInterested_3697_ == 0) +{ +lean_dec(v_socket_3693_); +goto v___jp_3717_; +} +else +{ +goto v___jp_3715_; +} +} +else +{ +lean_dec(v_socket_3693_); +goto v___jp_3717_; +} +} +else +{ +goto v___jp_3715_; +} +} +else +{ +goto v___jp_3715_; +} +} +} +else +{ +goto v___jp_3715_; +} +v___jp_3700_: +{ +lean_object* v___x_3708_; lean_object* v___x_3709_; lean_object* v___x_3710_; +v___x_3708_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v___x_3708_, 0, v___y_3701_); +lean_ctor_set(v___x_3708_, 1, v___y_3703_); +lean_ctor_set(v___x_3708_, 2, v___y_3707_); +lean_ctor_set(v___x_3708_, 3, v___y_3706_); +lean_ctor_set(v___x_3708_, 4, v_requestBody_3698_); +lean_ctor_set(v___x_3708_, 5, v___y_3705_); +lean_ctor_set(v___x_3708_, 6, v___y_3704_); +lean_ctor_set(v___x_3708_, 7, v___y_3702_); +lean_ctor_set(v___x_3708_, 8, v_connectionContext_3685_); +v___x_3709_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3709_, 0, v___x_3708_); +v___x_3710_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3710_, 0, v___x_3709_); +return v___x_3710_; +} +v___jp_3711_: +{ +if (v_handlerDispatched_3686_ == 0) +{ +lean_object* v___x_3713_; +lean_dec_ref(v_response_3692_); +v___x_3713_ = lean_box(0); +v___y_3701_ = v___y_3712_; +v___y_3702_ = v_headerTimeout_3687_; +v___y_3703_ = v_expectData_3688_; +v___y_3704_ = v_keepAliveTimeout_3689_; +v___y_3705_ = v_currentTimeout_3690_; +v___y_3706_ = v_respStream_3691_; +v___y_3707_ = v___x_3713_; +goto v___jp_3700_; +} +else +{ +lean_object* v___x_3714_; +v___x_3714_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3714_, 0, v_response_3692_); +v___y_3701_ = v___y_3712_; +v___y_3702_ = v_headerTimeout_3687_; +v___y_3703_ = v_expectData_3688_; +v___y_3704_ = v_keepAliveTimeout_3689_; +v___y_3705_ = v_currentTimeout_3690_; +v___y_3706_ = v_respStream_3691_; +v___y_3707_ = v___x_3714_; +goto v___jp_3700_; +} +} +v___jp_3715_: +{ +lean_object* v___x_3716_; +v___x_3716_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3716_, 0, v_socket_3693_); +v___y_3712_ = v___x_3716_; +goto v___jp_3711_; +} +v___jp_3717_: +{ +lean_object* v___x_3718_; +v___x_3718_ = lean_box(0); +v___y_3712_ = v___x_3718_; +goto v___jp_3711_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0___boxed(lean_object* v_connectionContext_3720_, lean_object* v_handlerDispatched_3721_, lean_object* v_headerTimeout_3722_, lean_object* v_expectData_3723_, lean_object* v_keepAliveTimeout_3724_, lean_object* v_currentTimeout_3725_, lean_object* v_respStream_3726_, lean_object* v_response_3727_, lean_object* v_socket_3728_, lean_object* v_requiresData_3729_, lean_object* v_sentMessage_3730_, lean_object* v_reader_3731_, lean_object* v_requestBodyInterested_3732_, lean_object* v_requestBody_3733_, lean_object* v___y_3734_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_3735_; uint8_t v_requiresData_boxed_3736_; uint8_t v_sentMessage_boxed_3737_; uint8_t v_requestBodyInterested_boxed_3738_; lean_object* v_res_3739_; +v_handlerDispatched_boxed_3735_ = lean_unbox(v_handlerDispatched_3721_); +v_requiresData_boxed_3736_ = lean_unbox(v_requiresData_3729_); +v_sentMessage_boxed_3737_ = lean_unbox(v_sentMessage_3730_); +v_requestBodyInterested_boxed_3738_ = lean_unbox(v_requestBodyInterested_3732_); +v_res_3739_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0(v_connectionContext_3720_, v_handlerDispatched_boxed_3735_, v_headerTimeout_3722_, v_expectData_3723_, v_keepAliveTimeout_3724_, v_currentTimeout_3725_, v_respStream_3726_, v_response_3727_, v_socket_3728_, v_requiresData_boxed_3736_, v_sentMessage_boxed_3737_, v_reader_3731_, v_requestBodyInterested_boxed_3738_, v_requestBody_3733_); +lean_dec_ref(v_reader_3731_); +return v_res_3739_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1(lean_object* v___f_3740_, lean_object* v_x_3741_){ +_start: +{ +if (lean_obj_tag(v_x_3741_) == 0) +{ +lean_object* v_a_3743_; lean_object* v___x_3745_; uint8_t v_isShared_3746_; uint8_t v_isSharedCheck_3751_; +lean_dec_ref(v___f_3740_); +v_a_3743_ = lean_ctor_get(v_x_3741_, 0); +v_isSharedCheck_3751_ = !lean_is_exclusive(v_x_3741_); +if (v_isSharedCheck_3751_ == 0) +{ +v___x_3745_ = v_x_3741_; +v_isShared_3746_ = v_isSharedCheck_3751_; +goto v_resetjp_3744_; +} +else +{ +lean_inc(v_a_3743_); +lean_dec(v_x_3741_); +v___x_3745_ = lean_box(0); +v_isShared_3746_ = v_isSharedCheck_3751_; +goto v_resetjp_3744_; +} +v_resetjp_3744_: +{ +lean_object* v___x_3748_; +if (v_isShared_3746_ == 0) +{ +v___x_3748_ = v___x_3745_; +goto v_reusejp_3747_; +} +else +{ +lean_object* v_reuseFailAlloc_3750_; +v_reuseFailAlloc_3750_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3750_, 0, v_a_3743_); +v___x_3748_ = v_reuseFailAlloc_3750_; +goto v_reusejp_3747_; +} +v_reusejp_3747_: +{ +lean_object* v___x_3749_; +v___x_3749_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3749_, 0, v___x_3748_); +return v___x_3749_; +} +} +} +else +{ +lean_object* v_a_3752_; lean_object* v___x_3753_; +v_a_3752_ = lean_ctor_get(v_x_3741_, 0); +lean_inc(v_a_3752_); +lean_dec_ref(v_x_3741_); +v___x_3753_ = lean_apply_2(v___f_3740_, v_a_3752_, lean_box(0)); +return v___x_3753_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1___boxed(lean_object* v___f_3754_, lean_object* v_x_3755_, lean_object* v___y_3756_){ +_start: +{ +lean_object* v_res_3757_; +v_res_3757_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1(v___f_3754_, v_x_3755_); +return v_res_3757_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3(lean_object* v_connectionContext_3762_, uint8_t v_handlerDispatched_3763_, lean_object* v_headerTimeout_3764_, lean_object* v_expectData_3765_, lean_object* v_keepAliveTimeout_3766_, lean_object* v_currentTimeout_3767_, lean_object* v_respStream_3768_, lean_object* v_response_3769_, lean_object* v_socket_3770_, uint8_t v_requiresData_3771_, uint8_t v_sentMessage_3772_, lean_object* v_reader_3773_, uint8_t v_pullBodyStalled_3774_, uint8_t v_requestBodyOpen_3775_, lean_object* v_requestStream_3776_, uint8_t v_requestBodyInterested_3777_){ +_start: +{ +lean_object* v___x_3779_; lean_object* v___x_3780_; lean_object* v___x_3781_; lean_object* v___x_3782_; lean_object* v___f_3783_; lean_object* v___f_3784_; +v___x_3779_ = lean_box(v_handlerDispatched_3763_); +v___x_3780_ = lean_box(v_requiresData_3771_); +v___x_3781_ = lean_box(v_sentMessage_3772_); +v___x_3782_ = lean_box(v_requestBodyInterested_3777_); +lean_inc_ref(v_reader_3773_); +v___f_3783_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__0___boxed), 15, 13); +lean_closure_set(v___f_3783_, 0, v_connectionContext_3762_); +lean_closure_set(v___f_3783_, 1, v___x_3779_); +lean_closure_set(v___f_3783_, 2, v_headerTimeout_3764_); +lean_closure_set(v___f_3783_, 3, v_expectData_3765_); +lean_closure_set(v___f_3783_, 4, v_keepAliveTimeout_3766_); +lean_closure_set(v___f_3783_, 5, v_currentTimeout_3767_); +lean_closure_set(v___f_3783_, 6, v_respStream_3768_); +lean_closure_set(v___f_3783_, 7, v_response_3769_); +lean_closure_set(v___f_3783_, 8, v_socket_3770_); +lean_closure_set(v___f_3783_, 9, v___x_3780_); +lean_closure_set(v___f_3783_, 10, v___x_3781_); +lean_closure_set(v___f_3783_, 11, v_reader_3773_); +lean_closure_set(v___f_3783_, 12, v___x_3782_); +v___f_3784_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_3784_, 0, v___f_3783_); +if (v_sentMessage_3772_ == 0) +{ +lean_object* v_state_3790_; +v_state_3790_ = lean_ctor_get(v_reader_3773_, 0); +lean_inc(v_state_3790_); +lean_dec_ref(v_reader_3773_); +if (lean_obj_tag(v_state_3790_) == 2) +{ +lean_object* v___x_3792_; uint8_t v_isShared_3793_; uint8_t v_isSharedCheck_3801_; +v_isSharedCheck_3801_ = !lean_is_exclusive(v_state_3790_); +if (v_isSharedCheck_3801_ == 0) +{ +lean_object* v_unused_3802_; +v_unused_3802_ = lean_ctor_get(v_state_3790_, 0); +lean_dec(v_unused_3802_); +v___x_3792_ = v_state_3790_; +v_isShared_3793_ = v_isSharedCheck_3801_; +goto v_resetjp_3791_; +} +else +{ +lean_dec(v_state_3790_); +v___x_3792_ = lean_box(0); +v_isShared_3793_ = v_isSharedCheck_3801_; +goto v_resetjp_3791_; +} +v_resetjp_3791_: +{ +if (v_pullBodyStalled_3774_ == 0) +{ +if (v_requestBodyOpen_3775_ == 0) +{ +lean_del_object(v___x_3792_); +lean_dec_ref(v_requestStream_3776_); +goto v___jp_3785_; +} +else +{ +lean_object* v___x_3795_; +if (v_isShared_3793_ == 0) +{ +lean_ctor_set_tag(v___x_3792_, 1); +lean_ctor_set(v___x_3792_, 0, v_requestStream_3776_); +v___x_3795_ = v___x_3792_; +goto v_reusejp_3794_; +} +else +{ +lean_object* v_reuseFailAlloc_3800_; +v_reuseFailAlloc_3800_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3800_, 0, v_requestStream_3776_); +v___x_3795_ = v_reuseFailAlloc_3800_; +goto v_reusejp_3794_; +} +v_reusejp_3794_: +{ +lean_object* v___x_3796_; lean_object* v___x_3797_; lean_object* v___x_3798_; lean_object* v___x_3799_; +v___x_3796_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3796_, 0, v___x_3795_); +v___x_3797_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3797_, 0, v___x_3796_); +v___x_3798_ = lean_unsigned_to_nat(0u); +v___x_3799_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3798_, v_pullBodyStalled_3774_, v___x_3797_, v___f_3784_); +return v___x_3799_; +} +} +} +else +{ +lean_del_object(v___x_3792_); +lean_dec_ref(v_requestStream_3776_); +goto v___jp_3785_; +} +} +} +else +{ +lean_dec(v_state_3790_); +lean_dec_ref(v_requestStream_3776_); +goto v___jp_3785_; +} +} +else +{ +lean_dec_ref(v_requestStream_3776_); +lean_dec_ref(v_reader_3773_); +goto v___jp_3785_; +} +v___jp_3785_: +{ +lean_object* v___x_3786_; lean_object* v___x_3787_; uint8_t v___x_3788_; lean_object* v___x_3789_; +v___x_3786_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___closed__1)); +v___x_3787_ = lean_unsigned_to_nat(0u); +v___x_3788_ = 0; +v___x_3789_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3787_, v___x_3788_, v___x_3786_, v___f_3784_); +return v___x_3789_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___boxed(lean_object** _args){ +lean_object* v_connectionContext_3803_ = _args[0]; +lean_object* v_handlerDispatched_3804_ = _args[1]; +lean_object* v_headerTimeout_3805_ = _args[2]; +lean_object* v_expectData_3806_ = _args[3]; +lean_object* v_keepAliveTimeout_3807_ = _args[4]; +lean_object* v_currentTimeout_3808_ = _args[5]; +lean_object* v_respStream_3809_ = _args[6]; +lean_object* v_response_3810_ = _args[7]; +lean_object* v_socket_3811_ = _args[8]; +lean_object* v_requiresData_3812_ = _args[9]; +lean_object* v_sentMessage_3813_ = _args[10]; +lean_object* v_reader_3814_ = _args[11]; +lean_object* v_pullBodyStalled_3815_ = _args[12]; +lean_object* v_requestBodyOpen_3816_ = _args[13]; +lean_object* v_requestStream_3817_ = _args[14]; +lean_object* v_requestBodyInterested_3818_ = _args[15]; +lean_object* v___y_3819_ = _args[16]; +_start: +{ +uint8_t v_handlerDispatched_boxed_3820_; uint8_t v_requiresData_boxed_3821_; uint8_t v_sentMessage_boxed_3822_; uint8_t v_pullBodyStalled_boxed_3823_; uint8_t v_requestBodyOpen_boxed_3824_; uint8_t v_requestBodyInterested_boxed_3825_; lean_object* v_res_3826_; +v_handlerDispatched_boxed_3820_ = lean_unbox(v_handlerDispatched_3804_); +v_requiresData_boxed_3821_ = lean_unbox(v_requiresData_3812_); +v_sentMessage_boxed_3822_ = lean_unbox(v_sentMessage_3813_); +v_pullBodyStalled_boxed_3823_ = lean_unbox(v_pullBodyStalled_3815_); +v_requestBodyOpen_boxed_3824_ = lean_unbox(v_requestBodyOpen_3816_); +v_requestBodyInterested_boxed_3825_ = lean_unbox(v_requestBodyInterested_3818_); +v_res_3826_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3(v_connectionContext_3803_, v_handlerDispatched_boxed_3820_, v_headerTimeout_3805_, v_expectData_3806_, v_keepAliveTimeout_3807_, v_currentTimeout_3808_, v_respStream_3809_, v_response_3810_, v_socket_3811_, v_requiresData_boxed_3821_, v_sentMessage_boxed_3822_, v_reader_3814_, v_pullBodyStalled_boxed_3823_, v_requestBodyOpen_boxed_3824_, v_requestStream_3817_, v_requestBodyInterested_boxed_3825_); +return v_res_3826_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2(lean_object* v___f_3827_, lean_object* v_x_3828_){ +_start: +{ +if (lean_obj_tag(v_x_3828_) == 0) +{ +lean_object* v_a_3830_; lean_object* v___x_3832_; uint8_t v_isShared_3833_; uint8_t v_isSharedCheck_3838_; +lean_dec_ref(v___f_3827_); +v_a_3830_ = lean_ctor_get(v_x_3828_, 0); +v_isSharedCheck_3838_ = !lean_is_exclusive(v_x_3828_); +if (v_isSharedCheck_3838_ == 0) +{ +v___x_3832_ = v_x_3828_; +v_isShared_3833_ = v_isSharedCheck_3838_; +goto v_resetjp_3831_; +} +else +{ +lean_inc(v_a_3830_); +lean_dec(v_x_3828_); +v___x_3832_ = lean_box(0); +v_isShared_3833_ = v_isSharedCheck_3838_; +goto v_resetjp_3831_; +} +v_resetjp_3831_: +{ +lean_object* v___x_3835_; +if (v_isShared_3833_ == 0) +{ +v___x_3835_ = v___x_3832_; +goto v_reusejp_3834_; +} +else +{ +lean_object* v_reuseFailAlloc_3837_; +v_reuseFailAlloc_3837_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3837_, 0, v_a_3830_); +v___x_3835_ = v_reuseFailAlloc_3837_; +goto v_reusejp_3834_; +} +v_reusejp_3834_: +{ +lean_object* v___x_3836_; +v___x_3836_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3836_, 0, v___x_3835_); +return v___x_3836_; +} +} +} +else +{ +lean_object* v_a_3839_; lean_object* v___x_3840_; +v_a_3839_ = lean_ctor_get(v_x_3828_, 0); +lean_inc(v_a_3839_); +lean_dec_ref(v_x_3828_); +v___x_3840_ = lean_apply_2(v___f_3827_, v_a_3839_, lean_box(0)); +return v___x_3840_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2___boxed(lean_object* v___f_3841_, lean_object* v_x_3842_, lean_object* v___y_3843_){ +_start: +{ +lean_object* v_res_3844_; +v_res_3844_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2(v___f_3841_, v_x_3842_); +return v_res_3844_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5(lean_object* v_connectionContext_3850_, uint8_t v_handlerDispatched_3851_, lean_object* v_headerTimeout_3852_, lean_object* v_expectData_3853_, lean_object* v_keepAliveTimeout_3854_, lean_object* v_currentTimeout_3855_, lean_object* v_respStream_3856_, lean_object* v_response_3857_, lean_object* v_socket_3858_, uint8_t v_requiresData_3859_, uint8_t v_sentMessage_3860_, lean_object* v_reader_3861_, uint8_t v_pullBodyStalled_3862_, lean_object* v_requestStream_3863_, uint8_t v_requestBodyOpen_3864_){ +_start: +{ +lean_object* v___x_3866_; lean_object* v___x_3867_; lean_object* v___x_3868_; lean_object* v___x_3869_; lean_object* v___x_3870_; lean_object* v___f_3871_; lean_object* v___f_3872_; +v___x_3866_ = lean_box(v_handlerDispatched_3851_); +v___x_3867_ = lean_box(v_requiresData_3859_); +v___x_3868_ = lean_box(v_sentMessage_3860_); +v___x_3869_ = lean_box(v_pullBodyStalled_3862_); +v___x_3870_ = lean_box(v_requestBodyOpen_3864_); +lean_inc_ref(v_requestStream_3863_); +lean_inc_ref(v_reader_3861_); +v___f_3871_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__3___boxed), 17, 15); +lean_closure_set(v___f_3871_, 0, v_connectionContext_3850_); +lean_closure_set(v___f_3871_, 1, v___x_3866_); +lean_closure_set(v___f_3871_, 2, v_headerTimeout_3852_); +lean_closure_set(v___f_3871_, 3, v_expectData_3853_); +lean_closure_set(v___f_3871_, 4, v_keepAliveTimeout_3854_); +lean_closure_set(v___f_3871_, 5, v_currentTimeout_3855_); +lean_closure_set(v___f_3871_, 6, v_respStream_3856_); +lean_closure_set(v___f_3871_, 7, v_response_3857_); +lean_closure_set(v___f_3871_, 8, v_socket_3858_); +lean_closure_set(v___f_3871_, 9, v___x_3867_); +lean_closure_set(v___f_3871_, 10, v___x_3868_); +lean_closure_set(v___f_3871_, 11, v_reader_3861_); +lean_closure_set(v___f_3871_, 12, v___x_3869_); +lean_closure_set(v___f_3871_, 13, v___x_3870_); +lean_closure_set(v___f_3871_, 14, v_requestStream_3863_); +v___f_3872_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_3872_, 0, v___f_3871_); +if (v_sentMessage_3860_ == 0) +{ +lean_object* v_state_3878_; +v_state_3878_ = lean_ctor_get(v_reader_3861_, 0); +lean_inc(v_state_3878_); +lean_dec_ref(v_reader_3861_); +if (lean_obj_tag(v_state_3878_) == 2) +{ +lean_dec_ref(v_state_3878_); +if (v_requestBodyOpen_3864_ == 0) +{ +lean_dec_ref(v_requestStream_3863_); +goto v___jp_3873_; +} +else +{ +lean_object* v___x_3879_; lean_object* v___x_3880_; lean_object* v___x_3881_; +v___x_3879_ = l_Std_Http_Body_Stream_hasInterest(v_requestStream_3863_); +v___x_3880_ = lean_unsigned_to_nat(0u); +v___x_3881_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3880_, v_sentMessage_3860_, v___x_3879_, v___f_3872_); +return v___x_3881_; +} +} +else +{ +lean_dec(v_state_3878_); +lean_dec_ref(v_requestStream_3863_); +goto v___jp_3873_; +} +} +else +{ +lean_dec_ref(v_requestStream_3863_); +lean_dec_ref(v_reader_3861_); +goto v___jp_3873_; +} +v___jp_3873_: +{ +uint8_t v___x_3874_; lean_object* v___x_3875_; lean_object* v___x_3876_; lean_object* v___x_3877_; +v___x_3874_ = 0; +v___x_3875_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___closed__1)); +v___x_3876_ = lean_unsigned_to_nat(0u); +v___x_3877_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3876_, v___x_3874_, v___x_3875_, v___f_3872_); +return v___x_3877_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___boxed(lean_object* v_connectionContext_3882_, lean_object* v_handlerDispatched_3883_, lean_object* v_headerTimeout_3884_, lean_object* v_expectData_3885_, lean_object* v_keepAliveTimeout_3886_, lean_object* v_currentTimeout_3887_, lean_object* v_respStream_3888_, lean_object* v_response_3889_, lean_object* v_socket_3890_, lean_object* v_requiresData_3891_, lean_object* v_sentMessage_3892_, lean_object* v_reader_3893_, lean_object* v_pullBodyStalled_3894_, lean_object* v_requestStream_3895_, lean_object* v_requestBodyOpen_3896_, lean_object* v___y_3897_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_3898_; uint8_t v_requiresData_boxed_3899_; uint8_t v_sentMessage_boxed_3900_; uint8_t v_pullBodyStalled_boxed_3901_; uint8_t v_requestBodyOpen_boxed_3902_; lean_object* v_res_3903_; +v_handlerDispatched_boxed_3898_ = lean_unbox(v_handlerDispatched_3883_); +v_requiresData_boxed_3899_ = lean_unbox(v_requiresData_3891_); +v_sentMessage_boxed_3900_ = lean_unbox(v_sentMessage_3892_); +v_pullBodyStalled_boxed_3901_ = lean_unbox(v_pullBodyStalled_3894_); +v_requestBodyOpen_boxed_3902_ = lean_unbox(v_requestBodyOpen_3896_); +v_res_3903_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5(v_connectionContext_3882_, v_handlerDispatched_boxed_3898_, v_headerTimeout_3884_, v_expectData_3885_, v_keepAliveTimeout_3886_, v_currentTimeout_3887_, v_respStream_3888_, v_response_3889_, v_socket_3890_, v_requiresData_boxed_3899_, v_sentMessage_boxed_3900_, v_reader_3893_, v_pullBodyStalled_boxed_3901_, v_requestStream_3895_, v_requestBodyOpen_boxed_3902_); +return v_res_3903_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8(uint8_t v_sentMessage_3904_, lean_object* v___f_3905_, uint8_t v___x_3906_, lean_object* v_x_3907_){ +_start: +{ +uint8_t v___y_3910_; +if (lean_obj_tag(v_x_3907_) == 0) +{ +lean_object* v_a_3916_; lean_object* v___x_3918_; uint8_t v_isShared_3919_; uint8_t v_isSharedCheck_3924_; +lean_dec_ref(v___f_3905_); +v_a_3916_ = lean_ctor_get(v_x_3907_, 0); +v_isSharedCheck_3924_ = !lean_is_exclusive(v_x_3907_); +if (v_isSharedCheck_3924_ == 0) +{ +v___x_3918_ = v_x_3907_; +v_isShared_3919_ = v_isSharedCheck_3924_; +goto v_resetjp_3917_; +} +else +{ +lean_inc(v_a_3916_); +lean_dec(v_x_3907_); +v___x_3918_ = lean_box(0); +v_isShared_3919_ = v_isSharedCheck_3924_; +goto v_resetjp_3917_; +} +v_resetjp_3917_: +{ +lean_object* v___x_3921_; +if (v_isShared_3919_ == 0) +{ +v___x_3921_ = v___x_3918_; +goto v_reusejp_3920_; +} +else +{ +lean_object* v_reuseFailAlloc_3923_; +v_reuseFailAlloc_3923_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3923_, 0, v_a_3916_); +v___x_3921_ = v_reuseFailAlloc_3923_; +goto v_reusejp_3920_; +} +v_reusejp_3920_: +{ +lean_object* v___x_3922_; +v___x_3922_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3922_, 0, v___x_3921_); +return v___x_3922_; +} +} +} +else +{ +lean_object* v_a_3925_; uint8_t v___x_3926_; +v_a_3925_ = lean_ctor_get(v_x_3907_, 0); +lean_inc(v_a_3925_); +lean_dec_ref(v_x_3907_); +v___x_3926_ = lean_unbox(v_a_3925_); +lean_dec(v_a_3925_); +if (v___x_3926_ == 0) +{ +v___y_3910_ = v___x_3906_; +goto v___jp_3909_; +} +else +{ +v___y_3910_ = v_sentMessage_3904_; +goto v___jp_3909_; +} +} +v___jp_3909_: +{ +lean_object* v___x_3911_; lean_object* v___x_3912_; lean_object* v___x_3913_; lean_object* v___x_3914_; lean_object* v___x_3915_; +v___x_3911_ = lean_box(v___y_3910_); +v___x_3912_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3912_, 0, v___x_3911_); +v___x_3913_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3913_, 0, v___x_3912_); +v___x_3914_ = lean_unsigned_to_nat(0u); +v___x_3915_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3914_, v_sentMessage_3904_, v___x_3913_, v___f_3905_); +return v___x_3915_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8___boxed(lean_object* v_sentMessage_3927_, lean_object* v___f_3928_, lean_object* v___x_3929_, lean_object* v_x_3930_, lean_object* v___y_3931_){ +_start: +{ +uint8_t v_sentMessage_boxed_3932_; uint8_t v___x_3774__boxed_3933_; lean_object* v_res_3934_; +v_sentMessage_boxed_3932_ = lean_unbox(v_sentMessage_3927_); +v___x_3774__boxed_3933_ = lean_unbox(v___x_3929_); +v_res_3934_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8(v_sentMessage_boxed_3932_, v___f_3928_, v___x_3774__boxed_3933_, v_x_3930_); +return v_res_3934_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0(void){ +_start: +{ +lean_object* v___f_3935_; lean_object* v___x_3936_; lean_object* v___x_3937_; lean_object* v___x_3938_; +v___f_3935_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0)); +v___x_3936_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_3937_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___x_3938_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_3938_, 0, lean_box(0)); +lean_closure_set(v___x_3938_, 1, lean_box(0)); +lean_closure_set(v___x_3938_, 2, lean_box(0)); +lean_closure_set(v___x_3938_, 3, v___x_3937_); +lean_closure_set(v___x_3938_, 4, lean_box(0)); +lean_closure_set(v___x_3938_, 5, lean_box(0)); +lean_closure_set(v___x_3938_, 6, v___x_3936_); +lean_closure_set(v___x_3938_, 7, v___f_3935_); +return v___x_3938_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg(lean_object* v_socket_3939_, lean_object* v_connectionContext_3940_, lean_object* v_state_3941_){ +_start: +{ +lean_object* v_machine_3943_; lean_object* v_writer_3944_; lean_object* v_requestStream_3945_; lean_object* v_keepAliveTimeout_3946_; lean_object* v_currentTimeout_3947_; lean_object* v_headerTimeout_3948_; lean_object* v_response_3949_; lean_object* v_respStream_3950_; uint8_t v_requiresData_3951_; lean_object* v_expectData_3952_; uint8_t v_handlerDispatched_3953_; lean_object* v_reader_3954_; uint8_t v_pullBodyStalled_3955_; uint8_t v_sentMessage_3956_; lean_object* v___x_3957_; lean_object* v___x_3958_; lean_object* v___x_3959_; lean_object* v___x_3960_; lean_object* v___f_3961_; lean_object* v___f_3962_; uint8_t v___y_3964_; +v_machine_3943_ = lean_ctor_get(v_state_3941_, 0); +lean_inc_ref(v_machine_3943_); +v_writer_3944_ = lean_ctor_get(v_machine_3943_, 1); +lean_inc_ref(v_writer_3944_); +v_requestStream_3945_ = lean_ctor_get(v_state_3941_, 1); +lean_inc_ref_n(v_requestStream_3945_, 2); +v_keepAliveTimeout_3946_ = lean_ctor_get(v_state_3941_, 2); +lean_inc(v_keepAliveTimeout_3946_); +v_currentTimeout_3947_ = lean_ctor_get(v_state_3941_, 3); +lean_inc(v_currentTimeout_3947_); +v_headerTimeout_3948_ = lean_ctor_get(v_state_3941_, 4); +lean_inc(v_headerTimeout_3948_); +v_response_3949_ = lean_ctor_get(v_state_3941_, 5); +lean_inc_ref(v_response_3949_); +v_respStream_3950_ = lean_ctor_get(v_state_3941_, 6); +lean_inc(v_respStream_3950_); +v_requiresData_3951_ = lean_ctor_get_uint8(v_state_3941_, sizeof(void*)*9); +v_expectData_3952_ = lean_ctor_get(v_state_3941_, 7); +lean_inc(v_expectData_3952_); +v_handlerDispatched_3953_ = lean_ctor_get_uint8(v_state_3941_, sizeof(void*)*9 + 1); +lean_dec_ref(v_state_3941_); +v_reader_3954_ = lean_ctor_get(v_machine_3943_, 0); +lean_inc_ref_n(v_reader_3954_, 2); +v_pullBodyStalled_3955_ = lean_ctor_get_uint8(v_machine_3943_, sizeof(void*)*6 + 2); +lean_dec_ref(v_machine_3943_); +v_sentMessage_3956_ = lean_ctor_get_uint8(v_writer_3944_, sizeof(void*)*6); +lean_dec_ref(v_writer_3944_); +v___x_3957_ = lean_box(v_handlerDispatched_3953_); +v___x_3958_ = lean_box(v_requiresData_3951_); +v___x_3959_ = lean_box(v_sentMessage_3956_); +v___x_3960_ = lean_box(v_pullBodyStalled_3955_); +v___f_3961_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__5___boxed), 16, 14); +lean_closure_set(v___f_3961_, 0, v_connectionContext_3940_); +lean_closure_set(v___f_3961_, 1, v___x_3957_); +lean_closure_set(v___f_3961_, 2, v_headerTimeout_3948_); +lean_closure_set(v___f_3961_, 3, v_expectData_3952_); +lean_closure_set(v___f_3961_, 4, v_keepAliveTimeout_3946_); +lean_closure_set(v___f_3961_, 5, v_currentTimeout_3947_); +lean_closure_set(v___f_3961_, 6, v_respStream_3950_); +lean_closure_set(v___f_3961_, 7, v_response_3949_); +lean_closure_set(v___f_3961_, 8, v_socket_3939_); +lean_closure_set(v___f_3961_, 9, v___x_3958_); +lean_closure_set(v___f_3961_, 10, v___x_3959_); +lean_closure_set(v___f_3961_, 11, v_reader_3954_); +lean_closure_set(v___f_3961_, 12, v___x_3960_); +lean_closure_set(v___f_3961_, 13, v_requestStream_3945_); +v___f_3962_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_3962_, 0, v___f_3961_); +if (v_sentMessage_3956_ == 0) +{ +lean_object* v_state_3970_; +v_state_3970_ = lean_ctor_get(v_reader_3954_, 0); +lean_inc(v_state_3970_); +lean_dec_ref(v_reader_3954_); +if (lean_obj_tag(v_state_3970_) == 2) +{ +lean_object* v___x_3971_; lean_object* v___f_3972_; lean_object* v___f_3973_; lean_object* v___x_3974_; lean_object* v___x_3290__overap_3975_; lean_object* v___x_3976_; uint8_t v___x_3977_; lean_object* v___x_3978_; lean_object* v___x_3979_; lean_object* v___f_3980_; lean_object* v___x_3981_; lean_object* v___x_3982_; +lean_dec_ref(v_state_3970_); +v___x_3971_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_3972_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_3973_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_3974_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___closed__0); +v___x_3290__overap_3975_ = l_Std_Mutex_atomically___redArg(v___x_3971_, v___f_3972_, v___f_3973_, v_requestStream_3945_, v___x_3974_); +v___x_3976_ = lean_apply_1(v___x_3290__overap_3975_, lean_box(0)); +v___x_3977_ = 1; +v___x_3978_ = lean_box(v_sentMessage_3956_); +v___x_3979_ = lean_box(v___x_3977_); +v___f_3980_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___lam__8___boxed), 5, 3); +lean_closure_set(v___f_3980_, 0, v___x_3978_); +lean_closure_set(v___f_3980_, 1, v___f_3962_); +lean_closure_set(v___f_3980_, 2, v___x_3979_); +v___x_3981_ = lean_unsigned_to_nat(0u); +v___x_3982_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3981_, v_sentMessage_3956_, v___x_3976_, v___f_3980_); +return v___x_3982_; +} +else +{ +lean_dec(v_state_3970_); +lean_dec_ref(v_requestStream_3945_); +v___y_3964_ = v_sentMessage_3956_; +goto v___jp_3963_; +} +} +else +{ +uint8_t v___x_3983_; +lean_dec_ref(v_reader_3954_); +lean_dec_ref(v_requestStream_3945_); +v___x_3983_ = 0; +v___y_3964_ = v___x_3983_; +goto v___jp_3963_; +} +v___jp_3963_: +{ +lean_object* v___x_3965_; lean_object* v___x_3966_; lean_object* v___x_3967_; lean_object* v___x_3968_; lean_object* v___x_3969_; +v___x_3965_ = lean_box(v___y_3964_); +v___x_3966_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3966_, 0, v___x_3965_); +v___x_3967_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3967_, 0, v___x_3966_); +v___x_3968_ = lean_unsigned_to_nat(0u); +v___x_3969_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3968_, v___y_3964_, v___x_3967_, v___f_3962_); +return v___x_3969_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg___boxed(lean_object* v_socket_3984_, lean_object* v_connectionContext_3985_, lean_object* v_state_3986_, lean_object* v_a_3987_){ +_start: +{ +lean_object* v_res_3988_; +v_res_3988_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg(v_socket_3984_, v_connectionContext_3985_, v_state_3986_); +return v_res_3988_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources(lean_object* v_00_u03b1_3989_, lean_object* v_00_u03b2_3990_, lean_object* v_inst_3991_, lean_object* v_socket_3992_, lean_object* v_connectionContext_3993_, lean_object* v_state_3994_){ +_start: +{ +lean_object* v___x_3996_; +v___x_3996_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg(v_socket_3992_, v_connectionContext_3993_, v_state_3994_); +return v___x_3996_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___boxed(lean_object* v_00_u03b1_3997_, lean_object* v_00_u03b2_3998_, lean_object* v_inst_3999_, lean_object* v_socket_4000_, lean_object* v_connectionContext_4001_, lean_object* v_state_4002_, lean_object* v_a_4003_){ +_start: +{ +lean_object* v_res_4004_; +v_res_4004_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources(v_00_u03b1_3997_, v_00_u03b2_3998_, v_inst_3999_, v_socket_4000_, v_connectionContext_4001_, v_state_4002_); +lean_dec_ref(v_inst_3999_); +return v_res_4004_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1(lean_object* v_x_4005_){ +_start: +{ +if (lean_obj_tag(v_x_4005_) == 0) +{ +lean_object* v_a_4007_; lean_object* v___x_4009_; uint8_t v_isShared_4010_; uint8_t v_isSharedCheck_4015_; +v_a_4007_ = lean_ctor_get(v_x_4005_, 0); +v_isSharedCheck_4015_ = !lean_is_exclusive(v_x_4005_); +if (v_isSharedCheck_4015_ == 0) +{ +v___x_4009_ = v_x_4005_; +v_isShared_4010_ = v_isSharedCheck_4015_; +goto v_resetjp_4008_; +} +else +{ +lean_inc(v_a_4007_); +lean_dec(v_x_4005_); +v___x_4009_ = lean_box(0); +v_isShared_4010_ = v_isSharedCheck_4015_; +goto v_resetjp_4008_; +} +v_resetjp_4008_: +{ +lean_object* v___x_4012_; +if (v_isShared_4010_ == 0) +{ +v___x_4012_ = v___x_4009_; +goto v_reusejp_4011_; +} +else +{ +lean_object* v_reuseFailAlloc_4014_; +v_reuseFailAlloc_4014_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4014_, 0, v_a_4007_); +v___x_4012_ = v_reuseFailAlloc_4014_; +goto v_reusejp_4011_; +} +v_reusejp_4011_: +{ +lean_object* v___x_4013_; +v___x_4013_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4013_, 0, v___x_4012_); +return v___x_4013_; +} +} +} +else +{ +lean_object* v_a_4016_; lean_object* v___x_4018_; uint8_t v_isShared_4019_; uint8_t v_isSharedCheck_4034_; +v_a_4016_ = lean_ctor_get(v_x_4005_, 0); +v_isSharedCheck_4034_ = !lean_is_exclusive(v_x_4005_); +if (v_isSharedCheck_4034_ == 0) +{ +v___x_4018_ = v_x_4005_; +v_isShared_4019_ = v_isSharedCheck_4034_; +goto v_resetjp_4017_; +} +else +{ +lean_inc(v_a_4016_); +lean_dec(v_x_4005_); +v___x_4018_ = lean_box(0); +v_isShared_4019_ = v_isSharedCheck_4034_; +goto v_resetjp_4017_; +} +v_resetjp_4017_: +{ +lean_object* v_snd_4020_; uint8_t v___x_4021_; +v_snd_4020_ = lean_ctor_get(v_a_4016_, 1); +v___x_4021_ = lean_unbox(v_snd_4020_); +if (v___x_4021_ == 0) +{ +lean_object* v_fst_4022_; lean_object* v___x_4023_; lean_object* v___x_4025_; +v_fst_4022_ = lean_ctor_get(v_a_4016_, 0); +lean_inc(v_fst_4022_); +lean_dec(v_a_4016_); +v___x_4023_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4023_, 0, v_fst_4022_); +if (v_isShared_4019_ == 0) +{ +lean_ctor_set(v___x_4018_, 0, v___x_4023_); +v___x_4025_ = v___x_4018_; +goto v_reusejp_4024_; +} +else +{ +lean_object* v_reuseFailAlloc_4027_; +v_reuseFailAlloc_4027_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4027_, 0, v___x_4023_); +v___x_4025_ = v_reuseFailAlloc_4027_; +goto v_reusejp_4024_; +} +v_reusejp_4024_: +{ +lean_object* v___x_4026_; +v___x_4026_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4026_, 0, v___x_4025_); +return v___x_4026_; +} +} +else +{ +lean_object* v_fst_4028_; lean_object* v___x_4029_; lean_object* v___x_4031_; +v_fst_4028_ = lean_ctor_get(v_a_4016_, 0); +lean_inc(v_fst_4028_); +lean_dec(v_a_4016_); +v___x_4029_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4029_, 0, v_fst_4028_); +if (v_isShared_4019_ == 0) +{ +lean_ctor_set(v___x_4018_, 0, v___x_4029_); +v___x_4031_ = v___x_4018_; +goto v_reusejp_4030_; +} +else +{ +lean_object* v_reuseFailAlloc_4033_; +v_reuseFailAlloc_4033_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4033_, 0, v___x_4029_); +v___x_4031_ = v_reuseFailAlloc_4033_; +goto v_reusejp_4030_; +} +v_reusejp_4030_: +{ +lean_object* v___x_4032_; +v___x_4032_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4032_, 0, v___x_4031_); +return v___x_4032_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1___boxed(lean_object* v_x_4035_, lean_object* v___y_4036_){ +_start: +{ +lean_object* v_res_4037_; +v_res_4037_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__1(v_x_4035_); +return v_res_4037_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0(lean_object* v_x_4038_){ +_start: +{ +if (lean_obj_tag(v_x_4038_) == 0) +{ +lean_object* v_a_4040_; lean_object* v___x_4042_; uint8_t v_isShared_4043_; uint8_t v_isSharedCheck_4048_; +v_a_4040_ = lean_ctor_get(v_x_4038_, 0); +v_isSharedCheck_4048_ = !lean_is_exclusive(v_x_4038_); +if (v_isSharedCheck_4048_ == 0) +{ +v___x_4042_ = v_x_4038_; +v_isShared_4043_ = v_isSharedCheck_4048_; +goto v_resetjp_4041_; +} +else +{ +lean_inc(v_a_4040_); +lean_dec(v_x_4038_); +v___x_4042_ = lean_box(0); +v_isShared_4043_ = v_isSharedCheck_4048_; +goto v_resetjp_4041_; +} +v_resetjp_4041_: +{ +lean_object* v___x_4045_; +if (v_isShared_4043_ == 0) +{ +v___x_4045_ = v___x_4042_; +goto v_reusejp_4044_; +} +else +{ +lean_object* v_reuseFailAlloc_4047_; +v_reuseFailAlloc_4047_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4047_, 0, v_a_4040_); +v___x_4045_ = v_reuseFailAlloc_4047_; +goto v_reusejp_4044_; +} +v_reusejp_4044_: +{ +lean_object* v___x_4046_; +v___x_4046_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4046_, 0, v___x_4045_); +return v___x_4046_; +} +} +} +else +{ +lean_object* v_a_4049_; lean_object* v___x_4051_; uint8_t v_isShared_4052_; uint8_t v_isSharedCheck_4058_; +v_a_4049_ = lean_ctor_get(v_x_4038_, 0); +v_isSharedCheck_4058_ = !lean_is_exclusive(v_x_4038_); +if (v_isSharedCheck_4058_ == 0) +{ +v___x_4051_ = v_x_4038_; +v_isShared_4052_ = v_isSharedCheck_4058_; +goto v_resetjp_4050_; +} +else +{ +lean_inc(v_a_4049_); +lean_dec(v_x_4038_); +v___x_4051_ = lean_box(0); +v_isShared_4052_ = v_isSharedCheck_4058_; +goto v_resetjp_4050_; +} +v_resetjp_4050_: +{ +lean_object* v___x_4053_; lean_object* v___x_4055_; +v___x_4053_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4053_, 0, v_a_4049_); +if (v_isShared_4052_ == 0) +{ +lean_ctor_set(v___x_4051_, 0, v___x_4053_); +v___x_4055_ = v___x_4051_; +goto v_reusejp_4054_; +} +else +{ +lean_object* v_reuseFailAlloc_4057_; +v_reuseFailAlloc_4057_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4057_, 0, v___x_4053_); +v___x_4055_ = v_reuseFailAlloc_4057_; +goto v_reusejp_4054_; +} +v_reusejp_4054_: +{ +lean_object* v___x_4056_; +v___x_4056_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4056_, 0, v___x_4055_); +return v___x_4056_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0___boxed(lean_object* v_x_4059_, lean_object* v___y_4060_){ +_start: +{ +lean_object* v_res_4061_; +v_res_4061_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__0(v_x_4059_); +return v_res_4061_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2(lean_object* v_x_4066_){ +_start: +{ +if (lean_obj_tag(v_x_4066_) == 0) +{ +lean_object* v_a_4068_; lean_object* v___x_4070_; uint8_t v_isShared_4071_; uint8_t v_isSharedCheck_4076_; +v_a_4068_ = lean_ctor_get(v_x_4066_, 0); +v_isSharedCheck_4076_ = !lean_is_exclusive(v_x_4066_); +if (v_isSharedCheck_4076_ == 0) +{ +v___x_4070_ = v_x_4066_; +v_isShared_4071_ = v_isSharedCheck_4076_; +goto v_resetjp_4069_; +} +else +{ +lean_inc(v_a_4068_); +lean_dec(v_x_4066_); +v___x_4070_ = lean_box(0); +v_isShared_4071_ = v_isSharedCheck_4076_; +goto v_resetjp_4069_; +} +v_resetjp_4069_: +{ +lean_object* v___x_4073_; +if (v_isShared_4071_ == 0) +{ +v___x_4073_ = v___x_4070_; +goto v_reusejp_4072_; +} +else +{ +lean_object* v_reuseFailAlloc_4075_; +v_reuseFailAlloc_4075_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4075_, 0, v_a_4068_); +v___x_4073_ = v_reuseFailAlloc_4075_; +goto v_reusejp_4072_; +} +v_reusejp_4072_: +{ +lean_object* v___x_4074_; +v___x_4074_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4074_, 0, v___x_4073_); +return v___x_4074_; +} +} +} +else +{ +lean_object* v___x_4077_; +lean_dec_ref(v_x_4066_); +v___x_4077_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___closed__1)); +return v___x_4077_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2___boxed(lean_object* v_x_4078_, lean_object* v___y_4079_){ +_start: +{ +lean_object* v_res_4080_; +v_res_4080_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__2(v_x_4078_); +return v_res_4080_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3(lean_object* v_onFailure_4081_, lean_object* v_handler_4082_, lean_object* v___f_4083_, lean_object* v_x_4084_){ +_start: +{ +if (lean_obj_tag(v_x_4084_) == 0) +{ +lean_object* v_a_4086_; lean_object* v___x_4087_; lean_object* v___x_4088_; uint8_t v___x_4089_; lean_object* v___x_4090_; +v_a_4086_ = lean_ctor_get(v_x_4084_, 0); +lean_inc(v_a_4086_); +lean_dec_ref(v_x_4084_); +v___x_4087_ = lean_apply_3(v_onFailure_4081_, v_handler_4082_, v_a_4086_, lean_box(0)); +v___x_4088_ = lean_unsigned_to_nat(0u); +v___x_4089_ = 0; +v___x_4090_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4088_, v___x_4089_, v___x_4087_, v___f_4083_); +return v___x_4090_; +} +else +{ +lean_object* v___x_4091_; +lean_dec_ref(v___f_4083_); +lean_dec(v_handler_4082_); +lean_dec_ref(v_onFailure_4081_); +v___x_4091_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4091_, 0, v_x_4084_); +return v___x_4091_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3___boxed(lean_object* v_onFailure_4092_, lean_object* v_handler_4093_, lean_object* v___f_4094_, lean_object* v_x_4095_, lean_object* v___y_4096_){ +_start: +{ +lean_object* v_res_4097_; +v_res_4097_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3(v_onFailure_4092_, v_handler_4093_, v___f_4094_, v_x_4095_); +return v_res_4097_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4(lean_object* v_inst_4098_, lean_object* v_socket_4099_, lean_object* v_____r_4100_){ +_start: +{ +lean_object* v_val_4103_; lean_object* v_close_4105_; lean_object* v___x_4106_; +v_close_4105_ = lean_ctor_get(v_inst_4098_, 3); +lean_inc_ref(v_close_4105_); +lean_dec_ref(v_inst_4098_); +v___x_4106_ = lean_apply_2(v_close_4105_, v_socket_4099_, lean_box(0)); +if (lean_obj_tag(v___x_4106_) == 0) +{ +lean_object* v_a_4107_; lean_object* v___x_4109_; uint8_t v_isShared_4110_; uint8_t v_isSharedCheck_4114_; +v_a_4107_ = lean_ctor_get(v___x_4106_, 0); +v_isSharedCheck_4114_ = !lean_is_exclusive(v___x_4106_); +if (v_isSharedCheck_4114_ == 0) +{ +v___x_4109_ = v___x_4106_; +v_isShared_4110_ = v_isSharedCheck_4114_; +goto v_resetjp_4108_; +} +else +{ +lean_inc(v_a_4107_); +lean_dec(v___x_4106_); +v___x_4109_ = lean_box(0); +v_isShared_4110_ = v_isSharedCheck_4114_; +goto v_resetjp_4108_; +} +v_resetjp_4108_: +{ +lean_object* v___x_4112_; +if (v_isShared_4110_ == 0) +{ +lean_ctor_set_tag(v___x_4109_, 1); +v___x_4112_ = v___x_4109_; +goto v_reusejp_4111_; +} +else +{ +lean_object* v_reuseFailAlloc_4113_; +v_reuseFailAlloc_4113_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4113_, 0, v_a_4107_); +v___x_4112_ = v_reuseFailAlloc_4113_; +goto v_reusejp_4111_; +} +v_reusejp_4111_: +{ +v_val_4103_ = v___x_4112_; +goto v___jp_4102_; +} +} +} +else +{ +lean_object* v_a_4115_; lean_object* v___x_4117_; uint8_t v_isShared_4118_; uint8_t v_isSharedCheck_4122_; +v_a_4115_ = lean_ctor_get(v___x_4106_, 0); +v_isSharedCheck_4122_ = !lean_is_exclusive(v___x_4106_); +if (v_isSharedCheck_4122_ == 0) +{ +v___x_4117_ = v___x_4106_; +v_isShared_4118_ = v_isSharedCheck_4122_; +goto v_resetjp_4116_; +} +else +{ +lean_inc(v_a_4115_); +lean_dec(v___x_4106_); +v___x_4117_ = lean_box(0); +v_isShared_4118_ = v_isSharedCheck_4122_; +goto v_resetjp_4116_; +} +v_resetjp_4116_: +{ +lean_object* v___x_4120_; +if (v_isShared_4118_ == 0) +{ +lean_ctor_set_tag(v___x_4117_, 0); +v___x_4120_ = v___x_4117_; +goto v_reusejp_4119_; +} +else +{ +lean_object* v_reuseFailAlloc_4121_; +v_reuseFailAlloc_4121_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4121_, 0, v_a_4115_); +v___x_4120_ = v_reuseFailAlloc_4121_; +goto v_reusejp_4119_; +} +v_reusejp_4119_: +{ +v_val_4103_ = v___x_4120_; +goto v___jp_4102_; +} +} +} +v___jp_4102_: +{ +lean_object* v___x_4104_; +v___x_4104_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4104_, 0, v_val_4103_); +return v___x_4104_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4___boxed(lean_object* v_inst_4123_, lean_object* v_socket_4124_, lean_object* v_____r_4125_, lean_object* v___y_4126_){ +_start: +{ +lean_object* v_res_4127_; +v_res_4127_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4(v_inst_4123_, v_socket_4124_, v_____r_4125_); +return v_res_4127_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5(lean_object* v___f_4128_, lean_object* v_x_4129_){ +_start: +{ +if (lean_obj_tag(v_x_4129_) == 0) +{ +lean_object* v___x_4131_; +lean_dec_ref(v___f_4128_); +v___x_4131_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4131_, 0, v_x_4129_); +return v___x_4131_; +} +else +{ +lean_object* v_a_4132_; lean_object* v___x_4133_; +v_a_4132_ = lean_ctor_get(v_x_4129_, 0); +lean_inc(v_a_4132_); +lean_dec_ref(v_x_4129_); +v___x_4133_ = lean_apply_2(v___f_4128_, v_a_4132_, lean_box(0)); +return v___x_4133_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5___boxed(lean_object* v___f_4134_, lean_object* v_x_4135_, lean_object* v___y_4136_){ +_start: +{ +lean_object* v_res_4137_; +v_res_4137_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5(v___f_4134_, v_x_4135_); +return v_res_4137_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6(lean_object* v_close_4138_, lean_object* v_val_4139_, lean_object* v___f_4140_, lean_object* v___f_4141_, lean_object* v_x_4142_){ +_start: +{ +if (lean_obj_tag(v_x_4142_) == 0) +{ +lean_object* v_a_4144_; lean_object* v___x_4146_; uint8_t v_isShared_4147_; uint8_t v_isSharedCheck_4152_; +lean_dec_ref(v___f_4141_); +lean_dec_ref(v___f_4140_); +lean_dec(v_val_4139_); +lean_dec_ref(v_close_4138_); +v_a_4144_ = lean_ctor_get(v_x_4142_, 0); +v_isSharedCheck_4152_ = !lean_is_exclusive(v_x_4142_); +if (v_isSharedCheck_4152_ == 0) +{ +v___x_4146_ = v_x_4142_; +v_isShared_4147_ = v_isSharedCheck_4152_; +goto v_resetjp_4145_; +} +else +{ +lean_inc(v_a_4144_); +lean_dec(v_x_4142_); +v___x_4146_ = lean_box(0); +v_isShared_4147_ = v_isSharedCheck_4152_; +goto v_resetjp_4145_; +} +v_resetjp_4145_: +{ +lean_object* v___x_4149_; +if (v_isShared_4147_ == 0) +{ +v___x_4149_ = v___x_4146_; +goto v_reusejp_4148_; +} +else +{ +lean_object* v_reuseFailAlloc_4151_; +v_reuseFailAlloc_4151_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4151_, 0, v_a_4144_); +v___x_4149_ = v_reuseFailAlloc_4151_; +goto v_reusejp_4148_; +} +v_reusejp_4148_: +{ +lean_object* v___x_4150_; +v___x_4150_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4150_, 0, v___x_4149_); +return v___x_4150_; +} +} +} +else +{ +lean_object* v_a_4153_; uint8_t v___x_4154_; +v_a_4153_ = lean_ctor_get(v_x_4142_, 0); +lean_inc(v_a_4153_); +lean_dec_ref(v_x_4142_); +v___x_4154_ = lean_unbox(v_a_4153_); +if (v___x_4154_ == 0) +{ +lean_object* v___x_4155_; lean_object* v___x_4156_; uint8_t v___x_4157_; lean_object* v___x_4158_; +lean_dec_ref(v___f_4141_); +v___x_4155_ = lean_apply_2(v_close_4138_, v_val_4139_, lean_box(0)); +v___x_4156_ = lean_unsigned_to_nat(0u); +v___x_4157_ = lean_unbox(v_a_4153_); +lean_dec(v_a_4153_); +v___x_4158_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4156_, v___x_4157_, v___x_4155_, v___f_4140_); +return v___x_4158_; +} +else +{ +lean_object* v___x_4159_; lean_object* v___x_4160_; +lean_dec(v_a_4153_); +lean_dec_ref(v___f_4140_); +lean_dec(v_val_4139_); +lean_dec_ref(v_close_4138_); +v___x_4159_ = lean_box(0); +v___x_4160_ = lean_apply_2(v___f_4141_, v___x_4159_, lean_box(0)); +return v___x_4160_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6___boxed(lean_object* v_close_4161_, lean_object* v_val_4162_, lean_object* v___f_4163_, lean_object* v___f_4164_, lean_object* v_x_4165_, lean_object* v___y_4166_){ +_start: +{ +lean_object* v_res_4167_; +v_res_4167_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6(v_close_4161_, v_val_4162_, v___f_4163_, v___f_4164_, v_x_4165_); +return v_res_4167_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7(lean_object* v_respStream_4168_, lean_object* v_responseBodyInstance_4169_, lean_object* v___f_4170_, lean_object* v___f_4171_, lean_object* v_____r_4172_){ +_start: +{ +if (lean_obj_tag(v_respStream_4168_) == 1) +{ +lean_object* v_val_4174_; lean_object* v_close_4175_; lean_object* v_isClosed_4176_; lean_object* v___x_4177_; lean_object* v___f_4178_; lean_object* v___x_4179_; uint8_t v___x_4180_; lean_object* v___x_4181_; +v_val_4174_ = lean_ctor_get(v_respStream_4168_, 0); +lean_inc_n(v_val_4174_, 2); +lean_dec_ref(v_respStream_4168_); +v_close_4175_ = lean_ctor_get(v_responseBodyInstance_4169_, 1); +lean_inc_ref(v_close_4175_); +v_isClosed_4176_ = lean_ctor_get(v_responseBodyInstance_4169_, 2); +lean_inc_ref(v_isClosed_4176_); +lean_dec_ref(v_responseBodyInstance_4169_); +v___x_4177_ = lean_apply_2(v_isClosed_4176_, v_val_4174_, lean_box(0)); +v___f_4178_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__6___boxed), 6, 4); +lean_closure_set(v___f_4178_, 0, v_close_4175_); +lean_closure_set(v___f_4178_, 1, v_val_4174_); +lean_closure_set(v___f_4178_, 2, v___f_4170_); +lean_closure_set(v___f_4178_, 3, v___f_4171_); +v___x_4179_ = lean_unsigned_to_nat(0u); +v___x_4180_ = 0; +v___x_4181_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4179_, v___x_4180_, v___x_4177_, v___f_4178_); +return v___x_4181_; +} +else +{ +lean_object* v___x_4182_; lean_object* v___x_4183_; +lean_dec_ref(v___f_4170_); +lean_dec_ref(v_responseBodyInstance_4169_); +lean_dec(v_respStream_4168_); +v___x_4182_ = lean_box(0); +v___x_4183_ = lean_apply_2(v___f_4171_, v___x_4182_, lean_box(0)); +return v___x_4183_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7___boxed(lean_object* v_respStream_4184_, lean_object* v_responseBodyInstance_4185_, lean_object* v___f_4186_, lean_object* v___f_4187_, lean_object* v_____r_4188_, lean_object* v___y_4189_){ +_start: +{ +lean_object* v_res_4190_; +v_res_4190_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7(v_respStream_4184_, v_responseBodyInstance_4185_, v___f_4186_, v___f_4187_, v_____r_4188_); +return v_res_4190_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9(lean_object* v_requestStream_4191_, lean_object* v___f_4192_, lean_object* v___f_4193_, lean_object* v_x_4194_){ +_start: +{ +if (lean_obj_tag(v_x_4194_) == 0) +{ +lean_object* v_a_4196_; lean_object* v___x_4198_; uint8_t v_isShared_4199_; uint8_t v_isSharedCheck_4204_; +lean_dec_ref(v___f_4193_); +lean_dec_ref(v___f_4192_); +lean_dec_ref(v_requestStream_4191_); +v_a_4196_ = lean_ctor_get(v_x_4194_, 0); +v_isSharedCheck_4204_ = !lean_is_exclusive(v_x_4194_); +if (v_isSharedCheck_4204_ == 0) +{ +v___x_4198_ = v_x_4194_; +v_isShared_4199_ = v_isSharedCheck_4204_; +goto v_resetjp_4197_; +} +else +{ +lean_inc(v_a_4196_); +lean_dec(v_x_4194_); +v___x_4198_ = lean_box(0); +v_isShared_4199_ = v_isSharedCheck_4204_; +goto v_resetjp_4197_; +} +v_resetjp_4197_: +{ +lean_object* v___x_4201_; +if (v_isShared_4199_ == 0) +{ +v___x_4201_ = v___x_4198_; +goto v_reusejp_4200_; +} +else +{ +lean_object* v_reuseFailAlloc_4203_; +v_reuseFailAlloc_4203_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4203_, 0, v_a_4196_); +v___x_4201_ = v_reuseFailAlloc_4203_; +goto v_reusejp_4200_; +} +v_reusejp_4200_: +{ +lean_object* v___x_4202_; +v___x_4202_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4202_, 0, v___x_4201_); +return v___x_4202_; +} +} +} +else +{ +lean_object* v_a_4205_; uint8_t v___x_4206_; +v_a_4205_ = lean_ctor_get(v_x_4194_, 0); +lean_inc(v_a_4205_); +lean_dec_ref(v_x_4194_); +v___x_4206_ = lean_unbox(v_a_4205_); +if (v___x_4206_ == 0) +{ +lean_object* v___x_4207_; lean_object* v___x_4208_; uint8_t v___x_4209_; lean_object* v___x_4210_; +lean_dec_ref(v___f_4193_); +v___x_4207_ = l_Std_Http_Body_Stream_close(v_requestStream_4191_); +v___x_4208_ = lean_unsigned_to_nat(0u); +v___x_4209_ = lean_unbox(v_a_4205_); +lean_dec(v_a_4205_); +v___x_4210_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4208_, v___x_4209_, v___x_4207_, v___f_4192_); +return v___x_4210_; +} +else +{ +lean_object* v___x_4211_; lean_object* v___x_4212_; +lean_dec(v_a_4205_); +lean_dec_ref(v___f_4192_); +lean_dec_ref(v_requestStream_4191_); +v___x_4211_ = lean_box(0); +v___x_4212_ = lean_apply_2(v___f_4193_, v___x_4211_, lean_box(0)); +return v___x_4212_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9___boxed(lean_object* v_requestStream_4213_, lean_object* v___f_4214_, lean_object* v___f_4215_, lean_object* v_x_4216_, lean_object* v___y_4217_){ +_start: +{ +lean_object* v_res_4218_; +v_res_4218_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9(v_requestStream_4213_, v___f_4214_, v___f_4215_, v_x_4216_); +return v_res_4218_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8(lean_object* v___f_4219_, lean_object* v_responseBodyInstance_4220_, lean_object* v___f_4221_, lean_object* v___f_4222_, lean_object* v_x_4223_){ +_start: +{ +if (lean_obj_tag(v_x_4223_) == 0) +{ +lean_object* v_a_4225_; lean_object* v___x_4227_; uint8_t v_isShared_4228_; uint8_t v_isSharedCheck_4233_; +lean_dec_ref(v___f_4222_); +lean_dec_ref(v___f_4221_); +lean_dec_ref(v_responseBodyInstance_4220_); +lean_dec_ref(v___f_4219_); +v_a_4225_ = lean_ctor_get(v_x_4223_, 0); +v_isSharedCheck_4233_ = !lean_is_exclusive(v_x_4223_); +if (v_isSharedCheck_4233_ == 0) +{ +v___x_4227_ = v_x_4223_; +v_isShared_4228_ = v_isSharedCheck_4233_; +goto v_resetjp_4226_; +} +else +{ +lean_inc(v_a_4225_); +lean_dec(v_x_4223_); +v___x_4227_ = lean_box(0); +v_isShared_4228_ = v_isSharedCheck_4233_; +goto v_resetjp_4226_; +} +v_resetjp_4226_: +{ +lean_object* v___x_4230_; +if (v_isShared_4228_ == 0) +{ +v___x_4230_ = v___x_4227_; +goto v_reusejp_4229_; +} +else +{ +lean_object* v_reuseFailAlloc_4232_; +v_reuseFailAlloc_4232_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4232_, 0, v_a_4225_); +v___x_4230_ = v_reuseFailAlloc_4232_; +goto v_reusejp_4229_; +} +v_reusejp_4229_: +{ +lean_object* v___x_4231_; +v___x_4231_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4231_, 0, v___x_4230_); +return v___x_4231_; +} +} +} +else +{ +lean_object* v_a_4234_; lean_object* v_requestStream_4235_; lean_object* v_respStream_4236_; lean_object* v___x_4237_; lean_object* v___f_4238_; lean_object* v___f_4239_; lean_object* v___x_4240_; lean_object* v___x_4241_; lean_object* v___x_4955__overap_4242_; lean_object* v___x_4243_; lean_object* v___f_4244_; lean_object* v___f_4245_; lean_object* v___f_4246_; lean_object* v___x_4247_; uint8_t v___x_4248_; lean_object* v___x_4249_; +v_a_4234_ = lean_ctor_get(v_x_4223_, 0); +lean_inc(v_a_4234_); +lean_dec_ref(v_x_4223_); +v_requestStream_4235_ = lean_ctor_get(v_a_4234_, 1); +lean_inc_ref_n(v_requestStream_4235_, 2); +v_respStream_4236_ = lean_ctor_get(v_a_4234_, 6); +lean_inc(v_respStream_4236_); +lean_dec(v_a_4234_); +v___x_4237_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__0); +v___f_4238_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__3)); +v___f_4239_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__4)); +v___x_4240_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___lam__6___closed__8)); +v___x_4241_ = lean_alloc_closure((void*)(l_StateRefT_x27_instMonad___aux__13___boxed), 9, 8); +lean_closure_set(v___x_4241_, 0, lean_box(0)); +lean_closure_set(v___x_4241_, 1, lean_box(0)); +lean_closure_set(v___x_4241_, 2, lean_box(0)); +lean_closure_set(v___x_4241_, 3, v___x_4237_); +lean_closure_set(v___x_4241_, 4, lean_box(0)); +lean_closure_set(v___x_4241_, 5, lean_box(0)); +lean_closure_set(v___x_4241_, 6, v___x_4240_); +lean_closure_set(v___x_4241_, 7, v___f_4219_); +v___x_4955__overap_4242_ = l_Std_Mutex_atomically___redArg(v___x_4237_, v___f_4238_, v___f_4239_, v_requestStream_4235_, v___x_4241_); +v___x_4243_ = lean_apply_1(v___x_4955__overap_4242_, lean_box(0)); +v___f_4244_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__7___boxed), 6, 4); +lean_closure_set(v___f_4244_, 0, v_respStream_4236_); +lean_closure_set(v___f_4244_, 1, v_responseBodyInstance_4220_); +lean_closure_set(v___f_4244_, 2, v___f_4221_); +lean_closure_set(v___f_4244_, 3, v___f_4222_); +lean_inc_ref(v___f_4244_); +v___f_4245_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5___boxed), 3, 1); +lean_closure_set(v___f_4245_, 0, v___f_4244_); +v___f_4246_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__9___boxed), 5, 3); +lean_closure_set(v___f_4246_, 0, v_requestStream_4235_); +lean_closure_set(v___f_4246_, 1, v___f_4245_); +lean_closure_set(v___f_4246_, 2, v___f_4244_); +v___x_4247_ = lean_unsigned_to_nat(0u); +v___x_4248_ = 0; +v___x_4249_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4247_, v___x_4248_, v___x_4243_, v___f_4246_); +return v___x_4249_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8___boxed(lean_object* v___f_4250_, lean_object* v_responseBodyInstance_4251_, lean_object* v___f_4252_, lean_object* v___f_4253_, lean_object* v_x_4254_, lean_object* v___y_4255_){ +_start: +{ +lean_object* v_res_4256_; +v_res_4256_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8(v___f_4250_, v_responseBodyInstance_4251_, v___f_4252_, v___f_4253_, v_x_4254_); +return v_res_4256_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__10(lean_object* v_h_4257_, lean_object* v_responseBodyInstance_4258_, lean_object* v_handler_4259_, lean_object* v_config_4260_, lean_object* v___x_4261_, uint8_t v___x_4262_, lean_object* v___f_4263_, lean_object* v_x_4264_){ +_start: +{ +if (lean_obj_tag(v_x_4264_) == 0) +{ +lean_object* v_a_4266_; lean_object* v___x_4268_; uint8_t v_isShared_4269_; uint8_t v_isSharedCheck_4274_; +lean_dec_ref(v___f_4263_); +lean_dec_ref(v___x_4261_); +lean_dec_ref(v_config_4260_); +lean_dec(v_handler_4259_); +lean_dec_ref(v_responseBodyInstance_4258_); +lean_dec_ref(v_h_4257_); +v_a_4266_ = lean_ctor_get(v_x_4264_, 0); +v_isSharedCheck_4274_ = !lean_is_exclusive(v_x_4264_); +if (v_isSharedCheck_4274_ == 0) +{ +v___x_4268_ = v_x_4264_; +v_isShared_4269_ = v_isSharedCheck_4274_; +goto v_resetjp_4267_; +} +else +{ +lean_inc(v_a_4266_); +lean_dec(v_x_4264_); +v___x_4268_ = lean_box(0); +v_isShared_4269_ = v_isSharedCheck_4274_; +goto v_resetjp_4267_; +} +v_resetjp_4267_: +{ +lean_object* v___x_4271_; +if (v_isShared_4269_ == 0) +{ +v___x_4271_ = v___x_4268_; +goto v_reusejp_4270_; +} +else +{ +lean_object* v_reuseFailAlloc_4273_; +v_reuseFailAlloc_4273_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4273_, 0, v_a_4266_); +v___x_4271_ = v_reuseFailAlloc_4273_; +goto v_reusejp_4270_; +} +v_reusejp_4270_: +{ +lean_object* v___x_4272_; +v___x_4272_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4272_, 0, v___x_4271_); +return v___x_4272_; +} +} +} +else +{ +lean_object* v_a_4275_; lean_object* v___x_4276_; lean_object* v___x_4277_; lean_object* v___x_4278_; +v_a_4275_ = lean_ctor_get(v_x_4264_, 0); +lean_inc(v_a_4275_); +lean_dec_ref(v_x_4264_); +v___x_4276_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___redArg(v_h_4257_, v_responseBodyInstance_4258_, v_handler_4259_, v_config_4260_, v_a_4275_, v___x_4261_); +v___x_4277_ = lean_unsigned_to_nat(0u); +v___x_4278_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4277_, v___x_4262_, v___x_4276_, v___f_4263_); +return v___x_4278_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__10___boxed(lean_object* v_h_4279_, lean_object* v_responseBodyInstance_4280_, lean_object* v_handler_4281_, lean_object* v_config_4282_, lean_object* v___x_4283_, lean_object* v___x_4284_, lean_object* v___f_4285_, lean_object* v_x_4286_, lean_object* v___y_4287_){ +_start: +{ +uint8_t v___x_5616__boxed_4288_; lean_object* v_res_4289_; +v___x_5616__boxed_4288_ = lean_unbox(v___x_4284_); +v_res_4289_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__10(v_h_4279_, v_responseBodyInstance_4280_, v_handler_4281_, v_config_4282_, v___x_4283_, v___x_5616__boxed_4288_, v___f_4285_, v_x_4286_); +return v_res_4289_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11(lean_object* v_inst_4290_, lean_object* v_h_4291_, lean_object* v_responseBodyInstance_4292_, lean_object* v_config_4293_, lean_object* v_handler_4294_, uint8_t v___x_4295_, lean_object* v___f_4296_, lean_object* v_x_4297_){ +_start: +{ +if (lean_obj_tag(v_x_4297_) == 0) +{ +lean_object* v_a_4299_; lean_object* v___x_4301_; uint8_t v_isShared_4302_; uint8_t v_isSharedCheck_4307_; +lean_dec_ref(v___f_4296_); +lean_dec(v_handler_4294_); +lean_dec_ref(v_config_4293_); +lean_dec_ref(v_responseBodyInstance_4292_); +lean_dec_ref(v_h_4291_); +lean_dec_ref(v_inst_4290_); +v_a_4299_ = lean_ctor_get(v_x_4297_, 0); +v_isSharedCheck_4307_ = !lean_is_exclusive(v_x_4297_); +if (v_isSharedCheck_4307_ == 0) +{ +v___x_4301_ = v_x_4297_; +v_isShared_4302_ = v_isSharedCheck_4307_; +goto v_resetjp_4300_; +} +else +{ +lean_inc(v_a_4299_); +lean_dec(v_x_4297_); +v___x_4301_ = lean_box(0); +v_isShared_4302_ = v_isSharedCheck_4307_; +goto v_resetjp_4300_; +} +v_resetjp_4300_: +{ +lean_object* v___x_4304_; +if (v_isShared_4302_ == 0) +{ +v___x_4304_ = v___x_4301_; +goto v_reusejp_4303_; +} +else +{ +lean_object* v_reuseFailAlloc_4306_; +v_reuseFailAlloc_4306_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4306_, 0, v_a_4299_); +v___x_4304_ = v_reuseFailAlloc_4306_; +goto v_reusejp_4303_; +} +v_reusejp_4303_: +{ +lean_object* v___x_4305_; +v___x_4305_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4305_, 0, v___x_4304_); +return v___x_4305_; +} +} +} +else +{ +lean_object* v_a_4308_; lean_object* v___x_4309_; lean_object* v___x_4310_; lean_object* v___x_4311_; +v_a_4308_ = lean_ctor_get(v_x_4297_, 0); +lean_inc(v_a_4308_); +lean_dec_ref(v_x_4297_); +v___x_4309_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___redArg(v_inst_4290_, v_h_4291_, v_responseBodyInstance_4292_, v_config_4293_, v_handler_4294_, v_a_4308_); +v___x_4310_ = lean_unsigned_to_nat(0u); +v___x_4311_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4310_, v___x_4295_, v___x_4309_, v___f_4296_); +return v___x_4311_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11___boxed(lean_object* v_inst_4312_, lean_object* v_h_4313_, lean_object* v_responseBodyInstance_4314_, lean_object* v_config_4315_, lean_object* v_handler_4316_, lean_object* v___x_4317_, lean_object* v___f_4318_, lean_object* v_x_4319_, lean_object* v___y_4320_){ +_start: +{ +uint8_t v___x_5657__boxed_4321_; lean_object* v_res_4322_; +v___x_5657__boxed_4321_ = lean_unbox(v___x_4317_); +v_res_4322_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11(v_inst_4312_, v_h_4313_, v_responseBodyInstance_4314_, v_config_4315_, v_handler_4316_, v___x_5657__boxed_4321_, v___f_4318_, v_x_4319_); +return v_res_4322_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12(uint8_t v___x_4323_, lean_object* v_socket_4324_, lean_object* v_connectionContext_4325_, lean_object* v_h_4326_, lean_object* v_responseBodyInstance_4327_, lean_object* v_handler_4328_, lean_object* v_config_4329_, lean_object* v___f_4330_, lean_object* v_inst_4331_, lean_object* v_x_4332_){ +_start: +{ +if (lean_obj_tag(v_x_4332_) == 0) +{ +lean_object* v_a_4334_; lean_object* v___x_4336_; uint8_t v_isShared_4337_; uint8_t v_isSharedCheck_4342_; +lean_dec_ref(v_inst_4331_); +lean_dec_ref(v___f_4330_); +lean_dec_ref(v_config_4329_); +lean_dec(v_handler_4328_); +lean_dec_ref(v_responseBodyInstance_4327_); +lean_dec_ref(v_h_4326_); +lean_dec_ref(v_connectionContext_4325_); +lean_dec(v_socket_4324_); +v_a_4334_ = lean_ctor_get(v_x_4332_, 0); +v_isSharedCheck_4342_ = !lean_is_exclusive(v_x_4332_); +if (v_isSharedCheck_4342_ == 0) +{ +v___x_4336_ = v_x_4332_; +v_isShared_4337_ = v_isSharedCheck_4342_; +goto v_resetjp_4335_; +} +else +{ +lean_inc(v_a_4334_); +lean_dec(v_x_4332_); +v___x_4336_ = lean_box(0); +v_isShared_4337_ = v_isSharedCheck_4342_; +goto v_resetjp_4335_; +} +v_resetjp_4335_: +{ +lean_object* v___x_4339_; +if (v_isShared_4337_ == 0) +{ +v___x_4339_ = v___x_4336_; +goto v_reusejp_4338_; +} +else +{ +lean_object* v_reuseFailAlloc_4341_; +v_reuseFailAlloc_4341_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4341_, 0, v_a_4334_); +v___x_4339_ = v_reuseFailAlloc_4341_; +goto v_reusejp_4338_; +} +v_reusejp_4338_: +{ +lean_object* v___x_4340_; +v___x_4340_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4340_, 0, v___x_4339_); +return v___x_4340_; +} +} +} +else +{ +lean_object* v_a_4343_; lean_object* v___x_4345_; uint8_t v_isShared_4346_; uint8_t v_isSharedCheck_4377_; +v_a_4343_ = lean_ctor_get(v_x_4332_, 0); +v_isSharedCheck_4377_ = !lean_is_exclusive(v_x_4332_); +if (v_isSharedCheck_4377_ == 0) +{ +v___x_4345_ = v_x_4332_; +v_isShared_4346_ = v_isSharedCheck_4377_; +goto v_resetjp_4344_; +} +else +{ +lean_inc(v_a_4343_); +lean_dec(v_x_4332_); +v___x_4345_ = lean_box(0); +v_isShared_4346_ = v_isSharedCheck_4377_; +goto v_resetjp_4344_; +} +v_resetjp_4344_: +{ +lean_object* v_machine_4353_; lean_object* v_requestStream_4354_; lean_object* v_keepAliveTimeout_4355_; lean_object* v_currentTimeout_4356_; lean_object* v_headerTimeout_4357_; lean_object* v_response_4358_; lean_object* v_respStream_4359_; uint8_t v_requiresData_4360_; lean_object* v_expectData_4361_; uint8_t v_handlerDispatched_4362_; lean_object* v_pendingHead_4363_; +v_machine_4353_ = lean_ctor_get(v_a_4343_, 0); +v_requestStream_4354_ = lean_ctor_get(v_a_4343_, 1); +v_keepAliveTimeout_4355_ = lean_ctor_get(v_a_4343_, 2); +v_currentTimeout_4356_ = lean_ctor_get(v_a_4343_, 3); +v_headerTimeout_4357_ = lean_ctor_get(v_a_4343_, 4); +v_response_4358_ = lean_ctor_get(v_a_4343_, 5); +v_respStream_4359_ = lean_ctor_get(v_a_4343_, 6); +v_requiresData_4360_ = lean_ctor_get_uint8(v_a_4343_, sizeof(void*)*9); +v_expectData_4361_ = lean_ctor_get(v_a_4343_, 7); +v_handlerDispatched_4362_ = lean_ctor_get_uint8(v_a_4343_, sizeof(void*)*9 + 1); +v_pendingHead_4363_ = lean_ctor_get(v_a_4343_, 8); +if (v_requiresData_4360_ == 0) +{ +if (v_handlerDispatched_4362_ == 0) +{ +if (lean_obj_tag(v_respStream_4359_) == 0) +{ +lean_object* v_writer_4373_; uint8_t v_sentMessage_4374_; +v_writer_4373_ = lean_ctor_get(v_machine_4353_, 1); +v_sentMessage_4374_ = lean_ctor_get_uint8(v_writer_4373_, sizeof(void*)*6); +if (v_sentMessage_4374_ == 0) +{ +lean_object* v_reader_4375_; lean_object* v_state_4376_; +v_reader_4375_ = lean_ctor_get(v_machine_4353_, 0); +v_state_4376_ = lean_ctor_get(v_reader_4375_, 0); +if (lean_obj_tag(v_state_4376_) == 2) +{ +lean_inc(v_respStream_4359_); +lean_inc(v_pendingHead_4363_); +lean_inc(v_expectData_4361_); +lean_inc_ref(v_response_4358_); +lean_inc(v_headerTimeout_4357_); +lean_inc(v_currentTimeout_4356_); +lean_inc(v_keepAliveTimeout_4355_); +lean_inc_ref(v_requestStream_4354_); +lean_inc_ref(v_machine_4353_); +lean_del_object(v___x_4345_); +lean_dec(v_a_4343_); +goto v___jp_4364_; +} +else +{ +lean_dec_ref(v_inst_4331_); +lean_dec_ref(v___f_4330_); +lean_dec_ref(v_config_4329_); +lean_dec(v_handler_4328_); +lean_dec_ref(v_responseBodyInstance_4327_); +lean_dec_ref(v_h_4326_); +lean_dec_ref(v_connectionContext_4325_); +lean_dec(v_socket_4324_); +goto v___jp_4347_; +} +} +else +{ +lean_dec_ref(v_inst_4331_); +lean_dec_ref(v___f_4330_); +lean_dec_ref(v_config_4329_); +lean_dec(v_handler_4328_); +lean_dec_ref(v_responseBodyInstance_4327_); +lean_dec_ref(v_h_4326_); +lean_dec_ref(v_connectionContext_4325_); +lean_dec(v_socket_4324_); +goto v___jp_4347_; +} +} +else +{ +lean_inc_ref(v_respStream_4359_); +lean_inc(v_pendingHead_4363_); +lean_inc(v_expectData_4361_); +lean_inc_ref(v_response_4358_); +lean_inc(v_headerTimeout_4357_); +lean_inc(v_currentTimeout_4356_); +lean_inc(v_keepAliveTimeout_4355_); +lean_inc_ref(v_requestStream_4354_); +lean_inc_ref(v_machine_4353_); +lean_del_object(v___x_4345_); +lean_dec(v_a_4343_); +goto v___jp_4364_; +} +} +else +{ +lean_inc(v_pendingHead_4363_); +lean_inc(v_expectData_4361_); +lean_inc(v_respStream_4359_); +lean_inc_ref(v_response_4358_); +lean_inc(v_headerTimeout_4357_); +lean_inc(v_currentTimeout_4356_); +lean_inc(v_keepAliveTimeout_4355_); +lean_inc_ref(v_requestStream_4354_); +lean_inc_ref(v_machine_4353_); +lean_del_object(v___x_4345_); +lean_dec(v_a_4343_); +goto v___jp_4364_; +} +} +else +{ +lean_inc(v_pendingHead_4363_); +lean_inc(v_expectData_4361_); +lean_inc(v_respStream_4359_); +lean_inc_ref(v_response_4358_); +lean_inc(v_headerTimeout_4357_); +lean_inc(v_currentTimeout_4356_); +lean_inc(v_keepAliveTimeout_4355_); +lean_inc_ref(v_requestStream_4354_); +lean_inc_ref(v_machine_4353_); +lean_del_object(v___x_4345_); +lean_dec(v_a_4343_); +goto v___jp_4364_; +} +v___jp_4347_: +{ +lean_object* v___x_4348_; lean_object* v___x_4350_; +v___x_4348_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4348_, 0, v_a_4343_); +if (v_isShared_4346_ == 0) +{ +lean_ctor_set(v___x_4345_, 0, v___x_4348_); +v___x_4350_ = v___x_4345_; +goto v_reusejp_4349_; +} +else +{ +lean_object* v_reuseFailAlloc_4352_; +v_reuseFailAlloc_4352_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4352_, 0, v___x_4348_); +v___x_4350_ = v_reuseFailAlloc_4352_; +goto v_reusejp_4349_; +} +v_reusejp_4349_: +{ +lean_object* v___x_4351_; +v___x_4351_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4351_, 0, v___x_4350_); +return v___x_4351_; +} +} +v___jp_4364_: +{ +lean_object* v___x_4365_; lean_object* v___x_4366_; lean_object* v___x_4367_; lean_object* v___f_4368_; lean_object* v___x_4369_; lean_object* v___f_4370_; lean_object* v___x_4371_; lean_object* v___x_4372_; +v___x_4365_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_4365_, 0, v_machine_4353_); +lean_ctor_set(v___x_4365_, 1, v_requestStream_4354_); +lean_ctor_set(v___x_4365_, 2, v_keepAliveTimeout_4355_); +lean_ctor_set(v___x_4365_, 3, v_currentTimeout_4356_); +lean_ctor_set(v___x_4365_, 4, v_headerTimeout_4357_); +lean_ctor_set(v___x_4365_, 5, v_response_4358_); +lean_ctor_set(v___x_4365_, 6, v_respStream_4359_); +lean_ctor_set(v___x_4365_, 7, v_expectData_4361_); +lean_ctor_set(v___x_4365_, 8, v_pendingHead_4363_); +lean_ctor_set_uint8(v___x_4365_, sizeof(void*)*9, v___x_4323_); +lean_ctor_set_uint8(v___x_4365_, sizeof(void*)*9 + 1, v_handlerDispatched_4362_); +lean_inc_ref(v___x_4365_); +v___x_4366_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___redArg(v_socket_4324_, v_connectionContext_4325_, v___x_4365_); +v___x_4367_ = lean_box(v___x_4323_); +lean_inc_ref(v_config_4329_); +lean_inc(v_handler_4328_); +lean_inc_ref(v_responseBodyInstance_4327_); +lean_inc_ref(v_h_4326_); +v___f_4368_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__10___boxed), 9, 7); +lean_closure_set(v___f_4368_, 0, v_h_4326_); +lean_closure_set(v___f_4368_, 1, v_responseBodyInstance_4327_); +lean_closure_set(v___f_4368_, 2, v_handler_4328_); +lean_closure_set(v___f_4368_, 3, v_config_4329_); +lean_closure_set(v___f_4368_, 4, v___x_4365_); +lean_closure_set(v___f_4368_, 5, v___x_4367_); +lean_closure_set(v___f_4368_, 6, v___f_4330_); +v___x_4369_ = lean_box(v___x_4323_); +v___f_4370_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__11___boxed), 9, 7); +lean_closure_set(v___f_4370_, 0, v_inst_4331_); +lean_closure_set(v___f_4370_, 1, v_h_4326_); +lean_closure_set(v___f_4370_, 2, v_responseBodyInstance_4327_); +lean_closure_set(v___f_4370_, 3, v_config_4329_); +lean_closure_set(v___f_4370_, 4, v_handler_4328_); +lean_closure_set(v___f_4370_, 5, v___x_4369_); +lean_closure_set(v___f_4370_, 6, v___f_4368_); +v___x_4371_ = lean_unsigned_to_nat(0u); +v___x_4372_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4371_, v___x_4323_, v___x_4366_, v___f_4370_); +return v___x_4372_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12___boxed(lean_object* v___x_4378_, lean_object* v_socket_4379_, lean_object* v_connectionContext_4380_, lean_object* v_h_4381_, lean_object* v_responseBodyInstance_4382_, lean_object* v_handler_4383_, lean_object* v_config_4384_, lean_object* v___f_4385_, lean_object* v_inst_4386_, lean_object* v_x_4387_, lean_object* v___y_4388_){ +_start: +{ +uint8_t v___x_5697__boxed_4389_; lean_object* v_res_4390_; +v___x_5697__boxed_4389_ = lean_unbox(v___x_4378_); +v_res_4390_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12(v___x_5697__boxed_4389_, v_socket_4379_, v_connectionContext_4380_, v_h_4381_, v_responseBodyInstance_4382_, v_handler_4383_, v_config_4384_, v___f_4385_, v_inst_4386_, v_x_4387_); +return v_res_4390_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13(lean_object* v_h_4391_, lean_object* v_handler_4392_, lean_object* v_extensions_4393_, lean_object* v_connectionContext_4394_, uint8_t v___x_4395_, lean_object* v___f_4396_, lean_object* v_x_4397_){ +_start: +{ +if (lean_obj_tag(v_x_4397_) == 0) +{ +lean_object* v_a_4399_; lean_object* v___x_4401_; uint8_t v_isShared_4402_; uint8_t v_isSharedCheck_4407_; +lean_dec_ref(v___f_4396_); +lean_dec_ref(v_connectionContext_4394_); +lean_dec(v_extensions_4393_); +lean_dec(v_handler_4392_); +lean_dec_ref(v_h_4391_); +v_a_4399_ = lean_ctor_get(v_x_4397_, 0); +v_isSharedCheck_4407_ = !lean_is_exclusive(v_x_4397_); +if (v_isSharedCheck_4407_ == 0) +{ +v___x_4401_ = v_x_4397_; +v_isShared_4402_ = v_isSharedCheck_4407_; +goto v_resetjp_4400_; +} +else +{ +lean_inc(v_a_4399_); +lean_dec(v_x_4397_); +v___x_4401_ = lean_box(0); +v_isShared_4402_ = v_isSharedCheck_4407_; +goto v_resetjp_4400_; +} +v_resetjp_4400_: +{ +lean_object* v___x_4404_; +if (v_isShared_4402_ == 0) +{ +v___x_4404_ = v___x_4401_; +goto v_reusejp_4403_; +} +else +{ +lean_object* v_reuseFailAlloc_4406_; +v_reuseFailAlloc_4406_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4406_, 0, v_a_4399_); +v___x_4404_ = v_reuseFailAlloc_4406_; +goto v_reusejp_4403_; +} +v_reusejp_4403_: +{ +lean_object* v___x_4405_; +v___x_4405_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4405_, 0, v___x_4404_); +return v___x_4405_; +} +} +} +else +{ +lean_object* v_a_4408_; lean_object* v___x_4409_; lean_object* v___x_4410_; lean_object* v___x_4411_; +v_a_4408_ = lean_ctor_get(v_x_4397_, 0); +lean_inc(v_a_4408_); +lean_dec_ref(v_x_4397_); +v___x_4409_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___redArg(v_h_4391_, v_handler_4392_, v_extensions_4393_, v_connectionContext_4394_, v_a_4408_); +v___x_4410_ = lean_unsigned_to_nat(0u); +v___x_4411_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4410_, v___x_4395_, v___x_4409_, v___f_4396_); +return v___x_4411_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13___boxed(lean_object* v_h_4412_, lean_object* v_handler_4413_, lean_object* v_extensions_4414_, lean_object* v_connectionContext_4415_, lean_object* v___x_4416_, lean_object* v___f_4417_, lean_object* v_x_4418_, lean_object* v___y_4419_){ +_start: +{ +uint8_t v___x_5772__boxed_4420_; lean_object* v_res_4421_; +v___x_5772__boxed_4420_ = lean_unbox(v___x_4416_); +v_res_4421_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13(v_h_4412_, v_handler_4413_, v_extensions_4414_, v_connectionContext_4415_, v___x_5772__boxed_4420_, v___f_4417_, v_x_4418_); +return v_res_4421_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14(lean_object* v_h_4422_, lean_object* v_responseBodyInstance_4423_, lean_object* v_handler_4424_, lean_object* v_config_4425_, lean_object* v_connectionContext_4426_, lean_object* v_events_4427_, lean_object* v___x_4428_, uint8_t v___x_4429_, lean_object* v___f_4430_, lean_object* v_____r_4431_){ +_start: +{ +lean_object* v___x_4433_; lean_object* v___x_4434_; lean_object* v___x_4435_; +v___x_4433_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg(v_h_4422_, v_responseBodyInstance_4423_, v_handler_4424_, v_config_4425_, v_connectionContext_4426_, v_events_4427_, v___x_4428_); +v___x_4434_ = lean_unsigned_to_nat(0u); +v___x_4435_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4434_, v___x_4429_, v___x_4433_, v___f_4430_); +return v___x_4435_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14___boxed(lean_object* v_h_4436_, lean_object* v_responseBodyInstance_4437_, lean_object* v_handler_4438_, lean_object* v_config_4439_, lean_object* v_connectionContext_4440_, lean_object* v_events_4441_, lean_object* v___x_4442_, lean_object* v___x_4443_, lean_object* v___f_4444_, lean_object* v_____r_4445_, lean_object* v___y_4446_){ +_start: +{ +uint8_t v___x_5811__boxed_4447_; lean_object* v_res_4448_; +v___x_5811__boxed_4447_ = lean_unbox(v___x_4443_); +v_res_4448_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14(v_h_4436_, v_responseBodyInstance_4437_, v_handler_4438_, v_config_4439_, v_connectionContext_4440_, v_events_4441_, v___x_4442_, v___x_5811__boxed_4447_, v___f_4444_, v_____r_4445_); +return v_res_4448_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15(lean_object* v___x_4449_, lean_object* v___f_4450_, lean_object* v_x_4451_){ +_start: +{ +if (lean_obj_tag(v_x_4451_) == 0) +{ +lean_object* v_a_4453_; lean_object* v___x_4455_; uint8_t v_isShared_4456_; uint8_t v_isSharedCheck_4461_; +lean_dec_ref(v___f_4450_); +lean_dec_ref(v___x_4449_); +v_a_4453_ = lean_ctor_get(v_x_4451_, 0); +v_isSharedCheck_4461_ = !lean_is_exclusive(v_x_4451_); +if (v_isSharedCheck_4461_ == 0) +{ +v___x_4455_ = v_x_4451_; +v_isShared_4456_ = v_isSharedCheck_4461_; +goto v_resetjp_4454_; +} +else +{ +lean_inc(v_a_4453_); +lean_dec(v_x_4451_); +v___x_4455_ = lean_box(0); +v_isShared_4456_ = v_isSharedCheck_4461_; +goto v_resetjp_4454_; +} +v_resetjp_4454_: +{ +lean_object* v___x_4458_; +if (v_isShared_4456_ == 0) +{ +v___x_4458_ = v___x_4455_; +goto v_reusejp_4457_; +} +else +{ +lean_object* v_reuseFailAlloc_4460_; +v_reuseFailAlloc_4460_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4460_, 0, v_a_4453_); +v___x_4458_ = v_reuseFailAlloc_4460_; +goto v_reusejp_4457_; +} +v_reusejp_4457_: +{ +lean_object* v___x_4459_; +v___x_4459_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4459_, 0, v___x_4458_); +return v___x_4459_; +} +} +} +else +{ +lean_object* v_a_4462_; lean_object* v___x_4464_; uint8_t v_isShared_4465_; uint8_t v_isSharedCheck_4473_; +v_a_4462_ = lean_ctor_get(v_x_4451_, 0); +v_isSharedCheck_4473_ = !lean_is_exclusive(v_x_4451_); +if (v_isSharedCheck_4473_ == 0) +{ +v___x_4464_ = v_x_4451_; +v_isShared_4465_ = v_isSharedCheck_4473_; +goto v_resetjp_4463_; +} +else +{ +lean_inc(v_a_4462_); +lean_dec(v_x_4451_); +v___x_4464_ = lean_box(0); +v_isShared_4465_ = v_isSharedCheck_4473_; +goto v_resetjp_4463_; +} +v_resetjp_4463_: +{ +if (lean_obj_tag(v_a_4462_) == 0) +{ +lean_object* v___x_4466_; lean_object* v___x_4468_; +lean_dec_ref(v___f_4450_); +v___x_4466_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4466_, 0, v___x_4449_); +if (v_isShared_4465_ == 0) +{ +lean_ctor_set(v___x_4464_, 0, v___x_4466_); +v___x_4468_ = v___x_4464_; +goto v_reusejp_4467_; +} +else +{ +lean_object* v_reuseFailAlloc_4470_; +v_reuseFailAlloc_4470_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4470_, 0, v___x_4466_); +v___x_4468_ = v_reuseFailAlloc_4470_; +goto v_reusejp_4467_; +} +v_reusejp_4467_: +{ +lean_object* v___x_4469_; +v___x_4469_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4469_, 0, v___x_4468_); +return v___x_4469_; +} +} +else +{ +lean_object* v_val_4471_; lean_object* v___x_4472_; +lean_del_object(v___x_4464_); +lean_dec_ref(v___x_4449_); +v_val_4471_ = lean_ctor_get(v_a_4462_, 0); +lean_inc(v_val_4471_); +lean_dec_ref(v_a_4462_); +v___x_4472_ = lean_apply_2(v___f_4450_, v_val_4471_, lean_box(0)); +return v___x_4472_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15___boxed(lean_object* v___x_4474_, lean_object* v___f_4475_, lean_object* v_x_4476_, lean_object* v___y_4477_){ +_start: +{ +lean_object* v_res_4478_; +v_res_4478_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15(v___x_4474_, v___f_4475_, v_x_4476_); +return v_res_4478_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16(lean_object* v_h_4479_, lean_object* v_responseBodyInstance_4480_, lean_object* v_handler_4481_, lean_object* v_config_4482_, lean_object* v_connectionContext_4483_, uint8_t v___x_4484_, lean_object* v___f_4485_, lean_object* v_inst_4486_, lean_object* v_socket_4487_, lean_object* v___f_4488_, lean_object* v___f_4489_, lean_object* v_x_4490_, lean_object* v_____s_4491_){ +_start: +{ +lean_object* v_machine_4493_; lean_object* v_reader_4494_; lean_object* v_requestStream_4495_; lean_object* v_keepAliveTimeout_4496_; lean_object* v_currentTimeout_4497_; lean_object* v_headerTimeout_4498_; lean_object* v_response_4499_; lean_object* v_respStream_4500_; uint8_t v_requiresData_4501_; lean_object* v_expectData_4502_; uint8_t v_handlerDispatched_4503_; lean_object* v_pendingHead_4504_; lean_object* v_writer_4505_; lean_object* v_state_4506_; uint8_t v___x_4507_; +v_machine_4493_ = lean_ctor_get(v_____s_4491_, 0); +v_reader_4494_ = lean_ctor_get(v_machine_4493_, 0); +v_requestStream_4495_ = lean_ctor_get(v_____s_4491_, 1); +v_keepAliveTimeout_4496_ = lean_ctor_get(v_____s_4491_, 2); +v_currentTimeout_4497_ = lean_ctor_get(v_____s_4491_, 3); +v_headerTimeout_4498_ = lean_ctor_get(v_____s_4491_, 4); +v_response_4499_ = lean_ctor_get(v_____s_4491_, 5); +v_respStream_4500_ = lean_ctor_get(v_____s_4491_, 6); +v_requiresData_4501_ = lean_ctor_get_uint8(v_____s_4491_, sizeof(void*)*9); +v_expectData_4502_ = lean_ctor_get(v_____s_4491_, 7); +v_handlerDispatched_4503_ = lean_ctor_get_uint8(v_____s_4491_, sizeof(void*)*9 + 1); +v_pendingHead_4504_ = lean_ctor_get(v_____s_4491_, 8); +v_writer_4505_ = lean_ctor_get(v_machine_4493_, 1); +v_state_4506_ = lean_ctor_get(v_reader_4494_, 0); +v___x_4507_ = 0; +if (lean_obj_tag(v_state_4506_) == 6) +{ +lean_object* v_state_4529_; +v_state_4529_ = lean_ctor_get(v_writer_4505_, 2); +if (lean_obj_tag(v_state_4529_) == 7) +{ +lean_object* v_outputData_4530_; lean_object* v_size_4531_; lean_object* v___x_4532_; uint8_t v___x_4533_; +v_outputData_4530_ = lean_ctor_get(v_writer_4505_, 1); +v_size_4531_ = lean_ctor_get(v_outputData_4530_, 1); +v___x_4532_ = lean_unsigned_to_nat(0u); +v___x_4533_ = lean_nat_dec_eq(v_size_4531_, v___x_4532_); +if (v___x_4533_ == 0) +{ +lean_inc(v_pendingHead_4504_); +lean_inc(v_expectData_4502_); +lean_inc(v_respStream_4500_); +lean_inc_ref(v_response_4499_); +lean_inc(v_headerTimeout_4498_); +lean_inc(v_currentTimeout_4497_); +lean_inc(v_keepAliveTimeout_4496_); +lean_inc_ref(v_requestStream_4495_); +lean_inc_ref(v_machine_4493_); +lean_dec_ref(v_____s_4491_); +goto v___jp_4508_; +} +else +{ +if (v___x_4533_ == 0) +{ +lean_inc(v_pendingHead_4504_); +lean_inc(v_expectData_4502_); +lean_inc(v_respStream_4500_); +lean_inc_ref(v_response_4499_); +lean_inc(v_headerTimeout_4498_); +lean_inc(v_currentTimeout_4497_); +lean_inc(v_keepAliveTimeout_4496_); +lean_inc_ref(v_requestStream_4495_); +lean_inc_ref(v_machine_4493_); +lean_dec_ref(v_____s_4491_); +goto v___jp_4508_; +} +else +{ +lean_object* v___x_4534_; lean_object* v___x_4535_; lean_object* v___x_4536_; +lean_dec_ref(v___f_4489_); +lean_dec_ref(v___f_4488_); +lean_dec(v_socket_4487_); +lean_dec_ref(v_inst_4486_); +lean_dec_ref(v___f_4485_); +lean_dec_ref(v_connectionContext_4483_); +lean_dec_ref(v_config_4482_); +lean_dec(v_handler_4481_); +lean_dec_ref(v_responseBodyInstance_4480_); +lean_dec_ref(v_h_4479_); +v___x_4534_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4534_, 0, v_____s_4491_); +v___x_4535_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4535_, 0, v___x_4534_); +v___x_4536_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4536_, 0, v___x_4535_); +return v___x_4536_; +} +} +} +else +{ +lean_inc(v_pendingHead_4504_); +lean_inc(v_expectData_4502_); +lean_inc(v_respStream_4500_); +lean_inc_ref(v_response_4499_); +lean_inc(v_headerTimeout_4498_); +lean_inc(v_currentTimeout_4497_); +lean_inc(v_keepAliveTimeout_4496_); +lean_inc_ref(v_requestStream_4495_); +lean_inc_ref(v_machine_4493_); +lean_dec_ref(v_____s_4491_); +goto v___jp_4508_; +} +} +else +{ +lean_inc(v_pendingHead_4504_); +lean_inc(v_expectData_4502_); +lean_inc(v_respStream_4500_); +lean_inc_ref(v_response_4499_); +lean_inc(v_headerTimeout_4498_); +lean_inc(v_currentTimeout_4497_); +lean_inc(v_keepAliveTimeout_4496_); +lean_inc_ref(v_requestStream_4495_); +lean_inc_ref(v_machine_4493_); +lean_dec_ref(v_____s_4491_); +goto v___jp_4508_; +} +v___jp_4508_: +{ +lean_object* v___x_4509_; lean_object* v_snd_4510_; lean_object* v_output_4511_; lean_object* v_fst_4512_; lean_object* v_events_4513_; lean_object* v_data_4514_; lean_object* v_size_4515_; lean_object* v___x_4516_; lean_object* v___x_4517_; lean_object* v___f_4518_; lean_object* v___x_4519_; uint8_t v___x_4520_; +v___x_4509_ = l_Std_Http_Protocol_H1_Machine_step(v___x_4507_, v_machine_4493_); +v_snd_4510_ = lean_ctor_get(v___x_4509_, 1); +lean_inc(v_snd_4510_); +v_output_4511_ = lean_ctor_get(v_snd_4510_, 1); +lean_inc_ref(v_output_4511_); +v_fst_4512_ = lean_ctor_get(v___x_4509_, 0); +lean_inc(v_fst_4512_); +lean_dec_ref(v___x_4509_); +v_events_4513_ = lean_ctor_get(v_snd_4510_, 0); +lean_inc_ref_n(v_events_4513_, 2); +lean_dec(v_snd_4510_); +v_data_4514_ = lean_ctor_get(v_output_4511_, 0); +lean_inc_ref(v_data_4514_); +v_size_4515_ = lean_ctor_get(v_output_4511_, 1); +lean_inc(v_size_4515_); +lean_dec_ref(v_output_4511_); +v___x_4516_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_4516_, 0, v_fst_4512_); +lean_ctor_set(v___x_4516_, 1, v_requestStream_4495_); +lean_ctor_set(v___x_4516_, 2, v_keepAliveTimeout_4496_); +lean_ctor_set(v___x_4516_, 3, v_currentTimeout_4497_); +lean_ctor_set(v___x_4516_, 4, v_headerTimeout_4498_); +lean_ctor_set(v___x_4516_, 5, v_response_4499_); +lean_ctor_set(v___x_4516_, 6, v_respStream_4500_); +lean_ctor_set(v___x_4516_, 7, v_expectData_4502_); +lean_ctor_set(v___x_4516_, 8, v_pendingHead_4504_); +lean_ctor_set_uint8(v___x_4516_, sizeof(void*)*9, v_requiresData_4501_); +lean_ctor_set_uint8(v___x_4516_, sizeof(void*)*9 + 1, v_handlerDispatched_4503_); +v___x_4517_ = lean_box(v___x_4484_); +lean_inc_ref(v___f_4485_); +lean_inc_ref(v___x_4516_); +lean_inc_ref(v_connectionContext_4483_); +lean_inc_ref(v_config_4482_); +lean_inc(v_handler_4481_); +lean_inc_ref(v_responseBodyInstance_4480_); +lean_inc_ref(v_h_4479_); +v___f_4518_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14___boxed), 11, 9); +lean_closure_set(v___f_4518_, 0, v_h_4479_); +lean_closure_set(v___f_4518_, 1, v_responseBodyInstance_4480_); +lean_closure_set(v___f_4518_, 2, v_handler_4481_); +lean_closure_set(v___f_4518_, 3, v_config_4482_); +lean_closure_set(v___f_4518_, 4, v_connectionContext_4483_); +lean_closure_set(v___f_4518_, 5, v_events_4513_); +lean_closure_set(v___f_4518_, 6, v___x_4516_); +lean_closure_set(v___f_4518_, 7, v___x_4517_); +lean_closure_set(v___f_4518_, 8, v___f_4485_); +v___x_4519_ = lean_unsigned_to_nat(0u); +v___x_4520_ = lean_nat_dec_lt(v___x_4519_, v_size_4515_); +lean_dec(v_size_4515_); +if (v___x_4520_ == 0) +{ +lean_object* v___x_4521_; lean_object* v___x_4522_; +lean_dec_ref(v___f_4518_); +lean_dec_ref(v_data_4514_); +lean_dec_ref(v___f_4489_); +lean_dec_ref(v___f_4488_); +lean_dec(v_socket_4487_); +lean_dec_ref(v_inst_4486_); +v___x_4521_ = lean_box(0); +v___x_4522_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__14(v_h_4479_, v_responseBodyInstance_4480_, v_handler_4481_, v_config_4482_, v_connectionContext_4483_, v_events_4513_, v___x_4516_, v___x_4484_, v___f_4485_, v___x_4521_); +return v___x_4522_; +} +else +{ +lean_object* v_sendAll_4523_; lean_object* v___x_4524_; lean_object* v___x_4525_; lean_object* v___x_4526_; lean_object* v___f_4527_; lean_object* v___x_4528_; +lean_dec_ref(v_events_4513_); +lean_dec_ref(v___f_4485_); +lean_dec_ref(v_connectionContext_4483_); +lean_dec_ref(v_config_4482_); +lean_dec(v_handler_4481_); +lean_dec_ref(v_responseBodyInstance_4480_); +lean_dec_ref(v_h_4479_); +v_sendAll_4523_ = lean_ctor_get(v_inst_4486_, 1); +lean_inc_ref(v_sendAll_4523_); +lean_dec_ref(v_inst_4486_); +v___x_4524_ = lean_apply_3(v_sendAll_4523_, v_socket_4487_, v_data_4514_, lean_box(0)); +v___x_4525_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4519_, v___x_4484_, v___x_4524_, v___f_4488_); +v___x_4526_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4519_, v___x_4484_, v___x_4525_, v___f_4489_); +v___f_4527_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__15___boxed), 4, 2); +lean_closure_set(v___f_4527_, 0, v___x_4516_); +lean_closure_set(v___f_4527_, 1, v___f_4518_); +v___x_4528_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4519_, v___x_4484_, v___x_4526_, v___f_4527_); +return v___x_4528_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16___boxed(lean_object* v_h_4537_, lean_object* v_responseBodyInstance_4538_, lean_object* v_handler_4539_, lean_object* v_config_4540_, lean_object* v_connectionContext_4541_, lean_object* v___x_4542_, lean_object* v___f_4543_, lean_object* v_inst_4544_, lean_object* v_socket_4545_, lean_object* v___f_4546_, lean_object* v___f_4547_, lean_object* v_x_4548_, lean_object* v_____s_4549_, lean_object* v___y_4550_){ +_start: +{ +uint8_t v___x_5885__boxed_4551_; lean_object* v_res_4552_; +v___x_5885__boxed_4551_ = lean_unbox(v___x_4542_); +v_res_4552_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16(v_h_4537_, v_responseBodyInstance_4538_, v_handler_4539_, v_config_4540_, v_connectionContext_4541_, v___x_5885__boxed_4551_, v___f_4543_, v_inst_4544_, v_socket_4545_, v___f_4546_, v___f_4547_, v_x_4548_, v_____s_4549_); +return v_res_4552_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17(lean_object* v_a_4553_, lean_object* v_x_4554_){ +_start: +{ +if (lean_obj_tag(v_x_4554_) == 0) +{ +lean_object* v_a_4556_; lean_object* v___x_4558_; uint8_t v_isShared_4559_; uint8_t v_isSharedCheck_4564_; +v_a_4556_ = lean_ctor_get(v_x_4554_, 0); +v_isSharedCheck_4564_ = !lean_is_exclusive(v_x_4554_); +if (v_isSharedCheck_4564_ == 0) +{ +v___x_4558_ = v_x_4554_; +v_isShared_4559_ = v_isSharedCheck_4564_; +goto v_resetjp_4557_; +} +else +{ +lean_inc(v_a_4556_); +lean_dec(v_x_4554_); +v___x_4558_ = lean_box(0); +v_isShared_4559_ = v_isSharedCheck_4564_; +goto v_resetjp_4557_; +} +v_resetjp_4557_: +{ +lean_object* v___x_4561_; +if (v_isShared_4559_ == 0) +{ +v___x_4561_ = v___x_4558_; +goto v_reusejp_4560_; +} +else +{ +lean_object* v_reuseFailAlloc_4563_; +v_reuseFailAlloc_4563_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4563_, 0, v_a_4556_); +v___x_4561_ = v_reuseFailAlloc_4563_; +goto v_reusejp_4560_; +} +v_reusejp_4560_: +{ +lean_object* v___x_4562_; +v___x_4562_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4562_, 0, v___x_4561_); +return v___x_4562_; +} +} +} +else +{ +lean_object* v___x_4565_; lean_object* v___x_4566_; +lean_dec_ref(v_x_4554_); +v___x_4565_ = l_IO_Promise_result_x21___redArg(v_a_4553_); +v___x_4566_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4566_, 0, v___x_4565_); +return v___x_4566_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17___boxed(lean_object* v_a_4567_, lean_object* v_x_4568_, lean_object* v___y_4569_){ +_start: +{ +lean_object* v_res_4570_; +v_res_4570_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17(v_a_4567_, v_x_4568_); +lean_dec(v_a_4567_); +return v_res_4570_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18(lean_object* v___f_4571_, lean_object* v___x_4572_, lean_object* v___x_4573_, uint8_t v___x_4574_, lean_object* v_x_4575_){ +_start: +{ +if (lean_obj_tag(v_x_4575_) == 0) +{ +lean_object* v_a_4577_; lean_object* v___x_4579_; uint8_t v_isShared_4580_; uint8_t v_isSharedCheck_4585_; +lean_dec_ref(v___x_4573_); +lean_dec(v___x_4572_); +lean_dec_ref(v___f_4571_); +v_a_4577_ = lean_ctor_get(v_x_4575_, 0); +v_isSharedCheck_4585_ = !lean_is_exclusive(v_x_4575_); +if (v_isSharedCheck_4585_ == 0) +{ +v___x_4579_ = v_x_4575_; +v_isShared_4580_ = v_isSharedCheck_4585_; +goto v_resetjp_4578_; +} +else +{ +lean_inc(v_a_4577_); +lean_dec(v_x_4575_); +v___x_4579_ = lean_box(0); +v_isShared_4580_ = v_isSharedCheck_4585_; +goto v_resetjp_4578_; +} +v_resetjp_4578_: +{ +lean_object* v___x_4582_; +if (v_isShared_4580_ == 0) +{ +v___x_4582_ = v___x_4579_; +goto v_reusejp_4581_; +} +else +{ +lean_object* v_reuseFailAlloc_4584_; +v_reuseFailAlloc_4584_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4584_, 0, v_a_4577_); +v___x_4582_ = v_reuseFailAlloc_4584_; +goto v_reusejp_4581_; +} +v_reusejp_4581_: +{ +lean_object* v___x_4583_; +v___x_4583_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4583_, 0, v___x_4582_); +return v___x_4583_; +} +} +} +else +{ +lean_object* v_a_4586_; lean_object* v___x_4588_; uint8_t v_isShared_4589_; uint8_t v_isSharedCheck_4597_; +v_a_4586_ = lean_ctor_get(v_x_4575_, 0); +v_isSharedCheck_4597_ = !lean_is_exclusive(v_x_4575_); +if (v_isSharedCheck_4597_ == 0) +{ +v___x_4588_ = v_x_4575_; +v_isShared_4589_ = v_isSharedCheck_4597_; +goto v_resetjp_4587_; +} +else +{ +lean_inc(v_a_4586_); +lean_dec(v_x_4575_); +v___x_4588_ = lean_box(0); +v_isShared_4589_ = v_isSharedCheck_4597_; +goto v_resetjp_4587_; +} +v_resetjp_4587_: +{ +lean_object* v___x_4590_; lean_object* v___f_4591_; lean_object* v___x_4593_; +lean_inc(v_a_4586_); +lean_inc(v___x_4572_); +v___x_4590_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop(lean_box(0), lean_box(0), v___f_4571_, v___x_4572_, v_a_4586_, v___x_4573_); +v___f_4591_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__17___boxed), 3, 1); +lean_closure_set(v___f_4591_, 0, v_a_4586_); +if (v_isShared_4589_ == 0) +{ +lean_ctor_set(v___x_4588_, 0, v___x_4590_); +v___x_4593_ = v___x_4588_; +goto v_reusejp_4592_; +} +else +{ +lean_object* v_reuseFailAlloc_4596_; +v_reuseFailAlloc_4596_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4596_, 0, v___x_4590_); +v___x_4593_ = v_reuseFailAlloc_4596_; +goto v_reusejp_4592_; +} +v_reusejp_4592_: +{ +lean_object* v___x_4594_; lean_object* v___x_4595_; +v___x_4594_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4594_, 0, v___x_4593_); +v___x_4595_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4572_, v___x_4574_, v___x_4594_, v___f_4591_); +return v___x_4595_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18___boxed(lean_object* v___f_4598_, lean_object* v___x_4599_, lean_object* v___x_4600_, lean_object* v___x_4601_, lean_object* v_x_4602_, lean_object* v___y_4603_){ +_start: +{ +uint8_t v___x_5988__boxed_4604_; lean_object* v_res_4605_; +v___x_5988__boxed_4604_ = lean_unbox(v___x_4601_); +v_res_4605_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18(v___f_4598_, v___x_4599_, v___x_4600_, v___x_5988__boxed_4604_, v_x_4602_); +return v_res_4605_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19(lean_object* v_config_4606_, lean_object* v_machine_4607_, lean_object* v_a_4608_, lean_object* v___x_4609_, lean_object* v_socket_4610_, lean_object* v_connectionContext_4611_, lean_object* v_h_4612_, lean_object* v_responseBodyInstance_4613_, lean_object* v_handler_4614_, lean_object* v___f_4615_, lean_object* v_inst_4616_, lean_object* v_extensions_4617_, lean_object* v___f_4618_, lean_object* v___f_4619_, lean_object* v___f_4620_, lean_object* v_x_4621_){ +_start: +{ +if (lean_obj_tag(v_x_4621_) == 0) +{ +lean_object* v_a_4623_; lean_object* v___x_4625_; uint8_t v_isShared_4626_; uint8_t v_isSharedCheck_4631_; +lean_dec_ref(v___f_4620_); +lean_dec_ref(v___f_4619_); +lean_dec_ref(v___f_4618_); +lean_dec(v_extensions_4617_); +lean_dec_ref(v_inst_4616_); +lean_dec_ref(v___f_4615_); +lean_dec(v_handler_4614_); +lean_dec_ref(v_responseBodyInstance_4613_); +lean_dec_ref(v_h_4612_); +lean_dec_ref(v_connectionContext_4611_); +lean_dec(v_socket_4610_); +lean_dec(v___x_4609_); +lean_dec_ref(v_a_4608_); +lean_dec_ref(v_machine_4607_); +lean_dec_ref(v_config_4606_); +v_a_4623_ = lean_ctor_get(v_x_4621_, 0); +v_isSharedCheck_4631_ = !lean_is_exclusive(v_x_4621_); +if (v_isSharedCheck_4631_ == 0) +{ +v___x_4625_ = v_x_4621_; +v_isShared_4626_ = v_isSharedCheck_4631_; +goto v_resetjp_4624_; +} +else +{ +lean_inc(v_a_4623_); +lean_dec(v_x_4621_); +v___x_4625_ = lean_box(0); +v_isShared_4626_ = v_isSharedCheck_4631_; +goto v_resetjp_4624_; +} +v_resetjp_4624_: +{ +lean_object* v___x_4628_; +if (v_isShared_4626_ == 0) +{ +v___x_4628_ = v___x_4625_; +goto v_reusejp_4627_; +} +else +{ +lean_object* v_reuseFailAlloc_4630_; +v_reuseFailAlloc_4630_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4630_, 0, v_a_4623_); +v___x_4628_ = v_reuseFailAlloc_4630_; +goto v_reusejp_4627_; +} +v_reusejp_4627_: +{ +lean_object* v___x_4629_; +v___x_4629_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4629_, 0, v___x_4628_); +return v___x_4629_; +} +} +} +else +{ +lean_object* v_a_4632_; lean_object* v___x_4634_; uint8_t v_isShared_4635_; uint8_t v_isSharedCheck_4657_; +v_a_4632_ = lean_ctor_get(v_x_4621_, 0); +v_isSharedCheck_4657_ = !lean_is_exclusive(v_x_4621_); +if (v_isSharedCheck_4657_ == 0) +{ +v___x_4634_ = v_x_4621_; +v_isShared_4635_ = v_isSharedCheck_4657_; +goto v_resetjp_4633_; +} +else +{ +lean_inc(v_a_4632_); +lean_dec(v_x_4621_); +v___x_4634_ = lean_box(0); +v_isShared_4635_ = v_isSharedCheck_4657_; +goto v_resetjp_4633_; +} +v_resetjp_4633_: +{ +lean_object* v_keepAliveTimeout_4636_; lean_object* v___x_4637_; lean_object* v___x_4638_; uint8_t v___x_4639_; lean_object* v___x_4640_; lean_object* v___x_4641_; lean_object* v___x_4642_; lean_object* v___f_4643_; lean_object* v___x_4644_; lean_object* v___f_4645_; lean_object* v___x_4646_; lean_object* v___f_4647_; lean_object* v___x_4648_; lean_object* v___x_4649_; lean_object* v___f_4650_; lean_object* v___x_4652_; +v_keepAliveTimeout_4636_ = lean_ctor_get(v_config_4606_, 5); +lean_inc_n(v_keepAliveTimeout_4636_, 2); +v___x_4637_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4637_, 0, v_keepAliveTimeout_4636_); +v___x_4638_ = lean_box(0); +v___x_4639_ = 0; +v___x_4640_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_4640_, 0, v_machine_4607_); +lean_ctor_set(v___x_4640_, 1, v_a_4608_); +lean_ctor_set(v___x_4640_, 2, v___x_4637_); +lean_ctor_set(v___x_4640_, 3, v_keepAliveTimeout_4636_); +lean_ctor_set(v___x_4640_, 4, v___x_4638_); +lean_ctor_set(v___x_4640_, 5, v_a_4632_); +lean_ctor_set(v___x_4640_, 6, v___x_4638_); +lean_ctor_set(v___x_4640_, 7, v___x_4609_); +lean_ctor_set(v___x_4640_, 8, v___x_4638_); +lean_ctor_set_uint8(v___x_4640_, sizeof(void*)*9, v___x_4639_); +lean_ctor_set_uint8(v___x_4640_, sizeof(void*)*9 + 1, v___x_4639_); +v___x_4641_ = lean_io_promise_new(); +v___x_4642_ = lean_box(v___x_4639_); +lean_inc_ref(v_inst_4616_); +lean_inc_ref(v_config_4606_); +lean_inc_n(v_handler_4614_, 2); +lean_inc_ref(v_responseBodyInstance_4613_); +lean_inc_ref_n(v_h_4612_, 2); +lean_inc_ref_n(v_connectionContext_4611_, 2); +lean_inc(v_socket_4610_); +v___f_4643_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__12___boxed), 11, 9); +lean_closure_set(v___f_4643_, 0, v___x_4642_); +lean_closure_set(v___f_4643_, 1, v_socket_4610_); +lean_closure_set(v___f_4643_, 2, v_connectionContext_4611_); +lean_closure_set(v___f_4643_, 3, v_h_4612_); +lean_closure_set(v___f_4643_, 4, v_responseBodyInstance_4613_); +lean_closure_set(v___f_4643_, 5, v_handler_4614_); +lean_closure_set(v___f_4643_, 6, v_config_4606_); +lean_closure_set(v___f_4643_, 7, v___f_4615_); +lean_closure_set(v___f_4643_, 8, v_inst_4616_); +v___x_4644_ = lean_box(v___x_4639_); +v___f_4645_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__13___boxed), 8, 6); +lean_closure_set(v___f_4645_, 0, v_h_4612_); +lean_closure_set(v___f_4645_, 1, v_handler_4614_); +lean_closure_set(v___f_4645_, 2, v_extensions_4617_); +lean_closure_set(v___f_4645_, 3, v_connectionContext_4611_); +lean_closure_set(v___f_4645_, 4, v___x_4644_); +lean_closure_set(v___f_4645_, 5, v___f_4643_); +v___x_4646_ = lean_box(v___x_4639_); +v___f_4647_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__16___boxed), 14, 11); +lean_closure_set(v___f_4647_, 0, v_h_4612_); +lean_closure_set(v___f_4647_, 1, v_responseBodyInstance_4613_); +lean_closure_set(v___f_4647_, 2, v_handler_4614_); +lean_closure_set(v___f_4647_, 3, v_config_4606_); +lean_closure_set(v___f_4647_, 4, v_connectionContext_4611_); +lean_closure_set(v___f_4647_, 5, v___x_4646_); +lean_closure_set(v___f_4647_, 6, v___f_4645_); +lean_closure_set(v___f_4647_, 7, v_inst_4616_); +lean_closure_set(v___f_4647_, 8, v_socket_4610_); +lean_closure_set(v___f_4647_, 9, v___f_4618_); +lean_closure_set(v___f_4647_, 10, v___f_4619_); +v___x_4648_ = lean_unsigned_to_nat(0u); +v___x_4649_ = lean_box(v___x_4639_); +v___f_4650_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__18___boxed), 6, 4); +lean_closure_set(v___f_4650_, 0, v___f_4647_); +lean_closure_set(v___f_4650_, 1, v___x_4648_); +lean_closure_set(v___f_4650_, 2, v___x_4640_); +lean_closure_set(v___f_4650_, 3, v___x_4649_); +if (v_isShared_4635_ == 0) +{ +lean_ctor_set(v___x_4634_, 0, v___x_4641_); +v___x_4652_ = v___x_4634_; +goto v_reusejp_4651_; +} +else +{ +lean_object* v_reuseFailAlloc_4656_; +v_reuseFailAlloc_4656_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4656_, 0, v___x_4641_); +v___x_4652_ = v_reuseFailAlloc_4656_; +goto v_reusejp_4651_; +} +v_reusejp_4651_: +{ +lean_object* v___x_4653_; lean_object* v___x_4654_; lean_object* v___x_4655_; +v___x_4653_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4653_, 0, v___x_4652_); +v___x_4654_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4648_, v___x_4639_, v___x_4653_, v___f_4650_); +v___x_4655_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4648_, v___x_4639_, v___x_4654_, v___f_4620_); +return v___x_4655_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19___boxed(lean_object** _args){ +lean_object* v_config_4658_ = _args[0]; +lean_object* v_machine_4659_ = _args[1]; +lean_object* v_a_4660_ = _args[2]; +lean_object* v___x_4661_ = _args[3]; +lean_object* v_socket_4662_ = _args[4]; +lean_object* v_connectionContext_4663_ = _args[5]; +lean_object* v_h_4664_ = _args[6]; +lean_object* v_responseBodyInstance_4665_ = _args[7]; +lean_object* v_handler_4666_ = _args[8]; +lean_object* v___f_4667_ = _args[9]; +lean_object* v_inst_4668_ = _args[10]; +lean_object* v_extensions_4669_ = _args[11]; +lean_object* v___f_4670_ = _args[12]; +lean_object* v___f_4671_ = _args[13]; +lean_object* v___f_4672_ = _args[14]; +lean_object* v_x_4673_ = _args[15]; +lean_object* v___y_4674_ = _args[16]; +_start: +{ +lean_object* v_res_4675_; +v_res_4675_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19(v_config_4658_, v_machine_4659_, v_a_4660_, v___x_4661_, v_socket_4662_, v_connectionContext_4663_, v_h_4664_, v_responseBodyInstance_4665_, v_handler_4666_, v___f_4667_, v_inst_4668_, v_extensions_4669_, v___f_4670_, v___f_4671_, v___f_4672_, v_x_4673_); +return v_res_4675_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20(lean_object* v_config_4676_, lean_object* v_machine_4677_, lean_object* v_socket_4678_, lean_object* v_connectionContext_4679_, lean_object* v_h_4680_, lean_object* v_responseBodyInstance_4681_, lean_object* v_handler_4682_, lean_object* v___f_4683_, lean_object* v_inst_4684_, lean_object* v_extensions_4685_, lean_object* v___f_4686_, lean_object* v___f_4687_, lean_object* v___f_4688_, lean_object* v_x_4689_){ +_start: +{ +if (lean_obj_tag(v_x_4689_) == 0) +{ +lean_object* v_a_4691_; lean_object* v___x_4693_; uint8_t v_isShared_4694_; uint8_t v_isSharedCheck_4699_; +lean_dec_ref(v___f_4688_); +lean_dec_ref(v___f_4687_); +lean_dec_ref(v___f_4686_); +lean_dec(v_extensions_4685_); +lean_dec_ref(v_inst_4684_); +lean_dec_ref(v___f_4683_); +lean_dec(v_handler_4682_); +lean_dec_ref(v_responseBodyInstance_4681_); +lean_dec_ref(v_h_4680_); +lean_dec_ref(v_connectionContext_4679_); +lean_dec(v_socket_4678_); +lean_dec_ref(v_machine_4677_); +lean_dec_ref(v_config_4676_); +v_a_4691_ = lean_ctor_get(v_x_4689_, 0); +v_isSharedCheck_4699_ = !lean_is_exclusive(v_x_4689_); +if (v_isSharedCheck_4699_ == 0) +{ +v___x_4693_ = v_x_4689_; +v_isShared_4694_ = v_isSharedCheck_4699_; +goto v_resetjp_4692_; +} +else +{ +lean_inc(v_a_4691_); +lean_dec(v_x_4689_); +v___x_4693_ = lean_box(0); +v_isShared_4694_ = v_isSharedCheck_4699_; +goto v_resetjp_4692_; +} +v_resetjp_4692_: +{ +lean_object* v___x_4696_; +if (v_isShared_4694_ == 0) +{ +v___x_4696_ = v___x_4693_; +goto v_reusejp_4695_; +} +else +{ +lean_object* v_reuseFailAlloc_4698_; +v_reuseFailAlloc_4698_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4698_, 0, v_a_4691_); +v___x_4696_ = v_reuseFailAlloc_4698_; +goto v_reusejp_4695_; +} +v_reusejp_4695_: +{ +lean_object* v___x_4697_; +v___x_4697_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4697_, 0, v___x_4696_); +return v___x_4697_; +} +} +} +else +{ +lean_object* v_a_4700_; lean_object* v___x_4702_; uint8_t v_isShared_4703_; uint8_t v_isSharedCheck_4714_; +v_a_4700_ = lean_ctor_get(v_x_4689_, 0); +v_isSharedCheck_4714_ = !lean_is_exclusive(v_x_4689_); +if (v_isSharedCheck_4714_ == 0) +{ +v___x_4702_ = v_x_4689_; +v_isShared_4703_ = v_isSharedCheck_4714_; +goto v_resetjp_4701_; +} +else +{ +lean_inc(v_a_4700_); +lean_dec(v_x_4689_); +v___x_4702_ = lean_box(0); +v_isShared_4703_ = v_isSharedCheck_4714_; +goto v_resetjp_4701_; +} +v_resetjp_4701_: +{ +lean_object* v___x_4704_; lean_object* v___x_4705_; lean_object* v___f_4706_; lean_object* v___x_4708_; +v___x_4704_ = lean_box(0); +v___x_4705_ = l_Std_CloseableChannel_new___redArg(v___x_4704_); +v___f_4706_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__19___boxed), 17, 15); +lean_closure_set(v___f_4706_, 0, v_config_4676_); +lean_closure_set(v___f_4706_, 1, v_machine_4677_); +lean_closure_set(v___f_4706_, 2, v_a_4700_); +lean_closure_set(v___f_4706_, 3, v___x_4704_); +lean_closure_set(v___f_4706_, 4, v_socket_4678_); +lean_closure_set(v___f_4706_, 5, v_connectionContext_4679_); +lean_closure_set(v___f_4706_, 6, v_h_4680_); +lean_closure_set(v___f_4706_, 7, v_responseBodyInstance_4681_); +lean_closure_set(v___f_4706_, 8, v_handler_4682_); +lean_closure_set(v___f_4706_, 9, v___f_4683_); +lean_closure_set(v___f_4706_, 10, v_inst_4684_); +lean_closure_set(v___f_4706_, 11, v_extensions_4685_); +lean_closure_set(v___f_4706_, 12, v___f_4686_); +lean_closure_set(v___f_4706_, 13, v___f_4687_); +lean_closure_set(v___f_4706_, 14, v___f_4688_); +if (v_isShared_4703_ == 0) +{ +lean_ctor_set(v___x_4702_, 0, v___x_4705_); +v___x_4708_ = v___x_4702_; +goto v_reusejp_4707_; +} +else +{ +lean_object* v_reuseFailAlloc_4713_; +v_reuseFailAlloc_4713_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4713_, 0, v___x_4705_); +v___x_4708_ = v_reuseFailAlloc_4713_; +goto v_reusejp_4707_; +} +v_reusejp_4707_: +{ +lean_object* v___x_4709_; lean_object* v___x_4710_; uint8_t v___x_4711_; lean_object* v___x_4712_; +v___x_4709_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4709_, 0, v___x_4708_); +v___x_4710_ = lean_unsigned_to_nat(0u); +v___x_4711_ = 0; +v___x_4712_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4710_, v___x_4711_, v___x_4709_, v___f_4706_); +return v___x_4712_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20___boxed(lean_object* v_config_4715_, lean_object* v_machine_4716_, lean_object* v_socket_4717_, lean_object* v_connectionContext_4718_, lean_object* v_h_4719_, lean_object* v_responseBodyInstance_4720_, lean_object* v_handler_4721_, lean_object* v___f_4722_, lean_object* v_inst_4723_, lean_object* v_extensions_4724_, lean_object* v___f_4725_, lean_object* v___f_4726_, lean_object* v___f_4727_, lean_object* v_x_4728_, lean_object* v___y_4729_){ +_start: +{ +lean_object* v_res_4730_; +v_res_4730_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20(v_config_4715_, v_machine_4716_, v_socket_4717_, v_connectionContext_4718_, v_h_4719_, v_responseBodyInstance_4720_, v_handler_4721_, v___f_4722_, v_inst_4723_, v_extensions_4724_, v___f_4725_, v___f_4726_, v___f_4727_, v_x_4728_); +return v_res_4730_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg(lean_object* v_inst_4734_, lean_object* v_h_4735_, lean_object* v_connection_4736_, lean_object* v_config_4737_, lean_object* v_connectionContext_4738_, lean_object* v_handler_4739_){ +_start: +{ +lean_object* v_responseBodyInstance_4741_; lean_object* v_onFailure_4742_; lean_object* v___x_4743_; lean_object* v_socket_4744_; lean_object* v_machine_4745_; lean_object* v_extensions_4746_; lean_object* v___f_4747_; lean_object* v___f_4748_; lean_object* v___f_4749_; lean_object* v___f_4750_; lean_object* v___f_4751_; lean_object* v___f_4752_; lean_object* v___f_4753_; lean_object* v___f_4754_; lean_object* v___f_4755_; lean_object* v___x_4756_; uint8_t v___x_4757_; lean_object* v___x_4758_; +v_responseBodyInstance_4741_ = lean_ctor_get(v_h_4735_, 0); +lean_inc_ref_n(v_responseBodyInstance_4741_, 2); +v_onFailure_4742_ = lean_ctor_get(v_h_4735_, 2); +v___x_4743_ = l_Std_Http_Body_mkStream(); +v_socket_4744_ = lean_ctor_get(v_connection_4736_, 0); +lean_inc_n(v_socket_4744_, 2); +v_machine_4745_ = lean_ctor_get(v_connection_4736_, 1); +lean_inc_ref(v_machine_4745_); +v_extensions_4746_ = lean_ctor_get(v_connection_4736_, 2); +lean_inc(v_extensions_4746_); +lean_dec_ref(v_connection_4736_); +v___f_4747_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___redArg___closed__0)); +v___f_4748_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__0)); +v___f_4749_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__1)); +v___f_4750_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___closed__2)); +lean_inc(v_handler_4739_); +lean_inc_ref(v_onFailure_4742_); +v___f_4751_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__3___boxed), 5, 3); +lean_closure_set(v___f_4751_, 0, v_onFailure_4742_); +lean_closure_set(v___f_4751_, 1, v_handler_4739_); +lean_closure_set(v___f_4751_, 2, v___f_4750_); +lean_inc_ref(v_inst_4734_); +v___f_4752_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__4___boxed), 4, 2); +lean_closure_set(v___f_4752_, 0, v_inst_4734_); +lean_closure_set(v___f_4752_, 1, v_socket_4744_); +lean_inc_ref(v___f_4752_); +v___f_4753_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__5___boxed), 3, 1); +lean_closure_set(v___f_4753_, 0, v___f_4752_); +v___f_4754_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__8___boxed), 6, 4); +lean_closure_set(v___f_4754_, 0, v___f_4747_); +lean_closure_set(v___f_4754_, 1, v_responseBodyInstance_4741_); +lean_closure_set(v___f_4754_, 2, v___f_4753_); +lean_closure_set(v___f_4754_, 3, v___f_4752_); +v___f_4755_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___lam__20___boxed), 15, 13); +lean_closure_set(v___f_4755_, 0, v_config_4737_); +lean_closure_set(v___f_4755_, 1, v_machine_4745_); +lean_closure_set(v___f_4755_, 2, v_socket_4744_); +lean_closure_set(v___f_4755_, 3, v_connectionContext_4738_); +lean_closure_set(v___f_4755_, 4, v_h_4735_); +lean_closure_set(v___f_4755_, 5, v_responseBodyInstance_4741_); +lean_closure_set(v___f_4755_, 6, v_handler_4739_); +lean_closure_set(v___f_4755_, 7, v___f_4748_); +lean_closure_set(v___f_4755_, 8, v_inst_4734_); +lean_closure_set(v___f_4755_, 9, v_extensions_4746_); +lean_closure_set(v___f_4755_, 10, v___f_4749_); +lean_closure_set(v___f_4755_, 11, v___f_4751_); +lean_closure_set(v___f_4755_, 12, v___f_4754_); +v___x_4756_ = lean_unsigned_to_nat(0u); +v___x_4757_ = 0; +v___x_4758_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4756_, v___x_4757_, v___x_4743_, v___f_4755_); +return v___x_4758_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg___boxed(lean_object* v_inst_4759_, lean_object* v_h_4760_, lean_object* v_connection_4761_, lean_object* v_config_4762_, lean_object* v_connectionContext_4763_, lean_object* v_handler_4764_, lean_object* v_a_4765_){ +_start: +{ +lean_object* v_res_4766_; +v_res_4766_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg(v_inst_4759_, v_h_4760_, v_connection_4761_, v_config_4762_, v_connectionContext_4763_, v_handler_4764_); +return v_res_4766_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle(lean_object* v_00_u03b1_4767_, lean_object* v_00_u03c3_4768_, lean_object* v_inst_4769_, lean_object* v_h_4770_, lean_object* v_connection_4771_, lean_object* v_config_4772_, lean_object* v_connectionContext_4773_, lean_object* v_handler_4774_){ +_start: +{ +lean_object* v___x_4776_; +v___x_4776_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg(v_inst_4769_, v_h_4770_, v_connection_4771_, v_config_4772_, v_connectionContext_4773_, v_handler_4774_); +return v___x_4776_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___boxed(lean_object* v_00_u03b1_4777_, lean_object* v_00_u03c3_4778_, lean_object* v_inst_4779_, lean_object* v_h_4780_, lean_object* v_connection_4781_, lean_object* v_config_4782_, lean_object* v_connectionContext_4783_, lean_object* v_handler_4784_, lean_object* v_a_4785_){ +_start: +{ +lean_object* v_res_4786_; +v_res_4786_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle(v_00_u03b1_4777_, v_00_u03c3_4778_, v_inst_4779_, v_h_4780_, v_connection_4781_, v_config_4782_, v_connectionContext_4783_, v_handler_4784_); +return v_res_4786_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0(void){ +_start: +{ +uint8_t v___x_4787_; lean_object* v___x_4788_; +v___x_4787_ = 0; +v___x_4788_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v___x_4787_); +return v___x_4788_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1(void){ +_start: +{ +lean_object* v___x_4789_; lean_object* v___x_4790_; +v___x_4789_ = lean_unsigned_to_nat(4096u); +v___x_4790_ = lean_mk_empty_byte_array(v___x_4789_); +return v___x_4790_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2(void){ +_start: +{ +lean_object* v___x_4791_; lean_object* v___x_4792_; +v___x_4791_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__1); +v___x_4792_ = l_ByteArray_mkIterator(v___x_4791_); +return v___x_4792_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3(void){ +_start: +{ +uint8_t v___x_4793_; lean_object* v___x_4794_; lean_object* v___x_4795_; lean_object* v___x_4796_; lean_object* v___x_4797_; lean_object* v___x_4798_; +v___x_4793_ = 0; +v___x_4794_ = lean_unsigned_to_nat(0u); +v___x_4795_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__0); +v___x_4796_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__2); +v___x_4797_ = lean_box(0); +v___x_4798_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_4798_, 0, v___x_4797_); +lean_ctor_set(v___x_4798_, 1, v___x_4796_); +lean_ctor_set(v___x_4798_, 2, v___x_4795_); +lean_ctor_set(v___x_4798_, 3, v___x_4794_); +lean_ctor_set(v___x_4798_, 4, v___x_4794_); +lean_ctor_set(v___x_4798_, 5, v___x_4794_); +lean_ctor_set_uint8(v___x_4798_, sizeof(void*)*6, v___x_4793_); +return v___x_4798_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7(void){ +_start: +{ +uint8_t v___x_4806_; lean_object* v___x_4807_; +v___x_4806_ = 1; +v___x_4807_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v___x_4806_); +return v___x_4807_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8(void){ +_start: +{ +lean_object* v___x_4808_; uint8_t v___x_4809_; lean_object* v___x_4810_; lean_object* v___x_4811_; lean_object* v___x_4812_; lean_object* v___x_4813_; lean_object* v___x_4814_; lean_object* v___x_4815_; +v___x_4808_ = lean_unsigned_to_nat(0u); +v___x_4809_ = 0; +v___x_4810_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__7); +v___x_4811_ = lean_box(0); +v___x_4812_ = lean_box(0); +v___x_4813_ = ((lean_object*)(l_Std_Http_Server_serveConnection___redArg___lam__0___closed__6)); +v___x_4814_ = ((lean_object*)(l_Std_Http_Server_serveConnection___redArg___lam__0___closed__4)); +v___x_4815_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_4815_, 0, v___x_4814_); +lean_ctor_set(v___x_4815_, 1, v___x_4813_); +lean_ctor_set(v___x_4815_, 2, v___x_4812_); +lean_ctor_set(v___x_4815_, 3, v___x_4811_); +lean_ctor_set(v___x_4815_, 4, v___x_4810_); +lean_ctor_set(v___x_4815_, 5, v___x_4808_); +lean_ctor_set_uint8(v___x_4815_, sizeof(void*)*6, v___x_4809_); +lean_ctor_set_uint8(v___x_4815_, sizeof(void*)*6 + 1, v___x_4809_); +lean_ctor_set_uint8(v___x_4815_, sizeof(void*)*6 + 2, v___x_4809_); +return v___x_4815_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0(lean_object* v_config_4816_, lean_object* v_client_4817_, lean_object* v_extensions_4818_, lean_object* v_inst_4819_, lean_object* v_inst_4820_, lean_object* v_handler_4821_, lean_object* v_x_4822_){ +_start: +{ +if (lean_obj_tag(v_x_4822_) == 0) +{ +lean_object* v_a_4824_; lean_object* v___x_4826_; uint8_t v_isShared_4827_; uint8_t v_isSharedCheck_4832_; +lean_dec(v_handler_4821_); +lean_dec_ref(v_inst_4820_); +lean_dec_ref(v_inst_4819_); +lean_dec(v_extensions_4818_); +lean_dec(v_client_4817_); +lean_dec_ref(v_config_4816_); +v_a_4824_ = lean_ctor_get(v_x_4822_, 0); +v_isSharedCheck_4832_ = !lean_is_exclusive(v_x_4822_); +if (v_isSharedCheck_4832_ == 0) +{ +v___x_4826_ = v_x_4822_; +v_isShared_4827_ = v_isSharedCheck_4832_; +goto v_resetjp_4825_; +} +else +{ +lean_inc(v_a_4824_); +lean_dec(v_x_4822_); +v___x_4826_ = lean_box(0); +v_isShared_4827_ = v_isSharedCheck_4832_; +goto v_resetjp_4825_; +} +v_resetjp_4825_: +{ +lean_object* v___x_4829_; +if (v_isShared_4827_ == 0) +{ +v___x_4829_ = v___x_4826_; +goto v_reusejp_4828_; +} +else +{ +lean_object* v_reuseFailAlloc_4831_; +v_reuseFailAlloc_4831_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4831_, 0, v_a_4824_); +v___x_4829_ = v_reuseFailAlloc_4831_; +goto v_reusejp_4828_; +} +v_reusejp_4828_: +{ +lean_object* v___x_4830_; +v___x_4830_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4830_, 0, v___x_4829_); +return v___x_4830_; +} +} +} +else +{ +lean_object* v_a_4833_; uint8_t v___x_4834_; lean_object* v___x_4835_; lean_object* v___x_4836_; lean_object* v___x_4837_; lean_object* v___x_4838_; lean_object* v___x_4839_; uint8_t v_enableKeepAlive_4840_; lean_object* v___x_4841_; lean_object* v___x_4842_; lean_object* v___x_4843_; +v_a_4833_ = lean_ctor_get(v_x_4822_, 0); +lean_inc(v_a_4833_); +lean_dec_ref(v_x_4822_); +v___x_4834_ = 0; +v___x_4835_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__3); +v___x_4836_ = ((lean_object*)(l_Std_Http_Server_serveConnection___redArg___lam__0___closed__5)); +v___x_4837_ = lean_box(0); +v___x_4838_ = lean_obj_once(&l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8, &l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8_once, _init_l_Std_Http_Server_serveConnection___redArg___lam__0___closed__8); +v___x_4839_ = l_Std_Http_Config_toH1Config(v_config_4816_); +v_enableKeepAlive_4840_ = lean_ctor_get_uint8(v___x_4839_, sizeof(void*)*18); +v___x_4841_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_4841_, 0, v___x_4835_); +lean_ctor_set(v___x_4841_, 1, v___x_4838_); +lean_ctor_set(v___x_4841_, 2, v___x_4839_); +lean_ctor_set(v___x_4841_, 3, v___x_4836_); +lean_ctor_set(v___x_4841_, 4, v___x_4837_); +lean_ctor_set(v___x_4841_, 5, v___x_4837_); +lean_ctor_set_uint8(v___x_4841_, sizeof(void*)*6, v_enableKeepAlive_4840_); +lean_ctor_set_uint8(v___x_4841_, sizeof(void*)*6 + 1, v___x_4834_); +lean_ctor_set_uint8(v___x_4841_, sizeof(void*)*6 + 2, v___x_4834_); +v___x_4842_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_4842_, 0, v_client_4817_); +lean_ctor_set(v___x_4842_, 1, v___x_4841_); +lean_ctor_set(v___x_4842_, 2, v_extensions_4818_); +v___x_4843_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___redArg(v_inst_4819_, v_inst_4820_, v___x_4842_, v_config_4816_, v_a_4833_, v_handler_4821_); +return v___x_4843_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___lam__0___boxed(lean_object* v_config_4844_, lean_object* v_client_4845_, lean_object* v_extensions_4846_, lean_object* v_inst_4847_, lean_object* v_inst_4848_, lean_object* v_handler_4849_, lean_object* v_x_4850_, lean_object* v___y_4851_){ +_start: +{ +lean_object* v_res_4852_; +v_res_4852_ = l_Std_Http_Server_serveConnection___redArg___lam__0(v_config_4844_, v_client_4845_, v_extensions_4846_, v_inst_4847_, v_inst_4848_, v_handler_4849_, v_x_4850_); +return v_res_4852_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg(lean_object* v_inst_4853_, lean_object* v_inst_4854_, lean_object* v_client_4855_, lean_object* v_handler_4856_, lean_object* v_config_4857_, lean_object* v_extensions_4858_, lean_object* v_a_4859_){ +_start: +{ +lean_object* v___f_4861_; lean_object* v___x_4862_; lean_object* v___x_4863_; lean_object* v___x_4864_; uint8_t v___x_4865_; lean_object* v___x_4866_; +v___f_4861_ = lean_alloc_closure((void*)(l_Std_Http_Server_serveConnection___redArg___lam__0___boxed), 8, 6); +lean_closure_set(v___f_4861_, 0, v_config_4857_); +lean_closure_set(v___f_4861_, 1, v_client_4855_); +lean_closure_set(v___f_4861_, 2, v_extensions_4858_); +lean_closure_set(v___f_4861_, 3, v_inst_4853_); +lean_closure_set(v___f_4861_, 4, v_inst_4854_); +lean_closure_set(v___f_4861_, 5, v_handler_4856_); +lean_inc_ref(v_a_4859_); +v___x_4862_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4862_, 0, v_a_4859_); +v___x_4863_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4863_, 0, v___x_4862_); +v___x_4864_ = lean_unsigned_to_nat(0u); +v___x_4865_ = 0; +v___x_4866_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4864_, v___x_4865_, v___x_4863_, v___f_4861_); +return v___x_4866_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___redArg___boxed(lean_object* v_inst_4867_, lean_object* v_inst_4868_, lean_object* v_client_4869_, lean_object* v_handler_4870_, lean_object* v_config_4871_, lean_object* v_extensions_4872_, lean_object* v_a_4873_, lean_object* v_a_4874_){ +_start: +{ +lean_object* v_res_4875_; +v_res_4875_ = l_Std_Http_Server_serveConnection___redArg(v_inst_4867_, v_inst_4868_, v_client_4869_, v_handler_4870_, v_config_4871_, v_extensions_4872_, v_a_4873_); +lean_dec_ref(v_a_4873_); +return v_res_4875_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection(lean_object* v_t_4876_, lean_object* v_00_u03c3_4877_, lean_object* v_inst_4878_, lean_object* v_inst_4879_, lean_object* v_client_4880_, lean_object* v_handler_4881_, lean_object* v_config_4882_, lean_object* v_extensions_4883_, lean_object* v_a_4884_){ +_start: +{ +lean_object* v___x_4886_; +v___x_4886_ = l_Std_Http_Server_serveConnection___redArg(v_inst_4878_, v_inst_4879_, v_client_4880_, v_handler_4881_, v_config_4882_, v_extensions_4883_, v_a_4884_); +return v___x_4886_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___boxed(lean_object* v_t_4887_, lean_object* v_00_u03c3_4888_, lean_object* v_inst_4889_, lean_object* v_inst_4890_, lean_object* v_client_4891_, lean_object* v_handler_4892_, lean_object* v_config_4893_, lean_object* v_extensions_4894_, lean_object* v_a_4895_, lean_object* v_a_4896_){ +_start: +{ +lean_object* v_res_4897_; +v_res_4897_ = l_Std_Http_Server_serveConnection(v_t_4887_, v_00_u03c3_4888_, v_inst_4889_, v_inst_4890_, v_client_4891_, v_handler_4892_, v_config_4893_, v_extensions_4894_, v_a_4895_); +lean_dec_ref(v_a_4895_); +return v_res_4897_; +} +} +lean_object* runtime_initialize_Std_Internal_Async_TCP(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Async_ContextAsync(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Transport(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server_Config(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Server_Handler(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Server_Connection(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Internal_Async_TCP(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Async_ContextAsync(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Transport(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Server_Connection(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Internal_Async_TCP(uint8_t builtin); +lean_object* initialize_Std_Internal_Async_ContextAsync(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Transport(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server_Config(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Server_Handler(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Server_Connection(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Internal_Async_TCP(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Async_ContextAsync(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Transport(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Server_Config(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Connection(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Server_Connection(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Server_Connection(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Internal/Http/Server/Handler.c b/stage0/stdlib/Std/Internal/Http/Server/Handler.c new file mode 100644 index 0000000000..8fcc1376a3 --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Server/Handler.c @@ -0,0 +1,350 @@ +// Lean compiler output +// Module: Std.Internal.Http.Server.Handler +// Imports: public import Std.Internal.Async public import Std.Internal.Http.Data public import Std.Internal.Async.ContextAsync +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +extern lean_object* l_Std_Http_Body_instAny; +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__2___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Server_instHandlerStatelessHandler___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_instHandlerStatelessHandler___lam__0___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_instHandlerStatelessHandler___closed__0 = (const lean_object*)&l_Std_Http_Server_instHandlerStatelessHandler___closed__0_value; +static const lean_closure_object l_Std_Http_Server_instHandlerStatelessHandler___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_instHandlerStatelessHandler___lam__1___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_instHandlerStatelessHandler___closed__1 = (const lean_object*)&l_Std_Http_Server_instHandlerStatelessHandler___closed__1_value; +static const lean_closure_object l_Std_Http_Server_instHandlerStatelessHandler___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_instHandlerStatelessHandler___lam__2___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_instHandlerStatelessHandler___closed__2 = (const lean_object*)&l_Std_Http_Server_instHandlerStatelessHandler___closed__2_value; +static lean_once_cell_t l_Std_Http_Server_instHandlerStatelessHandler___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_instHandlerStatelessHandler___closed__3; +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler; +static const lean_ctor_object l_Std_Http_Server_Handler_ofFn___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Server_Handler_ofFn___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__0___closed__0_value; +static const lean_ctor_object l_Std_Http_Server_Handler_ofFn___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__0___closed__0_value)}}; +static const lean_object* l_Std_Http_Server_Handler_ofFn___lam__0___closed__1 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__0___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__0___boxed(lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Server_Handler_ofFn___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(1) << 1) | 1))}}; +static const lean_object* l_Std_Http_Server_Handler_ofFn___lam__1___closed__0 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__1___closed__0_value; +static const lean_ctor_object l_Std_Http_Server_Handler_ofFn___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__1___closed__0_value)}}; +static const lean_object* l_Std_Http_Server_Handler_ofFn___lam__1___closed__1 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__1(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__1___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Server_Handler_ofFn___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_Handler_ofFn___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_Handler_ofFn___closed__0 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___closed__0_value; +static const lean_closure_object l_Std_Http_Server_Handler_ofFn___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Server_Handler_ofFn___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Server_Handler_ofFn___closed__1 = (const lean_object*)&l_Std_Http_Server_Handler_ofFn___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFns(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_withFailure(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_withContinue(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__0(lean_object* v_self_1_, lean_object* v_request_2_, lean_object* v___y_3_){ +_start: +{ +lean_object* v_onRequest_5_; lean_object* v___x_6_; +v_onRequest_5_ = lean_ctor_get(v_self_1_, 0); +lean_inc_ref(v_onRequest_5_); +lean_dec_ref(v_self_1_); +lean_inc_ref(v___y_3_); +v___x_6_ = lean_apply_3(v_onRequest_5_, v_request_2_, v___y_3_, lean_box(0)); +return v___x_6_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__0___boxed(lean_object* v_self_7_, lean_object* v_request_8_, lean_object* v___y_9_, lean_object* v___y_10_){ +_start: +{ +lean_object* v_res_11_; +v_res_11_ = l_Std_Http_Server_instHandlerStatelessHandler___lam__0(v_self_7_, v_request_8_, v___y_9_); +lean_dec_ref(v___y_9_); +return v_res_11_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__1(lean_object* v_self_12_, lean_object* v_error_13_){ +_start: +{ +lean_object* v_onFailure_15_; lean_object* v___x_16_; +v_onFailure_15_ = lean_ctor_get(v_self_12_, 1); +lean_inc_ref(v_onFailure_15_); +lean_dec_ref(v_self_12_); +v___x_16_ = lean_apply_2(v_onFailure_15_, v_error_13_, lean_box(0)); +return v___x_16_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__1___boxed(lean_object* v_self_17_, lean_object* v_error_18_, lean_object* v___y_19_){ +_start: +{ +lean_object* v_res_20_; +v_res_20_ = l_Std_Http_Server_instHandlerStatelessHandler___lam__1(v_self_17_, v_error_18_); +return v_res_20_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__2(lean_object* v_self_21_, lean_object* v_request_22_){ +_start: +{ +lean_object* v_onContinue_24_; lean_object* v___x_25_; +v_onContinue_24_ = lean_ctor_get(v_self_21_, 2); +lean_inc_ref(v_onContinue_24_); +lean_dec_ref(v_self_21_); +v___x_25_ = lean_apply_2(v_onContinue_24_, v_request_22_, lean_box(0)); +return v___x_25_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_instHandlerStatelessHandler___lam__2___boxed(lean_object* v_self_26_, lean_object* v_request_27_, lean_object* v___y_28_){ +_start: +{ +lean_object* v_res_29_; +v_res_29_ = l_Std_Http_Server_instHandlerStatelessHandler___lam__2(v_self_26_, v_request_27_); +return v_res_29_; +} +} +static lean_object* _init_l_Std_Http_Server_instHandlerStatelessHandler___closed__3(void){ +_start: +{ +lean_object* v___f_33_; lean_object* v___f_34_; lean_object* v___f_35_; lean_object* v___x_36_; lean_object* v___x_37_; +v___f_33_ = ((lean_object*)(l_Std_Http_Server_instHandlerStatelessHandler___closed__2)); +v___f_34_ = ((lean_object*)(l_Std_Http_Server_instHandlerStatelessHandler___closed__1)); +v___f_35_ = ((lean_object*)(l_Std_Http_Server_instHandlerStatelessHandler___closed__0)); +v___x_36_ = l_Std_Http_Body_instAny; +v___x_37_ = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(v___x_37_, 0, v___x_36_); +lean_ctor_set(v___x_37_, 1, v___f_35_); +lean_ctor_set(v___x_37_, 2, v___f_34_); +lean_ctor_set(v___x_37_, 3, v___f_33_); +return v___x_37_; +} +} +static lean_object* _init_l_Std_Http_Server_instHandlerStatelessHandler(void){ +_start: +{ +lean_object* v___x_38_; +v___x_38_ = lean_obj_once(&l_Std_Http_Server_instHandlerStatelessHandler___closed__3, &l_Std_Http_Server_instHandlerStatelessHandler___closed__3_once, _init_l_Std_Http_Server_instHandlerStatelessHandler___closed__3); +return v___x_38_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__0(lean_object* v_x_43_){ +_start: +{ +lean_object* v___x_45_; +v___x_45_ = ((lean_object*)(l_Std_Http_Server_Handler_ofFn___lam__0___closed__1)); +return v___x_45_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__0___boxed(lean_object* v_x_46_, lean_object* v___y_47_){ +_start: +{ +lean_object* v_res_48_; +v_res_48_ = l_Std_Http_Server_Handler_ofFn___lam__0(v_x_46_); +lean_dec(v_x_46_); +return v_res_48_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__1(lean_object* v_x_54_){ +_start: +{ +lean_object* v___x_56_; +v___x_56_ = ((lean_object*)(l_Std_Http_Server_Handler_ofFn___lam__1___closed__1)); +return v___x_56_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn___lam__1___boxed(lean_object* v_x_57_, lean_object* v___y_58_){ +_start: +{ +lean_object* v_res_59_; +v_res_59_ = l_Std_Http_Server_Handler_ofFn___lam__1(v_x_57_); +lean_dec_ref(v_x_57_); +return v_res_59_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFn(lean_object* v_f_62_){ +_start: +{ +lean_object* v___f_63_; lean_object* v___f_64_; lean_object* v___x_65_; +v___f_63_ = ((lean_object*)(l_Std_Http_Server_Handler_ofFn___closed__0)); +v___f_64_ = ((lean_object*)(l_Std_Http_Server_Handler_ofFn___closed__1)); +v___x_65_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_65_, 0, v_f_62_); +lean_ctor_set(v___x_65_, 1, v___f_63_); +lean_ctor_set(v___x_65_, 2, v___f_64_); +return v___x_65_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_ofFns(lean_object* v_onRequest_66_, lean_object* v_onFailure_67_, lean_object* v_onContinue_68_){ +_start: +{ +lean_object* v___x_69_; +v___x_69_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_69_, 0, v_onRequest_66_); +lean_ctor_set(v___x_69_, 1, v_onFailure_67_); +lean_ctor_set(v___x_69_, 2, v_onContinue_68_); +return v___x_69_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_withFailure(lean_object* v_handler_70_, lean_object* v_onFailure_71_){ +_start: +{ +lean_object* v_onRequest_72_; lean_object* v_onContinue_73_; lean_object* v___x_75_; uint8_t v_isShared_76_; uint8_t v_isSharedCheck_80_; +v_onRequest_72_ = lean_ctor_get(v_handler_70_, 0); +v_onContinue_73_ = lean_ctor_get(v_handler_70_, 2); +v_isSharedCheck_80_ = !lean_is_exclusive(v_handler_70_); +if (v_isSharedCheck_80_ == 0) +{ +lean_object* v_unused_81_; +v_unused_81_ = lean_ctor_get(v_handler_70_, 1); +lean_dec(v_unused_81_); +v___x_75_ = v_handler_70_; +v_isShared_76_ = v_isSharedCheck_80_; +goto v_resetjp_74_; +} +else +{ +lean_inc(v_onContinue_73_); +lean_inc(v_onRequest_72_); +lean_dec(v_handler_70_); +v___x_75_ = lean_box(0); +v_isShared_76_ = v_isSharedCheck_80_; +goto v_resetjp_74_; +} +v_resetjp_74_: +{ +lean_object* v___x_78_; +if (v_isShared_76_ == 0) +{ +lean_ctor_set(v___x_75_, 1, v_onFailure_71_); +v___x_78_ = v___x_75_; +goto v_reusejp_77_; +} +else +{ +lean_object* v_reuseFailAlloc_79_; +v_reuseFailAlloc_79_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_79_, 0, v_onRequest_72_); +lean_ctor_set(v_reuseFailAlloc_79_, 1, v_onFailure_71_); +lean_ctor_set(v_reuseFailAlloc_79_, 2, v_onContinue_73_); +v___x_78_ = v_reuseFailAlloc_79_; +goto v_reusejp_77_; +} +v_reusejp_77_: +{ +return v___x_78_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_Handler_withContinue(lean_object* v_handler_82_, lean_object* v_onContinue_83_){ +_start: +{ +lean_object* v_onRequest_84_; lean_object* v_onFailure_85_; lean_object* v___x_87_; uint8_t v_isShared_88_; uint8_t v_isSharedCheck_92_; +v_onRequest_84_ = lean_ctor_get(v_handler_82_, 0); +v_onFailure_85_ = lean_ctor_get(v_handler_82_, 1); +v_isSharedCheck_92_ = !lean_is_exclusive(v_handler_82_); +if (v_isSharedCheck_92_ == 0) +{ +lean_object* v_unused_93_; +v_unused_93_ = lean_ctor_get(v_handler_82_, 2); +lean_dec(v_unused_93_); +v___x_87_ = v_handler_82_; +v_isShared_88_ = v_isSharedCheck_92_; +goto v_resetjp_86_; +} +else +{ +lean_inc(v_onFailure_85_); +lean_inc(v_onRequest_84_); +lean_dec(v_handler_82_); +v___x_87_ = lean_box(0); +v_isShared_88_ = v_isSharedCheck_92_; +goto v_resetjp_86_; +} +v_resetjp_86_: +{ +lean_object* v___x_90_; +if (v_isShared_88_ == 0) +{ +lean_ctor_set(v___x_87_, 2, v_onContinue_83_); +v___x_90_ = v___x_87_; +goto v_reusejp_89_; +} +else +{ +lean_object* v_reuseFailAlloc_91_; +v_reuseFailAlloc_91_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_91_, 0, v_onRequest_84_); +lean_ctor_set(v_reuseFailAlloc_91_, 1, v_onFailure_85_); +lean_ctor_set(v_reuseFailAlloc_91_, 2, v_onContinue_83_); +v___x_90_ = v_reuseFailAlloc_91_; +goto v_reusejp_89_; +} +v_reusejp_89_: +{ +return v___x_90_; +} +} +} +} +lean_object* runtime_initialize_Std_Internal_Async(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Http_Data(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Async_ContextAsync(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Server_Handler(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Data(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Async_ContextAsync(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Std_Http_Server_instHandlerStatelessHandler = _init_l_Std_Http_Server_instHandlerStatelessHandler(); +lean_mark_persistent(l_Std_Http_Server_instHandlerStatelessHandler); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Server_Handler(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Internal_Async(uint8_t builtin); +lean_object* initialize_Std_Internal_Http_Data(uint8_t builtin); +lean_object* initialize_Std_Internal_Async_ContextAsync(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Server_Handler(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Http_Data(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Async_ContextAsync(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Server_Handler(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Server_Handler(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Internal/Http/Test/Helpers.c b/stage0/stdlib/Std/Internal/Http/Test/Helpers.c new file mode 100644 index 0000000000..e0827c06d1 --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Test/Helpers.c @@ -0,0 +1,19162 @@ +// Lean compiler output +// Module: Std.Internal.Http.Test.Helpers +// Imports: public import Std.Internal.Http.Server public import Std.Internal.Async public import Std.Internal.Async.Timer import Init.Data.String.Legacy +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +uint8_t lean_string_validate_utf8(lean_object*); +lean_object* lean_string_from_utf8_unchecked(lean_object*); +extern lean_object* l_instInhabitedError; +lean_object* l_Std_Internal_IO_Async_Selectable_one___redArg(lean_object*); +lean_object* l_Std_Channel_recvSelector___redArg(lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Stream_interestSelector(lean_object*); +lean_object* l_Std_CancellationToken_getCancellationReason(lean_object*); +lean_object* l_Std_CancellationToken_selector(lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_Http_Internal_Mock_Server_getRecvChan(lean_object*); +lean_object* l_Std_CloseableChannel_recvSelector___redArg(lean_object*); +lean_object* lean_int_neg(lean_object*); +lean_object* lean_nat_to_int(lean_object*); +lean_object* lean_int_mul(lean_object*, lean_object*); +lean_object* lean_int_add(lean_object*, lean_object*); +lean_object* l_Std_Time_Duration_ofNanoseconds(lean_object*); +lean_object* lean_int_ediv(lean_object*, lean_object*); +lean_object* l_Std_Internal_IO_Async_Selector_sleep(lean_object*); +lean_object* lean_get_current_time(); +lean_object* l_Std_Http_Body_Stream_close(lean_object*); +lean_object* lean_io_basemutex_unlock(lean_object*); +lean_object* lean_io_basemutex_lock(lean_object*); +lean_object* l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Http_Protocol_H1_Machine_canContinue(uint8_t, lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +uint64_t lean_string_hash(lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +uint64_t lean_uint64_xor(uint64_t, uint64_t); +size_t lean_uint64_to_usize(uint64_t); +size_t lean_usize_of_nat(lean_object*); +size_t lean_usize_sub(size_t, size_t); +size_t lean_usize_land(size_t, size_t); +lean_object* lean_array_uget_borrowed(lean_object*, size_t); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); +lean_object* lean_mk_empty_byte_array(lean_object*); +lean_object* lean_io_promise_new(); +lean_object* lean_io_promise_resolve(lean_object*, lean_object*); +lean_object* l_BaseIO_chainTask___redArg(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Http_Body_Stream_hasInterest(lean_object*); +lean_object* lean_st_ref_get(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* lean_byte_array_size(lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_ByteArray_extract(lean_object*, lean_object*, lean_object*); +lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_ByteArray_mkIterator(lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Array_append___redArg(lean_object*, lean_object*); +uint8_t lean_usize_dec_eq(size_t, size_t); +size_t lean_usize_add(size_t, size_t); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(uint8_t, lean_object*); +lean_object* l_Std_Http_Body_Stream_send(lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Http_Protocol_H1_Machine_closeWithError(lean_object*, lean_object*); +lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Message_Head_setHeaders(uint8_t, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_instEncodeV11Head(uint8_t); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_Http_Header_Name_transferEncoding; +lean_object* l_String_decEq___boxed(lean_object*, lean_object*); +lean_object* l_String_hash___boxed(lean_object*); +uint8_t l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Std_Http_Header_Name_contentLength; +lean_object* l_Std_Http_Protocol_H1_Message_Head_getSize(uint8_t, lean_object*, uint8_t); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(uint8_t, lean_object*, lean_object*, uint8_t); +lean_object* l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(uint8_t, lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_Message_Head_headers(uint8_t, lean_object*); +uint16_t l_Std_Http_Status_toCode(lean_object*); +uint8_t lean_uint16_dec_le(uint16_t, uint16_t); +uint8_t lean_uint16_dec_lt(uint16_t, uint16_t); +uint8_t l_Std_Http_Protocol_H1_Writer_instBEqState_beq(lean_object*, lean_object*); +lean_object* lean_io_as_task(lean_object*, lean_object*); +lean_object* lean_task_pure(lean_object*); +lean_object* l_Std_Channel_send___redArg(lean_object*, lean_object*); +lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_Http_Protocol_H1_Machine_step(uint8_t, lean_object*); +size_t lean_array_size(lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* lean_st_ref_take(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*); +lean_object* l_Std_CloseableChannel_new___redArg(lean_object*); +lean_object* l_Std_Http_Body_mkStream(); +lean_object* l_Std_Http_Internal_Mock_Server_getSendChan(lean_object*); +lean_object* l_Std_Http_Internal_Mock_sendAll(lean_object*, lean_object*); +lean_object* l_IO_Promise_result_x21___redArg(lean_object*); +extern lean_object* l_Std_Http_Body_instAny; +extern lean_object* l_Std_Http_Response_ok; +lean_object* l_Std_Http_Response_Builder_text(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Full_recv___boxed(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Full_close___boxed(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Full_isClosed___boxed(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Full_recvSelector(lean_object*); +lean_object* l_Std_Http_Body_Full_tryRecv___boxed(lean_object*, lean_object*); +lean_object* l_Std_Http_Body_Full_getKnownSize___boxed(lean_object*, lean_object*); +lean_object* l_Std_Http_Protocol_H1_instEmptyCollectionHead(uint8_t); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Std_Http_Config_toH1Config(lean_object*); +lean_object* l_Std_Http_Internal_Mock_Server_close(lean_object*); +lean_object* l_Std_CancellationContext_cancel(lean_object*, lean_object*); +extern lean_object* l_ByteArray_empty; +lean_object* l_Std_Http_Internal_Mock_Client_recv_x3f(lean_object*, lean_object*); +lean_object* l_Std_CancellationContext_new(); +extern lean_object* l_Std_Http_Extensions_empty; +lean_object* l_Std_Http_Internal_Mock_Client_getSendChan(lean_object*); +lean_object* l_Std_CloseableChannel_close___redArg(lean_object*); +lean_object* l_Std_Http_Internal_Mock_Client_send(lean_object*, lean_object*); +lean_object* lean_task_get_own(lean_object*); +lean_object* l_Std_Http_Internal_Mock_new(); +lean_object* lean_string_to_utf8(lean_object*); +lean_object* lean_io_error_to_string(lean_object*); +lean_object* lean_mk_io_user_error(lean_object*); +lean_object* l_Std_Http_Body_Stream_recvSelector(lean_object*); +uint64_t lean_uint64_of_nat(lean_object*); +uint8_t lean_uint64_dec_lt(uint64_t, uint64_t); +lean_object* lean_uint64_to_nat(uint64_t); +lean_object* l_Nat_reprFast(lean_object*); +lean_object* lean_array_to_list(lean_object*); +lean_object* l_List_reverse___redArg(lean_object*); +lean_object* l_Std_Http_URI_Query_formatQueryParam(lean_object*, lean_object*); +lean_object* l_String_intercalate(lean_object*, lean_object*); +lean_object* l_Std_Http_URI_EncodedFragment_encode(lean_object*); +lean_object* lean_uint16_to_nat(uint16_t); +lean_object* lean_uv_ntop_v4(lean_object*); +lean_object* lean_uv_ntop_v6(lean_object*); +lean_object* l_Rat_ofInt(lean_object*); +lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*); +uint8_t lean_string_get_byte_fast(lean_object*, lean_object*); +uint8_t lean_uint8_dec_eq(uint8_t, uint8_t); +lean_object* lean_array_fget_borrowed(lean_object*, lean_object*); +lean_object* l_String_Slice_posGE___redArg(lean_object*, lean_object*); +lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_String_Slice_Pattern_ForwardSliceSearcher_buildTable(lean_object*); +lean_object* l_String_quote(lean_object*); +lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_panic_fn_borrowed(lean_object*, lean_object*); +lean_object* lean_io_cancel(lean_object*); +uint8_t lean_io_get_task_state(lean_object*); +uint8_t l_IO_instDecidableEqTaskState(uint8_t, uint8_t); +lean_object* l_IO_sleep(uint32_t); +lean_object* lean_io_wait(lean_object*); +lean_object* l_Nat_toDigits(lean_object*, lean_object*); +lean_object* lean_string_mk(lean_object*); +uint8_t lean_string_memcmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_String_splitOnAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthTR___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__0_value; +static const lean_ctor_object l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__0_value)}}; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(1) << 1) | 1))}}; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__0_value; +static const lean_ctor_object l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__0_value)}}; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_Test_instHandlerTestHandler___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0___boxed, .m_arity = 4, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_Test_instHandlerTestHandler___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___closed__1_value; +static const lean_closure_object l_Std_Http_Internal_Test_instHandlerTestHandler___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___closed__2 = (const lean_object*)&l_Std_Http_Internal_Test_instHandlerTestHandler___closed__2_value; +static lean_once_cell_t l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler; +LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Http_Internal_Test_defaultConfig_spec__1(lean_object*); +static lean_once_cell_t l_Std_Http_Internal_Test_defaultConfig___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__0; +static lean_once_cell_t l_Std_Http_Internal_Test_defaultConfig___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__1; +static lean_once_cell_t l_Std_Http_Internal_Test_defaultConfig___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__2; +static const lean_string_object l_Std_Http_Internal_Test_defaultConfig___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 13, .m_capacity = 13, .m_length = 12, .m_data = "LeanHTTP/1.1"}; +static const lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__3 = (const lean_object*)&l_Std_Http_Internal_Test_defaultConfig___closed__3_value; +static const lean_ctor_object l_Std_Http_Internal_Test_defaultConfig___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Test_defaultConfig___closed__3_value)}}; +static const lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__4 = (const lean_object*)&l_Std_Http_Internal_Test_defaultConfig___closed__4_value; +static lean_once_cell_t l_Std_Http_Internal_Test_defaultConfig___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_defaultConfig___closed__5; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_defaultConfig; +LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Http_Internal_Test_defaultConfig_spec__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__1(lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__1, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__3(lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__3, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___closed__0 = (const lean_object*)&l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6(uint8_t, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, 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 const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___boxed(lean_object**); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, uint8_t, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14(uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_array_object l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__0 = (const lean_object*)&l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__0_value; +static lean_once_cell_t l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1; +static lean_once_cell_t l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2; +static lean_once_cell_t l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3; +LEAN_EXPORT lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9(lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0; +static const lean_array_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_String_decEq___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_String_hash___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__3_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 2}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 7}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__1_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(3) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___closed__0_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4(uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(6) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(5) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__1_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(4) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__2_value; +static const lean_ctor_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__2_value)}}; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__3_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__1_value)} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__3_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__4 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__4_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__5 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__5_value; +static lean_once_cell_t l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__7 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__7_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__8 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__8_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__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___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9___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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0(); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2(uint8_t); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__3(lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__3, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8(lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__0_value; +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__0_value)} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1_value; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0(size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___closed__0_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__0 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__1 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8(uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1___boxed(lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__0 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__1 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__2 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__2_value; +static const lean_closure_object l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*2, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8___boxed, .m_arity = 4, .m_num_fixed = 2, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__2_value)} }; +static const lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__3 = (const lean_object*)&l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__3_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11___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_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0; +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1; +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2; +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3; +static const lean_array_object l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__4 = (const lean_object*)&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__4_value; +static const lean_array_object l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_array_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 246}, .m_size = 0, .m_capacity = 0, .m_data = {}}; +static const lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__5 = (const lean_object*)&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__5_value; +static const lean_ctor_object l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__5_value),((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__6 = (const lean_object*)&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__6_value; +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7; +static lean_once_cell_t l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8; +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__7(lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__7, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Int_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__3(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 44, .m_capacity = 44, .m_length = 43, .m_data = "trying to send on an already closed channel"}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__1_value; +static const lean_string_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 42, .m_capacity = 42, .m_length = 41, .m_data = "trying to close an already closed channel"}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__2_value; +static const lean_ctor_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__2_value)}}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__3 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__3_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "'"}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__0_value; +static const lean_string_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 19, .m_capacity = 19, .m_length = 18, .m_data = "' timed out after "}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__1_value; +static const lean_string_object l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "ms"}; +static const lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_runGroup___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "["}; +static const lean_object* l_Std_Http_Internal_Test_runGroup___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_runGroup___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_runGroup___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "]\n"}; +static const lean_object* l_Std_Http_Internal_Test_runGroup___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_runGroup___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_runGroup(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_runGroup___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_check___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "] "}; +static const lean_object* l_Std_Http_Internal_Test_check___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_check___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_check___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkClose(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkClose___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkTimed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkTimed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 1, .m_capacity = 1, .m_length = 0, .m_data = ""}; +static const lean_object* l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0 = (const lean_object*)&l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0_value; +LEAN_EXPORT lean_object* l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_assertStatus___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "expected status "}; +static const lean_object* l_Std_Http_Internal_Test_assertStatus___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_assertStatus___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_assertStatus___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 8, .m_capacity = 8, .m_length = 7, .m_data = ", got:\n"}; +static const lean_object* l_Std_Http_Internal_Test_assertStatus___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_assertStatus___closed__1_value; +static const lean_string_object l_Std_Http_Internal_Test_assertStatus___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 23, .m_capacity = 23, .m_length = 22, .m_data = "Init.Data.String.Basic"}; +static const lean_object* l_Std_Http_Internal_Test_assertStatus___closed__2 = (const lean_object*)&l_Std_Http_Internal_Test_assertStatus___closed__2_value; +static const lean_string_object l_Std_Http_Internal_Test_assertStatus___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 17, .m_capacity = 17, .m_length = 16, .m_data = "String.fromUTF8!"}; +static const lean_object* l_Std_Http_Internal_Test_assertStatus___closed__3 = (const lean_object*)&l_Std_Http_Internal_Test_assertStatus___closed__3_value; +static const lean_string_object l_Std_Http_Internal_Test_assertStatus___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 21, .m_capacity = 21, .m_length = 20, .m_data = "invalid UTF-8 string"}; +static const lean_object* l_Std_Http_Internal_Test_assertStatus___closed__4 = (const lean_object*)&l_Std_Http_Internal_Test_assertStatus___closed__4_value; +static lean_once_cell_t l_Std_Http_Internal_Test_assertStatus___closed__5_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Http_Internal_Test_assertStatus___closed__5; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertStatus(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertStatus___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_assertExact___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 11, .m_capacity = 11, .m_length = 10, .m_data = "expected:\n"}; +static const lean_object* l_Std_Http_Internal_Test_assertExact___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_assertExact___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_assertExact___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = "\ngot:\n"}; +static const lean_object* l_Std_Http_Internal_Test_assertExact___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_assertExact___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertExact(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertExact___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___closed__0 = (const lean_object*)&l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___closed__0_value; +LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___boxed(lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_assertContains___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 21, .m_capacity = 21, .m_length = 20, .m_data = "expected to contain "}; +static const lean_object* l_Std_Http_Internal_Test_assertContains___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_assertContains___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertContains(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertContains___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_assertAbsent___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 25, .m_capacity = 25, .m_length = 24, .m_data = "expected NOT to contain "}; +static const lean_object* l_Std_Http_Internal_Test_assertAbsent___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_assertAbsent___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertAbsent(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertAbsent___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_assertResponseCount___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "HTTP/1.1 "}; +static const lean_object* l_Std_Http_Internal_Test_assertResponseCount___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_assertResponseCount___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_assertResponseCount___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 10, .m_capacity = 10, .m_length = 9, .m_data = "expected "}; +static const lean_object* l_Std_Http_Internal_Test_assertResponseCount___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_assertResponseCount___closed__1_value; +static const lean_string_object l_Std_Http_Internal_Test_assertResponseCount___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 26, .m_capacity = 26, .m_length = 25, .m_data = " HTTP/1.1 responses, got "}; +static const lean_object* l_Std_Http_Internal_Test_assertResponseCount___closed__2 = (const lean_object*)&l_Std_Http_Internal_Test_assertResponseCount___closed__2_value; +static const lean_string_object l_Std_Http_Internal_Test_assertResponseCount___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = ":\n"}; +static const lean_object* l_Std_Http_Internal_Test_assertResponseCount___closed__3 = (const lean_object*)&l_Std_Http_Internal_Test_assertResponseCount___closed__3_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertResponseCount(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertResponseCount___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_r400___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 89, .m_capacity = 89, .m_length = 88, .m_data = "HTTP/1.1 400 Bad Request\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r400___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r400___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r400 = (const lean_object*)&l_Std_Http_Internal_Test_r400___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_r408___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 93, .m_capacity = 93, .m_length = 92, .m_data = "HTTP/1.1 408 Request Timeout\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r408___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r408___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r408 = (const lean_object*)&l_Std_Http_Internal_Test_r408___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_r413___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 95, .m_capacity = 95, .m_length = 94, .m_data = "HTTP/1.1 413 Content Too Large\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r413___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r413___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r413 = (const lean_object*)&l_Std_Http_Internal_Test_r413___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_r417___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 96, .m_capacity = 96, .m_length = 95, .m_data = "HTTP/1.1 417 Expectation Failed\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r417___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r417___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r417 = (const lean_object*)&l_Std_Http_Internal_Test_r417___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_r431___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 109, .m_capacity = 109, .m_length = 108, .m_data = "HTTP/1.1 431 Request Header Fields Too Large\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r431___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r431___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r431 = (const lean_object*)&l_Std_Http_Internal_Test_r431___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_r505___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 104, .m_capacity = 104, .m_length = 103, .m_data = "HTTP/1.1 505 HTTP Version Not Supported\r\nServer: LeanHTTP/1.1\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_r505___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_r505___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_r505 = (const lean_object*)&l_Std_Http_Internal_Test_r505___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___closed__0 = (const lean_object*)&l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___lam__0___boxed(lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_okHandler___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "ok"}; +static const lean_object* l_Std_Http_Internal_Test_okHandler___redArg___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_okHandler___redArg___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_Test_okHandler___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Test_okHandler___redArg___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Test_okHandler___redArg___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_okHandler___redArg___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg(); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2___boxed(lean_object*, lean_object*); +static const lean_ctor_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__0_value; +static const lean_ctor_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__0_value)}}; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__0_value; +static const lean_closure_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__1_value; +static const lean_closure_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__2 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__2_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 31, .m_capacity = 31, .m_length = 30, .m_data = "body exceeded maximum size of "}; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__0 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__0_value; +static const lean_string_object l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = " bytes"}; +static const lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__1 = (const lean_object*)&l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__1_value; +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 23, .m_capacity = 23, .m_length = 22, .m_data = "invalid UTF-8 encoding"}; +static const lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__0_value; +static const lean_ctor_object l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__0_value)}}; +static const lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__1 = (const lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__1_value; +static const lean_ctor_object l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__1_value)}}; +static const lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__2 = (const lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__2_value; +static const lean_ctor_object l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__2_value)}}; +static const lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__3 = (const lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__3_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___closed__0 = (const lean_object*)&l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_Test_echoHandler___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Test_echoHandler___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Internal_Test_okHandler___redArg___closed__1_value)} }; +static const lean_object* l_Std_Http_Internal_Test_echoHandler___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_echoHandler___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Std_Http_Internal_Test_uriHandler_spec__0(lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "\?"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "&"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__1_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "/"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__2 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__2_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ":"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__3 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__3_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "#"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__4 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__4_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__5_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "//"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__5 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__5_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__6_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "]"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__6 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__6_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__7_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "@"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__7 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__7_value; +static const lean_string_object l_Std_Http_Internal_Test_uriHandler___redArg___closed__8_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "*"}; +static const lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___closed__8 = (const lean_object*)&l_Std_Http_Internal_Test_uriHandler___redArg___closed__8_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_mkGet___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 5, .m_capacity = 5, .m_length = 4, .m_data = "GET "}; +static const lean_object* l_Std_Http_Internal_Test_mkGet___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_mkGet___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_mkGet___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 31, .m_capacity = 31, .m_length = 30, .m_data = " HTTP/1.1\r\nHost: example.com\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_mkGet___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_mkGet___closed__1_value; +static const lean_string_object l_Std_Http_Internal_Test_mkGet___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_mkGet___closed__2 = (const lean_object*)&l_Std_Http_Internal_Test_mkGet___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGet(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGet___boxed(lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_mkGetClose___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 20, .m_capacity = 20, .m_length = 19, .m_data = "Connection: close\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_mkGetClose___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_mkGetClose___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGetClose(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGetClose___boxed(lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_mkPost___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "POST "}; +static const lean_object* l_Std_Http_Internal_Test_mkPost___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_mkPost___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Test_mkPost___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 47, .m_capacity = 47, .m_length = 46, .m_data = " HTTP/1.1\r\nHost: example.com\r\nContent-Length: "}; +static const lean_object* l_Std_Http_Internal_Test_mkPost___closed__1 = (const lean_object*)&l_Std_Http_Internal_Test_mkPost___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkPost(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkPost___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_mkChunked___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 59, .m_capacity = 59, .m_length = 58, .m_data = " HTTP/1.1\r\nHost: example.com\r\nTransfer-Encoding: chunked\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_mkChunked___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_mkChunked___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkChunked(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkChunked___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_chunk(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_chunk___boxed(lean_object*); +static const lean_string_object l_Std_Http_Internal_Test_chunkEnd___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "0\r\n\r\n"}; +static const lean_object* l_Std_Http_Internal_Test_chunkEnd___closed__0 = (const lean_object*)&l_Std_Http_Internal_Test_chunkEnd___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_Test_chunkEnd = (const lean_object*)&l_Std_Http_Internal_Test_chunkEnd___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0(lean_object* v_handler_1_, lean_object* v_request_2_, lean_object* v___y_3_){ +_start: +{ +lean_object* v___x_5_; +lean_inc_ref(v___y_3_); +v___x_5_ = lean_apply_3(v_handler_1_, v_request_2_, v___y_3_, lean_box(0)); +return v___x_5_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0___boxed(lean_object* v_handler_6_, lean_object* v_request_7_, lean_object* v___y_8_, lean_object* v___y_9_){ +_start: +{ +lean_object* v_res_10_; +v_res_10_ = l_Std_Http_Internal_Test_instHandlerTestHandler___lam__0(v_handler_6_, v_request_7_, v___y_8_); +lean_dec_ref(v___y_8_); +return v_res_10_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1(lean_object* v_self_15_, lean_object* v_error_16_){ +_start: +{ +lean_object* v___x_18_; +v___x_18_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +return v___x_18_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___boxed(lean_object* v_self_19_, lean_object* v_error_20_, lean_object* v___y_21_){ +_start: +{ +lean_object* v_res_22_; +v_res_22_ = l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1(v_self_19_, v_error_20_); +lean_dec(v_error_20_); +lean_dec_ref(v_self_19_); +return v_res_22_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2(lean_object* v_self_28_, lean_object* v_request_29_){ +_start: +{ +lean_object* v___x_31_; +v___x_31_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__1)); +return v___x_31_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___boxed(lean_object* v_self_32_, lean_object* v_request_33_, lean_object* v___y_34_){ +_start: +{ +lean_object* v_res_35_; +v_res_35_ = l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2(v_self_32_, v_request_33_); +lean_dec_ref(v_request_33_); +lean_dec_ref(v_self_32_); +return v_res_35_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3(void){ +_start: +{ +lean_object* v___f_39_; lean_object* v___f_40_; lean_object* v___f_41_; lean_object* v___x_42_; lean_object* v___x_43_; +v___f_39_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___closed__2)); +v___f_40_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___closed__1)); +v___f_41_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___closed__0)); +v___x_42_ = l_Std_Http_Body_instAny; +v___x_43_ = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(v___x_43_, 0, v___x_42_); +lean_ctor_set(v___x_43_, 1, v___f_41_); +lean_ctor_set(v___x_43_, 2, v___f_40_); +lean_ctor_set(v___x_43_, 3, v___f_39_); +return v___x_43_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_instHandlerTestHandler(void){ +_start: +{ +lean_object* v___x_44_; +v___x_44_ = lean_obj_once(&l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3, &l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3_once, _init_l_Std_Http_Internal_Test_instHandlerTestHandler___closed__3); +return v___x_44_; +} +} +LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Http_Internal_Test_defaultConfig_spec__1(lean_object* v_a_45_){ +_start: +{ +lean_object* v___x_46_; +v___x_46_ = lean_nat_to_int(v_a_45_); +return v___x_46_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_defaultConfig___closed__0(void){ +_start: +{ +lean_object* v___x_47_; lean_object* v___x_48_; +v___x_47_ = lean_unsigned_to_nat(1000u); +v___x_48_ = lean_nat_to_int(v___x_47_); +return v___x_48_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_defaultConfig___closed__1(void){ +_start: +{ +lean_object* v___x_49_; lean_object* v___x_50_; +v___x_49_ = lean_unsigned_to_nat(12000u); +v___x_50_ = lean_nat_to_int(v___x_49_); +return v___x_50_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_defaultConfig___closed__2(void){ +_start: +{ +lean_object* v___x_51_; lean_object* v___x_52_; +v___x_51_ = lean_unsigned_to_nat(5000u); +v___x_52_ = lean_nat_to_int(v___x_51_); +return v___x_52_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_defaultConfig___closed__5(void){ +_start: +{ +lean_object* v___x_56_; lean_object* v___x_57_; lean_object* v___x_58_; lean_object* v___x_59_; lean_object* v___x_60_; lean_object* v___x_61_; lean_object* v___x_62_; lean_object* v___x_63_; uint8_t v___x_64_; lean_object* v___x_65_; uint8_t v___x_66_; lean_object* v___x_67_; lean_object* v___x_68_; lean_object* v___x_69_; lean_object* v___x_70_; lean_object* v___x_71_; lean_object* v___x_72_; lean_object* v___x_73_; lean_object* v___x_74_; +v___x_56_ = lean_unsigned_to_nat(20u); +v___x_57_ = lean_unsigned_to_nat(512u); +v___x_58_ = lean_unsigned_to_nat(67108864u); +v___x_59_ = lean_unsigned_to_nat(8388608u); +v___x_60_ = lean_unsigned_to_nat(8u); +v___x_61_ = lean_unsigned_to_nat(16u); +v___x_62_ = lean_unsigned_to_nat(256u); +v___x_63_ = ((lean_object*)(l_Std_Http_Internal_Test_defaultConfig___closed__4)); +v___x_64_ = 0; +v___x_65_ = lean_unsigned_to_nat(8192u); +v___x_66_ = 1; +v___x_67_ = lean_obj_once(&l_Std_Http_Internal_Test_defaultConfig___closed__2, &l_Std_Http_Internal_Test_defaultConfig___closed__2_once, _init_l_Std_Http_Internal_Test_defaultConfig___closed__2); +v___x_68_ = lean_obj_once(&l_Std_Http_Internal_Test_defaultConfig___closed__1, &l_Std_Http_Internal_Test_defaultConfig___closed__1_once, _init_l_Std_Http_Internal_Test_defaultConfig___closed__1); +v___x_69_ = lean_obj_once(&l_Std_Http_Internal_Test_defaultConfig___closed__0, &l_Std_Http_Internal_Test_defaultConfig___closed__0_once, _init_l_Std_Http_Internal_Test_defaultConfig___closed__0); +v___x_70_ = lean_unsigned_to_nat(65536u); +v___x_71_ = lean_unsigned_to_nat(50u); +v___x_72_ = lean_unsigned_to_nat(100u); +v___x_73_ = lean_unsigned_to_nat(1024u); +v___x_74_ = lean_alloc_ctor(0, 24, 2); +lean_ctor_set(v___x_74_, 0, v___x_73_); +lean_ctor_set(v___x_74_, 1, v___x_72_); +lean_ctor_set(v___x_74_, 2, v___x_71_); +lean_ctor_set(v___x_74_, 3, v___x_70_); +lean_ctor_set(v___x_74_, 4, v___x_69_); +lean_ctor_set(v___x_74_, 5, v___x_68_); +lean_ctor_set(v___x_74_, 6, v___x_67_); +lean_ctor_set(v___x_74_, 7, v___x_65_); +lean_ctor_set(v___x_74_, 8, v___x_65_); +lean_ctor_set(v___x_74_, 9, v___x_63_); +lean_ctor_set(v___x_74_, 10, v___x_65_); +lean_ctor_set(v___x_74_, 11, v___x_65_); +lean_ctor_set(v___x_74_, 12, v___x_62_); +lean_ctor_set(v___x_74_, 13, v___x_65_); +lean_ctor_set(v___x_74_, 14, v___x_61_); +lean_ctor_set(v___x_74_, 15, v___x_60_); +lean_ctor_set(v___x_74_, 16, v___x_62_); +lean_ctor_set(v___x_74_, 17, v___x_62_); +lean_ctor_set(v___x_74_, 18, v___x_65_); +lean_ctor_set(v___x_74_, 19, v___x_59_); +lean_ctor_set(v___x_74_, 20, v___x_58_); +lean_ctor_set(v___x_74_, 21, v___x_57_); +lean_ctor_set(v___x_74_, 22, v___x_56_); +lean_ctor_set(v___x_74_, 23, v___x_61_); +lean_ctor_set_uint8(v___x_74_, sizeof(void*)*24, v___x_66_); +lean_ctor_set_uint8(v___x_74_, sizeof(void*)*24 + 1, v___x_64_); +return v___x_74_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_defaultConfig(void){ +_start: +{ +lean_object* v___x_75_; +v___x_75_ = lean_obj_once(&l_Std_Http_Internal_Test_defaultConfig___closed__5, &l_Std_Http_Internal_Test_defaultConfig___closed__5_once, _init_l_Std_Http_Internal_Test_defaultConfig___closed__5); +return v___x_75_; +} +} +LEAN_EXPORT lean_object* l_Nat_cast___at___00Std_Http_Internal_Test_defaultConfig_spec__0(lean_object* v_a_76_){ +_start: +{ +lean_object* v___x_77_; lean_object* v___x_78_; +v___x_77_ = lean_nat_to_int(v_a_76_); +v___x_78_ = l_Rat_ofInt(v___x_77_); +return v___x_78_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0(lean_object* v_x_79_){ +_start: +{ +lean_object* v___y_82_; +if (lean_obj_tag(v_x_79_) == 0) +{ +lean_object* v_a_85_; lean_object* v___x_87_; uint8_t v_isShared_88_; uint8_t v_isSharedCheck_93_; +v_a_85_ = lean_ctor_get(v_x_79_, 0); +v_isSharedCheck_93_ = !lean_is_exclusive(v_x_79_); +if (v_isSharedCheck_93_ == 0) +{ +v___x_87_ = v_x_79_; +v_isShared_88_ = v_isSharedCheck_93_; +goto v_resetjp_86_; +} +else +{ +lean_inc(v_a_85_); +lean_dec(v_x_79_); +v___x_87_ = lean_box(0); +v_isShared_88_ = v_isSharedCheck_93_; +goto v_resetjp_86_; +} +v_resetjp_86_: +{ +lean_object* v___x_90_; +if (v_isShared_88_ == 0) +{ +v___x_90_ = v___x_87_; +goto v_reusejp_89_; +} +else +{ +lean_object* v_reuseFailAlloc_92_; +v_reuseFailAlloc_92_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_92_, 0, v_a_85_); +v___x_90_ = v_reuseFailAlloc_92_; +goto v_reusejp_89_; +} +v_reusejp_89_: +{ +lean_object* v___x_91_; +v___x_91_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_91_, 0, v___x_90_); +return v___x_91_; +} +} +} +else +{ +lean_object* v_a_94_; +v_a_94_ = lean_ctor_get(v_x_79_, 0); +lean_inc(v_a_94_); +lean_dec_ref(v_x_79_); +if (lean_obj_tag(v_a_94_) == 0) +{ +lean_object* v___x_95_; +v___x_95_ = l_ByteArray_empty; +v___y_82_ = v___x_95_; +goto v___jp_81_; +} +else +{ +lean_object* v_val_96_; +v_val_96_ = lean_ctor_get(v_a_94_, 0); +lean_inc(v_val_96_); +lean_dec_ref(v_a_94_); +v___y_82_ = v_val_96_; +goto v___jp_81_; +} +} +v___jp_81_: +{ +lean_object* v___x_83_; lean_object* v___x_84_; +v___x_83_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_83_, 0, v___y_82_); +v___x_84_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_84_, 0, v___x_83_); +return v___x_84_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0___boxed(lean_object* v_x_97_, lean_object* v___y_98_){ +_start: +{ +lean_object* v_res_99_; +v_res_99_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__0(v_x_97_); +return v_res_99_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1(lean_object* v_client_100_, lean_object* v___f_101_, lean_object* v_x_102_){ +_start: +{ +if (lean_obj_tag(v_x_102_) == 0) +{ +lean_object* v_a_104_; lean_object* v___x_106_; uint8_t v_isShared_107_; uint8_t v_isSharedCheck_112_; +lean_dec_ref(v___f_101_); +lean_dec_ref(v_client_100_); +v_a_104_ = lean_ctor_get(v_x_102_, 0); +v_isSharedCheck_112_ = !lean_is_exclusive(v_x_102_); +if (v_isSharedCheck_112_ == 0) +{ +v___x_106_ = v_x_102_; +v_isShared_107_ = v_isSharedCheck_112_; +goto v_resetjp_105_; +} +else +{ +lean_inc(v_a_104_); +lean_dec(v_x_102_); +v___x_106_ = lean_box(0); +v_isShared_107_ = v_isSharedCheck_112_; +goto v_resetjp_105_; +} +v_resetjp_105_: +{ +lean_object* v___x_109_; +if (v_isShared_107_ == 0) +{ +v___x_109_ = v___x_106_; +goto v_reusejp_108_; +} +else +{ +lean_object* v_reuseFailAlloc_111_; +v_reuseFailAlloc_111_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_111_, 0, v_a_104_); +v___x_109_ = v_reuseFailAlloc_111_; +goto v_reusejp_108_; +} +v_reusejp_108_: +{ +lean_object* v___x_110_; +v___x_110_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_110_, 0, v___x_109_); +return v___x_110_; +} +} +} +else +{ +lean_object* v___x_113_; lean_object* v___x_114_; lean_object* v___x_115_; uint8_t v___x_116_; lean_object* v___x_117_; +lean_dec_ref(v_x_102_); +v___x_113_ = lean_box(0); +v___x_114_ = l_Std_Http_Internal_Mock_Client_recv_x3f(v_client_100_, v___x_113_); +v___x_115_ = lean_unsigned_to_nat(0u); +v___x_116_ = 0; +v___x_117_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_115_, v___x_116_, v___x_114_, v___f_101_); +return v___x_117_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1___boxed(lean_object* v_client_118_, lean_object* v___f_119_, lean_object* v_x_120_, lean_object* v___y_121_){ +_start: +{ +lean_object* v_res_122_; +v_res_122_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1(v_client_118_, v___f_119_, v_x_120_); +return v_res_122_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2(lean_object* v_x_123_, lean_object* v_x_124_){ +_start: +{ +if (lean_obj_tag(v_x_124_) == 0) +{ +lean_object* v___x_126_; +lean_dec_ref(v_x_123_); +v___x_126_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_126_, 0, v_x_124_); +return v___x_126_; +} +else +{ +lean_object* v___x_128_; uint8_t v_isShared_129_; uint8_t v_isSharedCheck_133_; +v_isSharedCheck_133_ = !lean_is_exclusive(v_x_124_); +if (v_isSharedCheck_133_ == 0) +{ +lean_object* v_unused_134_; +v_unused_134_ = lean_ctor_get(v_x_124_, 0); +lean_dec(v_unused_134_); +v___x_128_ = v_x_124_; +v_isShared_129_ = v_isSharedCheck_133_; +goto v_resetjp_127_; +} +else +{ +lean_dec(v_x_124_); +v___x_128_ = lean_box(0); +v_isShared_129_ = v_isSharedCheck_133_; +goto v_resetjp_127_; +} +v_resetjp_127_: +{ +lean_object* v___x_131_; +if (v_isShared_129_ == 0) +{ +lean_ctor_set_tag(v___x_128_, 0); +lean_ctor_set(v___x_128_, 0, v_x_123_); +v___x_131_ = v___x_128_; +goto v_reusejp_130_; +} +else +{ +lean_object* v_reuseFailAlloc_132_; +v_reuseFailAlloc_132_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_132_, 0, v_x_123_); +v___x_131_ = v_reuseFailAlloc_132_; +goto v_reusejp_130_; +} +v_reusejp_130_: +{ +return v___x_131_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2___boxed(lean_object* v_x_135_, lean_object* v_x_136_, lean_object* v___y_137_){ +_start: +{ +lean_object* v_res_138_; +v_res_138_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2(v_x_135_, v_x_136_); +return v_res_138_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3(lean_object* v_a_139_, lean_object* v___x_140_, lean_object* v_x_141_){ +_start: +{ +if (lean_obj_tag(v_x_141_) == 0) +{ +lean_object* v___x_143_; +lean_dec(v___x_140_); +lean_dec_ref(v_a_139_); +v___x_143_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_143_, 0, v_x_141_); +return v___x_143_; +} +else +{ +lean_object* v___x_144_; lean_object* v___x_145_; lean_object* v___f_146_; lean_object* v___x_147_; lean_object* v___x_148_; uint8_t v___x_149_; lean_object* v___x_150_; +v___x_144_ = lean_box(2); +v___x_145_ = l_Std_CancellationContext_cancel(v_a_139_, v___x_144_); +v___f_146_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2___boxed), 3, 1); +lean_closure_set(v___f_146_, 0, v_x_141_); +v___x_147_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_147_, 0, v___x_145_); +v___x_148_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_148_, 0, v___x_147_); +v___x_149_ = 0; +v___x_150_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_140_, v___x_149_, v___x_148_, v___f_146_); +return v___x_150_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3___boxed(lean_object* v_a_151_, lean_object* v___x_152_, lean_object* v_x_153_, lean_object* v___y_154_){ +_start: +{ +lean_object* v_res_155_; +v_res_155_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3(v_a_151_, v___x_152_, v_x_153_); +return v_res_155_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3(lean_object* v___f_156_, lean_object* v_x_157_){ +_start: +{ +if (lean_obj_tag(v_x_157_) == 0) +{ +lean_object* v___x_159_; +lean_dec_ref(v___f_156_); +v___x_159_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_159_, 0, v_x_157_); +return v___x_159_; +} +else +{ +lean_object* v_a_160_; lean_object* v___x_161_; +v_a_160_ = lean_ctor_get(v_x_157_, 0); +lean_inc(v_a_160_); +lean_dec_ref(v_x_157_); +v___x_161_ = lean_apply_2(v___f_156_, v_a_160_, lean_box(0)); +return v___x_161_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3___boxed(lean_object* v___f_162_, lean_object* v_x_163_, lean_object* v___y_164_){ +_start: +{ +lean_object* v_res_165_; +v_res_165_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3(v___f_162_, v_x_163_); +return v_res_165_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1(lean_object* v___f_166_, lean_object* v___y_167_){ +_start: +{ +lean_object* v___x_169_; lean_object* v___x_170_; lean_object* v___x_171_; lean_object* v___x_172_; uint8_t v___x_173_; lean_object* v___x_174_; +v___x_169_ = lean_st_ref_get(v___y_167_); +v___x_170_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_170_, 0, v___x_169_); +v___x_171_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_171_, 0, v___x_170_); +v___x_172_ = lean_unsigned_to_nat(0u); +v___x_173_ = 0; +v___x_174_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_172_, v___x_173_, v___x_171_, v___f_166_); +return v___x_174_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1___boxed(lean_object* v___f_175_, lean_object* v___y_176_, lean_object* v___y_177_){ +_start: +{ +lean_object* v_res_178_; +v_res_178_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__1(v___f_175_, v___y_176_); +lean_dec(v___y_176_); +return v_res_178_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0(lean_object* v_x_179_){ +_start: +{ +if (lean_obj_tag(v_x_179_) == 0) +{ +lean_object* v_a_181_; lean_object* v___x_183_; uint8_t v_isShared_184_; uint8_t v_isSharedCheck_189_; +v_a_181_ = lean_ctor_get(v_x_179_, 0); +v_isSharedCheck_189_ = !lean_is_exclusive(v_x_179_); +if (v_isSharedCheck_189_ == 0) +{ +v___x_183_ = v_x_179_; +v_isShared_184_ = v_isSharedCheck_189_; +goto v_resetjp_182_; +} +else +{ +lean_inc(v_a_181_); +lean_dec(v_x_179_); +v___x_183_ = lean_box(0); +v_isShared_184_ = v_isSharedCheck_189_; +goto v_resetjp_182_; +} +v_resetjp_182_: +{ +lean_object* v___x_186_; +if (v_isShared_184_ == 0) +{ +v___x_186_ = v___x_183_; +goto v_reusejp_185_; +} +else +{ +lean_object* v_reuseFailAlloc_188_; +v_reuseFailAlloc_188_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_188_, 0, v_a_181_); +v___x_186_ = v_reuseFailAlloc_188_; +goto v_reusejp_185_; +} +v_reusejp_185_: +{ +lean_object* v___x_187_; +v___x_187_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_187_, 0, v___x_186_); +return v___x_187_; +} +} +} +else +{ +lean_object* v_a_190_; lean_object* v___x_192_; uint8_t v_isShared_193_; uint8_t v_isSharedCheck_208_; +v_a_190_ = lean_ctor_get(v_x_179_, 0); +v_isSharedCheck_208_ = !lean_is_exclusive(v_x_179_); +if (v_isSharedCheck_208_ == 0) +{ +v___x_192_ = v_x_179_; +v_isShared_193_ = v_isSharedCheck_208_; +goto v_resetjp_191_; +} +else +{ +lean_inc(v_a_190_); +lean_dec(v_x_179_); +v___x_192_ = lean_box(0); +v_isShared_193_ = v_isSharedCheck_208_; +goto v_resetjp_191_; +} +v_resetjp_191_: +{ +lean_object* v_snd_194_; uint8_t v___x_195_; +v_snd_194_ = lean_ctor_get(v_a_190_, 1); +v___x_195_ = lean_unbox(v_snd_194_); +if (v___x_195_ == 0) +{ +lean_object* v_fst_196_; lean_object* v___x_197_; lean_object* v___x_199_; +v_fst_196_ = lean_ctor_get(v_a_190_, 0); +lean_inc(v_fst_196_); +lean_dec(v_a_190_); +v___x_197_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_197_, 0, v_fst_196_); +if (v_isShared_193_ == 0) +{ +lean_ctor_set(v___x_192_, 0, v___x_197_); +v___x_199_ = v___x_192_; +goto v_reusejp_198_; +} +else +{ +lean_object* v_reuseFailAlloc_201_; +v_reuseFailAlloc_201_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_201_, 0, v___x_197_); +v___x_199_ = v_reuseFailAlloc_201_; +goto v_reusejp_198_; +} +v_reusejp_198_: +{ +lean_object* v___x_200_; +v___x_200_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_200_, 0, v___x_199_); +return v___x_200_; +} +} +else +{ +lean_object* v_fst_202_; lean_object* v___x_203_; lean_object* v___x_205_; +v_fst_202_ = lean_ctor_get(v_a_190_, 0); +lean_inc(v_fst_202_); +lean_dec(v_a_190_); +v___x_203_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_203_, 0, v_fst_202_); +if (v_isShared_193_ == 0) +{ +lean_ctor_set(v___x_192_, 0, v___x_203_); +v___x_205_ = v___x_192_; +goto v_reusejp_204_; +} +else +{ +lean_object* v_reuseFailAlloc_207_; +v_reuseFailAlloc_207_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_207_, 0, v___x_203_); +v___x_205_ = v_reuseFailAlloc_207_; +goto v_reusejp_204_; +} +v_reusejp_204_: +{ +lean_object* v___x_206_; +v___x_206_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_206_, 0, v___x_205_); +return v___x_206_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0___boxed(lean_object* v_x_209_, lean_object* v___y_210_){ +_start: +{ +lean_object* v_res_211_; +v_res_211_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__0(v_x_209_); +return v_res_211_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4(lean_object* v___f_212_, lean_object* v___x_213_, lean_object* v___f_214_, lean_object* v_x_215_){ +_start: +{ +if (lean_obj_tag(v_x_215_) == 0) +{ +lean_object* v_a_217_; lean_object* v___x_219_; uint8_t v_isShared_220_; uint8_t v_isSharedCheck_225_; +lean_dec_ref(v___f_214_); +lean_dec(v___x_213_); +lean_dec_ref(v___f_212_); +v_a_217_ = lean_ctor_get(v_x_215_, 0); +v_isSharedCheck_225_ = !lean_is_exclusive(v_x_215_); +if (v_isSharedCheck_225_ == 0) +{ +v___x_219_ = v_x_215_; +v_isShared_220_ = v_isSharedCheck_225_; +goto v_resetjp_218_; +} +else +{ +lean_inc(v_a_217_); +lean_dec(v_x_215_); +v___x_219_ = lean_box(0); +v_isShared_220_ = v_isSharedCheck_225_; +goto v_resetjp_218_; +} +v_resetjp_218_: +{ +lean_object* v___x_222_; +if (v_isShared_220_ == 0) +{ +v___x_222_ = v___x_219_; +goto v_reusejp_221_; +} +else +{ +lean_object* v_reuseFailAlloc_224_; +v_reuseFailAlloc_224_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_224_, 0, v_a_217_); +v___x_222_ = v_reuseFailAlloc_224_; +goto v_reusejp_221_; +} +v_reusejp_221_: +{ +lean_object* v___x_223_; +v___x_223_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_223_, 0, v___x_222_); +return v___x_223_; +} +} +} +else +{ +lean_object* v_a_226_; lean_object* v___x_228_; uint8_t v_isShared_229_; uint8_t v_isSharedCheck_237_; +v_a_226_ = lean_ctor_get(v_x_215_, 0); +v_isSharedCheck_237_ = !lean_is_exclusive(v_x_215_); +if (v_isSharedCheck_237_ == 0) +{ +v___x_228_ = v_x_215_; +v_isShared_229_ = v_isSharedCheck_237_; +goto v_resetjp_227_; +} +else +{ +lean_inc(v_a_226_); +lean_dec(v_x_215_); +v___x_228_ = lean_box(0); +v_isShared_229_ = v_isSharedCheck_237_; +goto v_resetjp_227_; +} +v_resetjp_227_: +{ +uint8_t v___x_230_; lean_object* v___x_231_; lean_object* v___x_233_; +v___x_230_ = 0; +lean_inc(v___x_213_); +v___x_231_ = l_BaseIO_chainTask___redArg(v_a_226_, v___f_212_, v___x_213_, v___x_230_); +if (v_isShared_229_ == 0) +{ +lean_ctor_set(v___x_228_, 0, v___x_231_); +v___x_233_ = v___x_228_; +goto v_reusejp_232_; +} +else +{ +lean_object* v_reuseFailAlloc_236_; +v_reuseFailAlloc_236_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_236_, 0, v___x_231_); +v___x_233_ = v_reuseFailAlloc_236_; +goto v_reusejp_232_; +} +v_reusejp_232_: +{ +lean_object* v___x_234_; lean_object* v___x_235_; +v___x_234_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_234_, 0, v___x_233_); +v___x_235_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_213_, v___x_230_, v___x_234_, v___f_214_); +return v___x_235_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4___boxed(lean_object* v___f_238_, lean_object* v___x_239_, lean_object* v___f_240_, lean_object* v_x_241_, lean_object* v___y_242_){ +_start: +{ +lean_object* v_res_243_; +v_res_243_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4(v___f_238_, v___x_239_, v___f_240_, v_x_241_); +return v_res_243_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2(lean_object* v_response_244_, lean_object* v___y_245_){ +_start: +{ +lean_object* v___x_247_; lean_object* v___x_248_; +v___x_247_ = l_Std_Channel_send___redArg(v_response_244_, v___y_245_); +lean_dec_ref(v___x_247_); +v___x_248_ = lean_box(0); +return v___x_248_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2___boxed(lean_object* v_response_249_, lean_object* v___y_250_, lean_object* v___y_251_){ +_start: +{ +lean_object* v_res_252_; +v_res_252_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2(v_response_249_, v___y_250_); +return v_res_252_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3(lean_object* v_machine_253_, lean_object* v_requestStream_254_, lean_object* v_keepAliveTimeout_255_, lean_object* v_currentTimeout_256_, lean_object* v_headerTimeout_257_, lean_object* v_response_258_, lean_object* v_respStream_259_, uint8_t v_requiresData_260_, lean_object* v_expectData_261_, lean_object* v_x_262_){ +_start: +{ +if (lean_obj_tag(v_x_262_) == 0) +{ +lean_object* v_a_264_; lean_object* v___x_266_; uint8_t v_isShared_267_; uint8_t v_isSharedCheck_272_; +lean_dec(v_expectData_261_); +lean_dec(v_respStream_259_); +lean_dec_ref(v_response_258_); +lean_dec(v_headerTimeout_257_); +lean_dec(v_currentTimeout_256_); +lean_dec(v_keepAliveTimeout_255_); +lean_dec_ref(v_requestStream_254_); +lean_dec_ref(v_machine_253_); +v_a_264_ = lean_ctor_get(v_x_262_, 0); +v_isSharedCheck_272_ = !lean_is_exclusive(v_x_262_); +if (v_isSharedCheck_272_ == 0) +{ +v___x_266_ = v_x_262_; +v_isShared_267_ = v_isSharedCheck_272_; +goto v_resetjp_265_; +} +else +{ +lean_inc(v_a_264_); +lean_dec(v_x_262_); +v___x_266_ = lean_box(0); +v_isShared_267_ = v_isSharedCheck_272_; +goto v_resetjp_265_; +} +v_resetjp_265_: +{ +lean_object* v___x_269_; +if (v_isShared_267_ == 0) +{ +v___x_269_ = v___x_266_; +goto v_reusejp_268_; +} +else +{ +lean_object* v_reuseFailAlloc_271_; +v_reuseFailAlloc_271_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_271_, 0, v_a_264_); +v___x_269_ = v_reuseFailAlloc_271_; +goto v_reusejp_268_; +} +v_reusejp_268_: +{ +lean_object* v___x_270_; +v___x_270_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_270_, 0, v___x_269_); +return v___x_270_; +} +} +} +else +{ +lean_object* v___x_274_; uint8_t v_isShared_275_; uint8_t v_isSharedCheck_283_; +v_isSharedCheck_283_ = !lean_is_exclusive(v_x_262_); +if (v_isSharedCheck_283_ == 0) +{ +lean_object* v_unused_284_; +v_unused_284_ = lean_ctor_get(v_x_262_, 0); +lean_dec(v_unused_284_); +v___x_274_ = v_x_262_; +v_isShared_275_ = v_isSharedCheck_283_; +goto v_resetjp_273_; +} +else +{ +lean_dec(v_x_262_); +v___x_274_ = lean_box(0); +v_isShared_275_ = v_isSharedCheck_283_; +goto v_resetjp_273_; +} +v_resetjp_273_: +{ +uint8_t v___x_276_; lean_object* v___x_277_; lean_object* v___x_278_; lean_object* v___x_280_; +v___x_276_ = 1; +v___x_277_ = lean_box(0); +v___x_278_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_278_, 0, v_machine_253_); +lean_ctor_set(v___x_278_, 1, v_requestStream_254_); +lean_ctor_set(v___x_278_, 2, v_keepAliveTimeout_255_); +lean_ctor_set(v___x_278_, 3, v_currentTimeout_256_); +lean_ctor_set(v___x_278_, 4, v_headerTimeout_257_); +lean_ctor_set(v___x_278_, 5, v_response_258_); +lean_ctor_set(v___x_278_, 6, v_respStream_259_); +lean_ctor_set(v___x_278_, 7, v_expectData_261_); +lean_ctor_set(v___x_278_, 8, v___x_277_); +lean_ctor_set_uint8(v___x_278_, sizeof(void*)*9, v_requiresData_260_); +lean_ctor_set_uint8(v___x_278_, sizeof(void*)*9 + 1, v___x_276_); +if (v_isShared_275_ == 0) +{ +lean_ctor_set(v___x_274_, 0, v___x_278_); +v___x_280_ = v___x_274_; +goto v_reusejp_279_; +} +else +{ +lean_object* v_reuseFailAlloc_282_; +v_reuseFailAlloc_282_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_282_, 0, v___x_278_); +v___x_280_ = v_reuseFailAlloc_282_; +goto v_reusejp_279_; +} +v_reusejp_279_: +{ +lean_object* v___x_281_; +v___x_281_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_281_, 0, v___x_280_); +return v___x_281_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3___boxed(lean_object* v_machine_285_, lean_object* v_requestStream_286_, lean_object* v_keepAliveTimeout_287_, lean_object* v_currentTimeout_288_, lean_object* v_headerTimeout_289_, lean_object* v_response_290_, lean_object* v_respStream_291_, lean_object* v_requiresData_292_, lean_object* v_expectData_293_, lean_object* v_x_294_, lean_object* v___y_295_){ +_start: +{ +uint8_t v_requiresData_boxed_296_; lean_object* v_res_297_; +v_requiresData_boxed_296_ = lean_unbox(v_requiresData_292_); +v_res_297_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3(v_machine_285_, v_requestStream_286_, v_keepAliveTimeout_287_, v_currentTimeout_288_, v_headerTimeout_289_, v_response_290_, v_respStream_291_, v_requiresData_boxed_296_, v_expectData_293_, v_x_294_); +return v_res_297_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0(lean_object* v_handler_298_, lean_object* v___x_299_, lean_object* v_connectionContext_300_){ +_start: +{ +lean_object* v___x_302_; +v___x_302_ = lean_apply_3(v_handler_298_, v___x_299_, v_connectionContext_300_, lean_box(0)); +return v___x_302_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0___boxed(lean_object* v_handler_303_, lean_object* v___x_304_, lean_object* v_connectionContext_305_, lean_object* v___y_306_){ +_start: +{ +lean_object* v_res_307_; +v_res_307_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0(v_handler_303_, v___x_304_, v_connectionContext_305_); +return v_res_307_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__1(lean_object* v_x_308_){ +_start: +{ +if (lean_obj_tag(v_x_308_) == 0) +{ +lean_object* v_a_309_; lean_object* v___x_310_; +v_a_309_ = lean_ctor_get(v_x_308_, 0); +lean_inc(v_a_309_); +lean_dec_ref(v_x_308_); +v___x_310_ = lean_task_pure(v_a_309_); +return v___x_310_; +} +else +{ +lean_object* v_a_311_; +v_a_311_ = lean_ctor_get(v_x_308_, 0); +lean_inc_ref(v_a_311_); +lean_dec_ref(v_x_308_); +return v_a_311_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5(lean_object* v_handler_313_, lean_object* v_extensions_314_, lean_object* v_connectionContext_315_, lean_object* v_state_316_){ +_start: +{ +lean_object* v_pendingHead_318_; +v_pendingHead_318_ = lean_ctor_get(v_state_316_, 8); +lean_inc(v_pendingHead_318_); +if (lean_obj_tag(v_pendingHead_318_) == 1) +{ +lean_object* v_machine_319_; lean_object* v_requestStream_320_; lean_object* v_keepAliveTimeout_321_; lean_object* v_currentTimeout_322_; lean_object* v_headerTimeout_323_; lean_object* v_response_324_; lean_object* v_respStream_325_; uint8_t v_requiresData_326_; lean_object* v_expectData_327_; lean_object* v_val_328_; lean_object* v___x_330_; uint8_t v_isShared_331_; uint8_t v_isSharedCheck_349_; +v_machine_319_ = lean_ctor_get(v_state_316_, 0); +lean_inc_ref(v_machine_319_); +v_requestStream_320_ = lean_ctor_get(v_state_316_, 1); +lean_inc_ref(v_requestStream_320_); +v_keepAliveTimeout_321_ = lean_ctor_get(v_state_316_, 2); +lean_inc(v_keepAliveTimeout_321_); +v_currentTimeout_322_ = lean_ctor_get(v_state_316_, 3); +lean_inc(v_currentTimeout_322_); +v_headerTimeout_323_ = lean_ctor_get(v_state_316_, 4); +lean_inc(v_headerTimeout_323_); +v_response_324_ = lean_ctor_get(v_state_316_, 5); +lean_inc_ref(v_response_324_); +v_respStream_325_ = lean_ctor_get(v_state_316_, 6); +lean_inc(v_respStream_325_); +v_requiresData_326_ = lean_ctor_get_uint8(v_state_316_, sizeof(void*)*9); +v_expectData_327_ = lean_ctor_get(v_state_316_, 7); +lean_inc(v_expectData_327_); +lean_dec_ref(v_state_316_); +v_val_328_ = lean_ctor_get(v_pendingHead_318_, 0); +v_isSharedCheck_349_ = !lean_is_exclusive(v_pendingHead_318_); +if (v_isSharedCheck_349_ == 0) +{ +v___x_330_ = v_pendingHead_318_; +v_isShared_331_ = v_isSharedCheck_349_; +goto v_resetjp_329_; +} +else +{ +lean_inc(v_val_328_); +lean_dec(v_pendingHead_318_); +v___x_330_ = lean_box(0); +v_isShared_331_ = v_isSharedCheck_349_; +goto v_resetjp_329_; +} +v_resetjp_329_: +{ +lean_object* v___x_332_; lean_object* v___f_333_; lean_object* v___x_334_; lean_object* v___x_335_; lean_object* v___f_336_; lean_object* v___f_337_; lean_object* v___x_338_; lean_object* v___f_339_; lean_object* v___f_340_; uint8_t v___x_341_; lean_object* v___x_342_; lean_object* v___x_344_; +lean_inc_ref(v_requestStream_320_); +v___x_332_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_332_, 0, v_val_328_); +lean_ctor_set(v___x_332_, 1, v_requestStream_320_); +lean_ctor_set(v___x_332_, 2, v_extensions_314_); +v___f_333_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__0___boxed), 4, 3); +lean_closure_set(v___f_333_, 0, v_handler_313_); +lean_closure_set(v___f_333_, 1, v___x_332_); +lean_closure_set(v___f_333_, 2, v_connectionContext_315_); +v___x_334_ = lean_unsigned_to_nat(0u); +v___x_335_ = lean_io_as_task(v___f_333_, v___x_334_); +v___f_336_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___closed__0)); +lean_inc_ref(v_response_324_); +v___f_337_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__2___boxed), 3, 1); +lean_closure_set(v___f_337_, 0, v_response_324_); +v___x_338_ = lean_box(v_requiresData_326_); +v___f_339_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__3___boxed), 11, 9); +lean_closure_set(v___f_339_, 0, v_machine_319_); +lean_closure_set(v___f_339_, 1, v_requestStream_320_); +lean_closure_set(v___f_339_, 2, v_keepAliveTimeout_321_); +lean_closure_set(v___f_339_, 3, v_currentTimeout_322_); +lean_closure_set(v___f_339_, 4, v_headerTimeout_323_); +lean_closure_set(v___f_339_, 5, v_response_324_); +lean_closure_set(v___f_339_, 6, v_respStream_325_); +lean_closure_set(v___f_339_, 7, v___x_338_); +lean_closure_set(v___f_339_, 8, v_expectData_327_); +v___f_340_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___lam__4___boxed), 5, 3); +lean_closure_set(v___f_340_, 0, v___f_337_); +lean_closure_set(v___f_340_, 1, v___x_334_); +lean_closure_set(v___f_340_, 2, v___f_339_); +v___x_341_ = 1; +v___x_342_ = lean_task_bind(v___x_335_, v___f_336_, v___x_334_, v___x_341_); +if (v_isShared_331_ == 0) +{ +lean_ctor_set(v___x_330_, 0, v___x_342_); +v___x_344_ = v___x_330_; +goto v_reusejp_343_; +} +else +{ +lean_object* v_reuseFailAlloc_348_; +v_reuseFailAlloc_348_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_348_, 0, v___x_342_); +v___x_344_ = v_reuseFailAlloc_348_; +goto v_reusejp_343_; +} +v_reusejp_343_: +{ +lean_object* v___x_345_; uint8_t v___x_346_; lean_object* v___x_347_; +v___x_345_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_345_, 0, v___x_344_); +v___x_346_ = 0; +v___x_347_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_334_, v___x_346_, v___x_345_, v___f_340_); +return v___x_347_; +} +} +} +else +{ +lean_object* v___x_350_; lean_object* v___x_351_; +lean_dec(v_pendingHead_318_); +lean_dec_ref(v_connectionContext_315_); +lean_dec(v_extensions_314_); +lean_dec_ref(v_handler_313_); +v___x_350_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_350_, 0, v_state_316_); +v___x_351_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_351_, 0, v___x_350_); +return v___x_351_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5___boxed(lean_object* v_handler_352_, lean_object* v_extensions_353_, lean_object* v_connectionContext_354_, lean_object* v_state_355_, lean_object* v_a_356_){ +_start: +{ +lean_object* v_res_357_; +v_res_357_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5(v_handler_352_, v_extensions_353_, v_connectionContext_354_, v_state_355_); +return v_res_357_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7(lean_object* v_connection_358_, lean_object* v_handler_359_, lean_object* v_connectionContext_360_, uint8_t v___x_361_, lean_object* v___f_362_, lean_object* v_x_363_){ +_start: +{ +if (lean_obj_tag(v_x_363_) == 0) +{ +lean_object* v_a_365_; lean_object* v___x_367_; uint8_t v_isShared_368_; uint8_t v_isSharedCheck_373_; +lean_dec_ref(v___f_362_); +lean_dec_ref(v_connectionContext_360_); +lean_dec_ref(v_handler_359_); +lean_dec_ref(v_connection_358_); +v_a_365_ = lean_ctor_get(v_x_363_, 0); +v_isSharedCheck_373_ = !lean_is_exclusive(v_x_363_); +if (v_isSharedCheck_373_ == 0) +{ +v___x_367_ = v_x_363_; +v_isShared_368_ = v_isSharedCheck_373_; +goto v_resetjp_366_; +} +else +{ +lean_inc(v_a_365_); +lean_dec(v_x_363_); +v___x_367_ = lean_box(0); +v_isShared_368_ = v_isSharedCheck_373_; +goto v_resetjp_366_; +} +v_resetjp_366_: +{ +lean_object* v___x_370_; +if (v_isShared_368_ == 0) +{ +v___x_370_ = v___x_367_; +goto v_reusejp_369_; +} +else +{ +lean_object* v_reuseFailAlloc_372_; +v_reuseFailAlloc_372_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_372_, 0, v_a_365_); +v___x_370_ = v_reuseFailAlloc_372_; +goto v_reusejp_369_; +} +v_reusejp_369_: +{ +lean_object* v___x_371_; +v___x_371_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_371_, 0, v___x_370_); +return v___x_371_; +} +} +} +else +{ +lean_object* v_a_374_; lean_object* v_extensions_375_; lean_object* v___x_376_; lean_object* v___x_377_; lean_object* v___x_378_; +v_a_374_ = lean_ctor_get(v_x_363_, 0); +lean_inc(v_a_374_); +lean_dec_ref(v_x_363_); +v_extensions_375_ = lean_ctor_get(v_connection_358_, 2); +lean_inc(v_extensions_375_); +lean_dec_ref(v_connection_358_); +v___x_376_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_dispatchPendingRequest___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__5(v_handler_359_, v_extensions_375_, v_connectionContext_360_, v_a_374_); +v___x_377_ = lean_unsigned_to_nat(0u); +v___x_378_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_377_, v___x_361_, v___x_376_, v___f_362_); +return v___x_378_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7___boxed(lean_object* v_connection_379_, lean_object* v_handler_380_, lean_object* v_connectionContext_381_, lean_object* v___x_382_, lean_object* v___f_383_, lean_object* v_x_384_, lean_object* v___y_385_){ +_start: +{ +uint8_t v___x_15360__boxed_386_; lean_object* v_res_387_; +v___x_15360__boxed_386_ = lean_unbox(v___x_382_); +v_res_387_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7(v_connection_379_, v_handler_380_, v_connectionContext_381_, v___x_15360__boxed_386_, v___f_383_, v_x_384_); +return v_res_387_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1(lean_object* v_k_388_, lean_object* v_ref_389_, lean_object* v_x_390_){ +_start: +{ +if (lean_obj_tag(v_x_390_) == 0) +{ +lean_object* v_a_392_; lean_object* v___x_394_; uint8_t v_isShared_395_; uint8_t v_isSharedCheck_400_; +lean_dec(v_ref_389_); +lean_dec_ref(v_k_388_); +v_a_392_ = lean_ctor_get(v_x_390_, 0); +v_isSharedCheck_400_ = !lean_is_exclusive(v_x_390_); +if (v_isSharedCheck_400_ == 0) +{ +v___x_394_ = v_x_390_; +v_isShared_395_ = v_isSharedCheck_400_; +goto v_resetjp_393_; +} +else +{ +lean_inc(v_a_392_); +lean_dec(v_x_390_); +v___x_394_ = lean_box(0); +v_isShared_395_ = v_isSharedCheck_400_; +goto v_resetjp_393_; +} +v_resetjp_393_: +{ +lean_object* v___x_397_; +if (v_isShared_395_ == 0) +{ +v___x_397_ = v___x_394_; +goto v_reusejp_396_; +} +else +{ +lean_object* v_reuseFailAlloc_399_; +v_reuseFailAlloc_399_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_399_, 0, v_a_392_); +v___x_397_ = v_reuseFailAlloc_399_; +goto v_reusejp_396_; +} +v_reusejp_396_: +{ +lean_object* v___x_398_; +v___x_398_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_398_, 0, v___x_397_); +return v___x_398_; +} +} +} +else +{ +lean_object* v___x_401_; +lean_dec_ref(v_x_390_); +v___x_401_ = lean_apply_2(v_k_388_, v_ref_389_, lean_box(0)); +return v___x_401_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1___boxed(lean_object* v_k_402_, lean_object* v_ref_403_, lean_object* v_x_404_, lean_object* v___y_405_){ +_start: +{ +lean_object* v_res_406_; +v_res_406_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1(v_k_402_, v_ref_403_, v_x_404_); +return v_res_406_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__3(lean_object* v___y_407_){ +_start: +{ +if (lean_obj_tag(v___y_407_) == 0) +{ +lean_object* v_a_408_; lean_object* v___x_410_; uint8_t v_isShared_411_; uint8_t v_isSharedCheck_415_; +v_a_408_ = lean_ctor_get(v___y_407_, 0); +v_isSharedCheck_415_ = !lean_is_exclusive(v___y_407_); +if (v_isSharedCheck_415_ == 0) +{ +v___x_410_ = v___y_407_; +v_isShared_411_ = v_isSharedCheck_415_; +goto v_resetjp_409_; +} +else +{ +lean_inc(v_a_408_); +lean_dec(v___y_407_); +v___x_410_ = lean_box(0); +v_isShared_411_ = v_isSharedCheck_415_; +goto v_resetjp_409_; +} +v_resetjp_409_: +{ +lean_object* v___x_413_; +if (v_isShared_411_ == 0) +{ +v___x_413_ = v___x_410_; +goto v_reusejp_412_; +} +else +{ +lean_object* v_reuseFailAlloc_414_; +v_reuseFailAlloc_414_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_414_, 0, v_a_408_); +v___x_413_ = v_reuseFailAlloc_414_; +goto v_reusejp_412_; +} +v_reusejp_412_: +{ +return v___x_413_; +} +} +} +else +{ +lean_object* v_a_416_; lean_object* v___x_418_; uint8_t v_isShared_419_; uint8_t v_isSharedCheck_424_; +v_a_416_ = lean_ctor_get(v___y_407_, 0); +v_isSharedCheck_424_ = !lean_is_exclusive(v___y_407_); +if (v_isSharedCheck_424_ == 0) +{ +v___x_418_ = v___y_407_; +v_isShared_419_ = v_isSharedCheck_424_; +goto v_resetjp_417_; +} +else +{ +lean_inc(v_a_416_); +lean_dec(v___y_407_); +v___x_418_ = lean_box(0); +v_isShared_419_ = v_isSharedCheck_424_; +goto v_resetjp_417_; +} +v_resetjp_417_: +{ +lean_object* v_fst_420_; lean_object* v___x_422_; +v_fst_420_ = lean_ctor_get(v_a_416_, 0); +lean_inc(v_fst_420_); +lean_dec(v_a_416_); +if (v_isShared_419_ == 0) +{ +lean_ctor_set(v___x_418_, 0, v_fst_420_); +v___x_422_ = v___x_418_; +goto v_reusejp_421_; +} +else +{ +lean_object* v_reuseFailAlloc_423_; +v_reuseFailAlloc_423_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_423_, 0, v_fst_420_); +v___x_422_ = v_reuseFailAlloc_423_; +goto v_reusejp_421_; +} +v_reusejp_421_: +{ +return v___x_422_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0(lean_object* v_mutex_425_, lean_object* v_x_426_){ +_start: +{ +lean_object* v___x_428_; lean_object* v___x_429_; lean_object* v___x_430_; +v___x_428_ = lean_io_basemutex_unlock(v_mutex_425_); +v___x_429_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_429_, 0, v___x_428_); +v___x_430_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_430_, 0, v___x_429_); +return v___x_430_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0___boxed(lean_object* v_mutex_431_, lean_object* v_x_432_, lean_object* v___y_433_){ +_start: +{ +lean_object* v_res_434_; +v_res_434_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0(v_mutex_431_, v_x_432_); +lean_dec(v_x_432_); +lean_dec(v_mutex_431_); +return v_res_434_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2(lean_object* v_mutex_435_, lean_object* v___f_436_){ +_start: +{ +lean_object* v___x_438_; lean_object* v___x_439_; lean_object* v___x_440_; lean_object* v___x_441_; uint8_t v___x_442_; lean_object* v___x_443_; +v___x_438_ = lean_io_basemutex_lock(v_mutex_435_); +v___x_439_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_439_, 0, v___x_438_); +v___x_440_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_440_, 0, v___x_439_); +v___x_441_ = lean_unsigned_to_nat(0u); +v___x_442_ = 0; +v___x_443_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_441_, v___x_442_, v___x_440_, v___f_436_); +return v___x_443_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2___boxed(lean_object* v_mutex_444_, lean_object* v___f_445_, lean_object* v___y_446_){ +_start: +{ +lean_object* v_res_447_; +v_res_447_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2(v_mutex_444_, v___f_445_); +lean_dec(v_mutex_444_); +return v_res_447_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(lean_object* v_mutex_449_, lean_object* v_k_450_){ +_start: +{ +lean_object* v_ref_452_; lean_object* v_mutex_453_; lean_object* v___f_454_; lean_object* v___f_455_; lean_object* v___f_456_; lean_object* v___x_457_; uint8_t v___x_458_; lean_object* v___x_459_; lean_object* v___y_461_; +v_ref_452_ = lean_ctor_get(v_mutex_449_, 0); +lean_inc(v_ref_452_); +v_mutex_453_ = lean_ctor_get(v_mutex_449_, 1); +lean_inc_n(v_mutex_453_, 2); +lean_dec_ref(v_mutex_449_); +v___f_454_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__0___boxed), 3, 1); +lean_closure_set(v___f_454_, 0, v_mutex_453_); +v___f_455_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__1___boxed), 4, 2); +lean_closure_set(v___f_455_, 0, v_k_450_); +lean_closure_set(v___f_455_, 1, v_ref_452_); +v___f_456_ = lean_alloc_closure((void*)(l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___lam__2___boxed), 3, 2); +lean_closure_set(v___f_456_, 0, v_mutex_453_); +lean_closure_set(v___f_456_, 1, v___f_455_); +v___x_457_ = lean_unsigned_to_nat(0u); +v___x_458_ = 0; +v___x_459_ = l_Std_Internal_IO_Async_EAsync_tryFinally_x27___redArg(v___f_456_, v___f_454_, v___x_457_, v___x_458_); +if (lean_obj_tag(v___x_459_) == 0) +{ +lean_object* v_a_463_; +v_a_463_ = lean_ctor_get(v___x_459_, 0); +lean_inc(v_a_463_); +lean_dec_ref(v___x_459_); +if (lean_obj_tag(v_a_463_) == 0) +{ +lean_object* v_a_464_; lean_object* v___x_466_; uint8_t v_isShared_467_; uint8_t v_isSharedCheck_471_; +v_a_464_ = lean_ctor_get(v_a_463_, 0); +v_isSharedCheck_471_ = !lean_is_exclusive(v_a_463_); +if (v_isSharedCheck_471_ == 0) +{ +v___x_466_ = v_a_463_; +v_isShared_467_ = v_isSharedCheck_471_; +goto v_resetjp_465_; +} +else +{ +lean_inc(v_a_464_); +lean_dec(v_a_463_); +v___x_466_ = lean_box(0); +v_isShared_467_ = v_isSharedCheck_471_; +goto v_resetjp_465_; +} +v_resetjp_465_: +{ +lean_object* v___x_469_; +if (v_isShared_467_ == 0) +{ +v___x_469_ = v___x_466_; +goto v_reusejp_468_; +} +else +{ +lean_object* v_reuseFailAlloc_470_; +v_reuseFailAlloc_470_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_470_, 0, v_a_464_); +v___x_469_ = v_reuseFailAlloc_470_; +goto v_reusejp_468_; +} +v_reusejp_468_: +{ +v___y_461_ = v___x_469_; +goto v___jp_460_; +} +} +} +else +{ +lean_object* v_a_472_; lean_object* v___x_474_; uint8_t v_isShared_475_; uint8_t v_isSharedCheck_480_; +v_a_472_ = lean_ctor_get(v_a_463_, 0); +v_isSharedCheck_480_ = !lean_is_exclusive(v_a_463_); +if (v_isSharedCheck_480_ == 0) +{ +v___x_474_ = v_a_463_; +v_isShared_475_ = v_isSharedCheck_480_; +goto v_resetjp_473_; +} +else +{ +lean_inc(v_a_472_); +lean_dec(v_a_463_); +v___x_474_ = lean_box(0); +v_isShared_475_ = v_isSharedCheck_480_; +goto v_resetjp_473_; +} +v_resetjp_473_: +{ +lean_object* v_fst_476_; lean_object* v___x_478_; +v_fst_476_ = lean_ctor_get(v_a_472_, 0); +lean_inc(v_fst_476_); +lean_dec(v_a_472_); +if (v_isShared_475_ == 0) +{ +lean_ctor_set(v___x_474_, 0, v_fst_476_); +v___x_478_ = v___x_474_; +goto v_reusejp_477_; +} +else +{ +lean_object* v_reuseFailAlloc_479_; +v_reuseFailAlloc_479_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_479_, 0, v_fst_476_); +v___x_478_ = v_reuseFailAlloc_479_; +goto v_reusejp_477_; +} +v_reusejp_477_: +{ +v___y_461_ = v___x_478_; +goto v___jp_460_; +} +} +} +} +else +{ +lean_object* v_a_481_; lean_object* v___x_483_; uint8_t v_isShared_484_; uint8_t v_isSharedCheck_490_; +v_a_481_ = lean_ctor_get(v___x_459_, 0); +v_isSharedCheck_490_ = !lean_is_exclusive(v___x_459_); +if (v_isSharedCheck_490_ == 0) +{ +v___x_483_ = v___x_459_; +v_isShared_484_ = v_isSharedCheck_490_; +goto v_resetjp_482_; +} +else +{ +lean_inc(v_a_481_); +lean_dec(v___x_459_); +v___x_483_ = lean_box(0); +v_isShared_484_ = v_isSharedCheck_490_; +goto v_resetjp_482_; +} +v_resetjp_482_: +{ +lean_object* v___f_485_; lean_object* v___x_486_; lean_object* v___x_488_; +v___f_485_ = ((lean_object*)(l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___closed__0)); +v___x_486_ = lean_task_map(v___f_485_, v_a_481_, v___x_457_, v___x_458_); +if (v_isShared_484_ == 0) +{ +lean_ctor_set(v___x_483_, 0, v___x_486_); +v___x_488_ = v___x_483_; +goto v_reusejp_487_; +} +else +{ +lean_object* v_reuseFailAlloc_489_; +v_reuseFailAlloc_489_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_489_, 0, v___x_486_); +v___x_488_ = v_reuseFailAlloc_489_; +goto v_reusejp_487_; +} +v_reusejp_487_: +{ +return v___x_488_; +} +} +} +v___jp_460_: +{ +lean_object* v___x_462_; +v___x_462_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_462_, 0, v___y_461_); +return v___x_462_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg___boxed(lean_object* v_mutex_491_, lean_object* v_k_492_, lean_object* v___y_493_){ +_start: +{ +lean_object* v_res_494_; +v_res_494_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_mutex_491_, v_k_492_); +return v_res_494_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6(uint8_t v_sentMessage_495_, lean_object* v___f_496_, uint8_t v___x_497_, lean_object* v_x_498_){ +_start: +{ +uint8_t v___y_501_; +if (lean_obj_tag(v_x_498_) == 0) +{ +lean_object* v_a_507_; lean_object* v___x_509_; uint8_t v_isShared_510_; uint8_t v_isSharedCheck_515_; +lean_dec_ref(v___f_496_); +v_a_507_ = lean_ctor_get(v_x_498_, 0); +v_isSharedCheck_515_ = !lean_is_exclusive(v_x_498_); +if (v_isSharedCheck_515_ == 0) +{ +v___x_509_ = v_x_498_; +v_isShared_510_ = v_isSharedCheck_515_; +goto v_resetjp_508_; +} +else +{ +lean_inc(v_a_507_); +lean_dec(v_x_498_); +v___x_509_ = lean_box(0); +v_isShared_510_ = v_isSharedCheck_515_; +goto v_resetjp_508_; +} +v_resetjp_508_: +{ +lean_object* v___x_512_; +if (v_isShared_510_ == 0) +{ +v___x_512_ = v___x_509_; +goto v_reusejp_511_; +} +else +{ +lean_object* v_reuseFailAlloc_514_; +v_reuseFailAlloc_514_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_514_, 0, v_a_507_); +v___x_512_ = v_reuseFailAlloc_514_; +goto v_reusejp_511_; +} +v_reusejp_511_: +{ +lean_object* v___x_513_; +v___x_513_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_513_, 0, v___x_512_); +return v___x_513_; +} +} +} +else +{ +lean_object* v_a_516_; uint8_t v___x_517_; +v_a_516_ = lean_ctor_get(v_x_498_, 0); +lean_inc(v_a_516_); +lean_dec_ref(v_x_498_); +v___x_517_ = lean_unbox(v_a_516_); +lean_dec(v_a_516_); +if (v___x_517_ == 0) +{ +v___y_501_ = v___x_497_; +goto v___jp_500_; +} +else +{ +v___y_501_ = v_sentMessage_495_; +goto v___jp_500_; +} +} +v___jp_500_: +{ +lean_object* v___x_502_; lean_object* v___x_503_; lean_object* v___x_504_; lean_object* v___x_505_; lean_object* v___x_506_; +v___x_502_ = lean_box(v___y_501_); +v___x_503_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_503_, 0, v___x_502_); +v___x_504_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_504_, 0, v___x_503_); +v___x_505_ = lean_unsigned_to_nat(0u); +v___x_506_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_505_, v_sentMessage_495_, v___x_504_, v___f_496_); +return v___x_506_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6___boxed(lean_object* v_sentMessage_518_, lean_object* v___f_519_, lean_object* v___x_520_, lean_object* v_x_521_, lean_object* v___y_522_){ +_start: +{ +uint8_t v_sentMessage_boxed_523_; uint8_t v___x_15568__boxed_524_; lean_object* v_res_525_; +v_sentMessage_boxed_523_ = lean_unbox(v_sentMessage_518_); +v___x_15568__boxed_524_ = lean_unbox(v___x_520_); +v_res_525_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6(v_sentMessage_boxed_523_, v___f_519_, v___x_15568__boxed_524_, v_x_521_); +return v_res_525_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2(lean_object* v___f_526_, lean_object* v_x_527_){ +_start: +{ +if (lean_obj_tag(v_x_527_) == 0) +{ +lean_object* v_a_529_; lean_object* v___x_531_; uint8_t v_isShared_532_; uint8_t v_isSharedCheck_537_; +lean_dec_ref(v___f_526_); +v_a_529_ = lean_ctor_get(v_x_527_, 0); +v_isSharedCheck_537_ = !lean_is_exclusive(v_x_527_); +if (v_isSharedCheck_537_ == 0) +{ +v___x_531_ = v_x_527_; +v_isShared_532_ = v_isSharedCheck_537_; +goto v_resetjp_530_; +} +else +{ +lean_inc(v_a_529_); +lean_dec(v_x_527_); +v___x_531_ = lean_box(0); +v_isShared_532_ = v_isSharedCheck_537_; +goto v_resetjp_530_; +} +v_resetjp_530_: +{ +lean_object* v___x_534_; +if (v_isShared_532_ == 0) +{ +v___x_534_ = v___x_531_; +goto v_reusejp_533_; +} +else +{ +lean_object* v_reuseFailAlloc_536_; +v_reuseFailAlloc_536_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_536_, 0, v_a_529_); +v___x_534_ = v_reuseFailAlloc_536_; +goto v_reusejp_533_; +} +v_reusejp_533_: +{ +lean_object* v___x_535_; +v___x_535_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_535_, 0, v___x_534_); +return v___x_535_; +} +} +} +else +{ +lean_object* v_a_538_; lean_object* v___x_539_; +v_a_538_ = lean_ctor_get(v_x_527_, 0); +lean_inc(v_a_538_); +lean_dec_ref(v_x_527_); +v___x_539_ = lean_apply_2(v___f_526_, v_a_538_, lean_box(0)); +return v___x_539_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2___boxed(lean_object* v___f_540_, lean_object* v_x_541_, lean_object* v___y_542_){ +_start: +{ +lean_object* v_res_543_; +v_res_543_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2(v___f_540_, v_x_541_); +return v_res_543_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1(lean_object* v___f_544_, lean_object* v_x_545_){ +_start: +{ +if (lean_obj_tag(v_x_545_) == 0) +{ +lean_object* v_a_547_; lean_object* v___x_549_; uint8_t v_isShared_550_; uint8_t v_isSharedCheck_555_; +lean_dec_ref(v___f_544_); +v_a_547_ = lean_ctor_get(v_x_545_, 0); +v_isSharedCheck_555_ = !lean_is_exclusive(v_x_545_); +if (v_isSharedCheck_555_ == 0) +{ +v___x_549_ = v_x_545_; +v_isShared_550_ = v_isSharedCheck_555_; +goto v_resetjp_548_; +} +else +{ +lean_inc(v_a_547_); +lean_dec(v_x_545_); +v___x_549_ = lean_box(0); +v_isShared_550_ = v_isSharedCheck_555_; +goto v_resetjp_548_; +} +v_resetjp_548_: +{ +lean_object* v___x_552_; +if (v_isShared_550_ == 0) +{ +v___x_552_ = v___x_549_; +goto v_reusejp_551_; +} +else +{ +lean_object* v_reuseFailAlloc_554_; +v_reuseFailAlloc_554_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_554_, 0, v_a_547_); +v___x_552_ = v_reuseFailAlloc_554_; +goto v_reusejp_551_; +} +v_reusejp_551_: +{ +lean_object* v___x_553_; +v___x_553_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_553_, 0, v___x_552_); +return v___x_553_; +} +} +} +else +{ +lean_object* v_a_556_; lean_object* v___x_557_; +v_a_556_ = lean_ctor_get(v_x_545_, 0); +lean_inc(v_a_556_); +lean_dec_ref(v_x_545_); +v___x_557_ = lean_apply_2(v___f_544_, v_a_556_, lean_box(0)); +return v___x_557_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1___boxed(lean_object* v___f_558_, lean_object* v_x_559_, lean_object* v___y_560_){ +_start: +{ +lean_object* v_res_561_; +v_res_561_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1(v___f_558_, v_x_559_); +return v_res_561_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0(lean_object* v_connectionContext_562_, uint8_t v_handlerDispatched_563_, lean_object* v_headerTimeout_564_, lean_object* v_expectData_565_, lean_object* v_respStream_566_, lean_object* v_keepAliveTimeout_567_, lean_object* v_currentTimeout_568_, lean_object* v_response_569_, lean_object* v_socket_570_, uint8_t v_requiresData_571_, uint8_t v_sentMessage_572_, lean_object* v_reader_573_, uint8_t v_requestBodyInterested_574_, lean_object* v_requestBody_575_){ +_start: +{ +lean_object* v___y_578_; lean_object* v___y_579_; lean_object* v___y_580_; lean_object* v___y_581_; lean_object* v___y_582_; lean_object* v___y_583_; lean_object* v___y_584_; lean_object* v___y_589_; +if (v_requiresData_571_ == 0) +{ +if (v_handlerDispatched_563_ == 0) +{ +goto v___jp_592_; +} +else +{ +if (lean_obj_tag(v_respStream_566_) == 0) +{ +if (v_sentMessage_572_ == 0) +{ +lean_object* v_state_596_; +v_state_596_ = lean_ctor_get(v_reader_573_, 0); +if (lean_obj_tag(v_state_596_) == 2) +{ +if (v_requestBodyInterested_574_ == 0) +{ +lean_dec_ref(v_socket_570_); +goto v___jp_594_; +} +else +{ +goto v___jp_592_; +} +} +else +{ +lean_dec_ref(v_socket_570_); +goto v___jp_594_; +} +} +else +{ +goto v___jp_592_; +} +} +else +{ +goto v___jp_592_; +} +} +} +else +{ +goto v___jp_592_; +} +v___jp_577_: +{ +lean_object* v___x_585_; lean_object* v___x_586_; lean_object* v___x_587_; +v___x_585_ = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(v___x_585_, 0, v___y_578_); +lean_ctor_set(v___x_585_, 1, v___y_580_); +lean_ctor_set(v___x_585_, 2, v___y_584_); +lean_ctor_set(v___x_585_, 3, v___y_581_); +lean_ctor_set(v___x_585_, 4, v_requestBody_575_); +lean_ctor_set(v___x_585_, 5, v___y_583_); +lean_ctor_set(v___x_585_, 6, v___y_582_); +lean_ctor_set(v___x_585_, 7, v___y_579_); +lean_ctor_set(v___x_585_, 8, v_connectionContext_562_); +v___x_586_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_586_, 0, v___x_585_); +v___x_587_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_587_, 0, v___x_586_); +return v___x_587_; +} +v___jp_588_: +{ +if (v_handlerDispatched_563_ == 0) +{ +lean_object* v___x_590_; +lean_dec_ref(v_response_569_); +v___x_590_ = lean_box(0); +v___y_578_ = v___y_589_; +v___y_579_ = v_headerTimeout_564_; +v___y_580_ = v_expectData_565_; +v___y_581_ = v_respStream_566_; +v___y_582_ = v_keepAliveTimeout_567_; +v___y_583_ = v_currentTimeout_568_; +v___y_584_ = v___x_590_; +goto v___jp_577_; +} +else +{ +lean_object* v___x_591_; +v___x_591_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_591_, 0, v_response_569_); +v___y_578_ = v___y_589_; +v___y_579_ = v_headerTimeout_564_; +v___y_580_ = v_expectData_565_; +v___y_581_ = v_respStream_566_; +v___y_582_ = v_keepAliveTimeout_567_; +v___y_583_ = v_currentTimeout_568_; +v___y_584_ = v___x_591_; +goto v___jp_577_; +} +} +v___jp_592_: +{ +lean_object* v___x_593_; +v___x_593_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_593_, 0, v_socket_570_); +v___y_589_ = v___x_593_; +goto v___jp_588_; +} +v___jp_594_: +{ +lean_object* v___x_595_; +v___x_595_ = lean_box(0); +v___y_589_ = v___x_595_; +goto v___jp_588_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0___boxed(lean_object* v_connectionContext_597_, lean_object* v_handlerDispatched_598_, lean_object* v_headerTimeout_599_, lean_object* v_expectData_600_, lean_object* v_respStream_601_, lean_object* v_keepAliveTimeout_602_, lean_object* v_currentTimeout_603_, lean_object* v_response_604_, lean_object* v_socket_605_, lean_object* v_requiresData_606_, lean_object* v_sentMessage_607_, lean_object* v_reader_608_, lean_object* v_requestBodyInterested_609_, lean_object* v_requestBody_610_, lean_object* v___y_611_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_612_; uint8_t v_requiresData_boxed_613_; uint8_t v_sentMessage_boxed_614_; uint8_t v_requestBodyInterested_boxed_615_; lean_object* v_res_616_; +v_handlerDispatched_boxed_612_ = lean_unbox(v_handlerDispatched_598_); +v_requiresData_boxed_613_ = lean_unbox(v_requiresData_606_); +v_sentMessage_boxed_614_ = lean_unbox(v_sentMessage_607_); +v_requestBodyInterested_boxed_615_ = lean_unbox(v_requestBodyInterested_609_); +v_res_616_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0(v_connectionContext_597_, v_handlerDispatched_boxed_612_, v_headerTimeout_599_, v_expectData_600_, v_respStream_601_, v_keepAliveTimeout_602_, v_currentTimeout_603_, v_response_604_, v_socket_605_, v_requiresData_boxed_613_, v_sentMessage_boxed_614_, v_reader_608_, v_requestBodyInterested_boxed_615_, v_requestBody_610_); +lean_dec_ref(v_reader_608_); +return v_res_616_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3(lean_object* v_connectionContext_621_, uint8_t v_handlerDispatched_622_, lean_object* v_headerTimeout_623_, lean_object* v_expectData_624_, lean_object* v_respStream_625_, lean_object* v_keepAliveTimeout_626_, lean_object* v_currentTimeout_627_, lean_object* v_response_628_, lean_object* v_socket_629_, uint8_t v_requiresData_630_, uint8_t v_sentMessage_631_, lean_object* v_reader_632_, uint8_t v_pullBodyStalled_633_, uint8_t v_requestBodyOpen_634_, lean_object* v_requestStream_635_, uint8_t v_requestBodyInterested_636_){ +_start: +{ +lean_object* v___x_638_; lean_object* v___x_639_; lean_object* v___x_640_; lean_object* v___x_641_; lean_object* v___f_642_; lean_object* v___f_643_; +v___x_638_ = lean_box(v_handlerDispatched_622_); +v___x_639_ = lean_box(v_requiresData_630_); +v___x_640_ = lean_box(v_sentMessage_631_); +v___x_641_ = lean_box(v_requestBodyInterested_636_); +lean_inc_ref(v_reader_632_); +v___f_642_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__0___boxed), 15, 13); +lean_closure_set(v___f_642_, 0, v_connectionContext_621_); +lean_closure_set(v___f_642_, 1, v___x_638_); +lean_closure_set(v___f_642_, 2, v_headerTimeout_623_); +lean_closure_set(v___f_642_, 3, v_expectData_624_); +lean_closure_set(v___f_642_, 4, v_respStream_625_); +lean_closure_set(v___f_642_, 5, v_keepAliveTimeout_626_); +lean_closure_set(v___f_642_, 6, v_currentTimeout_627_); +lean_closure_set(v___f_642_, 7, v_response_628_); +lean_closure_set(v___f_642_, 8, v_socket_629_); +lean_closure_set(v___f_642_, 9, v___x_639_); +lean_closure_set(v___f_642_, 10, v___x_640_); +lean_closure_set(v___f_642_, 11, v_reader_632_); +lean_closure_set(v___f_642_, 12, v___x_641_); +v___f_643_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_643_, 0, v___f_642_); +if (v_sentMessage_631_ == 0) +{ +lean_object* v_state_649_; +v_state_649_ = lean_ctor_get(v_reader_632_, 0); +lean_inc(v_state_649_); +lean_dec_ref(v_reader_632_); +if (lean_obj_tag(v_state_649_) == 2) +{ +lean_object* v___x_651_; uint8_t v_isShared_652_; uint8_t v_isSharedCheck_660_; +v_isSharedCheck_660_ = !lean_is_exclusive(v_state_649_); +if (v_isSharedCheck_660_ == 0) +{ +lean_object* v_unused_661_; +v_unused_661_ = lean_ctor_get(v_state_649_, 0); +lean_dec(v_unused_661_); +v___x_651_ = v_state_649_; +v_isShared_652_ = v_isSharedCheck_660_; +goto v_resetjp_650_; +} +else +{ +lean_dec(v_state_649_); +v___x_651_ = lean_box(0); +v_isShared_652_ = v_isSharedCheck_660_; +goto v_resetjp_650_; +} +v_resetjp_650_: +{ +if (v_pullBodyStalled_633_ == 0) +{ +if (v_requestBodyOpen_634_ == 0) +{ +lean_del_object(v___x_651_); +lean_dec_ref(v_requestStream_635_); +goto v___jp_644_; +} +else +{ +lean_object* v___x_654_; +if (v_isShared_652_ == 0) +{ +lean_ctor_set_tag(v___x_651_, 1); +lean_ctor_set(v___x_651_, 0, v_requestStream_635_); +v___x_654_ = v___x_651_; +goto v_reusejp_653_; +} +else +{ +lean_object* v_reuseFailAlloc_659_; +v_reuseFailAlloc_659_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_659_, 0, v_requestStream_635_); +v___x_654_ = v_reuseFailAlloc_659_; +goto v_reusejp_653_; +} +v_reusejp_653_: +{ +lean_object* v___x_655_; lean_object* v___x_656_; lean_object* v___x_657_; lean_object* v___x_658_; +v___x_655_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_655_, 0, v___x_654_); +v___x_656_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_656_, 0, v___x_655_); +v___x_657_ = lean_unsigned_to_nat(0u); +v___x_658_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_657_, v_pullBodyStalled_633_, v___x_656_, v___f_643_); +return v___x_658_; +} +} +} +else +{ +lean_del_object(v___x_651_); +lean_dec_ref(v_requestStream_635_); +goto v___jp_644_; +} +} +} +else +{ +lean_dec(v_state_649_); +lean_dec_ref(v_requestStream_635_); +goto v___jp_644_; +} +} +else +{ +lean_dec_ref(v_requestStream_635_); +lean_dec_ref(v_reader_632_); +goto v___jp_644_; +} +v___jp_644_: +{ +lean_object* v___x_645_; lean_object* v___x_646_; uint8_t v___x_647_; lean_object* v___x_648_; +v___x_645_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___closed__1)); +v___x_646_ = lean_unsigned_to_nat(0u); +v___x_647_ = 0; +v___x_648_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_646_, v___x_647_, v___x_645_, v___f_643_); +return v___x_648_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___boxed(lean_object** _args){ +lean_object* v_connectionContext_662_ = _args[0]; +lean_object* v_handlerDispatched_663_ = _args[1]; +lean_object* v_headerTimeout_664_ = _args[2]; +lean_object* v_expectData_665_ = _args[3]; +lean_object* v_respStream_666_ = _args[4]; +lean_object* v_keepAliveTimeout_667_ = _args[5]; +lean_object* v_currentTimeout_668_ = _args[6]; +lean_object* v_response_669_ = _args[7]; +lean_object* v_socket_670_ = _args[8]; +lean_object* v_requiresData_671_ = _args[9]; +lean_object* v_sentMessage_672_ = _args[10]; +lean_object* v_reader_673_ = _args[11]; +lean_object* v_pullBodyStalled_674_ = _args[12]; +lean_object* v_requestBodyOpen_675_ = _args[13]; +lean_object* v_requestStream_676_ = _args[14]; +lean_object* v_requestBodyInterested_677_ = _args[15]; +lean_object* v___y_678_ = _args[16]; +_start: +{ +uint8_t v_handlerDispatched_boxed_679_; uint8_t v_requiresData_boxed_680_; uint8_t v_sentMessage_boxed_681_; uint8_t v_pullBodyStalled_boxed_682_; uint8_t v_requestBodyOpen_boxed_683_; uint8_t v_requestBodyInterested_boxed_684_; lean_object* v_res_685_; +v_handlerDispatched_boxed_679_ = lean_unbox(v_handlerDispatched_663_); +v_requiresData_boxed_680_ = lean_unbox(v_requiresData_671_); +v_sentMessage_boxed_681_ = lean_unbox(v_sentMessage_672_); +v_pullBodyStalled_boxed_682_ = lean_unbox(v_pullBodyStalled_674_); +v_requestBodyOpen_boxed_683_ = lean_unbox(v_requestBodyOpen_675_); +v_requestBodyInterested_boxed_684_ = lean_unbox(v_requestBodyInterested_677_); +v_res_685_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3(v_connectionContext_662_, v_handlerDispatched_boxed_679_, v_headerTimeout_664_, v_expectData_665_, v_respStream_666_, v_keepAliveTimeout_667_, v_currentTimeout_668_, v_response_669_, v_socket_670_, v_requiresData_boxed_680_, v_sentMessage_boxed_681_, v_reader_673_, v_pullBodyStalled_boxed_682_, v_requestBodyOpen_boxed_683_, v_requestStream_676_, v_requestBodyInterested_boxed_684_); +return v_res_685_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5(lean_object* v_connectionContext_691_, uint8_t v_handlerDispatched_692_, lean_object* v_headerTimeout_693_, lean_object* v_expectData_694_, lean_object* v_respStream_695_, lean_object* v_keepAliveTimeout_696_, lean_object* v_currentTimeout_697_, lean_object* v_response_698_, lean_object* v_socket_699_, uint8_t v_requiresData_700_, uint8_t v_sentMessage_701_, lean_object* v_reader_702_, uint8_t v_pullBodyStalled_703_, lean_object* v_requestStream_704_, uint8_t v_requestBodyOpen_705_){ +_start: +{ +lean_object* v___x_707_; lean_object* v___x_708_; lean_object* v___x_709_; lean_object* v___x_710_; lean_object* v___x_711_; lean_object* v___f_712_; lean_object* v___f_713_; +v___x_707_ = lean_box(v_handlerDispatched_692_); +v___x_708_ = lean_box(v_requiresData_700_); +v___x_709_ = lean_box(v_sentMessage_701_); +v___x_710_ = lean_box(v_pullBodyStalled_703_); +v___x_711_ = lean_box(v_requestBodyOpen_705_); +lean_inc_ref(v_requestStream_704_); +lean_inc_ref(v_reader_702_); +v___f_712_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__3___boxed), 17, 15); +lean_closure_set(v___f_712_, 0, v_connectionContext_691_); +lean_closure_set(v___f_712_, 1, v___x_707_); +lean_closure_set(v___f_712_, 2, v_headerTimeout_693_); +lean_closure_set(v___f_712_, 3, v_expectData_694_); +lean_closure_set(v___f_712_, 4, v_respStream_695_); +lean_closure_set(v___f_712_, 5, v_keepAliveTimeout_696_); +lean_closure_set(v___f_712_, 6, v_currentTimeout_697_); +lean_closure_set(v___f_712_, 7, v_response_698_); +lean_closure_set(v___f_712_, 8, v_socket_699_); +lean_closure_set(v___f_712_, 9, v___x_708_); +lean_closure_set(v___f_712_, 10, v___x_709_); +lean_closure_set(v___f_712_, 11, v_reader_702_); +lean_closure_set(v___f_712_, 12, v___x_710_); +lean_closure_set(v___f_712_, 13, v___x_711_); +lean_closure_set(v___f_712_, 14, v_requestStream_704_); +v___f_713_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_713_, 0, v___f_712_); +if (v_sentMessage_701_ == 0) +{ +lean_object* v_state_719_; +v_state_719_ = lean_ctor_get(v_reader_702_, 0); +lean_inc(v_state_719_); +lean_dec_ref(v_reader_702_); +if (lean_obj_tag(v_state_719_) == 2) +{ +lean_dec_ref(v_state_719_); +if (v_requestBodyOpen_705_ == 0) +{ +lean_dec_ref(v_requestStream_704_); +goto v___jp_714_; +} +else +{ +lean_object* v___x_720_; lean_object* v___x_721_; lean_object* v___x_722_; +v___x_720_ = l_Std_Http_Body_Stream_hasInterest(v_requestStream_704_); +v___x_721_ = lean_unsigned_to_nat(0u); +v___x_722_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_721_, v_sentMessage_701_, v___x_720_, v___f_713_); +return v___x_722_; +} +} +else +{ +lean_dec(v_state_719_); +lean_dec_ref(v_requestStream_704_); +goto v___jp_714_; +} +} +else +{ +lean_dec_ref(v_requestStream_704_); +lean_dec_ref(v_reader_702_); +goto v___jp_714_; +} +v___jp_714_: +{ +uint8_t v___x_715_; lean_object* v___x_716_; lean_object* v___x_717_; lean_object* v___x_718_; +v___x_715_ = 0; +v___x_716_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___closed__1)); +v___x_717_ = lean_unsigned_to_nat(0u); +v___x_718_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_717_, v___x_715_, v___x_716_, v___f_713_); +return v___x_718_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___boxed(lean_object* v_connectionContext_723_, lean_object* v_handlerDispatched_724_, lean_object* v_headerTimeout_725_, lean_object* v_expectData_726_, lean_object* v_respStream_727_, lean_object* v_keepAliveTimeout_728_, lean_object* v_currentTimeout_729_, lean_object* v_response_730_, lean_object* v_socket_731_, lean_object* v_requiresData_732_, lean_object* v_sentMessage_733_, lean_object* v_reader_734_, lean_object* v_pullBodyStalled_735_, lean_object* v_requestStream_736_, lean_object* v_requestBodyOpen_737_, lean_object* v___y_738_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_739_; uint8_t v_requiresData_boxed_740_; uint8_t v_sentMessage_boxed_741_; uint8_t v_pullBodyStalled_boxed_742_; uint8_t v_requestBodyOpen_boxed_743_; lean_object* v_res_744_; +v_handlerDispatched_boxed_739_ = lean_unbox(v_handlerDispatched_724_); +v_requiresData_boxed_740_ = lean_unbox(v_requiresData_732_); +v_sentMessage_boxed_741_ = lean_unbox(v_sentMessage_733_); +v_pullBodyStalled_boxed_742_ = lean_unbox(v_pullBodyStalled_735_); +v_requestBodyOpen_boxed_743_ = lean_unbox(v_requestBodyOpen_737_); +v_res_744_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5(v_connectionContext_723_, v_handlerDispatched_boxed_739_, v_headerTimeout_725_, v_expectData_726_, v_respStream_727_, v_keepAliveTimeout_728_, v_currentTimeout_729_, v_response_730_, v_socket_731_, v_requiresData_boxed_740_, v_sentMessage_boxed_741_, v_reader_734_, v_pullBodyStalled_boxed_742_, v_requestStream_736_, v_requestBodyOpen_boxed_743_); +return v_res_744_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7(uint8_t v_sentMessage_745_, lean_object* v___f_746_, lean_object* v___y_747_){ +_start: +{ +lean_object* v___x_749_; lean_object* v___x_750_; lean_object* v___x_751_; lean_object* v___x_752_; lean_object* v___x_753_; +v___x_749_ = lean_st_ref_get(v___y_747_); +v___x_750_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_750_, 0, v___x_749_); +v___x_751_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_751_, 0, v___x_750_); +v___x_752_ = lean_unsigned_to_nat(0u); +v___x_753_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_752_, v_sentMessage_745_, v___x_751_, v___f_746_); +return v___x_753_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7___boxed(lean_object* v_sentMessage_754_, lean_object* v___f_755_, lean_object* v___y_756_, lean_object* v___y_757_){ +_start: +{ +uint8_t v_sentMessage_boxed_758_; lean_object* v_res_759_; +v_sentMessage_boxed_758_ = lean_unbox(v_sentMessage_754_); +v_res_759_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7(v_sentMessage_boxed_758_, v___f_755_, v___y_756_); +lean_dec(v___y_756_); +return v_res_759_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0(lean_object* v_x_760_){ +_start: +{ +if (lean_obj_tag(v_x_760_) == 0) +{ +lean_object* v_a_762_; lean_object* v___x_764_; uint8_t v_isShared_765_; uint8_t v_isSharedCheck_770_; +v_a_762_ = lean_ctor_get(v_x_760_, 0); +v_isSharedCheck_770_ = !lean_is_exclusive(v_x_760_); +if (v_isSharedCheck_770_ == 0) +{ +v___x_764_ = v_x_760_; +v_isShared_765_ = v_isSharedCheck_770_; +goto v_resetjp_763_; +} +else +{ +lean_inc(v_a_762_); +lean_dec(v_x_760_); +v___x_764_ = lean_box(0); +v_isShared_765_ = v_isSharedCheck_770_; +goto v_resetjp_763_; +} +v_resetjp_763_: +{ +lean_object* v___x_767_; +if (v_isShared_765_ == 0) +{ +v___x_767_ = v___x_764_; +goto v_reusejp_766_; +} +else +{ +lean_object* v_reuseFailAlloc_769_; +v_reuseFailAlloc_769_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_769_, 0, v_a_762_); +v___x_767_ = v_reuseFailAlloc_769_; +goto v_reusejp_766_; +} +v_reusejp_766_: +{ +lean_object* v___x_768_; +v___x_768_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_768_, 0, v___x_767_); +return v___x_768_; +} +} +} +else +{ +lean_object* v_a_771_; lean_object* v___x_773_; uint8_t v_isShared_774_; uint8_t v_isSharedCheck_781_; +v_a_771_ = lean_ctor_get(v_x_760_, 0); +v_isSharedCheck_781_ = !lean_is_exclusive(v_x_760_); +if (v_isSharedCheck_781_ == 0) +{ +v___x_773_ = v_x_760_; +v_isShared_774_ = v_isSharedCheck_781_; +goto v_resetjp_772_; +} +else +{ +lean_inc(v_a_771_); +lean_dec(v_x_760_); +v___x_773_ = lean_box(0); +v_isShared_774_ = v_isSharedCheck_781_; +goto v_resetjp_772_; +} +v_resetjp_772_: +{ +uint8_t v_closed_775_; lean_object* v___x_776_; lean_object* v___x_778_; +v_closed_775_ = lean_ctor_get_uint8(v_a_771_, sizeof(void*)*5); +lean_dec(v_a_771_); +v___x_776_ = lean_box(v_closed_775_); +if (v_isShared_774_ == 0) +{ +lean_ctor_set(v___x_773_, 0, v___x_776_); +v___x_778_ = v___x_773_; +goto v_reusejp_777_; +} +else +{ +lean_object* v_reuseFailAlloc_780_; +v_reuseFailAlloc_780_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_780_, 0, v___x_776_); +v___x_778_ = v_reuseFailAlloc_780_; +goto v_reusejp_777_; +} +v_reusejp_777_: +{ +lean_object* v___x_779_; +v___x_779_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_779_, 0, v___x_778_); +return v___x_779_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0___boxed(lean_object* v_x_782_, lean_object* v___y_783_){ +_start: +{ +lean_object* v_res_784_; +v_res_784_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__0(v_x_782_); +return v_res_784_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg(lean_object* v_socket_786_, lean_object* v_connectionContext_787_, lean_object* v_state_788_){ +_start: +{ +lean_object* v_machine_790_; lean_object* v_writer_791_; lean_object* v_requestStream_792_; lean_object* v_keepAliveTimeout_793_; lean_object* v_currentTimeout_794_; lean_object* v_headerTimeout_795_; lean_object* v_response_796_; lean_object* v_respStream_797_; uint8_t v_requiresData_798_; lean_object* v_expectData_799_; uint8_t v_handlerDispatched_800_; lean_object* v_reader_801_; uint8_t v_pullBodyStalled_802_; uint8_t v_sentMessage_803_; lean_object* v___x_804_; lean_object* v___x_805_; lean_object* v___x_806_; lean_object* v___x_807_; lean_object* v___f_808_; lean_object* v___f_809_; uint8_t v___y_811_; +v_machine_790_ = lean_ctor_get(v_state_788_, 0); +lean_inc_ref(v_machine_790_); +v_writer_791_ = lean_ctor_get(v_machine_790_, 1); +lean_inc_ref(v_writer_791_); +v_requestStream_792_ = lean_ctor_get(v_state_788_, 1); +lean_inc_ref_n(v_requestStream_792_, 2); +v_keepAliveTimeout_793_ = lean_ctor_get(v_state_788_, 2); +lean_inc(v_keepAliveTimeout_793_); +v_currentTimeout_794_ = lean_ctor_get(v_state_788_, 3); +lean_inc(v_currentTimeout_794_); +v_headerTimeout_795_ = lean_ctor_get(v_state_788_, 4); +lean_inc(v_headerTimeout_795_); +v_response_796_ = lean_ctor_get(v_state_788_, 5); +lean_inc_ref(v_response_796_); +v_respStream_797_ = lean_ctor_get(v_state_788_, 6); +lean_inc(v_respStream_797_); +v_requiresData_798_ = lean_ctor_get_uint8(v_state_788_, sizeof(void*)*9); +v_expectData_799_ = lean_ctor_get(v_state_788_, 7); +lean_inc(v_expectData_799_); +v_handlerDispatched_800_ = lean_ctor_get_uint8(v_state_788_, sizeof(void*)*9 + 1); +lean_dec_ref(v_state_788_); +v_reader_801_ = lean_ctor_get(v_machine_790_, 0); +lean_inc_ref_n(v_reader_801_, 2); +v_pullBodyStalled_802_ = lean_ctor_get_uint8(v_machine_790_, sizeof(void*)*6 + 2); +lean_dec_ref(v_machine_790_); +v_sentMessage_803_ = lean_ctor_get_uint8(v_writer_791_, sizeof(void*)*6); +lean_dec_ref(v_writer_791_); +v___x_804_ = lean_box(v_handlerDispatched_800_); +v___x_805_ = lean_box(v_requiresData_798_); +v___x_806_ = lean_box(v_sentMessage_803_); +v___x_807_ = lean_box(v_pullBodyStalled_802_); +v___f_808_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__5___boxed), 16, 14); +lean_closure_set(v___f_808_, 0, v_connectionContext_787_); +lean_closure_set(v___f_808_, 1, v___x_804_); +lean_closure_set(v___f_808_, 2, v_headerTimeout_795_); +lean_closure_set(v___f_808_, 3, v_expectData_799_); +lean_closure_set(v___f_808_, 4, v_respStream_797_); +lean_closure_set(v___f_808_, 5, v_keepAliveTimeout_793_); +lean_closure_set(v___f_808_, 6, v_currentTimeout_794_); +lean_closure_set(v___f_808_, 7, v_response_796_); +lean_closure_set(v___f_808_, 8, v_socket_786_); +lean_closure_set(v___f_808_, 9, v___x_805_); +lean_closure_set(v___f_808_, 10, v___x_806_); +lean_closure_set(v___f_808_, 11, v_reader_801_); +lean_closure_set(v___f_808_, 12, v___x_807_); +lean_closure_set(v___f_808_, 13, v_requestStream_792_); +v___f_809_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__2___boxed), 3, 1); +lean_closure_set(v___f_809_, 0, v___f_808_); +if (v_sentMessage_803_ == 0) +{ +lean_object* v_state_817_; +v_state_817_ = lean_ctor_get(v_reader_801_, 0); +lean_inc(v_state_817_); +lean_dec_ref(v_reader_801_); +if (lean_obj_tag(v_state_817_) == 2) +{ +lean_object* v___f_818_; lean_object* v___x_819_; lean_object* v___f_820_; lean_object* v___x_821_; uint8_t v___x_822_; lean_object* v___x_823_; lean_object* v___x_824_; lean_object* v___f_825_; lean_object* v___x_826_; lean_object* v___x_827_; +lean_dec_ref(v_state_817_); +v___f_818_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___closed__0)); +v___x_819_ = lean_box(v_sentMessage_803_); +v___f_820_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__7___boxed), 4, 2); +lean_closure_set(v___f_820_, 0, v___x_819_); +lean_closure_set(v___f_820_, 1, v___f_818_); +v___x_821_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_792_, v___f_820_); +v___x_822_ = 1; +v___x_823_ = lean_box(v_sentMessage_803_); +v___x_824_ = lean_box(v___x_822_); +v___f_825_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___lam__6___boxed), 5, 3); +lean_closure_set(v___f_825_, 0, v___x_823_); +lean_closure_set(v___f_825_, 1, v___f_809_); +lean_closure_set(v___f_825_, 2, v___x_824_); +v___x_826_ = lean_unsigned_to_nat(0u); +v___x_827_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_826_, v_sentMessage_803_, v___x_821_, v___f_825_); +return v___x_827_; +} +else +{ +lean_dec(v_state_817_); +lean_dec_ref(v_requestStream_792_); +v___y_811_ = v_sentMessage_803_; +goto v___jp_810_; +} +} +else +{ +uint8_t v___x_828_; +lean_dec_ref(v_reader_801_); +lean_dec_ref(v_requestStream_792_); +v___x_828_ = 0; +v___y_811_ = v___x_828_; +goto v___jp_810_; +} +v___jp_810_: +{ +lean_object* v___x_812_; lean_object* v___x_813_; lean_object* v___x_814_; lean_object* v___x_815_; lean_object* v___x_816_; +v___x_812_ = lean_box(v___y_811_); +v___x_813_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_813_, 0, v___x_812_); +v___x_814_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_814_, 0, v___x_813_); +v___x_815_ = lean_unsigned_to_nat(0u); +v___x_816_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_815_, v___y_811_, v___x_814_, v___f_809_); +return v___x_816_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg___boxed(lean_object* v_socket_829_, lean_object* v_connectionContext_830_, lean_object* v_state_831_, lean_object* v_a_832_){ +_start: +{ +lean_object* v_res_833_; +v_res_833_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg(v_socket_829_, v_connectionContext_830_, v_state_831_); +return v_res_833_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2(lean_object* v_close_834_, lean_object* v___f_835_, lean_object* v___f_836_, lean_object* v_x_837_){ +_start: +{ +if (lean_obj_tag(v_x_837_) == 0) +{ +lean_object* v_a_839_; lean_object* v___x_841_; uint8_t v_isShared_842_; uint8_t v_isSharedCheck_847_; +lean_dec_ref(v___f_836_); +lean_dec_ref(v___f_835_); +lean_dec_ref(v_close_834_); +v_a_839_ = lean_ctor_get(v_x_837_, 0); +v_isSharedCheck_847_ = !lean_is_exclusive(v_x_837_); +if (v_isSharedCheck_847_ == 0) +{ +v___x_841_ = v_x_837_; +v_isShared_842_ = v_isSharedCheck_847_; +goto v_resetjp_840_; +} +else +{ +lean_inc(v_a_839_); +lean_dec(v_x_837_); +v___x_841_ = lean_box(0); +v_isShared_842_ = v_isSharedCheck_847_; +goto v_resetjp_840_; +} +v_resetjp_840_: +{ +lean_object* v___x_844_; +if (v_isShared_842_ == 0) +{ +v___x_844_ = v___x_841_; +goto v_reusejp_843_; +} +else +{ +lean_object* v_reuseFailAlloc_846_; +v_reuseFailAlloc_846_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_846_, 0, v_a_839_); +v___x_844_ = v_reuseFailAlloc_846_; +goto v_reusejp_843_; +} +v_reusejp_843_: +{ +lean_object* v___x_845_; +v___x_845_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_845_, 0, v___x_844_); +return v___x_845_; +} +} +} +else +{ +lean_object* v_a_848_; uint8_t v___x_849_; +v_a_848_ = lean_ctor_get(v_x_837_, 0); +lean_inc(v_a_848_); +lean_dec_ref(v_x_837_); +v___x_849_ = lean_unbox(v_a_848_); +if (v___x_849_ == 0) +{ +lean_object* v___x_850_; lean_object* v___x_851_; uint8_t v___x_852_; lean_object* v___x_853_; +lean_dec_ref(v___f_836_); +v___x_850_ = lean_apply_1(v_close_834_, lean_box(0)); +v___x_851_ = lean_unsigned_to_nat(0u); +v___x_852_ = lean_unbox(v_a_848_); +lean_dec(v_a_848_); +v___x_853_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_851_, v___x_852_, v___x_850_, v___f_835_); +return v___x_853_; +} +else +{ +lean_object* v___x_854_; lean_object* v___x_855_; +lean_dec(v_a_848_); +lean_dec_ref(v___f_835_); +lean_dec_ref(v_close_834_); +v___x_854_ = lean_box(0); +v___x_855_ = lean_apply_2(v___f_836_, v___x_854_, lean_box(0)); +return v___x_855_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2___boxed(lean_object* v_close_856_, lean_object* v___f_857_, lean_object* v___f_858_, lean_object* v_x_859_, lean_object* v___y_860_){ +_start: +{ +lean_object* v_res_861_; +v_res_861_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2(v_close_856_, v___f_857_, v___f_858_, v_x_859_); +return v_res_861_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(lean_object* v_as_862_, size_t v_i_863_, size_t v_stop_864_, lean_object* v_b_865_){ +_start: +{ +uint8_t v___x_866_; +v___x_866_ = lean_usize_dec_eq(v_i_863_, v_stop_864_); +if (v___x_866_ == 0) +{ +lean_object* v___x_867_; lean_object* v_data_868_; lean_object* v___x_869_; lean_object* v___x_870_; size_t v___x_871_; size_t v___x_872_; +v___x_867_ = lean_array_uget_borrowed(v_as_862_, v_i_863_); +v_data_868_ = lean_ctor_get(v___x_867_, 0); +v___x_869_ = lean_byte_array_size(v_data_868_); +v___x_870_ = lean_nat_add(v_b_865_, v___x_869_); +lean_dec(v_b_865_); +v___x_871_ = ((size_t)1ULL); +v___x_872_ = lean_usize_add(v_i_863_, v___x_871_); +v_i_863_ = v___x_872_; +v_b_865_ = v___x_870_; +goto _start; +} +else +{ +return v_b_865_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4___boxed(lean_object* v_as_874_, lean_object* v_i_875_, lean_object* v_stop_876_, lean_object* v_b_877_){ +_start: +{ +size_t v_i_boxed_878_; size_t v_stop_boxed_879_; lean_object* v_res_880_; +v_i_boxed_878_ = lean_unbox_usize(v_i_875_); +lean_dec(v_i_875_); +v_stop_boxed_879_ = lean_unbox_usize(v_stop_876_); +lean_dec(v_stop_876_); +v_res_880_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(v_as_874_, v_i_boxed_878_, v_stop_boxed_879_, v_b_877_); +lean_dec_ref(v_as_874_); +return v_res_880_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3(lean_object* v_body_881_, lean_object* v_machine_882_, lean_object* v_isClosed_883_, lean_object* v___f_884_, lean_object* v_x_885_){ +_start: +{ +lean_object* v___y_888_; +if (lean_obj_tag(v_x_885_) == 0) +{ +lean_object* v_a_893_; lean_object* v___x_895_; uint8_t v_isShared_896_; uint8_t v_isSharedCheck_901_; +lean_dec_ref(v___f_884_); +lean_dec_ref(v_isClosed_883_); +lean_dec_ref(v_machine_882_); +lean_dec(v_body_881_); +v_a_893_ = lean_ctor_get(v_x_885_, 0); +v_isSharedCheck_901_ = !lean_is_exclusive(v_x_885_); +if (v_isSharedCheck_901_ == 0) +{ +v___x_895_ = v_x_885_; +v_isShared_896_ = v_isSharedCheck_901_; +goto v_resetjp_894_; +} +else +{ +lean_inc(v_a_893_); +lean_dec(v_x_885_); +v___x_895_ = lean_box(0); +v_isShared_896_ = v_isSharedCheck_901_; +goto v_resetjp_894_; +} +v_resetjp_894_: +{ +lean_object* v___x_898_; +if (v_isShared_896_ == 0) +{ +v___x_898_ = v___x_895_; +goto v_reusejp_897_; +} +else +{ +lean_object* v_reuseFailAlloc_900_; +v_reuseFailAlloc_900_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_900_, 0, v_a_893_); +v___x_898_ = v_reuseFailAlloc_900_; +goto v_reusejp_897_; +} +v_reusejp_897_: +{ +lean_object* v___x_899_; +v___x_899_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_899_, 0, v___x_898_); +return v___x_899_; +} +} +} +else +{ +lean_object* v_a_902_; lean_object* v___x_904_; uint8_t v_isShared_905_; uint8_t v_isSharedCheck_968_; +v_a_902_ = lean_ctor_get(v_x_885_, 0); +v_isSharedCheck_968_ = !lean_is_exclusive(v_x_885_); +if (v_isSharedCheck_968_ == 0) +{ +v___x_904_ = v_x_885_; +v_isShared_905_ = v_isSharedCheck_968_; +goto v_resetjp_903_; +} +else +{ +lean_inc(v_a_902_); +lean_dec(v_x_885_); +v___x_904_ = lean_box(0); +v_isShared_905_ = v_isSharedCheck_968_; +goto v_resetjp_903_; +} +v_resetjp_903_: +{ +if (lean_obj_tag(v_a_902_) == 0) +{ +lean_object* v___x_906_; lean_object* v___x_907_; lean_object* v___x_909_; +lean_dec_ref(v___f_884_); +lean_dec_ref(v_isClosed_883_); +v___x_906_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_906_, 0, v_body_881_); +v___x_907_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_907_, 0, v_machine_882_); +lean_ctor_set(v___x_907_, 1, v___x_906_); +if (v_isShared_905_ == 0) +{ +lean_ctor_set(v___x_904_, 0, v___x_907_); +v___x_909_ = v___x_904_; +goto v_reusejp_908_; +} +else +{ +lean_object* v_reuseFailAlloc_911_; +v_reuseFailAlloc_911_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_911_, 0, v___x_907_); +v___x_909_ = v_reuseFailAlloc_911_; +goto v_reusejp_908_; +} +v_reusejp_908_: +{ +lean_object* v___x_910_; +v___x_910_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_910_, 0, v___x_909_); +return v___x_910_; +} +} +else +{ +lean_object* v_val_912_; +lean_del_object(v___x_904_); +v_val_912_ = lean_ctor_get(v_a_902_, 0); +lean_inc(v_val_912_); +lean_dec_ref(v_a_902_); +if (lean_obj_tag(v_val_912_) == 0) +{ +lean_object* v___x_913_; lean_object* v___x_914_; uint8_t v___x_915_; lean_object* v___x_916_; +lean_dec_ref(v_machine_882_); +lean_dec(v_body_881_); +v___x_913_ = lean_apply_1(v_isClosed_883_, lean_box(0)); +v___x_914_ = lean_unsigned_to_nat(0u); +v___x_915_ = 0; +v___x_916_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_914_, v___x_915_, v___x_913_, v___f_884_); +return v___x_916_; +} +else +{ +lean_object* v_val_917_; lean_object* v___x_918_; lean_object* v___x_919_; lean_object* v___x_920_; lean_object* v___x_921_; lean_object* v___x_922_; uint8_t v___x_923_; +lean_dec_ref(v___f_884_); +lean_dec_ref(v_isClosed_883_); +v_val_917_ = lean_ctor_get(v_val_912_, 0); +lean_inc(v_val_917_); +lean_dec_ref(v_val_912_); +v___x_918_ = lean_unsigned_to_nat(1u); +v___x_919_ = lean_mk_empty_array_with_capacity(v___x_918_); +v___x_920_ = lean_array_push(v___x_919_, v_val_917_); +v___x_921_ = lean_array_get_size(v___x_920_); +v___x_922_ = lean_unsigned_to_nat(0u); +v___x_923_ = lean_nat_dec_eq(v___x_921_, v___x_922_); +if (v___x_923_ == 0) +{ +lean_object* v_reader_924_; lean_object* v_writer_925_; lean_object* v_config_926_; lean_object* v_events_927_; lean_object* v_error_928_; lean_object* v_instant_929_; uint8_t v_keepAlive_930_; uint8_t v_forcedFlush_931_; uint8_t v_pullBodyStalled_932_; lean_object* v___x_934_; uint8_t v_isShared_935_; uint8_t v_isSharedCheck_967_; +v_reader_924_ = lean_ctor_get(v_machine_882_, 0); +v_writer_925_ = lean_ctor_get(v_machine_882_, 1); +v_config_926_ = lean_ctor_get(v_machine_882_, 2); +v_events_927_ = lean_ctor_get(v_machine_882_, 3); +v_error_928_ = lean_ctor_get(v_machine_882_, 4); +v_instant_929_ = lean_ctor_get(v_machine_882_, 5); +v_keepAlive_930_ = lean_ctor_get_uint8(v_machine_882_, sizeof(void*)*6); +v_forcedFlush_931_ = lean_ctor_get_uint8(v_machine_882_, sizeof(void*)*6 + 1); +v_pullBodyStalled_932_ = lean_ctor_get_uint8(v_machine_882_, sizeof(void*)*6 + 2); +v_isSharedCheck_967_ = !lean_is_exclusive(v_machine_882_); +if (v_isSharedCheck_967_ == 0) +{ +v___x_934_ = v_machine_882_; +v_isShared_935_ = v_isSharedCheck_967_; +goto v_resetjp_933_; +} +else +{ +lean_inc(v_instant_929_); +lean_inc(v_error_928_); +lean_inc(v_events_927_); +lean_inc(v_config_926_); +lean_inc(v_writer_925_); +lean_inc(v_reader_924_); +lean_dec(v_machine_882_); +v___x_934_ = lean_box(0); +v_isShared_935_ = v_isSharedCheck_967_; +goto v_resetjp_933_; +} +v_resetjp_933_: +{ +lean_object* v___y_937_; uint8_t v___x_959_; +v___x_959_ = lean_nat_dec_lt(v___x_922_, v___x_921_); +if (v___x_959_ == 0) +{ +v___y_937_ = v___x_922_; +goto v___jp_936_; +} +else +{ +uint8_t v___x_960_; +v___x_960_ = lean_nat_dec_le(v___x_921_, v___x_921_); +if (v___x_960_ == 0) +{ +if (v___x_959_ == 0) +{ +v___y_937_ = v___x_922_; +goto v___jp_936_; +} +else +{ +size_t v___x_961_; size_t v___x_962_; lean_object* v___x_963_; +v___x_961_ = ((size_t)0ULL); +v___x_962_ = lean_usize_of_nat(v___x_921_); +v___x_963_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(v___x_920_, v___x_961_, v___x_962_, v___x_922_); +v___y_937_ = v___x_963_; +goto v___jp_936_; +} +} +else +{ +size_t v___x_964_; size_t v___x_965_; lean_object* v___x_966_; +v___x_964_ = ((size_t)0ULL); +v___x_965_ = lean_usize_of_nat(v___x_921_); +v___x_966_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(v___x_920_, v___x_964_, v___x_965_, v___x_922_); +v___y_937_ = v___x_966_; +goto v___jp_936_; +} +} +v___jp_936_: +{ +lean_object* v_userData_938_; lean_object* v_outputData_939_; lean_object* v_state_940_; lean_object* v_knownSize_941_; lean_object* v_messageHead_942_; uint8_t v_sentMessage_943_; uint8_t v_userClosedBody_944_; uint8_t v_omitBody_945_; lean_object* v_userDataBytes_946_; lean_object* v___x_948_; uint8_t v_isShared_949_; uint8_t v_isSharedCheck_958_; +v_userData_938_ = lean_ctor_get(v_writer_925_, 0); +v_outputData_939_ = lean_ctor_get(v_writer_925_, 1); +v_state_940_ = lean_ctor_get(v_writer_925_, 2); +v_knownSize_941_ = lean_ctor_get(v_writer_925_, 3); +v_messageHead_942_ = lean_ctor_get(v_writer_925_, 4); +v_sentMessage_943_ = lean_ctor_get_uint8(v_writer_925_, sizeof(void*)*6); +v_userClosedBody_944_ = lean_ctor_get_uint8(v_writer_925_, sizeof(void*)*6 + 1); +v_omitBody_945_ = lean_ctor_get_uint8(v_writer_925_, sizeof(void*)*6 + 2); +v_userDataBytes_946_ = lean_ctor_get(v_writer_925_, 5); +v_isSharedCheck_958_ = !lean_is_exclusive(v_writer_925_); +if (v_isSharedCheck_958_ == 0) +{ +v___x_948_ = v_writer_925_; +v_isShared_949_ = v_isSharedCheck_958_; +goto v_resetjp_947_; +} +else +{ +lean_inc(v_userDataBytes_946_); +lean_inc(v_messageHead_942_); +lean_inc(v_knownSize_941_); +lean_inc(v_state_940_); +lean_inc(v_outputData_939_); +lean_inc(v_userData_938_); +lean_dec(v_writer_925_); +v___x_948_ = lean_box(0); +v_isShared_949_ = v_isSharedCheck_958_; +goto v_resetjp_947_; +} +v_resetjp_947_: +{ +lean_object* v___x_950_; lean_object* v___x_951_; lean_object* v___x_953_; +v___x_950_ = l_Array_append___redArg(v_userData_938_, v___x_920_); +lean_dec_ref(v___x_920_); +v___x_951_ = lean_nat_add(v_userDataBytes_946_, v___y_937_); +lean_dec(v___y_937_); +lean_dec(v_userDataBytes_946_); +if (v_isShared_949_ == 0) +{ +lean_ctor_set(v___x_948_, 5, v___x_951_); +lean_ctor_set(v___x_948_, 0, v___x_950_); +v___x_953_ = v___x_948_; +goto v_reusejp_952_; +} +else +{ +lean_object* v_reuseFailAlloc_957_; +v_reuseFailAlloc_957_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_957_, 0, v___x_950_); +lean_ctor_set(v_reuseFailAlloc_957_, 1, v_outputData_939_); +lean_ctor_set(v_reuseFailAlloc_957_, 2, v_state_940_); +lean_ctor_set(v_reuseFailAlloc_957_, 3, v_knownSize_941_); +lean_ctor_set(v_reuseFailAlloc_957_, 4, v_messageHead_942_); +lean_ctor_set(v_reuseFailAlloc_957_, 5, v___x_951_); +lean_ctor_set_uint8(v_reuseFailAlloc_957_, sizeof(void*)*6, v_sentMessage_943_); +lean_ctor_set_uint8(v_reuseFailAlloc_957_, sizeof(void*)*6 + 1, v_userClosedBody_944_); +lean_ctor_set_uint8(v_reuseFailAlloc_957_, sizeof(void*)*6 + 2, v_omitBody_945_); +v___x_953_ = v_reuseFailAlloc_957_; +goto v_reusejp_952_; +} +v_reusejp_952_: +{ +lean_object* v___x_955_; +if (v_isShared_935_ == 0) +{ +lean_ctor_set(v___x_934_, 1, v___x_953_); +v___x_955_ = v___x_934_; +goto v_reusejp_954_; +} +else +{ +lean_object* v_reuseFailAlloc_956_; +v_reuseFailAlloc_956_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_956_, 0, v_reader_924_); +lean_ctor_set(v_reuseFailAlloc_956_, 1, v___x_953_); +lean_ctor_set(v_reuseFailAlloc_956_, 2, v_config_926_); +lean_ctor_set(v_reuseFailAlloc_956_, 3, v_events_927_); +lean_ctor_set(v_reuseFailAlloc_956_, 4, v_error_928_); +lean_ctor_set(v_reuseFailAlloc_956_, 5, v_instant_929_); +lean_ctor_set_uint8(v_reuseFailAlloc_956_, sizeof(void*)*6, v_keepAlive_930_); +lean_ctor_set_uint8(v_reuseFailAlloc_956_, sizeof(void*)*6 + 1, v_forcedFlush_931_); +lean_ctor_set_uint8(v_reuseFailAlloc_956_, sizeof(void*)*6 + 2, v_pullBodyStalled_932_); +v___x_955_ = v_reuseFailAlloc_956_; +goto v_reusejp_954_; +} +v_reusejp_954_: +{ +v___y_888_ = v___x_955_; +goto v___jp_887_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v___x_920_); +v___y_888_ = v_machine_882_; +goto v___jp_887_; +} +} +} +} +} +v___jp_887_: +{ +lean_object* v___x_889_; lean_object* v___x_890_; lean_object* v___x_891_; lean_object* v___x_892_; +v___x_889_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_889_, 0, v_body_881_); +v___x_890_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_890_, 0, v___y_888_); +lean_ctor_set(v___x_890_, 1, v___x_889_); +v___x_891_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_891_, 0, v___x_890_); +v___x_892_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_892_, 0, v___x_891_); +return v___x_892_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3___boxed(lean_object* v_body_969_, lean_object* v_machine_970_, lean_object* v_isClosed_971_, lean_object* v___f_972_, lean_object* v_x_973_, lean_object* v___y_974_){ +_start: +{ +lean_object* v_res_975_; +v_res_975_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3(v_body_969_, v_machine_970_, v_isClosed_971_, v___f_972_, v_x_973_); +return v_res_975_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1(lean_object* v___f_976_, lean_object* v_x_977_){ +_start: +{ +if (lean_obj_tag(v_x_977_) == 0) +{ +lean_object* v_a_979_; lean_object* v___x_981_; uint8_t v_isShared_982_; uint8_t v_isSharedCheck_987_; +lean_dec_ref(v___f_976_); +v_a_979_ = lean_ctor_get(v_x_977_, 0); +v_isSharedCheck_987_ = !lean_is_exclusive(v_x_977_); +if (v_isSharedCheck_987_ == 0) +{ +v___x_981_ = v_x_977_; +v_isShared_982_ = v_isSharedCheck_987_; +goto v_resetjp_980_; +} +else +{ +lean_inc(v_a_979_); +lean_dec(v_x_977_); +v___x_981_ = lean_box(0); +v_isShared_982_ = v_isSharedCheck_987_; +goto v_resetjp_980_; +} +v_resetjp_980_: +{ +lean_object* v___x_984_; +if (v_isShared_982_ == 0) +{ +v___x_984_ = v___x_981_; +goto v_reusejp_983_; +} +else +{ +lean_object* v_reuseFailAlloc_986_; +v_reuseFailAlloc_986_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_986_, 0, v_a_979_); +v___x_984_ = v_reuseFailAlloc_986_; +goto v_reusejp_983_; +} +v_reusejp_983_: +{ +lean_object* v___x_985_; +v___x_985_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_985_, 0, v___x_984_); +return v___x_985_; +} +} +} +else +{ +lean_object* v_a_988_; lean_object* v___x_989_; +v_a_988_ = lean_ctor_get(v_x_977_, 0); +lean_inc(v_a_988_); +lean_dec_ref(v_x_977_); +v___x_989_ = lean_apply_2(v___f_976_, v_a_988_, lean_box(0)); +return v___x_989_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1___boxed(lean_object* v___f_990_, lean_object* v_x_991_, lean_object* v___y_992_){ +_start: +{ +lean_object* v_res_993_; +v_res_993_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1(v___f_990_, v_x_991_); +return v_res_993_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0(lean_object* v_machine_994_, lean_object* v_____r_995_){ +_start: +{ +lean_object* v_writer_997_; lean_object* v_reader_998_; lean_object* v_config_999_; lean_object* v_events_1000_; lean_object* v_error_1001_; lean_object* v_instant_1002_; uint8_t v_keepAlive_1003_; uint8_t v_forcedFlush_1004_; uint8_t v_pullBodyStalled_1005_; lean_object* v___x_1007_; uint8_t v_isShared_1008_; uint8_t v_isSharedCheck_1032_; +v_writer_997_ = lean_ctor_get(v_machine_994_, 1); +v_reader_998_ = lean_ctor_get(v_machine_994_, 0); +v_config_999_ = lean_ctor_get(v_machine_994_, 2); +v_events_1000_ = lean_ctor_get(v_machine_994_, 3); +v_error_1001_ = lean_ctor_get(v_machine_994_, 4); +v_instant_1002_ = lean_ctor_get(v_machine_994_, 5); +v_keepAlive_1003_ = lean_ctor_get_uint8(v_machine_994_, sizeof(void*)*6); +v_forcedFlush_1004_ = lean_ctor_get_uint8(v_machine_994_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1005_ = lean_ctor_get_uint8(v_machine_994_, sizeof(void*)*6 + 2); +v_isSharedCheck_1032_ = !lean_is_exclusive(v_machine_994_); +if (v_isSharedCheck_1032_ == 0) +{ +v___x_1007_ = v_machine_994_; +v_isShared_1008_ = v_isSharedCheck_1032_; +goto v_resetjp_1006_; +} +else +{ +lean_inc(v_instant_1002_); +lean_inc(v_error_1001_); +lean_inc(v_events_1000_); +lean_inc(v_config_999_); +lean_inc(v_writer_997_); +lean_inc(v_reader_998_); +lean_dec(v_machine_994_); +v___x_1007_ = lean_box(0); +v_isShared_1008_ = v_isSharedCheck_1032_; +goto v_resetjp_1006_; +} +v_resetjp_1006_: +{ +lean_object* v_userData_1009_; lean_object* v_outputData_1010_; lean_object* v_state_1011_; lean_object* v_knownSize_1012_; lean_object* v_messageHead_1013_; uint8_t v_sentMessage_1014_; uint8_t v_omitBody_1015_; lean_object* v_userDataBytes_1016_; lean_object* v___x_1018_; uint8_t v_isShared_1019_; uint8_t v_isSharedCheck_1031_; +v_userData_1009_ = lean_ctor_get(v_writer_997_, 0); +v_outputData_1010_ = lean_ctor_get(v_writer_997_, 1); +v_state_1011_ = lean_ctor_get(v_writer_997_, 2); +v_knownSize_1012_ = lean_ctor_get(v_writer_997_, 3); +v_messageHead_1013_ = lean_ctor_get(v_writer_997_, 4); +v_sentMessage_1014_ = lean_ctor_get_uint8(v_writer_997_, sizeof(void*)*6); +v_omitBody_1015_ = lean_ctor_get_uint8(v_writer_997_, sizeof(void*)*6 + 2); +v_userDataBytes_1016_ = lean_ctor_get(v_writer_997_, 5); +v_isSharedCheck_1031_ = !lean_is_exclusive(v_writer_997_); +if (v_isSharedCheck_1031_ == 0) +{ +v___x_1018_ = v_writer_997_; +v_isShared_1019_ = v_isSharedCheck_1031_; +goto v_resetjp_1017_; +} +else +{ +lean_inc(v_userDataBytes_1016_); +lean_inc(v_messageHead_1013_); +lean_inc(v_knownSize_1012_); +lean_inc(v_state_1011_); +lean_inc(v_outputData_1010_); +lean_inc(v_userData_1009_); +lean_dec(v_writer_997_); +v___x_1018_ = lean_box(0); +v_isShared_1019_ = v_isSharedCheck_1031_; +goto v_resetjp_1017_; +} +v_resetjp_1017_: +{ +uint8_t v___x_1020_; lean_object* v___x_1022_; +v___x_1020_ = 1; +if (v_isShared_1019_ == 0) +{ +v___x_1022_ = v___x_1018_; +goto v_reusejp_1021_; +} +else +{ +lean_object* v_reuseFailAlloc_1030_; +v_reuseFailAlloc_1030_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1030_, 0, v_userData_1009_); +lean_ctor_set(v_reuseFailAlloc_1030_, 1, v_outputData_1010_); +lean_ctor_set(v_reuseFailAlloc_1030_, 2, v_state_1011_); +lean_ctor_set(v_reuseFailAlloc_1030_, 3, v_knownSize_1012_); +lean_ctor_set(v_reuseFailAlloc_1030_, 4, v_messageHead_1013_); +lean_ctor_set(v_reuseFailAlloc_1030_, 5, v_userDataBytes_1016_); +lean_ctor_set_uint8(v_reuseFailAlloc_1030_, sizeof(void*)*6, v_sentMessage_1014_); +lean_ctor_set_uint8(v_reuseFailAlloc_1030_, sizeof(void*)*6 + 2, v_omitBody_1015_); +v___x_1022_ = v_reuseFailAlloc_1030_; +goto v_reusejp_1021_; +} +v_reusejp_1021_: +{ +lean_object* v___x_1024_; +lean_ctor_set_uint8(v___x_1022_, sizeof(void*)*6 + 1, v___x_1020_); +if (v_isShared_1008_ == 0) +{ +lean_ctor_set(v___x_1007_, 1, v___x_1022_); +v___x_1024_ = v___x_1007_; +goto v_reusejp_1023_; +} +else +{ +lean_object* v_reuseFailAlloc_1029_; +v_reuseFailAlloc_1029_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1029_, 0, v_reader_998_); +lean_ctor_set(v_reuseFailAlloc_1029_, 1, v___x_1022_); +lean_ctor_set(v_reuseFailAlloc_1029_, 2, v_config_999_); +lean_ctor_set(v_reuseFailAlloc_1029_, 3, v_events_1000_); +lean_ctor_set(v_reuseFailAlloc_1029_, 4, v_error_1001_); +lean_ctor_set(v_reuseFailAlloc_1029_, 5, v_instant_1002_); +lean_ctor_set_uint8(v_reuseFailAlloc_1029_, sizeof(void*)*6, v_keepAlive_1003_); +lean_ctor_set_uint8(v_reuseFailAlloc_1029_, sizeof(void*)*6 + 1, v_forcedFlush_1004_); +lean_ctor_set_uint8(v_reuseFailAlloc_1029_, sizeof(void*)*6 + 2, v_pullBodyStalled_1005_); +v___x_1024_ = v_reuseFailAlloc_1029_; +goto v_reusejp_1023_; +} +v_reusejp_1023_: +{ +lean_object* v___x_1025_; lean_object* v___x_1026_; lean_object* v___x_1027_; lean_object* v___x_1028_; +v___x_1025_ = lean_box(0); +v___x_1026_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1026_, 0, v___x_1024_); +lean_ctor_set(v___x_1026_, 1, v___x_1025_); +v___x_1027_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1027_, 0, v___x_1026_); +v___x_1028_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1028_, 0, v___x_1027_); +return v___x_1028_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0___boxed(lean_object* v_machine_1033_, lean_object* v_____r_1034_, lean_object* v___y_1035_){ +_start: +{ +lean_object* v_res_1036_; +v_res_1036_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0(v_machine_1033_, v_____r_1034_); +return v_res_1036_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6(lean_object* v_machine_1037_, lean_object* v_body_1038_){ +_start: +{ +lean_object* v_close_1040_; lean_object* v_isClosed_1041_; lean_object* v_tryRecv_1042_; lean_object* v___x_1043_; lean_object* v___f_1044_; lean_object* v___f_1045_; lean_object* v___f_1046_; lean_object* v___f_1047_; lean_object* v___x_1048_; uint8_t v___x_1049_; lean_object* v___x_1050_; +v_close_1040_ = lean_ctor_get(v_body_1038_, 1); +v_isClosed_1041_ = lean_ctor_get(v_body_1038_, 2); +lean_inc_ref(v_isClosed_1041_); +v_tryRecv_1042_ = lean_ctor_get(v_body_1038_, 4); +lean_inc_ref(v_tryRecv_1042_); +v___x_1043_ = lean_apply_1(v_tryRecv_1042_, lean_box(0)); +lean_inc_ref(v_machine_1037_); +v___f_1044_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1044_, 0, v_machine_1037_); +lean_inc_ref(v___f_1044_); +v___f_1045_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1___boxed), 3, 1); +lean_closure_set(v___f_1045_, 0, v___f_1044_); +lean_inc_ref(v_close_1040_); +v___f_1046_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2___boxed), 5, 3); +lean_closure_set(v___f_1046_, 0, v_close_1040_); +lean_closure_set(v___f_1046_, 1, v___f_1045_); +lean_closure_set(v___f_1046_, 2, v___f_1044_); +v___f_1047_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___lam__3___boxed), 6, 4); +lean_closure_set(v___f_1047_, 0, v_body_1038_); +lean_closure_set(v___f_1047_, 1, v_machine_1037_); +lean_closure_set(v___f_1047_, 2, v_isClosed_1041_); +lean_closure_set(v___f_1047_, 3, v___f_1046_); +v___x_1048_ = lean_unsigned_to_nat(0u); +v___x_1049_ = 0; +v___x_1050_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1048_, v___x_1049_, v___x_1043_, v___f_1047_); +return v___x_1050_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6___boxed(lean_object* v_machine_1051_, lean_object* v_body_1052_, lean_object* v_a_1053_){ +_start: +{ +lean_object* v_res_1054_; +v_res_1054_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6(v_machine_1051_, v_body_1052_); +return v_res_1054_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14(uint8_t v___x_1055_, lean_object* v___f_1056_, lean_object* v___f_1057_, lean_object* v_x_1058_){ +_start: +{ +if (lean_obj_tag(v_x_1058_) == 0) +{ +lean_object* v_a_1060_; lean_object* v___x_1062_; uint8_t v_isShared_1063_; uint8_t v_isSharedCheck_1068_; +lean_dec_ref(v___f_1057_); +lean_dec_ref(v___f_1056_); +v_a_1060_ = lean_ctor_get(v_x_1058_, 0); +v_isSharedCheck_1068_ = !lean_is_exclusive(v_x_1058_); +if (v_isSharedCheck_1068_ == 0) +{ +v___x_1062_ = v_x_1058_; +v_isShared_1063_ = v_isSharedCheck_1068_; +goto v_resetjp_1061_; +} +else +{ +lean_inc(v_a_1060_); +lean_dec(v_x_1058_); +v___x_1062_ = lean_box(0); +v_isShared_1063_ = v_isSharedCheck_1068_; +goto v_resetjp_1061_; +} +v_resetjp_1061_: +{ +lean_object* v___x_1065_; +if (v_isShared_1063_ == 0) +{ +v___x_1065_ = v___x_1062_; +goto v_reusejp_1064_; +} +else +{ +lean_object* v_reuseFailAlloc_1067_; +v_reuseFailAlloc_1067_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1067_, 0, v_a_1060_); +v___x_1065_ = v_reuseFailAlloc_1067_; +goto v_reusejp_1064_; +} +v_reusejp_1064_: +{ +lean_object* v___x_1066_; +v___x_1066_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1066_, 0, v___x_1065_); +return v___x_1066_; +} +} +} +else +{ +lean_object* v_a_1069_; lean_object* v_snd_1070_; +v_a_1069_ = lean_ctor_get(v_x_1058_, 0); +v_snd_1070_ = lean_ctor_get(v_a_1069_, 1); +if (lean_obj_tag(v_snd_1070_) == 0) +{ +lean_object* v___x_1071_; lean_object* v___x_1072_; lean_object* v___x_1073_; +lean_dec_ref(v___f_1057_); +v___x_1071_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1071_, 0, v_x_1058_); +v___x_1072_ = lean_unsigned_to_nat(0u); +v___x_1073_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1072_, v___x_1055_, v___x_1071_, v___f_1056_); +return v___x_1073_; +} +else +{ +lean_object* v_fst_1074_; lean_object* v_val_1075_; lean_object* v___x_1076_; lean_object* v___x_1077_; lean_object* v___x_1078_; +lean_inc_ref(v_snd_1070_); +lean_inc(v_a_1069_); +lean_dec_ref(v_x_1058_); +lean_dec_ref(v___f_1056_); +v_fst_1074_ = lean_ctor_get(v_a_1069_, 0); +lean_inc(v_fst_1074_); +lean_dec(v_a_1069_); +v_val_1075_ = lean_ctor_get(v_snd_1070_, 0); +lean_inc(v_val_1075_); +lean_dec_ref(v_snd_1070_); +v___x_1076_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_tryDrainBody___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__6(v_fst_1074_, v_val_1075_); +v___x_1077_ = lean_unsigned_to_nat(0u); +v___x_1078_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1077_, v___x_1055_, v___x_1076_, v___f_1057_); +return v___x_1078_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14___boxed(lean_object* v___x_1079_, lean_object* v___f_1080_, lean_object* v___f_1081_, lean_object* v_x_1082_, lean_object* v___y_1083_){ +_start: +{ +uint8_t v___x_16236__boxed_1084_; lean_object* v_res_1085_; +v___x_16236__boxed_1084_ = lean_unbox(v___x_1079_); +v_res_1085_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14(v___x_16236__boxed_1084_, v___f_1080_, v___f_1081_, v_x_1082_); +return v_res_1085_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8(lean_object* v_st_1086_, lean_object* v_____r_1087_){ +_start: +{ +uint8_t v___x_1089_; lean_object* v___x_1090_; lean_object* v___x_1091_; lean_object* v___x_1092_; lean_object* v___x_1093_; +v___x_1089_ = 0; +v___x_1090_ = lean_box(v___x_1089_); +v___x_1091_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1091_, 0, v_st_1086_); +lean_ctor_set(v___x_1091_, 1, v___x_1090_); +v___x_1092_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1092_, 0, v___x_1091_); +v___x_1093_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1093_, 0, v___x_1092_); +return v___x_1093_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8___boxed(lean_object* v_st_1094_, lean_object* v_____r_1095_, lean_object* v___y_1096_){ +_start: +{ +lean_object* v_res_1097_; +v_res_1097_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8(v_st_1094_, v_____r_1095_); +return v_res_1097_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12(lean_object* v_state_1098_, lean_object* v_x_1099_){ +_start: +{ +if (lean_obj_tag(v_x_1099_) == 0) +{ +lean_object* v_a_1101_; lean_object* v___x_1103_; uint8_t v_isShared_1104_; uint8_t v_isSharedCheck_1109_; +lean_dec_ref(v_state_1098_); +v_a_1101_ = lean_ctor_get(v_x_1099_, 0); +v_isSharedCheck_1109_ = !lean_is_exclusive(v_x_1099_); +if (v_isSharedCheck_1109_ == 0) +{ +v___x_1103_ = v_x_1099_; +v_isShared_1104_ = v_isSharedCheck_1109_; +goto v_resetjp_1102_; +} +else +{ +lean_inc(v_a_1101_); +lean_dec(v_x_1099_); +v___x_1103_ = lean_box(0); +v_isShared_1104_ = v_isSharedCheck_1109_; +goto v_resetjp_1102_; +} +v_resetjp_1102_: +{ +lean_object* v___x_1106_; +if (v_isShared_1104_ == 0) +{ +v___x_1106_ = v___x_1103_; +goto v_reusejp_1105_; +} +else +{ +lean_object* v_reuseFailAlloc_1108_; +v_reuseFailAlloc_1108_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1108_, 0, v_a_1101_); +v___x_1106_ = v_reuseFailAlloc_1108_; +goto v_reusejp_1105_; +} +v_reusejp_1105_: +{ +lean_object* v___x_1107_; +v___x_1107_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1107_, 0, v___x_1106_); +return v___x_1107_; +} +} +} +else +{ +lean_object* v___x_1111_; uint8_t v_isShared_1112_; uint8_t v_isSharedCheck_1139_; +v_isSharedCheck_1139_ = !lean_is_exclusive(v_x_1099_); +if (v_isSharedCheck_1139_ == 0) +{ +lean_object* v_unused_1140_; +v_unused_1140_ = lean_ctor_get(v_x_1099_, 0); +lean_dec(v_unused_1140_); +v___x_1111_ = v_x_1099_; +v_isShared_1112_ = v_isSharedCheck_1139_; +goto v_resetjp_1110_; +} +else +{ +lean_dec(v_x_1099_); +v___x_1111_ = lean_box(0); +v_isShared_1112_ = v_isSharedCheck_1139_; +goto v_resetjp_1110_; +} +v_resetjp_1110_: +{ +lean_object* v_machine_1113_; lean_object* v_requestStream_1114_; lean_object* v_keepAliveTimeout_1115_; lean_object* v_currentTimeout_1116_; lean_object* v_headerTimeout_1117_; lean_object* v_response_1118_; lean_object* v_respStream_1119_; uint8_t v_requiresData_1120_; lean_object* v_expectData_1121_; lean_object* v_pendingHead_1122_; lean_object* v___x_1124_; uint8_t v_isShared_1125_; uint8_t v_isSharedCheck_1138_; +v_machine_1113_ = lean_ctor_get(v_state_1098_, 0); +v_requestStream_1114_ = lean_ctor_get(v_state_1098_, 1); +v_keepAliveTimeout_1115_ = lean_ctor_get(v_state_1098_, 2); +v_currentTimeout_1116_ = lean_ctor_get(v_state_1098_, 3); +v_headerTimeout_1117_ = lean_ctor_get(v_state_1098_, 4); +v_response_1118_ = lean_ctor_get(v_state_1098_, 5); +v_respStream_1119_ = lean_ctor_get(v_state_1098_, 6); +v_requiresData_1120_ = lean_ctor_get_uint8(v_state_1098_, sizeof(void*)*9); +v_expectData_1121_ = lean_ctor_get(v_state_1098_, 7); +v_pendingHead_1122_ = lean_ctor_get(v_state_1098_, 8); +v_isSharedCheck_1138_ = !lean_is_exclusive(v_state_1098_); +if (v_isSharedCheck_1138_ == 0) +{ +v___x_1124_ = v_state_1098_; +v_isShared_1125_ = v_isSharedCheck_1138_; +goto v_resetjp_1123_; +} +else +{ +lean_inc(v_pendingHead_1122_); +lean_inc(v_expectData_1121_); +lean_inc(v_respStream_1119_); +lean_inc(v_response_1118_); +lean_inc(v_headerTimeout_1117_); +lean_inc(v_currentTimeout_1116_); +lean_inc(v_keepAliveTimeout_1115_); +lean_inc(v_requestStream_1114_); +lean_inc(v_machine_1113_); +lean_dec(v_state_1098_); +v___x_1124_ = lean_box(0); +v_isShared_1125_ = v_isSharedCheck_1138_; +goto v_resetjp_1123_; +} +v_resetjp_1123_: +{ +lean_object* v___x_1126_; lean_object* v___x_1127_; uint8_t v___x_1128_; lean_object* v___x_1130_; +v___x_1126_ = lean_box(31); +v___x_1127_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_1113_, v___x_1126_); +v___x_1128_ = 0; +if (v_isShared_1125_ == 0) +{ +lean_ctor_set(v___x_1124_, 0, v___x_1127_); +v___x_1130_ = v___x_1124_; +goto v_reusejp_1129_; +} +else +{ +lean_object* v_reuseFailAlloc_1137_; +v_reuseFailAlloc_1137_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_1137_, 0, v___x_1127_); +lean_ctor_set(v_reuseFailAlloc_1137_, 1, v_requestStream_1114_); +lean_ctor_set(v_reuseFailAlloc_1137_, 2, v_keepAliveTimeout_1115_); +lean_ctor_set(v_reuseFailAlloc_1137_, 3, v_currentTimeout_1116_); +lean_ctor_set(v_reuseFailAlloc_1137_, 4, v_headerTimeout_1117_); +lean_ctor_set(v_reuseFailAlloc_1137_, 5, v_response_1118_); +lean_ctor_set(v_reuseFailAlloc_1137_, 6, v_respStream_1119_); +lean_ctor_set(v_reuseFailAlloc_1137_, 7, v_expectData_1121_); +lean_ctor_set(v_reuseFailAlloc_1137_, 8, v_pendingHead_1122_); +lean_ctor_set_uint8(v_reuseFailAlloc_1137_, sizeof(void*)*9, v_requiresData_1120_); +v___x_1130_ = v_reuseFailAlloc_1137_; +goto v_reusejp_1129_; +} +v_reusejp_1129_: +{ +lean_object* v___x_1131_; lean_object* v___x_1132_; lean_object* v___x_1134_; +lean_ctor_set_uint8(v___x_1130_, sizeof(void*)*9 + 1, v___x_1128_); +v___x_1131_ = lean_box(v___x_1128_); +v___x_1132_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1132_, 0, v___x_1130_); +lean_ctor_set(v___x_1132_, 1, v___x_1131_); +if (v_isShared_1112_ == 0) +{ +lean_ctor_set(v___x_1111_, 0, v___x_1132_); +v___x_1134_ = v___x_1111_; +goto v_reusejp_1133_; +} +else +{ +lean_object* v_reuseFailAlloc_1136_; +v_reuseFailAlloc_1136_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1136_, 0, v___x_1132_); +v___x_1134_ = v_reuseFailAlloc_1136_; +goto v_reusejp_1133_; +} +v_reusejp_1133_: +{ +lean_object* v___x_1135_; +v___x_1135_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1135_, 0, v___x_1134_); +return v___x_1135_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12___boxed(lean_object* v_state_1141_, lean_object* v_x_1142_, lean_object* v___y_1143_){ +_start: +{ +lean_object* v_res_1144_; +v_res_1144_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12(v_state_1141_, v_x_1142_); +return v_res_1144_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11(lean_object* v___f_1145_, lean_object* v_x_1146_){ +_start: +{ +if (lean_obj_tag(v_x_1146_) == 0) +{ +lean_object* v_a_1148_; lean_object* v___x_1150_; uint8_t v_isShared_1151_; uint8_t v_isSharedCheck_1156_; +lean_dec_ref(v___f_1145_); +v_a_1148_ = lean_ctor_get(v_x_1146_, 0); +v_isSharedCheck_1156_ = !lean_is_exclusive(v_x_1146_); +if (v_isSharedCheck_1156_ == 0) +{ +v___x_1150_ = v_x_1146_; +v_isShared_1151_ = v_isSharedCheck_1156_; +goto v_resetjp_1149_; +} +else +{ +lean_inc(v_a_1148_); +lean_dec(v_x_1146_); +v___x_1150_ = lean_box(0); +v_isShared_1151_ = v_isSharedCheck_1156_; +goto v_resetjp_1149_; +} +v_resetjp_1149_: +{ +lean_object* v___x_1153_; +if (v_isShared_1151_ == 0) +{ +v___x_1153_ = v___x_1150_; +goto v_reusejp_1152_; +} +else +{ +lean_object* v_reuseFailAlloc_1155_; +v_reuseFailAlloc_1155_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1155_, 0, v_a_1148_); +v___x_1153_ = v_reuseFailAlloc_1155_; +goto v_reusejp_1152_; +} +v_reusejp_1152_: +{ +lean_object* v___x_1154_; +v___x_1154_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1154_, 0, v___x_1153_); +return v___x_1154_; +} +} +} +else +{ +lean_object* v_a_1157_; lean_object* v___x_1158_; +v_a_1157_ = lean_ctor_get(v_x_1146_, 0); +lean_inc(v_a_1157_); +lean_dec_ref(v_x_1146_); +v___x_1158_ = lean_apply_2(v___f_1145_, v_a_1157_, lean_box(0)); +return v___x_1158_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11___boxed(lean_object* v___f_1159_, lean_object* v_x_1160_, lean_object* v___y_1161_){ +_start: +{ +lean_object* v_res_1162_; +v_res_1162_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11(v___f_1159_, v_x_1160_); +return v_res_1162_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9(lean_object* v_state_1163_, lean_object* v_x_1164_){ +_start: +{ +if (lean_obj_tag(v_x_1164_) == 0) +{ +lean_object* v_a_1166_; lean_object* v___x_1168_; uint8_t v_isShared_1169_; uint8_t v_isSharedCheck_1174_; +lean_dec_ref(v_state_1163_); +v_a_1166_ = lean_ctor_get(v_x_1164_, 0); +v_isSharedCheck_1174_ = !lean_is_exclusive(v_x_1164_); +if (v_isSharedCheck_1174_ == 0) +{ +v___x_1168_ = v_x_1164_; +v_isShared_1169_ = v_isSharedCheck_1174_; +goto v_resetjp_1167_; +} +else +{ +lean_inc(v_a_1166_); +lean_dec(v_x_1164_); +v___x_1168_ = lean_box(0); +v_isShared_1169_ = v_isSharedCheck_1174_; +goto v_resetjp_1167_; +} +v_resetjp_1167_: +{ +lean_object* v___x_1171_; +if (v_isShared_1169_ == 0) +{ +v___x_1171_ = v___x_1168_; +goto v_reusejp_1170_; +} +else +{ +lean_object* v_reuseFailAlloc_1173_; +v_reuseFailAlloc_1173_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1173_, 0, v_a_1166_); +v___x_1171_ = v_reuseFailAlloc_1173_; +goto v_reusejp_1170_; +} +v_reusejp_1170_: +{ +lean_object* v___x_1172_; +v___x_1172_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1172_, 0, v___x_1171_); +return v___x_1172_; +} +} +} +else +{ +lean_object* v___x_1176_; uint8_t v_isShared_1177_; uint8_t v_isSharedCheck_1204_; +v_isSharedCheck_1204_ = !lean_is_exclusive(v_x_1164_); +if (v_isSharedCheck_1204_ == 0) +{ +lean_object* v_unused_1205_; +v_unused_1205_ = lean_ctor_get(v_x_1164_, 0); +lean_dec(v_unused_1205_); +v___x_1176_ = v_x_1164_; +v_isShared_1177_ = v_isSharedCheck_1204_; +goto v_resetjp_1175_; +} +else +{ +lean_dec(v_x_1164_); +v___x_1176_ = lean_box(0); +v_isShared_1177_ = v_isSharedCheck_1204_; +goto v_resetjp_1175_; +} +v_resetjp_1175_: +{ +lean_object* v_machine_1178_; lean_object* v_requestStream_1179_; lean_object* v_keepAliveTimeout_1180_; lean_object* v_currentTimeout_1181_; lean_object* v_headerTimeout_1182_; lean_object* v_response_1183_; lean_object* v_respStream_1184_; uint8_t v_requiresData_1185_; lean_object* v_expectData_1186_; lean_object* v_pendingHead_1187_; lean_object* v___x_1189_; uint8_t v_isShared_1190_; uint8_t v_isSharedCheck_1203_; +v_machine_1178_ = lean_ctor_get(v_state_1163_, 0); +v_requestStream_1179_ = lean_ctor_get(v_state_1163_, 1); +v_keepAliveTimeout_1180_ = lean_ctor_get(v_state_1163_, 2); +v_currentTimeout_1181_ = lean_ctor_get(v_state_1163_, 3); +v_headerTimeout_1182_ = lean_ctor_get(v_state_1163_, 4); +v_response_1183_ = lean_ctor_get(v_state_1163_, 5); +v_respStream_1184_ = lean_ctor_get(v_state_1163_, 6); +v_requiresData_1185_ = lean_ctor_get_uint8(v_state_1163_, sizeof(void*)*9); +v_expectData_1186_ = lean_ctor_get(v_state_1163_, 7); +v_pendingHead_1187_ = lean_ctor_get(v_state_1163_, 8); +v_isSharedCheck_1203_ = !lean_is_exclusive(v_state_1163_); +if (v_isSharedCheck_1203_ == 0) +{ +v___x_1189_ = v_state_1163_; +v_isShared_1190_ = v_isSharedCheck_1203_; +goto v_resetjp_1188_; +} +else +{ +lean_inc(v_pendingHead_1187_); +lean_inc(v_expectData_1186_); +lean_inc(v_respStream_1184_); +lean_inc(v_response_1183_); +lean_inc(v_headerTimeout_1182_); +lean_inc(v_currentTimeout_1181_); +lean_inc(v_keepAliveTimeout_1180_); +lean_inc(v_requestStream_1179_); +lean_inc(v_machine_1178_); +lean_dec(v_state_1163_); +v___x_1189_ = lean_box(0); +v_isShared_1190_ = v_isSharedCheck_1203_; +goto v_resetjp_1188_; +} +v_resetjp_1188_: +{ +lean_object* v___x_1191_; lean_object* v___x_1192_; uint8_t v___x_1193_; lean_object* v___x_1195_; +v___x_1191_ = lean_box(52); +v___x_1192_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_1178_, v___x_1191_); +v___x_1193_ = 0; +if (v_isShared_1190_ == 0) +{ +lean_ctor_set(v___x_1189_, 0, v___x_1192_); +v___x_1195_ = v___x_1189_; +goto v_reusejp_1194_; +} +else +{ +lean_object* v_reuseFailAlloc_1202_; +v_reuseFailAlloc_1202_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_1202_, 0, v___x_1192_); +lean_ctor_set(v_reuseFailAlloc_1202_, 1, v_requestStream_1179_); +lean_ctor_set(v_reuseFailAlloc_1202_, 2, v_keepAliveTimeout_1180_); +lean_ctor_set(v_reuseFailAlloc_1202_, 3, v_currentTimeout_1181_); +lean_ctor_set(v_reuseFailAlloc_1202_, 4, v_headerTimeout_1182_); +lean_ctor_set(v_reuseFailAlloc_1202_, 5, v_response_1183_); +lean_ctor_set(v_reuseFailAlloc_1202_, 6, v_respStream_1184_); +lean_ctor_set(v_reuseFailAlloc_1202_, 7, v_expectData_1186_); +lean_ctor_set(v_reuseFailAlloc_1202_, 8, v_pendingHead_1187_); +lean_ctor_set_uint8(v_reuseFailAlloc_1202_, sizeof(void*)*9, v_requiresData_1185_); +v___x_1195_ = v_reuseFailAlloc_1202_; +goto v_reusejp_1194_; +} +v_reusejp_1194_: +{ +lean_object* v___x_1196_; lean_object* v___x_1197_; lean_object* v___x_1199_; +lean_ctor_set_uint8(v___x_1195_, sizeof(void*)*9 + 1, v___x_1193_); +v___x_1196_ = lean_box(v___x_1193_); +v___x_1197_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1197_, 0, v___x_1195_); +lean_ctor_set(v___x_1197_, 1, v___x_1196_); +if (v_isShared_1177_ == 0) +{ +lean_ctor_set(v___x_1176_, 0, v___x_1197_); +v___x_1199_ = v___x_1176_; +goto v_reusejp_1198_; +} +else +{ +lean_object* v_reuseFailAlloc_1201_; +v_reuseFailAlloc_1201_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1201_, 0, v___x_1197_); +v___x_1199_ = v_reuseFailAlloc_1201_; +goto v_reusejp_1198_; +} +v_reusejp_1198_: +{ +lean_object* v___x_1200_; +v___x_1200_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1200_, 0, v___x_1199_); +return v___x_1200_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9___boxed(lean_object* v_state_1206_, lean_object* v_x_1207_, lean_object* v___y_1208_){ +_start: +{ +lean_object* v_res_1209_; +v_res_1209_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9(v_state_1206_, v_x_1207_); +return v_res_1209_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7(lean_object* v_requestStream_1210_, lean_object* v___f_1211_, lean_object* v___f_1212_, lean_object* v_x_1213_){ +_start: +{ +if (lean_obj_tag(v_x_1213_) == 0) +{ +lean_object* v_a_1215_; lean_object* v___x_1217_; uint8_t v_isShared_1218_; uint8_t v_isSharedCheck_1223_; +lean_dec_ref(v___f_1212_); +lean_dec_ref(v___f_1211_); +lean_dec_ref(v_requestStream_1210_); +v_a_1215_ = lean_ctor_get(v_x_1213_, 0); +v_isSharedCheck_1223_ = !lean_is_exclusive(v_x_1213_); +if (v_isSharedCheck_1223_ == 0) +{ +v___x_1217_ = v_x_1213_; +v_isShared_1218_ = v_isSharedCheck_1223_; +goto v_resetjp_1216_; +} +else +{ +lean_inc(v_a_1215_); +lean_dec(v_x_1213_); +v___x_1217_ = lean_box(0); +v_isShared_1218_ = v_isSharedCheck_1223_; +goto v_resetjp_1216_; +} +v_resetjp_1216_: +{ +lean_object* v___x_1220_; +if (v_isShared_1218_ == 0) +{ +v___x_1220_ = v___x_1217_; +goto v_reusejp_1219_; +} +else +{ +lean_object* v_reuseFailAlloc_1222_; +v_reuseFailAlloc_1222_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1222_, 0, v_a_1215_); +v___x_1220_ = v_reuseFailAlloc_1222_; +goto v_reusejp_1219_; +} +v_reusejp_1219_: +{ +lean_object* v___x_1221_; +v___x_1221_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1221_, 0, v___x_1220_); +return v___x_1221_; +} +} +} +else +{ +lean_object* v_a_1224_; uint8_t v___x_1225_; +v_a_1224_ = lean_ctor_get(v_x_1213_, 0); +lean_inc(v_a_1224_); +lean_dec_ref(v_x_1213_); +v___x_1225_ = lean_unbox(v_a_1224_); +if (v___x_1225_ == 0) +{ +lean_object* v___x_1226_; lean_object* v___x_1227_; uint8_t v___x_1228_; lean_object* v___x_1229_; +lean_dec_ref(v___f_1212_); +v___x_1226_ = l_Std_Http_Body_Stream_close(v_requestStream_1210_); +v___x_1227_ = lean_unsigned_to_nat(0u); +v___x_1228_ = lean_unbox(v_a_1224_); +lean_dec(v_a_1224_); +v___x_1229_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1227_, v___x_1228_, v___x_1226_, v___f_1211_); +return v___x_1229_; +} +else +{ +lean_object* v___x_1230_; lean_object* v___x_1231_; +lean_dec(v_a_1224_); +lean_dec_ref(v___f_1211_); +lean_dec_ref(v_requestStream_1210_); +v___x_1230_ = lean_box(0); +v___x_1231_ = lean_apply_2(v___f_1212_, v___x_1230_, lean_box(0)); +return v___x_1231_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7___boxed(lean_object* v_requestStream_1232_, lean_object* v___f_1233_, lean_object* v___f_1234_, lean_object* v_x_1235_, lean_object* v___y_1236_){ +_start: +{ +lean_object* v_res_1237_; +v_res_1237_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7(v_requestStream_1232_, v___f_1233_, v___f_1234_, v_x_1235_); +return v_res_1237_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10(lean_object* v_machine_1238_, lean_object* v_requestStream_1239_, lean_object* v_keepAliveTimeout_1240_, lean_object* v_currentTimeout_1241_, lean_object* v_headerTimeout_1242_, lean_object* v_response_1243_, lean_object* v_respStream_1244_, uint8_t v_requiresData_1245_, lean_object* v_expectData_1246_, lean_object* v_pendingHead_1247_, lean_object* v_____r_1248_){ +_start: +{ +uint8_t v___x_1250_; lean_object* v___x_1251_; lean_object* v___x_1252_; lean_object* v___x_1253_; lean_object* v___x_1254_; lean_object* v___x_1255_; +v___x_1250_ = 0; +v___x_1251_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_1251_, 0, v_machine_1238_); +lean_ctor_set(v___x_1251_, 1, v_requestStream_1239_); +lean_ctor_set(v___x_1251_, 2, v_keepAliveTimeout_1240_); +lean_ctor_set(v___x_1251_, 3, v_currentTimeout_1241_); +lean_ctor_set(v___x_1251_, 4, v_headerTimeout_1242_); +lean_ctor_set(v___x_1251_, 5, v_response_1243_); +lean_ctor_set(v___x_1251_, 6, v_respStream_1244_); +lean_ctor_set(v___x_1251_, 7, v_expectData_1246_); +lean_ctor_set(v___x_1251_, 8, v_pendingHead_1247_); +lean_ctor_set_uint8(v___x_1251_, sizeof(void*)*9, v_requiresData_1245_); +lean_ctor_set_uint8(v___x_1251_, sizeof(void*)*9 + 1, v___x_1250_); +v___x_1252_ = lean_box(v___x_1250_); +v___x_1253_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1253_, 0, v___x_1251_); +lean_ctor_set(v___x_1253_, 1, v___x_1252_); +v___x_1254_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1254_, 0, v___x_1253_); +v___x_1255_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1255_, 0, v___x_1254_); +return v___x_1255_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10___boxed(lean_object* v_machine_1256_, lean_object* v_requestStream_1257_, lean_object* v_keepAliveTimeout_1258_, lean_object* v_currentTimeout_1259_, lean_object* v_headerTimeout_1260_, lean_object* v_response_1261_, lean_object* v_respStream_1262_, lean_object* v_requiresData_1263_, lean_object* v_expectData_1264_, lean_object* v_pendingHead_1265_, lean_object* v_____r_1266_, lean_object* v___y_1267_){ +_start: +{ +uint8_t v_requiresData_boxed_1268_; lean_object* v_res_1269_; +v_requiresData_boxed_1268_ = lean_unbox(v_requiresData_1263_); +v_res_1269_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10(v_machine_1256_, v_requestStream_1257_, v_keepAliveTimeout_1258_, v_currentTimeout_1259_, v_headerTimeout_1260_, v_response_1261_, v_respStream_1262_, v_requiresData_boxed_1268_, v_expectData_1264_, v_pendingHead_1265_, v_____r_1266_); +return v_res_1269_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4(lean_object* v_close_1270_, lean_object* v___f_1271_, lean_object* v___f_1272_, lean_object* v_x_1273_){ +_start: +{ +if (lean_obj_tag(v_x_1273_) == 0) +{ +lean_object* v_a_1275_; lean_object* v___x_1277_; uint8_t v_isShared_1278_; uint8_t v_isSharedCheck_1283_; +lean_dec_ref(v___f_1272_); +lean_dec_ref(v___f_1271_); +lean_dec_ref(v_close_1270_); +v_a_1275_ = lean_ctor_get(v_x_1273_, 0); +v_isSharedCheck_1283_ = !lean_is_exclusive(v_x_1273_); +if (v_isSharedCheck_1283_ == 0) +{ +v___x_1277_ = v_x_1273_; +v_isShared_1278_ = v_isSharedCheck_1283_; +goto v_resetjp_1276_; +} +else +{ +lean_inc(v_a_1275_); +lean_dec(v_x_1273_); +v___x_1277_ = lean_box(0); +v_isShared_1278_ = v_isSharedCheck_1283_; +goto v_resetjp_1276_; +} +v_resetjp_1276_: +{ +lean_object* v___x_1280_; +if (v_isShared_1278_ == 0) +{ +v___x_1280_ = v___x_1277_; +goto v_reusejp_1279_; +} +else +{ +lean_object* v_reuseFailAlloc_1282_; +v_reuseFailAlloc_1282_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1282_, 0, v_a_1275_); +v___x_1280_ = v_reuseFailAlloc_1282_; +goto v_reusejp_1279_; +} +v_reusejp_1279_: +{ +lean_object* v___x_1281_; +v___x_1281_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1281_, 0, v___x_1280_); +return v___x_1281_; +} +} +} +else +{ +lean_object* v_a_1284_; uint8_t v___x_1285_; +v_a_1284_ = lean_ctor_get(v_x_1273_, 0); +lean_inc(v_a_1284_); +lean_dec_ref(v_x_1273_); +v___x_1285_ = lean_unbox(v_a_1284_); +if (v___x_1285_ == 0) +{ +lean_object* v___x_1286_; lean_object* v___x_1287_; uint8_t v___x_1288_; lean_object* v___x_1289_; +lean_dec_ref(v___f_1272_); +v___x_1286_ = lean_apply_1(v_close_1270_, lean_box(0)); +v___x_1287_ = lean_unsigned_to_nat(0u); +v___x_1288_ = lean_unbox(v_a_1284_); +lean_dec(v_a_1284_); +v___x_1289_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1287_, v___x_1288_, v___x_1286_, v___f_1271_); +return v___x_1289_; +} +else +{ +lean_object* v___x_1290_; lean_object* v___x_1291_; +lean_dec(v_a_1284_); +lean_dec_ref(v___f_1271_); +lean_dec_ref(v_close_1270_); +v___x_1290_ = lean_box(0); +v___x_1291_ = lean_apply_2(v___f_1272_, v___x_1290_, lean_box(0)); +return v___x_1291_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4___boxed(lean_object* v_close_1292_, lean_object* v___f_1293_, lean_object* v___f_1294_, lean_object* v_x_1295_, lean_object* v___y_1296_){ +_start: +{ +lean_object* v_res_1297_; +v_res_1297_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4(v_close_1292_, v___f_1293_, v___f_1294_, v_x_1295_); +return v_res_1297_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11(lean_object* v_as_1298_, size_t v_i_1299_, size_t v_stop_1300_, lean_object* v_b_1301_){ +_start: +{ +lean_object* v___y_1303_; uint8_t v___x_1307_; +v___x_1307_ = lean_usize_dec_eq(v_i_1299_, v_stop_1300_); +if (v___x_1307_ == 0) +{ +lean_object* v___x_1308_; lean_object* v_fst_1309_; lean_object* v___x_1310_; uint8_t v___x_1311_; +v___x_1308_ = lean_array_uget_borrowed(v_as_1298_, v_i_1299_); +v_fst_1309_ = lean_ctor_get(v___x_1308_, 0); +v___x_1310_ = l_Std_Http_Header_Name_transferEncoding; +v___x_1311_ = lean_string_dec_eq(v_fst_1309_, v___x_1310_); +if (v___x_1311_ == 0) +{ +lean_object* v___x_1312_; +lean_inc(v___x_1308_); +v___x_1312_ = lean_array_push(v_b_1301_, v___x_1308_); +v___y_1303_ = v___x_1312_; +goto v___jp_1302_; +} +else +{ +v___y_1303_ = v_b_1301_; +goto v___jp_1302_; +} +} +else +{ +return v_b_1301_; +} +v___jp_1302_: +{ +size_t v___x_1304_; size_t v___x_1305_; +v___x_1304_ = ((size_t)1ULL); +v___x_1305_ = lean_usize_add(v_i_1299_, v___x_1304_); +v_i_1299_ = v___x_1305_; +v_b_1301_ = v___y_1303_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11___boxed(lean_object* v_as_1313_, lean_object* v_i_1314_, lean_object* v_stop_1315_, lean_object* v_b_1316_){ +_start: +{ +size_t v_i_boxed_1317_; size_t v_stop_boxed_1318_; lean_object* v_res_1319_; +v_i_boxed_1317_ = lean_unbox_usize(v_i_1314_); +lean_dec(v_i_1314_); +v_stop_boxed_1318_ = lean_unbox_usize(v_stop_1315_); +lean_dec(v_stop_1315_); +v_res_1319_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11(v_as_1313_, v_i_boxed_1317_, v_stop_boxed_1318_, v_b_1316_); +lean_dec_ref(v_as_1313_); +return v_res_1319_; +} +} +static lean_object* _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1(void){ +_start: +{ +lean_object* v___x_1322_; lean_object* v___x_1323_; lean_object* v___x_1324_; +v___x_1322_ = lean_box(0); +v___x_1323_ = lean_unsigned_to_nat(16u); +v___x_1324_ = lean_mk_array(v___x_1323_, v___x_1322_); +return v___x_1324_; +} +} +static lean_object* _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2(void){ +_start: +{ +lean_object* v___x_1325_; lean_object* v___x_1326_; lean_object* v___x_1327_; +v___x_1325_ = lean_obj_once(&l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1, &l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1_once, _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__1); +v___x_1326_ = lean_unsigned_to_nat(0u); +v___x_1327_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1327_, 0, v___x_1326_); +lean_ctor_set(v___x_1327_, 1, v___x_1325_); +return v___x_1327_; +} +} +static lean_object* _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3(void){ +_start: +{ +lean_object* v___x_1328_; lean_object* v___x_1329_; lean_object* v___x_1330_; +v___x_1328_ = lean_obj_once(&l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2, &l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2_once, _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__2); +v___x_1329_ = ((lean_object*)(l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__0)); +v___x_1330_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1330_, 0, v___x_1329_); +lean_ctor_set(v___x_1330_, 1, v___x_1328_); +return v___x_1330_; +} +} +LEAN_EXPORT lean_object* l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9(lean_object* v_00_u03b2_1331_){ +_start: +{ +lean_object* v___x_1332_; +v___x_1332_ = lean_obj_once(&l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3, &l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3_once, _init_l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9___closed__3); +return v___x_1332_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(lean_object* v_a_1333_, lean_object* v_x_1334_){ +_start: +{ +if (lean_obj_tag(v_x_1334_) == 0) +{ +uint8_t v___x_1335_; +v___x_1335_ = 0; +return v___x_1335_; +} +else +{ +lean_object* v_key_1336_; lean_object* v_tail_1337_; uint8_t v___x_1338_; +v_key_1336_ = lean_ctor_get(v_x_1334_, 0); +v_tail_1337_ = lean_ctor_get(v_x_1334_, 2); +v___x_1338_ = lean_string_dec_eq(v_key_1336_, v_a_1333_); +if (v___x_1338_ == 0) +{ +v_x_1334_ = v_tail_1337_; +goto _start; +} +else +{ +return v___x_1338_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg___boxed(lean_object* v_a_1340_, lean_object* v_x_1341_){ +_start: +{ +uint8_t v_res_1342_; lean_object* v_r_1343_; +v_res_1342_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(v_a_1340_, v_x_1341_); +lean_dec(v_x_1341_); +lean_dec_ref(v_a_1340_); +v_r_1343_ = lean_box(v_res_1342_); +return v_r_1343_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(lean_object* v_m_1344_, lean_object* v_a_1345_){ +_start: +{ +lean_object* v_buckets_1346_; lean_object* v___x_1347_; uint64_t v___x_1348_; uint64_t v___x_1349_; uint64_t v___x_1350_; uint64_t v_fold_1351_; uint64_t v___x_1352_; uint64_t v___x_1353_; uint64_t v___x_1354_; size_t v___x_1355_; size_t v___x_1356_; size_t v___x_1357_; size_t v___x_1358_; size_t v___x_1359_; lean_object* v___x_1360_; uint8_t v___x_1361_; +v_buckets_1346_ = lean_ctor_get(v_m_1344_, 1); +v___x_1347_ = lean_array_get_size(v_buckets_1346_); +v___x_1348_ = lean_string_hash(v_a_1345_); +v___x_1349_ = 32ULL; +v___x_1350_ = lean_uint64_shift_right(v___x_1348_, v___x_1349_); +v_fold_1351_ = lean_uint64_xor(v___x_1348_, v___x_1350_); +v___x_1352_ = 16ULL; +v___x_1353_ = lean_uint64_shift_right(v_fold_1351_, v___x_1352_); +v___x_1354_ = lean_uint64_xor(v_fold_1351_, v___x_1353_); +v___x_1355_ = lean_uint64_to_usize(v___x_1354_); +v___x_1356_ = lean_usize_of_nat(v___x_1347_); +v___x_1357_ = ((size_t)1ULL); +v___x_1358_ = lean_usize_sub(v___x_1356_, v___x_1357_); +v___x_1359_ = lean_usize_land(v___x_1355_, v___x_1358_); +v___x_1360_ = lean_array_uget_borrowed(v_buckets_1346_, v___x_1359_); +v___x_1361_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(v_a_1345_, v___x_1360_); +return v___x_1361_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg___boxed(lean_object* v_m_1362_, lean_object* v_a_1363_){ +_start: +{ +uint8_t v_res_1364_; lean_object* v_r_1365_; +v_res_1364_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(v_m_1362_, v_a_1363_); +lean_dec_ref(v_a_1363_); +lean_dec_ref(v_m_1362_); +v_r_1365_ = lean_box(v_res_1364_); +return v_r_1365_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0(lean_object* v___y_1366_, lean_object* v_____r_1367_){ +_start: +{ +lean_object* v___x_1369_; lean_object* v___x_1370_; lean_object* v___x_1371_; lean_object* v___x_1372_; +v___x_1369_ = lean_box(0); +v___x_1370_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1370_, 0, v___y_1366_); +lean_ctor_set(v___x_1370_, 1, v___x_1369_); +v___x_1371_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1371_, 0, v___x_1370_); +v___x_1372_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1372_, 0, v___x_1371_); +return v___x_1372_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0___boxed(lean_object* v___y_1373_, lean_object* v_____r_1374_, lean_object* v___y_1375_){ +_start: +{ +lean_object* v_res_1376_; +v_res_1376_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0(v___y_1373_, v_____r_1374_); +return v_res_1376_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12(lean_object* v_as_1377_, size_t v_i_1378_, size_t v_stop_1379_, lean_object* v_b_1380_){ +_start: +{ +lean_object* v___y_1382_; uint8_t v___x_1386_; +v___x_1386_ = lean_usize_dec_eq(v_i_1378_, v_stop_1379_); +if (v___x_1386_ == 0) +{ +lean_object* v___x_1387_; lean_object* v_fst_1388_; lean_object* v___x_1389_; uint8_t v___x_1390_; +v___x_1387_ = lean_array_uget_borrowed(v_as_1377_, v_i_1378_); +v_fst_1388_ = lean_ctor_get(v___x_1387_, 0); +v___x_1389_ = l_Std_Http_Header_Name_contentLength; +v___x_1390_ = lean_string_dec_eq(v_fst_1388_, v___x_1389_); +if (v___x_1390_ == 0) +{ +lean_object* v___x_1391_; +lean_inc(v___x_1387_); +v___x_1391_ = lean_array_push(v_b_1380_, v___x_1387_); +v___y_1382_ = v___x_1391_; +goto v___jp_1381_; +} +else +{ +v___y_1382_ = v_b_1380_; +goto v___jp_1381_; +} +} +else +{ +return v_b_1380_; +} +v___jp_1381_: +{ +size_t v___x_1383_; size_t v___x_1384_; +v___x_1383_ = ((size_t)1ULL); +v___x_1384_ = lean_usize_add(v_i_1378_, v___x_1383_); +v_i_1378_ = v___x_1384_; +v_b_1380_ = v___y_1382_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12___boxed(lean_object* v_as_1392_, lean_object* v_i_1393_, lean_object* v_stop_1394_, lean_object* v_b_1395_){ +_start: +{ +size_t v_i_boxed_1396_; size_t v_stop_boxed_1397_; lean_object* v_res_1398_; +v_i_boxed_1396_ = lean_unbox_usize(v_i_1393_); +lean_dec(v_i_1393_); +v_stop_boxed_1397_ = lean_unbox_usize(v_stop_1394_); +lean_dec(v_stop_1394_); +v_res_1398_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12(v_as_1392_, v_i_boxed_1396_, v_stop_boxed_1397_, v_b_1395_); +lean_dec_ref(v_as_1392_); +return v_res_1398_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16___lam__0(lean_object* v_i_1399_, lean_object* v_x_1400_){ +_start: +{ +if (lean_obj_tag(v_x_1400_) == 0) +{ +lean_object* v___x_1401_; lean_object* v___x_1402_; lean_object* v___x_1403_; lean_object* v___x_1404_; +v___x_1401_ = lean_unsigned_to_nat(1u); +v___x_1402_ = lean_mk_empty_array_with_capacity(v___x_1401_); +v___x_1403_ = lean_array_push(v___x_1402_, v_i_1399_); +v___x_1404_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1404_, 0, v___x_1403_); +return v___x_1404_; +} +else +{ +lean_object* v_val_1405_; lean_object* v___x_1407_; uint8_t v_isShared_1408_; uint8_t v_isSharedCheck_1413_; +v_val_1405_ = lean_ctor_get(v_x_1400_, 0); +v_isSharedCheck_1413_ = !lean_is_exclusive(v_x_1400_); +if (v_isSharedCheck_1413_ == 0) +{ +v___x_1407_ = v_x_1400_; +v_isShared_1408_ = v_isSharedCheck_1413_; +goto v_resetjp_1406_; +} +else +{ +lean_inc(v_val_1405_); +lean_dec(v_x_1400_); +v___x_1407_ = lean_box(0); +v_isShared_1408_ = v_isSharedCheck_1413_; +goto v_resetjp_1406_; +} +v_resetjp_1406_: +{ +lean_object* v___x_1409_; lean_object* v___x_1411_; +v___x_1409_ = lean_array_push(v_val_1405_, v_i_1399_); +if (v_isShared_1408_ == 0) +{ +lean_ctor_set(v___x_1407_, 0, v___x_1409_); +v___x_1411_ = v___x_1407_; +goto v_reusejp_1410_; +} +else +{ +lean_object* v_reuseFailAlloc_1412_; +v_reuseFailAlloc_1412_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1412_, 0, v___x_1409_); +v___x_1411_ = v_reuseFailAlloc_1412_; +goto v_reusejp_1410_; +} +v_reusejp_1410_: +{ +return v___x_1411_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16(lean_object* v_i_1414_, lean_object* v_a_1415_, lean_object* v_x_1416_){ +_start: +{ +if (lean_obj_tag(v_x_1416_) == 0) +{ +lean_object* v___x_1417_; lean_object* v___x_1418_; lean_object* v_val_1419_; lean_object* v___x_1420_; +v___x_1417_ = lean_box(0); +v___x_1418_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16___lam__0(v_i_1414_, v___x_1417_); +v_val_1419_ = lean_ctor_get(v___x_1418_, 0); +lean_inc(v_val_1419_); +lean_dec(v___x_1418_); +v___x_1420_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_1420_, 0, v_a_1415_); +lean_ctor_set(v___x_1420_, 1, v_val_1419_); +lean_ctor_set(v___x_1420_, 2, v_x_1416_); +return v___x_1420_; +} +else +{ +lean_object* v_key_1421_; lean_object* v_value_1422_; lean_object* v_tail_1423_; lean_object* v___x_1425_; uint8_t v_isShared_1426_; uint8_t v_isSharedCheck_1438_; +v_key_1421_ = lean_ctor_get(v_x_1416_, 0); +v_value_1422_ = lean_ctor_get(v_x_1416_, 1); +v_tail_1423_ = lean_ctor_get(v_x_1416_, 2); +v_isSharedCheck_1438_ = !lean_is_exclusive(v_x_1416_); +if (v_isSharedCheck_1438_ == 0) +{ +v___x_1425_ = v_x_1416_; +v_isShared_1426_ = v_isSharedCheck_1438_; +goto v_resetjp_1424_; +} +else +{ +lean_inc(v_tail_1423_); +lean_inc(v_value_1422_); +lean_inc(v_key_1421_); +lean_dec(v_x_1416_); +v___x_1425_ = lean_box(0); +v_isShared_1426_ = v_isSharedCheck_1438_; +goto v_resetjp_1424_; +} +v_resetjp_1424_: +{ +uint8_t v___x_1427_; +v___x_1427_ = lean_string_dec_eq(v_key_1421_, v_a_1415_); +if (v___x_1427_ == 0) +{ +lean_object* v_tail_1428_; lean_object* v___x_1430_; +v_tail_1428_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16(v_i_1414_, v_a_1415_, v_tail_1423_); +if (v_isShared_1426_ == 0) +{ +lean_ctor_set(v___x_1425_, 2, v_tail_1428_); +v___x_1430_ = v___x_1425_; +goto v_reusejp_1429_; +} +else +{ +lean_object* v_reuseFailAlloc_1431_; +v_reuseFailAlloc_1431_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_1431_, 0, v_key_1421_); +lean_ctor_set(v_reuseFailAlloc_1431_, 1, v_value_1422_); +lean_ctor_set(v_reuseFailAlloc_1431_, 2, v_tail_1428_); +v___x_1430_ = v_reuseFailAlloc_1431_; +goto v_reusejp_1429_; +} +v_reusejp_1429_: +{ +return v___x_1430_; +} +} +else +{ +lean_object* v___x_1432_; lean_object* v___x_1433_; lean_object* v_val_1434_; lean_object* v___x_1436_; +lean_dec(v_key_1421_); +v___x_1432_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1432_, 0, v_value_1422_); +v___x_1433_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16___lam__0(v_i_1414_, v___x_1432_); +v_val_1434_ = lean_ctor_get(v___x_1433_, 0); +lean_inc(v_val_1434_); +lean_dec(v___x_1433_); +if (v_isShared_1426_ == 0) +{ +lean_ctor_set(v___x_1425_, 1, v_val_1434_); +lean_ctor_set(v___x_1425_, 0, v_a_1415_); +v___x_1436_ = v___x_1425_; +goto v_reusejp_1435_; +} +else +{ +lean_object* v_reuseFailAlloc_1437_; +v_reuseFailAlloc_1437_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_1437_, 0, v_a_1415_); +lean_ctor_set(v_reuseFailAlloc_1437_, 1, v_val_1434_); +lean_ctor_set(v_reuseFailAlloc_1437_, 2, v_tail_1423_); +v___x_1436_ = v_reuseFailAlloc_1437_; +goto v_reusejp_1435_; +} +v_reusejp_1435_: +{ +return v___x_1436_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23___redArg(lean_object* v_x_1439_, lean_object* v_x_1440_){ +_start: +{ +if (lean_obj_tag(v_x_1440_) == 0) +{ +return v_x_1439_; +} +else +{ +lean_object* v_key_1441_; lean_object* v_value_1442_; lean_object* v_tail_1443_; lean_object* v___x_1445_; uint8_t v_isShared_1446_; uint8_t v_isSharedCheck_1466_; +v_key_1441_ = lean_ctor_get(v_x_1440_, 0); +v_value_1442_ = lean_ctor_get(v_x_1440_, 1); +v_tail_1443_ = lean_ctor_get(v_x_1440_, 2); +v_isSharedCheck_1466_ = !lean_is_exclusive(v_x_1440_); +if (v_isSharedCheck_1466_ == 0) +{ +v___x_1445_ = v_x_1440_; +v_isShared_1446_ = v_isSharedCheck_1466_; +goto v_resetjp_1444_; +} +else +{ +lean_inc(v_tail_1443_); +lean_inc(v_value_1442_); +lean_inc(v_key_1441_); +lean_dec(v_x_1440_); +v___x_1445_ = lean_box(0); +v_isShared_1446_ = v_isSharedCheck_1466_; +goto v_resetjp_1444_; +} +v_resetjp_1444_: +{ +lean_object* v___x_1447_; uint64_t v___x_1448_; uint64_t v___x_1449_; uint64_t v___x_1450_; uint64_t v_fold_1451_; uint64_t v___x_1452_; uint64_t v___x_1453_; uint64_t v___x_1454_; size_t v___x_1455_; size_t v___x_1456_; size_t v___x_1457_; size_t v___x_1458_; size_t v___x_1459_; lean_object* v___x_1460_; lean_object* v___x_1462_; +v___x_1447_ = lean_array_get_size(v_x_1439_); +v___x_1448_ = lean_string_hash(v_key_1441_); +v___x_1449_ = 32ULL; +v___x_1450_ = lean_uint64_shift_right(v___x_1448_, v___x_1449_); +v_fold_1451_ = lean_uint64_xor(v___x_1448_, v___x_1450_); +v___x_1452_ = 16ULL; +v___x_1453_ = lean_uint64_shift_right(v_fold_1451_, v___x_1452_); +v___x_1454_ = lean_uint64_xor(v_fold_1451_, v___x_1453_); +v___x_1455_ = lean_uint64_to_usize(v___x_1454_); +v___x_1456_ = lean_usize_of_nat(v___x_1447_); +v___x_1457_ = ((size_t)1ULL); +v___x_1458_ = lean_usize_sub(v___x_1456_, v___x_1457_); +v___x_1459_ = lean_usize_land(v___x_1455_, v___x_1458_); +v___x_1460_ = lean_array_uget_borrowed(v_x_1439_, v___x_1459_); +lean_inc(v___x_1460_); +if (v_isShared_1446_ == 0) +{ +lean_ctor_set(v___x_1445_, 2, v___x_1460_); +v___x_1462_ = v___x_1445_; +goto v_reusejp_1461_; +} +else +{ +lean_object* v_reuseFailAlloc_1465_; +v_reuseFailAlloc_1465_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v_reuseFailAlloc_1465_, 0, v_key_1441_); +lean_ctor_set(v_reuseFailAlloc_1465_, 1, v_value_1442_); +lean_ctor_set(v_reuseFailAlloc_1465_, 2, v___x_1460_); +v___x_1462_ = v_reuseFailAlloc_1465_; +goto v_reusejp_1461_; +} +v_reusejp_1461_: +{ +lean_object* v___x_1463_; +v___x_1463_ = lean_array_uset(v_x_1439_, v___x_1459_, v___x_1462_); +v_x_1439_ = v___x_1463_; +v_x_1440_ = v_tail_1443_; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19___redArg(lean_object* v_i_1467_, lean_object* v_source_1468_, lean_object* v_target_1469_){ +_start: +{ +lean_object* v___x_1470_; uint8_t v___x_1471_; +v___x_1470_ = lean_array_get_size(v_source_1468_); +v___x_1471_ = lean_nat_dec_lt(v_i_1467_, v___x_1470_); +if (v___x_1471_ == 0) +{ +lean_dec_ref(v_source_1468_); +lean_dec(v_i_1467_); +return v_target_1469_; +} +else +{ +lean_object* v_es_1472_; lean_object* v___x_1473_; lean_object* v_source_1474_; lean_object* v_target_1475_; lean_object* v___x_1476_; lean_object* v___x_1477_; +v_es_1472_ = lean_array_fget(v_source_1468_, v_i_1467_); +v___x_1473_ = lean_box(0); +v_source_1474_ = lean_array_fset(v_source_1468_, v_i_1467_, v___x_1473_); +v_target_1475_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23___redArg(v_target_1469_, v_es_1472_); +v___x_1476_ = lean_unsigned_to_nat(1u); +v___x_1477_ = lean_nat_add(v_i_1467_, v___x_1476_); +lean_dec(v_i_1467_); +v_i_1467_ = v___x_1477_; +v_source_1468_ = v_source_1474_; +v_target_1469_ = v_target_1475_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15___redArg(lean_object* v_data_1479_){ +_start: +{ +lean_object* v___x_1480_; lean_object* v___x_1481_; lean_object* v_nbuckets_1482_; lean_object* v___x_1483_; lean_object* v___x_1484_; lean_object* v___x_1485_; lean_object* v___x_1486_; +v___x_1480_ = lean_array_get_size(v_data_1479_); +v___x_1481_ = lean_unsigned_to_nat(2u); +v_nbuckets_1482_ = lean_nat_mul(v___x_1480_, v___x_1481_); +v___x_1483_ = lean_unsigned_to_nat(0u); +v___x_1484_ = lean_box(0); +v___x_1485_ = lean_mk_array(v_nbuckets_1482_, v___x_1484_); +v___x_1486_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19___redArg(v___x_1483_, v_data_1479_, v___x_1485_); +return v___x_1486_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8(lean_object* v_i_1487_, lean_object* v_m_1488_, lean_object* v_a_1489_){ +_start: +{ +lean_object* v_size_1490_; lean_object* v_buckets_1491_; lean_object* v___x_1493_; uint8_t v_isShared_1494_; uint8_t v_isSharedCheck_1541_; +v_size_1490_ = lean_ctor_get(v_m_1488_, 0); +v_buckets_1491_ = lean_ctor_get(v_m_1488_, 1); +v_isSharedCheck_1541_ = !lean_is_exclusive(v_m_1488_); +if (v_isSharedCheck_1541_ == 0) +{ +v___x_1493_ = v_m_1488_; +v_isShared_1494_ = v_isSharedCheck_1541_; +goto v_resetjp_1492_; +} +else +{ +lean_inc(v_buckets_1491_); +lean_inc(v_size_1490_); +lean_dec(v_m_1488_); +v___x_1493_ = lean_box(0); +v_isShared_1494_ = v_isSharedCheck_1541_; +goto v_resetjp_1492_; +} +v_resetjp_1492_: +{ +lean_object* v___x_1495_; uint64_t v___x_1496_; uint64_t v___x_1497_; uint64_t v___x_1498_; uint64_t v_fold_1499_; uint64_t v___x_1500_; uint64_t v___x_1501_; uint64_t v___x_1502_; size_t v___x_1503_; size_t v___x_1504_; size_t v___x_1505_; size_t v___x_1506_; size_t v___x_1507_; lean_object* v_bkt_1508_; uint8_t v___x_1509_; +v___x_1495_ = lean_array_get_size(v_buckets_1491_); +v___x_1496_ = lean_string_hash(v_a_1489_); +v___x_1497_ = 32ULL; +v___x_1498_ = lean_uint64_shift_right(v___x_1496_, v___x_1497_); +v_fold_1499_ = lean_uint64_xor(v___x_1496_, v___x_1498_); +v___x_1500_ = 16ULL; +v___x_1501_ = lean_uint64_shift_right(v_fold_1499_, v___x_1500_); +v___x_1502_ = lean_uint64_xor(v_fold_1499_, v___x_1501_); +v___x_1503_ = lean_uint64_to_usize(v___x_1502_); +v___x_1504_ = lean_usize_of_nat(v___x_1495_); +v___x_1505_ = ((size_t)1ULL); +v___x_1506_ = lean_usize_sub(v___x_1504_, v___x_1505_); +v___x_1507_ = lean_usize_land(v___x_1503_, v___x_1506_); +v_bkt_1508_ = lean_array_uget_borrowed(v_buckets_1491_, v___x_1507_); +v___x_1509_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(v_a_1489_, v_bkt_1508_); +if (v___x_1509_ == 0) +{ +lean_object* v___x_1510_; lean_object* v___x_1511_; lean_object* v___x_1512_; lean_object* v_size_x27_1513_; lean_object* v___x_1514_; lean_object* v_buckets_x27_1515_; lean_object* v___x_1516_; lean_object* v___x_1517_; lean_object* v___x_1518_; lean_object* v___x_1519_; lean_object* v___x_1520_; uint8_t v___x_1521_; +v___x_1510_ = lean_unsigned_to_nat(1u); +v___x_1511_ = lean_mk_empty_array_with_capacity(v___x_1510_); +v___x_1512_ = lean_array_push(v___x_1511_, v_i_1487_); +v_size_x27_1513_ = lean_nat_add(v_size_1490_, v___x_1510_); +lean_dec(v_size_1490_); +lean_inc(v_bkt_1508_); +v___x_1514_ = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(v___x_1514_, 0, v_a_1489_); +lean_ctor_set(v___x_1514_, 1, v___x_1512_); +lean_ctor_set(v___x_1514_, 2, v_bkt_1508_); +v_buckets_x27_1515_ = lean_array_uset(v_buckets_1491_, v___x_1507_, v___x_1514_); +v___x_1516_ = lean_unsigned_to_nat(4u); +v___x_1517_ = lean_nat_mul(v_size_x27_1513_, v___x_1516_); +v___x_1518_ = lean_unsigned_to_nat(3u); +v___x_1519_ = lean_nat_div(v___x_1517_, v___x_1518_); +lean_dec(v___x_1517_); +v___x_1520_ = lean_array_get_size(v_buckets_x27_1515_); +v___x_1521_ = lean_nat_dec_le(v___x_1519_, v___x_1520_); +lean_dec(v___x_1519_); +if (v___x_1521_ == 0) +{ +lean_object* v_val_1522_; lean_object* v___x_1524_; +v_val_1522_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15___redArg(v_buckets_x27_1515_); +if (v_isShared_1494_ == 0) +{ +lean_ctor_set(v___x_1493_, 1, v_val_1522_); +lean_ctor_set(v___x_1493_, 0, v_size_x27_1513_); +v___x_1524_ = v___x_1493_; +goto v_reusejp_1523_; +} +else +{ +lean_object* v_reuseFailAlloc_1525_; +v_reuseFailAlloc_1525_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1525_, 0, v_size_x27_1513_); +lean_ctor_set(v_reuseFailAlloc_1525_, 1, v_val_1522_); +v___x_1524_ = v_reuseFailAlloc_1525_; +goto v_reusejp_1523_; +} +v_reusejp_1523_: +{ +return v___x_1524_; +} +} +else +{ +lean_object* v___x_1527_; +if (v_isShared_1494_ == 0) +{ +lean_ctor_set(v___x_1493_, 1, v_buckets_x27_1515_); +lean_ctor_set(v___x_1493_, 0, v_size_x27_1513_); +v___x_1527_ = v___x_1493_; +goto v_reusejp_1526_; +} +else +{ +lean_object* v_reuseFailAlloc_1528_; +v_reuseFailAlloc_1528_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1528_, 0, v_size_x27_1513_); +lean_ctor_set(v_reuseFailAlloc_1528_, 1, v_buckets_x27_1515_); +v___x_1527_ = v_reuseFailAlloc_1528_; +goto v_reusejp_1526_; +} +v_reusejp_1526_: +{ +return v___x_1527_; +} +} +} +else +{ +lean_object* v___x_1529_; lean_object* v_buckets_x27_1530_; lean_object* v_bkt_x27_1531_; lean_object* v___y_1533_; uint8_t v___x_1538_; +lean_inc(v_bkt_1508_); +v___x_1529_ = lean_box(0); +v_buckets_x27_1530_ = lean_array_uset(v_buckets_1491_, v___x_1507_, v___x_1529_); +lean_inc_ref(v_a_1489_); +v_bkt_x27_1531_ = l_Std_DHashMap_Internal_AssocList_Const_alter___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__16(v_i_1487_, v_a_1489_, v_bkt_1508_); +v___x_1538_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(v_a_1489_, v_bkt_x27_1531_); +lean_dec_ref(v_a_1489_); +if (v___x_1538_ == 0) +{ +lean_object* v___x_1539_; lean_object* v___x_1540_; +v___x_1539_ = lean_unsigned_to_nat(1u); +v___x_1540_ = lean_nat_sub(v_size_1490_, v___x_1539_); +lean_dec(v_size_1490_); +v___y_1533_ = v___x_1540_; +goto v___jp_1532_; +} +else +{ +v___y_1533_ = v_size_1490_; +goto v___jp_1532_; +} +v___jp_1532_: +{ +lean_object* v___x_1534_; lean_object* v___x_1536_; +v___x_1534_ = lean_array_uset(v_buckets_x27_1530_, v___x_1507_, v_bkt_x27_1531_); +if (v_isShared_1494_ == 0) +{ +lean_ctor_set(v___x_1493_, 1, v___x_1534_); +lean_ctor_set(v___x_1493_, 0, v___y_1533_); +v___x_1536_ = v___x_1493_; +goto v_reusejp_1535_; +} +else +{ +lean_object* v_reuseFailAlloc_1537_; +v_reuseFailAlloc_1537_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1537_, 0, v___y_1533_); +lean_ctor_set(v_reuseFailAlloc_1537_, 1, v___x_1534_); +v___x_1536_ = v_reuseFailAlloc_1537_; +goto v_reusejp_1535_; +} +v_reusejp_1535_: +{ +return v___x_1536_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(lean_object* v_as_1542_, size_t v_i_1543_, size_t v_stop_1544_, lean_object* v_b_1545_){ +_start: +{ +uint8_t v___x_1546_; +v___x_1546_ = lean_usize_dec_eq(v_i_1543_, v_stop_1544_); +if (v___x_1546_ == 0) +{ +lean_object* v___x_1547_; lean_object* v_fst_1548_; lean_object* v_entries_1549_; lean_object* v_indexes_1550_; lean_object* v___x_1552_; uint8_t v_isShared_1553_; uint8_t v_isSharedCheck_1563_; +v___x_1547_ = lean_array_uget_borrowed(v_as_1542_, v_i_1543_); +v_fst_1548_ = lean_ctor_get(v___x_1547_, 0); +v_entries_1549_ = lean_ctor_get(v_b_1545_, 0); +v_indexes_1550_ = lean_ctor_get(v_b_1545_, 1); +v_isSharedCheck_1563_ = !lean_is_exclusive(v_b_1545_); +if (v_isSharedCheck_1563_ == 0) +{ +v___x_1552_ = v_b_1545_; +v_isShared_1553_ = v_isSharedCheck_1563_; +goto v_resetjp_1551_; +} +else +{ +lean_inc(v_indexes_1550_); +lean_inc(v_entries_1549_); +lean_dec(v_b_1545_); +v___x_1552_ = lean_box(0); +v_isShared_1553_ = v_isSharedCheck_1563_; +goto v_resetjp_1551_; +} +v_resetjp_1551_: +{ +lean_object* v_i_1554_; lean_object* v_entries_1555_; lean_object* v_indexes_1556_; lean_object* v___x_1558_; +v_i_1554_ = lean_array_get_size(v_entries_1549_); +lean_inc(v___x_1547_); +v_entries_1555_ = lean_array_push(v_entries_1549_, v___x_1547_); +lean_inc(v_fst_1548_); +v_indexes_1556_ = l_Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8(v_i_1554_, v_indexes_1550_, v_fst_1548_); +if (v_isShared_1553_ == 0) +{ +lean_ctor_set(v___x_1552_, 1, v_indexes_1556_); +lean_ctor_set(v___x_1552_, 0, v_entries_1555_); +v___x_1558_ = v___x_1552_; +goto v_reusejp_1557_; +} +else +{ +lean_object* v_reuseFailAlloc_1562_; +v_reuseFailAlloc_1562_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_1562_, 0, v_entries_1555_); +lean_ctor_set(v_reuseFailAlloc_1562_, 1, v_indexes_1556_); +v___x_1558_ = v_reuseFailAlloc_1562_; +goto v_reusejp_1557_; +} +v_reusejp_1557_: +{ +size_t v___x_1559_; size_t v___x_1560_; +v___x_1559_ = ((size_t)1ULL); +v___x_1560_ = lean_usize_add(v_i_1543_, v___x_1559_); +v_i_1543_ = v___x_1560_; +v_b_1545_ = v___x_1558_; +goto _start; +} +} +} +else +{ +return v_b_1545_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10___boxed(lean_object* v_as_1564_, lean_object* v_i_1565_, lean_object* v_stop_1566_, lean_object* v_b_1567_){ +_start: +{ +size_t v_i_boxed_1568_; size_t v_stop_boxed_1569_; lean_object* v_res_1570_; +v_i_boxed_1568_ = lean_unbox_usize(v_i_1565_); +lean_dec(v_i_1565_); +v_stop_boxed_1569_ = lean_unbox_usize(v_stop_1566_); +lean_dec(v_stop_1566_); +v_res_1570_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(v_as_1564_, v_i_boxed_1568_, v_stop_boxed_1569_, v_b_1567_); +lean_dec_ref(v_as_1564_); +return v_res_1570_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0(void){ +_start: +{ +lean_object* v___x_1571_; +v___x_1571_ = l_Std_Internal_IndexMultiMap_empty___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__9(lean_box(0)); +return v___x_1571_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3(lean_object* v___y_1576_, lean_object* v_body_1577_, lean_object* v_isClosed_1578_, lean_object* v_close_1579_, lean_object* v_x_1580_){ +_start: +{ +lean_object* v___y_1583_; uint8_t v_omitBody_1584_; lean_object* v___y_1597_; lean_object* v___y_1632_; uint8_t v___y_1633_; uint8_t v___y_1634_; +if (lean_obj_tag(v_x_1580_) == 0) +{ +lean_object* v_a_1637_; lean_object* v___x_1639_; uint8_t v_isShared_1640_; uint8_t v_isSharedCheck_1645_; +lean_dec_ref(v_close_1579_); +lean_dec_ref(v_isClosed_1578_); +lean_dec(v_body_1577_); +lean_dec_ref(v___y_1576_); +v_a_1637_ = lean_ctor_get(v_x_1580_, 0); +v_isSharedCheck_1645_ = !lean_is_exclusive(v_x_1580_); +if (v_isSharedCheck_1645_ == 0) +{ +v___x_1639_ = v_x_1580_; +v_isShared_1640_ = v_isSharedCheck_1645_; +goto v_resetjp_1638_; +} +else +{ +lean_inc(v_a_1637_); +lean_dec(v_x_1580_); +v___x_1639_ = lean_box(0); +v_isShared_1640_ = v_isSharedCheck_1645_; +goto v_resetjp_1638_; +} +v_resetjp_1638_: +{ +lean_object* v___x_1642_; +if (v_isShared_1640_ == 0) +{ +v___x_1642_ = v___x_1639_; +goto v_reusejp_1641_; +} +else +{ +lean_object* v_reuseFailAlloc_1644_; +v_reuseFailAlloc_1644_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1644_, 0, v_a_1637_); +v___x_1642_ = v_reuseFailAlloc_1644_; +goto v_reusejp_1641_; +} +v_reusejp_1641_: +{ +lean_object* v___x_1643_; +v___x_1643_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1643_, 0, v___x_1642_); +return v___x_1643_; +} +} +} +else +{ +lean_object* v_writer_1646_; lean_object* v_a_1647_; lean_object* v_reader_1648_; lean_object* v_config_1649_; lean_object* v_events_1650_; lean_object* v_error_1651_; lean_object* v_instant_1652_; uint8_t v_keepAlive_1653_; uint8_t v_forcedFlush_1654_; uint8_t v_pullBodyStalled_1655_; lean_object* v_userData_1656_; lean_object* v_outputData_1657_; lean_object* v_state_1658_; lean_object* v_knownSize_1659_; lean_object* v_messageHead_1660_; uint8_t v_sentMessage_1661_; uint8_t v_userClosedBody_1662_; uint8_t v_omitBody_1663_; lean_object* v_userDataBytes_1664_; lean_object* v___x_1666_; uint8_t v_isShared_1667_; uint8_t v_isSharedCheck_1795_; +v_writer_1646_ = lean_ctor_get(v___y_1576_, 1); +lean_inc_ref(v_writer_1646_); +v_a_1647_ = lean_ctor_get(v_x_1580_, 0); +lean_inc(v_a_1647_); +lean_dec_ref(v_x_1580_); +v_reader_1648_ = lean_ctor_get(v___y_1576_, 0); +v_config_1649_ = lean_ctor_get(v___y_1576_, 2); +v_events_1650_ = lean_ctor_get(v___y_1576_, 3); +v_error_1651_ = lean_ctor_get(v___y_1576_, 4); +v_instant_1652_ = lean_ctor_get(v___y_1576_, 5); +v_keepAlive_1653_ = lean_ctor_get_uint8(v___y_1576_, sizeof(void*)*6); +v_forcedFlush_1654_ = lean_ctor_get_uint8(v___y_1576_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1655_ = lean_ctor_get_uint8(v___y_1576_, sizeof(void*)*6 + 2); +v_userData_1656_ = lean_ctor_get(v_writer_1646_, 0); +v_outputData_1657_ = lean_ctor_get(v_writer_1646_, 1); +v_state_1658_ = lean_ctor_get(v_writer_1646_, 2); +v_knownSize_1659_ = lean_ctor_get(v_writer_1646_, 3); +v_messageHead_1660_ = lean_ctor_get(v_writer_1646_, 4); +v_sentMessage_1661_ = lean_ctor_get_uint8(v_writer_1646_, sizeof(void*)*6); +v_userClosedBody_1662_ = lean_ctor_get_uint8(v_writer_1646_, sizeof(void*)*6 + 1); +v_omitBody_1663_ = lean_ctor_get_uint8(v_writer_1646_, sizeof(void*)*6 + 2); +v_userDataBytes_1664_ = lean_ctor_get(v_writer_1646_, 5); +v_isSharedCheck_1795_ = !lean_is_exclusive(v_writer_1646_); +if (v_isSharedCheck_1795_ == 0) +{ +v___x_1666_ = v_writer_1646_; +v_isShared_1667_ = v_isSharedCheck_1795_; +goto v_resetjp_1665_; +} +else +{ +lean_inc(v_userDataBytes_1664_); +lean_inc(v_messageHead_1660_); +lean_inc(v_knownSize_1659_); +lean_inc(v_state_1658_); +lean_inc(v_outputData_1657_); +lean_inc(v_userData_1656_); +lean_dec(v_writer_1646_); +v___x_1666_ = lean_box(0); +v_isShared_1667_ = v_isSharedCheck_1795_; +goto v_resetjp_1665_; +} +v_resetjp_1665_: +{ +uint8_t v___y_1669_; lean_object* v___y_1670_; lean_object* v___y_1679_; lean_object* v___y_1680_; uint8_t v___y_1681_; lean_object* v___y_1682_; lean_object* v___y_1693_; uint8_t v___y_1694_; uint8_t v___y_1709_; uint8_t v___y_1710_; lean_object* v___y_1711_; uint8_t v___y_1717_; lean_object* v___y_1718_; uint8_t v___y_1719_; lean_object* v___y_1720_; lean_object* v___y_1721_; uint8_t v___y_1732_; lean_object* v___y_1733_; uint8_t v___y_1734_; uint8_t v___x_1748_; uint8_t v___y_1750_; lean_object* v___y_1751_; uint8_t v___y_1752_; uint8_t v___y_1753_; uint8_t v___y_1754_; uint8_t v___y_1755_; uint8_t v___y_1762_; uint8_t v___y_1763_; uint8_t v___y_1764_; uint8_t v___y_1775_; uint8_t v___y_1776_; uint8_t v___y_1779_; lean_object* v___x_1793_; uint8_t v___x_1794_; +v___x_1748_ = 0; +v___x_1793_ = lean_box(1); +v___x_1794_ = l_Std_Http_Protocol_H1_Writer_instBEqState_beq(v_state_1658_, v___x_1793_); +if (v___x_1794_ == 0) +{ +v___y_1779_ = v___x_1794_; +goto v___jp_1778_; +} +else +{ +if (v_sentMessage_1661_ == 0) +{ +v___y_1779_ = v___x_1794_; +goto v___jp_1778_; +} +else +{ +lean_del_object(v___x_1666_); +lean_dec(v_userDataBytes_1664_); +lean_dec(v_messageHead_1660_); +lean_dec(v_knownSize_1659_); +lean_dec(v_state_1658_); +lean_dec_ref(v_outputData_1657_); +lean_dec_ref(v_userData_1656_); +lean_dec(v_a_1647_); +v___y_1583_ = v___y_1576_; +v_omitBody_1584_ = v_omitBody_1663_; +goto v___jp_1582_; +} +} +v___jp_1668_: +{ +lean_object* v_message_1671_; lean_object* v___x_14399__overap_1672_; lean_object* v___x_1673_; lean_object* v___x_1675_; +v_message_1671_ = l_Std_Http_Protocol_H1_Message_Head_setHeaders(v___y_1669_, v_a_1647_, v___y_1670_); +v___x_14399__overap_1672_ = l_Std_Http_Protocol_H1_instEncodeV11Head(v___y_1669_); +v___x_1673_ = lean_apply_2(v___x_14399__overap_1672_, v_outputData_1657_, v_message_1671_); +if (v_isShared_1667_ == 0) +{ +lean_ctor_set(v___x_1666_, 1, v___x_1673_); +v___x_1675_ = v___x_1666_; +goto v_reusejp_1674_; +} +else +{ +lean_object* v_reuseFailAlloc_1677_; +v_reuseFailAlloc_1677_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1677_, 0, v_userData_1656_); +lean_ctor_set(v_reuseFailAlloc_1677_, 1, v___x_1673_); +lean_ctor_set(v_reuseFailAlloc_1677_, 2, v_state_1658_); +lean_ctor_set(v_reuseFailAlloc_1677_, 3, v_knownSize_1659_); +lean_ctor_set(v_reuseFailAlloc_1677_, 4, v_messageHead_1660_); +lean_ctor_set(v_reuseFailAlloc_1677_, 5, v_userDataBytes_1664_); +lean_ctor_set_uint8(v_reuseFailAlloc_1677_, sizeof(void*)*6, v_sentMessage_1661_); +lean_ctor_set_uint8(v_reuseFailAlloc_1677_, sizeof(void*)*6 + 1, v_userClosedBody_1662_); +lean_ctor_set_uint8(v_reuseFailAlloc_1677_, sizeof(void*)*6 + 2, v_omitBody_1663_); +v___x_1675_ = v_reuseFailAlloc_1677_; +goto v_reusejp_1674_; +} +v_reusejp_1674_: +{ +lean_object* v___x_1676_; +v___x_1676_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_1676_, 0, v_reader_1648_); +lean_ctor_set(v___x_1676_, 1, v___x_1675_); +lean_ctor_set(v___x_1676_, 2, v_config_1649_); +lean_ctor_set(v___x_1676_, 3, v_events_1650_); +lean_ctor_set(v___x_1676_, 4, v_error_1651_); +lean_ctor_set(v___x_1676_, 5, v_instant_1652_); +lean_ctor_set_uint8(v___x_1676_, sizeof(void*)*6, v_keepAlive_1653_); +lean_ctor_set_uint8(v___x_1676_, sizeof(void*)*6 + 1, v_forcedFlush_1654_); +lean_ctor_set_uint8(v___x_1676_, sizeof(void*)*6 + 2, v_pullBodyStalled_1655_); +v___y_1583_ = v___x_1676_; +v_omitBody_1584_ = v_omitBody_1663_; +goto v___jp_1582_; +} +} +v___jp_1678_: +{ +lean_object* v___x_1683_; uint8_t v___x_1684_; +v___x_1683_ = lean_array_get_size(v___y_1682_); +v___x_1684_ = lean_nat_dec_lt(v___y_1680_, v___x_1683_); +if (v___x_1684_ == 0) +{ +lean_dec_ref(v___y_1682_); +lean_inc_ref(v___y_1679_); +v___y_1669_ = v___y_1681_; +v___y_1670_ = v___y_1679_; +goto v___jp_1668_; +} +else +{ +uint8_t v___x_1685_; +v___x_1685_ = lean_nat_dec_le(v___x_1683_, v___x_1683_); +if (v___x_1685_ == 0) +{ +if (v___x_1684_ == 0) +{ +lean_dec_ref(v___y_1682_); +lean_inc_ref(v___y_1679_); +v___y_1669_ = v___y_1681_; +v___y_1670_ = v___y_1679_; +goto v___jp_1668_; +} +else +{ +size_t v___x_1686_; size_t v___x_1687_; lean_object* v___x_1688_; +v___x_1686_ = ((size_t)0ULL); +v___x_1687_ = lean_usize_of_nat(v___x_1683_); +lean_inc_ref(v___y_1679_); +v___x_1688_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(v___y_1682_, v___x_1686_, v___x_1687_, v___y_1679_); +lean_dec_ref(v___y_1682_); +v___y_1669_ = v___y_1681_; +v___y_1670_ = v___x_1688_; +goto v___jp_1668_; +} +} +else +{ +size_t v___x_1689_; size_t v___x_1690_; lean_object* v___x_1691_; +v___x_1689_ = ((size_t)0ULL); +v___x_1690_ = lean_usize_of_nat(v___x_1683_); +lean_inc_ref(v___y_1679_); +v___x_1691_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(v___y_1682_, v___x_1689_, v___x_1690_, v___y_1679_); +lean_dec_ref(v___y_1682_); +v___y_1669_ = v___y_1681_; +v___y_1670_ = v___x_1691_; +goto v___jp_1668_; +} +} +} +v___jp_1692_: +{ +lean_object* v_entries_1695_; lean_object* v___x_1696_; lean_object* v___x_1697_; lean_object* v___x_1698_; lean_object* v___x_1699_; uint8_t v___x_1700_; +v_entries_1695_ = lean_ctor_get(v___y_1693_, 0); +lean_inc_ref(v_entries_1695_); +lean_dec_ref(v___y_1693_); +v___x_1696_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0); +v___x_1697_ = lean_unsigned_to_nat(0u); +v___x_1698_ = lean_array_get_size(v_entries_1695_); +v___x_1699_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__1)); +v___x_1700_ = lean_nat_dec_lt(v___x_1697_, v___x_1698_); +if (v___x_1700_ == 0) +{ +lean_dec_ref(v_entries_1695_); +v___y_1679_ = v___x_1696_; +v___y_1680_ = v___x_1697_; +v___y_1681_ = v___y_1694_; +v___y_1682_ = v___x_1699_; +goto v___jp_1678_; +} +else +{ +uint8_t v___x_1701_; +v___x_1701_ = lean_nat_dec_le(v___x_1698_, v___x_1698_); +if (v___x_1701_ == 0) +{ +if (v___x_1700_ == 0) +{ +lean_dec_ref(v_entries_1695_); +v___y_1679_ = v___x_1696_; +v___y_1680_ = v___x_1697_; +v___y_1681_ = v___y_1694_; +v___y_1682_ = v___x_1699_; +goto v___jp_1678_; +} +else +{ +size_t v___x_1702_; size_t v___x_1703_; lean_object* v___x_1704_; +v___x_1702_ = ((size_t)0ULL); +v___x_1703_ = lean_usize_of_nat(v___x_1698_); +v___x_1704_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11(v_entries_1695_, v___x_1702_, v___x_1703_, v___x_1699_); +lean_dec_ref(v_entries_1695_); +v___y_1679_ = v___x_1696_; +v___y_1680_ = v___x_1697_; +v___y_1681_ = v___y_1694_; +v___y_1682_ = v___x_1704_; +goto v___jp_1678_; +} +} +else +{ +size_t v___x_1705_; size_t v___x_1706_; lean_object* v___x_1707_; +v___x_1705_ = ((size_t)0ULL); +v___x_1706_ = lean_usize_of_nat(v___x_1698_); +v___x_1707_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__11(v_entries_1695_, v___x_1705_, v___x_1706_, v___x_1699_); +lean_dec_ref(v_entries_1695_); +v___y_1679_ = v___x_1696_; +v___y_1680_ = v___x_1697_; +v___y_1681_ = v___y_1694_; +v___y_1682_ = v___x_1707_; +goto v___jp_1678_; +} +} +} +v___jp_1708_: +{ +lean_object* v___x_1712_; lean_object* v___f_1713_; lean_object* v___f_1714_; uint8_t v___x_1715_; +v___x_1712_ = l_Std_Http_Header_Name_transferEncoding; +v___f_1713_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__2)); +v___f_1714_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__3)); +v___x_1715_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1713_, v___f_1714_, v___x_1712_, v___y_1711_); +if (v___x_1715_ == 0) +{ +if (v___y_1709_ == 0) +{ +v___y_1693_ = v___y_1711_; +v___y_1694_ = v___y_1710_; +goto v___jp_1692_; +} +else +{ +v___y_1669_ = v___y_1710_; +v___y_1670_ = v___y_1711_; +goto v___jp_1668_; +} +} +else +{ +v___y_1693_ = v___y_1711_; +v___y_1694_ = v___y_1710_; +goto v___jp_1692_; +} +} +v___jp_1716_: +{ +lean_object* v___x_1722_; uint8_t v___x_1723_; +v___x_1722_ = lean_array_get_size(v___y_1721_); +v___x_1723_ = lean_nat_dec_lt(v___y_1718_, v___x_1722_); +if (v___x_1723_ == 0) +{ +lean_dec_ref(v___y_1721_); +lean_inc_ref(v___y_1720_); +v___y_1709_ = v___y_1717_; +v___y_1710_ = v___y_1719_; +v___y_1711_ = v___y_1720_; +goto v___jp_1708_; +} +else +{ +uint8_t v___x_1724_; +v___x_1724_ = lean_nat_dec_le(v___x_1722_, v___x_1722_); +if (v___x_1724_ == 0) +{ +if (v___x_1723_ == 0) +{ +lean_dec_ref(v___y_1721_); +lean_inc_ref(v___y_1720_); +v___y_1709_ = v___y_1717_; +v___y_1710_ = v___y_1719_; +v___y_1711_ = v___y_1720_; +goto v___jp_1708_; +} +else +{ +size_t v___x_1725_; size_t v___x_1726_; lean_object* v___x_1727_; +v___x_1725_ = ((size_t)0ULL); +v___x_1726_ = lean_usize_of_nat(v___x_1722_); +lean_inc_ref(v___y_1720_); +v___x_1727_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(v___y_1721_, v___x_1725_, v___x_1726_, v___y_1720_); +lean_dec_ref(v___y_1721_); +v___y_1709_ = v___y_1717_; +v___y_1710_ = v___y_1719_; +v___y_1711_ = v___x_1727_; +goto v___jp_1708_; +} +} +else +{ +size_t v___x_1728_; size_t v___x_1729_; lean_object* v___x_1730_; +v___x_1728_ = ((size_t)0ULL); +v___x_1729_ = lean_usize_of_nat(v___x_1722_); +lean_inc_ref(v___y_1720_); +v___x_1730_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__10(v___y_1721_, v___x_1728_, v___x_1729_, v___y_1720_); +lean_dec_ref(v___y_1721_); +v___y_1709_ = v___y_1717_; +v___y_1710_ = v___y_1719_; +v___y_1711_ = v___x_1730_; +goto v___jp_1708_; +} +} +} +v___jp_1731_: +{ +lean_object* v_entries_1735_; lean_object* v___x_1736_; lean_object* v___x_1737_; lean_object* v___x_1738_; lean_object* v___x_1739_; uint8_t v___x_1740_; +v_entries_1735_ = lean_ctor_get(v___y_1733_, 0); +lean_inc_ref(v_entries_1735_); +lean_dec_ref(v___y_1733_); +v___x_1736_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__0); +v___x_1737_ = lean_unsigned_to_nat(0u); +v___x_1738_ = lean_array_get_size(v_entries_1735_); +v___x_1739_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__1)); +v___x_1740_ = lean_nat_dec_lt(v___x_1737_, v___x_1738_); +if (v___x_1740_ == 0) +{ +lean_dec_ref(v_entries_1735_); +v___y_1717_ = v___y_1732_; +v___y_1718_ = v___x_1737_; +v___y_1719_ = v___y_1734_; +v___y_1720_ = v___x_1736_; +v___y_1721_ = v___x_1739_; +goto v___jp_1716_; +} +else +{ +uint8_t v___x_1741_; +v___x_1741_ = lean_nat_dec_le(v___x_1738_, v___x_1738_); +if (v___x_1741_ == 0) +{ +if (v___x_1740_ == 0) +{ +lean_dec_ref(v_entries_1735_); +v___y_1717_ = v___y_1732_; +v___y_1718_ = v___x_1737_; +v___y_1719_ = v___y_1734_; +v___y_1720_ = v___x_1736_; +v___y_1721_ = v___x_1739_; +goto v___jp_1716_; +} +else +{ +size_t v___x_1742_; size_t v___x_1743_; lean_object* v___x_1744_; +v___x_1742_ = ((size_t)0ULL); +v___x_1743_ = lean_usize_of_nat(v___x_1738_); +v___x_1744_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12(v_entries_1735_, v___x_1742_, v___x_1743_, v___x_1739_); +lean_dec_ref(v_entries_1735_); +v___y_1717_ = v___y_1732_; +v___y_1718_ = v___x_1737_; +v___y_1719_ = v___y_1734_; +v___y_1720_ = v___x_1736_; +v___y_1721_ = v___x_1744_; +goto v___jp_1716_; +} +} +else +{ +size_t v___x_1745_; size_t v___x_1746_; lean_object* v___x_1747_; +v___x_1745_ = ((size_t)0ULL); +v___x_1746_ = lean_usize_of_nat(v___x_1738_); +v___x_1747_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__12(v_entries_1735_, v___x_1745_, v___x_1746_, v___x_1739_); +lean_dec_ref(v_entries_1735_); +v___y_1717_ = v___y_1732_; +v___y_1718_ = v___x_1737_; +v___y_1719_ = v___y_1734_; +v___y_1720_ = v___x_1736_; +v___y_1721_ = v___x_1747_; +goto v___jp_1716_; +} +} +} +v___jp_1749_: +{ +lean_object* v_headerSize_1756_; lean_object* v_machine_1757_; lean_object* v_machine_1758_; lean_object* v_reader_1759_; lean_object* v_state_1760_; +v_headerSize_1756_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___y_1753_, v_a_1647_, v___y_1750_); +v_machine_1757_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_reconcileOutgoingFraming(v___x_1748_, v___y_1751_, v_headerSize_1756_, v___y_1755_); +v_machine_1758_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_maybeSuppressOutgoingBody(v___x_1748_, v_machine_1757_, v_a_1647_); +lean_dec(v_a_1647_); +v_reader_1759_ = lean_ctor_get(v_machine_1758_, 0); +lean_inc_ref(v_reader_1759_); +v_state_1760_ = lean_ctor_get(v_reader_1759_, 0); +lean_inc(v_state_1760_); +lean_dec_ref(v_reader_1759_); +if (lean_obj_tag(v_state_1760_) == 7) +{ +lean_dec_ref(v_state_1760_); +v___y_1632_ = v_machine_1758_; +v___y_1633_ = v___y_1754_; +v___y_1634_ = v___y_1752_; +goto v___jp_1631_; +} +else +{ +lean_dec(v_state_1760_); +v___y_1632_ = v_machine_1758_; +v___y_1633_ = v___y_1754_; +v___y_1634_ = v___y_1750_; +goto v___jp_1631_; +} +} +v___jp_1761_: +{ +uint8_t v___x_1765_; lean_object* v___x_1766_; lean_object* v_indexes_1767_; lean_object* v___x_1768_; lean_object* v_machine_1769_; lean_object* v___x_1770_; uint8_t v___x_1771_; +v___x_1765_ = 1; +v___x_1766_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_1765_, v_a_1647_); +v_indexes_1767_ = lean_ctor_get(v___x_1766_, 1); +lean_inc_ref(v_indexes_1767_); +lean_dec_ref(v___x_1766_); +lean_inc(v_a_1647_); +v___x_1768_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_1768_, 0, v_userData_1656_); +lean_ctor_set(v___x_1768_, 1, v_outputData_1657_); +lean_ctor_set(v___x_1768_, 2, v_state_1658_); +lean_ctor_set(v___x_1768_, 3, v_knownSize_1659_); +lean_ctor_set(v___x_1768_, 4, v_a_1647_); +lean_ctor_set(v___x_1768_, 5, v_userDataBytes_1664_); +lean_ctor_set_uint8(v___x_1768_, sizeof(void*)*6, v___y_1763_); +lean_ctor_set_uint8(v___x_1768_, sizeof(void*)*6 + 1, v_userClosedBody_1662_); +lean_ctor_set_uint8(v___x_1768_, sizeof(void*)*6 + 2, v_omitBody_1663_); +v_machine_1769_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_machine_1769_, 0, v_reader_1648_); +lean_ctor_set(v_machine_1769_, 1, v___x_1768_); +lean_ctor_set(v_machine_1769_, 2, v_config_1649_); +lean_ctor_set(v_machine_1769_, 3, v_events_1650_); +lean_ctor_set(v_machine_1769_, 4, v_error_1651_); +lean_ctor_set(v_machine_1769_, 5, v_instant_1652_); +lean_ctor_set_uint8(v_machine_1769_, sizeof(void*)*6, v_keepAlive_1653_); +lean_ctor_set_uint8(v_machine_1769_, sizeof(void*)*6 + 1, v_forcedFlush_1654_); +lean_ctor_set_uint8(v_machine_1769_, sizeof(void*)*6 + 2, v_pullBodyStalled_1655_); +v___x_1770_ = l_Std_Http_Header_Name_contentLength; +v___x_1771_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(v_indexes_1767_, v___x_1770_); +if (v___x_1771_ == 0) +{ +lean_object* v___x_1772_; uint8_t v___x_1773_; +v___x_1772_ = l_Std_Http_Header_Name_transferEncoding; +v___x_1773_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(v_indexes_1767_, v___x_1772_); +lean_dec_ref(v_indexes_1767_); +v___y_1750_ = v___y_1762_; +v___y_1751_ = v_machine_1769_; +v___y_1752_ = v___y_1763_; +v___y_1753_ = v___x_1765_; +v___y_1754_ = v___y_1764_; +v___y_1755_ = v___x_1773_; +goto v___jp_1749_; +} +else +{ +lean_dec_ref(v_indexes_1767_); +v___y_1750_ = v___y_1762_; +v___y_1751_ = v_machine_1769_; +v___y_1752_ = v___y_1763_; +v___y_1753_ = v___x_1765_; +v___y_1754_ = v___y_1764_; +v___y_1755_ = v___x_1771_; +goto v___jp_1749_; +} +} +v___jp_1774_: +{ +lean_object* v_state_1777_; +v_state_1777_ = lean_ctor_get(v_reader_1648_, 0); +if (lean_obj_tag(v_state_1777_) == 7) +{ +v___y_1762_ = v___y_1776_; +v___y_1763_ = v___y_1775_; +v___y_1764_ = v___y_1775_; +goto v___jp_1761_; +} +else +{ +v___y_1762_ = v___y_1776_; +v___y_1763_ = v___y_1775_; +v___y_1764_ = v___y_1776_; +goto v___jp_1761_; +} +} +v___jp_1778_: +{ +if (v___y_1779_ == 0) +{ +lean_del_object(v___x_1666_); +lean_dec(v_userDataBytes_1664_); +lean_dec(v_messageHead_1660_); +lean_dec(v_knownSize_1659_); +lean_dec(v_state_1658_); +lean_dec_ref(v_outputData_1657_); +lean_dec_ref(v_userData_1656_); +lean_dec(v_a_1647_); +v___y_1583_ = v___y_1576_; +v_omitBody_1584_ = v_omitBody_1663_; +goto v___jp_1582_; +} +else +{ +lean_object* v_status_1780_; uint8_t v___x_1781_; uint16_t v___x_1782_; uint16_t v___x_1783_; uint8_t v___x_1784_; +lean_inc(v_instant_1652_); +lean_inc(v_error_1651_); +lean_inc_ref(v_events_1650_); +lean_inc_ref(v_config_1649_); +lean_inc_ref(v_reader_1648_); +lean_dec_ref(v___y_1576_); +v_status_1780_ = lean_ctor_get(v_a_1647_, 0); +v___x_1781_ = 0; +v___x_1782_ = 100; +v___x_1783_ = l_Std_Http_Status_toCode(v_status_1780_); +v___x_1784_ = lean_uint16_dec_le(v___x_1782_, v___x_1783_); +if (v___x_1784_ == 0) +{ +lean_del_object(v___x_1666_); +lean_dec(v_messageHead_1660_); +v___y_1775_ = v___y_1779_; +v___y_1776_ = v___x_1781_; +goto v___jp_1774_; +} +else +{ +uint16_t v___x_1785_; uint8_t v___x_1786_; +v___x_1785_ = 200; +v___x_1786_ = lean_uint16_dec_lt(v___x_1783_, v___x_1785_); +if (v___x_1786_ == 0) +{ +lean_del_object(v___x_1666_); +lean_dec(v_messageHead_1660_); +v___y_1775_ = v___y_1779_; +v___y_1776_ = v___x_1781_; +goto v___jp_1774_; +} +else +{ +uint8_t v___x_1787_; lean_object* v___x_1788_; lean_object* v___x_1789_; lean_object* v___f_1790_; lean_object* v___f_1791_; uint8_t v___x_1792_; +v___x_1787_ = 1; +v___x_1788_ = l_Std_Http_Protocol_H1_Message_Head_headers(v___x_1787_, v_a_1647_); +v___x_1789_ = l_Std_Http_Header_Name_contentLength; +v___f_1790_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__2)); +v___f_1791_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___closed__3)); +v___x_1792_ = l_Std_Internal_IndexMultiMap_instDecidableMem___redArg(v___f_1790_, v___f_1791_, v___x_1789_, v___x_1788_); +if (v___x_1792_ == 0) +{ +if (v___x_1786_ == 0) +{ +v___y_1732_ = v___x_1786_; +v___y_1733_ = v___x_1788_; +v___y_1734_ = v___x_1787_; +goto v___jp_1731_; +} +else +{ +v___y_1709_ = v___x_1786_; +v___y_1710_ = v___x_1787_; +v___y_1711_ = v___x_1788_; +goto v___jp_1708_; +} +} +else +{ +v___y_1732_ = v___x_1786_; +v___y_1733_ = v___x_1788_; +v___y_1734_ = v___x_1787_; +goto v___jp_1731_; +} +} +} +} +} +} +} +v___jp_1582_: +{ +if (v_omitBody_1584_ == 0) +{ +lean_object* v___x_1585_; lean_object* v___x_1586_; lean_object* v___x_1587_; lean_object* v___x_1588_; +lean_dec_ref(v_close_1579_); +lean_dec_ref(v_isClosed_1578_); +v___x_1585_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1585_, 0, v_body_1577_); +v___x_1586_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1586_, 0, v___y_1583_); +lean_ctor_set(v___x_1586_, 1, v___x_1585_); +v___x_1587_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1587_, 0, v___x_1586_); +v___x_1588_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1588_, 0, v___x_1587_); +return v___x_1588_; +} +else +{ +lean_object* v___x_1589_; lean_object* v___f_1590_; lean_object* v___f_1591_; lean_object* v___f_1592_; lean_object* v___x_1593_; uint8_t v___x_1594_; lean_object* v___x_1595_; +lean_dec(v_body_1577_); +v___x_1589_ = lean_apply_1(v_isClosed_1578_, lean_box(0)); +v___f_1590_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__0___boxed), 3, 1); +lean_closure_set(v___f_1590_, 0, v___y_1583_); +lean_inc_ref(v___f_1590_); +v___f_1591_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__1___boxed), 3, 1); +lean_closure_set(v___f_1591_, 0, v___f_1590_); +v___f_1592_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__2___boxed), 5, 3); +lean_closure_set(v___f_1592_, 0, v_close_1579_); +lean_closure_set(v___f_1592_, 1, v___f_1591_); +lean_closure_set(v___f_1592_, 2, v___f_1590_); +v___x_1593_ = lean_unsigned_to_nat(0u); +v___x_1594_ = 0; +v___x_1595_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1593_, v___x_1594_, v___x_1589_, v___f_1592_); +return v___x_1595_; +} +} +v___jp_1596_: +{ +lean_object* v_writer_1598_; lean_object* v_reader_1599_; lean_object* v_config_1600_; lean_object* v_events_1601_; lean_object* v_error_1602_; lean_object* v_instant_1603_; uint8_t v_keepAlive_1604_; uint8_t v_forcedFlush_1605_; uint8_t v_pullBodyStalled_1606_; lean_object* v___x_1608_; uint8_t v_isShared_1609_; uint8_t v_isSharedCheck_1630_; +v_writer_1598_ = lean_ctor_get(v___y_1597_, 1); +v_reader_1599_ = lean_ctor_get(v___y_1597_, 0); +v_config_1600_ = lean_ctor_get(v___y_1597_, 2); +v_events_1601_ = lean_ctor_get(v___y_1597_, 3); +v_error_1602_ = lean_ctor_get(v___y_1597_, 4); +v_instant_1603_ = lean_ctor_get(v___y_1597_, 5); +v_keepAlive_1604_ = lean_ctor_get_uint8(v___y_1597_, sizeof(void*)*6); +v_forcedFlush_1605_ = lean_ctor_get_uint8(v___y_1597_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1606_ = lean_ctor_get_uint8(v___y_1597_, sizeof(void*)*6 + 2); +v_isSharedCheck_1630_ = !lean_is_exclusive(v___y_1597_); +if (v_isSharedCheck_1630_ == 0) +{ +v___x_1608_ = v___y_1597_; +v_isShared_1609_ = v_isSharedCheck_1630_; +goto v_resetjp_1607_; +} +else +{ +lean_inc(v_instant_1603_); +lean_inc(v_error_1602_); +lean_inc(v_events_1601_); +lean_inc(v_config_1600_); +lean_inc(v_writer_1598_); +lean_inc(v_reader_1599_); +lean_dec(v___y_1597_); +v___x_1608_ = lean_box(0); +v_isShared_1609_ = v_isSharedCheck_1630_; +goto v_resetjp_1607_; +} +v_resetjp_1607_: +{ +lean_object* v_userData_1610_; lean_object* v_outputData_1611_; lean_object* v_knownSize_1612_; lean_object* v_messageHead_1613_; uint8_t v_sentMessage_1614_; uint8_t v_userClosedBody_1615_; uint8_t v_omitBody_1616_; lean_object* v_userDataBytes_1617_; lean_object* v___x_1619_; uint8_t v_isShared_1620_; uint8_t v_isSharedCheck_1628_; +v_userData_1610_ = lean_ctor_get(v_writer_1598_, 0); +v_outputData_1611_ = lean_ctor_get(v_writer_1598_, 1); +v_knownSize_1612_ = lean_ctor_get(v_writer_1598_, 3); +v_messageHead_1613_ = lean_ctor_get(v_writer_1598_, 4); +v_sentMessage_1614_ = lean_ctor_get_uint8(v_writer_1598_, sizeof(void*)*6); +v_userClosedBody_1615_ = lean_ctor_get_uint8(v_writer_1598_, sizeof(void*)*6 + 1); +v_omitBody_1616_ = lean_ctor_get_uint8(v_writer_1598_, sizeof(void*)*6 + 2); +v_userDataBytes_1617_ = lean_ctor_get(v_writer_1598_, 5); +v_isSharedCheck_1628_ = !lean_is_exclusive(v_writer_1598_); +if (v_isSharedCheck_1628_ == 0) +{ +lean_object* v_unused_1629_; +v_unused_1629_ = lean_ctor_get(v_writer_1598_, 2); +lean_dec(v_unused_1629_); +v___x_1619_ = v_writer_1598_; +v_isShared_1620_ = v_isSharedCheck_1628_; +goto v_resetjp_1618_; +} +else +{ +lean_inc(v_userDataBytes_1617_); +lean_inc(v_messageHead_1613_); +lean_inc(v_knownSize_1612_); +lean_inc(v_outputData_1611_); +lean_inc(v_userData_1610_); +lean_dec(v_writer_1598_); +v___x_1619_ = lean_box(0); +v_isShared_1620_ = v_isSharedCheck_1628_; +goto v_resetjp_1618_; +} +v_resetjp_1618_: +{ +lean_object* v___x_1621_; lean_object* v___x_1623_; +v___x_1621_ = lean_box(2); +if (v_isShared_1620_ == 0) +{ +lean_ctor_set(v___x_1619_, 2, v___x_1621_); +v___x_1623_ = v___x_1619_; +goto v_reusejp_1622_; +} +else +{ +lean_object* v_reuseFailAlloc_1627_; +v_reuseFailAlloc_1627_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1627_, 0, v_userData_1610_); +lean_ctor_set(v_reuseFailAlloc_1627_, 1, v_outputData_1611_); +lean_ctor_set(v_reuseFailAlloc_1627_, 2, v___x_1621_); +lean_ctor_set(v_reuseFailAlloc_1627_, 3, v_knownSize_1612_); +lean_ctor_set(v_reuseFailAlloc_1627_, 4, v_messageHead_1613_); +lean_ctor_set(v_reuseFailAlloc_1627_, 5, v_userDataBytes_1617_); +lean_ctor_set_uint8(v_reuseFailAlloc_1627_, sizeof(void*)*6, v_sentMessage_1614_); +lean_ctor_set_uint8(v_reuseFailAlloc_1627_, sizeof(void*)*6 + 1, v_userClosedBody_1615_); +lean_ctor_set_uint8(v_reuseFailAlloc_1627_, sizeof(void*)*6 + 2, v_omitBody_1616_); +v___x_1623_ = v_reuseFailAlloc_1627_; +goto v_reusejp_1622_; +} +v_reusejp_1622_: +{ +lean_object* v___x_1625_; +if (v_isShared_1609_ == 0) +{ +lean_ctor_set(v___x_1608_, 1, v___x_1623_); +v___x_1625_ = v___x_1608_; +goto v_reusejp_1624_; +} +else +{ +lean_object* v_reuseFailAlloc_1626_; +v_reuseFailAlloc_1626_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1626_, 0, v_reader_1599_); +lean_ctor_set(v_reuseFailAlloc_1626_, 1, v___x_1623_); +lean_ctor_set(v_reuseFailAlloc_1626_, 2, v_config_1600_); +lean_ctor_set(v_reuseFailAlloc_1626_, 3, v_events_1601_); +lean_ctor_set(v_reuseFailAlloc_1626_, 4, v_error_1602_); +lean_ctor_set(v_reuseFailAlloc_1626_, 5, v_instant_1603_); +lean_ctor_set_uint8(v_reuseFailAlloc_1626_, sizeof(void*)*6, v_keepAlive_1604_); +lean_ctor_set_uint8(v_reuseFailAlloc_1626_, sizeof(void*)*6 + 1, v_forcedFlush_1605_); +lean_ctor_set_uint8(v_reuseFailAlloc_1626_, sizeof(void*)*6 + 2, v_pullBodyStalled_1606_); +v___x_1625_ = v_reuseFailAlloc_1626_; +goto v_reusejp_1624_; +} +v_reusejp_1624_: +{ +v___y_1583_ = v___x_1625_; +v_omitBody_1584_ = v_omitBody_1616_; +goto v___jp_1582_; +} +} +} +} +} +v___jp_1631_: +{ +if (v___y_1634_ == 0) +{ +v___y_1597_ = v___y_1632_; +goto v___jp_1596_; +} +else +{ +if (v___y_1633_ == 0) +{ +lean_object* v_writer_1635_; uint8_t v_omitBody_1636_; +v_writer_1635_ = lean_ctor_get(v___y_1632_, 1); +v_omitBody_1636_ = lean_ctor_get_uint8(v_writer_1635_, sizeof(void*)*6 + 2); +v___y_1583_ = v___y_1632_; +v_omitBody_1584_ = v_omitBody_1636_; +goto v___jp_1582_; +} +else +{ +v___y_1597_ = v___y_1632_; +goto v___jp_1596_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___boxed(lean_object* v___y_1796_, lean_object* v_body_1797_, lean_object* v_isClosed_1798_, lean_object* v_close_1799_, lean_object* v_x_1800_, lean_object* v___y_1801_){ +_start: +{ +lean_object* v_res_1802_; +v_res_1802_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3(v___y_1796_, v_body_1797_, v_isClosed_1798_, v_close_1799_, v_x_1800_); +return v_res_1802_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4(lean_object* v_config_1803_, lean_object* v_line_1804_, lean_object* v_body_1805_, lean_object* v_isClosed_1806_, lean_object* v_close_1807_, lean_object* v_machine_1808_, lean_object* v_x_1809_){ +_start: +{ +lean_object* v___y_1812_; +if (lean_obj_tag(v_x_1809_) == 0) +{ +lean_object* v_a_1818_; lean_object* v___x_1820_; uint8_t v_isShared_1821_; uint8_t v_isSharedCheck_1826_; +lean_dec_ref(v_machine_1808_); +lean_dec_ref(v_close_1807_); +lean_dec_ref(v_isClosed_1806_); +lean_dec(v_body_1805_); +lean_dec_ref(v_line_1804_); +v_a_1818_ = lean_ctor_get(v_x_1809_, 0); +v_isSharedCheck_1826_ = !lean_is_exclusive(v_x_1809_); +if (v_isSharedCheck_1826_ == 0) +{ +v___x_1820_ = v_x_1809_; +v_isShared_1821_ = v_isSharedCheck_1826_; +goto v_resetjp_1819_; +} +else +{ +lean_inc(v_a_1818_); +lean_dec(v_x_1809_); +v___x_1820_ = lean_box(0); +v_isShared_1821_ = v_isSharedCheck_1826_; +goto v_resetjp_1819_; +} +v_resetjp_1819_: +{ +lean_object* v___x_1823_; +if (v_isShared_1821_ == 0) +{ +v___x_1823_ = v___x_1820_; +goto v_reusejp_1822_; +} +else +{ +lean_object* v_reuseFailAlloc_1825_; +v_reuseFailAlloc_1825_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1825_, 0, v_a_1818_); +v___x_1823_ = v_reuseFailAlloc_1825_; +goto v_reusejp_1822_; +} +v_reusejp_1822_: +{ +lean_object* v___x_1824_; +v___x_1824_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1824_, 0, v___x_1823_); +return v___x_1824_; +} +} +} +else +{ +lean_object* v_a_1827_; +v_a_1827_ = lean_ctor_get(v_x_1809_, 0); +lean_inc(v_a_1827_); +lean_dec_ref(v_x_1809_); +if (lean_obj_tag(v_a_1827_) == 1) +{ +lean_object* v_writer_1828_; lean_object* v_reader_1829_; lean_object* v_config_1830_; lean_object* v_events_1831_; lean_object* v_error_1832_; lean_object* v_instant_1833_; uint8_t v_keepAlive_1834_; uint8_t v_forcedFlush_1835_; uint8_t v_pullBodyStalled_1836_; lean_object* v___x_1838_; uint8_t v_isShared_1839_; uint8_t v_isSharedCheck_1859_; +v_writer_1828_ = lean_ctor_get(v_machine_1808_, 1); +v_reader_1829_ = lean_ctor_get(v_machine_1808_, 0); +v_config_1830_ = lean_ctor_get(v_machine_1808_, 2); +v_events_1831_ = lean_ctor_get(v_machine_1808_, 3); +v_error_1832_ = lean_ctor_get(v_machine_1808_, 4); +v_instant_1833_ = lean_ctor_get(v_machine_1808_, 5); +v_keepAlive_1834_ = lean_ctor_get_uint8(v_machine_1808_, sizeof(void*)*6); +v_forcedFlush_1835_ = lean_ctor_get_uint8(v_machine_1808_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1836_ = lean_ctor_get_uint8(v_machine_1808_, sizeof(void*)*6 + 2); +v_isSharedCheck_1859_ = !lean_is_exclusive(v_machine_1808_); +if (v_isSharedCheck_1859_ == 0) +{ +v___x_1838_ = v_machine_1808_; +v_isShared_1839_ = v_isSharedCheck_1859_; +goto v_resetjp_1837_; +} +else +{ +lean_inc(v_instant_1833_); +lean_inc(v_error_1832_); +lean_inc(v_events_1831_); +lean_inc(v_config_1830_); +lean_inc(v_writer_1828_); +lean_inc(v_reader_1829_); +lean_dec(v_machine_1808_); +v___x_1838_ = lean_box(0); +v_isShared_1839_ = v_isSharedCheck_1859_; +goto v_resetjp_1837_; +} +v_resetjp_1837_: +{ +lean_object* v_userData_1840_; lean_object* v_outputData_1841_; lean_object* v_state_1842_; lean_object* v_messageHead_1843_; uint8_t v_sentMessage_1844_; uint8_t v_userClosedBody_1845_; uint8_t v_omitBody_1846_; lean_object* v_userDataBytes_1847_; lean_object* v___x_1849_; uint8_t v_isShared_1850_; uint8_t v_isSharedCheck_1857_; +v_userData_1840_ = lean_ctor_get(v_writer_1828_, 0); +v_outputData_1841_ = lean_ctor_get(v_writer_1828_, 1); +v_state_1842_ = lean_ctor_get(v_writer_1828_, 2); +v_messageHead_1843_ = lean_ctor_get(v_writer_1828_, 4); +v_sentMessage_1844_ = lean_ctor_get_uint8(v_writer_1828_, sizeof(void*)*6); +v_userClosedBody_1845_ = lean_ctor_get_uint8(v_writer_1828_, sizeof(void*)*6 + 1); +v_omitBody_1846_ = lean_ctor_get_uint8(v_writer_1828_, sizeof(void*)*6 + 2); +v_userDataBytes_1847_ = lean_ctor_get(v_writer_1828_, 5); +v_isSharedCheck_1857_ = !lean_is_exclusive(v_writer_1828_); +if (v_isSharedCheck_1857_ == 0) +{ +lean_object* v_unused_1858_; +v_unused_1858_ = lean_ctor_get(v_writer_1828_, 3); +lean_dec(v_unused_1858_); +v___x_1849_ = v_writer_1828_; +v_isShared_1850_ = v_isSharedCheck_1857_; +goto v_resetjp_1848_; +} +else +{ +lean_inc(v_userDataBytes_1847_); +lean_inc(v_messageHead_1843_); +lean_inc(v_state_1842_); +lean_inc(v_outputData_1841_); +lean_inc(v_userData_1840_); +lean_dec(v_writer_1828_); +v___x_1849_ = lean_box(0); +v_isShared_1850_ = v_isSharedCheck_1857_; +goto v_resetjp_1848_; +} +v_resetjp_1848_: +{ +lean_object* v___x_1852_; +if (v_isShared_1850_ == 0) +{ +lean_ctor_set(v___x_1849_, 3, v_a_1827_); +v___x_1852_ = v___x_1849_; +goto v_reusejp_1851_; +} +else +{ +lean_object* v_reuseFailAlloc_1856_; +v_reuseFailAlloc_1856_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1856_, 0, v_userData_1840_); +lean_ctor_set(v_reuseFailAlloc_1856_, 1, v_outputData_1841_); +lean_ctor_set(v_reuseFailAlloc_1856_, 2, v_state_1842_); +lean_ctor_set(v_reuseFailAlloc_1856_, 3, v_a_1827_); +lean_ctor_set(v_reuseFailAlloc_1856_, 4, v_messageHead_1843_); +lean_ctor_set(v_reuseFailAlloc_1856_, 5, v_userDataBytes_1847_); +lean_ctor_set_uint8(v_reuseFailAlloc_1856_, sizeof(void*)*6, v_sentMessage_1844_); +lean_ctor_set_uint8(v_reuseFailAlloc_1856_, sizeof(void*)*6 + 1, v_userClosedBody_1845_); +lean_ctor_set_uint8(v_reuseFailAlloc_1856_, sizeof(void*)*6 + 2, v_omitBody_1846_); +v___x_1852_ = v_reuseFailAlloc_1856_; +goto v_reusejp_1851_; +} +v_reusejp_1851_: +{ +lean_object* v___x_1854_; +if (v_isShared_1839_ == 0) +{ +lean_ctor_set(v___x_1838_, 1, v___x_1852_); +v___x_1854_ = v___x_1838_; +goto v_reusejp_1853_; +} +else +{ +lean_object* v_reuseFailAlloc_1855_; +v_reuseFailAlloc_1855_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1855_, 0, v_reader_1829_); +lean_ctor_set(v_reuseFailAlloc_1855_, 1, v___x_1852_); +lean_ctor_set(v_reuseFailAlloc_1855_, 2, v_config_1830_); +lean_ctor_set(v_reuseFailAlloc_1855_, 3, v_events_1831_); +lean_ctor_set(v_reuseFailAlloc_1855_, 4, v_error_1832_); +lean_ctor_set(v_reuseFailAlloc_1855_, 5, v_instant_1833_); +lean_ctor_set_uint8(v_reuseFailAlloc_1855_, sizeof(void*)*6, v_keepAlive_1834_); +lean_ctor_set_uint8(v_reuseFailAlloc_1855_, sizeof(void*)*6 + 1, v_forcedFlush_1835_); +lean_ctor_set_uint8(v_reuseFailAlloc_1855_, sizeof(void*)*6 + 2, v_pullBodyStalled_1836_); +v___x_1854_ = v_reuseFailAlloc_1855_; +goto v_reusejp_1853_; +} +v_reusejp_1853_: +{ +v___y_1812_ = v___x_1854_; +goto v___jp_1811_; +} +} +} +} +} +else +{ +lean_dec(v_a_1827_); +v___y_1812_ = v_machine_1808_; +goto v___jp_1811_; +} +} +v___jp_1811_: +{ +lean_object* v___x_1813_; lean_object* v___f_1814_; lean_object* v___x_1815_; uint8_t v___x_1816_; lean_object* v___x_1817_; +v___x_1813_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_prepareResponseHead(v_config_1803_, v_line_1804_); +v___f_1814_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__3___boxed), 6, 4); +lean_closure_set(v___f_1814_, 0, v___y_1812_); +lean_closure_set(v___f_1814_, 1, v_body_1805_); +lean_closure_set(v___f_1814_, 2, v_isClosed_1806_); +lean_closure_set(v___f_1814_, 3, v_close_1807_); +v___x_1815_ = lean_unsigned_to_nat(0u); +v___x_1816_ = 0; +v___x_1817_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1815_, v___x_1816_, v___x_1813_, v___f_1814_); +return v___x_1817_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4___boxed(lean_object* v_config_1860_, lean_object* v_line_1861_, lean_object* v_body_1862_, lean_object* v_isClosed_1863_, lean_object* v_close_1864_, lean_object* v_machine_1865_, lean_object* v_x_1866_, lean_object* v___y_1867_){ +_start: +{ +lean_object* v_res_1868_; +v_res_1868_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4(v_config_1860_, v_line_1861_, v_body_1862_, v_isClosed_1863_, v_close_1864_, v_machine_1865_, v_x_1866_); +lean_dec_ref(v_config_1860_); +return v_res_1868_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5(lean_object* v_config_1869_, lean_object* v_machine_1870_, lean_object* v_res_1871_){ +_start: +{ +lean_object* v_body_1873_; lean_object* v_line_1874_; lean_object* v_close_1875_; lean_object* v_isClosed_1876_; lean_object* v_getKnownSize_1877_; lean_object* v___x_1878_; lean_object* v___f_1879_; lean_object* v___x_1880_; uint8_t v___x_1881_; lean_object* v___x_1882_; +v_body_1873_ = lean_ctor_get(v_res_1871_, 1); +lean_inc(v_body_1873_); +v_line_1874_ = lean_ctor_get(v_res_1871_, 0); +lean_inc_ref(v_line_1874_); +lean_dec_ref(v_res_1871_); +v_close_1875_ = lean_ctor_get(v_body_1873_, 1); +lean_inc_ref(v_close_1875_); +v_isClosed_1876_ = lean_ctor_get(v_body_1873_, 2); +lean_inc_ref(v_isClosed_1876_); +v_getKnownSize_1877_ = lean_ctor_get(v_body_1873_, 5); +lean_inc_ref(v_getKnownSize_1877_); +v___x_1878_ = lean_apply_1(v_getKnownSize_1877_, lean_box(0)); +v___f_1879_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___lam__4___boxed), 8, 6); +lean_closure_set(v___f_1879_, 0, v_config_1869_); +lean_closure_set(v___f_1879_, 1, v_line_1874_); +lean_closure_set(v___f_1879_, 2, v_body_1873_); +lean_closure_set(v___f_1879_, 3, v_isClosed_1876_); +lean_closure_set(v___f_1879_, 4, v_close_1875_); +lean_closure_set(v___f_1879_, 5, v_machine_1870_); +v___x_1880_ = lean_unsigned_to_nat(0u); +v___x_1881_ = 0; +v___x_1882_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_1880_, v___x_1881_, v___x_1878_, v___f_1879_); +return v___x_1882_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5___boxed(lean_object* v_config_1883_, lean_object* v_machine_1884_, lean_object* v_res_1885_, lean_object* v_a_1886_){ +_start: +{ +lean_object* v_res_1887_; +v_res_1887_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5(v_config_1883_, v_machine_1884_, v_res_1885_); +return v_res_1887_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0(void){ +_start: +{ +lean_object* v___x_1888_; lean_object* v___x_1889_; +v___x_1888_ = lean_unsigned_to_nat(1000000u); +v___x_1889_ = lean_nat_to_int(v___x_1888_); +return v___x_1889_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1(void){ +_start: +{ +lean_object* v___x_1890_; lean_object* v___x_1891_; +v___x_1890_ = lean_unsigned_to_nat(1000000000u); +v___x_1891_ = lean_nat_to_int(v___x_1890_); +return v___x_1891_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1(lean_object* v_config_1892_, lean_object* v_machine_1893_, lean_object* v_requestStream_1894_, lean_object* v_currentTimeout_1895_, lean_object* v_response_1896_, lean_object* v_respStream_1897_, uint8_t v_requiresData_1898_, lean_object* v_expectData_1899_, uint8_t v_handlerDispatched_1900_, lean_object* v_pendingHead_1901_, lean_object* v___f_1902_, lean_object* v_x_1903_){ +_start: +{ +if (lean_obj_tag(v_x_1903_) == 0) +{ +lean_object* v_a_1905_; lean_object* v___x_1907_; uint8_t v_isShared_1908_; uint8_t v_isSharedCheck_1913_; +lean_dec_ref(v___f_1902_); +lean_dec(v_pendingHead_1901_); +lean_dec(v_expectData_1899_); +lean_dec(v_respStream_1897_); +lean_dec_ref(v_response_1896_); +lean_dec(v_currentTimeout_1895_); +lean_dec_ref(v_requestStream_1894_); +lean_dec_ref(v_machine_1893_); +v_a_1905_ = lean_ctor_get(v_x_1903_, 0); +v_isSharedCheck_1913_ = !lean_is_exclusive(v_x_1903_); +if (v_isSharedCheck_1913_ == 0) +{ +v___x_1907_ = v_x_1903_; +v_isShared_1908_ = v_isSharedCheck_1913_; +goto v_resetjp_1906_; +} +else +{ +lean_inc(v_a_1905_); +lean_dec(v_x_1903_); +v___x_1907_ = lean_box(0); +v_isShared_1908_ = v_isSharedCheck_1913_; +goto v_resetjp_1906_; +} +v_resetjp_1906_: +{ +lean_object* v___x_1910_; +if (v_isShared_1908_ == 0) +{ +v___x_1910_ = v___x_1907_; +goto v_reusejp_1909_; +} +else +{ +lean_object* v_reuseFailAlloc_1912_; +v_reuseFailAlloc_1912_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_1912_, 0, v_a_1905_); +v___x_1910_ = v_reuseFailAlloc_1912_; +goto v_reusejp_1909_; +} +v_reusejp_1909_: +{ +lean_object* v___x_1911_; +v___x_1911_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1911_, 0, v___x_1910_); +return v___x_1911_; +} +} +} +else +{ +lean_object* v_a_1914_; lean_object* v_headerTimeout_1915_; lean_object* v_second_1916_; lean_object* v_nano_1917_; lean_object* v___x_1918_; lean_object* v___x_1919_; lean_object* v___x_1920_; lean_object* v_second_1921_; lean_object* v_nano_1922_; lean_object* v___x_1923_; lean_object* v___x_1924_; lean_object* v___x_1925_; lean_object* v___x_1926_; lean_object* v___x_1927_; lean_object* v___x_1928_; lean_object* v___x_1929_; lean_object* v___x_1930_; lean_object* v___x_1931_; lean_object* v___x_1932_; lean_object* v___x_1933_; lean_object* v___x_1934_; +v_a_1914_ = lean_ctor_get(v_x_1903_, 0); +lean_inc(v_a_1914_); +lean_dec_ref(v_x_1903_); +v_headerTimeout_1915_ = lean_ctor_get(v_config_1892_, 6); +v_second_1916_ = lean_ctor_get(v_a_1914_, 0); +lean_inc(v_second_1916_); +v_nano_1917_ = lean_ctor_get(v_a_1914_, 1); +lean_inc(v_nano_1917_); +lean_dec(v_a_1914_); +v___x_1918_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0); +v___x_1919_ = lean_int_mul(v_headerTimeout_1915_, v___x_1918_); +v___x_1920_ = l_Std_Time_Duration_ofNanoseconds(v___x_1919_); +lean_dec(v___x_1919_); +v_second_1921_ = lean_ctor_get(v___x_1920_, 0); +lean_inc(v_second_1921_); +v_nano_1922_ = lean_ctor_get(v___x_1920_, 1); +lean_inc(v_nano_1922_); +lean_dec_ref(v___x_1920_); +v___x_1923_ = lean_box(0); +v___x_1924_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1); +v___x_1925_ = lean_int_mul(v_second_1916_, v___x_1924_); +lean_dec(v_second_1916_); +v___x_1926_ = lean_int_add(v___x_1925_, v_nano_1917_); +lean_dec(v_nano_1917_); +lean_dec(v___x_1925_); +v___x_1927_ = lean_int_mul(v_second_1921_, v___x_1924_); +lean_dec(v_second_1921_); +v___x_1928_ = lean_int_add(v___x_1927_, v_nano_1922_); +lean_dec(v_nano_1922_); +lean_dec(v___x_1927_); +v___x_1929_ = lean_int_add(v___x_1926_, v___x_1928_); +lean_dec(v___x_1928_); +lean_dec(v___x_1926_); +v___x_1930_ = l_Std_Time_Duration_ofNanoseconds(v___x_1929_); +lean_dec(v___x_1929_); +v___x_1931_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1931_, 0, v___x_1930_); +v___x_1932_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_1932_, 0, v_machine_1893_); +lean_ctor_set(v___x_1932_, 1, v_requestStream_1894_); +lean_ctor_set(v___x_1932_, 2, v___x_1923_); +lean_ctor_set(v___x_1932_, 3, v_currentTimeout_1895_); +lean_ctor_set(v___x_1932_, 4, v___x_1931_); +lean_ctor_set(v___x_1932_, 5, v_response_1896_); +lean_ctor_set(v___x_1932_, 6, v_respStream_1897_); +lean_ctor_set(v___x_1932_, 7, v_expectData_1899_); +lean_ctor_set(v___x_1932_, 8, v_pendingHead_1901_); +lean_ctor_set_uint8(v___x_1932_, sizeof(void*)*9, v_requiresData_1898_); +lean_ctor_set_uint8(v___x_1932_, sizeof(void*)*9 + 1, v_handlerDispatched_1900_); +v___x_1933_ = lean_box(0); +v___x_1934_ = lean_apply_3(v___f_1902_, v___x_1933_, v___x_1932_, lean_box(0)); +return v___x_1934_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___boxed(lean_object* v_config_1935_, lean_object* v_machine_1936_, lean_object* v_requestStream_1937_, lean_object* v_currentTimeout_1938_, lean_object* v_response_1939_, lean_object* v_respStream_1940_, lean_object* v_requiresData_1941_, lean_object* v_expectData_1942_, lean_object* v_handlerDispatched_1943_, lean_object* v_pendingHead_1944_, lean_object* v___f_1945_, lean_object* v_x_1946_, lean_object* v___y_1947_){ +_start: +{ +uint8_t v_requiresData_boxed_1948_; uint8_t v_handlerDispatched_boxed_1949_; lean_object* v_res_1950_; +v_requiresData_boxed_1948_ = lean_unbox(v_requiresData_1941_); +v_handlerDispatched_boxed_1949_ = lean_unbox(v_handlerDispatched_1943_); +v_res_1950_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1(v_config_1935_, v_machine_1936_, v_requestStream_1937_, v_currentTimeout_1938_, v_response_1939_, v_respStream_1940_, v_requiresData_boxed_1948_, v_expectData_1942_, v_handlerDispatched_boxed_1949_, v_pendingHead_1944_, v___f_1945_, v_x_1946_); +lean_dec_ref(v_config_1935_); +return v_res_1950_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2(lean_object* v_machine_1951_, lean_object* v_requestStream_1952_, lean_object* v_keepAliveTimeout_1953_, lean_object* v_currentTimeout_1954_, lean_object* v_headerTimeout_1955_, lean_object* v_response_1956_, uint8_t v_requiresData_1957_, lean_object* v_expectData_1958_, uint8_t v_handlerDispatched_1959_, lean_object* v_pendingHead_1960_, lean_object* v_____r_1961_){ +_start: +{ +lean_object* v_writer_1963_; lean_object* v_reader_1964_; lean_object* v_config_1965_; lean_object* v_events_1966_; lean_object* v_error_1967_; lean_object* v_instant_1968_; uint8_t v_keepAlive_1969_; uint8_t v_forcedFlush_1970_; uint8_t v_pullBodyStalled_1971_; lean_object* v___x_1973_; uint8_t v_isShared_1974_; uint8_t v_isSharedCheck_2001_; +v_writer_1963_ = lean_ctor_get(v_machine_1951_, 1); +v_reader_1964_ = lean_ctor_get(v_machine_1951_, 0); +v_config_1965_ = lean_ctor_get(v_machine_1951_, 2); +v_events_1966_ = lean_ctor_get(v_machine_1951_, 3); +v_error_1967_ = lean_ctor_get(v_machine_1951_, 4); +v_instant_1968_ = lean_ctor_get(v_machine_1951_, 5); +v_keepAlive_1969_ = lean_ctor_get_uint8(v_machine_1951_, sizeof(void*)*6); +v_forcedFlush_1970_ = lean_ctor_get_uint8(v_machine_1951_, sizeof(void*)*6 + 1); +v_pullBodyStalled_1971_ = lean_ctor_get_uint8(v_machine_1951_, sizeof(void*)*6 + 2); +v_isSharedCheck_2001_ = !lean_is_exclusive(v_machine_1951_); +if (v_isSharedCheck_2001_ == 0) +{ +v___x_1973_ = v_machine_1951_; +v_isShared_1974_ = v_isSharedCheck_2001_; +goto v_resetjp_1972_; +} +else +{ +lean_inc(v_instant_1968_); +lean_inc(v_error_1967_); +lean_inc(v_events_1966_); +lean_inc(v_config_1965_); +lean_inc(v_writer_1963_); +lean_inc(v_reader_1964_); +lean_dec(v_machine_1951_); +v___x_1973_ = lean_box(0); +v_isShared_1974_ = v_isSharedCheck_2001_; +goto v_resetjp_1972_; +} +v_resetjp_1972_: +{ +lean_object* v_userData_1975_; lean_object* v_outputData_1976_; lean_object* v_state_1977_; lean_object* v_knownSize_1978_; lean_object* v_messageHead_1979_; uint8_t v_sentMessage_1980_; uint8_t v_omitBody_1981_; lean_object* v_userDataBytes_1982_; lean_object* v___x_1984_; uint8_t v_isShared_1985_; uint8_t v_isSharedCheck_2000_; +v_userData_1975_ = lean_ctor_get(v_writer_1963_, 0); +v_outputData_1976_ = lean_ctor_get(v_writer_1963_, 1); +v_state_1977_ = lean_ctor_get(v_writer_1963_, 2); +v_knownSize_1978_ = lean_ctor_get(v_writer_1963_, 3); +v_messageHead_1979_ = lean_ctor_get(v_writer_1963_, 4); +v_sentMessage_1980_ = lean_ctor_get_uint8(v_writer_1963_, sizeof(void*)*6); +v_omitBody_1981_ = lean_ctor_get_uint8(v_writer_1963_, sizeof(void*)*6 + 2); +v_userDataBytes_1982_ = lean_ctor_get(v_writer_1963_, 5); +v_isSharedCheck_2000_ = !lean_is_exclusive(v_writer_1963_); +if (v_isSharedCheck_2000_ == 0) +{ +v___x_1984_ = v_writer_1963_; +v_isShared_1985_ = v_isSharedCheck_2000_; +goto v_resetjp_1983_; +} +else +{ +lean_inc(v_userDataBytes_1982_); +lean_inc(v_messageHead_1979_); +lean_inc(v_knownSize_1978_); +lean_inc(v_state_1977_); +lean_inc(v_outputData_1976_); +lean_inc(v_userData_1975_); +lean_dec(v_writer_1963_); +v___x_1984_ = lean_box(0); +v_isShared_1985_ = v_isSharedCheck_2000_; +goto v_resetjp_1983_; +} +v_resetjp_1983_: +{ +uint8_t v___x_1986_; lean_object* v___x_1988_; +v___x_1986_ = 1; +if (v_isShared_1985_ == 0) +{ +v___x_1988_ = v___x_1984_; +goto v_reusejp_1987_; +} +else +{ +lean_object* v_reuseFailAlloc_1999_; +v_reuseFailAlloc_1999_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1999_, 0, v_userData_1975_); +lean_ctor_set(v_reuseFailAlloc_1999_, 1, v_outputData_1976_); +lean_ctor_set(v_reuseFailAlloc_1999_, 2, v_state_1977_); +lean_ctor_set(v_reuseFailAlloc_1999_, 3, v_knownSize_1978_); +lean_ctor_set(v_reuseFailAlloc_1999_, 4, v_messageHead_1979_); +lean_ctor_set(v_reuseFailAlloc_1999_, 5, v_userDataBytes_1982_); +lean_ctor_set_uint8(v_reuseFailAlloc_1999_, sizeof(void*)*6, v_sentMessage_1980_); +lean_ctor_set_uint8(v_reuseFailAlloc_1999_, sizeof(void*)*6 + 2, v_omitBody_1981_); +v___x_1988_ = v_reuseFailAlloc_1999_; +goto v_reusejp_1987_; +} +v_reusejp_1987_: +{ +lean_object* v___x_1990_; +lean_ctor_set_uint8(v___x_1988_, sizeof(void*)*6 + 1, v___x_1986_); +if (v_isShared_1974_ == 0) +{ +lean_ctor_set(v___x_1973_, 1, v___x_1988_); +v___x_1990_ = v___x_1973_; +goto v_reusejp_1989_; +} +else +{ +lean_object* v_reuseFailAlloc_1998_; +v_reuseFailAlloc_1998_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_1998_, 0, v_reader_1964_); +lean_ctor_set(v_reuseFailAlloc_1998_, 1, v___x_1988_); +lean_ctor_set(v_reuseFailAlloc_1998_, 2, v_config_1965_); +lean_ctor_set(v_reuseFailAlloc_1998_, 3, v_events_1966_); +lean_ctor_set(v_reuseFailAlloc_1998_, 4, v_error_1967_); +lean_ctor_set(v_reuseFailAlloc_1998_, 5, v_instant_1968_); +lean_ctor_set_uint8(v_reuseFailAlloc_1998_, sizeof(void*)*6, v_keepAlive_1969_); +lean_ctor_set_uint8(v_reuseFailAlloc_1998_, sizeof(void*)*6 + 1, v_forcedFlush_1970_); +lean_ctor_set_uint8(v_reuseFailAlloc_1998_, sizeof(void*)*6 + 2, v_pullBodyStalled_1971_); +v___x_1990_ = v_reuseFailAlloc_1998_; +goto v_reusejp_1989_; +} +v_reusejp_1989_: +{ +lean_object* v___x_1991_; lean_object* v___x_1992_; uint8_t v___x_1993_; lean_object* v___x_1994_; lean_object* v___x_1995_; lean_object* v___x_1996_; lean_object* v___x_1997_; +v___x_1991_ = lean_box(0); +v___x_1992_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_1992_, 0, v___x_1990_); +lean_ctor_set(v___x_1992_, 1, v_requestStream_1952_); +lean_ctor_set(v___x_1992_, 2, v_keepAliveTimeout_1953_); +lean_ctor_set(v___x_1992_, 3, v_currentTimeout_1954_); +lean_ctor_set(v___x_1992_, 4, v_headerTimeout_1955_); +lean_ctor_set(v___x_1992_, 5, v_response_1956_); +lean_ctor_set(v___x_1992_, 6, v___x_1991_); +lean_ctor_set(v___x_1992_, 7, v_expectData_1958_); +lean_ctor_set(v___x_1992_, 8, v_pendingHead_1960_); +lean_ctor_set_uint8(v___x_1992_, sizeof(void*)*9, v_requiresData_1957_); +lean_ctor_set_uint8(v___x_1992_, sizeof(void*)*9 + 1, v_handlerDispatched_1959_); +v___x_1993_ = 0; +v___x_1994_ = lean_box(v___x_1993_); +v___x_1995_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_1995_, 0, v___x_1992_); +lean_ctor_set(v___x_1995_, 1, v___x_1994_); +v___x_1996_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_1996_, 0, v___x_1995_); +v___x_1997_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_1997_, 0, v___x_1996_); +return v___x_1997_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2___boxed(lean_object* v_machine_2002_, lean_object* v_requestStream_2003_, lean_object* v_keepAliveTimeout_2004_, lean_object* v_currentTimeout_2005_, lean_object* v_headerTimeout_2006_, lean_object* v_response_2007_, lean_object* v_requiresData_2008_, lean_object* v_expectData_2009_, lean_object* v_handlerDispatched_2010_, lean_object* v_pendingHead_2011_, lean_object* v_____r_2012_, lean_object* v___y_2013_){ +_start: +{ +uint8_t v_requiresData_boxed_2014_; uint8_t v_handlerDispatched_boxed_2015_; lean_object* v_res_2016_; +v_requiresData_boxed_2014_ = lean_unbox(v_requiresData_2008_); +v_handlerDispatched_boxed_2015_ = lean_unbox(v_handlerDispatched_2010_); +v_res_2016_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2(v_machine_2002_, v_requestStream_2003_, v_keepAliveTimeout_2004_, v_currentTimeout_2005_, v_headerTimeout_2006_, v_response_2007_, v_requiresData_boxed_2014_, v_expectData_2009_, v_handlerDispatched_boxed_2015_, v_pendingHead_2011_, v_____r_2012_); +return v_res_2016_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13(lean_object* v_requestStream_2017_, lean_object* v_keepAliveTimeout_2018_, lean_object* v_currentTimeout_2019_, lean_object* v_headerTimeout_2020_, lean_object* v_response_2021_, uint8_t v_requiresData_2022_, lean_object* v_expectData_2023_, uint8_t v___x_2024_, lean_object* v_pendingHead_2025_, lean_object* v_____x_2026_){ +_start: +{ +lean_object* v_fst_2028_; lean_object* v_snd_2029_; lean_object* v___x_2031_; uint8_t v_isShared_2032_; uint8_t v_isSharedCheck_2040_; +v_fst_2028_ = lean_ctor_get(v_____x_2026_, 0); +v_snd_2029_ = lean_ctor_get(v_____x_2026_, 1); +v_isSharedCheck_2040_ = !lean_is_exclusive(v_____x_2026_); +if (v_isSharedCheck_2040_ == 0) +{ +v___x_2031_ = v_____x_2026_; +v_isShared_2032_ = v_isSharedCheck_2040_; +goto v_resetjp_2030_; +} +else +{ +lean_inc(v_snd_2029_); +lean_inc(v_fst_2028_); +lean_dec(v_____x_2026_); +v___x_2031_ = lean_box(0); +v_isShared_2032_ = v_isSharedCheck_2040_; +goto v_resetjp_2030_; +} +v_resetjp_2030_: +{ +lean_object* v___x_2033_; lean_object* v___x_2034_; lean_object* v___x_2036_; +v___x_2033_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_2033_, 0, v_fst_2028_); +lean_ctor_set(v___x_2033_, 1, v_requestStream_2017_); +lean_ctor_set(v___x_2033_, 2, v_keepAliveTimeout_2018_); +lean_ctor_set(v___x_2033_, 3, v_currentTimeout_2019_); +lean_ctor_set(v___x_2033_, 4, v_headerTimeout_2020_); +lean_ctor_set(v___x_2033_, 5, v_response_2021_); +lean_ctor_set(v___x_2033_, 6, v_snd_2029_); +lean_ctor_set(v___x_2033_, 7, v_expectData_2023_); +lean_ctor_set(v___x_2033_, 8, v_pendingHead_2025_); +lean_ctor_set_uint8(v___x_2033_, sizeof(void*)*9, v_requiresData_2022_); +lean_ctor_set_uint8(v___x_2033_, sizeof(void*)*9 + 1, v___x_2024_); +v___x_2034_ = lean_box(v___x_2024_); +if (v_isShared_2032_ == 0) +{ +lean_ctor_set(v___x_2031_, 1, v___x_2034_); +lean_ctor_set(v___x_2031_, 0, v___x_2033_); +v___x_2036_ = v___x_2031_; +goto v_reusejp_2035_; +} +else +{ +lean_object* v_reuseFailAlloc_2039_; +v_reuseFailAlloc_2039_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_2039_, 0, v___x_2033_); +lean_ctor_set(v_reuseFailAlloc_2039_, 1, v___x_2034_); +v___x_2036_ = v_reuseFailAlloc_2039_; +goto v_reusejp_2035_; +} +v_reusejp_2035_: +{ +lean_object* v___x_2037_; lean_object* v___x_2038_; +v___x_2037_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2037_, 0, v___x_2036_); +v___x_2038_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2038_, 0, v___x_2037_); +return v___x_2038_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13___boxed(lean_object* v_requestStream_2041_, lean_object* v_keepAliveTimeout_2042_, lean_object* v_currentTimeout_2043_, lean_object* v_headerTimeout_2044_, lean_object* v_response_2045_, lean_object* v_requiresData_2046_, lean_object* v_expectData_2047_, lean_object* v___x_2048_, lean_object* v_pendingHead_2049_, lean_object* v_____x_2050_, lean_object* v___y_2051_){ +_start: +{ +uint8_t v_requiresData_boxed_2052_; uint8_t v___x_17550__boxed_2053_; lean_object* v_res_2054_; +v_requiresData_boxed_2052_ = lean_unbox(v_requiresData_2046_); +v___x_17550__boxed_2053_ = lean_unbox(v___x_2048_); +v_res_2054_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13(v_requestStream_2041_, v_keepAliveTimeout_2042_, v_currentTimeout_2043_, v_headerTimeout_2044_, v_response_2045_, v_requiresData_boxed_2052_, v_expectData_2047_, v___x_17550__boxed_2053_, v_pendingHead_2049_, v_____x_2050_); +return v_res_2054_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3(lean_object* v___f_2055_, lean_object* v_x_2056_){ +_start: +{ +if (lean_obj_tag(v_x_2056_) == 0) +{ +lean_object* v_a_2058_; lean_object* v___x_2060_; uint8_t v_isShared_2061_; uint8_t v_isSharedCheck_2066_; +lean_dec_ref(v___f_2055_); +v_a_2058_ = lean_ctor_get(v_x_2056_, 0); +v_isSharedCheck_2066_ = !lean_is_exclusive(v_x_2056_); +if (v_isSharedCheck_2066_ == 0) +{ +v___x_2060_ = v_x_2056_; +v_isShared_2061_ = v_isSharedCheck_2066_; +goto v_resetjp_2059_; +} +else +{ +lean_inc(v_a_2058_); +lean_dec(v_x_2056_); +v___x_2060_ = lean_box(0); +v_isShared_2061_ = v_isSharedCheck_2066_; +goto v_resetjp_2059_; +} +v_resetjp_2059_: +{ +lean_object* v___x_2063_; +if (v_isShared_2061_ == 0) +{ +v___x_2063_ = v___x_2060_; +goto v_reusejp_2062_; +} +else +{ +lean_object* v_reuseFailAlloc_2065_; +v_reuseFailAlloc_2065_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2065_, 0, v_a_2058_); +v___x_2063_ = v_reuseFailAlloc_2065_; +goto v_reusejp_2062_; +} +v_reusejp_2062_: +{ +lean_object* v___x_2064_; +v___x_2064_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2064_, 0, v___x_2063_); +return v___x_2064_; +} +} +} +else +{ +lean_object* v_a_2067_; lean_object* v___x_2068_; +v_a_2067_ = lean_ctor_get(v_x_2056_, 0); +lean_inc(v_a_2067_); +lean_dec_ref(v_x_2056_); +v___x_2068_ = lean_apply_2(v___f_2055_, v_a_2067_, lean_box(0)); +return v___x_2068_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3___boxed(lean_object* v___f_2069_, lean_object* v_x_2070_, lean_object* v___y_2071_){ +_start: +{ +lean_object* v_res_2072_; +v_res_2072_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3(v___f_2069_, v_x_2070_); +return v_res_2072_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5(lean_object* v_x_2073_){ +_start: +{ +if (lean_obj_tag(v_x_2073_) == 0) +{ +lean_object* v___x_2075_; +lean_dec_ref(v_x_2073_); +v___x_2075_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +return v___x_2075_; +} +else +{ +lean_object* v___x_2076_; +v___x_2076_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2076_, 0, v_x_2073_); +return v___x_2076_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5___boxed(lean_object* v_x_2077_, lean_object* v___y_2078_){ +_start: +{ +lean_object* v_res_2079_; +v_res_2079_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__5(v_x_2077_); +return v_res_2079_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0(lean_object* v_val_2086_, lean_object* v_____r_2087_, lean_object* v_st_2088_){ +_start: +{ +lean_object* v_machine_2090_; lean_object* v_requestStream_2091_; lean_object* v_keepAliveTimeout_2092_; lean_object* v_currentTimeout_2093_; lean_object* v_headerTimeout_2094_; lean_object* v_response_2095_; lean_object* v_respStream_2096_; uint8_t v_requiresData_2097_; lean_object* v_expectData_2098_; uint8_t v_handlerDispatched_2099_; lean_object* v_pendingHead_2100_; lean_object* v___x_2102_; uint8_t v_isShared_2103_; uint8_t v_isSharedCheck_2182_; +v_machine_2090_ = lean_ctor_get(v_st_2088_, 0); +v_requestStream_2091_ = lean_ctor_get(v_st_2088_, 1); +v_keepAliveTimeout_2092_ = lean_ctor_get(v_st_2088_, 2); +v_currentTimeout_2093_ = lean_ctor_get(v_st_2088_, 3); +v_headerTimeout_2094_ = lean_ctor_get(v_st_2088_, 4); +v_response_2095_ = lean_ctor_get(v_st_2088_, 5); +v_respStream_2096_ = lean_ctor_get(v_st_2088_, 6); +v_requiresData_2097_ = lean_ctor_get_uint8(v_st_2088_, sizeof(void*)*9); +v_expectData_2098_ = lean_ctor_get(v_st_2088_, 7); +v_handlerDispatched_2099_ = lean_ctor_get_uint8(v_st_2088_, sizeof(void*)*9 + 1); +v_pendingHead_2100_ = lean_ctor_get(v_st_2088_, 8); +v_isSharedCheck_2182_ = !lean_is_exclusive(v_st_2088_); +if (v_isSharedCheck_2182_ == 0) +{ +v___x_2102_ = v_st_2088_; +v_isShared_2103_ = v_isSharedCheck_2182_; +goto v_resetjp_2101_; +} +else +{ +lean_inc(v_pendingHead_2100_); +lean_inc(v_expectData_2098_); +lean_inc(v_respStream_2096_); +lean_inc(v_response_2095_); +lean_inc(v_headerTimeout_2094_); +lean_inc(v_currentTimeout_2093_); +lean_inc(v_keepAliveTimeout_2092_); +lean_inc(v_requestStream_2091_); +lean_inc(v_machine_2090_); +lean_dec(v_st_2088_); +v___x_2102_ = lean_box(0); +v_isShared_2103_ = v_isSharedCheck_2182_; +goto v_resetjp_2101_; +} +v_resetjp_2101_: +{ +lean_object* v___y_2105_; lean_object* v_reader_2114_; lean_object* v_state_2115_; +v_reader_2114_ = lean_ctor_get(v_machine_2090_, 0); +lean_inc_ref(v_reader_2114_); +v_state_2115_ = lean_ctor_get(v_reader_2114_, 0); +lean_inc(v_state_2115_); +if (lean_obj_tag(v_state_2115_) == 6) +{ +lean_dec_ref(v_reader_2114_); +lean_dec_ref(v_val_2086_); +v___y_2105_ = v_machine_2090_; +goto v___jp_2104_; +} +else +{ +if (lean_obj_tag(v_state_2115_) == 7) +{ +lean_dec_ref(v_state_2115_); +lean_dec_ref(v_reader_2114_); +lean_dec_ref(v_val_2086_); +v___y_2105_ = v_machine_2090_; +goto v___jp_2104_; +} +else +{ +lean_object* v_input_2116_; lean_object* v_writer_2117_; lean_object* v_config_2118_; lean_object* v_events_2119_; lean_object* v_error_2120_; lean_object* v_instant_2121_; uint8_t v_keepAlive_2122_; uint8_t v_forcedFlush_2123_; lean_object* v___x_2125_; uint8_t v_isShared_2126_; uint8_t v_isSharedCheck_2180_; +v_input_2116_ = lean_ctor_get(v_reader_2114_, 1); +lean_inc_ref(v_input_2116_); +v_writer_2117_ = lean_ctor_get(v_machine_2090_, 1); +v_config_2118_ = lean_ctor_get(v_machine_2090_, 2); +v_events_2119_ = lean_ctor_get(v_machine_2090_, 3); +v_error_2120_ = lean_ctor_get(v_machine_2090_, 4); +v_instant_2121_ = lean_ctor_get(v_machine_2090_, 5); +v_keepAlive_2122_ = lean_ctor_get_uint8(v_machine_2090_, sizeof(void*)*6); +v_forcedFlush_2123_ = lean_ctor_get_uint8(v_machine_2090_, sizeof(void*)*6 + 1); +v_isSharedCheck_2180_ = !lean_is_exclusive(v_machine_2090_); +if (v_isSharedCheck_2180_ == 0) +{ +lean_object* v_unused_2181_; +v_unused_2181_ = lean_ctor_get(v_machine_2090_, 0); +lean_dec(v_unused_2181_); +v___x_2125_ = v_machine_2090_; +v_isShared_2126_ = v_isSharedCheck_2180_; +goto v_resetjp_2124_; +} +else +{ +lean_inc(v_instant_2121_); +lean_inc(v_error_2120_); +lean_inc(v_events_2119_); +lean_inc(v_config_2118_); +lean_inc(v_writer_2117_); +lean_dec(v_machine_2090_); +v___x_2125_ = lean_box(0); +v_isShared_2126_ = v_isSharedCheck_2180_; +goto v_resetjp_2124_; +} +v_resetjp_2124_: +{ +lean_object* v_messageHead_2127_; lean_object* v_messageCount_2128_; lean_object* v_bodyBytesRead_2129_; lean_object* v_headerBytesRead_2130_; uint8_t v_noMoreInput_2131_; lean_object* v___x_2133_; uint8_t v_isShared_2134_; uint8_t v_isSharedCheck_2177_; +v_messageHead_2127_ = lean_ctor_get(v_reader_2114_, 2); +v_messageCount_2128_ = lean_ctor_get(v_reader_2114_, 3); +v_bodyBytesRead_2129_ = lean_ctor_get(v_reader_2114_, 4); +v_headerBytesRead_2130_ = lean_ctor_get(v_reader_2114_, 5); +v_noMoreInput_2131_ = lean_ctor_get_uint8(v_reader_2114_, sizeof(void*)*6); +v_isSharedCheck_2177_ = !lean_is_exclusive(v_reader_2114_); +if (v_isSharedCheck_2177_ == 0) +{ +lean_object* v_unused_2178_; lean_object* v_unused_2179_; +v_unused_2178_ = lean_ctor_get(v_reader_2114_, 1); +lean_dec(v_unused_2178_); +v_unused_2179_ = lean_ctor_get(v_reader_2114_, 0); +lean_dec(v_unused_2179_); +v___x_2133_ = v_reader_2114_; +v_isShared_2134_ = v_isSharedCheck_2177_; +goto v_resetjp_2132_; +} +else +{ +lean_inc(v_headerBytesRead_2130_); +lean_inc(v_bodyBytesRead_2129_); +lean_inc(v_messageCount_2128_); +lean_inc(v_messageHead_2127_); +lean_dec(v_reader_2114_); +v___x_2133_ = lean_box(0); +v_isShared_2134_ = v_isSharedCheck_2177_; +goto v_resetjp_2132_; +} +v_resetjp_2132_: +{ +lean_object* v_array_2135_; lean_object* v_idx_2136_; uint8_t v___x_2137_; lean_object* v___y_2139_; lean_object* v___x_2168_; uint8_t v___x_2169_; +v_array_2135_ = lean_ctor_get(v_input_2116_, 0); +lean_inc_ref(v_array_2135_); +v_idx_2136_ = lean_ctor_get(v_input_2116_, 1); +lean_inc(v_idx_2136_); +lean_dec_ref(v_input_2116_); +v___x_2137_ = 0; +v___x_2168_ = lean_byte_array_size(v_array_2135_); +v___x_2169_ = lean_nat_dec_le(v___x_2168_, v_idx_2136_); +if (v___x_2169_ == 0) +{ +lean_object* v___x_2170_; lean_object* v___x_2171_; lean_object* v___x_2172_; lean_object* v___x_2173_; lean_object* v___x_2174_; lean_object* v___x_2175_; +v___x_2170_ = l_ByteArray_extract(v_array_2135_, v_idx_2136_, v___x_2168_); +lean_dec_ref(v_array_2135_); +v___x_2171_ = lean_unsigned_to_nat(0u); +v___x_2172_ = lean_byte_array_size(v___x_2170_); +v___x_2173_ = lean_byte_array_size(v_val_2086_); +v___x_2174_ = lean_byte_array_copy_slice(v_val_2086_, v___x_2171_, v___x_2170_, v___x_2172_, v___x_2173_, v___x_2169_); +lean_dec_ref(v_val_2086_); +v___x_2175_ = l_ByteArray_mkIterator(v___x_2174_); +v___y_2139_ = v___x_2175_; +goto v___jp_2138_; +} +else +{ +lean_object* v___x_2176_; +lean_dec(v_idx_2136_); +lean_dec_ref(v_array_2135_); +v___x_2176_ = l_ByteArray_mkIterator(v_val_2086_); +v___y_2139_ = v___x_2176_; +goto v___jp_2138_; +} +v___jp_2138_: +{ +lean_object* v_maxHeaderBytes_2140_; lean_object* v_maxStartLineLength_2141_; lean_object* v_maxChunkLineLength_2142_; lean_object* v_maxBodySize_2143_; lean_object* v_array_2144_; lean_object* v_idx_2145_; lean_object* v___x_2146_; lean_object* v___x_2147_; lean_object* v___x_2148_; lean_object* v___x_2149_; lean_object* v___x_2150_; uint8_t v___x_2151_; +v_maxHeaderBytes_2140_ = lean_ctor_get(v_config_2118_, 2); +v_maxStartLineLength_2141_ = lean_ctor_get(v_config_2118_, 5); +v_maxChunkLineLength_2142_ = lean_ctor_get(v_config_2118_, 13); +v_maxBodySize_2143_ = lean_ctor_get(v_config_2118_, 15); +v_array_2144_ = lean_ctor_get(v___y_2139_, 0); +v_idx_2145_ = lean_ctor_get(v___y_2139_, 1); +v___x_2146_ = lean_nat_add(v_maxBodySize_2143_, v_maxHeaderBytes_2140_); +v___x_2147_ = lean_nat_add(v___x_2146_, v_maxStartLineLength_2141_); +lean_dec(v___x_2146_); +v___x_2148_ = lean_nat_add(v___x_2147_, v_maxChunkLineLength_2142_); +lean_dec(v___x_2147_); +v___x_2149_ = lean_byte_array_size(v_array_2144_); +v___x_2150_ = lean_nat_sub(v___x_2149_, v_idx_2145_); +v___x_2151_ = lean_nat_dec_lt(v___x_2148_, v___x_2150_); +lean_dec(v___x_2150_); +lean_dec(v___x_2148_); +if (v___x_2151_ == 0) +{ +lean_object* v___x_2153_; +if (v_isShared_2134_ == 0) +{ +lean_ctor_set(v___x_2133_, 1, v___y_2139_); +v___x_2153_ = v___x_2133_; +goto v_reusejp_2152_; +} +else +{ +lean_object* v_reuseFailAlloc_2157_; +v_reuseFailAlloc_2157_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_2157_, 0, v_state_2115_); +lean_ctor_set(v_reuseFailAlloc_2157_, 1, v___y_2139_); +lean_ctor_set(v_reuseFailAlloc_2157_, 2, v_messageHead_2127_); +lean_ctor_set(v_reuseFailAlloc_2157_, 3, v_messageCount_2128_); +lean_ctor_set(v_reuseFailAlloc_2157_, 4, v_bodyBytesRead_2129_); +lean_ctor_set(v_reuseFailAlloc_2157_, 5, v_headerBytesRead_2130_); +lean_ctor_set_uint8(v_reuseFailAlloc_2157_, sizeof(void*)*6, v_noMoreInput_2131_); +v___x_2153_ = v_reuseFailAlloc_2157_; +goto v_reusejp_2152_; +} +v_reusejp_2152_: +{ +lean_object* v_machine_2155_; +if (v_isShared_2126_ == 0) +{ +lean_ctor_set(v___x_2125_, 0, v___x_2153_); +v_machine_2155_ = v___x_2125_; +goto v_reusejp_2154_; +} +else +{ +lean_object* v_reuseFailAlloc_2156_; +v_reuseFailAlloc_2156_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2156_, 0, v___x_2153_); +lean_ctor_set(v_reuseFailAlloc_2156_, 1, v_writer_2117_); +lean_ctor_set(v_reuseFailAlloc_2156_, 2, v_config_2118_); +lean_ctor_set(v_reuseFailAlloc_2156_, 3, v_events_2119_); +lean_ctor_set(v_reuseFailAlloc_2156_, 4, v_error_2120_); +lean_ctor_set(v_reuseFailAlloc_2156_, 5, v_instant_2121_); +lean_ctor_set_uint8(v_reuseFailAlloc_2156_, sizeof(void*)*6, v_keepAlive_2122_); +lean_ctor_set_uint8(v_reuseFailAlloc_2156_, sizeof(void*)*6 + 1, v_forcedFlush_2123_); +v_machine_2155_ = v_reuseFailAlloc_2156_; +goto v_reusejp_2154_; +} +v_reusejp_2154_: +{ +lean_ctor_set_uint8(v_machine_2155_, sizeof(void*)*6 + 2, v___x_2137_); +v___y_2105_ = v_machine_2155_; +goto v___jp_2104_; +} +} +} +else +{ +lean_object* v___x_2158_; lean_object* v___x_2159_; lean_object* v___x_2160_; lean_object* v___x_2162_; +lean_dec(v_error_2120_); +lean_dec(v_state_2115_); +v___x_2158_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__0)); +v___x_2159_ = lean_array_push(v_events_2119_, v___x_2158_); +v___x_2160_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__1)); +if (v_isShared_2134_ == 0) +{ +lean_ctor_set(v___x_2133_, 1, v___y_2139_); +lean_ctor_set(v___x_2133_, 0, v___x_2160_); +v___x_2162_ = v___x_2133_; +goto v_reusejp_2161_; +} +else +{ +lean_object* v_reuseFailAlloc_2167_; +v_reuseFailAlloc_2167_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_2167_, 0, v___x_2160_); +lean_ctor_set(v_reuseFailAlloc_2167_, 1, v___y_2139_); +lean_ctor_set(v_reuseFailAlloc_2167_, 2, v_messageHead_2127_); +lean_ctor_set(v_reuseFailAlloc_2167_, 3, v_messageCount_2128_); +lean_ctor_set(v_reuseFailAlloc_2167_, 4, v_bodyBytesRead_2129_); +lean_ctor_set(v_reuseFailAlloc_2167_, 5, v_headerBytesRead_2130_); +lean_ctor_set_uint8(v_reuseFailAlloc_2167_, sizeof(void*)*6, v_noMoreInput_2131_); +v___x_2162_ = v_reuseFailAlloc_2167_; +goto v_reusejp_2161_; +} +v_reusejp_2161_: +{ +lean_object* v___x_2163_; lean_object* v___x_2165_; +v___x_2163_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___closed__2)); +if (v_isShared_2126_ == 0) +{ +lean_ctor_set(v___x_2125_, 4, v___x_2163_); +lean_ctor_set(v___x_2125_, 3, v___x_2159_); +lean_ctor_set(v___x_2125_, 0, v___x_2162_); +v___x_2165_ = v___x_2125_; +goto v_reusejp_2164_; +} +else +{ +lean_object* v_reuseFailAlloc_2166_; +v_reuseFailAlloc_2166_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2166_, 0, v___x_2162_); +lean_ctor_set(v_reuseFailAlloc_2166_, 1, v_writer_2117_); +lean_ctor_set(v_reuseFailAlloc_2166_, 2, v_config_2118_); +lean_ctor_set(v_reuseFailAlloc_2166_, 3, v___x_2159_); +lean_ctor_set(v_reuseFailAlloc_2166_, 4, v___x_2163_); +lean_ctor_set(v_reuseFailAlloc_2166_, 5, v_instant_2121_); +lean_ctor_set_uint8(v_reuseFailAlloc_2166_, sizeof(void*)*6, v_keepAlive_2122_); +lean_ctor_set_uint8(v_reuseFailAlloc_2166_, sizeof(void*)*6 + 1, v_forcedFlush_2123_); +v___x_2165_ = v_reuseFailAlloc_2166_; +goto v_reusejp_2164_; +} +v_reusejp_2164_: +{ +lean_ctor_set_uint8(v___x_2165_, sizeof(void*)*6 + 2, v___x_2137_); +v___y_2105_ = v___x_2165_; +goto v___jp_2104_; +} +} +} +} +} +} +} +} +v___jp_2104_: +{ +lean_object* v___x_2107_; +if (v_isShared_2103_ == 0) +{ +lean_ctor_set(v___x_2102_, 0, v___y_2105_); +v___x_2107_ = v___x_2102_; +goto v_reusejp_2106_; +} +else +{ +lean_object* v_reuseFailAlloc_2113_; +v_reuseFailAlloc_2113_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2113_, 0, v___y_2105_); +lean_ctor_set(v_reuseFailAlloc_2113_, 1, v_requestStream_2091_); +lean_ctor_set(v_reuseFailAlloc_2113_, 2, v_keepAliveTimeout_2092_); +lean_ctor_set(v_reuseFailAlloc_2113_, 3, v_currentTimeout_2093_); +lean_ctor_set(v_reuseFailAlloc_2113_, 4, v_headerTimeout_2094_); +lean_ctor_set(v_reuseFailAlloc_2113_, 5, v_response_2095_); +lean_ctor_set(v_reuseFailAlloc_2113_, 6, v_respStream_2096_); +lean_ctor_set(v_reuseFailAlloc_2113_, 7, v_expectData_2098_); +lean_ctor_set(v_reuseFailAlloc_2113_, 8, v_pendingHead_2100_); +lean_ctor_set_uint8(v_reuseFailAlloc_2113_, sizeof(void*)*9, v_requiresData_2097_); +lean_ctor_set_uint8(v_reuseFailAlloc_2113_, sizeof(void*)*9 + 1, v_handlerDispatched_2099_); +v___x_2107_ = v_reuseFailAlloc_2113_; +goto v_reusejp_2106_; +} +v_reusejp_2106_: +{ +uint8_t v___x_2108_; lean_object* v___x_2109_; lean_object* v___x_2110_; lean_object* v___x_2111_; lean_object* v___x_2112_; +v___x_2108_ = 0; +v___x_2109_ = lean_box(v___x_2108_); +v___x_2110_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2110_, 0, v___x_2107_); +lean_ctor_set(v___x_2110_, 1, v___x_2109_); +v___x_2111_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2111_, 0, v___x_2110_); +v___x_2112_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2112_, 0, v___x_2111_); +return v___x_2112_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___boxed(lean_object* v_val_2183_, lean_object* v_____r_2184_, lean_object* v_st_2185_, lean_object* v___y_2186_){ +_start: +{ +lean_object* v_res_2187_; +v_res_2187_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0(v_val_2183_, v_____r_2184_, v_st_2185_); +return v_res_2187_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6(uint8_t v_final_2188_, lean_object* v___f_2189_, lean_object* v_requestStream_2190_, lean_object* v___f_2191_, lean_object* v___f_2192_, lean_object* v_x_2193_){ +_start: +{ +if (lean_obj_tag(v_x_2193_) == 0) +{ +lean_object* v_a_2195_; lean_object* v___x_2197_; uint8_t v_isShared_2198_; uint8_t v_isSharedCheck_2203_; +lean_dec_ref(v___f_2192_); +lean_dec_ref(v___f_2191_); +lean_dec_ref(v_requestStream_2190_); +lean_dec_ref(v___f_2189_); +v_a_2195_ = lean_ctor_get(v_x_2193_, 0); +v_isSharedCheck_2203_ = !lean_is_exclusive(v_x_2193_); +if (v_isSharedCheck_2203_ == 0) +{ +v___x_2197_ = v_x_2193_; +v_isShared_2198_ = v_isSharedCheck_2203_; +goto v_resetjp_2196_; +} +else +{ +lean_inc(v_a_2195_); +lean_dec(v_x_2193_); +v___x_2197_ = lean_box(0); +v_isShared_2198_ = v_isSharedCheck_2203_; +goto v_resetjp_2196_; +} +v_resetjp_2196_: +{ +lean_object* v___x_2200_; +if (v_isShared_2198_ == 0) +{ +v___x_2200_ = v___x_2197_; +goto v_reusejp_2199_; +} +else +{ +lean_object* v_reuseFailAlloc_2202_; +v_reuseFailAlloc_2202_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2202_, 0, v_a_2195_); +v___x_2200_ = v_reuseFailAlloc_2202_; +goto v_reusejp_2199_; +} +v_reusejp_2199_: +{ +lean_object* v___x_2201_; +v___x_2201_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2201_, 0, v___x_2200_); +return v___x_2201_; +} +} +} +else +{ +lean_dec_ref(v_x_2193_); +if (v_final_2188_ == 0) +{ +lean_object* v___x_2204_; lean_object* v___x_2205_; +lean_dec_ref(v___f_2192_); +lean_dec_ref(v___f_2191_); +lean_dec_ref(v_requestStream_2190_); +v___x_2204_ = lean_box(0); +v___x_2205_ = lean_apply_2(v___f_2189_, v___x_2204_, lean_box(0)); +return v___x_2205_; +} +else +{ +lean_object* v___x_2206_; lean_object* v___x_2207_; uint8_t v___x_2208_; lean_object* v___x_2209_; +lean_dec_ref(v___f_2189_); +v___x_2206_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_2190_, v___f_2191_); +v___x_2207_ = lean_unsigned_to_nat(0u); +v___x_2208_ = 0; +v___x_2209_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2207_, v___x_2208_, v___x_2206_, v___f_2192_); +return v___x_2209_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6___boxed(lean_object* v_final_2210_, lean_object* v___f_2211_, lean_object* v_requestStream_2212_, lean_object* v___f_2213_, lean_object* v___f_2214_, lean_object* v_x_2215_, lean_object* v___y_2216_){ +_start: +{ +uint8_t v_final_boxed_2217_; lean_object* v_res_2218_; +v_final_boxed_2217_ = lean_unbox(v_final_2210_); +v_res_2218_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6(v_final_boxed_2217_, v___f_2211_, v_requestStream_2212_, v___f_2213_, v___f_2214_, v_x_2215_); +return v_res_2218_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg(lean_object* v_config_2222_, lean_object* v_event_2223_, lean_object* v_state_2224_){ +_start: +{ +switch(lean_obj_tag(v_event_2223_)) +{ +case 0: +{ +lean_object* v_x_2226_; lean_object* v___x_2228_; uint8_t v_isShared_2229_; uint8_t v_isSharedCheck_2333_; +v_x_2226_ = lean_ctor_get(v_event_2223_, 0); +v_isSharedCheck_2333_ = !lean_is_exclusive(v_event_2223_); +if (v_isSharedCheck_2333_ == 0) +{ +v___x_2228_ = v_event_2223_; +v_isShared_2229_ = v_isSharedCheck_2333_; +goto v_resetjp_2227_; +} +else +{ +lean_inc(v_x_2226_); +lean_dec(v_event_2223_); +v___x_2228_ = lean_box(0); +v_isShared_2229_ = v_isSharedCheck_2333_; +goto v_resetjp_2227_; +} +v_resetjp_2227_: +{ +if (lean_obj_tag(v_x_2226_) == 0) +{ +lean_object* v_machine_2230_; lean_object* v_reader_2231_; lean_object* v_requestStream_2232_; lean_object* v_keepAliveTimeout_2233_; lean_object* v_currentTimeout_2234_; lean_object* v_headerTimeout_2235_; lean_object* v_response_2236_; lean_object* v_respStream_2237_; uint8_t v_requiresData_2238_; lean_object* v_expectData_2239_; uint8_t v_handlerDispatched_2240_; lean_object* v_pendingHead_2241_; lean_object* v___x_2243_; uint8_t v_isShared_2244_; uint8_t v_isSharedCheck_2284_; +lean_dec_ref(v_config_2222_); +v_machine_2230_ = lean_ctor_get(v_state_2224_, 0); +lean_inc_ref(v_machine_2230_); +v_reader_2231_ = lean_ctor_get(v_machine_2230_, 0); +lean_inc_ref(v_reader_2231_); +v_requestStream_2232_ = lean_ctor_get(v_state_2224_, 1); +v_keepAliveTimeout_2233_ = lean_ctor_get(v_state_2224_, 2); +v_currentTimeout_2234_ = lean_ctor_get(v_state_2224_, 3); +v_headerTimeout_2235_ = lean_ctor_get(v_state_2224_, 4); +v_response_2236_ = lean_ctor_get(v_state_2224_, 5); +v_respStream_2237_ = lean_ctor_get(v_state_2224_, 6); +v_requiresData_2238_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2239_ = lean_ctor_get(v_state_2224_, 7); +v_handlerDispatched_2240_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9 + 1); +v_pendingHead_2241_ = lean_ctor_get(v_state_2224_, 8); +v_isSharedCheck_2284_ = !lean_is_exclusive(v_state_2224_); +if (v_isSharedCheck_2284_ == 0) +{ +lean_object* v_unused_2285_; +v_unused_2285_ = lean_ctor_get(v_state_2224_, 0); +lean_dec(v_unused_2285_); +v___x_2243_ = v_state_2224_; +v_isShared_2244_ = v_isSharedCheck_2284_; +goto v_resetjp_2242_; +} +else +{ +lean_inc(v_pendingHead_2241_); +lean_inc(v_expectData_2239_); +lean_inc(v_respStream_2237_); +lean_inc(v_response_2236_); +lean_inc(v_headerTimeout_2235_); +lean_inc(v_currentTimeout_2234_); +lean_inc(v_keepAliveTimeout_2233_); +lean_inc(v_requestStream_2232_); +lean_dec(v_state_2224_); +v___x_2243_ = lean_box(0); +v_isShared_2244_ = v_isSharedCheck_2284_; +goto v_resetjp_2242_; +} +v_resetjp_2242_: +{ +lean_object* v_writer_2245_; lean_object* v_config_2246_; lean_object* v_events_2247_; lean_object* v_error_2248_; lean_object* v_instant_2249_; uint8_t v_keepAlive_2250_; uint8_t v_forcedFlush_2251_; lean_object* v___x_2253_; uint8_t v_isShared_2254_; uint8_t v_isSharedCheck_2282_; +v_writer_2245_ = lean_ctor_get(v_machine_2230_, 1); +v_config_2246_ = lean_ctor_get(v_machine_2230_, 2); +v_events_2247_ = lean_ctor_get(v_machine_2230_, 3); +v_error_2248_ = lean_ctor_get(v_machine_2230_, 4); +v_instant_2249_ = lean_ctor_get(v_machine_2230_, 5); +v_keepAlive_2250_ = lean_ctor_get_uint8(v_machine_2230_, sizeof(void*)*6); +v_forcedFlush_2251_ = lean_ctor_get_uint8(v_machine_2230_, sizeof(void*)*6 + 1); +v_isSharedCheck_2282_ = !lean_is_exclusive(v_machine_2230_); +if (v_isSharedCheck_2282_ == 0) +{ +lean_object* v_unused_2283_; +v_unused_2283_ = lean_ctor_get(v_machine_2230_, 0); +lean_dec(v_unused_2283_); +v___x_2253_ = v_machine_2230_; +v_isShared_2254_ = v_isSharedCheck_2282_; +goto v_resetjp_2252_; +} +else +{ +lean_inc(v_instant_2249_); +lean_inc(v_error_2248_); +lean_inc(v_events_2247_); +lean_inc(v_config_2246_); +lean_inc(v_writer_2245_); +lean_dec(v_machine_2230_); +v___x_2253_ = lean_box(0); +v_isShared_2254_ = v_isSharedCheck_2282_; +goto v_resetjp_2252_; +} +v_resetjp_2252_: +{ +lean_object* v_state_2255_; lean_object* v_input_2256_; lean_object* v_messageHead_2257_; lean_object* v_messageCount_2258_; lean_object* v_bodyBytesRead_2259_; lean_object* v_headerBytesRead_2260_; lean_object* v___x_2262_; uint8_t v_isShared_2263_; uint8_t v_isSharedCheck_2281_; +v_state_2255_ = lean_ctor_get(v_reader_2231_, 0); +v_input_2256_ = lean_ctor_get(v_reader_2231_, 1); +v_messageHead_2257_ = lean_ctor_get(v_reader_2231_, 2); +v_messageCount_2258_ = lean_ctor_get(v_reader_2231_, 3); +v_bodyBytesRead_2259_ = lean_ctor_get(v_reader_2231_, 4); +v_headerBytesRead_2260_ = lean_ctor_get(v_reader_2231_, 5); +v_isSharedCheck_2281_ = !lean_is_exclusive(v_reader_2231_); +if (v_isSharedCheck_2281_ == 0) +{ +v___x_2262_ = v_reader_2231_; +v_isShared_2263_ = v_isSharedCheck_2281_; +goto v_resetjp_2261_; +} +else +{ +lean_inc(v_headerBytesRead_2260_); +lean_inc(v_bodyBytesRead_2259_); +lean_inc(v_messageCount_2258_); +lean_inc(v_messageHead_2257_); +lean_inc(v_input_2256_); +lean_inc(v_state_2255_); +lean_dec(v_reader_2231_); +v___x_2262_ = lean_box(0); +v_isShared_2263_ = v_isSharedCheck_2281_; +goto v_resetjp_2261_; +} +v_resetjp_2261_: +{ +uint8_t v___x_2264_; lean_object* v___x_2266_; +v___x_2264_ = 1; +if (v_isShared_2263_ == 0) +{ +v___x_2266_ = v___x_2262_; +goto v_reusejp_2265_; +} +else +{ +lean_object* v_reuseFailAlloc_2280_; +v_reuseFailAlloc_2280_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v_reuseFailAlloc_2280_, 0, v_state_2255_); +lean_ctor_set(v_reuseFailAlloc_2280_, 1, v_input_2256_); +lean_ctor_set(v_reuseFailAlloc_2280_, 2, v_messageHead_2257_); +lean_ctor_set(v_reuseFailAlloc_2280_, 3, v_messageCount_2258_); +lean_ctor_set(v_reuseFailAlloc_2280_, 4, v_bodyBytesRead_2259_); +lean_ctor_set(v_reuseFailAlloc_2280_, 5, v_headerBytesRead_2260_); +v___x_2266_ = v_reuseFailAlloc_2280_; +goto v_reusejp_2265_; +} +v_reusejp_2265_: +{ +uint8_t v___x_2267_; lean_object* v___x_2269_; +lean_ctor_set_uint8(v___x_2266_, sizeof(void*)*6, v___x_2264_); +v___x_2267_ = 0; +if (v_isShared_2254_ == 0) +{ +lean_ctor_set(v___x_2253_, 0, v___x_2266_); +v___x_2269_ = v___x_2253_; +goto v_reusejp_2268_; +} +else +{ +lean_object* v_reuseFailAlloc_2279_; +v_reuseFailAlloc_2279_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2279_, 0, v___x_2266_); +lean_ctor_set(v_reuseFailAlloc_2279_, 1, v_writer_2245_); +lean_ctor_set(v_reuseFailAlloc_2279_, 2, v_config_2246_); +lean_ctor_set(v_reuseFailAlloc_2279_, 3, v_events_2247_); +lean_ctor_set(v_reuseFailAlloc_2279_, 4, v_error_2248_); +lean_ctor_set(v_reuseFailAlloc_2279_, 5, v_instant_2249_); +lean_ctor_set_uint8(v_reuseFailAlloc_2279_, sizeof(void*)*6, v_keepAlive_2250_); +lean_ctor_set_uint8(v_reuseFailAlloc_2279_, sizeof(void*)*6 + 1, v_forcedFlush_2251_); +v___x_2269_ = v_reuseFailAlloc_2279_; +goto v_reusejp_2268_; +} +v_reusejp_2268_: +{ +lean_object* v___x_2271_; +lean_ctor_set_uint8(v___x_2269_, sizeof(void*)*6 + 2, v___x_2267_); +if (v_isShared_2244_ == 0) +{ +lean_ctor_set(v___x_2243_, 0, v___x_2269_); +v___x_2271_ = v___x_2243_; +goto v_reusejp_2270_; +} +else +{ +lean_object* v_reuseFailAlloc_2278_; +v_reuseFailAlloc_2278_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2278_, 0, v___x_2269_); +lean_ctor_set(v_reuseFailAlloc_2278_, 1, v_requestStream_2232_); +lean_ctor_set(v_reuseFailAlloc_2278_, 2, v_keepAliveTimeout_2233_); +lean_ctor_set(v_reuseFailAlloc_2278_, 3, v_currentTimeout_2234_); +lean_ctor_set(v_reuseFailAlloc_2278_, 4, v_headerTimeout_2235_); +lean_ctor_set(v_reuseFailAlloc_2278_, 5, v_response_2236_); +lean_ctor_set(v_reuseFailAlloc_2278_, 6, v_respStream_2237_); +lean_ctor_set(v_reuseFailAlloc_2278_, 7, v_expectData_2239_); +lean_ctor_set(v_reuseFailAlloc_2278_, 8, v_pendingHead_2241_); +lean_ctor_set_uint8(v_reuseFailAlloc_2278_, sizeof(void*)*9, v_requiresData_2238_); +lean_ctor_set_uint8(v_reuseFailAlloc_2278_, sizeof(void*)*9 + 1, v_handlerDispatched_2240_); +v___x_2271_ = v_reuseFailAlloc_2278_; +goto v_reusejp_2270_; +} +v_reusejp_2270_: +{ +lean_object* v___x_2272_; lean_object* v___x_2273_; lean_object* v___x_2275_; +v___x_2272_ = lean_box(v___x_2267_); +v___x_2273_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2273_, 0, v___x_2271_); +lean_ctor_set(v___x_2273_, 1, v___x_2272_); +if (v_isShared_2229_ == 0) +{ +lean_ctor_set_tag(v___x_2228_, 1); +lean_ctor_set(v___x_2228_, 0, v___x_2273_); +v___x_2275_ = v___x_2228_; +goto v_reusejp_2274_; +} +else +{ +lean_object* v_reuseFailAlloc_2277_; +v_reuseFailAlloc_2277_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2277_, 0, v___x_2273_); +v___x_2275_ = v_reuseFailAlloc_2277_; +goto v_reusejp_2274_; +} +v_reusejp_2274_: +{ +lean_object* v___x_2276_; +v___x_2276_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2276_, 0, v___x_2275_); +return v___x_2276_; +} +} +} +} +} +} +} +} +else +{ +lean_object* v_val_2286_; lean_object* v_machine_2287_; lean_object* v_requestStream_2288_; lean_object* v_keepAliveTimeout_2289_; lean_object* v_currentTimeout_2290_; lean_object* v_response_2291_; lean_object* v_respStream_2292_; uint8_t v_requiresData_2293_; lean_object* v_expectData_2294_; uint8_t v_handlerDispatched_2295_; lean_object* v_pendingHead_2296_; lean_object* v___f_2297_; +lean_del_object(v___x_2228_); +v_val_2286_ = lean_ctor_get(v_x_2226_, 0); +lean_inc_n(v_val_2286_, 2); +lean_dec_ref(v_x_2226_); +v_machine_2287_ = lean_ctor_get(v_state_2224_, 0); +v_requestStream_2288_ = lean_ctor_get(v_state_2224_, 1); +v_keepAliveTimeout_2289_ = lean_ctor_get(v_state_2224_, 2); +lean_inc(v_keepAliveTimeout_2289_); +v_currentTimeout_2290_ = lean_ctor_get(v_state_2224_, 3); +v_response_2291_ = lean_ctor_get(v_state_2224_, 5); +v_respStream_2292_ = lean_ctor_get(v_state_2224_, 6); +v_requiresData_2293_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2294_ = lean_ctor_get(v_state_2224_, 7); +v_handlerDispatched_2295_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9 + 1); +v_pendingHead_2296_ = lean_ctor_get(v_state_2224_, 8); +v___f_2297_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0___boxed), 4, 1); +lean_closure_set(v___f_2297_, 0, v_val_2286_); +if (lean_obj_tag(v_keepAliveTimeout_2289_) == 0) +{ +lean_object* v___x_2298_; lean_object* v___x_2299_; +lean_dec_ref(v___f_2297_); +lean_dec_ref(v_config_2222_); +v___x_2298_ = lean_box(0); +v___x_2299_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__0(v_val_2286_, v___x_2298_, v_state_2224_); +return v___x_2299_; +} +else +{ +lean_object* v___x_2301_; uint8_t v_isShared_2302_; uint8_t v_isSharedCheck_2331_; +lean_inc(v_pendingHead_2296_); +lean_inc(v_expectData_2294_); +lean_inc(v_respStream_2292_); +lean_inc_ref(v_response_2291_); +lean_inc(v_currentTimeout_2290_); +lean_inc_ref(v_requestStream_2288_); +lean_inc_ref(v_machine_2287_); +lean_dec(v_val_2286_); +lean_dec_ref(v_state_2224_); +v_isSharedCheck_2331_ = !lean_is_exclusive(v_keepAliveTimeout_2289_); +if (v_isSharedCheck_2331_ == 0) +{ +lean_object* v_unused_2332_; +v_unused_2332_ = lean_ctor_get(v_keepAliveTimeout_2289_, 0); +lean_dec(v_unused_2332_); +v___x_2301_ = v_keepAliveTimeout_2289_; +v_isShared_2302_ = v_isSharedCheck_2331_; +goto v_resetjp_2300_; +} +else +{ +lean_dec(v_keepAliveTimeout_2289_); +v___x_2301_ = lean_box(0); +v_isShared_2302_ = v_isSharedCheck_2331_; +goto v_resetjp_2300_; +} +v_resetjp_2300_: +{ +lean_object* v___x_2303_; lean_object* v___x_2304_; lean_object* v___f_2305_; lean_object* v_val_2307_; lean_object* v___x_2314_; +v___x_2303_ = lean_box(v_requiresData_2293_); +v___x_2304_ = lean_box(v_handlerDispatched_2295_); +v___f_2305_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___boxed), 13, 11); +lean_closure_set(v___f_2305_, 0, v_config_2222_); +lean_closure_set(v___f_2305_, 1, v_machine_2287_); +lean_closure_set(v___f_2305_, 2, v_requestStream_2288_); +lean_closure_set(v___f_2305_, 3, v_currentTimeout_2290_); +lean_closure_set(v___f_2305_, 4, v_response_2291_); +lean_closure_set(v___f_2305_, 5, v_respStream_2292_); +lean_closure_set(v___f_2305_, 6, v___x_2303_); +lean_closure_set(v___f_2305_, 7, v_expectData_2294_); +lean_closure_set(v___f_2305_, 8, v___x_2304_); +lean_closure_set(v___f_2305_, 9, v_pendingHead_2296_); +lean_closure_set(v___f_2305_, 10, v___f_2297_); +v___x_2314_ = lean_get_current_time(); +if (lean_obj_tag(v___x_2314_) == 0) +{ +lean_object* v_a_2315_; lean_object* v___x_2317_; uint8_t v_isShared_2318_; uint8_t v_isSharedCheck_2322_; +v_a_2315_ = lean_ctor_get(v___x_2314_, 0); +v_isSharedCheck_2322_ = !lean_is_exclusive(v___x_2314_); +if (v_isSharedCheck_2322_ == 0) +{ +v___x_2317_ = v___x_2314_; +v_isShared_2318_ = v_isSharedCheck_2322_; +goto v_resetjp_2316_; +} +else +{ +lean_inc(v_a_2315_); +lean_dec(v___x_2314_); +v___x_2317_ = lean_box(0); +v_isShared_2318_ = v_isSharedCheck_2322_; +goto v_resetjp_2316_; +} +v_resetjp_2316_: +{ +lean_object* v___x_2320_; +if (v_isShared_2318_ == 0) +{ +lean_ctor_set_tag(v___x_2317_, 1); +v___x_2320_ = v___x_2317_; +goto v_reusejp_2319_; +} +else +{ +lean_object* v_reuseFailAlloc_2321_; +v_reuseFailAlloc_2321_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2321_, 0, v_a_2315_); +v___x_2320_ = v_reuseFailAlloc_2321_; +goto v_reusejp_2319_; +} +v_reusejp_2319_: +{ +v_val_2307_ = v___x_2320_; +goto v___jp_2306_; +} +} +} +else +{ +lean_object* v_a_2323_; lean_object* v___x_2325_; uint8_t v_isShared_2326_; uint8_t v_isSharedCheck_2330_; +v_a_2323_ = lean_ctor_get(v___x_2314_, 0); +v_isSharedCheck_2330_ = !lean_is_exclusive(v___x_2314_); +if (v_isSharedCheck_2330_ == 0) +{ +v___x_2325_ = v___x_2314_; +v_isShared_2326_ = v_isSharedCheck_2330_; +goto v_resetjp_2324_; +} +else +{ +lean_inc(v_a_2323_); +lean_dec(v___x_2314_); +v___x_2325_ = lean_box(0); +v_isShared_2326_ = v_isSharedCheck_2330_; +goto v_resetjp_2324_; +} +v_resetjp_2324_: +{ +lean_object* v___x_2328_; +if (v_isShared_2326_ == 0) +{ +lean_ctor_set_tag(v___x_2325_, 0); +v___x_2328_ = v___x_2325_; +goto v_reusejp_2327_; +} +else +{ +lean_object* v_reuseFailAlloc_2329_; +v_reuseFailAlloc_2329_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2329_, 0, v_a_2323_); +v___x_2328_ = v_reuseFailAlloc_2329_; +goto v_reusejp_2327_; +} +v_reusejp_2327_: +{ +v_val_2307_ = v___x_2328_; +goto v___jp_2306_; +} +} +} +v___jp_2306_: +{ +lean_object* v___x_2309_; +if (v_isShared_2302_ == 0) +{ +lean_ctor_set_tag(v___x_2301_, 0); +lean_ctor_set(v___x_2301_, 0, v_val_2307_); +v___x_2309_ = v___x_2301_; +goto v_reusejp_2308_; +} +else +{ +lean_object* v_reuseFailAlloc_2313_; +v_reuseFailAlloc_2313_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2313_, 0, v_val_2307_); +v___x_2309_ = v_reuseFailAlloc_2313_; +goto v_reusejp_2308_; +} +v_reusejp_2308_: +{ +lean_object* v___x_2310_; uint8_t v___x_2311_; lean_object* v___x_2312_; +v___x_2310_ = lean_unsigned_to_nat(0u); +v___x_2311_ = 0; +v___x_2312_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2310_, v___x_2311_, v___x_2309_, v___f_2305_); +return v___x_2312_; +} +} +} +} +} +} +} +case 1: +{ +lean_object* v_x_2334_; lean_object* v___x_2336_; uint8_t v_isShared_2337_; uint8_t v_isSharedCheck_2447_; +lean_dec_ref(v_config_2222_); +v_x_2334_ = lean_ctor_get(v_event_2223_, 0); +v_isSharedCheck_2447_ = !lean_is_exclusive(v_event_2223_); +if (v_isSharedCheck_2447_ == 0) +{ +v___x_2336_ = v_event_2223_; +v_isShared_2337_ = v_isSharedCheck_2447_; +goto v_resetjp_2335_; +} +else +{ +lean_inc(v_x_2334_); +lean_dec(v_event_2223_); +v___x_2336_ = lean_box(0); +v_isShared_2337_ = v_isSharedCheck_2447_; +goto v_resetjp_2335_; +} +v_resetjp_2335_: +{ +if (lean_obj_tag(v_x_2334_) == 0) +{ +lean_object* v_machine_2338_; lean_object* v_requestStream_2339_; lean_object* v_keepAliveTimeout_2340_; lean_object* v_currentTimeout_2341_; lean_object* v_headerTimeout_2342_; lean_object* v_response_2343_; lean_object* v_respStream_2344_; uint8_t v_requiresData_2345_; lean_object* v_expectData_2346_; uint8_t v_handlerDispatched_2347_; lean_object* v_pendingHead_2348_; lean_object* v___x_2349_; lean_object* v___x_2350_; lean_object* v___f_2351_; +lean_del_object(v___x_2336_); +v_machine_2338_ = lean_ctor_get(v_state_2224_, 0); +lean_inc_ref_n(v_machine_2338_, 2); +v_requestStream_2339_ = lean_ctor_get(v_state_2224_, 1); +lean_inc_ref_n(v_requestStream_2339_, 2); +v_keepAliveTimeout_2340_ = lean_ctor_get(v_state_2224_, 2); +lean_inc_n(v_keepAliveTimeout_2340_, 2); +v_currentTimeout_2341_ = lean_ctor_get(v_state_2224_, 3); +lean_inc_n(v_currentTimeout_2341_, 2); +v_headerTimeout_2342_ = lean_ctor_get(v_state_2224_, 4); +lean_inc_n(v_headerTimeout_2342_, 2); +v_response_2343_ = lean_ctor_get(v_state_2224_, 5); +lean_inc_ref_n(v_response_2343_, 2); +v_respStream_2344_ = lean_ctor_get(v_state_2224_, 6); +lean_inc(v_respStream_2344_); +v_requiresData_2345_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2346_ = lean_ctor_get(v_state_2224_, 7); +lean_inc_n(v_expectData_2346_, 2); +v_handlerDispatched_2347_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9 + 1); +v_pendingHead_2348_ = lean_ctor_get(v_state_2224_, 8); +lean_inc_n(v_pendingHead_2348_, 2); +lean_dec_ref(v_state_2224_); +v___x_2349_ = lean_box(v_requiresData_2345_); +v___x_2350_ = lean_box(v_handlerDispatched_2347_); +v___f_2351_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2___boxed), 12, 10); +lean_closure_set(v___f_2351_, 0, v_machine_2338_); +lean_closure_set(v___f_2351_, 1, v_requestStream_2339_); +lean_closure_set(v___f_2351_, 2, v_keepAliveTimeout_2340_); +lean_closure_set(v___f_2351_, 3, v_currentTimeout_2341_); +lean_closure_set(v___f_2351_, 4, v_headerTimeout_2342_); +lean_closure_set(v___f_2351_, 5, v_response_2343_); +lean_closure_set(v___f_2351_, 6, v___x_2349_); +lean_closure_set(v___f_2351_, 7, v_expectData_2346_); +lean_closure_set(v___f_2351_, 8, v___x_2350_); +lean_closure_set(v___f_2351_, 9, v_pendingHead_2348_); +if (lean_obj_tag(v_respStream_2344_) == 1) +{ +lean_object* v_val_2352_; lean_object* v_close_2353_; lean_object* v_isClosed_2354_; lean_object* v___x_2355_; lean_object* v___f_2356_; lean_object* v___f_2357_; lean_object* v___x_2358_; uint8_t v___x_2359_; lean_object* v___x_2360_; +lean_dec(v_pendingHead_2348_); +lean_dec(v_expectData_2346_); +lean_dec_ref(v_response_2343_); +lean_dec(v_headerTimeout_2342_); +lean_dec(v_currentTimeout_2341_); +lean_dec(v_keepAliveTimeout_2340_); +lean_dec_ref(v_requestStream_2339_); +lean_dec_ref(v_machine_2338_); +v_val_2352_ = lean_ctor_get(v_respStream_2344_, 0); +lean_inc(v_val_2352_); +lean_dec_ref(v_respStream_2344_); +v_close_2353_ = lean_ctor_get(v_val_2352_, 1); +lean_inc_ref(v_close_2353_); +v_isClosed_2354_ = lean_ctor_get(v_val_2352_, 2); +lean_inc_ref(v_isClosed_2354_); +lean_dec(v_val_2352_); +v___x_2355_ = lean_apply_1(v_isClosed_2354_, lean_box(0)); +lean_inc_ref(v___f_2351_); +v___f_2356_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_2356_, 0, v___f_2351_); +v___f_2357_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4___boxed), 5, 3); +lean_closure_set(v___f_2357_, 0, v_close_2353_); +lean_closure_set(v___f_2357_, 1, v___f_2356_); +lean_closure_set(v___f_2357_, 2, v___f_2351_); +v___x_2358_ = lean_unsigned_to_nat(0u); +v___x_2359_ = 0; +v___x_2360_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2358_, v___x_2359_, v___x_2355_, v___f_2357_); +return v___x_2360_; +} +else +{ +lean_object* v___x_2361_; lean_object* v___x_2362_; +lean_dec_ref(v___f_2351_); +lean_dec(v_respStream_2344_); +v___x_2361_ = lean_box(0); +v___x_2362_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__2(v_machine_2338_, v_requestStream_2339_, v_keepAliveTimeout_2340_, v_currentTimeout_2341_, v_headerTimeout_2342_, v_response_2343_, v_requiresData_2345_, v_expectData_2346_, v_handlerDispatched_2347_, v_pendingHead_2348_, v___x_2361_); +return v___x_2362_; +} +} +else +{ +lean_object* v_val_2363_; lean_object* v___x_2365_; uint8_t v_isShared_2366_; uint8_t v_isSharedCheck_2446_; +v_val_2363_ = lean_ctor_get(v_x_2334_, 0); +v_isSharedCheck_2446_ = !lean_is_exclusive(v_x_2334_); +if (v_isSharedCheck_2446_ == 0) +{ +v___x_2365_ = v_x_2334_; +v_isShared_2366_ = v_isSharedCheck_2446_; +goto v_resetjp_2364_; +} +else +{ +lean_inc(v_val_2363_); +lean_dec(v_x_2334_); +v___x_2365_ = lean_box(0); +v_isShared_2366_ = v_isSharedCheck_2446_; +goto v_resetjp_2364_; +} +v_resetjp_2364_: +{ +lean_object* v_machine_2367_; lean_object* v_requestStream_2368_; lean_object* v_keepAliveTimeout_2369_; lean_object* v_currentTimeout_2370_; lean_object* v_headerTimeout_2371_; lean_object* v_response_2372_; lean_object* v_respStream_2373_; uint8_t v_requiresData_2374_; lean_object* v_expectData_2375_; uint8_t v_handlerDispatched_2376_; lean_object* v_pendingHead_2377_; lean_object* v___x_2379_; uint8_t v_isShared_2380_; uint8_t v_isSharedCheck_2445_; +v_machine_2367_ = lean_ctor_get(v_state_2224_, 0); +v_requestStream_2368_ = lean_ctor_get(v_state_2224_, 1); +v_keepAliveTimeout_2369_ = lean_ctor_get(v_state_2224_, 2); +v_currentTimeout_2370_ = lean_ctor_get(v_state_2224_, 3); +v_headerTimeout_2371_ = lean_ctor_get(v_state_2224_, 4); +v_response_2372_ = lean_ctor_get(v_state_2224_, 5); +v_respStream_2373_ = lean_ctor_get(v_state_2224_, 6); +v_requiresData_2374_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2375_ = lean_ctor_get(v_state_2224_, 7); +v_handlerDispatched_2376_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9 + 1); +v_pendingHead_2377_ = lean_ctor_get(v_state_2224_, 8); +v_isSharedCheck_2445_ = !lean_is_exclusive(v_state_2224_); +if (v_isSharedCheck_2445_ == 0) +{ +v___x_2379_ = v_state_2224_; +v_isShared_2380_ = v_isSharedCheck_2445_; +goto v_resetjp_2378_; +} +else +{ +lean_inc(v_pendingHead_2377_); +lean_inc(v_expectData_2375_); +lean_inc(v_respStream_2373_); +lean_inc(v_response_2372_); +lean_inc(v_headerTimeout_2371_); +lean_inc(v_currentTimeout_2370_); +lean_inc(v_keepAliveTimeout_2369_); +lean_inc(v_requestStream_2368_); +lean_inc(v_machine_2367_); +lean_dec(v_state_2224_); +v___x_2379_ = lean_box(0); +v_isShared_2380_ = v_isSharedCheck_2445_; +goto v_resetjp_2378_; +} +v_resetjp_2378_: +{ +lean_object* v___y_2382_; lean_object* v___x_2395_; lean_object* v___x_2396_; lean_object* v___x_2397_; lean_object* v___x_2398_; lean_object* v___x_2399_; uint8_t v___x_2400_; +v___x_2395_ = lean_unsigned_to_nat(1u); +v___x_2396_ = lean_mk_empty_array_with_capacity(v___x_2395_); +v___x_2397_ = lean_array_push(v___x_2396_, v_val_2363_); +v___x_2398_ = lean_array_get_size(v___x_2397_); +v___x_2399_ = lean_unsigned_to_nat(0u); +v___x_2400_ = lean_nat_dec_eq(v___x_2398_, v___x_2399_); +if (v___x_2400_ == 0) +{ +lean_object* v_reader_2401_; lean_object* v_writer_2402_; lean_object* v_config_2403_; lean_object* v_events_2404_; lean_object* v_error_2405_; lean_object* v_instant_2406_; uint8_t v_keepAlive_2407_; uint8_t v_forcedFlush_2408_; uint8_t v_pullBodyStalled_2409_; lean_object* v___x_2411_; uint8_t v_isShared_2412_; uint8_t v_isSharedCheck_2444_; +v_reader_2401_ = lean_ctor_get(v_machine_2367_, 0); +v_writer_2402_ = lean_ctor_get(v_machine_2367_, 1); +v_config_2403_ = lean_ctor_get(v_machine_2367_, 2); +v_events_2404_ = lean_ctor_get(v_machine_2367_, 3); +v_error_2405_ = lean_ctor_get(v_machine_2367_, 4); +v_instant_2406_ = lean_ctor_get(v_machine_2367_, 5); +v_keepAlive_2407_ = lean_ctor_get_uint8(v_machine_2367_, sizeof(void*)*6); +v_forcedFlush_2408_ = lean_ctor_get_uint8(v_machine_2367_, sizeof(void*)*6 + 1); +v_pullBodyStalled_2409_ = lean_ctor_get_uint8(v_machine_2367_, sizeof(void*)*6 + 2); +v_isSharedCheck_2444_ = !lean_is_exclusive(v_machine_2367_); +if (v_isSharedCheck_2444_ == 0) +{ +v___x_2411_ = v_machine_2367_; +v_isShared_2412_ = v_isSharedCheck_2444_; +goto v_resetjp_2410_; +} +else +{ +lean_inc(v_instant_2406_); +lean_inc(v_error_2405_); +lean_inc(v_events_2404_); +lean_inc(v_config_2403_); +lean_inc(v_writer_2402_); +lean_inc(v_reader_2401_); +lean_dec(v_machine_2367_); +v___x_2411_ = lean_box(0); +v_isShared_2412_ = v_isSharedCheck_2444_; +goto v_resetjp_2410_; +} +v_resetjp_2410_: +{ +lean_object* v___y_2414_; uint8_t v___x_2436_; +v___x_2436_ = lean_nat_dec_lt(v___x_2399_, v___x_2398_); +if (v___x_2436_ == 0) +{ +v___y_2414_ = v___x_2399_; +goto v___jp_2413_; +} +else +{ +uint8_t v___x_2437_; +v___x_2437_ = lean_nat_dec_le(v___x_2398_, v___x_2398_); +if (v___x_2437_ == 0) +{ +if (v___x_2436_ == 0) +{ +v___y_2414_ = v___x_2399_; +goto v___jp_2413_; +} +else +{ +size_t v___x_2438_; size_t v___x_2439_; lean_object* v___x_2440_; +v___x_2438_ = ((size_t)0ULL); +v___x_2439_ = lean_usize_of_nat(v___x_2398_); +v___x_2440_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(v___x_2397_, v___x_2438_, v___x_2439_, v___x_2399_); +v___y_2414_ = v___x_2440_; +goto v___jp_2413_; +} +} +else +{ +size_t v___x_2441_; size_t v___x_2442_; lean_object* v___x_2443_; +v___x_2441_ = ((size_t)0ULL); +v___x_2442_ = lean_usize_of_nat(v___x_2398_); +v___x_2443_ = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__4(v___x_2397_, v___x_2441_, v___x_2442_, v___x_2399_); +v___y_2414_ = v___x_2443_; +goto v___jp_2413_; +} +} +v___jp_2413_: +{ +lean_object* v_userData_2415_; lean_object* v_outputData_2416_; lean_object* v_state_2417_; lean_object* v_knownSize_2418_; lean_object* v_messageHead_2419_; uint8_t v_sentMessage_2420_; uint8_t v_userClosedBody_2421_; uint8_t v_omitBody_2422_; lean_object* v_userDataBytes_2423_; lean_object* v___x_2425_; uint8_t v_isShared_2426_; uint8_t v_isSharedCheck_2435_; +v_userData_2415_ = lean_ctor_get(v_writer_2402_, 0); +v_outputData_2416_ = lean_ctor_get(v_writer_2402_, 1); +v_state_2417_ = lean_ctor_get(v_writer_2402_, 2); +v_knownSize_2418_ = lean_ctor_get(v_writer_2402_, 3); +v_messageHead_2419_ = lean_ctor_get(v_writer_2402_, 4); +v_sentMessage_2420_ = lean_ctor_get_uint8(v_writer_2402_, sizeof(void*)*6); +v_userClosedBody_2421_ = lean_ctor_get_uint8(v_writer_2402_, sizeof(void*)*6 + 1); +v_omitBody_2422_ = lean_ctor_get_uint8(v_writer_2402_, sizeof(void*)*6 + 2); +v_userDataBytes_2423_ = lean_ctor_get(v_writer_2402_, 5); +v_isSharedCheck_2435_ = !lean_is_exclusive(v_writer_2402_); +if (v_isSharedCheck_2435_ == 0) +{ +v___x_2425_ = v_writer_2402_; +v_isShared_2426_ = v_isSharedCheck_2435_; +goto v_resetjp_2424_; +} +else +{ +lean_inc(v_userDataBytes_2423_); +lean_inc(v_messageHead_2419_); +lean_inc(v_knownSize_2418_); +lean_inc(v_state_2417_); +lean_inc(v_outputData_2416_); +lean_inc(v_userData_2415_); +lean_dec(v_writer_2402_); +v___x_2425_ = lean_box(0); +v_isShared_2426_ = v_isSharedCheck_2435_; +goto v_resetjp_2424_; +} +v_resetjp_2424_: +{ +lean_object* v___x_2427_; lean_object* v___x_2428_; lean_object* v___x_2430_; +v___x_2427_ = l_Array_append___redArg(v_userData_2415_, v___x_2397_); +lean_dec_ref(v___x_2397_); +v___x_2428_ = lean_nat_add(v_userDataBytes_2423_, v___y_2414_); +lean_dec(v___y_2414_); +lean_dec(v_userDataBytes_2423_); +if (v_isShared_2426_ == 0) +{ +lean_ctor_set(v___x_2425_, 5, v___x_2428_); +lean_ctor_set(v___x_2425_, 0, v___x_2427_); +v___x_2430_ = v___x_2425_; +goto v_reusejp_2429_; +} +else +{ +lean_object* v_reuseFailAlloc_2434_; +v_reuseFailAlloc_2434_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2434_, 0, v___x_2427_); +lean_ctor_set(v_reuseFailAlloc_2434_, 1, v_outputData_2416_); +lean_ctor_set(v_reuseFailAlloc_2434_, 2, v_state_2417_); +lean_ctor_set(v_reuseFailAlloc_2434_, 3, v_knownSize_2418_); +lean_ctor_set(v_reuseFailAlloc_2434_, 4, v_messageHead_2419_); +lean_ctor_set(v_reuseFailAlloc_2434_, 5, v___x_2428_); +lean_ctor_set_uint8(v_reuseFailAlloc_2434_, sizeof(void*)*6, v_sentMessage_2420_); +lean_ctor_set_uint8(v_reuseFailAlloc_2434_, sizeof(void*)*6 + 1, v_userClosedBody_2421_); +lean_ctor_set_uint8(v_reuseFailAlloc_2434_, sizeof(void*)*6 + 2, v_omitBody_2422_); +v___x_2430_ = v_reuseFailAlloc_2434_; +goto v_reusejp_2429_; +} +v_reusejp_2429_: +{ +lean_object* v___x_2432_; +if (v_isShared_2412_ == 0) +{ +lean_ctor_set(v___x_2411_, 1, v___x_2430_); +v___x_2432_ = v___x_2411_; +goto v_reusejp_2431_; +} +else +{ +lean_object* v_reuseFailAlloc_2433_; +v_reuseFailAlloc_2433_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2433_, 0, v_reader_2401_); +lean_ctor_set(v_reuseFailAlloc_2433_, 1, v___x_2430_); +lean_ctor_set(v_reuseFailAlloc_2433_, 2, v_config_2403_); +lean_ctor_set(v_reuseFailAlloc_2433_, 3, v_events_2404_); +lean_ctor_set(v_reuseFailAlloc_2433_, 4, v_error_2405_); +lean_ctor_set(v_reuseFailAlloc_2433_, 5, v_instant_2406_); +lean_ctor_set_uint8(v_reuseFailAlloc_2433_, sizeof(void*)*6, v_keepAlive_2407_); +lean_ctor_set_uint8(v_reuseFailAlloc_2433_, sizeof(void*)*6 + 1, v_forcedFlush_2408_); +lean_ctor_set_uint8(v_reuseFailAlloc_2433_, sizeof(void*)*6 + 2, v_pullBodyStalled_2409_); +v___x_2432_ = v_reuseFailAlloc_2433_; +goto v_reusejp_2431_; +} +v_reusejp_2431_: +{ +v___y_2382_ = v___x_2432_; +goto v___jp_2381_; +} +} +} +} +} +} +else +{ +lean_dec_ref(v___x_2397_); +v___y_2382_ = v_machine_2367_; +goto v___jp_2381_; +} +v___jp_2381_: +{ +lean_object* v___x_2384_; +if (v_isShared_2380_ == 0) +{ +lean_ctor_set(v___x_2379_, 0, v___y_2382_); +v___x_2384_ = v___x_2379_; +goto v_reusejp_2383_; +} +else +{ +lean_object* v_reuseFailAlloc_2394_; +v_reuseFailAlloc_2394_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2394_, 0, v___y_2382_); +lean_ctor_set(v_reuseFailAlloc_2394_, 1, v_requestStream_2368_); +lean_ctor_set(v_reuseFailAlloc_2394_, 2, v_keepAliveTimeout_2369_); +lean_ctor_set(v_reuseFailAlloc_2394_, 3, v_currentTimeout_2370_); +lean_ctor_set(v_reuseFailAlloc_2394_, 4, v_headerTimeout_2371_); +lean_ctor_set(v_reuseFailAlloc_2394_, 5, v_response_2372_); +lean_ctor_set(v_reuseFailAlloc_2394_, 6, v_respStream_2373_); +lean_ctor_set(v_reuseFailAlloc_2394_, 7, v_expectData_2375_); +lean_ctor_set(v_reuseFailAlloc_2394_, 8, v_pendingHead_2377_); +lean_ctor_set_uint8(v_reuseFailAlloc_2394_, sizeof(void*)*9, v_requiresData_2374_); +lean_ctor_set_uint8(v_reuseFailAlloc_2394_, sizeof(void*)*9 + 1, v_handlerDispatched_2376_); +v___x_2384_ = v_reuseFailAlloc_2394_; +goto v_reusejp_2383_; +} +v_reusejp_2383_: +{ +uint8_t v___x_2385_; lean_object* v___x_2386_; lean_object* v___x_2387_; lean_object* v___x_2389_; +v___x_2385_ = 0; +v___x_2386_ = lean_box(v___x_2385_); +v___x_2387_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2387_, 0, v___x_2384_); +lean_ctor_set(v___x_2387_, 1, v___x_2386_); +if (v_isShared_2366_ == 0) +{ +lean_ctor_set(v___x_2365_, 0, v___x_2387_); +v___x_2389_ = v___x_2365_; +goto v_reusejp_2388_; +} +else +{ +lean_object* v_reuseFailAlloc_2393_; +v_reuseFailAlloc_2393_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2393_, 0, v___x_2387_); +v___x_2389_ = v_reuseFailAlloc_2393_; +goto v_reusejp_2388_; +} +v_reusejp_2388_: +{ +lean_object* v___x_2391_; +if (v_isShared_2337_ == 0) +{ +lean_ctor_set_tag(v___x_2336_, 0); +lean_ctor_set(v___x_2336_, 0, v___x_2389_); +v___x_2391_ = v___x_2336_; +goto v_reusejp_2390_; +} +else +{ +lean_object* v_reuseFailAlloc_2392_; +v_reuseFailAlloc_2392_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2392_, 0, v___x_2389_); +v___x_2391_ = v_reuseFailAlloc_2392_; +goto v_reusejp_2390_; +} +v_reusejp_2390_: +{ +return v___x_2391_; +} +} +} +} +} +} +} +} +} +case 2: +{ +uint8_t v_x_2448_; +lean_dec_ref(v_config_2222_); +v_x_2448_ = lean_ctor_get_uint8(v_event_2223_, 0); +lean_dec_ref(v_event_2223_); +if (v_x_2448_ == 0) +{ +lean_object* v___x_2449_; lean_object* v___x_2450_; lean_object* v___x_2451_; lean_object* v___x_2452_; +v___x_2449_ = lean_box(v_x_2448_); +v___x_2450_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2450_, 0, v_state_2224_); +lean_ctor_set(v___x_2450_, 1, v___x_2449_); +v___x_2451_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2451_, 0, v___x_2450_); +v___x_2452_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2452_, 0, v___x_2451_); +return v___x_2452_; +} +else +{ +lean_object* v_machine_2453_; lean_object* v_requestStream_2454_; lean_object* v_keepAliveTimeout_2455_; lean_object* v_currentTimeout_2456_; lean_object* v_headerTimeout_2457_; lean_object* v_response_2458_; lean_object* v_respStream_2459_; uint8_t v_requiresData_2460_; lean_object* v_expectData_2461_; uint8_t v_handlerDispatched_2462_; lean_object* v_pendingHead_2463_; lean_object* v___x_2465_; uint8_t v_isShared_2466_; uint8_t v_isSharedCheck_2513_; +v_machine_2453_ = lean_ctor_get(v_state_2224_, 0); +v_requestStream_2454_ = lean_ctor_get(v_state_2224_, 1); +v_keepAliveTimeout_2455_ = lean_ctor_get(v_state_2224_, 2); +v_currentTimeout_2456_ = lean_ctor_get(v_state_2224_, 3); +v_headerTimeout_2457_ = lean_ctor_get(v_state_2224_, 4); +v_response_2458_ = lean_ctor_get(v_state_2224_, 5); +v_respStream_2459_ = lean_ctor_get(v_state_2224_, 6); +v_requiresData_2460_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2461_ = lean_ctor_get(v_state_2224_, 7); +v_handlerDispatched_2462_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9 + 1); +v_pendingHead_2463_ = lean_ctor_get(v_state_2224_, 8); +v_isSharedCheck_2513_ = !lean_is_exclusive(v_state_2224_); +if (v_isSharedCheck_2513_ == 0) +{ +v___x_2465_ = v_state_2224_; +v_isShared_2466_ = v_isSharedCheck_2513_; +goto v_resetjp_2464_; +} +else +{ +lean_inc(v_pendingHead_2463_); +lean_inc(v_expectData_2461_); +lean_inc(v_respStream_2459_); +lean_inc(v_response_2458_); +lean_inc(v_headerTimeout_2457_); +lean_inc(v_currentTimeout_2456_); +lean_inc(v_keepAliveTimeout_2455_); +lean_inc(v_requestStream_2454_); +lean_inc(v_machine_2453_); +lean_dec(v_state_2224_); +v___x_2465_ = lean_box(0); +v_isShared_2466_ = v_isSharedCheck_2513_; +goto v_resetjp_2464_; +} +v_resetjp_2464_: +{ +uint8_t v___x_2467_; lean_object* v___x_2468_; lean_object* v_fst_2469_; lean_object* v_snd_2470_; lean_object* v_reader_2471_; lean_object* v_writer_2472_; lean_object* v_config_2473_; lean_object* v_events_2474_; lean_object* v_error_2475_; lean_object* v_instant_2476_; uint8_t v_keepAlive_2477_; uint8_t v_forcedFlush_2478_; lean_object* v___x_2480_; uint8_t v_isShared_2481_; uint8_t v_isSharedCheck_2512_; +v___x_2467_ = 0; +v___x_2468_ = l___private_Std_Internal_Http_Protocol_H1_0__Std_Http_Protocol_H1_Machine_pullNextChunk(v___x_2467_, v_machine_2453_); +v_fst_2469_ = lean_ctor_get(v___x_2468_, 0); +lean_inc(v_fst_2469_); +v_snd_2470_ = lean_ctor_get(v___x_2468_, 1); +lean_inc(v_snd_2470_); +lean_dec_ref(v___x_2468_); +v_reader_2471_ = lean_ctor_get(v_fst_2469_, 0); +v_writer_2472_ = lean_ctor_get(v_fst_2469_, 1); +v_config_2473_ = lean_ctor_get(v_fst_2469_, 2); +v_events_2474_ = lean_ctor_get(v_fst_2469_, 3); +v_error_2475_ = lean_ctor_get(v_fst_2469_, 4); +v_instant_2476_ = lean_ctor_get(v_fst_2469_, 5); +v_keepAlive_2477_ = lean_ctor_get_uint8(v_fst_2469_, sizeof(void*)*6); +v_forcedFlush_2478_ = lean_ctor_get_uint8(v_fst_2469_, sizeof(void*)*6 + 1); +v_isSharedCheck_2512_ = !lean_is_exclusive(v_fst_2469_); +if (v_isSharedCheck_2512_ == 0) +{ +v___x_2480_ = v_fst_2469_; +v_isShared_2481_ = v_isSharedCheck_2512_; +goto v_resetjp_2479_; +} +else +{ +lean_inc(v_instant_2476_); +lean_inc(v_error_2475_); +lean_inc(v_events_2474_); +lean_inc(v_config_2473_); +lean_inc(v_writer_2472_); +lean_inc(v_reader_2471_); +lean_dec(v_fst_2469_); +v___x_2480_ = lean_box(0); +v_isShared_2481_ = v_isSharedCheck_2512_; +goto v_resetjp_2479_; +} +v_resetjp_2479_: +{ +lean_object* v___f_2482_; lean_object* v___f_2483_; uint8_t v___y_2485_; +v___f_2482_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__0)); +v___f_2483_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__1)); +if (lean_obj_tag(v_snd_2470_) == 0) +{ +uint8_t v_sentMessage_2508_; +v_sentMessage_2508_ = lean_ctor_get_uint8(v_writer_2472_, sizeof(void*)*6); +if (v_sentMessage_2508_ == 0) +{ +lean_object* v_state_2509_; +v_state_2509_ = lean_ctor_get(v_reader_2471_, 0); +if (lean_obj_tag(v_state_2509_) == 2) +{ +v___y_2485_ = v_x_2448_; +goto v___jp_2484_; +} +else +{ +v___y_2485_ = v_sentMessage_2508_; +goto v___jp_2484_; +} +} +else +{ +uint8_t v___x_2510_; +v___x_2510_ = 0; +v___y_2485_ = v___x_2510_; +goto v___jp_2484_; +} +} +else +{ +uint8_t v___x_2511_; +v___x_2511_ = 0; +v___y_2485_ = v___x_2511_; +goto v___jp_2484_; +} +v___jp_2484_: +{ +lean_object* v___x_2487_; +if (v_isShared_2481_ == 0) +{ +v___x_2487_ = v___x_2480_; +goto v_reusejp_2486_; +} +else +{ +lean_object* v_reuseFailAlloc_2507_; +v_reuseFailAlloc_2507_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v_reuseFailAlloc_2507_, 0, v_reader_2471_); +lean_ctor_set(v_reuseFailAlloc_2507_, 1, v_writer_2472_); +lean_ctor_set(v_reuseFailAlloc_2507_, 2, v_config_2473_); +lean_ctor_set(v_reuseFailAlloc_2507_, 3, v_events_2474_); +lean_ctor_set(v_reuseFailAlloc_2507_, 4, v_error_2475_); +lean_ctor_set(v_reuseFailAlloc_2507_, 5, v_instant_2476_); +lean_ctor_set_uint8(v_reuseFailAlloc_2507_, sizeof(void*)*6, v_keepAlive_2477_); +lean_ctor_set_uint8(v_reuseFailAlloc_2507_, sizeof(void*)*6 + 1, v_forcedFlush_2478_); +v___x_2487_ = v_reuseFailAlloc_2507_; +goto v_reusejp_2486_; +} +v_reusejp_2486_: +{ +lean_object* v_st_2489_; +lean_ctor_set_uint8(v___x_2487_, sizeof(void*)*6 + 2, v___y_2485_); +lean_inc_ref(v_requestStream_2454_); +if (v_isShared_2466_ == 0) +{ +lean_ctor_set(v___x_2465_, 0, v___x_2487_); +v_st_2489_ = v___x_2465_; +goto v_reusejp_2488_; +} +else +{ +lean_object* v_reuseFailAlloc_2506_; +v_reuseFailAlloc_2506_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2506_, 0, v___x_2487_); +lean_ctor_set(v_reuseFailAlloc_2506_, 1, v_requestStream_2454_); +lean_ctor_set(v_reuseFailAlloc_2506_, 2, v_keepAliveTimeout_2455_); +lean_ctor_set(v_reuseFailAlloc_2506_, 3, v_currentTimeout_2456_); +lean_ctor_set(v_reuseFailAlloc_2506_, 4, v_headerTimeout_2457_); +lean_ctor_set(v_reuseFailAlloc_2506_, 5, v_response_2458_); +lean_ctor_set(v_reuseFailAlloc_2506_, 6, v_respStream_2459_); +lean_ctor_set(v_reuseFailAlloc_2506_, 7, v_expectData_2461_); +lean_ctor_set(v_reuseFailAlloc_2506_, 8, v_pendingHead_2463_); +lean_ctor_set_uint8(v_reuseFailAlloc_2506_, sizeof(void*)*9, v_requiresData_2460_); +lean_ctor_set_uint8(v_reuseFailAlloc_2506_, sizeof(void*)*9 + 1, v_handlerDispatched_2462_); +v_st_2489_ = v_reuseFailAlloc_2506_; +goto v_reusejp_2488_; +} +v_reusejp_2488_: +{ +lean_object* v___f_2490_; +lean_inc_ref(v_st_2489_); +v___f_2490_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8___boxed), 3, 1); +lean_closure_set(v___f_2490_, 0, v_st_2489_); +if (lean_obj_tag(v_snd_2470_) == 1) +{ +lean_object* v_val_2491_; uint8_t v_final_2492_; uint8_t v_incomplete_2493_; lean_object* v_chunk_2494_; lean_object* v___x_2495_; lean_object* v___x_2496_; uint8_t v___x_2497_; lean_object* v___x_2498_; lean_object* v___f_2499_; lean_object* v___f_2500_; lean_object* v___x_2501_; lean_object* v___f_2502_; lean_object* v___x_2503_; +lean_dec_ref(v_st_2489_); +v_val_2491_ = lean_ctor_get(v_snd_2470_, 0); +lean_inc(v_val_2491_); +lean_dec_ref(v_snd_2470_); +v_final_2492_ = lean_ctor_get_uint8(v_val_2491_, sizeof(void*)*1); +v_incomplete_2493_ = lean_ctor_get_uint8(v_val_2491_, sizeof(void*)*1 + 1); +v_chunk_2494_ = lean_ctor_get(v_val_2491_, 0); +lean_inc_ref(v_chunk_2494_); +lean_dec(v_val_2491_); +lean_inc_ref_n(v_requestStream_2454_, 2); +v___x_2495_ = l_Std_Http_Body_Stream_send(v_requestStream_2454_, v_chunk_2494_, v_incomplete_2493_); +v___x_2496_ = lean_unsigned_to_nat(0u); +v___x_2497_ = 0; +v___x_2498_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2496_, v___x_2497_, v___x_2495_, v___f_2482_); +lean_inc_ref_n(v___f_2490_, 2); +v___f_2499_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_2499_, 0, v___f_2490_); +v___f_2500_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__7___boxed), 5, 3); +lean_closure_set(v___f_2500_, 0, v_requestStream_2454_); +lean_closure_set(v___f_2500_, 1, v___f_2499_); +lean_closure_set(v___f_2500_, 2, v___f_2490_); +v___x_2501_ = lean_box(v_final_2492_); +v___f_2502_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__6___boxed), 7, 5); +lean_closure_set(v___f_2502_, 0, v___x_2501_); +lean_closure_set(v___f_2502_, 1, v___f_2490_); +lean_closure_set(v___f_2502_, 2, v_requestStream_2454_); +lean_closure_set(v___f_2502_, 3, v___f_2483_); +lean_closure_set(v___f_2502_, 4, v___f_2500_); +v___x_2503_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2496_, v___x_2497_, v___x_2498_, v___f_2502_); +return v___x_2503_; +} +else +{ +lean_object* v___x_2504_; lean_object* v___x_2505_; +lean_dec_ref(v___f_2490_); +lean_dec(v_snd_2470_); +lean_dec_ref(v_requestStream_2454_); +v___x_2504_ = lean_box(0); +v___x_2505_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__8(v_st_2489_, v___x_2504_); +return v___x_2505_; +} +} +} +} +} +} +} +} +case 3: +{ +lean_object* v_x_2514_; +v_x_2514_ = lean_ctor_get(v_event_2223_, 0); +lean_inc_ref(v_x_2514_); +lean_dec_ref(v_event_2223_); +if (lean_obj_tag(v_x_2514_) == 0) +{ +lean_object* v___f_2515_; lean_object* v___x_2516_; lean_object* v___x_2517_; uint8_t v___x_2518_; lean_object* v___x_2519_; +lean_dec_ref(v_x_2514_); +lean_dec_ref(v_config_2222_); +v___f_2515_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__9___boxed), 3, 1); +lean_closure_set(v___f_2515_, 0, v_state_2224_); +v___x_2516_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +v___x_2517_ = lean_unsigned_to_nat(0u); +v___x_2518_ = 0; +v___x_2519_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2517_, v___x_2518_, v___x_2516_, v___f_2515_); +return v___x_2519_; +} +else +{ +lean_object* v_machine_2520_; lean_object* v_reader_2521_; lean_object* v_state_2522_; +v_machine_2520_ = lean_ctor_get(v_state_2224_, 0); +lean_inc_ref(v_machine_2520_); +v_reader_2521_ = lean_ctor_get(v_machine_2520_, 0); +v_state_2522_ = lean_ctor_get(v_reader_2521_, 0); +if (lean_obj_tag(v_state_2522_) == 7) +{ +lean_object* v_a_2523_; lean_object* v_body_2524_; lean_object* v_requestStream_2525_; lean_object* v_keepAliveTimeout_2526_; lean_object* v_currentTimeout_2527_; lean_object* v_headerTimeout_2528_; lean_object* v_response_2529_; lean_object* v_respStream_2530_; uint8_t v_requiresData_2531_; lean_object* v_expectData_2532_; lean_object* v_pendingHead_2533_; lean_object* v_close_2534_; lean_object* v_isClosed_2535_; lean_object* v___x_2536_; lean_object* v___x_2537_; lean_object* v___f_2538_; lean_object* v___f_2539_; lean_object* v___f_2540_; lean_object* v___x_2541_; uint8_t v___x_2542_; lean_object* v___x_2543_; +lean_dec_ref(v_config_2222_); +v_a_2523_ = lean_ctor_get(v_x_2514_, 0); +lean_inc(v_a_2523_); +lean_dec_ref(v_x_2514_); +v_body_2524_ = lean_ctor_get(v_a_2523_, 1); +lean_inc(v_body_2524_); +lean_dec(v_a_2523_); +v_requestStream_2525_ = lean_ctor_get(v_state_2224_, 1); +lean_inc_ref(v_requestStream_2525_); +v_keepAliveTimeout_2526_ = lean_ctor_get(v_state_2224_, 2); +lean_inc(v_keepAliveTimeout_2526_); +v_currentTimeout_2527_ = lean_ctor_get(v_state_2224_, 3); +lean_inc(v_currentTimeout_2527_); +v_headerTimeout_2528_ = lean_ctor_get(v_state_2224_, 4); +lean_inc(v_headerTimeout_2528_); +v_response_2529_ = lean_ctor_get(v_state_2224_, 5); +lean_inc_ref(v_response_2529_); +v_respStream_2530_ = lean_ctor_get(v_state_2224_, 6); +lean_inc(v_respStream_2530_); +v_requiresData_2531_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2532_ = lean_ctor_get(v_state_2224_, 7); +lean_inc(v_expectData_2532_); +v_pendingHead_2533_ = lean_ctor_get(v_state_2224_, 8); +lean_inc(v_pendingHead_2533_); +lean_dec_ref(v_state_2224_); +v_close_2534_ = lean_ctor_get(v_body_2524_, 1); +lean_inc_ref(v_close_2534_); +v_isClosed_2535_ = lean_ctor_get(v_body_2524_, 2); +lean_inc_ref(v_isClosed_2535_); +lean_dec(v_body_2524_); +v___x_2536_ = lean_apply_1(v_isClosed_2535_, lean_box(0)); +v___x_2537_ = lean_box(v_requiresData_2531_); +v___f_2538_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__10___boxed), 12, 10); +lean_closure_set(v___f_2538_, 0, v_machine_2520_); +lean_closure_set(v___f_2538_, 1, v_requestStream_2525_); +lean_closure_set(v___f_2538_, 2, v_keepAliveTimeout_2526_); +lean_closure_set(v___f_2538_, 3, v_currentTimeout_2527_); +lean_closure_set(v___f_2538_, 4, v_headerTimeout_2528_); +lean_closure_set(v___f_2538_, 5, v_response_2529_); +lean_closure_set(v___f_2538_, 6, v_respStream_2530_); +lean_closure_set(v___f_2538_, 7, v___x_2537_); +lean_closure_set(v___f_2538_, 8, v_expectData_2532_); +lean_closure_set(v___f_2538_, 9, v_pendingHead_2533_); +lean_inc_ref(v___f_2538_); +v___f_2539_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__3___boxed), 3, 1); +lean_closure_set(v___f_2539_, 0, v___f_2538_); +v___f_2540_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__4___boxed), 5, 3); +lean_closure_set(v___f_2540_, 0, v_close_2534_); +lean_closure_set(v___f_2540_, 1, v___f_2539_); +lean_closure_set(v___f_2540_, 2, v___f_2538_); +v___x_2541_ = lean_unsigned_to_nat(0u); +v___x_2542_ = 0; +v___x_2543_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2541_, v___x_2542_, v___x_2536_, v___f_2540_); +return v___x_2543_; +} +else +{ +lean_object* v_a_2544_; lean_object* v_requestStream_2545_; lean_object* v_keepAliveTimeout_2546_; lean_object* v_currentTimeout_2547_; lean_object* v_headerTimeout_2548_; lean_object* v_response_2549_; uint8_t v_requiresData_2550_; lean_object* v_expectData_2551_; lean_object* v_pendingHead_2552_; lean_object* v___x_2553_; uint8_t v___x_2554_; lean_object* v___x_2555_; lean_object* v___x_2556_; lean_object* v___f_2557_; lean_object* v___f_2558_; lean_object* v___x_2559_; lean_object* v___f_2560_; lean_object* v___x_2561_; lean_object* v___x_2562_; +v_a_2544_ = lean_ctor_get(v_x_2514_, 0); +lean_inc(v_a_2544_); +lean_dec_ref(v_x_2514_); +v_requestStream_2545_ = lean_ctor_get(v_state_2224_, 1); +lean_inc_ref(v_requestStream_2545_); +v_keepAliveTimeout_2546_ = lean_ctor_get(v_state_2224_, 2); +lean_inc(v_keepAliveTimeout_2546_); +v_currentTimeout_2547_ = lean_ctor_get(v_state_2224_, 3); +lean_inc(v_currentTimeout_2547_); +v_headerTimeout_2548_ = lean_ctor_get(v_state_2224_, 4); +lean_inc(v_headerTimeout_2548_); +v_response_2549_ = lean_ctor_get(v_state_2224_, 5); +lean_inc_ref(v_response_2549_); +v_requiresData_2550_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2551_ = lean_ctor_get(v_state_2224_, 7); +lean_inc(v_expectData_2551_); +v_pendingHead_2552_ = lean_ctor_get(v_state_2224_, 8); +lean_inc(v_pendingHead_2552_); +lean_dec_ref(v_state_2224_); +v___x_2553_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5(v_config_2222_, v_machine_2520_, v_a_2544_); +v___x_2554_ = 0; +v___x_2555_ = lean_box(v_requiresData_2550_); +v___x_2556_ = lean_box(v___x_2554_); +v___f_2557_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__13___boxed), 11, 9); +lean_closure_set(v___f_2557_, 0, v_requestStream_2545_); +lean_closure_set(v___f_2557_, 1, v_keepAliveTimeout_2546_); +lean_closure_set(v___f_2557_, 2, v_currentTimeout_2547_); +lean_closure_set(v___f_2557_, 3, v_headerTimeout_2548_); +lean_closure_set(v___f_2557_, 4, v_response_2549_); +lean_closure_set(v___f_2557_, 5, v___x_2555_); +lean_closure_set(v___f_2557_, 6, v_expectData_2551_); +lean_closure_set(v___f_2557_, 7, v___x_2556_); +lean_closure_set(v___f_2557_, 8, v_pendingHead_2552_); +v___f_2558_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__11___boxed), 3, 1); +lean_closure_set(v___f_2558_, 0, v___f_2557_); +v___x_2559_ = lean_box(v___x_2554_); +lean_inc_ref(v___f_2558_); +v___f_2560_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__14___boxed), 5, 3); +lean_closure_set(v___f_2560_, 0, v___x_2559_); +lean_closure_set(v___f_2560_, 1, v___f_2558_); +lean_closure_set(v___f_2560_, 2, v___f_2558_); +v___x_2561_ = lean_unsigned_to_nat(0u); +v___x_2562_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2561_, v___x_2554_, v___x_2553_, v___f_2560_); +return v___x_2562_; +} +} +} +case 4: +{ +lean_object* v___f_2563_; lean_object* v___x_2564_; lean_object* v___x_2565_; uint8_t v___x_2566_; lean_object* v___x_2567_; +lean_dec_ref(v_config_2222_); +v___f_2563_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__12___boxed), 3, 1); +lean_closure_set(v___f_2563_, 0, v_state_2224_); +v___x_2564_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +v___x_2565_ = lean_unsigned_to_nat(0u); +v___x_2566_ = 0; +v___x_2567_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2565_, v___x_2566_, v___x_2564_, v___f_2563_); +return v___x_2567_; +} +case 5: +{ +lean_object* v_machine_2568_; lean_object* v_requestStream_2569_; lean_object* v_keepAliveTimeout_2570_; lean_object* v_currentTimeout_2571_; lean_object* v_headerTimeout_2572_; lean_object* v_response_2573_; lean_object* v_respStream_2574_; uint8_t v_requiresData_2575_; lean_object* v_expectData_2576_; lean_object* v_pendingHead_2577_; lean_object* v___x_2579_; uint8_t v_isShared_2580_; uint8_t v_isSharedCheck_2591_; +lean_dec_ref(v_config_2222_); +v_machine_2568_ = lean_ctor_get(v_state_2224_, 0); +v_requestStream_2569_ = lean_ctor_get(v_state_2224_, 1); +v_keepAliveTimeout_2570_ = lean_ctor_get(v_state_2224_, 2); +v_currentTimeout_2571_ = lean_ctor_get(v_state_2224_, 3); +v_headerTimeout_2572_ = lean_ctor_get(v_state_2224_, 4); +v_response_2573_ = lean_ctor_get(v_state_2224_, 5); +v_respStream_2574_ = lean_ctor_get(v_state_2224_, 6); +v_requiresData_2575_ = lean_ctor_get_uint8(v_state_2224_, sizeof(void*)*9); +v_expectData_2576_ = lean_ctor_get(v_state_2224_, 7); +v_pendingHead_2577_ = lean_ctor_get(v_state_2224_, 8); +v_isSharedCheck_2591_ = !lean_is_exclusive(v_state_2224_); +if (v_isSharedCheck_2591_ == 0) +{ +v___x_2579_ = v_state_2224_; +v_isShared_2580_ = v_isSharedCheck_2591_; +goto v_resetjp_2578_; +} +else +{ +lean_inc(v_pendingHead_2577_); +lean_inc(v_expectData_2576_); +lean_inc(v_respStream_2574_); +lean_inc(v_response_2573_); +lean_inc(v_headerTimeout_2572_); +lean_inc(v_currentTimeout_2571_); +lean_inc(v_keepAliveTimeout_2570_); +lean_inc(v_requestStream_2569_); +lean_inc(v_machine_2568_); +lean_dec(v_state_2224_); +v___x_2579_ = lean_box(0); +v_isShared_2580_ = v_isSharedCheck_2591_; +goto v_resetjp_2578_; +} +v_resetjp_2578_: +{ +lean_object* v___x_2581_; lean_object* v___x_2582_; uint8_t v___x_2583_; lean_object* v___x_2585_; +v___x_2581_ = lean_box(55); +v___x_2582_ = l_Std_Http_Protocol_H1_Machine_closeWithError(v_machine_2568_, v___x_2581_); +v___x_2583_ = 0; +if (v_isShared_2580_ == 0) +{ +lean_ctor_set(v___x_2579_, 0, v___x_2582_); +v___x_2585_ = v___x_2579_; +goto v_reusejp_2584_; +} +else +{ +lean_object* v_reuseFailAlloc_2590_; +v_reuseFailAlloc_2590_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_2590_, 0, v___x_2582_); +lean_ctor_set(v_reuseFailAlloc_2590_, 1, v_requestStream_2569_); +lean_ctor_set(v_reuseFailAlloc_2590_, 2, v_keepAliveTimeout_2570_); +lean_ctor_set(v_reuseFailAlloc_2590_, 3, v_currentTimeout_2571_); +lean_ctor_set(v_reuseFailAlloc_2590_, 4, v_headerTimeout_2572_); +lean_ctor_set(v_reuseFailAlloc_2590_, 5, v_response_2573_); +lean_ctor_set(v_reuseFailAlloc_2590_, 6, v_respStream_2574_); +lean_ctor_set(v_reuseFailAlloc_2590_, 7, v_expectData_2576_); +lean_ctor_set(v_reuseFailAlloc_2590_, 8, v_pendingHead_2577_); +lean_ctor_set_uint8(v_reuseFailAlloc_2590_, sizeof(void*)*9, v_requiresData_2575_); +v___x_2585_ = v_reuseFailAlloc_2590_; +goto v_reusejp_2584_; +} +v_reusejp_2584_: +{ +lean_object* v___x_2586_; lean_object* v___x_2587_; lean_object* v___x_2588_; lean_object* v___x_2589_; +lean_ctor_set_uint8(v___x_2585_, sizeof(void*)*9 + 1, v___x_2583_); +v___x_2586_ = lean_box(v___x_2583_); +v___x_2587_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2587_, 0, v___x_2585_); +lean_ctor_set(v___x_2587_, 1, v___x_2586_); +v___x_2588_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2588_, 0, v___x_2587_); +v___x_2589_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2589_, 0, v___x_2588_); +return v___x_2589_; +} +} +} +default: +{ +uint8_t v___x_2592_; lean_object* v___x_2593_; lean_object* v___x_2594_; lean_object* v___x_2595_; lean_object* v___x_2596_; +lean_dec_ref(v_config_2222_); +v___x_2592_ = 1; +v___x_2593_ = lean_box(v___x_2592_); +v___x_2594_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2594_, 0, v_state_2224_); +lean_ctor_set(v___x_2594_, 1, v___x_2593_); +v___x_2595_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2595_, 0, v___x_2594_); +v___x_2596_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2596_, 0, v___x_2595_); +return v___x_2596_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___boxed(lean_object* v_config_2597_, lean_object* v_event_2598_, lean_object* v_state_2599_, lean_object* v_a_2600_){ +_start: +{ +lean_object* v_res_2601_; +v_res_2601_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg(v_config_2597_, v_event_2598_, v_state_2599_); +return v_res_2601_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4(lean_object* v_config_2602_, lean_object* v___x_2603_, uint8_t v___x_2604_, lean_object* v___f_2605_, lean_object* v_x_2606_){ +_start: +{ +if (lean_obj_tag(v_x_2606_) == 0) +{ +lean_object* v_a_2608_; lean_object* v___x_2610_; uint8_t v_isShared_2611_; uint8_t v_isSharedCheck_2616_; +lean_dec_ref(v___f_2605_); +lean_dec_ref(v___x_2603_); +lean_dec_ref(v_config_2602_); +v_a_2608_ = lean_ctor_get(v_x_2606_, 0); +v_isSharedCheck_2616_ = !lean_is_exclusive(v_x_2606_); +if (v_isSharedCheck_2616_ == 0) +{ +v___x_2610_ = v_x_2606_; +v_isShared_2611_ = v_isSharedCheck_2616_; +goto v_resetjp_2609_; +} +else +{ +lean_inc(v_a_2608_); +lean_dec(v_x_2606_); +v___x_2610_ = lean_box(0); +v_isShared_2611_ = v_isSharedCheck_2616_; +goto v_resetjp_2609_; +} +v_resetjp_2609_: +{ +lean_object* v___x_2613_; +if (v_isShared_2611_ == 0) +{ +v___x_2613_ = v___x_2610_; +goto v_reusejp_2612_; +} +else +{ +lean_object* v_reuseFailAlloc_2615_; +v_reuseFailAlloc_2615_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2615_, 0, v_a_2608_); +v___x_2613_ = v_reuseFailAlloc_2615_; +goto v_reusejp_2612_; +} +v_reusejp_2612_: +{ +lean_object* v___x_2614_; +v___x_2614_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2614_, 0, v___x_2613_); +return v___x_2614_; +} +} +} +else +{ +lean_object* v_a_2617_; lean_object* v___x_2618_; lean_object* v___x_2619_; lean_object* v___x_2620_; +v_a_2617_ = lean_ctor_get(v_x_2606_, 0); +lean_inc(v_a_2617_); +lean_dec_ref(v_x_2606_); +v___x_2618_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg(v_config_2602_, v_a_2617_, v___x_2603_); +v___x_2619_ = lean_unsigned_to_nat(0u); +v___x_2620_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2619_, v___x_2604_, v___x_2618_, v___f_2605_); +return v___x_2620_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4___boxed(lean_object* v_config_2621_, lean_object* v___x_2622_, lean_object* v___x_2623_, lean_object* v___f_2624_, lean_object* v_x_2625_, lean_object* v___y_2626_){ +_start: +{ +uint8_t v___x_18325__boxed_2627_; lean_object* v_res_2628_; +v___x_18325__boxed_2627_ = lean_unbox(v___x_2623_); +v_res_2628_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4(v_config_2621_, v___x_2622_, v___x_18325__boxed_2627_, v___f_2624_, v_x_2625_); +return v_res_2628_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4(uint8_t v_x_2629_){ +_start: +{ +lean_object* v___x_2631_; lean_object* v___x_2632_; lean_object* v___x_2633_; +v___x_2631_ = lean_alloc_ctor(2, 0, 1); +lean_ctor_set_uint8(v___x_2631_, 0, v_x_2629_); +v___x_2632_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2632_, 0, v___x_2631_); +v___x_2633_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2633_, 0, v___x_2632_); +return v___x_2633_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4___boxed(lean_object* v_x_2634_, lean_object* v___y_2635_){ +_start: +{ +uint8_t v_x_18365__boxed_2636_; lean_object* v_res_2637_; +v_x_18365__boxed_2636_ = lean_unbox(v_x_2634_); +v_res_2637_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__4(v_x_18365__boxed_2636_); +return v_res_2637_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8(lean_object* v_x_2638_){ +_start: +{ +lean_object* v___x_2640_; lean_object* v___x_2641_; lean_object* v___x_2642_; +v___x_2640_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2640_, 0, v_x_2638_); +v___x_2641_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2641_, 0, v___x_2640_); +v___x_2642_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2642_, 0, v___x_2641_); +return v___x_2642_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8___boxed(lean_object* v_x_2643_, lean_object* v___y_2644_){ +_start: +{ +lean_object* v_res_2645_; +v_res_2645_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__8(v_x_2643_); +return v_res_2645_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1(lean_object* v_x_2650_){ +_start: +{ +if (lean_obj_tag(v_x_2650_) == 0) +{ +lean_object* v_a_2652_; lean_object* v___x_2654_; uint8_t v_isShared_2655_; uint8_t v_isSharedCheck_2660_; +v_a_2652_ = lean_ctor_get(v_x_2650_, 0); +v_isSharedCheck_2660_ = !lean_is_exclusive(v_x_2650_); +if (v_isSharedCheck_2660_ == 0) +{ +v___x_2654_ = v_x_2650_; +v_isShared_2655_ = v_isSharedCheck_2660_; +goto v_resetjp_2653_; +} +else +{ +lean_inc(v_a_2652_); +lean_dec(v_x_2650_); +v___x_2654_ = lean_box(0); +v_isShared_2655_ = v_isSharedCheck_2660_; +goto v_resetjp_2653_; +} +v_resetjp_2653_: +{ +lean_object* v___x_2657_; +if (v_isShared_2655_ == 0) +{ +v___x_2657_ = v___x_2654_; +goto v_reusejp_2656_; +} +else +{ +lean_object* v_reuseFailAlloc_2659_; +v_reuseFailAlloc_2659_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2659_, 0, v_a_2652_); +v___x_2657_ = v_reuseFailAlloc_2659_; +goto v_reusejp_2656_; +} +v_reusejp_2656_: +{ +lean_object* v___x_2658_; +v___x_2658_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2658_, 0, v___x_2657_); +return v___x_2658_; +} +} +} +else +{ +lean_object* v___x_2661_; +lean_dec_ref(v_x_2650_); +v___x_2661_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___closed__1)); +return v___x_2661_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1___boxed(lean_object* v_x_2662_, lean_object* v___y_2663_){ +_start: +{ +lean_object* v_res_2664_; +v_res_2664_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__1(v_x_2662_); +return v_res_2664_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2(lean_object* v___f_2665_, lean_object* v_x_2666_){ +_start: +{ +if (lean_obj_tag(v_x_2666_) == 0) +{ +lean_object* v___x_2668_; lean_object* v___x_2669_; uint8_t v___x_2670_; lean_object* v___x_2671_; +lean_dec_ref(v_x_2666_); +v___x_2668_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +v___x_2669_ = lean_unsigned_to_nat(0u); +v___x_2670_ = 0; +v___x_2671_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2669_, v___x_2670_, v___x_2668_, v___f_2665_); +return v___x_2671_; +} +else +{ +lean_object* v___x_2672_; +lean_dec_ref(v___f_2665_); +v___x_2672_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2672_, 0, v_x_2666_); +return v___x_2672_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2___boxed(lean_object* v___f_2673_, lean_object* v_x_2674_, lean_object* v___y_2675_){ +_start: +{ +lean_object* v_res_2676_; +v_res_2676_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__2(v___f_2673_, v_x_2674_); +return v_res_2676_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11(lean_object* v_val_2677_, lean_object* v___f_2678_, lean_object* v_x_2679_){ +_start: +{ +if (lean_obj_tag(v_x_2679_) == 0) +{ +lean_object* v_a_2681_; lean_object* v___x_2683_; uint8_t v_isShared_2684_; uint8_t v_isSharedCheck_2689_; +lean_dec_ref(v___f_2678_); +v_a_2681_ = lean_ctor_get(v_x_2679_, 0); +v_isSharedCheck_2689_ = !lean_is_exclusive(v_x_2679_); +if (v_isSharedCheck_2689_ == 0) +{ +v___x_2683_ = v_x_2679_; +v_isShared_2684_ = v_isSharedCheck_2689_; +goto v_resetjp_2682_; +} +else +{ +lean_inc(v_a_2681_); +lean_dec(v_x_2679_); +v___x_2683_ = lean_box(0); +v_isShared_2684_ = v_isSharedCheck_2689_; +goto v_resetjp_2682_; +} +v_resetjp_2682_: +{ +lean_object* v___x_2686_; +if (v_isShared_2684_ == 0) +{ +v___x_2686_ = v___x_2683_; +goto v_reusejp_2685_; +} +else +{ +lean_object* v_reuseFailAlloc_2688_; +v_reuseFailAlloc_2688_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2688_, 0, v_a_2681_); +v___x_2686_ = v_reuseFailAlloc_2688_; +goto v_reusejp_2685_; +} +v_reusejp_2685_: +{ +lean_object* v___x_2687_; +v___x_2687_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2687_, 0, v___x_2686_); +return v___x_2687_; +} +} +} +else +{ +lean_object* v_a_2690_; lean_object* v_second_2691_; lean_object* v_nano_2692_; lean_object* v_second_2693_; lean_object* v_nano_2694_; lean_object* v___x_2695_; lean_object* v___x_2696_; lean_object* v___x_2697_; lean_object* v___x_2698_; lean_object* v___x_2699_; lean_object* v___x_2700_; lean_object* v___x_2701_; lean_object* v___x_2702_; lean_object* v___x_2703_; lean_object* v_second_2704_; lean_object* v_nano_2705_; lean_object* v___x_2706_; lean_object* v___x_2707_; lean_object* v___x_2708_; lean_object* v___x_2709_; lean_object* v_millis_2710_; lean_object* v___x_2711_; lean_object* v___x_2712_; uint8_t v___x_2713_; lean_object* v___x_2714_; +v_a_2690_ = lean_ctor_get(v_x_2679_, 0); +lean_inc(v_a_2690_); +lean_dec_ref(v_x_2679_); +v_second_2691_ = lean_ctor_get(v_a_2690_, 0); +lean_inc(v_second_2691_); +v_nano_2692_ = lean_ctor_get(v_a_2690_, 1); +lean_inc(v_nano_2692_); +lean_dec(v_a_2690_); +v_second_2693_ = lean_ctor_get(v_val_2677_, 0); +v_nano_2694_ = lean_ctor_get(v_val_2677_, 1); +v___x_2695_ = lean_int_neg(v_second_2691_); +lean_dec(v_second_2691_); +v___x_2696_ = lean_int_neg(v_nano_2692_); +lean_dec(v_nano_2692_); +v___x_2697_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__1); +v___x_2698_ = lean_int_mul(v_second_2693_, v___x_2697_); +v___x_2699_ = lean_int_add(v___x_2698_, v_nano_2694_); +lean_dec(v___x_2698_); +v___x_2700_ = lean_int_mul(v___x_2695_, v___x_2697_); +lean_dec(v___x_2695_); +v___x_2701_ = lean_int_add(v___x_2700_, v___x_2696_); +lean_dec(v___x_2696_); +lean_dec(v___x_2700_); +v___x_2702_ = lean_int_add(v___x_2699_, v___x_2701_); +lean_dec(v___x_2701_); +lean_dec(v___x_2699_); +v___x_2703_ = l_Std_Time_Duration_ofNanoseconds(v___x_2702_); +lean_dec(v___x_2702_); +v_second_2704_ = lean_ctor_get(v___x_2703_, 0); +lean_inc(v_second_2704_); +v_nano_2705_ = lean_ctor_get(v___x_2703_, 1); +lean_inc(v_nano_2705_); +lean_dec_ref(v___x_2703_); +v___x_2706_ = lean_obj_once(&l_Std_Http_Internal_Test_defaultConfig___closed__0, &l_Std_Http_Internal_Test_defaultConfig___closed__0_once, _init_l_Std_Http_Internal_Test_defaultConfig___closed__0); +v___x_2707_ = lean_int_mul(v_second_2704_, v___x_2706_); +lean_dec(v_second_2704_); +v___x_2708_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___lam__1___closed__0); +v___x_2709_ = lean_int_ediv(v_nano_2705_, v___x_2708_); +lean_dec(v_nano_2705_); +v_millis_2710_ = lean_int_add(v___x_2707_, v___x_2709_); +lean_dec(v___x_2709_); +lean_dec(v___x_2707_); +v___x_2711_ = l_Std_Internal_IO_Async_Selector_sleep(v_millis_2710_); +lean_dec(v_millis_2710_); +v___x_2712_ = lean_unsigned_to_nat(0u); +v___x_2713_ = 0; +v___x_2714_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2712_, v___x_2713_, v___x_2711_, v___f_2678_); +return v___x_2714_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11___boxed(lean_object* v_val_2715_, lean_object* v___f_2716_, lean_object* v_x_2717_, lean_object* v___y_2718_){ +_start: +{ +lean_object* v_res_2719_; +v_res_2719_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11(v_val_2715_, v___f_2716_, v_x_2717_); +lean_dec_ref(v_val_2715_); +return v_res_2719_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0(lean_object* v_x_2728_){ +_start: +{ +if (lean_obj_tag(v_x_2728_) == 0) +{ +lean_object* v_a_2732_; lean_object* v___x_2734_; uint8_t v_isShared_2735_; uint8_t v_isSharedCheck_2740_; +v_a_2732_ = lean_ctor_get(v_x_2728_, 0); +v_isSharedCheck_2740_ = !lean_is_exclusive(v_x_2728_); +if (v_isSharedCheck_2740_ == 0) +{ +v___x_2734_ = v_x_2728_; +v_isShared_2735_ = v_isSharedCheck_2740_; +goto v_resetjp_2733_; +} +else +{ +lean_inc(v_a_2732_); +lean_dec(v_x_2728_); +v___x_2734_ = lean_box(0); +v_isShared_2735_ = v_isSharedCheck_2740_; +goto v_resetjp_2733_; +} +v_resetjp_2733_: +{ +lean_object* v___x_2737_; +if (v_isShared_2735_ == 0) +{ +v___x_2737_ = v___x_2734_; +goto v_reusejp_2736_; +} +else +{ +lean_object* v_reuseFailAlloc_2739_; +v_reuseFailAlloc_2739_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2739_, 0, v_a_2732_); +v___x_2737_ = v_reuseFailAlloc_2739_; +goto v_reusejp_2736_; +} +v_reusejp_2736_: +{ +lean_object* v___x_2738_; +v___x_2738_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2738_, 0, v___x_2737_); +return v___x_2738_; +} +} +} +else +{ +lean_object* v_a_2741_; +v_a_2741_ = lean_ctor_get(v_x_2728_, 0); +lean_inc(v_a_2741_); +lean_dec_ref(v_x_2728_); +if (lean_obj_tag(v_a_2741_) == 1) +{ +lean_object* v_val_2742_; +v_val_2742_ = lean_ctor_get(v_a_2741_, 0); +lean_inc(v_val_2742_); +lean_dec_ref(v_a_2741_); +if (lean_obj_tag(v_val_2742_) == 0) +{ +lean_object* v___x_2743_; +v___x_2743_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__3)); +return v___x_2743_; +} +else +{ +lean_dec(v_val_2742_); +goto v___jp_2730_; +} +} +else +{ +lean_dec(v_a_2741_); +goto v___jp_2730_; +} +} +v___jp_2730_: +{ +lean_object* v___x_2731_; +v___x_2731_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__1)); +return v___x_2731_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___boxed(lean_object* v_x_2744_, lean_object* v___y_2745_){ +_start: +{ +lean_object* v_res_2746_; +v_res_2746_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0(v_x_2744_); +return v_res_2746_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7(lean_object* v_token_2747_, lean_object* v___f_2748_, lean_object* v_x_2749_){ +_start: +{ +lean_object* v___x_2751_; lean_object* v___x_2752_; lean_object* v___x_2753_; lean_object* v___x_2754_; uint8_t v___x_2755_; lean_object* v___x_2756_; +v___x_2751_ = l_Std_CancellationToken_getCancellationReason(v_token_2747_); +v___x_2752_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2752_, 0, v___x_2751_); +v___x_2753_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2753_, 0, v___x_2752_); +v___x_2754_ = lean_unsigned_to_nat(0u); +v___x_2755_ = 0; +v___x_2756_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2754_, v___x_2755_, v___x_2753_, v___f_2748_); +return v___x_2756_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7___boxed(lean_object* v_token_2757_, lean_object* v___f_2758_, lean_object* v_x_2759_, lean_object* v___y_2760_){ +_start: +{ +lean_object* v_res_2761_; +v_res_2761_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7(v_token_2757_, v___f_2758_, v_x_2759_); +return v_res_2761_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3(lean_object* v_x_2762_){ +_start: +{ +lean_object* v___x_2764_; lean_object* v___x_2765_; lean_object* v___x_2766_; +v___x_2764_ = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(v___x_2764_, 0, v_x_2762_); +v___x_2765_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2765_, 0, v___x_2764_); +v___x_2766_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2766_, 0, v___x_2765_); +return v___x_2766_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3___boxed(lean_object* v_x_2767_, lean_object* v___y_2768_){ +_start: +{ +lean_object* v_res_2769_; +v_res_2769_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__3(v_x_2767_); +return v_res_2769_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5(lean_object* v_x_2770_){ +_start: +{ +lean_object* v___x_2772_; lean_object* v___x_2773_; lean_object* v___x_2774_; +v___x_2772_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2772_, 0, v_x_2770_); +v___x_2773_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2773_, 0, v___x_2772_); +v___x_2774_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2774_, 0, v___x_2773_); +return v___x_2774_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5___boxed(lean_object* v_x_2775_, lean_object* v___y_2776_){ +_start: +{ +lean_object* v_res_2777_; +v_res_2777_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__5(v_x_2775_); +return v_res_2777_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9(lean_object* v_x_2778_){ +_start: +{ +lean_object* v___x_2780_; +v___x_2780_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__0___closed__3)); +return v___x_2780_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9___boxed(lean_object* v_x_2781_, lean_object* v___y_2782_){ +_start: +{ +lean_object* v_res_2783_; +v_res_2783_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__9(v_x_2781_); +return v_res_2783_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6(lean_object* v___f_2784_, lean_object* v_response_2785_, lean_object* v___x_2786_, lean_object* v___f_2787_, lean_object* v_requestBody_2788_, lean_object* v___f_2789_, lean_object* v_responseBody_2790_, lean_object* v___f_2791_, lean_object* v_____r_2792_, lean_object* v_selectables_2793_){ +_start: +{ +lean_object* v_selectables_2796_; lean_object* v_selectables_2802_; lean_object* v_selectables_2808_; +if (lean_obj_tag(v_responseBody_2790_) == 1) +{ +lean_object* v_val_2813_; lean_object* v_recvSelector_2814_; lean_object* v___x_2815_; lean_object* v_selectables_2816_; +v_val_2813_ = lean_ctor_get(v_responseBody_2790_, 0); +v_recvSelector_2814_ = lean_ctor_get(v_val_2813_, 3); +lean_inc_ref(v_recvSelector_2814_); +v___x_2815_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2815_, 0, v_recvSelector_2814_); +lean_ctor_set(v___x_2815_, 1, v___f_2791_); +v_selectables_2816_ = lean_array_push(v_selectables_2793_, v___x_2815_); +v_selectables_2808_ = v_selectables_2816_; +goto v___jp_2807_; +} +else +{ +lean_dec_ref(v___f_2791_); +v_selectables_2808_ = v_selectables_2793_; +goto v___jp_2807_; +} +v___jp_2795_: +{ +lean_object* v___x_2797_; lean_object* v___x_2798_; uint8_t v___x_2799_; lean_object* v___x_2800_; +v___x_2797_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v_selectables_2796_); +v___x_2798_ = lean_unsigned_to_nat(0u); +v___x_2799_ = 0; +v___x_2800_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2798_, v___x_2799_, v___x_2797_, v___f_2784_); +return v___x_2800_; +} +v___jp_2801_: +{ +if (lean_obj_tag(v_response_2785_) == 1) +{ +lean_object* v_val_2803_; lean_object* v___x_2804_; lean_object* v___x_2805_; lean_object* v_selectables_2806_; +v_val_2803_ = lean_ctor_get(v_response_2785_, 0); +lean_inc(v_val_2803_); +lean_dec_ref(v_response_2785_); +v___x_2804_ = l_Std_Channel_recvSelector___redArg(v___x_2786_, v_val_2803_); +v___x_2805_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2805_, 0, v___x_2804_); +lean_ctor_set(v___x_2805_, 1, v___f_2787_); +v_selectables_2806_ = lean_array_push(v_selectables_2802_, v___x_2805_); +v_selectables_2796_ = v_selectables_2806_; +goto v___jp_2795_; +} +else +{ +lean_dec_ref(v___f_2787_); +lean_dec_ref(v___x_2786_); +lean_dec(v_response_2785_); +v_selectables_2796_ = v_selectables_2802_; +goto v___jp_2795_; +} +} +v___jp_2807_: +{ +if (lean_obj_tag(v_requestBody_2788_) == 1) +{ +lean_object* v_val_2809_; lean_object* v___x_2810_; lean_object* v___x_2811_; lean_object* v_selectables_2812_; +v_val_2809_ = lean_ctor_get(v_requestBody_2788_, 0); +lean_inc(v_val_2809_); +lean_dec_ref(v_requestBody_2788_); +v___x_2810_ = l_Std_Http_Body_Stream_interestSelector(v_val_2809_); +v___x_2811_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2811_, 0, v___x_2810_); +lean_ctor_set(v___x_2811_, 1, v___f_2789_); +v_selectables_2812_ = lean_array_push(v_selectables_2808_, v___x_2811_); +v_selectables_2802_ = v_selectables_2812_; +goto v___jp_2801_; +} +else +{ +lean_dec_ref(v___f_2789_); +lean_dec(v_requestBody_2788_); +v_selectables_2802_ = v_selectables_2808_; +goto v___jp_2801_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6___boxed(lean_object* v___f_2817_, lean_object* v_response_2818_, lean_object* v___x_2819_, lean_object* v___f_2820_, lean_object* v_requestBody_2821_, lean_object* v___f_2822_, lean_object* v_responseBody_2823_, lean_object* v___f_2824_, lean_object* v_____r_2825_, lean_object* v_selectables_2826_, lean_object* v___y_2827_){ +_start: +{ +lean_object* v_res_2828_; +v_res_2828_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6(v___f_2817_, v_response_2818_, v___x_2819_, v___f_2820_, v_requestBody_2821_, v___f_2822_, v_responseBody_2823_, v___f_2824_, v_____r_2825_, v_selectables_2826_); +lean_dec(v_responseBody_2823_); +return v_res_2828_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10(lean_object* v___f_2829_, lean_object* v_selectables_2830_, lean_object* v___f_2831_, lean_object* v_x_2832_){ +_start: +{ +if (lean_obj_tag(v_x_2832_) == 0) +{ +lean_object* v_a_2834_; lean_object* v___x_2836_; uint8_t v_isShared_2837_; uint8_t v_isSharedCheck_2842_; +lean_dec_ref(v___f_2831_); +lean_dec_ref(v_selectables_2830_); +lean_dec_ref(v___f_2829_); +v_a_2834_ = lean_ctor_get(v_x_2832_, 0); +v_isSharedCheck_2842_ = !lean_is_exclusive(v_x_2832_); +if (v_isSharedCheck_2842_ == 0) +{ +v___x_2836_ = v_x_2832_; +v_isShared_2837_ = v_isSharedCheck_2842_; +goto v_resetjp_2835_; +} +else +{ +lean_inc(v_a_2834_); +lean_dec(v_x_2832_); +v___x_2836_ = lean_box(0); +v_isShared_2837_ = v_isSharedCheck_2842_; +goto v_resetjp_2835_; +} +v_resetjp_2835_: +{ +lean_object* v___x_2839_; +if (v_isShared_2837_ == 0) +{ +v___x_2839_ = v___x_2836_; +goto v_reusejp_2838_; +} +else +{ +lean_object* v_reuseFailAlloc_2841_; +v_reuseFailAlloc_2841_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2841_, 0, v_a_2834_); +v___x_2839_ = v_reuseFailAlloc_2841_; +goto v_reusejp_2838_; +} +v_reusejp_2838_: +{ +lean_object* v___x_2840_; +v___x_2840_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2840_, 0, v___x_2839_); +return v___x_2840_; +} +} +} +else +{ +lean_object* v_a_2843_; lean_object* v___x_2844_; lean_object* v___x_2845_; lean_object* v___x_2846_; lean_object* v___x_2847_; +v_a_2843_ = lean_ctor_get(v_x_2832_, 0); +lean_inc(v_a_2843_); +lean_dec_ref(v_x_2832_); +v___x_2844_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2844_, 0, v_a_2843_); +lean_ctor_set(v___x_2844_, 1, v___f_2829_); +v___x_2845_ = lean_array_push(v_selectables_2830_, v___x_2844_); +v___x_2846_ = lean_box(0); +v___x_2847_ = lean_apply_3(v___f_2831_, v___x_2846_, v___x_2845_, lean_box(0)); +return v___x_2847_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10___boxed(lean_object* v___f_2848_, lean_object* v_selectables_2849_, lean_object* v___f_2850_, lean_object* v_x_2851_, lean_object* v___y_2852_){ +_start: +{ +lean_object* v_res_2853_; +v_res_2853_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10(v___f_2848_, v_selectables_2849_, v___f_2850_, v_x_2851_); +return v_res_2853_; +} +} +static lean_object* _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6(void){ +_start: +{ +lean_object* v___x_2861_; lean_object* v___x_2862_; +v___x_2861_ = l_instInhabitedError; +v___x_2862_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2862_, 0, v___x_2861_); +return v___x_2862_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg(lean_object* v_config_2865_, lean_object* v_sources_2866_){ +_start: +{ +lean_object* v___y_2869_; lean_object* v_val_2870_; lean_object* v_connectionContext_2875_; lean_object* v_socket_2876_; lean_object* v_response_2877_; lean_object* v_responseBody_2878_; lean_object* v_requestBody_2879_; lean_object* v_timeout_2880_; lean_object* v_keepAliveTimeout_2881_; lean_object* v_headerTimeout_2882_; lean_object* v_token_2883_; lean_object* v___f_2884_; lean_object* v___f_2885_; lean_object* v___f_2886_; lean_object* v___f_2887_; lean_object* v___f_2888_; lean_object* v___x_2889_; lean_object* v___f_2890_; lean_object* v___f_2891_; lean_object* v___x_2892_; lean_object* v___x_2893_; lean_object* v___x_2894_; lean_object* v___x_2895_; lean_object* v_selectables_2896_; +v_connectionContext_2875_ = lean_ctor_get(v_sources_2866_, 8); +lean_inc_ref(v_connectionContext_2875_); +v_socket_2876_ = lean_ctor_get(v_sources_2866_, 0); +lean_inc(v_socket_2876_); +v_response_2877_ = lean_ctor_get(v_sources_2866_, 2); +lean_inc_n(v_response_2877_, 2); +v_responseBody_2878_ = lean_ctor_get(v_sources_2866_, 3); +lean_inc_n(v_responseBody_2878_, 2); +v_requestBody_2879_ = lean_ctor_get(v_sources_2866_, 4); +lean_inc_n(v_requestBody_2879_, 2); +v_timeout_2880_ = lean_ctor_get(v_sources_2866_, 5); +lean_inc(v_timeout_2880_); +v_keepAliveTimeout_2881_ = lean_ctor_get(v_sources_2866_, 6); +lean_inc(v_keepAliveTimeout_2881_); +v_headerTimeout_2882_ = lean_ctor_get(v_sources_2866_, 7); +lean_inc(v_headerTimeout_2882_); +lean_dec_ref(v_sources_2866_); +v_token_2883_ = lean_ctor_get(v_connectionContext_2875_, 1); +lean_inc_ref_n(v_token_2883_, 2); +lean_dec_ref(v_connectionContext_2875_); +v___f_2884_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__0)); +v___f_2885_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__2)); +v___f_2886_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__3)); +v___f_2887_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__4)); +v___f_2888_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__5)); +v___x_2889_ = lean_obj_once(&l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6, &l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6_once, _init_l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__6); +v___f_2890_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6___boxed), 11, 8); +lean_closure_set(v___f_2890_, 0, v___f_2885_); +lean_closure_set(v___f_2890_, 1, v_response_2877_); +lean_closure_set(v___f_2890_, 2, v___x_2889_); +lean_closure_set(v___f_2890_, 3, v___f_2886_); +lean_closure_set(v___f_2890_, 4, v_requestBody_2879_); +lean_closure_set(v___f_2890_, 5, v___f_2887_); +lean_closure_set(v___f_2890_, 6, v_responseBody_2878_); +lean_closure_set(v___f_2890_, 7, v___f_2888_); +v___f_2891_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__7___boxed), 4, 2); +lean_closure_set(v___f_2891_, 0, v_token_2883_); +lean_closure_set(v___f_2891_, 1, v___f_2884_); +v___x_2892_ = l_Std_CancellationToken_selector(v_token_2883_); +v___x_2893_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2893_, 0, v___x_2892_); +lean_ctor_set(v___x_2893_, 1, v___f_2891_); +v___x_2894_ = lean_unsigned_to_nat(1u); +v___x_2895_ = lean_mk_empty_array_with_capacity(v___x_2894_); +v_selectables_2896_ = lean_array_push(v___x_2895_, v___x_2893_); +if (lean_obj_tag(v_socket_2876_) == 1) +{ +lean_object* v_val_2897_; lean_object* v___f_2898_; lean_object* v___x_2899_; lean_object* v___x_2900_; lean_object* v___x_2901_; lean_object* v_selectables_2902_; +v_val_2897_ = lean_ctor_get(v_socket_2876_, 0); +lean_inc(v_val_2897_); +lean_dec_ref(v_socket_2876_); +v___f_2898_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__7)); +v___x_2899_ = l_Std_Http_Internal_Mock_Server_getRecvChan(v_val_2897_); +lean_dec(v_val_2897_); +v___x_2900_ = l_Std_CloseableChannel_recvSelector___redArg(v___x_2899_); +v___x_2901_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_2901_, 0, v___x_2900_); +lean_ctor_set(v___x_2901_, 1, v___f_2898_); +v_selectables_2902_ = lean_array_push(v_selectables_2896_, v___x_2901_); +if (lean_obj_tag(v_keepAliveTimeout_2881_) == 0) +{ +lean_dec(v_requestBody_2879_); +lean_dec(v_responseBody_2878_); +lean_dec(v_response_2877_); +if (lean_obj_tag(v_headerTimeout_2882_) == 1) +{ +lean_object* v_val_2903_; lean_object* v___f_2904_; lean_object* v___f_2905_; lean_object* v___f_2906_; lean_object* v___x_2907_; +lean_dec(v_timeout_2880_); +v_val_2903_ = lean_ctor_get(v_headerTimeout_2882_, 0); +lean_inc(v_val_2903_); +lean_dec_ref(v_headerTimeout_2882_); +v___f_2904_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__8)); +v___f_2905_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10___boxed), 5, 3); +lean_closure_set(v___f_2905_, 0, v___f_2904_); +lean_closure_set(v___f_2905_, 1, v_selectables_2902_); +lean_closure_set(v___f_2905_, 2, v___f_2890_); +v___f_2906_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__11___boxed), 4, 2); +lean_closure_set(v___f_2906_, 0, v_val_2903_); +lean_closure_set(v___f_2906_, 1, v___f_2905_); +v___x_2907_ = lean_get_current_time(); +if (lean_obj_tag(v___x_2907_) == 0) +{ +lean_object* v_a_2908_; lean_object* v___x_2910_; uint8_t v_isShared_2911_; uint8_t v_isSharedCheck_2915_; +v_a_2908_ = lean_ctor_get(v___x_2907_, 0); +v_isSharedCheck_2915_ = !lean_is_exclusive(v___x_2907_); +if (v_isSharedCheck_2915_ == 0) +{ +v___x_2910_ = v___x_2907_; +v_isShared_2911_ = v_isSharedCheck_2915_; +goto v_resetjp_2909_; +} +else +{ +lean_inc(v_a_2908_); +lean_dec(v___x_2907_); +v___x_2910_ = lean_box(0); +v_isShared_2911_ = v_isSharedCheck_2915_; +goto v_resetjp_2909_; +} +v_resetjp_2909_: +{ +lean_object* v___x_2913_; +if (v_isShared_2911_ == 0) +{ +lean_ctor_set_tag(v___x_2910_, 1); +v___x_2913_ = v___x_2910_; +goto v_reusejp_2912_; +} +else +{ +lean_object* v_reuseFailAlloc_2914_; +v_reuseFailAlloc_2914_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2914_, 0, v_a_2908_); +v___x_2913_ = v_reuseFailAlloc_2914_; +goto v_reusejp_2912_; +} +v_reusejp_2912_: +{ +v___y_2869_ = v___f_2906_; +v_val_2870_ = v___x_2913_; +goto v___jp_2868_; +} +} +} +else +{ +lean_object* v_a_2916_; lean_object* v___x_2918_; uint8_t v_isShared_2919_; uint8_t v_isSharedCheck_2923_; +v_a_2916_ = lean_ctor_get(v___x_2907_, 0); +v_isSharedCheck_2923_ = !lean_is_exclusive(v___x_2907_); +if (v_isSharedCheck_2923_ == 0) +{ +v___x_2918_ = v___x_2907_; +v_isShared_2919_ = v_isSharedCheck_2923_; +goto v_resetjp_2917_; +} +else +{ +lean_inc(v_a_2916_); +lean_dec(v___x_2907_); +v___x_2918_ = lean_box(0); +v_isShared_2919_ = v_isSharedCheck_2923_; +goto v_resetjp_2917_; +} +v_resetjp_2917_: +{ +lean_object* v___x_2921_; +if (v_isShared_2919_ == 0) +{ +lean_ctor_set_tag(v___x_2918_, 0); +v___x_2921_ = v___x_2918_; +goto v_reusejp_2920_; +} +else +{ +lean_object* v_reuseFailAlloc_2922_; +v_reuseFailAlloc_2922_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2922_, 0, v_a_2916_); +v___x_2921_ = v_reuseFailAlloc_2922_; +goto v_reusejp_2920_; +} +v_reusejp_2920_: +{ +v___y_2869_ = v___f_2906_; +v_val_2870_ = v___x_2921_; +goto v___jp_2868_; +} +} +} +} +else +{ +lean_object* v___x_2924_; lean_object* v___f_2925_; lean_object* v___f_2926_; lean_object* v___x_2927_; uint8_t v___x_2928_; lean_object* v___x_2929_; +lean_dec(v_headerTimeout_2882_); +v___x_2924_ = l_Std_Internal_IO_Async_Selector_sleep(v_timeout_2880_); +lean_dec(v_timeout_2880_); +v___f_2925_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___closed__8)); +v___f_2926_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__10___boxed), 5, 3); +lean_closure_set(v___f_2926_, 0, v___f_2925_); +lean_closure_set(v___f_2926_, 1, v_selectables_2902_); +lean_closure_set(v___f_2926_, 2, v___f_2890_); +v___x_2927_ = lean_unsigned_to_nat(0u); +v___x_2928_ = 0; +v___x_2929_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2927_, v___x_2928_, v___x_2924_, v___f_2926_); +return v___x_2929_; +} +} +else +{ +lean_object* v___x_2930_; lean_object* v___x_2931_; +lean_dec_ref(v_keepAliveTimeout_2881_); +lean_dec_ref(v___f_2890_); +lean_dec(v_headerTimeout_2882_); +lean_dec(v_timeout_2880_); +v___x_2930_ = lean_box(0); +v___x_2931_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6(v___f_2885_, v_response_2877_, v___x_2889_, v___f_2886_, v_requestBody_2879_, v___f_2887_, v_responseBody_2878_, v___f_2888_, v___x_2930_, v_selectables_2902_); +lean_dec(v_responseBody_2878_); +return v___x_2931_; +} +} +else +{ +lean_object* v___x_2932_; lean_object* v___x_2933_; +lean_dec_ref(v___f_2890_); +lean_dec(v_headerTimeout_2882_); +lean_dec(v_keepAliveTimeout_2881_); +lean_dec(v_timeout_2880_); +lean_dec(v_socket_2876_); +v___x_2932_ = lean_box(0); +v___x_2933_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___lam__6(v___f_2885_, v_response_2877_, v___x_2889_, v___f_2886_, v_requestBody_2879_, v___f_2887_, v_responseBody_2878_, v___f_2888_, v___x_2932_, v_selectables_2896_); +lean_dec(v_responseBody_2878_); +return v___x_2933_; +} +v___jp_2868_: +{ +lean_object* v___x_2871_; lean_object* v___x_2872_; uint8_t v___x_2873_; lean_object* v___x_2874_; +v___x_2871_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2871_, 0, v_val_2870_); +v___x_2872_ = lean_unsigned_to_nat(0u); +v___x_2873_ = 0; +v___x_2874_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2872_, v___x_2873_, v___x_2871_, v___y_2869_); +return v___x_2874_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg___boxed(lean_object* v_config_2934_, lean_object* v_sources_2935_, lean_object* v_a_2936_){ +_start: +{ +lean_object* v_res_2937_; +v_res_2937_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg(v_config_2934_, v_sources_2935_); +lean_dec_ref(v_config_2934_); +return v_res_2937_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5(lean_object* v_config_2938_, uint8_t v___x_2939_, lean_object* v___f_2940_, lean_object* v_x_2941_){ +_start: +{ +if (lean_obj_tag(v_x_2941_) == 0) +{ +lean_object* v_a_2943_; lean_object* v___x_2945_; uint8_t v_isShared_2946_; uint8_t v_isSharedCheck_2951_; +lean_dec_ref(v___f_2940_); +v_a_2943_ = lean_ctor_get(v_x_2941_, 0); +v_isSharedCheck_2951_ = !lean_is_exclusive(v_x_2941_); +if (v_isSharedCheck_2951_ == 0) +{ +v___x_2945_ = v_x_2941_; +v_isShared_2946_ = v_isSharedCheck_2951_; +goto v_resetjp_2944_; +} +else +{ +lean_inc(v_a_2943_); +lean_dec(v_x_2941_); +v___x_2945_ = lean_box(0); +v_isShared_2946_ = v_isSharedCheck_2951_; +goto v_resetjp_2944_; +} +v_resetjp_2944_: +{ +lean_object* v___x_2948_; +if (v_isShared_2946_ == 0) +{ +v___x_2948_ = v___x_2945_; +goto v_reusejp_2947_; +} +else +{ +lean_object* v_reuseFailAlloc_2950_; +v_reuseFailAlloc_2950_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2950_, 0, v_a_2943_); +v___x_2948_ = v_reuseFailAlloc_2950_; +goto v_reusejp_2947_; +} +v_reusejp_2947_: +{ +lean_object* v___x_2949_; +v___x_2949_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2949_, 0, v___x_2948_); +return v___x_2949_; +} +} +} +else +{ +lean_object* v_a_2952_; lean_object* v___x_2953_; lean_object* v___x_2954_; lean_object* v___x_2955_; +v_a_2952_ = lean_ctor_get(v_x_2941_, 0); +lean_inc(v_a_2952_); +lean_dec_ref(v_x_2941_); +v___x_2953_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg(v_config_2938_, v_a_2952_); +v___x_2954_ = lean_unsigned_to_nat(0u); +v___x_2955_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_2954_, v___x_2939_, v___x_2953_, v___f_2940_); +return v___x_2955_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5___boxed(lean_object* v_config_2956_, lean_object* v___x_2957_, lean_object* v___f_2958_, lean_object* v_x_2959_, lean_object* v___y_2960_){ +_start: +{ +uint8_t v___x_18886__boxed_2961_; lean_object* v_res_2962_; +v___x_18886__boxed_2961_ = lean_unbox(v___x_2957_); +v_res_2962_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5(v_config_2956_, v___x_18886__boxed_2961_, v___f_2958_, v_x_2959_); +lean_dec_ref(v_config_2956_); +return v_res_2962_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6(uint8_t v___x_2963_, lean_object* v_socket_2964_, lean_object* v_connectionContext_2965_, lean_object* v_config_2966_, lean_object* v___f_2967_, lean_object* v_x_2968_){ +_start: +{ +if (lean_obj_tag(v_x_2968_) == 0) +{ +lean_object* v_a_2970_; lean_object* v___x_2972_; uint8_t v_isShared_2973_; uint8_t v_isSharedCheck_2978_; +lean_dec_ref(v___f_2967_); +lean_dec_ref(v_config_2966_); +lean_dec_ref(v_connectionContext_2965_); +lean_dec_ref(v_socket_2964_); +v_a_2970_ = lean_ctor_get(v_x_2968_, 0); +v_isSharedCheck_2978_ = !lean_is_exclusive(v_x_2968_); +if (v_isSharedCheck_2978_ == 0) +{ +v___x_2972_ = v_x_2968_; +v_isShared_2973_ = v_isSharedCheck_2978_; +goto v_resetjp_2971_; +} +else +{ +lean_inc(v_a_2970_); +lean_dec(v_x_2968_); +v___x_2972_ = lean_box(0); +v_isShared_2973_ = v_isSharedCheck_2978_; +goto v_resetjp_2971_; +} +v_resetjp_2971_: +{ +lean_object* v___x_2975_; +if (v_isShared_2973_ == 0) +{ +v___x_2975_ = v___x_2972_; +goto v_reusejp_2974_; +} +else +{ +lean_object* v_reuseFailAlloc_2977_; +v_reuseFailAlloc_2977_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2977_, 0, v_a_2970_); +v___x_2975_ = v_reuseFailAlloc_2977_; +goto v_reusejp_2974_; +} +v_reusejp_2974_: +{ +lean_object* v___x_2976_; +v___x_2976_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2976_, 0, v___x_2975_); +return v___x_2976_; +} +} +} +else +{ +lean_object* v_a_2979_; lean_object* v___x_2981_; uint8_t v_isShared_2982_; uint8_t v_isSharedCheck_3013_; +v_a_2979_ = lean_ctor_get(v_x_2968_, 0); +v_isSharedCheck_3013_ = !lean_is_exclusive(v_x_2968_); +if (v_isSharedCheck_3013_ == 0) +{ +v___x_2981_ = v_x_2968_; +v_isShared_2982_ = v_isSharedCheck_3013_; +goto v_resetjp_2980_; +} +else +{ +lean_inc(v_a_2979_); +lean_dec(v_x_2968_); +v___x_2981_ = lean_box(0); +v_isShared_2982_ = v_isSharedCheck_3013_; +goto v_resetjp_2980_; +} +v_resetjp_2980_: +{ +lean_object* v_machine_2989_; lean_object* v_requestStream_2990_; lean_object* v_keepAliveTimeout_2991_; lean_object* v_currentTimeout_2992_; lean_object* v_headerTimeout_2993_; lean_object* v_response_2994_; lean_object* v_respStream_2995_; uint8_t v_requiresData_2996_; lean_object* v_expectData_2997_; uint8_t v_handlerDispatched_2998_; lean_object* v_pendingHead_2999_; +v_machine_2989_ = lean_ctor_get(v_a_2979_, 0); +v_requestStream_2990_ = lean_ctor_get(v_a_2979_, 1); +v_keepAliveTimeout_2991_ = lean_ctor_get(v_a_2979_, 2); +v_currentTimeout_2992_ = lean_ctor_get(v_a_2979_, 3); +v_headerTimeout_2993_ = lean_ctor_get(v_a_2979_, 4); +v_response_2994_ = lean_ctor_get(v_a_2979_, 5); +v_respStream_2995_ = lean_ctor_get(v_a_2979_, 6); +v_requiresData_2996_ = lean_ctor_get_uint8(v_a_2979_, sizeof(void*)*9); +v_expectData_2997_ = lean_ctor_get(v_a_2979_, 7); +v_handlerDispatched_2998_ = lean_ctor_get_uint8(v_a_2979_, sizeof(void*)*9 + 1); +v_pendingHead_2999_ = lean_ctor_get(v_a_2979_, 8); +if (v_requiresData_2996_ == 0) +{ +if (v_handlerDispatched_2998_ == 0) +{ +if (lean_obj_tag(v_respStream_2995_) == 0) +{ +lean_object* v_writer_3009_; uint8_t v_sentMessage_3010_; +v_writer_3009_ = lean_ctor_get(v_machine_2989_, 1); +v_sentMessage_3010_ = lean_ctor_get_uint8(v_writer_3009_, sizeof(void*)*6); +if (v_sentMessage_3010_ == 0) +{ +lean_object* v_reader_3011_; lean_object* v_state_3012_; +v_reader_3011_ = lean_ctor_get(v_machine_2989_, 0); +v_state_3012_ = lean_ctor_get(v_reader_3011_, 0); +if (lean_obj_tag(v_state_3012_) == 2) +{ +lean_inc(v_respStream_2995_); +lean_inc(v_pendingHead_2999_); +lean_inc(v_expectData_2997_); +lean_inc_ref(v_response_2994_); +lean_inc(v_headerTimeout_2993_); +lean_inc(v_currentTimeout_2992_); +lean_inc(v_keepAliveTimeout_2991_); +lean_inc_ref(v_requestStream_2990_); +lean_inc_ref(v_machine_2989_); +lean_del_object(v___x_2981_); +lean_dec(v_a_2979_); +goto v___jp_3000_; +} +else +{ +lean_dec_ref(v___f_2967_); +lean_dec_ref(v_config_2966_); +lean_dec_ref(v_connectionContext_2965_); +lean_dec_ref(v_socket_2964_); +goto v___jp_2983_; +} +} +else +{ +lean_dec_ref(v___f_2967_); +lean_dec_ref(v_config_2966_); +lean_dec_ref(v_connectionContext_2965_); +lean_dec_ref(v_socket_2964_); +goto v___jp_2983_; +} +} +else +{ +lean_inc_ref(v_respStream_2995_); +lean_inc(v_pendingHead_2999_); +lean_inc(v_expectData_2997_); +lean_inc_ref(v_response_2994_); +lean_inc(v_headerTimeout_2993_); +lean_inc(v_currentTimeout_2992_); +lean_inc(v_keepAliveTimeout_2991_); +lean_inc_ref(v_requestStream_2990_); +lean_inc_ref(v_machine_2989_); +lean_del_object(v___x_2981_); +lean_dec(v_a_2979_); +goto v___jp_3000_; +} +} +else +{ +lean_inc(v_pendingHead_2999_); +lean_inc(v_expectData_2997_); +lean_inc(v_respStream_2995_); +lean_inc_ref(v_response_2994_); +lean_inc(v_headerTimeout_2993_); +lean_inc(v_currentTimeout_2992_); +lean_inc(v_keepAliveTimeout_2991_); +lean_inc_ref(v_requestStream_2990_); +lean_inc_ref(v_machine_2989_); +lean_del_object(v___x_2981_); +lean_dec(v_a_2979_); +goto v___jp_3000_; +} +} +else +{ +lean_inc(v_pendingHead_2999_); +lean_inc(v_expectData_2997_); +lean_inc(v_respStream_2995_); +lean_inc_ref(v_response_2994_); +lean_inc(v_headerTimeout_2993_); +lean_inc(v_currentTimeout_2992_); +lean_inc(v_keepAliveTimeout_2991_); +lean_inc_ref(v_requestStream_2990_); +lean_inc_ref(v_machine_2989_); +lean_del_object(v___x_2981_); +lean_dec(v_a_2979_); +goto v___jp_3000_; +} +v___jp_2983_: +{ +lean_object* v___x_2984_; lean_object* v___x_2986_; +v___x_2984_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_2984_, 0, v_a_2979_); +if (v_isShared_2982_ == 0) +{ +lean_ctor_set(v___x_2981_, 0, v___x_2984_); +v___x_2986_ = v___x_2981_; +goto v_reusejp_2985_; +} +else +{ +lean_object* v_reuseFailAlloc_2988_; +v_reuseFailAlloc_2988_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_2988_, 0, v___x_2984_); +v___x_2986_ = v_reuseFailAlloc_2988_; +goto v_reusejp_2985_; +} +v_reusejp_2985_: +{ +lean_object* v___x_2987_; +v___x_2987_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_2987_, 0, v___x_2986_); +return v___x_2987_; +} +} +v___jp_3000_: +{ +lean_object* v___x_3001_; lean_object* v___x_3002_; lean_object* v___x_3003_; lean_object* v___f_3004_; lean_object* v___x_3005_; lean_object* v___f_3006_; lean_object* v___x_3007_; lean_object* v___x_3008_; +v___x_3001_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3001_, 0, v_machine_2989_); +lean_ctor_set(v___x_3001_, 1, v_requestStream_2990_); +lean_ctor_set(v___x_3001_, 2, v_keepAliveTimeout_2991_); +lean_ctor_set(v___x_3001_, 3, v_currentTimeout_2992_); +lean_ctor_set(v___x_3001_, 4, v_headerTimeout_2993_); +lean_ctor_set(v___x_3001_, 5, v_response_2994_); +lean_ctor_set(v___x_3001_, 6, v_respStream_2995_); +lean_ctor_set(v___x_3001_, 7, v_expectData_2997_); +lean_ctor_set(v___x_3001_, 8, v_pendingHead_2999_); +lean_ctor_set_uint8(v___x_3001_, sizeof(void*)*9, v___x_2963_); +lean_ctor_set_uint8(v___x_3001_, sizeof(void*)*9 + 1, v_handlerDispatched_2998_); +lean_inc_ref(v___x_3001_); +v___x_3002_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg(v_socket_2964_, v_connectionContext_2965_, v___x_3001_); +v___x_3003_ = lean_box(v___x_2963_); +lean_inc_ref(v_config_2966_); +v___f_3004_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__4___boxed), 6, 4); +lean_closure_set(v___f_3004_, 0, v_config_2966_); +lean_closure_set(v___f_3004_, 1, v___x_3001_); +lean_closure_set(v___f_3004_, 2, v___x_3003_); +lean_closure_set(v___f_3004_, 3, v___f_2967_); +v___x_3005_ = lean_box(v___x_2963_); +v___f_3006_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__5___boxed), 5, 3); +lean_closure_set(v___f_3006_, 0, v_config_2966_); +lean_closure_set(v___f_3006_, 1, v___x_3005_); +lean_closure_set(v___f_3006_, 2, v___f_3004_); +v___x_3007_ = lean_unsigned_to_nat(0u); +v___x_3008_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3007_, v___x_2963_, v___x_3002_, v___f_3006_); +return v___x_3008_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6___boxed(lean_object* v___x_3014_, lean_object* v_socket_3015_, lean_object* v_connectionContext_3016_, lean_object* v_config_3017_, lean_object* v___f_3018_, lean_object* v_x_3019_, lean_object* v___y_3020_){ +_start: +{ +uint8_t v___x_18924__boxed_3021_; lean_object* v_res_3022_; +v___x_18924__boxed_3021_ = lean_unbox(v___x_3014_); +v_res_3022_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6(v___x_18924__boxed_3021_, v_socket_3015_, v_connectionContext_3016_, v_config_3017_, v___f_3018_, v_x_3019_); +return v_res_3022_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0(lean_object* v_x_3023_){ +_start: +{ +lean_object* v___x_3025_; +v___x_3025_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3025_, 0, v_x_3023_); +return v___x_3025_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0___boxed(lean_object* v_x_3026_, lean_object* v___y_3027_){ +_start: +{ +lean_object* v_res_3028_; +v_res_3028_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___lam__0(v_x_3026_); +return v_res_3028_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9(lean_object* v_b_3029_, uint8_t v___x_3030_, lean_object* v_requestStream_3031_, lean_object* v___f_3032_, lean_object* v_x_3033_){ +_start: +{ +if (lean_obj_tag(v_x_3033_) == 0) +{ +lean_object* v_a_3039_; lean_object* v___x_3041_; uint8_t v_isShared_3042_; uint8_t v_isSharedCheck_3047_; +lean_dec_ref(v___f_3032_); +lean_dec_ref(v_requestStream_3031_); +lean_dec_ref(v_b_3029_); +v_a_3039_ = lean_ctor_get(v_x_3033_, 0); +v_isSharedCheck_3047_ = !lean_is_exclusive(v_x_3033_); +if (v_isSharedCheck_3047_ == 0) +{ +v___x_3041_ = v_x_3033_; +v_isShared_3042_ = v_isSharedCheck_3047_; +goto v_resetjp_3040_; +} +else +{ +lean_inc(v_a_3039_); +lean_dec(v_x_3033_); +v___x_3041_ = lean_box(0); +v_isShared_3042_ = v_isSharedCheck_3047_; +goto v_resetjp_3040_; +} +v_resetjp_3040_: +{ +lean_object* v___x_3044_; +if (v_isShared_3042_ == 0) +{ +v___x_3044_ = v___x_3041_; +goto v_reusejp_3043_; +} +else +{ +lean_object* v_reuseFailAlloc_3046_; +v_reuseFailAlloc_3046_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3046_, 0, v_a_3039_); +v___x_3044_ = v_reuseFailAlloc_3046_; +goto v_reusejp_3043_; +} +v_reusejp_3043_: +{ +lean_object* v___x_3045_; +v___x_3045_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3045_, 0, v___x_3044_); +return v___x_3045_; +} +} +} +else +{ +lean_object* v_a_3048_; uint8_t v___x_3049_; +v_a_3048_ = lean_ctor_get(v_x_3033_, 0); +lean_inc(v_a_3048_); +lean_dec_ref(v_x_3033_); +v___x_3049_ = lean_unbox(v_a_3048_); +if (v___x_3049_ == 0) +{ +if (v___x_3030_ == 0) +{ +lean_dec(v_a_3048_); +lean_dec_ref(v___f_3032_); +lean_dec_ref(v_requestStream_3031_); +goto v___jp_3035_; +} +else +{ +lean_object* v___x_3050_; lean_object* v___x_3051_; uint8_t v___x_3052_; lean_object* v___x_3053_; +lean_dec_ref(v_b_3029_); +v___x_3050_ = l_Std_Http_Body_Stream_close(v_requestStream_3031_); +v___x_3051_ = lean_unsigned_to_nat(0u); +v___x_3052_ = lean_unbox(v_a_3048_); +lean_dec(v_a_3048_); +v___x_3053_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3051_, v___x_3052_, v___x_3050_, v___f_3032_); +return v___x_3053_; +} +} +else +{ +lean_dec(v_a_3048_); +lean_dec_ref(v___f_3032_); +lean_dec_ref(v_requestStream_3031_); +goto v___jp_3035_; +} +} +v___jp_3035_: +{ +lean_object* v___x_3036_; lean_object* v___x_3037_; lean_object* v___x_3038_; +v___x_3036_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3036_, 0, v_b_3029_); +v___x_3037_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3037_, 0, v___x_3036_); +v___x_3038_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3038_, 0, v___x_3037_); +return v___x_3038_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9___boxed(lean_object* v_b_3054_, lean_object* v___x_3055_, lean_object* v_requestStream_3056_, lean_object* v___f_3057_, lean_object* v_x_3058_, lean_object* v___y_3059_){ +_start: +{ +uint8_t v___x_19004__boxed_3060_; lean_object* v_res_3061_; +v___x_19004__boxed_3060_ = lean_unbox(v___x_3055_); +v_res_3061_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9(v_b_3054_, v___x_19004__boxed_3060_, v_requestStream_3056_, v___f_3057_, v_x_3058_); +return v_res_3061_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12(lean_object* v___f_3062_, lean_object* v_____r_3063_){ +_start: +{ +lean_object* v___x_3065_; lean_object* v___x_3066_; uint8_t v___x_3067_; lean_object* v___x_3068_; +v___x_3065_ = l_Std_Http_Body_mkStream(); +v___x_3066_ = lean_unsigned_to_nat(0u); +v___x_3067_ = 0; +v___x_3068_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3066_, v___x_3067_, v___x_3065_, v___f_3062_); +return v___x_3068_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12___boxed(lean_object* v___f_3069_, lean_object* v_____r_3070_, lean_object* v___y_3071_){ +_start: +{ +lean_object* v_res_3072_; +v_res_3072_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12(v___f_3069_, v_____r_3070_); +return v_res_3072_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4(lean_object* v_a_3073_, lean_object* v_x_3074_){ +_start: +{ +if (lean_obj_tag(v_x_3074_) == 0) +{ +uint8_t v___x_3076_; lean_object* v___x_3077_; lean_object* v___x_3078_; lean_object* v___x_3079_; +lean_dec_ref(v_x_3074_); +v___x_3076_ = 0; +v___x_3077_ = lean_box(v___x_3076_); +v___x_3078_ = l_Std_Channel_send___redArg(v_a_3073_, v___x_3077_); +lean_dec_ref(v___x_3078_); +v___x_3079_ = lean_box(0); +return v___x_3079_; +} +else +{ +lean_object* v_a_3080_; lean_object* v___x_3081_; lean_object* v___x_3082_; +v_a_3080_ = lean_ctor_get(v_x_3074_, 0); +lean_inc(v_a_3080_); +lean_dec_ref(v_x_3074_); +v___x_3081_ = l_Std_Channel_send___redArg(v_a_3073_, v_a_3080_); +lean_dec_ref(v___x_3081_); +v___x_3082_ = lean_box(0); +return v___x_3082_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4___boxed(lean_object* v_a_3083_, lean_object* v_x_3084_, lean_object* v___y_3085_){ +_start: +{ +lean_object* v_res_3086_; +v_res_3086_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4(v_a_3083_, v_x_3084_); +return v_res_3086_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5(uint8_t v___x_3087_, lean_object* v_x_3088_){ +_start: +{ +lean_object* v___x_3090_; lean_object* v___x_3091_; lean_object* v___x_3092_; +v___x_3090_ = lean_box(v___x_3087_); +v___x_3091_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3091_, 0, v___x_3090_); +v___x_3092_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3092_, 0, v___x_3091_); +return v___x_3092_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5___boxed(lean_object* v___x_3093_, lean_object* v_x_3094_, lean_object* v___y_3095_){ +_start: +{ +uint8_t v___x_19095__boxed_3096_; lean_object* v_res_3097_; +v___x_19095__boxed_3096_ = lean_unbox(v___x_3093_); +v_res_3097_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__5(v___x_19095__boxed_3096_, v_x_3094_); +return v_res_3097_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__6(lean_object* v_connectionContext_3098_, uint8_t v___x_3099_, lean_object* v_a_3100_, lean_object* v___f_3101_, lean_object* v___f_3102_, lean_object* v___x_3103_, uint8_t v___x_3104_, lean_object* v___f_3105_, lean_object* v_x_3106_){ +_start: +{ +if (lean_obj_tag(v_x_3106_) == 0) +{ +lean_object* v_a_3108_; lean_object* v___x_3110_; uint8_t v_isShared_3111_; uint8_t v_isSharedCheck_3116_; +lean_dec_ref(v___f_3105_); +lean_dec(v___x_3103_); +lean_dec_ref(v___f_3102_); +lean_dec_ref(v___f_3101_); +lean_dec_ref(v_a_3100_); +lean_dec_ref(v_connectionContext_3098_); +v_a_3108_ = lean_ctor_get(v_x_3106_, 0); +v_isSharedCheck_3116_ = !lean_is_exclusive(v_x_3106_); +if (v_isSharedCheck_3116_ == 0) +{ +v___x_3110_ = v_x_3106_; +v_isShared_3111_ = v_isSharedCheck_3116_; +goto v_resetjp_3109_; +} +else +{ +lean_inc(v_a_3108_); +lean_dec(v_x_3106_); +v___x_3110_ = lean_box(0); +v_isShared_3111_ = v_isSharedCheck_3116_; +goto v_resetjp_3109_; +} +v_resetjp_3109_: +{ +lean_object* v___x_3113_; +if (v_isShared_3111_ == 0) +{ +v___x_3113_ = v___x_3110_; +goto v_reusejp_3112_; +} +else +{ +lean_object* v_reuseFailAlloc_3115_; +v_reuseFailAlloc_3115_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3115_, 0, v_a_3108_); +v___x_3113_ = v_reuseFailAlloc_3115_; +goto v_reusejp_3112_; +} +v_reusejp_3112_: +{ +lean_object* v___x_3114_; +v___x_3114_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3114_, 0, v___x_3113_); +return v___x_3114_; +} +} +} +else +{ +lean_object* v_a_3117_; lean_object* v_token_3118_; lean_object* v___x_3119_; lean_object* v___x_3120_; lean_object* v___x_3121_; lean_object* v___x_3122_; lean_object* v___x_3123_; lean_object* v___x_3124_; lean_object* v___x_3125_; lean_object* v___x_3126_; lean_object* v___x_3127_; lean_object* v___x_3128_; lean_object* v___x_3129_; lean_object* v___x_3130_; lean_object* v___x_3131_; +v_a_3117_ = lean_ctor_get(v_x_3106_, 0); +lean_inc(v_a_3117_); +lean_dec_ref(v_x_3106_); +v_token_3118_ = lean_ctor_get(v_connectionContext_3098_, 1); +lean_inc_ref(v_token_3118_); +lean_dec_ref(v_connectionContext_3098_); +v___x_3119_ = lean_box(v___x_3099_); +v___x_3120_ = l_Std_Channel_recvSelector___redArg(v___x_3119_, v_a_3100_); +v___x_3121_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3121_, 0, v___x_3120_); +lean_ctor_set(v___x_3121_, 1, v___f_3101_); +v___x_3122_ = l_Std_CancellationToken_selector(v_token_3118_); +lean_inc_ref(v___f_3102_); +v___x_3123_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3123_, 0, v___x_3122_); +lean_ctor_set(v___x_3123_, 1, v___f_3102_); +v___x_3124_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3124_, 0, v_a_3117_); +lean_ctor_set(v___x_3124_, 1, v___f_3102_); +v___x_3125_ = lean_unsigned_to_nat(3u); +v___x_3126_ = lean_mk_empty_array_with_capacity(v___x_3125_); +v___x_3127_ = lean_array_push(v___x_3126_, v___x_3121_); +v___x_3128_ = lean_array_push(v___x_3127_, v___x_3123_); +v___x_3129_ = lean_array_push(v___x_3128_, v___x_3124_); +v___x_3130_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_3129_); +v___x_3131_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3103_, v___x_3104_, v___x_3130_, v___f_3105_); +return v___x_3131_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__6___boxed(lean_object* v_connectionContext_3132_, lean_object* v___x_3133_, lean_object* v_a_3134_, lean_object* v___f_3135_, lean_object* v___f_3136_, lean_object* v___x_3137_, lean_object* v___x_3138_, lean_object* v___f_3139_, lean_object* v_x_3140_, lean_object* v___y_3141_){ +_start: +{ +uint8_t v___x_19110__boxed_3142_; uint8_t v___x_19115__boxed_3143_; lean_object* v_res_3144_; +v___x_19110__boxed_3142_ = lean_unbox(v___x_3133_); +v___x_19115__boxed_3143_ = lean_unbox(v___x_3138_); +v_res_3144_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__6(v_connectionContext_3132_, v___x_19110__boxed_3142_, v_a_3134_, v___f_3135_, v___f_3136_, v___x_3137_, v___x_19115__boxed_3143_, v___f_3139_, v_x_3140_); +return v_res_3144_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7(lean_object* v_config_3145_, lean_object* v___x_3146_, uint8_t v___x_3147_, lean_object* v___f_3148_, lean_object* v_x_3149_){ +_start: +{ +if (lean_obj_tag(v_x_3149_) == 0) +{ +lean_object* v_a_3151_; lean_object* v___x_3153_; uint8_t v_isShared_3154_; uint8_t v_isSharedCheck_3159_; +lean_dec_ref(v___f_3148_); +lean_dec(v___x_3146_); +v_a_3151_ = lean_ctor_get(v_x_3149_, 0); +v_isSharedCheck_3159_ = !lean_is_exclusive(v_x_3149_); +if (v_isSharedCheck_3159_ == 0) +{ +v___x_3153_ = v_x_3149_; +v_isShared_3154_ = v_isSharedCheck_3159_; +goto v_resetjp_3152_; +} +else +{ +lean_inc(v_a_3151_); +lean_dec(v_x_3149_); +v___x_3153_ = lean_box(0); +v_isShared_3154_ = v_isSharedCheck_3159_; +goto v_resetjp_3152_; +} +v_resetjp_3152_: +{ +lean_object* v___x_3156_; +if (v_isShared_3154_ == 0) +{ +v___x_3156_ = v___x_3153_; +goto v_reusejp_3155_; +} +else +{ +lean_object* v_reuseFailAlloc_3158_; +v_reuseFailAlloc_3158_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3158_, 0, v_a_3151_); +v___x_3156_ = v_reuseFailAlloc_3158_; +goto v_reusejp_3155_; +} +v_reusejp_3155_: +{ +lean_object* v___x_3157_; +v___x_3157_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3157_, 0, v___x_3156_); +return v___x_3157_; +} +} +} +else +{ +lean_object* v_lingeringTimeout_3160_; lean_object* v___x_3161_; lean_object* v___x_3162_; +lean_dec_ref(v_x_3149_); +v_lingeringTimeout_3160_ = lean_ctor_get(v_config_3145_, 4); +v___x_3161_ = l_Std_Internal_IO_Async_Selector_sleep(v_lingeringTimeout_3160_); +v___x_3162_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3146_, v___x_3147_, v___x_3161_, v___f_3148_); +return v___x_3162_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7___boxed(lean_object* v_config_3163_, lean_object* v___x_3164_, lean_object* v___x_3165_, lean_object* v___f_3166_, lean_object* v_x_3167_, lean_object* v___y_3168_){ +_start: +{ +uint8_t v___x_19184__boxed_3169_; lean_object* v_res_3170_; +v___x_19184__boxed_3169_ = lean_unbox(v___x_3165_); +v_res_3170_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7(v_config_3163_, v___x_3164_, v___x_19184__boxed_3169_, v___f_3166_, v_x_3167_); +lean_dec_ref(v_config_3163_); +return v_res_3170_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8(lean_object* v___f_3174_, lean_object* v___x_3175_, lean_object* v_connectionContext_3176_, uint8_t v___x_3177_, lean_object* v_a_3178_, lean_object* v___f_3179_, lean_object* v___f_3180_, lean_object* v_config_3181_, lean_object* v_x_3182_){ +_start: +{ +if (lean_obj_tag(v_x_3182_) == 0) +{ +lean_object* v_a_3184_; lean_object* v___x_3186_; uint8_t v_isShared_3187_; uint8_t v_isSharedCheck_3192_; +lean_dec_ref(v_config_3181_); +lean_dec_ref(v___f_3180_); +lean_dec_ref(v___f_3179_); +lean_dec_ref(v_a_3178_); +lean_dec_ref(v_connectionContext_3176_); +lean_dec(v___x_3175_); +lean_dec_ref(v___f_3174_); +v_a_3184_ = lean_ctor_get(v_x_3182_, 0); +v_isSharedCheck_3192_ = !lean_is_exclusive(v_x_3182_); +if (v_isSharedCheck_3192_ == 0) +{ +v___x_3186_ = v_x_3182_; +v_isShared_3187_ = v_isSharedCheck_3192_; +goto v_resetjp_3185_; +} +else +{ +lean_inc(v_a_3184_); +lean_dec(v_x_3182_); +v___x_3186_ = lean_box(0); +v_isShared_3187_ = v_isSharedCheck_3192_; +goto v_resetjp_3185_; +} +v_resetjp_3185_: +{ +lean_object* v___x_3189_; +if (v_isShared_3187_ == 0) +{ +v___x_3189_ = v___x_3186_; +goto v_reusejp_3188_; +} +else +{ +lean_object* v_reuseFailAlloc_3191_; +v_reuseFailAlloc_3191_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3191_, 0, v_a_3184_); +v___x_3189_ = v_reuseFailAlloc_3191_; +goto v_reusejp_3188_; +} +v_reusejp_3188_: +{ +lean_object* v___x_3190_; +v___x_3190_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3190_, 0, v___x_3189_); +return v___x_3190_; +} +} +} +else +{ +lean_object* v_a_3193_; lean_object* v___x_3195_; uint8_t v_isShared_3196_; uint8_t v_isSharedCheck_3210_; +v_a_3193_ = lean_ctor_get(v_x_3182_, 0); +v_isSharedCheck_3210_ = !lean_is_exclusive(v_x_3182_); +if (v_isSharedCheck_3210_ == 0) +{ +v___x_3195_ = v_x_3182_; +v_isShared_3196_ = v_isSharedCheck_3210_; +goto v_resetjp_3194_; +} +else +{ +lean_inc(v_a_3193_); +lean_dec(v_x_3182_); +v___x_3195_ = lean_box(0); +v_isShared_3196_ = v_isSharedCheck_3210_; +goto v_resetjp_3194_; +} +v_resetjp_3194_: +{ +uint8_t v___x_3197_; lean_object* v___x_3198_; lean_object* v___f_3199_; lean_object* v___x_3200_; lean_object* v___x_3201_; lean_object* v___f_3202_; lean_object* v___x_3203_; lean_object* v___f_3204_; lean_object* v___x_3206_; +v___x_3197_ = 0; +lean_inc_n(v___x_3175_, 3); +v___x_3198_ = l_BaseIO_chainTask___redArg(v_a_3193_, v___f_3174_, v___x_3175_, v___x_3197_); +v___f_3199_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___closed__0)); +v___x_3200_ = lean_box(v___x_3177_); +v___x_3201_ = lean_box(v___x_3197_); +v___f_3202_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__6___boxed), 10, 8); +lean_closure_set(v___f_3202_, 0, v_connectionContext_3176_); +lean_closure_set(v___f_3202_, 1, v___x_3200_); +lean_closure_set(v___f_3202_, 2, v_a_3178_); +lean_closure_set(v___f_3202_, 3, v___f_3179_); +lean_closure_set(v___f_3202_, 4, v___f_3199_); +lean_closure_set(v___f_3202_, 5, v___x_3175_); +lean_closure_set(v___f_3202_, 6, v___x_3201_); +lean_closure_set(v___f_3202_, 7, v___f_3180_); +v___x_3203_ = lean_box(v___x_3197_); +v___f_3204_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__7___boxed), 6, 4); +lean_closure_set(v___f_3204_, 0, v_config_3181_); +lean_closure_set(v___f_3204_, 1, v___x_3175_); +lean_closure_set(v___f_3204_, 2, v___x_3203_); +lean_closure_set(v___f_3204_, 3, v___f_3202_); +if (v_isShared_3196_ == 0) +{ +lean_ctor_set(v___x_3195_, 0, v___x_3198_); +v___x_3206_ = v___x_3195_; +goto v_reusejp_3205_; +} +else +{ +lean_object* v_reuseFailAlloc_3209_; +v_reuseFailAlloc_3209_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3209_, 0, v___x_3198_); +v___x_3206_ = v_reuseFailAlloc_3209_; +goto v_reusejp_3205_; +} +v_reusejp_3205_: +{ +lean_object* v___x_3207_; lean_object* v___x_3208_; +v___x_3207_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3207_, 0, v___x_3206_); +v___x_3208_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3175_, v___x_3197_, v___x_3207_, v___f_3204_); +return v___x_3208_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___boxed(lean_object* v___f_3211_, lean_object* v___x_3212_, lean_object* v_connectionContext_3213_, lean_object* v___x_3214_, lean_object* v_a_3215_, lean_object* v___f_3216_, lean_object* v___f_3217_, lean_object* v_config_3218_, lean_object* v_x_3219_, lean_object* v___y_3220_){ +_start: +{ +uint8_t v___x_19226__boxed_3221_; lean_object* v_res_3222_; +v___x_19226__boxed_3221_ = lean_unbox(v___x_3214_); +v_res_3222_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8(v___f_3211_, v___x_3212_, v_connectionContext_3213_, v___x_19226__boxed_3221_, v_a_3215_, v___f_3216_, v___f_3217_, v_config_3218_, v_x_3219_); +return v_res_3222_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9(lean_object* v___f_3223_, lean_object* v_connectionContext_3224_, uint8_t v___x_3225_, lean_object* v___f_3226_, lean_object* v___f_3227_, lean_object* v_config_3228_, lean_object* v___f_3229_, lean_object* v_x_3230_){ +_start: +{ +if (lean_obj_tag(v_x_3230_) == 0) +{ +lean_object* v_a_3232_; lean_object* v___x_3234_; uint8_t v_isShared_3235_; uint8_t v_isSharedCheck_3240_; +lean_dec_ref(v___f_3229_); +lean_dec_ref(v_config_3228_); +lean_dec_ref(v___f_3227_); +lean_dec_ref(v___f_3226_); +lean_dec_ref(v_connectionContext_3224_); +lean_dec_ref(v___f_3223_); +v_a_3232_ = lean_ctor_get(v_x_3230_, 0); +v_isSharedCheck_3240_ = !lean_is_exclusive(v_x_3230_); +if (v_isSharedCheck_3240_ == 0) +{ +v___x_3234_ = v_x_3230_; +v_isShared_3235_ = v_isSharedCheck_3240_; +goto v_resetjp_3233_; +} +else +{ +lean_inc(v_a_3232_); +lean_dec(v_x_3230_); +v___x_3234_ = lean_box(0); +v_isShared_3235_ = v_isSharedCheck_3240_; +goto v_resetjp_3233_; +} +v_resetjp_3233_: +{ +lean_object* v___x_3237_; +if (v_isShared_3235_ == 0) +{ +v___x_3237_ = v___x_3234_; +goto v_reusejp_3236_; +} +else +{ +lean_object* v_reuseFailAlloc_3239_; +v_reuseFailAlloc_3239_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3239_, 0, v_a_3232_); +v___x_3237_ = v_reuseFailAlloc_3239_; +goto v_reusejp_3236_; +} +v_reusejp_3236_: +{ +lean_object* v___x_3238_; +v___x_3238_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3238_, 0, v___x_3237_); +return v___x_3238_; +} +} +} +else +{ +lean_object* v_a_3241_; lean_object* v___x_3243_; uint8_t v_isShared_3244_; uint8_t v_isSharedCheck_3258_; +v_a_3241_ = lean_ctor_get(v_x_3230_, 0); +v_isSharedCheck_3258_ = !lean_is_exclusive(v_x_3230_); +if (v_isSharedCheck_3258_ == 0) +{ +v___x_3243_ = v_x_3230_; +v_isShared_3244_ = v_isSharedCheck_3258_; +goto v_resetjp_3242_; +} +else +{ +lean_inc(v_a_3241_); +lean_dec(v_x_3230_); +v___x_3243_ = lean_box(0); +v_isShared_3244_ = v_isSharedCheck_3258_; +goto v_resetjp_3242_; +} +v_resetjp_3242_: +{ +lean_object* v___x_3245_; lean_object* v___x_3246_; lean_object* v___f_3247_; lean_object* v___x_3248_; lean_object* v___f_3249_; uint8_t v___x_3250_; lean_object* v___x_3251_; lean_object* v___x_3253_; +v___x_3245_ = lean_unsigned_to_nat(0u); +v___x_3246_ = lean_io_as_task(v___f_3223_, v___x_3245_); +lean_inc(v_a_3241_); +v___f_3247_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__4___boxed), 3, 1); +lean_closure_set(v___f_3247_, 0, v_a_3241_); +v___x_3248_ = lean_box(v___x_3225_); +v___f_3249_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__8___boxed), 10, 8); +lean_closure_set(v___f_3249_, 0, v___f_3247_); +lean_closure_set(v___f_3249_, 1, v___x_3245_); +lean_closure_set(v___f_3249_, 2, v_connectionContext_3224_); +lean_closure_set(v___f_3249_, 3, v___x_3248_); +lean_closure_set(v___f_3249_, 4, v_a_3241_); +lean_closure_set(v___f_3249_, 5, v___f_3226_); +lean_closure_set(v___f_3249_, 6, v___f_3227_); +lean_closure_set(v___f_3249_, 7, v_config_3228_); +v___x_3250_ = 1; +v___x_3251_ = lean_task_bind(v___x_3246_, v___f_3229_, v___x_3245_, v___x_3250_); +if (v_isShared_3244_ == 0) +{ +lean_ctor_set(v___x_3243_, 0, v___x_3251_); +v___x_3253_ = v___x_3243_; +goto v_reusejp_3252_; +} +else +{ +lean_object* v_reuseFailAlloc_3257_; +v_reuseFailAlloc_3257_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3257_, 0, v___x_3251_); +v___x_3253_ = v_reuseFailAlloc_3257_; +goto v_reusejp_3252_; +} +v_reusejp_3252_: +{ +lean_object* v___x_3254_; uint8_t v___x_3255_; lean_object* v___x_3256_; +v___x_3254_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3254_, 0, v___x_3253_); +v___x_3255_ = 0; +v___x_3256_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3245_, v___x_3255_, v___x_3254_, v___f_3249_); +return v___x_3256_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9___boxed(lean_object* v___f_3259_, lean_object* v_connectionContext_3260_, lean_object* v___x_3261_, lean_object* v___f_3262_, lean_object* v___f_3263_, lean_object* v_config_3264_, lean_object* v___f_3265_, lean_object* v_x_3266_, lean_object* v___y_3267_){ +_start: +{ +uint8_t v___x_19307__boxed_3268_; lean_object* v_res_3269_; +v___x_19307__boxed_3268_ = lean_unbox(v___x_3261_); +v_res_3269_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9(v___f_3259_, v_connectionContext_3260_, v___x_19307__boxed_3268_, v___f_3262_, v___f_3263_, v_config_3264_, v___f_3265_, v_x_3266_); +return v_res_3269_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0(){ +_start: +{ +lean_object* v___x_3271_; +v___x_3271_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__2___closed__1)); +return v___x_3271_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0___boxed(lean_object* v___y_3272_){ +_start: +{ +lean_object* v_res_3273_; +v_res_3273_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__0(); +return v_res_3273_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1(lean_object* v_machine_3274_, lean_object* v_x_3275_){ +_start: +{ +lean_object* v___y_3278_; uint8_t v___y_3279_; +if (lean_obj_tag(v_x_3275_) == 0) +{ +lean_object* v_a_3284_; lean_object* v___x_3286_; uint8_t v_isShared_3287_; uint8_t v_isSharedCheck_3292_; +lean_dec_ref(v_machine_3274_); +v_a_3284_ = lean_ctor_get(v_x_3275_, 0); +v_isSharedCheck_3292_ = !lean_is_exclusive(v_x_3275_); +if (v_isSharedCheck_3292_ == 0) +{ +v___x_3286_ = v_x_3275_; +v_isShared_3287_ = v_isSharedCheck_3292_; +goto v_resetjp_3285_; +} +else +{ +lean_inc(v_a_3284_); +lean_dec(v_x_3275_); +v___x_3286_ = lean_box(0); +v_isShared_3287_ = v_isSharedCheck_3292_; +goto v_resetjp_3285_; +} +v_resetjp_3285_: +{ +lean_object* v___x_3289_; +if (v_isShared_3287_ == 0) +{ +v___x_3289_ = v___x_3286_; +goto v_reusejp_3288_; +} +else +{ +lean_object* v_reuseFailAlloc_3291_; +v_reuseFailAlloc_3291_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3291_, 0, v_a_3284_); +v___x_3289_ = v_reuseFailAlloc_3291_; +goto v_reusejp_3288_; +} +v_reusejp_3288_: +{ +lean_object* v___x_3290_; +v___x_3290_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3290_, 0, v___x_3289_); +return v___x_3290_; +} +} +} +else +{ +lean_object* v_a_3293_; lean_object* v___y_3295_; uint8_t v___x_3301_; +v_a_3293_ = lean_ctor_get(v_x_3275_, 0); +lean_inc(v_a_3293_); +lean_dec_ref(v_x_3275_); +v___x_3301_ = lean_unbox(v_a_3293_); +if (v___x_3301_ == 0) +{ +lean_object* v___x_3302_; +v___x_3302_ = lean_box(40); +v___y_3295_ = v___x_3302_; +goto v___jp_3294_; +} +else +{ +lean_object* v___x_3303_; +v___x_3303_ = lean_box(0); +v___y_3295_ = v___x_3303_; +goto v___jp_3294_; +} +v___jp_3294_: +{ +uint8_t v___x_3296_; lean_object* v___x_3297_; uint8_t v___x_3298_; +v___x_3296_ = 0; +lean_inc(v___y_3295_); +v___x_3297_ = l_Std_Http_Protocol_H1_Machine_canContinue(v___x_3296_, v_machine_3274_, v___y_3295_); +v___x_3298_ = lean_unbox(v_a_3293_); +lean_dec(v_a_3293_); +if (v___x_3298_ == 0) +{ +uint8_t v___x_3299_; +v___x_3299_ = 1; +v___y_3278_ = v___x_3297_; +v___y_3279_ = v___x_3299_; +goto v___jp_3277_; +} +else +{ +uint8_t v___x_3300_; +v___x_3300_ = 0; +v___y_3278_ = v___x_3297_; +v___y_3279_ = v___x_3300_; +goto v___jp_3277_; +} +} +} +v___jp_3277_: +{ +lean_object* v___x_3280_; lean_object* v___x_3281_; lean_object* v___x_3282_; lean_object* v___x_3283_; +v___x_3280_ = lean_box(v___y_3279_); +v___x_3281_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_3281_, 0, v___y_3278_); +lean_ctor_set(v___x_3281_, 1, v___x_3280_); +v___x_3282_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3282_, 0, v___x_3281_); +v___x_3283_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3283_, 0, v___x_3282_); +return v___x_3283_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1___boxed(lean_object* v_machine_3304_, lean_object* v_x_3305_, lean_object* v___y_3306_){ +_start: +{ +lean_object* v_res_3307_; +v_res_3307_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1(v_machine_3304_, v_x_3305_); +return v_res_3307_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2(uint8_t v___y_3308_){ +_start: +{ +lean_object* v___x_3310_; lean_object* v___x_3311_; lean_object* v___x_3312_; +v___x_3310_ = lean_box(v___y_3308_); +v___x_3311_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3311_, 0, v___x_3310_); +v___x_3312_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3312_, 0, v___x_3311_); +return v___x_3312_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2___boxed(lean_object* v___y_3313_, lean_object* v___y_3314_){ +_start: +{ +uint8_t v___y_19452__boxed_3315_; lean_object* v_res_3316_; +v___y_19452__boxed_3315_ = lean_unbox(v___y_3313_); +v_res_3316_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__2(v___y_19452__boxed_3315_); +return v_res_3316_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__3(lean_object* v_x_3317_){ +_start: +{ +if (lean_obj_tag(v_x_3317_) == 0) +{ +lean_object* v_a_3318_; lean_object* v___x_3319_; +v_a_3318_ = lean_ctor_get(v_x_3317_, 0); +lean_inc(v_a_3318_); +lean_dec_ref(v_x_3317_); +v___x_3319_ = lean_task_pure(v_a_3318_); +return v___x_3319_; +} +else +{ +lean_object* v_a_3320_; +v_a_3320_ = lean_ctor_get(v_x_3317_, 0); +lean_inc_ref(v_a_3320_); +lean_dec_ref(v_x_3317_); +return v_a_3320_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg(lean_object* v_machine_3324_, lean_object* v_config_3325_, lean_object* v_connectionContext_3326_){ +_start: +{ +lean_object* v___x_3328_; lean_object* v___x_3329_; lean_object* v___f_3330_; lean_object* v___f_3331_; lean_object* v___f_3332_; lean_object* v___f_3333_; uint8_t v___x_3334_; lean_object* v___x_3335_; lean_object* v___f_3336_; lean_object* v___x_3337_; lean_object* v___x_3338_; lean_object* v___x_3339_; lean_object* v___x_3340_; +v___x_3328_ = lean_box(0); +v___x_3329_ = l_Std_CloseableChannel_new___redArg(v___x_3328_); +v___f_3330_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__0)); +v___f_3331_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__1___boxed), 3, 1); +lean_closure_set(v___f_3331_, 0, v_machine_3324_); +v___f_3332_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__1)); +v___f_3333_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___closed__2)); +v___x_3334_ = 0; +v___x_3335_ = lean_box(v___x_3334_); +v___f_3336_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___lam__9___boxed), 9, 7); +lean_closure_set(v___f_3336_, 0, v___f_3330_); +lean_closure_set(v___f_3336_, 1, v_connectionContext_3326_); +lean_closure_set(v___f_3336_, 2, v___x_3335_); +lean_closure_set(v___f_3336_, 3, v___f_3332_); +lean_closure_set(v___f_3336_, 4, v___f_3331_); +lean_closure_set(v___f_3336_, 5, v_config_3325_); +lean_closure_set(v___f_3336_, 6, v___f_3333_); +v___x_3337_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3337_, 0, v___x_3329_); +v___x_3338_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3338_, 0, v___x_3337_); +v___x_3339_ = lean_unsigned_to_nat(0u); +v___x_3340_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3339_, v___x_3334_, v___x_3338_, v___f_3336_); +return v___x_3340_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg___boxed(lean_object* v_machine_3341_, lean_object* v_config_3342_, lean_object* v_connectionContext_3343_, lean_object* v_a_3344_){ +_start: +{ +lean_object* v_res_3345_; +v_res_3345_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg(v_machine_3341_, v_config_3342_, v_connectionContext_3343_); +return v_res_3345_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6(lean_object* v___f_3346_, lean_object* v_x_3347_){ +_start: +{ +if (lean_obj_tag(v_x_3347_) == 0) +{ +lean_object* v_a_3349_; lean_object* v___x_3351_; uint8_t v_isShared_3352_; uint8_t v_isSharedCheck_3357_; +lean_dec_ref(v___f_3346_); +v_a_3349_ = lean_ctor_get(v_x_3347_, 0); +v_isSharedCheck_3357_ = !lean_is_exclusive(v_x_3347_); +if (v_isSharedCheck_3357_ == 0) +{ +v___x_3351_ = v_x_3347_; +v_isShared_3352_ = v_isSharedCheck_3357_; +goto v_resetjp_3350_; +} +else +{ +lean_inc(v_a_3349_); +lean_dec(v_x_3347_); +v___x_3351_ = lean_box(0); +v_isShared_3352_ = v_isSharedCheck_3357_; +goto v_resetjp_3350_; +} +v_resetjp_3350_: +{ +lean_object* v___x_3354_; +if (v_isShared_3352_ == 0) +{ +v___x_3354_ = v___x_3351_; +goto v_reusejp_3353_; +} +else +{ +lean_object* v_reuseFailAlloc_3356_; +v_reuseFailAlloc_3356_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3356_, 0, v_a_3349_); +v___x_3354_ = v_reuseFailAlloc_3356_; +goto v_reusejp_3353_; +} +v_reusejp_3353_: +{ +lean_object* v___x_3355_; +v___x_3355_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3355_, 0, v___x_3354_); +return v___x_3355_; +} +} +} +else +{ +lean_object* v_a_3358_; lean_object* v___x_3359_; +v_a_3358_ = lean_ctor_get(v_x_3347_, 0); +lean_inc(v_a_3358_); +lean_dec_ref(v_x_3347_); +v___x_3359_ = lean_apply_2(v___f_3346_, v_a_3358_, lean_box(0)); +return v___x_3359_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6___boxed(lean_object* v___f_3360_, lean_object* v_x_3361_, lean_object* v___y_3362_){ +_start: +{ +lean_object* v_res_3363_; +v_res_3363_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6(v___f_3360_, v_x_3361_); +return v_res_3363_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7(lean_object* v___f_3364_, uint8_t v___x_3365_, lean_object* v_requestStream_3366_, lean_object* v___f_3367_, lean_object* v_x_3368_){ +_start: +{ +if (lean_obj_tag(v_x_3368_) == 0) +{ +lean_object* v_a_3373_; lean_object* v___x_3375_; uint8_t v_isShared_3376_; uint8_t v_isSharedCheck_3381_; +lean_dec_ref(v___f_3367_); +lean_dec_ref(v_requestStream_3366_); +lean_dec_ref(v___f_3364_); +v_a_3373_ = lean_ctor_get(v_x_3368_, 0); +v_isSharedCheck_3381_ = !lean_is_exclusive(v_x_3368_); +if (v_isSharedCheck_3381_ == 0) +{ +v___x_3375_ = v_x_3368_; +v_isShared_3376_ = v_isSharedCheck_3381_; +goto v_resetjp_3374_; +} +else +{ +lean_inc(v_a_3373_); +lean_dec(v_x_3368_); +v___x_3375_ = lean_box(0); +v_isShared_3376_ = v_isSharedCheck_3381_; +goto v_resetjp_3374_; +} +v_resetjp_3374_: +{ +lean_object* v___x_3378_; +if (v_isShared_3376_ == 0) +{ +v___x_3378_ = v___x_3375_; +goto v_reusejp_3377_; +} +else +{ +lean_object* v_reuseFailAlloc_3380_; +v_reuseFailAlloc_3380_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3380_, 0, v_a_3373_); +v___x_3378_ = v_reuseFailAlloc_3380_; +goto v_reusejp_3377_; +} +v_reusejp_3377_: +{ +lean_object* v___x_3379_; +v___x_3379_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3379_, 0, v___x_3378_); +return v___x_3379_; +} +} +} +else +{ +lean_object* v_a_3382_; uint8_t v___x_3383_; +v_a_3382_ = lean_ctor_get(v_x_3368_, 0); +lean_inc(v_a_3382_); +lean_dec_ref(v_x_3368_); +v___x_3383_ = lean_unbox(v_a_3382_); +if (v___x_3383_ == 0) +{ +if (v___x_3365_ == 0) +{ +lean_dec(v_a_3382_); +lean_dec_ref(v___f_3367_); +lean_dec_ref(v_requestStream_3366_); +goto v___jp_3370_; +} +else +{ +lean_object* v___x_3384_; lean_object* v___x_3385_; uint8_t v___x_3386_; lean_object* v___x_3387_; +lean_dec_ref(v___f_3364_); +v___x_3384_ = l_Std_Http_Body_Stream_close(v_requestStream_3366_); +v___x_3385_ = lean_unsigned_to_nat(0u); +v___x_3386_ = lean_unbox(v_a_3382_); +lean_dec(v_a_3382_); +v___x_3387_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3385_, v___x_3386_, v___x_3384_, v___f_3367_); +return v___x_3387_; +} +} +else +{ +lean_dec(v_a_3382_); +lean_dec_ref(v___f_3367_); +lean_dec_ref(v_requestStream_3366_); +goto v___jp_3370_; +} +} +v___jp_3370_: +{ +lean_object* v___x_3371_; lean_object* v___x_3372_; +v___x_3371_ = lean_box(0); +v___x_3372_ = lean_apply_2(v___f_3364_, v___x_3371_, lean_box(0)); +return v___x_3372_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7___boxed(lean_object* v___f_3388_, lean_object* v___x_3389_, lean_object* v_requestStream_3390_, lean_object* v___f_3391_, lean_object* v_x_3392_, lean_object* v___y_3393_){ +_start: +{ +uint8_t v___x_19542__boxed_3394_; lean_object* v_res_3395_; +v___x_19542__boxed_3394_ = lean_unbox(v___x_3389_); +v_res_3395_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7(v___f_3388_, v___x_19542__boxed_3394_, v_requestStream_3390_, v___f_3391_, v_x_3392_); +return v_res_3395_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5(lean_object* v_machine_3396_, lean_object* v_requestStream_3397_, lean_object* v_keepAliveTimeout_3398_, lean_object* v_currentTimeout_3399_, lean_object* v_headerTimeout_3400_, lean_object* v_response_3401_, lean_object* v_respStream_3402_, lean_object* v_expectData_3403_, uint8_t v_handlerDispatched_3404_, lean_object* v_____r_3405_){ +_start: +{ +uint8_t v___x_3407_; lean_object* v___x_3408_; lean_object* v___x_3409_; lean_object* v___x_3410_; lean_object* v___x_3411_; lean_object* v___x_3412_; +v___x_3407_ = 0; +v___x_3408_ = lean_box(0); +v___x_3409_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3409_, 0, v_machine_3396_); +lean_ctor_set(v___x_3409_, 1, v_requestStream_3397_); +lean_ctor_set(v___x_3409_, 2, v_keepAliveTimeout_3398_); +lean_ctor_set(v___x_3409_, 3, v_currentTimeout_3399_); +lean_ctor_set(v___x_3409_, 4, v_headerTimeout_3400_); +lean_ctor_set(v___x_3409_, 5, v_response_3401_); +lean_ctor_set(v___x_3409_, 6, v_respStream_3402_); +lean_ctor_set(v___x_3409_, 7, v_expectData_3403_); +lean_ctor_set(v___x_3409_, 8, v___x_3408_); +lean_ctor_set_uint8(v___x_3409_, sizeof(void*)*9, v___x_3407_); +lean_ctor_set_uint8(v___x_3409_, sizeof(void*)*9 + 1, v_handlerDispatched_3404_); +v___x_3410_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3410_, 0, v___x_3409_); +v___x_3411_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3411_, 0, v___x_3410_); +v___x_3412_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3412_, 0, v___x_3411_); +return v___x_3412_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5___boxed(lean_object* v_machine_3413_, lean_object* v_requestStream_3414_, lean_object* v_keepAliveTimeout_3415_, lean_object* v_currentTimeout_3416_, lean_object* v_headerTimeout_3417_, lean_object* v_response_3418_, lean_object* v_respStream_3419_, lean_object* v_expectData_3420_, lean_object* v_handlerDispatched_3421_, lean_object* v_____r_3422_, lean_object* v___y_3423_){ +_start: +{ +uint8_t v_handlerDispatched_boxed_3424_; lean_object* v_res_3425_; +v_handlerDispatched_boxed_3424_ = lean_unbox(v_handlerDispatched_3421_); +v_res_3425_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5(v_machine_3413_, v_requestStream_3414_, v_keepAliveTimeout_3415_, v_currentTimeout_3416_, v_headerTimeout_3417_, v_response_3418_, v_respStream_3419_, v_expectData_3420_, v_handlerDispatched_boxed_3424_, v_____r_3422_); +return v_res_3425_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8(lean_object* v_b_3426_, lean_object* v___f_3427_, uint8_t v___x_3428_, lean_object* v_x_3429_){ +_start: +{ +if (lean_obj_tag(v_x_3429_) == 0) +{ +lean_object* v_a_3431_; lean_object* v___x_3433_; uint8_t v_isShared_3434_; uint8_t v_isSharedCheck_3439_; +lean_dec_ref(v___f_3427_); +lean_dec_ref(v_b_3426_); +v_a_3431_ = lean_ctor_get(v_x_3429_, 0); +v_isSharedCheck_3439_ = !lean_is_exclusive(v_x_3429_); +if (v_isSharedCheck_3439_ == 0) +{ +v___x_3433_ = v_x_3429_; +v_isShared_3434_ = v_isSharedCheck_3439_; +goto v_resetjp_3432_; +} +else +{ +lean_inc(v_a_3431_); +lean_dec(v_x_3429_); +v___x_3433_ = lean_box(0); +v_isShared_3434_ = v_isSharedCheck_3439_; +goto v_resetjp_3432_; +} +v_resetjp_3432_: +{ +lean_object* v___x_3436_; +if (v_isShared_3434_ == 0) +{ +v___x_3436_ = v___x_3433_; +goto v_reusejp_3435_; +} +else +{ +lean_object* v_reuseFailAlloc_3438_; +v_reuseFailAlloc_3438_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3438_, 0, v_a_3431_); +v___x_3436_ = v_reuseFailAlloc_3438_; +goto v_reusejp_3435_; +} +v_reusejp_3435_: +{ +lean_object* v___x_3437_; +v___x_3437_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3437_, 0, v___x_3436_); +return v___x_3437_; +} +} +} +else +{ +lean_object* v_machine_3440_; lean_object* v_requestStream_3441_; lean_object* v_keepAliveTimeout_3442_; lean_object* v_currentTimeout_3443_; lean_object* v_headerTimeout_3444_; lean_object* v_response_3445_; lean_object* v_respStream_3446_; lean_object* v_expectData_3447_; uint8_t v_handlerDispatched_3448_; lean_object* v___x_3449_; lean_object* v___x_3450_; lean_object* v___f_3451_; lean_object* v___f_3452_; lean_object* v___x_3453_; lean_object* v___f_3454_; lean_object* v___x_3455_; uint8_t v___x_3456_; lean_object* v___x_3457_; +lean_dec_ref(v_x_3429_); +v_machine_3440_ = lean_ctor_get(v_b_3426_, 0); +lean_inc_ref(v_machine_3440_); +v_requestStream_3441_ = lean_ctor_get(v_b_3426_, 1); +lean_inc_ref_n(v_requestStream_3441_, 3); +v_keepAliveTimeout_3442_ = lean_ctor_get(v_b_3426_, 2); +lean_inc(v_keepAliveTimeout_3442_); +v_currentTimeout_3443_ = lean_ctor_get(v_b_3426_, 3); +lean_inc(v_currentTimeout_3443_); +v_headerTimeout_3444_ = lean_ctor_get(v_b_3426_, 4); +lean_inc(v_headerTimeout_3444_); +v_response_3445_ = lean_ctor_get(v_b_3426_, 5); +lean_inc_ref(v_response_3445_); +v_respStream_3446_ = lean_ctor_get(v_b_3426_, 6); +lean_inc(v_respStream_3446_); +v_expectData_3447_ = lean_ctor_get(v_b_3426_, 7); +lean_inc(v_expectData_3447_); +v_handlerDispatched_3448_ = lean_ctor_get_uint8(v_b_3426_, sizeof(void*)*9 + 1); +lean_dec_ref(v_b_3426_); +v___x_3449_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_3441_, v___f_3427_); +v___x_3450_ = lean_box(v_handlerDispatched_3448_); +v___f_3451_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__5___boxed), 11, 9); +lean_closure_set(v___f_3451_, 0, v_machine_3440_); +lean_closure_set(v___f_3451_, 1, v_requestStream_3441_); +lean_closure_set(v___f_3451_, 2, v_keepAliveTimeout_3442_); +lean_closure_set(v___f_3451_, 3, v_currentTimeout_3443_); +lean_closure_set(v___f_3451_, 4, v_headerTimeout_3444_); +lean_closure_set(v___f_3451_, 5, v_response_3445_); +lean_closure_set(v___f_3451_, 6, v_respStream_3446_); +lean_closure_set(v___f_3451_, 7, v_expectData_3447_); +lean_closure_set(v___f_3451_, 8, v___x_3450_); +lean_inc_ref(v___f_3451_); +v___f_3452_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6___boxed), 3, 1); +lean_closure_set(v___f_3452_, 0, v___f_3451_); +v___x_3453_ = lean_box(v___x_3428_); +v___f_3454_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7___boxed), 6, 4); +lean_closure_set(v___f_3454_, 0, v___f_3451_); +lean_closure_set(v___f_3454_, 1, v___x_3453_); +lean_closure_set(v___f_3454_, 2, v_requestStream_3441_); +lean_closure_set(v___f_3454_, 3, v___f_3452_); +v___x_3455_ = lean_unsigned_to_nat(0u); +v___x_3456_ = 0; +v___x_3457_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3455_, v___x_3456_, v___x_3449_, v___f_3454_); +return v___x_3457_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8___boxed(lean_object* v_b_3458_, lean_object* v___f_3459_, lean_object* v___x_3460_, lean_object* v_x_3461_, lean_object* v___y_3462_){ +_start: +{ +uint8_t v___x_19611__boxed_3463_; lean_object* v_res_3464_; +v___x_19611__boxed_3463_ = lean_unbox(v___x_3460_); +v_res_3464_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8(v_b_3458_, v___f_3459_, v___x_19611__boxed_3463_, v_x_3461_); +return v_res_3464_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2(lean_object* v___x_3465_, lean_object* v_x_3466_){ +_start: +{ +if (lean_obj_tag(v_x_3466_) == 0) +{ +lean_object* v_a_3468_; lean_object* v___x_3470_; uint8_t v_isShared_3471_; uint8_t v_isSharedCheck_3476_; +lean_dec_ref(v___x_3465_); +v_a_3468_ = lean_ctor_get(v_x_3466_, 0); +v_isSharedCheck_3476_ = !lean_is_exclusive(v_x_3466_); +if (v_isSharedCheck_3476_ == 0) +{ +v___x_3470_ = v_x_3466_; +v_isShared_3471_ = v_isSharedCheck_3476_; +goto v_resetjp_3469_; +} +else +{ +lean_inc(v_a_3468_); +lean_dec(v_x_3466_); +v___x_3470_ = lean_box(0); +v_isShared_3471_ = v_isSharedCheck_3476_; +goto v_resetjp_3469_; +} +v_resetjp_3469_: +{ +lean_object* v___x_3473_; +if (v_isShared_3471_ == 0) +{ +v___x_3473_ = v___x_3470_; +goto v_reusejp_3472_; +} +else +{ +lean_object* v_reuseFailAlloc_3475_; +v_reuseFailAlloc_3475_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3475_, 0, v_a_3468_); +v___x_3473_ = v_reuseFailAlloc_3475_; +goto v_reusejp_3472_; +} +v_reusejp_3472_: +{ +lean_object* v___x_3474_; +v___x_3474_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3474_, 0, v___x_3473_); +return v___x_3474_; +} +} +} +else +{ +lean_object* v___x_3478_; uint8_t v_isShared_3479_; uint8_t v_isSharedCheck_3485_; +v_isSharedCheck_3485_ = !lean_is_exclusive(v_x_3466_); +if (v_isSharedCheck_3485_ == 0) +{ +lean_object* v_unused_3486_; +v_unused_3486_ = lean_ctor_get(v_x_3466_, 0); +lean_dec(v_unused_3486_); +v___x_3478_ = v_x_3466_; +v_isShared_3479_ = v_isSharedCheck_3485_; +goto v_resetjp_3477_; +} +else +{ +lean_dec(v_x_3466_); +v___x_3478_ = lean_box(0); +v_isShared_3479_ = v_isSharedCheck_3485_; +goto v_resetjp_3477_; +} +v_resetjp_3477_: +{ +lean_object* v___x_3480_; lean_object* v___x_3482_; +v___x_3480_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3480_, 0, v___x_3465_); +if (v_isShared_3479_ == 0) +{ +lean_ctor_set(v___x_3478_, 0, v___x_3480_); +v___x_3482_ = v___x_3478_; +goto v_reusejp_3481_; +} +else +{ +lean_object* v_reuseFailAlloc_3484_; +v_reuseFailAlloc_3484_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3484_, 0, v___x_3480_); +v___x_3482_ = v_reuseFailAlloc_3484_; +goto v_reusejp_3481_; +} +v_reusejp_3481_: +{ +lean_object* v___x_3483_; +v___x_3483_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3483_, 0, v___x_3482_); +return v___x_3483_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2___boxed(lean_object* v___x_3487_, lean_object* v_x_3488_, lean_object* v___y_3489_){ +_start: +{ +lean_object* v_res_3490_; +v_res_3490_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2(v___x_3487_, v_x_3488_); +return v_res_3490_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3(lean_object* v_x_3491_){ +_start: +{ +if (lean_obj_tag(v_x_3491_) == 0) +{ +lean_object* v_a_3493_; lean_object* v___x_3495_; uint8_t v_isShared_3496_; uint8_t v_isSharedCheck_3501_; +v_a_3493_ = lean_ctor_get(v_x_3491_, 0); +v_isSharedCheck_3501_ = !lean_is_exclusive(v_x_3491_); +if (v_isSharedCheck_3501_ == 0) +{ +v___x_3495_ = v_x_3491_; +v_isShared_3496_ = v_isSharedCheck_3501_; +goto v_resetjp_3494_; +} +else +{ +lean_inc(v_a_3493_); +lean_dec(v_x_3491_); +v___x_3495_ = lean_box(0); +v_isShared_3496_ = v_isSharedCheck_3501_; +goto v_resetjp_3494_; +} +v_resetjp_3494_: +{ +lean_object* v___x_3498_; +if (v_isShared_3496_ == 0) +{ +v___x_3498_ = v___x_3495_; +goto v_reusejp_3497_; +} +else +{ +lean_object* v_reuseFailAlloc_3500_; +v_reuseFailAlloc_3500_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3500_, 0, v_a_3493_); +v___x_3498_ = v_reuseFailAlloc_3500_; +goto v_reusejp_3497_; +} +v_reusejp_3497_: +{ +lean_object* v___x_3499_; +v___x_3499_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3499_, 0, v___x_3498_); +return v___x_3499_; +} +} +} +else +{ +lean_object* v_a_3502_; lean_object* v___x_3504_; uint8_t v_isShared_3505_; uint8_t v_isSharedCheck_3512_; +v_a_3502_ = lean_ctor_get(v_x_3491_, 0); +v_isSharedCheck_3512_ = !lean_is_exclusive(v_x_3491_); +if (v_isSharedCheck_3512_ == 0) +{ +v___x_3504_ = v_x_3491_; +v_isShared_3505_ = v_isSharedCheck_3512_; +goto v_resetjp_3503_; +} +else +{ +lean_inc(v_a_3502_); +lean_dec(v_x_3491_); +v___x_3504_ = lean_box(0); +v_isShared_3505_ = v_isSharedCheck_3512_; +goto v_resetjp_3503_; +} +v_resetjp_3503_: +{ +uint8_t v_closed_3506_; lean_object* v___x_3507_; lean_object* v___x_3509_; +v_closed_3506_ = lean_ctor_get_uint8(v_a_3502_, sizeof(void*)*5); +lean_dec(v_a_3502_); +v___x_3507_ = lean_box(v_closed_3506_); +if (v_isShared_3505_ == 0) +{ +lean_ctor_set(v___x_3504_, 0, v___x_3507_); +v___x_3509_ = v___x_3504_; +goto v_reusejp_3508_; +} +else +{ +lean_object* v_reuseFailAlloc_3511_; +v_reuseFailAlloc_3511_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3511_, 0, v___x_3507_); +v___x_3509_ = v_reuseFailAlloc_3511_; +goto v_reusejp_3508_; +} +v_reusejp_3508_: +{ +lean_object* v___x_3510_; +v___x_3510_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3510_, 0, v___x_3509_); +return v___x_3510_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3___boxed(lean_object* v_x_3513_, lean_object* v___y_3514_){ +_start: +{ +lean_object* v_res_3515_; +v_res_3515_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__3(v_x_3513_); +return v_res_3515_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__18(lean_object* v_requestStream_3516_, lean_object* v_keepAliveTimeout_3517_, lean_object* v_currentTimeout_3518_, lean_object* v_headerTimeout_3519_, lean_object* v_response_3520_, lean_object* v_respStream_3521_, uint8_t v_requiresData_3522_, lean_object* v_expectData_3523_, uint8_t v_handlerDispatched_3524_, lean_object* v_pendingHead_3525_, lean_object* v_x_3526_){ +_start: +{ +if (lean_obj_tag(v_x_3526_) == 0) +{ +lean_object* v_a_3528_; lean_object* v___x_3530_; uint8_t v_isShared_3531_; uint8_t v_isSharedCheck_3536_; +lean_dec(v_pendingHead_3525_); +lean_dec(v_expectData_3523_); +lean_dec(v_respStream_3521_); +lean_dec_ref(v_response_3520_); +lean_dec(v_headerTimeout_3519_); +lean_dec(v_currentTimeout_3518_); +lean_dec(v_keepAliveTimeout_3517_); +lean_dec_ref(v_requestStream_3516_); +v_a_3528_ = lean_ctor_get(v_x_3526_, 0); +v_isSharedCheck_3536_ = !lean_is_exclusive(v_x_3526_); +if (v_isSharedCheck_3536_ == 0) +{ +v___x_3530_ = v_x_3526_; +v_isShared_3531_ = v_isSharedCheck_3536_; +goto v_resetjp_3529_; +} +else +{ +lean_inc(v_a_3528_); +lean_dec(v_x_3526_); +v___x_3530_ = lean_box(0); +v_isShared_3531_ = v_isSharedCheck_3536_; +goto v_resetjp_3529_; +} +v_resetjp_3529_: +{ +lean_object* v___x_3533_; +if (v_isShared_3531_ == 0) +{ +v___x_3533_ = v___x_3530_; +goto v_reusejp_3532_; +} +else +{ +lean_object* v_reuseFailAlloc_3535_; +v_reuseFailAlloc_3535_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3535_, 0, v_a_3528_); +v___x_3533_ = v_reuseFailAlloc_3535_; +goto v_reusejp_3532_; +} +v_reusejp_3532_: +{ +lean_object* v___x_3534_; +v___x_3534_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3534_, 0, v___x_3533_); +return v___x_3534_; +} +} +} +else +{ +lean_object* v_a_3537_; lean_object* v___x_3539_; uint8_t v_isShared_3540_; uint8_t v_isSharedCheck_3558_; +v_a_3537_ = lean_ctor_get(v_x_3526_, 0); +v_isSharedCheck_3558_ = !lean_is_exclusive(v_x_3526_); +if (v_isSharedCheck_3558_ == 0) +{ +v___x_3539_ = v_x_3526_; +v_isShared_3540_ = v_isSharedCheck_3558_; +goto v_resetjp_3538_; +} +else +{ +lean_inc(v_a_3537_); +lean_dec(v_x_3526_); +v___x_3539_ = lean_box(0); +v_isShared_3540_ = v_isSharedCheck_3558_; +goto v_resetjp_3538_; +} +v_resetjp_3538_: +{ +lean_object* v_snd_3541_; uint8_t v___x_3542_; +v_snd_3541_ = lean_ctor_get(v_a_3537_, 1); +v___x_3542_ = lean_unbox(v_snd_3541_); +if (v___x_3542_ == 0) +{ +lean_object* v_fst_3543_; lean_object* v___x_3544_; lean_object* v___x_3545_; lean_object* v___x_3547_; +v_fst_3543_ = lean_ctor_get(v_a_3537_, 0); +lean_inc(v_fst_3543_); +lean_dec(v_a_3537_); +v___x_3544_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3544_, 0, v_fst_3543_); +lean_ctor_set(v___x_3544_, 1, v_requestStream_3516_); +lean_ctor_set(v___x_3544_, 2, v_keepAliveTimeout_3517_); +lean_ctor_set(v___x_3544_, 3, v_currentTimeout_3518_); +lean_ctor_set(v___x_3544_, 4, v_headerTimeout_3519_); +lean_ctor_set(v___x_3544_, 5, v_response_3520_); +lean_ctor_set(v___x_3544_, 6, v_respStream_3521_); +lean_ctor_set(v___x_3544_, 7, v_expectData_3523_); +lean_ctor_set(v___x_3544_, 8, v_pendingHead_3525_); +lean_ctor_set_uint8(v___x_3544_, sizeof(void*)*9, v_requiresData_3522_); +lean_ctor_set_uint8(v___x_3544_, sizeof(void*)*9 + 1, v_handlerDispatched_3524_); +v___x_3545_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3545_, 0, v___x_3544_); +if (v_isShared_3540_ == 0) +{ +lean_ctor_set(v___x_3539_, 0, v___x_3545_); +v___x_3547_ = v___x_3539_; +goto v_reusejp_3546_; +} +else +{ +lean_object* v_reuseFailAlloc_3549_; +v_reuseFailAlloc_3549_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3549_, 0, v___x_3545_); +v___x_3547_ = v_reuseFailAlloc_3549_; +goto v_reusejp_3546_; +} +v_reusejp_3546_: +{ +lean_object* v___x_3548_; +v___x_3548_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3548_, 0, v___x_3547_); +return v___x_3548_; +} +} +else +{ +lean_object* v_fst_3550_; lean_object* v___x_3551_; lean_object* v___x_3552_; lean_object* v___x_3553_; lean_object* v___x_3555_; +lean_dec(v_pendingHead_3525_); +v_fst_3550_ = lean_ctor_get(v_a_3537_, 0); +lean_inc(v_fst_3550_); +lean_dec(v_a_3537_); +v___x_3551_ = lean_box(0); +v___x_3552_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3552_, 0, v_fst_3550_); +lean_ctor_set(v___x_3552_, 1, v_requestStream_3516_); +lean_ctor_set(v___x_3552_, 2, v_keepAliveTimeout_3517_); +lean_ctor_set(v___x_3552_, 3, v_currentTimeout_3518_); +lean_ctor_set(v___x_3552_, 4, v_headerTimeout_3519_); +lean_ctor_set(v___x_3552_, 5, v_response_3520_); +lean_ctor_set(v___x_3552_, 6, v_respStream_3521_); +lean_ctor_set(v___x_3552_, 7, v_expectData_3523_); +lean_ctor_set(v___x_3552_, 8, v___x_3551_); +lean_ctor_set_uint8(v___x_3552_, sizeof(void*)*9, v_requiresData_3522_); +lean_ctor_set_uint8(v___x_3552_, sizeof(void*)*9 + 1, v_handlerDispatched_3524_); +v___x_3553_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3553_, 0, v___x_3552_); +if (v_isShared_3540_ == 0) +{ +lean_ctor_set(v___x_3539_, 0, v___x_3553_); +v___x_3555_ = v___x_3539_; +goto v_reusejp_3554_; +} +else +{ +lean_object* v_reuseFailAlloc_3557_; +v_reuseFailAlloc_3557_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3557_, 0, v___x_3553_); +v___x_3555_ = v_reuseFailAlloc_3557_; +goto v_reusejp_3554_; +} +v_reusejp_3554_: +{ +lean_object* v___x_3556_; +v___x_3556_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3556_, 0, v___x_3555_); +return v___x_3556_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__18___boxed(lean_object* v_requestStream_3559_, lean_object* v_keepAliveTimeout_3560_, lean_object* v_currentTimeout_3561_, lean_object* v_headerTimeout_3562_, lean_object* v_response_3563_, lean_object* v_respStream_3564_, lean_object* v_requiresData_3565_, lean_object* v_expectData_3566_, lean_object* v_handlerDispatched_3567_, lean_object* v_pendingHead_3568_, lean_object* v_x_3569_, lean_object* v___y_3570_){ +_start: +{ +uint8_t v_requiresData_boxed_3571_; uint8_t v_handlerDispatched_boxed_3572_; lean_object* v_res_3573_; +v_requiresData_boxed_3571_ = lean_unbox(v_requiresData_3565_); +v_handlerDispatched_boxed_3572_ = lean_unbox(v_handlerDispatched_3567_); +v_res_3573_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__18(v_requestStream_3559_, v_keepAliveTimeout_3560_, v_currentTimeout_3561_, v_headerTimeout_3562_, v_response_3563_, v_respStream_3564_, v_requiresData_boxed_3571_, v_expectData_3566_, v_handlerDispatched_boxed_3572_, v_pendingHead_3568_, v_x_3569_); +return v_res_3573_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11(lean_object* v_b_3574_, lean_object* v_x_3575_){ +_start: +{ +if (lean_obj_tag(v_x_3575_) == 0) +{ +lean_object* v_a_3577_; lean_object* v___x_3579_; uint8_t v_isShared_3580_; uint8_t v_isSharedCheck_3585_; +lean_dec_ref(v_b_3574_); +v_a_3577_ = lean_ctor_get(v_x_3575_, 0); +v_isSharedCheck_3585_ = !lean_is_exclusive(v_x_3575_); +if (v_isSharedCheck_3585_ == 0) +{ +v___x_3579_ = v_x_3575_; +v_isShared_3580_ = v_isSharedCheck_3585_; +goto v_resetjp_3578_; +} +else +{ +lean_inc(v_a_3577_); +lean_dec(v_x_3575_); +v___x_3579_ = lean_box(0); +v_isShared_3580_ = v_isSharedCheck_3585_; +goto v_resetjp_3578_; +} +v_resetjp_3578_: +{ +lean_object* v___x_3582_; +if (v_isShared_3580_ == 0) +{ +v___x_3582_ = v___x_3579_; +goto v_reusejp_3581_; +} +else +{ +lean_object* v_reuseFailAlloc_3584_; +v_reuseFailAlloc_3584_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3584_, 0, v_a_3577_); +v___x_3582_ = v_reuseFailAlloc_3584_; +goto v_reusejp_3581_; +} +v_reusejp_3581_: +{ +lean_object* v___x_3583_; +v___x_3583_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3583_, 0, v___x_3582_); +return v___x_3583_; +} +} +} +else +{ +lean_object* v___x_3587_; uint8_t v_isShared_3588_; uint8_t v_isSharedCheck_3594_; +v_isSharedCheck_3594_ = !lean_is_exclusive(v_x_3575_); +if (v_isSharedCheck_3594_ == 0) +{ +lean_object* v_unused_3595_; +v_unused_3595_ = lean_ctor_get(v_x_3575_, 0); +lean_dec(v_unused_3595_); +v___x_3587_ = v_x_3575_; +v_isShared_3588_ = v_isSharedCheck_3594_; +goto v_resetjp_3586_; +} +else +{ +lean_dec(v_x_3575_); +v___x_3587_ = lean_box(0); +v_isShared_3588_ = v_isSharedCheck_3594_; +goto v_resetjp_3586_; +} +v_resetjp_3586_: +{ +lean_object* v___x_3589_; lean_object* v___x_3591_; +v___x_3589_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3589_, 0, v_b_3574_); +if (v_isShared_3588_ == 0) +{ +lean_ctor_set(v___x_3587_, 0, v___x_3589_); +v___x_3591_ = v___x_3587_; +goto v_reusejp_3590_; +} +else +{ +lean_object* v_reuseFailAlloc_3593_; +v_reuseFailAlloc_3593_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3593_, 0, v___x_3589_); +v___x_3591_ = v_reuseFailAlloc_3593_; +goto v_reusejp_3590_; +} +v_reusejp_3590_: +{ +lean_object* v___x_3592_; +v___x_3592_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3592_, 0, v___x_3591_); +return v___x_3592_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11___boxed(lean_object* v_b_3596_, lean_object* v_x_3597_, lean_object* v___y_3598_){ +_start: +{ +lean_object* v_res_3599_; +v_res_3599_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11(v_b_3596_, v_x_3597_); +return v_res_3599_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13(lean_object* v_config_3600_, lean_object* v_machine_3601_, lean_object* v_a_3602_, uint8_t v_requiresData_3603_, lean_object* v_expectData_3604_, lean_object* v_pendingHead_3605_, lean_object* v_x_3606_){ +_start: +{ +if (lean_obj_tag(v_x_3606_) == 0) +{ +lean_object* v_a_3608_; lean_object* v___x_3610_; uint8_t v_isShared_3611_; uint8_t v_isSharedCheck_3616_; +lean_dec(v_pendingHead_3605_); +lean_dec(v_expectData_3604_); +lean_dec_ref(v_a_3602_); +lean_dec_ref(v_machine_3601_); +v_a_3608_ = lean_ctor_get(v_x_3606_, 0); +v_isSharedCheck_3616_ = !lean_is_exclusive(v_x_3606_); +if (v_isSharedCheck_3616_ == 0) +{ +v___x_3610_ = v_x_3606_; +v_isShared_3611_ = v_isSharedCheck_3616_; +goto v_resetjp_3609_; +} +else +{ +lean_inc(v_a_3608_); +lean_dec(v_x_3606_); +v___x_3610_ = lean_box(0); +v_isShared_3611_ = v_isSharedCheck_3616_; +goto v_resetjp_3609_; +} +v_resetjp_3609_: +{ +lean_object* v___x_3613_; +if (v_isShared_3611_ == 0) +{ +v___x_3613_ = v___x_3610_; +goto v_reusejp_3612_; +} +else +{ +lean_object* v_reuseFailAlloc_3615_; +v_reuseFailAlloc_3615_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3615_, 0, v_a_3608_); +v___x_3613_ = v_reuseFailAlloc_3615_; +goto v_reusejp_3612_; +} +v_reusejp_3612_: +{ +lean_object* v___x_3614_; +v___x_3614_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3614_, 0, v___x_3613_); +return v___x_3614_; +} +} +} +else +{ +lean_object* v_a_3617_; lean_object* v___x_3619_; uint8_t v_isShared_3620_; uint8_t v_isSharedCheck_3631_; +v_a_3617_ = lean_ctor_get(v_x_3606_, 0); +v_isSharedCheck_3631_ = !lean_is_exclusive(v_x_3606_); +if (v_isSharedCheck_3631_ == 0) +{ +v___x_3619_ = v_x_3606_; +v_isShared_3620_ = v_isSharedCheck_3631_; +goto v_resetjp_3618_; +} +else +{ +lean_inc(v_a_3617_); +lean_dec(v_x_3606_); +v___x_3619_ = lean_box(0); +v_isShared_3620_ = v_isSharedCheck_3631_; +goto v_resetjp_3618_; +} +v_resetjp_3618_: +{ +lean_object* v_keepAliveTimeout_3621_; lean_object* v___x_3622_; lean_object* v___x_3623_; uint8_t v___x_3624_; lean_object* v___x_3625_; lean_object* v___x_3626_; lean_object* v___x_3628_; +v_keepAliveTimeout_3621_ = lean_ctor_get(v_config_3600_, 5); +lean_inc_n(v_keepAliveTimeout_3621_, 2); +v___x_3622_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3622_, 0, v_keepAliveTimeout_3621_); +v___x_3623_ = lean_box(0); +v___x_3624_ = 0; +v___x_3625_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_3625_, 0, v_machine_3601_); +lean_ctor_set(v___x_3625_, 1, v_a_3602_); +lean_ctor_set(v___x_3625_, 2, v___x_3622_); +lean_ctor_set(v___x_3625_, 3, v_keepAliveTimeout_3621_); +lean_ctor_set(v___x_3625_, 4, v___x_3623_); +lean_ctor_set(v___x_3625_, 5, v_a_3617_); +lean_ctor_set(v___x_3625_, 6, v___x_3623_); +lean_ctor_set(v___x_3625_, 7, v_expectData_3604_); +lean_ctor_set(v___x_3625_, 8, v_pendingHead_3605_); +lean_ctor_set_uint8(v___x_3625_, sizeof(void*)*9, v_requiresData_3603_); +lean_ctor_set_uint8(v___x_3625_, sizeof(void*)*9 + 1, v___x_3624_); +v___x_3626_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3626_, 0, v___x_3625_); +if (v_isShared_3620_ == 0) +{ +lean_ctor_set(v___x_3619_, 0, v___x_3626_); +v___x_3628_ = v___x_3619_; +goto v_reusejp_3627_; +} +else +{ +lean_object* v_reuseFailAlloc_3630_; +v_reuseFailAlloc_3630_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3630_, 0, v___x_3626_); +v___x_3628_ = v_reuseFailAlloc_3630_; +goto v_reusejp_3627_; +} +v_reusejp_3627_: +{ +lean_object* v___x_3629_; +v___x_3629_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3629_, 0, v___x_3628_); +return v___x_3629_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13___boxed(lean_object* v_config_3632_, lean_object* v_machine_3633_, lean_object* v_a_3634_, lean_object* v_requiresData_3635_, lean_object* v_expectData_3636_, lean_object* v_pendingHead_3637_, lean_object* v_x_3638_, lean_object* v___y_3639_){ +_start: +{ +uint8_t v_requiresData_boxed_3640_; lean_object* v_res_3641_; +v_requiresData_boxed_3640_ = lean_unbox(v_requiresData_3635_); +v_res_3641_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13(v_config_3632_, v_machine_3633_, v_a_3634_, v_requiresData_boxed_3640_, v_expectData_3636_, v_pendingHead_3637_, v_x_3638_); +lean_dec_ref(v_config_3632_); +return v_res_3641_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10(lean_object* v_config_3642_, lean_object* v_machine_3643_, uint8_t v_requiresData_3644_, lean_object* v_expectData_3645_, lean_object* v_pendingHead_3646_, lean_object* v_x_3647_){ +_start: +{ +if (lean_obj_tag(v_x_3647_) == 0) +{ +lean_object* v_a_3649_; lean_object* v___x_3651_; uint8_t v_isShared_3652_; uint8_t v_isSharedCheck_3657_; +lean_dec(v_pendingHead_3646_); +lean_dec(v_expectData_3645_); +lean_dec_ref(v_machine_3643_); +lean_dec_ref(v_config_3642_); +v_a_3649_ = lean_ctor_get(v_x_3647_, 0); +v_isSharedCheck_3657_ = !lean_is_exclusive(v_x_3647_); +if (v_isSharedCheck_3657_ == 0) +{ +v___x_3651_ = v_x_3647_; +v_isShared_3652_ = v_isSharedCheck_3657_; +goto v_resetjp_3650_; +} +else +{ +lean_inc(v_a_3649_); +lean_dec(v_x_3647_); +v___x_3651_ = lean_box(0); +v_isShared_3652_ = v_isSharedCheck_3657_; +goto v_resetjp_3650_; +} +v_resetjp_3650_: +{ +lean_object* v___x_3654_; +if (v_isShared_3652_ == 0) +{ +v___x_3654_ = v___x_3651_; +goto v_reusejp_3653_; +} +else +{ +lean_object* v_reuseFailAlloc_3656_; +v_reuseFailAlloc_3656_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3656_, 0, v_a_3649_); +v___x_3654_ = v_reuseFailAlloc_3656_; +goto v_reusejp_3653_; +} +v_reusejp_3653_: +{ +lean_object* v___x_3655_; +v___x_3655_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3655_, 0, v___x_3654_); +return v___x_3655_; +} +} +} +else +{ +lean_object* v_a_3658_; lean_object* v___x_3660_; uint8_t v_isShared_3661_; uint8_t v_isSharedCheck_3673_; +v_a_3658_ = lean_ctor_get(v_x_3647_, 0); +v_isSharedCheck_3673_ = !lean_is_exclusive(v_x_3647_); +if (v_isSharedCheck_3673_ == 0) +{ +v___x_3660_ = v_x_3647_; +v_isShared_3661_ = v_isSharedCheck_3673_; +goto v_resetjp_3659_; +} +else +{ +lean_inc(v_a_3658_); +lean_dec(v_x_3647_); +v___x_3660_ = lean_box(0); +v_isShared_3661_ = v_isSharedCheck_3673_; +goto v_resetjp_3659_; +} +v_resetjp_3659_: +{ +lean_object* v___x_3662_; lean_object* v___x_3663_; lean_object* v___x_3664_; lean_object* v___f_3665_; lean_object* v___x_3667_; +v___x_3662_ = lean_box(0); +v___x_3663_ = l_Std_CloseableChannel_new___redArg(v___x_3662_); +v___x_3664_ = lean_box(v_requiresData_3644_); +v___f_3665_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__13___boxed), 8, 6); +lean_closure_set(v___f_3665_, 0, v_config_3642_); +lean_closure_set(v___f_3665_, 1, v_machine_3643_); +lean_closure_set(v___f_3665_, 2, v_a_3658_); +lean_closure_set(v___f_3665_, 3, v___x_3664_); +lean_closure_set(v___f_3665_, 4, v_expectData_3645_); +lean_closure_set(v___f_3665_, 5, v_pendingHead_3646_); +if (v_isShared_3661_ == 0) +{ +lean_ctor_set(v___x_3660_, 0, v___x_3663_); +v___x_3667_ = v___x_3660_; +goto v_reusejp_3666_; +} +else +{ +lean_object* v_reuseFailAlloc_3672_; +v_reuseFailAlloc_3672_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3672_, 0, v___x_3663_); +v___x_3667_ = v_reuseFailAlloc_3672_; +goto v_reusejp_3666_; +} +v_reusejp_3666_: +{ +lean_object* v___x_3668_; lean_object* v___x_3669_; uint8_t v___x_3670_; lean_object* v___x_3671_; +v___x_3668_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3668_, 0, v___x_3667_); +v___x_3669_ = lean_unsigned_to_nat(0u); +v___x_3670_ = 0; +v___x_3671_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3669_, v___x_3670_, v___x_3668_, v___f_3665_); +return v___x_3671_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10___boxed(lean_object* v_config_3674_, lean_object* v_machine_3675_, lean_object* v_requiresData_3676_, lean_object* v_expectData_3677_, lean_object* v_pendingHead_3678_, lean_object* v_x_3679_, lean_object* v___y_3680_){ +_start: +{ +uint8_t v_requiresData_boxed_3681_; lean_object* v_res_3682_; +v_requiresData_boxed_3681_ = lean_unbox(v_requiresData_3676_); +v_res_3682_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10(v_config_3674_, v_machine_3675_, v_requiresData_boxed_3681_, v_expectData_3677_, v_pendingHead_3678_, v_x_3679_); +return v_res_3682_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1(lean_object* v___x_3683_, lean_object* v___y_3684_){ +_start: +{ +lean_object* v___x_3686_; lean_object* v_pendingProducer_3687_; lean_object* v_pendingConsumer_3688_; lean_object* v_interestWaiter_3689_; uint8_t v_closed_3690_; lean_object* v_pendingIncompleteChunk_3691_; lean_object* v___x_3693_; uint8_t v_isShared_3694_; uint8_t v_isSharedCheck_3700_; +v___x_3686_ = lean_st_ref_take(v___y_3684_); +v_pendingProducer_3687_ = lean_ctor_get(v___x_3686_, 0); +v_pendingConsumer_3688_ = lean_ctor_get(v___x_3686_, 1); +v_interestWaiter_3689_ = lean_ctor_get(v___x_3686_, 2); +v_closed_3690_ = lean_ctor_get_uint8(v___x_3686_, sizeof(void*)*5); +v_pendingIncompleteChunk_3691_ = lean_ctor_get(v___x_3686_, 4); +v_isSharedCheck_3700_ = !lean_is_exclusive(v___x_3686_); +if (v_isSharedCheck_3700_ == 0) +{ +lean_object* v_unused_3701_; +v_unused_3701_ = lean_ctor_get(v___x_3686_, 3); +lean_dec(v_unused_3701_); +v___x_3693_ = v___x_3686_; +v_isShared_3694_ = v_isSharedCheck_3700_; +goto v_resetjp_3692_; +} +else +{ +lean_inc(v_pendingIncompleteChunk_3691_); +lean_inc(v_interestWaiter_3689_); +lean_inc(v_pendingConsumer_3688_); +lean_inc(v_pendingProducer_3687_); +lean_dec(v___x_3686_); +v___x_3693_ = lean_box(0); +v_isShared_3694_ = v_isSharedCheck_3700_; +goto v_resetjp_3692_; +} +v_resetjp_3692_: +{ +lean_object* v___x_3696_; +if (v_isShared_3694_ == 0) +{ +lean_ctor_set(v___x_3693_, 3, v___x_3683_); +v___x_3696_ = v___x_3693_; +goto v_reusejp_3695_; +} +else +{ +lean_object* v_reuseFailAlloc_3699_; +v_reuseFailAlloc_3699_ = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(v_reuseFailAlloc_3699_, 0, v_pendingProducer_3687_); +lean_ctor_set(v_reuseFailAlloc_3699_, 1, v_pendingConsumer_3688_); +lean_ctor_set(v_reuseFailAlloc_3699_, 2, v_interestWaiter_3689_); +lean_ctor_set(v_reuseFailAlloc_3699_, 3, v___x_3683_); +lean_ctor_set(v_reuseFailAlloc_3699_, 4, v_pendingIncompleteChunk_3691_); +lean_ctor_set_uint8(v_reuseFailAlloc_3699_, sizeof(void*)*5, v_closed_3690_); +v___x_3696_ = v_reuseFailAlloc_3699_; +goto v_reusejp_3695_; +} +v_reusejp_3695_: +{ +lean_object* v___x_3697_; lean_object* v___x_3698_; +v___x_3697_ = lean_st_ref_set(v___y_3684_, v___x_3696_); +v___x_3698_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +return v___x_3698_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1___boxed(lean_object* v___x_3702_, lean_object* v___y_3703_, lean_object* v___y_3704_){ +_start: +{ +lean_object* v_res_3705_; +v_res_3705_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1(v___x_3702_, v___y_3703_); +lean_dec(v___y_3703_); +return v_res_3705_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15(lean_object* v___f_3706_, uint8_t v___x_3707_, lean_object* v_close_3708_, lean_object* v___f_3709_, lean_object* v_x_3710_){ +_start: +{ +if (lean_obj_tag(v_x_3710_) == 0) +{ +lean_object* v_a_3715_; lean_object* v___x_3717_; uint8_t v_isShared_3718_; uint8_t v_isSharedCheck_3723_; +lean_dec_ref(v___f_3709_); +lean_dec_ref(v_close_3708_); +lean_dec_ref(v___f_3706_); +v_a_3715_ = lean_ctor_get(v_x_3710_, 0); +v_isSharedCheck_3723_ = !lean_is_exclusive(v_x_3710_); +if (v_isSharedCheck_3723_ == 0) +{ +v___x_3717_ = v_x_3710_; +v_isShared_3718_ = v_isSharedCheck_3723_; +goto v_resetjp_3716_; +} +else +{ +lean_inc(v_a_3715_); +lean_dec(v_x_3710_); +v___x_3717_ = lean_box(0); +v_isShared_3718_ = v_isSharedCheck_3723_; +goto v_resetjp_3716_; +} +v_resetjp_3716_: +{ +lean_object* v___x_3720_; +if (v_isShared_3718_ == 0) +{ +v___x_3720_ = v___x_3717_; +goto v_reusejp_3719_; +} +else +{ +lean_object* v_reuseFailAlloc_3722_; +v_reuseFailAlloc_3722_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3722_, 0, v_a_3715_); +v___x_3720_ = v_reuseFailAlloc_3722_; +goto v_reusejp_3719_; +} +v_reusejp_3719_: +{ +lean_object* v___x_3721_; +v___x_3721_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3721_, 0, v___x_3720_); +return v___x_3721_; +} +} +} +else +{ +lean_object* v_a_3724_; uint8_t v___x_3725_; +v_a_3724_ = lean_ctor_get(v_x_3710_, 0); +lean_inc(v_a_3724_); +lean_dec_ref(v_x_3710_); +v___x_3725_ = lean_unbox(v_a_3724_); +if (v___x_3725_ == 0) +{ +if (v___x_3707_ == 0) +{ +lean_dec(v_a_3724_); +lean_dec_ref(v___f_3709_); +lean_dec_ref(v_close_3708_); +goto v___jp_3712_; +} +else +{ +lean_object* v___x_3726_; lean_object* v___x_3727_; uint8_t v___x_3728_; lean_object* v___x_3729_; +lean_dec_ref(v___f_3706_); +v___x_3726_ = lean_apply_1(v_close_3708_, lean_box(0)); +v___x_3727_ = lean_unsigned_to_nat(0u); +v___x_3728_ = lean_unbox(v_a_3724_); +lean_dec(v_a_3724_); +v___x_3729_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3727_, v___x_3728_, v___x_3726_, v___f_3709_); +return v___x_3729_; +} +} +else +{ +lean_dec(v_a_3724_); +lean_dec_ref(v___f_3709_); +lean_dec_ref(v_close_3708_); +goto v___jp_3712_; +} +} +v___jp_3712_: +{ +lean_object* v___x_3713_; lean_object* v___x_3714_; +v___x_3713_ = lean_box(0); +v___x_3714_ = lean_apply_2(v___f_3706_, v___x_3713_, lean_box(0)); +return v___x_3714_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15___boxed(lean_object* v___f_3730_, lean_object* v___x_3731_, lean_object* v_close_3732_, lean_object* v___f_3733_, lean_object* v_x_3734_, lean_object* v___y_3735_){ +_start: +{ +uint8_t v___x_20012__boxed_3736_; lean_object* v_res_3737_; +v___x_20012__boxed_3736_ = lean_unbox(v___x_3731_); +v_res_3737_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15(v___f_3730_, v___x_20012__boxed_3736_, v_close_3732_, v___f_3733_, v_x_3734_); +return v_res_3737_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14(lean_object* v_respStream_3738_, lean_object* v___f_3739_, uint8_t v___x_3740_, lean_object* v___f_3741_, lean_object* v_____r_3742_){ +_start: +{ +if (lean_obj_tag(v_respStream_3738_) == 1) +{ +lean_object* v_val_3744_; lean_object* v_close_3745_; lean_object* v_isClosed_3746_; lean_object* v___x_3747_; lean_object* v___x_3748_; lean_object* v___f_3749_; lean_object* v___x_3750_; uint8_t v___x_3751_; lean_object* v___x_3752_; +v_val_3744_ = lean_ctor_get(v_respStream_3738_, 0); +lean_inc(v_val_3744_); +lean_dec_ref(v_respStream_3738_); +v_close_3745_ = lean_ctor_get(v_val_3744_, 1); +lean_inc_ref(v_close_3745_); +v_isClosed_3746_ = lean_ctor_get(v_val_3744_, 2); +lean_inc_ref(v_isClosed_3746_); +lean_dec(v_val_3744_); +v___x_3747_ = lean_apply_1(v_isClosed_3746_, lean_box(0)); +v___x_3748_ = lean_box(v___x_3740_); +v___f_3749_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__15___boxed), 6, 4); +lean_closure_set(v___f_3749_, 0, v___f_3739_); +lean_closure_set(v___f_3749_, 1, v___x_3748_); +lean_closure_set(v___f_3749_, 2, v_close_3745_); +lean_closure_set(v___f_3749_, 3, v___f_3741_); +v___x_3750_ = lean_unsigned_to_nat(0u); +v___x_3751_ = 0; +v___x_3752_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3750_, v___x_3751_, v___x_3747_, v___f_3749_); +return v___x_3752_; +} +else +{ +lean_object* v___x_3753_; lean_object* v___x_3754_; +lean_dec_ref(v___f_3741_); +lean_dec(v_respStream_3738_); +v___x_3753_ = lean_box(0); +v___x_3754_ = lean_apply_2(v___f_3739_, v___x_3753_, lean_box(0)); +return v___x_3754_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14___boxed(lean_object* v_respStream_3755_, lean_object* v___f_3756_, lean_object* v___x_3757_, lean_object* v___f_3758_, lean_object* v_____r_3759_, lean_object* v___y_3760_){ +_start: +{ +uint8_t v___x_20063__boxed_3761_; lean_object* v_res_3762_; +v___x_20063__boxed_3761_ = lean_unbox(v___x_3757_); +v_res_3762_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14(v_respStream_3755_, v___f_3756_, v___x_20063__boxed_3761_, v___f_3758_, v_____r_3759_); +return v_res_3762_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4(lean_object* v___f_3763_, lean_object* v___y_3764_){ +_start: +{ +lean_object* v___x_3766_; lean_object* v___x_3767_; lean_object* v___x_3768_; lean_object* v___x_3769_; uint8_t v___x_3770_; lean_object* v___x_3771_; +v___x_3766_ = lean_st_ref_get(v___y_3764_); +v___x_3767_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3767_, 0, v___x_3766_); +v___x_3768_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3768_, 0, v___x_3767_); +v___x_3769_ = lean_unsigned_to_nat(0u); +v___x_3770_ = 0; +v___x_3771_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3769_, v___x_3770_, v___x_3768_, v___f_3763_); +return v___x_3771_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4___boxed(lean_object* v___f_3772_, lean_object* v___y_3773_, lean_object* v___y_3774_){ +_start: +{ +lean_object* v_res_3775_; +v_res_3775_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__4(v___f_3772_, v___y_3773_); +lean_dec(v___y_3773_); +return v_res_3775_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0___boxed(lean_object* v_i_3776_, lean_object* v_config_3777_, lean_object* v_handler_3778_, lean_object* v_connectionContext_3779_, lean_object* v_as_3780_, lean_object* v_sz_3781_, lean_object* v_x_3782_, lean_object* v___y_3783_){ +_start: +{ +size_t v_i_boxed_3784_; size_t v_sz_boxed_3785_; lean_object* v_res_3786_; +v_i_boxed_3784_ = lean_unbox_usize(v_i_3776_); +lean_dec(v_i_3776_); +v_sz_boxed_3785_ = lean_unbox_usize(v_sz_3781_); +lean_dec(v_sz_3781_); +v_res_3786_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0(v_i_boxed_3784_, v_config_3777_, v_handler_3778_, v_connectionContext_3779_, v_as_3780_, v_sz_boxed_3785_, v_x_3782_); +return v_res_3786_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12(lean_object* v_config_3790_, lean_object* v_handler_3791_, lean_object* v_connectionContext_3792_, lean_object* v_as_3793_, size_t v_sz_3794_, size_t v_i_3795_, lean_object* v_b_3796_){ +_start: +{ +uint8_t v___x_3798_; +v___x_3798_ = lean_usize_dec_lt(v_i_3795_, v_sz_3794_); +if (v___x_3798_ == 0) +{ +lean_object* v___x_3799_; lean_object* v___x_3800_; +lean_dec_ref(v_as_3793_); +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_handler_3791_); +lean_dec_ref(v_config_3790_); +v___x_3799_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3799_, 0, v_b_3796_); +v___x_3800_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3800_, 0, v___x_3799_); +return v___x_3800_; +} +else +{ +lean_object* v___x_3801_; lean_object* v___x_3802_; lean_object* v___f_3803_; lean_object* v_val_3805_; lean_object* v___y_3810_; lean_object* v_a_3811_; +v___x_3801_ = lean_box_usize(v_i_3795_); +v___x_3802_ = lean_box_usize(v_sz_3794_); +lean_inc_ref(v_as_3793_); +lean_inc_ref(v_connectionContext_3792_); +lean_inc_ref(v_config_3790_); +v___f_3803_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0___boxed), 8, 6); +lean_closure_set(v___f_3803_, 0, v___x_3801_); +lean_closure_set(v___f_3803_, 1, v_config_3790_); +lean_closure_set(v___f_3803_, 2, v_handler_3791_); +lean_closure_set(v___f_3803_, 3, v_connectionContext_3792_); +lean_closure_set(v___f_3803_, 4, v_as_3793_); +lean_closure_set(v___f_3803_, 5, v___x_3802_); +v_a_3811_ = lean_array_uget(v_as_3793_, v_i_3795_); +lean_dec_ref(v_as_3793_); +switch(lean_obj_tag(v_a_3811_)) +{ +case 0: +{ +lean_object* v_head_3812_; lean_object* v___x_3814_; uint8_t v_isShared_3815_; uint8_t v_isSharedCheck_3850_; +lean_dec_ref(v_connectionContext_3792_); +v_head_3812_ = lean_ctor_get(v_a_3811_, 0); +v_isSharedCheck_3850_ = !lean_is_exclusive(v_a_3811_); +if (v_isSharedCheck_3850_ == 0) +{ +v___x_3814_ = v_a_3811_; +v_isShared_3815_ = v_isSharedCheck_3850_; +goto v_resetjp_3813_; +} +else +{ +lean_inc(v_head_3812_); +lean_dec(v_a_3811_); +v___x_3814_ = lean_box(0); +v_isShared_3815_ = v_isSharedCheck_3850_; +goto v_resetjp_3813_; +} +v_resetjp_3813_: +{ +lean_object* v_machine_3816_; lean_object* v_requestStream_3817_; lean_object* v_response_3818_; lean_object* v_respStream_3819_; uint8_t v_requiresData_3820_; lean_object* v_expectData_3821_; uint8_t v_handlerDispatched_3822_; lean_object* v___x_3824_; uint8_t v_isShared_3825_; uint8_t v_isSharedCheck_3845_; +v_machine_3816_ = lean_ctor_get(v_b_3796_, 0); +v_requestStream_3817_ = lean_ctor_get(v_b_3796_, 1); +v_response_3818_ = lean_ctor_get(v_b_3796_, 5); +v_respStream_3819_ = lean_ctor_get(v_b_3796_, 6); +v_requiresData_3820_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9); +v_expectData_3821_ = lean_ctor_get(v_b_3796_, 7); +v_handlerDispatched_3822_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9 + 1); +v_isSharedCheck_3845_ = !lean_is_exclusive(v_b_3796_); +if (v_isSharedCheck_3845_ == 0) +{ +lean_object* v_unused_3846_; lean_object* v_unused_3847_; lean_object* v_unused_3848_; lean_object* v_unused_3849_; +v_unused_3846_ = lean_ctor_get(v_b_3796_, 8); +lean_dec(v_unused_3846_); +v_unused_3847_ = lean_ctor_get(v_b_3796_, 4); +lean_dec(v_unused_3847_); +v_unused_3848_ = lean_ctor_get(v_b_3796_, 3); +lean_dec(v_unused_3848_); +v_unused_3849_ = lean_ctor_get(v_b_3796_, 2); +lean_dec(v_unused_3849_); +v___x_3824_ = v_b_3796_; +v_isShared_3825_ = v_isSharedCheck_3845_; +goto v_resetjp_3823_; +} +else +{ +lean_inc(v_expectData_3821_); +lean_inc(v_respStream_3819_); +lean_inc(v_response_3818_); +lean_inc(v_requestStream_3817_); +lean_inc(v_machine_3816_); +lean_dec(v_b_3796_); +v___x_3824_ = lean_box(0); +v_isShared_3825_ = v_isSharedCheck_3845_; +goto v_resetjp_3823_; +} +v_resetjp_3823_: +{ +lean_object* v_lingeringTimeout_3826_; lean_object* v___x_3827_; lean_object* v___x_3829_; +v_lingeringTimeout_3826_ = lean_ctor_get(v_config_3790_, 4); +lean_inc(v_lingeringTimeout_3826_); +lean_dec_ref(v_config_3790_); +v___x_3827_ = lean_box(0); +lean_inc(v_head_3812_); +if (v_isShared_3815_ == 0) +{ +lean_ctor_set_tag(v___x_3814_, 1); +v___x_3829_ = v___x_3814_; +goto v_reusejp_3828_; +} +else +{ +lean_object* v_reuseFailAlloc_3844_; +v_reuseFailAlloc_3844_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3844_, 0, v_head_3812_); +v___x_3829_ = v_reuseFailAlloc_3844_; +goto v_reusejp_3828_; +} +v_reusejp_3828_: +{ +lean_object* v___x_3831_; +lean_inc_ref(v_requestStream_3817_); +if (v_isShared_3825_ == 0) +{ +lean_ctor_set(v___x_3824_, 8, v___x_3829_); +lean_ctor_set(v___x_3824_, 4, v___x_3827_); +lean_ctor_set(v___x_3824_, 3, v_lingeringTimeout_3826_); +lean_ctor_set(v___x_3824_, 2, v___x_3827_); +v___x_3831_ = v___x_3824_; +goto v_reusejp_3830_; +} +else +{ +lean_object* v_reuseFailAlloc_3843_; +v_reuseFailAlloc_3843_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3843_, 0, v_machine_3816_); +lean_ctor_set(v_reuseFailAlloc_3843_, 1, v_requestStream_3817_); +lean_ctor_set(v_reuseFailAlloc_3843_, 2, v___x_3827_); +lean_ctor_set(v_reuseFailAlloc_3843_, 3, v_lingeringTimeout_3826_); +lean_ctor_set(v_reuseFailAlloc_3843_, 4, v___x_3827_); +lean_ctor_set(v_reuseFailAlloc_3843_, 5, v_response_3818_); +lean_ctor_set(v_reuseFailAlloc_3843_, 6, v_respStream_3819_); +lean_ctor_set(v_reuseFailAlloc_3843_, 7, v_expectData_3821_); +lean_ctor_set(v_reuseFailAlloc_3843_, 8, v___x_3829_); +lean_ctor_set_uint8(v_reuseFailAlloc_3843_, sizeof(void*)*9, v_requiresData_3820_); +lean_ctor_set_uint8(v_reuseFailAlloc_3843_, sizeof(void*)*9 + 1, v_handlerDispatched_3822_); +v___x_3831_ = v_reuseFailAlloc_3843_; +goto v_reusejp_3830_; +} +v_reusejp_3830_: +{ +uint8_t v___x_3832_; lean_object* v___x_3833_; +v___x_3832_ = 0; +v___x_3833_ = l_Std_Http_Protocol_H1_Message_Head_getSize(v___x_3832_, v_head_3812_, v___x_3798_); +lean_dec(v_head_3812_); +if (lean_obj_tag(v___x_3833_) == 1) +{ +lean_object* v___f_3834_; lean_object* v___x_3835_; lean_object* v___f_3836_; lean_object* v___x_3837_; uint8_t v___x_3838_; lean_object* v___x_3839_; +v___f_3834_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__1___boxed), 3, 1); +lean_closure_set(v___f_3834_, 0, v___x_3833_); +v___x_3835_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_3817_, v___f_3834_); +v___f_3836_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__2___boxed), 3, 1); +lean_closure_set(v___f_3836_, 0, v___x_3831_); +v___x_3837_ = lean_unsigned_to_nat(0u); +v___x_3838_ = 0; +v___x_3839_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3837_, v___x_3838_, v___x_3835_, v___f_3836_); +v___y_3810_ = v___x_3839_; +goto v___jp_3809_; +} +else +{ +lean_object* v___x_3840_; lean_object* v___x_3841_; lean_object* v___x_3842_; +lean_dec(v___x_3833_); +lean_dec_ref(v_requestStream_3817_); +v___x_3840_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3840_, 0, v___x_3831_); +v___x_3841_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3841_, 0, v___x_3840_); +v___x_3842_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3842_, 0, v___x_3841_); +v_val_3805_ = v___x_3842_; +goto v___jp_3804_; +} +} +} +} +} +} +case 1: +{ +lean_object* v_size_3851_; lean_object* v___x_3853_; uint8_t v_isShared_3854_; uint8_t v_isSharedCheck_3877_; +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_config_3790_); +v_size_3851_ = lean_ctor_get(v_a_3811_, 0); +v_isSharedCheck_3877_ = !lean_is_exclusive(v_a_3811_); +if (v_isSharedCheck_3877_ == 0) +{ +v___x_3853_ = v_a_3811_; +v_isShared_3854_ = v_isSharedCheck_3877_; +goto v_resetjp_3852_; +} +else +{ +lean_inc(v_size_3851_); +lean_dec(v_a_3811_); +v___x_3853_ = lean_box(0); +v_isShared_3854_ = v_isSharedCheck_3877_; +goto v_resetjp_3852_; +} +v_resetjp_3852_: +{ +lean_object* v_machine_3855_; lean_object* v_requestStream_3856_; lean_object* v_keepAliveTimeout_3857_; lean_object* v_currentTimeout_3858_; lean_object* v_headerTimeout_3859_; lean_object* v_response_3860_; lean_object* v_respStream_3861_; uint8_t v_handlerDispatched_3862_; lean_object* v_pendingHead_3863_; lean_object* v___x_3865_; uint8_t v_isShared_3866_; uint8_t v_isSharedCheck_3875_; +v_machine_3855_ = lean_ctor_get(v_b_3796_, 0); +v_requestStream_3856_ = lean_ctor_get(v_b_3796_, 1); +v_keepAliveTimeout_3857_ = lean_ctor_get(v_b_3796_, 2); +v_currentTimeout_3858_ = lean_ctor_get(v_b_3796_, 3); +v_headerTimeout_3859_ = lean_ctor_get(v_b_3796_, 4); +v_response_3860_ = lean_ctor_get(v_b_3796_, 5); +v_respStream_3861_ = lean_ctor_get(v_b_3796_, 6); +v_handlerDispatched_3862_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9 + 1); +v_pendingHead_3863_ = lean_ctor_get(v_b_3796_, 8); +v_isSharedCheck_3875_ = !lean_is_exclusive(v_b_3796_); +if (v_isSharedCheck_3875_ == 0) +{ +lean_object* v_unused_3876_; +v_unused_3876_ = lean_ctor_get(v_b_3796_, 7); +lean_dec(v_unused_3876_); +v___x_3865_ = v_b_3796_; +v_isShared_3866_ = v_isSharedCheck_3875_; +goto v_resetjp_3864_; +} +else +{ +lean_inc(v_pendingHead_3863_); +lean_inc(v_respStream_3861_); +lean_inc(v_response_3860_); +lean_inc(v_headerTimeout_3859_); +lean_inc(v_currentTimeout_3858_); +lean_inc(v_keepAliveTimeout_3857_); +lean_inc(v_requestStream_3856_); +lean_inc(v_machine_3855_); +lean_dec(v_b_3796_); +v___x_3865_ = lean_box(0); +v_isShared_3866_ = v_isSharedCheck_3875_; +goto v_resetjp_3864_; +} +v_resetjp_3864_: +{ +lean_object* v___x_3868_; +if (v_isShared_3866_ == 0) +{ +lean_ctor_set(v___x_3865_, 7, v_size_3851_); +v___x_3868_ = v___x_3865_; +goto v_reusejp_3867_; +} +else +{ +lean_object* v_reuseFailAlloc_3874_; +v_reuseFailAlloc_3874_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v_reuseFailAlloc_3874_, 0, v_machine_3855_); +lean_ctor_set(v_reuseFailAlloc_3874_, 1, v_requestStream_3856_); +lean_ctor_set(v_reuseFailAlloc_3874_, 2, v_keepAliveTimeout_3857_); +lean_ctor_set(v_reuseFailAlloc_3874_, 3, v_currentTimeout_3858_); +lean_ctor_set(v_reuseFailAlloc_3874_, 4, v_headerTimeout_3859_); +lean_ctor_set(v_reuseFailAlloc_3874_, 5, v_response_3860_); +lean_ctor_set(v_reuseFailAlloc_3874_, 6, v_respStream_3861_); +lean_ctor_set(v_reuseFailAlloc_3874_, 7, v_size_3851_); +lean_ctor_set(v_reuseFailAlloc_3874_, 8, v_pendingHead_3863_); +lean_ctor_set_uint8(v_reuseFailAlloc_3874_, sizeof(void*)*9 + 1, v_handlerDispatched_3862_); +v___x_3868_ = v_reuseFailAlloc_3874_; +goto v_reusejp_3867_; +} +v_reusejp_3867_: +{ +lean_object* v___x_3870_; +lean_ctor_set_uint8(v___x_3868_, sizeof(void*)*9, v___x_3798_); +if (v_isShared_3854_ == 0) +{ +lean_ctor_set(v___x_3853_, 0, v___x_3868_); +v___x_3870_ = v___x_3853_; +goto v_reusejp_3869_; +} +else +{ +lean_object* v_reuseFailAlloc_3873_; +v_reuseFailAlloc_3873_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3873_, 0, v___x_3868_); +v___x_3870_ = v_reuseFailAlloc_3873_; +goto v_reusejp_3869_; +} +v_reusejp_3869_: +{ +lean_object* v___x_3871_; lean_object* v___x_3872_; +v___x_3871_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3871_, 0, v___x_3870_); +v___x_3872_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3872_, 0, v___x_3871_); +v_val_3805_ = v___x_3872_; +goto v___jp_3804_; +} +} +} +} +} +case 2: +{ +lean_object* v___f_3878_; lean_object* v___x_3879_; lean_object* v___f_3880_; lean_object* v___x_3881_; lean_object* v___x_3882_; uint8_t v___x_3883_; lean_object* v___x_3884_; +lean_dec_ref(v_a_3811_); +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_config_3790_); +v___f_3878_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1)); +v___x_3879_ = lean_box(v___x_3798_); +v___f_3880_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__8___boxed), 5, 3); +lean_closure_set(v___f_3880_, 0, v_b_3796_); +lean_closure_set(v___f_3880_, 1, v___f_3878_); +lean_closure_set(v___f_3880_, 2, v___x_3879_); +v___x_3881_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +v___x_3882_ = lean_unsigned_to_nat(0u); +v___x_3883_ = 0; +v___x_3884_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3882_, v___x_3883_, v___x_3881_, v___f_3880_); +v___y_3810_ = v___x_3884_; +goto v___jp_3809_; +} +case 4: +{ +lean_object* v_requestStream_3885_; lean_object* v___f_3886_; lean_object* v___x_3887_; lean_object* v___f_3888_; lean_object* v___x_3889_; lean_object* v___f_3890_; lean_object* v___x_3891_; uint8_t v___x_3892_; lean_object* v___x_3893_; +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_config_3790_); +v_requestStream_3885_ = lean_ctor_get(v_b_3796_, 1); +lean_inc_ref_n(v_requestStream_3885_, 2); +v___f_3886_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1)); +v___x_3887_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_3885_, v___f_3886_); +lean_inc_ref(v_b_3796_); +v___f_3888_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__11___boxed), 3, 1); +lean_closure_set(v___f_3888_, 0, v_b_3796_); +v___x_3889_ = lean_box(v___x_3798_); +v___f_3890_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__9___boxed), 6, 4); +lean_closure_set(v___f_3890_, 0, v_b_3796_); +lean_closure_set(v___f_3890_, 1, v___x_3889_); +lean_closure_set(v___f_3890_, 2, v_requestStream_3885_); +lean_closure_set(v___f_3890_, 3, v___f_3888_); +v___x_3891_ = lean_unsigned_to_nat(0u); +v___x_3892_ = 0; +v___x_3893_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3891_, v___x_3892_, v___x_3887_, v___f_3890_); +v___y_3810_ = v___x_3893_; +goto v___jp_3809_; +} +case 6: +{ +lean_object* v_machine_3894_; lean_object* v_requestStream_3895_; lean_object* v_respStream_3896_; uint8_t v_requiresData_3897_; lean_object* v_expectData_3898_; lean_object* v_pendingHead_3899_; lean_object* v___f_3900_; lean_object* v___x_3901_; lean_object* v___x_3902_; lean_object* v___f_3903_; lean_object* v___f_3904_; lean_object* v___f_3905_; lean_object* v___x_3906_; lean_object* v___f_3907_; lean_object* v___f_3908_; lean_object* v___x_3909_; lean_object* v___f_3910_; lean_object* v___x_3911_; uint8_t v___x_3912_; lean_object* v___x_3913_; +lean_dec_ref(v_connectionContext_3792_); +v_machine_3894_ = lean_ctor_get(v_b_3796_, 0); +lean_inc_ref(v_machine_3894_); +v_requestStream_3895_ = lean_ctor_get(v_b_3796_, 1); +lean_inc_ref_n(v_requestStream_3895_, 2); +v_respStream_3896_ = lean_ctor_get(v_b_3796_, 6); +lean_inc(v_respStream_3896_); +v_requiresData_3897_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9); +v_expectData_3898_ = lean_ctor_get(v_b_3796_, 7); +lean_inc(v_expectData_3898_); +v_pendingHead_3899_ = lean_ctor_get(v_b_3796_, 8); +lean_inc(v_pendingHead_3899_); +lean_dec_ref(v_b_3796_); +v___f_3900_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___closed__1)); +v___x_3901_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_3895_, v___f_3900_); +v___x_3902_ = lean_box(v_requiresData_3897_); +v___f_3903_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__10___boxed), 7, 5); +lean_closure_set(v___f_3903_, 0, v_config_3790_); +lean_closure_set(v___f_3903_, 1, v_machine_3894_); +lean_closure_set(v___f_3903_, 2, v___x_3902_); +lean_closure_set(v___f_3903_, 3, v_expectData_3898_); +lean_closure_set(v___f_3903_, 4, v_pendingHead_3899_); +v___f_3904_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__12___boxed), 3, 1); +lean_closure_set(v___f_3904_, 0, v___f_3903_); +lean_inc_ref(v___f_3904_); +v___f_3905_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6___boxed), 3, 1); +lean_closure_set(v___f_3905_, 0, v___f_3904_); +v___x_3906_ = lean_box(v___x_3798_); +v___f_3907_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__14___boxed), 6, 4); +lean_closure_set(v___f_3907_, 0, v_respStream_3896_); +lean_closure_set(v___f_3907_, 1, v___f_3904_); +lean_closure_set(v___f_3907_, 2, v___x_3906_); +lean_closure_set(v___f_3907_, 3, v___f_3905_); +lean_inc_ref(v___f_3907_); +v___f_3908_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__6___boxed), 3, 1); +lean_closure_set(v___f_3908_, 0, v___f_3907_); +v___x_3909_ = lean_box(v___x_3798_); +v___f_3910_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__7___boxed), 6, 4); +lean_closure_set(v___f_3910_, 0, v___f_3907_); +lean_closure_set(v___f_3910_, 1, v___x_3909_); +lean_closure_set(v___f_3910_, 2, v_requestStream_3895_); +lean_closure_set(v___f_3910_, 3, v___f_3908_); +v___x_3911_ = lean_unsigned_to_nat(0u); +v___x_3912_ = 0; +v___x_3913_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3911_, v___x_3912_, v___x_3901_, v___f_3910_); +v___y_3810_ = v___x_3913_; +goto v___jp_3809_; +} +case 7: +{ +lean_object* v_pendingHead_3914_; +v_pendingHead_3914_ = lean_ctor_get(v_b_3796_, 8); +if (lean_obj_tag(v_pendingHead_3914_) == 1) +{ +lean_object* v_machine_3915_; lean_object* v_requestStream_3916_; lean_object* v_keepAliveTimeout_3917_; lean_object* v_currentTimeout_3918_; lean_object* v_headerTimeout_3919_; lean_object* v_response_3920_; lean_object* v_respStream_3921_; uint8_t v_requiresData_3922_; lean_object* v_expectData_3923_; uint8_t v_handlerDispatched_3924_; lean_object* v___x_3925_; lean_object* v___x_3926_; lean_object* v___x_3927_; lean_object* v___f_3928_; lean_object* v___x_3929_; uint8_t v___x_3930_; lean_object* v___x_3931_; +lean_inc_ref(v_pendingHead_3914_); +v_machine_3915_ = lean_ctor_get(v_b_3796_, 0); +lean_inc_ref(v_machine_3915_); +v_requestStream_3916_ = lean_ctor_get(v_b_3796_, 1); +lean_inc_ref(v_requestStream_3916_); +v_keepAliveTimeout_3917_ = lean_ctor_get(v_b_3796_, 2); +lean_inc(v_keepAliveTimeout_3917_); +v_currentTimeout_3918_ = lean_ctor_get(v_b_3796_, 3); +lean_inc(v_currentTimeout_3918_); +v_headerTimeout_3919_ = lean_ctor_get(v_b_3796_, 4); +lean_inc(v_headerTimeout_3919_); +v_response_3920_ = lean_ctor_get(v_b_3796_, 5); +lean_inc_ref(v_response_3920_); +v_respStream_3921_ = lean_ctor_get(v_b_3796_, 6); +lean_inc(v_respStream_3921_); +v_requiresData_3922_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9); +v_expectData_3923_ = lean_ctor_get(v_b_3796_, 7); +lean_inc(v_expectData_3923_); +v_handlerDispatched_3924_ = lean_ctor_get_uint8(v_b_3796_, sizeof(void*)*9 + 1); +lean_dec_ref(v_b_3796_); +v___x_3925_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg(v_machine_3915_, v_config_3790_, v_connectionContext_3792_); +v___x_3926_ = lean_box(v_requiresData_3922_); +v___x_3927_ = lean_box(v_handlerDispatched_3924_); +v___f_3928_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__18___boxed), 12, 10); +lean_closure_set(v___f_3928_, 0, v_requestStream_3916_); +lean_closure_set(v___f_3928_, 1, v_keepAliveTimeout_3917_); +lean_closure_set(v___f_3928_, 2, v_currentTimeout_3918_); +lean_closure_set(v___f_3928_, 3, v_headerTimeout_3919_); +lean_closure_set(v___f_3928_, 4, v_response_3920_); +lean_closure_set(v___f_3928_, 5, v_respStream_3921_); +lean_closure_set(v___f_3928_, 6, v___x_3926_); +lean_closure_set(v___f_3928_, 7, v_expectData_3923_); +lean_closure_set(v___f_3928_, 8, v___x_3927_); +lean_closure_set(v___f_3928_, 9, v_pendingHead_3914_); +v___x_3929_ = lean_unsigned_to_nat(0u); +v___x_3930_ = 0; +v___x_3931_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3929_, v___x_3930_, v___x_3925_, v___f_3928_); +v___y_3810_ = v___x_3931_; +goto v___jp_3809_; +} +else +{ +lean_object* v___x_3932_; lean_object* v___x_3933_; lean_object* v___x_3934_; +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_config_3790_); +v___x_3932_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3932_, 0, v_b_3796_); +v___x_3933_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3933_, 0, v___x_3932_); +v___x_3934_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3934_, 0, v___x_3933_); +v_val_3805_ = v___x_3934_; +goto v___jp_3804_; +} +} +default: +{ +lean_object* v___x_3935_; lean_object* v___x_3936_; lean_object* v___x_3937_; +lean_dec(v_a_3811_); +lean_dec_ref(v_connectionContext_3792_); +lean_dec_ref(v_config_3790_); +v___x_3935_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3935_, 0, v_b_3796_); +v___x_3936_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_3936_, 0, v___x_3935_); +v___x_3937_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3937_, 0, v___x_3936_); +v_val_3805_ = v___x_3937_; +goto v___jp_3804_; +} +} +v___jp_3804_: +{ +lean_object* v___x_3806_; uint8_t v___x_3807_; lean_object* v___x_3808_; +v___x_3806_ = lean_unsigned_to_nat(0u); +v___x_3807_ = 0; +v___x_3808_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3806_, v___x_3807_, v_val_3805_, v___f_3803_); +return v___x_3808_; +} +v___jp_3809_: +{ +v_val_3805_ = v___y_3810_; +goto v___jp_3804_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___lam__0(size_t v_i_3938_, lean_object* v_config_3939_, lean_object* v_handler_3940_, lean_object* v_connectionContext_3941_, lean_object* v_as_3942_, size_t v_sz_3943_, lean_object* v_x_3944_){ +_start: +{ +if (lean_obj_tag(v_x_3944_) == 0) +{ +lean_object* v_a_3946_; lean_object* v___x_3948_; uint8_t v_isShared_3949_; uint8_t v_isSharedCheck_3954_; +lean_dec_ref(v_as_3942_); +lean_dec_ref(v_connectionContext_3941_); +lean_dec_ref(v_handler_3940_); +lean_dec_ref(v_config_3939_); +v_a_3946_ = lean_ctor_get(v_x_3944_, 0); +v_isSharedCheck_3954_ = !lean_is_exclusive(v_x_3944_); +if (v_isSharedCheck_3954_ == 0) +{ +v___x_3948_ = v_x_3944_; +v_isShared_3949_ = v_isSharedCheck_3954_; +goto v_resetjp_3947_; +} +else +{ +lean_inc(v_a_3946_); +lean_dec(v_x_3944_); +v___x_3948_ = lean_box(0); +v_isShared_3949_ = v_isSharedCheck_3954_; +goto v_resetjp_3947_; +} +v_resetjp_3947_: +{ +lean_object* v___x_3951_; +if (v_isShared_3949_ == 0) +{ +v___x_3951_ = v___x_3948_; +goto v_reusejp_3950_; +} +else +{ +lean_object* v_reuseFailAlloc_3953_; +v_reuseFailAlloc_3953_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3953_, 0, v_a_3946_); +v___x_3951_ = v_reuseFailAlloc_3953_; +goto v_reusejp_3950_; +} +v_reusejp_3950_: +{ +lean_object* v___x_3952_; +v___x_3952_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_3952_, 0, v___x_3951_); +return v___x_3952_; +} +} +} +else +{ +lean_object* v_a_3955_; lean_object* v___x_3957_; uint8_t v_isShared_3958_; uint8_t v_isSharedCheck_3974_; +v_a_3955_ = lean_ctor_get(v_x_3944_, 0); +v_isSharedCheck_3974_ = !lean_is_exclusive(v_x_3944_); +if (v_isSharedCheck_3974_ == 0) +{ +v___x_3957_ = v_x_3944_; +v_isShared_3958_ = v_isSharedCheck_3974_; +goto v_resetjp_3956_; +} +else +{ +lean_inc(v_a_3955_); +lean_dec(v_x_3944_); +v___x_3957_ = lean_box(0); +v_isShared_3958_ = v_isSharedCheck_3974_; +goto v_resetjp_3956_; +} +v_resetjp_3956_: +{ +if (lean_obj_tag(v_a_3955_) == 0) +{ +lean_object* v_a_3959_; lean_object* v___x_3961_; uint8_t v_isShared_3962_; uint8_t v_isSharedCheck_3969_; +lean_dec_ref(v_as_3942_); +lean_dec_ref(v_connectionContext_3941_); +lean_dec_ref(v_handler_3940_); +lean_dec_ref(v_config_3939_); +v_a_3959_ = lean_ctor_get(v_a_3955_, 0); +v_isSharedCheck_3969_ = !lean_is_exclusive(v_a_3955_); +if (v_isSharedCheck_3969_ == 0) +{ +v___x_3961_ = v_a_3955_; +v_isShared_3962_ = v_isSharedCheck_3969_; +goto v_resetjp_3960_; +} +else +{ +lean_inc(v_a_3959_); +lean_dec(v_a_3955_); +v___x_3961_ = lean_box(0); +v_isShared_3962_ = v_isSharedCheck_3969_; +goto v_resetjp_3960_; +} +v_resetjp_3960_: +{ +lean_object* v___x_3964_; +if (v_isShared_3958_ == 0) +{ +lean_ctor_set(v___x_3957_, 0, v_a_3959_); +v___x_3964_ = v___x_3957_; +goto v_reusejp_3963_; +} +else +{ +lean_object* v_reuseFailAlloc_3968_; +v_reuseFailAlloc_3968_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3968_, 0, v_a_3959_); +v___x_3964_ = v_reuseFailAlloc_3968_; +goto v_reusejp_3963_; +} +v_reusejp_3963_: +{ +lean_object* v___x_3966_; +if (v_isShared_3962_ == 0) +{ +lean_ctor_set(v___x_3961_, 0, v___x_3964_); +v___x_3966_ = v___x_3961_; +goto v_reusejp_3965_; +} +else +{ +lean_object* v_reuseFailAlloc_3967_; +v_reuseFailAlloc_3967_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_3967_, 0, v___x_3964_); +v___x_3966_ = v_reuseFailAlloc_3967_; +goto v_reusejp_3965_; +} +v_reusejp_3965_: +{ +return v___x_3966_; +} +} +} +} +else +{ +lean_object* v_a_3970_; size_t v___x_3971_; size_t v___x_3972_; lean_object* v___x_3973_; +lean_del_object(v___x_3957_); +v_a_3970_ = lean_ctor_get(v_a_3955_, 0); +lean_inc(v_a_3970_); +lean_dec_ref(v_a_3955_); +v___x_3971_ = ((size_t)1ULL); +v___x_3972_ = lean_usize_add(v_i_3938_, v___x_3971_); +v___x_3973_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12(v_config_3939_, v_handler_3940_, v_connectionContext_3941_, v_as_3942_, v_sz_3943_, v___x_3972_, v_a_3970_); +return v___x_3973_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12___boxed(lean_object* v_config_3975_, lean_object* v_handler_3976_, lean_object* v_connectionContext_3977_, lean_object* v_as_3978_, lean_object* v_sz_3979_, lean_object* v_i_3980_, lean_object* v_b_3981_, lean_object* v___y_3982_){ +_start: +{ +size_t v_sz_boxed_3983_; size_t v_i_boxed_3984_; lean_object* v_res_3985_; +v_sz_boxed_3983_ = lean_unbox_usize(v_sz_3979_); +lean_dec(v_sz_3979_); +v_i_boxed_3984_ = lean_unbox_usize(v_i_3980_); +lean_dec(v_i_3980_); +v_res_3985_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12(v_config_3975_, v_handler_3976_, v_connectionContext_3977_, v_as_3978_, v_sz_boxed_3983_, v_i_boxed_3984_, v_b_3981_); +return v_res_3985_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6(lean_object* v_handler_3987_, lean_object* v_config_3988_, lean_object* v_connectionContext_3989_, lean_object* v_events_3990_, lean_object* v_state_3991_){ +_start: +{ +size_t v_sz_3993_; size_t v___x_3994_; lean_object* v___x_3995_; lean_object* v___f_3996_; lean_object* v___x_3997_; uint8_t v___x_3998_; lean_object* v___x_3999_; +v_sz_3993_ = lean_array_size(v_events_3990_); +v___x_3994_ = ((size_t)0ULL); +v___x_3995_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__12(v_config_3988_, v_handler_3987_, v_connectionContext_3989_, v_events_3990_, v_sz_3993_, v___x_3994_, v_state_3991_); +v___f_3996_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___closed__0)); +v___x_3997_ = lean_unsigned_to_nat(0u); +v___x_3998_ = 0; +v___x_3999_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_3997_, v___x_3998_, v___x_3995_, v___f_3996_); +return v___x_3999_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6___boxed(lean_object* v_handler_4000_, lean_object* v_config_4001_, lean_object* v_connectionContext_4002_, lean_object* v_events_4003_, lean_object* v_state_4004_, lean_object* v_a_4005_){ +_start: +{ +lean_object* v_res_4006_; +v_res_4006_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6(v_handler_4000_, v_config_4001_, v_connectionContext_4002_, v_events_4003_, v_state_4004_); +return v_res_4006_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9(lean_object* v_handler_4007_, lean_object* v_config_4008_, lean_object* v_connectionContext_4009_, lean_object* v_events_4010_, lean_object* v___x_4011_, uint8_t v___x_4012_, lean_object* v___f_4013_, lean_object* v_____r_4014_){ +_start: +{ +lean_object* v___x_4016_; lean_object* v___x_4017_; lean_object* v___x_4018_; +v___x_4016_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6(v_handler_4007_, v_config_4008_, v_connectionContext_4009_, v_events_4010_, v___x_4011_); +v___x_4017_ = lean_unsigned_to_nat(0u); +v___x_4018_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4017_, v___x_4012_, v___x_4016_, v___f_4013_); +return v___x_4018_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9___boxed(lean_object* v_handler_4019_, lean_object* v_config_4020_, lean_object* v_connectionContext_4021_, lean_object* v_events_4022_, lean_object* v___x_4023_, lean_object* v___x_4024_, lean_object* v___f_4025_, lean_object* v_____r_4026_, lean_object* v___y_4027_){ +_start: +{ +uint8_t v___x_20432__boxed_4028_; lean_object* v_res_4029_; +v___x_20432__boxed_4028_ = lean_unbox(v___x_4024_); +v_res_4029_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9(v_handler_4019_, v_config_4020_, v_connectionContext_4021_, v_events_4022_, v___x_4023_, v___x_20432__boxed_4028_, v___f_4025_, v_____r_4026_); +return v_res_4029_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2(lean_object* v_x_4034_){ +_start: +{ +if (lean_obj_tag(v_x_4034_) == 0) +{ +lean_object* v_a_4036_; lean_object* v___x_4038_; uint8_t v_isShared_4039_; uint8_t v_isSharedCheck_4044_; +v_a_4036_ = lean_ctor_get(v_x_4034_, 0); +v_isSharedCheck_4044_ = !lean_is_exclusive(v_x_4034_); +if (v_isSharedCheck_4044_ == 0) +{ +v___x_4038_ = v_x_4034_; +v_isShared_4039_ = v_isSharedCheck_4044_; +goto v_resetjp_4037_; +} +else +{ +lean_inc(v_a_4036_); +lean_dec(v_x_4034_); +v___x_4038_ = lean_box(0); +v_isShared_4039_ = v_isSharedCheck_4044_; +goto v_resetjp_4037_; +} +v_resetjp_4037_: +{ +lean_object* v___x_4041_; +if (v_isShared_4039_ == 0) +{ +v___x_4041_ = v___x_4038_; +goto v_reusejp_4040_; +} +else +{ +lean_object* v_reuseFailAlloc_4043_; +v_reuseFailAlloc_4043_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4043_, 0, v_a_4036_); +v___x_4041_ = v_reuseFailAlloc_4043_; +goto v_reusejp_4040_; +} +v_reusejp_4040_: +{ +lean_object* v___x_4042_; +v___x_4042_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4042_, 0, v___x_4041_); +return v___x_4042_; +} +} +} +else +{ +lean_object* v___x_4045_; +lean_dec_ref(v_x_4034_); +v___x_4045_ = ((lean_object*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___closed__1)); +return v___x_4045_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2___boxed(lean_object* v_x_4046_, lean_object* v___y_4047_){ +_start: +{ +lean_object* v_res_4048_; +v_res_4048_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__2(v_x_4046_); +return v_res_4048_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8(uint8_t v___x_4049_, lean_object* v___f_4050_, lean_object* v_x_4051_){ +_start: +{ +if (lean_obj_tag(v_x_4051_) == 0) +{ +lean_object* v___x_4053_; lean_object* v___x_4054_; lean_object* v___x_4055_; +lean_dec_ref(v_x_4051_); +v___x_4053_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +v___x_4054_ = lean_unsigned_to_nat(0u); +v___x_4055_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4054_, v___x_4049_, v___x_4053_, v___f_4050_); +return v___x_4055_; +} +else +{ +lean_object* v___x_4056_; +lean_dec_ref(v___f_4050_); +v___x_4056_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4056_, 0, v_x_4051_); +return v___x_4056_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8___boxed(lean_object* v___x_4057_, lean_object* v___f_4058_, lean_object* v_x_4059_, lean_object* v___y_4060_){ +_start: +{ +uint8_t v___x_20495__boxed_4061_; lean_object* v_res_4062_; +v___x_20495__boxed_4061_ = lean_unbox(v___x_4057_); +v_res_4062_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__8(v___x_20495__boxed_4061_, v___f_4058_, v_x_4059_); +return v_res_4062_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10(lean_object* v___x_4063_, lean_object* v___f_4064_, lean_object* v_x_4065_){ +_start: +{ +if (lean_obj_tag(v_x_4065_) == 0) +{ +lean_object* v_a_4067_; lean_object* v___x_4069_; uint8_t v_isShared_4070_; uint8_t v_isSharedCheck_4075_; +lean_dec_ref(v___f_4064_); +lean_dec_ref(v___x_4063_); +v_a_4067_ = lean_ctor_get(v_x_4065_, 0); +v_isSharedCheck_4075_ = !lean_is_exclusive(v_x_4065_); +if (v_isSharedCheck_4075_ == 0) +{ +v___x_4069_ = v_x_4065_; +v_isShared_4070_ = v_isSharedCheck_4075_; +goto v_resetjp_4068_; +} +else +{ +lean_inc(v_a_4067_); +lean_dec(v_x_4065_); +v___x_4069_ = lean_box(0); +v_isShared_4070_ = v_isSharedCheck_4075_; +goto v_resetjp_4068_; +} +v_resetjp_4068_: +{ +lean_object* v___x_4072_; +if (v_isShared_4070_ == 0) +{ +v___x_4072_ = v___x_4069_; +goto v_reusejp_4071_; +} +else +{ +lean_object* v_reuseFailAlloc_4074_; +v_reuseFailAlloc_4074_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4074_, 0, v_a_4067_); +v___x_4072_ = v_reuseFailAlloc_4074_; +goto v_reusejp_4071_; +} +v_reusejp_4071_: +{ +lean_object* v___x_4073_; +v___x_4073_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4073_, 0, v___x_4072_); +return v___x_4073_; +} +} +} +else +{ +lean_object* v_a_4076_; lean_object* v___x_4078_; uint8_t v_isShared_4079_; uint8_t v_isSharedCheck_4087_; +v_a_4076_ = lean_ctor_get(v_x_4065_, 0); +v_isSharedCheck_4087_ = !lean_is_exclusive(v_x_4065_); +if (v_isSharedCheck_4087_ == 0) +{ +v___x_4078_ = v_x_4065_; +v_isShared_4079_ = v_isSharedCheck_4087_; +goto v_resetjp_4077_; +} +else +{ +lean_inc(v_a_4076_); +lean_dec(v_x_4065_); +v___x_4078_ = lean_box(0); +v_isShared_4079_ = v_isSharedCheck_4087_; +goto v_resetjp_4077_; +} +v_resetjp_4077_: +{ +if (lean_obj_tag(v_a_4076_) == 0) +{ +lean_object* v___x_4080_; lean_object* v___x_4082_; +lean_dec_ref(v___f_4064_); +v___x_4080_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4080_, 0, v___x_4063_); +if (v_isShared_4079_ == 0) +{ +lean_ctor_set(v___x_4078_, 0, v___x_4080_); +v___x_4082_ = v___x_4078_; +goto v_reusejp_4081_; +} +else +{ +lean_object* v_reuseFailAlloc_4084_; +v_reuseFailAlloc_4084_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4084_, 0, v___x_4080_); +v___x_4082_ = v_reuseFailAlloc_4084_; +goto v_reusejp_4081_; +} +v_reusejp_4081_: +{ +lean_object* v___x_4083_; +v___x_4083_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4083_, 0, v___x_4082_); +return v___x_4083_; +} +} +else +{ +lean_object* v_val_4085_; lean_object* v___x_4086_; +lean_del_object(v___x_4078_); +lean_dec_ref(v___x_4063_); +v_val_4085_ = lean_ctor_get(v_a_4076_, 0); +lean_inc(v_val_4085_); +lean_dec_ref(v_a_4076_); +v___x_4086_ = lean_apply_2(v___f_4064_, v_val_4085_, lean_box(0)); +return v___x_4086_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10___boxed(lean_object* v___x_4088_, lean_object* v___f_4089_, lean_object* v_x_4090_, lean_object* v___y_4091_){ +_start: +{ +lean_object* v_res_4092_; +v_res_4092_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10(v___x_4088_, v___f_4089_, v_x_4090_); +return v_res_4092_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1(lean_object* v_x_4093_){ +_start: +{ +if (lean_obj_tag(v_x_4093_) == 0) +{ +lean_object* v_a_4095_; lean_object* v___x_4097_; uint8_t v_isShared_4098_; uint8_t v_isSharedCheck_4103_; +v_a_4095_ = lean_ctor_get(v_x_4093_, 0); +v_isSharedCheck_4103_ = !lean_is_exclusive(v_x_4093_); +if (v_isSharedCheck_4103_ == 0) +{ +v___x_4097_ = v_x_4093_; +v_isShared_4098_ = v_isSharedCheck_4103_; +goto v_resetjp_4096_; +} +else +{ +lean_inc(v_a_4095_); +lean_dec(v_x_4093_); +v___x_4097_ = lean_box(0); +v_isShared_4098_ = v_isSharedCheck_4103_; +goto v_resetjp_4096_; +} +v_resetjp_4096_: +{ +lean_object* v___x_4100_; +if (v_isShared_4098_ == 0) +{ +v___x_4100_ = v___x_4097_; +goto v_reusejp_4099_; +} +else +{ +lean_object* v_reuseFailAlloc_4102_; +v_reuseFailAlloc_4102_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4102_, 0, v_a_4095_); +v___x_4100_ = v_reuseFailAlloc_4102_; +goto v_reusejp_4099_; +} +v_reusejp_4099_: +{ +lean_object* v___x_4101_; +v___x_4101_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4101_, 0, v___x_4100_); +return v___x_4101_; +} +} +} +else +{ +lean_object* v_a_4104_; lean_object* v___x_4106_; uint8_t v_isShared_4107_; uint8_t v_isSharedCheck_4113_; +v_a_4104_ = lean_ctor_get(v_x_4093_, 0); +v_isSharedCheck_4113_ = !lean_is_exclusive(v_x_4093_); +if (v_isSharedCheck_4113_ == 0) +{ +v___x_4106_ = v_x_4093_; +v_isShared_4107_ = v_isSharedCheck_4113_; +goto v_resetjp_4105_; +} +else +{ +lean_inc(v_a_4104_); +lean_dec(v_x_4093_); +v___x_4106_ = lean_box(0); +v_isShared_4107_ = v_isSharedCheck_4113_; +goto v_resetjp_4105_; +} +v_resetjp_4105_: +{ +lean_object* v___x_4108_; lean_object* v___x_4110_; +v___x_4108_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4108_, 0, v_a_4104_); +if (v_isShared_4107_ == 0) +{ +lean_ctor_set(v___x_4106_, 0, v___x_4108_); +v___x_4110_ = v___x_4106_; +goto v_reusejp_4109_; +} +else +{ +lean_object* v_reuseFailAlloc_4112_; +v_reuseFailAlloc_4112_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4112_, 0, v___x_4108_); +v___x_4110_ = v_reuseFailAlloc_4112_; +goto v_reusejp_4109_; +} +v_reusejp_4109_: +{ +lean_object* v___x_4111_; +v___x_4111_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4111_, 0, v___x_4110_); +return v___x_4111_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1___boxed(lean_object* v_x_4114_, lean_object* v___y_4115_){ +_start: +{ +lean_object* v_res_4116_; +v_res_4116_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__1(v_x_4114_); +return v_res_4116_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3___boxed(lean_object* v_promise_4119_, lean_object* v_handler_4120_, lean_object* v_config_4121_, lean_object* v_connectionContext_4122_, lean_object* v_connection_4123_, lean_object* v_socket_4124_, lean_object* v_prio_4125_, lean_object* v_x_4126_, lean_object* v___y_4127_){ +_start: +{ +lean_object* v_res_4128_; +v_res_4128_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3(v_promise_4119_, v_handler_4120_, v_config_4121_, v_connectionContext_4122_, v_connection_4123_, v_socket_4124_, v_prio_4125_, v_x_4126_); +return v_res_4128_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7(lean_object* v_handler_4134_, lean_object* v_config_4135_, lean_object* v_connectionContext_4136_, lean_object* v_connection_4137_, lean_object* v_socket_4138_, lean_object* v_prio_4139_, lean_object* v_promise_4140_, lean_object* v_b_4141_){ +_start: +{ +lean_object* v_a_4144_; lean_object* v_machine_4147_; lean_object* v_reader_4148_; lean_object* v_requestStream_4149_; lean_object* v_keepAliveTimeout_4150_; lean_object* v_currentTimeout_4151_; lean_object* v_headerTimeout_4152_; lean_object* v_response_4153_; lean_object* v_respStream_4154_; uint8_t v_requiresData_4155_; lean_object* v_expectData_4156_; uint8_t v_handlerDispatched_4157_; lean_object* v_pendingHead_4158_; lean_object* v_writer_4159_; lean_object* v_state_4160_; lean_object* v___f_4161_; lean_object* v___f_4162_; lean_object* v___f_4163_; uint8_t v___x_4164_; lean_object* v___y_4166_; lean_object* v___x_4183_; lean_object* v___f_4184_; lean_object* v___x_4185_; lean_object* v___f_4186_; lean_object* v___f_4187_; uint8_t v___x_4188_; +v_machine_4147_ = lean_ctor_get(v_b_4141_, 0); +v_reader_4148_ = lean_ctor_get(v_machine_4147_, 0); +v_requestStream_4149_ = lean_ctor_get(v_b_4141_, 1); +v_keepAliveTimeout_4150_ = lean_ctor_get(v_b_4141_, 2); +v_currentTimeout_4151_ = lean_ctor_get(v_b_4141_, 3); +v_headerTimeout_4152_ = lean_ctor_get(v_b_4141_, 4); +v_response_4153_ = lean_ctor_get(v_b_4141_, 5); +v_respStream_4154_ = lean_ctor_get(v_b_4141_, 6); +v_requiresData_4155_ = lean_ctor_get_uint8(v_b_4141_, sizeof(void*)*9); +v_expectData_4156_ = lean_ctor_get(v_b_4141_, 7); +v_handlerDispatched_4157_ = lean_ctor_get_uint8(v_b_4141_, sizeof(void*)*9 + 1); +v_pendingHead_4158_ = lean_ctor_get(v_b_4141_, 8); +v_writer_4159_ = lean_ctor_get(v_machine_4147_, 1); +v_state_4160_ = lean_ctor_get(v_reader_4148_, 0); +v___f_4161_ = ((lean_object*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__0)); +v___f_4162_ = ((lean_object*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__1)); +lean_inc(v_prio_4139_); +lean_inc_ref_n(v_socket_4138_, 2); +lean_inc_ref_n(v_connection_4137_, 2); +lean_inc_ref_n(v_connectionContext_4136_, 3); +lean_inc_ref_n(v_config_4135_, 2); +lean_inc_ref_n(v_handler_4134_, 2); +lean_inc(v_promise_4140_); +v___f_4163_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3___boxed), 9, 7); +lean_closure_set(v___f_4163_, 0, v_promise_4140_); +lean_closure_set(v___f_4163_, 1, v_handler_4134_); +lean_closure_set(v___f_4163_, 2, v_config_4135_); +lean_closure_set(v___f_4163_, 3, v_connectionContext_4136_); +lean_closure_set(v___f_4163_, 4, v_connection_4137_); +lean_closure_set(v___f_4163_, 5, v_socket_4138_); +lean_closure_set(v___f_4163_, 6, v_prio_4139_); +v___x_4164_ = 0; +v___x_4183_ = lean_box(v___x_4164_); +v___f_4184_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__6___boxed), 7, 5); +lean_closure_set(v___f_4184_, 0, v___x_4183_); +lean_closure_set(v___f_4184_, 1, v_socket_4138_); +lean_closure_set(v___f_4184_, 2, v_connectionContext_4136_); +lean_closure_set(v___f_4184_, 3, v_config_4135_); +lean_closure_set(v___f_4184_, 4, v___f_4161_); +v___x_4185_ = lean_box(v___x_4164_); +v___f_4186_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__7___boxed), 7, 5); +lean_closure_set(v___f_4186_, 0, v_connection_4137_); +lean_closure_set(v___f_4186_, 1, v_handler_4134_); +lean_closure_set(v___f_4186_, 2, v_connectionContext_4136_); +lean_closure_set(v___f_4186_, 3, v___x_4185_); +lean_closure_set(v___f_4186_, 4, v___f_4184_); +v___f_4187_ = ((lean_object*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___closed__3)); +v___x_4188_ = 0; +if (lean_obj_tag(v_state_4160_) == 6) +{ +lean_object* v_state_4210_; +v_state_4210_ = lean_ctor_get(v_writer_4159_, 2); +if (lean_obj_tag(v_state_4210_) == 7) +{ +lean_object* v_outputData_4211_; lean_object* v_size_4212_; lean_object* v___x_4213_; uint8_t v___x_4214_; +v_outputData_4211_ = lean_ctor_get(v_writer_4159_, 1); +v_size_4212_ = lean_ctor_get(v_outputData_4211_, 1); +v___x_4213_ = lean_unsigned_to_nat(0u); +v___x_4214_ = lean_nat_dec_eq(v_size_4212_, v___x_4213_); +if (v___x_4214_ == 0) +{ +lean_inc(v_pendingHead_4158_); +lean_inc(v_expectData_4156_); +lean_inc(v_respStream_4154_); +lean_inc_ref(v_response_4153_); +lean_inc(v_headerTimeout_4152_); +lean_inc(v_currentTimeout_4151_); +lean_inc(v_keepAliveTimeout_4150_); +lean_inc_ref(v_requestStream_4149_); +lean_inc_ref(v_machine_4147_); +lean_dec_ref(v_b_4141_); +goto v___jp_4189_; +} +else +{ +if (v___x_4214_ == 0) +{ +lean_inc(v_pendingHead_4158_); +lean_inc(v_expectData_4156_); +lean_inc(v_respStream_4154_); +lean_inc_ref(v_response_4153_); +lean_inc(v_headerTimeout_4152_); +lean_inc(v_currentTimeout_4151_); +lean_inc(v_keepAliveTimeout_4150_); +lean_inc_ref(v_requestStream_4149_); +lean_inc_ref(v_machine_4147_); +lean_dec_ref(v_b_4141_); +goto v___jp_4189_; +} +else +{ +lean_dec_ref(v___f_4186_); +lean_dec_ref(v___f_4163_); +lean_dec(v_prio_4139_); +lean_dec_ref(v_socket_4138_); +lean_dec_ref(v_connection_4137_); +lean_dec_ref(v_connectionContext_4136_); +lean_dec_ref(v_config_4135_); +lean_dec_ref(v_handler_4134_); +v_a_4144_ = v_b_4141_; +goto v___jp_4143_; +} +} +} +else +{ +lean_inc(v_pendingHead_4158_); +lean_inc(v_expectData_4156_); +lean_inc(v_respStream_4154_); +lean_inc_ref(v_response_4153_); +lean_inc(v_headerTimeout_4152_); +lean_inc(v_currentTimeout_4151_); +lean_inc(v_keepAliveTimeout_4150_); +lean_inc_ref(v_requestStream_4149_); +lean_inc_ref(v_machine_4147_); +lean_dec_ref(v_b_4141_); +goto v___jp_4189_; +} +} +else +{ +lean_inc(v_pendingHead_4158_); +lean_inc(v_expectData_4156_); +lean_inc(v_respStream_4154_); +lean_inc_ref(v_response_4153_); +lean_inc(v_headerTimeout_4152_); +lean_inc(v_currentTimeout_4151_); +lean_inc(v_keepAliveTimeout_4150_); +lean_inc_ref(v_requestStream_4149_); +lean_inc_ref(v_machine_4147_); +lean_dec_ref(v_b_4141_); +goto v___jp_4189_; +} +v___jp_4143_: +{ +lean_object* v___x_4145_; lean_object* v___x_4146_; +v___x_4145_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4145_, 0, v_a_4144_); +v___x_4146_ = lean_io_promise_resolve(v___x_4145_, v_promise_4140_); +lean_dec(v_promise_4140_); +return v___x_4146_; +} +v___jp_4165_: +{ +if (lean_obj_tag(v___y_4166_) == 0) +{ +lean_object* v_a_4167_; +lean_dec_ref(v___f_4163_); +v_a_4167_ = lean_ctor_get(v___y_4166_, 0); +lean_inc(v_a_4167_); +lean_dec_ref(v___y_4166_); +if (lean_obj_tag(v_a_4167_) == 0) +{ +lean_object* v_a_4168_; lean_object* v___x_4170_; uint8_t v_isShared_4171_; uint8_t v_isSharedCheck_4176_; +lean_dec(v_prio_4139_); +lean_dec_ref(v_socket_4138_); +lean_dec_ref(v_connection_4137_); +lean_dec_ref(v_connectionContext_4136_); +lean_dec_ref(v_config_4135_); +lean_dec_ref(v_handler_4134_); +v_a_4168_ = lean_ctor_get(v_a_4167_, 0); +v_isSharedCheck_4176_ = !lean_is_exclusive(v_a_4167_); +if (v_isSharedCheck_4176_ == 0) +{ +v___x_4170_ = v_a_4167_; +v_isShared_4171_ = v_isSharedCheck_4176_; +goto v_resetjp_4169_; +} +else +{ +lean_inc(v_a_4168_); +lean_dec(v_a_4167_); +v___x_4170_ = lean_box(0); +v_isShared_4171_ = v_isSharedCheck_4176_; +goto v_resetjp_4169_; +} +v_resetjp_4169_: +{ +lean_object* v___x_4173_; +if (v_isShared_4171_ == 0) +{ +v___x_4173_ = v___x_4170_; +goto v_reusejp_4172_; +} +else +{ +lean_object* v_reuseFailAlloc_4175_; +v_reuseFailAlloc_4175_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4175_, 0, v_a_4168_); +v___x_4173_ = v_reuseFailAlloc_4175_; +goto v_reusejp_4172_; +} +v_reusejp_4172_: +{ +lean_object* v___x_4174_; +v___x_4174_ = lean_io_promise_resolve(v___x_4173_, v_promise_4140_); +lean_dec(v_promise_4140_); +return v___x_4174_; +} +} +} +else +{ +lean_object* v_a_4177_; +v_a_4177_ = lean_ctor_get(v_a_4167_, 0); +lean_inc(v_a_4177_); +lean_dec_ref(v_a_4167_); +if (lean_obj_tag(v_a_4177_) == 0) +{ +lean_object* v_a_4178_; +lean_dec(v_prio_4139_); +lean_dec_ref(v_socket_4138_); +lean_dec_ref(v_connection_4137_); +lean_dec_ref(v_connectionContext_4136_); +lean_dec_ref(v_config_4135_); +lean_dec_ref(v_handler_4134_); +v_a_4178_ = lean_ctor_get(v_a_4177_, 0); +lean_inc(v_a_4178_); +lean_dec_ref(v_a_4177_); +v_a_4144_ = v_a_4178_; +goto v___jp_4143_; +} +else +{ +lean_object* v_a_4179_; +v_a_4179_ = lean_ctor_get(v_a_4177_, 0); +lean_inc(v_a_4179_); +lean_dec_ref(v_a_4177_); +v_b_4141_ = v_a_4179_; +goto _start; +} +} +} +else +{ +lean_object* v_a_4181_; lean_object* v___x_4182_; +lean_dec(v_promise_4140_); +lean_dec_ref(v_socket_4138_); +lean_dec_ref(v_connection_4137_); +lean_dec_ref(v_connectionContext_4136_); +lean_dec_ref(v_config_4135_); +lean_dec_ref(v_handler_4134_); +v_a_4181_ = lean_ctor_get(v___y_4166_, 0); +lean_inc_ref(v_a_4181_); +lean_dec_ref(v___y_4166_); +v___x_4182_ = l_BaseIO_chainTask___redArg(v_a_4181_, v___f_4163_, v_prio_4139_, v___x_4164_); +return v___x_4182_; +} +} +v___jp_4189_: +{ +lean_object* v___x_4190_; lean_object* v_snd_4191_; lean_object* v_output_4192_; lean_object* v_fst_4193_; lean_object* v_events_4194_; lean_object* v_data_4195_; lean_object* v_size_4196_; lean_object* v___x_4197_; lean_object* v___x_4198_; lean_object* v___f_4199_; lean_object* v___x_4200_; uint8_t v___x_4201_; +v___x_4190_ = l_Std_Http_Protocol_H1_Machine_step(v___x_4188_, v_machine_4147_); +v_snd_4191_ = lean_ctor_get(v___x_4190_, 1); +lean_inc(v_snd_4191_); +v_output_4192_ = lean_ctor_get(v_snd_4191_, 1); +lean_inc_ref(v_output_4192_); +v_fst_4193_ = lean_ctor_get(v___x_4190_, 0); +lean_inc(v_fst_4193_); +lean_dec_ref(v___x_4190_); +v_events_4194_ = lean_ctor_get(v_snd_4191_, 0); +lean_inc_ref_n(v_events_4194_, 2); +lean_dec(v_snd_4191_); +v_data_4195_ = lean_ctor_get(v_output_4192_, 0); +lean_inc_ref(v_data_4195_); +v_size_4196_ = lean_ctor_get(v_output_4192_, 1); +lean_inc(v_size_4196_); +lean_dec_ref(v_output_4192_); +v___x_4197_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_4197_, 0, v_fst_4193_); +lean_ctor_set(v___x_4197_, 1, v_requestStream_4149_); +lean_ctor_set(v___x_4197_, 2, v_keepAliveTimeout_4150_); +lean_ctor_set(v___x_4197_, 3, v_currentTimeout_4151_); +lean_ctor_set(v___x_4197_, 4, v_headerTimeout_4152_); +lean_ctor_set(v___x_4197_, 5, v_response_4153_); +lean_ctor_set(v___x_4197_, 6, v_respStream_4154_); +lean_ctor_set(v___x_4197_, 7, v_expectData_4156_); +lean_ctor_set(v___x_4197_, 8, v_pendingHead_4158_); +lean_ctor_set_uint8(v___x_4197_, sizeof(void*)*9, v_requiresData_4155_); +lean_ctor_set_uint8(v___x_4197_, sizeof(void*)*9 + 1, v_handlerDispatched_4157_); +v___x_4198_ = lean_box(v___x_4164_); +lean_inc_ref(v___f_4186_); +lean_inc_ref(v___x_4197_); +lean_inc_ref(v_connectionContext_4136_); +lean_inc_ref(v_config_4135_); +lean_inc_ref(v_handler_4134_); +v___f_4199_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9___boxed), 9, 7); +lean_closure_set(v___f_4199_, 0, v_handler_4134_); +lean_closure_set(v___f_4199_, 1, v_config_4135_); +lean_closure_set(v___f_4199_, 2, v_connectionContext_4136_); +lean_closure_set(v___f_4199_, 3, v_events_4194_); +lean_closure_set(v___f_4199_, 4, v___x_4197_); +lean_closure_set(v___f_4199_, 5, v___x_4198_); +lean_closure_set(v___f_4199_, 6, v___f_4186_); +v___x_4200_ = lean_unsigned_to_nat(0u); +v___x_4201_ = lean_nat_dec_lt(v___x_4200_, v_size_4196_); +lean_dec(v_size_4196_); +if (v___x_4201_ == 0) +{ +lean_object* v___x_4202_; lean_object* v___x_4203_; +lean_dec_ref(v___f_4199_); +lean_dec_ref(v_data_4195_); +v___x_4202_ = lean_box(0); +lean_inc_ref(v_connectionContext_4136_); +lean_inc_ref(v_config_4135_); +lean_inc_ref(v_handler_4134_); +v___x_4203_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__9(v_handler_4134_, v_config_4135_, v_connectionContext_4136_, v_events_4194_, v___x_4197_, v___x_4164_, v___f_4186_, v___x_4202_); +v___y_4166_ = v___x_4203_; +goto v___jp_4165_; +} +else +{ +lean_object* v___x_4204_; lean_object* v___x_4205_; lean_object* v___x_4206_; lean_object* v___x_4207_; lean_object* v___f_4208_; lean_object* v___x_4209_; +lean_dec_ref(v_events_4194_); +lean_dec_ref(v___f_4186_); +v___x_4204_ = l_Std_Http_Internal_Mock_Server_getSendChan(v_socket_4138_); +v___x_4205_ = l_Std_Http_Internal_Mock_sendAll(v___x_4204_, v_data_4195_); +v___x_4206_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4200_, v___x_4164_, v___x_4205_, v___f_4162_); +v___x_4207_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4200_, v___x_4164_, v___x_4206_, v___f_4187_); +v___f_4208_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__10___boxed), 4, 2); +lean_closure_set(v___f_4208_, 0, v___x_4197_); +lean_closure_set(v___f_4208_, 1, v___f_4199_); +v___x_4209_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4200_, v___x_4164_, v___x_4207_, v___f_4208_); +v___y_4166_ = v___x_4209_; +goto v___jp_4165_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___lam__3(lean_object* v_promise_4215_, lean_object* v_handler_4216_, lean_object* v_config_4217_, lean_object* v_connectionContext_4218_, lean_object* v_connection_4219_, lean_object* v_socket_4220_, lean_object* v_prio_4221_, lean_object* v_x_4222_){ +_start: +{ +if (lean_obj_tag(v_x_4222_) == 0) +{ +lean_object* v_a_4224_; lean_object* v___x_4226_; uint8_t v_isShared_4227_; uint8_t v_isSharedCheck_4232_; +lean_dec(v_prio_4221_); +lean_dec_ref(v_socket_4220_); +lean_dec_ref(v_connection_4219_); +lean_dec_ref(v_connectionContext_4218_); +lean_dec_ref(v_config_4217_); +lean_dec_ref(v_handler_4216_); +v_a_4224_ = lean_ctor_get(v_x_4222_, 0); +v_isSharedCheck_4232_ = !lean_is_exclusive(v_x_4222_); +if (v_isSharedCheck_4232_ == 0) +{ +v___x_4226_ = v_x_4222_; +v_isShared_4227_ = v_isSharedCheck_4232_; +goto v_resetjp_4225_; +} +else +{ +lean_inc(v_a_4224_); +lean_dec(v_x_4222_); +v___x_4226_ = lean_box(0); +v_isShared_4227_ = v_isSharedCheck_4232_; +goto v_resetjp_4225_; +} +v_resetjp_4225_: +{ +lean_object* v___x_4229_; +if (v_isShared_4227_ == 0) +{ +v___x_4229_ = v___x_4226_; +goto v_reusejp_4228_; +} +else +{ +lean_object* v_reuseFailAlloc_4231_; +v_reuseFailAlloc_4231_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4231_, 0, v_a_4224_); +v___x_4229_ = v_reuseFailAlloc_4231_; +goto v_reusejp_4228_; +} +v_reusejp_4228_: +{ +lean_object* v___x_4230_; +v___x_4230_ = lean_io_promise_resolve(v___x_4229_, v_promise_4215_); +lean_dec(v_promise_4215_); +return v___x_4230_; +} +} +} +else +{ +lean_object* v_a_4233_; lean_object* v___x_4235_; uint8_t v_isShared_4236_; uint8_t v_isSharedCheck_4244_; +v_a_4233_ = lean_ctor_get(v_x_4222_, 0); +v_isSharedCheck_4244_ = !lean_is_exclusive(v_x_4222_); +if (v_isSharedCheck_4244_ == 0) +{ +v___x_4235_ = v_x_4222_; +v_isShared_4236_ = v_isSharedCheck_4244_; +goto v_resetjp_4234_; +} +else +{ +lean_inc(v_a_4233_); +lean_dec(v_x_4222_); +v___x_4235_ = lean_box(0); +v_isShared_4236_ = v_isSharedCheck_4244_; +goto v_resetjp_4234_; +} +v_resetjp_4234_: +{ +if (lean_obj_tag(v_a_4233_) == 0) +{ +lean_object* v_a_4237_; lean_object* v___x_4239_; +lean_dec(v_prio_4221_); +lean_dec_ref(v_socket_4220_); +lean_dec_ref(v_connection_4219_); +lean_dec_ref(v_connectionContext_4218_); +lean_dec_ref(v_config_4217_); +lean_dec_ref(v_handler_4216_); +v_a_4237_ = lean_ctor_get(v_a_4233_, 0); +lean_inc(v_a_4237_); +lean_dec_ref(v_a_4233_); +if (v_isShared_4236_ == 0) +{ +lean_ctor_set(v___x_4235_, 0, v_a_4237_); +v___x_4239_ = v___x_4235_; +goto v_reusejp_4238_; +} +else +{ +lean_object* v_reuseFailAlloc_4241_; +v_reuseFailAlloc_4241_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4241_, 0, v_a_4237_); +v___x_4239_ = v_reuseFailAlloc_4241_; +goto v_reusejp_4238_; +} +v_reusejp_4238_: +{ +lean_object* v___x_4240_; +v___x_4240_ = lean_io_promise_resolve(v___x_4239_, v_promise_4215_); +lean_dec(v_promise_4215_); +return v___x_4240_; +} +} +else +{ +lean_object* v_a_4242_; lean_object* v___x_4243_; +lean_del_object(v___x_4235_); +v_a_4242_ = lean_ctor_get(v_a_4233_, 0); +lean_inc(v_a_4242_); +lean_dec_ref(v_a_4233_); +v___x_4243_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7(v_handler_4216_, v_config_4217_, v_connectionContext_4218_, v_connection_4219_, v_socket_4220_, v_prio_4221_, v_promise_4215_, v_a_4242_); +return v___x_4243_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7___boxed(lean_object* v_handler_4245_, lean_object* v_config_4246_, lean_object* v_connectionContext_4247_, lean_object* v_connection_4248_, lean_object* v_socket_4249_, lean_object* v_prio_4250_, lean_object* v_promise_4251_, lean_object* v_b_4252_, lean_object* v_a_4253_){ +_start: +{ +lean_object* v_res_4254_; +v_res_4254_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7(v_handler_4245_, v_config_4246_, v_connectionContext_4247_, v_connection_4248_, v_socket_4249_, v_prio_4250_, v_promise_4251_, v_b_4252_); +return v_res_4254_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8(lean_object* v_a_4255_, lean_object* v_x_4256_){ +_start: +{ +if (lean_obj_tag(v_x_4256_) == 0) +{ +lean_object* v_a_4258_; lean_object* v___x_4260_; uint8_t v_isShared_4261_; uint8_t v_isSharedCheck_4266_; +v_a_4258_ = lean_ctor_get(v_x_4256_, 0); +v_isSharedCheck_4266_ = !lean_is_exclusive(v_x_4256_); +if (v_isSharedCheck_4266_ == 0) +{ +v___x_4260_ = v_x_4256_; +v_isShared_4261_ = v_isSharedCheck_4266_; +goto v_resetjp_4259_; +} +else +{ +lean_inc(v_a_4258_); +lean_dec(v_x_4256_); +v___x_4260_ = lean_box(0); +v_isShared_4261_ = v_isSharedCheck_4266_; +goto v_resetjp_4259_; +} +v_resetjp_4259_: +{ +lean_object* v___x_4263_; +if (v_isShared_4261_ == 0) +{ +v___x_4263_ = v___x_4260_; +goto v_reusejp_4262_; +} +else +{ +lean_object* v_reuseFailAlloc_4265_; +v_reuseFailAlloc_4265_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4265_, 0, v_a_4258_); +v___x_4263_ = v_reuseFailAlloc_4265_; +goto v_reusejp_4262_; +} +v_reusejp_4262_: +{ +lean_object* v___x_4264_; +v___x_4264_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4264_, 0, v___x_4263_); +return v___x_4264_; +} +} +} +else +{ +lean_object* v___x_4267_; lean_object* v___x_4268_; +lean_dec_ref(v_x_4256_); +v___x_4267_ = l_IO_Promise_result_x21___redArg(v_a_4255_); +v___x_4268_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4268_, 0, v___x_4267_); +return v___x_4268_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8___boxed(lean_object* v_a_4269_, lean_object* v_x_4270_, lean_object* v___y_4271_){ +_start: +{ +lean_object* v_res_4272_; +v_res_4272_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8(v_a_4269_, v_x_4270_); +lean_dec(v_a_4269_); +return v_res_4272_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9(lean_object* v_handler_4273_, lean_object* v_config_4274_, lean_object* v_connectionContext_4275_, lean_object* v_connection_4276_, lean_object* v_socket_4277_, lean_object* v___x_4278_, lean_object* v___x_4279_, uint8_t v___x_4280_, lean_object* v_x_4281_){ +_start: +{ +if (lean_obj_tag(v_x_4281_) == 0) +{ +lean_object* v_a_4283_; lean_object* v___x_4285_; uint8_t v_isShared_4286_; uint8_t v_isSharedCheck_4291_; +lean_dec_ref(v___x_4279_); +lean_dec(v___x_4278_); +lean_dec(v_socket_4277_); +lean_dec_ref(v_connection_4276_); +lean_dec_ref(v_connectionContext_4275_); +lean_dec_ref(v_config_4274_); +lean_dec_ref(v_handler_4273_); +v_a_4283_ = lean_ctor_get(v_x_4281_, 0); +v_isSharedCheck_4291_ = !lean_is_exclusive(v_x_4281_); +if (v_isSharedCheck_4291_ == 0) +{ +v___x_4285_ = v_x_4281_; +v_isShared_4286_ = v_isSharedCheck_4291_; +goto v_resetjp_4284_; +} +else +{ +lean_inc(v_a_4283_); +lean_dec(v_x_4281_); +v___x_4285_ = lean_box(0); +v_isShared_4286_ = v_isSharedCheck_4291_; +goto v_resetjp_4284_; +} +v_resetjp_4284_: +{ +lean_object* v___x_4288_; +if (v_isShared_4286_ == 0) +{ +v___x_4288_ = v___x_4285_; +goto v_reusejp_4287_; +} +else +{ +lean_object* v_reuseFailAlloc_4290_; +v_reuseFailAlloc_4290_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4290_, 0, v_a_4283_); +v___x_4288_ = v_reuseFailAlloc_4290_; +goto v_reusejp_4287_; +} +v_reusejp_4287_: +{ +lean_object* v___x_4289_; +v___x_4289_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4289_, 0, v___x_4288_); +return v___x_4289_; +} +} +} +else +{ +lean_object* v_a_4292_; lean_object* v___x_4294_; uint8_t v_isShared_4295_; uint8_t v_isSharedCheck_4303_; +v_a_4292_ = lean_ctor_get(v_x_4281_, 0); +v_isSharedCheck_4303_ = !lean_is_exclusive(v_x_4281_); +if (v_isSharedCheck_4303_ == 0) +{ +v___x_4294_ = v_x_4281_; +v_isShared_4295_ = v_isSharedCheck_4303_; +goto v_resetjp_4293_; +} +else +{ +lean_inc(v_a_4292_); +lean_dec(v_x_4281_); +v___x_4294_ = lean_box(0); +v_isShared_4295_ = v_isSharedCheck_4303_; +goto v_resetjp_4293_; +} +v_resetjp_4293_: +{ +lean_object* v___x_4296_; lean_object* v___f_4297_; lean_object* v___x_4299_; +lean_inc(v_a_4292_); +lean_inc(v___x_4278_); +v___x_4296_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__7(v_handler_4273_, v_config_4274_, v_connectionContext_4275_, v_connection_4276_, v_socket_4277_, v___x_4278_, v_a_4292_, v___x_4279_); +v___f_4297_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__8___boxed), 3, 1); +lean_closure_set(v___f_4297_, 0, v_a_4292_); +if (v_isShared_4295_ == 0) +{ +lean_ctor_set(v___x_4294_, 0, v___x_4296_); +v___x_4299_ = v___x_4294_; +goto v_reusejp_4298_; +} +else +{ +lean_object* v_reuseFailAlloc_4302_; +v_reuseFailAlloc_4302_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4302_, 0, v___x_4296_); +v___x_4299_ = v_reuseFailAlloc_4302_; +goto v_reusejp_4298_; +} +v_reusejp_4298_: +{ +lean_object* v___x_4300_; lean_object* v___x_4301_; +v___x_4300_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4300_, 0, v___x_4299_); +v___x_4301_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4278_, v___x_4280_, v___x_4300_, v___f_4297_); +return v___x_4301_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9___boxed(lean_object* v_handler_4304_, lean_object* v_config_4305_, lean_object* v_connectionContext_4306_, lean_object* v_connection_4307_, lean_object* v_socket_4308_, lean_object* v___x_4309_, lean_object* v___x_4310_, lean_object* v___x_4311_, lean_object* v_x_4312_, lean_object* v___y_4313_){ +_start: +{ +uint8_t v___x_20824__boxed_4314_; lean_object* v_res_4315_; +v___x_20824__boxed_4314_ = lean_unbox(v___x_4311_); +v_res_4315_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9(v_handler_4304_, v_config_4305_, v_connectionContext_4306_, v_connection_4307_, v_socket_4308_, v___x_4309_, v___x_4310_, v___x_20824__boxed_4314_, v_x_4312_); +return v_res_4315_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10(lean_object* v_config_4316_, lean_object* v_machine_4317_, lean_object* v_a_4318_, lean_object* v___x_4319_, lean_object* v_handler_4320_, lean_object* v_connectionContext_4321_, lean_object* v_connection_4322_, lean_object* v_socket_4323_, lean_object* v___f_4324_, lean_object* v_x_4325_){ +_start: +{ +if (lean_obj_tag(v_x_4325_) == 0) +{ +lean_object* v_a_4327_; lean_object* v___x_4329_; uint8_t v_isShared_4330_; uint8_t v_isSharedCheck_4335_; +lean_dec_ref(v___f_4324_); +lean_dec(v_socket_4323_); +lean_dec_ref(v_connection_4322_); +lean_dec_ref(v_connectionContext_4321_); +lean_dec_ref(v_handler_4320_); +lean_dec(v___x_4319_); +lean_dec_ref(v_a_4318_); +lean_dec_ref(v_machine_4317_); +lean_dec_ref(v_config_4316_); +v_a_4327_ = lean_ctor_get(v_x_4325_, 0); +v_isSharedCheck_4335_ = !lean_is_exclusive(v_x_4325_); +if (v_isSharedCheck_4335_ == 0) +{ +v___x_4329_ = v_x_4325_; +v_isShared_4330_ = v_isSharedCheck_4335_; +goto v_resetjp_4328_; +} +else +{ +lean_inc(v_a_4327_); +lean_dec(v_x_4325_); +v___x_4329_ = lean_box(0); +v_isShared_4330_ = v_isSharedCheck_4335_; +goto v_resetjp_4328_; +} +v_resetjp_4328_: +{ +lean_object* v___x_4332_; +if (v_isShared_4330_ == 0) +{ +v___x_4332_ = v___x_4329_; +goto v_reusejp_4331_; +} +else +{ +lean_object* v_reuseFailAlloc_4334_; +v_reuseFailAlloc_4334_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4334_, 0, v_a_4327_); +v___x_4332_ = v_reuseFailAlloc_4334_; +goto v_reusejp_4331_; +} +v_reusejp_4331_: +{ +lean_object* v___x_4333_; +v___x_4333_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4333_, 0, v___x_4332_); +return v___x_4333_; +} +} +} +else +{ +lean_object* v_a_4336_; lean_object* v___x_4338_; uint8_t v_isShared_4339_; uint8_t v_isSharedCheck_4355_; +v_a_4336_ = lean_ctor_get(v_x_4325_, 0); +v_isSharedCheck_4355_ = !lean_is_exclusive(v_x_4325_); +if (v_isSharedCheck_4355_ == 0) +{ +v___x_4338_ = v_x_4325_; +v_isShared_4339_ = v_isSharedCheck_4355_; +goto v_resetjp_4337_; +} +else +{ +lean_inc(v_a_4336_); +lean_dec(v_x_4325_); +v___x_4338_ = lean_box(0); +v_isShared_4339_ = v_isSharedCheck_4355_; +goto v_resetjp_4337_; +} +v_resetjp_4337_: +{ +lean_object* v_keepAliveTimeout_4340_; lean_object* v___x_4341_; lean_object* v___x_4342_; uint8_t v___x_4343_; lean_object* v___x_4344_; lean_object* v___x_4345_; lean_object* v___x_4346_; lean_object* v___x_4347_; lean_object* v___f_4348_; lean_object* v___x_4350_; +v_keepAliveTimeout_4340_ = lean_ctor_get(v_config_4316_, 5); +lean_inc_n(v_keepAliveTimeout_4340_, 2); +v___x_4341_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4341_, 0, v_keepAliveTimeout_4340_); +v___x_4342_ = lean_box(0); +v___x_4343_ = 0; +v___x_4344_ = lean_alloc_ctor(0, 9, 2); +lean_ctor_set(v___x_4344_, 0, v_machine_4317_); +lean_ctor_set(v___x_4344_, 1, v_a_4318_); +lean_ctor_set(v___x_4344_, 2, v___x_4341_); +lean_ctor_set(v___x_4344_, 3, v_keepAliveTimeout_4340_); +lean_ctor_set(v___x_4344_, 4, v___x_4342_); +lean_ctor_set(v___x_4344_, 5, v_a_4336_); +lean_ctor_set(v___x_4344_, 6, v___x_4342_); +lean_ctor_set(v___x_4344_, 7, v___x_4319_); +lean_ctor_set(v___x_4344_, 8, v___x_4342_); +lean_ctor_set_uint8(v___x_4344_, sizeof(void*)*9, v___x_4343_); +lean_ctor_set_uint8(v___x_4344_, sizeof(void*)*9 + 1, v___x_4343_); +v___x_4345_ = lean_io_promise_new(); +v___x_4346_ = lean_unsigned_to_nat(0u); +v___x_4347_ = lean_box(v___x_4343_); +v___f_4348_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__9___boxed), 10, 8); +lean_closure_set(v___f_4348_, 0, v_handler_4320_); +lean_closure_set(v___f_4348_, 1, v_config_4316_); +lean_closure_set(v___f_4348_, 2, v_connectionContext_4321_); +lean_closure_set(v___f_4348_, 3, v_connection_4322_); +lean_closure_set(v___f_4348_, 4, v_socket_4323_); +lean_closure_set(v___f_4348_, 5, v___x_4346_); +lean_closure_set(v___f_4348_, 6, v___x_4344_); +lean_closure_set(v___f_4348_, 7, v___x_4347_); +if (v_isShared_4339_ == 0) +{ +lean_ctor_set(v___x_4338_, 0, v___x_4345_); +v___x_4350_ = v___x_4338_; +goto v_reusejp_4349_; +} +else +{ +lean_object* v_reuseFailAlloc_4354_; +v_reuseFailAlloc_4354_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4354_, 0, v___x_4345_); +v___x_4350_ = v_reuseFailAlloc_4354_; +goto v_reusejp_4349_; +} +v_reusejp_4349_: +{ +lean_object* v___x_4351_; lean_object* v___x_4352_; lean_object* v___x_4353_; +v___x_4351_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4351_, 0, v___x_4350_); +v___x_4352_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4346_, v___x_4343_, v___x_4351_, v___f_4348_); +v___x_4353_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4346_, v___x_4343_, v___x_4352_, v___f_4324_); +return v___x_4353_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10___boxed(lean_object* v_config_4356_, lean_object* v_machine_4357_, lean_object* v_a_4358_, lean_object* v___x_4359_, lean_object* v_handler_4360_, lean_object* v_connectionContext_4361_, lean_object* v_connection_4362_, lean_object* v_socket_4363_, lean_object* v___f_4364_, lean_object* v_x_4365_, lean_object* v___y_4366_){ +_start: +{ +lean_object* v_res_4367_; +v_res_4367_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10(v_config_4356_, v_machine_4357_, v_a_4358_, v___x_4359_, v_handler_4360_, v_connectionContext_4361_, v_connection_4362_, v_socket_4363_, v___f_4364_, v_x_4365_); +return v_res_4367_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11(lean_object* v_config_4368_, lean_object* v_machine_4369_, lean_object* v_handler_4370_, lean_object* v_connectionContext_4371_, lean_object* v_connection_4372_, lean_object* v_socket_4373_, lean_object* v___f_4374_, lean_object* v_x_4375_){ +_start: +{ +if (lean_obj_tag(v_x_4375_) == 0) +{ +lean_object* v_a_4377_; lean_object* v___x_4379_; uint8_t v_isShared_4380_; uint8_t v_isSharedCheck_4385_; +lean_dec_ref(v___f_4374_); +lean_dec(v_socket_4373_); +lean_dec_ref(v_connection_4372_); +lean_dec_ref(v_connectionContext_4371_); +lean_dec_ref(v_handler_4370_); +lean_dec_ref(v_machine_4369_); +lean_dec_ref(v_config_4368_); +v_a_4377_ = lean_ctor_get(v_x_4375_, 0); +v_isSharedCheck_4385_ = !lean_is_exclusive(v_x_4375_); +if (v_isSharedCheck_4385_ == 0) +{ +v___x_4379_ = v_x_4375_; +v_isShared_4380_ = v_isSharedCheck_4385_; +goto v_resetjp_4378_; +} +else +{ +lean_inc(v_a_4377_); +lean_dec(v_x_4375_); +v___x_4379_ = lean_box(0); +v_isShared_4380_ = v_isSharedCheck_4385_; +goto v_resetjp_4378_; +} +v_resetjp_4378_: +{ +lean_object* v___x_4382_; +if (v_isShared_4380_ == 0) +{ +v___x_4382_ = v___x_4379_; +goto v_reusejp_4381_; +} +else +{ +lean_object* v_reuseFailAlloc_4384_; +v_reuseFailAlloc_4384_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4384_, 0, v_a_4377_); +v___x_4382_ = v_reuseFailAlloc_4384_; +goto v_reusejp_4381_; +} +v_reusejp_4381_: +{ +lean_object* v___x_4383_; +v___x_4383_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4383_, 0, v___x_4382_); +return v___x_4383_; +} +} +} +else +{ +lean_object* v_a_4386_; lean_object* v___x_4388_; uint8_t v_isShared_4389_; uint8_t v_isSharedCheck_4400_; +v_a_4386_ = lean_ctor_get(v_x_4375_, 0); +v_isSharedCheck_4400_ = !lean_is_exclusive(v_x_4375_); +if (v_isSharedCheck_4400_ == 0) +{ +v___x_4388_ = v_x_4375_; +v_isShared_4389_ = v_isSharedCheck_4400_; +goto v_resetjp_4387_; +} +else +{ +lean_inc(v_a_4386_); +lean_dec(v_x_4375_); +v___x_4388_ = lean_box(0); +v_isShared_4389_ = v_isSharedCheck_4400_; +goto v_resetjp_4387_; +} +v_resetjp_4387_: +{ +lean_object* v___x_4390_; lean_object* v___x_4391_; lean_object* v___f_4392_; lean_object* v___x_4394_; +v___x_4390_ = lean_box(0); +v___x_4391_ = l_Std_CloseableChannel_new___redArg(v___x_4390_); +v___f_4392_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__10___boxed), 11, 9); +lean_closure_set(v___f_4392_, 0, v_config_4368_); +lean_closure_set(v___f_4392_, 1, v_machine_4369_); +lean_closure_set(v___f_4392_, 2, v_a_4386_); +lean_closure_set(v___f_4392_, 3, v___x_4390_); +lean_closure_set(v___f_4392_, 4, v_handler_4370_); +lean_closure_set(v___f_4392_, 5, v_connectionContext_4371_); +lean_closure_set(v___f_4392_, 6, v_connection_4372_); +lean_closure_set(v___f_4392_, 7, v_socket_4373_); +lean_closure_set(v___f_4392_, 8, v___f_4374_); +if (v_isShared_4389_ == 0) +{ +lean_ctor_set(v___x_4388_, 0, v___x_4391_); +v___x_4394_ = v___x_4388_; +goto v_reusejp_4393_; +} +else +{ +lean_object* v_reuseFailAlloc_4399_; +v_reuseFailAlloc_4399_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4399_, 0, v___x_4391_); +v___x_4394_ = v_reuseFailAlloc_4399_; +goto v_reusejp_4393_; +} +v_reusejp_4393_: +{ +lean_object* v___x_4395_; lean_object* v___x_4396_; uint8_t v___x_4397_; lean_object* v___x_4398_; +v___x_4395_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4395_, 0, v___x_4394_); +v___x_4396_ = lean_unsigned_to_nat(0u); +v___x_4397_ = 0; +v___x_4398_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4396_, v___x_4397_, v___x_4395_, v___f_4392_); +return v___x_4398_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11___boxed(lean_object* v_config_4401_, lean_object* v_machine_4402_, lean_object* v_handler_4403_, lean_object* v_connectionContext_4404_, lean_object* v_connection_4405_, lean_object* v_socket_4406_, lean_object* v___f_4407_, lean_object* v_x_4408_, lean_object* v___y_4409_){ +_start: +{ +lean_object* v_res_4410_; +v_res_4410_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11(v_config_4401_, v_machine_4402_, v_handler_4403_, v_connectionContext_4404_, v_connection_4405_, v_socket_4406_, v___f_4407_, v_x_4408_); +return v_res_4410_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2(lean_object* v_socket_4411_, lean_object* v_____r_4412_){ +_start: +{ +lean_object* v_val_4415_; lean_object* v___x_4417_; +v___x_4417_ = l_Std_Http_Internal_Mock_Server_close(v_socket_4411_); +if (lean_obj_tag(v___x_4417_) == 0) +{ +lean_object* v_a_4418_; lean_object* v___x_4420_; uint8_t v_isShared_4421_; uint8_t v_isSharedCheck_4425_; +v_a_4418_ = lean_ctor_get(v___x_4417_, 0); +v_isSharedCheck_4425_ = !lean_is_exclusive(v___x_4417_); +if (v_isSharedCheck_4425_ == 0) +{ +v___x_4420_ = v___x_4417_; +v_isShared_4421_ = v_isSharedCheck_4425_; +goto v_resetjp_4419_; +} +else +{ +lean_inc(v_a_4418_); +lean_dec(v___x_4417_); +v___x_4420_ = lean_box(0); +v_isShared_4421_ = v_isSharedCheck_4425_; +goto v_resetjp_4419_; +} +v_resetjp_4419_: +{ +lean_object* v___x_4423_; +if (v_isShared_4421_ == 0) +{ +lean_ctor_set_tag(v___x_4420_, 1); +v___x_4423_ = v___x_4420_; +goto v_reusejp_4422_; +} +else +{ +lean_object* v_reuseFailAlloc_4424_; +v_reuseFailAlloc_4424_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4424_, 0, v_a_4418_); +v___x_4423_ = v_reuseFailAlloc_4424_; +goto v_reusejp_4422_; +} +v_reusejp_4422_: +{ +v_val_4415_ = v___x_4423_; +goto v___jp_4414_; +} +} +} +else +{ +lean_object* v_a_4426_; lean_object* v___x_4428_; uint8_t v_isShared_4429_; uint8_t v_isSharedCheck_4433_; +v_a_4426_ = lean_ctor_get(v___x_4417_, 0); +v_isSharedCheck_4433_ = !lean_is_exclusive(v___x_4417_); +if (v_isSharedCheck_4433_ == 0) +{ +v___x_4428_ = v___x_4417_; +v_isShared_4429_ = v_isSharedCheck_4433_; +goto v_resetjp_4427_; +} +else +{ +lean_inc(v_a_4426_); +lean_dec(v___x_4417_); +v___x_4428_ = lean_box(0); +v_isShared_4429_ = v_isSharedCheck_4433_; +goto v_resetjp_4427_; +} +v_resetjp_4427_: +{ +lean_object* v___x_4431_; +if (v_isShared_4429_ == 0) +{ +lean_ctor_set_tag(v___x_4428_, 0); +v___x_4431_ = v___x_4428_; +goto v_reusejp_4430_; +} +else +{ +lean_object* v_reuseFailAlloc_4432_; +v_reuseFailAlloc_4432_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4432_, 0, v_a_4426_); +v___x_4431_ = v_reuseFailAlloc_4432_; +goto v_reusejp_4430_; +} +v_reusejp_4430_: +{ +v_val_4415_ = v___x_4431_; +goto v___jp_4414_; +} +} +} +v___jp_4414_: +{ +lean_object* v___x_4416_; +v___x_4416_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4416_, 0, v_val_4415_); +return v___x_4416_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2___boxed(lean_object* v_socket_4434_, lean_object* v_____r_4435_, lean_object* v___y_4436_){ +_start: +{ +lean_object* v_res_4437_; +v_res_4437_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2(v_socket_4434_, v_____r_4435_); +return v_res_4437_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4(lean_object* v_close_4438_, lean_object* v___f_4439_, lean_object* v___f_4440_, lean_object* v_x_4441_){ +_start: +{ +if (lean_obj_tag(v_x_4441_) == 0) +{ +lean_object* v_a_4443_; lean_object* v___x_4445_; uint8_t v_isShared_4446_; uint8_t v_isSharedCheck_4451_; +lean_dec_ref(v___f_4440_); +lean_dec_ref(v___f_4439_); +lean_dec_ref(v_close_4438_); +v_a_4443_ = lean_ctor_get(v_x_4441_, 0); +v_isSharedCheck_4451_ = !lean_is_exclusive(v_x_4441_); +if (v_isSharedCheck_4451_ == 0) +{ +v___x_4445_ = v_x_4441_; +v_isShared_4446_ = v_isSharedCheck_4451_; +goto v_resetjp_4444_; +} +else +{ +lean_inc(v_a_4443_); +lean_dec(v_x_4441_); +v___x_4445_ = lean_box(0); +v_isShared_4446_ = v_isSharedCheck_4451_; +goto v_resetjp_4444_; +} +v_resetjp_4444_: +{ +lean_object* v___x_4448_; +if (v_isShared_4446_ == 0) +{ +v___x_4448_ = v___x_4445_; +goto v_reusejp_4447_; +} +else +{ +lean_object* v_reuseFailAlloc_4450_; +v_reuseFailAlloc_4450_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4450_, 0, v_a_4443_); +v___x_4448_ = v_reuseFailAlloc_4450_; +goto v_reusejp_4447_; +} +v_reusejp_4447_: +{ +lean_object* v___x_4449_; +v___x_4449_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4449_, 0, v___x_4448_); +return v___x_4449_; +} +} +} +else +{ +lean_object* v_a_4452_; uint8_t v___x_4453_; +v_a_4452_ = lean_ctor_get(v_x_4441_, 0); +lean_inc(v_a_4452_); +lean_dec_ref(v_x_4441_); +v___x_4453_ = lean_unbox(v_a_4452_); +if (v___x_4453_ == 0) +{ +lean_object* v___x_4454_; lean_object* v___x_4455_; uint8_t v___x_4456_; lean_object* v___x_4457_; +lean_dec_ref(v___f_4440_); +v___x_4454_ = lean_apply_1(v_close_4438_, lean_box(0)); +v___x_4455_ = lean_unsigned_to_nat(0u); +v___x_4456_ = lean_unbox(v_a_4452_); +lean_dec(v_a_4452_); +v___x_4457_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4455_, v___x_4456_, v___x_4454_, v___f_4439_); +return v___x_4457_; +} +else +{ +lean_object* v___x_4458_; lean_object* v___x_4459_; +lean_dec(v_a_4452_); +lean_dec_ref(v___f_4439_); +lean_dec_ref(v_close_4438_); +v___x_4458_ = lean_box(0); +v___x_4459_ = lean_apply_2(v___f_4440_, v___x_4458_, lean_box(0)); +return v___x_4459_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4___boxed(lean_object* v_close_4460_, lean_object* v___f_4461_, lean_object* v___f_4462_, lean_object* v_x_4463_, lean_object* v___y_4464_){ +_start: +{ +lean_object* v_res_4465_; +v_res_4465_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4(v_close_4460_, v___f_4461_, v___f_4462_, v_x_4463_); +return v_res_4465_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5(lean_object* v_respStream_4466_, lean_object* v___f_4467_, lean_object* v___f_4468_, lean_object* v_____r_4469_){ +_start: +{ +if (lean_obj_tag(v_respStream_4466_) == 1) +{ +lean_object* v_val_4471_; lean_object* v_close_4472_; lean_object* v_isClosed_4473_; lean_object* v___x_4474_; lean_object* v___f_4475_; lean_object* v___x_4476_; uint8_t v___x_4477_; lean_object* v___x_4478_; +v_val_4471_ = lean_ctor_get(v_respStream_4466_, 0); +lean_inc(v_val_4471_); +lean_dec_ref(v_respStream_4466_); +v_close_4472_ = lean_ctor_get(v_val_4471_, 1); +lean_inc_ref(v_close_4472_); +v_isClosed_4473_ = lean_ctor_get(v_val_4471_, 2); +lean_inc_ref(v_isClosed_4473_); +lean_dec(v_val_4471_); +v___x_4474_ = lean_apply_1(v_isClosed_4473_, lean_box(0)); +v___f_4475_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__4___boxed), 5, 3); +lean_closure_set(v___f_4475_, 0, v_close_4472_); +lean_closure_set(v___f_4475_, 1, v___f_4467_); +lean_closure_set(v___f_4475_, 2, v___f_4468_); +v___x_4476_ = lean_unsigned_to_nat(0u); +v___x_4477_ = 0; +v___x_4478_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4476_, v___x_4477_, v___x_4474_, v___f_4475_); +return v___x_4478_; +} +else +{ +lean_object* v___x_4479_; lean_object* v___x_4480_; +lean_dec_ref(v___f_4467_); +lean_dec(v_respStream_4466_); +v___x_4479_ = lean_box(0); +v___x_4480_ = lean_apply_2(v___f_4468_, v___x_4479_, lean_box(0)); +return v___x_4480_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5___boxed(lean_object* v_respStream_4481_, lean_object* v___f_4482_, lean_object* v___f_4483_, lean_object* v_____r_4484_, lean_object* v___y_4485_){ +_start: +{ +lean_object* v_res_4486_; +v_res_4486_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5(v_respStream_4481_, v___f_4482_, v___f_4483_, v_____r_4484_); +return v_res_4486_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7(lean_object* v_requestStream_4487_, lean_object* v___f_4488_, lean_object* v___f_4489_, lean_object* v_x_4490_){ +_start: +{ +if (lean_obj_tag(v_x_4490_) == 0) +{ +lean_object* v_a_4492_; lean_object* v___x_4494_; uint8_t v_isShared_4495_; uint8_t v_isSharedCheck_4500_; +lean_dec_ref(v___f_4489_); +lean_dec_ref(v___f_4488_); +lean_dec_ref(v_requestStream_4487_); +v_a_4492_ = lean_ctor_get(v_x_4490_, 0); +v_isSharedCheck_4500_ = !lean_is_exclusive(v_x_4490_); +if (v_isSharedCheck_4500_ == 0) +{ +v___x_4494_ = v_x_4490_; +v_isShared_4495_ = v_isSharedCheck_4500_; +goto v_resetjp_4493_; +} +else +{ +lean_inc(v_a_4492_); +lean_dec(v_x_4490_); +v___x_4494_ = lean_box(0); +v_isShared_4495_ = v_isSharedCheck_4500_; +goto v_resetjp_4493_; +} +v_resetjp_4493_: +{ +lean_object* v___x_4497_; +if (v_isShared_4495_ == 0) +{ +v___x_4497_ = v___x_4494_; +goto v_reusejp_4496_; +} +else +{ +lean_object* v_reuseFailAlloc_4499_; +v_reuseFailAlloc_4499_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4499_, 0, v_a_4492_); +v___x_4497_ = v_reuseFailAlloc_4499_; +goto v_reusejp_4496_; +} +v_reusejp_4496_: +{ +lean_object* v___x_4498_; +v___x_4498_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4498_, 0, v___x_4497_); +return v___x_4498_; +} +} +} +else +{ +lean_object* v_a_4501_; uint8_t v___x_4502_; +v_a_4501_ = lean_ctor_get(v_x_4490_, 0); +lean_inc(v_a_4501_); +lean_dec_ref(v_x_4490_); +v___x_4502_ = lean_unbox(v_a_4501_); +if (v___x_4502_ == 0) +{ +lean_object* v___x_4503_; lean_object* v___x_4504_; uint8_t v___x_4505_; lean_object* v___x_4506_; +lean_dec_ref(v___f_4489_); +v___x_4503_ = l_Std_Http_Body_Stream_close(v_requestStream_4487_); +v___x_4504_ = lean_unsigned_to_nat(0u); +v___x_4505_ = lean_unbox(v_a_4501_); +lean_dec(v_a_4501_); +v___x_4506_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4504_, v___x_4505_, v___x_4503_, v___f_4488_); +return v___x_4506_; +} +else +{ +lean_object* v___x_4507_; lean_object* v___x_4508_; +lean_dec(v_a_4501_); +lean_dec_ref(v___f_4488_); +lean_dec_ref(v_requestStream_4487_); +v___x_4507_ = lean_box(0); +v___x_4508_ = lean_apply_2(v___f_4489_, v___x_4507_, lean_box(0)); +return v___x_4508_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7___boxed(lean_object* v_requestStream_4509_, lean_object* v___f_4510_, lean_object* v___f_4511_, lean_object* v_x_4512_, lean_object* v___y_4513_){ +_start: +{ +lean_object* v_res_4514_; +v_res_4514_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7(v_requestStream_4509_, v___f_4510_, v___f_4511_, v_x_4512_); +return v_res_4514_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6(lean_object* v___f_4515_, lean_object* v___f_4516_, lean_object* v___f_4517_, lean_object* v_x_4518_){ +_start: +{ +if (lean_obj_tag(v_x_4518_) == 0) +{ +lean_object* v_a_4520_; lean_object* v___x_4522_; uint8_t v_isShared_4523_; uint8_t v_isSharedCheck_4528_; +lean_dec_ref(v___f_4517_); +lean_dec_ref(v___f_4516_); +lean_dec_ref(v___f_4515_); +v_a_4520_ = lean_ctor_get(v_x_4518_, 0); +v_isSharedCheck_4528_ = !lean_is_exclusive(v_x_4518_); +if (v_isSharedCheck_4528_ == 0) +{ +v___x_4522_ = v_x_4518_; +v_isShared_4523_ = v_isSharedCheck_4528_; +goto v_resetjp_4521_; +} +else +{ +lean_inc(v_a_4520_); +lean_dec(v_x_4518_); +v___x_4522_ = lean_box(0); +v_isShared_4523_ = v_isSharedCheck_4528_; +goto v_resetjp_4521_; +} +v_resetjp_4521_: +{ +lean_object* v___x_4525_; +if (v_isShared_4523_ == 0) +{ +v___x_4525_ = v___x_4522_; +goto v_reusejp_4524_; +} +else +{ +lean_object* v_reuseFailAlloc_4527_; +v_reuseFailAlloc_4527_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4527_, 0, v_a_4520_); +v___x_4525_ = v_reuseFailAlloc_4527_; +goto v_reusejp_4524_; +} +v_reusejp_4524_: +{ +lean_object* v___x_4526_; +v___x_4526_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4526_, 0, v___x_4525_); +return v___x_4526_; +} +} +} +else +{ +lean_object* v_a_4529_; lean_object* v_requestStream_4530_; lean_object* v_respStream_4531_; lean_object* v___x_4532_; lean_object* v___f_4533_; lean_object* v___f_4534_; lean_object* v___f_4535_; lean_object* v___x_4536_; uint8_t v___x_4537_; lean_object* v___x_4538_; +v_a_4529_ = lean_ctor_get(v_x_4518_, 0); +lean_inc(v_a_4529_); +lean_dec_ref(v_x_4518_); +v_requestStream_4530_ = lean_ctor_get(v_a_4529_, 1); +lean_inc_ref_n(v_requestStream_4530_, 2); +v_respStream_4531_ = lean_ctor_get(v_a_4529_, 6); +lean_inc(v_respStream_4531_); +lean_dec(v_a_4529_); +v___x_4532_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_requestStream_4530_, v___f_4515_); +v___f_4533_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__5___boxed), 5, 3); +lean_closure_set(v___f_4533_, 0, v_respStream_4531_); +lean_closure_set(v___f_4533_, 1, v___f_4516_); +lean_closure_set(v___f_4533_, 2, v___f_4517_); +lean_inc_ref(v___f_4533_); +v___f_4534_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3___boxed), 3, 1); +lean_closure_set(v___f_4534_, 0, v___f_4533_); +v___f_4535_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__7___boxed), 5, 3); +lean_closure_set(v___f_4535_, 0, v_requestStream_4530_); +lean_closure_set(v___f_4535_, 1, v___f_4534_); +lean_closure_set(v___f_4535_, 2, v___f_4533_); +v___x_4536_ = lean_unsigned_to_nat(0u); +v___x_4537_ = 0; +v___x_4538_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4536_, v___x_4537_, v___x_4532_, v___f_4535_); +return v___x_4538_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6___boxed(lean_object* v___f_4539_, lean_object* v___f_4540_, lean_object* v___f_4541_, lean_object* v_x_4542_, lean_object* v___y_4543_){ +_start: +{ +lean_object* v_res_4544_; +v_res_4544_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6(v___f_4539_, v___f_4540_, v___f_4541_, v_x_4542_); +return v_res_4544_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0(lean_object* v_connection_4545_, lean_object* v_config_4546_, lean_object* v_connectionContext_4547_, lean_object* v_handler_4548_){ +_start: +{ +lean_object* v___x_4550_; lean_object* v_socket_4551_; lean_object* v_machine_4552_; lean_object* v___f_4553_; lean_object* v___f_4554_; lean_object* v___f_4555_; lean_object* v___f_4556_; lean_object* v___f_4557_; lean_object* v___x_4558_; uint8_t v___x_4559_; lean_object* v___x_4560_; +v___x_4550_ = l_Std_Http_Body_mkStream(); +v_socket_4551_ = lean_ctor_get(v_connection_4545_, 0); +lean_inc_n(v_socket_4551_, 2); +v_machine_4552_ = lean_ctor_get(v_connection_4545_, 1); +lean_inc_ref(v_machine_4552_); +v___f_4553_ = ((lean_object*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg___closed__1)); +v___f_4554_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__2___boxed), 3, 1); +lean_closure_set(v___f_4554_, 0, v_socket_4551_); +lean_inc_ref(v___f_4554_); +v___f_4555_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__3___boxed), 3, 1); +lean_closure_set(v___f_4555_, 0, v___f_4554_); +v___f_4556_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__6___boxed), 5, 3); +lean_closure_set(v___f_4556_, 0, v___f_4553_); +lean_closure_set(v___f_4556_, 1, v___f_4555_); +lean_closure_set(v___f_4556_, 2, v___f_4554_); +v___f_4557_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___lam__11___boxed), 9, 7); +lean_closure_set(v___f_4557_, 0, v_config_4546_); +lean_closure_set(v___f_4557_, 1, v_machine_4552_); +lean_closure_set(v___f_4557_, 2, v_handler_4548_); +lean_closure_set(v___f_4557_, 3, v_connectionContext_4547_); +lean_closure_set(v___f_4557_, 4, v_connection_4545_); +lean_closure_set(v___f_4557_, 5, v_socket_4551_); +lean_closure_set(v___f_4557_, 6, v___f_4556_); +v___x_4558_ = lean_unsigned_to_nat(0u); +v___x_4559_ = 0; +v___x_4560_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4558_, v___x_4559_, v___x_4550_, v___f_4557_); +return v___x_4560_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0___boxed(lean_object* v_connection_4561_, lean_object* v_config_4562_, lean_object* v_connectionContext_4563_, lean_object* v_handler_4564_, lean_object* v_a_4565_){ +_start: +{ +lean_object* v_res_4566_; +v_res_4566_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0(v_connection_4561_, v_config_4562_, v_connectionContext_4563_, v_handler_4564_); +return v_res_4566_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0(void){ +_start: +{ +uint8_t v___x_4567_; lean_object* v___x_4568_; +v___x_4567_ = 0; +v___x_4568_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v___x_4567_); +return v___x_4568_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1(void){ +_start: +{ +lean_object* v___x_4569_; lean_object* v___x_4570_; +v___x_4569_ = lean_unsigned_to_nat(4096u); +v___x_4570_ = lean_mk_empty_byte_array(v___x_4569_); +return v___x_4570_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2(void){ +_start: +{ +lean_object* v___x_4571_; lean_object* v___x_4572_; +v___x_4571_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__1); +v___x_4572_ = l_ByteArray_mkIterator(v___x_4571_); +return v___x_4572_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3(void){ +_start: +{ +uint8_t v___x_4573_; lean_object* v___x_4574_; lean_object* v___x_4575_; lean_object* v___x_4576_; lean_object* v___x_4577_; lean_object* v___x_4578_; +v___x_4573_ = 0; +v___x_4574_ = lean_unsigned_to_nat(0u); +v___x_4575_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__0); +v___x_4576_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__2); +v___x_4577_ = lean_box(0); +v___x_4578_ = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(v___x_4578_, 0, v___x_4577_); +lean_ctor_set(v___x_4578_, 1, v___x_4576_); +lean_ctor_set(v___x_4578_, 2, v___x_4575_); +lean_ctor_set(v___x_4578_, 3, v___x_4574_); +lean_ctor_set(v___x_4578_, 4, v___x_4574_); +lean_ctor_set(v___x_4578_, 5, v___x_4574_); +lean_ctor_set_uint8(v___x_4578_, sizeof(void*)*6, v___x_4573_); +return v___x_4578_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7(void){ +_start: +{ +uint8_t v___x_4586_; lean_object* v___x_4587_; +v___x_4586_ = 1; +v___x_4587_ = l_Std_Http_Protocol_H1_instEmptyCollectionHead(v___x_4586_); +return v___x_4587_; +} +} +static lean_object* _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8(void){ +_start: +{ +lean_object* v___x_4588_; uint8_t v___x_4589_; lean_object* v___x_4590_; lean_object* v___x_4591_; lean_object* v___x_4592_; lean_object* v___x_4593_; lean_object* v___x_4594_; lean_object* v___x_4595_; +v___x_4588_ = lean_unsigned_to_nat(0u); +v___x_4589_ = 0; +v___x_4590_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__7); +v___x_4591_ = lean_box(0); +v___x_4592_ = lean_box(0); +v___x_4593_ = ((lean_object*)(l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__6)); +v___x_4594_ = ((lean_object*)(l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__4)); +v___x_4595_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_4595_, 0, v___x_4594_); +lean_ctor_set(v___x_4595_, 1, v___x_4593_); +lean_ctor_set(v___x_4595_, 2, v___x_4592_); +lean_ctor_set(v___x_4595_, 3, v___x_4591_); +lean_ctor_set(v___x_4595_, 4, v___x_4590_); +lean_ctor_set(v___x_4595_, 5, v___x_4588_); +lean_ctor_set_uint8(v___x_4595_, sizeof(void*)*6, v___x_4589_); +lean_ctor_set_uint8(v___x_4595_, sizeof(void*)*6 + 1, v___x_4589_); +lean_ctor_set_uint8(v___x_4595_, sizeof(void*)*6 + 2, v___x_4589_); +return v___x_4595_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0(lean_object* v_config_4596_, lean_object* v_client_4597_, lean_object* v_extensions_4598_, lean_object* v_handler_4599_, lean_object* v_x_4600_){ +_start: +{ +if (lean_obj_tag(v_x_4600_) == 0) +{ +lean_object* v_a_4602_; lean_object* v___x_4604_; uint8_t v_isShared_4605_; uint8_t v_isSharedCheck_4610_; +lean_dec_ref(v_handler_4599_); +lean_dec(v_extensions_4598_); +lean_dec_ref(v_client_4597_); +lean_dec_ref(v_config_4596_); +v_a_4602_ = lean_ctor_get(v_x_4600_, 0); +v_isSharedCheck_4610_ = !lean_is_exclusive(v_x_4600_); +if (v_isSharedCheck_4610_ == 0) +{ +v___x_4604_ = v_x_4600_; +v_isShared_4605_ = v_isSharedCheck_4610_; +goto v_resetjp_4603_; +} +else +{ +lean_inc(v_a_4602_); +lean_dec(v_x_4600_); +v___x_4604_ = lean_box(0); +v_isShared_4605_ = v_isSharedCheck_4610_; +goto v_resetjp_4603_; +} +v_resetjp_4603_: +{ +lean_object* v___x_4607_; +if (v_isShared_4605_ == 0) +{ +v___x_4607_ = v___x_4604_; +goto v_reusejp_4606_; +} +else +{ +lean_object* v_reuseFailAlloc_4609_; +v_reuseFailAlloc_4609_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4609_, 0, v_a_4602_); +v___x_4607_ = v_reuseFailAlloc_4609_; +goto v_reusejp_4606_; +} +v_reusejp_4606_: +{ +lean_object* v___x_4608_; +v___x_4608_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4608_, 0, v___x_4607_); +return v___x_4608_; +} +} +} +else +{ +lean_object* v_a_4611_; uint8_t v___x_4612_; lean_object* v___x_4613_; lean_object* v___x_4614_; lean_object* v___x_4615_; lean_object* v___x_4616_; lean_object* v___x_4617_; uint8_t v_enableKeepAlive_4618_; lean_object* v___x_4619_; lean_object* v___x_4620_; lean_object* v___x_4621_; +v_a_4611_ = lean_ctor_get(v_x_4600_, 0); +lean_inc(v_a_4611_); +lean_dec_ref(v_x_4600_); +v___x_4612_ = 0; +v___x_4613_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__3); +v___x_4614_ = ((lean_object*)(l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__5)); +v___x_4615_ = lean_box(0); +v___x_4616_ = lean_obj_once(&l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8, &l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8_once, _init_l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___closed__8); +v___x_4617_ = l_Std_Http_Config_toH1Config(v_config_4596_); +v_enableKeepAlive_4618_ = lean_ctor_get_uint8(v___x_4617_, sizeof(void*)*18); +v___x_4619_ = lean_alloc_ctor(0, 6, 3); +lean_ctor_set(v___x_4619_, 0, v___x_4613_); +lean_ctor_set(v___x_4619_, 1, v___x_4616_); +lean_ctor_set(v___x_4619_, 2, v___x_4617_); +lean_ctor_set(v___x_4619_, 3, v___x_4614_); +lean_ctor_set(v___x_4619_, 4, v___x_4615_); +lean_ctor_set(v___x_4619_, 5, v___x_4615_); +lean_ctor_set_uint8(v___x_4619_, sizeof(void*)*6, v_enableKeepAlive_4618_); +lean_ctor_set_uint8(v___x_4619_, sizeof(void*)*6 + 1, v___x_4612_); +lean_ctor_set_uint8(v___x_4619_, sizeof(void*)*6 + 2, v___x_4612_); +v___x_4620_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_4620_, 0, v_client_4597_); +lean_ctor_set(v___x_4620_, 1, v___x_4619_); +lean_ctor_set(v___x_4620_, 2, v_extensions_4598_); +v___x_4621_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0(v___x_4620_, v_config_4596_, v_a_4611_, v_handler_4599_); +return v___x_4621_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___boxed(lean_object* v_config_4622_, lean_object* v_client_4623_, lean_object* v_extensions_4624_, lean_object* v_handler_4625_, lean_object* v_x_4626_, lean_object* v___y_4627_){ +_start: +{ +lean_object* v_res_4628_; +v_res_4628_ = l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0(v_config_4622_, v_client_4623_, v_extensions_4624_, v_handler_4625_, v_x_4626_); +return v_res_4628_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0(lean_object* v_client_4629_, lean_object* v_handler_4630_, lean_object* v_config_4631_, lean_object* v_extensions_4632_, lean_object* v_a_4633_){ +_start: +{ +lean_object* v___f_4635_; lean_object* v___x_4636_; lean_object* v___x_4637_; lean_object* v___x_4638_; uint8_t v___x_4639_; lean_object* v___x_4640_; +v___f_4635_ = lean_alloc_closure((void*)(l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___lam__0___boxed), 6, 4); +lean_closure_set(v___f_4635_, 0, v_config_4631_); +lean_closure_set(v___f_4635_, 1, v_client_4629_); +lean_closure_set(v___f_4635_, 2, v_extensions_4632_); +lean_closure_set(v___f_4635_, 3, v_handler_4630_); +lean_inc_ref(v_a_4633_); +v___x_4636_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4636_, 0, v_a_4633_); +v___x_4637_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4637_, 0, v___x_4636_); +v___x_4638_ = lean_unsigned_to_nat(0u); +v___x_4639_ = 0; +v___x_4640_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4638_, v___x_4639_, v___x_4637_, v___f_4635_); +return v___x_4640_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0___boxed(lean_object* v_client_4641_, lean_object* v_handler_4642_, lean_object* v_config_4643_, lean_object* v_extensions_4644_, lean_object* v_a_4645_, lean_object* v_a_4646_){ +_start: +{ +lean_object* v_res_4647_; +v_res_4647_ = l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0(v_client_4641_, v_handler_4642_, v_config_4643_, v_extensions_4644_, v_a_4645_); +lean_dec_ref(v_a_4645_); +return v_res_4647_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4(lean_object* v_server_4648_, lean_object* v_handler_4649_, lean_object* v_config_4650_, lean_object* v___x_4651_, lean_object* v___x_4652_, lean_object* v_x_4653_){ +_start: +{ +if (lean_obj_tag(v_x_4653_) == 0) +{ +lean_object* v_a_4655_; lean_object* v___x_4657_; uint8_t v_isShared_4658_; uint8_t v_isSharedCheck_4663_; +lean_dec(v___x_4652_); +lean_dec(v___x_4651_); +lean_dec_ref(v_config_4650_); +lean_dec_ref(v_handler_4649_); +lean_dec_ref(v_server_4648_); +v_a_4655_ = lean_ctor_get(v_x_4653_, 0); +v_isSharedCheck_4663_ = !lean_is_exclusive(v_x_4653_); +if (v_isSharedCheck_4663_ == 0) +{ +v___x_4657_ = v_x_4653_; +v_isShared_4658_ = v_isSharedCheck_4663_; +goto v_resetjp_4656_; +} +else +{ +lean_inc(v_a_4655_); +lean_dec(v_x_4653_); +v___x_4657_ = lean_box(0); +v_isShared_4658_ = v_isSharedCheck_4663_; +goto v_resetjp_4656_; +} +v_resetjp_4656_: +{ +lean_object* v___x_4660_; +if (v_isShared_4658_ == 0) +{ +v___x_4660_ = v___x_4657_; +goto v_reusejp_4659_; +} +else +{ +lean_object* v_reuseFailAlloc_4662_; +v_reuseFailAlloc_4662_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4662_, 0, v_a_4655_); +v___x_4660_ = v_reuseFailAlloc_4662_; +goto v_reusejp_4659_; +} +v_reusejp_4659_: +{ +lean_object* v___x_4661_; +v___x_4661_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4661_, 0, v___x_4660_); +return v___x_4661_; +} +} +} +else +{ +lean_object* v_a_4664_; lean_object* v___x_4665_; lean_object* v___f_4666_; uint8_t v___x_4667_; lean_object* v___x_4668_; +v_a_4664_ = lean_ctor_get(v_x_4653_, 0); +lean_inc(v_a_4664_); +lean_dec_ref(v_x_4653_); +v___x_4665_ = l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0(v_server_4648_, v_handler_4649_, v_config_4650_, v___x_4651_, v_a_4664_); +lean_inc(v___x_4652_); +v___f_4666_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__3___boxed), 4, 2); +lean_closure_set(v___f_4666_, 0, v_a_4664_); +lean_closure_set(v___f_4666_, 1, v___x_4652_); +v___x_4667_ = 0; +v___x_4668_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4652_, v___x_4667_, v___x_4665_, v___f_4666_); +return v___x_4668_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4___boxed(lean_object* v_server_4669_, lean_object* v_handler_4670_, lean_object* v_config_4671_, lean_object* v___x_4672_, lean_object* v___x_4673_, lean_object* v_x_4674_, lean_object* v___y_4675_){ +_start: +{ +lean_object* v_res_4676_; +v_res_4676_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4(v_server_4669_, v_handler_4670_, v_config_4671_, v___x_4672_, v___x_4673_, v_x_4674_); +return v_res_4676_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5(lean_object* v_server_4677_, lean_object* v_handler_4678_, lean_object* v_config_4679_, lean_object* v___x_4680_, lean_object* v___f_4681_, lean_object* v_x_4682_){ +_start: +{ +if (lean_obj_tag(v_x_4682_) == 0) +{ +lean_object* v_a_4684_; lean_object* v___x_4686_; uint8_t v_isShared_4687_; uint8_t v_isSharedCheck_4692_; +lean_dec_ref(v___f_4681_); +lean_dec(v___x_4680_); +lean_dec_ref(v_config_4679_); +lean_dec_ref(v_handler_4678_); +lean_dec_ref(v_server_4677_); +v_a_4684_ = lean_ctor_get(v_x_4682_, 0); +v_isSharedCheck_4692_ = !lean_is_exclusive(v_x_4682_); +if (v_isSharedCheck_4692_ == 0) +{ +v___x_4686_ = v_x_4682_; +v_isShared_4687_ = v_isSharedCheck_4692_; +goto v_resetjp_4685_; +} +else +{ +lean_inc(v_a_4684_); +lean_dec(v_x_4682_); +v___x_4686_ = lean_box(0); +v_isShared_4687_ = v_isSharedCheck_4692_; +goto v_resetjp_4685_; +} +v_resetjp_4685_: +{ +lean_object* v___x_4689_; +if (v_isShared_4687_ == 0) +{ +v___x_4689_ = v___x_4686_; +goto v_reusejp_4688_; +} +else +{ +lean_object* v_reuseFailAlloc_4691_; +v_reuseFailAlloc_4691_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4691_, 0, v_a_4684_); +v___x_4689_ = v_reuseFailAlloc_4691_; +goto v_reusejp_4688_; +} +v_reusejp_4688_: +{ +lean_object* v___x_4690_; +v___x_4690_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4690_, 0, v___x_4689_); +return v___x_4690_; +} +} +} +else +{ +lean_object* v___x_4694_; uint8_t v_isShared_4695_; uint8_t v_isSharedCheck_4706_; +v_isSharedCheck_4706_ = !lean_is_exclusive(v_x_4682_); +if (v_isSharedCheck_4706_ == 0) +{ +lean_object* v_unused_4707_; +v_unused_4707_ = lean_ctor_get(v_x_4682_, 0); +lean_dec(v_unused_4707_); +v___x_4694_ = v_x_4682_; +v_isShared_4695_ = v_isSharedCheck_4706_; +goto v_resetjp_4693_; +} +else +{ +lean_dec(v_x_4682_); +v___x_4694_ = lean_box(0); +v_isShared_4695_ = v_isSharedCheck_4706_; +goto v_resetjp_4693_; +} +v_resetjp_4693_: +{ +lean_object* v___x_4696_; lean_object* v___x_4697_; lean_object* v___f_4698_; lean_object* v___x_4700_; +v___x_4696_ = l_Std_CancellationContext_new(); +v___x_4697_ = l_Std_Http_Extensions_empty; +lean_inc(v___x_4680_); +v___f_4698_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__4___boxed), 7, 5); +lean_closure_set(v___f_4698_, 0, v_server_4677_); +lean_closure_set(v___f_4698_, 1, v_handler_4678_); +lean_closure_set(v___f_4698_, 2, v_config_4679_); +lean_closure_set(v___f_4698_, 3, v___x_4697_); +lean_closure_set(v___f_4698_, 4, v___x_4680_); +if (v_isShared_4695_ == 0) +{ +lean_ctor_set(v___x_4694_, 0, v___x_4696_); +v___x_4700_ = v___x_4694_; +goto v_reusejp_4699_; +} +else +{ +lean_object* v_reuseFailAlloc_4705_; +v_reuseFailAlloc_4705_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4705_, 0, v___x_4696_); +v___x_4700_ = v_reuseFailAlloc_4705_; +goto v_reusejp_4699_; +} +v_reusejp_4699_: +{ +lean_object* v___x_4701_; uint8_t v___x_4702_; lean_object* v___x_4703_; lean_object* v___x_4704_; +v___x_4701_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4701_, 0, v___x_4700_); +v___x_4702_ = 0; +lean_inc(v___x_4680_); +v___x_4703_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4680_, v___x_4702_, v___x_4701_, v___f_4698_); +v___x_4704_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4680_, v___x_4702_, v___x_4703_, v___f_4681_); +return v___x_4704_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5___boxed(lean_object* v_server_4708_, lean_object* v_handler_4709_, lean_object* v_config_4710_, lean_object* v___x_4711_, lean_object* v___f_4712_, lean_object* v_x_4713_, lean_object* v___y_4714_){ +_start: +{ +lean_object* v_res_4715_; +v_res_4715_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5(v_server_4708_, v_handler_4709_, v_config_4710_, v___x_4711_, v___f_4712_, v_x_4713_); +return v_res_4715_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6(lean_object* v_client_4716_, lean_object* v_raw_4717_, lean_object* v___x_4718_, lean_object* v___f_4719_){ +_start: +{ +lean_object* v___x_4721_; uint8_t v___x_4722_; lean_object* v___x_4723_; +v___x_4721_ = l_Std_Http_Internal_Mock_Client_send(v_client_4716_, v_raw_4717_); +v___x_4722_ = 0; +v___x_4723_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4718_, v___x_4722_, v___x_4721_, v___f_4719_); +return v___x_4723_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6___boxed(lean_object* v_client_4724_, lean_object* v_raw_4725_, lean_object* v___x_4726_, lean_object* v___f_4727_, lean_object* v___y_4728_){ +_start: +{ +lean_object* v_res_4729_; +v_res_4729_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6(v_client_4724_, v_raw_4725_, v___x_4726_, v___f_4727_); +return v_res_4729_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__7(lean_object* v_x_4730_){ +_start: +{ +if (lean_obj_tag(v_x_4730_) == 0) +{ +lean_object* v_a_4731_; lean_object* v___x_4732_; +v_a_4731_ = lean_ctor_get(v_x_4730_, 0); +lean_inc(v_a_4731_); +lean_dec_ref(v_x_4730_); +v___x_4732_ = lean_task_pure(v_a_4731_); +return v___x_4732_; +} +else +{ +lean_object* v_a_4733_; +v_a_4733_ = lean_ctor_get(v_x_4730_, 0); +lean_inc_ref(v_a_4733_); +lean_dec_ref(v_x_4730_); +return v_a_4733_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw(lean_object* v_client_4736_, lean_object* v_server_4737_, lean_object* v_raw_4738_, lean_object* v_handler_4739_, lean_object* v_config_4740_){ +_start: +{ +lean_object* v___f_4742_; lean_object* v___f_4743_; lean_object* v___x_4744_; lean_object* v___f_4745_; lean_object* v___f_4746_; lean_object* v___x_4747_; lean_object* v___f_4748_; uint8_t v___x_4749_; lean_object* v___x_4750_; lean_object* v___x_4751_; +v___f_4742_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__0)); +lean_inc_ref(v_client_4736_); +v___f_4743_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1___boxed), 4, 2); +lean_closure_set(v___f_4743_, 0, v_client_4736_); +lean_closure_set(v___f_4743_, 1, v___f_4742_); +v___x_4744_ = lean_unsigned_to_nat(0u); +v___f_4745_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__5___boxed), 7, 5); +lean_closure_set(v___f_4745_, 0, v_server_4737_); +lean_closure_set(v___f_4745_, 1, v_handler_4739_); +lean_closure_set(v___f_4745_, 2, v_config_4740_); +lean_closure_set(v___f_4745_, 3, v___x_4744_); +lean_closure_set(v___f_4745_, 4, v___f_4743_); +v___f_4746_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6___boxed), 5, 4); +lean_closure_set(v___f_4746_, 0, v_client_4736_); +lean_closure_set(v___f_4746_, 1, v_raw_4738_); +lean_closure_set(v___f_4746_, 2, v___x_4744_); +lean_closure_set(v___f_4746_, 3, v___f_4745_); +v___x_4747_ = lean_io_as_task(v___f_4746_, v___x_4744_); +v___f_4748_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__1)); +v___x_4749_ = 1; +v___x_4750_ = lean_task_bind(v___x_4747_, v___f_4748_, v___x_4744_, v___x_4749_); +v___x_4751_ = lean_task_get_own(v___x_4750_); +if (lean_obj_tag(v___x_4751_) == 0) +{ +lean_object* v_a_4752_; lean_object* v___x_4754_; uint8_t v_isShared_4755_; uint8_t v_isSharedCheck_4759_; +v_a_4752_ = lean_ctor_get(v___x_4751_, 0); +v_isSharedCheck_4759_ = !lean_is_exclusive(v___x_4751_); +if (v_isSharedCheck_4759_ == 0) +{ +v___x_4754_ = v___x_4751_; +v_isShared_4755_ = v_isSharedCheck_4759_; +goto v_resetjp_4753_; +} +else +{ +lean_inc(v_a_4752_); +lean_dec(v___x_4751_); +v___x_4754_ = lean_box(0); +v_isShared_4755_ = v_isSharedCheck_4759_; +goto v_resetjp_4753_; +} +v_resetjp_4753_: +{ +lean_object* v___x_4757_; +if (v_isShared_4755_ == 0) +{ +lean_ctor_set_tag(v___x_4754_, 1); +v___x_4757_ = v___x_4754_; +goto v_reusejp_4756_; +} +else +{ +lean_object* v_reuseFailAlloc_4758_; +v_reuseFailAlloc_4758_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4758_, 0, v_a_4752_); +v___x_4757_ = v_reuseFailAlloc_4758_; +goto v_reusejp_4756_; +} +v_reusejp_4756_: +{ +return v___x_4757_; +} +} +} +else +{ +lean_object* v_a_4760_; lean_object* v___x_4762_; uint8_t v_isShared_4763_; uint8_t v_isSharedCheck_4767_; +v_a_4760_ = lean_ctor_get(v___x_4751_, 0); +v_isSharedCheck_4767_ = !lean_is_exclusive(v___x_4751_); +if (v_isSharedCheck_4767_ == 0) +{ +v___x_4762_ = v___x_4751_; +v_isShared_4763_ = v_isSharedCheck_4767_; +goto v_resetjp_4761_; +} +else +{ +lean_inc(v_a_4760_); +lean_dec(v___x_4751_); +v___x_4762_ = lean_box(0); +v_isShared_4763_ = v_isSharedCheck_4767_; +goto v_resetjp_4761_; +} +v_resetjp_4761_: +{ +lean_object* v___x_4765_; +if (v_isShared_4763_ == 0) +{ +lean_ctor_set_tag(v___x_4762_, 0); +v___x_4765_ = v___x_4762_; +goto v_reusejp_4764_; +} +else +{ +lean_object* v_reuseFailAlloc_4766_; +v_reuseFailAlloc_4766_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4766_, 0, v_a_4760_); +v___x_4765_ = v_reuseFailAlloc_4766_; +goto v_reusejp_4764_; +} +v_reusejp_4764_: +{ +return v___x_4765_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___boxed(lean_object* v_client_4768_, lean_object* v_server_4769_, lean_object* v_raw_4770_, lean_object* v_handler_4771_, lean_object* v_config_4772_, lean_object* v_a_4773_){ +_start: +{ +lean_object* v_res_4774_; +v_res_4774_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw(v_client_4768_, v_server_4769_, v_raw_4770_, v_handler_4771_, v_config_4772_); +return v_res_4774_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1(lean_object* v_00_u03b1_4775_, lean_object* v_00_u03b2_4776_, lean_object* v_mutex_4777_, lean_object* v_k_4778_){ +_start: +{ +lean_object* v___x_4780_; +v___x_4780_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___redArg(v_mutex_4777_, v_k_4778_); +return v___x_4780_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1___boxed(lean_object* v_00_u03b1_4781_, lean_object* v_00_u03b2_4782_, lean_object* v_mutex_4783_, lean_object* v_k_4784_, lean_object* v___y_4785_){ +_start: +{ +lean_object* v_res_4786_; +v_res_4786_ = l_Std_Mutex_atomically___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__1(v_00_u03b1_4781_, v_00_u03b2_4782_, v_mutex_4783_, v_k_4784_); +return v_res_4786_; +} +} +LEAN_EXPORT lean_object* l_Int_cast___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__3(lean_object* v_a_4787_){ +_start: +{ +lean_object* v___x_4788_; +v___x_4788_ = l_Rat_ofInt(v_a_4787_); +return v___x_4788_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2(lean_object* v_handler_4789_, lean_object* v_config_4790_, lean_object* v_event_4791_, lean_object* v_state_4792_){ +_start: +{ +lean_object* v___x_4794_; +v___x_4794_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___redArg(v_config_4790_, v_event_4791_, v_state_4792_); +return v___x_4794_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2___boxed(lean_object* v_handler_4795_, lean_object* v_config_4796_, lean_object* v_event_4797_, lean_object* v_state_4798_, lean_object* v_a_4799_){ +_start: +{ +lean_object* v_res_4800_; +v_res_4800_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2(v_handler_4795_, v_config_4796_, v_event_4797_, v_state_4798_); +lean_dec_ref(v_handler_4795_); +return v_res_4800_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3(lean_object* v_config_4801_, lean_object* v_handler_4802_, lean_object* v_sources_4803_){ +_start: +{ +lean_object* v___x_4805_; +v___x_4805_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___redArg(v_config_4801_, v_sources_4803_); +return v___x_4805_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3___boxed(lean_object* v_config_4806_, lean_object* v_handler_4807_, lean_object* v_sources_4808_, lean_object* v_a_4809_){ +_start: +{ +lean_object* v_res_4810_; +v_res_4810_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_pollNextEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__3(v_config_4806_, v_handler_4807_, v_sources_4808_); +lean_dec_ref(v_handler_4807_); +lean_dec_ref(v_config_4806_); +return v_res_4810_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4(lean_object* v_00_u03b2_4811_, lean_object* v_socket_4812_, lean_object* v_connectionContext_4813_, lean_object* v_state_4814_){ +_start: +{ +lean_object* v___x_4816_; +v___x_4816_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___redArg(v_socket_4812_, v_connectionContext_4813_, v_state_4814_); +return v___x_4816_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4___boxed(lean_object* v_00_u03b2_4817_, lean_object* v_socket_4818_, lean_object* v_connectionContext_4819_, lean_object* v_state_4820_, lean_object* v_a_4821_){ +_start: +{ +lean_object* v_res_4822_; +v_res_4822_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_buildPollSources___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__4(v_00_u03b2_4817_, v_socket_4818_, v_connectionContext_4819_, v_state_4820_); +return v_res_4822_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11(lean_object* v_handler_4823_, lean_object* v_machine_4824_, lean_object* v_head_4825_, lean_object* v_config_4826_, lean_object* v_connectionContext_4827_){ +_start: +{ +lean_object* v___x_4829_; +v___x_4829_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___redArg(v_machine_4824_, v_config_4826_, v_connectionContext_4827_); +return v___x_4829_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11___boxed(lean_object* v_handler_4830_, lean_object* v_machine_4831_, lean_object* v_head_4832_, lean_object* v_config_4833_, lean_object* v_connectionContext_4834_, lean_object* v_a_4835_){ +_start: +{ +lean_object* v_res_4836_; +v_res_4836_ = l___private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleContinueEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_processH1Events___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__6_spec__11(v_handler_4830_, v_machine_4831_, v_head_4832_, v_config_4833_, v_connectionContext_4834_); +lean_dec_ref(v_head_4832_); +lean_dec_ref(v_handler_4830_); +return v_res_4836_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7(lean_object* v_00_u03b2_4837_, lean_object* v_m_4838_, lean_object* v_a_4839_){ +_start: +{ +uint8_t v___x_4840_; +v___x_4840_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___redArg(v_m_4838_, v_a_4839_); +return v___x_4840_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7___boxed(lean_object* v_00_u03b2_4841_, lean_object* v_m_4842_, lean_object* v_a_4843_){ +_start: +{ +uint8_t v_res_4844_; lean_object* v_r_4845_; +v_res_4844_ = l_Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7(v_00_u03b2_4841_, v_m_4842_, v_a_4843_); +lean_dec_ref(v_a_4843_); +lean_dec_ref(v_m_4842_); +v_r_4845_ = lean_box(v_res_4844_); +return v_r_4845_; +} +} +LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13(lean_object* v_00_u03b2_4846_, lean_object* v_a_4847_, lean_object* v_x_4848_){ +_start: +{ +uint8_t v___x_4849_; +v___x_4849_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___redArg(v_a_4847_, v_x_4848_); +return v___x_4849_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13___boxed(lean_object* v_00_u03b2_4850_, lean_object* v_a_4851_, lean_object* v_x_4852_){ +_start: +{ +uint8_t v_res_4853_; lean_object* v_r_4854_; +v_res_4853_ = l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__7_spec__13(v_00_u03b2_4850_, v_a_4851_, v_x_4852_); +lean_dec(v_x_4852_); +lean_dec_ref(v_a_4851_); +v_r_4854_ = lean_box(v_res_4853_); +return v_r_4854_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15(lean_object* v_00_u03b2_4855_, lean_object* v_data_4856_){ +_start: +{ +lean_object* v___x_4857_; +v___x_4857_ = l_Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15___redArg(v_data_4856_); +return v___x_4857_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19(lean_object* v_00_u03b2_4858_, lean_object* v_i_4859_, lean_object* v_source_4860_, lean_object* v_target_4861_){ +_start: +{ +lean_object* v___x_4862_; +v___x_4862_ = l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19___redArg(v_i_4859_, v_source_4860_, v_target_4861_); +return v___x_4862_; +} +} +LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23(lean_object* v_00_u03b2_4863_, lean_object* v_x_4864_, lean_object* v_x_4865_){ +_start: +{ +lean_object* v___x_4866_; +v___x_4866_ = l_Std_DHashMap_Internal_AssocList_foldlM___at___00__private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___00Std_DHashMap_Internal_Raw_u2080_expand___at___00Std_DHashMap_Internal_Raw_u2080_Const_alter___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_applyResponse___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handleRecvEvent___at___00__private_Std_Internal_Http_Server_Connection_0__Std_Http_Server_Connection_handle___at___00Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0_spec__0_spec__2_spec__5_spec__8_spec__15_spec__19_spec__23___redArg(v_x_4864_, v_x_4865_); +return v___x_4866_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3(lean_object* v_a_4867_, lean_object* v_x_4868_){ +_start: +{ +if (lean_obj_tag(v_x_4868_) == 0) +{ +lean_object* v___x_4870_; +lean_dec_ref(v_a_4867_); +v___x_4870_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4870_, 0, v_x_4868_); +return v___x_4870_; +} +else +{ +lean_object* v___x_4871_; lean_object* v___x_4872_; lean_object* v___f_4873_; lean_object* v___x_4874_; lean_object* v___x_4875_; lean_object* v___x_4876_; uint8_t v___x_4877_; lean_object* v___x_4878_; +v___x_4871_ = lean_box(2); +v___x_4872_ = l_Std_CancellationContext_cancel(v_a_4867_, v___x_4871_); +v___f_4873_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__2___boxed), 3, 1); +lean_closure_set(v___f_4873_, 0, v_x_4868_); +v___x_4874_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_4874_, 0, v___x_4872_); +v___x_4875_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4875_, 0, v___x_4874_); +v___x_4876_ = lean_unsigned_to_nat(0u); +v___x_4877_ = 0; +v___x_4878_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4876_, v___x_4877_, v___x_4875_, v___f_4873_); +return v___x_4878_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3___boxed(lean_object* v_a_4879_, lean_object* v_x_4880_, lean_object* v___y_4881_){ +_start: +{ +lean_object* v_res_4882_; +v_res_4882_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3(v_a_4879_, v_x_4880_); +return v_res_4882_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0(lean_object* v_server_4883_, lean_object* v_handler_4884_, lean_object* v_config_4885_, lean_object* v___x_4886_, lean_object* v_x_4887_){ +_start: +{ +if (lean_obj_tag(v_x_4887_) == 0) +{ +lean_object* v_a_4889_; lean_object* v___x_4891_; uint8_t v_isShared_4892_; uint8_t v_isSharedCheck_4897_; +lean_dec(v___x_4886_); +lean_dec_ref(v_config_4885_); +lean_dec_ref(v_handler_4884_); +lean_dec_ref(v_server_4883_); +v_a_4889_ = lean_ctor_get(v_x_4887_, 0); +v_isSharedCheck_4897_ = !lean_is_exclusive(v_x_4887_); +if (v_isSharedCheck_4897_ == 0) +{ +v___x_4891_ = v_x_4887_; +v_isShared_4892_ = v_isSharedCheck_4897_; +goto v_resetjp_4890_; +} +else +{ +lean_inc(v_a_4889_); +lean_dec(v_x_4887_); +v___x_4891_ = lean_box(0); +v_isShared_4892_ = v_isSharedCheck_4897_; +goto v_resetjp_4890_; +} +v_resetjp_4890_: +{ +lean_object* v___x_4894_; +if (v_isShared_4892_ == 0) +{ +v___x_4894_ = v___x_4891_; +goto v_reusejp_4893_; +} +else +{ +lean_object* v_reuseFailAlloc_4896_; +v_reuseFailAlloc_4896_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4896_, 0, v_a_4889_); +v___x_4894_ = v_reuseFailAlloc_4896_; +goto v_reusejp_4893_; +} +v_reusejp_4893_: +{ +lean_object* v___x_4895_; +v___x_4895_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4895_, 0, v___x_4894_); +return v___x_4895_; +} +} +} +else +{ +lean_object* v_a_4898_; lean_object* v___x_4899_; lean_object* v___f_4900_; lean_object* v___x_4901_; uint8_t v___x_4902_; lean_object* v___x_4903_; +v_a_4898_ = lean_ctor_get(v_x_4887_, 0); +lean_inc(v_a_4898_); +lean_dec_ref(v_x_4887_); +v___x_4899_ = l_Std_Http_Server_serveConnection___at___00__private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw_spec__0(v_server_4883_, v_handler_4884_, v_config_4885_, v___x_4886_, v_a_4898_); +v___f_4900_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__3___boxed), 3, 1); +lean_closure_set(v___f_4900_, 0, v_a_4898_); +v___x_4901_ = lean_unsigned_to_nat(0u); +v___x_4902_ = 0; +v___x_4903_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4901_, v___x_4902_, v___x_4899_, v___f_4900_); +return v___x_4903_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0___boxed(lean_object* v_server_4904_, lean_object* v_handler_4905_, lean_object* v_config_4906_, lean_object* v___x_4907_, lean_object* v_x_4908_, lean_object* v___y_4909_){ +_start: +{ +lean_object* v_res_4910_; +v_res_4910_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0(v_server_4904_, v_handler_4905_, v_config_4906_, v___x_4907_, v_x_4908_); +return v_res_4910_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1(lean_object* v_server_4911_, lean_object* v_handler_4912_, lean_object* v_config_4913_, lean_object* v___f_4914_, lean_object* v_x_4915_){ +_start: +{ +if (lean_obj_tag(v_x_4915_) == 0) +{ +lean_object* v_a_4917_; lean_object* v___x_4919_; uint8_t v_isShared_4920_; uint8_t v_isSharedCheck_4925_; +lean_dec_ref(v___f_4914_); +lean_dec_ref(v_config_4913_); +lean_dec_ref(v_handler_4912_); +lean_dec_ref(v_server_4911_); +v_a_4917_ = lean_ctor_get(v_x_4915_, 0); +v_isSharedCheck_4925_ = !lean_is_exclusive(v_x_4915_); +if (v_isSharedCheck_4925_ == 0) +{ +v___x_4919_ = v_x_4915_; +v_isShared_4920_ = v_isSharedCheck_4925_; +goto v_resetjp_4918_; +} +else +{ +lean_inc(v_a_4917_); +lean_dec(v_x_4915_); +v___x_4919_ = lean_box(0); +v_isShared_4920_ = v_isSharedCheck_4925_; +goto v_resetjp_4918_; +} +v_resetjp_4918_: +{ +lean_object* v___x_4922_; +if (v_isShared_4920_ == 0) +{ +v___x_4922_ = v___x_4919_; +goto v_reusejp_4921_; +} +else +{ +lean_object* v_reuseFailAlloc_4924_; +v_reuseFailAlloc_4924_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4924_, 0, v_a_4917_); +v___x_4922_ = v_reuseFailAlloc_4924_; +goto v_reusejp_4921_; +} +v_reusejp_4921_: +{ +lean_object* v___x_4923_; +v___x_4923_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4923_, 0, v___x_4922_); +return v___x_4923_; +} +} +} +else +{ +lean_object* v___x_4927_; uint8_t v_isShared_4928_; uint8_t v_isSharedCheck_4940_; +v_isSharedCheck_4940_ = !lean_is_exclusive(v_x_4915_); +if (v_isSharedCheck_4940_ == 0) +{ +lean_object* v_unused_4941_; +v_unused_4941_ = lean_ctor_get(v_x_4915_, 0); +lean_dec(v_unused_4941_); +v___x_4927_ = v_x_4915_; +v_isShared_4928_ = v_isSharedCheck_4940_; +goto v_resetjp_4926_; +} +else +{ +lean_dec(v_x_4915_); +v___x_4927_ = lean_box(0); +v_isShared_4928_ = v_isSharedCheck_4940_; +goto v_resetjp_4926_; +} +v_resetjp_4926_: +{ +lean_object* v___x_4929_; lean_object* v___x_4930_; lean_object* v___f_4931_; lean_object* v___x_4933_; +v___x_4929_ = l_Std_CancellationContext_new(); +v___x_4930_ = l_Std_Http_Extensions_empty; +v___f_4931_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__0___boxed), 6, 4); +lean_closure_set(v___f_4931_, 0, v_server_4911_); +lean_closure_set(v___f_4931_, 1, v_handler_4912_); +lean_closure_set(v___f_4931_, 2, v_config_4913_); +lean_closure_set(v___f_4931_, 3, v___x_4930_); +if (v_isShared_4928_ == 0) +{ +lean_ctor_set(v___x_4927_, 0, v___x_4929_); +v___x_4933_ = v___x_4927_; +goto v_reusejp_4932_; +} +else +{ +lean_object* v_reuseFailAlloc_4939_; +v_reuseFailAlloc_4939_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4939_, 0, v___x_4929_); +v___x_4933_ = v_reuseFailAlloc_4939_; +goto v_reusejp_4932_; +} +v_reusejp_4932_: +{ +lean_object* v___x_4934_; lean_object* v___x_4935_; uint8_t v___x_4936_; lean_object* v___x_4937_; lean_object* v___x_4938_; +v___x_4934_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4934_, 0, v___x_4933_); +v___x_4935_ = lean_unsigned_to_nat(0u); +v___x_4936_ = 0; +v___x_4937_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4935_, v___x_4936_, v___x_4934_, v___f_4931_); +v___x_4938_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4935_, v___x_4936_, v___x_4937_, v___f_4914_); +return v___x_4938_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1___boxed(lean_object* v_server_4942_, lean_object* v_handler_4943_, lean_object* v_config_4944_, lean_object* v___f_4945_, lean_object* v_x_4946_, lean_object* v___y_4947_){ +_start: +{ +lean_object* v_res_4948_; +v_res_4948_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1(v_server_4942_, v_handler_4943_, v_config_4944_, v___f_4945_, v_x_4946_); +return v_res_4948_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2(lean_object* v___x_4955_, lean_object* v___f_4956_, lean_object* v_client_4957_, lean_object* v_x_4958_){ +_start: +{ +lean_object* v_val_4961_; +if (lean_obj_tag(v_x_4958_) == 0) +{ +lean_object* v_a_4965_; lean_object* v___x_4967_; uint8_t v_isShared_4968_; uint8_t v_isSharedCheck_4973_; +lean_dec_ref(v___f_4956_); +lean_dec(v___x_4955_); +v_a_4965_ = lean_ctor_get(v_x_4958_, 0); +v_isSharedCheck_4973_ = !lean_is_exclusive(v_x_4958_); +if (v_isSharedCheck_4973_ == 0) +{ +v___x_4967_ = v_x_4958_; +v_isShared_4968_ = v_isSharedCheck_4973_; +goto v_resetjp_4966_; +} +else +{ +lean_inc(v_a_4965_); +lean_dec(v_x_4958_); +v___x_4967_ = lean_box(0); +v_isShared_4968_ = v_isSharedCheck_4973_; +goto v_resetjp_4966_; +} +v_resetjp_4966_: +{ +lean_object* v___x_4970_; +if (v_isShared_4968_ == 0) +{ +v___x_4970_ = v___x_4967_; +goto v_reusejp_4969_; +} +else +{ +lean_object* v_reuseFailAlloc_4972_; +v_reuseFailAlloc_4972_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4972_, 0, v_a_4965_); +v___x_4970_ = v_reuseFailAlloc_4972_; +goto v_reusejp_4969_; +} +v_reusejp_4969_: +{ +lean_object* v___x_4971_; +v___x_4971_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4971_, 0, v___x_4970_); +return v___x_4971_; +} +} +} +else +{ +lean_object* v___x_4975_; uint8_t v_isShared_4976_; uint8_t v_isSharedCheck_4992_; +v_isSharedCheck_4992_ = !lean_is_exclusive(v_x_4958_); +if (v_isSharedCheck_4992_ == 0) +{ +lean_object* v_unused_4993_; +v_unused_4993_ = lean_ctor_get(v_x_4958_, 0); +lean_dec(v_unused_4993_); +v___x_4975_ = v_x_4958_; +v_isShared_4976_ = v_isSharedCheck_4992_; +goto v_resetjp_4974_; +} +else +{ +lean_dec(v_x_4958_); +v___x_4975_ = lean_box(0); +v_isShared_4976_ = v_isSharedCheck_4992_; +goto v_resetjp_4974_; +} +v_resetjp_4974_: +{ +lean_object* v___x_4977_; lean_object* v___x_4978_; +v___x_4977_ = l_Std_Http_Internal_Mock_Client_getSendChan(v_client_4957_); +v___x_4978_ = l_Std_CloseableChannel_close___redArg(v___x_4977_); +if (lean_obj_tag(v___x_4978_) == 0) +{ +lean_object* v_a_4979_; lean_object* v___x_4981_; +v_a_4979_ = lean_ctor_get(v___x_4978_, 0); +lean_inc(v_a_4979_); +lean_dec_ref(v___x_4978_); +if (v_isShared_4976_ == 0) +{ +lean_ctor_set(v___x_4975_, 0, v_a_4979_); +v___x_4981_ = v___x_4975_; +goto v_reusejp_4980_; +} +else +{ +lean_object* v_reuseFailAlloc_4982_; +v_reuseFailAlloc_4982_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4982_, 0, v_a_4979_); +v___x_4981_ = v_reuseFailAlloc_4982_; +goto v_reusejp_4980_; +} +v_reusejp_4980_: +{ +v_val_4961_ = v___x_4981_; +goto v___jp_4960_; +} +} +else +{ +lean_object* v_a_4983_; lean_object* v_a_4985_; uint8_t v___x_4989_; +v_a_4983_ = lean_ctor_get(v___x_4978_, 0); +lean_inc(v_a_4983_); +lean_dec_ref(v___x_4978_); +v___x_4989_ = lean_unbox(v_a_4983_); +lean_dec(v_a_4983_); +if (v___x_4989_ == 0) +{ +lean_object* v___x_4990_; +v___x_4990_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__1)); +v_a_4985_ = v___x_4990_; +goto v___jp_4984_; +} +else +{ +lean_object* v___x_4991_; +v___x_4991_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___closed__3)); +v_a_4985_ = v___x_4991_; +goto v___jp_4984_; +} +v___jp_4984_: +{ +lean_object* v___x_4987_; +lean_inc(v_a_4985_); +if (v_isShared_4976_ == 0) +{ +lean_ctor_set_tag(v___x_4975_, 0); +lean_ctor_set(v___x_4975_, 0, v_a_4985_); +v___x_4987_ = v___x_4975_; +goto v_reusejp_4986_; +} +else +{ +lean_object* v_reuseFailAlloc_4988_; +v_reuseFailAlloc_4988_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_4988_, 0, v_a_4985_); +v___x_4987_ = v_reuseFailAlloc_4988_; +goto v_reusejp_4986_; +} +v_reusejp_4986_: +{ +v_val_4961_ = v___x_4987_; +goto v___jp_4960_; +} +} +} +} +} +v___jp_4960_: +{ +lean_object* v___x_4962_; uint8_t v___x_4963_; lean_object* v___x_4964_; +v___x_4962_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4962_, 0, v_val_4961_); +v___x_4963_ = 0; +v___x_4964_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_4955_, v___x_4963_, v___x_4962_, v___f_4956_); +return v___x_4964_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___boxed(lean_object* v___x_4994_, lean_object* v___f_4995_, lean_object* v_client_4996_, lean_object* v_x_4997_, lean_object* v___y_4998_){ +_start: +{ +lean_object* v_res_4999_; +v_res_4999_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2(v___x_4994_, v___f_4995_, v_client_4996_, v_x_4997_); +lean_dec_ref(v_client_4996_); +return v_res_4999_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose(lean_object* v_client_5000_, lean_object* v_server_5001_, lean_object* v_raw_5002_, lean_object* v_handler_5003_, lean_object* v_config_5004_){ +_start: +{ +lean_object* v___f_5006_; lean_object* v___f_5007_; lean_object* v___f_5008_; lean_object* v___x_5009_; lean_object* v___f_5010_; lean_object* v___f_5011_; lean_object* v___x_5012_; lean_object* v___f_5013_; uint8_t v___x_5014_; lean_object* v___x_5015_; lean_object* v___x_5016_; +v___f_5006_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__0)); +lean_inc_ref_n(v_client_5000_, 2); +v___f_5007_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__1___boxed), 4, 2); +lean_closure_set(v___f_5007_, 0, v_client_5000_); +lean_closure_set(v___f_5007_, 1, v___f_5006_); +v___f_5008_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__1___boxed), 6, 4); +lean_closure_set(v___f_5008_, 0, v_server_5001_); +lean_closure_set(v___f_5008_, 1, v_handler_5003_); +lean_closure_set(v___f_5008_, 2, v_config_5004_); +lean_closure_set(v___f_5008_, 3, v___f_5007_); +v___x_5009_ = lean_unsigned_to_nat(0u); +v___f_5010_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___lam__2___boxed), 5, 3); +lean_closure_set(v___f_5010_, 0, v___x_5009_); +lean_closure_set(v___f_5010_, 1, v___f_5008_); +lean_closure_set(v___f_5010_, 2, v_client_5000_); +v___f_5011_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___lam__6___boxed), 5, 4); +lean_closure_set(v___f_5011_, 0, v_client_5000_); +lean_closure_set(v___f_5011_, 1, v_raw_5002_); +lean_closure_set(v___f_5011_, 2, v___x_5009_); +lean_closure_set(v___f_5011_, 3, v___f_5010_); +v___x_5012_ = lean_io_as_task(v___f_5011_, v___x_5009_); +v___f_5013_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw___closed__1)); +v___x_5014_ = 1; +v___x_5015_ = lean_task_bind(v___x_5012_, v___f_5013_, v___x_5009_, v___x_5014_); +v___x_5016_ = lean_task_get_own(v___x_5015_); +if (lean_obj_tag(v___x_5016_) == 0) +{ +lean_object* v_a_5017_; lean_object* v___x_5019_; uint8_t v_isShared_5020_; uint8_t v_isSharedCheck_5024_; +v_a_5017_ = lean_ctor_get(v___x_5016_, 0); +v_isSharedCheck_5024_ = !lean_is_exclusive(v___x_5016_); +if (v_isSharedCheck_5024_ == 0) +{ +v___x_5019_ = v___x_5016_; +v_isShared_5020_ = v_isSharedCheck_5024_; +goto v_resetjp_5018_; +} +else +{ +lean_inc(v_a_5017_); +lean_dec(v___x_5016_); +v___x_5019_ = lean_box(0); +v_isShared_5020_ = v_isSharedCheck_5024_; +goto v_resetjp_5018_; +} +v_resetjp_5018_: +{ +lean_object* v___x_5022_; +if (v_isShared_5020_ == 0) +{ +lean_ctor_set_tag(v___x_5019_, 1); +v___x_5022_ = v___x_5019_; +goto v_reusejp_5021_; +} +else +{ +lean_object* v_reuseFailAlloc_5023_; +v_reuseFailAlloc_5023_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5023_, 0, v_a_5017_); +v___x_5022_ = v_reuseFailAlloc_5023_; +goto v_reusejp_5021_; +} +v_reusejp_5021_: +{ +return v___x_5022_; +} +} +} +else +{ +lean_object* v_a_5025_; lean_object* v___x_5027_; uint8_t v_isShared_5028_; uint8_t v_isSharedCheck_5032_; +v_a_5025_ = lean_ctor_get(v___x_5016_, 0); +v_isSharedCheck_5032_ = !lean_is_exclusive(v___x_5016_); +if (v_isSharedCheck_5032_ == 0) +{ +v___x_5027_ = v___x_5016_; +v_isShared_5028_ = v_isSharedCheck_5032_; +goto v_resetjp_5026_; +} +else +{ +lean_inc(v_a_5025_); +lean_dec(v___x_5016_); +v___x_5027_ = lean_box(0); +v_isShared_5028_ = v_isSharedCheck_5032_; +goto v_resetjp_5026_; +} +v_resetjp_5026_: +{ +lean_object* v___x_5030_; +if (v_isShared_5028_ == 0) +{ +lean_ctor_set_tag(v___x_5027_, 0); +v___x_5030_ = v___x_5027_; +goto v_reusejp_5029_; +} +else +{ +lean_object* v_reuseFailAlloc_5031_; +v_reuseFailAlloc_5031_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5031_, 0, v_a_5025_); +v___x_5030_ = v_reuseFailAlloc_5031_; +goto v_reusejp_5029_; +} +v_reusejp_5029_: +{ +return v___x_5030_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose___boxed(lean_object* v_client_5033_, lean_object* v_server_5034_, lean_object* v_raw_5035_, lean_object* v_handler_5036_, lean_object* v_config_5037_, lean_object* v_a_5038_){ +_start: +{ +lean_object* v_res_5039_; +v_res_5039_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose(v_client_5033_, v_server_5034_, v_raw_5035_, v_handler_5036_, v_config_5037_); +return v_res_5039_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg(lean_object* v_name_5043_, lean_object* v_ms_5044_, lean_object* v_task_5045_, lean_object* v_a_5046_){ +_start: +{ +lean_object* v_zero_5048_; uint8_t v_isZero_5049_; +v_zero_5048_ = lean_unsigned_to_nat(0u); +v_isZero_5049_ = lean_nat_dec_eq(v_a_5046_, v_zero_5048_); +if (v_isZero_5049_ == 1) +{ +lean_object* v___x_5050_; lean_object* v___x_5051_; lean_object* v___x_5052_; lean_object* v___x_5053_; lean_object* v___x_5054_; lean_object* v___x_5055_; lean_object* v___x_5056_; lean_object* v___x_5057_; lean_object* v___x_5058_; lean_object* v___x_5059_; lean_object* v___x_5060_; +lean_dec(v_a_5046_); +v___x_5050_ = lean_io_cancel(v_task_5045_); +lean_dec_ref(v_task_5045_); +v___x_5051_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__0)); +v___x_5052_ = lean_string_append(v___x_5051_, v_name_5043_); +v___x_5053_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__1)); +v___x_5054_ = lean_string_append(v___x_5052_, v___x_5053_); +v___x_5055_ = l_Nat_reprFast(v_ms_5044_); +v___x_5056_ = lean_string_append(v___x_5054_, v___x_5055_); +lean_dec_ref(v___x_5055_); +v___x_5057_ = ((lean_object*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___closed__2)); +v___x_5058_ = lean_string_append(v___x_5056_, v___x_5057_); +v___x_5059_ = lean_mk_io_user_error(v___x_5058_); +v___x_5060_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5060_, 0, v___x_5059_); +return v___x_5060_; +} +else +{ +uint8_t v___x_5061_; uint8_t v___x_5062_; uint8_t v___x_5063_; +v___x_5061_ = lean_io_get_task_state(v_task_5045_); +v___x_5062_ = 2; +v___x_5063_ = l_IO_instDecidableEqTaskState(v___x_5061_, v___x_5062_); +if (v___x_5063_ == 0) +{ +uint32_t v___x_5064_; lean_object* v___x_5065_; lean_object* v_one_5066_; lean_object* v_n_5067_; +v___x_5064_ = 10; +v___x_5065_ = l_IO_sleep(v___x_5064_); +v_one_5066_ = lean_unsigned_to_nat(1u); +v_n_5067_ = lean_nat_sub(v_a_5046_, v_one_5066_); +lean_dec(v_a_5046_); +v_a_5046_ = v_n_5067_; +goto _start; +} +else +{ +lean_object* v___x_5069_; +lean_dec(v_a_5046_); +lean_dec(v_ms_5044_); +v___x_5069_ = lean_io_wait(v_task_5045_); +if (lean_obj_tag(v___x_5069_) == 0) +{ +lean_object* v_a_5070_; lean_object* v___x_5072_; uint8_t v_isShared_5073_; uint8_t v_isSharedCheck_5077_; +v_a_5070_ = lean_ctor_get(v___x_5069_, 0); +v_isSharedCheck_5077_ = !lean_is_exclusive(v___x_5069_); +if (v_isSharedCheck_5077_ == 0) +{ +v___x_5072_ = v___x_5069_; +v_isShared_5073_ = v_isSharedCheck_5077_; +goto v_resetjp_5071_; +} +else +{ +lean_inc(v_a_5070_); +lean_dec(v___x_5069_); +v___x_5072_ = lean_box(0); +v_isShared_5073_ = v_isSharedCheck_5077_; +goto v_resetjp_5071_; +} +v_resetjp_5071_: +{ +lean_object* v___x_5075_; +if (v_isShared_5073_ == 0) +{ +lean_ctor_set_tag(v___x_5072_, 1); +v___x_5075_ = v___x_5072_; +goto v_reusejp_5074_; +} +else +{ +lean_object* v_reuseFailAlloc_5076_; +v_reuseFailAlloc_5076_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5076_, 0, v_a_5070_); +v___x_5075_ = v_reuseFailAlloc_5076_; +goto v_reusejp_5074_; +} +v_reusejp_5074_: +{ +return v___x_5075_; +} +} +} +else +{ +lean_object* v_a_5078_; lean_object* v___x_5080_; uint8_t v_isShared_5081_; uint8_t v_isSharedCheck_5085_; +v_a_5078_ = lean_ctor_get(v___x_5069_, 0); +v_isSharedCheck_5085_ = !lean_is_exclusive(v___x_5069_); +if (v_isSharedCheck_5085_ == 0) +{ +v___x_5080_ = v___x_5069_; +v_isShared_5081_ = v_isSharedCheck_5085_; +goto v_resetjp_5079_; +} +else +{ +lean_inc(v_a_5078_); +lean_dec(v___x_5069_); +v___x_5080_ = lean_box(0); +v_isShared_5081_ = v_isSharedCheck_5085_; +goto v_resetjp_5079_; +} +v_resetjp_5079_: +{ +lean_object* v___x_5083_; +if (v_isShared_5081_ == 0) +{ +lean_ctor_set_tag(v___x_5080_, 0); +v___x_5083_ = v___x_5080_; +goto v_reusejp_5082_; +} +else +{ +lean_object* v_reuseFailAlloc_5084_; +v_reuseFailAlloc_5084_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5084_, 0, v_a_5078_); +v___x_5083_ = v_reuseFailAlloc_5084_; +goto v_reusejp_5082_; +} +v_reusejp_5082_: +{ +return v___x_5083_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg___boxed(lean_object* v_name_5086_, lean_object* v_ms_5087_, lean_object* v_task_5088_, lean_object* v_a_5089_, lean_object* v_a_5090_){ +_start: +{ +lean_object* v_res_5091_; +v_res_5091_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg(v_name_5086_, v_ms_5087_, v_task_5088_, v_a_5089_); +lean_dec_ref(v_name_5086_); +return v_res_5091_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop(lean_object* v_00_u03b1_5092_, lean_object* v_name_5093_, lean_object* v_ms_5094_, lean_object* v_task_5095_, lean_object* v_a_5096_){ +_start: +{ +lean_object* v___x_5098_; +v___x_5098_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg(v_name_5093_, v_ms_5094_, v_task_5095_, v_a_5096_); +return v___x_5098_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___boxed(lean_object* v_00_u03b1_5099_, lean_object* v_name_5100_, lean_object* v_ms_5101_, lean_object* v_task_5102_, lean_object* v_a_5103_, lean_object* v_a_5104_){ +_start: +{ +lean_object* v_res_5105_; +v_res_5105_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop(v_00_u03b1_5099_, v_name_5100_, v_ms_5101_, v_task_5102_, v_a_5103_); +lean_dec_ref(v_name_5100_); +return v_res_5105_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0(lean_object* v_action_5106_){ +_start: +{ +lean_object* v___x_5108_; +v___x_5108_ = lean_apply_1(v_action_5106_, lean_box(0)); +if (lean_obj_tag(v___x_5108_) == 0) +{ +lean_object* v_a_5109_; lean_object* v___x_5111_; uint8_t v_isShared_5112_; uint8_t v_isSharedCheck_5116_; +v_a_5109_ = lean_ctor_get(v___x_5108_, 0); +v_isSharedCheck_5116_ = !lean_is_exclusive(v___x_5108_); +if (v_isSharedCheck_5116_ == 0) +{ +v___x_5111_ = v___x_5108_; +v_isShared_5112_ = v_isSharedCheck_5116_; +goto v_resetjp_5110_; +} +else +{ +lean_inc(v_a_5109_); +lean_dec(v___x_5108_); +v___x_5111_ = lean_box(0); +v_isShared_5112_ = v_isSharedCheck_5116_; +goto v_resetjp_5110_; +} +v_resetjp_5110_: +{ +lean_object* v___x_5114_; +if (v_isShared_5112_ == 0) +{ +lean_ctor_set_tag(v___x_5111_, 1); +v___x_5114_ = v___x_5111_; +goto v_reusejp_5113_; +} +else +{ +lean_object* v_reuseFailAlloc_5115_; +v_reuseFailAlloc_5115_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5115_, 0, v_a_5109_); +v___x_5114_ = v_reuseFailAlloc_5115_; +goto v_reusejp_5113_; +} +v_reusejp_5113_: +{ +return v___x_5114_; +} +} +} +else +{ +lean_object* v_a_5117_; lean_object* v___x_5119_; uint8_t v_isShared_5120_; uint8_t v_isSharedCheck_5124_; +v_a_5117_ = lean_ctor_get(v___x_5108_, 0); +v_isSharedCheck_5124_ = !lean_is_exclusive(v___x_5108_); +if (v_isSharedCheck_5124_ == 0) +{ +v___x_5119_ = v___x_5108_; +v_isShared_5120_ = v_isSharedCheck_5124_; +goto v_resetjp_5118_; +} +else +{ +lean_inc(v_a_5117_); +lean_dec(v___x_5108_); +v___x_5119_ = lean_box(0); +v_isShared_5120_ = v_isSharedCheck_5124_; +goto v_resetjp_5118_; +} +v_resetjp_5118_: +{ +lean_object* v___x_5122_; +if (v_isShared_5120_ == 0) +{ +lean_ctor_set_tag(v___x_5119_, 0); +v___x_5122_ = v___x_5119_; +goto v_reusejp_5121_; +} +else +{ +lean_object* v_reuseFailAlloc_5123_; +v_reuseFailAlloc_5123_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5123_, 0, v_a_5117_); +v___x_5122_ = v_reuseFailAlloc_5123_; +goto v_reusejp_5121_; +} +v_reusejp_5121_: +{ +return v___x_5122_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0___boxed(lean_object* v_action_5125_, lean_object* v___y_5126_){ +_start: +{ +lean_object* v_res_5127_; +v_res_5127_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0(v_action_5125_); +return v_res_5127_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg(lean_object* v_name_5128_, lean_object* v_ms_5129_, lean_object* v_action_5130_){ +_start: +{ +lean_object* v___f_5132_; lean_object* v___x_5133_; lean_object* v___x_5134_; lean_object* v___x_5135_; lean_object* v___x_5136_; lean_object* v___x_5137_; lean_object* v___x_5138_; lean_object* v___x_5139_; +v___f_5132_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___lam__0___boxed), 2, 1); +lean_closure_set(v___f_5132_, 0, v_action_5130_); +v___x_5133_ = lean_unsigned_to_nat(0u); +v___x_5134_ = lean_io_as_task(v___f_5132_, v___x_5133_); +v___x_5135_ = lean_unsigned_to_nat(9u); +v___x_5136_ = lean_nat_add(v_ms_5129_, v___x_5135_); +v___x_5137_ = lean_unsigned_to_nat(10u); +v___x_5138_ = lean_nat_div(v___x_5136_, v___x_5137_); +lean_dec(v___x_5136_); +v___x_5139_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout_loop___redArg(v_name_5128_, v_ms_5129_, v___x_5134_, v___x_5138_); +return v___x_5139_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg___boxed(lean_object* v_name_5140_, lean_object* v_ms_5141_, lean_object* v_action_5142_, lean_object* v_a_5143_){ +_start: +{ +lean_object* v_res_5144_; +v_res_5144_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg(v_name_5140_, v_ms_5141_, v_action_5142_); +lean_dec_ref(v_name_5140_); +return v_res_5144_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout(lean_object* v_00_u03b1_5145_, lean_object* v_name_5146_, lean_object* v_ms_5147_, lean_object* v_action_5148_){ +_start: +{ +lean_object* v___x_5150_; +v___x_5150_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg(v_name_5146_, v_ms_5147_, v_action_5148_); +return v___x_5150_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___boxed(lean_object* v_00_u03b1_5151_, lean_object* v_name_5152_, lean_object* v_ms_5153_, lean_object* v_action_5154_, lean_object* v_a_5155_){ +_start: +{ +lean_object* v_res_5156_; +v_res_5156_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout(v_00_u03b1_5151_, v_name_5152_, v_ms_5153_, v_action_5154_); +lean_dec_ref(v_name_5152_); +return v_res_5156_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_runGroup(lean_object* v_name_5159_, lean_object* v_tests_5160_){ +_start: +{ +lean_object* v___x_5162_; +v___x_5162_ = lean_apply_1(v_tests_5160_, lean_box(0)); +if (lean_obj_tag(v___x_5162_) == 0) +{ +return v___x_5162_; +} +else +{ +lean_object* v_a_5163_; lean_object* v___x_5165_; uint8_t v_isShared_5166_; uint8_t v_isSharedCheck_5177_; +v_a_5163_ = lean_ctor_get(v___x_5162_, 0); +v_isSharedCheck_5177_ = !lean_is_exclusive(v___x_5162_); +if (v_isSharedCheck_5177_ == 0) +{ +v___x_5165_ = v___x_5162_; +v_isShared_5166_ = v_isSharedCheck_5177_; +goto v_resetjp_5164_; +} +else +{ +lean_inc(v_a_5163_); +lean_dec(v___x_5162_); +v___x_5165_ = lean_box(0); +v_isShared_5166_ = v_isSharedCheck_5177_; +goto v_resetjp_5164_; +} +v_resetjp_5164_: +{ +lean_object* v___x_5167_; lean_object* v___x_5168_; lean_object* v___x_5169_; lean_object* v___x_5170_; lean_object* v___x_5171_; lean_object* v___x_5172_; lean_object* v___x_5173_; lean_object* v___x_5175_; +v___x_5167_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__0)); +v___x_5168_ = lean_string_append(v___x_5167_, v_name_5159_); +v___x_5169_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__1)); +v___x_5170_ = lean_string_append(v___x_5168_, v___x_5169_); +v___x_5171_ = lean_io_error_to_string(v_a_5163_); +v___x_5172_ = lean_string_append(v___x_5170_, v___x_5171_); +lean_dec_ref(v___x_5171_); +v___x_5173_ = lean_mk_io_user_error(v___x_5172_); +if (v_isShared_5166_ == 0) +{ +lean_ctor_set(v___x_5165_, 0, v___x_5173_); +v___x_5175_ = v___x_5165_; +goto v_reusejp_5174_; +} +else +{ +lean_object* v_reuseFailAlloc_5176_; +v_reuseFailAlloc_5176_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5176_, 0, v___x_5173_); +v___x_5175_ = v_reuseFailAlloc_5176_; +goto v_reusejp_5174_; +} +v_reusejp_5174_: +{ +return v___x_5175_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_runGroup___boxed(lean_object* v_name_5178_, lean_object* v_tests_5179_, lean_object* v_a_5180_){ +_start: +{ +lean_object* v_res_5181_; +v_res_5181_ = l_Std_Http_Internal_Test_runGroup(v_name_5178_, v_tests_5179_); +lean_dec_ref(v_name_5178_); +return v_res_5181_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_check(lean_object* v_name_5183_, lean_object* v_raw_5184_, lean_object* v_handler_5185_, lean_object* v_expect_5186_, lean_object* v_config_5187_){ +_start: +{ +lean_object* v___x_5189_; lean_object* v_fst_5190_; lean_object* v_snd_5191_; lean_object* v___x_5192_; lean_object* v___x_5193_; +v___x_5189_ = l_Std_Http_Internal_Mock_new(); +v_fst_5190_ = lean_ctor_get(v___x_5189_, 0); +lean_inc(v_fst_5190_); +v_snd_5191_ = lean_ctor_get(v___x_5189_, 1); +lean_inc(v_snd_5191_); +lean_dec_ref(v___x_5189_); +v___x_5192_ = lean_string_to_utf8(v_raw_5184_); +v___x_5193_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendRaw(v_fst_5190_, v_snd_5191_, v___x_5192_, v_handler_5185_, v_config_5187_); +if (lean_obj_tag(v___x_5193_) == 0) +{ +lean_object* v_a_5194_; lean_object* v___x_5195_; +v_a_5194_ = lean_ctor_get(v___x_5193_, 0); +lean_inc(v_a_5194_); +lean_dec_ref(v___x_5193_); +v___x_5195_ = lean_apply_2(v_expect_5186_, v_a_5194_, lean_box(0)); +if (lean_obj_tag(v___x_5195_) == 0) +{ +return v___x_5195_; +} +else +{ +lean_object* v_a_5196_; lean_object* v___x_5198_; uint8_t v_isShared_5199_; uint8_t v_isSharedCheck_5210_; +v_a_5196_ = lean_ctor_get(v___x_5195_, 0); +v_isSharedCheck_5210_ = !lean_is_exclusive(v___x_5195_); +if (v_isSharedCheck_5210_ == 0) +{ +v___x_5198_ = v___x_5195_; +v_isShared_5199_ = v_isSharedCheck_5210_; +goto v_resetjp_5197_; +} +else +{ +lean_inc(v_a_5196_); +lean_dec(v___x_5195_); +v___x_5198_ = lean_box(0); +v_isShared_5199_ = v_isSharedCheck_5210_; +goto v_resetjp_5197_; +} +v_resetjp_5197_: +{ +lean_object* v___x_5200_; lean_object* v___x_5201_; lean_object* v___x_5202_; lean_object* v___x_5203_; lean_object* v___x_5204_; lean_object* v___x_5205_; lean_object* v___x_5206_; lean_object* v___x_5208_; +v___x_5200_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__0)); +v___x_5201_ = lean_string_append(v___x_5200_, v_name_5183_); +v___x_5202_ = ((lean_object*)(l_Std_Http_Internal_Test_check___closed__0)); +v___x_5203_ = lean_string_append(v___x_5201_, v___x_5202_); +v___x_5204_ = lean_io_error_to_string(v_a_5196_); +v___x_5205_ = lean_string_append(v___x_5203_, v___x_5204_); +lean_dec_ref(v___x_5204_); +v___x_5206_ = lean_mk_io_user_error(v___x_5205_); +if (v_isShared_5199_ == 0) +{ +lean_ctor_set(v___x_5198_, 0, v___x_5206_); +v___x_5208_ = v___x_5198_; +goto v_reusejp_5207_; +} +else +{ +lean_object* v_reuseFailAlloc_5209_; +v_reuseFailAlloc_5209_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5209_, 0, v___x_5206_); +v___x_5208_ = v_reuseFailAlloc_5209_; +goto v_reusejp_5207_; +} +v_reusejp_5207_: +{ +return v___x_5208_; +} +} +} +} +else +{ +lean_object* v_a_5211_; lean_object* v___x_5213_; uint8_t v_isShared_5214_; uint8_t v_isSharedCheck_5218_; +lean_dec_ref(v_expect_5186_); +v_a_5211_ = lean_ctor_get(v___x_5193_, 0); +v_isSharedCheck_5218_ = !lean_is_exclusive(v___x_5193_); +if (v_isSharedCheck_5218_ == 0) +{ +v___x_5213_ = v___x_5193_; +v_isShared_5214_ = v_isSharedCheck_5218_; +goto v_resetjp_5212_; +} +else +{ +lean_inc(v_a_5211_); +lean_dec(v___x_5193_); +v___x_5213_ = lean_box(0); +v_isShared_5214_ = v_isSharedCheck_5218_; +goto v_resetjp_5212_; +} +v_resetjp_5212_: +{ +lean_object* v___x_5216_; +if (v_isShared_5214_ == 0) +{ +v___x_5216_ = v___x_5213_; +goto v_reusejp_5215_; +} +else +{ +lean_object* v_reuseFailAlloc_5217_; +v_reuseFailAlloc_5217_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5217_, 0, v_a_5211_); +v___x_5216_ = v_reuseFailAlloc_5217_; +goto v_reusejp_5215_; +} +v_reusejp_5215_: +{ +return v___x_5216_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_check___boxed(lean_object* v_name_5219_, lean_object* v_raw_5220_, lean_object* v_handler_5221_, lean_object* v_expect_5222_, lean_object* v_config_5223_, lean_object* v_a_5224_){ +_start: +{ +lean_object* v_res_5225_; +v_res_5225_ = l_Std_Http_Internal_Test_check(v_name_5219_, v_raw_5220_, v_handler_5221_, v_expect_5222_, v_config_5223_); +lean_dec_ref(v_raw_5220_); +lean_dec_ref(v_name_5219_); +return v_res_5225_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkClose(lean_object* v_name_5226_, lean_object* v_raw_5227_, lean_object* v_handler_5228_, lean_object* v_expect_5229_, lean_object* v_config_5230_){ +_start: +{ +lean_object* v___x_5232_; lean_object* v_fst_5233_; lean_object* v_snd_5234_; lean_object* v___x_5235_; lean_object* v___x_5236_; +v___x_5232_ = l_Std_Http_Internal_Mock_new(); +v_fst_5233_ = lean_ctor_get(v___x_5232_, 0); +lean_inc(v_fst_5233_); +v_snd_5234_ = lean_ctor_get(v___x_5232_, 1); +lean_inc(v_snd_5234_); +lean_dec_ref(v___x_5232_); +v___x_5235_ = lean_string_to_utf8(v_raw_5227_); +v___x_5236_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_sendClose(v_fst_5233_, v_snd_5234_, v___x_5235_, v_handler_5228_, v_config_5230_); +if (lean_obj_tag(v___x_5236_) == 0) +{ +lean_object* v_a_5237_; lean_object* v___x_5238_; +v_a_5237_ = lean_ctor_get(v___x_5236_, 0); +lean_inc(v_a_5237_); +lean_dec_ref(v___x_5236_); +v___x_5238_ = lean_apply_2(v_expect_5229_, v_a_5237_, lean_box(0)); +if (lean_obj_tag(v___x_5238_) == 0) +{ +return v___x_5238_; +} +else +{ +lean_object* v_a_5239_; lean_object* v___x_5241_; uint8_t v_isShared_5242_; uint8_t v_isSharedCheck_5253_; +v_a_5239_ = lean_ctor_get(v___x_5238_, 0); +v_isSharedCheck_5253_ = !lean_is_exclusive(v___x_5238_); +if (v_isSharedCheck_5253_ == 0) +{ +v___x_5241_ = v___x_5238_; +v_isShared_5242_ = v_isSharedCheck_5253_; +goto v_resetjp_5240_; +} +else +{ +lean_inc(v_a_5239_); +lean_dec(v___x_5238_); +v___x_5241_ = lean_box(0); +v_isShared_5242_ = v_isSharedCheck_5253_; +goto v_resetjp_5240_; +} +v_resetjp_5240_: +{ +lean_object* v___x_5243_; lean_object* v___x_5244_; lean_object* v___x_5245_; lean_object* v___x_5246_; lean_object* v___x_5247_; lean_object* v___x_5248_; lean_object* v___x_5249_; lean_object* v___x_5251_; +v___x_5243_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__0)); +v___x_5244_ = lean_string_append(v___x_5243_, v_name_5226_); +v___x_5245_ = ((lean_object*)(l_Std_Http_Internal_Test_check___closed__0)); +v___x_5246_ = lean_string_append(v___x_5244_, v___x_5245_); +v___x_5247_ = lean_io_error_to_string(v_a_5239_); +v___x_5248_ = lean_string_append(v___x_5246_, v___x_5247_); +lean_dec_ref(v___x_5247_); +v___x_5249_ = lean_mk_io_user_error(v___x_5248_); +if (v_isShared_5242_ == 0) +{ +lean_ctor_set(v___x_5241_, 0, v___x_5249_); +v___x_5251_ = v___x_5241_; +goto v_reusejp_5250_; +} +else +{ +lean_object* v_reuseFailAlloc_5252_; +v_reuseFailAlloc_5252_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5252_, 0, v___x_5249_); +v___x_5251_ = v_reuseFailAlloc_5252_; +goto v_reusejp_5250_; +} +v_reusejp_5250_: +{ +return v___x_5251_; +} +} +} +} +else +{ +lean_object* v_a_5254_; lean_object* v___x_5256_; uint8_t v_isShared_5257_; uint8_t v_isSharedCheck_5261_; +lean_dec_ref(v_expect_5229_); +v_a_5254_ = lean_ctor_get(v___x_5236_, 0); +v_isSharedCheck_5261_ = !lean_is_exclusive(v___x_5236_); +if (v_isSharedCheck_5261_ == 0) +{ +v___x_5256_ = v___x_5236_; +v_isShared_5257_ = v_isSharedCheck_5261_; +goto v_resetjp_5255_; +} +else +{ +lean_inc(v_a_5254_); +lean_dec(v___x_5236_); +v___x_5256_ = lean_box(0); +v_isShared_5257_ = v_isSharedCheck_5261_; +goto v_resetjp_5255_; +} +v_resetjp_5255_: +{ +lean_object* v___x_5259_; +if (v_isShared_5257_ == 0) +{ +v___x_5259_ = v___x_5256_; +goto v_reusejp_5258_; +} +else +{ +lean_object* v_reuseFailAlloc_5260_; +v_reuseFailAlloc_5260_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5260_, 0, v_a_5254_); +v___x_5259_ = v_reuseFailAlloc_5260_; +goto v_reusejp_5258_; +} +v_reusejp_5258_: +{ +return v___x_5259_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkClose___boxed(lean_object* v_name_5262_, lean_object* v_raw_5263_, lean_object* v_handler_5264_, lean_object* v_expect_5265_, lean_object* v_config_5266_, lean_object* v_a_5267_){ +_start: +{ +lean_object* v_res_5268_; +v_res_5268_ = l_Std_Http_Internal_Test_checkClose(v_name_5262_, v_raw_5263_, v_handler_5264_, v_expect_5265_, v_config_5266_); +lean_dec_ref(v_raw_5263_); +lean_dec_ref(v_name_5262_); +return v_res_5268_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkTimed(lean_object* v_name_5269_, lean_object* v_ms_5270_, lean_object* v_raw_5271_, lean_object* v_handler_5272_, lean_object* v_expect_5273_, lean_object* v_config_5274_){ +_start: +{ +lean_object* v___x_5276_; lean_object* v___x_5277_; +lean_inc_ref(v_name_5269_); +v___x_5276_ = lean_alloc_closure((void*)(l_Std_Http_Internal_Test_check___boxed), 6, 5); +lean_closure_set(v___x_5276_, 0, v_name_5269_); +lean_closure_set(v___x_5276_, 1, v_raw_5271_); +lean_closure_set(v___x_5276_, 2, v_handler_5272_); +lean_closure_set(v___x_5276_, 3, v_expect_5273_); +lean_closure_set(v___x_5276_, 4, v_config_5274_); +v___x_5277_ = l___private_Std_Internal_Http_Test_Helpers_0__Std_Http_Internal_Test_withTimeout___redArg(v_name_5269_, v_ms_5270_, v___x_5276_); +lean_dec_ref(v_name_5269_); +return v___x_5277_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_checkTimed___boxed(lean_object* v_name_5278_, lean_object* v_ms_5279_, lean_object* v_raw_5280_, lean_object* v_handler_5281_, lean_object* v_expect_5282_, lean_object* v_config_5283_, lean_object* v_a_5284_){ +_start: +{ +lean_object* v_res_5285_; +v_res_5285_ = l_Std_Http_Internal_Test_checkTimed(v_name_5278_, v_ms_5279_, v_raw_5280_, v_handler_5281_, v_expect_5282_, v_config_5283_); +return v_res_5285_; +} +} +LEAN_EXPORT lean_object* l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(lean_object* v_msg_5287_){ +_start: +{ +lean_object* v___x_5288_; lean_object* v___x_5289_; +v___x_5288_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___x_5289_ = lean_panic_fn_borrowed(v___x_5288_, v_msg_5287_); +return v___x_5289_; +} +} +static lean_object* _init_l_Std_Http_Internal_Test_assertStatus___closed__5(void){ +_start: +{ +lean_object* v___x_5295_; lean_object* v___x_5296_; lean_object* v___x_5297_; lean_object* v___x_5298_; lean_object* v___x_5299_; lean_object* v___x_5300_; +v___x_5295_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__4)); +v___x_5296_ = lean_unsigned_to_nat(46u); +v___x_5297_ = lean_unsigned_to_nat(193u); +v___x_5298_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__3)); +v___x_5299_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__2)); +v___x_5300_ = l_mkPanicMessageWithDecl(v___x_5299_, v___x_5298_, v___x_5297_, v___x_5296_, v___x_5295_); +return v___x_5300_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertStatus(lean_object* v_response_5301_, lean_object* v_prefix___5302_){ +_start: +{ +lean_object* v___y_5305_; lean_object* v___y_5316_; uint8_t v___x_5324_; +v___x_5324_ = lean_string_validate_utf8(v_response_5301_); +if (v___x_5324_ == 0) +{ +lean_object* v___x_5325_; lean_object* v___x_5326_; +lean_dec_ref(v_response_5301_); +v___x_5325_ = lean_obj_once(&l_Std_Http_Internal_Test_assertStatus___closed__5, &l_Std_Http_Internal_Test_assertStatus___closed__5_once, _init_l_Std_Http_Internal_Test_assertStatus___closed__5); +v___x_5326_ = l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(v___x_5325_); +v___y_5316_ = v___x_5326_; +goto v___jp_5315_; +} +else +{ +lean_object* v___x_5327_; +v___x_5327_ = lean_string_from_utf8_unchecked(v_response_5301_); +v___y_5316_ = v___x_5327_; +goto v___jp_5315_; +} +v___jp_5304_: +{ +lean_object* v___x_5306_; lean_object* v___x_5307_; lean_object* v___x_5308_; lean_object* v___x_5309_; lean_object* v___x_5310_; lean_object* v___x_5311_; lean_object* v___x_5312_; lean_object* v___x_5313_; lean_object* v___x_5314_; +v___x_5306_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__0)); +v___x_5307_ = l_String_quote(v_prefix___5302_); +v___x_5308_ = lean_string_append(v___x_5306_, v___x_5307_); +lean_dec_ref(v___x_5307_); +v___x_5309_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__1)); +v___x_5310_ = lean_string_append(v___x_5308_, v___x_5309_); +v___x_5311_ = l_String_quote(v___y_5305_); +v___x_5312_ = lean_string_append(v___x_5310_, v___x_5311_); +lean_dec_ref(v___x_5311_); +v___x_5313_ = lean_mk_io_user_error(v___x_5312_); +v___x_5314_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5314_, 0, v___x_5313_); +return v___x_5314_; +} +v___jp_5315_: +{ +lean_object* v___x_5317_; lean_object* v___x_5318_; uint8_t v___x_5319_; +v___x_5317_ = lean_string_utf8_byte_size(v___y_5316_); +v___x_5318_ = lean_string_utf8_byte_size(v_prefix___5302_); +v___x_5319_ = lean_nat_dec_le(v___x_5318_, v___x_5317_); +if (v___x_5319_ == 0) +{ +v___y_5305_ = v___y_5316_; +goto v___jp_5304_; +} +else +{ +lean_object* v___x_5320_; uint8_t v___x_5321_; +v___x_5320_ = lean_unsigned_to_nat(0u); +v___x_5321_ = lean_string_memcmp(v___y_5316_, v_prefix___5302_, v___x_5320_, v___x_5320_, v___x_5318_); +if (v___x_5321_ == 0) +{ +v___y_5305_ = v___y_5316_; +goto v___jp_5304_; +} +else +{ +lean_object* v___x_5322_; lean_object* v___x_5323_; +lean_dec_ref(v___y_5316_); +lean_dec_ref(v_prefix___5302_); +v___x_5322_ = lean_box(0); +v___x_5323_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5323_, 0, v___x_5322_); +return v___x_5323_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertStatus___boxed(lean_object* v_response_5328_, lean_object* v_prefix___5329_, lean_object* v_a_5330_){ +_start: +{ +lean_object* v_res_5331_; +v_res_5331_ = l_Std_Http_Internal_Test_assertStatus(v_response_5328_, v_prefix___5329_); +return v_res_5331_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertExact(lean_object* v_response_5334_, lean_object* v_expected_5335_){ +_start: +{ +lean_object* v___y_5338_; uint8_t v___x_5351_; +v___x_5351_ = lean_string_validate_utf8(v_response_5334_); +if (v___x_5351_ == 0) +{ +lean_object* v___x_5352_; lean_object* v___x_5353_; +lean_dec_ref(v_response_5334_); +v___x_5352_ = lean_obj_once(&l_Std_Http_Internal_Test_assertStatus___closed__5, &l_Std_Http_Internal_Test_assertStatus___closed__5_once, _init_l_Std_Http_Internal_Test_assertStatus___closed__5); +v___x_5353_ = l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(v___x_5352_); +v___y_5338_ = v___x_5353_; +goto v___jp_5337_; +} +else +{ +lean_object* v___x_5354_; +v___x_5354_ = lean_string_from_utf8_unchecked(v_response_5334_); +v___y_5338_ = v___x_5354_; +goto v___jp_5337_; +} +v___jp_5337_: +{ +uint8_t v___x_5339_; +v___x_5339_ = lean_string_dec_eq(v___y_5338_, v_expected_5335_); +if (v___x_5339_ == 0) +{ +lean_object* v___x_5340_; lean_object* v___x_5341_; lean_object* v___x_5342_; lean_object* v___x_5343_; lean_object* v___x_5344_; lean_object* v___x_5345_; lean_object* v___x_5346_; lean_object* v___x_5347_; lean_object* v___x_5348_; +v___x_5340_ = ((lean_object*)(l_Std_Http_Internal_Test_assertExact___closed__0)); +v___x_5341_ = l_String_quote(v_expected_5335_); +v___x_5342_ = lean_string_append(v___x_5340_, v___x_5341_); +lean_dec_ref(v___x_5341_); +v___x_5343_ = ((lean_object*)(l_Std_Http_Internal_Test_assertExact___closed__1)); +v___x_5344_ = lean_string_append(v___x_5342_, v___x_5343_); +v___x_5345_ = l_String_quote(v___y_5338_); +v___x_5346_ = lean_string_append(v___x_5344_, v___x_5345_); +lean_dec_ref(v___x_5345_); +v___x_5347_ = lean_mk_io_user_error(v___x_5346_); +v___x_5348_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5348_, 0, v___x_5347_); +return v___x_5348_; +} +else +{ +lean_object* v___x_5349_; lean_object* v___x_5350_; +lean_dec_ref(v___y_5338_); +lean_dec_ref(v_expected_5335_); +v___x_5349_ = lean_box(0); +v___x_5350_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5350_, 0, v___x_5349_); +return v___x_5350_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertExact___boxed(lean_object* v_response_5355_, lean_object* v_expected_5356_, lean_object* v_a_5357_){ +_start: +{ +lean_object* v_res_5358_; +v_res_5358_ = l_Std_Http_Internal_Test_assertExact(v_response_5355_, v_expected_5356_); +return v_res_5358_; +} +} +LEAN_EXPORT uint8_t l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg(lean_object* v_s_5359_, lean_object* v_a_5360_, uint8_t v_b_5361_){ +_start: +{ +uint8_t v___x_5362_; +v___x_5362_ = 0; +switch(lean_obj_tag(v_a_5360_)) +{ +case 0: +{ +uint8_t v___x_5363_; +lean_dec_ref(v_a_5360_); +v___x_5363_ = 1; +return v___x_5363_; +} +case 1: +{ +lean_object* v_pos_5364_; lean_object* v___x_5366_; uint8_t v_isShared_5367_; uint8_t v_isSharedCheck_5377_; +v_pos_5364_ = lean_ctor_get(v_a_5360_, 0); +v_isSharedCheck_5377_ = !lean_is_exclusive(v_a_5360_); +if (v_isSharedCheck_5377_ == 0) +{ +v___x_5366_ = v_a_5360_; +v_isShared_5367_ = v_isSharedCheck_5377_; +goto v_resetjp_5365_; +} +else +{ +lean_inc(v_pos_5364_); +lean_dec(v_a_5360_); +v___x_5366_ = lean_box(0); +v_isShared_5367_ = v_isSharedCheck_5377_; +goto v_resetjp_5365_; +} +v_resetjp_5365_: +{ +lean_object* v_str_5368_; lean_object* v_startInclusive_5369_; lean_object* v___x_5370_; lean_object* v___x_5371_; lean_object* v___x_5372_; lean_object* v___x_5374_; +v_str_5368_ = lean_ctor_get(v_s_5359_, 0); +v_startInclusive_5369_ = lean_ctor_get(v_s_5359_, 1); +v___x_5370_ = lean_nat_add(v_startInclusive_5369_, v_pos_5364_); +lean_dec(v_pos_5364_); +v___x_5371_ = lean_string_utf8_next_fast(v_str_5368_, v___x_5370_); +lean_dec(v___x_5370_); +v___x_5372_ = lean_nat_sub(v___x_5371_, v_startInclusive_5369_); +if (v_isShared_5367_ == 0) +{ +lean_ctor_set_tag(v___x_5366_, 0); +lean_ctor_set(v___x_5366_, 0, v___x_5372_); +v___x_5374_ = v___x_5366_; +goto v_reusejp_5373_; +} +else +{ +lean_object* v_reuseFailAlloc_5376_; +v_reuseFailAlloc_5376_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5376_, 0, v___x_5372_); +v___x_5374_ = v_reuseFailAlloc_5376_; +goto v_reusejp_5373_; +} +v_reusejp_5373_: +{ +v_a_5360_ = v___x_5374_; +v_b_5361_ = v___x_5362_; +goto _start; +} +} +} +case 2: +{ +lean_object* v_needle_5378_; lean_object* v_table_5379_; lean_object* v_stackPos_5380_; lean_object* v_needlePos_5381_; lean_object* v___x_5383_; uint8_t v_isShared_5384_; uint8_t v_isSharedCheck_5434_; +v_needle_5378_ = lean_ctor_get(v_a_5360_, 0); +v_table_5379_ = lean_ctor_get(v_a_5360_, 1); +v_stackPos_5380_ = lean_ctor_get(v_a_5360_, 2); +v_needlePos_5381_ = lean_ctor_get(v_a_5360_, 3); +v_isSharedCheck_5434_ = !lean_is_exclusive(v_a_5360_); +if (v_isSharedCheck_5434_ == 0) +{ +v___x_5383_ = v_a_5360_; +v_isShared_5384_ = v_isSharedCheck_5434_; +goto v_resetjp_5382_; +} +else +{ +lean_inc(v_needlePos_5381_); +lean_inc(v_stackPos_5380_); +lean_inc(v_table_5379_); +lean_inc(v_needle_5378_); +lean_dec(v_a_5360_); +v___x_5383_ = lean_box(0); +v_isShared_5384_ = v_isSharedCheck_5434_; +goto v_resetjp_5382_; +} +v_resetjp_5382_: +{ +lean_object* v_str_5385_; lean_object* v_startInclusive_5386_; lean_object* v_endExclusive_5387_; lean_object* v_str_5388_; lean_object* v_startInclusive_5389_; lean_object* v_endExclusive_5390_; lean_object* v_basePos_5391_; lean_object* v___x_5392_; lean_object* v___x_5393_; lean_object* v___x_5394_; uint8_t v___x_5395_; +v_str_5385_ = lean_ctor_get(v_needle_5378_, 0); +v_startInclusive_5386_ = lean_ctor_get(v_needle_5378_, 1); +v_endExclusive_5387_ = lean_ctor_get(v_needle_5378_, 2); +v_str_5388_ = lean_ctor_get(v_s_5359_, 0); +v_startInclusive_5389_ = lean_ctor_get(v_s_5359_, 1); +v_endExclusive_5390_ = lean_ctor_get(v_s_5359_, 2); +v_basePos_5391_ = lean_nat_sub(v_stackPos_5380_, v_needlePos_5381_); +v___x_5392_ = lean_nat_sub(v_endExclusive_5387_, v_startInclusive_5386_); +v___x_5393_ = lean_nat_add(v_basePos_5391_, v___x_5392_); +v___x_5394_ = lean_nat_sub(v_endExclusive_5390_, v_startInclusive_5389_); +v___x_5395_ = lean_nat_dec_le(v___x_5393_, v___x_5394_); +lean_dec(v___x_5393_); +if (v___x_5395_ == 0) +{ +uint8_t v___x_5396_; +lean_dec(v___x_5392_); +lean_del_object(v___x_5383_); +lean_dec(v_needlePos_5381_); +lean_dec(v_stackPos_5380_); +lean_dec_ref(v_table_5379_); +lean_dec_ref(v_needle_5378_); +v___x_5396_ = lean_nat_dec_lt(v_basePos_5391_, v___x_5394_); +lean_dec(v___x_5394_); +lean_dec(v_basePos_5391_); +if (v___x_5396_ == 0) +{ +return v_b_5361_; +} +else +{ +lean_object* v___x_5397_; +v___x_5397_ = lean_box(3); +v_a_5360_ = v___x_5397_; +v_b_5361_ = v___x_5362_; +goto _start; +} +} +else +{ +lean_object* v___x_5399_; uint8_t v_stackByte_5400_; lean_object* v___x_5401_; uint8_t v_patByte_5402_; uint8_t v___x_5403_; +lean_dec(v___x_5394_); +lean_dec(v_basePos_5391_); +v___x_5399_ = lean_nat_add(v_startInclusive_5389_, v_stackPos_5380_); +v_stackByte_5400_ = lean_string_get_byte_fast(v_str_5388_, v___x_5399_); +v___x_5401_ = lean_nat_add(v_startInclusive_5386_, v_needlePos_5381_); +v_patByte_5402_ = lean_string_get_byte_fast(v_str_5385_, v___x_5401_); +v___x_5403_ = lean_uint8_dec_eq(v_stackByte_5400_, v_patByte_5402_); +if (v___x_5403_ == 0) +{ +lean_object* v___x_5404_; uint8_t v___x_5405_; +lean_dec(v___x_5392_); +v___x_5404_ = lean_unsigned_to_nat(0u); +v___x_5405_ = lean_nat_dec_eq(v_needlePos_5381_, v___x_5404_); +if (v___x_5405_ == 0) +{ +lean_object* v___x_5406_; lean_object* v___x_5407_; lean_object* v_newNeedlePos_5408_; uint8_t v___x_5409_; +v___x_5406_ = lean_unsigned_to_nat(1u); +v___x_5407_ = lean_nat_sub(v_needlePos_5381_, v___x_5406_); +lean_dec(v_needlePos_5381_); +v_newNeedlePos_5408_ = lean_array_fget_borrowed(v_table_5379_, v___x_5407_); +lean_dec(v___x_5407_); +v___x_5409_ = lean_nat_dec_eq(v_newNeedlePos_5408_, v___x_5404_); +if (v___x_5409_ == 0) +{ +lean_object* v___x_5411_; +lean_inc(v_newNeedlePos_5408_); +if (v_isShared_5384_ == 0) +{ +lean_ctor_set(v___x_5383_, 3, v_newNeedlePos_5408_); +v___x_5411_ = v___x_5383_; +goto v_reusejp_5410_; +} +else +{ +lean_object* v_reuseFailAlloc_5413_; +v_reuseFailAlloc_5413_ = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(v_reuseFailAlloc_5413_, 0, v_needle_5378_); +lean_ctor_set(v_reuseFailAlloc_5413_, 1, v_table_5379_); +lean_ctor_set(v_reuseFailAlloc_5413_, 2, v_stackPos_5380_); +lean_ctor_set(v_reuseFailAlloc_5413_, 3, v_newNeedlePos_5408_); +v___x_5411_ = v_reuseFailAlloc_5413_; +goto v_reusejp_5410_; +} +v_reusejp_5410_: +{ +v_a_5360_ = v___x_5411_; +v_b_5361_ = v___x_5362_; +goto _start; +} +} +else +{ +lean_object* v_nextStackPos_5414_; lean_object* v___x_5416_; +v_nextStackPos_5414_ = l_String_Slice_posGE___redArg(v_s_5359_, v_stackPos_5380_); +if (v_isShared_5384_ == 0) +{ +lean_ctor_set(v___x_5383_, 3, v___x_5404_); +lean_ctor_set(v___x_5383_, 2, v_nextStackPos_5414_); +v___x_5416_ = v___x_5383_; +goto v_reusejp_5415_; +} +else +{ +lean_object* v_reuseFailAlloc_5418_; +v_reuseFailAlloc_5418_ = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(v_reuseFailAlloc_5418_, 0, v_needle_5378_); +lean_ctor_set(v_reuseFailAlloc_5418_, 1, v_table_5379_); +lean_ctor_set(v_reuseFailAlloc_5418_, 2, v_nextStackPos_5414_); +lean_ctor_set(v_reuseFailAlloc_5418_, 3, v___x_5404_); +v___x_5416_ = v_reuseFailAlloc_5418_; +goto v_reusejp_5415_; +} +v_reusejp_5415_: +{ +v_a_5360_ = v___x_5416_; +v_b_5361_ = v___x_5362_; +goto _start; +} +} +} +else +{ +lean_object* v___x_5419_; lean_object* v___x_5420_; lean_object* v_nextStackPos_5421_; lean_object* v___x_5423_; +lean_dec(v_needlePos_5381_); +v___x_5419_ = lean_unsigned_to_nat(1u); +v___x_5420_ = lean_nat_add(v_stackPos_5380_, v___x_5419_); +lean_dec(v_stackPos_5380_); +v_nextStackPos_5421_ = l_String_Slice_posGE___redArg(v_s_5359_, v___x_5420_); +if (v_isShared_5384_ == 0) +{ +lean_ctor_set(v___x_5383_, 3, v___x_5404_); +lean_ctor_set(v___x_5383_, 2, v_nextStackPos_5421_); +v___x_5423_ = v___x_5383_; +goto v_reusejp_5422_; +} +else +{ +lean_object* v_reuseFailAlloc_5425_; +v_reuseFailAlloc_5425_ = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(v_reuseFailAlloc_5425_, 0, v_needle_5378_); +lean_ctor_set(v_reuseFailAlloc_5425_, 1, v_table_5379_); +lean_ctor_set(v_reuseFailAlloc_5425_, 2, v_nextStackPos_5421_); +lean_ctor_set(v_reuseFailAlloc_5425_, 3, v___x_5404_); +v___x_5423_ = v_reuseFailAlloc_5425_; +goto v_reusejp_5422_; +} +v_reusejp_5422_: +{ +v_a_5360_ = v___x_5423_; +v_b_5361_ = v___x_5362_; +goto _start; +} +} +} +else +{ +lean_object* v___x_5426_; lean_object* v_nextNeedlePos_5427_; uint8_t v___x_5428_; +v___x_5426_ = lean_unsigned_to_nat(1u); +v_nextNeedlePos_5427_ = lean_nat_add(v_needlePos_5381_, v___x_5426_); +lean_dec(v_needlePos_5381_); +v___x_5428_ = lean_nat_dec_eq(v_nextNeedlePos_5427_, v___x_5392_); +lean_dec(v___x_5392_); +if (v___x_5428_ == 0) +{ +lean_object* v_nextStackPos_5429_; lean_object* v___x_5431_; +v_nextStackPos_5429_ = lean_nat_add(v_stackPos_5380_, v___x_5426_); +lean_dec(v_stackPos_5380_); +if (v_isShared_5384_ == 0) +{ +lean_ctor_set(v___x_5383_, 3, v_nextNeedlePos_5427_); +lean_ctor_set(v___x_5383_, 2, v_nextStackPos_5429_); +v___x_5431_ = v___x_5383_; +goto v_reusejp_5430_; +} +else +{ +lean_object* v_reuseFailAlloc_5433_; +v_reuseFailAlloc_5433_ = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(v_reuseFailAlloc_5433_, 0, v_needle_5378_); +lean_ctor_set(v_reuseFailAlloc_5433_, 1, v_table_5379_); +lean_ctor_set(v_reuseFailAlloc_5433_, 2, v_nextStackPos_5429_); +lean_ctor_set(v_reuseFailAlloc_5433_, 3, v_nextNeedlePos_5427_); +v___x_5431_ = v_reuseFailAlloc_5433_; +goto v_reusejp_5430_; +} +v_reusejp_5430_: +{ +v_a_5360_ = v___x_5431_; +goto _start; +} +} +else +{ +lean_dec(v_nextNeedlePos_5427_); +lean_del_object(v___x_5383_); +lean_dec(v_stackPos_5380_); +lean_dec_ref(v_table_5379_); +lean_dec_ref(v_needle_5378_); +return v___x_5428_; +} +} +} +} +} +default: +{ +return v_b_5361_; +} +} +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg___boxed(lean_object* v_s_5435_, lean_object* v_a_5436_, lean_object* v_b_5437_){ +_start: +{ +uint8_t v_b_boxed_5438_; uint8_t v_res_5439_; lean_object* v_r_5440_; +v_b_boxed_5438_ = lean_unbox(v_b_5437_); +v_res_5439_ = l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg(v_s_5435_, v_a_5436_, v_b_boxed_5438_); +lean_dec_ref(v_s_5435_); +v_r_5440_ = lean_box(v_res_5439_); +return v_r_5440_; +} +} +LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0(lean_object* v_needle_5443_, lean_object* v_s_5444_){ +_start: +{ +lean_object* v___y_5446_; lean_object* v___x_5449_; lean_object* v___x_5450_; uint8_t v___x_5451_; +v___x_5449_ = lean_unsigned_to_nat(0u); +v___x_5450_ = lean_string_utf8_byte_size(v_needle_5443_); +v___x_5451_ = lean_nat_dec_eq(v___x_5450_, v___x_5449_); +if (v___x_5451_ == 0) +{ +lean_object* v___x_5452_; lean_object* v___x_5453_; lean_object* v___x_5454_; +v___x_5452_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_5452_, 0, v_needle_5443_); +lean_ctor_set(v___x_5452_, 1, v___x_5449_); +lean_ctor_set(v___x_5452_, 2, v___x_5450_); +v___x_5453_ = l_String_Slice_Pattern_ForwardSliceSearcher_buildTable(v___x_5452_); +v___x_5454_ = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(v___x_5454_, 0, v___x_5452_); +lean_ctor_set(v___x_5454_, 1, v___x_5453_); +lean_ctor_set(v___x_5454_, 2, v___x_5449_); +lean_ctor_set(v___x_5454_, 3, v___x_5449_); +v___y_5446_ = v___x_5454_; +goto v___jp_5445_; +} +else +{ +lean_object* v___x_5455_; +lean_dec_ref(v_needle_5443_); +v___x_5455_ = ((lean_object*)(l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___closed__0)); +v___y_5446_ = v___x_5455_; +goto v___jp_5445_; +} +v___jp_5445_: +{ +uint8_t v___x_5447_; uint8_t v___x_5448_; +v___x_5447_ = 0; +v___x_5448_ = l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg(v_s_5444_, v___y_5446_, v___x_5447_); +return v___x_5448_; +} +} +} +LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0___boxed(lean_object* v_needle_5456_, lean_object* v_s_5457_){ +_start: +{ +uint8_t v_res_5458_; lean_object* v_r_5459_; +v_res_5458_ = l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0(v_needle_5456_, v_s_5457_); +lean_dec_ref(v_s_5457_); +v_r_5459_ = lean_box(v_res_5458_); +return v_r_5459_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertContains(lean_object* v_response_5461_, lean_object* v_needle_5462_){ +_start: +{ +lean_object* v___y_5465_; uint8_t v___x_5481_; +v___x_5481_ = lean_string_validate_utf8(v_response_5461_); +if (v___x_5481_ == 0) +{ +lean_object* v___x_5482_; lean_object* v___x_5483_; +lean_dec_ref(v_response_5461_); +v___x_5482_ = lean_obj_once(&l_Std_Http_Internal_Test_assertStatus___closed__5, &l_Std_Http_Internal_Test_assertStatus___closed__5_once, _init_l_Std_Http_Internal_Test_assertStatus___closed__5); +v___x_5483_ = l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(v___x_5482_); +v___y_5465_ = v___x_5483_; +goto v___jp_5464_; +} +else +{ +lean_object* v___x_5484_; +v___x_5484_ = lean_string_from_utf8_unchecked(v_response_5461_); +v___y_5465_ = v___x_5484_; +goto v___jp_5464_; +} +v___jp_5464_: +{ +lean_object* v___x_5466_; lean_object* v___x_5467_; lean_object* v___x_5468_; uint8_t v___x_5469_; +v___x_5466_ = lean_unsigned_to_nat(0u); +v___x_5467_ = lean_string_utf8_byte_size(v___y_5465_); +lean_inc_ref(v___y_5465_); +v___x_5468_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_5468_, 0, v___y_5465_); +lean_ctor_set(v___x_5468_, 1, v___x_5466_); +lean_ctor_set(v___x_5468_, 2, v___x_5467_); +lean_inc_ref(v_needle_5462_); +v___x_5469_ = l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0(v_needle_5462_, v___x_5468_); +lean_dec_ref(v___x_5468_); +if (v___x_5469_ == 0) +{ +lean_object* v___x_5470_; lean_object* v___x_5471_; lean_object* v___x_5472_; lean_object* v___x_5473_; lean_object* v___x_5474_; lean_object* v___x_5475_; lean_object* v___x_5476_; lean_object* v___x_5477_; lean_object* v___x_5478_; +v___x_5470_ = ((lean_object*)(l_Std_Http_Internal_Test_assertContains___closed__0)); +v___x_5471_ = l_String_quote(v_needle_5462_); +v___x_5472_ = lean_string_append(v___x_5470_, v___x_5471_); +lean_dec_ref(v___x_5471_); +v___x_5473_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__1)); +v___x_5474_ = lean_string_append(v___x_5472_, v___x_5473_); +v___x_5475_ = l_String_quote(v___y_5465_); +v___x_5476_ = lean_string_append(v___x_5474_, v___x_5475_); +lean_dec_ref(v___x_5475_); +v___x_5477_ = lean_mk_io_user_error(v___x_5476_); +v___x_5478_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5478_, 0, v___x_5477_); +return v___x_5478_; +} +else +{ +lean_object* v___x_5479_; lean_object* v___x_5480_; +lean_dec_ref(v___y_5465_); +lean_dec_ref(v_needle_5462_); +v___x_5479_ = lean_box(0); +v___x_5480_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5480_, 0, v___x_5479_); +return v___x_5480_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertContains___boxed(lean_object* v_response_5485_, lean_object* v_needle_5486_, lean_object* v_a_5487_){ +_start: +{ +lean_object* v_res_5488_; +v_res_5488_ = l_Std_Http_Internal_Test_assertContains(v_response_5485_, v_needle_5486_); +return v_res_5488_; +} +} +LEAN_EXPORT uint8_t l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0(lean_object* v_s_5489_, lean_object* v_inst_5490_, lean_object* v_R_5491_, lean_object* v_a_5492_, uint8_t v_b_5493_, lean_object* v_c_5494_){ +_start: +{ +uint8_t v___x_5495_; +v___x_5495_ = l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___redArg(v_s_5489_, v_a_5492_, v_b_5493_); +return v___x_5495_; +} +} +LEAN_EXPORT lean_object* l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0___boxed(lean_object* v_s_5496_, lean_object* v_inst_5497_, lean_object* v_R_5498_, lean_object* v_a_5499_, lean_object* v_b_5500_, lean_object* v_c_5501_){ +_start: +{ +uint8_t v_b_boxed_5502_; uint8_t v_res_5503_; lean_object* v_r_5504_; +v_b_boxed_5502_ = lean_unbox(v_b_5500_); +v_res_5503_ = l_WellFounded_opaqueFix_u2083___at___00String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0_spec__0(v_s_5496_, v_inst_5497_, v_R_5498_, v_a_5499_, v_b_boxed_5502_, v_c_5501_); +lean_dec_ref(v_s_5496_); +v_r_5504_ = lean_box(v_res_5503_); +return v_r_5504_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertAbsent(lean_object* v_response_5506_, lean_object* v_needle_5507_){ +_start: +{ +lean_object* v___y_5510_; uint8_t v___x_5526_; +v___x_5526_ = lean_string_validate_utf8(v_response_5506_); +if (v___x_5526_ == 0) +{ +lean_object* v___x_5527_; lean_object* v___x_5528_; +lean_dec_ref(v_response_5506_); +v___x_5527_ = lean_obj_once(&l_Std_Http_Internal_Test_assertStatus___closed__5, &l_Std_Http_Internal_Test_assertStatus___closed__5_once, _init_l_Std_Http_Internal_Test_assertStatus___closed__5); +v___x_5528_ = l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(v___x_5527_); +v___y_5510_ = v___x_5528_; +goto v___jp_5509_; +} +else +{ +lean_object* v___x_5529_; +v___x_5529_ = lean_string_from_utf8_unchecked(v_response_5506_); +v___y_5510_ = v___x_5529_; +goto v___jp_5509_; +} +v___jp_5509_: +{ +lean_object* v___x_5511_; lean_object* v___x_5512_; lean_object* v___x_5513_; uint8_t v___x_5514_; +v___x_5511_ = lean_unsigned_to_nat(0u); +v___x_5512_ = lean_string_utf8_byte_size(v___y_5510_); +lean_inc_ref(v___y_5510_); +v___x_5513_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v___x_5513_, 0, v___y_5510_); +lean_ctor_set(v___x_5513_, 1, v___x_5511_); +lean_ctor_set(v___x_5513_, 2, v___x_5512_); +lean_inc_ref(v_needle_5507_); +v___x_5514_ = l_String_Slice_contains___at___00Std_Http_Internal_Test_assertContains_spec__0(v_needle_5507_, v___x_5513_); +lean_dec_ref(v___x_5513_); +if (v___x_5514_ == 0) +{ +lean_object* v___x_5515_; lean_object* v___x_5516_; +lean_dec_ref(v___y_5510_); +lean_dec_ref(v_needle_5507_); +v___x_5515_ = lean_box(0); +v___x_5516_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5516_, 0, v___x_5515_); +return v___x_5516_; +} +else +{ +lean_object* v___x_5517_; lean_object* v___x_5518_; lean_object* v___x_5519_; lean_object* v___x_5520_; lean_object* v___x_5521_; lean_object* v___x_5522_; lean_object* v___x_5523_; lean_object* v___x_5524_; lean_object* v___x_5525_; +v___x_5517_ = ((lean_object*)(l_Std_Http_Internal_Test_assertAbsent___closed__0)); +v___x_5518_ = l_String_quote(v_needle_5507_); +v___x_5519_ = lean_string_append(v___x_5517_, v___x_5518_); +lean_dec_ref(v___x_5518_); +v___x_5520_ = ((lean_object*)(l_Std_Http_Internal_Test_assertStatus___closed__1)); +v___x_5521_ = lean_string_append(v___x_5519_, v___x_5520_); +v___x_5522_ = l_String_quote(v___y_5510_); +v___x_5523_ = lean_string_append(v___x_5521_, v___x_5522_); +lean_dec_ref(v___x_5522_); +v___x_5524_ = lean_mk_io_user_error(v___x_5523_); +v___x_5525_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5525_, 0, v___x_5524_); +return v___x_5525_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertAbsent___boxed(lean_object* v_response_5530_, lean_object* v_needle_5531_, lean_object* v_a_5532_){ +_start: +{ +lean_object* v_res_5533_; +v_res_5533_ = l_Std_Http_Internal_Test_assertAbsent(v_response_5530_, v_needle_5531_); +return v_res_5533_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertResponseCount(lean_object* v_response_5538_, lean_object* v_n_5539_){ +_start: +{ +lean_object* v___y_5542_; uint8_t v___x_5566_; +v___x_5566_ = lean_string_validate_utf8(v_response_5538_); +if (v___x_5566_ == 0) +{ +lean_object* v___x_5567_; lean_object* v___x_5568_; +lean_dec_ref(v_response_5538_); +v___x_5567_ = lean_obj_once(&l_Std_Http_Internal_Test_assertStatus___closed__5, &l_Std_Http_Internal_Test_assertStatus___closed__5_once, _init_l_Std_Http_Internal_Test_assertStatus___closed__5); +v___x_5568_ = l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0(v___x_5567_); +v___y_5542_ = v___x_5568_; +goto v___jp_5541_; +} +else +{ +lean_object* v___x_5569_; +v___x_5569_ = lean_string_from_utf8_unchecked(v_response_5538_); +v___y_5542_ = v___x_5569_; +goto v___jp_5541_; +} +v___jp_5541_: +{ +lean_object* v___x_5543_; lean_object* v___x_5544_; lean_object* v___x_5545_; lean_object* v___x_5546_; lean_object* v___x_5547_; lean_object* v___x_5548_; lean_object* v_got_5549_; uint8_t v___x_5550_; +v___x_5543_ = ((lean_object*)(l_Std_Http_Internal_Test_assertResponseCount___closed__0)); +v___x_5544_ = lean_unsigned_to_nat(0u); +v___x_5545_ = lean_box(0); +v___x_5546_ = l_String_splitOnAux(v___y_5542_, v___x_5543_, v___x_5544_, v___x_5544_, v___x_5544_, v___x_5545_); +v___x_5547_ = l_List_lengthTR___redArg(v___x_5546_); +lean_dec(v___x_5546_); +v___x_5548_ = lean_unsigned_to_nat(1u); +v_got_5549_ = lean_nat_sub(v___x_5547_, v___x_5548_); +lean_dec(v___x_5547_); +v___x_5550_ = lean_nat_dec_eq(v_got_5549_, v_n_5539_); +if (v___x_5550_ == 0) +{ +lean_object* v___x_5551_; lean_object* v___x_5552_; lean_object* v___x_5553_; lean_object* v___x_5554_; lean_object* v___x_5555_; lean_object* v___x_5556_; lean_object* v___x_5557_; lean_object* v___x_5558_; lean_object* v___x_5559_; lean_object* v___x_5560_; lean_object* v___x_5561_; lean_object* v___x_5562_; lean_object* v___x_5563_; +v___x_5551_ = ((lean_object*)(l_Std_Http_Internal_Test_assertResponseCount___closed__1)); +v___x_5552_ = l_Nat_reprFast(v_n_5539_); +v___x_5553_ = lean_string_append(v___x_5551_, v___x_5552_); +lean_dec_ref(v___x_5552_); +v___x_5554_ = ((lean_object*)(l_Std_Http_Internal_Test_assertResponseCount___closed__2)); +v___x_5555_ = lean_string_append(v___x_5553_, v___x_5554_); +v___x_5556_ = l_Nat_reprFast(v_got_5549_); +v___x_5557_ = lean_string_append(v___x_5555_, v___x_5556_); +lean_dec_ref(v___x_5556_); +v___x_5558_ = ((lean_object*)(l_Std_Http_Internal_Test_assertResponseCount___closed__3)); +v___x_5559_ = lean_string_append(v___x_5557_, v___x_5558_); +v___x_5560_ = l_String_quote(v___y_5542_); +v___x_5561_ = lean_string_append(v___x_5559_, v___x_5560_); +lean_dec_ref(v___x_5560_); +v___x_5562_ = lean_mk_io_user_error(v___x_5561_); +v___x_5563_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5563_, 0, v___x_5562_); +return v___x_5563_; +} +else +{ +lean_object* v___x_5564_; lean_object* v___x_5565_; +lean_dec(v_got_5549_); +lean_dec_ref(v___y_5542_); +lean_dec(v_n_5539_); +v___x_5564_ = lean_box(0); +v___x_5565_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5565_, 0, v___x_5564_); +return v___x_5565_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_assertResponseCount___boxed(lean_object* v_response_5570_, lean_object* v_n_5571_, lean_object* v_a_5572_){ +_start: +{ +lean_object* v_res_5573_; +v_res_5573_ = l_Std_Http_Internal_Test_assertResponseCount(v_response_5570_, v_n_5571_); +return v_res_5573_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0(lean_object* v___y_5586_){ +_start: +{ +lean_object* v___x_5588_; +v___x_5588_ = ((lean_object*)(l_Std_Http_Internal_Test_instHandlerTestHandler___lam__1___closed__1)); +return v___x_5588_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0___boxed(lean_object* v___y_5589_, lean_object* v___y_5590_){ +_start: +{ +lean_object* v_res_5591_; +v_res_5591_ = l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___lam__0(v___y_5589_); +lean_dec(v___y_5589_); +return v_res_5591_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0(lean_object* v_body_5593_){ +_start: +{ +lean_object* v___f_5594_; lean_object* v___x_5595_; lean_object* v___x_5596_; lean_object* v___x_5597_; lean_object* v___x_5598_; lean_object* v___x_5599_; lean_object* v___x_5600_; lean_object* v___x_5601_; +v___f_5594_ = ((lean_object*)(l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0___closed__0)); +lean_inc_ref_n(v_body_5593_, 5); +v___x_5595_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_recv___boxed), 2, 1); +lean_closure_set(v___x_5595_, 0, v_body_5593_); +v___x_5596_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_close___boxed), 2, 1); +lean_closure_set(v___x_5596_, 0, v_body_5593_); +v___x_5597_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_isClosed___boxed), 2, 1); +lean_closure_set(v___x_5597_, 0, v_body_5593_); +v___x_5598_ = l_Std_Http_Body_Full_recvSelector(v_body_5593_); +v___x_5599_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_tryRecv___boxed), 2, 1); +lean_closure_set(v___x_5599_, 0, v_body_5593_); +v___x_5600_ = lean_alloc_closure((void*)(l_Std_Http_Body_Full_getKnownSize___boxed), 2, 1); +lean_closure_set(v___x_5600_, 0, v_body_5593_); +v___x_5601_ = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(v___x_5601_, 0, v___x_5595_); +lean_ctor_set(v___x_5601_, 1, v___x_5596_); +lean_ctor_set(v___x_5601_, 2, v___x_5597_); +lean_ctor_set(v___x_5601_, 3, v___x_5598_); +lean_ctor_set(v___x_5601_, 4, v___x_5599_); +lean_ctor_set(v___x_5601_, 5, v___x_5600_); +lean_ctor_set(v___x_5601_, 6, v___f_5594_); +return v___x_5601_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___lam__0(lean_object* v_x_5602_){ +_start: +{ +if (lean_obj_tag(v_x_5602_) == 0) +{ +lean_object* v_a_5604_; lean_object* v___x_5606_; uint8_t v_isShared_5607_; uint8_t v_isSharedCheck_5612_; +v_a_5604_ = lean_ctor_get(v_x_5602_, 0); +v_isSharedCheck_5612_ = !lean_is_exclusive(v_x_5602_); +if (v_isSharedCheck_5612_ == 0) +{ +v___x_5606_ = v_x_5602_; +v_isShared_5607_ = v_isSharedCheck_5612_; +goto v_resetjp_5605_; +} +else +{ +lean_inc(v_a_5604_); +lean_dec(v_x_5602_); +v___x_5606_ = lean_box(0); +v_isShared_5607_ = v_isSharedCheck_5612_; +goto v_resetjp_5605_; +} +v_resetjp_5605_: +{ +lean_object* v___x_5609_; +if (v_isShared_5607_ == 0) +{ +v___x_5609_ = v___x_5606_; +goto v_reusejp_5608_; +} +else +{ +lean_object* v_reuseFailAlloc_5611_; +v_reuseFailAlloc_5611_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5611_, 0, v_a_5604_); +v___x_5609_ = v_reuseFailAlloc_5611_; +goto v_reusejp_5608_; +} +v_reusejp_5608_: +{ +lean_object* v___x_5610_; +v___x_5610_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5610_, 0, v___x_5609_); +return v___x_5610_; +} +} +} +else +{ +lean_object* v_a_5613_; lean_object* v___x_5615_; uint8_t v_isShared_5616_; uint8_t v_isSharedCheck_5632_; +v_a_5613_ = lean_ctor_get(v_x_5602_, 0); +v_isSharedCheck_5632_ = !lean_is_exclusive(v_x_5602_); +if (v_isSharedCheck_5632_ == 0) +{ +v___x_5615_ = v_x_5602_; +v_isShared_5616_ = v_isSharedCheck_5632_; +goto v_resetjp_5614_; +} +else +{ +lean_inc(v_a_5613_); +lean_dec(v_x_5602_); +v___x_5615_ = lean_box(0); +v_isShared_5616_ = v_isSharedCheck_5632_; +goto v_resetjp_5614_; +} +v_resetjp_5614_: +{ +lean_object* v_line_5617_; lean_object* v_body_5618_; lean_object* v_extensions_5619_; lean_object* v___x_5621_; uint8_t v_isShared_5622_; uint8_t v_isSharedCheck_5631_; +v_line_5617_ = lean_ctor_get(v_a_5613_, 0); +v_body_5618_ = lean_ctor_get(v_a_5613_, 1); +v_extensions_5619_ = lean_ctor_get(v_a_5613_, 2); +v_isSharedCheck_5631_ = !lean_is_exclusive(v_a_5613_); +if (v_isSharedCheck_5631_ == 0) +{ +v___x_5621_ = v_a_5613_; +v_isShared_5622_ = v_isSharedCheck_5631_; +goto v_resetjp_5620_; +} +else +{ +lean_inc(v_extensions_5619_); +lean_inc(v_body_5618_); +lean_inc(v_line_5617_); +lean_dec(v_a_5613_); +v___x_5621_ = lean_box(0); +v_isShared_5622_ = v_isSharedCheck_5631_; +goto v_resetjp_5620_; +} +v_resetjp_5620_: +{ +lean_object* v___x_5623_; lean_object* v___x_5625_; +v___x_5623_ = l_Std_Http_Body_Any_ofBody___at___00Std_Http_Internal_Test_okHandler_spec__0(v_body_5618_); +if (v_isShared_5622_ == 0) +{ +lean_ctor_set(v___x_5621_, 1, v___x_5623_); +v___x_5625_ = v___x_5621_; +goto v_reusejp_5624_; +} +else +{ +lean_object* v_reuseFailAlloc_5630_; +v_reuseFailAlloc_5630_ = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(v_reuseFailAlloc_5630_, 0, v_line_5617_); +lean_ctor_set(v_reuseFailAlloc_5630_, 1, v___x_5623_); +lean_ctor_set(v_reuseFailAlloc_5630_, 2, v_extensions_5619_); +v___x_5625_ = v_reuseFailAlloc_5630_; +goto v_reusejp_5624_; +} +v_reusejp_5624_: +{ +lean_object* v___x_5627_; +if (v_isShared_5616_ == 0) +{ +lean_ctor_set(v___x_5615_, 0, v___x_5625_); +v___x_5627_ = v___x_5615_; +goto v_reusejp_5626_; +} +else +{ +lean_object* v_reuseFailAlloc_5629_; +v_reuseFailAlloc_5629_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5629_, 0, v___x_5625_); +v___x_5627_ = v_reuseFailAlloc_5629_; +goto v_reusejp_5626_; +} +v_reusejp_5626_: +{ +lean_object* v___x_5628_; +v___x_5628_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5628_, 0, v___x_5627_); +return v___x_5628_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___lam__0___boxed(lean_object* v_x_5633_, lean_object* v___y_5634_){ +_start: +{ +lean_object* v_res_5635_; +v_res_5635_ = l_Std_Http_Internal_Test_okHandler___redArg___lam__0(v_x_5633_); +return v_res_5635_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg(){ +_start: +{ +lean_object* v___x_5639_; lean_object* v___x_5640_; lean_object* v___x_5641_; lean_object* v___f_5642_; lean_object* v___x_5643_; uint8_t v___x_5644_; lean_object* v___x_5645_; +v___x_5639_ = l_Std_Http_Response_ok; +v___x_5640_ = ((lean_object*)(l_Std_Http_Internal_Test_okHandler___redArg___closed__0)); +v___x_5641_ = l_Std_Http_Response_Builder_text(v___x_5639_, v___x_5640_); +v___f_5642_ = ((lean_object*)(l_Std_Http_Internal_Test_okHandler___redArg___closed__1)); +v___x_5643_ = lean_unsigned_to_nat(0u); +v___x_5644_ = 0; +v___x_5645_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5643_, v___x_5644_, v___x_5641_, v___f_5642_); +return v___x_5645_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___redArg___boxed(lean_object* v_a_5646_){ +_start: +{ +lean_object* v_res_5647_; +v_res_5647_ = l_Std_Http_Internal_Test_okHandler___redArg(); +return v_res_5647_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler(lean_object* v_x_5648_, lean_object* v_a_5649_){ +_start: +{ +lean_object* v___x_5651_; +v___x_5651_ = l_Std_Http_Internal_Test_okHandler___redArg(); +return v___x_5651_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_okHandler___boxed(lean_object* v_x_5652_, lean_object* v_a_5653_, lean_object* v_a_5654_){ +_start: +{ +lean_object* v_res_5655_; +v_res_5655_ = l_Std_Http_Internal_Test_okHandler(v_x_5652_, v_a_5653_); +lean_dec_ref(v_a_5653_); +lean_dec_ref(v_x_5652_); +return v_res_5655_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___lam__1(lean_object* v___f_5656_, lean_object* v_x_5657_){ +_start: +{ +if (lean_obj_tag(v_x_5657_) == 0) +{ +lean_object* v_a_5659_; lean_object* v___x_5661_; uint8_t v_isShared_5662_; uint8_t v_isSharedCheck_5667_; +lean_dec_ref(v___f_5656_); +v_a_5659_ = lean_ctor_get(v_x_5657_, 0); +v_isSharedCheck_5667_ = !lean_is_exclusive(v_x_5657_); +if (v_isSharedCheck_5667_ == 0) +{ +v___x_5661_ = v_x_5657_; +v_isShared_5662_ = v_isSharedCheck_5667_; +goto v_resetjp_5660_; +} +else +{ +lean_inc(v_a_5659_); +lean_dec(v_x_5657_); +v___x_5661_ = lean_box(0); +v_isShared_5662_ = v_isSharedCheck_5667_; +goto v_resetjp_5660_; +} +v_resetjp_5660_: +{ +lean_object* v___x_5664_; +if (v_isShared_5662_ == 0) +{ +v___x_5664_ = v___x_5661_; +goto v_reusejp_5663_; +} +else +{ +lean_object* v_reuseFailAlloc_5666_; +v_reuseFailAlloc_5666_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5666_, 0, v_a_5659_); +v___x_5664_ = v_reuseFailAlloc_5666_; +goto v_reusejp_5663_; +} +v_reusejp_5663_: +{ +lean_object* v___x_5665_; +v___x_5665_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5665_, 0, v___x_5664_); +return v___x_5665_; +} +} +} +else +{ +lean_object* v_a_5668_; lean_object* v___x_5669_; lean_object* v___x_5670_; lean_object* v___x_5671_; uint8_t v___x_5672_; lean_object* v___x_5673_; +v_a_5668_ = lean_ctor_get(v_x_5657_, 0); +lean_inc(v_a_5668_); +lean_dec_ref(v_x_5657_); +v___x_5669_ = l_Std_Http_Response_ok; +v___x_5670_ = l_Std_Http_Response_Builder_text(v___x_5669_, v_a_5668_); +lean_dec(v_a_5668_); +v___x_5671_ = lean_unsigned_to_nat(0u); +v___x_5672_ = 0; +v___x_5673_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5671_, v___x_5672_, v___x_5670_, v___f_5656_); +return v___x_5673_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___lam__1___boxed(lean_object* v___f_5674_, lean_object* v_x_5675_, lean_object* v___y_5676_){ +_start: +{ +lean_object* v_res_5677_; +v_res_5677_ = l_Std_Http_Internal_Test_echoHandler___lam__1(v___f_5674_, v_x_5675_); +return v_res_5677_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2(lean_object* v___y_5678_){ +_start: +{ +lean_object* v___x_5680_; lean_object* v___x_5681_; +v___x_5680_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5680_, 0, v___y_5678_); +v___x_5681_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5681_, 0, v___x_5680_); +return v___x_5681_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2___boxed(lean_object* v___y_5682_, lean_object* v___y_5683_){ +_start: +{ +lean_object* v_res_5684_; +v_res_5684_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__2(v___y_5682_); +return v_res_5684_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1(lean_object* v_x_5689_){ +_start: +{ +lean_object* v___x_5691_; +v___x_5691_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___closed__1)); +return v___x_5691_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1___boxed(lean_object* v_x_5692_, lean_object* v___y_5693_){ +_start: +{ +lean_object* v_res_5694_; +v_res_5694_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__1(v_x_5692_); +return v_res_5694_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0(lean_object* v_x_5695_){ +_start: +{ +if (lean_obj_tag(v_x_5695_) == 0) +{ +lean_object* v_a_5697_; lean_object* v___x_5699_; uint8_t v_isShared_5700_; uint8_t v_isSharedCheck_5705_; +v_a_5697_ = lean_ctor_get(v_x_5695_, 0); +v_isSharedCheck_5705_ = !lean_is_exclusive(v_x_5695_); +if (v_isSharedCheck_5705_ == 0) +{ +v___x_5699_ = v_x_5695_; +v_isShared_5700_ = v_isSharedCheck_5705_; +goto v_resetjp_5698_; +} +else +{ +lean_inc(v_a_5697_); +lean_dec(v_x_5695_); +v___x_5699_ = lean_box(0); +v_isShared_5700_ = v_isSharedCheck_5705_; +goto v_resetjp_5698_; +} +v_resetjp_5698_: +{ +lean_object* v___x_5702_; +if (v_isShared_5700_ == 0) +{ +v___x_5702_ = v___x_5699_; +goto v_reusejp_5701_; +} +else +{ +lean_object* v_reuseFailAlloc_5704_; +v_reuseFailAlloc_5704_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5704_, 0, v_a_5697_); +v___x_5702_ = v_reuseFailAlloc_5704_; +goto v_reusejp_5701_; +} +v_reusejp_5701_: +{ +lean_object* v___x_5703_; +v___x_5703_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5703_, 0, v___x_5702_); +return v___x_5703_; +} +} +} +else +{ +lean_object* v_a_5706_; lean_object* v___x_5708_; uint8_t v_isShared_5709_; uint8_t v_isSharedCheck_5716_; +v_a_5706_ = lean_ctor_get(v_x_5695_, 0); +v_isSharedCheck_5716_ = !lean_is_exclusive(v_x_5695_); +if (v_isSharedCheck_5716_ == 0) +{ +v___x_5708_ = v_x_5695_; +v_isShared_5709_ = v_isSharedCheck_5716_; +goto v_resetjp_5707_; +} +else +{ +lean_inc(v_a_5706_); +lean_dec(v_x_5695_); +v___x_5708_ = lean_box(0); +v_isShared_5709_ = v_isSharedCheck_5716_; +goto v_resetjp_5707_; +} +v_resetjp_5707_: +{ +lean_object* v_token_5710_; lean_object* v___x_5711_; lean_object* v___x_5713_; +v_token_5710_ = lean_ctor_get(v_a_5706_, 1); +lean_inc_ref(v_token_5710_); +lean_dec(v_a_5706_); +v___x_5711_ = l_Std_CancellationToken_selector(v_token_5710_); +if (v_isShared_5709_ == 0) +{ +lean_ctor_set(v___x_5708_, 0, v___x_5711_); +v___x_5713_ = v___x_5708_; +goto v_reusejp_5712_; +} +else +{ +lean_object* v_reuseFailAlloc_5715_; +v_reuseFailAlloc_5715_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5715_, 0, v___x_5711_); +v___x_5713_ = v_reuseFailAlloc_5715_; +goto v_reusejp_5712_; +} +v_reusejp_5712_: +{ +lean_object* v___x_5714_; +v___x_5714_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5714_, 0, v___x_5713_); +return v___x_5714_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0___boxed(lean_object* v_x_5717_, lean_object* v___y_5718_){ +_start: +{ +lean_object* v_res_5719_; +v_res_5719_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__0(v_x_5717_); +return v_res_5719_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3(lean_object* v_stream_5720_, lean_object* v___f_5721_, lean_object* v___f_5722_, lean_object* v_x_5723_){ +_start: +{ +if (lean_obj_tag(v_x_5723_) == 0) +{ +lean_object* v_a_5725_; lean_object* v___x_5727_; uint8_t v_isShared_5728_; uint8_t v_isSharedCheck_5733_; +lean_dec_ref(v___f_5722_); +lean_dec_ref(v___f_5721_); +lean_dec_ref(v_stream_5720_); +v_a_5725_ = lean_ctor_get(v_x_5723_, 0); +v_isSharedCheck_5733_ = !lean_is_exclusive(v_x_5723_); +if (v_isSharedCheck_5733_ == 0) +{ +v___x_5727_ = v_x_5723_; +v_isShared_5728_ = v_isSharedCheck_5733_; +goto v_resetjp_5726_; +} +else +{ +lean_inc(v_a_5725_); +lean_dec(v_x_5723_); +v___x_5727_ = lean_box(0); +v_isShared_5728_ = v_isSharedCheck_5733_; +goto v_resetjp_5726_; +} +v_resetjp_5726_: +{ +lean_object* v___x_5730_; +if (v_isShared_5728_ == 0) +{ +v___x_5730_ = v___x_5727_; +goto v_reusejp_5729_; +} +else +{ +lean_object* v_reuseFailAlloc_5732_; +v_reuseFailAlloc_5732_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5732_, 0, v_a_5725_); +v___x_5730_ = v_reuseFailAlloc_5732_; +goto v_reusejp_5729_; +} +v_reusejp_5729_: +{ +lean_object* v___x_5731_; +v___x_5731_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5731_, 0, v___x_5730_); +return v___x_5731_; +} +} +} +else +{ +lean_object* v_a_5734_; lean_object* v___x_5735_; lean_object* v___x_5736_; lean_object* v___x_5737_; lean_object* v___x_5738_; lean_object* v___x_5739_; lean_object* v___x_5740_; lean_object* v___x_5741_; lean_object* v___x_5742_; +v_a_5734_ = lean_ctor_get(v_x_5723_, 0); +lean_inc(v_a_5734_); +lean_dec_ref(v_x_5723_); +v___x_5735_ = l_Std_Http_Body_Stream_recvSelector(v_stream_5720_); +v___x_5736_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5736_, 0, v___x_5735_); +lean_ctor_set(v___x_5736_, 1, v___f_5721_); +v___x_5737_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_5737_, 0, v_a_5734_); +lean_ctor_set(v___x_5737_, 1, v___f_5722_); +v___x_5738_ = lean_unsigned_to_nat(2u); +v___x_5739_ = lean_mk_empty_array_with_capacity(v___x_5738_); +v___x_5740_ = lean_array_push(v___x_5739_, v___x_5736_); +v___x_5741_ = lean_array_push(v___x_5740_, v___x_5737_); +v___x_5742_ = l_Std_Internal_IO_Async_Selectable_one___redArg(v___x_5741_); +return v___x_5742_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3___boxed(lean_object* v_stream_5743_, lean_object* v___f_5744_, lean_object* v___f_5745_, lean_object* v_x_5746_, lean_object* v___y_5747_){ +_start: +{ +lean_object* v_res_5748_; +v_res_5748_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3(v_stream_5743_, v___f_5744_, v___f_5745_, v_x_5746_); +return v_res_5748_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4___boxed(lean_object* v_stream_5752_, lean_object* v_maximumSize_5753_, lean_object* v_result_5754_, lean_object* v___y_5755_, lean_object* v_x_5756_, lean_object* v___y_5757_){ +_start: +{ +lean_object* v_res_5758_; +v_res_5758_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4(v_stream_5752_, v_maximumSize_5753_, v_result_5754_, v___y_5755_, v_x_5756_); +lean_dec_ref(v___y_5755_); +return v_res_5758_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5(lean_object* v_result_5761_, lean_object* v_maximumSize_5762_, lean_object* v_stream_5763_, lean_object* v___y_5764_, lean_object* v_x_5765_){ +_start: +{ +if (lean_obj_tag(v_x_5765_) == 0) +{ +lean_object* v_a_5767_; lean_object* v___x_5769_; uint8_t v_isShared_5770_; uint8_t v_isSharedCheck_5775_; +lean_dec_ref(v_stream_5763_); +lean_dec(v_maximumSize_5762_); +lean_dec_ref(v_result_5761_); +v_a_5767_ = lean_ctor_get(v_x_5765_, 0); +v_isSharedCheck_5775_ = !lean_is_exclusive(v_x_5765_); +if (v_isSharedCheck_5775_ == 0) +{ +v___x_5769_ = v_x_5765_; +v_isShared_5770_ = v_isSharedCheck_5775_; +goto v_resetjp_5768_; +} +else +{ +lean_inc(v_a_5767_); +lean_dec(v_x_5765_); +v___x_5769_ = lean_box(0); +v_isShared_5770_ = v_isSharedCheck_5775_; +goto v_resetjp_5768_; +} +v_resetjp_5768_: +{ +lean_object* v___x_5772_; +if (v_isShared_5770_ == 0) +{ +v___x_5772_ = v___x_5769_; +goto v_reusejp_5771_; +} +else +{ +lean_object* v_reuseFailAlloc_5774_; +v_reuseFailAlloc_5774_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5774_, 0, v_a_5767_); +v___x_5772_ = v_reuseFailAlloc_5774_; +goto v_reusejp_5771_; +} +v_reusejp_5771_: +{ +lean_object* v___x_5773_; +v___x_5773_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5773_, 0, v___x_5772_); +return v___x_5773_; +} +} +} +else +{ +lean_object* v_a_5776_; lean_object* v___x_5778_; uint8_t v_isShared_5779_; uint8_t v_isSharedCheck_5818_; +v_a_5776_ = lean_ctor_get(v_x_5765_, 0); +v_isSharedCheck_5818_ = !lean_is_exclusive(v_x_5765_); +if (v_isSharedCheck_5818_ == 0) +{ +v___x_5778_ = v_x_5765_; +v_isShared_5779_ = v_isSharedCheck_5818_; +goto v_resetjp_5777_; +} +else +{ +lean_inc(v_a_5776_); +lean_dec(v_x_5765_); +v___x_5778_ = lean_box(0); +v_isShared_5779_ = v_isSharedCheck_5818_; +goto v_resetjp_5777_; +} +v_resetjp_5777_: +{ +if (lean_obj_tag(v_a_5776_) == 0) +{ +lean_object* v___x_5781_; +lean_dec_ref(v_stream_5763_); +lean_dec(v_maximumSize_5762_); +if (v_isShared_5779_ == 0) +{ +lean_ctor_set(v___x_5778_, 0, v_result_5761_); +v___x_5781_ = v___x_5778_; +goto v_reusejp_5780_; +} +else +{ +lean_object* v_reuseFailAlloc_5783_; +v_reuseFailAlloc_5783_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5783_, 0, v_result_5761_); +v___x_5781_ = v_reuseFailAlloc_5783_; +goto v_reusejp_5780_; +} +v_reusejp_5780_: +{ +lean_object* v___x_5782_; +v___x_5782_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5782_, 0, v___x_5781_); +return v___x_5782_; +} +} +else +{ +lean_object* v_val_5784_; lean_object* v___x_5786_; uint8_t v_isShared_5787_; uint8_t v_isSharedCheck_5817_; +v_val_5784_ = lean_ctor_get(v_a_5776_, 0); +v_isSharedCheck_5817_ = !lean_is_exclusive(v_a_5776_); +if (v_isSharedCheck_5817_ == 0) +{ +v___x_5786_ = v_a_5776_; +v_isShared_5787_ = v_isSharedCheck_5817_; +goto v_resetjp_5785_; +} +else +{ +lean_inc(v_val_5784_); +lean_dec(v_a_5776_); +v___x_5786_ = lean_box(0); +v_isShared_5787_ = v_isSharedCheck_5817_; +goto v_resetjp_5785_; +} +v_resetjp_5785_: +{ +lean_object* v_data_5788_; lean_object* v___x_5789_; lean_object* v___x_5790_; lean_object* v___x_5791_; uint8_t v___x_5792_; lean_object* v_result_5793_; +v_data_5788_ = lean_ctor_get(v_val_5784_, 0); +lean_inc_ref(v_data_5788_); +lean_dec(v_val_5784_); +v___x_5789_ = lean_unsigned_to_nat(0u); +v___x_5790_ = lean_byte_array_size(v_result_5761_); +v___x_5791_ = lean_byte_array_size(v_data_5788_); +v___x_5792_ = 0; +v_result_5793_ = lean_byte_array_copy_slice(v_data_5788_, v___x_5789_, v_result_5761_, v___x_5790_, v___x_5791_, v___x_5792_); +lean_dec_ref(v_data_5788_); +if (lean_obj_tag(v_maximumSize_5762_) == 1) +{ +lean_object* v_val_5794_; lean_object* v___x_5795_; uint64_t v___x_5796_; uint64_t v___x_5797_; uint8_t v___x_5798_; +v_val_5794_ = lean_ctor_get(v_maximumSize_5762_, 0); +v___x_5795_ = lean_byte_array_size(v_result_5793_); +v___x_5796_ = lean_uint64_of_nat(v___x_5795_); +v___x_5797_ = lean_unbox_uint64(v_val_5794_); +v___x_5798_ = lean_uint64_dec_lt(v___x_5797_, v___x_5796_); +if (v___x_5798_ == 0) +{ +lean_object* v___x_5799_; +lean_del_object(v___x_5786_); +lean_del_object(v___x_5778_); +v___x_5799_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(v_stream_5763_, v_maximumSize_5762_, v_result_5793_, v___y_5764_); +return v___x_5799_; +} +else +{ +lean_object* v___f_5800_; lean_object* v___x_5801_; uint64_t v___x_5802_; lean_object* v___x_5803_; lean_object* v___x_5804_; lean_object* v___x_5805_; lean_object* v___x_5806_; lean_object* v___x_5807_; lean_object* v___x_5809_; +lean_inc(v_val_5794_); +lean_inc_ref(v___y_5764_); +v___f_5800_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4___boxed), 6, 4); +lean_closure_set(v___f_5800_, 0, v_stream_5763_); +lean_closure_set(v___f_5800_, 1, v_maximumSize_5762_); +lean_closure_set(v___f_5800_, 2, v_result_5793_); +lean_closure_set(v___f_5800_, 3, v___y_5764_); +v___x_5801_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__0)); +v___x_5802_ = lean_unbox_uint64(v_val_5794_); +lean_dec(v_val_5794_); +v___x_5803_ = lean_uint64_to_nat(v___x_5802_); +v___x_5804_ = l_Nat_reprFast(v___x_5803_); +v___x_5805_ = lean_string_append(v___x_5801_, v___x_5804_); +lean_dec_ref(v___x_5804_); +v___x_5806_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___closed__1)); +v___x_5807_ = lean_string_append(v___x_5805_, v___x_5806_); +if (v_isShared_5787_ == 0) +{ +lean_ctor_set_tag(v___x_5786_, 18); +lean_ctor_set(v___x_5786_, 0, v___x_5807_); +v___x_5809_ = v___x_5786_; +goto v_reusejp_5808_; +} +else +{ +lean_object* v_reuseFailAlloc_5815_; +v_reuseFailAlloc_5815_ = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5815_, 0, v___x_5807_); +v___x_5809_ = v_reuseFailAlloc_5815_; +goto v_reusejp_5808_; +} +v_reusejp_5808_: +{ +lean_object* v___x_5811_; +if (v_isShared_5779_ == 0) +{ +lean_ctor_set_tag(v___x_5778_, 0); +lean_ctor_set(v___x_5778_, 0, v___x_5809_); +v___x_5811_ = v___x_5778_; +goto v_reusejp_5810_; +} +else +{ +lean_object* v_reuseFailAlloc_5814_; +v_reuseFailAlloc_5814_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5814_, 0, v___x_5809_); +v___x_5811_ = v_reuseFailAlloc_5814_; +goto v_reusejp_5810_; +} +v_reusejp_5810_: +{ +lean_object* v___x_5812_; lean_object* v___x_5813_; +v___x_5812_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5812_, 0, v___x_5811_); +v___x_5813_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5789_, v___x_5792_, v___x_5812_, v___f_5800_); +return v___x_5813_; +} +} +} +} +else +{ +lean_object* v___x_5816_; +lean_del_object(v___x_5786_); +lean_del_object(v___x_5778_); +v___x_5816_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(v_stream_5763_, v_maximumSize_5762_, v_result_5793_, v___y_5764_); +return v___x_5816_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___boxed(lean_object* v_result_5819_, lean_object* v_maximumSize_5820_, lean_object* v_stream_5821_, lean_object* v___y_5822_, lean_object* v_x_5823_, lean_object* v___y_5824_){ +_start: +{ +lean_object* v_res_5825_; +v_res_5825_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5(v_result_5819_, v_maximumSize_5820_, v_stream_5821_, v___y_5822_, v_x_5823_); +lean_dec_ref(v___y_5822_); +return v_res_5825_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(lean_object* v_stream_5826_, lean_object* v_maximumSize_5827_, lean_object* v_result_5828_, lean_object* v___y_5829_){ +_start: +{ +lean_object* v___f_5831_; lean_object* v___x_5832_; lean_object* v___x_5833_; lean_object* v___x_5834_; uint8_t v___x_5835_; lean_object* v___x_5836_; lean_object* v___f_5837_; lean_object* v___f_5838_; lean_object* v___f_5839_; lean_object* v___x_5840_; lean_object* v___f_5841_; lean_object* v___x_5842_; +v___f_5831_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__0)); +lean_inc_ref_n(v___y_5829_, 2); +v___x_5832_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_5832_, 0, v___y_5829_); +v___x_5833_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5833_, 0, v___x_5832_); +v___x_5834_ = lean_unsigned_to_nat(0u); +v___x_5835_ = 0; +v___x_5836_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5834_, v___x_5835_, v___x_5833_, v___f_5831_); +v___f_5837_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__1)); +v___f_5838_ = ((lean_object*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___closed__2)); +lean_inc_ref(v_stream_5826_); +v___f_5839_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__3___boxed), 5, 3); +lean_closure_set(v___f_5839_, 0, v_stream_5826_); +lean_closure_set(v___f_5839_, 1, v___f_5838_); +lean_closure_set(v___f_5839_, 2, v___f_5837_); +v___x_5840_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5834_, v___x_5835_, v___x_5836_, v___f_5839_); +v___f_5841_ = lean_alloc_closure((void*)(l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__5___boxed), 6, 4); +lean_closure_set(v___f_5841_, 0, v_result_5828_); +lean_closure_set(v___f_5841_, 1, v_maximumSize_5827_); +lean_closure_set(v___f_5841_, 2, v_stream_5826_); +lean_closure_set(v___f_5841_, 3, v___y_5829_); +v___x_5842_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5834_, v___x_5835_, v___x_5840_, v___f_5841_); +return v___x_5842_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___lam__4(lean_object* v_stream_5843_, lean_object* v_maximumSize_5844_, lean_object* v_result_5845_, lean_object* v___y_5846_, lean_object* v_x_5847_){ +_start: +{ +if (lean_obj_tag(v_x_5847_) == 0) +{ +lean_object* v_a_5849_; lean_object* v___x_5851_; uint8_t v_isShared_5852_; uint8_t v_isSharedCheck_5857_; +lean_dec_ref(v_result_5845_); +lean_dec(v_maximumSize_5844_); +lean_dec_ref(v_stream_5843_); +v_a_5849_ = lean_ctor_get(v_x_5847_, 0); +v_isSharedCheck_5857_ = !lean_is_exclusive(v_x_5847_); +if (v_isSharedCheck_5857_ == 0) +{ +v___x_5851_ = v_x_5847_; +v_isShared_5852_ = v_isSharedCheck_5857_; +goto v_resetjp_5850_; +} +else +{ +lean_inc(v_a_5849_); +lean_dec(v_x_5847_); +v___x_5851_ = lean_box(0); +v_isShared_5852_ = v_isSharedCheck_5857_; +goto v_resetjp_5850_; +} +v_resetjp_5850_: +{ +lean_object* v___x_5854_; +if (v_isShared_5852_ == 0) +{ +v___x_5854_ = v___x_5851_; +goto v_reusejp_5853_; +} +else +{ +lean_object* v_reuseFailAlloc_5856_; +v_reuseFailAlloc_5856_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5856_, 0, v_a_5849_); +v___x_5854_ = v_reuseFailAlloc_5856_; +goto v_reusejp_5853_; +} +v_reusejp_5853_: +{ +lean_object* v___x_5855_; +v___x_5855_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5855_, 0, v___x_5854_); +return v___x_5855_; +} +} +} +else +{ +lean_object* v___x_5858_; +lean_dec_ref(v_x_5847_); +v___x_5858_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(v_stream_5843_, v_maximumSize_5844_, v_result_5845_, v___y_5846_); +return v___x_5858_; +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0___boxed(lean_object* v_stream_5859_, lean_object* v_maximumSize_5860_, lean_object* v_result_5861_, lean_object* v___y_5862_, lean_object* v___y_5863_){ +_start: +{ +lean_object* v_res_5864_; +v_res_5864_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(v_stream_5859_, v_maximumSize_5860_, v_result_5861_, v___y_5862_); +lean_dec_ref(v___y_5862_); +return v_res_5864_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0(lean_object* v_x_5872_){ +_start: +{ +if (lean_obj_tag(v_x_5872_) == 0) +{ +lean_object* v_a_5874_; lean_object* v___x_5876_; uint8_t v_isShared_5877_; uint8_t v_isSharedCheck_5882_; +v_a_5874_ = lean_ctor_get(v_x_5872_, 0); +v_isSharedCheck_5882_ = !lean_is_exclusive(v_x_5872_); +if (v_isSharedCheck_5882_ == 0) +{ +v___x_5876_ = v_x_5872_; +v_isShared_5877_ = v_isSharedCheck_5882_; +goto v_resetjp_5875_; +} +else +{ +lean_inc(v_a_5874_); +lean_dec(v_x_5872_); +v___x_5876_ = lean_box(0); +v_isShared_5877_ = v_isSharedCheck_5882_; +goto v_resetjp_5875_; +} +v_resetjp_5875_: +{ +lean_object* v___x_5879_; +if (v_isShared_5877_ == 0) +{ +v___x_5879_ = v___x_5876_; +goto v_reusejp_5878_; +} +else +{ +lean_object* v_reuseFailAlloc_5881_; +v_reuseFailAlloc_5881_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5881_, 0, v_a_5874_); +v___x_5879_ = v_reuseFailAlloc_5881_; +goto v_reusejp_5878_; +} +v_reusejp_5878_: +{ +lean_object* v___x_5880_; +v___x_5880_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5880_, 0, v___x_5879_); +return v___x_5880_; +} +} +} +else +{ +lean_object* v_a_5883_; lean_object* v___x_5885_; uint8_t v_isShared_5886_; uint8_t v_isSharedCheck_5894_; +v_a_5883_ = lean_ctor_get(v_x_5872_, 0); +v_isSharedCheck_5894_ = !lean_is_exclusive(v_x_5872_); +if (v_isSharedCheck_5894_ == 0) +{ +v___x_5885_ = v_x_5872_; +v_isShared_5886_ = v_isSharedCheck_5894_; +goto v_resetjp_5884_; +} +else +{ +lean_inc(v_a_5883_); +lean_dec(v_x_5872_); +v___x_5885_ = lean_box(0); +v_isShared_5886_ = v_isSharedCheck_5894_; +goto v_resetjp_5884_; +} +v_resetjp_5884_: +{ +uint8_t v___x_5887_; +v___x_5887_ = lean_string_validate_utf8(v_a_5883_); +if (v___x_5887_ == 0) +{ +lean_object* v___x_5888_; +lean_del_object(v___x_5885_); +lean_dec(v_a_5883_); +v___x_5888_ = ((lean_object*)(l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___closed__3)); +return v___x_5888_; +} +else +{ +lean_object* v___x_5889_; lean_object* v___x_5891_; +v___x_5889_ = lean_string_from_utf8_unchecked(v_a_5883_); +if (v_isShared_5886_ == 0) +{ +lean_ctor_set(v___x_5885_, 0, v___x_5889_); +v___x_5891_ = v___x_5885_; +goto v_reusejp_5890_; +} +else +{ +lean_object* v_reuseFailAlloc_5893_; +v_reuseFailAlloc_5893_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_5893_, 0, v___x_5889_); +v___x_5891_ = v_reuseFailAlloc_5893_; +goto v_reusejp_5890_; +} +v_reusejp_5890_: +{ +lean_object* v___x_5892_; +v___x_5892_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_5892_, 0, v___x_5891_); +return v___x_5892_; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0___boxed(lean_object* v_x_5895_, lean_object* v___y_5896_){ +_start: +{ +lean_object* v_res_5897_; +v_res_5897_ = l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___lam__0(v_x_5895_); +return v_res_5897_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0(lean_object* v_stream_5899_, lean_object* v_maximumSize_5900_, lean_object* v___y_5901_){ +_start: +{ +lean_object* v___x_5903_; lean_object* v___x_5904_; lean_object* v___f_5905_; lean_object* v___x_5906_; uint8_t v___x_5907_; lean_object* v___x_5908_; +v___x_5903_ = l_ByteArray_empty; +v___x_5904_ = l___private_Std_Internal_Http_Data_Body_Stream_0__Std_Http_Body_Stream_readAll_loop___at___00Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0_spec__0(v_stream_5899_, v_maximumSize_5900_, v___x_5903_, v___y_5901_); +v___f_5905_ = ((lean_object*)(l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___closed__0)); +v___x_5906_ = lean_unsigned_to_nat(0u); +v___x_5907_ = 0; +v___x_5908_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5906_, v___x_5907_, v___x_5904_, v___f_5905_); +return v___x_5908_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0___boxed(lean_object* v_stream_5909_, lean_object* v_maximumSize_5910_, lean_object* v___y_5911_, lean_object* v___y_5912_){ +_start: +{ +lean_object* v_res_5913_; +v_res_5913_ = l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0(v_stream_5909_, v_maximumSize_5910_, v___y_5911_); +lean_dec_ref(v___y_5911_); +return v_res_5913_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler(lean_object* v_req_5916_, lean_object* v_a_5917_){ +_start: +{ +lean_object* v_body_5919_; lean_object* v___x_5920_; lean_object* v___x_5921_; lean_object* v___f_5922_; lean_object* v___x_5923_; uint8_t v___x_5924_; lean_object* v___x_5925_; +v_body_5919_ = lean_ctor_get(v_req_5916_, 1); +lean_inc(v_body_5919_); +lean_dec_ref(v_req_5916_); +v___x_5920_ = lean_box(0); +v___x_5921_ = l_Std_Http_Body_Stream_readAll___at___00Std_Http_Internal_Test_echoHandler_spec__0(v_body_5919_, v___x_5920_, v_a_5917_); +v___f_5922_ = ((lean_object*)(l_Std_Http_Internal_Test_echoHandler___closed__0)); +v___x_5923_ = lean_unsigned_to_nat(0u); +v___x_5924_ = 0; +v___x_5925_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5923_, v___x_5924_, v___x_5921_, v___f_5922_); +return v___x_5925_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_echoHandler___boxed(lean_object* v_req_5926_, lean_object* v_a_5927_, lean_object* v_a_5928_){ +_start: +{ +lean_object* v_res_5929_; +v_res_5929_ = l_Std_Http_Internal_Test_echoHandler(v_req_5926_, v_a_5927_); +lean_dec_ref(v_a_5927_); +return v_res_5929_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1(size_t v_sz_5930_, size_t v_i_5931_, lean_object* v_bs_5932_){ +_start: +{ +uint8_t v___x_5933_; +v___x_5933_ = lean_usize_dec_lt(v_i_5931_, v_sz_5930_); +if (v___x_5933_ == 0) +{ +return v_bs_5932_; +} +else +{ +lean_object* v_v_5934_; lean_object* v___x_5935_; lean_object* v_bs_x27_5936_; lean_object* v___x_5937_; size_t v___x_5938_; size_t v___x_5939_; lean_object* v___x_5940_; +v_v_5934_ = lean_array_uget(v_bs_5932_, v_i_5931_); +v___x_5935_ = lean_unsigned_to_nat(0u); +v_bs_x27_5936_ = lean_array_uset(v_bs_5932_, v_i_5931_, v___x_5935_); +v___x_5937_ = lean_string_from_utf8_unchecked(v_v_5934_); +v___x_5938_ = ((size_t)1ULL); +v___x_5939_ = lean_usize_add(v_i_5931_, v___x_5938_); +v___x_5940_ = lean_array_uset(v_bs_x27_5936_, v_i_5931_, v___x_5937_); +v_i_5931_ = v___x_5939_; +v_bs_5932_ = v___x_5940_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1___boxed(lean_object* v_sz_5942_, lean_object* v_i_5943_, lean_object* v_bs_5944_){ +_start: +{ +size_t v_sz_boxed_5945_; size_t v_i_boxed_5946_; lean_object* v_res_5947_; +v_sz_boxed_5945_ = lean_unbox_usize(v_sz_5942_); +lean_dec(v_sz_5942_); +v_i_boxed_5946_ = lean_unbox_usize(v_i_5943_); +lean_dec(v_i_5943_); +v_res_5947_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1(v_sz_boxed_5945_, v_i_boxed_5946_, v_bs_5944_); +return v_res_5947_; +} +} +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___00Std_Http_Internal_Test_uriHandler_spec__0(lean_object* v_a_5948_, lean_object* v_a_5949_){ +_start: +{ +if (lean_obj_tag(v_a_5948_) == 0) +{ +lean_object* v___x_5950_; +v___x_5950_ = l_List_reverse___redArg(v_a_5949_); +return v___x_5950_; +} +else +{ +lean_object* v_head_5951_; lean_object* v_tail_5952_; lean_object* v___x_5954_; uint8_t v_isShared_5955_; uint8_t v_isSharedCheck_5963_; +v_head_5951_ = lean_ctor_get(v_a_5948_, 0); +v_tail_5952_ = lean_ctor_get(v_a_5948_, 1); +v_isSharedCheck_5963_ = !lean_is_exclusive(v_a_5948_); +if (v_isSharedCheck_5963_ == 0) +{ +v___x_5954_ = v_a_5948_; +v_isShared_5955_ = v_isSharedCheck_5963_; +goto v_resetjp_5953_; +} +else +{ +lean_inc(v_tail_5952_); +lean_inc(v_head_5951_); +lean_dec(v_a_5948_); +v___x_5954_ = lean_box(0); +v_isShared_5955_ = v_isSharedCheck_5963_; +goto v_resetjp_5953_; +} +v_resetjp_5953_: +{ +lean_object* v_fst_5956_; lean_object* v_snd_5957_; lean_object* v___x_5958_; lean_object* v___x_5960_; +v_fst_5956_ = lean_ctor_get(v_head_5951_, 0); +lean_inc(v_fst_5956_); +v_snd_5957_ = lean_ctor_get(v_head_5951_, 1); +lean_inc(v_snd_5957_); +lean_dec(v_head_5951_); +v___x_5958_ = l_Std_Http_URI_Query_formatQueryParam(v_fst_5956_, v_snd_5957_); +if (v_isShared_5955_ == 0) +{ +lean_ctor_set(v___x_5954_, 1, v_a_5949_); +lean_ctor_set(v___x_5954_, 0, v___x_5958_); +v___x_5960_ = v___x_5954_; +goto v_reusejp_5959_; +} +else +{ +lean_object* v_reuseFailAlloc_5962_; +v_reuseFailAlloc_5962_ = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(v_reuseFailAlloc_5962_, 0, v___x_5958_); +lean_ctor_set(v_reuseFailAlloc_5962_, 1, v_a_5949_); +v___x_5960_ = v_reuseFailAlloc_5962_; +goto v_reusejp_5959_; +} +v_reusejp_5959_: +{ +v_a_5948_ = v_tail_5952_; +v_a_5949_ = v___x_5960_; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___redArg(lean_object* v_req_5973_){ +_start: +{ +lean_object* v_line_5975_; lean_object* v_uri_5976_; lean_object* v___f_5977_; lean_object* v___x_5978_; lean_object* v___y_5980_; lean_object* v___y_5986_; lean_object* v___y_5987_; lean_object* v___y_5988_; +v_line_5975_ = lean_ctor_get(v_req_5973_, 0); +lean_inc_ref(v_line_5975_); +lean_dec_ref(v_req_5973_); +v_uri_5976_ = lean_ctor_get(v_line_5975_, 0); +lean_inc(v_uri_5976_); +lean_dec_ref(v_line_5975_); +v___f_5977_ = ((lean_object*)(l_Std_Http_Internal_Test_okHandler___redArg___closed__1)); +v___x_5978_ = l_Std_Http_Response_ok; +switch(lean_obj_tag(v_uri_5976_)) +{ +case 0: +{ +lean_object* v_path_5991_; lean_object* v_query_5992_; lean_object* v___y_5994_; lean_object* v_segments_6007_; uint8_t v_absolute_6008_; lean_object* v___x_6009_; size_t v_sz_6010_; size_t v___x_6011_; lean_object* v___x_6012_; lean_object* v___x_6013_; lean_object* v_result_6014_; +v_path_5991_ = lean_ctor_get(v_uri_5976_, 0); +lean_inc_ref(v_path_5991_); +v_query_5992_ = lean_ctor_get(v_uri_5976_, 1); +lean_inc(v_query_5992_); +lean_dec_ref(v_uri_5976_); +v_segments_6007_ = lean_ctor_get(v_path_5991_, 0); +lean_inc_ref(v_segments_6007_); +v_absolute_6008_ = lean_ctor_get_uint8(v_path_5991_, sizeof(void*)*1); +lean_dec_ref(v_path_5991_); +v___x_6009_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__2)); +v_sz_6010_ = lean_array_size(v_segments_6007_); +v___x_6011_ = ((size_t)0ULL); +v___x_6012_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1(v_sz_6010_, v___x_6011_, v_segments_6007_); +v___x_6013_ = lean_array_to_list(v___x_6012_); +v_result_6014_ = l_String_intercalate(v___x_6009_, v___x_6013_); +if (v_absolute_6008_ == 0) +{ +v___y_5994_ = v_result_6014_; +goto v___jp_5993_; +} +else +{ +lean_object* v___x_6015_; +v___x_6015_ = lean_string_append(v___x_6009_, v_result_6014_); +lean_dec_ref(v_result_6014_); +v___y_5994_ = v___x_6015_; +goto v___jp_5993_; +} +v___jp_5993_: +{ +if (lean_obj_tag(v_query_5992_) == 0) +{ +v___y_5980_ = v___y_5994_; +goto v___jp_5979_; +} +else +{ +lean_object* v_val_5995_; lean_object* v___x_5996_; lean_object* v___x_5997_; uint8_t v___x_5998_; +v_val_5995_ = lean_ctor_get(v_query_5992_, 0); +lean_inc(v_val_5995_); +lean_dec_ref(v_query_5992_); +v___x_5996_ = lean_array_get_size(v_val_5995_); +v___x_5997_ = lean_unsigned_to_nat(0u); +v___x_5998_ = lean_nat_dec_eq(v___x_5996_, v___x_5997_); +if (v___x_5998_ == 0) +{ +lean_object* v___x_5999_; lean_object* v___x_6000_; lean_object* v_encodedParams_6001_; lean_object* v___x_6002_; lean_object* v___x_6003_; lean_object* v___x_6004_; lean_object* v___x_6005_; lean_object* v___x_6006_; +v___x_5999_ = lean_array_to_list(v_val_5995_); +v___x_6000_ = lean_box(0); +v_encodedParams_6001_ = l_List_mapTR_loop___at___00Std_Http_Internal_Test_uriHandler_spec__0(v___x_5999_, v___x_6000_); +v___x_6002_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__0)); +v___x_6003_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__1)); +v___x_6004_ = l_String_intercalate(v___x_6003_, v_encodedParams_6001_); +v___x_6005_ = lean_string_append(v___x_6002_, v___x_6004_); +lean_dec_ref(v___x_6004_); +v___x_6006_ = lean_string_append(v___y_5994_, v___x_6005_); +lean_dec_ref(v___x_6005_); +v___y_5980_ = v___x_6006_; +goto v___jp_5979_; +} +else +{ +lean_dec(v_val_5995_); +v___y_5980_ = v___y_5994_; +goto v___jp_5979_; +} +} +} +} +case 1: +{ +lean_object* v_uri_6016_; lean_object* v_scheme_6017_; lean_object* v_authority_6018_; lean_object* v_path_6019_; lean_object* v_query_6020_; lean_object* v_fragment_6021_; lean_object* v___y_6023_; lean_object* v___y_6024_; lean_object* v___y_6025_; lean_object* v___y_6026_; lean_object* v___y_6034_; lean_object* v___y_6035_; lean_object* v___y_6036_; lean_object* v___y_6044_; lean_object* v___y_6045_; lean_object* v___y_6058_; +v_uri_6016_ = lean_ctor_get(v_uri_5976_, 0); +lean_inc_ref(v_uri_6016_); +lean_dec_ref(v_uri_5976_); +v_scheme_6017_ = lean_ctor_get(v_uri_6016_, 0); +lean_inc_ref(v_scheme_6017_); +v_authority_6018_ = lean_ctor_get(v_uri_6016_, 1); +lean_inc(v_authority_6018_); +v_path_6019_ = lean_ctor_get(v_uri_6016_, 2); +lean_inc_ref(v_path_6019_); +v_query_6020_ = lean_ctor_get(v_uri_6016_, 3); +lean_inc_ref(v_query_6020_); +v_fragment_6021_ = lean_ctor_get(v_uri_6016_, 4); +lean_inc(v_fragment_6021_); +lean_dec_ref(v_uri_6016_); +if (lean_obj_tag(v_authority_6018_) == 0) +{ +lean_object* v___x_6068_; +v___x_6068_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6058_ = v___x_6068_; +goto v___jp_6057_; +} +else +{ +lean_object* v_val_6069_; lean_object* v_userInfo_6070_; lean_object* v_host_6071_; lean_object* v_port_6072_; lean_object* v___x_6073_; lean_object* v___y_6075_; lean_object* v___y_6076_; lean_object* v___y_6077_; lean_object* v___y_6082_; lean_object* v___y_6083_; lean_object* v___y_6092_; +v_val_6069_ = lean_ctor_get(v_authority_6018_, 0); +lean_inc(v_val_6069_); +lean_dec_ref(v_authority_6018_); +v_userInfo_6070_ = lean_ctor_get(v_val_6069_, 0); +lean_inc(v_userInfo_6070_); +v_host_6071_ = lean_ctor_get(v_val_6069_, 1); +lean_inc_ref(v_host_6071_); +v_port_6072_ = lean_ctor_get(v_val_6069_, 2); +lean_inc(v_port_6072_); +lean_dec(v_val_6069_); +v___x_6073_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__5)); +if (lean_obj_tag(v_userInfo_6070_) == 0) +{ +lean_object* v___x_6102_; +v___x_6102_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6092_ = v___x_6102_; +goto v___jp_6091_; +} +else +{ +lean_object* v_val_6103_; lean_object* v_password_6104_; +v_val_6103_ = lean_ctor_get(v_userInfo_6070_, 0); +lean_inc(v_val_6103_); +lean_dec_ref(v_userInfo_6070_); +v_password_6104_ = lean_ctor_get(v_val_6103_, 1); +if (lean_obj_tag(v_password_6104_) == 0) +{ +lean_object* v_username_6105_; lean_object* v___x_6106_; lean_object* v___x_6107_; lean_object* v___x_6108_; +v_username_6105_ = lean_ctor_get(v_val_6103_, 0); +lean_inc_ref(v_username_6105_); +lean_dec(v_val_6103_); +v___x_6106_ = lean_string_from_utf8_unchecked(v_username_6105_); +v___x_6107_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__7)); +v___x_6108_ = lean_string_append(v___x_6106_, v___x_6107_); +v___y_6092_ = v___x_6108_; +goto v___jp_6091_; +} +else +{ +lean_object* v_username_6109_; lean_object* v_val_6110_; lean_object* v___x_6111_; lean_object* v___x_6112_; lean_object* v___x_6113_; lean_object* v___x_6114_; lean_object* v___x_6115_; lean_object* v___x_6116_; lean_object* v___x_6117_; +lean_inc_ref(v_password_6104_); +v_username_6109_ = lean_ctor_get(v_val_6103_, 0); +lean_inc_ref(v_username_6109_); +lean_dec(v_val_6103_); +v_val_6110_ = lean_ctor_get(v_password_6104_, 0); +lean_inc(v_val_6110_); +lean_dec_ref(v_password_6104_); +v___x_6111_ = lean_string_from_utf8_unchecked(v_username_6109_); +v___x_6112_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___x_6113_ = lean_string_append(v___x_6111_, v___x_6112_); +v___x_6114_ = lean_string_from_utf8_unchecked(v_val_6110_); +v___x_6115_ = lean_string_append(v___x_6113_, v___x_6114_); +lean_dec_ref(v___x_6114_); +v___x_6116_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__7)); +v___x_6117_ = lean_string_append(v___x_6115_, v___x_6116_); +v___y_6092_ = v___x_6117_; +goto v___jp_6091_; +} +} +v___jp_6074_: +{ +lean_object* v___x_6078_; lean_object* v___x_6079_; lean_object* v___x_6080_; +v___x_6078_ = lean_string_append(v___y_6075_, v___y_6076_); +lean_dec_ref(v___y_6076_); +v___x_6079_ = lean_string_append(v___x_6078_, v___y_6077_); +lean_dec_ref(v___y_6077_); +v___x_6080_ = lean_string_append(v___x_6073_, v___x_6079_); +lean_dec_ref(v___x_6079_); +v___y_6058_ = v___x_6080_; +goto v___jp_6057_; +} +v___jp_6081_: +{ +switch(lean_obj_tag(v_port_6072_)) +{ +case 0: +{ +lean_object* v___x_6084_; +v___x_6084_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6075_ = v___y_6082_; +v___y_6076_ = v___y_6083_; +v___y_6077_ = v___x_6084_; +goto v___jp_6074_; +} +case 1: +{ +lean_object* v___x_6085_; +v___x_6085_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___y_6075_ = v___y_6082_; +v___y_6076_ = v___y_6083_; +v___y_6077_ = v___x_6085_; +goto v___jp_6074_; +} +default: +{ +uint16_t v_port_6086_; lean_object* v___x_6087_; lean_object* v___x_6088_; lean_object* v___x_6089_; lean_object* v___x_6090_; +v_port_6086_ = lean_ctor_get_uint16(v_port_6072_, 0); +lean_dec_ref(v_port_6072_); +v___x_6087_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___x_6088_ = lean_uint16_to_nat(v_port_6086_); +v___x_6089_ = l_Nat_reprFast(v___x_6088_); +v___x_6090_ = lean_string_append(v___x_6087_, v___x_6089_); +lean_dec_ref(v___x_6089_); +v___y_6075_ = v___y_6082_; +v___y_6076_ = v___y_6083_; +v___y_6077_ = v___x_6090_; +goto v___jp_6074_; +} +} +} +v___jp_6091_: +{ +switch(lean_obj_tag(v_host_6071_)) +{ +case 0: +{ +lean_object* v_name_6093_; +v_name_6093_ = lean_ctor_get(v_host_6071_, 0); +lean_inc_ref(v_name_6093_); +lean_dec_ref(v_host_6071_); +v___y_6082_ = v___y_6092_; +v___y_6083_ = v_name_6093_; +goto v___jp_6081_; +} +case 1: +{ +lean_object* v_ipv4_6094_; lean_object* v___x_6095_; +v_ipv4_6094_ = lean_ctor_get(v_host_6071_, 0); +lean_inc_ref(v_ipv4_6094_); +lean_dec_ref(v_host_6071_); +v___x_6095_ = lean_uv_ntop_v4(v_ipv4_6094_); +lean_dec_ref(v_ipv4_6094_); +v___y_6082_ = v___y_6092_; +v___y_6083_ = v___x_6095_; +goto v___jp_6081_; +} +default: +{ +lean_object* v_ipv6_6096_; lean_object* v___x_6097_; lean_object* v___x_6098_; lean_object* v___x_6099_; lean_object* v___x_6100_; lean_object* v___x_6101_; +v_ipv6_6096_ = lean_ctor_get(v_host_6071_, 0); +lean_inc_ref(v_ipv6_6096_); +lean_dec_ref(v_host_6071_); +v___x_6097_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__0)); +v___x_6098_ = lean_uv_ntop_v6(v_ipv6_6096_); +lean_dec_ref(v_ipv6_6096_); +v___x_6099_ = lean_string_append(v___x_6097_, v___x_6098_); +lean_dec_ref(v___x_6098_); +v___x_6100_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__6)); +v___x_6101_ = lean_string_append(v___x_6099_, v___x_6100_); +v___y_6082_ = v___y_6092_; +v___y_6083_ = v___x_6101_; +goto v___jp_6081_; +} +} +} +} +v___jp_6022_: +{ +lean_object* v___x_6027_; lean_object* v___x_6028_; lean_object* v___x_6029_; lean_object* v___x_6030_; lean_object* v___x_6031_; lean_object* v___x_6032_; +v___x_6027_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___x_6028_ = lean_string_append(v_scheme_6017_, v___x_6027_); +v___x_6029_ = lean_string_append(v___x_6028_, v___y_6024_); +lean_dec_ref(v___y_6024_); +v___x_6030_ = lean_string_append(v___x_6029_, v___y_6025_); +lean_dec_ref(v___y_6025_); +v___x_6031_ = lean_string_append(v___x_6030_, v___y_6023_); +lean_dec_ref(v___y_6023_); +v___x_6032_ = lean_string_append(v___x_6031_, v___y_6026_); +lean_dec_ref(v___y_6026_); +v___y_5980_ = v___x_6032_; +goto v___jp_5979_; +} +v___jp_6033_: +{ +if (lean_obj_tag(v_fragment_6021_) == 0) +{ +lean_object* v___x_6037_; +v___x_6037_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6023_ = v___y_6036_; +v___y_6024_ = v___y_6034_; +v___y_6025_ = v___y_6035_; +v___y_6026_ = v___x_6037_; +goto v___jp_6022_; +} +else +{ +lean_object* v_val_6038_; lean_object* v___x_6039_; lean_object* v___x_6040_; lean_object* v___x_6041_; lean_object* v___x_6042_; +v_val_6038_ = lean_ctor_get(v_fragment_6021_, 0); +lean_inc(v_val_6038_); +lean_dec_ref(v_fragment_6021_); +v___x_6039_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__4)); +v___x_6040_ = l_Std_Http_URI_EncodedFragment_encode(v_val_6038_); +lean_dec(v_val_6038_); +v___x_6041_ = lean_string_from_utf8_unchecked(v___x_6040_); +v___x_6042_ = lean_string_append(v___x_6039_, v___x_6041_); +lean_dec_ref(v___x_6041_); +v___y_6023_ = v___y_6036_; +v___y_6024_ = v___y_6034_; +v___y_6025_ = v___y_6035_; +v___y_6026_ = v___x_6042_; +goto v___jp_6022_; +} +} +v___jp_6043_: +{ +lean_object* v___x_6046_; lean_object* v___x_6047_; uint8_t v___x_6048_; +v___x_6046_ = lean_array_get_size(v_query_6020_); +v___x_6047_ = lean_unsigned_to_nat(0u); +v___x_6048_ = lean_nat_dec_eq(v___x_6046_, v___x_6047_); +if (v___x_6048_ == 0) +{ +lean_object* v___x_6049_; lean_object* v___x_6050_; lean_object* v_encodedParams_6051_; lean_object* v___x_6052_; lean_object* v___x_6053_; lean_object* v___x_6054_; lean_object* v___x_6055_; +v___x_6049_ = lean_array_to_list(v_query_6020_); +v___x_6050_ = lean_box(0); +v_encodedParams_6051_ = l_List_mapTR_loop___at___00Std_Http_Internal_Test_uriHandler_spec__0(v___x_6049_, v___x_6050_); +v___x_6052_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__0)); +v___x_6053_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__1)); +v___x_6054_ = l_String_intercalate(v___x_6053_, v_encodedParams_6051_); +v___x_6055_ = lean_string_append(v___x_6052_, v___x_6054_); +lean_dec_ref(v___x_6054_); +v___y_6034_ = v___y_6044_; +v___y_6035_ = v___y_6045_; +v___y_6036_ = v___x_6055_; +goto v___jp_6033_; +} +else +{ +lean_object* v___x_6056_; +lean_dec_ref(v_query_6020_); +v___x_6056_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6034_ = v___y_6044_; +v___y_6035_ = v___y_6045_; +v___y_6036_ = v___x_6056_; +goto v___jp_6033_; +} +} +v___jp_6057_: +{ +lean_object* v_segments_6059_; uint8_t v_absolute_6060_; lean_object* v___x_6061_; size_t v_sz_6062_; size_t v___x_6063_; lean_object* v___x_6064_; lean_object* v___x_6065_; lean_object* v_result_6066_; +v_segments_6059_ = lean_ctor_get(v_path_6019_, 0); +lean_inc_ref(v_segments_6059_); +v_absolute_6060_ = lean_ctor_get_uint8(v_path_6019_, sizeof(void*)*1); +lean_dec_ref(v_path_6019_); +v___x_6061_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__2)); +v_sz_6062_ = lean_array_size(v_segments_6059_); +v___x_6063_ = ((size_t)0ULL); +v___x_6064_ = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Std_Http_Internal_Test_uriHandler_spec__1(v_sz_6062_, v___x_6063_, v_segments_6059_); +v___x_6065_ = lean_array_to_list(v___x_6064_); +v_result_6066_ = l_String_intercalate(v___x_6061_, v___x_6065_); +if (v_absolute_6060_ == 0) +{ +v___y_6044_ = v___y_6058_; +v___y_6045_ = v_result_6066_; +goto v___jp_6043_; +} +else +{ +lean_object* v___x_6067_; +v___x_6067_ = lean_string_append(v___x_6061_, v_result_6066_); +lean_dec_ref(v_result_6066_); +v___y_6044_ = v___y_6058_; +v___y_6045_ = v___x_6067_; +goto v___jp_6043_; +} +} +} +case 2: +{ +lean_object* v_authority_6118_; lean_object* v_userInfo_6119_; lean_object* v_host_6120_; lean_object* v_port_6121_; lean_object* v___y_6123_; lean_object* v___y_6124_; lean_object* v___y_6133_; +v_authority_6118_ = lean_ctor_get(v_uri_5976_, 0); +lean_inc_ref(v_authority_6118_); +lean_dec_ref(v_uri_5976_); +v_userInfo_6119_ = lean_ctor_get(v_authority_6118_, 0); +lean_inc(v_userInfo_6119_); +v_host_6120_ = lean_ctor_get(v_authority_6118_, 1); +lean_inc_ref(v_host_6120_); +v_port_6121_ = lean_ctor_get(v_authority_6118_, 2); +lean_inc(v_port_6121_); +lean_dec_ref(v_authority_6118_); +if (lean_obj_tag(v_userInfo_6119_) == 0) +{ +lean_object* v___x_6143_; +v___x_6143_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_6133_ = v___x_6143_; +goto v___jp_6132_; +} +else +{ +lean_object* v_val_6144_; lean_object* v_password_6145_; +v_val_6144_ = lean_ctor_get(v_userInfo_6119_, 0); +lean_inc(v_val_6144_); +lean_dec_ref(v_userInfo_6119_); +v_password_6145_ = lean_ctor_get(v_val_6144_, 1); +if (lean_obj_tag(v_password_6145_) == 0) +{ +lean_object* v_username_6146_; lean_object* v___x_6147_; lean_object* v___x_6148_; lean_object* v___x_6149_; +v_username_6146_ = lean_ctor_get(v_val_6144_, 0); +lean_inc_ref(v_username_6146_); +lean_dec(v_val_6144_); +v___x_6147_ = lean_string_from_utf8_unchecked(v_username_6146_); +v___x_6148_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__7)); +v___x_6149_ = lean_string_append(v___x_6147_, v___x_6148_); +v___y_6133_ = v___x_6149_; +goto v___jp_6132_; +} +else +{ +lean_object* v_username_6150_; lean_object* v_val_6151_; lean_object* v___x_6152_; lean_object* v___x_6153_; lean_object* v___x_6154_; lean_object* v___x_6155_; lean_object* v___x_6156_; lean_object* v___x_6157_; lean_object* v___x_6158_; +lean_inc_ref(v_password_6145_); +v_username_6150_ = lean_ctor_get(v_val_6144_, 0); +lean_inc_ref(v_username_6150_); +lean_dec(v_val_6144_); +v_val_6151_ = lean_ctor_get(v_password_6145_, 0); +lean_inc(v_val_6151_); +lean_dec_ref(v_password_6145_); +v___x_6152_ = lean_string_from_utf8_unchecked(v_username_6150_); +v___x_6153_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___x_6154_ = lean_string_append(v___x_6152_, v___x_6153_); +v___x_6155_ = lean_string_from_utf8_unchecked(v_val_6151_); +v___x_6156_ = lean_string_append(v___x_6154_, v___x_6155_); +lean_dec_ref(v___x_6155_); +v___x_6157_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__7)); +v___x_6158_ = lean_string_append(v___x_6156_, v___x_6157_); +v___y_6133_ = v___x_6158_; +goto v___jp_6132_; +} +} +v___jp_6122_: +{ +switch(lean_obj_tag(v_port_6121_)) +{ +case 0: +{ +lean_object* v___x_6125_; +v___x_6125_ = ((lean_object*)(l_panic___at___00Std_Http_Internal_Test_assertStatus_spec__0___closed__0)); +v___y_5986_ = v___y_6124_; +v___y_5987_ = v___y_6123_; +v___y_5988_ = v___x_6125_; +goto v___jp_5985_; +} +case 1: +{ +lean_object* v___x_6126_; +v___x_6126_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___y_5986_ = v___y_6124_; +v___y_5987_ = v___y_6123_; +v___y_5988_ = v___x_6126_; +goto v___jp_5985_; +} +default: +{ +uint16_t v_port_6127_; lean_object* v___x_6128_; lean_object* v___x_6129_; lean_object* v___x_6130_; lean_object* v___x_6131_; +v_port_6127_ = lean_ctor_get_uint16(v_port_6121_, 0); +lean_dec_ref(v_port_6121_); +v___x_6128_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__3)); +v___x_6129_ = lean_uint16_to_nat(v_port_6127_); +v___x_6130_ = l_Nat_reprFast(v___x_6129_); +v___x_6131_ = lean_string_append(v___x_6128_, v___x_6130_); +lean_dec_ref(v___x_6130_); +v___y_5986_ = v___y_6124_; +v___y_5987_ = v___y_6123_; +v___y_5988_ = v___x_6131_; +goto v___jp_5985_; +} +} +} +v___jp_6132_: +{ +switch(lean_obj_tag(v_host_6120_)) +{ +case 0: +{ +lean_object* v_name_6134_; +v_name_6134_ = lean_ctor_get(v_host_6120_, 0); +lean_inc_ref(v_name_6134_); +lean_dec_ref(v_host_6120_); +v___y_6123_ = v___y_6133_; +v___y_6124_ = v_name_6134_; +goto v___jp_6122_; +} +case 1: +{ +lean_object* v_ipv4_6135_; lean_object* v___x_6136_; +v_ipv4_6135_ = lean_ctor_get(v_host_6120_, 0); +lean_inc_ref(v_ipv4_6135_); +lean_dec_ref(v_host_6120_); +v___x_6136_ = lean_uv_ntop_v4(v_ipv4_6135_); +lean_dec_ref(v_ipv4_6135_); +v___y_6123_ = v___y_6133_; +v___y_6124_ = v___x_6136_; +goto v___jp_6122_; +} +default: +{ +lean_object* v_ipv6_6137_; lean_object* v___x_6138_; lean_object* v___x_6139_; lean_object* v___x_6140_; lean_object* v___x_6141_; lean_object* v___x_6142_; +v_ipv6_6137_ = lean_ctor_get(v_host_6120_, 0); +lean_inc_ref(v_ipv6_6137_); +lean_dec_ref(v_host_6120_); +v___x_6138_ = ((lean_object*)(l_Std_Http_Internal_Test_runGroup___closed__0)); +v___x_6139_ = lean_uv_ntop_v6(v_ipv6_6137_); +lean_dec_ref(v_ipv6_6137_); +v___x_6140_ = lean_string_append(v___x_6138_, v___x_6139_); +lean_dec_ref(v___x_6139_); +v___x_6141_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__6)); +v___x_6142_ = lean_string_append(v___x_6140_, v___x_6141_); +v___y_6123_ = v___y_6133_; +v___y_6124_ = v___x_6142_; +goto v___jp_6122_; +} +} +} +} +default: +{ +lean_object* v___x_6159_; +v___x_6159_ = ((lean_object*)(l_Std_Http_Internal_Test_uriHandler___redArg___closed__8)); +v___y_5980_ = v___x_6159_; +goto v___jp_5979_; +} +} +v___jp_5979_: +{ +lean_object* v___x_5981_; lean_object* v___x_5982_; uint8_t v___x_5983_; lean_object* v___x_5984_; +v___x_5981_ = l_Std_Http_Response_Builder_text(v___x_5978_, v___y_5980_); +lean_dec_ref(v___y_5980_); +v___x_5982_ = lean_unsigned_to_nat(0u); +v___x_5983_ = 0; +v___x_5984_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_5982_, v___x_5983_, v___x_5981_, v___f_5977_); +return v___x_5984_; +} +v___jp_5985_: +{ +lean_object* v___x_5989_; lean_object* v___x_5990_; +v___x_5989_ = lean_string_append(v___y_5987_, v___y_5986_); +lean_dec_ref(v___y_5986_); +v___x_5990_ = lean_string_append(v___x_5989_, v___y_5988_); +lean_dec_ref(v___y_5988_); +v___y_5980_ = v___x_5990_; +goto v___jp_5979_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___redArg___boxed(lean_object* v_req_6160_, lean_object* v_a_6161_){ +_start: +{ +lean_object* v_res_6162_; +v_res_6162_ = l_Std_Http_Internal_Test_uriHandler___redArg(v_req_6160_); +return v_res_6162_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler(lean_object* v_req_6163_, lean_object* v_a_6164_){ +_start: +{ +lean_object* v___x_6166_; +v___x_6166_ = l_Std_Http_Internal_Test_uriHandler___redArg(v_req_6163_); +return v___x_6166_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_uriHandler___boxed(lean_object* v_req_6167_, lean_object* v_a_6168_, lean_object* v_a_6169_){ +_start: +{ +lean_object* v_res_6170_; +v_res_6170_ = l_Std_Http_Internal_Test_uriHandler(v_req_6167_, v_a_6168_); +lean_dec_ref(v_a_6168_); +return v_res_6170_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGet(lean_object* v_path_6174_, lean_object* v_extra_6175_){ +_start: +{ +lean_object* v___x_6176_; lean_object* v___x_6177_; lean_object* v___x_6178_; lean_object* v___x_6179_; lean_object* v___x_6180_; lean_object* v___x_6181_; lean_object* v___x_6182_; +v___x_6176_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__0)); +v___x_6177_ = lean_string_append(v___x_6176_, v_path_6174_); +v___x_6178_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__1)); +v___x_6179_ = lean_string_append(v___x_6177_, v___x_6178_); +v___x_6180_ = lean_string_append(v___x_6179_, v_extra_6175_); +v___x_6181_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__2)); +v___x_6182_ = lean_string_append(v___x_6180_, v___x_6181_); +return v___x_6182_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGet___boxed(lean_object* v_path_6183_, lean_object* v_extra_6184_){ +_start: +{ +lean_object* v_res_6185_; +v_res_6185_ = l_Std_Http_Internal_Test_mkGet(v_path_6183_, v_extra_6184_); +lean_dec_ref(v_extra_6184_); +lean_dec_ref(v_path_6183_); +return v_res_6185_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGetClose(lean_object* v_path_6187_){ +_start: +{ +lean_object* v___x_6188_; lean_object* v___x_6189_; +v___x_6188_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGetClose___closed__0)); +v___x_6189_ = l_Std_Http_Internal_Test_mkGet(v_path_6187_, v___x_6188_); +return v___x_6189_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkGetClose___boxed(lean_object* v_path_6190_){ +_start: +{ +lean_object* v_res_6191_; +v_res_6191_ = l_Std_Http_Internal_Test_mkGetClose(v_path_6190_); +lean_dec_ref(v_path_6190_); +return v_res_6191_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkPost(lean_object* v_path_6194_, lean_object* v_body_6195_, lean_object* v_extra_6196_){ +_start: +{ +lean_object* v___x_6197_; lean_object* v___x_6198_; lean_object* v___x_6199_; lean_object* v___x_6200_; lean_object* v___x_6201_; lean_object* v___x_6202_; lean_object* v___x_6203_; lean_object* v___x_6204_; lean_object* v___x_6205_; lean_object* v___x_6206_; lean_object* v___x_6207_; lean_object* v___x_6208_; lean_object* v___x_6209_; +v___x_6197_ = ((lean_object*)(l_Std_Http_Internal_Test_mkPost___closed__0)); +v___x_6198_ = lean_string_append(v___x_6197_, v_path_6194_); +v___x_6199_ = ((lean_object*)(l_Std_Http_Internal_Test_mkPost___closed__1)); +v___x_6200_ = lean_string_append(v___x_6198_, v___x_6199_); +v___x_6201_ = lean_string_to_utf8(v_body_6195_); +v___x_6202_ = lean_byte_array_size(v___x_6201_); +lean_dec_ref(v___x_6201_); +v___x_6203_ = l_Nat_reprFast(v___x_6202_); +v___x_6204_ = lean_string_append(v___x_6200_, v___x_6203_); +lean_dec_ref(v___x_6203_); +v___x_6205_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__2)); +v___x_6206_ = lean_string_append(v___x_6204_, v___x_6205_); +v___x_6207_ = lean_string_append(v___x_6206_, v_extra_6196_); +v___x_6208_ = lean_string_append(v___x_6207_, v___x_6205_); +v___x_6209_ = lean_string_append(v___x_6208_, v_body_6195_); +return v___x_6209_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkPost___boxed(lean_object* v_path_6210_, lean_object* v_body_6211_, lean_object* v_extra_6212_){ +_start: +{ +lean_object* v_res_6213_; +v_res_6213_ = l_Std_Http_Internal_Test_mkPost(v_path_6210_, v_body_6211_, v_extra_6212_); +lean_dec_ref(v_extra_6212_); +lean_dec_ref(v_body_6211_); +lean_dec_ref(v_path_6210_); +return v_res_6213_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkChunked(lean_object* v_path_6215_, lean_object* v_chunkedBody_6216_, lean_object* v_extra_6217_){ +_start: +{ +lean_object* v___x_6218_; lean_object* v___x_6219_; lean_object* v___x_6220_; lean_object* v___x_6221_; lean_object* v___x_6222_; lean_object* v___x_6223_; lean_object* v___x_6224_; lean_object* v___x_6225_; +v___x_6218_ = ((lean_object*)(l_Std_Http_Internal_Test_mkPost___closed__0)); +v___x_6219_ = lean_string_append(v___x_6218_, v_path_6215_); +v___x_6220_ = ((lean_object*)(l_Std_Http_Internal_Test_mkChunked___closed__0)); +v___x_6221_ = lean_string_append(v___x_6219_, v___x_6220_); +v___x_6222_ = lean_string_append(v___x_6221_, v_extra_6217_); +v___x_6223_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__2)); +v___x_6224_ = lean_string_append(v___x_6222_, v___x_6223_); +v___x_6225_ = lean_string_append(v___x_6224_, v_chunkedBody_6216_); +return v___x_6225_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_mkChunked___boxed(lean_object* v_path_6226_, lean_object* v_chunkedBody_6227_, lean_object* v_extra_6228_){ +_start: +{ +lean_object* v_res_6229_; +v_res_6229_ = l_Std_Http_Internal_Test_mkChunked(v_path_6226_, v_chunkedBody_6227_, v_extra_6228_); +lean_dec_ref(v_extra_6228_); +lean_dec_ref(v_chunkedBody_6227_); +lean_dec_ref(v_path_6226_); +return v_res_6229_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_chunk(lean_object* v_data_6230_){ +_start: +{ +lean_object* v___x_6231_; lean_object* v___x_6232_; lean_object* v___x_6233_; lean_object* v___x_6234_; lean_object* v_hexSize_6235_; lean_object* v___x_6236_; lean_object* v___x_6237_; lean_object* v___x_6238_; lean_object* v___x_6239_; +v___x_6231_ = lean_unsigned_to_nat(16u); +v___x_6232_ = lean_string_to_utf8(v_data_6230_); +v___x_6233_ = lean_byte_array_size(v___x_6232_); +lean_dec_ref(v___x_6232_); +v___x_6234_ = l_Nat_toDigits(v___x_6231_, v___x_6233_); +v_hexSize_6235_ = lean_string_mk(v___x_6234_); +v___x_6236_ = ((lean_object*)(l_Std_Http_Internal_Test_mkGet___closed__2)); +v___x_6237_ = lean_string_append(v_hexSize_6235_, v___x_6236_); +v___x_6238_ = lean_string_append(v___x_6237_, v_data_6230_); +v___x_6239_ = lean_string_append(v___x_6238_, v___x_6236_); +return v___x_6239_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Test_chunk___boxed(lean_object* v_data_6240_){ +_start: +{ +lean_object* v_res_6241_; +v_res_6241_ = l_Std_Http_Internal_Test_chunk(v_data_6240_); +lean_dec_ref(v_data_6240_); +return v_res_6241_; +} +} +lean_object* runtime_initialize_Std_Internal_Http_Server(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Async(uint8_t builtin); +lean_object* runtime_initialize_Std_Internal_Async_Timer(uint8_t builtin); +lean_object* runtime_initialize_Init_Data_String_Legacy(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Test_Helpers(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Internal_Http_Server(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Async_Timer(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Init_Data_String_Legacy(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Std_Http_Internal_Test_instHandlerTestHandler = _init_l_Std_Http_Internal_Test_instHandlerTestHandler(); +lean_mark_persistent(l_Std_Http_Internal_Test_instHandlerTestHandler); +l_Std_Http_Internal_Test_defaultConfig = _init_l_Std_Http_Internal_Test_defaultConfig(); +lean_mark_persistent(l_Std_Http_Internal_Test_defaultConfig); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Test_Helpers(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Internal_Http_Server(uint8_t builtin); +lean_object* initialize_Std_Internal_Async(uint8_t builtin); +lean_object* initialize_Std_Internal_Async_Timer(uint8_t builtin); +lean_object* initialize_Init_Data_String_Legacy(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Test_Helpers(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Internal_Http_Server(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Async(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Internal_Async_Timer(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_String_Legacy(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Test_Helpers(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Test_Helpers(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Test_Helpers(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Internal/Http/Transport.c b/stage0/stdlib/Std/Internal/Http/Transport.c new file mode 100644 index 0000000000..6048fc07a7 --- /dev/null +++ b/stage0/stdlib/Std/Internal/Http/Transport.c @@ -0,0 +1,3339 @@ +// Lean compiler output +// Module: Std.Internal.Http.Transport +// Imports: public import Std.Internal.Http.Protocol.H1 +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_io_promise_resolve(lean_object*, lean_object*); +lean_object* lean_byte_array_size(lean_object*); +lean_object* lean_byte_array_copy_slice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_CloseableChannel_tryRecv___redArg(lean_object*); +lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_BaseIO_chainTask___redArg(lean_object*, lean_object*, lean_object*, uint8_t); +uint64_t lean_uint64_of_nat(lean_object*); +uint8_t lean_uint64_dec_le(uint64_t, uint64_t); +lean_object* l_IO_Promise_result_x21___redArg(lean_object*); +lean_object* lean_mk_io_user_error(lean_object*); +lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_CloseableChannel_send___redArg(lean_object*, lean_object*); +size_t lean_array_size(lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +lean_object* lean_array_uget_borrowed(lean_object*, size_t); +size_t lean_usize_add(size_t, size_t); +uint8_t l_Std_CloseableChannel_isClosed___redArg(lean_object*); +lean_object* l_Std_CloseableChannel_close___redArg(lean_object*); +lean_object* l_Std_CloseableChannel_recv___redArg(lean_object*); +lean_object* lean_io_promise_new(); +lean_object* l_Std_CloseableChannel_recvSelector___redArg(lean_object*); +lean_object* lean_io_promise_result_opt(lean_object*); +lean_object* lean_uv_tcp_recv(lean_object*, uint64_t); +lean_object* l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___boxed(lean_object*, lean_object*); +lean_object* lean_uv_tcp_send(lean_object*, lean_object*); +lean_object* l_Std_CloseableChannel_new___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_instTransportClient___lam__2___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 44, .m_capacity = 44, .m_length = 43, .m_data = "the promise linked to the Async was dropped"}; +static const lean_object* l_Std_Http_instTransportClient___lam__2___closed__0 = (const lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__0_value; +static const lean_closure_object l_Std_Http_instTransportClient___lam__2___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__0___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__0_value)} }; +static const lean_object* l_Std_Http_instTransportClient___lam__2___closed__1 = (const lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__1_value; +static const lean_closure_object l_Std_Http_instTransportClient___lam__2___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__1_value)} }; +static const lean_object* l_Std_Http_instTransportClient___lam__2___closed__2 = (const lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__2_value; +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__2(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__3(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__3___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__4(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__4___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_instTransportClient___lam__5___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__3___boxed, .m_arity = 2, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_instTransportClient___lam__2___closed__0_value)} }; +static const lean_object* l_Std_Http_instTransportClient___lam__5___closed__0 = (const lean_object*)&l_Std_Http_instTransportClient___lam__5___closed__0_value; +static const lean_closure_object l_Std_Http_instTransportClient___lam__5___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__4___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_instTransportClient___lam__5___closed__0_value)} }; +static const lean_object* l_Std_Http_instTransportClient___lam__5___closed__1 = (const lean_object*)&l_Std_Http_instTransportClient___lam__5___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__5___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__6(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__6___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_instTransportClient___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__2___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_instTransportClient___closed__0 = (const lean_object*)&l_Std_Http_instTransportClient___closed__0_value; +static const lean_closure_object l_Std_Http_instTransportClient___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__5___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_instTransportClient___closed__1 = (const lean_object*)&l_Std_Http_instTransportClient___closed__1_value; +static const lean_closure_object l_Std_Http_instTransportClient___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Internal_IO_Async_TCP_Socket_Client_recvSelector___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_instTransportClient___closed__2 = (const lean_object*)&l_Std_Http_instTransportClient___closed__2_value; +static const lean_closure_object l_Std_Http_instTransportClient___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_instTransportClient___lam__6___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_instTransportClient___closed__3 = (const lean_object*)&l_Std_Http_instTransportClient___closed__3_value; +static const lean_ctor_object l_Std_Http_instTransportClient___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*4 + 0, .m_other = 4, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_instTransportClient___closed__0_value),((lean_object*)&l_Std_Http_instTransportClient___closed__1_value),((lean_object*)&l_Std_Http_instTransportClient___closed__2_value),((lean_object*)&l_Std_Http_instTransportClient___closed__3_value)}}; +static const lean_object* l_Std_Http_instTransportClient___closed__4 = (const lean_object*)&l_Std_Http_instTransportClient___closed__4_value; +LEAN_EXPORT const lean_object* l_Std_Http_instTransportClient = (const lean_object*)&l_Std_Http_instTransportClient___closed__4_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_new(); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_new___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__4(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__5(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_Mock_recvJoined___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_recvJoined___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Mock_recvJoined___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_recvJoined___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_Mock_recvJoined___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_recvJoined___lam__4, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Mock_recvJoined___closed__1 = (const lean_object*)&l_Std_Http_Internal_Mock_recvJoined___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___boxed(lean_object*, lean_object*, lean_object*); +static const lean_string_object l_Std_Http_Internal_Mock_send___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 44, .m_capacity = 44, .m_length = 43, .m_data = "trying to send on an already closed channel"}; +static const lean_object* l_Std_Http_Internal_Mock_send___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_send___lam__0___closed__0_value; +static const lean_string_object l_Std_Http_Internal_Mock_send___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 42, .m_capacity = 42, .m_length = 41, .m_data = "trying to close an already closed channel"}; +static const lean_object* l_Std_Http_Internal_Mock_send___lam__0___closed__1 = (const lean_object*)&l_Std_Http_Internal_Mock_send___lam__0___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__1___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_Mock_send___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_send___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Mock_send___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_send___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_Mock_send___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_send___lam__1___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)&l_Std_Http_Internal_Mock_send___closed__0_value)} }; +static const lean_object* l_Std_Http_Internal_Mock_send___closed__1 = (const lean_object*)&l_Std_Http_Internal_Mock_send___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Internal_Mock_sendAll___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 1}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))}}; +static const lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_sendAll___lam__0___closed__0_value; +static const lean_ctor_object l_Std_Http_Internal_Mock_sendAll___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Mock_sendAll___lam__0___closed__0_value)}}; +static const lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0___closed__1 = (const lean_object*)&l_Std_Http_Internal_Mock_sendAll___lam__0___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*); +static const lean_closure_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*1, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0___boxed, .m_arity = 3, .m_num_fixed = 1, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1))} }; +static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___closed__0_value; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1(size_t, lean_object*, lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_Mock_sendAll___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_sendAll___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_Mock_sendAll___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_sendAll___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvSelector(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getRecvChan(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getRecvChan___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getSendChan(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getSendChan___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_send(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_send___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_recv_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_recv_x3f___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___boxed(lean_object*, lean_object*, lean_object*); +static const lean_ctor_object l_Std_Http_Internal_Mock_Client_close___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Mock_send___lam__0___closed__0_value)}}; +static const lean_object* l_Std_Http_Internal_Mock_Client_close___closed__0 = (const lean_object*)&l_Std_Http_Internal_Mock_Client_close___closed__0_value; +static const lean_ctor_object l_Std_Http_Internal_Mock_Client_close___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*1 + 0, .m_other = 1, .m_tag = 18}, .m_objs = {((lean_object*)&l_Std_Http_Internal_Mock_send___lam__0___closed__1_value)}}; +static const lean_object* l_Std_Http_Internal_Mock_Client_close___closed__1 = (const lean_object*)&l_Std_Http_Internal_Mock_Client_close___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_close(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_close___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getRecvChan(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getRecvChan___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getSendChan(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getSendChan___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_send(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_send___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_recv_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_recv_x3f___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_close(lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_close___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__0(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__2(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__2___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_instTransportClient___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportClient___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportClient___closed__0 = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_instTransportClient___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportClient___lam__1___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportClient___closed__1 = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__1_value; +static const lean_closure_object l_Std_Http_Internal_instTransportClient___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportClient___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportClient___closed__2 = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__2_value; +static const lean_closure_object l_Std_Http_Internal_instTransportClient___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_Client_close___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportClient___closed__3 = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__3_value; +static const lean_ctor_object l_Std_Http_Internal_instTransportClient___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*4 + 0, .m_other = 4, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Internal_instTransportClient___closed__0_value),((lean_object*)&l_Std_Http_Internal_instTransportClient___closed__1_value),((lean_object*)&l_Std_Http_Internal_instTransportClient___closed__2_value),((lean_object*)&l_Std_Http_Internal_instTransportClient___closed__3_value)}}; +static const lean_object* l_Std_Http_Internal_instTransportClient___closed__4 = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__4_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_instTransportClient = (const lean_object*)&l_Std_Http_Internal_instTransportClient___closed__4_value; +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__0(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__0___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__2(lean_object*, uint64_t); +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__2___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Http_Internal_instTransportServer___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportServer___lam__0___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportServer___closed__0 = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__0_value; +static const lean_closure_object l_Std_Http_Internal_instTransportServer___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportServer___lam__1___boxed, .m_arity = 3, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportServer___closed__1 = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__1_value; +static const lean_closure_object l_Std_Http_Internal_instTransportServer___closed__2_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_instTransportServer___lam__2___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportServer___closed__2 = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__2_value; +static const lean_closure_object l_Std_Http_Internal_instTransportServer___closed__3_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Http_Internal_Mock_Server_close___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Http_Internal_instTransportServer___closed__3 = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__3_value; +static const lean_ctor_object l_Std_Http_Internal_instTransportServer___closed__4_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*4 + 0, .m_other = 4, .m_tag = 0}, .m_objs = {((lean_object*)&l_Std_Http_Internal_instTransportServer___closed__0_value),((lean_object*)&l_Std_Http_Internal_instTransportServer___closed__1_value),((lean_object*)&l_Std_Http_Internal_instTransportServer___closed__2_value),((lean_object*)&l_Std_Http_Internal_instTransportServer___closed__3_value)}}; +static const lean_object* l_Std_Http_Internal_instTransportServer___closed__4 = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__4_value; +LEAN_EXPORT const lean_object* l_Std_Http_Internal_instTransportServer = (const lean_object*)&l_Std_Http_Internal_instTransportServer___closed__4_value; +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__0(lean_object* v___x_1_, lean_object* v_x_2_){ +_start: +{ +if (lean_obj_tag(v_x_2_) == 0) +{ +lean_object* v___x_3_; lean_object* v___x_4_; +v___x_3_ = lean_mk_io_user_error(v___x_1_); +v___x_4_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_4_, 0, v___x_3_); +return v___x_4_; +} +else +{ +lean_object* v_val_5_; +lean_dec_ref(v___x_1_); +v_val_5_ = lean_ctor_get(v_x_2_, 0); +lean_inc(v_val_5_); +return v_val_5_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__0___boxed(lean_object* v___x_6_, lean_object* v_x_7_){ +_start: +{ +lean_object* v_res_8_; +v_res_8_ = l_Std_Http_instTransportClient___lam__0(v___x_6_, v_x_7_); +lean_dec(v_x_7_); +return v_res_8_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__1(lean_object* v___f_9_, lean_object* v_x_10_){ +_start: +{ +if (lean_obj_tag(v_x_10_) == 0) +{ +lean_object* v_a_12_; lean_object* v___x_14_; uint8_t v_isShared_15_; uint8_t v_isSharedCheck_20_; +lean_dec_ref(v___f_9_); +v_a_12_ = lean_ctor_get(v_x_10_, 0); +v_isSharedCheck_20_ = !lean_is_exclusive(v_x_10_); +if (v_isSharedCheck_20_ == 0) +{ +v___x_14_ = v_x_10_; +v_isShared_15_ = v_isSharedCheck_20_; +goto v_resetjp_13_; +} +else +{ +lean_inc(v_a_12_); +lean_dec(v_x_10_); +v___x_14_ = lean_box(0); +v_isShared_15_ = v_isSharedCheck_20_; +goto v_resetjp_13_; +} +v_resetjp_13_: +{ +lean_object* v___x_17_; +if (v_isShared_15_ == 0) +{ +v___x_17_ = v___x_14_; +goto v_reusejp_16_; +} +else +{ +lean_object* v_reuseFailAlloc_19_; +v_reuseFailAlloc_19_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_19_, 0, v_a_12_); +v___x_17_ = v_reuseFailAlloc_19_; +goto v_reusejp_16_; +} +v_reusejp_16_: +{ +lean_object* v___x_18_; +v___x_18_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_18_, 0, v___x_17_); +return v___x_18_; +} +} +} +else +{ +lean_object* v_a_21_; +v_a_21_ = lean_ctor_get(v_x_10_, 0); +lean_inc(v_a_21_); +lean_dec_ref(v_x_10_); +if (lean_obj_tag(v_a_21_) == 0) +{ +lean_object* v_a_22_; lean_object* v___x_24_; uint8_t v_isShared_25_; uint8_t v_isSharedCheck_30_; +lean_dec_ref(v___f_9_); +v_a_22_ = lean_ctor_get(v_a_21_, 0); +v_isSharedCheck_30_ = !lean_is_exclusive(v_a_21_); +if (v_isSharedCheck_30_ == 0) +{ +v___x_24_ = v_a_21_; +v_isShared_25_ = v_isSharedCheck_30_; +goto v_resetjp_23_; +} +else +{ +lean_inc(v_a_22_); +lean_dec(v_a_21_); +v___x_24_ = lean_box(0); +v_isShared_25_ = v_isSharedCheck_30_; +goto v_resetjp_23_; +} +v_resetjp_23_: +{ +lean_object* v___x_27_; +if (v_isShared_25_ == 0) +{ +v___x_27_ = v___x_24_; +goto v_reusejp_26_; +} +else +{ +lean_object* v_reuseFailAlloc_29_; +v_reuseFailAlloc_29_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_29_, 0, v_a_22_); +v___x_27_ = v_reuseFailAlloc_29_; +goto v_reusejp_26_; +} +v_reusejp_26_: +{ +lean_object* v___x_28_; +v___x_28_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_28_, 0, v___x_27_); +return v___x_28_; +} +} +} +else +{ +lean_object* v_a_31_; lean_object* v___x_32_; lean_object* v___x_33_; uint8_t v___x_34_; lean_object* v___x_35_; lean_object* v___x_36_; +v_a_31_ = lean_ctor_get(v_a_21_, 0); +lean_inc(v_a_31_); +lean_dec_ref(v_a_21_); +v___x_32_ = lean_io_promise_result_opt(v_a_31_); +lean_dec(v_a_31_); +v___x_33_ = lean_unsigned_to_nat(0u); +v___x_34_ = 0; +v___x_35_ = lean_task_map(v___f_9_, v___x_32_, v___x_33_, v___x_34_); +v___x_36_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_36_, 0, v___x_35_); +return v___x_36_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__1___boxed(lean_object* v___f_37_, lean_object* v_x_38_, lean_object* v___y_39_){ +_start: +{ +lean_object* v_res_40_; +v_res_40_ = l_Std_Http_instTransportClient___lam__1(v___f_37_, v_x_38_); +return v_res_40_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__2(lean_object* v_client_46_, uint64_t v_expect_47_){ +_start: +{ +lean_object* v___f_49_; lean_object* v_val_51_; lean_object* v___x_57_; +v___f_49_ = ((lean_object*)(l_Std_Http_instTransportClient___lam__2___closed__2)); +v___x_57_ = lean_uv_tcp_recv(v_client_46_, v_expect_47_); +if (lean_obj_tag(v___x_57_) == 0) +{ +lean_object* v_a_58_; lean_object* v___x_60_; uint8_t v_isShared_61_; uint8_t v_isSharedCheck_65_; +v_a_58_ = lean_ctor_get(v___x_57_, 0); +v_isSharedCheck_65_ = !lean_is_exclusive(v___x_57_); +if (v_isSharedCheck_65_ == 0) +{ +v___x_60_ = v___x_57_; +v_isShared_61_ = v_isSharedCheck_65_; +goto v_resetjp_59_; +} +else +{ +lean_inc(v_a_58_); +lean_dec(v___x_57_); +v___x_60_ = lean_box(0); +v_isShared_61_ = v_isSharedCheck_65_; +goto v_resetjp_59_; +} +v_resetjp_59_: +{ +lean_object* v___x_63_; +if (v_isShared_61_ == 0) +{ +lean_ctor_set_tag(v___x_60_, 1); +v___x_63_ = v___x_60_; +goto v_reusejp_62_; +} +else +{ +lean_object* v_reuseFailAlloc_64_; +v_reuseFailAlloc_64_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_64_, 0, v_a_58_); +v___x_63_ = v_reuseFailAlloc_64_; +goto v_reusejp_62_; +} +v_reusejp_62_: +{ +v_val_51_ = v___x_63_; +goto v___jp_50_; +} +} +} +else +{ +lean_object* v_a_66_; lean_object* v___x_68_; uint8_t v_isShared_69_; uint8_t v_isSharedCheck_73_; +v_a_66_ = lean_ctor_get(v___x_57_, 0); +v_isSharedCheck_73_ = !lean_is_exclusive(v___x_57_); +if (v_isSharedCheck_73_ == 0) +{ +v___x_68_ = v___x_57_; +v_isShared_69_ = v_isSharedCheck_73_; +goto v_resetjp_67_; +} +else +{ +lean_inc(v_a_66_); +lean_dec(v___x_57_); +v___x_68_ = lean_box(0); +v_isShared_69_ = v_isSharedCheck_73_; +goto v_resetjp_67_; +} +v_resetjp_67_: +{ +lean_object* v___x_71_; +if (v_isShared_69_ == 0) +{ +lean_ctor_set_tag(v___x_68_, 0); +v___x_71_ = v___x_68_; +goto v_reusejp_70_; +} +else +{ +lean_object* v_reuseFailAlloc_72_; +v_reuseFailAlloc_72_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_72_, 0, v_a_66_); +v___x_71_ = v_reuseFailAlloc_72_; +goto v_reusejp_70_; +} +v_reusejp_70_: +{ +v_val_51_ = v___x_71_; +goto v___jp_50_; +} +} +} +v___jp_50_: +{ +lean_object* v___x_52_; lean_object* v___x_53_; lean_object* v___x_54_; uint8_t v___x_55_; lean_object* v___x_56_; +v___x_52_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_52_, 0, v_val_51_); +v___x_53_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_53_, 0, v___x_52_); +v___x_54_ = lean_unsigned_to_nat(0u); +v___x_55_ = 0; +v___x_56_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_54_, v___x_55_, v___x_53_, v___f_49_); +return v___x_56_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__2___boxed(lean_object* v_client_74_, lean_object* v_expect_75_, lean_object* v___y_76_){ +_start: +{ +uint64_t v_expect_boxed_77_; lean_object* v_res_78_; +v_expect_boxed_77_ = lean_unbox_uint64(v_expect_75_); +lean_dec_ref(v_expect_75_); +v_res_78_ = l_Std_Http_instTransportClient___lam__2(v_client_74_, v_expect_boxed_77_); +lean_dec(v_client_74_); +return v_res_78_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__3(lean_object* v___x_79_, lean_object* v_x_80_){ +_start: +{ +if (lean_obj_tag(v_x_80_) == 0) +{ +lean_object* v___x_81_; lean_object* v___x_82_; +v___x_81_ = lean_mk_io_user_error(v___x_79_); +v___x_82_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_82_, 0, v___x_81_); +return v___x_82_; +} +else +{ +lean_object* v_val_83_; +lean_dec_ref(v___x_79_); +v_val_83_ = lean_ctor_get(v_x_80_, 0); +lean_inc(v_val_83_); +return v_val_83_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__3___boxed(lean_object* v___x_84_, lean_object* v_x_85_){ +_start: +{ +lean_object* v_res_86_; +v_res_86_ = l_Std_Http_instTransportClient___lam__3(v___x_84_, v_x_85_); +lean_dec(v_x_85_); +return v_res_86_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__4(lean_object* v___f_87_, lean_object* v_x_88_){ +_start: +{ +if (lean_obj_tag(v_x_88_) == 0) +{ +lean_object* v_a_90_; lean_object* v___x_92_; uint8_t v_isShared_93_; uint8_t v_isSharedCheck_98_; +lean_dec_ref(v___f_87_); +v_a_90_ = lean_ctor_get(v_x_88_, 0); +v_isSharedCheck_98_ = !lean_is_exclusive(v_x_88_); +if (v_isSharedCheck_98_ == 0) +{ +v___x_92_ = v_x_88_; +v_isShared_93_ = v_isSharedCheck_98_; +goto v_resetjp_91_; +} +else +{ +lean_inc(v_a_90_); +lean_dec(v_x_88_); +v___x_92_ = lean_box(0); +v_isShared_93_ = v_isSharedCheck_98_; +goto v_resetjp_91_; +} +v_resetjp_91_: +{ +lean_object* v___x_95_; +if (v_isShared_93_ == 0) +{ +v___x_95_ = v___x_92_; +goto v_reusejp_94_; +} +else +{ +lean_object* v_reuseFailAlloc_97_; +v_reuseFailAlloc_97_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_97_, 0, v_a_90_); +v___x_95_ = v_reuseFailAlloc_97_; +goto v_reusejp_94_; +} +v_reusejp_94_: +{ +lean_object* v___x_96_; +v___x_96_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_96_, 0, v___x_95_); +return v___x_96_; +} +} +} +else +{ +lean_object* v_a_99_; +v_a_99_ = lean_ctor_get(v_x_88_, 0); +lean_inc(v_a_99_); +lean_dec_ref(v_x_88_); +if (lean_obj_tag(v_a_99_) == 0) +{ +lean_object* v_a_100_; lean_object* v___x_102_; uint8_t v_isShared_103_; uint8_t v_isSharedCheck_108_; +lean_dec_ref(v___f_87_); +v_a_100_ = lean_ctor_get(v_a_99_, 0); +v_isSharedCheck_108_ = !lean_is_exclusive(v_a_99_); +if (v_isSharedCheck_108_ == 0) +{ +v___x_102_ = v_a_99_; +v_isShared_103_ = v_isSharedCheck_108_; +goto v_resetjp_101_; +} +else +{ +lean_inc(v_a_100_); +lean_dec(v_a_99_); +v___x_102_ = lean_box(0); +v_isShared_103_ = v_isSharedCheck_108_; +goto v_resetjp_101_; +} +v_resetjp_101_: +{ +lean_object* v___x_105_; +if (v_isShared_103_ == 0) +{ +v___x_105_ = v___x_102_; +goto v_reusejp_104_; +} +else +{ +lean_object* v_reuseFailAlloc_107_; +v_reuseFailAlloc_107_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_107_, 0, v_a_100_); +v___x_105_ = v_reuseFailAlloc_107_; +goto v_reusejp_104_; +} +v_reusejp_104_: +{ +lean_object* v___x_106_; +v___x_106_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_106_, 0, v___x_105_); +return v___x_106_; +} +} +} +else +{ +lean_object* v_a_109_; lean_object* v___x_110_; lean_object* v___x_111_; uint8_t v___x_112_; lean_object* v___x_113_; lean_object* v___x_114_; +v_a_109_ = lean_ctor_get(v_a_99_, 0); +lean_inc(v_a_109_); +lean_dec_ref(v_a_99_); +v___x_110_ = lean_io_promise_result_opt(v_a_109_); +lean_dec(v_a_109_); +v___x_111_ = lean_unsigned_to_nat(0u); +v___x_112_ = 0; +v___x_113_ = lean_task_map(v___f_87_, v___x_110_, v___x_111_, v___x_112_); +v___x_114_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_114_, 0, v___x_113_); +return v___x_114_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__4___boxed(lean_object* v___f_115_, lean_object* v_x_116_, lean_object* v___y_117_){ +_start: +{ +lean_object* v_res_118_; +v_res_118_ = l_Std_Http_instTransportClient___lam__4(v___f_115_, v_x_116_); +return v_res_118_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__5(lean_object* v_client_123_, lean_object* v_data_124_){ +_start: +{ +lean_object* v___f_126_; lean_object* v_val_128_; lean_object* v___x_134_; +v___f_126_ = ((lean_object*)(l_Std_Http_instTransportClient___lam__5___closed__1)); +v___x_134_ = lean_uv_tcp_send(v_client_123_, v_data_124_); +if (lean_obj_tag(v___x_134_) == 0) +{ +lean_object* v_a_135_; lean_object* v___x_137_; uint8_t v_isShared_138_; uint8_t v_isSharedCheck_142_; +v_a_135_ = lean_ctor_get(v___x_134_, 0); +v_isSharedCheck_142_ = !lean_is_exclusive(v___x_134_); +if (v_isSharedCheck_142_ == 0) +{ +v___x_137_ = v___x_134_; +v_isShared_138_ = v_isSharedCheck_142_; +goto v_resetjp_136_; +} +else +{ +lean_inc(v_a_135_); +lean_dec(v___x_134_); +v___x_137_ = lean_box(0); +v_isShared_138_ = v_isSharedCheck_142_; +goto v_resetjp_136_; +} +v_resetjp_136_: +{ +lean_object* v___x_140_; +if (v_isShared_138_ == 0) +{ +lean_ctor_set_tag(v___x_137_, 1); +v___x_140_ = v___x_137_; +goto v_reusejp_139_; +} +else +{ +lean_object* v_reuseFailAlloc_141_; +v_reuseFailAlloc_141_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_141_, 0, v_a_135_); +v___x_140_ = v_reuseFailAlloc_141_; +goto v_reusejp_139_; +} +v_reusejp_139_: +{ +v_val_128_ = v___x_140_; +goto v___jp_127_; +} +} +} +else +{ +lean_object* v_a_143_; lean_object* v___x_145_; uint8_t v_isShared_146_; uint8_t v_isSharedCheck_150_; +v_a_143_ = lean_ctor_get(v___x_134_, 0); +v_isSharedCheck_150_ = !lean_is_exclusive(v___x_134_); +if (v_isSharedCheck_150_ == 0) +{ +v___x_145_ = v___x_134_; +v_isShared_146_ = v_isSharedCheck_150_; +goto v_resetjp_144_; +} +else +{ +lean_inc(v_a_143_); +lean_dec(v___x_134_); +v___x_145_ = lean_box(0); +v_isShared_146_ = v_isSharedCheck_150_; +goto v_resetjp_144_; +} +v_resetjp_144_: +{ +lean_object* v___x_148_; +if (v_isShared_146_ == 0) +{ +lean_ctor_set_tag(v___x_145_, 0); +v___x_148_ = v___x_145_; +goto v_reusejp_147_; +} +else +{ +lean_object* v_reuseFailAlloc_149_; +v_reuseFailAlloc_149_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_149_, 0, v_a_143_); +v___x_148_ = v_reuseFailAlloc_149_; +goto v_reusejp_147_; +} +v_reusejp_147_: +{ +v_val_128_ = v___x_148_; +goto v___jp_127_; +} +} +} +v___jp_127_: +{ +lean_object* v___x_129_; lean_object* v___x_130_; lean_object* v___x_131_; uint8_t v___x_132_; lean_object* v___x_133_; +v___x_129_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_129_, 0, v_val_128_); +v___x_130_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_130_, 0, v___x_129_); +v___x_131_ = lean_unsigned_to_nat(0u); +v___x_132_ = 0; +v___x_133_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_131_, v___x_132_, v___x_130_, v___f_126_); +return v___x_133_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__5___boxed(lean_object* v_client_151_, lean_object* v_data_152_, lean_object* v___y_153_){ +_start: +{ +lean_object* v_res_154_; +v_res_154_ = l_Std_Http_instTransportClient___lam__5(v_client_151_, v_data_152_); +lean_dec(v_client_151_); +return v_res_154_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__6(lean_object* v_x_155_){ +_start: +{ +lean_object* v___x_157_; lean_object* v___x_158_; +v___x_157_ = lean_box(0); +v___x_158_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_158_, 0, v___x_157_); +return v___x_158_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_instTransportClient___lam__6___boxed(lean_object* v_x_159_, lean_object* v___y_160_){ +_start: +{ +lean_object* v_res_161_; +v_res_161_ = l_Std_Http_instTransportClient___lam__6(v_x_159_); +lean_dec(v_x_159_); +return v_res_161_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_new(){ +_start: +{ +lean_object* v___x_173_; lean_object* v___x_174_; lean_object* v___x_175_; lean_object* v___x_176_; lean_object* v___x_177_; +v___x_173_ = lean_box(0); +v___x_174_ = l_Std_CloseableChannel_new___redArg(v___x_173_); +v___x_175_ = l_Std_CloseableChannel_new___redArg(v___x_173_); +v___x_176_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_176_, 0, v___x_174_); +lean_ctor_set(v___x_176_, 1, v___x_175_); +lean_inc_ref(v___x_176_); +v___x_177_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_177_, 0, v___x_176_); +lean_ctor_set(v___x_177_, 1, v___x_176_); +return v___x_177_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_new___boxed(lean_object* v_a_178_){ +_start: +{ +lean_object* v_res_179_; +v_res_179_ = l_Std_Http_Internal_Mock_new(); +return v_res_179_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__0(lean_object* v_x_180_){ +_start: +{ +if (lean_obj_tag(v_x_180_) == 0) +{ +lean_object* v_a_182_; lean_object* v___x_184_; uint8_t v_isShared_185_; uint8_t v_isSharedCheck_190_; +v_a_182_ = lean_ctor_get(v_x_180_, 0); +v_isSharedCheck_190_ = !lean_is_exclusive(v_x_180_); +if (v_isSharedCheck_190_ == 0) +{ +v___x_184_ = v_x_180_; +v_isShared_185_ = v_isSharedCheck_190_; +goto v_resetjp_183_; +} +else +{ +lean_inc(v_a_182_); +lean_dec(v_x_180_); +v___x_184_ = lean_box(0); +v_isShared_185_ = v_isSharedCheck_190_; +goto v_resetjp_183_; +} +v_resetjp_183_: +{ +lean_object* v___x_187_; +if (v_isShared_185_ == 0) +{ +v___x_187_ = v___x_184_; +goto v_reusejp_186_; +} +else +{ +lean_object* v_reuseFailAlloc_189_; +v_reuseFailAlloc_189_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_189_, 0, v_a_182_); +v___x_187_ = v_reuseFailAlloc_189_; +goto v_reusejp_186_; +} +v_reusejp_186_: +{ +lean_object* v___x_188_; +v___x_188_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_188_, 0, v___x_187_); +return v___x_188_; +} +} +} +else +{ +lean_object* v_a_191_; lean_object* v___x_193_; uint8_t v_isShared_194_; uint8_t v_isSharedCheck_200_; +v_a_191_ = lean_ctor_get(v_x_180_, 0); +v_isSharedCheck_200_ = !lean_is_exclusive(v_x_180_); +if (v_isSharedCheck_200_ == 0) +{ +v___x_193_ = v_x_180_; +v_isShared_194_ = v_isSharedCheck_200_; +goto v_resetjp_192_; +} +else +{ +lean_inc(v_a_191_); +lean_dec(v_x_180_); +v___x_193_ = lean_box(0); +v_isShared_194_ = v_isSharedCheck_200_; +goto v_resetjp_192_; +} +v_resetjp_192_: +{ +lean_object* v___x_195_; lean_object* v___x_197_; +v___x_195_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_195_, 0, v_a_191_); +if (v_isShared_194_ == 0) +{ +lean_ctor_set(v___x_193_, 0, v___x_195_); +v___x_197_ = v___x_193_; +goto v_reusejp_196_; +} +else +{ +lean_object* v_reuseFailAlloc_199_; +v_reuseFailAlloc_199_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_199_, 0, v___x_195_); +v___x_197_ = v_reuseFailAlloc_199_; +goto v_reusejp_196_; +} +v_reusejp_196_: +{ +lean_object* v___x_198_; +v___x_198_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_198_, 0, v___x_197_); +return v___x_198_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__0___boxed(lean_object* v_x_201_, lean_object* v___y_202_){ +_start: +{ +lean_object* v_res_203_; +v_res_203_ = l_Std_Http_Internal_Mock_recvJoined___lam__0(v_x_201_); +return v_res_203_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__1(lean_object* v_a_204_, lean_object* v_x_205_){ +_start: +{ +if (lean_obj_tag(v_x_205_) == 0) +{ +lean_object* v_a_207_; lean_object* v___x_209_; uint8_t v_isShared_210_; uint8_t v_isSharedCheck_215_; +v_a_207_ = lean_ctor_get(v_x_205_, 0); +v_isSharedCheck_215_ = !lean_is_exclusive(v_x_205_); +if (v_isSharedCheck_215_ == 0) +{ +v___x_209_ = v_x_205_; +v_isShared_210_ = v_isSharedCheck_215_; +goto v_resetjp_208_; +} +else +{ +lean_inc(v_a_207_); +lean_dec(v_x_205_); +v___x_209_ = lean_box(0); +v_isShared_210_ = v_isSharedCheck_215_; +goto v_resetjp_208_; +} +v_resetjp_208_: +{ +lean_object* v___x_212_; +if (v_isShared_210_ == 0) +{ +v___x_212_ = v___x_209_; +goto v_reusejp_211_; +} +else +{ +lean_object* v_reuseFailAlloc_214_; +v_reuseFailAlloc_214_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_214_, 0, v_a_207_); +v___x_212_ = v_reuseFailAlloc_214_; +goto v_reusejp_211_; +} +v_reusejp_211_: +{ +lean_object* v___x_213_; +v___x_213_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_213_, 0, v___x_212_); +return v___x_213_; +} +} +} +else +{ +lean_object* v___x_216_; lean_object* v___x_217_; +lean_dec_ref(v_x_205_); +v___x_216_ = l_IO_Promise_result_x21___redArg(v_a_204_); +v___x_217_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_217_, 0, v___x_216_); +return v___x_217_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__1___boxed(lean_object* v_a_218_, lean_object* v_x_219_, lean_object* v___y_220_){ +_start: +{ +lean_object* v_res_221_; +v_res_221_ = l_Std_Http_Internal_Mock_recvJoined___lam__1(v_a_218_, v_x_219_); +lean_dec(v_a_218_); +return v_res_221_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1(lean_object* v_b_222_, lean_object* v_x_223_){ +_start: +{ +if (lean_obj_tag(v_x_223_) == 0) +{ +lean_object* v_a_225_; lean_object* v___x_227_; uint8_t v_isShared_228_; uint8_t v_isSharedCheck_233_; +lean_dec_ref(v_b_222_); +v_a_225_ = lean_ctor_get(v_x_223_, 0); +v_isSharedCheck_233_ = !lean_is_exclusive(v_x_223_); +if (v_isSharedCheck_233_ == 0) +{ +v___x_227_ = v_x_223_; +v_isShared_228_ = v_isSharedCheck_233_; +goto v_resetjp_226_; +} +else +{ +lean_inc(v_a_225_); +lean_dec(v_x_223_); +v___x_227_ = lean_box(0); +v_isShared_228_ = v_isSharedCheck_233_; +goto v_resetjp_226_; +} +v_resetjp_226_: +{ +lean_object* v___x_230_; +if (v_isShared_228_ == 0) +{ +v___x_230_ = v___x_227_; +goto v_reusejp_229_; +} +else +{ +lean_object* v_reuseFailAlloc_232_; +v_reuseFailAlloc_232_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_232_, 0, v_a_225_); +v___x_230_ = v_reuseFailAlloc_232_; +goto v_reusejp_229_; +} +v_reusejp_229_: +{ +lean_object* v___x_231_; +v___x_231_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_231_, 0, v___x_230_); +return v___x_231_; +} +} +} +else +{ +lean_object* v_a_234_; lean_object* v___x_236_; uint8_t v_isShared_237_; uint8_t v_isSharedCheck_260_; +v_a_234_ = lean_ctor_get(v_x_223_, 0); +v_isSharedCheck_260_ = !lean_is_exclusive(v_x_223_); +if (v_isSharedCheck_260_ == 0) +{ +v___x_236_ = v_x_223_; +v_isShared_237_ = v_isSharedCheck_260_; +goto v_resetjp_235_; +} +else +{ +lean_inc(v_a_234_); +lean_dec(v_x_223_); +v___x_236_ = lean_box(0); +v_isShared_237_ = v_isSharedCheck_260_; +goto v_resetjp_235_; +} +v_resetjp_235_: +{ +if (lean_obj_tag(v_a_234_) == 0) +{ +lean_object* v___x_238_; lean_object* v___x_240_; +v___x_238_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_238_, 0, v_b_222_); +if (v_isShared_237_ == 0) +{ +lean_ctor_set(v___x_236_, 0, v___x_238_); +v___x_240_ = v___x_236_; +goto v_reusejp_239_; +} +else +{ +lean_object* v_reuseFailAlloc_242_; +v_reuseFailAlloc_242_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_242_, 0, v___x_238_); +v___x_240_ = v_reuseFailAlloc_242_; +goto v_reusejp_239_; +} +v_reusejp_239_: +{ +lean_object* v___x_241_; +v___x_241_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_241_, 0, v___x_240_); +return v___x_241_; +} +} +else +{ +lean_object* v_val_243_; lean_object* v___x_245_; uint8_t v_isShared_246_; uint8_t v_isSharedCheck_259_; +v_val_243_ = lean_ctor_get(v_a_234_, 0); +v_isSharedCheck_259_ = !lean_is_exclusive(v_a_234_); +if (v_isSharedCheck_259_ == 0) +{ +v___x_245_ = v_a_234_; +v_isShared_246_ = v_isSharedCheck_259_; +goto v_resetjp_244_; +} +else +{ +lean_inc(v_val_243_); +lean_dec(v_a_234_); +v___x_245_ = lean_box(0); +v_isShared_246_ = v_isSharedCheck_259_; +goto v_resetjp_244_; +} +v_resetjp_244_: +{ +lean_object* v___x_247_; lean_object* v___x_248_; lean_object* v___x_249_; uint8_t v___x_250_; lean_object* v___x_251_; lean_object* v___x_253_; +v___x_247_ = lean_unsigned_to_nat(0u); +v___x_248_ = lean_byte_array_size(v_b_222_); +v___x_249_ = lean_byte_array_size(v_val_243_); +v___x_250_ = 0; +v___x_251_ = lean_byte_array_copy_slice(v_val_243_, v___x_247_, v_b_222_, v___x_248_, v___x_249_, v___x_250_); +lean_dec(v_val_243_); +if (v_isShared_246_ == 0) +{ +lean_ctor_set(v___x_245_, 0, v___x_251_); +v___x_253_ = v___x_245_; +goto v_reusejp_252_; +} +else +{ +lean_object* v_reuseFailAlloc_258_; +v_reuseFailAlloc_258_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_258_, 0, v___x_251_); +v___x_253_ = v_reuseFailAlloc_258_; +goto v_reusejp_252_; +} +v_reusejp_252_: +{ +lean_object* v___x_255_; +if (v_isShared_237_ == 0) +{ +lean_ctor_set(v___x_236_, 0, v___x_253_); +v___x_255_ = v___x_236_; +goto v_reusejp_254_; +} +else +{ +lean_object* v_reuseFailAlloc_257_; +v_reuseFailAlloc_257_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_257_, 0, v___x_253_); +v___x_255_ = v_reuseFailAlloc_257_; +goto v_reusejp_254_; +} +v_reusejp_254_: +{ +lean_object* v___x_256_; +v___x_256_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_256_, 0, v___x_255_); +return v___x_256_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1___boxed(lean_object* v_b_261_, lean_object* v_x_262_, lean_object* v___y_263_){ +_start: +{ +lean_object* v_res_264_; +v_res_264_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1(v_b_261_, v_x_262_); +return v_res_264_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0___boxed(lean_object* v_promise_265_, lean_object* v_recvChan_266_, lean_object* v_expect_267_, lean_object* v_prio_268_, lean_object* v_x_269_, lean_object* v___y_270_){ +_start: +{ +lean_object* v_res_271_; +v_res_271_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0(v_promise_265_, v_recvChan_266_, v_expect_267_, v_prio_268_, v_x_269_); +return v_res_271_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0(lean_object* v_recvChan_272_, lean_object* v_expect_273_, lean_object* v_prio_274_, lean_object* v_promise_275_, lean_object* v_b_276_){ +_start: +{ +lean_object* v_a_279_; lean_object* v___f_282_; lean_object* v___f_283_; +lean_inc(v_prio_274_); +lean_inc(v_expect_273_); +lean_inc_ref(v_recvChan_272_); +lean_inc(v_promise_275_); +v___f_282_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0___boxed), 6, 4); +lean_closure_set(v___f_282_, 0, v_promise_275_); +lean_closure_set(v___f_282_, 1, v_recvChan_272_); +lean_closure_set(v___f_282_, 2, v_expect_273_); +lean_closure_set(v___f_282_, 3, v_prio_274_); +lean_inc_ref(v_b_276_); +v___f_283_ = lean_alloc_closure((void*)(l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__1___boxed), 3, 1); +lean_closure_set(v___f_283_, 0, v_b_276_); +if (lean_obj_tag(v_expect_273_) == 1) +{ +lean_object* v_val_307_; lean_object* v___x_308_; uint64_t v___x_309_; uint64_t v___x_310_; uint8_t v___x_311_; +v_val_307_ = lean_ctor_get(v_expect_273_, 0); +v___x_308_ = lean_byte_array_size(v_b_276_); +v___x_309_ = lean_uint64_of_nat(v___x_308_); +v___x_310_ = lean_unbox_uint64(v_val_307_); +v___x_311_ = lean_uint64_dec_le(v___x_310_, v___x_309_); +if (v___x_311_ == 0) +{ +lean_dec_ref(v_b_276_); +goto v___jp_284_; +} +else +{ +lean_dec_ref(v_expect_273_); +lean_dec_ref(v___f_283_); +lean_dec_ref(v___f_282_); +lean_dec(v_prio_274_); +lean_dec_ref(v_recvChan_272_); +v_a_279_ = v_b_276_; +goto v___jp_278_; +} +} +else +{ +lean_dec_ref(v_b_276_); +goto v___jp_284_; +} +v___jp_278_: +{ +lean_object* v___x_280_; lean_object* v___x_281_; +v___x_280_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_280_, 0, v_a_279_); +v___x_281_ = lean_io_promise_resolve(v___x_280_, v_promise_275_); +lean_dec(v_promise_275_); +return v___x_281_; +} +v___jp_284_: +{ +lean_object* v___x_285_; lean_object* v___x_286_; lean_object* v___x_287_; lean_object* v___x_288_; uint8_t v___x_289_; lean_object* v___x_290_; +lean_inc_ref(v_recvChan_272_); +v___x_285_ = l_Std_CloseableChannel_tryRecv___redArg(v_recvChan_272_); +v___x_286_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_286_, 0, v___x_285_); +v___x_287_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_287_, 0, v___x_286_); +v___x_288_ = lean_unsigned_to_nat(0u); +v___x_289_ = 0; +v___x_290_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_288_, v___x_289_, v___x_287_, v___f_283_); +if (lean_obj_tag(v___x_290_) == 0) +{ +lean_object* v_a_291_; +lean_dec_ref(v___f_282_); +v_a_291_ = lean_ctor_get(v___x_290_, 0); +lean_inc(v_a_291_); +lean_dec_ref(v___x_290_); +if (lean_obj_tag(v_a_291_) == 0) +{ +lean_object* v_a_292_; lean_object* v___x_294_; uint8_t v_isShared_295_; uint8_t v_isSharedCheck_300_; +lean_dec(v_prio_274_); +lean_dec(v_expect_273_); +lean_dec_ref(v_recvChan_272_); +v_a_292_ = lean_ctor_get(v_a_291_, 0); +v_isSharedCheck_300_ = !lean_is_exclusive(v_a_291_); +if (v_isSharedCheck_300_ == 0) +{ +v___x_294_ = v_a_291_; +v_isShared_295_ = v_isSharedCheck_300_; +goto v_resetjp_293_; +} +else +{ +lean_inc(v_a_292_); +lean_dec(v_a_291_); +v___x_294_ = lean_box(0); +v_isShared_295_ = v_isSharedCheck_300_; +goto v_resetjp_293_; +} +v_resetjp_293_: +{ +lean_object* v___x_297_; +if (v_isShared_295_ == 0) +{ +v___x_297_ = v___x_294_; +goto v_reusejp_296_; +} +else +{ +lean_object* v_reuseFailAlloc_299_; +v_reuseFailAlloc_299_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_299_, 0, v_a_292_); +v___x_297_ = v_reuseFailAlloc_299_; +goto v_reusejp_296_; +} +v_reusejp_296_: +{ +lean_object* v___x_298_; +v___x_298_ = lean_io_promise_resolve(v___x_297_, v_promise_275_); +lean_dec(v_promise_275_); +return v___x_298_; +} +} +} +else +{ +lean_object* v_a_301_; +v_a_301_ = lean_ctor_get(v_a_291_, 0); +lean_inc(v_a_301_); +lean_dec_ref(v_a_291_); +if (lean_obj_tag(v_a_301_) == 0) +{ +lean_object* v_a_302_; +lean_dec(v_prio_274_); +lean_dec(v_expect_273_); +lean_dec_ref(v_recvChan_272_); +v_a_302_ = lean_ctor_get(v_a_301_, 0); +lean_inc(v_a_302_); +lean_dec_ref(v_a_301_); +v_a_279_ = v_a_302_; +goto v___jp_278_; +} +else +{ +lean_object* v_a_303_; +v_a_303_ = lean_ctor_get(v_a_301_, 0); +lean_inc(v_a_303_); +lean_dec_ref(v_a_301_); +v_b_276_ = v_a_303_; +goto _start; +} +} +} +else +{ +lean_object* v_a_305_; lean_object* v___x_306_; +lean_dec(v_promise_275_); +lean_dec(v_expect_273_); +lean_dec_ref(v_recvChan_272_); +v_a_305_ = lean_ctor_get(v___x_290_, 0); +lean_inc_ref(v_a_305_); +lean_dec_ref(v___x_290_); +v___x_306_ = l_BaseIO_chainTask___redArg(v_a_305_, v___f_282_, v_prio_274_, v___x_289_); +return v___x_306_; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___lam__0(lean_object* v_promise_312_, lean_object* v_recvChan_313_, lean_object* v_expect_314_, lean_object* v_prio_315_, lean_object* v_x_316_){ +_start: +{ +if (lean_obj_tag(v_x_316_) == 0) +{ +lean_object* v_a_318_; lean_object* v___x_320_; uint8_t v_isShared_321_; uint8_t v_isSharedCheck_326_; +lean_dec(v_prio_315_); +lean_dec(v_expect_314_); +lean_dec_ref(v_recvChan_313_); +v_a_318_ = lean_ctor_get(v_x_316_, 0); +v_isSharedCheck_326_ = !lean_is_exclusive(v_x_316_); +if (v_isSharedCheck_326_ == 0) +{ +v___x_320_ = v_x_316_; +v_isShared_321_ = v_isSharedCheck_326_; +goto v_resetjp_319_; +} +else +{ +lean_inc(v_a_318_); +lean_dec(v_x_316_); +v___x_320_ = lean_box(0); +v_isShared_321_ = v_isSharedCheck_326_; +goto v_resetjp_319_; +} +v_resetjp_319_: +{ +lean_object* v___x_323_; +if (v_isShared_321_ == 0) +{ +v___x_323_ = v___x_320_; +goto v_reusejp_322_; +} +else +{ +lean_object* v_reuseFailAlloc_325_; +v_reuseFailAlloc_325_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_325_, 0, v_a_318_); +v___x_323_ = v_reuseFailAlloc_325_; +goto v_reusejp_322_; +} +v_reusejp_322_: +{ +lean_object* v___x_324_; +v___x_324_ = lean_io_promise_resolve(v___x_323_, v_promise_312_); +lean_dec(v_promise_312_); +return v___x_324_; +} +} +} +else +{ +lean_object* v_a_327_; lean_object* v___x_329_; uint8_t v_isShared_330_; uint8_t v_isSharedCheck_338_; +v_a_327_ = lean_ctor_get(v_x_316_, 0); +v_isSharedCheck_338_ = !lean_is_exclusive(v_x_316_); +if (v_isSharedCheck_338_ == 0) +{ +v___x_329_ = v_x_316_; +v_isShared_330_ = v_isSharedCheck_338_; +goto v_resetjp_328_; +} +else +{ +lean_inc(v_a_327_); +lean_dec(v_x_316_); +v___x_329_ = lean_box(0); +v_isShared_330_ = v_isSharedCheck_338_; +goto v_resetjp_328_; +} +v_resetjp_328_: +{ +if (lean_obj_tag(v_a_327_) == 0) +{ +lean_object* v_a_331_; lean_object* v___x_333_; +lean_dec(v_prio_315_); +lean_dec(v_expect_314_); +lean_dec_ref(v_recvChan_313_); +v_a_331_ = lean_ctor_get(v_a_327_, 0); +lean_inc(v_a_331_); +lean_dec_ref(v_a_327_); +if (v_isShared_330_ == 0) +{ +lean_ctor_set(v___x_329_, 0, v_a_331_); +v___x_333_ = v___x_329_; +goto v_reusejp_332_; +} +else +{ +lean_object* v_reuseFailAlloc_335_; +v_reuseFailAlloc_335_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_335_, 0, v_a_331_); +v___x_333_ = v_reuseFailAlloc_335_; +goto v_reusejp_332_; +} +v_reusejp_332_: +{ +lean_object* v___x_334_; +v___x_334_ = lean_io_promise_resolve(v___x_333_, v_promise_312_); +lean_dec(v_promise_312_); +return v___x_334_; +} +} +else +{ +lean_object* v_a_336_; lean_object* v___x_337_; +lean_del_object(v___x_329_); +v_a_336_ = lean_ctor_get(v_a_327_, 0); +lean_inc(v_a_336_); +lean_dec_ref(v_a_327_); +v___x_337_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0(v_recvChan_313_, v_expect_314_, v_prio_315_, v_promise_312_, v_a_336_); +return v___x_337_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0___boxed(lean_object* v_recvChan_339_, lean_object* v_expect_340_, lean_object* v_prio_341_, lean_object* v_promise_342_, lean_object* v_b_343_, lean_object* v_a_344_){ +_start: +{ +lean_object* v_res_345_; +v_res_345_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0(v_recvChan_339_, v_expect_340_, v_prio_341_, v_promise_342_, v_b_343_); +return v_res_345_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__2(lean_object* v_recvChan_346_, lean_object* v_expect_347_, lean_object* v___x_348_, lean_object* v_val_349_, lean_object* v_x_350_){ +_start: +{ +if (lean_obj_tag(v_x_350_) == 0) +{ +lean_object* v_a_352_; lean_object* v___x_354_; uint8_t v_isShared_355_; uint8_t v_isSharedCheck_360_; +lean_dec_ref(v_val_349_); +lean_dec(v___x_348_); +lean_dec(v_expect_347_); +lean_dec_ref(v_recvChan_346_); +v_a_352_ = lean_ctor_get(v_x_350_, 0); +v_isSharedCheck_360_ = !lean_is_exclusive(v_x_350_); +if (v_isSharedCheck_360_ == 0) +{ +v___x_354_ = v_x_350_; +v_isShared_355_ = v_isSharedCheck_360_; +goto v_resetjp_353_; +} +else +{ +lean_inc(v_a_352_); +lean_dec(v_x_350_); +v___x_354_ = lean_box(0); +v_isShared_355_ = v_isSharedCheck_360_; +goto v_resetjp_353_; +} +v_resetjp_353_: +{ +lean_object* v___x_357_; +if (v_isShared_355_ == 0) +{ +v___x_357_ = v___x_354_; +goto v_reusejp_356_; +} +else +{ +lean_object* v_reuseFailAlloc_359_; +v_reuseFailAlloc_359_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_359_, 0, v_a_352_); +v___x_357_ = v_reuseFailAlloc_359_; +goto v_reusejp_356_; +} +v_reusejp_356_: +{ +lean_object* v___x_358_; +v___x_358_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_358_, 0, v___x_357_); +return v___x_358_; +} +} +} +else +{ +lean_object* v_a_361_; lean_object* v___x_363_; uint8_t v_isShared_364_; uint8_t v_isSharedCheck_373_; +v_a_361_ = lean_ctor_get(v_x_350_, 0); +v_isSharedCheck_373_ = !lean_is_exclusive(v_x_350_); +if (v_isSharedCheck_373_ == 0) +{ +v___x_363_ = v_x_350_; +v_isShared_364_ = v_isSharedCheck_373_; +goto v_resetjp_362_; +} +else +{ +lean_inc(v_a_361_); +lean_dec(v_x_350_); +v___x_363_ = lean_box(0); +v_isShared_364_ = v_isSharedCheck_373_; +goto v_resetjp_362_; +} +v_resetjp_362_: +{ +lean_object* v___x_365_; lean_object* v___f_366_; lean_object* v___x_368_; +lean_inc(v_a_361_); +lean_inc(v___x_348_); +v___x_365_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_EAsync_forIn_loop___at___00Std_Http_Internal_Mock_recvJoined_spec__0(v_recvChan_346_, v_expect_347_, v___x_348_, v_a_361_, v_val_349_); +v___f_366_ = lean_alloc_closure((void*)(l_Std_Http_Internal_Mock_recvJoined___lam__1___boxed), 3, 1); +lean_closure_set(v___f_366_, 0, v_a_361_); +if (v_isShared_364_ == 0) +{ +lean_ctor_set(v___x_363_, 0, v___x_365_); +v___x_368_ = v___x_363_; +goto v_reusejp_367_; +} +else +{ +lean_object* v_reuseFailAlloc_372_; +v_reuseFailAlloc_372_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_372_, 0, v___x_365_); +v___x_368_ = v_reuseFailAlloc_372_; +goto v_reusejp_367_; +} +v_reusejp_367_: +{ +lean_object* v___x_369_; uint8_t v___x_370_; lean_object* v___x_371_; +v___x_369_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_369_, 0, v___x_368_); +v___x_370_ = 0; +v___x_371_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_348_, v___x_370_, v___x_369_, v___f_366_); +return v___x_371_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__2___boxed(lean_object* v_recvChan_374_, lean_object* v_expect_375_, lean_object* v___x_376_, lean_object* v_val_377_, lean_object* v_x_378_, lean_object* v___y_379_){ +_start: +{ +lean_object* v_res_380_; +v_res_380_ = l_Std_Http_Internal_Mock_recvJoined___lam__2(v_recvChan_374_, v_expect_375_, v___x_376_, v_val_377_, v_x_378_); +return v_res_380_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__3(lean_object* v_recvChan_381_, lean_object* v_expect_382_, lean_object* v___f_383_, lean_object* v_x_384_){ +_start: +{ +if (lean_obj_tag(v_x_384_) == 0) +{ +lean_object* v___x_386_; +lean_dec_ref(v___f_383_); +lean_dec(v_expect_382_); +lean_dec_ref(v_recvChan_381_); +v___x_386_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_386_, 0, v_x_384_); +return v___x_386_; +} +else +{ +lean_object* v_a_387_; +v_a_387_ = lean_ctor_get(v_x_384_, 0); +lean_inc(v_a_387_); +if (lean_obj_tag(v_a_387_) == 0) +{ +lean_object* v___x_388_; +lean_dec_ref(v___f_383_); +lean_dec(v_expect_382_); +lean_dec_ref(v_recvChan_381_); +v___x_388_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_388_, 0, v_x_384_); +return v___x_388_; +} +else +{ +lean_object* v___x_390_; uint8_t v_isShared_391_; uint8_t v_isSharedCheck_409_; +v_isSharedCheck_409_ = !lean_is_exclusive(v_x_384_); +if (v_isSharedCheck_409_ == 0) +{ +lean_object* v_unused_410_; +v_unused_410_ = lean_ctor_get(v_x_384_, 0); +lean_dec(v_unused_410_); +v___x_390_ = v_x_384_; +v_isShared_391_ = v_isSharedCheck_409_; +goto v_resetjp_389_; +} +else +{ +lean_dec(v_x_384_); +v___x_390_ = lean_box(0); +v_isShared_391_ = v_isSharedCheck_409_; +goto v_resetjp_389_; +} +v_resetjp_389_: +{ +lean_object* v_val_392_; lean_object* v___x_394_; uint8_t v_isShared_395_; uint8_t v_isSharedCheck_408_; +v_val_392_ = lean_ctor_get(v_a_387_, 0); +v_isSharedCheck_408_ = !lean_is_exclusive(v_a_387_); +if (v_isSharedCheck_408_ == 0) +{ +v___x_394_ = v_a_387_; +v_isShared_395_ = v_isSharedCheck_408_; +goto v_resetjp_393_; +} +else +{ +lean_inc(v_val_392_); +lean_dec(v_a_387_); +v___x_394_ = lean_box(0); +v_isShared_395_ = v_isSharedCheck_408_; +goto v_resetjp_393_; +} +v_resetjp_393_: +{ +lean_object* v___x_396_; lean_object* v___x_397_; lean_object* v___f_398_; lean_object* v___x_400_; +v___x_396_ = lean_io_promise_new(); +v___x_397_ = lean_unsigned_to_nat(0u); +v___f_398_ = lean_alloc_closure((void*)(l_Std_Http_Internal_Mock_recvJoined___lam__2___boxed), 6, 4); +lean_closure_set(v___f_398_, 0, v_recvChan_381_); +lean_closure_set(v___f_398_, 1, v_expect_382_); +lean_closure_set(v___f_398_, 2, v___x_397_); +lean_closure_set(v___f_398_, 3, v_val_392_); +if (v_isShared_391_ == 0) +{ +lean_ctor_set(v___x_390_, 0, v___x_396_); +v___x_400_ = v___x_390_; +goto v_reusejp_399_; +} +else +{ +lean_object* v_reuseFailAlloc_407_; +v_reuseFailAlloc_407_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_407_, 0, v___x_396_); +v___x_400_ = v_reuseFailAlloc_407_; +goto v_reusejp_399_; +} +v_reusejp_399_: +{ +lean_object* v___x_402_; +if (v_isShared_395_ == 0) +{ +lean_ctor_set_tag(v___x_394_, 0); +lean_ctor_set(v___x_394_, 0, v___x_400_); +v___x_402_ = v___x_394_; +goto v_reusejp_401_; +} +else +{ +lean_object* v_reuseFailAlloc_406_; +v_reuseFailAlloc_406_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_406_, 0, v___x_400_); +v___x_402_ = v_reuseFailAlloc_406_; +goto v_reusejp_401_; +} +v_reusejp_401_: +{ +uint8_t v___x_403_; lean_object* v___x_404_; lean_object* v___x_405_; +v___x_403_ = 0; +v___x_404_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_397_, v___x_403_, v___x_402_, v___f_398_); +v___x_405_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_397_, v___x_403_, v___x_404_, v___f_383_); +return v___x_405_; +} +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__3___boxed(lean_object* v_recvChan_411_, lean_object* v_expect_412_, lean_object* v___f_413_, lean_object* v_x_414_, lean_object* v___y_415_){ +_start: +{ +lean_object* v_res_416_; +v_res_416_ = l_Std_Http_Internal_Mock_recvJoined___lam__3(v_recvChan_411_, v_expect_412_, v___f_413_, v_x_414_); +return v_res_416_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__4(lean_object* v_a_417_){ +_start: +{ +lean_object* v___x_418_; +v___x_418_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_418_, 0, v_a_417_); +return v___x_418_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__5(lean_object* v___f_419_, lean_object* v___f_420_, lean_object* v_x_421_){ +_start: +{ +if (lean_obj_tag(v_x_421_) == 0) +{ +lean_object* v_a_423_; lean_object* v___x_425_; uint8_t v_isShared_426_; uint8_t v_isSharedCheck_431_; +lean_dec_ref(v___f_420_); +lean_dec_ref(v___f_419_); +v_a_423_ = lean_ctor_get(v_x_421_, 0); +v_isSharedCheck_431_ = !lean_is_exclusive(v_x_421_); +if (v_isSharedCheck_431_ == 0) +{ +v___x_425_ = v_x_421_; +v_isShared_426_ = v_isSharedCheck_431_; +goto v_resetjp_424_; +} +else +{ +lean_inc(v_a_423_); +lean_dec(v_x_421_); +v___x_425_ = lean_box(0); +v_isShared_426_ = v_isSharedCheck_431_; +goto v_resetjp_424_; +} +v_resetjp_424_: +{ +lean_object* v___x_428_; +if (v_isShared_426_ == 0) +{ +v___x_428_ = v___x_425_; +goto v_reusejp_427_; +} +else +{ +lean_object* v_reuseFailAlloc_430_; +v_reuseFailAlloc_430_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_430_, 0, v_a_423_); +v___x_428_ = v_reuseFailAlloc_430_; +goto v_reusejp_427_; +} +v_reusejp_427_: +{ +lean_object* v___x_429_; +v___x_429_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_429_, 0, v___x_428_); +return v___x_429_; +} +} +} +else +{ +lean_object* v_a_432_; lean_object* v___x_433_; uint8_t v___x_434_; lean_object* v___x_435_; lean_object* v___x_436_; lean_object* v___x_437_; +v_a_432_ = lean_ctor_get(v_x_421_, 0); +lean_inc(v_a_432_); +lean_dec_ref(v_x_421_); +v___x_433_ = lean_unsigned_to_nat(0u); +v___x_434_ = 0; +v___x_435_ = lean_task_map(v___f_419_, v_a_432_, v___x_433_, v___x_434_); +v___x_436_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_436_, 0, v___x_435_); +v___x_437_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_433_, v___x_434_, v___x_436_, v___f_420_); +return v___x_437_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___lam__5___boxed(lean_object* v___f_438_, lean_object* v___f_439_, lean_object* v_x_440_, lean_object* v___y_441_){ +_start: +{ +lean_object* v_res_442_; +v_res_442_ = l_Std_Http_Internal_Mock_recvJoined___lam__5(v___f_438_, v___f_439_, v_x_440_); +return v_res_442_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined(lean_object* v_recvChan_445_, lean_object* v_expect_446_){ +_start: +{ +lean_object* v___x_448_; lean_object* v___f_449_; lean_object* v___f_450_; lean_object* v___f_451_; lean_object* v___f_452_; lean_object* v___x_453_; lean_object* v___x_454_; lean_object* v___x_455_; uint8_t v___x_456_; lean_object* v___x_457_; +lean_inc_ref(v_recvChan_445_); +v___x_448_ = l_Std_CloseableChannel_recv___redArg(v_recvChan_445_); +v___f_449_ = ((lean_object*)(l_Std_Http_Internal_Mock_recvJoined___closed__0)); +v___f_450_ = lean_alloc_closure((void*)(l_Std_Http_Internal_Mock_recvJoined___lam__3___boxed), 5, 3); +lean_closure_set(v___f_450_, 0, v_recvChan_445_); +lean_closure_set(v___f_450_, 1, v_expect_446_); +lean_closure_set(v___f_450_, 2, v___f_449_); +v___f_451_ = ((lean_object*)(l_Std_Http_Internal_Mock_recvJoined___closed__1)); +v___f_452_ = lean_alloc_closure((void*)(l_Std_Http_Internal_Mock_recvJoined___lam__5___boxed), 4, 2); +lean_closure_set(v___f_452_, 0, v___f_451_); +lean_closure_set(v___f_452_, 1, v___f_450_); +v___x_453_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_453_, 0, v___x_448_); +v___x_454_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_454_, 0, v___x_453_); +v___x_455_ = lean_unsigned_to_nat(0u); +v___x_456_ = 0; +v___x_457_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_455_, v___x_456_, v___x_454_, v___f_452_); +return v___x_457_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvJoined___boxed(lean_object* v_recvChan_458_, lean_object* v_expect_459_, lean_object* v_a_460_){ +_start: +{ +lean_object* v_res_461_; +v_res_461_ = l_Std_Http_Internal_Mock_recvJoined(v_recvChan_458_, v_expect_459_); +return v_res_461_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__0(lean_object* v___y_464_){ +_start: +{ +lean_object* v___y_466_; +if (lean_obj_tag(v___y_464_) == 0) +{ +lean_object* v_a_469_; uint8_t v___x_470_; +v_a_469_ = lean_ctor_get(v___y_464_, 0); +lean_inc(v_a_469_); +lean_dec_ref(v___y_464_); +v___x_470_ = lean_unbox(v_a_469_); +lean_dec(v_a_469_); +if (v___x_470_ == 0) +{ +lean_object* v___x_471_; +v___x_471_ = ((lean_object*)(l_Std_Http_Internal_Mock_send___lam__0___closed__0)); +v___y_466_ = v___x_471_; +goto v___jp_465_; +} +else +{ +lean_object* v___x_472_; +v___x_472_ = ((lean_object*)(l_Std_Http_Internal_Mock_send___lam__0___closed__1)); +v___y_466_ = v___x_472_; +goto v___jp_465_; +} +} +else +{ +lean_object* v_a_473_; lean_object* v___x_475_; uint8_t v_isShared_476_; uint8_t v_isSharedCheck_480_; +v_a_473_ = lean_ctor_get(v___y_464_, 0); +v_isSharedCheck_480_ = !lean_is_exclusive(v___y_464_); +if (v_isSharedCheck_480_ == 0) +{ +v___x_475_ = v___y_464_; +v_isShared_476_ = v_isSharedCheck_480_; +goto v_resetjp_474_; +} +else +{ +lean_inc(v_a_473_); +lean_dec(v___y_464_); +v___x_475_ = lean_box(0); +v_isShared_476_ = v_isSharedCheck_480_; +goto v_resetjp_474_; +} +v_resetjp_474_: +{ +lean_object* v___x_478_; +if (v_isShared_476_ == 0) +{ +v___x_478_ = v___x_475_; +goto v_reusejp_477_; +} +else +{ +lean_object* v_reuseFailAlloc_479_; +v_reuseFailAlloc_479_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_479_, 0, v_a_473_); +v___x_478_ = v_reuseFailAlloc_479_; +goto v_reusejp_477_; +} +v_reusejp_477_: +{ +return v___x_478_; +} +} +} +v___jp_465_: +{ +lean_object* v___x_467_; lean_object* v___x_468_; +lean_inc_ref(v___y_466_); +v___x_467_ = lean_mk_io_user_error(v___y_466_); +v___x_468_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_468_, 0, v___x_467_); +return v___x_468_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__1(lean_object* v___f_481_, lean_object* v_x_482_){ +_start: +{ +if (lean_obj_tag(v_x_482_) == 0) +{ +lean_object* v_a_484_; lean_object* v___x_486_; uint8_t v_isShared_487_; uint8_t v_isSharedCheck_492_; +lean_dec_ref(v___f_481_); +v_a_484_ = lean_ctor_get(v_x_482_, 0); +v_isSharedCheck_492_ = !lean_is_exclusive(v_x_482_); +if (v_isSharedCheck_492_ == 0) +{ +v___x_486_ = v_x_482_; +v_isShared_487_ = v_isSharedCheck_492_; +goto v_resetjp_485_; +} +else +{ +lean_inc(v_a_484_); +lean_dec(v_x_482_); +v___x_486_ = lean_box(0); +v_isShared_487_ = v_isSharedCheck_492_; +goto v_resetjp_485_; +} +v_resetjp_485_: +{ +lean_object* v___x_489_; +if (v_isShared_487_ == 0) +{ +v___x_489_ = v___x_486_; +goto v_reusejp_488_; +} +else +{ +lean_object* v_reuseFailAlloc_491_; +v_reuseFailAlloc_491_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_491_, 0, v_a_484_); +v___x_489_ = v_reuseFailAlloc_491_; +goto v_reusejp_488_; +} +v_reusejp_488_: +{ +lean_object* v___x_490_; +v___x_490_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_490_, 0, v___x_489_); +return v___x_490_; +} +} +} +else +{ +lean_object* v_a_493_; lean_object* v___x_494_; uint8_t v___x_495_; lean_object* v___x_496_; lean_object* v___x_497_; +v_a_493_ = lean_ctor_get(v_x_482_, 0); +lean_inc(v_a_493_); +lean_dec_ref(v_x_482_); +v___x_494_ = lean_unsigned_to_nat(0u); +v___x_495_ = 0; +v___x_496_ = lean_task_map(v___f_481_, v_a_493_, v___x_494_, v___x_495_); +v___x_497_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_497_, 0, v___x_496_); +return v___x_497_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___lam__1___boxed(lean_object* v___f_498_, lean_object* v_x_499_, lean_object* v___y_500_){ +_start: +{ +lean_object* v_res_501_; +v_res_501_ = l_Std_Http_Internal_Mock_send___lam__1(v___f_498_, v_x_499_); +return v_res_501_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send(lean_object* v_sendChan_505_, lean_object* v_data_506_){ +_start: +{ +lean_object* v___x_508_; lean_object* v___f_509_; lean_object* v___x_510_; lean_object* v___x_511_; lean_object* v___x_512_; uint8_t v___x_513_; lean_object* v___x_514_; +v___x_508_ = l_Std_CloseableChannel_send___redArg(v_sendChan_505_, v_data_506_); +v___f_509_ = ((lean_object*)(l_Std_Http_Internal_Mock_send___closed__1)); +v___x_510_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_510_, 0, v___x_508_); +v___x_511_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_511_, 0, v___x_510_); +v___x_512_ = lean_unsigned_to_nat(0u); +v___x_513_ = 0; +v___x_514_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_512_, v___x_513_, v___x_511_, v___f_509_); +return v___x_514_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_send___boxed(lean_object* v_sendChan_515_, lean_object* v_data_516_, lean_object* v_a_517_){ +_start: +{ +lean_object* v_res_518_; +v_res_518_ = l_Std_Http_Internal_Mock_send(v_sendChan_515_, v_data_516_); +return v_res_518_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0(lean_object* v_x_523_){ +_start: +{ +if (lean_obj_tag(v_x_523_) == 0) +{ +lean_object* v___x_525_; +v___x_525_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_525_, 0, v_x_523_); +return v___x_525_; +} +else +{ +lean_object* v___x_526_; +lean_dec_ref(v_x_523_); +v___x_526_ = ((lean_object*)(l_Std_Http_Internal_Mock_sendAll___lam__0___closed__1)); +return v___x_526_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___lam__0___boxed(lean_object* v_x_527_, lean_object* v___y_528_){ +_start: +{ +lean_object* v_res_529_; +v_res_529_ = l_Std_Http_Internal_Mock_sendAll___lam__0(v_x_527_); +return v_res_529_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0(lean_object* v___x_530_, lean_object* v_x_531_){ +_start: +{ +if (lean_obj_tag(v_x_531_) == 0) +{ +lean_object* v_a_533_; lean_object* v___x_535_; uint8_t v_isShared_536_; uint8_t v_isSharedCheck_541_; +v_a_533_ = lean_ctor_get(v_x_531_, 0); +v_isSharedCheck_541_ = !lean_is_exclusive(v_x_531_); +if (v_isSharedCheck_541_ == 0) +{ +v___x_535_ = v_x_531_; +v_isShared_536_ = v_isSharedCheck_541_; +goto v_resetjp_534_; +} +else +{ +lean_inc(v_a_533_); +lean_dec(v_x_531_); +v___x_535_ = lean_box(0); +v_isShared_536_ = v_isSharedCheck_541_; +goto v_resetjp_534_; +} +v_resetjp_534_: +{ +lean_object* v___x_538_; +if (v_isShared_536_ == 0) +{ +v___x_538_ = v___x_535_; +goto v_reusejp_537_; +} +else +{ +lean_object* v_reuseFailAlloc_540_; +v_reuseFailAlloc_540_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_540_, 0, v_a_533_); +v___x_538_ = v_reuseFailAlloc_540_; +goto v_reusejp_537_; +} +v_reusejp_537_: +{ +lean_object* v___x_539_; +v___x_539_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_539_, 0, v___x_538_); +return v___x_539_; +} +} +} +else +{ +lean_object* v___x_543_; uint8_t v_isShared_544_; uint8_t v_isSharedCheck_550_; +v_isSharedCheck_550_ = !lean_is_exclusive(v_x_531_); +if (v_isSharedCheck_550_ == 0) +{ +lean_object* v_unused_551_; +v_unused_551_ = lean_ctor_get(v_x_531_, 0); +lean_dec(v_unused_551_); +v___x_543_ = v_x_531_; +v_isShared_544_ = v_isSharedCheck_550_; +goto v_resetjp_542_; +} +else +{ +lean_dec(v_x_531_); +v___x_543_ = lean_box(0); +v_isShared_544_ = v_isSharedCheck_550_; +goto v_resetjp_542_; +} +v_resetjp_542_: +{ +lean_object* v___x_545_; lean_object* v___x_547_; +v___x_545_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_545_, 0, v___x_530_); +if (v_isShared_544_ == 0) +{ +lean_ctor_set(v___x_543_, 0, v___x_545_); +v___x_547_ = v___x_543_; +goto v_reusejp_546_; +} +else +{ +lean_object* v_reuseFailAlloc_549_; +v_reuseFailAlloc_549_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_549_, 0, v___x_545_); +v___x_547_ = v_reuseFailAlloc_549_; +goto v_reusejp_546_; +} +v_reusejp_546_: +{ +lean_object* v___x_548_; +v___x_548_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_548_, 0, v___x_547_); +return v___x_548_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0___boxed(lean_object* v___x_552_, lean_object* v_x_553_, lean_object* v___y_554_){ +_start: +{ +lean_object* v_res_555_; +v_res_555_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__0(v___x_552_, v_x_553_); +return v_res_555_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1___boxed(lean_object* v_i_558_, lean_object* v_sendChan_559_, lean_object* v_as_560_, lean_object* v_sz_561_, lean_object* v_x_562_, lean_object* v___y_563_){ +_start: +{ +size_t v_i_boxed_564_; size_t v_sz_boxed_565_; lean_object* v_res_566_; +v_i_boxed_564_ = lean_unbox_usize(v_i_558_); +lean_dec(v_i_558_); +v_sz_boxed_565_ = lean_unbox_usize(v_sz_561_); +lean_dec(v_sz_561_); +v_res_566_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1(v_i_boxed_564_, v_sendChan_559_, v_as_560_, v_sz_boxed_565_, v_x_562_); +return v_res_566_; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0(lean_object* v_sendChan_567_, lean_object* v_as_568_, size_t v_sz_569_, size_t v_i_570_, lean_object* v_b_571_){ +_start: +{ +uint8_t v___x_573_; +v___x_573_ = lean_usize_dec_lt(v_i_570_, v_sz_569_); +if (v___x_573_ == 0) +{ +lean_object* v___x_574_; lean_object* v___x_575_; +lean_dec_ref(v_as_568_); +lean_dec_ref(v_sendChan_567_); +v___x_574_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_574_, 0, v_b_571_); +v___x_575_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_575_, 0, v___x_574_); +return v___x_575_; +} +else +{ +lean_object* v_a_576_; lean_object* v___x_577_; lean_object* v___f_578_; lean_object* v___x_579_; uint8_t v___x_580_; lean_object* v___x_581_; lean_object* v___x_582_; lean_object* v___x_583_; lean_object* v___f_584_; lean_object* v___x_585_; +v_a_576_ = lean_array_uget_borrowed(v_as_568_, v_i_570_); +lean_inc(v_a_576_); +lean_inc_ref(v_sendChan_567_); +v___x_577_ = l_Std_Http_Internal_Mock_send(v_sendChan_567_, v_a_576_); +v___f_578_ = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___closed__0)); +v___x_579_ = lean_unsigned_to_nat(0u); +v___x_580_ = 0; +v___x_581_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_579_, v___x_580_, v___x_577_, v___f_578_); +v___x_582_ = lean_box_usize(v_i_570_); +v___x_583_ = lean_box_usize(v_sz_569_); +v___f_584_ = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1___boxed), 6, 4); +lean_closure_set(v___f_584_, 0, v___x_582_); +lean_closure_set(v___f_584_, 1, v_sendChan_567_); +lean_closure_set(v___f_584_, 2, v_as_568_); +lean_closure_set(v___f_584_, 3, v___x_583_); +v___x_585_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_579_, v___x_580_, v___x_581_, v___f_584_); +return v___x_585_; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___lam__1(size_t v_i_586_, lean_object* v_sendChan_587_, lean_object* v_as_588_, size_t v_sz_589_, lean_object* v_x_590_){ +_start: +{ +if (lean_obj_tag(v_x_590_) == 0) +{ +lean_object* v_a_592_; lean_object* v___x_594_; uint8_t v_isShared_595_; uint8_t v_isSharedCheck_600_; +lean_dec_ref(v_as_588_); +lean_dec_ref(v_sendChan_587_); +v_a_592_ = lean_ctor_get(v_x_590_, 0); +v_isSharedCheck_600_ = !lean_is_exclusive(v_x_590_); +if (v_isSharedCheck_600_ == 0) +{ +v___x_594_ = v_x_590_; +v_isShared_595_ = v_isSharedCheck_600_; +goto v_resetjp_593_; +} +else +{ +lean_inc(v_a_592_); +lean_dec(v_x_590_); +v___x_594_ = lean_box(0); +v_isShared_595_ = v_isSharedCheck_600_; +goto v_resetjp_593_; +} +v_resetjp_593_: +{ +lean_object* v___x_597_; +if (v_isShared_595_ == 0) +{ +v___x_597_ = v___x_594_; +goto v_reusejp_596_; +} +else +{ +lean_object* v_reuseFailAlloc_599_; +v_reuseFailAlloc_599_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_599_, 0, v_a_592_); +v___x_597_ = v_reuseFailAlloc_599_; +goto v_reusejp_596_; +} +v_reusejp_596_: +{ +lean_object* v___x_598_; +v___x_598_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_598_, 0, v___x_597_); +return v___x_598_; +} +} +} +else +{ +lean_object* v_a_601_; lean_object* v___x_603_; uint8_t v_isShared_604_; uint8_t v_isSharedCheck_620_; +v_a_601_ = lean_ctor_get(v_x_590_, 0); +v_isSharedCheck_620_ = !lean_is_exclusive(v_x_590_); +if (v_isSharedCheck_620_ == 0) +{ +v___x_603_ = v_x_590_; +v_isShared_604_ = v_isSharedCheck_620_; +goto v_resetjp_602_; +} +else +{ +lean_inc(v_a_601_); +lean_dec(v_x_590_); +v___x_603_ = lean_box(0); +v_isShared_604_ = v_isSharedCheck_620_; +goto v_resetjp_602_; +} +v_resetjp_602_: +{ +if (lean_obj_tag(v_a_601_) == 0) +{ +lean_object* v_a_605_; lean_object* v___x_607_; uint8_t v_isShared_608_; uint8_t v_isSharedCheck_615_; +lean_dec_ref(v_as_588_); +lean_dec_ref(v_sendChan_587_); +v_a_605_ = lean_ctor_get(v_a_601_, 0); +v_isSharedCheck_615_ = !lean_is_exclusive(v_a_601_); +if (v_isSharedCheck_615_ == 0) +{ +v___x_607_ = v_a_601_; +v_isShared_608_ = v_isSharedCheck_615_; +goto v_resetjp_606_; +} +else +{ +lean_inc(v_a_605_); +lean_dec(v_a_601_); +v___x_607_ = lean_box(0); +v_isShared_608_ = v_isSharedCheck_615_; +goto v_resetjp_606_; +} +v_resetjp_606_: +{ +lean_object* v___x_610_; +if (v_isShared_604_ == 0) +{ +lean_ctor_set(v___x_603_, 0, v_a_605_); +v___x_610_ = v___x_603_; +goto v_reusejp_609_; +} +else +{ +lean_object* v_reuseFailAlloc_614_; +v_reuseFailAlloc_614_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_614_, 0, v_a_605_); +v___x_610_ = v_reuseFailAlloc_614_; +goto v_reusejp_609_; +} +v_reusejp_609_: +{ +lean_object* v___x_612_; +if (v_isShared_608_ == 0) +{ +lean_ctor_set(v___x_607_, 0, v___x_610_); +v___x_612_ = v___x_607_; +goto v_reusejp_611_; +} +else +{ +lean_object* v_reuseFailAlloc_613_; +v_reuseFailAlloc_613_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_613_, 0, v___x_610_); +v___x_612_ = v_reuseFailAlloc_613_; +goto v_reusejp_611_; +} +v_reusejp_611_: +{ +return v___x_612_; +} +} +} +} +else +{ +lean_object* v_a_616_; size_t v___x_617_; size_t v___x_618_; lean_object* v___x_619_; +lean_del_object(v___x_603_); +v_a_616_ = lean_ctor_get(v_a_601_, 0); +lean_inc(v_a_616_); +lean_dec_ref(v_a_601_); +v___x_617_ = ((size_t)1ULL); +v___x_618_ = lean_usize_add(v_i_586_, v___x_617_); +v___x_619_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0(v_sendChan_587_, v_as_588_, v_sz_589_, v___x_618_, v_a_616_); +return v___x_619_; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0___boxed(lean_object* v_sendChan_621_, lean_object* v_as_622_, lean_object* v_sz_623_, lean_object* v_i_624_, lean_object* v_b_625_, lean_object* v___y_626_){ +_start: +{ +size_t v_sz_boxed_627_; size_t v_i_boxed_628_; lean_object* v_res_629_; +v_sz_boxed_627_ = lean_unbox_usize(v_sz_623_); +lean_dec(v_sz_623_); +v_i_boxed_628_ = lean_unbox_usize(v_i_624_); +lean_dec(v_i_624_); +v_res_629_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0(v_sendChan_621_, v_as_622_, v_sz_boxed_627_, v_i_boxed_628_, v_b_625_); +return v_res_629_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll(lean_object* v_sendChan_631_, lean_object* v_data_632_){ +_start: +{ +lean_object* v___x_634_; size_t v_sz_635_; size_t v___x_636_; lean_object* v___x_637_; lean_object* v___f_638_; lean_object* v___x_639_; uint8_t v___x_640_; lean_object* v___x_641_; +v___x_634_ = lean_box(0); +v_sz_635_ = lean_array_size(v_data_632_); +v___x_636_ = ((size_t)0ULL); +v___x_637_ = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Std_Http_Internal_Mock_sendAll_spec__0(v_sendChan_631_, v_data_632_, v_sz_635_, v___x_636_, v___x_634_); +v___f_638_ = ((lean_object*)(l_Std_Http_Internal_Mock_sendAll___closed__0)); +v___x_639_ = lean_unsigned_to_nat(0u); +v___x_640_ = 0; +v___x_641_ = l___private_Std_Internal_Async_Basic_0__Std_Internal_IO_Async_BaseAsync_bind_bindAsyncTask(lean_box(0), lean_box(0), v___x_639_, v___x_640_, v___x_637_, v___f_638_); +return v___x_641_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_sendAll___boxed(lean_object* v_sendChan_642_, lean_object* v_data_643_, lean_object* v_a_644_){ +_start: +{ +lean_object* v_res_645_; +v_res_645_ = l_Std_Http_Internal_Mock_sendAll(v_sendChan_642_, v_data_643_); +return v_res_645_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_recvSelector(lean_object* v_recvChan_646_){ +_start: +{ +lean_object* v___x_647_; +v___x_647_ = l_Std_CloseableChannel_recvSelector___redArg(v_recvChan_646_); +return v___x_647_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getRecvChan(lean_object* v_client_648_){ +_start: +{ +lean_object* v_serverToClient_649_; +v_serverToClient_649_ = lean_ctor_get(v_client_648_, 1); +lean_inc_ref(v_serverToClient_649_); +return v_serverToClient_649_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getRecvChan___boxed(lean_object* v_client_650_){ +_start: +{ +lean_object* v_res_651_; +v_res_651_ = l_Std_Http_Internal_Mock_Client_getRecvChan(v_client_650_); +lean_dec_ref(v_client_650_); +return v_res_651_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getSendChan(lean_object* v_client_652_){ +_start: +{ +lean_object* v_clientToServer_653_; +v_clientToServer_653_ = lean_ctor_get(v_client_652_, 0); +lean_inc_ref(v_clientToServer_653_); +return v_clientToServer_653_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_getSendChan___boxed(lean_object* v_client_654_){ +_start: +{ +lean_object* v_res_655_; +v_res_655_ = l_Std_Http_Internal_Mock_Client_getSendChan(v_client_654_); +lean_dec_ref(v_client_654_); +return v_res_655_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_send(lean_object* v_client_656_, lean_object* v_data_657_){ +_start: +{ +lean_object* v_clientToServer_659_; lean_object* v___x_660_; +v_clientToServer_659_ = lean_ctor_get(v_client_656_, 0); +lean_inc_ref(v_clientToServer_659_); +lean_dec_ref(v_client_656_); +v___x_660_ = l_Std_Http_Internal_Mock_send(v_clientToServer_659_, v_data_657_); +return v___x_660_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_send___boxed(lean_object* v_client_661_, lean_object* v_data_662_, lean_object* v_a_663_){ +_start: +{ +lean_object* v_res_664_; +v_res_664_ = l_Std_Http_Internal_Mock_Client_send(v_client_661_, v_data_662_); +return v_res_664_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_recv_x3f(lean_object* v_client_665_, lean_object* v_expect_666_){ +_start: +{ +lean_object* v_serverToClient_668_; lean_object* v___x_669_; +v_serverToClient_668_ = lean_ctor_get(v_client_665_, 1); +lean_inc_ref(v_serverToClient_668_); +lean_dec_ref(v_client_665_); +v___x_669_ = l_Std_Http_Internal_Mock_recvJoined(v_serverToClient_668_, v_expect_666_); +return v___x_669_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_recv_x3f___boxed(lean_object* v_client_670_, lean_object* v_expect_671_, lean_object* v_a_672_){ +_start: +{ +lean_object* v_res_673_; +v_res_673_ = l_Std_Http_Internal_Mock_Client_recv_x3f(v_client_670_, v_expect_671_); +return v_res_673_; +} +} +LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0(lean_object* v___x_674_, lean_object* v_b_675_){ +_start: +{ +lean_object* v___x_677_; +lean_inc_ref(v___x_674_); +v___x_677_ = l_Std_CloseableChannel_tryRecv___redArg(v___x_674_); +if (lean_obj_tag(v___x_677_) == 0) +{ +lean_dec_ref(v___x_674_); +return v_b_675_; +} +else +{ +lean_object* v_val_678_; lean_object* v___x_679_; lean_object* v___x_680_; lean_object* v___x_681_; uint8_t v___x_682_; lean_object* v___x_683_; +v_val_678_ = lean_ctor_get(v___x_677_, 0); +lean_inc(v_val_678_); +lean_dec_ref(v___x_677_); +v___x_679_ = lean_unsigned_to_nat(0u); +v___x_680_ = lean_byte_array_size(v_b_675_); +v___x_681_ = lean_byte_array_size(v_val_678_); +v___x_682_ = 0; +v___x_683_ = lean_byte_array_copy_slice(v_val_678_, v___x_679_, v_b_675_, v___x_680_, v___x_681_, v___x_682_); +lean_dec(v_val_678_); +v_b_675_ = v___x_683_; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0___boxed(lean_object* v___x_685_, lean_object* v_b_686_, lean_object* v___y_687_){ +_start: +{ +lean_object* v_res_688_; +v_res_688_ = l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0(v___x_685_, v_b_686_); +return v_res_688_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg(lean_object* v_client_689_){ +_start: +{ +lean_object* v_serverToClient_691_; lean_object* v___x_692_; +v_serverToClient_691_ = lean_ctor_get(v_client_689_, 1); +lean_inc_ref_n(v_serverToClient_691_, 2); +lean_dec_ref(v_client_689_); +v___x_692_ = l_Std_CloseableChannel_tryRecv___redArg(v_serverToClient_691_); +if (lean_obj_tag(v___x_692_) == 0) +{ +lean_dec_ref(v_serverToClient_691_); +return v___x_692_; +} +else +{ +lean_object* v_val_693_; lean_object* v___x_695_; uint8_t v_isShared_696_; uint8_t v_isSharedCheck_701_; +v_val_693_ = lean_ctor_get(v___x_692_, 0); +v_isSharedCheck_701_ = !lean_is_exclusive(v___x_692_); +if (v_isSharedCheck_701_ == 0) +{ +v___x_695_ = v___x_692_; +v_isShared_696_ = v_isSharedCheck_701_; +goto v_resetjp_694_; +} +else +{ +lean_inc(v_val_693_); +lean_dec(v___x_692_); +v___x_695_ = lean_box(0); +v_isShared_696_ = v_isSharedCheck_701_; +goto v_resetjp_694_; +} +v_resetjp_694_: +{ +lean_object* v___x_697_; lean_object* v___x_699_; +v___x_697_ = l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0(v_serverToClient_691_, v_val_693_); +if (v_isShared_696_ == 0) +{ +lean_ctor_set(v___x_695_, 0, v___x_697_); +v___x_699_ = v___x_695_; +goto v_reusejp_698_; +} +else +{ +lean_object* v_reuseFailAlloc_700_; +v_reuseFailAlloc_700_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_700_, 0, v___x_697_); +v___x_699_ = v_reuseFailAlloc_700_; +goto v_reusejp_698_; +} +v_reusejp_698_: +{ +return v___x_699_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg___boxed(lean_object* v_client_702_, lean_object* v_a_703_){ +_start: +{ +lean_object* v_res_704_; +v_res_704_ = l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg(v_client_702_); +return v_res_704_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f(lean_object* v_client_705_, uint64_t v___expect_706_){ +_start: +{ +lean_object* v___x_708_; +v___x_708_ = l_Std_Http_Internal_Mock_Client_tryRecv_x3f___redArg(v_client_705_); +return v___x_708_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_tryRecv_x3f___boxed(lean_object* v_client_709_, lean_object* v___expect_710_, lean_object* v_a_711_){ +_start: +{ +uint64_t v___expect_boxed_712_; lean_object* v_res_713_; +v___expect_boxed_712_ = lean_unbox_uint64(v___expect_710_); +lean_dec_ref(v___expect_710_); +v_res_713_ = l_Std_Http_Internal_Mock_Client_tryRecv_x3f(v_client_709_, v___expect_boxed_712_); +return v_res_713_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_close(lean_object* v_client_718_){ +_start: +{ +lean_object* v_clientToServer_720_; lean_object* v_serverToClient_721_; uint8_t v___x_749_; +v_clientToServer_720_ = lean_ctor_get(v_client_718_, 0); +lean_inc_ref_n(v_clientToServer_720_, 2); +v_serverToClient_721_ = lean_ctor_get(v_client_718_, 1); +lean_inc_ref(v_serverToClient_721_); +lean_dec_ref(v_client_718_); +v___x_749_ = l_Std_CloseableChannel_isClosed___redArg(v_clientToServer_720_); +if (v___x_749_ == 0) +{ +lean_object* v___x_750_; +v___x_750_ = l_Std_CloseableChannel_close___redArg(v_clientToServer_720_); +if (lean_obj_tag(v___x_750_) == 0) +{ +lean_dec_ref(v___x_750_); +goto v___jp_722_; +} +else +{ +lean_object* v_a_751_; lean_object* v___x_753_; uint8_t v_isShared_754_; uint8_t v_isSharedCheck_764_; +lean_dec_ref(v_serverToClient_721_); +v_a_751_ = lean_ctor_get(v___x_750_, 0); +v_isSharedCheck_764_ = !lean_is_exclusive(v___x_750_); +if (v_isSharedCheck_764_ == 0) +{ +v___x_753_ = v___x_750_; +v_isShared_754_ = v_isSharedCheck_764_; +goto v_resetjp_752_; +} +else +{ +lean_inc(v_a_751_); +lean_dec(v___x_750_); +v___x_753_ = lean_box(0); +v_isShared_754_ = v_isSharedCheck_764_; +goto v_resetjp_752_; +} +v_resetjp_752_: +{ +uint8_t v___x_755_; +v___x_755_ = lean_unbox(v_a_751_); +lean_dec(v_a_751_); +if (v___x_755_ == 0) +{ +lean_object* v___x_756_; lean_object* v___x_758_; +v___x_756_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__0)); +if (v_isShared_754_ == 0) +{ +lean_ctor_set(v___x_753_, 0, v___x_756_); +v___x_758_ = v___x_753_; +goto v_reusejp_757_; +} +else +{ +lean_object* v_reuseFailAlloc_759_; +v_reuseFailAlloc_759_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_759_, 0, v___x_756_); +v___x_758_ = v_reuseFailAlloc_759_; +goto v_reusejp_757_; +} +v_reusejp_757_: +{ +return v___x_758_; +} +} +else +{ +lean_object* v___x_760_; lean_object* v___x_762_; +v___x_760_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__1)); +if (v_isShared_754_ == 0) +{ +lean_ctor_set(v___x_753_, 0, v___x_760_); +v___x_762_ = v___x_753_; +goto v_reusejp_761_; +} +else +{ +lean_object* v_reuseFailAlloc_763_; +v_reuseFailAlloc_763_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_763_, 0, v___x_760_); +v___x_762_ = v_reuseFailAlloc_763_; +goto v_reusejp_761_; +} +v_reusejp_761_: +{ +return v___x_762_; +} +} +} +} +} +else +{ +lean_dec_ref(v_clientToServer_720_); +goto v___jp_722_; +} +v___jp_722_: +{ +uint8_t v___x_723_; +lean_inc_ref(v_serverToClient_721_); +v___x_723_ = l_Std_CloseableChannel_isClosed___redArg(v_serverToClient_721_); +if (v___x_723_ == 0) +{ +lean_object* v___x_724_; +v___x_724_ = l_Std_CloseableChannel_close___redArg(v_serverToClient_721_); +if (lean_obj_tag(v___x_724_) == 0) +{ +lean_object* v_a_725_; lean_object* v___x_727_; uint8_t v_isShared_728_; uint8_t v_isSharedCheck_732_; +v_a_725_ = lean_ctor_get(v___x_724_, 0); +v_isSharedCheck_732_ = !lean_is_exclusive(v___x_724_); +if (v_isSharedCheck_732_ == 0) +{ +v___x_727_ = v___x_724_; +v_isShared_728_ = v_isSharedCheck_732_; +goto v_resetjp_726_; +} +else +{ +lean_inc(v_a_725_); +lean_dec(v___x_724_); +v___x_727_ = lean_box(0); +v_isShared_728_ = v_isSharedCheck_732_; +goto v_resetjp_726_; +} +v_resetjp_726_: +{ +lean_object* v___x_730_; +if (v_isShared_728_ == 0) +{ +v___x_730_ = v___x_727_; +goto v_reusejp_729_; +} +else +{ +lean_object* v_reuseFailAlloc_731_; +v_reuseFailAlloc_731_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_731_, 0, v_a_725_); +v___x_730_ = v_reuseFailAlloc_731_; +goto v_reusejp_729_; +} +v_reusejp_729_: +{ +return v___x_730_; +} +} +} +else +{ +lean_object* v_a_733_; lean_object* v___x_735_; uint8_t v_isShared_736_; uint8_t v_isSharedCheck_746_; +v_a_733_ = lean_ctor_get(v___x_724_, 0); +v_isSharedCheck_746_ = !lean_is_exclusive(v___x_724_); +if (v_isSharedCheck_746_ == 0) +{ +v___x_735_ = v___x_724_; +v_isShared_736_ = v_isSharedCheck_746_; +goto v_resetjp_734_; +} +else +{ +lean_inc(v_a_733_); +lean_dec(v___x_724_); +v___x_735_ = lean_box(0); +v_isShared_736_ = v_isSharedCheck_746_; +goto v_resetjp_734_; +} +v_resetjp_734_: +{ +uint8_t v___x_737_; +v___x_737_ = lean_unbox(v_a_733_); +lean_dec(v_a_733_); +if (v___x_737_ == 0) +{ +lean_object* v___x_738_; lean_object* v___x_740_; +v___x_738_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__0)); +if (v_isShared_736_ == 0) +{ +lean_ctor_set(v___x_735_, 0, v___x_738_); +v___x_740_ = v___x_735_; +goto v_reusejp_739_; +} +else +{ +lean_object* v_reuseFailAlloc_741_; +v_reuseFailAlloc_741_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_741_, 0, v___x_738_); +v___x_740_ = v_reuseFailAlloc_741_; +goto v_reusejp_739_; +} +v_reusejp_739_: +{ +return v___x_740_; +} +} +else +{ +lean_object* v___x_742_; lean_object* v___x_744_; +v___x_742_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__1)); +if (v_isShared_736_ == 0) +{ +lean_ctor_set(v___x_735_, 0, v___x_742_); +v___x_744_ = v___x_735_; +goto v_reusejp_743_; +} +else +{ +lean_object* v_reuseFailAlloc_745_; +v_reuseFailAlloc_745_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_745_, 0, v___x_742_); +v___x_744_ = v_reuseFailAlloc_745_; +goto v_reusejp_743_; +} +v_reusejp_743_: +{ +return v___x_744_; +} +} +} +} +} +else +{ +lean_object* v___x_747_; lean_object* v___x_748_; +lean_dec_ref(v_serverToClient_721_); +v___x_747_ = lean_box(0); +v___x_748_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_748_, 0, v___x_747_); +return v___x_748_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Client_close___boxed(lean_object* v_client_765_, lean_object* v_a_766_){ +_start: +{ +lean_object* v_res_767_; +v_res_767_ = l_Std_Http_Internal_Mock_Client_close(v_client_765_); +return v_res_767_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getRecvChan(lean_object* v_server_768_){ +_start: +{ +lean_object* v_clientToServer_769_; +v_clientToServer_769_ = lean_ctor_get(v_server_768_, 0); +lean_inc_ref(v_clientToServer_769_); +return v_clientToServer_769_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getRecvChan___boxed(lean_object* v_server_770_){ +_start: +{ +lean_object* v_res_771_; +v_res_771_ = l_Std_Http_Internal_Mock_Server_getRecvChan(v_server_770_); +lean_dec_ref(v_server_770_); +return v_res_771_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getSendChan(lean_object* v_server_772_){ +_start: +{ +lean_object* v_serverToClient_773_; +v_serverToClient_773_ = lean_ctor_get(v_server_772_, 1); +lean_inc_ref(v_serverToClient_773_); +return v_serverToClient_773_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_getSendChan___boxed(lean_object* v_server_774_){ +_start: +{ +lean_object* v_res_775_; +v_res_775_ = l_Std_Http_Internal_Mock_Server_getSendChan(v_server_774_); +lean_dec_ref(v_server_774_); +return v_res_775_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_send(lean_object* v_server_776_, lean_object* v_data_777_){ +_start: +{ +lean_object* v_serverToClient_779_; lean_object* v___x_780_; +v_serverToClient_779_ = lean_ctor_get(v_server_776_, 1); +lean_inc_ref(v_serverToClient_779_); +lean_dec_ref(v_server_776_); +v___x_780_ = l_Std_Http_Internal_Mock_send(v_serverToClient_779_, v_data_777_); +return v___x_780_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_send___boxed(lean_object* v_server_781_, lean_object* v_data_782_, lean_object* v_a_783_){ +_start: +{ +lean_object* v_res_784_; +v_res_784_ = l_Std_Http_Internal_Mock_Server_send(v_server_781_, v_data_782_); +return v_res_784_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_recv_x3f(lean_object* v_server_785_, lean_object* v_expect_786_){ +_start: +{ +lean_object* v_clientToServer_788_; lean_object* v___x_789_; +v_clientToServer_788_ = lean_ctor_get(v_server_785_, 0); +lean_inc_ref(v_clientToServer_788_); +lean_dec_ref(v_server_785_); +v___x_789_ = l_Std_Http_Internal_Mock_recvJoined(v_clientToServer_788_, v_expect_786_); +return v___x_789_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_recv_x3f___boxed(lean_object* v_server_790_, lean_object* v_expect_791_, lean_object* v_a_792_){ +_start: +{ +lean_object* v_res_793_; +v_res_793_ = l_Std_Http_Internal_Mock_Server_recv_x3f(v_server_790_, v_expect_791_); +return v_res_793_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg(lean_object* v_server_794_){ +_start: +{ +lean_object* v_clientToServer_796_; lean_object* v___x_797_; +v_clientToServer_796_ = lean_ctor_get(v_server_794_, 0); +lean_inc_ref_n(v_clientToServer_796_, 2); +lean_dec_ref(v_server_794_); +v___x_797_ = l_Std_CloseableChannel_tryRecv___redArg(v_clientToServer_796_); +if (lean_obj_tag(v___x_797_) == 0) +{ +lean_dec_ref(v_clientToServer_796_); +return v___x_797_; +} +else +{ +lean_object* v_val_798_; lean_object* v___x_800_; uint8_t v_isShared_801_; uint8_t v_isSharedCheck_806_; +v_val_798_ = lean_ctor_get(v___x_797_, 0); +v_isSharedCheck_806_ = !lean_is_exclusive(v___x_797_); +if (v_isSharedCheck_806_ == 0) +{ +v___x_800_ = v___x_797_; +v_isShared_801_ = v_isSharedCheck_806_; +goto v_resetjp_799_; +} +else +{ +lean_inc(v_val_798_); +lean_dec(v___x_797_); +v___x_800_ = lean_box(0); +v_isShared_801_ = v_isSharedCheck_806_; +goto v_resetjp_799_; +} +v_resetjp_799_: +{ +lean_object* v___x_802_; lean_object* v___x_804_; +v___x_802_ = l___private_Init_While_0__Lean_Loop_forIn_loop___at___00Std_Http_Internal_Mock_Client_tryRecv_x3f_spec__0(v_clientToServer_796_, v_val_798_); +if (v_isShared_801_ == 0) +{ +lean_ctor_set(v___x_800_, 0, v___x_802_); +v___x_804_ = v___x_800_; +goto v_reusejp_803_; +} +else +{ +lean_object* v_reuseFailAlloc_805_; +v_reuseFailAlloc_805_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_805_, 0, v___x_802_); +v___x_804_ = v_reuseFailAlloc_805_; +goto v_reusejp_803_; +} +v_reusejp_803_: +{ +return v___x_804_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg___boxed(lean_object* v_server_807_, lean_object* v_a_808_){ +_start: +{ +lean_object* v_res_809_; +v_res_809_ = l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg(v_server_807_); +return v_res_809_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f(lean_object* v_server_810_, uint64_t v___expect_811_){ +_start: +{ +lean_object* v___x_813_; +v___x_813_ = l_Std_Http_Internal_Mock_Server_tryRecv_x3f___redArg(v_server_810_); +return v___x_813_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_tryRecv_x3f___boxed(lean_object* v_server_814_, lean_object* v___expect_815_, lean_object* v_a_816_){ +_start: +{ +uint64_t v___expect_boxed_817_; lean_object* v_res_818_; +v___expect_boxed_817_ = lean_unbox_uint64(v___expect_815_); +lean_dec_ref(v___expect_815_); +v_res_818_ = l_Std_Http_Internal_Mock_Server_tryRecv_x3f(v_server_814_, v___expect_boxed_817_); +return v_res_818_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_close(lean_object* v_server_819_){ +_start: +{ +lean_object* v_clientToServer_821_; lean_object* v_serverToClient_822_; uint8_t v___x_850_; +v_clientToServer_821_ = lean_ctor_get(v_server_819_, 0); +lean_inc_ref_n(v_clientToServer_821_, 2); +v_serverToClient_822_ = lean_ctor_get(v_server_819_, 1); +lean_inc_ref(v_serverToClient_822_); +lean_dec_ref(v_server_819_); +v___x_850_ = l_Std_CloseableChannel_isClosed___redArg(v_clientToServer_821_); +if (v___x_850_ == 0) +{ +lean_object* v___x_851_; +v___x_851_ = l_Std_CloseableChannel_close___redArg(v_clientToServer_821_); +if (lean_obj_tag(v___x_851_) == 0) +{ +lean_dec_ref(v___x_851_); +goto v___jp_823_; +} +else +{ +lean_object* v_a_852_; lean_object* v___x_854_; uint8_t v_isShared_855_; uint8_t v_isSharedCheck_865_; +lean_dec_ref(v_serverToClient_822_); +v_a_852_ = lean_ctor_get(v___x_851_, 0); +v_isSharedCheck_865_ = !lean_is_exclusive(v___x_851_); +if (v_isSharedCheck_865_ == 0) +{ +v___x_854_ = v___x_851_; +v_isShared_855_ = v_isSharedCheck_865_; +goto v_resetjp_853_; +} +else +{ +lean_inc(v_a_852_); +lean_dec(v___x_851_); +v___x_854_ = lean_box(0); +v_isShared_855_ = v_isSharedCheck_865_; +goto v_resetjp_853_; +} +v_resetjp_853_: +{ +uint8_t v___x_856_; +v___x_856_ = lean_unbox(v_a_852_); +lean_dec(v_a_852_); +if (v___x_856_ == 0) +{ +lean_object* v___x_857_; lean_object* v___x_859_; +v___x_857_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__0)); +if (v_isShared_855_ == 0) +{ +lean_ctor_set(v___x_854_, 0, v___x_857_); +v___x_859_ = v___x_854_; +goto v_reusejp_858_; +} +else +{ +lean_object* v_reuseFailAlloc_860_; +v_reuseFailAlloc_860_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_860_, 0, v___x_857_); +v___x_859_ = v_reuseFailAlloc_860_; +goto v_reusejp_858_; +} +v_reusejp_858_: +{ +return v___x_859_; +} +} +else +{ +lean_object* v___x_861_; lean_object* v___x_863_; +v___x_861_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__1)); +if (v_isShared_855_ == 0) +{ +lean_ctor_set(v___x_854_, 0, v___x_861_); +v___x_863_ = v___x_854_; +goto v_reusejp_862_; +} +else +{ +lean_object* v_reuseFailAlloc_864_; +v_reuseFailAlloc_864_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_864_, 0, v___x_861_); +v___x_863_ = v_reuseFailAlloc_864_; +goto v_reusejp_862_; +} +v_reusejp_862_: +{ +return v___x_863_; +} +} +} +} +} +else +{ +lean_dec_ref(v_clientToServer_821_); +goto v___jp_823_; +} +v___jp_823_: +{ +uint8_t v___x_824_; +lean_inc_ref(v_serverToClient_822_); +v___x_824_ = l_Std_CloseableChannel_isClosed___redArg(v_serverToClient_822_); +if (v___x_824_ == 0) +{ +lean_object* v___x_825_; +v___x_825_ = l_Std_CloseableChannel_close___redArg(v_serverToClient_822_); +if (lean_obj_tag(v___x_825_) == 0) +{ +lean_object* v_a_826_; lean_object* v___x_828_; uint8_t v_isShared_829_; uint8_t v_isSharedCheck_833_; +v_a_826_ = lean_ctor_get(v___x_825_, 0); +v_isSharedCheck_833_ = !lean_is_exclusive(v___x_825_); +if (v_isSharedCheck_833_ == 0) +{ +v___x_828_ = v___x_825_; +v_isShared_829_ = v_isSharedCheck_833_; +goto v_resetjp_827_; +} +else +{ +lean_inc(v_a_826_); +lean_dec(v___x_825_); +v___x_828_ = lean_box(0); +v_isShared_829_ = v_isSharedCheck_833_; +goto v_resetjp_827_; +} +v_resetjp_827_: +{ +lean_object* v___x_831_; +if (v_isShared_829_ == 0) +{ +v___x_831_ = v___x_828_; +goto v_reusejp_830_; +} +else +{ +lean_object* v_reuseFailAlloc_832_; +v_reuseFailAlloc_832_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_832_, 0, v_a_826_); +v___x_831_ = v_reuseFailAlloc_832_; +goto v_reusejp_830_; +} +v_reusejp_830_: +{ +return v___x_831_; +} +} +} +else +{ +lean_object* v_a_834_; lean_object* v___x_836_; uint8_t v_isShared_837_; uint8_t v_isSharedCheck_847_; +v_a_834_ = lean_ctor_get(v___x_825_, 0); +v_isSharedCheck_847_ = !lean_is_exclusive(v___x_825_); +if (v_isSharedCheck_847_ == 0) +{ +v___x_836_ = v___x_825_; +v_isShared_837_ = v_isSharedCheck_847_; +goto v_resetjp_835_; +} +else +{ +lean_inc(v_a_834_); +lean_dec(v___x_825_); +v___x_836_ = lean_box(0); +v_isShared_837_ = v_isSharedCheck_847_; +goto v_resetjp_835_; +} +v_resetjp_835_: +{ +uint8_t v___x_838_; +v___x_838_ = lean_unbox(v_a_834_); +lean_dec(v_a_834_); +if (v___x_838_ == 0) +{ +lean_object* v___x_839_; lean_object* v___x_841_; +v___x_839_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__0)); +if (v_isShared_837_ == 0) +{ +lean_ctor_set(v___x_836_, 0, v___x_839_); +v___x_841_ = v___x_836_; +goto v_reusejp_840_; +} +else +{ +lean_object* v_reuseFailAlloc_842_; +v_reuseFailAlloc_842_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_842_, 0, v___x_839_); +v___x_841_ = v_reuseFailAlloc_842_; +goto v_reusejp_840_; +} +v_reusejp_840_: +{ +return v___x_841_; +} +} +else +{ +lean_object* v___x_843_; lean_object* v___x_845_; +v___x_843_ = ((lean_object*)(l_Std_Http_Internal_Mock_Client_close___closed__1)); +if (v_isShared_837_ == 0) +{ +lean_ctor_set(v___x_836_, 0, v___x_843_); +v___x_845_ = v___x_836_; +goto v_reusejp_844_; +} +else +{ +lean_object* v_reuseFailAlloc_846_; +v_reuseFailAlloc_846_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_846_, 0, v___x_843_); +v___x_845_ = v_reuseFailAlloc_846_; +goto v_reusejp_844_; +} +v_reusejp_844_: +{ +return v___x_845_; +} +} +} +} +} +else +{ +lean_object* v___x_848_; lean_object* v___x_849_; +lean_dec_ref(v_serverToClient_822_); +v___x_848_ = lean_box(0); +v___x_849_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_849_, 0, v___x_848_); +return v___x_849_; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_Mock_Server_close___boxed(lean_object* v_server_866_, lean_object* v_a_867_){ +_start: +{ +lean_object* v_res_868_; +v_res_868_ = l_Std_Http_Internal_Mock_Server_close(v_server_866_); +return v_res_868_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__0(lean_object* v_client_869_, uint64_t v_expect_870_){ +_start: +{ +lean_object* v_serverToClient_872_; lean_object* v___x_873_; lean_object* v___x_874_; lean_object* v___x_875_; +v_serverToClient_872_ = lean_ctor_get(v_client_869_, 1); +lean_inc_ref(v_serverToClient_872_); +lean_dec_ref(v_client_869_); +v___x_873_ = lean_box_uint64(v_expect_870_); +v___x_874_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_874_, 0, v___x_873_); +v___x_875_ = l_Std_Http_Internal_Mock_recvJoined(v_serverToClient_872_, v___x_874_); +return v___x_875_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__0___boxed(lean_object* v_client_876_, lean_object* v_expect_877_, lean_object* v___y_878_){ +_start: +{ +uint64_t v_expect_boxed_879_; lean_object* v_res_880_; +v_expect_boxed_879_ = lean_unbox_uint64(v_expect_877_); +lean_dec_ref(v_expect_877_); +v_res_880_ = l_Std_Http_Internal_instTransportClient___lam__0(v_client_876_, v_expect_boxed_879_); +return v_res_880_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__1(lean_object* v_client_881_, lean_object* v_data_882_){ +_start: +{ +lean_object* v_clientToServer_884_; lean_object* v___x_885_; +v_clientToServer_884_ = lean_ctor_get(v_client_881_, 0); +lean_inc_ref(v_clientToServer_884_); +lean_dec_ref(v_client_881_); +v___x_885_ = l_Std_Http_Internal_Mock_sendAll(v_clientToServer_884_, v_data_882_); +return v___x_885_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__1___boxed(lean_object* v_client_886_, lean_object* v_data_887_, lean_object* v___y_888_){ +_start: +{ +lean_object* v_res_889_; +v_res_889_ = l_Std_Http_Internal_instTransportClient___lam__1(v_client_886_, v_data_887_); +return v_res_889_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__2(lean_object* v_client_890_, uint64_t v_x_891_){ +_start: +{ +lean_object* v_serverToClient_892_; lean_object* v___x_893_; +v_serverToClient_892_ = lean_ctor_get(v_client_890_, 1); +lean_inc_ref(v_serverToClient_892_); +lean_dec_ref(v_client_890_); +v___x_893_ = l_Std_CloseableChannel_recvSelector___redArg(v_serverToClient_892_); +return v___x_893_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportClient___lam__2___boxed(lean_object* v_client_894_, lean_object* v_x_895_){ +_start: +{ +uint64_t v_x_43__boxed_896_; lean_object* v_res_897_; +v_x_43__boxed_896_ = lean_unbox_uint64(v_x_895_); +lean_dec_ref(v_x_895_); +v_res_897_ = l_Std_Http_Internal_instTransportClient___lam__2(v_client_894_, v_x_43__boxed_896_); +return v_res_897_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__0(lean_object* v_server_908_, uint64_t v_expect_909_){ +_start: +{ +lean_object* v_clientToServer_911_; lean_object* v___x_912_; lean_object* v___x_913_; lean_object* v___x_914_; +v_clientToServer_911_ = lean_ctor_get(v_server_908_, 0); +lean_inc_ref(v_clientToServer_911_); +lean_dec_ref(v_server_908_); +v___x_912_ = lean_box_uint64(v_expect_909_); +v___x_913_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_913_, 0, v___x_912_); +v___x_914_ = l_Std_Http_Internal_Mock_recvJoined(v_clientToServer_911_, v___x_913_); +return v___x_914_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__0___boxed(lean_object* v_server_915_, lean_object* v_expect_916_, lean_object* v___y_917_){ +_start: +{ +uint64_t v_expect_boxed_918_; lean_object* v_res_919_; +v_expect_boxed_918_ = lean_unbox_uint64(v_expect_916_); +lean_dec_ref(v_expect_916_); +v_res_919_ = l_Std_Http_Internal_instTransportServer___lam__0(v_server_915_, v_expect_boxed_918_); +return v_res_919_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__1(lean_object* v_server_920_, lean_object* v_data_921_){ +_start: +{ +lean_object* v_serverToClient_923_; lean_object* v___x_924_; +v_serverToClient_923_ = lean_ctor_get(v_server_920_, 1); +lean_inc_ref(v_serverToClient_923_); +lean_dec_ref(v_server_920_); +v___x_924_ = l_Std_Http_Internal_Mock_sendAll(v_serverToClient_923_, v_data_921_); +return v___x_924_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__1___boxed(lean_object* v_server_925_, lean_object* v_data_926_, lean_object* v___y_927_){ +_start: +{ +lean_object* v_res_928_; +v_res_928_ = l_Std_Http_Internal_instTransportServer___lam__1(v_server_925_, v_data_926_); +return v_res_928_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__2(lean_object* v_server_929_, uint64_t v_x_930_){ +_start: +{ +lean_object* v_clientToServer_931_; lean_object* v___x_932_; +v_clientToServer_931_ = lean_ctor_get(v_server_929_, 0); +lean_inc_ref(v_clientToServer_931_); +lean_dec_ref(v_server_929_); +v___x_932_ = l_Std_CloseableChannel_recvSelector___redArg(v_clientToServer_931_); +return v___x_932_; +} +} +LEAN_EXPORT lean_object* l_Std_Http_Internal_instTransportServer___lam__2___boxed(lean_object* v_server_933_, lean_object* v_x_934_){ +_start: +{ +uint64_t v_x_43__boxed_935_; lean_object* v_res_936_; +v_x_43__boxed_935_ = lean_unbox_uint64(v_x_934_); +lean_dec_ref(v_x_934_); +v_res_936_ = l_Std_Http_Internal_instTransportServer___lam__2(v_server_933_, v_x_43__boxed_935_); +return v_res_936_; +} +} +lean_object* runtime_initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Internal_Http_Transport(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Internal_Http_Transport(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Std_Internal_Http_Protocol_H1(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Internal_Http_Transport(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Std_Internal_Http_Protocol_H1(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Internal_Http_Transport(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Internal_Http_Transport(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Internal_Http_Transport(builtin); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Std/Net/Addr.c b/stage0/stdlib/Std/Net/Addr.c index 496f584ff2..b526f35cbc 100644 --- a/stage0/stdlib/Std/Net/Addr.c +++ b/stage0/stdlib/Std/Net/Addr.c @@ -23,6 +23,9 @@ uint8_t l_Array_instDecidableEqImpl___redArg(lean_object*, lean_object*, lean_ob lean_object* l_instDecidableEqUInt16___boxed(lean_object*, lean_object*); uint8_t lean_uint16_dec_eq(uint16_t, uint16_t); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* lean_uint16_to_nat(uint16_t); +lean_object* l_Nat_reprFast(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_once_cell_t l_Std_Net_instInhabitedMACAddr_default___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; @@ -138,6 +141,13 @@ LEAN_EXPORT lean_object* l_Std_Net_IPv4Addr_instCoeIPAddr___lam__0(lean_object*) static const lean_closure_object l_Std_Net_IPv4Addr_instCoeIPAddr___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_IPv4Addr_instCoeIPAddr___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Net_IPv4Addr_instCoeIPAddr___closed__0 = (const lean_object*)&l_Std_Net_IPv4Addr_instCoeIPAddr___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Net_IPv4Addr_instCoeIPAddr = (const lean_object*)&l_Std_Net_IPv4Addr_instCoeIPAddr___closed__0_value; +static const lean_string_object l_Std_Net_SocketAddressV4_instToString___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = ":"}; +static const lean_object* l_Std_Net_SocketAddressV4_instToString___lam__0___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV4_instToString___lam__0___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instToString___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instToString___lam__0___boxed(lean_object*); +static const lean_closure_object l_Std_Net_SocketAddressV4_instToString___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_SocketAddressV4_instToString___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Net_SocketAddressV4_instToString___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV4_instToString___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Net_SocketAddressV4_instToString = (const lean_object*)&l_Std_Net_SocketAddressV4_instToString___closed__0_value; LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instCoeSocketAddress___lam__0(lean_object*); static const lean_closure_object l_Std_Net_SocketAddressV4_instCoeSocketAddress___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_SocketAddressV4_instCoeSocketAddress___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Net_SocketAddressV4_instCoeSocketAddress___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV4_instCoeSocketAddress___closed__0_value; @@ -155,6 +165,15 @@ LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_instCoeIPAddr___lam__0(lean_object*) static const lean_closure_object l_Std_Net_IPv6Addr_instCoeIPAddr___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_IPv6Addr_instCoeIPAddr___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Net_IPv6Addr_instCoeIPAddr___closed__0 = (const lean_object*)&l_Std_Net_IPv6Addr_instCoeIPAddr___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Net_IPv6Addr_instCoeIPAddr = (const lean_object*)&l_Std_Net_IPv6Addr_instCoeIPAddr___closed__0_value; +static const lean_string_object l_Std_Net_SocketAddressV6_instToString___lam__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 2, .m_capacity = 2, .m_length = 1, .m_data = "["}; +static const lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV6_instToString___lam__0___closed__0_value; +static const lean_string_object l_Std_Net_SocketAddressV6_instToString___lam__0___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 3, .m_capacity = 3, .m_length = 2, .m_data = "]:"}; +static const lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0___closed__1 = (const lean_object*)&l_Std_Net_SocketAddressV6_instToString___lam__0___closed__1_value; +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0___boxed(lean_object*); +static const lean_closure_object l_Std_Net_SocketAddressV6_instToString___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_SocketAddressV6_instToString___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Net_SocketAddressV6_instToString___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV6_instToString___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Net_SocketAddressV6_instToString = (const lean_object*)&l_Std_Net_SocketAddressV6_instToString___closed__0_value; LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instCoeSocketAddress___lam__0(lean_object*); static const lean_closure_object l_Std_Net_SocketAddressV6_instCoeSocketAddress___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_SocketAddressV6_instCoeSocketAddress___lam__0, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Net_SocketAddressV6_instCoeSocketAddress___closed__0 = (const lean_object*)&l_Std_Net_SocketAddressV6_instCoeSocketAddress___closed__0_value; @@ -166,6 +185,11 @@ LEAN_EXPORT lean_object* l_Std_Net_IPAddr_toString___boxed(lean_object*); static const lean_closure_object l_Std_Net_IPAddr_instToString___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_IPAddr_toString___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; static const lean_object* l_Std_Net_IPAddr_instToString___closed__0 = (const lean_object*)&l_Std_Net_IPAddr_instToString___closed__0_value; LEAN_EXPORT const lean_object* l_Std_Net_IPAddr_instToString = (const lean_object*)&l_Std_Net_IPAddr_instToString___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_instToString___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_instToString___lam__0___boxed(lean_object*); +static const lean_closure_object l_Std_Net_SocketAddress_instToString___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Net_SocketAddress_instToString___lam__0___boxed, .m_arity = 1, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Net_SocketAddress_instToString___closed__0 = (const lean_object*)&l_Std_Net_SocketAddress_instToString___closed__0_value; +LEAN_EXPORT const lean_object* l_Std_Net_SocketAddress_instToString = (const lean_object*)&l_Std_Net_SocketAddress_instToString___closed__0_value; LEAN_EXPORT uint8_t l_Std_Net_SocketAddress_family(lean_object*); LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_family___boxed(lean_object*); LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_ipAddr(lean_object*); @@ -1187,427 +1211,527 @@ lean_ctor_set(v___x_345_, 0, v_addr_344_); return v___x_345_; } } -LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instCoeSocketAddress___lam__0(lean_object* v_addr_348_){ +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instToString___lam__0(lean_object* v_sa_349_){ _start: { -lean_object* v___x_349_; -v___x_349_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v___x_349_, 0, v_addr_348_); -return v___x_349_; +lean_object* v_addr_350_; uint16_t v_port_351_; lean_object* v___x_352_; lean_object* v___x_353_; lean_object* v___x_354_; lean_object* v___x_355_; lean_object* v___x_356_; lean_object* v___x_357_; +v_addr_350_ = lean_ctor_get(v_sa_349_, 0); +v_port_351_ = lean_ctor_get_uint16(v_sa_349_, sizeof(void*)*1); +v___x_352_ = lean_uv_ntop_v4(v_addr_350_); +v___x_353_ = ((lean_object*)(l_Std_Net_SocketAddressV4_instToString___lam__0___closed__0)); +v___x_354_ = lean_string_append(v___x_352_, v___x_353_); +v___x_355_ = lean_uint16_to_nat(v_port_351_); +v___x_356_ = l_Nat_reprFast(v___x_355_); +v___x_357_ = lean_string_append(v___x_354_, v___x_356_); +lean_dec_ref(v___x_356_); +return v___x_357_; } } -LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofParts(uint16_t v_a_352_, uint16_t v_b_353_, uint16_t v_c_354_, uint16_t v_d_355_, uint16_t v_e_356_, uint16_t v_f_357_, uint16_t v_g_358_, uint16_t v_h_359_){ +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instToString___lam__0___boxed(lean_object* v_sa_358_){ _start: { -lean_object* v___x_360_; lean_object* v___x_361_; lean_object* v___x_362_; lean_object* v___x_363_; lean_object* v___x_364_; lean_object* v___x_365_; lean_object* v___x_366_; lean_object* v___x_367_; lean_object* v___x_368_; lean_object* v___x_369_; lean_object* v___x_370_; lean_object* v___x_371_; lean_object* v___x_372_; lean_object* v___x_373_; lean_object* v___x_374_; lean_object* v___x_375_; lean_object* v___x_376_; lean_object* v___x_377_; -v___x_360_ = lean_unsigned_to_nat(8u); -v___x_361_ = lean_mk_empty_array_with_capacity(v___x_360_); -v___x_362_ = lean_box(v_a_352_); -v___x_363_ = lean_array_push(v___x_361_, v___x_362_); -v___x_364_ = lean_box(v_b_353_); -v___x_365_ = lean_array_push(v___x_363_, v___x_364_); -v___x_366_ = lean_box(v_c_354_); -v___x_367_ = lean_array_push(v___x_365_, v___x_366_); -v___x_368_ = lean_box(v_d_355_); -v___x_369_ = lean_array_push(v___x_367_, v___x_368_); -v___x_370_ = lean_box(v_e_356_); -v___x_371_ = lean_array_push(v___x_369_, v___x_370_); -v___x_372_ = lean_box(v_f_357_); -v___x_373_ = lean_array_push(v___x_371_, v___x_372_); -v___x_374_ = lean_box(v_g_358_); -v___x_375_ = lean_array_push(v___x_373_, v___x_374_); -v___x_376_ = lean_box(v_h_359_); +lean_object* v_res_359_; +v_res_359_ = l_Std_Net_SocketAddressV4_instToString___lam__0(v_sa_358_); +lean_dec_ref(v_sa_358_); +return v_res_359_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV4_instCoeSocketAddress___lam__0(lean_object* v_addr_362_){ +_start: +{ +lean_object* v___x_363_; +v___x_363_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v___x_363_, 0, v_addr_362_); +return v___x_363_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofParts(uint16_t v_a_366_, uint16_t v_b_367_, uint16_t v_c_368_, uint16_t v_d_369_, uint16_t v_e_370_, uint16_t v_f_371_, uint16_t v_g_372_, uint16_t v_h_373_){ +_start: +{ +lean_object* v___x_374_; lean_object* v___x_375_; lean_object* v___x_376_; lean_object* v___x_377_; lean_object* v___x_378_; lean_object* v___x_379_; lean_object* v___x_380_; lean_object* v___x_381_; lean_object* v___x_382_; lean_object* v___x_383_; lean_object* v___x_384_; lean_object* v___x_385_; lean_object* v___x_386_; lean_object* v___x_387_; lean_object* v___x_388_; lean_object* v___x_389_; lean_object* v___x_390_; lean_object* v___x_391_; +v___x_374_ = lean_unsigned_to_nat(8u); +v___x_375_ = lean_mk_empty_array_with_capacity(v___x_374_); +v___x_376_ = lean_box(v_a_366_); v___x_377_ = lean_array_push(v___x_375_, v___x_376_); -return v___x_377_; +v___x_378_ = lean_box(v_b_367_); +v___x_379_ = lean_array_push(v___x_377_, v___x_378_); +v___x_380_ = lean_box(v_c_368_); +v___x_381_ = lean_array_push(v___x_379_, v___x_380_); +v___x_382_ = lean_box(v_d_369_); +v___x_383_ = lean_array_push(v___x_381_, v___x_382_); +v___x_384_ = lean_box(v_e_370_); +v___x_385_ = lean_array_push(v___x_383_, v___x_384_); +v___x_386_ = lean_box(v_f_371_); +v___x_387_ = lean_array_push(v___x_385_, v___x_386_); +v___x_388_ = lean_box(v_g_372_); +v___x_389_ = lean_array_push(v___x_387_, v___x_388_); +v___x_390_ = lean_box(v_h_373_); +v___x_391_ = lean_array_push(v___x_389_, v___x_390_); +return v___x_391_; } } -LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofParts___boxed(lean_object* v_a_378_, lean_object* v_b_379_, lean_object* v_c_380_, lean_object* v_d_381_, lean_object* v_e_382_, lean_object* v_f_383_, lean_object* v_g_384_, lean_object* v_h_385_){ +LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofParts___boxed(lean_object* v_a_392_, lean_object* v_b_393_, lean_object* v_c_394_, lean_object* v_d_395_, lean_object* v_e_396_, lean_object* v_f_397_, lean_object* v_g_398_, lean_object* v_h_399_){ _start: { -uint16_t v_a_boxed_386_; uint16_t v_b_boxed_387_; uint16_t v_c_boxed_388_; uint16_t v_d_boxed_389_; uint16_t v_e_boxed_390_; uint16_t v_f_boxed_391_; uint16_t v_g_boxed_392_; uint16_t v_h_boxed_393_; lean_object* v_res_394_; -v_a_boxed_386_ = lean_unbox(v_a_378_); -v_b_boxed_387_ = lean_unbox(v_b_379_); -v_c_boxed_388_ = lean_unbox(v_c_380_); -v_d_boxed_389_ = lean_unbox(v_d_381_); -v_e_boxed_390_ = lean_unbox(v_e_382_); -v_f_boxed_391_ = lean_unbox(v_f_383_); -v_g_boxed_392_ = lean_unbox(v_g_384_); -v_h_boxed_393_ = lean_unbox(v_h_385_); -v_res_394_ = l_Std_Net_IPv6Addr_ofParts(v_a_boxed_386_, v_b_boxed_387_, v_c_boxed_388_, v_d_boxed_389_, v_e_boxed_390_, v_f_boxed_391_, v_g_boxed_392_, v_h_boxed_393_); -return v_res_394_; +uint16_t v_a_boxed_400_; uint16_t v_b_boxed_401_; uint16_t v_c_boxed_402_; uint16_t v_d_boxed_403_; uint16_t v_e_boxed_404_; uint16_t v_f_boxed_405_; uint16_t v_g_boxed_406_; uint16_t v_h_boxed_407_; lean_object* v_res_408_; +v_a_boxed_400_ = lean_unbox(v_a_392_); +v_b_boxed_401_ = lean_unbox(v_b_393_); +v_c_boxed_402_ = lean_unbox(v_c_394_); +v_d_boxed_403_ = lean_unbox(v_d_395_); +v_e_boxed_404_ = lean_unbox(v_e_396_); +v_f_boxed_405_ = lean_unbox(v_f_397_); +v_g_boxed_406_ = lean_unbox(v_g_398_); +v_h_boxed_407_ = lean_unbox(v_h_399_); +v_res_408_ = l_Std_Net_IPv6Addr_ofParts(v_a_boxed_400_, v_b_boxed_401_, v_c_boxed_402_, v_d_boxed_403_, v_e_boxed_404_, v_f_boxed_405_, v_g_boxed_406_, v_h_boxed_407_); +return v_res_408_; } } -LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofString___boxed(lean_object* v_s_396_){ +LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_ofString___boxed(lean_object* v_s_410_){ _start: { -lean_object* v_res_397_; -v_res_397_ = lean_uv_pton_v6(v_s_396_); -lean_dec_ref(v_s_396_); -return v_res_397_; +lean_object* v_res_411_; +v_res_411_ = lean_uv_pton_v6(v_s_410_); +lean_dec_ref(v_s_410_); +return v_res_411_; } } -LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_toString___boxed(lean_object* v_addr_399_){ +LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_toString___boxed(lean_object* v_addr_413_){ _start: { -lean_object* v_res_400_; -v_res_400_ = lean_uv_ntop_v6(v_addr_399_); -lean_dec_ref(v_addr_399_); -return v_res_400_; +lean_object* v_res_414_; +v_res_414_ = lean_uv_ntop_v6(v_addr_413_); +lean_dec_ref(v_addr_413_); +return v_res_414_; } } -LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_instCoeIPAddr___lam__0(lean_object* v_addr_403_){ +LEAN_EXPORT lean_object* l_Std_Net_IPv6Addr_instCoeIPAddr___lam__0(lean_object* v_addr_417_){ _start: { -lean_object* v___x_404_; -v___x_404_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_404_, 0, v_addr_403_); -return v___x_404_; +lean_object* v___x_418_; +v___x_418_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_418_, 0, v_addr_417_); +return v___x_418_; } } -LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instCoeSocketAddress___lam__0(lean_object* v_addr_407_){ +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0(lean_object* v_sa_423_){ _start: { -lean_object* v___x_408_; -v___x_408_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v___x_408_, 0, v_addr_407_); -return v___x_408_; +lean_object* v_addr_424_; uint16_t v_port_425_; lean_object* v___x_426_; lean_object* v___x_427_; lean_object* v___x_428_; lean_object* v___x_429_; lean_object* v___x_430_; lean_object* v___x_431_; lean_object* v___x_432_; lean_object* v___x_433_; +v_addr_424_ = lean_ctor_get(v_sa_423_, 0); +v_port_425_ = lean_ctor_get_uint16(v_sa_423_, sizeof(void*)*1); +v___x_426_ = ((lean_object*)(l_Std_Net_SocketAddressV6_instToString___lam__0___closed__0)); +v___x_427_ = lean_uv_ntop_v6(v_addr_424_); +v___x_428_ = lean_string_append(v___x_426_, v___x_427_); +lean_dec_ref(v___x_427_); +v___x_429_ = ((lean_object*)(l_Std_Net_SocketAddressV6_instToString___lam__0___closed__1)); +v___x_430_ = lean_string_append(v___x_428_, v___x_429_); +v___x_431_ = lean_uint16_to_nat(v_port_425_); +v___x_432_ = l_Nat_reprFast(v___x_431_); +v___x_433_ = lean_string_append(v___x_430_, v___x_432_); +lean_dec_ref(v___x_432_); +return v___x_433_; } } -LEAN_EXPORT uint8_t l_Std_Net_IPAddr_family(lean_object* v_x_411_){ +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instToString___lam__0___boxed(lean_object* v_sa_434_){ _start: { -if (lean_obj_tag(v_x_411_) == 0) -{ -uint8_t v___x_412_; -v___x_412_ = 0; -return v___x_412_; -} -else -{ -uint8_t v___x_413_; -v___x_413_ = 1; -return v___x_413_; +lean_object* v_res_435_; +v_res_435_ = l_Std_Net_SocketAddressV6_instToString___lam__0(v_sa_434_); +lean_dec_ref(v_sa_434_); +return v_res_435_; } } -} -LEAN_EXPORT lean_object* l_Std_Net_IPAddr_family___boxed(lean_object* v_x_414_){ +LEAN_EXPORT lean_object* l_Std_Net_SocketAddressV6_instCoeSocketAddress___lam__0(lean_object* v_addr_438_){ _start: { -uint8_t v_res_415_; lean_object* v_r_416_; -v_res_415_ = l_Std_Net_IPAddr_family(v_x_414_); -lean_dec_ref(v_x_414_); -v_r_416_ = lean_box(v_res_415_); -return v_r_416_; -} -} -LEAN_EXPORT lean_object* l_Std_Net_IPAddr_toString(lean_object* v_x_417_){ -_start: -{ -if (lean_obj_tag(v_x_417_) == 0) -{ -lean_object* v_addr_418_; lean_object* v___x_419_; -v_addr_418_ = lean_ctor_get(v_x_417_, 0); -v___x_419_ = lean_uv_ntop_v4(v_addr_418_); -return v___x_419_; -} -else -{ -lean_object* v_addr_420_; lean_object* v___x_421_; -v_addr_420_ = lean_ctor_get(v_x_417_, 0); -v___x_421_ = lean_uv_ntop_v6(v_addr_420_); -return v___x_421_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Net_IPAddr_toString___boxed(lean_object* v_x_422_){ -_start: -{ -lean_object* v_res_423_; -v_res_423_ = l_Std_Net_IPAddr_toString(v_x_422_); -lean_dec_ref(v_x_422_); -return v_res_423_; -} -} -LEAN_EXPORT uint8_t l_Std_Net_SocketAddress_family(lean_object* v_x_426_){ -_start: -{ -if (lean_obj_tag(v_x_426_) == 0) -{ -uint8_t v___x_427_; -v___x_427_ = 0; -return v___x_427_; -} -else -{ -uint8_t v___x_428_; -v___x_428_ = 1; -return v___x_428_; -} -} -} -LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_family___boxed(lean_object* v_x_429_){ -_start: -{ -uint8_t v_res_430_; lean_object* v_r_431_; -v_res_430_ = l_Std_Net_SocketAddress_family(v_x_429_); -lean_dec_ref(v_x_429_); -v_r_431_ = lean_box(v_res_430_); -return v_r_431_; -} -} -LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_ipAddr(lean_object* v_x_432_){ -_start: -{ -if (lean_obj_tag(v_x_432_) == 0) -{ -lean_object* v_addr_433_; lean_object* v___x_435_; uint8_t v_isShared_436_; uint8_t v_isSharedCheck_441_; -v_addr_433_ = lean_ctor_get(v_x_432_, 0); -v_isSharedCheck_441_ = !lean_is_exclusive(v_x_432_); -if (v_isSharedCheck_441_ == 0) -{ -v___x_435_ = v_x_432_; -v_isShared_436_ = v_isSharedCheck_441_; -goto v_resetjp_434_; -} -else -{ -lean_inc(v_addr_433_); -lean_dec(v_x_432_); -v___x_435_ = lean_box(0); -v_isShared_436_ = v_isSharedCheck_441_; -goto v_resetjp_434_; -} -v_resetjp_434_: -{ -lean_object* v_addr_437_; lean_object* v___x_439_; -v_addr_437_ = lean_ctor_get(v_addr_433_, 0); -lean_inc_ref(v_addr_437_); -lean_dec_ref(v_addr_433_); -if (v_isShared_436_ == 0) -{ -lean_ctor_set(v___x_435_, 0, v_addr_437_); -v___x_439_ = v___x_435_; -goto v_reusejp_438_; -} -else -{ -lean_object* v_reuseFailAlloc_440_; -v_reuseFailAlloc_440_ = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(v_reuseFailAlloc_440_, 0, v_addr_437_); -v___x_439_ = v_reuseFailAlloc_440_; -goto v_reusejp_438_; -} -v_reusejp_438_: -{ +lean_object* v___x_439_; +v___x_439_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v___x_439_, 0, v_addr_438_); return v___x_439_; } } -} -else -{ -lean_object* v_addr_442_; lean_object* v___x_444_; uint8_t v_isShared_445_; uint8_t v_isSharedCheck_450_; -v_addr_442_ = lean_ctor_get(v_x_432_, 0); -v_isSharedCheck_450_ = !lean_is_exclusive(v_x_432_); -if (v_isSharedCheck_450_ == 0) -{ -v___x_444_ = v_x_432_; -v_isShared_445_ = v_isSharedCheck_450_; -goto v_resetjp_443_; -} -else -{ -lean_inc(v_addr_442_); -lean_dec(v_x_432_); -v___x_444_ = lean_box(0); -v_isShared_445_ = v_isSharedCheck_450_; -goto v_resetjp_443_; -} -v_resetjp_443_: -{ -lean_object* v_addr_446_; lean_object* v___x_448_; -v_addr_446_ = lean_ctor_get(v_addr_442_, 0); -lean_inc_ref(v_addr_446_); -lean_dec_ref(v_addr_442_); -if (v_isShared_445_ == 0) -{ -lean_ctor_set(v___x_444_, 0, v_addr_446_); -v___x_448_ = v___x_444_; -goto v_reusejp_447_; -} -else -{ -lean_object* v_reuseFailAlloc_449_; -v_reuseFailAlloc_449_ = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(v_reuseFailAlloc_449_, 0, v_addr_446_); -v___x_448_ = v_reuseFailAlloc_449_; -goto v_reusejp_447_; -} -v_reusejp_447_: -{ -return v___x_448_; -} -} -} -} -} -LEAN_EXPORT uint16_t l_Std_Net_SocketAddress_port(lean_object* v_x_451_){ +LEAN_EXPORT uint8_t l_Std_Net_IPAddr_family(lean_object* v_x_442_){ _start: { -lean_object* v_addr_452_; uint16_t v_port_453_; -v_addr_452_ = lean_ctor_get(v_x_451_, 0); -v_port_453_ = lean_ctor_get_uint16(v_addr_452_, sizeof(void*)*1); -return v_port_453_; +if (lean_obj_tag(v_x_442_) == 0) +{ +uint8_t v___x_443_; +v___x_443_ = 0; +return v___x_443_; +} +else +{ +uint8_t v___x_444_; +v___x_444_ = 1; +return v___x_444_; } } -LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_port___boxed(lean_object* v_x_454_){ +} +LEAN_EXPORT lean_object* l_Std_Net_IPAddr_family___boxed(lean_object* v_x_445_){ _start: { -uint16_t v_res_455_; lean_object* v_r_456_; -v_res_455_ = l_Std_Net_SocketAddress_port(v_x_454_); -lean_dec_ref(v_x_454_); -v_r_456_ = lean_box(v_res_455_); -return v_r_456_; +uint8_t v_res_446_; lean_object* v_r_447_; +v_res_446_ = l_Std_Net_IPAddr_family(v_x_445_); +lean_dec_ref(v_x_445_); +v_r_447_ = lean_box(v_res_446_); +return v_r_447_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_IPAddr_toString(lean_object* v_x_448_){ +_start: +{ +if (lean_obj_tag(v_x_448_) == 0) +{ +lean_object* v_addr_449_; lean_object* v___x_450_; +v_addr_449_ = lean_ctor_get(v_x_448_, 0); +v___x_450_ = lean_uv_ntop_v4(v_addr_449_); +return v___x_450_; +} +else +{ +lean_object* v_addr_451_; lean_object* v___x_452_; +v_addr_451_ = lean_ctor_get(v_x_448_, 0); +v___x_452_ = lean_uv_ntop_v6(v_addr_451_); +return v___x_452_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Net_IPAddr_toString___boxed(lean_object* v_x_453_){ +_start: +{ +lean_object* v_res_454_; +v_res_454_ = l_Std_Net_IPAddr_toString(v_x_453_); +lean_dec_ref(v_x_453_); +return v_res_454_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_instToString___lam__0(lean_object* v_x_457_){ +_start: +{ +if (lean_obj_tag(v_x_457_) == 0) +{ +lean_object* v_addr_458_; lean_object* v_addr_459_; uint16_t v_port_460_; lean_object* v___x_461_; lean_object* v___x_462_; lean_object* v___x_463_; lean_object* v___x_464_; lean_object* v___x_465_; lean_object* v___x_466_; +v_addr_458_ = lean_ctor_get(v_x_457_, 0); +v_addr_459_ = lean_ctor_get(v_addr_458_, 0); +v_port_460_ = lean_ctor_get_uint16(v_addr_458_, sizeof(void*)*1); +v___x_461_ = lean_uv_ntop_v4(v_addr_459_); +v___x_462_ = ((lean_object*)(l_Std_Net_SocketAddressV4_instToString___lam__0___closed__0)); +v___x_463_ = lean_string_append(v___x_461_, v___x_462_); +v___x_464_ = lean_uint16_to_nat(v_port_460_); +v___x_465_ = l_Nat_reprFast(v___x_464_); +v___x_466_ = lean_string_append(v___x_463_, v___x_465_); +lean_dec_ref(v___x_465_); +return v___x_466_; +} +else +{ +lean_object* v_addr_467_; lean_object* v_addr_468_; uint16_t v_port_469_; lean_object* v___x_470_; lean_object* v___x_471_; lean_object* v___x_472_; lean_object* v___x_473_; lean_object* v___x_474_; lean_object* v___x_475_; lean_object* v___x_476_; lean_object* v___x_477_; +v_addr_467_ = lean_ctor_get(v_x_457_, 0); +v_addr_468_ = lean_ctor_get(v_addr_467_, 0); +v_port_469_ = lean_ctor_get_uint16(v_addr_467_, sizeof(void*)*1); +v___x_470_ = ((lean_object*)(l_Std_Net_SocketAddressV6_instToString___lam__0___closed__0)); +v___x_471_ = lean_uv_ntop_v6(v_addr_468_); +v___x_472_ = lean_string_append(v___x_470_, v___x_471_); +lean_dec_ref(v___x_471_); +v___x_473_ = ((lean_object*)(l_Std_Net_SocketAddressV6_instToString___lam__0___closed__1)); +v___x_474_ = lean_string_append(v___x_472_, v___x_473_); +v___x_475_ = lean_uint16_to_nat(v_port_469_); +v___x_476_ = l_Nat_reprFast(v___x_475_); +v___x_477_ = lean_string_append(v___x_474_, v___x_476_); +lean_dec_ref(v___x_476_); +return v___x_477_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_instToString___lam__0___boxed(lean_object* v_x_478_){ +_start: +{ +lean_object* v_res_479_; +v_res_479_ = l_Std_Net_SocketAddress_instToString___lam__0(v_x_478_); +lean_dec_ref(v_x_478_); +return v_res_479_; +} +} +LEAN_EXPORT uint8_t l_Std_Net_SocketAddress_family(lean_object* v_x_482_){ +_start: +{ +if (lean_obj_tag(v_x_482_) == 0) +{ +uint8_t v___x_483_; +v___x_483_ = 0; +return v___x_483_; +} +else +{ +uint8_t v___x_484_; +v___x_484_ = 1; +return v___x_484_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_family___boxed(lean_object* v_x_485_){ +_start: +{ +uint8_t v_res_486_; lean_object* v_r_487_; +v_res_486_ = l_Std_Net_SocketAddress_family(v_x_485_); +lean_dec_ref(v_x_485_); +v_r_487_ = lean_box(v_res_486_); +return v_r_487_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_ipAddr(lean_object* v_x_488_){ +_start: +{ +if (lean_obj_tag(v_x_488_) == 0) +{ +lean_object* v_addr_489_; lean_object* v___x_491_; uint8_t v_isShared_492_; uint8_t v_isSharedCheck_497_; +v_addr_489_ = lean_ctor_get(v_x_488_, 0); +v_isSharedCheck_497_ = !lean_is_exclusive(v_x_488_); +if (v_isSharedCheck_497_ == 0) +{ +v___x_491_ = v_x_488_; +v_isShared_492_ = v_isSharedCheck_497_; +goto v_resetjp_490_; +} +else +{ +lean_inc(v_addr_489_); +lean_dec(v_x_488_); +v___x_491_ = lean_box(0); +v_isShared_492_ = v_isSharedCheck_497_; +goto v_resetjp_490_; +} +v_resetjp_490_: +{ +lean_object* v_addr_493_; lean_object* v___x_495_; +v_addr_493_ = lean_ctor_get(v_addr_489_, 0); +lean_inc_ref(v_addr_493_); +lean_dec_ref(v_addr_489_); +if (v_isShared_492_ == 0) +{ +lean_ctor_set(v___x_491_, 0, v_addr_493_); +v___x_495_ = v___x_491_; +goto v_reusejp_494_; +} +else +{ +lean_object* v_reuseFailAlloc_496_; +v_reuseFailAlloc_496_ = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(v_reuseFailAlloc_496_, 0, v_addr_493_); +v___x_495_ = v_reuseFailAlloc_496_; +goto v_reusejp_494_; +} +v_reusejp_494_: +{ +return v___x_495_; +} +} +} +else +{ +lean_object* v_addr_498_; lean_object* v___x_500_; uint8_t v_isShared_501_; uint8_t v_isSharedCheck_506_; +v_addr_498_ = lean_ctor_get(v_x_488_, 0); +v_isSharedCheck_506_ = !lean_is_exclusive(v_x_488_); +if (v_isSharedCheck_506_ == 0) +{ +v___x_500_ = v_x_488_; +v_isShared_501_ = v_isSharedCheck_506_; +goto v_resetjp_499_; +} +else +{ +lean_inc(v_addr_498_); +lean_dec(v_x_488_); +v___x_500_ = lean_box(0); +v_isShared_501_ = v_isSharedCheck_506_; +goto v_resetjp_499_; +} +v_resetjp_499_: +{ +lean_object* v_addr_502_; lean_object* v___x_504_; +v_addr_502_ = lean_ctor_get(v_addr_498_, 0); +lean_inc_ref(v_addr_502_); +lean_dec_ref(v_addr_498_); +if (v_isShared_501_ == 0) +{ +lean_ctor_set(v___x_500_, 0, v_addr_502_); +v___x_504_ = v___x_500_; +goto v_reusejp_503_; +} +else +{ +lean_object* v_reuseFailAlloc_505_; +v_reuseFailAlloc_505_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_505_, 0, v_addr_502_); +v___x_504_ = v_reuseFailAlloc_505_; +goto v_reusejp_503_; +} +v_reusejp_503_: +{ +return v___x_504_; +} +} +} +} +} +LEAN_EXPORT uint16_t l_Std_Net_SocketAddress_port(lean_object* v_x_507_){ +_start: +{ +lean_object* v_addr_508_; uint16_t v_port_509_; +v_addr_508_ = lean_ctor_get(v_x_507_, 0); +v_port_509_ = lean_ctor_get_uint16(v_addr_508_, sizeof(void*)*1); +return v_port_509_; +} +} +LEAN_EXPORT lean_object* l_Std_Net_SocketAddress_port___boxed(lean_object* v_x_510_){ +_start: +{ +uint16_t v_res_511_; lean_object* v_r_512_; +v_res_511_ = l_Std_Net_SocketAddress_port(v_x_510_); +lean_dec_ref(v_x_510_); +v_r_512_ = lean_box(v_res_511_); +return v_r_512_; } } static lean_object* _init_l_Std_Net_instInhabitedInterfaceAddress_default___closed__1(void){ _start: { -lean_object* v___x_458_; uint8_t v___x_459_; lean_object* v___x_460_; lean_object* v___x_461_; lean_object* v___x_462_; -v___x_458_ = l_Std_Net_instInhabitedIPAddr_default; -v___x_459_ = 0; -v___x_460_ = l_Std_Net_instInhabitedMACAddr_default; -v___x_461_ = ((lean_object*)(l_Std_Net_instInhabitedInterfaceAddress_default___closed__0)); -v___x_462_ = lean_alloc_ctor(0, 4, 1); -lean_ctor_set(v___x_462_, 0, v___x_461_); -lean_ctor_set(v___x_462_, 1, v___x_460_); -lean_ctor_set(v___x_462_, 2, v___x_458_); -lean_ctor_set(v___x_462_, 3, v___x_458_); -lean_ctor_set_uint8(v___x_462_, sizeof(void*)*4, v___x_459_); -return v___x_462_; +lean_object* v___x_514_; uint8_t v___x_515_; lean_object* v___x_516_; lean_object* v___x_517_; lean_object* v___x_518_; +v___x_514_ = l_Std_Net_instInhabitedIPAddr_default; +v___x_515_ = 0; +v___x_516_ = l_Std_Net_instInhabitedMACAddr_default; +v___x_517_ = ((lean_object*)(l_Std_Net_instInhabitedInterfaceAddress_default___closed__0)); +v___x_518_ = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(v___x_518_, 0, v___x_517_); +lean_ctor_set(v___x_518_, 1, v___x_516_); +lean_ctor_set(v___x_518_, 2, v___x_514_); +lean_ctor_set(v___x_518_, 3, v___x_514_); +lean_ctor_set_uint8(v___x_518_, sizeof(void*)*4, v___x_515_); +return v___x_518_; } } static lean_object* _init_l_Std_Net_instInhabitedInterfaceAddress_default(void){ _start: { -lean_object* v___x_463_; -v___x_463_ = lean_obj_once(&l_Std_Net_instInhabitedInterfaceAddress_default___closed__1, &l_Std_Net_instInhabitedInterfaceAddress_default___closed__1_once, _init_l_Std_Net_instInhabitedInterfaceAddress_default___closed__1); -return v___x_463_; +lean_object* v___x_519_; +v___x_519_ = lean_obj_once(&l_Std_Net_instInhabitedInterfaceAddress_default___closed__1, &l_Std_Net_instInhabitedInterfaceAddress_default___closed__1_once, _init_l_Std_Net_instInhabitedInterfaceAddress_default___closed__1); +return v___x_519_; } } static lean_object* _init_l_Std_Net_instInhabitedInterfaceAddress(void){ _start: { -lean_object* v___x_464_; -v___x_464_ = l_Std_Net_instInhabitedInterfaceAddress_default; -return v___x_464_; +lean_object* v___x_520_; +v___x_520_ = l_Std_Net_instInhabitedInterfaceAddress_default; +return v___x_520_; } } -LEAN_EXPORT uint8_t l_Std_Net_instDecidableEqInterfaceAddress_decEq(lean_object* v_x_465_, lean_object* v_x_466_){ +LEAN_EXPORT uint8_t l_Std_Net_instDecidableEqInterfaceAddress_decEq(lean_object* v_x_521_, lean_object* v_x_522_){ _start: { -lean_object* v_name_467_; lean_object* v_physicalAddress_468_; uint8_t v_isLoopback_469_; lean_object* v_address_470_; lean_object* v_netMask_471_; lean_object* v_name_472_; lean_object* v_physicalAddress_473_; uint8_t v_isLoopback_474_; lean_object* v_address_475_; lean_object* v_netMask_476_; uint8_t v___x_480_; -v_name_467_ = lean_ctor_get(v_x_465_, 0); -v_physicalAddress_468_ = lean_ctor_get(v_x_465_, 1); -v_isLoopback_469_ = lean_ctor_get_uint8(v_x_465_, sizeof(void*)*4); -v_address_470_ = lean_ctor_get(v_x_465_, 2); -v_netMask_471_ = lean_ctor_get(v_x_465_, 3); -v_name_472_ = lean_ctor_get(v_x_466_, 0); -v_physicalAddress_473_ = lean_ctor_get(v_x_466_, 1); -v_isLoopback_474_ = lean_ctor_get_uint8(v_x_466_, sizeof(void*)*4); -v_address_475_ = lean_ctor_get(v_x_466_, 2); -v_netMask_476_ = lean_ctor_get(v_x_466_, 3); -v___x_480_ = lean_string_dec_eq(v_name_467_, v_name_472_); -if (v___x_480_ == 0) +lean_object* v_name_523_; lean_object* v_physicalAddress_524_; uint8_t v_isLoopback_525_; lean_object* v_address_526_; lean_object* v_netMask_527_; lean_object* v_name_528_; lean_object* v_physicalAddress_529_; uint8_t v_isLoopback_530_; lean_object* v_address_531_; lean_object* v_netMask_532_; uint8_t v___x_536_; +v_name_523_ = lean_ctor_get(v_x_521_, 0); +v_physicalAddress_524_ = lean_ctor_get(v_x_521_, 1); +v_isLoopback_525_ = lean_ctor_get_uint8(v_x_521_, sizeof(void*)*4); +v_address_526_ = lean_ctor_get(v_x_521_, 2); +v_netMask_527_ = lean_ctor_get(v_x_521_, 3); +v_name_528_ = lean_ctor_get(v_x_522_, 0); +v_physicalAddress_529_ = lean_ctor_get(v_x_522_, 1); +v_isLoopback_530_ = lean_ctor_get_uint8(v_x_522_, sizeof(void*)*4); +v_address_531_ = lean_ctor_get(v_x_522_, 2); +v_netMask_532_ = lean_ctor_get(v_x_522_, 3); +v___x_536_ = lean_string_dec_eq(v_name_523_, v_name_528_); +if (v___x_536_ == 0) { -return v___x_480_; +return v___x_536_; } else { -uint8_t v___x_481_; -v___x_481_ = l_Std_Net_instDecidableEqMACAddr_decEq(v_physicalAddress_468_, v_physicalAddress_473_); -if (v___x_481_ == 0) +uint8_t v___x_537_; +v___x_537_ = l_Std_Net_instDecidableEqMACAddr_decEq(v_physicalAddress_524_, v_physicalAddress_529_); +if (v___x_537_ == 0) { -return v___x_481_; +return v___x_537_; } else { -if (v_isLoopback_469_ == 0) +if (v_isLoopback_525_ == 0) { -if (v_isLoopback_474_ == 0) +if (v_isLoopback_530_ == 0) { -goto v___jp_477_; +goto v___jp_533_; } else { -return v_isLoopback_469_; +return v_isLoopback_525_; } } else { -if (v_isLoopback_474_ == 0) +if (v_isLoopback_530_ == 0) { -return v_isLoopback_474_; +return v_isLoopback_530_; } else { -goto v___jp_477_; +goto v___jp_533_; } } } } -v___jp_477_: +v___jp_533_: { -uint8_t v___x_478_; -v___x_478_ = l_Std_Net_instDecidableEqIPAddr_decEq(v_address_470_, v_address_475_); -if (v___x_478_ == 0) +uint8_t v___x_534_; +v___x_534_ = l_Std_Net_instDecidableEqIPAddr_decEq(v_address_526_, v_address_531_); +if (v___x_534_ == 0) { -return v___x_478_; +return v___x_534_; } else { -uint8_t v___x_479_; -v___x_479_ = l_Std_Net_instDecidableEqIPAddr_decEq(v_netMask_471_, v_netMask_476_); -return v___x_479_; +uint8_t v___x_535_; +v___x_535_ = l_Std_Net_instDecidableEqIPAddr_decEq(v_netMask_527_, v_netMask_532_); +return v___x_535_; } } } } -LEAN_EXPORT lean_object* l_Std_Net_instDecidableEqInterfaceAddress_decEq___boxed(lean_object* v_x_482_, lean_object* v_x_483_){ +LEAN_EXPORT lean_object* l_Std_Net_instDecidableEqInterfaceAddress_decEq___boxed(lean_object* v_x_538_, lean_object* v_x_539_){ _start: { -uint8_t v_res_484_; lean_object* v_r_485_; -v_res_484_ = l_Std_Net_instDecidableEqInterfaceAddress_decEq(v_x_482_, v_x_483_); -lean_dec_ref(v_x_483_); -lean_dec_ref(v_x_482_); -v_r_485_ = lean_box(v_res_484_); -return v_r_485_; +uint8_t v_res_540_; lean_object* v_r_541_; +v_res_540_ = l_Std_Net_instDecidableEqInterfaceAddress_decEq(v_x_538_, v_x_539_); +lean_dec_ref(v_x_539_); +lean_dec_ref(v_x_538_); +v_r_541_ = lean_box(v_res_540_); +return v_r_541_; } } -LEAN_EXPORT uint8_t l_Std_Net_instDecidableEqInterfaceAddress(lean_object* v_x_486_, lean_object* v_x_487_){ +LEAN_EXPORT uint8_t l_Std_Net_instDecidableEqInterfaceAddress(lean_object* v_x_542_, lean_object* v_x_543_){ _start: { -uint8_t v___x_488_; -v___x_488_ = l_Std_Net_instDecidableEqInterfaceAddress_decEq(v_x_486_, v_x_487_); -return v___x_488_; +uint8_t v___x_544_; +v___x_544_ = l_Std_Net_instDecidableEqInterfaceAddress_decEq(v_x_542_, v_x_543_); +return v___x_544_; } } -LEAN_EXPORT lean_object* l_Std_Net_instDecidableEqInterfaceAddress___boxed(lean_object* v_x_489_, lean_object* v_x_490_){ +LEAN_EXPORT lean_object* l_Std_Net_instDecidableEqInterfaceAddress___boxed(lean_object* v_x_545_, lean_object* v_x_546_){ _start: { -uint8_t v_res_491_; lean_object* v_r_492_; -v_res_491_ = l_Std_Net_instDecidableEqInterfaceAddress(v_x_489_, v_x_490_); -lean_dec_ref(v_x_490_); -lean_dec_ref(v_x_489_); -v_r_492_ = lean_box(v_res_491_); -return v_r_492_; +uint8_t v_res_547_; lean_object* v_r_548_; +v_res_547_ = l_Std_Net_instDecidableEqInterfaceAddress(v_x_545_, v_x_546_); +lean_dec_ref(v_x_546_); +lean_dec_ref(v_x_545_); +v_r_548_ = lean_box(v_res_547_); +return v_r_548_; } } -LEAN_EXPORT lean_object* l_Std_Net_interfaceAddresses___boxed(lean_object* v_a_00___x40___internal___hyg_494_){ +LEAN_EXPORT lean_object* l_Std_Net_interfaceAddresses___boxed(lean_object* v_a_00___x40___internal___hyg_550_){ _start: { -lean_object* v_res_495_; -v_res_495_ = lean_uv_interface_addresses(); -return v_res_495_; +lean_object* v_res_551_; +v_res_551_ = lean_uv_interface_addresses(); +return v_res_551_; } } lean_object* runtime_initialize_Init_System_IO(uint8_t builtin); diff --git a/stage0/stdlib/Std/Sync.c b/stage0/stdlib/Std/Sync.c index 134339cd0c..2a8c675778 100644 --- a/stage0/stdlib/Std/Sync.c +++ b/stage0/stdlib/Std/Sync.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Std.Sync -// Imports: public import Std.Sync.Basic public import Std.Sync.Channel public import Std.Sync.Mutex public import Std.Sync.RecursiveMutex public import Std.Sync.Barrier public import Std.Sync.SharedMutex public import Std.Sync.Notify public import Std.Sync.Broadcast public import Std.Sync.StreamMap public import Std.Sync.CancellationToken public import Std.Sync.CancellationContext +// Imports: public import Std.Sync.Basic public import Std.Sync.Channel public import Std.Sync.Mutex public import Std.Sync.RecursiveMutex public import Std.Sync.Barrier public import Std.Sync.Semaphore public import Std.Sync.SharedMutex public import Std.Sync.Notify public import Std.Sync.Broadcast public import Std.Sync.StreamMap public import Std.Sync.CancellationToken public import Std.Sync.CancellationContext #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -18,6 +18,7 @@ lean_object* runtime_initialize_Std_Sync_Channel(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_Mutex(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_RecursiveMutex(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_Barrier(uint8_t builtin); +lean_object* runtime_initialize_Std_Sync_Semaphore(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_SharedMutex(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_Notify(uint8_t builtin); lean_object* runtime_initialize_Std_Sync_Broadcast(uint8_t builtin); @@ -44,6 +45,9 @@ lean_dec_ref(res); res = runtime_initialize_Std_Sync_Barrier(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = runtime_initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = runtime_initialize_Std_Sync_SharedMutex(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -76,6 +80,7 @@ lean_object* initialize_Std_Sync_Channel(uint8_t builtin); lean_object* initialize_Std_Sync_Mutex(uint8_t builtin); lean_object* initialize_Std_Sync_RecursiveMutex(uint8_t builtin); lean_object* initialize_Std_Sync_Barrier(uint8_t builtin); +lean_object* initialize_Std_Sync_Semaphore(uint8_t builtin); lean_object* initialize_Std_Sync_SharedMutex(uint8_t builtin); lean_object* initialize_Std_Sync_Notify(uint8_t builtin); lean_object* initialize_Std_Sync_Broadcast(uint8_t builtin); @@ -102,6 +107,9 @@ lean_dec_ref(res); res = initialize_Std_Sync_Barrier(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Std_Sync_SharedMutex(builtin); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Std/Sync/Semaphore.c b/stage0/stdlib/Std/Sync/Semaphore.c new file mode 100644 index 0000000000..ac45208082 --- /dev/null +++ b/stage0/stdlib/Std/Sync/Semaphore.c @@ -0,0 +1,638 @@ +// Lean compiler output +// Module: Std.Sync.Semaphore +// Imports: public import Init.Data.Queue public import Init.System.Promise public import Std.Sync.Mutex +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* lean_st_ref_get(lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* lean_io_promise_new(); +lean_object* l_Std_Queue_enqueue___redArg(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* lean_io_promise_resolve(lean_object*, lean_object*); +lean_object* lean_io_basemutex_lock(lean_object*); +lean_object* lean_io_basemutex_unlock(lean_object*); +lean_object* l_Std_Queue_dequeue_x3f___redArg(lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Std_Queue_empty(lean_object*); +lean_object* l_Std_Mutex_new___redArg(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg(lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_once_cell_t l_Std_Semaphore_new___closed__0_once = LEAN_ONCE_CELL_INITIALIZER; +static lean_object* l_Std_Semaphore_new___closed__0; +LEAN_EXPORT lean_object* l_Std_Semaphore_new(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_new___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Semaphore_acquire___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Semaphore_acquire___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Semaphore_acquire___closed__0 = (const lean_object*)&l_Std_Semaphore_acquire___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___boxed(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_Semaphore_tryAcquire___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_tryAcquire___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Semaphore_tryAcquire___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Semaphore_tryAcquire___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Semaphore_tryAcquire___closed__0 = (const lean_object*)&l_Std_Semaphore_tryAcquire___closed__0_value; +LEAN_EXPORT uint8_t l_Std_Semaphore_tryAcquire(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_tryAcquire___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_release___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_release___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Semaphore_release___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Semaphore_release___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Semaphore_release___closed__0 = (const lean_object*)&l_Std_Semaphore_release___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Semaphore_release(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_release___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___lam__0___boxed(lean_object*, lean_object*); +static const lean_closure_object l_Std_Semaphore_availablePermits___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_closure_object) + sizeof(void*)*0, .m_other = 0, .m_tag = 245}, .m_fun = (void*)l_Std_Semaphore_availablePermits___lam__0___boxed, .m_arity = 2, .m_num_fixed = 0, .m_objs = {} }; +static const lean_object* l_Std_Semaphore_availablePermits___closed__0 = (const lean_object*)&l_Std_Semaphore_availablePermits___closed__0_value; +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits(lean_object*); +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg(lean_object* v_a_1_){ +_start: +{ +lean_object* v___x_3_; lean_object* v___x_4_; +v___x_3_ = lean_io_promise_new(); +v___x_4_ = lean_io_promise_resolve(v_a_1_, v___x_3_); +return v___x_3_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg___boxed(lean_object* v_a_5_, lean_object* v_a_6_){ +_start: +{ +lean_object* v_res_7_; +v_res_7_ = l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg(v_a_5_); +return v_res_7_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise(lean_object* v_00_u03b1_8_, lean_object* v_inst_9_, lean_object* v_a_10_){ +_start: +{ +lean_object* v___x_12_; +v___x_12_ = l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg(v_a_10_); +return v___x_12_; +} +} +LEAN_EXPORT lean_object* l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___boxed(lean_object* v_00_u03b1_13_, lean_object* v_inst_14_, lean_object* v_a_15_, lean_object* v_a_16_){ +_start: +{ +lean_object* v_res_17_; +v_res_17_ = l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise(v_00_u03b1_13_, v_inst_14_, v_a_15_); +return v_res_17_; +} +} +static lean_object* _init_l_Std_Semaphore_new___closed__0(void){ +_start: +{ +lean_object* v___x_18_; +v___x_18_ = l_Std_Queue_empty(lean_box(0)); +return v___x_18_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_new(lean_object* v_permits_19_){ +_start: +{ +lean_object* v___x_21_; lean_object* v___x_22_; lean_object* v___x_23_; +v___x_21_ = lean_obj_once(&l_Std_Semaphore_new___closed__0, &l_Std_Semaphore_new___closed__0_once, _init_l_Std_Semaphore_new___closed__0); +v___x_22_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v___x_22_, 0, v_permits_19_); +lean_ctor_set(v___x_22_, 1, v___x_21_); +v___x_23_ = l_Std_Mutex_new___redArg(v___x_22_); +return v___x_23_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_new___boxed(lean_object* v_permits_24_, lean_object* v_a_25_){ +_start: +{ +lean_object* v_res_26_; +v_res_26_ = l_Std_Semaphore_new(v_permits_24_); +return v_res_26_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(lean_object* v_mutex_27_, lean_object* v_k_28_){ +_start: +{ +lean_object* v_ref_30_; lean_object* v_mutex_31_; lean_object* v___x_32_; lean_object* v___x_33_; lean_object* v___x_34_; +v_ref_30_ = lean_ctor_get(v_mutex_27_, 0); +lean_inc(v_ref_30_); +v_mutex_31_ = lean_ctor_get(v_mutex_27_, 1); +lean_inc(v_mutex_31_); +lean_dec_ref(v_mutex_27_); +v___x_32_ = lean_io_basemutex_lock(v_mutex_31_); +v___x_33_ = lean_apply_2(v_k_28_, v_ref_30_, lean_box(0)); +v___x_34_ = lean_io_basemutex_unlock(v_mutex_31_); +lean_dec(v_mutex_31_); +return v___x_33_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg___boxed(lean_object* v_mutex_35_, lean_object* v_k_36_, lean_object* v___y_37_){ +_start: +{ +lean_object* v_res_38_; +v_res_38_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_mutex_35_, v_k_36_); +return v_res_38_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0(lean_object* v_00_u03b1_39_, lean_object* v_00_u03b2_40_, lean_object* v_mutex_41_, lean_object* v_k_42_){ +_start: +{ +lean_object* v___x_44_; +v___x_44_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_mutex_41_, v_k_42_); +return v___x_44_; +} +} +LEAN_EXPORT lean_object* l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___boxed(lean_object* v_00_u03b1_45_, lean_object* v_00_u03b2_46_, lean_object* v_mutex_47_, lean_object* v_k_48_, lean_object* v___y_49_){ +_start: +{ +lean_object* v_res_50_; +v_res_50_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0(v_00_u03b1_45_, v_00_u03b2_46_, v_mutex_47_, v_k_48_); +return v_res_50_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___lam__0(lean_object* v___y_51_){ +_start: +{ +lean_object* v___x_53_; lean_object* v_permits_54_; lean_object* v_waiters_55_; lean_object* v___x_57_; uint8_t v_isShared_58_; uint8_t v_isSharedCheck_75_; +v___x_53_ = lean_st_ref_get(v___y_51_); +v_permits_54_ = lean_ctor_get(v___x_53_, 0); +v_waiters_55_ = lean_ctor_get(v___x_53_, 1); +v_isSharedCheck_75_ = !lean_is_exclusive(v___x_53_); +if (v_isSharedCheck_75_ == 0) +{ +v___x_57_ = v___x_53_; +v_isShared_58_ = v_isSharedCheck_75_; +goto v_resetjp_56_; +} +else +{ +lean_inc(v_waiters_55_); +lean_inc(v_permits_54_); +lean_dec(v___x_53_); +v___x_57_ = lean_box(0); +v_isShared_58_ = v_isSharedCheck_75_; +goto v_resetjp_56_; +} +v_resetjp_56_: +{ +lean_object* v___x_59_; uint8_t v___x_60_; +v___x_59_ = lean_unsigned_to_nat(0u); +v___x_60_ = lean_nat_dec_lt(v___x_59_, v_permits_54_); +if (v___x_60_ == 0) +{ +lean_object* v___x_61_; lean_object* v___x_62_; lean_object* v___x_64_; +v___x_61_ = lean_io_promise_new(); +lean_inc(v___x_61_); +v___x_62_ = l_Std_Queue_enqueue___redArg(v___x_61_, v_waiters_55_); +if (v_isShared_58_ == 0) +{ +lean_ctor_set(v___x_57_, 1, v___x_62_); +v___x_64_ = v___x_57_; +goto v_reusejp_63_; +} +else +{ +lean_object* v_reuseFailAlloc_66_; +v_reuseFailAlloc_66_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_66_, 0, v_permits_54_); +lean_ctor_set(v_reuseFailAlloc_66_, 1, v___x_62_); +v___x_64_ = v_reuseFailAlloc_66_; +goto v_reusejp_63_; +} +v_reusejp_63_: +{ +lean_object* v___x_65_; +v___x_65_ = lean_st_ref_set(v___y_51_, v___x_64_); +return v___x_61_; +} +} +else +{ +lean_object* v___x_67_; lean_object* v___x_68_; lean_object* v___x_70_; +v___x_67_ = lean_unsigned_to_nat(1u); +v___x_68_ = lean_nat_sub(v_permits_54_, v___x_67_); +lean_dec(v_permits_54_); +if (v_isShared_58_ == 0) +{ +lean_ctor_set(v___x_57_, 0, v___x_68_); +v___x_70_ = v___x_57_; +goto v_reusejp_69_; +} +else +{ +lean_object* v_reuseFailAlloc_74_; +v_reuseFailAlloc_74_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_74_, 0, v___x_68_); +lean_ctor_set(v_reuseFailAlloc_74_, 1, v_waiters_55_); +v___x_70_ = v_reuseFailAlloc_74_; +goto v_reusejp_69_; +} +v_reusejp_69_: +{ +lean_object* v___x_71_; lean_object* v___x_72_; lean_object* v___x_73_; +v___x_71_ = lean_st_ref_set(v___y_51_, v___x_70_); +v___x_72_ = lean_box(0); +v___x_73_ = l___private_Std_Sync_Semaphore_0__Std_mkResolvedPromise___redArg(v___x_72_); +return v___x_73_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___lam__0___boxed(lean_object* v___y_76_, lean_object* v___y_77_){ +_start: +{ +lean_object* v_res_78_; +v_res_78_ = l_Std_Semaphore_acquire___lam__0(v___y_76_); +lean_dec(v___y_76_); +return v_res_78_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire(lean_object* v_sem_80_){ +_start: +{ +lean_object* v___f_82_; lean_object* v___x_83_; +v___f_82_ = ((lean_object*)(l_Std_Semaphore_acquire___closed__0)); +v___x_83_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_sem_80_, v___f_82_); +return v___x_83_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_acquire___boxed(lean_object* v_sem_84_, lean_object* v_a_85_){ +_start: +{ +lean_object* v_res_86_; +v_res_86_ = l_Std_Semaphore_acquire(v_sem_84_); +return v_res_86_; +} +} +LEAN_EXPORT uint8_t l_Std_Semaphore_tryAcquire___lam__0(lean_object* v___y_87_){ +_start: +{ +lean_object* v___x_89_; lean_object* v_permits_90_; lean_object* v_waiters_91_; lean_object* v___x_93_; uint8_t v_isShared_94_; uint8_t v_isSharedCheck_103_; +v___x_89_ = lean_st_ref_get(v___y_87_); +v_permits_90_ = lean_ctor_get(v___x_89_, 0); +v_waiters_91_ = lean_ctor_get(v___x_89_, 1); +v_isSharedCheck_103_ = !lean_is_exclusive(v___x_89_); +if (v_isSharedCheck_103_ == 0) +{ +v___x_93_ = v___x_89_; +v_isShared_94_ = v_isSharedCheck_103_; +goto v_resetjp_92_; +} +else +{ +lean_inc(v_waiters_91_); +lean_inc(v_permits_90_); +lean_dec(v___x_89_); +v___x_93_ = lean_box(0); +v_isShared_94_ = v_isSharedCheck_103_; +goto v_resetjp_92_; +} +v_resetjp_92_: +{ +lean_object* v___x_95_; uint8_t v___x_96_; +v___x_95_ = lean_unsigned_to_nat(0u); +v___x_96_ = lean_nat_dec_lt(v___x_95_, v_permits_90_); +if (v___x_96_ == 0) +{ +lean_del_object(v___x_93_); +lean_dec_ref(v_waiters_91_); +lean_dec(v_permits_90_); +return v___x_96_; +} +else +{ +lean_object* v___x_97_; lean_object* v___x_98_; lean_object* v___x_100_; +v___x_97_ = lean_unsigned_to_nat(1u); +v___x_98_ = lean_nat_sub(v_permits_90_, v___x_97_); +lean_dec(v_permits_90_); +if (v_isShared_94_ == 0) +{ +lean_ctor_set(v___x_93_, 0, v___x_98_); +v___x_100_ = v___x_93_; +goto v_reusejp_99_; +} +else +{ +lean_object* v_reuseFailAlloc_102_; +v_reuseFailAlloc_102_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_102_, 0, v___x_98_); +lean_ctor_set(v_reuseFailAlloc_102_, 1, v_waiters_91_); +v___x_100_ = v_reuseFailAlloc_102_; +goto v_reusejp_99_; +} +v_reusejp_99_: +{ +lean_object* v___x_101_; +v___x_101_ = lean_st_ref_set(v___y_87_, v___x_100_); +return v___x_96_; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_tryAcquire___lam__0___boxed(lean_object* v___y_104_, lean_object* v___y_105_){ +_start: +{ +uint8_t v_res_106_; lean_object* v_r_107_; +v_res_106_ = l_Std_Semaphore_tryAcquire___lam__0(v___y_104_); +lean_dec(v___y_104_); +v_r_107_ = lean_box(v_res_106_); +return v_r_107_; +} +} +LEAN_EXPORT uint8_t l_Std_Semaphore_tryAcquire(lean_object* v_sem_109_){ +_start: +{ +lean_object* v___f_111_; lean_object* v___x_112_; uint8_t v___x_113_; +v___f_111_ = ((lean_object*)(l_Std_Semaphore_tryAcquire___closed__0)); +v___x_112_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_sem_109_, v___f_111_); +v___x_113_ = lean_unbox(v___x_112_); +lean_dec(v___x_112_); +return v___x_113_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_tryAcquire___boxed(lean_object* v_sem_114_, lean_object* v_a_115_){ +_start: +{ +uint8_t v_res_116_; lean_object* v_r_117_; +v_res_116_ = l_Std_Semaphore_tryAcquire(v_sem_114_); +v_r_117_ = lean_box(v_res_116_); +return v_r_117_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_release___lam__0(lean_object* v___y_118_){ +_start: +{ +lean_object* v___x_120_; lean_object* v_permits_121_; lean_object* v_waiters_122_; lean_object* v___x_124_; uint8_t v_isShared_125_; uint8_t v_isSharedCheck_148_; +v___x_120_ = lean_st_ref_get(v___y_118_); +v_permits_121_ = lean_ctor_get(v___x_120_, 0); +v_waiters_122_ = lean_ctor_get(v___x_120_, 1); +v_isSharedCheck_148_ = !lean_is_exclusive(v___x_120_); +if (v_isSharedCheck_148_ == 0) +{ +v___x_124_ = v___x_120_; +v_isShared_125_ = v_isSharedCheck_148_; +goto v_resetjp_123_; +} +else +{ +lean_inc(v_waiters_122_); +lean_inc(v_permits_121_); +lean_dec(v___x_120_); +v___x_124_ = lean_box(0); +v_isShared_125_ = v_isSharedCheck_148_; +goto v_resetjp_123_; +} +v_resetjp_123_: +{ +lean_object* v___x_126_; +lean_inc_ref(v_waiters_122_); +v___x_126_ = l_Std_Queue_dequeue_x3f___redArg(v_waiters_122_); +if (lean_obj_tag(v___x_126_) == 0) +{ +lean_object* v___x_127_; lean_object* v___x_128_; lean_object* v___x_130_; +v___x_127_ = lean_unsigned_to_nat(1u); +v___x_128_ = lean_nat_add(v_permits_121_, v___x_127_); +lean_dec(v_permits_121_); +if (v_isShared_125_ == 0) +{ +lean_ctor_set(v___x_124_, 0, v___x_128_); +v___x_130_ = v___x_124_; +goto v_reusejp_129_; +} +else +{ +lean_object* v_reuseFailAlloc_133_; +v_reuseFailAlloc_133_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_133_, 0, v___x_128_); +lean_ctor_set(v_reuseFailAlloc_133_, 1, v_waiters_122_); +v___x_130_ = v_reuseFailAlloc_133_; +goto v_reusejp_129_; +} +v_reusejp_129_: +{ +lean_object* v___x_131_; lean_object* v___x_132_; +v___x_131_ = lean_st_ref_set(v___y_118_, v___x_130_); +v___x_132_ = lean_box(0); +return v___x_132_; +} +} +else +{ +lean_object* v_val_134_; lean_object* v___x_136_; uint8_t v_isShared_137_; uint8_t v_isSharedCheck_147_; +lean_dec_ref(v_waiters_122_); +v_val_134_ = lean_ctor_get(v___x_126_, 0); +v_isSharedCheck_147_ = !lean_is_exclusive(v___x_126_); +if (v_isSharedCheck_147_ == 0) +{ +v___x_136_ = v___x_126_; +v_isShared_137_ = v_isSharedCheck_147_; +goto v_resetjp_135_; +} +else +{ +lean_inc(v_val_134_); +lean_dec(v___x_126_); +v___x_136_ = lean_box(0); +v_isShared_137_ = v_isSharedCheck_147_; +goto v_resetjp_135_; +} +v_resetjp_135_: +{ +lean_object* v_fst_138_; lean_object* v_snd_139_; lean_object* v___x_141_; +v_fst_138_ = lean_ctor_get(v_val_134_, 0); +lean_inc(v_fst_138_); +v_snd_139_ = lean_ctor_get(v_val_134_, 1); +lean_inc(v_snd_139_); +lean_dec(v_val_134_); +if (v_isShared_125_ == 0) +{ +lean_ctor_set(v___x_124_, 1, v_snd_139_); +v___x_141_ = v___x_124_; +goto v_reusejp_140_; +} +else +{ +lean_object* v_reuseFailAlloc_146_; +v_reuseFailAlloc_146_ = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(v_reuseFailAlloc_146_, 0, v_permits_121_); +lean_ctor_set(v_reuseFailAlloc_146_, 1, v_snd_139_); +v___x_141_ = v_reuseFailAlloc_146_; +goto v_reusejp_140_; +} +v_reusejp_140_: +{ +lean_object* v___x_142_; lean_object* v___x_144_; +v___x_142_ = lean_st_ref_set(v___y_118_, v___x_141_); +if (v_isShared_137_ == 0) +{ +lean_ctor_set(v___x_136_, 0, v_fst_138_); +v___x_144_ = v___x_136_; +goto v_reusejp_143_; +} +else +{ +lean_object* v_reuseFailAlloc_145_; +v_reuseFailAlloc_145_ = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(v_reuseFailAlloc_145_, 0, v_fst_138_); +v___x_144_ = v_reuseFailAlloc_145_; +goto v_reusejp_143_; +} +v_reusejp_143_: +{ +return v___x_144_; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_release___lam__0___boxed(lean_object* v___y_149_, lean_object* v___y_150_){ +_start: +{ +lean_object* v_res_151_; +v_res_151_ = l_Std_Semaphore_release___lam__0(v___y_149_); +lean_dec(v___y_149_); +return v_res_151_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_release(lean_object* v_sem_153_){ +_start: +{ +lean_object* v___f_155_; lean_object* v___x_156_; +v___f_155_ = ((lean_object*)(l_Std_Semaphore_release___closed__0)); +v___x_156_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_sem_153_, v___f_155_); +if (lean_obj_tag(v___x_156_) == 1) +{ +lean_object* v_val_157_; lean_object* v___x_158_; lean_object* v___x_159_; +v_val_157_ = lean_ctor_get(v___x_156_, 0); +lean_inc(v_val_157_); +lean_dec_ref(v___x_156_); +v___x_158_ = lean_box(0); +v___x_159_ = lean_io_promise_resolve(v___x_158_, v_val_157_); +lean_dec(v_val_157_); +return v___x_159_; +} +else +{ +lean_object* v___x_160_; +lean_dec(v___x_156_); +v___x_160_ = lean_box(0); +return v___x_160_; +} +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_release___boxed(lean_object* v_sem_161_, lean_object* v_a_162_){ +_start: +{ +lean_object* v_res_163_; +v_res_163_ = l_Std_Semaphore_release(v_sem_161_); +return v_res_163_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___lam__0(lean_object* v___y_164_){ +_start: +{ +lean_object* v___x_166_; lean_object* v_permits_167_; +v___x_166_ = lean_st_ref_get(v___y_164_); +v_permits_167_ = lean_ctor_get(v___x_166_, 0); +lean_inc(v_permits_167_); +lean_dec(v___x_166_); +return v_permits_167_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___lam__0___boxed(lean_object* v___y_168_, lean_object* v___y_169_){ +_start: +{ +lean_object* v_res_170_; +v_res_170_ = l_Std_Semaphore_availablePermits___lam__0(v___y_168_); +lean_dec(v___y_168_); +return v_res_170_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits(lean_object* v_sem_172_){ +_start: +{ +lean_object* v___f_174_; lean_object* v___x_175_; +v___f_174_ = ((lean_object*)(l_Std_Semaphore_availablePermits___closed__0)); +v___x_175_ = l_Std_Mutex_atomically___at___00Std_Semaphore_acquire_spec__0___redArg(v_sem_172_, v___f_174_); +return v___x_175_; +} +} +LEAN_EXPORT lean_object* l_Std_Semaphore_availablePermits___boxed(lean_object* v_sem_176_, lean_object* v_a_177_){ +_start: +{ +lean_object* v_res_178_; +v_res_178_ = l_Std_Semaphore_availablePermits(v_sem_176_); +return v_res_178_; +} +} +lean_object* runtime_initialize_Init_Data_Queue(uint8_t builtin); +lean_object* runtime_initialize_Init_System_Promise(uint8_t builtin); +lean_object* runtime_initialize_Std_Sync_Mutex(uint8_t builtin); +static bool _G_runtime_initialized = false; +LEAN_EXPORT lean_object* runtime_initialize_Std_Sync_Semaphore(uint8_t builtin) { +lean_object * res; +if (_G_runtime_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_runtime_initialized = true; +res = runtime_initialize_Init_Data_Queue(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Init_System_Promise(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Sync_Mutex(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +static bool _G_meta_initialized = false; +LEAN_EXPORT lean_object* meta_initialize_Std_Sync_Semaphore(uint8_t builtin) { +lean_object * res; +if (_G_meta_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_meta_initialized = true; +return lean_io_result_mk_ok(lean_box(0)); +} +lean_object* initialize_Init_Data_Queue(uint8_t builtin); +lean_object* initialize_Init_System_Promise(uint8_t builtin); +lean_object* initialize_Std_Sync_Mutex(uint8_t builtin); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Std_Sync_Semaphore(uint8_t builtin) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Data_Queue(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_System_Promise(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Std_Sync_Mutex(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = runtime_initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = meta_initialize_Std_Sync_Semaphore(builtin); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return initialize_Std_Sync_Semaphore(builtin); +} +#ifdef __cplusplus +} +#endif